@steamsets/client-ts 0.11.2 → 0.11.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 (101) hide show
  1. package/README.md +9 -0
  2. package/docs/sdks/developer/README.md +261 -0
  3. package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts +14 -0
  4. package/funcs/developerAccountV1SettingsDeveloperAppCreate.d.ts.map +1 -0
  5. package/funcs/developerAccountV1SettingsDeveloperAppCreate.js +97 -0
  6. package/funcs/developerAccountV1SettingsDeveloperAppCreate.js.map +1 -0
  7. package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts +14 -0
  8. package/funcs/developerAccountV1SettingsDeveloperAppDelete.d.ts.map +1 -0
  9. package/funcs/developerAccountV1SettingsDeveloperAppDelete.js +97 -0
  10. package/funcs/developerAccountV1SettingsDeveloperAppDelete.js.map +1 -0
  11. package/funcs/developerAccountV1SettingsDeveloperAppUpdate.d.ts +14 -0
  12. package/funcs/developerAccountV1SettingsDeveloperAppUpdate.d.ts.map +1 -0
  13. package/funcs/developerAccountV1SettingsDeveloperAppUpdate.js +97 -0
  14. package/funcs/developerAccountV1SettingsDeveloperAppUpdate.js.map +1 -0
  15. package/lib/config.d.ts +2 -2
  16. package/lib/config.js +2 -2
  17. package/models/components/developerapp.d.ts +88 -0
  18. package/models/components/developerapp.d.ts.map +1 -0
  19. package/models/components/developerapp.js +83 -0
  20. package/models/components/developerapp.js.map +1 -0
  21. package/models/components/index.d.ts +7 -0
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +7 -0
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/resource.d.ts +3 -0
  26. package/models/components/resource.d.ts.map +1 -1
  27. package/models/components/resource.js +1 -0
  28. package/models/components/resource.js.map +1 -1
  29. package/models/components/v1accountdeveloperappdeleterequestbody.d.ts +28 -0
  30. package/models/components/v1accountdeveloperappdeleterequestbody.d.ts.map +1 -0
  31. package/models/components/v1accountdeveloperappdeleterequestbody.js +50 -0
  32. package/models/components/v1accountdeveloperappdeleterequestbody.js.map +1 -0
  33. package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts +28 -0
  34. package/models/components/v1accountdeveloperappdeleteresponsebody.d.ts.map +1 -0
  35. package/models/components/v1accountdeveloperappdeleteresponsebody.js +59 -0
  36. package/models/components/v1accountdeveloperappdeleteresponsebody.js.map +1 -0
  37. package/models/components/v1accountdeveloperappupdaterequestbody.d.ts +48 -0
  38. package/models/components/v1accountdeveloperappupdaterequestbody.d.ts.map +1 -0
  39. package/models/components/v1accountdeveloperappupdaterequestbody.js +58 -0
  40. package/models/components/v1accountdeveloperappupdaterequestbody.js.map +1 -0
  41. package/models/components/v1accountdeveloperappupdateresponsebody.d.ts +33 -0
  42. package/models/components/v1accountdeveloperappupdateresponsebody.d.ts.map +1 -0
  43. package/models/components/v1accountdeveloperappupdateresponsebody.js +61 -0
  44. package/models/components/v1accountdeveloperappupdateresponsebody.js.map +1 -0
  45. package/models/components/v1developerappcreaterequestbody.d.ts +83 -0
  46. package/models/components/v1developerappcreaterequestbody.d.ts.map +1 -0
  47. package/models/components/v1developerappcreaterequestbody.js +82 -0
  48. package/models/components/v1developerappcreaterequestbody.js.map +1 -0
  49. package/models/components/v1developerappcreateresponsebody.d.ts +33 -0
  50. package/models/components/v1developerappcreateresponsebody.d.ts.map +1 -0
  51. package/models/components/v1developerappcreateresponsebody.js +61 -0
  52. package/models/components/v1developerappcreateresponsebody.js.map +1 -0
  53. package/models/components/v1getsettingsbody.d.ts +6 -5
  54. package/models/components/v1getsettingsbody.d.ts.map +1 -1
  55. package/models/components/v1getsettingsbody.js +3 -2
  56. package/models/components/v1getsettingsbody.js.map +1 -1
  57. package/models/operations/accountv1settingsdeveloperappcreate.d.ts +31 -0
  58. package/models/operations/accountv1settingsdeveloperappcreate.d.ts.map +1 -0
  59. package/models/operations/accountv1settingsdeveloperappcreate.js +66 -0
  60. package/models/operations/accountv1settingsdeveloperappcreate.js.map +1 -0
  61. package/models/operations/accountv1settingsdeveloperappdelete.d.ts +31 -0
  62. package/models/operations/accountv1settingsdeveloperappdelete.d.ts.map +1 -0
  63. package/models/operations/accountv1settingsdeveloperappdelete.js +66 -0
  64. package/models/operations/accountv1settingsdeveloperappdelete.js.map +1 -0
  65. package/models/operations/accountv1settingsdeveloperappupdate.d.ts +31 -0
  66. package/models/operations/accountv1settingsdeveloperappupdate.d.ts.map +1 -0
  67. package/models/operations/accountv1settingsdeveloperappupdate.js +66 -0
  68. package/models/operations/accountv1settingsdeveloperappupdate.js.map +1 -0
  69. package/models/operations/index.d.ts +3 -0
  70. package/models/operations/index.d.ts.map +1 -1
  71. package/models/operations/index.js +3 -0
  72. package/models/operations/index.js.map +1 -1
  73. package/package.json +1 -1
  74. package/sdk/developer.d.ts +18 -0
  75. package/sdk/developer.d.ts.map +1 -0
  76. package/sdk/developer.js +33 -0
  77. package/sdk/developer.js.map +1 -0
  78. package/sdk/sdk.d.ts +3 -0
  79. package/sdk/sdk.d.ts.map +1 -1
  80. package/sdk/sdk.js +5 -0
  81. package/sdk/sdk.js.map +1 -1
  82. package/src/funcs/developerAccountV1SettingsDeveloperAppCreate.ts +132 -0
  83. package/src/funcs/developerAccountV1SettingsDeveloperAppDelete.ts +134 -0
  84. package/src/funcs/developerAccountV1SettingsDeveloperAppUpdate.ts +134 -0
  85. package/src/lib/config.ts +2 -2
  86. package/src/models/components/developerapp.ts +120 -0
  87. package/src/models/components/index.ts +7 -0
  88. package/src/models/components/resource.ts +1 -0
  89. package/src/models/components/v1accountdeveloperappdeleterequestbody.ts +50 -0
  90. package/src/models/components/v1accountdeveloperappdeleteresponsebody.ts +59 -0
  91. package/src/models/components/v1accountdeveloperappupdaterequestbody.ts +78 -0
  92. package/src/models/components/v1accountdeveloperappupdateresponsebody.ts +66 -0
  93. package/src/models/components/v1developerappcreaterequestbody.ts +109 -0
  94. package/src/models/components/v1developerappcreateresponsebody.ts +64 -0
  95. package/src/models/components/v1getsettingsbody.ts +13 -7
  96. package/src/models/operations/accountv1settingsdeveloperappcreate.ts +74 -0
  97. package/src/models/operations/accountv1settingsdeveloperappdelete.ts +76 -0
  98. package/src/models/operations/accountv1settingsdeveloperappupdate.ts +76 -0
  99. package/src/models/operations/index.ts +3 -0
  100. package/src/sdk/developer.ts +55 -0
  101. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,134 @@
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 { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ /**
27
+ * Delete a developer app from the account
28
+ */
29
+ export async function developerAccountV1SettingsDeveloperAppDelete(
30
+ client: SteamSetsCore,
31
+ request: components.V1AccountDeveloperAppDeleteRequestBody,
32
+ options?: RequestOptions,
33
+ ): Promise<
34
+ Result<
35
+ operations.AccountV1SettingsDeveloperAppDeleteResponse,
36
+ | errors.ErrorModel
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ const input = request;
47
+
48
+ const parsed = safeParse(
49
+ input,
50
+ (value) =>
51
+ components.V1AccountDeveloperAppDeleteRequestBody$outboundSchema.parse(
52
+ value,
53
+ ),
54
+ "Input validation failed",
55
+ );
56
+ if (!parsed.ok) {
57
+ return parsed;
58
+ }
59
+ const payload = parsed.value;
60
+ const body = encodeJSON("body", payload, { explode: true });
61
+
62
+ const path = pathToFunc("/account.v1.AccountService/DeleteDeveloperApp")();
63
+
64
+ const headers = new Headers({
65
+ "Content-Type": "application/json",
66
+ Accept: "application/json",
67
+ });
68
+
69
+ const secConfig = await extractSecurity(client._options.session);
70
+ const securityInput = secConfig == null ? {} : { session: secConfig };
71
+ const context = {
72
+ operationID: "account.v1.settings.developer-app-delete",
73
+ oAuth2Scopes: [],
74
+ securitySource: client._options.session,
75
+ };
76
+ const requestSecurity = resolveGlobalSecurity(securityInput);
77
+
78
+ const requestRes = client._createRequest(context, {
79
+ security: requestSecurity,
80
+ method: "POST",
81
+ path: path,
82
+ headers: headers,
83
+ body: body,
84
+ uaHeader: "x-speakeasy-user-agent",
85
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
86
+ }, options);
87
+ if (!requestRes.ok) {
88
+ return requestRes;
89
+ }
90
+ const req = requestRes.value;
91
+
92
+ const doResult = await client._do(req, {
93
+ context,
94
+ errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
95
+ retryConfig: options?.retries
96
+ || client._options.retryConfig,
97
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
98
+ });
99
+ if (!doResult.ok) {
100
+ return doResult;
101
+ }
102
+ const response = doResult.value;
103
+
104
+ const responseFields = {
105
+ HttpMeta: { Response: response, Request: req },
106
+ };
107
+
108
+ const [result] = await M.match<
109
+ operations.AccountV1SettingsDeveloperAppDeleteResponse,
110
+ | errors.ErrorModel
111
+ | SDKError
112
+ | SDKValidationError
113
+ | UnexpectedClientError
114
+ | InvalidRequestError
115
+ | RequestAbortedError
116
+ | RequestTimeoutError
117
+ | ConnectionError
118
+ >(
119
+ M.json(
120
+ 200,
121
+ operations.AccountV1SettingsDeveloperAppDeleteResponse$inboundSchema,
122
+ { key: "V1AccountDeveloperAppDeleteResponseBody" },
123
+ ),
124
+ M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
125
+ ctype: "application/problem+json",
126
+ }),
127
+ M.fail(["4XX", "5XX"]),
128
+ )(response, req, { extraFields: responseFields });
129
+ if (!result.ok) {
130
+ return result;
131
+ }
132
+
133
+ return result;
134
+ }
@@ -0,0 +1,134 @@
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 { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import * as components from "../models/components/index.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import * as errors from "../models/errors/index.js";
21
+ import { SDKError } from "../models/errors/sdkerror.js";
22
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
23
+ import * as operations from "../models/operations/index.js";
24
+ import { Result } from "../types/fp.js";
25
+
26
+ /**
27
+ * Update the developer app/re-generate the api key
28
+ */
29
+ export async function developerAccountV1SettingsDeveloperAppUpdate(
30
+ client: SteamSetsCore,
31
+ request: components.V1AccountDeveloperAppUpdateRequestBody,
32
+ options?: RequestOptions,
33
+ ): Promise<
34
+ Result<
35
+ operations.AccountV1SettingsDeveloperAppUpdateResponse,
36
+ | errors.ErrorModel
37
+ | SDKError
38
+ | SDKValidationError
39
+ | UnexpectedClientError
40
+ | InvalidRequestError
41
+ | RequestAbortedError
42
+ | RequestTimeoutError
43
+ | ConnectionError
44
+ >
45
+ > {
46
+ const input = request;
47
+
48
+ const parsed = safeParse(
49
+ input,
50
+ (value) =>
51
+ components.V1AccountDeveloperAppUpdateRequestBody$outboundSchema.parse(
52
+ value,
53
+ ),
54
+ "Input validation failed",
55
+ );
56
+ if (!parsed.ok) {
57
+ return parsed;
58
+ }
59
+ const payload = parsed.value;
60
+ const body = encodeJSON("body", payload, { explode: true });
61
+
62
+ const path = pathToFunc("/account.v1.AccountService/DeveloperAppUpdate")();
63
+
64
+ const headers = new Headers({
65
+ "Content-Type": "application/json",
66
+ Accept: "application/json",
67
+ });
68
+
69
+ const secConfig = await extractSecurity(client._options.session);
70
+ const securityInput = secConfig == null ? {} : { session: secConfig };
71
+ const context = {
72
+ operationID: "account.v1.settings.developer-app-update",
73
+ oAuth2Scopes: [],
74
+ securitySource: client._options.session,
75
+ };
76
+ const requestSecurity = resolveGlobalSecurity(securityInput);
77
+
78
+ const requestRes = client._createRequest(context, {
79
+ security: requestSecurity,
80
+ method: "POST",
81
+ path: path,
82
+ headers: headers,
83
+ body: body,
84
+ uaHeader: "x-speakeasy-user-agent",
85
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
86
+ }, options);
87
+ if (!requestRes.ok) {
88
+ return requestRes;
89
+ }
90
+ const req = requestRes.value;
91
+
92
+ const doResult = await client._do(req, {
93
+ context,
94
+ errorCodes: ["404", "422", "429", "4XX", "500", "5XX"],
95
+ retryConfig: options?.retries
96
+ || client._options.retryConfig,
97
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
98
+ });
99
+ if (!doResult.ok) {
100
+ return doResult;
101
+ }
102
+ const response = doResult.value;
103
+
104
+ const responseFields = {
105
+ HttpMeta: { Response: response, Request: req },
106
+ };
107
+
108
+ const [result] = await M.match<
109
+ operations.AccountV1SettingsDeveloperAppUpdateResponse,
110
+ | errors.ErrorModel
111
+ | SDKError
112
+ | SDKValidationError
113
+ | UnexpectedClientError
114
+ | InvalidRequestError
115
+ | RequestAbortedError
116
+ | RequestTimeoutError
117
+ | ConnectionError
118
+ >(
119
+ M.json(
120
+ 200,
121
+ operations.AccountV1SettingsDeveloperAppUpdateResponse$inboundSchema,
122
+ { key: "V1AccountDeveloperAppUpdateResponseBody" },
123
+ ),
124
+ M.jsonErr([404, 422, 429, 500], errors.ErrorModel$inboundSchema, {
125
+ ctype: "application/problem+json",
126
+ }),
127
+ M.fail(["4XX", "5XX"]),
128
+ )(response, req, { extraFields: responseFields });
129
+ if (!result.ok) {
130
+ return result;
131
+ }
132
+
133
+ return result;
134
+ }
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.11.2",
58
+ sdkVersion: "0.11.4",
59
59
  genVersion: "2.426.2",
60
60
  userAgent:
61
- "speakeasy-sdk/typescript 0.11.2 2.426.2 1.0.0 @steamsets/client-ts",
61
+ "speakeasy-sdk/typescript 0.11.4 2.426.2 1.0.0 @steamsets/client-ts",
62
62
  } as const;
