@alienplatform/platform-api 3.3.32 → 3.3.33

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