@meetkai/mka1 0.55.20 → 0.55.22

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 (200) hide show
  1. package/README.md +411 -404
  2. package/bin/mcp-server.js +3601 -3076
  3. package/bin/mcp-server.js.map +21 -13
  4. package/dist/commonjs/funcs/authApiKeysDelete.d.ts +20 -0
  5. package/dist/commonjs/funcs/authApiKeysDelete.d.ts.map +1 -0
  6. package/dist/commonjs/funcs/authApiKeysDelete.js +132 -0
  7. package/dist/commonjs/funcs/authApiKeysDelete.js.map +1 -0
  8. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.d.ts +19 -0
  9. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  10. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.js +136 -0
  11. package/dist/commonjs/funcs/computeSecretsRotateComputeSecret.js.map +1 -0
  12. package/dist/commonjs/lib/config.d.ts +2 -2
  13. package/dist/commonjs/lib/config.js +2 -2
  14. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  15. package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
  16. package/dist/commonjs/mcp-server/server.js +5 -1
  17. package/dist/commonjs/mcp-server/server.js.map +1 -1
  18. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
  19. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
  20. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js +64 -0
  21. package/dist/commonjs/mcp-server/tools/authApiKeysDelete.js.map +1 -0
  22. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts +8 -0
  23. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  24. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.js +64 -0
  25. package/dist/commonjs/mcp-server/tools/computeSecretsRotateComputeSecret.js.map +1 -0
  26. package/dist/commonjs/models/components/computesecret.d.ts +15 -0
  27. package/dist/commonjs/models/components/computesecret.d.ts.map +1 -1
  28. package/dist/commonjs/models/components/computesecret.js +10 -0
  29. package/dist/commonjs/models/components/computesecret.js.map +1 -1
  30. package/dist/commonjs/models/components/computesecretcreate.d.ts +5 -0
  31. package/dist/commonjs/models/components/computesecretcreate.d.ts.map +1 -1
  32. package/dist/commonjs/models/components/computesecretcreate.js +12 -0
  33. package/dist/commonjs/models/components/computesecretcreate.js.map +1 -1
  34. package/dist/commonjs/models/components/computesecretrotate.d.ts +26 -0
  35. package/dist/commonjs/models/components/computesecretrotate.d.ts.map +1 -0
  36. package/dist/commonjs/models/components/computesecretrotate.js +70 -0
  37. package/dist/commonjs/models/components/computesecretrotate.js.map +1 -0
  38. package/dist/commonjs/models/components/index.d.ts +1 -0
  39. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  40. package/dist/commonjs/models/components/index.js +1 -0
  41. package/dist/commonjs/models/components/index.js.map +1 -1
  42. package/dist/commonjs/models/errors/deletescopedapikey.d.ts +188 -0
  43. package/dist/commonjs/models/errors/deletescopedapikey.d.ts.map +1 -0
  44. package/dist/commonjs/models/errors/deletescopedapikey.js +270 -0
  45. package/dist/commonjs/models/errors/deletescopedapikey.js.map +1 -0
  46. package/dist/commonjs/models/errors/index.d.ts +1 -0
  47. package/dist/commonjs/models/errors/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/errors/index.js +1 -0
  49. package/dist/commonjs/models/errors/index.js.map +1 -1
  50. package/dist/commonjs/models/operations/deletescopedapikey.d.ts +53 -0
  51. package/dist/commonjs/models/operations/deletescopedapikey.d.ts.map +1 -0
  52. package/dist/commonjs/models/operations/deletescopedapikey.js +107 -0
  53. package/dist/commonjs/models/operations/deletescopedapikey.js.map +1 -0
  54. package/dist/commonjs/models/operations/index.d.ts +2 -0
  55. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/index.js +2 -0
  57. package/dist/commonjs/models/operations/index.js.map +1 -1
  58. package/dist/commonjs/models/operations/rotatecomputesecret.d.ts +34 -0
  59. package/dist/commonjs/models/operations/rotatecomputesecret.d.ts.map +1 -0
  60. package/dist/commonjs/models/operations/rotatecomputesecret.js +92 -0
  61. package/dist/commonjs/models/operations/rotatecomputesecret.js.map +1 -0
  62. package/dist/commonjs/models/operations/updatescopedapikey.d.ts +8 -24
  63. package/dist/commonjs/models/operations/updatescopedapikey.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/updatescopedapikey.js +8 -24
  65. package/dist/commonjs/models/operations/updatescopedapikey.js.map +1 -1
  66. package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts +2 -0
  67. package/dist/commonjs/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/updateserviceaccountapikey.js +2 -0
  69. package/dist/commonjs/models/operations/updateserviceaccountapikey.js.map +1 -1
  70. package/dist/commonjs/react-query/authApiKeysDelete.d.ts +29 -0
  71. package/dist/commonjs/react-query/authApiKeysDelete.d.ts.map +1 -0
  72. package/dist/commonjs/react-query/authApiKeysDelete.js +47 -0
  73. package/dist/commonjs/react-query/authApiKeysDelete.js.map +1 -0
  74. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.d.ts +28 -0
  75. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  76. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.js +47 -0
  77. package/dist/commonjs/react-query/computeSecretsRotateComputeSecret.js.map +1 -0
  78. package/dist/commonjs/react-query/index.d.ts +2 -0
  79. package/dist/commonjs/react-query/index.d.ts.map +1 -1
  80. package/dist/commonjs/react-query/index.js +2 -0
  81. package/dist/commonjs/react-query/index.js.map +1 -1
  82. package/dist/commonjs/sdk/apikeys.d.ts +7 -0
  83. package/dist/commonjs/sdk/apikeys.d.ts.map +1 -1
  84. package/dist/commonjs/sdk/apikeys.js +10 -0
  85. package/dist/commonjs/sdk/apikeys.js.map +1 -1
  86. package/dist/commonjs/sdk/computesecrets.d.ts +7 -0
  87. package/dist/commonjs/sdk/computesecrets.d.ts.map +1 -1
  88. package/dist/commonjs/sdk/computesecrets.js +10 -0
  89. package/dist/commonjs/sdk/computesecrets.js.map +1 -1
  90. package/dist/esm/funcs/authApiKeysDelete.d.ts +20 -0
  91. package/dist/esm/funcs/authApiKeysDelete.d.ts.map +1 -0
  92. package/dist/esm/funcs/authApiKeysDelete.js +96 -0
  93. package/dist/esm/funcs/authApiKeysDelete.js.map +1 -0
  94. package/dist/esm/funcs/computeSecretsRotateComputeSecret.d.ts +19 -0
  95. package/dist/esm/funcs/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  96. package/dist/esm/funcs/computeSecretsRotateComputeSecret.js +100 -0
  97. package/dist/esm/funcs/computeSecretsRotateComputeSecret.js.map +1 -0
  98. package/dist/esm/lib/config.d.ts +2 -2
  99. package/dist/esm/lib/config.js +2 -2
  100. package/dist/esm/mcp-server/mcp-server.js +1 -1
  101. package/dist/esm/mcp-server/server.d.ts.map +1 -1
  102. package/dist/esm/mcp-server/server.js +5 -1
  103. package/dist/esm/mcp-server/server.js.map +1 -1
  104. package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts +8 -0
  105. package/dist/esm/mcp-server/tools/authApiKeysDelete.d.ts.map +1 -0
  106. package/dist/esm/mcp-server/tools/authApiKeysDelete.js +28 -0
  107. package/dist/esm/mcp-server/tools/authApiKeysDelete.js.map +1 -0
  108. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts +8 -0
  109. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  110. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.js +28 -0
  111. package/dist/esm/mcp-server/tools/computeSecretsRotateComputeSecret.js.map +1 -0
  112. package/dist/esm/models/components/computesecret.d.ts +15 -0
  113. package/dist/esm/models/components/computesecret.d.ts.map +1 -1
  114. package/dist/esm/models/components/computesecret.js +10 -0
  115. package/dist/esm/models/components/computesecret.js.map +1 -1
  116. package/dist/esm/models/components/computesecretcreate.d.ts +5 -0
  117. package/dist/esm/models/components/computesecretcreate.d.ts.map +1 -1
  118. package/dist/esm/models/components/computesecretcreate.js +12 -0
  119. package/dist/esm/models/components/computesecretcreate.js.map +1 -1
  120. package/dist/esm/models/components/computesecretrotate.d.ts +26 -0
  121. package/dist/esm/models/components/computesecretrotate.d.ts.map +1 -0
  122. package/dist/esm/models/components/computesecretrotate.js +32 -0
  123. package/dist/esm/models/components/computesecretrotate.js.map +1 -0
  124. package/dist/esm/models/components/index.d.ts +1 -0
  125. package/dist/esm/models/components/index.d.ts.map +1 -1
  126. package/dist/esm/models/components/index.js +1 -0
  127. package/dist/esm/models/components/index.js.map +1 -1
  128. package/dist/esm/models/errors/deletescopedapikey.d.ts +188 -0
  129. package/dist/esm/models/errors/deletescopedapikey.d.ts.map +1 -0
  130. package/dist/esm/models/errors/deletescopedapikey.js +227 -0
  131. package/dist/esm/models/errors/deletescopedapikey.js.map +1 -0
  132. package/dist/esm/models/errors/index.d.ts +1 -0
  133. package/dist/esm/models/errors/index.d.ts.map +1 -1
  134. package/dist/esm/models/errors/index.js +1 -0
  135. package/dist/esm/models/errors/index.js.map +1 -1
  136. package/dist/esm/models/operations/deletescopedapikey.d.ts +53 -0
  137. package/dist/esm/models/operations/deletescopedapikey.d.ts.map +1 -0
  138. package/dist/esm/models/operations/deletescopedapikey.js +65 -0
  139. package/dist/esm/models/operations/deletescopedapikey.js.map +1 -0
  140. package/dist/esm/models/operations/index.d.ts +2 -0
  141. package/dist/esm/models/operations/index.d.ts.map +1 -1
  142. package/dist/esm/models/operations/index.js +2 -0
  143. package/dist/esm/models/operations/index.js.map +1 -1
  144. package/dist/esm/models/operations/rotatecomputesecret.d.ts +34 -0
  145. package/dist/esm/models/operations/rotatecomputesecret.d.ts.map +1 -0
  146. package/dist/esm/models/operations/rotatecomputesecret.js +52 -0
  147. package/dist/esm/models/operations/rotatecomputesecret.js.map +1 -0
  148. package/dist/esm/models/operations/updatescopedapikey.d.ts +8 -24
  149. package/dist/esm/models/operations/updatescopedapikey.d.ts.map +1 -1
  150. package/dist/esm/models/operations/updatescopedapikey.js +8 -24
  151. package/dist/esm/models/operations/updatescopedapikey.js.map +1 -1
  152. package/dist/esm/models/operations/updateserviceaccountapikey.d.ts +2 -0
  153. package/dist/esm/models/operations/updateserviceaccountapikey.d.ts.map +1 -1
  154. package/dist/esm/models/operations/updateserviceaccountapikey.js +2 -0
  155. package/dist/esm/models/operations/updateserviceaccountapikey.js.map +1 -1
  156. package/dist/esm/react-query/authApiKeysDelete.d.ts +29 -0
  157. package/dist/esm/react-query/authApiKeysDelete.d.ts.map +1 -0
  158. package/dist/esm/react-query/authApiKeysDelete.js +42 -0
  159. package/dist/esm/react-query/authApiKeysDelete.js.map +1 -0
  160. package/dist/esm/react-query/computeSecretsRotateComputeSecret.d.ts +28 -0
  161. package/dist/esm/react-query/computeSecretsRotateComputeSecret.d.ts.map +1 -0
  162. package/dist/esm/react-query/computeSecretsRotateComputeSecret.js +42 -0
  163. package/dist/esm/react-query/computeSecretsRotateComputeSecret.js.map +1 -0
  164. package/dist/esm/react-query/index.d.ts +2 -0
  165. package/dist/esm/react-query/index.d.ts.map +1 -1
  166. package/dist/esm/react-query/index.js +2 -0
  167. package/dist/esm/react-query/index.js.map +1 -1
  168. package/dist/esm/sdk/apikeys.d.ts +7 -0
  169. package/dist/esm/sdk/apikeys.d.ts.map +1 -1
  170. package/dist/esm/sdk/apikeys.js +10 -0
  171. package/dist/esm/sdk/apikeys.js.map +1 -1
  172. package/dist/esm/sdk/computesecrets.d.ts +7 -0
  173. package/dist/esm/sdk/computesecrets.d.ts.map +1 -1
  174. package/dist/esm/sdk/computesecrets.js +10 -0
  175. package/dist/esm/sdk/computesecrets.js.map +1 -1
  176. package/jsr.json +1 -1
  177. package/package.json +1 -1
  178. package/src/funcs/authApiKeysDelete.ts +230 -0
  179. package/src/funcs/computeSecretsRotateComputeSecret.ts +189 -0
  180. package/src/lib/config.ts +2 -2
  181. package/src/mcp-server/mcp-server.ts +1 -1
  182. package/src/mcp-server/server.ts +5 -1
  183. package/src/mcp-server/tools/authApiKeysDelete.ts +37 -0
  184. package/src/mcp-server/tools/computeSecretsRotateComputeSecret.ts +39 -0
  185. package/src/models/components/computesecret.ts +27 -0
  186. package/src/models/components/computesecretcreate.ts +17 -0
  187. package/src/models/components/computesecretrotate.ts +68 -0
  188. package/src/models/components/index.ts +1 -0
  189. package/src/models/errors/deletescopedapikey.ts +461 -0
  190. package/src/models/errors/index.ts +1 -0
  191. package/src/models/operations/deletescopedapikey.ts +168 -0
  192. package/src/models/operations/index.ts +2 -0
  193. package/src/models/operations/rotatecomputesecret.ts +121 -0
  194. package/src/models/operations/updatescopedapikey.ts +18 -48
  195. package/src/models/operations/updateserviceaccountapikey.ts +6 -0
  196. package/src/react-query/authApiKeysDelete.ts +117 -0
  197. package/src/react-query/computeSecretsRotateComputeSecret.ts +109 -0
  198. package/src/react-query/index.ts +2 -0
  199. package/src/sdk/apikeys.ts +18 -0
  200. package/src/sdk/computesecrets.ts +18 -0
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { computeSecretsRotateComputeSecret } from "../../funcs/computeSecretsRotateComputeSecret.js";
6
+ import * as operations from "../../models/operations/index.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: operations.RotateComputeSecretRequest$inboundSchema,
11
+ };
12
+
13
+ export const tool$computeSecretsRotateComputeSecret: ToolDefinition<
14
+ typeof args
15
+ > = {
16
+ name: "compute-secrets-rotate-compute-secret",
17
+ description: `Rotate a secret
18
+
19
+ Replaces every value of the secret under the same id and increments its version. Resources that reference it read the new values at their next launch, retry or restart; running workloads keep the values they started with. The new keys must include every key a live resource references. The expiry is set from the request: omit expires_at for a version that never expires.`,
20
+ args,
21
+ tool: async (client, args, ctx) => {
22
+ const [result, apiCall] = await computeSecretsRotateComputeSecret(
23
+ client,
24
+ args.request,
25
+ { fetchOptions: { signal: ctx.mcpReq.signal } },
26
+ ).$inspect();
27
+
28
+ if (!result.ok) {
29
+ return {
30
+ content: [{ type: "text", text: result.error.message }],
31
+ isError: true,
32
+ };
33
+ }
34
+
35
+ const value = result.value;
36
+
37
+ return formatResult(value, apiCall);
38
+ },
39
+ };
@@ -10,9 +10,21 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
 
