@alienplatform/platform-api 3.3.19 → 3.3.21

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 (184) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/README.md +4 -0
  3. package/esm/funcs/deploymentGetInfo.js +4 -2
  4. package/esm/funcs/deploymentGetInfo.js.map +1 -1
  5. package/esm/funcs/deploymentPlanCompute.js +2 -2
  6. package/esm/funcs/deploymentPlanCompute.js.map +1 -1
  7. package/esm/funcs/deploymentPrepareStack.js +2 -2
  8. package/esm/funcs/deploymentPrepareStack.js.map +1 -1
  9. package/esm/funcs/deploymentsRetry.js +2 -2
  10. package/esm/funcs/deploymentsRetry.js.map +1 -1
  11. package/esm/funcs/operationsApproveAccessRequest.d.ts +15 -0
  12. package/esm/funcs/operationsApproveAccessRequest.d.ts.map +1 -0
  13. package/esm/funcs/operationsApproveAccessRequest.js +89 -0
  14. package/esm/funcs/operationsApproveAccessRequest.js.map +1 -0
  15. package/esm/funcs/operationsDenyAccessRequest.d.ts +15 -0
  16. package/esm/funcs/operationsDenyAccessRequest.d.ts.map +1 -0
  17. package/esm/funcs/operationsDenyAccessRequest.js +89 -0
  18. package/esm/funcs/operationsDenyAccessRequest.js.map +1 -0
  19. package/esm/lib/config.d.ts +2 -2
  20. package/esm/lib/config.js +2 -2
  21. package/esm/lib/config.js.map +1 -1
  22. package/esm/models/createmanagerresponse.d.ts +0 -63
  23. package/esm/models/createmanagerresponse.d.ts.map +1 -1
  24. package/esm/models/createmanagerresponse.js +0 -39
  25. package/esm/models/createmanagerresponse.js.map +1 -1
  26. package/esm/models/createsetuplinkresponse.d.ts +4 -0
  27. package/esm/models/createsetuplinkresponse.d.ts.map +1 -1
  28. package/esm/models/createsetuplinkresponse.js +1 -0
  29. package/esm/models/createsetuplinkresponse.js.map +1 -1
  30. package/esm/models/createsetupregistrationoperationrequest.d.ts +0 -28
  31. package/esm/models/createsetupregistrationoperationrequest.d.ts.map +1 -1
  32. package/esm/models/createsetupregistrationoperationrequest.js +0 -19
  33. package/esm/models/createsetupregistrationoperationrequest.js.map +1 -1
  34. package/esm/models/deployment.d.ts +0 -21
  35. package/esm/models/deployment.d.ts.map +1 -1
  36. package/esm/models/deployment.js +0 -13
  37. package/esm/models/deployment.js.map +1 -1
  38. package/esm/models/deploymentcomputeplan.d.ts +148 -10
  39. package/esm/models/deploymentcomputeplan.d.ts.map +1 -1
  40. package/esm/models/deploymentcomputeplan.js +83 -10
  41. package/esm/models/deploymentcomputeplan.js.map +1 -1
  42. package/esm/models/deploymentdetailresponse.d.ts +0 -21
  43. package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
  44. package/esm/models/deploymentdetailresponse.js +0 -19
  45. package/esm/models/deploymentdetailresponse.js.map +1 -1
  46. package/esm/models/deploymentinfo.d.ts +1276 -8
  47. package/esm/models/deploymentinfo.d.ts.map +1 -1
  48. package/esm/models/deploymentinfo.js +987 -7
  49. package/esm/models/deploymentinfo.js.map +1 -1
  50. package/esm/models/deploymentsetupstacksettingspolicy.d.ts +0 -34
  51. package/esm/models/deploymentsetupstacksettingspolicy.d.ts.map +1 -1
  52. package/esm/models/deploymentsetupstacksettingspolicy.js +0 -38
  53. package/esm/models/deploymentsetupstacksettingspolicy.js.map +1 -1
  54. package/esm/models/deploymentupdateoperationstatus.d.ts +1 -0
  55. package/esm/models/deploymentupdateoperationstatus.d.ts.map +1 -1
  56. package/esm/models/deploymentupdateoperationstatus.js +1 -0
  57. package/esm/models/deploymentupdateoperationstatus.js.map +1 -1
  58. package/esm/models/deploymentupdateoperationsummary.d.ts +4 -0
  59. package/esm/models/deploymentupdateoperationsummary.d.ts.map +1 -1
  60. package/esm/models/deploymentupdateoperationsummary.js +1 -0
  61. package/esm/models/deploymentupdateoperationsummary.js.map +1 -1
  62. package/esm/models/importsource.d.ts +0 -28
  63. package/esm/models/importsource.d.ts.map +1 -1
  64. package/esm/models/importsource.js +0 -13
  65. package/esm/models/importsource.js.map +1 -1
  66. package/esm/models/managerretryresponse.d.ts +0 -63
  67. package/esm/models/managerretryresponse.d.ts.map +1 -1
  68. package/esm/models/managerretryresponse.js +0 -39
  69. package/esm/models/managerretryresponse.js.map +1 -1
  70. package/esm/models/newdeploymentrequest.d.ts +0 -28
  71. package/esm/models/newdeploymentrequest.d.ts.map +1 -1
  72. package/esm/models/newdeploymentrequest.js +0 -13
  73. package/esm/models/newdeploymentrequest.js.map +1 -1
  74. package/esm/models/operations/approveaccessrequest.d.ts +115 -0
  75. package/esm/models/operations/approveaccessrequest.d.ts.map +1 -0
  76. package/esm/models/operations/approveaccessrequest.js +89 -0
  77. package/esm/models/operations/approveaccessrequest.js.map +1 -0
  78. package/esm/models/operations/denyaccessrequest.d.ts +112 -0
  79. package/esm/models/operations/denyaccessrequest.d.ts.map +1 -0
  80. package/esm/models/operations/denyaccessrequest.js +87 -0
  81. package/esm/models/operations/denyaccessrequest.js.map +1 -0
  82. package/esm/models/operations/getdeploymentinfo.d.ts +4 -0
  83. package/esm/models/operations/getdeploymentinfo.d.ts.map +1 -1
  84. package/esm/models/operations/getdeploymentinfo.js +2 -0
  85. package/esm/models/operations/getdeploymentinfo.js.map +1 -1
  86. package/esm/models/operations/getresourcedeploymentdetail.d.ts +107 -21
  87. package/esm/models/operations/getresourcedeploymentdetail.d.ts.map +1 -1
  88. package/esm/models/operations/getresourcedeploymentdetail.js +86 -13
  89. package/esm/models/operations/getresourcedeploymentdetail.js.map +1 -1
  90. package/esm/models/operations/index.d.ts +2 -0
  91. package/esm/models/operations/index.d.ts.map +1 -1
  92. package/esm/models/operations/index.js +2 -0
  93. package/esm/models/operations/index.js.map +1 -1
  94. package/esm/models/operations/plandeploymentcompute.d.ts +140 -40
  95. package/esm/models/operations/plandeploymentcompute.d.ts.map +1 -1
  96. package/esm/models/operations/plandeploymentcompute.js +67 -19
  97. package/esm/models/operations/plandeploymentcompute.js.map +1 -1
  98. package/esm/models/operations/preparedeploymentstack.d.ts +145 -40
  99. package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
  100. package/esm/models/operations/preparedeploymentstack.js +68 -20
  101. package/esm/models/operations/preparedeploymentstack.js.map +1 -1
  102. package/esm/models/operationspluginoperation.d.ts +4 -0
  103. package/esm/models/operationspluginoperation.d.ts.map +1 -1
  104. package/esm/models/operationspluginoperation.js +1 -0
  105. package/esm/models/operationspluginoperation.js.map +1 -1
  106. package/esm/models/package.d.ts +9 -3
  107. package/esm/models/package.d.ts.map +1 -1
  108. package/esm/models/package.js.map +1 -1
  109. package/esm/models/persistimporteddeploymentrequest.d.ts +0 -28
  110. package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
  111. package/esm/models/persistimporteddeploymentrequest.js +0 -19
  112. package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
  113. package/esm/models/prepareddeploymentstack.d.ts +1 -0
  114. package/esm/models/prepareddeploymentstack.d.ts.map +1 -1
  115. package/esm/models/prepareddeploymentstack.js +1 -0
  116. package/esm/models/prepareddeploymentstack.js.map +1 -1
  117. package/esm/models/syncacquirerequest.d.ts +5 -0
  118. package/esm/models/syncacquirerequest.d.ts.map +1 -1
  119. package/esm/models/syncacquirerequest.js +1 -0
  120. package/esm/models/syncacquirerequest.js.map +1 -1
  121. package/esm/models/syncacquireresponsedeployment.d.ts +8 -0
  122. package/esm/models/syncacquireresponsedeployment.d.ts.map +1 -1
  123. package/esm/models/syncacquireresponsedeployment.js +2 -0
  124. package/esm/models/syncacquireresponsedeployment.js.map +1 -1
  125. package/esm/models/synclistresponse.d.ts +0 -21
  126. package/esm/models/synclistresponse.d.ts.map +1 -1
  127. package/esm/models/synclistresponse.js +0 -13
  128. package/esm/models/synclistresponse.js.map +1 -1
  129. package/esm/models/syncreconcilerequest.d.ts +150 -31
  130. package/esm/models/syncreconcilerequest.d.ts.map +1 -1
  131. package/esm/models/syncreconcilerequest.js +86 -12
  132. package/esm/models/syncreconcilerequest.js.map +1 -1
  133. package/esm/models/syncreleaserequest.d.ts +10 -0
  134. package/esm/models/syncreleaserequest.d.ts.map +1 -1
  135. package/esm/models/syncreleaserequest.js +2 -0
  136. package/esm/models/syncreleaserequest.js.map +1 -1
  137. package/esm/models/syncrenewrequest.d.ts +28 -0
  138. package/esm/models/syncrenewrequest.d.ts.map +1 -1
  139. package/esm/models/syncrenewrequest.js +10 -0
  140. package/esm/models/syncrenewrequest.js.map +1 -1
  141. package/esm/sdk/operations.d.ts +8 -0
  142. package/esm/sdk/operations.d.ts.map +1 -1
  143. package/esm/sdk/operations.js +14 -0
  144. package/esm/sdk/operations.js.map +1 -1
  145. package/jsr.json +1 -1
  146. package/package.json +1 -1
  147. package/src/funcs/deploymentGetInfo.ts +4 -2
  148. package/src/funcs/deploymentPlanCompute.ts +2 -2
  149. package/src/funcs/deploymentPrepareStack.ts +2 -2
  150. package/src/funcs/deploymentsRetry.ts +2 -2
  151. package/src/funcs/operationsApproveAccessRequest.ts +179 -0
  152. package/src/funcs/operationsDenyAccessRequest.ts +178 -0
  153. package/src/lib/config.ts +2 -2
  154. package/src/models/createmanagerresponse.ts +0 -162
  155. package/src/models/createsetuplinkresponse.ts +7 -0
  156. package/src/models/createsetupregistrationoperationrequest.ts +0 -83
  157. package/src/models/deployment.ts +0 -52
  158. package/src/models/deploymentcomputeplan.ts +311 -20
  159. package/src/models/deploymentdetailresponse.ts +0 -62
  160. package/src/models/deploymentinfo.ts +3599 -453
  161. package/src/models/deploymentsetupstacksettingspolicy.ts +0 -124
  162. package/src/models/deploymentupdateoperationstatus.ts +1 -0
  163. package/src/models/deploymentupdateoperationsummary.ts +5 -0
  164. package/src/models/importsource.ts +0 -59
  165. package/src/models/managerretryresponse.ts +0 -162
  166. package/src/models/newdeploymentrequest.ts +0 -63
  167. package/src/models/operations/approveaccessrequest.ts +237 -0
  168. package/src/models/operations/denyaccessrequest.ts +228 -0
  169. package/src/models/operations/getdeploymentinfo.ts +6 -0
  170. package/src/models/operations/getresourcedeploymentdetail.ts +203 -36
  171. package/src/models/operations/index.ts +2 -0
  172. package/src/models/operations/plandeploymentcompute.ts +295 -81
  173. package/src/models/operations/preparedeploymentstack.ts +301 -82
  174. package/src/models/operationspluginoperation.ts +5 -0
  175. package/src/models/package.ts +9 -3
  176. package/src/models/persistimporteddeploymentrequest.ts +0 -75
  177. package/src/models/prepareddeploymentstack.ts +2 -0
  178. package/src/models/syncacquirerequest.ts +6 -0
  179. package/src/models/syncacquireresponsedeployment.ts +10 -0
  180. package/src/models/synclistresponse.ts +0 -54
  181. package/src/models/syncreconcilerequest.ts +251 -40
  182. package/src/models/syncreleaserequest.ts +12 -0
  183. package/src/models/syncrenewrequest.ts +39 -0
  184. package/src/sdk/operations.ts +30 -0
