@steamsets/client-ts 0.27.1 → 0.27.3
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 +0 -2
- package/docs/sdks/badge/README.md +0 -73
- package/funcs/locationGet.js +1 -0
- package/funcs/locationGet.js.map +1 -1
- package/funcs/staffList.js +1 -0
- package/funcs/staffList.js.map +1 -1
- package/funcs/statsGet.js +1 -0
- package/funcs/statsGet.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/badge.js +6 -6
- package/models/components/badge.js.map +1 -1
- package/models/components/badgevaluefilter.d.ts +57 -0
- package/models/components/badgevaluefilter.d.ts.map +1 -0
- package/models/components/badgevaluefilter.js +80 -0
- package/models/components/badgevaluefilter.js.map +1 -0
- package/models/components/index.d.ts +4 -2
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -2
- package/models/components/index.js.map +1 -1
- package/models/components/range.d.ts +37 -0
- package/models/components/range.d.ts.map +1 -0
- package/models/components/range.js +62 -0
- package/models/components/range.js.map +1 -0
- package/models/components/v1accountlistappsrequestbody.d.ts +3 -0
- package/models/components/v1accountlistappsrequestbody.d.ts.map +1 -1
- package/models/components/v1accountlistappsrequestbody.js +3 -0
- package/models/components/v1accountlistappsrequestbody.js.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.d.ts +12 -0
- package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
- package/models/components/v1accountlistbadgesrequestbody.js +6 -0
- package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
- package/models/components/v1appfilters.d.ts +45 -0
- package/models/components/v1appfilters.d.ts.map +1 -0
- package/models/components/v1appfilters.js +66 -0
- package/models/components/v1appfilters.js.map +1 -0
- package/models/components/v1badgefilters.d.ts +47 -0
- package/models/components/v1badgefilters.d.ts.map +1 -0
- package/models/components/v1badgefilters.js +68 -0
- package/models/components/v1badgefilters.js.map +1 -0
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/locationgetlocations.d.ts +6 -0
- package/models/operations/locationgetlocations.d.ts.map +1 -1
- package/models/operations/locationgetlocations.js +4 -0
- package/models/operations/locationgetlocations.js.map +1 -1
- package/models/operations/staffliststaff.d.ts +6 -0
- package/models/operations/staffliststaff.d.ts.map +1 -1
- package/models/operations/staffliststaff.js +4 -0
- package/models/operations/staffliststaff.js.map +1 -1
- package/models/operations/statsgetstats.d.ts +6 -0
- package/models/operations/statsgetstats.d.ts.map +1 -1
- package/models/operations/statsgetstats.js +4 -0
- package/models/operations/statsgetstats.js.map +1 -1
- package/package.json +1 -1
- package/sdk/badge.d.ts +0 -1
- package/sdk/badge.d.ts.map +1 -1
- package/sdk/badge.js +0 -4
- package/sdk/badge.js.map +1 -1
- package/src/funcs/locationGet.ts +1 -0
- package/src/funcs/staffList.ts +1 -0
- package/src/funcs/statsGet.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/badge.ts +6 -6
- package/src/models/components/badgevaluefilter.ts +98 -0
- package/src/models/components/index.ts +4 -2
- package/src/models/components/range.ts +69 -0
- package/src/models/components/v1accountlistappsrequestbody.ts +10 -0
- package/src/models/components/v1accountlistbadgesrequestbody.ts +26 -0
- package/src/models/components/v1appfilters.ts +89 -0
- package/src/models/components/v1badgefilters.ts +93 -0
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/locationgetlocations.ts +6 -0
- package/src/models/operations/staffliststaff.ts +6 -0
- package/src/models/operations/statsgetstats.ts +6 -0
- package/src/sdk/badge.ts +0 -12
- package/funcs/badgeSuggestSearch.d.ts +0 -13
- package/funcs/badgeSuggestSearch.d.ts.map +0 -1
- package/funcs/badgeSuggestSearch.js +0 -120
- package/funcs/badgeSuggestSearch.js.map +0 -1
- package/models/components/v1badgesuggestsearchbody.d.ts +0 -37
- package/models/components/v1badgesuggestsearchbody.d.ts.map +0 -1
- package/models/components/v1badgesuggestsearchbody.js +0 -70
- package/models/components/v1badgesuggestsearchbody.js.map +0 -1
- package/models/components/v1badgesuggestsearchrequestbody.d.ts +0 -32
- package/models/components/v1badgesuggestsearchrequestbody.d.ts.map +0 -1
- package/models/components/v1badgesuggestsearchrequestbody.js +0 -59
- package/models/components/v1badgesuggestsearchrequestbody.js.map +0 -1
- package/models/operations/badgesuggestsearch.d.ts +0 -35
- package/models/operations/badgesuggestsearch.d.ts.map +0 -1
- package/models/operations/badgesuggestsearch.js +0 -75
- package/models/operations/badgesuggestsearch.js.map +0 -1
- package/src/funcs/badgeSuggestSearch.ts +0 -183
- package/src/models/components/v1badgesuggestsearchbody.ts +0 -85
- package/src/models/components/v1badgesuggestsearchrequestbody.ts +0 -71
- package/src/models/operations/badgesuggestsearch.ts +0 -89
|
@@ -37,20 +37,24 @@ const components = __importStar(require("../components/index.js"));
|
|
|
37
37
|
exports.StaffListStaffResponse$inboundSchema = z.object({
|
|
38
38
|
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
39
39
|
LeaderboardAccounts: z.nullable(z.array(z.nullable(components.LeaderboardAccount$inboundSchema))).optional(),
|
|
40
|
+
Headers: z.record(z.array(z.string())),
|
|
40
41
|
}).transform((v) => {
|
|
41
42
|
return (0, primitives_js_1.remap)(v, {
|
|
42
43
|
"HttpMeta": "httpMeta",
|
|
43
44
|
"LeaderboardAccounts": "leaderboardAccounts",
|
|
45
|
+
"Headers": "headers",
|
|
44
46
|
});
|
|
45
47
|
});
|
|
46
48
|
/** @internal */
|
|
47
49
|
exports.StaffListStaffResponse$outboundSchema = z.object({
|
|
48
50
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
49
51
|
leaderboardAccounts: z.nullable(z.array(z.nullable(components.LeaderboardAccount$outboundSchema))).optional(),
|
|
52
|
+
headers: z.record(z.array(z.string())),
|
|
50
53
|
}).transform((v) => {
|
|
51
54
|
return (0, primitives_js_1.remap)(v, {
|
|
52
55
|
httpMeta: "HttpMeta",
|
|
53
56
|
leaderboardAccounts: "LeaderboardAccounts",
|
|
57
|
+
headers: "Headers",
|
|
54
58
|
});
|
|
55
59
|
});
|
|
56
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"staffliststaff.js","sourceRoot":"","sources":["../../src/models/operations/staffliststaff.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"staffliststaff.js","sourceRoot":"","sources":["../../src/models/operations/staffliststaff.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAkFH,oEAMC;AAED,wEAQC;AAhGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAerD,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAC7B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC,CACjE,CAAC,QAAQ,EAAE;IACZ,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,qBAAqB,EAAE,qBAAqB;QAC5C,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAC7B,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC,CAClE,CAAC,QAAQ,EAAE;IACZ,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,mBAAmB,EAAE,qBAAqB;QAC1C,OAAO,EAAE,SAAS;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uBAAuB,CAOvC;AAPD,WAAiB,uBAAuB;IACtC,sEAAsE;IACzD,qCAAa,GAAG,4CAAoC,CAAC;IAClE,uEAAuE;IAC1D,sCAAc,GAAG,6CAAqC,CAAC;AAGtE,CAAC,EAPgB,uBAAuB,uCAAvB,uBAAuB,QAOvC;AAED,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -8,6 +8,9 @@ export type StatsGetStatsResponse = {
|
|
|
8
8
|
* OK
|
|
9
9
|
*/
|
|
10
10
|
v1Stats?: components.V1Stats | undefined;
|
|
11
|
+
headers: {
|
|
12
|
+
[k: string]: Array<string>;
|
|
13
|
+
};
|
|
11
14
|
};
|
|
12
15
|
/** @internal */
|
|
13
16
|
export declare const StatsGetStatsResponse$inboundSchema: z.ZodType<StatsGetStatsResponse, z.ZodTypeDef, unknown>;
|
|
@@ -15,6 +18,9 @@ export declare const StatsGetStatsResponse$inboundSchema: z.ZodType<StatsGetStat
|
|
|
15
18
|
export type StatsGetStatsResponse$Outbound = {
|
|
16
19
|
HttpMeta: components.HTTPMetadata$Outbound;
|
|
17
20
|
V1Stats?: components.V1Stats$Outbound | undefined;
|
|
21
|
+
Headers: {
|
|
22
|
+
[k: string]: Array<string>;
|
|
23
|
+
};
|
|
18
24
|
};
|
|
19
25
|
/** @internal */
|
|
20
26
|
export declare const StatsGetStatsResponse$outboundSchema: z.ZodType<StatsGetStatsResponse$Outbound, z.ZodTypeDef, StatsGetStatsResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statsgetstats.d.ts","sourceRoot":"","sources":["../../src/models/operations/statsgetstats.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,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,qBAAqB,GAAG;IAClC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"statsgetstats.d.ts","sourceRoot":"","sources":["../../src/models/operations/statsgetstats.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,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,qBAAqB,GAAG;IAClC,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,GAAG,SAAS,CAAC;IACzC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAC3C,OAAO,CAAC,EAAE,UAAU,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAClD,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAWrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -37,20 +37,24 @@ const components = __importStar(require("../components/index.js"));
|
|
|
37
37
|
exports.StatsGetStatsResponse$inboundSchema = z.object({
|
|
38
38
|
HttpMeta: components.HTTPMetadata$inboundSchema,
|
|
39
39
|
V1Stats: components.V1Stats$inboundSchema.optional(),
|
|
40
|
+
Headers: z.record(z.array(z.string())),
|
|
40
41
|
}).transform((v) => {
|
|
41
42
|
return (0, primitives_js_1.remap)(v, {
|
|
42
43
|
"HttpMeta": "httpMeta",
|
|
43
44
|
"V1Stats": "v1Stats",
|
|
45
|
+
"Headers": "headers",
|
|
44
46
|
});
|
|
45
47
|
});
|
|
46
48
|
/** @internal */
|
|
47
49
|
exports.StatsGetStatsResponse$outboundSchema = z.object({
|
|
48
50
|
httpMeta: components.HTTPMetadata$outboundSchema,
|
|
49
51
|
v1Stats: components.V1Stats$outboundSchema.optional(),
|
|
52
|
+
headers: z.record(z.array(z.string())),
|
|
50
53
|
}).transform((v) => {
|
|
51
54
|
return (0, primitives_js_1.remap)(v, {
|
|
52
55
|
httpMeta: "HttpMeta",
|
|
53
56
|
v1Stats: "V1Stats",
|
|
57
|
+
headers: "Headers",
|
|
54
58
|
});
|
|
55
59
|
});
|
|
56
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statsgetstats.js","sourceRoot":"","sources":["../../src/models/operations/statsgetstats.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"statsgetstats.js","sourceRoot":"","sources":["../../src/models/operations/statsgetstats.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,kEAMC;AAED,sEAQC;AAtFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAYrD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,OAAO,EAAE,UAAU,CAAC,qBAAqB,CAAC,QAAQ,EAAE;IACpD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,SAAS,EAAE,SAAS;QACpB,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,OAAO,EAAE,UAAU,CAAC,sBAAsB,CAAC,QAAQ,EAAE;IACrD,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC;AAED,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/sdk/badge.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import * as operations from "../models/operations/index.js";
|
|
|
4
4
|
export declare class Badge extends ClientSDK {
|
|
5
5
|
badgeListAccounts(request: components.V1BadgeListAccountsRequestBody, options?: RequestOptions): Promise<operations.BadgeListAccountsResponse>;
|
|
6
6
|
search(request: components.V1SearchRequest, options?: RequestOptions): Promise<operations.BadgeSearchBadgesResponse>;
|
|
7
|
-
suggestSearch(request: components.V1BadgeSuggestSearchRequestBody, options?: RequestOptions): Promise<operations.BadgeSuggestSearchResponse>;
|
|
8
7
|
suggestTags(request: components.V1BadgeSuggestTagsRequestBody, options?: RequestOptions): Promise<operations.BadgeSuggestTagsResponse>;
|
|
9
8
|
}
|
|
10
9
|
//# sourceMappingURL=badge.d.ts.map
|
package/sdk/badge.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,KAAM,SAAQ,SAAS;IAC5B,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQ1C,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQ1C,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
|
package/sdk/badge.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.Badge = void 0;
|
|
7
7
|
const badgeBadgeListAccounts_js_1 = require("../funcs/badgeBadgeListAccounts.js");
|
|
8
8
|
const badgeSearch_js_1 = require("../funcs/badgeSearch.js");
|
|
9
|
-
const badgeSuggestSearch_js_1 = require("../funcs/badgeSuggestSearch.js");
|
|
10
9
|
const badgeSuggestTags_js_1 = require("../funcs/badgeSuggestTags.js");
|
|
11
10
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
12
11
|
const fp_js_1 = require("../types/fp.js");
|
|
@@ -17,9 +16,6 @@ class Badge extends sdks_js_1.ClientSDK {
|
|
|
17
16
|
async search(request, options) {
|
|
18
17
|
return (0, fp_js_1.unwrapAsync)((0, badgeSearch_js_1.badgeSearch)(this, request, options));
|
|
19
18
|
}
|
|
20
|
-
async suggestSearch(request, options) {
|
|
21
|
-
return (0, fp_js_1.unwrapAsync)((0, badgeSuggestSearch_js_1.badgeSuggestSearch)(this, request, options));
|
|
22
|
-
}
|
|
23
19
|
async suggestTags(request, options) {
|
|
24
20
|
return (0, fp_js_1.unwrapAsync)((0, badgeSuggestTags_js_1.badgeSuggestTags)(this, request, options));
|
|
25
21
|
}
|
package/sdk/badge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kFAA4E;AAC5E,4DAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"badge.js","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kFAA4E;AAC5E,4DAAsD;AACtD,sEAAgE;AAChE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,KAAM,SAAQ,mBAAS;IAClC,KAAK,CAAC,iBAAiB,CACrB,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4BAAW,EAC5B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,WAAW,CACf,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjCD,sBAiCC"}
|
package/src/funcs/locationGet.ts
CHANGED
package/src/funcs/staffList.ts
CHANGED
package/src/funcs/statsGet.ts
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.27.
|
|
63
|
-
genVersion: "2.
|
|
62
|
+
sdkVersion: "0.27.3",
|
|
63
|
+
genVersion: "2.640.2",
|
|
64
64
|
userAgent:
|
|
65
|
-
"speakeasy-sdk/typescript 0.27.
|
|
65
|
+
"speakeasy-sdk/typescript 0.27.3 2.640.2 1.0.0 @steamsets/client-ts",
|
|
66
66
|
} as const;
|
|
@@ -54,7 +54,7 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
|
|
|
54
54
|
designs: z.nullable(z.array(z.string())),
|
|
55
55
|
firstCompletion: z.number().int(),
|
|
56
56
|
highestLevel: z.number().int(),
|
|
57
|
-
highestPrice: z.number(),
|
|
57
|
+
highestPrice: z.number().int(),
|
|
58
58
|
id: z.string(),
|
|
59
59
|
image: z.string(),
|
|
60
60
|
isEvent: z.boolean(),
|
|
@@ -62,9 +62,9 @@ export const Badge$inboundSchema: z.ZodType<Badge, z.ZodTypeDef, unknown> = z
|
|
|
62
62
|
isSale: z.boolean(),
|
|
63
63
|
lastCompletion: z.number().int(),
|
|
64
64
|
level: z.number().int(),
|
|
65
|
-
lowestPrice: z.number(),
|
|
65
|
+
lowestPrice: z.number().int(),
|
|
66
66
|
name: z.string(),
|
|
67
|
-
price: z.number(),
|
|
67
|
+
price: z.number().int(),
|
|
68
68
|
scarcity: z.number().int(),
|
|
69
69
|
steamId: z.number().int(),
|
|
70
70
|
xp: z.number(),
|
|
@@ -118,7 +118,7 @@ export const Badge$outboundSchema: z.ZodType<
|
|
|
118
118
|
designs: z.nullable(z.array(z.string())),
|
|
119
119
|
firstCompletion: z.number().int(),
|
|
120
120
|
highestLevel: z.number().int(),
|
|
121
|
-
highestPrice: z.number(),
|
|
121
|
+
highestPrice: z.number().int(),
|
|
122
122
|
id: z.string(),
|
|
123
123
|
image: z.string(),
|
|
124
124
|
isEvent: z.boolean(),
|
|
@@ -126,9 +126,9 @@ export const Badge$outboundSchema: z.ZodType<
|
|
|
126
126
|
isSale: z.boolean(),
|
|
127
127
|
lastCompletion: z.number().int(),
|
|
128
128
|
level: z.number().int(),
|
|
129
|
-
lowestPrice: z.number(),
|
|
129
|
+
lowestPrice: z.number().int(),
|
|
130
130
|
name: z.string(),
|
|
131
|
-
price: z.number(),
|
|
131
|
+
price: z.number().int(),
|
|
132
132
|
scarcity: z.number().int(),
|
|
133
133
|
steamId: z.number().int(),
|
|
134
134
|
xp: z.number(),
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export const BadgeValueFilterType = {
|
|
12
|
+
Level: "level",
|
|
13
|
+
Scarcity: "scarcity",
|
|
14
|
+
} as const;
|
|
15
|
+
export type BadgeValueFilterType = ClosedEnum<typeof BadgeValueFilterType>;
|
|
16
|
+
|
|
17
|
+
export type BadgeValueFilter = {
|
|
18
|
+
type: BadgeValueFilterType;
|
|
19
|
+
value: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const BadgeValueFilterType$inboundSchema: z.ZodNativeEnum<
|
|
24
|
+
typeof BadgeValueFilterType
|
|
25
|
+
> = z.nativeEnum(BadgeValueFilterType);
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const BadgeValueFilterType$outboundSchema: z.ZodNativeEnum<
|
|
29
|
+
typeof BadgeValueFilterType
|
|
30
|
+
> = BadgeValueFilterType$inboundSchema;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
+
*/
|
|
36
|
+
export namespace BadgeValueFilterType$ {
|
|
37
|
+
/** @deprecated use `BadgeValueFilterType$inboundSchema` instead. */
|
|
38
|
+
export const inboundSchema = BadgeValueFilterType$inboundSchema;
|
|
39
|
+
/** @deprecated use `BadgeValueFilterType$outboundSchema` instead. */
|
|
40
|
+
export const outboundSchema = BadgeValueFilterType$outboundSchema;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const BadgeValueFilter$inboundSchema: z.ZodType<
|
|
45
|
+
BadgeValueFilter,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
unknown
|
|
48
|
+
> = z.object({
|
|
49
|
+
type: BadgeValueFilterType$inboundSchema,
|
|
50
|
+
value: z.string(),
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type BadgeValueFilter$Outbound = {
|
|
55
|
+
type: string;
|
|
56
|
+
value: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const BadgeValueFilter$outboundSchema: z.ZodType<
|
|
61
|
+
BadgeValueFilter$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
BadgeValueFilter
|
|
64
|
+
> = z.object({
|
|
65
|
+
type: BadgeValueFilterType$outboundSchema,
|
|
66
|
+
value: z.string(),
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace BadgeValueFilter$ {
|
|
74
|
+
/** @deprecated use `BadgeValueFilter$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = BadgeValueFilter$inboundSchema;
|
|
76
|
+
/** @deprecated use `BadgeValueFilter$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = BadgeValueFilter$outboundSchema;
|
|
78
|
+
/** @deprecated use `BadgeValueFilter$Outbound` instead. */
|
|
79
|
+
export type Outbound = BadgeValueFilter$Outbound;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function badgeValueFilterToJSON(
|
|
83
|
+
badgeValueFilter: BadgeValueFilter,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
BadgeValueFilter$outboundSchema.parse(badgeValueFilter),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function badgeValueFilterFromJSON(
|
|
91
|
+
jsonString: string,
|
|
92
|
+
): SafeParseResult<BadgeValueFilter, SDKValidationError> {
|
|
93
|
+
return safeParse(
|
|
94
|
+
jsonString,
|
|
95
|
+
(x) => BadgeValueFilter$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
+
`Failed to parse 'BadgeValueFilter' from JSON`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./accountsearchidstruct.js";
|
|
|
9
9
|
export * from "./accountsearchvanitystruct.js";
|
|
10
10
|
export * from "./badge.js";
|
|
11
11
|
export * from "./badgesuggesttags.js";
|
|
12
|
+
export * from "./badgevaluefilter.js";
|
|
12
13
|
export * from "./bestleaderboardrank.js";
|
|
13
14
|
export * from "./chosenrole.js";
|
|
14
15
|
export * from "./city.js";
|
|
@@ -31,6 +32,7 @@ export * from "./leaderboardregion.js";
|
|
|
31
32
|
export * from "./leaderboardstate.js";
|
|
32
33
|
export * from "./loginrequestbody.js";
|
|
33
34
|
export * from "./previewaccount.js";
|
|
35
|
+
export * from "./range.js";
|
|
34
36
|
export * from "./region.js";
|
|
35
37
|
export * from "./resource.js";
|
|
36
38
|
export * from "./role.js";
|
|
@@ -114,11 +116,13 @@ export * from "./v1adminremovevanityresponsebody.js";
|
|
|
114
116
|
export * from "./v1adminupdateresourcesrequestbody.js";
|
|
115
117
|
export * from "./v1adminupdaterolesrequestbody.js";
|
|
116
118
|
export * from "./v1appbadge.js";
|
|
119
|
+
export * from "./v1appfilters.js";
|
|
117
120
|
export * from "./v1applistbadgesrequestbody.js";
|
|
118
121
|
export * from "./v1applistbadgesresponsebody.js";
|
|
119
122
|
export * from "./v1apporder.js";
|
|
120
123
|
export * from "./v1badgeaccount.js";
|
|
121
124
|
export * from "./v1badgeapp.js";
|
|
125
|
+
export * from "./v1badgefilters.js";
|
|
122
126
|
export * from "./v1badgelevel.js";
|
|
123
127
|
export * from "./v1badgelistaccountsrequestbody.js";
|
|
124
128
|
export * from "./v1badgelistaccountsresponsebody.js";
|
|
@@ -131,8 +135,6 @@ export * from "./v1badgesearchbadgesresponsebody.js";
|
|
|
131
135
|
export * from "./v1badgeset.js";
|
|
132
136
|
export * from "./v1badgesetcount.js";
|
|
133
137
|
export * from "./v1badgesetcounts.js";
|
|
134
|
-
export * from "./v1badgesuggestsearchbody.js";
|
|
135
|
-
export * from "./v1badgesuggestsearchrequestbody.js";
|
|
136
138
|
export * from "./v1badgesuggesttagsrequestbody.js";
|
|
137
139
|
export * from "./v1badgetagbadgerequestbody.js";
|
|
138
140
|
export * from "./v1badgetagbadgeresponsebody.js";
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 Range = {
|
|
11
|
+
/**
|
|
12
|
+
* Maximum value (inclusive)
|
|
13
|
+
*/
|
|
14
|
+
max?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Minimum value (inclusive)
|
|
17
|
+
*/
|
|
18
|
+
min?: number | undefined;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const Range$inboundSchema: z.ZodType<Range, z.ZodTypeDef, unknown> = z
|
|
23
|
+
.object({
|
|
24
|
+
max: z.number().int().optional(),
|
|
25
|
+
min: z.number().int().optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type Range$Outbound = {
|
|
30
|
+
max?: number | undefined;
|
|
31
|
+
min?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const Range$outboundSchema: z.ZodType<
|
|
36
|
+
Range$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
Range
|
|
39
|
+
> = z.object({
|
|
40
|
+
max: z.number().int().optional(),
|
|
41
|
+
min: z.number().int().optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
+
*/
|
|
48
|
+
export namespace Range$ {
|
|
49
|
+
/** @deprecated use `Range$inboundSchema` instead. */
|
|
50
|
+
export const inboundSchema = Range$inboundSchema;
|
|
51
|
+
/** @deprecated use `Range$outboundSchema` instead. */
|
|
52
|
+
export const outboundSchema = Range$outboundSchema;
|
|
53
|
+
/** @deprecated use `Range$Outbound` instead. */
|
|
54
|
+
export type Outbound = Range$Outbound;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function rangeToJSON(range: Range): string {
|
|
58
|
+
return JSON.stringify(Range$outboundSchema.parse(range));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function rangeFromJSON(
|
|
62
|
+
jsonString: string,
|
|
63
|
+
): SafeParseResult<Range, SDKValidationError> {
|
|
64
|
+
return safeParse(
|
|
65
|
+
jsonString,
|
|
66
|
+
(x) => Range$inboundSchema.parse(JSON.parse(x)),
|
|
67
|
+
`Failed to parse 'Range' from JSON`,
|
|
68
|
+
);
|
|
69
|
+
}
|
|
@@ -12,6 +12,12 @@ import {
|
|
|
12
12
|
IDStruct$Outbound,
|
|
13
13
|
IDStruct$outboundSchema,
|
|
14
14
|
} from "./idstruct.js";
|
|
15
|
+
import {
|
|
16
|
+
V1AppFilters,
|
|
17
|
+
V1AppFilters$inboundSchema,
|
|
18
|
+
V1AppFilters$Outbound,
|
|
19
|
+
V1AppFilters$outboundSchema,
|
|
20
|
+
} from "./v1appfilters.js";
|
|
15
21
|
import {
|
|
16
22
|
V1AppOrder,
|
|
17
23
|
V1AppOrder$inboundSchema,
|
|
@@ -26,6 +32,7 @@ import {
|
|
|
26
32
|
} from "./vanitystruct.js";
|
|
27
33
|
|
|
28
34
|
export type V1AccountListAppsRequestBody = {
|
|
35
|
+
filters?: V1AppFilters | undefined;
|
|
29
36
|
id?: IDStruct | undefined;
|
|
30
37
|
order?: V1AppOrder | null | undefined;
|
|
31
38
|
page?: number | undefined;
|
|
@@ -39,6 +46,7 @@ export const V1AccountListAppsRequestBody$inboundSchema: z.ZodType<
|
|
|
39
46
|
z.ZodTypeDef,
|
|
40
47
|
unknown
|
|
41
48
|
> = z.object({
|
|
49
|
+
filters: V1AppFilters$inboundSchema.optional(),
|
|
42
50
|
id: IDStruct$inboundSchema.optional(),
|
|
43
51
|
order: z.nullable(V1AppOrder$inboundSchema).optional(),
|
|
44
52
|
page: z.number().int().default(1),
|
|
@@ -48,6 +56,7 @@ export const V1AccountListAppsRequestBody$inboundSchema: z.ZodType<
|
|
|
48
56
|
|
|
49
57
|
/** @internal */
|
|
50
58
|
export type V1AccountListAppsRequestBody$Outbound = {
|
|
59
|
+
filters?: V1AppFilters$Outbound | undefined;
|
|
51
60
|
id?: IDStruct$Outbound | undefined;
|
|
52
61
|
order?: V1AppOrder$Outbound | null | undefined;
|
|
53
62
|
page: number;
|
|
@@ -61,6 +70,7 @@ export const V1AccountListAppsRequestBody$outboundSchema: z.ZodType<
|
|
|
61
70
|
z.ZodTypeDef,
|
|
62
71
|
V1AccountListAppsRequestBody
|
|
63
72
|
> = z.object({
|
|
73
|
+
filters: V1AppFilters$outboundSchema.optional(),
|
|
64
74
|
id: IDStruct$outboundSchema.optional(),
|
|
65
75
|
order: z.nullable(V1AppOrder$outboundSchema).optional(),
|
|
66
76
|
page: z.number().int().default(1),
|
|
@@ -7,12 +7,24 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
BadgeValueFilter,
|
|
12
|
+
BadgeValueFilter$inboundSchema,
|
|
13
|
+
BadgeValueFilter$Outbound,
|
|
14
|
+
BadgeValueFilter$outboundSchema,
|
|
15
|
+
} from "./badgevaluefilter.js";
|
|
10
16
|
import {
|
|
11
17
|
IDStruct,
|
|
12
18
|
IDStruct$inboundSchema,
|
|
13
19
|
IDStruct$Outbound,
|
|
14
20
|
IDStruct$outboundSchema,
|
|
15
21
|
} from "./idstruct.js";
|
|
22
|
+
import {
|
|
23
|
+
V1BadgeFilters,
|
|
24
|
+
V1BadgeFilters$inboundSchema,
|
|
25
|
+
V1BadgeFilters$Outbound,
|
|
26
|
+
V1BadgeFilters$outboundSchema,
|
|
27
|
+
} from "./v1badgefilters.js";
|
|
16
28
|
import {
|
|
17
29
|
V1BadgeOrder,
|
|
18
30
|
V1BadgeOrder$inboundSchema,
|
|
@@ -36,11 +48,19 @@ export type V1AccountListBadgesRequestBodyFilter = ClosedEnum<
|
|
|
36
48
|
>;
|
|
37
49
|
|
|
38
50
|
export type V1AccountListBadgesRequestBody = {
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
53
|
+
*/
|
|
39
54
|
filter?: Array<V1AccountListBadgesRequestBodyFilter> | null | undefined;
|
|
55
|
+
filters?: V1BadgeFilters | undefined;
|
|
40
56
|
id?: IDStruct | undefined;
|
|
41
57
|
order?: V1BadgeOrder | null | undefined;
|
|
42
58
|
page?: number | undefined;
|
|
43
59
|
search?: string | null | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
62
|
+
*/
|
|
63
|
+
valueFilter?: Array<BadgeValueFilter> | null | undefined;
|
|
44
64
|
vanity?: VanityStruct | undefined;
|
|
45
65
|
};
|
|
46
66
|
|
|
@@ -77,20 +97,24 @@ export const V1AccountListBadgesRequestBody$inboundSchema: z.ZodType<
|
|
|
77
97
|
filter: z.nullable(
|
|
78
98
|
z.array(V1AccountListBadgesRequestBodyFilter$inboundSchema),
|
|
79
99
|
).optional(),
|
|
100
|
+
filters: V1BadgeFilters$inboundSchema.optional(),
|
|
80
101
|
id: IDStruct$inboundSchema.optional(),
|
|
81
102
|
order: z.nullable(V1BadgeOrder$inboundSchema).optional(),
|
|
82
103
|
page: z.number().int().default(1),
|
|
83
104
|
search: z.nullable(z.string()).optional(),
|
|
105
|
+
valueFilter: z.nullable(z.array(BadgeValueFilter$inboundSchema)).optional(),
|
|
84
106
|
vanity: VanityStruct$inboundSchema.optional(),
|
|
85
107
|
});
|
|
86
108
|
|
|
87
109
|
/** @internal */
|
|
88
110
|
export type V1AccountListBadgesRequestBody$Outbound = {
|
|
89
111
|
filter?: Array<string> | null | undefined;
|
|
112
|
+
filters?: V1BadgeFilters$Outbound | undefined;
|
|
90
113
|
id?: IDStruct$Outbound | undefined;
|
|
91
114
|
order?: V1BadgeOrder$Outbound | null | undefined;
|
|
92
115
|
page: number;
|
|
93
116
|
search?: string | null | undefined;
|
|
117
|
+
valueFilter?: Array<BadgeValueFilter$Outbound> | null | undefined;
|
|
94
118
|
vanity?: VanityStruct$Outbound | undefined;
|
|
95
119
|
};
|
|
96
120
|
|
|
@@ -103,10 +127,12 @@ export const V1AccountListBadgesRequestBody$outboundSchema: z.ZodType<
|
|
|
103
127
|
filter: z.nullable(
|
|
104
128
|
z.array(V1AccountListBadgesRequestBodyFilter$outboundSchema),
|
|
105
129
|
).optional(),
|
|
130
|
+
filters: V1BadgeFilters$outboundSchema.optional(),
|
|
106
131
|
id: IDStruct$outboundSchema.optional(),
|
|
107
132
|
order: z.nullable(V1BadgeOrder$outboundSchema).optional(),
|
|
108
133
|
page: z.number().int().default(1),
|
|
109
134
|
search: z.nullable(z.string()).optional(),
|
|
135
|
+
valueFilter: z.nullable(z.array(BadgeValueFilter$outboundSchema)).optional(),
|
|
110
136
|
vanity: VanityStruct$outboundSchema.optional(),
|
|
111
137
|
});
|
|
112
138
|
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
Range,
|
|
11
|
+
Range$inboundSchema,
|
|
12
|
+
Range$Outbound,
|
|
13
|
+
Range$outboundSchema,
|
|
14
|
+
} from "./range.js";
|
|
15
|
+
|
|
16
|
+
export type V1AppFilters = {
|
|
17
|
+
/**
|
|
18
|
+
* Filter by app type (e.g., 'game', 'dlc')
|
|
19
|
+
*/
|
|
20
|
+
appType?: string | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Exclude event apps
|
|
23
|
+
*/
|
|
24
|
+
excludeEvents?: boolean | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Exclude sale/promotional apps
|
|
27
|
+
*/
|
|
28
|
+
excludeSales?: boolean | null | undefined;
|
|
29
|
+
playtime?: Range | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const V1AppFilters$inboundSchema: z.ZodType<
|
|
34
|
+
V1AppFilters,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
appType: z.nullable(z.string()).optional(),
|
|
39
|
+
excludeEvents: z.nullable(z.boolean()).optional(),
|
|
40
|
+
excludeSales: z.nullable(z.boolean()).optional(),
|
|
41
|
+
playtime: Range$inboundSchema.optional(),
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type V1AppFilters$Outbound = {
|
|
46
|
+
appType?: string | null | undefined;
|
|
47
|
+
excludeEvents?: boolean | null | undefined;
|
|
48
|
+
excludeSales?: boolean | null | undefined;
|
|
49
|
+
playtime?: Range$Outbound | undefined;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const V1AppFilters$outboundSchema: z.ZodType<
|
|
54
|
+
V1AppFilters$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
V1AppFilters
|
|
57
|
+
> = z.object({
|
|
58
|
+
appType: z.nullable(z.string()).optional(),
|
|
59
|
+
excludeEvents: z.nullable(z.boolean()).optional(),
|
|
60
|
+
excludeSales: z.nullable(z.boolean()).optional(),
|
|
61
|
+
playtime: Range$outboundSchema.optional(),
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @internal
|
|
66
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
+
*/
|
|
68
|
+
export namespace V1AppFilters$ {
|
|
69
|
+
/** @deprecated use `V1AppFilters$inboundSchema` instead. */
|
|
70
|
+
export const inboundSchema = V1AppFilters$inboundSchema;
|
|
71
|
+
/** @deprecated use `V1AppFilters$outboundSchema` instead. */
|
|
72
|
+
export const outboundSchema = V1AppFilters$outboundSchema;
|
|
73
|
+
/** @deprecated use `V1AppFilters$Outbound` instead. */
|
|
74
|
+
export type Outbound = V1AppFilters$Outbound;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function v1AppFiltersToJSON(v1AppFilters: V1AppFilters): string {
|
|
78
|
+
return JSON.stringify(V1AppFilters$outboundSchema.parse(v1AppFilters));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function v1AppFiltersFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<V1AppFilters, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => V1AppFilters$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'V1AppFilters' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|