11
11
  export type ComputeSecret = {
12
12
  createdAt: Date;
13
+ /**
14
+ * When the secret stops resolving for new launches; null for never.
15
+ */
16
+ expiresAt: Date | null;
13
17
  id: string;
14
18
  keys: Array<string>;
15
19
  name: string;
20
+ /**
21
+ * When the current version was written.
22
+ */
23
+ updatedAt: Date;
24
+ /**
25
+ * Starts at 1 and increments on every rotation.
26
+ */
27
+ version: number;
16
28
  };
17
29
 
18
30
  /** @internal */
@@ -22,20 +34,30 @@ export const ComputeSecret$inboundSchema: z.ZodType<
22
34
  unknown
23
35
  > = z.object({
24
36
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
37
+ expires_at: z.nullable(
38
+ z.string().datetime({ offset: true }).transform(v => new Date(v)),
39
+ ),
25
40
  id: z.string(),
26
41
  keys: z.array(z.string()),
27
42
  name: z.string(),
43
+ updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
44
+ version: z.number().int(),
28
45
  }).transform((v) => {
29
46
  return remap$(v, {
30
47
  "created_at": "createdAt",
48
+ "expires_at": "expiresAt",
49
+ "updated_at": "updatedAt",
31
50
  });
32
51
  });
