@alienplatform/manager-api 3.3.31 → 3.3.33

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 (169) hide show
  1. package/README.md +2 -5
  2. package/esm/funcs/{credentialsMintCredentials.d.ts → deploymentsSetQuotaWarningOverrides.d.ts} +5 -2
  3. package/esm/funcs/deploymentsSetQuotaWarningOverrides.d.ts.map +1 -0
  4. package/esm/funcs/{credentialsMintCredentials.js → deploymentsSetQuotaWarningOverrides.js} +30 -14
  5. package/esm/funcs/deploymentsSetQuotaWarningOverrides.js.map +1 -0
  6. package/esm/lib/config.d.ts +2 -2
  7. package/esm/lib/config.js +2 -2
  8. package/esm/models/agentsyncrequest.d.ts +3 -0
  9. package/esm/models/agentsyncrequest.d.ts.map +1 -1
  10. package/esm/models/agentsyncrequest.js +2 -0
  11. package/esm/models/agentsyncrequest.js.map +1 -1
  12. package/esm/models/computesettings.d.ts +10 -0
  13. package/esm/models/computesettings.d.ts.map +1 -1
  14. package/esm/models/computesettings.js +5 -0
  15. package/esm/models/computesettings.js.map +1 -1
  16. package/esm/models/containerresourceselection.d.ts +36 -0
  17. package/esm/models/containerresourceselection.d.ts.map +1 -0
  18. package/esm/models/containerresourceselection.js +24 -0
  19. package/esm/models/containerresourceselection.js.map +1 -0
  20. package/esm/models/custompluginoperationsconfig.d.ts +46 -0
  21. package/esm/models/custompluginoperationsconfig.d.ts.map +1 -0
  22. package/esm/models/custompluginoperationsconfig.js +19 -0
  23. package/esm/models/custompluginoperationsconfig.js.map +1 -0
  24. package/esm/models/index.d.ts +9 -12
  25. package/esm/models/index.d.ts.map +1 -1
  26. package/esm/models/index.js +9 -12
  27. package/esm/models/index.js.map +1 -1
  28. package/esm/models/operationapprovaldecision.d.ts +16 -0
  29. package/esm/models/operationapprovaldecision.d.ts.map +1 -0
  30. package/esm/models/operationapprovaldecision.js +14 -0
  31. package/esm/models/operationapprovaldecision.js.map +1 -0
  32. package/esm/models/operationapprovalunion.d.ts +36 -0
  33. package/esm/models/operationapprovalunion.d.ts.map +1 -0
  34. package/esm/models/operationapprovalunion.js +22 -0
  35. package/esm/models/operationapprovalunion.js.map +1 -0
  36. package/esm/models/operations/index.d.ts +1 -0
  37. package/esm/models/operations/index.d.ts.map +1 -1
  38. package/esm/models/operations/index.js +1 -0
  39. package/esm/models/operations/index.js.map +1 -1
  40. package/esm/models/operations/setquotawarningoverrides.d.ts +18 -0
  41. package/esm/models/operations/setquotawarningoverrides.d.ts.map +1 -0
  42. package/esm/models/operations/setquotawarningoverrides.js +19 -0
  43. package/esm/models/operations/setquotawarningoverrides.js.map +1 -0
  44. package/esm/models/operationsbundledownload.d.ts +9 -0
  45. package/esm/models/operationsbundledownload.d.ts.map +1 -1
  46. package/esm/models/operationsbundledownload.js +1 -0
  47. package/esm/models/operationsbundledownload.js.map +1 -1
  48. package/esm/models/operationsconfig.d.ts +29 -0
  49. package/esm/models/operationsconfig.d.ts.map +1 -0
  50. package/esm/models/operationsconfig.js +16 -0
  51. package/esm/models/operationsconfig.js.map +1 -0
  52. package/esm/models/operationsettingvalueunion.d.ts +62 -0
  53. package/esm/models/operationsettingvalueunion.d.ts.map +1 -0
  54. package/esm/models/operationsettingvalueunion.js +36 -0
  55. package/esm/models/operationsettingvalueunion.js.map +1 -0
  56. package/esm/models/pluginoperationsconfig.d.ts +36 -0
  57. package/esm/models/pluginoperationsconfig.d.ts.map +1 -0
  58. package/esm/models/pluginoperationsconfig.js +17 -0
  59. package/esm/models/pluginoperationsconfig.js.map +1 -0
  60. package/esm/models/setquotawarningoverridesrequest.d.ts +15 -0
  61. package/esm/models/setquotawarningoverridesrequest.d.ts.map +1 -0
  62. package/esm/models/setquotawarningoverridesrequest.js +12 -0
  63. package/esm/models/setquotawarningoverridesrequest.js.map +1 -0
  64. package/esm/models/setupmanagement.d.ts +18 -0
  65. package/esm/models/setupmanagement.d.ts.map +1 -0
  66. package/esm/models/setupmanagement.js +16 -0
  67. package/esm/models/setupmanagement.js.map +1 -0
  68. package/esm/models/stacksettings.d.ts +15 -0
  69. package/esm/models/stacksettings.d.ts.map +1 -1
  70. package/esm/models/stacksettings.js +5 -0
  71. package/esm/models/stacksettings.js.map +1 -1
  72. package/esm/sdk/deployments.d.ts +4 -0
  73. package/esm/sdk/deployments.d.ts.map +1 -1
  74. package/esm/sdk/deployments.js +7 -0
  75. package/esm/sdk/deployments.js.map +1 -1
  76. package/esm/sdk/sdk.d.ts +0 -3
  77. package/esm/sdk/sdk.d.ts.map +1 -1
  78. package/esm/sdk/sdk.js +0 -4
  79. package/esm/sdk/sdk.js.map +1 -1
  80. package/examples/package-lock.json +1 -1
  81. package/jsr.json +1 -1
  82. package/package.json +1 -1
  83. package/src/funcs/{credentialsMintCredentials.ts → deploymentsSetQuotaWarningOverrides.ts} +43 -18
  84. package/src/lib/config.ts +2 -2
  85. package/src/models/agentsyncrequest.ts +8 -0
  86. package/src/models/computesettings.ts +15 -0
  87. package/src/models/containerresourceselection.ts +72 -0
  88. package/src/models/custompluginoperationsconfig.ts +71 -0
  89. package/src/models/index.ts +9 -12
  90. package/src/models/operationapprovaldecision.ts +25 -0
  91. package/src/models/operationapprovalunion.ts +78 -0
  92. package/src/models/operations/index.ts +1 -0
  93. package/src/models/operations/setquotawarningoverrides.ts +46 -0
  94. package/src/models/operationsbundledownload.ts +8 -0
  95. package/src/models/operationsconfig.ts +53 -0
  96. package/src/models/operationsettingvalueunion.ts +136 -0
  97. package/src/models/pluginoperationsconfig.ts +57 -0
  98. package/src/models/setquotawarningoverridesrequest.ts +35 -0
  99. package/src/models/setupmanagement.ts +25 -0
  100. package/src/models/stacksettings.ts +23 -0
  101. package/src/sdk/deployments.ts +17 -0
  102. package/src/sdk/sdk.ts +0 -6
  103. package/esm/funcs/credentialsMintCredentials.d.ts.map +0 -1
  104. package/esm/funcs/credentialsMintCredentials.js.map +0 -1
  105. package/esm/models/awscredentials.d.ts +0 -121
  106. package/esm/models/awscredentials.d.ts.map +0 -1
  107. package/esm/models/awscredentials.js +0 -93
  108. package/esm/models/awscredentials.js.map +0 -1
  109. package/esm/models/awsserviceoverrides.d.ts +0 -21
  110. package/esm/models/awsserviceoverrides.d.ts.map +0 -1
  111. package/esm/models/awsserviceoverrides.js +0 -13
  112. package/esm/models/awsserviceoverrides.js.map +0 -1
  113. package/esm/models/awswebidentityconfig.d.ts +0 -28
  114. package/esm/models/awswebidentityconfig.d.ts.map +0 -1
  115. package/esm/models/awswebidentityconfig.js +0 -16
  116. package/esm/models/awswebidentityconfig.js.map +0 -1
  117. package/esm/models/azurecredentials.d.ts +0 -132
  118. package/esm/models/azurecredentials.d.ts.map +0 -1
  119. package/esm/models/azurecredentials.js +0 -97
  120. package/esm/models/azurecredentials.js.map +0 -1
  121. package/esm/models/azureserviceoverrides.d.ts +0 -21
  122. package/esm/models/azureserviceoverrides.d.ts.map +0 -1
  123. package/esm/models/azureserviceoverrides.js +0 -13
  124. package/esm/models/azureserviceoverrides.js.map +0 -1
  125. package/esm/models/clientconfigunion.d.ts +0 -284
  126. package/esm/models/clientconfigunion.d.ts.map +0 -1
  127. package/esm/models/clientconfigunion.js +0 -201
  128. package/esm/models/clientconfigunion.js.map +0 -1
  129. package/esm/models/gcpcredentials.d.ts +0 -138
  130. package/esm/models/gcpcredentials.d.ts.map +0 -1
  131. package/esm/models/gcpcredentials.js +0 -107
  132. package/esm/models/gcpcredentials.js.map +0 -1
  133. package/esm/models/gcpimpersonationconfig.d.ts +0 -42
  134. package/esm/models/gcpimpersonationconfig.d.ts.map +0 -1
  135. package/esm/models/gcpimpersonationconfig.js +0 -18
  136. package/esm/models/gcpimpersonationconfig.js.map +0 -1
  137. package/esm/models/gcpserviceoverrides.d.ts +0 -21
  138. package/esm/models/gcpserviceoverrides.d.ts.map +0 -1
  139. package/esm/models/gcpserviceoverrides.js +0 -13
  140. package/esm/models/gcpserviceoverrides.js.map +0 -1
  141. package/esm/models/kubernetesclientconfig.d.ts +0 -116
  142. package/esm/models/kubernetesclientconfig.d.ts.map +0 -1
  143. package/esm/models/kubernetesclientconfig.js +0 -73
  144. package/esm/models/kubernetesclientconfig.js.map +0 -1
  145. package/esm/models/mintcredentialsrequest.d.ts +0 -49
  146. package/esm/models/mintcredentialsrequest.d.ts.map +0 -1
  147. package/esm/models/mintcredentialsrequest.js +0 -15
  148. package/esm/models/mintcredentialsrequest.js.map +0 -1
  149. package/esm/models/mintcredentialsresponse.d.ts +0 -37
  150. package/esm/models/mintcredentialsresponse.d.ts.map +0 -1
  151. package/esm/models/mintcredentialsresponse.js +0 -16
  152. package/esm/models/mintcredentialsresponse.js.map +0 -1
  153. package/esm/sdk/credentials.d.ts +0 -6
  154. package/esm/sdk/credentials.d.ts.map +0 -1
  155. package/esm/sdk/credentials.js +0 -12
  156. package/esm/sdk/credentials.js.map +0 -1
  157. package/src/models/awscredentials.ts +0 -281
  158. package/src/models/awsserviceoverrides.ts +0 -39
  159. package/src/models/awswebidentityconfig.ts +0 -51
  160. package/src/models/azurecredentials.ts +0 -295
  161. package/src/models/azureserviceoverrides.ts +0 -39
  162. package/src/models/clientconfigunion.ts +0 -602
  163. package/src/models/gcpcredentials.ts +0 -335
  164. package/src/models/gcpimpersonationconfig.ts +0 -67
  165. package/src/models/gcpserviceoverrides.ts +0 -39
  166. package/src/models/kubernetesclientconfig.ts +0 -220
  167. package/src/models/mintcredentialsrequest.ts +0 -70
  168. package/src/models/mintcredentialsresponse.ts +0 -62
  169. package/src/sdk/credentials.ts +0 -21
