@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.
- package/lib/category.d.ts +5 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +5 -0
- package/lib/category.js.map +1 -0
- package/lib/client.d.ts +17 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +51 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +31 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +23 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +16 -0
- package/lib/index.js.map +1 -0
- package/lib/operations/AppCreateDeployToken.d.ts +17 -0
- package/lib/operations/AppCreateDeployToken.d.ts.map +1 -0
- package/lib/operations/AppCreateDeployToken.js +25 -0
- package/lib/operations/AppCreateDeployToken.js.map +1 -0
- package/lib/operations/App_CertificatesAcmeCreate.d.ts +57 -0
- package/lib/operations/App_CertificatesAcmeCreate.d.ts.map +1 -0
- package/lib/operations/App_CertificatesAcmeCreate.js +69 -0
- package/lib/operations/App_CertificatesAcmeCreate.js.map +1 -0
- package/lib/operations/App_CertificatesAcmeDelete.d.ts +55 -0
- package/lib/operations/App_CertificatesAcmeDelete.d.ts.map +1 -0
- package/lib/operations/App_CertificatesAcmeDelete.js +70 -0
- package/lib/operations/App_CertificatesAcmeDelete.js.map +1 -0
- package/lib/operations/App_CertificatesCheck.d.ts +64 -0
- package/lib/operations/App_CertificatesCheck.d.ts.map +1 -0
- package/lib/operations/App_CertificatesCheck.js +79 -0
- package/lib/operations/App_CertificatesCheck.js.map +1 -0
- package/lib/operations/App_CertificatesCustomCreate.d.ts +59 -0
- package/lib/operations/App_CertificatesCustomCreate.d.ts.map +1 -0
- package/lib/operations/App_CertificatesCustomCreate.js +72 -0
- package/lib/operations/App_CertificatesCustomCreate.js.map +1 -0
- package/lib/operations/App_CertificatesCustomDelete.d.ts +56 -0
- package/lib/operations/App_CertificatesCustomDelete.d.ts.map +1 -0
- package/lib/operations/App_CertificatesCustomDelete.js +72 -0
- package/lib/operations/App_CertificatesCustomDelete.js.map +1 -0
- package/lib/operations/App_CertificatesDelete.d.ts +10 -0
- package/lib/operations/App_CertificatesDelete.d.ts.map +1 -0
- package/lib/operations/App_CertificatesDelete.js +21 -0
- package/lib/operations/App_CertificatesDelete.js.map +1 -0
- package/lib/operations/App_CertificatesList.d.ts +36 -0
- package/lib/operations/App_CertificatesList.d.ts.map +1 -0
- package/lib/operations/App_CertificatesList.js +44 -0
- package/lib/operations/App_CertificatesList.js.map +1 -0
- package/lib/operations/App_CertificatesShow.d.ts +55 -0
- package/lib/operations/App_CertificatesShow.d.ts.map +1 -0
- package/lib/operations/App_CertificatesShow.js +67 -0
- package/lib/operations/App_CertificatesShow.js.map +1 -0
- package/lib/operations/App_IPAssignmentsCreate.d.ts +22 -0
- package/lib/operations/App_IPAssignmentsCreate.d.ts.map +1 -0
- package/lib/operations/App_IPAssignmentsCreate.js +30 -0
- package/lib/operations/App_IPAssignmentsCreate.js.map +1 -0
- package/lib/operations/App_IPAssignmentsDelete.d.ts +10 -0
- package/lib/operations/App_IPAssignmentsDelete.d.ts.map +1 -0
- package/lib/operations/App_IPAssignmentsDelete.js +18 -0
- package/lib/operations/App_IPAssignmentsDelete.js.map +1 -0
- package/lib/operations/App_IPAssignmentsList.d.ts +18 -0
- package/lib/operations/App_IPAssignmentsList.d.ts.map +1 -0
- package/lib/operations/App_IPAssignmentsList.js +26 -0
- package/lib/operations/App_IPAssignmentsList.js.map +1 -0
- package/lib/operations/AppsCreate.d.ts +17 -0
- package/lib/operations/AppsCreate.d.ts.map +1 -0
- package/lib/operations/AppsCreate.js +23 -0
- package/lib/operations/AppsCreate.js.map +1 -0
- package/lib/operations/AppsDelete.d.ts +16 -0
- package/lib/operations/AppsDelete.d.ts.map +1 -0
- package/lib/operations/AppsDelete.js +22 -0
- package/lib/operations/AppsDelete.js.map +1 -0
- package/lib/operations/AppsList.d.ts +34 -0
- package/lib/operations/AppsList.d.ts.map +1 -0
- package/lib/operations/AppsList.js +40 -0
- package/lib/operations/AppsList.js.map +1 -0
- package/lib/operations/AppsShow.d.ts +29 -0
- package/lib/operations/AppsShow.d.ts.map +1 -0
- package/lib/operations/AppsShow.js +35 -0
- package/lib/operations/AppsShow.js.map +1 -0
- package/lib/operations/CurrentTokenShow.d.ts +22 -0
- package/lib/operations/CurrentTokenShow.d.ts.map +1 -0
- package/lib/operations/CurrentTokenShow.js +28 -0
- package/lib/operations/CurrentTokenShow.js.map +1 -0
- package/lib/operations/MachinesCordon.d.ts +18 -0
- package/lib/operations/MachinesCordon.d.ts.map +1 -0
- package/lib/operations/MachinesCordon.js +27 -0
- package/lib/operations/MachinesCordon.js.map +1 -0
- package/lib/operations/MachinesCreate.d.ts +840 -0
- package/lib/operations/MachinesCreate.d.ts.map +1 -0
- package/lib/operations/MachinesCreate.js +888 -0
- package/lib/operations/MachinesCreate.js.map +1 -0
- package/lib/operations/MachinesCreateLease.d.ts +27 -0
- package/lib/operations/MachinesCreateLease.d.ts.map +1 -0
- package/lib/operations/MachinesCreateLease.js +38 -0
- package/lib/operations/MachinesCreateLease.js.map +1 -0
- package/lib/operations/MachinesDelete.d.ts +20 -0
- package/lib/operations/MachinesDelete.d.ts.map +1 -0
- package/lib/operations/MachinesDelete.js +26 -0
- package/lib/operations/MachinesDelete.js.map +1 -0
- package/lib/operations/MachinesDeleteMetadata.d.ts +20 -0
- package/lib/operations/MachinesDeleteMetadata.d.ts.map +1 -0
- package/lib/operations/MachinesDeleteMetadata.js +31 -0
- package/lib/operations/MachinesDeleteMetadata.js.map +1 -0
- package/lib/operations/MachinesExec.d.ts +28 -0
- package/lib/operations/MachinesExec.d.ts.map +1 -0
- package/lib/operations/MachinesExec.js +37 -0
- package/lib/operations/MachinesExec.js.map +1 -0
- package/lib/operations/MachinesGetMemory.d.ts +21 -0
- package/lib/operations/MachinesGetMemory.d.ts.map +1 -0
- package/lib/operations/MachinesGetMemory.js +31 -0
- package/lib/operations/MachinesGetMemory.js.map +1 -0
- package/lib/operations/MachinesList.d.ts +578 -0
- package/lib/operations/MachinesList.d.ts.map +1 -0
- package/lib/operations/MachinesList.js +622 -0
- package/lib/operations/MachinesList.js.map +1 -0
- package/lib/operations/MachinesListEvents.d.ts +27 -0
- package/lib/operations/MachinesListEvents.d.ts.map +1 -0
- package/lib/operations/MachinesListEvents.js +38 -0
- package/lib/operations/MachinesListEvents.js.map +1 -0
- package/lib/operations/MachinesListProcesses.d.ts +34 -0
- package/lib/operations/MachinesListProcesses.d.ts.map +1 -0
- package/lib/operations/MachinesListProcesses.js +45 -0
- package/lib/operations/MachinesListProcesses.js.map +1 -0
- package/lib/operations/MachinesListVersions.d.ts +281 -0
- package/lib/operations/MachinesListVersions.d.ts.map +1 -0
- package/lib/operations/MachinesListVersions.js +311 -0
- package/lib/operations/MachinesListVersions.js.map +1 -0
- package/lib/operations/MachinesOrgList.d.ts +45 -0
- package/lib/operations/MachinesOrgList.d.ts.map +1 -0
- package/lib/operations/MachinesOrgList.js +51 -0
- package/lib/operations/MachinesOrgList.js.map +1 -0
- package/lib/operations/MachinesPatchMetadata.d.ts +19 -0
- package/lib/operations/MachinesPatchMetadata.d.ts.map +1 -0
- package/lib/operations/MachinesPatchMetadata.js +30 -0
- package/lib/operations/MachinesPatchMetadata.js.map +1 -0
- package/lib/operations/MachinesReclaimMemory.d.ts +21 -0
- package/lib/operations/MachinesReclaimMemory.d.ts.map +1 -0
- package/lib/operations/MachinesReclaimMemory.js +32 -0
- package/lib/operations/MachinesReclaimMemory.js.map +1 -0
- package/lib/operations/MachinesReleaseLease.d.ts +19 -0
- package/lib/operations/MachinesReleaseLease.d.ts.map +1 -0
- package/lib/operations/MachinesReleaseLease.js +30 -0
- package/lib/operations/MachinesReleaseLease.js.map +1 -0
- package/lib/operations/MachinesRestart.d.ts +22 -0
- package/lib/operations/MachinesRestart.d.ts.map +1 -0
- package/lib/operations/MachinesRestart.js +31 -0
- package/lib/operations/MachinesRestart.js.map +1 -0
- package/lib/operations/MachinesSetMemoryLimit.d.ts +22 -0
- package/lib/operations/MachinesSetMemoryLimit.d.ts.map +1 -0
- package/lib/operations/MachinesSetMemoryLimit.js +33 -0
- package/lib/operations/MachinesSetMemoryLimit.js.map +1 -0
- package/lib/operations/MachinesShow.d.ts +572 -0
- package/lib/operations/MachinesShow.d.ts.map +1 -0
- package/lib/operations/MachinesShow.js +606 -0
- package/lib/operations/MachinesShow.js.map +1 -0
- package/lib/operations/MachinesShowLease.d.ts +24 -0
- package/lib/operations/MachinesShowLease.d.ts.map +1 -0
- package/lib/operations/MachinesShowLease.js +34 -0
- package/lib/operations/MachinesShowLease.js.map +1 -0
- package/lib/operations/MachinesShowMetadata.d.ts +18 -0
- package/lib/operations/MachinesShowMetadata.d.ts.map +1 -0
- package/lib/operations/MachinesShowMetadata.js +29 -0
- package/lib/operations/MachinesShowMetadata.js.map +1 -0
- package/lib/operations/MachinesSignal.d.ts +19 -0
- package/lib/operations/MachinesSignal.d.ts.map +1 -0
- package/lib/operations/MachinesSignal.js +42 -0
- package/lib/operations/MachinesSignal.js.map +1 -0
- package/lib/operations/MachinesStart.d.ts +18 -0
- package/lib/operations/MachinesStart.d.ts.map +1 -0
- package/lib/operations/MachinesStart.js +27 -0
- package/lib/operations/MachinesStart.js.map +1 -0
- package/lib/operations/MachinesStop.d.ts +22 -0
- package/lib/operations/MachinesStop.d.ts.map +1 -0
- package/lib/operations/MachinesStop.js +31 -0
- package/lib/operations/MachinesStop.js.map +1 -0
- package/lib/operations/MachinesSuspend.d.ts +18 -0
- package/lib/operations/MachinesSuspend.d.ts.map +1 -0
- package/lib/operations/MachinesSuspend.js +27 -0
- package/lib/operations/MachinesSuspend.js.map +1 -0
- package/lib/operations/MachinesUncordon.d.ts +18 -0
- package/lib/operations/MachinesUncordon.d.ts.map +1 -0
- package/lib/operations/MachinesUncordon.js +27 -0
- package/lib/operations/MachinesUncordon.js.map +1 -0
- package/lib/operations/MachinesUpdate.d.ts +842 -0
- package/lib/operations/MachinesUpdate.d.ts.map +1 -0
- package/lib/operations/MachinesUpdate.js +890 -0
- package/lib/operations/MachinesUpdate.js.map +1 -0
- package/lib/operations/MachinesUpdateMetadata.d.ts +20 -0
- package/lib/operations/MachinesUpdateMetadata.d.ts.map +1 -0
- package/lib/operations/MachinesUpdateMetadata.js +31 -0
- package/lib/operations/MachinesUpdateMetadata.js.map +1 -0
- package/lib/operations/MachinesWait.d.ts +28 -0
- package/lib/operations/MachinesWait.d.ts.map +1 -0
- package/lib/operations/MachinesWait.js +43 -0
- package/lib/operations/MachinesWait.js.map +1 -0
- package/lib/operations/PlatformPlacementsPost.d.ts +35 -0
- package/lib/operations/PlatformPlacementsPost.d.ts.map +1 -0
- package/lib/operations/PlatformPlacementsPost.js +43 -0
- package/lib/operations/PlatformPlacementsPost.js.map +1 -0
- package/lib/operations/PlatformRegionsGet.d.ts +39 -0
- package/lib/operations/PlatformRegionsGet.d.ts.map +1 -0
- package/lib/operations/PlatformRegionsGet.js +47 -0
- package/lib/operations/PlatformRegionsGet.js.map +1 -0
- package/lib/operations/SecretCreate.d.ts +25 -0
- package/lib/operations/SecretCreate.d.ts.map +1 -0
- package/lib/operations/SecretCreate.js +31 -0
- package/lib/operations/SecretCreate.js.map +1 -0
- package/lib/operations/SecretDelete.d.ts +19 -0
- package/lib/operations/SecretDelete.d.ts.map +1 -0
- package/lib/operations/SecretDelete.js +25 -0
- package/lib/operations/SecretDelete.js.map +1 -0
- package/lib/operations/SecretGet.d.ts +26 -0
- package/lib/operations/SecretGet.d.ts.map +1 -0
- package/lib/operations/SecretGet.js +32 -0
- package/lib/operations/SecretGet.js.map +1 -0
- package/lib/operations/SecretkeyDecrypt.d.ts +22 -0
- package/lib/operations/SecretkeyDecrypt.d.ts.map +1 -0
- package/lib/operations/SecretkeyDecrypt.js +31 -0
- package/lib/operations/SecretkeyDecrypt.js.map +1 -0
- package/lib/operations/SecretkeyDelete.d.ts +19 -0
- package/lib/operations/SecretkeyDelete.d.ts.map +1 -0
- package/lib/operations/SecretkeyDelete.js +28 -0
- package/lib/operations/SecretkeyDelete.js.map +1 -0
- package/lib/operations/SecretkeyEncrypt.d.ts +22 -0
- package/lib/operations/SecretkeyEncrypt.d.ts.map +1 -0
- package/lib/operations/SecretkeyEncrypt.js +31 -0
- package/lib/operations/SecretkeyEncrypt.js.map +1 -0
- package/lib/operations/SecretkeyGenerate.d.ts +26 -0
- package/lib/operations/SecretkeyGenerate.d.ts.map +1 -0
- package/lib/operations/SecretkeyGenerate.js +36 -0
- package/lib/operations/SecretkeyGenerate.js.map +1 -0
- package/lib/operations/SecretkeyGet.d.ts +24 -0
- package/lib/operations/SecretkeyGet.d.ts.map +1 -0
- package/lib/operations/SecretkeyGet.js +30 -0
- package/lib/operations/SecretkeyGet.js.map +1 -0
- package/lib/operations/SecretkeySet.d.ts +26 -0
- package/lib/operations/SecretkeySet.d.ts.map +1 -0
- package/lib/operations/SecretkeySet.js +32 -0
- package/lib/operations/SecretkeySet.js.map +1 -0
- package/lib/operations/SecretkeySign.d.ts +21 -0
- package/lib/operations/SecretkeySign.d.ts.map +1 -0
- package/lib/operations/SecretkeySign.js +30 -0
- package/lib/operations/SecretkeySign.js.map +1 -0
- package/lib/operations/SecretkeyVerify.d.ts +20 -0
- package/lib/operations/SecretkeyVerify.d.ts.map +1 -0
- package/lib/operations/SecretkeyVerify.js +29 -0
- package/lib/operations/SecretkeyVerify.js.map +1 -0
- package/lib/operations/SecretkeysList.d.ts +26 -0
- package/lib/operations/SecretkeysList.d.ts.map +1 -0
- package/lib/operations/SecretkeysList.js +32 -0
- package/lib/operations/SecretkeysList.js.map +1 -0
- package/lib/operations/SecretsList.d.ts +26 -0
- package/lib/operations/SecretsList.d.ts.map +1 -0
- package/lib/operations/SecretsList.js +32 -0
- package/lib/operations/SecretsList.js.map +1 -0
- package/lib/operations/SecretsUpdate.d.ts +25 -0
- package/lib/operations/SecretsUpdate.d.ts.map +1 -0
- package/lib/operations/SecretsUpdate.js +31 -0
- package/lib/operations/SecretsUpdate.js.map +1 -0
- package/lib/operations/TokensRequest_Kms.d.ts +12 -0
- package/lib/operations/TokensRequest_Kms.d.ts.map +1 -0
- package/lib/operations/TokensRequest_Kms.js +19 -0
- package/lib/operations/TokensRequest_Kms.js.map +1 -0
- package/lib/operations/TokensRequest_OIDC.d.ts +15 -0
- package/lib/operations/TokensRequest_OIDC.d.ts.map +1 -0
- package/lib/operations/TokensRequest_OIDC.js +23 -0
- package/lib/operations/TokensRequest_OIDC.js.map +1 -0
- package/lib/operations/VolumeDelete.d.ts +39 -0
- package/lib/operations/VolumeDelete.d.ts.map +1 -0
- package/lib/operations/VolumeDelete.js +45 -0
- package/lib/operations/VolumeDelete.js.map +1 -0
- package/lib/operations/VolumesCreate.d.ts +59 -0
- package/lib/operations/VolumesCreate.d.ts.map +1 -0
- package/lib/operations/VolumesCreate.js +65 -0
- package/lib/operations/VolumesCreate.js.map +1 -0
- package/lib/operations/VolumesExtend.d.ts +43 -0
- package/lib/operations/VolumesExtend.d.ts.map +1 -0
- package/lib/operations/VolumesExtend.js +52 -0
- package/lib/operations/VolumesExtend.js.map +1 -0
- package/lib/operations/VolumesGetById.d.ts +39 -0
- package/lib/operations/VolumesGetById.d.ts.map +1 -0
- package/lib/operations/VolumesGetById.js +45 -0
- package/lib/operations/VolumesGetById.js.map +1 -0
- package/lib/operations/VolumesList.d.ts +39 -0
- package/lib/operations/VolumesList.d.ts.map +1 -0
- package/lib/operations/VolumesList.js +45 -0
- package/lib/operations/VolumesList.js.map +1 -0
- package/lib/operations/VolumesListSnapshots.d.ts +26 -0
- package/lib/operations/VolumesListSnapshots.d.ts.map +1 -0
- package/lib/operations/VolumesListSnapshots.js +37 -0
- package/lib/operations/VolumesListSnapshots.js.map +1 -0
- package/lib/operations/VolumesUpdate.d.ts +41 -0
- package/lib/operations/VolumesUpdate.d.ts.map +1 -0
- package/lib/operations/VolumesUpdate.js +47 -0
- package/lib/operations/VolumesUpdate.js.map +1 -0
- package/lib/operations/createVolumeSnapshot.d.ts +18 -0
- package/lib/operations/createVolumeSnapshot.d.ts.map +1 -0
- package/lib/operations/createVolumeSnapshot.js +29 -0
- package/lib/operations/createVolumeSnapshot.js.map +1 -0
- package/lib/operations/index.d.ts +72 -0
- package/lib/operations/index.d.ts.map +1 -0
- package/lib/operations/index.js +72 -0
- package/lib/operations/index.js.map +1 -0
- package/lib/retry.d.ts +22 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +21 -0
- package/lib/retry.js.map +1 -0
- package/lib/sensitive.d.ts +5 -0
- package/lib/sensitive.d.ts.map +1 -0
- package/lib/sensitive.js +5 -0
- package/lib/sensitive.js.map +1 -0
- package/lib/traits.d.ts +5 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +5 -0
- package/lib/traits.js.map +1 -0
- package/package.json +81 -9
- package/src/category.ts +4 -0
- package/src/client.ts +62 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +47 -0
- package/src/index.ts +15 -0
- package/src/operations/AppCreateDeployToken.ts +31 -0
- package/src/operations/App_CertificatesAcmeCreate.ts +101 -0
- package/src/operations/App_CertificatesAcmeDelete.ts +102 -0
- package/src/operations/App_CertificatesCheck.ts +112 -0
- package/src/operations/App_CertificatesCustomCreate.ts +102 -0
- package/src/operations/App_CertificatesCustomDelete.ts +102 -0
- package/src/operations/App_CertificatesDelete.ts +31 -0
- package/src/operations/App_CertificatesList.ts +54 -0
- package/src/operations/App_CertificatesShow.ts +97 -0
- package/src/operations/App_IPAssignmentsCreate.ts +38 -0
- package/src/operations/App_IPAssignmentsDelete.ts +28 -0
- package/src/operations/App_IPAssignmentsList.ts +39 -0
- package/src/operations/AppsCreate.ts +27 -0
- package/src/operations/AppsDelete.ts +26 -0
- package/src/operations/AppsList.ts +50 -0
- package/src/operations/AppsShow.ts +41 -0
- package/src/operations/CurrentTokenShow.ts +40 -0
- package/src/operations/MachinesCordon.ts +33 -0
- package/src/operations/MachinesCreate.ts +1393 -0
- package/src/operations/MachinesCreateLease.ts +44 -0
- package/src/operations/MachinesDelete.ts +32 -0
- package/src/operations/MachinesDeleteMetadata.ts +41 -0
- package/src/operations/MachinesExec.ts +43 -0
- package/src/operations/MachinesGetMemory.ts +39 -0
- package/src/operations/MachinesList.ts +966 -0
- package/src/operations/MachinesListEvents.ts +46 -0
- package/src/operations/MachinesListProcesses.ts +60 -0
- package/src/operations/MachinesListVersions.ts +494 -0
- package/src/operations/MachinesOrgList.ts +59 -0
- package/src/operations/MachinesPatchMetadata.ts +39 -0
- package/src/operations/MachinesReclaimMemory.ts +41 -0
- package/src/operations/MachinesReleaseLease.ts +38 -0
- package/src/operations/MachinesRestart.ts +37 -0
- package/src/operations/MachinesSetMemoryLimit.ts +43 -0
- package/src/operations/MachinesShow.ts +950 -0
- package/src/operations/MachinesShowLease.ts +42 -0
- package/src/operations/MachinesShowMetadata.ts +37 -0
- package/src/operations/MachinesSignal.ts +50 -0
- package/src/operations/MachinesStart.ts +33 -0
- package/src/operations/MachinesStop.ts +39 -0
- package/src/operations/MachinesSuspend.ts +33 -0
- package/src/operations/MachinesUncordon.ts +33 -0
- package/src/operations/MachinesUpdate.ts +1397 -0
- package/src/operations/MachinesUpdateMetadata.ts +41 -0
- package/src/operations/MachinesWait.ts +51 -0
- package/src/operations/PlatformPlacementsPost.ts +59 -0
- package/src/operations/PlatformRegionsGet.ts +55 -0
- package/src/operations/SecretCreate.ts +37 -0
- package/src/operations/SecretDelete.ts +31 -0
- package/src/operations/SecretGet.ts +38 -0
- package/src/operations/SecretkeyDecrypt.ts +39 -0
- package/src/operations/SecretkeyDelete.ts +34 -0
- package/src/operations/SecretkeyEncrypt.ts +39 -0
- package/src/operations/SecretkeyGenerate.ts +44 -0
- package/src/operations/SecretkeyGet.ts +36 -0
- package/src/operations/SecretkeySet.ts +38 -0
- package/src/operations/SecretkeySign.ts +36 -0
- package/src/operations/SecretkeyVerify.ts +35 -0
- package/src/operations/SecretkeysList.ts +40 -0
- package/src/operations/SecretsList.ts +40 -0
- package/src/operations/SecretsUpdate.ts +39 -0
- package/src/operations/TokensRequest_Kms.ts +25 -0
- package/src/operations/TokensRequest_OIDC.ts +27 -0
- package/src/operations/VolumeDelete.ts +53 -0
- package/src/operations/VolumesCreate.ts +75 -0
- package/src/operations/VolumesExtend.ts +62 -0
- package/src/operations/VolumesGetById.ts +53 -0
- package/src/operations/VolumesList.ts +53 -0
- package/src/operations/VolumesListSnapshots.ts +47 -0
- package/src/operations/VolumesUpdate.ts +55 -0
- package/src/operations/createVolumeSnapshot.ts +37 -0
- package/src/operations/index.ts +71 -0
- package/src/retry.ts +35 -0
- package/src/sensitive.ts +4 -0
- package/src/traits.ts +4 -0
- 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.
|
|
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
|
-
"
|
|
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
|
+
}
|
package/src/category.ts
ADDED
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
|
+
);
|