@steamsets/client-ts 0.27.10 → 0.28.0
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 +0 -20
- package/docs/sdks/account/README.md +0 -90
- package/docs/sdks/badge/README.md +0 -72
- package/examples/accountBookmarkBadge.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/index.d.ts +0 -18
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -18
- package/models/components/index.js.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.d.ts +8 -8
- package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.js +14 -13
- package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
- package/models/components/v1apporder.d.ts +16 -16
- package/models/components/v1apporder.d.ts.map +1 -1
- package/models/components/v1apporder.js +26 -25
- package/models/components/v1apporder.js.map +1 -1
- package/models/operations/index.d.ts +0 -7
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -7
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +0 -4
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +0 -7
- package/sdk/account.js.map +1 -1
- package/sdk/badge.d.ts +0 -4
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +0 -7
- package/sdk/badge.js.map +1 -1
- package/sdk/sdk.d.ts +2 -8
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -11
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -18
- package/src/models/components/v1accountlistbadgesrequestbody.ts +14 -25
- package/src/models/components/v1apporder.ts +26 -30
- package/src/models/operations/index.ts +0 -7
- package/src/sdk/account.ts +0 -15
- package/src/sdk/badge.ts +0 -15
- package/src/sdk/sdk.ts +5 -17
- package/docs/sdks/admin/README.md +0 -315
- package/docs/sdks/liveness/README.md +0 -99
- package/funcs/accountCompareBadges.d.ts +0 -16
- package/funcs/accountCompareBadges.d.ts.map +0 -1
- package/funcs/accountCompareBadges.js +0 -133
- package/funcs/accountCompareBadges.js.map +0 -1
- package/funcs/adminGetAccount.d.ts +0 -16
- package/funcs/adminGetAccount.d.ts.map +0 -1
- package/funcs/adminGetAccount.js +0 -133
- package/funcs/adminGetAccount.js.map +0 -1
- package/funcs/adminRemoveVanity.d.ts +0 -16
- package/funcs/adminRemoveVanity.d.ts.map +0 -1
- package/funcs/adminRemoveVanity.js +0 -133
- package/funcs/adminRemoveVanity.js.map +0 -1
- package/funcs/adminUpdateResources.d.ts +0 -16
- package/funcs/adminUpdateResources.d.ts.map +0 -1
- package/funcs/adminUpdateResources.js +0 -131
- package/funcs/adminUpdateResources.js.map +0 -1
- package/funcs/adminUpdateRoles.d.ts +0 -16
- package/funcs/adminUpdateRoles.d.ts.map +0 -1
- package/funcs/adminUpdateRoles.js +0 -131
- package/funcs/adminUpdateRoles.js.map +0 -1
- package/funcs/badgeBadgeListAccounts.d.ts +0 -16
- package/funcs/badgeBadgeListAccounts.d.ts.map +0 -1
- package/funcs/badgeBadgeListAccounts.js +0 -133
- package/funcs/badgeBadgeListAccounts.js.map +0 -1
- package/funcs/livenessCheck.d.ts +0 -37
- package/funcs/livenessCheck.d.ts.map +0 -1
- package/funcs/livenessCheck.js +0 -144
- package/funcs/livenessCheck.js.map +0 -1
- package/models/components/historyvalue.d.ts +0 -37
- package/models/components/historyvalue.d.ts.map +0 -1
- package/models/components/historyvalue.js +0 -71
- package/models/components/historyvalue.js.map +0 -1
- package/models/components/v1accountcompare.d.ts +0 -72
- package/models/components/v1accountcompare.d.ts.map +0 -1
- package/models/components/v1accountcompare.js +0 -94
- package/models/components/v1accountcompare.js.map +0 -1
- package/models/components/v1accountcomparebadgeorder.d.ts +0 -88
- package/models/components/v1accountcomparebadgeorder.d.ts.map +0 -1
- package/models/components/v1accountcomparebadgeorder.js +0 -112
- package/models/components/v1accountcomparebadgeorder.js.map +0 -1
- package/models/components/v1accountcomparebadgesrequestbody.d.ts +0 -99
- package/models/components/v1accountcomparebadgesrequestbody.d.ts.map +0 -1
- package/models/components/v1accountcomparebadgesrequestbody.js +0 -133
- package/models/components/v1accountcomparebadgesrequestbody.js.map +0 -1
- package/models/components/v1accountcomparebadgesresponsebody.d.ts +0 -45
- package/models/components/v1accountcomparebadgesresponsebody.d.ts.map +0 -1
- package/models/components/v1accountcomparebadgesresponsebody.js +0 -85
- package/models/components/v1accountcomparebadgesresponsebody.js.map +0 -1
- package/models/components/v1accountcomparedappbadge.d.ts +0 -73
- package/models/components/v1accountcomparedappbadge.d.ts.map +0 -1
- package/models/components/v1accountcomparedappbadge.js +0 -93
- package/models/components/v1accountcomparedappbadge.js.map +0 -1
- package/models/components/v1accountlocationupdate.d.ts +0 -43
- package/models/components/v1accountlocationupdate.d.ts.map +0 -1
- package/models/components/v1accountlocationupdate.js +0 -80
- package/models/components/v1accountlocationupdate.js.map +0 -1
- package/models/components/v1accountnameupdate.d.ts +0 -35
- package/models/components/v1accountnameupdate.d.ts.map +0 -1
- package/models/components/v1accountnameupdate.js +0 -72
- package/models/components/v1accountnameupdate.js.map +0 -1
- package/models/components/v1accountvanityupdate.d.ts +0 -35
- package/models/components/v1accountvanityupdate.d.ts.map +0 -1
- package/models/components/v1accountvanityupdate.js +0 -72
- package/models/components/v1accountvanityupdate.js.map +0 -1
- package/models/components/v1admingetaccountresponsebody.d.ts +0 -160
- package/models/components/v1admingetaccountresponsebody.d.ts.map +0 -1
- package/models/components/v1admingetaccountresponsebody.js +0 -143
- package/models/components/v1admingetaccountresponsebody.js.map +0 -1
- package/models/components/v1adminremovevanityresponsebody.d.ts +0 -32
- package/models/components/v1adminremovevanityresponsebody.d.ts.map +0 -1
- package/models/components/v1adminremovevanityresponsebody.js +0 -78
- package/models/components/v1adminremovevanityresponsebody.js.map +0 -1
- package/models/components/v1adminupdateresourcesrequestbody.d.ts +0 -39
- package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +0 -1
- package/models/components/v1adminupdateresourcesrequestbody.js +0 -76
- package/models/components/v1adminupdateresourcesrequestbody.js.map +0 -1
- package/models/components/v1adminupdaterolesrequestbody.d.ts +0 -112
- package/models/components/v1adminupdaterolesrequestbody.d.ts.map +0 -1
- package/models/components/v1adminupdaterolesrequestbody.js +0 -111
- package/models/components/v1adminupdaterolesrequestbody.js.map +0 -1
- package/models/components/v1badgeaccount.d.ts +0 -229
- package/models/components/v1badgeaccount.d.ts.map +0 -1
- package/models/components/v1badgeaccount.js +0 -164
- package/models/components/v1badgeaccount.js.map +0 -1
- package/models/components/v1badgelistaccountsrequestbody.d.ts +0 -32
- package/models/components/v1badgelistaccountsrequestbody.d.ts.map +0 -1
- package/models/components/v1badgelistaccountsrequestbody.js +0 -72
- package/models/components/v1badgelistaccountsrequestbody.js.map +0 -1
- package/models/components/v1badgelistaccountsresponsebody.d.ts +0 -40
- package/models/components/v1badgelistaccountsresponsebody.d.ts.map +0 -1
- package/models/components/v1badgelistaccountsresponsebody.js +0 -86
- package/models/components/v1badgelistaccountsresponsebody.js.map +0 -1
- package/models/components/v1badgelookup.d.ts +0 -33
- package/models/components/v1badgelookup.d.ts.map +0 -1
- package/models/components/v1badgelookup.js +0 -73
- package/models/components/v1badgelookup.js.map +0 -1
- package/models/components/v1livenessresponsebody.d.ts +0 -37
- package/models/components/v1livenessresponsebody.d.ts.map +0 -1
- package/models/components/v1livenessresponsebody.js +0 -80
- package/models/components/v1livenessresponsebody.js.map +0 -1
- package/models/operations/accountcomparebadges.d.ts +0 -35
- package/models/operations/accountcomparebadges.d.ts.map +0 -1
- package/models/operations/accountcomparebadges.js +0 -85
- package/models/operations/accountcomparebadges.js.map +0 -1
- package/models/operations/admingetaccount.d.ts +0 -35
- package/models/operations/admingetaccount.d.ts.map +0 -1
- package/models/operations/admingetaccount.js +0 -85
- package/models/operations/admingetaccount.js.map +0 -1
- package/models/operations/adminremovevanity.d.ts +0 -35
- package/models/operations/adminremovevanity.d.ts.map +0 -1
- package/models/operations/adminremovevanity.js +0 -85
- package/models/operations/adminremovevanity.js.map +0 -1
- package/models/operations/adminupdateresources.d.ts +0 -30
- package/models/operations/adminupdateresources.d.ts.map +0 -1
- package/models/operations/adminupdateresources.js +0 -79
- package/models/operations/adminupdateresources.js.map +0 -1
- package/models/operations/adminupdateroles.d.ts +0 -30
- package/models/operations/adminupdateroles.d.ts.map +0 -1
- package/models/operations/adminupdateroles.js +0 -79
- package/models/operations/adminupdateroles.js.map +0 -1
- package/models/operations/badgelistaccounts.d.ts +0 -35
- package/models/operations/badgelistaccounts.d.ts.map +0 -1
- package/models/operations/badgelistaccounts.js +0 -85
- package/models/operations/badgelistaccounts.js.map +0 -1
- package/models/operations/liveness.d.ts +0 -35
- package/models/operations/liveness.d.ts.map +0 -1
- package/models/operations/liveness.js +0 -85
- package/models/operations/liveness.js.map +0 -1
- package/sdk/admin.d.ts +0 -22
- package/sdk/admin.d.ts.map +0 -1
- package/sdk/admin.js +0 -40
- package/sdk/admin.js.map +0 -1
- package/sdk/liveness.d.ts +0 -31
- package/sdk/liveness.d.ts.map +0 -1
- package/sdk/liveness.js +0 -41
- package/sdk/liveness.js.map +0 -1
- package/src/funcs/accountCompareBadges.ts +0 -186
- package/src/funcs/adminGetAccount.ts +0 -185
- package/src/funcs/adminRemoveVanity.ts +0 -185
- package/src/funcs/adminUpdateResources.ts +0 -184
- package/src/funcs/adminUpdateRoles.ts +0 -184
- package/src/funcs/badgeBadgeListAccounts.ts +0 -186
- package/src/funcs/livenessCheck.ts +0 -188
- package/src/models/components/historyvalue.ts +0 -72
- package/src/models/components/v1accountcompare.ts +0 -104
- package/src/models/components/v1accountcomparebadgeorder.ts +0 -121
- package/src/models/components/v1accountcomparebadgesrequestbody.ts +0 -169
- package/src/models/components/v1accountcomparebadgesresponsebody.ts +0 -106
- package/src/models/components/v1accountcomparedappbadge.ts +0 -126
- package/src/models/components/v1accountlocationupdate.ts +0 -95
- package/src/models/components/v1accountnameupdate.ts +0 -79
- package/src/models/components/v1accountvanityupdate.ts +0 -79
- package/src/models/components/v1admingetaccountresponsebody.ts +0 -287
- package/src/models/components/v1adminremovevanityresponsebody.ts +0 -80
- package/src/models/components/v1adminupdateresourcesrequestbody.ts +0 -98
- package/src/models/components/v1adminupdaterolesrequestbody.ts +0 -132
- package/src/models/components/v1badgeaccount.ts +0 -358
- package/src/models/components/v1badgelistaccountsrequestbody.ts +0 -78
- package/src/models/components/v1badgelistaccountsresponsebody.ts +0 -104
- package/src/models/components/v1badgelookup.ts +0 -70
- package/src/models/components/v1livenessresponsebody.ts +0 -85
- package/src/models/operations/accountcomparebadges.ts +0 -93
- package/src/models/operations/admingetaccount.ts +0 -91
- package/src/models/operations/adminremovevanity.ts +0 -91
- package/src/models/operations/adminupdateresources.ts +0 -78
- package/src/models/operations/adminupdateroles.ts +0 -76
- package/src/models/operations/badgelistaccounts.ts +0 -91
- package/src/models/operations/liveness.ts +0 -89
- package/src/sdk/admin.ts +0 -70
- package/src/sdk/liveness.ts +0 -44
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
import {
|
|
12
|
-
Connection,
|
|
13
|
-
Connection$inboundSchema,
|
|
14
|
-
Connection$Outbound,
|
|
15
|
-
Connection$outboundSchema,
|
|
16
|
-
} from "./connection.js";
|
|
17
|
-
import {
|
|
18
|
-
DeveloperApp,
|
|
19
|
-
DeveloperApp$inboundSchema,
|
|
20
|
-
DeveloperApp$Outbound,
|
|
21
|
-
DeveloperApp$outboundSchema,
|
|
22
|
-
} from "./developerapp.js";
|
|
23
|
-
import {
|
|
24
|
-
Resource,
|
|
25
|
-
Resource$inboundSchema,
|
|
26
|
-
Resource$Outbound,
|
|
27
|
-
Resource$outboundSchema,
|
|
28
|
-
} from "./resource.js";
|
|
29
|
-
import {
|
|
30
|
-
Role,
|
|
31
|
-
Role$inboundSchema,
|
|
32
|
-
Role$Outbound,
|
|
33
|
-
Role$outboundSchema,
|
|
34
|
-
} from "./role.js";
|
|
35
|
-
import {
|
|
36
|
-
Session,
|
|
37
|
-
Session$inboundSchema,
|
|
38
|
-
Session$Outbound,
|
|
39
|
-
Session$outboundSchema,
|
|
40
|
-
} from "./session.js";
|
|
41
|
-
import {
|
|
42
|
-
V1AccountLocationUpdate,
|
|
43
|
-
V1AccountLocationUpdate$inboundSchema,
|
|
44
|
-
V1AccountLocationUpdate$Outbound,
|
|
45
|
-
V1AccountLocationUpdate$outboundSchema,
|
|
46
|
-
} from "./v1accountlocationupdate.js";
|
|
47
|
-
import {
|
|
48
|
-
V1AccountNameUpdate,
|
|
49
|
-
V1AccountNameUpdate$inboundSchema,
|
|
50
|
-
V1AccountNameUpdate$Outbound,
|
|
51
|
-
V1AccountNameUpdate$outboundSchema,
|
|
52
|
-
} from "./v1accountnameupdate.js";
|
|
53
|
-
import {
|
|
54
|
-
V1AccountVanityUpdate,
|
|
55
|
-
V1AccountVanityUpdate$inboundSchema,
|
|
56
|
-
V1AccountVanityUpdate$Outbound,
|
|
57
|
-
V1AccountVanityUpdate$outboundSchema,
|
|
58
|
-
} from "./v1accountvanityupdate.js";
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* The privacy of the account
|
|
62
|
-
*/
|
|
63
|
-
export const V1AdminGetAccountResponseBodyPrivacy = {
|
|
64
|
-
Private: "private",
|
|
65
|
-
Public: "public",
|
|
66
|
-
FriendsOnly: "friends_only",
|
|
67
|
-
} as const;
|
|
68
|
-
/**
|
|
69
|
-
* The privacy of the account
|
|
70
|
-
*/
|
|
71
|
-
export type V1AdminGetAccountResponseBodyPrivacy = ClosedEnum<
|
|
72
|
-
typeof V1AdminGetAccountResponseBodyPrivacy
|
|
73
|
-
>;
|
|
74
|
-
|
|
75
|
-
export type V1AdminGetAccountResponseBody = {
|
|
76
|
-
/**
|
|
77
|
-
* A URL to the JSON Schema for this object.
|
|
78
|
-
*/
|
|
79
|
-
dollarSchema?: string | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* The avatar of the account
|
|
82
|
-
*/
|
|
83
|
-
avatar: string;
|
|
84
|
-
/**
|
|
85
|
-
* The city of the account
|
|
86
|
-
*/
|
|
87
|
-
city: string | null;
|
|
88
|
-
/**
|
|
89
|
-
* The connections the account has
|
|
90
|
-
*/
|
|
91
|
-
connections: Array<Connection> | null;
|
|
92
|
-
/**
|
|
93
|
-
* The country code of the account
|
|
94
|
-
*/
|
|
95
|
-
country: string | null;
|
|
96
|
-
/**
|
|
97
|
-
* The developer apps the account has
|
|
98
|
-
*/
|
|
99
|
-
developerApps: Array<DeveloperApp> | null;
|
|
100
|
-
/**
|
|
101
|
-
* The email of the account
|
|
102
|
-
*/
|
|
103
|
-
email: string | null;
|
|
104
|
-
/**
|
|
105
|
-
* The location updates the account has
|
|
106
|
-
*/
|
|
107
|
-
locationUpdates: Array<V1AccountLocationUpdate> | null;
|
|
108
|
-
/**
|
|
109
|
-
* The name of the account
|
|
110
|
-
*/
|
|
111
|
-
name: string;
|
|
112
|
-
/**
|
|
113
|
-
* The name updates the account has
|
|
114
|
-
*/
|
|
115
|
-
nameUpdates: Array<V1AccountNameUpdate> | null;
|
|
116
|
-
/**
|
|
117
|
-
* The privacy of the account
|
|
118
|
-
*/
|
|
119
|
-
privacy: V1AdminGetAccountResponseBodyPrivacy;
|
|
120
|
-
/**
|
|
121
|
-
* The region of the account
|
|
122
|
-
*/
|
|
123
|
-
region: string | null;
|
|
124
|
-
/**
|
|
125
|
-
* The resources the account has (permissions)
|
|
126
|
-
*/
|
|
127
|
-
resources: Array<Resource> | null;
|
|
128
|
-
/**
|
|
129
|
-
* The roles the account has
|
|
130
|
-
*/
|
|
131
|
-
roles: Array<Role> | null;
|
|
132
|
-
/**
|
|
133
|
-
* The sessions the account has
|
|
134
|
-
*/
|
|
135
|
-
sessions: Array<Session> | null;
|
|
136
|
-
/**
|
|
137
|
-
* The state of the account
|
|
138
|
-
*/
|
|
139
|
-
state: string | null;
|
|
140
|
-
/**
|
|
141
|
-
* The vanity of the account
|
|
142
|
-
*/
|
|
143
|
-
vanity: string | null;
|
|
144
|
-
/**
|
|
145
|
-
* The vanity updates the account has
|
|
146
|
-
*/
|
|
147
|
-
vanityUpdates: Array<V1AccountVanityUpdate> | null;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
/** @internal */
|
|
151
|
-
export const V1AdminGetAccountResponseBodyPrivacy$inboundSchema:
|
|
152
|
-
z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> = z.nativeEnum(
|
|
153
|
-
V1AdminGetAccountResponseBodyPrivacy,
|
|
154
|
-
);
|
|
155
|
-
|
|
156
|
-
/** @internal */
|
|
157
|
-
export const V1AdminGetAccountResponseBodyPrivacy$outboundSchema:
|
|
158
|
-
z.ZodNativeEnum<typeof V1AdminGetAccountResponseBodyPrivacy> =
|
|
159
|
-
V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @internal
|
|
163
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
164
|
-
*/
|
|
165
|
-
export namespace V1AdminGetAccountResponseBodyPrivacy$ {
|
|
166
|
-
/** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$inboundSchema` instead. */
|
|
167
|
-
export const inboundSchema =
|
|
168
|
-
V1AdminGetAccountResponseBodyPrivacy$inboundSchema;
|
|
169
|
-
/** @deprecated use `V1AdminGetAccountResponseBodyPrivacy$outboundSchema` instead. */
|
|
170
|
-
export const outboundSchema =
|
|
171
|
-
V1AdminGetAccountResponseBodyPrivacy$outboundSchema;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/** @internal */
|
|
175
|
-
export const V1AdminGetAccountResponseBody$inboundSchema: z.ZodType<
|
|
176
|
-
V1AdminGetAccountResponseBody,
|
|
177
|
-
z.ZodTypeDef,
|
|
178
|
-
unknown
|
|
179
|
-
> = z.object({
|
|
180
|
-
$schema: z.string().optional(),
|
|
181
|
-
avatar: z.string(),
|
|
182
|
-
city: z.nullable(z.string()),
|
|
183
|
-
connections: z.nullable(z.array(Connection$inboundSchema)),
|
|
184
|
-
country: z.nullable(z.string()),
|
|
185
|
-
developerApps: z.nullable(z.array(DeveloperApp$inboundSchema)),
|
|
186
|
-
email: z.nullable(z.string()),
|
|
187
|
-
locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$inboundSchema)),
|
|
188
|
-
name: z.string(),
|
|
189
|
-
nameUpdates: z.nullable(z.array(V1AccountNameUpdate$inboundSchema)),
|
|
190
|
-
privacy: V1AdminGetAccountResponseBodyPrivacy$inboundSchema,
|
|
191
|
-
region: z.nullable(z.string()),
|
|
192
|
-
resources: z.nullable(z.array(Resource$inboundSchema)),
|
|
193
|
-
roles: z.nullable(z.array(Role$inboundSchema)),
|
|
194
|
-
sessions: z.nullable(z.array(Session$inboundSchema)),
|
|
195
|
-
state: z.nullable(z.string()),
|
|
196
|
-
vanity: z.nullable(z.string()),
|
|
197
|
-
vanityUpdates: z.nullable(z.array(V1AccountVanityUpdate$inboundSchema)),
|
|
198
|
-
}).transform((v) => {
|
|
199
|
-
return remap$(v, {
|
|
200
|
-
"$schema": "dollarSchema",
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
/** @internal */
|
|
205
|
-
export type V1AdminGetAccountResponseBody$Outbound = {
|
|
206
|
-
$schema?: string | undefined;
|
|
207
|
-
avatar: string;
|
|
208
|
-
city: string | null;
|
|
209
|
-
connections: Array<Connection$Outbound> | null;
|
|
210
|
-
country: string | null;
|
|
211
|
-
developerApps: Array<DeveloperApp$Outbound> | null;
|
|
212
|
-
email: string | null;
|
|
213
|
-
locationUpdates: Array<V1AccountLocationUpdate$Outbound> | null;
|
|
214
|
-
name: string;
|
|
215
|
-
nameUpdates: Array<V1AccountNameUpdate$Outbound> | null;
|
|
216
|
-
privacy: string;
|
|
217
|
-
region: string | null;
|
|
218
|
-
resources: Array<Resource$Outbound> | null;
|
|
219
|
-
roles: Array<Role$Outbound> | null;
|
|
220
|
-
sessions: Array<Session$Outbound> | null;
|
|
221
|
-
state: string | null;
|
|
222
|
-
vanity: string | null;
|
|
223
|
-
vanityUpdates: Array<V1AccountVanityUpdate$Outbound> | null;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
/** @internal */
|
|
227
|
-
export const V1AdminGetAccountResponseBody$outboundSchema: z.ZodType<
|
|
228
|
-
V1AdminGetAccountResponseBody$Outbound,
|
|
229
|
-
z.ZodTypeDef,
|
|
230
|
-
V1AdminGetAccountResponseBody
|
|
231
|
-
> = z.object({
|
|
232
|
-
dollarSchema: z.string().optional(),
|
|
233
|
-
avatar: z.string(),
|
|
234
|
-
city: z.nullable(z.string()),
|
|
235
|
-
connections: z.nullable(z.array(Connection$outboundSchema)),
|
|
236
|
-
country: z.nullable(z.string()),
|
|
237
|
-
developerApps: z.nullable(z.array(DeveloperApp$outboundSchema)),
|
|
238
|
-
email: z.nullable(z.string()),
|
|
239
|
-
locationUpdates: z.nullable(z.array(V1AccountLocationUpdate$outboundSchema)),
|
|
240
|
-
name: z.string(),
|
|
241
|
-
nameUpdates: z.nullable(z.array(V1AccountNameUpdate$outboundSchema)),
|
|
242
|
-
privacy: V1AdminGetAccountResponseBodyPrivacy$outboundSchema,
|
|
243
|
-
region: z.nullable(z.string()),
|
|
244
|
-
resources: z.nullable(z.array(Resource$outboundSchema)),
|
|
245
|
-
roles: z.nullable(z.array(Role$outboundSchema)),
|
|
246
|
-
sessions: z.nullable(z.array(Session$outboundSchema)),
|
|
247
|
-
state: z.nullable(z.string()),
|
|
248
|
-
vanity: z.nullable(z.string()),
|
|
249
|
-
vanityUpdates: z.nullable(z.array(V1AccountVanityUpdate$outboundSchema)),
|
|
250
|
-
}).transform((v) => {
|
|
251
|
-
return remap$(v, {
|
|
252
|
-
dollarSchema: "$schema",
|
|
253
|
-
});
|
|
254
|
-
});
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* @internal
|
|
258
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
259
|
-
*/
|
|
260
|
-
export namespace V1AdminGetAccountResponseBody$ {
|
|
261
|
-
/** @deprecated use `V1AdminGetAccountResponseBody$inboundSchema` instead. */
|
|
262
|
-
export const inboundSchema = V1AdminGetAccountResponseBody$inboundSchema;
|
|
263
|
-
/** @deprecated use `V1AdminGetAccountResponseBody$outboundSchema` instead. */
|
|
264
|
-
export const outboundSchema = V1AdminGetAccountResponseBody$outboundSchema;
|
|
265
|
-
/** @deprecated use `V1AdminGetAccountResponseBody$Outbound` instead. */
|
|
266
|
-
export type Outbound = V1AdminGetAccountResponseBody$Outbound;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export function v1AdminGetAccountResponseBodyToJSON(
|
|
270
|
-
v1AdminGetAccountResponseBody: V1AdminGetAccountResponseBody,
|
|
271
|
-
): string {
|
|
272
|
-
return JSON.stringify(
|
|
273
|
-
V1AdminGetAccountResponseBody$outboundSchema.parse(
|
|
274
|
-
v1AdminGetAccountResponseBody,
|
|
275
|
-
),
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export function v1AdminGetAccountResponseBodyFromJSON(
|
|
280
|
-
jsonString: string,
|
|
281
|
-
): SafeParseResult<V1AdminGetAccountResponseBody, SDKValidationError> {
|
|
282
|
-
return safeParse(
|
|
283
|
-
jsonString,
|
|
284
|
-
(x) => V1AdminGetAccountResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
-
`Failed to parse 'V1AdminGetAccountResponseBody' from JSON`,
|
|
286
|
-
);
|
|
287
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type V1AdminRemoveVanityResponseBody = {
|
|
12
|
-
/**
|
|
13
|
-
* A URL to the JSON Schema for this object.
|
|
14
|
-
*/
|
|
15
|
-
dollarSchema?: string | undefined;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const V1AdminRemoveVanityResponseBody$inboundSchema: z.ZodType<
|
|
20
|
-
V1AdminRemoveVanityResponseBody,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({
|
|
24
|
-
$schema: z.string().optional(),
|
|
25
|
-
}).transform((v) => {
|
|
26
|
-
return remap$(v, {
|
|
27
|
-
"$schema": "dollarSchema",
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type V1AdminRemoveVanityResponseBody$Outbound = {
|
|
33
|
-
$schema?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const V1AdminRemoveVanityResponseBody$outboundSchema: z.ZodType<
|
|
38
|
-
V1AdminRemoveVanityResponseBody$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
V1AdminRemoveVanityResponseBody
|
|
41
|
-
> = z.object({
|
|
42
|
-
dollarSchema: z.string().optional(),
|
|
43
|
-
}).transform((v) => {
|
|
44
|
-
return remap$(v, {
|
|
45
|
-
dollarSchema: "$schema",
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace V1AdminRemoveVanityResponseBody$ {
|
|
54
|
-
/** @deprecated use `V1AdminRemoveVanityResponseBody$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = V1AdminRemoveVanityResponseBody$inboundSchema;
|
|
56
|
-
/** @deprecated use `V1AdminRemoveVanityResponseBody$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema = V1AdminRemoveVanityResponseBody$outboundSchema;
|
|
58
|
-
/** @deprecated use `V1AdminRemoveVanityResponseBody$Outbound` instead. */
|
|
59
|
-
export type Outbound = V1AdminRemoveVanityResponseBody$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function v1AdminRemoveVanityResponseBodyToJSON(
|
|
63
|
-
v1AdminRemoveVanityResponseBody: V1AdminRemoveVanityResponseBody,
|
|
64
|
-
): string {
|
|
65
|
-
return JSON.stringify(
|
|
66
|
-
V1AdminRemoveVanityResponseBody$outboundSchema.parse(
|
|
67
|
-
v1AdminRemoveVanityResponseBody,
|
|
68
|
-
),
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function v1AdminRemoveVanityResponseBodyFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<V1AdminRemoveVanityResponseBody, SDKValidationError> {
|
|
75
|
-
return safeParse(
|
|
76
|
-
jsonString,
|
|
77
|
-
(x) => V1AdminRemoveVanityResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'V1AdminRemoveVanityResponseBody' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
IDSearch,
|
|
11
|
-
IDSearch$inboundSchema,
|
|
12
|
-
IDSearch$Outbound,
|
|
13
|
-
IDSearch$outboundSchema,
|
|
14
|
-
} from "./idsearch.js";
|
|
15
|
-
import {
|
|
16
|
-
Resource,
|
|
17
|
-
Resource$inboundSchema,
|
|
18
|
-
Resource$Outbound,
|
|
19
|
-
Resource$outboundSchema,
|
|
20
|
-
} from "./resource.js";
|
|
21
|
-
import {
|
|
22
|
-
VanitySearch,
|
|
23
|
-
VanitySearch$inboundSchema,
|
|
24
|
-
VanitySearch$Outbound,
|
|
25
|
-
VanitySearch$outboundSchema,
|
|
26
|
-
} from "./vanitysearch.js";
|
|
27
|
-
|
|
28
|
-
export type V1AdminUpdateResourcesRequestBody = {
|
|
29
|
-
id?: IDSearch | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* The resources to add for this account
|
|
32
|
-
*/
|
|
33
|
-
resources: Array<Resource> | null;
|
|
34
|
-
vanity?: VanitySearch | undefined;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const V1AdminUpdateResourcesRequestBody$inboundSchema: z.ZodType<
|
|
39
|
-
V1AdminUpdateResourcesRequestBody,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
unknown
|
|
42
|
-
> = z.object({
|
|
43
|
-
id: IDSearch$inboundSchema.optional(),
|
|
44
|
-
resources: z.nullable(z.array(Resource$inboundSchema)),
|
|
45
|
-
vanity: VanitySearch$inboundSchema.optional(),
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type V1AdminUpdateResourcesRequestBody$Outbound = {
|
|
50
|
-
id?: IDSearch$Outbound | undefined;
|
|
51
|
-
resources: Array<Resource$Outbound> | null;
|
|
52
|
-
vanity?: VanitySearch$Outbound | undefined;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const V1AdminUpdateResourcesRequestBody$outboundSchema: z.ZodType<
|
|
57
|
-
V1AdminUpdateResourcesRequestBody$Outbound,
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
V1AdminUpdateResourcesRequestBody
|
|
60
|
-
> = z.object({
|
|
61
|
-
id: IDSearch$outboundSchema.optional(),
|
|
62
|
-
resources: z.nullable(z.array(Resource$outboundSchema)),
|
|
63
|
-
vanity: VanitySearch$outboundSchema.optional(),
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
-
*/
|
|
70
|
-
export namespace V1AdminUpdateResourcesRequestBody$ {
|
|
71
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBody$inboundSchema` instead. */
|
|
72
|
-
export const inboundSchema = V1AdminUpdateResourcesRequestBody$inboundSchema;
|
|
73
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBody$outboundSchema` instead. */
|
|
74
|
-
export const outboundSchema =
|
|
75
|
-
V1AdminUpdateResourcesRequestBody$outboundSchema;
|
|
76
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBody$Outbound` instead. */
|
|
77
|
-
export type Outbound = V1AdminUpdateResourcesRequestBody$Outbound;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function v1AdminUpdateResourcesRequestBodyToJSON(
|
|
81
|
-
v1AdminUpdateResourcesRequestBody: V1AdminUpdateResourcesRequestBody,
|
|
82
|
-
): string {
|
|
83
|
-
return JSON.stringify(
|
|
84
|
-
V1AdminUpdateResourcesRequestBody$outboundSchema.parse(
|
|
85
|
-
v1AdminUpdateResourcesRequestBody,
|
|
86
|
-
),
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function v1AdminUpdateResourcesRequestBodyFromJSON(
|
|
91
|
-
jsonString: string,
|
|
92
|
-
): SafeParseResult<V1AdminUpdateResourcesRequestBody, SDKValidationError> {
|
|
93
|
-
return safeParse(
|
|
94
|
-
jsonString,
|
|
95
|
-
(x) => V1AdminUpdateResourcesRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
-
`Failed to parse 'V1AdminUpdateResourcesRequestBody' from JSON`,
|
|
97
|
-
);
|
|
98
|
-
}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
IDSearch,
|
|
12
|
-
IDSearch$inboundSchema,
|
|
13
|
-
IDSearch$Outbound,
|
|
14
|
-
IDSearch$outboundSchema,
|
|
15
|
-
} from "./idsearch.js";
|
|
16
|
-
import {
|
|
17
|
-
VanitySearch,
|
|
18
|
-
VanitySearch$inboundSchema,
|
|
19
|
-
VanitySearch$Outbound,
|
|
20
|
-
VanitySearch$outboundSchema,
|
|
21
|
-
} from "./vanitysearch.js";
|
|
22
|
-
|
|
23
|
-
export const Roles = {
|
|
24
|
-
User: "user",
|
|
25
|
-
Donator: "donator",
|
|
26
|
-
Staff: "staff",
|
|
27
|
-
Developer: "developer",
|
|
28
|
-
Partner: "partner",
|
|
29
|
-
Owner: "owner",
|
|
30
|
-
Amethyst: "amethyst",
|
|
31
|
-
Amber: "amber",
|
|
32
|
-
Emerald: "emerald",
|
|
33
|
-
Sapphire: "sapphire",
|
|
34
|
-
Ruby: "ruby",
|
|
35
|
-
Diamond: "diamond",
|
|
36
|
-
Contributor: "contributor",
|
|
37
|
-
EarlySupporter: "early_supporter",
|
|
38
|
-
Beta: "beta",
|
|
39
|
-
Translator: "translator",
|
|
40
|
-
Top100: "top_100",
|
|
41
|
-
BadgeScout: "badge_scout",
|
|
42
|
-
NitroBooster: "nitro_booster",
|
|
43
|
-
} as const;
|
|
44
|
-
export type Roles = ClosedEnum<typeof Roles>;
|
|
45
|
-
|
|
46
|
-
export type V1AdminUpdateRolesRequestBody = {
|
|
47
|
-
id?: IDSearch | undefined;
|
|
48
|
-
roles: Array<Roles> | null;
|
|
49
|
-
vanity?: VanitySearch | undefined;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const Roles$inboundSchema: z.ZodNativeEnum<typeof Roles> = z.nativeEnum(
|
|
54
|
-
Roles,
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const Roles$outboundSchema: z.ZodNativeEnum<typeof Roles> =
|
|
59
|
-
Roles$inboundSchema;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export namespace Roles$ {
|
|
66
|
-
/** @deprecated use `Roles$inboundSchema` instead. */
|
|
67
|
-
export const inboundSchema = Roles$inboundSchema;
|
|
68
|
-
/** @deprecated use `Roles$outboundSchema` instead. */
|
|
69
|
-
export const outboundSchema = Roles$outboundSchema;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const V1AdminUpdateRolesRequestBody$inboundSchema: z.ZodType<
|
|
74
|
-
V1AdminUpdateRolesRequestBody,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
unknown
|
|
77
|
-
> = z.object({
|
|
78
|
-
id: IDSearch$inboundSchema.optional(),
|
|
79
|
-
roles: z.nullable(z.array(Roles$inboundSchema)),
|
|
80
|
-
vanity: VanitySearch$inboundSchema.optional(),
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type V1AdminUpdateRolesRequestBody$Outbound = {
|
|
85
|
-
id?: IDSearch$Outbound | undefined;
|
|
86
|
-
roles: Array<string> | null;
|
|
87
|
-
vanity?: VanitySearch$Outbound | undefined;
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export const V1AdminUpdateRolesRequestBody$outboundSchema: z.ZodType<
|
|
92
|
-
V1AdminUpdateRolesRequestBody$Outbound,
|
|
93
|
-
z.ZodTypeDef,
|
|
94
|
-
V1AdminUpdateRolesRequestBody
|
|
95
|
-
> = z.object({
|
|
96
|
-
id: IDSearch$outboundSchema.optional(),
|
|
97
|
-
roles: z.nullable(z.array(Roles$outboundSchema)),
|
|
98
|
-
vanity: VanitySearch$outboundSchema.optional(),
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
export namespace V1AdminUpdateRolesRequestBody$ {
|
|
106
|
-
/** @deprecated use `V1AdminUpdateRolesRequestBody$inboundSchema` instead. */
|
|
107
|
-
export const inboundSchema = V1AdminUpdateRolesRequestBody$inboundSchema;
|
|
108
|
-
/** @deprecated use `V1AdminUpdateRolesRequestBody$outboundSchema` instead. */
|
|
109
|
-
export const outboundSchema = V1AdminUpdateRolesRequestBody$outboundSchema;
|
|
110
|
-
/** @deprecated use `V1AdminUpdateRolesRequestBody$Outbound` instead. */
|
|
111
|
-
export type Outbound = V1AdminUpdateRolesRequestBody$Outbound;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export function v1AdminUpdateRolesRequestBodyToJSON(
|
|
115
|
-
v1AdminUpdateRolesRequestBody: V1AdminUpdateRolesRequestBody,
|
|
116
|
-
): string {
|
|
117
|
-
return JSON.stringify(
|
|
118
|
-
V1AdminUpdateRolesRequestBody$outboundSchema.parse(
|
|
119
|
-
v1AdminUpdateRolesRequestBody,
|
|
120
|
-
),
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export function v1AdminUpdateRolesRequestBodyFromJSON(
|
|
125
|
-
jsonString: string,
|
|
126
|
-
): SafeParseResult<V1AdminUpdateRolesRequestBody, SDKValidationError> {
|
|
127
|
-
return safeParse(
|
|
128
|
-
jsonString,
|
|
129
|
-
(x) => V1AdminUpdateRolesRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
-
`Failed to parse 'V1AdminUpdateRolesRequestBody' from JSON`,
|
|
131
|
-
);
|
|
132
|
-
}
|