@alienplatform/manager-api 3.3.30 → 3.3.32

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 (181) hide show
  1. package/esm/funcs/commandsStoreCommandPayload.d.ts +2 -2
  2. package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
  3. package/esm/funcs/commandsStoreCommandPayload.js +8 -4
  4. package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
  5. package/esm/funcs/commandsSubmitResponse.d.ts +2 -2
  6. package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
  7. package/esm/funcs/commandsSubmitResponse.js +8 -4
  8. package/esm/funcs/commandsSubmitResponse.js.map +1 -1
  9. package/esm/funcs/commandsUploadComplete.d.ts +1 -2
  10. package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
  11. package/esm/funcs/commandsUploadComplete.js +8 -4
  12. package/esm/funcs/commandsUploadComplete.js.map +1 -1
  13. package/esm/funcs/deploymentsDeleteDeployment.d.ts +1 -2
  14. package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
  15. package/esm/funcs/deploymentsDeleteDeployment.js +8 -4
  16. package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
  17. package/esm/funcs/deploymentsImportDeploymentStatus.d.ts +1 -2
  18. package/esm/funcs/deploymentsImportDeploymentStatus.d.ts.map +1 -1
  19. package/esm/funcs/deploymentsImportDeploymentStatus.js +8 -4
  20. package/esm/funcs/deploymentsImportDeploymentStatus.js.map +1 -1
  21. package/esm/funcs/deploymentsSetDeploymentChannel.d.ts +1 -2
  22. package/esm/funcs/deploymentsSetDeploymentChannel.d.ts.map +1 -1
  23. package/esm/funcs/deploymentsSetDeploymentChannel.js +8 -4
  24. package/esm/funcs/deploymentsSetDeploymentChannel.js.map +1 -1
  25. package/esm/funcs/deploymentsSetDeploymentPin.d.ts +1 -2
  26. package/esm/funcs/deploymentsSetDeploymentPin.d.ts.map +1 -1
  27. package/esm/funcs/deploymentsSetDeploymentPin.js +8 -4
  28. package/esm/funcs/deploymentsSetDeploymentPin.js.map +1 -1
  29. package/esm/funcs/deploymentsSignDeploymentBundle.d.ts +1 -2
  30. package/esm/funcs/deploymentsSignDeploymentBundle.d.ts.map +1 -1
  31. package/esm/funcs/deploymentsSignDeploymentBundle.js +8 -4
  32. package/esm/funcs/deploymentsSignDeploymentBundle.js.map +1 -1
  33. package/esm/funcs/releasesPromoteManagerRelease.d.ts +1 -2
  34. package/esm/funcs/releasesPromoteManagerRelease.d.ts.map +1 -1
  35. package/esm/funcs/releasesPromoteManagerRelease.js +8 -4
  36. package/esm/funcs/releasesPromoteManagerRelease.js.map +1 -1
  37. package/esm/lib/config.d.ts +2 -2
  38. package/esm/lib/config.js +2 -2
  39. package/esm/models/acquireresponse.d.ts +8 -0
  40. package/esm/models/acquireresponse.d.ts.map +1 -1
  41. package/esm/models/acquireresponse.js +2 -0
  42. package/esm/models/acquireresponse.js.map +1 -1
  43. package/esm/models/agentsyncrequest.d.ts +3 -0
  44. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  45. package/esm/models/agentsyncrequest.js +2 -0
  46. package/esm/models/agentsyncrequest.js.map +1 -1
  47. package/esm/models/bindingvalueoptionstringunion.d.ts +39 -0
  48. package/esm/models/bindingvalueoptionstringunion.d.ts.map +1 -0
  49. package/esm/models/bindingvalueoptionstringunion.js +39 -0
  50. package/esm/models/bindingvalueoptionstringunion.js.map +1 -0
  51. package/esm/models/bindingvaluestringunion.d.ts +39 -0
  52. package/esm/models/bindingvaluestringunion.d.ts.map +1 -0
  53. package/esm/models/bindingvaluestringunion.js +39 -0
  54. package/esm/models/bindingvaluestringunion.js.map +1 -0
  55. package/esm/models/bindingvalueu16union.d.ts +39 -0
  56. package/esm/models/bindingvalueu16union.d.ts.map +1 -0
  57. package/esm/models/bindingvalueu16union.js +31 -0
  58. package/esm/models/bindingvalueu16union.js.map +1 -0
  59. package/esm/models/bindingvalueu8union.d.ts +39 -0
  60. package/esm/models/bindingvalueu8union.d.ts.map +1 -0
  61. package/esm/models/bindingvalueu8union.js +31 -0
  62. package/esm/models/bindingvalueu8union.js.map +1 -0
  63. package/esm/models/bindingvaluevecstringunion.d.ts +39 -0
  64. package/esm/models/bindingvaluevecstringunion.d.ts.map +1 -0
  65. package/esm/models/bindingvaluevecstringunion.js +39 -0
  66. package/esm/models/bindingvaluevecstringunion.js.map +1 -0
  67. package/esm/models/computesettings.d.ts +10 -0
  68. package/esm/models/computesettings.d.ts.map +1 -1
  69. package/esm/models/computesettings.js +5 -0
  70. package/esm/models/computesettings.js.map +1 -1
  71. package/esm/models/containerresourceselection.d.ts +28 -0
  72. package/esm/models/containerresourceselection.d.ts.map +1 -0
  73. package/esm/models/containerresourceselection.js +22 -0
  74. package/esm/models/containerresourceselection.js.map +1 -0
  75. package/esm/models/custompluginoperationsconfig.d.ts +46 -0
  76. package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
  77. package/esm/models/custompluginoperationsconfig.js +19 -0
  78. package/esm/models/custompluginoperationsconfig.js.map +1 -0
  79. package/esm/models/deploymentacquireunavailablereason.d.ts +32 -0
  80. package/esm/models/deploymentacquireunavailablereason.d.ts.map +1 -0
  81. package/esm/models/deploymentacquireunavailablereason.js +25 -0
  82. package/esm/models/deploymentacquireunavailablereason.js.map +1 -0
  83. package/esm/models/externalbindingunion.d.ts +1414 -0
  84. package/esm/models/externalbindingunion.d.ts.map +1 -0
  85. package/esm/models/externalbindingunion.js +1075 -0
  86. package/esm/models/externalbindingunion.js.map +1 -0
  87. package/esm/models/externalpostgressslmode.d.ts +28 -0
  88. package/esm/models/externalpostgressslmode.d.ts.map +1 -0
  89. package/esm/models/externalpostgressslmode.js +21 -0
  90. package/esm/models/externalpostgressslmode.js.map +1 -0
  91. package/esm/models/index.d.ts +17 -0
  92. package/esm/models/index.d.ts.map +1 -1
  93. package/esm/models/index.js +17 -0
  94. package/esm/models/index.js.map +1 -1
  95. package/esm/models/operationapprovaldecision.d.ts +16 -0
  96. package/esm/models/operationapprovaldecision.d.ts.map +1 -0
  97. package/esm/models/operationapprovaldecision.js +14 -0
  98. package/esm/models/operationapprovaldecision.js.map +1 -0
  99. package/esm/models/operationapprovalunion.d.ts +36 -0
  100. package/esm/models/operationapprovalunion.d.ts.map +1 -0
  101. package/esm/models/operationapprovalunion.js +22 -0
  102. package/esm/models/operationapprovalunion.js.map +1 -0
  103. package/esm/models/operationsbundledownload.d.ts +9 -0
  104. package/esm/models/operationsbundledownload.d.ts.map +1 -1
  105. package/esm/models/operationsbundledownload.js +1 -0
  106. package/esm/models/operationsbundledownload.js.map +1 -1
  107. package/esm/models/operationsconfig.d.ts +29 -0
  108. package/esm/models/operationsconfig.d.ts.map +1 -0
  109. package/esm/models/operationsconfig.js +16 -0
  110. package/esm/models/operationsconfig.js.map +1 -0
  111. package/esm/models/operationsettingvalueunion.d.ts +62 -0
  112. package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
  113. package/esm/models/operationsettingvalueunion.js +36 -0
  114. package/esm/models/operationsettingvalueunion.js.map +1 -0
  115. package/esm/models/pluginoperationsconfig.d.ts +36 -0
  116. package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
  117. package/esm/models/pluginoperationsconfig.js +17 -0
  118. package/esm/models/pluginoperationsconfig.js.map +1 -0
  119. package/esm/models/secretreference.d.ts +22 -0
  120. package/esm/models/secretreference.d.ts.map +1 -0
  121. package/esm/models/secretreference.js +22 -0
  122. package/esm/models/secretreference.js.map +1 -0
  123. package/esm/models/stacksettings.d.ts +7 -27
  124. package/esm/models/stacksettings.d.ts.map +1 -1
  125. package/esm/models/stacksettings.js +3 -14
  126. package/esm/models/stacksettings.js.map +1 -1
  127. package/esm/models/unacquireddeployment.d.ts +24 -0
  128. package/esm/models/unacquireddeployment.d.ts.map +1 -0
  129. package/esm/models/unacquireddeployment.js +16 -0
  130. package/esm/models/unacquireddeployment.js.map +1 -0
  131. package/esm/sdk/commands.d.ts +3 -3
  132. package/esm/sdk/commands.d.ts.map +1 -1
  133. package/esm/sdk/commands.js +6 -6
  134. package/esm/sdk/commands.js.map +1 -1
  135. package/esm/sdk/deployments.d.ts +5 -5
  136. package/esm/sdk/deployments.d.ts.map +1 -1
  137. package/esm/sdk/deployments.js +10 -10
  138. package/esm/sdk/deployments.js.map +1 -1
  139. package/esm/sdk/releases.d.ts +1 -1
  140. package/esm/sdk/releases.d.ts.map +1 -1
  141. package/esm/sdk/releases.js +2 -2
  142. package/esm/sdk/releases.js.map +1 -1
  143. package/examples/package-lock.json +1 -1
  144. package/jsr.json +1 -1
  145. package/package.json +3 -3
  146. package/src/funcs/commandsStoreCommandPayload.ts +13 -4
  147. package/src/funcs/commandsSubmitResponse.ts +13 -4
  148. package/src/funcs/commandsUploadComplete.ts +12 -4
  149. package/src/funcs/deploymentsDeleteDeployment.ts +12 -4
  150. package/src/funcs/deploymentsImportDeploymentStatus.ts +12 -4
  151. package/src/funcs/deploymentsSetDeploymentChannel.ts +12 -4
  152. package/src/funcs/deploymentsSetDeploymentPin.ts +12 -4
  153. package/src/funcs/deploymentsSignDeploymentBundle.ts +12 -4
  154. package/src/funcs/releasesPromoteManagerRelease.ts +12 -4
  155. package/src/lib/config.ts +2 -2
  156. package/src/models/acquireresponse.ts +12 -0
  157. package/src/models/agentsyncrequest.ts +8 -0
  158. package/src/models/bindingvalueoptionstringunion.ts +116 -0
  159. package/src/models/bindingvaluestringunion.ts +111 -0
  160. package/src/models/bindingvalueu16union.ts +101 -0
  161. package/src/models/bindingvalueu8union.ts +97 -0
  162. package/src/models/bindingvaluevecstringunion.ts +114 -0
  163. package/src/models/computesettings.ts +15 -0
  164. package/src/models/containerresourceselection.ts +62 -0
  165. package/src/models/custompluginoperationsconfig.ts +71 -0
  166. package/src/models/deploymentacquireunavailablereason.ts +41 -0
  167. package/src/models/externalbindingunion.ts +3068 -0
  168. package/src/models/externalpostgressslmode.ts +39 -0
  169. package/src/models/index.ts +17 -0
  170. package/src/models/operationapprovaldecision.ts +25 -0
  171. package/src/models/operationapprovalunion.ts +78 -0
  172. package/src/models/operationsbundledownload.ts +8 -0
  173. package/src/models/operationsconfig.ts +53 -0
  174. package/src/models/operationsettingvalueunion.ts +136 -0
  175. package/src/models/pluginoperationsconfig.ts +57 -0
  176. package/src/models/secretreference.ts +54 -0
  177. package/src/models/stacksettings.ts +17 -55
  178. package/src/models/unacquireddeployment.ts +51 -0
  179. package/src/sdk/commands.ts +12 -6
  180. package/src/sdk/deployments.ts +20 -10
  181. package/src/sdk/releases.ts +4 -2
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { ClosedEnum } from "../types/enums.js";
7
+
8
+ /**
9
+ * TLS policy for an operator-provided / BYO Postgres database.
10
+ *
11
+ * @remarks
12
+ *
13
+ * Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the
14
+ * connection settings exposed by every supported SDK.
15
+ */
16
+ export const ExternalPostgresSslMode = {
17
+ VerifyFull: "verify-full",
18
+ Disable: "disable",
19
+ } as const;
20
+ /**
21
+ * TLS policy for an operator-provided / BYO Postgres database.
22
+ *
23
+ * @remarks
24
+ *
25
+ * Unlike libpq's ambiguous `prefer` mode, both choices map exactly to the
26
+ * connection settings exposed by every supported SDK.
27
+ */
28
+ export type ExternalPostgresSslMode = ClosedEnum<
29
+ typeof ExternalPostgresSslMode
30
+ >;
31
+
32
+ /** @internal */
33
+ export const ExternalPostgresSslMode$inboundSchema: z.ZodEnum<
34
+ typeof ExternalPostgresSslMode
35
+ > = z.enum(ExternalPostgresSslMode);
36
+ /** @internal */
37
+ export const ExternalPostgresSslMode$outboundSchema: z.ZodEnum<
38
+ typeof ExternalPostgresSslMode
39
+ > = ExternalPostgresSslMode$inboundSchema;
@@ -39,6 +39,11 @@ export * from "./azurestorageaccountendpoints.js";
39
39
  export * from "./azurestorageaccountheartbeatdata.js";
