@alienplatform/manager-api 3.3.1 → 3.3.3

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 (364) hide show
  1. package/.devcontainer/devcontainer.json +45 -0
  2. package/FUNCTIONS.md +2 -2
  3. package/README.md +29 -28
  4. package/esm/funcs/bindingsResolveBinding.d.ts +12 -0
  5. package/esm/funcs/bindingsResolveBinding.d.ts.map +1 -0
  6. package/esm/funcs/bindingsResolveBinding.js +76 -0
  7. package/esm/funcs/bindingsResolveBinding.js.map +1 -0
  8. package/esm/funcs/commandsCreateCommand.d.ts.map +1 -1
  9. package/esm/funcs/commandsCreateCommand.js +1 -2
  10. package/esm/funcs/commandsCreateCommand.js.map +1 -1
  11. package/esm/funcs/commandsGetCommandPayload.d.ts.map +1 -1
  12. package/esm/funcs/commandsGetCommandPayload.js +1 -2
  13. package/esm/funcs/commandsGetCommandPayload.js.map +1 -1
  14. package/esm/funcs/commandsGetCommandStatus.d.ts.map +1 -1
  15. package/esm/funcs/commandsGetCommandStatus.js +1 -2
  16. package/esm/funcs/commandsGetCommandStatus.js.map +1 -1
  17. package/esm/funcs/commandsStoreCommandPayload.d.ts.map +1 -1
  18. package/esm/funcs/commandsStoreCommandPayload.js +1 -2
  19. package/esm/funcs/commandsStoreCommandPayload.js.map +1 -1
  20. package/esm/funcs/commandsSubmitResponse.d.ts.map +1 -1
  21. package/esm/funcs/commandsSubmitResponse.js +1 -2
  22. package/esm/funcs/commandsSubmitResponse.js.map +1 -1
  23. package/esm/funcs/commandsUploadComplete.d.ts.map +1 -1
  24. package/esm/funcs/commandsUploadComplete.js +1 -2
  25. package/esm/funcs/commandsUploadComplete.js.map +1 -1
  26. package/esm/funcs/credentialsMintCredentials.d.ts.map +1 -1
  27. package/esm/funcs/credentialsMintCredentials.js +1 -2
  28. package/esm/funcs/credentialsMintCredentials.js.map +1 -1
  29. package/esm/funcs/deploymentGroupsCreateDeploymentGroup.d.ts.map +1 -1
  30. package/esm/funcs/deploymentGroupsCreateDeploymentGroup.js +1 -2
  31. package/esm/funcs/deploymentGroupsCreateDeploymentGroup.js.map +1 -1
  32. package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.d.ts.map +1 -1
  33. package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.js +1 -2
  34. package/esm/funcs/deploymentGroupsCreateDeploymentGroupToken.js.map +1 -1
  35. package/esm/funcs/deploymentGroupsGetDeploymentGroup.d.ts.map +1 -1
  36. package/esm/funcs/deploymentGroupsGetDeploymentGroup.js +1 -2
  37. package/esm/funcs/deploymentGroupsGetDeploymentGroup.js.map +1 -1
  38. package/esm/funcs/deploymentGroupsListDeploymentGroups.d.ts.map +1 -1
  39. package/esm/funcs/deploymentGroupsListDeploymentGroups.js +1 -2
  40. package/esm/funcs/deploymentGroupsListDeploymentGroups.js.map +1 -1
  41. package/esm/funcs/deploymentsCreateDeployment.d.ts.map +1 -1
  42. package/esm/funcs/deploymentsCreateDeployment.js +1 -2
  43. package/esm/funcs/deploymentsCreateDeployment.js.map +1 -1
  44. package/esm/funcs/deploymentsDeleteDeployment.d.ts.map +1 -1
  45. package/esm/funcs/deploymentsDeleteDeployment.js +1 -2
  46. package/esm/funcs/deploymentsDeleteDeployment.js.map +1 -1
  47. package/esm/funcs/deploymentsGetDeployment.d.ts.map +1 -1
  48. package/esm/funcs/deploymentsGetDeployment.js +1 -2
  49. package/esm/funcs/deploymentsGetDeployment.js.map +1 -1
  50. package/esm/funcs/deploymentsGetDeploymentInfo.d.ts.map +1 -1
  51. package/esm/funcs/deploymentsGetDeploymentInfo.js +1 -2
  52. package/esm/funcs/deploymentsGetDeploymentInfo.js.map +1 -1
  53. package/esm/funcs/deploymentsListDeployments.d.ts.map +1 -1
  54. package/esm/funcs/deploymentsListDeployments.js +1 -2
  55. package/esm/funcs/deploymentsListDeployments.js.map +1 -1
  56. package/esm/funcs/deploymentsRedeploy.d.ts.map +1 -1
  57. package/esm/funcs/deploymentsRedeploy.js +1 -2
  58. package/esm/funcs/deploymentsRedeploy.js.map +1 -1
  59. package/esm/funcs/deploymentsRetryDeployment.d.ts.map +1 -1
  60. package/esm/funcs/deploymentsRetryDeployment.js +1 -2
  61. package/esm/funcs/deploymentsRetryDeployment.js.map +1 -1
  62. package/esm/funcs/healthHealth.d.ts.map +1 -1
  63. package/esm/funcs/healthHealth.js +1 -2
  64. package/esm/funcs/healthHealth.js.map +1 -1
  65. package/esm/funcs/leasesAcquireLeases.d.ts.map +1 -1
  66. package/esm/funcs/leasesAcquireLeases.js +1 -2
  67. package/esm/funcs/leasesAcquireLeases.js.map +1 -1
  68. package/esm/funcs/leasesReleaseLease.d.ts.map +1 -1
  69. package/esm/funcs/leasesReleaseLease.js +1 -2
  70. package/esm/funcs/leasesReleaseLease.js.map +1 -1
  71. package/esm/funcs/releasesCreateRelease.d.ts.map +1 -1
  72. package/esm/funcs/releasesCreateRelease.js +1 -2
  73. package/esm/funcs/releasesCreateRelease.js.map +1 -1
  74. package/esm/funcs/releasesGetLatestRelease.d.ts.map +1 -1
  75. package/esm/funcs/releasesGetLatestRelease.js +1 -2
  76. package/esm/funcs/releasesGetLatestRelease.js.map +1 -1
  77. package/esm/funcs/releasesGetRelease.d.ts.map +1 -1
  78. package/esm/funcs/releasesGetRelease.js +1 -2
  79. package/esm/funcs/releasesGetRelease.js.map +1 -1
  80. package/esm/funcs/releasesListReleases.d.ts.map +1 -1
  81. package/esm/funcs/releasesListReleases.js +1 -2
  82. package/esm/funcs/releasesListReleases.js.map +1 -1
  83. package/esm/funcs/stackImportStackImport.d.ts.map +1 -1
  84. package/esm/funcs/stackImportStackImport.js +1 -2
  85. package/esm/funcs/stackImportStackImport.js.map +1 -1
  86. package/esm/funcs/syncAcquire.d.ts.map +1 -1
  87. package/esm/funcs/syncAcquire.js +1 -2
  88. package/esm/funcs/syncAcquire.js.map +1 -1
  89. package/esm/funcs/syncAgentSync.d.ts.map +1 -1
  90. package/esm/funcs/syncAgentSync.js +1 -2
  91. package/esm/funcs/syncAgentSync.js.map +1 -1
  92. package/esm/funcs/syncInitialize.d.ts.map +1 -1
  93. package/esm/funcs/syncInitialize.js +1 -2
  94. package/esm/funcs/syncInitialize.js.map +1 -1
  95. package/esm/funcs/syncReconcile.d.ts.map +1 -1
  96. package/esm/funcs/syncReconcile.js +1 -2
  97. package/esm/funcs/syncReconcile.js.map +1 -1
  98. package/esm/funcs/syncRelease.d.ts.map +1 -1
  99. package/esm/funcs/syncRelease.js +1 -2
  100. package/esm/funcs/syncRelease.js.map +1 -1
  101. package/esm/funcs/{credentialsResolveCredentials.d.ts → syncRenew.d.ts} +5 -2
  102. package/esm/funcs/syncRenew.d.ts.map +1 -0
  103. package/esm/funcs/{credentialsResolveCredentials.js → syncRenew.js} +12 -9
  104. package/esm/funcs/syncRenew.js.map +1 -0
  105. package/esm/funcs/whoamiWhoami.d.ts.map +1 -1
  106. package/esm/funcs/whoamiWhoami.js +1 -2
  107. package/esm/funcs/whoamiWhoami.js.map +1 -1
  108. package/esm/hooks/types.d.ts +0 -1
  109. package/esm/hooks/types.d.ts.map +1 -1
  110. package/esm/lib/config.d.ts +11 -3
  111. package/esm/lib/config.d.ts.map +1 -1
  112. package/esm/lib/config.js +16 -6
  113. package/esm/lib/config.js.map +1 -1
  114. package/esm/lib/dlv.d.ts +14 -0
  115. package/esm/lib/dlv.d.ts.map +1 -0
  116. package/esm/lib/dlv.js +46 -0
  117. package/esm/lib/dlv.js.map +1 -0
  118. package/esm/lib/encodings.d.ts +0 -1
  119. package/esm/lib/encodings.d.ts.map +1 -1
  120. package/esm/lib/encodings.js +6 -27
  121. package/esm/lib/encodings.js.map +1 -1
  122. package/esm/lib/env.d.ts.map +1 -1
  123. package/esm/lib/env.js +3 -3
  124. package/esm/lib/env.js.map +1 -1
  125. package/esm/lib/files.d.ts +0 -13
  126. package/esm/lib/files.d.ts.map +1 -1
  127. package/esm/lib/files.js +0 -18
  128. package/esm/lib/files.js.map +1 -1
  129. package/esm/lib/http.d.ts +1 -1
  130. package/esm/lib/http.d.ts.map +1 -1
  131. package/esm/lib/http.js +1 -1
  132. package/esm/lib/http.js.map +1 -1
  133. package/esm/lib/is-plain-object.d.ts +2 -0
  134. package/esm/lib/is-plain-object.d.ts.map +1 -0
  135. package/esm/lib/is-plain-object.js +38 -0
  136. package/esm/lib/is-plain-object.js.map +1 -0
  137. package/esm/lib/matchers.d.ts.map +1 -1
  138. package/esm/lib/matchers.js +2 -1
  139. package/esm/lib/matchers.js.map +1 -1
  140. package/esm/lib/primitives.d.ts +0 -1
  141. package/esm/lib/primitives.d.ts.map +1 -1
  142. package/esm/lib/primitives.js +0 -17
  143. package/esm/lib/primitives.js.map +1 -1
  144. package/esm/lib/retries.js +0 -7
  145. package/esm/lib/retries.js.map +1 -1
  146. package/esm/lib/sdks.d.ts +1 -1
  147. package/esm/lib/sdks.d.ts.map +1 -1
  148. package/esm/lib/sdks.js +26 -62
  149. package/esm/lib/sdks.js.map +1 -1
  150. package/esm/lib/security.d.ts +5 -6
  151. package/esm/lib/security.d.ts.map +1 -1
  152. package/esm/lib/security.js +15 -24
  153. package/esm/lib/security.js.map +1 -1
  154. package/esm/lib/url.d.ts.map +1 -1
  155. package/esm/lib/url.js +2 -4
  156. package/esm/lib/url.js.map +1 -1
  157. package/esm/models/aiheartbeatdata.d.ts +79 -0
  158. package/esm/models/aiheartbeatdata.d.ts.map +1 -0
  159. package/esm/models/aiheartbeatdata.js +56 -0
  160. package/esm/models/aiheartbeatdata.js.map +1 -0
  161. package/esm/models/aiheartbeatstatus.d.ts +25 -0
  162. package/esm/models/aiheartbeatstatus.d.ts.map +1 -0
  163. package/esm/models/aiheartbeatstatus.js +20 -0
  164. package/esm/models/aiheartbeatstatus.js.map +1 -0
  165. package/esm/models/computepoolselection.d.ts +5 -0
  166. package/esm/models/computepoolselection.d.ts.map +1 -1
  167. package/esm/models/computepoolselection.js +22 -0
  168. package/esm/models/computepoolselection.js.map +1 -1
  169. package/esm/models/errors/alienerror.d.ts +173 -0
  170. package/esm/models/errors/alienerror.d.ts.map +1 -0
  171. package/esm/models/errors/alienerror.js +59 -0
  172. package/esm/models/errors/alienerror.js.map +1 -0
  173. package/esm/models/errors/index.d.ts +1 -0
  174. package/esm/models/errors/index.d.ts.map +1 -1
  175. package/esm/models/errors/index.js +1 -0
  176. package/esm/models/errors/index.js.map +1 -1
  177. package/esm/models/exposeprotocol.d.ts +16 -0
  178. package/esm/models/exposeprotocol.d.ts.map +1 -0
  179. package/esm/models/exposeprotocol.js +15 -0
  180. package/esm/models/exposeprotocol.js.map +1 -0
  181. package/esm/models/failuredomainselection.d.ts +31 -0
  182. package/esm/models/failuredomainselection.d.ts.map +1 -0
  183. package/esm/models/failuredomainselection.js +22 -0
  184. package/esm/models/failuredomainselection.js.map +1 -0
  185. package/esm/models/index.d.ts +18 -2
  186. package/esm/models/index.d.ts.map +1 -1
  187. package/esm/models/index.js +18 -2
  188. package/esm/models/index.js.map +1 -1
  189. package/esm/models/loadbalancerendpoint.d.ts +23 -0
  190. package/esm/models/loadbalancerendpoint.d.ts.map +1 -0
  191. package/esm/models/loadbalancerendpoint.js +14 -0
  192. package/esm/models/loadbalancerendpoint.js.map +1 -0
  193. package/esm/models/publicendpointoutput.d.ts +35 -0
  194. package/esm/models/publicendpointoutput.d.ts.map +1 -0
  195. package/esm/models/publicendpointoutput.js +21 -0
  196. package/esm/models/publicendpointoutput.js.map +1 -0
  197. package/esm/models/remoteawsclientconfig.d.ts +28 -0
  198. package/esm/models/remoteawsclientconfig.d.ts.map +1 -0
  199. package/esm/models/remoteawsclientconfig.js +16 -0
  200. package/esm/models/remoteawsclientconfig.js.map +1 -0
  201. package/esm/models/remoteawscredentials.d.ts +43 -0
  202. package/esm/models/remoteawscredentials.d.ts.map +1 -0
  203. package/esm/models/remoteawscredentials.js +27 -0
  204. package/esm/models/remoteawscredentials.js.map +1 -0
  205. package/esm/models/remoteazureclientconfig.d.ts +32 -0
  206. package/esm/models/remoteazureclientconfig.d.ts.map +1 -0
  207. package/esm/models/remoteazureclientconfig.js +17 -0
  208. package/esm/models/remoteazureclientconfig.js.map +1 -0
  209. package/esm/models/remoteazurecredentials.d.ts +28 -0
  210. package/esm/models/remoteazurecredentials.d.ts.map +1 -0
  211. package/esm/models/remoteazurecredentials.js +24 -0
  212. package/esm/models/remoteazurecredentials.js.map +1 -0
  213. package/esm/models/remoteblobstoragebinding.d.ts +20 -0
  214. package/esm/models/remoteblobstoragebinding.d.ts.map +1 -0
  215. package/esm/models/remoteblobstoragebinding.js +14 -0
  216. package/esm/models/remoteblobstoragebinding.js.map +1 -0
  217. package/esm/models/remotegcpclientconfig.d.ts +32 -0
  218. package/esm/models/remotegcpclientconfig.d.ts.map +1 -0
  219. package/esm/models/remotegcpclientconfig.js +17 -0
  220. package/esm/models/remotegcpclientconfig.js.map +1 -0
  221. package/esm/models/remotegcpcredentials.d.ts +31 -0
  222. package/esm/models/remotegcpcredentials.d.ts.map +1 -0
  223. package/esm/models/remotegcpcredentials.js +24 -0
  224. package/esm/models/remotegcpcredentials.js.map +1 -0
  225. package/esm/models/remotegcsstoragebinding.d.ts +16 -0
  226. package/esm/models/remotegcsstoragebinding.d.ts.map +1 -0
  227. package/esm/models/remotegcsstoragebinding.js +13 -0
  228. package/esm/models/remotegcsstoragebinding.js.map +1 -0
  229. package/esm/models/remotes3storagebinding.d.ts +16 -0
  230. package/esm/models/remotes3storagebinding.d.ts.map +1 -0
  231. package/esm/models/remotes3storagebinding.js +13 -0
  232. package/esm/models/remotes3storagebinding.js.map +1 -0
  233. package/esm/models/renewrequest.d.ts +14 -0
  234. package/esm/models/renewrequest.d.ts.map +1 -0
  235. package/esm/models/renewrequest.js +13 -0
  236. package/esm/models/renewrequest.js.map +1 -0
  237. package/esm/models/resolvebindingrequest.d.ts +23 -0
  238. package/esm/models/resolvebindingrequest.d.ts.map +1 -0
  239. package/esm/models/resolvebindingrequest.js +13 -0
  240. package/esm/models/resolvebindingrequest.js.map +1 -0
  241. package/esm/models/resolvebindingresponse.d.ts +83 -0
  242. package/esm/models/resolvebindingresponse.d.ts.map +1 -0
  243. package/esm/models/resolvebindingresponse.js +51 -0
  244. package/esm/models/resolvebindingresponse.js.map +1 -0
  245. package/esm/models/resourceentry.d.ts +4 -0
  246. package/esm/models/resourceentry.d.ts.map +1 -1
  247. package/esm/models/resourceentry.js +3 -0
  248. package/esm/models/resourceentry.js.map +1 -1
  249. package/esm/models/resourceheartbeatdata.d.ts +15 -2
  250. package/esm/models/resourceheartbeatdata.d.ts.map +1 -1
  251. package/esm/models/resourceheartbeatdata.js +10 -0
  252. package/esm/models/resourceheartbeatdata.js.map +1 -1
  253. package/esm/sdk/bindings.d.ts +6 -0
  254. package/esm/sdk/bindings.d.ts.map +1 -0
  255. package/esm/sdk/bindings.js +12 -0
  256. package/esm/sdk/bindings.js.map +1 -0
  257. package/esm/sdk/credentials.d.ts +0 -1
  258. package/esm/sdk/credentials.d.ts.map +1 -1
  259. package/esm/sdk/credentials.js +0 -4
  260. package/esm/sdk/credentials.js.map +1 -1
  261. package/esm/sdk/sdk.d.ts +3 -0
  262. package/esm/sdk/sdk.d.ts.map +1 -1
  263. package/esm/sdk/sdk.js +4 -0
  264. package/esm/sdk/sdk.js.map +1 -1
  265. package/esm/sdk/sync.d.ts +4 -0
  266. package/esm/sdk/sync.d.ts.map +1 -1
  267. package/esm/sdk/sync.js +7 -0
  268. package/esm/sdk/sync.js.map +1 -1
  269. package/esm/types/async.d.ts.map +1 -1
  270. package/esm/types/async.js +7 -8
  271. package/esm/types/async.js.map +1 -1
  272. package/examples/package.json +18 -0
  273. package/jsr.json +1 -1
  274. package/package.json +3 -3
  275. package/src/funcs/bindingsResolveBinding.ts +163 -0
  276. package/src/funcs/commandsCreateCommand.ts +1 -3
  277. package/src/funcs/commandsGetCommandPayload.ts +2 -3
  278. package/src/funcs/commandsGetCommandStatus.ts +2 -3
  279. package/src/funcs/commandsStoreCommandPayload.ts +2 -3
  280. package/src/funcs/commandsSubmitResponse.ts +2 -3
  281. package/src/funcs/commandsUploadComplete.ts +2 -3
  282. package/src/funcs/credentialsMintCredentials.ts +1 -3
  283. package/src/funcs/deploymentGroupsCreateDeploymentGroup.ts +1 -3
  284. package/src/funcs/deploymentGroupsCreateDeploymentGroupToken.ts +2 -3
  285. package/src/funcs/deploymentGroupsGetDeploymentGroup.ts +2 -3
  286. package/src/funcs/deploymentGroupsListDeploymentGroups.ts +1 -3
  287. package/src/funcs/deploymentsCreateDeployment.ts +1 -3
  288. package/src/funcs/deploymentsDeleteDeployment.ts +2 -3
  289. package/src/funcs/deploymentsGetDeployment.ts +2 -3
  290. package/src/funcs/deploymentsGetDeploymentInfo.ts +2 -3
  291. package/src/funcs/deploymentsListDeployments.ts +1 -3
  292. package/src/funcs/deploymentsRedeploy.ts +2 -3
  293. package/src/funcs/deploymentsRetryDeployment.ts +2 -3
  294. package/src/funcs/healthHealth.ts +1 -3
  295. package/src/funcs/leasesAcquireLeases.ts +1 -3
  296. package/src/funcs/leasesReleaseLease.ts +2 -3
  297. package/src/funcs/releasesCreateRelease.ts +1 -3
  298. package/src/funcs/releasesGetLatestRelease.ts +1 -3
  299. package/src/funcs/releasesGetRelease.ts +2 -3
  300. package/src/funcs/releasesListReleases.ts +1 -3
  301. package/src/funcs/stackImportStackImport.ts +1 -3
  302. package/src/funcs/syncAcquire.ts +1 -3
  303. package/src/funcs/syncAgentSync.ts +1 -3
  304. package/src/funcs/syncInitialize.ts +1 -3
  305. package/src/funcs/syncReconcile.ts +1 -3
  306. package/src/funcs/syncRelease.ts +1 -3
  307. package/src/funcs/{credentialsResolveCredentials.ts → syncRenew.ts} +16 -14
  308. package/src/funcs/whoamiWhoami.ts +1 -3
  309. package/src/hooks/types.ts +0 -1
  310. package/src/lib/config.ts +23 -8
  311. package/src/lib/dlv.ts +53 -0
  312. package/src/lib/encodings.ts +5 -33
  313. package/src/lib/env.ts +3 -7
  314. package/src/lib/files.ts +0 -22
  315. package/src/lib/http.ts +1 -3
  316. package/src/lib/is-plain-object.ts +43 -0
  317. package/src/lib/matchers.ts +3 -4
  318. package/src/lib/primitives.ts +0 -16
  319. package/src/lib/retries.ts +0 -8
  320. package/src/lib/sdks.ts +30 -66
  321. package/src/lib/security.ts +10 -26
  322. package/src/lib/url.ts +14 -16
  323. package/src/models/aiheartbeatdata.ts +184 -0
  324. package/src/models/aiheartbeatstatus.ts +58 -0
  325. package/src/models/computepoolselection.ts +31 -0
  326. package/src/models/errors/alienerror.ts +213 -0
  327. package/src/models/errors/index.ts +1 -0
  328. package/src/models/exposeprotocol.ts +22 -0
  329. package/src/models/failuredomainselection.ts +65 -0
  330. package/src/models/index.ts +18 -2
  331. package/src/models/loadbalancerendpoint.ts +44 -0
  332. package/src/models/publicendpointoutput.ts +67 -0
  333. package/src/models/remoteawsclientconfig.ts +53 -0
  334. package/src/models/remoteawscredentials.ts +88 -0
  335. package/src/models/remoteazureclientconfig.ts +58 -0
  336. package/src/models/remoteazurecredentials.ts +69 -0
  337. package/src/models/remoteblobstoragebinding.ts +41 -0
  338. package/src/models/remotegcpclientconfig.ts +58 -0
  339. package/src/models/remotegcpcredentials.ts +72 -0
  340. package/src/models/remotegcsstoragebinding.ts +36 -0
  341. package/src/models/remotes3storagebinding.ts +36 -0
  342. package/src/models/renewrequest.ts +29 -0
  343. package/src/models/resolvebindingrequest.ts +42 -0
  344. package/src/models/resolvebindingresponse.ts +183 -0
  345. package/src/models/resourceentry.ts +7 -0
  346. package/src/models/resourceheartbeatdata.ts +38 -2
  347. package/src/sdk/bindings.ts +21 -0
  348. package/src/sdk/credentials.ts +0 -12
  349. package/src/sdk/sdk.ts +6 -0
  350. package/src/sdk/sync.ts +15 -0
  351. package/src/types/async.ts +7 -8
  352. package/tsconfig.json +40 -0
  353. package/esm/funcs/credentialsResolveCredentials.d.ts.map +0 -1
  354. package/esm/funcs/credentialsResolveCredentials.js.map +0 -1
  355. package/esm/models/resolvecredentialsrequest.d.ts +0 -12
  356. package/esm/models/resolvecredentialsrequest.d.ts.map +0 -1
  357. package/esm/models/resolvecredentialsrequest.js +0 -12
  358. package/esm/models/resolvecredentialsrequest.js.map +0 -1
  359. package/esm/models/resolvecredentialsresponse.d.ts +0 -14
  360. package/esm/models/resolvecredentialsresponse.d.ts.map +0 -1
  361. package/esm/models/resolvecredentialsresponse.js +0 -14
  362. package/esm/models/resolvecredentialsresponse.js.map +0 -1
  363. package/src/models/resolvecredentialsrequest.ts +0 -30
  364. package/src/models/resolvecredentialsresponse.ts +0 -37
