From 25c11b030e2b4fb9bc9742daea834f0a6e049671 Mon Sep 17 00:00:00 2001 From: s Date: Sat, 8 Nov 2025 07:50:53 -0500 Subject: feat: add buckets, bucket-files, and shortlinks osint commands --- internal/models/osint.go | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'internal/models') diff --git a/internal/models/osint.go b/internal/models/osint.go index 9f714c4..950225d 100644 --- a/internal/models/osint.go +++ b/internal/models/osint.go @@ -47,3 +47,46 @@ type OpenDirectorySearchParams struct { } type OpenDirectorySearchResponse map[string]interface{} + +type BucketsSearchParams struct { + Limit int + Start int +} + +type BucketsFilesSearchParams struct { + Keywords string + Extensions string + Buckets string + Limit int + Start int +} + +type ShortlinksSearchParams struct { + Keywords string + Ext string + Order string + Direction string + Regexp bool + Limit int + Start int +} + +type CreditsInfo struct { + Used int `json:"used"` + Remaining int `json:"remaining"` +} + +type BucketsSearchResponse struct { + Credits CreditsInfo `json:"credits"` + Results interface{} `json:"results"` +} + +type BucketsFilesSearchResponse struct { + Credits CreditsInfo `json:"credits"` + Results interface{} `json:"results"` +} + +type ShortlinksSearchResponse struct { + Credits CreditsInfo `json:"credits"` + Results interface{} `json:"results"` +} -- cgit v1.2.3