@steamsets/client-ts 0.31.5 → 0.32.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.
Files changed (172) hide show
  1. package/README.md +13 -7
  2. package/funcs/accountAccountListOwnedGroups.d.ts +16 -0
  3. package/funcs/accountAccountListOwnedGroups.d.ts.map +1 -0
  4. package/funcs/accountAccountListOwnedGroups.js +133 -0
  5. package/funcs/accountAccountListOwnedGroups.js.map +1 -0
  6. package/hooks/hooks.d.ts.map +1 -1
  7. package/hooks/hooks.js +0 -2
  8. package/hooks/hooks.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/lib/matchers.d.ts.map +1 -1
  13. package/lib/matchers.js +0 -1
  14. package/lib/matchers.js.map +1 -1
  15. package/lib/sdks.js +2 -2
  16. package/lib/sdks.js.map +1 -1
  17. package/lib/security.d.ts.map +1 -1
  18. package/lib/security.js +1 -2
  19. package/lib/security.js.map +1 -1
  20. package/models/components/accountleaderboardhistory.d.ts +3 -3
  21. package/models/components/accountleaderboardhistory.d.ts.map +1 -1
  22. package/models/components/accountleaderboardhistory.js +2 -1
  23. package/models/components/accountleaderboardhistory.js.map +1 -1
  24. package/models/components/badge.d.ts +4 -0
  25. package/models/components/badge.d.ts.map +1 -1
  26. package/models/components/badge.js +4 -0
  27. package/models/components/badge.js.map +1 -1
  28. package/models/components/bestleaderboardrank.d.ts +3 -3
  29. package/models/components/bestleaderboardrank.d.ts.map +1 -1
  30. package/models/components/bestleaderboardrank.js +2 -2
  31. package/models/components/bestleaderboardrank.js.map +1 -1
  32. package/models/components/chosenrole.d.ts +3 -3
  33. package/models/components/chosenrole.d.ts.map +1 -1
  34. package/models/components/chosenrole.js +2 -1
  35. package/models/components/chosenrole.js.map +1 -1
  36. package/models/components/connection.d.ts +3 -3
  37. package/models/components/connection.d.ts.map +1 -1
  38. package/models/components/connection.js +2 -1
  39. package/models/components/connection.js.map +1 -1
  40. package/models/components/developerapp.d.ts +3 -3
  41. package/models/components/developerapp.d.ts.map +1 -1
  42. package/models/components/developerapp.js +2 -1
  43. package/models/components/developerapp.js.map +1 -1
  44. package/models/components/developerappanalyticsoutcome.d.ts +3 -3
  45. package/models/components/developerappanalyticsoutcome.d.ts.map +1 -1
  46. package/models/components/developerappanalyticsoutcome.js +2 -2
  47. package/models/components/developerappanalyticsoutcome.js.map +1 -1
  48. package/models/components/image.d.ts +3 -3
  49. package/models/components/image.d.ts.map +1 -1
  50. package/models/components/image.js +2 -2
  51. package/models/components/image.js.map +1 -1
  52. package/models/components/index.d.ts +2 -0
  53. package/models/components/index.d.ts.map +1 -1
  54. package/models/components/index.js +2 -0
  55. package/models/components/index.js.map +1 -1
  56. package/models/components/leaderboardaccount.d.ts +3 -3
  57. package/models/components/leaderboardaccount.d.ts.map +1 -1
  58. package/models/components/leaderboardaccount.js +2 -1
  59. package/models/components/leaderboardaccount.js.map +1 -1
  60. package/models/components/previewaccount.d.ts +3 -3
  61. package/models/components/previewaccount.d.ts.map +1 -1
  62. package/models/components/previewaccount.js +2 -1
  63. package/models/components/previewaccount.js.map +1 -1
  64. package/models/components/resource.d.ts +4 -4
  65. package/models/components/resource.d.ts.map +1 -1
  66. package/models/components/resource.js +3 -2
  67. package/models/components/resource.js.map +1 -1
  68. package/models/components/role.d.ts +3 -3
  69. package/models/components/role.d.ts.map +1 -1
  70. package/models/components/role.js +2 -2
  71. package/models/components/role.js.map +1 -1
  72. package/models/components/v1accountfriend.d.ts +3 -3
  73. package/models/components/v1accountfriend.d.ts.map +1 -1
  74. package/models/components/v1accountfriend.js +2 -1
  75. package/models/components/v1accountfriend.js.map +1 -1
  76. package/models/components/v1accountgetinforesponsebody.d.ts +9 -9
  77. package/models/components/v1accountgetinforesponsebody.d.ts.map +1 -1
  78. package/models/components/v1accountgetinforesponsebody.js +5 -6
  79. package/models/components/v1accountgetinforesponsebody.js.map +1 -1
  80. package/models/components/v1accountgetsettingsbody.d.ts +11 -3
  81. package/models/components/v1accountgetsettingsbody.d.ts.map +1 -1
  82. package/models/components/v1accountgetsettingsbody.js +4 -1
  83. package/models/components/v1accountgetsettingsbody.js.map +1 -1
  84. package/models/components/v1accountleaderboardaccount.d.ts +3 -3
  85. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  86. package/models/components/v1accountleaderboardaccount.js +2 -1
  87. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  88. package/models/components/v1accountlistownedgroupsresponsebody.d.ts +15 -0
  89. package/models/components/v1accountlistownedgroupsresponsebody.d.ts.map +1 -0
  90. package/models/components/v1accountlistownedgroupsresponsebody.js +57 -0
  91. package/models/components/v1accountlistownedgroupsresponsebody.js.map +1 -0
  92. package/models/components/v1accountupdatesettingsrequestbody.d.ts +5 -0
  93. package/models/components/v1accountupdatesettingsrequestbody.d.ts.map +1 -1
  94. package/models/components/v1accountupdatesettingsrequestbody.js +1 -0
  95. package/models/components/v1accountupdatesettingsrequestbody.js.map +1 -1
  96. package/models/components/v1admingetaccountresponsebody.d.ts +3 -3
  97. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -1
  98. package/models/components/v1admingetaccountresponsebody.js +2 -1
  99. package/models/components/v1admingetaccountresponsebody.js.map +1 -1
  100. package/models/components/v1groupleaderboardgroup.d.ts +3 -3
  101. package/models/components/v1groupleaderboardgroup.d.ts.map +1 -1
  102. package/models/components/v1groupleaderboardgroup.js +2 -1
  103. package/models/components/v1groupleaderboardgroup.js.map +1 -1
  104. package/models/components/v1ownedgroup.d.ts +17 -0
  105. package/models/components/v1ownedgroup.d.ts.map +1 -0
  106. package/models/components/v1ownedgroup.js +57 -0
  107. package/models/components/v1ownedgroup.js.map +1 -0
  108. package/models/operations/accountlistownedgroups.d.ts +15 -0
  109. package/models/operations/accountlistownedgroups.d.ts.map +1 -0
  110. package/models/operations/accountlistownedgroups.js +59 -0
  111. package/models/operations/accountlistownedgroups.js.map +1 -0
  112. package/models/operations/index.d.ts +1 -0
  113. package/models/operations/index.d.ts.map +1 -1
  114. package/models/operations/index.js +1 -0
  115. package/models/operations/index.js.map +1 -1
  116. package/models/operations/locationgetlocations.d.ts +0 -3
  117. package/models/operations/locationgetlocations.d.ts.map +1 -1
  118. package/models/operations/locationgetlocations.js +0 -2
  119. package/models/operations/locationgetlocations.js.map +1 -1
  120. package/models/operations/staffliststaff.d.ts +0 -3
  121. package/models/operations/staffliststaff.d.ts.map +1 -1
  122. package/models/operations/staffliststaff.js +0 -2
  123. package/models/operations/staffliststaff.js.map +1 -1
  124. package/models/operations/statsgetstats.d.ts +0 -3
  125. package/models/operations/statsgetstats.d.ts.map +1 -1
  126. package/models/operations/statsgetstats.js +0 -2
  127. package/models/operations/statsgetstats.js.map +1 -1
  128. package/package.json +3 -3
  129. package/sdk/account.d.ts +4 -0
  130. package/sdk/account.d.ts.map +1 -1
  131. package/sdk/account.js +7 -0
  132. package/sdk/account.js.map +1 -1
  133. package/src/funcs/accountAccountListOwnedGroups.ts +185 -0
  134. package/src/hooks/hooks.ts +0 -3
  135. package/src/lib/config.ts +3 -3
  136. package/src/lib/matchers.ts +3 -2
  137. package/src/lib/sdks.ts +2 -2
  138. package/src/lib/security.ts +1 -2
  139. package/src/models/components/accountleaderboardhistory.ts +8 -6
  140. package/src/models/components/badge.ts +8 -0
  141. package/src/models/components/bestleaderboardrank.ts +8 -4
  142. package/src/models/components/chosenrole.ts +8 -5
  143. package/src/models/components/connection.ts +8 -5
  144. package/src/models/components/developerapp.ts +8 -7
  145. package/src/models/components/developerappanalyticsoutcome.ts +5 -4
  146. package/src/models/components/image.ts +8 -4
  147. package/src/models/components/index.ts +2 -0
  148. package/src/models/components/leaderboardaccount.ts +8 -5
  149. package/src/models/components/previewaccount.ts +8 -5
  150. package/src/models/components/resource.ts +13 -8
  151. package/src/models/components/role.ts +8 -4
  152. package/src/models/components/v1accountfriend.ts +8 -5
  153. package/src/models/components/v1accountgetinforesponsebody.ts +23 -15
  154. package/src/models/components/v1accountgetsettingsbody.ts +18 -5
  155. package/src/models/components/v1accountleaderboardaccount.ts +8 -5
  156. package/src/models/components/v1accountlistownedgroupsresponsebody.ts +43 -0
  157. package/src/models/components/v1accountupdatesettingsrequestbody.ts +6 -0
  158. package/src/models/components/v1admingetaccountresponsebody.ts +8 -6
  159. package/src/models/components/v1groupleaderboardgroup.ts +8 -5
  160. package/src/models/components/v1ownedgroup.ts +45 -0
  161. package/src/models/operations/accountlistownedgroups.ts +47 -0
  162. package/src/models/operations/index.ts +1 -0
  163. package/src/models/operations/locationgetlocations.ts +0 -3
  164. package/src/models/operations/staffliststaff.ts +0 -3
  165. package/src/models/operations/statsgetstats.ts +0 -3
  166. package/src/sdk/account.ts +15 -0
  167. package/.devcontainer/devcontainer.json +0 -45
  168. package/_speakeasy/.github/action-inputs-config.json +0 -53
  169. package/_speakeasy/.github/action-security-config.json +0 -88
  170. package/examples/package-lock.json +0 -610
  171. package/examples/package.json +0 -18
  172. package/tsconfig.json +0 -40
