@steamsets/client-ts 0.34.9 → 0.35.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.
Files changed (97) hide show
  1. package/README.md +6 -0
  2. package/funcs/accountQueueInventoryRefresh.d.ts +16 -0
  3. package/funcs/accountQueueInventoryRefresh.d.ts.map +1 -0
  4. package/funcs/accountQueueInventoryRefresh.js +132 -0
  5. package/funcs/accountQueueInventoryRefresh.js.map +1 -0
  6. package/funcs/appQueueUpdate.d.ts +16 -0
  7. package/funcs/appQueueUpdate.d.ts.map +1 -0
  8. package/funcs/appQueueUpdate.js +132 -0
  9. package/funcs/appQueueUpdate.js.map +1 -0
  10. package/funcs/groupQueueUpdate.d.ts +16 -0
  11. package/funcs/groupQueueUpdate.d.ts.map +1 -0
  12. package/funcs/groupQueueUpdate.js +132 -0
  13. package/funcs/groupQueueUpdate.js.map +1 -0
  14. package/funcs/leaderboardGetBucketLeaders.d.ts +1 -1
  15. package/funcs/leaderboardGetBucketLeaders.d.ts.map +1 -1
  16. package/funcs/leaderboardGetBucketLeaders.js +2 -2
  17. package/funcs/leaderboardGetBucketLeaders.js.map +1 -1
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +3 -3
  20. package/lib/config.js +3 -3
  21. package/models/components/bucketleader.d.ts +5 -2
  22. package/models/components/bucketleader.d.ts.map +1 -1
  23. package/models/components/bucketleader.js +1 -1
  24. package/models/components/bucketleader.js.map +1 -1
  25. package/models/components/index.d.ts +3 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +3 -0
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/v1accountqueueinventoryrefreshrequestbody.d.ts +15 -0
  30. package/models/components/v1accountqueueinventoryrefreshrequestbody.d.ts.map +1 -0
  31. package/models/components/v1accountqueueinventoryrefreshrequestbody.js +49 -0
  32. package/models/components/v1accountqueueinventoryrefreshrequestbody.js.map +1 -0
  33. package/models/components/v1appqueueupdaterequestbody.d.ts +15 -0
  34. package/models/components/v1appqueueupdaterequestbody.d.ts.map +1 -0
  35. package/models/components/v1appqueueupdaterequestbody.js +49 -0
  36. package/models/components/v1appqueueupdaterequestbody.js.map +1 -0
  37. package/models/components/v1groupqueueupdaterequestbody.d.ts +15 -0
  38. package/models/components/v1groupqueueupdaterequestbody.d.ts.map +1 -0
  39. package/models/components/v1groupqueueupdaterequestbody.js +49 -0
  40. package/models/components/v1groupqueueupdaterequestbody.js.map +1 -0
  41. package/models/operations/accountqueueinventoryrefresh.d.ts +11 -0
  42. package/models/operations/accountqueueinventoryrefresh.d.ts.map +1 -0
  43. package/models/operations/accountqueueinventoryrefresh.js +56 -0
  44. package/models/operations/accountqueueinventoryrefresh.js.map +1 -0
  45. package/models/operations/appqueueupdate.d.ts +11 -0
  46. package/models/operations/appqueueupdate.d.ts.map +1 -0
  47. package/models/operations/appqueueupdate.js +56 -0
  48. package/models/operations/appqueueupdate.js.map +1 -0
  49. package/models/operations/groupqueueupdate.d.ts +11 -0
  50. package/models/operations/groupqueueupdate.d.ts.map +1 -0
  51. package/models/operations/groupqueueupdate.js +56 -0
  52. package/models/operations/groupqueueupdate.js.map +1 -0
  53. package/models/operations/index.d.ts +4 -1
  54. package/models/operations/index.d.ts.map +1 -1
  55. package/models/operations/index.js +4 -1
  56. package/models/operations/index.js.map +1 -1
  57. package/models/operations/leaderboardgetbucketleaders.d.ts +15 -0
  58. package/models/operations/leaderboardgetbucketleaders.d.ts.map +1 -0
  59. package/models/operations/{getbucketleaders.js → leaderboardgetbucketleaders.js} +6 -6
  60. package/models/operations/leaderboardgetbucketleaders.js.map +1 -0
  61. package/package.json +1 -1
  62. package/sdk/account.d.ts +4 -0
  63. package/sdk/account.d.ts.map +1 -1
  64. package/sdk/account.js +7 -0
  65. package/sdk/account.js.map +1 -1
  66. package/sdk/app.d.ts +5 -0
  67. package/sdk/app.d.ts.map +1 -1
  68. package/sdk/app.js +7 -0
  69. package/sdk/app.js.map +1 -1
  70. package/sdk/group.d.ts +5 -0
  71. package/sdk/group.d.ts.map +1 -1
  72. package/sdk/group.js +7 -0
  73. package/sdk/group.js.map +1 -1
  74. package/sdk/leaderboard.d.ts +1 -1
  75. package/sdk/leaderboard.d.ts.map +1 -1
  76. package/src/funcs/accountQueueInventoryRefresh.ts +188 -0
  77. package/src/funcs/appQueueUpdate.ts +186 -0
  78. package/src/funcs/groupQueueUpdate.ts +186 -0
  79. package/src/funcs/leaderboardGetBucketLeaders.ts +5 -5
  80. package/src/lib/config.ts +3 -3
  81. package/src/models/components/bucketleader.ts +6 -3
  82. package/src/models/components/index.ts +3 -0
  83. package/src/models/components/v1accountqueueinventoryrefreshrequestbody.ts +38 -0
  84. package/src/models/components/v1appqueueupdaterequestbody.ts +36 -0
  85. package/src/models/components/v1groupqueueupdaterequestbody.ts +36 -0
  86. package/src/models/operations/accountqueueinventoryrefresh.ts +38 -0
  87. package/src/models/operations/appqueueupdate.ts +37 -0
  88. package/src/models/operations/groupqueueupdate.ts +37 -0
  89. package/src/models/operations/index.ts +4 -1
  90. package/src/models/operations/{getbucketleaders.ts → leaderboardgetbucketleaders.ts} +8 -7
  91. package/src/sdk/account.ts +15 -0
  92. package/src/sdk/app.ts +16 -0
  93. package/src/sdk/group.ts +16 -0
  94. package/src/sdk/leaderboard.ts +1 -1
  95. package/models/operations/getbucketleaders.d.ts +0 -15
  96. package/models/operations/getbucketleaders.d.ts.map +0 -1
  97. package/models/operations/getbucketleaders.js.map +0 -1
