summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
authors <[email protected]>2025-11-25 09:38:31 -0500
committers <[email protected]>2025-11-25 09:38:31 -0500
commit8472267b60b204cea5fbdeaf8fe06443822d1bfb (patch)
treeeba71104733067072ded109bf96904cd825c2f7f /internal/models
parentbc31d9cc8f93a5efef958872f48f3f4370ed5e29 (diff)
downloaddborg-8472267b60b204cea5fbdeaf8fe06443822d1bfb.tar.gz
dborg-8472267b60b204cea5fbdeaf8fe06443822d1bfb.zip
feat: add crypto analysis, email verification, and telegram lookup commands
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/admin.go19
-rw-r--r--internal/models/crypto.go12
-rw-r--r--internal/models/email.go21
-rw-r--r--internal/models/github.go1
-rw-r--r--internal/models/telegram.go12
5 files changed, 56 insertions, 9 deletions
diff --git a/internal/models/admin.go b/internal/models/admin.go
index 852e80f..ee551f3 100644
--- a/internal/models/admin.go
+++ b/internal/models/admin.go
@@ -1,15 +1,16 @@
package models
type Account struct {
- ID int `json:"id"`
- APIKey string `json:"api_key"`
- Name string `json:"name"`
- Credits int `json:"credits"`
- Unlimited bool `json:"unlimited"`
- Disabled bool `json:"disabled"`
- IsPremium bool `json:"is_premium"`
- IsAdmin bool `json:"is_admin"`
- CreatedAt interface{} `json:"created_at,omitempty"`
+ ID int `json:"id"`
+ APIKey string `json:"api_key"`
+ Name string `json:"name"`
+ Credits int `json:"credits"`
+ Unlimited bool `json:"unlimited"`
+ Disabled bool `json:"disabled"`
+ IsPremium bool `json:"is_premium"`
+ IsAdmin bool `json:"is_admin"`
+ PremiumDiscountPct int `json:"premium_discount_pct,omitempty"`
+ CreatedAt interface{} `json:"created_at,omitempty"`
}
type AccountCreateRequest struct {
diff --git a/internal/models/crypto.go b/internal/models/crypto.go
new file mode 100644
index 0000000..1900037
--- /dev/null
+++ b/internal/models/crypto.go
@@ -0,0 +1,12 @@
+package models
+
+type CryptoResponse struct {
+ Query string `json:"query"`
+ Response string `json:"response"`
+ Credits struct {
+ Remaining int `json:"remaining"`
+ Unlimited bool `json:"unlimited"`
+ } `json:"credits"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}
diff --git a/internal/models/email.go b/internal/models/email.go
new file mode 100644
index 0000000..0b95e85
--- /dev/null
+++ b/internal/models/email.go
@@ -0,0 +1,21 @@
+package models
+
+type EmailVerifyResponse struct {
+ Email string `json:"email"`
+ Status string `json:"status"`
+ Score int `json:"score"`
+ Regexp bool `json:"regexp"`
+ MXRecords bool `json:"mx_records"`
+ MXServer string `json:"mx_server,omitempty"`
+ SMTPServer bool `json:"smtp_server"`
+ SMTPCheck bool `json:"smtp_check"`
+ Disposable bool `json:"disposable"`
+ Webmail bool `json:"webmail"`
+ Block bool `json:"block"`
+ Gibberish bool `json:"gibberish"`
+ ErrorMessage string `json:"error_message,omitempty"`
+ VerifiedAt string `json:"verified_at,omitempty"`
+ ResponseTimeMs int `json:"response_time_ms"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}
diff --git a/internal/models/github.go b/internal/models/github.go
index fc1c9c3..3b7fc73 100644
--- a/internal/models/github.go
+++ b/internal/models/github.go
@@ -9,4 +9,5 @@ type GitHubLead struct {
Website string `json:"website,omitempty"`
Twitter string `json:"twitter,omitempty"`
PFP string `json:"pfp,omitempty"`
+ Bio string `json:"bio,omitempty"`
}
diff --git a/internal/models/telegram.go b/internal/models/telegram.go
new file mode 100644
index 0000000..05900cb
--- /dev/null
+++ b/internal/models/telegram.go
@@ -0,0 +1,12 @@
+package models
+
+type TelegramPhoneResponse struct {
+ Identifier string `json:"identifier"`
+ PhoneNumber string `json:"phone_number"`
+ Credits struct {
+ Remaining int `json:"remaining"`
+ Unlimited bool `json:"unlimited"`
+ } `json:"credits"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}