@@ -0,0 +1,71 @@
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
+ * A published custom plugin at an exact version.
19
+ */
20
+ export type CustomPluginOperationsConfig = {
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
+ * Plugin name as published.
34
+ */
35
+ name: string;
36
+ /**
37
+ * Exact published version.
38
+ */
39
+ version: string;
40
+ };
41
+
42
+ /** @internal */
43
+ export type CustomPluginOperationsConfig$Outbound = {
44
+ approval?: { [k: string]: OperationApprovalUnion$Outbound } | undefined;
45
+ settings?: { [k: string]: OperationSettingValueUnion$Outbound } | undefined;
46
+ name: string;
47
+ version: string;
48
+ };
49
+
50
+ /** @internal */
51
+ export const CustomPluginOperationsConfig$outboundSchema: z.ZodType<
52
+ CustomPluginOperationsConfig$Outbound,
53
+ CustomPluginOperationsConfig
54
+ > = z.object({
55
+ approval: z.record(z.string(), OperationApprovalUnion$outboundSchema)
56
+ .optional(),
57
+ settings: z.record(z.string(), OperationSettingValueUnion$outboundSchema)
58
+ .optional(),
59
+ name: z.string(),
60
+ version: z.string(),
61
+ });
62
+
63
+ export function customPluginOperationsConfigToJSON(
64
+ customPluginOperationsConfig: CustomPluginOperationsConfig,
65
+ ): string {
66
+ return JSON.stringify(
67
+ CustomPluginOperationsConfig$outboundSchema.parse(
68
+ customPluginOperationsConfig,
69
+ ),
70
+ );
71
+ }
@@ -18,23 +18,18 @@ export * from "./aimodelavailabilityobservation.js";
18
18
  export * from "./alienerror.js";
