@steamsets/client-ts 0.27.8 → 0.27.9

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 (57) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/jsr.json +1 -1
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/accountsearch.d.ts +6 -6
  6. package/models/components/accountsearch.d.ts.map +1 -1
  7. package/models/components/accountsearch.js +6 -6
  8. package/models/components/accountsearch.js.map +1 -1
  9. package/models/components/idsearch.d.ts +37 -0
  10. package/models/components/{idstruct.d.ts.map → idsearch.d.ts.map} +1 -1
  11. package/models/components/{idstruct.js → idsearch.js} +17 -17
  12. package/models/components/{idstruct.js.map → idsearch.js.map} +1 -1
  13. package/models/components/index.d.ts +2 -4
  14. package/models/components/index.d.ts.map +1 -1
  15. package/models/components/index.js +2 -4
  16. package/models/components/index.js.map +1 -1
  17. package/models/components/v1accountlistappsrequestbody.d.ts +6 -6
  18. package/models/components/v1accountlistappsrequestbody.js +6 -6
  19. package/models/components/v1accountlistbadgesrequestbody.d.ts +6 -6
  20. package/models/components/v1accountlistbadgesrequestbody.js +6 -6
  21. package/models/components/v1accountqueueupdaterequestbody.d.ts +6 -6
  22. package/models/components/v1accountqueueupdaterequestbody.js +6 -6
  23. package/models/components/v1adminupdateresourcesrequestbody.d.ts +6 -6
  24. package/models/components/v1adminupdateresourcesrequestbody.js +6 -6
  25. package/models/components/v1adminupdaterolesrequestbody.d.ts +6 -6
  26. package/models/components/v1adminupdaterolesrequestbody.js +6 -6
  27. package/models/components/v1leaderboardpreviewaccountrankrequestbody.d.ts +6 -6
  28. package/models/components/v1leaderboardpreviewaccountrankrequestbody.js +6 -6
  29. package/models/components/{accountsearchvanitystruct.d.ts → vanitysearch.d.ts} +14 -14
  30. package/models/components/vanitysearch.d.ts.map +1 -0
  31. package/models/components/{accountsearchvanitystruct.js → vanitysearch.js} +17 -17
  32. package/models/components/vanitysearch.js.map +1 -0
  33. package/package.json +1 -1
  34. package/src/lib/config.ts +2 -2
  35. package/src/models/components/accountsearch.ts +18 -18
  36. package/src/models/components/{idstruct.ts → idsearch.ts} +20 -20
  37. package/src/models/components/index.ts +2 -4
  38. package/src/models/components/v1accountlistappsrequestbody.ts +18 -18
  39. package/src/models/components/v1accountlistbadgesrequestbody.ts +18 -18
  40. package/src/models/components/v1accountqueueupdaterequestbody.ts +18 -18
  41. package/src/models/components/v1adminupdateresourcesrequestbody.ts +18 -18
  42. package/src/models/components/v1adminupdaterolesrequestbody.ts +18 -18
  43. package/src/models/components/v1leaderboardpreviewaccountrankrequestbody.ts +18 -18
  44. package/src/models/components/{accountsearchvanitystruct.ts → vanitysearch.ts} +20 -24
  45. package/models/components/accountsearchidstruct.d.ts +0 -37
  46. package/models/components/accountsearchidstruct.d.ts.map +0 -1
  47. package/models/components/accountsearchidstruct.js +0 -71
  48. package/models/components/accountsearchidstruct.js.map +0 -1
  49. package/models/components/accountsearchvanitystruct.d.ts.map +0 -1
  50. package/models/components/accountsearchvanitystruct.js.map +0 -1
  51. package/models/components/idstruct.d.ts +0 -37
  52. package/models/components/vanitystruct.d.ts +0 -69
  53. package/models/components/vanitystruct.d.ts.map +0 -1
  54. package/models/components/vanitystruct.js +0 -93
  55. package/models/components/vanitystruct.js.map +0 -1
  56. package/src/models/components/accountsearchidstruct.ts +0 -76
  57. package/src/models/components/vanitystruct.ts +0 -106
