@alienplatform/platform-api 3.3.32 → 3.3.34

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 (281) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/REACT_QUERY.md +6 -6
  3. package/esm/funcs/apiKeysRevoke.js +1 -1
  4. package/esm/funcs/apiKeysRevoke.js.map +1 -1
  5. package/esm/funcs/deploymentsImport.js +1 -1
  6. package/esm/funcs/deploymentsImport.js.map +1 -1
  7. package/esm/funcs/deploymentsUpdateCompute.d.ts +1 -1
  8. package/esm/funcs/deploymentsUpdateCompute.js +1 -1
  9. package/esm/funcs/projectsConfigureRemoteSandbox.d.ts +1 -1
  10. package/esm/funcs/projectsConfigureRemoteSandbox.js +1 -1
  11. package/esm/lib/config.d.ts +2 -2
  12. package/esm/lib/config.js +2 -2
  13. package/esm/models/configureremotesandboxrequest.d.ts +4 -0
  14. package/esm/models/configureremotesandboxrequest.d.ts.map +1 -1
  15. package/esm/models/configureremotesandboxrequest.js +2 -0
  16. package/esm/models/configureremotesandboxrequest.js.map +1 -1
  17. package/esm/models/createmanagerresponse.d.ts +51 -2
  18. package/esm/models/createmanagerresponse.d.ts.map +1 -1
  19. package/esm/models/createmanagerresponse.js +32 -4
  20. package/esm/models/createmanagerresponse.js.map +1 -1
  21. package/esm/models/createmanagerresponseproviderazureapplicationgatewayforcontainersenum2.d.ts +1780 -0
  22. package/esm/models/createmanagerresponseproviderazureapplicationgatewayforcontainersenum2.d.ts.map +1 -0
  23. package/esm/models/createmanagerresponseproviderazureapplicationgatewayforcontainersenum2.js +1431 -0
  24. package/esm/models/createmanagerresponseproviderazureapplicationgatewayforcontainersenum2.js.map +1 -0
  25. package/esm/models/createmanagerresponseprovidergkegatewayenum2.d.ts +6 -1767
  26. package/esm/models/createmanagerresponseprovidergkegatewayenum2.d.ts.map +1 -1
  27. package/esm/models/createmanagerresponseprovidergkegatewayenum2.js +6 -1420
  28. package/esm/models/createmanagerresponseprovidergkegatewayenum2.js.map +1 -1
  29. package/esm/models/createmanagerresponsepublicendpointtargetmachineaddresses2.d.ts +1751 -0
  30. package/esm/models/createmanagerresponsepublicendpointtargetmachineaddresses2.d.ts.map +1 -0
  31. package/esm/models/createmanagerresponsepublicendpointtargetmachineaddresses2.js +1450 -0
  32. package/esm/models/createmanagerresponsepublicendpointtargetmachineaddresses2.js.map +1 -0
  33. package/esm/models/createmanagerresponsepublicendpointtargetunion2.d.ts +4 -1715
  34. package/esm/models/createmanagerresponsepublicendpointtargetunion2.d.ts.map +1 -1
  35. package/esm/models/createmanagerresponsepublicendpointtargetunion2.js +4 -1444
  36. package/esm/models/createmanagerresponsepublicendpointtargetunion2.js.map +1 -1
  37. package/esm/models/createsetupregistrationoperationrequest.d.ts +35 -0
  38. package/esm/models/createsetupregistrationoperationrequest.d.ts.map +1 -1
  39. package/esm/models/createsetupregistrationoperationrequest.js +14 -0
  40. package/esm/models/createsetupregistrationoperationrequest.js.map +1 -1
  41. package/esm/models/deployment.d.ts +44 -8
  42. package/esm/models/deployment.d.ts.map +1 -1
  43. package/esm/models/deployment.js +21 -4
  44. package/esm/models/deployment.js.map +1 -1
  45. package/esm/models/deploymentcomputeplan.d.ts +3 -0
  46. package/esm/models/deploymentcomputeplan.d.ts.map +1 -1
  47. package/esm/models/deploymentcomputeplan.js +3 -0
  48. package/esm/models/deploymentcomputeplan.js.map +1 -1
  49. package/esm/models/deploymentconfig.d.ts +32 -0
  50. package/esm/models/deploymentconfig.d.ts.map +1 -1
  51. package/esm/models/deploymentconfig.js +12 -0
  52. package/esm/models/deploymentconfig.js.map +1 -1
  53. package/esm/models/deploymentdetailresponse.d.ts +44 -8
  54. package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
  55. package/esm/models/deploymentdetailresponse.js +16 -4
  56. package/esm/models/deploymentdetailresponse.js.map +1 -1
  57. package/esm/models/deploymentdetailresponsependingpreparedstackdefaultunion.d.ts +1986 -0
  58. package/esm/models/deploymentdetailresponsependingpreparedstackdefaultunion.d.ts.map +1 -0
  59. package/esm/models/deploymentdetailresponsependingpreparedstackdefaultunion.js +1485 -0
  60. package/esm/models/deploymentdetailresponsependingpreparedstackdefaultunion.js.map +1 -0
  61. package/esm/models/deploymentdetailresponsependingpreparedstacktypeenvenum.d.ts +3 -1966
  62. package/esm/models/deploymentdetailresponsependingpreparedstacktypeenvenum.d.ts.map +1 -1
  63. package/esm/models/deploymentdetailresponsependingpreparedstacktypeenvenum.js +4 -1481
  64. package/esm/models/deploymentdetailresponsependingpreparedstacktypeenvenum.js.map +1 -1
  65. package/esm/models/deploymentdetailresponsepreparedstackoperations.d.ts +4 -2363
  66. package/esm/models/deploymentdetailresponsepreparedstackoperations.d.ts.map +1 -1
  67. package/esm/models/deploymentdetailresponsepreparedstackoperations.js +4 -1560
  68. package/esm/models/deploymentdetailresponsepreparedstackoperations.js.map +1 -1
  69. package/esm/models/deploymentdetailresponsepreparedstackplugins.d.ts +2359 -0
  70. package/esm/models/deploymentdetailresponsepreparedstackplugins.d.ts.map +1 -0
  71. package/esm/models/deploymentdetailresponsepreparedstackplugins.js +1562 -0
  72. package/esm/models/deploymentdetailresponsepreparedstackplugins.js.map +1 -0
  73. package/esm/models/deploymentinfo.d.ts +184 -12
  74. package/esm/models/deploymentinfo.d.ts.map +1 -1
  75. package/esm/models/deploymentinfo.js +127 -9
  76. package/esm/models/deploymentinfo.js.map +1 -1
  77. package/esm/models/deploymentpendingpreparedstackdefaultunion.d.ts +1986 -0
  78. package/esm/models/deploymentpendingpreparedstackdefaultunion.d.ts.map +1 -0
  79. package/esm/models/deploymentpendingpreparedstackdefaultunion.js +1410 -0
  80. package/esm/models/deploymentpendingpreparedstackdefaultunion.js.map +1 -0
  81. package/esm/models/deploymentpendingpreparedstacktypeenvenum.d.ts +3 -1966
  82. package/esm/models/deploymentpendingpreparedstacktypeenvenum.d.ts.map +1 -1
  83. package/esm/models/deploymentpendingpreparedstacktypeenvenum.js +4 -1406
  84. package/esm/models/deploymentpendingpreparedstacktypeenvenum.js.map +1 -1
  85. package/esm/models/deploymentpreparedstackoperations.d.ts +4 -2363
  86. package/esm/models/deploymentpreparedstackoperations.d.ts.map +1 -1
  87. package/esm/models/deploymentpreparedstackoperations.js +4 -1460
  88. package/esm/models/deploymentpreparedstackoperations.js.map +1 -1
  89. package/esm/models/deploymentpreparedstackplugins.d.ts +2359 -0
  90. package/esm/models/deploymentpreparedstackplugins.d.ts.map +1 -0
  91. package/esm/models/deploymentpreparedstackplugins.js +1461 -0
  92. package/esm/models/deploymentpreparedstackplugins.js.map +1 -0
  93. package/esm/models/deploymentsetupconfiginput.d.ts +18 -0
  94. package/esm/models/deploymentsetupconfiginput.d.ts.map +1 -1
  95. package/esm/models/deploymentsetupconfiginput.js +10 -0
  96. package/esm/models/deploymentsetupconfiginput.js.map +1 -1
  97. package/esm/models/deploymentsetuppolicy.d.ts +20 -0
  98. package/esm/models/deploymentsetuppolicy.d.ts.map +1 -1
  99. package/esm/models/deploymentsetuppolicy.js +15 -0
  100. package/esm/models/deploymentsetuppolicy.js.map +1 -1
  101. package/esm/models/deploymentsetupstacksettingspolicy.d.ts +37 -0
  102. package/esm/models/deploymentsetupstacksettingspolicy.d.ts.map +1 -1
  103. package/esm/models/deploymentsetupstacksettingspolicy.js +18 -0
  104. package/esm/models/deploymentsetupstacksettingspolicy.js.map +1 -1
  105. package/esm/models/importsource.d.ts +35 -0
  106. package/esm/models/importsource.d.ts.map +1 -1
  107. package/esm/models/importsource.js +12 -0
  108. package/esm/models/importsource.js.map +1 -1
  109. package/esm/models/managerretryresponse.d.ts +43 -2
  110. package/esm/models/managerretryresponse.d.ts.map +1 -1
  111. package/esm/models/managerretryresponse.js +29 -4
  112. package/esm/models/managerretryresponse.js.map +1 -1
  113. package/esm/models/managerretryresponsedomains2.d.ts +4 -1729
  114. package/esm/models/managerretryresponsedomains2.d.ts.map +1 -1
  115. package/esm/models/managerretryresponsedomains2.js +4 -1425
  116. package/esm/models/managerretryresponsedomains2.js.map +1 -1
  117. package/esm/models/managerretryresponseproviderazureapplicationgatewayforcontainers2.d.ts +1794 -0
  118. package/esm/models/managerretryresponseproviderazureapplicationgatewayforcontainers2.d.ts.map +1 -0
  119. package/esm/models/managerretryresponseproviderazureapplicationgatewayforcontainers2.js +1416 -0
  120. package/esm/models/managerretryresponseproviderazureapplicationgatewayforcontainers2.js.map +1 -0
  121. package/esm/models/managerretryresponseprovidergkegateway2.d.ts +6 -1757
  122. package/esm/models/managerretryresponseprovidergkegateway2.d.ts.map +1 -1
  123. package/esm/models/managerretryresponseprovidergkegateway2.js +6 -1401
  124. package/esm/models/managerretryresponseprovidergkegateway2.js.map +1 -1
  125. package/esm/models/managerretryresponsepublicendpointtargetunion2.d.ts +1749 -0
  126. package/esm/models/managerretryresponsepublicendpointtargetunion2.d.ts.map +1 -0
  127. package/esm/models/managerretryresponsepublicendpointtargetunion2.js +1428 -0
  128. package/esm/models/managerretryresponsepublicendpointtargetunion2.js.map +1 -0
  129. package/esm/models/newdeploymentrequest.d.ts +35 -0
  130. package/esm/models/newdeploymentrequest.d.ts.map +1 -1
  131. package/esm/models/newdeploymentrequest.js +13 -0
  132. package/esm/models/newdeploymentrequest.js.map +1 -1
  133. package/esm/models/operations/plandeploymentcompute.d.ts +35 -0
  134. package/esm/models/operations/plandeploymentcompute.d.ts.map +1 -1
  135. package/esm/models/operations/plandeploymentcompute.js +13 -0
  136. package/esm/models/operations/plandeploymentcompute.js.map +1 -1
  137. package/esm/models/operations/preparedeploymentstack.d.ts +35 -0
  138. package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
  139. package/esm/models/operations/preparedeploymentstack.js +13 -0
  140. package/esm/models/operations/preparedeploymentstack.js.map +1 -1
  141. package/esm/models/package.d.ts +134 -0
  142. package/esm/models/package.d.ts.map +1 -1
  143. package/esm/models/package.js +99 -0
  144. package/esm/models/package.js.map +1 -1
  145. package/esm/models/persistimporteddeploymentrequest.d.ts +38 -8
  146. package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
  147. package/esm/models/persistimporteddeploymentrequest.js +14 -4
  148. package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
  149. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom1.d.ts +5 -2412
  150. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom1.d.ts.map +1 -1
  151. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom1.js +4 -1458
  152. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom1.js.map +1 -1
  153. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom2.d.ts +2435 -0
  154. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom2.d.ts.map +1 -0
  155. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom2.js +1463 -0
  156. package/esm/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom2.js.map +1 -0
  157. package/esm/models/persistimporteddeploymentrequestpreparedstackoverrideconditionstack.d.ts +5 -3089
  158. package/esm/models/persistimporteddeploymentrequestpreparedstackoverrideconditionstack.d.ts.map +1 -1
  159. package/esm/models/persistimporteddeploymentrequestpreparedstackoverrideconditionstack.js +4 -1535
  160. package/esm/models/persistimporteddeploymentrequestpreparedstackoverrideconditionstack.js.map +1 -1
  161. package/esm/models/persistimporteddeploymentrequestpreparedstackoverridegcpresource.d.ts +3088 -0
  162. package/esm/models/persistimporteddeploymentrequestpreparedstackoverridegcpresource.d.ts.map +1 -0
  163. package/esm/models/persistimporteddeploymentrequestpreparedstackoverridegcpresource.js +1535 -0
  164. package/esm/models/persistimporteddeploymentrequestpreparedstackoverridegcpresource.js.map +1 -0
  165. package/esm/models/projectrole.d.ts +1 -0
  166. package/esm/models/projectrole.d.ts.map +1 -1
  167. package/esm/models/projectrole.js +1 -0
  168. package/esm/models/projectrole.js.map +1 -1
  169. package/esm/models/stacksettings.d.ts +35 -0
  170. package/esm/models/stacksettings.d.ts.map +1 -1
  171. package/esm/models/stacksettings.js +12 -0
  172. package/esm/models/stacksettings.js.map +1 -1
  173. package/esm/models/synclistresponse.d.ts +40 -8
  174. package/esm/models/synclistresponse.d.ts.map +1 -1
  175. package/esm/models/synclistresponse.js +13 -4
  176. package/esm/models/synclistresponse.js.map +1 -1
  177. package/esm/models/synclistresponsependingpreparedstackdefaultunion.d.ts +1986 -0
  178. package/esm/models/synclistresponsependingpreparedstackdefaultunion.d.ts.map +1 -0
  179. package/esm/models/synclistresponsependingpreparedstackdefaultunion.js +1433 -0
  180. package/esm/models/synclistresponsependingpreparedstackdefaultunion.js.map +1 -0
  181. package/esm/models/synclistresponsependingpreparedstacktypeenvenum.d.ts +3 -1966
  182. package/esm/models/synclistresponsependingpreparedstacktypeenvenum.d.ts.map +1 -1
  183. package/esm/models/synclistresponsependingpreparedstacktypeenvenum.js +4 -1429
  184. package/esm/models/synclistresponsependingpreparedstacktypeenvenum.js.map +1 -1
  185. package/esm/models/synclistresponsepreparedstackoperations.d.ts +4 -2363
  186. package/esm/models/synclistresponsepreparedstackoperations.d.ts.map +1 -1
  187. package/esm/models/synclistresponsepreparedstackoperations.js +4 -1519
  188. package/esm/models/synclistresponsepreparedstackoperations.js.map +1 -1
  189. package/esm/models/synclistresponsepreparedstackplugins.d.ts +2359 -0
  190. package/esm/models/synclistresponsepreparedstackplugins.d.ts.map +1 -0
  191. package/esm/models/synclistresponsepreparedstackplugins.js +1521 -0
  192. package/esm/models/synclistresponsepreparedstackplugins.js.map +1 -0
  193. package/esm/models/targetdeployment.d.ts +179 -1
  194. package/esm/models/targetdeployment.d.ts.map +1 -1
  195. package/esm/models/targetdeployment.js +35 -2
  196. package/esm/models/targetdeployment.js.map +1 -1
  197. package/esm/models/targetdeploymentconfig.d.ts +4 -2185
  198. package/esm/models/targetdeploymentconfig.d.ts.map +1 -1
  199. package/esm/models/targetdeploymentconfig.js +4 -1436
  200. package/esm/models/targetdeploymentconfig.js.map +1 -1
  201. package/esm/models/targetdeploymentvolumerestore.d.ts +2041 -0
  202. package/esm/models/targetdeploymentvolumerestore.d.ts.map +1 -0
  203. package/esm/models/targetdeploymentvolumerestore.js +1406 -0
  204. package/esm/models/targetdeploymentvolumerestore.js.map +1 -0
  205. package/esm/models/targetreleaseoperations.d.ts +21 -6
  206. package/esm/models/targetreleaseoperations.d.ts.map +1 -1
  207. package/esm/models/targetreleaseoperations.js +2 -0
  208. package/esm/models/targetreleaseoperations.js.map +1 -1
  209. package/esm/models/updatedeploymentcomputerequest.d.ts +17 -0
  210. package/esm/models/updatedeploymentcomputerequest.d.ts.map +1 -1
  211. package/esm/models/updatedeploymentcomputerequest.js +2 -0
  212. package/esm/models/updatedeploymentcomputerequest.js.map +1 -1
  213. package/esm/react-query/deploymentsUpdateCompute.d.ts +1 -1
  214. package/esm/react-query/deploymentsUpdateCompute.js +1 -1
  215. package/esm/react-query/projectsConfigureRemoteSandbox.d.ts +1 -1
  216. package/esm/react-query/projectsConfigureRemoteSandbox.js +1 -1
  217. package/esm/sdk/deployments.d.ts +1 -1
  218. package/esm/sdk/deployments.js +1 -1
  219. package/esm/sdk/projects.d.ts +1 -1
  220. package/esm/sdk/projects.js +1 -1
  221. package/jsr.json +1 -1
  222. package/package.json +3 -3
  223. package/src/funcs/apiKeysRevoke.ts +1 -1
  224. package/src/funcs/deploymentsImport.ts +1 -1
  225. package/src/funcs/deploymentsUpdateCompute.ts +1 -1
  226. package/src/funcs/projectsConfigureRemoteSandbox.ts +1 -1
  227. package/src/lib/config.ts +2 -2
  228. package/src/models/configureremotesandboxrequest.ts +6 -0
  229. package/src/models/createmanagerresponse.ts +102 -9
  230. package/src/models/createmanagerresponseproviderazureapplicationgatewayforcontainersenum2.ts +4765 -0
  231. package/src/models/createmanagerresponseprovidergkegatewayenum2.ts +7 -4743
  232. package/src/models/createmanagerresponsepublicendpointtargetmachineaddresses2.ts +4690 -0
  233. package/src/models/createmanagerresponsepublicendpointtargetunion2.ts +5 -4675
  234. package/src/models/createsetupregistrationoperationrequest.ts +48 -0
  235. package/src/models/deployment.ts +74 -12
  236. package/src/models/deploymentcomputeplan.ts +6 -0
  237. package/src/models/deploymentconfig.ts +41 -0
  238. package/src/models/deploymentdetailresponse.ts +82 -12
  239. package/src/models/deploymentdetailresponsependingpreparedstackdefaultunion.ts +4960 -0
  240. package/src/models/deploymentdetailresponsependingpreparedstacktypeenvenum.ts +4 -4936
  241. package/src/models/deploymentdetailresponsepreparedstackoperations.ts +5 -6147
  242. package/src/models/deploymentdetailresponsepreparedstackplugins.ts +6116 -0
  243. package/src/models/deploymentinfo.ts +328 -25
  244. package/src/models/deploymentpendingpreparedstackdefaultunion.ts +4443 -0
  245. package/src/models/deploymentpendingpreparedstacktypeenvenum.ts +4 -4421
  246. package/src/models/deploymentpreparedstackoperations.ts +5 -5688
  247. package/src/models/deploymentpreparedstackplugins.ts +5668 -0
  248. package/src/models/deploymentsetupconfiginput.ts +29 -0
  249. package/src/models/deploymentsetuppolicy.ts +32 -0
  250. package/src/models/deploymentsetupstacksettingspolicy.ts +57 -0
  251. package/src/models/importsource.ts +44 -0
  252. package/src/models/managerretryresponse.ts +91 -11
  253. package/src/models/managerretryresponsedomains2.ts +5 -4656
  254. package/src/models/managerretryresponseproviderazureapplicationgatewayforcontainers2.ts +4730 -0
  255. package/src/models/managerretryresponseprovidergkegateway2.ts +7 -4681
  256. package/src/models/managerretryresponsepublicendpointtargetunion2.ts +4648 -0
  257. package/src/models/newdeploymentrequest.ts +45 -0
  258. package/src/models/operations/plandeploymentcompute.ts +45 -0
  259. package/src/models/operations/preparedeploymentstack.ts +45 -0
  260. package/src/models/package.ts +263 -0
  261. package/src/models/persistimporteddeploymentrequest.ts +68 -13
  262. package/src/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom1.ts +6 -5746
  263. package/src/models/persistimporteddeploymentrequestpendingpreparedstacksettingscustom2.ts +5757 -0
  264. package/src/models/persistimporteddeploymentrequestpreparedstackoverrideconditionstack.ts +6 -7043
  265. package/src/models/persistimporteddeploymentrequestpreparedstackoverridegcpresource.ts +7041 -0
  266. package/src/models/projectrole.ts +1 -0
  267. package/src/models/stacksettings.ts +44 -0
  268. package/src/models/synclistresponse.ts +71 -12
  269. package/src/models/synclistresponsependingpreparedstackdefaultunion.ts +4604 -0
  270. package/src/models/synclistresponsependingpreparedstacktypeenvenum.ts +4 -4583
  271. package/src/models/synclistresponsepreparedstackoperations.ts +5 -5899
  272. package/src/models/synclistresponsepreparedstackplugins.ts +5873 -0
  273. package/src/models/targetdeployment.ts +236 -4
  274. package/src/models/targetdeploymentconfig.ts +5 -4878
  275. package/src/models/targetdeploymentvolumerestore.ts +4671 -0
  276. package/src/models/targetreleaseoperations.ts +23 -6
  277. package/src/models/updatedeploymentcomputerequest.ts +19 -0
  278. package/src/react-query/deploymentsUpdateCompute.ts +1 -1
  279. package/src/react-query/projectsConfigureRemoteSandbox.ts +1 -1
  280. package/src/sdk/deployments.ts +1 -1
  281. package/src/sdk/projects.ts +1 -1
