@steamsets/client-ts 0.11.16 → 0.11.17

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 (101) hide show
  1. package/README.md +0 -4
  2. package/docs/sdks/account/README.md +0 -80
  3. package/docs/sdks/leaderboard/README.md +0 -80
  4. package/lib/config.d.ts +2 -2
  5. package/lib/config.js +2 -2
  6. package/models/components/accountinfobody.d.ts +12 -9
  7. package/models/components/accountinfobody.d.ts.map +1 -1
  8. package/models/components/accountinfobody.js +12 -9
  9. package/models/components/accountinfobody.js.map +1 -1
  10. package/models/components/index.d.ts +4 -3
  11. package/models/components/index.d.ts.map +1 -1
  12. package/models/components/index.js +4 -3
  13. package/models/components/index.js.map +1 -1
  14. package/models/components/leaderboardaccount.d.ts +12 -9
  15. package/models/components/leaderboardaccount.d.ts.map +1 -1
  16. package/models/components/leaderboardaccount.js +12 -9
  17. package/models/components/leaderboardaccount.js.map +1 -1
  18. package/models/components/leaderboardcity.d.ts +33 -0
  19. package/models/components/leaderboardcity.d.ts.map +1 -0
  20. package/models/components/{location.js → leaderboardcity.js} +11 -13
  21. package/models/components/leaderboardcity.js.map +1 -0
  22. package/models/components/leaderboardcountry.d.ts +38 -0
  23. package/models/components/leaderboardcountry.d.ts.map +1 -0
  24. package/models/components/leaderboardcountry.js +54 -0
  25. package/models/components/leaderboardcountry.js.map +1 -0
  26. package/models/components/leaderboardregion.d.ts +33 -0
  27. package/models/components/leaderboardregion.d.ts.map +1 -0
  28. package/models/components/leaderboardregion.js +52 -0
  29. package/models/components/leaderboardregion.js.map +1 -0
  30. package/models/components/leaderboardstate.d.ts +33 -0
  31. package/models/components/leaderboardstate.d.ts.map +1 -0
  32. package/models/components/leaderboardstate.js +52 -0
  33. package/models/components/leaderboardstate.js.map +1 -0
  34. package/models/components/v1accountfriend.d.ts +12 -9
  35. package/models/components/v1accountfriend.d.ts.map +1 -1
  36. package/models/components/v1accountfriend.js +12 -9
  37. package/models/components/v1accountfriend.js.map +1 -1
  38. package/models/components/v1accountleaderboardaccount.d.ts +12 -9
  39. package/models/components/v1accountleaderboardaccount.d.ts.map +1 -1
  40. package/models/components/v1accountleaderboardaccount.js +12 -9
  41. package/models/components/v1accountleaderboardaccount.js.map +1 -1
  42. package/models/operations/index.d.ts +0 -1
  43. package/models/operations/index.d.ts.map +1 -1
  44. package/models/operations/index.js +0 -1
  45. package/models/operations/index.js.map +1 -1
  46. package/package.json +1 -1
  47. package/sdk/account.d.ts +0 -4
  48. package/sdk/account.d.ts.map +1 -1
  49. package/sdk/account.js +0 -7
  50. package/sdk/account.js.map +1 -1
  51. package/sdk/leaderboard.d.ts +0 -4
  52. package/sdk/leaderboard.d.ts.map +1 -1
  53. package/sdk/leaderboard.js +0 -7
  54. package/sdk/leaderboard.js.map +1 -1
  55. package/sdk/sdk.d.ts +2 -2
  56. package/sdk/sdk.d.ts.map +1 -1
  57. package/sdk/sdk.js +4 -4
  58. package/sdk/sdk.js.map +1 -1
  59. package/src/lib/config.ts +2 -2
  60. package/src/models/components/accountinfobody.ts +39 -21
  61. package/src/models/components/index.ts +4 -3
  62. package/src/models/components/leaderboardaccount.ts +39 -21
  63. package/src/models/components/leaderboardcity.ts +55 -0
  64. package/src/models/components/leaderboardcountry.ts +62 -0
  65. package/src/models/components/leaderboardregion.ts +55 -0
  66. package/src/models/components/leaderboardstate.ts +55 -0
  67. package/src/models/components/v1accountfriend.ts +39 -21
  68. package/src/models/components/v1accountleaderboardaccount.ts +39 -21
  69. package/src/models/operations/index.ts +0 -1
  70. package/src/sdk/account.ts +0 -15
  71. package/src/sdk/leaderboard.ts +0 -15
  72. package/src/sdk/sdk.ts +5 -5
  73. package/funcs/accountAccountV1LeaderboardPreview.d.ts +0 -14
  74. package/funcs/accountAccountV1LeaderboardPreview.d.ts.map +0 -1
  75. package/funcs/accountAccountV1LeaderboardPreview.js +0 -98
  76. package/funcs/accountAccountV1LeaderboardPreview.js.map +0 -1
  77. package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts +0 -14
  78. package/funcs/leaderboardAccountV1LeaderboardPreview.d.ts.map +0 -1
  79. package/funcs/leaderboardAccountV1LeaderboardPreview.js +0 -98
  80. package/funcs/leaderboardAccountV1LeaderboardPreview.js.map +0 -1
  81. package/models/components/location.d.ts +0 -38
  82. package/models/components/location.d.ts.map +0 -1
  83. package/models/components/location.js.map +0 -1
  84. package/models/components/v1accountleaderboardpreviewrequestbody.d.ts +0 -110
  85. package/models/components/v1accountleaderboardpreviewrequestbody.d.ts.map +0 -1
  86. package/models/components/v1accountleaderboardpreviewrequestbody.js +0 -90
  87. package/models/components/v1accountleaderboardpreviewrequestbody.js.map +0 -1
  88. package/models/components/v1accountleaderboardpreviewresponsebody.d.ts +0 -38
  89. package/models/components/v1accountleaderboardpreviewresponsebody.d.ts.map +0 -1
  90. package/models/components/v1accountleaderboardpreviewresponsebody.js +0 -63
  91. package/models/components/v1accountleaderboardpreviewresponsebody.js.map +0 -1
  92. package/models/operations/accountv1leaderboardpreview.d.ts +0 -31
  93. package/models/operations/accountv1leaderboardpreview.d.ts.map +0 -1
  94. package/models/operations/accountv1leaderboardpreview.js +0 -66
  95. package/models/operations/accountv1leaderboardpreview.js.map +0 -1
  96. package/src/funcs/accountAccountV1LeaderboardPreview.ts +0 -130
  97. package/src/funcs/leaderboardAccountV1LeaderboardPreview.ts +0 -130
  98. package/src/models/components/location.ts +0 -62
  99. package/src/models/components/v1accountleaderboardpreviewrequestbody.ts +0 -110
  100. package/src/models/components/v1accountleaderboardpreviewresponsebody.ts +0 -73
  101. package/src/models/operations/accountv1leaderboardpreview.ts +0 -74
