@steamsets/client-ts 0.22.3 → 0.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/docs/sdks/leaderboard/README.md +4 -28
  2. package/funcs/leaderboardGetAccount.d.ts +1 -1
  3. package/funcs/leaderboardGetAccount.d.ts.map +1 -1
  4. package/funcs/leaderboardGetAccount.js +2 -4
  5. package/funcs/leaderboardGetAccount.js.map +1 -1
  6. package/funcs/leaderboardGetAccountMeta.d.ts +1 -1
  7. package/funcs/leaderboardGetAccountMeta.js +2 -2
  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/session.d.ts +5 -0
  12. package/models/components/session.d.ts.map +1 -1
  13. package/models/components/session.js +2 -0
  14. package/models/components/session.js.map +1 -1
  15. package/models/components/v1getsessionbody.d.ts +11 -1
  16. package/models/components/v1getsessionbody.d.ts.map +1 -1
  17. package/models/components/v1getsessionbody.js +4 -0
  18. package/models/components/v1getsessionbody.js.map +1 -1
  19. package/models/components/v1uploadedimage.d.ts +8 -8
  20. package/models/components/v1uploadedimage.d.ts.map +1 -1
  21. package/models/components/v1uploadedimage.js +13 -13
  22. package/models/components/v1uploadedimage.js.map +1 -1
  23. package/models/components/vanitystruct.d.ts +8 -8
  24. package/models/components/vanitystruct.d.ts.map +1 -1
  25. package/models/components/vanitystruct.js +13 -13
  26. package/models/components/vanitystruct.js.map +1 -1
  27. package/models/operations/index.d.ts +2 -2
  28. package/models/operations/index.d.ts.map +1 -1
  29. package/models/operations/index.js +2 -2
  30. package/models/operations/index.js.map +1 -1
  31. package/models/operations/leaderboardv1getaccountleaderboard.d.ts +35 -0
  32. package/models/operations/leaderboardv1getaccountleaderboard.d.ts.map +1 -0
  33. package/models/operations/{leaderboardv1getaccount.js → leaderboardv1getaccountleaderboard.js} +17 -17
  34. package/models/operations/leaderboardv1getaccountleaderboard.js.map +1 -0
  35. package/models/operations/leaderboardv1getaccountleaderboardmeta.d.ts +35 -0
  36. package/models/operations/{leaderboardv1getleaderboardaccountmeta.d.ts.map → leaderboardv1getaccountleaderboardmeta.d.ts.map} +1 -1
  37. package/models/operations/{leaderboardv1getleaderboardaccountmeta.js → leaderboardv1getaccountleaderboardmeta.js} +17 -17
  38. package/models/operations/{leaderboardv1getleaderboardaccountmeta.js.map → leaderboardv1getaccountleaderboardmeta.js.map} +1 -1
  39. package/package.json +1 -1
  40. package/sdk/leaderboard.d.ts +2 -2
  41. package/sdk/leaderboard.d.ts.map +1 -1
  42. package/src/funcs/leaderboardGetAccount.ts +9 -7
  43. package/src/funcs/leaderboardGetAccountMeta.ts +5 -5
  44. package/src/lib/config.ts +3 -3
  45. package/src/models/components/session.ts +7 -0
  46. package/src/models/components/v1getsessionbody.ts +15 -1
  47. package/src/models/components/v1uploadedimage.ts +16 -15
  48. package/src/models/components/vanitystruct.ts +15 -16
  49. package/src/models/operations/index.ts +2 -2
  50. package/src/models/operations/leaderboardv1getaccountleaderboard.ts +101 -0
  51. package/src/models/operations/{leaderboardv1getleaderboardaccountmeta.ts → leaderboardv1getaccountleaderboardmeta.ts} +23 -23
  52. package/src/sdk/leaderboard.ts +2 -2
  53. package/models/operations/leaderboardv1getaccount.d.ts +0 -35
  54. package/models/operations/leaderboardv1getaccount.d.ts.map +0 -1
  55. package/models/operations/leaderboardv1getaccount.js.map +0 -1
  56. package/models/operations/leaderboardv1getleaderboardaccountmeta.d.ts +0 -35
  57. package/src/models/operations/leaderboardv1getaccount.ts +0 -93
