@steamsets/client-ts 0.30.1 → 0.31.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 (207) hide show
  1. package/README.md +16 -5
  2. package/examples/package-lock.json +1 -1
  3. package/funcs/accountAccountListInventorySets.d.ts +18 -0
  4. package/funcs/accountAccountListInventorySets.d.ts.map +1 -0
  5. package/funcs/{badgesListPrices.js → accountAccountListInventorySets.js} +18 -24
  6. package/funcs/accountAccountListInventorySets.js.map +1 -0
  7. package/funcs/accountAccountRefreshInventory.d.ts +18 -0
  8. package/funcs/accountAccountRefreshInventory.d.ts.map +1 -0
  9. package/funcs/accountAccountRefreshInventory.js +125 -0
  10. package/funcs/accountAccountRefreshInventory.js.map +1 -0
  11. package/funcs/adminGetAccount.d.ts +16 -0
  12. package/funcs/adminGetAccount.d.ts.map +1 -0
  13. package/funcs/adminGetAccount.js +133 -0
  14. package/funcs/adminGetAccount.js.map +1 -0
  15. package/funcs/adminRemoveVanity.d.ts +16 -0
  16. package/funcs/adminRemoveVanity.d.ts.map +1 -0
  17. package/funcs/adminRemoveVanity.js +133 -0
  18. package/funcs/adminRemoveVanity.js.map +1 -0
  19. package/funcs/adminUpdateResources.d.ts +16 -0
  20. package/funcs/adminUpdateResources.d.ts.map +1 -0
  21. package/funcs/adminUpdateResources.js +131 -0
  22. package/funcs/adminUpdateResources.js.map +1 -0
  23. package/funcs/adminUpdateRoles.d.ts +16 -0
  24. package/funcs/adminUpdateRoles.d.ts.map +1 -0
  25. package/funcs/adminUpdateRoles.js +131 -0
  26. package/funcs/adminUpdateRoles.js.map +1 -0
  27. package/jsr.json +1 -1
  28. package/lib/config.d.ts +3 -3
  29. package/lib/config.js +3 -3
  30. package/models/components/card.d.ts +17 -0
  31. package/models/components/card.d.ts.map +1 -0
  32. package/models/components/{v1badgelevel.js → card.js} +8 -8
  33. package/models/components/card.js.map +1 -0
  34. package/models/components/historyvalue.d.ts +17 -0
  35. package/models/components/historyvalue.d.ts.map +1 -0
  36. package/models/components/{v1badgesetcount.js → historyvalue.js} +8 -8
  37. package/models/components/historyvalue.js.map +1 -0
  38. package/models/components/index.d.ts +12 -9
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +12 -9
  41. package/models/components/index.js.map +1 -1
  42. package/models/components/inventoryset.d.ts +30 -0
  43. package/models/components/inventoryset.d.ts.map +1 -0
  44. package/models/components/{v1badgeapp.js → inventoryset.js} +12 -12
  45. package/models/components/inventoryset.js.map +1 -0
  46. package/models/components/resource.d.ts +11 -0
  47. package/models/components/resource.d.ts.map +1 -1
  48. package/models/components/resource.js +13 -1
  49. package/models/components/resource.js.map +1 -1
  50. package/models/components/v1accountlistinventorysetsresponsebody.d.ts +26 -0
  51. package/models/components/v1accountlistinventorysetsresponsebody.d.ts.map +1 -0
  52. package/models/components/{v1badgelistbadgepricesresponsebody.js → v1accountlistinventorysetsresponsebody.js} +10 -13
  53. package/models/components/v1accountlistinventorysetsresponsebody.js.map +1 -0
  54. package/models/components/v1accountlocationupdate.d.ts +19 -0
  55. package/models/components/v1accountlocationupdate.d.ts.map +1 -0
  56. package/models/components/v1accountlocationupdate.js +56 -0
  57. package/models/components/v1accountlocationupdate.js.map +1 -0
  58. package/models/components/v1accountnameupdate.d.ts +15 -0
  59. package/models/components/v1accountnameupdate.d.ts.map +1 -0
  60. package/models/components/{v1badgetypecount.js → v1accountnameupdate.js} +9 -9
  61. package/models/components/v1accountnameupdate.js.map +1 -0
  62. package/models/components/v1accountrefreshinventoryresponsebody.d.ts +17 -0
  63. package/models/components/v1accountrefreshinventoryresponsebody.d.ts.map +1 -0
  64. package/models/components/{errormodel.js → v1accountrefreshinventoryresponsebody.js} +7 -13
  65. package/models/components/v1accountrefreshinventoryresponsebody.js.map +1 -0
  66. package/models/components/v1accountvanityupdate.d.ts +15 -0
  67. package/models/components/v1accountvanityupdate.d.ts.map +1 -0
  68. package/models/components/v1accountvanityupdate.js +52 -0
  69. package/models/components/v1accountvanityupdate.js.map +1 -0
  70. package/models/components/v1admingetaccountresponsebody.d.ts +104 -0
  71. package/models/components/v1admingetaccountresponsebody.d.ts.map +1 -0
  72. package/models/components/v1admingetaccountresponsebody.js +90 -0
  73. package/models/components/v1admingetaccountresponsebody.js.map +1 -0
  74. package/models/components/v1adminremovevanityresponsebody.d.ts +13 -0
  75. package/models/components/v1adminremovevanityresponsebody.d.ts.map +1 -0
  76. package/models/components/v1adminremovevanityresponsebody.js +55 -0
  77. package/models/components/v1adminremovevanityresponsebody.js.map +1 -0
  78. package/models/components/v1adminupdateresourcesrequestbody.d.ts +22 -0
  79. package/models/components/v1adminupdateresourcesrequestbody.d.ts.map +1 -0
  80. package/models/components/v1adminupdateresourcesrequestbody.js +54 -0
  81. package/models/components/v1adminupdateresourcesrequestbody.js.map +1 -0
  82. package/models/components/v1adminupdaterolesrequestbody.d.ts +45 -0
  83. package/models/components/v1adminupdaterolesrequestbody.d.ts.map +1 -0
  84. package/models/components/v1adminupdaterolesrequestbody.js +78 -0
  85. package/models/components/v1adminupdaterolesrequestbody.js.map +1 -0
  86. package/models/operations/accountlistinventorysets.d.ts +15 -0
  87. package/models/operations/accountlistinventorysets.d.ts.map +1 -0
  88. package/models/operations/accountlistinventorysets.js +59 -0
  89. package/models/operations/accountlistinventorysets.js.map +1 -0
  90. package/models/operations/accountrefreshinventory.d.ts +15 -0
  91. package/models/operations/accountrefreshinventory.d.ts.map +1 -0
  92. package/models/operations/accountrefreshinventory.js +59 -0
  93. package/models/operations/accountrefreshinventory.js.map +1 -0
  94. package/models/operations/admingetaccount.d.ts +15 -0
  95. package/models/operations/admingetaccount.d.ts.map +1 -0
  96. package/models/{components/v1badgesetcounts.js → operations/admingetaccount.js} +16 -10
  97. package/models/operations/admingetaccount.js.map +1 -0
  98. package/models/operations/adminremovevanity.d.ts +15 -0
  99. package/models/operations/adminremovevanity.d.ts.map +1 -0
  100. package/models/operations/adminremovevanity.js +59 -0
  101. package/models/operations/adminremovevanity.js.map +1 -0
  102. package/models/operations/adminupdateresources.d.ts +11 -0
  103. package/models/operations/adminupdateresources.d.ts.map +1 -0
  104. package/models/operations/{badgelistbadgeprices.js → adminupdateresources.js} +6 -11
  105. package/models/operations/adminupdateresources.js.map +1 -0
  106. package/models/operations/adminupdateroles.d.ts +11 -0
  107. package/models/operations/adminupdateroles.d.ts.map +1 -0
  108. package/models/operations/adminupdateroles.js +56 -0
  109. package/models/operations/adminupdateroles.js.map +1 -0
  110. package/models/operations/index.d.ts +6 -1
  111. package/models/operations/index.d.ts.map +1 -1
  112. package/models/operations/index.js +6 -1
  113. package/models/operations/index.js.map +1 -1
  114. package/package.json +1 -1
  115. package/sdk/account.d.ts +14 -0
  116. package/sdk/account.d.ts.map +1 -1
  117. package/sdk/account.js +20 -0
  118. package/sdk/account.js.map +1 -1
  119. package/sdk/admin.d.ts +22 -0
  120. package/sdk/admin.d.ts.map +1 -0
  121. package/sdk/admin.js +40 -0
  122. package/sdk/admin.js.map +1 -0
  123. package/sdk/badges.d.ts +0 -11
  124. package/sdk/badges.d.ts.map +1 -1
  125. package/sdk/badges.js +1 -13
  126. package/sdk/badges.js.map +1 -1
  127. package/sdk/sdk.d.ts +3 -0
  128. package/sdk/sdk.d.ts.map +1 -1
  129. package/sdk/sdk.js +4 -0
  130. package/sdk/sdk.js.map +1 -1
  131. package/src/funcs/{badgesListPrices.ts → accountAccountListInventorySets.ts} +24 -29
  132. package/src/funcs/accountAccountRefreshInventory.ts +169 -0
  133. package/src/funcs/adminGetAccount.ts +185 -0
  134. package/src/funcs/adminRemoveVanity.ts +185 -0
  135. package/src/funcs/adminUpdateResources.ts +184 -0
  136. package/src/funcs/adminUpdateRoles.ts +184 -0
  137. package/src/lib/config.ts +3 -3
  138. package/src/models/components/card.ts +36 -0
  139. package/src/models/components/historyvalue.ts +39 -0
  140. package/src/models/components/index.ts +12 -9
  141. package/src/models/components/inventoryset.ts +55 -0
  142. package/src/models/components/resource.ts +23 -0
  143. package/src/models/components/v1accountlistinventorysetsresponsebody.ts +56 -0
  144. package/src/models/components/v1accountlocationupdate.ts +45 -0
  145. package/src/models/components/v1accountnameupdate.ts +37 -0
  146. package/src/models/components/v1accountrefreshinventoryresponsebody.ts +45 -0
  147. package/src/models/components/v1accountvanityupdate.ts +37 -0
  148. package/src/models/components/v1admingetaccountresponsebody.ts +163 -0
  149. package/src/models/components/v1adminremovevanityresponsebody.ts +39 -0
  150. package/src/models/components/v1adminupdateresourcesrequestbody.ts +57 -0
  151. package/src/models/components/v1adminupdaterolesrequestbody.ts +80 -0
  152. package/src/models/operations/accountlistinventorysets.ts +47 -0
  153. package/src/models/operations/accountrefreshinventory.ts +47 -0
  154. package/src/models/operations/admingetaccount.ts +46 -0
  155. package/src/models/operations/adminremovevanity.ts +46 -0
  156. package/src/models/operations/adminupdateresources.ts +37 -0
  157. package/src/models/operations/adminupdateroles.ts +37 -0
  158. package/src/models/operations/index.ts +6 -1
  159. package/src/sdk/account.ts +32 -0
  160. package/src/sdk/admin.ts +70 -0
  161. package/src/sdk/badges.ts +0 -23
  162. package/src/sdk/sdk.ts +6 -0
  163. package/funcs/badgesListPrices.d.ts +0 -24
  164. package/funcs/badgesListPrices.d.ts.map +0 -1
  165. package/funcs/badgesListPrices.js.map +0 -1
  166. package/models/components/errormodel.d.ts +0 -38
  167. package/models/components/errormodel.d.ts.map +0 -1
  168. package/models/components/errormodel.js.map +0 -1
  169. package/models/components/v1badgeapp.d.ts +0 -15
  170. package/models/components/v1badgeapp.d.ts.map +0 -1
  171. package/models/components/v1badgeapp.js.map +0 -1
  172. package/models/components/v1badgelevel.d.ts +0 -12
  173. package/models/components/v1badgelevel.d.ts.map +0 -1
  174. package/models/components/v1badgelevel.js.map +0 -1
  175. package/models/components/v1badgelistbadgepricesrequestbody.d.ts +0 -8
  176. package/models/components/v1badgelistbadgepricesrequestbody.d.ts.map +0 -1
  177. package/models/components/v1badgelistbadgepricesrequestbody.js +0 -47
  178. package/models/components/v1badgelistbadgepricesrequestbody.js.map +0 -1
  179. package/models/components/v1badgelistbadgepricesresponsebody.d.ts +0 -31
  180. package/models/components/v1badgelistbadgepricesresponsebody.d.ts.map +0 -1
  181. package/models/components/v1badgelistbadgepricesresponsebody.js.map +0 -1
  182. package/models/components/v1badgeset.d.ts +0 -27
  183. package/models/components/v1badgeset.d.ts.map +0 -1
  184. package/models/components/v1badgeset.js +0 -65
  185. package/models/components/v1badgeset.js.map +0 -1
  186. package/models/components/v1badgesetcount.d.ts +0 -11
  187. package/models/components/v1badgesetcount.d.ts.map +0 -1
  188. package/models/components/v1badgesetcount.js.map +0 -1
  189. package/models/components/v1badgesetcounts.d.ts +0 -13
  190. package/models/components/v1badgesetcounts.d.ts.map +0 -1
  191. package/models/components/v1badgesetcounts.js.map +0 -1
  192. package/models/components/v1badgetypecount.d.ts +0 -12
  193. package/models/components/v1badgetypecount.d.ts.map +0 -1
  194. package/models/components/v1badgetypecount.js.map +0 -1
  195. package/models/operations/badgelistbadgeprices.d.ts +0 -19
  196. package/models/operations/badgelistbadgeprices.d.ts.map +0 -1
  197. package/models/operations/badgelistbadgeprices.js.map +0 -1
  198. package/src/models/components/errormodel.ts +0 -70
  199. package/src/models/components/v1badgeapp.ts +0 -41
  200. package/src/models/components/v1badgelevel.ts +0 -35
  201. package/src/models/components/v1badgelistbadgepricesrequestbody.ts +0 -27
  202. package/src/models/components/v1badgelistbadgepricesresponsebody.ts +0 -63
  203. package/src/models/components/v1badgeset.ts +0 -62
  204. package/src/models/components/v1badgesetcount.ts +0 -33
  205. package/src/models/components/v1badgesetcounts.ts +0 -39
  206. package/src/models/components/v1badgetypecount.ts +0 -35
  207. package/src/models/operations/badgelistbadgeprices.ts +0 -52