@@ -0,0 +1,185 @@
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 * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import { SteamSetsError } from "../models/errors/steamsetserror.js";
25
+ import * as operations from "../models/operations/index.js";
26
+ import { APICall, APIPromise } from "../types/async.js";
27
+ import { Result } from "../types/fp.js";
28
+
29
+ /**
30
+ * List groups owned by account
31
+ */
32
+ export function accountAccountListOwnedGroups(
33
+ client: SteamSetsCore,
34
+ request: components.AccountSearch,
35
+ options?: RequestOptions,
36
+ ): APIPromise<
37
+ Result<
38
+ operations.AccountListOwnedGroupsResponse,
39
+ | errors.ErrorModel
40
+ | SteamSetsError
41
+ | ResponseValidationError
42
+ | ConnectionError
43
+ | RequestAbortedError
44
+ | RequestTimeoutError
45
+ | InvalidRequestError
46
+ | UnexpectedClientError
47
+ | SDKValidationError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client: SteamSetsCore,
59
+ request: components.AccountSearch,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ operations.AccountListOwnedGroupsResponse,
65
+ | errors.ErrorModel
66
+ | SteamSetsError
67
+ | ResponseValidationError
68
+ | ConnectionError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | InvalidRequestError
72
+ | UnexpectedClientError
73
+ | SDKValidationError
74
+ >,
75
+ APICall,
76
+ ]
77
+ > {
78
+ const parsed = safeParse(
79
+ request,
80
+ (value) => components.AccountSearch$outboundSchema.parse(value),
81
+ "Input validation failed",
82
+ );
83
+ if (!parsed.ok) {
84
+ return [parsed, { status: "invalid" }];
85
+ }
86
+ const payload = parsed.value;
87
+ const body = encodeJSON("body", payload, { explode: true });
88
+
89
+ const path = pathToFunc("/v1/account.listOwnedGroups")();
90
+
91
+ const headers = new Headers(compactMap({
92
+ "Content-Type": "application/json",
93
+ Accept: "application/json",
94
+ }));
95
+
96
+ const secConfig = await extractSecurity(client._options.token);
97
+ const securityInput = secConfig == null ? {} : { token: secConfig };
98
+ const requestSecurity = resolveGlobalSecurity(securityInput);
99
+
100
+ const context = {
101
+ options: client._options,
102
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
103
+ operationID: "account.listOwnedGroups",
104
+ oAuth2Scopes: null,
105
+
106
+ resolvedSecurity: requestSecurity,
107
+
108
+ securitySource: client._options.token,
109
+ retryConfig: options?.retries
110
+ || client._options.retryConfig
111
+ || {
112
+ strategy: "backoff",
113
+ backoff: {
114
+ initialInterval: 500,
115
+ maxInterval: 5000,
116
+ exponent: 1.5,
117
+ maxElapsedTime: 60000,
118
+ },
119
+ retryConnectionErrors: true,
120
+ }
121
+ || { strategy: "none" },
122
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
123
+ };
124
+
125
+ const requestRes = client._createRequest(context, {
126
+ security: requestSecurity,
127
+ method: "POST",
128
+ baseURL: options?.serverURL,
129
+ path: path,
130
+ headers: headers,
131
+ body: body,
132
+ uaHeader: "x-speakeasy-user-agent",
133
+ userAgent: client._options.userAgent,
134
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
135
+ }, options);
136
+ if (!requestRes.ok) {
137
+ return [requestRes, { status: "invalid" }];
138
+ }
139
+ const req = requestRes.value;
140
+
141
+ const doResult = await client._do(req, {
142
+ context,
143
+ errorCodes: ["400", "401", "403", "404", "422", "4XX", "500", "5XX"],
144
+ retryConfig: context.retryConfig,
145
+ retryCodes: context.retryCodes,
146
+ });
147
+ if (!doResult.ok) {
148
+ return [doResult, { status: "request-error", request: req }];
149
+ }
150
+ const response = doResult.value;
151
+
152
+ const responseFields = {
153
+ HttpMeta: { Response: response, Request: req },
154
+ };
155
+
156
+ const [result] = await M.match<
157
+ operations.AccountListOwnedGroupsResponse,
158
+ | errors.ErrorModel
159
+ | SteamSetsError
160
+ | ResponseValidationError
161
+ | ConnectionError
162
+ | RequestAbortedError
163
+ | RequestTimeoutError
164
+ | InvalidRequestError
165
+ | UnexpectedClientError
166
+ | SDKValidationError
167
+ >(
168
+ M.json(200, operations.AccountListOwnedGroupsResponse$inboundSchema, {
169
+ key: "V1AccountListOwnedGroupsResponseBody",
170
+ }),
171
+ M.jsonErr([400, 401, 403, 404, 422], errors.ErrorModel$inboundSchema, {
172
+ ctype: "application/problem+json",
173
+ }),
174
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
175
+ ctype: "application/problem+json",
176
+ }),
177
+ M.fail("4XX"),
178
+ M.fail("5XX"),
179
+ )(response, req, { extraFields: responseFields });
180
+ if (!result.ok) {
181
+ return [result, { status: "complete", request: req, response }];
182
+ }
183
+
184
+ return [result, { status: "complete", request: req, response }];
185
+ }
@@ -18,8 +18,6 @@ import {
18
18
  SDKInitOptions,
19
19
  } from "./types.js";
