@indiciaosint/sdk 1.0.1-patch → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/README.md +6 -6
  2. package/esm/funcs/intelligence-geolocate-media.d.ts +1 -1
  3. package/esm/funcs/intelligence-geolocate-media.js +1 -1
  4. package/esm/lib/config.d.ts +2 -2
  5. package/esm/lib/config.js +2 -2
  6. package/esm/models/operations/search-address.d.ts +18 -13
  7. package/esm/models/operations/search-address.d.ts.map +1 -1
  8. package/esm/models/operations/search-address.js +20 -13
  9. package/esm/models/operations/search-address.js.map +1 -1
  10. package/esm/models/operations/search-discord.d.ts +4 -4
  11. package/esm/models/operations/search-discord.d.ts.map +1 -1
  12. package/esm/models/operations/search-discord.js +5 -4
  13. package/esm/models/operations/search-discord.js.map +1 -1
  14. package/esm/models/operations/search-dns.d.ts +52 -20
  15. package/esm/models/operations/search-dns.d.ts.map +1 -1
  16. package/esm/models/operations/search-dns.js +76 -24
  17. package/esm/models/operations/search-dns.js.map +1 -1
  18. package/esm/models/operations/search-email.d.ts +17 -10
  19. package/esm/models/operations/search-email.d.ts.map +1 -1
  20. package/esm/models/operations/search-email.js +18 -10
  21. package/esm/models/operations/search-email.js.map +1 -1
  22. package/esm/models/operations/search-gmail.d.ts +94 -72
  23. package/esm/models/operations/search-gmail.d.ts.map +1 -1
  24. package/esm/models/operations/search-gmail.js +94 -69
  25. package/esm/models/operations/search-gmail.js.map +1 -1
  26. package/esm/models/operations/search-hudson-rock.d.ts +27 -23
  27. package/esm/models/operations/search-hudson-rock.d.ts.map +1 -1
  28. package/esm/models/operations/search-hudson-rock.js +23 -15
  29. package/esm/models/operations/search-hudson-rock.js.map +1 -1
  30. package/esm/models/operations/search-ip-info.d.ts +114 -25
  31. package/esm/models/operations/search-ip-info.d.ts.map +1 -1
  32. package/esm/models/operations/search-ip-info.js +172 -28
  33. package/esm/models/operations/search-ip-info.js.map +1 -1
  34. package/esm/models/operations/search-person.d.ts +18 -13
  35. package/esm/models/operations/search-person.d.ts.map +1 -1
  36. package/esm/models/operations/search-person.js +20 -13
  37. package/esm/models/operations/search-person.js.map +1 -1
  38. package/esm/models/operations/search-phone.d.ts +22 -28
  39. package/esm/models/operations/search-phone.d.ts.map +1 -1
  40. package/esm/models/operations/search-phone.js +25 -39
  41. package/esm/models/operations/search-phone.js.map +1 -1
  42. package/esm/models/operations/search-roblox.d.ts +9 -9
  43. package/esm/models/operations/search-roblox.d.ts.map +1 -1
  44. package/esm/models/operations/search-roblox.js +10 -10
  45. package/esm/models/operations/search-roblox.js.map +1 -1
  46. package/esm/models/operations/search-seon.d.ts +5 -5
  47. package/esm/models/operations/search-seon.d.ts.map +1 -1
  48. package/esm/models/operations/search-seon.js +5 -5
  49. package/esm/models/operations/search-seon.js.map +1 -1
  50. package/esm/models/operations/search-shodan.d.ts +94 -90
  51. package/esm/models/operations/search-shodan.d.ts.map +1 -1
  52. package/esm/models/operations/search-shodan.js +102 -96
  53. package/esm/models/operations/search-shodan.js.map +1 -1
  54. package/esm/models/operations/search-tiktok.d.ts +22 -363
  55. package/esm/models/operations/search-tiktok.d.ts.map +1 -1
  56. package/esm/models/operations/search-tiktok.js +23 -593
  57. package/esm/models/operations/search-tiktok.js.map +1 -1
  58. package/esm/models/operations/search-username.d.ts +9 -9
  59. package/esm/models/operations/search-username.d.ts.map +1 -1
  60. package/esm/models/operations/search-username.js +13 -16
  61. package/esm/models/operations/search-username.js.map +1 -1
  62. package/esm/models/operations/search-web-databases.d.ts +108 -311
  63. package/esm/models/operations/search-web-databases.d.ts.map +1 -1
  64. package/esm/models/operations/search-web-databases.js +115 -432
  65. package/esm/models/operations/search-web-databases.js.map +1 -1
  66. package/esm/models/operations/search-whois.d.ts +24 -59
  67. package/esm/models/operations/search-whois.d.ts.map +1 -1
  68. package/esm/models/operations/search-whois.js +24 -86
  69. package/esm/models/operations/search-whois.js.map +1 -1
  70. package/esm/sdk/intelligence.d.ts +1 -1
  71. package/esm/sdk/intelligence.js +1 -1
  72. package/jsr.json +1 -1
  73. package/package.json +5 -3
  74. package/src/funcs/intelligence-geolocate-media.ts +1 -1
  75. package/src/lib/config.ts +2 -2
  76. package/src/models/operations/search-address.ts +47 -26
  77. package/src/models/operations/search-discord.ts +13 -15
  78. package/src/models/operations/search-dns.ts +213 -36
  79. package/src/models/operations/search-email.ts +44 -20
  80. package/src/models/operations/search-gmail.ts +269 -152
  81. package/src/models/operations/search-hudson-rock.ts +61 -51
  82. package/src/models/operations/search-ip-info.ts +359 -52
  83. package/src/models/operations/search-person.ts +47 -26
  84. package/src/models/operations/search-phone.ts +56 -76
  85. package/src/models/operations/search-roblox.ts +27 -27
  86. package/src/models/operations/search-seon.ts +10 -10
  87. package/src/models/operations/search-shodan.ts +217 -196
  88. package/src/models/operations/search-tiktok.ts +45 -1366
  89. package/src/models/operations/search-username.ts +24 -32
  90. package/src/models/operations/search-web-databases.ts +308 -1000
  91. package/src/models/operations/search-whois.ts +49 -192
  92. package/src/sdk/intelligence.ts +1 -1