package/src/sdk/sdk.ts CHANGED
@@ -52,11 +52,6 @@ export class SteamSets extends ClientSDK {
52
52
  return (this._public ??= new Public(this._options));
53
53
  }
54
54
 
55
- private _leaderboard?: Leaderboard;
56
- get leaderboard(): Leaderboard {
57
- return (this._leaderboard ??= new Leaderboard(this._options));
58
- }
59
-
60
55
  private _app?: App;
61
56
  get app(): App {
62
57
  return (this._app ??= new App(this._options));
@@ -67,6 +62,11 @@ export class SteamSets extends ClientSDK {
67
62
  return (this._badge ??= new Badge(this._options));
68
63
  }
69
64
 
65
+ private _leaderboard?: Leaderboard;
66
+ get leaderboard(): Leaderboard {
67
+ return (this._leaderboard ??= new Leaderboard(this._options));
68
+ }
69
+
70
70
  private _liveness?: Liveness;
71
71
  get liveness(): Liveness {
72
72
  return (this._liveness ??= new Liveness(this._options));
@@ -1,14 +0,0 @@
1
- import { SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKError } from "../models/errors/sdkerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Preview what a given score would result in
12
- */
13
- export declare function accountAccountV1LeaderboardPreview(client: SteamSetsCore, request: components.V1AccountLeaderboardPreviewRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1LeaderboardPreviewResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=accountAccountV1LeaderboardPreview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountAccountV1LeaderboardPreview.d.ts","sourceRoot":"","sources":["../src/funcs/accountAccountV1LeaderboardPreview.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,kCAAkC,CACtD,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqFA"}
@@ -1,98 +0,0 @@
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.accountAccountV1LeaderboardPreview = accountAccountV1LeaderboardPreview;
30
- const encodings_js_1 = require("../lib/encodings.js");
31
- const M = __importStar(require("../lib/matchers.js"));
32
- const schemas_js_1 = require("../lib/schemas.js");
33
- const security_js_1 = require("../lib/security.js");
34
- const url_js_1 = require("../lib/url.js");
35
- const components = __importStar(require("../models/components/index.js"));
36
- const errors = __importStar(require("../models/errors/index.js"));
37
- const operations = __importStar(require("../models/operations/index.js"));
38
- /**
39
- * Preview what a given score would result in
40
- */
41
- async function accountAccountV1LeaderboardPreview(client, request, options) {
42
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1AccountLeaderboardPreviewRequestBody$outboundSchema.parse(value), "Input validation failed");
43
- if (!parsed.ok) {
44
- return parsed;
45
- }
46
- const payload = parsed.value;
47
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
48
- const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetLeaderboardPreview")();
49
- const headers = new Headers({
50
- "Content-Type": "application/json",
51
- Accept: "application/json",
52
- });
53
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
54
- const securityInput = secConfig == null ? {} : { token: secConfig };
55
- const context = {
56
- operationID: "account.v1.leaderboardPreview",
57
- oAuth2Scopes: [],
58
- securitySource: client._options.token,
59
- };
60
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
61
- const requestRes = client._createRequest(context, {
62
- security: requestSecurity,
63
- method: "POST",
64
- path: path,
65
- headers: headers,
66
- body: body,
67
- uaHeader: "x-speakeasy-user-agent",
68
- timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
69
- }, options);
70
- if (!requestRes.ok) {
71
- return requestRes;
72
- }
73
- const req = requestRes.value;
74
- const doResult = await client._do(req, {
75
- context,
76
- errorCodes: ["404", "422", "4XX", "500", "5XX"],
77
- retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
78
- || client._options.retryConfig,
79
- retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
80
- });
81
- if (!doResult.ok) {
82
- return doResult;
83
- }
84
- const response = doResult.value;
85
- const responseFields = {
86
- HttpMeta: { Response: response, Request: req },
87
- };
88
- const [result] = await M.match(M.json(200, operations.AccountV1LeaderboardPreviewResponse$inboundSchema, {
89
- key: "V1AccountLeaderboardPreviewResponseBody",
90
- }), M.jsonErr([404, 422, 500], errors.ErrorModel$inboundSchema, {
91
- ctype: "application/problem+json",
92
- }), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
93
- if (!result.ok) {
94
- return result;
95
- }
96
- return result;
97
- }
98
- //# sourceMappingURL=accountAccountV1LeaderboardPreview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accountAccountV1LeaderboardPreview.js","sourceRoot":"","sources":["../src/funcs/accountAccountV1LeaderboardPreview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,gFAqGC;AA5HD,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,kCAAkC,CACtD,MAAqB,EACrB,OAA0D,EAC1D,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,qDAAqD,CAAC,KAAK,CACpE,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IA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SteamSetsCore } from "../core.js";
2
- import { RequestOptions } from "../lib/sdks.js";
3
- import * as components from "../models/components/index.js";
4
- import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
- import * as errors from "../models/errors/index.js";
6
- import { SDKError } from "../models/errors/sdkerror.js";
7
- import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { Result } from "../types/fp.js";
10
- /**
11
- * Preview what a given score would result in
12
- */
13
- export declare function leaderboardAccountV1LeaderboardPreview(client: SteamSetsCore, request: components.V1AccountLeaderboardPreviewRequestBody, options?: RequestOptions): Promise<Result<operations.AccountV1LeaderboardPreviewResponse, errors.ErrorModel | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
14
- //# sourceMappingURL=leaderboardAccountV1LeaderboardPreview.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardAccountV1LeaderboardPreview.d.ts","sourceRoot":"","sources":["../src/funcs/leaderboardAccountV1LeaderboardPreview.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAI3C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAsB,sCAAsC,CAC1D,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,UAAU,CAAC,mCAAmC,EAC5C,MAAM,CAAC,UAAU,GACjB,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CAqFA"}
@@ -1,98 +0,0 @@
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.leaderboardAccountV1LeaderboardPreview = leaderboardAccountV1LeaderboardPreview;
30
- const encodings_js_1 = require("../lib/encodings.js");
31
- const M = __importStar(require("../lib/matchers.js"));
32
- const schemas_js_1 = require("../lib/schemas.js");
33
- const security_js_1 = require("../lib/security.js");
34
- const url_js_1 = require("../lib/url.js");
35
- const components = __importStar(require("../models/components/index.js"));
36
- const errors = __importStar(require("../models/errors/index.js"));
37
- const operations = __importStar(require("../models/operations/index.js"));
38
- /**
39
- * Preview what a given score would result in
40
- */
41
- async function leaderboardAccountV1LeaderboardPreview(client, request, options) {
42
- const parsed = (0, schemas_js_1.safeParse)(request, (value) => components.V1AccountLeaderboardPreviewRequestBody$outboundSchema.parse(value), "Input validation failed");
43
- if (!parsed.ok) {
44
- return parsed;
45
- }
46
- const payload = parsed.value;
47
- const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
48
- const path = (0, url_js_1.pathToFunc)("/account.v1.AccountService/GetLeaderboardPreview")();
49
- const headers = new Headers({
50
- "Content-Type": "application/json",
51
- Accept: "application/json",
52
- });
53
- const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
54
- const securityInput = secConfig == null ? {} : { token: secConfig };
55
- const context = {
56
- operationID: "account.v1.leaderboardPreview",
57
- oAuth2Scopes: [],
58
- securitySource: client._options.token,
59
- };
60
- const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
61
- const requestRes = client._createRequest(context, {
62
- security: requestSecurity,
63
- method: "POST",
64
- path: path,
65
- headers: headers,
66
- body: body,
67
- uaHeader: "x-speakeasy-user-agent",
68
- timeoutMs: (options === null || options === void 0 ? void 0 : options.timeoutMs) || client._options.timeoutMs || -1,
69
- }, options);
70
- if (!requestRes.ok) {
71
- return requestRes;
72
- }
73
- const req = requestRes.value;
74
- const doResult = await client._do(req, {
75
- context,
76
- errorCodes: ["404", "422", "4XX", "500", "5XX"],
77
- retryConfig: (options === null || options === void 0 ? void 0 : options.retries)
78
- || client._options.retryConfig,
79
- retryCodes: (options === null || options === void 0 ? void 0 : options.retryCodes) || ["429", "500", "502", "503", "504"],
80
- });
81
- if (!doResult.ok) {
82
- return doResult;
83
- }
84
- const response = doResult.value;
85
- const responseFields = {
86
- HttpMeta: { Response: response, Request: req },
87
- };
88
- const [result] = await M.match(M.json(200, operations.AccountV1LeaderboardPreviewResponse$inboundSchema, {
89
- key: "V1AccountLeaderboardPreviewResponseBody",
90
- }), M.jsonErr([404, 422, 500], errors.ErrorModel$inboundSchema, {
91
- ctype: "application/problem+json",
92
- }), M.fail(["4XX", "5XX"]))(response, req, { extraFields: responseFields });
93
- if (!result.ok) {
94
- return result;
95
- }
96
- return result;
97
- }
98
- //# sourceMappingURL=leaderboardAccountV1LeaderboardPreview.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardAccountV1LeaderboardPreview.js","sourceRoot":"","sources":["../src/funcs/leaderboardAccountV1LeaderboardPreview.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,wFAqGC;AA5HD,sDAAiD;AACjD,sDAAwC;AACxC,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAQ5D,kEAAoD;AAGpD,0EAA4D;AAG5D;;GAEG;AACI,KAAK,UAAU,sCAAsC,CAC1D,MAAqB,EACrB,OAA0D,EAC1D,OAAwB;IAcxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,qDAAqD,CAAC,KAAK,CACpE,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5D,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,kDAAkD,CAAC,EAAE,CAAC;IAE9E,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC;QAC1B,cAAc,EAAE,kBAAkB;QAClC,MAAM,EAAE,kBAAkB;KAC3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AP,OAAO,CAAE,UAAU,KAAI,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;KACvE,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,cAAc,GAAG;QACrB,QAAQ,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,iDAAiD,EAAE;QACxE,GAAG,EAAE,yCAAyC;KAC/C,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,wBAAwB,EAAE;QAC1D,KAAK,EAAE,0BAA0B;KAClC,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CACvB,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -1,38 +0,0 @@
1
- import * as z from "zod";
2
- export type Location = {
3
- /**
4
- * The code of the location
5
- */
6
- code?: string | null | undefined;
7
- /**
8
- * The id of the location
9
- */
10
- id: number;
11
- /**
12
- * The name of the location
13
- */
14
- name: string;
15
- };
16
- /** @internal */
17
- export declare const Location$inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown>;
18
- /** @internal */
19
- export type Location$Outbound = {
20
- code?: string | null | undefined;
21
- id: number;
22
- name: string;
23
- };
24
- /** @internal */
25
- export declare const Location$outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location>;
26
- /**
27
- * @internal
28
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
- */
30
- export declare namespace Location$ {
31
- /** @deprecated use `Location$inboundSchema` instead. */
32
- const inboundSchema: z.ZodType<Location, z.ZodTypeDef, unknown>;
33
- /** @deprecated use `Location$outboundSchema` instead. */
34
- const outboundSchema: z.ZodType<Location$Outbound, z.ZodTypeDef, Location>;
35
- /** @deprecated use `Location$Outbound` instead. */
36
- type Outbound = Location$Outbound;
37
- }
38
- //# sourceMappingURL=location.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"location.d.ts","sourceRoot":"","sources":["../../src/models/components/location.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAKR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"location.js","sourceRoot":"","sources":["../../src/models/components/location.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAiBzB,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB"}
@@ -1,110 +0,0 @@
1
- import * as z from "zod";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- /**
4
- * The leaderboard to get
5
- */
6
- export declare const V1AccountLeaderboardPreviewRequestBodyLeaderboard: {
7
- readonly Apps: "apps";
8
- readonly LimitedApps: "limited_apps";
9
- readonly AppPlaytime: "app_playtime";
10
- readonly AwardsGiven: "awards_given";
11
- readonly AwardsReceived: "awards_received";
12
- readonly Bans: "bans";
13
- readonly GameBans: "game_bans";
14
- readonly VacBans: "vac_bans";
15
- readonly Donations: "donations";
16
- readonly FoilBadges: "foil_badges";
17
- readonly NormalBadges: "normal_badges";
18
- readonly Badges: "badges";
19
- readonly Playtime: "playtime";
20
- readonly PointsGiven: "points_given";
21
- readonly PointsReceived: "points_received";
22
- readonly SteamSets: "steam_sets";
23
- readonly Xp: "xp";
24
- };
25
- /**
26
- * The leaderboard to get
27
- */
28
- export type V1AccountLeaderboardPreviewRequestBodyLeaderboard = ClosedEnum<typeof V1AccountLeaderboardPreviewRequestBodyLeaderboard>;
29
- export type V1AccountLeaderboardPreviewRequestBody = {
30
- /**
31
- * The leaderboard to get
32
- */
33
- leaderboard: V1AccountLeaderboardPreviewRequestBodyLeaderboard;
34
- /**
35
- * The score the account should be
36
- */
37
- score: number;
38
- };
39
- /** @internal */
40
- export declare const V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema: z.ZodNativeEnum<typeof V1AccountLeaderboardPreviewRequestBodyLeaderboard>;
41
- /** @internal */
42
- export declare const V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema: z.ZodNativeEnum<typeof V1AccountLeaderboardPreviewRequestBodyLeaderboard>;
43
- /**
44
- * @internal
45
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
- */
47
- export declare namespace V1AccountLeaderboardPreviewRequestBodyLeaderboard$ {
48
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema` instead. */
49
- const inboundSchema: z.ZodNativeEnum<{
50
- readonly Apps: "apps";
51
- readonly LimitedApps: "limited_apps";
52
- readonly AppPlaytime: "app_playtime";
53
- readonly AwardsGiven: "awards_given";
54
- readonly AwardsReceived: "awards_received";
55
- readonly Bans: "bans";
56
- readonly GameBans: "game_bans";
57
- readonly VacBans: "vac_bans";
58
- readonly Donations: "donations";
59
- readonly FoilBadges: "foil_badges";
60
- readonly NormalBadges: "normal_badges";
61
- readonly Badges: "badges";
62
- readonly Playtime: "playtime";
63
- readonly PointsGiven: "points_given";
64
- readonly PointsReceived: "points_received";
65
- readonly SteamSets: "steam_sets";
66
- readonly Xp: "xp";
67
- }>;
68
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema` instead. */
69
- const outboundSchema: z.ZodNativeEnum<{
70
- readonly Apps: "apps";
71
- readonly LimitedApps: "limited_apps";
72
- readonly AppPlaytime: "app_playtime";
73
- readonly AwardsGiven: "awards_given";
74
- readonly AwardsReceived: "awards_received";
75
- readonly Bans: "bans";
76
- readonly GameBans: "game_bans";
77
- readonly VacBans: "vac_bans";
78
- readonly Donations: "donations";
79
- readonly FoilBadges: "foil_badges";
80
- readonly NormalBadges: "normal_badges";
81
- readonly Badges: "badges";
82
- readonly Playtime: "playtime";
83
- readonly PointsGiven: "points_given";
84
- readonly PointsReceived: "points_received";
85
- readonly SteamSets: "steam_sets";
86
- readonly Xp: "xp";
87
- }>;
88
- }
89
- /** @internal */
90
- export declare const V1AccountLeaderboardPreviewRequestBody$inboundSchema: z.ZodType<V1AccountLeaderboardPreviewRequestBody, z.ZodTypeDef, unknown>;
91
- /** @internal */
92
- export type V1AccountLeaderboardPreviewRequestBody$Outbound = {
93
- leaderboard: string;
94
- score: number;
95
- };
96
- /** @internal */
97
- export declare const V1AccountLeaderboardPreviewRequestBody$outboundSchema: z.ZodType<V1AccountLeaderboardPreviewRequestBody$Outbound, z.ZodTypeDef, V1AccountLeaderboardPreviewRequestBody>;
98
- /**
99
- * @internal
100
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
101
- */
102
- export declare namespace V1AccountLeaderboardPreviewRequestBody$ {
103
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBody$inboundSchema` instead. */
104
- const inboundSchema: z.ZodType<V1AccountLeaderboardPreviewRequestBody, z.ZodTypeDef, unknown>;
105
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBody$outboundSchema` instead. */
106
- const outboundSchema: z.ZodType<V1AccountLeaderboardPreviewRequestBody$Outbound, z.ZodTypeDef, V1AccountLeaderboardPreviewRequestBody>;
107
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBody$Outbound` instead. */
108
- type Outbound = V1AccountLeaderboardPreviewRequestBody$Outbound;
109
- }
110
- //# sourceMappingURL=v1accountleaderboardpreviewrequestbody.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1accountleaderboardpreviewrequestbody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountleaderboardpreviewrequestbody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,iDAAiD;;;;;;;;;;;;;;;;;;CAkBpD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iDAAiD,GAAG,UAAU,CACxE,OAAO,iDAAiD,CACzD,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,WAAW,EAAE,iDAAiD,CAAC;IAC/D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+DAA+D,EAC1E,CAAC,CAAC,aAAa,CAAC,OAAO,iDAAiD,CACR,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,gEAAgE,EAC3E,CAAC,CAAC,aAAa,CAAC,OAAO,iDAAiD,CACP,CAAC;AAEpE;;;GAGG;AACH,yBAAiB,kDAAkD,CAAC;IAClE,iGAAiG;IAC1F,MAAM,aAAa;;;;;;;;;;;;;;;;;;MACuC,CAAC;IAClE,kGAAkG;IAC3F,MAAM,cAAc;;;;;;;;;;;;;;;;;;MACuC,CAAC;CACpE;AAED,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+CAA+C,GAAG;IAC5D,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,+CAA+C,EAC/C,CAAC,CAAC,UAAU,EACZ,sCAAsC,CAItC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uCAAuC,CAAC;IACvD,sFAAsF;IAC/E,MAAM,aAAa,0EAC4B,CAAC;IACvD,uFAAuF;IAChF,MAAM,cAAc,kHAC4B,CAAC;IACxD,iFAAiF;IACjF,KAAY,QAAQ,GAAG,+CAA+C,CAAC;CACxE"}
@@ -1,90 +0,0 @@
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.V1AccountLeaderboardPreviewRequestBody$ = exports.V1AccountLeaderboardPreviewRequestBody$outboundSchema = exports.V1AccountLeaderboardPreviewRequestBody$inboundSchema = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$ = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard = void 0;
30
- const z = __importStar(require("zod"));
31
- /**
32
- * The leaderboard to get
33
- */
34
- exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard = {
35
- Apps: "apps",
36
- LimitedApps: "limited_apps",
37
- AppPlaytime: "app_playtime",
38
- AwardsGiven: "awards_given",
39
- AwardsReceived: "awards_received",
40
- Bans: "bans",
41
- GameBans: "game_bans",
42
- VacBans: "vac_bans",
43
- Donations: "donations",
44
- FoilBadges: "foil_badges",
45
- NormalBadges: "normal_badges",
46
- Badges: "badges",
47
- Playtime: "playtime",
48
- PointsGiven: "points_given",
49
- PointsReceived: "points_received",
50
- SteamSets: "steam_sets",
51
- Xp: "xp",
52
- };
53
- /** @internal */
54
- exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema = z
55
- .nativeEnum(exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard);
56
- /** @internal */
57
- exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema;
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 V1AccountLeaderboardPreviewRequestBodyLeaderboard$;
63
- (function (V1AccountLeaderboardPreviewRequestBodyLeaderboard$) {
64
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema` instead. */
65
- V1AccountLeaderboardPreviewRequestBodyLeaderboard$.inboundSchema = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema;
66
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema` instead. */
67
- V1AccountLeaderboardPreviewRequestBodyLeaderboard$.outboundSchema = exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema;
68
- })(V1AccountLeaderboardPreviewRequestBodyLeaderboard$ || (exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$ = V1AccountLeaderboardPreviewRequestBodyLeaderboard$ = {}));
69
- /** @internal */
70
- exports.V1AccountLeaderboardPreviewRequestBody$inboundSchema = z.object({
71
- leaderboard: exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$inboundSchema,
72
- score: z.number().int(),
73
- });
74
- /** @internal */
75
- exports.V1AccountLeaderboardPreviewRequestBody$outboundSchema = z.object({
76
- leaderboard: exports.V1AccountLeaderboardPreviewRequestBodyLeaderboard$outboundSchema,
77
- score: z.number().int(),
78
- });
79
- /**
80
- * @internal
81
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
82
- */
83
- var V1AccountLeaderboardPreviewRequestBody$;
84
- (function (V1AccountLeaderboardPreviewRequestBody$) {
85
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBody$inboundSchema` instead. */
86
- V1AccountLeaderboardPreviewRequestBody$.inboundSchema = exports.V1AccountLeaderboardPreviewRequestBody$inboundSchema;
87
- /** @deprecated use `V1AccountLeaderboardPreviewRequestBody$outboundSchema` instead. */
88
- V1AccountLeaderboardPreviewRequestBody$.outboundSchema = exports.V1AccountLeaderboardPreviewRequestBody$outboundSchema;
89
- })(V1AccountLeaderboardPreviewRequestBody$ || (exports.V1AccountLeaderboardPreviewRequestBody$ = V1AccountLeaderboardPreviewRequestBody$ = {}));
90
- //# sourceMappingURL=v1accountleaderboardpreviewrequestbody.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1accountleaderboardpreviewrequestbody.js","sourceRoot":"","sources":["../../src/models/components/v1account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GAAG,EAAE;CACxB,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,uCAAuC,CASvD;AATD,WAAiB,uCAAuC;IACtD,sFAAsF;IACzE,qDAAa,GACxB,4DAAoD,CAAC;IACvD,uFAAuF;IAC1E,sDAAc,GACzB,6DAAqD,CAAC;AAG1D,CAAC,EATgB,uCAAuC,uDAAvC,uCAAuC,QASvD"}
@@ -1,38 +0,0 @@
1
- import * as z from "zod";
2
- export type V1AccountLeaderboardPreviewResponseBody = {
3
- /**
4
- * A URL to the JSON Schema for this object.
5
- */
6
- dollarSchema?: string | undefined;
7
- /**
8
- * The current rank of the account
9
- */
10
- currentRank: number;
11
- /**
12
- * The rank the account would be
13
- */
14
- wouldBeRank: number;
15
- };
16
- /** @internal */
17
- export declare const V1AccountLeaderboardPreviewResponseBody$inboundSchema: z.ZodType<V1AccountLeaderboardPreviewResponseBody, z.ZodTypeDef, unknown>;
18
- /** @internal */
19
- export type V1AccountLeaderboardPreviewResponseBody$Outbound = {
20
- $schema?: string | undefined;
21
- currentRank: number;
22
- wouldBeRank: number;
23
- };
24
- /** @internal */
25
- export declare const V1AccountLeaderboardPreviewResponseBody$outboundSchema: z.ZodType<V1AccountLeaderboardPreviewResponseBody$Outbound, z.ZodTypeDef, V1AccountLeaderboardPreviewResponseBody>;
26
- /**
27
- * @internal
28
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
- */
30
- export declare namespace V1AccountLeaderboardPreviewResponseBody$ {
31
- /** @deprecated use `V1AccountLeaderboardPreviewResponseBody$inboundSchema` instead. */
32
- const inboundSchema: z.ZodType<V1AccountLeaderboardPreviewResponseBody, z.ZodTypeDef, unknown>;
33
- /** @deprecated use `V1AccountLeaderboardPreviewResponseBody$outboundSchema` instead. */
34
- const outboundSchema: z.ZodType<V1AccountLeaderboardPreviewResponseBody$Outbound, z.ZodTypeDef, V1AccountLeaderboardPreviewResponseBody>;
35
- /** @deprecated use `V1AccountLeaderboardPreviewResponseBody$Outbound` instead. */
36
- type Outbound = V1AccountLeaderboardPreviewResponseBody$Outbound;
37
- }
38
- //# sourceMappingURL=v1accountleaderboardpreviewresponsebody.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"v1accountleaderboardpreviewresponsebody.d.ts","sourceRoot":"","sources":["../../src/models/components/v1accountleaderboardpreviewresponsebody.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,gDAAgD,GAAG;IAC7D,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sDAAsD,EAAE,CAAC,CAAC,OAAO,CAC5E,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,uCAAuC,CASvC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,wCAAwC,CAAC;IACxD,uFAAuF;IAChF,MAAM,aAAa,2EAC6B,CAAC;IACxD,wFAAwF;IACjF,MAAM,cAAc,oHAC6B,CAAC;IACzD,kFAAkF;IAClF,KAAY,QAAQ,GAAG,gDAAgD,CAAC;CACzE"}
@@ -1,63 +0,0 @@
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.V1AccountLeaderboardPreviewResponseBody$ = exports.V1AccountLeaderboardPreviewResponseBody$outboundSchema = exports.V1AccountLeaderboardPreviewResponseBody$inboundSchema = void 0;
30
- const z = __importStar(require("zod"));
31
- const primitives_js_1 = require("../../lib/primitives.js");
32
- /** @internal */
33
- exports.V1AccountLeaderboardPreviewResponseBody$inboundSchema = z.object({
34
- $schema: z.string().optional(),
35
- currentRank: z.number().int(),
36
- wouldBeRank: z.number().int(),
37
- }).transform((v) => {
38
- return (0, primitives_js_1.remap)(v, {
39
- "$schema": "dollarSchema",
40
- });
41
- });
42
- /** @internal */
43
- exports.V1AccountLeaderboardPreviewResponseBody$outboundSchema = z.object({
44
- dollarSchema: z.string().optional(),
45
- currentRank: z.number().int(),
46
- wouldBeRank: z.number().int(),
47
- }).transform((v) => {
48
- return (0, primitives_js_1.remap)(v, {
49
- dollarSchema: "$schema",
50
- });
51
- });
52
- /**
53
- * @internal
54
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
55
- */
56
- var V1AccountLeaderboardPreviewResponseBody$;
57
- (function (V1AccountLeaderboardPreviewResponseBody$) {
58
- /** @deprecated use `V1AccountLeaderboardPreviewResponseBody$inboundSchema` instead. */
59
- V1AccountLeaderboardPreviewResponseBody$.inboundSchema = exports.V1AccountLeaderboardPreviewResponseBody$inboundSchema;
60
- /** @deprecated use `V1AccountLeaderboardPreviewResponseBody$outboundSchema` instead. */
61
- V1AccountLeaderboardPreviewResponseBody$.outboundSchema = exports.V1AccountLeaderboardPreviewResponseBody$outboundSchema;
62
- })(V1AccountLeaderboardPreviewResponseBody$ || (exports.V1AccountLeaderboardPreviewResponseBody$ = V1AccountLeaderboardPreviewResponseBody$ = {}));
63
- //# sourceMappingURL=v1accountleaderboardpreviewresponsebody.js.map