@@ -35,24 +35,106 @@ export type PrepareDeploymentStackPlatform = ClosedEnum<
35
35
  typeof PrepareDeploymentStackPlatform
36
36
  >;
37
37
 
38
+ /**
39
+ * Failure-domain policy selected for a compute pool.
40
+ */
41
+ export type PrepareDeploymentStackFailureDomains2 = {
42
+ /**
43
+ * Concrete provider domains selected during setup.
44
+ *
45
+ * @remarks
46
+ * Empty delegates deterministic selection to the provider setup implementation.
47
+ */
48
+ selectedFailureDomains?: Array<string> | undefined;
49
+ /**
50
+ * Number of distinct failure domains across which new stateful replicas may be spread.
51
+ */
52
+ spread: number;
53
+ };
54
+
55
+ export type PrepareDeploymentStackFailureDomainsUnion2 =
56
+ | PrepareDeploymentStackFailureDomains2
57
+ | any;
58
+
38
59
  export type PrepareDeploymentStackPoolsAutoscale = {
39
- mode: "autoscale";
40
- min: number;
60
+ failureDomains?:
61
+ | PrepareDeploymentStackFailureDomains2
62
+ | any
63
+ | null
64
+ | undefined;
65
+ /**
66
+ * Provider machine type selected for this deployment.
67
+ */
68
+ machine?: string | null | undefined;
69
+ /**
70
+ * Maximum machine count.
71
+ */
41
72
  max: number;
42
- machine?: string | undefined;
73
+ /**
74
+ * Minimum machine count.
75
+ */
76
+ min: number;
77
+ mode: "autoscale";
43
78
  };
