@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
|
@@ -7,39 +7,24 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
|
+
import { smartUnion } from "../../types/smart-union.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
12
|
|
|
12
13
|
export type SearchGmailRequest = {
|
|
13
14
|
email: string;
|
|
14
15
|
};
|
|
15
16
|
|
|
16
|
-
export type
|
|
17
|
-
|
|
18
|
-
longitude: number;
|
|
17
|
+
export type Emails = {
|
|
18
|
+
value: string;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
|
-
export type
|
|
22
|
-
address: string;
|
|
23
|
-
costLevel: number;
|
|
24
|
-
id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
position: Position;
|
|
27
|
-
tags: Array<string>;
|
|
28
|
-
types: Array<string>;
|
|
29
|
-
};
|
|
21
|
+
export type EmailsUnion = Emails | any;
|
|
30
22
|
|
|
31
|
-
export type
|
|
32
|
-
|
|
33
|
-
id: string;
|
|
34
|
-
location: SearchGmailLocation;
|
|
35
|
-
url: string;
|
|
23
|
+
export type SourceIds = {
|
|
24
|
+
lastUpdated: string | null;
|
|
36
25
|
};
|
|
37
26
|
|
|
38
|
-
export type
|
|
39
|
-
photos: Array<Photo>;
|
|
40
|
-
reviews: Array<{ [k: string]: any }>;
|
|
41
|
-
stats: { [k: string]: number };
|
|
42
|
-
};
|
|
27
|
+
export type SourceIdsUnion = SourceIds | any;
|
|
43
28
|
|
|
44
29
|
export type CoverPhotos = {
|
|
45
30
|
flathash: string | null;
|
|
@@ -47,9 +32,7 @@ export type CoverPhotos = {
|
|
|
47
32
|
url: string;
|
|
48
33
|
};
|
|
49
34
|
|
|
50
|
-
export type
|
|
51
|
-
value: string;
|
|
52
|
-
};
|
|
35
|
+
export type CoverPhotosUnion = CoverPhotos | any;
|
|
53
36
|
|
|
54
37
|
export type DynamiteData = {
|
|
55
38
|
customerId: string | null;
|
|
@@ -72,34 +55,38 @@ export type InAppReachability = {
|
|
|
72
55
|
apps: Array<string>;
|
|
73
56
|
};
|
|
74
57
|
|
|
58
|
+
export type InAppReachabilityUnion = InAppReachability | any;
|
|
59
|
+
|
|
75
60
|
export type Names = {
|
|
76
61
|
fullname: string;
|
|
77
62
|
};
|
|
78
63
|
|
|
64
|
+
export type NamesUnion = Names | any;
|
|
65
|
+
|
|
79
66
|
export type ProfileInfos = {
|
|
80
67
|
userTypes: Array<string>;
|
|
81
68
|
};
|
|
82
69
|
|
|
70
|
+
export type ProfileInfosUnion = ProfileInfos | any;
|
|
71
|
+
|
|
83
72
|
export type ProfilePhotos = {
|
|
84
73
|
flathash: string | null;
|
|
85
74
|
isDefault: boolean;
|
|
86
75
|
url: string;
|
|
87
76
|
};
|
|
88
77
|
|
|
89
|
-
export type
|
|
90
|
-
lastUpdated: string | null;
|
|
91
|
-
};
|
|
78
|
+
export type ProfilePhotosUnion = ProfilePhotos | any;
|
|
92
79
|
|
|
93
80
|
export type SearchGmailProfile = {
|
|
94
|
-
|
|
95
|
-
emails: { [k: string]: Emails };
|
|
96
|
-
extendedData: ExtendedData;
|
|
97
|
-
inAppReachability: { [k: string]: InAppReachability };
|
|
98
|
-
names: { [k: string]: Names };
|
|
81
|
+
emails: { [k: string]: Emails | any };
|
|
99
82
|
personId: string;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
83
|
+
sourceIds: { [k: string]: SourceIds | any };
|
|
84
|
+
coverPhotos?: { [k: string]: CoverPhotos | any } | undefined;
|
|
85
|
+
extendedData?: ExtendedData | undefined;
|
|
86
|
+
inAppReachability?: { [k: string]: InAppReachability | any } | undefined;
|
|
87
|
+
names?: { [k: string]: Names | any } | undefined;
|
|
88
|
+
profileInfos?: { [k: string]: ProfileInfos | any } | undefined;
|
|
89
|
+
profilePhotos?: { [k: string]: ProfilePhotos | any } | undefined;
|
|
103
90
|
};
|
|
104
91
|
|
|
105
92
|
export type Calendar = {
|
|
@@ -107,21 +94,45 @@ export type Calendar = {
|
|
|
107
94
|
events: { [k: string]: any };
|
|
108
95
|
};
|
|
109
96
|
|
|
110
|
-
export type
|
|
111
|
-
|
|
97
|
+
export type Position = {
|
|
98
|
+
latitude: number;
|
|
99
|
+
longitude: number;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
export type SearchGmailLocation = {
|
|
103
|
+
address: string;
|
|
104
|
+
costLevel: number;
|
|
112
105
|
id: string;
|
|
113
106
|
name: string;
|
|
107
|
+
position: Position;
|
|
108
|
+
tags: Array<string>;
|
|
109
|
+
types: Array<string>;
|
|
114
110
|
};
|
|
115
111
|
|
|
116
|
-
export type
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
112
|
+
export type Photo = {
|
|
113
|
+
date: string;
|
|
114
|
+
id: string;
|
|
115
|
+
location: SearchGmailLocation;
|
|
116
|
+
url: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export type Maps = {
|
|
120
|
+
photos: Array<Photo>;
|
|
121
|
+
reviews: Array<{ [k: string]: any }>;
|
|
122
|
+
stats: { [k: string]: number };
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export type PlayGames = {
|
|
126
|
+
avatarUrl: string;
|
|
127
|
+
id: string;
|
|
128
|
+
name: string;
|
|
121
129
|
};
|
|
122
130
|
|
|
123
131
|
export type SearchGmailData = {
|
|
124
|
-
|
|
132
|
+
profile: SearchGmailProfile;
|
|
133
|
+
calendar?: Calendar | null | undefined;
|
|
134
|
+
maps?: Maps | undefined;
|
|
135
|
+
playGames?: PlayGames | null | undefined;
|
|
125
136
|
};
|
|
126
137
|
|
|
127
138
|
/**
|
|
@@ -155,85 +166,63 @@ export function searchGmailRequestToJSON(
|
|
|
155
166
|
}
|
|
156
167
|
|
|
157
168
|
/** @internal */
|
|
158
|
-
export const
|
|
159
|
-
.
|
|
160
|
-
|
|
161
|
-
longitude: types.number(),
|
|
162
|
-
});
|
|
169
|
+
export const Emails$inboundSchema: z.ZodMiniType<Emails, unknown> = z.object({
|
|
170
|
+
value: types.string(),
|
|
171
|
+
});
|
|
163
172
|
|
|
164
|
-
export function
|
|
173
|
+
export function emailsFromJSON(
|
|
165
174
|
jsonString: string,
|
|
166
|
-
): SafeParseResult<
|
|
175
|
+
): SafeParseResult<Emails, SDKValidationError> {
|
|
167
176
|
return safeParse(
|
|
168
177
|
jsonString,
|
|
169
|
-
(x) =>
|
|
170
|
-
`Failed to parse '
|
|
178
|
+
(x) => Emails$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
+
`Failed to parse 'Emails' from JSON`,
|
|
171
180
|
);
|
|
172
181
|
}
|
|
173
182
|
|
|
174
183
|
/** @internal */
|
|
175
|
-
export const
|
|
176
|
-
|
|
177
|
-
unknown
|
|
178
|
-
> = z.pipe(
|
|
179
|
-
z.object({
|
|
180
|
-
address: types.string(),
|
|
181
|
-
cost_level: types.number(),
|
|
182
|
-
id: types.string(),
|
|
183
|
-
name: types.string(),
|
|
184
|
-
position: z.lazy(() => Position$inboundSchema),
|
|
185
|
-
tags: z.array(types.string()),
|
|
186
|
-
types: z.array(types.string()),
|
|
187
|
-
}),
|
|
188
|
-
z.transform((v) => {
|
|
189
|
-
return remap$(v, {
|
|
190
|
-
"cost_level": "costLevel",
|
|
191
|
-
});
|
|
192
|
-
}),
|
|
193
|
-
);
|
|
184
|
+
export const EmailsUnion$inboundSchema: z.ZodMiniType<EmailsUnion, unknown> =
|
|
185
|
+
smartUnion([z.lazy(() => Emails$inboundSchema), z.any()]);
|
|
194
186
|
|
|
195
|
-
export function
|
|
187
|
+
export function emailsUnionFromJSON(
|
|
196
188
|
jsonString: string,
|
|
197
|
-
): SafeParseResult<
|
|
189
|
+
): SafeParseResult<EmailsUnion, SDKValidationError> {
|
|
198
190
|
return safeParse(
|
|
199
191
|
jsonString,
|
|
200
|
-
(x) =>
|
|
201
|
-
`Failed to parse '
|
|
192
|
+
(x) => EmailsUnion$inboundSchema.parse(JSON.parse(x)),
|
|
193
|
+
`Failed to parse 'EmailsUnion' from JSON`,
|
|
202
194
|
);
|
|
203
195
|
}
|
|
204
196
|
|
|
205
197
|
/** @internal */
|
|
206
|
-
export const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
url: types.string(),
|
|
211
|
-
});
|
|
198
|
+
export const SourceIds$inboundSchema: z.ZodMiniType<SourceIds, unknown> = z
|
|
199
|
+
.object({
|
|
200
|
+
lastUpdated: types.nullable(types.string()),
|
|
201
|
+
});
|
|
212
202
|
|
|
213
|
-
export function
|
|
203
|
+
export function sourceIdsFromJSON(
|
|
214
204
|
jsonString: string,
|
|
215
|
-
): SafeParseResult<
|
|
205
|
+
): SafeParseResult<SourceIds, SDKValidationError> {
|
|
216
206
|
return safeParse(
|
|
217
207
|
jsonString,
|
|
218
|
-
(x) =>
|
|
219
|
-
`Failed to parse '
|
|
208
|
+
(x) => SourceIds$inboundSchema.parse(JSON.parse(x)),
|
|
209
|
+
`Failed to parse 'SourceIds' from JSON`,
|
|
220
210
|
);
|
|
221
211
|
}
|
|
222
212
|
|
|
223
213
|
/** @internal */
|
|
224
|
-
export const
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
});
|
|
214
|
+
export const SourceIdsUnion$inboundSchema: z.ZodMiniType<
|
|
215
|
+
SourceIdsUnion,
|
|
216
|
+
unknown
|
|
217
|
+
> = smartUnion([z.lazy(() => SourceIds$inboundSchema), z.any()]);
|
|
229
218
|
|
|
230
|
-
export function
|
|
219
|
+
export function sourceIdsUnionFromJSON(
|
|
231
220
|
jsonString: string,
|
|
232
|
-
): SafeParseResult<
|
|
221
|
+
): SafeParseResult<SourceIdsUnion, SDKValidationError> {
|
|
233
222
|
return safeParse(
|
|
234
223
|
jsonString,
|
|
235
|
-
(x) =>
|
|
236
|
-
`Failed to parse '
|
|
224
|
+
(x) => SourceIdsUnion$inboundSchema.parse(JSON.parse(x)),
|
|
225
|
+
`Failed to parse 'SourceIdsUnion' from JSON`,
|
|
237
226
|
);
|
|
238
227
|
}
|
|
239
228
|
|
|
@@ -256,17 +245,18 @@ export function coverPhotosFromJSON(
|
|
|
256
245
|
}
|
|
257
246
|
|
|
258
247
|
/** @internal */
|
|
259
|
-
export const
|
|
260
|
-
|
|
261
|
-
|
|
248
|
+
export const CoverPhotosUnion$inboundSchema: z.ZodMiniType<
|
|
249
|
+
CoverPhotosUnion,
|
|
250
|
+
unknown
|
|
251
|
+
> = smartUnion([z.lazy(() => CoverPhotos$inboundSchema), z.any()]);
|
|
262
252
|
|
|
263
|
-
export function
|
|
253
|
+
export function coverPhotosUnionFromJSON(
|
|
264
254
|
jsonString: string,
|
|
265
|
-
): SafeParseResult<
|
|
255
|
+
): SafeParseResult<CoverPhotosUnion, SDKValidationError> {
|
|
266
256
|
return safeParse(
|
|
267
257
|
jsonString,
|
|
268
|
-
(x) =>
|
|
269
|
-
`Failed to parse '
|
|
258
|
+
(x) => CoverPhotosUnion$inboundSchema.parse(JSON.parse(x)),
|
|
259
|
+
`Failed to parse 'CoverPhotosUnion' from JSON`,
|
|
270
260
|
);
|
|
271
261
|
}
|
|
272
262
|
|
|
@@ -341,6 +331,22 @@ export function inAppReachabilityFromJSON(
|
|
|
341
331
|
);
|
|
342
332
|
}
|
|
343
333
|
|
|
334
|
+
/** @internal */
|
|
335
|
+
export const InAppReachabilityUnion$inboundSchema: z.ZodMiniType<
|
|
336
|
+
InAppReachabilityUnion,
|
|
337
|
+
unknown
|
|
338
|
+
> = smartUnion([z.lazy(() => InAppReachability$inboundSchema), z.any()]);
|
|
339
|
+
|
|
340
|
+
export function inAppReachabilityUnionFromJSON(
|
|
341
|
+
jsonString: string,
|
|
342
|
+
): SafeParseResult<InAppReachabilityUnion, SDKValidationError> {
|
|
343
|
+
return safeParse(
|
|
344
|
+
jsonString,
|
|
345
|
+
(x) => InAppReachabilityUnion$inboundSchema.parse(JSON.parse(x)),
|
|
346
|
+
`Failed to parse 'InAppReachabilityUnion' from JSON`,
|
|
347
|
+
);
|
|
348
|
+
}
|
|
349
|
+
|
|
344
350
|
/** @internal */
|
|
345
351
|
export const Names$inboundSchema: z.ZodMiniType<Names, unknown> = z.object({
|
|
346
352
|
fullname: types.string(),
|
|
@@ -356,6 +362,20 @@ export function namesFromJSON(
|
|
|
356
362
|
);
|
|
357
363
|
}
|
|
358
364
|
|
|
365
|
+
/** @internal */
|
|
366
|
+
export const NamesUnion$inboundSchema: z.ZodMiniType<NamesUnion, unknown> =
|
|
367
|
+
smartUnion([z.lazy(() => Names$inboundSchema), z.any()]);
|
|
368
|
+
|
|
369
|
+
export function namesUnionFromJSON(
|
|
370
|
+
jsonString: string,
|
|
371
|
+
): SafeParseResult<NamesUnion, SDKValidationError> {
|
|
372
|
+
return safeParse(
|
|
373
|
+
jsonString,
|
|
374
|
+
(x) => NamesUnion$inboundSchema.parse(JSON.parse(x)),
|
|
375
|
+
`Failed to parse 'NamesUnion' from JSON`,
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
359
379
|
/** @internal */
|
|
360
380
|
export const ProfileInfos$inboundSchema: z.ZodMiniType<ProfileInfos, unknown> =
|
|
361
381
|
z.object({
|
|
@@ -372,6 +392,22 @@ export function profileInfosFromJSON(
|
|
|
372
392
|
);
|
|
373
393
|
}
|
|
374
394
|
|
|
395
|
+
/** @internal */
|
|
396
|
+
export const ProfileInfosUnion$inboundSchema: z.ZodMiniType<
|
|
397
|
+
ProfileInfosUnion,
|
|
398
|
+
unknown
|
|
399
|
+
> = smartUnion([z.lazy(() => ProfileInfos$inboundSchema), z.any()]);
|
|
400
|
+
|
|
401
|
+
export function profileInfosUnionFromJSON(
|
|
402
|
+
jsonString: string,
|
|
403
|
+
): SafeParseResult<ProfileInfosUnion, SDKValidationError> {
|
|
404
|
+
return safeParse(
|
|
405
|
+
jsonString,
|
|
406
|
+
(x) => ProfileInfosUnion$inboundSchema.parse(JSON.parse(x)),
|
|
407
|
+
`Failed to parse 'ProfileInfosUnion' from JSON`,
|
|
408
|
+
);
|
|
409
|
+
}
|
|
410
|
+
|
|
375
411
|
/** @internal */
|
|
376
412
|
export const ProfilePhotos$inboundSchema: z.ZodMiniType<
|
|
377
413
|
ProfilePhotos,
|
|
@@ -393,18 +429,18 @@ export function profilePhotosFromJSON(
|
|
|
393
429
|
}
|
|
394
430
|
|
|
395
431
|
/** @internal */
|
|
396
|
-
export const
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
432
|
+
export const ProfilePhotosUnion$inboundSchema: z.ZodMiniType<
|
|
433
|
+
ProfilePhotosUnion,
|
|
434
|
+
unknown
|
|
435
|
+
> = smartUnion([z.lazy(() => ProfilePhotos$inboundSchema), z.any()]);
|
|
400
436
|
|
|
401
|
-
export function
|
|
437
|
+
export function profilePhotosUnionFromJSON(
|
|
402
438
|
jsonString: string,
|
|
403
|
-
): SafeParseResult<
|
|
439
|
+
): SafeParseResult<ProfilePhotosUnion, SDKValidationError> {
|
|
404
440
|
return safeParse(
|
|
405
441
|
jsonString,
|
|
406
|
-
(x) =>
|
|
407
|
-
`Failed to parse '
|
|
442
|
+
(x) => ProfilePhotosUnion$inboundSchema.parse(JSON.parse(x)),
|
|
443
|
+
`Failed to parse 'ProfilePhotosUnion' from JSON`,
|
|
408
444
|
);
|
|
409
445
|
}
|
|
410
446
|
|
|
@@ -413,21 +449,46 @@ export const SearchGmailProfile$inboundSchema: z.ZodMiniType<
|
|
|
413
449
|
SearchGmailProfile,
|
|
414
450
|
unknown
|
|
415
451
|
> = z.object({
|
|
416
|
-
|
|
417
|
-
emails: z.record(z.string(), z.lazy(() => Emails$inboundSchema)),
|
|
418
|
-
extendedData: z.lazy(() => ExtendedData$inboundSchema),
|
|
419
|
-
inAppReachability: z.record(
|
|
452
|
+
emails: z.record(
|
|
420
453
|
z.string(),
|
|
421
|
-
z.lazy(() =>
|
|
454
|
+
smartUnion([z.lazy(() => Emails$inboundSchema), z.any()]),
|
|
422
455
|
),
|
|
423
|
-
names: z.record(z.string(), z.lazy(() => Names$inboundSchema)),
|
|
424
456
|
personId: types.string(),
|
|
425
|
-
|
|
426
|
-
profilePhotos: z.record(
|
|
457
|
+
sourceIds: z.record(
|
|
427
458
|
z.string(),
|
|
428
|
-
z.lazy(() =>
|
|
459
|
+
smartUnion([z.lazy(() => SourceIds$inboundSchema), z.any()]),
|
|
460
|
+
),
|
|
461
|
+
coverPhotos: types.optional(
|
|
462
|
+
z.record(
|
|
463
|
+
z.string(),
|
|
464
|
+
smartUnion([z.lazy(() => CoverPhotos$inboundSchema), z.any()]),
|
|
465
|
+
),
|
|
466
|
+
),
|
|
467
|
+
extendedData: types.optional(z.lazy(() => ExtendedData$inboundSchema)),
|
|
468
|
+
inAppReachability: types.optional(
|
|
469
|
+
z.record(
|
|
470
|
+
z.string(),
|
|
471
|
+
smartUnion([z.lazy(() => InAppReachability$inboundSchema), z.any()]),
|
|
472
|
+
),
|
|
473
|
+
),
|
|
474
|
+
names: types.optional(
|
|
475
|
+
z.record(
|
|
476
|
+
z.string(),
|
|
477
|
+
smartUnion([z.lazy(() => Names$inboundSchema), z.any()]),
|
|
478
|
+
),
|
|
479
|
+
),
|
|
480
|
+
profileInfos: types.optional(
|
|
481
|
+
z.record(
|
|
482
|
+
z.string(),
|
|
483
|
+
smartUnion([z.lazy(() => ProfileInfos$inboundSchema), z.any()]),
|
|
484
|
+
),
|
|
485
|
+
),
|
|
486
|
+
profilePhotos: types.optional(
|
|
487
|
+
z.record(
|
|
488
|
+
z.string(),
|
|
489
|
+
smartUnion([z.lazy(() => ProfilePhotos$inboundSchema), z.any()]),
|
|
490
|
+
),
|
|
429
491
|
),
|
|
430
|
-
sourceIds: z.record(z.string(), z.lazy(() => SourceIds$inboundSchema)),
|
|
431
492
|
});
|
|
432
493
|
|
|
433
494
|
export function searchGmailProfileFromJSON(
|
|
@@ -458,55 +519,110 @@ export function calendarFromJSON(
|
|
|
458
519
|
}
|
|
459
520
|
|
|
460
521
|
/** @internal */
|
|
461
|
-
export const
|
|
462
|
-
.
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
name: types.string(),
|
|
467
|
-
}),
|
|
468
|
-
z.transform((v) => {
|
|
469
|
-
return remap$(v, {
|
|
470
|
-
"avatar_url": "avatarUrl",
|
|
471
|
-
});
|
|
472
|
-
}),
|
|
473
|
-
);
|
|
522
|
+
export const Position$inboundSchema: z.ZodMiniType<Position, unknown> = z
|
|
523
|
+
.object({
|
|
524
|
+
latitude: types.number(),
|
|
525
|
+
longitude: types.number(),
|
|
526
|
+
});
|
|
474
527
|
|
|
475
|
-
export function
|
|
528
|
+
export function positionFromJSON(
|
|
476
529
|
jsonString: string,
|
|
477
|
-
): SafeParseResult<
|
|
530
|
+
): SafeParseResult<Position, SDKValidationError> {
|
|
478
531
|
return safeParse(
|
|
479
532
|
jsonString,
|
|
480
|
-
(x) =>
|
|
481
|
-
`Failed to parse '
|
|
533
|
+
(x) => Position$inboundSchema.parse(JSON.parse(x)),
|
|
534
|
+
`Failed to parse 'Position' from JSON`,
|
|
482
535
|
);
|
|
483
536
|
}
|
|
484
537
|
|
|
485
538
|
/** @internal */
|
|
486
|
-
export const
|
|
487
|
-
|
|
539
|
+
export const SearchGmailLocation$inboundSchema: z.ZodMiniType<
|
|
540
|
+
SearchGmailLocation,
|
|
488
541
|
unknown
|
|
489
542
|
> = z.pipe(
|
|
490
543
|
z.object({
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
544
|
+
address: types.string(),
|
|
545
|
+
cost_level: types.number(),
|
|
546
|
+
id: types.string(),
|
|
547
|
+
name: types.string(),
|
|
548
|
+
position: z.lazy(() => Position$inboundSchema),
|
|
549
|
+
tags: z.array(types.string()),
|
|
550
|
+
types: z.array(types.string()),
|
|
495
551
|
}),
|
|
496
552
|
z.transform((v) => {
|
|
497
553
|
return remap$(v, {
|
|
498
|
-
"
|
|
554
|
+
"cost_level": "costLevel",
|
|
499
555
|
});
|
|
500
556
|
}),
|
|
501
557
|
);
|
|
502
558
|
|
|
503
|
-
export function
|
|
559
|
+
export function searchGmailLocationFromJSON(
|
|
504
560
|
jsonString: string,
|
|
505
|
-
): SafeParseResult<
|
|
561
|
+
): SafeParseResult<SearchGmailLocation, SDKValidationError> {
|
|
506
562
|
return safeParse(
|
|
507
563
|
jsonString,
|
|
508
|
-
(x) =>
|
|
509
|
-
`Failed to parse '
|
|
564
|
+
(x) => SearchGmailLocation$inboundSchema.parse(JSON.parse(x)),
|
|
565
|
+
`Failed to parse 'SearchGmailLocation' from JSON`,
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/** @internal */
|
|
570
|
+
export const Photo$inboundSchema: z.ZodMiniType<Photo, unknown> = z.object({
|
|
571
|
+
date: types.string(),
|
|
572
|
+
id: types.string(),
|
|
573
|
+
location: z.lazy(() => SearchGmailLocation$inboundSchema),
|
|
574
|
+
url: types.string(),
|
|
575
|
+
});
|
|
576
|
+
|
|
577
|
+
export function photoFromJSON(
|
|
578
|
+
jsonString: string,
|
|
579
|
+
): SafeParseResult<Photo, SDKValidationError> {
|
|
580
|
+
return safeParse(
|
|
581
|
+
jsonString,
|
|
582
|
+
(x) => Photo$inboundSchema.parse(JSON.parse(x)),
|
|
583
|
+
`Failed to parse 'Photo' from JSON`,
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/** @internal */
|
|
588
|
+
export const Maps$inboundSchema: z.ZodMiniType<Maps, unknown> = z.object({
|
|
589
|
+
photos: z.array(z.lazy(() => Photo$inboundSchema)),
|
|
590
|
+
reviews: z.array(z.record(z.string(), z.any())),
|
|
591
|
+
stats: z.record(z.string(), types.number()),
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
export function mapsFromJSON(
|
|
595
|
+
jsonString: string,
|
|
596
|
+
): SafeParseResult<Maps, SDKValidationError> {
|
|
597
|
+
return safeParse(
|
|
598
|
+
jsonString,
|
|
599
|
+
(x) => Maps$inboundSchema.parse(JSON.parse(x)),
|
|
600
|
+
`Failed to parse 'Maps' from JSON`,
|
|
601
|
+
);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/** @internal */
|
|
605
|
+
export const PlayGames$inboundSchema: z.ZodMiniType<PlayGames, unknown> = z
|
|
606
|
+
.pipe(
|
|
607
|
+
z.object({
|
|
608
|
+
avatar_url: types.string(),
|
|
609
|
+
id: types.string(),
|
|
610
|
+
name: types.string(),
|
|
611
|
+
}),
|
|
612
|
+
z.transform((v) => {
|
|
613
|
+
return remap$(v, {
|
|
614
|
+
"avatar_url": "avatarUrl",
|
|
615
|
+
});
|
|
616
|
+
}),
|
|
617
|
+
);
|
|
618
|
+
|
|
619
|
+
export function playGamesFromJSON(
|
|
620
|
+
jsonString: string,
|
|
621
|
+
): SafeParseResult<PlayGames, SDKValidationError> {
|
|
622
|
+
return safeParse(
|
|
623
|
+
jsonString,
|
|
624
|
+
(x) => PlayGames$inboundSchema.parse(JSON.parse(x)),
|
|
625
|
+
`Failed to parse 'PlayGames' from JSON`,
|
|
510
626
|
);
|
|
511
627
|
}
|
|
512
628
|
|
|
@@ -516,13 +632,14 @@ export const SearchGmailData$inboundSchema: z.ZodMiniType<
|
|
|
516
632
|
unknown
|
|
517
633
|
> = z.pipe(
|
|
518
634
|
z.object({
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
),
|
|
635
|
+
profile: z.lazy(() => SearchGmailProfile$inboundSchema),
|
|
636
|
+
calendar: z.optional(z.nullable(z.lazy(() => Calendar$inboundSchema))),
|
|
637
|
+
maps: types.optional(z.lazy(() => Maps$inboundSchema)),
|
|
638
|
+
play_games: z.optional(z.nullable(z.lazy(() => PlayGames$inboundSchema))),
|
|
522
639
|
}),
|
|
523
640
|
z.transform((v) => {
|
|
524
641
|
return remap$(v, {
|
|
525
|
-
"
|
|
642
|
+
"play_games": "playGames",
|
|
526
643
|
});
|
|
527
644
|
}),
|
|
528
645
|
);
|