40
40
  export * from "./baseresource.js";
41
41
  export * from "./baseresourceoutputs.js";
42
+ export * from "./bindingvalueoptionstringunion.js";
43
+ export * from "./bindingvaluestringunion.js";
44
+ export * from "./bindingvalueu16union.js";
45
+ export * from "./bindingvalueu8union.js";
46
+ export * from "./bindingvaluevecstringunion.js";
42
47
  export * from "./bodyspec.js";
43
48
  export * from "./buildheartbeatdata.js";
44
49
  export * from "./buildheartbeatstatus.js";
@@ -68,6 +73,7 @@ export * from "./computepoolselection.js";
68
73
  export * from "./computesettings.js";
69
74
  export * from "./containerheartbeatdata.js";
70
75
  export * from "./containerimageidentity.js";
76
+ export * from "./containerresourceselection.js";
71
77
  export * from "./creatabletokentype.js";
72
78
  export * from "./createcommandrequest.js";
73
79
  export * from "./createcommandresponse.js";
@@ -81,10 +87,12 @@ export * from "./createtokenrequest.js";
81
87
  export * from "./createtokenresponse.js";
82
88
  export * from "./customcertificateconfig.js";
83
89
  export * from "./customdomainconfig.js";
90
+ export * from "./custompluginoperationsconfig.js";
84
91
  export * from "./daemonheartbeatdata.js";