20
20
 
21
- import { initHooks } from "./registration.js";
22
-
23
21
  export class SDKHooks implements Hooks {
24
22
  sdkInitHooks: SDKInitHook[] = [];
25
23
  beforeCreateRequestHooks: BeforeCreateRequestHook[] = [];
@@ -47,7 +45,6 @@ export class SDKHooks implements Hooks {
47
45
  this.registerAfterErrorHook(hook);
48
46
  }
49
47
  }
50
- initHooks(this);
51
48
  }
52
49
 
53
50
  registerSDKInitHook(hook: SDKInitHook) {
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.31.5",
63
- genVersion: "2.791.1",
62
+ sdkVersion: "0.32.1",
63
+ genVersion: "2.856.1",
64
64
  userAgent:
65
- "speakeasy-sdk/typescript 0.31.5 2.791.1 1.0.0 @steamsets/client-ts",
65
+ "speakeasy-sdk/typescript 0.32.1 2.856.1 1.0.0 @steamsets/client-ts",
66
66
  } as const;
@@ -248,8 +248,9 @@ export function match<T, E>(
248
248
  raw = undefined;
249
249
  break;
250
250
  default:
251
- encoding satisfies never;
252
- throw new Error(`Unsupported response type: ${encoding}`);
251
+ throw new Error(
252
+ `Unsupported response type: ${encoding satisfies never}`,
253
+ );
253
254
  }
