@steamsets/client-ts 0.27.1 → 0.27.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +0 -2
  2. package/docs/sdks/badge/README.md +0 -73
  3. package/funcs/locationGet.js +1 -0
  4. package/funcs/locationGet.js.map +1 -1
  5. package/funcs/staffList.js +1 -0
  6. package/funcs/staffList.js.map +1 -1
  7. package/funcs/statsGet.js +1 -0
  8. package/funcs/statsGet.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +3 -3
  11. package/lib/config.js +3 -3
  12. package/models/components/badge.js +6 -6
  13. package/models/components/badge.js.map +1 -1
  14. package/models/components/badgevaluefilter.d.ts +57 -0
  15. package/models/components/badgevaluefilter.d.ts.map +1 -0
  16. package/models/components/badgevaluefilter.js +80 -0
  17. package/models/components/badgevaluefilter.js.map +1 -0
  18. package/models/components/index.d.ts +3 -2
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +3 -2
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/v1accountlistappsrequestbody.d.ts +3 -0
  23. package/models/components/v1accountlistappsrequestbody.d.ts.map +1 -1
  24. package/models/components/v1accountlistappsrequestbody.js +3 -0
  25. package/models/components/v1accountlistappsrequestbody.js.map +1 -1
  26. package/models/components/v1accountlistbadgesrequestbody.d.ts +12 -0
  27. package/models/components/v1accountlistbadgesrequestbody.d.ts.map +1 -1
  28. package/models/components/v1accountlistbadgesrequestbody.js +6 -0
  29. package/models/components/v1accountlistbadgesrequestbody.js.map +1 -1
  30. package/models/components/v1appfilters.d.ts +52 -0
  31. package/models/components/v1appfilters.d.ts.map +1 -0
  32. package/models/components/v1appfilters.js +67 -0
  33. package/models/components/v1appfilters.js.map +1 -0
  34. package/models/components/v1badgefilters.d.ts +62 -0
  35. package/models/components/v1badgefilters.d.ts.map +1 -0
  36. package/models/components/v1badgefilters.js +71 -0
  37. package/models/components/v1badgefilters.js.map +1 -0
  38. package/models/operations/index.d.ts +0 -1
  39. package/models/operations/index.d.ts.map +1 -1
  40. package/models/operations/index.js +0 -1
  41. package/models/operations/index.js.map +1 -1
  42. package/models/operations/locationgetlocations.d.ts +6 -0
  43. package/models/operations/locationgetlocations.d.ts.map +1 -1
  44. package/models/operations/locationgetlocations.js +4 -0
  45. package/models/operations/locationgetlocations.js.map +1 -1
  46. package/models/operations/staffliststaff.d.ts +6 -0
  47. package/models/operations/staffliststaff.d.ts.map +1 -1
  48. package/models/operations/staffliststaff.js +4 -0
  49. package/models/operations/staffliststaff.js.map +1 -1
  50. package/models/operations/statsgetstats.d.ts +6 -0
  51. package/models/operations/statsgetstats.d.ts.map +1 -1
  52. package/models/operations/statsgetstats.js +4 -0
  53. package/models/operations/statsgetstats.js.map +1 -1
  54. package/package.json +1 -1
  55. package/sdk/badge.d.ts +0 -1
  56. package/sdk/badge.d.ts.map +1 -1
  57. package/sdk/badge.js +0 -4
  58. package/sdk/badge.js.map +1 -1
  59. package/src/funcs/locationGet.ts +1 -0
  60. package/src/funcs/staffList.ts +1 -0
  61. package/src/funcs/statsGet.ts +1 -0
  62. package/src/lib/config.ts +3 -3
  63. package/src/models/components/badge.ts +6 -6
  64. package/src/models/components/badgevaluefilter.ts +98 -0
  65. package/src/models/components/index.ts +3 -2
  66. package/src/models/components/v1accountlistappsrequestbody.ts +10 -0
  67. package/src/models/components/v1accountlistbadgesrequestbody.ts +26 -0
  68. package/src/models/components/v1appfilters.ts +93 -0
  69. package/src/models/components/v1badgefilters.ts +107 -0
  70. package/src/models/operations/index.ts +0 -1
  71. package/src/models/operations/locationgetlocations.ts +6 -0
  72. package/src/models/operations/staffliststaff.ts +6 -0
  73. package/src/models/operations/statsgetstats.ts +6 -0
  74. package/src/sdk/badge.ts +0 -12
  75. package/funcs/badgeSuggestSearch.d.ts +0 -13
  76. package/funcs/badgeSuggestSearch.d.ts.map +0 -1
  77. package/funcs/badgeSuggestSearch.js +0 -120
  78. package/funcs/badgeSuggestSearch.js.map +0 -1
  79. package/models/components/v1badgesuggestsearchbody.d.ts +0 -37
  80. package/models/components/v1badgesuggestsearchbody.d.ts.map +0 -1
  81. package/models/components/v1badgesuggestsearchbody.js +0 -70
  82. package/models/components/v1badgesuggestsearchbody.js.map +0 -1
  83. package/models/components/v1badgesuggestsearchrequestbody.d.ts +0 -32
  84. package/models/components/v1badgesuggestsearchrequestbody.d.ts.map +0 -1
  85. package/models/components/v1badgesuggestsearchrequestbody.js +0 -59
  86. package/models/components/v1badgesuggestsearchrequestbody.js.map +0 -1
  87. package/models/operations/badgesuggestsearch.d.ts +0 -35
  88. package/models/operations/badgesuggestsearch.d.ts.map +0 -1
  89. package/models/operations/badgesuggestsearch.js +0 -75
  90. package/models/operations/badgesuggestsearch.js.map +0 -1
  91. package/src/funcs/badgeSuggestSearch.ts +0 -183
  92. package/src/models/components/v1badgesuggestsearchbody.ts +0 -85
  93. package/src/models/components/v1badgesuggestsearchrequestbody.ts +0 -71
  94. package/src/models/operations/badgesuggestsearch.ts +0 -89
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steamsets/client-ts",
3
- "version": "0.27.1",
3
+ "version": "0.27.2",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
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
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../src/sdk/badge.ts"],"names":[],"mappings":"AAQA,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,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQ3C,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
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,0EAAoE;AACpE,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,aAAa,CACjB,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,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;AA5CD,sBA4CC"}
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"}
@@ -144,6 +144,7 @@ async function $do(
144
144
  | SDKValidationError
145
145
  >(
146
146
  M.json(200, operations.LocationGetLocationsResponse$inboundSchema, {
147
+ hdrs: true,
147
148
  key: "Regions",
148
149
  }),
149
150
  M.jsonErr(401, errors.ErrorModel$inboundSchema, {
@@ -144,6 +144,7 @@ async function $do(
144
144
  | SDKValidationError
145
145
  >(
146
146
  M.json(200, operations.StaffListStaffResponse$inboundSchema, {
147
+ hdrs: true,
147
148
  key: "LeaderboardAccounts",
148
149
  }),
149
150
  M.jsonErr([404, 429], errors.ErrorModel$inboundSchema, {
@@ -144,6 +144,7 @@ async function $do(
144
144
  | SDKValidationError
145
145
  >(
146
146
  M.json(200, operations.StatsGetStatsResponse$inboundSchema, {
147
+ hdrs: true,
147
148
  key: "V1Stats",
148
149
  }),
149
150
  M.jsonErr([404, 429], errors.ErrorModel$inboundSchema, {
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.1",
63
- genVersion: "2.632.2",
62
+ sdkVersion: "0.27.2",
63
+ genVersion: "2.640.2",
64
64
  userAgent:
65
- "speakeasy-sdk/typescript 0.27.1 2.632.2 1.0.0 @steamsets/client-ts",
65
+ "speakeasy-sdk/typescript 0.27.2 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";
@@ -114,11 +115,13 @@ export * from "./v1adminremovevanityresponsebody.js";
114
115
  export * from "./v1adminupdateresourcesrequestbody.js";
115
116
  export * from "./v1adminupdaterolesrequestbody.js";
116
117
  export * from "./v1appbadge.js";
118
+ export * from "./v1appfilters.js";
117
119
  export * from "./v1applistbadgesrequestbody.js";
118
120
  export * from "./v1applistbadgesresponsebody.js";
119
121
  export * from "./v1apporder.js";
120
122
  export * from "./v1badgeaccount.js";
121
123
  export * from "./v1badgeapp.js";
124
+ export * from "./v1badgefilters.js";
122
125
  export * from "./v1badgelevel.js";
123
126
  export * from "./v1badgelistaccountsrequestbody.js";
124
127
  export * from "./v1badgelistaccountsresponsebody.js";
@@ -131,8 +134,6 @@ export * from "./v1badgesearchbadgesresponsebody.js";
131
134
  export * from "./v1badgeset.js";
132
135
  export * from "./v1badgesetcount.js";
133
136
  export * from "./v1badgesetcounts.js";
134
- export * from "./v1badgesuggestsearchbody.js";
135
- export * from "./v1badgesuggestsearchrequestbody.js";
136
137
  export * from "./v1badgesuggesttagsrequestbody.js";
137
138
  export * from "./v1badgetagbadgerequestbody.js";
138
139
  export * from "./v1badgetagbadgeresponsebody.js";
@@ -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,93 @@
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 V1AppFilters = {
11
+ /**
12
+ * Filter by app type (e.g., 'game', 'dlc')
13
+ */
14
+ appType?: string | null | undefined;
15
+ /**
16
+ * Exclude event apps
17
+ */
18
+ excludeEvents?: boolean | null | undefined;
19
+ /**
20
+ * Exclude sale/promotional apps
21
+ */
22
+ excludeSales?: boolean | null | undefined;
23
+ /**
24
+ * Maximum playtime in minutes
25
+ */
26
+ maxPlaytime?: number | null | undefined;
27
+ /**
28
+ * Minimum playtime in minutes
29
+ */
30
+ minPlaytime?: number | null | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const V1AppFilters$inboundSchema: z.ZodType<
35
+ V1AppFilters,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ appType: z.nullable(z.string()).optional(),
40
+ excludeEvents: z.nullable(z.boolean()).optional(),
41
+ excludeSales: z.nullable(z.boolean()).optional(),
42
+ maxPlaytime: z.nullable(z.number().int()).optional(),
43
+ minPlaytime: z.nullable(z.number().int()).optional(),
44
+ });
45
+
46
+ /** @internal */
47
+ export type V1AppFilters$Outbound = {
48
+ appType?: string | null | undefined;
49
+ excludeEvents?: boolean | null | undefined;
50
+ excludeSales?: boolean | null | undefined;
51
+ maxPlaytime?: number | null | undefined;
52
+ minPlaytime?: number | null | undefined;
53
+ };
54
+
55
+ /** @internal */
56
+ export const V1AppFilters$outboundSchema: z.ZodType<
57
+ V1AppFilters$Outbound,
58
+ z.ZodTypeDef,
59
+ V1AppFilters
60
+ > = z.object({
61
+ appType: z.nullable(z.string()).optional(),
62
+ excludeEvents: z.nullable(z.boolean()).optional(),
63
+ excludeSales: z.nullable(z.boolean()).optional(),
64
+ maxPlaytime: z.nullable(z.number().int()).optional(),
65
+ minPlaytime: z.nullable(z.number().int()).optional(),
66
+ });
67
+
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export namespace V1AppFilters$ {
73
+ /** @deprecated use `V1AppFilters$inboundSchema` instead. */
74
+ export const inboundSchema = V1AppFilters$inboundSchema;
75
+ /** @deprecated use `V1AppFilters$outboundSchema` instead. */
76
+ export const outboundSchema = V1AppFilters$outboundSchema;
77
+ /** @deprecated use `V1AppFilters$Outbound` instead. */
78
+ export type Outbound = V1AppFilters$Outbound;
79
+ }
80
+
81
+ export function v1AppFiltersToJSON(v1AppFilters: V1AppFilters): string {
82
+ return JSON.stringify(V1AppFilters$outboundSchema.parse(v1AppFilters));
83
+ }
84
+
85
+ export function v1AppFiltersFromJSON(
86
+ jsonString: string,
87
+ ): SafeParseResult<V1AppFilters, SDKValidationError> {
88
+ return safeParse(
89
+ jsonString,
90
+ (x) => V1AppFilters$inboundSchema.parse(JSON.parse(x)),
91
+ `Failed to parse 'V1AppFilters' from JSON`,
92
+ );
93
+ }
@@ -0,0 +1,107 @@
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 V1BadgeFilters = {
11
+ /**
12
+ * Filter by event badges
13
+ */
14
+ isEvent?: boolean | null | undefined;
15
+ /**
16
+ * Filter by foil badges
17
+ */
18
+ isFoil?: boolean | null | undefined;
19
+ /**
20
+ * Filter by sale badges
21
+ */
22
+ isSale?: boolean | null | undefined;
23
+ /**
24
+ * Maximum badge level
25
+ */
26
+ maxLevel?: number | null | undefined;
27
+ /**
28
+ * Maximum scarcity value
29
+ */
30
+ maxScarcity?: number | null | undefined;
31
+ /**
32
+ * Minimum badge level
33
+ */
34
+ minLevel?: number | null | undefined;
35
+ /**
36
+ * Minimum scarcity value
37
+ */
38
+ minScarcity?: number | null | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const V1BadgeFilters$inboundSchema: z.ZodType<
43
+ V1BadgeFilters,
44
+ z.ZodTypeDef,
45
+ unknown
46
+ > = z.object({
47
+ isEvent: z.nullable(z.boolean()).optional(),
48
+ isFoil: z.nullable(z.boolean()).optional(),
49
+ isSale: z.nullable(z.boolean()).optional(),
50
+ maxLevel: z.nullable(z.number().int()).optional(),
51
+ maxScarcity: z.nullable(z.number().int()).optional(),
52
+ minLevel: z.nullable(z.number().int()).optional(),
53
+ minScarcity: z.nullable(z.number().int()).optional(),
54
+ });
55
+
56
+ /** @internal */
57
+ export type V1BadgeFilters$Outbound = {
58
+ isEvent?: boolean | null | undefined;
59
+ isFoil?: boolean | null | undefined;
60
+ isSale?: boolean | null | undefined;
61
+ maxLevel?: number | null | undefined;
62
+ maxScarcity?: number | null | undefined;
63
+ minLevel?: number | null | undefined;
64
+ minScarcity?: number | null | undefined;
65
+ };
66
+
67
+ /** @internal */
68
+ export const V1BadgeFilters$outboundSchema: z.ZodType<
69
+ V1BadgeFilters$Outbound,
70
+ z.ZodTypeDef,
71
+ V1BadgeFilters
72
+ > = z.object({
73
+ isEvent: z.nullable(z.boolean()).optional(),
74
+ isFoil: z.nullable(z.boolean()).optional(),
75
+ isSale: z.nullable(z.boolean()).optional(),
76
+ maxLevel: z.nullable(z.number().int()).optional(),
77
+ maxScarcity: z.nullable(z.number().int()).optional(),
78
+ minLevel: z.nullable(z.number().int()).optional(),
79
+ minScarcity: z.nullable(z.number().int()).optional(),
80
+ });
81
+
82
+ /**
83
+ * @internal
84
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
85
+ */
86
+ export namespace V1BadgeFilters$ {
87
+ /** @deprecated use `V1BadgeFilters$inboundSchema` instead. */
88
+ export const inboundSchema = V1BadgeFilters$inboundSchema;
89
+ /** @deprecated use `V1BadgeFilters$outboundSchema` instead. */
90
+ export const outboundSchema = V1BadgeFilters$outboundSchema;
91
+ /** @deprecated use `V1BadgeFilters$Outbound` instead. */
92
+ export type Outbound = V1BadgeFilters$Outbound;
93
+ }
94
+
95
+ export function v1BadgeFiltersToJSON(v1BadgeFilters: V1BadgeFilters): string {
96
+ return JSON.stringify(V1BadgeFilters$outboundSchema.parse(v1BadgeFilters));
97
+ }
98
+
99
+ export function v1BadgeFiltersFromJSON(
100
+ jsonString: string,
101
+ ): SafeParseResult<V1BadgeFilters, SDKValidationError> {
102
+ return safeParse(
103
+ jsonString,
104
+ (x) => V1BadgeFilters$inboundSchema.parse(JSON.parse(x)),
105
+ `Failed to parse 'V1BadgeFilters' from JSON`,
106
+ );
107
+ }
@@ -48,7 +48,6 @@ export * from "./badgelistaccounts.js";
48
48
  export * from "./badgelistbadgeprices.js";
49
49
  export * from "./badgelisttags.js";
50
50
  export * from "./badgesearchbadges.js";
51
- export * from "./badgesuggestsearch.js";
52
51
  export * from "./badgesuggesttags.js";
53
52
  export * from "./badgetagbadge.js";
54
53
  export * from "./leaderboardgetaccountleaderboard.js";
@@ -15,6 +15,7 @@ export type LocationGetLocationsResponse = {
15
15
  * OK
16
16
  */
17
17
  regions?: Array<components.Region> | null | undefined;
18
+ headers: { [k: string]: Array<string> };
18
19
  };
19
20
 
20
21
  /** @internal */
@@ -25,10 +26,12 @@ export const LocationGetLocationsResponse$inboundSchema: z.ZodType<
25
26
  > = z.object({
26
27
  HttpMeta: components.HTTPMetadata$inboundSchema,
27
28
  Regions: z.nullable(z.array(components.Region$inboundSchema)).optional(),
29
+ Headers: z.record(z.array(z.string())),
28
30
  }).transform((v) => {
29
31
  return remap$(v, {
30
32
  "HttpMeta": "httpMeta",
31
33
  "Regions": "regions",
34
+ "Headers": "headers",
32
35
  });
33
36
  });
34
37
 
@@ -36,6 +39,7 @@ export const LocationGetLocationsResponse$inboundSchema: z.ZodType<
36
39
  export type LocationGetLocationsResponse$Outbound = {
37
40
  HttpMeta: components.HTTPMetadata$Outbound;
38
41
  Regions?: Array<components.Region$Outbound> | null | undefined;
42
+ Headers: { [k: string]: Array<string> };
39
43
  };
40
44
 
41
45
  /** @internal */
@@ -46,10 +50,12 @@ export const LocationGetLocationsResponse$outboundSchema: z.ZodType<
46
50
  > = z.object({
47
51
  httpMeta: components.HTTPMetadata$outboundSchema,
48
52
  regions: z.nullable(z.array(components.Region$outboundSchema)).optional(),
53
+ headers: z.record(z.array(z.string())),
49
54
  }).transform((v) => {
50
55
  return remap$(v, {
51
56
  httpMeta: "HttpMeta",
52
57
  regions: "Regions",
58
+ headers: "Headers",
53
59
  });
54
60
  });
55
61
 
@@ -18,6 +18,7 @@ export type StaffListStaffResponse = {
18
18
  | Array<components.LeaderboardAccount | null>
19
19
  | null
20
20
  | undefined;
21
+ headers: { [k: string]: Array<string> };
21
22
  };
22
23
 
23
24
  /** @internal */
@@ -30,10 +31,12 @@ export const StaffListStaffResponse$inboundSchema: z.ZodType<
30
31
  LeaderboardAccounts: z.nullable(
31
32
  z.array(z.nullable(components.LeaderboardAccount$inboundSchema)),
32
33
  ).optional(),
34
+ Headers: z.record(z.array(z.string())),
33
35
  }).transform((v) => {
34
36
  return remap$(v, {
35
37
  "HttpMeta": "httpMeta",
36
38
  "LeaderboardAccounts": "leaderboardAccounts",
39
+ "Headers": "headers",
37
40
  });
38
41
  });
39
42
 
@@ -44,6 +47,7 @@ export type StaffListStaffResponse$Outbound = {
44
47
  | Array<components.LeaderboardAccount$Outbound | null>
45
48
  | null
46
49
  | undefined;
50
+ Headers: { [k: string]: Array<string> };
47
51
  };
48
52
 
49
53
  /** @internal */
@@ -56,10 +60,12 @@ export const StaffListStaffResponse$outboundSchema: z.ZodType<
56
60
  leaderboardAccounts: z.nullable(
57
61
  z.array(z.nullable(components.LeaderboardAccount$outboundSchema)),
58
62
  ).optional(),
63
+ headers: z.record(z.array(z.string())),
59
64
  }).transform((v) => {
60
65
  return remap$(v, {
61
66
  httpMeta: "HttpMeta",
62
67
  leaderboardAccounts: "LeaderboardAccounts",
68
+ headers: "Headers",
63
69
  });
64
70
  });
65
71