19
19
  export * from "./artifactregistryheartbeatdata.js";
20
20
  export * from "./artifactregistryheartbeatstatus.js";
21
- export * from "./awscredentials.js";
22
21
  export * from "./awscustomcertificateconfig.js";
23
22
  export * from "./awsdynamodbkeyschemaelement.js";
24
23
  export * from "./awsecrrepositoryheartbeatdata.js";
25
24
  export * from "./awskmskeyheartbeatdata.js";
26
- export * from "./awsserviceoverrides.js";
27
- export * from "./awswebidentityconfig.js";
28
25
  export * from "./azurecontainerappsenvironmentheartbeatdata.js";
29
26
  export * from "./azurecontainerappsenvironmentheartbeatstatus.js";
30
27
  export * from "./azurecontainerappsenvironmentworkloadprofile.js";
31
- export * from "./azurecredentials.js";
32
28
  export * from "./azurecustomcertificateconfig.js";
33
29
  export * from "./azurekeyvaultkeyheartbeatdata.js";
34
30
  export * from "./azureresourcegroupheartbeatdata.js";
35
31
  export * from "./azureresourcegroupheartbeatstatus.js";
36
32
  export * from "./azureservicebusnamespaceheartbeatdata.js";
37
- export * from "./azureserviceoverrides.js";
38
33
  export * from "./azurestorageaccountendpoints.js";
