summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
authors <[email protected]>2025-11-08 07:50:53 -0500
committers <[email protected]>2025-11-08 07:50:53 -0500
commit25c11b030e2b4fb9bc9742daea834f0a6e049671 (patch)
tree4c033a87fb2508abd42a5ba8464e12d85be3b87a /internal/models
parentdfcf52f30cdbde3a4e1400024b0c27451d179e5d (diff)
downloaddborg-25c11b030e2b4fb9bc9742daea834f0a6e049671.tar.gz
dborg-25c11b030e2b4fb9bc9742daea834f0a6e049671.zip
feat: add buckets, bucket-files, and shortlinks osint commandsv0.5.0
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/osint.go43
1 files changed, 43 insertions, 0 deletions
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"`
+}