@steamsets/client-ts 0.22.8 → 0.22.11

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 (43) hide show
  1. package/README.md +2 -0
  2. package/docs/sdks/leaderboard/README.md +77 -0
  3. package/funcs/leaderboardGetGroupMeta.d.ts +12 -0
  4. package/funcs/leaderboardGetGroupMeta.d.ts.map +1 -0
  5. package/funcs/leaderboardGetGroupMeta.js +116 -0
  6. package/funcs/leaderboardGetGroupMeta.js.map +1 -0
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +2 -2
  9. package/lib/config.js +2 -2
  10. package/lib/config.js.map +1 -1
  11. package/models/components/index.d.ts +2 -0
  12. package/models/components/index.d.ts.map +1 -1
  13. package/models/components/index.js +2 -0
  14. package/models/components/index.js.map +1 -1
  15. package/models/components/v1leaderboardgroupmetarequestbody.d.ts +61 -0
  16. package/models/components/v1leaderboardgroupmetarequestbody.d.ts.map +1 -0
  17. package/models/components/v1leaderboardgroupmetarequestbody.js +81 -0
  18. package/models/components/v1leaderboardgroupmetarequestbody.js.map +1 -0
  19. package/models/components/v1leaderboardgroupmetaresponsebody.d.ts +36 -0
  20. package/models/components/v1leaderboardgroupmetaresponsebody.d.ts.map +1 -0
  21. package/models/components/v1leaderboardgroupmetaresponsebody.js +72 -0
  22. package/models/components/v1leaderboardgroupmetaresponsebody.js.map +1 -0
  23. package/models/operations/index.d.ts +1 -0
  24. package/models/operations/index.d.ts.map +1 -1
  25. package/models/operations/index.js +1 -0
  26. package/models/operations/index.js.map +1 -1
  27. package/models/operations/leaderboardv1getgroupleaderboardmeta.d.ts +35 -0
  28. package/models/operations/leaderboardv1getgroupleaderboardmeta.d.ts.map +1 -0
  29. package/models/operations/leaderboardv1getgroupleaderboardmeta.js +75 -0
  30. package/models/operations/leaderboardv1getgroupleaderboardmeta.js.map +1 -0
  31. package/package.json +1 -1
  32. package/sdk/leaderboard.d.ts +1 -0
  33. package/sdk/leaderboard.d.ts.map +1 -1
  34. package/sdk/leaderboard.js +4 -0
  35. package/sdk/leaderboard.js.map +1 -1
  36. package/src/funcs/leaderboardGetGroupMeta.ts +184 -0
  37. package/src/lib/config.ts +2 -2
  38. package/src/models/components/index.ts +2 -0
  39. package/src/models/components/v1leaderboardgroupmetarequestbody.ts +109 -0
  40. package/src/models/components/v1leaderboardgroupmetaresponsebody.ts +90 -0
  41. package/src/models/operations/index.ts +1 -0
  42. package/src/models/operations/leaderboardv1getgroupleaderboardmeta.ts +105 -0
  43. package/src/sdk/leaderboard.ts +12 -0
@@ -50,6 +50,7 @@ export * from "./leaderboardv1getaccountleaderboard.js";
50
50
  export * from "./leaderboardv1getaccountleaderboardmeta.js";
51
51
  export * from "./leaderboardv1getbadges.js";
52
52
  export * from "./leaderboardv1getgroup.js";
53
+ export * from "./leaderboardv1getgroupleaderboardmeta.js";
53
54
  export * from "./liveness.js";
54
55
  export * from "./locationv1locationget.js";
55
56
  export * from "./statsv1statsget.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":"AAIA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qCAAqC,CAAC;AACpD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC"}
@@ -69,6 +69,7 @@ __exportStar(require("./leaderboardv1getaccountleaderboard.js"), exports);
69
69
  __exportStar(require("./leaderboardv1getaccountleaderboardmeta.js"), exports);
70
70
  __exportStar(require("./leaderboardv1getbadges.js"), exports);
71
71
  __exportStar(require("./leaderboardv1getgroup.js"), exports);
