@steamsets/client-ts 0.25.4 → 0.25.5

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 (69) hide show
  1. package/README.md +2 -0
  2. package/docs/sdks/leaderboard/README.md +77 -0
  3. package/funcs/accountCreateConnection.js +1 -1
  4. package/funcs/leaderboardLeaderboardPreviewAccountRank.d.ts +12 -0
  5. package/funcs/leaderboardLeaderboardPreviewAccountRank.d.ts.map +1 -0
  6. package/funcs/leaderboardLeaderboardPreviewAccountRank.js +117 -0
  7. package/funcs/leaderboardLeaderboardPreviewAccountRank.js.map +1 -0
  8. package/jsr.json +1 -1
  9. package/lib/config.d.ts +3 -3
  10. package/lib/config.js +3 -3
  11. package/models/components/index.d.ts +3 -0
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +3 -0
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/leaderboardcity.d.ts +0 -5
  16. package/models/components/leaderboardcity.d.ts.map +1 -1
  17. package/models/components/leaderboardcity.js +0 -2
  18. package/models/components/leaderboardcity.js.map +1 -1
  19. package/models/components/leaderboardcountry.d.ts +0 -5
  20. package/models/components/leaderboardcountry.d.ts.map +1 -1
  21. package/models/components/leaderboardcountry.js +0 -2
  22. package/models/components/leaderboardcountry.js.map +1 -1
  23. package/models/components/leaderboardregion.d.ts +0 -5
  24. package/models/components/leaderboardregion.d.ts.map +1 -1
  25. package/models/components/leaderboardregion.js +0 -2
  26. package/models/components/leaderboardregion.js.map +1 -1
  27. package/models/components/leaderboardstate.d.ts +0 -5
  28. package/models/components/leaderboardstate.d.ts.map +1 -1
  29. package/models/components/leaderboardstate.js +0 -2
  30. package/models/components/leaderboardstate.js.map +1 -1
  31. package/models/components/previewaccount.d.ts +241 -0
  32. package/models/components/previewaccount.d.ts.map +1 -0
  33. package/models/components/previewaccount.js +157 -0
  34. package/models/components/previewaccount.js.map +1 -0
  35. package/models/components/v1leaderboardpreviewaccountrankrequestbody.d.ts +113 -0
  36. package/models/components/v1leaderboardpreviewaccountrankrequestbody.d.ts.map +1 -0
  37. package/models/components/v1leaderboardpreviewaccountrankrequestbody.js +98 -0
  38. package/models/components/v1leaderboardpreviewaccountrankrequestbody.js.map +1 -0
  39. package/models/components/v1leaderboardpreviewaccountrankresponsebody.d.ts +44 -0
  40. package/models/components/v1leaderboardpreviewaccountrankresponsebody.d.ts.map +1 -0
  41. package/models/components/v1leaderboardpreviewaccountrankresponsebody.js +83 -0
  42. package/models/components/v1leaderboardpreviewaccountrankresponsebody.js.map +1 -0
  43. package/models/operations/index.d.ts +1 -0
  44. package/models/operations/index.d.ts.map +1 -1
  45. package/models/operations/index.js +1 -0
  46. package/models/operations/index.js.map +1 -1
  47. package/models/operations/leaderboardpreviewaccountrank.d.ts +35 -0
  48. package/models/operations/leaderboardpreviewaccountrank.d.ts.map +1 -0
  49. package/models/operations/leaderboardpreviewaccountrank.js +75 -0
  50. package/models/operations/leaderboardpreviewaccountrank.js.map +1 -0
  51. package/package.json +1 -1
  52. package/sdk/leaderboard.d.ts +1 -0
  53. package/sdk/leaderboard.d.ts.map +1 -1
  54. package/sdk/leaderboard.js +4 -0
  55. package/sdk/leaderboard.js.map +1 -1
  56. package/src/funcs/accountCreateConnection.ts +1 -1
  57. package/src/funcs/leaderboardLeaderboardPreviewAccountRank.ts +183 -0
  58. package/src/lib/config.ts +3 -3
  59. package/src/models/components/index.ts +3 -0
  60. package/src/models/components/leaderboardcity.ts +0 -7
  61. package/src/models/components/leaderboardcountry.ts +0 -7
  62. package/src/models/components/leaderboardregion.ts +0 -7
  63. package/src/models/components/leaderboardstate.ts +0 -7
  64. package/src/models/components/previewaccount.ts +369 -0
  65. package/src/models/components/v1leaderboardpreviewaccountrankrequestbody.ts +148 -0
  66. package/src/models/components/v1leaderboardpreviewaccountrankresponsebody.ts +122 -0
  67. package/src/models/operations/index.ts +1 -0
  68. package/src/models/operations/leaderboardpreviewaccountrank.ts +98 -0
  69. package/src/sdk/leaderboard.ts +12 -0