39
34
  export * from "./azurestorageaccountheartbeatdata.js";
40
35
  export * from "./baseresource.js";
@@ -52,7 +47,6 @@ export * from "./bundlesignatureresponse.js";
52
47
  export * from "./bundlesource.js";
53
48
  export * from "./bundlesources.js";
54
49
  export * from "./clientapi.js";
55
- export * from "./clientconfigunion.js";
56
50
  export * from "./commandpayloadresponse.js";
57
51
  export * from "./commandresponse.js";
58
52
  export * from "./commandsinfo.js";
@@ -73,6 +67,7 @@ export * from "./computepoolselection.js";
73
67
  export * from "./computesettings.js";
74
68
  export * from "./containerheartbeatdata.js";
75
69
  export * from "./containerimageidentity.js";
70
+ export * from "./containerresourceselection.js";
76
71
  export * from "./creatabletokentype.js";
77
72
  export * from "./createcommandrequest.js";
78
73
  export * from "./createcommandresponse.js";
@@ -86,6 +81,7 @@ export * from "./createtokenrequest.js";
86
81
  export * from "./createtokenresponse.js";
87
82
  export * from "./customcertificateconfig.js";
88
83
  export * from "./customdomainconfig.js";
84
+ export * from "./custompluginoperationsconfig.js";
89
85
  export * from "./daemonheartbeatdata.js";