44
79
 
80
+ /**
81
+ * Failure-domain policy selected for a compute pool.
82
+ */
83
+ export type PrepareDeploymentStackFailureDomains1 = {
84
+ /**
85
+ * Concrete provider domains selected during setup.
86
+ *
87
+ * @remarks
88
+ * Empty delegates deterministic selection to the provider setup implementation.
89
+ */
90
+ selectedFailureDomains?: Array<string> | undefined;
91
+ /**
92
+ * Number of distinct failure domains across which new stateful replicas may be spread.
93
+ */
94
+ spread: number;
95
+ };
96
+
97
+ export type PrepareDeploymentStackFailureDomainsUnion1 =
98
+ | PrepareDeploymentStackFailureDomains1
99
+ | any;
100
+
45
101
  export type PrepareDeploymentStackPoolsFixed = {
46
- mode: "fixed";
102
+ failureDomains?:
103
+ | PrepareDeploymentStackFailureDomains1
104
+ | any
105
+ | null
106
+ | undefined;
107
+ /**
108
+ * Provider machine type selected for this deployment.
109
+ */
110
+ machine?: string | null | undefined;
111
+ /**
112
+ * Number of machines to run.
113
+ */
47
114
  machines: number;
48
- machine?: string | undefined;
115
+ mode: "fixed";
49
116
  };
50
117
 
118
+ /**
119
+ * User-selected deployment settings for one compute pool.
120
+ */
51
121
  export type PrepareDeploymentStackPoolsUnion =
52
122
  | PrepareDeploymentStackPoolsFixed
53
123
  | PrepareDeploymentStackPoolsAutoscale;
54
124
 