85
92
  export * from "./deletedeploymentaction.js";
86
93
  export * from "./deletedeploymentrequest.js";
87
94
  export * from "./deletedeploymentresponse.js";
95
+ export * from "./deploymentacquireunavailablereason.js";
88
96
  export * from "./deploymentgroupminimal.js";
89
97
  export * from "./deploymentgroupresponse.js";
90
98
  export * from "./deploymentinforesponse.js";
@@ -101,6 +109,8 @@ export * from "./environmentvariable.js";
101
109
  export * from "./environmentvariabletype.js";
102
110
  export * from "./executionclaim.js";
103
111
  export * from "./exposeprotocol.js";
112
+ export * from "./externalbindingunion.js";
113
+ export * from "./externalpostgressslmode.js";
104
114
  export * from "./failuredomainselection.js";
105
115
  export * from "./gcpcloudkmskeyheartbeatdata.js";
106
116
  export * from "./gcpcredentials.js";
@@ -186,13 +196,18 @@ export * from "./observedcounts.js";
186
196
  export * from "./observedhealth.js";
187
197
  export * from "./observedinventorybatch.js";
188
198
  export * from "./observedresourcesample.js";
199
+ export * from "./operationapprovaldecision.js";
200
+ export * from "./operationapprovalunion.js";
189
201
  export * from "./operationsbundledownload.js";