@@ -6,52 +6,34 @@ import * as z from "zod/v4-mini";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import * as types from "../../types/primitives.js";
9
- import { smartUnion } from "../../types/smart-union.js";
10
9
  import { SDKValidationError } from "../errors/sdk-validation-error.js";
11
10
 
12
11
  export type SearchWhoisRequest = {
13
12
  query: string;
14
13
  };
15
14
 
16
- export type VcardArray1 = {};
17
-
18
- export type VcardArrayUnion1 = string | { [k: string]: string } | VcardArray1;
19
-
20
- export type VcardArrayUnion2 =
21
- | string
22
- | Array<string | { [k: string]: string } | VcardArray1>;
23
-
24
- export type VcardArray2 = {};
25
-
26
- export type VcardArrayUnion3 = string | { [k: string]: string } | VcardArray2;
27
-
28
- export type VcardArrayUnion4 =
29
- | string
30
- | Array<string | { [k: string]: string } | VcardArray2>;
31
-
32
- export type Entity1 = {
33
- roles: Array<string>;
34
- vcardArray: Array<
35
- string | Array<string | { [k: string]: string } | VcardArray2>
36
- >;
15
+ export type Dates = {
16
+ created?: string | undefined;
17
+ expires?: string | undefined;
37
18
  };
38
19
 
39
- export type Entity2 = {
40
- handle: string;
41
- links: Array<{ [k: string]: string }>;
42
- roles: Array<string>;
43
- vcardArray: Array<
44
- string | Array<string | { [k: string]: string } | VcardArray1>
45
- >;
46
- entities?: Array<Entity1> | undefined;
20
+ export type Raw = {};
21
+
22
+ export type Registrar = {
23
+ abuseEmail: string;
24
+ abusePhone: string;
25
+ ianaId: string;
26
+ name: string;
27
+ url: string;
47
28
  };
48
29
 
49
30
  export type SearchWhoisData = {
50
- entities: Array<Entity2>;
51
- events: Array<{ [k: string]: string }>;
52
- ldhName: string;
53
- nameservers: Array<{ [k: string]: string }>;
54
- secureDNS: { [k: string]: string };
31
+ dates: Dates;
32
+ dnssec: { [k: string]: any };
33
+ domain: string;
34
+ nameservers: Array<{ [k: string]: any }>;
35
+ raw: Raw;
36
+ registrar: Registrar;
55
37
  status: Array<string>;
56
38
  };
57
39
 
@@ -86,177 +68,51 @@ export function searchWhoisRequestToJSON(
86
68
  }
87
69
 
88
70
  /** @internal */
89
- export const VcardArray1$inboundSchema: z.ZodMiniType<VcardArray1, unknown> = z
90
- .object({});
91
-
92
- export function vcardArray1FromJSON(
93
- jsonString: string,
94
- ): SafeParseResult<VcardArray1, SDKValidationError> {
95
- return safeParse(
96
- jsonString,
97
- (x) => VcardArray1$inboundSchema.parse(JSON.parse(x)),
98
- `Failed to parse 'VcardArray1' from JSON`,
99
- );
100
- }
101
-
102
- /** @internal */
103
- export const VcardArrayUnion1$inboundSchema: z.ZodMiniType<
104
- VcardArrayUnion1,
105
- unknown
106
- > = smartUnion([
107
- types.string(),
108
- z.record(z.string(), types.string()),
109
- z.lazy(() => VcardArray1$inboundSchema),
110
- ]);
111
-
112
- export function vcardArrayUnion1FromJSON(
113
- jsonString: string,
114
- ): SafeParseResult<VcardArrayUnion1, SDKValidationError> {
115
- return safeParse(
116
- jsonString,
117
- (x) => VcardArrayUnion1$inboundSchema.parse(JSON.parse(x)),
118
- `Failed to parse 'VcardArrayUnion1' from JSON`,
119
- );
120
- }
121
-
122
- /** @internal */
123
- export const VcardArrayUnion2$inboundSchema: z.ZodMiniType<
124
- VcardArrayUnion2,
125
- unknown
126
- > = smartUnion([
127
- types.string(),
128
- z.array(
129
- smartUnion([
130
- types.string(),
131
- z.record(z.string(), types.string()),
132
- z.lazy(() => VcardArray1$inboundSchema),
133
- ]),
134
- ),
135
- ]);
136
-
137
- export function vcardArrayUnion2FromJSON(
138
- jsonString: string,
139
- ): SafeParseResult<VcardArrayUnion2, SDKValidationError> {
140
- return safeParse(
141
- jsonString,
142
- (x) => VcardArrayUnion2$inboundSchema.parse(JSON.parse(x)),
143
- `Failed to parse 'VcardArrayUnion2' from JSON`,
144
- );
145
- }
146
-
147
- /** @internal */
148
- export const VcardArray2$inboundSchema: z.ZodMiniType<VcardArray2, unknown> = z
149
- .object({});
150
-
151
- export function vcardArray2FromJSON(
152
- jsonString: string,
153
- ): SafeParseResult<VcardArray2, SDKValidationError> {
154
- return safeParse(
155
- jsonString,
156
- (x) => VcardArray2$inboundSchema.parse(JSON.parse(x)),
157
- `Failed to parse 'VcardArray2' from JSON`,
158
- );
159
- }
160
-
161
- /** @internal */
162
- export const VcardArrayUnion3$inboundSchema: z.ZodMiniType<
163
- VcardArrayUnion3,
164
- unknown
165
- > = smartUnion([
166
- types.string(),
167
- z.record(z.string(), types.string()),
168
- z.lazy(() => VcardArray2$inboundSchema),
169
- ]);
170
-
171
- export function vcardArrayUnion3FromJSON(
172
- jsonString: string,
173
- ): SafeParseResult<VcardArrayUnion3, SDKValidationError> {
174
- return safeParse(
175
- jsonString,
176
- (x) => VcardArrayUnion3$inboundSchema.parse(JSON.parse(x)),
177
- `Failed to parse 'VcardArrayUnion3' from JSON`,
178
- );
179
- }
180
-
181
- /** @internal */
182
- export const VcardArrayUnion4$inboundSchema: z.ZodMiniType<
183
- VcardArrayUnion4,
184
- unknown
185
- > = smartUnion([
186
- types.string(),
187
- z.array(
188
- smartUnion([
189
- types.string(),
190
- z.record(z.string(), types.string()),
191
- z.lazy(() => VcardArray2$inboundSchema),
192
- ]),
193
- ),
194
- ]);
71
+ export const Dates$inboundSchema: z.ZodMiniType<Dates, unknown> = z.object({
72
+ created: types.optional(types.string()),
73
+ expires: types.optional(types.string()),
74
+ });
195
75
 
196
- export function vcardArrayUnion4FromJSON(
76
+ export function datesFromJSON(
197
77
  jsonString: string,
198
- ): SafeParseResult<VcardArrayUnion4, SDKValidationError> {
78
+ ): SafeParseResult<Dates, SDKValidationError> {
199
79
  return safeParse(
200
80
  jsonString,
201
- (x) => VcardArrayUnion4$inboundSchema.parse(JSON.parse(x)),
202
- `Failed to parse 'VcardArrayUnion4' from JSON`,
81
+ (x) => Dates$inboundSchema.parse(JSON.parse(x)),
82
+ `Failed to parse 'Dates' from JSON`,
203
83
  );
204
84
  }
205
85
 
206
86
  /** @internal */
207
- export const Entity1$inboundSchema: z.ZodMiniType<Entity1, unknown> = z.object({
208
- roles: z.array(types.string()),
209
- vcardArray: z.array(
210
- smartUnion([
211
- types.string(),
212
- z.array(
213
- smartUnion([
214
- types.string(),
215
- z.record(z.string(), types.string()),
216
- z.lazy(() => VcardArray2$inboundSchema),
217
- ]),
218
- ),
219
- ]),
220
- ),
221
- });
87
+ export const Raw$inboundSchema: z.ZodMiniType<Raw, unknown> = z.object({});
222
88
 
223
- export function entity1FromJSON(
89
+ export function rawFromJSON(
224
90
  jsonString: string,
225
- ): SafeParseResult<Entity1, SDKValidationError> {
91
+ ): SafeParseResult<Raw, SDKValidationError> {
226
92
  return safeParse(
227
93
  jsonString,
228
- (x) => Entity1$inboundSchema.parse(JSON.parse(x)),
229
- `Failed to parse 'Entity1' from JSON`,
94
+ (x) => Raw$inboundSchema.parse(JSON.parse(x)),
95
+ `Failed to parse 'Raw' from JSON`,
230
96
  );
231
97
  }
232
98
 
233
99
  /** @internal */
234
- export const Entity2$inboundSchema: z.ZodMiniType<Entity2, unknown> = z.object({
235
- handle: types.string(),
236
- links: z.array(z.record(z.string(), types.string())),
237
- roles: z.array(types.string()),
238
- vcardArray: z.array(
239
- smartUnion([
240
- types.string(),
241
- z.array(
242
- smartUnion([
243
- types.string(),
244
- z.record(z.string(), types.string()),
245
- z.lazy(() => VcardArray1$inboundSchema),
246
- ]),
247
- ),
248
- ]),
249
- ),
250
- entities: types.optional(z.array(z.lazy(() => Entity1$inboundSchema))),
251
- });
252
-
253
- export function entity2FromJSON(
100
+ export const Registrar$inboundSchema: z.ZodMiniType<Registrar, unknown> = z
101
+ .object({
102
+ abuseEmail: types.string(),
103
+ abusePhone: types.string(),
104
+ ianaId: types.string(),
105
+ name: types.string(),
106
+ url: types.string(),
107
+ });
108
+
109
+ export function registrarFromJSON(
254
110
  jsonString: string,
255
- ): SafeParseResult<Entity2, SDKValidationError> {
111
+ ): SafeParseResult<Registrar, SDKValidationError> {
256
112
  return safeParse(
257
113
  jsonString,
258
- (x) => Entity2$inboundSchema.parse(JSON.parse(x)),
259
- `Failed to parse 'Entity2' from JSON`,
114
+ (x) => Registrar$inboundSchema.parse(JSON.parse(x)),
115
+ `Failed to parse 'Registrar' from JSON`,
260
116
  );
261
117
  }
262
118
 
@@ -265,11 +121,12 @@ export const SearchWhoisData$inboundSchema: z.ZodMiniType<
265
121
  SearchWhoisData,
266
122
  unknown
267
123
  > = z.object({
268
- entities: z.array(z.lazy(() => Entity2$inboundSchema)),
269
- events: z.array(z.record(z.string(), types.string())),
270
- ldhName: types.string(),
271
- nameservers: z.array(z.record(z.string(), types.string())),
272
- secureDNS: z.record(z.string(), types.string()),
124
+ dates: z.lazy(() => Dates$inboundSchema),
125
+ dnssec: z.record(z.string(), z.any()),
126
+ domain: types.string(),
127
+ nameservers: z.array(z.record(z.string(), z.any())),
128
+ raw: z.lazy(() => Raw$inboundSchema),
129
+ registrar: z.lazy(() => Registrar$inboundSchema),
273
130
  status: z.array(types.string()),
274
131
  });
275
132
 
@@ -52,7 +52,7 @@ export class Intelligence extends ClientSDK {
52
52
  * Geolocate Media
53
53
  *
54
54
  * @remarks
55
- * Geolocate an image or video using AI-powered analysis. Streams progress updates via Server-Sent Events.
55
+ * Geolocate an image using AI-powered analysis. Streams progress updates via Server-Sent Events.
56
56
  *
57
57
  * Response type:
58
58
  * ```ts