@distilled.cloud/fly-io 0.30.3 → 1.0.0-rc.10

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 (526) hide show
  1. package/LICENSE +201 -0
  2. package/lib/credentials.d.ts +24 -1
  3. package/lib/credentials.d.ts.map +1 -1
  4. package/lib/credentials.js +51 -5
  5. package/lib/credentials.js.map +1 -1
  6. package/lib/errors.d.ts +54 -4
  7. package/lib/errors.d.ts.map +1 -1
  8. package/lib/errors.js +46 -7
  9. package/lib/errors.js.map +1 -1
  10. package/lib/index.d.ts +30 -8
  11. package/lib/index.d.ts.map +1 -1
  12. package/lib/index.js +30 -8
  13. package/lib/index.js.map +1 -1
  14. package/lib/pagination.d.ts +5 -0
  15. package/lib/pagination.d.ts.map +1 -0
  16. package/lib/pagination.js +5 -0
  17. package/lib/pagination.js.map +1 -0
  18. package/lib/protocol.d.ts +60 -0
  19. package/lib/protocol.d.ts.map +1 -0
  20. package/lib/protocol.js +541 -0
  21. package/lib/protocol.js.map +1 -0
  22. package/lib/retry.d.ts +4 -4
  23. package/lib/retry.js +4 -4
  24. package/lib/services/addons.d.ts +466 -0
  25. package/lib/services/addons.d.ts.map +1 -0
  26. package/lib/services/addons.js +613 -0
  27. package/lib/services/addons.js.map +1 -0
  28. package/lib/services/index.d.ts +5 -0
  29. package/lib/services/index.d.ts.map +1 -0
  30. package/lib/services/index.js +6 -0
  31. package/lib/services/index.js.map +1 -0
  32. package/lib/services/machines.d.ts +2763 -0
  33. package/lib/services/machines.d.ts.map +1 -0
  34. package/lib/services/machines.js +3087 -0
  35. package/lib/services/machines.js.map +1 -0
  36. package/lib/services/mpg.d.ts +376 -0
  37. package/lib/services/mpg.d.ts.map +1 -0
  38. package/lib/services/mpg.js +570 -0
  39. package/lib/services/mpg.js.map +1 -0
  40. package/lib/services/sprites.d.ts +321 -0
  41. package/lib/services/sprites.d.ts.map +1 -0
  42. package/lib/services/sprites.js +407 -0
  43. package/lib/services/sprites.js.map +1 -0
  44. package/lib/traits.d.ts +18 -2
  45. package/lib/traits.d.ts.map +1 -1
  46. package/lib/traits.js +18 -2
  47. package/lib/traits.js.map +1 -1
  48. package/package.json +61 -41
  49. package/src/credentials.ts +65 -5
  50. package/src/errors.ts +65 -8
  51. package/src/index.ts +40 -8
  52. package/src/pagination.ts +12 -0
  53. package/src/protocol.ts +774 -0
  54. package/src/retry.ts +4 -4
  55. package/src/services/addons.ts +1313 -0
  56. package/src/services/index.ts +5 -0
  57. package/src/services/machines.ts +7438 -0
  58. package/src/services/mpg.ts +1188 -0
  59. package/src/services/sprites.ts +917 -0
  60. package/src/traits.ts +76 -2
  61. package/README.md +0 -69
  62. package/lib/category.d.ts +0 -5
  63. package/lib/category.d.ts.map +0 -1
  64. package/lib/category.js +0 -5
  65. package/lib/category.js.map +0 -1
  66. package/lib/client.d.ts +0 -11
  67. package/lib/client.d.ts.map +0 -1
  68. package/lib/client.js +0 -56
  69. package/lib/client.js.map +0 -1
  70. package/lib/operations/AppCertificatesAcmeCreate.d.ts +0 -61
  71. package/lib/operations/AppCertificatesAcmeCreate.d.ts.map +0 -1
  72. package/lib/operations/AppCertificatesAcmeCreate.js +0 -72
  73. package/lib/operations/AppCertificatesAcmeCreate.js.map +0 -1
  74. package/lib/operations/AppCertificatesAcmeDelete.d.ts +0 -62
  75. package/lib/operations/AppCertificatesAcmeDelete.d.ts.map +0 -1
  76. package/lib/operations/AppCertificatesAcmeDelete.js +0 -76
  77. package/lib/operations/AppCertificatesAcmeDelete.js.map +0 -1
  78. package/lib/operations/AppCertificatesCheck.d.ts +0 -71
  79. package/lib/operations/AppCertificatesCheck.d.ts.map +0 -1
  80. package/lib/operations/AppCertificatesCheck.js +0 -85
  81. package/lib/operations/AppCertificatesCheck.js.map +0 -1
  82. package/lib/operations/AppCertificatesCustomCreate.d.ts +0 -64
  83. package/lib/operations/AppCertificatesCustomCreate.d.ts.map +0 -1
  84. package/lib/operations/AppCertificatesCustomCreate.js +0 -76
  85. package/lib/operations/AppCertificatesCustomCreate.js.map +0 -1
  86. package/lib/operations/AppCertificatesCustomDelete.d.ts +0 -63
  87. package/lib/operations/AppCertificatesCustomDelete.d.ts.map +0 -1
  88. package/lib/operations/AppCertificatesCustomDelete.js +0 -77
  89. package/lib/operations/AppCertificatesCustomDelete.js.map +0 -1
  90. package/lib/operations/AppCertificatesDelete.d.ts +0 -17
  91. package/lib/operations/AppCertificatesDelete.d.ts.map +0 -1
  92. package/lib/operations/AppCertificatesDelete.js +0 -27
  93. package/lib/operations/AppCertificatesDelete.js.map +0 -1
  94. package/lib/operations/AppCertificatesList.d.ts +0 -39
  95. package/lib/operations/AppCertificatesList.d.ts.map +0 -1
  96. package/lib/operations/AppCertificatesList.js +0 -46
  97. package/lib/operations/AppCertificatesList.js.map +0 -1
  98. package/lib/operations/AppCertificatesShow.d.ts +0 -62
  99. package/lib/operations/AppCertificatesShow.d.ts.map +0 -1
  100. package/lib/operations/AppCertificatesShow.js +0 -73
  101. package/lib/operations/AppCertificatesShow.js.map +0 -1
  102. package/lib/operations/AppCreateDeployToken.d.ts +0 -18
  103. package/lib/operations/AppCreateDeployToken.d.ts.map +0 -1
  104. package/lib/operations/AppCreateDeployToken.js +0 -25
  105. package/lib/operations/AppCreateDeployToken.js.map +0 -1
  106. package/lib/operations/AppIPAssignmentsCreate.d.ts +0 -26
  107. package/lib/operations/AppIPAssignmentsCreate.d.ts.map +0 -1
  108. package/lib/operations/AppIPAssignmentsCreate.js +0 -33
  109. package/lib/operations/AppIPAssignmentsCreate.js.map +0 -1
  110. package/lib/operations/AppIPAssignmentsDelete.d.ts +0 -17
  111. package/lib/operations/AppIPAssignmentsDelete.d.ts.map +0 -1
  112. package/lib/operations/AppIPAssignmentsDelete.js +0 -24
  113. package/lib/operations/AppIPAssignmentsDelete.js.map +0 -1
  114. package/lib/operations/AppIPAssignmentsList.d.ts +0 -23
  115. package/lib/operations/AppIPAssignmentsList.d.ts.map +0 -1
  116. package/lib/operations/AppIPAssignmentsList.js +0 -30
  117. package/lib/operations/AppIPAssignmentsList.js.map +0 -1
  118. package/lib/operations/App_CertificatesAcmeCreate.d.ts +0 -104
  119. package/lib/operations/App_CertificatesAcmeCreate.d.ts.map +0 -1
  120. package/lib/operations/App_CertificatesAcmeCreate.js +0 -69
  121. package/lib/operations/App_CertificatesAcmeCreate.js.map +0 -1
  122. package/lib/operations/App_CertificatesAcmeDelete.d.ts +0 -100
  123. package/lib/operations/App_CertificatesAcmeDelete.d.ts.map +0 -1
  124. package/lib/operations/App_CertificatesAcmeDelete.js +0 -70
  125. package/lib/operations/App_CertificatesAcmeDelete.js.map +0 -1
  126. package/lib/operations/App_CertificatesCheck.d.ts +0 -118
  127. package/lib/operations/App_CertificatesCheck.d.ts.map +0 -1
  128. package/lib/operations/App_CertificatesCheck.js +0 -79
  129. package/lib/operations/App_CertificatesCheck.js.map +0 -1
  130. package/lib/operations/App_CertificatesCustomCreate.d.ts +0 -108
  131. package/lib/operations/App_CertificatesCustomCreate.d.ts.map +0 -1
  132. package/lib/operations/App_CertificatesCustomCreate.js +0 -72
  133. package/lib/operations/App_CertificatesCustomCreate.js.map +0 -1
  134. package/lib/operations/App_CertificatesCustomDelete.d.ts +0 -102
  135. package/lib/operations/App_CertificatesCustomDelete.d.ts.map +0 -1
  136. package/lib/operations/App_CertificatesCustomDelete.js +0 -72
  137. package/lib/operations/App_CertificatesCustomDelete.js.map +0 -1
  138. package/lib/operations/App_CertificatesDelete.d.ts +0 -10
  139. package/lib/operations/App_CertificatesDelete.d.ts.map +0 -1
  140. package/lib/operations/App_CertificatesDelete.js +0 -20
  141. package/lib/operations/App_CertificatesDelete.js.map +0 -1
  142. package/lib/operations/App_CertificatesList.d.ts +0 -58
  143. package/lib/operations/App_CertificatesList.d.ts.map +0 -1
  144. package/lib/operations/App_CertificatesList.js +0 -44
  145. package/lib/operations/App_CertificatesList.js.map +0 -1
  146. package/lib/operations/App_CertificatesShow.d.ts +0 -100
  147. package/lib/operations/App_CertificatesShow.d.ts.map +0 -1
  148. package/lib/operations/App_CertificatesShow.js +0 -67
  149. package/lib/operations/App_CertificatesShow.js.map +0 -1
  150. package/lib/operations/App_IPAssignmentsCreate.d.ts +0 -34
  151. package/lib/operations/App_IPAssignmentsCreate.d.ts.map +0 -1
  152. package/lib/operations/App_IPAssignmentsCreate.js +0 -30
  153. package/lib/operations/App_IPAssignmentsCreate.js.map +0 -1
  154. package/lib/operations/App_IPAssignmentsDelete.d.ts +0 -10
  155. package/lib/operations/App_IPAssignmentsDelete.d.ts.map +0 -1
  156. package/lib/operations/App_IPAssignmentsDelete.js +0 -17
  157. package/lib/operations/App_IPAssignmentsDelete.js.map +0 -1
  158. package/lib/operations/App_IPAssignmentsList.d.ts +0 -26
  159. package/lib/operations/App_IPAssignmentsList.d.ts.map +0 -1
  160. package/lib/operations/App_IPAssignmentsList.js +0 -26
  161. package/lib/operations/App_IPAssignmentsList.js.map +0 -1
  162. package/lib/operations/AppsCreate.d.ts +0 -18
  163. package/lib/operations/AppsCreate.d.ts.map +0 -1
  164. package/lib/operations/AppsCreate.js +0 -24
  165. package/lib/operations/AppsCreate.js.map +0 -1
  166. package/lib/operations/AppsDelete.d.ts +0 -17
  167. package/lib/operations/AppsDelete.d.ts.map +0 -1
  168. package/lib/operations/AppsDelete.js +0 -23
  169. package/lib/operations/AppsDelete.js.map +0 -1
  170. package/lib/operations/AppsList.d.ts +0 -35
  171. package/lib/operations/AppsList.d.ts.map +0 -1
  172. package/lib/operations/AppsList.js +0 -40
  173. package/lib/operations/AppsList.js.map +0 -1
  174. package/lib/operations/AppsShow.d.ts +0 -30
  175. package/lib/operations/AppsShow.d.ts.map +0 -1
  176. package/lib/operations/AppsShow.js +0 -35
  177. package/lib/operations/AppsShow.js.map +0 -1
  178. package/lib/operations/CurrentTokenShow.d.ts +0 -23
  179. package/lib/operations/CurrentTokenShow.d.ts.map +0 -1
  180. package/lib/operations/CurrentTokenShow.js +0 -26
  181. package/lib/operations/CurrentTokenShow.js.map +0 -1
  182. package/lib/operations/MachinesCordon.d.ts +0 -19
  183. package/lib/operations/MachinesCordon.d.ts.map +0 -1
  184. package/lib/operations/MachinesCordon.js +0 -28
  185. package/lib/operations/MachinesCordon.js.map +0 -1
  186. package/lib/operations/MachinesCreate.d.ts +0 -810
  187. package/lib/operations/MachinesCreate.d.ts.map +0 -1
  188. package/lib/operations/MachinesCreate.js +0 -917
  189. package/lib/operations/MachinesCreate.js.map +0 -1
  190. package/lib/operations/MachinesCreateLease.d.ts +0 -28
  191. package/lib/operations/MachinesCreateLease.d.ts.map +0 -1
  192. package/lib/operations/MachinesCreateLease.js +0 -38
  193. package/lib/operations/MachinesCreateLease.js.map +0 -1
  194. package/lib/operations/MachinesDelete.d.ts +0 -21
  195. package/lib/operations/MachinesDelete.d.ts.map +0 -1
  196. package/lib/operations/MachinesDelete.js +0 -27
  197. package/lib/operations/MachinesDelete.js.map +0 -1
  198. package/lib/operations/MachinesDeleteMetadata.d.ts +0 -21
  199. package/lib/operations/MachinesDeleteMetadata.d.ts.map +0 -1
  200. package/lib/operations/MachinesDeleteMetadata.js +0 -31
  201. package/lib/operations/MachinesDeleteMetadata.js.map +0 -1
  202. package/lib/operations/MachinesExec.d.ts +0 -29
  203. package/lib/operations/MachinesExec.d.ts.map +0 -1
  204. package/lib/operations/MachinesExec.js +0 -37
  205. package/lib/operations/MachinesExec.js.map +0 -1
  206. package/lib/operations/MachinesGetMemory.d.ts +0 -22
  207. package/lib/operations/MachinesGetMemory.d.ts.map +0 -1
  208. package/lib/operations/MachinesGetMemory.js +0 -31
  209. package/lib/operations/MachinesGetMemory.js.map +0 -1
  210. package/lib/operations/MachinesGetMetadataKey.d.ts +0 -23
  211. package/lib/operations/MachinesGetMetadataKey.d.ts.map +0 -1
  212. package/lib/operations/MachinesGetMetadataKey.js +0 -33
  213. package/lib/operations/MachinesGetMetadataKey.js.map +0 -1
  214. package/lib/operations/MachinesList.d.ts +0 -559
  215. package/lib/operations/MachinesList.d.ts.map +0 -1
  216. package/lib/operations/MachinesList.js +0 -642
  217. package/lib/operations/MachinesList.js.map +0 -1
  218. package/lib/operations/MachinesListEvents.d.ts +0 -28
  219. package/lib/operations/MachinesListEvents.d.ts.map +0 -1
  220. package/lib/operations/MachinesListEvents.js +0 -38
  221. package/lib/operations/MachinesListEvents.js.map +0 -1
  222. package/lib/operations/MachinesListProcesses.d.ts +0 -35
  223. package/lib/operations/MachinesListProcesses.d.ts.map +0 -1
  224. package/lib/operations/MachinesListProcesses.js +0 -45
  225. package/lib/operations/MachinesListProcesses.js.map +0 -1
  226. package/lib/operations/MachinesListVersions.d.ts +0 -272
  227. package/lib/operations/MachinesListVersions.d.ts.map +0 -1
  228. package/lib/operations/MachinesListVersions.js +0 -321
  229. package/lib/operations/MachinesListVersions.js.map +0 -1
  230. package/lib/operations/MachinesOrgList.d.ts +0 -63
  231. package/lib/operations/MachinesOrgList.d.ts.map +0 -1
  232. package/lib/operations/MachinesOrgList.js +0 -68
  233. package/lib/operations/MachinesOrgList.js.map +0 -1
  234. package/lib/operations/MachinesPatchMetadata.d.ts +0 -23
  235. package/lib/operations/MachinesPatchMetadata.d.ts.map +0 -1
  236. package/lib/operations/MachinesPatchMetadata.js +0 -31
  237. package/lib/operations/MachinesPatchMetadata.js.map +0 -1
  238. package/lib/operations/MachinesReclaimMemory.d.ts +0 -22
  239. package/lib/operations/MachinesReclaimMemory.d.ts.map +0 -1
  240. package/lib/operations/MachinesReclaimMemory.js +0 -32
  241. package/lib/operations/MachinesReclaimMemory.js.map +0 -1
  242. package/lib/operations/MachinesReleaseLease.d.ts +0 -20
  243. package/lib/operations/MachinesReleaseLease.d.ts.map +0 -1
  244. package/lib/operations/MachinesReleaseLease.js +0 -30
  245. package/lib/operations/MachinesReleaseLease.js.map +0 -1
  246. package/lib/operations/MachinesRestart.d.ts +0 -23
  247. package/lib/operations/MachinesRestart.d.ts.map +0 -1
  248. package/lib/operations/MachinesRestart.js +0 -40
  249. package/lib/operations/MachinesRestart.js.map +0 -1
  250. package/lib/operations/MachinesSetMemoryLimit.d.ts +0 -23
  251. package/lib/operations/MachinesSetMemoryLimit.d.ts.map +0 -1
  252. package/lib/operations/MachinesSetMemoryLimit.js +0 -33
  253. package/lib/operations/MachinesSetMemoryLimit.js.map +0 -1
  254. package/lib/operations/MachinesShow.d.ts +0 -553
  255. package/lib/operations/MachinesShow.d.ts.map +0 -1
  256. package/lib/operations/MachinesShow.js +0 -626
  257. package/lib/operations/MachinesShow.js.map +0 -1
  258. package/lib/operations/MachinesShowLease.d.ts +0 -25
  259. package/lib/operations/MachinesShowLease.d.ts.map +0 -1
  260. package/lib/operations/MachinesShowLease.js +0 -34
  261. package/lib/operations/MachinesShowLease.js.map +0 -1
  262. package/lib/operations/MachinesShowMetadata.d.ts +0 -19
  263. package/lib/operations/MachinesShowMetadata.d.ts.map +0 -1
  264. package/lib/operations/MachinesShowMetadata.js +0 -29
  265. package/lib/operations/MachinesShowMetadata.js.map +0 -1
  266. package/lib/operations/MachinesSignal.d.ts +0 -20
  267. package/lib/operations/MachinesSignal.d.ts.map +0 -1
  268. package/lib/operations/MachinesSignal.js +0 -44
  269. package/lib/operations/MachinesSignal.js.map +0 -1
  270. package/lib/operations/MachinesStart.d.ts +0 -19
  271. package/lib/operations/MachinesStart.d.ts.map +0 -1
  272. package/lib/operations/MachinesStart.js +0 -28
  273. package/lib/operations/MachinesStart.js.map +0 -1
  274. package/lib/operations/MachinesStop.d.ts +0 -21
  275. package/lib/operations/MachinesStop.d.ts.map +0 -1
  276. package/lib/operations/MachinesStop.js +0 -38
  277. package/lib/operations/MachinesStop.js.map +0 -1
  278. package/lib/operations/MachinesSuspend.d.ts +0 -19
  279. package/lib/operations/MachinesSuspend.d.ts.map +0 -1
  280. package/lib/operations/MachinesSuspend.js +0 -28
  281. package/lib/operations/MachinesSuspend.js.map +0 -1
  282. package/lib/operations/MachinesUncordon.d.ts +0 -19
  283. package/lib/operations/MachinesUncordon.d.ts.map +0 -1
  284. package/lib/operations/MachinesUncordon.js +0 -28
  285. package/lib/operations/MachinesUncordon.js.map +0 -1
  286. package/lib/operations/MachinesUpdate.d.ts +0 -812
  287. package/lib/operations/MachinesUpdate.d.ts.map +0 -1
  288. package/lib/operations/MachinesUpdate.js +0 -919
  289. package/lib/operations/MachinesUpdate.js.map +0 -1
  290. package/lib/operations/MachinesUpdateMetadata.d.ts +0 -23
  291. package/lib/operations/MachinesUpdateMetadata.d.ts.map +0 -1
  292. package/lib/operations/MachinesUpdateMetadata.js +0 -33
  293. package/lib/operations/MachinesUpdateMetadata.js.map +0 -1
  294. package/lib/operations/MachinesUpsertMetadata.d.ts +0 -23
  295. package/lib/operations/MachinesUpsertMetadata.d.ts.map +0 -1
  296. package/lib/operations/MachinesUpsertMetadata.js +0 -33
  297. package/lib/operations/MachinesUpsertMetadata.js.map +0 -1
  298. package/lib/operations/MachinesWait.d.ts +0 -35
  299. package/lib/operations/MachinesWait.d.ts.map +0 -1
  300. package/lib/operations/MachinesWait.js +0 -50
  301. package/lib/operations/MachinesWait.js.map +0 -1
  302. package/lib/operations/PlatformPlacementsPost.d.ts +0 -37
  303. package/lib/operations/PlatformPlacementsPost.d.ts.map +0 -1
  304. package/lib/operations/PlatformPlacementsPost.js +0 -44
  305. package/lib/operations/PlatformPlacementsPost.js.map +0 -1
  306. package/lib/operations/PlatformRegionsGet.d.ts +0 -26
  307. package/lib/operations/PlatformRegionsGet.d.ts.map +0 -1
  308. package/lib/operations/PlatformRegionsGet.js +0 -32
  309. package/lib/operations/PlatformRegionsGet.js.map +0 -1
  310. package/lib/operations/SecretCreate.d.ts +0 -26
  311. package/lib/operations/SecretCreate.d.ts.map +0 -1
  312. package/lib/operations/SecretCreate.js +0 -31
  313. package/lib/operations/SecretCreate.js.map +0 -1
  314. package/lib/operations/SecretDelete.d.ts +0 -20
  315. package/lib/operations/SecretDelete.d.ts.map +0 -1
  316. package/lib/operations/SecretDelete.js +0 -25
  317. package/lib/operations/SecretDelete.js.map +0 -1
  318. package/lib/operations/SecretGet.d.ts +0 -27
  319. package/lib/operations/SecretGet.d.ts.map +0 -1
  320. package/lib/operations/SecretGet.js +0 -32
  321. package/lib/operations/SecretGet.js.map +0 -1
  322. package/lib/operations/SecretkeyDecrypt.d.ts +0 -23
  323. package/lib/operations/SecretkeyDecrypt.d.ts.map +0 -1
  324. package/lib/operations/SecretkeyDecrypt.js +0 -31
  325. package/lib/operations/SecretkeyDecrypt.js.map +0 -1
  326. package/lib/operations/SecretkeyDelete.d.ts +0 -20
  327. package/lib/operations/SecretkeyDelete.d.ts.map +0 -1
  328. package/lib/operations/SecretkeyDelete.js +0 -28
  329. package/lib/operations/SecretkeyDelete.js.map +0 -1
  330. package/lib/operations/SecretkeyEncrypt.d.ts +0 -23
  331. package/lib/operations/SecretkeyEncrypt.d.ts.map +0 -1
  332. package/lib/operations/SecretkeyEncrypt.js +0 -31
  333. package/lib/operations/SecretkeyEncrypt.js.map +0 -1
  334. package/lib/operations/SecretkeyGenerate.d.ts +0 -27
  335. package/lib/operations/SecretkeyGenerate.d.ts.map +0 -1
  336. package/lib/operations/SecretkeyGenerate.js +0 -36
  337. package/lib/operations/SecretkeyGenerate.js.map +0 -1
  338. package/lib/operations/SecretkeyGet.d.ts +0 -25
  339. package/lib/operations/SecretkeyGet.d.ts.map +0 -1
  340. package/lib/operations/SecretkeyGet.js +0 -30
  341. package/lib/operations/SecretkeyGet.js.map +0 -1
  342. package/lib/operations/SecretkeySet.d.ts +0 -27
  343. package/lib/operations/SecretkeySet.d.ts.map +0 -1
  344. package/lib/operations/SecretkeySet.js +0 -32
  345. package/lib/operations/SecretkeySet.js.map +0 -1
  346. package/lib/operations/SecretkeySign.d.ts +0 -22
  347. package/lib/operations/SecretkeySign.d.ts.map +0 -1
  348. package/lib/operations/SecretkeySign.js +0 -30
  349. package/lib/operations/SecretkeySign.js.map +0 -1
  350. package/lib/operations/SecretkeyVerify.d.ts +0 -21
  351. package/lib/operations/SecretkeyVerify.d.ts.map +0 -1
  352. package/lib/operations/SecretkeyVerify.js +0 -30
  353. package/lib/operations/SecretkeyVerify.js.map +0 -1
  354. package/lib/operations/SecretkeysList.d.ts +0 -27
  355. package/lib/operations/SecretkeysList.d.ts.map +0 -1
  356. package/lib/operations/SecretkeysList.js +0 -32
  357. package/lib/operations/SecretkeysList.js.map +0 -1
  358. package/lib/operations/SecretsList.d.ts +0 -27
  359. package/lib/operations/SecretsList.d.ts.map +0 -1
  360. package/lib/operations/SecretsList.js +0 -32
  361. package/lib/operations/SecretsList.js.map +0 -1
  362. package/lib/operations/SecretsUpdate.d.ts +0 -26
  363. package/lib/operations/SecretsUpdate.d.ts.map +0 -1
  364. package/lib/operations/SecretsUpdate.js +0 -31
  365. package/lib/operations/SecretsUpdate.js.map +0 -1
  366. package/lib/operations/TokensAuthenticate.d.ts +0 -26
  367. package/lib/operations/TokensAuthenticate.d.ts.map +0 -1
  368. package/lib/operations/TokensAuthenticate.js +0 -33
  369. package/lib/operations/TokensAuthenticate.js.map +0 -1
  370. package/lib/operations/TokensAuthorize.d.ts +0 -59
  371. package/lib/operations/TokensAuthorize.d.ts.map +0 -1
  372. package/lib/operations/TokensAuthorize.js +0 -64
  373. package/lib/operations/TokensAuthorize.js.map +0 -1
  374. package/lib/operations/TokensRequestKms.d.ts +0 -14
  375. package/lib/operations/TokensRequestKms.d.ts.map +0 -1
  376. package/lib/operations/TokensRequestKms.js +0 -19
  377. package/lib/operations/TokensRequestKms.js.map +0 -1
  378. package/lib/operations/TokensRequestOIDC.d.ts +0 -16
  379. package/lib/operations/TokensRequestOIDC.d.ts.map +0 -1
  380. package/lib/operations/TokensRequestOIDC.js +0 -22
  381. package/lib/operations/TokensRequestOIDC.js.map +0 -1
  382. package/lib/operations/TokensRequest_Kms.d.ts +0 -12
  383. package/lib/operations/TokensRequest_Kms.d.ts.map +0 -1
  384. package/lib/operations/TokensRequest_Kms.js +0 -18
  385. package/lib/operations/TokensRequest_Kms.js.map +0 -1
  386. package/lib/operations/TokensRequest_OIDC.d.ts +0 -18
  387. package/lib/operations/TokensRequest_OIDC.d.ts.map +0 -1
  388. package/lib/operations/TokensRequest_OIDC.js +0 -22
  389. package/lib/operations/TokensRequest_OIDC.js.map +0 -1
  390. package/lib/operations/VolumeDelete.d.ts +0 -41
  391. package/lib/operations/VolumeDelete.d.ts.map +0 -1
  392. package/lib/operations/VolumeDelete.js +0 -46
  393. package/lib/operations/VolumeDelete.js.map +0 -1
  394. package/lib/operations/VolumesCreate.d.ts +0 -62
  395. package/lib/operations/VolumesCreate.d.ts.map +0 -1
  396. package/lib/operations/VolumesCreate.js +0 -67
  397. package/lib/operations/VolumesCreate.js.map +0 -1
  398. package/lib/operations/VolumesExtend.d.ts +0 -45
  399. package/lib/operations/VolumesExtend.d.ts.map +0 -1
  400. package/lib/operations/VolumesExtend.js +0 -53
  401. package/lib/operations/VolumesExtend.js.map +0 -1
  402. package/lib/operations/VolumesGetById.d.ts +0 -41
  403. package/lib/operations/VolumesGetById.d.ts.map +0 -1
  404. package/lib/operations/VolumesGetById.js +0 -46
  405. package/lib/operations/VolumesGetById.js.map +0 -1
  406. package/lib/operations/VolumesList.d.ts +0 -41
  407. package/lib/operations/VolumesList.d.ts.map +0 -1
  408. package/lib/operations/VolumesList.js +0 -46
  409. package/lib/operations/VolumesList.js.map +0 -1
  410. package/lib/operations/VolumesListSnapshots.d.ts +0 -27
  411. package/lib/operations/VolumesListSnapshots.d.ts.map +0 -1
  412. package/lib/operations/VolumesListSnapshots.js +0 -37
  413. package/lib/operations/VolumesListSnapshots.js.map +0 -1
  414. package/lib/operations/VolumesOrgList.d.ts +0 -59
  415. package/lib/operations/VolumesOrgList.d.ts.map +0 -1
  416. package/lib/operations/VolumesOrgList.js +0 -63
  417. package/lib/operations/VolumesOrgList.js.map +0 -1
  418. package/lib/operations/VolumesUpdate.d.ts +0 -43
  419. package/lib/operations/VolumesUpdate.d.ts.map +0 -1
  420. package/lib/operations/VolumesUpdate.js +0 -48
  421. package/lib/operations/VolumesUpdate.js.map +0 -1
  422. package/lib/operations/createVolumeSnapshot.d.ts +0 -19
  423. package/lib/operations/createVolumeSnapshot.d.ts.map +0 -1
  424. package/lib/operations/createVolumeSnapshot.js +0 -29
  425. package/lib/operations/createVolumeSnapshot.js.map +0 -1
  426. package/lib/operations/index.d.ts +0 -77
  427. package/lib/operations/index.d.ts.map +0 -1
  428. package/lib/operations/index.js +0 -77
  429. package/lib/operations/index.js.map +0 -1
  430. package/lib/sensitive.d.ts +0 -5
  431. package/lib/sensitive.d.ts.map +0 -1
  432. package/lib/sensitive.js +0 -5
  433. package/lib/sensitive.js.map +0 -1
  434. package/src/category.ts +0 -4
  435. package/src/client.ts +0 -71
  436. package/src/operations/AppCertificatesAcmeCreate.ts +0 -148
  437. package/src/operations/AppCertificatesAcmeDelete.ts +0 -147
  438. package/src/operations/AppCertificatesCheck.ts +0 -167
  439. package/src/operations/AppCertificatesCustomCreate.ts +0 -154
  440. package/src/operations/AppCertificatesCustomDelete.ts +0 -149
  441. package/src/operations/AppCertificatesDelete.ts +0 -38
  442. package/src/operations/AppCertificatesList.ts +0 -81
  443. package/src/operations/AppCertificatesShow.ts +0 -144
  444. package/src/operations/AppCreateDeployToken.ts +0 -38
  445. package/src/operations/AppIPAssignmentsCreate.ts +0 -54
  446. package/src/operations/AppIPAssignmentsDelete.ts +0 -35
  447. package/src/operations/AppIPAssignmentsList.ts +0 -52
  448. package/src/operations/App_CertificatesAcmeCreate.ts +0 -99
  449. package/src/operations/App_CertificatesAcmeDelete.ts +0 -100
  450. package/src/operations/App_CertificatesCheck.ts +0 -110
  451. package/src/operations/App_CertificatesCustomCreate.ts +0 -102
  452. package/src/operations/App_CertificatesCustomDelete.ts +0 -102
  453. package/src/operations/App_CertificatesDelete.ts +0 -28
  454. package/src/operations/App_CertificatesList.ts +0 -52
  455. package/src/operations/App_CertificatesShow.ts +0 -95
  456. package/src/operations/App_IPAssignmentsCreate.ts +0 -36
  457. package/src/operations/App_IPAssignmentsDelete.ts +0 -25
  458. package/src/operations/App_IPAssignmentsList.ts +0 -37
  459. package/src/operations/AppsCreate.ts +0 -37
  460. package/src/operations/AppsDelete.ts +0 -33
  461. package/src/operations/AppsList.ts +0 -73
  462. package/src/operations/AppsShow.ts +0 -56
  463. package/src/operations/CurrentTokenShow.ts +0 -48
  464. package/src/operations/MachinesCordon.ts +0 -39
  465. package/src/operations/MachinesCreate.ts +0 -2166
  466. package/src/operations/MachinesCreateLease.ts +0 -57
  467. package/src/operations/MachinesDelete.ts +0 -39
  468. package/src/operations/MachinesDeleteMetadata.ts +0 -43
  469. package/src/operations/MachinesExec.ts +0 -58
  470. package/src/operations/MachinesGetMemory.ts +0 -45
  471. package/src/operations/MachinesGetMetadataKey.ts +0 -47
  472. package/src/operations/MachinesList.ts +0 -1494
  473. package/src/operations/MachinesListEvents.ts +0 -59
  474. package/src/operations/MachinesListProcesses.ts +0 -73
  475. package/src/operations/MachinesListVersions.ts +0 -742
  476. package/src/operations/MachinesOrgList.ts +0 -128
  477. package/src/operations/MachinesPatchMetadata.ts +0 -38
  478. package/src/operations/MachinesReclaimMemory.ts +0 -46
  479. package/src/operations/MachinesReleaseLease.ts +0 -41
  480. package/src/operations/MachinesRestart.ts +0 -62
  481. package/src/operations/MachinesSetMemoryLimit.ts +0 -48
  482. package/src/operations/MachinesShow.ts +0 -1473
  483. package/src/operations/MachinesShowLease.ts +0 -51
  484. package/src/operations/MachinesShowMetadata.ts +0 -43
  485. package/src/operations/MachinesSignal.ts +0 -72
  486. package/src/operations/MachinesStart.ts +0 -39
  487. package/src/operations/MachinesStop.ts +0 -60
  488. package/src/operations/MachinesSuspend.ts +0 -39
  489. package/src/operations/MachinesUncordon.ts +0 -39
  490. package/src/operations/MachinesUpdate.ts +0 -2170
  491. package/src/operations/MachinesUpdateMetadata.ts +0 -47
  492. package/src/operations/MachinesUpsertMetadata.ts +0 -47
  493. package/src/operations/MachinesWait.ts +0 -79
  494. package/src/operations/PlatformPlacementsPost.ts +0 -80
  495. package/src/operations/PlatformRegionsGet.ts +0 -56
  496. package/src/operations/SecretCreate.ts +0 -51
  497. package/src/operations/SecretDelete.ts +0 -39
  498. package/src/operations/SecretGet.ts +0 -51
  499. package/src/operations/SecretkeyDecrypt.ts +0 -47
  500. package/src/operations/SecretkeyDelete.ts +0 -42
  501. package/src/operations/SecretkeyEncrypt.ts +0 -47
  502. package/src/operations/SecretkeyGenerate.ts +0 -57
  503. package/src/operations/SecretkeyGet.ts +0 -48
  504. package/src/operations/SecretkeySet.ts +0 -53
  505. package/src/operations/SecretkeySign.ts +0 -45
  506. package/src/operations/SecretkeyVerify.ts +0 -44
  507. package/src/operations/SecretkeysList.ts +0 -56
  508. package/src/operations/SecretsList.ts +0 -56
  509. package/src/operations/SecretsUpdate.ts +0 -56
  510. package/src/operations/TokensAuthenticate.ts +0 -54
  511. package/src/operations/TokensAuthorize.ts +0 -122
  512. package/src/operations/TokensRequestKms.ts +0 -27
  513. package/src/operations/TokensRequestOIDC.ts +0 -33
  514. package/src/operations/TokensRequest_Kms.ts +0 -24
  515. package/src/operations/TokensRequest_OIDC.ts +0 -26
  516. package/src/operations/VolumeDelete.ts +0 -81
  517. package/src/operations/VolumesCreate.ts +0 -128
  518. package/src/operations/VolumesExtend.ts +0 -94
  519. package/src/operations/VolumesGetById.ts +0 -81
  520. package/src/operations/VolumesList.ts +0 -83
  521. package/src/operations/VolumesListSnapshots.ts +0 -58
  522. package/src/operations/VolumesOrgList.ts +0 -115
  523. package/src/operations/VolumesUpdate.ts +0 -85
  524. package/src/operations/createVolumeSnapshot.ts +0 -40
  525. package/src/operations/index.ts +0 -76
  526. package/src/sensitive.ts +0 -4
