@alienplatform/platform-api 3.3.32 → 3.3.34

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