202
+ export * from "./operationsconfig.js";
203
+ export * from "./operationsettingvalueunion.js";
190
204
  export * from "./operationsreport.js";
191
205
  export * from "./operatorcapabilityreport.js";
192
206
  export * from "./operatorcapabilitystate.js";
193
207
  export * from "./operatorimagereport.js";
194
208
  export * from "./operatorimagesource.js";
195
209
  export * from "./platformenum.js";
210
+ export * from "./pluginoperationsconfig.js";
196
211
  export * from "./postgresheartbeatdata.js";
197
212
  export * from "./postgresheartbeatstatus.js";
198
213
  export * from "./presignedoperation.js";
@@ -256,6 +271,7 @@ export * from "./responsehandling.js";
256
271
  export * from "./sandboxheartbeatdata.js";
257
272
  export * from "./sandboxheartbeatstatus.js";
258
273
  export * from "./scopeinfo.js";
274
+ export * from "./secretreference.js";
259
275
  export * from "./security.js";
260
276
  export * from "./serviceaccountheartbeatdata.js";
261
277
  export * from "./serviceaccountheartbeatstatus.js";
@@ -283,6 +299,7 @@ export * from "./telemetrymode.js";
283
299
  export * from "./tokenresponse.js";
284
300
  export * from "./tooldownload.js";
285
301
  export * from "./tracecontext.js";
302
+ export * from "./unacquireddeployment.js";
286
303
  export * from "./updatesmode.js";
287
304
  export * from "./uploadcompleterequest.js";
