From 85caa38c7b45766f044a016b88a410f75cb7469e Mon Sep 17 00:00:00 2001 From: sinner Date: Mon, 19 Jan 2026 06:02:10 -0500 Subject: feat: add command aliases for improved cli usability --- internal/models/sl.go | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'internal/models/sl.go') diff --git a/internal/models/sl.go b/internal/models/sl.go index f520450..845c022 100644 --- a/internal/models/sl.go +++ b/internal/models/sl.go @@ -13,12 +13,24 @@ type SLParams struct { } type SLResponse struct { - MaxHits int `json:"max_hits"` - Results interface{} `json:"results"` - Credits struct { + MaxHits int `json:"max_hits"` + TotalScanned int `json:"total_scanned"` + TotalDedupe int `json:"total_dedupe"` + NumHits int `json:"num_hits"` + Hits []SLHit `json:"hits"` + Credits struct { Remaining int `json:"remaining"` Unlimited bool `json:"unlimited"` } `json:"credits"` Message string `json:"message,omitempty"` Error string `json:"error,omitempty"` } + +type SLHit struct { + IngestTimestamp string `json:"_ingest_timestamp"` + DocID string `json:"doc_id"` + Filename string `json:"filename"` + Password string `json:"password"` + URL string `json:"url"` + Username string `json:"username"` +} -- cgit v1.2.3