@@ -0,0 +1,3087 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as T from "../traits.js";
5
+ import { FlyIoProtocol, } from "../protocol.js";
6
+ import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity, } from "../errors.js";
7
+ import * as Retry from "../retry.js";
8
+ export const AuthenticateTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
9
+ header: S.optional(S.String),
10
+ }).pipe(T.Http({ method: "POST", uri: "/v1/tokens/authenticate", code: 200 }))).annotate({
11
+ identifier: "AuthenticateTokenRequest",
12
+ });
13
+ export const MacaroonCaveatSetCaveatsList = /*@__PURE__*/ S.Array(S.Unknown);
14
+ export const MacaroonCaveatSet = /*@__PURE__*/ S.suspend(() => S.Struct({
15
+ caveats: S.optional(MacaroonCaveatSetCaveatsList),
16
+ })).annotate({
17
+ identifier: "MacaroonCaveatSet",
18
+ });
19
+ export const MacaroonNonceKidList = /*@__PURE__*/ S.Array(S.Number);
20
+ export const MacaroonNonceRndList = /*@__PURE__*/ S.Array(S.Number);
21
+ export const MacaroonNonce = /*@__PURE__*/ S.suspend(() => S.Struct({
22
+ kid: S.optional(MacaroonNonceKidList),
23
+ proof: S.optional(S.Boolean),
24
+ rnd: S.optional(MacaroonNonceRndList),
25
+ })).annotate({ identifier: "MacaroonNonce" });
26
+ export const RootVerifiedTokenPermissionTokenList = /*@__PURE__*/ S.Array(S.Number);
27
+ export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() => S.Struct({
28
+ caveats: S.optional(MacaroonCaveatSet),
29
+ header: S.optional(S.String),
30
+ nonce: S.optional(MacaroonNonce),
31
+ permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
32
+ })).annotate({
33
+ identifier: "RootVerifiedToken",
34
+ });
35
+ export const AuthenticateTokenResponseBodyList = /*@__PURE__*/ S.Array(RootVerifiedToken);
36
+ export const AuthenticateTokenResponse = /*@__PURE__*/ S.suspend(() => AuthenticateTokenResponseBodyList.pipe(T.RawResponseRoot())).annotate({
37
+ identifier: "AuthenticateTokenResponse",
38
+ });
39
+ export const RessetAction = S.Number;
40
+ export const MainTokenAccessCommandList = /*@__PURE__*/ S.Array(S.String);
41
+ export const MainTokenAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
42
+ action: S.optional(RessetAction),
43
+ app_feature: S.optional(S.String),
44
+ app_name: S.optional(S.String),
45
+ command: S.optional(MainTokenAccessCommandList),
46
+ machine_feature: S.optional(S.String),
47
+ machine_id: S.optional(S.String),
48
+ mutation: S.optional(S.String),
49
+ org_feature: S.optional(S.String),
50
+ org_slug: S.optional(S.String),
51
+ source_machine: S.optional(S.String),
52
+ storage_object: S.optional(S.String),
53
+ volume_id: S.optional(S.String),
54
+ })).annotate({
55
+ identifier: "MainTokenAccess",
56
+ });
57
+ export const AuthorizeTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
58
+ access: S.optional(MainTokenAccess),
59
+ header: S.optional(S.String),
60
+ }).pipe(T.Http({ method: "POST", uri: "/v1/tokens/authorize", code: 200 }))).annotate({
61
+ identifier: "AuthorizeTokenRequest",
62
+ });
63
+ export const FlyioAccessCommandList = /*@__PURE__*/ S.Array(S.String);
64
+ export const FlyioAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
65
+ action: S.optional(RessetAction),
66
+ app_feature: S.optional(S.String),
67
+ appid: S.optional(S.Number),
68
+ cluster: S.optional(S.String),
69
+ command: S.optional(FlyioAccessCommandList),
70
+ feature: S.optional(S.String),
71
+ machine: S.optional(S.String),
72
+ machine_feature: S.optional(S.String),
73
+ mutation: S.optional(S.String),
74
+ orgid: S.optional(S.Number),
75
+ sourceApp: S.optional(S.String),
76
+ sourceMachine: S.optional(S.String),
77
+ sourceOrganization: S.optional(S.String),
78
+ storage_object: S.optional(S.String),
79
+ volume: S.optional(S.String),
80
+ })).annotate({ identifier: "FlyioAccess" });
81
+ export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
82
+ access: S.optional(FlyioAccess),
83
+ verified_token: S.optional(RootVerifiedToken),
84
+ })).annotate({
85
+ identifier: "AuthorizeResponse",
86
+ });
87
+ export const CheckAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
88
+ app_name: S.String.pipe(T.Label()),
89
+ hostname: S.String.pipe(T.Label()),
90
+ }).pipe(T.Http({
91
+ method: "POST",
92
+ uri: "/v1/apps/{app_name}/certificates/{hostname}/check",
93
+ code: 200,
94
+ }))).annotate({
95
+ identifier: "CheckAppCertificateRequest",
96
+ });
97
+ export const IssuedCertificateType = S.String;
98
+ export const IssuedCertificate = /*@__PURE__*/ S.suspend(() => S.Struct({
99
+ certificate_authority: S.optional(S.String),
100
+ expires_at: S.optional(S.String),
101
+ type: S.optional(IssuedCertificateType),
102
+ })).annotate({
103
+ identifier: "IssuedCertificate",
104
+ });
105
+ export const CertificateEntryIssuedList = /*@__PURE__*/ S.Array(IssuedCertificate);
106
+ export const CertificateEntrySource = S.String;
107
+ export const CertificateEntryStatus = S.String;
108
+ export const CertificateEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
109
+ created_at: S.optional(S.String),
110
+ expires_at: S.optional(S.String),
111
+ issued: S.optional(CertificateEntryIssuedList),
112
+ issuer: S.optional(S.String),
113
+ source: S.optional(CertificateEntrySource),
114
+ status: S.optional(CertificateEntryStatus),
115
+ })).annotate({
116
+ identifier: "CertificateEntry",
117
+ });
118
+ export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
119
+ export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String);
120
+ export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(S.String);
121
+ export const DNSRecordsCnameList = /*@__PURE__*/ S.Array(S.String);
122
+ export const DNSRecordsResolvedAddressesList = /*@__PURE__*/ S.Array(S.String);
123
+ export const DNSRecords = /*@__PURE__*/ S.suspend(() => S.Struct({
124
+ a: S.optional(DNSRecordsAList),
125
+ aaaa: S.optional(DNSRecordsAaaaList),
126
+ acme_challenge_cname: S.optional(S.String),
127
+ cname: S.optional(DNSRecordsCnameList),
128
+ ownership_txt: S.optional(S.String),
129
+ resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
130
+ soa: S.optional(S.String),
131
+ })).annotate({ identifier: "DNSRecords" });
132
+ export const DNSRequirementsAList = /*@__PURE__*/ S.Array(S.String);
133
+ export const DNSRequirementsAaaaList = /*@__PURE__*/ S.Array(S.String);
134
+ export const AcmeChallenge = /*@__PURE__*/ S.suspend(() => S.Struct({
135
+ name: S.optional(S.String),
136
+ target: S.optional(S.String),
137
+ })).annotate({ identifier: "AcmeChallenge" });
138
+ export const OwnershipVerification = /*@__PURE__*/ S.suspend(() => S.Struct({
139
+ app_value: S.optional(S.String),
140
+ name: S.optional(S.String),
141
+ org_value: S.optional(S.String),
142
+ })).annotate({
143
+ identifier: "OwnershipVerification",
144
+ });
145
+ export const DNSRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
146
+ a: S.optional(DNSRequirementsAList),
147
+ aaaa: S.optional(DNSRequirementsAaaaList),
148
+ acme_challenge: S.optional(AcmeChallenge),
149
+ cname: S.optional(S.String),
150
+ ownership: S.optional(OwnershipVerification),
151
+ })).annotate({
152
+ identifier: "DNSRequirements",
153
+ });
154
+ export const CertificateValidation = /*@__PURE__*/ S.suspend(() => S.Struct({
155
+ alpn_configured: S.optional(S.Boolean),
156
+ dns_configured: S.optional(S.Boolean),
157
+ http_configured: S.optional(S.Boolean),
158
+ ownership_txt_configured: S.optional(S.Boolean),
159
+ })).annotate({
160
+ identifier: "CertificateValidation",
161
+ });
162
+ export const CertificateValidationError = /*@__PURE__*/ S.suspend(() => S.Struct({
163
+ code: S.optional(S.String),
164
+ message: S.optional(S.String),
165
+ remediation: S.optional(S.String),
166
+ timestamp: S.optional(S.String),
167
+ })).annotate({
168
+ identifier: "CertificateValidationError",
169
+ });
170
+ export const CertificateCheckResponseValidationErrorsList =
171
+ /*@__PURE__*/ S.Array(CertificateValidationError);
172
+ export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
173
+ acme_requested: S.optional(S.Boolean),
174
+ certificates: S.optional(CertificateCheckResponseCertificatesList),
175
+ configured: S.optional(S.Boolean),
176
+ dns_provider: S.optional(S.String),
177
+ dns_records: S.optional(DNSRecords),
178
+ dns_requirements: S.optional(DNSRequirements),
179
+ hostname: S.optional(S.String),
180
+ rate_limited_until: S.optional(S.String),
181
+ status: S.optional(S.String),
182
+ validation: S.optional(CertificateValidation),
183
+ validation_errors: S.optional(CertificateCheckResponseValidationErrorsList),
184
+ })).annotate({
185
+ identifier: "CertificateCheckResponse",
186
+ });
187
+ export const CordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
188
+ app_name: S.String.pipe(T.Label()),
189
+ machine_id: S.String.pipe(T.Label()),
190
+ }).pipe(T.Http({
191
+ method: "POST",
192
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/cordon",
193
+ code: 200,
194
+ }))).annotate({
195
+ identifier: "CordonMachineRequest",
196
+ });
197
+ export const CordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
198
+ identifier: "CordonMachineResponse",
199
+ });
200
+ export const CreateAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
201
+ enable_subdomains: S.optional(S.Boolean),
202
+ name: S.optional(S.String),
203
+ network: S.optional(S.String),
204
+ org_slug: S.optional(S.String),
205
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps", code: 200 }))).annotate({
206
+ identifier: "CreateAppRequest",
207
+ });
208
+ export const CreateAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
209
+ identifier: "CreateAppResponse",
210
+ });
211
+ export const CreateAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
212
+ app_name: S.String.pipe(T.Label()),
213
+ hostname: S.optional(S.String),
214
+ }).pipe(T.Http({
215
+ method: "POST",
216
+ uri: "/v1/apps/{app_name}/certificates/acme",
217
+ code: 200,
218
+ }))).annotate({
219
+ identifier: "CreateAppAcmeCertificateRequest",
220
+ });
221
+ export const CertificateDetailCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
222
+ export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
223
+ export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
224
+ acme_requested: S.optional(S.Boolean),
225
+ certificates: S.optional(CertificateDetailCertificatesList),
226
+ configured: S.optional(S.Boolean),
227
+ dns_provider: S.optional(S.String),
228
+ dns_requirements: S.optional(DNSRequirements),
229
+ hostname: S.optional(S.String),
230
+ rate_limited_until: S.optional(S.String),
231
+ status: S.optional(S.String),
232
+ validation: S.optional(CertificateValidation),
233
+ validation_errors: S.optional(CertificateDetailValidationErrorsList),
234
+ })).annotate({
235
+ identifier: "CertificateDetail",
236
+ });
237
+ export const CreateAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
238
+ app_name: S.String.pipe(T.Label()),
239
+ fullchain: S.optional(S.String),
240
+ hostname: S.optional(S.String),
241
+ private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
242
+ }).pipe(T.Http({
243
+ method: "POST",
244
+ uri: "/v1/apps/{app_name}/certificates/custom",
245
+ code: 200,
246
+ }))).annotate({
247
+ identifier: "CreateAppCustomCertificateRequest",
248
+ });
249
+ export const CreateAppDeployTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
250
+ app_name: S.String.pipe(T.Label()),
251
+ expiry: S.optional(S.String),
252
+ }).pipe(T.Http({
253
+ method: "POST",
254
+ uri: "/v1/apps/{app_name}/deploy_token",
255
+ code: 200,
256
+ }))).annotate({
257
+ identifier: "CreateAppDeployTokenRequest",
258
+ });
259
+ export const CreateAppDeployTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
260
+ token: S.optional(S.String),
261
+ })).annotate({
262
+ identifier: "CreateAppDeployTokenResponse",
263
+ });
264
+ export const IPAssignmentType = S.String;
265
+ export const CreateAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
266
+ app_name: S.String.pipe(T.Label()),
267
+ network: S.optional(S.String),
268
+ org_slug: S.optional(S.String),
269
+ region: S.optional(S.String),
270
+ service_name: S.optional(S.String),
271
+ type: S.optional(IPAssignmentType),
272
+ }).pipe(T.Http({
273
+ method: "POST",
274
+ uri: "/v1/apps/{app_name}/ip_assignments",
275
+ code: 200,
276
+ }))).annotate({
277
+ identifier: "CreateAppIPAssignmentRequest",
278
+ });
279
+ export const IPPair = /*@__PURE__*/ S.suspend(() => S.Struct({
280
+ v4: S.optional(S.String),
281
+ v6: S.optional(S.String),
282
+ })).annotate({ identifier: "IPPair" });
283
+ export const AssignIPResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
284
+ created_at: S.optional(S.String),
285
+ egress: S.optional(S.Boolean),
286
+ ip: S.optional(S.String),
287
+ ip_pair: S.optional(IPPair),
288
+ region: S.optional(S.String),
289
+ service_name: S.optional(S.String),
290
+ shared: S.optional(S.Boolean),
291
+ })).annotate({
292
+ identifier: "AssignIPResponse",
293
+ });
294
+ export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
295
+ size_mb: S.optional(S.Number),
296
+ })).annotate({
297
+ identifier: "FlyMachineCacheDrive",
298
+ });
299
+ export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
300
+ export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
301
+ name: S.optional(S.String),
302
+ values: S.optional(FlyMachineHTTPHeaderValuesList),
303
+ })).annotate({
304
+ identifier: "FlyMachineHTTPHeader",
305
+ });
306
+ export const FlyMachineCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
307
+ export const FlyMachineCheckKind = S.String;
308
+ export const FlyMachineCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
309
+ grace_period: S.optional(S.String),
310
+ headers: S.optional(FlyMachineCheckHeadersList),
311
+ interval: S.optional(S.String),
312
+ kind: S.optional(FlyMachineCheckKind),
313
+ method: S.optional(S.String),
314
+ path: S.optional(S.String),
315
+ port: S.optional(S.Number),
316
+ protocol: S.optional(S.String),
317
+ timeout: S.optional(S.String),
318
+ tls_server_name: S.optional(S.String),
319
+ tls_skip_verify: S.optional(S.Boolean),
320
+ type: S.optional(S.String),
321
+ })).annotate({
322
+ identifier: "FlyMachineCheck",
323
+ });
324
+ export const FlyMachineConfigChecksMap = /*@__PURE__*/ S.Record(S.String, FlyMachineCheck);
325
+ export const FlyContainerConfigCmdList = /*@__PURE__*/ S.Array(S.String);
326
+ export const FlyContainerDependencyCondition = S.String;
327
+ export const FlyContainerDependency = /*@__PURE__*/ S.suspend(() => S.Struct({
328
+ condition: S.optional(FlyContainerDependencyCondition),
329
+ name: S.optional(S.String),
330
+ })).annotate({
331
+ identifier: "FlyContainerDependency",
332
+ });
333
+ export const FlyContainerConfigDependsOnList = /*@__PURE__*/ S.Array(FlyContainerDependency);
334
+ export const FlyContainerConfigEntrypointList = /*@__PURE__*/ S.Array(S.String);
335
+ export const FlyContainerConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
336
+ export const FlyEnvFromFieldRef = S.String;
337
+ export const FlyEnvFrom = /*@__PURE__*/ S.suspend(() => S.Struct({
338
+ env_var: S.optional(S.String),
339
+ field_ref: S.optional(FlyEnvFromFieldRef),
340
+ })).annotate({ identifier: "FlyEnvFrom" });
341
+ export const FlyContainerConfigEnvFromList = /*@__PURE__*/ S.Array(FlyEnvFrom);
342
+ export const FlyContainerConfigExecList = /*@__PURE__*/ S.Array(S.String);
343
+ export const FlyFile = /*@__PURE__*/ S.suspend(() => S.Struct({
344
+ guest_path: S.optional(S.String),
345
+ image_config: S.optional(S.String),
346
+ mode: S.optional(S.Number),
347
+ raw_value: S.optional(S.String),
348
+ secret_name: S.optional(S.String),
349
+ })).annotate({ identifier: "FlyFile" });
350
+ export const FlyContainerConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
351
+ export const FlyExecHealthcheckCommandList = /*@__PURE__*/ S.Array(S.String);
352
+ export const FlyExecHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
353
+ command: S.optional(FlyExecHealthcheckCommandList),
354
+ })).annotate({
355
+ identifier: "FlyExecHealthcheck",
356
+ });
357
+ export const FlyHTTPHealthcheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
358
+ export const FlyContainerHealthcheckScheme = S.String;
359
+ export const FlyHTTPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
360
+ headers: S.optional(FlyHTTPHealthcheckHeadersList),
361
+ method: S.optional(S.String),
362
+ path: S.optional(S.String),
363
+ port: S.optional(S.Number),
364
+ scheme: S.optional(FlyContainerHealthcheckScheme),
365
+ tls_server_name: S.optional(S.String),
366
+ tls_skip_verify: S.optional(S.Boolean),
367
+ })).annotate({
368
+ identifier: "FlyHTTPHealthcheck",
369
+ });
370
+ export const FlyContainerHealthcheckKind = S.String;
371
+ export const FlyTCPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
372
+ port: S.optional(S.Number),
373
+ })).annotate({
374
+ identifier: "FlyTCPHealthcheck",
375
+ });
376
+ export const FlyUnhealthyPolicy = S.String;
377
+ export const FlyContainerHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
378
+ exec: S.optional(FlyExecHealthcheck),
379
+ failure_threshold: S.optional(S.Number),
380
+ grace_period: S.optional(S.Number),
381
+ http: S.optional(FlyHTTPHealthcheck),
382
+ interval: S.optional(S.Number),
383
+ kind: S.optional(FlyContainerHealthcheckKind),
384
+ name: S.optional(S.String),
385
+ success_threshold: S.optional(S.Number),
386
+ tcp: S.optional(FlyTCPHealthcheck),
387
+ timeout: S.optional(S.Number),
388
+ unhealthy: S.optional(FlyUnhealthyPolicy),
389
+ })).annotate({
390
+ identifier: "FlyContainerHealthcheck",
391
+ });
392
+ export const FlyContainerConfigHealthchecksList = /*@__PURE__*/ S.Array(FlyContainerHealthcheck);
393
+ export const FlyMachineRestartPolicy = S.String;
394
+ export const FlyMachineRestart = /*@__PURE__*/ S.suspend(() => S.Struct({
395
+ gpu_bid_price: S.optional(S.Number),
396
+ max_retries: S.optional(S.Number),
397
+ policy: S.optional(FlyMachineRestartPolicy),
398
+ })).annotate({
399
+ identifier: "FlyMachineRestart",
400
+ });
401
+ export const FlyMachineSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
402
+ env_var: S.optional(S.String),
403
+ name: S.optional(S.String),
404
+ })).annotate({
405
+ identifier: "FlyMachineSecret",
406
+ });
407
+ export const FlyContainerConfigSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
408
+ export const FlyStopConfigSignal = S.String;
409
+ export const FlyStopConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
410
+ signal: S.optional(FlyStopConfigSignal),
411
+ timeout: S.optional(S.String),
412
+ })).annotate({ identifier: "FlyStopConfig" });
413
+ export const FlyContainerConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
414
+ cmd: S.optional(FlyContainerConfigCmdList),
415
+ depends_on: S.optional(FlyContainerConfigDependsOnList),
416
+ entrypoint: S.optional(FlyContainerConfigEntrypointList),
417
+ env: S.optional(FlyContainerConfigEnvMap),
418
+ env_from: S.optional(FlyContainerConfigEnvFromList),
419
+ exec: S.optional(FlyContainerConfigExecList),
420
+ files: S.optional(FlyContainerConfigFilesList),
421
+ healthchecks: S.optional(FlyContainerConfigHealthchecksList),
422
+ image: S.optional(S.String),
423
+ name: S.optional(S.String),
424
+ restart: S.optional(FlyMachineRestart),
425
+ secrets: S.optional(FlyContainerConfigSecretsList),
426
+ stop: S.optional(FlyStopConfig),
427
+ user: S.optional(S.String),
428
+ })).annotate({
429
+ identifier: "FlyContainerConfig",
430
+ });
431
+ export const FlyMachineConfigContainersList = /*@__PURE__*/ S.Array(FlyContainerConfig);
432
+ export const FlyDnsForwardRule = /*@__PURE__*/ S.suspend(() => S.Struct({
433
+ addr: S.optional(S.String),
434
+ basename: S.optional(S.String),
435
+ })).annotate({
436
+ identifier: "FlyDnsForwardRule",
437
+ });
438
+ export const FlyDNSConfigDnsForwardRulesList = /*@__PURE__*/ S.Array(FlyDnsForwardRule);
439
+ export const FlyDNSConfigNameserversList = /*@__PURE__*/ S.Array(S.String);
440
+ export const FlyDnsOption = /*@__PURE__*/ S.suspend(() => S.Struct({
441
+ name: S.optional(S.String),
442
+ value: S.optional(S.String),
443
+ })).annotate({ identifier: "FlyDnsOption" });
444
+ export const FlyDNSConfigOptionsList = /*@__PURE__*/ S.Array(FlyDnsOption);
445
+ export const FlyDNSConfigSearchesList = /*@__PURE__*/ S.Array(S.String);
446
+ export const FlyDNSConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
447
+ dns_forward_rules: S.optional(FlyDNSConfigDnsForwardRulesList),
448
+ hostname: S.optional(S.String),
449
+ hostname_fqdn: S.optional(S.String),
450
+ nameservers: S.optional(FlyDNSConfigNameserversList),
451
+ options: S.optional(FlyDNSConfigOptionsList),
452
+ searches: S.optional(FlyDNSConfigSearchesList),
453
+ skip_registration: S.optional(S.Boolean),
454
+ })).annotate({ identifier: "FlyDNSConfig" });
455
+ export const FlyMachineConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
456
+ export const FlyMachineConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
457
+ export const FlyMachineGuestKernelArgsList = /*@__PURE__*/ S.Array(S.String);
458
+ export const FlyMachineGuestPersistRootfs = S.String;
459
+ export const FlyMachineGuest = /*@__PURE__*/ S.suspend(() => S.Struct({
460
+ cpu_kind: S.optional(S.String),
461
+ cpus: S.optional(S.Number),
462
+ gpu_kind: S.optional(S.String),
463
+ gpus: S.optional(S.Number),
464
+ host_dedication_id: S.optional(S.String),
465
+ kernel_args: S.optional(FlyMachineGuestKernelArgsList),
466
+ max_memory_mb: S.optional(S.Number),
467
+ memory_mb: S.optional(S.Number),
468
+ persist_rootfs: S.optional(FlyMachineGuestPersistRootfs),
469
+ })).annotate({
470
+ identifier: "FlyMachineGuest",
471
+ });
472
+ export const FlyMachineInitCmdList = /*@__PURE__*/ S.Array(S.String);
473
+ export const FlyMachineInitEntrypointList = /*@__PURE__*/ S.Array(S.String);
474
+ export const FlyMachineInitExecList = /*@__PURE__*/ S.Array(S.String);
475
+ export const FlyMachineInitKernelArgsList = /*@__PURE__*/ S.Array(S.String);
476
+ export const FlyMachineInit = /*@__PURE__*/ S.suspend(() => S.Struct({
477
+ cmd: S.optional(FlyMachineInitCmdList),
478
+ entrypoint: S.optional(FlyMachineInitEntrypointList),
479
+ exec: S.optional(FlyMachineInitExecList),
480
+ kernel_args: S.optional(FlyMachineInitKernelArgsList),
481
+ swap_size_mb: S.optional(S.Number),
482
+ tty: S.optional(S.Boolean),
483
+ })).annotate({ identifier: "FlyMachineInit" });
484
+ export const FlyMachineConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
485
+ export const FlyMachineMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
486
+ https: S.optional(S.Boolean),
487
+ path: S.optional(S.String),
488
+ port: S.optional(S.Number),
489
+ })).annotate({
490
+ identifier: "FlyMachineMetrics",
491
+ });
492
+ export const FlyMachineMount = /*@__PURE__*/ S.suspend(() => S.Struct({
493
+ add_size_gb: S.optional(S.Number),
494
+ encrypted: S.optional(S.Boolean),
495
+ extend_threshold_percent: S.optional(S.Number),
496
+ name: S.optional(S.String),
497
+ path: S.optional(S.String),
498
+ size_gb: S.optional(S.Number),
499
+ size_gb_limit: S.optional(S.Number),
500
+ volume: S.optional(S.String),
501
+ })).annotate({
502
+ identifier: "FlyMachineMount",
503
+ });
504
+ export const FlyMachineConfigMountsList = /*@__PURE__*/ S.Array(FlyMachineMount);
505
+ export const FlyMachineProcessCmdList = /*@__PURE__*/ S.Array(S.String);
506
+ export const FlyMachineProcessEntrypointList = /*@__PURE__*/ S.Array(S.String);
507
+ export const FlyMachineProcessEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
508
+ export const FlyMachineProcessEnvFromList = /*@__PURE__*/ S.Array(FlyEnvFrom);
509
+ export const FlyMachineProcessExecList = /*@__PURE__*/ S.Array(S.String);
510
+ export const FlyMachineProcessSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
511
+ export const FlyMachineProcess = /*@__PURE__*/ S.suspend(() => S.Struct({
512
+ cmd: S.optional(FlyMachineProcessCmdList),
513
+ entrypoint: S.optional(FlyMachineProcessEntrypointList),
514
+ env: S.optional(FlyMachineProcessEnvMap),
515
+ env_from: S.optional(FlyMachineProcessEnvFromList),
516
+ exec: S.optional(FlyMachineProcessExecList),
517
+ ignore_app_secrets: S.optional(S.Boolean),
518
+ secrets: S.optional(FlyMachineProcessSecretsList),
519
+ user: S.optional(S.String),
520
+ })).annotate({
521
+ identifier: "FlyMachineProcess",
522
+ });
523
+ export const FlyMachineConfigProcessesList = /*@__PURE__*/ S.Array(FlyMachineProcess);
524
+ export const FlyMachineRootfsPersist = S.String;
525
+ export const FlyMachineRootfs = /*@__PURE__*/ S.suspend(() => S.Struct({
526
+ persist: S.optional(FlyMachineRootfsPersist),
527
+ size_gb: S.optional(S.Number),
528
+ })).annotate({
529
+ identifier: "FlyMachineRootfs",
530
+ });
531
+ export const FlyMachineServiceAutostop = S.String;
532
+ export const FlyMachineServiceCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
533
+ export const FlyMachineServiceCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
534
+ grace_period: S.optional(S.String),
535
+ headers: S.optional(FlyMachineServiceCheckHeadersList),
536
+ interval: S.optional(S.String),
537
+ method: S.optional(S.String),
538
+ path: S.optional(S.String),
539
+ port: S.optional(S.Number),
540
+ protocol: S.optional(S.String),
541
+ timeout: S.optional(S.String),
542
+ tls_server_name: S.optional(S.String),
543
+ tls_skip_verify: S.optional(S.Boolean),
544
+ type: S.optional(S.String),
545
+ })).annotate({
546
+ identifier: "FlyMachineServiceCheck",
547
+ });
548
+ export const FlyMachineServiceChecksList = /*@__PURE__*/ S.Array(FlyMachineServiceCheck);
549
+ export const FlyMachineServiceConcurrency = /*@__PURE__*/ S.suspend(() => S.Struct({
550
+ hard_limit: S.optional(S.Number),
551
+ soft_limit: S.optional(S.Number),
552
+ type: S.optional(S.String),
553
+ })).annotate({
554
+ identifier: "FlyMachineServiceConcurrency",
555
+ });
556
+ export const FlyMachinePortHandlersList = /*@__PURE__*/ S.Array(S.String);
557
+ export const FlyReplayCacheType = S.String;
558
+ export const FlyReplayCache = /*@__PURE__*/ S.suspend(() => S.Struct({
559
+ allow_bypass: S.optional(S.Boolean),
560
+ name: S.optional(S.String),
561
+ path_prefix: S.optional(S.String),
562
+ ttl_seconds: S.optional(S.Number),
563
+ type: S.optional(FlyReplayCacheType),
564
+ })).annotate({ identifier: "FlyReplayCache" });
565
+ export const FlyHTTPOptionsReplayCacheList = /*@__PURE__*/ S.Array(FlyReplayCache);
566
+ export const FlyHTTPResponseOptionsHeadersMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
567
+ export const FlyHTTPResponseOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
568
+ headers: S.optional(FlyHTTPResponseOptionsHeadersMap),
569
+ pristine: S.optional(S.Boolean),
570
+ })).annotate({
571
+ identifier: "FlyHTTPResponseOptions",
572
+ });
573
+ export const FlyHTTPOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
574
+ compress: S.optional(S.Boolean),
575
+ h2_backend: S.optional(S.Boolean),
576
+ headers_read_timeout: S.optional(S.Number),
577
+ idle_timeout: S.optional(S.Number),
578
+ replay_cache: S.optional(FlyHTTPOptionsReplayCacheList),
579
+ response: S.optional(FlyHTTPResponseOptions),
580
+ })).annotate({ identifier: "FlyHTTPOptions" });
581
+ export const FlyProxyProtoOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
582
+ version: S.optional(S.String),
583
+ })).annotate({
584
+ identifier: "FlyProxyProtoOptions",
585
+ });
586
+ export const FlyTLSOptionsAlpnList = /*@__PURE__*/ S.Array(S.String);
587
+ export const FlyTLSOptionsVersionsList = /*@__PURE__*/ S.Array(S.String);
588
+ export const FlyTLSOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
589
+ alpn: S.optional(FlyTLSOptionsAlpnList),
590
+ default_self_signed: S.optional(S.Boolean),
591
+ versions: S.optional(FlyTLSOptionsVersionsList),
592
+ })).annotate({ identifier: "FlyTLSOptions" });
593
+ export const FlyMachinePort = /*@__PURE__*/ S.suspend(() => S.Struct({
594
+ end_port: S.optional(S.Number),
595
+ force_https: S.optional(S.Boolean),
596
+ handlers: S.optional(FlyMachinePortHandlersList),
597
+ http_options: S.optional(FlyHTTPOptions),
598
+ port: S.optional(S.Number),
599
+ proxy_proto_options: S.optional(FlyProxyProtoOptions),
600
+ start_port: S.optional(S.Number),
601
+ tls_options: S.optional(FlyTLSOptions),
602
+ })).annotate({ identifier: "FlyMachinePort" });
603
+ export const FlyMachineServicePortsList = /*@__PURE__*/ S.Array(FlyMachinePort);
604
+ export const FlyMachineService = /*@__PURE__*/ S.suspend(() => S.Struct({
605
+ autostart: S.optional(S.Boolean),
606
+ autostop: S.optional(FlyMachineServiceAutostop),
607
+ checks: S.optional(FlyMachineServiceChecksList),
608
+ concurrency: S.optional(FlyMachineServiceConcurrency),
609
+ force_instance_description: S.optional(S.String),
610
+ force_instance_key: S.optional(S.String),
611
+ internal_port: S.optional(S.Number),
612
+ min_machines_running: S.optional(S.Number),
613
+ ports: S.optional(FlyMachineServicePortsList),
614
+ protocol: S.optional(S.String),
615
+ })).annotate({
616
+ identifier: "FlyMachineService",
617
+ });
618
+ export const FlyMachineConfigServicesList = /*@__PURE__*/ S.Array(FlyMachineService);
619
+ export const FlyMachineSpot = /*@__PURE__*/ S.suspend(() => S.Struct({
620
+ max_price_fraction: S.optional(S.Number),
621
+ })).annotate({ identifier: "FlyMachineSpot" });
622
+ export const FlyMachineConfigStandbysList = /*@__PURE__*/ S.Array(S.String);
623
+ export const FlyStatic = /*@__PURE__*/ S.suspend(() => S.Struct({
624
+ guest_path: S.String,
625
+ index_document: S.optional(S.String),
626
+ tigris_bucket: S.optional(S.String),
627
+ url_prefix: S.String,
628
+ })).annotate({ identifier: "FlyStatic" });
629
+ export const FlyMachineConfigStaticsList = /*@__PURE__*/ S.Array(FlyStatic);
630
+ export const FlyMachineConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
631
+ auto_destroy: S.optional(S.Boolean),
632
+ cache_drive: S.optional(FlyMachineCacheDrive),
633
+ checks: S.optional(FlyMachineConfigChecksMap),
634
+ containers: S.optional(FlyMachineConfigContainersList),
635
+ disable_machine_autostart: S.optional(S.Boolean),
636
+ dns: S.optional(FlyDNSConfig),
637
+ env: S.optional(FlyMachineConfigEnvMap),
638
+ files: S.optional(FlyMachineConfigFilesList),
639
+ guest: S.optional(FlyMachineGuest),
640
+ image: S.optional(S.String),
641
+ init: S.optional(FlyMachineInit),
642
+ metadata: S.optional(FlyMachineConfigMetadataMap),
643
+ metrics: S.optional(FlyMachineMetrics),
644
+ mounts: S.optional(FlyMachineConfigMountsList),
645
+ processes: S.optional(FlyMachineConfigProcessesList),
646
+ restart: S.optional(FlyMachineRestart),
647
+ rootfs: S.optional(FlyMachineRootfs),
648
+ schedule: S.optional(S.String),
649
+ services: S.optional(FlyMachineConfigServicesList),
650
+ size: S.optional(S.String),
651
+ spot: S.optional(FlyMachineSpot),
652
+ standbys: S.optional(FlyMachineConfigStandbysList),
653
+ statics: S.optional(FlyMachineConfigStaticsList),
654
+ stop_config: S.optional(FlyStopConfig),
655
+ })).annotate({
656
+ identifier: "FlyMachineConfig",
657
+ });
658
+ export const CreateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
659
+ app_name: S.String.pipe(T.Label()),
660
+ config: S.optional(FlyMachineConfig),
661
+ lease_ttl: S.optional(S.Number),
662
+ min_secrets_version: S.optional(S.Number),
663
+ name: S.optional(S.String),
664
+ region: S.optional(S.String),
665
+ skip_launch: S.optional(S.Boolean),
666
+ skip_secrets: S.optional(S.Boolean),
667
+ skip_service_registration: S.optional(S.Boolean),
668
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/machines", code: 200 }))).annotate({
669
+ identifier: "CreateMachineRequest",
670
+ });
671
+ export const CheckStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
672
+ name: S.optional(S.String),
673
+ output: S.optional(S.String),
674
+ status: S.optional(S.String),
675
+ updated_at: S.optional(S.String),
676
+ })).annotate({ identifier: "CheckStatus" });
677
+ export const MachineChecksList = /*@__PURE__*/ S.Array(CheckStatus);
678
+ export const MachineEvent = /*@__PURE__*/ S.suspend(() => S.Struct({
679
+ id: S.optional(S.String),
680
+ request: S.optional(S.Unknown),
681
+ source: S.optional(S.String),
682
+ status: S.optional(S.String),
683
+ timestamp: S.optional(S.Number),
684
+ type: S.optional(S.String),
685
+ })).annotate({ identifier: "MachineEvent" });
686
+ export const MachineEventsList = /*@__PURE__*/ S.Array(MachineEvent);
687
+ export const MachineHostStatus = S.String;
688
+ export const ImageRefLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
689
+ export const ImageRef = /*@__PURE__*/ S.suspend(() => S.Struct({
690
+ digest: S.optional(S.String),
691
+ labels: S.optional(ImageRefLabelsMap),
692
+ registry: S.optional(S.String),
693
+ repository: S.optional(S.String),
694
+ tag: S.optional(S.String),
695
+ })).annotate({ identifier: "ImageRef" });
696
+ export const StrippedLease = /*@__PURE__*/ S.suspend(() => S.Struct({
697
+ description: S.optional(S.String),
698
+ expires_at: S.optional(S.Number),
699
+ owner: S.optional(S.String),
700
+ })).annotate({ identifier: "StrippedLease" });
701
+ export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
702
+ checks: S.optional(MachineChecksList),
703
+ config: S.optional(FlyMachineConfig),
704
+ cordoned: S.optional(S.Boolean),
705
+ created_at: S.optional(S.String),
706
+ events: S.optional(MachineEventsList),
707
+ host_status: S.optional(MachineHostStatus),
708
+ id: S.optional(S.String),
709
+ image_ref: S.optional(ImageRef),
710
+ incomplete_config: S.optional(FlyMachineConfig),
711
+ instance_id: S.optional(S.String),
712
+ lease: S.optional(StrippedLease),
713
+ name: S.optional(S.String),
714
+ nonce: S.optional(S.String),
715
+ private_ip: S.optional(S.String),
716
+ region: S.optional(S.String),
717
+ state: S.optional(S.String),
718
+ updated_at: S.optional(S.String),
719
+ })).annotate({ identifier: "Machine" });
720
+ export const CreateMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
721
+ app_name: S.String.pipe(T.Label()),
722
+ machine_id: S.String.pipe(T.Label()),
723
+ description: S.optional(S.String),
724
+ ttl: S.optional(S.Number),
725
+ }).pipe(T.Http({
726
+ method: "POST",
727
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
728
+ code: 200,
729
+ }))).annotate({
730
+ identifier: "CreateMachineLeaseRequest",
731
+ });
732
+ export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
733
+ description: S.optional(S.String),
734
+ expires_at: S.optional(S.Number),
735
+ nonce: S.optional(S.String),
736
+ owner: S.optional(S.String),
737
+ version: S.optional(S.String),
738
+ })).annotate({ identifier: "Lease" });
739
+ export const CreatePostgresRequestPgMajorVersion = S.String;
740
+ export const CreatePostgresRequestPlan = S.String;
741
+ export const CreatePostgresRequestPoolMode = S.String;
742
+ export const CreatePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
743
+ disk_size_gb: S.optional(S.Number),
744
+ name: S.optional(S.String),
745
+ org_slug: S.String,
746
+ pg_major_version: S.optional(CreatePostgresRequestPgMajorVersion),
747
+ plan: CreatePostgresRequestPlan,
748
+ pool_mode: S.optional(CreatePostgresRequestPoolMode),
749
+ postgis_enabled: S.optional(S.Boolean),
750
+ region: S.String,
751
+ }).pipe(T.Http({ method: "POST", uri: "/v1/postgres", code: 200 }))).annotate({
752
+ identifier: "CreatePostgresRequest",
753
+ });
754
+ export const PostgresAttachedApp = /*@__PURE__*/ S.suspend(() => S.Struct({
755
+ name: S.optional(S.String),
756
+ })).annotate({
757
+ identifier: "PostgresAttachedApp",
758
+ });
759
+ export const PostgresClusterAttachedAppsList = /*@__PURE__*/ S.Array(PostgresAttachedApp);
760
+ export const PostgresClusterCpuKind = S.String;
761
+ export const PostgresEndpoint = /*@__PURE__*/ S.suspend(() => S.Struct({
762
+ host: S.optional(S.String),
763
+ port: S.optional(S.Number),
764
+ })).annotate({
765
+ identifier: "PostgresEndpoint",
766
+ });
767
+ export const PostgresNodeEndpoints = /*@__PURE__*/ S.suspend(() => S.Struct({
768
+ direct: S.optional(PostgresEndpoint),
769
+ pooler: S.optional(PostgresEndpoint),
770
+ })).annotate({
771
+ identifier: "PostgresNodeEndpoints",
772
+ });
773
+ export const PostgresClusterEndpoints = /*@__PURE__*/ S.suspend(() => S.Struct({
774
+ primary: S.optional(PostgresNodeEndpoints),
775
+ })).annotate({
776
+ identifier: "PostgresClusterEndpoints",
777
+ });
778
+ export const OrganizationRef = /*@__PURE__*/ S.suspend(() => S.Struct({
779
+ name: S.optional(S.String),
780
+ slug: S.optional(S.String),
781
+ })).annotate({
782
+ identifier: "OrganizationRef",
783
+ });
784
+ export const PostgresClusterPgMajorVersion = S.String;
785
+ export const PostgresClusterPlan = S.String;
786
+ export const PostgresClusterStatus = S.String;
787
+ export const PostgresCluster = /*@__PURE__*/ S.suspend(() => S.Struct({
788
+ attached_apps: S.optional(PostgresClusterAttachedAppsList),
789
+ cpu_kind: S.optional(PostgresClusterCpuKind),
790
+ cpus: S.optional(S.Number),
791
+ created_at: S.optional(S.String),
792
+ disk_size_gb: S.optional(S.Number),
793
+ endpoints: S.optional(PostgresClusterEndpoints),
794
+ id: S.optional(S.String),
795
+ memory_mb: S.optional(S.Number),
796
+ name: S.optional(S.String),
797
+ organization: S.optional(OrganizationRef),
798
+ pg_major_version: S.optional(PostgresClusterPgMajorVersion),
799
+ plan: S.optional(PostgresClusterPlan),
800
+ postgis_enabled: S.optional(S.Boolean),
801
+ region: S.optional(S.String),
802
+ replicas: S.optional(S.Number),
803
+ status: S.optional(PostgresClusterStatus),
804
+ })).annotate({
805
+ identifier: "PostgresCluster",
806
+ });
807
+ export const ShowPostgresClusterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
808
+ data: S.optional(PostgresCluster),
809
+ })).annotate({
810
+ identifier: "ShowPostgresClusterResponse",
811
+ });
812
+ export const CreatePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
813
+ postgres_cluster_id: S.String.pipe(T.Label()),
814
+ app_name: S.String,
815
+ }).pipe(T.Http({
816
+ method: "POST",
817
+ uri: "/v1/postgres/{postgres_cluster_id}/attachments",
818
+ code: 200,
819
+ }))).annotate({
820
+ identifier: "CreatePostgresAttachmentRequest",
821
+ });
822
+ export const PostgresAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({
823
+ app_name: S.optional(S.String),
824
+ attached_at: S.optional(S.String),
825
+ postgres_cluster_id: S.optional(S.String),
826
+ })).annotate({
827
+ identifier: "PostgresAttachment",
828
+ });
829
+ export const CreatePostgresAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
830
+ data: S.optional(PostgresAttachment),
831
+ })).annotate({
832
+ identifier: "CreatePostgresAttachmentResponse",
833
+ });
834
+ export const CreatePostgresBackupRequestType = S.String;
835
+ export const CreatePostgresBackupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
836
+ postgres_cluster_id: S.String.pipe(T.Label()),
837
+ type: CreatePostgresBackupRequestType,
838
+ }).pipe(T.Http({
839
+ method: "POST",
840
+ uri: "/v1/postgres/{postgres_cluster_id}/backups",
841
+ code: 200,
842
+ }))).annotate({
843
+ identifier: "CreatePostgresBackupRequest",
844
+ });
845
+ export const CreatePostgresBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
846
+ identifier: "CreatePostgresBackupResponse",
847
+ });
848
+ export const CreatePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
849
+ postgres_cluster_id: S.String.pipe(T.Label()),
850
+ name: S.String,
851
+ }).pipe(T.Http({
852
+ method: "POST",
853
+ uri: "/v1/postgres/{postgres_cluster_id}/databases",
854
+ code: 200,
855
+ }))).annotate({
856
+ identifier: "CreatePostgresDatabaseRequest",
857
+ });
858
+ export const PostgresDatabase = /*@__PURE__*/ S.suspend(() => S.Struct({
859
+ name: S.optional(S.String),
860
+ })).annotate({
861
+ identifier: "PostgresDatabase",
862
+ });
863
+ export const PostgresDatabaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
864
+ data: S.optional(PostgresDatabase),
865
+ })).annotate({
866
+ identifier: "PostgresDatabaseResponse",
867
+ });
868
+ export const CreatePostgresUserRequestRole = S.String;
869
+ export const CreatePostgresUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
870
+ postgres_cluster_id: S.String.pipe(T.Label()),
871
+ role: CreatePostgresUserRequestRole,
872
+ username: S.String,
873
+ }).pipe(T.Http({
874
+ method: "POST",
875
+ uri: "/v1/postgres/{postgres_cluster_id}/users",
876
+ code: 200,
877
+ }))).annotate({
878
+ identifier: "CreatePostgresUserRequest",
879
+ });
880
+ export const PostgresUserRole = S.String;
881
+ export const PostgresUser = /*@__PURE__*/ S.suspend(() => S.Struct({
882
+ role: S.optional(PostgresUserRole),
883
+ username: S.optional(S.String),
884
+ })).annotate({ identifier: "PostgresUser" });
885
+ export const CreatePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
886
+ data: S.optional(PostgresUser),
887
+ })).annotate({
888
+ identifier: "CreatePostgresUserResponse",
889
+ });
890
+ export const CreateSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
891
+ app_name: S.String.pipe(T.Label()),
892
+ secret_name: S.String.pipe(T.Label()),
893
+ value: S.optional(S.String),
894
+ }).pipe(T.Http({
895
+ method: "POST",
896
+ uri: "/v1/apps/{app_name}/secrets/{secret_name}",
897
+ code: 200,
898
+ }))).annotate({
899
+ identifier: "CreateSecretRequest",
900
+ });
901
+ export const SetAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
902
+ Version: S.optional(S.Number),
903
+ created_at: S.optional(S.String),
904
+ digest: S.optional(S.String),
905
+ name: S.optional(S.String),
906
+ updated_at: S.optional(S.String),
907
+ value: S.optional(S.String),
908
+ version: S.optional(S.Number),
909
+ })).annotate({
910
+ identifier: "SetAppSecretResponse",
911
+ });
912
+ export const CreateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
913
+ app_name: S.String.pipe(T.Label()),
914
+ auto_backup_enabled: S.optional(S.Boolean),
915
+ compute: S.optional(FlyMachineGuest),
916
+ compute_image: S.optional(S.String),
917
+ encrypted: S.optional(S.Boolean),
918
+ fstype: S.optional(S.String),
919
+ name: S.optional(S.String),
920
+ region: S.optional(S.String),
921
+ require_unique_zone: S.optional(S.Boolean),
922
+ size_gb: S.optional(S.Number),
923
+ snapshot_id: S.optional(S.String),
924
+ snapshot_retention: S.optional(S.Number),
925
+ source_volume_id: S.optional(S.String),
926
+ unique_zone_app_wide: S.optional(S.Boolean),
927
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/volumes", code: 200 }))).annotate({
928
+ identifier: "CreateVolumeRequest",
929
+ });
930
+ export const VolumeHostStatus = S.String;
931
+ export const VolumeType = S.String;
932
+ export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
933
+ attached_alloc_id: S.optional(S.String),
934
+ attached_machine_id: S.optional(S.String),
935
+ auto_backup_enabled: S.optional(S.Boolean),
936
+ block_size: S.optional(S.Number),
937
+ blocks: S.optional(S.Number),
938
+ blocks_avail: S.optional(S.Number),
939
+ blocks_free: S.optional(S.Number),
940
+ bytes_total: S.optional(S.Number),
941
+ bytes_used: S.optional(S.Number),
942
+ created_at: S.optional(S.String),
943
+ encrypted: S.optional(S.Boolean),
944
+ fstype: S.optional(S.String),
945
+ host_status: S.optional(VolumeHostStatus),
946
+ id: S.optional(S.String),
947
+ name: S.optional(S.String),
948
+ region: S.optional(S.String),
949
+ size_gb: S.optional(S.Number),
950
+ snapshot_retention: S.optional(S.Number),
951
+ state: S.optional(S.String),
952
+ type: S.optional(VolumeType),
953
+ zone: S.optional(S.String),
954
+ })).annotate({ identifier: "Volume" });
955
+ export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
956
+ app_name: S.String.pipe(T.Label()),
957
+ volume_id: S.String.pipe(T.Label()),
958
+ }).pipe(T.Http({
959
+ method: "POST",
960
+ uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots",
961
+ code: 200,
962
+ }))).annotate({
963
+ identifier: "CreateVolumeSnapshotRequest",
964
+ });
965
+ export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
966
+ identifier: "CreateVolumeSnapshotResponse",
967
+ });
968
+ export const DecryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
969
+ app_name: S.String.pipe(T.Label()),
970
+ secret_name: S.String.pipe(T.Label()),
971
+ min_version: S.optional(S.String.pipe(T.Query())),
972
+ associated_data: S.optional(S.String),
973
+ ciphertext: S.optional(S.String),
974
+ }).pipe(T.Http({
975
+ method: "POST",
976
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/decrypt",
977
+ code: 200,
978
+ }))).annotate({
979
+ identifier: "DecryptSecretKeyRequest",
980
+ });
981
+ export const DecryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
982
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
983
+ })).annotate({
984
+ identifier: "DecryptSecretkeyResponse",
985
+ });
986
+ export const DeleteAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
987
+ app_name: S.String.pipe(T.Label()),
988
+ }).pipe(T.Http({ method: "DELETE", uri: "/v1/apps/{app_name}", code: 200 }))).annotate({
989
+ identifier: "DeleteAppRequest",
990
+ });
991
+ export const DeleteAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
992
+ identifier: "DeleteAppResponse",
993
+ });
994
+ export const DeleteAppAcmeCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
995
+ app_name: S.String.pipe(T.Label()),
996
+ hostname: S.String.pipe(T.Label()),
997
+ }).pipe(T.Http({
998
+ method: "DELETE",
999
+ uri: "/v1/apps/{app_name}/certificates/{hostname}/acme",
1000
+ code: 200,
1001
+ }))).annotate({
1002
+ identifier: "DeleteAppAcmeCertificateRequest",
1003
+ });
1004
+ export const DeleteAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1005
+ app_name: S.String.pipe(T.Label()),
1006
+ hostname: S.String.pipe(T.Label()),
1007
+ }).pipe(T.Http({
1008
+ method: "DELETE",
1009
+ uri: "/v1/apps/{app_name}/certificates/{hostname}",
1010
+ code: 200,
1011
+ }))).annotate({
1012
+ identifier: "DeleteAppCertificateRequest",
1013
+ });
1014
+ export const DeleteAppCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1015
+ identifier: "DeleteAppCertificateResponse",
1016
+ });
1017
+ export const DeleteAppCustomCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1018
+ app_name: S.String.pipe(T.Label()),
1019
+ hostname: S.String.pipe(T.Label()),
1020
+ }).pipe(T.Http({
1021
+ method: "DELETE",
1022
+ uri: "/v1/apps/{app_name}/certificates/{hostname}/custom",
1023
+ code: 200,
1024
+ }))).annotate({
1025
+ identifier: "DeleteAppCustomCertificateRequest",
1026
+ });
1027
+ export const DestroyCustomCertificateResponseCertificatesList =
1028
+ /*@__PURE__*/ S.Array(CertificateEntry);
1029
+ export const DestroyCustomCertificateResponseValidationErrorsList =
1030
+ /*@__PURE__*/ S.Array(CertificateValidationError);
1031
+ export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1032
+ acme_requested: S.optional(S.Boolean),
1033
+ certificates: S.optional(DestroyCustomCertificateResponseCertificatesList),
1034
+ configured: S.optional(S.Boolean),
1035
+ dns_provider: S.optional(S.String),
1036
+ dns_requirements: S.optional(DNSRequirements),
1037
+ hostname: S.optional(S.String),
1038
+ rate_limited_until: S.optional(S.String),
1039
+ status: S.optional(S.String),
1040
+ validation: S.optional(CertificateValidation),
1041
+ validation_errors: S.optional(DestroyCustomCertificateResponseValidationErrorsList),
1042
+ warning: S.optional(S.String),
1043
+ })).annotate({
1044
+ identifier: "DestroyCustomCertificateResponse",
1045
+ });
1046
+ export const DeleteAppIPAssignmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1047
+ app_name: S.String.pipe(T.Label()),
1048
+ ip: S.String.pipe(T.Label()),
1049
+ }).pipe(T.Http({
1050
+ method: "DELETE",
1051
+ uri: "/v1/apps/{app_name}/ip_assignments/{ip}",
1052
+ code: 200,
1053
+ }))).annotate({
1054
+ identifier: "DeleteAppIPAssignmentRequest",
1055
+ });
1056
+ export const DeleteAppIPAssignmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1057
+ identifier: "DeleteAppIPAssignmentResponse",
1058
+ });
1059
+ export const DeleteMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1060
+ app_name: S.String.pipe(T.Label()),
1061
+ machine_id: S.String.pipe(T.Label()),
1062
+ force: S.optional(S.Boolean.pipe(T.Query())),
1063
+ }).pipe(T.Http({
1064
+ method: "DELETE",
1065
+ uri: "/v1/apps/{app_name}/machines/{machine_id}",
1066
+ code: 200,
1067
+ }))).annotate({
1068
+ identifier: "DeleteMachineRequest",
1069
+ });
1070
+ export const DeleteMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1071
+ identifier: "DeleteMachineResponse",
1072
+ });
1073
+ export const DeleteMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1074
+ app_name: S.String.pipe(T.Label()),
1075
+ machine_id: S.String.pipe(T.Label()),
1076
+ key: S.String.pipe(T.Label()),
1077
+ }).pipe(T.Http({
1078
+ method: "DELETE",
1079
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
1080
+ code: 200,
1081
+ }))).annotate({
1082
+ identifier: "DeleteMachineMetadataRequest",
1083
+ });
1084
+ export const DeleteMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1085
+ identifier: "DeleteMachineMetadataResponse",
1086
+ });
1087
+ export const DeletePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1088
+ postgres_cluster_id: S.String.pipe(T.Label()),
1089
+ }).pipe(T.Http({
1090
+ method: "DELETE",
1091
+ uri: "/v1/postgres/{postgres_cluster_id}",
1092
+ code: 200,
1093
+ }))).annotate({
1094
+ identifier: "DeletePostgresRequest",
1095
+ });
1096
+ export const DeletePostgresResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1097
+ identifier: "DeletePostgresResponse",
1098
+ });
1099
+ export const DeletePostgresAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1100
+ postgres_cluster_id: S.String.pipe(T.Label()),
1101
+ app_name: S.String.pipe(T.Label()),
1102
+ }).pipe(T.Http({
1103
+ method: "DELETE",
1104
+ uri: "/v1/postgres/{postgres_cluster_id}/attachments/{app_name}",
1105
+ code: 200,
1106
+ }))).annotate({
1107
+ identifier: "DeletePostgresAttachmentRequest",
1108
+ });
1109
+ export const DeletePostgresAttachmentResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1110
+ identifier: "DeletePostgresAttachmentResponse",
1111
+ });
1112
+ export const DeletePostgresDatabaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1113
+ postgres_cluster_id: S.String.pipe(T.Label()),
1114
+ database_name: S.String.pipe(T.Label()),
1115
+ }).pipe(T.Http({
1116
+ method: "DELETE",
1117
+ uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}",
1118
+ code: 200,
1119
+ }))).annotate({
1120
+ identifier: "DeletePostgresDatabaseRequest",
1121
+ });
1122
+ export const DeletePostgresUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1123
+ postgres_cluster_id: S.String.pipe(T.Label()),
1124
+ username: S.String.pipe(T.Label()),
1125
+ }).pipe(T.Http({
1126
+ method: "DELETE",
1127
+ uri: "/v1/postgres/{postgres_cluster_id}/users/{username}",
1128
+ code: 200,
1129
+ }))).annotate({
1130
+ identifier: "DeletePostgresUserRequest",
1131
+ });
1132
+ export const DeletePostgresUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1133
+ identifier: "DeletePostgresUserResponse",
1134
+ });
1135
+ export const DeleteSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1136
+ app_name: S.String.pipe(T.Label()),
1137
+ secret_name: S.String.pipe(T.Label()),
1138
+ }).pipe(T.Http({
1139
+ method: "DELETE",
1140
+ uri: "/v1/apps/{app_name}/secrets/{secret_name}",
1141
+ code: 200,
1142
+ }))).annotate({
1143
+ identifier: "DeleteSecretRequest",
1144
+ });
1145
+ export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1146
+ Version: S.optional(S.Number),
1147
+ version: S.optional(S.Number),
1148
+ })).annotate({
1149
+ identifier: "DeleteAppSecretResponse",
1150
+ });
1151
+ export const DeleteSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1152
+ app_name: S.String.pipe(T.Label()),
1153
+ secret_name: S.String.pipe(T.Label()),
1154
+ }).pipe(T.Http({
1155
+ method: "DELETE",
1156
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
1157
+ code: 200,
1158
+ }))).annotate({
1159
+ identifier: "DeleteSecretKeyRequest",
1160
+ });
1161
+ export const DeleteSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1162
+ Version: S.optional(S.Number),
1163
+ version: S.optional(S.Number),
1164
+ })).annotate({
1165
+ identifier: "DeleteSecretkeyResponse",
1166
+ });
1167
+ export const DeleteVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1168
+ app_name: S.String.pipe(T.Label()),
1169
+ volume_id: S.String.pipe(T.Label()),
1170
+ }).pipe(T.Http({
1171
+ method: "DELETE",
1172
+ uri: "/v1/apps/{app_name}/volumes/{volume_id}",
1173
+ code: 200,
1174
+ }))).annotate({
1175
+ identifier: "DeleteVolumeRequest",
1176
+ });
1177
+ export const DisablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1178
+ postgres_cluster_id: S.String.pipe(T.Label()),
1179
+ database_name: S.String.pipe(T.Label()),
1180
+ extension_name: S.String.pipe(T.Label()),
1181
+ force: S.optional(S.Boolean.pipe(T.Query())),
1182
+ }).pipe(T.Http({
1183
+ method: "DELETE",
1184
+ uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions/{extension_name}",
1185
+ code: 200,
1186
+ }))).annotate({
1187
+ identifier: "DisablePostgresExtensionRequest",
1188
+ });
1189
+ export const DisablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1190
+ identifier: "DisablePostgresExtensionResponse",
1191
+ });
1192
+ export const EnablePostgresExtensionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1193
+ postgres_cluster_id: S.String.pipe(T.Label()),
1194
+ database_name: S.String.pipe(T.Label()),
1195
+ create_schema: S.optional(S.Boolean),
1196
+ name: S.String,
1197
+ schema: S.optional(S.String),
1198
+ }).pipe(T.Http({
1199
+ method: "POST",
1200
+ uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",
1201
+ code: 200,
1202
+ }))).annotate({
1203
+ identifier: "EnablePostgresExtensionRequest",
1204
+ });
1205
+ export const EnablePostgresExtensionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1206
+ identifier: "EnablePostgresExtensionResponse",
1207
+ });
1208
+ export const EncryptSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1209
+ app_name: S.String.pipe(T.Label()),
1210
+ secret_name: S.String.pipe(T.Label()),
1211
+ min_version: S.optional(S.String.pipe(T.Query())),
1212
+ associated_data: S.optional(S.String),
1213
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
1214
+ }).pipe(T.Http({
1215
+ method: "POST",
1216
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/encrypt",
1217
+ code: 200,
1218
+ }))).annotate({
1219
+ identifier: "EncryptSecretKeyRequest",
1220
+ });
1221
+ export const EncryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1222
+ ciphertext: S.optional(S.String),
1223
+ })).annotate({
1224
+ identifier: "EncryptSecretkeyResponse",
1225
+ });
1226
+ export const ExecMachineRequestCommandList = /*@__PURE__*/ S.Array(S.String);
1227
+ export const ExecMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1228
+ app_name: S.String.pipe(T.Label()),
1229
+ machine_id: S.String.pipe(T.Label()),
1230
+ cmd: S.optional(S.String),
1231
+ command: S.optional(ExecMachineRequestCommandList),
1232
+ container: S.optional(S.String),
1233
+ machine: S.optional(S.Boolean),
1234
+ stdin: S.optional(S.String),
1235
+ timeout: S.optional(S.Number),
1236
+ }).pipe(T.Http({
1237
+ method: "POST",
1238
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/exec",
1239
+ code: 200,
1240
+ }))).annotate({
1241
+ identifier: "ExecMachineRequest",
1242
+ });
1243
+ export const Flydv1ExecResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1244
+ exit_code: S.optional(S.Number),
1245
+ exit_signal: S.optional(S.Number),
1246
+ stderr: S.optional(S.String),
1247
+ stdout: S.optional(S.String),
1248
+ })).annotate({
1249
+ identifier: "Flydv1ExecResponse",
1250
+ });
1251
+ export const ExtendVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1252
+ app_name: S.String.pipe(T.Label()),
1253
+ volume_id: S.String.pipe(T.Label()),
1254
+ size_gb: S.optional(S.Number),
1255
+ }).pipe(T.Http({
1256
+ method: "PUT",
1257
+ uri: "/v1/apps/{app_name}/volumes/{volume_id}/extend",
1258
+ code: 200,
1259
+ }))).annotate({
1260
+ identifier: "ExtendVolumeRequest",
1261
+ });
1262
+ export const ExtendVolumeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1263
+ needs_restart: S.optional(S.Boolean),
1264
+ volume: S.optional(Volume),
1265
+ })).annotate({
1266
+ identifier: "ExtendVolumeResponse",
1267
+ });
1268
+ export const ForkPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1269
+ postgres_cluster_id: S.String.pipe(T.Label()),
1270
+ name: S.optional(S.String),
1271
+ }).pipe(T.Http({
1272
+ method: "POST",
1273
+ uri: "/v1/postgres/{postgres_cluster_id}/fork",
1274
+ code: 200,
1275
+ }))).annotate({
1276
+ identifier: "ForkPostgresRequest",
1277
+ });
1278
+ export const GenerateSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
1279
+ export const GenerateSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1280
+ app_name: S.String.pipe(T.Label()),
1281
+ secret_name: S.String.pipe(T.Label()),
1282
+ type: S.optional(S.String),
1283
+ value: S.optional(GenerateSecretKeyRequestValueList),
1284
+ }).pipe(T.Http({
1285
+ method: "POST",
1286
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/generate",
1287
+ code: 200,
1288
+ }))).annotate({
1289
+ identifier: "GenerateSecretKeyRequest",
1290
+ });
1291
+ export const SetSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1292
+ Version: S.optional(S.Number),
1293
+ created_at: S.optional(S.String),
1294
+ name: S.optional(S.String),
1295
+ public_key: S.optional(S.String),
1296
+ type: S.optional(S.String),
1297
+ updated_at: S.optional(S.String),
1298
+ version: S.optional(S.Number),
1299
+ })).annotate({
1300
+ identifier: "SetSecretkeyResponse",
1301
+ });
1302
+ export const GetAppRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1303
+ app_name: S.String.pipe(T.Label()),
1304
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}", code: 200 }))).annotate({ identifier: "GetAppRequest" });
1305
+ export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1306
+ internal_numeric_id: S.optional(S.Number),
1307
+ name: S.optional(S.String),
1308
+ slug: S.optional(S.String),
1309
+ })).annotate({
1310
+ identifier: "AppOrganizationInfo",
1311
+ });
1312
+ export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
1313
+ id: S.optional(S.String),
1314
+ internal_numeric_id: S.optional(S.Number),
1315
+ machine_count: S.optional(S.Number),
1316
+ name: S.optional(S.String),
1317
+ network: S.optional(S.String),
1318
+ network_cidr: S.optional(S.String),
1319
+ organization: S.optional(AppOrganizationInfo),
1320
+ status: S.optional(S.String),
1321
+ volume_count: S.optional(S.Number),
1322
+ })).annotate({ identifier: "App" });
1323
+ export const GetAppCertificateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1324
+ app_name: S.String.pipe(T.Label()),
1325
+ hostname: S.String.pipe(T.Label()),
1326
+ }).pipe(T.Http({
1327
+ method: "GET",
1328
+ uri: "/v1/apps/{app_name}/certificates/{hostname}",
1329
+ code: 200,
1330
+ }))).annotate({
1331
+ identifier: "GetAppCertificateRequest",
1332
+ });
1333
+ export const GetCurrentTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/tokens/current", code: 200 }))).annotate({
1334
+ identifier: "GetCurrentTokenRequest",
1335
+ });
1336
+ export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
1337
+ export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
1338
+ apps: S.optional(MainTokenInfoAppsList),
1339
+ org_slug: S.optional(S.String),
1340
+ organization: S.optional(S.String),
1341
+ restricted_to_machine: S.optional(S.String),
1342
+ source_machine_id: S.optional(S.String),
1343
+ token_id: S.optional(S.String),
1344
+ user: S.optional(S.String),
1345
+ })).annotate({ identifier: "MainTokenInfo" });
1346
+ export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
1347
+ export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1348
+ tokens: S.optional(CurrentTokenResponseTokensList),
1349
+ })).annotate({
1350
+ identifier: "CurrentTokenResponse",
1351
+ });
1352
+ export const GetMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1353
+ app_name: S.String.pipe(T.Label()),
1354
+ machine_id: S.String.pipe(T.Label()),
1355
+ include_leases: S.optional(S.Boolean.pipe(T.Query())),
1356
+ }).pipe(T.Http({
1357
+ method: "GET",
1358
+ uri: "/v1/apps/{app_name}/machines/{machine_id}",
1359
+ code: 200,
1360
+ }))).annotate({
1361
+ identifier: "GetMachineRequest",
1362
+ });
1363
+ export const GetMachineLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1364
+ app_name: S.String.pipe(T.Label()),
1365
+ machine_id: S.String.pipe(T.Label()),
1366
+ }).pipe(T.Http({
1367
+ method: "GET",
1368
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
1369
+ code: 200,
1370
+ }))).annotate({
1371
+ identifier: "GetMachineLeaseRequest",
1372
+ });
1373
+ export const GetMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1374
+ app_name: S.String.pipe(T.Label()),
1375
+ machine_id: S.String.pipe(T.Label()),
1376
+ }).pipe(T.Http({
1377
+ method: "GET",
1378
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/memory",
1379
+ code: 200,
1380
+ }))).annotate({
1381
+ identifier: "GetMachineMemoryRequest",
1382
+ });
1383
+ export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1384
+ available_mb: S.optional(S.Number),
1385
+ limit_mb: S.optional(S.Number),
1386
+ })).annotate({
1387
+ identifier: "MainMemoryResponse",
1388
+ });
1389
+ export const GetMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1390
+ app_name: S.String.pipe(T.Label()),
1391
+ machine_id: S.String.pipe(T.Label()),
1392
+ }).pipe(T.Http({
1393
+ method: "GET",
1394
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
1395
+ code: 200,
1396
+ }))).annotate({
1397
+ identifier: "GetMachineMetadataRequest",
1398
+ });
1399
+ export const GetMachineMetadataResponseBodyMap = /*@__PURE__*/ S.Record(S.String, S.String);
1400
+ export const GetMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => GetMachineMetadataResponseBodyMap.pipe(T.RawResponseRoot())).annotate({
1401
+ identifier: "GetMachineMetadataResponse",
1402
+ });
1403
+ export const GetMachineMetadataKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1404
+ app_name: S.String.pipe(T.Label()),
1405
+ machine_id: S.String.pipe(T.Label()),
1406
+ key: S.String.pipe(T.Label()),
1407
+ }).pipe(T.Http({
1408
+ method: "GET",
1409
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
1410
+ code: 200,
1411
+ }))).annotate({
1412
+ identifier: "GetMachineMetadataKeyRequest",
1413
+ });
1414
+ export const MetadataValueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1415
+ value: S.optional(S.String),
1416
+ })).annotate({
1417
+ identifier: "MetadataValueResponse",
1418
+ });
1419
+ export const PlacementWeights = /*@__PURE__*/ S.Record(S.String, S.Number);
1420
+ export const GetPlacementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1421
+ compute: S.optional(FlyMachineGuest),
1422
+ count: S.optional(S.Number),
1423
+ org_slug: S.String,
1424
+ region: S.optional(S.String),
1425
+ volume_name: S.optional(S.String),
1426
+ volume_size_bytes: S.optional(S.Number),
1427
+ weights: S.optional(PlacementWeights),
1428
+ }).pipe(T.Http({ method: "POST", uri: "/v1/platform/placements", code: 200 }))).annotate({
1429
+ identifier: "GetPlacementsRequest",
1430
+ });
1431
+ export const PlacementRegionPlacement = /*@__PURE__*/ S.suspend(() => S.Struct({
1432
+ concurrency: S.optional(S.Number),
1433
+ count: S.optional(S.Number),
1434
+ region: S.optional(S.String),
1435
+ })).annotate({
1436
+ identifier: "PlacementRegionPlacement",
1437
+ });
1438
+ export const MainGetPlacementsResponseRegionsList = /*@__PURE__*/ S.Array(PlacementRegionPlacement);
1439
+ export const MainGetPlacementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1440
+ regions: S.optional(MainGetPlacementsResponseRegionsList),
1441
+ })).annotate({
1442
+ identifier: "MainGetPlacementsResponse",
1443
+ });
1444
+ export const GetPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1445
+ postgres_cluster_id: S.String.pipe(T.Label()),
1446
+ }).pipe(T.Http({
1447
+ method: "GET",
1448
+ uri: "/v1/postgres/{postgres_cluster_id}",
1449
+ code: 200,
1450
+ }))).annotate({
1451
+ identifier: "GetPostgresRequest",
1452
+ });
1453
+ export const GetRegionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v1/platform/regions", code: 200 }))).annotate({
1454
+ identifier: "GetRegionsRequest",
1455
+ });
1456
+ export const MainRegionRow = /*@__PURE__*/ S.suspend(() => S.Struct({
1457
+ code: S.optional(S.String),
1458
+ deprecated: S.optional(S.Boolean),
1459
+ gateway_available: S.optional(S.Boolean),
1460
+ geo_region: S.optional(S.String),
1461
+ latitude: S.optional(S.Number),
1462
+ longitude: S.optional(S.Number),
1463
+ mpg_available: S.optional(S.Boolean),
1464
+ name: S.optional(S.String),
1465
+ requires_paid_plan: S.optional(S.Boolean),
1466
+ })).annotate({ identifier: "MainRegionRow" });
1467
+ export const MainRegionResponseRegionsList = /*@__PURE__*/ S.Array(MainRegionRow);
1468
+ export const MainRegionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1469
+ nearest: S.optional(S.String),
1470
+ regions: S.optional(MainRegionResponseRegionsList),
1471
+ })).annotate({
1472
+ identifier: "MainRegionResponse",
1473
+ });
1474
+ export const GetSecretRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1475
+ app_name: S.String.pipe(T.Label()),
1476
+ secret_name: S.String.pipe(T.Label()),
1477
+ min_version: S.optional(S.String.pipe(T.Query())),
1478
+ show_secrets: S.optional(S.Boolean.pipe(T.Query())),
1479
+ }).pipe(T.Http({
1480
+ method: "GET",
1481
+ uri: "/v1/apps/{app_name}/secrets/{secret_name}",
1482
+ code: 200,
1483
+ }))).annotate({
1484
+ identifier: "GetSecretRequest",
1485
+ });
1486
+ export const AppSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
1487
+ created_at: S.optional(S.String),
1488
+ digest: S.optional(S.String),
1489
+ name: S.optional(S.String),
1490
+ updated_at: S.optional(S.String),
1491
+ value: S.optional(S.String),
1492
+ })).annotate({ identifier: "AppSecret" });
1493
+ export const GetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1494
+ app_name: S.String.pipe(T.Label()),
1495
+ secret_name: S.String.pipe(T.Label()),
1496
+ min_version: S.optional(S.String.pipe(T.Query())),
1497
+ }).pipe(T.Http({
1498
+ method: "GET",
1499
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
1500
+ code: 200,
1501
+ }))).annotate({
1502
+ identifier: "GetSecretKeyRequest",
1503
+ });
1504
+ export const SecretKey = /*@__PURE__*/ S.suspend(() => S.Struct({
1505
+ created_at: S.optional(S.String),
1506
+ name: S.optional(S.String),
1507
+ public_key: S.optional(S.String),
1508
+ type: S.optional(S.String),
1509
+ updated_at: S.optional(S.String),
1510
+ })).annotate({ identifier: "SecretKey" });
1511
+ export const GetVolumeByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1512
+ app_name: S.String.pipe(T.Label()),
1513
+ volume_id: S.String.pipe(T.Label()),
1514
+ }).pipe(T.Http({
1515
+ method: "GET",
1516
+ uri: "/v1/apps/{app_name}/volumes/{volume_id}",
1517
+ code: 200,
1518
+ }))).annotate({
1519
+ identifier: "GetVolumeByIdRequest",
1520
+ });
1521
+ export const ListAppCertificatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1522
+ app_name: S.String.pipe(T.Label()),
1523
+ filter: S.optional(S.String.pipe(T.Query())),
1524
+ cursor: S.optional(S.String.pipe(T.Query())),
1525
+ limit: S.optional(S.Number.pipe(T.Query())),
1526
+ }).pipe(T.Http({
1527
+ method: "GET",
1528
+ uri: "/v1/apps/{app_name}/certificates",
1529
+ code: 200,
1530
+ }))).annotate({
1531
+ identifier: "ListAppCertificatesRequest",
1532
+ });
1533
+ export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
1534
+ acme_alpn_configured: S.optional(S.Boolean),
1535
+ acme_dns_configured: S.optional(S.Boolean),
1536
+ acme_http_configured: S.optional(S.Boolean),
1537
+ acme_requested: S.optional(S.Boolean),
1538
+ configured: S.optional(S.Boolean),
1539
+ created_at: S.optional(S.String),
1540
+ dns_provider: S.optional(S.String),
1541
+ has_custom_certificate: S.optional(S.Boolean),
1542
+ has_fly_certificate: S.optional(S.Boolean),
1543
+ hostname: S.optional(S.String),
1544
+ ownership_txt_configured: S.optional(S.Boolean),
1545
+ status: S.optional(S.String),
1546
+ updated_at: S.optional(S.String),
1547
+ })).annotate({
1548
+ identifier: "CertificateSummary",
1549
+ });
1550
+ export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
1551
+ export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1552
+ certificates: S.optional(ListCertificatesResponseCertificatesList),
1553
+ next_cursor: S.optional(S.String),
1554
+ total_count: S.optional(S.Number),
1555
+ })).annotate({
1556
+ identifier: "ListCertificatesResponse",
1557
+ });
1558
+ export const ListAppIPAssignmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1559
+ app_name: S.String.pipe(T.Label()),
1560
+ }).pipe(T.Http({
1561
+ method: "GET",
1562
+ uri: "/v1/apps/{app_name}/ip_assignments",
1563
+ code: 200,
1564
+ }))).annotate({
1565
+ identifier: "ListAppIPAssignmentsRequest",
1566
+ });
1567
+ export const IPAssignment = /*@__PURE__*/ S.suspend(() => S.Struct({
1568
+ created_at: S.optional(S.String),
1569
+ egress: S.optional(S.Boolean),
1570
+ ip: S.optional(S.String),
1571
+ region: S.optional(S.String),
1572
+ service_name: S.optional(S.String),
1573
+ shared: S.optional(S.Boolean),
1574
+ type: S.optional(S.String),
1575
+ })).annotate({ identifier: "IPAssignment" });
1576
+ export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
1577
+ export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1578
+ ips: S.optional(ListIPAssignmentsResponseIpsList),
1579
+ })).annotate({
1580
+ identifier: "ListIPAssignmentsResponse",
1581
+ });
1582
+ export const ListAppsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1583
+ org_slug: S.String.pipe(T.Query()),
1584
+ app_role: S.optional(S.String.pipe(T.Query())),
1585
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps", code: 200 }))).annotate({
1586
+ identifier: "ListAppsRequest",
1587
+ });
1588
+ export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
1589
+ export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1590
+ apps: S.optional(ListAppsResponseAppsList),
1591
+ total_apps: S.optional(S.Number),
1592
+ })).annotate({
1593
+ identifier: "ListAppsResponse",
1594
+ });
1595
+ export const ListMachineEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1596
+ app_name: S.String.pipe(T.Label()),
1597
+ machine_id: S.String.pipe(T.Label()),
1598
+ limit: S.optional(S.Number.pipe(T.Query())),
1599
+ }).pipe(T.Http({
1600
+ method: "GET",
1601
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/events",
1602
+ code: 200,
1603
+ }))).annotate({
1604
+ identifier: "ListMachineEventsRequest",
1605
+ });
1606
+ export const ListMachineEventsResponseBodyList = /*@__PURE__*/ S.Array(MachineEvent);
1607
+ export const ListMachineEventsResponse = /*@__PURE__*/ S.suspend(() => ListMachineEventsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1608
+ identifier: "ListMachineEventsResponse",
1609
+ });
1610
+ export const ListMachineProcessesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1611
+ app_name: S.String.pipe(T.Label()),
1612
+ machine_id: S.String.pipe(T.Label()),
1613
+ sort_by: S.optional(S.String.pipe(T.Query())),
1614
+ order: S.optional(S.String.pipe(T.Query())),
1615
+ }).pipe(T.Http({
1616
+ method: "GET",
1617
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/ps",
1618
+ code: 200,
1619
+ }))).annotate({
1620
+ identifier: "ListMachineProcessesRequest",
1621
+ });
1622
+ export const ListenSocket = /*@__PURE__*/ S.suspend(() => S.Struct({
1623
+ address: S.optional(S.String),
1624
+ proto: S.optional(S.String),
1625
+ })).annotate({ identifier: "ListenSocket" });
1626
+ export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
1627
+ export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
1628
+ command: S.optional(S.String),
1629
+ cpu: S.optional(S.Number),
1630
+ directory: S.optional(S.String),
1631
+ listen_sockets: S.optional(ProcessStatListenSocketsList),
1632
+ pid: S.optional(S.Number),
1633
+ rss: S.optional(S.Number),
1634
+ rtime: S.optional(S.Number),
1635
+ stime: S.optional(S.Number),
1636
+ })).annotate({ identifier: "ProcessStat" });
1637
+ export const ListMachineProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
1638
+ export const ListMachineProcessesResponse = /*@__PURE__*/ S.suspend(() => ListMachineProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1639
+ identifier: "ListMachineProcessesResponse",
1640
+ });
1641
+ export const ListMachinesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1642
+ app_name: S.String.pipe(T.Label()),
1643
+ include_deleted: S.optional(S.Boolean.pipe(T.Query())),
1644
+ include_leases: S.optional(S.Boolean.pipe(T.Query())),
1645
+ region: S.optional(S.String.pipe(T.Query())),
1646
+ state: S.optional(S.String.pipe(T.Query())),
1647
+ summary: S.optional(S.Boolean.pipe(T.Query())),
1648
+ metadata__key_: S.optional(S.String.pipe(T.Query("metadata.{key}"))),
1649
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/machines", code: 200 }))).annotate({
1650
+ identifier: "ListMachinesRequest",
1651
+ });
1652
+ export const ListMachinesResponseBodyList = /*@__PURE__*/ S.Array(Machine);
1653
+ export const ListMachinesResponse = /*@__PURE__*/ S.suspend(() => ListMachinesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1654
+ identifier: "ListMachinesResponse",
1655
+ });
1656
+ export const ListMachinesOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1657
+ org_slug: S.String.pipe(T.Label()),
1658
+ include_deleted: S.optional(S.Boolean.pipe(T.Query())),
1659
+ region: S.optional(S.String.pipe(T.Query())),
1660
+ state: S.optional(S.String.pipe(T.Query())),
1661
+ summary: S.optional(S.Boolean.pipe(T.Query())),
1662
+ updated_after: S.optional(S.String.pipe(T.Query())),
1663
+ cursor: S.optional(S.String.pipe(T.Query())),
1664
+ limit: S.optional(S.Number.pipe(T.Query())),
1665
+ }).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/machines", code: 200 }))).annotate({
1666
+ identifier: "ListMachinesOrgRequest",
1667
+ });
1668
+ export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(S.String);
1669
+ export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
1670
+ export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
1671
+ guest: S.optional(FlyMachineGuest),
1672
+ image: S.optional(S.String),
1673
+ metadata: S.optional(MachineOverviewConfigMetadataMap),
1674
+ })).annotate({
1675
+ identifier: "MachineOverviewConfig",
1676
+ });
1677
+ export const OrgMachine = /*@__PURE__*/ S.suspend(() => S.Struct({
1678
+ app_name: S.optional(S.String),
1679
+ config: S.optional(MachineOverviewConfig),
1680
+ created_at: S.optional(S.String),
1681
+ id: S.optional(S.String),
1682
+ name: S.optional(S.String),
1683
+ private_ip: S.optional(S.String),
1684
+ region: S.optional(S.String),
1685
+ state: S.optional(S.String),
1686
+ updated_at: S.optional(S.String),
1687
+ version: S.optional(S.String),
1688
+ })).annotate({ identifier: "OrgMachine" });
1689
+ export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
1690
+ export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1691
+ error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
1692
+ last_machine_id: S.optional(S.String),
1693
+ last_updated_at: S.optional(S.String),
1694
+ machines: S.optional(OrgMachinesResponseMachinesList),
1695
+ next_cursor: S.optional(S.String),
1696
+ })).annotate({
1697
+ identifier: "OrgMachinesResponse",
1698
+ });
1699
+ export const ListMachineVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1700
+ app_name: S.String.pipe(T.Label()),
1701
+ machine_id: S.String.pipe(T.Label()),
1702
+ }).pipe(T.Http({
1703
+ method: "GET",
1704
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/versions",
1705
+ code: 200,
1706
+ }))).annotate({
1707
+ identifier: "ListMachineVersionsRequest",
1708
+ });
1709
+ export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
1710
+ user_config: S.optional(FlyMachineConfig),
1711
+ version: S.optional(S.String),
1712
+ })).annotate({ identifier: "MachineVersion" });
1713
+ export const ListMachineVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
1714
+ export const ListMachineVersionsResponse = /*@__PURE__*/ S.suspend(() => ListMachineVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1715
+ identifier: "ListMachineVersionsResponse",
1716
+ });
1717
+ export const ListPostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1718
+ org_slug: S.String.pipe(T.Query()),
1719
+ include_deleted: S.optional(S.Boolean.pipe(T.Query())),
1720
+ }).pipe(T.Http({ method: "GET", uri: "/v1/postgres", code: 200 }))).annotate({
1721
+ identifier: "ListPostgresRequest",
1722
+ });
1723
+ export const PostgresClusterSummaryAttachedAppsList = /*@__PURE__*/ S.Array(PostgresAttachedApp);
1724
+ export const PostgresClusterSummaryPlan = S.String;
1725
+ export const PostgresClusterSummaryStatus = S.String;
1726
+ export const PostgresClusterSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
1727
+ attached_apps: S.optional(PostgresClusterSummaryAttachedAppsList),
1728
+ created_at: S.optional(S.String),
1729
+ deleted_at: S.optional(S.String),
1730
+ id: S.optional(S.String),
1731
+ name: S.optional(S.String),
1732
+ plan: S.optional(PostgresClusterSummaryPlan),
1733
+ region: S.optional(S.String),
1734
+ status: S.optional(PostgresClusterSummaryStatus),
1735
+ })).annotate({
1736
+ identifier: "PostgresClusterSummary",
1737
+ });
1738
+ export const ListPostgresClustersResponseDataList = /*@__PURE__*/ S.Array(PostgresClusterSummary);
1739
+ export const ListPostgresClustersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1740
+ data: S.optional(ListPostgresClustersResponseDataList),
1741
+ })).annotate({
1742
+ identifier: "ListPostgresClustersResponse",
1743
+ });
1744
+ export const ListPostgresBackupsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1745
+ postgres_cluster_id: S.String.pipe(T.Label()),
1746
+ }).pipe(T.Http({
1747
+ method: "GET",
1748
+ uri: "/v1/postgres/{postgres_cluster_id}/backups",
1749
+ code: 200,
1750
+ }))).annotate({
1751
+ identifier: "ListPostgresBackupsRequest",
1752
+ });
1753
+ export const PostgresBackupType = S.String;
1754
+ export const PostgresBackup = /*@__PURE__*/ S.suspend(() => S.Struct({
1755
+ finished_at: S.optional(S.String),
1756
+ id: S.optional(S.String),
1757
+ size_bytes: S.optional(S.Number),
1758
+ started_at: S.optional(S.String),
1759
+ status: S.optional(S.String),
1760
+ type: S.optional(PostgresBackupType),
1761
+ })).annotate({ identifier: "PostgresBackup" });
1762
+ export const ListPostgresBackupsResponseDataList = /*@__PURE__*/ S.Array(PostgresBackup);
1763
+ export const ListPostgresBackupsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1764
+ data: S.optional(ListPostgresBackupsResponseDataList),
1765
+ })).annotate({
1766
+ identifier: "ListPostgresBackupsResponse",
1767
+ });
1768
+ export const ListPostgresDatabasesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1769
+ postgres_cluster_id: S.String.pipe(T.Label()),
1770
+ }).pipe(T.Http({
1771
+ method: "GET",
1772
+ uri: "/v1/postgres/{postgres_cluster_id}/databases",
1773
+ code: 200,
1774
+ }))).annotate({
1775
+ identifier: "ListPostgresDatabasesRequest",
1776
+ });
1777
+ export const ListPostgresDatabasesResponseDataList = /*@__PURE__*/ S.Array(PostgresDatabase);
1778
+ export const ListPostgresDatabasesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1779
+ data: S.optional(ListPostgresDatabasesResponseDataList),
1780
+ })).annotate({
1781
+ identifier: "ListPostgresDatabasesResponse",
1782
+ });
1783
+ export const ListPostgresExtensionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1784
+ postgres_cluster_id: S.String.pipe(T.Label()),
1785
+ database_name: S.String.pipe(T.Label()),
1786
+ }).pipe(T.Http({
1787
+ method: "GET",
1788
+ uri: "/v1/postgres/{postgres_cluster_id}/databases/{database_name}/extensions",
1789
+ code: 200,
1790
+ }))).annotate({
1791
+ identifier: "ListPostgresExtensionsRequest",
1792
+ });
1793
+ export const PostgresInstalledExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
1794
+ schema: S.optional(S.String),
1795
+ version: S.optional(S.String),
1796
+ })).annotate({
1797
+ identifier: "PostgresInstalledExtension",
1798
+ });
1799
+ export const PostgresExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
1800
+ default_version: S.optional(S.String),
1801
+ description: S.optional(S.String),
1802
+ installed: S.optional(PostgresInstalledExtension),
1803
+ name: S.optional(S.String),
1804
+ system: S.optional(S.Boolean),
1805
+ })).annotate({
1806
+ identifier: "PostgresExtension",
1807
+ });
1808
+ export const ListPostgresExtensionsResponseDataList = /*@__PURE__*/ S.Array(PostgresExtension);
1809
+ export const ListPostgresExtensionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1810
+ data: S.optional(ListPostgresExtensionsResponseDataList),
1811
+ })).annotate({
1812
+ identifier: "ListPostgresExtensionsResponse",
1813
+ });
1814
+ export const ListPostgresUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1815
+ postgres_cluster_id: S.String.pipe(T.Label()),
1816
+ }).pipe(T.Http({
1817
+ method: "GET",
1818
+ uri: "/v1/postgres/{postgres_cluster_id}/users",
1819
+ code: 200,
1820
+ }))).annotate({
1821
+ identifier: "ListPostgresUsersRequest",
1822
+ });
1823
+ export const ListPostgresUsersResponseDataList = /*@__PURE__*/ S.Array(PostgresUser);
1824
+ export const ListPostgresUsersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1825
+ data: S.optional(ListPostgresUsersResponseDataList),
1826
+ })).annotate({
1827
+ identifier: "ListPostgresUsersResponse",
1828
+ });
1829
+ export const ListSecretKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1830
+ app_name: S.String.pipe(T.Label()),
1831
+ min_version: S.optional(S.String.pipe(T.Query())),
1832
+ types: S.optional(S.String.pipe(T.Query())),
1833
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secretkeys", code: 200 }))).annotate({
1834
+ identifier: "ListSecretKeysRequest",
1835
+ });
1836
+ export const SecretKeysSecretKeysList = /*@__PURE__*/ S.Array(SecretKey);
1837
+ export const SecretKeys = /*@__PURE__*/ S.suspend(() => S.Struct({
1838
+ secret_keys: S.optional(SecretKeysSecretKeysList),
1839
+ })).annotate({ identifier: "SecretKeys" });
1840
+ export const ListSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1841
+ app_name: S.String.pipe(T.Label()),
1842
+ min_version: S.optional(S.String.pipe(T.Query())),
1843
+ show_secrets: S.optional(S.Boolean.pipe(T.Query())),
1844
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/secrets", code: 200 }))).annotate({
1845
+ identifier: "ListSecretsRequest",
1846
+ });
1847
+ export const AppSecretsSecretsList = /*@__PURE__*/ S.Array(AppSecret);
1848
+ export const AppSecrets = /*@__PURE__*/ S.suspend(() => S.Struct({
1849
+ secrets: S.optional(AppSecretsSecretsList),
1850
+ })).annotate({ identifier: "AppSecrets" });
1851
+ export const ListVolumesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1852
+ app_name: S.String.pipe(T.Label()),
1853
+ summary: S.optional(S.Boolean.pipe(T.Query())),
1854
+ }).pipe(T.Http({ method: "GET", uri: "/v1/apps/{app_name}/volumes", code: 200 }))).annotate({
1855
+ identifier: "ListVolumesRequest",
1856
+ });
1857
+ export const ListVolumesResponseBodyList = /*@__PURE__*/ S.Array(Volume);
1858
+ export const ListVolumesResponse = /*@__PURE__*/ S.suspend(() => ListVolumesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1859
+ identifier: "ListVolumesResponse",
1860
+ });
1861
+ export const ListVolumeSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1862
+ app_name: S.String.pipe(T.Label()),
1863
+ volume_id: S.String.pipe(T.Label()),
1864
+ }).pipe(T.Http({
1865
+ method: "GET",
1866
+ uri: "/v1/apps/{app_name}/volumes/{volume_id}/snapshots",
1867
+ code: 200,
1868
+ }))).annotate({
1869
+ identifier: "ListVolumeSnapshotsRequest",
1870
+ });
1871
+ export const VolumeSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
1872
+ created_at: S.optional(S.String),
1873
+ digest: S.optional(S.String),
1874
+ id: S.optional(S.String),
1875
+ retention_days: S.optional(S.Number),
1876
+ size: S.optional(S.Number),
1877
+ status: S.optional(S.String),
1878
+ volume_size: S.optional(S.Number),
1879
+ })).annotate({ identifier: "VolumeSnapshot" });
1880
+ export const ListVolumeSnapshotsResponseBodyList = /*@__PURE__*/ S.Array(VolumeSnapshot);
1881
+ export const ListVolumeSnapshotsResponse = /*@__PURE__*/ S.suspend(() => ListVolumeSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
1882
+ identifier: "ListVolumeSnapshotsResponse",
1883
+ });
1884
+ export const ListVolumesOrgRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1885
+ org_slug: S.String.pipe(T.Label()),
1886
+ include_deleted: S.optional(S.Boolean.pipe(T.Query())),
1887
+ region: S.optional(S.String.pipe(T.Query())),
1888
+ state: S.optional(S.String.pipe(T.Query())),
1889
+ summary: S.optional(S.Boolean.pipe(T.Query())),
1890
+ updated_after: S.optional(S.String.pipe(T.Query())),
1891
+ cursor: S.optional(S.String.pipe(T.Query())),
1892
+ limit: S.optional(S.Number.pipe(T.Query())),
1893
+ }).pipe(T.Http({ method: "GET", uri: "/v1/orgs/{org_slug}/volumes", code: 200 }))).annotate({
1894
+ identifier: "ListVolumesOrgRequest",
1895
+ });
1896
+ export const OrgVolumeHostStatus = S.String;
1897
+ export const OrgVolumeType = S.String;
1898
+ export const OrgVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
1899
+ app_name: S.optional(S.String),
1900
+ attached_alloc_id: S.optional(S.String),
1901
+ attached_machine_id: S.optional(S.String),
1902
+ auto_backup_enabled: S.optional(S.Boolean),
1903
+ block_size: S.optional(S.Number),
1904
+ blocks: S.optional(S.Number),
1905
+ blocks_avail: S.optional(S.Number),
1906
+ blocks_free: S.optional(S.Number),
1907
+ bytes_total: S.optional(S.Number),
1908
+ bytes_used: S.optional(S.Number),
1909
+ created_at: S.optional(S.String),
1910
+ encrypted: S.optional(S.Boolean),
1911
+ fstype: S.optional(S.String),
1912
+ host_status: S.optional(OrgVolumeHostStatus),
1913
+ id: S.optional(S.String),
1914
+ name: S.optional(S.String),
1915
+ region: S.optional(S.String),
1916
+ size_gb: S.optional(S.Number),
1917
+ snapshot_retention: S.optional(S.Number),
1918
+ state: S.optional(S.String),
1919
+ type: S.optional(OrgVolumeType),
1920
+ updated_at: S.optional(S.String),
1921
+ zone: S.optional(S.String),
1922
+ })).annotate({ identifier: "OrgVolume" });
1923
+ export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
1924
+ export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1925
+ last_updated_at: S.optional(S.String),
1926
+ last_volume_id: S.optional(S.String),
1927
+ next_cursor: S.optional(S.String),
1928
+ volumes: S.optional(OrgVolumesResponseVolumesList),
1929
+ })).annotate({
1930
+ identifier: "OrgVolumesResponse",
1931
+ });
1932
+ export const MachinesReleaseLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1933
+ app_name: S.String.pipe(T.Label()),
1934
+ machine_id: S.String.pipe(T.Label()),
1935
+ }).pipe(T.Http({
1936
+ method: "DELETE",
1937
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/lease",
1938
+ code: 200,
1939
+ }))).annotate({
1940
+ identifier: "MachinesReleaseLeaseRequest",
1941
+ });
1942
+ export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1943
+ identifier: "MachinesReleaseLeaseResponse",
1944
+ });
1945
+ export const PatchMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
1946
+ export const PatchMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1947
+ app_name: S.String.pipe(T.Label()),
1948
+ machine_id: S.String.pipe(T.Label()),
1949
+ machine_version: S.optional(S.String),
1950
+ metadata: S.optional(PatchMachineMetadataRequestMetadataMap),
1951
+ updated_at: S.optional(S.String),
1952
+ }).pipe(T.Http({
1953
+ method: "PATCH",
1954
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
1955
+ code: 200,
1956
+ }))).annotate({
1957
+ identifier: "PatchMachineMetadataRequest",
1958
+ });
1959
+ export const PatchMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1960
+ identifier: "PatchMachineMetadataResponse",
1961
+ });
1962
+ export const PostgresUsersCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1963
+ postgres_cluster_id: S.String.pipe(T.Label()),
1964
+ username: S.String.pipe(T.Label()),
1965
+ }).pipe(T.Http({
1966
+ method: "GET",
1967
+ uri: "/v1/postgres/{postgres_cluster_id}/users/{username}/credentials",
1968
+ code: 200,
1969
+ }))).annotate({
1970
+ identifier: "PostgresUsersCredentialsRequest",
1971
+ });
1972
+ export const PostgresUserCredentials = /*@__PURE__*/ S.suspend(() => S.Struct({
1973
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
1974
+ username: S.optional(S.String),
1975
+ })).annotate({
1976
+ identifier: "PostgresUserCredentials",
1977
+ });
1978
+ export const GetPostgresUserCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1979
+ data: S.optional(PostgresUserCredentials),
1980
+ })).annotate({
1981
+ identifier: "GetPostgresUserCredentialsResponse",
1982
+ });
1983
+ export const ReclaimMachineMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1984
+ app_name: S.String.pipe(T.Label()),
1985
+ machine_id: S.String.pipe(T.Label()),
1986
+ amount_mb: S.optional(S.Number),
1987
+ }).pipe(T.Http({
1988
+ method: "POST",
1989
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/memory/reclaim",
1990
+ code: 200,
1991
+ }))).annotate({
1992
+ identifier: "ReclaimMachineMemoryRequest",
1993
+ });
1994
+ export const MainReclaimMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1995
+ actual_mb: S.optional(S.Number),
1996
+ })).annotate({
1997
+ identifier: "MainReclaimMemoryResponse",
1998
+ });
1999
+ export const RequestKmsTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/v1/tokens/kms", code: 200 }))).annotate({
2000
+ identifier: "RequestKmsTokenRequest",
2001
+ });
2002
+ export const RequestKmsTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2003
+ identifier: "RequestKmsTokenResponse",
2004
+ });
2005
+ export const RequestOidcTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2006
+ aud: S.optional(S.String),
2007
+ aws_principal_tags: S.optional(S.Boolean),
2008
+ }).pipe(T.Http({ method: "POST", uri: "/v1/tokens/oidc", code: 200 }))).annotate({
2009
+ identifier: "RequestOidcTokenRequest",
2010
+ });
2011
+ export const RequestOidcTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2012
+ identifier: "RequestOidcTokenResponse",
2013
+ });
2014
+ export const RestartMachineRequestSignal = S.String;
2015
+ export const RestartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2016
+ app_name: S.String.pipe(T.Label()),
2017
+ machine_id: S.String.pipe(T.Label()),
2018
+ timeout: S.optional(S.String.pipe(T.Query())),
2019
+ signal: S.optional(RestartMachineRequestSignal.pipe(T.Query())),
2020
+ }).pipe(T.Http({
2021
+ method: "POST",
2022
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/restart",
2023
+ code: 200,
2024
+ }))).annotate({
2025
+ identifier: "RestartMachineRequest",
2026
+ });
2027
+ export const RestartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2028
+ identifier: "RestartMachineResponse",
2029
+ });
2030
+ export const RestorePostgresRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2031
+ postgres_cluster_id: S.String.pipe(T.Label()),
2032
+ backup_id: S.optional(S.String),
2033
+ name: S.optional(S.String),
2034
+ pitr_time: S.optional(S.String),
2035
+ }).pipe(T.Http({
2036
+ method: "POST",
2037
+ uri: "/v1/postgres/{postgres_cluster_id}/restore",
2038
+ code: 200,
2039
+ }))).annotate({
2040
+ identifier: "RestorePostgresRequest",
2041
+ });
2042
+ export const RotatePostgresUserPasswordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2043
+ postgres_cluster_id: S.String.pipe(T.Label()),
2044
+ username: S.String.pipe(T.Label()),
2045
+ kill_sessions: S.optional(S.Boolean),
2046
+ }).pipe(T.Http({
2047
+ method: "POST",
2048
+ uri: "/v1/postgres/{postgres_cluster_id}/users/{username}/rotate_password",
2049
+ code: 200,
2050
+ }))).annotate({
2051
+ identifier: "RotatePostgresUserPasswordRequest",
2052
+ });
2053
+ export const RotatePostgresPasswordResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2054
+ data: S.optional(PostgresUserCredentials),
2055
+ })).annotate({
2056
+ identifier: "RotatePostgresPasswordResponse",
2057
+ });
2058
+ export const SetMachineMemoryLimitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2059
+ app_name: S.String.pipe(T.Label()),
2060
+ machine_id: S.String.pipe(T.Label()),
2061
+ limit_mb: S.optional(S.Number),
2062
+ }).pipe(T.Http({
2063
+ method: "PUT",
2064
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/memory",
2065
+ code: 200,
2066
+ }))).annotate({
2067
+ identifier: "SetMachineMemoryLimitRequest",
2068
+ });
2069
+ export const SetSecretKeyRequestValueList = /*@__PURE__*/ S.Array(S.Number);
2070
+ export const SetSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2071
+ app_name: S.String.pipe(T.Label()),
2072
+ secret_name: S.String.pipe(T.Label()),
2073
+ type: S.optional(S.String),
2074
+ value: S.optional(SetSecretKeyRequestValueList),
2075
+ }).pipe(T.Http({
2076
+ method: "POST",
2077
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}",
2078
+ code: 200,
2079
+ }))).annotate({
2080
+ identifier: "SetSecretKeyRequest",
2081
+ });
2082
+ export const SignalMachineRequestSignal = S.String;
2083
+ export const SignalMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2084
+ app_name: S.String.pipe(T.Label()),
2085
+ machine_id: S.String.pipe(T.Label()),
2086
+ signal: S.optional(SignalMachineRequestSignal),
2087
+ }).pipe(T.Http({
2088
+ method: "POST",
2089
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/signal",
2090
+ code: 200,
2091
+ }))).annotate({
2092
+ identifier: "SignalMachineRequest",
2093
+ });
2094
+ export const SignalMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2095
+ identifier: "SignalMachineResponse",
2096
+ });
2097
+ export const SignSecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2098
+ app_name: S.String.pipe(T.Label()),
2099
+ secret_name: S.String.pipe(T.Label()),
2100
+ min_version: S.optional(S.String.pipe(T.Query())),
2101
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
2102
+ }).pipe(T.Http({
2103
+ method: "POST",
2104
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/sign",
2105
+ code: 200,
2106
+ }))).annotate({
2107
+ identifier: "SignSecretKeyRequest",
2108
+ });
2109
+ export const SignSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2110
+ signature: S.optional(S.String),
2111
+ })).annotate({
2112
+ identifier: "SignSecretkeyResponse",
2113
+ });
2114
+ export const StartMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2115
+ app_name: S.String.pipe(T.Label()),
2116
+ machine_id: S.String.pipe(T.Label()),
2117
+ }).pipe(T.Http({
2118
+ method: "POST",
2119
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/start",
2120
+ code: 200,
2121
+ }))).annotate({
2122
+ identifier: "StartMachineRequest",
2123
+ });
2124
+ export const StartMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2125
+ identifier: "StartMachineResponse",
2126
+ });
2127
+ export const StopMachineRequestSignal = S.String;
2128
+ export const StopMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2129
+ app_name: S.String.pipe(T.Label()),
2130
+ machine_id: S.String.pipe(T.Label()),
2131
+ signal: S.optional(StopMachineRequestSignal),
2132
+ timeout: S.optional(S.String),
2133
+ }).pipe(T.Http({
2134
+ method: "POST",
2135
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/stop",
2136
+ code: 200,
2137
+ }))).annotate({
2138
+ identifier: "StopMachineRequest",
2139
+ });
2140
+ export const StopMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2141
+ identifier: "StopMachineResponse",
2142
+ });
2143
+ export const SuspendMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2144
+ app_name: S.String.pipe(T.Label()),
2145
+ machine_id: S.String.pipe(T.Label()),
2146
+ }).pipe(T.Http({
2147
+ method: "POST",
2148
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/suspend",
2149
+ code: 200,
2150
+ }))).annotate({
2151
+ identifier: "SuspendMachineRequest",
2152
+ });
2153
+ export const SuspendMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2154
+ identifier: "SuspendMachineResponse",
2155
+ });
2156
+ export const UncordonMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2157
+ app_name: S.String.pipe(T.Label()),
2158
+ machine_id: S.String.pipe(T.Label()),
2159
+ }).pipe(T.Http({
2160
+ method: "POST",
2161
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/uncordon",
2162
+ code: 200,
2163
+ }))).annotate({
2164
+ identifier: "UncordonMachineRequest",
2165
+ });
2166
+ export const UncordonMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2167
+ identifier: "UncordonMachineResponse",
2168
+ });
2169
+ export const UpdateMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2170
+ app_name: S.String.pipe(T.Label()),
2171
+ machine_id: S.String.pipe(T.Label()),
2172
+ config: S.optional(FlyMachineConfig),
2173
+ current_version: S.optional(S.String),
2174
+ lease_ttl: S.optional(S.Number),
2175
+ min_secrets_version: S.optional(S.Number),
2176
+ name: S.optional(S.String),
2177
+ region: S.optional(S.String),
2178
+ skip_launch: S.optional(S.Boolean),
2179
+ skip_secrets: S.optional(S.Boolean),
2180
+ skip_service_registration: S.optional(S.Boolean),
2181
+ }).pipe(T.Http({
2182
+ method: "POST",
2183
+ uri: "/v1/apps/{app_name}/machines/{machine_id}",
2184
+ code: 200,
2185
+ }))).annotate({
2186
+ identifier: "UpdateMachineRequest",
2187
+ });
2188
+ export const UpdateMachineMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
2189
+ export const UpdateMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2190
+ app_name: S.String.pipe(T.Label()),
2191
+ machine_id: S.String.pipe(T.Label()),
2192
+ machine_version: S.optional(S.String),
2193
+ metadata: S.optional(UpdateMachineMetadataRequestMetadataMap),
2194
+ updated_at: S.optional(S.String),
2195
+ }).pipe(T.Http({
2196
+ method: "PUT",
2197
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata",
2198
+ code: 200,
2199
+ }))).annotate({
2200
+ identifier: "UpdateMachineMetadataRequest",
2201
+ });
2202
+ export const UpdateMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2203
+ identifier: "UpdateMachineMetadataResponse",
2204
+ });
2205
+ export const UpdatePostgresUserRoleRequestRole = S.String;
2206
+ export const UpdatePostgresUserRoleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2207
+ postgres_cluster_id: S.String.pipe(T.Label()),
2208
+ username: S.String.pipe(T.Label()),
2209
+ role: UpdatePostgresUserRoleRequestRole,
2210
+ }).pipe(T.Http({
2211
+ method: "PATCH",
2212
+ uri: "/v1/postgres/{postgres_cluster_id}/users/{username}",
2213
+ code: 200,
2214
+ }))).annotate({
2215
+ identifier: "UpdatePostgresUserRoleRequest",
2216
+ });
2217
+ export const UpdatePostgresUserRoleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2218
+ identifier: "UpdatePostgresUserRoleResponse",
2219
+ });
2220
+ export const UpdateSecretsRequestValuesMap = /*@__PURE__*/ S.Record(S.String, S.String);
2221
+ export const UpdateSecretsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2222
+ app_name: S.String.pipe(T.Label()),
2223
+ values: S.optional(UpdateSecretsRequestValuesMap),
2224
+ }).pipe(T.Http({ method: "POST", uri: "/v1/apps/{app_name}/secrets", code: 200 }))).annotate({
2225
+ identifier: "UpdateSecretsRequest",
2226
+ });
2227
+ export const AppSecretsUpdateRespSecretsList = /*@__PURE__*/ S.Array(AppSecret);
2228
+ export const AppSecretsUpdateResp = /*@__PURE__*/ S.suspend(() => S.Struct({
2229
+ Version: S.optional(S.Number),
2230
+ secrets: S.optional(AppSecretsUpdateRespSecretsList),
2231
+ version: S.optional(S.Number),
2232
+ })).annotate({
2233
+ identifier: "AppSecretsUpdateResp",
2234
+ });
2235
+ export const UpdateVolumeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2236
+ app_name: S.String.pipe(T.Label()),
2237
+ volume_id: S.String.pipe(T.Label()),
2238
+ auto_backup_enabled: S.optional(S.Boolean),
2239
+ snapshot_retention: S.optional(S.Number),
2240
+ }).pipe(T.Http({
2241
+ method: "PUT",
2242
+ uri: "/v1/apps/{app_name}/volumes/{volume_id}",
2243
+ code: 200,
2244
+ }))).annotate({
2245
+ identifier: "UpdateVolumeRequest",
2246
+ });
2247
+ export const UpsertMachineMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2248
+ app_name: S.String.pipe(T.Label()),
2249
+ machine_id: S.String.pipe(T.Label()),
2250
+ key: S.String.pipe(T.Label()),
2251
+ updated_at: S.optional(S.String),
2252
+ value: S.optional(S.String),
2253
+ }).pipe(T.Http({
2254
+ method: "POST",
2255
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/metadata/{key}",
2256
+ code: 200,
2257
+ }))).annotate({
2258
+ identifier: "UpsertMachineMetadataRequest",
2259
+ });
2260
+ export const UpsertMachineMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2261
+ identifier: "UpsertMachineMetadataResponse",
2262
+ });
2263
+ export const VerifySecretKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2264
+ app_name: S.String.pipe(T.Label()),
2265
+ secret_name: S.String.pipe(T.Label()),
2266
+ min_version: S.optional(S.String.pipe(T.Query())),
2267
+ plaintext: S.optional(S.String.pipe(T.SensitiveValue({}))),
2268
+ signature: S.optional(S.String),
2269
+ }).pipe(T.Http({
2270
+ method: "POST",
2271
+ uri: "/v1/apps/{app_name}/secretkeys/{secret_name}/verify",
2272
+ code: 200,
2273
+ }))).annotate({
2274
+ identifier: "VerifySecretKeyRequest",
2275
+ });
2276
+ export const VerifySecretKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2277
+ identifier: "VerifySecretKeyResponse",
2278
+ });
2279
+ export const WaitMachineRequestState = S.String;
2280
+ export const WaitMachineRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2281
+ app_name: S.String.pipe(T.Label()),
2282
+ machine_id: S.String.pipe(T.Label()),
2283
+ version: S.optional(S.String.pipe(T.Query())),
2284
+ instance_id: S.optional(S.String.pipe(T.Query())),
2285
+ from_event_id: S.optional(S.String.pipe(T.Query())),
2286
+ timeout: S.optional(S.Number.pipe(T.Query())),
2287
+ state: S.optional(WaitMachineRequestState.pipe(T.Query())),
2288
+ }).pipe(T.Http({
2289
+ method: "GET",
2290
+ uri: "/v1/apps/{app_name}/machines/{machine_id}/wait",
2291
+ code: 200,
2292
+ }))).annotate({
2293
+ identifier: "WaitMachineRequest",
2294
+ });
2295
+ export const WaitMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2296
+ event_id: S.optional(S.String),
2297
+ ok: S.optional(S.Boolean),
2298
+ state: S.optional(S.String),
2299
+ version: S.optional(S.String),
2300
+ })).annotate({
2301
+ identifier: "WaitMachineResponse",
2302
+ });
2303
+ /** Authenticate token header Verify a token header without checking resource access. */
2304
+ export const authenticateToken = /*@__PURE__*/ API.make(() => ({
2305
+ input: AuthenticateTokenRequest,
2306
+ output: AuthenticateTokenResponse,
2307
+ errors: [BadRequest],
2308
+ protocol: FlyIoProtocol,
2309
+ retry: Retry.Retry,
2310
+ }));
2311
+ /** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
2312
+ export const authorizeToken = /*@__PURE__*/ API.make(() => ({
2313
+ input: AuthorizeTokenRequest,
2314
+ output: AuthorizeResponse,
2315
+ errors: [BadRequest],
2316
+ protocol: FlyIoProtocol,
2317
+ retry: Retry.Retry,
2318
+ }));
2319
+ /** Check DNS and re-validate certificate */
2320
+ export const checkAppCertificate = /*@__PURE__*/ API.make(() => ({
2321
+ input: CheckAppCertificateRequest,
2322
+ output: CertificateCheckResponse,
2323
+ errors: [BadRequest, Forbidden, NotFound],
2324
+ protocol: FlyIoProtocol,
2325
+ retry: Retry.Retry,
2326
+ }));
2327
+ /** Cordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
2328
+ export const cordonMachine = /*@__PURE__*/ API.make(() => ({
2329
+ input: CordonMachineRequest,
2330
+ output: CordonMachineResponse,
2331
+ errors: [BadRequest, Forbidden, NotFound],
2332
+ protocol: FlyIoProtocol,
2333
+ retry: Retry.Retry,
2334
+ }));
2335
+ /** Create App Create an app with the specified details in the request body. */
2336
+ export const createApp = /*@__PURE__*/ API.make(() => ({
2337
+ input: CreateAppRequest,
2338
+ output: CreateAppResponse,
2339
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
2340
+ protocol: FlyIoProtocol,
2341
+ retry: Retry.Retry,
2342
+ }));
2343
+ /** Request ACME certificate */
2344
+ export const createAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
2345
+ input: CreateAppAcmeCertificateRequest,
2346
+ output: CertificateDetail,
2347
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
2348
+ protocol: FlyIoProtocol,
2349
+ retry: Retry.Retry,
2350
+ }));
2351
+ /** Upload custom certificate */
2352
+ export const createAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
2353
+ input: CreateAppCustomCertificateRequest,
2354
+ output: CertificateDetail,
2355
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnprocessableEntity],
2356
+ protocol: FlyIoProtocol,
2357
+ retry: Retry.Retry,
2358
+ }));
2359
+ /** Create App deploy token */
2360
+ export const createAppDeployToken = /*@__PURE__*/ API.make(() => ({
2361
+ input: CreateAppDeployTokenRequest,
2362
+ output: CreateAppDeployTokenResponse,
2363
+ errors: [BadRequest, Forbidden, NotFound],
2364
+ protocol: FlyIoProtocol,
2365
+ retry: Retry.Retry,
2366
+ }));
2367
+ /** Assign new IP address to app */
2368
+ export const createAppIPAssignment = /*@__PURE__*/ API.make(() => ({
2369
+ input: CreateAppIPAssignmentRequest,
2370
+ output: AssignIPResponse,
2371
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2372
+ protocol: FlyIoProtocol,
2373
+ retry: Retry.Retry,
2374
+ }));
2375
+ /** Create Machine Create a Machine within a specific app using the details provided in the request body. **Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration! */
2376
+ export const createMachine = /*@__PURE__*/ API.make(() => ({
2377
+ input: CreateMachineRequest,
2378
+ output: Machine,
2379
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2380
+ protocol: FlyIoProtocol,
2381
+ retry: Retry.Retry,
2382
+ }));
2383
+ /** Create Lease Create a lease for a specific Machine within an app using the details provided in the request body. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
2384
+ export const createMachineLease = /*@__PURE__*/ API.make(() => ({
2385
+ input: CreateMachineLeaseRequest,
2386
+ output: Lease,
2387
+ errors: [BadRequest, Forbidden, NotFound],
2388
+ protocol: FlyIoProtocol,
2389
+ retry: Retry.Retry,
2390
+ }));
2391
+ /** Create Postgres Cluster Create a Managed Postgres cluster for the organization named in the request body. Provisioning is asynchronous, and a name is generated when one is not supplied. */
2392
+ export const createPostgres = /*@__PURE__*/ API.make(() => ({
2393
+ input: CreatePostgresRequest,
2394
+ output: ShowPostgresClusterResponse,
2395
+ errors: [BadRequest, NotFound, UnprocessableEntity],
2396
+ protocol: FlyIoProtocol,
2397
+ retry: Retry.Retry,
2398
+ }));
2399
+ /** Attach Cluster to App Attach a specific cluster to a Fly app. The attachment is created if it does not already exist. */
2400
+ export const createPostgresAttachment = /*@__PURE__*/ API.make(() => ({
2401
+ input: CreatePostgresAttachmentRequest,
2402
+ output: CreatePostgresAttachmentResponse,
2403
+ errors: [NotFound],
2404
+ protocol: FlyIoProtocol,
2405
+ retry: Retry.Retry,
2406
+ }));
2407
+ /** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
2408
+ export const createPostgresBackup = /*@__PURE__*/ API.make(() => ({
2409
+ input: CreatePostgresBackupRequest,
2410
+ output: CreatePostgresBackupResponse,
2411
+ errors: [NotFound, Conflict],
2412
+ protocol: FlyIoProtocol,
2413
+ retry: Retry.Retry,
2414
+ }));
2415
+ /** Create Database Create a database within a specific cluster. */
2416
+ export const createPostgresDatabase = /*@__PURE__*/ API.make(() => ({
2417
+ input: CreatePostgresDatabaseRequest,
2418
+ output: PostgresDatabaseResponse,
2419
+ errors: [BadRequest, NotFound, UnprocessableEntity],
2420
+ protocol: FlyIoProtocol,
2421
+ retry: Retry.Retry,
2422
+ }));
2423
+ /** Create User Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint. */
2424
+ export const createPostgresUser = /*@__PURE__*/ API.make(() => ({
2425
+ input: CreatePostgresUserRequest,
2426
+ output: CreatePostgresUserResponse,
2427
+ errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
2428
+ protocol: FlyIoProtocol,
2429
+ retry: Retry.Retry,
2430
+ }));
2431
+ /** Create or update Secret */
2432
+ export const createSecret = /*@__PURE__*/ API.make(() => ({
2433
+ input: CreateSecretRequest,
2434
+ output: SetAppSecretResponse,
2435
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2436
+ protocol: FlyIoProtocol,
2437
+ retry: Retry.Retry,
2438
+ }));
2439
+ /** Create Volume Create a volume for a specific app using the details provided in the request body. */
2440
+ export const createVolume = /*@__PURE__*/ API.make(() => ({
2441
+ input: CreateVolumeRequest,
2442
+ output: Volume,
2443
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2444
+ protocol: FlyIoProtocol,
2445
+ retry: Retry.Retry,
2446
+ }));
2447
+ /** Create Snapshot Create a snapshot for a specific volume within an app. */
2448
+ export const createVolumeSnapshot = /*@__PURE__*/ API.make(() => ({
2449
+ input: CreateVolumeSnapshotRequest,
2450
+ output: CreateVolumeSnapshotResponse,
2451
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2452
+ protocol: FlyIoProtocol,
2453
+ retry: Retry.Retry,
2454
+ }));
2455
+ /** Decrypt with a secret key */
2456
+ export const decryptSecretKey = /*@__PURE__*/ API.make(() => ({
2457
+ input: DecryptSecretKeyRequest,
2458
+ output: DecryptSecretkeyResponse,
2459
+ errors: [BadRequest, Forbidden, NotFound],
2460
+ protocol: FlyIoProtocol,
2461
+ retry: Retry.Retry,
2462
+ }));
2463
+ /** Destroy App Delete an app by its name. */
2464
+ export const deleteApp = /*@__PURE__*/ API.make(() => ({
2465
+ input: DeleteAppRequest,
2466
+ output: DeleteAppResponse,
2467
+ errors: [Forbidden, NotFound],
2468
+ protocol: FlyIoProtocol,
2469
+ retry: Retry.Retry,
2470
+ }));
2471
+ /** Remove ACME certificates */
2472
+ export const deleteAppAcmeCertificate = /*@__PURE__*/ API.make(() => ({
2473
+ input: DeleteAppAcmeCertificateRequest,
2474
+ output: CertificateDetail,
2475
+ errors: [Forbidden, NotFound],
2476
+ protocol: FlyIoProtocol,
2477
+ retry: Retry.Retry,
2478
+ }));
2479
+ /** Remove certificate */
2480
+ export const deleteAppCertificate = /*@__PURE__*/ API.make(() => ({
2481
+ input: DeleteAppCertificateRequest,
2482
+ output: DeleteAppCertificateResponse,
2483
+ errors: [Forbidden, NotFound],
2484
+ protocol: FlyIoProtocol,
2485
+ retry: Retry.Retry,
2486
+ }));
2487
+ /** Remove custom certificate */
2488
+ export const deleteAppCustomCertificate = /*@__PURE__*/ API.make(() => ({
2489
+ input: DeleteAppCustomCertificateRequest,
2490
+ output: DestroyCustomCertificateResponse,
2491
+ errors: [Forbidden, NotFound],
2492
+ protocol: FlyIoProtocol,
2493
+ retry: Retry.Retry,
2494
+ }));
2495
+ /** Remove IP assignment from app */
2496
+ export const deleteAppIPAssignment = /*@__PURE__*/ API.make(() => ({
2497
+ input: DeleteAppIPAssignmentRequest,
2498
+ output: DeleteAppIPAssignmentResponse,
2499
+ errors: [Forbidden, NotFound],
2500
+ protocol: FlyIoProtocol,
2501
+ retry: Retry.Retry,
2502
+ }));
2503
+ /** Destroy Machine Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running. */
2504
+ export const deleteMachine = /*@__PURE__*/ API.make(() => ({
2505
+ input: DeleteMachineRequest,
2506
+ output: DeleteMachineResponse,
2507
+ errors: [Forbidden, NotFound, Conflict],
2508
+ protocol: FlyIoProtocol,
2509
+ retry: Retry.Retry,
2510
+ }));
2511
+ /** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
2512
+ export const deleteMachineMetadata = /*@__PURE__*/ API.make(() => ({
2513
+ input: DeleteMachineMetadataRequest,
2514
+ output: DeleteMachineMetadataResponse,
2515
+ errors: [Forbidden, NotFound],
2516
+ protocol: FlyIoProtocol,
2517
+ retry: Retry.Retry,
2518
+ }));
2519
+ /** Delete Postgres Cluster Delete a Managed Postgres cluster. The cluster is marked for deletion and removed asynchronously. */
2520
+ export const deletePostgres = /*@__PURE__*/ API.make(() => ({
2521
+ input: DeletePostgresRequest,
2522
+ output: DeletePostgresResponse,
2523
+ errors: [NotFound],
2524
+ protocol: FlyIoProtocol,
2525
+ retry: Retry.Retry,
2526
+ }));
2527
+ /** Detach Cluster from App Detach a specific cluster from a Fly app. */
2528
+ export const deletePostgresAttachment = /*@__PURE__*/ API.make(() => ({
2529
+ input: DeletePostgresAttachmentRequest,
2530
+ output: DeletePostgresAttachmentResponse,
2531
+ errors: [NotFound],
2532
+ protocol: FlyIoProtocol,
2533
+ retry: Retry.Retry,
2534
+ }));
2535
+ /** Drop Database Delete a specific database within a cluster, along with objects that depend on it. */
2536
+ export const deletePostgresDatabase = /*@__PURE__*/ API.make(() => ({
2537
+ input: DeletePostgresDatabaseRequest,
2538
+ output: PostgresDatabaseResponse,
2539
+ errors: [BadRequest, NotFound],
2540
+ protocol: FlyIoProtocol,
2541
+ retry: Retry.Retry,
2542
+ }));
2543
+ /** Delete User Delete a specific Postgres user within a cluster. */
2544
+ export const deletePostgresUser = /*@__PURE__*/ API.make(() => ({
2545
+ input: DeletePostgresUserRequest,
2546
+ output: DeletePostgresUserResponse,
2547
+ errors: [BadRequest, NotFound],
2548
+ protocol: FlyIoProtocol,
2549
+ retry: Retry.Retry,
2550
+ }));
2551
+ /** Delete an app secret */
2552
+ export const deleteSecret = /*@__PURE__*/ API.make(() => ({
2553
+ input: DeleteSecretRequest,
2554
+ output: DeleteAppSecretResponse,
2555
+ errors: [Forbidden, NotFound],
2556
+ protocol: FlyIoProtocol,
2557
+ retry: Retry.Retry,
2558
+ }));
2559
+ /** Delete an app's secret key */
2560
+ export const deleteSecretKey = /*@__PURE__*/ API.make(() => ({
2561
+ input: DeleteSecretKeyRequest,
2562
+ output: DeleteSecretkeyResponse,
2563
+ errors: [Forbidden, NotFound],
2564
+ protocol: FlyIoProtocol,
2565
+ retry: Retry.Retry,
2566
+ }));
2567
+ /** Destroy Volume Delete a specific volume within an app by volume ID. */
2568
+ export const deleteVolume = /*@__PURE__*/ API.make(() => ({
2569
+ input: DeleteVolumeRequest,
2570
+ output: Volume,
2571
+ errors: [Forbidden, NotFound, Conflict],
2572
+ protocol: FlyIoProtocol,
2573
+ retry: Retry.Retry,
2574
+ }));
2575
+ /** Disable Extension Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled. */
2576
+ export const disablePostgresExtension = /*@__PURE__*/ API.make(() => ({
2577
+ input: DisablePostgresExtensionRequest,
2578
+ output: DisablePostgresExtensionResponse,
2579
+ errors: [BadRequest, NotFound, UnprocessableEntity],
2580
+ protocol: FlyIoProtocol,
2581
+ retry: Retry.Retry,
2582
+ }));
2583
+ /** Enable Extension Enable a Postgres extension within a specific database. PostGIS extensions require a PostGIS-enabled cluster. */
2584
+ export const enablePostgresExtension = /*@__PURE__*/ API.make(() => ({
2585
+ input: EnablePostgresExtensionRequest,
2586
+ output: EnablePostgresExtensionResponse,
2587
+ errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
2588
+ protocol: FlyIoProtocol,
2589
+ retry: Retry.Retry,
2590
+ }));
2591
+ /** Encrypt with a secret key */
2592
+ export const encryptSecretKey = /*@__PURE__*/ API.make(() => ({
2593
+ input: EncryptSecretKeyRequest,
2594
+ output: EncryptSecretkeyResponse,
2595
+ errors: [BadRequest, Forbidden, NotFound],
2596
+ protocol: FlyIoProtocol,
2597
+ retry: Retry.Retry,
2598
+ }));
2599
+ /** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
2600
+ export const execMachine = /*@__PURE__*/ API.make(() => ({
2601
+ input: ExecMachineRequest,
2602
+ output: Flydv1ExecResponse,
2603
+ errors: [BadRequest, Forbidden, NotFound],
2604
+ protocol: FlyIoProtocol,
2605
+ retry: Retry.Retry,
2606
+ }));
2607
+ /** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
2608
+ export const extendVolume = /*@__PURE__*/ API.make(() => ({
2609
+ input: ExtendVolumeRequest,
2610
+ output: ExtendVolumeResponse,
2611
+ errors: [BadRequest, Forbidden, NotFound],
2612
+ protocol: FlyIoProtocol,
2613
+ retry: Retry.Retry,
2614
+ }));
2615
+ /** Fork Cluster to New Cluster Fork a ready Managed Postgres cluster into a new cluster that inherits the source's settings. The source cluster is left unchanged, and the fork is provisioned asynchronously. */
2616
+ export const forkPostgres = /*@__PURE__*/ API.make(() => ({
2617
+ input: ForkPostgresRequest,
2618
+ output: ShowPostgresClusterResponse,
2619
+ errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
2620
+ protocol: FlyIoProtocol,
2621
+ retry: Retry.Retry,
2622
+ }));
2623
+ /** Generate a random secret key */
2624
+ export const generateSecretKey = /*@__PURE__*/ API.make(() => ({
2625
+ input: GenerateSecretKeyRequest,
2626
+ output: SetSecretkeyResponse,
2627
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2628
+ protocol: FlyIoProtocol,
2629
+ retry: Retry.Retry,
2630
+ }));
2631
+ /** Get App Retrieve details about a specific app by its name. */
2632
+ export const getApp = /*@__PURE__*/ API.make(() => ({
2633
+ input: GetAppRequest,
2634
+ output: App,
2635
+ errors: [Forbidden, NotFound],
2636
+ protocol: FlyIoProtocol,
2637
+ retry: Retry.Retry,
2638
+ }));
2639
+ /** Get certificate details */
2640
+ export const getAppCertificate = /*@__PURE__*/ API.make(() => ({
2641
+ input: GetAppCertificateRequest,
2642
+ output: CertificateDetail,
2643
+ errors: [Forbidden, NotFound],
2644
+ protocol: FlyIoProtocol,
2645
+ retry: Retry.Retry,
2646
+ }));
2647
+ /** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
2648
+ export const getCurrentToken = /*@__PURE__*/ API.make(() => ({
2649
+ input: GetCurrentTokenRequest,
2650
+ output: CurrentTokenResponse,
2651
+ errors: [Forbidden],
2652
+ protocol: FlyIoProtocol,
2653
+ retry: Retry.Retry,
2654
+ }));
2655
+ /** Get Machine Get details of a specific Machine within an app by the Machine ID. */
2656
+ export const getMachine = /*@__PURE__*/ API.make(() => ({
2657
+ input: GetMachineRequest,
2658
+ output: Machine,
2659
+ errors: [Forbidden, NotFound],
2660
+ protocol: FlyIoProtocol,
2661
+ retry: Retry.Retry,
2662
+ }));
2663
+ /** Get Lease Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
2664
+ export const getMachineLease = /*@__PURE__*/ API.make(() => ({
2665
+ input: GetMachineLeaseRequest,
2666
+ output: Lease,
2667
+ errors: [Forbidden, NotFound],
2668
+ protocol: FlyIoProtocol,
2669
+ retry: Retry.Retry,
2670
+ }));
2671
+ /** Get Machine Memory Get current memory limit and available capacity for a machine */
2672
+ export const getMachineMemory = /*@__PURE__*/ API.make(() => ({
2673
+ input: GetMachineMemoryRequest,
2674
+ output: MainMemoryResponse,
2675
+ errors: [Forbidden, NotFound],
2676
+ protocol: FlyIoProtocol,
2677
+ retry: Retry.Retry,
2678
+ }));
2679
+ /** Get Metadata Retrieve metadata for a specific Machine within an app. */
2680
+ export const getMachineMetadata = /*@__PURE__*/ API.make(() => ({
2681
+ input: GetMachineMetadataRequest,
2682
+ output: GetMachineMetadataResponse,
2683
+ errors: [Forbidden, NotFound],
2684
+ protocol: FlyIoProtocol,
2685
+ retry: Retry.Retry,
2686
+ }));
2687
+ /** Get Metadata Value Get the value of a specific metadata key */
2688
+ export const getMachineMetadataKey = /*@__PURE__*/ API.make(() => ({
2689
+ input: GetMachineMetadataKeyRequest,
2690
+ output: MetadataValueResponse,
2691
+ errors: [NotFound],
2692
+ protocol: FlyIoProtocol,
2693
+ retry: Retry.Retry,
2694
+ }));
2695
+ /** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
2696
+ export const getPlacements = /*@__PURE__*/ API.make(() => ({
2697
+ input: GetPlacementsRequest,
2698
+ output: MainGetPlacementsResponse,
2699
+ errors: [BadRequest, Forbidden],
2700
+ protocol: FlyIoProtocol,
2701
+ retry: Retry.Retry,
2702
+ }));
2703
+ /** Get Postgres Cluster Get details of a specific Managed Postgres cluster. */
2704
+ export const getPostgres = /*@__PURE__*/ API.make(() => ({
2705
+ input: GetPostgresRequest,
2706
+ output: ShowPostgresClusterResponse,
2707
+ errors: [NotFound],
2708
+ protocol: FlyIoProtocol,
2709
+ retry: Retry.Retry,
2710
+ }));
2711
+ /** Get Regions List all regions on the platform with their details. */
2712
+ export const getRegions = /*@__PURE__*/ API.make(() => ({
2713
+ input: GetRegionsRequest,
2714
+ output: MainRegionResponse,
2715
+ errors: [Forbidden],
2716
+ protocol: FlyIoProtocol,
2717
+ retry: Retry.Retry,
2718
+ }));
2719
+ /** Get an app secret */
2720
+ export const getSecret = /*@__PURE__*/ API.make(() => ({
2721
+ input: GetSecretRequest,
2722
+ output: AppSecret,
2723
+ errors: [Forbidden, NotFound],
2724
+ protocol: FlyIoProtocol,
2725
+ retry: Retry.Retry,
2726
+ }));
2727
+ /** Get an app's secret key */
2728
+ export const getSecretKey = /*@__PURE__*/ API.make(() => ({
2729
+ input: GetSecretKeyRequest,
2730
+ output: SecretKey,
2731
+ errors: [Forbidden, NotFound],
2732
+ protocol: FlyIoProtocol,
2733
+ retry: Retry.Retry,
2734
+ }));
2735
+ /** Get Volume Retrieve details about a specific volume by its ID within an app. */
2736
+ export const getVolumeById = /*@__PURE__*/ API.make(() => ({
2737
+ input: GetVolumeByIdRequest,
2738
+ output: Volume,
2739
+ errors: [Forbidden, NotFound],
2740
+ protocol: FlyIoProtocol,
2741
+ retry: Retry.Retry,
2742
+ }));
2743
+ /** List certificates for app */
2744
+ export const listAppCertificates = /*@__PURE__*/ API.make(() => ({
2745
+ input: ListAppCertificatesRequest,
2746
+ output: ListCertificatesResponse,
2747
+ errors: [Forbidden, NotFound],
2748
+ protocol: FlyIoProtocol,
2749
+ retry: Retry.Retry,
2750
+ }));
2751
+ /** List IP assignments for app */
2752
+ export const listAppIPAssignments = /*@__PURE__*/ API.make(() => ({
2753
+ input: ListAppIPAssignmentsRequest,
2754
+ output: ListIPAssignmentsResponse,
2755
+ errors: [Forbidden, NotFound],
2756
+ protocol: FlyIoProtocol,
2757
+ retry: Retry.Retry,
2758
+ }));
2759
+ /** List Apps List all apps with the ability to filter by organization slug. */
2760
+ export const listApps = /*@__PURE__*/ API.make(() => ({
2761
+ input: ListAppsRequest,
2762
+ output: ListAppsResponse,
2763
+ errors: [Forbidden],
2764
+ protocol: FlyIoProtocol,
2765
+ retry: Retry.Retry,
2766
+ }));
2767
+ /** List Events List all events associated with a specific Machine within an app. */
2768
+ export const listMachineEvents = /*@__PURE__*/ API.make(() => ({
2769
+ input: ListMachineEventsRequest,
2770
+ output: ListMachineEventsResponse,
2771
+ errors: [Forbidden, NotFound],
2772
+ protocol: FlyIoProtocol,
2773
+ retry: Retry.Retry,
2774
+ }));
2775
+ /** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
2776
+ export const listMachineProcesses = /*@__PURE__*/ API.make(() => ({
2777
+ input: ListMachineProcessesRequest,
2778
+ output: ListMachineProcessesResponse,
2779
+ errors: [BadRequest, Forbidden, NotFound],
2780
+ protocol: FlyIoProtocol,
2781
+ retry: Retry.Retry,
2782
+ }));
2783
+ /** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
2784
+ export const listMachines = /*@__PURE__*/ API.make(() => ({
2785
+ input: ListMachinesRequest,
2786
+ output: ListMachinesResponse,
2787
+ errors: [Forbidden, NotFound],
2788
+ protocol: FlyIoProtocol,
2789
+ retry: Retry.Retry,
2790
+ }));
2791
+ /** List All Machines List all Machines associated with a specific organization. Machines are sorted by their `updated_at` timestamps, oldest to newest. This API call represents "a point in time". Recent machine changes, including creations and destructions, may take time to propagate. When polling with `updated_after`, offset your timestamps to catch late-arriving events. */
2792
+ export const listMachinesOrg = /*@__PURE__*/ API.make(() => ({
2793
+ input: ListMachinesOrgRequest,
2794
+ output: OrgMachinesResponse,
2795
+ errors: [Forbidden, NotFound],
2796
+ protocol: FlyIoProtocol,
2797
+ retry: Retry.Retry,
2798
+ }));
2799
+ /** List Versions List all versions of the configuration for a specific Machine within an app. */
2800
+ export const listMachineVersions = /*@__PURE__*/ API.make(() => ({
2801
+ input: ListMachineVersionsRequest,
2802
+ output: ListMachineVersionsResponse,
2803
+ errors: [Forbidden, NotFound],
2804
+ protocol: FlyIoProtocol,
2805
+ retry: Retry.Retry,
2806
+ }));
2807
+ /** List Postgres Clusters List Managed Postgres clusters for an organization. */
2808
+ export const listPostgres = /*@__PURE__*/ API.make(() => ({
2809
+ input: ListPostgresRequest,
2810
+ output: ListPostgresClustersResponse,
2811
+ errors: [NotFound, UnprocessableEntity],
2812
+ protocol: FlyIoProtocol,
2813
+ retry: Retry.Retry,
2814
+ }));
2815
+ /** List Backups List all backups associated with a specific cluster. */
2816
+ export const listPostgresBackups = /*@__PURE__*/ API.make(() => ({
2817
+ input: ListPostgresBackupsRequest,
2818
+ output: ListPostgresBackupsResponse,
2819
+ errors: [NotFound],
2820
+ protocol: FlyIoProtocol,
2821
+ retry: Retry.Retry,
2822
+ }));
2823
+ /** List Databases List all databases within a specific cluster. */
2824
+ export const listPostgresDatabases = /*@__PURE__*/ API.make(() => ({
2825
+ input: ListPostgresDatabasesRequest,
2826
+ output: ListPostgresDatabasesResponse,
2827
+ errors: [NotFound],
2828
+ protocol: FlyIoProtocol,
2829
+ retry: Retry.Retry,
2830
+ }));
2831
+ /** List Extensions List all extensions available within a specific database, indicating which are installed. */
2832
+ export const listPostgresExtensions = /*@__PURE__*/ API.make(() => ({
2833
+ input: ListPostgresExtensionsRequest,
2834
+ output: ListPostgresExtensionsResponse,
2835
+ errors: [BadRequest, NotFound],
2836
+ protocol: FlyIoProtocol,
2837
+ retry: Retry.Retry,
2838
+ }));
2839
+ /** List Users List all Postgres users within a specific cluster. */
2840
+ export const listPostgresUsers = /*@__PURE__*/ API.make(() => ({
2841
+ input: ListPostgresUsersRequest,
2842
+ output: ListPostgresUsersResponse,
2843
+ errors: [NotFound],
2844
+ protocol: FlyIoProtocol,
2845
+ retry: Retry.Retry,
2846
+ }));
2847
+ /** List secret keys belonging to an app */
2848
+ export const listSecretKeys = /*@__PURE__*/ API.make(() => ({
2849
+ input: ListSecretKeysRequest,
2850
+ output: SecretKeys,
2851
+ errors: [Forbidden, NotFound],
2852
+ protocol: FlyIoProtocol,
2853
+ retry: Retry.Retry,
2854
+ }));
2855
+ /** List app secrets belonging to an app */
2856
+ export const listSecrets = /*@__PURE__*/ API.make(() => ({
2857
+ input: ListSecretsRequest,
2858
+ output: AppSecrets,
2859
+ errors: [Forbidden, NotFound],
2860
+ protocol: FlyIoProtocol,
2861
+ retry: Retry.Retry,
2862
+ }));
2863
+ /** List Volumes List all volumes associated with a specific app. */
2864
+ export const listVolumes = /*@__PURE__*/ API.make(() => ({
2865
+ input: ListVolumesRequest,
2866
+ output: ListVolumesResponse,
2867
+ errors: [Forbidden, NotFound],
2868
+ protocol: FlyIoProtocol,
2869
+ retry: Retry.Retry,
2870
+ }));
2871
+ /** List Snapshots List all snapshots for a specific volume within an app. */
2872
+ export const listVolumeSnapshots = /*@__PURE__*/ API.make(() => ({
2873
+ input: ListVolumeSnapshotsRequest,
2874
+ output: ListVolumeSnapshotsResponse,
2875
+ errors: [Forbidden, NotFound],
2876
+ protocol: FlyIoProtocol,
2877
+ retry: Retry.Retry,
2878
+ }));
2879
+ /** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
2880
+ export const listVolumesOrg = /*@__PURE__*/ API.make(() => ({
2881
+ input: ListVolumesOrgRequest,
2882
+ output: OrgVolumesResponse,
2883
+ errors: [],
2884
+ protocol: FlyIoProtocol,
2885
+ retry: Retry.Retry,
2886
+ }));
2887
+ /** Release Lease Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
2888
+ export const machinesReleaseLease = /*@__PURE__*/ API.make(() => ({
2889
+ input: MachinesReleaseLeaseRequest,
2890
+ output: MachinesReleaseLeaseResponse,
2891
+ errors: [Forbidden, NotFound],
2892
+ protocol: FlyIoProtocol,
2893
+ retry: Retry.Retry,
2894
+ }));
2895
+ /** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
2896
+ export const patchMachineMetadata = /*@__PURE__*/ API.make(() => ({
2897
+ input: PatchMachineMetadataRequest,
2898
+ output: PatchMachineMetadataResponse,
2899
+ errors: [BadRequest],
2900
+ protocol: FlyIoProtocol,
2901
+ retry: Retry.Retry,
2902
+ }));
2903
+ /** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
2904
+ export const postgresUsersCredentials = /*@__PURE__*/ API.make(() => ({
2905
+ input: PostgresUsersCredentialsRequest,
2906
+ output: GetPostgresUserCredentialsResponse,
2907
+ errors: [BadRequest, NotFound],
2908
+ protocol: FlyIoProtocol,
2909
+ retry: Retry.Retry,
2910
+ }));
2911
+ /** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
2912
+ export const reclaimMachineMemory = /*@__PURE__*/ API.make(() => ({
2913
+ input: ReclaimMachineMemoryRequest,
2914
+ output: MainReclaimMemoryResponse,
2915
+ errors: [BadRequest, Forbidden, NotFound],
2916
+ protocol: FlyIoProtocol,
2917
+ retry: Retry.Retry,
2918
+ }));
2919
+ /** Request a Petsem token for accessing KMS This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource. */
2920
+ export const requestKmsToken = /*@__PURE__*/ API.make(() => ({
2921
+ input: RequestKmsTokenRequest,
2922
+ output: RequestKmsTokenResponse,
2923
+ errors: [BadRequest, Forbidden, NotFound],
2924
+ protocol: FlyIoProtocol,
2925
+ retry: Retry.Retry,
2926
+ }));
2927
+ /** Request an OIDC token Request an Open ID Connect token for your machine. Customize the audience claim with the `aud` parameter. This returns a JWT token. Learn more about [using OpenID Connect](/docs/reference/openid-connect/) on Fly.io. */
2928
+ export const requestOidcToken = /*@__PURE__*/ API.make(() => ({
2929
+ input: RequestOidcTokenRequest,
2930
+ output: RequestOidcTokenResponse,
2931
+ errors: [BadRequest, Forbidden, NotFound],
2932
+ protocol: FlyIoProtocol,
2933
+ retry: Retry.Retry,
2934
+ }));
2935
+ /** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
2936
+ export const restartMachine = /*@__PURE__*/ API.make(() => ({
2937
+ input: RestartMachineRequest,
2938
+ output: RestartMachineResponse,
2939
+ errors: [BadRequest, Forbidden, NotFound],
2940
+ protocol: FlyIoProtocol,
2941
+ retry: Retry.Retry,
2942
+ }));
2943
+ /** Restore Backup or Point in Time to New Cluster Restore a backup, or a point in time within the cluster's PITR recovery window, into a new Managed Postgres cluster. The source cluster is left unchanged, and a new cluster is provisioned asynchronously. */
2944
+ export const restorePostgres = /*@__PURE__*/ API.make(() => ({
2945
+ input: RestorePostgresRequest,
2946
+ output: ShowPostgresClusterResponse,
2947
+ errors: [BadRequest, NotFound, UnprocessableEntity],
2948
+ protocol: FlyIoProtocol,
2949
+ retry: Retry.Retry,
2950
+ }));
2951
+ /** Rotate User Password Rotate a specific Postgres user's password within a cluster, optionally terminating the user's existing sessions. */
2952
+ export const rotatePostgresUserPassword = /*@__PURE__*/ API.make(() => ({
2953
+ input: RotatePostgresUserPasswordRequest,
2954
+ output: RotatePostgresPasswordResponse,
2955
+ errors: [BadRequest, NotFound, UnprocessableEntity],
2956
+ protocol: FlyIoProtocol,
2957
+ retry: Retry.Retry,
2958
+ }));
2959
+ /** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
2960
+ export const setMachineMemoryLimit = /*@__PURE__*/ API.make(() => ({
2961
+ input: SetMachineMemoryLimitRequest,
2962
+ output: MainMemoryResponse,
2963
+ errors: [BadRequest, Forbidden, NotFound],
2964
+ protocol: FlyIoProtocol,
2965
+ retry: Retry.Retry,
2966
+ }));
2967
+ /** Create or update a secret key */
2968
+ export const setSecretKey = /*@__PURE__*/ API.make(() => ({
2969
+ input: SetSecretKeyRequest,
2970
+ output: SetSecretkeyResponse,
2971
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2972
+ protocol: FlyIoProtocol,
2973
+ retry: Retry.Retry,
2974
+ }));
2975
+ /** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
2976
+ export const signalMachine = /*@__PURE__*/ API.make(() => ({
2977
+ input: SignalMachineRequest,
2978
+ output: SignalMachineResponse,
2979
+ errors: [BadRequest, Forbidden, NotFound],
2980
+ protocol: FlyIoProtocol,
2981
+ retry: Retry.Retry,
2982
+ }));
2983
+ /** Sign with a secret key */
2984
+ export const signSecretKey = /*@__PURE__*/ API.make(() => ({
2985
+ input: SignSecretKeyRequest,
2986
+ output: SignSecretkeyResponse,
2987
+ errors: [BadRequest, Forbidden, NotFound],
2988
+ protocol: FlyIoProtocol,
2989
+ retry: Retry.Retry,
2990
+ }));
2991
+ /** Start Machine Start a specific Machine within an app. */
2992
+ export const startMachine = /*@__PURE__*/ API.make(() => ({
2993
+ input: StartMachineRequest,
2994
+ output: StartMachineResponse,
2995
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
2996
+ protocol: FlyIoProtocol,
2997
+ retry: Retry.Retry,
2998
+ }));
2999
+ /** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
3000
+ export const stopMachine = /*@__PURE__*/ API.make(() => ({
3001
+ input: StopMachineRequest,
3002
+ output: StopMachineResponse,
3003
+ errors: [BadRequest, Forbidden, NotFound],
3004
+ protocol: FlyIoProtocol,
3005
+ retry: Retry.Retry,
3006
+ }));
3007
+ /** Suspend Machine Suspend a specific Machine within an app. The next start operation will attempt (but is not guaranteed) to resume the Machine from a snapshot taken at suspension time, rather than performing a cold boot. */
3008
+ export const suspendMachine = /*@__PURE__*/ API.make(() => ({
3009
+ input: SuspendMachineRequest,
3010
+ output: SuspendMachineResponse,
3011
+ errors: [BadRequest, Forbidden, NotFound],
3012
+ protocol: FlyIoProtocol,
3013
+ retry: Retry.Retry,
3014
+ }));
3015
+ /** Uncordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
3016
+ export const uncordonMachine = /*@__PURE__*/ API.make(() => ({
3017
+ input: UncordonMachineRequest,
3018
+ output: UncordonMachineResponse,
3019
+ errors: [BadRequest, Forbidden, NotFound],
3020
+ protocol: FlyIoProtocol,
3021
+ retry: Retry.Retry,
3022
+ }));
3023
+ /** Update Machine Update a Machine's configuration using the details provided in the request body. */
3024
+ export const updateMachine = /*@__PURE__*/ API.make(() => ({
3025
+ input: UpdateMachineRequest,
3026
+ output: Machine,
3027
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
3028
+ protocol: FlyIoProtocol,
3029
+ retry: Retry.Retry,
3030
+ }));
3031
+ /** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
3032
+ export const updateMachineMetadata = /*@__PURE__*/ API.make(() => ({
3033
+ input: UpdateMachineMetadataRequest,
3034
+ output: UpdateMachineMetadataResponse,
3035
+ errors: [BadRequest, Forbidden, NotFound],
3036
+ protocol: FlyIoProtocol,
3037
+ retry: Retry.Retry,
3038
+ }));
3039
+ /** Update User Role Update a specific Postgres user's role within a cluster. */
3040
+ export const updatePostgresUserRole = /*@__PURE__*/ API.make(() => ({
3041
+ input: UpdatePostgresUserRoleRequest,
3042
+ output: UpdatePostgresUserRoleResponse,
3043
+ errors: [BadRequest, NotFound, UnprocessableEntity],
3044
+ protocol: FlyIoProtocol,
3045
+ retry: Retry.Retry,
3046
+ }));
3047
+ /** Update app secrets belonging to an app */
3048
+ export const updateSecrets = /*@__PURE__*/ API.make(() => ({
3049
+ input: UpdateSecretsRequest,
3050
+ output: AppSecretsUpdateResp,
3051
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
3052
+ protocol: FlyIoProtocol,
3053
+ retry: Retry.Retry,
3054
+ }));
3055
+ /** Update Volume Update a volume's configuration using the details provided in the request body. */
3056
+ export const updateVolume = /*@__PURE__*/ API.make(() => ({
3057
+ input: UpdateVolumeRequest,
3058
+ output: Volume,
3059
+ errors: [BadRequest, Forbidden, NotFound],
3060
+ protocol: FlyIoProtocol,
3061
+ retry: Retry.Retry,
3062
+ }));
3063
+ /** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
3064
+ export const upsertMachineMetadata = /*@__PURE__*/ API.make(() => ({
3065
+ input: UpsertMachineMetadataRequest,
3066
+ output: UpsertMachineMetadataResponse,
3067
+ errors: [BadRequest, Forbidden, NotFound],
3068
+ protocol: FlyIoProtocol,
3069
+ retry: Retry.Retry,
3070
+ }));
3071
+ /** Verify with a secret key */
3072
+ export const verifySecretKey = /*@__PURE__*/ API.make(() => ({
3073
+ input: VerifySecretKeyRequest,
3074
+ output: VerifySecretKeyResponse,
3075
+ errors: [BadRequest, Forbidden, NotFound],
3076
+ protocol: FlyIoProtocol,
3077
+ retry: Retry.Retry,
3078
+ }));
3079
+ /** Wait for State Wait for a Machine to reach a specific state. Specify the desired state with the state parameter. See the [Machine states table](https://fly.io/docs/machines/working-with-machines/#machine-states) for a list of possible states. The default for this parameter is `started`. This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter. */
3080
+ export const waitMachine = /*@__PURE__*/ API.make(() => ({
3081
+ input: WaitMachineRequest,
3082
+ output: WaitMachineResponse,
3083
+ errors: [BadRequest, Forbidden, NotFound, GatewayTimeout],
3084
+ protocol: FlyIoProtocol,
3085
+ retry: Retry.Retry,
3086
+ }));
3087
+ //# sourceMappingURL=machines.js.map