90
86
  export * from "./deletedeploymentaction.js";
91
87
  export * from "./deletedeploymentrequest.js";
@@ -111,10 +107,7 @@ export * from "./externalbindingunion.js";
111
107
  export * from "./externalpostgressslmode.js";
112
108
  export * from "./failuredomainselection.js";
113
109
  export * from "./gcpcloudkmskeyheartbeatdata.js";
114
- export * from "./gcpcredentials.js";
115
110
  export * from "./gcpcustomcertificateconfig.js";
116
- export * from "./gcpimpersonationconfig.js";
117
- export * from "./gcpserviceoverrides.js";
118
111
  export * from "./getsecretresponse.js";
119
112
  export * from "./gitmetadata.js";
120
113
  export * from "./gitmetadataresponse.js";
@@ -133,7 +126,6 @@ export * from "./initializeresponse.js";
133
126
  export * from "./keyheartbeatdata.js";
134
127
  export * from "./keyheartbeatstatus.js";
135
128
  export * from "./kubernetescertificatemode.js";
136
- export * from "./kubernetesclientconfig.js";
137
129
  export * from "./kubernetescloudreference.js";
138
130
  export * from "./kubernetesclusterheartbeatdata.js";
139
131
  export * from "./kubernetesclusternodestatus.js";
@@ -182,8 +174,6 @@ export * from "./managercapabilities.js";
182
174
  export * from "./managerinforesponse.js";
183
175
  export * from "./metricsample.js";
184
176
  export * from "./metricunit.js";
185
- export * from "./mintcredentialsrequest.js";
186
- export * from "./mintcredentialsresponse.js";
187
177
  export * from "./networkheartbeatdata.js";
188
178
  export * from "./networkheartbeatstatus.js";
189
179
  export * from "./networksettings.js";
@@ -194,13 +184,18 @@ export * from "./observedcounts.js";
194
184
  export * from "./observedhealth.js";
195
185
  export * from "./observedinventorybatch.js";
196
186
  export * from "./observedresourcesample.js";
187
+ export * from "./operationapprovaldecision.js";
188
+ export * from "./operationapprovalunion.js";
197
189
  export * from "./operationsbundledownload.js";
190
+ export * from "./operationsconfig.js";
191
+ export * from "./operationsettingvalueunion.js";
198
192
  export * from "./operationsreport.js";
199
193
  export * from "./operatorcapabilityreport.js";
200
194
  export * from "./operatorcapabilitystate.js";
201
195
  export * from "./operatorimagereport.js";
202
196
  export * from "./operatorimagesource.js";
203
197
  export * from "./platformenum.js";
198
+ export * from "./pluginoperationsconfig.js";
204
199
  export * from "./postgresheartbeatdata.js";
205
200
  export * from "./postgresheartbeatstatus.js";
206
201
  export * from "./presignedoperation.js";
@@ -272,7 +267,9 @@ export * from "./serviceactivationheartbeatdata.js";
272
267
  export * from "./serviceactivationheartbeatstatus.js";
273
268
  export * from "./setdeploymentchannelrequest.js";
274
269
  export * from "./setdeploymentpinrequest.js";
270
+ export * from "./setquotawarningoverridesrequest.js";
275
271
  export * from "./setsecretrequest.js";
272
+ export * from "./setupmanagement.js";
276
273
  export * from "./sourcecredentials.js";
277
274
  export * from "./stackbyplatform.js";
278
275
  export * from "./stackimportrequest.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
+ }
@@ -26,6 +26,7 @@ export * from "./releaselease.js";
26
26
  export * from "./retrydeployment.js";