@@ -0,0 +1,44 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { PreviewAccount, PreviewAccount$Outbound } from "./previewaccount.js";
5
+ export type V1LeaderboardPreviewAccountRankResponseBody = {
6
+ /**
7
+ * A URL to the JSON Schema for this object.
8
+ */
9
+ dollarSchema?: string | undefined;
10
+ ownAccount: PreviewAccount | null;
11
+ rankedAbove: PreviewAccount | null;
12
+ rankedBelow: PreviewAccount | null;
13
+ /**
14
+ * The number of accounts that are ranked in the leaderboard
15
+ */
16
+ rankedOutOf?: number | undefined;
17
+ };
18
+ /** @internal */
19
+ export declare const V1LeaderboardPreviewAccountRankResponseBody$inboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankResponseBody, z.ZodTypeDef, unknown>;
20
+ /** @internal */
21
+ export type V1LeaderboardPreviewAccountRankResponseBody$Outbound = {
22
+ $schema?: string | undefined;
23
+ OwnAccount: PreviewAccount$Outbound | null;
24
+ RankedAbove: PreviewAccount$Outbound | null;
25
+ RankedBelow: PreviewAccount$Outbound | null;
26
+ rankedOutOf: number;
27
+ };
28
+ /** @internal */
29
+ export declare const V1LeaderboardPreviewAccountRankResponseBody$outboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankResponseBody$Outbound, z.ZodTypeDef, V1LeaderboardPreviewAccountRankResponseBody>;
30
+ /**
31
+ * @internal
32
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
33
+ */
34
+ export declare namespace V1LeaderboardPreviewAccountRankResponseBody$ {
35
+ /** @deprecated use `V1LeaderboardPreviewAccountRankResponseBody$inboundSchema` instead. */
36
+ const inboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankResponseBody, z.ZodTypeDef, unknown>;
37
+ /** @deprecated use `V1LeaderboardPreviewAccountRankResponseBody$outboundSchema` instead. */
38
+ const outboundSchema: z.ZodType<V1LeaderboardPreviewAccountRankResponseBody$Outbound, z.ZodTypeDef, V1LeaderboardPreviewAccountRankResponseBody>;
39
+ /** @deprecated use `V1LeaderboardPreviewAccountRankResponseBody$Outbound` instead. */
40
+ type Outbound = V1LeaderboardPreviewAccountRankResponseBody$Outbound;
41
+ }
42
+ export declare function v1LeaderboardPreviewAccountRankResponseBodyToJSON(v1LeaderboardPreviewAccountRankResponseBody: V1LeaderboardPreviewAccountRankResponseBody): string;
43
+ export declare function v1LeaderboardPreviewAccountRankResponseBodyFromJSON(jsonString: string): SafeParseResult<V1LeaderboardPreviewAccountRankResponseBody, SDKValidationError>;
44
+ //# sourceMappingURL=v1leaderboardpreviewaccountrankresponsebody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1leaderboardpreviewaccountrankresponsebody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1leaderboardpreviewaccountrankresponsebody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,2CAA2C,GAAG;IACxD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,UAAU,EAAE,cAAc,GAAG,IAAI,CAAC;IAClC,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC,WAAW,EAAE,cAAc,GAAG,IAAI,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,OAAO,CACP,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,oDAAoD,GAAG;IACjE,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC3C,WAAW,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC5C,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0DAA0D,EACrE,CAAC,CAAC,OAAO,CACP,oDAAoD,EACpD,CAAC,CAAC,UAAU,EACZ,2CAA2C,CAc3C,CAAC;AAEL;;;GAGG;AACH,yBAAiB,4CAA4C,CAAC;IAC5D,2FAA2F;IACpF,MAAM,aAAa,+EACiC,CAAC;IAC5D,4FAA4F;IACrF,MAAM,cAAc,4HACiC,CAAC;IAC7D,sFAAsF;IACtF,KAAY,QAAQ,GAAG,oDAAoD,CAAC;CAC7E;AAED,wBAAgB,iDAAiD,CAC/D,2CAA2C,EACzC,2CAA2C,GAC5C,MAAM,CAMR;AAED,wBAAgB,mDAAmD,CACjE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,2CAA2C,EAC3C,kBAAkB,CACnB,CASA"}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.V1LeaderboardPreviewAccountRankResponseBody$ = exports.V1LeaderboardPreviewAccountRankResponseBody$outboundSchema = exports.V1LeaderboardPreviewAccountRankResponseBody$inboundSchema = void 0;
30
+ exports.v1LeaderboardPreviewAccountRankResponseBodyToJSON = v1LeaderboardPreviewAccountRankResponseBodyToJSON;
31
+ exports.v1LeaderboardPreviewAccountRankResponseBodyFromJSON = v1LeaderboardPreviewAccountRankResponseBodyFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const primitives_js_1 = require("../../lib/primitives.js");
34
+ const schemas_js_1 = require("../../lib/schemas.js");
35
+ const previewaccount_js_1 = require("./previewaccount.js");
36
+ /** @internal */
37
+ exports.V1LeaderboardPreviewAccountRankResponseBody$inboundSchema = z.object({
38
+ $schema: z.string().optional(),
39
+ OwnAccount: z.nullable(previewaccount_js_1.PreviewAccount$inboundSchema),
40
+ RankedAbove: z.nullable(previewaccount_js_1.PreviewAccount$inboundSchema),
41
+ RankedBelow: z.nullable(previewaccount_js_1.PreviewAccount$inboundSchema),
42
+ rankedOutOf: z.number().int().default(0),
43
+ }).transform((v) => {
44
+ return (0, primitives_js_1.remap)(v, {
45
+ "$schema": "dollarSchema",
46
+ "OwnAccount": "ownAccount",
47
+ "RankedAbove": "rankedAbove",
48
+ "RankedBelow": "rankedBelow",
49
+ });
50
+ });
51
+ /** @internal */
52
+ exports.V1LeaderboardPreviewAccountRankResponseBody$outboundSchema = z.object({
53
+ dollarSchema: z.string().optional(),
54
+ ownAccount: z.nullable(previewaccount_js_1.PreviewAccount$outboundSchema),
55
+ rankedAbove: z.nullable(previewaccount_js_1.PreviewAccount$outboundSchema),
56
+ rankedBelow: z.nullable(previewaccount_js_1.PreviewAccount$outboundSchema),
57
+ rankedOutOf: z.number().int().default(0),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ dollarSchema: "$schema",
61
+ ownAccount: "OwnAccount",
62
+ rankedAbove: "RankedAbove",
63
+ rankedBelow: "RankedBelow",
64
+ });
65
+ });
66
+ /**
67
+ * @internal
68
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
+ */
70
+ var V1LeaderboardPreviewAccountRankResponseBody$;
71
+ (function (V1LeaderboardPreviewAccountRankResponseBody$) {
72
+ /** @deprecated use `V1LeaderboardPreviewAccountRankResponseBody$inboundSchema` instead. */
73
+ V1LeaderboardPreviewAccountRankResponseBody$.inboundSchema = exports.V1LeaderboardPreviewAccountRankResponseBody$inboundSchema;
74
+ /** @deprecated use `V1LeaderboardPreviewAccountRankResponseBody$outboundSchema` instead. */
75
+ V1LeaderboardPreviewAccountRankResponseBody$.outboundSchema = exports.V1LeaderboardPreviewAccountRankResponseBody$outboundSchema;
76
+ })(V1LeaderboardPreviewAccountRankResponseBody$ || (exports.V1LeaderboardPreviewAccountRankResponseBody$ = V1LeaderboardPreviewAccountRankResponseBody$ = {}));
77
+ function v1LeaderboardPreviewAccountRankResponseBodyToJSON(v1LeaderboardPreviewAccountRankResponseBody) {
78
+ return JSON.stringify(exports.V1LeaderboardPreviewAccountRankResponseBody$outboundSchema.parse(v1LeaderboardPreviewAccountRankResponseBody));
79
+ }
80
+ function v1LeaderboardPreviewAccountRankResponseBodyFromJSON(jsonString) {
81
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.V1LeaderboardPreviewAccountRankResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'V1LeaderboardPreviewAccountRankResponseBody' from JSON`);
82
+ }
83
+ //# sourceMappingURL=v1leaderboardpreviewaccountrankresponsebody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1leaderboardpreviewaccountrankresponsebody.js","sourceRoot":"","sources":["../../src/models/components/v1leaderboardpreviewaccountrankresponsebody.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA8FH,8GASC;AAED,kHAcC;AArHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,2DAK6B;AAgB7B,gBAAgB;AACH,QAAA,yDAAyD,GAKhE,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,gDAA4B,CAAC;IACpD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,gDAA4B,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,gDAA4B,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,cAAc;QACzB,YAAY,EAAE,YAAY;QAC1B,aAAa,EAAE,aAAa;QAC5B,aAAa,EAAE,aAAa;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWL,gBAAgB;AACH,QAAA,0DAA0D,GAKjE,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAA6B,CAAC;IACrD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAA6B,CAAC;IACtD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAA6B,CAAC;IACtD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CACzC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,SAAS;QACvB,UAAU,EAAE,YAAY;QACxB,WAAW,EAAE,aAAa;QAC1B,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,4CAA4C,CAS5D;AATD,WAAiB,4CAA4C;IAC3D,2FAA2F;IAC9E,0DAAa,GACxB,iEAAyD,CAAC;IAC5D,4FAA4F;IAC/E,2DAAc,GACzB,kEAA0D,CAAC;AAG/D,CAAC,EATgB,4CAA4C,4DAA5C,4CAA4C,QAS5D;AAED,SAAgB,iDAAiD,CAC/D,2CAC6C;IAE7C,OAAO,IAAI,CAAC,SAAS,CACnB,kEAA0D,CAAC,KAAK,CAC9D,2CAA2C,CAC5C,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,mDAAmD,CACjE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,iEAAyD,CAAC,KAAK,CAC7D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,yEAAyE,CAC1E,CAAC;AACJ,CAAC"}
@@ -48,6 +48,7 @@ export * from "./leaderboardgetaccountsmeta.js";
48
48
  export * from "./leaderboardgetgroupleaderboard.js";
49
49
  export * from "./leaderboardgetgroupsmeta.js";
50
50
  export * from "./leaderboardlistbadges.js";
51
+ export * from "./leaderboardpreviewaccountrank.js";
51
52
  export * from "./liveness.js";
52
53
  export * from "./locationgetlocations.js";
53
54
  export * from "./staffliststaff.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uCAAuC,CAAC;AACtD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
@@ -67,6 +67,7 @@ __exportStar(require("./leaderboardgetaccountsmeta.js"), exports);
67
67
  __exportStar(require("./leaderboardgetgroupleaderboard.js"), exports);
68
68
  __exportStar(require("./leaderboardgetgroupsmeta.js"), exports);
69
69
  __exportStar(require("./leaderboardlistbadges.js"), exports);
70
+ __exportStar(require("./leaderboardpreviewaccountrank.js"), exports);
70
71
  __exportStar(require("./liveness.js"), exports);
71
72
  __exportStar(require("./locationgetlocations.js"), exports);
72
73
  __exportStar(require("./staffliststaff.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,4DAA0C;AAC1C,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,uDAAqC;AACrC,iEAA+C;AAC/C,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC;AACvC,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,kEAAgD;AAChD,6DAA2C;AAC3C,oEAAkD;AAClD,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,wDAAsC;AACtC,qDAAmC;AACnC,wEAAsD;AACtD,kEAAgD;AAChD,sEAAoD;AACpD,gEAA8C;AAC9C,6DAA2C;AAC3C,gDAA8B;AAC9B,4DAA0C;AAC1C,sDAAoC;AACpC,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,4DAA0C;AAC1C,+DAA6C;AAC7C,iEAA+C;AAC/C,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,uDAAqC;AACrC,iEAA+C;AAC/C,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC;AACvC,qEAAmD;AACnD,8DAA4C;AAC5C,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,kEAAgD;AAChD,6DAA2C;AAC3C,oEAAkD;AAClD,6DAA2C;AAC3C,+DAA6C;AAC7C,iEAA+C;AAC/C,2DAAyC;AACzC,yDAAuC;AACvC,6DAA2C;AAC3C,2DAAyC;AACzC,2DAAyC;AACzC,+DAA6C;AAC7C,0DAAwC;AACxC,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,yDAAuC;AACvC,0DAAwC;AACxC,wDAAsC;AACtC,qDAAmC;AACnC,wEAAsD;AACtD,kEAAgD;AAChD,sEAAoD;AACpD,gEAA8C;AAC9C,6DAA2C;AAC3C,qEAAmD;AACnD,gDAA8B;AAC9B,4DAA0C;AAC1C,sDAAoC;AACpC,qDAAmC"}
@@ -0,0 +1,35 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import * as components from "../components/index.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ export type LeaderboardPreviewAccountRankResponse = {
6
+ httpMeta: components.HTTPMetadata;
7
+ /**
8
+ * OK
9
+ */
10
+ v1LeaderboardPreviewAccountRankResponseBody?: components.V1LeaderboardPreviewAccountRankResponseBody | undefined;
11
+ };
12
+ /** @internal */
13
+ export declare const LeaderboardPreviewAccountRankResponse$inboundSchema: z.ZodType<LeaderboardPreviewAccountRankResponse, z.ZodTypeDef, unknown>;
14
+ /** @internal */
15
+ export type LeaderboardPreviewAccountRankResponse$Outbound = {
16
+ HttpMeta: components.HTTPMetadata$Outbound;
17
+ V1LeaderboardPreviewAccountRankResponseBody?: components.V1LeaderboardPreviewAccountRankResponseBody$Outbound | undefined;
18
+ };
19
+ /** @internal */
20
+ export declare const LeaderboardPreviewAccountRankResponse$outboundSchema: z.ZodType<LeaderboardPreviewAccountRankResponse$Outbound, z.ZodTypeDef, LeaderboardPreviewAccountRankResponse>;
21
+ /**
22
+ * @internal
23
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
24
+ */
25
+ export declare namespace LeaderboardPreviewAccountRankResponse$ {
26
+ /** @deprecated use `LeaderboardPreviewAccountRankResponse$inboundSchema` instead. */
27
+ const inboundSchema: z.ZodType<LeaderboardPreviewAccountRankResponse, z.ZodTypeDef, unknown>;
28
+ /** @deprecated use `LeaderboardPreviewAccountRankResponse$outboundSchema` instead. */
29
+ const outboundSchema: z.ZodType<LeaderboardPreviewAccountRankResponse$Outbound, z.ZodTypeDef, LeaderboardPreviewAccountRankResponse>;
30
+ /** @deprecated use `LeaderboardPreviewAccountRankResponse$Outbound` instead. */
31
+ type Outbound = LeaderboardPreviewAccountRankResponse$Outbound;
32
+ }
33
+ export declare function leaderboardPreviewAccountRankResponseToJSON(leaderboardPreviewAccountRankResponse: LeaderboardPreviewAccountRankResponse): string;
34
+ export declare function leaderboardPreviewAccountRankResponseFromJSON(jsonString: string): SafeParseResult<LeaderboardPreviewAccountRankResponse, SDKValidationError>;
35
+ //# sourceMappingURL=leaderboardpreviewaccountrank.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaderboardpreviewaccountrank.d.ts","sourceRoot":"","sources":["../../src/models/operations/leaderboardpreviewaccountrank.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,2CAA2C,CAAC,EACxC,UAAU,CAAC,2CAA2C,GACtD,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,8CAA8C,GAAG;IAC3D,QAAQ,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAC3C,2CAA2C,CAAC,EACxC,UAAU,CAAC,oDAAoD,GAC/D,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,qCAAqC,CAWrC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sCAAsC,CAAC;IACtD,qFAAqF;IAC9E,MAAM,aAAa,yEAC2B,CAAC;IACtD,sFAAsF;IAC/E,MAAM,cAAc,gHAC2B,CAAC;IACvD,gFAAgF;IAChF,KAAY,QAAQ,GAAG,8CAA8C,CAAC;CACvE;AAED,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AAED,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.LeaderboardPreviewAccountRankResponse$ = exports.LeaderboardPreviewAccountRankResponse$outboundSchema = exports.LeaderboardPreviewAccountRankResponse$inboundSchema = void 0;
30
+ exports.leaderboardPreviewAccountRankResponseToJSON = leaderboardPreviewAccountRankResponseToJSON;
31
+ exports.leaderboardPreviewAccountRankResponseFromJSON = leaderboardPreviewAccountRankResponseFromJSON;
32
+ const z = __importStar(require("zod"));
33
+ const primitives_js_1 = require("../../lib/primitives.js");
34
+ const schemas_js_1 = require("../../lib/schemas.js");
35
+ const components = __importStar(require("../components/index.js"));
36
+ /** @internal */
37
+ exports.LeaderboardPreviewAccountRankResponse$inboundSchema = z.object({
38
+ HttpMeta: components.HTTPMetadata$inboundSchema,
39
+ V1LeaderboardPreviewAccountRankResponseBody: components
40
+ .V1LeaderboardPreviewAccountRankResponseBody$inboundSchema.optional(),
41
+ }).transform((v) => {
42
+ return (0, primitives_js_1.remap)(v, {
43
+ "HttpMeta": "httpMeta",
44
+ "V1LeaderboardPreviewAccountRankResponseBody": "v1LeaderboardPreviewAccountRankResponseBody",
45
+ });
46
+ });
47
+ /** @internal */
48
+ exports.LeaderboardPreviewAccountRankResponse$outboundSchema = z.object({
49
+ httpMeta: components.HTTPMetadata$outboundSchema,
50
+ v1LeaderboardPreviewAccountRankResponseBody: components
51
+ .V1LeaderboardPreviewAccountRankResponseBody$outboundSchema.optional(),
52
+ }).transform((v) => {
53
+ return (0, primitives_js_1.remap)(v, {
54
+ httpMeta: "HttpMeta",
55
+ v1LeaderboardPreviewAccountRankResponseBody: "V1LeaderboardPreviewAccountRankResponseBody",
56
+ });
57
+ });
58
+ /**
59
+ * @internal
60
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
+ */
62
+ var LeaderboardPreviewAccountRankResponse$;
63
+ (function (LeaderboardPreviewAccountRankResponse$) {
64
+ /** @deprecated use `LeaderboardPreviewAccountRankResponse$inboundSchema` instead. */
65
+ LeaderboardPreviewAccountRankResponse$.inboundSchema = exports.LeaderboardPreviewAccountRankResponse$inboundSchema;
66
+ /** @deprecated use `LeaderboardPreviewAccountRankResponse$outboundSchema` instead. */
67
+ LeaderboardPreviewAccountRankResponse$.outboundSchema = exports.LeaderboardPreviewAccountRankResponse$outboundSchema;
68
+ })(LeaderboardPreviewAccountRankResponse$ || (exports.LeaderboardPreviewAccountRankResponse$ = LeaderboardPreviewAccountRankResponse$ = {}));
69
+ function leaderboardPreviewAccountRankResponseToJSON(leaderboardPreviewAccountRankResponse) {
70
+ return JSON.stringify(exports.LeaderboardPreviewAccountRankResponse$outboundSchema.parse(leaderboardPreviewAccountRankResponse));
71
+ }
72
+ function leaderboardPreviewAccountRankResponseFromJSON(jsonString) {
73
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LeaderboardPreviewAccountRankResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LeaderboardPreviewAccountRankResponse' from JSON`);
74
+ }
75
+ //# sourceMappingURL=leaderboardpreviewaccountrank.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaderboardpreviewaccountrank.js","sourceRoot":"","sources":["../../src/models/operations/leaderboardpreviewaccountrank.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA4EH,kGAQC;AAED,sGASC;AA7FD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAarD,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,2CAA2C,EAAE,UAAU;SACpD,yDAAyD,CAAC,QAAQ,EAAE;CACxE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,6CAA6C,EAC3C,6CAA6C;KAChD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,2CAA2C,EAAE,UAAU;SACpD,0DAA0D,CAAC,QAAQ,EAAE;CACzE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,2CAA2C,EACzC,6CAA6C;KAChD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sCAAsC,CAStD;AATD,WAAiB,sCAAsC;IACrD,qFAAqF;IACxE,oDAAa,GACxB,2DAAmD,CAAC;IACtD,sFAAsF;IACzE,qDAAc,GACzB,4DAAoD,CAAC;AAGzD,CAAC,EATgB,sCAAsC,sDAAtC,sCAAsC,QAStD;AAED,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steamsets/client-ts",
3
- "version": "0.25.4",
3
+ "version": "0.25.5",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -6,5 +6,6 @@ export declare class Leaderboard extends ClientSDK {
6
6
  getAccountsMeta(request: components.V1LeaderboardGetAccountsMetaRequestBody, options?: RequestOptions): Promise<operations.LeaderboardGetAccountsMetaResponse>;
7
7
  getGroup(request: components.V1LeaderboardGetGroupLeaderboardRequestBody, options?: RequestOptions): Promise<operations.LeaderboardGetGroupLeaderboardResponse>;
8
8
  getGroupsMeta(request: components.V1LeaderboardGetGroupsMetaRequestBody, options?: RequestOptions): Promise<operations.LeaderboardGetGroupsMetaResponse>;
9
+ leaderboardPreviewAccountRank(request: components.V1LeaderboardPreviewAccountRankRequestBody, options?: RequestOptions): Promise<operations.LeaderboardPreviewAccountRankResponse>;
9
10
  }
