@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,1188 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import type * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ FlyApiProtocol,
8
+ type FlyIoOpError,
9
+ type FlyIoOpContext,
10
+ } from "../protocol.ts";
11
+ import { Conflict, Forbidden, NotFound } from "../errors.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { FlyIoOpError, FlyIoOpContext };
15
+
16
+ export interface CreateAttachmentRequest {
17
+ id: string;
18
+ app_name: string;
19
+ }
20
+ export const CreateAttachmentRequest = /*@__PURE__*/ S.suspend(() =>
21
+ S.Struct({
22
+ id: S.String.pipe(T.Label()),
23
+ app_name: S.String,
24
+ }).pipe(
25
+ T.Http({
26
+ method: "POST",
27
+ uri: "/api/v1/postgresv2/{id}/attachments",
28
+ code: 200,
29
+ }),
30
+ ),
31
+ ).annotate({
32
+ identifier: "CreateAttachmentRequest",
33
+ }) as any as S.Schema<CreateAttachmentRequest>;
34
+
35
+ export interface CreateAttachmentResponseData {
36
+ id?: number;
37
+ app_id?: number;
38
+ managed_service_id?: number;
39
+ attached_at?: string;
40
+ }
41
+ export const CreateAttachmentResponseData = /*@__PURE__*/ S.suspend(() =>
42
+ S.Struct({
43
+ id: S.optional(S.Number),
44
+ app_id: S.optional(S.Number),
45
+ managed_service_id: S.optional(S.Number),
46
+ attached_at: S.optional(S.String),
47
+ }),
48
+ ).annotate({
49
+ identifier: "CreateAttachmentResponseData",
50
+ }) as any as S.Schema<CreateAttachmentResponseData>;
51
+
52
+ export interface CreateAttachmentResponse {
53
+ data?: CreateAttachmentResponseData;
54
+ }
55
+ export const CreateAttachmentResponse = /*@__PURE__*/ S.suspend(() =>
56
+ S.Struct({
57
+ data: S.optional(CreateAttachmentResponseData),
58
+ }),
59
+ ).annotate({
60
+ identifier: "CreateAttachmentResponse",
61
+ }) as any as S.Schema<CreateAttachmentResponse>;
62
+
63
+ export interface CreateBackupRequest {
64
+ id: string;
65
+ type?: string;
66
+ }
67
+ export const CreateBackupRequest = /*@__PURE__*/ S.suspend(() =>
68
+ S.Struct({
69
+ id: S.String.pipe(T.Label()),
70
+ type: S.optional(S.String),
71
+ }).pipe(
72
+ T.Http({
73
+ method: "POST",
74
+ uri: "/api/v1/postgresv2/{id}/backups",
75
+ code: 200,
76
+ }),
77
+ ),
78
+ ).annotate({
79
+ identifier: "CreateBackupRequest",
80
+ }) as any as S.Schema<CreateBackupRequest>;
81
+
82
+ export interface CreateBackupResponse {}
83
+ export const CreateBackupResponse = /*@__PURE__*/ S.suspend(() =>
84
+ S.Struct({}),
85
+ ).annotate({
86
+ identifier: "CreateBackupResponse",
87
+ }) as any as S.Schema<CreateBackupResponse>;
88
+
89
+ export interface CreateClusterRequest {
90
+ org_slug: string;
91
+ name: string;
92
+ region: string;
93
+ plan: string;
94
+ pg_major_version?: string;
95
+ storage_in_gb?: number;
96
+ postgis_enabled?: boolean;
97
+ }
98
+ export const CreateClusterRequest = /*@__PURE__*/ S.suspend(() =>
99
+ S.Struct({
100
+ org_slug: S.String.pipe(T.Label()),
101
+ name: S.String,
102
+ region: S.String,
103
+ plan: S.String,
104
+ pg_major_version: S.optional(S.String),
105
+ storage_in_gb: S.optional(S.Number),
106
+ postgis_enabled: S.optional(S.Boolean),
107
+ }).pipe(
108
+ T.Http({
109
+ method: "POST",
110
+ uri: "/api/v1/organizations/{org_slug}/postgresv2",
111
+ code: 200,
112
+ }),
113
+ ),
114
+ ).annotate({
115
+ identifier: "CreateClusterRequest",
116
+ }) as any as S.Schema<CreateClusterRequest>;
117
+
118
+ export interface Organization {
119
+ id?: string;
120
+ name?: string;
121
+ slug?: string;
122
+ raw_slug?: string;
123
+ }
124
+ export const Organization = /*@__PURE__*/ S.suspend(() =>
125
+ S.Struct({
126
+ id: S.optional(S.String),
127
+ name: S.optional(S.String),
128
+ slug: S.optional(S.String),
129
+ raw_slug: S.optional(S.String),
130
+ }),
131
+ ).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
132
+
133
+ export type IpAssignments = { [key: string]: string | undefined };
134
+ export const IpAssignments = /*@__PURE__*/ S.Record(
135
+ S.String,
136
+ S.String,
137
+ ) as any as S.Schema<IpAssignments>;
138
+
139
+ export interface AttachedApp {
140
+ name?: string;
141
+ id?: string;
142
+ }
143
+ export const AttachedApp = /*@__PURE__*/ S.suspend(() =>
144
+ S.Struct({
145
+ name: S.optional(S.String),
146
+ id: S.optional(S.String),
147
+ }),
148
+ ).annotate({ identifier: "AttachedApp" }) as any as S.Schema<AttachedApp>;
149
+
150
+ export type ManagedClusterAttachedAppsList = Array<AttachedApp>;
151
+ export const ManagedClusterAttachedAppsList = /*@__PURE__*/ S.Array(
152
+ AttachedApp,
153
+ ) as any as S.Schema<ManagedClusterAttachedAppsList>;
154
+
155
+ export interface ManagedCluster {
156
+ id?: string;
157
+ name?: string;
158
+ status?: string;
159
+ engine?: string;
160
+ plan?: string;
161
+ region?: string;
162
+ organization?: Organization;
163
+ mpgd_cluster_id?: string;
164
+ disk?: number;
165
+ replicas?: number;
166
+ ip_assignments?: IpAssignments;
167
+ attached_apps?: ManagedClusterAttachedAppsList;
168
+ postgis_enabled?: boolean;
169
+ environment?: string;
170
+ }
171
+ export const ManagedCluster = /*@__PURE__*/ S.suspend(() =>
172
+ S.Struct({
173
+ id: S.optional(S.String),
174
+ name: S.optional(S.String),
175
+ status: S.optional(S.String),
176
+ engine: S.optional(S.String),
177
+ plan: S.optional(S.String),
178
+ region: S.optional(S.String),
179
+ organization: S.optional(Organization),
180
+ mpgd_cluster_id: S.optional(S.String),
181
+ disk: S.optional(S.Number),
182
+ replicas: S.optional(S.Number),
183
+ ip_assignments: S.optional(IpAssignments),
184
+ attached_apps: S.optional(ManagedClusterAttachedAppsList),
185
+ postgis_enabled: S.optional(S.Boolean),
186
+ environment: S.optional(S.String),
187
+ }),
188
+ ).annotate({ identifier: "ManagedCluster" }) as any as S.Schema<ManagedCluster>;
189
+
190
+ export type CreateClusterResponseErrorsMap = {
191
+ [key: string]: unknown | undefined;
192
+ };
193
+ export const CreateClusterResponseErrorsMap = /*@__PURE__*/ S.Record(
194
+ S.String,
195
+ S.Unknown,
196
+ ) as any as S.Schema<CreateClusterResponseErrorsMap>;
197
+
198
+ export interface CreateClusterResponse {
199
+ ok?: boolean;
200
+ data?: ManagedCluster;
201
+ errors?: CreateClusterResponseErrorsMap;
202
+ }
203
+ export const CreateClusterResponse = /*@__PURE__*/ S.suspend(() =>
204
+ S.Struct({
205
+ ok: S.optional(S.Boolean),
206
+ data: S.optional(ManagedCluster),
207
+ errors: S.optional(CreateClusterResponseErrorsMap),
208
+ }),
209
+ ).annotate({
210
+ identifier: "CreateClusterResponse",
211
+ }) as any as S.Schema<CreateClusterResponse>;
212
+
213
+ export interface CreateDatabaseRequest {
214
+ id: string;
215
+ name: string;
216
+ }
217
+ export const CreateDatabaseRequest = /*@__PURE__*/ S.suspend(() =>
218
+ S.Struct({
219
+ id: S.String.pipe(T.Label()),
220
+ name: S.String,
221
+ }).pipe(
222
+ T.Http({
223
+ method: "POST",
224
+ uri: "/api/v1/postgresv2/{id}/databases",
225
+ code: 200,
226
+ }),
227
+ ),
228
+ ).annotate({
229
+ identifier: "CreateDatabaseRequest",
230
+ }) as any as S.Schema<CreateDatabaseRequest>;
231
+
232
+ export interface CreateDatabaseResponse {}
233
+ export const CreateDatabaseResponse = /*@__PURE__*/ S.suspend(() =>
234
+ S.Struct({}),
235
+ ).annotate({
236
+ identifier: "CreateDatabaseResponse",
237
+ }) as any as S.Schema<CreateDatabaseResponse>;
238
+
239
+ export type CreateUserRequestRole = "schema_admin" | "writer" | "reader";
240
+ export const CreateUserRequestRole = S.String;
241
+
242
+ export interface CreateUserRequest {
243
+ id: string;
244
+ username: string;
245
+ role: CreateUserRequestRole | (string & {});
246
+ }
247
+ export const CreateUserRequest = /*@__PURE__*/ S.suspend(() =>
248
+ S.Struct({
249
+ id: S.String.pipe(T.Label()),
250
+ username: S.String,
251
+ role: CreateUserRequestRole,
252
+ }).pipe(
253
+ T.Http({ method: "POST", uri: "/api/v1/postgresv2/{id}/users", code: 200 }),
254
+ ),
255
+ ).annotate({
256
+ identifier: "CreateUserRequest",
257
+ }) as any as S.Schema<CreateUserRequest>;
258
+
259
+ export interface User {
260
+ name?: string;
261
+ username?: string;
262
+ role?: string;
263
+ }
264
+ export const User = /*@__PURE__*/ S.suspend(() =>
265
+ S.Struct({
266
+ name: S.optional(S.String),
267
+ username: S.optional(S.String),
268
+ role: S.optional(S.String),
269
+ }),
270
+ ).annotate({ identifier: "User" }) as any as S.Schema<User>;
271
+
272
+ export interface CreateUserResponse {
273
+ data?: User;
274
+ }
275
+ export const CreateUserResponse = /*@__PURE__*/ S.suspend(() =>
276
+ S.Struct({
277
+ data: S.optional(User),
278
+ }),
279
+ ).annotate({
280
+ identifier: "CreateUserResponse",
281
+ }) as any as S.Schema<CreateUserResponse>;
282
+
283
+ export interface DeleteAttachmentRequest {
284
+ id: string;
285
+ app_name: string;
286
+ }
287
+ export const DeleteAttachmentRequest = /*@__PURE__*/ S.suspend(() =>
288
+ S.Struct({
289
+ id: S.String.pipe(T.Label()),
290
+ app_name: S.String.pipe(T.Label()),
291
+ }).pipe(
292
+ T.Http({
293
+ method: "DELETE",
294
+ uri: "/api/v1/postgresv2/{id}/attachments/{app_name}",
295
+ code: 200,
296
+ }),
297
+ ),
298
+ ).annotate({
299
+ identifier: "DeleteAttachmentRequest",
300
+ }) as any as S.Schema<DeleteAttachmentRequest>;
301
+
302
+ export interface DeleteAttachmentResponseData {
303
+ message?: string;
304
+ }
305
+ export const DeleteAttachmentResponseData = /*@__PURE__*/ S.suspend(() =>
306
+ S.Struct({
307
+ message: S.optional(S.String),
308
+ }),
309
+ ).annotate({
310
+ identifier: "DeleteAttachmentResponseData",
311
+ }) as any as S.Schema<DeleteAttachmentResponseData>;
312
+
313
+ export interface DeleteAttachmentResponse {
314
+ data?: DeleteAttachmentResponseData;
315
+ }
316
+ export const DeleteAttachmentResponse = /*@__PURE__*/ S.suspend(() =>
317
+ S.Struct({
318
+ data: S.optional(DeleteAttachmentResponseData),
319
+ }),
320
+ ).annotate({
321
+ identifier: "DeleteAttachmentResponse",
322
+ }) as any as S.Schema<DeleteAttachmentResponse>;
323
+
324
+ export interface DeleteUserRequest {
325
+ id: string;
326
+ username: string;
327
+ }
328
+ export const DeleteUserRequest = /*@__PURE__*/ S.suspend(() =>
329
+ S.Struct({
330
+ id: S.String.pipe(T.Label()),
331
+ username: S.String.pipe(T.Label()),
332
+ }).pipe(
333
+ T.Http({
334
+ method: "DELETE",
335
+ uri: "/api/v1/postgresv2/{id}/users/{username}",
336
+ code: 200,
337
+ }),
338
+ ),
339
+ ).annotate({
340
+ identifier: "DeleteUserRequest",
341
+ }) as any as S.Schema<DeleteUserRequest>;
342
+
343
+ export interface DeleteUserResponse {}
344
+ export const DeleteUserResponse = /*@__PURE__*/ S.suspend(() =>
345
+ S.Struct({}),
346
+ ).annotate({
347
+ identifier: "DeleteUserResponse",
348
+ }) as any as S.Schema<DeleteUserResponse>;
349
+
350
+ export interface DestroyClusterRequest {
351
+ org_slug: string;
352
+ id: string;
353
+ }
354
+ export const DestroyClusterRequest = /*@__PURE__*/ S.suspend(() =>
355
+ S.Struct({
356
+ org_slug: S.String.pipe(T.Label()),
357
+ id: S.String.pipe(T.Label()),
358
+ }).pipe(
359
+ T.Http({
360
+ method: "DELETE",
361
+ uri: "/api/v1/organizations/{org_slug}/postgresv2/{id}",
362
+ code: 200,
363
+ }),
364
+ ),
365
+ ).annotate({
366
+ identifier: "DestroyClusterRequest",
367
+ }) as any as S.Schema<DestroyClusterRequest>;
368
+
369
+ export interface DestroyClusterResponse {}
370
+ export const DestroyClusterResponse = /*@__PURE__*/ S.suspend(() =>
371
+ S.Struct({}),
372
+ ).annotate({
373
+ identifier: "DestroyClusterResponse",
374
+ }) as any as S.Schema<DestroyClusterResponse>;
375
+
376
+ export interface DisableExtensionRequest {
377
+ id: string;
378
+ database: string;
379
+ name: string;
380
+ force?: boolean;
381
+ }
382
+ export const DisableExtensionRequest = /*@__PURE__*/ S.suspend(() =>
383
+ S.Struct({
384
+ id: S.String.pipe(T.Label()),
385
+ database: S.String.pipe(T.Label()),
386
+ name: S.String.pipe(T.Label()),
387
+ force: S.optional(S.Boolean.pipe(T.Query())),
388
+ }).pipe(
389
+ T.Http({
390
+ method: "DELETE",
391
+ uri: "/api/v1/postgresv2/{id}/databases/{database}/extensions/{name}",
392
+ code: 200,
393
+ }),
394
+ ),
395
+ ).annotate({
396
+ identifier: "DisableExtensionRequest",
397
+ }) as any as S.Schema<DisableExtensionRequest>;
398
+
399
+ export interface DisableExtensionResponse {}
400
+ export const DisableExtensionResponse = /*@__PURE__*/ S.suspend(() =>
401
+ S.Struct({}),
402
+ ).annotate({
403
+ identifier: "DisableExtensionResponse",
404
+ }) as any as S.Schema<DisableExtensionResponse>;
405
+
406
+ export interface EnableExtensionRequest {
407
+ id: string;
408
+ database: string;
409
+ name: string;
410
+ schema?: string;
411
+ create_schema_if_needed?: boolean;
412
+ }
413
+ export const EnableExtensionRequest = /*@__PURE__*/ S.suspend(() =>
414
+ S.Struct({
415
+ id: S.String.pipe(T.Label()),
416
+ database: S.String.pipe(T.Label()),
417
+ name: S.String,
418
+ schema: S.optional(S.String),
419
+ create_schema_if_needed: S.optional(S.Boolean),
420
+ }).pipe(
421
+ T.Http({
422
+ method: "POST",
423
+ uri: "/api/v1/postgresv2/{id}/databases/{database}/extensions",
424
+ code: 200,
425
+ }),
426
+ ),
427
+ ).annotate({
428
+ identifier: "EnableExtensionRequest",
429
+ }) as any as S.Schema<EnableExtensionRequest>;
430
+
431
+ export interface EnableExtensionResponse {}
432
+ export const EnableExtensionResponse = /*@__PURE__*/ S.suspend(() =>
433
+ S.Struct({}),
434
+ ).annotate({
435
+ identifier: "EnableExtensionResponse",
436
+ }) as any as S.Schema<EnableExtensionResponse>;
437
+
438
+ export interface GetClusterRequest {
439
+ org_slug: string;
440
+ id: string;
441
+ }
442
+ export const GetClusterRequest = /*@__PURE__*/ S.suspend(() =>
443
+ S.Struct({
444
+ org_slug: S.String.pipe(T.Label()),
445
+ id: S.String.pipe(T.Label()),
446
+ }).pipe(
447
+ T.Http({
448
+ method: "GET",
449
+ uri: "/api/v1/organizations/{org_slug}/postgresv2/{id}",
450
+ code: 200,
451
+ }),
452
+ ),
453
+ ).annotate({
454
+ identifier: "GetClusterRequest",
455
+ }) as any as S.Schema<GetClusterRequest>;
456
+
457
+ export interface ClusterCredentials {
458
+ status?: string;
459
+ user?: string;
460
+ password?: string | Redacted.Redacted<string>;
461
+ dbname?: string;
462
+ pgbouncer_uri?: string | Redacted.Redacted<string>;
463
+ }
464
+ export const ClusterCredentials = /*@__PURE__*/ S.suspend(() =>
465
+ S.Struct({
466
+ status: S.optional(S.String),
467
+ user: S.optional(S.String),
468
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
469
+ dbname: S.optional(S.String),
470
+ pgbouncer_uri: S.optional(S.String.pipe(T.SensitiveValue({}))),
471
+ }),
472
+ ).annotate({
473
+ identifier: "ClusterCredentials",
474
+ }) as any as S.Schema<ClusterCredentials>;
475
+
476
+ export interface GetClusterResponse {
477
+ data?: ManagedCluster;
478
+ credentials?: ClusterCredentials;
479
+ }
480
+ export const GetClusterResponse = /*@__PURE__*/ S.suspend(() =>
481
+ S.Struct({
482
+ data: S.optional(ManagedCluster),
483
+ credentials: S.optional(ClusterCredentials),
484
+ }),
485
+ ).annotate({
486
+ identifier: "GetClusterResponse",
487
+ }) as any as S.Schema<GetClusterResponse>;
488
+
489
+ export interface GetClusterByIdRequest {
490
+ id: string;
491
+ }
492
+ export const GetClusterByIdRequest = /*@__PURE__*/ S.suspend(() =>
493
+ S.Struct({
494
+ id: S.String.pipe(T.Label()),
495
+ }).pipe(T.Http({ method: "GET", uri: "/api/v1/postgresv2/{id}", code: 200 })),
496
+ ).annotate({
497
+ identifier: "GetClusterByIdRequest",
498
+ }) as any as S.Schema<GetClusterByIdRequest>;
499
+
500
+ export interface GetUserCredentialsRequest {
501
+ id: string;
502
+ username: string;
503
+ }
504
+ export const GetUserCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
505
+ S.Struct({
506
+ id: S.String.pipe(T.Label()),
507
+ username: S.String.pipe(T.Label()),
508
+ }).pipe(
509
+ T.Http({
510
+ method: "GET",
511
+ uri: "/api/v1/postgresv2/{id}/users/{username}/credentials",
512
+ code: 200,
513
+ }),
514
+ ),
515
+ ).annotate({
516
+ identifier: "GetUserCredentialsRequest",
517
+ }) as any as S.Schema<GetUserCredentialsRequest>;
518
+
519
+ export interface GetUserCredentialsResponseData {
520
+ username?: string;
521
+ user?: string;
522
+ password?: string | Redacted.Redacted<string>;
523
+ }
524
+ export const GetUserCredentialsResponseData = /*@__PURE__*/ S.suspend(() =>
525
+ S.Struct({
526
+ username: S.optional(S.String),
527
+ user: S.optional(S.String),
528
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
529
+ }),
530
+ ).annotate({
531
+ identifier: "GetUserCredentialsResponseData",
532
+ }) as any as S.Schema<GetUserCredentialsResponseData>;
533
+
534
+ export interface GetUserCredentialsResponse {
535
+ data?: GetUserCredentialsResponseData;
536
+ }
537
+ export const GetUserCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
538
+ S.Struct({
539
+ data: S.optional(GetUserCredentialsResponseData),
540
+ }),
541
+ ).annotate({
542
+ identifier: "GetUserCredentialsResponse",
543
+ }) as any as S.Schema<GetUserCredentialsResponse>;
544
+
545
+ export interface ListBackupsRequest {
546
+ id: string;
547
+ }
548
+ export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
549
+ S.Struct({
550
+ id: S.String.pipe(T.Label()),
551
+ }).pipe(
552
+ T.Http({
553
+ method: "GET",
554
+ uri: "/api/v1/postgresv2/{id}/backups",
555
+ code: 200,
556
+ }),
557
+ ),
558
+ ).annotate({
559
+ identifier: "ListBackupsRequest",
560
+ }) as any as S.Schema<ListBackupsRequest>;
561
+
562
+ export interface ClusterBackup {
563
+ id?: string;
564
+ status?: string;
565
+ type?: string;
566
+ start?: string;
567
+ stop?: string;
568
+ }
569
+ export const ClusterBackup = /*@__PURE__*/ S.suspend(() =>
570
+ S.Struct({
571
+ id: S.optional(S.String),
572
+ status: S.optional(S.String),
573
+ type: S.optional(S.String),
574
+ start: S.optional(S.String),
575
+ stop: S.optional(S.String),
576
+ }),
577
+ ).annotate({ identifier: "ClusterBackup" }) as any as S.Schema<ClusterBackup>;
578
+
579
+ export type ListBackupsResponseDataList = Array<ClusterBackup>;
580
+ export const ListBackupsResponseDataList = /*@__PURE__*/ S.Array(
581
+ ClusterBackup,
582
+ ) as any as S.Schema<ListBackupsResponseDataList>;
583
+
584
+ export interface ListBackupsResponse {
585
+ data?: ListBackupsResponseDataList;
586
+ }
587
+ export const ListBackupsResponse = /*@__PURE__*/ S.suspend(() =>
588
+ S.Struct({
589
+ data: S.optional(ListBackupsResponseDataList),
590
+ }),
591
+ ).annotate({
592
+ identifier: "ListBackupsResponse",
593
+ }) as any as S.Schema<ListBackupsResponse>;
594
+
595
+ export interface ListClustersRequest {
596
+ org_slug: string;
597
+ }
598
+ export const ListClustersRequest = /*@__PURE__*/ S.suspend(() =>
599
+ S.Struct({
600
+ org_slug: S.String.pipe(T.Label()),
601
+ }).pipe(
602
+ T.Http({
603
+ method: "GET",
604
+ uri: "/api/v1/organizations/{org_slug}/postgresv2",
605
+ code: 200,
606
+ }),
607
+ ),
608
+ ).annotate({
609
+ identifier: "ListClustersRequest",
610
+ }) as any as S.Schema<ListClustersRequest>;
611
+
612
+ export type ListClustersResponseDataList = Array<ManagedCluster>;
613
+ export const ListClustersResponseDataList = /*@__PURE__*/ S.Array(
614
+ ManagedCluster,
615
+ ) as any as S.Schema<ListClustersResponseDataList>;
616
+
617
+ export interface ListClustersResponse {
618
+ data?: ListClustersResponseDataList;
619
+ }
620
+ export const ListClustersResponse = /*@__PURE__*/ S.suspend(() =>
621
+ S.Struct({
622
+ data: S.optional(ListClustersResponseDataList),
623
+ }),
624
+ ).annotate({
625
+ identifier: "ListClustersResponse",
626
+ }) as any as S.Schema<ListClustersResponse>;
627
+
628
+ export interface ListDatabasesRequest {
629
+ id: string;
630
+ }
631
+ export const ListDatabasesRequest = /*@__PURE__*/ S.suspend(() =>
632
+ S.Struct({
633
+ id: S.String.pipe(T.Label()),
634
+ }).pipe(
635
+ T.Http({
636
+ method: "GET",
637
+ uri: "/api/v1/postgresv2/{id}/databases",
638
+ code: 200,
639
+ }),
640
+ ),
641
+ ).annotate({
642
+ identifier: "ListDatabasesRequest",
643
+ }) as any as S.Schema<ListDatabasesRequest>;
644
+
645
+ export interface Database {
646
+ name?: string;
647
+ }
648
+ export const Database = /*@__PURE__*/ S.suspend(() =>
649
+ S.Struct({
650
+ name: S.optional(S.String),
651
+ }),
652
+ ).annotate({ identifier: "Database" }) as any as S.Schema<Database>;
653
+
654
+ export type ListDatabasesResponseDataList = Array<Database>;
655
+ export const ListDatabasesResponseDataList = /*@__PURE__*/ S.Array(
656
+ Database,
657
+ ) as any as S.Schema<ListDatabasesResponseDataList>;
658
+
659
+ export interface ListDatabasesResponse {
660
+ data?: ListDatabasesResponseDataList;
661
+ }
662
+ export const ListDatabasesResponse = /*@__PURE__*/ S.suspend(() =>
663
+ S.Struct({
664
+ data: S.optional(ListDatabasesResponseDataList),
665
+ }),
666
+ ).annotate({
667
+ identifier: "ListDatabasesResponse",
668
+ }) as any as S.Schema<ListDatabasesResponse>;
669
+
670
+ export interface ListExtensionsRequest {
671
+ id: string;
672
+ database: string;
673
+ }
674
+ export const ListExtensionsRequest = /*@__PURE__*/ S.suspend(() =>
675
+ S.Struct({
676
+ id: S.String.pipe(T.Label()),
677
+ database: S.String.pipe(T.Label()),
678
+ }).pipe(
679
+ T.Http({
680
+ method: "GET",
681
+ uri: "/api/v1/postgresv2/{id}/databases/{database}/extensions",
682
+ code: 200,
683
+ }),
684
+ ),
685
+ ).annotate({
686
+ identifier: "ListExtensionsRequest",
687
+ }) as any as S.Schema<ListExtensionsRequest>;
688
+
689
+ export interface InstalledExtension {
690
+ version?: string;
691
+ schema?: string;
692
+ }
693
+ export const InstalledExtension = /*@__PURE__*/ S.suspend(() =>
694
+ S.Struct({
695
+ version: S.optional(S.String),
696
+ schema: S.optional(S.String),
697
+ }),
698
+ ).annotate({
699
+ identifier: "InstalledExtension",
700
+ }) as any as S.Schema<InstalledExtension>;
701
+
702
+ export interface Extension {
703
+ name?: string;
704
+ description?: string;
705
+ docs_url?: string;
706
+ default_version?: string;
707
+ is_system?: boolean;
708
+ installed?: InstalledExtension;
709
+ }
710
+ export const Extension = /*@__PURE__*/ S.suspend(() =>
711
+ S.Struct({
712
+ name: S.optional(S.String),
713
+ description: S.optional(S.String),
714
+ docs_url: S.optional(S.String),
715
+ default_version: S.optional(S.String),
716
+ is_system: S.optional(S.Boolean),
717
+ installed: S.optional(InstalledExtension),
718
+ }),
719
+ ).annotate({ identifier: "Extension" }) as any as S.Schema<Extension>;
720
+
721
+ export type ListExtensionsResponseDataList = Array<Extension>;
722
+ export const ListExtensionsResponseDataList = /*@__PURE__*/ S.Array(
723
+ Extension,
724
+ ) as any as S.Schema<ListExtensionsResponseDataList>;
725
+
726
+ export interface ListExtensionsResponse {
727
+ data?: ListExtensionsResponseDataList;
728
+ }
729
+ export const ListExtensionsResponse = /*@__PURE__*/ S.suspend(() =>
730
+ S.Struct({
731
+ data: S.optional(ListExtensionsResponseDataList),
732
+ }),
733
+ ).annotate({
734
+ identifier: "ListExtensionsResponse",
735
+ }) as any as S.Schema<ListExtensionsResponse>;
736
+
737
+ export interface ListRegionsRequest {
738
+ org_slug: string;
739
+ }
740
+ export const ListRegionsRequest = /*@__PURE__*/ S.suspend(() =>
741
+ S.Struct({
742
+ org_slug: S.String.pipe(T.Label()),
743
+ }).pipe(
744
+ T.Http({
745
+ method: "GET",
746
+ uri: "/api/v1/organizations/{org_slug}/postgresv2/regions",
747
+ code: 200,
748
+ }),
749
+ ),
750
+ ).annotate({
751
+ identifier: "ListRegionsRequest",
752
+ }) as any as S.Schema<ListRegionsRequest>;
753
+
754
+ export interface Region {
755
+ code?: string;
756
+ available?: boolean;
757
+ }
758
+ export const Region = /*@__PURE__*/ S.suspend(() =>
759
+ S.Struct({
760
+ code: S.optional(S.String),
761
+ available: S.optional(S.Boolean),
762
+ }),
763
+ ).annotate({ identifier: "Region" }) as any as S.Schema<Region>;
764
+
765
+ export type ListRegionsResponseDataList = Array<Region>;
766
+ export const ListRegionsResponseDataList = /*@__PURE__*/ S.Array(
767
+ Region,
768
+ ) as any as S.Schema<ListRegionsResponseDataList>;
769
+
770
+ export interface ListRegionsResponse {
771
+ data?: ListRegionsResponseDataList;
772
+ }
773
+ export const ListRegionsResponse = /*@__PURE__*/ S.suspend(() =>
774
+ S.Struct({
775
+ data: S.optional(ListRegionsResponseDataList),
776
+ }),
777
+ ).annotate({
778
+ identifier: "ListRegionsResponse",
779
+ }) as any as S.Schema<ListRegionsResponse>;
780
+
781
+ export interface ListUsersRequest {
782
+ id: string;
783
+ }
784
+ export const ListUsersRequest = /*@__PURE__*/ S.suspend(() =>
785
+ S.Struct({
786
+ id: S.String.pipe(T.Label()),
787
+ }).pipe(
788
+ T.Http({ method: "GET", uri: "/api/v1/postgresv2/{id}/users", code: 200 }),
789
+ ),
790
+ ).annotate({
791
+ identifier: "ListUsersRequest",
792
+ }) as any as S.Schema<ListUsersRequest>;
793
+
794
+ export type ListUsersResponseDataList = Array<User>;
795
+ export const ListUsersResponseDataList = /*@__PURE__*/ S.Array(
796
+ User,
797
+ ) as any as S.Schema<ListUsersResponseDataList>;
798
+
799
+ export interface ListUsersResponse {
800
+ data?: ListUsersResponseDataList;
801
+ }
802
+ export const ListUsersResponse = /*@__PURE__*/ S.suspend(() =>
803
+ S.Struct({
804
+ data: S.optional(ListUsersResponseDataList),
805
+ }),
806
+ ).annotate({
807
+ identifier: "ListUsersResponse",
808
+ }) as any as S.Schema<ListUsersResponse>;
809
+
810
+ export interface RestoreBackupRequest {
811
+ id: string;
812
+ backup_id?: string;
813
+ name?: string;
814
+ pitr_time?: string;
815
+ }
816
+ export const RestoreBackupRequest = /*@__PURE__*/ S.suspend(() =>
817
+ S.Struct({
818
+ id: S.String.pipe(T.Label()),
819
+ backup_id: S.optional(S.String),
820
+ name: S.optional(S.String),
821
+ pitr_time: S.optional(S.String),
822
+ }).pipe(
823
+ T.Http({
824
+ method: "POST",
825
+ uri: "/api/v1/postgresv2/{id}/restore",
826
+ code: 200,
827
+ }),
828
+ ),
829
+ ).annotate({
830
+ identifier: "RestoreBackupRequest",
831
+ }) as any as S.Schema<RestoreBackupRequest>;
832
+
833
+ export interface RestoreBackupResponse {
834
+ data?: ManagedCluster;
835
+ }
836
+ export const RestoreBackupResponse = /*@__PURE__*/ S.suspend(() =>
837
+ S.Struct({
838
+ data: S.optional(ManagedCluster),
839
+ }),
840
+ ).annotate({
841
+ identifier: "RestoreBackupResponse",
842
+ }) as any as S.Schema<RestoreBackupResponse>;
843
+
844
+ export type UpdateUserRoleRequestRole = "schema_admin" | "writer" | "reader";
845
+ export const UpdateUserRoleRequestRole = S.String;
846
+
847
+ export interface UpdateUserRoleRequest {
848
+ id: string;
849
+ username: string;
850
+ role: UpdateUserRoleRequestRole | (string & {});
851
+ }
852
+ export const UpdateUserRoleRequest = /*@__PURE__*/ S.suspend(() =>
853
+ S.Struct({
854
+ id: S.String.pipe(T.Label()),
855
+ username: S.String.pipe(T.Label()),
856
+ role: UpdateUserRoleRequestRole,
857
+ }).pipe(
858
+ T.Http({
859
+ method: "PATCH",
860
+ uri: "/api/v1/postgresv2/{id}/users/{username}",
861
+ code: 200,
862
+ }),
863
+ ),
864
+ ).annotate({
865
+ identifier: "UpdateUserRoleRequest",
866
+ }) as any as S.Schema<UpdateUserRoleRequest>;
867
+
868
+ export interface UpdateUserRoleResponse {}
869
+ export const UpdateUserRoleResponse = /*@__PURE__*/ S.suspend(() =>
870
+ S.Struct({}),
871
+ ).annotate({
872
+ identifier: "UpdateUserRoleResponse",
873
+ }) as any as S.Schema<UpdateUserRoleResponse>;
874
+
875
+ export type CreateAttachmentError = NotFound | Conflict | FlyIoOpError;
876
+ /** Attach a cluster to a Machines app */
877
+ export const createAttachment: API.OperationMethod<
878
+ CreateAttachmentRequest,
879
+ CreateAttachmentResponse,
880
+ CreateAttachmentError,
881
+ FlyIoOpContext
882
+ > = /*@__PURE__*/ API.make(() => ({
883
+ input: CreateAttachmentRequest,
884
+ output: CreateAttachmentResponse,
885
+ errors: [NotFound, Conflict],
886
+ protocol: FlyApiProtocol,
887
+ retry: Retry.Retry,
888
+ }));
889
+
890
+ export type CreateBackupError = NotFound | FlyIoOpError;
891
+ /** Create a backup */
892
+ export const createBackup: API.OperationMethod<
893
+ CreateBackupRequest,
894
+ CreateBackupResponse,
895
+ CreateBackupError,
896
+ FlyIoOpContext
897
+ > = /*@__PURE__*/ API.make(() => ({
898
+ input: CreateBackupRequest,
899
+ output: CreateBackupResponse,
900
+ errors: [NotFound],
901
+ protocol: FlyApiProtocol,
902
+ retry: Retry.Retry,
903
+ }));
904
+
905
+ export type CreateClusterError = Forbidden | NotFound | Conflict | FlyIoOpError;
906
+ /** Create an MPG v2 cluster */
907
+ export const createCluster: API.OperationMethod<
908
+ CreateClusterRequest,
909
+ CreateClusterResponse,
910
+ CreateClusterError,
911
+ FlyIoOpContext
912
+ > = /*@__PURE__*/ API.make(() => ({
913
+ input: CreateClusterRequest,
914
+ output: CreateClusterResponse,
915
+ errors: [Forbidden, NotFound, Conflict],
916
+ protocol: FlyApiProtocol,
917
+ retry: Retry.Retry,
918
+ }));
919
+
920
+ export type CreateDatabaseError = NotFound | Conflict | FlyIoOpError;
921
+ /** Create a database */
922
+ export const createDatabase: API.OperationMethod<
923
+ CreateDatabaseRequest,
924
+ CreateDatabaseResponse,
925
+ CreateDatabaseError,
926
+ FlyIoOpContext
927
+ > = /*@__PURE__*/ API.make(() => ({
928
+ input: CreateDatabaseRequest,
929
+ output: CreateDatabaseResponse,
930
+ errors: [NotFound, Conflict],
931
+ protocol: FlyApiProtocol,
932
+ retry: Retry.Retry,
933
+ }));
934
+
935
+ export type CreateUserError = NotFound | Conflict | FlyIoOpError;
936
+ /** Create a user with a role */
937
+ export const createUser: API.OperationMethod<
938
+ CreateUserRequest,
939
+ CreateUserResponse,
940
+ CreateUserError,
941
+ FlyIoOpContext
942
+ > = /*@__PURE__*/ API.make(() => ({
943
+ input: CreateUserRequest,
944
+ output: CreateUserResponse,
945
+ errors: [NotFound, Conflict],
946
+ protocol: FlyApiProtocol,
947
+ retry: Retry.Retry,
948
+ }));
949
+
950
+ export type DeleteAttachmentError = NotFound | FlyIoOpError;
951
+ /** Detach a cluster from a Machines app */
952
+ export const deleteAttachment: API.OperationMethod<
953
+ DeleteAttachmentRequest,
954
+ DeleteAttachmentResponse,
955
+ DeleteAttachmentError,
956
+ FlyIoOpContext
957
+ > = /*@__PURE__*/ API.make(() => ({
958
+ input: DeleteAttachmentRequest,
959
+ output: DeleteAttachmentResponse,
960
+ errors: [NotFound],
961
+ protocol: FlyApiProtocol,
962
+ retry: Retry.Retry,
963
+ }));
964
+
965
+ export type DeleteUserError = NotFound | FlyIoOpError;
966
+ /** Delete a user */
967
+ export const deleteUser: API.OperationMethod<
968
+ DeleteUserRequest,
969
+ DeleteUserResponse,
970
+ DeleteUserError,
971
+ FlyIoOpContext
972
+ > = /*@__PURE__*/ API.make(() => ({
973
+ input: DeleteUserRequest,
974
+ output: DeleteUserResponse,
975
+ errors: [NotFound],
976
+ protocol: FlyApiProtocol,
977
+ retry: Retry.Retry,
978
+ }));
979
+
980
+ export type DestroyClusterError = NotFound | FlyIoOpError;
981
+ /** Destroy an MPG v2 cluster (async — poll 404) */
982
+ export const destroyCluster: API.OperationMethod<
983
+ DestroyClusterRequest,
984
+ DestroyClusterResponse,
985
+ DestroyClusterError,
986
+ FlyIoOpContext
987
+ > = /*@__PURE__*/ API.make(() => ({
988
+ input: DestroyClusterRequest,
989
+ output: DestroyClusterResponse,
990
+ errors: [NotFound],
991
+ protocol: FlyApiProtocol,
992
+ retry: Retry.Retry,
993
+ }));
994
+
995
+ export type DisableExtensionError = NotFound | FlyIoOpError;
996
+ /** Disable an extension */
997
+ export const disableExtension: API.OperationMethod<
998
+ DisableExtensionRequest,
999
+ DisableExtensionResponse,
1000
+ DisableExtensionError,
1001
+ FlyIoOpContext
1002
+ > = /*@__PURE__*/ API.make(() => ({
1003
+ input: DisableExtensionRequest,
1004
+ output: DisableExtensionResponse,
1005
+ errors: [NotFound],
1006
+ protocol: FlyApiProtocol,
1007
+ retry: Retry.Retry,
1008
+ }));
1009
+
1010
+ export type EnableExtensionError = NotFound | Conflict | FlyIoOpError;
1011
+ /** Enable an extension */
1012
+ export const enableExtension: API.OperationMethod<
1013
+ EnableExtensionRequest,
1014
+ EnableExtensionResponse,
1015
+ EnableExtensionError,
1016
+ FlyIoOpContext
1017
+ > = /*@__PURE__*/ API.make(() => ({
1018
+ input: EnableExtensionRequest,
1019
+ output: EnableExtensionResponse,
1020
+ errors: [NotFound, Conflict],
1021
+ protocol: FlyApiProtocol,
1022
+ retry: Retry.Retry,
1023
+ }));
1024
+
1025
+ export type GetClusterError = NotFound | FlyIoOpError;
1026
+ /** Get an MPG v2 cluster by org and id */
1027
+ export const getCluster: API.OperationMethod<
1028
+ GetClusterRequest,
1029
+ GetClusterResponse,
1030
+ GetClusterError,
1031
+ FlyIoOpContext
1032
+ > = /*@__PURE__*/ API.make(() => ({
1033
+ input: GetClusterRequest,
1034
+ output: GetClusterResponse,
1035
+ errors: [NotFound],
1036
+ protocol: FlyApiProtocol,
1037
+ retry: Retry.Retry,
1038
+ }));
1039
+
1040
+ export type GetClusterByIdError = NotFound | FlyIoOpError;
1041
+ /** Get an MPG v2 cluster by id */
1042
+ export const getClusterById: API.OperationMethod<
1043
+ GetClusterByIdRequest,
1044
+ GetClusterResponse,
1045
+ GetClusterByIdError,
1046
+ FlyIoOpContext
1047
+ > = /*@__PURE__*/ API.make(() => ({
1048
+ input: GetClusterByIdRequest,
1049
+ output: GetClusterResponse,
1050
+ errors: [NotFound],
1051
+ protocol: FlyApiProtocol,
1052
+ retry: Retry.Retry,
1053
+ }));
1054
+
1055
+ export type GetUserCredentialsError = NotFound | FlyIoOpError;
1056
+ /** Get a user's credentials */
1057
+ export const getUserCredentials: API.OperationMethod<
1058
+ GetUserCredentialsRequest,
1059
+ GetUserCredentialsResponse,
1060
+ GetUserCredentialsError,
1061
+ FlyIoOpContext
1062
+ > = /*@__PURE__*/ API.make(() => ({
1063
+ input: GetUserCredentialsRequest,
1064
+ output: GetUserCredentialsResponse,
1065
+ errors: [NotFound],
1066
+ protocol: FlyApiProtocol,
1067
+ retry: Retry.Retry,
1068
+ }));
1069
+
1070
+ export type ListBackupsError = NotFound | FlyIoOpError;
1071
+ /** List cluster backups */
1072
+ export const listBackups: API.OperationMethod<
1073
+ ListBackupsRequest,
1074
+ ListBackupsResponse,
1075
+ ListBackupsError,
1076
+ FlyIoOpContext
1077
+ > = /*@__PURE__*/ API.make(() => ({
1078
+ input: ListBackupsRequest,
1079
+ output: ListBackupsResponse,
1080
+ errors: [NotFound],
1081
+ protocol: FlyApiProtocol,
1082
+ retry: Retry.Retry,
1083
+ }));
1084
+
1085
+ export type ListClustersError = Forbidden | NotFound | FlyIoOpError;
1086
+ /** List MPG v2 clusters in an organization */
1087
+ export const listClusters: API.OperationMethod<
1088
+ ListClustersRequest,
1089
+ ListClustersResponse,
1090
+ ListClustersError,
1091
+ FlyIoOpContext
1092
+ > = /*@__PURE__*/ API.make(() => ({
1093
+ input: ListClustersRequest,
1094
+ output: ListClustersResponse,
1095
+ errors: [Forbidden, NotFound],
1096
+ protocol: FlyApiProtocol,
1097
+ retry: Retry.Retry,
1098
+ }));
1099
+
1100
+ export type ListDatabasesError = NotFound | FlyIoOpError;
1101
+ /** List databases (no DELETE API) */
1102
+ export const listDatabases: API.OperationMethod<
1103
+ ListDatabasesRequest,
1104
+ ListDatabasesResponse,
1105
+ ListDatabasesError,
1106
+ FlyIoOpContext
1107
+ > = /*@__PURE__*/ API.make(() => ({
1108
+ input: ListDatabasesRequest,
1109
+ output: ListDatabasesResponse,
1110
+ errors: [NotFound],
1111
+ protocol: FlyApiProtocol,
1112
+ retry: Retry.Retry,
1113
+ }));
1114
+
1115
+ export type ListExtensionsError = NotFound | FlyIoOpError;
1116
+ /** List available/installed extensions */
1117
+ export const listExtensions: API.OperationMethod<
1118
+ ListExtensionsRequest,
1119
+ ListExtensionsResponse,
1120
+ ListExtensionsError,
1121
+ FlyIoOpContext
1122
+ > = /*@__PURE__*/ API.make(() => ({
1123
+ input: ListExtensionsRequest,
1124
+ output: ListExtensionsResponse,
1125
+ errors: [NotFound],
1126
+ protocol: FlyApiProtocol,
1127
+ retry: Retry.Retry,
1128
+ }));
1129
+
1130
+ export type ListRegionsError = FlyIoOpError;
1131
+ /** List regions that support MPG for an organization */
1132
+ export const listRegions: API.OperationMethod<
1133
+ ListRegionsRequest,
1134
+ ListRegionsResponse,
1135
+ ListRegionsError,
1136
+ FlyIoOpContext
1137
+ > = /*@__PURE__*/ API.make(() => ({
1138
+ input: ListRegionsRequest,
1139
+ output: ListRegionsResponse,
1140
+ errors: [],
1141
+ protocol: FlyApiProtocol,
1142
+ retry: Retry.Retry,
1143
+ }));
1144
+
1145
+ export type ListUsersError = NotFound | FlyIoOpError;
1146
+ /** List cluster users */
1147
+ export const listUsers: API.OperationMethod<
1148
+ ListUsersRequest,
1149
+ ListUsersResponse,
1150
+ ListUsersError,
1151
+ FlyIoOpContext
1152
+ > = /*@__PURE__*/ API.make(() => ({
1153
+ input: ListUsersRequest,
1154
+ output: ListUsersResponse,
1155
+ errors: [NotFound],
1156
+ protocol: FlyApiProtocol,
1157
+ retry: Retry.Retry,
1158
+ }));
1159
+
1160
+ export type RestoreBackupError = NotFound | FlyIoOpError;
1161
+ /** Restore a cluster from a backup (creates a new cluster) */
1162
+ export const restoreBackup: API.OperationMethod<
1163
+ RestoreBackupRequest,
1164
+ RestoreBackupResponse,
1165
+ RestoreBackupError,
1166
+ FlyIoOpContext
1167
+ > = /*@__PURE__*/ API.make(() => ({
1168
+ input: RestoreBackupRequest,
1169
+ output: RestoreBackupResponse,
1170
+ errors: [NotFound],
1171
+ protocol: FlyApiProtocol,
1172
+ retry: Retry.Retry,
1173
+ }));
1174
+
1175
+ export type UpdateUserRoleError = NotFound | FlyIoOpError;
1176
+ /** Update a user's role */
1177
+ export const updateUserRole: API.OperationMethod<
1178
+ UpdateUserRoleRequest,
1179
+ UpdateUserRoleResponse,
1180
+ UpdateUserRoleError,
1181
+ FlyIoOpContext
1182
+ > = /*@__PURE__*/ API.make(() => ({
1183
+ input: UpdateUserRoleRequest,
1184
+ output: UpdateUserRoleResponse,
1185
+ errors: [NotFound],
1186
+ protocol: FlyApiProtocol,
1187
+ retry: Retry.Retry,
1188
+ }));