288
305
  export * from "./uploadcompleteresponse.js";
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { ClosedEnum } from "../types/enums.js";
7
+
8
+ /**
9
+ * Whether matching operations run without approval.
10
+ */
11
+ export const OperationApprovalDecision = {
12
+ Auto: "auto",
13
+ Manual: "manual",
14
+ } as const;
15
+ /**
16
+ * Whether matching operations run without approval.
17
+ */
18
+ export type OperationApprovalDecision = ClosedEnum<
19
+ typeof OperationApprovalDecision
20
+ >;
21
+
22
+ /** @internal */
23
+ export const OperationApprovalDecision$outboundSchema: z.ZodEnum<
24
+ typeof OperationApprovalDecision
25
+ > = z.enum(OperationApprovalDecision);
@@ -0,0 +1,78 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import {
7
+ OperationApprovalDecision,
8
+ OperationApprovalDecision$outboundSchema,
9
+ } from "./operationapprovaldecision.js";
10
+
11
+ /**
12
+ * A decision plus the highest risk tier a wildcard access request may cover.
13
+ */
14
+ export type OperationApproval = {
15
+ /**
16
+ * Whether matching operations run without approval.
17
+ */
18
+ decision: OperationApprovalDecision;
19
+ /**
20
+ * Highest risk tier (`read-only`, `mutating`, `destructive`) a wildcard
21
+ *
22
+ * @remarks
23
+ * access request for these operations may cover.
24
+ */
25
+ maxRisk?: string | null | undefined;
26
+ };
27
+
28
+ /**
29
+ * Approval rule for the operations a pattern matches.
30
+ */
31
+ export type OperationApprovalUnion =
32
+ | OperationApproval
33
+ | OperationApprovalDecision;
34
+
35
+ /** @internal */
36
+ export type OperationApproval$Outbound = {
37
+ decision: string;
38
+ maxRisk?: string | null | undefined;
39
+ };
40
+
41
+ /** @internal */
42
+ export const OperationApproval$outboundSchema: z.ZodType<
43
+ OperationApproval$Outbound,
44
+ OperationApproval
45
+ > = z.object({
46
+ decision: OperationApprovalDecision$outboundSchema,
47
+ maxRisk: z.nullable(z.string()).optional(),
48
+ });
49
+
50
+ export function operationApprovalToJSON(
51
+ operationApproval: OperationApproval,
52
+ ): string {
53
+ return JSON.stringify(
54
+ OperationApproval$outboundSchema.parse(operationApproval),
55
+ );
56
+ }
57
+
58
+ /** @internal */
59
+ export type OperationApprovalUnion$Outbound =
60
+ | OperationApproval$Outbound
61
+ | string;
62
+
63
+ /** @internal */
64
+ export const OperationApprovalUnion$outboundSchema: z.ZodType<
65
+ OperationApprovalUnion$Outbound,
66
+ OperationApprovalUnion
67
+ > = z.union([
68
+ z.lazy(() => OperationApproval$outboundSchema),
69
+ OperationApprovalDecision$outboundSchema,
70
+ ]);
71
+
72
+ export function operationApprovalUnionToJSON(
73
+ operationApprovalUnion: OperationApprovalUnion,
74
+ ): string {
75
+ return JSON.stringify(
76
+ OperationApprovalUnion$outboundSchema.parse(operationApprovalUnion),
77
+ );
78
+ }
@@ -16,6 +16,13 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
16
16
  * registry proxy's credential-injection pattern.
17
17
  */
