@distilled.cloud/fly-io 0.0.0 → 0.2.5-alpha2

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 (402) hide show
  1. package/lib/category.d.ts +5 -0
  2. package/lib/category.d.ts.map +1 -0
  3. package/lib/category.js +5 -0
  4. package/lib/category.js.map +1 -0
  5. package/lib/client.d.ts +17 -0
  6. package/lib/client.d.ts.map +1 -0
  7. package/lib/client.js +51 -0
  8. package/lib/client.js.map +1 -0
  9. package/lib/credentials.d.ts +14 -0
  10. package/lib/credentials.d.ts.map +1 -0
  11. package/lib/credentials.js +17 -0
  12. package/lib/credentials.js.map +1 -0
  13. package/lib/errors.d.ts +31 -0
  14. package/lib/errors.d.ts.map +1 -0
  15. package/lib/errors.js +23 -0
  16. package/lib/errors.js.map +1 -0
  17. package/lib/index.d.ts +16 -0
  18. package/lib/index.d.ts.map +1 -0
  19. package/lib/index.js +16 -0
  20. package/lib/index.js.map +1 -0
  21. package/lib/operations/AppCreateDeployToken.d.ts +17 -0
  22. package/lib/operations/AppCreateDeployToken.d.ts.map +1 -0
  23. package/lib/operations/AppCreateDeployToken.js +25 -0
  24. package/lib/operations/AppCreateDeployToken.js.map +1 -0
  25. package/lib/operations/App_CertificatesAcmeCreate.d.ts +57 -0
  26. package/lib/operations/App_CertificatesAcmeCreate.d.ts.map +1 -0
  27. package/lib/operations/App_CertificatesAcmeCreate.js +69 -0
  28. package/lib/operations/App_CertificatesAcmeCreate.js.map +1 -0
  29. package/lib/operations/App_CertificatesAcmeDelete.d.ts +55 -0
  30. package/lib/operations/App_CertificatesAcmeDelete.d.ts.map +1 -0
  31. package/lib/operations/App_CertificatesAcmeDelete.js +70 -0
  32. package/lib/operations/App_CertificatesAcmeDelete.js.map +1 -0
  33. package/lib/operations/App_CertificatesCheck.d.ts +64 -0
  34. package/lib/operations/App_CertificatesCheck.d.ts.map +1 -0
  35. package/lib/operations/App_CertificatesCheck.js +79 -0
  36. package/lib/operations/App_CertificatesCheck.js.map +1 -0
  37. package/lib/operations/App_CertificatesCustomCreate.d.ts +59 -0
  38. package/lib/operations/App_CertificatesCustomCreate.d.ts.map +1 -0
  39. package/lib/operations/App_CertificatesCustomCreate.js +72 -0
  40. package/lib/operations/App_CertificatesCustomCreate.js.map +1 -0
  41. package/lib/operations/App_CertificatesCustomDelete.d.ts +56 -0
  42. package/lib/operations/App_CertificatesCustomDelete.d.ts.map +1 -0
  43. package/lib/operations/App_CertificatesCustomDelete.js +72 -0
  44. package/lib/operations/App_CertificatesCustomDelete.js.map +1 -0
  45. package/lib/operations/App_CertificatesDelete.d.ts +10 -0
  46. package/lib/operations/App_CertificatesDelete.d.ts.map +1 -0
  47. package/lib/operations/App_CertificatesDelete.js +21 -0
  48. package/lib/operations/App_CertificatesDelete.js.map +1 -0
  49. package/lib/operations/App_CertificatesList.d.ts +36 -0
  50. package/lib/operations/App_CertificatesList.d.ts.map +1 -0
  51. package/lib/operations/App_CertificatesList.js +44 -0
  52. package/lib/operations/App_CertificatesList.js.map +1 -0
  53. package/lib/operations/App_CertificatesShow.d.ts +55 -0
  54. package/lib/operations/App_CertificatesShow.d.ts.map +1 -0
  55. package/lib/operations/App_CertificatesShow.js +67 -0
  56. package/lib/operations/App_CertificatesShow.js.map +1 -0
  57. package/lib/operations/App_IPAssignmentsCreate.d.ts +22 -0
  58. package/lib/operations/App_IPAssignmentsCreate.d.ts.map +1 -0
  59. package/lib/operations/App_IPAssignmentsCreate.js +30 -0
  60. package/lib/operations/App_IPAssignmentsCreate.js.map +1 -0
  61. package/lib/operations/App_IPAssignmentsDelete.d.ts +10 -0
  62. package/lib/operations/App_IPAssignmentsDelete.d.ts.map +1 -0
  63. package/lib/operations/App_IPAssignmentsDelete.js +18 -0
  64. package/lib/operations/App_IPAssignmentsDelete.js.map +1 -0
  65. package/lib/operations/App_IPAssignmentsList.d.ts +18 -0
  66. package/lib/operations/App_IPAssignmentsList.d.ts.map +1 -0
  67. package/lib/operations/App_IPAssignmentsList.js +26 -0
  68. package/lib/operations/App_IPAssignmentsList.js.map +1 -0
  69. package/lib/operations/AppsCreate.d.ts +17 -0
  70. package/lib/operations/AppsCreate.d.ts.map +1 -0
  71. package/lib/operations/AppsCreate.js +23 -0
  72. package/lib/operations/AppsCreate.js.map +1 -0
  73. package/lib/operations/AppsDelete.d.ts +16 -0
  74. package/lib/operations/AppsDelete.d.ts.map +1 -0
  75. package/lib/operations/AppsDelete.js +22 -0
  76. package/lib/operations/AppsDelete.js.map +1 -0
  77. package/lib/operations/AppsList.d.ts +34 -0
  78. package/lib/operations/AppsList.d.ts.map +1 -0
  79. package/lib/operations/AppsList.js +40 -0
  80. package/lib/operations/AppsList.js.map +1 -0
  81. package/lib/operations/AppsShow.d.ts +29 -0
  82. package/lib/operations/AppsShow.d.ts.map +1 -0
  83. package/lib/operations/AppsShow.js +35 -0
  84. package/lib/operations/AppsShow.js.map +1 -0
  85. package/lib/operations/CurrentTokenShow.d.ts +22 -0
  86. package/lib/operations/CurrentTokenShow.d.ts.map +1 -0
  87. package/lib/operations/CurrentTokenShow.js +28 -0
  88. package/lib/operations/CurrentTokenShow.js.map +1 -0
  89. package/lib/operations/MachinesCordon.d.ts +18 -0
  90. package/lib/operations/MachinesCordon.d.ts.map +1 -0
  91. package/lib/operations/MachinesCordon.js +27 -0
  92. package/lib/operations/MachinesCordon.js.map +1 -0
  93. package/lib/operations/MachinesCreate.d.ts +840 -0
  94. package/lib/operations/MachinesCreate.d.ts.map +1 -0
  95. package/lib/operations/MachinesCreate.js +888 -0
  96. package/lib/operations/MachinesCreate.js.map +1 -0
  97. package/lib/operations/MachinesCreateLease.d.ts +27 -0
  98. package/lib/operations/MachinesCreateLease.d.ts.map +1 -0
  99. package/lib/operations/MachinesCreateLease.js +38 -0
  100. package/lib/operations/MachinesCreateLease.js.map +1 -0
  101. package/lib/operations/MachinesDelete.d.ts +20 -0
  102. package/lib/operations/MachinesDelete.d.ts.map +1 -0
  103. package/lib/operations/MachinesDelete.js +26 -0
  104. package/lib/operations/MachinesDelete.js.map +1 -0
  105. package/lib/operations/MachinesDeleteMetadata.d.ts +20 -0
  106. package/lib/operations/MachinesDeleteMetadata.d.ts.map +1 -0
  107. package/lib/operations/MachinesDeleteMetadata.js +31 -0
  108. package/lib/operations/MachinesDeleteMetadata.js.map +1 -0
  109. package/lib/operations/MachinesExec.d.ts +28 -0
  110. package/lib/operations/MachinesExec.d.ts.map +1 -0
  111. package/lib/operations/MachinesExec.js +37 -0
  112. package/lib/operations/MachinesExec.js.map +1 -0
  113. package/lib/operations/MachinesGetMemory.d.ts +21 -0
  114. package/lib/operations/MachinesGetMemory.d.ts.map +1 -0
  115. package/lib/operations/MachinesGetMemory.js +31 -0
  116. package/lib/operations/MachinesGetMemory.js.map +1 -0
  117. package/lib/operations/MachinesList.d.ts +578 -0
  118. package/lib/operations/MachinesList.d.ts.map +1 -0
  119. package/lib/operations/MachinesList.js +622 -0
  120. package/lib/operations/MachinesList.js.map +1 -0
  121. package/lib/operations/MachinesListEvents.d.ts +27 -0
  122. package/lib/operations/MachinesListEvents.d.ts.map +1 -0
  123. package/lib/operations/MachinesListEvents.js +38 -0
  124. package/lib/operations/MachinesListEvents.js.map +1 -0
  125. package/lib/operations/MachinesListProcesses.d.ts +34 -0
  126. package/lib/operations/MachinesListProcesses.d.ts.map +1 -0
  127. package/lib/operations/MachinesListProcesses.js +45 -0
  128. package/lib/operations/MachinesListProcesses.js.map +1 -0
  129. package/lib/operations/MachinesListVersions.d.ts +281 -0
  130. package/lib/operations/MachinesListVersions.d.ts.map +1 -0
  131. package/lib/operations/MachinesListVersions.js +311 -0
  132. package/lib/operations/MachinesListVersions.js.map +1 -0
  133. package/lib/operations/MachinesOrgList.d.ts +45 -0
  134. package/lib/operations/MachinesOrgList.d.ts.map +1 -0
  135. package/lib/operations/MachinesOrgList.js +51 -0
  136. package/lib/operations/MachinesOrgList.js.map +1 -0
  137. package/lib/operations/MachinesPatchMetadata.d.ts +19 -0
  138. package/lib/operations/MachinesPatchMetadata.d.ts.map +1 -0
  139. package/lib/operations/MachinesPatchMetadata.js +30 -0
  140. package/lib/operations/MachinesPatchMetadata.js.map +1 -0
  141. package/lib/operations/MachinesReclaimMemory.d.ts +21 -0
  142. package/lib/operations/MachinesReclaimMemory.d.ts.map +1 -0
  143. package/lib/operations/MachinesReclaimMemory.js +32 -0
  144. package/lib/operations/MachinesReclaimMemory.js.map +1 -0
  145. package/lib/operations/MachinesReleaseLease.d.ts +19 -0
  146. package/lib/operations/MachinesReleaseLease.d.ts.map +1 -0
  147. package/lib/operations/MachinesReleaseLease.js +30 -0
  148. package/lib/operations/MachinesReleaseLease.js.map +1 -0
  149. package/lib/operations/MachinesRestart.d.ts +22 -0
  150. package/lib/operations/MachinesRestart.d.ts.map +1 -0
  151. package/lib/operations/MachinesRestart.js +31 -0
  152. package/lib/operations/MachinesRestart.js.map +1 -0
  153. package/lib/operations/MachinesSetMemoryLimit.d.ts +22 -0
  154. package/lib/operations/MachinesSetMemoryLimit.d.ts.map +1 -0
  155. package/lib/operations/MachinesSetMemoryLimit.js +33 -0
  156. package/lib/operations/MachinesSetMemoryLimit.js.map +1 -0
  157. package/lib/operations/MachinesShow.d.ts +572 -0
  158. package/lib/operations/MachinesShow.d.ts.map +1 -0
  159. package/lib/operations/MachinesShow.js +606 -0
  160. package/lib/operations/MachinesShow.js.map +1 -0
  161. package/lib/operations/MachinesShowLease.d.ts +24 -0
  162. package/lib/operations/MachinesShowLease.d.ts.map +1 -0
  163. package/lib/operations/MachinesShowLease.js +34 -0
  164. package/lib/operations/MachinesShowLease.js.map +1 -0
  165. package/lib/operations/MachinesShowMetadata.d.ts +18 -0
  166. package/lib/operations/MachinesShowMetadata.d.ts.map +1 -0
  167. package/lib/operations/MachinesShowMetadata.js +29 -0
  168. package/lib/operations/MachinesShowMetadata.js.map +1 -0
  169. package/lib/operations/MachinesSignal.d.ts +19 -0
  170. package/lib/operations/MachinesSignal.d.ts.map +1 -0
  171. package/lib/operations/MachinesSignal.js +42 -0
  172. package/lib/operations/MachinesSignal.js.map +1 -0
  173. package/lib/operations/MachinesStart.d.ts +18 -0
  174. package/lib/operations/MachinesStart.d.ts.map +1 -0
  175. package/lib/operations/MachinesStart.js +27 -0
  176. package/lib/operations/MachinesStart.js.map +1 -0
  177. package/lib/operations/MachinesStop.d.ts +22 -0
  178. package/lib/operations/MachinesStop.d.ts.map +1 -0
  179. package/lib/operations/MachinesStop.js +31 -0
  180. package/lib/operations/MachinesStop.js.map +1 -0
  181. package/lib/operations/MachinesSuspend.d.ts +18 -0
  182. package/lib/operations/MachinesSuspend.d.ts.map +1 -0
  183. package/lib/operations/MachinesSuspend.js +27 -0
  184. package/lib/operations/MachinesSuspend.js.map +1 -0
  185. package/lib/operations/MachinesUncordon.d.ts +18 -0
  186. package/lib/operations/MachinesUncordon.d.ts.map +1 -0
  187. package/lib/operations/MachinesUncordon.js +27 -0
  188. package/lib/operations/MachinesUncordon.js.map +1 -0
  189. package/lib/operations/MachinesUpdate.d.ts +842 -0
  190. package/lib/operations/MachinesUpdate.d.ts.map +1 -0
  191. package/lib/operations/MachinesUpdate.js +890 -0
  192. package/lib/operations/MachinesUpdate.js.map +1 -0
  193. package/lib/operations/MachinesUpdateMetadata.d.ts +20 -0
  194. package/lib/operations/MachinesUpdateMetadata.d.ts.map +1 -0
  195. package/lib/operations/MachinesUpdateMetadata.js +31 -0
  196. package/lib/operations/MachinesUpdateMetadata.js.map +1 -0
  197. package/lib/operations/MachinesWait.d.ts +28 -0
  198. package/lib/operations/MachinesWait.d.ts.map +1 -0
  199. package/lib/operations/MachinesWait.js +43 -0
  200. package/lib/operations/MachinesWait.js.map +1 -0
  201. package/lib/operations/PlatformPlacementsPost.d.ts +35 -0
  202. package/lib/operations/PlatformPlacementsPost.d.ts.map +1 -0
  203. package/lib/operations/PlatformPlacementsPost.js +43 -0
  204. package/lib/operations/PlatformPlacementsPost.js.map +1 -0
  205. package/lib/operations/PlatformRegionsGet.d.ts +39 -0
  206. package/lib/operations/PlatformRegionsGet.d.ts.map +1 -0
  207. package/lib/operations/PlatformRegionsGet.js +47 -0
  208. package/lib/operations/PlatformRegionsGet.js.map +1 -0
  209. package/lib/operations/SecretCreate.d.ts +25 -0
  210. package/lib/operations/SecretCreate.d.ts.map +1 -0
  211. package/lib/operations/SecretCreate.js +31 -0
  212. package/lib/operations/SecretCreate.js.map +1 -0
  213. package/lib/operations/SecretDelete.d.ts +19 -0
  214. package/lib/operations/SecretDelete.d.ts.map +1 -0
  215. package/lib/operations/SecretDelete.js +25 -0
  216. package/lib/operations/SecretDelete.js.map +1 -0
  217. package/lib/operations/SecretGet.d.ts +26 -0
  218. package/lib/operations/SecretGet.d.ts.map +1 -0
  219. package/lib/operations/SecretGet.js +32 -0
  220. package/lib/operations/SecretGet.js.map +1 -0
  221. package/lib/operations/SecretkeyDecrypt.d.ts +22 -0
  222. package/lib/operations/SecretkeyDecrypt.d.ts.map +1 -0
  223. package/lib/operations/SecretkeyDecrypt.js +31 -0
  224. package/lib/operations/SecretkeyDecrypt.js.map +1 -0
  225. package/lib/operations/SecretkeyDelete.d.ts +19 -0
  226. package/lib/operations/SecretkeyDelete.d.ts.map +1 -0
  227. package/lib/operations/SecretkeyDelete.js +28 -0
  228. package/lib/operations/SecretkeyDelete.js.map +1 -0
  229. package/lib/operations/SecretkeyEncrypt.d.ts +22 -0
  230. package/lib/operations/SecretkeyEncrypt.d.ts.map +1 -0
  231. package/lib/operations/SecretkeyEncrypt.js +31 -0
  232. package/lib/operations/SecretkeyEncrypt.js.map +1 -0
  233. package/lib/operations/SecretkeyGenerate.d.ts +26 -0
  234. package/lib/operations/SecretkeyGenerate.d.ts.map +1 -0
  235. package/lib/operations/SecretkeyGenerate.js +36 -0
  236. package/lib/operations/SecretkeyGenerate.js.map +1 -0
  237. package/lib/operations/SecretkeyGet.d.ts +24 -0
  238. package/lib/operations/SecretkeyGet.d.ts.map +1 -0
  239. package/lib/operations/SecretkeyGet.js +30 -0
  240. package/lib/operations/SecretkeyGet.js.map +1 -0
  241. package/lib/operations/SecretkeySet.d.ts +26 -0
  242. package/lib/operations/SecretkeySet.d.ts.map +1 -0
  243. package/lib/operations/SecretkeySet.js +32 -0
  244. package/lib/operations/SecretkeySet.js.map +1 -0
  245. package/lib/operations/SecretkeySign.d.ts +21 -0
  246. package/lib/operations/SecretkeySign.d.ts.map +1 -0
  247. package/lib/operations/SecretkeySign.js +30 -0
  248. package/lib/operations/SecretkeySign.js.map +1 -0
  249. package/lib/operations/SecretkeyVerify.d.ts +20 -0
  250. package/lib/operations/SecretkeyVerify.d.ts.map +1 -0
  251. package/lib/operations/SecretkeyVerify.js +29 -0
  252. package/lib/operations/SecretkeyVerify.js.map +1 -0
  253. package/lib/operations/SecretkeysList.d.ts +26 -0
  254. package/lib/operations/SecretkeysList.d.ts.map +1 -0
  255. package/lib/operations/SecretkeysList.js +32 -0
  256. package/lib/operations/SecretkeysList.js.map +1 -0
  257. package/lib/operations/SecretsList.d.ts +26 -0
  258. package/lib/operations/SecretsList.d.ts.map +1 -0
  259. package/lib/operations/SecretsList.js +32 -0
  260. package/lib/operations/SecretsList.js.map +1 -0
  261. package/lib/operations/SecretsUpdate.d.ts +25 -0
  262. package/lib/operations/SecretsUpdate.d.ts.map +1 -0
  263. package/lib/operations/SecretsUpdate.js +31 -0
  264. package/lib/operations/SecretsUpdate.js.map +1 -0
  265. package/lib/operations/TokensRequest_Kms.d.ts +12 -0
  266. package/lib/operations/TokensRequest_Kms.d.ts.map +1 -0
  267. package/lib/operations/TokensRequest_Kms.js +19 -0
  268. package/lib/operations/TokensRequest_Kms.js.map +1 -0
  269. package/lib/operations/TokensRequest_OIDC.d.ts +15 -0
  270. package/lib/operations/TokensRequest_OIDC.d.ts.map +1 -0
  271. package/lib/operations/TokensRequest_OIDC.js +23 -0
  272. package/lib/operations/TokensRequest_OIDC.js.map +1 -0
  273. package/lib/operations/VolumeDelete.d.ts +39 -0
  274. package/lib/operations/VolumeDelete.d.ts.map +1 -0
  275. package/lib/operations/VolumeDelete.js +45 -0
  276. package/lib/operations/VolumeDelete.js.map +1 -0
  277. package/lib/operations/VolumesCreate.d.ts +59 -0
  278. package/lib/operations/VolumesCreate.d.ts.map +1 -0
  279. package/lib/operations/VolumesCreate.js +65 -0
  280. package/lib/operations/VolumesCreate.js.map +1 -0
  281. package/lib/operations/VolumesExtend.d.ts +43 -0
  282. package/lib/operations/VolumesExtend.d.ts.map +1 -0
  283. package/lib/operations/VolumesExtend.js +52 -0
  284. package/lib/operations/VolumesExtend.js.map +1 -0
  285. package/lib/operations/VolumesGetById.d.ts +39 -0
  286. package/lib/operations/VolumesGetById.d.ts.map +1 -0
  287. package/lib/operations/VolumesGetById.js +45 -0
  288. package/lib/operations/VolumesGetById.js.map +1 -0
  289. package/lib/operations/VolumesList.d.ts +39 -0
  290. package/lib/operations/VolumesList.d.ts.map +1 -0
  291. package/lib/operations/VolumesList.js +45 -0
  292. package/lib/operations/VolumesList.js.map +1 -0
  293. package/lib/operations/VolumesListSnapshots.d.ts +26 -0
  294. package/lib/operations/VolumesListSnapshots.d.ts.map +1 -0
  295. package/lib/operations/VolumesListSnapshots.js +37 -0
  296. package/lib/operations/VolumesListSnapshots.js.map +1 -0
  297. package/lib/operations/VolumesUpdate.d.ts +41 -0
  298. package/lib/operations/VolumesUpdate.d.ts.map +1 -0
  299. package/lib/operations/VolumesUpdate.js +47 -0
  300. package/lib/operations/VolumesUpdate.js.map +1 -0
  301. package/lib/operations/createVolumeSnapshot.d.ts +18 -0
  302. package/lib/operations/createVolumeSnapshot.d.ts.map +1 -0
  303. package/lib/operations/createVolumeSnapshot.js +29 -0
  304. package/lib/operations/createVolumeSnapshot.js.map +1 -0
  305. package/lib/operations/index.d.ts +72 -0
  306. package/lib/operations/index.d.ts.map +1 -0
  307. package/lib/operations/index.js +72 -0
  308. package/lib/operations/index.js.map +1 -0
  309. package/lib/retry.d.ts +22 -0
  310. package/lib/retry.d.ts.map +1 -0
  311. package/lib/retry.js +21 -0
  312. package/lib/retry.js.map +1 -0
  313. package/lib/sensitive.d.ts +5 -0
  314. package/lib/sensitive.d.ts.map +1 -0
  315. package/lib/sensitive.js +5 -0
  316. package/lib/sensitive.js.map +1 -0
  317. package/lib/traits.d.ts +5 -0
  318. package/lib/traits.d.ts.map +1 -0
  319. package/lib/traits.js +5 -0
  320. package/lib/traits.js.map +1 -0
  321. package/package.json +81 -9
  322. package/src/category.ts +4 -0
  323. package/src/client.ts +62 -0
  324. package/src/credentials.ts +30 -0
  325. package/src/errors.ts +47 -0
  326. package/src/index.ts +15 -0
  327. package/src/operations/AppCreateDeployToken.ts +31 -0
  328. package/src/operations/App_CertificatesAcmeCreate.ts +101 -0
  329. package/src/operations/App_CertificatesAcmeDelete.ts +102 -0
  330. package/src/operations/App_CertificatesCheck.ts +112 -0
  331. package/src/operations/App_CertificatesCustomCreate.ts +102 -0
  332. package/src/operations/App_CertificatesCustomDelete.ts +102 -0
  333. package/src/operations/App_CertificatesDelete.ts +31 -0
  334. package/src/operations/App_CertificatesList.ts +54 -0
  335. package/src/operations/App_CertificatesShow.ts +97 -0
  336. package/src/operations/App_IPAssignmentsCreate.ts +38 -0
  337. package/src/operations/App_IPAssignmentsDelete.ts +28 -0
  338. package/src/operations/App_IPAssignmentsList.ts +39 -0
  339. package/src/operations/AppsCreate.ts +27 -0
  340. package/src/operations/AppsDelete.ts +26 -0
  341. package/src/operations/AppsList.ts +50 -0
  342. package/src/operations/AppsShow.ts +41 -0
  343. package/src/operations/CurrentTokenShow.ts +40 -0
  344. package/src/operations/MachinesCordon.ts +33 -0
  345. package/src/operations/MachinesCreate.ts +1393 -0
  346. package/src/operations/MachinesCreateLease.ts +44 -0
  347. package/src/operations/MachinesDelete.ts +32 -0
  348. package/src/operations/MachinesDeleteMetadata.ts +41 -0
  349. package/src/operations/MachinesExec.ts +43 -0
  350. package/src/operations/MachinesGetMemory.ts +39 -0
  351. package/src/operations/MachinesList.ts +966 -0
  352. package/src/operations/MachinesListEvents.ts +46 -0
  353. package/src/operations/MachinesListProcesses.ts +60 -0
  354. package/src/operations/MachinesListVersions.ts +494 -0
  355. package/src/operations/MachinesOrgList.ts +59 -0
  356. package/src/operations/MachinesPatchMetadata.ts +39 -0
  357. package/src/operations/MachinesReclaimMemory.ts +41 -0
  358. package/src/operations/MachinesReleaseLease.ts +38 -0
  359. package/src/operations/MachinesRestart.ts +37 -0
  360. package/src/operations/MachinesSetMemoryLimit.ts +43 -0
  361. package/src/operations/MachinesShow.ts +950 -0
  362. package/src/operations/MachinesShowLease.ts +42 -0
  363. package/src/operations/MachinesShowMetadata.ts +37 -0
  364. package/src/operations/MachinesSignal.ts +50 -0
  365. package/src/operations/MachinesStart.ts +33 -0
  366. package/src/operations/MachinesStop.ts +39 -0
  367. package/src/operations/MachinesSuspend.ts +33 -0
  368. package/src/operations/MachinesUncordon.ts +33 -0
  369. package/src/operations/MachinesUpdate.ts +1397 -0
  370. package/src/operations/MachinesUpdateMetadata.ts +41 -0
  371. package/src/operations/MachinesWait.ts +51 -0
  372. package/src/operations/PlatformPlacementsPost.ts +59 -0
  373. package/src/operations/PlatformRegionsGet.ts +55 -0
  374. package/src/operations/SecretCreate.ts +37 -0
  375. package/src/operations/SecretDelete.ts +31 -0
  376. package/src/operations/SecretGet.ts +38 -0
  377. package/src/operations/SecretkeyDecrypt.ts +39 -0
  378. package/src/operations/SecretkeyDelete.ts +34 -0
  379. package/src/operations/SecretkeyEncrypt.ts +39 -0
  380. package/src/operations/SecretkeyGenerate.ts +44 -0
  381. package/src/operations/SecretkeyGet.ts +36 -0
  382. package/src/operations/SecretkeySet.ts +38 -0
  383. package/src/operations/SecretkeySign.ts +36 -0
  384. package/src/operations/SecretkeyVerify.ts +35 -0
  385. package/src/operations/SecretkeysList.ts +40 -0
  386. package/src/operations/SecretsList.ts +40 -0
  387. package/src/operations/SecretsUpdate.ts +39 -0
  388. package/src/operations/TokensRequest_Kms.ts +25 -0
  389. package/src/operations/TokensRequest_OIDC.ts +27 -0
  390. package/src/operations/VolumeDelete.ts +53 -0
  391. package/src/operations/VolumesCreate.ts +75 -0
  392. package/src/operations/VolumesExtend.ts +62 -0
  393. package/src/operations/VolumesGetById.ts +53 -0
  394. package/src/operations/VolumesList.ts +53 -0
  395. package/src/operations/VolumesListSnapshots.ts +47 -0
  396. package/src/operations/VolumesUpdate.ts +55 -0
  397. package/src/operations/createVolumeSnapshot.ts +37 -0
  398. package/src/operations/index.ts +71 -0
  399. package/src/retry.ts +35 -0
  400. package/src/sensitive.ts +4 -0
  401. package/src/traits.ts +4 -0
  402. package/index.js +0 -2
