@alienplatform/platform-api 3.3.36 → 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
@@ -1,2737 +1,31 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4";
5
- import { remap as remap$ } from "../lib/primitives.js";
6
- import { collectExtraKeys as collectExtraKeys$, safeParse, } from "../lib/schemas.js";
7
- import { DeploymentStateDeployerSecret$inboundSchema, DeploymentStateDeployerSecret$outboundSchema, DeploymentStateInitialSetupAuthority$inboundSchema, DeploymentStateInitialSetupAuthority$outboundSchema, } from "./deploymentstatependingpreparedstackdefaultunion.js";
8
- import { DeploymentStatePendingPreparedStackUnion$inboundSchema, DeploymentStatePendingPreparedStackUnion$outboundSchema, DeploymentStatePreparedStackCustom$inboundSchema, DeploymentStatePreparedStackCustom$outboundSchema, DeploymentStatePreparedStackInput$inboundSchema, DeploymentStatePreparedStackInput$outboundSchema, DeploymentStatePreparedStackPlugins$inboundSchema, DeploymentStatePreparedStackPlugins$outboundSchema, } from "./deploymentstatepreparedstackplugins.js";
9
- export const DeploymentStatePreparedStackManagementEnum = {
10
- Auto: "auto",
11
- };
12
- /**
13
- * IAM effect. Defaults to Allow.
14
- */
15
- export const DeploymentStatePreparedStackOverrideEffect = {
16
- Allow: "Allow",
17
- Deny: "Deny",
18
- };
19
- /**
20
- * IAM effect. Defaults to Allow.
21
- */
22
- export const DeploymentStatePreparedStackExtendEffect = {
23
- Allow: "Allow",
24
- Deny: "Deny",
25
- };
26
- /**
27
- * IAM effect. Defaults to Allow.
28
- */
29
- export const DeploymentStatePreparedStackProfileEffect = {
30
- Allow: "Allow",
31
- Deny: "Deny",
32
- };
33
- /**
34
- * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed.
35
- */
36
- export const DeploymentStatePreparedStackLifecycle = {
37
- Frozen: "frozen",
38
- Live: "live",
39
- };
40
- /**
41
- * Represents the target cloud platform.
42
- */
43
- export const DeploymentStatePreparedStackSupportedPlatform = {
44
- Aws: "aws",
45
- Gcp: "gcp",
46
- Azure: "azure",
47
- Kubernetes: "kubernetes",
48
- Machines: "machines",
49
- Local: "local",
50
- Test: "test",
51
- };
52
- export const DeploymentStateTypeAwsSandbox = {
53
- AwsSandbox: "awsSandbox",
54
- };
55
- /**
56
- * Represents the target cloud platform.
57
- */
58
- export const DeploymentStateStackStatePlatform = {
59
- Aws: "aws",
60
- Gcp: "gcp",
61
- Azure: "azure",
62
- Kubernetes: "kubernetes",
63
- Machines: "machines",
64
- Local: "local",
65
- Test: "test",
66
- };
67
- /**
68
- * Represents the target cloud platform.
69
- */
70
- export const DeploymentStateControllerPlatformEnum = {
71
- Aws: "aws",
72
- Gcp: "gcp",
73
- Azure: "azure",
74
- Kubernetes: "kubernetes",
75
- Machines: "machines",
76
- Local: "local",
77
- Test: "test",
78
- };
79
- /**
80
- * Describes the lifecycle of a resource within a stack, determining how it's managed and deployed.
81
- */
82
- export const DeploymentStateStackStateLifecycleEnum = {
83
- Frozen: "frozen",
84
- Live: "live",
85
- };
86
- /**
87
- * Represents the high-level status of a resource during its lifecycle.
88
- */
89
- export const DeploymentStateStackStateStatus = {
90
- Pending: "pending",
91
- Provisioning: "provisioning",
92
- ProvisionFailed: "provision-failed",
93
- Running: "running",
94
- Updating: "updating",
95
- UpdateFailed: "update-failed",
96
- Deleting: "deleting",
97
- DeleteFailed: "delete-failed",
98
- TeardownRequired: "teardown-required",
99
- Deleted: "deleted",
100
- RefreshFailed: "refresh-failed",
101
- };
102
- /**
103
- * Deployment status in the deployment lifecycle.
104
- *
105
- * @remarks
106
- *
107
- * For observe-only deployments with no release or stack state, `Running`
108
- * means the Operator is attached. Connectivity comes from `lastHeartbeatAt`;
109
- * resource health comes from inventory and resource heartbeat data.
110
- */
111
- export const DeploymentStateStatus = {
112
- Pending: "pending",
113
- PreflightsFailed: "preflights-failed",
114
- InitialSetup: "initial-setup",
115
- InitialSetupFailed: "initial-setup-failed",
116
- Provisioning: "provisioning",
117
- WaitingForMachines: "waiting-for-machines",
118
- WaitingForSecrets: "waiting-for-secrets",
119
- ProvisioningFailed: "provisioning-failed",
120
- Running: "running",
121
- RefreshFailed: "refresh-failed",
122
- UpdatePending: "update-pending",
123
- Updating: "updating",
124
- UpdateFailed: "update-failed",
125
- DeletePending: "delete-pending",
126
- Deleting: "deleting",
127
- DeleteFailed: "delete-failed",
128
- TeardownRequired: "teardown-required",
129
- TeardownFailed: "teardown-failed",
130
- Deleted: "deleted",
131
- Error: "error",
132
- };
133
- export const TargetReleaseTypeStringList = {
134
- StringList: "stringList",
135
- };
136
- export const TargetReleaseTypeBoolean = {
137
- Boolean: "boolean",
138
- };
139
- export const TargetReleaseTypeNumber = {
140
- Number: "number",
141
- };
142
- export const TargetReleaseTypeString = {
143
- String: "string",
144
- };
145
- /**
146
- * Environment variable handling for a stack input mapping.
147
- */
148
- export const TargetReleaseTypeEnvEnum = {
149
- Plain: "plain",
150
- Secret: "secret",
151
- };
152
- /**
153
- * Primitive stack input kind.
154
- */
155
- export const TargetReleaseKind = {
156
- String: "string",
157
- Secret: "secret",
158
- Number: "number",
159
- Integer: "integer",
160
- Boolean: "boolean",
161
- Enum: "enum",
162
- StringList: "stringList",
163
- };
164
- /**
165
- * Represents the target cloud platform.
166
- */
167
- export const TargetReleasePlatform = {
168
- Aws: "aws",
169
- Gcp: "gcp",
170
- Azure: "azure",
171
- Kubernetes: "kubernetes",
172
- Machines: "machines",
173
- Local: "local",
174
- Test: "test",
175
- };
176
- /**
177
- * Who can provide a stack input value.
178
- */
179
- export const TargetReleaseProvidedBy = {
180
- Developer: "developer",
181
- Deployer: "deployer",
182
- };
183
- /**
184
- * Whether matching operations run without approval.
185
- */
186
- export const TargetReleaseCustomDecision = {
187
- Auto: "auto",
188
- Manual: "manual",
189
- };
190
- /**
191
- * Whether matching operations run without approval.
192
- */
193
- export const TargetReleaseApprovalCustomEnum = {
194
- Auto: "auto",
195
- Manual: "manual",
196
- };
197
- /**
198
- * Whether matching operations run without approval.
199
- */
200
- export const TargetReleasePluginsDecision = {
201
- Auto: "auto",
202
- Manual: "manual",
203
- };
204
- /**
205
- * Whether matching operations run without approval.
206
- */
207
- export const TargetReleaseApprovalPluginsEnum = {
208
- Auto: "auto",
209
- Manual: "manual",
210
- };
211
- /** @internal */
212
- export const DeploymentStatePreparedStackOperations$inboundSchema = z.object({
213
- custom: z.array(DeploymentStatePreparedStackCustom$inboundSchema).optional(),
214
- plugins: z.record(z.string(), DeploymentStatePreparedStackPlugins$inboundSchema).optional(),
215
- });
216
- /** @internal */
217
- export const DeploymentStatePreparedStackOperations$outboundSchema = z.object({
218
- custom: z.array(DeploymentStatePreparedStackCustom$outboundSchema).optional(),
219
- plugins: z.record(z.string(), DeploymentStatePreparedStackPlugins$outboundSchema).optional(),
220
- });
221
- export function deploymentStatePreparedStackOperationsToJSON(deploymentStatePreparedStackOperations) {
222
- return JSON.stringify(DeploymentStatePreparedStackOperations$outboundSchema.parse(deploymentStatePreparedStackOperations));
223
- }
224
- export function deploymentStatePreparedStackOperationsFromJSON(jsonString) {
225
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOperations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOperations' from JSON`);
226
- }
227
- /** @internal */
228
- export const DeploymentStatePreparedStackOperationsUnion$inboundSchema = z.union([
229
- z.lazy(() => DeploymentStatePreparedStackOperations$inboundSchema),
230
- z.string(),
231
- ]);
232
- /** @internal */
233
- export const DeploymentStatePreparedStackOperationsUnion$outboundSchema = z.union([
234
- z.lazy(() => DeploymentStatePreparedStackOperations$outboundSchema),
235
- z.string(),
236
- ]);
237
- export function deploymentStatePreparedStackOperationsUnionToJSON(deploymentStatePreparedStackOperationsUnion) {
238
- return JSON.stringify(DeploymentStatePreparedStackOperationsUnion$outboundSchema.parse(deploymentStatePreparedStackOperationsUnion));
239
- }
240
- export function deploymentStatePreparedStackOperationsUnionFromJSON(jsonString) {
241
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOperationsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOperationsUnion' from JSON`);
242
- }
243
- /** @internal */
244
- export const DeploymentStatePreparedStackManagementEnum$inboundSchema = z.enum(DeploymentStatePreparedStackManagementEnum);
245
- /** @internal */
246
- export const DeploymentStatePreparedStackManagementEnum$outboundSchema = DeploymentStatePreparedStackManagementEnum$inboundSchema;
247
- /** @internal */
248
- export const DeploymentStatePreparedStackOverrideAwResource$inboundSchema = z.object({
249
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
250
- notResources: z.array(z.string()).optional(),
251
- resources: z.array(z.string()),
252
- });
253
- /** @internal */
254
- export const DeploymentStatePreparedStackOverrideAwResource$outboundSchema = z.object({
255
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
256
- notResources: z.array(z.string()).optional(),
257
- resources: z.array(z.string()),
258
- });
259
- export function deploymentStatePreparedStackOverrideAwResourceToJSON(deploymentStatePreparedStackOverrideAwResource) {
260
- return JSON.stringify(DeploymentStatePreparedStackOverrideAwResource$outboundSchema.parse(deploymentStatePreparedStackOverrideAwResource));
261
- }
262
- export function deploymentStatePreparedStackOverrideAwResourceFromJSON(jsonString) {
263
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAwResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAwResource' from JSON`);
264
- }
265
- /** @internal */
266
- export const DeploymentStatePreparedStackOverrideAwStack$inboundSchema = z.object({
267
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
268
- notResources: z.array(z.string()).optional(),
269
- resources: z.array(z.string()),
270
- });
271
- /** @internal */
272
- export const DeploymentStatePreparedStackOverrideAwStack$outboundSchema = z.object({
273
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
274
- notResources: z.array(z.string()).optional(),
275
- resources: z.array(z.string()),
276
- });
277
- export function deploymentStatePreparedStackOverrideAwStackToJSON(deploymentStatePreparedStackOverrideAwStack) {
278
- return JSON.stringify(DeploymentStatePreparedStackOverrideAwStack$outboundSchema.parse(deploymentStatePreparedStackOverrideAwStack));
279
- }
280
- export function deploymentStatePreparedStackOverrideAwStackFromJSON(jsonString) {
281
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAwStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAwStack' from JSON`);
282
- }
283
- /** @internal */
284
- export const DeploymentStatePreparedStackOverrideAwBinding$inboundSchema = z.object({
285
- resource: z.lazy(() => DeploymentStatePreparedStackOverrideAwResource$inboundSchema).optional(),
286
- stack: z.lazy(() => DeploymentStatePreparedStackOverrideAwStack$inboundSchema).optional(),
287
- });
288
- /** @internal */
289
- export const DeploymentStatePreparedStackOverrideAwBinding$outboundSchema = z.object({
290
- resource: z.lazy(() => DeploymentStatePreparedStackOverrideAwResource$outboundSchema).optional(),
291
- stack: z.lazy(() => DeploymentStatePreparedStackOverrideAwStack$outboundSchema).optional(),
292
- });
293
- export function deploymentStatePreparedStackOverrideAwBindingToJSON(deploymentStatePreparedStackOverrideAwBinding) {
294
- return JSON.stringify(DeploymentStatePreparedStackOverrideAwBinding$outboundSchema.parse(deploymentStatePreparedStackOverrideAwBinding));
295
- }
296
- export function deploymentStatePreparedStackOverrideAwBindingFromJSON(jsonString) {
297
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAwBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAwBinding' from JSON`);
298
- }
299
- /** @internal */
300
- export const DeploymentStatePreparedStackOverrideEffect$inboundSchema = z.enum(DeploymentStatePreparedStackOverrideEffect);
301
- /** @internal */
302
- export const DeploymentStatePreparedStackOverrideEffect$outboundSchema = DeploymentStatePreparedStackOverrideEffect$inboundSchema;
303
- /** @internal */
304
- export const DeploymentStatePreparedStackOverrideAwGrant$inboundSchema = z.object({
305
- actions: z.nullable(z.array(z.string())).optional(),
306
- dataActions: z.nullable(z.array(z.string())).optional(),
307
- permissions: z.nullable(z.array(z.string())).optional(),
308
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
309
- residualPermissions: z.nullable(z.array(z.string())).optional(),
310
- });
311
- /** @internal */
312
- export const DeploymentStatePreparedStackOverrideAwGrant$outboundSchema = z.object({
313
- actions: z.nullable(z.array(z.string())).optional(),
314
- dataActions: z.nullable(z.array(z.string())).optional(),
315
- permissions: z.nullable(z.array(z.string())).optional(),
316
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
317
- residualPermissions: z.nullable(z.array(z.string())).optional(),
318
- });
319
- export function deploymentStatePreparedStackOverrideAwGrantToJSON(deploymentStatePreparedStackOverrideAwGrant) {
320
- return JSON.stringify(DeploymentStatePreparedStackOverrideAwGrant$outboundSchema.parse(deploymentStatePreparedStackOverrideAwGrant));
321
- }
322
- export function deploymentStatePreparedStackOverrideAwGrantFromJSON(jsonString) {
323
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAwGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAwGrant' from JSON`);
324
- }
325
- /** @internal */
326
- export const DeploymentStatePreparedStackOverrideAw$inboundSchema = z.object({
327
- binding: z.lazy(() => DeploymentStatePreparedStackOverrideAwBinding$inboundSchema),
328
- description: z.nullable(z.string()).optional(),
329
- effect: DeploymentStatePreparedStackOverrideEffect$inboundSchema.optional(),
330
- grant: z.lazy(() => DeploymentStatePreparedStackOverrideAwGrant$inboundSchema),
331
- label: z.nullable(z.string()).optional(),
332
- });
333
- /** @internal */
334
- export const DeploymentStatePreparedStackOverrideAw$outboundSchema = z.object({
335
- binding: z.lazy(() => DeploymentStatePreparedStackOverrideAwBinding$outboundSchema),
336
- description: z.nullable(z.string()).optional(),
337
- effect: DeploymentStatePreparedStackOverrideEffect$outboundSchema.optional(),
338
- grant: z.lazy(() => DeploymentStatePreparedStackOverrideAwGrant$outboundSchema),
339
- label: z.nullable(z.string()).optional(),
340
- });
341
- export function deploymentStatePreparedStackOverrideAwToJSON(deploymentStatePreparedStackOverrideAw) {
342
- return JSON.stringify(DeploymentStatePreparedStackOverrideAw$outboundSchema.parse(deploymentStatePreparedStackOverrideAw));
343
- }
344
- export function deploymentStatePreparedStackOverrideAwFromJSON(jsonString) {
345
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAw$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAw' from JSON`);
346
- }
347
- /** @internal */
348
- export const DeploymentStatePreparedStackOverrideAzureResource$inboundSchema = z
349
- .object({
350
- scope: z.string(),
351
- });
352
- /** @internal */
353
- export const DeploymentStatePreparedStackOverrideAzureResource$outboundSchema = z.object({
354
- scope: z.string(),
355
- });
356
- export function deploymentStatePreparedStackOverrideAzureResourceToJSON(deploymentStatePreparedStackOverrideAzureResource) {
357
- return JSON.stringify(DeploymentStatePreparedStackOverrideAzureResource$outboundSchema.parse(deploymentStatePreparedStackOverrideAzureResource));
358
- }
359
- export function deploymentStatePreparedStackOverrideAzureResourceFromJSON(jsonString) {
360
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAzureResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAzureResource' from JSON`);
361
- }
362
- /** @internal */
363
- export const DeploymentStatePreparedStackOverrideAzureStack$inboundSchema = z.object({
364
- scope: z.string(),
365
- });
366
- /** @internal */
367
- export const DeploymentStatePreparedStackOverrideAzureStack$outboundSchema = z.object({
368
- scope: z.string(),
369
- });
370
- export function deploymentStatePreparedStackOverrideAzureStackToJSON(deploymentStatePreparedStackOverrideAzureStack) {
371
- return JSON.stringify(DeploymentStatePreparedStackOverrideAzureStack$outboundSchema.parse(deploymentStatePreparedStackOverrideAzureStack));
372
- }
373
- export function deploymentStatePreparedStackOverrideAzureStackFromJSON(jsonString) {
374
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAzureStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAzureStack' from JSON`);
375
- }
376
- /** @internal */
377
- export const DeploymentStatePreparedStackOverrideAzureBinding$inboundSchema = z
378
- .object({
379
- resource: z.lazy(() => DeploymentStatePreparedStackOverrideAzureResource$inboundSchema).optional(),
380
- stack: z.lazy(() => DeploymentStatePreparedStackOverrideAzureStack$inboundSchema).optional(),
381
- });
382
- /** @internal */
383
- export const DeploymentStatePreparedStackOverrideAzureBinding$outboundSchema = z.object({
384
- resource: z.lazy(() => DeploymentStatePreparedStackOverrideAzureResource$outboundSchema).optional(),
385
- stack: z.lazy(() => DeploymentStatePreparedStackOverrideAzureStack$outboundSchema).optional(),
386
- });
387
- export function deploymentStatePreparedStackOverrideAzureBindingToJSON(deploymentStatePreparedStackOverrideAzureBinding) {
388
- return JSON.stringify(DeploymentStatePreparedStackOverrideAzureBinding$outboundSchema.parse(deploymentStatePreparedStackOverrideAzureBinding));
389
- }
390
- export function deploymentStatePreparedStackOverrideAzureBindingFromJSON(jsonString) {
391
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAzureBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAzureBinding' from JSON`);
392
- }
393
- /** @internal */
394
- export const DeploymentStatePreparedStackOverrideAzureGrant$inboundSchema = z.object({
395
- actions: z.nullable(z.array(z.string())).optional(),
396
- dataActions: z.nullable(z.array(z.string())).optional(),
397
- permissions: z.nullable(z.array(z.string())).optional(),
398
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
399
- residualPermissions: z.nullable(z.array(z.string())).optional(),
400
- });
401
- /** @internal */
402
- export const DeploymentStatePreparedStackOverrideAzureGrant$outboundSchema = z.object({
403
- actions: z.nullable(z.array(z.string())).optional(),
404
- dataActions: z.nullable(z.array(z.string())).optional(),
405
- permissions: z.nullable(z.array(z.string())).optional(),
406
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
407
- residualPermissions: z.nullable(z.array(z.string())).optional(),
408
- });
409
- export function deploymentStatePreparedStackOverrideAzureGrantToJSON(deploymentStatePreparedStackOverrideAzureGrant) {
410
- return JSON.stringify(DeploymentStatePreparedStackOverrideAzureGrant$outboundSchema.parse(deploymentStatePreparedStackOverrideAzureGrant));
411
- }
412
- export function deploymentStatePreparedStackOverrideAzureGrantFromJSON(jsonString) {
413
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAzureGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAzureGrant' from JSON`);
414
- }
415
- /** @internal */
416
- export const DeploymentStatePreparedStackOverrideAzure$inboundSchema = z.object({
417
- binding: z.lazy(() => DeploymentStatePreparedStackOverrideAzureBinding$inboundSchema),
418
- description: z.nullable(z.string()).optional(),
419
- grant: z.lazy(() => DeploymentStatePreparedStackOverrideAzureGrant$inboundSchema),
420
- label: z.nullable(z.string()).optional(),
421
- });
422
- /** @internal */
423
- export const DeploymentStatePreparedStackOverrideAzure$outboundSchema = z.object({
424
- binding: z.lazy(() => DeploymentStatePreparedStackOverrideAzureBinding$outboundSchema),
425
- description: z.nullable(z.string()).optional(),
426
- grant: z.lazy(() => DeploymentStatePreparedStackOverrideAzureGrant$outboundSchema),
427
- label: z.nullable(z.string()).optional(),
428
- });
429
- export function deploymentStatePreparedStackOverrideAzureToJSON(deploymentStatePreparedStackOverrideAzure) {
430
- return JSON.stringify(DeploymentStatePreparedStackOverrideAzure$outboundSchema.parse(deploymentStatePreparedStackOverrideAzure));
431
- }
432
- export function deploymentStatePreparedStackOverrideAzureFromJSON(jsonString) {
433
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideAzure' from JSON`);
434
- }
435
- /** @internal */
436
- export const DeploymentStatePreparedStackOverrideConditionResource$inboundSchema = z
437
- .object({
438
- expression: z.string(),
439
- title: z.string(),
440
- });
441
- /** @internal */
442
- export const DeploymentStatePreparedStackOverrideConditionResource$outboundSchema = z.object({
443
- expression: z.string(),
444
- title: z.string(),
445
- });
446
- export function deploymentStatePreparedStackOverrideConditionResourceToJSON(deploymentStatePreparedStackOverrideConditionResource) {
447
- return JSON.stringify(DeploymentStatePreparedStackOverrideConditionResource$outboundSchema.parse(deploymentStatePreparedStackOverrideConditionResource));
448
- }
449
- export function deploymentStatePreparedStackOverrideConditionResourceFromJSON(jsonString) {
450
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideConditionResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideConditionResource' from JSON`);
451
- }
452
- /** @internal */
453
- export const DeploymentStatePreparedStackOverrideResourceConditionUnion$inboundSchema = z.union([
454
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionResource$inboundSchema),
455
- z.string(),
456
- ]);
457
- /** @internal */
458
- export const DeploymentStatePreparedStackOverrideResourceConditionUnion$outboundSchema = z.union([
459
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionResource$outboundSchema),
460
- z.string(),
461
- ]);
462
- export function deploymentStatePreparedStackOverrideResourceConditionUnionToJSON(deploymentStatePreparedStackOverrideResourceConditionUnion) {
463
- return JSON.stringify(DeploymentStatePreparedStackOverrideResourceConditionUnion$outboundSchema
464
- .parse(deploymentStatePreparedStackOverrideResourceConditionUnion));
465
- }
466
- export function deploymentStatePreparedStackOverrideResourceConditionUnionFromJSON(jsonString) {
467
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideResourceConditionUnion$inboundSchema
468
- .parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideResourceConditionUnion' from JSON`);
469
- }
470
- /** @internal */
471
- export const DeploymentStatePreparedStackOverrideGcpResource$inboundSchema = z
472
- .object({
473
- condition: z.nullable(z.union([
474
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionResource$inboundSchema),
475
- z.string(),
476
- ])).optional(),
477
- scope: z.string(),
478
- });
479
- /** @internal */
480
- export const DeploymentStatePreparedStackOverrideGcpResource$outboundSchema = z.object({
481
- condition: z.nullable(z.union([
482
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionResource$outboundSchema),
483
- z.string(),
484
- ])).optional(),
485
- scope: z.string(),
486
- });
487
- export function deploymentStatePreparedStackOverrideGcpResourceToJSON(deploymentStatePreparedStackOverrideGcpResource) {
488
- return JSON.stringify(DeploymentStatePreparedStackOverrideGcpResource$outboundSchema.parse(deploymentStatePreparedStackOverrideGcpResource));
489
- }
490
- export function deploymentStatePreparedStackOverrideGcpResourceFromJSON(jsonString) {
491
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideGcpResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideGcpResource' from JSON`);
492
- }
493
- /** @internal */
494
- export const DeploymentStatePreparedStackOverrideConditionStack$inboundSchema = z
495
- .object({
496
- expression: z.string(),
497
- title: z.string(),
498
- });
499
- /** @internal */
500
- export const DeploymentStatePreparedStackOverrideConditionStack$outboundSchema = z.object({
501
- expression: z.string(),
502
- title: z.string(),
503
- });
504
- export function deploymentStatePreparedStackOverrideConditionStackToJSON(deploymentStatePreparedStackOverrideConditionStack) {
505
- return JSON.stringify(DeploymentStatePreparedStackOverrideConditionStack$outboundSchema.parse(deploymentStatePreparedStackOverrideConditionStack));
506
- }
507
- export function deploymentStatePreparedStackOverrideConditionStackFromJSON(jsonString) {
508
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideConditionStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideConditionStack' from JSON`);
509
- }
510
- /** @internal */
511
- export const DeploymentStatePreparedStackOverrideStackConditionUnion$inboundSchema = z.union([
512
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionStack$inboundSchema),
513
- z.string(),
514
- ]);
515
- /** @internal */
516
- export const DeploymentStatePreparedStackOverrideStackConditionUnion$outboundSchema = z.union([
517
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionStack$outboundSchema),
518
- z.string(),
519
- ]);
520
- export function deploymentStatePreparedStackOverrideStackConditionUnionToJSON(deploymentStatePreparedStackOverrideStackConditionUnion) {
521
- return JSON.stringify(DeploymentStatePreparedStackOverrideStackConditionUnion$outboundSchema
522
- .parse(deploymentStatePreparedStackOverrideStackConditionUnion));
523
- }
524
- export function deploymentStatePreparedStackOverrideStackConditionUnionFromJSON(jsonString) {
525
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideStackConditionUnion$inboundSchema
526
- .parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideStackConditionUnion' from JSON`);
527
- }
528
- /** @internal */
529
- export const DeploymentStatePreparedStackOverrideGcpStack$inboundSchema = z.object({
530
- condition: z.nullable(z.union([
531
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionStack$inboundSchema),
532
- z.string(),
533
- ])).optional(),
534
- scope: z.string(),
535
- });
536
- /** @internal */
537
- export const DeploymentStatePreparedStackOverrideGcpStack$outboundSchema = z.object({
538
- condition: z.nullable(z.union([
539
- z.lazy(() => DeploymentStatePreparedStackOverrideConditionStack$outboundSchema),
540
- z.string(),
541
- ])).optional(),
542
- scope: z.string(),
543
- });
544
- export function deploymentStatePreparedStackOverrideGcpStackToJSON(deploymentStatePreparedStackOverrideGcpStack) {
545
- return JSON.stringify(DeploymentStatePreparedStackOverrideGcpStack$outboundSchema.parse(deploymentStatePreparedStackOverrideGcpStack));
546
- }
547
- export function deploymentStatePreparedStackOverrideGcpStackFromJSON(jsonString) {
548
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideGcpStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideGcpStack' from JSON`);
549
- }
550
- /** @internal */
551
- export const DeploymentStatePreparedStackOverrideGcpBinding$inboundSchema = z.object({
552
- resource: z.lazy(() => DeploymentStatePreparedStackOverrideGcpResource$inboundSchema).optional(),
553
- stack: z.lazy(() => DeploymentStatePreparedStackOverrideGcpStack$inboundSchema).optional(),
554
- });
555
- /** @internal */
556
- export const DeploymentStatePreparedStackOverrideGcpBinding$outboundSchema = z.object({
557
- resource: z.lazy(() => DeploymentStatePreparedStackOverrideGcpResource$outboundSchema).optional(),
558
- stack: z.lazy(() => DeploymentStatePreparedStackOverrideGcpStack$outboundSchema).optional(),
559
- });
560
- export function deploymentStatePreparedStackOverrideGcpBindingToJSON(deploymentStatePreparedStackOverrideGcpBinding) {
561
- return JSON.stringify(DeploymentStatePreparedStackOverrideGcpBinding$outboundSchema.parse(deploymentStatePreparedStackOverrideGcpBinding));
562
- }
563
- export function deploymentStatePreparedStackOverrideGcpBindingFromJSON(jsonString) {
564
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideGcpBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideGcpBinding' from JSON`);
565
- }
566
- /** @internal */
567
- export const DeploymentStatePreparedStackOverrideGcpGrant$inboundSchema = z.object({
568
- actions: z.nullable(z.array(z.string())).optional(),
569
- dataActions: z.nullable(z.array(z.string())).optional(),
570
- permissions: z.nullable(z.array(z.string())).optional(),
571
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
572
- residualPermissions: z.nullable(z.array(z.string())).optional(),
573
- });
574
- /** @internal */
575
- export const DeploymentStatePreparedStackOverrideGcpGrant$outboundSchema = z.object({
576
- actions: z.nullable(z.array(z.string())).optional(),
577
- dataActions: z.nullable(z.array(z.string())).optional(),
578
- permissions: z.nullable(z.array(z.string())).optional(),
579
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
580
- residualPermissions: z.nullable(z.array(z.string())).optional(),
581
- });
582
- export function deploymentStatePreparedStackOverrideGcpGrantToJSON(deploymentStatePreparedStackOverrideGcpGrant) {
583
- return JSON.stringify(DeploymentStatePreparedStackOverrideGcpGrant$outboundSchema.parse(deploymentStatePreparedStackOverrideGcpGrant));
584
- }
585
- export function deploymentStatePreparedStackOverrideGcpGrantFromJSON(jsonString) {
586
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideGcpGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideGcpGrant' from JSON`);
587
- }
588
- /** @internal */
589
- export const DeploymentStatePreparedStackOverrideGcp$inboundSchema = z.object({
590
- binding: z.lazy(() => DeploymentStatePreparedStackOverrideGcpBinding$inboundSchema),
591
- description: z.nullable(z.string()).optional(),
592
- grant: z.lazy(() => DeploymentStatePreparedStackOverrideGcpGrant$inboundSchema),
593
- label: z.nullable(z.string()).optional(),
594
- });
595
- /** @internal */
596
- export const DeploymentStatePreparedStackOverrideGcp$outboundSchema = z.object({
597
- binding: z.lazy(() => DeploymentStatePreparedStackOverrideGcpBinding$outboundSchema),
598
- description: z.nullable(z.string()).optional(),
599
- grant: z.lazy(() => DeploymentStatePreparedStackOverrideGcpGrant$outboundSchema),
600
- label: z.nullable(z.string()).optional(),
601
- });
602
- export function deploymentStatePreparedStackOverrideGcpToJSON(deploymentStatePreparedStackOverrideGcp) {
603
- return JSON.stringify(DeploymentStatePreparedStackOverrideGcp$outboundSchema.parse(deploymentStatePreparedStackOverrideGcp));
604
- }
605
- export function deploymentStatePreparedStackOverrideGcpFromJSON(jsonString) {
606
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideGcp' from JSON`);
607
- }
608
- /** @internal */
609
- export const DeploymentStatePreparedStackOverridePlatforms$inboundSchema = z.object({
610
- aws: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackOverrideAw$inboundSchema))).optional(),
611
- azure: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackOverrideAzure$inboundSchema))).optional(),
612
- gcp: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackOverrideGcp$inboundSchema))).optional(),
613
- });
614
- /** @internal */
615
- export const DeploymentStatePreparedStackOverridePlatforms$outboundSchema = z.object({
616
- aws: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackOverrideAw$outboundSchema))).optional(),
617
- azure: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackOverrideAzure$outboundSchema))).optional(),
618
- gcp: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackOverrideGcp$outboundSchema))).optional(),
619
- });
620
- export function deploymentStatePreparedStackOverridePlatformsToJSON(deploymentStatePreparedStackOverridePlatforms) {
621
- return JSON.stringify(DeploymentStatePreparedStackOverridePlatforms$outboundSchema.parse(deploymentStatePreparedStackOverridePlatforms));
622
- }
623
- export function deploymentStatePreparedStackOverridePlatformsFromJSON(jsonString) {
624
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverridePlatforms$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverridePlatforms' from JSON`);
625
- }
626
- /** @internal */
627
- export const DeploymentStatePreparedStackOverride$inboundSchema = z.object({
628
- description: z.string(),
629
- id: z.string(),
630
- platforms: z.lazy(() => DeploymentStatePreparedStackOverridePlatforms$inboundSchema),
631
- });
632
- /** @internal */
633
- export const DeploymentStatePreparedStackOverride$outboundSchema = z.object({
634
- description: z.string(),
635
- id: z.string(),
636
- platforms: z.lazy(() => DeploymentStatePreparedStackOverridePlatforms$outboundSchema),
637
- });
638
- export function deploymentStatePreparedStackOverrideToJSON(deploymentStatePreparedStackOverride) {
639
- return JSON.stringify(DeploymentStatePreparedStackOverride$outboundSchema.parse(deploymentStatePreparedStackOverride));
640
- }
641
- export function deploymentStatePreparedStackOverrideFromJSON(jsonString) {
642
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverride$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverride' from JSON`);
643
- }
644
- /** @internal */
645
- export const DeploymentStatePreparedStackOverrideUnion$inboundSchema = z.union([
646
- z.lazy(() => DeploymentStatePreparedStackOverride$inboundSchema),
647
- z.string(),
648
- ]);
649
- /** @internal */
650
- export const DeploymentStatePreparedStackOverrideUnion$outboundSchema = z.union([
651
- z.lazy(() => DeploymentStatePreparedStackOverride$outboundSchema),
652
- z.string(),
653
- ]);
654
- export function deploymentStatePreparedStackOverrideUnionToJSON(deploymentStatePreparedStackOverrideUnion) {
655
- return JSON.stringify(DeploymentStatePreparedStackOverrideUnion$outboundSchema.parse(deploymentStatePreparedStackOverrideUnion));
656
- }
657
- export function deploymentStatePreparedStackOverrideUnionFromJSON(jsonString) {
658
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackOverrideUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackOverrideUnion' from JSON`);
659
- }
660
- /** @internal */
661
- export const DeploymentStatePreparedStackManagement2$inboundSchema = z.object({
662
- override: z.record(z.string(), z.array(z.union([
663
- z.lazy(() => DeploymentStatePreparedStackOverride$inboundSchema),
664
- z.string(),
665
- ]))),
666
- });
667
- /** @internal */
668
- export const DeploymentStatePreparedStackManagement2$outboundSchema = z.object({
669
- override: z.record(z.string(), z.array(z.union([
670
- z.lazy(() => DeploymentStatePreparedStackOverride$outboundSchema),
671
- z.string(),
672
- ]))),
673
- });
674
- export function deploymentStatePreparedStackManagement2ToJSON(deploymentStatePreparedStackManagement2) {
675
- return JSON.stringify(DeploymentStatePreparedStackManagement2$outboundSchema.parse(deploymentStatePreparedStackManagement2));
676
- }
677
- export function deploymentStatePreparedStackManagement2FromJSON(jsonString) {
678
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackManagement2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackManagement2' from JSON`);
679
- }
680
- /** @internal */
681
- export const DeploymentStatePreparedStackExtendAwResource$inboundSchema = z.object({
682
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
683
- notResources: z.array(z.string()).optional(),
684
- resources: z.array(z.string()),
685
- });
686
- /** @internal */
687
- export const DeploymentStatePreparedStackExtendAwResource$outboundSchema = z.object({
688
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
689
- notResources: z.array(z.string()).optional(),
690
- resources: z.array(z.string()),
691
- });
692
- export function deploymentStatePreparedStackExtendAwResourceToJSON(deploymentStatePreparedStackExtendAwResource) {
693
- return JSON.stringify(DeploymentStatePreparedStackExtendAwResource$outboundSchema.parse(deploymentStatePreparedStackExtendAwResource));
694
- }
695
- export function deploymentStatePreparedStackExtendAwResourceFromJSON(jsonString) {
696
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAwResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAwResource' from JSON`);
697
- }
698
- /** @internal */
699
- export const DeploymentStatePreparedStackExtendAwStack$inboundSchema = z.object({
700
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string())))
701
- .optional(),
702
- notResources: z.array(z.string()).optional(),
703
- resources: z.array(z.string()),
704
- });
705
- /** @internal */
706
- export const DeploymentStatePreparedStackExtendAwStack$outboundSchema = z.object({
707
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
708
- notResources: z.array(z.string()).optional(),
709
- resources: z.array(z.string()),
710
- });
711
- export function deploymentStatePreparedStackExtendAwStackToJSON(deploymentStatePreparedStackExtendAwStack) {
712
- return JSON.stringify(DeploymentStatePreparedStackExtendAwStack$outboundSchema.parse(deploymentStatePreparedStackExtendAwStack));
713
- }
714
- export function deploymentStatePreparedStackExtendAwStackFromJSON(jsonString) {
715
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAwStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAwStack' from JSON`);
716
- }
717
- /** @internal */
718
- export const DeploymentStatePreparedStackExtendAwBinding$inboundSchema = z.object({
719
- resource: z.lazy(() => DeploymentStatePreparedStackExtendAwResource$inboundSchema).optional(),
720
- stack: z.lazy(() => DeploymentStatePreparedStackExtendAwStack$inboundSchema)
721
- .optional(),
722
- });
723
- /** @internal */
724
- export const DeploymentStatePreparedStackExtendAwBinding$outboundSchema = z.object({
725
- resource: z.lazy(() => DeploymentStatePreparedStackExtendAwResource$outboundSchema).optional(),
726
- stack: z.lazy(() => DeploymentStatePreparedStackExtendAwStack$outboundSchema).optional(),
727
- });
728
- export function deploymentStatePreparedStackExtendAwBindingToJSON(deploymentStatePreparedStackExtendAwBinding) {
729
- return JSON.stringify(DeploymentStatePreparedStackExtendAwBinding$outboundSchema.parse(deploymentStatePreparedStackExtendAwBinding));
730
- }
731
- export function deploymentStatePreparedStackExtendAwBindingFromJSON(jsonString) {
732
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAwBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAwBinding' from JSON`);
733
- }
734
- /** @internal */
735
- export const DeploymentStatePreparedStackExtendEffect$inboundSchema = z.enum(DeploymentStatePreparedStackExtendEffect);
736
- /** @internal */
737
- export const DeploymentStatePreparedStackExtendEffect$outboundSchema = DeploymentStatePreparedStackExtendEffect$inboundSchema;
738
- /** @internal */
739
- export const DeploymentStatePreparedStackExtendAwGrant$inboundSchema = z.object({
740
- actions: z.nullable(z.array(z.string())).optional(),
741
- dataActions: z.nullable(z.array(z.string())).optional(),
742
- permissions: z.nullable(z.array(z.string())).optional(),
743
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
744
- residualPermissions: z.nullable(z.array(z.string())).optional(),
745
- });
746
- /** @internal */
747
- export const DeploymentStatePreparedStackExtendAwGrant$outboundSchema = z.object({
748
- actions: z.nullable(z.array(z.string())).optional(),
749
- dataActions: z.nullable(z.array(z.string())).optional(),
750
- permissions: z.nullable(z.array(z.string())).optional(),
751
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
752
- residualPermissions: z.nullable(z.array(z.string())).optional(),
753
- });
754
- export function deploymentStatePreparedStackExtendAwGrantToJSON(deploymentStatePreparedStackExtendAwGrant) {
755
- return JSON.stringify(DeploymentStatePreparedStackExtendAwGrant$outboundSchema.parse(deploymentStatePreparedStackExtendAwGrant));
756
- }
757
- export function deploymentStatePreparedStackExtendAwGrantFromJSON(jsonString) {
758
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAwGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAwGrant' from JSON`);
759
- }
760
- /** @internal */
761
- export const DeploymentStatePreparedStackExtendAw$inboundSchema = z.object({
762
- binding: z.lazy(() => DeploymentStatePreparedStackExtendAwBinding$inboundSchema),
763
- description: z.nullable(z.string()).optional(),
764
- effect: DeploymentStatePreparedStackExtendEffect$inboundSchema.optional(),
765
- grant: z.lazy(() => DeploymentStatePreparedStackExtendAwGrant$inboundSchema),
766
- label: z.nullable(z.string()).optional(),
767
- });
768
- /** @internal */
769
- export const DeploymentStatePreparedStackExtendAw$outboundSchema = z.object({
770
- binding: z.lazy(() => DeploymentStatePreparedStackExtendAwBinding$outboundSchema),
771
- description: z.nullable(z.string()).optional(),
772
- effect: DeploymentStatePreparedStackExtendEffect$outboundSchema.optional(),
773
- grant: z.lazy(() => DeploymentStatePreparedStackExtendAwGrant$outboundSchema),
774
- label: z.nullable(z.string()).optional(),
775
- });
776
- export function deploymentStatePreparedStackExtendAwToJSON(deploymentStatePreparedStackExtendAw) {
777
- return JSON.stringify(DeploymentStatePreparedStackExtendAw$outboundSchema.parse(deploymentStatePreparedStackExtendAw));
778
- }
779
- export function deploymentStatePreparedStackExtendAwFromJSON(jsonString) {
780
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAw$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAw' from JSON`);
781
- }
782
- /** @internal */
783
- export const DeploymentStatePreparedStackExtendAzureResource$inboundSchema = z
784
- .object({
785
- scope: z.string(),
786
- });
787
- /** @internal */
788
- export const DeploymentStatePreparedStackExtendAzureResource$outboundSchema = z.object({
789
- scope: z.string(),
790
- });
791
- export function deploymentStatePreparedStackExtendAzureResourceToJSON(deploymentStatePreparedStackExtendAzureResource) {
792
- return JSON.stringify(DeploymentStatePreparedStackExtendAzureResource$outboundSchema.parse(deploymentStatePreparedStackExtendAzureResource));
793
- }
794
- export function deploymentStatePreparedStackExtendAzureResourceFromJSON(jsonString) {
795
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAzureResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAzureResource' from JSON`);
796
- }
797
- /** @internal */
798
- export const DeploymentStatePreparedStackExtendAzureStack$inboundSchema = z.object({
799
- scope: z.string(),
800
- });
801
- /** @internal */
802
- export const DeploymentStatePreparedStackExtendAzureStack$outboundSchema = z.object({
803
- scope: z.string(),
804
- });
805
- export function deploymentStatePreparedStackExtendAzureStackToJSON(deploymentStatePreparedStackExtendAzureStack) {
806
- return JSON.stringify(DeploymentStatePreparedStackExtendAzureStack$outboundSchema.parse(deploymentStatePreparedStackExtendAzureStack));
807
- }
808
- export function deploymentStatePreparedStackExtendAzureStackFromJSON(jsonString) {
809
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAzureStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAzureStack' from JSON`);
810
- }
811
- /** @internal */
812
- export const DeploymentStatePreparedStackExtendAzureBinding$inboundSchema = z.object({
813
- resource: z.lazy(() => DeploymentStatePreparedStackExtendAzureResource$inboundSchema).optional(),
814
- stack: z.lazy(() => DeploymentStatePreparedStackExtendAzureStack$inboundSchema).optional(),
815
- });
816
- /** @internal */
817
- export const DeploymentStatePreparedStackExtendAzureBinding$outboundSchema = z.object({
818
- resource: z.lazy(() => DeploymentStatePreparedStackExtendAzureResource$outboundSchema).optional(),
819
- stack: z.lazy(() => DeploymentStatePreparedStackExtendAzureStack$outboundSchema).optional(),
820
- });
821
- export function deploymentStatePreparedStackExtendAzureBindingToJSON(deploymentStatePreparedStackExtendAzureBinding) {
822
- return JSON.stringify(DeploymentStatePreparedStackExtendAzureBinding$outboundSchema.parse(deploymentStatePreparedStackExtendAzureBinding));
823
- }
824
- export function deploymentStatePreparedStackExtendAzureBindingFromJSON(jsonString) {
825
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAzureBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAzureBinding' from JSON`);
826
- }
827
- /** @internal */
828
- export const DeploymentStatePreparedStackExtendAzureGrant$inboundSchema = z.object({
829
- actions: z.nullable(z.array(z.string())).optional(),
830
- dataActions: z.nullable(z.array(z.string())).optional(),
831
- permissions: z.nullable(z.array(z.string())).optional(),
832
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
833
- residualPermissions: z.nullable(z.array(z.string())).optional(),
834
- });
835
- /** @internal */
836
- export const DeploymentStatePreparedStackExtendAzureGrant$outboundSchema = z.object({
837
- actions: z.nullable(z.array(z.string())).optional(),
838
- dataActions: z.nullable(z.array(z.string())).optional(),
839
- permissions: z.nullable(z.array(z.string())).optional(),
840
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
841
- residualPermissions: z.nullable(z.array(z.string())).optional(),
842
- });
843
- export function deploymentStatePreparedStackExtendAzureGrantToJSON(deploymentStatePreparedStackExtendAzureGrant) {
844
- return JSON.stringify(DeploymentStatePreparedStackExtendAzureGrant$outboundSchema.parse(deploymentStatePreparedStackExtendAzureGrant));
845
- }
846
- export function deploymentStatePreparedStackExtendAzureGrantFromJSON(jsonString) {
847
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAzureGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAzureGrant' from JSON`);
848
- }
849
- /** @internal */
850
- export const DeploymentStatePreparedStackExtendAzure$inboundSchema = z.object({
851
- binding: z.lazy(() => DeploymentStatePreparedStackExtendAzureBinding$inboundSchema),
852
- description: z.nullable(z.string()).optional(),
853
- grant: z.lazy(() => DeploymentStatePreparedStackExtendAzureGrant$inboundSchema),
854
- label: z.nullable(z.string()).optional(),
855
- });
856
- /** @internal */
857
- export const DeploymentStatePreparedStackExtendAzure$outboundSchema = z.object({
858
- binding: z.lazy(() => DeploymentStatePreparedStackExtendAzureBinding$outboundSchema),
859
- description: z.nullable(z.string()).optional(),
860
- grant: z.lazy(() => DeploymentStatePreparedStackExtendAzureGrant$outboundSchema),
861
- label: z.nullable(z.string()).optional(),
862
- });
863
- export function deploymentStatePreparedStackExtendAzureToJSON(deploymentStatePreparedStackExtendAzure) {
864
- return JSON.stringify(DeploymentStatePreparedStackExtendAzure$outboundSchema.parse(deploymentStatePreparedStackExtendAzure));
865
- }
866
- export function deploymentStatePreparedStackExtendAzureFromJSON(jsonString) {
867
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendAzure' from JSON`);
868
- }
869
- /** @internal */
870
- export const DeploymentStatePreparedStackExtendConditionResource$inboundSchema = z
871
- .object({
872
- expression: z.string(),
873
- title: z.string(),
874
- });
875
- /** @internal */
876
- export const DeploymentStatePreparedStackExtendConditionResource$outboundSchema = z.object({
877
- expression: z.string(),
878
- title: z.string(),
879
- });
880
- export function deploymentStatePreparedStackExtendConditionResourceToJSON(deploymentStatePreparedStackExtendConditionResource) {
881
- return JSON.stringify(DeploymentStatePreparedStackExtendConditionResource$outboundSchema.parse(deploymentStatePreparedStackExtendConditionResource));
882
- }
883
- export function deploymentStatePreparedStackExtendConditionResourceFromJSON(jsonString) {
884
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendConditionResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendConditionResource' from JSON`);
885
- }
886
- /** @internal */
887
- export const DeploymentStatePreparedStackExtendResourceConditionUnion$inboundSchema = z.union([
888
- z.lazy(() => DeploymentStatePreparedStackExtendConditionResource$inboundSchema),
889
- z.string(),
890
- ]);
891
- /** @internal */
892
- export const DeploymentStatePreparedStackExtendResourceConditionUnion$outboundSchema = z.union([
893
- z.lazy(() => DeploymentStatePreparedStackExtendConditionResource$outboundSchema),
894
- z.string(),
895
- ]);
896
- export function deploymentStatePreparedStackExtendResourceConditionUnionToJSON(deploymentStatePreparedStackExtendResourceConditionUnion) {
897
- return JSON.stringify(DeploymentStatePreparedStackExtendResourceConditionUnion$outboundSchema
898
- .parse(deploymentStatePreparedStackExtendResourceConditionUnion));
899
- }
900
- export function deploymentStatePreparedStackExtendResourceConditionUnionFromJSON(jsonString) {
901
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendResourceConditionUnion$inboundSchema
902
- .parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendResourceConditionUnion' from JSON`);
903
- }
904
- /** @internal */
905
- export const DeploymentStatePreparedStackExtendGcpResource$inboundSchema = z.object({
906
- condition: z.nullable(z.union([
907
- z.lazy(() => DeploymentStatePreparedStackExtendConditionResource$inboundSchema),
908
- z.string(),
909
- ])).optional(),
910
- scope: z.string(),
911
- });
912
- /** @internal */
913
- export const DeploymentStatePreparedStackExtendGcpResource$outboundSchema = z.object({
914
- condition: z.nullable(z.union([
915
- z.lazy(() => DeploymentStatePreparedStackExtendConditionResource$outboundSchema),
916
- z.string(),
917
- ])).optional(),
918
- scope: z.string(),
919
- });
920
- export function deploymentStatePreparedStackExtendGcpResourceToJSON(deploymentStatePreparedStackExtendGcpResource) {
921
- return JSON.stringify(DeploymentStatePreparedStackExtendGcpResource$outboundSchema.parse(deploymentStatePreparedStackExtendGcpResource));
922
- }
923
- export function deploymentStatePreparedStackExtendGcpResourceFromJSON(jsonString) {
924
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendGcpResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendGcpResource' from JSON`);
925
- }
926
- /** @internal */
927
- export const DeploymentStatePreparedStackExtendConditionStack$inboundSchema = z
928
- .object({
929
- expression: z.string(),
930
- title: z.string(),
931
- });
932
- /** @internal */
933
- export const DeploymentStatePreparedStackExtendConditionStack$outboundSchema = z.object({
934
- expression: z.string(),
935
- title: z.string(),
936
- });
937
- export function deploymentStatePreparedStackExtendConditionStackToJSON(deploymentStatePreparedStackExtendConditionStack) {
938
- return JSON.stringify(DeploymentStatePreparedStackExtendConditionStack$outboundSchema.parse(deploymentStatePreparedStackExtendConditionStack));
939
- }
940
- export function deploymentStatePreparedStackExtendConditionStackFromJSON(jsonString) {
941
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendConditionStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendConditionStack' from JSON`);
942
- }
943
- /** @internal */
944
- export const DeploymentStatePreparedStackExtendStackConditionUnion$inboundSchema = z
945
- .union([
946
- z.lazy(() => DeploymentStatePreparedStackExtendConditionStack$inboundSchema),
947
- z.string(),
948
- ]);
949
- /** @internal */
950
- export const DeploymentStatePreparedStackExtendStackConditionUnion$outboundSchema = z.union([
951
- z.lazy(() => DeploymentStatePreparedStackExtendConditionStack$outboundSchema),
952
- z.string(),
953
- ]);
954
- export function deploymentStatePreparedStackExtendStackConditionUnionToJSON(deploymentStatePreparedStackExtendStackConditionUnion) {
955
- return JSON.stringify(DeploymentStatePreparedStackExtendStackConditionUnion$outboundSchema.parse(deploymentStatePreparedStackExtendStackConditionUnion));
956
- }
957
- export function deploymentStatePreparedStackExtendStackConditionUnionFromJSON(jsonString) {
958
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendStackConditionUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendStackConditionUnion' from JSON`);
959
- }
960
- /** @internal */
961
- export const DeploymentStatePreparedStackExtendGcpStack$inboundSchema = z.object({
962
- condition: z.nullable(z.union([
963
- z.lazy(() => DeploymentStatePreparedStackExtendConditionStack$inboundSchema),
964
- z.string(),
965
- ])).optional(),
966
- scope: z.string(),
967
- });
968
- /** @internal */
969
- export const DeploymentStatePreparedStackExtendGcpStack$outboundSchema = z.object({
970
- condition: z.nullable(z.union([
971
- z.lazy(() => DeploymentStatePreparedStackExtendConditionStack$outboundSchema),
972
- z.string(),
973
- ])).optional(),
974
- scope: z.string(),
975
- });
976
- export function deploymentStatePreparedStackExtendGcpStackToJSON(deploymentStatePreparedStackExtendGcpStack) {
977
- return JSON.stringify(DeploymentStatePreparedStackExtendGcpStack$outboundSchema.parse(deploymentStatePreparedStackExtendGcpStack));
978
- }
979
- export function deploymentStatePreparedStackExtendGcpStackFromJSON(jsonString) {
980
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendGcpStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendGcpStack' from JSON`);
981
- }
982
- /** @internal */
983
- export const DeploymentStatePreparedStackExtendGcpBinding$inboundSchema = z.object({
984
- resource: z.lazy(() => DeploymentStatePreparedStackExtendGcpResource$inboundSchema).optional(),
985
- stack: z.lazy(() => DeploymentStatePreparedStackExtendGcpStack$inboundSchema).optional(),
986
- });
987
- /** @internal */
988
- export const DeploymentStatePreparedStackExtendGcpBinding$outboundSchema = z.object({
989
- resource: z.lazy(() => DeploymentStatePreparedStackExtendGcpResource$outboundSchema).optional(),
990
- stack: z.lazy(() => DeploymentStatePreparedStackExtendGcpStack$outboundSchema).optional(),
991
- });
992
- export function deploymentStatePreparedStackExtendGcpBindingToJSON(deploymentStatePreparedStackExtendGcpBinding) {
993
- return JSON.stringify(DeploymentStatePreparedStackExtendGcpBinding$outboundSchema.parse(deploymentStatePreparedStackExtendGcpBinding));
994
- }
995
- export function deploymentStatePreparedStackExtendGcpBindingFromJSON(jsonString) {
996
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendGcpBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendGcpBinding' from JSON`);
997
- }
998
- /** @internal */
999
- export const DeploymentStatePreparedStackExtendGcpGrant$inboundSchema = z.object({
1000
- actions: z.nullable(z.array(z.string())).optional(),
1001
- dataActions: z.nullable(z.array(z.string())).optional(),
1002
- permissions: z.nullable(z.array(z.string())).optional(),
1003
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1004
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1005
- });
1006
- /** @internal */
1007
- export const DeploymentStatePreparedStackExtendGcpGrant$outboundSchema = z.object({
1008
- actions: z.nullable(z.array(z.string())).optional(),
1009
- dataActions: z.nullable(z.array(z.string())).optional(),
1010
- permissions: z.nullable(z.array(z.string())).optional(),
1011
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1012
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1013
- });
1014
- export function deploymentStatePreparedStackExtendGcpGrantToJSON(deploymentStatePreparedStackExtendGcpGrant) {
1015
- return JSON.stringify(DeploymentStatePreparedStackExtendGcpGrant$outboundSchema.parse(deploymentStatePreparedStackExtendGcpGrant));
1016
- }
1017
- export function deploymentStatePreparedStackExtendGcpGrantFromJSON(jsonString) {
1018
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendGcpGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendGcpGrant' from JSON`);
1019
- }
1020
- /** @internal */
1021
- export const DeploymentStatePreparedStackExtendGcp$inboundSchema = z.object({
1022
- binding: z.lazy(() => DeploymentStatePreparedStackExtendGcpBinding$inboundSchema),
1023
- description: z.nullable(z.string()).optional(),
1024
- grant: z.lazy(() => DeploymentStatePreparedStackExtendGcpGrant$inboundSchema),
1025
- label: z.nullable(z.string()).optional(),
1026
- });
1027
- /** @internal */
1028
- export const DeploymentStatePreparedStackExtendGcp$outboundSchema = z.object({
1029
- binding: z.lazy(() => DeploymentStatePreparedStackExtendGcpBinding$outboundSchema),
1030
- description: z.nullable(z.string()).optional(),
1031
- grant: z.lazy(() => DeploymentStatePreparedStackExtendGcpGrant$outboundSchema),
1032
- label: z.nullable(z.string()).optional(),
1033
- });
1034
- export function deploymentStatePreparedStackExtendGcpToJSON(deploymentStatePreparedStackExtendGcp) {
1035
- return JSON.stringify(DeploymentStatePreparedStackExtendGcp$outboundSchema.parse(deploymentStatePreparedStackExtendGcp));
1036
- }
1037
- export function deploymentStatePreparedStackExtendGcpFromJSON(jsonString) {
1038
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendGcp' from JSON`);
1039
- }
1040
- /** @internal */
1041
- export const DeploymentStatePreparedStackExtendPlatforms$inboundSchema = z.object({
1042
- aws: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackExtendAw$inboundSchema))).optional(),
1043
- azure: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackExtendAzure$inboundSchema))).optional(),
1044
- gcp: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackExtendGcp$inboundSchema))).optional(),
1045
- });
1046
- /** @internal */
1047
- export const DeploymentStatePreparedStackExtendPlatforms$outboundSchema = z.object({
1048
- aws: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackExtendAw$outboundSchema))).optional(),
1049
- azure: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackExtendAzure$outboundSchema))).optional(),
1050
- gcp: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackExtendGcp$outboundSchema))).optional(),
1051
- });
1052
- export function deploymentStatePreparedStackExtendPlatformsToJSON(deploymentStatePreparedStackExtendPlatforms) {
1053
- return JSON.stringify(DeploymentStatePreparedStackExtendPlatforms$outboundSchema.parse(deploymentStatePreparedStackExtendPlatforms));
1054
- }
1055
- export function deploymentStatePreparedStackExtendPlatformsFromJSON(jsonString) {
1056
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendPlatforms$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendPlatforms' from JSON`);
1057
- }
1058
- /** @internal */
1059
- export const DeploymentStatePreparedStackExtend$inboundSchema = z.object({
1060
- description: z.string(),
1061
- id: z.string(),
1062
- platforms: z.lazy(() => DeploymentStatePreparedStackExtendPlatforms$inboundSchema),
1063
- });
1064
- /** @internal */
1065
- export const DeploymentStatePreparedStackExtend$outboundSchema = z.object({
1066
- description: z.string(),
1067
- id: z.string(),
1068
- platforms: z.lazy(() => DeploymentStatePreparedStackExtendPlatforms$outboundSchema),
1069
- });
1070
- export function deploymentStatePreparedStackExtendToJSON(deploymentStatePreparedStackExtend) {
1071
- return JSON.stringify(DeploymentStatePreparedStackExtend$outboundSchema.parse(deploymentStatePreparedStackExtend));
1072
- }
1073
- export function deploymentStatePreparedStackExtendFromJSON(jsonString) {
1074
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtend$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtend' from JSON`);
1075
- }
1076
- /** @internal */
1077
- export const DeploymentStatePreparedStackExtendUnion$inboundSchema = z.union([
1078
- z.lazy(() => DeploymentStatePreparedStackExtend$inboundSchema),
1079
- z.string(),
1080
- ]);
1081
- /** @internal */
1082
- export const DeploymentStatePreparedStackExtendUnion$outboundSchema = z.union([
1083
- z.lazy(() => DeploymentStatePreparedStackExtend$outboundSchema),
1084
- z.string(),
1085
- ]);
1086
- export function deploymentStatePreparedStackExtendUnionToJSON(deploymentStatePreparedStackExtendUnion) {
1087
- return JSON.stringify(DeploymentStatePreparedStackExtendUnion$outboundSchema.parse(deploymentStatePreparedStackExtendUnion));
1088
- }
1089
- export function deploymentStatePreparedStackExtendUnionFromJSON(jsonString) {
1090
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackExtendUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackExtendUnion' from JSON`);
1091
- }
1092
- /** @internal */
1093
- export const DeploymentStatePreparedStackManagement1$inboundSchema = z.object({
1094
- extend: z.record(z.string(), z.array(z.union([
1095
- z.lazy(() => DeploymentStatePreparedStackExtend$inboundSchema),
1096
- z.string(),
1097
- ]))),
1098
- });
1099
- /** @internal */
1100
- export const DeploymentStatePreparedStackManagement1$outboundSchema = z.object({
1101
- extend: z.record(z.string(), z.array(z.union([
1102
- z.lazy(() => DeploymentStatePreparedStackExtend$outboundSchema),
1103
- z.string(),
1104
- ]))),
1105
- });
1106
- export function deploymentStatePreparedStackManagement1ToJSON(deploymentStatePreparedStackManagement1) {
1107
- return JSON.stringify(DeploymentStatePreparedStackManagement1$outboundSchema.parse(deploymentStatePreparedStackManagement1));
1108
- }
1109
- export function deploymentStatePreparedStackManagement1FromJSON(jsonString) {
1110
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackManagement1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackManagement1' from JSON`);
1111
- }
1112
- /** @internal */
1113
- export const DeploymentStatePreparedStackManagementUnion$inboundSchema = z.union([
1114
- z.lazy(() => DeploymentStatePreparedStackManagement1$inboundSchema),
1115
- z.lazy(() => DeploymentStatePreparedStackManagement2$inboundSchema),
1116
- DeploymentStatePreparedStackManagementEnum$inboundSchema,
1117
- ]);
1118
- /** @internal */
1119
- export const DeploymentStatePreparedStackManagementUnion$outboundSchema = z.union([
1120
- z.lazy(() => DeploymentStatePreparedStackManagement1$outboundSchema),
1121
- z.lazy(() => DeploymentStatePreparedStackManagement2$outboundSchema),
1122
- DeploymentStatePreparedStackManagementEnum$outboundSchema,
1123
- ]);
1124
- export function deploymentStatePreparedStackManagementUnionToJSON(deploymentStatePreparedStackManagementUnion) {
1125
- return JSON.stringify(DeploymentStatePreparedStackManagementUnion$outboundSchema.parse(deploymentStatePreparedStackManagementUnion));
1126
- }
1127
- export function deploymentStatePreparedStackManagementUnionFromJSON(jsonString) {
1128
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackManagementUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackManagementUnion' from JSON`);
1129
- }
1130
- /** @internal */
1131
- export const DeploymentStatePreparedStackProfileAwResource$inboundSchema = z.object({
1132
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
1133
- notResources: z.array(z.string()).optional(),
1134
- resources: z.array(z.string()),
1135
- });
1136
- /** @internal */
1137
- export const DeploymentStatePreparedStackProfileAwResource$outboundSchema = z.object({
1138
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
1139
- notResources: z.array(z.string()).optional(),
1140
- resources: z.array(z.string()),
1141
- });
1142
- export function deploymentStatePreparedStackProfileAwResourceToJSON(deploymentStatePreparedStackProfileAwResource) {
1143
- return JSON.stringify(DeploymentStatePreparedStackProfileAwResource$outboundSchema.parse(deploymentStatePreparedStackProfileAwResource));
1144
- }
1145
- export function deploymentStatePreparedStackProfileAwResourceFromJSON(jsonString) {
1146
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAwResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAwResource' from JSON`);
1147
- }
1148
- /** @internal */
1149
- export const DeploymentStatePreparedStackProfileAwStack$inboundSchema = z.object({
1150
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
1151
- notResources: z.array(z.string()).optional(),
1152
- resources: z.array(z.string()),
1153
- });
1154
- /** @internal */
1155
- export const DeploymentStatePreparedStackProfileAwStack$outboundSchema = z.object({
1156
- condition: z.nullable(z.record(z.string(), z.record(z.string(), z.string()))).optional(),
1157
- notResources: z.array(z.string()).optional(),
1158
- resources: z.array(z.string()),
1159
- });
1160
- export function deploymentStatePreparedStackProfileAwStackToJSON(deploymentStatePreparedStackProfileAwStack) {
1161
- return JSON.stringify(DeploymentStatePreparedStackProfileAwStack$outboundSchema.parse(deploymentStatePreparedStackProfileAwStack));
1162
- }
1163
- export function deploymentStatePreparedStackProfileAwStackFromJSON(jsonString) {
1164
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAwStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAwStack' from JSON`);
1165
- }
1166
- /** @internal */
1167
- export const DeploymentStatePreparedStackProfileAwBinding$inboundSchema = z.object({
1168
- resource: z.lazy(() => DeploymentStatePreparedStackProfileAwResource$inboundSchema).optional(),
1169
- stack: z.lazy(() => DeploymentStatePreparedStackProfileAwStack$inboundSchema).optional(),
1170
- });
1171
- /** @internal */
1172
- export const DeploymentStatePreparedStackProfileAwBinding$outboundSchema = z.object({
1173
- resource: z.lazy(() => DeploymentStatePreparedStackProfileAwResource$outboundSchema).optional(),
1174
- stack: z.lazy(() => DeploymentStatePreparedStackProfileAwStack$outboundSchema).optional(),
1175
- });
1176
- export function deploymentStatePreparedStackProfileAwBindingToJSON(deploymentStatePreparedStackProfileAwBinding) {
1177
- return JSON.stringify(DeploymentStatePreparedStackProfileAwBinding$outboundSchema.parse(deploymentStatePreparedStackProfileAwBinding));
1178
- }
1179
- export function deploymentStatePreparedStackProfileAwBindingFromJSON(jsonString) {
1180
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAwBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAwBinding' from JSON`);
1181
- }
1182
- /** @internal */
1183
- export const DeploymentStatePreparedStackProfileEffect$inboundSchema = z.enum(DeploymentStatePreparedStackProfileEffect);
1184
- /** @internal */
1185
- export const DeploymentStatePreparedStackProfileEffect$outboundSchema = DeploymentStatePreparedStackProfileEffect$inboundSchema;
1186
- /** @internal */
1187
- export const DeploymentStatePreparedStackProfileAwGrant$inboundSchema = z.object({
1188
- actions: z.nullable(z.array(z.string())).optional(),
1189
- dataActions: z.nullable(z.array(z.string())).optional(),
1190
- permissions: z.nullable(z.array(z.string())).optional(),
1191
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1192
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1193
- });
1194
- /** @internal */
1195
- export const DeploymentStatePreparedStackProfileAwGrant$outboundSchema = z.object({
1196
- actions: z.nullable(z.array(z.string())).optional(),
1197
- dataActions: z.nullable(z.array(z.string())).optional(),
1198
- permissions: z.nullable(z.array(z.string())).optional(),
1199
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1200
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1201
- });
1202
- export function deploymentStatePreparedStackProfileAwGrantToJSON(deploymentStatePreparedStackProfileAwGrant) {
1203
- return JSON.stringify(DeploymentStatePreparedStackProfileAwGrant$outboundSchema.parse(deploymentStatePreparedStackProfileAwGrant));
1204
- }
1205
- export function deploymentStatePreparedStackProfileAwGrantFromJSON(jsonString) {
1206
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAwGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAwGrant' from JSON`);
1207
- }
1208
- /** @internal */
1209
- export const DeploymentStatePreparedStackProfileAw$inboundSchema = z.object({
1210
- binding: z.lazy(() => DeploymentStatePreparedStackProfileAwBinding$inboundSchema),
1211
- description: z.nullable(z.string()).optional(),
1212
- effect: DeploymentStatePreparedStackProfileEffect$inboundSchema.optional(),
1213
- grant: z.lazy(() => DeploymentStatePreparedStackProfileAwGrant$inboundSchema),
1214
- label: z.nullable(z.string()).optional(),
1215
- });
1216
- /** @internal */
1217
- export const DeploymentStatePreparedStackProfileAw$outboundSchema = z.object({
1218
- binding: z.lazy(() => DeploymentStatePreparedStackProfileAwBinding$outboundSchema),
1219
- description: z.nullable(z.string()).optional(),
1220
- effect: DeploymentStatePreparedStackProfileEffect$outboundSchema.optional(),
1221
- grant: z.lazy(() => DeploymentStatePreparedStackProfileAwGrant$outboundSchema),
1222
- label: z.nullable(z.string()).optional(),
1223
- });
1224
- export function deploymentStatePreparedStackProfileAwToJSON(deploymentStatePreparedStackProfileAw) {
1225
- return JSON.stringify(DeploymentStatePreparedStackProfileAw$outboundSchema.parse(deploymentStatePreparedStackProfileAw));
1226
- }
1227
- export function deploymentStatePreparedStackProfileAwFromJSON(jsonString) {
1228
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAw$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAw' from JSON`);
1229
- }
1230
- /** @internal */
1231
- export const DeploymentStatePreparedStackProfileAzureResource$inboundSchema = z
1232
- .object({
1233
- scope: z.string(),
1234
- });
1235
- /** @internal */
1236
- export const DeploymentStatePreparedStackProfileAzureResource$outboundSchema = z.object({
1237
- scope: z.string(),
1238
- });
1239
- export function deploymentStatePreparedStackProfileAzureResourceToJSON(deploymentStatePreparedStackProfileAzureResource) {
1240
- return JSON.stringify(DeploymentStatePreparedStackProfileAzureResource$outboundSchema.parse(deploymentStatePreparedStackProfileAzureResource));
1241
- }
1242
- export function deploymentStatePreparedStackProfileAzureResourceFromJSON(jsonString) {
1243
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAzureResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAzureResource' from JSON`);
1244
- }
1245
- /** @internal */
1246
- export const DeploymentStatePreparedStackProfileAzureStack$inboundSchema = z.object({
1247
- scope: z.string(),
1248
- });
1249
- /** @internal */
1250
- export const DeploymentStatePreparedStackProfileAzureStack$outboundSchema = z.object({
1251
- scope: z.string(),
1252
- });
1253
- export function deploymentStatePreparedStackProfileAzureStackToJSON(deploymentStatePreparedStackProfileAzureStack) {
1254
- return JSON.stringify(DeploymentStatePreparedStackProfileAzureStack$outboundSchema.parse(deploymentStatePreparedStackProfileAzureStack));
1255
- }
1256
- export function deploymentStatePreparedStackProfileAzureStackFromJSON(jsonString) {
1257
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAzureStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAzureStack' from JSON`);
1258
- }
1259
- /** @internal */
1260
- export const DeploymentStatePreparedStackProfileAzureBinding$inboundSchema = z
1261
- .object({
1262
- resource: z.lazy(() => DeploymentStatePreparedStackProfileAzureResource$inboundSchema).optional(),
1263
- stack: z.lazy(() => DeploymentStatePreparedStackProfileAzureStack$inboundSchema).optional(),
1264
- });
1265
- /** @internal */
1266
- export const DeploymentStatePreparedStackProfileAzureBinding$outboundSchema = z.object({
1267
- resource: z.lazy(() => DeploymentStatePreparedStackProfileAzureResource$outboundSchema).optional(),
1268
- stack: z.lazy(() => DeploymentStatePreparedStackProfileAzureStack$outboundSchema).optional(),
1269
- });
1270
- export function deploymentStatePreparedStackProfileAzureBindingToJSON(deploymentStatePreparedStackProfileAzureBinding) {
1271
- return JSON.stringify(DeploymentStatePreparedStackProfileAzureBinding$outboundSchema.parse(deploymentStatePreparedStackProfileAzureBinding));
1272
- }
1273
- export function deploymentStatePreparedStackProfileAzureBindingFromJSON(jsonString) {
1274
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAzureBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAzureBinding' from JSON`);
1275
- }
1276
- /** @internal */
1277
- export const DeploymentStatePreparedStackProfileAzureGrant$inboundSchema = z.object({
1278
- actions: z.nullable(z.array(z.string())).optional(),
1279
- dataActions: z.nullable(z.array(z.string())).optional(),
1280
- permissions: z.nullable(z.array(z.string())).optional(),
1281
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1282
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1283
- });
1284
- /** @internal */
1285
- export const DeploymentStatePreparedStackProfileAzureGrant$outboundSchema = z.object({
1286
- actions: z.nullable(z.array(z.string())).optional(),
1287
- dataActions: z.nullable(z.array(z.string())).optional(),
1288
- permissions: z.nullable(z.array(z.string())).optional(),
1289
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1290
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1291
- });
1292
- export function deploymentStatePreparedStackProfileAzureGrantToJSON(deploymentStatePreparedStackProfileAzureGrant) {
1293
- return JSON.stringify(DeploymentStatePreparedStackProfileAzureGrant$outboundSchema.parse(deploymentStatePreparedStackProfileAzureGrant));
1294
- }
1295
- export function deploymentStatePreparedStackProfileAzureGrantFromJSON(jsonString) {
1296
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAzureGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAzureGrant' from JSON`);
1297
- }
1298
- /** @internal */
1299
- export const DeploymentStatePreparedStackProfileAzure$inboundSchema = z.object({
1300
- binding: z.lazy(() => DeploymentStatePreparedStackProfileAzureBinding$inboundSchema),
1301
- description: z.nullable(z.string()).optional(),
1302
- grant: z.lazy(() => DeploymentStatePreparedStackProfileAzureGrant$inboundSchema),
1303
- label: z.nullable(z.string()).optional(),
1304
- });
1305
- /** @internal */
1306
- export const DeploymentStatePreparedStackProfileAzure$outboundSchema = z.object({
1307
- binding: z.lazy(() => DeploymentStatePreparedStackProfileAzureBinding$outboundSchema),
1308
- description: z.nullable(z.string()).optional(),
1309
- grant: z.lazy(() => DeploymentStatePreparedStackProfileAzureGrant$outboundSchema),
1310
- label: z.nullable(z.string()).optional(),
1311
- });
1312
- export function deploymentStatePreparedStackProfileAzureToJSON(deploymentStatePreparedStackProfileAzure) {
1313
- return JSON.stringify(DeploymentStatePreparedStackProfileAzure$outboundSchema.parse(deploymentStatePreparedStackProfileAzure));
1314
- }
1315
- export function deploymentStatePreparedStackProfileAzureFromJSON(jsonString) {
1316
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileAzure$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileAzure' from JSON`);
1317
- }
1318
- /** @internal */
1319
- export const DeploymentStatePreparedStackProfileConditionResource$inboundSchema = z
1320
- .object({
1321
- expression: z.string(),
1322
- title: z.string(),
1323
- });
1324
- /** @internal */
1325
- export const DeploymentStatePreparedStackProfileConditionResource$outboundSchema = z.object({
1326
- expression: z.string(),
1327
- title: z.string(),
1328
- });
1329
- export function deploymentStatePreparedStackProfileConditionResourceToJSON(deploymentStatePreparedStackProfileConditionResource) {
1330
- return JSON.stringify(DeploymentStatePreparedStackProfileConditionResource$outboundSchema.parse(deploymentStatePreparedStackProfileConditionResource));
1331
- }
1332
- export function deploymentStatePreparedStackProfileConditionResourceFromJSON(jsonString) {
1333
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileConditionResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileConditionResource' from JSON`);
1334
- }
1335
- /** @internal */
1336
- export const DeploymentStatePreparedStackProfileResourceConditionUnion$inboundSchema = z.union([
1337
- z.lazy(() => DeploymentStatePreparedStackProfileConditionResource$inboundSchema),
1338
- z.string(),
1339
- ]);
1340
- /** @internal */
1341
- export const DeploymentStatePreparedStackProfileResourceConditionUnion$outboundSchema = z.union([
1342
- z.lazy(() => DeploymentStatePreparedStackProfileConditionResource$outboundSchema),
1343
- z.string(),
1344
- ]);
1345
- export function deploymentStatePreparedStackProfileResourceConditionUnionToJSON(deploymentStatePreparedStackProfileResourceConditionUnion) {
1346
- return JSON.stringify(DeploymentStatePreparedStackProfileResourceConditionUnion$outboundSchema
1347
- .parse(deploymentStatePreparedStackProfileResourceConditionUnion));
1348
- }
1349
- export function deploymentStatePreparedStackProfileResourceConditionUnionFromJSON(jsonString) {
1350
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileResourceConditionUnion$inboundSchema
1351
- .parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileResourceConditionUnion' from JSON`);
1352
- }
1353
- /** @internal */
1354
- export const DeploymentStatePreparedStackProfileGcpResource$inboundSchema = z.object({
1355
- condition: z.nullable(z.union([
1356
- z.lazy(() => DeploymentStatePreparedStackProfileConditionResource$inboundSchema),
1357
- z.string(),
1358
- ])).optional(),
1359
- scope: z.string(),
1360
- });
1361
- /** @internal */
1362
- export const DeploymentStatePreparedStackProfileGcpResource$outboundSchema = z.object({
1363
- condition: z.nullable(z.union([
1364
- z.lazy(() => DeploymentStatePreparedStackProfileConditionResource$outboundSchema),
1365
- z.string(),
1366
- ])).optional(),
1367
- scope: z.string(),
1368
- });
1369
- export function deploymentStatePreparedStackProfileGcpResourceToJSON(deploymentStatePreparedStackProfileGcpResource) {
1370
- return JSON.stringify(DeploymentStatePreparedStackProfileGcpResource$outboundSchema.parse(deploymentStatePreparedStackProfileGcpResource));
1371
- }
1372
- export function deploymentStatePreparedStackProfileGcpResourceFromJSON(jsonString) {
1373
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileGcpResource$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileGcpResource' from JSON`);
1374
- }
1375
- /** @internal */
1376
- export const DeploymentStatePreparedStackProfileConditionStack$inboundSchema = z
1377
- .object({
1378
- expression: z.string(),
1379
- title: z.string(),
1380
- });
1381
- /** @internal */
1382
- export const DeploymentStatePreparedStackProfileConditionStack$outboundSchema = z.object({
1383
- expression: z.string(),
1384
- title: z.string(),
1385
- });
1386
- export function deploymentStatePreparedStackProfileConditionStackToJSON(deploymentStatePreparedStackProfileConditionStack) {
1387
- return JSON.stringify(DeploymentStatePreparedStackProfileConditionStack$outboundSchema.parse(deploymentStatePreparedStackProfileConditionStack));
1388
- }
1389
- export function deploymentStatePreparedStackProfileConditionStackFromJSON(jsonString) {
1390
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileConditionStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileConditionStack' from JSON`);
1391
- }
1392
- /** @internal */
1393
- export const DeploymentStatePreparedStackProfileStackConditionUnion$inboundSchema = z
1394
- .union([
1395
- z.lazy(() => DeploymentStatePreparedStackProfileConditionStack$inboundSchema),
1396
- z.string(),
1397
- ]);
1398
- /** @internal */
1399
- export const DeploymentStatePreparedStackProfileStackConditionUnion$outboundSchema = z.union([
1400
- z.lazy(() => DeploymentStatePreparedStackProfileConditionStack$outboundSchema),
1401
- z.string(),
1402
- ]);
1403
- export function deploymentStatePreparedStackProfileStackConditionUnionToJSON(deploymentStatePreparedStackProfileStackConditionUnion) {
1404
- return JSON.stringify(DeploymentStatePreparedStackProfileStackConditionUnion$outboundSchema.parse(deploymentStatePreparedStackProfileStackConditionUnion));
1405
- }
1406
- export function deploymentStatePreparedStackProfileStackConditionUnionFromJSON(jsonString) {
1407
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileStackConditionUnion$inboundSchema
1408
- .parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileStackConditionUnion' from JSON`);
1409
- }
1410
- /** @internal */
1411
- export const DeploymentStatePreparedStackProfileGcpStack$inboundSchema = z.object({
1412
- condition: z.nullable(z.union([
1413
- z.lazy(() => DeploymentStatePreparedStackProfileConditionStack$inboundSchema),
1414
- z.string(),
1415
- ])).optional(),
1416
- scope: z.string(),
1417
- });
1418
- /** @internal */
1419
- export const DeploymentStatePreparedStackProfileGcpStack$outboundSchema = z.object({
1420
- condition: z.nullable(z.union([
1421
- z.lazy(() => DeploymentStatePreparedStackProfileConditionStack$outboundSchema),
1422
- z.string(),
1423
- ])).optional(),
1424
- scope: z.string(),
1425
- });
1426
- export function deploymentStatePreparedStackProfileGcpStackToJSON(deploymentStatePreparedStackProfileGcpStack) {
1427
- return JSON.stringify(DeploymentStatePreparedStackProfileGcpStack$outboundSchema.parse(deploymentStatePreparedStackProfileGcpStack));
1428
- }
1429
- export function deploymentStatePreparedStackProfileGcpStackFromJSON(jsonString) {
1430
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileGcpStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileGcpStack' from JSON`);
1431
- }
1432
- /** @internal */
1433
- export const DeploymentStatePreparedStackProfileGcpBinding$inboundSchema = z.object({
1434
- resource: z.lazy(() => DeploymentStatePreparedStackProfileGcpResource$inboundSchema).optional(),
1435
- stack: z.lazy(() => DeploymentStatePreparedStackProfileGcpStack$inboundSchema).optional(),
1436
- });
1437
- /** @internal */
1438
- export const DeploymentStatePreparedStackProfileGcpBinding$outboundSchema = z.object({
1439
- resource: z.lazy(() => DeploymentStatePreparedStackProfileGcpResource$outboundSchema).optional(),
1440
- stack: z.lazy(() => DeploymentStatePreparedStackProfileGcpStack$outboundSchema).optional(),
1441
- });
1442
- export function deploymentStatePreparedStackProfileGcpBindingToJSON(deploymentStatePreparedStackProfileGcpBinding) {
1443
- return JSON.stringify(DeploymentStatePreparedStackProfileGcpBinding$outboundSchema.parse(deploymentStatePreparedStackProfileGcpBinding));
1444
- }
1445
- export function deploymentStatePreparedStackProfileGcpBindingFromJSON(jsonString) {
1446
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileGcpBinding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileGcpBinding' from JSON`);
1447
- }
1448
- /** @internal */
1449
- export const DeploymentStatePreparedStackProfileGcpGrant$inboundSchema = z.object({
1450
- actions: z.nullable(z.array(z.string())).optional(),
1451
- dataActions: z.nullable(z.array(z.string())).optional(),
1452
- permissions: z.nullable(z.array(z.string())).optional(),
1453
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1454
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1455
- });
1456
- /** @internal */
1457
- export const DeploymentStatePreparedStackProfileGcpGrant$outboundSchema = z.object({
1458
- actions: z.nullable(z.array(z.string())).optional(),
1459
- dataActions: z.nullable(z.array(z.string())).optional(),
1460
- permissions: z.nullable(z.array(z.string())).optional(),
1461
- predefinedRoles: z.nullable(z.array(z.string())).optional(),
1462
- residualPermissions: z.nullable(z.array(z.string())).optional(),
1463
- });
1464
- export function deploymentStatePreparedStackProfileGcpGrantToJSON(deploymentStatePreparedStackProfileGcpGrant) {
1465
- return JSON.stringify(DeploymentStatePreparedStackProfileGcpGrant$outboundSchema.parse(deploymentStatePreparedStackProfileGcpGrant));
1466
- }
1467
- export function deploymentStatePreparedStackProfileGcpGrantFromJSON(jsonString) {
1468
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileGcpGrant$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileGcpGrant' from JSON`);
1469
- }
1470
- /** @internal */
1471
- export const DeploymentStatePreparedStackProfileGcp$inboundSchema = z.object({
1472
- binding: z.lazy(() => DeploymentStatePreparedStackProfileGcpBinding$inboundSchema),
1473
- description: z.nullable(z.string()).optional(),
1474
- grant: z.lazy(() => DeploymentStatePreparedStackProfileGcpGrant$inboundSchema),
1475
- label: z.nullable(z.string()).optional(),
1476
- });
1477
- /** @internal */
1478
- export const DeploymentStatePreparedStackProfileGcp$outboundSchema = z.object({
1479
- binding: z.lazy(() => DeploymentStatePreparedStackProfileGcpBinding$outboundSchema),
1480
- description: z.nullable(z.string()).optional(),
1481
- grant: z.lazy(() => DeploymentStatePreparedStackProfileGcpGrant$outboundSchema),
1482
- label: z.nullable(z.string()).optional(),
1483
- });
1484
- export function deploymentStatePreparedStackProfileGcpToJSON(deploymentStatePreparedStackProfileGcp) {
1485
- return JSON.stringify(DeploymentStatePreparedStackProfileGcp$outboundSchema.parse(deploymentStatePreparedStackProfileGcp));
1486
- }
1487
- export function deploymentStatePreparedStackProfileGcpFromJSON(jsonString) {
1488
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileGcp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileGcp' from JSON`);
1489
- }
1490
- /** @internal */
1491
- export const DeploymentStatePreparedStackProfilePlatforms$inboundSchema = z.object({
1492
- aws: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackProfileAw$inboundSchema))).optional(),
1493
- azure: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackProfileAzure$inboundSchema))).optional(),
1494
- gcp: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackProfileGcp$inboundSchema))).optional(),
1495
- });
1496
- /** @internal */
1497
- export const DeploymentStatePreparedStackProfilePlatforms$outboundSchema = z.object({
1498
- aws: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackProfileAw$outboundSchema))).optional(),
1499
- azure: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackProfileAzure$outboundSchema))).optional(),
1500
- gcp: z.nullable(z.array(z.lazy(() => DeploymentStatePreparedStackProfileGcp$outboundSchema))).optional(),
1501
- });
1502
- export function deploymentStatePreparedStackProfilePlatformsToJSON(deploymentStatePreparedStackProfilePlatforms) {
1503
- return JSON.stringify(DeploymentStatePreparedStackProfilePlatforms$outboundSchema.parse(deploymentStatePreparedStackProfilePlatforms));
1504
- }
1505
- export function deploymentStatePreparedStackProfilePlatformsFromJSON(jsonString) {
1506
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfilePlatforms$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfilePlatforms' from JSON`);
1507
- }
1508
- /** @internal */
1509
- export const DeploymentStatePreparedStackProfile$inboundSchema = z.object({
1510
- description: z.string(),
1511
- id: z.string(),
1512
- platforms: z.lazy(() => DeploymentStatePreparedStackProfilePlatforms$inboundSchema),
1513
- });
1514
- /** @internal */
1515
- export const DeploymentStatePreparedStackProfile$outboundSchema = z.object({
1516
- description: z.string(),
1517
- id: z.string(),
1518
- platforms: z.lazy(() => DeploymentStatePreparedStackProfilePlatforms$outboundSchema),
1519
- });
1520
- export function deploymentStatePreparedStackProfileToJSON(deploymentStatePreparedStackProfile) {
1521
- return JSON.stringify(DeploymentStatePreparedStackProfile$outboundSchema.parse(deploymentStatePreparedStackProfile));
1522
- }
1523
- export function deploymentStatePreparedStackProfileFromJSON(jsonString) {
1524
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfile' from JSON`);
1525
- }
1526
- /** @internal */
1527
- export const DeploymentStatePreparedStackProfileUnion$inboundSchema = z.union([
1528
- z.lazy(() => DeploymentStatePreparedStackProfile$inboundSchema),
1529
- z.string(),
1530
- ]);
1531
- /** @internal */
1532
- export const DeploymentStatePreparedStackProfileUnion$outboundSchema = z.union([
1533
- z.lazy(() => DeploymentStatePreparedStackProfile$outboundSchema),
1534
- z.string(),
1535
- ]);
1536
- export function deploymentStatePreparedStackProfileUnionToJSON(deploymentStatePreparedStackProfileUnion) {
1537
- return JSON.stringify(DeploymentStatePreparedStackProfileUnion$outboundSchema.parse(deploymentStatePreparedStackProfileUnion));
1538
- }
1539
- export function deploymentStatePreparedStackProfileUnionFromJSON(jsonString) {
1540
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackProfileUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackProfileUnion' from JSON`);
1541
- }
1542
- /** @internal */
1543
- export const DeploymentStatePreparedStackPermissions$inboundSchema = z.object({
1544
- management: z.union([
1545
- z.lazy(() => DeploymentStatePreparedStackManagement1$inboundSchema),
1546
- z.lazy(() => DeploymentStatePreparedStackManagement2$inboundSchema),
1547
- DeploymentStatePreparedStackManagementEnum$inboundSchema,
1548
- ]).optional(),
1549
- profiles: z.record(z.string(), z.record(z.string(), z.array(z.union([
1550
- z.lazy(() => DeploymentStatePreparedStackProfile$inboundSchema),
1551
- z.string(),
1552
- ])))),
1553
- });
1554
- /** @internal */
1555
- export const DeploymentStatePreparedStackPermissions$outboundSchema = z.object({
1556
- management: z.union([
1557
- z.lazy(() => DeploymentStatePreparedStackManagement1$outboundSchema),
1558
- z.lazy(() => DeploymentStatePreparedStackManagement2$outboundSchema),
1559
- DeploymentStatePreparedStackManagementEnum$outboundSchema,
1560
- ]).optional(),
1561
- profiles: z.record(z.string(), z.record(z.string(), z.array(z.union([
1562
- z.lazy(() => DeploymentStatePreparedStackProfile$outboundSchema),
1563
- z.string(),
1564
- ])))),
1565
- });
1566
- export function deploymentStatePreparedStackPermissionsToJSON(deploymentStatePreparedStackPermissions) {
1567
- return JSON.stringify(DeploymentStatePreparedStackPermissions$outboundSchema.parse(deploymentStatePreparedStackPermissions));
1568
- }
1569
- export function deploymentStatePreparedStackPermissionsFromJSON(jsonString) {
1570
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackPermissions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackPermissions' from JSON`);
1571
- }
1572
- /** @internal */
1573
- export const DeploymentStatePreparedStackConfig$inboundSchema = collectExtraKeys$(z.object({
1574
- id: z.string(),
1575
- type: z.string(),
1576
- }).catchall(z.any()), "additionalProperties", true);
1577
- /** @internal */
1578
- export const DeploymentStatePreparedStackConfig$outboundSchema = z.object({
1579
- id: z.string(),
1580
- type: z.string(),
1581
- additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
1582
- }).transform((v) => {
1583
- return {
1584
- ...v.additionalProperties,
1585
- ...remap$(v, {
1586
- additionalProperties: null,
1587
- }),
1588
- };
1589
- });
1590
- export function deploymentStatePreparedStackConfigToJSON(deploymentStatePreparedStackConfig) {
1591
- return JSON.stringify(DeploymentStatePreparedStackConfig$outboundSchema.parse(deploymentStatePreparedStackConfig));
1592
- }
1593
- export function deploymentStatePreparedStackConfigFromJSON(jsonString) {
1594
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackConfig' from JSON`);
1595
- }
1596
- /** @internal */
1597
- export const DeploymentStatePreparedStackDependency$inboundSchema = z.object({
1598
- id: z.string(),
1599
- type: z.string(),
1600
- });
1601
- /** @internal */
1602
- export const DeploymentStatePreparedStackDependency$outboundSchema = z.object({
1603
- id: z.string(),
1604
- type: z.string(),
1605
- });
1606
- export function deploymentStatePreparedStackDependencyToJSON(deploymentStatePreparedStackDependency) {
1607
- return JSON.stringify(DeploymentStatePreparedStackDependency$outboundSchema.parse(deploymentStatePreparedStackDependency));
1608
- }
1609
- export function deploymentStatePreparedStackDependencyFromJSON(jsonString) {
1610
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackDependency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackDependency' from JSON`);
1611
- }
1612
- /** @internal */
1613
- export const DeploymentStatePreparedStackLifecycle$inboundSchema = z.enum(DeploymentStatePreparedStackLifecycle);
1614
- /** @internal */
1615
- export const DeploymentStatePreparedStackLifecycle$outboundSchema = DeploymentStatePreparedStackLifecycle$inboundSchema;
1616
- /** @internal */
1617
- export const DeploymentStatePreparedStackResources$inboundSchema = z.object({
1618
- config: z.lazy(() => DeploymentStatePreparedStackConfig$inboundSchema),
1619
- dependencies: z.array(z.lazy(() => DeploymentStatePreparedStackDependency$inboundSchema)),
1620
- enabledWhen: z.nullable(z.string()).optional(),
1621
- lifecycle: DeploymentStatePreparedStackLifecycle$inboundSchema,
1622
- remoteAccess: z.boolean().optional(),
1623
- });
1624
- /** @internal */
1625
- export const DeploymentStatePreparedStackResources$outboundSchema = z.object({
1626
- config: z.lazy(() => DeploymentStatePreparedStackConfig$outboundSchema),
1627
- dependencies: z.array(z.lazy(() => DeploymentStatePreparedStackDependency$outboundSchema)),
1628
- enabledWhen: z.nullable(z.string()).optional(),
1629
- lifecycle: DeploymentStatePreparedStackLifecycle$outboundSchema,
1630
- remoteAccess: z.boolean().optional(),
1631
- });
1632
- export function deploymentStatePreparedStackResourcesToJSON(deploymentStatePreparedStackResources) {
1633
- return JSON.stringify(DeploymentStatePreparedStackResources$outboundSchema.parse(deploymentStatePreparedStackResources));
1634
- }
1635
- export function deploymentStatePreparedStackResourcesFromJSON(jsonString) {
1636
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackResources' from JSON`);
1637
- }
1638
- /** @internal */
1639
- export const DeploymentStatePreparedStackSupportedPlatform$inboundSchema = z.enum(DeploymentStatePreparedStackSupportedPlatform);
1640
- /** @internal */
1641
- export const DeploymentStatePreparedStackSupportedPlatform$outboundSchema = DeploymentStatePreparedStackSupportedPlatform$inboundSchema;
1642
- /** @internal */
1643
- export const DeploymentStatePreparedStack$inboundSchema = z.object({
1644
- dynamicContainerImageResources: z.array(z.string()).optional(),
1645
- dynamicContainerRepositories: z.array(z.string()).optional(),
1646
- id: z.string(),
1647
- inputs: z.array(DeploymentStatePreparedStackInput$inboundSchema).optional(),
1648
- operations: z.nullable(z.union([
1649
- z.lazy(() => DeploymentStatePreparedStackOperations$inboundSchema),
1650
- z.string(),
1651
- ])).optional(),
1652
- permissions: z.lazy(() => DeploymentStatePreparedStackPermissions$inboundSchema).optional(),
1653
- resources: z.record(z.string(), z.lazy(() => DeploymentStatePreparedStackResources$inboundSchema)),
1654
- supportedPlatforms: z.nullable(z.array(DeploymentStatePreparedStackSupportedPlatform$inboundSchema)).optional(),
1655
- });
1656
- /** @internal */
1657
- export const DeploymentStatePreparedStack$outboundSchema = z.object({
1658
- dynamicContainerImageResources: z.array(z.string()).optional(),
1659
- dynamicContainerRepositories: z.array(z.string()).optional(),
1660
- id: z.string(),
1661
- inputs: z.array(DeploymentStatePreparedStackInput$outboundSchema).optional(),
1662
- operations: z.nullable(z.union([
1663
- z.lazy(() => DeploymentStatePreparedStackOperations$outboundSchema),
1664
- z.string(),
1665
- ])).optional(),
1666
- permissions: z.lazy(() => DeploymentStatePreparedStackPermissions$outboundSchema).optional(),
1667
- resources: z.record(z.string(), z.lazy(() => DeploymentStatePreparedStackResources$outboundSchema)),
1668
- supportedPlatforms: z.nullable(z.array(DeploymentStatePreparedStackSupportedPlatform$outboundSchema)).optional(),
1669
- });
1670
- export function deploymentStatePreparedStackToJSON(deploymentStatePreparedStack) {
1671
- return JSON.stringify(DeploymentStatePreparedStack$outboundSchema.parse(deploymentStatePreparedStack));
1672
- }
1673
- export function deploymentStatePreparedStackFromJSON(jsonString) {
1674
- return safeParse(jsonString, (x) => DeploymentStatePreparedStack$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStack' from JSON`);
1675
- }
1676
- /** @internal */
1677
- export const DeploymentStatePreparedStackUnion$inboundSchema = z.union([
1678
- z.lazy(() => DeploymentStatePreparedStack$inboundSchema),
1679
- z.string(),
1680
- ]);
1681
- /** @internal */
1682
- export const DeploymentStatePreparedStackUnion$outboundSchema = z.union([
1683
- z.lazy(() => DeploymentStatePreparedStack$outboundSchema),
1684
- z.string(),
1685
- ]);
1686
- export function deploymentStatePreparedStackUnionToJSON(deploymentStatePreparedStackUnion) {
1687
- return JSON.stringify(DeploymentStatePreparedStackUnion$outboundSchema.parse(deploymentStatePreparedStackUnion));
1688
- }
1689
- export function deploymentStatePreparedStackUnionFromJSON(jsonString) {
1690
- return safeParse(jsonString, (x) => DeploymentStatePreparedStackUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreparedStackUnion' from JSON`);
1691
- }
1692
- /** @internal */
1693
- export const DeploymentStateRegistryAccess$inboundSchema = z.object({
1694
- repositories: z.array(z.string()).optional(),
1695
- serviceTypes: z.array(z.string()).optional(),
1696
- });
1697
- /** @internal */
1698
- export const DeploymentStateRegistryAccess$outboundSchema = z.object({
1699
- repositories: z.array(z.string()).optional(),
1700
- serviceTypes: z.array(z.string()).optional(),
1701
- });
1702
- export function deploymentStateRegistryAccessToJSON(deploymentStateRegistryAccess) {
1703
- return JSON.stringify(DeploymentStateRegistryAccess$outboundSchema.parse(deploymentStateRegistryAccess));
1704
- }
1705
- export function deploymentStateRegistryAccessFromJSON(jsonString) {
1706
- return safeParse(jsonString, (x) => DeploymentStateRegistryAccess$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateRegistryAccess' from JSON`);
1707
- }
1708
- /** @internal */
1709
- export const DeploymentStateRegistryAccessUnion$inboundSchema = z.union([
1710
- z.lazy(() => DeploymentStateRegistryAccess$inboundSchema),
1711
- z.string(),
1712
- ]);
1713
- /** @internal */
1714
- export const DeploymentStateRegistryAccessUnion$outboundSchema = z.union([
1715
- z.lazy(() => DeploymentStateRegistryAccess$outboundSchema),
1716
- z.string(),
1717
- ]);
1718
- export function deploymentStateRegistryAccessUnionToJSON(deploymentStateRegistryAccessUnion) {
1719
- return JSON.stringify(DeploymentStateRegistryAccessUnion$outboundSchema.parse(deploymentStateRegistryAccessUnion));
1720
- }
1721
- export function deploymentStateRegistryAccessUnionFromJSON(jsonString) {
1722
- return safeParse(jsonString, (x) => DeploymentStateRegistryAccessUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateRegistryAccessUnion' from JSON`);
1723
- }
1724
- /** @internal */
1725
- export const DeploymentStateEgress$inboundSchema = z.object({
1726
- connectorArn: z.nullable(z.string()).optional(),
1727
- connectorRequest: z.nullable(z.string()).optional(),
1728
- operatorRoleName: z.string(),
1729
- securityGroupId: z.nullable(z.string()).optional(),
1730
- });
1731
- /** @internal */
1732
- export const DeploymentStateEgress$outboundSchema = z.object({
1733
- connectorArn: z.nullable(z.string()).optional(),
1734
- connectorRequest: z.nullable(z.string()).optional(),
1735
- operatorRoleName: z.string(),
1736
- securityGroupId: z.nullable(z.string()).optional(),
1737
- });
1738
- export function deploymentStateEgressToJSON(deploymentStateEgress) {
1739
- return JSON.stringify(DeploymentStateEgress$outboundSchema.parse(deploymentStateEgress));
1740
- }
1741
- export function deploymentStateEgressFromJSON(jsonString) {
1742
- return safeParse(jsonString, (x) => DeploymentStateEgress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateEgress' from JSON`);
1743
- }
1744
- /** @internal */
1745
- export const DeploymentStateEgressUnion$inboundSchema = z.union([z.lazy(() => DeploymentStateEgress$inboundSchema), z.string()]);
1746
- /** @internal */
1747
- export const DeploymentStateEgressUnion$outboundSchema = z.union([z.lazy(() => DeploymentStateEgress$outboundSchema), z.string()]);
1748
- export function deploymentStateEgressUnionToJSON(deploymentStateEgressUnion) {
1749
- return JSON.stringify(DeploymentStateEgressUnion$outboundSchema.parse(deploymentStateEgressUnion));
1750
- }
1751
- export function deploymentStateEgressUnionFromJSON(jsonString) {
1752
- return safeParse(jsonString, (x) => DeploymentStateEgressUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateEgressUnion' from JSON`);
1753
- }
1754
- /** @internal */
1755
- export const DeploymentStateTypeAwsSandbox$inboundSchema = z.enum(DeploymentStateTypeAwsSandbox);
1756
- /** @internal */
1757
- export const DeploymentStateTypeAwsSandbox$outboundSchema = DeploymentStateTypeAwsSandbox$inboundSchema;
1758
- /** @internal */
1759
- export const DeploymentStateSetupScaffolding$inboundSchema = z.object({
1760
- buildRoleName: z.string(),
1761
- egress: z.nullable(z.union([z.lazy(() => DeploymentStateEgress$inboundSchema), z.string()])).optional(),
1762
- imageArn: z.nullable(z.string()).optional(),
1763
- type: DeploymentStateTypeAwsSandbox$inboundSchema,
1764
- });
1765
- /** @internal */
1766
- export const DeploymentStateSetupScaffolding$outboundSchema = z.object({
1767
- buildRoleName: z.string(),
1768
- egress: z.nullable(z.union([z.lazy(() => DeploymentStateEgress$outboundSchema), z.string()])).optional(),
1769
- imageArn: z.nullable(z.string()).optional(),
1770
- type: DeploymentStateTypeAwsSandbox$outboundSchema,
1771
- });
1772
- export function deploymentStateSetupScaffoldingToJSON(deploymentStateSetupScaffolding) {
1773
- return JSON.stringify(DeploymentStateSetupScaffolding$outboundSchema.parse(deploymentStateSetupScaffolding));
1774
- }
1775
- export function deploymentStateSetupScaffoldingFromJSON(jsonString) {
1776
- return safeParse(jsonString, (x) => DeploymentStateSetupScaffolding$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateSetupScaffolding' from JSON`);
1777
- }
1778
- /** @internal */
1779
- export const DeploymentStateSetupUpdateAuthorization$inboundSchema = z.object({
1780
- baselineFrozenDigest: z.string(),
1781
- nonce: z.string(),
1782
- releaseId: z.string(),
1783
- setupFingerprint: z.string(),
1784
- setupFingerprintVersion: z.int(),
1785
- setupTarget: z.string(),
1786
- targetFrozenDigest: z.string(),
1787
- });
1788
- /** @internal */
1789
- export const DeploymentStateSetupUpdateAuthorization$outboundSchema = z.object({
1790
- baselineFrozenDigest: z.string(),
1791
- nonce: z.string(),
1792
- releaseId: z.string(),
1793
- setupFingerprint: z.string(),
1794
- setupFingerprintVersion: z.int(),
1795
- setupTarget: z.string(),
1796
- targetFrozenDigest: z.string(),
1797
- });
1798
- export function deploymentStateSetupUpdateAuthorizationToJSON(deploymentStateSetupUpdateAuthorization) {
1799
- return JSON.stringify(DeploymentStateSetupUpdateAuthorization$outboundSchema.parse(deploymentStateSetupUpdateAuthorization));
1800
- }
1801
- export function deploymentStateSetupUpdateAuthorizationFromJSON(jsonString) {
1802
- return safeParse(jsonString, (x) => DeploymentStateSetupUpdateAuthorization$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateSetupUpdateAuthorization' from JSON`);
1803
- }
1804
- /** @internal */
1805
- export const DeploymentStateSetupUpdateAuthorizationUnion$inboundSchema = z.union([
1806
- z.lazy(() => DeploymentStateSetupUpdateAuthorization$inboundSchema),
1807
- z.string(),
1808
- ]);
1809
- /** @internal */
1810
- export const DeploymentStateSetupUpdateAuthorizationUnion$outboundSchema = z.union([
1811
- z.lazy(() => DeploymentStateSetupUpdateAuthorization$outboundSchema),
1812
- z.string(),
1813
- ]);
1814
- export function deploymentStateSetupUpdateAuthorizationUnionToJSON(deploymentStateSetupUpdateAuthorizationUnion) {
1815
- return JSON.stringify(DeploymentStateSetupUpdateAuthorizationUnion$outboundSchema.parse(deploymentStateSetupUpdateAuthorizationUnion));
1816
- }
1817
- export function deploymentStateSetupUpdateAuthorizationUnionFromJSON(jsonString) {
1818
- return safeParse(jsonString, (x) => DeploymentStateSetupUpdateAuthorizationUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateSetupUpdateAuthorizationUnion' from JSON`);
1819
- }
1820
- /** @internal */
1821
- export const DeploymentStateRuntimeMetadata$inboundSchema = z.object({
1822
- automaticSetup: z.boolean().optional(),
1823
- deployerSecrets: z.array(DeploymentStateDeployerSecret$inboundSchema)
1824
- .optional(),
1825
- directSetupRevision: z.nullable(z.string()).optional(),
1826
- initialSetupAuthority: DeploymentStateInitialSetupAuthority$inboundSchema
1827
- .optional(),
1828
- lastSyncedEnvVarsHash: z.nullable(z.string()).optional(),
1829
- lastSyncedSecretNames: z.array(z.string()).optional(),
1830
- pendingPreparedReleaseId: z.nullable(z.string()).optional(),
1831
- pendingPreparedStack: z.nullable(DeploymentStatePendingPreparedStackUnion$inboundSchema).optional(),
1832
- persistedGateAnswers: z.record(z.string(), z.boolean()).optional(),
1833
- preparedStack: z.nullable(z.union([
1834
- z.lazy(() => DeploymentStatePreparedStack$inboundSchema),
1835
- z.string(),
1836
- ])).optional(),
1837
- registryAccess: z.nullable(z.union([
1838
- z.lazy(() => DeploymentStateRegistryAccess$inboundSchema),
1839
- z.string(),
1840
- ])).optional(),
1841
- registryAccessGranted: z.boolean().optional(),
1842
- setupScaffolding: z.record(z.string(), z.lazy(() => DeploymentStateSetupScaffolding$inboundSchema)).optional(),
1843
- setupUpdateAuthorization: z.nullable(z.union([
1844
- z.lazy(() => DeploymentStateSetupUpdateAuthorization$inboundSchema),
1845
- z.string(),
1846
- ])).optional(),
1847
- });
1848
- /** @internal */
1849
- export const DeploymentStateRuntimeMetadata$outboundSchema = z.object({
1850
- automaticSetup: z.boolean().optional(),
1851
- deployerSecrets: z.array(DeploymentStateDeployerSecret$outboundSchema)
1852
- .optional(),
1853
- directSetupRevision: z.nullable(z.string()).optional(),
1854
- initialSetupAuthority: DeploymentStateInitialSetupAuthority$outboundSchema
1855
- .optional(),
1856
- lastSyncedEnvVarsHash: z.nullable(z.string()).optional(),
1857
- lastSyncedSecretNames: z.array(z.string()).optional(),
1858
- pendingPreparedReleaseId: z.nullable(z.string()).optional(),
1859
- pendingPreparedStack: z.nullable(DeploymentStatePendingPreparedStackUnion$outboundSchema).optional(),
1860
- persistedGateAnswers: z.record(z.string(), z.boolean()).optional(),
1861
- preparedStack: z.nullable(z.union([
1862
- z.lazy(() => DeploymentStatePreparedStack$outboundSchema),
1863
- z.string(),
1864
- ])).optional(),
1865
- registryAccess: z.nullable(z.union([
1866
- z.lazy(() => DeploymentStateRegistryAccess$outboundSchema),
1867
- z.string(),
1868
- ])).optional(),
1869
- registryAccessGranted: z.boolean().optional(),
1870
- setupScaffolding: z.record(z.string(), z.lazy(() => DeploymentStateSetupScaffolding$outboundSchema)).optional(),
1871
- setupUpdateAuthorization: z.nullable(z.union([
1872
- z.lazy(() => DeploymentStateSetupUpdateAuthorization$outboundSchema),
1873
- z.string(),
1874
- ])).optional(),
1875
- });
1876
- export function deploymentStateRuntimeMetadataToJSON(deploymentStateRuntimeMetadata) {
1877
- return JSON.stringify(DeploymentStateRuntimeMetadata$outboundSchema.parse(deploymentStateRuntimeMetadata));
1878
- }
1879
- export function deploymentStateRuntimeMetadataFromJSON(jsonString) {
1880
- return safeParse(jsonString, (x) => DeploymentStateRuntimeMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateRuntimeMetadata' from JSON`);
1881
- }
1882
- /** @internal */
1883
- export const RuntimeMetadata$inboundSchema = z.union([
1884
- z.lazy(() => DeploymentStateRuntimeMetadata$inboundSchema),
1885
- z.string(),
1886
- ]);
1887
- /** @internal */
1888
- export const RuntimeMetadata$outboundSchema = z.union([
1889
- z.lazy(() => DeploymentStateRuntimeMetadata$outboundSchema),
1890
- z.string(),
1891
- ]);
1892
- export function runtimeMetadataToJSON(runtimeMetadata) {
1893
- return JSON.stringify(RuntimeMetadata$outboundSchema.parse(runtimeMetadata));
1894
- }
1895
- export function runtimeMetadataFromJSON(jsonString) {
1896
- return safeParse(jsonString, (x) => RuntimeMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RuntimeMetadata' from JSON`);
1897
- }
1898
- /** @internal */
1899
- export const DeploymentStateStackStatePlatform$inboundSchema = z.enum(DeploymentStateStackStatePlatform);
1900
- /** @internal */
1901
- export const DeploymentStateStackStatePlatform$outboundSchema = DeploymentStateStackStatePlatform$inboundSchema;
1902
- /** @internal */
1903
- export const DeploymentStateStackStateConfig$inboundSchema = collectExtraKeys$(z.object({
1904
- id: z.string(),
1905
- type: z.string(),
1906
- }).catchall(z.any()), "additionalProperties", true);
1907
- /** @internal */
1908
- export const DeploymentStateStackStateConfig$outboundSchema = z.object({
1909
- id: z.string(),
1910
- type: z.string(),
1911
- additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
1912
- }).transform((v) => {
1913
- return {
1914
- ...v.additionalProperties,
1915
- ...remap$(v, {
1916
- additionalProperties: null,
1917
- }),
1918
- };
1919
- });
1920
- export function deploymentStateStackStateConfigToJSON(deploymentStateStackStateConfig) {
1921
- return JSON.stringify(DeploymentStateStackStateConfig$outboundSchema.parse(deploymentStateStackStateConfig));
1922
- }
1923
- export function deploymentStateStackStateConfigFromJSON(jsonString) {
1924
- return safeParse(jsonString, (x) => DeploymentStateStackStateConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateStackStateConfig' from JSON`);
1925
- }
1926
- /** @internal */
1927
- export const DeploymentStateControllerPlatformEnum$inboundSchema = z.enum(DeploymentStateControllerPlatformEnum);
1928
- /** @internal */
1929
- export const DeploymentStateControllerPlatformEnum$outboundSchema = DeploymentStateControllerPlatformEnum$inboundSchema;
1930
- /** @internal */
1931
- export const DeploymentStateControllerPlatformUnion$inboundSchema = z.union([DeploymentStateControllerPlatformEnum$inboundSchema, z.string()]);
1932
- /** @internal */
1933
- export const DeploymentStateControllerPlatformUnion$outboundSchema = z.union([DeploymentStateControllerPlatformEnum$outboundSchema, z.string()]);
1934
- export function deploymentStateControllerPlatformUnionToJSON(deploymentStateControllerPlatformUnion) {
1935
- return JSON.stringify(DeploymentStateControllerPlatformUnion$outboundSchema.parse(deploymentStateControllerPlatformUnion));
1936
- }
1937
- export function deploymentStateControllerPlatformUnionFromJSON(jsonString) {
1938
- return safeParse(jsonString, (x) => DeploymentStateControllerPlatformUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateControllerPlatformUnion' from JSON`);
1939
- }
1940
- /** @internal */
1941
- export const DeploymentStateStackStateDependency$inboundSchema = z.object({
1942
- id: z.string(),
1943
- type: z.string(),
1944
- });
1945
- /** @internal */
1946
- export const DeploymentStateStackStateDependency$outboundSchema = z.object({
1947
- id: z.string(),
1948
- type: z.string(),
1949
- });
1950
- export function deploymentStateStackStateDependencyToJSON(deploymentStateStackStateDependency) {
1951
- return JSON.stringify(DeploymentStateStackStateDependency$outboundSchema.parse(deploymentStateStackStateDependency));
1952
- }
1953
- export function deploymentStateStackStateDependencyFromJSON(jsonString) {
1954
- return safeParse(jsonString, (x) => DeploymentStateStackStateDependency$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateStackStateDependency' from JSON`);
1955
- }
1956
- /** @internal */
1957
- export const DeploymentStateStackStateError$inboundSchema = z.object({
1958
- code: z.string(),
1959
- context: z.nullable(z.any()).optional(),
1960
- hint: z.nullable(z.string()).optional(),
1961
- httpStatusCode: z.nullable(z.int()).optional(),
1962
- internal: z.boolean(),
1963
- message: z.string(),
1964
- retryable: z.boolean().default(false),
1965
- source: z.nullable(z.any()).optional(),
1966
- });
1967
- /** @internal */
1968
- export const DeploymentStateStackStateError$outboundSchema = z.object({
1969
- code: z.string(),
1970
- context: z.nullable(z.any()).optional(),
1971
- hint: z.nullable(z.string()).optional(),
1972
- httpStatusCode: z.nullable(z.int()).optional(),
1973
- internal: z.boolean(),
1974
- message: z.string(),
1975
- retryable: z.boolean().default(false),
1976
- source: z.nullable(z.any()).optional(),
1977
- });
1978
- export function deploymentStateStackStateErrorToJSON(deploymentStateStackStateError) {
1979
- return JSON.stringify(DeploymentStateStackStateError$outboundSchema.parse(deploymentStateStackStateError));
1980
- }
1981
- export function deploymentStateStackStateErrorFromJSON(jsonString) {
1982
- return safeParse(jsonString, (x) => DeploymentStateStackStateError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateStackStateError' from JSON`);
1983
- }
1984
- /** @internal */
1985
- export const DeploymentStateStackStateErrorUnion$inboundSchema = z.union([
1986
- z.lazy(() => DeploymentStateStackStateError$inboundSchema),
1987
- z.string(),
1988
- ]);
1989
- /** @internal */
1990
- export const DeploymentStateStackStateErrorUnion$outboundSchema = z.union([
1991
- z.lazy(() => DeploymentStateStackStateError$outboundSchema),
1992
- z.string(),
1993
- ]);
1994
- export function deploymentStateStackStateErrorUnionToJSON(deploymentStateStackStateErrorUnion) {
1995
- return JSON.stringify(DeploymentStateStackStateErrorUnion$outboundSchema.parse(deploymentStateStackStateErrorUnion));
1996
- }
1997
- export function deploymentStateStackStateErrorUnionFromJSON(jsonString) {
1998
- return safeParse(jsonString, (x) => DeploymentStateStackStateErrorUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateStackStateErrorUnion' from JSON`);
1999
- }
2000
- /** @internal */
2001
- export const DeploymentStateStackStateLifecycleEnum$inboundSchema = z.enum(DeploymentStateStackStateLifecycleEnum);
2002
- /** @internal */
2003
- export const DeploymentStateStackStateLifecycleEnum$outboundSchema = DeploymentStateStackStateLifecycleEnum$inboundSchema;
2004
- /** @internal */
2005
- export const DeploymentStateLifecycleUnion$inboundSchema = z.union([DeploymentStateStackStateLifecycleEnum$inboundSchema, z.string()]);
2006
- /** @internal */
2007
- export const DeploymentStateLifecycleUnion$outboundSchema = z.union([
2008
- DeploymentStateStackStateLifecycleEnum$outboundSchema,
2009
- z.string(),
2010
- ]);
2011
- export function deploymentStateLifecycleUnionToJSON(deploymentStateLifecycleUnion) {
2012
- return JSON.stringify(DeploymentStateLifecycleUnion$outboundSchema.parse(deploymentStateLifecycleUnion));
2013
- }
2014
- export function deploymentStateLifecycleUnionFromJSON(jsonString) {
2015
- return safeParse(jsonString, (x) => DeploymentStateLifecycleUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateLifecycleUnion' from JSON`);
2016
- }
2017
- /** @internal */
2018
- export const DeploymentStateOutputs$inboundSchema = collectExtraKeys$(z.object({
2019
- type: z.string(),
2020
- }).catchall(z.any()), "additionalProperties", true);
2021
- /** @internal */
2022
- export const DeploymentStateOutputs$outboundSchema = z.object({
2023
- type: z.string(),
2024
- additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
2025
- }).transform((v) => {
2026
- return {
2027
- ...v.additionalProperties,
2028
- ...remap$(v, {
2029
- additionalProperties: null,
2030
- }),
2031
- };
2032
- });
2033
- export function deploymentStateOutputsToJSON(deploymentStateOutputs) {
2034
- return JSON.stringify(DeploymentStateOutputs$outboundSchema.parse(deploymentStateOutputs));
2035
- }
2036
- export function deploymentStateOutputsFromJSON(jsonString) {
2037
- return safeParse(jsonString, (x) => DeploymentStateOutputs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateOutputs' from JSON`);
2038
- }
2039
- /** @internal */
2040
- export const DeploymentStateOutputsUnion$inboundSchema = z.union([z.lazy(() => DeploymentStateOutputs$inboundSchema), z.string()]);
2041
- /** @internal */
2042
- export const DeploymentStateOutputsUnion$outboundSchema = z.union([z.lazy(() => DeploymentStateOutputs$outboundSchema), z.string()]);
2043
- export function deploymentStateOutputsUnionToJSON(deploymentStateOutputsUnion) {
2044
- return JSON.stringify(DeploymentStateOutputsUnion$outboundSchema.parse(deploymentStateOutputsUnion));
2045
- }
2046
- export function deploymentStateOutputsUnionFromJSON(jsonString) {
2047
- return safeParse(jsonString, (x) => DeploymentStateOutputsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateOutputsUnion' from JSON`);
2048
- }
2049
- /** @internal */
2050
- export const DeploymentStatePreviousConfig$inboundSchema = collectExtraKeys$(z.object({
2051
- id: z.string(),
2052
- type: z.string(),
2053
- }).catchall(z.any()), "additionalProperties", true);
2054
- /** @internal */
2055
- export const DeploymentStatePreviousConfig$outboundSchema = z.object({
2056
- id: z.string(),
2057
- type: z.string(),
2058
- additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
2059
- }).transform((v) => {
2060
- return {
2061
- ...v.additionalProperties,
2062
- ...remap$(v, {
2063
- additionalProperties: null,
2064
- }),
2065
- };
2066
- });
2067
- export function deploymentStatePreviousConfigToJSON(deploymentStatePreviousConfig) {
2068
- return JSON.stringify(DeploymentStatePreviousConfig$outboundSchema.parse(deploymentStatePreviousConfig));
2069
- }
2070
- export function deploymentStatePreviousConfigFromJSON(jsonString) {
2071
- return safeParse(jsonString, (x) => DeploymentStatePreviousConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreviousConfig' from JSON`);
2072
- }
2073
- /** @internal */
2074
- export const DeploymentStatePreviousConfigUnion$inboundSchema = z.union([
2075
- z.lazy(() => DeploymentStatePreviousConfig$inboundSchema),
2076
- z.string(),
2077
- ]);
2078
- /** @internal */
2079
- export const DeploymentStatePreviousConfigUnion$outboundSchema = z.union([
2080
- z.lazy(() => DeploymentStatePreviousConfig$outboundSchema),
2081
- z.string(),
2082
- ]);
2083
- export function deploymentStatePreviousConfigUnionToJSON(deploymentStatePreviousConfigUnion) {
2084
- return JSON.stringify(DeploymentStatePreviousConfigUnion$outboundSchema.parse(deploymentStatePreviousConfigUnion));
2085
- }
2086
- export function deploymentStatePreviousConfigUnionFromJSON(jsonString) {
2087
- return safeParse(jsonString, (x) => DeploymentStatePreviousConfigUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStatePreviousConfigUnion' from JSON`);
2088
- }
2089
- /** @internal */
2090
- export const DeploymentStateStackStateStatus$inboundSchema = z.enum(DeploymentStateStackStateStatus);
2091
- /** @internal */
2092
- export const DeploymentStateStackStateStatus$outboundSchema = DeploymentStateStackStateStatus$inboundSchema;
2093
- /** @internal */
2094
- export const DeploymentStateStackStateResources$inboundSchema = z.object({
2095
- _internal: z.nullable(z.any()).optional(),
2096
- config: z.lazy(() => DeploymentStateStackStateConfig$inboundSchema),
2097
- controllerPlatform: z.nullable(z.union([DeploymentStateControllerPlatformEnum$inboundSchema, z.string()])).optional(),
2098
- dependencies: z.array(z.lazy(() => DeploymentStateStackStateDependency$inboundSchema)).optional(),
2099
- error: z.nullable(z.union([
2100
- z.lazy(() => DeploymentStateStackStateError$inboundSchema),
2101
- z.string(),
2102
- ])).optional(),
2103
- lastFailedState: z.nullable(z.any()).optional(),
2104
- lifecycle: z.nullable(z.union([DeploymentStateStackStateLifecycleEnum$inboundSchema, z.string()])).optional(),
2105
- outputs: z.nullable(z.union([z.lazy(() => DeploymentStateOutputs$inboundSchema), z.string()])).optional(),
2106
- previousConfig: z.nullable(z.union([
2107
- z.lazy(() => DeploymentStatePreviousConfig$inboundSchema),
2108
- z.string(),
2109
- ])).optional(),
2110
- remoteBindingParams: z.nullable(z.any()).optional(),
2111
- retryAttempt: z.int().optional(),
2112
- status: DeploymentStateStackStateStatus$inboundSchema,
2113
- type: z.string(),
2114
- }).transform((v) => {
2115
- return remap$(v, {
2116
- "_internal": "internal",
2117
- });
2118
- });
2119
- /** @internal */
2120
- export const DeploymentStateStackStateResources$outboundSchema = z.object({
2121
- internal: z.nullable(z.any()).optional(),
2122
- config: z.lazy(() => DeploymentStateStackStateConfig$outboundSchema),
2123
- controllerPlatform: z.nullable(z.union([DeploymentStateControllerPlatformEnum$outboundSchema, z.string()])).optional(),
2124
- dependencies: z.array(z.lazy(() => DeploymentStateStackStateDependency$outboundSchema)).optional(),
2125
- error: z.nullable(z.union([
2126
- z.lazy(() => DeploymentStateStackStateError$outboundSchema),
2127
- z.string(),
2128
- ])).optional(),
2129
- lastFailedState: z.nullable(z.any()).optional(),
2130
- lifecycle: z.nullable(z.union([
2131
- DeploymentStateStackStateLifecycleEnum$outboundSchema,
2132
- z.string(),
2133
- ])).optional(),
2134
- outputs: z.nullable(z.union([z.lazy(() => DeploymentStateOutputs$outboundSchema), z.string()])).optional(),
2135
- previousConfig: z.nullable(z.union([
2136
- z.lazy(() => DeploymentStatePreviousConfig$outboundSchema),
2137
- z.string(),
2138
- ])).optional(),
2139
- remoteBindingParams: z.nullable(z.any()).optional(),
2140
- retryAttempt: z.int().optional(),
2141
- status: DeploymentStateStackStateStatus$outboundSchema,
2142
- type: z.string(),
2143
- }).transform((v) => {
2144
- return remap$(v, {
2145
- internal: "_internal",
2146
- });
2147
- });
2148
- export function deploymentStateStackStateResourcesToJSON(deploymentStateStackStateResources) {
2149
- return JSON.stringify(DeploymentStateStackStateResources$outboundSchema.parse(deploymentStateStackStateResources));
2150
- }
2151
- export function deploymentStateStackStateResourcesFromJSON(jsonString) {
2152
- return safeParse(jsonString, (x) => DeploymentStateStackStateResources$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateStackStateResources' from JSON`);
2153
- }
2154
- /** @internal */
2155
- export const DeploymentStateStackState$inboundSchema = z.object({
2156
- platform: DeploymentStateStackStatePlatform$inboundSchema,
2157
- resourcePrefix: z.string(),
2158
- resources: z.record(z.string(), z.lazy(() => DeploymentStateStackStateResources$inboundSchema)),
2159
- });
2160
- /** @internal */
2161
- export const DeploymentStateStackState$outboundSchema = z.object({
2162
- platform: DeploymentStateStackStatePlatform$outboundSchema,
2163
- resourcePrefix: z.string(),
2164
- resources: z.record(z.string(), z.lazy(() => DeploymentStateStackStateResources$outboundSchema)),
2165
- });
2166
- export function deploymentStateStackStateToJSON(deploymentStateStackState) {
2167
- return JSON.stringify(DeploymentStateStackState$outboundSchema.parse(deploymentStateStackState));
2168
- }
2169
- export function deploymentStateStackStateFromJSON(jsonString) {
2170
- return safeParse(jsonString, (x) => DeploymentStateStackState$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentStateStackState' from JSON`);
2171
- }
2172
- /** @internal */
2173
- export const StackState$inboundSchema = z.union([z.lazy(() => DeploymentStateStackState$inboundSchema), z.string()]);
2174
- /** @internal */
2175
- export const StackState$outboundSchema = z.union([
2176
- z.lazy(() => DeploymentStateStackState$outboundSchema),
2177
- z.string(),
2178
- ]);
2179
- export function stackStateToJSON(stackState) {
2180
- return JSON.stringify(StackState$outboundSchema.parse(stackState));
2181
- }
2182
- export function stackStateFromJSON(jsonString) {
2183
- return safeParse(jsonString, (x) => StackState$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackState' from JSON`);
2184
- }
2185
- /** @internal */
2186
- export const DeploymentStateStatus$inboundSchema = z.enum(DeploymentStateStatus);
2187
- /** @internal */
2188
- export const DeploymentStateStatus$outboundSchema = DeploymentStateStatus$inboundSchema;
2189
- /** @internal */
2190
- export const TargetReleaseTypeStringList$inboundSchema = z.enum(TargetReleaseTypeStringList);
2191
- /** @internal */
2192
- export const TargetReleaseTypeStringList$outboundSchema = TargetReleaseTypeStringList$inboundSchema;
2193
- /** @internal */
2194
- export const TargetReleaseDefaultStringList$inboundSchema = z.object({
2195
- type: TargetReleaseTypeStringList$inboundSchema,
2196
- value: z.array(z.string()),
2197
- });
2198
- /** @internal */
2199
- export const TargetReleaseDefaultStringList$outboundSchema = z.object({
2200
- type: TargetReleaseTypeStringList$outboundSchema,
2201
- value: z.array(z.string()),
2202
- });
2203
- export function targetReleaseDefaultStringListToJSON(targetReleaseDefaultStringList) {
2204
- return JSON.stringify(TargetReleaseDefaultStringList$outboundSchema.parse(targetReleaseDefaultStringList));
2205
- }
2206
- export function targetReleaseDefaultStringListFromJSON(jsonString) {
2207
- return safeParse(jsonString, (x) => TargetReleaseDefaultStringList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseDefaultStringList' from JSON`);
2208
- }
2209
- /** @internal */
2210
- export const TargetReleaseTypeBoolean$inboundSchema = z.enum(TargetReleaseTypeBoolean);
2211
- /** @internal */
2212
- export const TargetReleaseTypeBoolean$outboundSchema = TargetReleaseTypeBoolean$inboundSchema;
2213
- /** @internal */
2214
- export const TargetReleaseDefaultBoolean$inboundSchema = z.object({
2215
- type: TargetReleaseTypeBoolean$inboundSchema,
2216
- value: z.boolean(),
2217
- });
2218
- /** @internal */
2219
- export const TargetReleaseDefaultBoolean$outboundSchema = z.object({
2220
- type: TargetReleaseTypeBoolean$outboundSchema,
2221
- value: z.boolean(),
2222
- });
2223
- export function targetReleaseDefaultBooleanToJSON(targetReleaseDefaultBoolean) {
2224
- return JSON.stringify(TargetReleaseDefaultBoolean$outboundSchema.parse(targetReleaseDefaultBoolean));
2225
- }
2226
- export function targetReleaseDefaultBooleanFromJSON(jsonString) {
2227
- return safeParse(jsonString, (x) => TargetReleaseDefaultBoolean$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseDefaultBoolean' from JSON`);
2228
- }
2229
- /** @internal */
2230
- export const TargetReleaseTypeNumber$inboundSchema = z.enum(TargetReleaseTypeNumber);
2231
- /** @internal */
2232
- export const TargetReleaseTypeNumber$outboundSchema = TargetReleaseTypeNumber$inboundSchema;
2233
- /** @internal */
2234
- export const TargetReleaseDefaultNumber$inboundSchema = z.object({
2235
- type: TargetReleaseTypeNumber$inboundSchema,
2236
- value: z.string(),
2237
- });
2238
- /** @internal */
2239
- export const TargetReleaseDefaultNumber$outboundSchema = z.object({
2240
- type: TargetReleaseTypeNumber$outboundSchema,
2241
- value: z.string(),
2242
- });
2243
- export function targetReleaseDefaultNumberToJSON(targetReleaseDefaultNumber) {
2244
- return JSON.stringify(TargetReleaseDefaultNumber$outboundSchema.parse(targetReleaseDefaultNumber));
2245
- }
2246
- export function targetReleaseDefaultNumberFromJSON(jsonString) {
2247
- return safeParse(jsonString, (x) => TargetReleaseDefaultNumber$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseDefaultNumber' from JSON`);
2248
- }
2249
- /** @internal */
2250
- export const TargetReleaseTypeString$inboundSchema = z.enum(TargetReleaseTypeString);
2251
- /** @internal */
2252
- export const TargetReleaseTypeString$outboundSchema = TargetReleaseTypeString$inboundSchema;
2253
- /** @internal */
2254
- export const TargetReleaseDefaultString$inboundSchema = z.object({
2255
- type: TargetReleaseTypeString$inboundSchema,
2256
- value: z.string(),
2257
- });
2258
- /** @internal */
2259
- export const TargetReleaseDefaultString$outboundSchema = z.object({
2260
- type: TargetReleaseTypeString$outboundSchema,
2261
- value: z.string(),
2262
- });
2263
- export function targetReleaseDefaultStringToJSON(targetReleaseDefaultString) {
2264
- return JSON.stringify(TargetReleaseDefaultString$outboundSchema.parse(targetReleaseDefaultString));
2265
- }
2266
- export function targetReleaseDefaultStringFromJSON(jsonString) {
2267
- return safeParse(jsonString, (x) => TargetReleaseDefaultString$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseDefaultString' from JSON`);
2268
- }
2269
- /** @internal */
2270
- export const TargetReleaseDefaultUnion$inboundSchema = z.union([
2271
- z.lazy(() => TargetReleaseDefaultString$inboundSchema),
2272
- z.lazy(() => TargetReleaseDefaultNumber$inboundSchema),
2273
- z.lazy(() => TargetReleaseDefaultBoolean$inboundSchema),
2274
- z.lazy(() => TargetReleaseDefaultStringList$inboundSchema),
2275
- z.string(),
2276
- ]);
2277
- /** @internal */
2278
- export const TargetReleaseDefaultUnion$outboundSchema = z.union([
2279
- z.lazy(() => TargetReleaseDefaultString$outboundSchema),
2280
- z.lazy(() => TargetReleaseDefaultNumber$outboundSchema),
2281
- z.lazy(() => TargetReleaseDefaultBoolean$outboundSchema),
2282
- z.lazy(() => TargetReleaseDefaultStringList$outboundSchema),
2283
- z.string(),
2284
- ]);
2285
- export function targetReleaseDefaultUnionToJSON(targetReleaseDefaultUnion) {
2286
- return JSON.stringify(TargetReleaseDefaultUnion$outboundSchema.parse(targetReleaseDefaultUnion));
2287
- }
2288
- export function targetReleaseDefaultUnionFromJSON(jsonString) {
2289
- return safeParse(jsonString, (x) => TargetReleaseDefaultUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseDefaultUnion' from JSON`);
2290
- }
2291
- /** @internal */
2292
- export const TargetReleaseTypeEnvEnum$inboundSchema = z.enum(TargetReleaseTypeEnvEnum);
2293
- /** @internal */
2294
- export const TargetReleaseTypeEnvEnum$outboundSchema = TargetReleaseTypeEnvEnum$inboundSchema;
2295
- /** @internal */
2296
- export const TargetReleaseTypeUnion$inboundSchema = z.union([TargetReleaseTypeEnvEnum$inboundSchema, z.string()]);
2297
- /** @internal */
2298
- export const TargetReleaseTypeUnion$outboundSchema = z.union([TargetReleaseTypeEnvEnum$outboundSchema, z.string()]);
2299
- export function targetReleaseTypeUnionToJSON(targetReleaseTypeUnion) {
2300
- return JSON.stringify(TargetReleaseTypeUnion$outboundSchema.parse(targetReleaseTypeUnion));
2301
- }
2302
- export function targetReleaseTypeUnionFromJSON(jsonString) {
2303
- return safeParse(jsonString, (x) => TargetReleaseTypeUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseTypeUnion' from JSON`);
2304
- }
2305
- /** @internal */
2306
- export const TargetReleaseEnv$inboundSchema = z.object({
2307
- name: z.string(),
2308
- targetResources: z.nullable(z.array(z.string())).optional(),
2309
- type: z.nullable(z.union([TargetReleaseTypeEnvEnum$inboundSchema, z.string()])).optional(),
2310
- });
2311
- /** @internal */
2312
- export const TargetReleaseEnv$outboundSchema = z.object({
2313
- name: z.string(),
2314
- targetResources: z.nullable(z.array(z.string())).optional(),
2315
- type: z.nullable(z.union([TargetReleaseTypeEnvEnum$outboundSchema, z.string()])).optional(),
2316
- });
2317
- export function targetReleaseEnvToJSON(targetReleaseEnv) {
2318
- return JSON.stringify(TargetReleaseEnv$outboundSchema.parse(targetReleaseEnv));
2319
- }
2320
- export function targetReleaseEnvFromJSON(jsonString) {
2321
- return safeParse(jsonString, (x) => TargetReleaseEnv$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseEnv' from JSON`);
2322
- }
2323
- /** @internal */
2324
- export const TargetReleaseGenerate$inboundSchema = z.object({
2325
- length: z.int(),
2326
- });
2327
- /** @internal */
2328
- export const TargetReleaseGenerate$outboundSchema = z.object({
2329
- length: z.int(),
2330
- });
2331
- export function targetReleaseGenerateToJSON(targetReleaseGenerate) {
2332
- return JSON.stringify(TargetReleaseGenerate$outboundSchema.parse(targetReleaseGenerate));
2333
- }
2334
- export function targetReleaseGenerateFromJSON(jsonString) {
2335
- return safeParse(jsonString, (x) => TargetReleaseGenerate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseGenerate' from JSON`);
2336
- }
2337
- /** @internal */
2338
- export const TargetReleaseGenerateUnion$inboundSchema = z.union([z.lazy(() => TargetReleaseGenerate$inboundSchema), z.string()]);
2339
- /** @internal */
2340
- export const TargetReleaseGenerateUnion$outboundSchema = z.union([z.lazy(() => TargetReleaseGenerate$outboundSchema), z.string()]);
2341
- export function targetReleaseGenerateUnionToJSON(targetReleaseGenerateUnion) {
2342
- return JSON.stringify(TargetReleaseGenerateUnion$outboundSchema.parse(targetReleaseGenerateUnion));
2343
- }
2344
- export function targetReleaseGenerateUnionFromJSON(jsonString) {
2345
- return safeParse(jsonString, (x) => TargetReleaseGenerateUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseGenerateUnion' from JSON`);
2346
- }
2347
- /** @internal */
2348
- export const TargetReleaseKind$inboundSchema = z.enum(TargetReleaseKind);
2349
- /** @internal */
2350
- export const TargetReleaseKind$outboundSchema = TargetReleaseKind$inboundSchema;
2351
- /** @internal */
2352
- export const TargetReleasePlatform$inboundSchema = z.enum(TargetReleasePlatform);
2353
- /** @internal */
2354
- export const TargetReleasePlatform$outboundSchema = TargetReleasePlatform$inboundSchema;
2355
- /** @internal */
2356
- export const TargetReleaseProvidedBy$inboundSchema = z.enum(TargetReleaseProvidedBy);
2357
- /** @internal */
2358
- export const TargetReleaseProvidedBy$outboundSchema = TargetReleaseProvidedBy$inboundSchema;
2359
- /** @internal */
2360
- export const TargetReleaseValidation$inboundSchema = z.object({
2361
- format: z.nullable(z.string()).optional(),
2362
- max: z.nullable(z.string()).optional(),
2363
- maxItems: z.nullable(z.int()).optional(),
2364
- maxLength: z.nullable(z.int()).optional(),
2365
- min: z.nullable(z.string()).optional(),
2366
- minItems: z.nullable(z.int()).optional(),
2367
- minLength: z.nullable(z.int()).optional(),
2368
- pattern: z.nullable(z.string()).optional(),
2369
- values: z.nullable(z.array(z.string())).optional(),
2370
- });
2371
- /** @internal */
2372
- export const TargetReleaseValidation$outboundSchema = z.object({
2373
- format: z.nullable(z.string()).optional(),
2374
- max: z.nullable(z.string()).optional(),
2375
- maxItems: z.nullable(z.int()).optional(),
2376
- maxLength: z.nullable(z.int()).optional(),
2377
- min: z.nullable(z.string()).optional(),
2378
- minItems: z.nullable(z.int()).optional(),
2379
- minLength: z.nullable(z.int()).optional(),
2380
- pattern: z.nullable(z.string()).optional(),
2381
- values: z.nullable(z.array(z.string())).optional(),
2382
- });
2383
- export function targetReleaseValidationToJSON(targetReleaseValidation) {
2384
- return JSON.stringify(TargetReleaseValidation$outboundSchema.parse(targetReleaseValidation));
2385
- }
2386
- export function targetReleaseValidationFromJSON(jsonString) {
2387
- return safeParse(jsonString, (x) => TargetReleaseValidation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseValidation' from JSON`);
2388
- }
2389
- /** @internal */
2390
- export const TargetReleaseValidationUnion$inboundSchema = z.union([z.lazy(() => TargetReleaseValidation$inboundSchema), z.string()]);
2391
- /** @internal */
2392
- export const TargetReleaseValidationUnion$outboundSchema = z.union([z.lazy(() => TargetReleaseValidation$outboundSchema), z.string()]);
2393
- export function targetReleaseValidationUnionToJSON(targetReleaseValidationUnion) {
2394
- return JSON.stringify(TargetReleaseValidationUnion$outboundSchema.parse(targetReleaseValidationUnion));
2395
- }
2396
- export function targetReleaseValidationUnionFromJSON(jsonString) {
2397
- return safeParse(jsonString, (x) => TargetReleaseValidationUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseValidationUnion' from JSON`);
2398
- }
2399
- /** @internal */
2400
- export const TargetReleaseInput$inboundSchema = z.object({
2401
- default: z.nullable(z.union([
2402
- z.lazy(() => TargetReleaseDefaultString$inboundSchema),
2403
- z.lazy(() => TargetReleaseDefaultNumber$inboundSchema),
2404
- z.lazy(() => TargetReleaseDefaultBoolean$inboundSchema),
2405
- z.lazy(() => TargetReleaseDefaultStringList$inboundSchema),
2406
- z.string(),
2407
- ])).optional(),
2408
- description: z.string(),
2409
- env: z.array(z.lazy(() => TargetReleaseEnv$inboundSchema)).optional(),
2410
- generate: z.nullable(z.union([z.lazy(() => TargetReleaseGenerate$inboundSchema), z.string()])).optional(),
2411
- id: z.string(),
2412
- kind: TargetReleaseKind$inboundSchema,
2413
- label: z.string(),
2414
- placeholder: z.nullable(z.string()).optional(),
2415
- platforms: z.nullable(z.array(TargetReleasePlatform$inboundSchema))
2416
- .optional(),
2417
- providedBy: z.array(TargetReleaseProvidedBy$inboundSchema),
2418
- required: z.boolean(),
2419
- validation: z.nullable(z.union([z.lazy(() => TargetReleaseValidation$inboundSchema), z.string()])).optional(),
2420
- });
2421
- /** @internal */
2422
- export const TargetReleaseInput$outboundSchema = z.object({
2423
- default: z.nullable(z.union([
2424
- z.lazy(() => TargetReleaseDefaultString$outboundSchema),
2425
- z.lazy(() => TargetReleaseDefaultNumber$outboundSchema),
2426
- z.lazy(() => TargetReleaseDefaultBoolean$outboundSchema),
2427
- z.lazy(() => TargetReleaseDefaultStringList$outboundSchema),
2428
- z.string(),
2429
- ])).optional(),
2430
- description: z.string(),
2431
- env: z.array(z.lazy(() => TargetReleaseEnv$outboundSchema)).optional(),
2432
- generate: z.nullable(z.union([z.lazy(() => TargetReleaseGenerate$outboundSchema), z.string()])).optional(),
2433
- id: z.string(),
2434
- kind: TargetReleaseKind$outboundSchema,
2435
- label: z.string(),
2436
- placeholder: z.nullable(z.string()).optional(),
2437
- platforms: z.nullable(z.array(TargetReleasePlatform$outboundSchema))
2438
- .optional(),
2439
- providedBy: z.array(TargetReleaseProvidedBy$outboundSchema),
2440
- required: z.boolean(),
2441
- validation: z.nullable(z.union([z.lazy(() => TargetReleaseValidation$outboundSchema), z.string()])).optional(),
2442
- });
2443
- export function targetReleaseInputToJSON(targetReleaseInput) {
2444
- return JSON.stringify(TargetReleaseInput$outboundSchema.parse(targetReleaseInput));
2445
- }
2446
- export function targetReleaseInputFromJSON(jsonString) {
2447
- return safeParse(jsonString, (x) => TargetReleaseInput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseInput' from JSON`);
2448
- }
2449
- /** @internal */
2450
- export const TargetReleaseCustomDecision$inboundSchema = z.enum(TargetReleaseCustomDecision);
2451
- /** @internal */
2452
- export const TargetReleaseCustomDecision$outboundSchema = TargetReleaseCustomDecision$inboundSchema;
2453
- /** @internal */
2454
- export const TargetReleaseApprovalCustom$inboundSchema = z.object({
2455
- decision: TargetReleaseCustomDecision$inboundSchema,
2456
- maxRisk: z.nullable(z.string()).optional(),
2457
- });
2458
- /** @internal */
2459
- export const TargetReleaseApprovalCustom$outboundSchema = z.object({
2460
- decision: TargetReleaseCustomDecision$outboundSchema,
2461
- maxRisk: z.nullable(z.string()).optional(),
2462
- });
2463
- export function targetReleaseApprovalCustomToJSON(targetReleaseApprovalCustom) {
2464
- return JSON.stringify(TargetReleaseApprovalCustom$outboundSchema.parse(targetReleaseApprovalCustom));
2465
- }
2466
- export function targetReleaseApprovalCustomFromJSON(jsonString) {
2467
- return safeParse(jsonString, (x) => TargetReleaseApprovalCustom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseApprovalCustom' from JSON`);
2468
- }
2469
- /** @internal */
2470
- export const TargetReleaseApprovalCustomEnum$inboundSchema = z.enum(TargetReleaseApprovalCustomEnum);
2471
- /** @internal */
2472
- export const TargetReleaseApprovalCustomEnum$outboundSchema = TargetReleaseApprovalCustomEnum$inboundSchema;
2473
- /** @internal */
2474
- export const TargetReleaseCustomApprovalUnion$inboundSchema = z.union([
2475
- z.lazy(() => TargetReleaseApprovalCustom$inboundSchema),
2476
- TargetReleaseApprovalCustomEnum$inboundSchema,
2477
- ]);
2478
- /** @internal */
2479
- export const TargetReleaseCustomApprovalUnion$outboundSchema = z.union([
2480
- z.lazy(() => TargetReleaseApprovalCustom$outboundSchema),
2481
- TargetReleaseApprovalCustomEnum$outboundSchema,
2482
- ]);
2483
- export function targetReleaseCustomApprovalUnionToJSON(targetReleaseCustomApprovalUnion) {
2484
- return JSON.stringify(TargetReleaseCustomApprovalUnion$outboundSchema.parse(targetReleaseCustomApprovalUnion));
2485
- }
2486
- export function targetReleaseCustomApprovalUnionFromJSON(jsonString) {
2487
- return safeParse(jsonString, (x) => TargetReleaseCustomApprovalUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseCustomApprovalUnion' from JSON`);
2488
- }
2489
- /** @internal */
2490
- export const TargetReleaseSettingsCustom3$inboundSchema = z.object({
2491
- env: z.string(),
2492
- });
2493
- /** @internal */
2494
- export const TargetReleaseSettingsCustom3$outboundSchema = z.object({
2495
- env: z.string(),
2496
- });
2497
- export function targetReleaseSettingsCustom3ToJSON(targetReleaseSettingsCustom3) {
2498
- return JSON.stringify(TargetReleaseSettingsCustom3$outboundSchema.parse(targetReleaseSettingsCustom3));
2499
- }
2500
- export function targetReleaseSettingsCustom3FromJSON(jsonString) {
2501
- return safeParse(jsonString, (x) => TargetReleaseSettingsCustom3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseSettingsCustom3' from JSON`);
2502
- }
2503
- /** @internal */
2504
- export const TargetReleaseSettingsCustom2$inboundSchema = z.object({
2505
- resources: z.array(z.string()),
2506
- });
2507
- /** @internal */
2508
- export const TargetReleaseSettingsCustom2$outboundSchema = z.object({
2509
- resources: z.array(z.string()),
2510
- });
2511
- export function targetReleaseSettingsCustom2ToJSON(targetReleaseSettingsCustom2) {
2512
- return JSON.stringify(TargetReleaseSettingsCustom2$outboundSchema.parse(targetReleaseSettingsCustom2));
2513
- }
2514
- export function targetReleaseSettingsCustom2FromJSON(jsonString) {
2515
- return safeParse(jsonString, (x) => TargetReleaseSettingsCustom2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseSettingsCustom2' from JSON`);
2516
- }
2517
- /** @internal */
2518
- export const TargetReleaseSettingsCustom1$inboundSchema = z.object({
2519
- input: z.string(),
2520
- });
2521
- /** @internal */
2522
- export const TargetReleaseSettingsCustom1$outboundSchema = z.object({
2523
- input: z.string(),
2524
- });
2525
- export function targetReleaseSettingsCustom1ToJSON(targetReleaseSettingsCustom1) {
2526
- return JSON.stringify(TargetReleaseSettingsCustom1$outboundSchema.parse(targetReleaseSettingsCustom1));
2527
- }
2528
- export function targetReleaseSettingsCustom1FromJSON(jsonString) {
2529
- return safeParse(jsonString, (x) => TargetReleaseSettingsCustom1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseSettingsCustom1' from JSON`);
2530
- }
2531
- /** @internal */
2532
- export const TargetReleaseCustomSettingsUnion$inboundSchema = z.union([
2533
- z.lazy(() => TargetReleaseSettingsCustom1$inboundSchema),
2534
- z.lazy(() => TargetReleaseSettingsCustom2$inboundSchema),
2535
- z.lazy(() => TargetReleaseSettingsCustom3$inboundSchema),
2536
- z.string(),
2537
- ]);
2538
- /** @internal */
2539
- export const TargetReleaseCustomSettingsUnion$outboundSchema = z.union([
2540
- z.lazy(() => TargetReleaseSettingsCustom1$outboundSchema),
2541
- z.lazy(() => TargetReleaseSettingsCustom2$outboundSchema),
2542
- z.lazy(() => TargetReleaseSettingsCustom3$outboundSchema),
2543
- z.string(),
2544
- ]);
2545
- export function targetReleaseCustomSettingsUnionToJSON(targetReleaseCustomSettingsUnion) {
2546
- return JSON.stringify(TargetReleaseCustomSettingsUnion$outboundSchema.parse(targetReleaseCustomSettingsUnion));
2547
- }
2548
- export function targetReleaseCustomSettingsUnionFromJSON(jsonString) {
2549
- return safeParse(jsonString, (x) => TargetReleaseCustomSettingsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseCustomSettingsUnion' from JSON`);
2550
- }
2551
- /** @internal */
2552
- export const TargetReleaseCustom$inboundSchema = z.object({
2553
- approval: z.record(z.string(), z.union([
2554
- z.lazy(() => TargetReleaseApprovalCustom$inboundSchema),
2555
- TargetReleaseApprovalCustomEnum$inboundSchema,
2556
- ])).optional(),
2557
- settings: z.record(z.string(), z.union([
2558
- z.lazy(() => TargetReleaseSettingsCustom1$inboundSchema),
2559
- z.lazy(() => TargetReleaseSettingsCustom2$inboundSchema),
2560
- z.lazy(() => TargetReleaseSettingsCustom3$inboundSchema),
2561
- z.string(),
2562
- ])).optional(),
2563
- name: z.string(),
2564
- version: z.string(),
2565
- });
2566
- /** @internal */
2567
- export const TargetReleaseCustom$outboundSchema = z.object({
2568
- approval: z.record(z.string(), z.union([
2569
- z.lazy(() => TargetReleaseApprovalCustom$outboundSchema),
2570
- TargetReleaseApprovalCustomEnum$outboundSchema,
2571
- ])).optional(),
2572
- settings: z.record(z.string(), z.union([
2573
- z.lazy(() => TargetReleaseSettingsCustom1$outboundSchema),
2574
- z.lazy(() => TargetReleaseSettingsCustom2$outboundSchema),
2575
- z.lazy(() => TargetReleaseSettingsCustom3$outboundSchema),
2576
- z.string(),
2577
- ])).optional(),
2578
- name: z.string(),
2579
- version: z.string(),
2580
- });
2581
- export function targetReleaseCustomToJSON(targetReleaseCustom) {
2582
- return JSON.stringify(TargetReleaseCustom$outboundSchema.parse(targetReleaseCustom));
2583
- }
2584
- export function targetReleaseCustomFromJSON(jsonString) {
2585
- return safeParse(jsonString, (x) => TargetReleaseCustom$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseCustom' from JSON`);
2586
- }
2587
- /** @internal */
2588
- export const TargetReleasePluginsDecision$inboundSchema = z.enum(TargetReleasePluginsDecision);
2589
- /** @internal */
2590
- export const TargetReleasePluginsDecision$outboundSchema = TargetReleasePluginsDecision$inboundSchema;
2591
- /** @internal */
2592
- export const TargetReleaseApprovalPlugins$inboundSchema = z.object({
2593
- decision: TargetReleasePluginsDecision$inboundSchema,
2594
- maxRisk: z.nullable(z.string()).optional(),
2595
- });
2596
- /** @internal */
2597
- export const TargetReleaseApprovalPlugins$outboundSchema = z.object({
2598
- decision: TargetReleasePluginsDecision$outboundSchema,
2599
- maxRisk: z.nullable(z.string()).optional(),
2600
- });
2601
- export function targetReleaseApprovalPluginsToJSON(targetReleaseApprovalPlugins) {
2602
- return JSON.stringify(TargetReleaseApprovalPlugins$outboundSchema.parse(targetReleaseApprovalPlugins));
2603
- }
2604
- export function targetReleaseApprovalPluginsFromJSON(jsonString) {
2605
- return safeParse(jsonString, (x) => TargetReleaseApprovalPlugins$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseApprovalPlugins' from JSON`);
2606
- }
2607
- /** @internal */
2608
- export const TargetReleaseApprovalPluginsEnum$inboundSchema = z.enum(TargetReleaseApprovalPluginsEnum);
2609
- /** @internal */
2610
- export const TargetReleaseApprovalPluginsEnum$outboundSchema = TargetReleaseApprovalPluginsEnum$inboundSchema;
2611
- /** @internal */
2612
- export const TargetReleasePluginsApprovalUnion$inboundSchema = z.union([
2613
- z.lazy(() => TargetReleaseApprovalPlugins$inboundSchema),
2614
- TargetReleaseApprovalPluginsEnum$inboundSchema,
2615
- ]);
2616
- /** @internal */
2617
- export const TargetReleasePluginsApprovalUnion$outboundSchema = z.union([
2618
- z.lazy(() => TargetReleaseApprovalPlugins$outboundSchema),
2619
- TargetReleaseApprovalPluginsEnum$outboundSchema,
2620
- ]);
2621
- export function targetReleasePluginsApprovalUnionToJSON(targetReleasePluginsApprovalUnion) {
2622
- return JSON.stringify(TargetReleasePluginsApprovalUnion$outboundSchema.parse(targetReleasePluginsApprovalUnion));
2623
- }
2624
- export function targetReleasePluginsApprovalUnionFromJSON(jsonString) {
2625
- return safeParse(jsonString, (x) => TargetReleasePluginsApprovalUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleasePluginsApprovalUnion' from JSON`);
2626
- }
2627
- /** @internal */
2628
- export const TargetReleaseSettingsPlugins3$inboundSchema = z.object({
2629
- env: z.string(),
2630
- });
2631
- /** @internal */
2632
- export const TargetReleaseSettingsPlugins3$outboundSchema = z.object({
2633
- env: z.string(),
2634
- });
2635
- export function targetReleaseSettingsPlugins3ToJSON(targetReleaseSettingsPlugins3) {
2636
- return JSON.stringify(TargetReleaseSettingsPlugins3$outboundSchema.parse(targetReleaseSettingsPlugins3));
2637
- }
2638
- export function targetReleaseSettingsPlugins3FromJSON(jsonString) {
2639
- return safeParse(jsonString, (x) => TargetReleaseSettingsPlugins3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseSettingsPlugins3' from JSON`);
2640
- }
2641
- /** @internal */
2642
- export const TargetReleaseSettingsPlugins2$inboundSchema = z.object({
2643
- resources: z.array(z.string()),
2644
- });
2645
- /** @internal */
2646
- export const TargetReleaseSettingsPlugins2$outboundSchema = z.object({
2647
- resources: z.array(z.string()),
2648
- });
2649
- export function targetReleaseSettingsPlugins2ToJSON(targetReleaseSettingsPlugins2) {
2650
- return JSON.stringify(TargetReleaseSettingsPlugins2$outboundSchema.parse(targetReleaseSettingsPlugins2));
2651
- }
2652
- export function targetReleaseSettingsPlugins2FromJSON(jsonString) {
2653
- return safeParse(jsonString, (x) => TargetReleaseSettingsPlugins2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseSettingsPlugins2' from JSON`);
2654
- }
2655
- /** @internal */
2656
- export const TargetReleaseSettingsPlugins1$inboundSchema = z.object({
2657
- input: z.string(),
2658
- });
2659
- /** @internal */
2660
- export const TargetReleaseSettingsPlugins1$outboundSchema = z.object({
2661
- input: z.string(),
2662
- });
2663
- export function targetReleaseSettingsPlugins1ToJSON(targetReleaseSettingsPlugins1) {
2664
- return JSON.stringify(TargetReleaseSettingsPlugins1$outboundSchema.parse(targetReleaseSettingsPlugins1));
2665
- }
2666
- export function targetReleaseSettingsPlugins1FromJSON(jsonString) {
2667
- return safeParse(jsonString, (x) => TargetReleaseSettingsPlugins1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseSettingsPlugins1' from JSON`);
2668
- }
2669
- /** @internal */
2670
- export const TargetReleasePluginsSettingsUnion$inboundSchema = z.union([
2671
- z.lazy(() => TargetReleaseSettingsPlugins1$inboundSchema),
2672
- z.lazy(() => TargetReleaseSettingsPlugins2$inboundSchema),
2673
- z.lazy(() => TargetReleaseSettingsPlugins3$inboundSchema),
2674
- z.string(),
2675
- ]);
2676
- /** @internal */
2677
- export const TargetReleasePluginsSettingsUnion$outboundSchema = z.union([
2678
- z.lazy(() => TargetReleaseSettingsPlugins1$outboundSchema),
2679
- z.lazy(() => TargetReleaseSettingsPlugins2$outboundSchema),
2680
- z.lazy(() => TargetReleaseSettingsPlugins3$outboundSchema),
2681
- z.string(),
2682
- ]);
2683
- export function targetReleasePluginsSettingsUnionToJSON(targetReleasePluginsSettingsUnion) {
2684
- return JSON.stringify(TargetReleasePluginsSettingsUnion$outboundSchema.parse(targetReleasePluginsSettingsUnion));
2685
- }
2686
- export function targetReleasePluginsSettingsUnionFromJSON(jsonString) {
2687
- return safeParse(jsonString, (x) => TargetReleasePluginsSettingsUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleasePluginsSettingsUnion' from JSON`);
2688
- }
2689
- /** @internal */
2690
- export const TargetReleasePlugins$inboundSchema = z.object({
2691
- approval: z.record(z.string(), z.union([
2692
- z.lazy(() => TargetReleaseApprovalPlugins$inboundSchema),
2693
- TargetReleaseApprovalPluginsEnum$inboundSchema,
2694
- ])).optional(),
2695
- settings: z.record(z.string(), z.union([
2696
- z.lazy(() => TargetReleaseSettingsPlugins1$inboundSchema),
2697
- z.lazy(() => TargetReleaseSettingsPlugins2$inboundSchema),
2698
- z.lazy(() => TargetReleaseSettingsPlugins3$inboundSchema),
2699
- z.string(),
2700
- ])).optional(),
2701
- });
2702
- /** @internal */
2703
- export const TargetReleasePlugins$outboundSchema = z.object({
2704
- approval: z.record(z.string(), z.union([
2705
- z.lazy(() => TargetReleaseApprovalPlugins$outboundSchema),
2706
- TargetReleaseApprovalPluginsEnum$outboundSchema,
2707
- ])).optional(),
2708
- settings: z.record(z.string(), z.union([
2709
- z.lazy(() => TargetReleaseSettingsPlugins1$outboundSchema),
2710
- z.lazy(() => TargetReleaseSettingsPlugins2$outboundSchema),
2711
- z.lazy(() => TargetReleaseSettingsPlugins3$outboundSchema),
2712
- z.string(),
2713
- ])).optional(),
2714
- });
2715
- export function targetReleasePluginsToJSON(targetReleasePlugins) {
2716
- return JSON.stringify(TargetReleasePlugins$outboundSchema.parse(targetReleasePlugins));
2717
- }
2718
- export function targetReleasePluginsFromJSON(jsonString) {
2719
- return safeParse(jsonString, (x) => TargetReleasePlugins$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleasePlugins' from JSON`);
2720
- }
2721
- /** @internal */
2722
- export const TargetReleaseOperations$inboundSchema = z.object({
2723
- custom: z.array(z.lazy(() => TargetReleaseCustom$inboundSchema)).optional(),
2724
- plugins: z.record(z.string(), z.lazy(() => TargetReleasePlugins$inboundSchema)).optional(),
2725
- });
2726
- /** @internal */
2727
- export const TargetReleaseOperations$outboundSchema = z.object({
2728
- custom: z.array(z.lazy(() => TargetReleaseCustom$outboundSchema)).optional(),
2729
- plugins: z.record(z.string(), z.lazy(() => TargetReleasePlugins$outboundSchema)).optional(),
2730
- });
2731
- export function targetReleaseOperationsToJSON(targetReleaseOperations) {
2732
- return JSON.stringify(TargetReleaseOperations$outboundSchema.parse(targetReleaseOperations));
2733
- }
2734
- export function targetReleaseOperationsFromJSON(jsonString) {
2735
- return safeParse(jsonString, (x) => TargetReleaseOperations$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TargetReleaseOperations' from JSON`);
2736
- }
1
+ // Generated by generate-compatibility-exports.mjs. DO NOT EDIT.
2
+ export * from "./targetreleaseapprovalpluginsenum.js";
3
+ export { TargetReleaseOperations$inboundSchema } from "./deploymentstate.js";
4
+ export { TargetReleaseOperations$outboundSchema } from "./deploymentstate.js";
5
+ export { TargetReleasePlugins$inboundSchema } from "./deploymentstate.js";
6
+ export { TargetReleasePlugins$outboundSchema } from "./deploymentstate.js";
7
+ export { TargetReleasePluginsApprovalUnion$inboundSchema } from "./deploymentstate.js";
8
+ export { TargetReleasePluginsApprovalUnion$outboundSchema } from "./deploymentstate.js";
9
+ export { TargetReleasePluginsSettingsUnion$inboundSchema } from "./deploymentstate.js";
10
+ export { TargetReleasePluginsSettingsUnion$outboundSchema } from "./deploymentstate.js";
11
+ export { TargetReleaseSettingsPlugins1$inboundSchema } from "./deploymentstate.js";
12
+ export { TargetReleaseSettingsPlugins1$outboundSchema } from "./deploymentstate.js";
13
+ export { TargetReleaseSettingsPlugins2$inboundSchema } from "./deploymentstate.js";
14
+ export { TargetReleaseSettingsPlugins2$outboundSchema } from "./deploymentstate.js";
15
+ export { TargetReleaseSettingsPlugins3$inboundSchema } from "./deploymentstate.js";
16
+ export { TargetReleaseSettingsPlugins3$outboundSchema } from "./deploymentstate.js";
17
+ export { targetReleaseOperationsFromJSON } from "./deploymentstate.js";
18
+ export { targetReleaseOperationsToJSON } from "./deploymentstate.js";
19
+ export { targetReleasePluginsApprovalUnionFromJSON } from "./deploymentstate.js";
20
+ export { targetReleasePluginsApprovalUnionToJSON } from "./deploymentstate.js";
21
+ export { targetReleasePluginsFromJSON } from "./deploymentstate.js";
22
+ export { targetReleasePluginsSettingsUnionFromJSON } from "./deploymentstate.js";
23
+ export { targetReleasePluginsSettingsUnionToJSON } from "./deploymentstate.js";
24
+ export { targetReleasePluginsToJSON } from "./deploymentstate.js";
25
+ export { targetReleaseSettingsPlugins1FromJSON } from "./deploymentstate.js";
26
+ export { targetReleaseSettingsPlugins1ToJSON } from "./deploymentstate.js";
27
+ export { targetReleaseSettingsPlugins2FromJSON } from "./deploymentstate.js";
28
+ export { targetReleaseSettingsPlugins2ToJSON } from "./deploymentstate.js";
29
+ export { targetReleaseSettingsPlugins3FromJSON } from "./deploymentstate.js";
30
+ export { targetReleaseSettingsPlugins3ToJSON } from "./deploymentstate.js";
2737
31
  //# sourceMappingURL=targetreleaseoperations.js.map