@@ -1,4421 +1,4 @@
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 {
8
- collectExtraKeys as collectExtraKeys$,
9
- safeParse,
10
- } from "../lib/schemas.js";
11
- import { ClosedEnum } from "../types/enums.js";
12
- import { Result as SafeParseResult } from "../types/fp.js";
13
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
14
- import {
15
- ExternalBindingUnion,
16
- ExternalBindingUnion$inboundSchema,
17
- } from "./externalbindingunion.js";
18
-
19
- /**
20
- * Deployment status in the deployment lifecycle.
21
- *
22
- * @remarks
23
- *
24
- * For observe-only deployments with no release or stack state, `Running`
25
- * means the Operator is attached. Connectivity comes from `lastHeartbeatAt`;
26
- * resource health comes from inventory and resource heartbeat data.
27
- */
28
- export const DeploymentStatus = {
29
- Pending: "pending",
30
- PreflightsFailed: "preflights-failed",
31
- InitialSetup: "initial-setup",
32
- InitialSetupFailed: "initial-setup-failed",
33
- Provisioning: "provisioning",
34
- WaitingForMachines: "waiting-for-machines",
35
- WaitingForSecrets: "waiting-for-secrets",
36
- ProvisioningFailed: "provisioning-failed",
37
- Running: "running",
38
- RefreshFailed: "refresh-failed",
39
- UpdatePending: "update-pending",
40
- Updating: "updating",
41
- UpdateFailed: "update-failed",
42
- DeletePending: "delete-pending",
43
- Deleting: "deleting",
44
- DeleteFailed: "delete-failed",
45
- TeardownRequired: "teardown-required",
46
- TeardownFailed: "teardown-failed",
47
- Deleted: "deleted",
48
- Error: "error",
49
- } as const;
50
- /**
51
- * Deployment status in the deployment lifecycle.
52
- *
53
- * @remarks
54
- *
55
- * For observe-only deployments with no release or stack state, `Running`
56
- * means the Operator is attached. Connectivity comes from `lastHeartbeatAt`;
57
- * resource health comes from inventory and resource heartbeat data.
58
- */
59
- export type DeploymentStatus = ClosedEnum<typeof DeploymentStatus>;
60
-
61
- /**
62
- * Target platform for the deployment
63
- */
64
- export const DeploymentPlatform = {
65
- Aws: "aws",
66
- Gcp: "gcp",
67
- Azure: "azure",
68
- Kubernetes: "kubernetes",
69
- Machines: "machines",
70
- Local: "local",
71
- Test: "test",
72
- } as const;
73
- /**
74
- * Target platform for the deployment
75
- */
76
- export type DeploymentPlatform = ClosedEnum<typeof DeploymentPlatform>;
77
-
78
- /**
79
- * Underlying cloud platform for Kubernetes deployments.
80
- */
81
- export const DeploymentBasePlatform = {
82
- Aws: "aws",
83
- Gcp: "gcp",
84
- Azure: "azure",
85
- } as const;
86
- /**
87
- * Underlying cloud platform for Kubernetes deployments.
88
- */
89
- export type DeploymentBasePlatform = ClosedEnum<typeof DeploymentBasePlatform>;
90
-
91
- export const DeploymentPlatformTest = {
92
- Test: "test",
93
- } as const;
94
- export type DeploymentPlatformTest = ClosedEnum<typeof DeploymentPlatformTest>;
95
-
96
- /**
97
- * Test platform environment information (mock)
98
- */
99
- export type DeploymentEnvironmentInfoTest = {
100
- /**
101
- * Test identifier for this environment
102
- */
103
- testId: string;
104
- platform: DeploymentPlatformTest;
105
- };
106
-
107
- export const DeploymentPlatformLocal = {
108
- Local: "local",
109
- } as const;
110
- export type DeploymentPlatformLocal = ClosedEnum<
111
- typeof DeploymentPlatformLocal
112
- >;
113
-
114
- /**
115
- * Local platform environment information
116
- */
117
- export type DeploymentEnvironmentInfoLocal = {
118
- /**
119
- * Architecture (e.g., "x86_64", "aarch64")
120
- */
121
- arch: string;
122
- /**
123
- * Hostname of the machine running the deployment
124
- */
125
- hostname: string;
126
- /**
127
- * Operating system (e.g., "linux", "macos", "windows")
128
- */
129
- os: string;
130
- platform: DeploymentPlatformLocal;
131
- };
132
-
133
- export const DeploymentPlatformAzure = {
134
- Azure: "azure",
135
- } as const;
136
- export type DeploymentPlatformAzure = ClosedEnum<
137
- typeof DeploymentPlatformAzure
138
- >;
139
-
140
- /**
141
- * Azure-specific environment information
142
- */
143
- export type DeploymentEnvironmentInfoAzure = {
144
- /**
145
- * Azure location/region
146
- */
147
- location: string;
148
- /**
149
- * Azure subscription ID
150
- */
151
- subscriptionId: string;
152
- /**
153
- * Azure tenant ID
154
- */
155
- tenantId: string;
156
- platform: DeploymentPlatformAzure;
157
- };
158
-
159
- export const DeploymentPlatformGcp = {
160
- Gcp: "gcp",
161
- } as const;
162
- export type DeploymentPlatformGcp = ClosedEnum<typeof DeploymentPlatformGcp>;
163
-
164
- /**
165
- * GCP-specific environment information
166
- */
167
- export type DeploymentEnvironmentInfoGcp = {
168
- /**
169
- * GCP project ID (e.g., "my-project")
170
- */
171
- projectId: string;
172
- /**
173
- * GCP project number (e.g., "123456789012")
174
- */
175
- projectNumber: string;
176
- /**
177
- * GCP region
178
- */
179
- region: string;
180
- platform: DeploymentPlatformGcp;
181
- };
182
-
183
- export const DeploymentPlatformAws = {
184
- Aws: "aws",
185
- } as const;
186
- export type DeploymentPlatformAws = ClosedEnum<typeof DeploymentPlatformAws>;
187
-
188
- /**
189
- * AWS-specific environment information
190
- */
191
- export type DeploymentEnvironmentInfoAws = {
192
- /**
193
- * AWS account ID
194
- */
195
- accountId: string;
196
- /**
197
- * AWS region
198
- */
199
- region: string;
200
- platform: DeploymentPlatformAws;
201
- };
202
-
203
- /**
204
- * Cloud environment information
205
- */
206
- export type DeploymentEnvironmentInfoUnion =
207
- | DeploymentEnvironmentInfoGcp
208
- | DeploymentEnvironmentInfoAzure
209
- | DeploymentEnvironmentInfoLocal
210
- | DeploymentEnvironmentInfoAws
211
- | DeploymentEnvironmentInfoTest
212
- | string;
213
-
214
- /**
215
- * Deployment-time resource allocation for a container. Omitted fields use release defaults.
216
- */
217
- export type DeploymentContainers = {
218
- /**
219
- * CPU allocation in vCPUs.
220
- */
221
- cpu?: number | null | undefined;
222
- /**
223
- * Memory allocation, using binary units such as Mi or Gi.
224
- */
225
- memory?: string | null | undefined;
226
- };
227
-
228
- /**
229
- * Failure-domain policy selected for a compute pool.
230
- */
231
- export type DeploymentFailureDomains2 = {
232
- /**
233
- * Concrete provider domains selected during setup.
234
- *
235
- * @remarks
236
- * Empty delegates deterministic selection to the provider setup implementation.
237
- */
238
- selectedFailureDomains?: Array<string> | undefined;
239
- /**
240
- * Number of distinct failure domains across which new stateful replicas may be spread.
241
- */
242
- spread: number;
243
- };
244
-
245
- export type DeploymentFailureDomainsUnion2 = DeploymentFailureDomains2 | string;
246
-
247
- export type DeploymentPoolsAutoscale = {
248
- failureDomains?: DeploymentFailureDomains2 | string | null | undefined;
249
- /**
250
- * Provider machine type selected for this deployment.
251
- */
252
- machine?: string | null | undefined;
253
- /**
254
- * Maximum machine count.
255
- */
256
- max: number;
257
- /**
258
- * Minimum machine count.
259
- */
260
- min: number;
261
- mode: "autoscale";
262
- };
263
-
264
- /**
265
- * Failure-domain policy selected for a compute pool.
266
- */
267
- export type DeploymentFailureDomains1 = {
268
- /**
269
- * Concrete provider domains selected during setup.
270
- *
271
- * @remarks
272
- * Empty delegates deterministic selection to the provider setup implementation.
273
- */
274
- selectedFailureDomains?: Array<string> | undefined;
275
- /**
276
- * Number of distinct failure domains across which new stateful replicas may be spread.
277
- */
278
- spread: number;
279
- };
280
-
281
- export type DeploymentFailureDomainsUnion1 = DeploymentFailureDomains1 | string;
282
-
283
- export type DeploymentPoolsFixed = {
284
- failureDomains?: DeploymentFailureDomains1 | string | null | undefined;
285
- /**
286
- * Provider machine type selected for this deployment.
287
- */
288
- machine?: string | null | undefined;
289
- /**
290
- * Number of machines to run.
291
- */
292
- machines: number;
293
- mode: "fixed";
294
- };
295
-
296
- /**
297
- * User-selected deployment settings for one compute pool.
298
- */
299
- export type DeploymentPoolsUnion =
300
- | DeploymentPoolsFixed
301
- | DeploymentPoolsAutoscale;
302
-
303
- /**
304
- * Deployment-time compute choices for Alien-managed compute pools.
305
- *
306
- * @remarks
307
- *
308
- * Application source declares portable pool requirements. This settings
309
- * object stores the concrete choices made for one deployment, such as the
310
- * provider machine type and selected machine counts.
311
- */
312
- export type DeploymentCompute = {
313
- /**
314
- * Per-replica resources selected within each container's declared ranges.
315
- */
316
- containers?: { [k: string]: DeploymentContainers } | undefined;
317
- /**
318
- * Selected compute choices keyed by pool ID.
319
- */
320
- pools?:
321
- | { [k: string]: DeploymentPoolsFixed | DeploymentPoolsAutoscale }
322
- | undefined;
323
- };
324
-
325
- export type DeploymentComputeUnion = DeploymentCompute | string;
326
-
327
- /**
328
- * Deployment model: how updates are delivered to the remote environment.
329
- */
330
- export const DeploymentDeploymentModel = {
331
- Push: "push",
332
- Pull: "pull",
333
- } as const;
334
- /**
335
- * Deployment model: how updates are delivered to the remote environment.
336
- */
337
- export type DeploymentDeploymentModel = ClosedEnum<
338
- typeof DeploymentDeploymentModel
339
- >;
340
-
341
- export type DeploymentAws = {
342
- certificateArn: string;
343
- };
344
-
345
- export type DeploymentAwsUnion = DeploymentAws | string;
346
-
347
- export type DeploymentAzureStackSettings = {
348
- keyVaultCertificateId: string;
349
- keyVaultResourceId?: string | null | undefined;
350
- };
351
-
352
- export type DeploymentAzureUnion = DeploymentAzureStackSettings | string;
353
-
354
- export type DeploymentGcpStackSettings = {
355
- certificateName: string;
356
- };
357
-
358
- export type DeploymentGcpUnion = DeploymentGcpStackSettings | string;
359
-
360
- /**
361
- * Namespace-scoped Kubernetes TLS Secret reference.
362
- */
363
- export type DeploymentTlsSecretRef = {
364
- /**
365
- * Secret namespace. Defaults to the release namespace when omitted.
366
- */
367
- namespace?: string | null | undefined;
368
- /**
369
- * Secret name.
370
- */
371
- secretName: string;
372
- };
373
-
374
- export type DeploymentDomainsKubernetes = {
375
- /**
376
- * Namespace-scoped Kubernetes TLS Secret reference.
377
- */
378
- tlsSecretRef: DeploymentTlsSecretRef;
379
- };
380
-
381
- export type DeploymentDomainsKubernetesUnion =
382
- | DeploymentDomainsKubernetes
383
- | string;
384
-
385
- /**
386
- * Platform-specific certificate references for custom domains.
387
- */
388
- export type DeploymentDomainsCertificate = {
389
- aws?: DeploymentAws | string | null | undefined;
390
- azure?: DeploymentAzureStackSettings | string | null | undefined;
391
- gcp?: DeploymentGcpStackSettings | string | null | undefined;
392
- kubernetes?: DeploymentDomainsKubernetes | string | null | undefined;
393
- };
394
-
395
- /**
396
- * Custom domain configuration for a single resource.
397
- */
398
- export type DeploymentCustomDomains = {
399
- /**
400
- * Platform-specific certificate references for custom domains.
401
- */
402
- certificate: DeploymentDomainsCertificate;
403
- /**
404
- * Fully qualified domain name to use.
405
- */
406
- domain: string;
407
- };
408
-
409
- export const DeploymentModeLoadBalancer = {
410
- LoadBalancer: "loadBalancer",
411
- } as const;
412
- export type DeploymentModeLoadBalancer = ClosedEnum<
413
- typeof DeploymentModeLoadBalancer
414
- >;
415
-
416
- export type DeploymentPublicEndpointTargetLoadBalancer = {
417
- /**
418
- * DNS name or URL for the external load balancer.
419
- */
420
- cnameTarget: string;
421
- mode: DeploymentModeLoadBalancer;
422
- };
423
-
424
- export const DeploymentModeMachineAddresses = {
425
- MachineAddresses: "machineAddresses",
426
- } as const;
427
- export type DeploymentModeMachineAddresses = ClosedEnum<
428
- typeof DeploymentModeMachineAddresses
429
- >;
430
-
431
- export type DeploymentPublicEndpointTargetMachineAddresses = {
432
- mode: DeploymentModeMachineAddresses;
433
- };
434
-
435
- export type DeploymentPublicEndpointTargetUnion =
436
- | DeploymentPublicEndpointTargetLoadBalancer
437
- | DeploymentPublicEndpointTargetMachineAddresses
438
- | string;
439
-
440
- /**
441
- * Domain configuration for the stack.
442
- *
443
- * @remarks
444
- *
445
- * When `custom_domains` is set, the specified resources use customer-provided
446
- * domains and certificates. Otherwise, Alien auto-generates domains.
447
- */
448
- export type DeploymentDomains = {
449
- /**
450
- * Custom domain configuration per resource ID.
451
- */
452
- customDomains?: { [k: string]: DeploymentCustomDomains } | null | undefined;
453
- publicEndpointTarget?:
454
- | DeploymentPublicEndpointTargetLoadBalancer
455
- | DeploymentPublicEndpointTargetMachineAddresses
456
- | string
457
- | null
458
- | undefined;
459
- };
460
-
461
- export type DeploymentDomainsUnion = DeploymentDomains | string;
462
-
463
- /**
464
- * Reachability of the deployment's public endpoints, fixed at setup.
465
- */
466
- export const DeploymentEndpointAccess = {
467
- Internet: "internet",
468
- Private: "private",
469
- } as const;
470
- /**
471
- * Reachability of the deployment's public endpoints, fixed at setup.
472
- */
473
- export type DeploymentEndpointAccess = ClosedEnum<
474
- typeof DeploymentEndpointAccess
475
- >;
476
-
477
- /**
478
- * How heartbeat health checks are handled.
479
- */
480
- export const DeploymentHeartbeats = {
481
- Off: "off",
482
- On: "on",
483
- } as const;
484
- /**
485
- * How heartbeat health checks are handled.
486
- */
487
- export type DeploymentHeartbeats = ClosedEnum<typeof DeploymentHeartbeats>;
488
-
489
- /**
490
- * Optional provider-specific identity for a cloud-backed Kubernetes cluster.
491
- */
492
- export type DeploymentCloud = {
493
- accountId?: string | null | undefined;
494
- clusterId?: string | null | undefined;
495
- clusterName?: string | null | undefined;
496
- projectId?: string | null | undefined;
497
- region?: string | null | undefined;
498
- resourceGroup?: string | null | undefined;
499
- subscriptionId?: string | null | undefined;
500
- };
501
-
502
- export type DeploymentCloudUnion = DeploymentCloud | string;
503
-
504
- /**
505
- * Ownership model for the Kubernetes cluster.
506
- */
507
- export const DeploymentOwnership = {
508
- Managed: "managed",
509
- Existing: "existing",
510
- External: "external",
511
- } as const;
512
- /**
513
- * Ownership model for the Kubernetes cluster.
514
- */
515
- export type DeploymentOwnership = ClosedEnum<typeof DeploymentOwnership>;
516
-
517
- /**
518
- * Kubernetes cluster setup settings.
519
- */
520
- export type DeploymentCluster = {
521
- cloud?: DeploymentCloud | string | null | undefined;
522
- /**
523
- * Namespace where the Alien chart and application resources run.
524
- */
525
- namespace?: string | null | undefined;
526
- /**
527
- * Ownership model for the Kubernetes cluster.
528
- */
529
- ownership: DeploymentOwnership;
530
- };
531
-
532
- export type DeploymentClusterUnion = DeploymentCluster | string;
533
-
534
- export type DeploymentCertificateNone2 = {
535
- mode: "none";
536
- };
537
-
538
- export type DeploymentCertificateManagedTLSSecret2 = {
539
- mode: "managedTlsSecret";
540
- /**
541
- * Secret name template. Runtime may substitute resource/deployment tokens.
542
- */
543
- secretNameTemplate: string;
544
- };
545
-
546
- export type DeploymentCertificateAwsAcmArn2 = {
547
- /**
548
- * Existing ACM certificate ARN.
549
- */
550
- certificateArn: string;
551
- mode: "awsAcmArn";
552
- };
553
-
554
- export type DeploymentCertificateManagedAcmImport2 = {
555
- mode: "managedAcmImport";
556
- /**
557
- * ACM region. Defaults to the deployment region when omitted.
558
- */
559
- region?: string | null | undefined;
560
- /**
561
- * Tags applied to runtime-imported ACM certificates.
562
- */
563
- tags?: { [k: string]: string } | undefined;
564
- };
565
-
566
- /**
567
- * Namespace-scoped Kubernetes TLS Secret reference.
568
- */
569
- export type DeploymentCertificateTLSSecretRef2 = {
570
- /**
571
- * Secret namespace. Defaults to the release namespace when omitted.
572
- */
573
- namespace?: string | null | undefined;
574
- /**
575
- * Secret name.
576
- */
577
- secretName: string;
578
- mode: "tlsSecretRef";
579
- };
580
-
581
- /**
582
- * Certificate publication or reference mode for Kubernetes public endpoints.
583
- */
584
- export type DeploymentCertificateUnion2 =
585
- | DeploymentCertificateTLSSecretRef2
586
- | DeploymentCertificateManagedAcmImport2
587
- | DeploymentCertificateAwsAcmArn2
588
- | DeploymentCertificateManagedTLSSecret2
589
- | DeploymentCertificateNone2;
590
-
591
- export const DeploymentModeCustom = {
592
- Custom: "custom",
593
- } as const;
594
- export type DeploymentModeCustom = ClosedEnum<typeof DeploymentModeCustom>;
595
-
596
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum4 = {
597
- AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers",
598
- } as const;
599
- export type DeploymentProviderAzureApplicationGatewayForContainersEnum4 =
600
- ClosedEnum<
601
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum4
602
- >;
603
-
604
- export type DeploymentProviderAzureApplicationGatewayForContainers4 = {
605
- /**
606
- * Optional ALB name when using BYO Application Gateway resources.
607
- */
608
- albName?: string | null | undefined;
609
- /**
610
- * Optional ALB namespace when using BYO Application Gateway resources.
611
- */
612
- albNamespace?: string | null | undefined;
613
- /**
614
- * Public or internal frontend exposure.
615
- */
616
- frontend: string;
617
- provider: DeploymentProviderAzureApplicationGatewayForContainersEnum4;
618
- };
619
-
620
- export const DeploymentProviderGkeGatewayEnum4 = {
621
- GkeGateway: "gkeGateway",
622
- } as const;
623
- export type DeploymentProviderGkeGatewayEnum4 = ClosedEnum<
624
- typeof DeploymentProviderGkeGatewayEnum4
625
- >;
626
-
627
- export type DeploymentProviderGkeGateway4 = {
628
- provider: DeploymentProviderGkeGatewayEnum4;
629
- /**
630
- * Optional static address name for the Gateway frontend.
631
- */
632
- staticAddressName?: string | null | undefined;
633
- };
634
-
635
- export const DeploymentProviderAwsAlbEnum4 = {
636
- AwsAlb: "awsAlb",
637
- } as const;
638
- export type DeploymentProviderAwsAlbEnum4 = ClosedEnum<
639
- typeof DeploymentProviderAwsAlbEnum4
640
- >;
641
-
642
- export type DeploymentProviderAwsAlb4 = {
643
- /**
644
- * Optional ALB IP address type, such as `dualstack`.
645
- */
646
- ipAddressType?: string | null | undefined;
647
- provider: DeploymentProviderAwsAlbEnum4;
648
- /**
649
- * Internet-facing or internal ALB scheme.
650
- */
651
- scheme: string;
652
- /**
653
- * Explicit subnet IDs when the profile cannot rely on controller discovery.
654
- */
655
- subnetIds?: Array<string> | undefined;
656
- /**
657
- * ALB target type, usually `ip`.
658
- */
659
- targetType: string;
660
- };
661
-
662
- export type DeploymentProviderUnion4 =
663
- | DeploymentProviderAwsAlb4
664
- | DeploymentProviderAzureApplicationGatewayForContainers4
665
- | DeploymentProviderGkeGateway4
666
- | string;
667
-
668
- /**
669
- * Shared Gateway API route profile values.
670
- */
671
- export type DeploymentRouteGateway2 = {
672
- /**
673
- * Annotations applied to route objects.
674
- */
675
- annotations?: { [k: string]: string } | undefined;
676
- /**
677
- * Route controller identifier, for example a cloud Gateway controller.
678
- */
679
- controller?: string | null | undefined;
680
- /**
681
- * GatewayClass selected for generated Gateways.
682
- */
683
- gatewayClassName: string;
684
- /**
685
- * Labels applied to route objects.
686
- */
687
- labels?: { [k: string]: string } | undefined;
688
- /**
689
- * Listener port, usually 443.
690
- */
691
- listenerPort: number;
692
- provider?:
693
- | DeploymentProviderAwsAlb4
694
- | DeploymentProviderAzureApplicationGatewayForContainers4
695
- | DeploymentProviderGkeGateway4
696
- | string
697
- | null
698
- | undefined;
699
- routeApi: "gateway";
700
- };
701
-
702
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum3 = {
703
- AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers",
704
- } as const;
705
- export type DeploymentProviderAzureApplicationGatewayForContainersEnum3 =
706
- ClosedEnum<
707
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum3
708
- >;
709
-
710
- export type DeploymentProviderAzureApplicationGatewayForContainers3 = {
711
- /**
712
- * Optional ALB name when using BYO Application Gateway resources.
713
- */
714
- albName?: string | null | undefined;
715
- /**
716
- * Optional ALB namespace when using BYO Application Gateway resources.
717
- */
718
- albNamespace?: string | null | undefined;
719
- /**
720
- * Public or internal frontend exposure.
721
- */
722
- frontend: string;
723
- provider: DeploymentProviderAzureApplicationGatewayForContainersEnum3;
724
- };
725
-
726
- export const DeploymentProviderGkeGatewayEnum3 = {
727
- GkeGateway: "gkeGateway",
728
- } as const;
729
- export type DeploymentProviderGkeGatewayEnum3 = ClosedEnum<
730
- typeof DeploymentProviderGkeGatewayEnum3
731
- >;
732
-
733
- export type DeploymentProviderGkeGateway3 = {
734
- provider: DeploymentProviderGkeGatewayEnum3;
735
- /**
736
- * Optional static address name for the Gateway frontend.
737
- */
738
- staticAddressName?: string | null | undefined;
739
- };
740
-
741
- export const DeploymentProviderAwsAlbEnum3 = {
742
- AwsAlb: "awsAlb",
743
- } as const;
744
- export type DeploymentProviderAwsAlbEnum3 = ClosedEnum<
745
- typeof DeploymentProviderAwsAlbEnum3
746
- >;
747
-
748
- export type DeploymentProviderAwsAlb3 = {
749
- /**
750
- * Optional ALB IP address type, such as `dualstack`.
751
- */
752
- ipAddressType?: string | null | undefined;
753
- provider: DeploymentProviderAwsAlbEnum3;
754
- /**
755
- * Internet-facing or internal ALB scheme.
756
- */
757
- scheme: string;
758
- /**
759
- * Explicit subnet IDs when the profile cannot rely on controller discovery.
760
- */
761
- subnetIds?: Array<string> | undefined;
762
- /**
763
- * ALB target type, usually `ip`.
764
- */
765
- targetType: string;
766
- };
767
-
768
- export type DeploymentProviderUnion3 =
769
- | DeploymentProviderAwsAlb3
770
- | DeploymentProviderAzureApplicationGatewayForContainers3
771
- | DeploymentProviderGkeGateway3
772
- | string;
773
-
774
- /**
775
- * Shared Ingress route profile values.
776
- */
777
- export type DeploymentRouteIngress2 = {
778
- /**
779
- * Annotations applied to route objects.
780
- */
781
- annotations?: { [k: string]: string } | undefined;
782
- /**
783
- * Route controller identifier, for example `eks.amazonaws.com/alb`.
784
- */
785
- controller?: string | null | undefined;
786
- /**
787
- * `spec.ingressClassName` for generated Ingresses.
788
- */
789
- ingressClassName: string;
790
- /**
791
- * Labels applied to route objects.
792
- */
793
- labels?: { [k: string]: string } | undefined;
794
- provider?:
795
- | DeploymentProviderAwsAlb3
796
- | DeploymentProviderAzureApplicationGatewayForContainers3
797
- | DeploymentProviderGkeGateway3
798
- | string
799
- | null
800
- | undefined;
801
- routeApi: "ingress";
802
- };
803
-
804
- /**
805
- * Kubernetes route API selected for public endpoints.
806
- */
807
- export type DeploymentRouteUnion2 =
808
- | DeploymentRouteIngress2
809
- | DeploymentRouteGateway2;
810
-
811
- export type DeploymentExposureCustom = {
812
- /**
813
- * Certificate publication or reference mode for Kubernetes public endpoints.
814
- */
815
- certificate:
816
- | DeploymentCertificateTLSSecretRef2
817
- | DeploymentCertificateManagedAcmImport2
818
- | DeploymentCertificateAwsAcmArn2
819
- | DeploymentCertificateManagedTLSSecret2
820
- | DeploymentCertificateNone2;
821
- /**
822
- * Hostname routed by the Kubernetes public endpoint.
823
- */
824
- domain: string;
825
- mode: DeploymentModeCustom;
826
- /**
827
- * Kubernetes route API selected for public endpoints.
828
- */
829
- route: DeploymentRouteIngress2 | DeploymentRouteGateway2;
830
- };
831
-
832
- export type DeploymentCertificateNone1 = {
833
- mode: "none";
834
- };
835
-
836
- export type DeploymentCertificateManagedTLSSecret1 = {
837
- mode: "managedTlsSecret";
838
- /**
839
- * Secret name template. Runtime may substitute resource/deployment tokens.
840
- */
841
- secretNameTemplate: string;
842
- };
843
-
844
- export type DeploymentCertificateAwsAcmArn1 = {
845
- /**
846
- * Existing ACM certificate ARN.
847
- */
848
- certificateArn: string;
849
- mode: "awsAcmArn";
850
- };
851
-
852
- export type DeploymentCertificateManagedAcmImport1 = {
853
- mode: "managedAcmImport";
854
- /**
855
- * ACM region. Defaults to the deployment region when omitted.
856
- */
857
- region?: string | null | undefined;
858
- /**
859
- * Tags applied to runtime-imported ACM certificates.
860
- */
861
- tags?: { [k: string]: string } | undefined;
862
- };
863
-
864
- /**
865
- * Namespace-scoped Kubernetes TLS Secret reference.
866
- */
867
- export type DeploymentCertificateTLSSecretRef1 = {
868
- /**
869
- * Secret namespace. Defaults to the release namespace when omitted.
870
- */
871
- namespace?: string | null | undefined;
872
- /**
873
- * Secret name.
874
- */
875
- secretName: string;
876
- mode: "tlsSecretRef";
877
- };
878
-
879
- /**
880
- * Certificate publication or reference mode for Kubernetes public endpoints.
881
- */
882
- export type DeploymentCertificateUnion1 =
883
- | DeploymentCertificateTLSSecretRef1
884
- | DeploymentCertificateManagedAcmImport1
885
- | DeploymentCertificateAwsAcmArn1
886
- | DeploymentCertificateManagedTLSSecret1
887
- | DeploymentCertificateNone1;
888
-
889
- export const DeploymentModeGenerated = {
890
- Generated: "generated",
891
- } as const;
892
- export type DeploymentModeGenerated = ClosedEnum<
893
- typeof DeploymentModeGenerated
894
- >;
895
-
896
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum2 = {
897
- AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers",
898
- } as const;
899
- export type DeploymentProviderAzureApplicationGatewayForContainersEnum2 =
900
- ClosedEnum<
901
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum2
902
- >;
903
-
904
- export type DeploymentProviderAzureApplicationGatewayForContainers2 = {
905
- /**
906
- * Optional ALB name when using BYO Application Gateway resources.
907
- */
908
- albName?: string | null | undefined;
909
- /**
910
- * Optional ALB namespace when using BYO Application Gateway resources.
911
- */
912
- albNamespace?: string | null | undefined;
913
- /**
914
- * Public or internal frontend exposure.
915
- */
916
- frontend: string;
917
- provider: DeploymentProviderAzureApplicationGatewayForContainersEnum2;
918
- };
919
-
920
- export const DeploymentProviderGkeGatewayEnum2 = {
921
- GkeGateway: "gkeGateway",
922
- } as const;
923
- export type DeploymentProviderGkeGatewayEnum2 = ClosedEnum<
924
- typeof DeploymentProviderGkeGatewayEnum2
925
- >;
926
-
927
- export type DeploymentProviderGkeGateway2 = {
928
- provider: DeploymentProviderGkeGatewayEnum2;
929
- /**
930
- * Optional static address name for the Gateway frontend.
931
- */
932
- staticAddressName?: string | null | undefined;
933
- };
934
-
935
- export const DeploymentProviderAwsAlbEnum2 = {
936
- AwsAlb: "awsAlb",
937
- } as const;
938
- export type DeploymentProviderAwsAlbEnum2 = ClosedEnum<
939
- typeof DeploymentProviderAwsAlbEnum2
940
- >;
941
-
942
- export type DeploymentProviderAwsAlb2 = {
943
- /**
944
- * Optional ALB IP address type, such as `dualstack`.
945
- */
946
- ipAddressType?: string | null | undefined;
947
- provider: DeploymentProviderAwsAlbEnum2;
948
- /**
949
- * Internet-facing or internal ALB scheme.
950
- */
951
- scheme: string;
952
- /**
953
- * Explicit subnet IDs when the profile cannot rely on controller discovery.
954
- */
955
- subnetIds?: Array<string> | undefined;
956
- /**
957
- * ALB target type, usually `ip`.
958
- */
959
- targetType: string;
960
- };
961
-
962
- export type DeploymentProviderUnion2 =
963
- | DeploymentProviderAwsAlb2
964
- | DeploymentProviderAzureApplicationGatewayForContainers2
965
- | DeploymentProviderGkeGateway2
966
- | string;
967
-
968
- /**
969
- * Shared Gateway API route profile values.
970
- */
971
- export type DeploymentRouteGateway1 = {
972
- /**
973
- * Annotations applied to route objects.
974
- */
975
- annotations?: { [k: string]: string } | undefined;
976
- /**
977
- * Route controller identifier, for example a cloud Gateway controller.
978
- */
979
- controller?: string | null | undefined;
980
- /**
981
- * GatewayClass selected for generated Gateways.
982
- */
983
- gatewayClassName: string;
984
- /**
985
- * Labels applied to route objects.
986
- */
987
- labels?: { [k: string]: string } | undefined;
988
- /**
989
- * Listener port, usually 443.
990
- */
991
- listenerPort: number;
992
- provider?:
993
- | DeploymentProviderAwsAlb2
994
- | DeploymentProviderAzureApplicationGatewayForContainers2
995
- | DeploymentProviderGkeGateway2
996
- | string
997
- | null
998
- | undefined;
999
- routeApi: "gateway";
1000
- };
1001
-
1002
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum1 = {
1003
- AzureApplicationGatewayForContainers: "azureApplicationGatewayForContainers",
1004
- } as const;
1005
- export type DeploymentProviderAzureApplicationGatewayForContainersEnum1 =
1006
- ClosedEnum<
1007
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum1
1008
- >;
1009
-
1010
- export type DeploymentProviderAzureApplicationGatewayForContainers1 = {
1011
- /**
1012
- * Optional ALB name when using BYO Application Gateway resources.
1013
- */
1014
- albName?: string | null | undefined;
1015
- /**
1016
- * Optional ALB namespace when using BYO Application Gateway resources.
1017
- */
1018
- albNamespace?: string | null | undefined;
1019
- /**
1020
- * Public or internal frontend exposure.
1021
- */
1022
- frontend: string;
1023
- provider: DeploymentProviderAzureApplicationGatewayForContainersEnum1;
1024
- };
1025
-
1026
- export const DeploymentProviderGkeGatewayEnum1 = {
1027
- GkeGateway: "gkeGateway",
1028
- } as const;
1029
- export type DeploymentProviderGkeGatewayEnum1 = ClosedEnum<
1030
- typeof DeploymentProviderGkeGatewayEnum1
1031
- >;
1032
-
1033
- export type DeploymentProviderGkeGateway1 = {
1034
- provider: DeploymentProviderGkeGatewayEnum1;
1035
- /**
1036
- * Optional static address name for the Gateway frontend.
1037
- */
1038
- staticAddressName?: string | null | undefined;
1039
- };
1040
-
1041
- export const DeploymentProviderAwsAlbEnum1 = {
1042
- AwsAlb: "awsAlb",
1043
- } as const;
1044
- export type DeploymentProviderAwsAlbEnum1 = ClosedEnum<
1045
- typeof DeploymentProviderAwsAlbEnum1
1046
- >;
1047
-
1048
- export type DeploymentProviderAwsAlb1 = {
1049
- /**
1050
- * Optional ALB IP address type, such as `dualstack`.
1051
- */
1052
- ipAddressType?: string | null | undefined;
1053
- provider: DeploymentProviderAwsAlbEnum1;
1054
- /**
1055
- * Internet-facing or internal ALB scheme.
1056
- */
1057
- scheme: string;
1058
- /**
1059
- * Explicit subnet IDs when the profile cannot rely on controller discovery.
1060
- */
1061
- subnetIds?: Array<string> | undefined;
1062
- /**
1063
- * ALB target type, usually `ip`.
1064
- */
1065
- targetType: string;
1066
- };
1067
-
1068
- export type DeploymentProviderUnion1 =
1069
- | DeploymentProviderAwsAlb1
1070
- | DeploymentProviderAzureApplicationGatewayForContainers1
1071
- | DeploymentProviderGkeGateway1
1072
- | string;
1073
-
1074
- /**
1075
- * Shared Ingress route profile values.
1076
- */
1077
- export type DeploymentRouteIngress1 = {
1078
- /**
1079
- * Annotations applied to route objects.
1080
- */
1081
- annotations?: { [k: string]: string } | undefined;
1082
- /**
1083
- * Route controller identifier, for example `eks.amazonaws.com/alb`.
1084
- */
1085
- controller?: string | null | undefined;
1086
- /**
1087
- * `spec.ingressClassName` for generated Ingresses.
1088
- */
1089
- ingressClassName: string;
1090
- /**
1091
- * Labels applied to route objects.
1092
- */
1093
- labels?: { [k: string]: string } | undefined;
1094
- provider?:
1095
- | DeploymentProviderAwsAlb1
1096
- | DeploymentProviderAzureApplicationGatewayForContainers1
1097
- | DeploymentProviderGkeGateway1
1098
- | string
1099
- | null
1100
- | undefined;
1101
- routeApi: "ingress";
1102
- };
1103
-
1104
- /**
1105
- * Kubernetes route API selected for public endpoints.
1106
- */
1107
- export type DeploymentRouteUnion1 =
1108
- | DeploymentRouteIngress1
1109
- | DeploymentRouteGateway1;
1110
-
1111
- export type DeploymentExposureGenerated = {
1112
- /**
1113
- * Certificate publication or reference mode for Kubernetes public endpoints.
1114
- */
1115
- certificate:
1116
- | DeploymentCertificateTLSSecretRef1
1117
- | DeploymentCertificateManagedAcmImport1
1118
- | DeploymentCertificateAwsAcmArn1
1119
- | DeploymentCertificateManagedTLSSecret1
1120
- | DeploymentCertificateNone1;
1121
- mode: DeploymentModeGenerated;
1122
- /**
1123
- * Kubernetes route API selected for public endpoints.
1124
- */
1125
- route: DeploymentRouteIngress1 | DeploymentRouteGateway1;
1126
- };
1127
-
1128
- export const DeploymentModeDisabled = {
1129
- Disabled: "disabled",
1130
- } as const;
1131
- export type DeploymentModeDisabled = ClosedEnum<typeof DeploymentModeDisabled>;
1132
-
1133
- export type DeploymentExposureDisabled = {
1134
- mode: DeploymentModeDisabled;
1135
- };
1136
-
1137
- export type DeploymentExposureUnion =
1138
- | DeploymentExposureCustom
1139
- | DeploymentExposureGenerated
1140
- | DeploymentExposureDisabled
1141
- | string;
1142
-
1143
- /**
1144
- * Kubernetes runtime substrate configuration.
1145
- *
1146
- * @remarks
1147
- *
1148
- * This controls how setup chooses the cluster backing `Platform::Kubernetes`
1149
- * deployments. When omitted, cloud-backed Kubernetes deployments default to a
1150
- * managed cluster and generic/on-prem Kubernetes defaults to an external
1151
- * cluster.
1152
- */
1153
- export type DeploymentKubernetes = {
1154
- cluster?: DeploymentCluster | string | null | undefined;
1155
- exposure?:
1156
- | DeploymentExposureCustom
1157
- | DeploymentExposureGenerated
1158
- | DeploymentExposureDisabled
1159
- | string
1160
- | null
1161
- | undefined;
1162
- };
1163
-
1164
- export type DeploymentKubernetesUnion = DeploymentKubernetes | string;
1165
-
1166
- export const DeploymentTypeByoVnetAzure = {
1167
- ByoVnetAzure: "byo-vnet-azure",
1168
- } as const;
1169
- export type DeploymentTypeByoVnetAzure = ClosedEnum<
1170
- typeof DeploymentTypeByoVnetAzure
1171
- >;
1172
-
1173
- export type DeploymentNetworkByoVnetAzure = {
1174
- /**
1175
- * Name of the dedicated classic Application Gateway subnet within the VNet.
1176
- */
1177
- applicationGatewaySubnetName?: string | null | undefined;
1178
- /**
1179
- * Name of the dedicated subnet that hosts Private Endpoints (e.g. for a
1180
- *
1181
- * @remarks
1182
- * Postgres Flexible Server). A Private Endpoint must not share the private
1183
- * subnet, which is already claimed by the Container Apps environment's
1184
- * `infrastructure_subnet_id`. Required only when the stack contains a
1185
- * Postgres resource; otherwise unused.
1186
- */
1187
- privateEndpointSubnetName?: string | null | undefined;
1188
- /**
1189
- * Name of the private subnet within the VNet
1190
- */
1191
- privateSubnetName: string;
1192
- /**
1193
- * Name of the public subnet within the VNet
1194
- */
1195
- publicSubnetName: string;
1196
- type: DeploymentTypeByoVnetAzure;
1197
- /**
1198
- * The full resource ID of the existing VNet
1199
- */
1200
- vnetResourceId: string;
1201
- };
1202
-
1203
- export const DeploymentTypeByoVpcGcp = {
1204
- ByoVpcGcp: "byo-vpc-gcp",
1205
- } as const;
1206
- export type DeploymentTypeByoVpcGcp = ClosedEnum<
1207
- typeof DeploymentTypeByoVpcGcp
1208
- >;
1209
-
1210
- export type DeploymentNetworkByoVpcGcp = {
1211
- /**
1212
- * The name of the existing VPC network
1213
- */
1214
- networkName: string;
1215
- /**
1216
- * The region of the subnet
1217
- */
1218
- region: string;
1219
- /**
1220
- * The name of the subnet to use
1221
- */
1222
- subnetName: string;
1223
- type: DeploymentTypeByoVpcGcp;
1224
- };
1225
-
1226
- export const DeploymentTypeByoVpcAws = {
1227
- ByoVpcAws: "byo-vpc-aws",
1228
- } as const;
1229
- export type DeploymentTypeByoVpcAws = ClosedEnum<
1230
- typeof DeploymentTypeByoVpcAws
1231
- >;
1232
-
1233
- export type DeploymentNetworkByoVpcAws = {
1234
- /**
1235
- * IDs of private subnets
1236
- */
1237
- privateSubnetIds: Array<string>;
1238
- /**
1239
- * IDs of public subnets (required for public ingress)
1240
- */
1241
- publicSubnetIds: Array<string>;
1242
- /**
1243
- * Optional security group IDs to use
1244
- */
1245
- securityGroupIds?: Array<string> | undefined;
1246
- type: DeploymentTypeByoVpcAws;
1247
- /**
1248
- * The ID of the existing VPC
1249
- */
1250
- vpcId: string;
1251
- };
1252
-
1253
- export const DeploymentTypeCreate = {
1254
- Create: "create",
1255
- } as const;
1256
- export type DeploymentTypeCreate = ClosedEnum<typeof DeploymentTypeCreate>;
1257
-
1258
- export type DeploymentNetworkCreate = {
1259
- /**
1260
- * Number of availability zones (default: 2).
1261
- */
1262
- availabilityZones?: number | undefined;
1263
- /**
1264
- * VPC/VNet CIDR block. If not specified, auto-generated from stack ID
1265
- *
1266
- * @remarks
1267
- * to reduce conflicts (e.g., "10.{hash}.0.0/16").
1268
- */
1269
- cidr?: string | null | undefined;
1270
- type: DeploymentTypeCreate;
1271
- };
1272
-
1273
- export const DeploymentTypeUseDefault = {
1274
- UseDefault: "use-default",
1275
- } as const;
1276
- export type DeploymentTypeUseDefault = ClosedEnum<
1277
- typeof DeploymentTypeUseDefault
1278
- >;
1279
-
1280
- export type DeploymentNetworkUseDefault = {
1281
- type: DeploymentTypeUseDefault;
1282
- };
1283
-
1284
- export type DeploymentNetworkUnion =
1285
- | DeploymentNetworkByoVpcAws
1286
- | DeploymentNetworkByoVpcGcp
1287
- | DeploymentNetworkByoVnetAzure
1288
- | DeploymentNetworkUseDefault
1289
- | DeploymentNetworkCreate
1290
- | string;
1291
-
1292
- /**
1293
- * How telemetry (logs, metrics, traces) is handled.
1294
- */
1295
- export const DeploymentTelemetry = {
1296
- Off: "off",
1297
- Auto: "auto",
1298
- ApprovalRequired: "approval-required",
1299
- } as const;
1300
- /**
1301
- * How telemetry (logs, metrics, traces) is handled.
1302
- */
1303
- export type DeploymentTelemetry = ClosedEnum<typeof DeploymentTelemetry>;
1304
-
1305
- /**
1306
- * How updates are delivered to the deployment.
1307
- */
1308
- export const DeploymentUpdates = {
1309
- Auto: "auto",
1310
- ApprovalRequired: "approval-required",
1311
- } as const;
1312
- /**
1313
- * How updates are delivered to the deployment.
1314
- */
1315
- export type DeploymentUpdates = ClosedEnum<typeof DeploymentUpdates>;
1316
-
1317
- /**
1318
- * User-provided configuration (network, deployment model, approvals)
1319
- */
1320
- export type DeploymentStackSettings = {
1321
- compute?: DeploymentCompute | string | null | undefined;
1322
- /**
1323
- * Deployment model: how updates are delivered to the remote environment.
1324
- */
1325
- deploymentModel?: DeploymentDeploymentModel | undefined;
1326
- domains?: DeploymentDomains | string | null | undefined;
1327
- /**
1328
- * Reachability of the deployment's public endpoints, fixed at setup.
1329
- */
1330
- endpointAccess?: DeploymentEndpointAccess | undefined;
1331
- externalBindings?: { [k: string]: ExternalBindingUnion } | null | undefined;
1332
- /**
1333
- * How heartbeat health checks are handled.
1334
- */
1335
- heartbeats?: DeploymentHeartbeats | undefined;
1336
- kubernetes?: DeploymentKubernetes | string | null | undefined;
1337
- network?:
1338
- | DeploymentNetworkByoVpcAws
1339
- | DeploymentNetworkByoVpcGcp
1340
- | DeploymentNetworkByoVnetAzure
1341
- | DeploymentNetworkUseDefault
1342
- | DeploymentNetworkCreate
1343
- | string
1344
- | null
1345
- | undefined;
1346
- /**
1347
- * Exact externally managed endpoint URLs, keyed by resource ID and endpoint name.
1348
- *
1349
- * @remarks
1350
- *
1351
- * This is intended for adopted Machines deployments whose DNS and certificates remain
1352
- * customer-owned. The platform passes these URLs to the runtime without creating or
1353
- * replacing DNS records or certificates.
1354
- */
1355
- publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined;
1356
- /**
1357
- * How telemetry (logs, metrics, traces) is handled.
1358
- */
1359
- telemetry?: DeploymentTelemetry | undefined;
1360
- /**
1361
- * How updates are delivered to the deployment.
1362
- */
1363
- updates?: DeploymentUpdates | undefined;
1364
- };
1365
-
1366
- /**
1367
- * Represents the target cloud platform.
1368
- */
1369
- export const DeploymentStackStatePlatform = {
1370
- Aws: "aws",
1371
- Gcp: "gcp",
1372
- Azure: "azure",
1373
- Kubernetes: "kubernetes",
1374
- Machines: "machines",
1375
- Local: "local",
1376
- Test: "test",
1377
- } as const;
1378
- /**
1379
- * Represents the target cloud platform.
1380
- */
1381
- export type DeploymentStackStatePlatform = ClosedEnum<
1382
- typeof DeploymentStackStatePlatform
1383
- >;
1384
-
1385
- /**
1386
- * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties.
1387
- */
1388
- export type DeploymentStackStateConfig = {
1389
- /**
1390
- * The unique identifier for this specific resource instance. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
1391
- */
1392
- id: string;
1393
- /**
1394
- * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior.
1395
- */
1396
- type: string;
1397
- additionalProperties?: { [k: string]: any | null } | undefined;
1398
- };
1399
-
1400
- /**
1401
- * Represents the target cloud platform.
1402
- */
1403
- export const DeploymentControllerPlatformEnum = {
1404
- Aws: "aws",
1405
- Gcp: "gcp",
1406
- Azure: "azure",
1407
- Kubernetes: "kubernetes",
1408
- Machines: "machines",
1409
- Local: "local",
1410
- Test: "test",
1411
- } as const;
1412
- /**
1413
- * Represents the target cloud platform.
1414
- */
1415
- export type DeploymentControllerPlatformEnum = ClosedEnum<
1416
- typeof DeploymentControllerPlatformEnum
1417
- >;
1418
-
1419
- export type DeploymentControllerPlatformUnion =
1420
- | DeploymentControllerPlatformEnum
1421
- | string;
1422
-
1423
- /**
1424
- * Reference to a resource by its stable id and resource type.
1425
- */
1426
- export type DeploymentStackStateDependency = {
1427
- id: string;
1428
- /**
1429
- * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior.
1430
- */
1431
- type: string;
1432
- };
1433
-
1434
- /**
1435
- * Canonical error container that provides a structured way to represent errors
1436
- *
1437
- * @remarks
1438
- * with rich metadata including error codes, human-readable messages, context,
1439
- * and chaining capabilities for error propagation.
1440
- *
1441
- * This struct is designed to be both machine-readable and user-friendly,
1442
- * supporting serialization for API responses and detailed error reporting
1443
- * in distributed systems.
1444
- */
1445
- export type DeploymentErrorStackState = {
1446
- /**
1447
- * A unique identifier for the type of error.
1448
- *
1449
- * @remarks
1450
- *
1451
- * This should be a short, machine-readable string that can be used
1452
- * by clients to programmatically handle different error types.
1453
- * Examples: "NOT_FOUND", "VALIDATION_ERROR", "TIMEOUT"
1454
- */
1455
- code: string;
1456
- /**
1457
- * Additional diagnostic information about the error context.
1458
- *
1459
- * @remarks
1460
- *
1461
- * This optional field can contain structured data providing more details
1462
- * about the error, such as validation errors, request parameters that
1463
- * caused the issue, or other relevant context information.
1464
- */
1465
- context?: any | null | undefined;
1466
- /**
1467
- * Optional human-facing remediation hint.
1468
- */
1469
- hint?: string | null | undefined;
1470
- /**
1471
- * HTTP status code for this error.
1472
- *
1473
- * @remarks
1474
- *
1475
- * Used when converting the error to an HTTP response. If None, falls back to
1476
- * the error type's default status code or 500.
1477
- */
1478
- httpStatusCode?: number | null | undefined;
1479
- /**
1480
- * Indicates if this is an internal error that should not be exposed to users.
1481
- *
1482
- * @remarks
1483
- *
1484
- * When `true`, this error contains sensitive information or implementation
1485
- * details that should not be shown to end-users. Such errors should be
1486
- * logged for debugging but replaced with generic error messages in responses.
1487
- */
1488
- internal: boolean;
1489
- /**
1490
- * Human-readable error message.
1491
- *
1492
- * @remarks
1493
- *
1494
- * This message should be clear and actionable for developers or end-users,
1495
- * providing context about what went wrong and potentially how to fix it.
1496
- */
1497
- message: string;
1498
- /**
1499
- * Indicates whether the operation that caused the error should be retried.
1500
- *
1501
- * @remarks
1502
- *
1503
- * When `true`, the error is transient and the operation might succeed
1504
- * if attempted again. When `false`, retrying the same operation is
1505
- * unlikely to succeed without changes.
1506
- */
1507
- retryable: boolean;
1508
- /**
1509
- * The underlying error that caused this error, creating an error chain.
1510
- *
1511
- * @remarks
1512
- *
1513
- * This allows for proper error propagation and debugging by maintaining
1514
- * the full context of how an error occurred through multiple layers
1515
- * of an application.
1516
- */
1517
- source?: any | null | undefined;
1518
- };
1519
-
1520
- export type DeploymentErrorUnion = DeploymentErrorStackState | string;
1521
-
1522
- /**
1523
- * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed.
1524
- */
1525
- export const DeploymentLifecycleStackStateEnum = {
1526
- Frozen: "frozen",
1527
- Live: "live",
1528
- } as const;
1529
- /**
1530
- * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed.
1531
- */
1532
- export type DeploymentLifecycleStackStateEnum = ClosedEnum<
1533
- typeof DeploymentLifecycleStackStateEnum
1534
- >;
1535
-
1536
- export type DeploymentLifecycleUnion =
1537
- | DeploymentLifecycleStackStateEnum
1538
- | string;
1539
-
1540
- /**
1541
- * Resource outputs that can hold output data for any resource type in the Alien system. All resource outputs share a common 'type' field with additional type-specific output properties.
1542
- */
1543
- export type DeploymentOutputs = {
1544
- /**
1545
- * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior.
1546
- */
1547
- type: string;
1548
- additionalProperties?: { [k: string]: any | null } | undefined;
1549
- };
1550
-
1551
- export type DeploymentOutputsUnion = DeploymentOutputs | string;
1552
-
1553
- /**
1554
- * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties.
1555
- */
1556
- export type DeploymentPreviousConfig = {
1557
- /**
1558
- * The unique identifier for this specific resource instance. Must contain only alphanumeric characters, hyphens, and underscores ([A-Za-z0-9-_]). Maximum 64 characters.
1559
- */
1560
- id: string;
1561
- /**
1562
- * Resource type identifier that determines the specific kind of resource. This field is used for polymorphic deserialization and resource-specific behavior.
1563
- */
1564
- type: string;
1565
- additionalProperties?: { [k: string]: any | null } | undefined;
1566
- };
1567
-
1568
- export type DeploymentPreviousConfigUnion = DeploymentPreviousConfig | string;
1569
-
1570
- /**
1571
- * Represents the high-level status of a resource during its lifecycle.
1572
- */
1573
- export const DeploymentStackStateStatus = {
1574
- Pending: "pending",
1575
- Provisioning: "provisioning",
1576
- ProvisionFailed: "provision-failed",
1577
- Running: "running",
1578
- Updating: "updating",
1579
- UpdateFailed: "update-failed",
1580
- Deleting: "deleting",
1581
- DeleteFailed: "delete-failed",
1582
- TeardownRequired: "teardown-required",
1583
- Deleted: "deleted",
1584
- RefreshFailed: "refresh-failed",
1585
- } as const;
1586
- /**
1587
- * Represents the high-level status of a resource during its lifecycle.
1588
- */
1589
- export type DeploymentStackStateStatus = ClosedEnum<
1590
- typeof DeploymentStackStateStatus
1591
- >;
1592
-
1593
- /**
1594
- * Represents the state of a single resource within the stack for a specific platform.
1595
- */
1596
- export type DeploymentStackStateResources = {
1597
- /**
1598
- * The platform-specific resource controller that manages this resource's lifecycle.
1599
- *
1600
- * @remarks
1601
- * This is None when the resource status is Pending.
1602
- * Stored as JSON to make the struct serializable and movable to alien-core.
1603
- */
1604
- internal?: any | null | undefined;
1605
- /**
1606
- * Resource that can hold any resource type in the Alien system. All resources share common 'type' and 'id' fields with additional type-specific properties.
1607
- */
1608
- config: DeploymentStackStateConfig;
1609
- controllerPlatform?:
1610
- | DeploymentControllerPlatformEnum
1611
- | string
1612
- | null
1613
- | undefined;
1614
- /**
1615
- * Complete list of dependencies for this resource, including infrastructure dependencies.
1616
- *
1617
- * @remarks
1618
- * This preserves the full dependency information from the stack definition.
1619
- */
1620
- dependencies?: Array<DeploymentStackStateDependency> | undefined;
1621
- error?: DeploymentErrorStackState | string | null | undefined;
1622
- /**
1623
- * Stores the controller state that failed, used for manual retry operations.
1624
- *
1625
- * @remarks
1626
- * This allows resuming from the exact point where the failure occurred.
1627
- * Stored as JSON to make the struct serializable and movable to alien-core.
1628
- */
1629
- lastFailedState?: any | null | undefined;
1630
- lifecycle?: DeploymentLifecycleStackStateEnum | string | null | undefined;
1631
- outputs?: DeploymentOutputs | string | null | undefined;
1632
- previousConfig?: DeploymentPreviousConfig | string | null | undefined;
1633
- /**
1634
- * Binding parameters for remote access.
1635
- *
1636
- * @remarks
1637
- * Only populated when the resource has `remote_access: true` in its ResourceEntry.
1638
- * This is the JSON serialization of the binding configuration (e.g., StorageBinding, VaultBinding).
1639
- * Populated by controllers during provisioning using get_binding_params().
1640
- */
1641
- remoteBindingParams?: any | null | undefined;
1642
- /**
1643
- * Tracks consecutive retry attempts for the current state transition.
1644
- */
1645
- retryAttempt?: number | undefined;
1646
- /**
1647
- * Represents the high-level status of a resource during its lifecycle.
1648
- */
1649
- status: DeploymentStackStateStatus;
1650
- /**
1651
- * The high-level type of the resource (e.g., Worker::RESOURCE_TYPE, Storage::RESOURCE_TYPE).
1652
- */
1653
- type: string;
1654
- };
1655
-
1656
- /**
1657
- * State of infrastructure components managed by this deployment
1658
- */
1659
- export type DeploymentStackState = {
1660
- /**
1661
- * Represents the target cloud platform.
1662
- */
1663
- platform: DeploymentStackStatePlatform;
1664
- /**
1665
- * A prefix used for resource naming to ensure uniqueness across deployments.
1666
- */
1667
- resourcePrefix: string;
1668
- /**
1669
- * The state of individual resources, keyed by resource ID.
1670
- */
1671
- resources: { [k: string]: DeploymentStackStateResources };
1672
- };
1673
-
1674
- /**
1675
- * The secret store a deployer writes a vault-native secret into.
1676
- */
1677
- export const DeploymentStore = {
1678
- AwsParameterStore: "aws-parameter-store",
1679
- GcpSecretManager: "gcp-secret-manager",
1680
- AzureKeyVault: "azure-key-vault",
1681
- KubernetesSecret: "kubernetes-secret",
1682
- LocalVault: "local-vault",
1683
- } as const;
1684
- /**
1685
- * The secret store a deployer writes a vault-native secret into.
1686
- */
1687
- export type DeploymentStore = ClosedEnum<typeof DeploymentStore>;
1688
-
1689
- /**
1690
- * Where a deployer writes a vault-native secret.
1691
- */
1692
- export type DeploymentLocation = {
1693
- /**
1694
- * Command that writes the value, with `<VALUE>` in place of the secret.
1695
- */
1696
- cliCommand: string;
1697
- /**
1698
- * Cloud console page where the secret is created, when the store has one.
1699
- */
1700
- consoleUrl?: string | null | undefined;
1701
- /**
1702
- * Command that deletes the secret. Deleting a deployment keeps the
1703
- *
1704
- * @remarks
1705
- * secrets the deployer wrote, since Alien never owned their values.
1706
- */
1707
- deleteCommand?: string | null | undefined;
1708
- /**
1709
- * Full name of the secret in that store.
1710
- */
1711
- name: string;
1712
- /**
1713
- * The secret store a deployer writes a vault-native secret into.
1714
- */
1715
- store: DeploymentStore;
1716
- /**
1717
- * The Azure Key Vault that holds the secret. Other stores resolve `name`
1718
- *
1719
- * @remarks
1720
- * in the stack's own account or project.
1721
- */
1722
- vaultName?: string | null | undefined;
1723
- };
1724
-
1725
- /**
1726
- * Whether a deployer secret slot holds a usable value. Alien learns this from
1727
- *
1728
- * @remarks
1729
- * metadata only and never reads the value.
1730
- */
1731
- export const DeploymentRuntimeMetadataStatus = {
1732
- Present: "present",
1733
- Missing: "missing",
1734
- Invalid: "invalid",
1735
- } as const;
1736
- /**
1737
- * Whether a deployer secret slot holds a usable value. Alien learns this from
1738
- *
1739
- * @remarks
1740
- * metadata only and never reads the value.
1741
- */
1742
- export type DeploymentRuntimeMetadataStatus = ClosedEnum<
1743
- typeof DeploymentRuntimeMetadataStatus
1744
- >;
1745
-
1746
- /**
1747
- * The state of one deployer secret slot, reported with the deployment.
1748
- */
1749
- export type DeploymentDeployerSecret = {
1750
- /**
1751
- * Stack input id.
1752
- */
1753
- inputId: string;
1754
- /**
1755
- * The input's label.
1756
- */
1757
- label: string;
1758
- /**
1759
- * Where a deployer writes a vault-native secret.
1760
- */
1761
- location: DeploymentLocation;
1762
- /**
1763
- * Why the slot is invalid.
1764
- */
1765
- message?: string | null | undefined;
1766
- /**
1767
- * Whether the workload cannot start without it.
1768
- */
1769
- required: boolean;
1770
- /**
1771
- * Whether a deployer secret slot holds a usable value. Alien learns this from
1772
- *
1773
- * @remarks
1774
- * metadata only and never reads the value.
1775
- */
1776
- status: DeploymentRuntimeMetadataStatus;
1777
- /**
1778
- * The secret store's version of the present value (never the value or a
1779
- *
1780
- * @remarks
1781
- * hash of it). A new version reaches workloads with the next update.
1782
- */
1783
- version?: string | null | undefined;
1784
- };
1785
-
1786
- /**
1787
- * Actor that owns structural work during the initial setup phase.
1788
- */
1789
- export const DeploymentInitialSetupAuthority = {
1790
- ImportedHandoff: "importedHandoff",
1791
- DirectSetup: "directSetup",
1792
- } as const;
1793
- /**
1794
- * Actor that owns structural work during the initial setup phase.
1795
- */
1796
- export type DeploymentInitialSetupAuthority = ClosedEnum<
1797
- typeof DeploymentInitialSetupAuthority
1798
- >;
1799
-
1800
- export const DeploymentPendingPreparedStackTypeStringList = {
1801
- StringList: "stringList",
1802
- } as const;
1803
- export type DeploymentPendingPreparedStackTypeStringList = ClosedEnum<
1804
- typeof DeploymentPendingPreparedStackTypeStringList
1805
- >;
1806
-
1807
- export type DeploymentPendingPreparedStackDefaultStringList = {
1808
- type: DeploymentPendingPreparedStackTypeStringList;
1809
- /**
1810
- * String list default.
1811
- */
1812
- value: Array<string>;
1813
- };
1814
-
1815
- export const DeploymentPendingPreparedStackTypeBoolean = {
1816
- Boolean: "boolean",
1817
- } as const;
1818
- export type DeploymentPendingPreparedStackTypeBoolean = ClosedEnum<
1819
- typeof DeploymentPendingPreparedStackTypeBoolean
1820
- >;
1821
-
1822
- export type DeploymentPendingPreparedStackDefaultBoolean = {
1823
- type: DeploymentPendingPreparedStackTypeBoolean;
1824
- /**
1825
- * Boolean default.
1826
- */
1827
- value: boolean;
1828
- };
1829
-
1830
- export const DeploymentPendingPreparedStackTypeNumber = {
1831
- Number: "number",
1832
- } as const;
1833
- export type DeploymentPendingPreparedStackTypeNumber = ClosedEnum<
1834
- typeof DeploymentPendingPreparedStackTypeNumber
1835
- >;
1836
-
1837
- export type DeploymentPendingPreparedStackDefaultNumber = {
1838
- type: DeploymentPendingPreparedStackTypeNumber;
1839
- /**
1840
- * Number default.
1841
- */
1842
- value: string;
1843
- };
1844
-
1845
- export const DeploymentPendingPreparedStackTypeString = {
1846
- String: "string",
1847
- } as const;
1848
- export type DeploymentPendingPreparedStackTypeString = ClosedEnum<
1849
- typeof DeploymentPendingPreparedStackTypeString
1850
- >;
1851
-
1852
- export type DeploymentPendingPreparedStackDefaultString = {
1853
- type: DeploymentPendingPreparedStackTypeString;
1854
- /**
1855
- * String default.
1856
- */
1857
- value: string;
1858
- };
1859
-
1860
- export type DeploymentPendingPreparedStackDefaultUnion =
1861
- | DeploymentPendingPreparedStackDefaultString
1862
- | DeploymentPendingPreparedStackDefaultNumber
1863
- | DeploymentPendingPreparedStackDefaultBoolean
1864
- | DeploymentPendingPreparedStackDefaultStringList
1865
- | string;
1866
-
1867
- /**
1868
- * Environment variable handling for a stack input mapping.
1869
- */
1870
- export const DeploymentPendingPreparedStackTypeEnvEnum = {
1871
- Plain: "plain",
1872
- Secret: "secret",
1873
- } as const;
1874
- /**
1875
- * Environment variable handling for a stack input mapping.
1876
- */
1877
- export type DeploymentPendingPreparedStackTypeEnvEnum = ClosedEnum<
1878
- typeof DeploymentPendingPreparedStackTypeEnvEnum
1879
- >;
1880
-
1881
- /** @internal */
1882
- export const DeploymentStatus$inboundSchema: z.ZodEnum<
1883
- typeof DeploymentStatus
1884
- > = z.enum(DeploymentStatus);
1885
-
1886
- /** @internal */
1887
- export const DeploymentPlatform$inboundSchema: z.ZodEnum<
1888
- typeof DeploymentPlatform
1889
- > = z.enum(DeploymentPlatform);
1890
-
1891
- /** @internal */
1892
- export const DeploymentBasePlatform$inboundSchema: z.ZodEnum<
1893
- typeof DeploymentBasePlatform
1894
- > = z.enum(DeploymentBasePlatform);
1895
-
1896
- /** @internal */
1897
- export const DeploymentPlatformTest$inboundSchema: z.ZodEnum<
1898
- typeof DeploymentPlatformTest
1899
- > = z.enum(DeploymentPlatformTest);
1900
-
1901
- /** @internal */
1902
- export const DeploymentEnvironmentInfoTest$inboundSchema: z.ZodType<
1903
- DeploymentEnvironmentInfoTest,
1904
- unknown
1905
- > = z.object({
1906
- testId: z.string(),
1907
- platform: DeploymentPlatformTest$inboundSchema,
1908
- });
1909
-
1910
- export function deploymentEnvironmentInfoTestFromJSON(
1911
- jsonString: string,
1912
- ): SafeParseResult<DeploymentEnvironmentInfoTest, SDKValidationError> {
1913
- return safeParse(
1914
- jsonString,
1915
- (x) => DeploymentEnvironmentInfoTest$inboundSchema.parse(JSON.parse(x)),
1916
- `Failed to parse 'DeploymentEnvironmentInfoTest' from JSON`,
1917
- );
1918
- }
1919
-
1920
- /** @internal */
1921
- export const DeploymentPlatformLocal$inboundSchema: z.ZodEnum<
1922
- typeof DeploymentPlatformLocal
1923
- > = z.enum(DeploymentPlatformLocal);
1924
-
1925
- /** @internal */
1926
- export const DeploymentEnvironmentInfoLocal$inboundSchema: z.ZodType<
1927
- DeploymentEnvironmentInfoLocal,
1928
- unknown
1929
- > = z.object({
1930
- arch: z.string(),
1931
- hostname: z.string(),
1932
- os: z.string(),
1933
- platform: DeploymentPlatformLocal$inboundSchema,
1934
- });
1935
-
1936
- export function deploymentEnvironmentInfoLocalFromJSON(
1937
- jsonString: string,
1938
- ): SafeParseResult<DeploymentEnvironmentInfoLocal, SDKValidationError> {
1939
- return safeParse(
1940
- jsonString,
1941
- (x) => DeploymentEnvironmentInfoLocal$inboundSchema.parse(JSON.parse(x)),
1942
- `Failed to parse 'DeploymentEnvironmentInfoLocal' from JSON`,
1943
- );
1944
- }
1945
-
1946
- /** @internal */
1947
- export const DeploymentPlatformAzure$inboundSchema: z.ZodEnum<
1948
- typeof DeploymentPlatformAzure
1949
- > = z.enum(DeploymentPlatformAzure);
1950
-
1951
- /** @internal */
1952
- export const DeploymentEnvironmentInfoAzure$inboundSchema: z.ZodType<
1953
- DeploymentEnvironmentInfoAzure,
1954
- unknown
1955
- > = z.object({
1956
- location: z.string(),
1957
- subscriptionId: z.string(),
1958
- tenantId: z.string(),
1959
- platform: DeploymentPlatformAzure$inboundSchema,
1960
- });
1961
-
1962
- export function deploymentEnvironmentInfoAzureFromJSON(
1963
- jsonString: string,
1964
- ): SafeParseResult<DeploymentEnvironmentInfoAzure, SDKValidationError> {
1965
- return safeParse(
1966
- jsonString,
1967
- (x) => DeploymentEnvironmentInfoAzure$inboundSchema.parse(JSON.parse(x)),
1968
- `Failed to parse 'DeploymentEnvironmentInfoAzure' from JSON`,
1969
- );
1970
- }
1971
-
1972
- /** @internal */
1973
- export const DeploymentPlatformGcp$inboundSchema: z.ZodEnum<
1974
- typeof DeploymentPlatformGcp
1975
- > = z.enum(DeploymentPlatformGcp);
1976
-
1977
- /** @internal */
1978
- export const DeploymentEnvironmentInfoGcp$inboundSchema: z.ZodType<
1979
- DeploymentEnvironmentInfoGcp,
1980
- unknown
1981
- > = z.object({
1982
- projectId: z.string(),
1983
- projectNumber: z.string(),
1984
- region: z.string(),
1985
- platform: DeploymentPlatformGcp$inboundSchema,
1986
- });
1987
-
1988
- export function deploymentEnvironmentInfoGcpFromJSON(
1989
- jsonString: string,
1990
- ): SafeParseResult<DeploymentEnvironmentInfoGcp, SDKValidationError> {
1991
- return safeParse(
1992
- jsonString,
1993
- (x) => DeploymentEnvironmentInfoGcp$inboundSchema.parse(JSON.parse(x)),
1994
- `Failed to parse 'DeploymentEnvironmentInfoGcp' from JSON`,
1995
- );
1996
- }
1997
-
1998
- /** @internal */
1999
- export const DeploymentPlatformAws$inboundSchema: z.ZodEnum<
2000
- typeof DeploymentPlatformAws
2001
- > = z.enum(DeploymentPlatformAws);
2002
-
2003
- /** @internal */
2004
- export const DeploymentEnvironmentInfoAws$inboundSchema: z.ZodType<
2005
- DeploymentEnvironmentInfoAws,
2006
- unknown
2007
- > = z.object({
2008
- accountId: z.string(),
2009
- region: z.string(),
2010
- platform: DeploymentPlatformAws$inboundSchema,
2011
- });
2012
-
2013
- export function deploymentEnvironmentInfoAwsFromJSON(
2014
- jsonString: string,
2015
- ): SafeParseResult<DeploymentEnvironmentInfoAws, SDKValidationError> {
2016
- return safeParse(
2017
- jsonString,
2018
- (x) => DeploymentEnvironmentInfoAws$inboundSchema.parse(JSON.parse(x)),
2019
- `Failed to parse 'DeploymentEnvironmentInfoAws' from JSON`,
2020
- );
2021
- }
2022
-
2023
- /** @internal */
2024
- export const DeploymentEnvironmentInfoUnion$inboundSchema: z.ZodType<
2025
- DeploymentEnvironmentInfoUnion,
2026
- unknown
2027
- > = z.union([
2028
- z.lazy(() => DeploymentEnvironmentInfoGcp$inboundSchema),
2029
- z.lazy(() => DeploymentEnvironmentInfoAzure$inboundSchema),
2030
- z.lazy(() => DeploymentEnvironmentInfoLocal$inboundSchema),
2031
- z.lazy(() => DeploymentEnvironmentInfoAws$inboundSchema),
2032
- z.lazy(() => DeploymentEnvironmentInfoTest$inboundSchema),
2033
- z.string(),
2034
- ]);
2035
-
2036
- export function deploymentEnvironmentInfoUnionFromJSON(
2037
- jsonString: string,
2038
- ): SafeParseResult<DeploymentEnvironmentInfoUnion, SDKValidationError> {
2039
- return safeParse(
2040
- jsonString,
2041
- (x) => DeploymentEnvironmentInfoUnion$inboundSchema.parse(JSON.parse(x)),
2042
- `Failed to parse 'DeploymentEnvironmentInfoUnion' from JSON`,
2043
- );
2044
- }
2045
-
2046
- /** @internal */
2047
- export const DeploymentContainers$inboundSchema: z.ZodType<
2048
- DeploymentContainers,
2049
- unknown
2050
- > = z.object({
2051
- cpu: z.nullable(z.number()).optional(),
2052
- memory: z.nullable(z.string()).optional(),
2053
- });
2054
-
2055
- export function deploymentContainersFromJSON(
2056
- jsonString: string,
2057
- ): SafeParseResult<DeploymentContainers, SDKValidationError> {
2058
- return safeParse(
2059
- jsonString,
2060
- (x) => DeploymentContainers$inboundSchema.parse(JSON.parse(x)),
2061
- `Failed to parse 'DeploymentContainers' from JSON`,
2062
- );
2063
- }
2064
-
2065
- /** @internal */
2066
- export const DeploymentFailureDomains2$inboundSchema: z.ZodType<
2067
- DeploymentFailureDomains2,
2068
- unknown
2069
- > = z.object({
2070
- selectedFailureDomains: z.array(z.string()).optional(),
2071
- spread: z.int(),
2072
- });
2073
-
2074
- export function deploymentFailureDomains2FromJSON(
2075
- jsonString: string,
2076
- ): SafeParseResult<DeploymentFailureDomains2, SDKValidationError> {
2077
- return safeParse(
2078
- jsonString,
2079
- (x) => DeploymentFailureDomains2$inboundSchema.parse(JSON.parse(x)),
2080
- `Failed to parse 'DeploymentFailureDomains2' from JSON`,
2081
- );
2082
- }
2083
-
2084
- /** @internal */
2085
- export const DeploymentFailureDomainsUnion2$inboundSchema: z.ZodType<
2086
- DeploymentFailureDomainsUnion2,
2087
- unknown
2088
- > = z.union([
2089
- z.lazy(() => DeploymentFailureDomains2$inboundSchema),
2090
- z.string(),
2091
- ]);
2092
-
2093
- export function deploymentFailureDomainsUnion2FromJSON(
2094
- jsonString: string,
2095
- ): SafeParseResult<DeploymentFailureDomainsUnion2, SDKValidationError> {
2096
- return safeParse(
2097
- jsonString,
2098
- (x) => DeploymentFailureDomainsUnion2$inboundSchema.parse(JSON.parse(x)),
2099
- `Failed to parse 'DeploymentFailureDomainsUnion2' from JSON`,
2100
- );
2101
- }
2102
-
2103
- /** @internal */
2104
- export const DeploymentPoolsAutoscale$inboundSchema: z.ZodType<
2105
- DeploymentPoolsAutoscale,
2106
- unknown
2107
- > = z.object({
2108
- failure_domains: z.nullable(
2109
- z.union([
2110
- z.lazy(() => DeploymentFailureDomains2$inboundSchema),
2111
- z.string(),
2112
- ]),
2113
- ).optional(),
2114
- machine: z.nullable(z.string()).optional(),
2115
- max: z.int(),
2116
- min: z.int(),
2117
- mode: z.literal("autoscale"),
2118
- }).transform((v) => {
2119
- return remap$(v, {
2120
- "failure_domains": "failureDomains",
2121
- });
2122
- });
2123
-
2124
- export function deploymentPoolsAutoscaleFromJSON(
2125
- jsonString: string,
2126
- ): SafeParseResult<DeploymentPoolsAutoscale, SDKValidationError> {
2127
- return safeParse(
2128
- jsonString,
2129
- (x) => DeploymentPoolsAutoscale$inboundSchema.parse(JSON.parse(x)),
2130
- `Failed to parse 'DeploymentPoolsAutoscale' from JSON`,
2131
- );
2132
- }
2133
-
2134
- /** @internal */
2135
- export const DeploymentFailureDomains1$inboundSchema: z.ZodType<
2136
- DeploymentFailureDomains1,
2137
- unknown
2138
- > = z.object({
2139
- selectedFailureDomains: z.array(z.string()).optional(),
2140
- spread: z.int(),
2141
- });
2142
-
2143
- export function deploymentFailureDomains1FromJSON(
2144
- jsonString: string,
2145
- ): SafeParseResult<DeploymentFailureDomains1, SDKValidationError> {
2146
- return safeParse(
2147
- jsonString,
2148
- (x) => DeploymentFailureDomains1$inboundSchema.parse(JSON.parse(x)),
2149
- `Failed to parse 'DeploymentFailureDomains1' from JSON`,
2150
- );
2151
- }
2152
-
2153
- /** @internal */
2154
- export const DeploymentFailureDomainsUnion1$inboundSchema: z.ZodType<
2155
- DeploymentFailureDomainsUnion1,
2156
- unknown
2157
- > = z.union([
2158
- z.lazy(() => DeploymentFailureDomains1$inboundSchema),
2159
- z.string(),
2160
- ]);
2161
-
2162
- export function deploymentFailureDomainsUnion1FromJSON(
2163
- jsonString: string,
2164
- ): SafeParseResult<DeploymentFailureDomainsUnion1, SDKValidationError> {
2165
- return safeParse(
2166
- jsonString,
2167
- (x) => DeploymentFailureDomainsUnion1$inboundSchema.parse(JSON.parse(x)),
2168
- `Failed to parse 'DeploymentFailureDomainsUnion1' from JSON`,
2169
- );
2170
- }
2171
-
2172
- /** @internal */
2173
- export const DeploymentPoolsFixed$inboundSchema: z.ZodType<
2174
- DeploymentPoolsFixed,
2175
- unknown
2176
- > = z.object({
2177
- failure_domains: z.nullable(
2178
- z.union([
2179
- z.lazy(() => DeploymentFailureDomains1$inboundSchema),
2180
- z.string(),
2181
- ]),
2182
- ).optional(),
2183
- machine: z.nullable(z.string()).optional(),
2184
- machines: z.int(),
2185
- mode: z.literal("fixed"),
2186
- }).transform((v) => {
2187
- return remap$(v, {
2188
- "failure_domains": "failureDomains",
2189
- });
2190
- });
2191
-
2192
- export function deploymentPoolsFixedFromJSON(
2193
- jsonString: string,
2194
- ): SafeParseResult<DeploymentPoolsFixed, SDKValidationError> {
2195
- return safeParse(
2196
- jsonString,
2197
- (x) => DeploymentPoolsFixed$inboundSchema.parse(JSON.parse(x)),
2198
- `Failed to parse 'DeploymentPoolsFixed' from JSON`,
2199
- );
2200
- }
2201
-
2202
- /** @internal */
2203
- export const DeploymentPoolsUnion$inboundSchema: z.ZodType<
2204
- DeploymentPoolsUnion,
2205
- unknown
2206
- > = z.union([
2207
- z.lazy(() => DeploymentPoolsFixed$inboundSchema),
2208
- z.lazy(() => DeploymentPoolsAutoscale$inboundSchema),
2209
- ]);
2210
-
2211
- export function deploymentPoolsUnionFromJSON(
2212
- jsonString: string,
2213
- ): SafeParseResult<DeploymentPoolsUnion, SDKValidationError> {
2214
- return safeParse(
2215
- jsonString,
2216
- (x) => DeploymentPoolsUnion$inboundSchema.parse(JSON.parse(x)),
2217
- `Failed to parse 'DeploymentPoolsUnion' from JSON`,
2218
- );
2219
- }
2220
-
2221
- /** @internal */
2222
- export const DeploymentCompute$inboundSchema: z.ZodType<
2223
- DeploymentCompute,
2224
- unknown
2225
- > = z.object({
2226
- containers: z.record(
2227
- z.string(),
2228
- z.lazy(() => DeploymentContainers$inboundSchema),
2229
- ).optional(),
2230
- pools: z.record(
2231
- z.string(),
2232
- z.union([
2233
- z.lazy(() => DeploymentPoolsFixed$inboundSchema),
2234
- z.lazy(() => DeploymentPoolsAutoscale$inboundSchema),
2235
- ]),
2236
- ).optional(),
2237
- });
2238
-
2239
- export function deploymentComputeFromJSON(
2240
- jsonString: string,
2241
- ): SafeParseResult<DeploymentCompute, SDKValidationError> {
2242
- return safeParse(
2243
- jsonString,
2244
- (x) => DeploymentCompute$inboundSchema.parse(JSON.parse(x)),
2245
- `Failed to parse 'DeploymentCompute' from JSON`,
2246
- );
2247
- }
2248
-
2249
- /** @internal */
2250
- export const DeploymentComputeUnion$inboundSchema: z.ZodType<
2251
- DeploymentComputeUnion,
2252
- unknown
2253
- > = z.union([z.lazy(() => DeploymentCompute$inboundSchema), z.string()]);
2254
-
2255
- export function deploymentComputeUnionFromJSON(
2256
- jsonString: string,
2257
- ): SafeParseResult<DeploymentComputeUnion, SDKValidationError> {
2258
- return safeParse(
2259
- jsonString,
2260
- (x) => DeploymentComputeUnion$inboundSchema.parse(JSON.parse(x)),
2261
- `Failed to parse 'DeploymentComputeUnion' from JSON`,
2262
- );
2263
- }
2264
-
2265
- /** @internal */
2266
- export const DeploymentDeploymentModel$inboundSchema: z.ZodEnum<
2267
- typeof DeploymentDeploymentModel
2268
- > = z.enum(DeploymentDeploymentModel);
2269
-
2270
- /** @internal */
2271
- export const DeploymentAws$inboundSchema: z.ZodType<DeploymentAws, unknown> = z
2272
- .object({
2273
- certificateArn: z.string(),
2274
- });
2275
-
2276
- export function deploymentAwsFromJSON(
2277
- jsonString: string,
2278
- ): SafeParseResult<DeploymentAws, SDKValidationError> {
2279
- return safeParse(
2280
- jsonString,
2281
- (x) => DeploymentAws$inboundSchema.parse(JSON.parse(x)),
2282
- `Failed to parse 'DeploymentAws' from JSON`,
2283
- );
2284
- }
2285
-
2286
- /** @internal */
2287
- export const DeploymentAwsUnion$inboundSchema: z.ZodType<
2288
- DeploymentAwsUnion,
2289
- unknown
2290
- > = z.union([z.lazy(() => DeploymentAws$inboundSchema), z.string()]);
2291
-
2292
- export function deploymentAwsUnionFromJSON(
2293
- jsonString: string,
2294
- ): SafeParseResult<DeploymentAwsUnion, SDKValidationError> {
2295
- return safeParse(
2296
- jsonString,
2297
- (x) => DeploymentAwsUnion$inboundSchema.parse(JSON.parse(x)),
2298
- `Failed to parse 'DeploymentAwsUnion' from JSON`,
2299
- );
2300
- }
2301
-
2302
- /** @internal */
2303
- export const DeploymentAzureStackSettings$inboundSchema: z.ZodType<
2304
- DeploymentAzureStackSettings,
2305
- unknown
2306
- > = z.object({
2307
- keyVaultCertificateId: z.string(),
2308
- keyVaultResourceId: z.nullable(z.string()).optional(),
2309
- });
2310
-
2311
- export function deploymentAzureStackSettingsFromJSON(
2312
- jsonString: string,
2313
- ): SafeParseResult<DeploymentAzureStackSettings, SDKValidationError> {
2314
- return safeParse(
2315
- jsonString,
2316
- (x) => DeploymentAzureStackSettings$inboundSchema.parse(JSON.parse(x)),
2317
- `Failed to parse 'DeploymentAzureStackSettings' from JSON`,
2318
- );
2319
- }
2320
-
2321
- /** @internal */
2322
- export const DeploymentAzureUnion$inboundSchema: z.ZodType<
2323
- DeploymentAzureUnion,
2324
- unknown
2325
- > = z.union([
2326
- z.lazy(() => DeploymentAzureStackSettings$inboundSchema),
2327
- z.string(),
2328
- ]);
2329
-
2330
- export function deploymentAzureUnionFromJSON(
2331
- jsonString: string,
2332
- ): SafeParseResult<DeploymentAzureUnion, SDKValidationError> {
2333
- return safeParse(
2334
- jsonString,
2335
- (x) => DeploymentAzureUnion$inboundSchema.parse(JSON.parse(x)),
2336
- `Failed to parse 'DeploymentAzureUnion' from JSON`,
2337
- );
2338
- }
2339
-
2340
- /** @internal */
2341
- export const DeploymentGcpStackSettings$inboundSchema: z.ZodType<
2342
- DeploymentGcpStackSettings,
2343
- unknown
2344
- > = z.object({
2345
- certificateName: z.string(),
2346
- });
2347
-
2348
- export function deploymentGcpStackSettingsFromJSON(
2349
- jsonString: string,
2350
- ): SafeParseResult<DeploymentGcpStackSettings, SDKValidationError> {
2351
- return safeParse(
2352
- jsonString,
2353
- (x) => DeploymentGcpStackSettings$inboundSchema.parse(JSON.parse(x)),
2354
- `Failed to parse 'DeploymentGcpStackSettings' from JSON`,
2355
- );
2356
- }
2357
-
2358
- /** @internal */
2359
- export const DeploymentGcpUnion$inboundSchema: z.ZodType<
2360
- DeploymentGcpUnion,
2361
- unknown
2362
- > = z.union([
2363
- z.lazy(() => DeploymentGcpStackSettings$inboundSchema),
2364
- z.string(),
2365
- ]);
2366
-
2367
- export function deploymentGcpUnionFromJSON(
2368
- jsonString: string,
2369
- ): SafeParseResult<DeploymentGcpUnion, SDKValidationError> {
2370
- return safeParse(
2371
- jsonString,
2372
- (x) => DeploymentGcpUnion$inboundSchema.parse(JSON.parse(x)),
2373
- `Failed to parse 'DeploymentGcpUnion' from JSON`,
2374
- );
2375
- }
2376
-
2377
- /** @internal */
2378
- export const DeploymentTlsSecretRef$inboundSchema: z.ZodType<
2379
- DeploymentTlsSecretRef,
2380
- unknown
2381
- > = z.object({
2382
- namespace: z.nullable(z.string()).optional(),
2383
- secretName: z.string(),
2384
- });
2385
-
2386
- export function deploymentTlsSecretRefFromJSON(
2387
- jsonString: string,
2388
- ): SafeParseResult<DeploymentTlsSecretRef, SDKValidationError> {
2389
- return safeParse(
2390
- jsonString,
2391
- (x) => DeploymentTlsSecretRef$inboundSchema.parse(JSON.parse(x)),
2392
- `Failed to parse 'DeploymentTlsSecretRef' from JSON`,
2393
- );
2394
- }
2395
-
2396
- /** @internal */
2397
- export const DeploymentDomainsKubernetes$inboundSchema: z.ZodType<
2398
- DeploymentDomainsKubernetes,
2399
- unknown
2400
- > = z.object({
2401
- tlsSecretRef: z.lazy(() => DeploymentTlsSecretRef$inboundSchema),
2402
- });
2403
-
2404
- export function deploymentDomainsKubernetesFromJSON(
2405
- jsonString: string,
2406
- ): SafeParseResult<DeploymentDomainsKubernetes, SDKValidationError> {
2407
- return safeParse(
2408
- jsonString,
2409
- (x) => DeploymentDomainsKubernetes$inboundSchema.parse(JSON.parse(x)),
2410
- `Failed to parse 'DeploymentDomainsKubernetes' from JSON`,
2411
- );
2412
- }
2413
-
2414
- /** @internal */
2415
- export const DeploymentDomainsKubernetesUnion$inboundSchema: z.ZodType<
2416
- DeploymentDomainsKubernetesUnion,
2417
- unknown
2418
- > = z.union([
2419
- z.lazy(() => DeploymentDomainsKubernetes$inboundSchema),
2420
- z.string(),
2421
- ]);
2422
-
2423
- export function deploymentDomainsKubernetesUnionFromJSON(
2424
- jsonString: string,
2425
- ): SafeParseResult<DeploymentDomainsKubernetesUnion, SDKValidationError> {
2426
- return safeParse(
2427
- jsonString,
2428
- (x) => DeploymentDomainsKubernetesUnion$inboundSchema.parse(JSON.parse(x)),
2429
- `Failed to parse 'DeploymentDomainsKubernetesUnion' from JSON`,
2430
- );
2431
- }
2432
-
2433
- /** @internal */
2434
- export const DeploymentDomainsCertificate$inboundSchema: z.ZodType<
2435
- DeploymentDomainsCertificate,
2436
- unknown
2437
- > = z.object({
2438
- aws: z.nullable(
2439
- z.union([z.lazy(() => DeploymentAws$inboundSchema), z.string()]),
2440
- ).optional(),
2441
- azure: z.nullable(
2442
- z.union([
2443
- z.lazy(() => DeploymentAzureStackSettings$inboundSchema),
2444
- z.string(),
2445
- ]),
2446
- ).optional(),
2447
- gcp: z.nullable(
2448
- z.union([
2449
- z.lazy(() => DeploymentGcpStackSettings$inboundSchema),
2450
- z.string(),
2451
- ]),
2452
- ).optional(),
2453
- kubernetes: z.nullable(
2454
- z.union([
2455
- z.lazy(() => DeploymentDomainsKubernetes$inboundSchema),
2456
- z.string(),
2457
- ]),
2458
- ).optional(),
2459
- });
2460
-
2461
- export function deploymentDomainsCertificateFromJSON(
2462
- jsonString: string,
2463
- ): SafeParseResult<DeploymentDomainsCertificate, SDKValidationError> {
2464
- return safeParse(
2465
- jsonString,
2466
- (x) => DeploymentDomainsCertificate$inboundSchema.parse(JSON.parse(x)),
2467
- `Failed to parse 'DeploymentDomainsCertificate' from JSON`,
2468
- );
2469
- }
2470
-
2471
- /** @internal */
2472
- export const DeploymentCustomDomains$inboundSchema: z.ZodType<
2473
- DeploymentCustomDomains,
2474
- unknown
2475
- > = z.object({
2476
- certificate: z.lazy(() => DeploymentDomainsCertificate$inboundSchema),
2477
- domain: z.string(),
2478
- });
2479
-
2480
- export function deploymentCustomDomainsFromJSON(
2481
- jsonString: string,
2482
- ): SafeParseResult<DeploymentCustomDomains, SDKValidationError> {
2483
- return safeParse(
2484
- jsonString,
2485
- (x) => DeploymentCustomDomains$inboundSchema.parse(JSON.parse(x)),
2486
- `Failed to parse 'DeploymentCustomDomains' from JSON`,
2487
- );
2488
- }
2489
-
2490
- /** @internal */
2491
- export const DeploymentModeLoadBalancer$inboundSchema: z.ZodEnum<
2492
- typeof DeploymentModeLoadBalancer
2493
- > = z.enum(DeploymentModeLoadBalancer);
2494
-
2495
- /** @internal */
2496
- export const DeploymentPublicEndpointTargetLoadBalancer$inboundSchema:
2497
- z.ZodType<DeploymentPublicEndpointTargetLoadBalancer, unknown> = z.object({
2498
- cnameTarget: z.string(),
2499
- mode: DeploymentModeLoadBalancer$inboundSchema,
2500
- });
2501
-
2502
- export function deploymentPublicEndpointTargetLoadBalancerFromJSON(
2503
- jsonString: string,
2504
- ): SafeParseResult<
2505
- DeploymentPublicEndpointTargetLoadBalancer,
2506
- SDKValidationError
2507
- > {
2508
- return safeParse(
2509
- jsonString,
2510
- (x) =>
2511
- DeploymentPublicEndpointTargetLoadBalancer$inboundSchema.parse(
2512
- JSON.parse(x),
2513
- ),
2514
- `Failed to parse 'DeploymentPublicEndpointTargetLoadBalancer' from JSON`,
2515
- );
2516
- }
2517
-
2518
- /** @internal */
2519
- export const DeploymentModeMachineAddresses$inboundSchema: z.ZodEnum<
2520
- typeof DeploymentModeMachineAddresses
2521
- > = z.enum(DeploymentModeMachineAddresses);
2522
-
2523
- /** @internal */
2524
- export const DeploymentPublicEndpointTargetMachineAddresses$inboundSchema:
2525
- z.ZodType<DeploymentPublicEndpointTargetMachineAddresses, unknown> = z.object(
2526
- {
2527
- mode: DeploymentModeMachineAddresses$inboundSchema,
2528
- },
2529
- );
2530
-
2531
- export function deploymentPublicEndpointTargetMachineAddressesFromJSON(
2532
- jsonString: string,
2533
- ): SafeParseResult<
2534
- DeploymentPublicEndpointTargetMachineAddresses,
2535
- SDKValidationError
2536
- > {
2537
- return safeParse(
2538
- jsonString,
2539
- (x) =>
2540
- DeploymentPublicEndpointTargetMachineAddresses$inboundSchema.parse(
2541
- JSON.parse(x),
2542
- ),
2543
- `Failed to parse 'DeploymentPublicEndpointTargetMachineAddresses' from JSON`,
2544
- );
2545
- }
2546
-
2547
- /** @internal */
2548
- export const DeploymentPublicEndpointTargetUnion$inboundSchema: z.ZodType<
2549
- DeploymentPublicEndpointTargetUnion,
2550
- unknown
2551
- > = z.union([
2552
- z.lazy(() => DeploymentPublicEndpointTargetLoadBalancer$inboundSchema),
2553
- z.lazy(() => DeploymentPublicEndpointTargetMachineAddresses$inboundSchema),
2554
- z.string(),
2555
- ]);
2556
-
2557
- export function deploymentPublicEndpointTargetUnionFromJSON(
2558
- jsonString: string,
2559
- ): SafeParseResult<DeploymentPublicEndpointTargetUnion, SDKValidationError> {
2560
- return safeParse(
2561
- jsonString,
2562
- (x) =>
2563
- DeploymentPublicEndpointTargetUnion$inboundSchema.parse(JSON.parse(x)),
2564
- `Failed to parse 'DeploymentPublicEndpointTargetUnion' from JSON`,
2565
- );
2566
- }
2567
-
2568
- /** @internal */
2569
- export const DeploymentDomains$inboundSchema: z.ZodType<
2570
- DeploymentDomains,
2571
- unknown
2572
- > = z.object({
2573
- customDomains: z.nullable(
2574
- z.record(z.string(), z.lazy(() => DeploymentCustomDomains$inboundSchema)),
2575
- ).optional(),
2576
- publicEndpointTarget: z.nullable(
2577
- z.union([
2578
- z.lazy(() => DeploymentPublicEndpointTargetLoadBalancer$inboundSchema),
2579
- z.lazy(() =>
2580
- DeploymentPublicEndpointTargetMachineAddresses$inboundSchema
2581
- ),
2582
- z.string(),
2583
- ]),
2584
- ).optional(),
2585
- });
2586
-
2587
- export function deploymentDomainsFromJSON(
2588
- jsonString: string,
2589
- ): SafeParseResult<DeploymentDomains, SDKValidationError> {
2590
- return safeParse(
2591
- jsonString,
2592
- (x) => DeploymentDomains$inboundSchema.parse(JSON.parse(x)),
2593
- `Failed to parse 'DeploymentDomains' from JSON`,
2594
- );
2595
- }
2596
-
2597
- /** @internal */
2598
- export const DeploymentDomainsUnion$inboundSchema: z.ZodType<
2599
- DeploymentDomainsUnion,
2600
- unknown
2601
- > = z.union([z.lazy(() => DeploymentDomains$inboundSchema), z.string()]);
2602
-
2603
- export function deploymentDomainsUnionFromJSON(
2604
- jsonString: string,
2605
- ): SafeParseResult<DeploymentDomainsUnion, SDKValidationError> {
2606
- return safeParse(
2607
- jsonString,
2608
- (x) => DeploymentDomainsUnion$inboundSchema.parse(JSON.parse(x)),
2609
- `Failed to parse 'DeploymentDomainsUnion' from JSON`,
2610
- );
2611
- }
2612
-
2613
- /** @internal */
2614
- export const DeploymentEndpointAccess$inboundSchema: z.ZodEnum<
2615
- typeof DeploymentEndpointAccess
2616
- > = z.enum(DeploymentEndpointAccess);
2617
-
2618
- /** @internal */
2619
- export const DeploymentHeartbeats$inboundSchema: z.ZodEnum<
2620
- typeof DeploymentHeartbeats
2621
- > = z.enum(DeploymentHeartbeats);
2622
-
2623
- /** @internal */
2624
- export const DeploymentCloud$inboundSchema: z.ZodType<
2625
- DeploymentCloud,
2626
- unknown
2627
- > = z.object({
2628
- accountId: z.nullable(z.string()).optional(),
2629
- clusterId: z.nullable(z.string()).optional(),
2630
- clusterName: z.nullable(z.string()).optional(),
2631
- projectId: z.nullable(z.string()).optional(),
2632
- region: z.nullable(z.string()).optional(),
2633
- resourceGroup: z.nullable(z.string()).optional(),
2634
- subscriptionId: z.nullable(z.string()).optional(),
2635
- });
2636
-
2637
- export function deploymentCloudFromJSON(
2638
- jsonString: string,
2639
- ): SafeParseResult<DeploymentCloud, SDKValidationError> {
2640
- return safeParse(
2641
- jsonString,
2642
- (x) => DeploymentCloud$inboundSchema.parse(JSON.parse(x)),
2643
- `Failed to parse 'DeploymentCloud' from JSON`,
2644
- );
2645
- }
2646
-
2647
- /** @internal */
2648
- export const DeploymentCloudUnion$inboundSchema: z.ZodType<
2649
- DeploymentCloudUnion,
2650
- unknown
2651
- > = z.union([z.lazy(() => DeploymentCloud$inboundSchema), z.string()]);
2652
-
2653
- export function deploymentCloudUnionFromJSON(
2654
- jsonString: string,
2655
- ): SafeParseResult<DeploymentCloudUnion, SDKValidationError> {
2656
- return safeParse(
2657
- jsonString,
2658
- (x) => DeploymentCloudUnion$inboundSchema.parse(JSON.parse(x)),
2659
- `Failed to parse 'DeploymentCloudUnion' from JSON`,
2660
- );
2661
- }
2662
-
2663
- /** @internal */
2664
- export const DeploymentOwnership$inboundSchema: z.ZodEnum<
2665
- typeof DeploymentOwnership
2666
- > = z.enum(DeploymentOwnership);
2667
-
2668
- /** @internal */
2669
- export const DeploymentCluster$inboundSchema: z.ZodType<
2670
- DeploymentCluster,
2671
- unknown
2672
- > = z.object({
2673
- cloud: z.nullable(
2674
- z.union([z.lazy(() => DeploymentCloud$inboundSchema), z.string()]),
2675
- ).optional(),
2676
- namespace: z.nullable(z.string()).optional(),
2677
- ownership: DeploymentOwnership$inboundSchema,
2678
- });
2679
-
2680
- export function deploymentClusterFromJSON(
2681
- jsonString: string,
2682
- ): SafeParseResult<DeploymentCluster, SDKValidationError> {
2683
- return safeParse(
2684
- jsonString,
2685
- (x) => DeploymentCluster$inboundSchema.parse(JSON.parse(x)),
2686
- `Failed to parse 'DeploymentCluster' from JSON`,
2687
- );
2688
- }
2689
-
2690
- /** @internal */
2691
- export const DeploymentClusterUnion$inboundSchema: z.ZodType<
2692
- DeploymentClusterUnion,
2693
- unknown
2694
- > = z.union([z.lazy(() => DeploymentCluster$inboundSchema), z.string()]);
2695
-
2696
- export function deploymentClusterUnionFromJSON(
2697
- jsonString: string,
2698
- ): SafeParseResult<DeploymentClusterUnion, SDKValidationError> {
2699
- return safeParse(
2700
- jsonString,
2701
- (x) => DeploymentClusterUnion$inboundSchema.parse(JSON.parse(x)),
2702
- `Failed to parse 'DeploymentClusterUnion' from JSON`,
2703
- );
2704
- }
2705
-
2706
- /** @internal */
2707
- export const DeploymentCertificateNone2$inboundSchema: z.ZodType<
2708
- DeploymentCertificateNone2,
2709
- unknown
2710
- > = z.object({
2711
- mode: z.literal("none"),
2712
- });
2713
-
2714
- export function deploymentCertificateNone2FromJSON(
2715
- jsonString: string,
2716
- ): SafeParseResult<DeploymentCertificateNone2, SDKValidationError> {
2717
- return safeParse(
2718
- jsonString,
2719
- (x) => DeploymentCertificateNone2$inboundSchema.parse(JSON.parse(x)),
2720
- `Failed to parse 'DeploymentCertificateNone2' from JSON`,
2721
- );
2722
- }
2723
-
2724
- /** @internal */
2725
- export const DeploymentCertificateManagedTLSSecret2$inboundSchema: z.ZodType<
2726
- DeploymentCertificateManagedTLSSecret2,
2727
- unknown
2728
- > = z.object({
2729
- mode: z.literal("managedTlsSecret"),
2730
- secretNameTemplate: z.string(),
2731
- });
2732
-
2733
- export function deploymentCertificateManagedTLSSecret2FromJSON(
2734
- jsonString: string,
2735
- ): SafeParseResult<DeploymentCertificateManagedTLSSecret2, SDKValidationError> {
2736
- return safeParse(
2737
- jsonString,
2738
- (x) =>
2739
- DeploymentCertificateManagedTLSSecret2$inboundSchema.parse(JSON.parse(x)),
2740
- `Failed to parse 'DeploymentCertificateManagedTLSSecret2' from JSON`,
2741
- );
2742
- }
2743
-
2744
- /** @internal */
2745
- export const DeploymentCertificateAwsAcmArn2$inboundSchema: z.ZodType<
2746
- DeploymentCertificateAwsAcmArn2,
2747
- unknown
2748
- > = z.object({
2749
- certificateArn: z.string(),
2750
- mode: z.literal("awsAcmArn"),
2751
- });
2752
-
2753
- export function deploymentCertificateAwsAcmArn2FromJSON(
2754
- jsonString: string,
2755
- ): SafeParseResult<DeploymentCertificateAwsAcmArn2, SDKValidationError> {
2756
- return safeParse(
2757
- jsonString,
2758
- (x) => DeploymentCertificateAwsAcmArn2$inboundSchema.parse(JSON.parse(x)),
2759
- `Failed to parse 'DeploymentCertificateAwsAcmArn2' from JSON`,
2760
- );
2761
- }
2762
-
2763
- /** @internal */
2764
- export const DeploymentCertificateManagedAcmImport2$inboundSchema: z.ZodType<
2765
- DeploymentCertificateManagedAcmImport2,
2766
- unknown
2767
- > = z.object({
2768
- mode: z.literal("managedAcmImport"),
2769
- region: z.nullable(z.string()).optional(),
2770
- tags: z.record(z.string(), z.string()).optional(),
2771
- });
2772
-
2773
- export function deploymentCertificateManagedAcmImport2FromJSON(
2774
- jsonString: string,
2775
- ): SafeParseResult<DeploymentCertificateManagedAcmImport2, SDKValidationError> {
2776
- return safeParse(
2777
- jsonString,
2778
- (x) =>
2779
- DeploymentCertificateManagedAcmImport2$inboundSchema.parse(JSON.parse(x)),
2780
- `Failed to parse 'DeploymentCertificateManagedAcmImport2' from JSON`,
2781
- );
2782
- }
2783
-
2784
- /** @internal */
2785
- export const DeploymentCertificateTLSSecretRef2$inboundSchema: z.ZodType<
2786
- DeploymentCertificateTLSSecretRef2,
2787
- unknown
2788
- > = z.object({
2789
- namespace: z.nullable(z.string()).optional(),
2790
- secretName: z.string(),
2791
- mode: z.literal("tlsSecretRef"),
2792
- });
2793
-
2794
- export function deploymentCertificateTLSSecretRef2FromJSON(
2795
- jsonString: string,
2796
- ): SafeParseResult<DeploymentCertificateTLSSecretRef2, SDKValidationError> {
2797
- return safeParse(
2798
- jsonString,
2799
- (x) =>
2800
- DeploymentCertificateTLSSecretRef2$inboundSchema.parse(JSON.parse(x)),
2801
- `Failed to parse 'DeploymentCertificateTLSSecretRef2' from JSON`,
2802
- );
2803
- }
2804
-
2805
- /** @internal */
2806
- export const DeploymentCertificateUnion2$inboundSchema: z.ZodType<
2807
- DeploymentCertificateUnion2,
2808
- unknown
2809
- > = z.union([
2810
- z.lazy(() => DeploymentCertificateTLSSecretRef2$inboundSchema),
2811
- z.lazy(() => DeploymentCertificateManagedAcmImport2$inboundSchema),
2812
- z.lazy(() => DeploymentCertificateAwsAcmArn2$inboundSchema),
2813
- z.lazy(() => DeploymentCertificateManagedTLSSecret2$inboundSchema),
2814
- z.lazy(() => DeploymentCertificateNone2$inboundSchema),
2815
- ]);
2816
-
2817
- export function deploymentCertificateUnion2FromJSON(
2818
- jsonString: string,
2819
- ): SafeParseResult<DeploymentCertificateUnion2, SDKValidationError> {
2820
- return safeParse(
2821
- jsonString,
2822
- (x) => DeploymentCertificateUnion2$inboundSchema.parse(JSON.parse(x)),
2823
- `Failed to parse 'DeploymentCertificateUnion2' from JSON`,
2824
- );
2825
- }
2826
-
2827
- /** @internal */
2828
- export const DeploymentModeCustom$inboundSchema: z.ZodEnum<
2829
- typeof DeploymentModeCustom
2830
- > = z.enum(DeploymentModeCustom);
2831
-
2832
- /** @internal */
2833
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum4$inboundSchema:
2834
- z.ZodEnum<
2835
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum4
2836
- > = z.enum(DeploymentProviderAzureApplicationGatewayForContainersEnum4);
2837
-
2838
- /** @internal */
2839
- export const DeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema:
2840
- z.ZodType<DeploymentProviderAzureApplicationGatewayForContainers4, unknown> =
2841
- z.object({
2842
- albName: z.nullable(z.string()).optional(),
2843
- albNamespace: z.nullable(z.string()).optional(),
2844
- frontend: z.string(),
2845
- provider:
2846
- DeploymentProviderAzureApplicationGatewayForContainersEnum4$inboundSchema,
2847
- });
2848
-
2849
- export function deploymentProviderAzureApplicationGatewayForContainers4FromJSON(
2850
- jsonString: string,
2851
- ): SafeParseResult<
2852
- DeploymentProviderAzureApplicationGatewayForContainers4,
2853
- SDKValidationError
2854
- > {
2855
- return safeParse(
2856
- jsonString,
2857
- (x) =>
2858
- DeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema
2859
- .parse(JSON.parse(x)),
2860
- `Failed to parse 'DeploymentProviderAzureApplicationGatewayForContainers4' from JSON`,
2861
- );
2862
- }
2863
-
2864
- /** @internal */
2865
- export const DeploymentProviderGkeGatewayEnum4$inboundSchema: z.ZodEnum<
2866
- typeof DeploymentProviderGkeGatewayEnum4
2867
- > = z.enum(DeploymentProviderGkeGatewayEnum4);
2868
-
2869
- /** @internal */
2870
- export const DeploymentProviderGkeGateway4$inboundSchema: z.ZodType<
2871
- DeploymentProviderGkeGateway4,
2872
- unknown
2873
- > = z.object({
2874
- provider: DeploymentProviderGkeGatewayEnum4$inboundSchema,
2875
- staticAddressName: z.nullable(z.string()).optional(),
2876
- });
2877
-
2878
- export function deploymentProviderGkeGateway4FromJSON(
2879
- jsonString: string,
2880
- ): SafeParseResult<DeploymentProviderGkeGateway4, SDKValidationError> {
2881
- return safeParse(
2882
- jsonString,
2883
- (x) => DeploymentProviderGkeGateway4$inboundSchema.parse(JSON.parse(x)),
2884
- `Failed to parse 'DeploymentProviderGkeGateway4' from JSON`,
2885
- );
2886
- }
2887
-
2888
- /** @internal */
2889
- export const DeploymentProviderAwsAlbEnum4$inboundSchema: z.ZodEnum<
2890
- typeof DeploymentProviderAwsAlbEnum4
2891
- > = z.enum(DeploymentProviderAwsAlbEnum4);
2892
-
2893
- /** @internal */
2894
- export const DeploymentProviderAwsAlb4$inboundSchema: z.ZodType<
2895
- DeploymentProviderAwsAlb4,
2896
- unknown
2897
- > = z.object({
2898
- ipAddressType: z.nullable(z.string()).optional(),
2899
- provider: DeploymentProviderAwsAlbEnum4$inboundSchema,
2900
- scheme: z.string(),
2901
- subnetIds: z.array(z.string()).optional(),
2902
- targetType: z.string(),
2903
- });
2904
-
2905
- export function deploymentProviderAwsAlb4FromJSON(
2906
- jsonString: string,
2907
- ): SafeParseResult<DeploymentProviderAwsAlb4, SDKValidationError> {
2908
- return safeParse(
2909
- jsonString,
2910
- (x) => DeploymentProviderAwsAlb4$inboundSchema.parse(JSON.parse(x)),
2911
- `Failed to parse 'DeploymentProviderAwsAlb4' from JSON`,
2912
- );
2913
- }
2914
-
2915
- /** @internal */
2916
- export const DeploymentProviderUnion4$inboundSchema: z.ZodType<
2917
- DeploymentProviderUnion4,
2918
- unknown
2919
- > = z.union([
2920
- z.lazy(() => DeploymentProviderAwsAlb4$inboundSchema),
2921
- z.lazy(() =>
2922
- DeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema
2923
- ),
2924
- z.lazy(() => DeploymentProviderGkeGateway4$inboundSchema),
2925
- z.string(),
2926
- ]);
2927
-
2928
- export function deploymentProviderUnion4FromJSON(
2929
- jsonString: string,
2930
- ): SafeParseResult<DeploymentProviderUnion4, SDKValidationError> {
2931
- return safeParse(
2932
- jsonString,
2933
- (x) => DeploymentProviderUnion4$inboundSchema.parse(JSON.parse(x)),
2934
- `Failed to parse 'DeploymentProviderUnion4' from JSON`,
2935
- );
2936
- }
2937
-
2938
- /** @internal */
2939
- export const DeploymentRouteGateway2$inboundSchema: z.ZodType<
2940
- DeploymentRouteGateway2,
2941
- unknown
2942
- > = z.object({
2943
- annotations: z.record(z.string(), z.string()).optional(),
2944
- controller: z.nullable(z.string()).optional(),
2945
- gatewayClassName: z.string(),
2946
- labels: z.record(z.string(), z.string()).optional(),
2947
- listenerPort: z.int(),
2948
- provider: z.nullable(
2949
- z.union([
2950
- z.lazy(() => DeploymentProviderAwsAlb4$inboundSchema),
2951
- z.lazy(() =>
2952
- DeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema
2953
- ),
2954
- z.lazy(() => DeploymentProviderGkeGateway4$inboundSchema),
2955
- z.string(),
2956
- ]),
2957
- ).optional(),
2958
- routeApi: z.literal("gateway"),
2959
- });
2960
-
2961
- export function deploymentRouteGateway2FromJSON(
2962
- jsonString: string,
2963
- ): SafeParseResult<DeploymentRouteGateway2, SDKValidationError> {
2964
- return safeParse(
2965
- jsonString,
2966
- (x) => DeploymentRouteGateway2$inboundSchema.parse(JSON.parse(x)),
2967
- `Failed to parse 'DeploymentRouteGateway2' from JSON`,
2968
- );
2969
- }
2970
-
2971
- /** @internal */
2972
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum3$inboundSchema:
2973
- z.ZodEnum<
2974
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum3
2975
- > = z.enum(DeploymentProviderAzureApplicationGatewayForContainersEnum3);
2976
-
2977
- /** @internal */
2978
- export const DeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema:
2979
- z.ZodType<DeploymentProviderAzureApplicationGatewayForContainers3, unknown> =
2980
- z.object({
2981
- albName: z.nullable(z.string()).optional(),
2982
- albNamespace: z.nullable(z.string()).optional(),
2983
- frontend: z.string(),
2984
- provider:
2985
- DeploymentProviderAzureApplicationGatewayForContainersEnum3$inboundSchema,
2986
- });
2987
-
2988
- export function deploymentProviderAzureApplicationGatewayForContainers3FromJSON(
2989
- jsonString: string,
2990
- ): SafeParseResult<
2991
- DeploymentProviderAzureApplicationGatewayForContainers3,
2992
- SDKValidationError
2993
- > {
2994
- return safeParse(
2995
- jsonString,
2996
- (x) =>
2997
- DeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema
2998
- .parse(JSON.parse(x)),
2999
- `Failed to parse 'DeploymentProviderAzureApplicationGatewayForContainers3' from JSON`,
3000
- );
3001
- }
3002
-
3003
- /** @internal */
3004
- export const DeploymentProviderGkeGatewayEnum3$inboundSchema: z.ZodEnum<
3005
- typeof DeploymentProviderGkeGatewayEnum3
3006
- > = z.enum(DeploymentProviderGkeGatewayEnum3);
3007
-
3008
- /** @internal */
3009
- export const DeploymentProviderGkeGateway3$inboundSchema: z.ZodType<
3010
- DeploymentProviderGkeGateway3,
3011
- unknown
3012
- > = z.object({
3013
- provider: DeploymentProviderGkeGatewayEnum3$inboundSchema,
3014
- staticAddressName: z.nullable(z.string()).optional(),
3015
- });
3016
-
3017
- export function deploymentProviderGkeGateway3FromJSON(
3018
- jsonString: string,
3019
- ): SafeParseResult<DeploymentProviderGkeGateway3, SDKValidationError> {
3020
- return safeParse(
3021
- jsonString,
3022
- (x) => DeploymentProviderGkeGateway3$inboundSchema.parse(JSON.parse(x)),
3023
- `Failed to parse 'DeploymentProviderGkeGateway3' from JSON`,
3024
- );
3025
- }
3026
-
3027
- /** @internal */
3028
- export const DeploymentProviderAwsAlbEnum3$inboundSchema: z.ZodEnum<
3029
- typeof DeploymentProviderAwsAlbEnum3
3030
- > = z.enum(DeploymentProviderAwsAlbEnum3);
3031
-
3032
- /** @internal */
3033
- export const DeploymentProviderAwsAlb3$inboundSchema: z.ZodType<
3034
- DeploymentProviderAwsAlb3,
3035
- unknown
3036
- > = z.object({
3037
- ipAddressType: z.nullable(z.string()).optional(),
3038
- provider: DeploymentProviderAwsAlbEnum3$inboundSchema,
3039
- scheme: z.string(),
3040
- subnetIds: z.array(z.string()).optional(),
3041
- targetType: z.string(),
3042
- });
3043
-
3044
- export function deploymentProviderAwsAlb3FromJSON(
3045
- jsonString: string,
3046
- ): SafeParseResult<DeploymentProviderAwsAlb3, SDKValidationError> {
3047
- return safeParse(
3048
- jsonString,
3049
- (x) => DeploymentProviderAwsAlb3$inboundSchema.parse(JSON.parse(x)),
3050
- `Failed to parse 'DeploymentProviderAwsAlb3' from JSON`,
3051
- );
3052
- }
3053
-
3054
- /** @internal */
3055
- export const DeploymentProviderUnion3$inboundSchema: z.ZodType<
3056
- DeploymentProviderUnion3,
3057
- unknown
3058
- > = z.union([
3059
- z.lazy(() => DeploymentProviderAwsAlb3$inboundSchema),
3060
- z.lazy(() =>
3061
- DeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema
3062
- ),
3063
- z.lazy(() => DeploymentProviderGkeGateway3$inboundSchema),
3064
- z.string(),
3065
- ]);
3066
-
3067
- export function deploymentProviderUnion3FromJSON(
3068
- jsonString: string,
3069
- ): SafeParseResult<DeploymentProviderUnion3, SDKValidationError> {
3070
- return safeParse(
3071
- jsonString,
3072
- (x) => DeploymentProviderUnion3$inboundSchema.parse(JSON.parse(x)),
3073
- `Failed to parse 'DeploymentProviderUnion3' from JSON`,
3074
- );
3075
- }
3076
-
3077
- /** @internal */
3078
- export const DeploymentRouteIngress2$inboundSchema: z.ZodType<
3079
- DeploymentRouteIngress2,
3080
- unknown
3081
- > = z.object({
3082
- annotations: z.record(z.string(), z.string()).optional(),
3083
- controller: z.nullable(z.string()).optional(),
3084
- ingressClassName: z.string(),
3085
- labels: z.record(z.string(), z.string()).optional(),
3086
- provider: z.nullable(
3087
- z.union([
3088
- z.lazy(() => DeploymentProviderAwsAlb3$inboundSchema),
3089
- z.lazy(() =>
3090
- DeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema
3091
- ),
3092
- z.lazy(() => DeploymentProviderGkeGateway3$inboundSchema),
3093
- z.string(),
3094
- ]),
3095
- ).optional(),
3096
- routeApi: z.literal("ingress"),
3097
- });
3098
-
3099
- export function deploymentRouteIngress2FromJSON(
3100
- jsonString: string,
3101
- ): SafeParseResult<DeploymentRouteIngress2, SDKValidationError> {
3102
- return safeParse(
3103
- jsonString,
3104
- (x) => DeploymentRouteIngress2$inboundSchema.parse(JSON.parse(x)),
3105
- `Failed to parse 'DeploymentRouteIngress2' from JSON`,
3106
- );
3107
- }
3108
-
3109
- /** @internal */
3110
- export const DeploymentRouteUnion2$inboundSchema: z.ZodType<
3111
- DeploymentRouteUnion2,
3112
- unknown
3113
- > = z.union([
3114
- z.lazy(() => DeploymentRouteIngress2$inboundSchema),
3115
- z.lazy(() => DeploymentRouteGateway2$inboundSchema),
3116
- ]);
3117
-
3118
- export function deploymentRouteUnion2FromJSON(
3119
- jsonString: string,
3120
- ): SafeParseResult<DeploymentRouteUnion2, SDKValidationError> {
3121
- return safeParse(
3122
- jsonString,
3123
- (x) => DeploymentRouteUnion2$inboundSchema.parse(JSON.parse(x)),
3124
- `Failed to parse 'DeploymentRouteUnion2' from JSON`,
3125
- );
3126
- }
3127
-
3128
- /** @internal */
3129
- export const DeploymentExposureCustom$inboundSchema: z.ZodType<
3130
- DeploymentExposureCustom,
3131
- unknown
3132
- > = z.object({
3133
- certificate: z.union([
3134
- z.lazy(() => DeploymentCertificateTLSSecretRef2$inboundSchema),
3135
- z.lazy(() => DeploymentCertificateManagedAcmImport2$inboundSchema),
3136
- z.lazy(() => DeploymentCertificateAwsAcmArn2$inboundSchema),
3137
- z.lazy(() => DeploymentCertificateManagedTLSSecret2$inboundSchema),
3138
- z.lazy(() => DeploymentCertificateNone2$inboundSchema),
3139
- ]),
3140
- domain: z.string(),
3141
- mode: DeploymentModeCustom$inboundSchema,
3142
- route: z.union([
3143
- z.lazy(() => DeploymentRouteIngress2$inboundSchema),
3144
- z.lazy(() => DeploymentRouteGateway2$inboundSchema),
3145
- ]),
3146
- });
3147
-
3148
- export function deploymentExposureCustomFromJSON(
3149
- jsonString: string,
3150
- ): SafeParseResult<DeploymentExposureCustom, SDKValidationError> {
3151
- return safeParse(
3152
- jsonString,
3153
- (x) => DeploymentExposureCustom$inboundSchema.parse(JSON.parse(x)),
3154
- `Failed to parse 'DeploymentExposureCustom' from JSON`,
3155
- );
3156
- }
3157
-
3158
- /** @internal */
3159
- export const DeploymentCertificateNone1$inboundSchema: z.ZodType<
3160
- DeploymentCertificateNone1,
3161
- unknown
3162
- > = z.object({
3163
- mode: z.literal("none"),
3164
- });
3165
-
3166
- export function deploymentCertificateNone1FromJSON(
3167
- jsonString: string,
3168
- ): SafeParseResult<DeploymentCertificateNone1, SDKValidationError> {
3169
- return safeParse(
3170
- jsonString,
3171
- (x) => DeploymentCertificateNone1$inboundSchema.parse(JSON.parse(x)),
3172
- `Failed to parse 'DeploymentCertificateNone1' from JSON`,
3173
- );
3174
- }
3175
-
3176
- /** @internal */
3177
- export const DeploymentCertificateManagedTLSSecret1$inboundSchema: z.ZodType<
3178
- DeploymentCertificateManagedTLSSecret1,
3179
- unknown
3180
- > = z.object({
3181
- mode: z.literal("managedTlsSecret"),
3182
- secretNameTemplate: z.string(),
3183
- });
3184
-
3185
- export function deploymentCertificateManagedTLSSecret1FromJSON(
3186
- jsonString: string,
3187
- ): SafeParseResult<DeploymentCertificateManagedTLSSecret1, SDKValidationError> {
3188
- return safeParse(
3189
- jsonString,
3190
- (x) =>
3191
- DeploymentCertificateManagedTLSSecret1$inboundSchema.parse(JSON.parse(x)),
3192
- `Failed to parse 'DeploymentCertificateManagedTLSSecret1' from JSON`,
3193
- );
3194
- }
3195
-
3196
- /** @internal */
3197
- export const DeploymentCertificateAwsAcmArn1$inboundSchema: z.ZodType<
3198
- DeploymentCertificateAwsAcmArn1,
3199
- unknown
3200
- > = z.object({
3201
- certificateArn: z.string(),
3202
- mode: z.literal("awsAcmArn"),
3203
- });
3204
-
3205
- export function deploymentCertificateAwsAcmArn1FromJSON(
3206
- jsonString: string,
3207
- ): SafeParseResult<DeploymentCertificateAwsAcmArn1, SDKValidationError> {
3208
- return safeParse(
3209
- jsonString,
3210
- (x) => DeploymentCertificateAwsAcmArn1$inboundSchema.parse(JSON.parse(x)),
3211
- `Failed to parse 'DeploymentCertificateAwsAcmArn1' from JSON`,
3212
- );
3213
- }
3214
-
3215
- /** @internal */
3216
- export const DeploymentCertificateManagedAcmImport1$inboundSchema: z.ZodType<
3217
- DeploymentCertificateManagedAcmImport1,
3218
- unknown
3219
- > = z.object({
3220
- mode: z.literal("managedAcmImport"),
3221
- region: z.nullable(z.string()).optional(),
3222
- tags: z.record(z.string(), z.string()).optional(),
3223
- });
3224
-
3225
- export function deploymentCertificateManagedAcmImport1FromJSON(
3226
- jsonString: string,
3227
- ): SafeParseResult<DeploymentCertificateManagedAcmImport1, SDKValidationError> {
3228
- return safeParse(
3229
- jsonString,
3230
- (x) =>
3231
- DeploymentCertificateManagedAcmImport1$inboundSchema.parse(JSON.parse(x)),
3232
- `Failed to parse 'DeploymentCertificateManagedAcmImport1' from JSON`,
3233
- );
3234
- }
3235
-
3236
- /** @internal */
3237
- export const DeploymentCertificateTLSSecretRef1$inboundSchema: z.ZodType<
3238
- DeploymentCertificateTLSSecretRef1,
3239
- unknown
3240
- > = z.object({
3241
- namespace: z.nullable(z.string()).optional(),
3242
- secretName: z.string(),
3243
- mode: z.literal("tlsSecretRef"),
3244
- });
3245
-
3246
- export function deploymentCertificateTLSSecretRef1FromJSON(
3247
- jsonString: string,
3248
- ): SafeParseResult<DeploymentCertificateTLSSecretRef1, SDKValidationError> {
3249
- return safeParse(
3250
- jsonString,
3251
- (x) =>
3252
- DeploymentCertificateTLSSecretRef1$inboundSchema.parse(JSON.parse(x)),
3253
- `Failed to parse 'DeploymentCertificateTLSSecretRef1' from JSON`,
3254
- );
3255
- }
3256
-
3257
- /** @internal */
3258
- export const DeploymentCertificateUnion1$inboundSchema: z.ZodType<
3259
- DeploymentCertificateUnion1,
3260
- unknown
3261
- > = z.union([
3262
- z.lazy(() => DeploymentCertificateTLSSecretRef1$inboundSchema),
3263
- z.lazy(() => DeploymentCertificateManagedAcmImport1$inboundSchema),
3264
- z.lazy(() => DeploymentCertificateAwsAcmArn1$inboundSchema),
3265
- z.lazy(() => DeploymentCertificateManagedTLSSecret1$inboundSchema),
3266
- z.lazy(() => DeploymentCertificateNone1$inboundSchema),
3267
- ]);
3268
-
3269
- export function deploymentCertificateUnion1FromJSON(
3270
- jsonString: string,
3271
- ): SafeParseResult<DeploymentCertificateUnion1, SDKValidationError> {
3272
- return safeParse(
3273
- jsonString,
3274
- (x) => DeploymentCertificateUnion1$inboundSchema.parse(JSON.parse(x)),
3275
- `Failed to parse 'DeploymentCertificateUnion1' from JSON`,
3276
- );
3277
- }
3278
-
3279
- /** @internal */
3280
- export const DeploymentModeGenerated$inboundSchema: z.ZodEnum<
3281
- typeof DeploymentModeGenerated
3282
- > = z.enum(DeploymentModeGenerated);
3283
-
3284
- /** @internal */
3285
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum2$inboundSchema:
3286
- z.ZodEnum<
3287
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum2
3288
- > = z.enum(DeploymentProviderAzureApplicationGatewayForContainersEnum2);
3289
-
3290
- /** @internal */
3291
- export const DeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema:
3292
- z.ZodType<DeploymentProviderAzureApplicationGatewayForContainers2, unknown> =
3293
- z.object({
3294
- albName: z.nullable(z.string()).optional(),
3295
- albNamespace: z.nullable(z.string()).optional(),
3296
- frontend: z.string(),
3297
- provider:
3298
- DeploymentProviderAzureApplicationGatewayForContainersEnum2$inboundSchema,
3299
- });
3300
-
3301
- export function deploymentProviderAzureApplicationGatewayForContainers2FromJSON(
3302
- jsonString: string,
3303
- ): SafeParseResult<
3304
- DeploymentProviderAzureApplicationGatewayForContainers2,
3305
- SDKValidationError
3306
- > {
3307
- return safeParse(
3308
- jsonString,
3309
- (x) =>
3310
- DeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema
3311
- .parse(JSON.parse(x)),
3312
- `Failed to parse 'DeploymentProviderAzureApplicationGatewayForContainers2' from JSON`,
3313
- );
3314
- }
3315
-
3316
- /** @internal */
3317
- export const DeploymentProviderGkeGatewayEnum2$inboundSchema: z.ZodEnum<
3318
- typeof DeploymentProviderGkeGatewayEnum2
3319
- > = z.enum(DeploymentProviderGkeGatewayEnum2);
3320
-
3321
- /** @internal */
3322
- export const DeploymentProviderGkeGateway2$inboundSchema: z.ZodType<
3323
- DeploymentProviderGkeGateway2,
3324
- unknown
3325
- > = z.object({
3326
- provider: DeploymentProviderGkeGatewayEnum2$inboundSchema,
3327
- staticAddressName: z.nullable(z.string()).optional(),
3328
- });
3329
-
3330
- export function deploymentProviderGkeGateway2FromJSON(
3331
- jsonString: string,
3332
- ): SafeParseResult<DeploymentProviderGkeGateway2, SDKValidationError> {
3333
- return safeParse(
3334
- jsonString,
3335
- (x) => DeploymentProviderGkeGateway2$inboundSchema.parse(JSON.parse(x)),
3336
- `Failed to parse 'DeploymentProviderGkeGateway2' from JSON`,
3337
- );
3338
- }
3339
-
3340
- /** @internal */
3341
- export const DeploymentProviderAwsAlbEnum2$inboundSchema: z.ZodEnum<
3342
- typeof DeploymentProviderAwsAlbEnum2
3343
- > = z.enum(DeploymentProviderAwsAlbEnum2);
3344
-
3345
- /** @internal */
3346
- export const DeploymentProviderAwsAlb2$inboundSchema: z.ZodType<
3347
- DeploymentProviderAwsAlb2,
3348
- unknown
3349
- > = z.object({
3350
- ipAddressType: z.nullable(z.string()).optional(),
3351
- provider: DeploymentProviderAwsAlbEnum2$inboundSchema,
3352
- scheme: z.string(),
3353
- subnetIds: z.array(z.string()).optional(),
3354
- targetType: z.string(),
3355
- });
3356
-
3357
- export function deploymentProviderAwsAlb2FromJSON(
3358
- jsonString: string,
3359
- ): SafeParseResult<DeploymentProviderAwsAlb2, SDKValidationError> {
3360
- return safeParse(
3361
- jsonString,
3362
- (x) => DeploymentProviderAwsAlb2$inboundSchema.parse(JSON.parse(x)),
3363
- `Failed to parse 'DeploymentProviderAwsAlb2' from JSON`,
3364
- );
3365
- }
3366
-
3367
- /** @internal */
3368
- export const DeploymentProviderUnion2$inboundSchema: z.ZodType<
3369
- DeploymentProviderUnion2,
3370
- unknown
3371
- > = z.union([
3372
- z.lazy(() => DeploymentProviderAwsAlb2$inboundSchema),
3373
- z.lazy(() =>
3374
- DeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema
3375
- ),
3376
- z.lazy(() => DeploymentProviderGkeGateway2$inboundSchema),
3377
- z.string(),
3378
- ]);
3379
-
3380
- export function deploymentProviderUnion2FromJSON(
3381
- jsonString: string,
3382
- ): SafeParseResult<DeploymentProviderUnion2, SDKValidationError> {
3383
- return safeParse(
3384
- jsonString,
3385
- (x) => DeploymentProviderUnion2$inboundSchema.parse(JSON.parse(x)),
3386
- `Failed to parse 'DeploymentProviderUnion2' from JSON`,
3387
- );
3388
- }
3389
-
3390
- /** @internal */
3391
- export const DeploymentRouteGateway1$inboundSchema: z.ZodType<
3392
- DeploymentRouteGateway1,
3393
- unknown
3394
- > = z.object({
3395
- annotations: z.record(z.string(), z.string()).optional(),
3396
- controller: z.nullable(z.string()).optional(),
3397
- gatewayClassName: z.string(),
3398
- labels: z.record(z.string(), z.string()).optional(),
3399
- listenerPort: z.int(),
3400
- provider: z.nullable(
3401
- z.union([
3402
- z.lazy(() => DeploymentProviderAwsAlb2$inboundSchema),
3403
- z.lazy(() =>
3404
- DeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema
3405
- ),
3406
- z.lazy(() => DeploymentProviderGkeGateway2$inboundSchema),
3407
- z.string(),
3408
- ]),
3409
- ).optional(),
3410
- routeApi: z.literal("gateway"),
3411
- });
3412
-
3413
- export function deploymentRouteGateway1FromJSON(
3414
- jsonString: string,
3415
- ): SafeParseResult<DeploymentRouteGateway1, SDKValidationError> {
3416
- return safeParse(
3417
- jsonString,
3418
- (x) => DeploymentRouteGateway1$inboundSchema.parse(JSON.parse(x)),
3419
- `Failed to parse 'DeploymentRouteGateway1' from JSON`,
3420
- );
3421
- }
3422
-
3423
- /** @internal */
3424
- export const DeploymentProviderAzureApplicationGatewayForContainersEnum1$inboundSchema:
3425
- z.ZodEnum<
3426
- typeof DeploymentProviderAzureApplicationGatewayForContainersEnum1
3427
- > = z.enum(DeploymentProviderAzureApplicationGatewayForContainersEnum1);
3428
-
3429
- /** @internal */
3430
- export const DeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema:
3431
- z.ZodType<DeploymentProviderAzureApplicationGatewayForContainers1, unknown> =
3432
- z.object({
3433
- albName: z.nullable(z.string()).optional(),
3434
- albNamespace: z.nullable(z.string()).optional(),
3435
- frontend: z.string(),
3436
- provider:
3437
- DeploymentProviderAzureApplicationGatewayForContainersEnum1$inboundSchema,
3438
- });
3439
-
3440
- export function deploymentProviderAzureApplicationGatewayForContainers1FromJSON(
3441
- jsonString: string,
3442
- ): SafeParseResult<
3443
- DeploymentProviderAzureApplicationGatewayForContainers1,
3444
- SDKValidationError
3445
- > {
3446
- return safeParse(
3447
- jsonString,
3448
- (x) =>
3449
- DeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema
3450
- .parse(JSON.parse(x)),
3451
- `Failed to parse 'DeploymentProviderAzureApplicationGatewayForContainers1' from JSON`,
3452
- );
3453
- }
3454
-
3455
- /** @internal */
3456
- export const DeploymentProviderGkeGatewayEnum1$inboundSchema: z.ZodEnum<
3457
- typeof DeploymentProviderGkeGatewayEnum1
3458
- > = z.enum(DeploymentProviderGkeGatewayEnum1);
3459
-
3460
- /** @internal */
3461
- export const DeploymentProviderGkeGateway1$inboundSchema: z.ZodType<
3462
- DeploymentProviderGkeGateway1,
3463
- unknown
3464
- > = z.object({
3465
- provider: DeploymentProviderGkeGatewayEnum1$inboundSchema,
3466
- staticAddressName: z.nullable(z.string()).optional(),
3467
- });
3468
-
3469
- export function deploymentProviderGkeGateway1FromJSON(
3470
- jsonString: string,
3471
- ): SafeParseResult<DeploymentProviderGkeGateway1, SDKValidationError> {
3472
- return safeParse(
3473
- jsonString,
3474
- (x) => DeploymentProviderGkeGateway1$inboundSchema.parse(JSON.parse(x)),
3475
- `Failed to parse 'DeploymentProviderGkeGateway1' from JSON`,
3476
- );
3477
- }
3478
-
3479
- /** @internal */
3480
- export const DeploymentProviderAwsAlbEnum1$inboundSchema: z.ZodEnum<
3481
- typeof DeploymentProviderAwsAlbEnum1
3482
- > = z.enum(DeploymentProviderAwsAlbEnum1);
3483
-
3484
- /** @internal */
3485
- export const DeploymentProviderAwsAlb1$inboundSchema: z.ZodType<
3486
- DeploymentProviderAwsAlb1,
3487
- unknown
3488
- > = z.object({
3489
- ipAddressType: z.nullable(z.string()).optional(),
3490
- provider: DeploymentProviderAwsAlbEnum1$inboundSchema,
3491
- scheme: z.string(),
3492
- subnetIds: z.array(z.string()).optional(),
3493
- targetType: z.string(),
3494
- });
3495
-
3496
- export function deploymentProviderAwsAlb1FromJSON(
3497
- jsonString: string,
3498
- ): SafeParseResult<DeploymentProviderAwsAlb1, SDKValidationError> {
3499
- return safeParse(
3500
- jsonString,
3501
- (x) => DeploymentProviderAwsAlb1$inboundSchema.parse(JSON.parse(x)),
3502
- `Failed to parse 'DeploymentProviderAwsAlb1' from JSON`,
3503
- );
3504
- }
3505
-
3506
- /** @internal */
3507
- export const DeploymentProviderUnion1$inboundSchema: z.ZodType<
3508
- DeploymentProviderUnion1,
3509
- unknown
3510
- > = z.union([
3511
- z.lazy(() => DeploymentProviderAwsAlb1$inboundSchema),
3512
- z.lazy(() =>
3513
- DeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema
3514
- ),
3515
- z.lazy(() => DeploymentProviderGkeGateway1$inboundSchema),
3516
- z.string(),
3517
- ]);
3518
-
3519
- export function deploymentProviderUnion1FromJSON(
3520
- jsonString: string,
3521
- ): SafeParseResult<DeploymentProviderUnion1, SDKValidationError> {
3522
- return safeParse(
3523
- jsonString,
3524
- (x) => DeploymentProviderUnion1$inboundSchema.parse(JSON.parse(x)),
3525
- `Failed to parse 'DeploymentProviderUnion1' from JSON`,
3526
- );
3527
- }
3528
-
3529
- /** @internal */
3530
- export const DeploymentRouteIngress1$inboundSchema: z.ZodType<
3531
- DeploymentRouteIngress1,
3532
- unknown
3533
- > = z.object({
3534
- annotations: z.record(z.string(), z.string()).optional(),
3535
- controller: z.nullable(z.string()).optional(),
3536
- ingressClassName: z.string(),
3537
- labels: z.record(z.string(), z.string()).optional(),
3538
- provider: z.nullable(
3539
- z.union([
3540
- z.lazy(() => DeploymentProviderAwsAlb1$inboundSchema),
3541
- z.lazy(() =>
3542
- DeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema
3543
- ),
3544
- z.lazy(() => DeploymentProviderGkeGateway1$inboundSchema),
3545
- z.string(),
3546
- ]),
3547
- ).optional(),
3548
- routeApi: z.literal("ingress"),
3549
- });
3550
-
3551
- export function deploymentRouteIngress1FromJSON(
3552
- jsonString: string,
3553
- ): SafeParseResult<DeploymentRouteIngress1, SDKValidationError> {
3554
- return safeParse(
3555
- jsonString,
3556
- (x) => DeploymentRouteIngress1$inboundSchema.parse(JSON.parse(x)),
3557
- `Failed to parse 'DeploymentRouteIngress1' from JSON`,
3558
- );
3559
- }
3560
-
3561
- /** @internal */
3562
- export const DeploymentRouteUnion1$inboundSchema: z.ZodType<
3563
- DeploymentRouteUnion1,
3564
- unknown
3565
- > = z.union([
3566
- z.lazy(() => DeploymentRouteIngress1$inboundSchema),
3567
- z.lazy(() => DeploymentRouteGateway1$inboundSchema),
3568
- ]);
3569
-
3570
- export function deploymentRouteUnion1FromJSON(
3571
- jsonString: string,
3572
- ): SafeParseResult<DeploymentRouteUnion1, SDKValidationError> {
3573
- return safeParse(
3574
- jsonString,
3575
- (x) => DeploymentRouteUnion1$inboundSchema.parse(JSON.parse(x)),
3576
- `Failed to parse 'DeploymentRouteUnion1' from JSON`,
3577
- );
3578
- }
3579
-
3580
- /** @internal */
3581
- export const DeploymentExposureGenerated$inboundSchema: z.ZodType<
3582
- DeploymentExposureGenerated,
3583
- unknown
3584
- > = z.object({
3585
- certificate: z.union([
3586
- z.lazy(() => DeploymentCertificateTLSSecretRef1$inboundSchema),
3587
- z.lazy(() => DeploymentCertificateManagedAcmImport1$inboundSchema),
3588
- z.lazy(() => DeploymentCertificateAwsAcmArn1$inboundSchema),
3589
- z.lazy(() => DeploymentCertificateManagedTLSSecret1$inboundSchema),
3590
- z.lazy(() => DeploymentCertificateNone1$inboundSchema),
3591
- ]),
3592
- mode: DeploymentModeGenerated$inboundSchema,
3593
- route: z.union([
3594
- z.lazy(() => DeploymentRouteIngress1$inboundSchema),
3595
- z.lazy(() => DeploymentRouteGateway1$inboundSchema),
3596
- ]),
3597
- });
3598
-
3599
- export function deploymentExposureGeneratedFromJSON(
3600
- jsonString: string,
3601
- ): SafeParseResult<DeploymentExposureGenerated, SDKValidationError> {
3602
- return safeParse(
3603
- jsonString,
3604
- (x) => DeploymentExposureGenerated$inboundSchema.parse(JSON.parse(x)),
3605
- `Failed to parse 'DeploymentExposureGenerated' from JSON`,
3606
- );
3607
- }
3608
-
3609
- /** @internal */
3610
- export const DeploymentModeDisabled$inboundSchema: z.ZodEnum<
3611
- typeof DeploymentModeDisabled
3612
- > = z.enum(DeploymentModeDisabled);
3613
-
3614
- /** @internal */
3615
- export const DeploymentExposureDisabled$inboundSchema: z.ZodType<
3616
- DeploymentExposureDisabled,
3617
- unknown
3618
- > = z.object({
3619
- mode: DeploymentModeDisabled$inboundSchema,
3620
- });
3621
-
3622
- export function deploymentExposureDisabledFromJSON(
3623
- jsonString: string,
3624
- ): SafeParseResult<DeploymentExposureDisabled, SDKValidationError> {
3625
- return safeParse(
3626
- jsonString,
3627
- (x) => DeploymentExposureDisabled$inboundSchema.parse(JSON.parse(x)),
3628
- `Failed to parse 'DeploymentExposureDisabled' from JSON`,
3629
- );
3630
- }
3631
-
3632
- /** @internal */
3633
- export const DeploymentExposureUnion$inboundSchema: z.ZodType<
3634
- DeploymentExposureUnion,
3635
- unknown
3636
- > = z.union([
3637
- z.lazy(() => DeploymentExposureCustom$inboundSchema),
3638
- z.lazy(() => DeploymentExposureGenerated$inboundSchema),
3639
- z.lazy(() => DeploymentExposureDisabled$inboundSchema),
3640
- z.string(),
3641
- ]);
3642
-
3643
- export function deploymentExposureUnionFromJSON(
3644
- jsonString: string,
3645
- ): SafeParseResult<DeploymentExposureUnion, SDKValidationError> {
3646
- return safeParse(
3647
- jsonString,
3648
- (x) => DeploymentExposureUnion$inboundSchema.parse(JSON.parse(x)),
3649
- `Failed to parse 'DeploymentExposureUnion' from JSON`,
3650
- );
3651
- }
3652
-
3653
- /** @internal */
3654
- export const DeploymentKubernetes$inboundSchema: z.ZodType<
3655
- DeploymentKubernetes,
3656
- unknown
3657
- > = z.object({
3658
- cluster: z.nullable(
3659
- z.union([z.lazy(() => DeploymentCluster$inboundSchema), z.string()]),
3660
- ).optional(),
3661
- exposure: z.nullable(
3662
- z.union([
3663
- z.lazy(() => DeploymentExposureCustom$inboundSchema),
3664
- z.lazy(() => DeploymentExposureGenerated$inboundSchema),
3665
- z.lazy(() => DeploymentExposureDisabled$inboundSchema),
3666
- z.string(),
3667
- ]),
3668
- ).optional(),
3669
- });
3670
-
3671
- export function deploymentKubernetesFromJSON(
3672
- jsonString: string,
3673
- ): SafeParseResult<DeploymentKubernetes, SDKValidationError> {
3674
- return safeParse(
3675
- jsonString,
3676
- (x) => DeploymentKubernetes$inboundSchema.parse(JSON.parse(x)),
3677
- `Failed to parse 'DeploymentKubernetes' from JSON`,
3678
- );
3679
- }
3680
-
3681
- /** @internal */
3682
- export const DeploymentKubernetesUnion$inboundSchema: z.ZodType<
3683
- DeploymentKubernetesUnion,
3684
- unknown
3685
- > = z.union([z.lazy(() => DeploymentKubernetes$inboundSchema), z.string()]);
3686
-
3687
- export function deploymentKubernetesUnionFromJSON(
3688
- jsonString: string,
3689
- ): SafeParseResult<DeploymentKubernetesUnion, SDKValidationError> {
3690
- return safeParse(
3691
- jsonString,
3692
- (x) => DeploymentKubernetesUnion$inboundSchema.parse(JSON.parse(x)),
3693
- `Failed to parse 'DeploymentKubernetesUnion' from JSON`,
3694
- );
3695
- }
3696
-
3697
- /** @internal */
3698
- export const DeploymentTypeByoVnetAzure$inboundSchema: z.ZodEnum<
3699
- typeof DeploymentTypeByoVnetAzure
3700
- > = z.enum(DeploymentTypeByoVnetAzure);
3701
-
3702
- /** @internal */
3703
- export const DeploymentNetworkByoVnetAzure$inboundSchema: z.ZodType<
3704
- DeploymentNetworkByoVnetAzure,
3705
- unknown
3706
- > = z.object({
3707
- application_gateway_subnet_name: z.nullable(z.string()).optional(),
3708
- private_endpoint_subnet_name: z.nullable(z.string()).optional(),
3709
- private_subnet_name: z.string(),
3710
- public_subnet_name: z.string(),
3711
- type: DeploymentTypeByoVnetAzure$inboundSchema,
3712
- vnet_resource_id: z.string(),
3713
- }).transform((v) => {
3714
- return remap$(v, {
3715
- "application_gateway_subnet_name": "applicationGatewaySubnetName",
3716
- "private_endpoint_subnet_name": "privateEndpointSubnetName",
3717
- "private_subnet_name": "privateSubnetName",
3718
- "public_subnet_name": "publicSubnetName",
3719
- "vnet_resource_id": "vnetResourceId",
3720
- });
3721
- });
3722
-
3723
- export function deploymentNetworkByoVnetAzureFromJSON(
3724
- jsonString: string,
3725
- ): SafeParseResult<DeploymentNetworkByoVnetAzure, SDKValidationError> {
3726
- return safeParse(
3727
- jsonString,
3728
- (x) => DeploymentNetworkByoVnetAzure$inboundSchema.parse(JSON.parse(x)),
3729
- `Failed to parse 'DeploymentNetworkByoVnetAzure' from JSON`,
3730
- );
3731
- }
3732
-
3733
- /** @internal */
3734
- export const DeploymentTypeByoVpcGcp$inboundSchema: z.ZodEnum<
3735
- typeof DeploymentTypeByoVpcGcp
3736
- > = z.enum(DeploymentTypeByoVpcGcp);
3737
-
3738
- /** @internal */
3739
- export const DeploymentNetworkByoVpcGcp$inboundSchema: z.ZodType<
3740
- DeploymentNetworkByoVpcGcp,
3741
- unknown
3742
- > = z.object({
3743
- network_name: z.string(),
3744
- region: z.string(),
3745
- subnet_name: z.string(),
3746
- type: DeploymentTypeByoVpcGcp$inboundSchema,
3747
- }).transform((v) => {
3748
- return remap$(v, {
3749
- "network_name": "networkName",
3750
- "subnet_name": "subnetName",
3751
- });
3752
- });
3753
-
3754
- export function deploymentNetworkByoVpcGcpFromJSON(
3755
- jsonString: string,
3756
- ): SafeParseResult<DeploymentNetworkByoVpcGcp, SDKValidationError> {
3757
- return safeParse(
3758
- jsonString,
3759
- (x) => DeploymentNetworkByoVpcGcp$inboundSchema.parse(JSON.parse(x)),
3760
- `Failed to parse 'DeploymentNetworkByoVpcGcp' from JSON`,
3761
- );
3762
- }
3763
-
3764
- /** @internal */
3765
- export const DeploymentTypeByoVpcAws$inboundSchema: z.ZodEnum<
3766
- typeof DeploymentTypeByoVpcAws
3767
- > = z.enum(DeploymentTypeByoVpcAws);
3768
-
3769
- /** @internal */
3770
- export const DeploymentNetworkByoVpcAws$inboundSchema: z.ZodType<
3771
- DeploymentNetworkByoVpcAws,
3772
- unknown
3773
- > = z.object({
3774
- private_subnet_ids: z.array(z.string()),
3775
- public_subnet_ids: z.array(z.string()),
3776
- security_group_ids: z.array(z.string()).optional(),
3777
- type: DeploymentTypeByoVpcAws$inboundSchema,
3778
- vpc_id: z.string(),
3779
- }).transform((v) => {
3780
- return remap$(v, {
3781
- "private_subnet_ids": "privateSubnetIds",
3782
- "public_subnet_ids": "publicSubnetIds",
3783
- "security_group_ids": "securityGroupIds",
3784
- "vpc_id": "vpcId",
3785
- });
3786
- });
3787
-
3788
- export function deploymentNetworkByoVpcAwsFromJSON(
3789
- jsonString: string,
3790
- ): SafeParseResult<DeploymentNetworkByoVpcAws, SDKValidationError> {
3791
- return safeParse(
3792
- jsonString,
3793
- (x) => DeploymentNetworkByoVpcAws$inboundSchema.parse(JSON.parse(x)),
3794
- `Failed to parse 'DeploymentNetworkByoVpcAws' from JSON`,
3795
- );
3796
- }
3797
-
3798
- /** @internal */
3799
- export const DeploymentTypeCreate$inboundSchema: z.ZodEnum<
3800
- typeof DeploymentTypeCreate
3801
- > = z.enum(DeploymentTypeCreate);
3802
-
3803
- /** @internal */
3804
- export const DeploymentNetworkCreate$inboundSchema: z.ZodType<
3805
- DeploymentNetworkCreate,
3806
- unknown
3807
- > = z.object({
3808
- availability_zones: z.int().optional(),
3809
- cidr: z.nullable(z.string()).optional(),
3810
- type: DeploymentTypeCreate$inboundSchema,
3811
- }).transform((v) => {
3812
- return remap$(v, {
3813
- "availability_zones": "availabilityZones",
3814
- });
3815
- });
3816
-
3817
- export function deploymentNetworkCreateFromJSON(
3818
- jsonString: string,
3819
- ): SafeParseResult<DeploymentNetworkCreate, SDKValidationError> {
3820
- return safeParse(
3821
- jsonString,
3822
- (x) => DeploymentNetworkCreate$inboundSchema.parse(JSON.parse(x)),
3823
- `Failed to parse 'DeploymentNetworkCreate' from JSON`,
3824
- );
3825
- }
3826
-
3827
- /** @internal */
3828
- export const DeploymentTypeUseDefault$inboundSchema: z.ZodEnum<
3829
- typeof DeploymentTypeUseDefault
3830
- > = z.enum(DeploymentTypeUseDefault);
3831
-
3832
- /** @internal */
3833
- export const DeploymentNetworkUseDefault$inboundSchema: z.ZodType<
3834
- DeploymentNetworkUseDefault,
3835
- unknown
3836
- > = z.object({
3837
- type: DeploymentTypeUseDefault$inboundSchema,
3838
- });
3839
-
3840
- export function deploymentNetworkUseDefaultFromJSON(
3841
- jsonString: string,
3842
- ): SafeParseResult<DeploymentNetworkUseDefault, SDKValidationError> {
3843
- return safeParse(
3844
- jsonString,
3845
- (x) => DeploymentNetworkUseDefault$inboundSchema.parse(JSON.parse(x)),
3846
- `Failed to parse 'DeploymentNetworkUseDefault' from JSON`,
3847
- );
3848
- }
3849
-
3850
- /** @internal */
3851
- export const DeploymentNetworkUnion$inboundSchema: z.ZodType<
3852
- DeploymentNetworkUnion,
3853
- unknown
3854
- > = z.union([
3855
- z.lazy(() => DeploymentNetworkByoVpcAws$inboundSchema),
3856
- z.lazy(() => DeploymentNetworkByoVpcGcp$inboundSchema),
3857
- z.lazy(() => DeploymentNetworkByoVnetAzure$inboundSchema),
3858
- z.lazy(() => DeploymentNetworkUseDefault$inboundSchema),
3859
- z.lazy(() => DeploymentNetworkCreate$inboundSchema),
3860
- z.string(),
3861
- ]);
3862
-
3863
- export function deploymentNetworkUnionFromJSON(
3864
- jsonString: string,
3865
- ): SafeParseResult<DeploymentNetworkUnion, SDKValidationError> {
3866
- return safeParse(
3867
- jsonString,
3868
- (x) => DeploymentNetworkUnion$inboundSchema.parse(JSON.parse(x)),
3869
- `Failed to parse 'DeploymentNetworkUnion' from JSON`,
3870
- );
3871
- }
3872
-
3873
- /** @internal */
3874
- export const DeploymentTelemetry$inboundSchema: z.ZodEnum<
3875
- typeof DeploymentTelemetry
3876
- > = z.enum(DeploymentTelemetry);
3877
-
3878
- /** @internal */
3879
- export const DeploymentUpdates$inboundSchema: z.ZodEnum<
3880
- typeof DeploymentUpdates
3881
- > = z.enum(DeploymentUpdates);
3882
-
3883
- /** @internal */
3884
- export const DeploymentStackSettings$inboundSchema: z.ZodType<
3885
- DeploymentStackSettings,
3886
- unknown
3887
- > = z.object({
3888
- compute: z.nullable(
3889
- z.union([z.lazy(() => DeploymentCompute$inboundSchema), z.string()]),
3890
- ).optional(),
3891
- deploymentModel: DeploymentDeploymentModel$inboundSchema.optional(),
3892
- domains: z.nullable(
3893
- z.union([z.lazy(() => DeploymentDomains$inboundSchema), z.string()]),
3894
- ).optional(),
3895
- endpointAccess: DeploymentEndpointAccess$inboundSchema.optional(),
3896
- externalBindings: z.nullable(
3897
- z.record(z.string(), ExternalBindingUnion$inboundSchema),
3898
- ).optional(),
3899
- heartbeats: DeploymentHeartbeats$inboundSchema.optional(),
3900
- kubernetes: z.nullable(
3901
- z.union([z.lazy(() => DeploymentKubernetes$inboundSchema), z.string()]),
3902
- ).optional(),
3903
- network: z.nullable(
3904
- z.union([
3905
- z.lazy(() => DeploymentNetworkByoVpcAws$inboundSchema),
3906
- z.lazy(() => DeploymentNetworkByoVpcGcp$inboundSchema),
3907
- z.lazy(() => DeploymentNetworkByoVnetAzure$inboundSchema),
3908
- z.lazy(() => DeploymentNetworkUseDefault$inboundSchema),
3909
- z.lazy(() => DeploymentNetworkCreate$inboundSchema),
3910
- z.string(),
3911
- ]),
3912
- ).optional(),
3913
- publicEndpoints: z.nullable(
3914
- z.record(z.string(), z.record(z.string(), z.string())),
3915
- ).optional(),
3916
- telemetry: DeploymentTelemetry$inboundSchema.optional(),
3917
- updates: DeploymentUpdates$inboundSchema.optional(),
3918
- });
3919
-
3920
- export function deploymentStackSettingsFromJSON(
3921
- jsonString: string,
3922
- ): SafeParseResult<DeploymentStackSettings, SDKValidationError> {
3923
- return safeParse(
3924
- jsonString,
3925
- (x) => DeploymentStackSettings$inboundSchema.parse(JSON.parse(x)),
3926
- `Failed to parse 'DeploymentStackSettings' from JSON`,
3927
- );
3928
- }
3929
-
3930
- /** @internal */
3931
- export const DeploymentStackStatePlatform$inboundSchema: z.ZodEnum<
3932
- typeof DeploymentStackStatePlatform
3933
- > = z.enum(DeploymentStackStatePlatform);
3934
-
3935
- /** @internal */
3936
- export const DeploymentStackStateConfig$inboundSchema: z.ZodType<
3937
- DeploymentStackStateConfig,
3938
- unknown
3939
- > = collectExtraKeys$(
3940
- z.object({
3941
- id: z.string(),
3942
- type: z.string(),
3943
- }).catchall(z.any()),
3944
- "additionalProperties",
3945
- true,
3946
- );
3947
-
3948
- export function deploymentStackStateConfigFromJSON(
3949
- jsonString: string,
3950
- ): SafeParseResult<DeploymentStackStateConfig, SDKValidationError> {
3951
- return safeParse(
3952
- jsonString,
3953
- (x) => DeploymentStackStateConfig$inboundSchema.parse(JSON.parse(x)),
3954
- `Failed to parse 'DeploymentStackStateConfig' from JSON`,
3955
- );
3956
- }
3957
-
3958
- /** @internal */
3959
- export const DeploymentControllerPlatformEnum$inboundSchema: z.ZodEnum<
3960
- typeof DeploymentControllerPlatformEnum
3961
- > = z.enum(DeploymentControllerPlatformEnum);
3962
-
3963
- /** @internal */
3964
- export const DeploymentControllerPlatformUnion$inboundSchema: z.ZodType<
3965
- DeploymentControllerPlatformUnion,
3966
- unknown
3967
- > = z.union([DeploymentControllerPlatformEnum$inboundSchema, z.string()]);
3968
-
3969
- export function deploymentControllerPlatformUnionFromJSON(
3970
- jsonString: string,
3971
- ): SafeParseResult<DeploymentControllerPlatformUnion, SDKValidationError> {
3972
- return safeParse(
3973
- jsonString,
3974
- (x) => DeploymentControllerPlatformUnion$inboundSchema.parse(JSON.parse(x)),
3975
- `Failed to parse 'DeploymentControllerPlatformUnion' from JSON`,
3976
- );
3977
- }
3978
-
3979
- /** @internal */
3980
- export const DeploymentStackStateDependency$inboundSchema: z.ZodType<
3981
- DeploymentStackStateDependency,
3982
- unknown
3983
- > = z.object({
3984
- id: z.string(),
3985
- type: z.string(),
3986
- });
3987
-
3988
- export function deploymentStackStateDependencyFromJSON(
3989
- jsonString: string,
3990
- ): SafeParseResult<DeploymentStackStateDependency, SDKValidationError> {
3991
- return safeParse(
3992
- jsonString,
3993
- (x) => DeploymentStackStateDependency$inboundSchema.parse(JSON.parse(x)),
3994
- `Failed to parse 'DeploymentStackStateDependency' from JSON`,
3995
- );
3996
- }
3997
-
3998
- /** @internal */
3999
- export const DeploymentErrorStackState$inboundSchema: z.ZodType<
4000
- DeploymentErrorStackState,
4001
- unknown
4002
- > = z.object({
4003
- code: z.string(),
4004
- context: z.nullable(z.any()).optional(),
4005
- hint: z.nullable(z.string()).optional(),
4006
- httpStatusCode: z.nullable(z.int()).optional(),
4007
- internal: z.boolean(),
4008
- message: z.string(),
4009
- retryable: z.boolean().default(false),
4010
- source: z.nullable(z.any()).optional(),
4011
- });
4012
-
4013
- export function deploymentErrorStackStateFromJSON(
4014
- jsonString: string,
4015
- ): SafeParseResult<DeploymentErrorStackState, SDKValidationError> {
4016
- return safeParse(
4017
- jsonString,
4018
- (x) => DeploymentErrorStackState$inboundSchema.parse(JSON.parse(x)),
4019
- `Failed to parse 'DeploymentErrorStackState' from JSON`,
4020
- );
4021
- }
4022
-
4023
- /** @internal */
4024
- export const DeploymentErrorUnion$inboundSchema: z.ZodType<
4025
- DeploymentErrorUnion,
4026
- unknown
4027
- > = z.union([
4028
- z.lazy(() => DeploymentErrorStackState$inboundSchema),
4029
- z.string(),
4030
- ]);
4031
-
4032
- export function deploymentErrorUnionFromJSON(
4033
- jsonString: string,
4034
- ): SafeParseResult<DeploymentErrorUnion, SDKValidationError> {
4035
- return safeParse(
4036
- jsonString,
4037
- (x) => DeploymentErrorUnion$inboundSchema.parse(JSON.parse(x)),
4038
- `Failed to parse 'DeploymentErrorUnion' from JSON`,
4039
- );
4040
- }
4041
-
4042
- /** @internal */
4043
- export const DeploymentLifecycleStackStateEnum$inboundSchema: z.ZodEnum<
4044
- typeof DeploymentLifecycleStackStateEnum
4045
- > = z.enum(DeploymentLifecycleStackStateEnum);
4046
-
4047
- /** @internal */
4048
- export const DeploymentLifecycleUnion$inboundSchema: z.ZodType<
4049
- DeploymentLifecycleUnion,
4050
- unknown
4051
- > = z.union([DeploymentLifecycleStackStateEnum$inboundSchema, z.string()]);
4052
-
4053
- export function deploymentLifecycleUnionFromJSON(
4054
- jsonString: string,
4055
- ): SafeParseResult<DeploymentLifecycleUnion, SDKValidationError> {
4056
- return safeParse(
4057
- jsonString,
4058
- (x) => DeploymentLifecycleUnion$inboundSchema.parse(JSON.parse(x)),
4059
- `Failed to parse 'DeploymentLifecycleUnion' from JSON`,
4060
- );
4061
- }
4062
-
4063
- /** @internal */
4064
- export const DeploymentOutputs$inboundSchema: z.ZodType<
4065
- DeploymentOutputs,
4066
- unknown
4067
- > = collectExtraKeys$(
4068
- z.object({
4069
- type: z.string(),
4070
- }).catchall(z.any()),
4071
- "additionalProperties",
4072
- true,
4073
- );
4074
-
4075
- export function deploymentOutputsFromJSON(
4076
- jsonString: string,
4077
- ): SafeParseResult<DeploymentOutputs, SDKValidationError> {
4078
- return safeParse(
4079
- jsonString,
4080
- (x) => DeploymentOutputs$inboundSchema.parse(JSON.parse(x)),
4081
- `Failed to parse 'DeploymentOutputs' from JSON`,
4082
- );
4083
- }
4084
-
4085
- /** @internal */
4086
- export const DeploymentOutputsUnion$inboundSchema: z.ZodType<
4087
- DeploymentOutputsUnion,
4088
- unknown
4089
- > = z.union([z.lazy(() => DeploymentOutputs$inboundSchema), z.string()]);
4090
-
4091
- export function deploymentOutputsUnionFromJSON(
4092
- jsonString: string,
4093
- ): SafeParseResult<DeploymentOutputsUnion, SDKValidationError> {
4094
- return safeParse(
4095
- jsonString,
4096
- (x) => DeploymentOutputsUnion$inboundSchema.parse(JSON.parse(x)),
4097
- `Failed to parse 'DeploymentOutputsUnion' from JSON`,
4098
- );
4099
- }
4100
-
4101
- /** @internal */
4102
- export const DeploymentPreviousConfig$inboundSchema: z.ZodType<
4103
- DeploymentPreviousConfig,
4104
- unknown
4105
- > = collectExtraKeys$(
4106
- z.object({
4107
- id: z.string(),
4108
- type: z.string(),
4109
- }).catchall(z.any()),
4110
- "additionalProperties",
4111
- true,
4112
- );
4113
-
4114
- export function deploymentPreviousConfigFromJSON(
4115
- jsonString: string,
4116
- ): SafeParseResult<DeploymentPreviousConfig, SDKValidationError> {
4117
- return safeParse(
4118
- jsonString,
4119
- (x) => DeploymentPreviousConfig$inboundSchema.parse(JSON.parse(x)),
4120
- `Failed to parse 'DeploymentPreviousConfig' from JSON`,
4121
- );
4122
- }
4123
-
4124
- /** @internal */
4125
- export const DeploymentPreviousConfigUnion$inboundSchema: z.ZodType<
4126
- DeploymentPreviousConfigUnion,
4127
- unknown
4128
- > = z.union([z.lazy(() => DeploymentPreviousConfig$inboundSchema), z.string()]);
4129
-
4130
- export function deploymentPreviousConfigUnionFromJSON(
4131
- jsonString: string,
4132
- ): SafeParseResult<DeploymentPreviousConfigUnion, SDKValidationError> {
4133
- return safeParse(
4134
- jsonString,
4135
- (x) => DeploymentPreviousConfigUnion$inboundSchema.parse(JSON.parse(x)),
4136
- `Failed to parse 'DeploymentPreviousConfigUnion' from JSON`,
4137
- );
4138
- }
4139
-
4140
- /** @internal */
4141
- export const DeploymentStackStateStatus$inboundSchema: z.ZodEnum<
4142
- typeof DeploymentStackStateStatus
4143
- > = z.enum(DeploymentStackStateStatus);
4144
-
4145
- /** @internal */
4146
- export const DeploymentStackStateResources$inboundSchema: z.ZodType<
4147
- DeploymentStackStateResources,
4148
- unknown
4149
- > = z.object({
4150
- _internal: z.nullable(z.any()).optional(),
4151
- config: z.lazy(() => DeploymentStackStateConfig$inboundSchema),
4152
- controllerPlatform: z.nullable(
4153
- z.union([DeploymentControllerPlatformEnum$inboundSchema, z.string()]),
4154
- ).optional(),
4155
- dependencies: z.array(
4156
- z.lazy(() => DeploymentStackStateDependency$inboundSchema),
4157
- ).optional(),
4158
- error: z.nullable(
4159
- z.union([
4160
- z.lazy(() => DeploymentErrorStackState$inboundSchema),
4161
- z.string(),
4162
- ]),
4163
- ).optional(),
4164
- lastFailedState: z.nullable(z.any()).optional(),
4165
- lifecycle: z.nullable(
4166
- z.union([DeploymentLifecycleStackStateEnum$inboundSchema, z.string()]),
4167
- ).optional(),
4168
- outputs: z.nullable(
4169
- z.union([z.lazy(() => DeploymentOutputs$inboundSchema), z.string()]),
4170
- ).optional(),
4171
- previousConfig: z.nullable(
4172
- z.union([z.lazy(() => DeploymentPreviousConfig$inboundSchema), z.string()]),
4173
- ).optional(),
4174
- remoteBindingParams: z.nullable(z.any()).optional(),
4175
- retryAttempt: z.int().optional(),
4176
- status: DeploymentStackStateStatus$inboundSchema,
4177
- type: z.string(),
4178
- }).transform((v) => {
4179
- return remap$(v, {
4180
- "_internal": "internal",
4181
- });
4182
- });
4183
-
4184
- export function deploymentStackStateResourcesFromJSON(
4185
- jsonString: string,
4186
- ): SafeParseResult<DeploymentStackStateResources, SDKValidationError> {
4187
- return safeParse(
4188
- jsonString,
4189
- (x) => DeploymentStackStateResources$inboundSchema.parse(JSON.parse(x)),
4190
- `Failed to parse 'DeploymentStackStateResources' from JSON`,
4191
- );
4192
- }
4193
-
4194
- /** @internal */
4195
- export const DeploymentStackState$inboundSchema: z.ZodType<
4196
- DeploymentStackState,
4197
- unknown
4198
- > = z.object({
4199
- platform: DeploymentStackStatePlatform$inboundSchema,
4200
- resourcePrefix: z.string(),
4201
- resources: z.record(
4202
- z.string(),
4203
- z.lazy(() => DeploymentStackStateResources$inboundSchema),
4204
- ),
4205
- });
4206
-
4207
- export function deploymentStackStateFromJSON(
4208
- jsonString: string,
4209
- ): SafeParseResult<DeploymentStackState, SDKValidationError> {
4210
- return safeParse(
4211
- jsonString,
4212
- (x) => DeploymentStackState$inboundSchema.parse(JSON.parse(x)),
4213
- `Failed to parse 'DeploymentStackState' from JSON`,
4214
- );
4215
- }
4216
-
4217
- /** @internal */
4218
- export const DeploymentStore$inboundSchema: z.ZodEnum<typeof DeploymentStore> =
4219
- z.enum(DeploymentStore);
4220
-
4221
- /** @internal */
4222
- export const DeploymentLocation$inboundSchema: z.ZodType<
4223
- DeploymentLocation,
4224
- unknown
4225
- > = z.object({
4226
- cliCommand: z.string(),
4227
- consoleUrl: z.nullable(z.string()).optional(),
4228
- deleteCommand: z.nullable(z.string()).optional(),
4229
- name: z.string(),
4230
- store: DeploymentStore$inboundSchema,
4231
- vaultName: z.nullable(z.string()).optional(),
4232
- });
4233
-
4234
- export function deploymentLocationFromJSON(
4235
- jsonString: string,
4236
- ): SafeParseResult<DeploymentLocation, SDKValidationError> {
4237
- return safeParse(
4238
- jsonString,
4239
- (x) => DeploymentLocation$inboundSchema.parse(JSON.parse(x)),
4240
- `Failed to parse 'DeploymentLocation' from JSON`,
4241
- );
4242
- }
4243
-
4244
- /** @internal */
4245
- export const DeploymentRuntimeMetadataStatus$inboundSchema: z.ZodEnum<
4246
- typeof DeploymentRuntimeMetadataStatus
4247
- > = z.enum(DeploymentRuntimeMetadataStatus);
4248
-
4249
- /** @internal */
4250
- export const DeploymentDeployerSecret$inboundSchema: z.ZodType<
4251
- DeploymentDeployerSecret,
4252
- unknown
4253
- > = z.object({
4254
- inputId: z.string(),
4255
- label: z.string(),
4256
- location: z.lazy(() => DeploymentLocation$inboundSchema),
4257
- message: z.nullable(z.string()).optional(),
4258
- required: z.boolean(),
4259
- status: DeploymentRuntimeMetadataStatus$inboundSchema,
4260
- version: z.nullable(z.string()).optional(),
4261
- });
4262
-
4263
- export function deploymentDeployerSecretFromJSON(
4264
- jsonString: string,
4265
- ): SafeParseResult<DeploymentDeployerSecret, SDKValidationError> {
4266
- return safeParse(
4267
- jsonString,
4268
- (x) => DeploymentDeployerSecret$inboundSchema.parse(JSON.parse(x)),
4269
- `Failed to parse 'DeploymentDeployerSecret' from JSON`,
4270
- );
4271
- }
4272
-
4273
- /** @internal */
4274
- export const DeploymentInitialSetupAuthority$inboundSchema: z.ZodEnum<
4275
- typeof DeploymentInitialSetupAuthority
4276
- > = z.enum(DeploymentInitialSetupAuthority);
4277
-
4278
- /** @internal */
4279
- export const DeploymentPendingPreparedStackTypeStringList$inboundSchema:
4280
- z.ZodEnum<typeof DeploymentPendingPreparedStackTypeStringList> = z.enum(
4281
- DeploymentPendingPreparedStackTypeStringList,
4282
- );
4283
-
4284
- /** @internal */
4285
- export const DeploymentPendingPreparedStackDefaultStringList$inboundSchema:
4286
- z.ZodType<DeploymentPendingPreparedStackDefaultStringList, unknown> = z
4287
- .object({
4288
- type: DeploymentPendingPreparedStackTypeStringList$inboundSchema,
4289
- value: z.array(z.string()),
4290
- });
4291
-
4292
- export function deploymentPendingPreparedStackDefaultStringListFromJSON(
4293
- jsonString: string,
4294
- ): SafeParseResult<
4295
- DeploymentPendingPreparedStackDefaultStringList,
4296
- SDKValidationError
4297
- > {
4298
- return safeParse(
4299
- jsonString,
4300
- (x) =>
4301
- DeploymentPendingPreparedStackDefaultStringList$inboundSchema.parse(
4302
- JSON.parse(x),
4303
- ),
4304
- `Failed to parse 'DeploymentPendingPreparedStackDefaultStringList' from JSON`,
4305
- );
4306
- }
4307
-
4308
- /** @internal */
4309
- export const DeploymentPendingPreparedStackTypeBoolean$inboundSchema: z.ZodEnum<
4310
- typeof DeploymentPendingPreparedStackTypeBoolean
4311
- > = z.enum(DeploymentPendingPreparedStackTypeBoolean);
4312
-
4313
- /** @internal */
4314
- export const DeploymentPendingPreparedStackDefaultBoolean$inboundSchema:
4315
- z.ZodType<DeploymentPendingPreparedStackDefaultBoolean, unknown> = z.object({
4316
- type: DeploymentPendingPreparedStackTypeBoolean$inboundSchema,
4317
- value: z.boolean(),
4318
- });
4319
-
4320
- export function deploymentPendingPreparedStackDefaultBooleanFromJSON(
4321
- jsonString: string,
4322
- ): SafeParseResult<
4323
- DeploymentPendingPreparedStackDefaultBoolean,
4324
- SDKValidationError
4325
- > {
4326
- return safeParse(
4327
- jsonString,
4328
- (x) =>
4329
- DeploymentPendingPreparedStackDefaultBoolean$inboundSchema.parse(
4330
- JSON.parse(x),
4331
- ),
4332
- `Failed to parse 'DeploymentPendingPreparedStackDefaultBoolean' from JSON`,
4333
- );
4334
- }
4335
-
4336
- /** @internal */
4337
- export const DeploymentPendingPreparedStackTypeNumber$inboundSchema: z.ZodEnum<
4338
- typeof DeploymentPendingPreparedStackTypeNumber
4339
- > = z.enum(DeploymentPendingPreparedStackTypeNumber);
4340
-
4341
- /** @internal */
4342
- export const DeploymentPendingPreparedStackDefaultNumber$inboundSchema:
4343
- z.ZodType<DeploymentPendingPreparedStackDefaultNumber, unknown> = z.object({
4344
- type: DeploymentPendingPreparedStackTypeNumber$inboundSchema,
4345
- value: z.string(),
4346
- });
4347
-
4348
- export function deploymentPendingPreparedStackDefaultNumberFromJSON(
4349
- jsonString: string,
4350
- ): SafeParseResult<
4351
- DeploymentPendingPreparedStackDefaultNumber,
4352
- SDKValidationError
4353
- > {
4354
- return safeParse(
4355
- jsonString,
4356
- (x) =>
4357
- DeploymentPendingPreparedStackDefaultNumber$inboundSchema.parse(
4358
- JSON.parse(x),
4359
- ),
4360
- `Failed to parse 'DeploymentPendingPreparedStackDefaultNumber' from JSON`,
4361
- );
4362
- }
4363
-
4364
- /** @internal */
4365
- export const DeploymentPendingPreparedStackTypeString$inboundSchema: z.ZodEnum<
4366
- typeof DeploymentPendingPreparedStackTypeString
4367
- > = z.enum(DeploymentPendingPreparedStackTypeString);
4368
-
4369
- /** @internal */
4370
- export const DeploymentPendingPreparedStackDefaultString$inboundSchema:
4371
- z.ZodType<DeploymentPendingPreparedStackDefaultString, unknown> = z.object({
4372
- type: DeploymentPendingPreparedStackTypeString$inboundSchema,
4373
- value: z.string(),
4374
- });
4375
-
4376
- export function deploymentPendingPreparedStackDefaultStringFromJSON(
4377
- jsonString: string,
4378
- ): SafeParseResult<
4379
- DeploymentPendingPreparedStackDefaultString,
4380
- SDKValidationError
4381
- > {
4382
- return safeParse(
4383
- jsonString,
4384
- (x) =>
4385
- DeploymentPendingPreparedStackDefaultString$inboundSchema.parse(
4386
- JSON.parse(x),
4387
- ),
4388
- `Failed to parse 'DeploymentPendingPreparedStackDefaultString' from JSON`,
4389
- );
4390
- }
4391
-
4392
- /** @internal */
4393
- export const DeploymentPendingPreparedStackDefaultUnion$inboundSchema:
4394
- z.ZodType<DeploymentPendingPreparedStackDefaultUnion, unknown> = z.union([
4395
- z.lazy(() => DeploymentPendingPreparedStackDefaultString$inboundSchema),
4396
- z.lazy(() => DeploymentPendingPreparedStackDefaultNumber$inboundSchema),
4397
- z.lazy(() => DeploymentPendingPreparedStackDefaultBoolean$inboundSchema),
4398
- z.lazy(() => DeploymentPendingPreparedStackDefaultStringList$inboundSchema),
4399
- z.string(),
4400
- ]);
4401
-
4402
- export function deploymentPendingPreparedStackDefaultUnionFromJSON(
4403
- jsonString: string,
4404
- ): SafeParseResult<
4405
- DeploymentPendingPreparedStackDefaultUnion,
4406
- SDKValidationError
4407
- > {
4408
- return safeParse(
4409
- jsonString,
4410
- (x) =>
4411
- DeploymentPendingPreparedStackDefaultUnion$inboundSchema.parse(
4412
- JSON.parse(x),
4413
- ),
4414
- `Failed to parse 'DeploymentPendingPreparedStackDefaultUnion' from JSON`,
4415
- );
4416
- }
4417
-
4418
- /** @internal */
4419
- export const DeploymentPendingPreparedStackTypeEnvEnum$inboundSchema: z.ZodEnum<
4420
- typeof DeploymentPendingPreparedStackTypeEnvEnum
4421
- > = z.enum(DeploymentPendingPreparedStackTypeEnvEnum);
1
+ // Generated by generate-compatibility-exports.mjs. DO NOT EDIT.
2
+ export * from "./deploymentpendingpreparedstackdefaultunion.js";
3
+ export { DeploymentPendingPreparedStackTypeEnvEnum } from "./deploymentpreparedstackplugins.js";
4
+ export { DeploymentPendingPreparedStackTypeEnvEnum$inboundSchema } from "./deploymentpreparedstackplugins.js";