33
52
  /** @internal */
34
53
  export type ComputeSecret$Outbound = {
35
54
  created_at: string;
55
+ expires_at: string | null;
36
56
  id: string;
37
57
  keys: Array<string>;
38
58
  name: string;
59
+ updated_at: string;
60
+ version: number;
39
61
  };
40
62
 
41
63
  /** @internal */
@@ -45,12 +67,17 @@ export const ComputeSecret$outboundSchema: z.ZodType<
45
67
  ComputeSecret
46
68
  > = z.object({
47
69
  createdAt: z.date().transform(v => v.toISOString()),
70
+ expiresAt: z.nullable(z.date().transform(v => v.toISOString())),
48
71
  id: z.string(),
49
72
  keys: z.array(z.string()),
50
73
  name: z.string(),
74
+ updatedAt: z.date().transform(v => v.toISOString()),
75
+ version: z.number().int(),
51
76
  }).transform((v) => {
52
77
  return remap$(v, {
53
78
  createdAt: "created_at",
79
+ expiresAt: "expires_at",
80
+ updatedAt: "updated_at",
54
81
  });
55
82
  });
56
83
 
@@ -3,12 +3,17 @@
3
3
  */
4
4
 
5
5
  import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
6
7
  import { safeParse } from "../../lib/schemas.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
