@steamsets/client-ts 0.17.3 → 0.17.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 (54) hide show
  1. package/FUNCTIONS.md +2 -5
  2. package/README.md +17 -34
  3. package/docs/sdks/account/README.md +72 -0
  4. package/docs/sdks/internal/README.md +72 -0
  5. package/funcs/accountAccountV1AblyAuthenticate.d.ts +10 -0
  6. package/funcs/accountAccountV1AblyAuthenticate.d.ts.map +1 -0
  7. package/funcs/accountAccountV1AblyAuthenticate.js +102 -0
  8. package/funcs/accountAccountV1AblyAuthenticate.js.map +1 -0
  9. package/funcs/internalAccountV1AblyAuthenticate.d.ts +10 -0
  10. package/funcs/internalAccountV1AblyAuthenticate.d.ts.map +1 -0
  11. package/funcs/internalAccountV1AblyAuthenticate.js +102 -0
  12. package/funcs/internalAccountV1AblyAuthenticate.js.map +1 -0
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +2 -2
  15. package/lib/config.js +2 -2
  16. package/models/components/index.d.ts +1 -0
  17. package/models/components/index.d.ts.map +1 -1
  18. package/models/components/index.js +1 -0
  19. package/models/components/index.js.map +1 -1
  20. package/models/components/v1accountablyauthenticatebody.d.ts +46 -0
  21. package/models/components/v1accountablyauthenticatebody.d.ts.map +1 -0
  22. package/models/components/v1accountablyauthenticatebody.js +82 -0
  23. package/models/components/v1accountablyauthenticatebody.js.map +1 -0
  24. package/models/operations/accountv1ablyauthenticate.d.ts +35 -0
  25. package/models/operations/accountv1ablyauthenticate.d.ts.map +1 -0
  26. package/models/operations/accountv1ablyauthenticate.js +75 -0
  27. package/models/operations/accountv1ablyauthenticate.js.map +1 -0
  28. package/models/operations/index.d.ts +1 -0
  29. package/models/operations/index.d.ts.map +1 -1
  30. package/models/operations/index.js +1 -0
  31. package/models/operations/index.js.map +1 -1
  32. package/package.json +1 -1
  33. package/sdk/account.d.ts +1 -0
  34. package/sdk/account.d.ts.map +1 -1
  35. package/sdk/account.js +4 -0
  36. package/sdk/account.js.map +1 -1
  37. package/sdk/internal.d.ts +1 -0
  38. package/sdk/internal.d.ts.map +1 -1
  39. package/sdk/internal.js +4 -0
  40. package/sdk/internal.js.map +1 -1
  41. package/sdk/sdk.d.ts +4 -4
  42. package/sdk/sdk.d.ts.map +1 -1
  43. package/sdk/sdk.js +6 -6
  44. package/sdk/sdk.js.map +1 -1
  45. package/src/funcs/accountAccountV1AblyAuthenticate.ts +132 -0
  46. package/src/funcs/internalAccountV1AblyAuthenticate.ts +132 -0
  47. package/src/lib/config.ts +2 -2
  48. package/src/models/components/index.ts +1 -0
  49. package/src/models/components/v1accountablyauthenticatebody.ts +108 -0
  50. package/src/models/operations/accountv1ablyauthenticate.ts +94 -0
  51. package/src/models/operations/index.ts +1 -0
  52. package/src/sdk/account.ts +10 -0
  53. package/src/sdk/internal.ts +10 -0
  54. package/src/sdk/sdk.ts +10 -10
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { RequestOptions } from "../lib/sdks.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import {
12
+ ConnectionError,
13
+ InvalidRequestError,
14
+ RequestAbortedError,
15
+ RequestTimeoutError,
16
+ UnexpectedClientError,
17
+ } from "../models/errors/httpclienterrors.js";
18
+ import * as errors from "../models/errors/index.js";
19
+ import { SDKError } from "../models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../models/operations/index.js";
22
+ import { Result } from "../types/fp.js";
23
+
24
+ export async function accountAccountV1AblyAuthenticate(
25
+ client: SteamSetsCore,
26
+ options?: RequestOptions,
27
+ ): Promise<
28
+ Result<
29
+ operations.AccountV1AblyAuthenticateResponse,
30
+ | errors.ErrorModel
31
+ | errors.ErrorModel
32
+ | SDKError
33
+ | SDKValidationError
34
+ | UnexpectedClientError
35
+ | InvalidRequestError
36
+ | RequestAbortedError
37
+ | RequestTimeoutError
38
+ | ConnectionError
39
+ >
40
+ > {
41
+ const path = pathToFunc("/account.v1.AccountService/AblyAuthenticate")();
42
+
43
+ const headers = new Headers(compactMap({
44
+ Accept: "application/json",
45
+ }));
46
+
47
+ const secConfig = await extractSecurity(client._options.token);
48
+ const securityInput = secConfig == null ? {} : { token: secConfig };
49
+ const requestSecurity = resolveGlobalSecurity(securityInput);
50
+
51
+ const context = {
52
+ operationID: "account.v1.ably-authenticate",
53
+ oAuth2Scopes: [],
54
+
55
+ resolvedSecurity: requestSecurity,
56
+
57
+ securitySource: client._options.token,
58
+ retryConfig: options?.retries
59
+ || client._options.retryConfig
60
+ || {
61
+ strategy: "backoff",
62
+ backoff: {
63
+ initialInterval: 500,
64
+ maxInterval: 5000,
65
+ exponent: 1.5,
66
+ maxElapsedTime: 60000,
67
+ },
68
+ retryConnectionErrors: true,
69
+ }
70
+ || { strategy: "none" },
71
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
72
+ };
73
+
74
+ const requestRes = client._createRequest(context, {
75
+ security: requestSecurity,
76
+ method: "POST",
77
+ baseURL: options?.serverURL,
78
+ path: path,
79
+ headers: headers,
80
+ uaHeader: "x-speakeasy-user-agent",
81
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
82
+ }, options);
83
+ if (!requestRes.ok) {
84
+ return requestRes;
85
+ }
86
+ const req = requestRes.value;
87
+
88
+ const doResult = await client._do(req, {
89
+ context,
90
+ errorCodes: ["403", "4XX", "500", "5XX"],
91
+ retryConfig: context.retryConfig,
92
+ retryCodes: context.retryCodes,
93
+ });
94
+ if (!doResult.ok) {
95
+ return doResult;
96
+ }
97
+ const response = doResult.value;
98
+
99
+ const responseFields = {
100
+ HttpMeta: { Response: response, Request: req },
101
+ };
102
+
103
+ const [result] = await M.match<
104
+ operations.AccountV1AblyAuthenticateResponse,
105
+ | errors.ErrorModel
106
+ | errors.ErrorModel
107
+ | SDKError
108
+ | SDKValidationError
109
+ | UnexpectedClientError
110
+ | InvalidRequestError
111
+ | RequestAbortedError
112
+ | RequestTimeoutError
113
+ | ConnectionError
114
+ >(
115
+ M.json(200, operations.AccountV1AblyAuthenticateResponse$inboundSchema, {
116
+ key: "V1AccountAblyAuthenticateBody",
117
+ }),
118
+ M.jsonErr(403, errors.ErrorModel$inboundSchema, {
119
+ ctype: "application/problem+json",
120
+ }),
121
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
122
+ ctype: "application/problem+json",
123
+ }),
124
+ M.fail("4XX"),
125
+ M.fail("5XX"),
126
+ )(response, req, { extraFields: responseFields });
127
+ if (!result.ok) {
128
+ return result;
129
+ }
130
+
131
+ return result;
132
+ }
@@ -0,0 +1,132 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { SteamSetsCore } from "../core.js";
6
+ import * as M from "../lib/matchers.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { RequestOptions } from "../lib/sdks.js";
9
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
10
+ import { pathToFunc } from "../lib/url.js";
11
+ import {
12
+ ConnectionError,
13
+ InvalidRequestError,
14
+ RequestAbortedError,
15
+ RequestTimeoutError,
16
+ UnexpectedClientError,
17
+ } from "../models/errors/httpclienterrors.js";
18
+ import * as errors from "../models/errors/index.js";
19
+ import { SDKError } from "../models/errors/sdkerror.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import * as operations from "../models/operations/index.js";
22
+ import { Result } from "../types/fp.js";
23
+
24
+ export async function internalAccountV1AblyAuthenticate(
25
+ client: SteamSetsCore,
26
+ options?: RequestOptions,
27
+ ): Promise<
28
+ Result<
29
+ operations.AccountV1AblyAuthenticateResponse,
30
+ | errors.ErrorModel
31
+ | errors.ErrorModel
32
+ | SDKError
33
+ | SDKValidationError
34
+ | UnexpectedClientError
35
+ | InvalidRequestError
36
+ | RequestAbortedError
37
+ | RequestTimeoutError
38
+ | ConnectionError
39
+ >
40
+ > {
41
+ const path = pathToFunc("/account.v1.AccountService/AblyAuthenticate")();
42
+
43
+ const headers = new Headers(compactMap({
44
+ Accept: "application/json",
45
+ }));
46
+
47
+ const secConfig = await extractSecurity(client._options.token);
48
+ const securityInput = secConfig == null ? {} : { token: secConfig };
49
+ const requestSecurity = resolveGlobalSecurity(securityInput);
50
+
51
+ const context = {
52
+ operationID: "account.v1.ably-authenticate",
53
+ oAuth2Scopes: [],
54
+
55
+ resolvedSecurity: requestSecurity,
56
+
57
+ securitySource: client._options.token,
58
+ retryConfig: options?.retries
59
+ || client._options.retryConfig
60
+ || {
61
+ strategy: "backoff",
62
+ backoff: {
63
+ initialInterval: 500,
64
+ maxInterval: 5000,
65
+ exponent: 1.5,
66
+ maxElapsedTime: 60000,
67
+ },
68
+ retryConnectionErrors: true,
69
+ }
70
+ || { strategy: "none" },
71
+ retryCodes: options?.retryCodes || ["501", "502", "503", "504"],
72
+ };
73
+
74
+ const requestRes = client._createRequest(context, {
75
+ security: requestSecurity,
76
+ method: "POST",
77
+ baseURL: options?.serverURL,
78
+ path: path,
79
+ headers: headers,
80
+ uaHeader: "x-speakeasy-user-agent",
81
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
82
+ }, options);
83
+ if (!requestRes.ok) {
84
+ return requestRes;
85
+ }
86
+ const req = requestRes.value;
87
+
88
+ const doResult = await client._do(req, {
89
+ context,
90
+ errorCodes: ["403", "4XX", "500", "5XX"],
91
+ retryConfig: context.retryConfig,
92
+ retryCodes: context.retryCodes,
93
+ });
94
+ if (!doResult.ok) {
95
+ return doResult;
96
+ }
97
+ const response = doResult.value;
98
+
99
+ const responseFields = {
100
+ HttpMeta: { Response: response, Request: req },
101
+ };
102
+
103
+ const [result] = await M.match<
104
+ operations.AccountV1AblyAuthenticateResponse,
105
+ | errors.ErrorModel
106
+ | errors.ErrorModel
107
+ | SDKError
108
+ | SDKValidationError
109
+ | UnexpectedClientError
110
+ | InvalidRequestError
111
+ | RequestAbortedError
112
+ | RequestTimeoutError
113
+ | ConnectionError
114
+ >(
115
+ M.json(200, operations.AccountV1AblyAuthenticateResponse$inboundSchema, {
116
+ key: "V1AccountAblyAuthenticateBody",
117
+ }),
118
+ M.jsonErr(403, errors.ErrorModel$inboundSchema, {
119
+ ctype: "application/problem+json",
120
+ }),
121
+ M.jsonErr(500, errors.ErrorModel$inboundSchema, {
122
+ ctype: "application/problem+json",
123
+ }),
124
+ M.fail("4XX"),
125
+ M.fail("5XX"),
126
+ )(response, req, { extraFields: responseFields });
127
+ if (!result.ok) {
128
+ return result;
129
+ }
130
+
131
+ return result;
132
+ }
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.17.3",
58
+ sdkVersion: "0.17.4",
59
59
  genVersion: "2.506.0",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.17.3 2.506.0 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.17.4 2.506.0 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -36,6 +36,7 @@ export * from "./session.js";
