@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
|
@@ -58,7 +58,7 @@ export type Details = {
|
|
|
58
58
|
targetType: string;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
export type
|
|
61
|
+
export type Timeline = {
|
|
62
62
|
application: number;
|
|
63
63
|
content: number;
|
|
64
64
|
created: number;
|
|
@@ -71,7 +71,7 @@ export type ModAction = {
|
|
|
71
71
|
id: string;
|
|
72
72
|
status: string;
|
|
73
73
|
tags: Array<string>;
|
|
74
|
-
timeline:
|
|
74
|
+
timeline: Timeline;
|
|
75
75
|
title: string;
|
|
76
76
|
};
|
|
77
77
|
|
|
@@ -345,22 +345,20 @@ export function detailsFromJSON(
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
/** @internal */
|
|
348
|
-
export const
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
created: types.number(),
|
|
355
|
-
});
|
|
348
|
+
export const Timeline$inboundSchema: z.ZodMiniType<Timeline, unknown> = z
|
|
349
|
+
.object({
|
|
350
|
+
application: types.number(),
|
|
351
|
+
content: types.number(),
|
|
352
|
+
created: types.number(),
|
|
353
|
+
});
|
|
356
354
|
|
|
357
|
-
export function
|
|
355
|
+
export function timelineFromJSON(
|
|
358
356
|
jsonString: string,
|
|
359
|
-
): SafeParseResult<
|
|
357
|
+
): SafeParseResult<Timeline, SDKValidationError> {
|
|
360
358
|
return safeParse(
|
|
361
359
|
jsonString,
|
|
362
|
-
(x) =>
|
|
363
|
-
`Failed to parse '
|
|
360
|
+
(x) => Timeline$inboundSchema.parse(JSON.parse(x)),
|
|
361
|
+
`Failed to parse 'Timeline' from JSON`,
|
|
364
362
|
);
|
|
365
363
|
}
|
|
366
364
|
|
|
@@ -373,7 +371,7 @@ export const ModAction$inboundSchema: z.ZodMiniType<ModAction, unknown> = z
|
|
|
373
371
|
id: types.string(),
|
|
374
372
|
status: types.string(),
|
|
375
373
|
tags: z.array(types.string()),
|
|
376
|
-
timeline: z.lazy(() =>
|
|
374
|
+
timeline: z.lazy(() => Timeline$inboundSchema),
|
|
377
375
|
title: types.string(),
|
|
378
376
|
});
|
|
379
377
|
|
|
@@ -14,26 +14,30 @@ export type SearchDnsRequest = {
|
|
|
14
14
|
query: string;
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
+
export type ACn = string | Array<string>;
|
|
18
|
+
|
|
17
19
|
export type BannersA = {
|
|
18
20
|
altN?: Array<string> | undefined;
|
|
19
21
|
apps?: Array<string> | undefined;
|
|
20
|
-
cn?: Array<string> | undefined;
|
|
22
|
+
cn?: string | Array<string> | undefined;
|
|
21
23
|
redirectLocation?: string | undefined;
|
|
22
24
|
server?: string | undefined;
|
|
23
25
|
title?: string | undefined;
|
|
24
26
|
};
|
|
25
27
|
|
|
26
|
-
export type
|
|
28
|
+
export type BannersAUnion = string | BannersA;
|
|
29
|
+
|
|
30
|
+
export type ABannersUnion = string | { [k: string]: string | BannersA };
|
|
27
31
|
|
|
28
32
|
export type AIp = {
|
|
29
33
|
asn: string;
|
|
30
34
|
asnName: string;
|
|
31
35
|
asnRange: string;
|
|
32
|
-
banners: string | { [k: string]: BannersA };
|
|
33
36
|
country: string;
|
|
34
37
|
countryCode: string;
|
|
35
38
|
ip: string;
|
|
36
39
|
ptr: string;
|
|
40
|
+
banners?: string | { [k: string]: string | BannersA } | undefined;
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
export type A = {
|
|
@@ -41,26 +45,30 @@ export type A = {
|
|
|
41
45
|
ips: Array<AIp>;
|
|
42
46
|
};
|
|
43
47
|
|
|
48
|
+
export type CnameCn = string | Array<string>;
|
|
49
|
+
|
|
44
50
|
export type BannersCname = {
|
|
45
51
|
altN?: Array<string> | undefined;
|
|
46
52
|
apps?: Array<string> | undefined;
|
|
47
|
-
cn?: Array<string> | undefined;
|
|
53
|
+
cn?: string | Array<string> | undefined;
|
|
48
54
|
redirectLocation?: string | undefined;
|
|
49
55
|
server?: string | undefined;
|
|
50
56
|
title?: string | undefined;
|
|
51
57
|
};
|
|
52
58
|
|
|
53
|
-
export type
|
|
59
|
+
export type BannersCnameUnion = string | BannersCname;
|
|
60
|
+
|
|
61
|
+
export type CnameBannersUnion = string | { [k: string]: string | BannersCname };
|
|
54
62
|
|
|
55
63
|
export type CnameIp = {
|
|
56
64
|
asn: string;
|
|
57
65
|
asnName: string;
|
|
58
66
|
asnRange: string;
|
|
59
|
-
banners: string | { [k: string]: BannersCname };
|
|
60
67
|
country: string;
|
|
61
68
|
countryCode: string;
|
|
62
69
|
ip: string;
|
|
63
70
|
ptr: string;
|
|
71
|
+
banners?: string | { [k: string]: string | BannersCname } | undefined;
|
|
64
72
|
};
|
|
65
73
|
|
|
66
74
|
export type Cname = {
|
|
@@ -68,26 +76,30 @@ export type Cname = {
|
|
|
68
76
|
ips: Array<CnameIp>;
|
|
69
77
|
};
|
|
70
78
|
|
|
79
|
+
export type MxCn = string | Array<string>;
|
|
80
|
+
|
|
71
81
|
export type BannersMx = {
|
|
72
82
|
altN?: Array<string> | undefined;
|
|
73
83
|
apps?: Array<string> | undefined;
|
|
74
|
-
cn?: Array<string> | undefined;
|
|
84
|
+
cn?: string | Array<string> | undefined;
|
|
75
85
|
redirectLocation?: string | undefined;
|
|
76
86
|
server?: string | undefined;
|
|
77
87
|
title?: string | undefined;
|
|
78
88
|
};
|
|
79
89
|
|
|
80
|
-
export type
|
|
90
|
+
export type BannersMxUnion = string | BannersMx;
|
|
91
|
+
|
|
92
|
+
export type MxBannersUnion = string | { [k: string]: string | BannersMx };
|
|
81
93
|
|
|
82
94
|
export type MxIp = {
|
|
83
95
|
asn: string;
|
|
84
96
|
asnName: string;
|
|
85
97
|
asnRange: string;
|
|
86
|
-
banners: string | { [k: string]: BannersMx };
|
|
87
98
|
country: string;
|
|
88
99
|
countryCode: string;
|
|
89
100
|
ip: string;
|
|
90
101
|
ptr: string;
|
|
102
|
+
banners?: string | { [k: string]: string | BannersMx } | undefined;
|
|
91
103
|
};
|
|
92
104
|
|
|
93
105
|
export type Mx = {
|
|
@@ -95,26 +107,30 @@ export type Mx = {
|
|
|
95
107
|
ips: Array<MxIp>;
|
|
96
108
|
};
|
|
97
109
|
|
|
110
|
+
export type NCn = string | Array<string>;
|
|
111
|
+
|
|
98
112
|
export type BannersN = {
|
|
99
113
|
altN?: Array<string> | undefined;
|
|
100
114
|
apps?: Array<string> | undefined;
|
|
101
|
-
cn?: Array<string> | undefined;
|
|
115
|
+
cn?: string | Array<string> | undefined;
|
|
102
116
|
redirectLocation?: string | undefined;
|
|
103
117
|
server?: string | undefined;
|
|
104
118
|
title?: string | undefined;
|
|
105
119
|
};
|
|
106
120
|
|
|
107
|
-
export type
|
|
121
|
+
export type BannersNUnion = string | BannersN;
|
|
122
|
+
|
|
123
|
+
export type NBannersUnion = string | { [k: string]: string | BannersN };
|
|
108
124
|
|
|
109
125
|
export type NIp = {
|
|
110
126
|
asn: string;
|
|
111
127
|
asnName: string;
|
|
112
128
|
asnRange: string;
|
|
113
|
-
banners: string | { [k: string]: BannersN };
|
|
114
129
|
country: string;
|
|
115
130
|
countryCode: string;
|
|
116
131
|
ip: string;
|
|
117
132
|
ptr: string;
|
|
133
|
+
banners?: string | { [k: string]: string | BannersN } | undefined;
|
|
118
134
|
};
|
|
119
135
|
|
|
120
136
|
export type N = {
|
|
@@ -163,12 +179,28 @@ export function searchDnsRequestToJSON(
|
|
|
163
179
|
);
|
|
164
180
|
}
|
|
165
181
|
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const ACn$inboundSchema: z.ZodMiniType<ACn, unknown> = smartUnion([
|
|
184
|
+
types.string(),
|
|
185
|
+
z.array(types.string()),
|
|
186
|
+
]);
|
|
187
|
+
|
|
188
|
+
export function aCnFromJSON(
|
|
189
|
+
jsonString: string,
|
|
190
|
+
): SafeParseResult<ACn, SDKValidationError> {
|
|
191
|
+
return safeParse(
|
|
192
|
+
jsonString,
|
|
193
|
+
(x) => ACn$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
+
`Failed to parse 'ACn' from JSON`,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
166
198
|
/** @internal */
|
|
167
199
|
export const BannersA$inboundSchema: z.ZodMiniType<BannersA, unknown> = z.pipe(
|
|
168
200
|
z.object({
|
|
169
201
|
alt_n: types.optional(z.array(types.string())),
|
|
170
202
|
apps: types.optional(z.array(types.string())),
|
|
171
|
-
cn: types.optional(z.array(types.string())),
|
|
203
|
+
cn: types.optional(smartUnion([types.string(), z.array(types.string())])),
|
|
172
204
|
redirect_location: types.optional(types.string()),
|
|
173
205
|
server: types.optional(types.string()),
|
|
174
206
|
title: types.optional(types.string()),
|
|
@@ -191,13 +223,32 @@ export function bannersAFromJSON(
|
|
|
191
223
|
);
|
|
192
224
|
}
|
|
193
225
|
|
|
226
|
+
/** @internal */
|
|
227
|
+
export const BannersAUnion$inboundSchema: z.ZodMiniType<
|
|
228
|
+
BannersAUnion,
|
|
229
|
+
unknown
|
|
230
|
+
> = smartUnion([types.string(), z.lazy(() => BannersA$inboundSchema)]);
|
|
231
|
+
|
|
232
|
+
export function bannersAUnionFromJSON(
|
|
233
|
+
jsonString: string,
|
|
234
|
+
): SafeParseResult<BannersAUnion, SDKValidationError> {
|
|
235
|
+
return safeParse(
|
|
236
|
+
jsonString,
|
|
237
|
+
(x) => BannersAUnion$inboundSchema.parse(JSON.parse(x)),
|
|
238
|
+
`Failed to parse 'BannersAUnion' from JSON`,
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
194
242
|
/** @internal */
|
|
195
243
|
export const ABannersUnion$inboundSchema: z.ZodMiniType<
|
|
196
244
|
ABannersUnion,
|
|
197
245
|
unknown
|
|
198
246
|
> = smartUnion([
|
|
199
247
|
types.string(),
|
|
200
|
-
z.record(
|
|
248
|
+
z.record(
|
|
249
|
+
z.string(),
|
|
250
|
+
smartUnion([types.string(), z.lazy(() => BannersA$inboundSchema)]),
|
|
251
|
+
),
|
|
201
252
|
]);
|
|
202
253
|
|
|
203
254
|
export function aBannersUnionFromJSON(
|
|
@@ -216,14 +267,19 @@ export const AIp$inboundSchema: z.ZodMiniType<AIp, unknown> = z.pipe(
|
|
|
216
267
|
asn: types.string(),
|
|
217
268
|
asn_name: types.string(),
|
|
218
269
|
asn_range: types.string(),
|
|
219
|
-
banners: smartUnion([
|
|
220
|
-
types.string(),
|
|
221
|
-
z.record(z.string(), z.lazy(() => BannersA$inboundSchema)),
|
|
222
|
-
]),
|
|
223
270
|
country: types.string(),
|
|
224
271
|
country_code: types.string(),
|
|
225
272
|
ip: types.string(),
|
|
226
273
|
ptr: types.string(),
|
|
274
|
+
banners: types.optional(
|
|
275
|
+
smartUnion([
|
|
276
|
+
types.string(),
|
|
277
|
+
z.record(
|
|
278
|
+
z.string(),
|
|
279
|
+
smartUnion([types.string(), z.lazy(() => BannersA$inboundSchema)]),
|
|
280
|
+
),
|
|
281
|
+
]),
|
|
282
|
+
),
|
|
227
283
|
}),
|
|
228
284
|
z.transform((v) => {
|
|
229
285
|
return remap$(v, {
|
|
@@ -260,13 +316,27 @@ export function aFromJSON(
|
|
|
260
316
|
);
|
|
261
317
|
}
|
|
262
318
|
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const CnameCn$inboundSchema: z.ZodMiniType<CnameCn, unknown> =
|
|
321
|
+
smartUnion([types.string(), z.array(types.string())]);
|
|
322
|
+
|
|
323
|
+
export function cnameCnFromJSON(
|
|
324
|
+
jsonString: string,
|
|
325
|
+
): SafeParseResult<CnameCn, SDKValidationError> {
|
|
326
|
+
return safeParse(
|
|
327
|
+
jsonString,
|
|
328
|
+
(x) => CnameCn$inboundSchema.parse(JSON.parse(x)),
|
|
329
|
+
`Failed to parse 'CnameCn' from JSON`,
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
|
|
263
333
|
/** @internal */
|
|
264
334
|
export const BannersCname$inboundSchema: z.ZodMiniType<BannersCname, unknown> =
|
|
265
335
|
z.pipe(
|
|
266
336
|
z.object({
|
|
267
337
|
alt_n: types.optional(z.array(types.string())),
|
|
268
338
|
apps: types.optional(z.array(types.string())),
|
|
269
|
-
cn: types.optional(z.array(types.string())),
|
|
339
|
+
cn: types.optional(smartUnion([types.string(), z.array(types.string())])),
|
|
270
340
|
redirect_location: types.optional(types.string()),
|
|
271
341
|
server: types.optional(types.string()),
|
|
272
342
|
title: types.optional(types.string()),
|
|
@@ -289,13 +359,32 @@ export function bannersCnameFromJSON(
|
|
|
289
359
|
);
|
|
290
360
|
}
|
|
291
361
|
|
|
362
|
+
/** @internal */
|
|
363
|
+
export const BannersCnameUnion$inboundSchema: z.ZodMiniType<
|
|
364
|
+
BannersCnameUnion,
|
|
365
|
+
unknown
|
|
366
|
+
> = smartUnion([types.string(), z.lazy(() => BannersCname$inboundSchema)]);
|
|
367
|
+
|
|
368
|
+
export function bannersCnameUnionFromJSON(
|
|
369
|
+
jsonString: string,
|
|
370
|
+
): SafeParseResult<BannersCnameUnion, SDKValidationError> {
|
|
371
|
+
return safeParse(
|
|
372
|
+
jsonString,
|
|
373
|
+
(x) => BannersCnameUnion$inboundSchema.parse(JSON.parse(x)),
|
|
374
|
+
`Failed to parse 'BannersCnameUnion' from JSON`,
|
|
375
|
+
);
|
|
376
|
+
}
|
|
377
|
+
|
|
292
378
|
/** @internal */
|
|
293
379
|
export const CnameBannersUnion$inboundSchema: z.ZodMiniType<
|
|
294
380
|
CnameBannersUnion,
|
|
295
381
|
unknown
|
|
296
382
|
> = smartUnion([
|
|
297
383
|
types.string(),
|
|
298
|
-
z.record(
|
|
384
|
+
z.record(
|
|
385
|
+
z.string(),
|
|
386
|
+
smartUnion([types.string(), z.lazy(() => BannersCname$inboundSchema)]),
|
|
387
|
+
),
|
|
299
388
|
]);
|
|
300
389
|
|
|
301
390
|
export function cnameBannersUnionFromJSON(
|
|
@@ -314,14 +403,22 @@ export const CnameIp$inboundSchema: z.ZodMiniType<CnameIp, unknown> = z.pipe(
|
|
|
314
403
|
asn: types.string(),
|
|
315
404
|
asn_name: types.string(),
|
|
316
405
|
asn_range: types.string(),
|
|
317
|
-
banners: smartUnion([
|
|
318
|
-
types.string(),
|
|
319
|
-
z.record(z.string(), z.lazy(() => BannersCname$inboundSchema)),
|
|
320
|
-
]),
|
|
321
406
|
country: types.string(),
|
|
322
407
|
country_code: types.string(),
|
|
323
408
|
ip: types.string(),
|
|
324
409
|
ptr: types.string(),
|
|
410
|
+
banners: types.optional(
|
|
411
|
+
smartUnion([
|
|
412
|
+
types.string(),
|
|
413
|
+
z.record(
|
|
414
|
+
z.string(),
|
|
415
|
+
smartUnion([
|
|
416
|
+
types.string(),
|
|
417
|
+
z.lazy(() => BannersCname$inboundSchema),
|
|
418
|
+
]),
|
|
419
|
+
),
|
|
420
|
+
]),
|
|
421
|
+
),
|
|
325
422
|
}),
|
|
326
423
|
z.transform((v) => {
|
|
327
424
|
return remap$(v, {
|
|
@@ -358,13 +455,29 @@ export function cnameFromJSON(
|
|
|
358
455
|
);
|
|
359
456
|
}
|
|
360
457
|
|
|
458
|
+
/** @internal */
|
|
459
|
+
export const MxCn$inboundSchema: z.ZodMiniType<MxCn, unknown> = smartUnion([
|
|
460
|
+
types.string(),
|
|
461
|
+
z.array(types.string()),
|
|
462
|
+
]);
|
|
463
|
+
|
|
464
|
+
export function mxCnFromJSON(
|
|
465
|
+
jsonString: string,
|
|
466
|
+
): SafeParseResult<MxCn, SDKValidationError> {
|
|
467
|
+
return safeParse(
|
|
468
|
+
jsonString,
|
|
469
|
+
(x) => MxCn$inboundSchema.parse(JSON.parse(x)),
|
|
470
|
+
`Failed to parse 'MxCn' from JSON`,
|
|
471
|
+
);
|
|
472
|
+
}
|
|
473
|
+
|
|
361
474
|
/** @internal */
|
|
362
475
|
export const BannersMx$inboundSchema: z.ZodMiniType<BannersMx, unknown> = z
|
|
363
476
|
.pipe(
|
|
364
477
|
z.object({
|
|
365
478
|
alt_n: types.optional(z.array(types.string())),
|
|
366
479
|
apps: types.optional(z.array(types.string())),
|
|
367
|
-
cn: types.optional(z.array(types.string())),
|
|
480
|
+
cn: types.optional(smartUnion([types.string(), z.array(types.string())])),
|
|
368
481
|
redirect_location: types.optional(types.string()),
|
|
369
482
|
server: types.optional(types.string()),
|
|
370
483
|
title: types.optional(types.string()),
|
|
@@ -387,13 +500,32 @@ export function bannersMxFromJSON(
|
|
|
387
500
|
);
|
|
388
501
|
}
|
|
389
502
|
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const BannersMxUnion$inboundSchema: z.ZodMiniType<
|
|
505
|
+
BannersMxUnion,
|
|
506
|
+
unknown
|
|
507
|
+
> = smartUnion([types.string(), z.lazy(() => BannersMx$inboundSchema)]);
|
|
508
|
+
|
|
509
|
+
export function bannersMxUnionFromJSON(
|
|
510
|
+
jsonString: string,
|
|
511
|
+
): SafeParseResult<BannersMxUnion, SDKValidationError> {
|
|
512
|
+
return safeParse(
|
|
513
|
+
jsonString,
|
|
514
|
+
(x) => BannersMxUnion$inboundSchema.parse(JSON.parse(x)),
|
|
515
|
+
`Failed to parse 'BannersMxUnion' from JSON`,
|
|
516
|
+
);
|
|
517
|
+
}
|
|
518
|
+
|
|
390
519
|
/** @internal */
|
|
391
520
|
export const MxBannersUnion$inboundSchema: z.ZodMiniType<
|
|
392
521
|
MxBannersUnion,
|
|
393
522
|
unknown
|
|
394
523
|
> = smartUnion([
|
|
395
524
|
types.string(),
|
|
396
|
-
z.record(
|
|
525
|
+
z.record(
|
|
526
|
+
z.string(),
|
|
527
|
+
smartUnion([types.string(), z.lazy(() => BannersMx$inboundSchema)]),
|
|
528
|
+
),
|
|
397
529
|
]);
|
|
398
530
|
|
|
399
531
|
export function mxBannersUnionFromJSON(
|
|
@@ -412,14 +544,19 @@ export const MxIp$inboundSchema: z.ZodMiniType<MxIp, unknown> = z.pipe(
|
|
|
412
544
|
asn: types.string(),
|
|
413
545
|
asn_name: types.string(),
|
|
414
546
|
asn_range: types.string(),
|
|
415
|
-
banners: smartUnion([
|
|
416
|
-
types.string(),
|
|
417
|
-
z.record(z.string(), z.lazy(() => BannersMx$inboundSchema)),
|
|
418
|
-
]),
|
|
419
547
|
country: types.string(),
|
|
420
548
|
country_code: types.string(),
|
|
421
549
|
ip: types.string(),
|
|
422
550
|
ptr: types.string(),
|
|
551
|
+
banners: types.optional(
|
|
552
|
+
smartUnion([
|
|
553
|
+
types.string(),
|
|
554
|
+
z.record(
|
|
555
|
+
z.string(),
|
|
556
|
+
smartUnion([types.string(), z.lazy(() => BannersMx$inboundSchema)]),
|
|
557
|
+
),
|
|
558
|
+
]),
|
|
559
|
+
),
|
|
423
560
|
}),
|
|
424
561
|
z.transform((v) => {
|
|
425
562
|
return remap$(v, {
|
|
@@ -456,12 +593,28 @@ export function mxFromJSON(
|
|
|
456
593
|
);
|
|
457
594
|
}
|
|
458
595
|
|
|
596
|
+
/** @internal */
|
|
597
|
+
export const NCn$inboundSchema: z.ZodMiniType<NCn, unknown> = smartUnion([
|
|
598
|
+
types.string(),
|
|
599
|
+
z.array(types.string()),
|
|
600
|
+
]);
|
|
601
|
+
|
|
602
|
+
export function nCnFromJSON(
|
|
603
|
+
jsonString: string,
|
|
604
|
+
): SafeParseResult<NCn, SDKValidationError> {
|
|
605
|
+
return safeParse(
|
|
606
|
+
jsonString,
|
|
607
|
+
(x) => NCn$inboundSchema.parse(JSON.parse(x)),
|
|
608
|
+
`Failed to parse 'NCn' from JSON`,
|
|
609
|
+
);
|
|
610
|
+
}
|
|
611
|
+
|
|
459
612
|
/** @internal */
|
|
460
613
|
export const BannersN$inboundSchema: z.ZodMiniType<BannersN, unknown> = z.pipe(
|
|
461
614
|
z.object({
|
|
462
615
|
alt_n: types.optional(z.array(types.string())),
|
|
463
616
|
apps: types.optional(z.array(types.string())),
|
|
464
|
-
cn: types.optional(z.array(types.string())),
|
|
617
|
+
cn: types.optional(smartUnion([types.string(), z.array(types.string())])),
|
|
465
618
|
redirect_location: types.optional(types.string()),
|
|
466
619
|
server: types.optional(types.string()),
|
|
467
620
|
title: types.optional(types.string()),
|
|
@@ -484,13 +637,32 @@ export function bannersNFromJSON(
|
|
|
484
637
|
);
|
|
485
638
|
}
|
|
486
639
|
|
|
640
|
+
/** @internal */
|
|
641
|
+
export const BannersNUnion$inboundSchema: z.ZodMiniType<
|
|
642
|
+
BannersNUnion,
|
|
643
|
+
unknown
|
|
644
|
+
> = smartUnion([types.string(), z.lazy(() => BannersN$inboundSchema)]);
|
|
645
|
+
|
|
646
|
+
export function bannersNUnionFromJSON(
|
|
647
|
+
jsonString: string,
|
|
648
|
+
): SafeParseResult<BannersNUnion, SDKValidationError> {
|
|
649
|
+
return safeParse(
|
|
650
|
+
jsonString,
|
|
651
|
+
(x) => BannersNUnion$inboundSchema.parse(JSON.parse(x)),
|
|
652
|
+
`Failed to parse 'BannersNUnion' from JSON`,
|
|
653
|
+
);
|
|
654
|
+
}
|
|
655
|
+
|
|
487
656
|
/** @internal */
|
|
488
657
|
export const NBannersUnion$inboundSchema: z.ZodMiniType<
|
|
489
658
|
NBannersUnion,
|
|
490
659
|
unknown
|
|
491
660
|
> = smartUnion([
|
|
492
661
|
types.string(),
|
|
493
|
-
z.record(
|
|
662
|
+
z.record(
|
|
663
|
+
z.string(),
|
|
664
|
+
smartUnion([types.string(), z.lazy(() => BannersN$inboundSchema)]),
|
|
665
|
+
),
|
|
494
666
|
]);
|
|
495
667
|
|
|
496
668
|
export function nBannersUnionFromJSON(
|
|
@@ -509,14 +681,19 @@ export const NIp$inboundSchema: z.ZodMiniType<NIp, unknown> = z.pipe(
|
|
|
509
681
|
asn: types.string(),
|
|
510
682
|
asn_name: types.string(),
|
|
511
683
|
asn_range: types.string(),
|
|
512
|
-
banners: smartUnion([
|
|
513
|
-
types.string(),
|
|
514
|
-
z.record(z.string(), z.lazy(() => BannersN$inboundSchema)),
|
|
515
|
-
]),
|
|
516
684
|
country: types.string(),
|
|
517
685
|
country_code: types.string(),
|
|
518
686
|
ip: types.string(),
|
|
519
687
|
ptr: types.string(),
|
|
688
|
+
banners: types.optional(
|
|
689
|
+
smartUnion([
|
|
690
|
+
types.string(),
|
|
691
|
+
z.record(
|
|
692
|
+
z.string(),
|
|
693
|
+
smartUnion([types.string(), z.lazy(() => BannersN$inboundSchema)]),
|
|
694
|
+
),
|
|
695
|
+
]),
|
|
696
|
+
),
|
|
520
697
|
}),
|
|
521
698
|
z.transform((v) => {
|
|
522
699
|
return remap$(v, {
|
|
@@ -12,23 +12,28 @@ export type SearchEmailRequest = {
|
|
|
12
12
|
query: string;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
export type SearchEmailWeb = {
|
|
16
|
+
aka?: Array<string> | undefined;
|
|
17
|
+
associates?: Array<string> | undefined;
|
|
18
|
+
children?: number | undefined;
|
|
19
|
+
currentAddress?: string | undefined;
|
|
20
|
+
emails?: Array<string> | undefined;
|
|
21
|
+
error?: string | undefined;
|
|
22
|
+
maritalStatus?: string | undefined;
|
|
23
|
+
name?: string | null | undefined;
|
|
24
|
+
pastAddresses?: Array<string> | undefined;
|
|
25
|
+
phones?: Array<string> | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
15
28
|
export type SearchEmailData = {
|
|
16
|
-
|
|
17
|
-
associates: Array<string>;
|
|
18
|
-
children: number;
|
|
19
|
-
currentAddress: string;
|
|
20
|
-
emails: Array<string>;
|
|
21
|
-
maritalStatus: string;
|
|
22
|
-
name: string | null;
|
|
23
|
-
pastAddresses: Array<string>;
|
|
24
|
-
phones: Array<string>;
|
|
29
|
+
web: Array<SearchEmailWeb>;
|
|
25
30
|
};
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
33
|
* Search successful
|
|
29
34
|
*/
|
|
30
35
|
export type SearchEmailResponse = {
|
|
31
|
-
data:
|
|
36
|
+
data: SearchEmailData;
|
|
32
37
|
success: boolean;
|
|
33
38
|
error?: string | undefined;
|
|
34
39
|
};
|
|
@@ -54,20 +59,39 @@ export function searchEmailRequestToJSON(
|
|
|
54
59
|
);
|
|
55
60
|
}
|
|
56
61
|
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const SearchEmailWeb$inboundSchema: z.ZodMiniType<
|
|
64
|
+
SearchEmailWeb,
|
|
65
|
+
unknown
|
|
66
|
+
> = z.object({
|
|
67
|
+
aka: types.optional(z.array(types.string())),
|
|
68
|
+
associates: types.optional(z.array(types.string())),
|
|
69
|
+
children: types.optional(types.number()),
|
|
70
|
+
currentAddress: types.optional(types.string()),
|
|
71
|
+
emails: types.optional(z.array(types.string())),
|
|
72
|
+
error: types.optional(types.string()),
|
|
73
|
+
maritalStatus: types.optional(types.string()),
|
|
74
|
+
name: z.optional(z.nullable(types.string())),
|
|
75
|
+
pastAddresses: types.optional(z.array(types.string())),
|
|
76
|
+
phones: types.optional(z.array(types.string())),
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
export function searchEmailWebFromJSON(
|
|
80
|
+
jsonString: string,
|
|
81
|
+
): SafeParseResult<SearchEmailWeb, SDKValidationError> {
|
|
82
|
+
return safeParse(
|
|
83
|
+
jsonString,
|
|
84
|
+
(x) => SearchEmailWeb$inboundSchema.parse(JSON.parse(x)),
|
|
85
|
+
`Failed to parse 'SearchEmailWeb' from JSON`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
57
89
|
/** @internal */
|
|
58
90
|
export const SearchEmailData$inboundSchema: z.ZodMiniType<
|
|
59
91
|
SearchEmailData,
|
|
60
92
|
unknown
|
|
61
93
|
> = z.object({
|
|
62
|
-
|
|
63
|
-
associates: z.array(types.string()),
|
|
64
|
-
children: types.number(),
|
|
65
|
-
currentAddress: types.string(),
|
|
66
|
-
emails: z.array(types.string()),
|
|
67
|
-
maritalStatus: types.string(),
|
|
68
|
-
name: types.nullable(types.string()),
|
|
69
|
-
pastAddresses: z.array(types.string()),
|
|
70
|
-
phones: z.array(types.string()),
|
|
94
|
+
web: z.array(z.lazy(() => SearchEmailWeb$inboundSchema)),
|
|
71
95
|
});
|
|
72
96
|
|
|
73
97
|
export function searchEmailDataFromJSON(
|
|
@@ -85,7 +109,7 @@ export const SearchEmailResponse$inboundSchema: z.ZodMiniType<
|
|
|
85
109
|
SearchEmailResponse,
|
|
86
110
|
unknown
|
|
87
111
|
> = z.object({
|
|
88
|
-
data: z.
|
|
112
|
+
data: z.lazy(() => SearchEmailData$inboundSchema),
|
|
89
113
|
success: types.boolean(),
|
|
90
114
|
error: types.optional(types.string()),
|
|
91
115
|
});
|