@@ -0,0 +1,186 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import { SteamSetsError } from "../models/errors/steamsetserror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Queue app update
32
+ */
33
+ export function appQueueUpdate(
34
+ client: SteamSetsCore,
35
+ request: components.V1AppQueueUpdateRequestBody,
36
+ options?: RequestOptions,
37
+ ): APIPromise<
38
+ Result<
39
+ operations.AppQueueUpdateResponse,
40
+ | errors.ErrorModel
41
+ | SteamSetsError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ request,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: SteamSetsCore,
60
+ request: components.V1AppQueueUpdateRequestBody,
61
+ options?: RequestOptions,
62
+ ): Promise<
63
+ [
64
+ Result<
65
+ operations.AppQueueUpdateResponse,
66
+ | errors.ErrorModel
67
+ | SteamSetsError
68
+ | ResponseValidationError
69
+ | ConnectionError
70
+ | RequestAbortedError
71
+ | RequestTimeoutError
72
+ | InvalidRequestError
73
+ | UnexpectedClientError
74
+ | SDKValidationError
75
+ >,
76
+ APICall,
77
+ ]
78
+ > {
79
+ const parsed = safeParse(
80
+ request,
81
+ (value) =>
82
+ components.V1AppQueueUpdateRequestBody$outboundSchema.parse(value),
83
+ "Input validation failed",
84
+ );
85
+ if (!parsed.ok) {
86
+ return [parsed, { status: "invalid" }];
87
+ }
88
+ const payload = parsed.value;
89
+ const body = encodeJSON("body", payload, { explode: true });
90
+
91
+ const path = pathToFunc("/v1/app.queueUpdate")();
92
+
93
+ const headers = new Headers(compactMap({
94
+ "Content-Type": "application/json",
95
+ Accept: "application/problem+json",
96
+ }));
97
+
98
+ const secConfig = await extractSecurity(client._options.token);
99
+ const securityInput = secConfig == null ? {} : { token: secConfig };
100
+ const requestSecurity = resolveGlobalSecurity(securityInput);
101
+
102
+ const context = {
103
+ options: client._options,
104
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
105
+ operationID: "app.queueUpdate",
106
+ oAuth2Scopes: null,
107
+
108
+ resolvedSecurity: requestSecurity,
109
+
110
+ securitySource: client._options.token,
111
+ retryConfig: options?.retries
112
+ || client._options.retryConfig
113
+ || {
114
+ strategy: "backoff",
115
+ backoff: {
116
+ initialInterval: 500,
117
+ maxInterval: 5000,
118
+ exponent: 1.5,
119
+ maxElapsedTime: 60000,
120
+ },
121
+ retryConnectionErrors: true,
122
+ }
123
+ || { strategy: "none" },
124
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
125
+ };
126
+
127
+ const requestRes = client._createRequest(context, {
128
+ security: requestSecurity,
129
+ method: "POST",
130
+ baseURL: options?.serverURL,
131
+ path: path,
132
+ headers: headers,
133
+ body: body,
134
+ uaHeader: "x-speakeasy-user-agent",
135
+ userAgent: client._options.userAgent,
136
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
137
+ }, options);
138
+ if (!requestRes.ok) {
139
+ return [requestRes, { status: "invalid" }];
140
+ }
141
+ const req = requestRes.value;
142
+
143
+ const doResult = await client._do(req, {
144
+ context,
145
+ isErrorStatusCode: (statusCode: number) =>
146
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
147
+ retryConfig: context.retryConfig,
148
+ retryCodes: context.retryCodes,
149
+ });
150
+ if (!doResult.ok) {
151
+ return [doResult, { status: "request-error", request: req }];
152
+ }
153
+ const response = doResult.value;
154
+
155
+ const responseFields = {
156
+ HttpMeta: { Response: response, Request: req },
157
+ };
158
+
159
+ const [result] = await M.match<
160
+ operations.AppQueueUpdateResponse,
161
+ | errors.ErrorModel
162
+ | SteamSetsError
163
+ | ResponseValidationError
164
+ | ConnectionError
165
+ | RequestAbortedError
166
+ | RequestTimeoutError
167
+ | InvalidRequestError
168
+ | UnexpectedClientError
169
+ | SDKValidationError
170
+ >(
171
+ M.nil(204, operations.AppQueueUpdateResponse$inboundSchema),
172
+ M.jsonErr([400, 401, 403, 422], errors.ErrorModel$inboundSchema, {
173
+ ctype: "application/problem+json",
174
+ }),
175
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
176
+ ctype: "application/problem+json",
177
+ }),
178
+ M.fail("4XX"),
179
+ M.fail("5XX"),
180
+ )(response, req, { extraFields: responseFields });
181
+ if (!result.ok) {
182
+ return [result, { status: "complete", request: req, response }];
183
+ }
184
+
185
+ return [result, { status: "complete", request: req, response }];
186
+ }
@@ -0,0 +1,186 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import { matchStatusCode } from "../lib/http.js";
8
+ import * as M from "../lib/matchers.js";
9
+ import { compactMap } from "../lib/primitives.js";
10
+ import { safeParse } from "../lib/schemas.js";
11
+ import { RequestOptions } from "../lib/sdks.js";
12
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
13
+ import { pathToFunc } from "../lib/url.js";
14
+ import * as components from "../models/components/index.js";
15
+ import {
16
+ ConnectionError,
17
+ InvalidRequestError,
18
+ RequestAbortedError,
19
+ RequestTimeoutError,
20
+ UnexpectedClientError,
21
+ } from "../models/errors/httpclienterrors.js";
22
+ import * as errors from "../models/errors/index.js";
23
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import { SteamSetsError } from "../models/errors/steamsetserror.js";
26
+ import * as operations from "../models/operations/index.js";
27
+ import { APICall, APIPromise } from "../types/async.js";
28
+ import { Result } from "../types/fp.js";
29
+
30
+ /**
31
+ * Queue group update
32
+ */
33
+ export function groupQueueUpdate(
34
+ client: SteamSetsCore,
35
+ request: components.V1GroupQueueUpdateRequestBody,
36
+ options?: RequestOptions,
37
+ ): APIPromise<
38
+ Result<
39
+ operations.GroupQueueUpdateResponse,
40
+ | errors.ErrorModel
41
+ | SteamSetsError
42
+ | ResponseValidationError
43
+ | ConnectionError
44
+ | RequestAbortedError
45
+ | RequestTimeoutError
46
+ | InvalidRequestError
47
+ | UnexpectedClientError
48
+ | SDKValidationError
49
+ >
50
+ > {
51
+ return new APIPromise($do(
52
+ client,
53
+ request,
54
+ options,
55
+ ));
56
+ }
57
+
58
+ async function $do(
59
+ client: SteamSetsCore,
60
+ request: components.V1GroupQueueUpdateRequestBody,
61
+ options?: RequestOptions,
62
+ ): Promise<
63
+ [
64
+ Result<
65
+ operations.GroupQueueUpdateResponse,
66
+ | errors.ErrorModel
67
+ | SteamSetsError
68
+ | ResponseValidationError
69
+ | ConnectionError
70
+ | RequestAbortedError
71
+ | RequestTimeoutError
72
+ | InvalidRequestError
73
+ | UnexpectedClientError
74
+ | SDKValidationError
75
+ >,
76
+ APICall,
77
+ ]
78
+ > {
79
+ const parsed = safeParse(
80
+ request,
81
+ (value) =>
82
+ components.V1GroupQueueUpdateRequestBody$outboundSchema.parse(value),
83
+ "Input validation failed",
84
+ );
85
+ if (!parsed.ok) {
86
+ return [parsed, { status: "invalid" }];
87
+ }
88
+ const payload = parsed.value;
89
+ const body = encodeJSON("body", payload, { explode: true });
90
+
91
+ const path = pathToFunc("/v1/group.queueUpdate")();
92
+
93
+ const headers = new Headers(compactMap({
94
+ "Content-Type": "application/json",
95
+ Accept: "application/problem+json",
96
+ }));
97
+
98
+ const secConfig = await extractSecurity(client._options.token);
99
+ const securityInput = secConfig == null ? {} : { token: secConfig };
100
+ const requestSecurity = resolveGlobalSecurity(securityInput);
101
+
102
+ const context = {
103
+ options: client._options,
104
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
105
+ operationID: "group.queueUpdate",
106
+ oAuth2Scopes: null,
107
+
108
+ resolvedSecurity: requestSecurity,
109
+
110
+ securitySource: client._options.token,
111
+ retryConfig: options?.retries
112
+ || client._options.retryConfig
113
+ || {
114
+ strategy: "backoff",
115
+ backoff: {
116
+ initialInterval: 500,
117
+ maxInterval: 5000,
118
+ exponent: 1.5,
119
+ maxElapsedTime: 60000,
120
+ },
121
+ retryConnectionErrors: true,
122
+ }
123
+ || { strategy: "none" },
124
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
125
+ };
126
+
127
+ const requestRes = client._createRequest(context, {
128
+ security: requestSecurity,
129
+ method: "POST",
130
+ baseURL: options?.serverURL,
131
+ path: path,
132
+ headers: headers,
133
+ body: body,
134
+ uaHeader: "x-speakeasy-user-agent",
135
+ userAgent: client._options.userAgent,
136
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
137
+ }, options);
138
+ if (!requestRes.ok) {
139
+ return [requestRes, { status: "invalid" }];
140
+ }
141
+ const req = requestRes.value;
142
+
143
+ const doResult = await client._do(req, {
144
+ context,
145
+ isErrorStatusCode: (statusCode: number) =>
146
+ matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
147
+ retryConfig: context.retryConfig,
148
+ retryCodes: context.retryCodes,
149
+ });
150
+ if (!doResult.ok) {
151
+ return [doResult, { status: "request-error", request: req }];
152
+ }
153
+ const response = doResult.value;
154
+
155
+ const responseFields = {
156
+ HttpMeta: { Response: response, Request: req },
157
+ };
158
+
159
+ const [result] = await M.match<
160
+ operations.GroupQueueUpdateResponse,
161
+ | errors.ErrorModel
162
+ | SteamSetsError
163
+ | ResponseValidationError
164
+ | ConnectionError
165
+ | RequestAbortedError
166
+ | RequestTimeoutError
167
+ | InvalidRequestError
168
+ | UnexpectedClientError
169
+ | SDKValidationError
170
+ >(
171
+ M.nil(204, operations.GroupQueueUpdateResponse$inboundSchema),
172
+ M.jsonErr([400, 401, 403, 422], errors.ErrorModel$inboundSchema, {
173
+ ctype: "application/problem+json",
174
+ }),
175
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
176
+ ctype: "application/problem+json",
177
+ }),
178
+ M.fail("4XX"),
179
+ M.fail("5XX"),
180
+ )(response, req, { extraFields: responseFields });
181
+ if (!result.ok) {
182
+ return [result, { status: "complete", request: req, response }];
183
+ }
184
+
185
+ return [result, { status: "complete", request: req, response }];
186
+ }
@@ -36,7 +36,7 @@ export function leaderboardGetBucketLeaders(
36
36
  options?: RequestOptions,
37
37
  ): APIPromise<
