@steamsets/client-ts 0.10.3 → 0.11.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 (136) hide show
  1. package/README.md +9 -0
  2. package/docs/sdks/account/README.md +69 -69
  3. package/docs/sdks/app/README.md +6 -6
  4. package/docs/sdks/badge/README.md +371 -0
  5. package/docs/sdks/connection/README.md +12 -12
  6. package/docs/sdks/data/README.md +24 -24
  7. package/docs/sdks/leaderboard/README.md +3 -3
  8. package/docs/sdks/liveness/README.md +3 -3
  9. package/docs/sdks/location/README.md +3 -3
  10. package/docs/sdks/public/README.md +21 -21
  11. package/docs/sdks/session/README.md +12 -12
  12. package/docs/sdks/settings/README.md +21 -21
  13. package/funcs/badgeBadgeV1Search.d.ts +14 -0
  14. package/funcs/badgeBadgeV1Search.d.ts.map +1 -0
  15. package/funcs/badgeBadgeV1Search.js +97 -0
  16. package/funcs/badgeBadgeV1Search.js.map +1 -0
  17. package/funcs/badgeBadgeV1Tag.d.ts +14 -0
  18. package/funcs/badgeBadgeV1Tag.d.ts.map +1 -0
  19. package/funcs/badgeBadgeV1Tag.js +99 -0
  20. package/funcs/badgeBadgeV1Tag.js.map +1 -0
  21. package/funcs/badgeBadgeV1Tags.d.ts +14 -0
  22. package/funcs/badgeBadgeV1Tags.d.ts.map +1 -0
  23. package/funcs/badgeBadgeV1Tags.js +90 -0
  24. package/funcs/badgeBadgeV1Tags.js.map +1 -0
  25. package/lib/config.d.ts +3 -3
  26. package/lib/config.js +3 -3
  27. package/models/components/accountinfobody.d.ts +18 -8
  28. package/models/components/accountinfobody.d.ts.map +1 -1
  29. package/models/components/accountinfobody.js +12 -8
  30. package/models/components/accountinfobody.js.map +1 -1
  31. package/models/components/badgesearch.d.ts +86 -0
  32. package/models/components/badgesearch.d.ts.map +1 -0
  33. package/models/components/badgesearch.js +70 -0
  34. package/models/components/badgesearch.js.map +1 -0
  35. package/models/components/colortag.d.ts +37 -0
  36. package/models/components/colortag.d.ts.map +1 -0
  37. package/models/components/colortag.js +83 -0
  38. package/models/components/colortag.js.map +1 -0
  39. package/models/components/designtag.d.ts +27 -0
  40. package/models/components/designtag.d.ts.map +1 -0
  41. package/models/components/designtag.js +63 -0
  42. package/models/components/designtag.js.map +1 -0
  43. package/models/components/index.d.ts +8 -0
  44. package/models/components/index.d.ts.map +1 -1
  45. package/models/components/index.js +8 -0
  46. package/models/components/index.js.map +1 -1
  47. package/models/components/leaderboardaccount.d.ts +10 -10
  48. package/models/components/leaderboardaccount.d.ts.map +1 -1
  49. package/models/components/leaderboardaccount.js +10 -10
  50. package/models/components/leaderboardaccount.js.map +1 -1
  51. package/models/components/role.d.ts +5 -0
  52. package/models/components/role.d.ts.map +1 -1
  53. package/models/components/role.js +2 -0
  54. package/models/components/role.js.map +1 -1
  55. package/models/components/setdesigntag.d.ts +33 -0
  56. package/models/components/setdesigntag.d.ts.map +1 -0
  57. package/models/components/setdesigntag.js +52 -0
  58. package/models/components/setdesigntag.js.map +1 -0
  59. package/models/components/v1accountfriend.d.ts +10 -10
  60. package/models/components/v1accountfriend.d.ts.map +1 -1
  61. package/models/components/v1accountfriend.js +10 -10
  62. package/models/components/v1accountfriend.js.map +1 -1
  63. package/models/components/v1accountleaderboardaccount.d.ts +10 -10
  64. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  65. package/models/components/v1accountleaderboardaccount.js +10 -10
  66. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  67. package/models/components/v1badgetagrequestbody.d.ts +39 -0
  68. package/models/components/v1badgetagrequestbody.d.ts.map +1 -0
  69. package/models/components/v1badgetagrequestbody.js +55 -0
  70. package/models/components/v1badgetagrequestbody.js.map +1 -0
  71. package/models/components/v1badgetagresponsebody.d.ts +28 -0
  72. package/models/components/v1badgetagresponsebody.d.ts.map +1 -0
  73. package/models/components/v1badgetagresponsebody.js +59 -0
  74. package/models/components/v1badgetagresponsebody.js.map +1 -0
  75. package/models/components/v1badgetagsrequestbody.d.ts +21 -0
  76. package/models/components/v1badgetagsrequestbody.d.ts.map +1 -0
  77. package/models/components/v1badgetagsrequestbody.js +46 -0
  78. package/models/components/v1badgetagsrequestbody.js.map +1 -0
  79. package/models/components/v1badgetagsresponsebody.d.ts +40 -0
  80. package/models/components/v1badgetagsresponsebody.d.ts.map +1 -0
  81. package/models/components/v1badgetagsresponsebody.js +65 -0
  82. package/models/components/v1badgetagsresponsebody.js.map +1 -0
  83. package/models/errors/errormodel.d.ts +0 -6
  84. package/models/errors/errormodel.d.ts.map +1 -1
  85. package/models/errors/errormodel.js +0 -3
  86. package/models/errors/errormodel.js.map +1 -1
  87. package/models/operations/badgev1search.d.ts +26 -0
  88. package/models/operations/badgev1search.d.ts.map +1 -0
  89. package/models/operations/badgev1search.js +60 -0
  90. package/models/operations/badgev1search.js.map +1 -0
  91. package/models/operations/badgev1tag.d.ts +31 -0
  92. package/models/operations/badgev1tag.d.ts.map +1 -0
  93. package/models/operations/badgev1tag.js +66 -0
  94. package/models/operations/badgev1tag.js.map +1 -0
  95. package/models/operations/badgev1tags.d.ts +31 -0
  96. package/models/operations/badgev1tags.d.ts.map +1 -0
  97. package/models/operations/badgev1tags.js +66 -0
  98. package/models/operations/badgev1tags.js.map +1 -0
  99. package/models/operations/index.d.ts +3 -0
  100. package/models/operations/index.d.ts.map +1 -1
  101. package/models/operations/index.js +3 -0
  102. package/models/operations/index.js.map +1 -1
  103. package/package.json +1 -1
  104. package/sdk/badge.d.ts +18 -0
  105. package/sdk/badge.d.ts.map +1 -0
  106. package/sdk/badge.js +33 -0
  107. package/sdk/badge.js.map +1 -0
  108. package/sdk/sdk.d.ts +3 -0
  109. package/sdk/sdk.d.ts.map +1 -1
  110. package/sdk/sdk.js +5 -0
  111. package/sdk/sdk.js.map +1 -1
  112. package/src/funcs/badgeBadgeV1Search.ts +127 -0
  113. package/src/funcs/badgeBadgeV1Tag.ts +129 -0
  114. package/src/funcs/badgeBadgeV1Tags.ts +116 -0
  115. package/src/lib/config.ts +3 -3
  116. package/src/models/components/accountinfobody.ts +32 -16
  117. package/src/models/components/badgesearch.ts +118 -0
  118. package/src/models/components/colortag.ts +90 -0
  119. package/src/models/components/designtag.ts +60 -0
  120. package/src/models/components/index.ts +8 -0
  121. package/src/models/components/leaderboardaccount.ts +20 -20
  122. package/src/models/components/role.ts +7 -0
  123. package/src/models/components/setdesigntag.ts +55 -0
  124. package/src/models/components/v1accountfriend.ts +20 -20
  125. package/src/models/components/v1accountleaderboardaccount.ts +20 -20
  126. package/src/models/components/v1badgetagrequestbody.ts +68 -0
  127. package/src/models/components/v1badgetagresponsebody.ts +57 -0
  128. package/src/models/components/v1badgetagsrequestbody.ts +37 -0
  129. package/src/models/components/v1badgetagsresponsebody.ts +83 -0
  130. package/src/models/errors/errormodel.ts +0 -6
  131. package/src/models/operations/badgev1search.ts +55 -0
  132. package/src/models/operations/badgev1tag.ts +68 -0
  133. package/src/models/operations/badgev1tags.ts +68 -0
  134. package/src/models/operations/index.ts +3 -0
  135. package/src/sdk/badge.ts +55 -0
  136. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,129 @@
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 { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ /**
27
+ * Tag a badge
28
+ */
29
+ export async function badgeBadgeV1Tag(
30
+ client: SteamSetsCore,
31
+ request: components.V1BadgeTagRequestBody,
32
+ options?: RequestOptions,
33
+ ): Promise<
34
+ Result<
35
+ operations.BadgeV1TagResponse,
36
+ | errors.ErrorModel
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ const input = request;
47
+
48
+ const parsed = safeParse(
49
+ input,
50
+ (value) => components.V1BadgeTagRequestBody$outboundSchema.parse(value),
51
+ "Input validation failed",
52
+ );
53
+ if (!parsed.ok) {
54
+ return parsed;
55
+ }
56
+ const payload = parsed.value;
57
+ const body = encodeJSON("body", payload, { explode: true });
58
+
59
+ const path = pathToFunc("/badge.v1.BadgeService/Tag")();
60
+
61
+ const headers = new Headers({
62
+ "Content-Type": "application/json",
63
+ Accept: "application/json",
64
+ });
65
+
66
+ const secConfig = await extractSecurity(client._options.session);
67
+ const securityInput = secConfig == null ? {} : { session: secConfig };
68
+ const context = {
69
+ operationID: "badge.v1.tag",
70
+ oAuth2Scopes: [],
71
+ securitySource: client._options.session,
72
+ };
73
+ const requestSecurity = resolveGlobalSecurity(securityInput);
74
+
75
+ const requestRes = client._createRequest(context, {
76
+ security: requestSecurity,
77
+ method: "POST",
78
+ path: path,
79
+ headers: headers,
80
+ body: body,
81
+ uaHeader: "x-speakeasy-user-agent",
82
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
83
+ }, options);
84
+ if (!requestRes.ok) {
85
+ return requestRes;
86
+ }
87
+ const req = requestRes.value;
88
+
89
+ const doResult = await client._do(req, {
90
+ context,
91
+ errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
92
+ retryConfig: options?.retries
93
+ || client._options.retryConfig,
94
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
95
+ });
96
+ if (!doResult.ok) {
97
+ return doResult;
98
+ }
99
+ const response = doResult.value;
100
+
101
+ const responseFields = {
102
+ HttpMeta: { Response: response, Request: req },
103
+ };
104
+
105
+ const [result] = await M.match<
106
+ operations.BadgeV1TagResponse,
107
+ | errors.ErrorModel
108
+ | SDKError
109
+ | SDKValidationError
110
+ | UnexpectedClientError
111
+ | InvalidRequestError
112
+ | RequestAbortedError
113
+ | RequestTimeoutError
114
+ | ConnectionError
115
+ >(
116
+ M.json(200, operations.BadgeV1TagResponse$inboundSchema, {
117
+ key: "V1BadgeTagResponseBody",
118
+ }),
119
+ M.jsonErr([403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
120
+ ctype: "application/problem+json",
121
+ }),
122
+ M.fail(["4XX", "5XX"]),
123
+ )(response, req, { extraFields: responseFields });
124
+ if (!result.ok) {
125
+ return result;
126
+ }
127
+
128
+ return result;
129
+ }
@@ -0,0 +1,116 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { RequestOptions } from "../lib/sdks.js";
8
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
9
+ import { pathToFunc } from "../lib/url.js";
10
+ import * as components from "../models/components/index.js";
11
+ import {
12
+ ConnectionError,
13
+ InvalidRequestError,
14
+ RequestAbortedError,
15
+ RequestTimeoutError,
16
+ UnexpectedClientError,
17
+ } from "../models/errors/httpclienterrors.js";
18
+ import * as errors from "../models/errors/index.js";
19
+ import { SDKError } from "../models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../models/operations/index.js";
22
+ import { Result } from "../types/fp.js";
23
+
24
+ /**
25
+ * Get all availiable badge tags
26
+ */
27
+ export async function badgeBadgeV1Tags(
28
+ client: SteamSetsCore,
29
+ request: components.V1BadgeTagsRequestBody,
30
+ options?: RequestOptions,
31
+ ): Promise<
32
+ Result<
33
+ operations.BadgeV1TagsResponse,
34
+ | errors.ErrorModel
35
+ | SDKError
36
+ | SDKValidationError
37
+ | UnexpectedClientError
38
+ | InvalidRequestError
39
+ | RequestAbortedError
40
+ | RequestTimeoutError
41
+ | ConnectionError
42
+ >
43
+ > {
44
+ const input = request;
45
+ void input; // request input is unused
46
+
47
+ const path = pathToFunc("/badge.v1.BadgeService/GetTags")();
48
+
49
+ const headers = new Headers({
50
+ "Content-Type": "application/json",
51
+ Accept: "application/json",
52
+ });
53
+
54
+ const secConfig = await extractSecurity(client._options.session);
55
+ const securityInput = secConfig == null ? {} : { session: secConfig };
56
+ const context = {
57
+ operationID: "badge.v1.tags",
58
+ oAuth2Scopes: [],
59
+ securitySource: client._options.session,
60
+ };
61
+ const requestSecurity = resolveGlobalSecurity(securityInput);
62
+
63
+ const requestRes = client._createRequest(context, {
64
+ security: requestSecurity,
65
+ method: "POST",
66
+ path: path,
67
+ headers: headers,
68
+ uaHeader: "x-speakeasy-user-agent",
69
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
70
+ }, options);
71
+ if (!requestRes.ok) {
72
+ return requestRes;
73
+ }
74
+ const req = requestRes.value;
75
+
76
+ const doResult = await client._do(req, {
77
+ context,
78
+ errorCodes: ["403", "404", "422", "4XX", "500", "5XX"],
79
+ retryConfig: options?.retries
80
+ || client._options.retryConfig,
81
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
82
+ });
83
+ if (!doResult.ok) {
84
+ return doResult;
85
+ }
86
+ const response = doResult.value;
87
+
88
+ const responseFields = {
89
+ HttpMeta: { Response: response, Request: req },
90
+ };
91
+
92
+ const [result] = await M.match<
93
+ operations.BadgeV1TagsResponse,
94
+ | errors.ErrorModel
95
+ | SDKError
96
+ | SDKValidationError
97
+ | UnexpectedClientError
98
+ | InvalidRequestError
99
+ | RequestAbortedError
100
+ | RequestTimeoutError
101
+ | ConnectionError
102
+ >(
103
+ M.json(200, operations.BadgeV1TagsResponse$inboundSchema, {
104
+ key: "V1BadgeTagsResponseBody",
105
+ }),
106
+ M.jsonErr([403, 404, 422, 500], errors.ErrorModel$inboundSchema, {
107
+ ctype: "application/problem+json",
108
+ }),
109
+ M.fail(["4XX", "5XX"]),
110
+ )(response, req, { extraFields: responseFields });
111
+ if (!result.ok) {
112
+ return result;
113
+ }
114
+
115
+ return result;
116
+ }
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.10.3",
59
- genVersion: "2.422.6",
58
+ sdkVersion: "0.11.0",
59
+ genVersion: "2.426.2",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.10.3 2.422.6 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.11.0 2.426.2 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -140,12 +140,16 @@ export type AccountInfoBody = {
140
140
  * The number of bans
141
141
  */
142
142
  bans: number;
143
- city?: Location | undefined;
143
+ city?: Location | null | undefined;
144
+ /**
145
+ * If the account is community banned or not
146
+ */
147
+ communityBan: boolean;
144
148
  /**
145
149
  * The connections of the account
146
150
  */
147
151
  connections: Array<Connection> | null;
148
- country?: Location | undefined;
152
+ country?: Location | null | undefined;
149
153
  /**
150
154
  * The time the account was created
151
155
  */
@@ -194,6 +198,10 @@ export type AccountInfoBody = {
194
198
  * The images of the account
195
199
  */
196
200
  images: Array<Image> | null;
201
+ /**
202
+ * The Last date the account got a ban on
203
+ */
204
+ lastBanDate: Date | null;
197
205
  /**
198
206
  * The level of the account
199
207
  */
@@ -234,12 +242,12 @@ export type AccountInfoBody = {
234
242
  * The privacy of the account
235
243
  */
236
244
  privacy: Privacy;
237
- region?: Location | undefined;
245
+ region?: Location | null | undefined;
238
246
  /**
239
247
  * The roles of the account
240
248
  */
241
249
  roles: Array<Role> | null;
242
- state?: Location | undefined;
250
+ state?: Location | null | undefined;
243
251
  /**
244
252
  * The steam id
245
253
  */
@@ -359,9 +367,10 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
359
367
  new Date(v)
360
368
  ),
361
369
  bans: z.number().int(),
362
- city: Location$inboundSchema.optional(),
370
+ city: z.nullable(Location$inboundSchema).optional(),
371
+ communityBan: z.boolean(),
363
372
  connections: z.nullable(z.array(Connection$inboundSchema)),
364
- country: Location$inboundSchema.optional(),
373
+ country: z.nullable(Location$inboundSchema).optional(),
365
374
  createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
366
375
  currentBestRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
367
376
  currentRanks: z.nullable(z.array(BestLeaderboardRank$inboundSchema)),
@@ -376,6 +385,9 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
376
385
  gameBans: z.number().int(),
377
386
  hidden: z.boolean(),
378
387
  images: z.nullable(z.array(Image$inboundSchema)),
388
+ lastBanDate: z.nullable(
389
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
390
+ ),
379
391
  level: z.number().int(),
380
392
  limitedApps: z.number().int(),
381
393
  miniBackground: z.string(),
@@ -386,9 +398,9 @@ export const AccountInfoBody$inboundSchema: z.ZodType<
386
398
  pointsGiven: z.number().int(),
387
399
  pointsReceived: z.number().int(),
388
400
  privacy: Privacy$inboundSchema,
389
- region: Location$inboundSchema.optional(),
401
+ region: z.nullable(Location$inboundSchema).optional(),
390
402
  roles: z.nullable(z.array(Role$inboundSchema)),
391
- state: Location$inboundSchema.optional(),
403
+ state: z.nullable(Location$inboundSchema).optional(),
392
404
  steamId: z.string(),
393
405
  steamSetsScore: z.number().int(),
394
406
  steamSetsVanity: z.string(),
@@ -421,9 +433,10 @@ export type AccountInfoBody$Outbound = {
421
433
  badges: number;
422
434
  badgesUpdatedAt: string;
423
435
  bans: number;
424
- city?: Location$Outbound | undefined;
436
+ city?: Location$Outbound | null | undefined;
437
+ communityBan: boolean;
425
438
  connections: Array<Connection$Outbound> | null;
426
- country?: Location$Outbound | undefined;
439
+ country?: Location$Outbound | null | undefined;
427
440
  createdAt: string;
428
441
  currentBestRanks: Array<BestLeaderboardRank$Outbound> | null;
429
442
  currentRanks: Array<BestLeaderboardRank$Outbound> | null;
@@ -436,6 +449,7 @@ export type AccountInfoBody$Outbound = {
436
449
  gameBans: number;
437
450
  hidden: boolean;
438
451
  images: Array<Image$Outbound> | null;
452
+ lastBanDate: string | null;
439
453
  level: number;
440
454
  limitedApps: number;
441
455
  miniBackground: string;
@@ -446,9 +460,9 @@ export type AccountInfoBody$Outbound = {
446
460
  pointsGiven: number;
447
461
  pointsReceived: number;
448
462
  privacy: string;
449
- region?: Location$Outbound | undefined;
463
+ region?: Location$Outbound | null | undefined;
450
464
  roles: Array<Role$Outbound> | null;
451
- state?: Location$Outbound | undefined;
465
+ state?: Location$Outbound | null | undefined;
452
466
  steamId: string;
453
467
  steamSetsScore: number;
454
468
  steamSetsVanity: string;
@@ -481,9 +495,10 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
481
495
  badges: z.number().int(),
482
496
  badgesUpdatedAt: z.date().transform(v => v.toISOString()),
483
497
  bans: z.number().int(),
484
- city: Location$outboundSchema.optional(),
498
+ city: z.nullable(Location$outboundSchema).optional(),
499
+ communityBan: z.boolean(),
485
500
  connections: z.nullable(z.array(Connection$outboundSchema)),
486
- country: Location$outboundSchema.optional(),
501
+ country: z.nullable(Location$outboundSchema).optional(),
487
502
  createdAt: z.date().transform(v => v.toISOString()),
488
503
  currentBestRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
489
504
  currentRanks: z.nullable(z.array(BestLeaderboardRank$outboundSchema)),
@@ -496,6 +511,7 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
496
511
  gameBans: z.number().int(),
497
512
  hidden: z.boolean(),
498
513
  images: z.nullable(z.array(Image$outboundSchema)),
514
+ lastBanDate: z.nullable(z.date().transform(v => v.toISOString())),
499
515
  level: z.number().int(),
500
516
  limitedApps: z.number().int(),
501
517
  miniBackground: z.string(),
@@ -506,9 +522,9 @@ export const AccountInfoBody$outboundSchema: z.ZodType<
506
522
  pointsGiven: z.number().int(),
507
523
  pointsReceived: z.number().int(),
508
524
  privacy: Privacy$outboundSchema,
509
- region: Location$outboundSchema.optional(),
525
+ region: z.nullable(Location$outboundSchema).optional(),
510
526
  roles: z.nullable(z.array(Role$outboundSchema)),
511
- state: Location$outboundSchema.optional(),
527
+ state: z.nullable(Location$outboundSchema).optional(),
512
528
  steamId: z.string(),
513
529
  steamSetsScore: z.number().int(),
514
530
  steamSetsVanity: z.string(),
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type BadgeSearch = {
8
+ /**
9
+ * The app id
10
+ */
11
+ appId: number | null;
12
+ /**
13
+ * The app ids
14
+ */
15
+ appIds: Array<number> | null;
16
+ /**
17
+ * The badge id
18
+ */
19
+ badgeId: string | null;
20
+ /**
21
+ * The badge ids
22
+ */
23
+ badgeIds: Array<string> | null;
24
+ /**
25
+ * The color tags you want to search for
26
+ */
27
+ colorSearch: Array<{ [k: string]: Array<string> }> | null;
28
+ /**
29
+ * Whether to include/exclude event badges
30
+ */
31
+ isEvent: boolean | null;
32
+ /**
33
+ * Whether to include/exclude foil badges
34
+ */
35
+ isFoil: boolean | null;
36
+ /**
37
+ * Whether to include/exclude sale badges
38
+ */
39
+ isSale: boolean | null;
40
+ /**
41
+ * The limit of results
42
+ */
43
+ limit: number | null;
44
+ /**
45
+ * The offset of results
46
+ */
47
+ offset: number | null;
48
+ /**
49
+ * The tags you want to search for
50
+ */
51
+ typeSearch: Array<{ [k: string]: Array<string> }> | null;
52
+ };
53
+
54
+ /** @internal */
55
+ export const BadgeSearch$inboundSchema: z.ZodType<
56
+ BadgeSearch,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ appId: z.nullable(z.number().int()),
61
+ appIds: z.nullable(z.array(z.number().int())),
62
+ badgeId: z.nullable(z.string()),
63
+ badgeIds: z.nullable(z.array(z.string())),
64
+ colorSearch: z.nullable(z.array(z.record(z.array(z.string())))),
65
+ isEvent: z.nullable(z.boolean()),
66
+ isFoil: z.nullable(z.boolean()),
67
+ isSale: z.nullable(z.boolean()),
68
+ limit: z.nullable(z.number().int()),
69
+ offset: z.nullable(z.number().int()),
70
+ typeSearch: z.nullable(z.array(z.record(z.array(z.string())))),
71
+ });
72
+
73
+ /** @internal */
74
+ export type BadgeSearch$Outbound = {
75
+ appId: number | null;
76
+ appIds: Array<number> | null;
77
+ badgeId: string | null;
78
+ badgeIds: Array<string> | null;
79
+ colorSearch: Array<{ [k: string]: Array<string> }> | null;
80
+ isEvent: boolean | null;
81
+ isFoil: boolean | null;
82
+ isSale: boolean | null;
83
+ limit: number | null;
84
+ offset: number | null;
85
+ typeSearch: Array<{ [k: string]: Array<string> }> | null;
86
+ };
87
+
88
+ /** @internal */
89
+ export const BadgeSearch$outboundSchema: z.ZodType<
90
+ BadgeSearch$Outbound,
91
+ z.ZodTypeDef,
92
+ BadgeSearch
93
+ > = z.object({
94
+ appId: z.nullable(z.number().int()),
95
+ appIds: z.nullable(z.array(z.number().int())),
96
+ badgeId: z.nullable(z.string()),
97
+ badgeIds: z.nullable(z.array(z.string())),
98
+ colorSearch: z.nullable(z.array(z.record(z.array(z.string())))),
99
+ isEvent: z.nullable(z.boolean()),
100
+ isFoil: z.nullable(z.boolean()),
101
+ isSale: z.nullable(z.boolean()),
102
+ limit: z.nullable(z.number().int()),
103
+ offset: z.nullable(z.number().int()),
104
+ typeSearch: z.nullable(z.array(z.record(z.array(z.string())))),
105
+ });
106
+
107
+ /**
108
+ * @internal
109
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
110
+ */
111
+ export namespace BadgeSearch$ {
112
+ /** @deprecated use `BadgeSearch$inboundSchema` instead. */
113
+ export const inboundSchema = BadgeSearch$inboundSchema;
114
+ /** @deprecated use `BadgeSearch$outboundSchema` instead. */
115
+ export const outboundSchema = BadgeSearch$outboundSchema;
116
+ /** @deprecated use `BadgeSearch$Outbound` instead. */
117
+ export type Outbound = BadgeSearch$Outbound;
118
+ }
@@ -0,0 +1,90 @@
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
+
8
+ export type ColorTag = {
9
+ gradient: string | null;
10
+ group: string;
11
+ groupOwner: boolean;
12
+ hex: string | null;
13
+ hsl: string;
14
+ id: number;
15
+ name: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const ColorTag$inboundSchema: z.ZodType<
20
+ ColorTag,
21
+ z.ZodTypeDef,
22
+ unknown
23
+ > = z.object({
24
+ Gradient: z.nullable(z.string()),
25
+ Group: z.string(),
26
+ GroupOwner: z.boolean(),
27
+ Hex: z.nullable(z.string()),
28
+ Hsl: z.string(),
29
+ ID: z.number().int(),
30
+ Name: z.string(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "Gradient": "gradient",
34
+ "Group": "group",
35
+ "GroupOwner": "groupOwner",
36
+ "Hex": "hex",
37
+ "Hsl": "hsl",
38
+ "ID": "id",
39
+ "Name": "name",
40
+ });
41
+ });
42
+
43
+ /** @internal */
44
+ export type ColorTag$Outbound = {
45
+ Gradient: string | null;
46
+ Group: string;
47
+ GroupOwner: boolean;
48
+ Hex: string | null;
49
+ Hsl: string;
50
+ ID: number;
51
+ Name: string;
52
+ };
53
+
54
+ /** @internal */
55
+ export const ColorTag$outboundSchema: z.ZodType<
56
+ ColorTag$Outbound,
57
+ z.ZodTypeDef,
58
+ ColorTag
59
+ > = z.object({
60
+ gradient: z.nullable(z.string()),
61
+ group: z.string(),
62
+ groupOwner: z.boolean(),
63
+ hex: z.nullable(z.string()),
64
+ hsl: z.string(),
65
+ id: z.number().int(),
66
+ name: z.string(),
67
+ }).transform((v) => {
68
+ return remap$(v, {
69
+ gradient: "Gradient",
70
+ group: "Group",
71
+ groupOwner: "GroupOwner",
72
+ hex: "Hex",
73
+ hsl: "Hsl",
74
+ id: "ID",
75
+ name: "Name",
76
+ });
77
+ });
78
+
79
+ /**
80
+ * @internal
81
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
+ */
83
+ export namespace ColorTag$ {
84
+ /** @deprecated use `ColorTag$inboundSchema` instead. */
85
+ export const inboundSchema = ColorTag$inboundSchema;
86
+ /** @deprecated use `ColorTag$outboundSchema` instead. */
87
+ export const outboundSchema = ColorTag$outboundSchema;
88
+ /** @deprecated use `ColorTag$Outbound` instead. */
89
+ export type Outbound = ColorTag$Outbound;
90
+ }
@@ -0,0 +1,60 @@
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
+
8
+ export type DesignTag = {
9
+ id: number;
10
+ name: string;
11
+ };
12
+
13
+ /** @internal */
14
+ export const DesignTag$inboundSchema: z.ZodType<
15
+ DesignTag,
16
+ z.ZodTypeDef,
17
+ unknown
18
+ > = z.object({
19
+ ID: z.number().int(),
20
+ Name: z.string(),
21
+ }).transform((v) => {
22
+ return remap$(v, {
23
+ "ID": "id",
24
+ "Name": "name",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type DesignTag$Outbound = {
30
+ ID: number;
31
+ Name: string;
32
+ };
33
+
34
+ /** @internal */
35
+ export const DesignTag$outboundSchema: z.ZodType<
36
+ DesignTag$Outbound,
37
+ z.ZodTypeDef,
38
+ DesignTag
39
+ > = z.object({
40
+ id: z.number().int(),
41
+ name: z.string(),
42
+ }).transform((v) => {
43
+ return remap$(v, {
44
+ id: "ID",
45
+ name: "Name",
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 DesignTag$ {
54
+ /** @deprecated use `DesignTag$inboundSchema` instead. */
55
+ export const inboundSchema = DesignTag$inboundSchema;
56
+ /** @deprecated use `DesignTag$outboundSchema` instead. */
57
+ export const outboundSchema = DesignTag$outboundSchema;
58
+ /** @deprecated use `DesignTag$Outbound` instead. */
59
+ export type Outbound = DesignTag$Outbound;
60
+ }
@@ -11,10 +11,13 @@ export * from "./accountsearch.js";
11
11
  export * from "./accountsearchidstruct.js";
12
12
  export * from "./accountsearchvanitystruct.js";
13
13
  export * from "./appsearch.js";
14
+ export * from "./badgesearch.js";
14
15
  export * from "./bestleaderboardrank.js";
15
16
  export * from "./city.js";
17
+ export * from "./colortag.js";
16
18
  export * from "./connection.js";
17
19
  export * from "./country.js";
20
+ export * from "./designtag.js";
18
21
  export * from "./emailnotification.js";
19
22
  export * from "./errordetail.js";
20
23
  export * from "./httpmetadata.js";
@@ -28,6 +31,7 @@ export * from "./resource.js";
28
31
  export * from "./role.js";
29
32
  export * from "./security.js";
30
33
  export * from "./session.js";
34
+ export * from "./setdesigntag.js";
31
35
  export * from "./state.js";
32
36
  export * from "./v1accountapp.js";
33
37
  export * from "./v1accountappbadge.js";
@@ -47,6 +51,10 @@ export * from "./v1appitem.js";
47
51
  export * from "./v1apprequestbody.js";
48
52
  export * from "./v1appresponsebody.js";
49
53
  export * from "./v1badgesresponsebody.js";
54
+ export * from "./v1badgetagrequestbody.js";
55
+ export * from "./v1badgetagresponsebody.js";
56
+ export * from "./v1badgetagsrequestbody.js";
57
+ export * from "./v1badgetagsresponsebody.js";
50
58
  export * from "./v1connectrequestbody.js";
51
59
  export * from "./v1connectresponsebody.js";
52
60
  export * from "./v1createsessionbody.js";