@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.
- package/README.md +6 -6
- package/esm/funcs/intelligence-geolocate-media.d.ts +1 -1
- package/esm/funcs/intelligence-geolocate-media.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/search-address.d.ts +18 -13
- package/esm/models/operations/search-address.d.ts.map +1 -1
- package/esm/models/operations/search-address.js +20 -13
- package/esm/models/operations/search-address.js.map +1 -1
- package/esm/models/operations/search-discord.d.ts +4 -4
- package/esm/models/operations/search-discord.d.ts.map +1 -1
- package/esm/models/operations/search-discord.js +5 -4
- package/esm/models/operations/search-discord.js.map +1 -1
- package/esm/models/operations/search-dns.d.ts +52 -20
- package/esm/models/operations/search-dns.d.ts.map +1 -1
- package/esm/models/operations/search-dns.js +76 -24
- package/esm/models/operations/search-dns.js.map +1 -1
- package/esm/models/operations/search-email.d.ts +17 -10
- package/esm/models/operations/search-email.d.ts.map +1 -1
- package/esm/models/operations/search-email.js +18 -10
- package/esm/models/operations/search-email.js.map +1 -1
- package/esm/models/operations/search-gmail.d.ts +94 -72
- package/esm/models/operations/search-gmail.d.ts.map +1 -1
- package/esm/models/operations/search-gmail.js +94 -69
- package/esm/models/operations/search-gmail.js.map +1 -1
- package/esm/models/operations/search-hudson-rock.d.ts +27 -23
- package/esm/models/operations/search-hudson-rock.d.ts.map +1 -1
- package/esm/models/operations/search-hudson-rock.js +23 -15
- package/esm/models/operations/search-hudson-rock.js.map +1 -1
- package/esm/models/operations/search-ip-info.d.ts +114 -25
- package/esm/models/operations/search-ip-info.d.ts.map +1 -1
- package/esm/models/operations/search-ip-info.js +172 -28
- package/esm/models/operations/search-ip-info.js.map +1 -1
- package/esm/models/operations/search-person.d.ts +18 -13
- package/esm/models/operations/search-person.d.ts.map +1 -1
- package/esm/models/operations/search-person.js +20 -13
- package/esm/models/operations/search-person.js.map +1 -1
- package/esm/models/operations/search-phone.d.ts +22 -28
- package/esm/models/operations/search-phone.d.ts.map +1 -1
- package/esm/models/operations/search-phone.js +25 -39
- package/esm/models/operations/search-phone.js.map +1 -1
- package/esm/models/operations/search-roblox.d.ts +9 -9
- package/esm/models/operations/search-roblox.d.ts.map +1 -1
- package/esm/models/operations/search-roblox.js +10 -10
- package/esm/models/operations/search-roblox.js.map +1 -1
- package/esm/models/operations/search-seon.d.ts +5 -5
- package/esm/models/operations/search-seon.d.ts.map +1 -1
- package/esm/models/operations/search-seon.js +5 -5
- package/esm/models/operations/search-seon.js.map +1 -1
- package/esm/models/operations/search-shodan.d.ts +94 -90
- package/esm/models/operations/search-shodan.d.ts.map +1 -1
- package/esm/models/operations/search-shodan.js +102 -96
- package/esm/models/operations/search-shodan.js.map +1 -1
- package/esm/models/operations/search-tiktok.d.ts +22 -363
- package/esm/models/operations/search-tiktok.d.ts.map +1 -1
- package/esm/models/operations/search-tiktok.js +23 -593
- package/esm/models/operations/search-tiktok.js.map +1 -1
- package/esm/models/operations/search-username.d.ts +9 -9
- package/esm/models/operations/search-username.d.ts.map +1 -1
- package/esm/models/operations/search-username.js +13 -16
- package/esm/models/operations/search-username.js.map +1 -1
- package/esm/models/operations/search-web-databases.d.ts +108 -311
- package/esm/models/operations/search-web-databases.d.ts.map +1 -1
- package/esm/models/operations/search-web-databases.js +115 -432
- package/esm/models/operations/search-web-databases.js.map +1 -1
- package/esm/models/operations/search-whois.d.ts +24 -59
- package/esm/models/operations/search-whois.d.ts.map +1 -1
- package/esm/models/operations/search-whois.js +24 -86
- package/esm/models/operations/search-whois.js.map +1 -1
- package/esm/sdk/intelligence.d.ts +1 -1
- package/esm/sdk/intelligence.js +1 -1
- package/jsr.json +1 -1
- package/package.json +5 -3
- package/src/funcs/intelligence-geolocate-media.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/search-address.ts +47 -26
- package/src/models/operations/search-discord.ts +13 -15
- package/src/models/operations/search-dns.ts +213 -36
- package/src/models/operations/search-email.ts +44 -20
- package/src/models/operations/search-gmail.ts +269 -152
- package/src/models/operations/search-hudson-rock.ts +61 -51
- package/src/models/operations/search-ip-info.ts +359 -52
- package/src/models/operations/search-person.ts +47 -26
- package/src/models/operations/search-phone.ts +56 -76
- package/src/models/operations/search-roblox.ts +27 -27
- package/src/models/operations/search-seon.ts +10 -10
- package/src/models/operations/search-shodan.ts +217 -196
- package/src/models/operations/search-tiktok.ts +45 -1366
- package/src/models/operations/search-username.ts +24 -32
- package/src/models/operations/search-web-databases.ts +308 -1000
- package/src/models/operations/search-whois.ts +49 -192
- 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
|
|
17
|
-
|
|
18
|
-
|
|
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
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
nameservers: Array<{ [k: string]:
|
|
54
|
-
|
|
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
|
|
90
|
-
.
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|
76
|
+
export function datesFromJSON(
|
|
197
77
|
jsonString: string,
|
|
198
|
-
): SafeParseResult<
|
|
78
|
+
): SafeParseResult<Dates, SDKValidationError> {
|
|
199
79
|
return safeParse(
|
|
200
80
|
jsonString,
|
|
201
|
-
(x) =>
|
|
202
|
-
`Failed to parse '
|
|
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
|
|
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
|
|
89
|
+
export function rawFromJSON(
|
|
224
90
|
jsonString: string,
|
|
225
|
-
): SafeParseResult<
|
|
91
|
+
): SafeParseResult<Raw, SDKValidationError> {
|
|
226
92
|
return safeParse(
|
|
227
93
|
jsonString,
|
|
228
|
-
(x) =>
|
|
229
|
-
`Failed to parse '
|
|
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
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
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<
|
|
111
|
+
): SafeParseResult<Registrar, SDKValidationError> {
|
|
256
112
|
return safeParse(
|
|
257
113
|
jsonString,
|
|
258
|
-
(x) =>
|
|
259
|
-
`Failed to parse '
|
|
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
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
nameservers: z.array(z.record(z.string(),
|
|
272
|
-
|
|
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
|
|
package/src/sdk/intelligence.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class Intelligence extends ClientSDK {
|
|
|
52
52
|
* Geolocate Media
|
|
53
53
|
*
|
|
54
54
|
* @remarks
|
|
55
|
-
* Geolocate an image
|
|
55
|
+
* Geolocate an image using AI-powered analysis. Streams progress updates via Server-Sent Events.
|
|
56
56
|
*
|
|
57
57
|
* Response type:
|
|
58
58
|
* ```ts
|