72
+ __exportStar(require("./leaderboardv1getgroupleaderboardmeta.js"), exports);
72
73
  __exportStar(require("./liveness.js"), exports);
73
74
  __exportStar(require("./locationv1locationget.js"), exports);
74
75
  __exportStar(require("./statsv1statsget.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,8DAA4C;AAC5C,kEAAgD;AAChD,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AACzD,2EAAyD;AACzD,wDAAsC;AACtC,kEAAgD;AAChD,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,wDAAsC;AACtC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,0DAAwC;AACxC,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,6DAA2C;AAC3C,8DAA4C;AAC5C,+DAA6C;AAC7C,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,8EAA4D;AAC5D,uEAAqD;AACrD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mEAAiD;AACjD,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,8DAA4C;AAC5C,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,0DAAwC;AACxC,0EAAwD;AACxD,8EAA4D;AAC5D,8DAA4C;AAC5C,6DAA2C;AAC3C,gDAA8B;AAC9B,6DAA2C;AAC3C,uDAAqC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,8DAA4C;AAC5C,kEAAgD;AAChD,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AACzD,2EAAyD;AACzD,wDAAsC;AACtC,kEAAgD;AAChD,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,wDAAsC;AACtC,sEAAoD;AACpD,wDAAsC;AACtC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,0DAAwC;AACxC,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,6DAA2C;AAC3C,8DAA4C;AAC5C,+DAA6C;AAC7C,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,8EAA4D;AAC5D,uEAAqD;AACrD,oEAAkD;AAClD,4DAA0C;AAC1C,+DAA6C;AAC7C,mEAAiD;AACjD,yDAAuC;AACvC,wDAAsC;AACtC,2DAAyC;AACzC,0DAAwC;AACxC,8DAA4C;AAC5C,0DAAwC;AACxC,uDAAqC;AACrC,qDAAmC;AACnC,4DAA0C;AAC1C,kDAAgC;AAChC,mDAAiC;AACjC,0DAAwC;AACxC,0EAAwD;AACxD,8EAA4D;AAC5D,8DAA4C;AAC5C,6DAA2C;AAC3C,4EAA0D;AAC1D,gDAA8B;AAC9B,6DAA2C;AAC3C,uDAAqC"}
@@ -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 LeaderboardV1GetGroupLeaderboardMetaResponse = {
6
+ httpMeta: components.HTTPMetadata;
7
+ /**
8
+ * OK
9
+ */
10
+ v1LeaderboardGroupMetaResponseBody?: components.V1LeaderboardGroupMetaResponseBody | undefined;
11
+ };
12
+ /** @internal */
13
+ export declare const LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema: z.ZodType<LeaderboardV1GetGroupLeaderboardMetaResponse, z.ZodTypeDef, unknown>;
14
+ /** @internal */
15
+ export type LeaderboardV1GetGroupLeaderboardMetaResponse$Outbound = {
16
+ HttpMeta: components.HTTPMetadata$Outbound;
17
+ V1LeaderboardGroupMetaResponseBody?: components.V1LeaderboardGroupMetaResponseBody$Outbound | undefined;
18
+ };
19
+ /** @internal */
20
+ export declare const LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema: z.ZodType<LeaderboardV1GetGroupLeaderboardMetaResponse$Outbound, z.ZodTypeDef, LeaderboardV1GetGroupLeaderboardMetaResponse>;
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 LeaderboardV1GetGroupLeaderboardMetaResponse$ {
26
+ /** @deprecated use `LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema` instead. */
27
+ const inboundSchema: z.ZodType<LeaderboardV1GetGroupLeaderboardMetaResponse, z.ZodTypeDef, unknown>;
28
+ /** @deprecated use `LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema` instead. */
29
+ const outboundSchema: z.ZodType<LeaderboardV1GetGroupLeaderboardMetaResponse$Outbound, z.ZodTypeDef, LeaderboardV1GetGroupLeaderboardMetaResponse>;
30
+ /** @deprecated use `LeaderboardV1GetGroupLeaderboardMetaResponse$Outbound` instead. */
31
+ type Outbound = LeaderboardV1GetGroupLeaderboardMetaResponse$Outbound;
32
+ }
33
+ export declare function leaderboardV1GetGroupLeaderboardMetaResponseToJSON(leaderboardV1GetGroupLeaderboardMetaResponse: LeaderboardV1GetGroupLeaderboardMetaResponse): string;
34
+ export declare function leaderboardV1GetGroupLeaderboardMetaResponseFromJSON(jsonString: string): SafeParseResult<LeaderboardV1GetGroupLeaderboardMetaResponse, SDKValidationError>;
35
+ //# sourceMappingURL=leaderboardv1getgroupleaderboardmeta.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaderboardv1getgroupleaderboardmeta.d.ts","sourceRoot":"","sources":["../../src/models/operations/leaderboardv1getgroupleaderboardmeta.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,4CAA4C,GAAG;IACzD,QAAQ,EAAE,UAAU,CAAC,YAAY,CAAC;IAClC;;OAEG;IACH,kCAAkC,CAAC,EAC/B,UAAU,CAAC,kCAAkC,GAC7C,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0DAA0D,EACrE,CAAC,CAAC,OAAO,CACP,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEL,gBAAgB;AAChB,MAAM,MAAM,qDAAqD,GAAG;IAClE,QAAQ,EAAE,UAAU,CAAC,qBAAqB,CAAC;IAC3C,kCAAkC,CAAC,EAC/B,UAAU,CAAC,2CAA2C,GACtD,SAAS,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2DAA2D,EACtE,CAAC,CAAC,OAAO,CACP,qDAAqD,EACrD,CAAC,CAAC,UAAU,EACZ,4CAA4C,CAU5C,CAAC;AAEL;;;GAGG;AACH,yBAAiB,6CAA6C,CAAC;IAC7D,4FAA4F;IACrF,MAAM,aAAa,gFACkC,CAAC;IAC7D,6FAA6F;IACtF,MAAM,cAAc,8HACkC,CAAC;IAC9D,uFAAuF;IACvF,KAAY,QAAQ,GAAG,qDAAqD,CAAC;CAC9E;AAED,wBAAgB,kDAAkD,CAChE,4CAA4C,EAC1C,4CAA4C,GAC7C,MAAM,CAMR;AAED,wBAAgB,oDAAoD,CAClE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,4CAA4C,EAC5C,kBAAkB,CACnB,CASA"}
@@ -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.LeaderboardV1GetGroupLeaderboardMetaResponse$ = exports.LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema = exports.LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema = void 0;
30
+ exports.leaderboardV1GetGroupLeaderboardMetaResponseToJSON = leaderboardV1GetGroupLeaderboardMetaResponseToJSON;
31
+ exports.leaderboardV1GetGroupLeaderboardMetaResponseFromJSON = leaderboardV1GetGroupLeaderboardMetaResponseFromJSON;
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.LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema = z.object({
38
+ HttpMeta: components.HTTPMetadata$inboundSchema,
39
+ V1LeaderboardGroupMetaResponseBody: components
40
+ .V1LeaderboardGroupMetaResponseBody$inboundSchema.optional(),
41
+ }).transform((v) => {
42
+ return (0, primitives_js_1.remap)(v, {
43
+ "HttpMeta": "httpMeta",
44
+ "V1LeaderboardGroupMetaResponseBody": "v1LeaderboardGroupMetaResponseBody",
45
+ });
46
+ });
47
+ /** @internal */
48
+ exports.LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema = z.object({
49
+ httpMeta: components.HTTPMetadata$outboundSchema,
50
+ v1LeaderboardGroupMetaResponseBody: components
51
+ .V1LeaderboardGroupMetaResponseBody$outboundSchema.optional(),
52
+ }).transform((v) => {
53
+ return (0, primitives_js_1.remap)(v, {
54
+ httpMeta: "HttpMeta",
55
+ v1LeaderboardGroupMetaResponseBody: "V1LeaderboardGroupMetaResponseBody",
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 LeaderboardV1GetGroupLeaderboardMetaResponse$;
63
+ (function (LeaderboardV1GetGroupLeaderboardMetaResponse$) {
64
+ /** @deprecated use `LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema` instead. */
65
+ LeaderboardV1GetGroupLeaderboardMetaResponse$.inboundSchema = exports.LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema;
66
+ /** @deprecated use `LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema` instead. */
67
+ LeaderboardV1GetGroupLeaderboardMetaResponse$.outboundSchema = exports.LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema;
68
+ })(LeaderboardV1GetGroupLeaderboardMetaResponse$ || (exports.LeaderboardV1GetGroupLeaderboardMetaResponse$ = LeaderboardV1GetGroupLeaderboardMetaResponse$ = {}));
69
+ function leaderboardV1GetGroupLeaderboardMetaResponseToJSON(leaderboardV1GetGroupLeaderboardMetaResponse) {
70
+ return JSON.stringify(exports.LeaderboardV1GetGroupLeaderboardMetaResponse$outboundSchema.parse(leaderboardV1GetGroupLeaderboardMetaResponse));
71
+ }
72
+ function leaderboardV1GetGroupLeaderboardMetaResponseFromJSON(jsonString) {
73
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LeaderboardV1GetGroupLeaderboardMetaResponse' from JSON`);
74
+ }
75
+ //# sourceMappingURL=leaderboardv1getgroupleaderboardmeta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leaderboardv1getgroupleaderboardmeta.js","sourceRoot":"","sources":["../../src/models/operations/leaderboardv1getgroupleaderboardmeta.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA6EH,gHASC;AAED,oHAcC;AApGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAarD,gBAAgB;AACH,QAAA,0DAA0D,GAKjE,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,0BAA0B;IAC/C,kCAAkC,EAAE,UAAU;SAC3C,gDAAgD,CAAC,QAAQ,EAAE;CAC/D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,UAAU;QACtB,oCAAoC,EAClC,oCAAoC;KACvC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUL,gBAAgB;AACH,QAAA,2DAA2D,GAKlE,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,UAAU,CAAC,2BAA2B;IAChD,kCAAkC,EAAE,UAAU;SAC3C,iDAAiD,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,kCAAkC,EAAE,oCAAoC;KACzE,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL;;;GAGG;AACH,IAAiB,6CAA6C,CAS7D;AATD,WAAiB,6CAA6C;IAC5D,4FAA4F;IAC/E,2DAAa,GACxB,kEAA0D,CAAC;IAC7D,6FAA6F;IAChF,4DAAc,GACzB,mEAA2D,CAAC;AAGhE,CAAC,EATgB,6CAA6C,6DAA7C,6CAA6C,QAS7D;AAED,SAAgB,kDAAkD,CAChE,4CAC8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,mEAA2D,CAAC,KAAK,CAC/D,4CAA4C,CAC7C,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,oDAAoD,CAClE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kEAA0D,CAAC,KAAK,CAC9D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,0EAA0E,CAC3E,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steamsets/client-ts",
3
- "version": "0.22.8",
3
+ "version": "0.22.11",
4
4
  "author": "Speakeasy",
5
5
  "main": "./index.js",
6
6
  "sideEffects": false,
@@ -8,5 +8,6 @@ export declare class Leaderboard extends ClientSDK {
8
8
  getAccount(request: components.V1AccountLeaderboardRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetAccountLeaderboardResponse>;
9
9
  getAccountMeta(request: components.V1LeaderboardAccountMetaRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetAccountLeaderboardMetaResponse>;
10
10
  getGroup(request: components.V1GroupLeaderboardRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetGroupResponse>;
11
+ getGroupMeta(request: components.V1LeaderboardGroupMetaRequestBody, options?: RequestOptions): Promise<operations.LeaderboardV1GetGroupLeaderboardMetaResponse>;
11
12
  }
12
13
  //# sourceMappingURL=leaderboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"leaderboard.d.ts","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":"AAOA,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;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAEK,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0CAA0C,CAAC;IAQ3D,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8CAA8C,CAAC;IAQ/D,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;CAOrD"}
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;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,qBAAa,WAAY,SAAQ,SAAS;IACxC,OAAO,CAAC,OAAO,CAAC,CAAS;IACzB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAEK,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0CAA0C,CAAC;IAQ3D,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,mCAAmC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8CAA8C,CAAC;IAQ/D,QAAQ,CACZ,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQ9C,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;CAOpE"}
@@ -7,6 +7,7 @@ exports.Leaderboard = void 0;
7
7
  const leaderboardGetAccount_js_1 = require("../funcs/leaderboardGetAccount.js");
8
8
  const leaderboardGetAccountMeta_js_1 = require("../funcs/leaderboardGetAccountMeta.js");
9
9
  const leaderboardGetGroup_js_1 = require("../funcs/leaderboardGetGroup.js");
10
+ const leaderboardGetGroupMeta_js_1 = require("../funcs/leaderboardGetGroupMeta.js");
10
11
  const sdks_js_1 = require("../lib/sdks.js");
11
12
  const fp_js_1 = require("../types/fp.js");
12
13
  const badges_js_1 = require("./badges.js");
@@ -23,6 +24,9 @@ class Leaderboard extends sdks_js_1.ClientSDK {
23
24
  async getGroup(request, options) {
24
25
  return (0, fp_js_1.unwrapAsync)((0, leaderboardGetGroup_js_1.leaderboardGetGroup)(this, request, options));
25
26
  }
27
+ async getGroupMeta(request, options) {
28
+ return (0, fp_js_1.unwrapAsync)((0, leaderboardGetGroupMeta_js_1.leaderboardGetGroupMeta)(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,wFAAkF;AAClF,4EAAsE;AACtE,4CAA2D;AAG3D,0CAA6C;AAC7C,2CAAqC;AAErC,MAAa,WAAY,SAAQ,mBAAS;IAExC,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtCD,kCAsCC"}
1
+ {"version":3,"file":"leaderboard.js","sourceRoot":"","sources":["../src/sdk/leaderboard.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,wFAAkF;AAClF,4EAAsE;AACtE,oFAA8E;AAC9E,4CAA2D;AAG3D,0CAA6C;AAC7C,2CAAqC;AAErC,MAAa,WAAY,SAAQ,mBAAS;IAExC,IAAI,MAAM;QACR,OAAO,CAAC,IAAI,CAAC,OAAO,KAAZ,IAAI,CAAC,OAAO,GAAK,IAAI,kBAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,UAAU,CACd,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,OAAuD,EACvD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CACZ,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjDD,kCAiDC"}
@@ -0,0 +1,184 @@
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 leaderboardGetGroupMeta(
29
+ client: SteamSetsCore,
30
+ request: components.V1LeaderboardGroupMetaRequestBody,
31
+ options?: RequestOptions,
32
+ ): APIPromise<
33
+ Result<
34
+ operations.LeaderboardV1GetGroupLeaderboardMetaResponse,
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.V1LeaderboardGroupMetaRequestBody,
56
+ options?: RequestOptions,
57
+ ): Promise<
58
+ [
59
+ Result<
60
+ operations.LeaderboardV1GetGroupLeaderboardMetaResponse,
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.V1LeaderboardGroupMetaRequestBody$outboundSchema.parse(value),
78
+ "Input validation failed",
79
+ );
80
+ if (!parsed.ok) {
81
+ return [parsed, { status: "invalid" }];
82
+ }
83
+ const payload = parsed.value;
84
+ const body = encodeJSON("body", payload, { explode: true });
85
+
86
+ const path = pathToFunc(
87
+ "/leaderboard.v1.LeaderboardService/GetGroupLeaderboardMeta",
88
+ )();
89
+
90
+ const headers = new Headers(compactMap({
91
+ "Content-Type": "application/json",
92
+ Accept: "application/json",
93
+ }));
94
+
95
+ const secConfig = await extractSecurity(client._options.token);
96
+ const securityInput = secConfig == null ? {} : { token: secConfig };
97
+ const requestSecurity = resolveGlobalSecurity(securityInput);
98
+
99
+ const context = {
100
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
101
+ operationID: "leaderboard.v1.getGroupLeaderboardMeta",
102
+ oAuth2Scopes: [],
103
+
104
+ resolvedSecurity: requestSecurity,
105
+
106
+ securitySource: client._options.token,
107
+ retryConfig: options?.retries
108
+ || client._options.retryConfig
109
+ || {
110
+ strategy: "backoff",
111
+ backoff: {
112
+ initialInterval: 500,
113
+ maxInterval: 5000,
114
+ exponent: 1.5,
115
+ maxElapsedTime: 60000,
116
+ },
117
+ retryConnectionErrors: true,
118
+ }
119
+ || { strategy: "none" },
120
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
121
+ };
122
+
123
+ const requestRes = client._createRequest(context, {
124
+ security: requestSecurity,
125
+ method: "POST",
126
+ baseURL: options?.serverURL,
127
+ path: path,
128
+ headers: headers,
129
+ body: body,
130
+ uaHeader: "x-speakeasy-user-agent",
131
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
132
+ }, options);
133
+ if (!requestRes.ok) {
134
+ return [requestRes, { status: "invalid" }];
135
+ }
136
+ const req = requestRes.value;
137
+
138
+ const doResult = await client._do(req, {
139
+ context,
140
+ errorCodes: ["404", "422", "4XX", "500", "5XX"],
141
+ retryConfig: context.retryConfig,
142
+ retryCodes: context.retryCodes,
143
+ });
144
+ if (!doResult.ok) {
145
+ return [doResult, { status: "request-error", request: req }];
146
+ }
147
+ const response = doResult.value;
148
+
149
+ const responseFields = {
150
+ HttpMeta: { Response: response, Request: req },
151
+ };
152
+
153
+ const [result] = await M.match<
154
+ operations.LeaderboardV1GetGroupLeaderboardMetaResponse,
155
+ | errors.ErrorModel
156
+ | errors.ErrorModel
157
+ | SDKError
158
+ | SDKValidationError
159
+ | UnexpectedClientError
160
+ | InvalidRequestError
161
+ | RequestAbortedError
162
+ | RequestTimeoutError
163
+ | ConnectionError
164
+ >(
165
+ M.json(
166
+ 200,
167
+ operations.LeaderboardV1GetGroupLeaderboardMetaResponse$inboundSchema,
168
+ { key: "V1LeaderboardGroupMetaResponseBody" },
169
+ ),
170
+ M.jsonErr([404, 422], errors.ErrorModel$inboundSchema, {
171
+ ctype: "application/problem+json",
172
+ }),
173
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
174
+ ctype: "application/problem+json",
175
+ }),
176
+ M.fail("4XX"),
177
+ M.fail("5XX"),
178
+ )(response, req, { extraFields: responseFields });
179
+ if (!result.ok) {
180
+ return [result, { status: "complete", request: req, response }];
181
+ }
182
+
183
+ return [result, { status: "complete", request: req, response }];
184
+ }
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.22.8",
58
+ sdkVersion: "0.22.11",
59
59
  genVersion: "2.558.2",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.22.8 2.558.2 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.22.11 2.558.2 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -114,6 +114,8 @@ export * from "./v1leaderboardbadge.js";
114
114
  export * from "./v1leaderboardbadgeevent.js";
115
115
  export * from "./v1leaderboardbadgeinfo.js";
116
116
  export * from "./v1leaderboardbadgeresponsebody.js";
117
+ export * from "./v1leaderboardgroupmetarequestbody.js";
118
+ export * from "./v1leaderboardgroupmetaresponsebody.js";
117
119
  export * from "./v1leaderboardlocation.js";
118
120
  export * from "./v1leaderboardlocationinfo.js";
119
121
  export * from "./v1livenessresponsebody.js";
@@ -0,0 +1,109 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
8
+ import { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * The leaderboard to get
13
+ */
14
+ export const V1LeaderboardGroupMetaRequestBodyLeaderboard = {
15
+ MostMembers: "most_members",
16
+ } as const;
17
+ /**
18
+ * The leaderboard to get
19
+ */
20
+ export type V1LeaderboardGroupMetaRequestBodyLeaderboard = ClosedEnum<
21
+ typeof V1LeaderboardGroupMetaRequestBodyLeaderboard
22
+ >;
23
+
24
+ export type V1LeaderboardGroupMetaRequestBody = {
25
+ /**
26
+ * The leaderboard to get
27
+ */
28
+ leaderboard: V1LeaderboardGroupMetaRequestBodyLeaderboard;
29
+ };
30
+
31
+ /** @internal */
32
+ export const V1LeaderboardGroupMetaRequestBodyLeaderboard$inboundSchema:
33
+ z.ZodNativeEnum<typeof V1LeaderboardGroupMetaRequestBodyLeaderboard> = z
34
+ .nativeEnum(V1LeaderboardGroupMetaRequestBodyLeaderboard);
35
+
36
+ /** @internal */
37
+ export const V1LeaderboardGroupMetaRequestBodyLeaderboard$outboundSchema:
38
+ z.ZodNativeEnum<typeof V1LeaderboardGroupMetaRequestBodyLeaderboard> =
39
+ V1LeaderboardGroupMetaRequestBodyLeaderboard$inboundSchema;
40
+
41
+ /**
42
+ * @internal
43
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
44
+ */
45
+ export namespace V1LeaderboardGroupMetaRequestBodyLeaderboard$ {
46
+ /** @deprecated use `V1LeaderboardGroupMetaRequestBodyLeaderboard$inboundSchema` instead. */
47
+ export const inboundSchema =
48
+ V1LeaderboardGroupMetaRequestBodyLeaderboard$inboundSchema;
49
+ /** @deprecated use `V1LeaderboardGroupMetaRequestBodyLeaderboard$outboundSchema` instead. */
50
+ export const outboundSchema =
51
+ V1LeaderboardGroupMetaRequestBodyLeaderboard$outboundSchema;
52
+ }
53
+
54
+ /** @internal */
55
+ export const V1LeaderboardGroupMetaRequestBody$inboundSchema: z.ZodType<
56
+ V1LeaderboardGroupMetaRequestBody,
57
+ z.ZodTypeDef,
58
+ unknown
59
+ > = z.object({
60
+ leaderboard: V1LeaderboardGroupMetaRequestBodyLeaderboard$inboundSchema,
61
+ });
62
+
63
+ /** @internal */
64
+ export type V1LeaderboardGroupMetaRequestBody$Outbound = {
65
+ leaderboard: string;
66
+ };
67
+
68
+ /** @internal */
69
+ export const V1LeaderboardGroupMetaRequestBody$outboundSchema: z.ZodType<
70
+ V1LeaderboardGroupMetaRequestBody$Outbound,
71
+ z.ZodTypeDef,
72
+ V1LeaderboardGroupMetaRequestBody
73
+ > = z.object({
74
+ leaderboard: V1LeaderboardGroupMetaRequestBodyLeaderboard$outboundSchema,
75
+ });
76
+
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ export namespace V1LeaderboardGroupMetaRequestBody$ {
82
+ /** @deprecated use `V1LeaderboardGroupMetaRequestBody$inboundSchema` instead. */
83
+ export const inboundSchema = V1LeaderboardGroupMetaRequestBody$inboundSchema;
84
+ /** @deprecated use `V1LeaderboardGroupMetaRequestBody$outboundSchema` instead. */
85
+ export const outboundSchema =
86
+ V1LeaderboardGroupMetaRequestBody$outboundSchema;
87
+ /** @deprecated use `V1LeaderboardGroupMetaRequestBody$Outbound` instead. */
88
+ export type Outbound = V1LeaderboardGroupMetaRequestBody$Outbound;
89
+ }
90
+
91
+ export function v1LeaderboardGroupMetaRequestBodyToJSON(
92
+ v1LeaderboardGroupMetaRequestBody: V1LeaderboardGroupMetaRequestBody,
93
+ ): string {
94
+ return JSON.stringify(
95
+ V1LeaderboardGroupMetaRequestBody$outboundSchema.parse(
96
+ v1LeaderboardGroupMetaRequestBody,
97
+ ),
98
+ );
99
+ }
100
+
101
+ export function v1LeaderboardGroupMetaRequestBodyFromJSON(
102
+ jsonString: string,
103
+ ): SafeParseResult<V1LeaderboardGroupMetaRequestBody, SDKValidationError> {
104
+ return safeParse(
105
+ jsonString,
106
+ (x) => V1LeaderboardGroupMetaRequestBody$inboundSchema.parse(JSON.parse(x)),
107
+ `Failed to parse 'V1LeaderboardGroupMetaRequestBody' from JSON`,
108
+ );
109
+ }
@@ -0,0 +1,90 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ export type V1LeaderboardGroupMetaResponseBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ description: string;
17
+ title: string;
18
+ };
19
+
20
+ /** @internal */
21
+ export const V1LeaderboardGroupMetaResponseBody$inboundSchema: z.ZodType<
22
+ V1LeaderboardGroupMetaResponseBody,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ $schema: z.string().optional(),
27
+ description: z.string(),
28
+ title: z.string(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "$schema": "dollarSchema",
32
+ });
33
+ });
34
+
35
+ /** @internal */
36
+ export type V1LeaderboardGroupMetaResponseBody$Outbound = {
37
+ $schema?: string | undefined;
38
+ description: string;
39
+ title: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export const V1LeaderboardGroupMetaResponseBody$outboundSchema: z.ZodType<
44
+ V1LeaderboardGroupMetaResponseBody$Outbound,
45
+ z.ZodTypeDef,
46
+ V1LeaderboardGroupMetaResponseBody
47
+ > = z.object({
48
+ dollarSchema: z.string().optional(),
49
+ description: z.string(),
50
+ title: z.string(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ dollarSchema: "$schema",
54
+ });
55
+ });
56
+
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export namespace V1LeaderboardGroupMetaResponseBody$ {
62
+ /** @deprecated use `V1LeaderboardGroupMetaResponseBody$inboundSchema` instead. */
63
+ export const inboundSchema = V1LeaderboardGroupMetaResponseBody$inboundSchema;
64
+ /** @deprecated use `V1LeaderboardGroupMetaResponseBody$outboundSchema` instead. */
65
+ export const outboundSchema =
66
+ V1LeaderboardGroupMetaResponseBody$outboundSchema;
67
+ /** @deprecated use `V1LeaderboardGroupMetaResponseBody$Outbound` instead. */
68
+ export type Outbound = V1LeaderboardGroupMetaResponseBody$Outbound;
69
+ }
70
+
71
+ export function v1LeaderboardGroupMetaResponseBodyToJSON(
72
+ v1LeaderboardGroupMetaResponseBody: V1LeaderboardGroupMetaResponseBody,
73
+ ): string {
74
+ return JSON.stringify(
75
+ V1LeaderboardGroupMetaResponseBody$outboundSchema.parse(
76
+ v1LeaderboardGroupMetaResponseBody,
77
+ ),
78
+ );
79
+ }
80
+
81
+ export function v1LeaderboardGroupMetaResponseBodyFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<V1LeaderboardGroupMetaResponseBody, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) =>
87
+ V1LeaderboardGroupMetaResponseBody$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'V1LeaderboardGroupMetaResponseBody' from JSON`,
89
+ );
90
+ }
@@ -54,6 +54,7 @@ export * from "./leaderboardv1getaccountleaderboard.js";
54
54
  export * from "./leaderboardv1getaccountleaderboardmeta.js";
55
55
  export * from "./leaderboardv1getbadges.js";
56
56
  export * from "./leaderboardv1getgroup.js";
57
+ export * from "./leaderboardv1getgroupleaderboardmeta.js";
57
58
  export * from "./liveness.js";
58
59
  export * from "./locationv1locationget.js";
59
60
  export * from "./statsv1statsget.js";