10
11
  //# sourceMappingURL=leaderboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../src/sdk/leaderboard.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,WAAY,SAAQ,SAAS;IAClC,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,6CAA6C,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;IAQzD,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQnD,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;IAQvD,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAOxD"}
1
+ {"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":"AASA,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,WAAY,SAAQ,SAAS;IAClC,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,6CAA6C,EACjE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wCAAwC,CAAC;IAQzD,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,uCAAuC,EAC3D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQnD,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,2CAA2C,EAC/D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sCAAsC,CAAC;IAQvD,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,qCAAqC,EACzD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IAQjD,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,0CAA0C,EAC9D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
@@ -8,6 +8,7 @@ const leaderboardGetAccount_js_1 = require("../funcs/leaderboardGetAccount.js");
8
8
  const leaderboardGetAccountsMeta_js_1 = require("../funcs/leaderboardGetAccountsMeta.js");
9
9
  const leaderboardGetGroup_js_1 = require("../funcs/leaderboardGetGroup.js");
10
10
  const leaderboardGetGroupsMeta_js_1 = require("../funcs/leaderboardGetGroupsMeta.js");
11
+ const leaderboardLeaderboardPreviewAccountRank_js_1 = require("../funcs/leaderboardLeaderboardPreviewAccountRank.js");
11
12
  const sdks_js_1 = require("../lib/sdks.js");
12
13
  const fp_js_1 = require("../types/fp.js");
13
14
  class Leaderboard extends sdks_js_1.ClientSDK {
@@ -23,6 +24,9 @@ class Leaderboard extends sdks_js_1.ClientSDK {
23
24
  async getGroupsMeta(request, options) {
24
25
  return (0, fp_js_1.unwrapAsync)((0, leaderboardGetGroupsMeta_js_1.leaderboardGetGroupsMeta)(this, request, options));
25
26
  }
27
+ async leaderboardPreviewAccountRank(request, options) {
28
+ return (0, fp_js_1.unwrapAsync)((0, leaderboardLeaderboardPreviewAccountRank_js_1.leaderboardLeaderboardPreviewAccountRank)(this, request, options));
29
+ }
26
30
  }
27
31
  exports.Leaderboard = Leaderboard;
28
32
  //# sourceMappingURL=leaderboard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"leaderboard.js","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,0FAAoF;AACpF,4EAAsE;AACtE,sFAAgF;AAChF,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,WAAY,SAAQ,mBAAS;IACxC,KAAK,CAAC,UAAU,CACd,OAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA5CD,kCA4CC"}
1
+ {"version":3,"file":"leaderboard.js","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,0FAAoF;AACpF,4EAAsE;AACtE,sFAAgF;AAChF,sHAAgH;AAChH,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,WAAY,SAAQ,mBAAS;IACxC,KAAK,CAAC,UAAU,CACd,OAAiE,EACjE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,OAA2D,EAC3D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAA+D,EAC/D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAyD,EACzD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,6BAA6B,CACjC,OAA8D,EAC9D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sFAAwC,EACzD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAvDD,kCAuDC"}
@@ -98,7 +98,7 @@ async function $do(
98
98
 
99
99
  const context = {
100
100
  baseURL: options?.serverURL ?? client._baseURL ?? "",
101
- operationID: "account.CreateConnection",
101
+ operationID: "account.createConnection",
102
102
  oAuth2Scopes: [],
103
103
 
104
104
  resolvedSecurity: requestSecurity,
@@ -0,0 +1,183 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import { encodeJSON } from "../lib/encodings.js";
7
+ import * as M from "../lib/matchers.js";
8
+ import { compactMap } from "../lib/primitives.js";
9
+ import { safeParse } from "../lib/schemas.js";
10
+ import { RequestOptions } from "../lib/sdks.js";
11
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
12
+ import { pathToFunc } from "../lib/url.js";
13
+ import * as components from "../models/components/index.js";
14
+ import {
15
+ ConnectionError,
16
+ InvalidRequestError,
17
+ RequestAbortedError,
18
+ RequestTimeoutError,
19
+ UnexpectedClientError,
20
+ } from "../models/errors/httpclienterrors.js";
21
+ import * as errors from "../models/errors/index.js";
22
+ import { SDKError } from "../models/errors/sdkerror.js";
23
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
24
+ import * as operations from "../models/operations/index.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ export function leaderboardLeaderboardPreviewAccountRank(
29
+ client: SteamSetsCore,
30
+ request: components.V1LeaderboardPreviewAccountRankRequestBody,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ operations.LeaderboardPreviewAccountRankResponse,
35
+ | errors.ErrorModel
36
+ | errors.ErrorModel
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ return new APIPromise($do(
47
+ client,
48
+ request,
49
+ options,
50
+ ));
51
+ }
52
+
53
+ async function $do(
54
+ client: SteamSetsCore,
55
+ request: components.V1LeaderboardPreviewAccountRankRequestBody,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ operations.LeaderboardPreviewAccountRankResponse,
61
+ | errors.ErrorModel
62
+ | errors.ErrorModel
63
+ | SDKError
64
+ | SDKValidationError
65
+ | UnexpectedClientError
66
+ | InvalidRequestError
67
+ | RequestAbortedError
68
+ | RequestTimeoutError
69
+ | ConnectionError
70
+ >,
71
+ APICall,
72
+ ]
73
+ > {
74
+ const parsed = safeParse(
75
+ request,
76
+ (value) =>
77
+ components.V1LeaderboardPreviewAccountRankRequestBody$outboundSchema
78
+ .parse(value),
79
+ "Input validation failed",
80
+ );
81
+ if (!parsed.ok) {
82
+ return [parsed, { status: "invalid" }];
83
+ }
84
+ const payload = parsed.value;
85
+ const body = encodeJSON("body", payload, { explode: true });
86
+
87
+ const path = pathToFunc("/v1/leaderboard.previewAccountRank")();
88
+
89
+ const headers = new Headers(compactMap({
90
+ "Content-Type": "application/json",
91
+ Accept: "application/json",
92
+ }));
93
+
94
+ const secConfig = await extractSecurity(client._options.token);
95
+ const securityInput = secConfig == null ? {} : { token: secConfig };
96
+ const requestSecurity = resolveGlobalSecurity(securityInput);
97
+
98
+ const context = {
99
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
100
+ operationID: "leaderboard.previewAccountRank",
101
+ oAuth2Scopes: [],
102
+
103
+ resolvedSecurity: requestSecurity,
104
+
105
+ securitySource: client._options.token,
106
+ retryConfig: options?.retries
107
+ || client._options.retryConfig
108
+ || {
109
+ strategy: "backoff",
110
+ backoff: {
111
+ initialInterval: 500,
112
+ maxInterval: 5000,
113
+ exponent: 1.5,
114
+ maxElapsedTime: 60000,
115
+ },
116
+ retryConnectionErrors: true,
117
+ }
118
+ || { strategy: "none" },
119
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
120
+ };
121
+
122
+ const requestRes = client._createRequest(context, {
123
+ security: requestSecurity,
124
+ method: "POST",
125
+ baseURL: options?.serverURL,
126
+ path: path,
127
+ headers: headers,
128
+ body: body,
129
+ uaHeader: "x-speakeasy-user-agent",
130
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
131
+ }, options);
132
+ if (!requestRes.ok) {
133
+ return [requestRes, { status: "invalid" }];
134
+ }
135
+ const req = requestRes.value;
136
+
137
+ const doResult = await client._do(req, {
138
+ context,
139
+ errorCodes: ["404", "422", "4XX", "500", "5XX"],
140
+ retryConfig: context.retryConfig,
141
+ retryCodes: context.retryCodes,
142
+ });
143
+ if (!doResult.ok) {
144
+ return [doResult, { status: "request-error", request: req }];
145
+ }
146
+ const response = doResult.value;
147
+
148
+ const responseFields = {
149
+ HttpMeta: { Response: response, Request: req },
150
+ };
151
+
152
+ const [result] = await M.match<
153
+ operations.LeaderboardPreviewAccountRankResponse,
154
+ | errors.ErrorModel
155
+ | errors.ErrorModel
156
+ | SDKError
157
+ | SDKValidationError
158
+ | UnexpectedClientError
159
+ | InvalidRequestError
160
+ | RequestAbortedError
161
+ | RequestTimeoutError
162
+ | ConnectionError
163
+ >(
164
+ M.json(
165
+ 200,
166
+ operations.LeaderboardPreviewAccountRankResponse$inboundSchema,
167
+ { key: "V1LeaderboardPreviewAccountRankResponseBody" },
168
+ ),
169
+ M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
170
+ ctype: "application/problem+json",
171
+ }),
172
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
173
+ ctype: "application/problem+json",
174
+ }),
175
+ M.fail("4XX"),
176
+ M.fail("5XX"),
177
+ )(response, req, { extraFields: responseFields });
178
+ if (!result.ok) {
179
+ return [result, { status: "complete", request: req, response }];
180
+ }
181
+
182
+ return [result, { status: "complete", request: req, response }];
183
+ }
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.25.4",
59
- genVersion: "2.566.5",
58
+ sdkVersion: "0.25.5",
59
+ genVersion: "2.568.2",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.25.4 2.566.5 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.25.5 2.568.2 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -29,6 +29,7 @@ export * from "./leaderboardcountry.js";
29
29
  export * from "./leaderboardregion.js";