@@ -0,0 +1,120 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { ClosedEnum } from "../../types/enums.js";
7
+
8
+ /**
9
+ * The environment of the developer app
10
+ */
11
+ export const DeveloperAppEnvironment = {
12
+ Production: "production",
13
+ Development: "development",
14
+ Staging: "staging",
15
+ } as const;
16
+ /**
17
+ * The environment of the developer app
18
+ */
19
+ export type DeveloperAppEnvironment = ClosedEnum<
20
+ typeof DeveloperAppEnvironment
21
+ >;
22
+
23
+ export type DeveloperApp = {
24
+ /**
25
+ * The api key of the developer app
26
+ */
27
+ apiKey: string | null;
28
+ /**
29
+ * The description of the developer app
30
+ */
31
+ description: string;
32
+ /**
33
+ * The environment of the developer app
34
+ */
35
+ environment: DeveloperAppEnvironment;
36
+ /**
37
+ * The icon of the developer app
38
+ */
39
+ icon: string | null;
40
+ /**
41
+ * The id of the developer app
42
+ */
43
+ id: string;
44
+ /**
45
+ * The name of the developer app
46
+ */
47
+ name: string;
48
+ };
49
+
50
+ /** @internal */
51
+ export const DeveloperAppEnvironment$inboundSchema: z.ZodNativeEnum<
52
+ typeof DeveloperAppEnvironment
53
+ > = z.nativeEnum(DeveloperAppEnvironment);
54
+
55
+ /** @internal */
56
+ export const DeveloperAppEnvironment$outboundSchema: z.ZodNativeEnum<
57
+ typeof DeveloperAppEnvironment
58
+ > = DeveloperAppEnvironment$inboundSchema;
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 DeveloperAppEnvironment$ {
65
+ /** @deprecated use `DeveloperAppEnvironment$inboundSchema` instead. */
66
+ export const inboundSchema = DeveloperAppEnvironment$inboundSchema;
67
+ /** @deprecated use `DeveloperAppEnvironment$outboundSchema` instead. */
68
+ export const outboundSchema = DeveloperAppEnvironment$outboundSchema;
69
+ }
70
+
71
+ /** @internal */
72
+ export const DeveloperApp$inboundSchema: z.ZodType<
73
+ DeveloperApp,
74
+ z.ZodTypeDef,
75
+ unknown
76
+ > = z.object({
77
+ apiKey: z.nullable(z.string()),
78
+ description: z.string(),
79
+ environment: DeveloperAppEnvironment$inboundSchema,
80
+ icon: z.nullable(z.string()),
81
+ id: z.string(),
82
+ name: z.string(),
83
+ });
84
+
85
+ /** @internal */
86
+ export type DeveloperApp$Outbound = {
87
+ apiKey: string | null;
88
+ description: string;
89
+ environment: string;
90
+ icon: string | null;
91
+ id: string;
92
+ name: string;
93
+ };
94
+
95
+ /** @internal */
96
+ export const DeveloperApp$outboundSchema: z.ZodType<
97
+ DeveloperApp$Outbound,
98
+ z.ZodTypeDef,
99
+ DeveloperApp
100
+ > = z.object({
101
+ apiKey: z.nullable(z.string()),
102
+ description: z.string(),
103
+ environment: DeveloperAppEnvironment$outboundSchema,
104
+ icon: z.nullable(z.string()),
105
+ id: z.string(),
106
+ name: z.string(),
107
+ });
108
+
109
+ /**
110
+ * @internal
111
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
+ */
113
+ export namespace DeveloperApp$ {
114
+ /** @deprecated use `DeveloperApp$inboundSchema` instead. */
115
+ export const inboundSchema = DeveloperApp$inboundSchema;
116
+ /** @deprecated use `DeveloperApp$outboundSchema` instead. */
117
+ export const outboundSchema = DeveloperApp$outboundSchema;
118
+ /** @deprecated use `DeveloperApp$Outbound` instead. */
119
+ export type Outbound = DeveloperApp$Outbound;
120
+ }
@@ -17,6 +17,7 @@ export * from "./colortag.js";
17
17
  export * from "./connection.js";
