@distilled.cloud/fly-io 0.0.0-john
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/README.md +68 -0
- 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 +10 -0
- package/lib/client.d.ts.map +1 -0
- package/lib/client.js +52 -0
- package/lib/client.js.map +1 -0
- package/lib/credentials.d.ts +15 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +18 -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 +88 -0
- package/src/category.ts +4 -0
- package/src/client.ts +63 -0
- package/src/credentials.ts +31 -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/README.md
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# @distilled.cloud/fly-io
|
|
2
|
+
|
|
3
|
+
Effect-native Fly.io SDK generated from the [Fly.io OpenAPI specification](https://docs.machines.dev). Manage apps, machines, volumes, secrets, certificates, and more with exhaustive error typing.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @distilled.cloud/fly-io effect
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Effect, Layer } from "effect";
|
|
15
|
+
import * as FetchHttpClient from "effect/unstable/http/FetchHttpClient";
|
|
16
|
+
import { AppsList } from "@distilled.cloud/fly-io/Operations";
|
|
17
|
+
import { CredentialsFromEnv } from "@distilled.cloud/fly-io";
|
|
18
|
+
|
|
19
|
+
const program = Effect.gen(function* () {
|
|
20
|
+
const apps = yield* AppsList({ org_slug: "my-org" });
|
|
21
|
+
return apps;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
const FlyLive = Layer.mergeAll(FetchHttpClient.layer, CredentialsFromEnv);
|
|
25
|
+
|
|
26
|
+
program.pipe(Effect.provide(FlyLive), Effect.runPromise);
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Configuration
|
|
30
|
+
|
|
31
|
+
Set the following environment variable:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
FLY_IO_API_KEY=your-api-token
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Create a personal access token with `flyctl tokens create` or in the [Fly.io dashboard](https://fly.io/dashboard/) under **Account > Access Tokens**. For deploy tokens scoped to a single app, use `flyctl tokens create deploy`.
|
|
38
|
+
|
|
39
|
+
## Error Handling
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import { AppsShow } from "@distilled.cloud/fly-io/Operations";
|
|
43
|
+
|
|
44
|
+
AppsShow({ app_name: "missing-app" }).pipe(
|
|
45
|
+
Effect.catchTags({
|
|
46
|
+
NotFound: () => Effect.succeed(null),
|
|
47
|
+
UnknownFlyIoError: (e) => Effect.fail(new Error(`Unknown: ${e.message}`)),
|
|
48
|
+
}),
|
|
49
|
+
);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Services
|
|
53
|
+
|
|
54
|
+
Key operation areas include:
|
|
55
|
+
|
|
56
|
+
- **Apps** -- list, create, show, delete, deploy tokens
|
|
57
|
+
- **Machines** -- full lifecycle (create, start, stop, suspend, restart, signal, exec, wait), plus metadata, leases, memory management, events, and versions
|
|
58
|
+
- **Volumes** -- create, list, update, delete, extend, snapshots
|
|
59
|
+
- **Secrets** -- create, list, get, delete, update
|
|
60
|
+
- **Secret Keys** -- generate, encrypt, decrypt, sign, verify (KMS)
|
|
61
|
+
- **Certificates** -- ACME and custom TLS certificates
|
|
62
|
+
- **IP Assignments** -- allocate and release IP addresses
|
|
63
|
+
- **Tokens** -- OIDC and KMS token requests
|
|
64
|
+
- **Platform** -- regions and placement queries
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
MIT
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/lib/category.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../src/category.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export { UnknownFlyIoError } from "./errors.ts";
|
|
3
|
+
/**
|
|
4
|
+
* Fly-io API client.
|
|
5
|
+
*/
|
|
6
|
+
export declare const API: {
|
|
7
|
+
make: <I extends Schema.Top, O extends Schema.Top, const E extends readonly import("@distilled.cloud/core/client").ApiErrorClass[] = readonly []>(configFn: () => import("@distilled.cloud/core/client").OperationConfig<I, O, E>) => any;
|
|
8
|
+
makePaginated: <I extends Schema.Top, O extends Schema.Top, const E extends readonly import("@distilled.cloud/core/client").ApiErrorClass[] = readonly []>(configFn: () => import("@distilled.cloud/core/client").PaginatedOperationConfig<I, O, E>, paginateFn?: import("@distilled.cloud/core/pagination").PaginationStrategy | undefined) => any;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AASxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAkChD;;GAEG;AACH,eAAO,MAAM,GAAG;;;CAQd,CAAC"}
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
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 Redacted from "effect/Redacted";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
import { makeAPI } from "@distilled.cloud/core/client";
|
|
11
|
+
import { HTTP_STATUS_MAP, UnknownFlyIoError, FlyIoParseError, } from "./errors.js";
|
|
12
|
+
// Re-export for backwards compatibility
|
|
13
|
+
export { UnknownFlyIoError } from "./errors.js";
|
|
14
|
+
import { Credentials } from "./credentials.js";
|
|
15
|
+
// API Error Response Schema
|
|
16
|
+
const ApiErrorResponse = Schema.Struct({
|
|
17
|
+
code: Schema.optional(Schema.String),
|
|
18
|
+
message: Schema.String,
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Match a Fly-io API error response to the appropriate error class based on HTTP status.
|
|
22
|
+
*/
|
|
23
|
+
const matchError = (status, errorBody) => {
|
|
24
|
+
try {
|
|
25
|
+
const parsed = Schema.decodeUnknownSync(ApiErrorResponse)(errorBody);
|
|
26
|
+
const ErrorClass = HTTP_STATUS_MAP[status];
|
|
27
|
+
if (ErrorClass) {
|
|
28
|
+
return Effect.fail(new ErrorClass({ message: parsed.message ?? "" }));
|
|
29
|
+
}
|
|
30
|
+
return Effect.fail(new UnknownFlyIoError({
|
|
31
|
+
code: parsed.code,
|
|
32
|
+
message: parsed.message,
|
|
33
|
+
body: errorBody,
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
return Effect.fail(new UnknownFlyIoError({ body: errorBody }));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Fly-io API client.
|
|
42
|
+
*/
|
|
43
|
+
export const API = makeAPI({
|
|
44
|
+
credentials: Credentials,
|
|
45
|
+
getBaseUrl: (creds) => creds.apiBaseUrl,
|
|
46
|
+
getAuthHeaders: (creds) => ({
|
|
47
|
+
Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
|
|
48
|
+
}),
|
|
49
|
+
matchError,
|
|
50
|
+
ParseError: FlyIoParseError,
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,eAAe,GAChB,MAAM,aAAa,CAAC;AAErB,wCAAwC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,4BAA4B;AAC5B,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,UAAU,GAAG,CACjB,MAAc,EACd,SAAkB,EACa,EAAE;IACjC,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC;QACrE,MAAM,UAAU,GAAI,eAAuB,CAAC,MAAM,CAAC,CAAC;QACpD,IAAI,UAAU,EAAE,CAAC;YACf,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;QACxE,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAChB,IAAI,iBAAiB,CAAC;YACpB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,IAAI,EAAE,SAAS;SAChB,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,iBAAiB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;IACjE,CAAC;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,OAAO,CAAC;IACzB,WAAW,EAAE,WAAkB;IAC/B,UAAU,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;IAC5C,cAAc,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC;QAC/B,aAAa,EAAE,UAAU,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;KACxD,CAAC;IACF,UAAU;IACV,UAAU,EAAE,eAAsB;CACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as Layer from "effect/Layer";
|
|
2
|
+
import * as Redacted from "effect/Redacted";
|
|
3
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
4
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
5
|
+
export declare const DEFAULT_API_BASE_URL = "https://api.fly-io.com";
|
|
6
|
+
export interface Config {
|
|
7
|
+
readonly apiKey: Redacted.Redacted<string>;
|
|
8
|
+
readonly apiBaseUrl: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Credentials_base: ServiceMap.ServiceClass<Credentials, "Fly-ioCredentials", Config>;
|
|
11
|
+
export declare class Credentials extends Credentials_base {
|
|
12
|
+
}
|
|
13
|
+
export declare const CredentialsFromEnv: Layer.Layer<Credentials, ConfigError, never>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAEhC;CAAG;AAEJ,eAAO,MAAM,kBAAkB,8CAa9B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as ServiceMap from "effect/ServiceMap";
|
|
5
|
+
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
|
+
export const DEFAULT_API_BASE_URL = "https://api.fly-io.com";
|
|
7
|
+
export class Credentials extends ServiceMap.Service()("Fly-ioCredentials") {
|
|
8
|
+
}
|
|
9
|
+
export const CredentialsFromEnv = Layer.effect(Credentials, Effect.gen(function* () {
|
|
10
|
+
const apiKey = process.env.FLY_IO_API_KEY;
|
|
11
|
+
if (!apiKey) {
|
|
12
|
+
return yield* new ConfigError({
|
|
13
|
+
message: "FLY_IO_API_KEY environment variable is required",
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
return { apiKey: Redacted.make(apiKey), apiBaseUrl: DEFAULT_API_BASE_URL };
|
|
17
|
+
}));
|
|
18
|
+
//# sourceMappingURL=credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WAAY,SAAQ,UAAU,CAAC,OAAO,EAAuB,CACxE,mBAAmB,CACpB;CAAG;AAEJ,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,MAAM,CAC5C,WAAW,EACX,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC;IAE1C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,KAAK,CAAC,CAAC,IAAI,WAAW,CAAC;YAC5B,OAAO,EAAE,iDAAiD;SAC3D,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,oBAAoB,EAAE,CAAC;AAC7E,CAAC,CAAC,CACH,CAAC"}
|
package/lib/errors.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
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 { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
8
|
+
export type { DefaultErrors } from "@distilled.cloud/core/errors";
|
|
9
|
+
import * as Schema from "effect/Schema";
|
|
10
|
+
declare const UnknownFlyIoError_base: Schema.ErrorClass<UnknownFlyIoError, Schema.TaggedStruct<"UnknownFlyIoError", {
|
|
11
|
+
readonly code: Schema.optional<Schema.String>;
|
|
12
|
+
readonly message: Schema.optional<Schema.String>;
|
|
13
|
+
readonly body: Schema.Unknown;
|
|
14
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
15
|
+
"@distilled.cloud/error/categories": {
|
|
16
|
+
ServerError: true;
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
export declare class UnknownFlyIoError extends UnknownFlyIoError_base {
|
|
20
|
+
}
|
|
21
|
+
declare const FlyIoParseError_base: Schema.ErrorClass<FlyIoParseError, Schema.TaggedStruct<"FlyIoParseError", {
|
|
22
|
+
readonly body: Schema.Unknown;
|
|
23
|
+
readonly cause: Schema.Unknown;
|
|
24
|
+
}>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
|
|
25
|
+
"@distilled.cloud/error/categories": {
|
|
26
|
+
ParseError: true;
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
export declare class FlyIoParseError extends FlyIoParseError_base {
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;;AAIxC,qBAAa,iBAAkB,SAAQ,sBAOP;CAAG;;;;;;;;;AAGnC,qBAAa,eAAgB,SAAQ,oBAMN;CAAG"}
|
package/lib/errors.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
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 { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import * as Category from "@distilled.cloud/core/category";
|
|
10
|
+
// Unknown Fly-io error - returned when an error code is not recognized
|
|
11
|
+
export class UnknownFlyIoError extends Schema.TaggedErrorClass()("UnknownFlyIoError", {
|
|
12
|
+
code: Schema.optional(Schema.String),
|
|
13
|
+
message: Schema.optional(Schema.String),
|
|
14
|
+
body: Schema.Unknown,
|
|
15
|
+
}).pipe(Category.withServerError) {
|
|
16
|
+
}
|
|
17
|
+
// Schema parse error wrapper
|
|
18
|
+
export class FlyIoParseError extends Schema.TaggedErrorClass()("FlyIoParseError", {
|
|
19
|
+
body: Schema.Unknown,
|
|
20
|
+
cause: Schema.Unknown,
|
|
21
|
+
}).pipe(Category.withParseError) {
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAGtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAE3D,uEAAuE;AACvE,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,gBAAgB,EAAqB,CACjF,mBAAmB,EACnB;IACE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,OAAO;CACrB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;CAAG;AAEnC,6BAA6B;AAC7B,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,gBAAgB,EAAmB,CAC7E,iBAAiB,EACjB;IACE,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
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.js";
|
|
10
|
+
export * as Category from "./category.js";
|
|
11
|
+
export * as T from "./traits.js";
|
|
12
|
+
export * as Retry from "./retry.js";
|
|
13
|
+
export { API } from "./client.js";
|
|
14
|
+
export * from "./errors.js";
|
|
15
|
+
export { SensitiveString, SensitiveNullableString } from "./sensitive.js";
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const AppCreateDeployTokenInput: Schema.Struct<{
|
|
3
|
+
readonly app_name: Schema.String;
|
|
4
|
+
readonly expiry: Schema.optional<Schema.String>;
|
|
5
|
+
}>;
|
|
6
|
+
export type AppCreateDeployTokenInput = typeof AppCreateDeployTokenInput.Type;
|
|
7
|
+
export declare const AppCreateDeployTokenOutput: Schema.Struct<{
|
|
8
|
+
readonly token: Schema.optional<Schema.String>;
|
|
9
|
+
}>;
|
|
10
|
+
export type AppCreateDeployTokenOutput = typeof AppCreateDeployTokenOutput.Type;
|
|
11
|
+
/**
|
|
12
|
+
* Create App deploy token
|
|
13
|
+
*
|
|
14
|
+
* @param app_name - Fly App Name
|
|
15
|
+
*/
|
|
16
|
+
export declare const AppCreateDeployToken: any;
|
|
17
|
+
//# sourceMappingURL=AppCreateDeployToken.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppCreateDeployToken.d.ts","sourceRoot":"","sources":["../../src/operations/AppCreateDeployToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,yBAAyB;;;EAIsC,CAAC;AAC7E,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,IAAI,CAAC;AAG9E,eAAO,MAAM,0BAA0B;;EAGnC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,IAAI,CAAC;AAGhF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,KAKhC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const AppCreateDeployTokenInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
app_name: Schema.String.pipe(T.PathParam()),
|
|
8
|
+
expiry: Schema.optional(Schema.String),
|
|
9
|
+
}).pipe(T.Http({ method: "POST", path: "/apps/{app_name}/deploy_token" }));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const AppCreateDeployTokenOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
token: Schema.optional(Schema.String),
|
|
14
|
+
});
|
|
15
|
+
// The operation
|
|
16
|
+
/**
|
|
17
|
+
* Create App deploy token
|
|
18
|
+
*
|
|
19
|
+
* @param app_name - Fly App Name
|
|
20
|
+
*/
|
|
21
|
+
export const AppCreateDeployToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
22
|
+
inputSchema: AppCreateDeployTokenInput,
|
|
23
|
+
outputSchema: AppCreateDeployTokenOutput,
|
|
24
|
+
}));
|
|
25
|
+
//# sourceMappingURL=AppCreateDeployToken.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppCreateDeployToken.js","sourceRoot":"","sources":["../../src/operations/AppCreateDeployToken.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAChC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAC;AAE/B,eAAe;AACf,MAAM,CAAC,MAAM,yBAAyB;AACpC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;IAC3C,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACvC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC,CAAC,CAAC;AAG7E,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B;AACrC,aAAa,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;CACtC,CAAC,CAAC;AAGL,gBAAgB;AAChB;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CACtE,GAAG,EAAE,CAAC,CAAC;IACL,WAAW,EAAE,yBAAyB;IACtC,YAAY,EAAE,0BAA0B;CACzC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const App_CertificatesAcmeCreateInput: Schema.Struct<{
|
|
3
|
+
readonly hostname: Schema.optional<Schema.String>;
|
|
4
|
+
}>;
|
|
5
|
+
export type App_CertificatesAcmeCreateInput = typeof App_CertificatesAcmeCreateInput.Type;
|
|
6
|
+
export declare const App_CertificatesAcmeCreateOutput: Schema.Struct<{
|
|
7
|
+
readonly acme_requested: Schema.optional<Schema.Boolean>;
|
|
8
|
+
readonly certificates: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
9
|
+
readonly created_at: Schema.optional<Schema.String>;
|
|
10
|
+
readonly expires_at: Schema.optional<Schema.String>;
|
|
11
|
+
readonly issued: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
12
|
+
readonly certificate_authority: Schema.optional<Schema.String>;
|
|
13
|
+
readonly expires_at: Schema.optional<Schema.String>;
|
|
14
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["rsa", "ecdsa"]>>;
|
|
15
|
+
}>>>;
|
|
16
|
+
readonly issuer: Schema.optional<Schema.String>;
|
|
17
|
+
readonly source: Schema.optional<Schema.Literals<readonly ["custom", "fly"]>>;
|
|
18
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["active", "pending_ownership", "pending_validation"]>>;
|
|
19
|
+
}>>>;
|
|
20
|
+
readonly configured: Schema.optional<Schema.Boolean>;
|
|
21
|
+
readonly dns_provider: Schema.optional<Schema.String>;
|
|
22
|
+
readonly dns_requirements: Schema.optional<Schema.Struct<{
|
|
23
|
+
readonly a: Schema.optional<Schema.$Array<Schema.String>>;
|
|
24
|
+
readonly aaaa: Schema.optional<Schema.$Array<Schema.String>>;
|
|
25
|
+
readonly acme_challenge: Schema.optional<Schema.Struct<{
|
|
26
|
+
readonly name: Schema.optional<Schema.String>;
|
|
27
|
+
readonly target: Schema.optional<Schema.String>;
|
|
28
|
+
}>>;
|
|
29
|
+
readonly cname: Schema.optional<Schema.String>;
|
|
30
|
+
readonly ownership: Schema.optional<Schema.Struct<{
|
|
31
|
+
readonly app_value: Schema.optional<Schema.String>;
|
|
32
|
+
readonly name: Schema.optional<Schema.String>;
|
|
33
|
+
readonly org_value: Schema.optional<Schema.String>;
|
|
34
|
+
}>>;
|
|
35
|
+
}>>;
|
|
36
|
+
readonly hostname: Schema.optional<Schema.String>;
|
|
37
|
+
readonly rate_limited_until: Schema.optional<Schema.String>;
|
|
38
|
+
readonly status: Schema.optional<Schema.String>;
|
|
39
|
+
readonly validation: Schema.optional<Schema.Struct<{
|
|
40
|
+
readonly alpn_configured: Schema.optional<Schema.Boolean>;
|
|
41
|
+
readonly dns_configured: Schema.optional<Schema.Boolean>;
|
|
42
|
+
readonly http_configured: Schema.optional<Schema.Boolean>;
|
|
43
|
+
readonly ownership_txt_configured: Schema.optional<Schema.Boolean>;
|
|
44
|
+
}>>;
|
|
45
|
+
readonly validation_errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
46
|
+
readonly code: Schema.optional<Schema.String>;
|
|
47
|
+
readonly message: Schema.optional<Schema.String>;
|
|
48
|
+
readonly remediation: Schema.optional<Schema.String>;
|
|
49
|
+
readonly timestamp: Schema.optional<Schema.String>;
|
|
50
|
+
}>>>;
|
|
51
|
+
}>;
|
|
52
|
+
export type App_CertificatesAcmeCreateOutput = typeof App_CertificatesAcmeCreateOutput.Type;
|
|
53
|
+
/**
|
|
54
|
+
* Request ACME certificate
|
|
55
|
+
*/
|
|
56
|
+
export declare const App_CertificatesAcmeCreate: any;
|
|
57
|
+
//# sourceMappingURL=App_CertificatesAcmeCreate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App_CertificatesAcmeCreate.d.ts","sourceRoot":"","sources":["../../src/operations/App_CertificatesAcmeCreate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,+BAA+B;;EAKzC,CAAC;AACJ,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEzC,CAAC;AACL,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C;;GAEG;AACH,eAAO,MAAM,0BAA0B,KAKtC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const App_CertificatesAcmeCreateInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7
|
+
hostname: Schema.optional(Schema.String),
|
|
8
|
+
}).pipe(T.Http({ method: "POST", path: "/apps/{app_name}/certificates/acme" }));
|
|
9
|
+
// Output Schema
|
|
10
|
+
export const App_CertificatesAcmeCreateOutput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
13
|
+
certificates: Schema.optional(Schema.Array(Schema.Struct({
|
|
14
|
+
created_at: Schema.optional(Schema.String),
|
|
15
|
+
expires_at: Schema.optional(Schema.String),
|
|
16
|
+
issued: Schema.optional(Schema.Array(Schema.Struct({
|
|
17
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
18
|
+
expires_at: Schema.optional(Schema.String),
|
|
19
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
20
|
+
}))),
|
|
21
|
+
issuer: Schema.optional(Schema.String),
|
|
22
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
23
|
+
status: Schema.optional(Schema.Literals([
|
|
24
|
+
"active",
|
|
25
|
+
"pending_ownership",
|
|
26
|
+
"pending_validation",
|
|
27
|
+
])),
|
|
28
|
+
}))),
|
|
29
|
+
configured: Schema.optional(Schema.Boolean),
|
|
30
|
+
dns_provider: Schema.optional(Schema.String),
|
|
31
|
+
dns_requirements: Schema.optional(Schema.Struct({
|
|
32
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
33
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
34
|
+
acme_challenge: Schema.optional(Schema.Struct({
|
|
35
|
+
name: Schema.optional(Schema.String),
|
|
36
|
+
target: Schema.optional(Schema.String),
|
|
37
|
+
})),
|
|
38
|
+
cname: Schema.optional(Schema.String),
|
|
39
|
+
ownership: Schema.optional(Schema.Struct({
|
|
40
|
+
app_value: Schema.optional(Schema.String),
|
|
41
|
+
name: Schema.optional(Schema.String),
|
|
42
|
+
org_value: Schema.optional(Schema.String),
|
|
43
|
+
})),
|
|
44
|
+
})),
|
|
45
|
+
hostname: Schema.optional(Schema.String),
|
|
46
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
47
|
+
status: Schema.optional(Schema.String),
|
|
48
|
+
validation: Schema.optional(Schema.Struct({
|
|
49
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
50
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
51
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
52
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
53
|
+
})),
|
|
54
|
+
validation_errors: Schema.optional(Schema.Array(Schema.Struct({
|
|
55
|
+
code: Schema.optional(Schema.String),
|
|
56
|
+
message: Schema.optional(Schema.String),
|
|
57
|
+
remediation: Schema.optional(Schema.String),
|
|
58
|
+
timestamp: Schema.optional(Schema.String),
|
|
59
|
+
}))),
|
|
60
|
+
});
|
|
61
|
+
// The operation
|
|
62
|
+
/**
|
|
63
|
+
* Request ACME certificate
|
|
64
|
+
*/
|
|
65
|
+
export const App_CertificatesAcmeCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
66
|
+
inputSchema: App_CertificatesAcmeCreateInput,
|
|
67
|
+
outputSchema: App_CertificatesAcmeCreateOutput,
|
|
68
|
+
}));
|
|
69
|
+
//# sourceMappingURL=App_CertificatesAcmeCreate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App_CertificatesAcmeCreate.js","sourceRoot":"","sources":["../../src/operations/App_CertificatesAcmeCreate.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
export declare const App_CertificatesAcmeDeleteInput: Schema.Struct<{}>;
|
|
3
|
+
export type App_CertificatesAcmeDeleteInput = typeof App_CertificatesAcmeDeleteInput.Type;
|
|
4
|
+
export declare const App_CertificatesAcmeDeleteOutput: Schema.Struct<{
|
|
5
|
+
readonly acme_requested: Schema.optional<Schema.Boolean>;
|
|
6
|
+
readonly certificates: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
7
|
+
readonly created_at: Schema.optional<Schema.String>;
|
|
8
|
+
readonly expires_at: Schema.optional<Schema.String>;
|
|
9
|
+
readonly issued: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
10
|
+
readonly certificate_authority: Schema.optional<Schema.String>;
|
|
11
|
+
readonly expires_at: Schema.optional<Schema.String>;
|
|
12
|
+
readonly type: Schema.optional<Schema.Literals<readonly ["rsa", "ecdsa"]>>;
|
|
13
|
+
}>>>;
|
|
14
|
+
readonly issuer: Schema.optional<Schema.String>;
|
|
15
|
+
readonly source: Schema.optional<Schema.Literals<readonly ["custom", "fly"]>>;
|
|
16
|
+
readonly status: Schema.optional<Schema.Literals<readonly ["active", "pending_ownership", "pending_validation"]>>;
|
|
17
|
+
}>>>;
|
|
18
|
+
readonly configured: Schema.optional<Schema.Boolean>;
|
|
19
|
+
readonly dns_provider: Schema.optional<Schema.String>;
|
|
20
|
+
readonly dns_requirements: Schema.optional<Schema.Struct<{
|
|
21
|
+
readonly a: Schema.optional<Schema.$Array<Schema.String>>;
|
|
22
|
+
readonly aaaa: Schema.optional<Schema.$Array<Schema.String>>;
|
|
23
|
+
readonly acme_challenge: Schema.optional<Schema.Struct<{
|
|
24
|
+
readonly name: Schema.optional<Schema.String>;
|
|
25
|
+
readonly target: Schema.optional<Schema.String>;
|
|
26
|
+
}>>;
|
|
27
|
+
readonly cname: Schema.optional<Schema.String>;
|
|
28
|
+
readonly ownership: Schema.optional<Schema.Struct<{
|
|
29
|
+
readonly app_value: Schema.optional<Schema.String>;
|
|
30
|
+
readonly name: Schema.optional<Schema.String>;
|
|
31
|
+
readonly org_value: Schema.optional<Schema.String>;
|
|
32
|
+
}>>;
|
|
33
|
+
}>>;
|
|
34
|
+
readonly hostname: Schema.optional<Schema.String>;
|
|
35
|
+
readonly rate_limited_until: Schema.optional<Schema.String>;
|
|
36
|
+
readonly status: Schema.optional<Schema.String>;
|
|
37
|
+
readonly validation: Schema.optional<Schema.Struct<{
|
|
38
|
+
readonly alpn_configured: Schema.optional<Schema.Boolean>;
|
|
39
|
+
readonly dns_configured: Schema.optional<Schema.Boolean>;
|
|
40
|
+
readonly http_configured: Schema.optional<Schema.Boolean>;
|
|
41
|
+
readonly ownership_txt_configured: Schema.optional<Schema.Boolean>;
|
|
42
|
+
}>>;
|
|
43
|
+
readonly validation_errors: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
44
|
+
readonly code: Schema.optional<Schema.String>;
|
|
45
|
+
readonly message: Schema.optional<Schema.String>;
|
|
46
|
+
readonly remediation: Schema.optional<Schema.String>;
|
|
47
|
+
readonly timestamp: Schema.optional<Schema.String>;
|
|
48
|
+
}>>>;
|
|
49
|
+
}>;
|
|
50
|
+
export type App_CertificatesAcmeDeleteOutput = typeof App_CertificatesAcmeDeleteOutput.Type;
|
|
51
|
+
/**
|
|
52
|
+
* Remove ACME certificates
|
|
53
|
+
*/
|
|
54
|
+
export declare const App_CertificatesAcmeDelete: any;
|
|
55
|
+
//# sourceMappingURL=App_CertificatesAcmeDelete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App_CertificatesAcmeDelete.d.ts","sourceRoot":"","sources":["../../src/operations/App_CertificatesAcmeDelete.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,eAAO,MAAM,+BAA+B,mBAMzC,CAAC;AACJ,MAAM,MAAM,+BAA+B,GACzC,OAAO,+BAA+B,CAAC,IAAI,CAAC;AAG9C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwEzC,CAAC;AACL,MAAM,MAAM,gCAAgC,GAC1C,OAAO,gCAAgC,CAAC,IAAI,CAAC;AAG/C;;GAEG;AACH,eAAO,MAAM,0BAA0B,KAKtC,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client";
|
|
3
|
+
import * as T from "../traits";
|
|
4
|
+
// Input Schema
|
|
5
|
+
export const App_CertificatesAcmeDeleteInput =
|
|
6
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
|
|
7
|
+
method: "DELETE",
|
|
8
|
+
path: "/apps/{app_name}/certificates/{hostname}/acme",
|
|
9
|
+
}));
|
|
10
|
+
// Output Schema
|
|
11
|
+
export const App_CertificatesAcmeDeleteOutput =
|
|
12
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13
|
+
acme_requested: Schema.optional(Schema.Boolean),
|
|
14
|
+
certificates: Schema.optional(Schema.Array(Schema.Struct({
|
|
15
|
+
created_at: Schema.optional(Schema.String),
|
|
16
|
+
expires_at: Schema.optional(Schema.String),
|
|
17
|
+
issued: Schema.optional(Schema.Array(Schema.Struct({
|
|
18
|
+
certificate_authority: Schema.optional(Schema.String),
|
|
19
|
+
expires_at: Schema.optional(Schema.String),
|
|
20
|
+
type: Schema.optional(Schema.Literals(["rsa", "ecdsa"])),
|
|
21
|
+
}))),
|
|
22
|
+
issuer: Schema.optional(Schema.String),
|
|
23
|
+
source: Schema.optional(Schema.Literals(["custom", "fly"])),
|
|
24
|
+
status: Schema.optional(Schema.Literals([
|
|
25
|
+
"active",
|
|
26
|
+
"pending_ownership",
|
|
27
|
+
"pending_validation",
|
|
28
|
+
])),
|
|
29
|
+
}))),
|
|
30
|
+
configured: Schema.optional(Schema.Boolean),
|
|
31
|
+
dns_provider: Schema.optional(Schema.String),
|
|
32
|
+
dns_requirements: Schema.optional(Schema.Struct({
|
|
33
|
+
a: Schema.optional(Schema.Array(Schema.String)),
|
|
34
|
+
aaaa: Schema.optional(Schema.Array(Schema.String)),
|
|
35
|
+
acme_challenge: Schema.optional(Schema.Struct({
|
|
36
|
+
name: Schema.optional(Schema.String),
|
|
37
|
+
target: Schema.optional(Schema.String),
|
|
38
|
+
})),
|
|
39
|
+
cname: Schema.optional(Schema.String),
|
|
40
|
+
ownership: Schema.optional(Schema.Struct({
|
|
41
|
+
app_value: Schema.optional(Schema.String),
|
|
42
|
+
name: Schema.optional(Schema.String),
|
|
43
|
+
org_value: Schema.optional(Schema.String),
|
|
44
|
+
})),
|
|
45
|
+
})),
|
|
46
|
+
hostname: Schema.optional(Schema.String),
|
|
47
|
+
rate_limited_until: Schema.optional(Schema.String),
|
|
48
|
+
status: Schema.optional(Schema.String),
|
|
49
|
+
validation: Schema.optional(Schema.Struct({
|
|
50
|
+
alpn_configured: Schema.optional(Schema.Boolean),
|
|
51
|
+
dns_configured: Schema.optional(Schema.Boolean),
|
|
52
|
+
http_configured: Schema.optional(Schema.Boolean),
|
|
53
|
+
ownership_txt_configured: Schema.optional(Schema.Boolean),
|
|
54
|
+
})),
|
|
55
|
+
validation_errors: Schema.optional(Schema.Array(Schema.Struct({
|
|
56
|
+
code: Schema.optional(Schema.String),
|
|
57
|
+
message: Schema.optional(Schema.String),
|
|
58
|
+
remediation: Schema.optional(Schema.String),
|
|
59
|
+
timestamp: Schema.optional(Schema.String),
|
|
60
|
+
}))),
|
|
61
|
+
});
|
|
62
|
+
// The operation
|
|
63
|
+
/**
|
|
64
|
+
* Remove ACME certificates
|
|
65
|
+
*/
|
|
66
|
+
export const App_CertificatesAcmeDelete = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
67
|
+
inputSchema: App_CertificatesAcmeDeleteInput,
|
|
68
|
+
outputSchema: App_CertificatesAcmeDeleteOutput,
|
|
69
|
+
}));
|
|
70
|
+
//# sourceMappingURL=App_CertificatesAcmeDelete.js.map
|