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