18
18
  export * from "./country.js";
19
19
  export * from "./designtag.js";
20
+ export * from "./developerapp.js";
20
21
  export * from "./emailnotification.js";
21
22
  export * from "./errordetail.js";
22
23
  export * from "./httpmetadata.js";
@@ -36,6 +37,10 @@ export * from "./v1accountapp.js";
36
37
  export * from "./v1accountappbadge.js";
37
38
  export * from "./v1accountbadgecompletion.js";
38
39
  export * from "./v1accountdatapointsresponsebody.js";
40
+ export * from "./v1accountdeveloperappdeleterequestbody.js";
41
+ export * from "./v1accountdeveloperappdeleteresponsebody.js";
42
+ export * from "./v1accountdeveloperappupdaterequestbody.js";
43
+ export * from "./v1accountdeveloperappupdateresponsebody.js";
39
44
  export * from "./v1accountfriend.js";
40
45
  export * from "./v1accountfriendsresponsebody.js";
41
46
  export * from "./v1accountleaderboardaccount.js";
@@ -63,6 +68,8 @@ export * from "./v1deleteimagesrequestbody.js";
63
68
  export * from "./v1deleteimagesresponsebody.js";
64
69
  export * from "./v1deletesessionrequestbody.js";
65
70
  export * from "./v1deletesessionresponsebody.js";