@@ -0,0 +1,101 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import * as components from "../components/index.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type LeaderboardV1GetAccountLeaderboardResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountLeaderboardResponseBody?:
18
+ | components.V1AccountLeaderboardResponseBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const LeaderboardV1GetAccountLeaderboardResponse$inboundSchema:
24
+ z.ZodType<LeaderboardV1GetAccountLeaderboardResponse, z.ZodTypeDef, unknown> =
25
+ z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ V1AccountLeaderboardResponseBody: components
28
+ .V1AccountLeaderboardResponseBody$inboundSchema.optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "HttpMeta": "httpMeta",
32
+ "V1AccountLeaderboardResponseBody": "v1AccountLeaderboardResponseBody",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type LeaderboardV1GetAccountLeaderboardResponse$Outbound = {
38
+ HttpMeta: components.HTTPMetadata$Outbound;
39
+ V1AccountLeaderboardResponseBody?:
40
+ | components.V1AccountLeaderboardResponseBody$Outbound
41
+ | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const LeaderboardV1GetAccountLeaderboardResponse$outboundSchema:
46
+ z.ZodType<
47
+ LeaderboardV1GetAccountLeaderboardResponse$Outbound,
48
+ z.ZodTypeDef,
49
+ LeaderboardV1GetAccountLeaderboardResponse
50
+ > = z.object({
51
+ httpMeta: components.HTTPMetadata$outboundSchema,
52
+ v1AccountLeaderboardResponseBody: components
53
+ .V1AccountLeaderboardResponseBody$outboundSchema.optional(),
54
+ }).transform((v) => {
55
+ return remap$(v, {
56
+ httpMeta: "HttpMeta",
57
+ v1AccountLeaderboardResponseBody: "V1AccountLeaderboardResponseBody",
58
+ });
59
+ });
60
+
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export namespace LeaderboardV1GetAccountLeaderboardResponse$ {
66
+ /** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$inboundSchema` instead. */
67
+ export const inboundSchema =
68
+ LeaderboardV1GetAccountLeaderboardResponse$inboundSchema;
69
+ /** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$outboundSchema` instead. */
70
+ export const outboundSchema =
71
+ LeaderboardV1GetAccountLeaderboardResponse$outboundSchema;
72
+ /** @deprecated use `LeaderboardV1GetAccountLeaderboardResponse$Outbound` instead. */
73
+ export type Outbound = LeaderboardV1GetAccountLeaderboardResponse$Outbound;
74
+ }
75
+
76
+ export function leaderboardV1GetAccountLeaderboardResponseToJSON(
77
+ leaderboardV1GetAccountLeaderboardResponse:
78
+ LeaderboardV1GetAccountLeaderboardResponse,
79
+ ): string {
80
+ return JSON.stringify(
81
+ LeaderboardV1GetAccountLeaderboardResponse$outboundSchema.parse(
82
+ leaderboardV1GetAccountLeaderboardResponse,
83
+ ),
84
+ );
85
+ }
86
+
87
+ export function leaderboardV1GetAccountLeaderboardResponseFromJSON(
88
+ jsonString: string,
89
+ ): SafeParseResult<
90
+ LeaderboardV1GetAccountLeaderboardResponse,
91
+ SDKValidationError
92
+ > {
93
+ return safeParse(
94
+ jsonString,
95
+ (x) =>
96
+ LeaderboardV1GetAccountLeaderboardResponse$inboundSchema.parse(
97
+ JSON.parse(x),
98
+ ),
99
+ `Failed to parse 'LeaderboardV1GetAccountLeaderboardResponse' from JSON`,
100
+ );
101
+ }
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import * as components from "../components/index.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
- export type LeaderboardV1GetLeaderboardAccountMetaResponse = {
12
+ export type LeaderboardV1GetAccountLeaderboardMetaResponse = {
13
13
  httpMeta: components.HTTPMetadata;
14
14
  /**
15
15
  * OK
@@ -20,9 +20,9 @@ export type LeaderboardV1GetLeaderboardAccountMetaResponse = {
20
20
  };
21
21
 
22
22
  /** @internal */
23
- export const LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema:
23
+ export const LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema:
24
24
  z.ZodType<
25
- LeaderboardV1GetLeaderboardAccountMetaResponse,
25
+ LeaderboardV1GetAccountLeaderboardMetaResponse,
26
26
  z.ZodTypeDef,
27
27
  unknown
28
28
  > = z.object({
@@ -38,7 +38,7 @@ export const LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema:
38
38
  });
39
39
 
40
40
  /** @internal */
41
- export type LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound = {
41
+ export type LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound = {
42
42
  HttpMeta: components.HTTPMetadata$Outbound;
43
43
  V1LeaderboardAccountMetaResponseBody?:
44
44
  | components.V1LeaderboardAccountMetaResponseBody$Outbound
@@ -46,11 +46,11 @@ export type LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound = {
46
46
  };
47
47
 
48
48
  /** @internal */
49
- export const LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema:
49
+ export const LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema:
50
50
  z.ZodType<
51
- LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound,
51
+ LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound,
52
52
  z.ZodTypeDef,
53
- LeaderboardV1GetLeaderboardAccountMetaResponse
53
+ LeaderboardV1GetAccountLeaderboardMetaResponse
54
54
  > = z.object({
55
55
  httpMeta: components.HTTPMetadata$outboundSchema,
56
56
  v1LeaderboardAccountMetaResponseBody: components
@@ -67,41 +67,41 @@ export const LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema:
67
67
  * @internal
68
68
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
69
  */
70
- export namespace LeaderboardV1GetLeaderboardAccountMetaResponse$ {
71
- /** @deprecated use `LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema` instead. */
70
+ export namespace LeaderboardV1GetAccountLeaderboardMetaResponse$ {
71
+ /** @deprecated use `LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema` instead. */
72
72
  export const inboundSchema =
73
- LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema;
74
- /** @deprecated use `LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema` instead. */
73
+ LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema;
74
+ /** @deprecated use `LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema` instead. */
75
75
  export const outboundSchema =
76
- LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema;
77
- /** @deprecated use `LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound` instead. */
76
+ LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema;
77
+ /** @deprecated use `LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound` instead. */
78
78
  export type Outbound =
79
- LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound;
79
+ LeaderboardV1GetAccountLeaderboardMetaResponse$Outbound;
80
80
  }
81
81
 
82
- export function leaderboardV1GetLeaderboardAccountMetaResponseToJSON(
83
- leaderboardV1GetLeaderboardAccountMetaResponse:
84
- LeaderboardV1GetLeaderboardAccountMetaResponse,
82
+ export function leaderboardV1GetAccountLeaderboardMetaResponseToJSON(
83
+ leaderboardV1GetAccountLeaderboardMetaResponse:
84
+ LeaderboardV1GetAccountLeaderboardMetaResponse,
85
85
  ): string {
86
86
  return JSON.stringify(
87
- LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema.parse(
88
- leaderboardV1GetLeaderboardAccountMetaResponse,
87
+ LeaderboardV1GetAccountLeaderboardMetaResponse$outboundSchema.parse(
88
+ leaderboardV1GetAccountLeaderboardMetaResponse,
89
89
  ),
90
90
  );
91
91
  }
92
92
 
93
- export function leaderboardV1GetLeaderboardAccountMetaResponseFromJSON(
93
+ export function leaderboardV1GetAccountLeaderboardMetaResponseFromJSON(
94
94
  jsonString: string,
95
95
  ): SafeParseResult<
96
- LeaderboardV1GetLeaderboardAccountMetaResponse,
96
+ LeaderboardV1GetAccountLeaderboardMetaResponse,
97
97
  SDKValidationError
98
98
  > {
99
99
  return safeParse(
100
100
  jsonString,
101
101
  (x) =>
102
- LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema.parse(
102
+ LeaderboardV1GetAccountLeaderboardMetaResponse$inboundSchema.parse(
103
103
  JSON.parse(x),
104
104
  ),
105
- `Failed to parse 'LeaderboardV1GetLeaderboardAccountMetaResponse' from JSON`,
105
+ `Failed to parse 'LeaderboardV1GetAccountLeaderboardMetaResponse' from JSON`,
106
106
  );
107
107
  }
@@ -20,7 +20,7 @@ export class Leaderboard extends ClientSDK {
20
20
  async getAccount(
21
21
  request: components.V1AccountLeaderboardRequestBody,
22
22
  options?: RequestOptions,
23
- ): Promise<operations.LeaderboardV1GetAccountResponse> {
23
+ ): Promise<operations.LeaderboardV1GetAccountLeaderboardResponse> {
24
24
  return unwrapAsync(leaderboardGetAccount(
25
25
  this,
26
26
  request,
@@ -31,7 +31,7 @@ export class Leaderboard extends ClientSDK {
31
31
  async getAccountMeta(
32
32
  request: components.V1LeaderboardAccountMetaRequestBody,
33
33
  options?: RequestOptions,
34
- ): Promise<operations.LeaderboardV1GetLeaderboardAccountMetaResponse> {
34
+ ): Promise<operations.LeaderboardV1GetAccountLeaderboardMetaResponse> {
35
35
  return unwrapAsync(leaderboardGetAccountMeta(
36
36
  this,
37
37
  request,
@@ -1,35 +0,0 @@
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 LeaderboardV1GetAccountResponse = {
6
- httpMeta: components.HTTPMetadata;
7
- /**
8
- * OK
9
- */
10
- v1AccountLeaderboardResponseBody?: components.V1AccountLeaderboardResponseBody | undefined;
11
- };
12
- /** @internal */
13
- export declare const LeaderboardV1GetAccountResponse$inboundSchema: z.ZodType<LeaderboardV1GetAccountResponse, z.ZodTypeDef, unknown>;
14
- /** @internal */
15
- export type LeaderboardV1GetAccountResponse$Outbound = {
16
- HttpMeta: components.HTTPMetadata$Outbound;
17
- V1AccountLeaderboardResponseBody?: components.V1AccountLeaderboardResponseBody$Outbound | undefined;
18
- };
19
- /** @internal */
20
- export declare const LeaderboardV1GetAccountResponse$outboundSchema: z.ZodType<LeaderboardV1GetAccountResponse$Outbound, z.ZodTypeDef, LeaderboardV1GetAccountResponse>;
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 LeaderboardV1GetAccountResponse$ {
26
- /** @deprecated use `LeaderboardV1GetAccountResponse$inboundSchema` instead. */
27
- const inboundSchema: z.ZodType<LeaderboardV1GetAccountResponse, z.ZodTypeDef, unknown>;
28
- /** @deprecated use `LeaderboardV1GetAccountResponse$outboundSchema` instead. */
29
- const outboundSchema: z.ZodType<LeaderboardV1GetAccountResponse$Outbound, z.ZodTypeDef, LeaderboardV1GetAccountResponse>;
30
- /** @deprecated use `LeaderboardV1GetAccountResponse$Outbound` instead. */
31
- type Outbound = LeaderboardV1GetAccountResponse$Outbound;
32
- }
33
- export declare function leaderboardV1GetAccountResponseToJSON(leaderboardV1GetAccountResponse: LeaderboardV1GetAccountResponse): string;
34
- export declare function leaderboardV1GetAccountResponseFromJSON(jsonString: string): SafeParseResult<LeaderboardV1GetAccountResponse, SDKValidationError>;
35
- //# sourceMappingURL=leaderboardv1getaccount.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardv1getaccount.d.ts","sourceRoot":"","sources":["../../src/models/operations/leaderboardv1getaccount.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,+BAA+B,GAAG;IAC5C,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,gCAAgC,CAAC,EAC7B,UAAU,CAAC,gCAAgC,GAC3C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,QAAQ,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAC3C,gCAAgC,CAAC,EAC7B,UAAU,CAAC,yCAAyC,GACpD,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAU/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE;AAED,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"leaderboardv1getaccount.js","sourceRoot":"","sources":["../../src/models/operations/leaderboardv1getaccount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwEH,sFAQC;AAED,0FAQC;AAxFD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAarD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,gCAAgC,EAAE,UAAU;SACzC,8CAA8C,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,kCAAkC,EAAE,kCAAkC;KACvE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,gCAAgC,EAAE,UAAU;SACzC,+CAA+C,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,gCAAgC,EAAE,kCAAkC;KACrE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD;AAED,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,35 +0,0 @@
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 LeaderboardV1GetLeaderboardAccountMetaResponse = {
6
- httpMeta: components.HTTPMetadata;
7
- /**
8
- * OK
9
- */
10
- v1LeaderboardAccountMetaResponseBody?: components.V1LeaderboardAccountMetaResponseBody | undefined;
11
- };
12
- /** @internal */
13
- export declare const LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema: z.ZodType<LeaderboardV1GetLeaderboardAccountMetaResponse, z.ZodTypeDef, unknown>;
14
- /** @internal */
15
- export type LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound = {
16
- HttpMeta: components.HTTPMetadata$Outbound;
17
- V1LeaderboardAccountMetaResponseBody?: components.V1LeaderboardAccountMetaResponseBody$Outbound | undefined;
18
- };
19
- /** @internal */
20
- export declare const LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema: z.ZodType<LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound, z.ZodTypeDef, LeaderboardV1GetLeaderboardAccountMetaResponse>;
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 LeaderboardV1GetLeaderboardAccountMetaResponse$ {
26
- /** @deprecated use `LeaderboardV1GetLeaderboardAccountMetaResponse$inboundSchema` instead. */
27
- const inboundSchema: z.ZodType<LeaderboardV1GetLeaderboardAccountMetaResponse, z.ZodTypeDef, unknown>;
28
- /** @deprecated use `LeaderboardV1GetLeaderboardAccountMetaResponse$outboundSchema` instead. */
29
- const outboundSchema: z.ZodType<LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound, z.ZodTypeDef, LeaderboardV1GetLeaderboardAccountMetaResponse>;
30
- /** @deprecated use `LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound` instead. */
31
- type Outbound = LeaderboardV1GetLeaderboardAccountMetaResponse$Outbound;
32
- }
33
- export declare function leaderboardV1GetLeaderboardAccountMetaResponseToJSON(leaderboardV1GetLeaderboardAccountMetaResponse: LeaderboardV1GetLeaderboardAccountMetaResponse): string;
34
- export declare function leaderboardV1GetLeaderboardAccountMetaResponseFromJSON(jsonString: string): SafeParseResult<LeaderboardV1GetLeaderboardAccountMetaResponse, SDKValidationError>;
35
- //# sourceMappingURL=leaderboardv1getleaderboardaccountmeta.d.ts.map
@@ -1,93 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { Result as SafeParseResult } from "../../types/fp.js";
9
- import * as components from "../components/index.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type LeaderboardV1GetAccountResponse = {
13
- httpMeta: components.HTTPMetadata;
14
- /**
15
- * OK
16
- */
17
- v1AccountLeaderboardResponseBody?:
18
- | components.V1AccountLeaderboardResponseBody
19
- | undefined;
20
- };
21
-
22
- /** @internal */
23
- export const LeaderboardV1GetAccountResponse$inboundSchema: z.ZodType<
24
- LeaderboardV1GetAccountResponse,
25
- z.ZodTypeDef,
26
- unknown
27
- > = z.object({
28
- HttpMeta: components.HTTPMetadata$inboundSchema,
29
- V1AccountLeaderboardResponseBody: components
30
- .V1AccountLeaderboardResponseBody$inboundSchema.optional(),
31
- }).transform((v) => {
32
- return remap$(v, {
33
- "HttpMeta": "httpMeta",
34
- "V1AccountLeaderboardResponseBody": "v1AccountLeaderboardResponseBody",
35
- });
36
- });
37
-
38
- /** @internal */
39
- export type LeaderboardV1GetAccountResponse$Outbound = {
40
- HttpMeta: components.HTTPMetadata$Outbound;
41
- V1AccountLeaderboardResponseBody?:
42
- | components.V1AccountLeaderboardResponseBody$Outbound
43
- | undefined;
44
- };
45
-
46
- /** @internal */
47
- export const LeaderboardV1GetAccountResponse$outboundSchema: z.ZodType<
48
- LeaderboardV1GetAccountResponse$Outbound,
49
- z.ZodTypeDef,
50
- LeaderboardV1GetAccountResponse
51
- > = z.object({
52
- httpMeta: components.HTTPMetadata$outboundSchema,
53
- v1AccountLeaderboardResponseBody: components
54
- .V1AccountLeaderboardResponseBody$outboundSchema.optional(),
55
- }).transform((v) => {
56
- return remap$(v, {
57
- httpMeta: "HttpMeta",
58
- v1AccountLeaderboardResponseBody: "V1AccountLeaderboardResponseBody",
59
- });
60
- });
61
-
62
- /**
63
- * @internal
64
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
65
- */
66
- export namespace LeaderboardV1GetAccountResponse$ {
67
- /** @deprecated use `LeaderboardV1GetAccountResponse$inboundSchema` instead. */
68
- export const inboundSchema = LeaderboardV1GetAccountResponse$inboundSchema;
69
- /** @deprecated use `LeaderboardV1GetAccountResponse$outboundSchema` instead. */
70
- export const outboundSchema = LeaderboardV1GetAccountResponse$outboundSchema;
71
- /** @deprecated use `LeaderboardV1GetAccountResponse$Outbound` instead. */
72
- export type Outbound = LeaderboardV1GetAccountResponse$Outbound;
73
- }
74
-
75
- export function leaderboardV1GetAccountResponseToJSON(
76
- leaderboardV1GetAccountResponse: LeaderboardV1GetAccountResponse,
77
- ): string {
78
- return JSON.stringify(
79
- LeaderboardV1GetAccountResponse$outboundSchema.parse(
80
- leaderboardV1GetAccountResponse,
81
- ),
82
- );
83
- }
84
-
85
- export function leaderboardV1GetAccountResponseFromJSON(
86
- jsonString: string,
87
- ): SafeParseResult<LeaderboardV1GetAccountResponse, SDKValidationError> {
88
- return safeParse(
89
- jsonString,
90
- (x) => LeaderboardV1GetAccountResponse$inboundSchema.parse(JSON.parse(x)),
91
- `Failed to parse 'LeaderboardV1GetAccountResponse' from JSON`,
92
- );
93
- }