18
18
  export type OperationsBundleDownload = {
19
+ /**
20
+ * Environment the plugin process runs with: its settings, which may hold
21
+ *
22
+ * @remarks
23
+ * secrets. Store only in encrypted state, and never log the values.
24
+ */
25
+ env?: { [k: string]: string } | undefined;
19
26
  /**
20
27
  * Plugin name this bundle provides.
21
28
  */
@@ -35,6 +42,7 @@ export const OperationsBundleDownload$inboundSchema: z.ZodType<
35
42
  OperationsBundleDownload,
36
43
  unknown
37
44
  > = z.object({
45
+ env: z.record(z.string(), z.string()).optional(),
38
46
  plugin: z.string(),
39
47
  pluginVersion: z.string(),
40
48
  url: z.string(),
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import {
7
+ CustomPluginOperationsConfig,
8
+ CustomPluginOperationsConfig$Outbound,
9
+ CustomPluginOperationsConfig$outboundSchema,
10
+ } from "./custompluginoperationsconfig.js";
11
+ import {
12
+ PluginOperationsConfig,
13
+ PluginOperationsConfig$Outbound,
14
+ PluginOperationsConfig$outboundSchema,
15
+ } from "./pluginoperationsconfig.js";
16
+
17
+ /**
18
+ * Operations declared by a stack, or by an Operator installed on its own.
19
+ */
20
+ export type OperationsConfig = {
21
+ /**
22
+ * Published custom plugins, pinned to exact versions.
23
+ */
24
+ custom?: Array<CustomPluginOperationsConfig> | undefined;
25
+ /**
26
+ * Built-in plugins, by plugin name.
27
+ */
28
+ plugins?: { [k: string]: PluginOperationsConfig } | undefined;
29
+ };
30
+
31
+ /** @internal */
32
+ export type OperationsConfig$Outbound = {
33
+ custom?: Array<CustomPluginOperationsConfig$Outbound> | undefined;
34
+ plugins?: { [k: string]: PluginOperationsConfig$Outbound } | undefined;
35
+ };
36
+
37
+ /** @internal */
38
+ export const OperationsConfig$outboundSchema: z.ZodType<
39
+ OperationsConfig$Outbound,
40
+ OperationsConfig
41
+ > = z.object({
42
+ custom: z.array(CustomPluginOperationsConfig$outboundSchema).optional(),
43
+ plugins: z.record(z.string(), PluginOperationsConfig$outboundSchema)
44
+ .optional(),
45
+ });
46
+
47
+ export function operationsConfigToJSON(
48
+ operationsConfig: OperationsConfig,
49
+ ): string {
50
+ return JSON.stringify(
51
+ OperationsConfig$outboundSchema.parse(operationsConfig),
52
+ );
53
+ }
@@ -0,0 +1,136 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+
7
+ /**
8
+ * An environment variable of the Operator process. Only for an Operator
9
+ *
10
+ * @remarks
11
+ * installed on its own, so secrets stay in its environment.
12
+ */
13
+ export type OperationSettingValue3 = {
14
+ /**
15
+ * Environment variable name.
16
+ */
17
+ env: string;
18
+ };
19
+
20
+ /**
21
+ * Stack resources the plugin may act on, such as buckets or queues.
22
+ */
23
+ export type OperationSettingValue2 = {
24
+ /**
25
+ * Resource ids in the same stack.
26
+ */
27
+ resources: Array<string>;
28
+ };
29
+
30
+ /**
31
+ * The value of a stack input.
32
+ */
33
+ export type OperationSettingValue1 = {
34
+ /**
35
+ * Stack input id.
36
+ */
37
+ input: string;
38
+ };
39
+
40
+ /**
41
+ * Value of one plugin setting.
42
+ */
43
+ export type OperationSettingValueUnion =
44
+ | OperationSettingValue1
45
+ | OperationSettingValue2
46
+ | OperationSettingValue3
47
+ | string;
48
+
49
+ /** @internal */
50
+ export type OperationSettingValue3$Outbound = {
51
+ env: string;
52
+ };
53
+
54
+ /** @internal */
55
+ export const OperationSettingValue3$outboundSchema: z.ZodType<
56
+ OperationSettingValue3$Outbound,
57
+ OperationSettingValue3
58
+ > = z.object({
59
+ env: z.string(),
60
+ });
61
+
62
+ export function operationSettingValue3ToJSON(
63
+ operationSettingValue3: OperationSettingValue3,
64
+ ): string {
65
+ return JSON.stringify(
66
+ OperationSettingValue3$outboundSchema.parse(operationSettingValue3),
67
+ );
68
+ }
69
+
70
+ /** @internal */
71
+ export type OperationSettingValue2$Outbound = {
72
+ resources: Array<string>;
73
+ };
74
+
75
+ /** @internal */
76
+ export const OperationSettingValue2$outboundSchema: z.ZodType<
77
+ OperationSettingValue2$Outbound,
78
+ OperationSettingValue2
79
+ > = z.object({
80
+ resources: z.array(z.string()),
81
+ });
82
+
83
+ export function operationSettingValue2ToJSON(
84
+ operationSettingValue2: OperationSettingValue2,
85
+ ): string {
86
+ return JSON.stringify(
87
+ OperationSettingValue2$outboundSchema.parse(operationSettingValue2),
88
+ );
89
+ }
90
+
91
+ /** @internal */
92
+ export type OperationSettingValue1$Outbound = {
93
+ input: string;
94
+ };
95
+
96
+ /** @internal */
97
+ export const OperationSettingValue1$outboundSchema: z.ZodType<
98
+ OperationSettingValue1$Outbound,
99
+ OperationSettingValue1
100
+ > = z.object({
101
+ input: z.string(),
102
+ });
103
+
104
+ export function operationSettingValue1ToJSON(
105
+ operationSettingValue1: OperationSettingValue1,
106
+ ): string {
107
+ return JSON.stringify(
108
+ OperationSettingValue1$outboundSchema.parse(operationSettingValue1),
109
+ );
110
+ }
111
+
112
+ /** @internal */
113
+ export type OperationSettingValueUnion$Outbound =
114
+ | OperationSettingValue1$Outbound
115
+ | OperationSettingValue2$Outbound
116
+ | OperationSettingValue3$Outbound
117
+ | string;
118
+
119
+ /** @internal */
120
+ export const OperationSettingValueUnion$outboundSchema: z.ZodType<
121
+ OperationSettingValueUnion$Outbound,
122
+ OperationSettingValueUnion
123
+ > = z.union([
124
+ z.lazy(() => OperationSettingValue1$outboundSchema),
125
+ z.lazy(() => OperationSettingValue2$outboundSchema),
126
+ z.lazy(() => OperationSettingValue3$outboundSchema),
127
+ z.string(),
128
+ ]);
129
+
130
+ export function operationSettingValueUnionToJSON(
131
+ operationSettingValueUnion: OperationSettingValueUnion,
132
+ ): string {
133
+ return JSON.stringify(
134
+ OperationSettingValueUnion$outboundSchema.parse(operationSettingValueUnion),
135
+ );
136
+ }
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import {
7
+ OperationApprovalUnion,
8
+ OperationApprovalUnion$Outbound,
9
+ OperationApprovalUnion$outboundSchema,
10
+ } from "./operationapprovalunion.js";
11
+ import {
12
+ OperationSettingValueUnion,
13
+ OperationSettingValueUnion$Outbound,
14
+ OperationSettingValueUnion$outboundSchema,
15
+ } from "./operationsettingvalueunion.js";
16
+
17
+ /**
18
+ * Settings and approval rules for one plugin.
19
+ */
20
+ export type PluginOperationsConfig = {
21
+ /**
22
+ * Approval rule per operation: an operation name, or `*` for all of them.
23
+ *
24
+ * @remarks
25
+ * Operations no rule matches need approval.
26
+ */
27
+ approval?: { [k: string]: OperationApprovalUnion } | undefined;
28
+ /**
29
+ * Values for the settings the plugin's manifest declares.
30
+ */
31
+ settings?: { [k: string]: OperationSettingValueUnion } | undefined;
32
+ };
33
+
34
+ /** @internal */
35
+ export type PluginOperationsConfig$Outbound = {
36
+ approval?: { [k: string]: OperationApprovalUnion$Outbound } | undefined;
37
+ settings?: { [k: string]: OperationSettingValueUnion$Outbound } | undefined;
38
+ };
39
+
40
+ /** @internal */
41
+ export const PluginOperationsConfig$outboundSchema: z.ZodType<
42
+ PluginOperationsConfig$Outbound,
43
+ PluginOperationsConfig
44
+ > = z.object({
45
+ approval: z.record(z.string(), OperationApprovalUnion$outboundSchema)
46
+ .optional(),
47
+ settings: z.record(z.string(), OperationSettingValueUnion$outboundSchema)
48
+ .optional(),
49
+ });
50
+
51
+ export function pluginOperationsConfigToJSON(
52
+ pluginOperationsConfig: PluginOperationsConfig,
53
+ ): string {
54
+ return JSON.stringify(
55
+ PluginOperationsConfig$outboundSchema.parse(pluginOperationsConfig),
56
+ );
57
+ }
@@ -0,0 +1,54 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Reference to a Kubernetes Secret
12
+ */
13
+ export type SecretReference = {
14
+ key: string;
15
+ name: string;
16
+ };
17
+
18
+ /** @internal */
19
+ export const SecretReference$inboundSchema: z.ZodType<
20
+ SecretReference,
21
+ unknown
22
+ > = z.object({
23
+ key: z.string(),
24
+ name: z.string(),
25
+ });
26
+ /** @internal */
27
+ export type SecretReference$Outbound = {
28
+ key: string;
29
+ name: string;
30
+ };
31
+
32
+ /** @internal */
33
+ export const SecretReference$outboundSchema: z.ZodType<
34
+ SecretReference$Outbound,
35
+ SecretReference
36
+ > = z.object({
37
+ key: z.string(),
38
+ name: z.string(),
39
+ });
40
+
41
+ export function secretReferenceToJSON(
42
+ secretReference: SecretReference,
43
+ ): string {
44
+ return JSON.stringify(SecretReference$outboundSchema.parse(secretReference));
45
+ }
46
+ export function secretReferenceFromJSON(
47
+ jsonString: string,
48
+ ): SafeParseResult<SecretReference, SDKValidationError> {
49
+ return safeParse(
50
+ jsonString,
51
+ (x) => SecretReference$inboundSchema.parse(JSON.parse(x)),
52
+ `Failed to parse 'SecretReference' from JSON`,
53
+ );
54
+ }
@@ -28,6 +28,12 @@ import {
28
28
  EndpointAccess$outboundSchema,
29
29
  } from "./endpointaccess.js";
30
30
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
31
+ import {
32
+ ExternalBindingUnion,
33
+ ExternalBindingUnion$inboundSchema,
34
+ ExternalBindingUnion$Outbound,
35
+ ExternalBindingUnion$outboundSchema,
36
+ } from "./externalbindingunion.js";
31
37
  import {
32
38
  HeartbeatsMode,
33
39
  HeartbeatsMode$inboundSchema,
@@ -56,16 +62,6 @@ import {
56
62
  UpdatesMode$outboundSchema,
57
63
  } from "./updatesmode.js";
58
64
 
59
- /**
60
- * External bindings for pre-existing infrastructure.
61
- *
62
- * @remarks
63
- * Allows using existing resources (MinIO, Redis, shared Container Apps
64
- * Environment, etc.) instead of having Alien provision them.
65
- * Required for Kubernetes platform, optional for cloud platforms.
66
- */
67
- export type ExternalBindings = {};
68
-
69
65
  /**
70
66
  * User-customizable deployment settings specified at deploy time.
71
67
  *
@@ -89,15 +85,7 @@ export type StackSettings = {
89
85
  * Reachability of the deployment's public endpoints, fixed at setup.
90
86
  */
91
87
  endpointAccess?: EndpointAccess | undefined;
92
- /**
93
- * External bindings for pre-existing infrastructure.
94
- *
95
- * @remarks
96
- * Allows using existing resources (MinIO, Redis, shared Container Apps
97
- * Environment, etc.) instead of having Alien provision them.
98
- * Required for Kubernetes platform, optional for cloud platforms.
99
- */
100
- externalBindings?: ExternalBindings | null | undefined;
88
+ externalBindings?: { [k: string]: ExternalBindingUnion } | null | undefined;
101
89
  /**
102
90
  * How heartbeat health checks are handled.
103
91
  */
@@ -124,37 +112,6 @@ export type StackSettings = {
124
112
  updates?: UpdatesMode | undefined;
125
113
  };
126
114
 
127
- /** @internal */
128
- export const ExternalBindings$inboundSchema: z.ZodType<
129
- ExternalBindings,
130
- unknown
131
- > = z.object({});
132
- /** @internal */
133
- export type ExternalBindings$Outbound = {};
134
-
135
- /** @internal */
136
- export const ExternalBindings$outboundSchema: z.ZodType<
137
- ExternalBindings$Outbound,
138
- ExternalBindings
139
- > = z.object({});
140
-
141
- export function externalBindingsToJSON(
142
- externalBindings: ExternalBindings,
143
- ): string {
144
- return JSON.stringify(
145
- ExternalBindings$outboundSchema.parse(externalBindings),
146
- );
147
- }
148
- export function externalBindingsFromJSON(
149
- jsonString: string,
150
- ): SafeParseResult<ExternalBindings, SDKValidationError> {
151
- return safeParse(
152
- jsonString,
153
- (x) => ExternalBindings$inboundSchema.parse(JSON.parse(x)),
154
- `Failed to parse 'ExternalBindings' from JSON`,
155
- );
156
- }
157
-
158
115
  /** @internal */
159
116
  export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
160
117
  .object({
@@ -162,8 +119,9 @@ export const StackSettings$inboundSchema: z.ZodType<StackSettings, unknown> = z
162
119
  deploymentModel: DeploymentModel$inboundSchema.optional(),
163
120
  domains: z.nullable(DomainSettings$inboundSchema).optional(),
164
121
  endpointAccess: EndpointAccess$inboundSchema.optional(),
165
- externalBindings: z.nullable(z.lazy(() => ExternalBindings$inboundSchema))
166
- .optional(),
122
+ externalBindings: z.nullable(
123
+ z.record(z.string(), ExternalBindingUnion$inboundSchema),
124
+ ).optional(),
167
125
  heartbeats: HeartbeatsMode$inboundSchema.optional(),
168
126
  kubernetes: z.nullable(KubernetesSettings$inboundSchema).optional(),
169
127
  network: z.nullable(NetworkSettings$inboundSchema).optional(),
@@ -179,7 +137,10 @@ export type StackSettings$Outbound = {
179
137
  deploymentModel?: string | undefined;
180
138
  domains?: DomainSettings$Outbound | null | undefined;
181
139
  endpointAccess?: string | undefined;
182
- externalBindings?: ExternalBindings$Outbound | null | undefined;
140
+ externalBindings?:
141
+ | { [k: string]: ExternalBindingUnion$Outbound }
142
+ | null
143
+ | undefined;
183
144
  heartbeats?: string | undefined;
184
145
  kubernetes?: KubernetesSettings$Outbound | null | undefined;
185
146
  network?: NetworkSettings$Outbound | null | undefined;
@@ -197,8 +158,9 @@ export const StackSettings$outboundSchema: z.ZodType<
197
158
  deploymentModel: DeploymentModel$outboundSchema.optional(),
198
159
  domains: z.nullable(DomainSettings$outboundSchema).optional(),
199
160
  endpointAccess: EndpointAccess$outboundSchema.optional(),
200
- externalBindings: z.nullable(z.lazy(() => ExternalBindings$outboundSchema))
201
- .optional(),
161
+ externalBindings: z.nullable(
162
+ z.record(z.string(), ExternalBindingUnion$outboundSchema),
163
+ ).optional(),
202
164
  heartbeats: HeartbeatsMode$outboundSchema.optional(),
203
165
  kubernetes: z.nullable(KubernetesSettings$outboundSchema).optional(),
204
166
  network: z.nullable(NetworkSettings$outboundSchema).optional(),