@steamsets/client-ts 0.29.1 → 0.31.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 (152) hide show
  1. package/README.md +14 -14
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/accountAccountListInventorySets.d.ts +18 -0
  6. package/funcs/accountAccountListInventorySets.d.ts.map +1 -0
  7. package/funcs/{badgesListPrices.js → accountAccountListInventorySets.js} +18 -24
  8. package/funcs/accountAccountListInventorySets.js.map +1 -0
  9. package/funcs/accountAccountRefreshInventory.d.ts +18 -0
  10. package/funcs/accountAccountRefreshInventory.d.ts.map +1 -0
  11. package/funcs/accountAccountRefreshInventory.js +125 -0
  12. package/funcs/accountAccountRefreshInventory.js.map +1 -0
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +3 -3
  15. package/lib/config.js +3 -3
  16. package/lib/config.js.map +1 -1
  17. package/lib/encodings.d.ts +1 -0
  18. package/lib/encodings.d.ts.map +1 -1
  19. package/lib/encodings.js +12 -1
  20. package/lib/encodings.js.map +1 -1
  21. package/models/components/card.d.ts +17 -0
  22. package/models/components/card.d.ts.map +1 -0
  23. package/models/components/{v1badgelevel.js → card.js} +8 -8
  24. package/models/components/card.js.map +1 -0
  25. package/models/components/index.d.ts +4 -9
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +4 -9
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/inventoryset.d.ts +30 -0
  30. package/models/components/inventoryset.d.ts.map +1 -0
  31. package/models/components/{v1badgetypecount.js → inventoryset.js} +12 -9
  32. package/models/components/inventoryset.js.map +1 -0
  33. package/models/components/resource.d.ts +1 -0
  34. package/models/components/resource.d.ts.map +1 -1
  35. package/models/components/resource.js +1 -0
  36. package/models/components/resource.js.map +1 -1
  37. package/models/components/v1accountlistinventorysetsresponsebody.d.ts +26 -0
  38. package/models/components/v1accountlistinventorysetsresponsebody.d.ts.map +1 -0
  39. package/models/components/{v1badgelistbadgepricesresponsebody.js → v1accountlistinventorysetsresponsebody.js} +10 -13
  40. package/models/components/v1accountlistinventorysetsresponsebody.js.map +1 -0
  41. package/models/components/v1accountrefreshinventoryresponsebody.d.ts +17 -0
  42. package/models/components/v1accountrefreshinventoryresponsebody.d.ts.map +1 -0
  43. package/models/components/{errormodel.js → v1accountrefreshinventoryresponsebody.js} +7 -13
  44. package/models/components/v1accountrefreshinventoryresponsebody.js.map +1 -0
  45. package/models/components/v1leaderboardgetaccountleaderboardresponsebody.d.ts +1 -1
  46. package/models/components/v1leaderboardgetaccountleaderboardresponsebody.d.ts.map +1 -1
  47. package/models/components/v1leaderboardgetgroupleaderboardresponsebody.d.ts +1 -1
  48. package/models/components/v1leaderboardgetgroupleaderboardresponsebody.d.ts.map +1 -1
  49. package/models/components/v1leaderboardpreviewaccountrankresponsebody.d.ts +1 -1
  50. package/models/components/v1leaderboardpreviewaccountrankresponsebody.d.ts.map +1 -1
  51. package/models/operations/accountlistinventorysets.d.ts +15 -0
  52. package/models/operations/accountlistinventorysets.d.ts.map +1 -0
  53. package/models/operations/{badgelistbadgeprices.js → accountlistinventorysets.js} +9 -11
  54. package/models/operations/accountlistinventorysets.js.map +1 -0
  55. package/models/operations/accountrefreshinventory.d.ts +15 -0
  56. package/models/operations/accountrefreshinventory.d.ts.map +1 -0
  57. package/models/{components/v1badgeapp.js → operations/accountrefreshinventory.js} +16 -12
  58. package/models/operations/accountrefreshinventory.js.map +1 -0
  59. package/models/operations/index.d.ts +2 -1
  60. package/models/operations/index.d.ts.map +1 -1
  61. package/models/operations/index.js +2 -1
  62. package/models/operations/index.js.map +1 -1
  63. package/package.json +1 -1
  64. package/sdk/account.d.ts +14 -0
  65. package/sdk/account.d.ts.map +1 -1
  66. package/sdk/account.js +20 -0
  67. package/sdk/account.js.map +1 -1
  68. package/sdk/badges.d.ts +0 -11
  69. package/sdk/badges.d.ts.map +1 -1
  70. package/sdk/badges.js +1 -13
  71. package/sdk/badges.js.map +1 -1
  72. package/src/funcs/{badgesListPrices.ts → accountAccountListInventorySets.ts} +24 -29
  73. package/src/funcs/accountAccountRefreshInventory.ts +169 -0
  74. package/src/lib/config.ts +3 -3
  75. package/src/lib/encodings.ts +17 -3
  76. package/src/models/components/card.ts +36 -0
  77. package/src/models/components/index.ts +4 -9
  78. package/src/models/components/inventoryset.ts +55 -0
  79. package/src/models/components/resource.ts +1 -0
  80. package/src/models/components/v1accountlistinventorysetsresponsebody.ts +56 -0
  81. package/src/models/components/v1accountrefreshinventoryresponsebody.ts +45 -0
  82. package/src/models/components/v1leaderboardgetaccountleaderboardresponsebody.ts +1 -1
  83. package/src/models/components/v1leaderboardgetgroupleaderboardresponsebody.ts +1 -1
  84. package/src/models/components/v1leaderboardpreviewaccountrankresponsebody.ts +1 -1
  85. package/src/models/operations/accountlistinventorysets.ts +47 -0
  86. package/src/models/operations/accountrefreshinventory.ts +47 -0
  87. package/src/models/operations/index.ts +2 -1
  88. package/src/sdk/account.ts +32 -0
  89. package/src/sdk/badges.ts +0 -23
  90. package/src/types/enums.ts +1 -21
  91. package/src/types/index.ts +2 -1
  92. package/src/types/unrecognized.ts +35 -0
  93. package/tsconfig.json +1 -2
  94. package/types/enums.d.ts +1 -8
  95. package/types/enums.d.ts.map +1 -1
  96. package/types/enums.js +3 -21
  97. package/types/enums.js.map +1 -1
  98. package/types/index.d.ts +2 -1
  99. package/types/index.d.ts.map +1 -1
  100. package/types/index.js +15 -0
  101. package/types/index.js.map +1 -1
  102. package/types/unrecognized.d.ts +16 -0
  103. package/types/unrecognized.d.ts.map +1 -0
  104. package/types/unrecognized.js +34 -0
  105. package/types/unrecognized.js.map +1 -0
  106. package/funcs/badgesListPrices.d.ts +0 -24
  107. package/funcs/badgesListPrices.d.ts.map +0 -1
  108. package/funcs/badgesListPrices.js.map +0 -1
  109. package/models/components/errormodel.d.ts +0 -38
  110. package/models/components/errormodel.d.ts.map +0 -1
  111. package/models/components/errormodel.js.map +0 -1
  112. package/models/components/v1badgeapp.d.ts +0 -15
  113. package/models/components/v1badgeapp.d.ts.map +0 -1
  114. package/models/components/v1badgeapp.js.map +0 -1
  115. package/models/components/v1badgelevel.d.ts +0 -12
  116. package/models/components/v1badgelevel.d.ts.map +0 -1
  117. package/models/components/v1badgelevel.js.map +0 -1
  118. package/models/components/v1badgelistbadgepricesrequestbody.d.ts +0 -8
  119. package/models/components/v1badgelistbadgepricesrequestbody.d.ts.map +0 -1
  120. package/models/components/v1badgelistbadgepricesrequestbody.js +0 -47
  121. package/models/components/v1badgelistbadgepricesrequestbody.js.map +0 -1
  122. package/models/components/v1badgelistbadgepricesresponsebody.d.ts +0 -31
  123. package/models/components/v1badgelistbadgepricesresponsebody.d.ts.map +0 -1
  124. package/models/components/v1badgelistbadgepricesresponsebody.js.map +0 -1
  125. package/models/components/v1badgeset.d.ts +0 -27
  126. package/models/components/v1badgeset.d.ts.map +0 -1
  127. package/models/components/v1badgeset.js +0 -65
  128. package/models/components/v1badgeset.js.map +0 -1
  129. package/models/components/v1badgesetcount.d.ts +0 -11
  130. package/models/components/v1badgesetcount.d.ts.map +0 -1
  131. package/models/components/v1badgesetcount.js +0 -51
  132. package/models/components/v1badgesetcount.js.map +0 -1
  133. package/models/components/v1badgesetcounts.d.ts +0 -13
  134. package/models/components/v1badgesetcounts.d.ts.map +0 -1
  135. package/models/components/v1badgesetcounts.js +0 -53
  136. package/models/components/v1badgesetcounts.js.map +0 -1
  137. package/models/components/v1badgetypecount.d.ts +0 -12
  138. package/models/components/v1badgetypecount.d.ts.map +0 -1
  139. package/models/components/v1badgetypecount.js.map +0 -1
  140. package/models/operations/badgelistbadgeprices.d.ts +0 -19
  141. package/models/operations/badgelistbadgeprices.d.ts.map +0 -1
  142. package/models/operations/badgelistbadgeprices.js.map +0 -1
  143. package/src/models/components/errormodel.ts +0 -70
  144. package/src/models/components/v1badgeapp.ts +0 -41
  145. package/src/models/components/v1badgelevel.ts +0 -35
  146. package/src/models/components/v1badgelistbadgepricesrequestbody.ts +0 -27
  147. package/src/models/components/v1badgelistbadgepricesresponsebody.ts +0 -63
  148. package/src/models/components/v1badgeset.ts +0 -62
  149. package/src/models/components/v1badgesetcount.ts +0 -33
  150. package/src/models/components/v1badgesetcounts.ts +0 -39
  151. package/src/models/components/v1badgetypecount.ts +0 -35
  152. package/src/models/operations/badgelistbadgeprices.ts +0 -52