@@ -0,0 +1,65 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Failure-domain policy selected for a compute pool.
12
+ */
13
+ export type FailureDomainSelection = {
14
+ /**
15
+ * Concrete provider domains selected during setup.
16
+ *
17
+ * @remarks
18
+ * Empty delegates deterministic selection to the provider setup implementation.
19
+ */
20
+ selectedFailureDomains?: Array<string> | undefined;
21
+ /**
22
+ * Number of distinct failure domains across which new stateful replicas may be spread.
23
+ */
24
+ spread: number;
25
+ };
26
+
27
+ /** @internal */
28
+ export const FailureDomainSelection$inboundSchema: z.ZodType<
29
+ FailureDomainSelection,
30
+ unknown
31
+ > = z.object({
32
+ selectedFailureDomains: z.array(z.string()).optional(),
33
+ spread: z.int(),
34
+ });
35
+ /** @internal */
36
+ export type FailureDomainSelection$Outbound = {
37
+ selectedFailureDomains?: Array<string> | undefined;
38
+ spread: number;
39
+ };
40
+
41
+ /** @internal */
42
+ export const FailureDomainSelection$outboundSchema: z.ZodType<
43
+ FailureDomainSelection$Outbound,
44
+ FailureDomainSelection
45
+ > = z.object({
46
+ selectedFailureDomains: z.array(z.string()).optional(),
47
+ spread: z.int(),
48
+ });
49
+
50
+ export function failureDomainSelectionToJSON(
51
+ failureDomainSelection: FailureDomainSelection,
52
+ ): string {
53
+ return JSON.stringify(
54
+ FailureDomainSelection$outboundSchema.parse(failureDomainSelection),
55
+ );
56
+ }
57
+ export function failureDomainSelectionFromJSON(
58
+ jsonString: string,
59
+ ): SafeParseResult<FailureDomainSelection, SDKValidationError> {
60
+ return safeParse(
61
+ jsonString,
62
+ (x) => FailureDomainSelection$inboundSchema.parse(JSON.parse(x)),
63
+ `Failed to parse 'FailureDomainSelection' from JSON`,
64
+ );
65
+ }
@@ -7,6 +7,8 @@ export * from "./acquirerequest.js";
7
7
  export * from "./acquireresponse.js";