36
36
  export * from "./setremovecolortag.js";
37
37
  export * from "./setremovedesigntag.js";
38
38
  export * from "./state.js";
39
+ export * from "./v1accountablyauthenticatebody.js";
39
40
  export * from "./v1accountapp.js";
40
41
  export * from "./v1accountbadgebookmark.js";
41
42
  export * from "./v1accountbadgebookmarkrequestbody.js";
@@ -0,0 +1,108 @@
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 V1AccountAblyAuthenticateBody = {
12
+ /**
13
+ * A URL to the JSON Schema for this object.
14
+ */
15
+ dollarSchema?: string | undefined;
16
+ capability?: string | undefined;
17
+ clientId?: string | undefined;
18
+ keyName?: string | undefined;
19
+ mac?: string | undefined;
20
+ nonce?: string | undefined;
21
+ timestamp?: number | undefined;
22
+ ttl?: number | undefined;
23
+ };
24
+
25
+ /** @internal */
26
+ export const V1AccountAblyAuthenticateBody$inboundSchema: z.ZodType<
27
+ V1AccountAblyAuthenticateBody,
28
+ z.ZodTypeDef,
29
+ unknown
30
+ > = z.object({
31
+ $schema: z.string().optional(),
32
+ capability: z.string().optional(),
33
+ clientId: z.string().optional(),
34
+ keyName: z.string().optional(),
35
+ mac: z.string().optional(),
36
+ nonce: z.string().optional(),
37
+ timestamp: z.number().int().optional(),
38
+ ttl: z.number().int().optional(),
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ "$schema": "dollarSchema",
42
+ });
43
+ });
44
+
45
+ /** @internal */
46
+ export type V1AccountAblyAuthenticateBody$Outbound = {
47
+ $schema?: string | undefined;
48
+ capability?: string | undefined;
49
+ clientId?: string | undefined;
50
+ keyName?: string | undefined;
51
+ mac?: string | undefined;
52
+ nonce?: string | undefined;
53
+ timestamp?: number | undefined;
54
+ ttl?: number | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const V1AccountAblyAuthenticateBody$outboundSchema: z.ZodType<
59
+ V1AccountAblyAuthenticateBody$Outbound,
60
+ z.ZodTypeDef,
61
+ V1AccountAblyAuthenticateBody
62
+ > = z.object({
63
+ dollarSchema: z.string().optional(),
64
+ capability: z.string().optional(),
65
+ clientId: z.string().optional(),
66
+ keyName: z.string().optional(),
67
+ mac: z.string().optional(),
68
+ nonce: z.string().optional(),
69
+ timestamp: z.number().int().optional(),
70
+ ttl: z.number().int().optional(),
71
+ }).transform((v) => {
72
+ return remap$(v, {
73
+ dollarSchema: "$schema",
74
+ });
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 V1AccountAblyAuthenticateBody$ {
82
+ /** @deprecated use `V1AccountAblyAuthenticateBody$inboundSchema` instead. */
83
+ export const inboundSchema = V1AccountAblyAuthenticateBody$inboundSchema;
84
+ /** @deprecated use `V1AccountAblyAuthenticateBody$outboundSchema` instead. */
85
+ export const outboundSchema = V1AccountAblyAuthenticateBody$outboundSchema;
86
+ /** @deprecated use `V1AccountAblyAuthenticateBody$Outbound` instead. */
87
+ export type Outbound = V1AccountAblyAuthenticateBody$Outbound;
88
+ }
89
+
90
+ export function v1AccountAblyAuthenticateBodyToJSON(
91
+ v1AccountAblyAuthenticateBody: V1AccountAblyAuthenticateBody,
92
+ ): string {
93
+ return JSON.stringify(
94
+ V1AccountAblyAuthenticateBody$outboundSchema.parse(
95
+ v1AccountAblyAuthenticateBody,
96
+ ),
97
+ );
98
+ }
99
+
100
+ export function v1AccountAblyAuthenticateBodyFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<V1AccountAblyAuthenticateBody, SDKValidationError> {
103
+ return safeParse(
104
+ jsonString,
105
+ (x) => V1AccountAblyAuthenticateBody$inboundSchema.parse(JSON.parse(x)),
106
+ `Failed to parse 'V1AccountAblyAuthenticateBody' from JSON`,
107
+ );
108
+ }
@@ -0,0 +1,94 @@
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 AccountV1AblyAuthenticateResponse = {
13
+ httpMeta: components.HTTPMetadata;
14
+ /**
15
+ * OK
16
+ */
17
+ v1AccountAblyAuthenticateBody?:
18
+ | components.V1AccountAblyAuthenticateBody
19
+ | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export const AccountV1AblyAuthenticateResponse$inboundSchema: z.ZodType<
24
+ AccountV1AblyAuthenticateResponse,
25
+ z.ZodTypeDef,
26
+ unknown
27
+ > = z.object({
28
+ HttpMeta: components.HTTPMetadata$inboundSchema,
29
+ V1AccountAblyAuthenticateBody: components
30
+ .V1AccountAblyAuthenticateBody$inboundSchema.optional(),
31
+ }).transform((v) => {
32
+ return remap$(v, {
33
+ "HttpMeta": "httpMeta",
34
+ "V1AccountAblyAuthenticateBody": "v1AccountAblyAuthenticateBody",
35
+ });
36
+ });
37
+
38
+ /** @internal */
39
+ export type AccountV1AblyAuthenticateResponse$Outbound = {
40
+ HttpMeta: components.HTTPMetadata$Outbound;
41
+ V1AccountAblyAuthenticateBody?:
42
+ | components.V1AccountAblyAuthenticateBody$Outbound
43
+ | undefined;
44
+ };
45
+
46
+ /** @internal */
47
+ export const AccountV1AblyAuthenticateResponse$outboundSchema: z.ZodType<
48
+ AccountV1AblyAuthenticateResponse$Outbound,
49
+ z.ZodTypeDef,
50
+ AccountV1AblyAuthenticateResponse
51
+ > = z.object({
52
+ httpMeta: components.HTTPMetadata$outboundSchema,
53
+ v1AccountAblyAuthenticateBody: components
54
+ .V1AccountAblyAuthenticateBody$outboundSchema.optional(),
55
+ }).transform((v) => {
56
+ return remap$(v, {
57
+ httpMeta: "HttpMeta",
58
+ v1AccountAblyAuthenticateBody: "V1AccountAblyAuthenticateBody",
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 AccountV1AblyAuthenticateResponse$ {
67
+ /** @deprecated use `AccountV1AblyAuthenticateResponse$inboundSchema` instead. */
68
+ export const inboundSchema = AccountV1AblyAuthenticateResponse$inboundSchema;
69
+ /** @deprecated use `AccountV1AblyAuthenticateResponse$outboundSchema` instead. */
70
+ export const outboundSchema =
71
+ AccountV1AblyAuthenticateResponse$outboundSchema;
72
+ /** @deprecated use `AccountV1AblyAuthenticateResponse$Outbound` instead. */
73
+ export type Outbound = AccountV1AblyAuthenticateResponse$Outbound;
74
+ }
75
+
76
+ export function accountV1AblyAuthenticateResponseToJSON(
77
+ accountV1AblyAuthenticateResponse: AccountV1AblyAuthenticateResponse,
78
+ ): string {
79
+ return JSON.stringify(
80
+ AccountV1AblyAuthenticateResponse$outboundSchema.parse(
81
+ accountV1AblyAuthenticateResponse,
82
+ ),
83
+ );
84
+ }
85
+
86
+ export function accountV1AblyAuthenticateResponseFromJSON(
87
+ jsonString: string,
88
+ ): SafeParseResult<AccountV1AblyAuthenticateResponse, SDKValidationError> {
89
+ return safeParse(
90
+ jsonString,
91
+ (x) => AccountV1AblyAuthenticateResponse$inboundSchema.parse(JSON.parse(x)),
92
+ `Failed to parse 'AccountV1AblyAuthenticateResponse' from JSON`,
93
+ );
94
+ }
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ export * from "./accountv1ablyauthenticate.js";
5
6
  export * from "./accountv1bookmarkbadge.js";
6
7
  export * from "./accountv1connectionconnect.js";
7
8
  export * from "./accountv1connectiondeleteconnection.js";
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { accountAccountV1AblyAuthenticate } from "../funcs/accountAccountV1AblyAuthenticate.js";
5
6
  import { accountAccountV1GetMeta } from "../funcs/accountAccountV1GetMeta.js";
6
7
  import { accountCreateDeveloperApp } from "../funcs/accountCreateDeveloperApp.js";
7
8
  import { accountDeleteDeveloperApp } from "../funcs/accountDeleteDeveloperApp.js";
@@ -22,6 +23,15 @@ import * as operations from "../models/operations/index.js";
22
23
  import { unwrapAsync } from "../types/fp.js";
23
24
 
24
25
  export class Account extends ClientSDK {
26
+ async accountV1AblyAuthenticate(
27
+ options?: RequestOptions,
28
+ ): Promise<operations.AccountV1AblyAuthenticateResponse> {
29
+ return unwrapAsync(accountAccountV1AblyAuthenticate(
30
+ this,
31
+ options,
32
+ ));
33
+ }
34
+
25
35
  async createDeveloperApp(
26
36
  request: components.V1DeveloperAppCreateRequestBody,
27
37
  options?: RequestOptions,
@@ -2,6 +2,7 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
 
5
+ import { internalAccountV1AblyAuthenticate } from "../funcs/internalAccountV1AblyAuthenticate.js";
5
6
  import { internalAccountV1GetMeta } from "../funcs/internalAccountV1GetMeta.js";
6
7
  import { internalCheck } from "../funcs/internalCheck.js";
7
8
  import { internalCreateDeveloperApp } from "../funcs/internalCreateDeveloperApp.js";
@@ -18,6 +19,15 @@ import * as operations from "../models/operations/index.js";
18
19
  import { unwrapAsync } from "../types/fp.js";
19
20
 
20
21
  export class Internal extends ClientSDK {
22
+ async accountV1AblyAuthenticate(
23
+ options?: RequestOptions,
24
+ ): Promise<operations.AccountV1AblyAuthenticateResponse> {
25
+ return unwrapAsync(internalAccountV1AblyAuthenticate(
26
+ this,
27
+ options,
28
+ ));
29
+ }
30
+
21
31
  async createDeveloperApp(
22
32
  request: components.V1DeveloperAppCreateRequestBody,
23
33
  options?: RequestOptions,
package/src/sdk/sdk.ts CHANGED
@@ -25,6 +25,16 @@ import { Settings } from "./settings.js";
25
25
  import { Stats } from "./stats.js";
26
26
 
27
27
  export class SteamSets extends ClientSDK {
28
+ private _account?: Account;
29
+ get account(): Account {
30
+ return (this._account ??= new Account(this._options));
31
+ }
32
+
33
+ private _internal?: Internal;
34
+ get internal(): Internal {
35
+ return (this._internal ??= new Internal(this._options));
36
+ }
37
+
28
38
  private _badges?: Badges;
29
39
  get badges(): Badges {
30
40
  return (this._badges ??= new Badges(this._options));
@@ -35,21 +45,11 @@ export class SteamSets extends ClientSDK {
35
45
  return (this._connections ??= new Connections(this._options));
36
46
  }
37
47
 
38
- private _account?: Account;
39
- get account(): Account {
40
- return (this._account ??= new Account(this._options));
41
- }
42
-
43
48
  private _developer?: Developer;
44
49
  get developer(): Developer {
45
50
  return (this._developer ??= new Developer(this._options));
46
51
  }
47
52
 
48
- private _internal?: Internal;
49
- get internal(): Internal {
50
- return (this._internal ??= new Internal(this._options));
51
- }
52
-
53
53
  private _session?: Session;
54
54
  get session(): Session {
55
55
  return (this._session ??= new Session(this._options));