@@ -1,27 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { V1BadgeLevel } from "./v1badgelevel.js";
5
- import { V1BadgeSetCount } from "./v1badgesetcount.js";
6
- export type V1BadgeSet = {
7
- appId: number;
8
- avgCardPrc: number;
9
- badges: {
10
- [k: string]: V1BadgeLevel;
11
- };
12
- canBuy: boolean;
13
- cards: number;
14
- currLevel: number;
15
- isFoil: boolean;
16
- issues: Array<string> | null;
17
- link: string;
18
- maxPrc: number;
19
- minPrc: number;
20
- price: number;
21
- priceDiff: number;
22
- setCount: V1BadgeSetCount;
23
- };
24
- /** @internal */
25
- export declare const V1BadgeSet$inboundSchema: z.ZodType<V1BadgeSet, z.ZodTypeDef, unknown>;
26
- export declare function v1BadgeSetFromJSON(jsonString: string): SafeParseResult<V1BadgeSet, SDKValidationError>;
27
- //# sourceMappingURL=v1badgeset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgeset.d.ts","sourceRoot":"","sources":["../../src/models/components/v1badgeset.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EACL,eAAe,EAEhB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE,CAAC;IACtC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.V1BadgeSet$inboundSchema = void 0;
40
- exports.v1BadgeSetFromJSON = v1BadgeSetFromJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const schemas_js_1 = require("../../lib/schemas.js");
43
- const v1badgelevel_js_1 = require("./v1badgelevel.js");
44
- const v1badgesetcount_js_1 = require("./v1badgesetcount.js");
45
- /** @internal */
46
- exports.V1BadgeSet$inboundSchema = z.object({
47
- appId: z.number().int(),
48
- avgCardPrc: z.number().int(),
49
- badges: z.record(v1badgelevel_js_1.V1BadgeLevel$inboundSchema),
50
- canBuy: z.boolean(),
51
- cards: z.number().int(),
52
- currLevel: z.number().int(),
53
- isFoil: z.boolean(),
54
- issues: z.nullable(z.array(z.string())),
55
- link: z.string(),
56
- maxPrc: z.number().int(),
57
- minPrc: z.number().int(),
58
- price: z.number().int(),
59
- priceDiff: z.number().int(),
60
- setCount: v1badgesetcount_js_1.V1BadgeSetCount$inboundSchema,
61
- });
62
- function v1BadgeSetFromJSON(jsonString) {
63
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1BadgeSet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1BadgeSet' from JSON`);
64
- }
65
- //# sourceMappingURL=v1badgeset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgeset.js","sourceRoot":"","sources":["../../src/models/components/v1badgeset.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,gDAQC;AAzDD,0CAA4B;AAC5B,qDAAiD;AAGjD,uDAA6E;AAC7E,6DAG8B;AAmB9B,gBAAgB;AACH,QAAA,wBAAwB,GAIjC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,4CAA0B,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC3B,QAAQ,EAAE,kDAA6B;CACxC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAChC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
@@ -1,11 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type V1BadgeSetCount = {
5
- duplicateSets: number;
6
- uniqueSets: number;
7
- };
8
- /** @internal */
9
- export declare const V1BadgeSetCount$inboundSchema: z.ZodType<V1BadgeSetCount, z.ZodTypeDef, unknown>;
10
- export declare function v1BadgeSetCountFromJSON(jsonString: string): SafeParseResult<V1BadgeSetCount, SDKValidationError>;
11
- //# sourceMappingURL=v1badgesetcount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgesetcount.d.ts","sourceRoot":"","sources":["../../src/models/components/v1badgesetcount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,eAAe,GAAG;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,eAAe,EACf,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAMtD"}
@@ -1,51 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.V1BadgeSetCount$inboundSchema = void 0;
40
- exports.v1BadgeSetCountFromJSON = v1BadgeSetCountFromJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const schemas_js_1 = require("../../lib/schemas.js");
43
- /** @internal */
44
- exports.V1BadgeSetCount$inboundSchema = z.object({
45
- duplicateSets: z.number().int(),
46
- uniqueSets: z.number().int(),
47
- });
48
- function v1BadgeSetCountFromJSON(jsonString) {
49
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1BadgeSetCount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1BadgeSetCount' from JSON`);
50
- }
51
- //# sourceMappingURL=v1badgesetcount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgesetcount.js","sourceRoot":"","sources":["../../src/models/components/v1badgesetcount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBH,0DAQC;AA5BD,0CAA4B;AAC5B,qDAAiD;AASjD,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CAC7B,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
@@ -1,13 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { V1BadgeTypeCount } from "./v1badgetypecount.js";
5
- export type V1BadgeSetCounts = {
6
- duplicate: V1BadgeTypeCount;
7
- total: V1BadgeTypeCount;
8
- unique: V1BadgeTypeCount;
9
- };
10
- /** @internal */
11
- export declare const V1BadgeSetCounts$inboundSchema: z.ZodType<V1BadgeSetCounts, z.ZodTypeDef, unknown>;
12
- export declare function v1BadgeSetCountsFromJSON(jsonString: string): SafeParseResult<V1BadgeSetCounts, SDKValidationError>;
13
- //# sourceMappingURL=v1badgesetcounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgesetcounts.d.ts","sourceRoot":"","sources":["../../src/models/components/v1badgesetcounts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAEjB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,gBAAgB,CAAC;IAC5B,KAAK,EAAE,gBAAgB,CAAC;IACxB,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.V1BadgeSetCounts$inboundSchema = void 0;
40
- exports.v1BadgeSetCountsFromJSON = v1BadgeSetCountsFromJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const schemas_js_1 = require("../../lib/schemas.js");
43
- const v1badgetypecount_js_1 = require("./v1badgetypecount.js");
44
- /** @internal */
45
- exports.V1BadgeSetCounts$inboundSchema = z.object({
46
- duplicate: v1badgetypecount_js_1.V1BadgeTypeCount$inboundSchema,
47
- total: v1badgetypecount_js_1.V1BadgeTypeCount$inboundSchema,
48
- unique: v1badgetypecount_js_1.V1BadgeTypeCount$inboundSchema,
49
- });
50
- function v1BadgeSetCountsFromJSON(jsonString) {
51
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1BadgeSetCounts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1BadgeSetCounts' from JSON`);
52
- }
53
- //# sourceMappingURL=v1badgesetcounts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgesetcounts.js","sourceRoot":"","sources":["../../src/models/components/v1badgesetcounts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,4DAQC;AAlCD,0CAA4B;AAC5B,qDAAiD;AAGjD,+DAG+B;AAQ/B,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,oDAA8B;IACzC,KAAK,EAAE,oDAA8B;IACrC,MAAM,EAAE,oDAA8B;CACvC,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
@@ -1,12 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- export type V1BadgeTypeCount = {
5
- foil: number;
6
- normal: number;
7
- total: number;
8
- };
9
- /** @internal */
10
- export declare const V1BadgeTypeCount$inboundSchema: z.ZodType<V1BadgeTypeCount, z.ZodTypeDef, unknown>;
11
- export declare function v1BadgeTypeCountFromJSON(jsonString: string): SafeParseResult<V1BadgeTypeCount, SDKValidationError>;
12
- //# sourceMappingURL=v1badgetypecount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgetypecount.d.ts","sourceRoot":"","sources":["../../src/models/components/v1badgetypecount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1badgetypecount.js","sourceRoot":"","sources":["../../src/models/components/v1badgetypecount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBH,4DAQC;AA9BD,0CAA4B;AAC5B,qDAAiD;AAUjD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACxB,CAAC,CAAC;AAEH,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
@@ -1,19 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import * as components from "../components/index.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- export type BadgeListBadgePricesResponse = {
6
- httpMeta: components.HTTPMetadata;
7
- /**
8
- * OK
9
- */
10
- v1BadgeListBadgePricesResponseBody?: components.V1BadgeListBadgePricesResponseBody | undefined;
11
- /**
12
- * Error
13
- */
14
- errorModel?: components.ErrorModel | undefined;
15
- };
16
- /** @internal */
17
- export declare const BadgeListBadgePricesResponse$inboundSchema: z.ZodType<BadgeListBadgePricesResponse, z.ZodTypeDef, unknown>;
18
- export declare function badgeListBadgePricesResponseFromJSON(jsonString: string): SafeParseResult<BadgeListBadgePricesResponse, SDKValidationError>;
19
- //# sourceMappingURL=badgelistbadgeprices.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"badgelistbadgeprices.d.ts","sourceRoot":"","sources":["../../src/models/operations/badgelistbadgeprices.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,4BAA4B,GAAG;IACzC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,kCAAkC,CAAC,EAC/B,UAAU,CAAC,kCAAkC,GAC7C,SAAS,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,GAAG,SAAS,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"badgelistbadgeprices.js","sourceRoot":"","sources":["../../src/models/operations/badgelistbadgeprices.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCH,oFAQC;AA/CD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAiBrD,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,kCAAkC,EAAE,UAAU;SAC3C,gDAAgD,CAAC,QAAQ,EAAE;IAC9D,UAAU,EAAE,UAAU,CAAC,wBAAwB,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,oCAAoC,EAAE,oCAAoC;QAC1E,YAAY,EAAE,YAAY;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -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 | undefined;
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
- }