@steamsets/client-ts 0.11.20 → 0.11.22

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 (64) hide show
  1. package/docs/sdks/account/README.md +2 -0
  2. package/docs/sdks/settings/README.md +2 -0
  3. package/lib/config.d.ts +2 -2
  4. package/lib/config.js +2 -2
  5. package/models/components/accountbadgeinfo.d.ts +38 -0
  6. package/models/components/accountbadgeinfo.d.ts.map +1 -0
  7. package/models/components/{leaderboardaccountbadgeinfo.js → accountbadgeinfo.js} +11 -11
  8. package/models/components/accountbadgeinfo.js.map +1 -0
  9. package/models/components/index.d.ts +1 -5
  10. package/models/components/index.d.ts.map +1 -1
  11. package/models/components/index.js +1 -5
  12. package/models/components/index.js.map +1 -1
  13. package/models/components/v1accountdatapointsresponsebody.d.ts +5 -6
  14. package/models/components/v1accountdatapointsresponsebody.d.ts.map +1 -1
  15. package/models/components/v1accountdatapointsresponsebody.js +5 -6
  16. package/models/components/v1accountdatapointsresponsebody.js.map +1 -1
  17. package/models/components/v1accountleaderboardaccount.d.ts +3 -3
  18. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  19. package/models/components/v1accountleaderboardaccount.js +3 -3
  20. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  21. package/models/components/v1appbadge.d.ts +25 -7
  22. package/models/components/v1appbadge.d.ts.map +1 -1
  23. package/models/components/v1appbadge.js +19 -7
  24. package/models/components/v1appbadge.js.map +1 -1
  25. package/models/components/v1badgesresponsebody.d.ts +3 -3
  26. package/models/components/v1badgesresponsebody.d.ts.map +1 -1
  27. package/models/components/v1badgesresponsebody.js +3 -3
  28. package/models/components/v1badgesresponsebody.js.map +1 -1
  29. package/models/components/v1updatesettingsrequestbody.d.ts +48 -0
  30. package/models/components/v1updatesettingsrequestbody.d.ts.map +1 -1
  31. package/models/components/v1updatesettingsrequestbody.js +29 -1
  32. package/models/components/v1updatesettingsrequestbody.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/lib/config.ts +2 -2
  35. package/src/models/components/{leaderboardaccountbadgeinfo.ts → accountbadgeinfo.ts} +14 -14
  36. package/src/models/components/index.ts +1 -5
  37. package/src/models/components/v1accountdatapointsresponsebody.ts +14 -20
  38. package/src/models/components/v1accountleaderboardaccount.ts +9 -9
  39. package/src/models/components/v1appbadge.ts +47 -17
  40. package/src/models/components/v1badgesresponsebody.ts +9 -9
  41. package/src/models/components/v1updatesettingsrequestbody.ts +46 -0
  42. package/models/components/leaderboardaccountbadgeinfo.d.ts +0 -38
  43. package/models/components/leaderboardaccountbadgeinfo.d.ts.map +0 -1
  44. package/models/components/leaderboardaccountbadgeinfo.js.map +0 -1
  45. package/models/components/v1accountappbadge.d.ts +0 -55
  46. package/models/components/v1accountappbadge.d.ts.map +0 -1
  47. package/models/components/v1accountappbadge.js +0 -80
  48. package/models/components/v1accountappbadge.js.map +0 -1
  49. package/models/components/v1accountbadgecompletion.d.ts +0 -29
  50. package/models/components/v1accountbadgecompletion.d.ts.map +0 -1
  51. package/models/components/v1accountbadgecompletion.js +0 -54
  52. package/models/components/v1accountbadgecompletion.js.map +0 -1
  53. package/models/components/v1accountbadgemostxpdatapoint.d.ts +0 -83
  54. package/models/components/v1accountbadgemostxpdatapoint.d.ts.map +0 -1
  55. package/models/components/v1accountbadgemostxpdatapoint.js +0 -72
  56. package/models/components/v1accountbadgemostxpdatapoint.js.map +0 -1
  57. package/models/components/v1accountbadgescarcitydatapoint.d.ts +0 -83
  58. package/models/components/v1accountbadgescarcitydatapoint.d.ts.map +0 -1
  59. package/models/components/v1accountbadgescarcitydatapoint.js +0 -72
  60. package/models/components/v1accountbadgescarcitydatapoint.js.map +0 -1
  61. package/src/models/components/v1accountappbadge.ts +0 -107
  62. package/src/models/components/v1accountbadgecompletion.ts +0 -55
  63. package/src/models/components/v1accountbadgemostxpdatapoint.ts +0 -127
  64. package/src/models/components/v1accountbadgescarcitydatapoint.ts +0 -127