8
8
  export * from "./agentsyncrequest.js";
9
9
  export * from "./agentsyncresponse.js";
10
+ export * from "./aiheartbeatdata.js";
11
+ export * from "./aiheartbeatstatus.js";
10
12
  export * from "./alienerror.js";
11
13
  export * from "./artifactregistryheartbeatdata.js";
12
14
  export * from "./artifactregistryheartbeatstatus.js";
@@ -73,6 +75,8 @@ export * from "./domainsettings.js";
73
75
  export * from "./envelope.js";
74
76
  export * from "./environmentvariable.js";
75
77
  export * from "./environmentvariabletype.js";
78
+ export * from "./exposeprotocol.js";
79
+ export * from "./failuredomainselection.js";
76
80
  export * from "./gcpcredentials.js";
77
81
  export * from "./gcpcustomcertificateconfig.js";
78
82
  export * from "./gcpimpersonationconfig.js";
@@ -123,6 +127,7 @@ export * from "./leaseresponse.js";
123
127
  export * from "./listdeploymentgroupsresponse.js";
124
128
  export * from "./listdeploymentsresponse.js";
125
129
  export * from "./listreleasesresponse.js";
130
+ export * from "./loadbalancerendpoint.js";
126
131
  export * from "./localoperation.js";
127
132
  export * from "./localruntimeeventsnapshot.js";
