@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,2763 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type FlyIoOpError, type FlyIoOpContext } from "../protocol.ts";
4
+ import { BadRequest, Conflict, Forbidden, GatewayTimeout, NotFound, UnprocessableEntity } from "../errors.ts";
5
+ export type { FlyIoOpError, FlyIoOpContext };
6
+ export interface AuthenticateTokenRequest {
7
+ header?: string;
8
+ }
9
+ export declare const AuthenticateTokenRequest: S.Schema<AuthenticateTokenRequest>;
10
+ export type MacaroonCaveatSetCaveatsList = Array<unknown>;
11
+ export declare const MacaroonCaveatSetCaveatsList: S.Schema<MacaroonCaveatSetCaveatsList>;
12
+ export interface MacaroonCaveatSet {
13
+ caveats?: MacaroonCaveatSetCaveatsList;
14
+ }
15
+ export declare const MacaroonCaveatSet: S.Schema<MacaroonCaveatSet>;
16
+ export type MacaroonNonceKidList = Array<number>;
17
+ export declare const MacaroonNonceKidList: S.Schema<MacaroonNonceKidList>;
18
+ export type MacaroonNonceRndList = Array<number>;
19
+ export declare const MacaroonNonceRndList: S.Schema<MacaroonNonceRndList>;
20
+ export interface MacaroonNonce {
21
+ kid?: MacaroonNonceKidList;
22
+ proof?: boolean;
23
+ rnd?: MacaroonNonceRndList;
24
+ }
25
+ export declare const MacaroonNonce: S.Schema<MacaroonNonce>;
26
+ export type RootVerifiedTokenPermissionTokenList = Array<number>;
27
+ export declare const RootVerifiedTokenPermissionTokenList: S.Schema<RootVerifiedTokenPermissionTokenList>;
28
+ export interface RootVerifiedToken {
29
+ caveats?: MacaroonCaveatSet;
30
+ header?: string;
31
+ nonce?: MacaroonNonce;
32
+ permission_token?: RootVerifiedTokenPermissionTokenList;
33
+ }
34
+ export declare const RootVerifiedToken: S.Schema<RootVerifiedToken>;
35
+ export type AuthenticateTokenResponseBodyList = Array<RootVerifiedToken>;
36
+ export declare const AuthenticateTokenResponseBodyList: S.Schema<AuthenticateTokenResponseBodyList>;
37
+ export type AuthenticateTokenResponse = AuthenticateTokenResponseBodyList;
38
+ export declare const AuthenticateTokenResponse: S.Schema<AuthenticateTokenResponse>;
39
+ export type RessetAction = 1 | 2 | 4 | 8 | 16 | 31 | 0;
40
+ export declare const RessetAction: any;
41
+ /** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
42
+ export type MainTokenAccessCommandList = Array<string>;
43
+ export declare const MainTokenAccessCommandList: S.Schema<MainTokenAccessCommandList>;
44
+ export interface MainTokenAccess {
45
+ /** Action is the action being taken on the specified resource. This is the combination of individual action characters (e.g "rw") - r: read - w: write - c: create - d: delete - C: control */
46
+ action?: RessetAction | (number & {});
47
+ /** AppFeature is a named set of functionality associated with the app. If this is specified, the AppName field must be set. - images: images in the fly.io registry */
48
+ app_feature?: string;
49
+ /** AppName is the name of the app being accessed. */
50
+ app_name?: string;
51
+ /** Command is the command being executed on a machine. If this is specified, the Machine must be set. */
52
+ command?: MainTokenAccessCommandList;
53
+ /** MachineFeature is a named set of functionality associated with the machine. If this is specified, the Machine field must be set. - metadata: machine metadata service - oidc: OIDC tokens - kmstoken: Petsem tokens for KMS access */
54
+ machine_feature?: string;
55
+ /** MachineID is the ID of the machine being accessed (e.g. 7811701f564258). */
56
+ machine_id?: string;
57
+ /** Mutation is the GraphQL mutation being performed. */
58
+ mutation?: string;
59
+ /** OrgFeature is a named set of functionality associated with the organization. If this is specified, the OrgSlug field must be set. - wg: WireGuard peers - builder: remote builders - addon: addons - membership: organization membership - billing: billing - litefs-cloud: LiteFS Cloud - authentication: authentication settings */
60
+ org_feature?: string;
61
+ /** OrgSlug is the slug of the organization being accessed. */
62
+ org_slug?: string;
63
+ /** SourceMachine is the machine ID of the actor attempting access. */
64
+ source_machine?: string;
65
+ /** StorageObject is the storage object being accessed. If this is specified, the OrgSlug must be set. */
66
+ storage_object?: string;
67
+ /** VolumeID is the encoded ID of the volume being accessed (e.g. vol_r1p6pln1k9m9j7zr). */
68
+ volume_id?: string;
69
+ }
70
+ export declare const MainTokenAccess: S.Schema<MainTokenAccess>;
71
+ export interface AuthorizeTokenRequest {
72
+ access?: MainTokenAccess;
73
+ header?: string;
74
+ }
75
+ export declare const AuthorizeTokenRequest: S.Schema<AuthorizeTokenRequest>;
76
+ export type FlyioAccessCommandList = Array<string>;
77
+ export declare const FlyioAccessCommandList: S.Schema<FlyioAccessCommandList>;
78
+ export interface FlyioAccess {
79
+ action?: RessetAction;
80
+ app_feature?: string;
81
+ appid?: number;
82
+ cluster?: string;
83
+ command?: FlyioAccessCommandList;
84
+ feature?: string;
85
+ machine?: string;
86
+ machine_feature?: string;
87
+ mutation?: string;
88
+ orgid?: number;
89
+ sourceApp?: string;
90
+ sourceMachine?: string;
91
+ sourceOrganization?: string;
92
+ storage_object?: string;
93
+ volume?: string;
94
+ }
95
+ export declare const FlyioAccess: S.Schema<FlyioAccess>;
96
+ export interface AuthorizeResponse {
97
+ access?: FlyioAccess;
98
+ verified_token?: RootVerifiedToken;
99
+ }
100
+ export declare const AuthorizeResponse: S.Schema<AuthorizeResponse>;
101
+ export interface CheckAppCertificateRequest {
102
+ /** Fly App Name */
103
+ app_name: string;
104
+ /** Certificate Hostname */
105
+ hostname: string;
106
+ }
107
+ export declare const CheckAppCertificateRequest: S.Schema<CheckAppCertificateRequest>;
108
+ export type IssuedCertificateType = "rsa" | "ecdsa";
109
+ export declare const IssuedCertificateType: any;
110
+ export interface IssuedCertificate {
111
+ certificate_authority?: string;
112
+ expires_at?: string;
113
+ type?: IssuedCertificateType;
114
+ }
115
+ export declare const IssuedCertificate: S.Schema<IssuedCertificate>;
116
+ export type CertificateEntryIssuedList = Array<IssuedCertificate>;
117
+ export declare const CertificateEntryIssuedList: S.Schema<CertificateEntryIssuedList>;
118
+ export type CertificateEntrySource = "custom" | "fly";
119
+ export declare const CertificateEntrySource: any;
120
+ export type CertificateEntryStatus = "active" | "pending_ownership" | "pending_validation";
121
+ export declare const CertificateEntryStatus: any;
122
+ export interface CertificateEntry {
123
+ created_at?: string;
124
+ expires_at?: string;
125
+ issued?: CertificateEntryIssuedList;
126
+ issuer?: string;
127
+ source?: CertificateEntrySource;
128
+ status?: CertificateEntryStatus;
129
+ }
130
+ export declare const CertificateEntry: S.Schema<CertificateEntry>;
131
+ export type CertificateCheckResponseCertificatesList = Array<CertificateEntry>;
132
+ export declare const CertificateCheckResponseCertificatesList: S.Schema<CertificateCheckResponseCertificatesList>;
133
+ export type DNSRecordsAList = Array<string>;
134
+ export declare const DNSRecordsAList: S.Schema<DNSRecordsAList>;
135
+ export type DNSRecordsAaaaList = Array<string>;
136
+ export declare const DNSRecordsAaaaList: S.Schema<DNSRecordsAaaaList>;
137
+ export type DNSRecordsCnameList = Array<string>;
138
+ export declare const DNSRecordsCnameList: S.Schema<DNSRecordsCnameList>;
139
+ export type DNSRecordsResolvedAddressesList = Array<string>;
140
+ export declare const DNSRecordsResolvedAddressesList: S.Schema<DNSRecordsResolvedAddressesList>;
141
+ export interface DNSRecords {
142
+ a?: DNSRecordsAList;
143
+ aaaa?: DNSRecordsAaaaList;
144
+ acme_challenge_cname?: string;
145
+ cname?: DNSRecordsCnameList;
146
+ ownership_txt?: string;
147
+ resolved_addresses?: DNSRecordsResolvedAddressesList;
148
+ soa?: string;
149
+ }
150
+ export declare const DNSRecords: S.Schema<DNSRecords>;
151
+ export type DNSRequirementsAList = Array<string>;
152
+ export declare const DNSRequirementsAList: S.Schema<DNSRequirementsAList>;
153
+ export type DNSRequirementsAaaaList = Array<string>;
154
+ export declare const DNSRequirementsAaaaList: S.Schema<DNSRequirementsAaaaList>;
155
+ export interface AcmeChallenge {
156
+ name?: string;
157
+ target?: string;
158
+ }
159
+ export declare const AcmeChallenge: S.Schema<AcmeChallenge>;
160
+ export interface OwnershipVerification {
161
+ app_value?: string;
162
+ name?: string;
163
+ org_value?: string;
164
+ }
165
+ export declare const OwnershipVerification: S.Schema<OwnershipVerification>;
166
+ export interface DNSRequirements {
167
+ a?: DNSRequirementsAList;
168
+ aaaa?: DNSRequirementsAaaaList;
169
+ acme_challenge?: AcmeChallenge;
170
+ cname?: string;
171
+ ownership?: OwnershipVerification;
172
+ }
173
+ export declare const DNSRequirements: S.Schema<DNSRequirements>;
174
+ export interface CertificateValidation {
175
+ alpn_configured?: boolean;
176
+ dns_configured?: boolean;
177
+ http_configured?: boolean;
178
+ ownership_txt_configured?: boolean;
179
+ }
180
+ export declare const CertificateValidation: S.Schema<CertificateValidation>;
181
+ export interface CertificateValidationError {
182
+ code?: string;
183
+ message?: string;
184
+ remediation?: string;
185
+ timestamp?: string;
186
+ }
187
+ export declare const CertificateValidationError: S.Schema<CertificateValidationError>;
188
+ export type CertificateCheckResponseValidationErrorsList = Array<CertificateValidationError>;
189
+ export declare const CertificateCheckResponseValidationErrorsList: S.Schema<CertificateCheckResponseValidationErrorsList>;
190
+ export interface CertificateCheckResponse {
191
+ acme_requested?: boolean;
192
+ certificates?: CertificateCheckResponseCertificatesList;
193
+ configured?: boolean;
194
+ dns_provider?: string;
195
+ dns_records?: DNSRecords;
196
+ dns_requirements?: DNSRequirements;
197
+ hostname?: string;
198
+ rate_limited_until?: string;
199
+ status?: string;
200
+ validation?: CertificateValidation;
201
+ validation_errors?: CertificateCheckResponseValidationErrorsList;
202
+ }
203
+ export declare const CertificateCheckResponse: S.Schema<CertificateCheckResponse>;
204
+ export interface CordonMachineRequest {
205
+ /** Fly App Name */
206
+ app_name: string;
207
+ /** Machine ID */
208
+ machine_id: string;
209
+ }
210
+ export declare const CordonMachineRequest: S.Schema<CordonMachineRequest>;
211
+ export interface CordonMachineResponse {
212
+ }
213
+ export declare const CordonMachineResponse: S.Schema<CordonMachineResponse>;
214
+ export interface CreateAppRequest {
215
+ enable_subdomains?: boolean;
216
+ name?: string;
217
+ network?: string;
218
+ org_slug?: string;
219
+ }
220
+ export declare const CreateAppRequest: S.Schema<CreateAppRequest>;
221
+ export interface CreateAppResponse {
222
+ }
223
+ export declare const CreateAppResponse: S.Schema<CreateAppResponse>;
224
+ export interface CreateAppAcmeCertificateRequest {
225
+ /** Fly App Name */
226
+ app_name: string;
227
+ hostname?: string;
228
+ }
229
+ export declare const CreateAppAcmeCertificateRequest: S.Schema<CreateAppAcmeCertificateRequest>;
230
+ export type CertificateDetailCertificatesList = Array<CertificateEntry>;
231
+ export declare const CertificateDetailCertificatesList: S.Schema<CertificateDetailCertificatesList>;
232
+ export type CertificateDetailValidationErrorsList = Array<CertificateValidationError>;
233
+ export declare const CertificateDetailValidationErrorsList: S.Schema<CertificateDetailValidationErrorsList>;
234
+ export interface CertificateDetail {
235
+ acme_requested?: boolean;
236
+ certificates?: CertificateDetailCertificatesList;
237
+ configured?: boolean;
238
+ dns_provider?: string;
239
+ dns_requirements?: DNSRequirements;
240
+ hostname?: string;
241
+ rate_limited_until?: string;
242
+ status?: string;
243
+ validation?: CertificateValidation;
244
+ validation_errors?: CertificateDetailValidationErrorsList;
245
+ }
246
+ export declare const CertificateDetail: S.Schema<CertificateDetail>;
247
+ export interface CreateAppCustomCertificateRequest {
248
+ /** Fly App Name */
249
+ app_name: string;
250
+ fullchain?: string;
251
+ hostname?: string;
252
+ private_key?: string;
253
+ }
254
+ export declare const CreateAppCustomCertificateRequest: S.Schema<CreateAppCustomCertificateRequest>;
255
+ export interface CreateAppDeployTokenRequest {
256
+ /** Fly App Name */
257
+ app_name: string;
258
+ expiry?: string;
259
+ }
260
+ export declare const CreateAppDeployTokenRequest: S.Schema<CreateAppDeployTokenRequest>;
261
+ export interface CreateAppDeployTokenResponse {
262
+ token?: string;
263
+ }
264
+ export declare const CreateAppDeployTokenResponse: S.Schema<CreateAppDeployTokenResponse>;
265
+ /** Type of IP address to allocate. "egress-pair" allocates both v4 and v6 egress IP addresses (recommended when using egress IPs). */
266
+ export type IPAssignmentType = "v4" | "v6" | "shared_v4" | "private_v6" | "egress_v4" | "egress_v6" | "egress_pair";
267
+ export declare const IPAssignmentType: any;
268
+ export interface CreateAppIPAssignmentRequest {
269
+ /** Fly App Name */
270
+ app_name: string;
271
+ network?: string;
272
+ org_slug?: string;
273
+ region?: string;
274
+ service_name?: string;
275
+ type?: IPAssignmentType | (string & {});
276
+ }
277
+ export declare const CreateAppIPAssignmentRequest: S.Schema<CreateAppIPAssignmentRequest>;
278
+ export interface IPPair {
279
+ v4?: string;
280
+ v6?: string;
281
+ }
282
+ export declare const IPPair: S.Schema<IPPair>;
283
+ export interface AssignIPResponse {
284
+ created_at?: string;
285
+ egress?: boolean;
286
+ ip?: string;
287
+ /** ip_pair is returned when "egress-pair" IP type is requested; in this case, ip is null. */
288
+ ip_pair?: IPPair;
289
+ region?: string;
290
+ service_name?: string;
291
+ shared?: boolean;
292
+ }
293
+ export declare const AssignIPResponse: S.Schema<AssignIPResponse>;
294
+ export interface FlyMachineCacheDrive {
295
+ size_mb?: number;
296
+ }
297
+ export declare const FlyMachineCacheDrive: S.Schema<FlyMachineCacheDrive>;
298
+ /** The header value */
299
+ export type FlyMachineHTTPHeaderValuesList = Array<string>;
300
+ export declare const FlyMachineHTTPHeaderValuesList: S.Schema<FlyMachineHTTPHeaderValuesList>;
301
+ /** For http checks, an array of objects with string field Name and array of strings field Values. The key/value pairs specify header and header values that will get passed with the check call. */
302
+ export interface FlyMachineHTTPHeader {
303
+ /** The header name */
304
+ name?: string;
305
+ /** The header value */
306
+ values?: FlyMachineHTTPHeaderValuesList;
307
+ }
308
+ export declare const FlyMachineHTTPHeader: S.Schema<FlyMachineHTTPHeader>;
309
+ export type FlyMachineCheckHeadersList = Array<FlyMachineHTTPHeader>;
310
+ export declare const FlyMachineCheckHeadersList: S.Schema<FlyMachineCheckHeadersList>;
311
+ /** Kind of the check (informational, readiness) */
312
+ export type FlyMachineCheckKind = "informational" | "readiness";
313
+ export declare const FlyMachineCheckKind: any;
314
+ export interface FlyMachineCheck {
315
+ /** The time to wait after a VM starts before checking its health */
316
+ grace_period?: string;
317
+ headers?: FlyMachineCheckHeadersList;
318
+ /** The time between connectivity checks */
319
+ interval?: string;
320
+ /** Kind of the check (informational, readiness) */
321
+ kind?: FlyMachineCheckKind | (string & {});
322
+ /** For http checks, the HTTP method to use to when making the request */
323
+ method?: string;
324
+ /** For http checks, the path to send the request to */
325
+ path?: string;
326
+ /** The port to connect to, often the same as internal_port */
327
+ port?: number;
328
+ /** For http checks, whether to use http or https */
329
+ protocol?: string;
330
+ /** The maximum time a connection can take before being reported as failing its health check */
331
+ timeout?: string;
332
+ /** If the protocol is https, the hostname to use for TLS certificate validation */
333
+ tls_server_name?: string;
334
+ /** For http checks with https protocol, whether or not to verify the TLS certificate */
335
+ tls_skip_verify?: boolean;
336
+ /** tcp or http */
337
+ type?: string;
338
+ }
339
+ export declare const FlyMachineCheck: S.Schema<FlyMachineCheck>;
340
+ /** An optional object that defines one or more named top-level checks. The key for each check is the check name. */
341
+ export type FlyMachineConfigChecksMap = {
342
+ [key: string]: FlyMachineCheck | undefined;
343
+ };
344
+ export declare const FlyMachineConfigChecksMap: S.Schema<FlyMachineConfigChecksMap>;
345
+ /** CmdOverride is used to override the default command of the image. */
346
+ export type FlyContainerConfigCmdList = Array<string>;
347
+ export declare const FlyContainerConfigCmdList: S.Schema<FlyContainerConfigCmdList>;
348
+ export type FlyContainerDependencyCondition = "exited_successfully" | "healthy" | "started";
349
+ export declare const FlyContainerDependencyCondition: any;
350
+ export interface FlyContainerDependency {
351
+ condition?: FlyContainerDependencyCondition | (string & {});
352
+ name?: string;
353
+ }
354
+ export declare const FlyContainerDependency: S.Schema<FlyContainerDependency>;
355
+ /** DependsOn can be used to define dependencies between containers. The container will only be started after all of its dependent conditions have been satisfied. */
356
+ export type FlyContainerConfigDependsOnList = Array<FlyContainerDependency>;
357
+ export declare const FlyContainerConfigDependsOnList: S.Schema<FlyContainerConfigDependsOnList>;
358
+ /** EntrypointOverride is used to override the default entrypoint of the image. */
359
+ export type FlyContainerConfigEntrypointList = Array<string>;
360
+ export declare const FlyContainerConfigEntrypointList: S.Schema<FlyContainerConfigEntrypointList>;
361
+ /** ExtraEnv is used to add additional environment variables to the container. */
362
+ export type FlyContainerConfigEnvMap = {
363
+ [key: string]: string | undefined;
364
+ };
365
+ export declare const FlyContainerConfigEnvMap: S.Schema<FlyContainerConfigEnvMap>;
366
+ /** FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image. */
367
+ export type FlyEnvFromFieldRef = "id" | "version" | "app_name" | "private_ip" | "region" | "image";
368
+ export declare const FlyEnvFromFieldRef: any;
369
+ /** EnvVar defines an environment variable to be populated from a machine field, env_var */
370
+ export interface FlyEnvFrom {
371
+ /** EnvVar is required and is the name of the environment variable that will be set from the secret. It must be a valid environment variable name. */
372
+ env_var?: string;
373
+ /** FieldRef selects a field of the Machine: supports id, version, app_name, private_ip, region, image. */
374
+ field_ref?: FlyEnvFromFieldRef | (string & {});
375
+ }
376
+ export declare const FlyEnvFrom: S.Schema<FlyEnvFrom>;
377
+ /** EnvFrom can be provided to set environment variables from machine fields. */
378
+ export type FlyContainerConfigEnvFromList = Array<FlyEnvFrom>;
379
+ export declare const FlyContainerConfigEnvFromList: S.Schema<FlyContainerConfigEnvFromList>;
380
+ /** Image Config overrides - these fields are used to override the image configuration. If not provided, the image configuration will be used. ExecOverride is used to override the default command of the image. */
381
+ export type FlyContainerConfigExecList = Array<string>;
382
+ export declare const FlyContainerConfigExecList: S.Schema<FlyContainerConfigExecList>;
383
+ /** A file that will be written to the Machine. One of RawValue or SecretName must be set. */
384
+ export interface FlyFile {
385
+ /** GuestPath is the path on the machine where the file will be written and must be an absolute path. For example: /full/path/to/file.json */
386
+ guest_path?: string;
387
+ /** The name of an image to use the OCI image config as the file contents. */
388
+ image_config?: string;
389
+ /** Mode bits used to set permissions on this file as accepted by chmod(2). */
390
+ mode?: number;
391
+ /** The base64 encoded string of the file contents. */
392
+ raw_value?: string;
393
+ /** The name of the secret that contains the base64 encoded file contents. */
394
+ secret_name?: string;
395
+ }
396
+ export declare const FlyFile: S.Schema<FlyFile>;
397
+ /** Files are files that will be written to the container file system. */
398
+ export type FlyContainerConfigFilesList = Array<FlyFile>;
399
+ export declare const FlyContainerConfigFilesList: S.Schema<FlyContainerConfigFilesList>;
400
+ /** The command to run to check the health of the container (e.g. ["cat", "/tmp/healthy"]) */
401
+ export type FlyExecHealthcheckCommandList = Array<string>;
402
+ export declare const FlyExecHealthcheckCommandList: S.Schema<FlyExecHealthcheckCommandList>;
403
+ export interface FlyExecHealthcheck {
404
+ /** The command to run to check the health of the container (e.g. ["cat", "/tmp/healthy"]) */
405
+ command?: FlyExecHealthcheckCommandList;
406
+ }
407
+ export declare const FlyExecHealthcheck: S.Schema<FlyExecHealthcheck>;
408
+ /** Additional headers to send with the request */
409
+ export type FlyHTTPHealthcheckHeadersList = Array<FlyMachineHTTPHeader>;
410
+ export declare const FlyHTTPHealthcheckHeadersList: S.Schema<FlyHTTPHealthcheckHeadersList>;
411
+ export type FlyContainerHealthcheckScheme = "http" | "https";
412
+ export declare const FlyContainerHealthcheckScheme: any;
413
+ export interface FlyHTTPHealthcheck {
414
+ /** Additional headers to send with the request */
415
+ headers?: FlyHTTPHealthcheckHeadersList;
416
+ /** The HTTP method to use to when making the request */
417
+ method?: string;
418
+ /** The path to send the request to */
419
+ path?: string;
420
+ /** The port to connect to, often the same as internal_port */
421
+ port?: number;
422
+ /** Whether to use http or https */
423
+ scheme?: FlyContainerHealthcheckScheme | (string & {});
424
+ /** If the protocol is https, the hostname to use for TLS certificate validation */
425
+ tls_server_name?: string;
426
+ /** If the protocol is https, whether or not to verify the TLS certificate */
427
+ tls_skip_verify?: boolean;
428
+ }
429
+ export declare const FlyHTTPHealthcheck: S.Schema<FlyHTTPHealthcheck>;
430
+ export type FlyContainerHealthcheckKind = "readiness" | "liveness";
431
+ export declare const FlyContainerHealthcheckKind: any;
432
+ export interface FlyTCPHealthcheck {
433
+ /** The port to connect to, often the same as internal_port */
434
+ port?: number;
435
+ }
436
+ export declare const FlyTCPHealthcheck: S.Schema<FlyTCPHealthcheck>;
437
+ export type FlyUnhealthyPolicy = "stop";
438
+ export declare const FlyUnhealthyPolicy: any;
439
+ export interface FlyContainerHealthcheck {
440
+ exec?: FlyExecHealthcheck;
441
+ /** The number of times the check must fail before considering the container unhealthy. */
442
+ failure_threshold?: number;
443
+ /** The time in seconds to wait after a container starts before checking its health. */
444
+ grace_period?: number;
445
+ http?: FlyHTTPHealthcheck;
446
+ /** The time in seconds between executing the defined check. */
447
+ interval?: number;
448
+ /** Kind of healthcheck (readiness, liveness) */
449
+ kind?: FlyContainerHealthcheckKind | (string & {});
450
+ /** The name of the check. Must be unique within the container. */
451
+ name?: string;
452
+ /** The number of times the check must succeeed before considering the container healthy. */
453
+ success_threshold?: number;
454
+ tcp?: FlyTCPHealthcheck;
455
+ /** The time in seconds to wait for the check to complete. */
456
+ timeout?: number;
457
+ /** Unhealthy policy that determines what action to take if a container is deemed unhealthy */
458
+ unhealthy?: FlyUnhealthyPolicy | (string & {});
459
+ }
460
+ export declare const FlyContainerHealthcheck: S.Schema<FlyContainerHealthcheck>;
461
+ /** Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command. */
462
+ export type FlyContainerConfigHealthchecksList = Array<FlyContainerHealthcheck>;
463
+ export declare const FlyContainerConfigHealthchecksList: S.Schema<FlyContainerConfigHealthchecksList>;
464
+ /** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. */
465
+ export type FlyMachineRestartPolicy = "no" | "always" | "on-failure" | "spot-price";
466
+ export declare const FlyMachineRestartPolicy: any;
467
+ /** The Machine restart policy defines whether and how flyd restarts a Machine after its main process exits. See https://fly.io/docs/machines/guides-examples/machine-restart-policy/. */
468
+ export interface FlyMachineRestart {
469
+ /** GPU bid price for spot Machines. */
470
+ gpu_bid_price?: number;
471
+ /** When policy is on-failure, the maximum number of times to attempt to restart the Machine before letting it stop. */
472
+ max_retries?: number;
473
+ /** * no - Never try to restart a Machine automatically when its main process exits, whether that’s on purpose or on a crash. * always - Always restart a Machine automatically and never let it enter a stopped state, even when the main process exits cleanly. * on-failure - Try up to MaxRetries times to automatically restart the Machine if it exits with a non-zero exit code. Default when no explicit policy is set, and for Machines with schedules. * spot-price - Starts the Machine only when there is capacity and the spot price is less than or equal to the bid price. */
474
+ policy?: FlyMachineRestartPolicy | (string & {});
475
+ }
476
+ export declare const FlyMachineRestart: S.Schema<FlyMachineRestart>;
477
+ /** A Secret needing to be set in the environment of the Machine. env_var is required */
478
+ export interface FlyMachineSecret {
479
+ /** EnvVar is required and is the name of the environment variable that will be set from the secret. It must be a valid environment variable name. */
480
+ env_var?: string;
481
+ /** Name is optional and when provided is used to reference a secret name where the EnvVar is different from what was set as the secret name. */
482
+ name?: string;
483
+ }
484
+ export declare const FlyMachineSecret: S.Schema<FlyMachineSecret>;
485
+ /** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
486
+ export type FlyContainerConfigSecretsList = Array<FlyMachineSecret>;
487
+ export declare const FlyContainerConfigSecretsList: S.Schema<FlyContainerConfigSecretsList>;
488
+ export type FlyStopConfigSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
489
+ export declare const FlyStopConfigSignal: any;
490
+ export interface FlyStopConfig {
491
+ signal?: FlyStopConfigSignal | (string & {});
492
+ timeout?: string;
493
+ }
494
+ export declare const FlyStopConfig: S.Schema<FlyStopConfig>;
495
+ export interface FlyContainerConfig {
496
+ /** CmdOverride is used to override the default command of the image. */
497
+ cmd?: FlyContainerConfigCmdList;
498
+ /** DependsOn can be used to define dependencies between containers. The container will only be started after all of its dependent conditions have been satisfied. */
499
+ depends_on?: FlyContainerConfigDependsOnList;
500
+ /** EntrypointOverride is used to override the default entrypoint of the image. */
501
+ entrypoint?: FlyContainerConfigEntrypointList;
502
+ /** ExtraEnv is used to add additional environment variables to the container. */
503
+ env?: FlyContainerConfigEnvMap;
504
+ /** EnvFrom can be provided to set environment variables from machine fields. */
505
+ env_from?: FlyContainerConfigEnvFromList;
506
+ /** Image Config overrides - these fields are used to override the image configuration. If not provided, the image configuration will be used. ExecOverride is used to override the default command of the image. */
507
+ exec?: FlyContainerConfigExecList;
508
+ /** Files are files that will be written to the container file system. */
509
+ files?: FlyContainerConfigFilesList;
510
+ /** Healthchecks determine the health of your containers. Healthchecks can use HTTP, TCP or an Exec command. */
511
+ healthchecks?: FlyContainerConfigHealthchecksList;
512
+ /** Image is the docker image to run. */
513
+ image?: string;
514
+ /** Name is used to identify the container in the machine. */
515
+ name?: string;
516
+ /** Restart is used to define the restart policy for the container. NOTE: spot-price is not supported for containers. */
517
+ restart?: FlyMachineRestart;
518
+ /** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
519
+ secrets?: FlyContainerConfigSecretsList;
520
+ /** Stop is used to define the signal and timeout for stopping the container. */
521
+ stop?: FlyStopConfig;
522
+ /** UserOverride is used to override the default user of the image. */
523
+ user?: string;
524
+ }
525
+ export declare const FlyContainerConfig: S.Schema<FlyContainerConfig>;
526
+ /** Containers are a list of containers that will run in the machine. Currently restricted to only specific organizations. */
527
+ export type FlyMachineConfigContainersList = Array<FlyContainerConfig>;
528
+ export declare const FlyMachineConfigContainersList: S.Schema<FlyMachineConfigContainersList>;
529
+ export interface FlyDnsForwardRule {
530
+ addr?: string;
531
+ basename?: string;
532
+ }
533
+ export declare const FlyDnsForwardRule: S.Schema<FlyDnsForwardRule>;
534
+ export type FlyDNSConfigDnsForwardRulesList = Array<FlyDnsForwardRule>;
535
+ export declare const FlyDNSConfigDnsForwardRulesList: S.Schema<FlyDNSConfigDnsForwardRulesList>;
536
+ export type FlyDNSConfigNameserversList = Array<string>;
537
+ export declare const FlyDNSConfigNameserversList: S.Schema<FlyDNSConfigNameserversList>;
538
+ export interface FlyDnsOption {
539
+ name?: string;
540
+ value?: string;
541
+ }
542
+ export declare const FlyDnsOption: S.Schema<FlyDnsOption>;
543
+ export type FlyDNSConfigOptionsList = Array<FlyDnsOption>;
544
+ export declare const FlyDNSConfigOptionsList: S.Schema<FlyDNSConfigOptionsList>;
545
+ export type FlyDNSConfigSearchesList = Array<string>;
546
+ export declare const FlyDNSConfigSearchesList: S.Schema<FlyDNSConfigSearchesList>;
547
+ export interface FlyDNSConfig {
548
+ dns_forward_rules?: FlyDNSConfigDnsForwardRulesList;
549
+ hostname?: string;
550
+ hostname_fqdn?: string;
551
+ nameservers?: FlyDNSConfigNameserversList;
552
+ options?: FlyDNSConfigOptionsList;
553
+ searches?: FlyDNSConfigSearchesList;
554
+ skip_registration?: boolean;
555
+ }
556
+ export declare const FlyDNSConfig: S.Schema<FlyDNSConfig>;
557
+ /** An object filled with key/value pairs to be set as environment variables */
558
+ export type FlyMachineConfigEnvMap = {
559
+ [key: string]: string | undefined;
560
+ };
561
+ export declare const FlyMachineConfigEnvMap: S.Schema<FlyMachineConfigEnvMap>;
562
+ export type FlyMachineConfigFilesList = Array<FlyFile>;
563
+ export declare const FlyMachineConfigFilesList: S.Schema<FlyMachineConfigFilesList>;
564
+ export type FlyMachineGuestKernelArgsList = Array<string>;
565
+ export declare const FlyMachineGuestKernelArgsList: S.Schema<FlyMachineGuestKernelArgsList>;
566
+ /** Deprecated: use MachineConfig.Rootfs instead */
567
+ export type FlyMachineGuestPersistRootfs = "never" | "always" | "restart";
568
+ export declare const FlyMachineGuestPersistRootfs: any;
569
+ export interface FlyMachineGuest {
570
+ cpu_kind?: string;
571
+ cpus?: number;
572
+ gpu_kind?: string;
573
+ gpus?: number;
574
+ host_dedication_id?: string;
575
+ kernel_args?: FlyMachineGuestKernelArgsList;
576
+ max_memory_mb?: number;
577
+ memory_mb?: number;
578
+ /** Deprecated: use MachineConfig.Rootfs instead */
579
+ persist_rootfs?: FlyMachineGuestPersistRootfs | (string & {});
580
+ }
581
+ export declare const FlyMachineGuest: S.Schema<FlyMachineGuest>;
582
+ export type FlyMachineInitCmdList = Array<string>;
583
+ export declare const FlyMachineInitCmdList: S.Schema<FlyMachineInitCmdList>;
584
+ export type FlyMachineInitEntrypointList = Array<string>;
585
+ export declare const FlyMachineInitEntrypointList: S.Schema<FlyMachineInitEntrypointList>;
586
+ export type FlyMachineInitExecList = Array<string>;
587
+ export declare const FlyMachineInitExecList: S.Schema<FlyMachineInitExecList>;
588
+ export type FlyMachineInitKernelArgsList = Array<string>;
589
+ export declare const FlyMachineInitKernelArgsList: S.Schema<FlyMachineInitKernelArgsList>;
590
+ export interface FlyMachineInit {
591
+ cmd?: FlyMachineInitCmdList;
592
+ entrypoint?: FlyMachineInitEntrypointList;
593
+ exec?: FlyMachineInitExecList;
594
+ kernel_args?: FlyMachineInitKernelArgsList;
595
+ swap_size_mb?: number;
596
+ tty?: boolean;
597
+ }
598
+ export declare const FlyMachineInit: S.Schema<FlyMachineInit>;
599
+ export type FlyMachineConfigMetadataMap = {
600
+ [key: string]: string | undefined;
601
+ };
602
+ export declare const FlyMachineConfigMetadataMap: S.Schema<FlyMachineConfigMetadataMap>;
603
+ export interface FlyMachineMetrics {
604
+ https?: boolean;
605
+ path?: string;
606
+ port?: number;
607
+ }
608
+ export declare const FlyMachineMetrics: S.Schema<FlyMachineMetrics>;
609
+ export interface FlyMachineMount {
610
+ add_size_gb?: number;
611
+ encrypted?: boolean;
612
+ extend_threshold_percent?: number;
613
+ name?: string;
614
+ path?: string;
615
+ size_gb?: number;
616
+ size_gb_limit?: number;
617
+ volume?: string;
618
+ }
619
+ export declare const FlyMachineMount: S.Schema<FlyMachineMount>;
620
+ export type FlyMachineConfigMountsList = Array<FlyMachineMount>;
621
+ export declare const FlyMachineConfigMountsList: S.Schema<FlyMachineConfigMountsList>;
622
+ export type FlyMachineProcessCmdList = Array<string>;
623
+ export declare const FlyMachineProcessCmdList: S.Schema<FlyMachineProcessCmdList>;
624
+ export type FlyMachineProcessEntrypointList = Array<string>;
625
+ export declare const FlyMachineProcessEntrypointList: S.Schema<FlyMachineProcessEntrypointList>;
626
+ export type FlyMachineProcessEnvMap = {
627
+ [key: string]: string | undefined;
628
+ };
629
+ export declare const FlyMachineProcessEnvMap: S.Schema<FlyMachineProcessEnvMap>;
630
+ /** EnvFrom can be provided to set environment variables from machine fields. */
631
+ export type FlyMachineProcessEnvFromList = Array<FlyEnvFrom>;
632
+ export declare const FlyMachineProcessEnvFromList: S.Schema<FlyMachineProcessEnvFromList>;
633
+ export type FlyMachineProcessExecList = Array<string>;
634
+ export declare const FlyMachineProcessExecList: S.Schema<FlyMachineProcessExecList>;
635
+ /** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
636
+ export type FlyMachineProcessSecretsList = Array<FlyMachineSecret>;
637
+ export declare const FlyMachineProcessSecretsList: S.Schema<FlyMachineProcessSecretsList>;
638
+ export interface FlyMachineProcess {
639
+ cmd?: FlyMachineProcessCmdList;
640
+ entrypoint?: FlyMachineProcessEntrypointList;
641
+ env?: FlyMachineProcessEnvMap;
642
+ /** EnvFrom can be provided to set environment variables from machine fields. */
643
+ env_from?: FlyMachineProcessEnvFromList;
644
+ exec?: FlyMachineProcessExecList;
645
+ /** IgnoreAppSecrets can be set to true to ignore the secrets for the App the Machine belongs to and only use the secrets provided at the process level. The default/legacy behavior is to use the secrets provided at the App level. */
646
+ ignore_app_secrets?: boolean;
647
+ /** Secrets can be provided at the process level to explicitly indicate which secrets should be used for the process. If not provided, the secrets provided at the machine level will be used. */
648
+ secrets?: FlyMachineProcessSecretsList;
649
+ user?: string;
650
+ }
651
+ export declare const FlyMachineProcess: S.Schema<FlyMachineProcess>;
652
+ export type FlyMachineConfigProcessesList = Array<FlyMachineProcess>;
653
+ export declare const FlyMachineConfigProcessesList: S.Schema<FlyMachineConfigProcessesList>;
654
+ export type FlyMachineRootfsPersist = "never" | "always" | "restart";
655
+ export declare const FlyMachineRootfsPersist: any;
656
+ export interface FlyMachineRootfs {
657
+ persist?: FlyMachineRootfsPersist | (string & {});
658
+ size_gb?: number;
659
+ }
660
+ export declare const FlyMachineRootfs: S.Schema<FlyMachineRootfs>;
661
+ /** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
662
+ export type FlyMachineServiceAutostop = "off" | "stop" | "suspend";
663
+ export declare const FlyMachineServiceAutostop: any;
664
+ export type FlyMachineServiceCheckHeadersList = Array<FlyMachineHTTPHeader>;
665
+ export declare const FlyMachineServiceCheckHeadersList: S.Schema<FlyMachineServiceCheckHeadersList>;
666
+ export interface FlyMachineServiceCheck {
667
+ /** The time to wait after a VM starts before checking its health */
668
+ grace_period?: string;
669
+ headers?: FlyMachineServiceCheckHeadersList;
670
+ /** The time between connectivity checks */
671
+ interval?: string;
672
+ /** For http checks, the HTTP method to use to when making the request */
673
+ method?: string;
674
+ /** For http checks, the path to send the request to */
675
+ path?: string;
676
+ /** The port to connect to, often the same as internal_port */
677
+ port?: number;
678
+ /** For http checks, whether to use http or https */
679
+ protocol?: string;
680
+ /** The maximum time a connection can take before being reported as failing its health check */
681
+ timeout?: string;
682
+ /** If the protocol is https, the hostname to use for TLS certificate validation */
683
+ tls_server_name?: string;
684
+ /** For http checks with https protocol, whether or not to verify the TLS certificate */
685
+ tls_skip_verify?: boolean;
686
+ /** tcp or http */
687
+ type?: string;
688
+ }
689
+ export declare const FlyMachineServiceCheck: S.Schema<FlyMachineServiceCheck>;
690
+ /** An optional list of service checks */
691
+ export type FlyMachineServiceChecksList = Array<FlyMachineServiceCheck>;
692
+ export declare const FlyMachineServiceChecksList: S.Schema<FlyMachineServiceChecksList>;
693
+ export interface FlyMachineServiceConcurrency {
694
+ hard_limit?: number;
695
+ soft_limit?: number;
696
+ type?: string;
697
+ }
698
+ export declare const FlyMachineServiceConcurrency: S.Schema<FlyMachineServiceConcurrency>;
699
+ export type FlyMachinePortHandlersList = Array<string>;
700
+ export declare const FlyMachinePortHandlersList: S.Schema<FlyMachinePortHandlersList>;
701
+ /** Currently either "cookie" or "header" */
702
+ export type FlyReplayCacheType = "cookie" | "header";
703
+ export declare const FlyReplayCacheType: any;
704
+ export interface FlyReplayCache {
705
+ allow_bypass?: boolean;
706
+ /** Name of the cookie or header to key the cache on */
707
+ name?: string;
708
+ path_prefix?: string;
709
+ ttl_seconds?: number;
710
+ /** Currently either "cookie" or "header" */
711
+ type?: FlyReplayCacheType | (string & {});
712
+ }
713
+ export declare const FlyReplayCache: S.Schema<FlyReplayCache>;
714
+ export type FlyHTTPOptionsReplayCacheList = Array<FlyReplayCache>;
715
+ export declare const FlyHTTPOptionsReplayCacheList: S.Schema<FlyHTTPOptionsReplayCacheList>;
716
+ export type FlyHTTPResponseOptionsHeadersMap = {
717
+ [key: string]: unknown | undefined;
718
+ };
719
+ export declare const FlyHTTPResponseOptionsHeadersMap: S.Schema<FlyHTTPResponseOptionsHeadersMap>;
720
+ export interface FlyHTTPResponseOptions {
721
+ headers?: FlyHTTPResponseOptionsHeadersMap;
722
+ pristine?: boolean;
723
+ }
724
+ export declare const FlyHTTPResponseOptions: S.Schema<FlyHTTPResponseOptions>;
725
+ export interface FlyHTTPOptions {
726
+ compress?: boolean;
727
+ h2_backend?: boolean;
728
+ headers_read_timeout?: number;
729
+ idle_timeout?: number;
730
+ replay_cache?: FlyHTTPOptionsReplayCacheList;
731
+ response?: FlyHTTPResponseOptions;
732
+ }
733
+ export declare const FlyHTTPOptions: S.Schema<FlyHTTPOptions>;
734
+ export interface FlyProxyProtoOptions {
735
+ version?: string;
736
+ }
737
+ export declare const FlyProxyProtoOptions: S.Schema<FlyProxyProtoOptions>;
738
+ export type FlyTLSOptionsAlpnList = Array<string>;
739
+ export declare const FlyTLSOptionsAlpnList: S.Schema<FlyTLSOptionsAlpnList>;
740
+ export type FlyTLSOptionsVersionsList = Array<string>;
741
+ export declare const FlyTLSOptionsVersionsList: S.Schema<FlyTLSOptionsVersionsList>;
742
+ export interface FlyTLSOptions {
743
+ alpn?: FlyTLSOptionsAlpnList;
744
+ default_self_signed?: boolean;
745
+ versions?: FlyTLSOptionsVersionsList;
746
+ }
747
+ export declare const FlyTLSOptions: S.Schema<FlyTLSOptions>;
748
+ export interface FlyMachinePort {
749
+ end_port?: number;
750
+ force_https?: boolean;
751
+ handlers?: FlyMachinePortHandlersList;
752
+ http_options?: FlyHTTPOptions;
753
+ port?: number;
754
+ proxy_proto_options?: FlyProxyProtoOptions;
755
+ start_port?: number;
756
+ tls_options?: FlyTLSOptions;
757
+ }
758
+ export declare const FlyMachinePort: S.Schema<FlyMachinePort>;
759
+ export type FlyMachineServicePortsList = Array<FlyMachinePort>;
760
+ export declare const FlyMachineServicePortsList: S.Schema<FlyMachineServicePortsList>;
761
+ export interface FlyMachineService {
762
+ autostart?: boolean;
763
+ /** Accepts a string (new format) or a boolean (old format). For backward compatibility with older clients, the API continues to use booleans for "off" and "stop" in responses. * "off" or false - Do not autostop the Machine. * "stop" or true - Automatically stop the Machine. * "suspend" - Automatically suspend the Machine, falling back to a full stop if this is not possible. */
764
+ autostop?: FlyMachineServiceAutostop | (string & {});
765
+ /** An optional list of service checks */
766
+ checks?: FlyMachineServiceChecksList;
767
+ concurrency?: FlyMachineServiceConcurrency;
768
+ force_instance_description?: string;
769
+ force_instance_key?: string;
770
+ internal_port?: number;
771
+ min_machines_running?: number;
772
+ ports?: FlyMachineServicePortsList;
773
+ protocol?: string;
774
+ }
775
+ export declare const FlyMachineService: S.Schema<FlyMachineService>;
776
+ export type FlyMachineConfigServicesList = Array<FlyMachineService>;
777
+ export declare const FlyMachineConfigServicesList: S.Schema<FlyMachineConfigServicesList>;
778
+ export interface FlyMachineSpot {
779
+ /** MaxPriceFraction is the maximum fraction of the full Machine price you will pay for this Machine. Range: (0, 1.0] */
780
+ max_price_fraction?: number;
781
+ }
782
+ export declare const FlyMachineSpot: S.Schema<FlyMachineSpot>;
783
+ /** Standbys enable a machine to be a standby for another. In the event of a hardware failure, the standby machine will be started. */
784
+ export type FlyMachineConfigStandbysList = Array<string>;
785
+ export declare const FlyMachineConfigStandbysList: S.Schema<FlyMachineConfigStandbysList>;
786
+ export interface FlyStatic {
787
+ guest_path: string;
788
+ index_document?: string;
789
+ tigris_bucket?: string;
790
+ url_prefix: string;
791
+ }
792
+ export declare const FlyStatic: S.Schema<FlyStatic>;
793
+ export type FlyMachineConfigStaticsList = Array<FlyStatic>;
794
+ export declare const FlyMachineConfigStaticsList: S.Schema<FlyMachineConfigStaticsList>;
795
+ export interface FlyMachineConfig {
796
+ /** Optional boolean telling the Machine to destroy itself once it’s complete (default false) */
797
+ auto_destroy?: boolean;
798
+ cache_drive?: FlyMachineCacheDrive;
799
+ /** An optional object that defines one or more named top-level checks. The key for each check is the check name. */
800
+ checks?: FlyMachineConfigChecksMap;
801
+ /** Containers are a list of containers that will run in the machine. Currently restricted to only specific organizations. */
802
+ containers?: FlyMachineConfigContainersList;
803
+ /** Deprecated: use Service.Autostart instead */
804
+ disable_machine_autostart?: boolean;
805
+ dns?: FlyDNSConfig;
806
+ /** An object filled with key/value pairs to be set as environment variables */
807
+ env?: FlyMachineConfigEnvMap;
808
+ files?: FlyMachineConfigFilesList;
809
+ guest?: FlyMachineGuest;
810
+ /** The docker image to run */
811
+ image?: string;
812
+ init?: FlyMachineInit;
813
+ metadata?: FlyMachineConfigMetadataMap;
814
+ metrics?: FlyMachineMetrics;
815
+ mounts?: FlyMachineConfigMountsList;
816
+ processes?: FlyMachineConfigProcessesList;
817
+ restart?: FlyMachineRestart;
818
+ rootfs?: FlyMachineRootfs;
819
+ schedule?: string;
820
+ services?: FlyMachineConfigServicesList;
821
+ /** Deprecated: use Guest instead */
822
+ size?: string;
823
+ spot?: FlyMachineSpot;
824
+ /** Standbys enable a machine to be a standby for another. In the event of a hardware failure, the standby machine will be started. */
825
+ standbys?: FlyMachineConfigStandbysList;
826
+ statics?: FlyMachineConfigStaticsList;
827
+ stop_config?: FlyStopConfig;
828
+ }
829
+ export declare const FlyMachineConfig: S.Schema<FlyMachineConfig>;
830
+ export interface CreateMachineRequest {
831
+ /** Fly App Name */
832
+ app_name: string;
833
+ /** An object defining the Machine configuration */
834
+ config?: FlyMachineConfig;
835
+ lease_ttl?: number;
836
+ min_secrets_version?: number;
837
+ /** Unique name for this Machine. If omitted, one is generated for you */
838
+ name?: string;
839
+ /** The target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you). */
840
+ region?: string;
841
+ skip_launch?: boolean;
842
+ skip_secrets?: boolean;
843
+ skip_service_registration?: boolean;
844
+ }
845
+ export declare const CreateMachineRequest: S.Schema<CreateMachineRequest>;
846
+ export interface CheckStatus {
847
+ name?: string;
848
+ output?: string;
849
+ status?: string;
850
+ updated_at?: string;
851
+ }
852
+ export declare const CheckStatus: S.Schema<CheckStatus>;
853
+ export type MachineChecksList = Array<CheckStatus>;
854
+ export declare const MachineChecksList: S.Schema<MachineChecksList>;
855
+ export interface MachineEvent {
856
+ id?: string;
857
+ request?: unknown;
858
+ source?: string;
859
+ status?: string;
860
+ timestamp?: number;
861
+ type?: string;
862
+ }
863
+ export declare const MachineEvent: S.Schema<MachineEvent>;
864
+ export type MachineEventsList = Array<MachineEvent>;
865
+ export declare const MachineEventsList: S.Schema<MachineEventsList>;
866
+ export type MachineHostStatus = "ok" | "unknown" | "unreachable";
867
+ export declare const MachineHostStatus: any;
868
+ export type ImageRefLabelsMap = {
869
+ [key: string]: string | undefined;
870
+ };
871
+ export declare const ImageRefLabelsMap: S.Schema<ImageRefLabelsMap>;
872
+ export interface ImageRef {
873
+ digest?: string;
874
+ labels?: ImageRefLabelsMap;
875
+ registry?: string;
876
+ repository?: string;
877
+ tag?: string;
878
+ }
879
+ export declare const ImageRef: S.Schema<ImageRef>;
880
+ export interface StrippedLease {
881
+ description?: string;
882
+ expires_at?: number;
883
+ owner?: string;
884
+ }
885
+ export declare const StrippedLease: S.Schema<StrippedLease>;
886
+ export interface Machine {
887
+ checks?: MachineChecksList;
888
+ config?: FlyMachineConfig;
889
+ cordoned?: boolean;
890
+ created_at?: string;
891
+ events?: MachineEventsList;
892
+ host_status?: MachineHostStatus;
893
+ id?: string;
894
+ image_ref?: ImageRef;
895
+ incomplete_config?: FlyMachineConfig;
896
+ /** InstanceID is unique for each version of the machine */
897
+ instance_id?: string;
898
+ lease?: StrippedLease;
899
+ name?: string;
900
+ /** Nonce is only every returned on machine creation if a lease_duration was provided. */
901
+ nonce?: string;
902
+ /** PrivateIP is the internal 6PN address of the machine. */
903
+ private_ip?: string;
904
+ region?: string;
905
+ state?: string;
906
+ updated_at?: string;
907
+ }
908
+ export declare const Machine: S.Schema<Machine>;
909
+ export interface CreateMachineLeaseRequest {
910
+ /** Fly App Name */
911
+ app_name: string;
912
+ /** Machine ID */
913
+ machine_id: string;
914
+ description?: string;
915
+ /** seconds lease will be valid */
916
+ ttl?: number;
917
+ }
918
+ export declare const CreateMachineLeaseRequest: S.Schema<CreateMachineLeaseRequest>;
919
+ export interface Lease {
920
+ /** Description or reason for the Lease. */
921
+ description?: string;
922
+ /** ExpiresAt is the unix timestamp in UTC to denote when the Lease will no longer be valid. */
923
+ expires_at?: number;
924
+ /** Nonce is the unique ID autogenerated and associated with the Lease. */
925
+ nonce?: string;
926
+ /** Owner is the user identifier which acquired the Lease. */
927
+ owner?: string;
928
+ /** Machine version */
929
+ version?: string;
930
+ }
931
+ export declare const Lease: S.Schema<Lease>;
932
+ /** Postgres major version. */
933
+ export type CreatePostgresRequestPgMajorVersion = "16" | "17";
934
+ export declare const CreatePostgresRequestPgMajorVersion: any;
935
+ /** Plan slug selecting CPU, memory, and disk sizing. */
936
+ export type CreatePostgresRequestPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
937
+ export declare const CreatePostgresRequestPlan: any;
938
+ /** Connection pooler mode. */
939
+ export type CreatePostgresRequestPoolMode = "session" | "transaction";
940
+ export declare const CreatePostgresRequestPoolMode: any;
941
+ export interface CreatePostgresRequest {
942
+ /** Disk size in gigabytes. */
943
+ disk_size_gb?: number;
944
+ /** Name for the cluster. A name is generated when omitted. */
945
+ name?: string;
946
+ /** Slug of the organization that will own the cluster. */
947
+ org_slug: string;
948
+ /** Postgres major version. */
949
+ pg_major_version?: CreatePostgresRequestPgMajorVersion | (string & {});
950
+ /** Plan slug selecting CPU, memory, and disk sizing. */
951
+ plan: CreatePostgresRequestPlan | (string & {});
952
+ /** Connection pooler mode. */
953
+ pool_mode?: CreatePostgresRequestPoolMode | (string & {});
954
+ /** Enable PostGIS support, required to later enable PostGIS extensions. */
955
+ postgis_enabled?: boolean;
956
+ /** Fly region code where the cluster's primary runs. */
957
+ region: string;
958
+ }
959
+ export declare const CreatePostgresRequest: S.Schema<CreatePostgresRequest>;
960
+ export interface PostgresAttachedApp {
961
+ /** Attached Fly app name. */
962
+ name?: string;
963
+ }
964
+ export declare const PostgresAttachedApp: S.Schema<PostgresAttachedApp>;
965
+ /** Apps attached to the cluster. */
966
+ export type PostgresClusterAttachedAppsList = Array<PostgresAttachedApp>;
967
+ export declare const PostgresClusterAttachedAppsList: S.Schema<PostgresClusterAttachedAppsList>;
968
+ /** CPU class. */
969
+ export type PostgresClusterCpuKind = "shared" | "performance";
970
+ export declare const PostgresClusterCpuKind: any;
971
+ export interface PostgresEndpoint {
972
+ /** Hostname to connect to. */
973
+ host?: string;
974
+ /** TCP port. */
975
+ port?: number;
976
+ }
977
+ export declare const PostgresEndpoint: S.Schema<PostgresEndpoint>;
978
+ export interface PostgresNodeEndpoints {
979
+ /** Unpooled connection to the cluster node. */
980
+ direct?: PostgresEndpoint;
981
+ /** Pooled connection to the cluster node (through PgBouncer). */
982
+ pooler?: PostgresEndpoint;
983
+ }
984
+ export declare const PostgresNodeEndpoints: S.Schema<PostgresNodeEndpoints>;
985
+ export interface PostgresClusterEndpoints {
986
+ /** Endpoints for connecting to the primary node. */
987
+ primary?: PostgresNodeEndpoints;
988
+ }
989
+ export declare const PostgresClusterEndpoints: S.Schema<PostgresClusterEndpoints>;
990
+ export interface OrganizationRef {
991
+ /** Organization name. */
992
+ name?: string;
993
+ /** Organization slug. */
994
+ slug?: string;
995
+ }
996
+ export declare const OrganizationRef: S.Schema<OrganizationRef>;
997
+ /** Postgres major version. */
998
+ export type PostgresClusterPgMajorVersion = "16" | "17";
999
+ export declare const PostgresClusterPgMajorVersion: any;
1000
+ /** Plan slug. */
1001
+ export type PostgresClusterPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
1002
+ export declare const PostgresClusterPlan: any;
1003
+ /** Current lifecycle status. */
1004
+ export type PostgresClusterStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
1005
+ export declare const PostgresClusterStatus: any;
1006
+ export interface PostgresCluster {
1007
+ /** Apps attached to the cluster. */
1008
+ attached_apps?: PostgresClusterAttachedAppsList;
1009
+ /** CPU class. */
1010
+ cpu_kind?: PostgresClusterCpuKind;
1011
+ /** vCPUs per node. */
1012
+ cpus?: number;
1013
+ /** RFC 3339 creation timestamp. */
1014
+ created_at?: string;
1015
+ /** Disk size in gigabytes. */
1016
+ disk_size_gb?: number;
1017
+ /** Connection endpoints. Populated once the cluster is ready. */
1018
+ endpoints?: PostgresClusterEndpoints;
1019
+ /** Cluster ID. */
1020
+ id?: string;
1021
+ /** Memory per node in megabytes. */
1022
+ memory_mb?: number;
1023
+ /** Cluster name. */
1024
+ name?: string;
1025
+ organization?: OrganizationRef;
1026
+ /** Postgres major version. */
1027
+ pg_major_version?: PostgresClusterPgMajorVersion;
1028
+ /** Plan slug. */
1029
+ plan?: PostgresClusterPlan;
1030
+ /** Whether PostGIS support is enabled. */
1031
+ postgis_enabled?: boolean;
1032
+ /** Fly region code. */
1033
+ region?: string;
1034
+ /** Number of replicas. */
1035
+ replicas?: number;
1036
+ /** Current lifecycle status. */
1037
+ status?: PostgresClusterStatus;
1038
+ }
1039
+ export declare const PostgresCluster: S.Schema<PostgresCluster>;
1040
+ export interface ShowPostgresClusterResponse {
1041
+ data?: PostgresCluster;
1042
+ }
1043
+ export declare const ShowPostgresClusterResponse: S.Schema<ShowPostgresClusterResponse>;
1044
+ export interface CreatePostgresAttachmentRequest {
1045
+ /** Managed Postgres Cluster ID */
1046
+ postgres_cluster_id: string;
1047
+ /** Name of the Fly app to attach. */
1048
+ app_name: string;
1049
+ }
1050
+ export declare const CreatePostgresAttachmentRequest: S.Schema<CreatePostgresAttachmentRequest>;
1051
+ export interface PostgresAttachment {
1052
+ /** Attached Fly app name. */
1053
+ app_name?: string;
1054
+ /** RFC 3339 timestamp when the attachment was created. */
1055
+ attached_at?: string;
1056
+ /** Cluster ID the app is attached to. */
1057
+ postgres_cluster_id?: string;
1058
+ }
1059
+ export declare const PostgresAttachment: S.Schema<PostgresAttachment>;
1060
+ export interface CreatePostgresAttachmentResponse {
1061
+ data?: PostgresAttachment;
1062
+ }
1063
+ export declare const CreatePostgresAttachmentResponse: S.Schema<CreatePostgresAttachmentResponse>;
1064
+ /** Backup type. */
1065
+ export type CreatePostgresBackupRequestType = "full" | "incr" | "diff";
1066
+ export declare const CreatePostgresBackupRequestType: any;
1067
+ export interface CreatePostgresBackupRequest {
1068
+ /** Managed Postgres Cluster ID */
1069
+ postgres_cluster_id: string;
1070
+ /** Backup type. */
1071
+ type: CreatePostgresBackupRequestType | (string & {});
1072
+ }
1073
+ export declare const CreatePostgresBackupRequest: S.Schema<CreatePostgresBackupRequest>;
1074
+ export interface CreatePostgresBackupResponse {
1075
+ }
1076
+ export declare const CreatePostgresBackupResponse: S.Schema<CreatePostgresBackupResponse>;
1077
+ export interface CreatePostgresDatabaseRequest {
1078
+ /** Managed Postgres Cluster ID */
1079
+ postgres_cluster_id: string;
1080
+ /** Name of the database to create. */
1081
+ name: string;
1082
+ }
1083
+ export declare const CreatePostgresDatabaseRequest: S.Schema<CreatePostgresDatabaseRequest>;
1084
+ export interface PostgresDatabase {
1085
+ /** Database name. */
1086
+ name?: string;
1087
+ }
1088
+ export declare const PostgresDatabase: S.Schema<PostgresDatabase>;
1089
+ export interface PostgresDatabaseResponse {
1090
+ data?: PostgresDatabase;
1091
+ }
1092
+ export declare const PostgresDatabaseResponse: S.Schema<PostgresDatabaseResponse>;
1093
+ /** Role to grant the user. */
1094
+ export type CreatePostgresUserRequestRole = "schema_admin" | "writer" | "reader";
1095
+ export declare const CreatePostgresUserRequestRole: any;
1096
+ export interface CreatePostgresUserRequest {
1097
+ /** Managed Postgres Cluster ID */
1098
+ postgres_cluster_id: string;
1099
+ /** Role to grant the user. */
1100
+ role: CreatePostgresUserRequestRole | (string & {});
1101
+ /** Name for the new user. */
1102
+ username: string;
1103
+ }
1104
+ export declare const CreatePostgresUserRequest: S.Schema<CreatePostgresUserRequest>;
1105
+ /** User role. */
1106
+ export type PostgresUserRole = "schema_admin" | "writer" | "reader";
1107
+ export declare const PostgresUserRole: any;
1108
+ export interface PostgresUser {
1109
+ /** User role. */
1110
+ role?: PostgresUserRole;
1111
+ /** User name. */
1112
+ username?: string;
1113
+ }
1114
+ export declare const PostgresUser: S.Schema<PostgresUser>;
1115
+ export interface CreatePostgresUserResponse {
1116
+ data?: PostgresUser;
1117
+ }
1118
+ export declare const CreatePostgresUserResponse: S.Schema<CreatePostgresUserResponse>;
1119
+ export interface CreateSecretRequest {
1120
+ /** Fly App Name */
1121
+ app_name: string;
1122
+ /** App secret name */
1123
+ secret_name: string;
1124
+ value?: string;
1125
+ }
1126
+ export declare const CreateSecretRequest: S.Schema<CreateSecretRequest>;
1127
+ export interface SetAppSecretResponse {
1128
+ /** DEPRECATED */
1129
+ Version?: number;
1130
+ created_at?: string;
1131
+ digest?: string;
1132
+ name?: string;
1133
+ updated_at?: string;
1134
+ value?: string;
1135
+ version?: number;
1136
+ }
1137
+ export declare const SetAppSecretResponse: S.Schema<SetAppSecretResponse>;
1138
+ export interface CreateVolumeRequest {
1139
+ /** Fly App Name */
1140
+ app_name: string;
1141
+ /** enable scheduled automatic snapshots. Defaults to `true` */
1142
+ auto_backup_enabled?: boolean;
1143
+ compute?: FlyMachineGuest;
1144
+ compute_image?: string;
1145
+ encrypted?: boolean;
1146
+ fstype?: string;
1147
+ name?: string;
1148
+ region?: string;
1149
+ require_unique_zone?: boolean;
1150
+ size_gb?: number;
1151
+ /** restore from snapshot */
1152
+ snapshot_id?: string;
1153
+ snapshot_retention?: number;
1154
+ /** fork from remote volume */
1155
+ source_volume_id?: string;
1156
+ unique_zone_app_wide?: boolean;
1157
+ }
1158
+ export declare const CreateVolumeRequest: S.Schema<CreateVolumeRequest>;
1159
+ export type VolumeHostStatus = "ok" | "unknown" | "unreachable";
1160
+ export declare const VolumeHostStatus: any;
1161
+ export type VolumeType = "local" | "cache";
1162
+ export declare const VolumeType: any;
1163
+ export interface Volume {
1164
+ attached_alloc_id?: string;
1165
+ attached_machine_id?: string;
1166
+ auto_backup_enabled?: boolean;
1167
+ block_size?: number;
1168
+ blocks?: number;
1169
+ blocks_avail?: number;
1170
+ blocks_free?: number;
1171
+ bytes_total?: number;
1172
+ bytes_used?: number;
1173
+ created_at?: string;
1174
+ encrypted?: boolean;
1175
+ fstype?: string;
1176
+ host_status?: VolumeHostStatus;
1177
+ id?: string;
1178
+ name?: string;
1179
+ region?: string;
1180
+ size_gb?: number;
1181
+ snapshot_retention?: number;
1182
+ state?: string;
1183
+ type?: VolumeType;
1184
+ zone?: string;
1185
+ }
1186
+ export declare const Volume: S.Schema<Volume>;
1187
+ export interface CreateVolumeSnapshotRequest {
1188
+ /** Fly App Name */
1189
+ app_name: string;
1190
+ /** Volume ID */
1191
+ volume_id: string;
1192
+ }
1193
+ export declare const CreateVolumeSnapshotRequest: S.Schema<CreateVolumeSnapshotRequest>;
1194
+ export interface CreateVolumeSnapshotResponse {
1195
+ }
1196
+ export declare const CreateVolumeSnapshotResponse: S.Schema<CreateVolumeSnapshotResponse>;
1197
+ export interface DecryptSecretKeyRequest {
1198
+ /** Fly App Name */
1199
+ app_name: string;
1200
+ /** Secret key name */
1201
+ secret_name: string;
1202
+ /** Minimum secrets version to return. Returned when setting a new secret */
1203
+ min_version?: string;
1204
+ associated_data?: string;
1205
+ ciphertext?: string;
1206
+ }
1207
+ export declare const DecryptSecretKeyRequest: S.Schema<DecryptSecretKeyRequest>;
1208
+ export interface DecryptSecretkeyResponse {
1209
+ plaintext?: string;
1210
+ }
1211
+ export declare const DecryptSecretkeyResponse: S.Schema<DecryptSecretkeyResponse>;
1212
+ export interface DeleteAppRequest {
1213
+ /** Fly App Name */
1214
+ app_name: string;
1215
+ }
1216
+ export declare const DeleteAppRequest: S.Schema<DeleteAppRequest>;
1217
+ export interface DeleteAppResponse {
1218
+ }
1219
+ export declare const DeleteAppResponse: S.Schema<DeleteAppResponse>;
1220
+ export interface DeleteAppAcmeCertificateRequest {
1221
+ /** Fly App Name */
1222
+ app_name: string;
1223
+ /** Certificate Hostname */
1224
+ hostname: string;
1225
+ }
1226
+ export declare const DeleteAppAcmeCertificateRequest: S.Schema<DeleteAppAcmeCertificateRequest>;
1227
+ export interface DeleteAppCertificateRequest {
1228
+ /** Fly App Name */
1229
+ app_name: string;
1230
+ /** Certificate Hostname */
1231
+ hostname: string;
1232
+ }
1233
+ export declare const DeleteAppCertificateRequest: S.Schema<DeleteAppCertificateRequest>;
1234
+ export interface DeleteAppCertificateResponse {
1235
+ }
1236
+ export declare const DeleteAppCertificateResponse: S.Schema<DeleteAppCertificateResponse>;
1237
+ export interface DeleteAppCustomCertificateRequest {
1238
+ /** Fly App Name */
1239
+ app_name: string;
1240
+ /** Certificate Hostname */
1241
+ hostname: string;
1242
+ }
1243
+ export declare const DeleteAppCustomCertificateRequest: S.Schema<DeleteAppCustomCertificateRequest>;
1244
+ export type DestroyCustomCertificateResponseCertificatesList = Array<CertificateEntry>;
1245
+ export declare const DestroyCustomCertificateResponseCertificatesList: S.Schema<DestroyCustomCertificateResponseCertificatesList>;
1246
+ export type DestroyCustomCertificateResponseValidationErrorsList = Array<CertificateValidationError>;
1247
+ export declare const DestroyCustomCertificateResponseValidationErrorsList: S.Schema<DestroyCustomCertificateResponseValidationErrorsList>;
1248
+ export interface DestroyCustomCertificateResponse {
1249
+ acme_requested?: boolean;
1250
+ certificates?: DestroyCustomCertificateResponseCertificatesList;
1251
+ configured?: boolean;
1252
+ dns_provider?: string;
1253
+ dns_requirements?: DNSRequirements;
1254
+ hostname?: string;
1255
+ rate_limited_until?: string;
1256
+ status?: string;
1257
+ validation?: CertificateValidation;
1258
+ validation_errors?: DestroyCustomCertificateResponseValidationErrorsList;
1259
+ warning?: string;
1260
+ }
1261
+ export declare const DestroyCustomCertificateResponse: S.Schema<DestroyCustomCertificateResponse>;
1262
+ export interface DeleteAppIPAssignmentRequest {
1263
+ /** Fly App Name */
1264
+ app_name: string;
1265
+ /** IP address */
1266
+ ip: string;
1267
+ }
1268
+ export declare const DeleteAppIPAssignmentRequest: S.Schema<DeleteAppIPAssignmentRequest>;
1269
+ export interface DeleteAppIPAssignmentResponse {
1270
+ }
1271
+ export declare const DeleteAppIPAssignmentResponse: S.Schema<DeleteAppIPAssignmentResponse>;
1272
+ export interface DeleteMachineRequest {
1273
+ /** Fly App Name */
1274
+ app_name: string;
1275
+ /** Machine ID */
1276
+ machine_id: string;
1277
+ /** Force kill the machine if it's running */
1278
+ force?: boolean;
1279
+ }
1280
+ export declare const DeleteMachineRequest: S.Schema<DeleteMachineRequest>;
1281
+ export interface DeleteMachineResponse {
1282
+ }
1283
+ export declare const DeleteMachineResponse: S.Schema<DeleteMachineResponse>;
1284
+ export interface DeleteMachineMetadataRequest {
1285
+ /** Fly App Name */
1286
+ app_name: string;
1287
+ /** Machine ID */
1288
+ machine_id: string;
1289
+ /** Metadata Key */
1290
+ key: string;
1291
+ }
1292
+ export declare const DeleteMachineMetadataRequest: S.Schema<DeleteMachineMetadataRequest>;
1293
+ export interface DeleteMachineMetadataResponse {
1294
+ }
1295
+ export declare const DeleteMachineMetadataResponse: S.Schema<DeleteMachineMetadataResponse>;
1296
+ export interface DeletePostgresRequest {
1297
+ /** Managed Postgres Cluster ID */
1298
+ postgres_cluster_id: string;
1299
+ }
1300
+ export declare const DeletePostgresRequest: S.Schema<DeletePostgresRequest>;
1301
+ export interface DeletePostgresResponse {
1302
+ }
1303
+ export declare const DeletePostgresResponse: S.Schema<DeletePostgresResponse>;
1304
+ export interface DeletePostgresAttachmentRequest {
1305
+ /** Managed Postgres Cluster ID */
1306
+ postgres_cluster_id: string;
1307
+ /** Fly App Name */
1308
+ app_name: string;
1309
+ }
1310
+ export declare const DeletePostgresAttachmentRequest: S.Schema<DeletePostgresAttachmentRequest>;
1311
+ export interface DeletePostgresAttachmentResponse {
1312
+ }
1313
+ export declare const DeletePostgresAttachmentResponse: S.Schema<DeletePostgresAttachmentResponse>;
1314
+ export interface DeletePostgresDatabaseRequest {
1315
+ /** Managed Postgres Cluster ID */
1316
+ postgres_cluster_id: string;
1317
+ /** Database Name */
1318
+ database_name: string;
1319
+ }
1320
+ export declare const DeletePostgresDatabaseRequest: S.Schema<DeletePostgresDatabaseRequest>;
1321
+ export interface DeletePostgresUserRequest {
1322
+ /** Managed Postgres Cluster ID */
1323
+ postgres_cluster_id: string;
1324
+ /** Postgres User Name */
1325
+ username: string;
1326
+ }
1327
+ export declare const DeletePostgresUserRequest: S.Schema<DeletePostgresUserRequest>;
1328
+ export interface DeletePostgresUserResponse {
1329
+ }
1330
+ export declare const DeletePostgresUserResponse: S.Schema<DeletePostgresUserResponse>;
1331
+ export interface DeleteSecretRequest {
1332
+ /** Fly App Name */
1333
+ app_name: string;
1334
+ /** App secret name */
1335
+ secret_name: string;
1336
+ }
1337
+ export declare const DeleteSecretRequest: S.Schema<DeleteSecretRequest>;
1338
+ export interface DeleteAppSecretResponse {
1339
+ /** DEPRECATED */
1340
+ Version?: number;
1341
+ version?: number;
1342
+ }
1343
+ export declare const DeleteAppSecretResponse: S.Schema<DeleteAppSecretResponse>;
1344
+ export interface DeleteSecretKeyRequest {
1345
+ /** Fly App Name */
1346
+ app_name: string;
1347
+ /** Secret key name */
1348
+ secret_name: string;
1349
+ }
1350
+ export declare const DeleteSecretKeyRequest: S.Schema<DeleteSecretKeyRequest>;
1351
+ export interface DeleteSecretkeyResponse {
1352
+ /** DEPRECATED */
1353
+ Version?: number;
1354
+ version?: number;
1355
+ }
1356
+ export declare const DeleteSecretkeyResponse: S.Schema<DeleteSecretkeyResponse>;
1357
+ export interface DeleteVolumeRequest {
1358
+ /** Fly App Name */
1359
+ app_name: string;
1360
+ /** Volume ID */
1361
+ volume_id: string;
1362
+ }
1363
+ export declare const DeleteVolumeRequest: S.Schema<DeleteVolumeRequest>;
1364
+ export interface DisablePostgresExtensionRequest {
1365
+ /** Managed Postgres Cluster ID */
1366
+ postgres_cluster_id: string;
1367
+ /** Database Name */
1368
+ database_name: string;
1369
+ /** Extension Name */
1370
+ extension_name: string;
1371
+ /** Also drop objects that depend on the extension */
1372
+ force?: boolean;
1373
+ }
1374
+ export declare const DisablePostgresExtensionRequest: S.Schema<DisablePostgresExtensionRequest>;
1375
+ export interface DisablePostgresExtensionResponse {
1376
+ }
1377
+ export declare const DisablePostgresExtensionResponse: S.Schema<DisablePostgresExtensionResponse>;
1378
+ export interface EnablePostgresExtensionRequest {
1379
+ /** Managed Postgres Cluster ID */
1380
+ postgres_cluster_id: string;
1381
+ /** Database Name */
1382
+ database_name: string;
1383
+ /** Create the schema first if it does not exist. */
1384
+ create_schema?: boolean;
1385
+ /** Extension to enable. */
1386
+ name: string;
1387
+ /** Schema to install the extension into. Defaults to the database's default schema. */
1388
+ schema?: string;
1389
+ }
1390
+ export declare const EnablePostgresExtensionRequest: S.Schema<EnablePostgresExtensionRequest>;
1391
+ export interface EnablePostgresExtensionResponse {
1392
+ }
1393
+ export declare const EnablePostgresExtensionResponse: S.Schema<EnablePostgresExtensionResponse>;
1394
+ export interface EncryptSecretKeyRequest {
1395
+ /** Fly App Name */
1396
+ app_name: string;
1397
+ /** Secret key name */
1398
+ secret_name: string;
1399
+ /** Minimum secrets version to return. Returned when setting a new secret */
1400
+ min_version?: string;
1401
+ associated_data?: string;
1402
+ plaintext?: string;
1403
+ }
1404
+ export declare const EncryptSecretKeyRequest: S.Schema<EncryptSecretKeyRequest>;
1405
+ export interface EncryptSecretkeyResponse {
1406
+ ciphertext?: string;
1407
+ }
1408
+ export declare const EncryptSecretkeyResponse: S.Schema<EncryptSecretkeyResponse>;
1409
+ export type ExecMachineRequestCommandList = Array<string>;
1410
+ export declare const ExecMachineRequestCommandList: S.Schema<ExecMachineRequestCommandList>;
1411
+ export interface ExecMachineRequest {
1412
+ /** Fly App Name */
1413
+ app_name: string;
1414
+ /** Machine ID */
1415
+ machine_id: string;
1416
+ /** Deprecated: use Command instead */
1417
+ cmd?: string;
1418
+ command?: ExecMachineRequestCommandList;
1419
+ container?: string;
1420
+ /** Machine runs the command in the machine's own namespace instead of in a container. It is mutually exclusive with Container. */
1421
+ machine?: boolean;
1422
+ stdin?: string;
1423
+ timeout?: number;
1424
+ }
1425
+ export declare const ExecMachineRequest: S.Schema<ExecMachineRequest>;
1426
+ export interface Flydv1ExecResponse {
1427
+ exit_code?: number;
1428
+ exit_signal?: number;
1429
+ stderr?: string;
1430
+ stdout?: string;
1431
+ }
1432
+ export declare const Flydv1ExecResponse: S.Schema<Flydv1ExecResponse>;
1433
+ export interface ExtendVolumeRequest {
1434
+ /** Fly App Name */
1435
+ app_name: string;
1436
+ /** Volume ID */
1437
+ volume_id: string;
1438
+ size_gb?: number;
1439
+ }
1440
+ export declare const ExtendVolumeRequest: S.Schema<ExtendVolumeRequest>;
1441
+ export interface ExtendVolumeResponse {
1442
+ needs_restart?: boolean;
1443
+ volume?: Volume;
1444
+ }
1445
+ export declare const ExtendVolumeResponse: S.Schema<ExtendVolumeResponse>;
1446
+ export interface ForkPostgresRequest {
1447
+ /** Managed Postgres Cluster ID */
1448
+ postgres_cluster_id: string;
1449
+ /** Name for the forked cluster. Defaults to the source name with a -fork suffix. */
1450
+ name?: string;
1451
+ }
1452
+ export declare const ForkPostgresRequest: S.Schema<ForkPostgresRequest>;
1453
+ export type GenerateSecretKeyRequestValueList = Array<number>;
1454
+ export declare const GenerateSecretKeyRequestValueList: S.Schema<GenerateSecretKeyRequestValueList>;
1455
+ export interface GenerateSecretKeyRequest {
1456
+ /** Fly App Name */
1457
+ app_name: string;
1458
+ /** Secret key name */
1459
+ secret_name: string;
1460
+ type?: string;
1461
+ value?: GenerateSecretKeyRequestValueList;
1462
+ }
1463
+ export declare const GenerateSecretKeyRequest: S.Schema<GenerateSecretKeyRequest>;
1464
+ export interface SetSecretkeyResponse {
1465
+ /** DEPRECATED */
1466
+ Version?: number;
1467
+ created_at?: string;
1468
+ name?: string;
1469
+ public_key?: string;
1470
+ type?: string;
1471
+ updated_at?: string;
1472
+ version?: number;
1473
+ }
1474
+ export declare const SetSecretkeyResponse: S.Schema<SetSecretkeyResponse>;
1475
+ export interface GetAppRequest {
1476
+ /** Fly App Name */
1477
+ app_name: string;
1478
+ }
1479
+ export declare const GetAppRequest: S.Schema<GetAppRequest>;
1480
+ export interface AppOrganizationInfo {
1481
+ internal_numeric_id?: number;
1482
+ name?: string;
1483
+ slug?: string;
1484
+ }
1485
+ export declare const AppOrganizationInfo: S.Schema<AppOrganizationInfo>;
1486
+ export interface App {
1487
+ id?: string;
1488
+ internal_numeric_id?: number;
1489
+ machine_count?: number;
1490
+ name?: string;
1491
+ network?: string;
1492
+ network_cidr?: string;
1493
+ organization?: AppOrganizationInfo;
1494
+ status?: string;
1495
+ volume_count?: number;
1496
+ }
1497
+ export declare const App: S.Schema<App>;
1498
+ export interface GetAppCertificateRequest {
1499
+ /** Fly App Name */
1500
+ app_name: string;
1501
+ /** Certificate Hostname */
1502
+ hostname: string;
1503
+ }
1504
+ export declare const GetAppCertificateRequest: S.Schema<GetAppCertificateRequest>;
1505
+ export interface GetCurrentTokenRequest {
1506
+ }
1507
+ export declare const GetCurrentTokenRequest: S.Schema<GetCurrentTokenRequest>;
1508
+ export type MainTokenInfoAppsList = Array<string>;
1509
+ export declare const MainTokenInfoAppsList: S.Schema<MainTokenInfoAppsList>;
1510
+ export interface MainTokenInfo {
1511
+ apps?: MainTokenInfoAppsList;
1512
+ org_slug?: string;
1513
+ organization?: string;
1514
+ /** Machine the token is restricted to (FromMachine caveat) */
1515
+ restricted_to_machine?: string;
1516
+ /** Machine making the request */
1517
+ source_machine_id?: string;
1518
+ token_id?: string;
1519
+ /** User identifier if token is for a user */
1520
+ user?: string;
1521
+ }
1522
+ export declare const MainTokenInfo: S.Schema<MainTokenInfo>;
1523
+ export type CurrentTokenResponseTokensList = Array<MainTokenInfo>;
1524
+ export declare const CurrentTokenResponseTokensList: S.Schema<CurrentTokenResponseTokensList>;
1525
+ export interface CurrentTokenResponse {
1526
+ tokens?: CurrentTokenResponseTokensList;
1527
+ }
1528
+ export declare const CurrentTokenResponse: S.Schema<CurrentTokenResponse>;
1529
+ export interface GetMachineRequest {
1530
+ /** Fly App Name */
1531
+ app_name: string;
1532
+ /** Machine ID */
1533
+ machine_id: string;
1534
+ /** Include machine lease */
1535
+ include_leases?: boolean;
1536
+ }
1537
+ export declare const GetMachineRequest: S.Schema<GetMachineRequest>;
1538
+ export interface GetMachineLeaseRequest {
1539
+ /** Fly App Name */
1540
+ app_name: string;
1541
+ /** Machine ID */
1542
+ machine_id: string;
1543
+ }
1544
+ export declare const GetMachineLeaseRequest: S.Schema<GetMachineLeaseRequest>;
1545
+ export interface GetMachineMemoryRequest {
1546
+ /** Fly App Name */
1547
+ app_name: string;
1548
+ /** Machine ID */
1549
+ machine_id: string;
1550
+ }
1551
+ export declare const GetMachineMemoryRequest: S.Schema<GetMachineMemoryRequest>;
1552
+ export interface MainMemoryResponse {
1553
+ available_mb?: number;
1554
+ limit_mb?: number;
1555
+ }
1556
+ export declare const MainMemoryResponse: S.Schema<MainMemoryResponse>;
1557
+ export interface GetMachineMetadataRequest {
1558
+ /** Fly App Name */
1559
+ app_name: string;
1560
+ /** Machine ID */
1561
+ machine_id: string;
1562
+ }
1563
+ export declare const GetMachineMetadataRequest: S.Schema<GetMachineMetadataRequest>;
1564
+ export type GetMachineMetadataResponseBodyMap = {
1565
+ [key: string]: string | undefined;
1566
+ };
1567
+ export declare const GetMachineMetadataResponseBodyMap: S.Schema<GetMachineMetadataResponseBodyMap>;
1568
+ export type GetMachineMetadataResponse = GetMachineMetadataResponseBodyMap;
1569
+ export declare const GetMachineMetadataResponse: S.Schema<GetMachineMetadataResponse>;
1570
+ export interface GetMachineMetadataKeyRequest {
1571
+ /** Fly App Name */
1572
+ app_name: string;
1573
+ /** Machine ID */
1574
+ machine_id: string;
1575
+ /** Metadata Key */
1576
+ key: string;
1577
+ }
1578
+ export declare const GetMachineMetadataKeyRequest: S.Schema<GetMachineMetadataKeyRequest>;
1579
+ export interface MetadataValueResponse {
1580
+ value?: string;
1581
+ }
1582
+ export declare const MetadataValueResponse: S.Schema<MetadataValueResponse>;
1583
+ export type PlacementWeights = {
1584
+ [key: string]: number | undefined;
1585
+ };
1586
+ export declare const PlacementWeights: S.Schema<PlacementWeights>;
1587
+ export interface GetPlacementsRequest {
1588
+ /** Resource requirements for the Machine to simulate. Defaults to a performance-1x machine */
1589
+ compute?: FlyMachineGuest;
1590
+ /** Number of machines to simulate placement. Defaults to 0, which returns the org-specific limit for each region. */
1591
+ count?: number;
1592
+ org_slug: string;
1593
+ /** Region expression for placement as a comma-delimited set of regions or aliases. Defaults to "[region],any", to prefer the API endpoint's local region with any other region as fallback. */
1594
+ region?: string;
1595
+ volume_name?: string;
1596
+ volume_size_bytes?: number;
1597
+ /** Optional weights to override default placement preferences. */
1598
+ weights?: PlacementWeights;
1599
+ }
1600
+ export declare const GetPlacementsRequest: S.Schema<GetPlacementsRequest>;
1601
+ export interface PlacementRegionPlacement {
1602
+ concurrency?: number;
1603
+ count?: number;
1604
+ region?: string;
1605
+ }
1606
+ export declare const PlacementRegionPlacement: S.Schema<PlacementRegionPlacement>;
1607
+ export type MainGetPlacementsResponseRegionsList = Array<PlacementRegionPlacement>;
1608
+ export declare const MainGetPlacementsResponseRegionsList: S.Schema<MainGetPlacementsResponseRegionsList>;
1609
+ export interface MainGetPlacementsResponse {
1610
+ regions?: MainGetPlacementsResponseRegionsList;
1611
+ }
1612
+ export declare const MainGetPlacementsResponse: S.Schema<MainGetPlacementsResponse>;
1613
+ export interface GetPostgresRequest {
1614
+ /** Managed Postgres Cluster ID */
1615
+ postgres_cluster_id: string;
1616
+ }
1617
+ export declare const GetPostgresRequest: S.Schema<GetPostgresRequest>;
1618
+ export interface GetRegionsRequest {
1619
+ }
1620
+ export declare const GetRegionsRequest: S.Schema<GetRegionsRequest>;
1621
+ export interface MainRegionRow {
1622
+ code?: string;
1623
+ deprecated?: boolean;
1624
+ gateway_available?: boolean;
1625
+ geo_region?: string;
1626
+ latitude?: number;
1627
+ longitude?: number;
1628
+ mpg_available?: boolean;
1629
+ name?: string;
1630
+ requires_paid_plan?: boolean;
1631
+ }
1632
+ export declare const MainRegionRow: S.Schema<MainRegionRow>;
1633
+ export type MainRegionResponseRegionsList = Array<MainRegionRow>;
1634
+ export declare const MainRegionResponseRegionsList: S.Schema<MainRegionResponseRegionsList>;
1635
+ export interface MainRegionResponse {
1636
+ nearest?: string;
1637
+ regions?: MainRegionResponseRegionsList;
1638
+ }
1639
+ export declare const MainRegionResponse: S.Schema<MainRegionResponse>;
1640
+ export interface GetSecretRequest {
1641
+ /** Fly App Name */
1642
+ app_name: string;
1643
+ /** App secret name */
1644
+ secret_name: string;
1645
+ /** Minimum secrets version to return. Returned when setting a new secret */
1646
+ min_version?: string;
1647
+ /** Show the secret value. */
1648
+ show_secrets?: boolean;
1649
+ }
1650
+ export declare const GetSecretRequest: S.Schema<GetSecretRequest>;
1651
+ export interface AppSecret {
1652
+ created_at?: string;
1653
+ digest?: string;
1654
+ name?: string;
1655
+ updated_at?: string;
1656
+ value?: string;
1657
+ }
1658
+ export declare const AppSecret: S.Schema<AppSecret>;
1659
+ export interface GetSecretKeyRequest {
1660
+ /** Fly App Name */
1661
+ app_name: string;
1662
+ /** Secret key name */
1663
+ secret_name: string;
1664
+ /** Minimum secrets version to return. Returned when setting a new secret */
1665
+ min_version?: string;
1666
+ }
1667
+ export declare const GetSecretKeyRequest: S.Schema<GetSecretKeyRequest>;
1668
+ export interface SecretKey {
1669
+ created_at?: string;
1670
+ name?: string;
1671
+ public_key?: string;
1672
+ type?: string;
1673
+ updated_at?: string;
1674
+ }
1675
+ export declare const SecretKey: S.Schema<SecretKey>;
1676
+ export interface GetVolumeByIdRequest {
1677
+ /** Fly App Name */
1678
+ app_name: string;
1679
+ /** Volume ID */
1680
+ volume_id: string;
1681
+ }
1682
+ export declare const GetVolumeByIdRequest: S.Schema<GetVolumeByIdRequest>;
1683
+ export interface ListAppCertificatesRequest {
1684
+ /** Fly App Name */
1685
+ app_name: string;
1686
+ /** Hostname filter (substring match) */
1687
+ filter?: string;
1688
+ /** Pagination cursor from previous response */
1689
+ cursor?: string;
1690
+ /** Number of results per page (default 25, max 500) */
1691
+ limit?: number;
1692
+ }
1693
+ export declare const ListAppCertificatesRequest: S.Schema<ListAppCertificatesRequest>;
1694
+ export interface CertificateSummary {
1695
+ acme_alpn_configured?: boolean;
1696
+ acme_dns_configured?: boolean;
1697
+ acme_http_configured?: boolean;
1698
+ acme_requested?: boolean;
1699
+ configured?: boolean;
1700
+ created_at?: string;
1701
+ dns_provider?: string;
1702
+ has_custom_certificate?: boolean;
1703
+ has_fly_certificate?: boolean;
1704
+ hostname?: string;
1705
+ ownership_txt_configured?: boolean;
1706
+ status?: string;
1707
+ updated_at?: string;
1708
+ }
1709
+ export declare const CertificateSummary: S.Schema<CertificateSummary>;
1710
+ export type ListCertificatesResponseCertificatesList = Array<CertificateSummary>;
1711
+ export declare const ListCertificatesResponseCertificatesList: S.Schema<ListCertificatesResponseCertificatesList>;
1712
+ export interface ListCertificatesResponse {
1713
+ certificates?: ListCertificatesResponseCertificatesList;
1714
+ next_cursor?: string;
1715
+ total_count?: number;
1716
+ }
1717
+ export declare const ListCertificatesResponse: S.Schema<ListCertificatesResponse>;
1718
+ export interface ListAppIPAssignmentsRequest {
1719
+ /** Fly App Name */
1720
+ app_name: string;
1721
+ }
1722
+ export declare const ListAppIPAssignmentsRequest: S.Schema<ListAppIPAssignmentsRequest>;
1723
+ export interface IPAssignment {
1724
+ created_at?: string;
1725
+ egress?: boolean;
1726
+ ip?: string;
1727
+ region?: string;
1728
+ service_name?: string;
1729
+ shared?: boolean;
1730
+ type?: string;
1731
+ }
1732
+ export declare const IPAssignment: S.Schema<IPAssignment>;
1733
+ export type ListIPAssignmentsResponseIpsList = Array<IPAssignment>;
1734
+ export declare const ListIPAssignmentsResponseIpsList: S.Schema<ListIPAssignmentsResponseIpsList>;
1735
+ export interface ListIPAssignmentsResponse {
1736
+ ips?: ListIPAssignmentsResponseIpsList;
1737
+ }
1738
+ export declare const ListIPAssignmentsResponse: S.Schema<ListIPAssignmentsResponse>;
1739
+ export interface ListAppsRequest {
1740
+ /** The org slug, or 'personal', to filter apps */
1741
+ org_slug: string;
1742
+ /** Filter apps by role */
1743
+ app_role?: string;
1744
+ }
1745
+ export declare const ListAppsRequest: S.Schema<ListAppsRequest>;
1746
+ export type ListAppsResponseAppsList = Array<App>;
1747
+ export declare const ListAppsResponseAppsList: S.Schema<ListAppsResponseAppsList>;
1748
+ export interface ListAppsResponse {
1749
+ apps?: ListAppsResponseAppsList;
1750
+ total_apps?: number;
1751
+ }
1752
+ export declare const ListAppsResponse: S.Schema<ListAppsResponse>;
1753
+ export interface ListMachineEventsRequest {
1754
+ /** Fly App Name */
1755
+ app_name: string;
1756
+ /** Machine ID */
1757
+ machine_id: string;
1758
+ /** The number of events to fetch (max of 50). If omitted, this is set to 20 by default. */
1759
+ limit?: number;
1760
+ }
1761
+ export declare const ListMachineEventsRequest: S.Schema<ListMachineEventsRequest>;
1762
+ export type ListMachineEventsResponseBodyList = Array<MachineEvent>;
1763
+ export declare const ListMachineEventsResponseBodyList: S.Schema<ListMachineEventsResponseBodyList>;
1764
+ export type ListMachineEventsResponse = ListMachineEventsResponseBodyList;
1765
+ export declare const ListMachineEventsResponse: S.Schema<ListMachineEventsResponse>;
1766
+ export interface ListMachineProcessesRequest {
1767
+ /** Fly App Name */
1768
+ app_name: string;
1769
+ /** Machine ID */
1770
+ machine_id: string;
1771
+ /** Sort by */
1772
+ sort_by?: string;
1773
+ /** Order */
1774
+ order?: string;
1775
+ }
1776
+ export declare const ListMachineProcessesRequest: S.Schema<ListMachineProcessesRequest>;
1777
+ export interface ListenSocket {
1778
+ address?: string;
1779
+ proto?: string;
1780
+ }
1781
+ export declare const ListenSocket: S.Schema<ListenSocket>;
1782
+ export type ProcessStatListenSocketsList = Array<ListenSocket>;
1783
+ export declare const ProcessStatListenSocketsList: S.Schema<ProcessStatListenSocketsList>;
1784
+ export interface ProcessStat {
1785
+ command?: string;
1786
+ cpu?: number;
1787
+ directory?: string;
1788
+ listen_sockets?: ProcessStatListenSocketsList;
1789
+ pid?: number;
1790
+ rss?: number;
1791
+ rtime?: number;
1792
+ stime?: number;
1793
+ }
1794
+ export declare const ProcessStat: S.Schema<ProcessStat>;
1795
+ export type ListMachineProcessesResponseBodyList = Array<ProcessStat>;
1796
+ export declare const ListMachineProcessesResponseBodyList: S.Schema<ListMachineProcessesResponseBodyList>;
1797
+ export type ListMachineProcessesResponse = ListMachineProcessesResponseBodyList;
1798
+ export declare const ListMachineProcessesResponse: S.Schema<ListMachineProcessesResponse>;
1799
+ export interface ListMachinesRequest {
1800
+ /** Fly App Name */
1801
+ app_name: string;
1802
+ /** Include deleted machines */
1803
+ include_deleted?: boolean;
1804
+ /** Include machine leases */
1805
+ include_leases?: boolean;
1806
+ /** Region filter */
1807
+ region?: string;
1808
+ /** comma separated list of states to filter (created, started, stopped, suspended) */
1809
+ state?: string;
1810
+ /** Only return summary info about machines (omit config, checks, events, host_status, nonce, etc.) */
1811
+ summary?: boolean;
1812
+ /** Filter by a machine metadata key and exact value. Replace {key} with the metadata key, for example metadata.foo=bar. Specify multiple metadata filters to require all matches. */
1813
+ metadata__key_?: string;
1814
+ }
1815
+ export declare const ListMachinesRequest: S.Schema<ListMachinesRequest>;
1816
+ export type ListMachinesResponseBodyList = Array<Machine>;
1817
+ export declare const ListMachinesResponseBodyList: S.Schema<ListMachinesResponseBodyList>;
1818
+ export type ListMachinesResponse = ListMachinesResponseBodyList;
1819
+ export declare const ListMachinesResponse: S.Schema<ListMachinesResponse>;
1820
+ export interface ListMachinesOrgRequest {
1821
+ /** Fly Organization Slug */
1822
+ org_slug: string;
1823
+ /** Include deleted machines */
1824
+ include_deleted?: boolean;
1825
+ /** Region filter */
1826
+ region?: string;
1827
+ /** Comma separated list of states to filter (created, started, stopped, suspended) */
1828
+ state?: string;
1829
+ /** Omit config from responses */
1830
+ summary?: boolean;
1831
+ /** Only return machines updated after this time. Timestamp must be in the RFC 3339 format */
1832
+ updated_after?: string;
1833
+ /** Pagination cursor from previous response (takes precedence over updated_after). Note that there is no guarantee that all machines returned by this endpoint are sorted by their updated_at fields. Pagination may reveal machines older than the last updated_at. */
1834
+ cursor?: string;
1835
+ /** The number of machines to fetch (max of 1000). This limit is advisory. Responses may be shorter, or even empty, even when more machines remain. If omitted, the maximum is used */
1836
+ limit?: number;
1837
+ }
1838
+ export declare const ListMachinesOrgRequest: S.Schema<ListMachinesOrgRequest>;
1839
+ export type OrgMachinesResponseErrorRegionsList = Array<string>;
1840
+ export declare const OrgMachinesResponseErrorRegionsList: S.Schema<OrgMachinesResponseErrorRegionsList>;
1841
+ export type MachineOverviewConfigMetadataMap = {
1842
+ [key: string]: string | undefined;
1843
+ };
1844
+ export declare const MachineOverviewConfigMetadataMap: S.Schema<MachineOverviewConfigMetadataMap>;
1845
+ export interface MachineOverviewConfig {
1846
+ guest?: FlyMachineGuest;
1847
+ image?: string;
1848
+ metadata?: MachineOverviewConfigMetadataMap;
1849
+ }
1850
+ export declare const MachineOverviewConfig: S.Schema<MachineOverviewConfig>;
1851
+ export interface OrgMachine {
1852
+ app_name?: string;
1853
+ config?: MachineOverviewConfig;
1854
+ created_at?: string;
1855
+ id?: string;
1856
+ name?: string;
1857
+ private_ip?: string;
1858
+ region?: string;
1859
+ state?: string;
1860
+ updated_at?: string;
1861
+ version?: string;
1862
+ }
1863
+ export declare const OrgMachine: S.Schema<OrgMachine>;
1864
+ export type OrgMachinesResponseMachinesList = Array<OrgMachine>;
1865
+ export declare const OrgMachinesResponseMachinesList: S.Schema<OrgMachinesResponseMachinesList>;
1866
+ export interface OrgMachinesResponse {
1867
+ error_regions?: OrgMachinesResponseErrorRegionsList;
1868
+ last_machine_id?: string;
1869
+ last_updated_at?: string;
1870
+ machines?: OrgMachinesResponseMachinesList;
1871
+ next_cursor?: string;
1872
+ }
1873
+ export declare const OrgMachinesResponse: S.Schema<OrgMachinesResponse>;
1874
+ export interface ListMachineVersionsRequest {
1875
+ /** Fly App Name */
1876
+ app_name: string;
1877
+ /** Machine ID */
1878
+ machine_id: string;
1879
+ }
1880
+ export declare const ListMachineVersionsRequest: S.Schema<ListMachineVersionsRequest>;
1881
+ export interface MachineVersion {
1882
+ user_config?: FlyMachineConfig;
1883
+ version?: string;
1884
+ }
1885
+ export declare const MachineVersion: S.Schema<MachineVersion>;
1886
+ export type ListMachineVersionsResponseBodyList = Array<MachineVersion>;
1887
+ export declare const ListMachineVersionsResponseBodyList: S.Schema<ListMachineVersionsResponseBodyList>;
1888
+ export type ListMachineVersionsResponse = ListMachineVersionsResponseBodyList;
1889
+ export declare const ListMachineVersionsResponse: S.Schema<ListMachineVersionsResponse>;
1890
+ export interface ListPostgresRequest {
1891
+ /** Fly Organization Slug */
1892
+ org_slug: string;
1893
+ /** Include deleted clusters */
1894
+ include_deleted?: boolean;
1895
+ }
1896
+ export declare const ListPostgresRequest: S.Schema<ListPostgresRequest>;
1897
+ /** Apps attached to the cluster. */
1898
+ export type PostgresClusterSummaryAttachedAppsList = Array<PostgresAttachedApp>;
1899
+ export declare const PostgresClusterSummaryAttachedAppsList: S.Schema<PostgresClusterSummaryAttachedAppsList>;
1900
+ /** Plan slug. */
1901
+ export type PostgresClusterSummaryPlan = "basic" | "starter" | "launch" | "scale" | "Performance";
1902
+ export declare const PostgresClusterSummaryPlan: any;
1903
+ /** Current lifecycle status. */
1904
+ export type PostgresClusterSummaryStatus = "creating" | "initializing" | "ready" | "deleting" | "deleted" | "failed";
1905
+ export declare const PostgresClusterSummaryStatus: any;
1906
+ export interface PostgresClusterSummary {
1907
+ /** Apps attached to the cluster. */
1908
+ attached_apps?: PostgresClusterSummaryAttachedAppsList;
1909
+ /** RFC 3339 creation timestamp. */
1910
+ created_at?: string;
1911
+ /** RFC 3339 deletion timestamp; present for deleted clusters. */
1912
+ deleted_at?: string;
1913
+ /** Cluster ID. */
1914
+ id?: string;
1915
+ /** Cluster name. */
1916
+ name?: string;
1917
+ /** Plan slug. */
1918
+ plan?: PostgresClusterSummaryPlan;
1919
+ /** Fly region code. */
1920
+ region?: string;
1921
+ /** Current lifecycle status. */
1922
+ status?: PostgresClusterSummaryStatus;
1923
+ }
1924
+ export declare const PostgresClusterSummary: S.Schema<PostgresClusterSummary>;
1925
+ export type ListPostgresClustersResponseDataList = Array<PostgresClusterSummary>;
1926
+ export declare const ListPostgresClustersResponseDataList: S.Schema<ListPostgresClustersResponseDataList>;
1927
+ export interface ListPostgresClustersResponse {
1928
+ data?: ListPostgresClustersResponseDataList;
1929
+ }
1930
+ export declare const ListPostgresClustersResponse: S.Schema<ListPostgresClustersResponse>;
1931
+ export interface ListPostgresBackupsRequest {
1932
+ /** Managed Postgres Cluster ID */
1933
+ postgres_cluster_id: string;
1934
+ }
1935
+ export declare const ListPostgresBackupsRequest: S.Schema<ListPostgresBackupsRequest>;
1936
+ /** Backup type. */
1937
+ export type PostgresBackupType = "full" | "incr" | "diff";
1938
+ export declare const PostgresBackupType: any;
1939
+ export interface PostgresBackup {
1940
+ /** RFC 3339 stop timestamp. */
1941
+ finished_at?: string;
1942
+ /** Backup ID. */
1943
+ id?: string;
1944
+ /** Backup size in bytes. */
1945
+ size_bytes?: number;
1946
+ /** RFC 3339 start timestamp. */
1947
+ started_at?: string;
1948
+ /** Backup status. */
1949
+ status?: string;
1950
+ /** Backup type. */
1951
+ type?: PostgresBackupType;
1952
+ }
1953
+ export declare const PostgresBackup: S.Schema<PostgresBackup>;
1954
+ export type ListPostgresBackupsResponseDataList = Array<PostgresBackup>;
1955
+ export declare const ListPostgresBackupsResponseDataList: S.Schema<ListPostgresBackupsResponseDataList>;
1956
+ export interface ListPostgresBackupsResponse {
1957
+ data?: ListPostgresBackupsResponseDataList;
1958
+ }
1959
+ export declare const ListPostgresBackupsResponse: S.Schema<ListPostgresBackupsResponse>;
1960
+ export interface ListPostgresDatabasesRequest {
1961
+ /** Managed Postgres Cluster ID */
1962
+ postgres_cluster_id: string;
1963
+ }
1964
+ export declare const ListPostgresDatabasesRequest: S.Schema<ListPostgresDatabasesRequest>;
1965
+ export type ListPostgresDatabasesResponseDataList = Array<PostgresDatabase>;
1966
+ export declare const ListPostgresDatabasesResponseDataList: S.Schema<ListPostgresDatabasesResponseDataList>;
1967
+ export interface ListPostgresDatabasesResponse {
1968
+ data?: ListPostgresDatabasesResponseDataList;
1969
+ }
1970
+ export declare const ListPostgresDatabasesResponse: S.Schema<ListPostgresDatabasesResponse>;
1971
+ export interface ListPostgresExtensionsRequest {
1972
+ /** Managed Postgres Cluster ID */
1973
+ postgres_cluster_id: string;
1974
+ /** Database Name */
1975
+ database_name: string;
1976
+ }
1977
+ export declare const ListPostgresExtensionsRequest: S.Schema<ListPostgresExtensionsRequest>;
1978
+ export interface PostgresInstalledExtension {
1979
+ /** Schema the extension is installed into. */
1980
+ schema?: string;
1981
+ /** Installed version. */
1982
+ version?: string;
1983
+ }
1984
+ export declare const PostgresInstalledExtension: S.Schema<PostgresInstalledExtension>;
1985
+ export interface PostgresExtension {
1986
+ /** Default version installed when enabled. */
1987
+ default_version?: string;
1988
+ /** Human-readable description. */
1989
+ description?: string;
1990
+ /** Installation details, or null when the extension is not installed. */
1991
+ installed?: PostgresInstalledExtension;
1992
+ /** Extension name. */
1993
+ name?: string;
1994
+ /** Whether this is a system extension that cannot be disabled. */
1995
+ system?: boolean;
1996
+ }
1997
+ export declare const PostgresExtension: S.Schema<PostgresExtension>;
1998
+ export type ListPostgresExtensionsResponseDataList = Array<PostgresExtension>;
1999
+ export declare const ListPostgresExtensionsResponseDataList: S.Schema<ListPostgresExtensionsResponseDataList>;
2000
+ export interface ListPostgresExtensionsResponse {
2001
+ data?: ListPostgresExtensionsResponseDataList;
2002
+ }
2003
+ export declare const ListPostgresExtensionsResponse: S.Schema<ListPostgresExtensionsResponse>;
2004
+ export interface ListPostgresUsersRequest {
2005
+ /** Managed Postgres Cluster ID */
2006
+ postgres_cluster_id: string;
2007
+ }
2008
+ export declare const ListPostgresUsersRequest: S.Schema<ListPostgresUsersRequest>;
2009
+ export type ListPostgresUsersResponseDataList = Array<PostgresUser>;
2010
+ export declare const ListPostgresUsersResponseDataList: S.Schema<ListPostgresUsersResponseDataList>;
2011
+ export interface ListPostgresUsersResponse {
2012
+ data?: ListPostgresUsersResponseDataList;
2013
+ }
2014
+ export declare const ListPostgresUsersResponse: S.Schema<ListPostgresUsersResponse>;
2015
+ export interface ListSecretKeysRequest {
2016
+ /** Fly App Name */
2017
+ app_name: string;
2018
+ /** Minimum secrets version to return. Returned when setting a new secret */
2019
+ min_version?: string;
2020
+ /** Comma-seperated list of secret keys to list */
2021
+ types?: string;
2022
+ }
2023
+ export declare const ListSecretKeysRequest: S.Schema<ListSecretKeysRequest>;
2024
+ export type SecretKeysSecretKeysList = Array<SecretKey>;
2025
+ export declare const SecretKeysSecretKeysList: S.Schema<SecretKeysSecretKeysList>;
2026
+ export interface SecretKeys {
2027
+ secret_keys?: SecretKeysSecretKeysList;
2028
+ }
2029
+ export declare const SecretKeys: S.Schema<SecretKeys>;
2030
+ export interface ListSecretsRequest {
2031
+ /** Fly App Name */
2032
+ app_name: string;
2033
+ /** Minimum secrets version to return. Returned when setting a new secret */
2034
+ min_version?: string;
2035
+ /** Show the secret values. */
2036
+ show_secrets?: boolean;
2037
+ }
2038
+ export declare const ListSecretsRequest: S.Schema<ListSecretsRequest>;
2039
+ export type AppSecretsSecretsList = Array<AppSecret>;
2040
+ export declare const AppSecretsSecretsList: S.Schema<AppSecretsSecretsList>;
2041
+ export interface AppSecrets {
2042
+ secrets?: AppSecretsSecretsList;
2043
+ }
2044
+ export declare const AppSecrets: S.Schema<AppSecrets>;
2045
+ export interface ListVolumesRequest {
2046
+ /** Fly App Name */
2047
+ app_name: string;
2048
+ /** Only return summary info about volumes (omit blocks, block size, etc) */
2049
+ summary?: boolean;
2050
+ }
2051
+ export declare const ListVolumesRequest: S.Schema<ListVolumesRequest>;
2052
+ export type ListVolumesResponseBodyList = Array<Volume>;
2053
+ export declare const ListVolumesResponseBodyList: S.Schema<ListVolumesResponseBodyList>;
2054
+ export type ListVolumesResponse = ListVolumesResponseBodyList;
2055
+ export declare const ListVolumesResponse: S.Schema<ListVolumesResponse>;
2056
+ export interface ListVolumeSnapshotsRequest {
2057
+ /** Fly App Name */
2058
+ app_name: string;
2059
+ /** Volume ID */
2060
+ volume_id: string;
2061
+ }
2062
+ export declare const ListVolumeSnapshotsRequest: S.Schema<ListVolumeSnapshotsRequest>;
2063
+ export interface VolumeSnapshot {
2064
+ created_at?: string;
2065
+ digest?: string;
2066
+ id?: string;
2067
+ retention_days?: number;
2068
+ size?: number;
2069
+ status?: string;
2070
+ volume_size?: number;
2071
+ }
2072
+ export declare const VolumeSnapshot: S.Schema<VolumeSnapshot>;
2073
+ export type ListVolumeSnapshotsResponseBodyList = Array<VolumeSnapshot>;
2074
+ export declare const ListVolumeSnapshotsResponseBodyList: S.Schema<ListVolumeSnapshotsResponseBodyList>;
2075
+ export type ListVolumeSnapshotsResponse = ListVolumeSnapshotsResponseBodyList;
2076
+ export declare const ListVolumeSnapshotsResponse: S.Schema<ListVolumeSnapshotsResponse>;
2077
+ export interface ListVolumesOrgRequest {
2078
+ /** Fly Organization Slug */
2079
+ org_slug: string;
2080
+ /** Include deleted volumes */
2081
+ include_deleted?: boolean;
2082
+ /** Region filter */
2083
+ region?: string;
2084
+ /** Comma separated list of volume states to filter */
2085
+ state?: string;
2086
+ /** Only return summary info about volumes (omit blocks, block size, etc) */
2087
+ summary?: boolean;
2088
+ /** Only return volumes updated after this time. Timestamp must be in the RFC 3339 format */
2089
+ updated_after?: string;
2090
+ /** Pagination cursor from previous response (takes precedence over updated_after) */
2091
+ cursor?: string;
2092
+ /** The number of volumes to fetch (max of 1000). This limit is advisory. Responses may be shorter, even when more volumes remain. If omitted, the maximum is used */
2093
+ limit?: number;
2094
+ }
2095
+ export declare const ListVolumesOrgRequest: S.Schema<ListVolumesOrgRequest>;
2096
+ export type OrgVolumeHostStatus = "ok" | "unknown" | "unreachable";
2097
+ export declare const OrgVolumeHostStatus: any;
2098
+ export type OrgVolumeType = "local" | "cache";
2099
+ export declare const OrgVolumeType: any;
2100
+ export interface OrgVolume {
2101
+ app_name?: string;
2102
+ attached_alloc_id?: string;
2103
+ attached_machine_id?: string;
2104
+ auto_backup_enabled?: boolean;
2105
+ block_size?: number;
2106
+ blocks?: number;
2107
+ blocks_avail?: number;
2108
+ blocks_free?: number;
2109
+ bytes_total?: number;
2110
+ bytes_used?: number;
2111
+ created_at?: string;
2112
+ encrypted?: boolean;
2113
+ fstype?: string;
2114
+ host_status?: OrgVolumeHostStatus;
2115
+ id?: string;
2116
+ name?: string;
2117
+ region?: string;
2118
+ size_gb?: number;
2119
+ snapshot_retention?: number;
2120
+ state?: string;
2121
+ type?: OrgVolumeType;
2122
+ updated_at?: string;
2123
+ zone?: string;
2124
+ }
2125
+ export declare const OrgVolume: S.Schema<OrgVolume>;
2126
+ export type OrgVolumesResponseVolumesList = Array<OrgVolume>;
2127
+ export declare const OrgVolumesResponseVolumesList: S.Schema<OrgVolumesResponseVolumesList>;
2128
+ export interface OrgVolumesResponse {
2129
+ last_updated_at?: string;
2130
+ last_volume_id?: string;
2131
+ next_cursor?: string;
2132
+ volumes?: OrgVolumesResponseVolumesList;
2133
+ }
2134
+ export declare const OrgVolumesResponse: S.Schema<OrgVolumesResponse>;
2135
+ export interface MachinesReleaseLeaseRequest {
2136
+ /** Fly App Name */
2137
+ app_name: string;
2138
+ /** Machine ID */
2139
+ machine_id: string;
2140
+ }
2141
+ export declare const MachinesReleaseLeaseRequest: S.Schema<MachinesReleaseLeaseRequest>;
2142
+ export interface MachinesReleaseLeaseResponse {
2143
+ }
2144
+ export declare const MachinesReleaseLeaseResponse: S.Schema<MachinesReleaseLeaseResponse>;
2145
+ export type PatchMachineMetadataRequestMetadataMap = {
2146
+ [key: string]: string | undefined;
2147
+ };
2148
+ export declare const PatchMachineMetadataRequestMetadataMap: S.Schema<PatchMachineMetadataRequestMetadataMap>;
2149
+ export interface PatchMachineMetadataRequest {
2150
+ /** Fly App Name */
2151
+ app_name: string;
2152
+ /** Machine ID */
2153
+ machine_id: string;
2154
+ machine_version?: string;
2155
+ metadata?: PatchMachineMetadataRequestMetadataMap;
2156
+ updated_at?: string;
2157
+ }
2158
+ export declare const PatchMachineMetadataRequest: S.Schema<PatchMachineMetadataRequest>;
2159
+ export interface PatchMachineMetadataResponse {
2160
+ }
2161
+ export declare const PatchMachineMetadataResponse: S.Schema<PatchMachineMetadataResponse>;
2162
+ export interface PostgresUsersCredentialsRequest {
2163
+ /** Managed Postgres Cluster ID */
2164
+ postgres_cluster_id: string;
2165
+ /** Postgres User Name */
2166
+ username: string;
2167
+ }
2168
+ export declare const PostgresUsersCredentialsRequest: S.Schema<PostgresUsersCredentialsRequest>;
2169
+ export interface PostgresUserCredentials {
2170
+ /** User password. */
2171
+ password?: string;
2172
+ /** User name. */
2173
+ username?: string;
2174
+ }
2175
+ export declare const PostgresUserCredentials: S.Schema<PostgresUserCredentials>;
2176
+ export interface GetPostgresUserCredentialsResponse {
2177
+ data?: PostgresUserCredentials;
2178
+ }
2179
+ export declare const GetPostgresUserCredentialsResponse: S.Schema<GetPostgresUserCredentialsResponse>;
2180
+ export interface ReclaimMachineMemoryRequest {
2181
+ /** Fly App Name */
2182
+ app_name: string;
2183
+ /** Machine ID */
2184
+ machine_id: string;
2185
+ amount_mb?: number;
2186
+ }
2187
+ export declare const ReclaimMachineMemoryRequest: S.Schema<ReclaimMachineMemoryRequest>;
2188
+ export interface MainReclaimMemoryResponse {
2189
+ actual_mb?: number;
2190
+ }
2191
+ export declare const MainReclaimMemoryResponse: S.Schema<MainReclaimMemoryResponse>;
2192
+ export interface RequestKmsTokenRequest {
2193
+ }
2194
+ export declare const RequestKmsTokenRequest: S.Schema<RequestKmsTokenRequest>;
2195
+ export interface RequestKmsTokenResponse {
2196
+ }
2197
+ export declare const RequestKmsTokenResponse: S.Schema<RequestKmsTokenResponse>;
2198
+ export interface RequestOidcTokenRequest {
2199
+ aud?: string;
2200
+ aws_principal_tags?: boolean;
2201
+ }
2202
+ export declare const RequestOidcTokenRequest: S.Schema<RequestOidcTokenRequest>;
2203
+ export interface RequestOidcTokenResponse {
2204
+ }
2205
+ export declare const RequestOidcTokenResponse: S.Schema<RequestOidcTokenResponse>;
2206
+ export type RestartMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
2207
+ export declare const RestartMachineRequestSignal: any;
2208
+ export interface RestartMachineRequest {
2209
+ /** Fly App Name */
2210
+ app_name: string;
2211
+ /** Machine ID */
2212
+ machine_id: string;
2213
+ /** Restart timeout as a Go duration string or number of seconds */
2214
+ timeout?: string;
2215
+ /** Unix signal name */
2216
+ signal?: RestartMachineRequestSignal | (string & {});
2217
+ }
2218
+ export declare const RestartMachineRequest: S.Schema<RestartMachineRequest>;
2219
+ export interface RestartMachineResponse {
2220
+ }
2221
+ export declare const RestartMachineResponse: S.Schema<RestartMachineResponse>;
2222
+ export interface RestorePostgresRequest {
2223
+ /** Managed Postgres Cluster ID */
2224
+ postgres_cluster_id: string;
2225
+ /** Backup label to restore from, as returned by the backups list. Mutually exclusive with pitr_time. */
2226
+ backup_id?: string;
2227
+ /** Name for the restored cluster. Defaults to a generated name derived from the source cluster and backup/point in time when omitted or blank. */
2228
+ name?: string;
2229
+ /** Point in time to restore to, as an RFC3339 timestamp with an explicit offset from UTC (e.g. Z or +02:00). Normalized to UTC and must fall within the cluster's PITR recovery window. Mutually exclusive with backup_id. */
2230
+ pitr_time?: string;
2231
+ }
2232
+ export declare const RestorePostgresRequest: S.Schema<RestorePostgresRequest>;
2233
+ export interface RotatePostgresUserPasswordRequest {
2234
+ /** Managed Postgres Cluster ID */
2235
+ postgres_cluster_id: string;
2236
+ /** Postgres User Name */
2237
+ username: string;
2238
+ /** Terminate the user's existing sessions after rotating. */
2239
+ kill_sessions?: boolean;
2240
+ }
2241
+ export declare const RotatePostgresUserPasswordRequest: S.Schema<RotatePostgresUserPasswordRequest>;
2242
+ export interface RotatePostgresPasswordResponse {
2243
+ data?: PostgresUserCredentials;
2244
+ }
2245
+ export declare const RotatePostgresPasswordResponse: S.Schema<RotatePostgresPasswordResponse>;
2246
+ export interface SetMachineMemoryLimitRequest {
2247
+ /** Fly App Name */
2248
+ app_name: string;
2249
+ /** Machine ID */
2250
+ machine_id: string;
2251
+ limit_mb?: number;
2252
+ }
2253
+ export declare const SetMachineMemoryLimitRequest: S.Schema<SetMachineMemoryLimitRequest>;
2254
+ export type SetSecretKeyRequestValueList = Array<number>;
2255
+ export declare const SetSecretKeyRequestValueList: S.Schema<SetSecretKeyRequestValueList>;
2256
+ export interface SetSecretKeyRequest {
2257
+ /** Fly App Name */
2258
+ app_name: string;
2259
+ /** Secret key name */
2260
+ secret_name: string;
2261
+ type?: string;
2262
+ value?: SetSecretKeyRequestValueList;
2263
+ }
2264
+ export declare const SetSecretKeyRequest: S.Schema<SetSecretKeyRequest>;
2265
+ export type SignalMachineRequestSignal = "SIGABRT" | "SIGALRM" | "SIGFPE" | "SIGHUP" | "SIGILL" | "SIGINT" | "SIGKILL" | "SIGPIPE" | "SIGQUIT" | "SIGSEGV" | "SIGTERM" | "SIGTRAP" | "SIGUSR1" | "SIGUSR2";
2266
+ export declare const SignalMachineRequestSignal: any;
2267
+ export interface SignalMachineRequest {
2268
+ /** Fly App Name */
2269
+ app_name: string;
2270
+ /** Machine ID */
2271
+ machine_id: string;
2272
+ signal?: SignalMachineRequestSignal | (string & {});
2273
+ }
2274
+ export declare const SignalMachineRequest: S.Schema<SignalMachineRequest>;
2275
+ export interface SignalMachineResponse {
2276
+ }
2277
+ export declare const SignalMachineResponse: S.Schema<SignalMachineResponse>;
2278
+ export interface SignSecretKeyRequest {
2279
+ /** Fly App Name */
2280
+ app_name: string;
2281
+ /** Secret key name */
2282
+ secret_name: string;
2283
+ /** Minimum secrets version to return. Returned when setting a new secret */
2284
+ min_version?: string;
2285
+ plaintext?: string;
2286
+ }
2287
+ export declare const SignSecretKeyRequest: S.Schema<SignSecretKeyRequest>;
2288
+ export interface SignSecretkeyResponse {
2289
+ signature?: string;
2290
+ }
2291
+ export declare const SignSecretkeyResponse: S.Schema<SignSecretkeyResponse>;
2292
+ export interface StartMachineRequest {
2293
+ /** Fly App Name */
2294
+ app_name: string;
2295
+ /** Machine ID */
2296
+ machine_id: string;
2297
+ }
2298
+ export declare const StartMachineRequest: S.Schema<StartMachineRequest>;
2299
+ export interface StartMachineResponse {
2300
+ }
2301
+ export declare const StartMachineResponse: S.Schema<StartMachineResponse>;
2302
+ export type StopMachineRequestSignal = "SIGHUP" | "SIGINT" | "SIGQUIT" | "SIGKILL" | "SIGUSR1" | "SIGUSR2" | "SIGTERM";
2303
+ export declare const StopMachineRequestSignal: any;
2304
+ export interface StopMachineRequest {
2305
+ /** Fly App Name */
2306
+ app_name: string;
2307
+ /** Machine ID */
2308
+ machine_id: string;
2309
+ signal?: StopMachineRequestSignal | (string & {});
2310
+ timeout?: string;
2311
+ }
2312
+ export declare const StopMachineRequest: S.Schema<StopMachineRequest>;
2313
+ export interface StopMachineResponse {
2314
+ }
2315
+ export declare const StopMachineResponse: S.Schema<StopMachineResponse>;
2316
+ export interface SuspendMachineRequest {
2317
+ /** Fly App Name */
2318
+ app_name: string;
2319
+ /** Machine ID */
2320
+ machine_id: string;
2321
+ }
2322
+ export declare const SuspendMachineRequest: S.Schema<SuspendMachineRequest>;
2323
+ export interface SuspendMachineResponse {
2324
+ }
2325
+ export declare const SuspendMachineResponse: S.Schema<SuspendMachineResponse>;
2326
+ export interface UncordonMachineRequest {
2327
+ /** Fly App Name */
2328
+ app_name: string;
2329
+ /** Machine ID */
2330
+ machine_id: string;
2331
+ }
2332
+ export declare const UncordonMachineRequest: S.Schema<UncordonMachineRequest>;
2333
+ export interface UncordonMachineResponse {
2334
+ }
2335
+ export declare const UncordonMachineResponse: S.Schema<UncordonMachineResponse>;
2336
+ export interface UpdateMachineRequest {
2337
+ /** Fly App Name */
2338
+ app_name: string;
2339
+ /** Machine ID */
2340
+ machine_id: string;
2341
+ /** An object defining the Machine configuration */
2342
+ config?: FlyMachineConfig;
2343
+ current_version?: string;
2344
+ lease_ttl?: number;
2345
+ min_secrets_version?: number;
2346
+ /** Unique name for this Machine. If omitted, one is generated for you */
2347
+ name?: string;
2348
+ /** The target region. Omitting this param launches in the same region as your WireGuard peer connection (somewhere near you). */
2349
+ region?: string;
2350
+ skip_launch?: boolean;
2351
+ skip_secrets?: boolean;
2352
+ skip_service_registration?: boolean;
2353
+ }
2354
+ export declare const UpdateMachineRequest: S.Schema<UpdateMachineRequest>;
2355
+ export type UpdateMachineMetadataRequestMetadataMap = {
2356
+ [key: string]: string | undefined;
2357
+ };
2358
+ export declare const UpdateMachineMetadataRequestMetadataMap: S.Schema<UpdateMachineMetadataRequestMetadataMap>;
2359
+ export interface UpdateMachineMetadataRequest {
2360
+ /** Fly App Name */
2361
+ app_name: string;
2362
+ /** Machine ID */
2363
+ machine_id: string;
2364
+ machine_version?: string;
2365
+ metadata?: UpdateMachineMetadataRequestMetadataMap;
2366
+ updated_at?: string;
2367
+ }
2368
+ export declare const UpdateMachineMetadataRequest: S.Schema<UpdateMachineMetadataRequest>;
2369
+ export interface UpdateMachineMetadataResponse {
2370
+ }
2371
+ export declare const UpdateMachineMetadataResponse: S.Schema<UpdateMachineMetadataResponse>;
2372
+ /** New role for the user. */
2373
+ export type UpdatePostgresUserRoleRequestRole = "schema_admin" | "writer" | "reader";
2374
+ export declare const UpdatePostgresUserRoleRequestRole: any;
2375
+ export interface UpdatePostgresUserRoleRequest {
2376
+ /** Managed Postgres Cluster ID */
2377
+ postgres_cluster_id: string;
2378
+ /** Postgres User Name */
2379
+ username: string;
2380
+ /** New role for the user. */
2381
+ role: UpdatePostgresUserRoleRequestRole | (string & {});
2382
+ }
2383
+ export declare const UpdatePostgresUserRoleRequest: S.Schema<UpdatePostgresUserRoleRequest>;
2384
+ export interface UpdatePostgresUserRoleResponse {
2385
+ }
2386
+ export declare const UpdatePostgresUserRoleResponse: S.Schema<UpdatePostgresUserRoleResponse>;
2387
+ export type UpdateSecretsRequestValuesMap = {
2388
+ [key: string]: string | undefined;
2389
+ };
2390
+ export declare const UpdateSecretsRequestValuesMap: S.Schema<UpdateSecretsRequestValuesMap>;
2391
+ export interface UpdateSecretsRequest {
2392
+ /** Fly App Name */
2393
+ app_name: string;
2394
+ values?: UpdateSecretsRequestValuesMap;
2395
+ }
2396
+ export declare const UpdateSecretsRequest: S.Schema<UpdateSecretsRequest>;
2397
+ export type AppSecretsUpdateRespSecretsList = Array<AppSecret>;
2398
+ export declare const AppSecretsUpdateRespSecretsList: S.Schema<AppSecretsUpdateRespSecretsList>;
2399
+ export interface AppSecretsUpdateResp {
2400
+ /** DEPRECATED */
2401
+ Version?: number;
2402
+ secrets?: AppSecretsUpdateRespSecretsList;
2403
+ version?: number;
2404
+ }
2405
+ export declare const AppSecretsUpdateResp: S.Schema<AppSecretsUpdateResp>;
2406
+ export interface UpdateVolumeRequest {
2407
+ /** Fly App Name */
2408
+ app_name: string;
2409
+ /** Volume ID */
2410
+ volume_id: string;
2411
+ auto_backup_enabled?: boolean;
2412
+ snapshot_retention?: number;
2413
+ }
2414
+ export declare const UpdateVolumeRequest: S.Schema<UpdateVolumeRequest>;
2415
+ export interface UpsertMachineMetadataRequest {
2416
+ /** Fly App Name */
2417
+ app_name: string;
2418
+ /** Machine ID */
2419
+ machine_id: string;
2420
+ /** Metadata Key */
2421
+ key: string;
2422
+ updated_at?: string;
2423
+ value?: string;
2424
+ }
2425
+ export declare const UpsertMachineMetadataRequest: S.Schema<UpsertMachineMetadataRequest>;
2426
+ export interface UpsertMachineMetadataResponse {
2427
+ }
2428
+ export declare const UpsertMachineMetadataResponse: S.Schema<UpsertMachineMetadataResponse>;
2429
+ export interface VerifySecretKeyRequest {
2430
+ /** Fly App Name */
2431
+ app_name: string;
2432
+ /** Secret key name */
2433
+ secret_name: string;
2434
+ /** Minimum secrets version to return. Returned when setting a new secret */
2435
+ min_version?: string;
2436
+ plaintext?: string;
2437
+ signature?: string;
2438
+ }
2439
+ export declare const VerifySecretKeyRequest: S.Schema<VerifySecretKeyRequest>;
2440
+ export interface VerifySecretKeyResponse {
2441
+ }
2442
+ export declare const VerifySecretKeyResponse: S.Schema<VerifySecretKeyResponse>;
2443
+ export type WaitMachineRequestState = "started" | "stopped" | "suspended" | "destroyed" | "failed" | "settled";
2444
+ export declare const WaitMachineRequestState: any;
2445
+ export interface WaitMachineRequest {
2446
+ /** Fly App Name */
2447
+ app_name: string;
2448
+ /** Machine ID */
2449
+ machine_id: string;
2450
+ /** 26-character Machine version ID */
2451
+ version?: string;
2452
+ /** 26-character Machine version ID (deprecated; use version) */
2453
+ instance_id?: string;
2454
+ /** 26-character Machine event ID to start waiting after */
2455
+ from_event_id?: string;
2456
+ /** wait timeout. default 60s */
2457
+ timeout?: number;
2458
+ /** desired state(s), supports repeated or comma-separated values */
2459
+ state?: WaitMachineRequestState | (string & {});
2460
+ }
2461
+ export declare const WaitMachineRequest: S.Schema<WaitMachineRequest>;
2462
+ export interface WaitMachineResponse {
2463
+ event_id?: string;
2464
+ ok?: boolean;
2465
+ state?: string;
2466
+ version?: string;
2467
+ }
2468
+ export declare const WaitMachineResponse: S.Schema<WaitMachineResponse>;
2469
+ export type AuthenticateTokenError = BadRequest | FlyIoOpError;
2470
+ /** Authenticate token header Verify a token header without checking resource access. */
2471
+ export declare const authenticateToken: API.OperationMethod<AuthenticateTokenRequest, AuthenticateTokenResponse, AuthenticateTokenError, FlyIoOpContext>;
2472
+ export type AuthorizeTokenError = BadRequest | FlyIoOpError;
2473
+ /** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
2474
+ export declare const authorizeToken: API.OperationMethod<AuthorizeTokenRequest, AuthorizeResponse, AuthorizeTokenError, FlyIoOpContext>;
2475
+ export type CheckAppCertificateError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2476
+ /** Check DNS and re-validate certificate */
2477
+ export declare const checkAppCertificate: API.OperationMethod<CheckAppCertificateRequest, CertificateCheckResponse, CheckAppCertificateError, FlyIoOpContext>;
2478
+ export type CordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2479
+ /** 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. */
2480
+ export declare const cordonMachine: API.OperationMethod<CordonMachineRequest, CordonMachineResponse, CordonMachineError, FlyIoOpContext>;
2481
+ export type CreateAppError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2482
+ /** Create App Create an app with the specified details in the request body. */
2483
+ export declare const createApp: API.OperationMethod<CreateAppRequest, CreateAppResponse, CreateAppError, FlyIoOpContext>;
2484
+ export type CreateAppAcmeCertificateError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2485
+ /** Request ACME certificate */
2486
+ export declare const createAppAcmeCertificate: API.OperationMethod<CreateAppAcmeCertificateRequest, CertificateDetail, CreateAppAcmeCertificateError, FlyIoOpContext>;
2487
+ export type CreateAppCustomCertificateError = BadRequest | Forbidden | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2488
+ /** Upload custom certificate */
2489
+ export declare const createAppCustomCertificate: API.OperationMethod<CreateAppCustomCertificateRequest, CertificateDetail, CreateAppCustomCertificateError, FlyIoOpContext>;
2490
+ export type CreateAppDeployTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2491
+ /** Create App deploy token */
2492
+ export declare const createAppDeployToken: API.OperationMethod<CreateAppDeployTokenRequest, CreateAppDeployTokenResponse, CreateAppDeployTokenError, FlyIoOpContext>;
2493
+ export type CreateAppIPAssignmentError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2494
+ /** Assign new IP address to app */
2495
+ export declare const createAppIPAssignment: API.OperationMethod<CreateAppIPAssignmentRequest, AssignIPResponse, CreateAppIPAssignmentError, FlyIoOpContext>;
2496
+ export type CreateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2497
+ /** 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! */
2498
+ export declare const createMachine: API.OperationMethod<CreateMachineRequest, Machine, CreateMachineError, FlyIoOpContext>;
2499
+ export type CreateMachineLeaseError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2500
+ /** 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. */
2501
+ export declare const createMachineLease: API.OperationMethod<CreateMachineLeaseRequest, Lease, CreateMachineLeaseError, FlyIoOpContext>;
2502
+ export type CreatePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2503
+ /** 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. */
2504
+ export declare const createPostgres: API.OperationMethod<CreatePostgresRequest, ShowPostgresClusterResponse, CreatePostgresError, FlyIoOpContext>;
2505
+ export type CreatePostgresAttachmentError = NotFound | FlyIoOpError;
2506
+ /** Attach Cluster to App Attach a specific cluster to a Fly app. The attachment is created if it does not already exist. */
2507
+ export declare const createPostgresAttachment: API.OperationMethod<CreatePostgresAttachmentRequest, CreatePostgresAttachmentResponse, CreatePostgresAttachmentError, FlyIoOpContext>;
2508
+ export type CreatePostgresBackupError = NotFound | Conflict | FlyIoOpError;
2509
+ /** Create Backup Create a backup for a specific cluster. The backup runs asynchronously and is rejected if one is already in progress. */
2510
+ export declare const createPostgresBackup: API.OperationMethod<CreatePostgresBackupRequest, CreatePostgresBackupResponse, CreatePostgresBackupError, FlyIoOpContext>;
2511
+ export type CreatePostgresDatabaseError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2512
+ /** Create Database Create a database within a specific cluster. */
2513
+ export declare const createPostgresDatabase: API.OperationMethod<CreatePostgresDatabaseRequest, PostgresDatabaseResponse, CreatePostgresDatabaseError, FlyIoOpContext>;
2514
+ export type CreatePostgresUserError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2515
+ /** Create User Create a Postgres user within a specific cluster. Fetch the generated password from the credentials endpoint. */
2516
+ export declare const createPostgresUser: API.OperationMethod<CreatePostgresUserRequest, CreatePostgresUserResponse, CreatePostgresUserError, FlyIoOpContext>;
2517
+ export type CreateSecretError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2518
+ /** Create or update Secret */
2519
+ export declare const createSecret: API.OperationMethod<CreateSecretRequest, SetAppSecretResponse, CreateSecretError, FlyIoOpContext>;
2520
+ export type CreateVolumeError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2521
+ /** Create Volume Create a volume for a specific app using the details provided in the request body. */
2522
+ export declare const createVolume: API.OperationMethod<CreateVolumeRequest, Volume, CreateVolumeError, FlyIoOpContext>;
2523
+ export type CreateVolumeSnapshotError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2524
+ /** Create Snapshot Create a snapshot for a specific volume within an app. */
2525
+ export declare const createVolumeSnapshot: API.OperationMethod<CreateVolumeSnapshotRequest, CreateVolumeSnapshotResponse, CreateVolumeSnapshotError, FlyIoOpContext>;
2526
+ export type DecryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2527
+ /** Decrypt with a secret key */
2528
+ export declare const decryptSecretKey: API.OperationMethod<DecryptSecretKeyRequest, DecryptSecretkeyResponse, DecryptSecretKeyError, FlyIoOpContext>;
2529
+ export type DeleteAppError = Forbidden | NotFound | FlyIoOpError;
2530
+ /** Destroy App Delete an app by its name. */
2531
+ export declare const deleteApp: API.OperationMethod<DeleteAppRequest, DeleteAppResponse, DeleteAppError, FlyIoOpContext>;
2532
+ export type DeleteAppAcmeCertificateError = Forbidden | NotFound | FlyIoOpError;
2533
+ /** Remove ACME certificates */
2534
+ export declare const deleteAppAcmeCertificate: API.OperationMethod<DeleteAppAcmeCertificateRequest, CertificateDetail, DeleteAppAcmeCertificateError, FlyIoOpContext>;
2535
+ export type DeleteAppCertificateError = Forbidden | NotFound | FlyIoOpError;
2536
+ /** Remove certificate */
2537
+ export declare const deleteAppCertificate: API.OperationMethod<DeleteAppCertificateRequest, DeleteAppCertificateResponse, DeleteAppCertificateError, FlyIoOpContext>;
2538
+ export type DeleteAppCustomCertificateError = Forbidden | NotFound | FlyIoOpError;
2539
+ /** Remove custom certificate */
2540
+ export declare const deleteAppCustomCertificate: API.OperationMethod<DeleteAppCustomCertificateRequest, DestroyCustomCertificateResponse, DeleteAppCustomCertificateError, FlyIoOpContext>;
2541
+ export type DeleteAppIPAssignmentError = Forbidden | NotFound | FlyIoOpError;
2542
+ /** Remove IP assignment from app */
2543
+ export declare const deleteAppIPAssignment: API.OperationMethod<DeleteAppIPAssignmentRequest, DeleteAppIPAssignmentResponse, DeleteAppIPAssignmentError, FlyIoOpContext>;
2544
+ export type DeleteMachineError = Forbidden | NotFound | Conflict | FlyIoOpError;
2545
+ /** 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. */
2546
+ export declare const deleteMachine: API.OperationMethod<DeleteMachineRequest, DeleteMachineResponse, DeleteMachineError, FlyIoOpContext>;
2547
+ export type DeleteMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
2548
+ /** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
2549
+ export declare const deleteMachineMetadata: API.OperationMethod<DeleteMachineMetadataRequest, DeleteMachineMetadataResponse, DeleteMachineMetadataError, FlyIoOpContext>;
2550
+ export type DeletePostgresError = NotFound | FlyIoOpError;
2551
+ /** Delete Postgres Cluster Delete a Managed Postgres cluster. The cluster is marked for deletion and removed asynchronously. */
2552
+ export declare const deletePostgres: API.OperationMethod<DeletePostgresRequest, DeletePostgresResponse, DeletePostgresError, FlyIoOpContext>;
2553
+ export type DeletePostgresAttachmentError = NotFound | FlyIoOpError;
2554
+ /** Detach Cluster from App Detach a specific cluster from a Fly app. */
2555
+ export declare const deletePostgresAttachment: API.OperationMethod<DeletePostgresAttachmentRequest, DeletePostgresAttachmentResponse, DeletePostgresAttachmentError, FlyIoOpContext>;
2556
+ export type DeletePostgresDatabaseError = BadRequest | NotFound | FlyIoOpError;
2557
+ /** Drop Database Delete a specific database within a cluster, along with objects that depend on it. */
2558
+ export declare const deletePostgresDatabase: API.OperationMethod<DeletePostgresDatabaseRequest, PostgresDatabaseResponse, DeletePostgresDatabaseError, FlyIoOpContext>;
2559
+ export type DeletePostgresUserError = BadRequest | NotFound | FlyIoOpError;
2560
+ /** Delete User Delete a specific Postgres user within a cluster. */
2561
+ export declare const deletePostgresUser: API.OperationMethod<DeletePostgresUserRequest, DeletePostgresUserResponse, DeletePostgresUserError, FlyIoOpContext>;
2562
+ export type DeleteSecretError = Forbidden | NotFound | FlyIoOpError;
2563
+ /** Delete an app secret */
2564
+ export declare const deleteSecret: API.OperationMethod<DeleteSecretRequest, DeleteAppSecretResponse, DeleteSecretError, FlyIoOpContext>;
2565
+ export type DeleteSecretKeyError = Forbidden | NotFound | FlyIoOpError;
2566
+ /** Delete an app's secret key */
2567
+ export declare const deleteSecretKey: API.OperationMethod<DeleteSecretKeyRequest, DeleteSecretkeyResponse, DeleteSecretKeyError, FlyIoOpContext>;
2568
+ export type DeleteVolumeError = Forbidden | NotFound | Conflict | FlyIoOpError;
2569
+ /** Destroy Volume Delete a specific volume within an app by volume ID. */
2570
+ export declare const deleteVolume: API.OperationMethod<DeleteVolumeRequest, Volume, DeleteVolumeError, FlyIoOpContext>;
2571
+ export type DisablePostgresExtensionError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2572
+ /** Disable Extension Disable a specific Postgres extension within a database, optionally dropping objects that depend on it. System extensions cannot be disabled. */
2573
+ export declare const disablePostgresExtension: API.OperationMethod<DisablePostgresExtensionRequest, DisablePostgresExtensionResponse, DisablePostgresExtensionError, FlyIoOpContext>;
2574
+ export type EnablePostgresExtensionError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2575
+ /** Enable Extension Enable a Postgres extension within a specific database. PostGIS extensions require a PostGIS-enabled cluster. */
2576
+ export declare const enablePostgresExtension: API.OperationMethod<EnablePostgresExtensionRequest, EnablePostgresExtensionResponse, EnablePostgresExtensionError, FlyIoOpContext>;
2577
+ export type EncryptSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2578
+ /** Encrypt with a secret key */
2579
+ export declare const encryptSecretKey: API.OperationMethod<EncryptSecretKeyRequest, EncryptSecretkeyResponse, EncryptSecretKeyError, FlyIoOpContext>;
2580
+ export type ExecMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2581
+ /** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
2582
+ export declare const execMachine: API.OperationMethod<ExecMachineRequest, Flydv1ExecResponse, ExecMachineError, FlyIoOpContext>;
2583
+ export type ExtendVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2584
+ /** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
2585
+ export declare const extendVolume: API.OperationMethod<ExtendVolumeRequest, ExtendVolumeResponse, ExtendVolumeError, FlyIoOpContext>;
2586
+ export type ForkPostgresError = BadRequest | NotFound | Conflict | UnprocessableEntity | FlyIoOpError;
2587
+ /** 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. */
2588
+ export declare const forkPostgres: API.OperationMethod<ForkPostgresRequest, ShowPostgresClusterResponse, ForkPostgresError, FlyIoOpContext>;
2589
+ export type GenerateSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2590
+ /** Generate a random secret key */
2591
+ export declare const generateSecretKey: API.OperationMethod<GenerateSecretKeyRequest, SetSecretkeyResponse, GenerateSecretKeyError, FlyIoOpContext>;
2592
+ export type GetAppError = Forbidden | NotFound | FlyIoOpError;
2593
+ /** Get App Retrieve details about a specific app by its name. */
2594
+ export declare const getApp: API.OperationMethod<GetAppRequest, App, GetAppError, FlyIoOpContext>;
2595
+ export type GetAppCertificateError = Forbidden | NotFound | FlyIoOpError;
2596
+ /** Get certificate details */
2597
+ export declare const getAppCertificate: API.OperationMethod<GetAppCertificateRequest, CertificateDetail, GetAppCertificateError, FlyIoOpContext>;
2598
+ export type GetCurrentTokenError = Forbidden | FlyIoOpError;
2599
+ /** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
2600
+ export declare const getCurrentToken: API.OperationMethod<GetCurrentTokenRequest, CurrentTokenResponse, GetCurrentTokenError, FlyIoOpContext>;
2601
+ export type GetMachineError = Forbidden | NotFound | FlyIoOpError;
2602
+ /** Get Machine Get details of a specific Machine within an app by the Machine ID. */
2603
+ export declare const getMachine: API.OperationMethod<GetMachineRequest, Machine, GetMachineError, FlyIoOpContext>;
2604
+ export type GetMachineLeaseError = Forbidden | NotFound | FlyIoOpError;
2605
+ /** 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. */
2606
+ export declare const getMachineLease: API.OperationMethod<GetMachineLeaseRequest, Lease, GetMachineLeaseError, FlyIoOpContext>;
2607
+ export type GetMachineMemoryError = Forbidden | NotFound | FlyIoOpError;
2608
+ /** Get Machine Memory Get current memory limit and available capacity for a machine */
2609
+ export declare const getMachineMemory: API.OperationMethod<GetMachineMemoryRequest, MainMemoryResponse, GetMachineMemoryError, FlyIoOpContext>;
2610
+ export type GetMachineMetadataError = Forbidden | NotFound | FlyIoOpError;
2611
+ /** Get Metadata Retrieve metadata for a specific Machine within an app. */
2612
+ export declare const getMachineMetadata: API.OperationMethod<GetMachineMetadataRequest, GetMachineMetadataResponse, GetMachineMetadataError, FlyIoOpContext>;
2613
+ export type GetMachineMetadataKeyError = NotFound | FlyIoOpError;
2614
+ /** Get Metadata Value Get the value of a specific metadata key */
2615
+ export declare const getMachineMetadataKey: API.OperationMethod<GetMachineMetadataKeyRequest, MetadataValueResponse, GetMachineMetadataKeyError, FlyIoOpContext>;
2616
+ export type GetPlacementsError = BadRequest | Forbidden | FlyIoOpError;
2617
+ /** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
2618
+ export declare const getPlacements: API.OperationMethod<GetPlacementsRequest, MainGetPlacementsResponse, GetPlacementsError, FlyIoOpContext>;
2619
+ export type GetPostgresError = NotFound | FlyIoOpError;
2620
+ /** Get Postgres Cluster Get details of a specific Managed Postgres cluster. */
2621
+ export declare const getPostgres: API.OperationMethod<GetPostgresRequest, ShowPostgresClusterResponse, GetPostgresError, FlyIoOpContext>;
2622
+ export type GetRegionsError = Forbidden | FlyIoOpError;
2623
+ /** Get Regions List all regions on the platform with their details. */
2624
+ export declare const getRegions: API.OperationMethod<GetRegionsRequest, MainRegionResponse, GetRegionsError, FlyIoOpContext>;
2625
+ export type GetSecretError = Forbidden | NotFound | FlyIoOpError;
2626
+ /** Get an app secret */
2627
+ export declare const getSecret: API.OperationMethod<GetSecretRequest, AppSecret, GetSecretError, FlyIoOpContext>;
2628
+ export type GetSecretKeyError = Forbidden | NotFound | FlyIoOpError;
2629
+ /** Get an app's secret key */
2630
+ export declare const getSecretKey: API.OperationMethod<GetSecretKeyRequest, SecretKey, GetSecretKeyError, FlyIoOpContext>;
2631
+ export type GetVolumeByIdError = Forbidden | NotFound | FlyIoOpError;
2632
+ /** Get Volume Retrieve details about a specific volume by its ID within an app. */
2633
+ export declare const getVolumeById: API.OperationMethod<GetVolumeByIdRequest, Volume, GetVolumeByIdError, FlyIoOpContext>;
2634
+ export type ListAppCertificatesError = Forbidden | NotFound | FlyIoOpError;
2635
+ /** List certificates for app */
2636
+ export declare const listAppCertificates: API.OperationMethod<ListAppCertificatesRequest, ListCertificatesResponse, ListAppCertificatesError, FlyIoOpContext>;
2637
+ export type ListAppIPAssignmentsError = Forbidden | NotFound | FlyIoOpError;
2638
+ /** List IP assignments for app */
2639
+ export declare const listAppIPAssignments: API.OperationMethod<ListAppIPAssignmentsRequest, ListIPAssignmentsResponse, ListAppIPAssignmentsError, FlyIoOpContext>;
2640
+ export type ListAppsError = Forbidden | FlyIoOpError;
2641
+ /** List Apps List all apps with the ability to filter by organization slug. */
2642
+ export declare const listApps: API.OperationMethod<ListAppsRequest, ListAppsResponse, ListAppsError, FlyIoOpContext>;
2643
+ export type ListMachineEventsError = Forbidden | NotFound | FlyIoOpError;
2644
+ /** List Events List all events associated with a specific Machine within an app. */
2645
+ export declare const listMachineEvents: API.OperationMethod<ListMachineEventsRequest, ListMachineEventsResponse, ListMachineEventsError, FlyIoOpContext>;
2646
+ export type ListMachineProcessesError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2647
+ /** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
2648
+ export declare const listMachineProcesses: API.OperationMethod<ListMachineProcessesRequest, ListMachineProcessesResponse, ListMachineProcessesError, FlyIoOpContext>;
2649
+ export type ListMachinesError = Forbidden | NotFound | FlyIoOpError;
2650
+ /** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
2651
+ export declare const listMachines: API.OperationMethod<ListMachinesRequest, ListMachinesResponse, ListMachinesError, FlyIoOpContext>;
2652
+ export type ListMachinesOrgError = Forbidden | NotFound | FlyIoOpError;
2653
+ /** 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. */
2654
+ export declare const listMachinesOrg: API.OperationMethod<ListMachinesOrgRequest, OrgMachinesResponse, ListMachinesOrgError, FlyIoOpContext>;
2655
+ export type ListMachineVersionsError = Forbidden | NotFound | FlyIoOpError;
2656
+ /** List Versions List all versions of the configuration for a specific Machine within an app. */
2657
+ export declare const listMachineVersions: API.OperationMethod<ListMachineVersionsRequest, ListMachineVersionsResponse, ListMachineVersionsError, FlyIoOpContext>;
2658
+ export type ListPostgresError = NotFound | UnprocessableEntity | FlyIoOpError;
2659
+ /** List Postgres Clusters List Managed Postgres clusters for an organization. */
2660
+ export declare const listPostgres: API.OperationMethod<ListPostgresRequest, ListPostgresClustersResponse, ListPostgresError, FlyIoOpContext>;
2661
+ export type ListPostgresBackupsError = NotFound | FlyIoOpError;
2662
+ /** List Backups List all backups associated with a specific cluster. */
2663
+ export declare const listPostgresBackups: API.OperationMethod<ListPostgresBackupsRequest, ListPostgresBackupsResponse, ListPostgresBackupsError, FlyIoOpContext>;
2664
+ export type ListPostgresDatabasesError = NotFound | FlyIoOpError;
2665
+ /** List Databases List all databases within a specific cluster. */
2666
+ export declare const listPostgresDatabases: API.OperationMethod<ListPostgresDatabasesRequest, ListPostgresDatabasesResponse, ListPostgresDatabasesError, FlyIoOpContext>;
2667
+ export type ListPostgresExtensionsError = BadRequest | NotFound | FlyIoOpError;
2668
+ /** List Extensions List all extensions available within a specific database, indicating which are installed. */
2669
+ export declare const listPostgresExtensions: API.OperationMethod<ListPostgresExtensionsRequest, ListPostgresExtensionsResponse, ListPostgresExtensionsError, FlyIoOpContext>;
2670
+ export type ListPostgresUsersError = NotFound | FlyIoOpError;
2671
+ /** List Users List all Postgres users within a specific cluster. */
2672
+ export declare const listPostgresUsers: API.OperationMethod<ListPostgresUsersRequest, ListPostgresUsersResponse, ListPostgresUsersError, FlyIoOpContext>;
2673
+ export type ListSecretKeysError = Forbidden | NotFound | FlyIoOpError;
2674
+ /** List secret keys belonging to an app */
2675
+ export declare const listSecretKeys: API.OperationMethod<ListSecretKeysRequest, SecretKeys, ListSecretKeysError, FlyIoOpContext>;
2676
+ export type ListSecretsError = Forbidden | NotFound | FlyIoOpError;
2677
+ /** List app secrets belonging to an app */
2678
+ export declare const listSecrets: API.OperationMethod<ListSecretsRequest, AppSecrets, ListSecretsError, FlyIoOpContext>;
2679
+ export type ListVolumesError = Forbidden | NotFound | FlyIoOpError;
2680
+ /** List Volumes List all volumes associated with a specific app. */
2681
+ export declare const listVolumes: API.OperationMethod<ListVolumesRequest, ListVolumesResponse, ListVolumesError, FlyIoOpContext>;
2682
+ export type ListVolumeSnapshotsError = Forbidden | NotFound | FlyIoOpError;
2683
+ /** List Snapshots List all snapshots for a specific volume within an app. */
2684
+ export declare const listVolumeSnapshots: API.OperationMethod<ListVolumeSnapshotsRequest, ListVolumeSnapshotsResponse, ListVolumeSnapshotsError, FlyIoOpContext>;
2685
+ export type ListVolumesOrgError = FlyIoOpError;
2686
+ /** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
2687
+ export declare const listVolumesOrg: API.OperationMethod<ListVolumesOrgRequest, OrgVolumesResponse, ListVolumesOrgError, FlyIoOpContext>;
2688
+ export type MachinesReleaseLeaseError = Forbidden | NotFound | FlyIoOpError;
2689
+ /** 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. */
2690
+ export declare const machinesReleaseLease: API.OperationMethod<MachinesReleaseLeaseRequest, MachinesReleaseLeaseResponse, MachinesReleaseLeaseError, FlyIoOpContext>;
2691
+ export type PatchMachineMetadataError = BadRequest | FlyIoOpError;
2692
+ /** 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. */
2693
+ export declare const patchMachineMetadata: API.OperationMethod<PatchMachineMetadataRequest, PatchMachineMetadataResponse, PatchMachineMetadataError, FlyIoOpContext>;
2694
+ export type PostgresUsersCredentialsError = BadRequest | NotFound | FlyIoOpError;
2695
+ /** Get User Credentials Get the connection credentials for a specific Postgres user within a cluster. */
2696
+ export declare const postgresUsersCredentials: API.OperationMethod<PostgresUsersCredentialsRequest, GetPostgresUserCredentialsResponse, PostgresUsersCredentialsError, FlyIoOpContext>;
2697
+ export type ReclaimMachineMemoryError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2698
+ /** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
2699
+ export declare const reclaimMachineMemory: API.OperationMethod<ReclaimMachineMemoryRequest, MainReclaimMemoryResponse, ReclaimMachineMemoryError, FlyIoOpContext>;
2700
+ export type RequestKmsTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2701
+ /** 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. */
2702
+ export declare const requestKmsToken: API.OperationMethod<RequestKmsTokenRequest, RequestKmsTokenResponse, RequestKmsTokenError, FlyIoOpContext>;
2703
+ export type RequestOidcTokenError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2704
+ /** 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. */
2705
+ export declare const requestOidcToken: API.OperationMethod<RequestOidcTokenRequest, RequestOidcTokenResponse, RequestOidcTokenError, FlyIoOpContext>;
2706
+ export type RestartMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2707
+ /** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
2708
+ export declare const restartMachine: API.OperationMethod<RestartMachineRequest, RestartMachineResponse, RestartMachineError, FlyIoOpContext>;
2709
+ export type RestorePostgresError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2710
+ /** 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. */
2711
+ export declare const restorePostgres: API.OperationMethod<RestorePostgresRequest, ShowPostgresClusterResponse, RestorePostgresError, FlyIoOpContext>;
2712
+ export type RotatePostgresUserPasswordError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2713
+ /** Rotate User Password Rotate a specific Postgres user's password within a cluster, optionally terminating the user's existing sessions. */
2714
+ export declare const rotatePostgresUserPassword: API.OperationMethod<RotatePostgresUserPasswordRequest, RotatePostgresPasswordResponse, RotatePostgresUserPasswordError, FlyIoOpContext>;
2715
+ export type SetMachineMemoryLimitError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2716
+ /** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
2717
+ export declare const setMachineMemoryLimit: API.OperationMethod<SetMachineMemoryLimitRequest, MainMemoryResponse, SetMachineMemoryLimitError, FlyIoOpContext>;
2718
+ export type SetSecretKeyError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2719
+ /** Create or update a secret key */
2720
+ export declare const setSecretKey: API.OperationMethod<SetSecretKeyRequest, SetSecretkeyResponse, SetSecretKeyError, FlyIoOpContext>;
2721
+ export type SignalMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2722
+ /** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
2723
+ export declare const signalMachine: API.OperationMethod<SignalMachineRequest, SignalMachineResponse, SignalMachineError, FlyIoOpContext>;
2724
+ export type SignSecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2725
+ /** Sign with a secret key */
2726
+ export declare const signSecretKey: API.OperationMethod<SignSecretKeyRequest, SignSecretkeyResponse, SignSecretKeyError, FlyIoOpContext>;
2727
+ export type StartMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2728
+ /** Start Machine Start a specific Machine within an app. */
2729
+ export declare const startMachine: API.OperationMethod<StartMachineRequest, StartMachineResponse, StartMachineError, FlyIoOpContext>;
2730
+ export type StopMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2731
+ /** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
2732
+ export declare const stopMachine: API.OperationMethod<StopMachineRequest, StopMachineResponse, StopMachineError, FlyIoOpContext>;
2733
+ export type SuspendMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2734
+ /** 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. */
2735
+ export declare const suspendMachine: API.OperationMethod<SuspendMachineRequest, SuspendMachineResponse, SuspendMachineError, FlyIoOpContext>;
2736
+ export type UncordonMachineError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2737
+ /** 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. */
2738
+ export declare const uncordonMachine: API.OperationMethod<UncordonMachineRequest, UncordonMachineResponse, UncordonMachineError, FlyIoOpContext>;
2739
+ export type UpdateMachineError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2740
+ /** Update Machine Update a Machine's configuration using the details provided in the request body. */
2741
+ export declare const updateMachine: API.OperationMethod<UpdateMachineRequest, Machine, UpdateMachineError, FlyIoOpContext>;
2742
+ export type UpdateMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2743
+ /** 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. */
2744
+ export declare const updateMachineMetadata: API.OperationMethod<UpdateMachineMetadataRequest, UpdateMachineMetadataResponse, UpdateMachineMetadataError, FlyIoOpContext>;
2745
+ export type UpdatePostgresUserRoleError = BadRequest | NotFound | UnprocessableEntity | FlyIoOpError;
2746
+ /** Update User Role Update a specific Postgres user's role within a cluster. */
2747
+ export declare const updatePostgresUserRole: API.OperationMethod<UpdatePostgresUserRoleRequest, UpdatePostgresUserRoleResponse, UpdatePostgresUserRoleError, FlyIoOpContext>;
2748
+ export type UpdateSecretsError = BadRequest | Forbidden | NotFound | Conflict | FlyIoOpError;
2749
+ /** Update app secrets belonging to an app */
2750
+ export declare const updateSecrets: API.OperationMethod<UpdateSecretsRequest, AppSecretsUpdateResp, UpdateSecretsError, FlyIoOpContext>;
2751
+ export type UpdateVolumeError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2752
+ /** Update Volume Update a volume's configuration using the details provided in the request body. */
2753
+ export declare const updateVolume: API.OperationMethod<UpdateVolumeRequest, Volume, UpdateVolumeError, FlyIoOpContext>;
2754
+ export type UpsertMachineMetadataError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2755
+ /** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
2756
+ export declare const upsertMachineMetadata: API.OperationMethod<UpsertMachineMetadataRequest, UpsertMachineMetadataResponse, UpsertMachineMetadataError, FlyIoOpContext>;
2757
+ export type VerifySecretKeyError = BadRequest | Forbidden | NotFound | FlyIoOpError;
2758
+ /** Verify with a secret key */
2759
+ export declare const verifySecretKey: API.OperationMethod<VerifySecretKeyRequest, VerifySecretKeyResponse, VerifySecretKeyError, FlyIoOpContext>;
2760
+ export type WaitMachineError = BadRequest | Forbidden | NotFound | GatewayTimeout | FlyIoOpError;
2761
+ /** 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. */
2762
+ export declare const waitMachine: API.OperationMethod<WaitMachineRequest, WaitMachineResponse, WaitMachineError, FlyIoOpContext>;
2763
+ //# sourceMappingURL=machines.d.ts.map