@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
package/package.json CHANGED
@@ -1,16 +1,88 @@
1
1
  {
2
2
  "name": "@distilled.cloud/fly-io",
3
- "version": "0.0.0",
4
- "description": "Fly-io SDK for Effect (placeholder)",
5
- "type": "module",
6
- "main": "index.js",
7
- "files": [
8
- "index.js"
9
- ],
3
+ "version": "0.2.5-alpha2",
10
4
  "repository": {
11
5
  "type": "git",
12
6
  "url": "https://github.com/alchemy-run/distilled",
13
7
  "directory": "packages/fly-io"
14
8
  },
15
- "license": "MIT"
16
- }
9
+ "type": "module",
10
+ "sideEffects": false,
11
+ "module": "src/index.ts",
12
+ "files": [
13
+ "lib",
14
+ "src"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/index.d.ts",
19
+ "bun": "./src/index.ts",
20
+ "default": "./lib/index.js"
21
+ },
22
+ "./Category": {
23
+ "types": "./lib/category.d.ts",
24
+ "bun": "./src/category.ts",
25
+ "default": "./lib/category.js"
26
+ },
27
+ "./Client": {
28
+ "types": "./lib/client.d.ts",
29
+ "bun": "./src/client.ts",
30
+ "default": "./lib/client.js"
31
+ },
32
+ "./Credentials": {
33
+ "types": "./lib/credentials.d.ts",
34
+ "bun": "./src/credentials.ts",
35
+ "default": "./lib/credentials.js"
36
+ },
37
+ "./Errors": {
38
+ "types": "./lib/errors.d.ts",
39
+ "bun": "./src/errors.ts",
40
+ "default": "./lib/errors.js"
41
+ },
42
+ "./Operations": {
43
+ "types": "./lib/operations/index.d.ts",
44
+ "bun": "./src/operations/index.ts",
45
+ "default": "./lib/operations/index.js"
46
+ },
47
+ "./Retry": {
48
+ "types": "./lib/retry.d.ts",
49
+ "bun": "./src/retry.ts",
50
+ "default": "./lib/retry.js"
51
+ },
52
+ "./Sensitive": {
53
+ "types": "./lib/sensitive.d.ts",
54
+ "bun": "./src/sensitive.ts",
55
+ "default": "./lib/sensitive.js"
56
+ },
57
+ "./Traits": {
58
+ "types": "./lib/traits.d.ts",
59
+ "bun": "./src/traits.ts",
60
+ "default": "./lib/traits.js"
61
+ }
62
+ },
63
+ "scripts": {
64
+ "typecheck": "tsgo",
65
+ "build": "tsgo -b",
66
+ "fmt": "oxfmt --write src",
67
+ "lint": "oxlint --fix src",
68
+ "check": "tsgo && oxlint src && oxfmt --check src",
69
+ "test": "bunx vitest run test",
70
+ "publish:npm": "bun run build && bun publish --access public",
71
+ "generate": "bun run scripts/generate.ts && oxfmt --write src && oxlint --fix src",
72
+ "specs:fetch": "git submodule update --force --init --recursive specs/distilled-spec-fly-io && git -C specs/distilled-spec-fly-io checkout -- .",
73
+ "specs:update": "git -C specs/distilled-spec-fly-io fetch && git -C specs/distilled-spec-fly-io checkout main && git -C specs/distilled-spec-fly-io pull"
74
+ },
75
+ "dependencies": {
76
+ "@distilled.cloud/core": "0.2.5-alpha2",
77
+ "effect": "4.0.0-beta.30"
78
+ },
79
+ "devDependencies": {
80
+ "@types/bun": "^1.3.0",
81
+ "@types/node": "^25.3.5",
82
+ "dotenv": "^16.5.0",
83
+ "vitest": "^3.2.3"
84
+ },
85
+ "peerDependencies": {
86
+ "effect": "4.0.0-beta.30"
87
+ }
88
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Re-export the shared category system from sdk-core.
3
+ */
4
+ export * from "@distilled.cloud/core/category";
package/src/client.ts ADDED
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Fly-io API Client.
3
+ *
4
+ * Wraps the shared REST client from sdk-core with Fly-io-specific
5
+ * error matching and credential handling.
6
+ */
7
+ import * as Effect from "effect/Effect";
8
+ import * as Schema from "effect/Schema";
9
+ import { makeAPI } from "@distilled.cloud/core/client";
10
+ import {
11
+ HTTP_STATUS_MAP,
12
+ UnknownFlyIoError,
13
+ FlyIoParseError,
14
+ } from "./errors.ts";
15
+
16
+ // Re-export for backwards compatibility
17
+ export { UnknownFlyIoError } from "./errors.ts";
18
+ import { Credentials } from "./credentials.ts";
19
+
20
+ // API Error Response Schema
21
+ const ApiErrorResponse = Schema.Struct({
22
+ code: Schema.optional(Schema.String),
23
+ message: Schema.String,
24
+ });
25
+
26
+ /**
27
+ * Match a Fly-io API error response to the appropriate error class based on HTTP status.
28
+ */
29
+ const matchError = (
30
+ status: number,
31
+ errorBody: unknown,
32
+ ): Effect.Effect<never, unknown> => {
33
+ try {
34
+ const parsed = Schema.decodeUnknownSync(ApiErrorResponse)(errorBody);
35
+ const ErrorClass = (HTTP_STATUS_MAP as any)[status];
36
+ if (ErrorClass) {
37
+ return Effect.fail(new ErrorClass({ message: parsed.message ?? "" }));
38
+ }
39
+ return Effect.fail(
40
+ new UnknownFlyIoError({
41
+ code: parsed.code,
42
+ message: parsed.message,
43
+ body: errorBody,
44
+ }),
45
+ );
46
+ } catch {
47
+ return Effect.fail(new UnknownFlyIoError({ body: errorBody }));
48
+ }
49
+ };
50
+
51
+ /**
52
+ * Fly-io API client.
53
+ */
54
+ export const API = makeAPI({
55
+ credentials: Credentials as any,
56
+ getBaseUrl: (creds: any) => creds.apiBaseUrl,
57
+ getAuthHeaders: (creds: any) => ({
58
+ Authorization: `Bearer ${creds.apiKey}`,
59
+ }),
60
+ matchError,
61
+ ParseError: FlyIoParseError as any,
62
+ });
@@ -0,0 +1,30 @@
1
+ import * as Effect from "effect/Effect";
2
+ import * as Layer from "effect/Layer";
3
+ import * as ServiceMap from "effect/ServiceMap";
4
+ import { ConfigError } from "@distilled.cloud/core/errors";
5
+
6
+ export const DEFAULT_API_BASE_URL = "https://api.fly-io.com";
7
+
8
+ export interface Config {
9
+ readonly apiKey: string;
10
+ readonly apiBaseUrl: string;
11
+ }
12
+
13
+ export class Credentials extends ServiceMap.Service<Credentials, Config>()(
14
+ "Fly-ioCredentials",
15
+ ) {}
16
+
17
+ export const CredentialsFromEnv = Layer.effect(
18
+ Credentials,
19
+ Effect.gen(function* () {
20
+ const apiKey = process.env.FLY_IO_API_KEY;
21
+
22
+ if (!apiKey) {
23
+ return yield* new ConfigError({
24
+ message: "FLY_IO_API_KEY environment variable is required",
25
+ });
26
+ }
27
+
28
+ return { apiKey, apiBaseUrl: DEFAULT_API_BASE_URL };
29
+ }),
30
+ );
package/src/errors.ts ADDED
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Fly-io-specific error types.
3
+ *
4
+ * Re-exports common HTTP errors from sdk-core and adds Fly-io-specific
5
+ * error matching and API error types.
6
+ */
7
+ export {
8
+ BadGateway,
9
+ BadRequest,
10
+ Conflict,
11
+ ConfigError,
12
+ Forbidden,
13
+ GatewayTimeout,
14
+ InternalServerError,
15
+ Locked,
16
+ NotFound,
17
+ ServiceUnavailable,
18
+ TooManyRequests,
19
+ Unauthorized,
20
+ UnprocessableEntity,
21
+ HTTP_STATUS_MAP,
22
+ DEFAULT_ERRORS,
23
+ API_ERRORS,
24
+ } from "@distilled.cloud/core/errors";
25
+ export type { DefaultErrors } from "@distilled.cloud/core/errors";
26
+
27
+ import * as Schema from "effect/Schema";
28
+ import * as Category from "@distilled.cloud/core/category";
29
+
30
+ // Unknown Fly-io error - returned when an error code is not recognized
31
+ export class UnknownFlyIoError extends Schema.TaggedErrorClass<UnknownFlyIoError>()(
32
+ "UnknownFlyIoError",
33
+ {
34
+ code: Schema.optional(Schema.String),
35
+ message: Schema.optional(Schema.String),
36
+ body: Schema.Unknown,
37
+ },
38
+ ).pipe(Category.withServerError) {}
39
+
40
+ // Schema parse error wrapper
41
+ export class FlyIoParseError extends Schema.TaggedErrorClass<FlyIoParseError>()(
42
+ "FlyIoParseError",
43
+ {
44
+ body: Schema.Unknown,
45
+ cause: Schema.Unknown,
46
+ },
47
+ ).pipe(Category.withParseError) {}
package/src/index.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Fly-io SDK for Effect
3
+ *
4
+ * @example
5
+ * ```ts
6
+ * import * as Fly-io from "@distilled.cloud/fly-io";
7
+ * ```
8
+ */
9
+ export * from "./credentials.ts";
10
+ export * as Category from "./category.ts";
11
+ export * as T from "./traits.ts";
12
+ export * as Retry from "./retry.ts";
13
+ export { API } from "./client.ts";
14
+ export * from "./errors.ts";
15
+ export { SensitiveString, SensitiveNullableString } from "./sensitive.ts";
@@ -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 AppCreateDeployTokenInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
+ app_name: Schema.String.pipe(T.PathParam()),
9
+ expiry: Schema.optional(Schema.String),
10
+ }).pipe(T.Http({ method: "POST", path: "/apps/{app_name}/deploy_token" }));
11
+ export type AppCreateDeployTokenInput = typeof AppCreateDeployTokenInput.Type;
12
+
13
+ // Output Schema
14
+ export const AppCreateDeployTokenOutput =
15
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
16
+ token: Schema.optional(Schema.String),
17
+ });
18
+ export type AppCreateDeployTokenOutput = typeof AppCreateDeployTokenOutput.Type;
19
+
20
+ // The operation
21
+ /**
22
+ * Create App deploy token
23
+ *
24
+ * @param app_name - Fly App Name
25
+ */
26
+ export const AppCreateDeployToken = /*@__PURE__*/ /*#__PURE__*/ API.make(
27
+ () => ({
28
+ inputSchema: AppCreateDeployTokenInput,
29
+ outputSchema: AppCreateDeployTokenOutput,
30
+ }),
31
+ );
@@ -0,0 +1,101 @@
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 App_CertificatesAcmeCreateInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8
+ hostname: Schema.optional(Schema.String),
9
+ }).pipe(
10
+ T.Http({ method: "POST", path: "/apps/{app_name}/certificates/acme" }),
11
+ );
12
+ export type App_CertificatesAcmeCreateInput =
13
+ typeof App_CertificatesAcmeCreateInput.Type;
14
+
15
+ // Output Schema
16
+ export const App_CertificatesAcmeCreateOutput =
17
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
+ acme_requested: Schema.optional(Schema.Boolean),
19
+ certificates: Schema.optional(
20
+ Schema.Array(
21
+ Schema.Struct({
22
+ created_at: Schema.optional(Schema.String),
23
+ expires_at: Schema.optional(Schema.String),
24
+ issued: Schema.optional(
25
+ Schema.Array(
26
+ Schema.Struct({
27
+ certificate_authority: Schema.optional(Schema.String),
28
+ expires_at: Schema.optional(Schema.String),
29
+ type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
30
+ }),
31
+ ),
32
+ ),
33
+ issuer: Schema.optional(Schema.String),
34
+ source: Schema.optional(Schema.Literals(["custom", "fly"])),
35
+ status: Schema.optional(
36
+ Schema.Literals([
37
+ "active",
38
+ "pending_ownership",
39
+ "pending_validation",
40
+ ]),
41
+ ),
42
+ }),
43
+ ),
44
+ ),
45
+ configured: Schema.optional(Schema.Boolean),
46
+ dns_provider: Schema.optional(Schema.String),
47
+ dns_requirements: Schema.optional(
48
+ Schema.Struct({
49
+ a: Schema.optional(Schema.Array(Schema.String)),
50
+ aaaa: Schema.optional(Schema.Array(Schema.String)),
51
+ acme_challenge: Schema.optional(
52
+ Schema.Struct({
53
+ name: Schema.optional(Schema.String),
54
+ target: Schema.optional(Schema.String),
55
+ }),
56
+ ),
57
+ cname: Schema.optional(Schema.String),
58
+ ownership: Schema.optional(
59
+ Schema.Struct({
60
+ app_value: Schema.optional(Schema.String),
61
+ name: Schema.optional(Schema.String),
62
+ org_value: Schema.optional(Schema.String),
63
+ }),
64
+ ),
65
+ }),
66
+ ),
67
+ hostname: Schema.optional(Schema.String),
68
+ rate_limited_until: Schema.optional(Schema.String),
69
+ status: Schema.optional(Schema.String),
70
+ validation: Schema.optional(
71
+ Schema.Struct({
72
+ alpn_configured: Schema.optional(Schema.Boolean),
73
+ dns_configured: Schema.optional(Schema.Boolean),
74
+ http_configured: Schema.optional(Schema.Boolean),
75
+ ownership_txt_configured: Schema.optional(Schema.Boolean),
76
+ }),
77
+ ),
78
+ validation_errors: Schema.optional(
79
+ Schema.Array(
80
+ Schema.Struct({
81
+ code: Schema.optional(Schema.String),
82
+ message: Schema.optional(Schema.String),
83
+ remediation: Schema.optional(Schema.String),
84
+ timestamp: Schema.optional(Schema.String),
85
+ }),
86
+ ),
87
+ ),
88
+ });
89
+ export type App_CertificatesAcmeCreateOutput =
90
+ typeof App_CertificatesAcmeCreateOutput.Type;
91
+
92
+ // The operation
93
+ /**
94
+ * Request ACME certificate
95
+ */
96
+ export const App_CertificatesAcmeCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(
97
+ () => ({
98
+ inputSchema: App_CertificatesAcmeCreateInput,
99
+ outputSchema: App_CertificatesAcmeCreateOutput,
100
+ }),
101
+ );
@@ -0,0 +1,102 @@
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 App_CertificatesAcmeDeleteInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
8
+ T.Http({
9
+ method: "DELETE",
10
+ path: "/apps/{app_name}/certificates/{hostname}/acme",
11
+ }),
12
+ );
13
+ export type App_CertificatesAcmeDeleteInput =
14
+ typeof App_CertificatesAcmeDeleteInput.Type;
15
+
16
+ // Output Schema
17
+ export const App_CertificatesAcmeDeleteOutput =
18
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19
+ acme_requested: Schema.optional(Schema.Boolean),
20
+ certificates: Schema.optional(
21
+ Schema.Array(
22
+ Schema.Struct({
23
+ created_at: Schema.optional(Schema.String),
24
+ expires_at: Schema.optional(Schema.String),
25
+ issued: Schema.optional(
26
+ Schema.Array(
27
+ Schema.Struct({
28
+ certificate_authority: Schema.optional(Schema.String),
29
+ expires_at: Schema.optional(Schema.String),
30
+ type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
31
+ }),
32
+ ),
33
+ ),
34
+ issuer: Schema.optional(Schema.String),
35
+ source: Schema.optional(Schema.Literals(["custom", "fly"])),
36
+ status: Schema.optional(
37
+ Schema.Literals([
38
+ "active",
39
+ "pending_ownership",
40
+ "pending_validation",
41
+ ]),
42
+ ),
43
+ }),
44
+ ),
45
+ ),
46
+ configured: Schema.optional(Schema.Boolean),
47
+ dns_provider: Schema.optional(Schema.String),
48
+ dns_requirements: Schema.optional(
49
+ Schema.Struct({
50
+ a: Schema.optional(Schema.Array(Schema.String)),
51
+ aaaa: Schema.optional(Schema.Array(Schema.String)),
52
+ acme_challenge: Schema.optional(
53
+ Schema.Struct({
54
+ name: Schema.optional(Schema.String),
55
+ target: Schema.optional(Schema.String),
56
+ }),
57
+ ),
58
+ cname: Schema.optional(Schema.String),
59
+ ownership: Schema.optional(
60
+ Schema.Struct({
61
+ app_value: Schema.optional(Schema.String),
62
+ name: Schema.optional(Schema.String),
63
+ org_value: Schema.optional(Schema.String),
64
+ }),
65
+ ),
66
+ }),
67
+ ),
68
+ hostname: Schema.optional(Schema.String),
69
+ rate_limited_until: Schema.optional(Schema.String),
70
+ status: Schema.optional(Schema.String),
71
+ validation: Schema.optional(
72
+ Schema.Struct({
73
+ alpn_configured: Schema.optional(Schema.Boolean),
74
+ dns_configured: Schema.optional(Schema.Boolean),
75
+ http_configured: Schema.optional(Schema.Boolean),
76
+ ownership_txt_configured: Schema.optional(Schema.Boolean),
77
+ }),
78
+ ),
79
+ validation_errors: Schema.optional(
80
+ Schema.Array(
81
+ Schema.Struct({
82
+ code: Schema.optional(Schema.String),
83
+ message: Schema.optional(Schema.String),
84
+ remediation: Schema.optional(Schema.String),
85
+ timestamp: Schema.optional(Schema.String),
86
+ }),
87
+ ),
88
+ ),
89
+ });
90
+ export type App_CertificatesAcmeDeleteOutput =
91
+ typeof App_CertificatesAcmeDeleteOutput.Type;
92
+
93
+ // The operation
94
+ /**
95
+ * Remove ACME certificates
96
+ */
97
+ export const App_CertificatesAcmeDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(
98
+ () => ({
99
+ inputSchema: App_CertificatesAcmeDeleteInput,
100
+ outputSchema: App_CertificatesAcmeDeleteOutput,
101
+ }),
102
+ );
@@ -0,0 +1,112 @@
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 App_CertificatesCheckInput =
7
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(
8
+ T.Http({
9
+ method: "POST",
10
+ path: "/apps/{app_name}/certificates/{hostname}/check",
11
+ }),
12
+ );
13
+ export type App_CertificatesCheckInput = typeof App_CertificatesCheckInput.Type;
14
+
15
+ // Output Schema
16
+ export const App_CertificatesCheckOutput =
17
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18
+ acme_requested: Schema.optional(Schema.Boolean),
19
+ certificates: Schema.optional(
20
+ Schema.Array(
21
+ Schema.Struct({
22
+ created_at: Schema.optional(Schema.String),
23
+ expires_at: Schema.optional(Schema.String),
24
+ issued: Schema.optional(
25
+ Schema.Array(
26
+ Schema.Struct({
27
+ certificate_authority: Schema.optional(Schema.String),
28
+ expires_at: Schema.optional(Schema.String),
29
+ type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
30
+ }),
31
+ ),
32
+ ),
33
+ issuer: Schema.optional(Schema.String),
34
+ source: Schema.optional(Schema.Literals(["custom", "fly"])),
35
+ status: Schema.optional(
36
+ Schema.Literals([
37
+ "active",
38
+ "pending_ownership",
39
+ "pending_validation",
40
+ ]),
41
+ ),
42
+ }),
43
+ ),
44
+ ),
45
+ configured: Schema.optional(Schema.Boolean),
46
+ dns_provider: Schema.optional(Schema.String),
47
+ dns_records: Schema.optional(
48
+ Schema.Struct({
49
+ a: Schema.optional(Schema.Array(Schema.String)),
50
+ aaaa: Schema.optional(Schema.Array(Schema.String)),
51
+ acme_challenge_cname: Schema.optional(Schema.String),
52
+ cname: Schema.optional(Schema.Array(Schema.String)),
53
+ ownership_txt: Schema.optional(Schema.String),
54
+ resolved_addresses: Schema.optional(Schema.Array(Schema.String)),
55
+ soa: Schema.optional(Schema.String),
56
+ }),
57
+ ),
58
+ dns_requirements: Schema.optional(
59
+ Schema.Struct({
60
+ a: Schema.optional(Schema.Array(Schema.String)),
61
+ aaaa: Schema.optional(Schema.Array(Schema.String)),
62
+ acme_challenge: Schema.optional(
63
+ Schema.Struct({
64
+ name: Schema.optional(Schema.String),
65
+ target: Schema.optional(Schema.String),
66
+ }),
67
+ ),
68
+ cname: Schema.optional(Schema.String),
69
+ ownership: Schema.optional(
70
+ Schema.Struct({
71
+ app_value: Schema.optional(Schema.String),
72
+ name: Schema.optional(Schema.String),
73
+ org_value: Schema.optional(Schema.String),
74
+ }),
75
+ ),
76
+ }),
77
+ ),
78
+ hostname: Schema.optional(Schema.String),
79
+ rate_limited_until: Schema.optional(Schema.String),
80
+ status: Schema.optional(Schema.String),
81
+ validation: Schema.optional(
82
+ Schema.Struct({
83
+ alpn_configured: Schema.optional(Schema.Boolean),
84
+ dns_configured: Schema.optional(Schema.Boolean),
85
+ http_configured: Schema.optional(Schema.Boolean),
86
+ ownership_txt_configured: Schema.optional(Schema.Boolean),
87
+ }),
88
+ ),
89
+ validation_errors: Schema.optional(
90
+ Schema.Array(
91
+ Schema.Struct({
92
+ code: Schema.optional(Schema.String),
93
+ message: Schema.optional(Schema.String),
94
+ remediation: Schema.optional(Schema.String),
95
+ timestamp: Schema.optional(Schema.String),
96
+ }),
97
+ ),
98
+ ),
99
+ });
100
+ export type App_CertificatesCheckOutput =
101
+ typeof App_CertificatesCheckOutput.Type;
102
+
103
+ // The operation
104
+ /**
105
+ * Check DNS and re-validate certificate
106
+ */
107
+ export const App_CertificatesCheck = /*@__PURE__*/ /*#__PURE__*/ API.make(
108
+ () => ({
109
+ inputSchema: App_CertificatesCheckInput,
110
+ outputSchema: App_CertificatesCheckOutput,
111
+ }),
112
+ );