128
133
  export * from "./localruntimeeventsubject.js";
@@ -155,6 +160,7 @@ export * from "./presignedrequest.js";
155
160
  export * from "./presignedrequestbackend.js";
156
161
  export * from "./providerfleetstatus.js";
157
162
  export * from "./providerlifecyclestate.js";
163
+ export * from "./publicendpointoutput.js";
158
164
  export * from "./publicendpointtargetsettings.js";
159
165
  export * from "./queueheartbeatdata.js";
160
166
  export * from "./queueheartbeatstatus.js";
@@ -164,10 +170,20 @@ export * from "./reconcilerequest.js";
164
170
  export * from "./reconcileresponse.js";
165
171
  export * from "./releaserequest.js";
166
172
  export * from "./releaseresponse.js";
173
+ export * from "./remoteawsclientconfig.js";
174
+ export * from "./remoteawscredentials.js";
175
+ export * from "./remoteazureclientconfig.js";
176
+ export * from "./remoteazurecredentials.js";
177
+ export * from "./remoteblobstoragebinding.js";
178
+ export * from "./remotegcpclientconfig.js";
179
+ export * from "./remotegcpcredentials.js";
180
+ export * from "./remotegcsstoragebinding.js";
181
+ export * from "./remotes3storagebinding.js";
167
182
  export * from "./remotestackmanagementheartbeatdata.js";