27
27
  export * from "./setdeploymentchannel.js";
28
28
  export * from "./setdeploymentpin.js";
29
+ export * from "./setquotawarningoverrides.js";
29
30
  export * from "./setsecret.js";
30
31
  export * from "./signdeploymentbundle.js";
31
32
  export * from "./storecommandpayload.js";
@@ -0,0 +1,46 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import * as models from "../index.js";
8
+
9
+ export type SetQuotaWarningOverridesRequest = {
10
+ /**
11
+ * Deployment ID
12
+ */
13
+ id: string;
14
+ setQuotaWarningOverridesRequest: models.SetQuotaWarningOverridesRequest;
15
+ };
16
+
17
+ /** @internal */
18
+ export type SetQuotaWarningOverridesRequest$Outbound = {
19
+ id: string;
20
+ SetQuotaWarningOverridesRequest:
21
+ models.SetQuotaWarningOverridesRequest$Outbound;
22
+ };
23
+
24
+ /** @internal */
25
+ export const SetQuotaWarningOverridesRequest$outboundSchema: z.ZodType<
26
+ SetQuotaWarningOverridesRequest$Outbound,
27
+ SetQuotaWarningOverridesRequest
28
+ > = z.object({
29
+ id: z.string(),
30
+ setQuotaWarningOverridesRequest:
31
+ models.SetQuotaWarningOverridesRequest$outboundSchema,
32
+ }).transform((v) => {
33
+ return remap$(v, {
34
+ setQuotaWarningOverridesRequest: "SetQuotaWarningOverridesRequest",
35
+ });
36
+ });
37
+
38
+ export function setQuotaWarningOverridesRequestToJSON(
39
+ setQuotaWarningOverridesRequest: SetQuotaWarningOverridesRequest,
40
+ ): string {
41
+ return JSON.stringify(
42
+ SetQuotaWarningOverridesRequest$outboundSchema.parse(
43
+ setQuotaWarningOverridesRequest,
44
+ ),
45
+ );
46
+ }
@@ -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,35 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+
7
+ /**
8
+ * Replace the saved quota warning overrides. An empty list explicitly clears them.
9
+ */
10
+ export type SetQuotaWarningOverridesRequest = {
11
+ quotaWarningOverrides: Array<string>;
12
+ };
13
+
14
+ /** @internal */
15
+ export type SetQuotaWarningOverridesRequest$Outbound = {
16
+ quotaWarningOverrides: Array<string>;
17
+ };
18
+
19
+ /** @internal */
20
+ export const SetQuotaWarningOverridesRequest$outboundSchema: z.ZodType<
21
+ SetQuotaWarningOverridesRequest$Outbound,
22
+ SetQuotaWarningOverridesRequest
23
+ > = z.object({
24
+ quotaWarningOverrides: z.array(z.string()),
25
+ });
26
+
27
+ export function setQuotaWarningOverridesRequestToJSON(
28
+ setQuotaWarningOverridesRequest: SetQuotaWarningOverridesRequest,
29
+ ): string {
30
+ return JSON.stringify(
31
+ SetQuotaWarningOverridesRequest$outboundSchema.parse(
32
+ setQuotaWarningOverridesRequest,
33
+ ),
34
+ );
35
+ }
@@ -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 setup remains a separate administrator operation.
10
+ */
11
+ export const SetupManagement = {
12
+ Manual: "manual",
13
+ Automatic: "automatic",
14
+ } as const;
15
+ /**
16
+ * Whether setup remains a separate administrator operation.
17
+ */
18
+ export type SetupManagement = ClosedEnum<typeof SetupManagement>;
19
+
20
+ /** @internal */
21
+ export const SetupManagement$inboundSchema: z.ZodEnum<typeof SetupManagement> =
22
+ z.enum(SetupManagement);
23
+ /** @internal */
24
+ export const SetupManagement$outboundSchema: z.ZodEnum<typeof SetupManagement> =
25
+ SetupManagement$inboundSchema;