10
 
10
11
  export type ComputeSecretCreate = {
11
12
  data: { [k: string]: string };
13
+ /**
14
+ * When the secret stops resolving for new launches. Must be in the future; omit for no expiry.
15
+ */
16
+ expiresAt?: Date | undefined;
12
17
  name: string;
13
18
  };
14
19
 
@@ -19,11 +24,18 @@ export const ComputeSecretCreate$inboundSchema: z.ZodType<
19
24
  unknown
20
25
  > = z.object({
21
26
  data: z.record(z.string()),
27
+ expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
28
+ .optional(),
22
29
  name: z.string(),
30
+ }).transform((v) => {
31
+ return remap$(v, {
32
+ "expires_at": "expiresAt",
33
+ });
23
34
  });
24
35
  /** @internal */
25
36
  export type ComputeSecretCreate$Outbound = {
26
37
  data: { [k: string]: string };
38
+ expires_at?: string | undefined;
27
39
  name: string;
28
40
  };
29
41
 
@@ -34,7 +46,12 @@ export const ComputeSecretCreate$outboundSchema: z.ZodType<
34
46
  ComputeSecretCreate
35
47
  > = z.object({
36
48
  data: z.record(z.string()),
49
+ expiresAt: z.date().transform(v => v.toISOString()).optional(),
37
50
  name: z.string(),
51
+ }).transform((v) => {
52
+ return remap$(v, {
53
+ expiresAt: "expires_at",
54
+ });
38
55
  });