30
30
  export * from "./leaderboardstate.js";
31
31
  export * from "./loginrequestbody.js";
32
+ export * from "./previewaccount.js";
32
33
  export * from "./region.js";
33
34
  export * from "./resource.js";
34
35
  export * from "./role.js";
@@ -130,6 +131,8 @@ export * from "./v1leaderboardgetgroupsmetaresponsebody.js";
130
131
  export * from "./v1leaderboardlistbadgesresponsebody.js";
131
132
  export * from "./v1leaderboardlocation.js";
132
133
  export * from "./v1leaderboardlocationinfo.js";
134
+ export * from "./v1leaderboardpreviewaccountrankrequestbody.js";
135
+ export * from "./v1leaderboardpreviewaccountrankresponsebody.js";
133
136
  export * from "./v1livenessresponsebody.js";
134
137
  export * from "./v1searchrequest.js";
135
138
  export * from "./v1stats.js";
@@ -8,10 +8,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
 
10
10
  export type LeaderboardCity = {
11
- /**
12
- * The id of the city
13
- */
14
- id: number;
15
11
  /**
16
12
  * The name of the city
17
13
  */
@@ -24,13 +20,11 @@ export const LeaderboardCity$inboundSchema: z.ZodType<
24
20
  z.ZodTypeDef,
25
21
  unknown
26
22
  > = z.object({
27
- id: z.number().int(),
28
23
  name: z.string(),
29
24
  });
30
25
 
31
26
  /** @internal */
32
27
  export type LeaderboardCity$Outbound = {
33
- id: number;
34
28
  name: string;
35
29
  };
36
30
 
@@ -40,7 +34,6 @@ export const LeaderboardCity$outboundSchema: z.ZodType<
40
34
  z.ZodTypeDef,
41
35
  LeaderboardCity
42
36
  > = z.object({
43
- id: z.number().int(),
44
37
  name: z.string(),
45
38
  });
46
39
 
@@ -12,10 +12,6 @@ export type LeaderboardCountry = {
12
12
  * The code of the country
13
13
  */
14
14
  code?: string | undefined;
15
- /**
16
- * The id of the country
17
- */
18
- id: number;
19
15
  /**
20
16
  * The name of the country
21
17
  */
@@ -29,14 +25,12 @@ export const LeaderboardCountry$inboundSchema: z.ZodType<
29
25
  unknown
30
26
  > = z.object({
31
27
  code: z.string().optional(),
32
- id: z.number().int(),
33
28
  name: z.string(),
34
29
  });
35
30
 
36
31
  /** @internal */
37
32
  export type LeaderboardCountry$Outbound = {
38
33
  code?: string | undefined;
39
- id: number;
40
34
  name: string;
41
35
  };
42
36
 
@@ -47,7 +41,6 @@ export const LeaderboardCountry$outboundSchema: z.ZodType<
47
41
  LeaderboardCountry
48
42
  > = z.object({
49
43
  code: z.string().optional(),
50
- id: z.number().int(),
51
44
  name: z.string(),
52
45
  });
53
46