@@ -0,0 +1,41 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const MachinesUpdateMetadataInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
+ app_name: Schema.String.pipe(T.PathParam()),
9
+ machine_id: Schema.String.pipe(T.PathParam()),
10
+ key: Schema.String.pipe(T.PathParam()),
11
+ }).pipe(
12
+ T.Http({
13
+ method: "POST",
14
+ path: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
15
+ }),
16
+ );
17
+ export type MachinesUpdateMetadataInput =
18
+ typeof MachinesUpdateMetadataInput.Type;
19
+
20
+ // Output Schema
21
+ export const MachinesUpdateMetadataOutput =
22
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
23
+ export type MachinesUpdateMetadataOutput =
24
+ typeof MachinesUpdateMetadataOutput.Type;
25
+
26
+ // The operation
27
+ /**
28
+ * Update Metadata
29
+ *
30
+ * Update metadata for a specific machine within an app by providing a metadata key.
31
+ *
32
+ * @param app_name - Fly App Name
33
+ * @param machine_id - Machine ID
34
+ * @param key - Metadata Key
35
+ */
36
+ export const MachinesUpdateMetadata = /*@__PURE__*/ /*#__PURE__*/ API.make(
37
+ () => ({
38
+ inputSchema: MachinesUpdateMetadataInput,
39
+ outputSchema: MachinesUpdateMetadataOutput,
40
+ }),
41
+ );
@@ -0,0 +1,51 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const MachinesWaitInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ machine_id: Schema.String.pipe(T.PathParam()),
9
+ instance_id: Schema.optional(Schema.String),
10
+ timeout: Schema.optional(Schema.Number),
11
+ state: Schema.optional(
12
+ Schema.Literals([
13
+ "started",
14
+ "stopped",
15
+ "suspended",
16
+ "destroyed",
17
+ "settled",
18
+ ]),
19
+ ),
20
+ }).pipe(
21
+ T.Http({
22
+ method: "GET",
23
+ path: "/apps/{app_name}/machines/{machine_id}/wait",
24
+ }),
25
+ );
26
+ export type MachinesWaitInput = typeof MachinesWaitInput.Type;
27
+
28
+ // Output Schema
29
+ export const MachinesWaitOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30
+ ok: Schema.optional(Schema.Boolean),
31
+ state: Schema.optional(Schema.String),
32
+ });
33
+ export type MachinesWaitOutput = typeof MachinesWaitOutput.Type;
34
+
35
+ // The operation
36
+ /**
37
+ * Wait for State
38
+ *
39
+ * 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`.
40
+ * This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter.
41
+ *
42
+ * @param app_name - Fly App Name
43
+ * @param machine_id - Machine ID
44
+ * @param instance_id - 26-character Machine version ID
45
+ * @param timeout - wait timeout. default 60s
46
+ * @param state - desired state
47
+ */
48
+ export const MachinesWait = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49
+ inputSchema: MachinesWaitInput,
50
+ outputSchema: MachinesWaitOutput,
51
+ }));
@@ -0,0 +1,59 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const PlatformPlacementsPostInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
+ compute: Schema.optional(
9
+ Schema.Struct({
10
+ cpu_kind: Schema.optional(Schema.String),
11
+ cpus: Schema.optional(Schema.Number),
12
+ gpu_kind: Schema.optional(Schema.String),
13
+ gpus: Schema.optional(Schema.Number),
14
+ host_dedication_id: Schema.optional(Schema.String),
15
+ kernel_args: Schema.optional(Schema.Array(Schema.String)),
16
+ memory_mb: Schema.optional(Schema.Number),
17
+ persist_rootfs: Schema.optional(
18
+ Schema.Literals(["never", "always", "restart"]),
19
+ ),
20
+ }),
21
+ ),
22
+ count: Schema.optional(Schema.Number),
23
+ org_slug: Schema.String,
24
+ region: Schema.optional(Schema.String),
25
+ volume_name: Schema.optional(Schema.String),
26
+ volume_size_bytes: Schema.optional(Schema.Number),
27
+ weights: Schema.optional(Schema.Struct({})),
28
+ }).pipe(T.Http({ method: "POST", path: "/platform/placements" }));
29
+ export type PlatformPlacementsPostInput =
30
+ typeof PlatformPlacementsPostInput.Type;
31
+
32
+ // Output Schema
33
+ export const PlatformPlacementsPostOutput =
34
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
35
+ regions: Schema.optional(
36
+ Schema.Array(
37
+ Schema.Struct({
38
+ concurrency: Schema.optional(Schema.Number),
39
+ count: Schema.optional(Schema.Number),
40
+ region: Schema.optional(Schema.String),
41
+ }),
42
+ ),
43
+ ),
44
+ });
45
+ export type PlatformPlacementsPostOutput =
46
+ typeof PlatformPlacementsPostOutput.Type;
47
+
48
+ // The operation
49
+ /**
50
+ * Get Placements
51
+ *
52
+ * Simulates placing the specified number of machines into regions, depending on available capacity and limits.
53
+ */
54
+ export const PlatformPlacementsPost = /*@__PURE__*/ /*#__PURE__*/ API.make(
55
+ () => ({
56
+ inputSchema: PlatformPlacementsPostInput,
57
+ outputSchema: PlatformPlacementsPostOutput,
58
+ }),
59
+ );
@@ -0,0 +1,55 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const PlatformRegionsGetInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
+ size: Schema.optional(Schema.String),
9
+ cpu_kind: Schema.optional(Schema.String),
10
+ memory_mb: Schema.optional(Schema.Number),
11
+ cpus: Schema.optional(Schema.Number),
12
+ gpus: Schema.optional(Schema.Number),
13
+ gpu_kind: Schema.optional(Schema.String),
14
+ }).pipe(T.Http({ method: "GET", path: "/platform/regions" }));
15
+ export type PlatformRegionsGetInput = typeof PlatformRegionsGetInput.Type;
16
+
17
+ // Output Schema
18
+ export const PlatformRegionsGetOutput =
19
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20
+ nearest: Schema.optional(Schema.String),
21
+ regions: Schema.optional(
22
+ Schema.Array(
23
+ Schema.Struct({
24
+ capacity: Schema.optional(Schema.Number),
25
+ code: Schema.optional(Schema.String),
26
+ deprecated: Schema.optional(Schema.Boolean),
27
+ gateway_available: Schema.optional(Schema.Boolean),
28
+ geo_region: Schema.optional(Schema.String),
29
+ latitude: Schema.optional(Schema.Number),
30
+ longitude: Schema.optional(Schema.Number),
31
+ name: Schema.optional(Schema.String),
32
+ requires_paid_plan: Schema.optional(Schema.Boolean),
33
+ }),
34
+ ),
35
+ ),
36
+ });
37
+ export type PlatformRegionsGetOutput = typeof PlatformRegionsGetOutput.Type;
38
+
39
+ // The operation
40
+ /**
41
+ * Get Regions
42
+ *
43
+ * List all regions on the platform with their current Machine capacity.
44
+ *
45
+ * @param size - guest machine size preset. default performance-1x
46
+ * @param cpu_kind - guest CPU kind
47
+ * @param memory_mb - guest memory in megabytes
48
+ * @param cpus - guest CPU count
49
+ * @param gpus - guest GPU count
50
+ * @param gpu_kind - guest GPU kind
51
+ */
52
+ export const PlatformRegionsGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53
+ inputSchema: PlatformRegionsGetInput,
54
+ outputSchema: PlatformRegionsGetOutput,
55
+ }));
@@ -0,0 +1,37 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretCreateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ value: Schema.optional(Schema.String),
10
+ }).pipe(
11
+ T.Http({ method: "POST", path: "/apps/{app_name}/secrets/{secret_name}" }),
12
+ );
13
+ export type SecretCreateInput = typeof SecretCreateInput.Type;
14
+
15
+ // Output Schema
16
+ export const SecretCreateOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
17
+ Version: Schema.optional(Schema.Number),
18
+ created_at: Schema.optional(Schema.String),
19
+ digest: Schema.optional(Schema.String),
20
+ name: Schema.optional(Schema.String),
21
+ updated_at: Schema.optional(Schema.String),
22
+ value: Schema.optional(Schema.String),
23
+ version: Schema.optional(Schema.Number),
24
+ });
25
+ export type SecretCreateOutput = typeof SecretCreateOutput.Type;
26
+
27
+ // The operation
28
+ /**
29
+ * Create or update Secret
30
+ *
31
+ * @param app_name - Fly App Name
32
+ * @param secret_name - App secret name
33
+ */
34
+ export const SecretCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
35
+ inputSchema: SecretCreateInput,
36
+ outputSchema: SecretCreateOutput,
37
+ }));
@@ -0,0 +1,31 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretDeleteInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ }).pipe(
10
+ T.Http({ method: "DELETE", path: "/apps/{app_name}/secrets/{secret_name}" }),
11
+ );
12
+ export type SecretDeleteInput = typeof SecretDeleteInput.Type;
13
+
14
+ // Output Schema
15
+ export const SecretDeleteOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
16
+ Version: Schema.optional(Schema.Number),
17
+ version: Schema.optional(Schema.Number),
18
+ });
19
+ export type SecretDeleteOutput = typeof SecretDeleteOutput.Type;
20
+
21
+ // The operation
22
+ /**
23
+ * Delete an app secret
24
+ *
25
+ * @param app_name - Fly App Name
26
+ * @param secret_name - App secret name
27
+ */
28
+ export const SecretDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
29
+ inputSchema: SecretDeleteInput,
30
+ outputSchema: SecretDeleteOutput,
31
+ }));
@@ -0,0 +1,38 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretGetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ min_version: Schema.optional(Schema.String),
10
+ show_secrets: Schema.optional(Schema.Boolean),
11
+ }).pipe(
12
+ T.Http({ method: "GET", path: "/apps/{app_name}/secrets/{secret_name}" }),
13
+ );
14
+ export type SecretGetInput = typeof SecretGetInput.Type;
15
+
16
+ // Output Schema
17
+ export const SecretGetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
+ created_at: Schema.optional(Schema.String),
19
+ digest: Schema.optional(Schema.String),
20
+ name: Schema.optional(Schema.String),
21
+ updated_at: Schema.optional(Schema.String),
22
+ value: Schema.optional(Schema.String),
23
+ });
24
+ export type SecretGetOutput = typeof SecretGetOutput.Type;
25
+
26
+ // The operation
27
+ /**
28
+ * Get an app secret
29
+ *
30
+ * @param app_name - Fly App Name
31
+ * @param secret_name - App secret name
32
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
33
+ * @param show_secrets - Show the secret value.
34
+ */
35
+ export const SecretGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
36
+ inputSchema: SecretGetInput,
37
+ outputSchema: SecretGetOutput,
38
+ }));
@@ -0,0 +1,39 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeyDecryptInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ min_version: Schema.optional(Schema.String),
10
+ associated_data: Schema.optional(Schema.Array(Schema.Number)),
11
+ ciphertext: Schema.optional(Schema.Array(Schema.Number)),
12
+ }).pipe(
13
+ T.Http({
14
+ method: "POST",
15
+ path: "/apps/{app_name}/secretkeys/{secret_name}/decrypt",
16
+ }),
17
+ );
18
+ export type SecretkeyDecryptInput = typeof SecretkeyDecryptInput.Type;
19
+
20
+ // Output Schema
21
+ export const SecretkeyDecryptOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
22
+ {
23
+ plaintext: Schema.optional(Schema.Array(Schema.Number)),
24
+ },
25
+ );
26
+ export type SecretkeyDecryptOutput = typeof SecretkeyDecryptOutput.Type;
27
+
28
+ // The operation
29
+ /**
30
+ * Decrypt with a secret key
31
+ *
32
+ * @param app_name - Fly App Name
33
+ * @param secret_name - Secret key name
34
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
35
+ */
36
+ export const SecretkeyDecrypt = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
37
+ inputSchema: SecretkeyDecryptInput,
38
+ outputSchema: SecretkeyDecryptOutput,
39
+ }));
@@ -0,0 +1,34 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeyDeleteInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ }).pipe(
10
+ T.Http({
11
+ method: "DELETE",
12
+ path: "/apps/{app_name}/secretkeys/{secret_name}",
13
+ }),
14
+ );
15
+ export type SecretkeyDeleteInput = typeof SecretkeyDeleteInput.Type;
16
+
17
+ // Output Schema
18
+ export const SecretkeyDeleteOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19
+ Version: Schema.optional(Schema.Number),
20
+ version: Schema.optional(Schema.Number),
21
+ });
22
+ export type SecretkeyDeleteOutput = typeof SecretkeyDeleteOutput.Type;
23
+
24
+ // The operation
25
+ /**
26
+ * Delete an app's secret key
27
+ *
28
+ * @param app_name - Fly App Name
29
+ * @param secret_name - Secret key name
30
+ */
31
+ export const SecretkeyDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
32
+ inputSchema: SecretkeyDeleteInput,
33
+ outputSchema: SecretkeyDeleteOutput,
34
+ }));
@@ -0,0 +1,39 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeyEncryptInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ min_version: Schema.optional(Schema.String),
10
+ associated_data: Schema.optional(Schema.Array(Schema.Number)),
11
+ plaintext: Schema.optional(Schema.Array(Schema.Number)),
12
+ }).pipe(
13
+ T.Http({
14
+ method: "POST",
15
+ path: "/apps/{app_name}/secretkeys/{secret_name}/encrypt",
16
+ }),
17
+ );
18
+ export type SecretkeyEncryptInput = typeof SecretkeyEncryptInput.Type;
19
+
20
+ // Output Schema
21
+ export const SecretkeyEncryptOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
22
+ {
23
+ ciphertext: Schema.optional(Schema.Array(Schema.Number)),
24
+ },
25
+ );
26
+ export type SecretkeyEncryptOutput = typeof SecretkeyEncryptOutput.Type;
27
+
28
+ // The operation
29
+ /**
30
+ * Encrypt with a secret key
31
+ *
32
+ * @param app_name - Fly App Name
33
+ * @param secret_name - Secret key name
34
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
35
+ */
36
+ export const SecretkeyEncrypt = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
37
+ inputSchema: SecretkeyEncryptInput,
38
+ outputSchema: SecretkeyEncryptOutput,
39
+ }));
@@ -0,0 +1,44 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeyGenerateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
7
+ {
8
+ app_name: Schema.String.pipe(T.PathParam()),
9
+ secret_name: Schema.String.pipe(T.PathParam()),
10
+ type: Schema.optional(Schema.String),
11
+ value: Schema.optional(Schema.Array(Schema.Number)),
12
+ },
13
+ ).pipe(
14
+ T.Http({
15
+ method: "POST",
16
+ path: "/apps/{app_name}/secretkeys/{secret_name}/generate",
17
+ }),
18
+ );
19
+ export type SecretkeyGenerateInput = typeof SecretkeyGenerateInput.Type;
20
+
21
+ // Output Schema
22
+ export const SecretkeyGenerateOutput =
23
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24
+ Version: Schema.optional(Schema.Number),
25
+ created_at: Schema.optional(Schema.String),
26
+ name: Schema.optional(Schema.String),
27
+ public_key: Schema.optional(Schema.Array(Schema.Number)),
28
+ type: Schema.optional(Schema.String),
29
+ updated_at: Schema.optional(Schema.String),
30
+ version: Schema.optional(Schema.Number),
31
+ });
32
+ export type SecretkeyGenerateOutput = typeof SecretkeyGenerateOutput.Type;
33
+
34
+ // The operation
35
+ /**
36
+ * Generate a random secret key
37
+ *
38
+ * @param app_name - Fly App Name
39
+ * @param secret_name - Secret key name
40
+ */
41
+ export const SecretkeyGenerate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
42
+ inputSchema: SecretkeyGenerateInput,
43
+ outputSchema: SecretkeyGenerateOutput,
44
+ }));
@@ -0,0 +1,36 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeyGetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ min_version: Schema.optional(Schema.String),
10
+ }).pipe(
11
+ T.Http({ method: "GET", path: "/apps/{app_name}/secretkeys/{secret_name}" }),
12
+ );
13
+ export type SecretkeyGetInput = typeof SecretkeyGetInput.Type;
14
+
15
+ // Output Schema
16
+ export const SecretkeyGetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
17
+ created_at: Schema.optional(Schema.String),
18
+ name: Schema.optional(Schema.String),
19
+ public_key: Schema.optional(Schema.Array(Schema.Number)),
20
+ type: Schema.optional(Schema.String),
21
+ updated_at: Schema.optional(Schema.String),
22
+ });
23
+ export type SecretkeyGetOutput = typeof SecretkeyGetOutput.Type;
24
+
25
+ // The operation
26
+ /**
27
+ * Get an app's secret key
28
+ *
29
+ * @param app_name - Fly App Name
30
+ * @param secret_name - Secret key name
31
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
32
+ */
33
+ export const SecretkeyGet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
34
+ inputSchema: SecretkeyGetInput,
35
+ outputSchema: SecretkeyGetOutput,
36
+ }));
@@ -0,0 +1,38 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeySetInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ type: Schema.optional(Schema.String),
10
+ value: Schema.optional(Schema.Array(Schema.Number)),
11
+ }).pipe(
12
+ T.Http({ method: "POST", path: "/apps/{app_name}/secretkeys/{secret_name}" }),
13
+ );
14
+ export type SecretkeySetInput = typeof SecretkeySetInput.Type;
15
+
16
+ // Output Schema
17
+ export const SecretkeySetOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
+ Version: Schema.optional(Schema.Number),
19
+ created_at: Schema.optional(Schema.String),
20
+ name: Schema.optional(Schema.String),
21
+ public_key: Schema.optional(Schema.Array(Schema.Number)),
22
+ type: Schema.optional(Schema.String),
23
+ updated_at: Schema.optional(Schema.String),
24
+ version: Schema.optional(Schema.Number),
25
+ });
26
+ export type SecretkeySetOutput = typeof SecretkeySetOutput.Type;
27
+
28
+ // The operation
29
+ /**
30
+ * Create or update a secret key
31
+ *
32
+ * @param app_name - Fly App Name
33
+ * @param secret_name - Secret key name
34
+ */
35
+ export const SecretkeySet = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
36
+ inputSchema: SecretkeySetInput,
37
+ outputSchema: SecretkeySetOutput,
38
+ }));
@@ -0,0 +1,36 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeySignInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ min_version: Schema.optional(Schema.String),
10
+ plaintext: Schema.optional(Schema.Array(Schema.Number)),
11
+ }).pipe(
12
+ T.Http({
13
+ method: "POST",
14
+ path: "/apps/{app_name}/secretkeys/{secret_name}/sign",
15
+ }),
16
+ );
17
+ export type SecretkeySignInput = typeof SecretkeySignInput.Type;
18
+
19
+ // Output Schema
20
+ export const SecretkeySignOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21
+ signature: Schema.optional(Schema.Array(Schema.Number)),
22
+ });
23
+ export type SecretkeySignOutput = typeof SecretkeySignOutput.Type;
24
+
25
+ // The operation
26
+ /**
27
+ * Sign with a secret key
28
+ *
29
+ * @param app_name - Fly App Name
30
+ * @param secret_name - Secret key name
31
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
32
+ */
33
+ export const SecretkeySign = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
34
+ inputSchema: SecretkeySignInput,
35
+ outputSchema: SecretkeySignOutput,
36
+ }));
@@ -0,0 +1,35 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeyVerifyInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ secret_name: Schema.String.pipe(T.PathParam()),
9
+ min_version: Schema.optional(Schema.String),
10
+ plaintext: Schema.optional(Schema.Array(Schema.Number)),
11
+ signature: Schema.optional(Schema.Array(Schema.Number)),
12
+ }).pipe(
13
+ T.Http({
14
+ method: "POST",
15
+ path: "/apps/{app_name}/secretkeys/{secret_name}/verify",
16
+ }),
17
+ );
18
+ export type SecretkeyVerifyInput = typeof SecretkeyVerifyInput.Type;
19
+
20
+ // Output Schema
21
+ export const SecretkeyVerifyOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Void;
22
+ export type SecretkeyVerifyOutput = typeof SecretkeyVerifyOutput.Type;
23
+
24
+ // The operation
25
+ /**
26
+ * Verify with a secret key
27
+ *
28
+ * @param app_name - Fly App Name
29
+ * @param secret_name - Secret key name
30
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
31
+ */
32
+ export const SecretkeyVerify = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
33
+ inputSchema: SecretkeyVerifyInput,
34
+ outputSchema: SecretkeyVerifyOutput,
35
+ }));
@@ -0,0 +1,40 @@
1
+ import * as Schema from "effect/Schema";
2
+ import { API } from "../client";
3
+ import * as T from "../traits";
4
+
5
+ // Input Schema
6
+ export const SecretkeysListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
7
+ app_name: Schema.String.pipe(T.PathParam()),
8
+ min_version: Schema.optional(Schema.String),
9
+ types: Schema.optional(Schema.String),
10
+ }).pipe(T.Http({ method: "GET", path: "/apps/{app_name}/secretkeys" }));
11
+ export type SecretkeysListInput = typeof SecretkeysListInput.Type;
12
+
13
+ // Output Schema
14
+ export const SecretkeysListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
15
+ secret_keys: Schema.optional(
16
+ Schema.Array(
17
+ Schema.Struct({
18
+ created_at: Schema.optional(Schema.String),
19
+ name: Schema.optional(Schema.String),
20
+ public_key: Schema.optional(Schema.Array(Schema.Number)),
21
+ type: Schema.optional(Schema.String),
22
+ updated_at: Schema.optional(Schema.String),
23
+ }),
24
+ ),
25
+ ),
26
+ });
27
+ export type SecretkeysListOutput = typeof SecretkeysListOutput.Type;
28
+
29
+ // The operation
30
+ /**
31
+ * List secret keys belonging to an app
32
+ *
33
+ * @param app_name - Fly App Name
34
+ * @param min_version - Minimum secrets version to return. Returned when setting a new secret
35
+ * @param types - Comma-seperated list of secret keys to list
36
+ */
37
+ export const SecretkeysList = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
38
+ inputSchema: SecretkeysListInput,
39
+ outputSchema: SecretkeysListOutput,
40
+ }));