@steamsets/client-ts 0.28.0 → 0.28.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.
- package/README.md +2 -5
- package/examples/package-lock.json +1 -1
- 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/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/badge.d.ts +2 -8
- package/models/components/badge.d.ts.map +1 -1
- package/models/components/badge.js +2 -8
- package/models/components/badge.js.map +1 -1
- package/models/components/developerapp.d.ts +12 -2
- package/models/components/developerapp.d.ts.map +1 -1
- package/models/components/developerapp.js +4 -0
- package/models/components/developerapp.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/models/components/badge.ts +4 -16
- package/src/models/components/developerapp.ts +16 -2
- package/src/models/errors/index.ts +1 -0
package/README.md
CHANGED
|
@@ -407,7 +407,7 @@ httpClient.addHook("requestError", (error, request) => {
|
|
|
407
407
|
console.groupEnd();
|
|
408
408
|
});
|
|
409
409
|
|
|
410
|
-
const sdk = new SteamSets({ httpClient });
|
|
410
|
+
const sdk = new SteamSets({ httpClient: httpClient });
|
|
411
411
|
```
|
|
412
412
|
<!-- End Custom HTTP Client [http-client] -->
|
|
413
413
|
|
|
@@ -476,10 +476,7 @@ bun add @steamsets/client-ts
|
|
|
476
476
|
### Yarn
|
|
477
477
|
|
|
478
478
|
```bash
|
|
479
|
-
yarn add @steamsets/client-ts
|
|
480
|
-
|
|
481
|
-
# Note that Yarn does not install peer dependencies automatically. You will need
|
|
482
|
-
# to install zod as shown above.
|
|
479
|
+
yarn add @steamsets/client-ts
|
|
483
480
|
```
|
|
484
481
|
<!-- End SDK Installation [installation] -->
|
|
485
482
|
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.0.0";
|
|
34
|
-
readonly sdkVersion: "0.28.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.28.
|
|
34
|
+
readonly sdkVersion: "0.28.1";
|
|
35
|
+
readonly genVersion: "2.716.14";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.28.1 2.716.14 1.0.0 @steamsets/client-ts";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ function serverURLFromOptions(options) {
|
|
|
29
29
|
exports.SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "0.28.
|
|
33
|
-
genVersion: "2.
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 0.28.
|
|
32
|
+
sdkVersion: "0.28.1",
|
|
33
|
+
genVersion: "2.716.14",
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 0.28.1 2.716.14 1.0.0 @steamsets/client-ts",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAuCH,oDAeC;AAjDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,2BAA2B;IAC3B,uBAAuB;CACf,CAAC;AA0BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,M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E,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,UAAU;IACtB,SAAS,EACP,qEAAqE;CAC/D,CAAC"}
|
package/lib/url.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.pathToFunc = pathToFunc;
|
|
7
7
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
8
8
|
function pathToFunc(pathPattern, options) {
|
|
9
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
9
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
10
10
|
return function buildURLPath(params = {}) {
|
|
11
11
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
12
12
|
if (!hasOwn.call(params, placeholder)) {
|
package/lib/url.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/lib/url.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,gCAwBC;AA5BD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,SAAgB,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"url.js","sourceRoot":"","sources":["../src/lib/url.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAMH,gCAwBC;AA5BD,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;AAI/C,SAAgB,UAAU,CACxB,WAAmB,EACnB,OAA+C;IAE/C,MAAM,OAAO,GAAG,oCAAoC,CAAC;IAErD,OAAO,SAAS,YAAY,CAAC,SAAkC,EAAE;QAC/D,OAAO,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,WAAW;YAC1D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,EAAE,CAAC;gBACtC,MAAM,IAAI,KAAK,CAAC,cAAc,WAAW,eAAe,CAAC,CAAC;YAC5D,CAAC;YAED,MAAM,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;YAClC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3D,MAAM,IAAI,KAAK,CACb,cAAc,WAAW,8BAA8B,CACxD,CAAC;YACJ,CAAC;YAED,OAAO,OAAO,EAAE,YAAY,KAAK,SAAS;gBACxC,CAAC,CAAC,kBAAkB,CAAC,GAAG,KAAK,EAAE,CAAC;gBAChC,CAAC,CAAC,GAAG,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -8,22 +8,19 @@ export type Badge = {
|
|
|
8
8
|
appImage: string;
|
|
9
9
|
appName: string;
|
|
10
10
|
bookmarks: number;
|
|
11
|
-
cardCount: number;
|
|
12
11
|
colors: Array<string> | null;
|
|
13
12
|
designs: Array<string> | null;
|
|
14
13
|
firstCompletion: number;
|
|
15
14
|
highestLevel: number;
|
|
16
|
-
highestPrice: number;
|
|
17
15
|
id: string;
|
|
18
16
|
image: string;
|
|
19
17
|
isEvent: boolean;
|
|
20
18
|
isFoil: boolean;
|
|
21
19
|
isSale: boolean;
|
|
20
|
+
lastChangedAt: number;
|
|
22
21
|
lastCompletion: number;
|
|
23
22
|
level: number;
|
|
24
|
-
lowestPrice: number;
|
|
25
23
|
name: string;
|
|
26
|
-
price: number;
|
|
27
24
|
scarcity: number;
|
|
28
25
|
steamId: number;
|
|
29
26
|
xp: number;
|
|
@@ -37,22 +34,19 @@ export type Badge$Outbound = {
|
|
|
37
34
|
appImage: string;
|
|
38
35
|
appName: string;
|
|
39
36
|
bookmarks: number;
|
|
40
|
-
cardCount: number;
|
|
41
37
|
colors: Array<string> | null;
|
|
42
38
|
designs: Array<string> | null;
|
|
43
39
|
firstCompletion: number;
|
|
44
40
|
highestLevel: number;
|
|
45
|
-
highestPrice: number;
|
|
46
41
|
id: string;
|
|
47
42
|
image: string;
|
|
48
43
|
isEvent: boolean;
|
|
49
44
|
isFoil: boolean;
|
|
50
45
|
isSale: boolean;
|
|
46
|
+
lastChangedAt: number;
|
|
51
47
|
lastCompletion: number;
|
|
52
48
|
level: number;
|
|
53
|
-
lowestPrice: number;
|
|
54
49
|
name: string;
|
|
55
|
-
price: number;
|
|
56
50
|
scarcity: number;
|
|
57
51
|
steamId: number;
|
|
58
52
|
xp: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/models/components/badge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,KAAK,GAAG;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../src/models/components/badge.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,M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M,CAAC,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAC1C,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,KAAK,CA2BL,CAAC;AAEH;;;GAGG;AACH,yBAAiB,MAAM,CAAC;IACtB,qDAAqD;IAC9C,MAAM,aAAa,yCAAsB,CAAC;IACjD,sDAAsD;IAC/C,MAAM,cAAc,gDAAuB,CAAC;IACnD,gDAAgD;IAChD,KAAY,QAAQ,GAAG,cAAc,CAAC;CACvC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEhD;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAM5C"}
|
|
@@ -51,22 +51,19 @@ exports.Badge$inboundSchema = z
|
|
|
51
51
|
appImage: z.string(),
|
|
52
52
|
appName: z.string(),
|
|
53
53
|
bookmarks: z.number().int(),
|
|
54
|
-
cardCount: z.number().int(),
|
|
55
54
|
colors: z.nullable(z.array(z.string())),
|
|
56
55
|
designs: z.nullable(z.array(z.string())),
|
|
57
56
|
firstCompletion: z.number().int(),
|
|
58
57
|
highestLevel: z.number().int(),
|
|
59
|
-
highestPrice: z.number().int(),
|
|
60
58
|
id: z.string(),
|
|
61
59
|
image: z.string(),
|
|
62
60
|
isEvent: z.boolean(),
|
|
63
61
|
isFoil: z.boolean(),
|
|
64
62
|
isSale: z.boolean(),
|
|
63
|
+
lastChangedAt: z.number().int(),
|
|
65
64
|
lastCompletion: z.number().int(),
|
|
66
65
|
level: z.number().int(),
|
|
67
|
-
lowestPrice: z.number().int(),
|
|
68
66
|
name: z.string(),
|
|
69
|
-
price: z.number().int(),
|
|
70
67
|
scarcity: z.number().int(),
|
|
71
68
|
steamId: z.number().int(),
|
|
72
69
|
xp: z.number(),
|
|
@@ -82,22 +79,19 @@ exports.Badge$outboundSchema = z.object({
|
|
|
82
79
|
appImage: z.string(),
|
|
83
80
|
appName: z.string(),
|
|
84
81
|
bookmarks: z.number().int(),
|
|
85
|
-
cardCount: z.number().int(),
|
|
86
82
|
colors: z.nullable(z.array(z.string())),
|
|
87
83
|
designs: z.nullable(z.array(z.string())),
|
|
88
84
|
firstCompletion: z.number().int(),
|
|
89
85
|
highestLevel: z.number().int(),
|
|
90
|
-
highestPrice: z.number().int(),
|
|
91
86
|
id: z.string(),
|
|
92
87
|
image: z.string(),
|
|
93
88
|
isEvent: z.boolean(),
|
|
94
89
|
isFoil: z.boolean(),
|
|
95
90
|
isSale: z.boolean(),
|
|
91
|
+
lastChangedAt: z.number().int(),
|
|
96
92
|
lastCompletion: z.number().int(),
|
|
97
93
|
level: z.number().int(),
|
|
98
|
-
lowestPrice: z.number().int(),
|
|
99
94
|
name: z.string(),
|
|
100
|
-
price: z.number().int(),
|
|
101
95
|
scarcity: z.number().int(),
|
|
102
96
|
steamId: z.number().int(),
|
|
103
97
|
xp: z.number(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../../src/models/components/badge.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;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|
export type DeveloperApp = {
|
|
18
18
|
/**
|
|
19
|
-
* The api key
|
|
19
|
+
* The api key (deprecated, always null for security)
|
|
20
20
|
*
|
|
21
21
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
22
22
|
*/
|
|
23
23
|
apiKey: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* When the app was created
|
|
26
|
+
*/
|
|
27
|
+
createdAt: Date;
|
|
24
28
|
/**
|
|
25
29
|
* The description of the developer app
|
|
26
30
|
*/
|
|
@@ -30,9 +34,13 @@ export type DeveloperApp = {
|
|
|
30
34
|
*/
|
|
31
35
|
environment: DeveloperAppEnvironment;
|
|
32
36
|
/**
|
|
33
|
-
* The id of the developer app
|
|
37
|
+
* The id of the developer app (same as keyId for backwards compatibility)
|
|
34
38
|
*/
|
|
35
39
|
id: string;
|
|
40
|
+
/**
|
|
41
|
+
* The Unkey key ID
|
|
42
|
+
*/
|
|
43
|
+
keyId: string;
|
|
36
44
|
/**
|
|
37
45
|
* The name of the developer app
|
|
38
46
|
*/
|
|
@@ -65,9 +73,11 @@ export declare const DeveloperApp$inboundSchema: z.ZodType<DeveloperApp, z.ZodTy
|
|
|
65
73
|
/** @internal */
|
|
66
74
|
export type DeveloperApp$Outbound = {
|
|
67
75
|
apiKey: string | null;
|
|
76
|
+
createdAt: string;
|
|
68
77
|
description: string;
|
|
69
78
|
environment: string;
|
|
70
79
|
id: string;
|
|
80
|
+
keyId: string;
|
|
71
81
|
name: string;
|
|
72
82
|
};
|
|
73
83
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"developerapp.d.ts","sourceRoot":"","sources":["../../src/models/components/developerapp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;CAI1B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAC9C,OAAO,uBAAuB,CAC/B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,aAAa,CACjE,OAAO,uBAAuB,CACS,CAAC;AAE1C,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,aAAa,CAClE,OAAO,uBAAuB,CACS,CAAC;AAE1C;;;GAGG;AACH,yBAAiB,wBAAwB,CAAC;IACxC,uEAAuE;IAChE,MAAM,aAAa;;;;MAAwC,CAAC;IACnE,wEAAwE;IACjE,MAAM,cAAc;;;;MAAyC,CAAC;CACtE;AAED,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"developerapp.d.ts","sourceRoot":"","sources":["../../src/models/components/developerapp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,uBAAu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A2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CASZ,CAAC;AAEH;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa,gDAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc,8DAA8B,CAAC;IAC1D,uDAAuD;IACvD,KAAY,QAAQ,GAAG,qBAAqB,CAAC;CAC9C;AAED,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;AAED,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -67,17 +67,21 @@ var DeveloperAppEnvironment$;
|
|
|
67
67
|
/** @internal */
|
|
68
68
|
exports.DeveloperApp$inboundSchema = z.object({
|
|
69
69
|
apiKey: z.nullable(z.string()),
|
|
70
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
70
71
|
description: z.string(),
|
|
71
72
|
environment: exports.DeveloperAppEnvironment$inboundSchema,
|
|
72
73
|
id: z.string(),
|
|
74
|
+
keyId: z.string(),
|
|
73
75
|
name: z.string(),
|
|
74
76
|
});
|
|
75
77
|
/** @internal */
|
|
76
78
|
exports.DeveloperApp$outboundSchema = z.object({
|
|
77
79
|
apiKey: z.nullable(z.string()),
|
|
80
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
78
81
|
description: z.string(),
|
|
79
82
|
environment: exports.DeveloperAppEnvironment$outboundSchema,
|
|
80
83
|
id: z.string(),
|
|
84
|
+
keyId: z.string(),
|
|
81
85
|
name: z.string(),
|
|
82
86
|
});
|
|
83
87
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"developerapp.js","sourceRoot":"","sources":["../../src/models/components/developerapp.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;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QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9B,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACnD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,8CAAsC;IACnD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,aAAa,CAO7B;AAPD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAG5D,CAAC,EAPgB,aAAa,6BAAb,aAAa,QAO7B;AAED,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
package/models/errors/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":"AAIA,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
|
package/models/errors/index.js
CHANGED
|
@@ -22,4 +22,5 @@ __exportStar(require("./httpclienterrors.js"), exports);
|
|
|
22
22
|
__exportStar(require("./responsevalidationerror.js"), exports);
|
|
23
23
|
__exportStar(require("./sdkerror.js"), exports);
|
|
24
24
|
__exportStar(require("./sdkvalidationerror.js"), exports);
|
|
25
|
+
__exportStar(require("./steamsetserror.js"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,gDAA8B;AAC9B,0DAAwC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/errors/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,kDAAgC;AAChC,wDAAsC;AACtC,+DAA6C;AAC7C,gDAA8B;AAC9B,0DAAwC;AACxC,sDAAoC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -59,8 +59,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "1.0.0",
|
|
62
|
-
sdkVersion: "0.28.
|
|
63
|
-
genVersion: "2.
|
|
62
|
+
sdkVersion: "0.28.1",
|
|
63
|
+
genVersion: "2.716.14",
|
|
64
64
|
userAgent:
|
|
65
|
-
"speakeasy-sdk/typescript 0.28.
|
|
65
|
+
"speakeasy-sdk/typescript 0.28.1 2.716.14 1.0.0 @steamsets/client-ts",
|
|
66
66
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
@@ -20,22 +20,19 @@ export type Badge = {
|
|
|
20
20
|
appImage: string;
|
|
21
21
|
appName: string;
|
|
22
22
|
bookmarks: number;
|
|
23
|
-
cardCount: number;
|
|
24
23
|
colors: Array<string> | null;
|
|
25
24
|
designs: Array<string> | null;
|
|
26
25
|
firstCompletion: number;
|
|
27
26
|
highestLevel: number;
|
|
28
|
-
highestPrice: number;
|
|
29
27
|
id: string;
|
|
30
28
|
image: string;
|
|
31
29
|
isEvent: boolean;
|
|
32
30
|
isFoil: boolean;
|
|
33
31
|
isSale: boolean;
|
|
32
|
+
lastChangedAt: number;
|
|
34
33
|
lastCompletion: number;
|
|
35
34
|
level: number;
|
|
36
|
-
lowestPrice: number;
|
|
37
35
|
name: string;
|
|
38
|
-
price: number;
|
|
39
36
|
scarcity: number;
|
|
40
37
|
steamId: number;
|
|
41
38
|
xp: number;
|
|
@@ -49,22 +46,19 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
|
|
|
49
46
|
appImage: z.string(),
|
|
50
47
|
appName: z.string(),
|
|
51
48
|
bookmarks: z.number().int(),
|
|
52
|
-
cardCount: z.number().int(),
|
|
53
49
|
colors: z.nullable(z.array(z.string())),
|
|
54
50
|
designs: z.nullable(z.array(z.string())),
|
|
55
51
|
firstCompletion: z.number().int(),
|
|
56
52
|
highestLevel: z.number().int(),
|
|
57
|
-
highestPrice: z.number().int(),
|
|
58
53
|
id: z.string(),
|
|
59
54
|
image: z.string(),
|
|
60
55
|
isEvent: z.boolean(),
|
|
61
56
|
isFoil: z.boolean(),
|
|
62
57
|
isSale: z.boolean(),
|
|
58
|
+
lastChangedAt: z.number().int(),
|
|
63
59
|
lastCompletion: z.number().int(),
|
|
64
60
|
level: z.number().int(),
|
|
65
|
-
lowestPrice: z.number().int(),
|
|
66
61
|
name: z.string(),
|
|
67
|
-
price: z.number().int(),
|
|
68
62
|
scarcity: z.number().int(),
|
|
69
63
|
steamId: z.number().int(),
|
|
70
64
|
xp: z.number(),
|
|
@@ -81,22 +75,19 @@ export type Badge$Outbound = {
|
|
|
81
75
|
appImage: string;
|
|
82
76
|
appName: string;
|
|
83
77
|
bookmarks: number;
|
|
84
|
-
cardCount: number;
|
|
85
78
|
colors: Array<string> | null;
|
|
86
79
|
designs: Array<string> | null;
|
|
87
80
|
firstCompletion: number;
|
|
88
81
|
highestLevel: number;
|
|
89
|
-
highestPrice: number;
|
|
90
82
|
id: string;
|
|
91
83
|
image: string;
|
|
92
84
|
isEvent: boolean;
|
|
93
85
|
isFoil: boolean;
|
|
94
86
|
isSale: boolean;
|
|
87
|
+
lastChangedAt: number;
|
|
95
88
|
lastCompletion: number;
|
|
96
89
|
level: number;
|
|
97
|
-
lowestPrice: number;
|
|
98
90
|
name: string;
|
|
99
|
-
price: number;
|
|
100
91
|
scarcity: number;
|
|
101
92
|
steamId: number;
|
|
102
93
|
xp: number;
|
|
@@ -113,22 +104,19 @@ export const Badge$outboundSchema: z.ZodType<
|
|
|
113
104
|
appImage: z.string(),
|
|
114
105
|
appName: z.string(),
|
|
115
106
|
bookmarks: z.number().int(),
|
|
116
|
-
cardCount: z.number().int(),
|
|
117
107
|
colors: z.nullable(z.array(z.string())),
|
|
118
108
|
designs: z.nullable(z.array(z.string())),
|
|
119
109
|
firstCompletion: z.number().int(),
|
|
120
110
|
highestLevel: z.number().int(),
|
|
121
|
-
highestPrice: z.number().int(),
|
|
122
111
|
id: z.string(),
|
|
123
112
|
image: z.string(),
|
|
124
113
|
isEvent: z.boolean(),
|
|
125
114
|
isFoil: z.boolean(),
|
|
126
115
|
isSale: z.boolean(),
|
|
116
|
+
lastChangedAt: z.number().int(),
|
|
127
117
|
lastCompletion: z.number().int(),
|
|
128
118
|
level: z.number().int(),
|
|
129
|
-
lowestPrice: z.number().int(),
|
|
130
119
|
name: z.string(),
|
|
131
|
-
price: z.number().int(),
|
|
132
120
|
scarcity: z.number().int(),
|
|
133
121
|
steamId: z.number().int(),
|
|
134
122
|
xp: z.number(),
|
|
@@ -25,11 +25,15 @@ export type DeveloperAppEnvironment = ClosedEnum<
|
|
|
25
25
|
|
|
26
26
|
export type DeveloperApp = {
|
|
27
27
|
/**
|
|
28
|
-
* The api key
|
|
28
|
+
* The api key (deprecated, always null for security)
|
|
29
29
|
*
|
|
30
30
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
31
31
|
*/
|
|
32
32
|
apiKey: string | null;
|
|
33
|
+
/**
|
|
34
|
+
* When the app was created
|
|
35
|
+
*/
|
|
36
|
+
createdAt: Date;
|
|
33
37
|
/**
|
|
34
38
|
* The description of the developer app
|
|
35
39
|
*/
|
|
@@ -39,9 +43,13 @@ export type DeveloperApp = {
|
|
|
39
43
|
*/
|
|
40
44
|
environment: DeveloperAppEnvironment;
|
|
41
45
|
/**
|
|
42
|
-
* The id of the developer app
|
|
46
|
+
* The id of the developer app (same as keyId for backwards compatibility)
|
|
43
47
|
*/
|
|
44
48
|
id: string;
|
|
49
|
+
/**
|
|
50
|
+
* The Unkey key ID
|
|
51
|
+
*/
|
|
52
|
+
keyId: string;
|
|
45
53
|
/**
|
|
46
54
|
* The name of the developer app
|
|
47
55
|
*/
|
|
@@ -76,18 +84,22 @@ export const DeveloperApp$inboundSchema: z.ZodType<
|
|
|
76
84
|
unknown
|
|
77
85
|
> = z.object({
|
|
78
86
|
apiKey: z.nullable(z.string()),
|
|
87
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
79
88
|
description: z.string(),
|
|
80
89
|
environment: DeveloperAppEnvironment$inboundSchema,
|
|
81
90
|
id: z.string(),
|
|
91
|
+
keyId: z.string(),
|
|
82
92
|
name: z.string(),
|
|
83
93
|
});
|
|
84
94
|
|
|
85
95
|
/** @internal */
|
|
86
96
|
export type DeveloperApp$Outbound = {
|
|
87
97
|
apiKey: string | null;
|
|
98
|
+
createdAt: string;
|
|
88
99
|
description: string;
|
|
89
100
|
environment: string;
|
|
90
101
|
id: string;
|
|
102
|
+
keyId: string;
|
|
91
103
|
name: string;
|
|
92
104
|
};
|
|
93
105
|
|
|
@@ -98,9 +110,11 @@ export const DeveloperApp$outboundSchema: z.ZodType<
|
|
|
98
110
|
DeveloperApp
|
|
99
111
|
> = z.object({
|
|
100
112
|
apiKey: z.nullable(z.string()),
|
|
113
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
101
114
|
description: z.string(),
|
|
102
115
|
environment: DeveloperAppEnvironment$outboundSchema,
|
|
103
116
|
id: z.string(),
|
|
117
|
+
keyId: z.string(),
|
|
104
118
|
name: z.string(),
|
|
105
119
|
});
|
|
106
120
|
|