@indiciaosint/sdk 1.2.7 → 1.2.8
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/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/operations/search-discord.d.ts +42 -18
- package/esm/models/operations/search-discord.d.ts.map +1 -1
- package/esm/models/operations/search-discord.js +39 -18
- package/esm/models/operations/search-discord.js.map +1 -1
- package/esm/models/operations/search-roblox.d.ts +23 -0
- package/esm/models/operations/search-roblox.d.ts.map +1 -1
- package/esm/models/operations/search-roblox.js +33 -0
- package/esm/models/operations/search-roblox.js.map +1 -1
- package/esm/models/operations/search-web-databases.d.ts +76 -23
- package/esm/models/operations/search-web-databases.d.ts.map +1 -1
- package/esm/models/operations/search-web-databases.js +94 -28
- package/esm/models/operations/search-web-databases.js.map +1 -1
- package/esm/models/operations/search-whois.d.ts +4 -4
- package/esm/models/operations/search-whois.d.ts.map +1 -1
- package/esm/models/operations/search-whois.js +4 -4
- package/esm/models/operations/search-whois.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/operations/search-discord.ts +73 -40
- package/src/models/operations/search-roblox.ts +75 -0
- package/src/models/operations/search-web-databases.ts +229 -65
- package/src/models/operations/search-whois.ts +11 -8
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "1.0.0",
|
|
61
|
-
sdkVersion: "1.2.
|
|
61
|
+
sdkVersion: "1.2.8",
|
|
62
62
|
genVersion: "2.915.1",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 1.2.8 2.915.1 1.0.0 @indiciaosint/sdk",
|
|
64
64
|
} as const;
|
|
@@ -4,13 +4,35 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
9
|
import * as types from "../../types/primitives.js";
|
|
9
10
|
import { smartUnion } from "../../types/smart-union.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdk-validation-error.js";
|
|
11
12
|
|
|
13
|
+
export const SearchDiscordField = {
|
|
14
|
+
Banner: "banner",
|
|
15
|
+
Bio: "bio",
|
|
16
|
+
Clan: "clan",
|
|
17
|
+
ConnectedAccounts: "connectedAccounts",
|
|
18
|
+
DisplayName: "displayName",
|
|
19
|
+
LegacyName: "legacyName",
|
|
20
|
+
ModActions: "modActions",
|
|
21
|
+
Pfp: "pfp",
|
|
22
|
+
Presence: "presence",
|
|
23
|
+
Pronouns: "pronouns",
|
|
24
|
+
ReviewCount: "reviewCount",
|
|
25
|
+
Reviews: "reviews",
|
|
26
|
+
RobloxProfiles: "robloxProfiles",
|
|
27
|
+
Servers: "servers",
|
|
28
|
+
UserId: "userId",
|
|
29
|
+
Username: "username",
|
|
30
|
+
} as const;
|
|
31
|
+
export type SearchDiscordField = ClosedEnum<typeof SearchDiscordField>;
|
|
32
|
+
|
|
12
33
|
export type SearchDiscordRequest = {
|
|
13
34
|
query: string;
|
|
35
|
+
fields?: Array<SearchDiscordField> | undefined;
|
|
14
36
|
};
|
|
15
37
|
|
|
16
38
|
export type Traits = {
|
|
@@ -172,25 +194,25 @@ export type Server = {
|
|
|
172
194
|
};
|
|
173
195
|
|
|
174
196
|
export type SearchDiscordData = {
|
|
175
|
-
banner: string | null;
|
|
176
|
-
bio: string | null;
|
|
177
|
-
clan: Clan | null;
|
|
178
|
-
connectedAccounts: {
|
|
179
|
-
[k: string]: ConnectedAccounts1 | Array<ConnectedAccounts2>;
|
|
180
|
-
};
|
|
181
|
-
displayName: string | null;
|
|
182
197
|
internalErrors: Array<string>;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
198
|
+
banner?: string | null | undefined;
|
|
199
|
+
bio?: string | null | undefined;
|
|
200
|
+
clan?: Clan | null | undefined;
|
|
201
|
+
connectedAccounts?: {
|
|
202
|
+
[k: string]: ConnectedAccounts1 | Array<ConnectedAccounts2>;
|
|
203
|
+
} | undefined;
|
|
204
|
+
displayName?: string | null | undefined;
|
|
205
|
+
legacyName?: string | null | undefined;
|
|
206
|
+
modActions?: Array<ModAction> | undefined;
|
|
207
|
+
pfp?: string | undefined;
|
|
208
|
+
presence?: string | null | undefined;
|
|
209
|
+
pronouns?: string | null | undefined;
|
|
210
|
+
reviewCount?: number | undefined;
|
|
211
|
+
reviews?: Array<Review> | undefined;
|
|
212
|
+
robloxProfiles?: Array<RobloxProfile> | undefined;
|
|
213
|
+
servers?: Array<Server> | undefined;
|
|
214
|
+
userId?: string | undefined;
|
|
215
|
+
username?: string | undefined;
|
|
194
216
|
};
|
|
195
217
|
|
|
196
218
|
/**
|
|
@@ -202,9 +224,15 @@ export type SearchDiscordResponse = {
|
|
|
202
224
|
error?: string | undefined;
|
|
203
225
|
};
|
|
204
226
|
|
|
227
|
+
/** @internal */
|
|
228
|
+
export const SearchDiscordField$outboundSchema: z.ZodMiniEnum<
|
|
229
|
+
typeof SearchDiscordField
|
|
230
|
+
> = z.enum(SearchDiscordField);
|
|
231
|
+
|
|
205
232
|
/** @internal */
|
|
206
233
|
export type SearchDiscordRequest$Outbound = {
|
|
207
234
|
query: string;
|
|
235
|
+
fields?: Array<string> | undefined;
|
|
208
236
|
};
|
|
209
237
|
|
|
210
238
|
/** @internal */
|
|
@@ -213,6 +241,7 @@ export const SearchDiscordRequest$outboundSchema: z.ZodMiniType<
|
|
|
213
241
|
SearchDiscordRequest
|
|
214
242
|
> = z.object({
|
|
215
243
|
query: z.string(),
|
|
244
|
+
fields: z.optional(z.array(SearchDiscordField$outboundSchema)),
|
|
216
245
|
});
|
|
217
246
|
|
|
218
247
|
export function searchDiscordRequestToJSON(
|
|
@@ -617,29 +646,33 @@ export const SearchDiscordData$inboundSchema: z.ZodMiniType<
|
|
|
617
646
|
SearchDiscordData,
|
|
618
647
|
unknown
|
|
619
648
|
> = z.object({
|
|
620
|
-
banner: types.nullable(types.string()),
|
|
621
|
-
bio: types.nullable(types.string()),
|
|
622
|
-
clan: types.nullable(z.lazy(() => Clan$inboundSchema)),
|
|
623
|
-
connectedAccounts: z.record(
|
|
624
|
-
z.string(),
|
|
625
|
-
smartUnion([
|
|
626
|
-
z.lazy(() => ConnectedAccounts1$inboundSchema),
|
|
627
|
-
z.array(z.lazy(() => ConnectedAccounts2$inboundSchema)),
|
|
628
|
-
]),
|
|
629
|
-
),
|
|
630
|
-
displayName: types.nullable(types.string()),
|
|
631
649
|
internalErrors: z.array(types.string()),
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
650
|
+
banner: z.optional(z.nullable(types.string())),
|
|
651
|
+
bio: z.optional(z.nullable(types.string())),
|
|
652
|
+
clan: z.optional(z.nullable(z.lazy(() => Clan$inboundSchema))),
|
|
653
|
+
connectedAccounts: types.optional(
|
|
654
|
+
z.record(
|
|
655
|
+
z.string(),
|
|
656
|
+
smartUnion([
|
|
657
|
+
z.lazy(() => ConnectedAccounts1$inboundSchema),
|
|
658
|
+
z.array(z.lazy(() => ConnectedAccounts2$inboundSchema)),
|
|
659
|
+
]),
|
|
660
|
+
),
|
|
661
|
+
),
|
|
662
|
+
displayName: z.optional(z.nullable(types.string())),
|
|
663
|
+
legacyName: z.optional(z.nullable(types.string())),
|
|
664
|
+
modActions: types.optional(z.array(z.lazy(() => ModAction$inboundSchema))),
|
|
665
|
+
pfp: types.optional(types.string()),
|
|
666
|
+
presence: z.optional(z.nullable(types.string())),
|
|
667
|
+
pronouns: z.optional(z.nullable(types.string())),
|
|
668
|
+
reviewCount: types.optional(types.number()),
|
|
669
|
+
reviews: types.optional(z.array(z.lazy(() => Review$inboundSchema))),
|
|
670
|
+
robloxProfiles: types.optional(
|
|
671
|
+
z.array(z.lazy(() => RobloxProfile$inboundSchema)),
|
|
672
|
+
),
|
|
673
|
+
servers: types.optional(z.array(z.lazy(() => Server$inboundSchema))),
|
|
674
|
+
userId: types.optional(types.string()),
|
|
675
|
+
username: types.optional(types.string()),
|
|
643
676
|
});
|
|
644
677
|
|
|
645
678
|
export function searchDiscordDataFromJSON(
|
|
@@ -17,9 +17,21 @@ export const SearchRobloxType = {
|
|
|
17
17
|
} as const;
|
|
18
18
|
export type SearchRobloxType = ClosedEnum<typeof SearchRobloxType>;
|
|
19
19
|
|
|
20
|
+
export const SearchRobloxField = {
|
|
21
|
+
AltAccountThumbnails: "altAccountThumbnails",
|
|
22
|
+
AltAccounts: "altAccounts",
|
|
23
|
+
LeakcheckStealers: "leakcheckStealers",
|
|
24
|
+
Leaks: "leaks",
|
|
25
|
+
Profile: "profile",
|
|
26
|
+
Stealers: "stealers",
|
|
27
|
+
Verified: "verified",
|
|
28
|
+
} as const;
|
|
29
|
+
export type SearchRobloxField = ClosedEnum<typeof SearchRobloxField>;
|
|
30
|
+
|
|
20
31
|
export type SearchRobloxRequest = {
|
|
21
32
|
query: string;
|
|
22
33
|
type?: SearchRobloxType | undefined;
|
|
34
|
+
fields?: Array<SearchRobloxField> | undefined;
|
|
23
35
|
};
|
|
24
36
|
|
|
25
37
|
export type AltAccounts = {
|
|
@@ -30,6 +42,14 @@ export type AltAccounts = {
|
|
|
30
42
|
updatedAt: number;
|
|
31
43
|
};
|
|
32
44
|
|
|
45
|
+
export type LeakcheckStealer = {};
|
|
46
|
+
|
|
47
|
+
export type LeakcheckStealerUnion =
|
|
48
|
+
| number
|
|
49
|
+
| LeakcheckStealer
|
|
50
|
+
| string
|
|
51
|
+
| boolean;
|
|
52
|
+
|
|
33
53
|
export type SearchRobloxPlatforms = {
|
|
34
54
|
playstation?: string | undefined;
|
|
35
55
|
xbox?: string | undefined;
|
|
@@ -85,6 +105,9 @@ export type SearchRobloxData = {
|
|
|
85
105
|
type: string;
|
|
86
106
|
altAccountThumbnails?: { [k: string]: string } | undefined;
|
|
87
107
|
altAccounts?: AltAccounts | undefined;
|
|
108
|
+
leakcheckStealers?:
|
|
109
|
+
| Array<number | LeakcheckStealer | string | boolean | null>
|
|
110
|
+
| undefined;
|
|
88
111
|
leaks?: any | undefined;
|
|
89
112
|
profile?: SearchRobloxProfile | undefined;
|
|
90
113
|
stealers?:
|
|
@@ -107,10 +130,16 @@ export const SearchRobloxType$outboundSchema: z.ZodMiniEnum<
|
|
|
107
130
|
typeof SearchRobloxType
|
|
108
131
|
> = z.enum(SearchRobloxType);
|
|
109
132
|
|
|
133
|
+
/** @internal */
|
|
134
|
+
export const SearchRobloxField$outboundSchema: z.ZodMiniEnum<
|
|
135
|
+
typeof SearchRobloxField
|
|
136
|
+
> = z.enum(SearchRobloxField);
|
|
137
|
+
|
|
110
138
|
/** @internal */
|
|
111
139
|
export type SearchRobloxRequest$Outbound = {
|
|
112
140
|
query: string;
|
|
113
141
|
type: string;
|
|
142
|
+
fields?: Array<string> | undefined;
|
|
114
143
|
};
|
|
115
144
|
|
|
116
145
|
/** @internal */
|
|
@@ -120,6 +149,7 @@ export const SearchRobloxRequest$outboundSchema: z.ZodMiniType<
|
|
|
120
149
|
> = z.object({
|
|
121
150
|
query: z.string(),
|
|
122
151
|
type: z._default(SearchRobloxType$outboundSchema, "uname"),
|
|
152
|
+
fields: z.optional(z.array(SearchRobloxField$outboundSchema)),
|
|
123
153
|
});
|
|
124
154
|
|
|
125
155
|
export function searchRobloxRequestToJSON(
|
|
@@ -150,6 +180,43 @@ export function altAccountsFromJSON(
|
|
|
150
180
|
);
|
|
151
181
|
}
|
|
152
182
|
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const LeakcheckStealer$inboundSchema: z.ZodMiniType<
|
|
185
|
+
LeakcheckStealer,
|
|
186
|
+
unknown
|
|
187
|
+
> = z.object({});
|
|
188
|
+
|
|
189
|
+
export function leakcheckStealerFromJSON(
|
|
190
|
+
jsonString: string,
|
|
191
|
+
): SafeParseResult<LeakcheckStealer, SDKValidationError> {
|
|
192
|
+
return safeParse(
|
|
193
|
+
jsonString,
|
|
194
|
+
(x) => LeakcheckStealer$inboundSchema.parse(JSON.parse(x)),
|
|
195
|
+
`Failed to parse 'LeakcheckStealer' from JSON`,
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/** @internal */
|
|
200
|
+
export const LeakcheckStealerUnion$inboundSchema: z.ZodMiniType<
|
|
201
|
+
LeakcheckStealerUnion,
|
|
202
|
+
unknown
|
|
203
|
+
> = smartUnion([
|
|
204
|
+
types.number(),
|
|
205
|
+
z.lazy(() => LeakcheckStealer$inboundSchema),
|
|
206
|
+
types.string(),
|
|
207
|
+
types.boolean(),
|
|
208
|
+
]);
|
|
209
|
+
|
|
210
|
+
export function leakcheckStealerUnionFromJSON(
|
|
211
|
+
jsonString: string,
|
|
212
|
+
): SafeParseResult<LeakcheckStealerUnion, SDKValidationError> {
|
|
213
|
+
return safeParse(
|
|
214
|
+
jsonString,
|
|
215
|
+
(x) => LeakcheckStealerUnion$inboundSchema.parse(JSON.parse(x)),
|
|
216
|
+
`Failed to parse 'LeakcheckStealerUnion' from JSON`,
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
153
220
|
/** @internal */
|
|
154
221
|
export const SearchRobloxPlatforms$inboundSchema: z.ZodMiniType<
|
|
155
222
|
SearchRobloxPlatforms,
|
|
@@ -310,6 +377,14 @@ export const SearchRobloxData$inboundSchema: z.ZodMiniType<
|
|
|
310
377
|
type: types.string(),
|
|
311
378
|
altAccountThumbnails: types.optional(z.record(z.string(), types.string())),
|
|
312
379
|
altAccounts: types.optional(z.lazy(() => AltAccounts$inboundSchema)),
|
|
380
|
+
leakcheckStealers: types.optional(
|
|
381
|
+
z.array(types.nullable(smartUnion([
|
|
382
|
+
types.number(),
|
|
383
|
+
z.lazy(() => LeakcheckStealer$inboundSchema),
|
|
384
|
+
types.string(),
|
|
385
|
+
types.boolean(),
|
|
386
|
+
]))),
|
|
387
|
+
),
|
|
313
388
|
leaks: types.optional(z.any()),
|
|
314
389
|
profile: types.optional(z.lazy(() => SearchRobloxProfile$inboundSchema)),
|
|
315
390
|
stealers: types.optional(
|