168
183
  export * from "./remotestackmanagementheartbeatstatus.js";
169
- export * from "./resolvecredentialsrequest.js";
170
- export * from "./resolvecredentialsresponse.js";
184
+ export * from "./renewrequest.js";
185
+ export * from "./resolvebindingrequest.js";
186
+ export * from "./resolvebindingresponse.js";
171
187
  export * from "./resourceentry.js";
172
188
  export * from "./resourceheartbeat.js";
173
189
  export * from "./resourceheartbeatdata.js";
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Load balancer endpoint information for DNS management.
12
+ *
13
+ * @remarks
14
+ * This is optional metadata used by the DNS controller to create domain mappings.
15
+ */
16
+ export type LoadBalancerEndpoint = {
17
+ /**
18
+ * The DNS name of the load balancer endpoint (e.g., ALB DNS, API Gateway domain).
19
+ */
20
+ dnsName: string;
21
+ /**
22
+ * AWS Route53 hosted zone ID (for ALIAS records). Only set on AWS.
23
+ */
24
+ hostedZoneId?: string | null | undefined;
25
+ };
26
+
27
+ /** @internal */
28
+ export const LoadBalancerEndpoint$inboundSchema: z.ZodType<
29
+ LoadBalancerEndpoint,
30
+ unknown
31
+ > = z.object({
32
+ dnsName: z.string(),
33
+ hostedZoneId: z.nullable(z.string()).optional(),
34
+ });
35
+
36
+ export function loadBalancerEndpointFromJSON(
37
+ jsonString: string,
38
+ ): SafeParseResult<LoadBalancerEndpoint, SDKValidationError> {
39
+ return safeParse(
40
+ jsonString,
41
+ (x) => LoadBalancerEndpoint$inboundSchema.parse(JSON.parse(x)),
42
+ `Failed to parse 'LoadBalancerEndpoint' from JSON`,
43
+ );
44
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+ import {
10
+ ExposeProtocol,
11
+ ExposeProtocol$inboundSchema,
12
+ } from "./exposeprotocol.js";
13
+ import {
14
+ LoadBalancerEndpoint,
15
+ LoadBalancerEndpoint$inboundSchema,
16
+ } from "./loadbalancerendpoint.js";
17
+
18
+ /**
19
+ * Runtime-resolved public endpoint metadata.
20
+ */
21
+ export type PublicEndpointOutput = {
22
+ /**
23
+ * Hostname for this endpoint.
24
+ */
25
+ host: string;
26
+ loadBalancerEndpoint?: LoadBalancerEndpoint | null | undefined;
27
+ /**
28
+ * Public connection port.
29
+ */
30
+ port: number;
31
+ /**
32
+ * Protocol for public workload endpoints.
33
+ */
34
+ protocol: ExposeProtocol;
35
+ /**
36
+ * Base URL for this endpoint.
37
+ */
38
+ url: string;
39
+ /**
40
+ * Wildcard hostname routed to this endpoint, when configured.
41
+ */
42
+ wildcardHost?: string | null | undefined;
43
+ };
44
+
45
+ /** @internal */
46
+ export const PublicEndpointOutput$inboundSchema: z.ZodType<
47
+ PublicEndpointOutput,
48
+ unknown
49
+ > = z.object({
50
+ host: z.string(),
51
+ loadBalancerEndpoint: z.nullable(LoadBalancerEndpoint$inboundSchema)
52
+ .optional(),
53
+ port: z.int(),
54
+ protocol: ExposeProtocol$inboundSchema,
55
+ url: z.string(),
56
+ wildcardHost: z.nullable(z.string()).optional(),
57
+ });
58
+
59
+ export function publicEndpointOutputFromJSON(
60
+ jsonString: string,
61
+ ): SafeParseResult<PublicEndpointOutput, SDKValidationError> {
62
+ return safeParse(
63
+ jsonString,
64
+ (x) => PublicEndpointOutput$inboundSchema.parse(JSON.parse(x)),
65
+ `Failed to parse 'PublicEndpointOutput' from JSON`,
66
+ );
67
+ }
@@ -0,0 +1,53 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+ import {
10
+ RemoteAwsCredentials,
11
+ RemoteAwsCredentials$inboundSchema,
12
+ } from "./remoteawscredentials.js";
13
+
14
+ /**
15
+ * Response-safe AWS client configuration. The public contract deliberately
16
+ *
17
+ * @remarks
18
+ * has no static, profile, metadata, or web-identity credential variants.
19
+ */
20
+ export type RemoteAwsClientConfig = {
21
+ /**
22
+ * AWS account containing the bucket.
23
+ */
24
+ accountId: string;
25
+ /**
26
+ * The only AWS credential form remote binding resolution can return.
27
+ */
28
+ credentials: RemoteAwsCredentials;
29
+ /**
30
+ * AWS region containing the bucket.
31
+ */
32
+ region: string;
33
+ };
34
+
35
+ /** @internal */
36
+ export const RemoteAwsClientConfig$inboundSchema: z.ZodType<
37
+ RemoteAwsClientConfig,
38
+ unknown
39
+ > = z.object({
40
+ accountId: z.string(),
41
+ credentials: RemoteAwsCredentials$inboundSchema,
42
+ region: z.string(),
43
+ });
44
+
45
+ export function remoteAwsClientConfigFromJSON(
46
+ jsonString: string,
47
+ ): SafeParseResult<RemoteAwsClientConfig, SDKValidationError> {
48
+ return safeParse(
49
+ jsonString,
50
+ (x) => RemoteAwsClientConfig$inboundSchema.parse(JSON.parse(x)),
51
+ `Failed to parse 'RemoteAwsClientConfig' from JSON`,
52
+ );
53
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ export const RemoteAwsCredentialsType = {
12
+ SessionCredentials: "sessionCredentials",
13
+ } as const;
14
+ export type RemoteAwsCredentialsType = ClosedEnum<
15
+ typeof RemoteAwsCredentialsType
16
+ >;
17
+
18
+ /**
19
+ * Temporary AWS session credentials with an authoritative expiry.
20
+ */
21
+ export type RemoteAwsCredentialsSessionCredentials = {
22
+ /**
23
+ * AWS access key id.
24
+ */
25
+ accessKeyId: string;
26
+ /**
27
+ * Provider-reported credential expiry.
28
+ */
29
+ expiresAt: string;
30
+ /**
31
+ * AWS secret access key.
32
+ */
33
+ secretAccessKey: string;
34
+ /**
35
+ * AWS session token.
36
+ */
37
+ sessionToken: string;
38
+ type: RemoteAwsCredentialsType;
39
+ };
40
+
41
+ /**
42
+ * The only AWS credential form remote binding resolution can return.
43
+ */
44
+ export type RemoteAwsCredentials = RemoteAwsCredentialsSessionCredentials;
45
+
46
+ /** @internal */
47
+ export const RemoteAwsCredentialsType$inboundSchema: z.ZodEnum<
48
+ typeof RemoteAwsCredentialsType
49
+ > = z.enum(RemoteAwsCredentialsType);
50
+
51
+ /** @internal */
52
+ export const RemoteAwsCredentialsSessionCredentials$inboundSchema: z.ZodType<
53
+ RemoteAwsCredentialsSessionCredentials,
54
+ unknown
55
+ > = z.object({
56
+ accessKeyId: z.string(),
57
+ expiresAt: z.string(),
58
+ secretAccessKey: z.string(),
59
+ sessionToken: z.string(),
60
+ type: RemoteAwsCredentialsType$inboundSchema,
61
+ });
62
+
63
+ export function remoteAwsCredentialsSessionCredentialsFromJSON(
64
+ jsonString: string,
65
+ ): SafeParseResult<RemoteAwsCredentialsSessionCredentials, SDKValidationError> {
66
+ return safeParse(
67
+ jsonString,
68
+ (x) =>
69
+ RemoteAwsCredentialsSessionCredentials$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'RemoteAwsCredentialsSessionCredentials' from JSON`,
71
+ );
72
+ }
73
+
74
+ /** @internal */
75
+ export const RemoteAwsCredentials$inboundSchema: z.ZodType<
76
+ RemoteAwsCredentials,
77
+ unknown
78
+ > = z.lazy(() => RemoteAwsCredentialsSessionCredentials$inboundSchema);
79
+
80
+ export function remoteAwsCredentialsFromJSON(
81
+ jsonString: string,
82
+ ): SafeParseResult<RemoteAwsCredentials, SDKValidationError> {
83
+ return safeParse(
84
+ jsonString,
85
+ (x) => RemoteAwsCredentials$inboundSchema.parse(JSON.parse(x)),
86
+ `Failed to parse 'RemoteAwsCredentials' from JSON`,
87
+ );
88
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+ import {
10
+ RemoteAzureCredentials,
11
+ RemoteAzureCredentials$inboundSchema,
12
+ } from "./remoteazurecredentials.js";
13
+
14
+ /**
15
+ * Response-safe Azure client configuration containing one storage-audience
16
+ *
17
+ * @remarks
18
+ * access token for the stack's Remote Bindings identity.
19
+ */
20
+ export type RemoteAzureClientConfig = {
21
+ /**
22
+ * The only Azure credential form remote binding resolution can return.
23
+ */
24
+ credentials: RemoteAzureCredentials;
25
+ /**
26
+ * Azure region configured for the deployment.
27
+ */
28
+ region?: string | null | undefined;
29
+ /**
30
+ * Azure subscription containing the storage account.
31
+ */
32
+ subscriptionId: string;
33
+ /**
34
+ * Azure tenant owning the identity.
35
+ */
36
+ tenantId: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const RemoteAzureClientConfig$inboundSchema: z.ZodType<
41
+ RemoteAzureClientConfig,
42
+ unknown
43
+ > = z.object({
44
+ credentials: RemoteAzureCredentials$inboundSchema,
45
+ region: z.nullable(z.string()).optional(),
46
+ subscriptionId: z.string(),
47
+ tenantId: z.string(),
48
+ });
49
+
50
+ export function remoteAzureClientConfigFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<RemoteAzureClientConfig, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => RemoteAzureClientConfig$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'RemoteAzureClientConfig' from JSON`,
57
+ );
58
+ }
@@ -0,0 +1,69 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ export const RemoteAzureCredentialsType = {
12
+ AccessToken: "accessToken",
13
+ } as const;
14
+ export type RemoteAzureCredentialsType = ClosedEnum<
15
+ typeof RemoteAzureCredentialsType
16
+ >;
17
+
18
+ /**
19
+ * OAuth bearer token for `https://storage.azure.com/.default`.
20
+ */
21
+ export type RemoteAzureCredentialsAccessToken = {
22
+ token: string;
23
+ type: RemoteAzureCredentialsType;
24
+ };
25
+
26
+ /**
27
+ * The only Azure credential form remote binding resolution can return.
28
+ */
29
+ export type RemoteAzureCredentials = RemoteAzureCredentialsAccessToken;
30
+
31
+ /** @internal */
32
+ export const RemoteAzureCredentialsType$inboundSchema: z.ZodEnum<
33
+ typeof RemoteAzureCredentialsType
34
+ > = z.enum(RemoteAzureCredentialsType);
35
+
36
+ /** @internal */
37
+ export const RemoteAzureCredentialsAccessToken$inboundSchema: z.ZodType<
38
+ RemoteAzureCredentialsAccessToken,
39
+ unknown
40
+ > = z.object({
41
+ token: z.string(),
42
+ type: RemoteAzureCredentialsType$inboundSchema,
43
+ });
44
+
45
+ export function remoteAzureCredentialsAccessTokenFromJSON(
46
+ jsonString: string,
47
+ ): SafeParseResult<RemoteAzureCredentialsAccessToken, SDKValidationError> {
48
+ return safeParse(
49
+ jsonString,
50
+ (x) => RemoteAzureCredentialsAccessToken$inboundSchema.parse(JSON.parse(x)),
51
+ `Failed to parse 'RemoteAzureCredentialsAccessToken' from JSON`,
52
+ );
53
+ }
54
+
55
+ /** @internal */
56
+ export const RemoteAzureCredentials$inboundSchema: z.ZodType<
57
+ RemoteAzureCredentials,
58
+ unknown
59
+ > = z.lazy(() => RemoteAzureCredentialsAccessToken$inboundSchema);
60
+
61
+ export function remoteAzureCredentialsFromJSON(
62
+ jsonString: string,
63
+ ): SafeParseResult<RemoteAzureCredentials, SDKValidationError> {
64
+ return safeParse(
65
+ jsonString,
66
+ (x) => RemoteAzureCredentials$inboundSchema.parse(JSON.parse(x)),
67
+ `Failed to parse 'RemoteAzureCredentials' from JSON`,
68
+ );
69
+ }
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * Concrete Azure Blob Storage topology returned to remote clients.
12
+ */
13
+ export type RemoteBlobStorageBinding = {
14
+ /**
15
+ * Storage account containing the authorized container.
16
+ */
17
+ accountName: string;
18
+ /**
19
+ * Blob container authorized by the credential lease.
20
+ */
21
+ containerName: string;
22
+ };
23
+
24
+ /** @internal */
25
+ export const RemoteBlobStorageBinding$inboundSchema: z.ZodType<
26
+ RemoteBlobStorageBinding,
27
+ unknown
28
+ > = z.object({
29
+ accountName: z.string(),
30
+ containerName: z.string(),
31
+ });
32
+
33
+ export function remoteBlobStorageBindingFromJSON(
34
+ jsonString: string,
35
+ ): SafeParseResult<RemoteBlobStorageBinding, SDKValidationError> {
36
+ return safeParse(
37
+ jsonString,
38
+ (x) => RemoteBlobStorageBinding$inboundSchema.parse(JSON.parse(x)),
39
+ `Failed to parse 'RemoteBlobStorageBinding' from JSON`,
40
+ );
41
+ }
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../types/fp.js";
8
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
+ import {
10
+ RemoteGcpCredentials,
11
+ RemoteGcpCredentials$inboundSchema,
12
+ } from "./remotegcpcredentials.js";
13
+
14
+ /**
15
+ * Response-safe GCP client configuration. Refreshable source credentials and
16
+ *
17
+ * @remarks
18
+ * service endpoint overrides cannot be represented by this type.
19
+ */
20
+ export type RemoteGcpClientConfig = {
21
+ /**
22
+ * The only GCP credential form remote binding resolution can return.
23
+ */
24
+ credentials: RemoteGcpCredentials;
25
+ /**
26
+ * GCP project containing the bucket.
27
+ */
28
+ projectId: string;
29
+ /**
30
+ * Numeric GCP project id, when known.
31
+ */
32
+ projectNumber?: string | null | undefined;
33
+ /**
34
+ * GCP region configured for the deployment.
35
+ */
36
+ region: string;
37
+ };
38
+
39
+ /** @internal */
40
+ export const RemoteGcpClientConfig$inboundSchema: z.ZodType<
41
+ RemoteGcpClientConfig,
42
+ unknown
43
+ > = z.object({
44
+ credentials: RemoteGcpCredentials$inboundSchema,
45
+ projectId: z.string(),
46
+ projectNumber: z.nullable(z.string()).optional(),
47
+ region: z.string(),
48
+ });
49
+
50
+ export function remoteGcpClientConfigFromJSON(
51
+ jsonString: string,
52
+ ): SafeParseResult<RemoteGcpClientConfig, SDKValidationError> {
53
+ return safeParse(
54
+ jsonString,
55
+ (x) => RemoteGcpClientConfig$inboundSchema.parse(JSON.parse(x)),
56
+ `Failed to parse 'RemoteGcpClientConfig' from JSON`,
57
+ );
58
+ }
@@ -0,0 +1,72 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v4";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ClosedEnum } from "../types/enums.js";
8
+ import { Result as SafeParseResult } from "../types/fp.js";
9
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
10
+
11
+ export const RemoteGcpCredentialsType = {
12
+ AccessToken: "accessToken",
13
+ } as const;
14
+ export type RemoteGcpCredentialsType = ClosedEnum<
15
+ typeof RemoteGcpCredentialsType
16
+ >;
17
+
18
+ /**
19
+ * Short-lived OAuth access token. Its expiry is the response `expiresAt`.
20
+ */
21
+ export type RemoteGcpCredentialsAccessToken = {
22
+ /**
23
+ * OAuth bearer token.
24
+ */
25
+ token: string;
26
+ type: RemoteGcpCredentialsType;
27
+ };
28
+
29
+ /**
30
+ * The only GCP credential form remote binding resolution can return.
31
+ */
32
+ export type RemoteGcpCredentials = RemoteGcpCredentialsAccessToken;
33
+
34
+ /** @internal */
35
+ export const RemoteGcpCredentialsType$inboundSchema: z.ZodEnum<
36
+ typeof RemoteGcpCredentialsType
37
+ > = z.enum(RemoteGcpCredentialsType);
38
+
39
+ /** @internal */
40
+ export const RemoteGcpCredentialsAccessToken$inboundSchema: z.ZodType<
41
+ RemoteGcpCredentialsAccessToken,
42
+ unknown
43
+ > = z.object({
44
+ token: z.string(),
45
+ type: RemoteGcpCredentialsType$inboundSchema,
46
+ });
47
+
48
+ export function remoteGcpCredentialsAccessTokenFromJSON(
49
+ jsonString: string,
50
+ ): SafeParseResult<RemoteGcpCredentialsAccessToken, SDKValidationError> {
51
+ return safeParse(
52
+ jsonString,
53
+ (x) => RemoteGcpCredentialsAccessToken$inboundSchema.parse(JSON.parse(x)),
54
+ `Failed to parse 'RemoteGcpCredentialsAccessToken' from JSON`,
55
+ );
56
+ }
57
+
58
+ /** @internal */
59
+ export const RemoteGcpCredentials$inboundSchema: z.ZodType<
60
+ RemoteGcpCredentials,
61
+ unknown
62
+ > = z.lazy(() => RemoteGcpCredentialsAccessToken$inboundSchema);
63
+
64
+ export function remoteGcpCredentialsFromJSON(
65
+ jsonString: string,
66
+ ): SafeParseResult<RemoteGcpCredentials, SDKValidationError> {
67
+ return safeParse(
68
+ jsonString,
69
+ (x) => RemoteGcpCredentials$inboundSchema.parse(JSON.parse(x)),
70
+ `Failed to parse 'RemoteGcpCredentials' from JSON`,
71
+ );
72
+ }