125
+ /**
126
+ * Deployment-time compute choices for Alien-managed compute pools.
127
+ *
128
+ * @remarks
129
+ *
130
+ * Application source declares portable pool requirements. This settings
131
+ * object stores the concrete choices made for one deployment, such as the
132
+ * provider machine type and selected machine counts.
133
+ */
55
134
  export type PrepareDeploymentStackCompute = {
135
+ /**
136
+ * Selected compute choices keyed by pool ID.
137
+ */
56
138
  pools?: {
57
139
  [k: string]:
58
140
  | PrepareDeploymentStackPoolsFixed
@@ -60,6 +142,10 @@ export type PrepareDeploymentStackCompute = {
60
142
  } | undefined;
61
143
  };
62
144
 
145
+ export type PrepareDeploymentStackComputeUnion =
146
+ | PrepareDeploymentStackCompute
147
+ | any;
148
+
63
149
  /**
64
150
  * Deployment model: how updates are delivered to the remote environment.
65
151
  */
@@ -936,22 +1022,6 @@ export type PrepareDeploymentStackKubernetesUnion =
936
1022
  | PrepareDeploymentStackKubernetes
937
1023
  | any;
938
1024
 
939
- /**
940
- * Application log handling for a deployment.
941
- */
942
- export type PrepareDeploymentStackLogs = {
943
- /**
944
- * Normalize severity fields from supported structured application logs into
945
- *
946
- * @remarks
947
- * the OTLP severity fields. The original log body is preserved. Disabled by
948
- * default.
949
- */
950
- parseApplicationLevels?: boolean | undefined;
951
- };
952
-
953
- export type PrepareDeploymentStackLogsUnion = PrepareDeploymentStackLogs | any;
954
-
955
1025
  export const PrepareDeploymentStackTypeByoVnetAzure = {
956
1026
  ByoVnetAzure: "byo-vnet-azure",
957
1027
  } as const;
@@ -1109,8 +1179,20 @@ export type PrepareDeploymentStackUpdates = ClosedEnum<
1109
1179
  typeof PrepareDeploymentStackUpdates
1110
1180
  >;
1111
1181
 
1182
+ /**
1183
+ * User-customizable deployment settings specified at deploy time.
1184
+ *
1185
+ * @remarks
1186
+ *
1187
+ * These settings are provided by the customer via CloudFormation parameters,
1188
+ * Terraform attributes, CLI flags, or Helm values. They customize how the
1189
+ * deployment runs and what capabilities are enabled.
1190
+ *
1191
+ * **Key distinction**: StackSettings is user-customizable, while ManagementConfig
1192
+ * is platform-derived (from the Manager's ServiceAccount).
1193
+ */
1112
1194
  export type PrepareDeploymentStackStackSettings = {
1113
- compute?: PrepareDeploymentStackCompute | undefined;
1195
+ compute?: PrepareDeploymentStackCompute | any | null | undefined;
1114
1196
  /**
1115
1197
  * Deployment model: how updates are delivered to the remote environment.
1116
1198
  */
@@ -1130,7 +1212,6 @@ export type PrepareDeploymentStackStackSettings = {
1130
1212
  */
1131
1213
  heartbeats?: PrepareDeploymentStackHeartbeats | undefined;
1132
1214
  kubernetes?: PrepareDeploymentStackKubernetes | any | null | undefined;
1133
- logs?: PrepareDeploymentStackLogs | any | null | undefined;
1134
1215
  network?:
1135
1216
  | PrepareDeploymentStackNetworkByoVpcAws
1136
1217
  | PrepareDeploymentStackNetworkByoVpcGcp
@@ -1161,10 +1242,28 @@ export type PrepareDeploymentStackStackSettings = {
1161
1242
  };
1162
1243
 
1163
1244
  export type PrepareDeploymentStackRequest = {
1245
+ /**
1246
+ * Persist validated choices for the exact blocked update; does not apply cloud changes.
1247
+ */
1248
+ saveForSetup?: boolean | undefined;
1164
1249
  setupItem?: PrepareDeploymentStackSetupItem | undefined;
1250
+ deploymentId?: string | undefined;
1251
+ updateOperationId?: string | undefined;
1165
1252
  platform: PrepareDeploymentStackPlatform;
1166
1253
  setupMethod: models.DeploymentSetupMethod;
1167
1254
  region?: string | undefined;
1255
+ /**
1256
+ * User-customizable deployment settings specified at deploy time.
1257
+ *
1258
+ * @remarks
1259
+ *
1260
+ * These settings are provided by the customer via CloudFormation parameters,
1261
+ * Terraform attributes, CLI flags, or Helm values. They customize how the
1262
+ * deployment runs and what capabilities are enabled.
1263
+ *
1264
+ * **Key distinction**: StackSettings is user-customizable, while ManagementConfig
1265
+ * is platform-derived (from the Manager's ServiceAccount).
1266
+ */
1168
1267
  stackSettings: PrepareDeploymentStackStackSettings;
1169
1268
  };
1170
1269
 
@@ -1178,12 +1277,68 @@ export const PrepareDeploymentStackPlatform$outboundSchema: z.ZodEnum<
1178
1277
  typeof PrepareDeploymentStackPlatform
1179
1278
  > = z.enum(PrepareDeploymentStackPlatform);
1180
1279
 
1280
+ /** @internal */
1281
+ export type PrepareDeploymentStackFailureDomains2$Outbound = {
1282
+ selectedFailureDomains?: Array<string> | undefined;
1283
+ spread: number;
1284
+ };
1285
+
1286
+ /** @internal */
1287
+ export const PrepareDeploymentStackFailureDomains2$outboundSchema: z.ZodType<
1288
+ PrepareDeploymentStackFailureDomains2$Outbound,
1289
+ PrepareDeploymentStackFailureDomains2
1290
+ > = z.object({
1291
+ selectedFailureDomains: z.array(z.string()).optional(),
1292
+ spread: z.int(),
1293
+ });
1294
+
1295
+ export function prepareDeploymentStackFailureDomains2ToJSON(
1296
+ prepareDeploymentStackFailureDomains2: PrepareDeploymentStackFailureDomains2,
1297
+ ): string {
1298
+ return JSON.stringify(
1299
+ PrepareDeploymentStackFailureDomains2$outboundSchema.parse(
1300
+ prepareDeploymentStackFailureDomains2,
1301
+ ),
1302
+ );
1303
+ }
1304
+
1305
+ /** @internal */
1306
+ export type PrepareDeploymentStackFailureDomainsUnion2$Outbound =
1307
+ | PrepareDeploymentStackFailureDomains2$Outbound
1308
+ | any;
1309
+
1310
+ /** @internal */
1311
+ export const PrepareDeploymentStackFailureDomainsUnion2$outboundSchema:
1312
+ z.ZodType<
1313
+ PrepareDeploymentStackFailureDomainsUnion2$Outbound,
1314
+ PrepareDeploymentStackFailureDomainsUnion2
1315
+ > = z.union([
1316
+ z.lazy(() => PrepareDeploymentStackFailureDomains2$outboundSchema),
1317
+ z.any(),
1318
+ ]);
1319
+
1320
+ export function prepareDeploymentStackFailureDomainsUnion2ToJSON(
1321
+ prepareDeploymentStackFailureDomainsUnion2:
1322
+ PrepareDeploymentStackFailureDomainsUnion2,
1323
+ ): string {
1324
+ return JSON.stringify(
1325
+ PrepareDeploymentStackFailureDomainsUnion2$outboundSchema.parse(
1326
+ prepareDeploymentStackFailureDomainsUnion2,
1327
+ ),
1328
+ );
1329
+ }
1330
+
1181
1331
  /** @internal */
1182
1332
  export type PrepareDeploymentStackPoolsAutoscale$Outbound = {
1183
- mode: "autoscale";
1184
- min: number;
1333
+ failure_domains?:
1334
+ | PrepareDeploymentStackFailureDomains2$Outbound
1335
+ | any
1336
+ | null
1337
+ | undefined;
1338
+ machine?: string | null | undefined;
1185
1339
  max: number;
1186
- machine?: string | undefined;
1340
+ min: number;
1341
+ mode: "autoscale";
1187
1342
  };
1188
1343
 
1189
1344
  /** @internal */
@@ -1191,10 +1346,20 @@ export const PrepareDeploymentStackPoolsAutoscale$outboundSchema: z.ZodType<
1191
1346
  PrepareDeploymentStackPoolsAutoscale$Outbound,
1192
1347
  PrepareDeploymentStackPoolsAutoscale
1193
1348
  > = z.object({
1194
- mode: z.literal("autoscale"),
1195
- min: z.int(),
1349
+ failureDomains: z.nullable(
1350
+ z.union([
1351
+ z.lazy(() => PrepareDeploymentStackFailureDomains2$outboundSchema),
1352
+ z.any(),
1353
+ ]),
1354
+ ).optional(),
1355
+ machine: z.nullable(z.string()).optional(),
1196
1356
  max: z.int(),
1197
- machine: z.string().optional(),
1357
+ min: z.int(),
1358
+ mode: z.literal("autoscale"),
1359
+ }).transform((v) => {
1360
+ return remap$(v, {
1361
+ failureDomains: "failure_domains",
1362
+ });
1198
1363
  });
1199
1364
 
1200
1365
  export function prepareDeploymentStackPoolsAutoscaleToJSON(
@@ -1207,11 +1372,67 @@ export function prepareDeploymentStackPoolsAutoscaleToJSON(
1207
1372
  );
1208
1373
  }
1209
1374
 
1375
+ /** @internal */
1376
+ export type PrepareDeploymentStackFailureDomains1$Outbound = {
1377
+ selectedFailureDomains?: Array<string> | undefined;
1378
+ spread: number;
1379
+ };
1380
+
1381
+ /** @internal */
1382
+ export const PrepareDeploymentStackFailureDomains1$outboundSchema: z.ZodType<
1383
+ PrepareDeploymentStackFailureDomains1$Outbound,
1384
+ PrepareDeploymentStackFailureDomains1
1385
+ > = z.object({
1386
+ selectedFailureDomains: z.array(z.string()).optional(),
1387
+ spread: z.int(),
1388
+ });
1389
+
1390
+ export function prepareDeploymentStackFailureDomains1ToJSON(
1391
+ prepareDeploymentStackFailureDomains1: PrepareDeploymentStackFailureDomains1,
1392
+ ): string {
1393
+ return JSON.stringify(
1394
+ PrepareDeploymentStackFailureDomains1$outboundSchema.parse(
1395
+ prepareDeploymentStackFailureDomains1,
1396
+ ),
1397
+ );
1398
+ }
1399
+
1400
+ /** @internal */
1401
+ export type PrepareDeploymentStackFailureDomainsUnion1$Outbound =
1402
+ | PrepareDeploymentStackFailureDomains1$Outbound
1403
+ | any;
1404
+
1405
+ /** @internal */
1406
+ export const PrepareDeploymentStackFailureDomainsUnion1$outboundSchema:
1407
+ z.ZodType<
1408
+ PrepareDeploymentStackFailureDomainsUnion1$Outbound,
1409
+ PrepareDeploymentStackFailureDomainsUnion1
1410
+ > = z.union([
1411
+ z.lazy(() => PrepareDeploymentStackFailureDomains1$outboundSchema),
1412
+ z.any(),
1413
+ ]);
1414
+
1415
+ export function prepareDeploymentStackFailureDomainsUnion1ToJSON(
1416
+ prepareDeploymentStackFailureDomainsUnion1:
1417
+ PrepareDeploymentStackFailureDomainsUnion1,
1418
+ ): string {
1419
+ return JSON.stringify(
1420
+ PrepareDeploymentStackFailureDomainsUnion1$outboundSchema.parse(
1421
+ prepareDeploymentStackFailureDomainsUnion1,
1422
+ ),
1423
+ );
1424
+ }
1425
+
1210
1426
  /** @internal */
1211
1427
  export type PrepareDeploymentStackPoolsFixed$Outbound = {
1212
- mode: "fixed";
1428
+ failure_domains?:
1429
+ | PrepareDeploymentStackFailureDomains1$Outbound
1430
+ | any
1431
+ | null
1432
+ | undefined;
1433
+ machine?: string | null | undefined;
1213
1434
  machines: number;
1214
- machine?: string | undefined;
1435
+ mode: "fixed";
1215
1436
  };
1216
1437
 
1217
1438
  /** @internal */
@@ -1219,9 +1440,19 @@ export const PrepareDeploymentStackPoolsFixed$outboundSchema: z.ZodType<
1219
1440
  PrepareDeploymentStackPoolsFixed$Outbound,
1220
1441
  PrepareDeploymentStackPoolsFixed
1221
1442
  > = z.object({
1222
- mode: z.literal("fixed"),
1443
+ failureDomains: z.nullable(
1444
+ z.union([
1445
+ z.lazy(() => PrepareDeploymentStackFailureDomains1$outboundSchema),
1446
+ z.any(),
1447
+ ]),
1448
+ ).optional(),
1449
+ machine: z.nullable(z.string()).optional(),
1223
1450
  machines: z.int(),
1224
- machine: z.string().optional(),
1451
+ mode: z.literal("fixed"),
1452
+ }).transform((v) => {
1453
+ return remap$(v, {
1454
+ failureDomains: "failure_domains",
1455
+ });
1225
1456
  });
1226
1457
 
1227
1458
  export function prepareDeploymentStackPoolsFixedToJSON(
@@ -1291,6 +1522,30 @@ export function prepareDeploymentStackComputeToJSON(
1291
1522
  );
1292
1523
  }
1293
1524
 
1525
+ /** @internal */
1526
+ export type PrepareDeploymentStackComputeUnion$Outbound =
1527
+ | PrepareDeploymentStackCompute$Outbound
1528
+ | any;
1529
+
1530
+ /** @internal */
1531
+ export const PrepareDeploymentStackComputeUnion$outboundSchema: z.ZodType<
1532
+ PrepareDeploymentStackComputeUnion$Outbound,
1533
+ PrepareDeploymentStackComputeUnion
1534
+ > = z.union([
1535
+ z.lazy(() => PrepareDeploymentStackCompute$outboundSchema),
1536
+ z.any(),
1537
+ ]);
1538
+
1539
+ export function prepareDeploymentStackComputeUnionToJSON(
1540
+ prepareDeploymentStackComputeUnion: PrepareDeploymentStackComputeUnion,
1541
+ ): string {
1542
+ return JSON.stringify(
1543
+ PrepareDeploymentStackComputeUnion$outboundSchema.parse(
1544
+ prepareDeploymentStackComputeUnion,
1545
+ ),
1546
+ );
1547
+ }
1548
+
1294
1549
  /** @internal */
1295
1550
  export const PrepareDeploymentStackDeploymentModel$outboundSchema: z.ZodEnum<
1296
1551
  typeof PrepareDeploymentStackDeploymentModel
@@ -3276,48 +3531,6 @@ export function prepareDeploymentStackKubernetesUnionToJSON(
3276
3531
  );
3277
3532
  }
3278
3533
 
3279
- /** @internal */
3280
- export type PrepareDeploymentStackLogs$Outbound = {
3281
- parseApplicationLevels?: boolean | undefined;
3282
- };
3283
-
3284
- /** @internal */
3285
- export const PrepareDeploymentStackLogs$outboundSchema: z.ZodType<
3286
- PrepareDeploymentStackLogs$Outbound,
3287
- PrepareDeploymentStackLogs
3288
- > = z.object({
3289
- parseApplicationLevels: z.boolean().optional(),
3290
- });
3291
-
3292
- export function prepareDeploymentStackLogsToJSON(
3293
- prepareDeploymentStackLogs: PrepareDeploymentStackLogs,
3294
- ): string {
3295
- return JSON.stringify(
3296
- PrepareDeploymentStackLogs$outboundSchema.parse(prepareDeploymentStackLogs),
3297
- );
3298
- }
3299
-
3300
- /** @internal */
3301
- export type PrepareDeploymentStackLogsUnion$Outbound =
3302
- | PrepareDeploymentStackLogs$Outbound
3303
- | any;
3304
-
3305
- /** @internal */
3306
- export const PrepareDeploymentStackLogsUnion$outboundSchema: z.ZodType<
3307
- PrepareDeploymentStackLogsUnion$Outbound,
3308
- PrepareDeploymentStackLogsUnion
3309
- > = z.union([z.lazy(() => PrepareDeploymentStackLogs$outboundSchema), z.any()]);
3310
-
3311
- export function prepareDeploymentStackLogsUnionToJSON(
3312
- prepareDeploymentStackLogsUnion: PrepareDeploymentStackLogsUnion,
3313
- ): string {
3314
- return JSON.stringify(
3315
- PrepareDeploymentStackLogsUnion$outboundSchema.parse(
3316
- prepareDeploymentStackLogsUnion,
3317
- ),
3318
- );
3319
- }
3320
-
3321
3534
  /** @internal */
3322
3535
  export const PrepareDeploymentStackTypeByoVnetAzure$outboundSchema: z.ZodEnum<
3323
3536
  typeof PrepareDeploymentStackTypeByoVnetAzure
@@ -3559,7 +3772,7 @@ export const PrepareDeploymentStackUpdates$outboundSchema: z.ZodEnum<
3559
3772
 
3560
3773
  /** @internal */
3561
3774
  export type PrepareDeploymentStackStackSettings$Outbound = {
3562
- compute?: PrepareDeploymentStackCompute$Outbound | undefined;
3775
+ compute?: PrepareDeploymentStackCompute$Outbound | any | null | undefined;
3563
3776
  deploymentModel?: string | undefined;
3564
3777
  domains?: PrepareDeploymentStackDomains$Outbound | any | null | undefined;
3565
3778
  externalBindings?:
@@ -3572,7 +3785,6 @@ export type PrepareDeploymentStackStackSettings$Outbound = {
3572
3785
  | any
3573
3786
  | null
3574
3787
  | undefined;
3575
- logs?: PrepareDeploymentStackLogs$Outbound | any | null | undefined;
3576
3788
  network?:
3577
3789
  | PrepareDeploymentStackNetworkByoVpcAws$Outbound
3578
3790
  | PrepareDeploymentStackNetworkByoVpcGcp$Outbound
@@ -3592,8 +3804,12 @@ export const PrepareDeploymentStackStackSettings$outboundSchema: z.ZodType<
3592
3804
  PrepareDeploymentStackStackSettings$Outbound,
3593
3805
  PrepareDeploymentStackStackSettings
3594
3806
  > = z.object({
3595
- compute: z.lazy(() => PrepareDeploymentStackCompute$outboundSchema)
3596
- .optional(),
3807
+ compute: z.nullable(
3808
+ z.union([
3809
+ z.lazy(() => PrepareDeploymentStackCompute$outboundSchema),
3810
+ z.any(),
3811
+ ]),
3812
+ ).optional(),
3597
3813
  deploymentModel: PrepareDeploymentStackDeploymentModel$outboundSchema
3598
3814
  .optional(),
3599
3815
  domains: z.nullable(
@@ -3612,9 +3828,6 @@ export const PrepareDeploymentStackStackSettings$outboundSchema: z.ZodType<
3612
3828
  z.any(),
3613
3829
  ]),
3614
3830
  ).optional(),
3615
- logs: z.nullable(
3616
- z.union([z.lazy(() => PrepareDeploymentStackLogs$outboundSchema), z.any()]),
3617
- ).optional(),
3618
3831
  network: z.nullable(
3619
3832
  z.union([
3620
3833
  z.lazy(() => PrepareDeploymentStackNetworkByoVpcAws$outboundSchema),
@@ -3644,7 +3857,10 @@ export function prepareDeploymentStackStackSettingsToJSON(
3644
3857
 
3645
3858
  /** @internal */
3646
3859
  export type PrepareDeploymentStackRequest$Outbound = {
3860
+ saveForSetup?: boolean | undefined;
3647
3861
  setupItem?: string | undefined;
3862
+ deploymentId?: string | undefined;
3863
+ updateOperationId?: string | undefined;
3648
3864
  platform: string;
3649
3865
  setupMethod: string;
3650
3866
  region?: string | undefined;
@@ -3656,7 +3872,10 @@ export const PrepareDeploymentStackRequest$outboundSchema: z.ZodType<
3656
3872
  PrepareDeploymentStackRequest$Outbound,
3657
3873
  PrepareDeploymentStackRequest
3658
3874
  > = z.object({
3875
+ saveForSetup: z.boolean().optional(),
3659
3876
  setupItem: PrepareDeploymentStackSetupItem$outboundSchema.optional(),
3877
+ deploymentId: z.string().optional(),
3878
+ updateOperationId: z.string().optional(),
3660
3879
  platform: PrepareDeploymentStackPlatform$outboundSchema,
3661
3880
  setupMethod: models.DeploymentSetupMethod$outboundSchema,
3662
3881
  region: z.string().optional(),
@@ -36,6 +36,10 @@ export type OperationsPluginOperation = {
36
36
  * Human-readable description.
37
37
  */
38
38
  description: string | null;
39
+ /**
40
+ * IDs of permission sets (see alien-permissions) this operation requires. Empty when the operation declares none.
41
+ */
42
+ requiredPermissions: Array<string>;
39
43
  };
40
44
 
41
45
  /** @internal */
@@ -51,6 +55,7 @@ export const OperationsPluginOperation$inboundSchema: z.ZodType<
51
55
  name: z.string(),
52
56
  tier: OperationsPluginOperationTier$inboundSchema,
53
57
  description: z.nullable(z.string()),
58
+ requiredPermissions: z.array(z.string()),
54
59
  });
55
60
 
56
61
  export function operationsPluginOperationFromJSON(
@@ -72,7 +72,10 @@ export type ConfigSandboxBundle = {
72
72
  */
73
73
  agentImage: string;
74
74
  /**
75
- * The vendor's base container image the sandbox filesystem starts from.
75
+ * The base container image the sandbox filesystem starts from. A release-pushed image
76
+ *
77
+ * @remarks
78
+ * arrives resolved onto the private registry template with its {region} token intact.
76
79
  */
77
80
  baseImage: string;
78
81
  /**
@@ -345,11 +348,14 @@ export type OutputsSandboxBundle = {
345
348
  */
346
349
  regions: Array<string>;
347
350
  /**
348
- * SHA256 checksum of the bundle zip.
351
+ * SHA256 checksum of the region-neutral bundle zip; a region-templated base image makes
352
+ *
353
+ * @remarks
354
+ * each regional object differ from it only in the rendered region.
349
355
  */
350
356
  sha256: string;
351
357
  /**
352
- * Bundle zip size in bytes.
358
+ * Region-neutral bundle zip size in bytes.
353
359
  */
354
360
  size: number;
355
361
  type: OutputsTypeSandboxBundle;
@@ -1043,24 +1043,6 @@ export type PersistImportedDeploymentRequestKubernetesUnion =
1043
1043
  | PersistImportedDeploymentRequestKubernetes
1044
1044
  | any;
1045
1045
 
1046
- /**
1047
- * Application log handling for a deployment.
1048
- */
1049
- export type PersistImportedDeploymentRequestLogs = {
1050
- /**
1051
- * Normalize severity fields from supported structured application logs into
1052
- *
1053
- * @remarks
1054
- * the OTLP severity fields. The original log body is preserved. Disabled by
1055
- * default.
1056
- */
1057
- parseApplicationLevels?: boolean | undefined;
1058
- };
1059
-
1060
- export type PersistImportedDeploymentRequestLogsUnion =
1061
- | PersistImportedDeploymentRequestLogs
1062
- | any;
1063
-
1064
1046
  export const PersistImportedDeploymentRequestTypeByoVnetAzure = {
1065
1047
  ByoVnetAzure: "byo-vnet-azure",
1066
1048
  } as const;
@@ -1258,7 +1240,6 @@ export type PersistImportedDeploymentRequestStackSettings = {
1258
1240
  | any
1259
1241
  | null
1260
1242
  | undefined;
1261
- logs?: PersistImportedDeploymentRequestLogs | any | null | undefined;
1262
1243
  network?:
1263
1244
  | PersistImportedDeploymentRequestNetworkByoVpcAws
1264
1245
  | PersistImportedDeploymentRequestNetworkByoVpcGcp
@@ -7491,55 +7472,6 @@ export function persistImportedDeploymentRequestKubernetesUnionToJSON(
7491
7472
  );
7492
7473
  }
7493
7474
 
7494
- /** @internal */
7495
- export type PersistImportedDeploymentRequestLogs$Outbound = {
7496
- parseApplicationLevels?: boolean | undefined;
7497
- };
7498
-
7499
- /** @internal */
7500
- export const PersistImportedDeploymentRequestLogs$outboundSchema: z.ZodType<
7501
- PersistImportedDeploymentRequestLogs$Outbound,
7502
- PersistImportedDeploymentRequestLogs
7503
- > = z.object({
7504
- parseApplicationLevels: z.boolean().optional(),
7505
- });
7506
-
7507
- export function persistImportedDeploymentRequestLogsToJSON(
7508
- persistImportedDeploymentRequestLogs: PersistImportedDeploymentRequestLogs,
7509
- ): string {
7510
- return JSON.stringify(
7511
- PersistImportedDeploymentRequestLogs$outboundSchema.parse(
7512
- persistImportedDeploymentRequestLogs,
7513
- ),
7514
- );
7515
- }
7516
-
7517
- /** @internal */
7518
- export type PersistImportedDeploymentRequestLogsUnion$Outbound =
7519
- | PersistImportedDeploymentRequestLogs$Outbound
7520
- | any;
7521
-
7522
- /** @internal */
7523
- export const PersistImportedDeploymentRequestLogsUnion$outboundSchema:
7524
- z.ZodType<
7525
- PersistImportedDeploymentRequestLogsUnion$Outbound,
7526
- PersistImportedDeploymentRequestLogsUnion
7527
- > = z.union([
7528
- z.lazy(() => PersistImportedDeploymentRequestLogs$outboundSchema),
7529
- z.any(),
7530
- ]);
7531
-
7532
- export function persistImportedDeploymentRequestLogsUnionToJSON(
7533
- persistImportedDeploymentRequestLogsUnion:
7534
- PersistImportedDeploymentRequestLogsUnion,
7535
- ): string {
7536
- return JSON.stringify(
7537
- PersistImportedDeploymentRequestLogsUnion$outboundSchema.parse(
7538
- persistImportedDeploymentRequestLogsUnion,
7539
- ),
7540
- );
7541
- }
7542
-
7543
7475
  /** @internal */
7544
7476
  export const PersistImportedDeploymentRequestTypeByoVnetAzure$outboundSchema:
7545
7477
  z.ZodEnum<typeof PersistImportedDeploymentRequestTypeByoVnetAzure> = z.enum(
@@ -7823,7 +7755,6 @@ export type PersistImportedDeploymentRequestStackSettings$Outbound = {
7823
7755
  | any
7824
7756
  | null
7825
7757
  | undefined;
7826
- logs?: PersistImportedDeploymentRequestLogs$Outbound | any | null | undefined;
7827
7758
  network?:
7828
7759
  | PersistImportedDeploymentRequestNetworkByoVpcAws$Outbound
7829
7760
  | PersistImportedDeploymentRequestNetworkByoVpcGcp$Outbound
@@ -7871,12 +7802,6 @@ export const PersistImportedDeploymentRequestStackSettings$outboundSchema:
7871
7802
  z.any(),
7872
7803
  ]),
7873
7804
  ).optional(),
7874
- logs: z.nullable(
7875
- z.union([
7876
- z.lazy(() => PersistImportedDeploymentRequestLogs$outboundSchema),
7877
- z.any(),
7878
- ]),
7879
- ).optional(),
7880
7805
  network: z.nullable(
7881
7806
  z.union([
7882
7807
  z.lazy(() =>
@@ -1494,6 +1494,7 @@ export type PreparedDeploymentStackStack = {
1494
1494
  };
1495
1495
 
1496
1496
  export type PreparedDeploymentStack = {
1497
+ updateOperationId?: string | undefined;
1497
1498
  platform: PreparedDeploymentStackPlatform;
1498
1499
  /**
1499
1500
  * A bag of resources, unaware of any cloud.
@@ -3648,6 +3649,7 @@ export const PreparedDeploymentStack$inboundSchema: z.ZodType<
3648
3649
  PreparedDeploymentStack,
3649
3650
  unknown
3650
3651
  > = z.object({
3652
+ updateOperationId: z.string().optional(),
3651
3653
  platform: PreparedDeploymentStackPlatform$inboundSchema,
3652
3654
  stack: z.lazy(() => PreparedDeploymentStackStack$inboundSchema),
3653
3655
  setup: SetupFingerprintInfo$inboundSchema,