@steamsets/client-ts 0.16.0 → 0.17.1

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 (73) hide show
  1. package/README.md +6 -0
  2. package/docs/sdks/account/README.md +73 -0
  3. package/docs/sdks/data/README.md +73 -0
  4. package/docs/sdks/internal/README.md +73 -0
  5. package/funcs/accountAccountV1GetMeta.d.ts +11 -0
  6. package/funcs/accountAccountV1GetMeta.d.ts.map +1 -0
  7. package/funcs/accountAccountV1GetMeta.js +113 -0
  8. package/funcs/accountAccountV1GetMeta.js.map +1 -0
  9. package/funcs/dataAccountV1GetMeta.d.ts +11 -0
  10. package/funcs/dataAccountV1GetMeta.d.ts.map +1 -0
  11. package/funcs/dataAccountV1GetMeta.js +113 -0
  12. package/funcs/dataAccountV1GetMeta.js.map +1 -0
  13. package/funcs/internalAccountV1GetMeta.d.ts +11 -0
  14. package/funcs/internalAccountV1GetMeta.d.ts.map +1 -0
  15. package/funcs/internalAccountV1GetMeta.js +113 -0
  16. package/funcs/internalAccountV1GetMeta.js.map +1 -0
  17. package/funcs/sessionCreate.d.ts.map +1 -1
  18. package/funcs/sessionCreate.js +1 -0
  19. package/funcs/sessionCreate.js.map +1 -1
  20. package/jsr.json +1 -1
  21. package/lib/config.d.ts +3 -3
  22. package/lib/config.js +3 -3
  23. package/models/components/index.d.ts +1 -0
  24. package/models/components/index.d.ts.map +1 -1
  25. package/models/components/index.js +1 -0
  26. package/models/components/index.js.map +1 -1
  27. package/models/components/v1accountmetaresponsebody.d.ts +36 -0
  28. package/models/components/v1accountmetaresponsebody.d.ts.map +1 -0
  29. package/models/components/v1accountmetaresponsebody.js +74 -0
  30. package/models/components/v1accountmetaresponsebody.js.map +1 -0
  31. package/models/components/v1createsessionbody.d.ts +0 -15
  32. package/models/components/v1createsessionbody.d.ts.map +1 -1
  33. package/models/components/v1createsessionbody.js +0 -6
  34. package/models/components/v1createsessionbody.js.map +1 -1
  35. package/models/operations/accountv1getmeta.d.ts +35 -0
  36. package/models/operations/accountv1getmeta.d.ts.map +1 -0
  37. package/models/operations/accountv1getmeta.js +75 -0
  38. package/models/operations/accountv1getmeta.js.map +1 -0
  39. package/models/operations/accountv1sessioncreate.d.ts +6 -0
  40. package/models/operations/accountv1sessioncreate.d.ts.map +1 -1
  41. package/models/operations/accountv1sessioncreate.js +4 -0
  42. package/models/operations/accountv1sessioncreate.js.map +1 -1
  43. package/models/operations/index.d.ts +1 -0
  44. package/models/operations/index.d.ts.map +1 -1
  45. package/models/operations/index.js +1 -0
  46. package/models/operations/index.js.map +1 -1
  47. package/package.json +1 -1
  48. package/sdk/account.d.ts +1 -0
  49. package/sdk/account.d.ts.map +1 -1
  50. package/sdk/account.js +4 -0
  51. package/sdk/account.js.map +1 -1
  52. package/sdk/data.d.ts +1 -0
  53. package/sdk/data.d.ts.map +1 -1
  54. package/sdk/data.js +4 -0
  55. package/sdk/data.js.map +1 -1
  56. package/sdk/internal.d.ts +1 -0
  57. package/sdk/internal.d.ts.map +1 -1
  58. package/sdk/internal.js +4 -0
  59. package/sdk/internal.js.map +1 -1
  60. package/src/funcs/accountAccountV1GetMeta.ts +149 -0
  61. package/src/funcs/dataAccountV1GetMeta.ts +149 -0
  62. package/src/funcs/internalAccountV1GetMeta.ts +149 -0
  63. package/src/funcs/sessionCreate.ts +1 -0
  64. package/src/lib/config.ts +3 -3
  65. package/src/models/components/index.ts +1 -0
  66. package/src/models/components/v1accountmetaresponsebody.ts +88 -0
  67. package/src/models/components/v1createsessionbody.ts +0 -21
  68. package/src/models/operations/accountv1getmeta.ts +89 -0
  69. package/src/models/operations/accountv1sessioncreate.ts +6 -0
  70. package/src/models/operations/index.ts +1 -0
  71. package/src/sdk/account.ts +12 -0
  72. package/src/sdk/data.ts +12 -0
  73. package/src/sdk/internal.ts +12 -0
