@indiciaosint/sdk 1.1.0 → 1.2.1
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/FUNCTIONS.md +1 -1
- package/README.md +53 -13
- package/esm/funcs/activity-delete-activity.js +3 -3
- package/esm/funcs/activity-delete-activity.js.map +1 -1
- package/esm/funcs/activity-get-activity.js +3 -3
- package/esm/funcs/activity-get-activity.js.map +1 -1
- package/esm/funcs/activity-list-activities.js +3 -3
- package/esm/funcs/activity-list-activities.js.map +1 -1
- package/esm/funcs/infrastructure-scan-ports.d.ts +2 -127
- package/esm/funcs/infrastructure-scan-ports.d.ts.map +1 -1
- package/esm/funcs/infrastructure-scan-ports.js +12 -131
- package/esm/funcs/infrastructure-scan-ports.js.map +1 -1
- package/esm/funcs/infrastructure-search-certificates.js +3 -3
- package/esm/funcs/infrastructure-search-certificates.js.map +1 -1
- package/esm/funcs/infrastructure-search-dns.js +3 -3
- package/esm/funcs/infrastructure-search-dns.js.map +1 -1
- package/esm/funcs/infrastructure-search-ip-info.js +3 -3
- package/esm/funcs/infrastructure-search-ip-info.js.map +1 -1
- package/esm/funcs/infrastructure-search-shodan.js +3 -3
- package/esm/funcs/infrastructure-search-shodan.js.map +1 -1
- package/esm/funcs/infrastructure-search-whois.js +3 -3
- package/esm/funcs/infrastructure-search-whois.js.map +1 -1
- package/esm/funcs/intelligence-geolocate-media.d.ts +2 -13
- package/esm/funcs/intelligence-geolocate-media.d.ts.map +1 -1
- package/esm/funcs/intelligence-geolocate-media.js +12 -17
- package/esm/funcs/intelligence-geolocate-media.js.map +1 -1
- package/esm/funcs/intelligence-search-address.js +3 -3
- package/esm/funcs/intelligence-search-address.js.map +1 -1
- package/esm/funcs/intelligence-search-email.js +3 -3
- package/esm/funcs/intelligence-search-email.js.map +1 -1
- package/esm/funcs/intelligence-search-face.d.ts +2 -1
- package/esm/funcs/intelligence-search-face.d.ts.map +1 -1
- package/esm/funcs/intelligence-search-face.js +12 -5
- package/esm/funcs/intelligence-search-face.js.map +1 -1
- package/esm/funcs/intelligence-search-gmail.js +3 -3
- package/esm/funcs/intelligence-search-gmail.js.map +1 -1
- package/esm/funcs/intelligence-search-hudson-rock.js +3 -3
- package/esm/funcs/intelligence-search-hudson-rock.js.map +1 -1
- package/esm/funcs/intelligence-search-person.js +3 -3
- package/esm/funcs/intelligence-search-person.js.map +1 -1
- package/esm/funcs/intelligence-search-phone.js +3 -3
- package/esm/funcs/intelligence-search-phone.js.map +1 -1
- package/esm/funcs/intelligence-search-seon.js +3 -3
- package/esm/funcs/intelligence-search-seon.js.map +1 -1
- package/esm/funcs/intelligence-search-web-databases.js +3 -3
- package/esm/funcs/intelligence-search-web-databases.js.map +1 -1
- package/esm/funcs/organizations-get-organization-audit-log.js +3 -3
- package/esm/funcs/organizations-get-organization-audit-log.js.map +1 -1
- package/esm/funcs/organizations-get-organization.js +3 -3
- package/esm/funcs/organizations-get-organization.js.map +1 -1
- package/esm/funcs/organizations-list-organization-cases.js +3 -3
- package/esm/funcs/organizations-list-organization-cases.js.map +1 -1
- package/esm/funcs/organizations-list-organization-members.js +3 -3
- package/esm/funcs/organizations-list-organization-members.js.map +1 -1
- package/esm/funcs/organizations-list-organizations.js +3 -3
- package/esm/funcs/organizations-list-organizations.js.map +1 -1
- package/esm/funcs/organizations-send-organization-credits.js +3 -3
- package/esm/funcs/organizations-send-organization-credits.js.map +1 -1
- package/esm/funcs/pricing-get-pricing.js +3 -3
- package/esm/funcs/pricing-get-pricing.js.map +1 -1
- package/esm/funcs/socials-search-discord.js +3 -3
- package/esm/funcs/socials-search-discord.js.map +1 -1
- package/esm/funcs/socials-search-github.d.ts +3 -2
- package/esm/funcs/socials-search-github.d.ts.map +1 -1
- package/esm/funcs/socials-search-github.js +14 -6
- package/esm/funcs/socials-search-github.js.map +1 -1
- package/esm/funcs/socials-search-roblox.js +3 -3
- package/esm/funcs/socials-search-roblox.js.map +1 -1
- package/esm/funcs/socials-search-tiktok.js +3 -3
- package/esm/funcs/socials-search-tiktok.js.map +1 -1
- package/esm/funcs/socials-search-username.d.ts +3 -2
- package/esm/funcs/socials-search-username.d.ts.map +1 -1
- package/esm/funcs/socials-search-username.js +14 -6
- package/esm/funcs/socials-search-username.js.map +1 -1
- package/esm/funcs/tools-bypass-double-counter.js +3 -3
- package/esm/funcs/tools-bypass-double-counter.js.map +1 -1
- package/esm/funcs/tools-download-intelx-file.js +3 -3
- package/esm/funcs/tools-download-intelx-file.js.map +1 -1
- package/esm/funcs/tools-lookup-discord-alt.js +3 -3
- package/esm/funcs/tools-lookup-discord-alt.js.map +1 -1
- package/esm/funcs/users-get-info.js +3 -3
- package/esm/funcs/users-get-info.js.map +1 -1
- package/esm/hooks/hooks.d.ts.map +1 -1
- package/esm/hooks/hooks.js +2 -0
- package/esm/hooks/hooks.js.map +1 -1
- package/esm/hooks/registration.d.ts +3 -0
- package/esm/hooks/registration.d.ts.map +1 -0
- package/esm/hooks/registration.js +12 -0
- package/esm/hooks/registration.js.map +1 -0
- package/esm/lib/config.d.ts +4 -4
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- package/esm/lib/env.d.ts +1 -1
- package/esm/lib/env.d.ts.map +1 -1
- package/esm/lib/env.js +1 -1
- package/esm/lib/env.js.map +1 -1
- package/esm/lib/event-streams.d.ts +23 -0
- package/esm/lib/event-streams.d.ts.map +1 -0
- package/esm/lib/event-streams.js +163 -0
- package/esm/lib/event-streams.js.map +1 -0
- package/esm/lib/security.js +1 -1
- package/esm/lib/security.js.map +1 -1
- package/esm/models/operations/geolocate-media.d.ts +91 -0
- package/esm/models/operations/geolocate-media.d.ts.map +1 -1
- package/esm/models/operations/geolocate-media.js +74 -0
- package/esm/models/operations/geolocate-media.js.map +1 -1
- package/esm/models/operations/scan-ports.d.ts +355 -0
- package/esm/models/operations/scan-ports.d.ts.map +1 -1
- package/esm/models/operations/scan-ports.js +473 -0
- package/esm/models/operations/scan-ports.js.map +1 -1
- package/esm/models/operations/search-face.d.ts +95 -0
- package/esm/models/operations/search-face.d.ts.map +1 -1
- package/esm/models/operations/search-face.js +97 -0
- package/esm/models/operations/search-face.js.map +1 -1
- package/esm/models/operations/search-github.d.ts +69 -7
- package/esm/models/operations/search-github.d.ts.map +1 -1
- package/esm/models/operations/search-github.js +83 -9
- package/esm/models/operations/search-github.js.map +1 -1
- package/esm/models/operations/search-username.d.ts +435 -19
- package/esm/models/operations/search-username.d.ts.map +1 -1
- package/esm/models/operations/search-username.js +738 -20
- package/esm/models/operations/search-username.js.map +1 -1
- package/esm/models/operations/search-web-databases.d.ts +4 -5
- package/esm/models/operations/search-web-databases.d.ts.map +1 -1
- package/esm/models/operations/search-web-databases.js +3 -4
- package/esm/models/operations/search-web-databases.js.map +1 -1
- package/esm/models/security.d.ts +2 -2
- package/esm/models/security.d.ts.map +1 -1
- package/esm/models/security.js +2 -2
- package/esm/models/security.js.map +1 -1
- package/esm/sdk/infrastructure.d.ts +2 -127
- package/esm/sdk/infrastructure.d.ts.map +1 -1
- package/esm/sdk/infrastructure.js +0 -126
- package/esm/sdk/infrastructure.js.map +1 -1
- package/esm/sdk/intelligence.d.ts +3 -14
- package/esm/sdk/intelligence.d.ts.map +1 -1
- package/esm/sdk/intelligence.js +0 -12
- package/esm/sdk/intelligence.js.map +1 -1
- package/esm/sdk/socials.d.ts +5 -4
- package/esm/sdk/socials.d.ts.map +1 -1
- package/esm/sdk/socials.js +2 -2
- package/esm/sdk/socials.js.map +1 -1
- package/esm/types/discriminated-union.d.ts +25 -0
- package/esm/types/discriminated-union.d.ts.map +1 -0
- package/esm/types/discriminated-union.js +61 -0
- package/esm/types/discriminated-union.js.map +1 -0
- package/esm/types/smart-union.d.ts.map +1 -1
- package/esm/types/smart-union.js +2 -1
- package/esm/types/smart-union.js.map +1 -1
- package/examples/usersGetInfo.example.ts +1 -1
- package/jsr.json +2 -1
- package/package.json +1 -1
- package/src/funcs/activity-delete-activity.ts +3 -3
- package/src/funcs/activity-get-activity.ts +3 -3
- package/src/funcs/activity-list-activities.ts +3 -3
- package/src/funcs/infrastructure-scan-ports.ts +21 -134
- package/src/funcs/infrastructure-search-certificates.ts +3 -3
- package/src/funcs/infrastructure-search-dns.ts +3 -3
- package/src/funcs/infrastructure-search-ip-info.ts +3 -3
- package/src/funcs/infrastructure-search-shodan.ts +3 -3
- package/src/funcs/infrastructure-search-whois.ts +3 -3
- package/src/funcs/intelligence-geolocate-media.ts +21 -20
- package/src/funcs/intelligence-search-address.ts +3 -3
- package/src/funcs/intelligence-search-email.ts +3 -3
- package/src/funcs/intelligence-search-face.ts +21 -8
- package/src/funcs/intelligence-search-gmail.ts +3 -3
- package/src/funcs/intelligence-search-hudson-rock.ts +3 -3
- package/src/funcs/intelligence-search-person.ts +3 -3
- package/src/funcs/intelligence-search-phone.ts +3 -3
- package/src/funcs/intelligence-search-seon.ts +3 -3
- package/src/funcs/intelligence-search-web-databases.ts +3 -3
- package/src/funcs/organizations-get-organization-audit-log.ts +3 -3
- package/src/funcs/organizations-get-organization.ts +3 -3
- package/src/funcs/organizations-list-organization-cases.ts +3 -3
- package/src/funcs/organizations-list-organization-members.ts +3 -3
- package/src/funcs/organizations-list-organizations.ts +3 -3
- package/src/funcs/organizations-send-organization-credits.ts +3 -3
- package/src/funcs/pricing-get-pricing.ts +3 -3
- package/src/funcs/socials-search-discord.ts +3 -3
- package/src/funcs/socials-search-github.ts +24 -9
- package/src/funcs/socials-search-roblox.ts +3 -3
- package/src/funcs/socials-search-tiktok.ts +3 -3
- package/src/funcs/socials-search-username.ts +26 -9
- package/src/funcs/tools-bypass-double-counter.ts +3 -3
- package/src/funcs/tools-download-intelx-file.ts +3 -3
- package/src/funcs/tools-lookup-discord-alt.ts +3 -3
- package/src/funcs/users-get-info.ts +3 -3
- package/src/hooks/hooks.ts +3 -0
- package/src/hooks/registration.ts +14 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/env.ts +2 -2
- package/src/lib/event-streams.ts +191 -0
- package/src/lib/security.ts +1 -1
- package/src/models/operations/geolocate-media.ts +231 -0
- package/src/models/operations/scan-ports.ts +1223 -0
- package/src/models/operations/search-face.ts +261 -0
- package/src/models/operations/search-github.ts +225 -41
- package/src/models/operations/search-username.ts +1690 -92
- package/src/models/operations/search-web-databases.ts +9 -8
- package/src/models/security.ts +4 -4
- package/src/sdk/infrastructure.ts +2 -127
- package/src/sdk/intelligence.ts +3 -14
- package/src/sdk/socials.ts +5 -4
- package/src/types/discriminated-union.ts +101 -0
- package/src/types/smart-union.ts +2 -1
|
@@ -7,6 +7,10 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import * as openEnums from "../../types/enums.js";
|
|
8
8
|
import * as types from "../../types/primitives.js";
|
|
9
9
|
import { smartUnion } from "../../types/smart-union.js";
|
|
10
|
+
export const ResultType = {
|
|
11
|
+
Email: "email",
|
|
12
|
+
Username: "username",
|
|
13
|
+
};
|
|
10
14
|
export const SearchUsernameType = {
|
|
11
15
|
Email: "email",
|
|
12
16
|
Username: "username",
|
|
@@ -19,6 +23,691 @@ export function searchUsernameRequestToJSON(searchUsernameRequest) {
|
|
|
19
23
|
return JSON.stringify(SearchUsernameRequest$outboundSchema.parse(searchUsernameRequest));
|
|
20
24
|
}
|
|
21
25
|
/** @internal */
|
|
26
|
+
export const SearchUsernameDataError$inboundSchema = z.object({
|
|
27
|
+
status: types.literal("error"),
|
|
28
|
+
success: types.literal(false),
|
|
29
|
+
error: types.string(),
|
|
30
|
+
});
|
|
31
|
+
export function searchUsernameDataErrorFromJSON(jsonString) {
|
|
32
|
+
return safeParse(jsonString, (x) => SearchUsernameDataError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchUsernameDataError' from JSON`);
|
|
33
|
+
}
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const SearchUsernameErrorEvent$inboundSchema = z.object({
|
|
36
|
+
data: z.pipe(z.pipe(z.unknown(), z.transform((v, ctx) => {
|
|
37
|
+
if (typeof v !== "string")
|
|
38
|
+
return v;
|
|
39
|
+
try {
|
|
40
|
+
return JSON.parse(v);
|
|
41
|
+
}
|
|
42
|
+
catch (err) {
|
|
43
|
+
ctx.issues.push({
|
|
44
|
+
input: v,
|
|
45
|
+
code: "custom",
|
|
46
|
+
message: `malformed json: ${err}`,
|
|
47
|
+
});
|
|
48
|
+
return z.NEVER;
|
|
49
|
+
}
|
|
50
|
+
})), z.lazy(() => SearchUsernameDataError$inboundSchema)),
|
|
51
|
+
});
|
|
52
|
+
export function searchUsernameErrorEventFromJSON(jsonString) {
|
|
53
|
+
return safeParse(jsonString, (x) => SearchUsernameErrorEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchUsernameErrorEvent' from JSON`);
|
|
54
|
+
}
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const ResultType$inboundSchema = openEnums.inboundSchema(ResultType);
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const ResultId$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
59
|
+
export function resultIdFromJSON(jsonString) {
|
|
60
|
+
return safeParse(jsonString, (x) => ResultId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultId' from JSON`);
|
|
61
|
+
}
|
|
62
|
+
/** @internal */
|
|
63
|
+
export const ResultAccount$inboundSchema = z.object({
|
|
64
|
+
domain: types.optional(types.string()),
|
|
65
|
+
shortname: types.optional(types.string()),
|
|
66
|
+
url: types.optional(types.string()),
|
|
67
|
+
verified: types.optional(types.boolean()),
|
|
68
|
+
});
|
|
69
|
+
export function resultAccountFromJSON(jsonString) {
|
|
70
|
+
return safeParse(jsonString, (x) => ResultAccount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultAccount' from JSON`);
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const AwardResult$inboundSchema = z
|
|
74
|
+
.object({});
|
|
75
|
+
export function awardResultFromJSON(jsonString) {
|
|
76
|
+
return safeParse(jsonString, (x) => AwardResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AwardResult' from JSON`);
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const ResultAwardUnion$inboundSchema = smartUnion([
|
|
80
|
+
types.number(),
|
|
81
|
+
z.lazy(() => AwardResult$inboundSchema),
|
|
82
|
+
types.string(),
|
|
83
|
+
types.boolean(),
|
|
84
|
+
]);
|
|
85
|
+
export function resultAwardUnionFromJSON(jsonString) {
|
|
86
|
+
return safeParse(jsonString, (x) => ResultAwardUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultAwardUnion' from JSON`);
|
|
87
|
+
}
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const BadgeResult$inboundSchema = z
|
|
90
|
+
.object({});
|
|
91
|
+
export function badgeResultFromJSON(jsonString) {
|
|
92
|
+
return safeParse(jsonString, (x) => BadgeResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BadgeResult' from JSON`);
|
|
93
|
+
}
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const ResultBadgeUnion$inboundSchema = smartUnion([
|
|
96
|
+
types.number(),
|
|
97
|
+
z.lazy(() => BadgeResult$inboundSchema),
|
|
98
|
+
types.string(),
|
|
99
|
+
types.boolean(),
|
|
100
|
+
]);
|
|
101
|
+
export function resultBadgeUnionFromJSON(jsonString) {
|
|
102
|
+
return safeParse(jsonString, (x) => ResultBadgeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultBadgeUnion' from JSON`);
|
|
103
|
+
}
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const ResultBands$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
106
|
+
export function resultBandsFromJSON(jsonString) {
|
|
107
|
+
return safeParse(jsonString, (x) => ResultBands$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultBands' from JSON`);
|
|
108
|
+
}
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const BioLinkResult$inboundSchema = z.object({});
|
|
111
|
+
export function bioLinkResultFromJSON(jsonString) {
|
|
112
|
+
return safeParse(jsonString, (x) => BioLinkResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BioLinkResult' from JSON`);
|
|
113
|
+
}
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const ResultBioLinkUnion$inboundSchema = smartUnion([
|
|
116
|
+
types.number(),
|
|
117
|
+
z.lazy(() => BioLinkResult$inboundSchema),
|
|
118
|
+
types.string(),
|
|
119
|
+
types.boolean(),
|
|
120
|
+
]);
|
|
121
|
+
export function resultBioLinkUnionFromJSON(jsonString) {
|
|
122
|
+
return safeParse(jsonString, (x) => ResultBioLinkUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultBioLinkUnion' from JSON`);
|
|
123
|
+
}
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const ClubResult$inboundSchema = z
|
|
126
|
+
.object({});
|
|
127
|
+
export function clubResultFromJSON(jsonString) {
|
|
128
|
+
return safeParse(jsonString, (x) => ClubResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ClubResult' from JSON`);
|
|
129
|
+
}
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const ResultClubUnion$inboundSchema = smartUnion([
|
|
132
|
+
types.number(),
|
|
133
|
+
z.lazy(() => ClubResult$inboundSchema),
|
|
134
|
+
types.string(),
|
|
135
|
+
types.boolean(),
|
|
136
|
+
]);
|
|
137
|
+
export function resultClubUnionFromJSON(jsonString) {
|
|
138
|
+
return safeParse(jsonString, (x) => ResultClubUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultClubUnion' from JSON`);
|
|
139
|
+
}
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const ResultCollections$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
142
|
+
export function resultCollectionsFromJSON(jsonString) {
|
|
143
|
+
return safeParse(jsonString, (x) => ResultCollections$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultCollections' from JSON`);
|
|
144
|
+
}
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const ResultConnection$inboundSchema = z.object({
|
|
147
|
+
name: types.optional(types.string()),
|
|
148
|
+
provider: types.optional(types.string()),
|
|
149
|
+
});
|
|
150
|
+
export function resultConnectionFromJSON(jsonString) {
|
|
151
|
+
return safeParse(jsonString, (x) => ResultConnection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultConnection' from JSON`);
|
|
152
|
+
}
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const ResultCourse$inboundSchema = z.object({
|
|
155
|
+
crowns: types.optional(types.number()),
|
|
156
|
+
title: types.optional(types.string()),
|
|
157
|
+
xp: types.optional(types.number()),
|
|
158
|
+
});
|
|
159
|
+
export function resultCourseFromJSON(jsonString) {
|
|
160
|
+
return safeParse(jsonString, (x) => ResultCourse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultCourse' from JSON`);
|
|
161
|
+
}
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const CryptoAddressResult$inboundSchema = z.object({});
|
|
164
|
+
export function cryptoAddressResultFromJSON(jsonString) {
|
|
165
|
+
return safeParse(jsonString, (x) => CryptoAddressResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CryptoAddressResult' from JSON`);
|
|
166
|
+
}
|
|
167
|
+
/** @internal */
|
|
168
|
+
export const ResultCryptoAddressUnion$inboundSchema = smartUnion([
|
|
169
|
+
types.number(),
|
|
170
|
+
z.lazy(() => CryptoAddressResult$inboundSchema),
|
|
171
|
+
types.string(),
|
|
172
|
+
types.boolean(),
|
|
173
|
+
]);
|
|
174
|
+
export function resultCryptoAddressUnionFromJSON(jsonString) {
|
|
175
|
+
return safeParse(jsonString, (x) => ResultCryptoAddressUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultCryptoAddressUnion' from JSON`);
|
|
176
|
+
}
|
|
177
|
+
/** @internal */
|
|
178
|
+
export const ResultFollowers$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
179
|
+
export function resultFollowersFromJSON(jsonString) {
|
|
180
|
+
return safeParse(jsonString, (x) => ResultFollowers$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultFollowers' from JSON`);
|
|
181
|
+
}
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const ResultFollowing$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
184
|
+
export function resultFollowingFromJSON(jsonString) {
|
|
185
|
+
return safeParse(jsonString, (x) => ResultFollowing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultFollowing' from JSON`);
|
|
186
|
+
}
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const LatestPasteResult$inboundSchema = z.object({});
|
|
189
|
+
export function latestPasteResultFromJSON(jsonString) {
|
|
190
|
+
return safeParse(jsonString, (x) => LatestPasteResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LatestPasteResult' from JSON`);
|
|
191
|
+
}
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const ResultLatestPasteUnion$inboundSchema = smartUnion([
|
|
194
|
+
types.number(),
|
|
195
|
+
z.lazy(() => LatestPasteResult$inboundSchema),
|
|
196
|
+
types.string(),
|
|
197
|
+
types.boolean(),
|
|
198
|
+
]);
|
|
199
|
+
export function resultLatestPasteUnionFromJSON(jsonString) {
|
|
200
|
+
return safeParse(jsonString, (x) => ResultLatestPasteUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultLatestPasteUnion' from JSON`);
|
|
201
|
+
}
|
|
202
|
+
/** @internal */
|
|
203
|
+
export const LinkResult$inboundSchema = z
|
|
204
|
+
.object({});
|
|
205
|
+
export function linkResultFromJSON(jsonString) {
|
|
206
|
+
return safeParse(jsonString, (x) => LinkResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LinkResult' from JSON`);
|
|
207
|
+
}
|
|
208
|
+
/** @internal */
|
|
209
|
+
export const ResultLinkUnion$inboundSchema = smartUnion([
|
|
210
|
+
types.number(),
|
|
211
|
+
z.lazy(() => LinkResult$inboundSchema),
|
|
212
|
+
types.string(),
|
|
213
|
+
types.boolean(),
|
|
214
|
+
]);
|
|
215
|
+
export function resultLinkUnionFromJSON(jsonString) {
|
|
216
|
+
return safeParse(jsonString, (x) => ResultLinkUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultLinkUnion' from JSON`);
|
|
217
|
+
}
|
|
218
|
+
/** @internal */
|
|
219
|
+
export const ResultOrganization$inboundSchema = z.object({
|
|
220
|
+
name: types.optional(types.string()),
|
|
221
|
+
url: types.optional(types.string()),
|
|
222
|
+
});
|
|
223
|
+
export function resultOrganizationFromJSON(jsonString) {
|
|
224
|
+
return safeParse(jsonString, (x) => ResultOrganization$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultOrganization' from JSON`);
|
|
225
|
+
}
|
|
226
|
+
/** @internal */
|
|
227
|
+
export const PlatformResult$inboundSchema = z.object({});
|
|
228
|
+
export function platformResultFromJSON(jsonString) {
|
|
229
|
+
return safeParse(jsonString, (x) => PlatformResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformResult' from JSON`);
|
|
230
|
+
}
|
|
231
|
+
/** @internal */
|
|
232
|
+
export const ResultPlatformUnion$inboundSchema = smartUnion([
|
|
233
|
+
types.number(),
|
|
234
|
+
z.lazy(() => PlatformResult$inboundSchema),
|
|
235
|
+
types.string(),
|
|
236
|
+
types.boolean(),
|
|
237
|
+
]);
|
|
238
|
+
export function resultPlatformUnionFromJSON(jsonString) {
|
|
239
|
+
return safeParse(jsonString, (x) => ResultPlatformUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultPlatformUnion' from JSON`);
|
|
240
|
+
}
|
|
241
|
+
/** @internal */
|
|
242
|
+
export const ResultPlays$inboundSchema = smartUnion([types.number(), types.string()]);
|
|
243
|
+
export function resultPlaysFromJSON(jsonString) {
|
|
244
|
+
return safeParse(jsonString, (x) => ResultPlays$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultPlays' from JSON`);
|
|
245
|
+
}
|
|
246
|
+
/** @internal */
|
|
247
|
+
export const ProofResult$inboundSchema = z
|
|
248
|
+
.object({});
|
|
249
|
+
export function proofResultFromJSON(jsonString) {
|
|
250
|
+
return safeParse(jsonString, (x) => ProofResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProofResult' from JSON`);
|
|
251
|
+
}
|
|
252
|
+
/** @internal */
|
|
253
|
+
export const ResultProofUnion$inboundSchema = smartUnion([
|
|
254
|
+
types.number(),
|
|
255
|
+
z.lazy(() => ProofResult$inboundSchema),
|
|
256
|
+
types.string(),
|
|
257
|
+
types.boolean(),
|
|
258
|
+
]);
|
|
259
|
+
export function resultProofUnionFromJSON(jsonString) {
|
|
260
|
+
return safeParse(jsonString, (x) => ResultProofUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultProofUnion' from JSON`);
|
|
261
|
+
}
|
|
262
|
+
/** @internal */
|
|
263
|
+
export const RoleResult$inboundSchema = z
|
|
264
|
+
.object({});
|
|
265
|
+
export function roleResultFromJSON(jsonString) {
|
|
266
|
+
return safeParse(jsonString, (x) => RoleResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RoleResult' from JSON`);
|
|
267
|
+
}
|
|
268
|
+
/** @internal */
|
|
269
|
+
export const ResultRoleUnion$inboundSchema = smartUnion([
|
|
270
|
+
types.number(),
|
|
271
|
+
z.lazy(() => RoleResult$inboundSchema),
|
|
272
|
+
types.string(),
|
|
273
|
+
types.boolean(),
|
|
274
|
+
]);
|
|
275
|
+
export function resultRoleUnionFromJSON(jsonString) {
|
|
276
|
+
return safeParse(jsonString, (x) => ResultRoleUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultRoleUnion' from JSON`);
|
|
277
|
+
}
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const SocialLinkResult$inboundSchema = z.object({});
|
|
280
|
+
export function socialLinkResultFromJSON(jsonString) {
|
|
281
|
+
return safeParse(jsonString, (x) => SocialLinkResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SocialLinkResult' from JSON`);
|
|
282
|
+
}
|
|
283
|
+
/** @internal */
|
|
284
|
+
export const ResultSocialLinkUnion$inboundSchema = smartUnion([
|
|
285
|
+
types.number(),
|
|
286
|
+
z.lazy(() => SocialLinkResult$inboundSchema),
|
|
287
|
+
types.string(),
|
|
288
|
+
types.boolean(),
|
|
289
|
+
]);
|
|
290
|
+
export function resultSocialLinkUnionFromJSON(jsonString) {
|
|
291
|
+
return safeParse(jsonString, (x) => ResultSocialLinkUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultSocialLinkUnion' from JSON`);
|
|
292
|
+
}
|
|
293
|
+
/** @internal */
|
|
294
|
+
export const SocialsResult$inboundSchema = z.object({
|
|
295
|
+
facebook: types.optional(types.string()),
|
|
296
|
+
instagram: types.optional(types.string()),
|
|
297
|
+
twitter: types.optional(types.string()),
|
|
298
|
+
website: types.optional(types.string()),
|
|
299
|
+
});
|
|
300
|
+
export function socialsResultFromJSON(jsonString) {
|
|
301
|
+
return safeParse(jsonString, (x) => SocialsResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SocialsResult' from JSON`);
|
|
302
|
+
}
|
|
303
|
+
/** @internal */
|
|
304
|
+
export const ResultSocialsUnion$inboundSchema = smartUnion([
|
|
305
|
+
z.lazy(() => SocialsResult$inboundSchema),
|
|
306
|
+
z.array(types.string()),
|
|
307
|
+
]);
|
|
308
|
+
export function resultSocialsUnionFromJSON(jsonString) {
|
|
309
|
+
return safeParse(jsonString, (x) => ResultSocialsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultSocialsUnion' from JSON`);
|
|
310
|
+
}
|
|
311
|
+
/** @internal */
|
|
312
|
+
export const StatusResult$inboundSchema = z.pipe(z.object({
|
|
313
|
+
is_coach: types.optional(types.boolean()),
|
|
314
|
+
is_moderator: types.optional(types.boolean()),
|
|
315
|
+
is_staff: types.optional(types.boolean()),
|
|
316
|
+
is_streamer: types.optional(types.boolean()),
|
|
317
|
+
is_top_blogger: types.optional(types.boolean()),
|
|
318
|
+
}), z.transform((v) => {
|
|
319
|
+
return remap$(v, {
|
|
320
|
+
"is_coach": "isCoach",
|
|
321
|
+
"is_moderator": "isModerator",
|
|
322
|
+
"is_staff": "isStaff",
|
|
323
|
+
"is_streamer": "isStreamer",
|
|
324
|
+
"is_top_blogger": "isTopBlogger",
|
|
325
|
+
});
|
|
326
|
+
}));
|
|
327
|
+
export function statusResultFromJSON(jsonString) {
|
|
328
|
+
return safeParse(jsonString, (x) => StatusResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StatusResult' from JSON`);
|
|
329
|
+
}
|
|
330
|
+
/** @internal */
|
|
331
|
+
export const ResultStatusUnion$inboundSchema = smartUnion([types.string(), z.lazy(() => StatusResult$inboundSchema)]);
|
|
332
|
+
export function resultStatusUnionFromJSON(jsonString) {
|
|
333
|
+
return safeParse(jsonString, (x) => ResultStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultStatusUnion' from JSON`);
|
|
334
|
+
}
|
|
335
|
+
/** @internal */
|
|
336
|
+
export const UrlEntityResult$inboundSchema = z.object({});
|
|
337
|
+
export function urlEntityResultFromJSON(jsonString) {
|
|
338
|
+
return safeParse(jsonString, (x) => UrlEntityResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UrlEntityResult' from JSON`);
|
|
339
|
+
}
|
|
340
|
+
/** @internal */
|
|
341
|
+
export const ResultUrlEntityUnion$inboundSchema = smartUnion([
|
|
342
|
+
types.number(),
|
|
343
|
+
z.lazy(() => UrlEntityResult$inboundSchema),
|
|
344
|
+
types.string(),
|
|
345
|
+
types.boolean(),
|
|
346
|
+
]);
|
|
347
|
+
export function resultUrlEntityUnionFromJSON(jsonString) {
|
|
348
|
+
return safeParse(jsonString, (x) => ResultUrlEntityUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultUrlEntityUnion' from JSON`);
|
|
349
|
+
}
|
|
350
|
+
/** @internal */
|
|
351
|
+
export const ResultUrl$inboundSchema = z
|
|
352
|
+
.object({
|
|
353
|
+
title: types.optional(types.string()),
|
|
354
|
+
value: types.optional(types.string()),
|
|
355
|
+
});
|
|
356
|
+
export function resultUrlFromJSON(jsonString) {
|
|
357
|
+
return safeParse(jsonString, (x) => ResultUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultUrl' from JSON`);
|
|
358
|
+
}
|
|
359
|
+
/** @internal */
|
|
360
|
+
export const ResultMetadata$inboundSchema = z.pipe(z.object({
|
|
361
|
+
accent_color: types.optional(types.string()),
|
|
362
|
+
account_type: types.optional(types.string()),
|
|
363
|
+
accounts: types.optional(z.array(z.lazy(() => ResultAccount$inboundSchema))),
|
|
364
|
+
address: types.optional(types.string()),
|
|
365
|
+
awardee_karma: types.optional(types.number()),
|
|
366
|
+
awarder_karma: types.optional(types.number()),
|
|
367
|
+
awards: types.optional(z.array(types.nullable(smartUnion([
|
|
368
|
+
types.number(),
|
|
369
|
+
z.lazy(() => AwardResult$inboundSchema),
|
|
370
|
+
types.string(),
|
|
371
|
+
types.boolean(),
|
|
372
|
+
])))),
|
|
373
|
+
background_picture: types.optional(types.string()),
|
|
374
|
+
badges: types.optional(z.array(types.nullable(smartUnion([
|
|
375
|
+
types.number(),
|
|
376
|
+
z.lazy(() => BadgeResult$inboundSchema),
|
|
377
|
+
types.string(),
|
|
378
|
+
types.boolean(),
|
|
379
|
+
])))),
|
|
380
|
+
bands: types.optional(smartUnion([types.number(), types.string()])),
|
|
381
|
+
bio_links: types.optional(z.array(types.nullable(smartUnion([
|
|
382
|
+
types.number(),
|
|
383
|
+
z.lazy(() => BioLinkResult$inboundSchema),
|
|
384
|
+
types.string(),
|
|
385
|
+
types.boolean(),
|
|
386
|
+
])))),
|
|
387
|
+
blog: types.optional(types.string()),
|
|
388
|
+
board_count: types.optional(types.number()),
|
|
389
|
+
broadcaster_type: types.optional(types.string()),
|
|
390
|
+
cape_url: types.optional(types.string()),
|
|
391
|
+
cashtag_url: types.optional(types.string()),
|
|
392
|
+
channel_id: types.optional(types.string()),
|
|
393
|
+
clubs: types.optional(z.array(types.nullable(smartUnion([
|
|
394
|
+
types.number(),
|
|
395
|
+
z.lazy(() => ClubResult$inboundSchema),
|
|
396
|
+
types.string(),
|
|
397
|
+
types.boolean(),
|
|
398
|
+
])))),
|
|
399
|
+
collections: types.optional(smartUnion([types.number(), types.string()])),
|
|
400
|
+
company: types.optional(types.string()),
|
|
401
|
+
connections: types.optional(z.array(z.lazy(() => ResultConnection$inboundSchema))),
|
|
402
|
+
courses: types.optional(z.array(z.lazy(() => ResultCourse$inboundSchema))),
|
|
403
|
+
cover_image: types.optional(types.string()),
|
|
404
|
+
created_at: types.optional(types.string()),
|
|
405
|
+
created_date: types.optional(types.string()),
|
|
406
|
+
created_on: types.optional(types.string()),
|
|
407
|
+
created_utc: types.optional(types.number()),
|
|
408
|
+
crypto_addresses: types.optional(z.array(types.nullable(smartUnion([
|
|
409
|
+
types.number(),
|
|
410
|
+
z.lazy(() => CryptoAddressResult$inboundSchema),
|
|
411
|
+
types.string(),
|
|
412
|
+
types.boolean(),
|
|
413
|
+
])))),
|
|
414
|
+
currency: types.optional(types.string()),
|
|
415
|
+
current_streak: types.optional(types.number()),
|
|
416
|
+
devices: types.optional(z.array(types.string())),
|
|
417
|
+
emails: types.optional(z.array(types.string())),
|
|
418
|
+
external_url: types.optional(types.string()),
|
|
419
|
+
family_name: types.optional(types.string()),
|
|
420
|
+
followers: types.optional(smartUnion([types.number(), types.string()])),
|
|
421
|
+
following: types.optional(smartUnion([types.number(), types.string()])),
|
|
422
|
+
friend_count: types.optional(types.number()),
|
|
423
|
+
genres: types.optional(z.array(types.string())),
|
|
424
|
+
given_name: types.optional(types.string()),
|
|
425
|
+
has_plus: types.optional(types.boolean()),
|
|
426
|
+
has_verified_email: types.optional(types.boolean()),
|
|
427
|
+
inspired_by: types.optional(z.array(types.string())),
|
|
428
|
+
is_affiliate: types.optional(types.boolean()),
|
|
429
|
+
is_banned: types.optional(types.boolean()),
|
|
430
|
+
is_business: types.optional(types.boolean()),
|
|
431
|
+
is_channel: types.optional(types.boolean()),
|
|
432
|
+
is_confirmed: types.optional(types.boolean()),
|
|
433
|
+
is_gold: types.optional(types.boolean()),
|
|
434
|
+
is_group: types.optional(types.boolean()),
|
|
435
|
+
is_hacker: types.optional(types.boolean()),
|
|
436
|
+
is_junior: types.optional(types.boolean()),
|
|
437
|
+
is_legacy: types.optional(types.boolean()),
|
|
438
|
+
is_meta_blocked: types.optional(types.boolean()),
|
|
439
|
+
is_mod: types.optional(types.boolean()),
|
|
440
|
+
is_partner: types.optional(types.boolean()),
|
|
441
|
+
is_premium: types.optional(types.boolean()),
|
|
442
|
+
is_professional: types.optional(types.boolean()),
|
|
443
|
+
is_suspended: types.optional(types.boolean()),
|
|
444
|
+
is_verified: z.optional(z.nullable(types.boolean())),
|
|
445
|
+
joined_at: types.optional(types.string()),
|
|
446
|
+
keywords: types.optional(z.array(types.string())),
|
|
447
|
+
last_modified: types.optional(types.string()),
|
|
448
|
+
last_seen: types.optional(types.string()),
|
|
449
|
+
latest_pastes: types.optional(z.array(types.nullable(smartUnion([
|
|
450
|
+
types.number(),
|
|
451
|
+
z.lazy(() => LatestPasteResult$inboundSchema),
|
|
452
|
+
types.string(),
|
|
453
|
+
types.boolean(),
|
|
454
|
+
])))),
|
|
455
|
+
learning_language: types.optional(types.string()),
|
|
456
|
+
likes: types.optional(types.number()),
|
|
457
|
+
likes_received: types.optional(types.number()),
|
|
458
|
+
links: types.optional(z.array(types.nullable(smartUnion([
|
|
459
|
+
types.number(),
|
|
460
|
+
z.lazy(() => LinkResult$inboundSchema),
|
|
461
|
+
types.string(),
|
|
462
|
+
types.boolean(),
|
|
463
|
+
])))),
|
|
464
|
+
listed_count: types.optional(types.number()),
|
|
465
|
+
media_count: types.optional(types.number()),
|
|
466
|
+
member_type: types.optional(types.string()),
|
|
467
|
+
organizations: types.optional(z.array(z.lazy(() => ResultOrganization$inboundSchema))),
|
|
468
|
+
page_views: types.optional(types.number()),
|
|
469
|
+
past_usernames: types.optional(z.array(types.string())),
|
|
470
|
+
paste_views: types.optional(types.number()),
|
|
471
|
+
pins: types.optional(types.number()),
|
|
472
|
+
platform_id: types.optional(types.string()),
|
|
473
|
+
platforms: types.optional(z.array(types.nullable(smartUnion([
|
|
474
|
+
types.number(),
|
|
475
|
+
z.lazy(() => PlatformResult$inboundSchema),
|
|
476
|
+
types.string(),
|
|
477
|
+
types.boolean(),
|
|
478
|
+
])))),
|
|
479
|
+
playlist_count: types.optional(types.number()),
|
|
480
|
+
plays: types.optional(smartUnion([types.number(), types.string()])),
|
|
481
|
+
posts: types.optional(types.number()),
|
|
482
|
+
posts_count: types.optional(types.number()),
|
|
483
|
+
primary_team: types.optional(types.string()),
|
|
484
|
+
profile_views: types.optional(types.number()),
|
|
485
|
+
proofs: types.optional(z.array(types.nullable(smartUnion([
|
|
486
|
+
types.number(),
|
|
487
|
+
z.lazy(() => ProofResult$inboundSchema),
|
|
488
|
+
types.string(),
|
|
489
|
+
types.boolean(),
|
|
490
|
+
])))),
|
|
491
|
+
provider: types.optional(types.string()),
|
|
492
|
+
provider_id: types.optional(types.string()),
|
|
493
|
+
public_gists: types.optional(types.number()),
|
|
494
|
+
public_repos: types.optional(types.number()),
|
|
495
|
+
rate_plan: types.optional(types.string()),
|
|
496
|
+
real_name: types.optional(types.string()),
|
|
497
|
+
recent_activity: types.optional(z.any()),
|
|
498
|
+
recovery_email: types.optional(types.string()),
|
|
499
|
+
region: types.optional(types.string()),
|
|
500
|
+
registered_since: types.optional(types.string()),
|
|
501
|
+
reputation: types.optional(types.number()),
|
|
502
|
+
reputation_label: types.optional(types.string()),
|
|
503
|
+
roles: types.optional(z.array(types.nullable(smartUnion([
|
|
504
|
+
types.number(),
|
|
505
|
+
z.lazy(() => RoleResult$inboundSchema),
|
|
506
|
+
types.string(),
|
|
507
|
+
types.boolean(),
|
|
508
|
+
])))),
|
|
509
|
+
scratch_team: types.optional(types.boolean()),
|
|
510
|
+
skills: types.optional(z.array(types.string())),
|
|
511
|
+
skin_url: types.optional(types.string()),
|
|
512
|
+
social_links: types.optional(z.array(types.nullable(smartUnion([
|
|
513
|
+
types.number(),
|
|
514
|
+
z.lazy(() => SocialLinkResult$inboundSchema),
|
|
515
|
+
types.string(),
|
|
516
|
+
types.boolean(),
|
|
517
|
+
])))),
|
|
518
|
+
socials: types.optional(smartUnion([
|
|
519
|
+
z.lazy(() => SocialsResult$inboundSchema),
|
|
520
|
+
z.array(types.string()),
|
|
521
|
+
])),
|
|
522
|
+
status: types.optional(smartUnion([types.string(), z.lazy(() => StatusResult$inboundSchema)])),
|
|
523
|
+
steam_id_64: types.optional(types.string()),
|
|
524
|
+
streak: types.optional(types.number()),
|
|
525
|
+
subscriber_count: types.optional(types.number()),
|
|
526
|
+
subscribers: types.optional(types.number()),
|
|
527
|
+
theme_title: types.optional(types.string()),
|
|
528
|
+
thumbnail: types.optional(types.string()),
|
|
529
|
+
title: types.optional(types.string()),
|
|
530
|
+
total_karma: types.optional(types.number()),
|
|
531
|
+
total_scrobbles: types.optional(types.number()),
|
|
532
|
+
total_xp: types.optional(types.number()),
|
|
533
|
+
track_count: types.optional(types.number()),
|
|
534
|
+
trn_rank: types.optional(types.string()),
|
|
535
|
+
trn_rating: types.optional(types.string()),
|
|
536
|
+
trophies: types.optional(z.array(types.string())),
|
|
537
|
+
tweets: types.optional(types.number()),
|
|
538
|
+
twitter_username: types.optional(types.string()),
|
|
539
|
+
updated_at: types.optional(types.string()),
|
|
540
|
+
upvotes: types.optional(types.number()),
|
|
541
|
+
url_entities: types.optional(z.array(types.nullable(smartUnion([
|
|
542
|
+
types.number(),
|
|
543
|
+
z.lazy(() => UrlEntityResult$inboundSchema),
|
|
544
|
+
types.string(),
|
|
545
|
+
types.boolean(),
|
|
546
|
+
])))),
|
|
547
|
+
urls: types.optional(z.array(z.lazy(() => ResultUrl$inboundSchema))),
|
|
548
|
+
uuid: types.optional(types.string()),
|
|
549
|
+
video_count: types.optional(types.number()),
|
|
550
|
+
visible_collection_count: types.optional(types.number()),
|
|
551
|
+
visible_wishlist_count: types.optional(types.number()),
|
|
552
|
+
website: types.optional(types.string()),
|
|
553
|
+
}), z.transform((v) => {
|
|
554
|
+
return remap$(v, {
|
|
555
|
+
"accent_color": "accentColor",
|
|
556
|
+
"account_type": "accountType",
|
|
557
|
+
"awardee_karma": "awardeeKarma",
|
|
558
|
+
"awarder_karma": "awarderKarma",
|
|
559
|
+
"background_picture": "backgroundPicture",
|
|
560
|
+
"bio_links": "bioLinks",
|
|
561
|
+
"board_count": "boardCount",
|
|
562
|
+
"broadcaster_type": "broadcasterType",
|
|
563
|
+
"cape_url": "capeUrl",
|
|
564
|
+
"cashtag_url": "cashtagUrl",
|
|
565
|
+
"channel_id": "channelId",
|
|
566
|
+
"cover_image": "coverImage",
|
|
567
|
+
"created_at": "createdAt",
|
|
568
|
+
"created_date": "createdDate",
|
|
569
|
+
"created_on": "createdOn",
|
|
570
|
+
"created_utc": "createdUtc",
|
|
571
|
+
"crypto_addresses": "cryptoAddresses",
|
|
572
|
+
"current_streak": "currentStreak",
|
|
573
|
+
"external_url": "externalUrl",
|
|
574
|
+
"family_name": "familyName",
|
|
575
|
+
"friend_count": "friendCount",
|
|
576
|
+
"given_name": "givenName",
|
|
577
|
+
"has_plus": "hasPlus",
|
|
578
|
+
"has_verified_email": "hasVerifiedEmail",
|
|
579
|
+
"inspired_by": "inspiredBy",
|
|
580
|
+
"is_affiliate": "isAffiliate",
|
|
581
|
+
"is_banned": "isBanned",
|
|
582
|
+
"is_business": "isBusiness",
|
|
583
|
+
"is_channel": "isChannel",
|
|
584
|
+
"is_confirmed": "isConfirmed",
|
|
585
|
+
"is_gold": "isGold",
|
|
586
|
+
"is_group": "isGroup",
|
|
587
|
+
"is_hacker": "isHacker",
|
|
588
|
+
"is_junior": "isJunior",
|
|
589
|
+
"is_legacy": "isLegacy",
|
|
590
|
+
"is_meta_blocked": "isMetaBlocked",
|
|
591
|
+
"is_mod": "isMod",
|
|
592
|
+
"is_partner": "isPartner",
|
|
593
|
+
"is_premium": "isPremium",
|
|
594
|
+
"is_professional": "isProfessional",
|
|
595
|
+
"is_suspended": "isSuspended",
|
|
596
|
+
"is_verified": "isVerified",
|
|
597
|
+
"joined_at": "joinedAt",
|
|
598
|
+
"last_modified": "lastModified",
|
|
599
|
+
"last_seen": "lastSeen",
|
|
600
|
+
"latest_pastes": "latestPastes",
|
|
601
|
+
"learning_language": "learningLanguage",
|
|
602
|
+
"likes_received": "likesReceived",
|
|
603
|
+
"listed_count": "listedCount",
|
|
604
|
+
"media_count": "mediaCount",
|
|
605
|
+
"member_type": "memberType",
|
|
606
|
+
"page_views": "pageViews",
|
|
607
|
+
"past_usernames": "pastUsernames",
|
|
608
|
+
"paste_views": "pasteViews",
|
|
609
|
+
"platform_id": "platformId",
|
|
610
|
+
"playlist_count": "playlistCount",
|
|
611
|
+
"posts_count": "postsCount",
|
|
612
|
+
"primary_team": "primaryTeam",
|
|
613
|
+
"profile_views": "profileViews",
|
|
614
|
+
"provider_id": "providerId",
|
|
615
|
+
"public_gists": "publicGists",
|
|
616
|
+
"public_repos": "publicRepos",
|
|
617
|
+
"rate_plan": "ratePlan",
|
|
618
|
+
"real_name": "realName",
|
|
619
|
+
"recent_activity": "recentActivity",
|
|
620
|
+
"recovery_email": "recoveryEmail",
|
|
621
|
+
"registered_since": "registeredSince",
|
|
622
|
+
"reputation_label": "reputationLabel",
|
|
623
|
+
"scratch_team": "scratchTeam",
|
|
624
|
+
"skin_url": "skinUrl",
|
|
625
|
+
"social_links": "socialLinks",
|
|
626
|
+
"steam_id_64": "steamId64",
|
|
627
|
+
"subscriber_count": "subscriberCount",
|
|
628
|
+
"theme_title": "themeTitle",
|
|
629
|
+
"total_karma": "totalKarma",
|
|
630
|
+
"total_scrobbles": "totalScrobbles",
|
|
631
|
+
"total_xp": "totalXp",
|
|
632
|
+
"track_count": "trackCount",
|
|
633
|
+
"trn_rank": "trnRank",
|
|
634
|
+
"trn_rating": "trnRating",
|
|
635
|
+
"twitter_username": "twitterUsername",
|
|
636
|
+
"updated_at": "updatedAt",
|
|
637
|
+
"url_entities": "urlEntities",
|
|
638
|
+
"video_count": "videoCount",
|
|
639
|
+
"visible_collection_count": "visibleCollectionCount",
|
|
640
|
+
"visible_wishlist_count": "visibleWishlistCount",
|
|
641
|
+
});
|
|
642
|
+
}));
|
|
643
|
+
export function resultMetadataFromJSON(jsonString) {
|
|
644
|
+
return safeParse(jsonString, (x) => ResultMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultMetadata' from JSON`);
|
|
645
|
+
}
|
|
646
|
+
/** @internal */
|
|
647
|
+
export const ResultData$inboundSchema = z
|
|
648
|
+
.object({
|
|
649
|
+
avatar: types.optional(types.string()),
|
|
650
|
+
bio: types.optional(types.string()),
|
|
651
|
+
country: types.optional(types.string()),
|
|
652
|
+
displayName: types.optional(types.string()),
|
|
653
|
+
id: types.optional(smartUnion([types.number(), types.string()])),
|
|
654
|
+
isPrivate: types.optional(types.boolean()),
|
|
655
|
+
isVerified: types.optional(types.boolean()),
|
|
656
|
+
metadata: types.optional(z.lazy(() => ResultMetadata$inboundSchema)),
|
|
657
|
+
url: types.optional(types.string()),
|
|
658
|
+
username: types.optional(types.string()),
|
|
659
|
+
});
|
|
660
|
+
export function resultDataFromJSON(jsonString) {
|
|
661
|
+
return safeParse(jsonString, (x) => ResultData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultData' from JSON`);
|
|
662
|
+
}
|
|
663
|
+
/** @internal */
|
|
664
|
+
export const ResultOsintResult$inboundSchema = z.pipe(z.object({
|
|
665
|
+
duration_ms: types.number(),
|
|
666
|
+
exists: types.boolean(),
|
|
667
|
+
service: types.string(),
|
|
668
|
+
type: ResultType$inboundSchema,
|
|
669
|
+
data: types.optional(z.lazy(() => ResultData$inboundSchema)),
|
|
670
|
+
error: types.optional(types.string()),
|
|
671
|
+
}), z.transform((v) => {
|
|
672
|
+
return remap$(v, {
|
|
673
|
+
"duration_ms": "durationMs",
|
|
674
|
+
});
|
|
675
|
+
}));
|
|
676
|
+
export function resultOsintResultFromJSON(jsonString) {
|
|
677
|
+
return safeParse(jsonString, (x) => ResultOsintResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResultOsintResult' from JSON`);
|
|
678
|
+
}
|
|
679
|
+
/** @internal */
|
|
680
|
+
export const UsernameSearchComplete$inboundSchema = z.object({
|
|
681
|
+
results: z.array(z.lazy(() => ResultOsintResult$inboundSchema)),
|
|
682
|
+
activityId: z.optional(z.nullable(types.string())),
|
|
683
|
+
});
|
|
684
|
+
export function usernameSearchCompleteFromJSON(jsonString) {
|
|
685
|
+
return safeParse(jsonString, (x) => UsernameSearchComplete$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UsernameSearchComplete' from JSON`);
|
|
686
|
+
}
|
|
687
|
+
/** @internal */
|
|
688
|
+
export const AllEvent$inboundSchema = z
|
|
689
|
+
.object({
|
|
690
|
+
data: z.pipe(z.pipe(z.unknown(), z.transform((v, ctx) => {
|
|
691
|
+
if (typeof v !== "string")
|
|
692
|
+
return v;
|
|
693
|
+
try {
|
|
694
|
+
return JSON.parse(v);
|
|
695
|
+
}
|
|
696
|
+
catch (err) {
|
|
697
|
+
ctx.issues.push({
|
|
698
|
+
input: v,
|
|
699
|
+
code: "custom",
|
|
700
|
+
message: `malformed json: ${err}`,
|
|
701
|
+
});
|
|
702
|
+
return z.NEVER;
|
|
703
|
+
}
|
|
704
|
+
})), z.lazy(() => UsernameSearchComplete$inboundSchema)),
|
|
705
|
+
event: types.literal("all"),
|
|
706
|
+
});
|
|
707
|
+
export function allEventFromJSON(jsonString) {
|
|
708
|
+
return safeParse(jsonString, (x) => AllEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AllEvent' from JSON`);
|
|
709
|
+
}
|
|
710
|
+
/** @internal */
|
|
22
711
|
export const SearchUsernameType$inboundSchema = openEnums.inboundSchema(SearchUsernameType);
|
|
23
712
|
/** @internal */
|
|
24
713
|
export const Id$inboundSchema = smartUnion([
|
|
@@ -279,7 +968,7 @@ export function socialsUnionFromJSON(jsonString) {
|
|
|
279
968
|
return safeParse(jsonString, (x) => SocialsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SocialsUnion' from JSON`);
|
|
280
969
|
}
|
|
281
970
|
/** @internal */
|
|
282
|
-
export const
|
|
971
|
+
export const SearchUsernameStatus$inboundSchema = z.pipe(z.object({
|
|
283
972
|
is_coach: types.optional(types.boolean()),
|
|
284
973
|
is_moderator: types.optional(types.boolean()),
|
|
285
974
|
is_staff: types.optional(types.boolean()),
|
|
@@ -294,13 +983,16 @@ export const Status$inboundSchema = z.pipe(z.object({
|
|
|
294
983
|
"is_top_blogger": "isTopBlogger",
|
|
295
984
|
});
|
|
296
985
|
}));
|
|
297
|
-
export function
|
|
298
|
-
return safeParse(jsonString, (x) =>
|
|
986
|
+
export function searchUsernameStatusFromJSON(jsonString) {
|
|
987
|
+
return safeParse(jsonString, (x) => SearchUsernameStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchUsernameStatus' from JSON`);
|
|
299
988
|
}
|
|
300
989
|
/** @internal */
|
|
301
|
-
export const
|
|
302
|
-
|
|
303
|
-
|
|
990
|
+
export const Status$inboundSchema = smartUnion([
|
|
991
|
+
types.string(),
|
|
992
|
+
z.lazy(() => SearchUsernameStatus$inboundSchema),
|
|
993
|
+
]);
|
|
994
|
+
export function statusFromJSON(jsonString) {
|
|
995
|
+
return safeParse(jsonString, (x) => Status$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Status' from JSON`);
|
|
304
996
|
}
|
|
305
997
|
/** @internal */
|
|
306
998
|
export const UrlEntity$inboundSchema = z
|
|
@@ -489,7 +1181,10 @@ export const Metadata$inboundSchema = z.pipe(z.object({
|
|
|
489
1181
|
z.lazy(() => Socials$inboundSchema),
|
|
490
1182
|
z.array(types.string()),
|
|
491
1183
|
])),
|
|
492
|
-
status: types.optional(smartUnion([
|
|
1184
|
+
status: types.optional(smartUnion([
|
|
1185
|
+
types.string(),
|
|
1186
|
+
z.lazy(() => SearchUsernameStatus$inboundSchema),
|
|
1187
|
+
])),
|
|
493
1188
|
steam_id_64: types.optional(types.string()),
|
|
494
1189
|
streak: types.optional(types.number()),
|
|
495
1190
|
subscriber_count: types.optional(types.number()),
|
|
@@ -614,7 +1309,7 @@ export function metadataFromJSON(jsonString) {
|
|
|
614
1309
|
return safeParse(jsonString, (x) => Metadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Metadata' from JSON`);
|
|
615
1310
|
}
|
|
616
1311
|
/** @internal */
|
|
617
|
-
export const
|
|
1312
|
+
export const SearchUsernameData$inboundSchema = z.object({
|
|
618
1313
|
avatar: types.optional(types.string()),
|
|
619
1314
|
bio: types.optional(types.string()),
|
|
620
1315
|
country: types.optional(types.string()),
|
|
@@ -626,32 +1321,55 @@ export const SearchUsernameDataData$inboundSchema = z.object({
|
|
|
626
1321
|
url: types.optional(types.string()),
|
|
627
1322
|
username: types.optional(types.string()),
|
|
628
1323
|
});
|
|
629
|
-
export function
|
|
630
|
-
return safeParse(jsonString, (x) =>
|
|
1324
|
+
export function searchUsernameDataFromJSON(jsonString) {
|
|
1325
|
+
return safeParse(jsonString, (x) => SearchUsernameData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchUsernameData' from JSON`);
|
|
631
1326
|
}
|
|
632
1327
|
/** @internal */
|
|
633
|
-
export const
|
|
1328
|
+
export const OsintResult$inboundSchema = z
|
|
1329
|
+
.pipe(z.object({
|
|
634
1330
|
duration_ms: types.number(),
|
|
635
1331
|
exists: types.boolean(),
|
|
636
1332
|
service: types.string(),
|
|
637
1333
|
type: SearchUsernameType$inboundSchema,
|
|
638
|
-
data: types.optional(z.lazy(() =>
|
|
1334
|
+
data: types.optional(z.lazy(() => SearchUsernameData$inboundSchema)),
|
|
639
1335
|
error: types.optional(types.string()),
|
|
640
1336
|
}), z.transform((v) => {
|
|
641
1337
|
return remap$(v, {
|
|
642
1338
|
"duration_ms": "durationMs",
|
|
643
1339
|
});
|
|
644
1340
|
}));
|
|
645
|
-
export function
|
|
646
|
-
return safeParse(jsonString, (x) =>
|
|
1341
|
+
export function osintResultFromJSON(jsonString) {
|
|
1342
|
+
return safeParse(jsonString, (x) => OsintResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OsintResult' from JSON`);
|
|
647
1343
|
}
|
|
648
1344
|
/** @internal */
|
|
649
|
-
export const
|
|
650
|
-
data: z.
|
|
651
|
-
|
|
652
|
-
|
|
1345
|
+
export const IndividualEvent$inboundSchema = z.object({
|
|
1346
|
+
data: z.pipe(z.pipe(z.unknown(), z.transform((v, ctx) => {
|
|
1347
|
+
if (typeof v !== "string")
|
|
1348
|
+
return v;
|
|
1349
|
+
try {
|
|
1350
|
+
return JSON.parse(v);
|
|
1351
|
+
}
|
|
1352
|
+
catch (err) {
|
|
1353
|
+
ctx.issues.push({
|
|
1354
|
+
input: v,
|
|
1355
|
+
code: "custom",
|
|
1356
|
+
message: `malformed json: ${err}`,
|
|
1357
|
+
});
|
|
1358
|
+
return z.NEVER;
|
|
1359
|
+
}
|
|
1360
|
+
})), z.lazy(() => OsintResult$inboundSchema)),
|
|
1361
|
+
event: types.literal("individual"),
|
|
653
1362
|
});
|
|
654
|
-
export function
|
|
655
|
-
return safeParse(jsonString, (x) =>
|
|
1363
|
+
export function individualEventFromJSON(jsonString) {
|
|
1364
|
+
return safeParse(jsonString, (x) => IndividualEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'IndividualEvent' from JSON`);
|
|
1365
|
+
}
|
|
1366
|
+
/** @internal */
|
|
1367
|
+
export const UsernameSearchEvent$inboundSchema = smartUnion([
|
|
1368
|
+
z.lazy(() => IndividualEvent$inboundSchema),
|
|
1369
|
+
z.lazy(() => AllEvent$inboundSchema),
|
|
1370
|
+
z.lazy(() => SearchUsernameErrorEvent$inboundSchema),
|
|
1371
|
+
]);
|
|
1372
|
+
export function usernameSearchEventFromJSON(jsonString) {
|
|
1373
|
+
return safeParse(jsonString, (x) => UsernameSearchEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UsernameSearchEvent' from JSON`);
|
|
656
1374
|
}
|
|
657
1375
|
//# sourceMappingURL=search-username.js.map
|