@@ -2,8 +2,8 @@ import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- import { IDStruct, IDStruct$Outbound } from "./idstruct.js";
6
- import { VanityStruct, VanityStruct$Outbound } from "./vanitystruct.js";
5
+ import { IDSearch, IDSearch$Outbound } from "./idsearch.js";
6
+ import { VanitySearch, VanitySearch$Outbound } from "./vanitysearch.js";
7
7
  export declare const Roles: {
8
8
  readonly User: "user";
9
9
  readonly Donator: "donator";
@@ -27,9 +27,9 @@ export declare const Roles: {
27
27
  };
28
28
  export type Roles = ClosedEnum<typeof Roles>;
29
29
  export type V1AdminUpdateRolesRequestBody = {
30
- id?: IDStruct | undefined;
30
+ id?: IDSearch | undefined;
31
31
  roles: Array<Roles> | null;
32
- vanity?: VanityStruct | undefined;
32
+ vanity?: VanitySearch | undefined;
33
33
  };
34
34
  /** @internal */
35
35
  export declare const Roles$inboundSchema: z.ZodNativeEnum<typeof Roles>;
@@ -89,9 +89,9 @@ export declare namespace Roles$ {
89
89
  export declare const V1AdminUpdateRolesRequestBody$inboundSchema: z.ZodType<V1AdminUpdateRolesRequestBody, z.ZodTypeDef, unknown>;
90
90
  /** @internal */
91
91
  export type V1AdminUpdateRolesRequestBody$Outbound = {
92
- id?: IDStruct$Outbound | undefined;
92
+ id?: IDSearch$Outbound | undefined;
93
93
  roles: Array<string> | null;
94
- vanity?: VanityStruct$Outbound | undefined;
94
+ vanity?: VanitySearch$Outbound | undefined;
95
95
  };
96
96
  /** @internal */
97
97
  export declare const V1AdminUpdateRolesRequestBody$outboundSchema: z.ZodType<V1AdminUpdateRolesRequestBody$Outbound, z.ZodTypeDef, V1AdminUpdateRolesRequestBody>;
@@ -41,8 +41,8 @@ exports.v1AdminUpdateRolesRequestBodyToJSON = v1AdminUpdateRolesRequestBodyToJSO
41
41
  exports.v1AdminUpdateRolesRequestBodyFromJSON = v1AdminUpdateRolesRequestBodyFromJSON;
42
42
  const z = __importStar(require("zod"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
- const idstruct_js_1 = require("./idstruct.js");
45
- const vanitystruct_js_1 = require("./vanitystruct.js");
44
+ const idsearch_js_1 = require("./idsearch.js");
45
+ const vanitysearch_js_1 = require("./vanitysearch.js");
46
46
  exports.Roles = {
47
47
  User: "user",
48
48
  Donator: "donator",
@@ -81,15 +81,15 @@ var Roles$;
81
81
  })(Roles$ || (exports.Roles$ = Roles$ = {}));
82
82
  /** @internal */
83
83
  exports.V1AdminUpdateRolesRequestBody$inboundSchema = z.object({
84
- id: idstruct_js_1.IDStruct$inboundSchema.optional(),
84
+ id: idsearch_js_1.IDSearch$inboundSchema.optional(),
85
85
  roles: z.nullable(z.array(exports.Roles$inboundSchema)),
86
- vanity: vanitystruct_js_1.VanityStruct$inboundSchema.optional(),
86
+ vanity: vanitysearch_js_1.VanitySearch$inboundSchema.optional(),
87
87
  });
88
88
  /** @internal */
89
89
  exports.V1AdminUpdateRolesRequestBody$outboundSchema = z.object({
90
- id: idstruct_js_1.IDStruct$outboundSchema.optional(),
90
+ id: idsearch_js_1.IDSearch$outboundSchema.optional(),
91
91
  roles: z.nullable(z.array(exports.Roles$outboundSchema)),
92
- vanity: vanitystruct_js_1.VanityStruct$outboundSchema.optional(),
92
+ vanity: vanitysearch_js_1.VanitySearch$outboundSchema.optional(),
93
93
  });
94
94
  /**
95
95
  * @internal
@@ -2,8 +2,8 @@ import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- import { IDStruct, IDStruct$Outbound } from "./idstruct.js";
6
- import { VanityStruct, VanityStruct$Outbound } from "./vanitystruct.js";
5
+ import { IDSearch, IDSearch$Outbound } from "./idsearch.js";
6
+ import { VanitySearch, VanitySearch$Outbound } from "./vanitysearch.js";
7
7
  /**
8
8
  * The leaderboard to get
9
9
  */
@@ -29,7 +29,7 @@ export declare const V1LeaderboardPreviewAccountRankRequestBodyLeaderboard: {
29
29
  */
30
30
  export type V1LeaderboardPreviewAccountRankRequestBodyLeaderboard = ClosedEnum<typeof V1LeaderboardPreviewAccountRankRequestBodyLeaderboard>;
31
31
  export type V1LeaderboardPreviewAccountRankRequestBody = {
32
- id?: IDStruct | undefined;
32
+ id?: IDSearch | undefined;
33
33
  /**
34
34
  * The leaderboard to get
35
35
  */
@@ -38,7 +38,7 @@ export type V1LeaderboardPreviewAccountRankRequestBody = {
38
38
  * What their leaderboard score would be, will use their current rank if not set
39
39
  */
40
40
  value?: number | null | undefined;
41
- vanity?: VanityStruct | undefined;
41
+ vanity?: VanitySearch | undefined;
42
42
  };
43
43
  /** @internal */
44
44
  export declare const V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema: z.ZodNativeEnum<typeof V1LeaderboardPreviewAccountRankRequestBodyLeaderboard>;
@@ -90,10 +90,10 @@ export declare namespace V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$
90
90
  export declare const V1LeaderboardPreviewAccountRankRequestBody$inboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankRequestBody, z.ZodTypeDef, unknown>;
91
91
  /** @internal */
92
92
  export type V1LeaderboardPreviewAccountRankRequestBody$Outbound = {
93
- id?: IDStruct$Outbound | undefined;
93
+ id?: IDSearch$Outbound | undefined;
94
94
  leaderboard: string;
95
95
  value?: number | null | undefined;
96
- vanity?: VanityStruct$Outbound | undefined;
96
+ vanity?: VanitySearch$Outbound | undefined;
97
97
  };
98
98
  /** @internal */
99
99
  export declare const V1LeaderboardPreviewAccountRankRequestBody$outboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankRequestBody$Outbound, z.ZodTypeDef, V1LeaderboardPreviewAccountRankRequestBody>;
@@ -41,8 +41,8 @@ exports.v1LeaderboardPreviewAccountRankRequestBodyToJSON = v1LeaderboardPreviewA
41
41
  exports.v1LeaderboardPreviewAccountRankRequestBodyFromJSON = v1LeaderboardPreviewAccountRankRequestBodyFromJSON;
42
42
  const z = __importStar(require("zod"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
- const idstruct_js_1 = require("./idstruct.js");
45
- const vanitystruct_js_1 = require("./vanitystruct.js");
44
+ const idsearch_js_1 = require("./idsearch.js");
45
+ const vanitysearch_js_1 = require("./vanitysearch.js");
46
46
  /**
47
47
  * The leaderboard to get
48
48
  */
@@ -80,17 +80,17 @@ var V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$;
80
80
  })(V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ || (exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ = V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$ = {}));
81
81
  /** @internal */
82
82
  exports.V1LeaderboardPreviewAccountRankRequestBody$inboundSchema = z.object({
83
- id: idstruct_js_1.IDStruct$inboundSchema.optional(),
83
+ id: idsearch_js_1.IDSearch$inboundSchema.optional(),
84
84
  leaderboard: exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$inboundSchema,
85
85
  value: z.nullable(z.number().int()).optional(),
86
- vanity: vanitystruct_js_1.VanityStruct$inboundSchema.optional(),
86
+ vanity: vanitysearch_js_1.VanitySearch$inboundSchema.optional(),
87
87
  });
88
88
  /** @internal */
89
89
  exports.V1LeaderboardPreviewAccountRankRequestBody$outboundSchema = z.object({
90
- id: idstruct_js_1.IDStruct$outboundSchema.optional(),
90
+ id: idsearch_js_1.IDSearch$outboundSchema.optional(),
91
91
  leaderboard: exports.V1LeaderboardPreviewAccountRankRequestBodyLeaderboard$outboundSchema,
92
92
  value: z.nullable(z.number().int()).optional(),
93
- vanity: vanitystruct_js_1.VanityStruct$outboundSchema.optional(),
93
+ vanity: vanitysearch_js_1.VanitySearch$outboundSchema.optional(),
94
94
  });
95
95
  /**
96
96
  * @internal
@@ -13,7 +13,7 @@ export declare const Type: {
13
13
  * Which type of vanity to search for
14
14
  */
15
15
  export type Type = ClosedEnum<typeof Type>;
16
- export type AccountSearchVanityStruct = {
16
+ export type VanitySearch = {
17
17
  /**
18
18
  * Which type of vanity to search for
19
19
  */
@@ -44,26 +44,26 @@ export declare namespace Type$ {
44
44
  }>;
45
45
  }
46
46
  /** @internal */
47
- export declare const AccountSearchVanityStruct$inboundSchema: z.ZodType<AccountSearchVanityStruct, z.ZodTypeDef, unknown>;
47
+ export declare const VanitySearch$inboundSchema: z.ZodType<VanitySearch, z.ZodTypeDef, unknown>;
48
48
  /** @internal */
49
- export type AccountSearchVanityStruct$Outbound = {
49
+ export type VanitySearch$Outbound = {
50
50
  type: string;
51
51
  value: string;
52
52
  };
53
53
  /** @internal */
54
- export declare const AccountSearchVanityStruct$outboundSchema: z.ZodType<AccountSearchVanityStruct$Outbound, z.ZodTypeDef, AccountSearchVanityStruct>;
54
+ export declare const VanitySearch$outboundSchema: z.ZodType<VanitySearch$Outbound, z.ZodTypeDef, VanitySearch>;
55
55
  /**
56
56
  * @internal
57
57
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
58
  */
59
- export declare namespace AccountSearchVanityStruct$ {
60
- /** @deprecated use `AccountSearchVanityStruct$inboundSchema` instead. */
61
- const inboundSchema: z.ZodType<AccountSearchVanityStruct, z.ZodTypeDef, unknown>;
62
- /** @deprecated use `AccountSearchVanityStruct$outboundSchema` instead. */
63
- const outboundSchema: z.ZodType<AccountSearchVanityStruct$Outbound, z.ZodTypeDef, AccountSearchVanityStruct>;
64
- /** @deprecated use `AccountSearchVanityStruct$Outbound` instead. */
65
- type Outbound = AccountSearchVanityStruct$Outbound;
59
+ export declare namespace VanitySearch$ {
60
+ /** @deprecated use `VanitySearch$inboundSchema` instead. */
61
+ const inboundSchema: z.ZodType<VanitySearch, z.ZodTypeDef, unknown>;
62
+ /** @deprecated use `VanitySearch$outboundSchema` instead. */
63
+ const outboundSchema: z.ZodType<VanitySearch$Outbound, z.ZodTypeDef, VanitySearch>;
64
+ /** @deprecated use `VanitySearch$Outbound` instead. */
65
+ type Outbound = VanitySearch$Outbound;
66
66
  }
67
- export declare function accountSearchVanityStructToJSON(accountSearchVanityStruct: AccountSearchVanityStruct): string;
68
- export declare function accountSearchVanityStructFromJSON(jsonString: string): SafeParseResult<AccountSearchVanityStruct, SDKValidationError>;
69
- //# sourceMappingURL=accountsearchvanitystruct.d.ts.map
67
+ export declare function vanitySearchToJSON(vanitySearch: VanitySearch): string;
68
+ export declare function vanitySearchFromJSON(jsonString: string): SafeParseResult<VanitySearch, SDKValidationError>;
69
+ //# sourceMappingURL=vanitysearch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vanitysearch.d.ts","sourceRoot":"","sources":["../../src/models/components/vanitysearch.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,IAAI;;;CAGP,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,CAAC,OAAO,IAAI,CAAC,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CAE3D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,IAAI,CACzC,CAAC;AAErB;;;GAGG;AACH,yBAAiB,KAAK,CAAC;IACrB,oDAAoD;IAC7C,MAAM,aAAa;;;MAAqB,CAAC;IAChD,qDAAqD;IAC9C,MAAM,cAAc;;;MAAsB,CAAC;CACnD;AAED,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAIZ,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"}
@@ -36,9 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.AccountSearchVanityStruct$ = exports.AccountSearchVanityStruct$outboundSchema = exports.AccountSearchVanityStruct$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
40
- exports.accountSearchVanityStructToJSON = accountSearchVanityStructToJSON;
41
- exports.accountSearchVanityStructFromJSON = accountSearchVanityStructFromJSON;
39
+ exports.VanitySearch$ = exports.VanitySearch$outboundSchema = exports.VanitySearch$inboundSchema = exports.Type$ = exports.Type$outboundSchema = exports.Type$inboundSchema = exports.Type = void 0;
40
+ exports.vanitySearchToJSON = vanitySearchToJSON;
41
+ exports.vanitySearchFromJSON = vanitySearchFromJSON;
42
42
  const z = __importStar(require("zod"));
43
43
  const schemas_js_1 = require("../../lib/schemas.js");
44
44
  /**
@@ -64,12 +64,12 @@ var Type$;
64
64
  Type$.outboundSchema = exports.Type$outboundSchema;
65
65
  })(Type$ || (exports.Type$ = Type$ = {}));
66
66
  /** @internal */
67
- exports.AccountSearchVanityStruct$inboundSchema = z.object({
67
+ exports.VanitySearch$inboundSchema = z.object({
68
68
  type: exports.Type$inboundSchema,
69
69
  value: z.string(),
70
70
  });
71
71
  /** @internal */
72
- exports.AccountSearchVanityStruct$outboundSchema = z.object({
72
+ exports.VanitySearch$outboundSchema = z.object({
73
73
  type: exports.Type$outboundSchema,
74
74
  value: z.string(),
75
75
  });
@@ -77,17 +77,17 @@ exports.AccountSearchVanityStruct$outboundSchema = z.object({
77
77
  * @internal
78
78
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
79
  */
80
- var AccountSearchVanityStruct$;
81
- (function (AccountSearchVanityStruct$) {
82
- /** @deprecated use `AccountSearchVanityStruct$inboundSchema` instead. */
83
- AccountSearchVanityStruct$.inboundSchema = exports.AccountSearchVanityStruct$inboundSchema;
84
- /** @deprecated use `AccountSearchVanityStruct$outboundSchema` instead. */
85
- AccountSearchVanityStruct$.outboundSchema = exports.AccountSearchVanityStruct$outboundSchema;
86
- })(AccountSearchVanityStruct$ || (exports.AccountSearchVanityStruct$ = AccountSearchVanityStruct$ = {}));
87
- function accountSearchVanityStructToJSON(accountSearchVanityStruct) {
88
- return JSON.stringify(exports.AccountSearchVanityStruct$outboundSchema.parse(accountSearchVanityStruct));
80
+ var VanitySearch$;
81
+ (function (VanitySearch$) {
82
+ /** @deprecated use `VanitySearch$inboundSchema` instead. */
83
+ VanitySearch$.inboundSchema = exports.VanitySearch$inboundSchema;
84
+ /** @deprecated use `VanitySearch$outboundSchema` instead. */
85
+ VanitySearch$.outboundSchema = exports.VanitySearch$outboundSchema;
86
+ })(VanitySearch$ || (exports.VanitySearch$ = VanitySearch$ = {}));
87
+ function vanitySearchToJSON(vanitySearch) {
88
+ return JSON.stringify(exports.VanitySearch$outboundSchema.parse(vanitySearch));
89
89
  }
90
- function accountSearchVanityStructFromJSON(jsonString) {
91
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountSearchVanityStruct$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountSearchVanityStruct' from JSON`);
90
+ function vanitySearchFromJSON(jsonString) {
91
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.VanitySearch$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VanitySearch' from JSON`);
92
92
  }
93
- //# sourceMappingURL=accountsearchvanitystruct.js.map
93
+ //# sourceMappingURL=vanitysearch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vanitysearch.js","sourceRoot":"","sources":["../../src/models/components/vanitysearch.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FH,gDAEC;AAED,oDAQC;AApGD,uCAAyB;AACzB,qDAAiD;AAKjD;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAiBX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,CAAC,CAAC,UAAU,CAC1E,YAAI,CACL,CAAC;AAEF,gBAAgB;AACH,QAAA,mBAAmB,GAC9B,0BAAkB,CAAC;AAErB;;;GAGG;AACH,IAAiB,KAAK,CAKrB;AALD,WAAiB,KAAK;IACpB,oDAAoD;IACvC,mBAAa,GAAG,0BAAkB,CAAC;IAChD,qDAAqD;IACxC,oBAAc,GAAG,2BAAmB,CAAC;AACpD,CAAC,EALgB,KAAK,qBAAL,KAAK,QAKrB;AAED,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,0BAAkB;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,2BAAmB;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steamsets/client-ts",
3
- "version": "0.27.8",
3
+ "version": "0.27.9",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
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.8",
62
+ sdkVersion: "0.27.9",
63
63
  genVersion: "2.687.13",
64
64
  userAgent:
65
- "speakeasy-sdk/typescript 0.27.8 2.687.13 1.0.0 @steamsets/client-ts",
65
+ "speakeasy-sdk/typescript 0.27.9 2.687.13 1.0.0 @steamsets/client-ts",
66
66
  } as const;
@@ -7,21 +7,21 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- AccountSearchIDStruct,
11
- AccountSearchIDStruct$inboundSchema,
12
- AccountSearchIDStruct$Outbound,
13
- AccountSearchIDStruct$outboundSchema,
14
- } from "./accountsearchidstruct.js";
10
+ IDSearch,
11
+ IDSearch$inboundSchema,
12
+ IDSearch$Outbound,
13
+ IDSearch$outboundSchema,
14
+ } from "./idsearch.js";
15
15
  import {
16
- AccountSearchVanityStruct,
17
- AccountSearchVanityStruct$inboundSchema,
18
- AccountSearchVanityStruct$Outbound,
19
- AccountSearchVanityStruct$outboundSchema,
20
- } from "./accountsearchvanitystruct.js";
16
+ VanitySearch,
17
+ VanitySearch$inboundSchema,
18
+ VanitySearch$Outbound,
19
+ VanitySearch$outboundSchema,
20
+ } from "./vanitysearch.js";
21
21
 
22
22
  export type AccountSearch = {
23
- id?: AccountSearchIDStruct | undefined;
24
- vanity?: AccountSearchVanityStruct | undefined;
23
+ id?: IDSearch | undefined;
24
+ vanity?: VanitySearch | undefined;
25
25
  };
26
26
 
27
27
  /** @internal */
@@ -30,14 +30,14 @@ export const AccountSearch$inboundSchema: z.ZodType<
30
30
  z.ZodTypeDef,
31
31
  unknown
32
32
  > = z.object({
33
- id: AccountSearchIDStruct$inboundSchema.optional(),
34
- vanity: AccountSearchVanityStruct$inboundSchema.optional(),
33
+ id: IDSearch$inboundSchema.optional(),
34
+ vanity: VanitySearch$inboundSchema.optional(),
35
35
  });
36
36
 
37
37
  /** @internal */
38
38
  export type AccountSearch$Outbound = {
39
- id?: AccountSearchIDStruct$Outbound | undefined;
40
- vanity?: AccountSearchVanityStruct$Outbound | undefined;
39
+ id?: IDSearch$Outbound | undefined;
40
+ vanity?: VanitySearch$Outbound | undefined;
41
41
  };
42
42
 
43
43
  /** @internal */
@@ -46,8 +46,8 @@ export const AccountSearch$outboundSchema: z.ZodType<
46
46
  z.ZodTypeDef,
47
47
  AccountSearch
48
48
  > = z.object({
49
- id: AccountSearchIDStruct$outboundSchema.optional(),
50
- vanity: AccountSearchVanityStruct$outboundSchema.optional(),
49
+ id: IDSearch$outboundSchema.optional(),
50
+ vanity: VanitySearch$outboundSchema.optional(),
51
51
  });
52
52
 
53
53
  /**
@@ -7,7 +7,7 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
- export type IDStruct = {
10
+ export type IDSearch = {
11
11
  /**
12
12
  * Account ID to search for
13
13
  */
@@ -19,8 +19,8 @@ export type IDStruct = {
19
19
  };
20
20
 
21
21
  /** @internal */
22
- export const IDStruct$inboundSchema: z.ZodType<
23
- IDStruct,
22
+ export const IDSearch$inboundSchema: z.ZodType<
23
+ IDSearch,
24
24
  z.ZodTypeDef,
25
25
  unknown
26
26
  > = z.object({
@@ -29,16 +29,16 @@ export const IDStruct$inboundSchema: z.ZodType<
29
29
  });
30
30
 
31
31
  /** @internal */
32
- export type IDStruct$Outbound = {
32
+ export type IDSearch$Outbound = {
33
33
  accountId?: number | undefined;
34
34
  steamId64?: string | undefined;
35
35
  };
36
36
 
37
37
  /** @internal */
38
- export const IDStruct$outboundSchema: z.ZodType<
39
- IDStruct$Outbound,
38
+ export const IDSearch$outboundSchema: z.ZodType<
39
+ IDSearch$Outbound,
40
40
  z.ZodTypeDef,
41
- IDStruct
41
+ IDSearch
42
42
  > = z.object({
43
43
  accountId: z.number().int().optional(),
44
44
  steamId64: z.string().optional(),
@@ -48,25 +48,25 @@ export const IDStruct$outboundSchema: z.ZodType<
48
48
  * @internal
49
49
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
50
50
  */
51
- export namespace IDStruct$ {
52
- /** @deprecated use `IDStruct$inboundSchema` instead. */
53
- export const inboundSchema = IDStruct$inboundSchema;
54
- /** @deprecated use `IDStruct$outboundSchema` instead. */
55
- export const outboundSchema = IDStruct$outboundSchema;
56
- /** @deprecated use `IDStruct$Outbound` instead. */
57
- export type Outbound = IDStruct$Outbound;
51
+ export namespace IDSearch$ {
52
+ /** @deprecated use `IDSearch$inboundSchema` instead. */
53
+ export const inboundSchema = IDSearch$inboundSchema;
54
+ /** @deprecated use `IDSearch$outboundSchema` instead. */
55
+ export const outboundSchema = IDSearch$outboundSchema;
56
+ /** @deprecated use `IDSearch$Outbound` instead. */
57
+ export type Outbound = IDSearch$Outbound;
58
58
  }
59
59
 
60
- export function idStructToJSON(idStruct: IDStruct): string {
61
- return JSON.stringify(IDStruct$outboundSchema.parse(idStruct));
60
+ export function idSearchToJSON(idSearch: IDSearch): string {
61
+ return JSON.stringify(IDSearch$outboundSchema.parse(idSearch));
62
62
  }
63
63
 
64
- export function idStructFromJSON(
64
+ export function idSearchFromJSON(
65
65
  jsonString: string,
66
- ): SafeParseResult<IDStruct, SDKValidationError> {
66
+ ): SafeParseResult<IDSearch, SDKValidationError> {
67
67
  return safeParse(
68
68
  jsonString,
69
- (x) => IDStruct$inboundSchema.parse(JSON.parse(x)),
70
- `Failed to parse 'IDStruct' from JSON`,
69
+ (x) => IDSearch$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'IDSearch' from JSON`,
71
71
  );
72
72
  }
@@ -5,8 +5,6 @@
5
5
  export * from "./accountbadgeinfo.js";
6
6
  export * from "./accountleaderboardhistory.js";
7
7
  export * from "./accountsearch.js";
8
- export * from "./accountsearchidstruct.js";
9
- export * from "./accountsearchvanitystruct.js";
10
8
  export * from "./badge.js";
11
9
  export * from "./badgesuggesttags.js";
12
10
  export * from "./badgevaluefilter.js";
@@ -23,7 +21,7 @@ export * from "./errordetail.js";
23
21
  export * from "./errormodel.js";
24
22
  export * from "./historyvalue.js";
25
23
  export * from "./httpmetadata.js";
26
- export * from "./idstruct.js";
24
+ export * from "./idsearch.js";
27
25
  export * from "./image.js";
28
26
  export * from "./leaderboardaccount.js";
29
27
  export * from "./leaderboardcity.js";
@@ -161,5 +159,5 @@ export * from "./v1livenessresponsebody.js";
161
159
  export * from "./v1searchrequest.js";
162
160
  export * from "./v1stats.js";
163
161
  export * from "./v1vanityanalytics.js";
164
- export * from "./vanitystruct.js";
162
+ export * from "./vanitysearch.js";
165
163
  export * from "./vectors.js";
@@ -7,11 +7,11 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- IDStruct,
11
- IDStruct$inboundSchema,
12
- IDStruct$Outbound,
13
- IDStruct$outboundSchema,
14
- } from "./idstruct.js";
10
+ IDSearch,
11
+ IDSearch$inboundSchema,
12
+ IDSearch$Outbound,
13
+ IDSearch$outboundSchema,
14
+ } from "./idsearch.js";
15
15
  import {
16
16
  V1AppFilters,
17
17
  V1AppFilters$inboundSchema,
@@ -25,19 +25,19 @@ import {
25
25
  V1AppOrder$outboundSchema,
26
26
  } from "./v1apporder.js";
27
27
  import {
28
- VanityStruct,
29
- VanityStruct$inboundSchema,
30
- VanityStruct$Outbound,
31
- VanityStruct$outboundSchema,
32
- } from "./vanitystruct.js";
28
+ VanitySearch,
29
+ VanitySearch$inboundSchema,
30
+ VanitySearch$Outbound,
31
+ VanitySearch$outboundSchema,
32
+ } from "./vanitysearch.js";
33
33
 
34
34
  export type V1AccountListAppsRequestBody = {
35
35
  filters?: V1AppFilters | undefined;
36
- id?: IDStruct | undefined;
36
+ id?: IDSearch | undefined;
37
37
  order?: V1AppOrder | null | undefined;
38
38
  page?: number | undefined;
39
39
  search?: string | null | undefined;
40
- vanity?: VanityStruct | undefined;
40
+ vanity?: VanitySearch | undefined;
41
41
  };
42
42
 
43
43
  /** @internal */
@@ -47,21 +47,21 @@ export const V1AccountListAppsRequestBody$inboundSchema: z.ZodType<
47
47
  unknown
48
48
  > = z.object({
49
49
  filters: V1AppFilters$inboundSchema.optional(),
50
- id: IDStruct$inboundSchema.optional(),
50
+ id: IDSearch$inboundSchema.optional(),
51
51
  order: z.nullable(V1AppOrder$inboundSchema).optional(),
52
52
  page: z.number().int().default(1),
53
53
  search: z.nullable(z.string()).optional(),
54
- vanity: VanityStruct$inboundSchema.optional(),
54
+ vanity: VanitySearch$inboundSchema.optional(),
55
55
  });
56
56
 
57
57
  /** @internal */
58
58
  export type V1AccountListAppsRequestBody$Outbound = {
59
59
  filters?: V1AppFilters$Outbound | undefined;
60
- id?: IDStruct$Outbound | undefined;
60
+ id?: IDSearch$Outbound | undefined;
61
61
  order?: V1AppOrder$Outbound | null | undefined;
62
62
  page: number;
63
63
  search?: string | null | undefined;
64
- vanity?: VanityStruct$Outbound | undefined;
64
+ vanity?: VanitySearch$Outbound | undefined;
65
65
  };
66
66
 
67
67
  /** @internal */
@@ -71,11 +71,11 @@ export const V1AccountListAppsRequestBody$outboundSchema: z.ZodType<
71
71
  V1AccountListAppsRequestBody
72
72
  > = z.object({
73
73
  filters: V1AppFilters$outboundSchema.optional(),
74
- id: IDStruct$outboundSchema.optional(),
74
+ id: IDSearch$outboundSchema.optional(),
75
75
  order: z.nullable(V1AppOrder$outboundSchema).optional(),
76
76
  page: z.number().int().default(1),
77
77
  search: z.nullable(z.string()).optional(),
78
- vanity: VanityStruct$outboundSchema.optional(),
78
+ vanity: VanitySearch$outboundSchema.optional(),
79
79
  });
80
80
 
81
81
  /**
@@ -14,11 +14,11 @@ import {
14
14
  BadgeValueFilter$outboundSchema,
15
15
  } from "./badgevaluefilter.js";
16
16
  import {
17
- IDStruct,
18
- IDStruct$inboundSchema,
19
- IDStruct$Outbound,
20
- IDStruct$outboundSchema,
21
- } from "./idstruct.js";
17
+ IDSearch,
18
+ IDSearch$inboundSchema,
19
+ IDSearch$Outbound,
20
+ IDSearch$outboundSchema,
21
+ } from "./idsearch.js";
22
22
  import {
23
23
  V1BadgeFilters,
24
24
  V1BadgeFilters$inboundSchema,
@@ -32,11 +32,11 @@ import {
32
32
  V1BadgeOrder$outboundSchema,
33
33
  } from "./v1badgeorder.js";
34
34
  import {
35
- VanityStruct,
36
- VanityStruct$inboundSchema,
37
- VanityStruct$Outbound,
38
- VanityStruct$outboundSchema,
39
- } from "./vanitystruct.js";
35
+ VanitySearch,
36
+ VanitySearch$inboundSchema,
37
+ VanitySearch$Outbound,
38
+ VanitySearch$outboundSchema,
39
+ } from "./vanitysearch.js";
40
40
 
41
41
  export const V1AccountListBadgesRequestBodyFilter = {
42
42
  Foil: "foil",
@@ -53,7 +53,7 @@ export type V1AccountListBadgesRequestBody = {
53
53
  */
54
54
  filter?: Array<V1AccountListBadgesRequestBodyFilter> | null | undefined;
55
55
  filters?: V1BadgeFilters | undefined;
56
- id?: IDStruct | undefined;
56
+ id?: IDSearch | undefined;
57
57
  order?: V1BadgeOrder | null | undefined;
58
58
  page?: number | undefined;
59
59
  search?: string | null | undefined;
@@ -61,7 +61,7 @@ export type V1AccountListBadgesRequestBody = {
61
61
  * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
62
62
  */
63
63
  valueFilter?: Array<BadgeValueFilter> | null | undefined;
64
- vanity?: VanityStruct | undefined;
64
+ vanity?: VanitySearch | undefined;
65
65
  };
66
66
 
67
67
  /** @internal */
@@ -98,24 +98,24 @@ export const V1AccountListBadgesRequestBody$inboundSchema: z.ZodType<
98
98
  z.array(V1AccountListBadgesRequestBodyFilter$inboundSchema),
99
99
  ).optional(),
100
100
  filters: V1BadgeFilters$inboundSchema.optional(),
101
- id: IDStruct$inboundSchema.optional(),
101
+ id: IDSearch$inboundSchema.optional(),
102
102
  order: z.nullable(V1BadgeOrder$inboundSchema).optional(),
103
103
  page: z.number().int().default(1),
104
104
  search: z.nullable(z.string()).optional(),
105
105
  valueFilter: z.nullable(z.array(BadgeValueFilter$inboundSchema)).optional(),
106
- vanity: VanityStruct$inboundSchema.optional(),
106
+ vanity: VanitySearch$inboundSchema.optional(),
107
107
  });
108
108
 
109
109
  /** @internal */
110
110
  export type V1AccountListBadgesRequestBody$Outbound = {
111
111
  filter?: Array<string> | null | undefined;
112
112
  filters?: V1BadgeFilters$Outbound | undefined;
113
- id?: IDStruct$Outbound | undefined;
113
+ id?: IDSearch$Outbound | undefined;
114
114
  order?: V1BadgeOrder$Outbound | null | undefined;
115
115
  page: number;
116
116
  search?: string | null | undefined;
117
117
  valueFilter?: Array<BadgeValueFilter$Outbound> | null | undefined;
118
- vanity?: VanityStruct$Outbound | undefined;
118
+ vanity?: VanitySearch$Outbound | undefined;
119
119
  };
120
120
 
121
121
  /** @internal */
@@ -128,12 +128,12 @@ export const V1AccountListBadgesRequestBody$outboundSchema: z.ZodType<
128
128
  z.array(V1AccountListBadgesRequestBodyFilter$outboundSchema),
129
129
  ).optional(),
130
130
  filters: V1BadgeFilters$outboundSchema.optional(),
131
- id: IDStruct$outboundSchema.optional(),
131
+ id: IDSearch$outboundSchema.optional(),
132
132
  order: z.nullable(V1BadgeOrder$outboundSchema).optional(),
133
133
  page: z.number().int().default(1),
134
134
  search: z.nullable(z.string()).optional(),
135
135
  valueFilter: z.nullable(z.array(BadgeValueFilter$outboundSchema)).optional(),
136
- vanity: VanityStruct$outboundSchema.optional(),
136
+ vanity: VanitySearch$outboundSchema.optional(),
137
137
  });
138
138
 
139
139
  /**