@steamsets/client-ts 0.30.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.
- package/README.md +5 -5
- package/examples/package-lock.json +1 -1
- package/funcs/accountAccountListInventorySets.d.ts +18 -0
- package/funcs/accountAccountListInventorySets.d.ts.map +1 -0
- package/funcs/{badgesListPrices.js → accountAccountListInventorySets.js} +18 -24
- package/funcs/accountAccountListInventorySets.js.map +1 -0
- package/funcs/accountAccountRefreshInventory.d.ts +18 -0
- package/funcs/accountAccountRefreshInventory.d.ts.map +1 -0
- package/funcs/accountAccountRefreshInventory.js +125 -0
- package/funcs/accountAccountRefreshInventory.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/card.d.ts +17 -0
- package/models/components/card.d.ts.map +1 -0
- package/models/components/{v1badgelevel.js → card.js} +8 -8
- package/models/components/card.js.map +1 -0
- package/models/components/index.d.ts +4 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -9
- package/models/components/index.js.map +1 -1
- package/models/components/inventoryset.d.ts +30 -0
- package/models/components/inventoryset.d.ts.map +1 -0
- package/models/components/{v1badgetypecount.js → inventoryset.js} +12 -9
- package/models/components/inventoryset.js.map +1 -0
- package/models/components/resource.d.ts +1 -0
- package/models/components/resource.d.ts.map +1 -1
- package/models/components/resource.js +1 -0
- package/models/components/resource.js.map +1 -1
- package/models/components/v1accountlistinventorysetsresponsebody.d.ts +26 -0
- package/models/components/v1accountlistinventorysetsresponsebody.d.ts.map +1 -0
- package/models/components/{v1badgelistbadgepricesresponsebody.js → v1accountlistinventorysetsresponsebody.js} +10 -13
- package/models/components/v1accountlistinventorysetsresponsebody.js.map +1 -0
- package/models/components/v1accountrefreshinventoryresponsebody.d.ts +17 -0
- package/models/components/v1accountrefreshinventoryresponsebody.d.ts.map +1 -0
- package/models/components/{errormodel.js → v1accountrefreshinventoryresponsebody.js} +7 -13
- package/models/components/v1accountrefreshinventoryresponsebody.js.map +1 -0
- package/models/operations/accountlistinventorysets.d.ts +15 -0
- package/models/operations/accountlistinventorysets.d.ts.map +1 -0
- package/models/operations/{badgelistbadgeprices.js → accountlistinventorysets.js} +9 -11
- package/models/operations/accountlistinventorysets.js.map +1 -0
- package/models/operations/accountrefreshinventory.d.ts +15 -0
- package/models/operations/accountrefreshinventory.d.ts.map +1 -0
- package/models/operations/accountrefreshinventory.js +59 -0
- package/models/operations/accountrefreshinventory.js.map +1 -0
- package/models/operations/index.d.ts +2 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/account.d.ts +14 -0
- package/sdk/account.d.ts.map +1 -1
- package/sdk/account.js +20 -0
- package/sdk/account.js.map +1 -1
- package/sdk/badges.d.ts +0 -11
- package/sdk/badges.d.ts.map +1 -1
- package/sdk/badges.js +1 -13
- package/sdk/badges.js.map +1 -1
- package/src/funcs/{badgesListPrices.ts → accountAccountListInventorySets.ts} +24 -29
- package/src/funcs/accountAccountRefreshInventory.ts +169 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/card.ts +36 -0
- package/src/models/components/index.ts +4 -9
- package/src/models/components/inventoryset.ts +55 -0
- package/src/models/components/resource.ts +1 -0
- package/src/models/components/v1accountlistinventorysetsresponsebody.ts +56 -0
- package/src/models/components/v1accountrefreshinventoryresponsebody.ts +45 -0
- package/src/models/operations/accountlistinventorysets.ts +47 -0
- package/src/models/operations/accountrefreshinventory.ts +47 -0
- package/src/models/operations/index.ts +2 -1
- package/src/sdk/account.ts +32 -0
- package/src/sdk/badges.ts +0 -23
- package/funcs/badgesListPrices.d.ts +0 -24
- package/funcs/badgesListPrices.d.ts.map +0 -1
- package/funcs/badgesListPrices.js.map +0 -1
- package/models/components/errormodel.d.ts +0 -38
- package/models/components/errormodel.d.ts.map +0 -1
- package/models/components/errormodel.js.map +0 -1
- package/models/components/v1badgeapp.d.ts +0 -15
- package/models/components/v1badgeapp.d.ts.map +0 -1
- package/models/components/v1badgeapp.js +0 -55
- package/models/components/v1badgeapp.js.map +0 -1
- package/models/components/v1badgelevel.d.ts +0 -12
- package/models/components/v1badgelevel.d.ts.map +0 -1
- package/models/components/v1badgelevel.js.map +0 -1
- package/models/components/v1badgelistbadgepricesrequestbody.d.ts +0 -8
- package/models/components/v1badgelistbadgepricesrequestbody.d.ts.map +0 -1
- package/models/components/v1badgelistbadgepricesrequestbody.js +0 -47
- package/models/components/v1badgelistbadgepricesrequestbody.js.map +0 -1
- package/models/components/v1badgelistbadgepricesresponsebody.d.ts +0 -31
- package/models/components/v1badgelistbadgepricesresponsebody.d.ts.map +0 -1
- package/models/components/v1badgelistbadgepricesresponsebody.js.map +0 -1
- package/models/components/v1badgeset.d.ts +0 -27
- package/models/components/v1badgeset.d.ts.map +0 -1
- package/models/components/v1badgeset.js +0 -65
- package/models/components/v1badgeset.js.map +0 -1
- package/models/components/v1badgesetcount.d.ts +0 -11
- package/models/components/v1badgesetcount.d.ts.map +0 -1
- package/models/components/v1badgesetcount.js +0 -51
- package/models/components/v1badgesetcount.js.map +0 -1
- package/models/components/v1badgesetcounts.d.ts +0 -13
- package/models/components/v1badgesetcounts.d.ts.map +0 -1
- package/models/components/v1badgesetcounts.js +0 -53
- package/models/components/v1badgesetcounts.js.map +0 -1
- package/models/components/v1badgetypecount.d.ts +0 -12
- package/models/components/v1badgetypecount.d.ts.map +0 -1
- package/models/components/v1badgetypecount.js.map +0 -1
- package/models/operations/badgelistbadgeprices.d.ts +0 -19
- package/models/operations/badgelistbadgeprices.d.ts.map +0 -1
- package/models/operations/badgelistbadgeprices.js.map +0 -1
- package/src/models/components/errormodel.ts +0 -70
- package/src/models/components/v1badgeapp.ts +0 -41
- package/src/models/components/v1badgelevel.ts +0 -35
- package/src/models/components/v1badgelistbadgepricesrequestbody.ts +0 -27
- package/src/models/components/v1badgelistbadgepricesresponsebody.ts +0 -63
- package/src/models/components/v1badgeset.ts +0 -62
- package/src/models/components/v1badgesetcount.ts +0 -33
- package/src/models/components/v1badgesetcounts.ts +0 -39
- package/src/models/components/v1badgetypecount.ts +0 -35
- package/src/models/operations/badgelistbadgeprices.ts +0 -52
|
@@ -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;
|
|
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
|
-
}
|