@steamsets/client-ts 0.22.11 → 0.22.12
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/docs/sdks/admin/README.md +4 -18
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/v1adminupdateresourcesrequestbody.d.ts +2 -63
- package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +1 -1
- package/models/components/v1adminupdateresourcesrequestbody.js +3 -36
- package/models/components/v1adminupdateresourcesrequestbody.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/v1adminupdateresourcesrequestbody.ts +4 -55
|
@@ -258,15 +258,8 @@ const steamSets = new SteamSets({
|
|
|
258
258
|
|
|
259
259
|
async function run() {
|
|
260
260
|
const result = await steamSets.admin.updateResources({
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
resource: "max_leaderboard_entries",
|
|
264
|
-
value: "1",
|
|
265
|
-
},
|
|
266
|
-
],
|
|
267
|
-
resource: [
|
|
268
|
-
"short_link_domain",
|
|
269
|
-
"background",
|
|
261
|
+
resources: [
|
|
262
|
+
|
|
270
263
|
],
|
|
271
264
|
});
|
|
272
265
|
|
|
@@ -293,15 +286,8 @@ const steamSets = new SteamSetsCore({
|
|
|
293
286
|
|
|
294
287
|
async function run() {
|
|
295
288
|
const res = await adminUpdateResources(steamSets, {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
resource: "max_leaderboard_entries",
|
|
299
|
-
value: "1",
|
|
300
|
-
},
|
|
301
|
-
],
|
|
302
|
-
resource: [
|
|
303
|
-
"short_link_domain",
|
|
304
|
-
"background",
|
|
289
|
+
resources: [
|
|
290
|
+
|
|
305
291
|
],
|
|
306
292
|
});
|
|
307
293
|
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "1.0.0";
|
|
30
|
-
readonly sdkVersion: "0.22.
|
|
31
|
-
readonly genVersion: "2.558.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.22.
|
|
30
|
+
readonly sdkVersion: "0.22.12";
|
|
31
|
+
readonly genVersion: "2.558.5";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.22.12 2.558.5 1.0.0 @steamsets/client-ts";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "0.22.
|
|
33
|
-
genVersion: "2.558.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 0.22.
|
|
32
|
+
sdkVersion: "0.22.12",
|
|
33
|
+
genVersion: "2.558.5",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 0.22.12 2.558.5 1.0.0 @steamsets/client-ts",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,84 +1,23 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
4
|
import { IDStruct, IDStruct$Outbound } from "./idstruct.js";
|
|
6
5
|
import { Resource, Resource$Outbound } from "./resource.js";
|
|
7
6
|
import { VanityStruct, VanityStruct$Outbound } from "./vanitystruct.js";
|
|
8
|
-
export declare const V1AdminUpdateResourcesRequestBodyResource: {
|
|
9
|
-
readonly AnimatedAvatar: "animated_avatar";
|
|
10
|
-
readonly AutoRefresh: "auto_refresh";
|
|
11
|
-
readonly AvatarFrame: "avatar_frame";
|
|
12
|
-
readonly Background: "background";
|
|
13
|
-
readonly GoToLeaderboardEntry: "go_to_leaderboard_entry";
|
|
14
|
-
readonly MaxLeaderboardEntries: "max_leaderboard_entries";
|
|
15
|
-
readonly MiniBackground: "mini_background";
|
|
16
|
-
readonly AccountRefreshRate: "account_refresh_rate";
|
|
17
|
-
readonly SocialLinks: "social_links";
|
|
18
|
-
readonly Vanity: "vanity";
|
|
19
|
-
readonly DeveloperApps: "developer_apps";
|
|
20
|
-
readonly AccountQueues: "account_queues";
|
|
21
|
-
readonly ShortLinkDomain: "short_link_domain";
|
|
22
|
-
};
|
|
23
|
-
export type V1AdminUpdateResourcesRequestBodyResource = ClosedEnum<typeof V1AdminUpdateResourcesRequestBodyResource>;
|
|
24
7
|
export type V1AdminUpdateResourcesRequestBody = {
|
|
25
8
|
id?: IDStruct | undefined;
|
|
26
9
|
/**
|
|
27
10
|
* The resources to add for this account
|
|
28
11
|
*/
|
|
29
|
-
|
|
30
|
-
resource: Array<V1AdminUpdateResourcesRequestBodyResource> | null;
|
|
12
|
+
resources: Array<Resource> | null;
|
|
31
13
|
vanity?: VanityStruct | undefined;
|
|
32
14
|
};
|
|
33
15
|
/** @internal */
|
|
34
|
-
export declare const V1AdminUpdateResourcesRequestBodyResource$inboundSchema: z.ZodNativeEnum<typeof V1AdminUpdateResourcesRequestBodyResource>;
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const V1AdminUpdateResourcesRequestBodyResource$outboundSchema: z.ZodNativeEnum<typeof V1AdminUpdateResourcesRequestBodyResource>;
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export declare namespace V1AdminUpdateResourcesRequestBodyResource$ {
|
|
42
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBodyResource$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
44
|
-
readonly AnimatedAvatar: "animated_avatar";
|
|
45
|
-
readonly AutoRefresh: "auto_refresh";
|
|
46
|
-
readonly AvatarFrame: "avatar_frame";
|
|
47
|
-
readonly Background: "background";
|
|
48
|
-
readonly GoToLeaderboardEntry: "go_to_leaderboard_entry";
|
|
49
|
-
readonly MaxLeaderboardEntries: "max_leaderboard_entries";
|
|
50
|
-
readonly MiniBackground: "mini_background";
|
|
51
|
-
readonly AccountRefreshRate: "account_refresh_rate";
|
|
52
|
-
readonly SocialLinks: "social_links";
|
|
53
|
-
readonly Vanity: "vanity";
|
|
54
|
-
readonly DeveloperApps: "developer_apps";
|
|
55
|
-
readonly AccountQueues: "account_queues";
|
|
56
|
-
readonly ShortLinkDomain: "short_link_domain";
|
|
57
|
-
}>;
|
|
58
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBodyResource$outboundSchema` instead. */
|
|
59
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
60
|
-
readonly AnimatedAvatar: "animated_avatar";
|
|
61
|
-
readonly AutoRefresh: "auto_refresh";
|
|
62
|
-
readonly AvatarFrame: "avatar_frame";
|
|
63
|
-
readonly Background: "background";
|
|
64
|
-
readonly GoToLeaderboardEntry: "go_to_leaderboard_entry";
|
|
65
|
-
readonly MaxLeaderboardEntries: "max_leaderboard_entries";
|
|
66
|
-
readonly MiniBackground: "mini_background";
|
|
67
|
-
readonly AccountRefreshRate: "account_refresh_rate";
|
|
68
|
-
readonly SocialLinks: "social_links";
|
|
69
|
-
readonly Vanity: "vanity";
|
|
70
|
-
readonly DeveloperApps: "developer_apps";
|
|
71
|
-
readonly AccountQueues: "account_queues";
|
|
72
|
-
readonly ShortLinkDomain: "short_link_domain";
|
|
73
|
-
}>;
|
|
74
|
-
}
|
|
75
|
-
/** @internal */
|
|
76
16
|
export declare const V1AdminUpdateResourcesRequestBody$inboundSchema: z.ZodType<V1AdminUpdateResourcesRequestBody, z.ZodTypeDef, unknown>;
|
|
77
17
|
/** @internal */
|
|
78
18
|
export type V1AdminUpdateResourcesRequestBody$Outbound = {
|
|
79
19
|
id?: IDStruct$Outbound | undefined;
|
|
80
|
-
|
|
81
|
-
resource: Array<string> | null;
|
|
20
|
+
resources: Array<Resource$Outbound> | null;
|
|
82
21
|
vanity?: VanityStruct$Outbound | undefined;
|
|
83
22
|
};
|
|
84
23
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1adminupdateresourcesrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1adminupdateresourcesrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"v1adminupdateresourcesrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1adminupdateresourcesrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EAER,iBAAiB,EAElB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,iCAAiC,GAAG;IAC9C,EAAE,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,EAAE,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACnC,SAAS,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAC3C,MAAM,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAKjC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kCAAkC,CAAC;IAClD,iFAAiF;IAC1E,MAAM,aAAa,qEAAkD,CAAC;IAC7E,kFAAkF;IAC3E,MAAM,cAAc,wGACuB,CAAC;IACnD,4EAA4E;IAC5E,KAAY,QAAQ,GAAG,0CAA0C,CAAC;CACnE;AAED,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -26,7 +26,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.V1AdminUpdateResourcesRequestBody$ = exports.V1AdminUpdateResourcesRequestBody$outboundSchema = exports.V1AdminUpdateResourcesRequestBody$inboundSchema =
|
|
29
|
+
exports.V1AdminUpdateResourcesRequestBody$ = exports.V1AdminUpdateResourcesRequestBody$outboundSchema = exports.V1AdminUpdateResourcesRequestBody$inboundSchema = void 0;
|
|
30
30
|
exports.v1AdminUpdateResourcesRequestBodyToJSON = v1AdminUpdateResourcesRequestBodyToJSON;
|
|
31
31
|
exports.v1AdminUpdateResourcesRequestBodyFromJSON = v1AdminUpdateResourcesRequestBodyFromJSON;
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
@@ -34,49 +34,16 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
34
34
|
const idstruct_js_1 = require("./idstruct.js");
|
|
35
35
|
const resource_js_1 = require("./resource.js");
|
|
36
36
|
const vanitystruct_js_1 = require("./vanitystruct.js");
|
|
37
|
-
exports.V1AdminUpdateResourcesRequestBodyResource = {
|
|
38
|
-
AnimatedAvatar: "animated_avatar",
|
|
39
|
-
AutoRefresh: "auto_refresh",
|
|
40
|
-
AvatarFrame: "avatar_frame",
|
|
41
|
-
Background: "background",
|
|
42
|
-
GoToLeaderboardEntry: "go_to_leaderboard_entry",
|
|
43
|
-
MaxLeaderboardEntries: "max_leaderboard_entries",
|
|
44
|
-
MiniBackground: "mini_background",
|
|
45
|
-
AccountRefreshRate: "account_refresh_rate",
|
|
46
|
-
SocialLinks: "social_links",
|
|
47
|
-
Vanity: "vanity",
|
|
48
|
-
DeveloperApps: "developer_apps",
|
|
49
|
-
AccountQueues: "account_queues",
|
|
50
|
-
ShortLinkDomain: "short_link_domain",
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.V1AdminUpdateResourcesRequestBodyResource$inboundSchema = z
|
|
54
|
-
.nativeEnum(exports.V1AdminUpdateResourcesRequestBodyResource);
|
|
55
|
-
/** @internal */
|
|
56
|
-
exports.V1AdminUpdateResourcesRequestBodyResource$outboundSchema = exports.V1AdminUpdateResourcesRequestBodyResource$inboundSchema;
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
var V1AdminUpdateResourcesRequestBodyResource$;
|
|
62
|
-
(function (V1AdminUpdateResourcesRequestBodyResource$) {
|
|
63
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBodyResource$inboundSchema` instead. */
|
|
64
|
-
V1AdminUpdateResourcesRequestBodyResource$.inboundSchema = exports.V1AdminUpdateResourcesRequestBodyResource$inboundSchema;
|
|
65
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBodyResource$outboundSchema` instead. */
|
|
66
|
-
V1AdminUpdateResourcesRequestBodyResource$.outboundSchema = exports.V1AdminUpdateResourcesRequestBodyResource$outboundSchema;
|
|
67
|
-
})(V1AdminUpdateResourcesRequestBodyResource$ || (exports.V1AdminUpdateResourcesRequestBodyResource$ = V1AdminUpdateResourcesRequestBodyResource$ = {}));
|
|
68
37
|
/** @internal */
|
|
69
38
|
exports.V1AdminUpdateResourcesRequestBody$inboundSchema = z.object({
|
|
70
39
|
id: idstruct_js_1.IDStruct$inboundSchema.optional(),
|
|
71
|
-
|
|
72
|
-
resource: z.nullable(z.array(exports.V1AdminUpdateResourcesRequestBodyResource$inboundSchema)),
|
|
40
|
+
resources: z.nullable(z.array(resource_js_1.Resource$inboundSchema)),
|
|
73
41
|
vanity: vanitystruct_js_1.VanityStruct$inboundSchema.optional(),
|
|
74
42
|
});
|
|
75
43
|
/** @internal */
|
|
76
44
|
exports.V1AdminUpdateResourcesRequestBody$outboundSchema = z.object({
|
|
77
45
|
id: idstruct_js_1.IDStruct$outboundSchema.optional(),
|
|
78
|
-
|
|
79
|
-
resource: z.nullable(z.array(exports.V1AdminUpdateResourcesRequestBodyResource$outboundSchema)),
|
|
46
|
+
resources: z.nullable(z.array(resource_js_1.Resource$outboundSchema)),
|
|
80
47
|
vanity: vanitystruct_js_1.VanityStruct$outboundSchema.optional(),
|
|
81
48
|
});
|
|
82
49
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1adminupdateresourcesrequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1adminupdateresourcesrequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"v1adminupdateresourcesrequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1adminupdateresourcesrequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EH,0FAQC;AAED,8FAQC;AA7FD,uCAAyB;AACzB,qDAAiD;AAGjD,+CAKuB;AACvB,+CAKuB;AACvB,uDAK2B;AAW3B,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,oCAAsB,CAAC,QAAQ,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,oCAAsB,CAAC,CAAC;IACtD,MAAM,EAAE,4CAA0B,CAAC,QAAQ,EAAE;CAC9C,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,qCAAuB,CAAC,QAAQ,EAAE;IACtC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,qCAAuB,CAAC,CAAC;IACvD,MAAM,EAAE,6CAA2B,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0.0",
|
|
58
|
-
sdkVersion: "0.22.
|
|
59
|
-
genVersion: "2.558.
|
|
58
|
+
sdkVersion: "0.22.12",
|
|
59
|
+
genVersion: "2.558.5",
|
|
60
60
|
userAgent:
|
|
61
|
-
"speakeasy-sdk/typescript 0.22.
|
|
61
|
+
"speakeasy-sdk/typescript 0.22.12 2.558.5 1.0.0 @steamsets/client-ts",
|
|
62
62
|
} as const;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -26,58 +25,15 @@ import {
|
|
|
26
25
|
VanityStruct$outboundSchema,
|
|
27
26
|
} from "./vanitystruct.js";
|
|
28
27
|
|
|
29
|
-
export const V1AdminUpdateResourcesRequestBodyResource = {
|
|
30
|
-
AnimatedAvatar: "animated_avatar",
|
|
31
|
-
AutoRefresh: "auto_refresh",
|
|
32
|
-
AvatarFrame: "avatar_frame",
|
|
33
|
-
Background: "background",
|
|
34
|
-
GoToLeaderboardEntry: "go_to_leaderboard_entry",
|
|
35
|
-
MaxLeaderboardEntries: "max_leaderboard_entries",
|
|
36
|
-
MiniBackground: "mini_background",
|
|
37
|
-
AccountRefreshRate: "account_refresh_rate",
|
|
38
|
-
SocialLinks: "social_links",
|
|
39
|
-
Vanity: "vanity",
|
|
40
|
-
DeveloperApps: "developer_apps",
|
|
41
|
-
AccountQueues: "account_queues",
|
|
42
|
-
ShortLinkDomain: "short_link_domain",
|
|
43
|
-
} as const;
|
|
44
|
-
export type V1AdminUpdateResourcesRequestBodyResource = ClosedEnum<
|
|
45
|
-
typeof V1AdminUpdateResourcesRequestBodyResource
|
|
46
|
-
>;
|
|
47
|
-
|
|
48
28
|
export type V1AdminUpdateResourcesRequestBody = {
|
|
49
29
|
id?: IDStruct | undefined;
|
|
50
30
|
/**
|
|
51
31
|
* The resources to add for this account
|
|
52
32
|
*/
|
|
53
|
-
|
|
54
|
-
resource: Array<V1AdminUpdateResourcesRequestBodyResource> | null;
|
|
33
|
+
resources: Array<Resource> | null;
|
|
55
34
|
vanity?: VanityStruct | undefined;
|
|
56
35
|
};
|
|
57
36
|
|
|
58
|
-
/** @internal */
|
|
59
|
-
export const V1AdminUpdateResourcesRequestBodyResource$inboundSchema:
|
|
60
|
-
z.ZodNativeEnum<typeof V1AdminUpdateResourcesRequestBodyResource> = z
|
|
61
|
-
.nativeEnum(V1AdminUpdateResourcesRequestBodyResource);
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const V1AdminUpdateResourcesRequestBodyResource$outboundSchema:
|
|
65
|
-
z.ZodNativeEnum<typeof V1AdminUpdateResourcesRequestBodyResource> =
|
|
66
|
-
V1AdminUpdateResourcesRequestBodyResource$inboundSchema;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
-
*/
|
|
72
|
-
export namespace V1AdminUpdateResourcesRequestBodyResource$ {
|
|
73
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBodyResource$inboundSchema` instead. */
|
|
74
|
-
export const inboundSchema =
|
|
75
|
-
V1AdminUpdateResourcesRequestBodyResource$inboundSchema;
|
|
76
|
-
/** @deprecated use `V1AdminUpdateResourcesRequestBodyResource$outboundSchema` instead. */
|
|
77
|
-
export const outboundSchema =
|
|
78
|
-
V1AdminUpdateResourcesRequestBodyResource$outboundSchema;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
37
|
/** @internal */
|
|
82
38
|
export const V1AdminUpdateResourcesRequestBody$inboundSchema: z.ZodType<
|
|
83
39
|
V1AdminUpdateResourcesRequestBody,
|
|
@@ -85,18 +41,14 @@ export const V1AdminUpdateResourcesRequestBody$inboundSchema: z.ZodType<
|
|
|
85
41
|
unknown
|
|
86
42
|
> = z.object({
|
|
87
43
|
id: IDStruct$inboundSchema.optional(),
|
|
88
|
-
|
|
89
|
-
resource: z.nullable(
|
|
90
|
-
z.array(V1AdminUpdateResourcesRequestBodyResource$inboundSchema),
|
|
91
|
-
),
|
|
44
|
+
resources: z.nullable(z.array(Resource$inboundSchema)),
|
|
92
45
|
vanity: VanityStruct$inboundSchema.optional(),
|
|
93
46
|
});
|
|
94
47
|
|
|
95
48
|
/** @internal */
|
|
96
49
|
export type V1AdminUpdateResourcesRequestBody$Outbound = {
|
|
97
50
|
id?: IDStruct$Outbound | undefined;
|
|
98
|
-
|
|
99
|
-
resource: Array<string> | null;
|
|
51
|
+
resources: Array<Resource$Outbound> | null;
|
|
100
52
|
vanity?: VanityStruct$Outbound | undefined;
|
|
101
53
|
};
|
|
102
54
|
|
|
@@ -107,10 +59,7 @@ export const V1AdminUpdateResourcesRequestBody$outboundSchema: z.ZodType<
|
|
|
107
59
|
V1AdminUpdateResourcesRequestBody
|
|
108
60
|
> = z.object({
|
|
109
61
|
id: IDStruct$outboundSchema.optional(),
|
|
110
|
-
|
|
111
|
-
resource: z.nullable(
|
|
112
|
-
z.array(V1AdminUpdateResourcesRequestBodyResource$outboundSchema),
|
|
113
|
-
),
|
|
62
|
+
resources: z.nullable(z.array(Resource$outboundSchema)),
|
|
114
63
|
vanity: VanityStruct$outboundSchema.optional(),
|
|
115
64
|
});
|
|
116
65
|
|