71
+ export * from "./v1developerappcreaterequestbody.js";
72
+ export * from "./v1developerappcreateresponsebody.js";
66
73
  export * from "./v1getsessionbody.js";
67
74
  export * from "./v1getsettingsbody.js";
68
75
  export * from "./v1leaderboardlocation.js";
@@ -23,6 +23,7 @@ export const ResourceResource = {
23
23
  Theme: "theme",
24
24
  VanityLength: "vanity_length",
25
25
  SocialLinkAmount: "social_link_amount",
26
+ DeveloperApps: "developer_apps",
26
27
  } as const;
27
28
  export type ResourceResource = ClosedEnum<typeof ResourceResource>;
28
29
 
@@ -0,0 +1,50 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1AccountDeveloperAppDeleteRequestBody = {
8
+ /**
9
+ * The public id of the developer app
10
+ */
11
+ publicId: string;
12
+ };
13
+
14
+ /** @internal */
15
+ export const V1AccountDeveloperAppDeleteRequestBody$inboundSchema: z.ZodType<
16
+ V1AccountDeveloperAppDeleteRequestBody,
17
+ z.ZodTypeDef,
18
+ unknown
19
+ > = z.object({
20
+ publicId: z.string(),
21
+ });
22
+
23
+ /** @internal */
24
+ export type V1AccountDeveloperAppDeleteRequestBody$Outbound = {
25
+ publicId: string;
26
+ };
27
+
28
+ /** @internal */
29
+ export const V1AccountDeveloperAppDeleteRequestBody$outboundSchema: z.ZodType<
30
+ V1AccountDeveloperAppDeleteRequestBody$Outbound,
31
+ z.ZodTypeDef,
32
+ V1AccountDeveloperAppDeleteRequestBody
33
+ > = z.object({
34
+ publicId: z.string(),
35
+ });
36
+
37
+ /**
38
+ * @internal
39
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
+ */
41
+ export namespace V1AccountDeveloperAppDeleteRequestBody$ {
42
+ /** @deprecated use `V1AccountDeveloperAppDeleteRequestBody$inboundSchema` instead. */
43
+ export const inboundSchema =
44
+ V1AccountDeveloperAppDeleteRequestBody$inboundSchema;
45
+ /** @deprecated use `V1AccountDeveloperAppDeleteRequestBody$outboundSchema` instead. */
46
+ export const outboundSchema =
47
+ V1AccountDeveloperAppDeleteRequestBody$outboundSchema;
48
+ /** @deprecated use `V1AccountDeveloperAppDeleteRequestBody$Outbound` instead. */
49
+ export type Outbound = V1AccountDeveloperAppDeleteRequestBody$Outbound;
50
+ }
@@ -0,0 +1,59 @@
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
+
8
+ export type V1AccountDeveloperAppDeleteResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ };
14
+
15
+ /** @internal */
16
+ export const V1AccountDeveloperAppDeleteResponseBody$inboundSchema: z.ZodType<
17
+ V1AccountDeveloperAppDeleteResponseBody,
18
+ z.ZodTypeDef,
19
+ unknown
20
+ > = z.object({
21
+ $schema: z.string().optional(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ "$schema": "dollarSchema",
25
+ });
26
+ });
27
+
28
+ /** @internal */
29
+ export type V1AccountDeveloperAppDeleteResponseBody$Outbound = {
30
+ $schema?: string | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const V1AccountDeveloperAppDeleteResponseBody$outboundSchema: z.ZodType<
35
+ V1AccountDeveloperAppDeleteResponseBody$Outbound,
36
+ z.ZodTypeDef,
37
+ V1AccountDeveloperAppDeleteResponseBody
38
+ > = z.object({
39
+ dollarSchema: z.string().optional(),
40
+ }).transform((v) => {
41
+ return remap$(v, {
42
+ dollarSchema: "$schema",
43
+ });
44
+ });
45
+
46
+ /**
47
+ * @internal
48
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
49
+ */
50
+ export namespace V1AccountDeveloperAppDeleteResponseBody$ {
51
+ /** @deprecated use `V1AccountDeveloperAppDeleteResponseBody$inboundSchema` instead. */
52
+ export const inboundSchema =
53
+ V1AccountDeveloperAppDeleteResponseBody$inboundSchema;
54
+ /** @deprecated use `V1AccountDeveloperAppDeleteResponseBody$outboundSchema` instead. */
55
+ export const outboundSchema =
56
+ V1AccountDeveloperAppDeleteResponseBody$outboundSchema;
57
+ /** @deprecated use `V1AccountDeveloperAppDeleteResponseBody$Outbound` instead. */
58
+ export type Outbound = V1AccountDeveloperAppDeleteResponseBody$Outbound;
59
+ }
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type V1AccountDeveloperAppUpdateRequestBody = {
8
+ /**
9
+ * The new description of the developer app
10
+ */
11
+ description: string | null;
12
+ /**
13
+ * The new icon of the developer app
14
+ */
15
+ icon: string | null;
16
+ /**
17
+ * The new name of the developer app
18
+ */
19
+ name: string | null;
20
+ /**
21
+ * The public id of the developer app
22
+ */
23
+ publicId: string;
24
+ /**
25
+ * Whether to re-generate the key
26
+ */
27
+ regenerate: boolean;
28
+ };
29
+
30
+ /** @internal */
31
+ export const V1AccountDeveloperAppUpdateRequestBody$inboundSchema: z.ZodType<
32
+ V1AccountDeveloperAppUpdateRequestBody,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ description: z.nullable(z.string()),
37
+ icon: z.nullable(z.string()),
38
+ name: z.nullable(z.string()),
39
+ publicId: z.string(),
40
+ regenerate: z.boolean(),
41
+ });
42
+
43
+ /** @internal */
44
+ export type V1AccountDeveloperAppUpdateRequestBody$Outbound = {
45
+ description: string | null;
46
+ icon: string | null;
47
+ name: string | null;
48
+ publicId: string;
49
+ regenerate: boolean;
50
+ };
51
+
52
+ /** @internal */
53
+ export const V1AccountDeveloperAppUpdateRequestBody$outboundSchema: z.ZodType<
54
+ V1AccountDeveloperAppUpdateRequestBody$Outbound,
55
+ z.ZodTypeDef,
56
+ V1AccountDeveloperAppUpdateRequestBody
57
+ > = z.object({
58
+ description: z.nullable(z.string()),
59
+ icon: z.nullable(z.string()),
60
+ name: z.nullable(z.string()),
61
+ publicId: z.string(),
62
+ regenerate: z.boolean(),
63
+ });
64
+
65
+ /**
66
+ * @internal
67
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
+ */
69
+ export namespace V1AccountDeveloperAppUpdateRequestBody$ {
70
+ /** @deprecated use `V1AccountDeveloperAppUpdateRequestBody$inboundSchema` instead. */
71
+ export const inboundSchema =
72
+ V1AccountDeveloperAppUpdateRequestBody$inboundSchema;
73
+ /** @deprecated use `V1AccountDeveloperAppUpdateRequestBody$outboundSchema` instead. */
74
+ export const outboundSchema =
75
+ V1AccountDeveloperAppUpdateRequestBody$outboundSchema;
76
+ /** @deprecated use `V1AccountDeveloperAppUpdateRequestBody$Outbound` instead. */
77
+ export type Outbound = V1AccountDeveloperAppUpdateRequestBody$Outbound;
78
+ }
@@ -0,0 +1,66 @@
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
+
8
+ export type V1AccountDeveloperAppUpdateResponseBody = {
9
+ /**
10
+ * A URL to the JSON Schema for this object.
11
+ */
12
+ dollarSchema?: string | undefined;
13
+ /**
14
+ * The generated API Key
15
+ */
16
+ apiKey: string | null;
17
+ };
18
+
19
+ /** @internal */
20
+ export const V1AccountDeveloperAppUpdateResponseBody$inboundSchema: z.ZodType<
21
+ V1AccountDeveloperAppUpdateResponseBody,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ $schema: z.string().optional(),
26
+ apiKey: z.nullable(z.string()),
27
+ }).transform((v) => {
28
+ return remap$(v, {
29
+ "$schema": "dollarSchema",
30
+ });
31
+ });
32
+
33
+ /** @internal */
34
+ export type V1AccountDeveloperAppUpdateResponseBody$Outbound = {
35
+ $schema?: string | undefined;
36
+ apiKey: string | null;
37
+ };
38
+
39
+ /** @internal */
40
+ export const V1AccountDeveloperAppUpdateResponseBody$outboundSchema: z.ZodType<
41
+ V1AccountDeveloperAppUpdateResponseBody$Outbound,
42
+ z.ZodTypeDef,
43
+ V1AccountDeveloperAppUpdateResponseBody
44
+ > = z.object({
45
+ dollarSchema: z.string().optional(),
46
+ apiKey: z.nullable(z.string()),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ dollarSchema: "$schema",
50
+ });
51
+ });
52
+
53
+ /**
54
+ * @internal
55
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
56
+ */
57
+ export namespace V1AccountDeveloperAppUpdateResponseBody$ {
58
+ /** @deprecated use `V1AccountDeveloperAppUpdateResponseBody$inboundSchema` instead. */
59
+ export const inboundSchema =
60
+ V1AccountDeveloperAppUpdateResponseBody$inboundSchema;
61
+ /** @deprecated use `V1AccountDeveloperAppUpdateResponseBody$outboundSchema` instead. */
62
+ export const outboundSchema =
63
+ V1AccountDeveloperAppUpdateResponseBody$outboundSchema;
64
+ /** @deprecated use `V1AccountDeveloperAppUpdateResponseBody$Outbound` instead. */
65
+ export type Outbound = V1AccountDeveloperAppUpdateResponseBody$Outbound;
66
+ }