@alienplatform/platform-api 3.3.37 → 3.3.38

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