@@ -1 +1 @@
1
- {"version":3,"file":"v1badgesresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1badgesresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,iEAKgC;AAUhC,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,sDAA+B,CAAC,CAAC;CAC7D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,uDAAgC,CAAC,CAAC;CAC9D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC"}
1
+ {"version":3,"file":"v1badgesresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1badgesresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,mDAKyB;AAUzB,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,wCAAwB,CAAC,CAAC;CACtD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,yCAAyB,CAAC,CAAC;CACvD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC"}
@@ -1,6 +1,21 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
3
  import { EmailNotification, EmailNotification$Outbound } from "./emailnotification.js";
4
+ /**
5
+ * The role the account should have between one of the 6 donation roles
6
+ */
7
+ export declare const V1UpdateSettingsRequestBodyRole: {
8
+ readonly Amber: "amber";
9
+ readonly Amethyst: "amethyst";
10
+ readonly Emerald: "emerald";
11
+ readonly Sapphire: "sapphire";
12
+ readonly Ruby: "ruby";
13
+ readonly Diamond: "diamond";
14
+ };
15
+ /**
16
+ * The role the account should have between one of the 6 donation roles
17
+ */
18
+ export type V1UpdateSettingsRequestBodyRole = ClosedEnum<typeof V1UpdateSettingsRequestBodyRole>;
4
19
  /**
5
20
  * The theme the account should use, only if the account is private
6
21
  */