254
255
 
255
256
  if (matcher.enc === "fail") {
package/src/lib/sdks.ts CHANGED
@@ -304,9 +304,9 @@ export class ClientSDK {
304
304
  }
305
305
  }
306
306
 
307
- const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
307
+ const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/;
308
308
  const jsonlLikeContentTypeRE =
309
- /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
309
+ /^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/;
310
310
  async function logRequest(logger: Logger | undefined, req: Request) {
311
311
  if (!logger) {
312
312
  return;
@@ -197,8 +197,7 @@ export function resolveSecurity(
197
197
  applyBearer(state, spec);
198
198
  break;
199
199
  default:
200
- spec satisfies never;
201
- throw SecurityError.unrecognizedType(type);
200
+ throw SecurityError.unrecognizedType((spec satisfies never, type));
202
201
  }
203
202
  });
204
203
 
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -24,7 +25,7 @@ export const AccountLeaderboardHistoryLeaderboard = {
24
25
  SteamSets: "steam_sets",
25
26
  Xp: "xp",
26
27
  } as const;
27
- export type AccountLeaderboardHistoryLeaderboard = ClosedEnum<
28
+ export type AccountLeaderboardHistoryLeaderboard = OpenEnum<
28
29
  typeof AccountLeaderboardHistoryLeaderboard
