@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
@@ -0,0 +1,4671 @@
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 { safeParse } from "../lib/schemas.js";
8
+ import { ClosedEnum } from "../types/enums.js";
9
+ import { Result as SafeParseResult } from "../types/fp.js";
10
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
11
+ import {
12
+ ExternalBindingUnion,
13
+ ExternalBindingUnion$inboundSchema,
14
+ } from "./externalbindingunion.js";
15
+
16
+ /**
17
+ * Represents the target cloud platform.
18
+ */
19
+ export const TargetDeploymentBasePlatformEnum = {
20
+ Aws: "aws",
21
+ Gcp: "gcp",
22
+ Azure: "azure",
23
+ Kubernetes: "kubernetes",
24
+ Machines: "machines",
25
+ Local: "local",
26
+ Test: "test",
27
+ } as const;
28
+ /**
29
+ * Represents the target cloud platform.
30
+ */
31
+ export type TargetDeploymentBasePlatformEnum = ClosedEnum<
32
+ typeof TargetDeploymentBasePlatformEnum
33
+ >;
34
+
35
+ export type TargetDeploymentBasePlatformUnion =
36
+ | TargetDeploymentBasePlatformEnum
37
+ | string;
38
+
39
+ /**
40
+ * Configuration for a single container worker cluster.
41
+ *
42
+ * @remarks
43
+ *
44
+ * Contains the cluster ID and management token needed to interact with
45
+ * the managed container control plane API for container operations.
46
+ */
47
+ export type TargetDeploymentClusters = {
48
+ /**
49
+ * Cluster ID (deterministic: workspace/project/deployment/resourceid)
50
+ */
51
+ clusterId: string;
52
+ /**
53
+ * Management token for API access (hm_...)
54
+ *
55
+ * @remarks
56
+ * Used by alien-deployment controllers to create/update containers
57
+ */
58
+ managementToken: string;
59
+ };
60
+
61
+ /**
62
+ * AWS Horizon machine image catalog.
63
+ */
64
+ export type TargetDeploymentHorizonMachineImageAws = {
65
+ /**
66
+ * AMI IDs by architecture, then AWS region.
67
+ */
68
+ amis: { [k: string]: { [k: string]: string } };
69
+ };
70
+
71
+ export type TargetDeploymentHorizonMachineImageAwsUnion =
72
+ | TargetDeploymentHorizonMachineImageAws
73
+ | string;
74
+
75
+ /**
76
+ * Azure Horizon machine image entry.
77
+ */
78
+ export type TargetDeploymentAzureImages = {
79
+ /**
80
+ * Azure Compute Gallery image version ID.
81
+ */
82
+ imageVersionId: string;
83
+ };
84
+
85
+ /**
86
+ * Azure Horizon machine image catalog.
87
+ */
88
+ export type HorizonMachineImageAzureConfig = {
89
+ /**
90
+ * Images by architecture.
91
+ */
92
+ images: { [k: string]: TargetDeploymentAzureImages };
93
+ };
94
+
95
+ export type HorizonMachineImageConfigAzureUnion =
96
+ | HorizonMachineImageAzureConfig
97
+ | string;
98
+
99
+ /**
100
+ * Base image metadata for the Horizon machine image.
101
+ */
102
+ export type TargetDeploymentBaseImage = {
103
+ /**
104
+ * Base OS image name.
105
+ */
106
+ name: string;
107
+ /**
108
+ * Base OS image version or channel.
109
+ */
110
+ version: string;
111
+ };
112
+
113
+ /**
114
+ * GCP Horizon machine image entry.
115
+ */
116
+ export type TargetDeploymentGcpImages = {
117
+ /**
118
+ * Source image self link or image-family URL.
119
+ */
120
+ sourceImage: string;
121
+ };
122
+
123
+ /**
124
+ * GCP Horizon machine image catalog.
125
+ */
126
+ export type HorizonMachineImageGcpConfig = {
127
+ /**
128
+ * Images by architecture.
129
+ */
130
+ images: { [k: string]: TargetDeploymentGcpImages };
131
+ };
132
+
133
+ export type HorizonMachineImageConfigGcpUnion =
134
+ | HorizonMachineImageGcpConfig
135
+ | string;
136
+
137
+ /**
138
+ * Download artifact for one horizond release platform.
139
+ */
140
+ export type TargetDeploymentHorizondArtifacts = {
141
+ /**
142
+ * Runtime isolation capability generation of the immutable artifact, not live readiness.
143
+ */
144
+ runtimeIsolationGeneration?: number | undefined;
145
+ /**
146
+ * SHA-256 digest for the artifact payload.
147
+ */
148
+ sha256: string;
149
+ /**
150
+ * HTTPS URL for the artifact.
151
+ */
152
+ url: string;
153
+ };
154
+
155
+ /**
156
+ * Horizon machine image catalog.
157
+ *
158
+ * @remarks
159
+ *
160
+ * Platform resolves concrete provider images from this catalog during rollout.
161
+ */
162
+ export type TargetDeploymentHorizonMachineImage = {
163
+ aws?: TargetDeploymentHorizonMachineImageAws | string | null | undefined;
164
+ azure?: HorizonMachineImageAzureConfig | string | null | undefined;
165
+ /**
166
+ * Base image metadata for the Horizon machine image.
167
+ */
168
+ baseImage: TargetDeploymentBaseImage;
169
+ /**
170
+ * Logical image channel, such as prod, staging, or canary.
171
+ */
172
+ channel: string;
173
+ /**
174
+ * Image manifest creation timestamp.
175
+ */
176
+ createdAt: string;
177
+ gcp?: HorizonMachineImageGcpConfig | string | null | undefined;
178
+ /**
179
+ * Git commit SHA used to build the image.
180
+ */
181
+ gitSha: string;
182
+ /**
183
+ * Per-architecture horizond artifacts by release-platform key.
184
+ */
185
+ horizondArtifacts: { [k: string]: TargetDeploymentHorizondArtifacts };
186
+ /**
187
+ * horizond daemon version baked into the image.
188
+ */
189
+ horizondVersion: string;
190
+ /**
191
+ * Published immutable machine image version.
192
+ */
193
+ machineImageVersion: string;
194
+ /**
195
+ * Runtime isolation capability generation of the immutable artifact, not live readiness.
196
+ */
197
+ runtimeIsolationGeneration?: number | undefined;
198
+ };
199
+
200
+ export type TargetDeploymentHorizonMachineImageUnion =
201
+ | TargetDeploymentHorizonMachineImage
202
+ | string;
203
+
204
+ export const TargetDeploymentComputeBackendType = {
205
+ Horizon: "horizon",
206
+ } as const;
207
+ export type TargetDeploymentComputeBackendType = ClosedEnum<
208
+ typeof TargetDeploymentComputeBackendType
209
+ >;
210
+
211
+ /**
212
+ * Compute backend for Container and Worker resources.
213
+ *
214
+ * @remarks
215
+ *
216
+ * Determines how compute workloads are orchestrated on cloud platforms.
217
+ * When None, the platform default is used for cloud platforms.
218
+ */
219
+ export type TargetDeploymentComputeBackendHorizon = {
220
+ /**
221
+ * Cluster configurations (one per ComputeCluster resource)
222
+ *
223
+ * @remarks
224
+ * Key: ComputeCluster resource ID from stack
225
+ * Value: Cluster ID and management token for that cluster
226
+ */
227
+ clusters: { [k: string]: TargetDeploymentClusters };
228
+ horizonMachineImage?:
229
+ | TargetDeploymentHorizonMachineImage
230
+ | string
231
+ | null
232
+ | undefined;
233
+ /**
234
+ * Horizon control-plane API base URL.
235
+ */
236
+ url: string;
237
+ type: TargetDeploymentComputeBackendType;
238
+ };
239
+
240
+ export type TargetDeploymentComputeBackendUnion =
241
+ | TargetDeploymentComputeBackendHorizon
242
+ | string;
243
+
244
+ /**
245
+ * Certificate status in the certificate lifecycle
246
+ */
247
+ export const TargetDeploymentAliasCertificateStatus = {
248
+ Pending: "pending",
249
+ Issued: "issued",
250
+ Renewing: "renewing",
251
+ RenewalFailed: "renewal-failed",
252
+ Failed: "failed",
253
+ Deleting: "deleting",
254
+ } as const;
255
+ /**
256
+ * Certificate status in the certificate lifecycle
257
+ */
258
+ export type TargetDeploymentAliasCertificateStatus = ClosedEnum<
259
+ typeof TargetDeploymentAliasCertificateStatus
260
+ >;
261
+
262
+ /**
263
+ * DNS record status in the DNS lifecycle
264
+ */
265
+ export const TargetDeploymentAliasDnsStatus = {
266
+ Pending: "pending",
267
+ Active: "active",
268
+ Updating: "updating",
269
+ Deleting: "deleting",
270
+ Failed: "failed",
271
+ } as const;
272
+ /**
273
+ * DNS record status in the DNS lifecycle
274
+ */
275
+ export type TargetDeploymentAliasDnsStatus = ClosedEnum<
276
+ typeof TargetDeploymentAliasDnsStatus
277
+ >;
278
+
279
+ /**
280
+ * Certificate and DNS metadata for a managed hostname.
281
+ *
282
+ * @remarks
283
+ *
284
+ * Includes decrypted certificate data for issued certificates.
285
+ * Private keys are deployment-scoped secrets (like environment variables).
286
+ */
287
+ export type TargetDeploymentAlias = {
288
+ /**
289
+ * Full PEM certificate chain (only present if status is "issued").
290
+ */
291
+ certificateChain?: string | null | undefined;
292
+ /**
293
+ * Certificate ID (for tracking/logging).
294
+ */
295
+ certificateId: string;
296
+ /**
297
+ * Certificate status in the certificate lifecycle
298
+ */
299
+ certificateStatus: TargetDeploymentAliasCertificateStatus;
300
+ /**
301
+ * Last DNS error message. Present when DNS previously failed, even if status
302
+ *
303
+ * @remarks
304
+ * was reset to pending for retry. Used to surface actionable error context
305
+ * in WaitingForDns failure messages.
306
+ */
307
+ dnsError?: string | null | undefined;
308
+ /**
309
+ * DNS record status in the DNS lifecycle
310
+ */
311
+ dnsStatus: TargetDeploymentAliasDnsStatus;
312
+ /**
313
+ * Fully qualified domain name.
314
+ */
315
+ fqdn: string;
316
+ /**
317
+ * ISO 8601 timestamp when certificate was issued (for renewal detection).
318
+ */
319
+ issuedAt?: string | null | undefined;
320
+ /**
321
+ * Decrypted private key (only present if status is "issued").
322
+ */
323
+ privateKey?: string | null | undefined;
324
+ };
325
+
326
+ /**
327
+ * Certificate status in the certificate lifecycle
328
+ */
329
+ export const TargetDeploymentCertificateStatus = {
330
+ Pending: "pending",
331
+ Issued: "issued",
332
+ Renewing: "renewing",
333
+ RenewalFailed: "renewal-failed",
334
+ Failed: "failed",
335
+ Deleting: "deleting",
336
+ } as const;
337
+ /**
338
+ * Certificate status in the certificate lifecycle
339
+ */
340
+ export type TargetDeploymentCertificateStatus = ClosedEnum<
341
+ typeof TargetDeploymentCertificateStatus
342
+ >;
343
+
344
+ /**
345
+ * DNS record status in the DNS lifecycle
346
+ */
347
+ export const TargetDeploymentDnsStatus = {
348
+ Pending: "pending",
349
+ Active: "active",
350
+ Updating: "updating",
351
+ Deleting: "deleting",
352
+ Failed: "failed",
353
+ } as const;
354
+ /**
355
+ * DNS record status in the DNS lifecycle
356
+ */
357
+ export type TargetDeploymentDnsStatus = ClosedEnum<
358
+ typeof TargetDeploymentDnsStatus
359
+ >;
360
+
361
+ /**
362
+ * Certificate status in the certificate lifecycle
363
+ */
364
+ export const TargetDeploymentEndpointsCertificateStatus = {
365
+ Pending: "pending",
366
+ Issued: "issued",
367
+ Renewing: "renewing",
368
+ RenewalFailed: "renewal-failed",
369
+ Failed: "failed",
370
+ Deleting: "deleting",
371
+ } as const;
372
+ /**
373
+ * Certificate status in the certificate lifecycle
374
+ */
375
+ export type TargetDeploymentEndpointsCertificateStatus = ClosedEnum<
376
+ typeof TargetDeploymentEndpointsCertificateStatus
377
+ >;
378
+
379
+ /**
380
+ * DNS record status in the DNS lifecycle
381
+ */
382
+ export const TargetDeploymentEndpointsDnsStatus = {
383
+ Pending: "pending",
384
+ Active: "active",
385
+ Updating: "updating",
386
+ Deleting: "deleting",
387
+ Failed: "failed",
388
+ } as const;
389
+ /**
390
+ * DNS record status in the DNS lifecycle
391
+ */
392
+ export type TargetDeploymentEndpointsDnsStatus = ClosedEnum<
393
+ typeof TargetDeploymentEndpointsDnsStatus
394
+ >;
395
+
396
+ /**
397
+ * Certificate and DNS metadata for a managed hostname.
398
+ *
399
+ * @remarks
400
+ *
401
+ * Includes decrypted certificate data for issued certificates.
402
+ * Private keys are deployment-scoped secrets (like environment variables).
403
+ */
404
+ export type TargetDeploymentEndpoints = {
405
+ /**
406
+ * Full PEM certificate chain (only present if status is "issued").
407
+ */
408
+ certificateChain?: string | null | undefined;
409
+ /**
410
+ * Certificate ID (for tracking/logging).
411
+ */
412
+ certificateId: string;
413
+ /**
414
+ * Certificate status in the certificate lifecycle
415
+ */
416
+ certificateStatus: TargetDeploymentEndpointsCertificateStatus;
417
+ /**
418
+ * Last DNS error message. Present when DNS previously failed, even if status
419
+ *
420
+ * @remarks
421
+ * was reset to pending for retry. Used to surface actionable error context
422
+ * in WaitingForDns failure messages.
423
+ */
424
+ dnsError?: string | null | undefined;
425
+ /**
426
+ * DNS record status in the DNS lifecycle
427
+ */
428
+ dnsStatus: TargetDeploymentEndpointsDnsStatus;
429
+ /**
430
+ * Fully qualified domain name.
431
+ */
432
+ fqdn: string;
433
+ /**
434
+ * ISO 8601 timestamp when certificate was issued (for renewal detection).
435
+ */
436
+ issuedAt?: string | null | undefined;
437
+ /**
438
+ * Decrypted private key (only present if status is "issued").
439
+ */
440
+ privateKey?: string | null | undefined;
441
+ };
442
+
443
+ /**
444
+ * Certificate and DNS metadata for a public resource.
445
+ *
446
+ * @remarks
447
+ *
448
+ * The direct fields describe the primary endpoint hostname. `endpoints`
449
+ * contains endpoint-scoped metadata keyed by endpoint name. `aliases` contains
450
+ * additional managed hostnames that route directly to the primary endpoint.
451
+ */
452
+ export type ConfigResources = {
453
+ /**
454
+ * Additional managed hostnames for the resource.
455
+ */
456
+ aliases?: Array<TargetDeploymentAlias> | undefined;
457
+ /**
458
+ * Full PEM certificate chain (only present if status is "issued").
459
+ */
460
+ certificateChain?: string | null | undefined;
461
+ /**
462
+ * Certificate ID (for tracking/logging).
463
+ */
464
+ certificateId: string;
465
+ /**
466
+ * Certificate status in the certificate lifecycle
467
+ */
468
+ certificateStatus: TargetDeploymentCertificateStatus;
469
+ /**
470
+ * Last DNS error message.
471
+ */
472
+ dnsError?: string | null | undefined;
473
+ /**
474
+ * DNS record status in the DNS lifecycle
475
+ */
476
+ dnsStatus: TargetDeploymentDnsStatus;
477
+ /**
478
+ * Endpoint-scoped metadata keyed by endpoint name.
479
+ */
480
+ endpoints?: { [k: string]: TargetDeploymentEndpoints } | undefined;
481
+ /**
482
+ * Fully qualified domain name.
483
+ */
484
+ fqdn: string;
485
+ /**
486
+ * ISO 8601 timestamp when certificate was issued (for renewal detection).
487
+ */
488
+ issuedAt?: string | null | undefined;
489
+ /**
490
+ * Decrypted private key (only present if status is "issued").
491
+ */
492
+ privateKey?: string | null | undefined;
493
+ };
494
+
495
+ /**
496
+ * Domain metadata for auto-managed public resources (no private keys).
497
+ */
498
+ export type TargetDeploymentDomainMetadata = {
499
+ /**
500
+ * Base domain for auto-generated domains (e.g., "vpc.direct").
501
+ */
502
+ baseDomain: string;
503
+ /**
504
+ * Hosted zone ID for DNS records.
505
+ */
506
+ hostedZoneId: string;
507
+ /**
508
+ * Deployment public subdomain (e.g., "k8f2j3").
509
+ */
510
+ publicSubdomain: string;
511
+ /**
512
+ * Metadata per resource ID.
513
+ */
514
+ resources: { [k: string]: ConfigResources };
515
+ };
516
+
517
+ export type TargetDeploymentDomainMetadataUnion =
518
+ | TargetDeploymentDomainMetadata
519
+ | string;
520
+
521
+ /**
522
+ * Type of environment variable
523
+ */
524
+ export const TargetDeploymentEnvironmentVariablesType = {
525
+ Plain: "plain",
526
+ Secret: "secret",
527
+ } as const;
528
+ /**
529
+ * Type of environment variable
530
+ */
531
+ export type TargetDeploymentEnvironmentVariablesType = ClosedEnum<
532
+ typeof TargetDeploymentEnvironmentVariablesType
533
+ >;
534
+
535
+ /**
536
+ * Environment variable for deployment
537
+ */
538
+ export type TargetDeploymentVariable = {
539
+ /**
540
+ * Variable name
541
+ */
542
+ name: string;
543
+ /**
544
+ * Target resource patterns (null = all resources, Some = wildcard patterns)
545
+ */
546
+ targetResources?: Array<string> | null | undefined;
547
+ /**
548
+ * Type of environment variable
549
+ */
550
+ type: TargetDeploymentEnvironmentVariablesType;
551
+ /**
552
+ * Variable value (decrypted - deployment has access to decryption keys)
553
+ */
554
+ value: string;
555
+ };
556
+
557
+ /**
558
+ * Snapshot of environment variables at a point in time
559
+ */
560
+ export type TargetDeploymentEnvironmentVariables = {
561
+ /**
562
+ * ISO 8601 timestamp when snapshot was created
563
+ */
564
+ createdAt: string;
565
+ /**
566
+ * Deterministic hash of all variables (for change detection)
567
+ */
568
+ hash: string;
569
+ /**
570
+ * Environment variables in the snapshot
571
+ */
572
+ variables: Array<TargetDeploymentVariable>;
573
+ };
574
+
575
+ export const ConfigPlatformKubernetes = {
576
+ Kubernetes: "kubernetes",
577
+ } as const;
578
+ export type ConfigPlatformKubernetes = ClosedEnum<
579
+ typeof ConfigPlatformKubernetes
580
+ >;
581
+
582
+ export type TargetDeploymentManagementConfigKubernetes = {
583
+ platform: ConfigPlatformKubernetes;
584
+ };
585
+
586
+ export const ConfigPlatformAzure = {
587
+ Azure: "azure",
588
+ } as const;
589
+ export type ConfigPlatformAzure = ClosedEnum<typeof ConfigPlatformAzure>;
590
+
591
+ /**
592
+ * Azure management configuration extracted from stack settings
593
+ */
594
+ export type TargetDeploymentManagementConfigAzure = {
595
+ /**
596
+ * The managing Azure Tenant ID for cross-tenant access
597
+ */
598
+ managingTenantId: string;
599
+ /**
600
+ * OIDC issuer URL trusted by the target-side managed identity.
601
+ */
602
+ oidcIssuer: string;
603
+ /**
604
+ * OIDC subject claim trusted by the target-side managed identity.
605
+ */
606
+ oidcSubject: string;
607
+ platform: ConfigPlatformAzure;
608
+ };
609
+
610
+ export const ConfigPlatformGcp = {
611
+ Gcp: "gcp",
612
+ } as const;
613
+ export type ConfigPlatformGcp = ClosedEnum<typeof ConfigPlatformGcp>;
614
+
615
+ /**
616
+ * GCP management configuration extracted from stack settings
617
+ */
618
+ export type TargetDeploymentManagementConfigGcp = {
619
+ /**
620
+ * Service account email for management roles
621
+ */
622
+ serviceAccountEmail: string;
623
+ platform: ConfigPlatformGcp;
624
+ };
625
+
626
+ export const ConfigPlatformAws = {
627
+ Aws: "aws",
628
+ } as const;
629
+ export type ConfigPlatformAws = ClosedEnum<typeof ConfigPlatformAws>;
630
+
631
+ /**
632
+ * AWS management configuration extracted from stack settings
633
+ */
634
+ export type TargetDeploymentManagementConfigAws = {
635
+ /**
636
+ * The managing AWS IAM role ARN that can assume cross-account roles
637
+ */
638
+ managingRoleArn: string;
639
+ platform: ConfigPlatformAws;
640
+ };
641
+
642
+ export type TargetDeploymentManagementConfigUnion =
643
+ | TargetDeploymentManagementConfigAzure
644
+ | TargetDeploymentManagementConfigAws
645
+ | TargetDeploymentManagementConfigGcp
646
+ | TargetDeploymentManagementConfigKubernetes
647
+ | string;
648
+
649
+ /**
650
+ * OTLP log export configuration for a deployment.
651
+ *
652
+ * @remarks
653
+ *
654
+ * When set, injected compute runtimes export captured application logs
655
+ * through the given endpoint via OTLP/HTTP; which resources are injected
656
+ * is platform-dependent. Workers read auth headers from a runtime-only
657
+ * secret. Runtime-less Containers and Daemons receive standard OTEL auth
658
+ * variables only at the final hosting boundary: Local passes them directly
659
+ * to the process and Kubernetes projects them from a per-workload Secret.
660
+ */
661
+ export type TargetDeploymentMonitoring = {
662
+ /**
663
+ * Auth header value in "key=value,..." format.
664
+ *
665
+ * @remarks
666
+ * Example: "authorization=Bearer <write-token>"
667
+ */
668
+ logsAuthHeader: string;
669
+ /**
670
+ * Full OTLP logs endpoint URL.
671
+ *
672
+ * @remarks
673
+ * Example: "https://<manager-host>/v1/logs"
674
+ */
675
+ logsEndpoint: string;
676
+ /**
677
+ * Auth header value for the metrics endpoint in "key=value,..." format (optional).
678
+ *
679
+ * @remarks
680
+ *
681
+ * When absent, `logs_auth_header` is reused for metrics -- suitable when the same
682
+ * credential covers both signals. When present (e.g. Axiom with separate datasets),
683
+ * this value is used exclusively for metrics.
684
+ *
685
+ * Example: "authorization=Bearer <token>,x-axiom-dataset=<metrics-dataset>"
686
+ */
687
+ metricsAuthHeader?: string | null | undefined;
688
+ /**
689
+ * Full OTLP metrics endpoint URL (optional).
690
+ *
691
+ * @remarks
692
+ * When set, the worker runtime exports its own VM/container orchestration metrics here.
693
+ * Example: "https://api.axiom.co/v1/metrics"
694
+ */
695
+ metricsEndpoint?: string | null | undefined;
696
+ /**
697
+ * Resource attributes attached to every OTLP signal emitted for this deployment.
698
+ *
699
+ * @remarks
700
+ *
701
+ * Platform managers use this for stable identity such as `alien.workspace_id`,
702
+ * `alien.project_id`, `alien.deployment_group_id`, and `alien.deployment_id`.
703
+ * Runtime-specific resource attributes such as `service.name` remain owned by
704
+ * the runtime/exporter.
705
+ */
706
+ resourceAttributes?: { [k: string]: string } | undefined;
707
+ };
708
+
709
+ export type TargetDeploymentMonitoringUnion =
710
+ | TargetDeploymentMonitoring
711
+ | string;
712
+
713
+ /**
714
+ * Deployment-time resource allocation for a container. Omitted fields use release defaults.
715
+ */
716
+ export type TargetDeploymentContainers = {
717
+ /**
718
+ * CPU allocation in vCPUs.
719
+ */
720
+ cpu?: number | null | undefined;
721
+ /**
722
+ * Memory allocation, using binary units such as Mi or Gi.
723
+ */
724
+ memory?: string | null | undefined;
725
+ /**
726
+ * Persistent volume capacity per replica, in whole GiB. Omitted values
727
+ *
728
+ * @remarks
729
+ * use the release default. Existing volumes can only grow.
730
+ */
731
+ volumeSizeGib?: number | null | undefined;
732
+ };
733
+
734
+ /**
735
+ * Failure-domain policy selected for a compute pool.
736
+ */
737
+ export type TargetDeploymentFailureDomains2 = {
738
+ /**
739
+ * Concrete provider domains selected during setup.
740
+ *
741
+ * @remarks
742
+ * Empty delegates deterministic selection to the provider setup implementation.
743
+ */
744
+ selectedFailureDomains?: Array<string> | undefined;
745
+ /**
746
+ * Number of distinct failure domains across which new stateful replicas may be spread.
747
+ */
748
+ spread: number;
749
+ };
750
+
751
+ export type TargetDeploymentFailureDomainsUnion2 =
752
+ | TargetDeploymentFailureDomains2
753
+ | string;
754
+
755
+ export type TargetDeploymentPoolsAutoscale = {
756
+ failureDomains?: TargetDeploymentFailureDomains2 | string | null | undefined;
757
+ /**
758
+ * Provider machine type selected for this deployment.
759
+ */
760
+ machine?: string | null | undefined;
761
+ /**
762
+ * Maximum machine count.
763
+ */
764
+ max: number;
765
+ /**
766
+ * Minimum machine count.
767
+ */
768
+ min: number;
769
+ mode: "autoscale";
770
+ };
771
+
772
+ /**
773
+ * Failure-domain policy selected for a compute pool.
774
+ */
775
+ export type TargetDeploymentFailureDomains1 = {
776
+ /**
777
+ * Concrete provider domains selected during setup.
778
+ *
779
+ * @remarks
780
+ * Empty delegates deterministic selection to the provider setup implementation.
781
+ */
782
+ selectedFailureDomains?: Array<string> | undefined;
783
+ /**
784
+ * Number of distinct failure domains across which new stateful replicas may be spread.
785
+ */
786
+ spread: number;
787
+ };
788
+
789
+ export type TargetDeploymentFailureDomainsUnion1 =
790
+ | TargetDeploymentFailureDomains1
791
+ | string;
792
+
793
+ export type TargetDeploymentPoolsFixed = {
794
+ failureDomains?: TargetDeploymentFailureDomains1 | string | null | undefined;
795
+ /**
796
+ * Provider machine type selected for this deployment.
797
+ */
798
+ machine?: string | null | undefined;
799
+ /**
800
+ * Number of machines to run.
801
+ */
802
+ machines: number;
803
+ mode: "fixed";
804
+ };
805
+
806
+ /**
807
+ * User-selected deployment settings for one compute pool.
808
+ */
809
+ export type TargetDeploymentPoolsUnion =
810
+ | TargetDeploymentPoolsFixed
811
+ | TargetDeploymentPoolsAutoscale;
812
+
813
+ /**
814
+ * Deployment-time compute choices for Alien-managed compute pools.
815
+ *
816
+ * @remarks
817
+ *
818
+ * Application source declares portable pool requirements. This settings
819
+ * object stores the concrete choices made for one deployment, such as the
820
+ * provider machine type and selected machine counts.
821
+ */
822
+ export type TargetDeploymentCompute = {
823
+ /**
824
+ * Per-replica resources selected within each container's declared ranges.
825
+ */
826
+ containers?: { [k: string]: TargetDeploymentContainers } | undefined;
827
+ /**
828
+ * Selected compute choices keyed by pool ID.
829
+ */
830
+ pools?: {
831
+ [k: string]: TargetDeploymentPoolsFixed | TargetDeploymentPoolsAutoscale;
832
+ } | undefined;
833
+ };
834
+
835
+ export type TargetDeploymentComputeUnion = TargetDeploymentCompute | string;
836
+
837
+ /**
838
+ * Deployment model: how updates are delivered to the remote environment.
839
+ */
840
+ export const TargetDeploymentDeploymentModel = {
841
+ Push: "push",
842
+ Pull: "pull",
843
+ } as const;
844
+ /**
845
+ * Deployment model: how updates are delivered to the remote environment.
846
+ */
847
+ export type TargetDeploymentDeploymentModel = ClosedEnum<
848
+ typeof TargetDeploymentDeploymentModel
849
+ >;
850
+
851
+ export type TargetDeploymentAwsStackSettings = {
852
+ certificateArn: string;
853
+ };
854
+
855
+ export type TargetDeploymentStackSettingsAwsUnion =
856
+ | TargetDeploymentAwsStackSettings
857
+ | string;
858
+
859
+ export type AzureConfigStackSettings = {
860
+ keyVaultCertificateId: string;
861
+ keyVaultResourceId?: string | null | undefined;
862
+ };
863
+
864
+ export type ConfigStackSettingsAzureUnion = AzureConfigStackSettings | string;
865
+
866
+ export type GcpConfigStackSettings = {
867
+ certificateName: string;
868
+ };
869
+
870
+ export type ConfigStackSettingsGcpUnion = GcpConfigStackSettings | string;
871
+
872
+ /**
873
+ * Namespace-scoped Kubernetes TLS Secret reference.
874
+ */
875
+ export type TargetDeploymentTlsSecretRef = {
876
+ /**
877
+ * Secret namespace. Defaults to the release namespace when omitted.
878
+ */
879
+ namespace?: string | null | undefined;
880
+ /**
881
+ * Secret name.
882
+ */
883
+ secretName: string;
884
+ };
885
+
886
+ export type TargetDeploymentDomainsKubernetes = {
887
+ /**
888
+ * Namespace-scoped Kubernetes TLS Secret reference.
889
+ */
890
+ tlsSecretRef: TargetDeploymentTlsSecretRef;
891
+ };
892
+
893
+ export type TargetDeploymentDomainsKubernetesUnion =
894
+ | TargetDeploymentDomainsKubernetes
895
+ | string;
896
+
897
+ /**
898
+ * Platform-specific certificate references for custom domains.
899
+ */
900
+ export type TargetDeploymentDomainsCertificate = {
901
+ aws?: TargetDeploymentAwsStackSettings | string | null | undefined;
902
+ azure?: AzureConfigStackSettings | string | null | undefined;
903
+ gcp?: GcpConfigStackSettings | string | null | undefined;
904
+ kubernetes?: TargetDeploymentDomainsKubernetes | string | null | undefined;
905
+ };
906
+
907
+ /**
908
+ * Custom domain configuration for a single resource.
909
+ */
910
+ export type TargetDeploymentCustomDomains = {
911
+ /**
912
+ * Platform-specific certificate references for custom domains.
913
+ */
914
+ certificate: TargetDeploymentDomainsCertificate;
915
+ /**
916
+ * Fully qualified domain name to use.
917
+ */
918
+ domain: string;
919
+ };
920
+
921
+ export const TargetDeploymentModeLoadBalancer = {
922
+ LoadBalancer: "loadBalancer",
923
+ } as const;
924
+ export type TargetDeploymentModeLoadBalancer = ClosedEnum<
925
+ typeof TargetDeploymentModeLoadBalancer
926
+ >;
927
+
928
+ export type TargetDeploymentPublicEndpointTargetLoadBalancer = {
929
+ /**
930
+ * DNS name or URL for the external load balancer.
931
+ */
932
+ cnameTarget: string;
933
+ mode: TargetDeploymentModeLoadBalancer;
934
+ };
935
+
936
+ export const TargetDeploymentModeMachineAddresses = {
937
+ MachineAddresses: "machineAddresses",
938
+ } as const;
939
+ export type TargetDeploymentModeMachineAddresses = ClosedEnum<
940
+ typeof TargetDeploymentModeMachineAddresses
941
+ >;
942
+
943
+ export type TargetDeploymentPublicEndpointTargetMachineAddresses = {
944
+ mode: TargetDeploymentModeMachineAddresses;
945
+ };
946
+
947
+ export type TargetDeploymentPublicEndpointTargetUnion =
948
+ | TargetDeploymentPublicEndpointTargetLoadBalancer
949
+ | TargetDeploymentPublicEndpointTargetMachineAddresses
950
+ | string;
951
+
952
+ /**
953
+ * Domain configuration for the stack.
954
+ *
955
+ * @remarks
956
+ *
957
+ * When `custom_domains` is set, the specified resources use customer-provided
958
+ * domains and certificates. Otherwise, Alien auto-generates domains.
959
+ */
960
+ export type TargetDeploymentDomains = {
961
+ /**
962
+ * Custom domain configuration per resource ID.
963
+ */
964
+ customDomains?:
965
+ | { [k: string]: TargetDeploymentCustomDomains }
966
+ | null
967
+ | undefined;
968
+ publicEndpointTarget?:
969
+ | TargetDeploymentPublicEndpointTargetLoadBalancer
970
+ | TargetDeploymentPublicEndpointTargetMachineAddresses
971
+ | string
972
+ | null
973
+ | undefined;
974
+ };
975
+
976
+ export type TargetDeploymentDomainsUnion = TargetDeploymentDomains | string;
977
+
978
+ /**
979
+ * Reachability of the deployment's public endpoints, fixed at setup.
980
+ */
981
+ export const TargetDeploymentEndpointAccess = {
982
+ Internet: "internet",
983
+ Private: "private",
984
+ } as const;
985
+ /**
986
+ * Reachability of the deployment's public endpoints, fixed at setup.
987
+ */
988
+ export type TargetDeploymentEndpointAccess = ClosedEnum<
989
+ typeof TargetDeploymentEndpointAccess
990
+ >;
991
+
992
+ /**
993
+ * How heartbeat health checks are handled.
994
+ */
995
+ export const TargetDeploymentHeartbeats = {
996
+ Off: "off",
997
+ On: "on",
998
+ } as const;
999
+ /**
1000
+ * How heartbeat health checks are handled.
1001
+ */
1002
+ export type TargetDeploymentHeartbeats = ClosedEnum<
1003
+ typeof TargetDeploymentHeartbeats
1004
+ >;
1005
+
1006
+ /**
1007
+ * Optional provider-specific identity for a cloud-backed Kubernetes cluster.
1008
+ */
1009
+ export type TargetDeploymentCloud = {
1010
+ accountId?: string | null | undefined;
1011
+ clusterId?: string | null | undefined;
1012
+ clusterName?: string | null | undefined;
1013
+ projectId?: string | null | undefined;
1014
+ region?: string | null | undefined;
1015
+ resourceGroup?: string | null | undefined;
1016
+ subscriptionId?: string | null | undefined;
1017
+ };
1018
+
1019
+ export type TargetDeploymentCloudUnion = TargetDeploymentCloud | string;
1020
+
1021
+ /**
1022
+ * Ownership model for the Kubernetes cluster.
1023
+ */
1024
+ export const TargetDeploymentOwnership = {
1025
+ Managed: "managed",
1026
+ Existing: "existing",
1027
+ External: "external",
1028
+ } as const;
1029
+ /**
1030
+ * Ownership model for the Kubernetes cluster.
1031
+ */
1032
+ export type TargetDeploymentOwnership = ClosedEnum<
1033
+ typeof TargetDeploymentOwnership
1034
+ >;
1035
+
1036
+ /**
1037
+ * Kubernetes cluster setup settings.
1038
+ */
1039
+ export type TargetDeploymentCluster = {
1040
+ cloud?: TargetDeploymentCloud | string | null | undefined;
1041
+ /**
1042
+ * Namespace where the Alien chart and application resources run.
1043
+ */
1044
+ namespace?: string | null | undefined;
1045
+ /**
1046
+ * Ownership model for the Kubernetes cluster.
1047
+ */
1048
+ ownership: TargetDeploymentOwnership;
1049
+ };
1050
+
1051
+ export type TargetDeploymentClusterUnion = TargetDeploymentCluster | string;
1052
+
1053
+ export type TargetDeploymentCertificateNone2 = {
1054
+ mode: "none";
1055
+ };
1056
+
1057
+ export type TargetDeploymentCertificateManagedTLSSecret2 = {
1058
+ mode: "managedTlsSecret";
1059
+ /**
1060
+ * Secret name template. Runtime may substitute resource/deployment tokens.
1061
+ */
1062
+ secretNameTemplate: string;
1063
+ };
1064
+
1065
+ export type TargetDeploymentCertificateAwsAcmArn2 = {
1066
+ /**
1067
+ * Existing ACM certificate ARN.
1068
+ */
1069
+ certificateArn: string;
1070
+ mode: "awsAcmArn";
1071
+ };
1072
+
1073
+ export type TargetDeploymentCertificateManagedAcmImport2 = {
1074
+ mode: "managedAcmImport";
1075
+ /**
1076
+ * ACM region. Defaults to the deployment region when omitted.
1077
+ */
1078
+ region?: string | null | undefined;
1079
+ /**
1080
+ * Tags applied to runtime-imported ACM certificates.
1081
+ */
1082
+ tags?: { [k: string]: string } | undefined;
1083
+ };
1084
+
1085
+ /**
1086
+ * Namespace-scoped Kubernetes TLS Secret reference.
1087
+ */
1088
+ export type TargetDeploymentCertificateTLSSecretRef2 = {
1089
+ /**
1090
+ * Secret namespace. Defaults to the release namespace when omitted.
1091
+ */
1092
+ namespace?: string | null | undefined;
1093
+ /**
1094
+ * Secret name.
1095
+ */
1096
+ secretName: string;
1097
+ mode: "tlsSecretRef";
1098
+ };
1099
+
1100
+ /**
1101
+ * Certificate publication or reference mode for Kubernetes public endpoints.
1102
+ */
1103
+ export type TargetDeploymentCertificateUnion2 =
1104
+ | TargetDeploymentCertificateTLSSecretRef2
1105
+ | TargetDeploymentCertificateManagedAcmImport2
1106
+ | TargetDeploymentCertificateAwsAcmArn2
1107
+ | TargetDeploymentCertificateManagedTLSSecret2
1108
+ | TargetDeploymentCertificateNone2;
1109
+
1110
+ export const TargetDeploymentModeCustom = {
1111
+ Custom: "custom",
1112
+ } as const;
1113
+ export type TargetDeploymentModeCustom = ClosedEnum<
1114
+ typeof TargetDeploymentModeCustom
1115
+ >;
1116
+
1117
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4 =
1118
+ {
1119
+ AzureApplicationGatewayForContainers:
1120
+ "azureApplicationGatewayForContainers",
1121
+ } as const;
1122
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4 =
1123
+ ClosedEnum<
1124
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4
1125
+ >;
1126
+
1127
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainers4 = {
1128
+ /**
1129
+ * Optional ALB name when using BYO Application Gateway resources.
1130
+ */
1131
+ albName?: string | null | undefined;
1132
+ /**
1133
+ * Optional ALB namespace when using BYO Application Gateway resources.
1134
+ */
1135
+ albNamespace?: string | null | undefined;
1136
+ /**
1137
+ * Public or internal frontend exposure.
1138
+ */
1139
+ frontend: string;
1140
+ provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4;
1141
+ };
1142
+
1143
+ export const TargetDeploymentProviderGkeGatewayEnum4 = {
1144
+ GkeGateway: "gkeGateway",
1145
+ } as const;
1146
+ export type TargetDeploymentProviderGkeGatewayEnum4 = ClosedEnum<
1147
+ typeof TargetDeploymentProviderGkeGatewayEnum4
1148
+ >;
1149
+
1150
+ export type TargetDeploymentProviderGkeGateway4 = {
1151
+ provider: TargetDeploymentProviderGkeGatewayEnum4;
1152
+ /**
1153
+ * Optional static address name for the Gateway frontend.
1154
+ */
1155
+ staticAddressName?: string | null | undefined;
1156
+ };
1157
+
1158
+ export const TargetDeploymentProviderAwsAlbEnum4 = {
1159
+ AwsAlb: "awsAlb",
1160
+ } as const;
1161
+ export type TargetDeploymentProviderAwsAlbEnum4 = ClosedEnum<
1162
+ typeof TargetDeploymentProviderAwsAlbEnum4
1163
+ >;
1164
+
1165
+ export type TargetDeploymentProviderAwsAlb4 = {
1166
+ /**
1167
+ * Optional ALB IP address type, such as `dualstack`.
1168
+ */
1169
+ ipAddressType?: string | null | undefined;
1170
+ provider: TargetDeploymentProviderAwsAlbEnum4;
1171
+ /**
1172
+ * Internet-facing or internal ALB scheme.
1173
+ */
1174
+ scheme: string;
1175
+ /**
1176
+ * Explicit subnet IDs when the profile cannot rely on controller discovery.
1177
+ */
1178
+ subnetIds?: Array<string> | undefined;
1179
+ /**
1180
+ * ALB target type, usually `ip`.
1181
+ */
1182
+ targetType: string;
1183
+ };
1184
+
1185
+ export type TargetDeploymentProviderUnion4 =
1186
+ | TargetDeploymentProviderAwsAlb4
1187
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers4
1188
+ | TargetDeploymentProviderGkeGateway4
1189
+ | string;
1190
+
1191
+ /**
1192
+ * Shared Gateway API route profile values.
1193
+ */
1194
+ export type TargetDeploymentRouteGateway2 = {
1195
+ /**
1196
+ * Annotations applied to route objects.
1197
+ */
1198
+ annotations?: { [k: string]: string } | undefined;
1199
+ /**
1200
+ * Route controller identifier, for example a cloud Gateway controller.
1201
+ */
1202
+ controller?: string | null | undefined;
1203
+ /**
1204
+ * GatewayClass selected for generated Gateways.
1205
+ */
1206
+ gatewayClassName: string;
1207
+ /**
1208
+ * Labels applied to route objects.
1209
+ */
1210
+ labels?: { [k: string]: string } | undefined;
1211
+ /**
1212
+ * Listener port, usually 443.
1213
+ */
1214
+ listenerPort: number;
1215
+ provider?:
1216
+ | TargetDeploymentProviderAwsAlb4
1217
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers4
1218
+ | TargetDeploymentProviderGkeGateway4
1219
+ | string
1220
+ | null
1221
+ | undefined;
1222
+ routeApi: "gateway";
1223
+ };
1224
+
1225
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3 =
1226
+ {
1227
+ AzureApplicationGatewayForContainers:
1228
+ "azureApplicationGatewayForContainers",
1229
+ } as const;
1230
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3 =
1231
+ ClosedEnum<
1232
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3
1233
+ >;
1234
+
1235
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainers3 = {
1236
+ /**
1237
+ * Optional ALB name when using BYO Application Gateway resources.
1238
+ */
1239
+ albName?: string | null | undefined;
1240
+ /**
1241
+ * Optional ALB namespace when using BYO Application Gateway resources.
1242
+ */
1243
+ albNamespace?: string | null | undefined;
1244
+ /**
1245
+ * Public or internal frontend exposure.
1246
+ */
1247
+ frontend: string;
1248
+ provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3;
1249
+ };
1250
+
1251
+ export const TargetDeploymentProviderGkeGatewayEnum3 = {
1252
+ GkeGateway: "gkeGateway",
1253
+ } as const;
1254
+ export type TargetDeploymentProviderGkeGatewayEnum3 = ClosedEnum<
1255
+ typeof TargetDeploymentProviderGkeGatewayEnum3
1256
+ >;
1257
+
1258
+ export type TargetDeploymentProviderGkeGateway3 = {
1259
+ provider: TargetDeploymentProviderGkeGatewayEnum3;
1260
+ /**
1261
+ * Optional static address name for the Gateway frontend.
1262
+ */
1263
+ staticAddressName?: string | null | undefined;
1264
+ };
1265
+
1266
+ export const TargetDeploymentProviderAwsAlbEnum3 = {
1267
+ AwsAlb: "awsAlb",
1268
+ } as const;
1269
+ export type TargetDeploymentProviderAwsAlbEnum3 = ClosedEnum<
1270
+ typeof TargetDeploymentProviderAwsAlbEnum3
1271
+ >;
1272
+
1273
+ export type TargetDeploymentProviderAwsAlb3 = {
1274
+ /**
1275
+ * Optional ALB IP address type, such as `dualstack`.
1276
+ */
1277
+ ipAddressType?: string | null | undefined;
1278
+ provider: TargetDeploymentProviderAwsAlbEnum3;
1279
+ /**
1280
+ * Internet-facing or internal ALB scheme.
1281
+ */
1282
+ scheme: string;
1283
+ /**
1284
+ * Explicit subnet IDs when the profile cannot rely on controller discovery.
1285
+ */
1286
+ subnetIds?: Array<string> | undefined;
1287
+ /**
1288
+ * ALB target type, usually `ip`.
1289
+ */
1290
+ targetType: string;
1291
+ };
1292
+
1293
+ export type TargetDeploymentProviderUnion3 =
1294
+ | TargetDeploymentProviderAwsAlb3
1295
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers3
1296
+ | TargetDeploymentProviderGkeGateway3
1297
+ | string;
1298
+
1299
+ /**
1300
+ * Shared Ingress route profile values.
1301
+ */
1302
+ export type TargetDeploymentRouteIngress2 = {
1303
+ /**
1304
+ * Annotations applied to route objects.
1305
+ */
1306
+ annotations?: { [k: string]: string } | undefined;
1307
+ /**
1308
+ * Route controller identifier, for example `eks.amazonaws.com/alb`.
1309
+ */
1310
+ controller?: string | null | undefined;
1311
+ /**
1312
+ * `spec.ingressClassName` for generated Ingresses.
1313
+ */
1314
+ ingressClassName: string;
1315
+ /**
1316
+ * Labels applied to route objects.
1317
+ */
1318
+ labels?: { [k: string]: string } | undefined;
1319
+ provider?:
1320
+ | TargetDeploymentProviderAwsAlb3
1321
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers3
1322
+ | TargetDeploymentProviderGkeGateway3
1323
+ | string
1324
+ | null
1325
+ | undefined;
1326
+ routeApi: "ingress";
1327
+ };
1328
+
1329
+ /**
1330
+ * Kubernetes route API selected for public endpoints.
1331
+ */
1332
+ export type TargetDeploymentRouteUnion2 =
1333
+ | TargetDeploymentRouteIngress2
1334
+ | TargetDeploymentRouteGateway2;
1335
+
1336
+ export type TargetDeploymentExposureCustom = {
1337
+ /**
1338
+ * Certificate publication or reference mode for Kubernetes public endpoints.
1339
+ */
1340
+ certificate:
1341
+ | TargetDeploymentCertificateTLSSecretRef2
1342
+ | TargetDeploymentCertificateManagedAcmImport2
1343
+ | TargetDeploymentCertificateAwsAcmArn2
1344
+ | TargetDeploymentCertificateManagedTLSSecret2
1345
+ | TargetDeploymentCertificateNone2;
1346
+ /**
1347
+ * Hostname routed by the Kubernetes public endpoint.
1348
+ */
1349
+ domain: string;
1350
+ mode: TargetDeploymentModeCustom;
1351
+ /**
1352
+ * Kubernetes route API selected for public endpoints.
1353
+ */
1354
+ route: TargetDeploymentRouteIngress2 | TargetDeploymentRouteGateway2;
1355
+ };
1356
+
1357
+ export type TargetDeploymentCertificateNone1 = {
1358
+ mode: "none";
1359
+ };
1360
+
1361
+ export type TargetDeploymentCertificateManagedTLSSecret1 = {
1362
+ mode: "managedTlsSecret";
1363
+ /**
1364
+ * Secret name template. Runtime may substitute resource/deployment tokens.
1365
+ */
1366
+ secretNameTemplate: string;
1367
+ };
1368
+
1369
+ export type TargetDeploymentCertificateAwsAcmArn1 = {
1370
+ /**
1371
+ * Existing ACM certificate ARN.
1372
+ */
1373
+ certificateArn: string;
1374
+ mode: "awsAcmArn";
1375
+ };
1376
+
1377
+ export type TargetDeploymentCertificateManagedAcmImport1 = {
1378
+ mode: "managedAcmImport";
1379
+ /**
1380
+ * ACM region. Defaults to the deployment region when omitted.
1381
+ */
1382
+ region?: string | null | undefined;
1383
+ /**
1384
+ * Tags applied to runtime-imported ACM certificates.
1385
+ */
1386
+ tags?: { [k: string]: string } | undefined;
1387
+ };
1388
+
1389
+ /**
1390
+ * Namespace-scoped Kubernetes TLS Secret reference.
1391
+ */
1392
+ export type TargetDeploymentCertificateTLSSecretRef1 = {
1393
+ /**
1394
+ * Secret namespace. Defaults to the release namespace when omitted.
1395
+ */
1396
+ namespace?: string | null | undefined;
1397
+ /**
1398
+ * Secret name.
1399
+ */
1400
+ secretName: string;
1401
+ mode: "tlsSecretRef";
1402
+ };
1403
+
1404
+ /**
1405
+ * Certificate publication or reference mode for Kubernetes public endpoints.
1406
+ */
1407
+ export type TargetDeploymentCertificateUnion1 =
1408
+ | TargetDeploymentCertificateTLSSecretRef1
1409
+ | TargetDeploymentCertificateManagedAcmImport1
1410
+ | TargetDeploymentCertificateAwsAcmArn1
1411
+ | TargetDeploymentCertificateManagedTLSSecret1
1412
+ | TargetDeploymentCertificateNone1;
1413
+
1414
+ export const TargetDeploymentModeGenerated = {
1415
+ Generated: "generated",
1416
+ } as const;
1417
+ export type TargetDeploymentModeGenerated = ClosedEnum<
1418
+ typeof TargetDeploymentModeGenerated
1419
+ >;
1420
+
1421
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2 =
1422
+ {
1423
+ AzureApplicationGatewayForContainers:
1424
+ "azureApplicationGatewayForContainers",
1425
+ } as const;
1426
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2 =
1427
+ ClosedEnum<
1428
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2
1429
+ >;
1430
+
1431
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainers2 = {
1432
+ /**
1433
+ * Optional ALB name when using BYO Application Gateway resources.
1434
+ */
1435
+ albName?: string | null | undefined;
1436
+ /**
1437
+ * Optional ALB namespace when using BYO Application Gateway resources.
1438
+ */
1439
+ albNamespace?: string | null | undefined;
1440
+ /**
1441
+ * Public or internal frontend exposure.
1442
+ */
1443
+ frontend: string;
1444
+ provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2;
1445
+ };
1446
+
1447
+ export const TargetDeploymentProviderGkeGatewayEnum2 = {
1448
+ GkeGateway: "gkeGateway",
1449
+ } as const;
1450
+ export type TargetDeploymentProviderGkeGatewayEnum2 = ClosedEnum<
1451
+ typeof TargetDeploymentProviderGkeGatewayEnum2
1452
+ >;
1453
+
1454
+ export type TargetDeploymentProviderGkeGateway2 = {
1455
+ provider: TargetDeploymentProviderGkeGatewayEnum2;
1456
+ /**
1457
+ * Optional static address name for the Gateway frontend.
1458
+ */
1459
+ staticAddressName?: string | null | undefined;
1460
+ };
1461
+
1462
+ export const TargetDeploymentProviderAwsAlbEnum2 = {
1463
+ AwsAlb: "awsAlb",
1464
+ } as const;
1465
+ export type TargetDeploymentProviderAwsAlbEnum2 = ClosedEnum<
1466
+ typeof TargetDeploymentProviderAwsAlbEnum2
1467
+ >;
1468
+
1469
+ export type TargetDeploymentProviderAwsAlb2 = {
1470
+ /**
1471
+ * Optional ALB IP address type, such as `dualstack`.
1472
+ */
1473
+ ipAddressType?: string | null | undefined;
1474
+ provider: TargetDeploymentProviderAwsAlbEnum2;
1475
+ /**
1476
+ * Internet-facing or internal ALB scheme.
1477
+ */
1478
+ scheme: string;
1479
+ /**
1480
+ * Explicit subnet IDs when the profile cannot rely on controller discovery.
1481
+ */
1482
+ subnetIds?: Array<string> | undefined;
1483
+ /**
1484
+ * ALB target type, usually `ip`.
1485
+ */
1486
+ targetType: string;
1487
+ };
1488
+
1489
+ export type TargetDeploymentProviderUnion2 =
1490
+ | TargetDeploymentProviderAwsAlb2
1491
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers2
1492
+ | TargetDeploymentProviderGkeGateway2
1493
+ | string;
1494
+
1495
+ /**
1496
+ * Shared Gateway API route profile values.
1497
+ */
1498
+ export type TargetDeploymentRouteGateway1 = {
1499
+ /**
1500
+ * Annotations applied to route objects.
1501
+ */
1502
+ annotations?: { [k: string]: string } | undefined;
1503
+ /**
1504
+ * Route controller identifier, for example a cloud Gateway controller.
1505
+ */
1506
+ controller?: string | null | undefined;
1507
+ /**
1508
+ * GatewayClass selected for generated Gateways.
1509
+ */
1510
+ gatewayClassName: string;
1511
+ /**
1512
+ * Labels applied to route objects.
1513
+ */
1514
+ labels?: { [k: string]: string } | undefined;
1515
+ /**
1516
+ * Listener port, usually 443.
1517
+ */
1518
+ listenerPort: number;
1519
+ provider?:
1520
+ | TargetDeploymentProviderAwsAlb2
1521
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers2
1522
+ | TargetDeploymentProviderGkeGateway2
1523
+ | string
1524
+ | null
1525
+ | undefined;
1526
+ routeApi: "gateway";
1527
+ };
1528
+
1529
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1 =
1530
+ {
1531
+ AzureApplicationGatewayForContainers:
1532
+ "azureApplicationGatewayForContainers",
1533
+ } as const;
1534
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1 =
1535
+ ClosedEnum<
1536
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1
1537
+ >;
1538
+
1539
+ export type TargetDeploymentProviderAzureApplicationGatewayForContainers1 = {
1540
+ /**
1541
+ * Optional ALB name when using BYO Application Gateway resources.
1542
+ */
1543
+ albName?: string | null | undefined;
1544
+ /**
1545
+ * Optional ALB namespace when using BYO Application Gateway resources.
1546
+ */
1547
+ albNamespace?: string | null | undefined;
1548
+ /**
1549
+ * Public or internal frontend exposure.
1550
+ */
1551
+ frontend: string;
1552
+ provider: TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1;
1553
+ };
1554
+
1555
+ export const TargetDeploymentProviderGkeGatewayEnum1 = {
1556
+ GkeGateway: "gkeGateway",
1557
+ } as const;
1558
+ export type TargetDeploymentProviderGkeGatewayEnum1 = ClosedEnum<
1559
+ typeof TargetDeploymentProviderGkeGatewayEnum1
1560
+ >;
1561
+
1562
+ export type TargetDeploymentProviderGkeGateway1 = {
1563
+ provider: TargetDeploymentProviderGkeGatewayEnum1;
1564
+ /**
1565
+ * Optional static address name for the Gateway frontend.
1566
+ */
1567
+ staticAddressName?: string | null | undefined;
1568
+ };
1569
+
1570
+ export const TargetDeploymentProviderAwsAlbEnum1 = {
1571
+ AwsAlb: "awsAlb",
1572
+ } as const;
1573
+ export type TargetDeploymentProviderAwsAlbEnum1 = ClosedEnum<
1574
+ typeof TargetDeploymentProviderAwsAlbEnum1
1575
+ >;
1576
+
1577
+ export type TargetDeploymentProviderAwsAlb1 = {
1578
+ /**
1579
+ * Optional ALB IP address type, such as `dualstack`.
1580
+ */
1581
+ ipAddressType?: string | null | undefined;
1582
+ provider: TargetDeploymentProviderAwsAlbEnum1;
1583
+ /**
1584
+ * Internet-facing or internal ALB scheme.
1585
+ */
1586
+ scheme: string;
1587
+ /**
1588
+ * Explicit subnet IDs when the profile cannot rely on controller discovery.
1589
+ */
1590
+ subnetIds?: Array<string> | undefined;
1591
+ /**
1592
+ * ALB target type, usually `ip`.
1593
+ */
1594
+ targetType: string;
1595
+ };
1596
+
1597
+ export type TargetDeploymentProviderUnion1 =
1598
+ | TargetDeploymentProviderAwsAlb1
1599
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers1
1600
+ | TargetDeploymentProviderGkeGateway1
1601
+ | string;
1602
+
1603
+ /**
1604
+ * Shared Ingress route profile values.
1605
+ */
1606
+ export type TargetDeploymentRouteIngress1 = {
1607
+ /**
1608
+ * Annotations applied to route objects.
1609
+ */
1610
+ annotations?: { [k: string]: string } | undefined;
1611
+ /**
1612
+ * Route controller identifier, for example `eks.amazonaws.com/alb`.
1613
+ */
1614
+ controller?: string | null | undefined;
1615
+ /**
1616
+ * `spec.ingressClassName` for generated Ingresses.
1617
+ */
1618
+ ingressClassName: string;
1619
+ /**
1620
+ * Labels applied to route objects.
1621
+ */
1622
+ labels?: { [k: string]: string } | undefined;
1623
+ provider?:
1624
+ | TargetDeploymentProviderAwsAlb1
1625
+ | TargetDeploymentProviderAzureApplicationGatewayForContainers1
1626
+ | TargetDeploymentProviderGkeGateway1
1627
+ | string
1628
+ | null
1629
+ | undefined;
1630
+ routeApi: "ingress";
1631
+ };
1632
+
1633
+ /**
1634
+ * Kubernetes route API selected for public endpoints.
1635
+ */
1636
+ export type TargetDeploymentRouteUnion1 =
1637
+ | TargetDeploymentRouteIngress1
1638
+ | TargetDeploymentRouteGateway1;
1639
+
1640
+ export type TargetDeploymentExposureGenerated = {
1641
+ /**
1642
+ * Certificate publication or reference mode for Kubernetes public endpoints.
1643
+ */
1644
+ certificate:
1645
+ | TargetDeploymentCertificateTLSSecretRef1
1646
+ | TargetDeploymentCertificateManagedAcmImport1
1647
+ | TargetDeploymentCertificateAwsAcmArn1
1648
+ | TargetDeploymentCertificateManagedTLSSecret1
1649
+ | TargetDeploymentCertificateNone1;
1650
+ mode: TargetDeploymentModeGenerated;
1651
+ /**
1652
+ * Kubernetes route API selected for public endpoints.
1653
+ */
1654
+ route: TargetDeploymentRouteIngress1 | TargetDeploymentRouteGateway1;
1655
+ };
1656
+
1657
+ export const TargetDeploymentModeDisabled = {
1658
+ Disabled: "disabled",
1659
+ } as const;
1660
+ export type TargetDeploymentModeDisabled = ClosedEnum<
1661
+ typeof TargetDeploymentModeDisabled
1662
+ >;
1663
+
1664
+ export type TargetDeploymentExposureDisabled = {
1665
+ mode: TargetDeploymentModeDisabled;
1666
+ };
1667
+
1668
+ export type TargetDeploymentExposureUnion =
1669
+ | TargetDeploymentExposureCustom
1670
+ | TargetDeploymentExposureGenerated
1671
+ | TargetDeploymentExposureDisabled
1672
+ | string;
1673
+
1674
+ /**
1675
+ * Kubernetes runtime substrate configuration.
1676
+ *
1677
+ * @remarks
1678
+ *
1679
+ * This controls how setup chooses the cluster backing `Platform::Kubernetes`
1680
+ * deployments. When omitted, cloud-backed Kubernetes deployments default to a
1681
+ * managed cluster and generic/on-prem Kubernetes defaults to an external
1682
+ * cluster.
1683
+ */
1684
+ export type TargetDeploymentKubernetes = {
1685
+ cluster?: TargetDeploymentCluster | string | null | undefined;
1686
+ exposure?:
1687
+ | TargetDeploymentExposureCustom
1688
+ | TargetDeploymentExposureGenerated
1689
+ | TargetDeploymentExposureDisabled
1690
+ | string
1691
+ | null
1692
+ | undefined;
1693
+ };
1694
+
1695
+ export type TargetDeploymentKubernetesUnion =
1696
+ | TargetDeploymentKubernetes
1697
+ | string;
1698
+
1699
+ export const TargetDeploymentTypeByoVnetAzure = {
1700
+ ByoVnetAzure: "byo-vnet-azure",
1701
+ } as const;
1702
+ export type TargetDeploymentTypeByoVnetAzure = ClosedEnum<
1703
+ typeof TargetDeploymentTypeByoVnetAzure
1704
+ >;
1705
+
1706
+ export type TargetDeploymentNetworkByoVnetAzure = {
1707
+ /**
1708
+ * Name of the dedicated classic Application Gateway subnet within the VNet.
1709
+ */
1710
+ applicationGatewaySubnetName?: string | null | undefined;
1711
+ /**
1712
+ * Name of the dedicated subnet that hosts Private Endpoints (e.g. for a
1713
+ *
1714
+ * @remarks
1715
+ * Postgres Flexible Server). A Private Endpoint must not share the private
1716
+ * subnet, which is already claimed by the Container Apps environment's
1717
+ * `infrastructure_subnet_id`. Required only when the stack contains a
1718
+ * Postgres resource; otherwise unused.
1719
+ */
1720
+ privateEndpointSubnetName?: string | null | undefined;
1721
+ /**
1722
+ * Name of the private subnet within the VNet
1723
+ */
1724
+ privateSubnetName: string;
1725
+ /**
1726
+ * Name of the public subnet within the VNet
1727
+ */
1728
+ publicSubnetName: string;
1729
+ type: TargetDeploymentTypeByoVnetAzure;
1730
+ /**
1731
+ * The full resource ID of the existing VNet
1732
+ */
1733
+ vnetResourceId: string;
1734
+ };
1735
+
1736
+ export const TargetDeploymentTypeByoVpcGcp = {
1737
+ ByoVpcGcp: "byo-vpc-gcp",
1738
+ } as const;
1739
+ export type TargetDeploymentTypeByoVpcGcp = ClosedEnum<
1740
+ typeof TargetDeploymentTypeByoVpcGcp
1741
+ >;
1742
+
1743
+ export type TargetDeploymentNetworkByoVpcGcp = {
1744
+ /**
1745
+ * The name of the existing VPC network
1746
+ */
1747
+ networkName: string;
1748
+ /**
1749
+ * The region of the subnet
1750
+ */
1751
+ region: string;
1752
+ /**
1753
+ * The name of the subnet to use
1754
+ */
1755
+ subnetName: string;
1756
+ type: TargetDeploymentTypeByoVpcGcp;
1757
+ };
1758
+
1759
+ export const TargetDeploymentTypeByoVpcAws = {
1760
+ ByoVpcAws: "byo-vpc-aws",
1761
+ } as const;
1762
+ export type TargetDeploymentTypeByoVpcAws = ClosedEnum<
1763
+ typeof TargetDeploymentTypeByoVpcAws
1764
+ >;
1765
+
1766
+ export type TargetDeploymentNetworkByoVpcAws = {
1767
+ /**
1768
+ * IDs of private subnets
1769
+ */
1770
+ privateSubnetIds: Array<string>;
1771
+ /**
1772
+ * IDs of public subnets (required for public ingress)
1773
+ */
1774
+ publicSubnetIds: Array<string>;
1775
+ /**
1776
+ * Optional security group IDs to use
1777
+ */
1778
+ securityGroupIds?: Array<string> | undefined;
1779
+ type: TargetDeploymentTypeByoVpcAws;
1780
+ /**
1781
+ * The ID of the existing VPC
1782
+ */
1783
+ vpcId: string;
1784
+ };
1785
+
1786
+ export const TargetDeploymentTypeCreate = {
1787
+ Create: "create",
1788
+ } as const;
1789
+ export type TargetDeploymentTypeCreate = ClosedEnum<
1790
+ typeof TargetDeploymentTypeCreate
1791
+ >;
1792
+
1793
+ export type TargetDeploymentNetworkCreate = {
1794
+ /**
1795
+ * Number of availability zones (default: 2).
1796
+ */
1797
+ availabilityZones?: number | undefined;
1798
+ /**
1799
+ * VPC/VNet CIDR block. If not specified, auto-generated from stack ID
1800
+ *
1801
+ * @remarks
1802
+ * to reduce conflicts (e.g., "10.{hash}.0.0/16").
1803
+ */
1804
+ cidr?: string | null | undefined;
1805
+ type: TargetDeploymentTypeCreate;
1806
+ };
1807
+
1808
+ export const TargetDeploymentTypeUseDefault = {
1809
+ UseDefault: "use-default",
1810
+ } as const;
1811
+ export type TargetDeploymentTypeUseDefault = ClosedEnum<
1812
+ typeof TargetDeploymentTypeUseDefault
1813
+ >;
1814
+
1815
+ export type TargetDeploymentNetworkUseDefault = {
1816
+ type: TargetDeploymentTypeUseDefault;
1817
+ };
1818
+
1819
+ export type TargetDeploymentNetworkUnion =
1820
+ | TargetDeploymentNetworkByoVpcAws
1821
+ | TargetDeploymentNetworkByoVpcGcp
1822
+ | TargetDeploymentNetworkByoVnetAzure
1823
+ | TargetDeploymentNetworkUseDefault
1824
+ | TargetDeploymentNetworkCreate
1825
+ | string;
1826
+
1827
+ /**
1828
+ * Whether setup remains a separate administrator operation.
1829
+ */
1830
+ export const TargetDeploymentSetupManagement = {
1831
+ Manual: "manual",
1832
+ Automatic: "automatic",
1833
+ } as const;
1834
+ /**
1835
+ * Whether setup remains a separate administrator operation.
1836
+ */
1837
+ export type TargetDeploymentSetupManagement = ClosedEnum<
1838
+ typeof TargetDeploymentSetupManagement
1839
+ >;
1840
+
1841
+ /**
1842
+ * How telemetry (logs, metrics, traces) is handled.
1843
+ */
1844
+ export const TargetDeploymentTelemetry = {
1845
+ Off: "off",
1846
+ Auto: "auto",
1847
+ ApprovalRequired: "approval-required",
1848
+ } as const;
1849
+ /**
1850
+ * How telemetry (logs, metrics, traces) is handled.
1851
+ */
1852
+ export type TargetDeploymentTelemetry = ClosedEnum<
1853
+ typeof TargetDeploymentTelemetry
1854
+ >;
1855
+
1856
+ /**
1857
+ * How updates are delivered to the deployment.
1858
+ */
1859
+ export const TargetDeploymentUpdates = {
1860
+ Auto: "auto",
1861
+ ApprovalRequired: "approval-required",
1862
+ } as const;
1863
+ /**
1864
+ * How updates are delivered to the deployment.
1865
+ */
1866
+ export type TargetDeploymentUpdates = ClosedEnum<
1867
+ typeof TargetDeploymentUpdates
1868
+ >;
1869
+
1870
+ /**
1871
+ * User-customizable deployment settings specified at deploy time.
1872
+ *
1873
+ * @remarks
1874
+ *
1875
+ * These settings are provided by the customer via CloudFormation parameters,
1876
+ * Terraform attributes, CLI flags, or Helm values. They customize how the
1877
+ * deployment runs and what capabilities are enabled.
1878
+ *
1879
+ * **Key distinction**: StackSettings is user-customizable, while ManagementConfig
1880
+ * is platform-derived (from the Manager's ServiceAccount).
1881
+ */
1882
+ export type TargetDeploymentStackSettings = {
1883
+ compute?: TargetDeploymentCompute | string | null | undefined;
1884
+ /**
1885
+ * Deployment model: how updates are delivered to the remote environment.
1886
+ */
1887
+ deploymentModel?: TargetDeploymentDeploymentModel | undefined;
1888
+ domains?: TargetDeploymentDomains | string | null | undefined;
1889
+ /**
1890
+ * Reachability of the deployment's public endpoints, fixed at setup.
1891
+ */
1892
+ endpointAccess?: TargetDeploymentEndpointAccess | undefined;
1893
+ externalBindings?: { [k: string]: ExternalBindingUnion } | null | undefined;
1894
+ /**
1895
+ * How heartbeat health checks are handled.
1896
+ */
1897
+ heartbeats?: TargetDeploymentHeartbeats | undefined;
1898
+ kubernetes?: TargetDeploymentKubernetes | string | null | undefined;
1899
+ network?:
1900
+ | TargetDeploymentNetworkByoVpcAws
1901
+ | TargetDeploymentNetworkByoVpcGcp
1902
+ | TargetDeploymentNetworkByoVnetAzure
1903
+ | TargetDeploymentNetworkUseDefault
1904
+ | TargetDeploymentNetworkCreate
1905
+ | string
1906
+ | null
1907
+ | undefined;
1908
+ /**
1909
+ * Exact externally managed endpoint URLs, keyed by resource ID and endpoint name.
1910
+ *
1911
+ * @remarks
1912
+ *
1913
+ * This is intended for adopted Machines deployments whose DNS and certificates remain
1914
+ * customer-owned. The platform passes these URLs to the runtime without creating or
1915
+ * replacing DNS records or certificates.
1916
+ */
1917
+ publicEndpoints?: { [k: string]: { [k: string]: string } } | null | undefined;
1918
+ /**
1919
+ * Provider quota identities whose preflight failures become visible warnings
1920
+ *
1921
+ * @remarks
1922
+ * for this deployment. Checks still run; deploy-time provider limits still apply.
1923
+ * Unknown identities are rejected. An empty list restores normal blocking.
1924
+ */
1925
+ quotaWarningOverrides?: Array<string> | undefined;
1926
+ /**
1927
+ * Whether setup remains a separate administrator operation.
1928
+ */
1929
+ setupManagement?: TargetDeploymentSetupManagement | undefined;
1930
+ /**
1931
+ * How telemetry (logs, metrics, traces) is handled.
1932
+ */
1933
+ telemetry?: TargetDeploymentTelemetry | undefined;
1934
+ /**
1935
+ * How updates are delivered to the deployment.
1936
+ */
1937
+ updates?: TargetDeploymentUpdates | undefined;
1938
+ };
1939
+
1940
+ /**
1941
+ * Replace one replica's persistent volume with a new volume made from a snapshot.
1942
+ *
1943
+ * @remarks
1944
+ *
1945
+ * The controller stops the replica, snapshots the volume it is about to
1946
+ * replace (so the restore can be undone), creates the new volume in the same
1947
+ * zone, starts the replica on it, and deletes the replaced volume.
1948
+ */
1949
+ export type TargetDeploymentVolumeRestore = {
1950
+ /**
1951
+ * Replica ordinal whose volume is replaced
1952
+ */
1953
+ ordinal: number;
1954
+ /**
1955
+ * Unique ID of this request. A controller performs each request once.
1956
+ */
1957
+ requestId: string;
1958
+ /**
1959
+ * ID of the container resource that owns the volume
1960
+ */
1961
+ resourceId: string;
1962
+ /**
1963
+ * Cloud ID of the snapshot to restore: an EBS snapshot ID, a Compute
1964
+ *
1965
+ * @remarks
1966
+ * Engine snapshot name, or an Azure snapshot resource ID
1967
+ */
1968
+ snapshotId: string;
1969
+ };
1970
+
1971
+ /** @internal */
1972
+ export const TargetDeploymentBasePlatformEnum$inboundSchema: z.ZodEnum<
1973
+ typeof TargetDeploymentBasePlatformEnum
1974
+ > = z.enum(TargetDeploymentBasePlatformEnum);
1975
+
1976
+ /** @internal */
1977
+ export const TargetDeploymentBasePlatformUnion$inboundSchema: z.ZodType<
1978
+ TargetDeploymentBasePlatformUnion,
1979
+ unknown
1980
+ > = z.union([TargetDeploymentBasePlatformEnum$inboundSchema, z.string()]);
1981
+
1982
+ export function targetDeploymentBasePlatformUnionFromJSON(
1983
+ jsonString: string,
1984
+ ): SafeParseResult<TargetDeploymentBasePlatformUnion, SDKValidationError> {
1985
+ return safeParse(
1986
+ jsonString,
1987
+ (x) => TargetDeploymentBasePlatformUnion$inboundSchema.parse(JSON.parse(x)),
1988
+ `Failed to parse 'TargetDeploymentBasePlatformUnion' from JSON`,
1989
+ );
1990
+ }
1991
+
1992
+ /** @internal */
1993
+ export const TargetDeploymentClusters$inboundSchema: z.ZodType<
1994
+ TargetDeploymentClusters,
1995
+ unknown
1996
+ > = z.object({
1997
+ clusterId: z.string(),
1998
+ managementToken: z.string(),
1999
+ });
2000
+
2001
+ export function targetDeploymentClustersFromJSON(
2002
+ jsonString: string,
2003
+ ): SafeParseResult<TargetDeploymentClusters, SDKValidationError> {
2004
+ return safeParse(
2005
+ jsonString,
2006
+ (x) => TargetDeploymentClusters$inboundSchema.parse(JSON.parse(x)),
2007
+ `Failed to parse 'TargetDeploymentClusters' from JSON`,
2008
+ );
2009
+ }
2010
+
2011
+ /** @internal */
2012
+ export const TargetDeploymentHorizonMachineImageAws$inboundSchema: z.ZodType<
2013
+ TargetDeploymentHorizonMachineImageAws,
2014
+ unknown
2015
+ > = z.object({
2016
+ amis: z.record(z.string(), z.record(z.string(), z.string())),
2017
+ });
2018
+
2019
+ export function targetDeploymentHorizonMachineImageAwsFromJSON(
2020
+ jsonString: string,
2021
+ ): SafeParseResult<TargetDeploymentHorizonMachineImageAws, SDKValidationError> {
2022
+ return safeParse(
2023
+ jsonString,
2024
+ (x) =>
2025
+ TargetDeploymentHorizonMachineImageAws$inboundSchema.parse(JSON.parse(x)),
2026
+ `Failed to parse 'TargetDeploymentHorizonMachineImageAws' from JSON`,
2027
+ );
2028
+ }
2029
+
2030
+ /** @internal */
2031
+ export const TargetDeploymentHorizonMachineImageAwsUnion$inboundSchema:
2032
+ z.ZodType<TargetDeploymentHorizonMachineImageAwsUnion, unknown> = z.union([
2033
+ z.lazy(() => TargetDeploymentHorizonMachineImageAws$inboundSchema),
2034
+ z.string(),
2035
+ ]);
2036
+
2037
+ export function targetDeploymentHorizonMachineImageAwsUnionFromJSON(
2038
+ jsonString: string,
2039
+ ): SafeParseResult<
2040
+ TargetDeploymentHorizonMachineImageAwsUnion,
2041
+ SDKValidationError
2042
+ > {
2043
+ return safeParse(
2044
+ jsonString,
2045
+ (x) =>
2046
+ TargetDeploymentHorizonMachineImageAwsUnion$inboundSchema.parse(
2047
+ JSON.parse(x),
2048
+ ),
2049
+ `Failed to parse 'TargetDeploymentHorizonMachineImageAwsUnion' from JSON`,
2050
+ );
2051
+ }
2052
+
2053
+ /** @internal */
2054
+ export const TargetDeploymentAzureImages$inboundSchema: z.ZodType<
2055
+ TargetDeploymentAzureImages,
2056
+ unknown
2057
+ > = z.object({
2058
+ imageVersionId: z.string(),
2059
+ });
2060
+
2061
+ export function targetDeploymentAzureImagesFromJSON(
2062
+ jsonString: string,
2063
+ ): SafeParseResult<TargetDeploymentAzureImages, SDKValidationError> {
2064
+ return safeParse(
2065
+ jsonString,
2066
+ (x) => TargetDeploymentAzureImages$inboundSchema.parse(JSON.parse(x)),
2067
+ `Failed to parse 'TargetDeploymentAzureImages' from JSON`,
2068
+ );
2069
+ }
2070
+
2071
+ /** @internal */
2072
+ export const HorizonMachineImageAzureConfig$inboundSchema: z.ZodType<
2073
+ HorizonMachineImageAzureConfig,
2074
+ unknown
2075
+ > = z.object({
2076
+ images: z.record(
2077
+ z.string(),
2078
+ z.lazy(() => TargetDeploymentAzureImages$inboundSchema),
2079
+ ),
2080
+ });
2081
+
2082
+ export function horizonMachineImageAzureConfigFromJSON(
2083
+ jsonString: string,
2084
+ ): SafeParseResult<HorizonMachineImageAzureConfig, SDKValidationError> {
2085
+ return safeParse(
2086
+ jsonString,
2087
+ (x) => HorizonMachineImageAzureConfig$inboundSchema.parse(JSON.parse(x)),
2088
+ `Failed to parse 'HorizonMachineImageAzureConfig' from JSON`,
2089
+ );
2090
+ }
2091
+
2092
+ /** @internal */
2093
+ export const HorizonMachineImageConfigAzureUnion$inboundSchema: z.ZodType<
2094
+ HorizonMachineImageConfigAzureUnion,
2095
+ unknown
2096
+ > = z.union([
2097
+ z.lazy(() => HorizonMachineImageAzureConfig$inboundSchema),
2098
+ z.string(),
2099
+ ]);
2100
+
2101
+ export function horizonMachineImageConfigAzureUnionFromJSON(
2102
+ jsonString: string,
2103
+ ): SafeParseResult<HorizonMachineImageConfigAzureUnion, SDKValidationError> {
2104
+ return safeParse(
2105
+ jsonString,
2106
+ (x) =>
2107
+ HorizonMachineImageConfigAzureUnion$inboundSchema.parse(JSON.parse(x)),
2108
+ `Failed to parse 'HorizonMachineImageConfigAzureUnion' from JSON`,
2109
+ );
2110
+ }
2111
+
2112
+ /** @internal */
2113
+ export const TargetDeploymentBaseImage$inboundSchema: z.ZodType<
2114
+ TargetDeploymentBaseImage,
2115
+ unknown
2116
+ > = z.object({
2117
+ name: z.string(),
2118
+ version: z.string(),
2119
+ });
2120
+
2121
+ export function targetDeploymentBaseImageFromJSON(
2122
+ jsonString: string,
2123
+ ): SafeParseResult<TargetDeploymentBaseImage, SDKValidationError> {
2124
+ return safeParse(
2125
+ jsonString,
2126
+ (x) => TargetDeploymentBaseImage$inboundSchema.parse(JSON.parse(x)),
2127
+ `Failed to parse 'TargetDeploymentBaseImage' from JSON`,
2128
+ );
2129
+ }
2130
+
2131
+ /** @internal */
2132
+ export const TargetDeploymentGcpImages$inboundSchema: z.ZodType<
2133
+ TargetDeploymentGcpImages,
2134
+ unknown
2135
+ > = z.object({
2136
+ sourceImage: z.string(),
2137
+ });
2138
+
2139
+ export function targetDeploymentGcpImagesFromJSON(
2140
+ jsonString: string,
2141
+ ): SafeParseResult<TargetDeploymentGcpImages, SDKValidationError> {
2142
+ return safeParse(
2143
+ jsonString,
2144
+ (x) => TargetDeploymentGcpImages$inboundSchema.parse(JSON.parse(x)),
2145
+ `Failed to parse 'TargetDeploymentGcpImages' from JSON`,
2146
+ );
2147
+ }
2148
+
2149
+ /** @internal */
2150
+ export const HorizonMachineImageGcpConfig$inboundSchema: z.ZodType<
2151
+ HorizonMachineImageGcpConfig,
2152
+ unknown
2153
+ > = z.object({
2154
+ images: z.record(
2155
+ z.string(),
2156
+ z.lazy(() => TargetDeploymentGcpImages$inboundSchema),
2157
+ ),
2158
+ });
2159
+
2160
+ export function horizonMachineImageGcpConfigFromJSON(
2161
+ jsonString: string,
2162
+ ): SafeParseResult<HorizonMachineImageGcpConfig, SDKValidationError> {
2163
+ return safeParse(
2164
+ jsonString,
2165
+ (x) => HorizonMachineImageGcpConfig$inboundSchema.parse(JSON.parse(x)),
2166
+ `Failed to parse 'HorizonMachineImageGcpConfig' from JSON`,
2167
+ );
2168
+ }
2169
+
2170
+ /** @internal */
2171
+ export const HorizonMachineImageConfigGcpUnion$inboundSchema: z.ZodType<
2172
+ HorizonMachineImageConfigGcpUnion,
2173
+ unknown
2174
+ > = z.union([
2175
+ z.lazy(() => HorizonMachineImageGcpConfig$inboundSchema),
2176
+ z.string(),
2177
+ ]);
2178
+
2179
+ export function horizonMachineImageConfigGcpUnionFromJSON(
2180
+ jsonString: string,
2181
+ ): SafeParseResult<HorizonMachineImageConfigGcpUnion, SDKValidationError> {
2182
+ return safeParse(
2183
+ jsonString,
2184
+ (x) => HorizonMachineImageConfigGcpUnion$inboundSchema.parse(JSON.parse(x)),
2185
+ `Failed to parse 'HorizonMachineImageConfigGcpUnion' from JSON`,
2186
+ );
2187
+ }
2188
+
2189
+ /** @internal */
2190
+ export const TargetDeploymentHorizondArtifacts$inboundSchema: z.ZodType<
2191
+ TargetDeploymentHorizondArtifacts,
2192
+ unknown
2193
+ > = z.object({
2194
+ runtimeIsolationGeneration: z.int().optional(),
2195
+ sha256: z.string(),
2196
+ url: z.string(),
2197
+ });
2198
+
2199
+ export function targetDeploymentHorizondArtifactsFromJSON(
2200
+ jsonString: string,
2201
+ ): SafeParseResult<TargetDeploymentHorizondArtifacts, SDKValidationError> {
2202
+ return safeParse(
2203
+ jsonString,
2204
+ (x) => TargetDeploymentHorizondArtifacts$inboundSchema.parse(JSON.parse(x)),
2205
+ `Failed to parse 'TargetDeploymentHorizondArtifacts' from JSON`,
2206
+ );
2207
+ }
2208
+
2209
+ /** @internal */
2210
+ export const TargetDeploymentHorizonMachineImage$inboundSchema: z.ZodType<
2211
+ TargetDeploymentHorizonMachineImage,
2212
+ unknown
2213
+ > = z.object({
2214
+ aws: z.nullable(
2215
+ z.union([
2216
+ z.lazy(() => TargetDeploymentHorizonMachineImageAws$inboundSchema),
2217
+ z.string(),
2218
+ ]),
2219
+ ).optional(),
2220
+ azure: z.nullable(
2221
+ z.union([
2222
+ z.lazy(() => HorizonMachineImageAzureConfig$inboundSchema),
2223
+ z.string(),
2224
+ ]),
2225
+ ).optional(),
2226
+ baseImage: z.lazy(() => TargetDeploymentBaseImage$inboundSchema),
2227
+ channel: z.string(),
2228
+ createdAt: z.string(),
2229
+ gcp: z.nullable(
2230
+ z.union([
2231
+ z.lazy(() => HorizonMachineImageGcpConfig$inboundSchema),
2232
+ z.string(),
2233
+ ]),
2234
+ ).optional(),
2235
+ gitSha: z.string(),
2236
+ horizondArtifacts: z.record(
2237
+ z.string(),
2238
+ z.lazy(() => TargetDeploymentHorizondArtifacts$inboundSchema),
2239
+ ),
2240
+ horizondVersion: z.string(),
2241
+ machineImageVersion: z.string(),
2242
+ runtimeIsolationGeneration: z.int().optional(),
2243
+ });
2244
+
2245
+ export function targetDeploymentHorizonMachineImageFromJSON(
2246
+ jsonString: string,
2247
+ ): SafeParseResult<TargetDeploymentHorizonMachineImage, SDKValidationError> {
2248
+ return safeParse(
2249
+ jsonString,
2250
+ (x) =>
2251
+ TargetDeploymentHorizonMachineImage$inboundSchema.parse(JSON.parse(x)),
2252
+ `Failed to parse 'TargetDeploymentHorizonMachineImage' from JSON`,
2253
+ );
2254
+ }
2255
+
2256
+ /** @internal */
2257
+ export const TargetDeploymentHorizonMachineImageUnion$inboundSchema: z.ZodType<
2258
+ TargetDeploymentHorizonMachineImageUnion,
2259
+ unknown
2260
+ > = z.union([
2261
+ z.lazy(() => TargetDeploymentHorizonMachineImage$inboundSchema),
2262
+ z.string(),
2263
+ ]);
2264
+
2265
+ export function targetDeploymentHorizonMachineImageUnionFromJSON(
2266
+ jsonString: string,
2267
+ ): SafeParseResult<
2268
+ TargetDeploymentHorizonMachineImageUnion,
2269
+ SDKValidationError
2270
+ > {
2271
+ return safeParse(
2272
+ jsonString,
2273
+ (x) =>
2274
+ TargetDeploymentHorizonMachineImageUnion$inboundSchema.parse(
2275
+ JSON.parse(x),
2276
+ ),
2277
+ `Failed to parse 'TargetDeploymentHorizonMachineImageUnion' from JSON`,
2278
+ );
2279
+ }
2280
+
2281
+ /** @internal */
2282
+ export const TargetDeploymentComputeBackendType$inboundSchema: z.ZodEnum<
2283
+ typeof TargetDeploymentComputeBackendType
2284
+ > = z.enum(TargetDeploymentComputeBackendType);
2285
+
2286
+ /** @internal */
2287
+ export const TargetDeploymentComputeBackendHorizon$inboundSchema: z.ZodType<
2288
+ TargetDeploymentComputeBackendHorizon,
2289
+ unknown
2290
+ > = z.object({
2291
+ clusters: z.record(
2292
+ z.string(),
2293
+ z.lazy(() => TargetDeploymentClusters$inboundSchema),
2294
+ ),
2295
+ horizonMachineImage: z.nullable(
2296
+ z.union([
2297
+ z.lazy(() => TargetDeploymentHorizonMachineImage$inboundSchema),
2298
+ z.string(),
2299
+ ]),
2300
+ ).optional(),
2301
+ url: z.string(),
2302
+ type: TargetDeploymentComputeBackendType$inboundSchema,
2303
+ });
2304
+
2305
+ export function targetDeploymentComputeBackendHorizonFromJSON(
2306
+ jsonString: string,
2307
+ ): SafeParseResult<TargetDeploymentComputeBackendHorizon, SDKValidationError> {
2308
+ return safeParse(
2309
+ jsonString,
2310
+ (x) =>
2311
+ TargetDeploymentComputeBackendHorizon$inboundSchema.parse(JSON.parse(x)),
2312
+ `Failed to parse 'TargetDeploymentComputeBackendHorizon' from JSON`,
2313
+ );
2314
+ }
2315
+
2316
+ /** @internal */
2317
+ export const TargetDeploymentComputeBackendUnion$inboundSchema: z.ZodType<
2318
+ TargetDeploymentComputeBackendUnion,
2319
+ unknown
2320
+ > = z.union([
2321
+ z.lazy(() => TargetDeploymentComputeBackendHorizon$inboundSchema),
2322
+ z.string(),
2323
+ ]);
2324
+
2325
+ export function targetDeploymentComputeBackendUnionFromJSON(
2326
+ jsonString: string,
2327
+ ): SafeParseResult<TargetDeploymentComputeBackendUnion, SDKValidationError> {
2328
+ return safeParse(
2329
+ jsonString,
2330
+ (x) =>
2331
+ TargetDeploymentComputeBackendUnion$inboundSchema.parse(JSON.parse(x)),
2332
+ `Failed to parse 'TargetDeploymentComputeBackendUnion' from JSON`,
2333
+ );
2334
+ }
2335
+
2336
+ /** @internal */
2337
+ export const TargetDeploymentAliasCertificateStatus$inboundSchema: z.ZodEnum<
2338
+ typeof TargetDeploymentAliasCertificateStatus
2339
+ > = z.enum(TargetDeploymentAliasCertificateStatus);
2340
+
2341
+ /** @internal */
2342
+ export const TargetDeploymentAliasDnsStatus$inboundSchema: z.ZodEnum<
2343
+ typeof TargetDeploymentAliasDnsStatus
2344
+ > = z.enum(TargetDeploymentAliasDnsStatus);
2345
+
2346
+ /** @internal */
2347
+ export const TargetDeploymentAlias$inboundSchema: z.ZodType<
2348
+ TargetDeploymentAlias,
2349
+ unknown
2350
+ > = z.object({
2351
+ certificateChain: z.nullable(z.string()).optional(),
2352
+ certificateId: z.string(),
2353
+ certificateStatus: TargetDeploymentAliasCertificateStatus$inboundSchema,
2354
+ dnsError: z.nullable(z.string()).optional(),
2355
+ dnsStatus: TargetDeploymentAliasDnsStatus$inboundSchema,
2356
+ fqdn: z.string(),
2357
+ issuedAt: z.nullable(z.string()).optional(),
2358
+ privateKey: z.nullable(z.string()).optional(),
2359
+ });
2360
+
2361
+ export function targetDeploymentAliasFromJSON(
2362
+ jsonString: string,
2363
+ ): SafeParseResult<TargetDeploymentAlias, SDKValidationError> {
2364
+ return safeParse(
2365
+ jsonString,
2366
+ (x) => TargetDeploymentAlias$inboundSchema.parse(JSON.parse(x)),
2367
+ `Failed to parse 'TargetDeploymentAlias' from JSON`,
2368
+ );
2369
+ }
2370
+
2371
+ /** @internal */
2372
+ export const TargetDeploymentCertificateStatus$inboundSchema: z.ZodEnum<
2373
+ typeof TargetDeploymentCertificateStatus
2374
+ > = z.enum(TargetDeploymentCertificateStatus);
2375
+
2376
+ /** @internal */
2377
+ export const TargetDeploymentDnsStatus$inboundSchema: z.ZodEnum<
2378
+ typeof TargetDeploymentDnsStatus
2379
+ > = z.enum(TargetDeploymentDnsStatus);
2380
+
2381
+ /** @internal */
2382
+ export const TargetDeploymentEndpointsCertificateStatus$inboundSchema:
2383
+ z.ZodEnum<typeof TargetDeploymentEndpointsCertificateStatus> = z.enum(
2384
+ TargetDeploymentEndpointsCertificateStatus,
2385
+ );
2386
+
2387
+ /** @internal */
2388
+ export const TargetDeploymentEndpointsDnsStatus$inboundSchema: z.ZodEnum<
2389
+ typeof TargetDeploymentEndpointsDnsStatus
2390
+ > = z.enum(TargetDeploymentEndpointsDnsStatus);
2391
+
2392
+ /** @internal */
2393
+ export const TargetDeploymentEndpoints$inboundSchema: z.ZodType<
2394
+ TargetDeploymentEndpoints,
2395
+ unknown
2396
+ > = z.object({
2397
+ certificateChain: z.nullable(z.string()).optional(),
2398
+ certificateId: z.string(),
2399
+ certificateStatus: TargetDeploymentEndpointsCertificateStatus$inboundSchema,
2400
+ dnsError: z.nullable(z.string()).optional(),
2401
+ dnsStatus: TargetDeploymentEndpointsDnsStatus$inboundSchema,
2402
+ fqdn: z.string(),
2403
+ issuedAt: z.nullable(z.string()).optional(),
2404
+ privateKey: z.nullable(z.string()).optional(),
2405
+ });
2406
+
2407
+ export function targetDeploymentEndpointsFromJSON(
2408
+ jsonString: string,
2409
+ ): SafeParseResult<TargetDeploymentEndpoints, SDKValidationError> {
2410
+ return safeParse(
2411
+ jsonString,
2412
+ (x) => TargetDeploymentEndpoints$inboundSchema.parse(JSON.parse(x)),
2413
+ `Failed to parse 'TargetDeploymentEndpoints' from JSON`,
2414
+ );
2415
+ }
2416
+
2417
+ /** @internal */
2418
+ export const ConfigResources$inboundSchema: z.ZodType<
2419
+ ConfigResources,
2420
+ unknown
2421
+ > = z.object({
2422
+ aliases: z.array(z.lazy(() => TargetDeploymentAlias$inboundSchema))
2423
+ .optional(),
2424
+ certificateChain: z.nullable(z.string()).optional(),
2425
+ certificateId: z.string(),
2426
+ certificateStatus: TargetDeploymentCertificateStatus$inboundSchema,
2427
+ dnsError: z.nullable(z.string()).optional(),
2428
+ dnsStatus: TargetDeploymentDnsStatus$inboundSchema,
2429
+ endpoints: z.record(
2430
+ z.string(),
2431
+ z.lazy(() => TargetDeploymentEndpoints$inboundSchema),
2432
+ ).optional(),
2433
+ fqdn: z.string(),
2434
+ issuedAt: z.nullable(z.string()).optional(),
2435
+ privateKey: z.nullable(z.string()).optional(),
2436
+ });
2437
+
2438
+ export function configResourcesFromJSON(
2439
+ jsonString: string,
2440
+ ): SafeParseResult<ConfigResources, SDKValidationError> {
2441
+ return safeParse(
2442
+ jsonString,
2443
+ (x) => ConfigResources$inboundSchema.parse(JSON.parse(x)),
2444
+ `Failed to parse 'ConfigResources' from JSON`,
2445
+ );
2446
+ }
2447
+
2448
+ /** @internal */
2449
+ export const TargetDeploymentDomainMetadata$inboundSchema: z.ZodType<
2450
+ TargetDeploymentDomainMetadata,
2451
+ unknown
2452
+ > = z.object({
2453
+ baseDomain: z.string(),
2454
+ hostedZoneId: z.string(),
2455
+ publicSubdomain: z.string(),
2456
+ resources: z.record(z.string(), z.lazy(() => ConfigResources$inboundSchema)),
2457
+ });
2458
+
2459
+ export function targetDeploymentDomainMetadataFromJSON(
2460
+ jsonString: string,
2461
+ ): SafeParseResult<TargetDeploymentDomainMetadata, SDKValidationError> {
2462
+ return safeParse(
2463
+ jsonString,
2464
+ (x) => TargetDeploymentDomainMetadata$inboundSchema.parse(JSON.parse(x)),
2465
+ `Failed to parse 'TargetDeploymentDomainMetadata' from JSON`,
2466
+ );
2467
+ }
2468
+
2469
+ /** @internal */
2470
+ export const TargetDeploymentDomainMetadataUnion$inboundSchema: z.ZodType<
2471
+ TargetDeploymentDomainMetadataUnion,
2472
+ unknown
2473
+ > = z.union([
2474
+ z.lazy(() => TargetDeploymentDomainMetadata$inboundSchema),
2475
+ z.string(),
2476
+ ]);
2477
+
2478
+ export function targetDeploymentDomainMetadataUnionFromJSON(
2479
+ jsonString: string,
2480
+ ): SafeParseResult<TargetDeploymentDomainMetadataUnion, SDKValidationError> {
2481
+ return safeParse(
2482
+ jsonString,
2483
+ (x) =>
2484
+ TargetDeploymentDomainMetadataUnion$inboundSchema.parse(JSON.parse(x)),
2485
+ `Failed to parse 'TargetDeploymentDomainMetadataUnion' from JSON`,
2486
+ );
2487
+ }
2488
+
2489
+ /** @internal */
2490
+ export const TargetDeploymentEnvironmentVariablesType$inboundSchema: z.ZodEnum<
2491
+ typeof TargetDeploymentEnvironmentVariablesType
2492
+ > = z.enum(TargetDeploymentEnvironmentVariablesType);
2493
+
2494
+ /** @internal */
2495
+ export const TargetDeploymentVariable$inboundSchema: z.ZodType<
2496
+ TargetDeploymentVariable,
2497
+ unknown
2498
+ > = z.object({
2499
+ name: z.string(),
2500
+ targetResources: z.nullable(z.array(z.string())).optional(),
2501
+ type: TargetDeploymentEnvironmentVariablesType$inboundSchema,
2502
+ value: z.string(),
2503
+ });
2504
+
2505
+ export function targetDeploymentVariableFromJSON(
2506
+ jsonString: string,
2507
+ ): SafeParseResult<TargetDeploymentVariable, SDKValidationError> {
2508
+ return safeParse(
2509
+ jsonString,
2510
+ (x) => TargetDeploymentVariable$inboundSchema.parse(JSON.parse(x)),
2511
+ `Failed to parse 'TargetDeploymentVariable' from JSON`,
2512
+ );
2513
+ }
2514
+
2515
+ /** @internal */
2516
+ export const TargetDeploymentEnvironmentVariables$inboundSchema: z.ZodType<
2517
+ TargetDeploymentEnvironmentVariables,
2518
+ unknown
2519
+ > = z.object({
2520
+ createdAt: z.string(),
2521
+ hash: z.string(),
2522
+ variables: z.array(z.lazy(() => TargetDeploymentVariable$inboundSchema)),
2523
+ });
2524
+
2525
+ export function targetDeploymentEnvironmentVariablesFromJSON(
2526
+ jsonString: string,
2527
+ ): SafeParseResult<TargetDeploymentEnvironmentVariables, SDKValidationError> {
2528
+ return safeParse(
2529
+ jsonString,
2530
+ (x) =>
2531
+ TargetDeploymentEnvironmentVariables$inboundSchema.parse(JSON.parse(x)),
2532
+ `Failed to parse 'TargetDeploymentEnvironmentVariables' from JSON`,
2533
+ );
2534
+ }
2535
+
2536
+ /** @internal */
2537
+ export const ConfigPlatformKubernetes$inboundSchema: z.ZodEnum<
2538
+ typeof ConfigPlatformKubernetes
2539
+ > = z.enum(ConfigPlatformKubernetes);
2540
+
2541
+ /** @internal */
2542
+ export const TargetDeploymentManagementConfigKubernetes$inboundSchema:
2543
+ z.ZodType<TargetDeploymentManagementConfigKubernetes, unknown> = z.object({
2544
+ platform: ConfigPlatformKubernetes$inboundSchema,
2545
+ });
2546
+
2547
+ export function targetDeploymentManagementConfigKubernetesFromJSON(
2548
+ jsonString: string,
2549
+ ): SafeParseResult<
2550
+ TargetDeploymentManagementConfigKubernetes,
2551
+ SDKValidationError
2552
+ > {
2553
+ return safeParse(
2554
+ jsonString,
2555
+ (x) =>
2556
+ TargetDeploymentManagementConfigKubernetes$inboundSchema.parse(
2557
+ JSON.parse(x),
2558
+ ),
2559
+ `Failed to parse 'TargetDeploymentManagementConfigKubernetes' from JSON`,
2560
+ );
2561
+ }
2562
+
2563
+ /** @internal */
2564
+ export const ConfigPlatformAzure$inboundSchema: z.ZodEnum<
2565
+ typeof ConfigPlatformAzure
2566
+ > = z.enum(ConfigPlatformAzure);
2567
+
2568
+ /** @internal */
2569
+ export const TargetDeploymentManagementConfigAzure$inboundSchema: z.ZodType<
2570
+ TargetDeploymentManagementConfigAzure,
2571
+ unknown
2572
+ > = z.object({
2573
+ managingTenantId: z.string(),
2574
+ oidcIssuer: z.string(),
2575
+ oidcSubject: z.string(),
2576
+ platform: ConfigPlatformAzure$inboundSchema,
2577
+ });
2578
+
2579
+ export function targetDeploymentManagementConfigAzureFromJSON(
2580
+ jsonString: string,
2581
+ ): SafeParseResult<TargetDeploymentManagementConfigAzure, SDKValidationError> {
2582
+ return safeParse(
2583
+ jsonString,
2584
+ (x) =>
2585
+ TargetDeploymentManagementConfigAzure$inboundSchema.parse(JSON.parse(x)),
2586
+ `Failed to parse 'TargetDeploymentManagementConfigAzure' from JSON`,
2587
+ );
2588
+ }
2589
+
2590
+ /** @internal */
2591
+ export const ConfigPlatformGcp$inboundSchema: z.ZodEnum<
2592
+ typeof ConfigPlatformGcp
2593
+ > = z.enum(ConfigPlatformGcp);
2594
+
2595
+ /** @internal */
2596
+ export const TargetDeploymentManagementConfigGcp$inboundSchema: z.ZodType<
2597
+ TargetDeploymentManagementConfigGcp,
2598
+ unknown
2599
+ > = z.object({
2600
+ serviceAccountEmail: z.string(),
2601
+ platform: ConfigPlatformGcp$inboundSchema,
2602
+ });
2603
+
2604
+ export function targetDeploymentManagementConfigGcpFromJSON(
2605
+ jsonString: string,
2606
+ ): SafeParseResult<TargetDeploymentManagementConfigGcp, SDKValidationError> {
2607
+ return safeParse(
2608
+ jsonString,
2609
+ (x) =>
2610
+ TargetDeploymentManagementConfigGcp$inboundSchema.parse(JSON.parse(x)),
2611
+ `Failed to parse 'TargetDeploymentManagementConfigGcp' from JSON`,
2612
+ );
2613
+ }
2614
+
2615
+ /** @internal */
2616
+ export const ConfigPlatformAws$inboundSchema: z.ZodEnum<
2617
+ typeof ConfigPlatformAws
2618
+ > = z.enum(ConfigPlatformAws);
2619
+
2620
+ /** @internal */
2621
+ export const TargetDeploymentManagementConfigAws$inboundSchema: z.ZodType<
2622
+ TargetDeploymentManagementConfigAws,
2623
+ unknown
2624
+ > = z.object({
2625
+ managingRoleArn: z.string(),
2626
+ platform: ConfigPlatformAws$inboundSchema,
2627
+ });
2628
+
2629
+ export function targetDeploymentManagementConfigAwsFromJSON(
2630
+ jsonString: string,
2631
+ ): SafeParseResult<TargetDeploymentManagementConfigAws, SDKValidationError> {
2632
+ return safeParse(
2633
+ jsonString,
2634
+ (x) =>
2635
+ TargetDeploymentManagementConfigAws$inboundSchema.parse(JSON.parse(x)),
2636
+ `Failed to parse 'TargetDeploymentManagementConfigAws' from JSON`,
2637
+ );
2638
+ }
2639
+
2640
+ /** @internal */
2641
+ export const TargetDeploymentManagementConfigUnion$inboundSchema: z.ZodType<
2642
+ TargetDeploymentManagementConfigUnion,
2643
+ unknown
2644
+ > = z.union([
2645
+ z.lazy(() => TargetDeploymentManagementConfigAzure$inboundSchema),
2646
+ z.lazy(() => TargetDeploymentManagementConfigAws$inboundSchema),
2647
+ z.lazy(() => TargetDeploymentManagementConfigGcp$inboundSchema),
2648
+ z.lazy(() => TargetDeploymentManagementConfigKubernetes$inboundSchema),
2649
+ z.string(),
2650
+ ]);
2651
+
2652
+ export function targetDeploymentManagementConfigUnionFromJSON(
2653
+ jsonString: string,
2654
+ ): SafeParseResult<TargetDeploymentManagementConfigUnion, SDKValidationError> {
2655
+ return safeParse(
2656
+ jsonString,
2657
+ (x) =>
2658
+ TargetDeploymentManagementConfigUnion$inboundSchema.parse(JSON.parse(x)),
2659
+ `Failed to parse 'TargetDeploymentManagementConfigUnion' from JSON`,
2660
+ );
2661
+ }
2662
+
2663
+ /** @internal */
2664
+ export const TargetDeploymentMonitoring$inboundSchema: z.ZodType<
2665
+ TargetDeploymentMonitoring,
2666
+ unknown
2667
+ > = z.object({
2668
+ logsAuthHeader: z.string(),
2669
+ logsEndpoint: z.string(),
2670
+ metricsAuthHeader: z.nullable(z.string()).optional(),
2671
+ metricsEndpoint: z.nullable(z.string()).optional(),
2672
+ resourceAttributes: z.record(z.string(), z.string()).optional(),
2673
+ });
2674
+
2675
+ export function targetDeploymentMonitoringFromJSON(
2676
+ jsonString: string,
2677
+ ): SafeParseResult<TargetDeploymentMonitoring, SDKValidationError> {
2678
+ return safeParse(
2679
+ jsonString,
2680
+ (x) => TargetDeploymentMonitoring$inboundSchema.parse(JSON.parse(x)),
2681
+ `Failed to parse 'TargetDeploymentMonitoring' from JSON`,
2682
+ );
2683
+ }
2684
+
2685
+ /** @internal */
2686
+ export const TargetDeploymentMonitoringUnion$inboundSchema: z.ZodType<
2687
+ TargetDeploymentMonitoringUnion,
2688
+ unknown
2689
+ > = z.union([
2690
+ z.lazy(() => TargetDeploymentMonitoring$inboundSchema),
2691
+ z.string(),
2692
+ ]);
2693
+
2694
+ export function targetDeploymentMonitoringUnionFromJSON(
2695
+ jsonString: string,
2696
+ ): SafeParseResult<TargetDeploymentMonitoringUnion, SDKValidationError> {
2697
+ return safeParse(
2698
+ jsonString,
2699
+ (x) => TargetDeploymentMonitoringUnion$inboundSchema.parse(JSON.parse(x)),
2700
+ `Failed to parse 'TargetDeploymentMonitoringUnion' from JSON`,
2701
+ );
2702
+ }
2703
+
2704
+ /** @internal */
2705
+ export const TargetDeploymentContainers$inboundSchema: z.ZodType<
2706
+ TargetDeploymentContainers,
2707
+ unknown
2708
+ > = z.object({
2709
+ cpu: z.nullable(z.number()).optional(),
2710
+ memory: z.nullable(z.string()).optional(),
2711
+ volumeSizeGib: z.nullable(z.int()).optional(),
2712
+ });
2713
+
2714
+ export function targetDeploymentContainersFromJSON(
2715
+ jsonString: string,
2716
+ ): SafeParseResult<TargetDeploymentContainers, SDKValidationError> {
2717
+ return safeParse(
2718
+ jsonString,
2719
+ (x) => TargetDeploymentContainers$inboundSchema.parse(JSON.parse(x)),
2720
+ `Failed to parse 'TargetDeploymentContainers' from JSON`,
2721
+ );
2722
+ }
2723
+
2724
+ /** @internal */
2725
+ export const TargetDeploymentFailureDomains2$inboundSchema: z.ZodType<
2726
+ TargetDeploymentFailureDomains2,
2727
+ unknown
2728
+ > = z.object({
2729
+ selectedFailureDomains: z.array(z.string()).optional(),
2730
+ spread: z.int(),
2731
+ });
2732
+
2733
+ export function targetDeploymentFailureDomains2FromJSON(
2734
+ jsonString: string,
2735
+ ): SafeParseResult<TargetDeploymentFailureDomains2, SDKValidationError> {
2736
+ return safeParse(
2737
+ jsonString,
2738
+ (x) => TargetDeploymentFailureDomains2$inboundSchema.parse(JSON.parse(x)),
2739
+ `Failed to parse 'TargetDeploymentFailureDomains2' from JSON`,
2740
+ );
2741
+ }
2742
+
2743
+ /** @internal */
2744
+ export const TargetDeploymentFailureDomainsUnion2$inboundSchema: z.ZodType<
2745
+ TargetDeploymentFailureDomainsUnion2,
2746
+ unknown
2747
+ > = z.union([
2748
+ z.lazy(() => TargetDeploymentFailureDomains2$inboundSchema),
2749
+ z.string(),
2750
+ ]);
2751
+
2752
+ export function targetDeploymentFailureDomainsUnion2FromJSON(
2753
+ jsonString: string,
2754
+ ): SafeParseResult<TargetDeploymentFailureDomainsUnion2, SDKValidationError> {
2755
+ return safeParse(
2756
+ jsonString,
2757
+ (x) =>
2758
+ TargetDeploymentFailureDomainsUnion2$inboundSchema.parse(JSON.parse(x)),
2759
+ `Failed to parse 'TargetDeploymentFailureDomainsUnion2' from JSON`,
2760
+ );
2761
+ }
2762
+
2763
+ /** @internal */
2764
+ export const TargetDeploymentPoolsAutoscale$inboundSchema: z.ZodType<
2765
+ TargetDeploymentPoolsAutoscale,
2766
+ unknown
2767
+ > = z.object({
2768
+ failure_domains: z.nullable(
2769
+ z.union([
2770
+ z.lazy(() => TargetDeploymentFailureDomains2$inboundSchema),
2771
+ z.string(),
2772
+ ]),
2773
+ ).optional(),
2774
+ machine: z.nullable(z.string()).optional(),
2775
+ max: z.int(),
2776
+ min: z.int(),
2777
+ mode: z.literal("autoscale"),
2778
+ }).transform((v) => {
2779
+ return remap$(v, {
2780
+ "failure_domains": "failureDomains",
2781
+ });
2782
+ });
2783
+
2784
+ export function targetDeploymentPoolsAutoscaleFromJSON(
2785
+ jsonString: string,
2786
+ ): SafeParseResult<TargetDeploymentPoolsAutoscale, SDKValidationError> {
2787
+ return safeParse(
2788
+ jsonString,
2789
+ (x) => TargetDeploymentPoolsAutoscale$inboundSchema.parse(JSON.parse(x)),
2790
+ `Failed to parse 'TargetDeploymentPoolsAutoscale' from JSON`,
2791
+ );
2792
+ }
2793
+
2794
+ /** @internal */
2795
+ export const TargetDeploymentFailureDomains1$inboundSchema: z.ZodType<
2796
+ TargetDeploymentFailureDomains1,
2797
+ unknown
2798
+ > = z.object({
2799
+ selectedFailureDomains: z.array(z.string()).optional(),
2800
+ spread: z.int(),
2801
+ });
2802
+
2803
+ export function targetDeploymentFailureDomains1FromJSON(
2804
+ jsonString: string,
2805
+ ): SafeParseResult<TargetDeploymentFailureDomains1, SDKValidationError> {
2806
+ return safeParse(
2807
+ jsonString,
2808
+ (x) => TargetDeploymentFailureDomains1$inboundSchema.parse(JSON.parse(x)),
2809
+ `Failed to parse 'TargetDeploymentFailureDomains1' from JSON`,
2810
+ );
2811
+ }
2812
+
2813
+ /** @internal */
2814
+ export const TargetDeploymentFailureDomainsUnion1$inboundSchema: z.ZodType<
2815
+ TargetDeploymentFailureDomainsUnion1,
2816
+ unknown
2817
+ > = z.union([
2818
+ z.lazy(() => TargetDeploymentFailureDomains1$inboundSchema),
2819
+ z.string(),
2820
+ ]);
2821
+
2822
+ export function targetDeploymentFailureDomainsUnion1FromJSON(
2823
+ jsonString: string,
2824
+ ): SafeParseResult<TargetDeploymentFailureDomainsUnion1, SDKValidationError> {
2825
+ return safeParse(
2826
+ jsonString,
2827
+ (x) =>
2828
+ TargetDeploymentFailureDomainsUnion1$inboundSchema.parse(JSON.parse(x)),
2829
+ `Failed to parse 'TargetDeploymentFailureDomainsUnion1' from JSON`,
2830
+ );
2831
+ }
2832
+
2833
+ /** @internal */
2834
+ export const TargetDeploymentPoolsFixed$inboundSchema: z.ZodType<
2835
+ TargetDeploymentPoolsFixed,
2836
+ unknown
2837
+ > = z.object({
2838
+ failure_domains: z.nullable(
2839
+ z.union([
2840
+ z.lazy(() => TargetDeploymentFailureDomains1$inboundSchema),
2841
+ z.string(),
2842
+ ]),
2843
+ ).optional(),
2844
+ machine: z.nullable(z.string()).optional(),
2845
+ machines: z.int(),
2846
+ mode: z.literal("fixed"),
2847
+ }).transform((v) => {
2848
+ return remap$(v, {
2849
+ "failure_domains": "failureDomains",
2850
+ });
2851
+ });
2852
+
2853
+ export function targetDeploymentPoolsFixedFromJSON(
2854
+ jsonString: string,
2855
+ ): SafeParseResult<TargetDeploymentPoolsFixed, SDKValidationError> {
2856
+ return safeParse(
2857
+ jsonString,
2858
+ (x) => TargetDeploymentPoolsFixed$inboundSchema.parse(JSON.parse(x)),
2859
+ `Failed to parse 'TargetDeploymentPoolsFixed' from JSON`,
2860
+ );
2861
+ }
2862
+
2863
+ /** @internal */
2864
+ export const TargetDeploymentPoolsUnion$inboundSchema: z.ZodType<
2865
+ TargetDeploymentPoolsUnion,
2866
+ unknown
2867
+ > = z.union([
2868
+ z.lazy(() => TargetDeploymentPoolsFixed$inboundSchema),
2869
+ z.lazy(() => TargetDeploymentPoolsAutoscale$inboundSchema),
2870
+ ]);
2871
+
2872
+ export function targetDeploymentPoolsUnionFromJSON(
2873
+ jsonString: string,
2874
+ ): SafeParseResult<TargetDeploymentPoolsUnion, SDKValidationError> {
2875
+ return safeParse(
2876
+ jsonString,
2877
+ (x) => TargetDeploymentPoolsUnion$inboundSchema.parse(JSON.parse(x)),
2878
+ `Failed to parse 'TargetDeploymentPoolsUnion' from JSON`,
2879
+ );
2880
+ }
2881
+
2882
+ /** @internal */
2883
+ export const TargetDeploymentCompute$inboundSchema: z.ZodType<
2884
+ TargetDeploymentCompute,
2885
+ unknown
2886
+ > = z.object({
2887
+ containers: z.record(
2888
+ z.string(),
2889
+ z.lazy(() => TargetDeploymentContainers$inboundSchema),
2890
+ ).optional(),
2891
+ pools: z.record(
2892
+ z.string(),
2893
+ z.union([
2894
+ z.lazy(() => TargetDeploymentPoolsFixed$inboundSchema),
2895
+ z.lazy(() => TargetDeploymentPoolsAutoscale$inboundSchema),
2896
+ ]),
2897
+ ).optional(),
2898
+ });
2899
+
2900
+ export function targetDeploymentComputeFromJSON(
2901
+ jsonString: string,
2902
+ ): SafeParseResult<TargetDeploymentCompute, SDKValidationError> {
2903
+ return safeParse(
2904
+ jsonString,
2905
+ (x) => TargetDeploymentCompute$inboundSchema.parse(JSON.parse(x)),
2906
+ `Failed to parse 'TargetDeploymentCompute' from JSON`,
2907
+ );
2908
+ }
2909
+
2910
+ /** @internal */
2911
+ export const TargetDeploymentComputeUnion$inboundSchema: z.ZodType<
2912
+ TargetDeploymentComputeUnion,
2913
+ unknown
2914
+ > = z.union([z.lazy(() => TargetDeploymentCompute$inboundSchema), z.string()]);
2915
+
2916
+ export function targetDeploymentComputeUnionFromJSON(
2917
+ jsonString: string,
2918
+ ): SafeParseResult<TargetDeploymentComputeUnion, SDKValidationError> {
2919
+ return safeParse(
2920
+ jsonString,
2921
+ (x) => TargetDeploymentComputeUnion$inboundSchema.parse(JSON.parse(x)),
2922
+ `Failed to parse 'TargetDeploymentComputeUnion' from JSON`,
2923
+ );
2924
+ }
2925
+
2926
+ /** @internal */
2927
+ export const TargetDeploymentDeploymentModel$inboundSchema: z.ZodEnum<
2928
+ typeof TargetDeploymentDeploymentModel
2929
+ > = z.enum(TargetDeploymentDeploymentModel);
2930
+
2931
+ /** @internal */
2932
+ export const TargetDeploymentAwsStackSettings$inboundSchema: z.ZodType<
2933
+ TargetDeploymentAwsStackSettings,
2934
+ unknown
2935
+ > = z.object({
2936
+ certificateArn: z.string(),
2937
+ });
2938
+
2939
+ export function targetDeploymentAwsStackSettingsFromJSON(
2940
+ jsonString: string,
2941
+ ): SafeParseResult<TargetDeploymentAwsStackSettings, SDKValidationError> {
2942
+ return safeParse(
2943
+ jsonString,
2944
+ (x) => TargetDeploymentAwsStackSettings$inboundSchema.parse(JSON.parse(x)),
2945
+ `Failed to parse 'TargetDeploymentAwsStackSettings' from JSON`,
2946
+ );
2947
+ }
2948
+
2949
+ /** @internal */
2950
+ export const TargetDeploymentStackSettingsAwsUnion$inboundSchema: z.ZodType<
2951
+ TargetDeploymentStackSettingsAwsUnion,
2952
+ unknown
2953
+ > = z.union([
2954
+ z.lazy(() => TargetDeploymentAwsStackSettings$inboundSchema),
2955
+ z.string(),
2956
+ ]);
2957
+
2958
+ export function targetDeploymentStackSettingsAwsUnionFromJSON(
2959
+ jsonString: string,
2960
+ ): SafeParseResult<TargetDeploymentStackSettingsAwsUnion, SDKValidationError> {
2961
+ return safeParse(
2962
+ jsonString,
2963
+ (x) =>
2964
+ TargetDeploymentStackSettingsAwsUnion$inboundSchema.parse(JSON.parse(x)),
2965
+ `Failed to parse 'TargetDeploymentStackSettingsAwsUnion' from JSON`,
2966
+ );
2967
+ }
2968
+
2969
+ /** @internal */
2970
+ export const AzureConfigStackSettings$inboundSchema: z.ZodType<
2971
+ AzureConfigStackSettings,
2972
+ unknown
2973
+ > = z.object({
2974
+ keyVaultCertificateId: z.string(),
2975
+ keyVaultResourceId: z.nullable(z.string()).optional(),
2976
+ });
2977
+
2978
+ export function azureConfigStackSettingsFromJSON(
2979
+ jsonString: string,
2980
+ ): SafeParseResult<AzureConfigStackSettings, SDKValidationError> {
2981
+ return safeParse(
2982
+ jsonString,
2983
+ (x) => AzureConfigStackSettings$inboundSchema.parse(JSON.parse(x)),
2984
+ `Failed to parse 'AzureConfigStackSettings' from JSON`,
2985
+ );
2986
+ }
2987
+
2988
+ /** @internal */
2989
+ export const ConfigStackSettingsAzureUnion$inboundSchema: z.ZodType<
2990
+ ConfigStackSettingsAzureUnion,
2991
+ unknown
2992
+ > = z.union([z.lazy(() => AzureConfigStackSettings$inboundSchema), z.string()]);
2993
+
2994
+ export function configStackSettingsAzureUnionFromJSON(
2995
+ jsonString: string,
2996
+ ): SafeParseResult<ConfigStackSettingsAzureUnion, SDKValidationError> {
2997
+ return safeParse(
2998
+ jsonString,
2999
+ (x) => ConfigStackSettingsAzureUnion$inboundSchema.parse(JSON.parse(x)),
3000
+ `Failed to parse 'ConfigStackSettingsAzureUnion' from JSON`,
3001
+ );
3002
+ }
3003
+
3004
+ /** @internal */
3005
+ export const GcpConfigStackSettings$inboundSchema: z.ZodType<
3006
+ GcpConfigStackSettings,
3007
+ unknown
3008
+ > = z.object({
3009
+ certificateName: z.string(),
3010
+ });
3011
+
3012
+ export function gcpConfigStackSettingsFromJSON(
3013
+ jsonString: string,
3014
+ ): SafeParseResult<GcpConfigStackSettings, SDKValidationError> {
3015
+ return safeParse(
3016
+ jsonString,
3017
+ (x) => GcpConfigStackSettings$inboundSchema.parse(JSON.parse(x)),
3018
+ `Failed to parse 'GcpConfigStackSettings' from JSON`,
3019
+ );
3020
+ }
3021
+
3022
+ /** @internal */
3023
+ export const ConfigStackSettingsGcpUnion$inboundSchema: z.ZodType<
3024
+ ConfigStackSettingsGcpUnion,
3025
+ unknown
3026
+ > = z.union([z.lazy(() => GcpConfigStackSettings$inboundSchema), z.string()]);
3027
+
3028
+ export function configStackSettingsGcpUnionFromJSON(
3029
+ jsonString: string,
3030
+ ): SafeParseResult<ConfigStackSettingsGcpUnion, SDKValidationError> {
3031
+ return safeParse(
3032
+ jsonString,
3033
+ (x) => ConfigStackSettingsGcpUnion$inboundSchema.parse(JSON.parse(x)),
3034
+ `Failed to parse 'ConfigStackSettingsGcpUnion' from JSON`,
3035
+ );
3036
+ }
3037
+
3038
+ /** @internal */
3039
+ export const TargetDeploymentTlsSecretRef$inboundSchema: z.ZodType<
3040
+ TargetDeploymentTlsSecretRef,
3041
+ unknown
3042
+ > = z.object({
3043
+ namespace: z.nullable(z.string()).optional(),
3044
+ secretName: z.string(),
3045
+ });
3046
+
3047
+ export function targetDeploymentTlsSecretRefFromJSON(
3048
+ jsonString: string,
3049
+ ): SafeParseResult<TargetDeploymentTlsSecretRef, SDKValidationError> {
3050
+ return safeParse(
3051
+ jsonString,
3052
+ (x) => TargetDeploymentTlsSecretRef$inboundSchema.parse(JSON.parse(x)),
3053
+ `Failed to parse 'TargetDeploymentTlsSecretRef' from JSON`,
3054
+ );
3055
+ }
3056
+
3057
+ /** @internal */
3058
+ export const TargetDeploymentDomainsKubernetes$inboundSchema: z.ZodType<
3059
+ TargetDeploymentDomainsKubernetes,
3060
+ unknown
3061
+ > = z.object({
3062
+ tlsSecretRef: z.lazy(() => TargetDeploymentTlsSecretRef$inboundSchema),
3063
+ });
3064
+
3065
+ export function targetDeploymentDomainsKubernetesFromJSON(
3066
+ jsonString: string,
3067
+ ): SafeParseResult<TargetDeploymentDomainsKubernetes, SDKValidationError> {
3068
+ return safeParse(
3069
+ jsonString,
3070
+ (x) => TargetDeploymentDomainsKubernetes$inboundSchema.parse(JSON.parse(x)),
3071
+ `Failed to parse 'TargetDeploymentDomainsKubernetes' from JSON`,
3072
+ );
3073
+ }
3074
+
3075
+ /** @internal */
3076
+ export const TargetDeploymentDomainsKubernetesUnion$inboundSchema: z.ZodType<
3077
+ TargetDeploymentDomainsKubernetesUnion,
3078
+ unknown
3079
+ > = z.union([
3080
+ z.lazy(() => TargetDeploymentDomainsKubernetes$inboundSchema),
3081
+ z.string(),
3082
+ ]);
3083
+
3084
+ export function targetDeploymentDomainsKubernetesUnionFromJSON(
3085
+ jsonString: string,
3086
+ ): SafeParseResult<TargetDeploymentDomainsKubernetesUnion, SDKValidationError> {
3087
+ return safeParse(
3088
+ jsonString,
3089
+ (x) =>
3090
+ TargetDeploymentDomainsKubernetesUnion$inboundSchema.parse(JSON.parse(x)),
3091
+ `Failed to parse 'TargetDeploymentDomainsKubernetesUnion' from JSON`,
3092
+ );
3093
+ }
3094
+
3095
+ /** @internal */
3096
+ export const TargetDeploymentDomainsCertificate$inboundSchema: z.ZodType<
3097
+ TargetDeploymentDomainsCertificate,
3098
+ unknown
3099
+ > = z.object({
3100
+ aws: z.nullable(
3101
+ z.union([
3102
+ z.lazy(() => TargetDeploymentAwsStackSettings$inboundSchema),
3103
+ z.string(),
3104
+ ]),
3105
+ ).optional(),
3106
+ azure: z.nullable(
3107
+ z.union([z.lazy(() => AzureConfigStackSettings$inboundSchema), z.string()]),
3108
+ ).optional(),
3109
+ gcp: z.nullable(
3110
+ z.union([z.lazy(() => GcpConfigStackSettings$inboundSchema), z.string()]),
3111
+ ).optional(),
3112
+ kubernetes: z.nullable(
3113
+ z.union([
3114
+ z.lazy(() => TargetDeploymentDomainsKubernetes$inboundSchema),
3115
+ z.string(),
3116
+ ]),
3117
+ ).optional(),
3118
+ });
3119
+
3120
+ export function targetDeploymentDomainsCertificateFromJSON(
3121
+ jsonString: string,
3122
+ ): SafeParseResult<TargetDeploymentDomainsCertificate, SDKValidationError> {
3123
+ return safeParse(
3124
+ jsonString,
3125
+ (x) =>
3126
+ TargetDeploymentDomainsCertificate$inboundSchema.parse(JSON.parse(x)),
3127
+ `Failed to parse 'TargetDeploymentDomainsCertificate' from JSON`,
3128
+ );
3129
+ }
3130
+
3131
+ /** @internal */
3132
+ export const TargetDeploymentCustomDomains$inboundSchema: z.ZodType<
3133
+ TargetDeploymentCustomDomains,
3134
+ unknown
3135
+ > = z.object({
3136
+ certificate: z.lazy(() => TargetDeploymentDomainsCertificate$inboundSchema),
3137
+ domain: z.string(),
3138
+ });
3139
+
3140
+ export function targetDeploymentCustomDomainsFromJSON(
3141
+ jsonString: string,
3142
+ ): SafeParseResult<TargetDeploymentCustomDomains, SDKValidationError> {
3143
+ return safeParse(
3144
+ jsonString,
3145
+ (x) => TargetDeploymentCustomDomains$inboundSchema.parse(JSON.parse(x)),
3146
+ `Failed to parse 'TargetDeploymentCustomDomains' from JSON`,
3147
+ );
3148
+ }
3149
+
3150
+ /** @internal */
3151
+ export const TargetDeploymentModeLoadBalancer$inboundSchema: z.ZodEnum<
3152
+ typeof TargetDeploymentModeLoadBalancer
3153
+ > = z.enum(TargetDeploymentModeLoadBalancer);
3154
+
3155
+ /** @internal */
3156
+ export const TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema:
3157
+ z.ZodType<TargetDeploymentPublicEndpointTargetLoadBalancer, unknown> = z
3158
+ .object({
3159
+ cnameTarget: z.string(),
3160
+ mode: TargetDeploymentModeLoadBalancer$inboundSchema,
3161
+ });
3162
+
3163
+ export function targetDeploymentPublicEndpointTargetLoadBalancerFromJSON(
3164
+ jsonString: string,
3165
+ ): SafeParseResult<
3166
+ TargetDeploymentPublicEndpointTargetLoadBalancer,
3167
+ SDKValidationError
3168
+ > {
3169
+ return safeParse(
3170
+ jsonString,
3171
+ (x) =>
3172
+ TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema.parse(
3173
+ JSON.parse(x),
3174
+ ),
3175
+ `Failed to parse 'TargetDeploymentPublicEndpointTargetLoadBalancer' from JSON`,
3176
+ );
3177
+ }
3178
+
3179
+ /** @internal */
3180
+ export const TargetDeploymentModeMachineAddresses$inboundSchema: z.ZodEnum<
3181
+ typeof TargetDeploymentModeMachineAddresses
3182
+ > = z.enum(TargetDeploymentModeMachineAddresses);
3183
+
3184
+ /** @internal */
3185
+ export const TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema:
3186
+ z.ZodType<TargetDeploymentPublicEndpointTargetMachineAddresses, unknown> = z
3187
+ .object({
3188
+ mode: TargetDeploymentModeMachineAddresses$inboundSchema,
3189
+ });
3190
+
3191
+ export function targetDeploymentPublicEndpointTargetMachineAddressesFromJSON(
3192
+ jsonString: string,
3193
+ ): SafeParseResult<
3194
+ TargetDeploymentPublicEndpointTargetMachineAddresses,
3195
+ SDKValidationError
3196
+ > {
3197
+ return safeParse(
3198
+ jsonString,
3199
+ (x) =>
3200
+ TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema.parse(
3201
+ JSON.parse(x),
3202
+ ),
3203
+ `Failed to parse 'TargetDeploymentPublicEndpointTargetMachineAddresses' from JSON`,
3204
+ );
3205
+ }
3206
+
3207
+ /** @internal */
3208
+ export const TargetDeploymentPublicEndpointTargetUnion$inboundSchema: z.ZodType<
3209
+ TargetDeploymentPublicEndpointTargetUnion,
3210
+ unknown
3211
+ > = z.union([
3212
+ z.lazy(() => TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema),
3213
+ z.lazy(() =>
3214
+ TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema
3215
+ ),
3216
+ z.string(),
3217
+ ]);
3218
+
3219
+ export function targetDeploymentPublicEndpointTargetUnionFromJSON(
3220
+ jsonString: string,
3221
+ ): SafeParseResult<
3222
+ TargetDeploymentPublicEndpointTargetUnion,
3223
+ SDKValidationError
3224
+ > {
3225
+ return safeParse(
3226
+ jsonString,
3227
+ (x) =>
3228
+ TargetDeploymentPublicEndpointTargetUnion$inboundSchema.parse(
3229
+ JSON.parse(x),
3230
+ ),
3231
+ `Failed to parse 'TargetDeploymentPublicEndpointTargetUnion' from JSON`,
3232
+ );
3233
+ }
3234
+
3235
+ /** @internal */
3236
+ export const TargetDeploymentDomains$inboundSchema: z.ZodType<
3237
+ TargetDeploymentDomains,
3238
+ unknown
3239
+ > = z.object({
3240
+ customDomains: z.nullable(
3241
+ z.record(
3242
+ z.string(),
3243
+ z.lazy(() => TargetDeploymentCustomDomains$inboundSchema),
3244
+ ),
3245
+ ).optional(),
3246
+ publicEndpointTarget: z.nullable(
3247
+ z.union([
3248
+ z.lazy(() =>
3249
+ TargetDeploymentPublicEndpointTargetLoadBalancer$inboundSchema
3250
+ ),
3251
+ z.lazy(() =>
3252
+ TargetDeploymentPublicEndpointTargetMachineAddresses$inboundSchema
3253
+ ),
3254
+ z.string(),
3255
+ ]),
3256
+ ).optional(),
3257
+ });
3258
+
3259
+ export function targetDeploymentDomainsFromJSON(
3260
+ jsonString: string,
3261
+ ): SafeParseResult<TargetDeploymentDomains, SDKValidationError> {
3262
+ return safeParse(
3263
+ jsonString,
3264
+ (x) => TargetDeploymentDomains$inboundSchema.parse(JSON.parse(x)),
3265
+ `Failed to parse 'TargetDeploymentDomains' from JSON`,
3266
+ );
3267
+ }
3268
+
3269
+ /** @internal */
3270
+ export const TargetDeploymentDomainsUnion$inboundSchema: z.ZodType<
3271
+ TargetDeploymentDomainsUnion,
3272
+ unknown
3273
+ > = z.union([z.lazy(() => TargetDeploymentDomains$inboundSchema), z.string()]);
3274
+
3275
+ export function targetDeploymentDomainsUnionFromJSON(
3276
+ jsonString: string,
3277
+ ): SafeParseResult<TargetDeploymentDomainsUnion, SDKValidationError> {
3278
+ return safeParse(
3279
+ jsonString,
3280
+ (x) => TargetDeploymentDomainsUnion$inboundSchema.parse(JSON.parse(x)),
3281
+ `Failed to parse 'TargetDeploymentDomainsUnion' from JSON`,
3282
+ );
3283
+ }
3284
+
3285
+ /** @internal */
3286
+ export const TargetDeploymentEndpointAccess$inboundSchema: z.ZodEnum<
3287
+ typeof TargetDeploymentEndpointAccess
3288
+ > = z.enum(TargetDeploymentEndpointAccess);
3289
+
3290
+ /** @internal */
3291
+ export const TargetDeploymentHeartbeats$inboundSchema: z.ZodEnum<
3292
+ typeof TargetDeploymentHeartbeats
3293
+ > = z.enum(TargetDeploymentHeartbeats);
3294
+
3295
+ /** @internal */
3296
+ export const TargetDeploymentCloud$inboundSchema: z.ZodType<
3297
+ TargetDeploymentCloud,
3298
+ unknown
3299
+ > = z.object({
3300
+ accountId: z.nullable(z.string()).optional(),
3301
+ clusterId: z.nullable(z.string()).optional(),
3302
+ clusterName: z.nullable(z.string()).optional(),
3303
+ projectId: z.nullable(z.string()).optional(),
3304
+ region: z.nullable(z.string()).optional(),
3305
+ resourceGroup: z.nullable(z.string()).optional(),
3306
+ subscriptionId: z.nullable(z.string()).optional(),
3307
+ });
3308
+
3309
+ export function targetDeploymentCloudFromJSON(
3310
+ jsonString: string,
3311
+ ): SafeParseResult<TargetDeploymentCloud, SDKValidationError> {
3312
+ return safeParse(
3313
+ jsonString,
3314
+ (x) => TargetDeploymentCloud$inboundSchema.parse(JSON.parse(x)),
3315
+ `Failed to parse 'TargetDeploymentCloud' from JSON`,
3316
+ );
3317
+ }
3318
+
3319
+ /** @internal */
3320
+ export const TargetDeploymentCloudUnion$inboundSchema: z.ZodType<
3321
+ TargetDeploymentCloudUnion,
3322
+ unknown
3323
+ > = z.union([z.lazy(() => TargetDeploymentCloud$inboundSchema), z.string()]);
3324
+
3325
+ export function targetDeploymentCloudUnionFromJSON(
3326
+ jsonString: string,
3327
+ ): SafeParseResult<TargetDeploymentCloudUnion, SDKValidationError> {
3328
+ return safeParse(
3329
+ jsonString,
3330
+ (x) => TargetDeploymentCloudUnion$inboundSchema.parse(JSON.parse(x)),
3331
+ `Failed to parse 'TargetDeploymentCloudUnion' from JSON`,
3332
+ );
3333
+ }
3334
+
3335
+ /** @internal */
3336
+ export const TargetDeploymentOwnership$inboundSchema: z.ZodEnum<
3337
+ typeof TargetDeploymentOwnership
3338
+ > = z.enum(TargetDeploymentOwnership);
3339
+
3340
+ /** @internal */
3341
+ export const TargetDeploymentCluster$inboundSchema: z.ZodType<
3342
+ TargetDeploymentCluster,
3343
+ unknown
3344
+ > = z.object({
3345
+ cloud: z.nullable(
3346
+ z.union([z.lazy(() => TargetDeploymentCloud$inboundSchema), z.string()]),
3347
+ ).optional(),
3348
+ namespace: z.nullable(z.string()).optional(),
3349
+ ownership: TargetDeploymentOwnership$inboundSchema,
3350
+ });
3351
+
3352
+ export function targetDeploymentClusterFromJSON(
3353
+ jsonString: string,
3354
+ ): SafeParseResult<TargetDeploymentCluster, SDKValidationError> {
3355
+ return safeParse(
3356
+ jsonString,
3357
+ (x) => TargetDeploymentCluster$inboundSchema.parse(JSON.parse(x)),
3358
+ `Failed to parse 'TargetDeploymentCluster' from JSON`,
3359
+ );
3360
+ }
3361
+
3362
+ /** @internal */
3363
+ export const TargetDeploymentClusterUnion$inboundSchema: z.ZodType<
3364
+ TargetDeploymentClusterUnion,
3365
+ unknown
3366
+ > = z.union([z.lazy(() => TargetDeploymentCluster$inboundSchema), z.string()]);
3367
+
3368
+ export function targetDeploymentClusterUnionFromJSON(
3369
+ jsonString: string,
3370
+ ): SafeParseResult<TargetDeploymentClusterUnion, SDKValidationError> {
3371
+ return safeParse(
3372
+ jsonString,
3373
+ (x) => TargetDeploymentClusterUnion$inboundSchema.parse(JSON.parse(x)),
3374
+ `Failed to parse 'TargetDeploymentClusterUnion' from JSON`,
3375
+ );
3376
+ }
3377
+
3378
+ /** @internal */
3379
+ export const TargetDeploymentCertificateNone2$inboundSchema: z.ZodType<
3380
+ TargetDeploymentCertificateNone2,
3381
+ unknown
3382
+ > = z.object({
3383
+ mode: z.literal("none"),
3384
+ });
3385
+
3386
+ export function targetDeploymentCertificateNone2FromJSON(
3387
+ jsonString: string,
3388
+ ): SafeParseResult<TargetDeploymentCertificateNone2, SDKValidationError> {
3389
+ return safeParse(
3390
+ jsonString,
3391
+ (x) => TargetDeploymentCertificateNone2$inboundSchema.parse(JSON.parse(x)),
3392
+ `Failed to parse 'TargetDeploymentCertificateNone2' from JSON`,
3393
+ );
3394
+ }
3395
+
3396
+ /** @internal */
3397
+ export const TargetDeploymentCertificateManagedTLSSecret2$inboundSchema:
3398
+ z.ZodType<TargetDeploymentCertificateManagedTLSSecret2, unknown> = z.object({
3399
+ mode: z.literal("managedTlsSecret"),
3400
+ secretNameTemplate: z.string(),
3401
+ });
3402
+
3403
+ export function targetDeploymentCertificateManagedTLSSecret2FromJSON(
3404
+ jsonString: string,
3405
+ ): SafeParseResult<
3406
+ TargetDeploymentCertificateManagedTLSSecret2,
3407
+ SDKValidationError
3408
+ > {
3409
+ return safeParse(
3410
+ jsonString,
3411
+ (x) =>
3412
+ TargetDeploymentCertificateManagedTLSSecret2$inboundSchema.parse(
3413
+ JSON.parse(x),
3414
+ ),
3415
+ `Failed to parse 'TargetDeploymentCertificateManagedTLSSecret2' from JSON`,
3416
+ );
3417
+ }
3418
+
3419
+ /** @internal */
3420
+ export const TargetDeploymentCertificateAwsAcmArn2$inboundSchema: z.ZodType<
3421
+ TargetDeploymentCertificateAwsAcmArn2,
3422
+ unknown
3423
+ > = z.object({
3424
+ certificateArn: z.string(),
3425
+ mode: z.literal("awsAcmArn"),
3426
+ });
3427
+
3428
+ export function targetDeploymentCertificateAwsAcmArn2FromJSON(
3429
+ jsonString: string,
3430
+ ): SafeParseResult<TargetDeploymentCertificateAwsAcmArn2, SDKValidationError> {
3431
+ return safeParse(
3432
+ jsonString,
3433
+ (x) =>
3434
+ TargetDeploymentCertificateAwsAcmArn2$inboundSchema.parse(JSON.parse(x)),
3435
+ `Failed to parse 'TargetDeploymentCertificateAwsAcmArn2' from JSON`,
3436
+ );
3437
+ }
3438
+
3439
+ /** @internal */
3440
+ export const TargetDeploymentCertificateManagedAcmImport2$inboundSchema:
3441
+ z.ZodType<TargetDeploymentCertificateManagedAcmImport2, unknown> = z.object({
3442
+ mode: z.literal("managedAcmImport"),
3443
+ region: z.nullable(z.string()).optional(),
3444
+ tags: z.record(z.string(), z.string()).optional(),
3445
+ });
3446
+
3447
+ export function targetDeploymentCertificateManagedAcmImport2FromJSON(
3448
+ jsonString: string,
3449
+ ): SafeParseResult<
3450
+ TargetDeploymentCertificateManagedAcmImport2,
3451
+ SDKValidationError
3452
+ > {
3453
+ return safeParse(
3454
+ jsonString,
3455
+ (x) =>
3456
+ TargetDeploymentCertificateManagedAcmImport2$inboundSchema.parse(
3457
+ JSON.parse(x),
3458
+ ),
3459
+ `Failed to parse 'TargetDeploymentCertificateManagedAcmImport2' from JSON`,
3460
+ );
3461
+ }
3462
+
3463
+ /** @internal */
3464
+ export const TargetDeploymentCertificateTLSSecretRef2$inboundSchema: z.ZodType<
3465
+ TargetDeploymentCertificateTLSSecretRef2,
3466
+ unknown
3467
+ > = z.object({
3468
+ namespace: z.nullable(z.string()).optional(),
3469
+ secretName: z.string(),
3470
+ mode: z.literal("tlsSecretRef"),
3471
+ });
3472
+
3473
+ export function targetDeploymentCertificateTLSSecretRef2FromJSON(
3474
+ jsonString: string,
3475
+ ): SafeParseResult<
3476
+ TargetDeploymentCertificateTLSSecretRef2,
3477
+ SDKValidationError
3478
+ > {
3479
+ return safeParse(
3480
+ jsonString,
3481
+ (x) =>
3482
+ TargetDeploymentCertificateTLSSecretRef2$inboundSchema.parse(
3483
+ JSON.parse(x),
3484
+ ),
3485
+ `Failed to parse 'TargetDeploymentCertificateTLSSecretRef2' from JSON`,
3486
+ );
3487
+ }
3488
+
3489
+ /** @internal */
3490
+ export const TargetDeploymentCertificateUnion2$inboundSchema: z.ZodType<
3491
+ TargetDeploymentCertificateUnion2,
3492
+ unknown
3493
+ > = z.union([
3494
+ z.lazy(() => TargetDeploymentCertificateTLSSecretRef2$inboundSchema),
3495
+ z.lazy(() => TargetDeploymentCertificateManagedAcmImport2$inboundSchema),
3496
+ z.lazy(() => TargetDeploymentCertificateAwsAcmArn2$inboundSchema),
3497
+ z.lazy(() => TargetDeploymentCertificateManagedTLSSecret2$inboundSchema),
3498
+ z.lazy(() => TargetDeploymentCertificateNone2$inboundSchema),
3499
+ ]);
3500
+
3501
+ export function targetDeploymentCertificateUnion2FromJSON(
3502
+ jsonString: string,
3503
+ ): SafeParseResult<TargetDeploymentCertificateUnion2, SDKValidationError> {
3504
+ return safeParse(
3505
+ jsonString,
3506
+ (x) => TargetDeploymentCertificateUnion2$inboundSchema.parse(JSON.parse(x)),
3507
+ `Failed to parse 'TargetDeploymentCertificateUnion2' from JSON`,
3508
+ );
3509
+ }
3510
+
3511
+ /** @internal */
3512
+ export const TargetDeploymentModeCustom$inboundSchema: z.ZodEnum<
3513
+ typeof TargetDeploymentModeCustom
3514
+ > = z.enum(TargetDeploymentModeCustom);
3515
+
3516
+ /** @internal */
3517
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4$inboundSchema:
3518
+ z.ZodEnum<
3519
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4
3520
+ > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4);
3521
+
3522
+ /** @internal */
3523
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema:
3524
+ z.ZodType<
3525
+ TargetDeploymentProviderAzureApplicationGatewayForContainers4,
3526
+ unknown
3527
+ > = z.object({
3528
+ albName: z.nullable(z.string()).optional(),
3529
+ albNamespace: z.nullable(z.string()).optional(),
3530
+ frontend: z.string(),
3531
+ provider:
3532
+ TargetDeploymentProviderAzureApplicationGatewayForContainersEnum4$inboundSchema,
3533
+ });
3534
+
3535
+ export function targetDeploymentProviderAzureApplicationGatewayForContainers4FromJSON(
3536
+ jsonString: string,
3537
+ ): SafeParseResult<
3538
+ TargetDeploymentProviderAzureApplicationGatewayForContainers4,
3539
+ SDKValidationError
3540
+ > {
3541
+ return safeParse(
3542
+ jsonString,
3543
+ (x) =>
3544
+ TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema
3545
+ .parse(JSON.parse(x)),
3546
+ `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers4' from JSON`,
3547
+ );
3548
+ }
3549
+
3550
+ /** @internal */
3551
+ export const TargetDeploymentProviderGkeGatewayEnum4$inboundSchema: z.ZodEnum<
3552
+ typeof TargetDeploymentProviderGkeGatewayEnum4
3553
+ > = z.enum(TargetDeploymentProviderGkeGatewayEnum4);
3554
+
3555
+ /** @internal */
3556
+ export const TargetDeploymentProviderGkeGateway4$inboundSchema: z.ZodType<
3557
+ TargetDeploymentProviderGkeGateway4,
3558
+ unknown
3559
+ > = z.object({
3560
+ provider: TargetDeploymentProviderGkeGatewayEnum4$inboundSchema,
3561
+ staticAddressName: z.nullable(z.string()).optional(),
3562
+ });
3563
+
3564
+ export function targetDeploymentProviderGkeGateway4FromJSON(
3565
+ jsonString: string,
3566
+ ): SafeParseResult<TargetDeploymentProviderGkeGateway4, SDKValidationError> {
3567
+ return safeParse(
3568
+ jsonString,
3569
+ (x) =>
3570
+ TargetDeploymentProviderGkeGateway4$inboundSchema.parse(JSON.parse(x)),
3571
+ `Failed to parse 'TargetDeploymentProviderGkeGateway4' from JSON`,
3572
+ );
3573
+ }
3574
+
3575
+ /** @internal */
3576
+ export const TargetDeploymentProviderAwsAlbEnum4$inboundSchema: z.ZodEnum<
3577
+ typeof TargetDeploymentProviderAwsAlbEnum4
3578
+ > = z.enum(TargetDeploymentProviderAwsAlbEnum4);
3579
+
3580
+ /** @internal */
3581
+ export const TargetDeploymentProviderAwsAlb4$inboundSchema: z.ZodType<
3582
+ TargetDeploymentProviderAwsAlb4,
3583
+ unknown
3584
+ > = z.object({
3585
+ ipAddressType: z.nullable(z.string()).optional(),
3586
+ provider: TargetDeploymentProviderAwsAlbEnum4$inboundSchema,
3587
+ scheme: z.string(),
3588
+ subnetIds: z.array(z.string()).optional(),
3589
+ targetType: z.string(),
3590
+ });
3591
+
3592
+ export function targetDeploymentProviderAwsAlb4FromJSON(
3593
+ jsonString: string,
3594
+ ): SafeParseResult<TargetDeploymentProviderAwsAlb4, SDKValidationError> {
3595
+ return safeParse(
3596
+ jsonString,
3597
+ (x) => TargetDeploymentProviderAwsAlb4$inboundSchema.parse(JSON.parse(x)),
3598
+ `Failed to parse 'TargetDeploymentProviderAwsAlb4' from JSON`,
3599
+ );
3600
+ }
3601
+
3602
+ /** @internal */
3603
+ export const TargetDeploymentProviderUnion4$inboundSchema: z.ZodType<
3604
+ TargetDeploymentProviderUnion4,
3605
+ unknown
3606
+ > = z.union([
3607
+ z.lazy(() => TargetDeploymentProviderAwsAlb4$inboundSchema),
3608
+ z.lazy(() =>
3609
+ TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema
3610
+ ),
3611
+ z.lazy(() => TargetDeploymentProviderGkeGateway4$inboundSchema),
3612
+ z.string(),
3613
+ ]);
3614
+
3615
+ export function targetDeploymentProviderUnion4FromJSON(
3616
+ jsonString: string,
3617
+ ): SafeParseResult<TargetDeploymentProviderUnion4, SDKValidationError> {
3618
+ return safeParse(
3619
+ jsonString,
3620
+ (x) => TargetDeploymentProviderUnion4$inboundSchema.parse(JSON.parse(x)),
3621
+ `Failed to parse 'TargetDeploymentProviderUnion4' from JSON`,
3622
+ );
3623
+ }
3624
+
3625
+ /** @internal */
3626
+ export const TargetDeploymentRouteGateway2$inboundSchema: z.ZodType<
3627
+ TargetDeploymentRouteGateway2,
3628
+ unknown
3629
+ > = z.object({
3630
+ annotations: z.record(z.string(), z.string()).optional(),
3631
+ controller: z.nullable(z.string()).optional(),
3632
+ gatewayClassName: z.string(),
3633
+ labels: z.record(z.string(), z.string()).optional(),
3634
+ listenerPort: z.int(),
3635
+ provider: z.nullable(
3636
+ z.union([
3637
+ z.lazy(() => TargetDeploymentProviderAwsAlb4$inboundSchema),
3638
+ z.lazy(() =>
3639
+ TargetDeploymentProviderAzureApplicationGatewayForContainers4$inboundSchema
3640
+ ),
3641
+ z.lazy(() => TargetDeploymentProviderGkeGateway4$inboundSchema),
3642
+ z.string(),
3643
+ ]),
3644
+ ).optional(),
3645
+ routeApi: z.literal("gateway"),
3646
+ });
3647
+
3648
+ export function targetDeploymentRouteGateway2FromJSON(
3649
+ jsonString: string,
3650
+ ): SafeParseResult<TargetDeploymentRouteGateway2, SDKValidationError> {
3651
+ return safeParse(
3652
+ jsonString,
3653
+ (x) => TargetDeploymentRouteGateway2$inboundSchema.parse(JSON.parse(x)),
3654
+ `Failed to parse 'TargetDeploymentRouteGateway2' from JSON`,
3655
+ );
3656
+ }
3657
+
3658
+ /** @internal */
3659
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3$inboundSchema:
3660
+ z.ZodEnum<
3661
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3
3662
+ > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3);
3663
+
3664
+ /** @internal */
3665
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema:
3666
+ z.ZodType<
3667
+ TargetDeploymentProviderAzureApplicationGatewayForContainers3,
3668
+ unknown
3669
+ > = z.object({
3670
+ albName: z.nullable(z.string()).optional(),
3671
+ albNamespace: z.nullable(z.string()).optional(),
3672
+ frontend: z.string(),
3673
+ provider:
3674
+ TargetDeploymentProviderAzureApplicationGatewayForContainersEnum3$inboundSchema,
3675
+ });
3676
+
3677
+ export function targetDeploymentProviderAzureApplicationGatewayForContainers3FromJSON(
3678
+ jsonString: string,
3679
+ ): SafeParseResult<
3680
+ TargetDeploymentProviderAzureApplicationGatewayForContainers3,
3681
+ SDKValidationError
3682
+ > {
3683
+ return safeParse(
3684
+ jsonString,
3685
+ (x) =>
3686
+ TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema
3687
+ .parse(JSON.parse(x)),
3688
+ `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers3' from JSON`,
3689
+ );
3690
+ }
3691
+
3692
+ /** @internal */
3693
+ export const TargetDeploymentProviderGkeGatewayEnum3$inboundSchema: z.ZodEnum<
3694
+ typeof TargetDeploymentProviderGkeGatewayEnum3
3695
+ > = z.enum(TargetDeploymentProviderGkeGatewayEnum3);
3696
+
3697
+ /** @internal */
3698
+ export const TargetDeploymentProviderGkeGateway3$inboundSchema: z.ZodType<
3699
+ TargetDeploymentProviderGkeGateway3,
3700
+ unknown
3701
+ > = z.object({
3702
+ provider: TargetDeploymentProviderGkeGatewayEnum3$inboundSchema,
3703
+ staticAddressName: z.nullable(z.string()).optional(),
3704
+ });
3705
+
3706
+ export function targetDeploymentProviderGkeGateway3FromJSON(
3707
+ jsonString: string,
3708
+ ): SafeParseResult<TargetDeploymentProviderGkeGateway3, SDKValidationError> {
3709
+ return safeParse(
3710
+ jsonString,
3711
+ (x) =>
3712
+ TargetDeploymentProviderGkeGateway3$inboundSchema.parse(JSON.parse(x)),
3713
+ `Failed to parse 'TargetDeploymentProviderGkeGateway3' from JSON`,
3714
+ );
3715
+ }
3716
+
3717
+ /** @internal */
3718
+ export const TargetDeploymentProviderAwsAlbEnum3$inboundSchema: z.ZodEnum<
3719
+ typeof TargetDeploymentProviderAwsAlbEnum3
3720
+ > = z.enum(TargetDeploymentProviderAwsAlbEnum3);
3721
+
3722
+ /** @internal */
3723
+ export const TargetDeploymentProviderAwsAlb3$inboundSchema: z.ZodType<
3724
+ TargetDeploymentProviderAwsAlb3,
3725
+ unknown
3726
+ > = z.object({
3727
+ ipAddressType: z.nullable(z.string()).optional(),
3728
+ provider: TargetDeploymentProviderAwsAlbEnum3$inboundSchema,
3729
+ scheme: z.string(),
3730
+ subnetIds: z.array(z.string()).optional(),
3731
+ targetType: z.string(),
3732
+ });
3733
+
3734
+ export function targetDeploymentProviderAwsAlb3FromJSON(
3735
+ jsonString: string,
3736
+ ): SafeParseResult<TargetDeploymentProviderAwsAlb3, SDKValidationError> {
3737
+ return safeParse(
3738
+ jsonString,
3739
+ (x) => TargetDeploymentProviderAwsAlb3$inboundSchema.parse(JSON.parse(x)),
3740
+ `Failed to parse 'TargetDeploymentProviderAwsAlb3' from JSON`,
3741
+ );
3742
+ }
3743
+
3744
+ /** @internal */
3745
+ export const TargetDeploymentProviderUnion3$inboundSchema: z.ZodType<
3746
+ TargetDeploymentProviderUnion3,
3747
+ unknown
3748
+ > = z.union([
3749
+ z.lazy(() => TargetDeploymentProviderAwsAlb3$inboundSchema),
3750
+ z.lazy(() =>
3751
+ TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema
3752
+ ),
3753
+ z.lazy(() => TargetDeploymentProviderGkeGateway3$inboundSchema),
3754
+ z.string(),
3755
+ ]);
3756
+
3757
+ export function targetDeploymentProviderUnion3FromJSON(
3758
+ jsonString: string,
3759
+ ): SafeParseResult<TargetDeploymentProviderUnion3, SDKValidationError> {
3760
+ return safeParse(
3761
+ jsonString,
3762
+ (x) => TargetDeploymentProviderUnion3$inboundSchema.parse(JSON.parse(x)),
3763
+ `Failed to parse 'TargetDeploymentProviderUnion3' from JSON`,
3764
+ );
3765
+ }
3766
+
3767
+ /** @internal */
3768
+ export const TargetDeploymentRouteIngress2$inboundSchema: z.ZodType<
3769
+ TargetDeploymentRouteIngress2,
3770
+ unknown
3771
+ > = z.object({
3772
+ annotations: z.record(z.string(), z.string()).optional(),
3773
+ controller: z.nullable(z.string()).optional(),
3774
+ ingressClassName: z.string(),
3775
+ labels: z.record(z.string(), z.string()).optional(),
3776
+ provider: z.nullable(
3777
+ z.union([
3778
+ z.lazy(() => TargetDeploymentProviderAwsAlb3$inboundSchema),
3779
+ z.lazy(() =>
3780
+ TargetDeploymentProviderAzureApplicationGatewayForContainers3$inboundSchema
3781
+ ),
3782
+ z.lazy(() => TargetDeploymentProviderGkeGateway3$inboundSchema),
3783
+ z.string(),
3784
+ ]),
3785
+ ).optional(),
3786
+ routeApi: z.literal("ingress"),
3787
+ });
3788
+
3789
+ export function targetDeploymentRouteIngress2FromJSON(
3790
+ jsonString: string,
3791
+ ): SafeParseResult<TargetDeploymentRouteIngress2, SDKValidationError> {
3792
+ return safeParse(
3793
+ jsonString,
3794
+ (x) => TargetDeploymentRouteIngress2$inboundSchema.parse(JSON.parse(x)),
3795
+ `Failed to parse 'TargetDeploymentRouteIngress2' from JSON`,
3796
+ );
3797
+ }
3798
+
3799
+ /** @internal */
3800
+ export const TargetDeploymentRouteUnion2$inboundSchema: z.ZodType<
3801
+ TargetDeploymentRouteUnion2,
3802
+ unknown
3803
+ > = z.union([
3804
+ z.lazy(() => TargetDeploymentRouteIngress2$inboundSchema),
3805
+ z.lazy(() => TargetDeploymentRouteGateway2$inboundSchema),
3806
+ ]);
3807
+
3808
+ export function targetDeploymentRouteUnion2FromJSON(
3809
+ jsonString: string,
3810
+ ): SafeParseResult<TargetDeploymentRouteUnion2, SDKValidationError> {
3811
+ return safeParse(
3812
+ jsonString,
3813
+ (x) => TargetDeploymentRouteUnion2$inboundSchema.parse(JSON.parse(x)),
3814
+ `Failed to parse 'TargetDeploymentRouteUnion2' from JSON`,
3815
+ );
3816
+ }
3817
+
3818
+ /** @internal */
3819
+ export const TargetDeploymentExposureCustom$inboundSchema: z.ZodType<
3820
+ TargetDeploymentExposureCustom,
3821
+ unknown
3822
+ > = z.object({
3823
+ certificate: z.union([
3824
+ z.lazy(() => TargetDeploymentCertificateTLSSecretRef2$inboundSchema),
3825
+ z.lazy(() => TargetDeploymentCertificateManagedAcmImport2$inboundSchema),
3826
+ z.lazy(() => TargetDeploymentCertificateAwsAcmArn2$inboundSchema),
3827
+ z.lazy(() => TargetDeploymentCertificateManagedTLSSecret2$inboundSchema),
3828
+ z.lazy(() => TargetDeploymentCertificateNone2$inboundSchema),
3829
+ ]),
3830
+ domain: z.string(),
3831
+ mode: TargetDeploymentModeCustom$inboundSchema,
3832
+ route: z.union([
3833
+ z.lazy(() => TargetDeploymentRouteIngress2$inboundSchema),
3834
+ z.lazy(() => TargetDeploymentRouteGateway2$inboundSchema),
3835
+ ]),
3836
+ });
3837
+
3838
+ export function targetDeploymentExposureCustomFromJSON(
3839
+ jsonString: string,
3840
+ ): SafeParseResult<TargetDeploymentExposureCustom, SDKValidationError> {
3841
+ return safeParse(
3842
+ jsonString,
3843
+ (x) => TargetDeploymentExposureCustom$inboundSchema.parse(JSON.parse(x)),
3844
+ `Failed to parse 'TargetDeploymentExposureCustom' from JSON`,
3845
+ );
3846
+ }
3847
+
3848
+ /** @internal */
3849
+ export const TargetDeploymentCertificateNone1$inboundSchema: z.ZodType<
3850
+ TargetDeploymentCertificateNone1,
3851
+ unknown
3852
+ > = z.object({
3853
+ mode: z.literal("none"),
3854
+ });
3855
+
3856
+ export function targetDeploymentCertificateNone1FromJSON(
3857
+ jsonString: string,
3858
+ ): SafeParseResult<TargetDeploymentCertificateNone1, SDKValidationError> {
3859
+ return safeParse(
3860
+ jsonString,
3861
+ (x) => TargetDeploymentCertificateNone1$inboundSchema.parse(JSON.parse(x)),
3862
+ `Failed to parse 'TargetDeploymentCertificateNone1' from JSON`,
3863
+ );
3864
+ }
3865
+
3866
+ /** @internal */
3867
+ export const TargetDeploymentCertificateManagedTLSSecret1$inboundSchema:
3868
+ z.ZodType<TargetDeploymentCertificateManagedTLSSecret1, unknown> = z.object({
3869
+ mode: z.literal("managedTlsSecret"),
3870
+ secretNameTemplate: z.string(),
3871
+ });
3872
+
3873
+ export function targetDeploymentCertificateManagedTLSSecret1FromJSON(
3874
+ jsonString: string,
3875
+ ): SafeParseResult<
3876
+ TargetDeploymentCertificateManagedTLSSecret1,
3877
+ SDKValidationError
3878
+ > {
3879
+ return safeParse(
3880
+ jsonString,
3881
+ (x) =>
3882
+ TargetDeploymentCertificateManagedTLSSecret1$inboundSchema.parse(
3883
+ JSON.parse(x),
3884
+ ),
3885
+ `Failed to parse 'TargetDeploymentCertificateManagedTLSSecret1' from JSON`,
3886
+ );
3887
+ }
3888
+
3889
+ /** @internal */
3890
+ export const TargetDeploymentCertificateAwsAcmArn1$inboundSchema: z.ZodType<
3891
+ TargetDeploymentCertificateAwsAcmArn1,
3892
+ unknown
3893
+ > = z.object({
3894
+ certificateArn: z.string(),
3895
+ mode: z.literal("awsAcmArn"),
3896
+ });
3897
+
3898
+ export function targetDeploymentCertificateAwsAcmArn1FromJSON(
3899
+ jsonString: string,
3900
+ ): SafeParseResult<TargetDeploymentCertificateAwsAcmArn1, SDKValidationError> {
3901
+ return safeParse(
3902
+ jsonString,
3903
+ (x) =>
3904
+ TargetDeploymentCertificateAwsAcmArn1$inboundSchema.parse(JSON.parse(x)),
3905
+ `Failed to parse 'TargetDeploymentCertificateAwsAcmArn1' from JSON`,
3906
+ );
3907
+ }
3908
+
3909
+ /** @internal */
3910
+ export const TargetDeploymentCertificateManagedAcmImport1$inboundSchema:
3911
+ z.ZodType<TargetDeploymentCertificateManagedAcmImport1, unknown> = z.object({
3912
+ mode: z.literal("managedAcmImport"),
3913
+ region: z.nullable(z.string()).optional(),
3914
+ tags: z.record(z.string(), z.string()).optional(),
3915
+ });
3916
+
3917
+ export function targetDeploymentCertificateManagedAcmImport1FromJSON(
3918
+ jsonString: string,
3919
+ ): SafeParseResult<
3920
+ TargetDeploymentCertificateManagedAcmImport1,
3921
+ SDKValidationError
3922
+ > {
3923
+ return safeParse(
3924
+ jsonString,
3925
+ (x) =>
3926
+ TargetDeploymentCertificateManagedAcmImport1$inboundSchema.parse(
3927
+ JSON.parse(x),
3928
+ ),
3929
+ `Failed to parse 'TargetDeploymentCertificateManagedAcmImport1' from JSON`,
3930
+ );
3931
+ }
3932
+
3933
+ /** @internal */
3934
+ export const TargetDeploymentCertificateTLSSecretRef1$inboundSchema: z.ZodType<
3935
+ TargetDeploymentCertificateTLSSecretRef1,
3936
+ unknown
3937
+ > = z.object({
3938
+ namespace: z.nullable(z.string()).optional(),
3939
+ secretName: z.string(),
3940
+ mode: z.literal("tlsSecretRef"),
3941
+ });
3942
+
3943
+ export function targetDeploymentCertificateTLSSecretRef1FromJSON(
3944
+ jsonString: string,
3945
+ ): SafeParseResult<
3946
+ TargetDeploymentCertificateTLSSecretRef1,
3947
+ SDKValidationError
3948
+ > {
3949
+ return safeParse(
3950
+ jsonString,
3951
+ (x) =>
3952
+ TargetDeploymentCertificateTLSSecretRef1$inboundSchema.parse(
3953
+ JSON.parse(x),
3954
+ ),
3955
+ `Failed to parse 'TargetDeploymentCertificateTLSSecretRef1' from JSON`,
3956
+ );
3957
+ }
3958
+
3959
+ /** @internal */
3960
+ export const TargetDeploymentCertificateUnion1$inboundSchema: z.ZodType<
3961
+ TargetDeploymentCertificateUnion1,
3962
+ unknown
3963
+ > = z.union([
3964
+ z.lazy(() => TargetDeploymentCertificateTLSSecretRef1$inboundSchema),
3965
+ z.lazy(() => TargetDeploymentCertificateManagedAcmImport1$inboundSchema),
3966
+ z.lazy(() => TargetDeploymentCertificateAwsAcmArn1$inboundSchema),
3967
+ z.lazy(() => TargetDeploymentCertificateManagedTLSSecret1$inboundSchema),
3968
+ z.lazy(() => TargetDeploymentCertificateNone1$inboundSchema),
3969
+ ]);
3970
+
3971
+ export function targetDeploymentCertificateUnion1FromJSON(
3972
+ jsonString: string,
3973
+ ): SafeParseResult<TargetDeploymentCertificateUnion1, SDKValidationError> {
3974
+ return safeParse(
3975
+ jsonString,
3976
+ (x) => TargetDeploymentCertificateUnion1$inboundSchema.parse(JSON.parse(x)),
3977
+ `Failed to parse 'TargetDeploymentCertificateUnion1' from JSON`,
3978
+ );
3979
+ }
3980
+
3981
+ /** @internal */
3982
+ export const TargetDeploymentModeGenerated$inboundSchema: z.ZodEnum<
3983
+ typeof TargetDeploymentModeGenerated
3984
+ > = z.enum(TargetDeploymentModeGenerated);
3985
+
3986
+ /** @internal */
3987
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2$inboundSchema:
3988
+ z.ZodEnum<
3989
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2
3990
+ > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2);
3991
+
3992
+ /** @internal */
3993
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema:
3994
+ z.ZodType<
3995
+ TargetDeploymentProviderAzureApplicationGatewayForContainers2,
3996
+ unknown
3997
+ > = z.object({
3998
+ albName: z.nullable(z.string()).optional(),
3999
+ albNamespace: z.nullable(z.string()).optional(),
4000
+ frontend: z.string(),
4001
+ provider:
4002
+ TargetDeploymentProviderAzureApplicationGatewayForContainersEnum2$inboundSchema,
4003
+ });
4004
+
4005
+ export function targetDeploymentProviderAzureApplicationGatewayForContainers2FromJSON(
4006
+ jsonString: string,
4007
+ ): SafeParseResult<
4008
+ TargetDeploymentProviderAzureApplicationGatewayForContainers2,
4009
+ SDKValidationError
4010
+ > {
4011
+ return safeParse(
4012
+ jsonString,
4013
+ (x) =>
4014
+ TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema
4015
+ .parse(JSON.parse(x)),
4016
+ `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers2' from JSON`,
4017
+ );
4018
+ }
4019
+
4020
+ /** @internal */
4021
+ export const TargetDeploymentProviderGkeGatewayEnum2$inboundSchema: z.ZodEnum<
4022
+ typeof TargetDeploymentProviderGkeGatewayEnum2
4023
+ > = z.enum(TargetDeploymentProviderGkeGatewayEnum2);
4024
+
4025
+ /** @internal */
4026
+ export const TargetDeploymentProviderGkeGateway2$inboundSchema: z.ZodType<
4027
+ TargetDeploymentProviderGkeGateway2,
4028
+ unknown
4029
+ > = z.object({
4030
+ provider: TargetDeploymentProviderGkeGatewayEnum2$inboundSchema,
4031
+ staticAddressName: z.nullable(z.string()).optional(),
4032
+ });
4033
+
4034
+ export function targetDeploymentProviderGkeGateway2FromJSON(
4035
+ jsonString: string,
4036
+ ): SafeParseResult<TargetDeploymentProviderGkeGateway2, SDKValidationError> {
4037
+ return safeParse(
4038
+ jsonString,
4039
+ (x) =>
4040
+ TargetDeploymentProviderGkeGateway2$inboundSchema.parse(JSON.parse(x)),
4041
+ `Failed to parse 'TargetDeploymentProviderGkeGateway2' from JSON`,
4042
+ );
4043
+ }
4044
+
4045
+ /** @internal */
4046
+ export const TargetDeploymentProviderAwsAlbEnum2$inboundSchema: z.ZodEnum<
4047
+ typeof TargetDeploymentProviderAwsAlbEnum2
4048
+ > = z.enum(TargetDeploymentProviderAwsAlbEnum2);
4049
+
4050
+ /** @internal */
4051
+ export const TargetDeploymentProviderAwsAlb2$inboundSchema: z.ZodType<
4052
+ TargetDeploymentProviderAwsAlb2,
4053
+ unknown
4054
+ > = z.object({
4055
+ ipAddressType: z.nullable(z.string()).optional(),
4056
+ provider: TargetDeploymentProviderAwsAlbEnum2$inboundSchema,
4057
+ scheme: z.string(),
4058
+ subnetIds: z.array(z.string()).optional(),
4059
+ targetType: z.string(),
4060
+ });
4061
+
4062
+ export function targetDeploymentProviderAwsAlb2FromJSON(
4063
+ jsonString: string,
4064
+ ): SafeParseResult<TargetDeploymentProviderAwsAlb2, SDKValidationError> {
4065
+ return safeParse(
4066
+ jsonString,
4067
+ (x) => TargetDeploymentProviderAwsAlb2$inboundSchema.parse(JSON.parse(x)),
4068
+ `Failed to parse 'TargetDeploymentProviderAwsAlb2' from JSON`,
4069
+ );
4070
+ }
4071
+
4072
+ /** @internal */
4073
+ export const TargetDeploymentProviderUnion2$inboundSchema: z.ZodType<
4074
+ TargetDeploymentProviderUnion2,
4075
+ unknown
4076
+ > = z.union([
4077
+ z.lazy(() => TargetDeploymentProviderAwsAlb2$inboundSchema),
4078
+ z.lazy(() =>
4079
+ TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema
4080
+ ),
4081
+ z.lazy(() => TargetDeploymentProviderGkeGateway2$inboundSchema),
4082
+ z.string(),
4083
+ ]);
4084
+
4085
+ export function targetDeploymentProviderUnion2FromJSON(
4086
+ jsonString: string,
4087
+ ): SafeParseResult<TargetDeploymentProviderUnion2, SDKValidationError> {
4088
+ return safeParse(
4089
+ jsonString,
4090
+ (x) => TargetDeploymentProviderUnion2$inboundSchema.parse(JSON.parse(x)),
4091
+ `Failed to parse 'TargetDeploymentProviderUnion2' from JSON`,
4092
+ );
4093
+ }
4094
+
4095
+ /** @internal */
4096
+ export const TargetDeploymentRouteGateway1$inboundSchema: z.ZodType<
4097
+ TargetDeploymentRouteGateway1,
4098
+ unknown
4099
+ > = z.object({
4100
+ annotations: z.record(z.string(), z.string()).optional(),
4101
+ controller: z.nullable(z.string()).optional(),
4102
+ gatewayClassName: z.string(),
4103
+ labels: z.record(z.string(), z.string()).optional(),
4104
+ listenerPort: z.int(),
4105
+ provider: z.nullable(
4106
+ z.union([
4107
+ z.lazy(() => TargetDeploymentProviderAwsAlb2$inboundSchema),
4108
+ z.lazy(() =>
4109
+ TargetDeploymentProviderAzureApplicationGatewayForContainers2$inboundSchema
4110
+ ),
4111
+ z.lazy(() => TargetDeploymentProviderGkeGateway2$inboundSchema),
4112
+ z.string(),
4113
+ ]),
4114
+ ).optional(),
4115
+ routeApi: z.literal("gateway"),
4116
+ });
4117
+
4118
+ export function targetDeploymentRouteGateway1FromJSON(
4119
+ jsonString: string,
4120
+ ): SafeParseResult<TargetDeploymentRouteGateway1, SDKValidationError> {
4121
+ return safeParse(
4122
+ jsonString,
4123
+ (x) => TargetDeploymentRouteGateway1$inboundSchema.parse(JSON.parse(x)),
4124
+ `Failed to parse 'TargetDeploymentRouteGateway1' from JSON`,
4125
+ );
4126
+ }
4127
+
4128
+ /** @internal */
4129
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1$inboundSchema:
4130
+ z.ZodEnum<
4131
+ typeof TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1
4132
+ > = z.enum(TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1);
4133
+
4134
+ /** @internal */
4135
+ export const TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema:
4136
+ z.ZodType<
4137
+ TargetDeploymentProviderAzureApplicationGatewayForContainers1,
4138
+ unknown
4139
+ > = z.object({
4140
+ albName: z.nullable(z.string()).optional(),
4141
+ albNamespace: z.nullable(z.string()).optional(),
4142
+ frontend: z.string(),
4143
+ provider:
4144
+ TargetDeploymentProviderAzureApplicationGatewayForContainersEnum1$inboundSchema,
4145
+ });
4146
+
4147
+ export function targetDeploymentProviderAzureApplicationGatewayForContainers1FromJSON(
4148
+ jsonString: string,
4149
+ ): SafeParseResult<
4150
+ TargetDeploymentProviderAzureApplicationGatewayForContainers1,
4151
+ SDKValidationError
4152
+ > {
4153
+ return safeParse(
4154
+ jsonString,
4155
+ (x) =>
4156
+ TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema
4157
+ .parse(JSON.parse(x)),
4158
+ `Failed to parse 'TargetDeploymentProviderAzureApplicationGatewayForContainers1' from JSON`,
4159
+ );
4160
+ }
4161
+
4162
+ /** @internal */
4163
+ export const TargetDeploymentProviderGkeGatewayEnum1$inboundSchema: z.ZodEnum<
4164
+ typeof TargetDeploymentProviderGkeGatewayEnum1
4165
+ > = z.enum(TargetDeploymentProviderGkeGatewayEnum1);
4166
+
4167
+ /** @internal */
4168
+ export const TargetDeploymentProviderGkeGateway1$inboundSchema: z.ZodType<
4169
+ TargetDeploymentProviderGkeGateway1,
4170
+ unknown
4171
+ > = z.object({
4172
+ provider: TargetDeploymentProviderGkeGatewayEnum1$inboundSchema,
4173
+ staticAddressName: z.nullable(z.string()).optional(),
4174
+ });
4175
+
4176
+ export function targetDeploymentProviderGkeGateway1FromJSON(
4177
+ jsonString: string,
4178
+ ): SafeParseResult<TargetDeploymentProviderGkeGateway1, SDKValidationError> {
4179
+ return safeParse(
4180
+ jsonString,
4181
+ (x) =>
4182
+ TargetDeploymentProviderGkeGateway1$inboundSchema.parse(JSON.parse(x)),
4183
+ `Failed to parse 'TargetDeploymentProviderGkeGateway1' from JSON`,
4184
+ );
4185
+ }
4186
+
4187
+ /** @internal */
4188
+ export const TargetDeploymentProviderAwsAlbEnum1$inboundSchema: z.ZodEnum<
4189
+ typeof TargetDeploymentProviderAwsAlbEnum1
4190
+ > = z.enum(TargetDeploymentProviderAwsAlbEnum1);
4191
+
4192
+ /** @internal */
4193
+ export const TargetDeploymentProviderAwsAlb1$inboundSchema: z.ZodType<
4194
+ TargetDeploymentProviderAwsAlb1,
4195
+ unknown
4196
+ > = z.object({
4197
+ ipAddressType: z.nullable(z.string()).optional(),
4198
+ provider: TargetDeploymentProviderAwsAlbEnum1$inboundSchema,
4199
+ scheme: z.string(),
4200
+ subnetIds: z.array(z.string()).optional(),
4201
+ targetType: z.string(),
4202
+ });
4203
+
4204
+ export function targetDeploymentProviderAwsAlb1FromJSON(
4205
+ jsonString: string,
4206
+ ): SafeParseResult<TargetDeploymentProviderAwsAlb1, SDKValidationError> {
4207
+ return safeParse(
4208
+ jsonString,
4209
+ (x) => TargetDeploymentProviderAwsAlb1$inboundSchema.parse(JSON.parse(x)),
4210
+ `Failed to parse 'TargetDeploymentProviderAwsAlb1' from JSON`,
4211
+ );
4212
+ }
4213
+
4214
+ /** @internal */
4215
+ export const TargetDeploymentProviderUnion1$inboundSchema: z.ZodType<
4216
+ TargetDeploymentProviderUnion1,
4217
+ unknown
4218
+ > = z.union([
4219
+ z.lazy(() => TargetDeploymentProviderAwsAlb1$inboundSchema),
4220
+ z.lazy(() =>
4221
+ TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema
4222
+ ),
4223
+ z.lazy(() => TargetDeploymentProviderGkeGateway1$inboundSchema),
4224
+ z.string(),
4225
+ ]);
4226
+
4227
+ export function targetDeploymentProviderUnion1FromJSON(
4228
+ jsonString: string,
4229
+ ): SafeParseResult<TargetDeploymentProviderUnion1, SDKValidationError> {
4230
+ return safeParse(
4231
+ jsonString,
4232
+ (x) => TargetDeploymentProviderUnion1$inboundSchema.parse(JSON.parse(x)),
4233
+ `Failed to parse 'TargetDeploymentProviderUnion1' from JSON`,
4234
+ );
4235
+ }
4236
+
4237
+ /** @internal */
4238
+ export const TargetDeploymentRouteIngress1$inboundSchema: z.ZodType<
4239
+ TargetDeploymentRouteIngress1,
4240
+ unknown
4241
+ > = z.object({
4242
+ annotations: z.record(z.string(), z.string()).optional(),
4243
+ controller: z.nullable(z.string()).optional(),
4244
+ ingressClassName: z.string(),
4245
+ labels: z.record(z.string(), z.string()).optional(),
4246
+ provider: z.nullable(
4247
+ z.union([
4248
+ z.lazy(() => TargetDeploymentProviderAwsAlb1$inboundSchema),
4249
+ z.lazy(() =>
4250
+ TargetDeploymentProviderAzureApplicationGatewayForContainers1$inboundSchema
4251
+ ),
4252
+ z.lazy(() => TargetDeploymentProviderGkeGateway1$inboundSchema),
4253
+ z.string(),
4254
+ ]),
4255
+ ).optional(),
4256
+ routeApi: z.literal("ingress"),
4257
+ });
4258
+
4259
+ export function targetDeploymentRouteIngress1FromJSON(
4260
+ jsonString: string,
4261
+ ): SafeParseResult<TargetDeploymentRouteIngress1, SDKValidationError> {
4262
+ return safeParse(
4263
+ jsonString,
4264
+ (x) => TargetDeploymentRouteIngress1$inboundSchema.parse(JSON.parse(x)),
4265
+ `Failed to parse 'TargetDeploymentRouteIngress1' from JSON`,
4266
+ );
4267
+ }
4268
+
4269
+ /** @internal */
4270
+ export const TargetDeploymentRouteUnion1$inboundSchema: z.ZodType<
4271
+ TargetDeploymentRouteUnion1,
4272
+ unknown
4273
+ > = z.union([
4274
+ z.lazy(() => TargetDeploymentRouteIngress1$inboundSchema),
4275
+ z.lazy(() => TargetDeploymentRouteGateway1$inboundSchema),
4276
+ ]);
4277
+
4278
+ export function targetDeploymentRouteUnion1FromJSON(
4279
+ jsonString: string,
4280
+ ): SafeParseResult<TargetDeploymentRouteUnion1, SDKValidationError> {
4281
+ return safeParse(
4282
+ jsonString,
4283
+ (x) => TargetDeploymentRouteUnion1$inboundSchema.parse(JSON.parse(x)),
4284
+ `Failed to parse 'TargetDeploymentRouteUnion1' from JSON`,
4285
+ );
4286
+ }
4287
+
4288
+ /** @internal */
4289
+ export const TargetDeploymentExposureGenerated$inboundSchema: z.ZodType<
4290
+ TargetDeploymentExposureGenerated,
4291
+ unknown
4292
+ > = z.object({
4293
+ certificate: z.union([
4294
+ z.lazy(() => TargetDeploymentCertificateTLSSecretRef1$inboundSchema),
4295
+ z.lazy(() => TargetDeploymentCertificateManagedAcmImport1$inboundSchema),
4296
+ z.lazy(() => TargetDeploymentCertificateAwsAcmArn1$inboundSchema),
4297
+ z.lazy(() => TargetDeploymentCertificateManagedTLSSecret1$inboundSchema),
4298
+ z.lazy(() => TargetDeploymentCertificateNone1$inboundSchema),
4299
+ ]),
4300
+ mode: TargetDeploymentModeGenerated$inboundSchema,
4301
+ route: z.union([
4302
+ z.lazy(() => TargetDeploymentRouteIngress1$inboundSchema),
4303
+ z.lazy(() => TargetDeploymentRouteGateway1$inboundSchema),
4304
+ ]),
4305
+ });
4306
+
4307
+ export function targetDeploymentExposureGeneratedFromJSON(
4308
+ jsonString: string,
4309
+ ): SafeParseResult<TargetDeploymentExposureGenerated, SDKValidationError> {
4310
+ return safeParse(
4311
+ jsonString,
4312
+ (x) => TargetDeploymentExposureGenerated$inboundSchema.parse(JSON.parse(x)),
4313
+ `Failed to parse 'TargetDeploymentExposureGenerated' from JSON`,
4314
+ );
4315
+ }
4316
+
4317
+ /** @internal */
4318
+ export const TargetDeploymentModeDisabled$inboundSchema: z.ZodEnum<
4319
+ typeof TargetDeploymentModeDisabled
4320
+ > = z.enum(TargetDeploymentModeDisabled);
4321
+
4322
+ /** @internal */
4323
+ export const TargetDeploymentExposureDisabled$inboundSchema: z.ZodType<
4324
+ TargetDeploymentExposureDisabled,
4325
+ unknown
4326
+ > = z.object({
4327
+ mode: TargetDeploymentModeDisabled$inboundSchema,
4328
+ });
4329
+
4330
+ export function targetDeploymentExposureDisabledFromJSON(
4331
+ jsonString: string,
4332
+ ): SafeParseResult<TargetDeploymentExposureDisabled, SDKValidationError> {
4333
+ return safeParse(
4334
+ jsonString,
4335
+ (x) => TargetDeploymentExposureDisabled$inboundSchema.parse(JSON.parse(x)),
4336
+ `Failed to parse 'TargetDeploymentExposureDisabled' from JSON`,
4337
+ );
4338
+ }
4339
+
4340
+ /** @internal */
4341
+ export const TargetDeploymentExposureUnion$inboundSchema: z.ZodType<
4342
+ TargetDeploymentExposureUnion,
4343
+ unknown
4344
+ > = z.union([
4345
+ z.lazy(() => TargetDeploymentExposureCustom$inboundSchema),
4346
+ z.lazy(() => TargetDeploymentExposureGenerated$inboundSchema),
4347
+ z.lazy(() => TargetDeploymentExposureDisabled$inboundSchema),
4348
+ z.string(),
4349
+ ]);
4350
+
4351
+ export function targetDeploymentExposureUnionFromJSON(
4352
+ jsonString: string,
4353
+ ): SafeParseResult<TargetDeploymentExposureUnion, SDKValidationError> {
4354
+ return safeParse(
4355
+ jsonString,
4356
+ (x) => TargetDeploymentExposureUnion$inboundSchema.parse(JSON.parse(x)),
4357
+ `Failed to parse 'TargetDeploymentExposureUnion' from JSON`,
4358
+ );
4359
+ }
4360
+
4361
+ /** @internal */
4362
+ export const TargetDeploymentKubernetes$inboundSchema: z.ZodType<
4363
+ TargetDeploymentKubernetes,
4364
+ unknown
4365
+ > = z.object({
4366
+ cluster: z.nullable(
4367
+ z.union([z.lazy(() => TargetDeploymentCluster$inboundSchema), z.string()]),
4368
+ ).optional(),
4369
+ exposure: z.nullable(
4370
+ z.union([
4371
+ z.lazy(() => TargetDeploymentExposureCustom$inboundSchema),
4372
+ z.lazy(() => TargetDeploymentExposureGenerated$inboundSchema),
4373
+ z.lazy(() => TargetDeploymentExposureDisabled$inboundSchema),
4374
+ z.string(),
4375
+ ]),
4376
+ ).optional(),
4377
+ });
4378
+
4379
+ export function targetDeploymentKubernetesFromJSON(
4380
+ jsonString: string,
4381
+ ): SafeParseResult<TargetDeploymentKubernetes, SDKValidationError> {
4382
+ return safeParse(
4383
+ jsonString,
4384
+ (x) => TargetDeploymentKubernetes$inboundSchema.parse(JSON.parse(x)),
4385
+ `Failed to parse 'TargetDeploymentKubernetes' from JSON`,
4386
+ );
4387
+ }
4388
+
4389
+ /** @internal */
4390
+ export const TargetDeploymentKubernetesUnion$inboundSchema: z.ZodType<
4391
+ TargetDeploymentKubernetesUnion,
4392
+ unknown
4393
+ > = z.union([
4394
+ z.lazy(() => TargetDeploymentKubernetes$inboundSchema),
4395
+ z.string(),
4396
+ ]);
4397
+
4398
+ export function targetDeploymentKubernetesUnionFromJSON(
4399
+ jsonString: string,
4400
+ ): SafeParseResult<TargetDeploymentKubernetesUnion, SDKValidationError> {
4401
+ return safeParse(
4402
+ jsonString,
4403
+ (x) => TargetDeploymentKubernetesUnion$inboundSchema.parse(JSON.parse(x)),
4404
+ `Failed to parse 'TargetDeploymentKubernetesUnion' from JSON`,
4405
+ );
4406
+ }
4407
+
4408
+ /** @internal */
4409
+ export const TargetDeploymentTypeByoVnetAzure$inboundSchema: z.ZodEnum<
4410
+ typeof TargetDeploymentTypeByoVnetAzure
4411
+ > = z.enum(TargetDeploymentTypeByoVnetAzure);
4412
+
4413
+ /** @internal */
4414
+ export const TargetDeploymentNetworkByoVnetAzure$inboundSchema: z.ZodType<
4415
+ TargetDeploymentNetworkByoVnetAzure,
4416
+ unknown
4417
+ > = z.object({
4418
+ application_gateway_subnet_name: z.nullable(z.string()).optional(),
4419
+ private_endpoint_subnet_name: z.nullable(z.string()).optional(),
4420
+ private_subnet_name: z.string(),
4421
+ public_subnet_name: z.string(),
4422
+ type: TargetDeploymentTypeByoVnetAzure$inboundSchema,
4423
+ vnet_resource_id: z.string(),
4424
+ }).transform((v) => {
4425
+ return remap$(v, {
4426
+ "application_gateway_subnet_name": "applicationGatewaySubnetName",
4427
+ "private_endpoint_subnet_name": "privateEndpointSubnetName",
4428
+ "private_subnet_name": "privateSubnetName",
4429
+ "public_subnet_name": "publicSubnetName",
4430
+ "vnet_resource_id": "vnetResourceId",
4431
+ });
4432
+ });
4433
+
4434
+ export function targetDeploymentNetworkByoVnetAzureFromJSON(
4435
+ jsonString: string,
4436
+ ): SafeParseResult<TargetDeploymentNetworkByoVnetAzure, SDKValidationError> {
4437
+ return safeParse(
4438
+ jsonString,
4439
+ (x) =>
4440
+ TargetDeploymentNetworkByoVnetAzure$inboundSchema.parse(JSON.parse(x)),
4441
+ `Failed to parse 'TargetDeploymentNetworkByoVnetAzure' from JSON`,
4442
+ );
4443
+ }
4444
+
4445
+ /** @internal */
4446
+ export const TargetDeploymentTypeByoVpcGcp$inboundSchema: z.ZodEnum<
4447
+ typeof TargetDeploymentTypeByoVpcGcp
4448
+ > = z.enum(TargetDeploymentTypeByoVpcGcp);
4449
+
4450
+ /** @internal */
4451
+ export const TargetDeploymentNetworkByoVpcGcp$inboundSchema: z.ZodType<
4452
+ TargetDeploymentNetworkByoVpcGcp,
4453
+ unknown
4454
+ > = z.object({
4455
+ network_name: z.string(),
4456
+ region: z.string(),
4457
+ subnet_name: z.string(),
4458
+ type: TargetDeploymentTypeByoVpcGcp$inboundSchema,
4459
+ }).transform((v) => {
4460
+ return remap$(v, {
4461
+ "network_name": "networkName",
4462
+ "subnet_name": "subnetName",
4463
+ });
4464
+ });
4465
+
4466
+ export function targetDeploymentNetworkByoVpcGcpFromJSON(
4467
+ jsonString: string,
4468
+ ): SafeParseResult<TargetDeploymentNetworkByoVpcGcp, SDKValidationError> {
4469
+ return safeParse(
4470
+ jsonString,
4471
+ (x) => TargetDeploymentNetworkByoVpcGcp$inboundSchema.parse(JSON.parse(x)),
4472
+ `Failed to parse 'TargetDeploymentNetworkByoVpcGcp' from JSON`,
4473
+ );
4474
+ }
4475
+
4476
+ /** @internal */
4477
+ export const TargetDeploymentTypeByoVpcAws$inboundSchema: z.ZodEnum<
4478
+ typeof TargetDeploymentTypeByoVpcAws
4479
+ > = z.enum(TargetDeploymentTypeByoVpcAws);
4480
+
4481
+ /** @internal */
4482
+ export const TargetDeploymentNetworkByoVpcAws$inboundSchema: z.ZodType<
4483
+ TargetDeploymentNetworkByoVpcAws,
4484
+ unknown
4485
+ > = z.object({
4486
+ private_subnet_ids: z.array(z.string()),
4487
+ public_subnet_ids: z.array(z.string()),
4488
+ security_group_ids: z.array(z.string()).optional(),
4489
+ type: TargetDeploymentTypeByoVpcAws$inboundSchema,
4490
+ vpc_id: z.string(),
4491
+ }).transform((v) => {
4492
+ return remap$(v, {
4493
+ "private_subnet_ids": "privateSubnetIds",
4494
+ "public_subnet_ids": "publicSubnetIds",
4495
+ "security_group_ids": "securityGroupIds",
4496
+ "vpc_id": "vpcId",
4497
+ });
4498
+ });
4499
+
4500
+ export function targetDeploymentNetworkByoVpcAwsFromJSON(
4501
+ jsonString: string,
4502
+ ): SafeParseResult<TargetDeploymentNetworkByoVpcAws, SDKValidationError> {
4503
+ return safeParse(
4504
+ jsonString,
4505
+ (x) => TargetDeploymentNetworkByoVpcAws$inboundSchema.parse(JSON.parse(x)),
4506
+ `Failed to parse 'TargetDeploymentNetworkByoVpcAws' from JSON`,
4507
+ );
4508
+ }
4509
+
4510
+ /** @internal */
4511
+ export const TargetDeploymentTypeCreate$inboundSchema: z.ZodEnum<
4512
+ typeof TargetDeploymentTypeCreate
4513
+ > = z.enum(TargetDeploymentTypeCreate);
4514
+
4515
+ /** @internal */
4516
+ export const TargetDeploymentNetworkCreate$inboundSchema: z.ZodType<
4517
+ TargetDeploymentNetworkCreate,
4518
+ unknown
4519
+ > = z.object({
4520
+ availability_zones: z.int().optional(),
4521
+ cidr: z.nullable(z.string()).optional(),
4522
+ type: TargetDeploymentTypeCreate$inboundSchema,
4523
+ }).transform((v) => {
4524
+ return remap$(v, {
4525
+ "availability_zones": "availabilityZones",
4526
+ });
4527
+ });
4528
+
4529
+ export function targetDeploymentNetworkCreateFromJSON(
4530
+ jsonString: string,
4531
+ ): SafeParseResult<TargetDeploymentNetworkCreate, SDKValidationError> {
4532
+ return safeParse(
4533
+ jsonString,
4534
+ (x) => TargetDeploymentNetworkCreate$inboundSchema.parse(JSON.parse(x)),
4535
+ `Failed to parse 'TargetDeploymentNetworkCreate' from JSON`,
4536
+ );
4537
+ }
4538
+
4539
+ /** @internal */
4540
+ export const TargetDeploymentTypeUseDefault$inboundSchema: z.ZodEnum<
4541
+ typeof TargetDeploymentTypeUseDefault
4542
+ > = z.enum(TargetDeploymentTypeUseDefault);
4543
+
4544
+ /** @internal */
4545
+ export const TargetDeploymentNetworkUseDefault$inboundSchema: z.ZodType<
4546
+ TargetDeploymentNetworkUseDefault,
4547
+ unknown
4548
+ > = z.object({
4549
+ type: TargetDeploymentTypeUseDefault$inboundSchema,
4550
+ });
4551
+
4552
+ export function targetDeploymentNetworkUseDefaultFromJSON(
4553
+ jsonString: string,
4554
+ ): SafeParseResult<TargetDeploymentNetworkUseDefault, SDKValidationError> {
4555
+ return safeParse(
4556
+ jsonString,
4557
+ (x) => TargetDeploymentNetworkUseDefault$inboundSchema.parse(JSON.parse(x)),
4558
+ `Failed to parse 'TargetDeploymentNetworkUseDefault' from JSON`,
4559
+ );
4560
+ }
4561
+
4562
+ /** @internal */
4563
+ export const TargetDeploymentNetworkUnion$inboundSchema: z.ZodType<
4564
+ TargetDeploymentNetworkUnion,
4565
+ unknown
4566
+ > = z.union([
4567
+ z.lazy(() => TargetDeploymentNetworkByoVpcAws$inboundSchema),
4568
+ z.lazy(() => TargetDeploymentNetworkByoVpcGcp$inboundSchema),
4569
+ z.lazy(() => TargetDeploymentNetworkByoVnetAzure$inboundSchema),
4570
+ z.lazy(() => TargetDeploymentNetworkUseDefault$inboundSchema),
4571
+ z.lazy(() => TargetDeploymentNetworkCreate$inboundSchema),
4572
+ z.string(),
4573
+ ]);
4574
+
4575
+ export function targetDeploymentNetworkUnionFromJSON(
4576
+ jsonString: string,
4577
+ ): SafeParseResult<TargetDeploymentNetworkUnion, SDKValidationError> {
4578
+ return safeParse(
4579
+ jsonString,
4580
+ (x) => TargetDeploymentNetworkUnion$inboundSchema.parse(JSON.parse(x)),
4581
+ `Failed to parse 'TargetDeploymentNetworkUnion' from JSON`,
4582
+ );
4583
+ }
4584
+
4585
+ /** @internal */
4586
+ export const TargetDeploymentSetupManagement$inboundSchema: z.ZodEnum<
4587
+ typeof TargetDeploymentSetupManagement
4588
+ > = z.enum(TargetDeploymentSetupManagement);
4589
+
4590
+ /** @internal */
4591
+ export const TargetDeploymentTelemetry$inboundSchema: z.ZodEnum<
4592
+ typeof TargetDeploymentTelemetry
4593
+ > = z.enum(TargetDeploymentTelemetry);
4594
+
4595
+ /** @internal */
4596
+ export const TargetDeploymentUpdates$inboundSchema: z.ZodEnum<
4597
+ typeof TargetDeploymentUpdates
4598
+ > = z.enum(TargetDeploymentUpdates);
4599
+
4600
+ /** @internal */
4601
+ export const TargetDeploymentStackSettings$inboundSchema: z.ZodType<
4602
+ TargetDeploymentStackSettings,
4603
+ unknown
4604
+ > = z.object({
4605
+ compute: z.nullable(
4606
+ z.union([z.lazy(() => TargetDeploymentCompute$inboundSchema), z.string()]),
4607
+ ).optional(),
4608
+ deploymentModel: TargetDeploymentDeploymentModel$inboundSchema.optional(),
4609
+ domains: z.nullable(
4610
+ z.union([z.lazy(() => TargetDeploymentDomains$inboundSchema), z.string()]),
4611
+ ).optional(),
4612
+ endpointAccess: TargetDeploymentEndpointAccess$inboundSchema.optional(),
4613
+ externalBindings: z.nullable(
4614
+ z.record(z.string(), ExternalBindingUnion$inboundSchema),
4615
+ ).optional(),
4616
+ heartbeats: TargetDeploymentHeartbeats$inboundSchema.optional(),
4617
+ kubernetes: z.nullable(
4618
+ z.union([
4619
+ z.lazy(() => TargetDeploymentKubernetes$inboundSchema),
4620
+ z.string(),
4621
+ ]),
4622
+ ).optional(),
4623
+ network: z.nullable(
4624
+ z.union([
4625
+ z.lazy(() => TargetDeploymentNetworkByoVpcAws$inboundSchema),
4626
+ z.lazy(() => TargetDeploymentNetworkByoVpcGcp$inboundSchema),
4627
+ z.lazy(() => TargetDeploymentNetworkByoVnetAzure$inboundSchema),
4628
+ z.lazy(() => TargetDeploymentNetworkUseDefault$inboundSchema),
4629
+ z.lazy(() => TargetDeploymentNetworkCreate$inboundSchema),
4630
+ z.string(),
4631
+ ]),
4632
+ ).optional(),
4633
+ publicEndpoints: z.nullable(
4634
+ z.record(z.string(), z.record(z.string(), z.string())),
4635
+ ).optional(),
4636
+ quotaWarningOverrides: z.array(z.string()).optional(),
4637
+ setupManagement: TargetDeploymentSetupManagement$inboundSchema.optional(),
4638
+ telemetry: TargetDeploymentTelemetry$inboundSchema.optional(),
4639
+ updates: TargetDeploymentUpdates$inboundSchema.optional(),
4640
+ });
4641
+
4642
+ export function targetDeploymentStackSettingsFromJSON(
4643
+ jsonString: string,
4644
+ ): SafeParseResult<TargetDeploymentStackSettings, SDKValidationError> {
4645
+ return safeParse(
4646
+ jsonString,
4647
+ (x) => TargetDeploymentStackSettings$inboundSchema.parse(JSON.parse(x)),
4648
+ `Failed to parse 'TargetDeploymentStackSettings' from JSON`,
4649
+ );
4650
+ }
4651
+
4652
+ /** @internal */
4653
+ export const TargetDeploymentVolumeRestore$inboundSchema: z.ZodType<
4654
+ TargetDeploymentVolumeRestore,
4655
+ unknown
4656
+ > = z.object({
4657
+ ordinal: z.int(),
4658
+ requestId: z.string(),
4659
+ resourceId: z.string(),
4660
+ snapshotId: z.string(),
4661
+ });
4662
+
4663
+ export function targetDeploymentVolumeRestoreFromJSON(
4664
+ jsonString: string,
4665
+ ): SafeParseResult<TargetDeploymentVolumeRestore, SDKValidationError> {
4666
+ return safeParse(
4667
+ jsonString,
4668
+ (x) => TargetDeploymentVolumeRestore$inboundSchema.parse(JSON.parse(x)),
4669
+ `Failed to parse 'TargetDeploymentVolumeRestore' from JSON`,
4670
+ );
4671
+ }