@@ -151,6 +151,7 @@ export async function sessionCreate(
151
151
  | ConnectionError
152
152
  >(
153
153
  M.json(200, operations.AccountV1SessionCreateResponse$inboundSchema, {
154
+ hdrs: true,
154
155
  key: "V1CreateSessionBody",
155
156
  }),
156
157
  M.jsonErr(422, errors.ErrorModel$inboundSchema, {
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.16.0",
59
- genVersion: "2.502.0",
58
+ sdkVersion: "0.17.1",
59
+ genVersion: "2.506.0",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.16.0 2.502.0 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.17.1 2.506.0 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -58,6 +58,7 @@ export * from "./v1accountleaderboardhistoryresponsebody.js";
58
58
  export * from "./v1accountleaderboardrequestbody.js";
59
59
  export * from "./v1accountleaderboardresponsebody.js";
60
60
  export * from "./v1accountlocationupdate.js";
61
+ export * from "./v1accountmetaresponsebody.js";
61
62
  export * from "./v1accountnameupdate.js";
62
63
  export * from "./v1accountplaytimedatapoint.js";
63
64
  export * from "./v1accountqueuerequestbody.js";
@@ -0,0 +1,88 @@
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 V1AccountMetaResponseBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ description: string;
17
+ ogImage: string;
18
+ };
19
+
20
+ /** @internal */
21
+ export const V1AccountMetaResponseBody$inboundSchema: z.ZodType<
22
+ V1AccountMetaResponseBody,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ $schema: z.string().optional(),
27
+ description: z.string(),
28
+ og_image: z.string(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "$schema": "dollarSchema",
32
+ "og_image": "ogImage",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type V1AccountMetaResponseBody$Outbound = {
38
+ $schema?: string | undefined;
39
+ description: string;
40
+ og_image: string;
41
+ };
42
+
43
+ /** @internal */
44
+ export const V1AccountMetaResponseBody$outboundSchema: z.ZodType<
45
+ V1AccountMetaResponseBody$Outbound,
46
+ z.ZodTypeDef,
47
+ V1AccountMetaResponseBody
48
+ > = z.object({
49
+ dollarSchema: z.string().optional(),
50
+ description: z.string(),
51
+ ogImage: z.string(),
52
+ }).transform((v) => {
53
+ return remap$(v, {
54
+ dollarSchema: "$schema",
55
+ ogImage: "og_image",
56
+ });
57
+ });
58
+
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export namespace V1AccountMetaResponseBody$ {
64
+ /** @deprecated use `V1AccountMetaResponseBody$inboundSchema` instead. */
65
+ export const inboundSchema = V1AccountMetaResponseBody$inboundSchema;
66
+ /** @deprecated use `V1AccountMetaResponseBody$outboundSchema` instead. */
67
+ export const outboundSchema = V1AccountMetaResponseBody$outboundSchema;
68
+ /** @deprecated use `V1AccountMetaResponseBody$Outbound` instead. */
69
+ export type Outbound = V1AccountMetaResponseBody$Outbound;
70
+ }
71
+
72
+ export function v1AccountMetaResponseBodyToJSON(
73
+ v1AccountMetaResponseBody: V1AccountMetaResponseBody,
74
+ ): string {
75
+ return JSON.stringify(
76
+ V1AccountMetaResponseBody$outboundSchema.parse(v1AccountMetaResponseBody),
77
+ );
78
+ }
79
+
80
+ export function v1AccountMetaResponseBodyFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<V1AccountMetaResponseBody, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => V1AccountMetaResponseBody$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'V1AccountMetaResponseBody' from JSON`,
87
+ );
88
+ }
@@ -13,18 +13,6 @@ export type V1CreateSessionBody = {
13
13
  * A URL to the JSON Schema for this object.
14
14
  */
15
15
  dollarSchema?: string | undefined;
16
- /**
17
- * The ratelimit limit
18
- */
19
- limit: number;
20
- /**
21
- * The ratelimit remain
22
- */
23
- remain: number;
24
- /**
25
- * The ratelimit reset
26
- */
27
- reset: string;
28
16
  /**
29
17
  * The session token
30
18
  */
@@ -38,9 +26,6 @@ export const V1CreateSessionBody$inboundSchema: z.ZodType<
38
26
  unknown
39
27
  > = z.object({
40
28
  $schema: z.string().optional(),
41
- limit: z.number().int(),
42
- remain: z.number().int(),
43
- reset: z.string(),
44
29
  sessionToken: z.string(),
45
30
  }).transform((v) => {
46
31
  return remap$(v, {
@@ -51,9 +36,6 @@ export const V1CreateSessionBody$inboundSchema: z.ZodType<
51
36
  /** @internal */
52
37
  export type V1CreateSessionBody$Outbound = {
53
38
  $schema?: string | undefined;
54
- limit: number;
55
- remain: number;
56
- reset: string;
57
39
  sessionToken: string;
58
40
  };
59
41
 
@@ -64,9 +46,6 @@ export const V1CreateSessionBody$outboundSchema: z.ZodType<
64
46
  V1CreateSessionBody
65
47
  > = z.object({
66
48
  dollarSchema: z.string().optional(),
67
- limit: z.number().int(),
68
- remain: z.number().int(),
69
- reset: z.string(),
70
49
  sessionToken: z.string(),
71
50
  }).transform((v) => {
72
51
  return remap$(v, {
@@ -0,0 +1,89 @@
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 AccountV1GetMetaResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountMetaResponseBody?: components.V1AccountMetaResponseBody | undefined;
18
+ };
19
+
20
+ /** @internal */
21
+ export const AccountV1GetMetaResponse$inboundSchema: z.ZodType<
22
+ AccountV1GetMetaResponse,
23
+ z.ZodTypeDef,
24
+ unknown
25
+ > = z.object({
26
+ HttpMeta: components.HTTPMetadata$inboundSchema,
27
+ V1AccountMetaResponseBody: components.V1AccountMetaResponseBody$inboundSchema
28
+ .optional(),
29
+ }).transform((v) => {
30
+ return remap$(v, {
31
+ "HttpMeta": "httpMeta",
32
+ "V1AccountMetaResponseBody": "v1AccountMetaResponseBody",
33
+ });
34
+ });
35
+
36
+ /** @internal */
37
+ export type AccountV1GetMetaResponse$Outbound = {
38
+ HttpMeta: components.HTTPMetadata$Outbound;
39
+ V1AccountMetaResponseBody?:
40
+ | components.V1AccountMetaResponseBody$Outbound
41
+ | undefined;
42
+ };
43
+
44
+ /** @internal */
45
+ export const AccountV1GetMetaResponse$outboundSchema: z.ZodType<
46
+ AccountV1GetMetaResponse$Outbound,
47
+ z.ZodTypeDef,
48
+ AccountV1GetMetaResponse
49
+ > = z.object({
50
+ httpMeta: components.HTTPMetadata$outboundSchema,
51
+ v1AccountMetaResponseBody: components.V1AccountMetaResponseBody$outboundSchema
52
+ .optional(),
53
+ }).transform((v) => {
54
+ return remap$(v, {
55
+ httpMeta: "HttpMeta",
56
+ v1AccountMetaResponseBody: "V1AccountMetaResponseBody",
57
+ });
58
+ });
59
+
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ export namespace AccountV1GetMetaResponse$ {
65
+ /** @deprecated use `AccountV1GetMetaResponse$inboundSchema` instead. */
66
+ export const inboundSchema = AccountV1GetMetaResponse$inboundSchema;
67
+ /** @deprecated use `AccountV1GetMetaResponse$outboundSchema` instead. */
68
+ export const outboundSchema = AccountV1GetMetaResponse$outboundSchema;
69
+ /** @deprecated use `AccountV1GetMetaResponse$Outbound` instead. */
70
+ export type Outbound = AccountV1GetMetaResponse$Outbound;
71
+ }
72
+
73
+ export function accountV1GetMetaResponseToJSON(
74
+ accountV1GetMetaResponse: AccountV1GetMetaResponse,
75
+ ): string {
76
+ return JSON.stringify(
77
+ AccountV1GetMetaResponse$outboundSchema.parse(accountV1GetMetaResponse),
78
+ );
79
+ }
80
+
81
+ export function accountV1GetMetaResponseFromJSON(
82
+ jsonString: string,
83
+ ): SafeParseResult<AccountV1GetMetaResponse, SDKValidationError> {
84
+ return safeParse(
85
+ jsonString,
86
+ (x) => AccountV1GetMetaResponse$inboundSchema.parse(JSON.parse(x)),
87
+ `Failed to parse 'AccountV1GetMetaResponse' from JSON`,
88
+ );
89
+ }
@@ -23,6 +23,7 @@ export type AccountV1SessionCreateResponse = {
23
23
  * OK
24
24
  */
25
25
  v1CreateSessionBody?: components.V1CreateSessionBody | undefined;
26
+ headers: { [k: string]: Array<string> };
26
27
  };
27
28
 
28
29
  /** @internal */
@@ -117,10 +118,12 @@ export const AccountV1SessionCreateResponse$inboundSchema: z.ZodType<
117
118
  > = z.object({
118
119
  HttpMeta: components.HTTPMetadata$inboundSchema,
119
120
  V1CreateSessionBody: components.V1CreateSessionBody$inboundSchema.optional(),
121
+ Headers: z.record(z.array(z.string())),
120
122
  }).transform((v) => {
121
123
  return remap$(v, {
122
124
  "HttpMeta": "httpMeta",
123
125
  "V1CreateSessionBody": "v1CreateSessionBody",
126
+ "Headers": "headers",
124
127
  });
125
128
  });
126
129
 
@@ -128,6 +131,7 @@ export const AccountV1SessionCreateResponse$inboundSchema: z.ZodType<
128
131
  export type AccountV1SessionCreateResponse$Outbound = {
129
132
  HttpMeta: components.HTTPMetadata$Outbound;
130
133
  V1CreateSessionBody?: components.V1CreateSessionBody$Outbound | undefined;
134
+ Headers: { [k: string]: Array<string> };
131
135
  };
132
136
 
133
137
  /** @internal */
@@ -138,10 +142,12 @@ export const AccountV1SessionCreateResponse$outboundSchema: z.ZodType<
138
142
  > = z.object({
139
143
  httpMeta: components.HTTPMetadata$outboundSchema,
140
144
  v1CreateSessionBody: components.V1CreateSessionBody$outboundSchema.optional(),
145
+ headers: z.record(z.array(z.string())),
141
146
  }).transform((v) => {
142
147
  return remap$(v, {
143
148
  httpMeta: "HttpMeta",
144
149
  v1CreateSessionBody: "V1CreateSessionBody",
150
+ headers: "Headers",
145
151
  });
146
152
  });
147
153
 
@@ -15,6 +15,7 @@ export * from "./accountv1getdatapoints.js";
15
15
  export * from "./accountv1getfriends.js";
16
16
  export * from "./accountv1getinfo.js";
17
17
  export * from "./accountv1getleaderboardhistory.js";
18
+ export * from "./accountv1getmeta.js";
18
19
  export * from "./accountv1getownedbadges.js";
19
20
  export * from "./accountv1getstaff.js";
20
21
  export * from "./accountv1imagesdelete.js";
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { accountAccountV1GetMeta } from "../funcs/accountAccountV1GetMeta.js";
5
6
  import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
6
7
  import { accountDeleteDeveloperApp } from "../funcs/accountDeleteDeveloperApp.js";
7
8
  import { accountDeleteImages } from "../funcs/accountDeleteImages.js";
@@ -131,6 +132,17 @@ export class Account extends ClientSDK {
131
132
  ));
132
133
  }
133
134
 
135
+ async accountV1GetMeta(
136
+ request: components.AccountSearch,
137
+ options?: RequestOptions,
138
+ ): Promise<operations.AccountV1GetMetaResponse> {
139
+ return unwrapAsync(accountAccountV1GetMeta(
140
+ this,
141
+ request,
142
+ options,
143
+ ));
144
+ }
145
+
134
146
  async getStaff(
135
147
  options?: RequestOptions,
136
148
  ): Promise<operations.AccountV1GetStaffResponse> {
package/src/sdk/data.ts CHANGED
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { dataAccountV1GetMeta } from "../funcs/dataAccountV1GetMeta.js";
5
6
  import { dataGetApps } from "../funcs/dataGetApps.js";
6
7
  import { dataGetBadges } from "../funcs/dataGetBadges.js";
7
8
  import { dataGetDataPoints } from "../funcs/dataGetDataPoints.js";
@@ -79,4 +80,15 @@ export class Data extends ClientSDK {
79
80
  options,
80
81
  ));
81
82
  }
83
+
84
+ async accountV1GetMeta(
85
+ request: components.AccountSearch,
86
+ options?: RequestOptions,
87
+ ): Promise<operations.AccountV1GetMetaResponse> {
88
+ return unwrapAsync(dataAccountV1GetMeta(
89
+ this,
90
+ request,
91
+ options,
92
+ ));
93
+ }
82
94
  }
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { internalAccountV1GetMeta } from "../funcs/internalAccountV1GetMeta.js";
5
6
  import { internalCheck } from "../funcs/internalCheck.js";
6
7
  import { internalCreateDeveloperApp } from "../funcs/internalCreateDeveloperApp.js";
7
8
  import { internalDeleteDeveloperApp } from "../funcs/internalDeleteDeveloperApp.js";
@@ -61,6 +62,17 @@ export class Internal extends ClientSDK {
61
62
  ));
62
63
  }
63
64
 
65
+ async accountV1GetMeta(
66
+ request: components.AccountSearch,
67
+ options?: RequestOptions,
68
+ ): Promise<operations.AccountV1GetMetaResponse> {
69
+ return unwrapAsync(internalAccountV1GetMeta(
70
+ this,
71
+ request,
72
+ options,
73
+ ));
74
+ }
75
+
64
76
  async getStaff(
65
77
  options?: RequestOptions,
66
78
  ): Promise<operations.AccountV1GetStaffResponse> {