38
38
  Result<
39
- operations.GetBucketLeadersResponse,
39
+ operations.LeaderboardGetBucketLeadersResponse,
40
40
  | errors.ErrorModel
41
41
  | SteamSetsError
42
42
  | ResponseValidationError
@@ -62,7 +62,7 @@ async function $do(
62
62
  ): Promise<
63
63
  [
64
64
  Result<
65
- operations.GetBucketLeadersResponse,
65
+ operations.LeaderboardGetBucketLeadersResponse,
66
66
  | errors.ErrorModel
67
67
  | SteamSetsError
68
68
  | ResponseValidationError
@@ -104,7 +104,7 @@ async function $do(
104
104
  const context = {
105
105
  options: client._options,
106
106
  baseURL: options?.serverURL ?? client._baseURL ?? "",
107
- operationID: "getBucketLeaders",
107
+ operationID: "leaderboard.getBucketLeaders",
108
108
  oAuth2Scopes: null,
109
109
 
110
110
  resolvedSecurity: requestSecurity,
@@ -159,7 +159,7 @@ async function $do(
159
159
  };
160
160
 
161
161
  const [result] = await M.match<
162
- operations.GetBucketLeadersResponse,
162
+ operations.LeaderboardGetBucketLeadersResponse,
163
163
  | errors.ErrorModel
164
164
  | SteamSetsError
165
165
  | ResponseValidationError
@@ -170,7 +170,7 @@ async function $do(
170
170
  | UnexpectedClientError
171
171
  | SDKValidationError
172
172
  >(
173
- M.json(200, operations.GetBucketLeadersResponse$inboundSchema, {
173
+ M.json(200, operations.LeaderboardGetBucketLeadersResponse$inboundSchema, {
174
174
  key: "BucketLeaders",
175
175
  }),
176
176
  M.jsonErr([400, 401, 422], errors.ErrorModel$inboundSchema, {
package/src/lib/config.ts CHANGED
@@ -59,8 +59,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
59
59
  export const SDK_METADATA = {
60
60
  language: "typescript",
61
61
  openapiDocVersion: "1.0.0",
62
- sdkVersion: "0.34.9",
63
- genVersion: "2.885.1",
62
+ sdkVersion: "0.35.0",
63
+ genVersion: "2.889.1",
64
64
  userAgent:
65
- "speakeasy-sdk/typescript 0.34.9 2.885.1 1.0.0 @steamsets/client-ts",
65
+ "speakeasy-sdk/typescript 0.35.0 2.889.1 1.0.0 @steamsets/client-ts",
66
66
  } as const;
@@ -13,7 +13,6 @@ import {
13
13
 
14
14
  export type BucketLeader = {
15
15
  account?: LeaderboardAccount | null | undefined;
16
- accountId?: number | undefined;
17
16
  /**
18
17
  * No account in this bucket within the scope
19
18
  */
@@ -22,10 +21,14 @@ export type BucketLeader = {
22
21
  * Inclusive bucket lower bound in the leaderboard's native unit (level for xp, game count for apps)
23
22
  */
24
23
  from: number;
24
+ /**
25
+ * True when the bucket has no upper bound (e.g. the top apps tier); render as 'from+'.
26
+ */
27
+ open: boolean;
25
28
  rank?: number | undefined;
26
29
  score?: number | undefined;
27
30
  /**
28
- * Inclusive bucket upper bound in the leaderboard's native unit
31
+ * Inclusive bucket upper bound in the leaderboard's native unit. Ignore when open=true.
29
32
  */
30
33
  to: number;
31
34
  };
@@ -37,9 +40,9 @@ export const BucketLeader$inboundSchema: z.ZodType<
37
40
  unknown
38
41
  > = z.object({
39
42
  account: z.nullable(LeaderboardAccount$inboundSchema).optional(),
40
- accountId: z.number().int().optional(),
41
43
  empty: z.boolean(),
42
44
  from: z.number().int(),
45
+ open: z.boolean(),
43
46
  rank: z.number().int().optional(),
44
47
  score: z.number().int().optional(),
45
48
  to: z.number().int(),
@@ -195,6 +195,7 @@ export * from "./v1accountlocationupdate.js";
195
195
  export * from "./v1accountloginresponsebody.js";
196
196
  export * from "./v1accountnameupdate.js";
197
197
  export * from "./v1accountplaytimedatapoint.js";
198
+ export * from "./v1accountqueueinventoryrefreshrequestbody.js";
198
199
  export * from "./v1accountqueueupdaterequestbody.js";
199
200
  export * from "./v1accountreconnectrequestbody.js";
200
201
  export * from "./v1accountreconnectresponsebody.js";
@@ -255,6 +256,7 @@ export * from "./v1appfilters.js";
255
256
  export * from "./v1applistbadgesrequestbody.js";
256
257
  export * from "./v1applistbadgesresponsebody.js";
257
258
  export * from "./v1apporder.js";
259
+ export * from "./v1appqueueupdaterequestbody.js";
258
260
  export * from "./v1badgefilters.js";
259
261
  export * from "./v1badgelisttagsresponsebody.js";
260
262
  export * from "./v1badgeorder.js";
@@ -269,6 +271,7 @@ export * from "./v1donationsclaimresponsebody.js";
269
271
  export * from "./v1donationsgetaddressesresponsebody.js";
270
272
  export * from "./v1donationslistcurrenciesresponsebody.js";
271
273
  export * from "./v1groupleaderboardgroup.js";
274
+ export * from "./v1groupqueueupdaterequestbody.js";
272
275
  export * from "./v1leaderboardappinfo.js";
273
276
  export * from "./v1leaderboardbadge.js";
274
277
  export * from "./v1leaderboardbadgeinfo.js";
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type V1AccountQueueInventoryRefreshRequestBody = {
8
+ /**
9
+ * Account ids to refresh inventory for
10
+ */
11
+ accountIds: Array<number> | null;
12
+ };
13
+
14
+ /** @internal */
15
+ export type V1AccountQueueInventoryRefreshRequestBody$Outbound = {
16
+ accountIds: Array<number> | null;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1AccountQueueInventoryRefreshRequestBody$outboundSchema:
21
+ z.ZodType<
22
+ V1AccountQueueInventoryRefreshRequestBody$Outbound,
23
+ z.ZodTypeDef,
24
+ V1AccountQueueInventoryRefreshRequestBody
25
+ > = z.object({
26
+ accountIds: z.nullable(z.array(z.number().int())),
27
+ });
28
+
29
+ export function v1AccountQueueInventoryRefreshRequestBodyToJSON(
30
+ v1AccountQueueInventoryRefreshRequestBody:
31
+ V1AccountQueueInventoryRefreshRequestBody,
32
+ ): string {
33
+ return JSON.stringify(
34
+ V1AccountQueueInventoryRefreshRequestBody$outboundSchema.parse(
35
+ v1AccountQueueInventoryRefreshRequestBody,
36
+ ),
37
+ );
38
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type V1AppQueueUpdateRequestBody = {
8
+ /**
9
+ * App ids to requeue
10
+ */
11
+ appIds: Array<number> | null;
12
+ };
13
+
14
+ /** @internal */
15
+ export type V1AppQueueUpdateRequestBody$Outbound = {
16
+ appIds: Array<number> | null;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1AppQueueUpdateRequestBody$outboundSchema: z.ZodType<
21
+ V1AppQueueUpdateRequestBody$Outbound,
22
+ z.ZodTypeDef,
23
+ V1AppQueueUpdateRequestBody
24
+ > = z.object({
25
+ appIds: z.nullable(z.array(z.number().int())),
26
+ });
27
+
28
+ export function v1AppQueueUpdateRequestBodyToJSON(
29
+ v1AppQueueUpdateRequestBody: V1AppQueueUpdateRequestBody,
30
+ ): string {
31
+ return JSON.stringify(
32
+ V1AppQueueUpdateRequestBody$outboundSchema.parse(
33
+ v1AppQueueUpdateRequestBody,
34
+ ),
35
+ );
36
+ }
@@ -0,0 +1,36 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type V1GroupQueueUpdateRequestBody = {
8
+ /**
9
+ * Group ids to requeue
10
+ */
11
+ groupIds: Array<number> | null;
12
+ };
13
+
14
+ /** @internal */
15
+ export type V1GroupQueueUpdateRequestBody$Outbound = {
16
+ groupIds: Array<number> | null;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1GroupQueueUpdateRequestBody$outboundSchema: z.ZodType<
21
+ V1GroupQueueUpdateRequestBody$Outbound,
22
+ z.ZodTypeDef,
23
+ V1GroupQueueUpdateRequestBody
24
+ > = z.object({
25
+ groupIds: z.nullable(z.array(z.number().int())),
26
+ });
27
+
28
+ export function v1GroupQueueUpdateRequestBodyToJSON(
29
+ v1GroupQueueUpdateRequestBody: V1GroupQueueUpdateRequestBody,
30
+ ): string {
31
+ return JSON.stringify(
32
+ V1GroupQueueUpdateRequestBody$outboundSchema.parse(
33
+ v1GroupQueueUpdateRequestBody,
34
+ ),
35
+ );
36
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type AccountQueueInventoryRefreshResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ };
15
+
16
+ /** @internal */
17
+ export const AccountQueueInventoryRefreshResponse$inboundSchema: z.ZodType<
18
+ AccountQueueInventoryRefreshResponse,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ HttpMeta: components.HTTPMetadata$inboundSchema,
23
+ }).transform((v) => {
24
+ return remap$(v, {
25
+ "HttpMeta": "httpMeta",
26
+ });
27
+ });
28
+
29
+ export function accountQueueInventoryRefreshResponseFromJSON(
30
+ jsonString: string,
31
+ ): SafeParseResult<AccountQueueInventoryRefreshResponse, SDKValidationError> {
32
+ return safeParse(
33
+ jsonString,
34
+ (x) =>
35
+ AccountQueueInventoryRefreshResponse$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'AccountQueueInventoryRefreshResponse' from JSON`,
37
+ );
38
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type AppQueueUpdateResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ };
15
+
16
+ /** @internal */
17
+ export const AppQueueUpdateResponse$inboundSchema: z.ZodType<
18
+ AppQueueUpdateResponse,
19
+ z.ZodTypeDef,
20
+ unknown
21
+ > = z.object({
22
+ HttpMeta: components.HTTPMetadata$inboundSchema,
23
+ }).transform((v) => {
24
+ return remap$(v, {
25
+ "HttpMeta": "httpMeta",
26
+ });
27
+ });
28
+
29
+ export function appQueueUpdateResponseFromJSON(
30
+ jsonString: string,
31
+ ): SafeParseResult<AppQueueUpdateResponse, SDKValidationError> {
32
+ return safeParse(
33
+ jsonString,
34
+ (x) => AppQueueUpdateResponse$inboundSchema.parse(JSON.parse(x)),
35
+ `Failed to parse 'AppQueueUpdateResponse' from JSON`,
36
+ );
37
+ }