@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
|
@@ -23,7 +23,7 @@ export const Service = {
|
|
|
23
23
|
} as const;
|
|
24
24
|
export type Service = ClosedEnum<typeof Service>;
|
|
25
25
|
|
|
26
|
-
export const
|
|
26
|
+
export const CloudsintType = {
|
|
27
27
|
Discordid: "discordid",
|
|
28
28
|
Email: "email",
|
|
29
29
|
Ip: "ip",
|
|
@@ -34,7 +34,7 @@ export const CloudsintTypeRequest = {
|
|
|
34
34
|
Url: "url",
|
|
35
35
|
Username: "username",
|
|
36
36
|
} as const;
|
|
37
|
-
export type
|
|
37
|
+
export type CloudsintType = ClosedEnum<typeof CloudsintType>;
|
|
38
38
|
|
|
39
39
|
export const IntelxType = {
|
|
40
40
|
Domain: "domain",
|
|
@@ -75,76 +75,50 @@ export type SnusbaseType = ClosedEnum<typeof SnusbaseType>;
|
|
|
75
75
|
export type SearchWebDatabasesRequest = {
|
|
76
76
|
query: string;
|
|
77
77
|
services: Array<Service>;
|
|
78
|
-
cloudsintType?:
|
|
78
|
+
cloudsintType?: CloudsintType | undefined;
|
|
79
79
|
intelxType?: IntelxType | undefined;
|
|
80
80
|
leakCheckType?: LeakCheckType | undefined;
|
|
81
81
|
snusbaseType?: SnusbaseType | undefined;
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
export type
|
|
85
|
-
email: string;
|
|
86
|
-
id: string;
|
|
87
|
-
importedAt: string;
|
|
88
|
-
password: string;
|
|
84
|
+
export type Breachvip = {
|
|
89
85
|
source: string;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
breachDate?: string | undefined;
|
|
87
|
+
categories?: Array<string> | undefined;
|
|
88
|
+
domain?: string | undefined;
|
|
89
|
+
email?: string | undefined;
|
|
90
|
+
password?: string | undefined;
|
|
94
91
|
};
|
|
95
92
|
|
|
96
|
-
export
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
} as const;
|
|
107
|
-
export type CloudsintTypeResponse = OpenEnum<typeof CloudsintTypeResponse>;
|
|
93
|
+
export type SearchWebDatabasesBreach = {
|
|
94
|
+
id: string;
|
|
95
|
+
email?: string | undefined;
|
|
96
|
+
importedAt?: string | undefined;
|
|
97
|
+
password?: string | undefined;
|
|
98
|
+
source?: string | undefined;
|
|
99
|
+
sourceDate?: string | undefined;
|
|
100
|
+
sourceName?: string | undefined;
|
|
101
|
+
username?: string | undefined;
|
|
102
|
+
};
|
|
108
103
|
|
|
109
|
-
export type
|
|
104
|
+
export type CloudsintData = {
|
|
110
105
|
breaches: Array<SearchWebDatabasesBreach>;
|
|
111
106
|
query: string;
|
|
112
107
|
totalMatches: number;
|
|
113
|
-
type: CloudsintTypeResponse;
|
|
114
108
|
};
|
|
115
109
|
|
|
116
110
|
export type Cloudsint = {
|
|
117
|
-
data:
|
|
111
|
+
data: CloudsintData;
|
|
118
112
|
duration: number;
|
|
119
113
|
success: boolean;
|
|
120
114
|
};
|
|
121
115
|
|
|
122
|
-
export type LogInfo = {
|
|
123
|
-
hwid: string | null;
|
|
124
|
-
name: string | null;
|
|
125
|
-
systemName: string | null;
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
export type Credential = {
|
|
129
|
-
logInfo: LogInfo;
|
|
130
|
-
date?: string | undefined;
|
|
131
|
-
login?: string | undefined;
|
|
132
|
-
password?: string | undefined;
|
|
133
|
-
url?: string | undefined;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export type Ghosint = {
|
|
137
|
-
count: number;
|
|
138
|
-
credentials: Array<Credential>;
|
|
139
|
-
resultId: string;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
116
|
export type ResultsSource = {
|
|
143
117
|
date?: string | undefined;
|
|
144
118
|
name?: string | undefined;
|
|
145
119
|
};
|
|
146
120
|
|
|
147
|
-
export type
|
|
121
|
+
export type ResultsResult = {
|
|
148
122
|
id: string;
|
|
149
123
|
source: ResultsSource;
|
|
150
124
|
email?: string | undefined;
|
|
@@ -163,18 +137,20 @@ export type Results = {
|
|
|
163
137
|
firstSeen: string;
|
|
164
138
|
found: number;
|
|
165
139
|
lastSeen: string;
|
|
166
|
-
results
|
|
140
|
+
results?: Array<ResultsResult> | undefined;
|
|
167
141
|
};
|
|
168
142
|
|
|
169
143
|
export type Hackcheck = {
|
|
170
|
-
results
|
|
144
|
+
results?: Results | undefined;
|
|
171
145
|
};
|
|
172
146
|
|
|
173
|
-
export type
|
|
147
|
+
export type ItemTag = {
|
|
174
148
|
class: number;
|
|
175
149
|
value: string;
|
|
176
150
|
};
|
|
177
151
|
|
|
152
|
+
export type ItemType = number | string;
|
|
153
|
+
|
|
178
154
|
export type Item = {
|
|
179
155
|
accesslevel?: number | undefined;
|
|
180
156
|
added?: string | undefined;
|
|
@@ -191,20 +167,46 @@ export type Item = {
|
|
|
191
167
|
size?: number | undefined;
|
|
192
168
|
storageid?: string | undefined;
|
|
193
169
|
systemid?: string | undefined;
|
|
194
|
-
tags?: Array<
|
|
195
|
-
type?: number | undefined;
|
|
170
|
+
tags?: Array<ItemTag> | undefined;
|
|
171
|
+
type?: number | string | undefined;
|
|
196
172
|
xscore?: number | undefined;
|
|
197
173
|
};
|
|
198
174
|
|
|
175
|
+
export type Tag = {
|
|
176
|
+
class: number;
|
|
177
|
+
value: string;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
export type SearchWebDatabasesType = number | string;
|
|
181
|
+
|
|
199
182
|
export type Identityportal = {
|
|
200
|
-
|
|
183
|
+
accesslevel?: number | undefined;
|
|
184
|
+
added?: string | undefined;
|
|
185
|
+
bucket?: string | undefined;
|
|
186
|
+
date?: string | undefined;
|
|
187
|
+
description?: string | undefined;
|
|
188
|
+
instore?: boolean | undefined;
|
|
201
189
|
item?: Item | undefined;
|
|
190
|
+
keyvalues?: any | undefined;
|
|
191
|
+
line?: string | undefined;
|
|
192
|
+
linea?: string | undefined;
|
|
202
193
|
lineraw?: string | undefined;
|
|
203
194
|
linesafterraw?: string | null | undefined;
|
|
204
195
|
linesbeforeraw?: string | null | undefined;
|
|
196
|
+
media?: number | undefined;
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
owner?: string | undefined;
|
|
205
199
|
positionabsolute?: number | undefined;
|
|
206
200
|
positionline?: number | undefined;
|
|
207
201
|
positionsize?: number | undefined;
|
|
202
|
+
relations?: any | undefined;
|
|
203
|
+
simhash?: number | undefined;
|
|
204
|
+
size?: number | undefined;
|
|
205
|
+
storageid?: string | undefined;
|
|
206
|
+
systemid?: string | undefined;
|
|
207
|
+
tags?: Array<Tag> | undefined;
|
|
208
|
+
type?: number | string | undefined;
|
|
209
|
+
xscore?: number | undefined;
|
|
208
210
|
};
|
|
209
211
|
|
|
210
212
|
export type Intelligencex = {
|
|
@@ -229,192 +231,38 @@ export const Unverified = {
|
|
|
229
231
|
} as const;
|
|
230
232
|
export type Unverified = OpenEnum<typeof Unverified>;
|
|
231
233
|
|
|
232
|
-
export type
|
|
233
|
-
breachDate
|
|
234
|
-
compilation
|
|
235
|
-
name
|
|
236
|
-
passwordless
|
|
237
|
-
unverified
|
|
234
|
+
export type LeakcheckSource = {
|
|
235
|
+
breachDate?: string | null | undefined;
|
|
236
|
+
compilation?: Compilation | undefined;
|
|
237
|
+
name?: string | undefined;
|
|
238
|
+
passwordless?: Passwordless | undefined;
|
|
239
|
+
unverified?: Unverified | undefined;
|
|
238
240
|
};
|
|
239
241
|
|
|
240
|
-
export type
|
|
241
|
-
address: string | null;
|
|
242
|
-
country: string | null;
|
|
243
|
-
dob: string | null;
|
|
244
|
-
email: string | null;
|
|
242
|
+
export type LeakcheckResult = {
|
|
245
243
|
fields: Array<string>;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
244
|
+
address?: string | undefined;
|
|
245
|
+
country?: string | undefined;
|
|
246
|
+
dob?: string | undefined;
|
|
247
|
+
email?: string | undefined;
|
|
248
|
+
firstName?: string | undefined;
|
|
249
|
+
lastName?: string | undefined;
|
|
250
|
+
name?: string | undefined;
|
|
251
|
+
password?: string | undefined;
|
|
252
|
+
phone?: string | undefined;
|
|
253
|
+
source?: LeakcheckSource | undefined;
|
|
254
|
+
state?: string | undefined;
|
|
255
|
+
zip?: string | undefined;
|
|
254
256
|
};
|
|
255
257
|
|
|
256
258
|
export type Leakcheck = {
|
|
257
|
-
error: string | null;
|
|
258
259
|
found: number;
|
|
259
|
-
|
|
260
|
-
result: Array<SearchWebDatabasesResult>;
|
|
260
|
+
result: Array<LeakcheckResult>;
|
|
261
261
|
success: boolean;
|
|
262
|
+
error?: string | undefined;
|
|
262
263
|
};
|
|
263
264
|
|
|
264
|
-
export type
|
|
265
|
-
email?: string | undefined;
|
|
266
|
-
nickName?: string | undefined;
|
|
267
|
-
password?: string | undefined;
|
|
268
|
-
url?: string | undefined;
|
|
269
|
-
additionalProperties?: { [k: string]: string | null } | undefined;
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
export type SearchWebDatabasesList = {
|
|
273
|
-
data: Array<Datum>;
|
|
274
|
-
infoLeak: string;
|
|
275
|
-
numOfResults: number;
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
export type Leakosint = {
|
|
279
|
-
list: { [k: string]: SearchWebDatabasesList };
|
|
280
|
-
numOfDatabase: number;
|
|
281
|
-
numOfResults: number;
|
|
282
|
-
price: number;
|
|
283
|
-
searchTime: number;
|
|
284
|
-
};
|
|
285
|
-
|
|
286
|
-
export type Body = {
|
|
287
|
-
bio?: string | undefined;
|
|
288
|
-
additionalProperties?: { [k: string]: string | null } | undefined;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
export type SearchWebDatabasesTimeline = {
|
|
292
|
-
groupItems: { [k: string]: any };
|
|
293
|
-
groupYears: { [k: string]: any };
|
|
294
|
-
groups: { [k: string]: any };
|
|
295
|
-
lastSeen: boolean;
|
|
296
|
-
lastSeenDate: string | null;
|
|
297
|
-
registered: boolean;
|
|
298
|
-
registeredDate: string | null;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
export type FrontSchema = {
|
|
302
|
-
body: Body;
|
|
303
|
-
image: string;
|
|
304
|
-
module: string;
|
|
305
|
-
tags: Array<string>;
|
|
306
|
-
timeline: SearchWebDatabasesTimeline;
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
export type Bio = {
|
|
310
|
-
properKey: string;
|
|
311
|
-
type: "str";
|
|
312
|
-
value: string;
|
|
313
|
-
};
|
|
314
|
-
|
|
315
|
-
export type SearchWebDatabasesId = {
|
|
316
|
-
properKey: string;
|
|
317
|
-
type: "str";
|
|
318
|
-
value: string;
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
export type SearchWebDatabasesLocation = {
|
|
322
|
-
properKey: string;
|
|
323
|
-
type: "str";
|
|
324
|
-
value: string;
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
export type Name = {
|
|
328
|
-
properKey: string;
|
|
329
|
-
type: "str";
|
|
330
|
-
value: string;
|
|
331
|
-
};
|
|
332
|
-
|
|
333
|
-
export type PictureUrl = {
|
|
334
|
-
properKey: string;
|
|
335
|
-
type: "str";
|
|
336
|
-
value: string;
|
|
337
|
-
};
|
|
338
|
-
|
|
339
|
-
export const PlatformVariableType = {
|
|
340
|
-
Bool: "bool",
|
|
341
|
-
List: "list",
|
|
342
|
-
Number: "number",
|
|
343
|
-
Str: "str",
|
|
344
|
-
} as const;
|
|
345
|
-
export type PlatformVariableType = OpenEnum<typeof PlatformVariableType>;
|
|
346
|
-
|
|
347
|
-
export type Value = {
|
|
348
|
-
url: string;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
export type ValueUnion = number | string | Array<Value> | boolean;
|
|
352
|
-
|
|
353
|
-
export type PlatformVariable = {
|
|
354
|
-
key: string;
|
|
355
|
-
properKey: string;
|
|
356
|
-
type: PlatformVariableType;
|
|
357
|
-
value: number | string | Array<Value> | boolean;
|
|
358
|
-
};
|
|
359
|
-
|
|
360
|
-
export type Private = {
|
|
361
|
-
properKey: string;
|
|
362
|
-
type: "bool";
|
|
363
|
-
value: boolean;
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
export type ProfileUrl = {
|
|
367
|
-
properKey: string;
|
|
368
|
-
type: "str";
|
|
369
|
-
value: string;
|
|
370
|
-
};
|
|
371
|
-
|
|
372
|
-
export type Registered = {
|
|
373
|
-
properKey: string;
|
|
374
|
-
type: "bool";
|
|
375
|
-
value: boolean;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
export type Verified = {
|
|
379
|
-
properKey: string;
|
|
380
|
-
type: "bool";
|
|
381
|
-
value: boolean;
|
|
382
|
-
};
|
|
383
|
-
|
|
384
|
-
export type SpecFormat = {
|
|
385
|
-
bio?: Bio | undefined;
|
|
386
|
-
id?: SearchWebDatabasesId | undefined;
|
|
387
|
-
location?: SearchWebDatabasesLocation | undefined;
|
|
388
|
-
name?: Name | undefined;
|
|
389
|
-
pictureUrl?: PictureUrl | undefined;
|
|
390
|
-
platformVariables?: Array<PlatformVariable> | undefined;
|
|
391
|
-
private?: Private | undefined;
|
|
392
|
-
profileUrl?: ProfileUrl | undefined;
|
|
393
|
-
registered?: Registered | undefined;
|
|
394
|
-
verified?: Verified | undefined;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
export const SearchWebDatabasesStatus = {
|
|
398
|
-
Found: "found",
|
|
399
|
-
NotFound: "not_found",
|
|
400
|
-
} as const;
|
|
401
|
-
export type SearchWebDatabasesStatus = OpenEnum<
|
|
402
|
-
typeof SearchWebDatabasesStatus
|
|
403
|
-
>;
|
|
404
|
-
|
|
405
|
-
export type Category = {
|
|
406
|
-
name: string;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
export type Osintindustry = {
|
|
410
|
-
data: { [k: string]: any };
|
|
411
|
-
frontSchemas: Array<FrontSchema>;
|
|
412
|
-
module: string;
|
|
413
|
-
reliableSource: boolean;
|
|
414
|
-
specFormat: Array<SpecFormat>;
|
|
415
|
-
status: SearchWebDatabasesStatus;
|
|
416
|
-
category?: Category | undefined;
|
|
417
|
-
};
|
|
265
|
+
export type SnusbaseUnion = string | any;
|
|
418
266
|
|
|
419
267
|
export type Snusbase = {
|
|
420
268
|
address?: string | undefined;
|
|
@@ -447,24 +295,24 @@ export type Snusbase = {
|
|
|
447
295
|
url?: string | undefined;
|
|
448
296
|
username?: string | undefined;
|
|
449
297
|
zip?: string | undefined;
|
|
298
|
+
additionalProperties?: { [k: string]: string | any } | undefined;
|
|
450
299
|
};
|
|
451
300
|
|
|
452
|
-
export type
|
|
301
|
+
export type SearchWebDatabasesData = {
|
|
302
|
+
breachvip?: Array<Breachvip> | undefined;
|
|
453
303
|
cloudsint?: Cloudsint | undefined;
|
|
454
|
-
ghosint?: Ghosint | undefined;
|
|
455
304
|
hackcheck?: Hackcheck | undefined;
|
|
456
305
|
intelligencex?: Intelligencex | undefined;
|
|
457
306
|
leakcheck?: Leakcheck | undefined;
|
|
458
|
-
leakosint?: Leakosint | undefined;
|
|
459
|
-
osintindustries?: Array<Osintindustry> | undefined;
|
|
460
307
|
snusbase?: { [k: string]: Array<Snusbase> } | undefined;
|
|
308
|
+
snusbaseRateLimited?: boolean | undefined;
|
|
461
309
|
};
|
|
462
310
|
|
|
463
311
|
/**
|
|
464
312
|
* Search successful
|
|
465
313
|
*/
|
|
466
314
|
export type SearchWebDatabasesResponse = {
|
|
467
|
-
|
|
315
|
+
data: SearchWebDatabasesData;
|
|
468
316
|
success: boolean;
|
|
469
317
|
error?: string | undefined;
|
|
470
318
|
};
|
|
@@ -475,9 +323,8 @@ export const Service$outboundSchema: z.ZodMiniEnum<typeof Service> = z.enum(
|
|
|
475
323
|
);
|
|
476
324
|
|
|
477
325
|
/** @internal */
|
|
478
|
-
export const
|
|
479
|
-
|
|
480
|
-
> = z.enum(CloudsintTypeRequest);
|
|
326
|
+
export const CloudsintType$outboundSchema: z.ZodMiniEnum<typeof CloudsintType> =
|
|
327
|
+
z.enum(CloudsintType);
|
|
481
328
|
|
|
482
329
|
/** @internal */
|
|
483
330
|
export const IntelxType$outboundSchema: z.ZodMiniEnum<typeof IntelxType> = z
|
|
@@ -508,7 +355,7 @@ export const SearchWebDatabasesRequest$outboundSchema: z.ZodMiniType<
|
|
|
508
355
|
> = z.object({
|
|
509
356
|
query: z.string(),
|
|
510
357
|
services: z.array(Service$outboundSchema),
|
|
511
|
-
cloudsintType: z.optional(
|
|
358
|
+
cloudsintType: z.optional(CloudsintType$outboundSchema),
|
|
512
359
|
intelxType: z.optional(IntelxType$outboundSchema),
|
|
513
360
|
leakCheckType: z.optional(LeakCheckType$outboundSchema),
|
|
514
361
|
snusbaseType: z.optional(SnusbaseType$outboundSchema),
|
|
@@ -522,21 +369,48 @@ export function searchWebDatabasesRequestToJSON(
|
|
|
522
369
|
);
|
|
523
370
|
}
|
|
524
371
|
|
|
372
|
+
/** @internal */
|
|
373
|
+
export const Breachvip$inboundSchema: z.ZodMiniType<Breachvip, unknown> = z
|
|
374
|
+
.pipe(
|
|
375
|
+
z.object({
|
|
376
|
+
source: types.string(),
|
|
377
|
+
_breach_date: types.optional(types.string()),
|
|
378
|
+
categories: types.optional(z.array(types.string())),
|
|
379
|
+
domain: types.optional(types.string()),
|
|
380
|
+
email: types.optional(types.string()),
|
|
381
|
+
password: types.optional(types.string()),
|
|
382
|
+
}),
|
|
383
|
+
z.transform((v) => {
|
|
384
|
+
return remap$(v, {
|
|
385
|
+
"_breach_date": "breachDate",
|
|
386
|
+
});
|
|
387
|
+
}),
|
|
388
|
+
);
|
|
389
|
+
|
|
390
|
+
export function breachvipFromJSON(
|
|
391
|
+
jsonString: string,
|
|
392
|
+
): SafeParseResult<Breachvip, SDKValidationError> {
|
|
393
|
+
return safeParse(
|
|
394
|
+
jsonString,
|
|
395
|
+
(x) => Breachvip$inboundSchema.parse(JSON.parse(x)),
|
|
396
|
+
`Failed to parse 'Breachvip' from JSON`,
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
|
|
525
400
|
/** @internal */
|
|
526
401
|
export const SearchWebDatabasesBreach$inboundSchema: z.ZodMiniType<
|
|
527
402
|
SearchWebDatabasesBreach,
|
|
528
403
|
unknown
|
|
529
404
|
> = z.pipe(
|
|
530
405
|
z.object({
|
|
531
|
-
email: types.string(),
|
|
532
406
|
id: types.string(),
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
username: types.string(),
|
|
407
|
+
email: types.optional(types.string()),
|
|
408
|
+
imported_at: types.optional(types.string()),
|
|
409
|
+
password: types.optional(types.string()),
|
|
410
|
+
source: types.optional(types.string()),
|
|
411
|
+
source_date: types.optional(types.string()),
|
|
412
|
+
source_name: types.optional(types.string()),
|
|
413
|
+
username: types.optional(types.string()),
|
|
540
414
|
}),
|
|
541
415
|
z.transform((v) => {
|
|
542
416
|
return remap$(v, {
|
|
@@ -558,21 +432,14 @@ export function searchWebDatabasesBreachFromJSON(
|
|
|
558
432
|
}
|
|
559
433
|
|
|
560
434
|
/** @internal */
|
|
561
|
-
export const
|
|
562
|
-
|
|
563
|
-
unknown
|
|
564
|
-
> = openEnums.inboundSchema(CloudsintTypeResponse);
|
|
565
|
-
|
|
566
|
-
/** @internal */
|
|
567
|
-
export const SearchWebDatabasesData$inboundSchema: z.ZodMiniType<
|
|
568
|
-
SearchWebDatabasesData,
|
|
435
|
+
export const CloudsintData$inboundSchema: z.ZodMiniType<
|
|
436
|
+
CloudsintData,
|
|
569
437
|
unknown
|
|
570
438
|
> = z.pipe(
|
|
571
439
|
z.object({
|
|
572
440
|
breaches: z.array(z.lazy(() => SearchWebDatabasesBreach$inboundSchema)),
|
|
573
441
|
query: types.string(),
|
|
574
442
|
total_matches: types.number(),
|
|
575
|
-
type: CloudsintTypeResponse$inboundSchema,
|
|
576
443
|
}),
|
|
577
444
|
z.transform((v) => {
|
|
578
445
|
return remap$(v, {
|
|
@@ -581,20 +448,20 @@ export const SearchWebDatabasesData$inboundSchema: z.ZodMiniType<
|
|
|
581
448
|
}),
|
|
582
449
|
);
|
|
583
450
|
|
|
584
|
-
export function
|
|
451
|
+
export function cloudsintDataFromJSON(
|
|
585
452
|
jsonString: string,
|
|
586
|
-
): SafeParseResult<
|
|
453
|
+
): SafeParseResult<CloudsintData, SDKValidationError> {
|
|
587
454
|
return safeParse(
|
|
588
455
|
jsonString,
|
|
589
|
-
(x) =>
|
|
590
|
-
`Failed to parse '
|
|
456
|
+
(x) => CloudsintData$inboundSchema.parse(JSON.parse(x)),
|
|
457
|
+
`Failed to parse 'CloudsintData' from JSON`,
|
|
591
458
|
);
|
|
592
459
|
}
|
|
593
460
|
|
|
594
461
|
/** @internal */
|
|
595
462
|
export const Cloudsint$inboundSchema: z.ZodMiniType<Cloudsint, unknown> = z
|
|
596
463
|
.object({
|
|
597
|
-
data: z.lazy(() =>
|
|
464
|
+
data: z.lazy(() => CloudsintData$inboundSchema),
|
|
598
465
|
duration: types.number(),
|
|
599
466
|
success: types.boolean(),
|
|
600
467
|
});
|
|
@@ -609,81 +476,6 @@ export function cloudsintFromJSON(
|
|
|
609
476
|
);
|
|
610
477
|
}
|
|
611
478
|
|
|
612
|
-
/** @internal */
|
|
613
|
-
export const LogInfo$inboundSchema: z.ZodMiniType<LogInfo, unknown> = z.pipe(
|
|
614
|
-
z.object({
|
|
615
|
-
hwid: types.nullable(types.string()),
|
|
616
|
-
name: types.nullable(types.string()),
|
|
617
|
-
system_name: types.nullable(types.string()),
|
|
618
|
-
}),
|
|
619
|
-
z.transform((v) => {
|
|
620
|
-
return remap$(v, {
|
|
621
|
-
"system_name": "systemName",
|
|
622
|
-
});
|
|
623
|
-
}),
|
|
624
|
-
);
|
|
625
|
-
|
|
626
|
-
export function logInfoFromJSON(
|
|
627
|
-
jsonString: string,
|
|
628
|
-
): SafeParseResult<LogInfo, SDKValidationError> {
|
|
629
|
-
return safeParse(
|
|
630
|
-
jsonString,
|
|
631
|
-
(x) => LogInfo$inboundSchema.parse(JSON.parse(x)),
|
|
632
|
-
`Failed to parse 'LogInfo' from JSON`,
|
|
633
|
-
);
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
/** @internal */
|
|
637
|
-
export const Credential$inboundSchema: z.ZodMiniType<Credential, unknown> = z
|
|
638
|
-
.pipe(
|
|
639
|
-
z.object({
|
|
640
|
-
log_info: z.lazy(() => LogInfo$inboundSchema),
|
|
641
|
-
date: types.optional(types.string()),
|
|
642
|
-
login: types.optional(types.string()),
|
|
643
|
-
password: types.optional(types.string()),
|
|
644
|
-
url: types.optional(types.string()),
|
|
645
|
-
}),
|
|
646
|
-
z.transform((v) => {
|
|
647
|
-
return remap$(v, {
|
|
648
|
-
"log_info": "logInfo",
|
|
649
|
-
});
|
|
650
|
-
}),
|
|
651
|
-
);
|
|
652
|
-
|
|
653
|
-
export function credentialFromJSON(
|
|
654
|
-
jsonString: string,
|
|
655
|
-
): SafeParseResult<Credential, SDKValidationError> {
|
|
656
|
-
return safeParse(
|
|
657
|
-
jsonString,
|
|
658
|
-
(x) => Credential$inboundSchema.parse(JSON.parse(x)),
|
|
659
|
-
`Failed to parse 'Credential' from JSON`,
|
|
660
|
-
);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/** @internal */
|
|
664
|
-
export const Ghosint$inboundSchema: z.ZodMiniType<Ghosint, unknown> = z.pipe(
|
|
665
|
-
z.object({
|
|
666
|
-
count: types.number(),
|
|
667
|
-
credentials: z.array(z.lazy(() => Credential$inboundSchema)),
|
|
668
|
-
result_id: types.string(),
|
|
669
|
-
}),
|
|
670
|
-
z.transform((v) => {
|
|
671
|
-
return remap$(v, {
|
|
672
|
-
"result_id": "resultId",
|
|
673
|
-
});
|
|
674
|
-
}),
|
|
675
|
-
);
|
|
676
|
-
|
|
677
|
-
export function ghosintFromJSON(
|
|
678
|
-
jsonString: string,
|
|
679
|
-
): SafeParseResult<Ghosint, SDKValidationError> {
|
|
680
|
-
return safeParse(
|
|
681
|
-
jsonString,
|
|
682
|
-
(x) => Ghosint$inboundSchema.parse(JSON.parse(x)),
|
|
683
|
-
`Failed to parse 'Ghosint' from JSON`,
|
|
684
|
-
);
|
|
685
|
-
}
|
|
686
|
-
|
|
687
479
|
/** @internal */
|
|
688
480
|
export const ResultsSource$inboundSchema: z.ZodMiniType<
|
|
689
481
|
ResultsSource,
|
|
@@ -704,8 +496,8 @@ export function resultsSourceFromJSON(
|
|
|
704
496
|
}
|
|
705
497
|
|
|
706
498
|
/** @internal */
|
|
707
|
-
export const
|
|
708
|
-
|
|
499
|
+
export const ResultsResult$inboundSchema: z.ZodMiniType<
|
|
500
|
+
ResultsResult,
|
|
709
501
|
unknown
|
|
710
502
|
> = z.pipe(
|
|
711
503
|
z.object({
|
|
@@ -732,13 +524,13 @@ export const ResultsResults$inboundSchema: z.ZodMiniType<
|
|
|
732
524
|
}),
|
|
733
525
|
);
|
|
734
526
|
|
|
735
|
-
export function
|
|
527
|
+
export function resultsResultFromJSON(
|
|
736
528
|
jsonString: string,
|
|
737
|
-
): SafeParseResult<
|
|
529
|
+
): SafeParseResult<ResultsResult, SDKValidationError> {
|
|
738
530
|
return safeParse(
|
|
739
531
|
jsonString,
|
|
740
|
-
(x) =>
|
|
741
|
-
`Failed to parse '
|
|
532
|
+
(x) => ResultsResult$inboundSchema.parse(JSON.parse(x)),
|
|
533
|
+
`Failed to parse 'ResultsResult' from JSON`,
|
|
742
534
|
);
|
|
743
535
|
}
|
|
744
536
|
|
|
@@ -749,7 +541,7 @@ export const Results$inboundSchema: z.ZodMiniType<Results, unknown> = z.pipe(
|
|
|
749
541
|
first_seen: types.string(),
|
|
750
542
|
found: types.number(),
|
|
751
543
|
last_seen: types.string(),
|
|
752
|
-
results: z.lazy(() =>
|
|
544
|
+
results: types.optional(z.array(z.lazy(() => ResultsResult$inboundSchema))),
|
|
753
545
|
}),
|
|
754
546
|
z.transform((v) => {
|
|
755
547
|
return remap$(v, {
|
|
@@ -772,7 +564,7 @@ export function resultsFromJSON(
|
|
|
772
564
|
/** @internal */
|
|
773
565
|
export const Hackcheck$inboundSchema: z.ZodMiniType<Hackcheck, unknown> = z
|
|
774
566
|
.object({
|
|
775
|
-
results: z.lazy(() => Results$inboundSchema),
|
|
567
|
+
results: types.optional(z.lazy(() => Results$inboundSchema)),
|
|
776
568
|
});
|
|
777
569
|
|
|
778
570
|
export function hackcheckFromJSON(
|
|
@@ -786,18 +578,32 @@ export function hackcheckFromJSON(
|
|
|
786
578
|
}
|
|
787
579
|
|
|
788
580
|
/** @internal */
|
|
789
|
-
export const
|
|
581
|
+
export const ItemTag$inboundSchema: z.ZodMiniType<ItemTag, unknown> = z.object({
|
|
790
582
|
class: types.number(),
|
|
791
583
|
value: types.string(),
|
|
792
584
|
});
|
|
793
585
|
|
|
794
|
-
export function
|
|
586
|
+
export function itemTagFromJSON(
|
|
795
587
|
jsonString: string,
|
|
796
|
-
): SafeParseResult<
|
|
588
|
+
): SafeParseResult<ItemTag, SDKValidationError> {
|
|
797
589
|
return safeParse(
|
|
798
590
|
jsonString,
|
|
799
|
-
(x) =>
|
|
800
|
-
`Failed to parse '
|
|
591
|
+
(x) => ItemTag$inboundSchema.parse(JSON.parse(x)),
|
|
592
|
+
`Failed to parse 'ItemTag' from JSON`,
|
|
593
|
+
);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/** @internal */
|
|
597
|
+
export const ItemType$inboundSchema: z.ZodMiniType<ItemType, unknown> =
|
|
598
|
+
smartUnion([types.number(), types.string()]);
|
|
599
|
+
|
|
600
|
+
export function itemTypeFromJSON(
|
|
601
|
+
jsonString: string,
|
|
602
|
+
): SafeParseResult<ItemType, SDKValidationError> {
|
|
603
|
+
return safeParse(
|
|
604
|
+
jsonString,
|
|
605
|
+
(x) => ItemType$inboundSchema.parse(JSON.parse(x)),
|
|
606
|
+
`Failed to parse 'ItemType' from JSON`,
|
|
801
607
|
);
|
|
802
608
|
}
|
|
803
609
|
|
|
@@ -818,8 +624,8 @@ export const Item$inboundSchema: z.ZodMiniType<Item, unknown> = z.object({
|
|
|
818
624
|
size: types.optional(types.number()),
|
|
819
625
|
storageid: types.optional(types.string()),
|
|
820
626
|
systemid: types.optional(types.string()),
|
|
821
|
-
tags: types.optional(z.array(z.lazy(() =>
|
|
822
|
-
type: types.optional(types.number()),
|
|
627
|
+
tags: types.optional(z.array(z.lazy(() => ItemTag$inboundSchema))),
|
|
628
|
+
type: types.optional(smartUnion([types.number(), types.string()])),
|
|
823
629
|
xscore: types.optional(types.number()),
|
|
824
630
|
});
|
|
825
631
|
|
|
@@ -833,19 +639,70 @@ export function itemFromJSON(
|
|
|
833
639
|
);
|
|
834
640
|
}
|
|
835
641
|
|
|
642
|
+
/** @internal */
|
|
643
|
+
export const Tag$inboundSchema: z.ZodMiniType<Tag, unknown> = z.object({
|
|
644
|
+
class: types.number(),
|
|
645
|
+
value: types.string(),
|
|
646
|
+
});
|
|
647
|
+
|
|
648
|
+
export function tagFromJSON(
|
|
649
|
+
jsonString: string,
|
|
650
|
+
): SafeParseResult<Tag, SDKValidationError> {
|
|
651
|
+
return safeParse(
|
|
652
|
+
jsonString,
|
|
653
|
+
(x) => Tag$inboundSchema.parse(JSON.parse(x)),
|
|
654
|
+
`Failed to parse 'Tag' from JSON`,
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
/** @internal */
|
|
659
|
+
export const SearchWebDatabasesType$inboundSchema: z.ZodMiniType<
|
|
660
|
+
SearchWebDatabasesType,
|
|
661
|
+
unknown
|
|
662
|
+
> = smartUnion([types.number(), types.string()]);
|
|
663
|
+
|
|
664
|
+
export function searchWebDatabasesTypeFromJSON(
|
|
665
|
+
jsonString: string,
|
|
666
|
+
): SafeParseResult<SearchWebDatabasesType, SDKValidationError> {
|
|
667
|
+
return safeParse(
|
|
668
|
+
jsonString,
|
|
669
|
+
(x) => SearchWebDatabasesType$inboundSchema.parse(JSON.parse(x)),
|
|
670
|
+
`Failed to parse 'SearchWebDatabasesType' from JSON`,
|
|
671
|
+
);
|
|
672
|
+
}
|
|
673
|
+
|
|
836
674
|
/** @internal */
|
|
837
675
|
export const Identityportal$inboundSchema: z.ZodMiniType<
|
|
838
676
|
Identityportal,
|
|
839
677
|
unknown
|
|
840
678
|
> = z.object({
|
|
841
|
-
|
|
679
|
+
accesslevel: types.optional(types.number()),
|
|
680
|
+
added: types.optional(types.string()),
|
|
681
|
+
bucket: types.optional(types.string()),
|
|
682
|
+
date: types.optional(types.string()),
|
|
683
|
+
description: types.optional(types.string()),
|
|
684
|
+
instore: types.optional(types.boolean()),
|
|
842
685
|
item: types.optional(z.lazy(() => Item$inboundSchema)),
|
|
686
|
+
keyvalues: types.optional(z.any()),
|
|
687
|
+
line: types.optional(types.string()),
|
|
688
|
+
linea: types.optional(types.string()),
|
|
843
689
|
lineraw: types.optional(types.string()),
|
|
844
690
|
linesafterraw: z.optional(z.nullable(types.string())),
|
|
845
691
|
linesbeforeraw: z.optional(z.nullable(types.string())),
|
|
692
|
+
media: types.optional(types.number()),
|
|
693
|
+
name: types.optional(types.string()),
|
|
694
|
+
owner: types.optional(types.string()),
|
|
846
695
|
positionabsolute: types.optional(types.number()),
|
|
847
696
|
positionline: types.optional(types.number()),
|
|
848
697
|
positionsize: types.optional(types.number()),
|
|
698
|
+
relations: types.optional(z.any()),
|
|
699
|
+
simhash: types.optional(types.number()),
|
|
700
|
+
size: types.optional(types.number()),
|
|
701
|
+
storageid: types.optional(types.string()),
|
|
702
|
+
systemid: types.optional(types.string()),
|
|
703
|
+
tags: types.optional(z.array(z.lazy(() => Tag$inboundSchema))),
|
|
704
|
+
type: types.optional(smartUnion([types.number(), types.string()])),
|
|
705
|
+
xscore: types.optional(types.number()),
|
|
849
706
|
});
|
|
850
707
|
|
|
851
708
|
export function identityportalFromJSON(
|
|
@@ -891,51 +748,53 @@ export const Unverified$inboundSchema: z.ZodMiniType<Unverified, unknown> =
|
|
|
891
748
|
openEnums.inboundSchema(Unverified);
|
|
892
749
|
|
|
893
750
|
/** @internal */
|
|
894
|
-
export const
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
751
|
+
export const LeakcheckSource$inboundSchema: z.ZodMiniType<
|
|
752
|
+
LeakcheckSource,
|
|
753
|
+
unknown
|
|
754
|
+
> = z.pipe(
|
|
755
|
+
z.object({
|
|
756
|
+
breach_date: z.optional(z.nullable(types.string())),
|
|
757
|
+
compilation: types.optional(Compilation$inboundSchema),
|
|
758
|
+
name: types.optional(types.string()),
|
|
759
|
+
passwordless: types.optional(Passwordless$inboundSchema),
|
|
760
|
+
unverified: types.optional(Unverified$inboundSchema),
|
|
761
|
+
}),
|
|
762
|
+
z.transform((v) => {
|
|
763
|
+
return remap$(v, {
|
|
764
|
+
"breach_date": "breachDate",
|
|
765
|
+
});
|
|
766
|
+
}),
|
|
767
|
+
);
|
|
909
768
|
|
|
910
|
-
export function
|
|
769
|
+
export function leakcheckSourceFromJSON(
|
|
911
770
|
jsonString: string,
|
|
912
|
-
): SafeParseResult<
|
|
771
|
+
): SafeParseResult<LeakcheckSource, SDKValidationError> {
|
|
913
772
|
return safeParse(
|
|
914
773
|
jsonString,
|
|
915
|
-
(x) =>
|
|
916
|
-
`Failed to parse '
|
|
774
|
+
(x) => LeakcheckSource$inboundSchema.parse(JSON.parse(x)),
|
|
775
|
+
`Failed to parse 'LeakcheckSource' from JSON`,
|
|
917
776
|
);
|
|
918
777
|
}
|
|
919
778
|
|
|
920
779
|
/** @internal */
|
|
921
|
-
export const
|
|
922
|
-
|
|
780
|
+
export const LeakcheckResult$inboundSchema: z.ZodMiniType<
|
|
781
|
+
LeakcheckResult,
|
|
923
782
|
unknown
|
|
924
783
|
> = z.pipe(
|
|
925
784
|
z.object({
|
|
926
|
-
address: types.nullable(types.string()),
|
|
927
|
-
country: types.nullable(types.string()),
|
|
928
|
-
dob: types.nullable(types.string()),
|
|
929
|
-
email: types.nullable(types.string()),
|
|
930
785
|
fields: z.array(types.string()),
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
786
|
+
address: types.optional(types.string()),
|
|
787
|
+
country: types.optional(types.string()),
|
|
788
|
+
dob: types.optional(types.string()),
|
|
789
|
+
email: types.optional(types.string()),
|
|
790
|
+
first_name: types.optional(types.string()),
|
|
791
|
+
last_name: types.optional(types.string()),
|
|
792
|
+
name: types.optional(types.string()),
|
|
793
|
+
password: types.optional(types.string()),
|
|
794
|
+
phone: types.optional(types.string()),
|
|
795
|
+
source: types.optional(z.lazy(() => LeakcheckSource$inboundSchema)),
|
|
796
|
+
state: types.optional(types.string()),
|
|
797
|
+
zip: types.optional(types.string()),
|
|
939
798
|
}),
|
|
940
799
|
z.transform((v) => {
|
|
941
800
|
return remap$(v, {
|
|
@@ -945,24 +804,23 @@ export const SearchWebDatabasesResult$inboundSchema: z.ZodMiniType<
|
|
|
945
804
|
}),
|
|
946
805
|
);
|
|
947
806
|
|
|
948
|
-
export function
|
|
807
|
+
export function leakcheckResultFromJSON(
|
|
949
808
|
jsonString: string,
|
|
950
|
-
): SafeParseResult<
|
|
809
|
+
): SafeParseResult<LeakcheckResult, SDKValidationError> {
|
|
951
810
|
return safeParse(
|
|
952
811
|
jsonString,
|
|
953
|
-
(x) =>
|
|
954
|
-
`Failed to parse '
|
|
812
|
+
(x) => LeakcheckResult$inboundSchema.parse(JSON.parse(x)),
|
|
813
|
+
`Failed to parse 'LeakcheckResult' from JSON`,
|
|
955
814
|
);
|
|
956
815
|
}
|
|
957
816
|
|
|
958
817
|
/** @internal */
|
|
959
818
|
export const Leakcheck$inboundSchema: z.ZodMiniType<Leakcheck, unknown> = z
|
|
960
819
|
.object({
|
|
961
|
-
error: types.nullable(types.string()),
|
|
962
820
|
found: types.number(),
|
|
963
|
-
|
|
964
|
-
result: z.array(z.lazy(() => SearchWebDatabasesResult$inboundSchema)),
|
|
821
|
+
result: z.array(z.lazy(() => LeakcheckResult$inboundSchema)),
|
|
965
822
|
success: types.boolean(),
|
|
823
|
+
error: types.optional(types.string()),
|
|
966
824
|
});
|
|
967
825
|
|
|
968
826
|
export function leakcheckFromJSON(
|
|
@@ -976,611 +834,62 @@ export function leakcheckFromJSON(
|
|
|
976
834
|
}
|
|
977
835
|
|
|
978
836
|
/** @internal */
|
|
979
|
-
export const
|
|
980
|
-
|
|
981
|
-
z.catchall(
|
|
982
|
-
z.object({
|
|
983
|
-
Email: types.optional(types.string()),
|
|
984
|
-
NickName: types.optional(types.string()),
|
|
985
|
-
Password: types.optional(types.string()),
|
|
986
|
-
Url: types.optional(types.string()),
|
|
987
|
-
}),
|
|
988
|
-
types.string(),
|
|
989
|
-
),
|
|
990
|
-
"additionalProperties",
|
|
991
|
-
true,
|
|
992
|
-
),
|
|
993
|
-
z.transform((v) => {
|
|
994
|
-
return remap$(v, {
|
|
995
|
-
"Email": "email",
|
|
996
|
-
"NickName": "nickName",
|
|
997
|
-
"Password": "password",
|
|
998
|
-
"Url": "url",
|
|
999
|
-
});
|
|
1000
|
-
}),
|
|
1001
|
-
);
|
|
1002
|
-
|
|
1003
|
-
export function datumFromJSON(
|
|
1004
|
-
jsonString: string,
|
|
1005
|
-
): SafeParseResult<Datum, SDKValidationError> {
|
|
1006
|
-
return safeParse(
|
|
1007
|
-
jsonString,
|
|
1008
|
-
(x) => Datum$inboundSchema.parse(JSON.parse(x)),
|
|
1009
|
-
`Failed to parse 'Datum' from JSON`,
|
|
1010
|
-
);
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/** @internal */
|
|
1014
|
-
export const SearchWebDatabasesList$inboundSchema: z.ZodMiniType<
|
|
1015
|
-
SearchWebDatabasesList,
|
|
837
|
+
export const SnusbaseUnion$inboundSchema: z.ZodMiniType<
|
|
838
|
+
SnusbaseUnion,
|
|
1016
839
|
unknown
|
|
1017
|
-
> = z.
|
|
1018
|
-
z.object({
|
|
1019
|
-
Data: z.array(z.lazy(() => Datum$inboundSchema)),
|
|
1020
|
-
InfoLeak: types.string(),
|
|
1021
|
-
NumOfResults: types.number(),
|
|
1022
|
-
}),
|
|
1023
|
-
z.transform((v) => {
|
|
1024
|
-
return remap$(v, {
|
|
1025
|
-
"Data": "data",
|
|
1026
|
-
"InfoLeak": "infoLeak",
|
|
1027
|
-
"NumOfResults": "numOfResults",
|
|
1028
|
-
});
|
|
1029
|
-
}),
|
|
1030
|
-
);
|
|
840
|
+
> = smartUnion([types.string(), z.any()]);
|
|
1031
841
|
|
|
1032
|
-
export function
|
|
842
|
+
export function snusbaseUnionFromJSON(
|
|
1033
843
|
jsonString: string,
|
|
1034
|
-
): SafeParseResult<
|
|
844
|
+
): SafeParseResult<SnusbaseUnion, SDKValidationError> {
|
|
1035
845
|
return safeParse(
|
|
1036
846
|
jsonString,
|
|
1037
|
-
(x) =>
|
|
1038
|
-
`Failed to parse '
|
|
847
|
+
(x) => SnusbaseUnion$inboundSchema.parse(JSON.parse(x)),
|
|
848
|
+
`Failed to parse 'SnusbaseUnion' from JSON`,
|
|
1039
849
|
);
|
|
1040
850
|
}
|
|
1041
851
|
|
|
1042
852
|
/** @internal */
|
|
1043
|
-
export const
|
|
1044
|
-
.pipe(
|
|
1045
|
-
z.object({
|
|
1046
|
-
List: z.record(
|
|
1047
|
-
z.string(),
|
|
1048
|
-
z.lazy(() => SearchWebDatabasesList$inboundSchema),
|
|
1049
|
-
),
|
|
1050
|
-
NumOfDatabase: types.number(),
|
|
1051
|
-
NumOfResults: types.number(),
|
|
1052
|
-
price: types.number(),
|
|
1053
|
-
"search time": types.number(),
|
|
1054
|
-
}),
|
|
1055
|
-
z.transform((v) => {
|
|
1056
|
-
return remap$(v, {
|
|
1057
|
-
"List": "list",
|
|
1058
|
-
"NumOfDatabase": "numOfDatabase",
|
|
1059
|
-
"NumOfResults": "numOfResults",
|
|
1060
|
-
"search time": "searchTime",
|
|
1061
|
-
});
|
|
1062
|
-
}),
|
|
1063
|
-
);
|
|
1064
|
-
|
|
1065
|
-
export function leakosintFromJSON(
|
|
1066
|
-
jsonString: string,
|
|
1067
|
-
): SafeParseResult<Leakosint, SDKValidationError> {
|
|
1068
|
-
return safeParse(
|
|
1069
|
-
jsonString,
|
|
1070
|
-
(x) => Leakosint$inboundSchema.parse(JSON.parse(x)),
|
|
1071
|
-
`Failed to parse 'Leakosint' from JSON`,
|
|
1072
|
-
);
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
/** @internal */
|
|
1076
|
-
export const Body$inboundSchema: z.ZodMiniType<Body, unknown> = z.pipe(
|
|
853
|
+
export const Snusbase$inboundSchema: z.ZodMiniType<Snusbase, unknown> =
|
|
1077
854
|
collectExtraKeys$(
|
|
1078
855
|
z.catchall(
|
|
1079
856
|
z.object({
|
|
1080
|
-
|
|
857
|
+
address: types.optional(types.string()),
|
|
858
|
+
birthdate: types.optional(types.string()),
|
|
859
|
+
city: types.optional(types.string()),
|
|
860
|
+
company: types.optional(types.string()),
|
|
861
|
+
country: types.optional(types.string()),
|
|
862
|
+
created: types.optional(types.string()),
|
|
863
|
+
date: types.optional(types.string()),
|
|
864
|
+
domain: types.optional(types.string()),
|
|
865
|
+
email: types.optional(types.string()),
|
|
866
|
+
followers: types.optional(types.string()),
|
|
867
|
+
gender: types.optional(types.string()),
|
|
868
|
+
hash: types.optional(types.string()),
|
|
869
|
+
host: types.optional(types.string()),
|
|
870
|
+
id: types.optional(types.string()),
|
|
871
|
+
job: types.optional(types.string()),
|
|
872
|
+
language: types.optional(types.string()),
|
|
873
|
+
lastip: types.optional(types.string()),
|
|
874
|
+
name: types.optional(types.string()),
|
|
875
|
+
other: types.optional(types.string()),
|
|
876
|
+
password: types.optional(types.string()),
|
|
877
|
+
phone: types.optional(types.string()),
|
|
878
|
+
regip: types.optional(types.string()),
|
|
879
|
+
salt: types.optional(types.string()),
|
|
880
|
+
state: types.optional(types.string()),
|
|
881
|
+
uid: types.optional(types.string()),
|
|
882
|
+
unparsed: types.optional(types.string()),
|
|
883
|
+
updated: types.optional(types.string()),
|
|
884
|
+
url: types.optional(types.string()),
|
|
885
|
+
username: types.optional(types.string()),
|
|
886
|
+
zip: types.optional(types.string()),
|
|
1081
887
|
}),
|
|
1082
|
-
types.string(),
|
|
888
|
+
smartUnion([types.string(), z.any()]),
|
|
1083
889
|
),
|
|
1084
890
|
"additionalProperties",
|
|
1085
891
|
true,
|
|
1086
|
-
),
|
|
1087
|
-
z.transform((v) => {
|
|
1088
|
-
return remap$(v, {
|
|
1089
|
-
"Bio": "bio",
|
|
1090
|
-
});
|
|
1091
|
-
}),
|
|
1092
|
-
);
|
|
1093
|
-
|
|
1094
|
-
export function bodyFromJSON(
|
|
1095
|
-
jsonString: string,
|
|
1096
|
-
): SafeParseResult<Body, SDKValidationError> {
|
|
1097
|
-
return safeParse(
|
|
1098
|
-
jsonString,
|
|
1099
|
-
(x) => Body$inboundSchema.parse(JSON.parse(x)),
|
|
1100
|
-
`Failed to parse 'Body' from JSON`,
|
|
1101
|
-
);
|
|
1102
|
-
}
|
|
1103
|
-
|
|
1104
|
-
/** @internal */
|
|
1105
|
-
export const SearchWebDatabasesTimeline$inboundSchema: z.ZodMiniType<
|
|
1106
|
-
SearchWebDatabasesTimeline,
|
|
1107
|
-
unknown
|
|
1108
|
-
> = z.pipe(
|
|
1109
|
-
z.object({
|
|
1110
|
-
group_items: z.record(z.string(), z.any()),
|
|
1111
|
-
group_years: z.record(z.string(), z.any()),
|
|
1112
|
-
groups: z.record(z.string(), z.any()),
|
|
1113
|
-
last_seen: types.boolean(),
|
|
1114
|
-
last_seen_date: types.nullable(types.string()),
|
|
1115
|
-
registered: types.boolean(),
|
|
1116
|
-
registered_date: types.nullable(types.string()),
|
|
1117
|
-
}),
|
|
1118
|
-
z.transform((v) => {
|
|
1119
|
-
return remap$(v, {
|
|
1120
|
-
"group_items": "groupItems",
|
|
1121
|
-
"group_years": "groupYears",
|
|
1122
|
-
"last_seen": "lastSeen",
|
|
1123
|
-
"last_seen_date": "lastSeenDate",
|
|
1124
|
-
"registered_date": "registeredDate",
|
|
1125
|
-
});
|
|
1126
|
-
}),
|
|
1127
|
-
);
|
|
1128
|
-
|
|
1129
|
-
export function searchWebDatabasesTimelineFromJSON(
|
|
1130
|
-
jsonString: string,
|
|
1131
|
-
): SafeParseResult<SearchWebDatabasesTimeline, SDKValidationError> {
|
|
1132
|
-
return safeParse(
|
|
1133
|
-
jsonString,
|
|
1134
|
-
(x) => SearchWebDatabasesTimeline$inboundSchema.parse(JSON.parse(x)),
|
|
1135
|
-
`Failed to parse 'SearchWebDatabasesTimeline' from JSON`,
|
|
1136
|
-
);
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
/** @internal */
|
|
1140
|
-
export const FrontSchema$inboundSchema: z.ZodMiniType<FrontSchema, unknown> = z
|
|
1141
|
-
.object({
|
|
1142
|
-
body: z.lazy(() => Body$inboundSchema),
|
|
1143
|
-
image: types.string(),
|
|
1144
|
-
module: types.string(),
|
|
1145
|
-
tags: z.array(types.string()),
|
|
1146
|
-
timeline: z.lazy(() => SearchWebDatabasesTimeline$inboundSchema),
|
|
1147
|
-
});
|
|
1148
|
-
|
|
1149
|
-
export function frontSchemaFromJSON(
|
|
1150
|
-
jsonString: string,
|
|
1151
|
-
): SafeParseResult<FrontSchema, SDKValidationError> {
|
|
1152
|
-
return safeParse(
|
|
1153
|
-
jsonString,
|
|
1154
|
-
(x) => FrontSchema$inboundSchema.parse(JSON.parse(x)),
|
|
1155
|
-
`Failed to parse 'FrontSchema' from JSON`,
|
|
1156
|
-
);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/** @internal */
|
|
1160
|
-
export const Bio$inboundSchema: z.ZodMiniType<Bio, unknown> = z.pipe(
|
|
1161
|
-
z.object({
|
|
1162
|
-
proper_key: types.string(),
|
|
1163
|
-
type: types.literal("str"),
|
|
1164
|
-
value: types.string(),
|
|
1165
|
-
}),
|
|
1166
|
-
z.transform((v) => {
|
|
1167
|
-
return remap$(v, {
|
|
1168
|
-
"proper_key": "properKey",
|
|
1169
|
-
});
|
|
1170
|
-
}),
|
|
1171
|
-
);
|
|
1172
|
-
|
|
1173
|
-
export function bioFromJSON(
|
|
1174
|
-
jsonString: string,
|
|
1175
|
-
): SafeParseResult<Bio, SDKValidationError> {
|
|
1176
|
-
return safeParse(
|
|
1177
|
-
jsonString,
|
|
1178
|
-
(x) => Bio$inboundSchema.parse(JSON.parse(x)),
|
|
1179
|
-
`Failed to parse 'Bio' from JSON`,
|
|
1180
|
-
);
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
/** @internal */
|
|
1184
|
-
export const SearchWebDatabasesId$inboundSchema: z.ZodMiniType<
|
|
1185
|
-
SearchWebDatabasesId,
|
|
1186
|
-
unknown
|
|
1187
|
-
> = z.pipe(
|
|
1188
|
-
z.object({
|
|
1189
|
-
proper_key: types.string(),
|
|
1190
|
-
type: types.literal("str"),
|
|
1191
|
-
value: types.string(),
|
|
1192
|
-
}),
|
|
1193
|
-
z.transform((v) => {
|
|
1194
|
-
return remap$(v, {
|
|
1195
|
-
"proper_key": "properKey",
|
|
1196
|
-
});
|
|
1197
|
-
}),
|
|
1198
|
-
);
|
|
1199
|
-
|
|
1200
|
-
export function searchWebDatabasesIdFromJSON(
|
|
1201
|
-
jsonString: string,
|
|
1202
|
-
): SafeParseResult<SearchWebDatabasesId, SDKValidationError> {
|
|
1203
|
-
return safeParse(
|
|
1204
|
-
jsonString,
|
|
1205
|
-
(x) => SearchWebDatabasesId$inboundSchema.parse(JSON.parse(x)),
|
|
1206
|
-
`Failed to parse 'SearchWebDatabasesId' from JSON`,
|
|
1207
|
-
);
|
|
1208
|
-
}
|
|
1209
|
-
|
|
1210
|
-
/** @internal */
|
|
1211
|
-
export const SearchWebDatabasesLocation$inboundSchema: z.ZodMiniType<
|
|
1212
|
-
SearchWebDatabasesLocation,
|
|
1213
|
-
unknown
|
|
1214
|
-
> = z.pipe(
|
|
1215
|
-
z.object({
|
|
1216
|
-
proper_key: types.string(),
|
|
1217
|
-
type: types.literal("str"),
|
|
1218
|
-
value: types.string(),
|
|
1219
|
-
}),
|
|
1220
|
-
z.transform((v) => {
|
|
1221
|
-
return remap$(v, {
|
|
1222
|
-
"proper_key": "properKey",
|
|
1223
|
-
});
|
|
1224
|
-
}),
|
|
1225
|
-
);
|
|
1226
|
-
|
|
1227
|
-
export function searchWebDatabasesLocationFromJSON(
|
|
1228
|
-
jsonString: string,
|
|
1229
|
-
): SafeParseResult<SearchWebDatabasesLocation, SDKValidationError> {
|
|
1230
|
-
return safeParse(
|
|
1231
|
-
jsonString,
|
|
1232
|
-
(x) => SearchWebDatabasesLocation$inboundSchema.parse(JSON.parse(x)),
|
|
1233
|
-
`Failed to parse 'SearchWebDatabasesLocation' from JSON`,
|
|
1234
|
-
);
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
/** @internal */
|
|
1238
|
-
export const Name$inboundSchema: z.ZodMiniType<Name, unknown> = z.pipe(
|
|
1239
|
-
z.object({
|
|
1240
|
-
proper_key: types.string(),
|
|
1241
|
-
type: types.literal("str"),
|
|
1242
|
-
value: types.string(),
|
|
1243
|
-
}),
|
|
1244
|
-
z.transform((v) => {
|
|
1245
|
-
return remap$(v, {
|
|
1246
|
-
"proper_key": "properKey",
|
|
1247
|
-
});
|
|
1248
|
-
}),
|
|
1249
|
-
);
|
|
1250
|
-
|
|
1251
|
-
export function nameFromJSON(
|
|
1252
|
-
jsonString: string,
|
|
1253
|
-
): SafeParseResult<Name, SDKValidationError> {
|
|
1254
|
-
return safeParse(
|
|
1255
|
-
jsonString,
|
|
1256
|
-
(x) => Name$inboundSchema.parse(JSON.parse(x)),
|
|
1257
|
-
`Failed to parse 'Name' from JSON`,
|
|
1258
|
-
);
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
/** @internal */
|
|
1262
|
-
export const PictureUrl$inboundSchema: z.ZodMiniType<PictureUrl, unknown> = z
|
|
1263
|
-
.pipe(
|
|
1264
|
-
z.object({
|
|
1265
|
-
proper_key: types.string(),
|
|
1266
|
-
type: types.literal("str"),
|
|
1267
|
-
value: types.string(),
|
|
1268
|
-
}),
|
|
1269
|
-
z.transform((v) => {
|
|
1270
|
-
return remap$(v, {
|
|
1271
|
-
"proper_key": "properKey",
|
|
1272
|
-
});
|
|
1273
|
-
}),
|
|
1274
|
-
);
|
|
1275
|
-
|
|
1276
|
-
export function pictureUrlFromJSON(
|
|
1277
|
-
jsonString: string,
|
|
1278
|
-
): SafeParseResult<PictureUrl, SDKValidationError> {
|
|
1279
|
-
return safeParse(
|
|
1280
|
-
jsonString,
|
|
1281
|
-
(x) => PictureUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1282
|
-
`Failed to parse 'PictureUrl' from JSON`,
|
|
1283
|
-
);
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
/** @internal */
|
|
1287
|
-
export const PlatformVariableType$inboundSchema: z.ZodMiniType<
|
|
1288
|
-
PlatformVariableType,
|
|
1289
|
-
unknown
|
|
1290
|
-
> = openEnums.inboundSchema(PlatformVariableType);
|
|
1291
|
-
|
|
1292
|
-
/** @internal */
|
|
1293
|
-
export const Value$inboundSchema: z.ZodMiniType<Value, unknown> = z.object({
|
|
1294
|
-
url: types.string(),
|
|
1295
|
-
});
|
|
1296
|
-
|
|
1297
|
-
export function valueFromJSON(
|
|
1298
|
-
jsonString: string,
|
|
1299
|
-
): SafeParseResult<Value, SDKValidationError> {
|
|
1300
|
-
return safeParse(
|
|
1301
|
-
jsonString,
|
|
1302
|
-
(x) => Value$inboundSchema.parse(JSON.parse(x)),
|
|
1303
|
-
`Failed to parse 'Value' from JSON`,
|
|
1304
|
-
);
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
/** @internal */
|
|
1308
|
-
export const ValueUnion$inboundSchema: z.ZodMiniType<ValueUnion, unknown> =
|
|
1309
|
-
smartUnion([
|
|
1310
|
-
types.number(),
|
|
1311
|
-
types.string(),
|
|
1312
|
-
z.array(z.lazy(() => Value$inboundSchema)),
|
|
1313
|
-
types.boolean(),
|
|
1314
|
-
]);
|
|
1315
|
-
|
|
1316
|
-
export function valueUnionFromJSON(
|
|
1317
|
-
jsonString: string,
|
|
1318
|
-
): SafeParseResult<ValueUnion, SDKValidationError> {
|
|
1319
|
-
return safeParse(
|
|
1320
|
-
jsonString,
|
|
1321
|
-
(x) => ValueUnion$inboundSchema.parse(JSON.parse(x)),
|
|
1322
|
-
`Failed to parse 'ValueUnion' from JSON`,
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
/** @internal */
|
|
1327
|
-
export const PlatformVariable$inboundSchema: z.ZodMiniType<
|
|
1328
|
-
PlatformVariable,
|
|
1329
|
-
unknown
|
|
1330
|
-
> = z.pipe(
|
|
1331
|
-
z.object({
|
|
1332
|
-
key: types.string(),
|
|
1333
|
-
proper_key: types.string(),
|
|
1334
|
-
type: PlatformVariableType$inboundSchema,
|
|
1335
|
-
value: smartUnion([
|
|
1336
|
-
types.number(),
|
|
1337
|
-
types.string(),
|
|
1338
|
-
z.array(z.lazy(() => Value$inboundSchema)),
|
|
1339
|
-
types.boolean(),
|
|
1340
|
-
]),
|
|
1341
|
-
}),
|
|
1342
|
-
z.transform((v) => {
|
|
1343
|
-
return remap$(v, {
|
|
1344
|
-
"proper_key": "properKey",
|
|
1345
|
-
});
|
|
1346
|
-
}),
|
|
1347
|
-
);
|
|
1348
|
-
|
|
1349
|
-
export function platformVariableFromJSON(
|
|
1350
|
-
jsonString: string,
|
|
1351
|
-
): SafeParseResult<PlatformVariable, SDKValidationError> {
|
|
1352
|
-
return safeParse(
|
|
1353
|
-
jsonString,
|
|
1354
|
-
(x) => PlatformVariable$inboundSchema.parse(JSON.parse(x)),
|
|
1355
|
-
`Failed to parse 'PlatformVariable' from JSON`,
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
/** @internal */
|
|
1360
|
-
export const Private$inboundSchema: z.ZodMiniType<Private, unknown> = z.pipe(
|
|
1361
|
-
z.object({
|
|
1362
|
-
proper_key: types.string(),
|
|
1363
|
-
type: types.literal("bool"),
|
|
1364
|
-
value: types.boolean(),
|
|
1365
|
-
}),
|
|
1366
|
-
z.transform((v) => {
|
|
1367
|
-
return remap$(v, {
|
|
1368
|
-
"proper_key": "properKey",
|
|
1369
|
-
});
|
|
1370
|
-
}),
|
|
1371
|
-
);
|
|
1372
|
-
|
|
1373
|
-
export function privateFromJSON(
|
|
1374
|
-
jsonString: string,
|
|
1375
|
-
): SafeParseResult<Private, SDKValidationError> {
|
|
1376
|
-
return safeParse(
|
|
1377
|
-
jsonString,
|
|
1378
|
-
(x) => Private$inboundSchema.parse(JSON.parse(x)),
|
|
1379
|
-
`Failed to parse 'Private' from JSON`,
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
/** @internal */
|
|
1384
|
-
export const ProfileUrl$inboundSchema: z.ZodMiniType<ProfileUrl, unknown> = z
|
|
1385
|
-
.pipe(
|
|
1386
|
-
z.object({
|
|
1387
|
-
proper_key: types.string(),
|
|
1388
|
-
type: types.literal("str"),
|
|
1389
|
-
value: types.string(),
|
|
1390
|
-
}),
|
|
1391
|
-
z.transform((v) => {
|
|
1392
|
-
return remap$(v, {
|
|
1393
|
-
"proper_key": "properKey",
|
|
1394
|
-
});
|
|
1395
|
-
}),
|
|
1396
|
-
);
|
|
1397
|
-
|
|
1398
|
-
export function profileUrlFromJSON(
|
|
1399
|
-
jsonString: string,
|
|
1400
|
-
): SafeParseResult<ProfileUrl, SDKValidationError> {
|
|
1401
|
-
return safeParse(
|
|
1402
|
-
jsonString,
|
|
1403
|
-
(x) => ProfileUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1404
|
-
`Failed to parse 'ProfileUrl' from JSON`,
|
|
1405
|
-
);
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
/** @internal */
|
|
1409
|
-
export const Registered$inboundSchema: z.ZodMiniType<Registered, unknown> = z
|
|
1410
|
-
.pipe(
|
|
1411
|
-
z.object({
|
|
1412
|
-
proper_key: types.string(),
|
|
1413
|
-
type: types.literal("bool"),
|
|
1414
|
-
value: types.boolean(),
|
|
1415
|
-
}),
|
|
1416
|
-
z.transform((v) => {
|
|
1417
|
-
return remap$(v, {
|
|
1418
|
-
"proper_key": "properKey",
|
|
1419
|
-
});
|
|
1420
|
-
}),
|
|
1421
|
-
);
|
|
1422
|
-
|
|
1423
|
-
export function registeredFromJSON(
|
|
1424
|
-
jsonString: string,
|
|
1425
|
-
): SafeParseResult<Registered, SDKValidationError> {
|
|
1426
|
-
return safeParse(
|
|
1427
|
-
jsonString,
|
|
1428
|
-
(x) => Registered$inboundSchema.parse(JSON.parse(x)),
|
|
1429
|
-
`Failed to parse 'Registered' from JSON`,
|
|
1430
892
|
);
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
/** @internal */
|
|
1434
|
-
export const Verified$inboundSchema: z.ZodMiniType<Verified, unknown> = z.pipe(
|
|
1435
|
-
z.object({
|
|
1436
|
-
proper_key: types.string(),
|
|
1437
|
-
type: types.literal("bool"),
|
|
1438
|
-
value: types.boolean(),
|
|
1439
|
-
}),
|
|
1440
|
-
z.transform((v) => {
|
|
1441
|
-
return remap$(v, {
|
|
1442
|
-
"proper_key": "properKey",
|
|
1443
|
-
});
|
|
1444
|
-
}),
|
|
1445
|
-
);
|
|
1446
|
-
|
|
1447
|
-
export function verifiedFromJSON(
|
|
1448
|
-
jsonString: string,
|
|
1449
|
-
): SafeParseResult<Verified, SDKValidationError> {
|
|
1450
|
-
return safeParse(
|
|
1451
|
-
jsonString,
|
|
1452
|
-
(x) => Verified$inboundSchema.parse(JSON.parse(x)),
|
|
1453
|
-
`Failed to parse 'Verified' from JSON`,
|
|
1454
|
-
);
|
|
1455
|
-
}
|
|
1456
|
-
|
|
1457
|
-
/** @internal */
|
|
1458
|
-
export const SpecFormat$inboundSchema: z.ZodMiniType<SpecFormat, unknown> = z
|
|
1459
|
-
.pipe(
|
|
1460
|
-
z.object({
|
|
1461
|
-
bio: types.optional(z.lazy(() => Bio$inboundSchema)),
|
|
1462
|
-
id: types.optional(z.lazy(() => SearchWebDatabasesId$inboundSchema)),
|
|
1463
|
-
location: types.optional(
|
|
1464
|
-
z.lazy(() => SearchWebDatabasesLocation$inboundSchema),
|
|
1465
|
-
),
|
|
1466
|
-
name: types.optional(z.lazy(() => Name$inboundSchema)),
|
|
1467
|
-
picture_url: types.optional(z.lazy(() => PictureUrl$inboundSchema)),
|
|
1468
|
-
platform_variables: types.optional(
|
|
1469
|
-
z.array(z.lazy(() => PlatformVariable$inboundSchema)),
|
|
1470
|
-
),
|
|
1471
|
-
private: types.optional(z.lazy(() => Private$inboundSchema)),
|
|
1472
|
-
profile_url: types.optional(z.lazy(() => ProfileUrl$inboundSchema)),
|
|
1473
|
-
registered: types.optional(z.lazy(() => Registered$inboundSchema)),
|
|
1474
|
-
verified: types.optional(z.lazy(() => Verified$inboundSchema)),
|
|
1475
|
-
}),
|
|
1476
|
-
z.transform((v) => {
|
|
1477
|
-
return remap$(v, {
|
|
1478
|
-
"picture_url": "pictureUrl",
|
|
1479
|
-
"platform_variables": "platformVariables",
|
|
1480
|
-
"profile_url": "profileUrl",
|
|
1481
|
-
});
|
|
1482
|
-
}),
|
|
1483
|
-
);
|
|
1484
|
-
|
|
1485
|
-
export function specFormatFromJSON(
|
|
1486
|
-
jsonString: string,
|
|
1487
|
-
): SafeParseResult<SpecFormat, SDKValidationError> {
|
|
1488
|
-
return safeParse(
|
|
1489
|
-
jsonString,
|
|
1490
|
-
(x) => SpecFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1491
|
-
`Failed to parse 'SpecFormat' from JSON`,
|
|
1492
|
-
);
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
/** @internal */
|
|
1496
|
-
export const SearchWebDatabasesStatus$inboundSchema: z.ZodMiniType<
|
|
1497
|
-
SearchWebDatabasesStatus,
|
|
1498
|
-
unknown
|
|
1499
|
-
> = openEnums.inboundSchema(SearchWebDatabasesStatus);
|
|
1500
|
-
|
|
1501
|
-
/** @internal */
|
|
1502
|
-
export const Category$inboundSchema: z.ZodMiniType<Category, unknown> = z
|
|
1503
|
-
.object({
|
|
1504
|
-
name: types.string(),
|
|
1505
|
-
});
|
|
1506
|
-
|
|
1507
|
-
export function categoryFromJSON(
|
|
1508
|
-
jsonString: string,
|
|
1509
|
-
): SafeParseResult<Category, SDKValidationError> {
|
|
1510
|
-
return safeParse(
|
|
1511
|
-
jsonString,
|
|
1512
|
-
(x) => Category$inboundSchema.parse(JSON.parse(x)),
|
|
1513
|
-
`Failed to parse 'Category' from JSON`,
|
|
1514
|
-
);
|
|
1515
|
-
}
|
|
1516
|
-
|
|
1517
|
-
/** @internal */
|
|
1518
|
-
export const Osintindustry$inboundSchema: z.ZodMiniType<
|
|
1519
|
-
Osintindustry,
|
|
1520
|
-
unknown
|
|
1521
|
-
> = z.pipe(
|
|
1522
|
-
z.object({
|
|
1523
|
-
data: z.record(z.string(), z.any()),
|
|
1524
|
-
front_schemas: z.array(z.lazy(() => FrontSchema$inboundSchema)),
|
|
1525
|
-
module: types.string(),
|
|
1526
|
-
reliable_source: types.boolean(),
|
|
1527
|
-
spec_format: z.array(z.lazy(() => SpecFormat$inboundSchema)),
|
|
1528
|
-
status: SearchWebDatabasesStatus$inboundSchema,
|
|
1529
|
-
category: types.optional(z.lazy(() => Category$inboundSchema)),
|
|
1530
|
-
}),
|
|
1531
|
-
z.transform((v) => {
|
|
1532
|
-
return remap$(v, {
|
|
1533
|
-
"front_schemas": "frontSchemas",
|
|
1534
|
-
"reliable_source": "reliableSource",
|
|
1535
|
-
"spec_format": "specFormat",
|
|
1536
|
-
});
|
|
1537
|
-
}),
|
|
1538
|
-
);
|
|
1539
|
-
|
|
1540
|
-
export function osintindustryFromJSON(
|
|
1541
|
-
jsonString: string,
|
|
1542
|
-
): SafeParseResult<Osintindustry, SDKValidationError> {
|
|
1543
|
-
return safeParse(
|
|
1544
|
-
jsonString,
|
|
1545
|
-
(x) => Osintindustry$inboundSchema.parse(JSON.parse(x)),
|
|
1546
|
-
`Failed to parse 'Osintindustry' from JSON`,
|
|
1547
|
-
);
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
/** @internal */
|
|
1551
|
-
export const Snusbase$inboundSchema: z.ZodMiniType<Snusbase, unknown> = z
|
|
1552
|
-
.object({
|
|
1553
|
-
address: types.optional(types.string()),
|
|
1554
|
-
birthdate: types.optional(types.string()),
|
|
1555
|
-
city: types.optional(types.string()),
|
|
1556
|
-
company: types.optional(types.string()),
|
|
1557
|
-
country: types.optional(types.string()),
|
|
1558
|
-
created: types.optional(types.string()),
|
|
1559
|
-
date: types.optional(types.string()),
|
|
1560
|
-
domain: types.optional(types.string()),
|
|
1561
|
-
email: types.optional(types.string()),
|
|
1562
|
-
followers: types.optional(types.string()),
|
|
1563
|
-
gender: types.optional(types.string()),
|
|
1564
|
-
hash: types.optional(types.string()),
|
|
1565
|
-
host: types.optional(types.string()),
|
|
1566
|
-
id: types.optional(types.string()),
|
|
1567
|
-
job: types.optional(types.string()),
|
|
1568
|
-
language: types.optional(types.string()),
|
|
1569
|
-
lastip: types.optional(types.string()),
|
|
1570
|
-
name: types.optional(types.string()),
|
|
1571
|
-
other: types.optional(types.string()),
|
|
1572
|
-
password: types.optional(types.string()),
|
|
1573
|
-
phone: types.optional(types.string()),
|
|
1574
|
-
regip: types.optional(types.string()),
|
|
1575
|
-
salt: types.optional(types.string()),
|
|
1576
|
-
state: types.optional(types.string()),
|
|
1577
|
-
uid: types.optional(types.string()),
|
|
1578
|
-
unparsed: types.optional(types.string()),
|
|
1579
|
-
updated: types.optional(types.string()),
|
|
1580
|
-
url: types.optional(types.string()),
|
|
1581
|
-
username: types.optional(types.string()),
|
|
1582
|
-
zip: types.optional(types.string()),
|
|
1583
|
-
});
|
|
1584
893
|
|
|
1585
894
|
export function snusbaseFromJSON(
|
|
1586
895
|
jsonString: string,
|
|
@@ -1593,29 +902,28 @@ export function snusbaseFromJSON(
|
|
|
1593
902
|
}
|
|
1594
903
|
|
|
1595
904
|
/** @internal */
|
|
1596
|
-
export const
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
),
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
});
|
|
905
|
+
export const SearchWebDatabasesData$inboundSchema: z.ZodMiniType<
|
|
906
|
+
SearchWebDatabasesData,
|
|
907
|
+
unknown
|
|
908
|
+
> = z.object({
|
|
909
|
+
breachvip: types.optional(z.array(z.lazy(() => Breachvip$inboundSchema))),
|
|
910
|
+
cloudsint: types.optional(z.lazy(() => Cloudsint$inboundSchema)),
|
|
911
|
+
hackcheck: types.optional(z.lazy(() => Hackcheck$inboundSchema)),
|
|
912
|
+
intelligencex: types.optional(z.lazy(() => Intelligencex$inboundSchema)),
|
|
913
|
+
leakcheck: types.optional(z.lazy(() => Leakcheck$inboundSchema)),
|
|
914
|
+
snusbase: types.optional(
|
|
915
|
+
z.record(z.string(), z.array(z.lazy(() => Snusbase$inboundSchema))),
|
|
916
|
+
),
|
|
917
|
+
snusbaseRateLimited: types.optional(types.boolean()),
|
|
918
|
+
});
|
|
1611
919
|
|
|
1612
|
-
export function
|
|
920
|
+
export function searchWebDatabasesDataFromJSON(
|
|
1613
921
|
jsonString: string,
|
|
1614
|
-
): SafeParseResult<
|
|
922
|
+
): SafeParseResult<SearchWebDatabasesData, SDKValidationError> {
|
|
1615
923
|
return safeParse(
|
|
1616
924
|
jsonString,
|
|
1617
|
-
(x) =>
|
|
1618
|
-
`Failed to parse '
|
|
925
|
+
(x) => SearchWebDatabasesData$inboundSchema.parse(JSON.parse(x)),
|
|
926
|
+
`Failed to parse 'SearchWebDatabasesData' from JSON`,
|
|
1619
927
|
);
|
|
1620
928
|
}
|
|
1621
929
|
|
|
@@ -1624,7 +932,7 @@ export const SearchWebDatabasesResponse$inboundSchema: z.ZodMiniType<
|
|
|
1624
932
|
SearchWebDatabasesResponse,
|
|
1625
933
|
unknown
|
|
1626
934
|
> = z.object({
|
|
1627
|
-
|
|
935
|
+
data: z.lazy(() => SearchWebDatabasesData$inboundSchema),
|
|
1628
936
|
success: types.boolean(),
|
|
1629
937
|
error: types.optional(types.string()),
|
|
1630
938
|
});
|