39
56
 
40
57
  export function computeSecretCreateToJSON(
@@ -0,0 +1,68 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 ComputeSecretRotate = {
12
+ data: { [k: string]: string };
13
+ /**
14
+ * When the new version stops resolving for new launches. Must be in the future; omit for no expiry.
15
+ */
16
+ expiresAt?: Date | undefined;
17
+ };
18
+
19
+ /** @internal */
20
+ export const ComputeSecretRotate$inboundSchema: z.ZodType<
21
+ ComputeSecretRotate,
22
+ z.ZodTypeDef,
23
+ unknown
24
+ > = z.object({
25
+ data: z.record(z.string()),
26
+ expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
27
+ .optional(),
28
+ }).transform((v) => {
29
+ return remap$(v, {
30
+ "expires_at": "expiresAt",
31
+ });
32
+ });
33
+ /** @internal */
34
+ export type ComputeSecretRotate$Outbound = {
35
+ data: { [k: string]: string };
36
+ expires_at?: string | undefined;
37
+ };
38
+
39
+ /** @internal */
40
+ export const ComputeSecretRotate$outboundSchema: z.ZodType<
41
+ ComputeSecretRotate$Outbound,
42
+ z.ZodTypeDef,
43
+ ComputeSecretRotate
44
+ > = z.object({
45
+ data: z.record(z.string()),
46
+ expiresAt: z.date().transform(v => v.toISOString()).optional(),
47
+ }).transform((v) => {
48
+ return remap$(v, {
49
+ expiresAt: "expires_at",
50
+ });
51
+ });
52
+
53
+ export function computeSecretRotateToJSON(
54
+ computeSecretRotate: ComputeSecretRotate,
55
+ ): string {
56
+ return JSON.stringify(
57
+ ComputeSecretRotate$outboundSchema.parse(computeSecretRotate),
58
+ );
59
+ }
60
+ export function computeSecretRotateFromJSON(
61
+ jsonString: string,
62
+ ): SafeParseResult<ComputeSecretRotate, SDKValidationError> {
63
+ return safeParse(
64
+ jsonString,
65
+ (x) => ComputeSecretRotate$inboundSchema.parse(JSON.parse(x)),
66
+ `Failed to parse 'ComputeSecretRotate' from JSON`,
67
+ );
68
+ }
@@ -164,6 +164,7 @@ export * from "./computesecret.js";
164
164
  export * from "./computesecretcreate.js";
165
165
  export * from "./computesecretlist.js";
166
166
  export * from "./computesecretreference.js";
167
+ export * from "./computesecretrotate.js";
167
168
  export * from "./computeservice.js";
168
169
  export * from "./computeserviceinput.js";
169
170
  export * from "./computeservicelist.js";
@@ -0,0 +1,461 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { SDKError } from "./sdkerror.js";
7
+
8
+ /**
9
+ * Rate limited
10
+ */
11
+ export type DeleteScopedApiKeyAuthApiKeysResponse429ResponseBodyData = {
12
+ message: string;
13
+ };
14
+
15
+ /**
16
+ * Rate limited
17
+ */
18
+ export class DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
19
+ extends SDKError
20
+ {
21
+ /** The original data that was passed to this error instance. */
22
+ data$: DeleteScopedApiKeyAuthApiKeysResponse429ResponseBodyData;
23
+
24
+ constructor(
25
+ err: DeleteScopedApiKeyAuthApiKeysResponse429ResponseBodyData,
26
+ httpMeta: { response: Response; request: Request; body: string },
27
+ ) {
28
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
29
+ super(message, httpMeta);
30
+ this.data$ = err;
31
+
32
+ this.name = "DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody";
33
+ }
34
+ }
35
+
36
+ /**
37
+ * Gone
38
+ */
39
+ export type DeleteScopedApiKeyAuthApiKeysResponse410ResponseBodyData = {
40
+ message: string;
41
+ };
42
+
43
+ /**
44
+ * Gone
45
+ */
46
+ export class DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
47
+ extends SDKError
48
+ {
49
+ /** The original data that was passed to this error instance. */
50
+ data$: DeleteScopedApiKeyAuthApiKeysResponse410ResponseBodyData;
51
+
52
+ constructor(
53
+ err: DeleteScopedApiKeyAuthApiKeysResponse410ResponseBodyData,
54
+ httpMeta: { response: Response; request: Request; body: string },
55
+ ) {
56
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
57
+ super(message, httpMeta);
58
+ this.data$ = err;
59
+
60
+ this.name = "DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody";
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Conflict
66
+ */
67
+ export type DeleteScopedApiKeyAuthApiKeysResponse409ResponseBodyData = {
68
+ message: string;
69
+ };
70
+
71
+ /**
72
+ * Conflict
73
+ */
74
+ export class DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
75
+ extends SDKError
76
+ {
77
+ /** The original data that was passed to this error instance. */
78
+ data$: DeleteScopedApiKeyAuthApiKeysResponse409ResponseBodyData;
79
+
80
+ constructor(
81
+ err: DeleteScopedApiKeyAuthApiKeysResponse409ResponseBodyData,
82
+ httpMeta: { response: Response; request: Request; body: string },
83
+ ) {
84
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
85
+ super(message, httpMeta);
86
+ this.data$ = err;
87
+
88
+ this.name = "DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody";
89
+ }
90
+ }
91
+
92
+ /**
93
+ * Not found
94
+ */
95
+ export type DeleteScopedApiKeyAuthApiKeysResponse404ResponseBodyData = {
96
+ message: string;
97
+ };
98
+
99
+ /**
100
+ * Not found
101
+ */
102
+ export class DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
103
+ extends SDKError
104
+ {
105
+ /** The original data that was passed to this error instance. */
106
+ data$: DeleteScopedApiKeyAuthApiKeysResponse404ResponseBodyData;
107
+
108
+ constructor(
109
+ err: DeleteScopedApiKeyAuthApiKeysResponse404ResponseBodyData,
110
+ httpMeta: { response: Response; request: Request; body: string },
111
+ ) {
112
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
113
+ super(message, httpMeta);
114
+ this.data$ = err;
115
+
116
+ this.name = "DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody";
117
+ }
118
+ }
119
+
120
+ /**
121
+ * Forbidden. An `mk-` key presented from a source address outside the organization's inbound IP rules gets `{"message":"inbound_ip_denied","code":"inbound_ip_denied"}`.
122
+ */
123
+ export type DeleteScopedApiKeyAuthApiKeysResponseResponseBodyData = {
124
+ message: string;
125
+ code?: string | undefined;
126
+ };
127
+
128
+ /**
129
+ * Forbidden. An `mk-` key presented from a source address outside the organization's inbound IP rules gets `{"message":"inbound_ip_denied","code":"inbound_ip_denied"}`.
130
+ */
131
+ export class DeleteScopedApiKeyAuthApiKeysResponseResponseBody
132
+ extends SDKError
133
+ {
134
+ code?: string | undefined;
135
+
136
+ /** The original data that was passed to this error instance. */
137
+ data$: DeleteScopedApiKeyAuthApiKeysResponseResponseBodyData;
138
+
139
+ constructor(
140
+ err: DeleteScopedApiKeyAuthApiKeysResponseResponseBodyData,
141
+ httpMeta: { response: Response; request: Request; body: string },
142
+ ) {
143
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
144
+ super(message, httpMeta);
145
+ this.data$ = err;
146
+ if (err.code != null) this.code = err.code;
147
+
148
+ this.name = "DeleteScopedApiKeyAuthApiKeysResponseResponseBody";
149
+ }
150
+ }
151
+
152
+ /**
153
+ * Unauthorized
154
+ */
155
+ export type DeleteScopedApiKeyAuthApiKeysResponseBodyData = {
156
+ message: string;
157
+ };
158
+
159
+ /**
160
+ * Unauthorized
161
+ */
162
+ export class DeleteScopedApiKeyAuthApiKeysResponseBody extends SDKError {
163
+ /** The original data that was passed to this error instance. */
164
+ data$: DeleteScopedApiKeyAuthApiKeysResponseBodyData;
165
+
166
+ constructor(
167
+ err: DeleteScopedApiKeyAuthApiKeysResponseBodyData,
168
+ httpMeta: { response: Response; request: Request; body: string },
169
+ ) {
170
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
171
+ super(message, httpMeta);
172
+ this.data$ = err;
173
+
174
+ this.name = "DeleteScopedApiKeyAuthApiKeysResponseBody";
175
+ }
176
+ }
177
+
178
+ /**
179
+ * Bad request
180
+ */
181
+ export type DeleteScopedApiKeyResponseBodyData = {
182
+ message: string;
183
+ };
184
+
185
+ /**
186
+ * Bad request
187
+ */
188
+ export class DeleteScopedApiKeyResponseBody extends SDKError {
189
+ /** The original data that was passed to this error instance. */
190
+ data$: DeleteScopedApiKeyResponseBodyData;
191
+
192
+ constructor(
193
+ err: DeleteScopedApiKeyResponseBodyData,
194
+ httpMeta: { response: Response; request: Request; body: string },
195
+ ) {
196
+ const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
197
+ super(message, httpMeta);
198
+ this.data$ = err;
199
+
200
+ this.name = "DeleteScopedApiKeyResponseBody";
201
+ }
202
+ }
203
+
204
+ /** @internal */
205
+ export const DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$inboundSchema:
206
+ z.ZodType<
207
+ DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody,
208
+ z.ZodTypeDef,
209
+ unknown
210
+ > = z.object({
211
+ message: z.string(),
212
+ request$: z.instanceof(Request),
213
+ response$: z.instanceof(Response),
214
+ body$: z.string(),
215
+ })
216
+ .transform((v) => {
217
+ return new DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody(v, {
218
+ request: v.request$,
219
+ response: v.response$,
220
+ body: v.body$,
221
+ });
222
+ });
223
+
224
+ /** @internal */
225
+ export type DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$Outbound = {
226
+ message: string;
227
+ };
228
+
229
+ /** @internal */
230
+ export const DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$outboundSchema:
231
+ z.ZodType<
232
+ DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody$Outbound,
233
+ z.ZodTypeDef,
234
+ DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody
235
+ > = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse429ResponseBody)
236
+ .transform(v => v.data$)
237
+ .pipe(z.object({
238
+ message: z.string(),
239
+ }));
240
+
241
+ /** @internal */
242
+ export const DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$inboundSchema:
243
+ z.ZodType<
244
+ DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody,
245
+ z.ZodTypeDef,
246
+ unknown
247
+ > = z.object({
248
+ message: z.string(),
249
+ request$: z.instanceof(Request),
250
+ response$: z.instanceof(Response),
251
+ body$: z.string(),
252
+ })
253
+ .transform((v) => {
254
+ return new DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody(v, {
255
+ request: v.request$,
256
+ response: v.response$,
257
+ body: v.body$,
258
+ });
259
+ });
260
+
261
+ /** @internal */
262
+ export type DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$Outbound = {
263
+ message: string;
264
+ };
265
+
266
+ /** @internal */
267
+ export const DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$outboundSchema:
268
+ z.ZodType<
269
+ DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody$Outbound,
270
+ z.ZodTypeDef,
271
+ DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody
272
+ > = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse410ResponseBody)
273
+ .transform(v => v.data$)
274
+ .pipe(z.object({
275
+ message: z.string(),
276
+ }));
277
+
278
+ /** @internal */
279
+ export const DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$inboundSchema:
280
+ z.ZodType<
281
+ DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody,
282
+ z.ZodTypeDef,
283
+ unknown
284
+ > = z.object({
285
+ message: z.string(),
286
+ request$: z.instanceof(Request),
287
+ response$: z.instanceof(Response),
288
+ body$: z.string(),
289
+ })
290
+ .transform((v) => {
291
+ return new DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody(v, {
292
+ request: v.request$,
293
+ response: v.response$,
294
+ body: v.body$,
295
+ });
296
+ });
297
+
298
+ /** @internal */
299
+ export type DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$Outbound = {
300
+ message: string;
301
+ };
302
+
303
+ /** @internal */
304
+ export const DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$outboundSchema:
305
+ z.ZodType<
306
+ DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody$Outbound,
307
+ z.ZodTypeDef,
308
+ DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody
309
+ > = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse409ResponseBody)
310
+ .transform(v => v.data$)
311
+ .pipe(z.object({
312
+ message: z.string(),
313
+ }));
314
+
315
+ /** @internal */
316
+ export const DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$inboundSchema:
317
+ z.ZodType<
318
+ DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody,
319
+ z.ZodTypeDef,
320
+ unknown
321
+ > = z.object({
322
+ message: z.string(),
323
+ request$: z.instanceof(Request),
324
+ response$: z.instanceof(Response),
325
+ body$: z.string(),
326
+ })
327
+ .transform((v) => {
328
+ return new DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody(v, {
329
+ request: v.request$,
330
+ response: v.response$,
331
+ body: v.body$,
332
+ });
333
+ });
334
+
335
+ /** @internal */
336
+ export type DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$Outbound = {
337
+ message: string;
338
+ };
339
+
340
+ /** @internal */
341
+ export const DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$outboundSchema:
342
+ z.ZodType<
343
+ DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody$Outbound,
344
+ z.ZodTypeDef,
345
+ DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody
346
+ > = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponse404ResponseBody)
347
+ .transform(v => v.data$)
348
+ .pipe(z.object({
349
+ message: z.string(),
350
+ }));
351
+
352
+ /** @internal */
353
+ export const DeleteScopedApiKeyAuthApiKeysResponseResponseBody$inboundSchema:
354
+ z.ZodType<
355
+ DeleteScopedApiKeyAuthApiKeysResponseResponseBody,
356
+ z.ZodTypeDef,
357
+ unknown
358
+ > = z.object({
359
+ message: z.string(),
360
+ code: z.string().optional(),
361
+ request$: z.instanceof(Request),
362
+ response$: z.instanceof(Response),
363
+ body$: z.string(),
364
+ })
365
+ .transform((v) => {
366
+ return new DeleteScopedApiKeyAuthApiKeysResponseResponseBody(v, {
367
+ request: v.request$,
368
+ response: v.response$,
369
+ body: v.body$,
370
+ });
371
+ });
372
+
373
+ /** @internal */
374
+ export type DeleteScopedApiKeyAuthApiKeysResponseResponseBody$Outbound = {
375
+ message: string;
376
+ code?: string | undefined;
377
+ };
378
+
379
+ /** @internal */
380
+ export const DeleteScopedApiKeyAuthApiKeysResponseResponseBody$outboundSchema:
381
+ z.ZodType<
382
+ DeleteScopedApiKeyAuthApiKeysResponseResponseBody$Outbound,
383
+ z.ZodTypeDef,
384
+ DeleteScopedApiKeyAuthApiKeysResponseResponseBody
385
+ > = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponseResponseBody)
386
+ .transform(v => v.data$)
387
+ .pipe(z.object({
388
+ message: z.string(),
389
+ code: z.string().optional(),
390
+ }));
391
+
392
+ /** @internal */
393
+ export const DeleteScopedApiKeyAuthApiKeysResponseBody$inboundSchema: z.ZodType<
394
+ DeleteScopedApiKeyAuthApiKeysResponseBody,
395
+ z.ZodTypeDef,
396
+ unknown
397
+ > = z.object({
398
+ message: z.string(),
399
+ request$: z.instanceof(Request),
400
+ response$: z.instanceof(Response),
401
+ body$: z.string(),
402
+ })
403
+ .transform((v) => {
404
+ return new DeleteScopedApiKeyAuthApiKeysResponseBody(v, {
405
+ request: v.request$,
406
+ response: v.response$,
407
+ body: v.body$,
408
+ });
409
+ });
410
+
411
+ /** @internal */
412
+ export type DeleteScopedApiKeyAuthApiKeysResponseBody$Outbound = {
413
+ message: string;
414
+ };
415
+
416
+ /** @internal */
417
+ export const DeleteScopedApiKeyAuthApiKeysResponseBody$outboundSchema:
418
+ z.ZodType<
419
+ DeleteScopedApiKeyAuthApiKeysResponseBody$Outbound,
420
+ z.ZodTypeDef,
421
+ DeleteScopedApiKeyAuthApiKeysResponseBody
422
+ > = z.instanceof(DeleteScopedApiKeyAuthApiKeysResponseBody)
423
+ .transform(v => v.data$)
424
+ .pipe(z.object({
425
+ message: z.string(),
426
+ }));
427
+
428
+ /** @internal */
429
+ export const DeleteScopedApiKeyResponseBody$inboundSchema: z.ZodType<
430
+ DeleteScopedApiKeyResponseBody,
431
+ z.ZodTypeDef,
432
+ unknown
433
+ > = z.object({
434
+ message: z.string(),
435
+ request$: z.instanceof(Request),
436
+ response$: z.instanceof(Response),
437
+ body$: z.string(),
438
+ })
439
+ .transform((v) => {
440
+ return new DeleteScopedApiKeyResponseBody(v, {
441
+ request: v.request$,
442
+ response: v.response$,
443
+ body: v.body$,
444
+ });
445
+ });
446
+
447
+ /** @internal */
448
+ export type DeleteScopedApiKeyResponseBody$Outbound = {
449
+ message: string;
450
+ };
451
+
452
+ /** @internal */
453
+ export const DeleteScopedApiKeyResponseBody$outboundSchema: z.ZodType<
454
+ DeleteScopedApiKeyResponseBody$Outbound,
455
+ z.ZodTypeDef,
456
+ DeleteScopedApiKeyResponseBody
457
+ > = z.instanceof(DeleteScopedApiKeyResponseBody)
458
+ .transform(v => v.data$)
459
+ .pipe(z.object({
460
+ message: z.string(),
461
+ }));
@@ -12,6 +12,7 @@ export * from "./createscopedapikey.js";
12
12
  export * from "./createserviceaccount.js";
13
13
  export * from "./createteam.js";
14
14
  export * from "./deleteclusterorg.js";
15
+ export * from "./deletescopedapikey.js";
15
16
  export * from "./deleteserviceaccount.js";
16
17
  export * from "./deleteserviceaccountapikey.js";
17
18
  export * from "./deleteteam.js";