@alienplatform/platform-api 1.11.2 → 1.13.0

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 (283) hide show
  1. package/README.md +6 -0
  2. package/esm/funcs/deploymentGetInfo.js +1 -0
  3. package/esm/funcs/deploymentGetInfo.js.map +1 -1
  4. package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.d.ts +16 -0
  5. package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.d.ts.map +1 -0
  6. package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.js +87 -0
  7. package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.js.map +1 -0
  8. package/esm/funcs/deploymentsCreate.d.ts +2 -1
  9. package/esm/funcs/deploymentsCreate.d.ts.map +1 -1
  10. package/esm/funcs/deploymentsCreate.js +2 -1
  11. package/esm/funcs/deploymentsCreate.js.map +1 -1
  12. package/esm/funcs/machinesCancelMachineDrain.js +5 -1
  13. package/esm/funcs/machinesCancelMachineDrain.js.map +1 -1
  14. package/esm/funcs/machinesCreateJoinToken.d.ts +13 -0
  15. package/esm/funcs/machinesCreateJoinToken.d.ts.map +1 -0
  16. package/esm/funcs/machinesCreateJoinToken.js +86 -0
  17. package/esm/funcs/machinesCreateJoinToken.js.map +1 -0
  18. package/esm/funcs/machinesDrainMachine.js +5 -1
  19. package/esm/funcs/machinesDrainMachine.js.map +1 -1
  20. package/esm/funcs/machinesListInventory.js +5 -1
  21. package/esm/funcs/machinesListInventory.js.map +1 -1
  22. package/esm/funcs/machinesListJoinTokens.js +5 -1
  23. package/esm/funcs/machinesListJoinTokens.js.map +1 -1
  24. package/esm/funcs/machinesRemoveMachine.js +5 -1
  25. package/esm/funcs/machinesRemoveMachine.js.map +1 -1
  26. package/esm/funcs/machinesRevokeJoinToken.js +5 -1
  27. package/esm/funcs/machinesRevokeJoinToken.js.map +1 -1
  28. package/esm/funcs/machinesRotateJoinToken.js +5 -1
  29. package/esm/funcs/machinesRotateJoinToken.js.map +1 -1
  30. package/esm/funcs/projectsGetDeploymentLinkSetup.d.ts +16 -0
  31. package/esm/funcs/projectsGetDeploymentLinkSetup.d.ts.map +1 -0
  32. package/esm/funcs/projectsGetDeploymentLinkSetup.js +89 -0
  33. package/esm/funcs/projectsGetDeploymentLinkSetup.js.map +1 -0
  34. package/esm/lib/config.d.ts +2 -2
  35. package/esm/lib/config.js +2 -2
  36. package/esm/models/apierror.d.ts +8 -0
  37. package/esm/models/apierror.d.ts.map +1 -1
  38. package/esm/models/apierror.js +2 -0
  39. package/esm/models/apierror.js.map +1 -1
  40. package/esm/models/createdeploymentresponse.d.ts +18 -0
  41. package/esm/models/createdeploymentresponse.d.ts.map +1 -1
  42. package/esm/models/createdeploymentresponse.js +10 -0
  43. package/esm/models/createdeploymentresponse.js.map +1 -1
  44. package/esm/models/createmachinesjointokenresponse.d.ts +22 -0
  45. package/esm/models/createmachinesjointokenresponse.d.ts.map +1 -0
  46. package/esm/models/createmachinesjointokenresponse.js +19 -0
  47. package/esm/models/createmachinesjointokenresponse.js.map +1 -0
  48. package/esm/models/createmanagerresponse.d.ts +4 -0
  49. package/esm/models/createmanagerresponse.d.ts.map +1 -1
  50. package/esm/models/createmanagerresponse.js +1 -0
  51. package/esm/models/createmanagerresponse.js.map +1 -1
  52. package/esm/models/deployment.d.ts +1 -0
  53. package/esm/models/deployment.d.ts.map +1 -1
  54. package/esm/models/deployment.js +1 -0
  55. package/esm/models/deployment.js.map +1 -1
  56. package/esm/models/deploymentconnectioninfo.d.ts +1 -0
  57. package/esm/models/deploymentconnectioninfo.d.ts.map +1 -1
  58. package/esm/models/deploymentconnectioninfo.js +1 -0
  59. package/esm/models/deploymentconnectioninfo.js.map +1 -1
  60. package/esm/models/deploymentdetailresponse.d.ts +1 -0
  61. package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
  62. package/esm/models/deploymentdetailresponse.js +1 -0
  63. package/esm/models/deploymentdetailresponse.js.map +1 -1
  64. package/esm/models/deploymentinfo.d.ts +53 -0
  65. package/esm/models/deploymentinfo.d.ts.map +1 -1
  66. package/esm/models/deploymentinfo.js +46 -0
  67. package/esm/models/deploymentinfo.js.map +1 -1
  68. package/esm/models/deploymentlinksetupresponse.d.ts +42 -0
  69. package/esm/models/deploymentlinksetupresponse.d.ts.map +1 -0
  70. package/esm/models/deploymentlinksetupresponse.js +39 -0
  71. package/esm/models/deploymentlinksetupresponse.js.map +1 -0
  72. package/esm/models/deploymentlistitemresponse.d.ts +1 -0
  73. package/esm/models/deploymentlistitemresponse.d.ts.map +1 -1
  74. package/esm/models/deploymentlistitemresponse.js +1 -0
  75. package/esm/models/deploymentlistitemresponse.js.map +1 -1
  76. package/esm/models/deploymentsetupconfig.d.ts +5 -0
  77. package/esm/models/deploymentsetupconfig.d.ts.map +1 -1
  78. package/esm/models/deploymentsetupconfig.js +1 -0
  79. package/esm/models/deploymentsetupconfig.js.map +1 -1
  80. package/esm/models/deploymentsetuppolicy.d.ts +22 -0
  81. package/esm/models/deploymentsetuppolicy.d.ts.map +1 -1
  82. package/esm/models/deploymentsetuppolicy.js +15 -0
  83. package/esm/models/deploymentsetuppolicy.js.map +1 -1
  84. package/esm/models/ensuredeploymentgroupbynamerequest.d.ts +25 -0
  85. package/esm/models/ensuredeploymentgroupbynamerequest.d.ts.map +1 -0
  86. package/esm/models/ensuredeploymentgroupbynamerequest.js +14 -0
  87. package/esm/models/ensuredeploymentgroupbynamerequest.js.map +1 -0
  88. package/esm/models/errors/apierror.d.ts +16 -0
  89. package/esm/models/errors/apierror.d.ts.map +1 -1
  90. package/esm/models/errors/apierror.js +6 -0
  91. package/esm/models/errors/apierror.js.map +1 -1
  92. package/esm/models/index.d.ts +4 -0
  93. package/esm/models/index.d.ts.map +1 -1
  94. package/esm/models/index.js +4 -0
  95. package/esm/models/index.js.map +1 -1
  96. package/esm/models/kubernetesclustersource.d.ts +12 -0
  97. package/esm/models/kubernetesclustersource.d.ts.map +1 -0
  98. package/esm/models/kubernetesclustersource.js +13 -0
  99. package/esm/models/kubernetesclustersource.js.map +1 -0
  100. package/esm/models/managerdeployment.d.ts +1 -0
  101. package/esm/models/managerdeployment.d.ts.map +1 -1
  102. package/esm/models/managerdeployment.js +1 -0
  103. package/esm/models/managerdeployment.js.map +1 -1
  104. package/esm/models/managerretryresponse.d.ts +4 -0
  105. package/esm/models/managerretryresponse.d.ts.map +1 -1
  106. package/esm/models/managerretryresponse.js +1 -0
  107. package/esm/models/managerretryresponse.js.map +1 -1
  108. package/esm/models/newdeploymentrequest.d.ts +19 -1
  109. package/esm/models/newdeploymentrequest.d.ts.map +1 -1
  110. package/esm/models/newdeploymentrequest.js +10 -0
  111. package/esm/models/newdeploymentrequest.js.map +1 -1
  112. package/esm/models/operations/cancelmachinesmachinedrain.d.ts +5 -0
  113. package/esm/models/operations/cancelmachinesmachinedrain.d.ts.map +1 -1
  114. package/esm/models/operations/cancelmachinesmachinedrain.js +1 -0
  115. package/esm/models/operations/cancelmachinesmachinedrain.js.map +1 -1
  116. package/esm/models/operations/createdeployment.d.ts +0 -19
  117. package/esm/models/operations/createdeployment.d.ts.map +1 -1
  118. package/esm/models/operations/createdeployment.js +0 -17
  119. package/esm/models/operations/createdeployment.js.map +1 -1
  120. package/esm/models/operations/createmachinesjointoken.d.ts +20 -0
  121. package/esm/models/operations/createmachinesjointoken.d.ts.map +1 -0
  122. package/esm/models/operations/createmachinesjointoken.js +13 -0
  123. package/esm/models/operations/createmachinesjointoken.js.map +1 -0
  124. package/esm/models/operations/drainmachinesmachine.d.ts +5 -0
  125. package/esm/models/operations/drainmachinesmachine.d.ts.map +1 -1
  126. package/esm/models/operations/drainmachinesmachine.js +1 -0
  127. package/esm/models/operations/drainmachinesmachine.js.map +1 -1
  128. package/esm/models/operations/ensuredeploymentgroupbyname.d.ts +18 -0
  129. package/esm/models/operations/ensuredeploymentgroupbyname.d.ts.map +1 -0
  130. package/esm/models/operations/ensuredeploymentgroupbyname.js +20 -0
  131. package/esm/models/operations/ensuredeploymentgroupbyname.js.map +1 -0
  132. package/esm/models/operations/getdeploymentinfo.d.ts +24 -0
  133. package/esm/models/operations/getdeploymentinfo.d.ts.map +1 -1
  134. package/esm/models/operations/getdeploymentinfo.js +15 -0
  135. package/esm/models/operations/getdeploymentinfo.js.map +1 -1
  136. package/esm/models/operations/getdeploymentstats.d.ts +1 -0
  137. package/esm/models/operations/getdeploymentstats.d.ts.map +1 -1
  138. package/esm/models/operations/getdeploymentstats.js +1 -0
  139. package/esm/models/operations/getdeploymentstats.js.map +1 -1
  140. package/esm/models/operations/getprojectdeploymentlinksetup.d.ts +20 -0
  141. package/esm/models/operations/getprojectdeploymentlinksetup.d.ts.map +1 -0
  142. package/esm/models/operations/getprojectdeploymentlinksetup.js +13 -0
  143. package/esm/models/operations/getprojectdeploymentlinksetup.js.map +1 -0
  144. package/esm/models/operations/index.d.ts +3 -0
  145. package/esm/models/operations/index.d.ts.map +1 -1
  146. package/esm/models/operations/index.js +3 -0
  147. package/esm/models/operations/index.js.map +1 -1
  148. package/esm/models/operations/listdeployments.d.ts +1 -0
  149. package/esm/models/operations/listdeployments.d.ts.map +1 -1
  150. package/esm/models/operations/listdeployments.js +1 -0
  151. package/esm/models/operations/listdeployments.js.map +1 -1
  152. package/esm/models/operations/listmachinesinventory.d.ts +5 -0
  153. package/esm/models/operations/listmachinesinventory.d.ts.map +1 -1
  154. package/esm/models/operations/listmachinesinventory.js +1 -0
  155. package/esm/models/operations/listmachinesinventory.js.map +1 -1
  156. package/esm/models/operations/listmachinesjointokens.d.ts +5 -0
  157. package/esm/models/operations/listmachinesjointokens.d.ts.map +1 -1
  158. package/esm/models/operations/listmachinesjointokens.js +1 -0
  159. package/esm/models/operations/listmachinesjointokens.js.map +1 -1
  160. package/esm/models/operations/removemachinesmachine.d.ts +5 -0
  161. package/esm/models/operations/removemachinesmachine.d.ts.map +1 -1
  162. package/esm/models/operations/removemachinesmachine.js +1 -0
  163. package/esm/models/operations/removemachinesmachine.js.map +1 -1
  164. package/esm/models/operations/revokemachinesjointoken.d.ts +5 -0
  165. package/esm/models/operations/revokemachinesjointoken.d.ts.map +1 -1
  166. package/esm/models/operations/revokemachinesjointoken.js +1 -0
  167. package/esm/models/operations/revokemachinesjointoken.js.map +1 -1
  168. package/esm/models/operations/rotatemachinesjointoken.d.ts +5 -0
  169. package/esm/models/operations/rotatemachinesjointoken.d.ts.map +1 -1
  170. package/esm/models/operations/rotatemachinesjointoken.js +1 -0
  171. package/esm/models/operations/rotatemachinesjointoken.js.map +1 -1
  172. package/esm/models/persistimporteddeploymentrequest.d.ts +2 -1
  173. package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
  174. package/esm/models/persistimporteddeploymentrequest.js +1 -0
  175. package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
  176. package/esm/models/rotatemachinesjointokenresponse.d.ts +8 -0
  177. package/esm/models/rotatemachinesjointokenresponse.d.ts.map +1 -1
  178. package/esm/models/rotatemachinesjointokenresponse.js +2 -0
  179. package/esm/models/rotatemachinesjointokenresponse.js.map +1 -1
  180. package/esm/models/syncacquirerequest.d.ts +1 -0
  181. package/esm/models/syncacquirerequest.d.ts.map +1 -1
  182. package/esm/models/syncacquirerequest.js +1 -0
  183. package/esm/models/syncacquirerequest.js.map +1 -1
  184. package/esm/models/syncacquireresponse.d.ts +1 -0
  185. package/esm/models/syncacquireresponse.d.ts.map +1 -1
  186. package/esm/models/syncacquireresponse.js +1 -0
  187. package/esm/models/syncacquireresponse.js.map +1 -1
  188. package/esm/models/synclistrequest.d.ts +1 -0
  189. package/esm/models/synclistrequest.d.ts.map +1 -1
  190. package/esm/models/synclistrequest.js +1 -0
  191. package/esm/models/synclistrequest.js.map +1 -1
  192. package/esm/models/synclistresponse.d.ts +1 -0
  193. package/esm/models/synclistresponse.d.ts.map +1 -1
  194. package/esm/models/synclistresponse.js +1 -0
  195. package/esm/models/synclistresponse.js.map +1 -1
  196. package/esm/models/syncreconcilerequest.d.ts +1 -0
  197. package/esm/models/syncreconcilerequest.d.ts.map +1 -1
  198. package/esm/models/syncreconcilerequest.js +1 -0
  199. package/esm/models/syncreconcilerequest.js.map +1 -1
  200. package/esm/models/syncreconcileresponse.d.ts +1 -0
  201. package/esm/models/syncreconcileresponse.d.ts.map +1 -1
  202. package/esm/models/syncreconcileresponse.js +1 -0
  203. package/esm/models/syncreconcileresponse.js.map +1 -1
  204. package/esm/sdk/deploymentgroups.d.ts +4 -0
  205. package/esm/sdk/deploymentgroups.d.ts.map +1 -1
  206. package/esm/sdk/deploymentgroups.js +7 -0
  207. package/esm/sdk/deploymentgroups.js.map +1 -1
  208. package/esm/sdk/deployments.d.ts +1 -1
  209. package/esm/sdk/deployments.d.ts.map +1 -1
  210. package/esm/sdk/machines.d.ts +1 -0
  211. package/esm/sdk/machines.d.ts.map +1 -1
  212. package/esm/sdk/machines.js +4 -0
  213. package/esm/sdk/machines.js.map +1 -1
  214. package/esm/sdk/projects.d.ts +4 -0
  215. package/esm/sdk/projects.d.ts.map +1 -1
  216. package/esm/sdk/projects.js +7 -0
  217. package/esm/sdk/projects.js.map +1 -1
  218. package/esm/sdk/resources.d.ts +3 -0
  219. package/esm/sdk/resources.d.ts.map +1 -1
  220. package/esm/sdk/resources.js +3 -0
  221. package/esm/sdk/resources.js.map +1 -1
  222. package/jsr.json +1 -1
  223. package/package.json +1 -1
  224. package/src/funcs/deploymentGetInfo.ts +1 -0
  225. package/src/funcs/deploymentGroupsEnsureDeploymentGroupByName.ts +177 -0
  226. package/src/funcs/deploymentsCreate.ts +5 -5
  227. package/src/funcs/machinesCancelMachineDrain.ts +6 -1
  228. package/src/funcs/machinesCreateJoinToken.ts +179 -0
  229. package/src/funcs/machinesDrainMachine.ts +6 -1
  230. package/src/funcs/machinesListInventory.ts +6 -1
  231. package/src/funcs/machinesListJoinTokens.ts +6 -1
  232. package/src/funcs/machinesRemoveMachine.ts +6 -1
  233. package/src/funcs/machinesRevokeJoinToken.ts +6 -1
  234. package/src/funcs/machinesRotateJoinToken.ts +6 -1
  235. package/src/funcs/projectsGetDeploymentLinkSetup.ts +184 -0
  236. package/src/lib/config.ts +2 -2
  237. package/src/models/apierror.ts +10 -0
  238. package/src/models/createdeploymentresponse.ts +25 -0
  239. package/src/models/createmachinesjointokenresponse.ts +50 -0
  240. package/src/models/createmanagerresponse.ts +5 -0
  241. package/src/models/deployment.ts +1 -0
  242. package/src/models/deploymentconnectioninfo.ts +1 -0
  243. package/src/models/deploymentdetailresponse.ts +1 -0
  244. package/src/models/deploymentinfo.ts +112 -0
  245. package/src/models/deploymentlinksetupresponse.ts +90 -0
  246. package/src/models/deploymentlistitemresponse.ts +1 -0
  247. package/src/models/deploymentsetupconfig.ts +6 -0
  248. package/src/models/deploymentsetuppolicy.ts +48 -0
  249. package/src/models/ensuredeploymentgroupbynamerequest.ts +47 -0
  250. package/src/models/errors/apierror.ts +20 -0
  251. package/src/models/index.ts +4 -0
  252. package/src/models/kubernetesclustersource.ts +23 -0
  253. package/src/models/managerdeployment.ts +1 -0
  254. package/src/models/managerretryresponse.ts +5 -0
  255. package/src/models/newdeploymentrequest.ts +24 -1
  256. package/src/models/operations/cancelmachinesmachinedrain.ts +6 -0
  257. package/src/models/operations/createdeployment.ts +0 -56
  258. package/src/models/operations/createmachinesjointoken.ts +41 -0
  259. package/src/models/operations/drainmachinesmachine.ts +6 -0
  260. package/src/models/operations/ensuredeploymentgroupbyname.ts +49 -0
  261. package/src/models/operations/getdeploymentinfo.ts +31 -0
  262. package/src/models/operations/getdeploymentstats.ts +1 -0
  263. package/src/models/operations/getprojectdeploymentlinksetup.ts +41 -0
  264. package/src/models/operations/index.ts +3 -0
  265. package/src/models/operations/listdeployments.ts +1 -0
  266. package/src/models/operations/listmachinesinventory.ts +6 -0
  267. package/src/models/operations/listmachinesjointokens.ts +6 -0
  268. package/src/models/operations/removemachinesmachine.ts +6 -0
  269. package/src/models/operations/revokemachinesjointoken.ts +6 -0
  270. package/src/models/operations/rotatemachinesjointoken.ts +6 -0
  271. package/src/models/persistimporteddeploymentrequest.ts +2 -1
  272. package/src/models/rotatemachinesjointokenresponse.ts +10 -0
  273. package/src/models/syncacquirerequest.ts +1 -0
  274. package/src/models/syncacquireresponse.ts +1 -0
  275. package/src/models/synclistrequest.ts +1 -0
  276. package/src/models/synclistresponse.ts +1 -0
  277. package/src/models/syncreconcilerequest.ts +1 -0
  278. package/src/models/syncreconcileresponse.ts +1 -0
  279. package/src/sdk/deploymentgroups.ts +15 -0
  280. package/src/sdk/deployments.ts +1 -1
  281. package/src/sdk/machines.ts +12 -0
  282. package/src/sdk/projects.ts +15 -0
  283. package/src/sdk/resources.ts +3 -0