29
30
  >;
30
31
 
@@ -36,10 +37,11 @@ export type AccountLeaderboardHistory = {
36
37
  };
37
38
 
38
39
  /** @internal */
39
- export const AccountLeaderboardHistoryLeaderboard$inboundSchema:
40
- z.ZodNativeEnum<typeof AccountLeaderboardHistoryLeaderboard> = z.nativeEnum(
41
- AccountLeaderboardHistoryLeaderboard,
42
- );
40
+ export const AccountLeaderboardHistoryLeaderboard$inboundSchema: z.ZodType<
41
+ AccountLeaderboardHistoryLeaderboard,
42
+ z.ZodTypeDef,
43
+ unknown
44
+ > = openEnums.inboundSchema(AccountLeaderboardHistoryLeaderboard);
43
45
 
44
46
  /** @internal */
45
47
  export const AccountLeaderboardHistory$inboundSchema: z.ZodType<
@@ -15,7 +15,9 @@ export type Badge = {
15
15
  appImage: string;
16
16
  appName: string;
17
17
  bookmarks: number;
18
+ cardCount: number;
18
19
  colors: Array<string> | null;
20
+ craftCost?: number | undefined;
19
21
  designs: Array<string> | null;
20
22
  firstCompletion: number;
21
23
  highestLevel: number;
@@ -23,11 +25,13 @@ export type Badge = {
23
25
  image: string;
24
26
  isEvent: boolean;
25
27
  isFoil: boolean;
28
+ isNmc: boolean;
26
29
  isSale: boolean;
27
30
  lastChangedAt: number;
28
31
  lastCompletion: number;
29
32
  level: number;
30
33
  name: string;
34
+ noListing: boolean;
31
35
  scarcity: number;
32
36
  steamId: number;
33
37
  xp: number;
@@ -41,7 +45,9 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
41
45
  appImage: z.string(),
42
46
  appName: z.string(),
43
47
  bookmarks: z.number().int(),
48
+ cardCount: z.number().int(),
44
49
  colors: z.nullable(z.array(z.string())),
50
+ craftCost: z.number().int().optional(),
45
51
  designs: z.nullable(z.array(z.string())),
46
52
  firstCompletion: z.number().int(),
47
53
  highestLevel: z.number().int(),
@@ -49,11 +55,13 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
49
55
  image: z.string(),
50
56
  isEvent: z.boolean(),
51
57
  isFoil: z.boolean(),
58
+ isNmc: z.boolean(),
52
59
  isSale: z.boolean(),
53
60
  lastChangedAt: z.number().int(),
54
61
  lastCompletion: z.number().int(),
55
62
  level: z.number().int(),
56
63
  name: z.string(),
64
+ noListing: z.boolean(),
57
65
  scarcity: z.number().int(),
58
66
  steamId: z.number().int(),
59
67
  xp: z.number(),
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -34,7 +35,7 @@ export const Leaderboard = {
34
35
  /**
35
36
  * The leaderboard of the best leaderboard
36
37
  */
37
- export type Leaderboard = ClosedEnum<typeof Leaderboard>;
38
+ export type Leaderboard = OpenEnum<typeof Leaderboard>;
38
39
 
39
40
  export type BestLeaderboardRank = {
40
41
  /**
@@ -48,8 +49,11 @@ export type BestLeaderboardRank = {
48
49
  };
49
50
 
50
51
  /** @internal */
51
- export const Leaderboard$inboundSchema: z.ZodNativeEnum<typeof Leaderboard> = z
52
- .nativeEnum(Leaderboard);
52
+ export const Leaderboard$inboundSchema: z.ZodType<
53
+ Leaderboard,
54
+ z.ZodTypeDef,
55
+ unknown
56
+ > = openEnums.inboundSchema(Leaderboard);
53
57
 
54
58
  /** @internal */
55
59
  export const BestLeaderboardRank$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -31,7 +32,7 @@ export const ChosenRoleRole = {
31
32
  Astral: "astral",
32
33
  Nebula: "nebula",
33
34
  } as const;
34
- export type ChosenRoleRole = ClosedEnum<typeof ChosenRoleRole>;
35
+ export type ChosenRoleRole = OpenEnum<typeof ChosenRoleRole>;
35
36
 
36
37
  export type ChosenRole = {
37
38
  role: ChosenRoleRole;
@@ -42,9 +43,11 @@ export type ChosenRole = {
42
43
  };
43
44
 
44
45
  /** @internal */
45
- export const ChosenRoleRole$inboundSchema: z.ZodNativeEnum<
46
- typeof ChosenRoleRole
47
- > = z.nativeEnum(ChosenRoleRole);
46
+ export const ChosenRoleRole$inboundSchema: z.ZodType<
47
+ ChosenRoleRole,
48
+ z.ZodTypeDef,
49
+ unknown
50
+ > = openEnums.inboundSchema(ChosenRoleRole);
48
51
 
49
52
  /** @internal */
50
53
  export const ChosenRole$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -24,7 +25,7 @@ export const ConnectionProvider = {
24
25
  /**
25
26
  * The provider to connect with
26
27
  */
27
- export type ConnectionProvider = ClosedEnum<typeof ConnectionProvider>;
28
+ export type ConnectionProvider = OpenEnum<typeof ConnectionProvider>;
28
29
 
29
30
  export type Connection = {
30
31
  /**
@@ -62,9 +63,11 @@ export type Connection = {
62
63
  };
63
64
 
64
65
  /** @internal */
65
- export const ConnectionProvider$inboundSchema: z.ZodNativeEnum<
66
- typeof ConnectionProvider
67
- > = z.nativeEnum(ConnectionProvider);
66
+ export const ConnectionProvider$inboundSchema: z.ZodType<
67
+ ConnectionProvider,
68
+ z.ZodTypeDef,
69
+ unknown
70
+ > = openEnums.inboundSchema(ConnectionProvider);
68
71
 
69
72
  /** @internal */
70
73
  export const Connection$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -23,9 +24,7 @@ export const DeveloperAppEnvironment = {
23
24
  /**
24
25
  * The environment of the developer app
25
26
  */
26
- export type DeveloperAppEnvironment = ClosedEnum<
27
- typeof DeveloperAppEnvironment
28
- >;
27
+ export type DeveloperAppEnvironment = OpenEnum<typeof DeveloperAppEnvironment>;
29
28
 
30
29
  export type DeveloperApp = {
31
30
  analytics?: DeveloperAppAnalytics | undefined;
@@ -62,9 +61,11 @@ export type DeveloperApp = {
62
61
  };
63
62
 
64
63
  /** @internal */
65
- export const DeveloperAppEnvironment$inboundSchema: z.ZodNativeEnum<
66
- typeof DeveloperAppEnvironment
67
- > = z.nativeEnum(DeveloperAppEnvironment);
64
+ export const DeveloperAppEnvironment$inboundSchema: z.ZodType<
65
+ DeveloperAppEnvironment,
66
+ z.ZodTypeDef,
67
+ unknown
68
+ > = openEnums.inboundSchema(DeveloperAppEnvironment);
68
69
 
69
70
  /** @internal */
70
71
  export const DeveloperApp$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -24,7 +25,7 @@ export const Outcome = {
24
25
  /**
25
26
  * The outcome of the verification
26
27
  */
27
- export type Outcome = ClosedEnum<typeof Outcome>;
28
+ export type Outcome = OpenEnum<typeof Outcome>;
28
29
 
29
30
  export type DeveloperAppAnalyticsOutcome = {
30
31
  /**
@@ -38,8 +39,8 @@ export type DeveloperAppAnalyticsOutcome = {
38
39
  };
39
40
 
40
41
  /** @internal */
41
- export const Outcome$inboundSchema: z.ZodNativeEnum<typeof Outcome> = z
42
- .nativeEnum(Outcome);
42
+ export const Outcome$inboundSchema: z.ZodType<Outcome, z.ZodTypeDef, unknown> =
43
+ openEnums.inboundSchema(Outcome);
43
44
 
44
45
  /** @internal */
45
46
  export const DeveloperAppAnalyticsOutcome$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -21,7 +22,7 @@ export const ImageType = {
21
22
  /**
22
23
  * The type of the image
23
24
  */
24
- export type ImageType = ClosedEnum<typeof ImageType>;
25
+ export type ImageType = OpenEnum<typeof ImageType>;
25
26
 
26
27
  export type Image = {
27
28
  /**
@@ -43,8 +44,11 @@ export type Image = {
43
44
  };
44
45
 
45
46
  /** @internal */
46
- export const ImageType$inboundSchema: z.ZodNativeEnum<typeof ImageType> = z
47
- .nativeEnum(ImageType);
47
+ export const ImageType$inboundSchema: z.ZodType<
48
+ ImageType,
49
+ z.ZodTypeDef,
50
+ unknown
51
+ > = openEnums.inboundSchema(ImageType);
48
52
 
49
53
  /** @internal */
50
54
  export const Image$inboundSchema: z.ZodType<Image, z.ZodTypeDef, unknown> = z
@@ -86,6 +86,7 @@ export * from "./v1accountlistfriendsresponsebody.js";
86
86
  export * from "./v1accountlistimagesresponsebody.js";
87
87
  export * from "./v1accountlistinventorysetsresponsebody.js";
88
88
  export * from "./v1accountlistleaderboardhistoryresponsebody.js";
89
+ export * from "./v1accountlistownedgroupsresponsebody.js";
89
90
  export * from "./v1accountlocationupdate.js";
90
91
  export * from "./v1accountloginresponsebody.js";
91
92
  export * from "./v1accountnameupdate.js";
@@ -146,6 +147,7 @@ export * from "./v1leaderboardlocation.js";
146
147
  export * from "./v1leaderboardlocationinfo.js";
147
148
  export * from "./v1leaderboardpreviewaccountrankrequestbody.js";
148
149
  export * from "./v1leaderboardpreviewaccountrankresponsebody.js";
150
+ export * from "./v1ownedgroup.js";
149
151
  export * from "./v1searchrequest.js";
150
152
  export * from "./v1stats.js";
151
153
  export * from "./v1vanityanalytics.js";
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -36,7 +37,7 @@ export const LeaderboardAccountPrivacy = {
36
37
  /**
37
38
  * The privacy of the account
38
39
  */
39
- export type LeaderboardAccountPrivacy = ClosedEnum<
40
+ export type LeaderboardAccountPrivacy = OpenEnum<
40
41
  typeof LeaderboardAccountPrivacy
41
42
  >;
42
43
 
@@ -170,9 +171,11 @@ export type LeaderboardAccount = {
170
171
  };
171
172
 
172
173
  /** @internal */
173
- export const LeaderboardAccountPrivacy$inboundSchema: z.ZodNativeEnum<
174
- typeof LeaderboardAccountPrivacy
175
- > = z.nativeEnum(LeaderboardAccountPrivacy);
174
+ export const LeaderboardAccountPrivacy$inboundSchema: z.ZodType<
175
+ LeaderboardAccountPrivacy,
176
+ z.ZodTypeDef,
177
+ unknown
178
+ > = openEnums.inboundSchema(LeaderboardAccountPrivacy);
176
179
 
177
180
  /** @internal */
178
181
  export const LeaderboardAccount$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
  import {
@@ -36,7 +37,7 @@ export const PreviewAccountPrivacy = {
36
37
  /**
37
38
  * The privacy of the account
38
39
  */
39
- export type PreviewAccountPrivacy = ClosedEnum<typeof PreviewAccountPrivacy>;
40
+ export type PreviewAccountPrivacy = OpenEnum<typeof PreviewAccountPrivacy>;
40
41
 
41
42
  export type PreviewAccount = {
42
43
  /**
@@ -180,9 +181,11 @@ export type PreviewAccount = {
180
181
  };
181
182
 
182
183
  /** @internal */
183
- export const PreviewAccountPrivacy$inboundSchema: z.ZodNativeEnum<
184
- typeof PreviewAccountPrivacy
185
- > = z.nativeEnum(PreviewAccountPrivacy);
184
+ export const PreviewAccountPrivacy$inboundSchema: z.ZodType<
185
+ PreviewAccountPrivacy,
186
+ z.ZodTypeDef,
187
+ unknown
188
+ > = openEnums.inboundSchema(PreviewAccountPrivacy);
186
189
 
187
190
  /** @internal */
188
191
  export const PreviewAccount$inboundSchema: z.ZodType<
@@ -4,7 +4,8 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
- import { ClosedEnum } from "../../types/enums.js";
7
+ import * as openEnums from "../../types/enums.js";
8
+ import { OpenEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
@@ -24,7 +25,7 @@ export const ResourceResource = {
24
25
  AccountQueues: "account_queues",
25
26
  ShortLinkDomain: "short_link_domain",
26
27
  } as const;
27
- export type ResourceResource = ClosedEnum<typeof ResourceResource>;
28
+ export type ResourceResource = OpenEnum<typeof ResourceResource>;
28
29
 
29
30
  export type Resource = {
30
31
  resource: ResourceResource;
@@ -35,13 +36,17 @@ export type Resource = {
35
36
  };
36
37
 
37
38
  /** @internal */
38
- export const ResourceResource$inboundSchema: z.ZodNativeEnum<
39
- typeof ResourceResource
40
- > = z.nativeEnum(ResourceResource);
39
+ export const ResourceResource$inboundSchema: z.ZodType<
40
+ ResourceResource,
41
+ z.ZodTypeDef,
42
+ unknown
43
+ > = openEnums.inboundSchema(ResourceResource);
41
44
  /** @internal */
42
- export const ResourceResource$outboundSchema: z.ZodNativeEnum<
43
- typeof ResourceResource
44
- > = ResourceResource$inboundSchema;
45
+ export const ResourceResource$outboundSchema: z.ZodType<
46
+ string,
47
+ z.ZodTypeDef,
48
+ ResourceResource
49
+ > = openEnums.outboundSchema(ResourceResource);
45
50
 
46
51
  /** @internal */
47
52
  export const Resource$inboundSchema: z.ZodType<