@@ -1,70 +0,0 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import { ErrorDetail, ErrorDetail$inboundSchema } from "./errordetail.js";
11
-
12
- export type ErrorModel = {
13
- /**
14
- * A URL to the JSON Schema for this object.
15
- */
16
- dollarSchema?: string | undefined;
17
- /**
18
- * A human-readable explanation specific to this occurrence of the problem.
19
- */
20
- detail?: string | undefined;
21
- /**
22
- * Optional list of individual error details
23
- */
24
- errors?: Array<ErrorDetail> | null | undefined;
25
- /**
26
- * A URI reference that identifies the specific occurrence of the problem.
27
- */
28
- instance?: string | undefined;
29
- /**
30
- * HTTP status code
31
- */
32
- status?: number | undefined;
33
- /**
34
- * A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
35
- */
36
- title?: string | undefined;
37
- /**
38
- * A URI reference to human-readable documentation for the error.
39
- */
40
- type: string;
41
- };
42
-
43
- /** @internal */
44
- export const ErrorModel$inboundSchema: z.ZodType<
45
- ErrorModel,
46
- z.ZodTypeDef,
47
- unknown
48
- > = z.object({
49
- $schema: z.string().optional(),
50
- detail: z.string().optional(),
51
- errors: z.nullable(z.array(ErrorDetail$inboundSchema)).optional(),
52
- instance: z.string().optional(),
53
- status: z.number().int().optional(),
54
- title: z.string().optional(),
55
- type: z.string().default("about:blank"),
56
- }).transform((v) => {
57
- return remap$(v, {
58
- "$schema": "dollarSchema",
59
- });
60
- });
61
-
62
- export function errorModelFromJSON(
63
- jsonString: string,
64
- ): SafeParseResult<ErrorModel, SDKValidationError> {
65
- return safeParse(
66
- jsonString,
67
- (x) => ErrorModel$inboundSchema.parse(JSON.parse(x)),
68
- `Failed to parse 'ErrorModel' from JSON`,
69
- );
70
- }
@@ -1,41 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type V1BadgeApp = {
11
- bgAvg: number;
12
- boosterPrice: number | null;
13
- emoteAvg: number;
14
- image: string;
15
- name: string;
16
- owned: boolean;
17
- };
18
-
19
- /** @internal */
20
- export const V1BadgeApp$inboundSchema: z.ZodType<
21
- V1BadgeApp,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- bgAvg: z.number().int(),
26
- boosterPrice: z.nullable(z.number().int()),
27
- emoteAvg: z.number().int(),
28
- image: z.string(),
29
- name: z.string(),
30
- owned: z.boolean(),
31
- });
32
-
33
- export function v1BadgeAppFromJSON(
34
- jsonString: string,
35
- ): SafeParseResult<V1BadgeApp, SDKValidationError> {
36
- return safeParse(
37
- jsonString,
38
- (x) => V1BadgeApp$inboundSchema.parse(JSON.parse(x)),
39
- `Failed to parse 'V1BadgeApp' from JSON`,
40
- );
41
- }
@@ -1,35 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type V1BadgeLevel = {
11
- image: string;
12
- name: string;
13
- scarcity: number;
14
- };
15
-
16
- /** @internal */
17
- export const V1BadgeLevel$inboundSchema: z.ZodType<
18
- V1BadgeLevel,
19
- z.ZodTypeDef,
20
- unknown
21
- > = z.object({
22
- image: z.string(),
23
- name: z.string(),
24
- scarcity: z.number().int(),
25
- });
26
-
27
- export function v1BadgeLevelFromJSON(
28
- jsonString: string,
29
- ): SafeParseResult<V1BadgeLevel, SDKValidationError> {
30
- return safeParse(
31
- jsonString,
32
- (x) => V1BadgeLevel$inboundSchema.parse(JSON.parse(x)),
33
- `Failed to parse 'V1BadgeLevel' from JSON`,
34
- );
35
- }
@@ -1,27 +0,0 @@
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 V1BadgeListBadgePricesRequestBody = {};
8
-
9
- /** @internal */
10
- export type V1BadgeListBadgePricesRequestBody$Outbound = {};
11
-
12
- /** @internal */
13
- export const V1BadgeListBadgePricesRequestBody$outboundSchema: z.ZodType<
14
- V1BadgeListBadgePricesRequestBody$Outbound,
15
- z.ZodTypeDef,
16
- V1BadgeListBadgePricesRequestBody
17
- > = z.object({});
18
-
19
- export function v1BadgeListBadgePricesRequestBodyToJSON(
20
- v1BadgeListBadgePricesRequestBody: V1BadgeListBadgePricesRequestBody,
21
- ): string {
22
- return JSON.stringify(
23
- V1BadgeListBadgePricesRequestBody$outboundSchema.parse(
24
- v1BadgeListBadgePricesRequestBody,
25
- ),
26
- );
27
- }
@@ -1,63 +0,0 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import { V1BadgeApp, V1BadgeApp$inboundSchema } from "./v1badgeapp.js";
11
- import { V1BadgeSet, V1BadgeSet$inboundSchema } from "./v1badgeset.js";
12
- import {
13
- V1BadgeSetCounts,
14
- V1BadgeSetCounts$inboundSchema,
15
- } from "./v1badgesetcounts.js";
16
-
17
- export type V1BadgeListBadgePricesResponseBody = {
18
- /**
19
- * A URL to the JSON Schema for this object.
20
- */
21
- dollarSchema?: string | undefined;
22
- /**
23
- * App information indexed by app ID
24
- */
25
- apps: { [k: string]: V1BadgeApp };
26
- setCounts: V1BadgeSetCounts;
27
- /**
28
- * Badge sets with pricing information
29
- */
30
- sets: Array<V1BadgeSet> | null;
31
- /**
32
- * Total number of badge sets
33
- */
34
- total: number;
35
- };
36
-
37
- /** @internal */
38
- export const V1BadgeListBadgePricesResponseBody$inboundSchema: z.ZodType<
39
- V1BadgeListBadgePricesResponseBody,
40
- z.ZodTypeDef,
41
- unknown
42
- > = z.object({
43
- $schema: z.string().optional(),
44
- apps: z.record(V1BadgeApp$inboundSchema),
45
- setCounts: V1BadgeSetCounts$inboundSchema,
46
- sets: z.nullable(z.array(V1BadgeSet$inboundSchema)),
47
- total: z.number().int(),
48
- }).transform((v) => {
49
- return remap$(v, {
50
- "$schema": "dollarSchema",
51
- });
52
- });
53
-
54
- export function v1BadgeListBadgePricesResponseBodyFromJSON(
55
- jsonString: string,
56
- ): SafeParseResult<V1BadgeListBadgePricesResponseBody, SDKValidationError> {
57
- return safeParse(
58
- jsonString,
59
- (x) =>
60
- V1BadgeListBadgePricesResponseBody$inboundSchema.parse(JSON.parse(x)),
61
- `Failed to parse 'V1BadgeListBadgePricesResponseBody' from JSON`,
62
- );
63
- }
@@ -1,62 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import { V1BadgeLevel, V1BadgeLevel$inboundSchema } from "./v1badgelevel.js";
10
- import {
11
- V1BadgeSetCount,
12
- V1BadgeSetCount$inboundSchema,
13
- } from "./v1badgesetcount.js";
14
-
15
- export type V1BadgeSet = {
16
- appId: number;
17
- avgCardPrc: number;
18
- badges: { [k: string]: V1BadgeLevel };
19
- canBuy: boolean;
20
- cards: number;
21
- currLevel: number;
22
- isFoil: boolean;
23
- issues: Array<string> | null;
24
- link: string;
25
- maxPrc: number;
26
- minPrc: number;
27
- price: number;
28
- priceDiff: number;
29
- setCount: V1BadgeSetCount;
30
- };
31
-
32
- /** @internal */
33
- export const V1BadgeSet$inboundSchema: z.ZodType<
34
- V1BadgeSet,
35
- z.ZodTypeDef,
36
- unknown
37
- > = z.object({
38
- appId: z.number().int(),
39
- avgCardPrc: z.number().int(),
40
- badges: z.record(V1BadgeLevel$inboundSchema),
41
- canBuy: z.boolean(),
42
- cards: z.number().int(),
43
- currLevel: z.number().int(),
44
- isFoil: z.boolean(),
45
- issues: z.nullable(z.array(z.string())),
46
- link: z.string(),
47
- maxPrc: z.number().int(),
48
- minPrc: z.number().int(),
49
- price: z.number().int(),
50
- priceDiff: z.number().int(),
51
- setCount: V1BadgeSetCount$inboundSchema,
52
- });
53
-
54
- export function v1BadgeSetFromJSON(
55
- jsonString: string,
56
- ): SafeParseResult<V1BadgeSet, SDKValidationError> {
57
- return safeParse(
58
- jsonString,
59
- (x) => V1BadgeSet$inboundSchema.parse(JSON.parse(x)),
60
- `Failed to parse 'V1BadgeSet' from JSON`,
61
- );
62
- }
@@ -1,33 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type V1BadgeSetCount = {
11
- duplicateSets: number;
12
- uniqueSets: number;
13
- };
14
-
15
- /** @internal */
16
- export const V1BadgeSetCount$inboundSchema: z.ZodType<
17
- V1BadgeSetCount,
18
- z.ZodTypeDef,
19
- unknown
20
- > = z.object({
21
- duplicateSets: z.number().int(),
22
- uniqueSets: z.number().int(),
23
- });
24
-
25
- export function v1BadgeSetCountFromJSON(
26
- jsonString: string,
27
- ): SafeParseResult<V1BadgeSetCount, SDKValidationError> {
28
- return safeParse(
29
- jsonString,
30
- (x) => V1BadgeSetCount$inboundSchema.parse(JSON.parse(x)),
31
- `Failed to parse 'V1BadgeSetCount' from JSON`,
32
- );
33
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
- import {
10
- V1BadgeTypeCount,
11
- V1BadgeTypeCount$inboundSchema,
12
- } from "./v1badgetypecount.js";
13
-
14
- export type V1BadgeSetCounts = {
15
- duplicate: V1BadgeTypeCount;
16
- total: V1BadgeTypeCount;
17
- unique: V1BadgeTypeCount;
18
- };
19
-
20
- /** @internal */
21
- export const V1BadgeSetCounts$inboundSchema: z.ZodType<
22
- V1BadgeSetCounts,
23
- z.ZodTypeDef,
24
- unknown
25
- > = z.object({
26
- duplicate: V1BadgeTypeCount$inboundSchema,
27
- total: V1BadgeTypeCount$inboundSchema,
28
- unique: V1BadgeTypeCount$inboundSchema,
29
- });
30
-
31
- export function v1BadgeSetCountsFromJSON(
32
- jsonString: string,
33
- ): SafeParseResult<V1BadgeSetCounts, SDKValidationError> {
34
- return safeParse(
35
- jsonString,
36
- (x) => V1BadgeSetCounts$inboundSchema.parse(JSON.parse(x)),
37
- `Failed to parse 'V1BadgeSetCounts' from JSON`,
38
- );
39
- }
@@ -1,35 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
-
10
- export type V1BadgeTypeCount = {
11
- foil: number;
12
- normal: number;
13
- total: number;
14
- };
15
-
16
- /** @internal */
17
- export const V1BadgeTypeCount$inboundSchema: z.ZodType<
18
- V1BadgeTypeCount,
19
- z.ZodTypeDef,
20
- unknown
21
- > = z.object({
22
- foil: z.number().int(),
23
- normal: z.number().int(),
24
- total: z.number().int(),
25
- });
26
-
27
- export function v1BadgeTypeCountFromJSON(
28
- jsonString: string,
29
- ): SafeParseResult<V1BadgeTypeCount, SDKValidationError> {
30
- return safeParse(
31
- jsonString,
32
- (x) => V1BadgeTypeCount$inboundSchema.parse(JSON.parse(x)),
33
- `Failed to parse 'V1BadgeTypeCount' from JSON`,
34
- );
35
- }
@@ -1,52 +0,0 @@
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 BadgeListBadgePricesResponse = {
13
- httpMeta: components.HTTPMetadata;
14
- /**
15
- * OK
16
- */
17
- v1BadgeListBadgePricesResponseBody?:
18
- | components.V1BadgeListBadgePricesResponseBody
19
- | undefined;
20
- /**
21
- * Error
22
- */
23
- errorModel?: components.ErrorModel | undefined;
24
- };
25
-
26
- /** @internal */
27
- export const BadgeListBadgePricesResponse$inboundSchema: z.ZodType<
28
- BadgeListBadgePricesResponse,
29
- z.ZodTypeDef,
30
- unknown
31
- > = z.object({
32
- HttpMeta: components.HTTPMetadata$inboundSchema,
33
- V1BadgeListBadgePricesResponseBody: components
34
- .V1BadgeListBadgePricesResponseBody$inboundSchema.optional(),
35
- ErrorModel: components.ErrorModel$inboundSchema.optional(),
36
- }).transform((v) => {
37
- return remap$(v, {
38
- "HttpMeta": "httpMeta",
39
- "V1BadgeListBadgePricesResponseBody": "v1BadgeListBadgePricesResponseBody",
40
- "ErrorModel": "errorModel",
41
- });
42
- });
43
-
44
- export function badgeListBadgePricesResponseFromJSON(
45
- jsonString: string,
46
- ): SafeParseResult<BadgeListBadgePricesResponse, SDKValidationError> {
47
- return safeParse(
48
- jsonString,
49
- (x) => BadgeListBadgePricesResponse$inboundSchema.parse(JSON.parse(x)),
50
- `Failed to parse 'BadgeListBadgePricesResponse' from JSON`,
51
- );
52
- }