@@ -37,6 +52,10 @@ export type V1UpdateSettingsRequestBody = {
37
52
  * The language the account should use, only if the account is private
38
53
  */
39
54
  language: string;
55
+ /**
56
+ * The role the account should have between one of the 6 donation roles
57
+ */
58
+ role: V1UpdateSettingsRequestBodyRole | null;
40
59
  /**
41
60
  * The theme the account should use, only if the account is private
42
61
  */
@@ -47,6 +66,34 @@ export type V1UpdateSettingsRequestBody = {
47
66
  vanity: string;
48
67
  };
49
68
  /** @internal */
69
+ export declare const V1UpdateSettingsRequestBodyRole$inboundSchema: z.ZodNativeEnum<typeof V1UpdateSettingsRequestBodyRole>;
70
+ /** @internal */
71
+ export declare const V1UpdateSettingsRequestBodyRole$outboundSchema: z.ZodNativeEnum<typeof V1UpdateSettingsRequestBodyRole>;
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export declare namespace V1UpdateSettingsRequestBodyRole$ {
77
+ /** @deprecated use `V1UpdateSettingsRequestBodyRole$inboundSchema` instead. */
78
+ const inboundSchema: z.ZodNativeEnum<{
79
+ readonly Amber: "amber";
80
+ readonly Amethyst: "amethyst";
81
+ readonly Emerald: "emerald";
82
+ readonly Sapphire: "sapphire";
83
+ readonly Ruby: "ruby";
84
+ readonly Diamond: "diamond";
85
+ }>;
86
+ /** @deprecated use `V1UpdateSettingsRequestBodyRole$outboundSchema` instead. */
87
+ const outboundSchema: z.ZodNativeEnum<{
88
+ readonly Amber: "amber";
89
+ readonly Amethyst: "amethyst";
90
+ readonly Emerald: "emerald";
91
+ readonly Sapphire: "sapphire";
92
+ readonly Ruby: "ruby";
93
+ readonly Diamond: "diamond";
94
+ }>;
95
+ }
96
+ /** @internal */
50
97
  export declare const V1UpdateSettingsRequestBodyTheme$inboundSchema: z.ZodNativeEnum<typeof V1UpdateSettingsRequestBodyTheme>;
51
98
  /** @internal */
52
99
  export declare const V1UpdateSettingsRequestBodyTheme$outboundSchema: z.ZodNativeEnum<typeof V1UpdateSettingsRequestBodyTheme>;
@@ -76,6 +123,7 @@ export type V1UpdateSettingsRequestBody$Outbound = {
76
123
  emailNotifications: Array<EmailNotification$Outbound> | null;
77
124
  hidden: boolean;
78
125
  language: string;
126
+ role: string | null;
79
127
  theme: string;
80
128
  vanity: string;
81
129
  };
@@ -1 +1 @@
1
- {"version":3,"file":"v1updatesettingsrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1updatesettingsrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IACpD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KA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"v1updatesettingsrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1updatesettingsrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;CAOlC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gCAAgC;;;CAGnC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IACpD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,EAAE,+BAA+B,GAAG,IAAI,CAAC;IAC7C;;OAEG;IACH,KAAK,EAAE,gCAAgC,CAAC;IACxC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,aAAa,CACzE,OAAO,+BAA+B,CACS,CAAC;AAElD,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,+BAA+B,CACS,CAAC;AAElD;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC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ACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
@@ -26,9 +26,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.V1UpdateSettingsRequestBody$ = exports.V1UpdateSettingsRequestBody$outboundSchema = exports.V1UpdateSettingsRequestBody$inboundSchema = exports.V1UpdateSettingsRequestBodyTheme$ = exports.V1UpdateSettingsRequestBodyTheme$outboundSchema = exports.V1UpdateSettingsRequestBodyTheme$inboundSchema = exports.V1UpdateSettingsRequestBodyTheme = void 0;
29
+ exports.V1UpdateSettingsRequestBody$ = exports.V1UpdateSettingsRequestBody$outboundSchema = exports.V1UpdateSettingsRequestBody$inboundSchema = exports.V1UpdateSettingsRequestBodyTheme$ = exports.V1UpdateSettingsRequestBodyTheme$outboundSchema = exports.V1UpdateSettingsRequestBodyTheme$inboundSchema = exports.V1UpdateSettingsRequestBodyRole$ = exports.V1UpdateSettingsRequestBodyRole$outboundSchema = exports.V1UpdateSettingsRequestBodyRole$inboundSchema = exports.V1UpdateSettingsRequestBodyTheme = exports.V1UpdateSettingsRequestBodyRole = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const emailnotification_js_1 = require("./emailnotification.js");
32
+ /**
33
+ * The role the account should have between one of the 6 donation roles
34
+ */
35
+ exports.V1UpdateSettingsRequestBodyRole = {
36
+ Amber: "amber",
37
+ Amethyst: "amethyst",
38
+ Emerald: "emerald",
39
+ Sapphire: "sapphire",
40
+ Ruby: "ruby",
41
+ Diamond: "diamond",
42
+ };
32
43
  /**
33
44
  * The theme the account should use, only if the account is private
34
45
  */
@@ -37,6 +48,21 @@ exports.V1UpdateSettingsRequestBodyTheme = {
37
48
  Light: "light",
38
49
  };
39
50
  /** @internal */
51
+ exports.V1UpdateSettingsRequestBodyRole$inboundSchema = z.nativeEnum(exports.V1UpdateSettingsRequestBodyRole);
52
+ /** @internal */
53
+ exports.V1UpdateSettingsRequestBodyRole$outboundSchema = exports.V1UpdateSettingsRequestBodyRole$inboundSchema;
54
+ /**
55
+ * @internal
56
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
+ */
58
+ var V1UpdateSettingsRequestBodyRole$;
59
+ (function (V1UpdateSettingsRequestBodyRole$) {
60
+ /** @deprecated use `V1UpdateSettingsRequestBodyRole$inboundSchema` instead. */
61
+ V1UpdateSettingsRequestBodyRole$.inboundSchema = exports.V1UpdateSettingsRequestBodyRole$inboundSchema;
62
+ /** @deprecated use `V1UpdateSettingsRequestBodyRole$outboundSchema` instead. */
63
+ V1UpdateSettingsRequestBodyRole$.outboundSchema = exports.V1UpdateSettingsRequestBodyRole$outboundSchema;
64
+ })(V1UpdateSettingsRequestBodyRole$ || (exports.V1UpdateSettingsRequestBodyRole$ = V1UpdateSettingsRequestBodyRole$ = {}));
65
+ /** @internal */
40
66
  exports.V1UpdateSettingsRequestBodyTheme$inboundSchema = z.nativeEnum(exports.V1UpdateSettingsRequestBodyTheme);
41
67
  /** @internal */
42
68
  exports.V1UpdateSettingsRequestBodyTheme$outboundSchema = exports.V1UpdateSettingsRequestBodyTheme$inboundSchema;
@@ -59,6 +85,7 @@ exports.V1UpdateSettingsRequestBody$inboundSchema = z.object({
59
85
  emailNotifications: z.nullable(z.array(emailnotification_js_1.EmailNotification$inboundSchema)),
60
86
  hidden: z.boolean(),
61
87
  language: z.string(),
88
+ role: z.nullable(exports.V1UpdateSettingsRequestBodyRole$inboundSchema),
62
89
  theme: exports.V1UpdateSettingsRequestBodyTheme$inboundSchema,
63
90
  vanity: z.string(),
64
91
  });
@@ -70,6 +97,7 @@ exports.V1UpdateSettingsRequestBody$outboundSchema = z.object({
70
97
  emailNotifications: z.nullable(z.array(emailnotification_js_1.EmailNotification$outboundSchema)),
71
98
  hidden: z.boolean(),
72
99
  language: z.string(),
100
+ role: z.nullable(exports.V1UpdateSettingsRequestBodyRole$outboundSchema),
73
101
  theme: exports.V1UpdateSettingsRequestBodyTheme$outboundSchema,
74
102
  vanity: z.string(),
75
103
  });
@@ -1 +1 @@
1
- {"version":3,"file":"v1updatesettingsrequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1updatesettingsrequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAEzB,iEAKgC;AAEhC;;GAEG;AACU,QAAA,gCAAgC,GAAG;IAC9C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AA2CX,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,wCAAgC,CAAC,CAAC;AAEnD,gBAAgB;AACH,QAAA,+CAA+C,GAExD,sDAA8C,CAAC;AAEnD;;;GAGG;AACH,IAAiB,iCAAiC,CAKjD;AALD,WAAiB,iCAAiC;IAChD,gFAAgF;IACnE,+CAAa,GAAG,sDAA8C,CAAC;IAC5E,iFAAiF;IACpE,gDAAc,GAAG,uDAA+C,CAAC;AAChF,CAAC,EALgB,iCAAiC,iDAAjC,iCAAiC,QAKjD;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,sDAA+B,CAAC,CAAC;IACxE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,sDAA8C;IACrD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAcH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,uDAAgC,CAAC,CAAC;IACzE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,uDAA+C;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
1
+ {"version":3,"file":"v1updatesettingsrequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1updatesettingsrequestbody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAEzB,iEAKgC;AAEhC;;GAEG;AACU,QAAA,+BAA+B,GAAG;IAC7C,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;CACV,CAAC;AAQX;;GAEG;AACU,QAAA,gCAAgC,GAAG;IAC9C,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACN,CAAC;AA+CX,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,CAAC,CAAC,UAAU,CAAC,uCAA+B,CAAC,CAAC;AAElD,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,qDAA6C,CAAC;AAElD;;;GAGG;AACH,IAAiB,gCAAgC,CAKhD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AkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,uDAAgC,CAAC,CAAC;IACzE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA8C,CAAC;IAChE,KAAK,EAAE,uDAA+C;IACtD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steamsets/client-ts",
3
- "version": "0.11.20",
3
+ "version": "0.11.22",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
package/src/lib/config.ts CHANGED
@@ -55,8 +55,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
55
55
  export const SDK_METADATA = {
56
56
  language: "typescript",
57
57
  openapiDocVersion: "1.0.0",
58
- sdkVersion: "0.11.20",
58
+ sdkVersion: "0.11.22",
59
59
  genVersion: "2.438.15",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.11.20 2.438.15 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.11.22 2.438.15 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -4,7 +4,7 @@
4
4
 
5
5
  import * as z from "zod";
6
6
 
7
- export type LeaderboardAccountBadgeInfo = {
7
+ export type AccountBadgeInfo = {
8
8
  /**
9
9
  * The time the badge was completed
10
10
  */
@@ -20,8 +20,8 @@ export type LeaderboardAccountBadgeInfo = {
20
20
  };
21
21
 
22
22
  /** @internal */
23
- export const LeaderboardAccountBadgeInfo$inboundSchema: z.ZodType<
24
- LeaderboardAccountBadgeInfo,
23
+ export const AccountBadgeInfo$inboundSchema: z.ZodType<
24
+ AccountBadgeInfo,
25
25
  z.ZodTypeDef,
26
26
  unknown
27
27
  > = z.object({
@@ -33,17 +33,17 @@ export const LeaderboardAccountBadgeInfo$inboundSchema: z.ZodType<
33
33
  });
34
34
 
35
35
  /** @internal */
36
- export type LeaderboardAccountBadgeInfo$Outbound = {
36
+ export type AccountBadgeInfo$Outbound = {
37
37
  completionTime: string;
38
38
  level: number;
39
39
  xp: number;
40
40
  };
41
41
 
42
42
  /** @internal */
43
- export const LeaderboardAccountBadgeInfo$outboundSchema: z.ZodType<
44
- LeaderboardAccountBadgeInfo$Outbound,
43
+ export const AccountBadgeInfo$outboundSchema: z.ZodType<
44
+ AccountBadgeInfo$Outbound,
45
45
  z.ZodTypeDef,
46
- LeaderboardAccountBadgeInfo
46
+ AccountBadgeInfo
47
47
  > = z.object({
48
48
  completionTime: z.date().transform(v => v.toISOString()),
49
49
  level: z.number().int(),
@@ -54,11 +54,11 @@ export const LeaderboardAccountBadgeInfo$outboundSchema: z.ZodType<
54
54
  * @internal
55
55
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
56
  */
57
- export namespace LeaderboardAccountBadgeInfo$ {
58
- /** @deprecated use `LeaderboardAccountBadgeInfo$inboundSchema` instead. */
59
- export const inboundSchema = LeaderboardAccountBadgeInfo$inboundSchema;
60
- /** @deprecated use `LeaderboardAccountBadgeInfo$outboundSchema` instead. */
61
- export const outboundSchema = LeaderboardAccountBadgeInfo$outboundSchema;
62
- /** @deprecated use `LeaderboardAccountBadgeInfo$Outbound` instead. */
63
- export type Outbound = LeaderboardAccountBadgeInfo$Outbound;
57
+ export namespace AccountBadgeInfo$ {
58
+ /** @deprecated use `AccountBadgeInfo$inboundSchema` instead. */
59
+ export const inboundSchema = AccountBadgeInfo$inboundSchema;
60
+ /** @deprecated use `AccountBadgeInfo$outboundSchema` instead. */
61
+ export const outboundSchema = AccountBadgeInfo$outboundSchema;
62
+ /** @deprecated use `AccountBadgeInfo$Outbound` instead. */
63
+ export type Outbound = AccountBadgeInfo$Outbound;
64
64
  }
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ export * from "./accountbadgeinfo.js";
5
6
  export * from "./accountinfobody.js";
6
7
  export * from "./accountleaderboardhistory.js";
7
8
  export * from "./accountsearch.js";
@@ -21,7 +22,6 @@ export * from "./httpmetadata.js";
21
22
  export * from "./idstruct.js";
22
23
  export * from "./image.js";
23
24
  export * from "./leaderboardaccount.js";
24
- export * from "./leaderboardaccountbadgeinfo.js";
25
25
  export * from "./leaderboardcity.js";
26
26
  export * from "./leaderboardcountry.js";
27
27
  export * from "./leaderboardregion.js";
@@ -35,10 +35,6 @@ export * from "./session.js";
35
35
  export * from "./setdesigntag.js";
36
36
  export * from "./state.js";
37
37
  export * from "./v1accountapp.js";
38
- export * from "./v1accountappbadge.js";
39
- export * from "./v1accountbadgecompletion.js";
40
- export * from "./v1accountbadgemostxpdatapoint.js";
41
- export * from "./v1accountbadgescarcitydatapoint.js";
42
38
  export * from "./v1accountdatapointsresponsebody.js";
43
39
  export * from "./v1accountdeveloperappdeleterequestbody.js";
44
40
  export * from "./v1accountdeveloperappdeleteresponsebody.js";
@@ -4,33 +4,27 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import {
8
- V1AccountBadgeMostXpDataPoint,
9
- V1AccountBadgeMostXpDataPoint$inboundSchema,
10
- V1AccountBadgeMostXpDataPoint$Outbound,
11
- V1AccountBadgeMostXpDataPoint$outboundSchema,
12
- } from "./v1accountbadgemostxpdatapoint.js";
13
- import {
14
- V1AccountBadgeScarcityDataPoint,
15
- V1AccountBadgeScarcityDataPoint$inboundSchema,
16
- V1AccountBadgeScarcityDataPoint$Outbound,
17
- V1AccountBadgeScarcityDataPoint$outboundSchema,
18
- } from "./v1accountbadgescarcitydatapoint.js";
19
7
  import {
20
8
  V1AccountPlaytimeDataPoint,
21
9
  V1AccountPlaytimeDataPoint$inboundSchema,
22
10
  V1AccountPlaytimeDataPoint$Outbound,
23
11
  V1AccountPlaytimeDataPoint$outboundSchema,
24
12
  } from "./v1accountplaytimedatapoint.js";
13
+ import {
14
+ V1AppBadge,
15
+ V1AppBadge$inboundSchema,
16
+ V1AppBadge$Outbound,
17
+ V1AppBadge$outboundSchema,
18
+ } from "./v1appbadge.js";
25
19
 
26
20
  export type V1AccountDataPointsResponseBody = {
27
21
  /**
28
22
  * A URL to the JSON Schema for this object.
29
23
  */
30
24
  dollarSchema?: string | undefined;
31
- mostXp: Array<V1AccountBadgeMostXpDataPoint> | null;
25
+ mostXp: Array<V1AppBadge> | null;
32
26
  playtime: Array<V1AccountPlaytimeDataPoint> | null;
33
- scarcity: Array<V1AccountBadgeScarcityDataPoint> | null;
27
+ scarcity: Array<V1AppBadge> | null;
34
28
  xp: { [k: string]: { [k: string]: number } };
35
29
  };
36
30
 
@@ -41,9 +35,9 @@ export const V1AccountDataPointsResponseBody$inboundSchema: z.ZodType<
41
35
  unknown
42
36
  > = z.object({
43
37
  $schema: z.string().optional(),
44
- mostXp: z.nullable(z.array(V1AccountBadgeMostXpDataPoint$inboundSchema)),
38
+ mostXp: z.nullable(z.array(V1AppBadge$inboundSchema)),
45
39
  playtime: z.nullable(z.array(V1AccountPlaytimeDataPoint$inboundSchema)),
46
- scarcity: z.nullable(z.array(V1AccountBadgeScarcityDataPoint$inboundSchema)),
40
+ scarcity: z.nullable(z.array(V1AppBadge$inboundSchema)),
47
41
  xp: z.record(z.record(z.number().int())),
48
42
  }).transform((v) => {
49
43
  return remap$(v, {
@@ -54,9 +48,9 @@ export const V1AccountDataPointsResponseBody$inboundSchema: z.ZodType<
54
48
  /** @internal */
55
49
  export type V1AccountDataPointsResponseBody$Outbound = {
56
50
  $schema?: string | undefined;
57
- mostXp: Array<V1AccountBadgeMostXpDataPoint$Outbound> | null;
51
+ mostXp: Array<V1AppBadge$Outbound> | null;
58
52
  playtime: Array<V1AccountPlaytimeDataPoint$Outbound> | null;
59
- scarcity: Array<V1AccountBadgeScarcityDataPoint$Outbound> | null;
53
+ scarcity: Array<V1AppBadge$Outbound> | null;
60
54
  xp: { [k: string]: { [k: string]: number } };
61
55
  };
62
56
 
@@ -67,9 +61,9 @@ export const V1AccountDataPointsResponseBody$outboundSchema: z.ZodType<
67
61
  V1AccountDataPointsResponseBody
68
62
  > = z.object({
69
63
  dollarSchema: z.string().optional(),
70
- mostXp: z.nullable(z.array(V1AccountBadgeMostXpDataPoint$outboundSchema)),
64
+ mostXp: z.nullable(z.array(V1AppBadge$outboundSchema)),
71
65
  playtime: z.nullable(z.array(V1AccountPlaytimeDataPoint$outboundSchema)),
72
- scarcity: z.nullable(z.array(V1AccountBadgeScarcityDataPoint$outboundSchema)),
66
+ scarcity: z.nullable(z.array(V1AppBadge$outboundSchema)),
73
67
  xp: z.record(z.record(z.number().int())),
74
68
  }).transform((v) => {
75
69
  return remap$(v, {
@@ -4,11 +4,11 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import {
7
- LeaderboardAccountBadgeInfo,
8
- LeaderboardAccountBadgeInfo$inboundSchema,
9
- LeaderboardAccountBadgeInfo$Outbound,
10
- LeaderboardAccountBadgeInfo$outboundSchema,
11
- } from "./leaderboardaccountbadgeinfo.js";
7
+ AccountBadgeInfo,
8
+ AccountBadgeInfo$inboundSchema,
9
+ AccountBadgeInfo$Outbound,
10
+ AccountBadgeInfo$outboundSchema,
11
+ } from "./accountbadgeinfo.js";
12
12
  import {
13
13
  LeaderboardCity,
14
14
  LeaderboardCity$inboundSchema,
@@ -69,7 +69,7 @@ export type V1AccountLeaderboardAccount = {
69
69
  * The number of awards the account has
70
70
  */
71
71
  awardsReceived: number;
72
- badgeInfo?: LeaderboardAccountBadgeInfo | null | undefined;
72
+ badgeInfo?: AccountBadgeInfo | null | undefined;
73
73
  /**
74
74
  * The number of badges the account has
75
75
  */
@@ -193,7 +193,7 @@ export const V1AccountLeaderboardAccount$inboundSchema: z.ZodType<
193
193
  averagePlaytime: z.number().int(),
194
194
  awardsGiven: z.number().int(),
195
195
  awardsReceived: z.number().int(),
196
- badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$inboundSchema).optional(),
196
+ badgeInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
197
197
  badges: z.number().int(),
198
198
  bans: z.number().int(),
199
199
  city: z.nullable(LeaderboardCity$inboundSchema).optional(),
@@ -235,7 +235,7 @@ export type V1AccountLeaderboardAccount$Outbound = {
235
235
  averagePlaytime: number;
236
236
  awardsGiven: number;
237
237
  awardsReceived: number;
238
- badgeInfo?: LeaderboardAccountBadgeInfo$Outbound | null | undefined;
238
+ badgeInfo?: AccountBadgeInfo$Outbound | null | undefined;
239
239
  badges: number;
240
240
  bans: number;
241
241
  city?: LeaderboardCity$Outbound | null | undefined;
@@ -281,7 +281,7 @@ export const V1AccountLeaderboardAccount$outboundSchema: z.ZodType<
281
281
  averagePlaytime: z.number().int(),
282
282
  awardsGiven: z.number().int(),
283
283
  awardsReceived: z.number().int(),
284
- badgeInfo: z.nullable(LeaderboardAccountBadgeInfo$outboundSchema).optional(),
284
+ badgeInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
285
285
  badges: z.number().int(),
286
286
  bans: z.number().int(),
287
287
  city: z.nullable(LeaderboardCity$outboundSchema).optional(),
@@ -4,26 +4,38 @@
4
4
 
5
5
  import * as z from "zod";
6
6
  import {
7
- V1AccountBadgeCompletion,
8
- V1AccountBadgeCompletion$inboundSchema,
9
- V1AccountBadgeCompletion$Outbound,
10
- V1AccountBadgeCompletion$outboundSchema,
11
- } from "./v1accountbadgecompletion.js";
7
+ AccountBadgeInfo,
8
+ AccountBadgeInfo$inboundSchema,
9
+ AccountBadgeInfo$Outbound,
10
+ AccountBadgeInfo$outboundSchema,
11
+ } from "./accountbadgeinfo.js";
12
12
 
13
13
  export type V1AppBadge = {
14
- accountBadge: V1AccountBadgeCompletion;
14
+ accountInfo?: AccountBadgeInfo | null | undefined;
15
+ appId: number;
16
+ appImage: string;
17
+ appName: string;
18
+ appShortName: string;
15
19
  badgeImage: string;
20
+ /**
21
+ * The level this badge starts at
22
+ */
23
+ baseLevel: number;
24
+ /**
25
+ * The XP the badge gives per level
26
+ */
27
+ baseXp: number;
16
28
  firstCompletion: Date | null;
17
29
  highestLevel: number;
30
+ isEvent: boolean;
18
31
  isFoil: boolean;
32
+ isSale: boolean;
19
33
  lastCompletion: Date | null;
20
- level: number;
21
34
  name: string;
22
35
  price: number;
23
36
  publicId: string;
24
37
  scarcity: number;
25
38
  steamId: number;
26
- xp: number;
27
39
  };
28
40
 
29
41
  /** @internal */
@@ -32,40 +44,52 @@ export const V1AppBadge$inboundSchema: z.ZodType<
32
44
  z.ZodTypeDef,
33
45
  unknown
34
46
  > = z.object({
35
- accountBadge: V1AccountBadgeCompletion$inboundSchema,
47
+ accountInfo: z.nullable(AccountBadgeInfo$inboundSchema).optional(),
48
+ appId: z.number().int(),
49
+ appImage: z.string(),
50
+ appName: z.string(),
51
+ appShortName: z.string(),
36
52
  badgeImage: z.string(),
53
+ baseLevel: z.number().int(),
54
+ baseXp: z.number().int(),
37
55
  firstCompletion: z.nullable(
38
56
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
39
57
  ),
40
58
  highestLevel: z.number().int(),
59
+ isEvent: z.boolean(),
41
60
  isFoil: z.boolean(),
61
+ isSale: z.boolean(),
42
62
  lastCompletion: z.nullable(
43
63
  z.string().datetime({ offset: true }).transform(v => new Date(v)),
44
64
  ),
45
- level: z.number().int(),
46
65
  name: z.string(),
47
66
  price: z.number().int(),
48
67
  publicId: z.string(),
49
68
  scarcity: z.number().int(),
50
69
  steamId: z.number().int(),
51
- xp: z.number().int(),
52
70
  });
53
71
 
54
72
  /** @internal */
55
73
  export type V1AppBadge$Outbound = {
56
- accountBadge: V1AccountBadgeCompletion$Outbound;
74
+ accountInfo?: AccountBadgeInfo$Outbound | null | undefined;
75
+ appId: number;
76
+ appImage: string;
77
+ appName: string;
78
+ appShortName: string;
57
79
  badgeImage: string;
80
+ baseLevel: number;
81
+ baseXp: number;
58
82
  firstCompletion: string | null;
59
83
  highestLevel: number;
84
+ isEvent: boolean;
60
85
  isFoil: boolean;
86
+ isSale: boolean;
61
87
  lastCompletion: string | null;
62
- level: number;
63
88
  name: string;
64
89
  price: number;
65
90
  publicId: string;
66
91
  scarcity: number;
67
92
  steamId: number;
68
- xp: number;
69
93
  };
70
94
 
71
95
  /** @internal */
@@ -74,19 +98,25 @@ export const V1AppBadge$outboundSchema: z.ZodType<
74
98
  z.ZodTypeDef,
75
99
  V1AppBadge
76
100
  > = z.object({
77
- accountBadge: V1AccountBadgeCompletion$outboundSchema,
101
+ accountInfo: z.nullable(AccountBadgeInfo$outboundSchema).optional(),
102
+ appId: z.number().int(),
103
+ appImage: z.string(),
104
+ appName: z.string(),
105
+ appShortName: z.string(),
78
106
  badgeImage: z.string(),
107
+ baseLevel: z.number().int(),
108
+ baseXp: z.number().int(),
79
109
  firstCompletion: z.nullable(z.date().transform(v => v.toISOString())),
80
110
  highestLevel: z.number().int(),
111
+ isEvent: z.boolean(),
81
112
  isFoil: z.boolean(),
113
+ isSale: z.boolean(),
82
114
  lastCompletion: z.nullable(z.date().transform(v => v.toISOString())),
83
- level: z.number().int(),
84
115
  name: z.string(),
85
116
  price: z.number().int(),
86
117
  publicId: z.string(),
87
118
  scarcity: z.number().int(),
88
119
  steamId: z.number().int(),
89
- xp: z.number().int(),
90
120
  });
91
121
 
92
122
  /**
@@ -5,18 +5,18 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import {
8
- V1AccountAppBadge,
9
- V1AccountAppBadge$inboundSchema,
10
- V1AccountAppBadge$Outbound,
11
- V1AccountAppBadge$outboundSchema,
12
- } from "./v1accountappbadge.js";
8
+ V1AppBadge,
9
+ V1AppBadge$inboundSchema,
10
+ V1AppBadge$Outbound,
11
+ V1AppBadge$outboundSchema,
12
+ } from "./v1appbadge.js";
13
13
 
14
14
  export type V1BadgesResponseBody = {
15
15
  /**
16
16
  * A URL to the JSON Schema for this object.
17
17
  */
18
18
  dollarSchema?: string | undefined;
19
- badges: Array<V1AccountAppBadge> | null;
19
+ badges: Array<V1AppBadge> | null;
20
20
  };
21
21
 
22
22
  /** @internal */
@@ -26,7 +26,7 @@ export const V1BadgesResponseBody$inboundSchema: z.ZodType<
26
26
  unknown
27
27
  > = z.object({
28
28
  $schema: z.string().optional(),
29
- badges: z.nullable(z.array(V1AccountAppBadge$inboundSchema)),
29
+ badges: z.nullable(z.array(V1AppBadge$inboundSchema)),
30
30
  }).transform((v) => {
31
31
  return remap$(v, {
32
32
  "$schema": "dollarSchema",
@@ -36,7 +36,7 @@ export const V1BadgesResponseBody$inboundSchema: z.ZodType<
36
36
  /** @internal */
37
37
  export type V1BadgesResponseBody$Outbound = {
38
38
  $schema?: string | undefined;
39
- badges: Array<V1AccountAppBadge$Outbound> | null;
39
+ badges: Array<V1AppBadge$Outbound> | null;
40
40
  };
41
41
 
42
42
  /** @internal */
@@ -46,7 +46,7 @@ export const V1BadgesResponseBody$outboundSchema: z.ZodType<
46
46
  V1BadgesResponseBody
47
47
  > = z.object({
48
48
  dollarSchema: z.string().optional(),
49
- badges: z.nullable(z.array(V1AccountAppBadge$outboundSchema)),
49
+ badges: z.nullable(z.array(V1AppBadge$outboundSchema)),
50
50
  }).transform((v) => {
51
51
  return remap$(v, {
52
52
  dollarSchema: "$schema",