@@ -35,6 +35,7 @@ export const DeploymentStatus = {
35
35
  InitialSetup: "initial-setup",
36
36
  InitialSetupFailed: "initial-setup-failed",
37
37
  Provisioning: "provisioning",
38
+ WaitingForMachines: "waiting-for-machines",
38
39
  ProvisioningFailed: "provisioning-failed",
39
40
  Running: "running",
40
41
  RefreshFailed: "refresh-failed",
@@ -51,6 +51,7 @@ export const DeploymentConnectionInfoStatus = {
51
51
  InitialSetup: "initial-setup",
52
52
  InitialSetupFailed: "initial-setup-failed",
53
53
  Provisioning: "provisioning",
54
+ WaitingForMachines: "waiting-for-machines",
54
55
  ProvisioningFailed: "provisioning-failed",
55
56
  Running: "running",
56
57
  RefreshFailed: "refresh-failed",
@@ -47,6 +47,7 @@ export const DeploymentDetailResponseStatus = {
47
47
  InitialSetup: "initial-setup",
48
48
  InitialSetupFailed: "initial-setup-failed",
49
49
  Provisioning: "provisioning",
50
+ WaitingForMachines: "waiting-for-machines",
50
51
  ProvisioningFailed: "provisioning-failed",
51
52
  Running: "running",
52
53
  RefreshFailed: "refresh-failed",
@@ -73,6 +73,7 @@ export type DeploymentInfoDeploymentGroup = {
73
73
  */
74
74
  id: string;
75
75
  name: string;
76
+ pinnedSubdomain: string | null;
76
77
  };
77
78
 
78
79
  export type DeploymentInfoWorkspace = {
@@ -128,6 +129,10 @@ export type StackSummary = {
128
129
  * Platforms supported by the active release
129
130
  */
130
131
  platforms: Array<StackSummaryPlatform>;
132
+ /**
133
+ * Whether the stack contains resources that require cloud VPC networking
134
+ */
135
+ requiresNetwork: boolean;
131
136
  resourceCounts: ResourceCounts;
132
137
  /**
133
138
  * Public endpoints declared by the active release stack
@@ -135,10 +140,22 @@ export type StackSummary = {
135
140
  publicEndpoints: Array<PublicEndpoint>;
136
141
  };
137
142
 
143
+ /**
144
+ * Parent domain for generated deployment URLs. Chosen public subdomains are only allowed when isSystem is false.
145
+ */
146
+ export type GeneratedDomain = {
147
+ domain: string;
148
+ isSystem: boolean;
149
+ };
150
+
138
151
  export type DeploymentInfoProject = {
139
152
  name: string;
140
153
  portal: Portal;
141
154
  stackSummary?: StackSummary | null | undefined;
155
+ /**
156
+ * Parent domain for generated deployment URLs. Chosen public subdomains are only allowed when isSystem is false.
157
+ */
158
+ generatedDomain?: GeneratedDomain | null | undefined;
142
159
  };
143
160
 
144
161
  /**
@@ -665,6 +682,33 @@ export type DeploymentInfoInstallContext = {
665
682
  targets: { [k: string]: InstallContextTargets };
666
683
  };
667
684
 
685
+ export const ReadinessStatus = {
686
+ Ready: "ready",
687
+ NotReady: "notReady",
688
+ Unknown: "unknown",
689
+ } as const;
690
+ export type ReadinessStatus = ClosedEnum<typeof ReadinessStatus>;
691
+
692
+ export const CheckStatus = {
693
+ Passed: "passed",
694
+ Failed: "failed",
695
+ Warning: "warning",
696
+ Unknown: "unknown",
697
+ } as const;
698
+ export type CheckStatus = ClosedEnum<typeof CheckStatus>;
699
+
700
+ export type Check = {
701
+ code: string;
702
+ status: CheckStatus;
703
+ message: string;
704
+ checkedAt: string;
705
+ };
706
+
707
+ export type Readiness = {
708
+ status: ReadinessStatus;
709
+ checks: Array<Check>;
710
+ };
711
+
668
712
  export type DeploymentInfo = {
669
713
  /**
670
714
  * Type of token used to authenticate this request
@@ -684,6 +728,7 @@ export type DeploymentInfo = {
684
728
  installContext: DeploymentInfoInstallContext;
685
729
  supportedRegions: SupportedCloudRegions;
686
730
  setupConfig?: DeploymentInfoSetupConfig | undefined;
731
+ readiness?: Readiness | undefined;
687
732
  };
688
733
 
689
734
  /** @internal */
@@ -722,6 +767,7 @@ export const DeploymentInfoDeploymentGroup$inboundSchema: z.ZodType<
722
767
  > = z.object({
723
768
  id: z.string(),
724
769
  name: z.string(),
770
+ pinnedSubdomain: z.nullable(z.string()),
725
771
  });
726
772
 
727
773
  export function deploymentInfoDeploymentGroupFromJSON(
@@ -817,6 +863,7 @@ export function publicEndpointFromJSON(
817
863
  export const StackSummary$inboundSchema: z.ZodType<StackSummary, unknown> = z
818
864
  .object({
819
865
  platforms: z.array(StackSummaryPlatform$inboundSchema),
866
+ requiresNetwork: z.boolean(),
820
867
  resourceCounts: z.lazy(() => ResourceCounts$inboundSchema),
821
868
  publicEndpoints: z.array(z.lazy(() => PublicEndpoint$inboundSchema)),
822
869
  });
@@ -831,6 +878,25 @@ export function stackSummaryFromJSON(
831
878
  );
832
879
  }
833
880
 
881
+ /** @internal */
882
+ export const GeneratedDomain$inboundSchema: z.ZodType<
883
+ GeneratedDomain,
884
+ unknown
885
+ > = z.object({
886
+ domain: z.string(),
887
+ isSystem: z.boolean(),
888
+ });
889
+
890
+ export function generatedDomainFromJSON(
891
+ jsonString: string,
892
+ ): SafeParseResult<GeneratedDomain, SDKValidationError> {
893
+ return safeParse(
894
+ jsonString,
895
+ (x) => GeneratedDomain$inboundSchema.parse(JSON.parse(x)),
896
+ `Failed to parse 'GeneratedDomain' from JSON`,
897
+ );
898
+ }
899
+
834
900
  /** @internal */
835
901
  export const DeploymentInfoProject$inboundSchema: z.ZodType<
836
902
  DeploymentInfoProject,
@@ -839,6 +905,8 @@ export const DeploymentInfoProject$inboundSchema: z.ZodType<
839
905
  name: z.string(),
840
906
  portal: z.lazy(() => Portal$inboundSchema),
841
907
  stackSummary: z.nullable(z.lazy(() => StackSummary$inboundSchema)).optional(),
908
+ generatedDomain: z.nullable(z.lazy(() => GeneratedDomain$inboundSchema))
909
+ .optional(),
842
910
  });
843
911
 
844
912
  export function deploymentInfoProjectFromJSON(
@@ -1424,6 +1492,49 @@ export function deploymentInfoInstallContextFromJSON(
1424
1492
  );
1425
1493
  }
1426
1494
 
1495
+ /** @internal */
1496
+ export const ReadinessStatus$inboundSchema: z.ZodEnum<typeof ReadinessStatus> =
1497
+ z.enum(ReadinessStatus);
1498
+
1499
+ /** @internal */
1500
+ export const CheckStatus$inboundSchema: z.ZodEnum<typeof CheckStatus> = z.enum(
1501
+ CheckStatus,
1502
+ );
1503
+
1504
+ /** @internal */
1505
+ export const Check$inboundSchema: z.ZodType<Check, unknown> = z.object({
1506
+ code: z.string(),
1507
+ status: CheckStatus$inboundSchema,
1508
+ message: z.string(),
1509
+ checkedAt: z.string(),
1510
+ });
1511
+
1512
+ export function checkFromJSON(
1513
+ jsonString: string,
1514
+ ): SafeParseResult<Check, SDKValidationError> {
1515
+ return safeParse(
1516
+ jsonString,
1517
+ (x) => Check$inboundSchema.parse(JSON.parse(x)),
1518
+ `Failed to parse 'Check' from JSON`,
1519
+ );
1520
+ }
1521
+
1522
+ /** @internal */
1523
+ export const Readiness$inboundSchema: z.ZodType<Readiness, unknown> = z.object({
1524
+ status: ReadinessStatus$inboundSchema,
1525
+ checks: z.array(z.lazy(() => Check$inboundSchema)),
1526
+ });
1527
+
1528
+ export function readinessFromJSON(
1529
+ jsonString: string,
1530
+ ): SafeParseResult<Readiness, SDKValidationError> {
1531
+ return safeParse(
1532
+ jsonString,
1533
+ (x) => Readiness$inboundSchema.parse(JSON.parse(x)),
1534
+ `Failed to parse 'Readiness' from JSON`,
1535
+ );
1536
+ }
1537
+
1427
1538
  /** @internal */
1428
1539
  export const DeploymentInfo$inboundSchema: z.ZodType<DeploymentInfo, unknown> =
1429
1540
  z.object({
@@ -1437,6 +1548,7 @@ export const DeploymentInfo$inboundSchema: z.ZodType<DeploymentInfo, unknown> =
1437
1548
  installContext: z.lazy(() => DeploymentInfoInstallContext$inboundSchema),
1438
1549
  supportedRegions: SupportedCloudRegions$inboundSchema,
1439
1550
  setupConfig: DeploymentInfoSetupConfig$inboundSchema.optional(),
1551
+ readiness: z.lazy(() => Readiness$inboundSchema).optional(),
1440
1552
  });
1441
1553
 
1442
1554
  export function deploymentInfoFromJSON(
@@ -0,0 +1,90 @@
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 { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import {
10
+ DeploymentSetupMethod,
11
+ DeploymentSetupMethod$inboundSchema,
12
+ } from "./deploymentsetupmethod.js";
13
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
14
+ import {
15
+ StackByPlatform,
16
+ StackByPlatform$inboundSchema,
17
+ } from "./stackbyplatform.js";
18
+
19
+ export type ActiveRelease = {
20
+ /**
21
+ * Unique identifier for the release.
22
+ */
23
+ id: string;
24
+ version: string | null;
25
+ stack: StackByPlatform | null;
26
+ };
27
+
28
+ /**
29
+ * Types of packages that can be built
30
+ */
31
+ export const VisiblePackageType = {
32
+ Cli: "cli",
33
+ Cloudformation: "cloudformation",
34
+ Helm: "helm",
35
+ OperatorImage: "operator-image",
36
+ Terraform: "terraform",
37
+ } as const;
38
+ /**
39
+ * Types of packages that can be built
40
+ */
41
+ export type VisiblePackageType = ClosedEnum<typeof VisiblePackageType>;
42
+
43
+ export type DeploymentLinkSetupResponse = {
44
+ activeRelease: ActiveRelease;
45
+ visiblePackageTypes: Array<VisiblePackageType>;
46
+ visibleSetupMethods: Array<DeploymentSetupMethod>;
47
+ };
48
+
49
+ /** @internal */
50
+ export const ActiveRelease$inboundSchema: z.ZodType<ActiveRelease, unknown> = z
51
+ .object({
52
+ id: z.string(),
53
+ version: z.nullable(z.string()),
54
+ stack: z.nullable(StackByPlatform$inboundSchema),
55
+ });
56
+
57
+ export function activeReleaseFromJSON(
58
+ jsonString: string,
59
+ ): SafeParseResult<ActiveRelease, SDKValidationError> {
60
+ return safeParse(
61
+ jsonString,
62
+ (x) => ActiveRelease$inboundSchema.parse(JSON.parse(x)),
63
+ `Failed to parse 'ActiveRelease' from JSON`,
64
+ );
65
+ }
66
+
67
+ /** @internal */
68
+ export const VisiblePackageType$inboundSchema: z.ZodEnum<
69
+ typeof VisiblePackageType
70
+ > = z.enum(VisiblePackageType);
71
+
72
+ /** @internal */
73
+ export const DeploymentLinkSetupResponse$inboundSchema: z.ZodType<
74
+ DeploymentLinkSetupResponse,
75
+ unknown
76
+ > = z.object({
77
+ activeRelease: z.lazy(() => ActiveRelease$inboundSchema),
78
+ visiblePackageTypes: z.array(VisiblePackageType$inboundSchema),
79
+ visibleSetupMethods: z.array(DeploymentSetupMethod$inboundSchema),
80
+ });
81
+
82
+ export function deploymentLinkSetupResponseFromJSON(
83
+ jsonString: string,
84
+ ): SafeParseResult<DeploymentLinkSetupResponse, SDKValidationError> {
85
+ return safeParse(
86
+ jsonString,
87
+ (x) => DeploymentLinkSetupResponse$inboundSchema.parse(JSON.parse(x)),
88
+ `Failed to parse 'DeploymentLinkSetupResponse' from JSON`,
89
+ );
90
+ }
@@ -39,6 +39,7 @@ export const DeploymentListItemResponseStatus = {
39
39
  InitialSetup: "initial-setup",
40
40
  InitialSetupFailed: "initial-setup-failed",
41
41
  Provisioning: "provisioning",
42
+ WaitingForMachines: "waiting-for-machines",
42
43
  ProvisioningFailed: "provisioning-failed",
43
44
  Running: "running",
44
45
  RefreshFailed: "refresh-failed",
@@ -24,6 +24,10 @@ export type DeploymentSetupConfig = {
24
24
  policy: DeploymentSetupPolicy;
25
25
  environmentVariables: Array<EnvironmentVariableConfig>;
26
26
  inputValues?: { [k: string]: EncryptedStackInputValue } | undefined;
27
+ /**
28
+ * Operator-pinned deployment subdomain for this setup token.
29
+ */
30
+ publicSubdomain?: string | undefined;
27
31
  };
28
32
 
29
33
  /** @internal */
@@ -32,6 +36,7 @@ export type DeploymentSetupConfig$Outbound = {
32
36
  policy: DeploymentSetupPolicy$Outbound;
33
37
  environmentVariables: Array<EnvironmentVariableConfig$Outbound>;
34
38
  inputValues?: { [k: string]: EncryptedStackInputValue$Outbound } | undefined;
39
+ publicSubdomain?: string | undefined;
35
40
  };
36
41
 
37
42
  /** @internal */
@@ -44,6 +49,7 @@ export const DeploymentSetupConfig$outboundSchema: z.ZodType<
44
49
  environmentVariables: z.array(EnvironmentVariableConfig$outboundSchema),
45
50
  inputValues: z.record(z.string(), EncryptedStackInputValue$outboundSchema)
46
51
  .optional(),
52
+ publicSubdomain: z.string().optional(),
47
53
  });
48
54
 
49
55
  export function deploymentSetupConfigToJSON(
@@ -18,6 +18,11 @@ import {
18
18
  DeploymentSetupStackSettingsPolicy$outboundSchema,
19
19
  } from "./deploymentsetupstacksettingspolicy.js";
20
20
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
21
+ import {
22
+ KubernetesClusterSource,
23
+ KubernetesClusterSource$inboundSchema,
24
+ KubernetesClusterSource$outboundSchema,
25
+ } from "./kubernetesclustersource.js";
21
26
 
22
27
  /**
23
28
  * Represents the target cloud platform.
@@ -36,8 +41,28 @@ export const AllowedPlatform = {
36
41
  */
37
42
  export type AllowedPlatform = ClosedEnum<typeof AllowedPlatform>;
38
43
 
44
+ export const AllowedKubernetesBasePlatform = {
45
+ Aws: "aws",
46
+ Gcp: "gcp",
47
+ Azure: "azure",
48
+ OnPrem: "on-prem",
49
+ } as const;
50
+ export type AllowedKubernetesBasePlatform = ClosedEnum<
51
+ typeof AllowedKubernetesBasePlatform
52
+ >;
53
+
39
54
  export type DeploymentSetupPolicy = {
40
55
  allowedPlatforms: Array<AllowedPlatform>;
56
+ /**
57
+ * Kubernetes base environments the recipient may target.
58
+ */
59
+ allowedKubernetesBasePlatforms?:
60
+ | Array<AllowedKubernetesBasePlatform>
61
+ | undefined;
62
+ /**
63
+ * Whether recipients may create a cluster, use an existing cluster, or both.
64
+ */
65
+ allowedKubernetesClusterSources?: Array<KubernetesClusterSource> | undefined;
41
66
  allowedSetupMethods: Array<DeploymentSetupMethod>;
42
67
  allowReleasePinning?: boolean | undefined;
43
68
  stackSettings?: DeploymentSetupStackSettingsPolicy | undefined;
@@ -50,12 +75,27 @@ export const AllowedPlatform$inboundSchema: z.ZodEnum<typeof AllowedPlatform> =
50
75
  export const AllowedPlatform$outboundSchema: z.ZodEnum<typeof AllowedPlatform> =
51
76
  AllowedPlatform$inboundSchema;
52
77
 
78
+ /** @internal */
79
+ export const AllowedKubernetesBasePlatform$inboundSchema: z.ZodEnum<
80
+ typeof AllowedKubernetesBasePlatform
81
+ > = z.enum(AllowedKubernetesBasePlatform);
82
+ /** @internal */
83
+ export const AllowedKubernetesBasePlatform$outboundSchema: z.ZodEnum<
84
+ typeof AllowedKubernetesBasePlatform
85
+ > = AllowedKubernetesBasePlatform$inboundSchema;
86
+
53
87
  /** @internal */
54
88
  export const DeploymentSetupPolicy$inboundSchema: z.ZodType<
55
89
  DeploymentSetupPolicy,
56
90
  unknown
57
91
  > = z.object({
58
92
  allowedPlatforms: z.array(AllowedPlatform$inboundSchema),
93
+ allowedKubernetesBasePlatforms: z.array(
94
+ AllowedKubernetesBasePlatform$inboundSchema,
95
+ ).optional(),
96
+ allowedKubernetesClusterSources: z.array(
97
+ KubernetesClusterSource$inboundSchema,
98
+ ).optional(),
59
99
  allowedSetupMethods: z.array(DeploymentSetupMethod$inboundSchema),
60
100
  allowReleasePinning: z.boolean().optional(),
61
101
  stackSettings: DeploymentSetupStackSettingsPolicy$inboundSchema.optional(),
@@ -63,6 +103,8 @@ export const DeploymentSetupPolicy$inboundSchema: z.ZodType<
63
103
  /** @internal */
64
104
  export type DeploymentSetupPolicy$Outbound = {
65
105
  allowedPlatforms: Array<string>;
106
+ allowedKubernetesBasePlatforms?: Array<string> | undefined;
107
+ allowedKubernetesClusterSources?: Array<string> | undefined;
66
108
  allowedSetupMethods: Array<string>;
67
109
  allowReleasePinning?: boolean | undefined;
68
110
  stackSettings?: DeploymentSetupStackSettingsPolicy$Outbound | undefined;
@@ -74,6 +116,12 @@ export const DeploymentSetupPolicy$outboundSchema: z.ZodType<
74
116
  DeploymentSetupPolicy
75
117
  > = z.object({
76
118
  allowedPlatforms: z.array(AllowedPlatform$outboundSchema),
119
+ allowedKubernetesBasePlatforms: z.array(
120
+ AllowedKubernetesBasePlatform$outboundSchema,
121
+ ).optional(),
122
+ allowedKubernetesClusterSources: z.array(
123
+ KubernetesClusterSource$outboundSchema,
124
+ ).optional(),
77
125
  allowedSetupMethods: z.array(DeploymentSetupMethod$outboundSchema),
78
126
  allowReleasePinning: z.boolean().optional(),
79
127
  stackSettings: DeploymentSetupStackSettingsPolicy$outboundSchema.optional(),
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+
7
+ export type EnsureDeploymentGroupByNameRequest = {
8
+ /**
9
+ * Deployment group name.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Project ID or name this deployment group belongs to
14
+ */
15
+ project: string;
16
+ /**
17
+ * Maximum number of deployments for newly created groups
18
+ */
19
+ maxDeployments?: number | undefined;
20
+ };
21
+
22
+ /** @internal */
23
+ export type EnsureDeploymentGroupByNameRequest$Outbound = {
24
+ name: string;
25
+ project: string;
26
+ maxDeployments: number;
27
+ };
28
+
29
+ /** @internal */
30
+ export const EnsureDeploymentGroupByNameRequest$outboundSchema: z.ZodType<
31
+ EnsureDeploymentGroupByNameRequest$Outbound,
32
+ EnsureDeploymentGroupByNameRequest
33
+ > = z.object({
34
+ name: z.string(),
35
+ project: z.string(),
36
+ maxDeployments: z.int().default(100),
37
+ });
38
+
39
+ export function ensureDeploymentGroupByNameRequestToJSON(
40
+ ensureDeploymentGroupByNameRequest: EnsureDeploymentGroupByNameRequest,
41
+ ): string {
42
+ return JSON.stringify(
43
+ EnsureDeploymentGroupByNameRequest$outboundSchema.parse(
44
+ ensureDeploymentGroupByNameRequest,
45
+ ),
46
+ );
47
+ }
@@ -55,6 +55,10 @@ export type APIErrorData = {
55
55
  * caused the issue, or other relevant context information.
56
56
  */
57
57
  context?: any | null | undefined;
58
+ /**
59
+ * Optional human-facing remediation hint.
60
+ */
61
+ hint?: string | null | undefined;
58
62
  /**
59
63
  * HTTP status code for this error.
60
64
  *
@@ -74,6 +78,10 @@ export type APIErrorData = {
74
78
  * logged for debugging but replaced with generic error messages in responses.
75
79
  */
76
80
  internal: boolean;
81
+ /**
82
+ * Request ID echoed in the x-request-id response header and server logs.
83
+ */
84
+ requestId?: string | undefined;
77
85
  };
78
86
 
79
87
  export class APIError extends AlienError {
@@ -117,6 +125,10 @@ export class APIError extends AlienError {
117
125
  * caused the issue, or other relevant context information.
118
126
  */
119
127
  context?: any | null | undefined;
128
+ /**
129
+ * Optional human-facing remediation hint.
130
+ */
131
+ hint?: string | null | undefined;
120
132
  /**
121
133
  * HTTP status code for this error.
122
134
  *
@@ -136,6 +148,10 @@ export class APIError extends AlienError {
136
148
  * logged for debugging but replaced with generic error messages in responses.
137
149
  */
138
150
  internal: boolean;
151
+ /**
152
+ * Request ID echoed in the x-request-id response header and server logs.
153
+ */
154
+ requestId?: string | undefined;
139
155
 
140
156
  /** The original data that was passed to this error instance. */
141
157
  data$: APIErrorData;
@@ -151,8 +167,10 @@ export class APIError extends AlienError {
151
167
  if (err.source != null) this.source = err.source;
152
168
  if (err.retryable != null) this.retryable = err.retryable;
153
169
  if (err.context != null) this.context = err.context;
170
+ if (err.hint != null) this.hint = err.hint;
154
171
  if (err.httpStatusCode != null) this.httpStatusCode = err.httpStatusCode;
155
172
  this.internal = err.internal;
173
+ if (err.requestId != null) this.requestId = err.requestId;
156
174
 
157
175
  this.name = "APIError";
158
176
  }
@@ -165,8 +183,10 @@ export const APIError$inboundSchema: z.ZodType<APIError, unknown> = z.object({
165
183
  source: z.nullable(z.any()).optional(),
166
184
  retryable: z.boolean().default(false),
167
185
  context: z.nullable(z.any()).optional(),
186
+ hint: z.nullable(z.string()).optional(),
168
187
  httpStatusCode: z.nullable(z.int()).optional(),
169
188
  internal: z.boolean(),
189
+ requestId: z.string().optional(),
170
190
  request$: z.custom<Request>(x => x instanceof Request),
171
191
  response$: z.custom<Response>(x => x instanceof Response),
172
192
  body$: z.string(),
@@ -29,6 +29,7 @@ export * from "./createdeploymentresponse.js";
29
29
  export * from "./createdeploymenttokenrequest.js";
30
30
  export * from "./createdeploymenttokenresponse.js";
31
31
  export * from "./createfirstpartydeploymentsessionresponse.js";
32
+ export * from "./createmachinesjointokenresponse.js";
32
33
  export * from "./createmanagerresponse.js";
33
34
  export * from "./createreleaserequest.js";
34
35
  export * from "./createsetupregistrationoperationrequest.js";
@@ -49,6 +50,7 @@ export * from "./deploymentgrouprole.js";
49
50
  export * from "./deploymentgroupscope.js";
50
51
  export * from "./deploymentinfo.js";
51
52
  export * from "./deploymentinfosetupconfig.js";
53
+ export * from "./deploymentlinksetupresponse.js";
52
54
  export * from "./deploymentlistitemresponse.js";
53
55
  export * from "./deploymentportalaccentcolor.js";
54
56
  export * from "./deploymentportalappearance.js";
@@ -74,6 +76,7 @@ export * from "./domainwithusage.js";
74
76
  export * from "./drainmachinesmachinerequest.js";
75
77
  export * from "./drainmachinesmachineresponse.js";
76
78
  export * from "./encryptedstackinputvalue.js";
79
+ export * from "./ensuredeploymentgroupbynamerequest.js";
77
80
  export * from "./environmentvariableconfig.js";
78
81
  export * from "./environmentvariabletype.js";
79
82
  export * from "./event.js";
@@ -91,6 +94,7 @@ export * from "./importedresource.js";
91
94
  export * from "./importsource.js";
92
95
  export * from "./importsourcekind.js";
93
96
  export * from "./kubernetesbaseplatform.js";
97
+ export * from "./kubernetesclustersource.js";
94
98
  export * from "./listcommanddeploymentsresponse.js";
95
99
  export * from "./listcommandnamesresponse.js";
96
100
  export * from "./listmachinesinventoryresponse.js";
@@ -0,0 +1,23 @@
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
+ export const KubernetesClusterSource = {
9
+ Create: "create",
10
+ Existing: "existing",
11
+ } as const;
12
+ export type KubernetesClusterSource = ClosedEnum<
13
+ typeof KubernetesClusterSource
14
+ >;
15
+
16
+ /** @internal */
17
+ export const KubernetesClusterSource$inboundSchema: z.ZodEnum<
18
+ typeof KubernetesClusterSource
19
+ > = z.enum(KubernetesClusterSource);
20
+ /** @internal */
21
+ export const KubernetesClusterSource$outboundSchema: z.ZodEnum<
22
+ typeof KubernetesClusterSource
23
+ > = KubernetesClusterSource$inboundSchema;
@@ -17,6 +17,7 @@ export const ManagerDeploymentStatus = {
17
17
  InitialSetup: "initial-setup",
18
18
  InitialSetupFailed: "initial-setup-failed",
19
19
  Provisioning: "provisioning",
20
+ WaitingForMachines: "waiting-for-machines",
20
21
  ProvisioningFailed: "provisioning-failed",
21
22
  Running: "running",
22
23
  RefreshFailed: "refresh-failed",
@@ -39,6 +39,10 @@ export type ManagerRetryResponseSetupConfig = {
39
39
  metadata: { [k: string]: any | null };
40
40
  policy: DeploymentSetupPolicy;
41
41
  inputValues?: { [k: string]: EncryptedStackInputValue } | undefined;
42
+ /**
43
+ * Operator-pinned deployment subdomain for this setup token.
44
+ */
45
+ publicSubdomain?: string | undefined;
42
46
  environmentVariables: Array<ManagerRetryResponseEnvironmentVariable>;
43
47
  };
44
48
 
@@ -3588,6 +3592,7 @@ export const ManagerRetryResponseSetupConfig$inboundSchema: z.ZodType<
3588
3592
  policy: DeploymentSetupPolicy$inboundSchema,
3589
3593
  inputValues: z.record(z.string(), EncryptedStackInputValue$inboundSchema)
3590
3594
  .optional(),
3595
+ publicSubdomain: z.string().optional(),
3591
3596
  environmentVariables: z.array(
3592
3597
  z.lazy(() => ManagerRetryResponseEnvironmentVariable$inboundSchema),
3593
3598
  ),