@distilled.cloud/fly-io 0.30.3 → 1.0.0-rc.1
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/credentials.d.ts.map +1 -1
- package/lib/credentials.js +8 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +22 -4
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +11 -5
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +7 -10
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -10
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +41 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/machines.d.ts +2236 -0
- package/lib/services/machines.d.ts.map +1 -0
- package/lib/services/machines.js +2461 -0
- package/lib/services/machines.js.map +1 -0
- package/lib/traits.d.ts +8 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +8 -2
- package/lib/traits.js.map +1 -1
- package/package.json +31 -37
- package/src/credentials.ts +8 -0
- package/src/errors.ts +24 -6
- package/src/index.ts +11 -10
- package/src/protocol.ts +61 -0
- package/src/retry.ts +4 -4
- package/src/services/index.ts +2 -0
- package/src/services/machines.ts +5962 -0
- package/src/traits.ts +42 -2
- package/README.md +0 -69
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -11
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js +0 -56
- package/lib/client.js.map +0 -1
- package/lib/operations/AppCertificatesAcmeCreate.d.ts +0 -61
- package/lib/operations/AppCertificatesAcmeCreate.d.ts.map +0 -1
- package/lib/operations/AppCertificatesAcmeCreate.js +0 -72
- package/lib/operations/AppCertificatesAcmeCreate.js.map +0 -1
- package/lib/operations/AppCertificatesAcmeDelete.d.ts +0 -62
- package/lib/operations/AppCertificatesAcmeDelete.d.ts.map +0 -1
- package/lib/operations/AppCertificatesAcmeDelete.js +0 -76
- package/lib/operations/AppCertificatesAcmeDelete.js.map +0 -1
- package/lib/operations/AppCertificatesCheck.d.ts +0 -71
- package/lib/operations/AppCertificatesCheck.d.ts.map +0 -1
- package/lib/operations/AppCertificatesCheck.js +0 -85
- package/lib/operations/AppCertificatesCheck.js.map +0 -1
- package/lib/operations/AppCertificatesCustomCreate.d.ts +0 -64
- package/lib/operations/AppCertificatesCustomCreate.d.ts.map +0 -1
- package/lib/operations/AppCertificatesCustomCreate.js +0 -76
- package/lib/operations/AppCertificatesCustomCreate.js.map +0 -1
- package/lib/operations/AppCertificatesCustomDelete.d.ts +0 -63
- package/lib/operations/AppCertificatesCustomDelete.d.ts.map +0 -1
- package/lib/operations/AppCertificatesCustomDelete.js +0 -77
- package/lib/operations/AppCertificatesCustomDelete.js.map +0 -1
- package/lib/operations/AppCertificatesDelete.d.ts +0 -17
- package/lib/operations/AppCertificatesDelete.d.ts.map +0 -1
- package/lib/operations/AppCertificatesDelete.js +0 -27
- package/lib/operations/AppCertificatesDelete.js.map +0 -1
- package/lib/operations/AppCertificatesList.d.ts +0 -39
- package/lib/operations/AppCertificatesList.d.ts.map +0 -1
- package/lib/operations/AppCertificatesList.js +0 -46
- package/lib/operations/AppCertificatesList.js.map +0 -1
- package/lib/operations/AppCertificatesShow.d.ts +0 -62
- package/lib/operations/AppCertificatesShow.d.ts.map +0 -1
- package/lib/operations/AppCertificatesShow.js +0 -73
- package/lib/operations/AppCertificatesShow.js.map +0 -1
- package/lib/operations/AppCreateDeployToken.d.ts +0 -18
- package/lib/operations/AppCreateDeployToken.d.ts.map +0 -1
- package/lib/operations/AppCreateDeployToken.js +0 -25
- package/lib/operations/AppCreateDeployToken.js.map +0 -1
- package/lib/operations/AppIPAssignmentsCreate.d.ts +0 -26
- package/lib/operations/AppIPAssignmentsCreate.d.ts.map +0 -1
- package/lib/operations/AppIPAssignmentsCreate.js +0 -33
- package/lib/operations/AppIPAssignmentsCreate.js.map +0 -1
- package/lib/operations/AppIPAssignmentsDelete.d.ts +0 -17
- package/lib/operations/AppIPAssignmentsDelete.d.ts.map +0 -1
- package/lib/operations/AppIPAssignmentsDelete.js +0 -24
- package/lib/operations/AppIPAssignmentsDelete.js.map +0 -1
- package/lib/operations/AppIPAssignmentsList.d.ts +0 -23
- package/lib/operations/AppIPAssignmentsList.d.ts.map +0 -1
- package/lib/operations/AppIPAssignmentsList.js +0 -30
- package/lib/operations/AppIPAssignmentsList.js.map +0 -1
- package/lib/operations/App_CertificatesAcmeCreate.d.ts +0 -104
- package/lib/operations/App_CertificatesAcmeCreate.d.ts.map +0 -1
- package/lib/operations/App_CertificatesAcmeCreate.js +0 -69
- package/lib/operations/App_CertificatesAcmeCreate.js.map +0 -1
- package/lib/operations/App_CertificatesAcmeDelete.d.ts +0 -100
- package/lib/operations/App_CertificatesAcmeDelete.d.ts.map +0 -1
- package/lib/operations/App_CertificatesAcmeDelete.js +0 -70
- package/lib/operations/App_CertificatesAcmeDelete.js.map +0 -1
- package/lib/operations/App_CertificatesCheck.d.ts +0 -118
- package/lib/operations/App_CertificatesCheck.d.ts.map +0 -1
- package/lib/operations/App_CertificatesCheck.js +0 -79
- package/lib/operations/App_CertificatesCheck.js.map +0 -1
- package/lib/operations/App_CertificatesCustomCreate.d.ts +0 -108
- package/lib/operations/App_CertificatesCustomCreate.d.ts.map +0 -1
- package/lib/operations/App_CertificatesCustomCreate.js +0 -72
- package/lib/operations/App_CertificatesCustomCreate.js.map +0 -1
- package/lib/operations/App_CertificatesCustomDelete.d.ts +0 -102
- package/lib/operations/App_CertificatesCustomDelete.d.ts.map +0 -1
- package/lib/operations/App_CertificatesCustomDelete.js +0 -72
- package/lib/operations/App_CertificatesCustomDelete.js.map +0 -1
- package/lib/operations/App_CertificatesDelete.d.ts +0 -10
- package/lib/operations/App_CertificatesDelete.d.ts.map +0 -1
- package/lib/operations/App_CertificatesDelete.js +0 -20
- package/lib/operations/App_CertificatesDelete.js.map +0 -1
- package/lib/operations/App_CertificatesList.d.ts +0 -58
- package/lib/operations/App_CertificatesList.d.ts.map +0 -1
- package/lib/operations/App_CertificatesList.js +0 -44
- package/lib/operations/App_CertificatesList.js.map +0 -1
- package/lib/operations/App_CertificatesShow.d.ts +0 -100
- package/lib/operations/App_CertificatesShow.d.ts.map +0 -1
- package/lib/operations/App_CertificatesShow.js +0 -67
- package/lib/operations/App_CertificatesShow.js.map +0 -1
- package/lib/operations/App_IPAssignmentsCreate.d.ts +0 -34
- package/lib/operations/App_IPAssignmentsCreate.d.ts.map +0 -1
- package/lib/operations/App_IPAssignmentsCreate.js +0 -30
- package/lib/operations/App_IPAssignmentsCreate.js.map +0 -1
- package/lib/operations/App_IPAssignmentsDelete.d.ts +0 -10
- package/lib/operations/App_IPAssignmentsDelete.d.ts.map +0 -1
- package/lib/operations/App_IPAssignmentsDelete.js +0 -17
- package/lib/operations/App_IPAssignmentsDelete.js.map +0 -1
- package/lib/operations/App_IPAssignmentsList.d.ts +0 -26
- package/lib/operations/App_IPAssignmentsList.d.ts.map +0 -1
- package/lib/operations/App_IPAssignmentsList.js +0 -26
- package/lib/operations/App_IPAssignmentsList.js.map +0 -1
- package/lib/operations/AppsCreate.d.ts +0 -18
- package/lib/operations/AppsCreate.d.ts.map +0 -1
- package/lib/operations/AppsCreate.js +0 -24
- package/lib/operations/AppsCreate.js.map +0 -1
- package/lib/operations/AppsDelete.d.ts +0 -17
- package/lib/operations/AppsDelete.d.ts.map +0 -1
- package/lib/operations/AppsDelete.js +0 -23
- package/lib/operations/AppsDelete.js.map +0 -1
- package/lib/operations/AppsList.d.ts +0 -35
- package/lib/operations/AppsList.d.ts.map +0 -1
- package/lib/operations/AppsList.js +0 -40
- package/lib/operations/AppsList.js.map +0 -1
- package/lib/operations/AppsShow.d.ts +0 -30
- package/lib/operations/AppsShow.d.ts.map +0 -1
- package/lib/operations/AppsShow.js +0 -35
- package/lib/operations/AppsShow.js.map +0 -1
- package/lib/operations/CurrentTokenShow.d.ts +0 -23
- package/lib/operations/CurrentTokenShow.d.ts.map +0 -1
- package/lib/operations/CurrentTokenShow.js +0 -26
- package/lib/operations/CurrentTokenShow.js.map +0 -1
- package/lib/operations/MachinesCordon.d.ts +0 -19
- package/lib/operations/MachinesCordon.d.ts.map +0 -1
- package/lib/operations/MachinesCordon.js +0 -28
- package/lib/operations/MachinesCordon.js.map +0 -1
- package/lib/operations/MachinesCreate.d.ts +0 -810
- package/lib/operations/MachinesCreate.d.ts.map +0 -1
- package/lib/operations/MachinesCreate.js +0 -917
- package/lib/operations/MachinesCreate.js.map +0 -1
- package/lib/operations/MachinesCreateLease.d.ts +0 -28
- package/lib/operations/MachinesCreateLease.d.ts.map +0 -1
- package/lib/operations/MachinesCreateLease.js +0 -38
- package/lib/operations/MachinesCreateLease.js.map +0 -1
- package/lib/operations/MachinesDelete.d.ts +0 -21
- package/lib/operations/MachinesDelete.d.ts.map +0 -1
- package/lib/operations/MachinesDelete.js +0 -27
- package/lib/operations/MachinesDelete.js.map +0 -1
- package/lib/operations/MachinesDeleteMetadata.d.ts +0 -21
- package/lib/operations/MachinesDeleteMetadata.d.ts.map +0 -1
- package/lib/operations/MachinesDeleteMetadata.js +0 -31
- package/lib/operations/MachinesDeleteMetadata.js.map +0 -1
- package/lib/operations/MachinesExec.d.ts +0 -29
- package/lib/operations/MachinesExec.d.ts.map +0 -1
- package/lib/operations/MachinesExec.js +0 -37
- package/lib/operations/MachinesExec.js.map +0 -1
- package/lib/operations/MachinesGetMemory.d.ts +0 -22
- package/lib/operations/MachinesGetMemory.d.ts.map +0 -1
- package/lib/operations/MachinesGetMemory.js +0 -31
- package/lib/operations/MachinesGetMemory.js.map +0 -1
- package/lib/operations/MachinesGetMetadataKey.d.ts +0 -23
- package/lib/operations/MachinesGetMetadataKey.d.ts.map +0 -1
- package/lib/operations/MachinesGetMetadataKey.js +0 -33
- package/lib/operations/MachinesGetMetadataKey.js.map +0 -1
- package/lib/operations/MachinesList.d.ts +0 -559
- package/lib/operations/MachinesList.d.ts.map +0 -1
- package/lib/operations/MachinesList.js +0 -642
- package/lib/operations/MachinesList.js.map +0 -1
- package/lib/operations/MachinesListEvents.d.ts +0 -28
- package/lib/operations/MachinesListEvents.d.ts.map +0 -1
- package/lib/operations/MachinesListEvents.js +0 -38
- package/lib/operations/MachinesListEvents.js.map +0 -1
- package/lib/operations/MachinesListProcesses.d.ts +0 -35
- package/lib/operations/MachinesListProcesses.d.ts.map +0 -1
- package/lib/operations/MachinesListProcesses.js +0 -45
- package/lib/operations/MachinesListProcesses.js.map +0 -1
- package/lib/operations/MachinesListVersions.d.ts +0 -272
- package/lib/operations/MachinesListVersions.d.ts.map +0 -1
- package/lib/operations/MachinesListVersions.js +0 -321
- package/lib/operations/MachinesListVersions.js.map +0 -1
- package/lib/operations/MachinesOrgList.d.ts +0 -63
- package/lib/operations/MachinesOrgList.d.ts.map +0 -1
- package/lib/operations/MachinesOrgList.js +0 -68
- package/lib/operations/MachinesOrgList.js.map +0 -1
- package/lib/operations/MachinesPatchMetadata.d.ts +0 -23
- package/lib/operations/MachinesPatchMetadata.d.ts.map +0 -1
- package/lib/operations/MachinesPatchMetadata.js +0 -31
- package/lib/operations/MachinesPatchMetadata.js.map +0 -1
- package/lib/operations/MachinesReclaimMemory.d.ts +0 -22
- package/lib/operations/MachinesReclaimMemory.d.ts.map +0 -1
- package/lib/operations/MachinesReclaimMemory.js +0 -32
- package/lib/operations/MachinesReclaimMemory.js.map +0 -1
- package/lib/operations/MachinesReleaseLease.d.ts +0 -20
- package/lib/operations/MachinesReleaseLease.d.ts.map +0 -1
- package/lib/operations/MachinesReleaseLease.js +0 -30
- package/lib/operations/MachinesReleaseLease.js.map +0 -1
- package/lib/operations/MachinesRestart.d.ts +0 -23
- package/lib/operations/MachinesRestart.d.ts.map +0 -1
- package/lib/operations/MachinesRestart.js +0 -40
- package/lib/operations/MachinesRestart.js.map +0 -1
- package/lib/operations/MachinesSetMemoryLimit.d.ts +0 -23
- package/lib/operations/MachinesSetMemoryLimit.d.ts.map +0 -1
- package/lib/operations/MachinesSetMemoryLimit.js +0 -33
- package/lib/operations/MachinesSetMemoryLimit.js.map +0 -1
- package/lib/operations/MachinesShow.d.ts +0 -553
- package/lib/operations/MachinesShow.d.ts.map +0 -1
- package/lib/operations/MachinesShow.js +0 -626
- package/lib/operations/MachinesShow.js.map +0 -1
- package/lib/operations/MachinesShowLease.d.ts +0 -25
- package/lib/operations/MachinesShowLease.d.ts.map +0 -1
- package/lib/operations/MachinesShowLease.js +0 -34
- package/lib/operations/MachinesShowLease.js.map +0 -1
- package/lib/operations/MachinesShowMetadata.d.ts +0 -19
- package/lib/operations/MachinesShowMetadata.d.ts.map +0 -1
- package/lib/operations/MachinesShowMetadata.js +0 -29
- package/lib/operations/MachinesShowMetadata.js.map +0 -1
- package/lib/operations/MachinesSignal.d.ts +0 -20
- package/lib/operations/MachinesSignal.d.ts.map +0 -1
- package/lib/operations/MachinesSignal.js +0 -44
- package/lib/operations/MachinesSignal.js.map +0 -1
- package/lib/operations/MachinesStart.d.ts +0 -19
- package/lib/operations/MachinesStart.d.ts.map +0 -1
- package/lib/operations/MachinesStart.js +0 -28
- package/lib/operations/MachinesStart.js.map +0 -1
- package/lib/operations/MachinesStop.d.ts +0 -21
- package/lib/operations/MachinesStop.d.ts.map +0 -1
- package/lib/operations/MachinesStop.js +0 -38
- package/lib/operations/MachinesStop.js.map +0 -1
- package/lib/operations/MachinesSuspend.d.ts +0 -19
- package/lib/operations/MachinesSuspend.d.ts.map +0 -1
- package/lib/operations/MachinesSuspend.js +0 -28
- package/lib/operations/MachinesSuspend.js.map +0 -1
- package/lib/operations/MachinesUncordon.d.ts +0 -19
- package/lib/operations/MachinesUncordon.d.ts.map +0 -1
- package/lib/operations/MachinesUncordon.js +0 -28
- package/lib/operations/MachinesUncordon.js.map +0 -1
- package/lib/operations/MachinesUpdate.d.ts +0 -812
- package/lib/operations/MachinesUpdate.d.ts.map +0 -1
- package/lib/operations/MachinesUpdate.js +0 -919
- package/lib/operations/MachinesUpdate.js.map +0 -1
- package/lib/operations/MachinesUpdateMetadata.d.ts +0 -23
- package/lib/operations/MachinesUpdateMetadata.d.ts.map +0 -1
- package/lib/operations/MachinesUpdateMetadata.js +0 -33
- package/lib/operations/MachinesUpdateMetadata.js.map +0 -1
- package/lib/operations/MachinesUpsertMetadata.d.ts +0 -23
- package/lib/operations/MachinesUpsertMetadata.d.ts.map +0 -1
- package/lib/operations/MachinesUpsertMetadata.js +0 -33
- package/lib/operations/MachinesUpsertMetadata.js.map +0 -1
- package/lib/operations/MachinesWait.d.ts +0 -35
- package/lib/operations/MachinesWait.d.ts.map +0 -1
- package/lib/operations/MachinesWait.js +0 -50
- package/lib/operations/MachinesWait.js.map +0 -1
- package/lib/operations/PlatformPlacementsPost.d.ts +0 -37
- package/lib/operations/PlatformPlacementsPost.d.ts.map +0 -1
- package/lib/operations/PlatformPlacementsPost.js +0 -44
- package/lib/operations/PlatformPlacementsPost.js.map +0 -1
- package/lib/operations/PlatformRegionsGet.d.ts +0 -26
- package/lib/operations/PlatformRegionsGet.d.ts.map +0 -1
- package/lib/operations/PlatformRegionsGet.js +0 -32
- package/lib/operations/PlatformRegionsGet.js.map +0 -1
- package/lib/operations/SecretCreate.d.ts +0 -26
- package/lib/operations/SecretCreate.d.ts.map +0 -1
- package/lib/operations/SecretCreate.js +0 -31
- package/lib/operations/SecretCreate.js.map +0 -1
- package/lib/operations/SecretDelete.d.ts +0 -20
- package/lib/operations/SecretDelete.d.ts.map +0 -1
- package/lib/operations/SecretDelete.js +0 -25
- package/lib/operations/SecretDelete.js.map +0 -1
- package/lib/operations/SecretGet.d.ts +0 -27
- package/lib/operations/SecretGet.d.ts.map +0 -1
- package/lib/operations/SecretGet.js +0 -32
- package/lib/operations/SecretGet.js.map +0 -1
- package/lib/operations/SecretkeyDecrypt.d.ts +0 -23
- package/lib/operations/SecretkeyDecrypt.d.ts.map +0 -1
- package/lib/operations/SecretkeyDecrypt.js +0 -31
- package/lib/operations/SecretkeyDecrypt.js.map +0 -1
- package/lib/operations/SecretkeyDelete.d.ts +0 -20
- package/lib/operations/SecretkeyDelete.d.ts.map +0 -1
- package/lib/operations/SecretkeyDelete.js +0 -28
- package/lib/operations/SecretkeyDelete.js.map +0 -1
- package/lib/operations/SecretkeyEncrypt.d.ts +0 -23
- package/lib/operations/SecretkeyEncrypt.d.ts.map +0 -1
- package/lib/operations/SecretkeyEncrypt.js +0 -31
- package/lib/operations/SecretkeyEncrypt.js.map +0 -1
- package/lib/operations/SecretkeyGenerate.d.ts +0 -27
- package/lib/operations/SecretkeyGenerate.d.ts.map +0 -1
- package/lib/operations/SecretkeyGenerate.js +0 -36
- package/lib/operations/SecretkeyGenerate.js.map +0 -1
- package/lib/operations/SecretkeyGet.d.ts +0 -25
- package/lib/operations/SecretkeyGet.d.ts.map +0 -1
- package/lib/operations/SecretkeyGet.js +0 -30
- package/lib/operations/SecretkeyGet.js.map +0 -1
- package/lib/operations/SecretkeySet.d.ts +0 -27
- package/lib/operations/SecretkeySet.d.ts.map +0 -1
- package/lib/operations/SecretkeySet.js +0 -32
- package/lib/operations/SecretkeySet.js.map +0 -1
- package/lib/operations/SecretkeySign.d.ts +0 -22
- package/lib/operations/SecretkeySign.d.ts.map +0 -1
- package/lib/operations/SecretkeySign.js +0 -30
- package/lib/operations/SecretkeySign.js.map +0 -1
- package/lib/operations/SecretkeyVerify.d.ts +0 -21
- package/lib/operations/SecretkeyVerify.d.ts.map +0 -1
- package/lib/operations/SecretkeyVerify.js +0 -30
- package/lib/operations/SecretkeyVerify.js.map +0 -1
- package/lib/operations/SecretkeysList.d.ts +0 -27
- package/lib/operations/SecretkeysList.d.ts.map +0 -1
- package/lib/operations/SecretkeysList.js +0 -32
- package/lib/operations/SecretkeysList.js.map +0 -1
- package/lib/operations/SecretsList.d.ts +0 -27
- package/lib/operations/SecretsList.d.ts.map +0 -1
- package/lib/operations/SecretsList.js +0 -32
- package/lib/operations/SecretsList.js.map +0 -1
- package/lib/operations/SecretsUpdate.d.ts +0 -26
- package/lib/operations/SecretsUpdate.d.ts.map +0 -1
- package/lib/operations/SecretsUpdate.js +0 -31
- package/lib/operations/SecretsUpdate.js.map +0 -1
- package/lib/operations/TokensAuthenticate.d.ts +0 -26
- package/lib/operations/TokensAuthenticate.d.ts.map +0 -1
- package/lib/operations/TokensAuthenticate.js +0 -33
- package/lib/operations/TokensAuthenticate.js.map +0 -1
- package/lib/operations/TokensAuthorize.d.ts +0 -59
- package/lib/operations/TokensAuthorize.d.ts.map +0 -1
- package/lib/operations/TokensAuthorize.js +0 -64
- package/lib/operations/TokensAuthorize.js.map +0 -1
- package/lib/operations/TokensRequestKms.d.ts +0 -14
- package/lib/operations/TokensRequestKms.d.ts.map +0 -1
- package/lib/operations/TokensRequestKms.js +0 -19
- package/lib/operations/TokensRequestKms.js.map +0 -1
- package/lib/operations/TokensRequestOIDC.d.ts +0 -16
- package/lib/operations/TokensRequestOIDC.d.ts.map +0 -1
- package/lib/operations/TokensRequestOIDC.js +0 -22
- package/lib/operations/TokensRequestOIDC.js.map +0 -1
- package/lib/operations/TokensRequest_Kms.d.ts +0 -12
- package/lib/operations/TokensRequest_Kms.d.ts.map +0 -1
- package/lib/operations/TokensRequest_Kms.js +0 -18
- package/lib/operations/TokensRequest_Kms.js.map +0 -1
- package/lib/operations/TokensRequest_OIDC.d.ts +0 -18
- package/lib/operations/TokensRequest_OIDC.d.ts.map +0 -1
- package/lib/operations/TokensRequest_OIDC.js +0 -22
- package/lib/operations/TokensRequest_OIDC.js.map +0 -1
- package/lib/operations/VolumeDelete.d.ts +0 -41
- package/lib/operations/VolumeDelete.d.ts.map +0 -1
- package/lib/operations/VolumeDelete.js +0 -46
- package/lib/operations/VolumeDelete.js.map +0 -1
- package/lib/operations/VolumesCreate.d.ts +0 -62
- package/lib/operations/VolumesCreate.d.ts.map +0 -1
- package/lib/operations/VolumesCreate.js +0 -67
- package/lib/operations/VolumesCreate.js.map +0 -1
- package/lib/operations/VolumesExtend.d.ts +0 -45
- package/lib/operations/VolumesExtend.d.ts.map +0 -1
- package/lib/operations/VolumesExtend.js +0 -53
- package/lib/operations/VolumesExtend.js.map +0 -1
- package/lib/operations/VolumesGetById.d.ts +0 -41
- package/lib/operations/VolumesGetById.d.ts.map +0 -1
- package/lib/operations/VolumesGetById.js +0 -46
- package/lib/operations/VolumesGetById.js.map +0 -1
- package/lib/operations/VolumesList.d.ts +0 -41
- package/lib/operations/VolumesList.d.ts.map +0 -1
- package/lib/operations/VolumesList.js +0 -46
- package/lib/operations/VolumesList.js.map +0 -1
- package/lib/operations/VolumesListSnapshots.d.ts +0 -27
- package/lib/operations/VolumesListSnapshots.d.ts.map +0 -1
- package/lib/operations/VolumesListSnapshots.js +0 -37
- package/lib/operations/VolumesListSnapshots.js.map +0 -1
- package/lib/operations/VolumesOrgList.d.ts +0 -59
- package/lib/operations/VolumesOrgList.d.ts.map +0 -1
- package/lib/operations/VolumesOrgList.js +0 -63
- package/lib/operations/VolumesOrgList.js.map +0 -1
- package/lib/operations/VolumesUpdate.d.ts +0 -43
- package/lib/operations/VolumesUpdate.d.ts.map +0 -1
- package/lib/operations/VolumesUpdate.js +0 -48
- package/lib/operations/VolumesUpdate.js.map +0 -1
- package/lib/operations/createVolumeSnapshot.d.ts +0 -19
- package/lib/operations/createVolumeSnapshot.d.ts.map +0 -1
- package/lib/operations/createVolumeSnapshot.js +0 -29
- package/lib/operations/createVolumeSnapshot.js.map +0 -1
- package/lib/operations/index.d.ts +0 -77
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -77
- package/lib/operations/index.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/client.ts +0 -71
- package/src/operations/AppCertificatesAcmeCreate.ts +0 -148
- package/src/operations/AppCertificatesAcmeDelete.ts +0 -147
- package/src/operations/AppCertificatesCheck.ts +0 -167
- package/src/operations/AppCertificatesCustomCreate.ts +0 -154
- package/src/operations/AppCertificatesCustomDelete.ts +0 -149
- package/src/operations/AppCertificatesDelete.ts +0 -38
- package/src/operations/AppCertificatesList.ts +0 -81
- package/src/operations/AppCertificatesShow.ts +0 -144
- package/src/operations/AppCreateDeployToken.ts +0 -38
- package/src/operations/AppIPAssignmentsCreate.ts +0 -54
- package/src/operations/AppIPAssignmentsDelete.ts +0 -35
- package/src/operations/AppIPAssignmentsList.ts +0 -52
- package/src/operations/App_CertificatesAcmeCreate.ts +0 -99
- package/src/operations/App_CertificatesAcmeDelete.ts +0 -100
- package/src/operations/App_CertificatesCheck.ts +0 -110
- package/src/operations/App_CertificatesCustomCreate.ts +0 -102
- package/src/operations/App_CertificatesCustomDelete.ts +0 -102
- package/src/operations/App_CertificatesDelete.ts +0 -28
- package/src/operations/App_CertificatesList.ts +0 -52
- package/src/operations/App_CertificatesShow.ts +0 -95
- package/src/operations/App_IPAssignmentsCreate.ts +0 -36
- package/src/operations/App_IPAssignmentsDelete.ts +0 -25
- package/src/operations/App_IPAssignmentsList.ts +0 -37
- package/src/operations/AppsCreate.ts +0 -37
- package/src/operations/AppsDelete.ts +0 -33
- package/src/operations/AppsList.ts +0 -73
- package/src/operations/AppsShow.ts +0 -56
- package/src/operations/CurrentTokenShow.ts +0 -48
- package/src/operations/MachinesCordon.ts +0 -39
- package/src/operations/MachinesCreate.ts +0 -2166
- package/src/operations/MachinesCreateLease.ts +0 -57
- package/src/operations/MachinesDelete.ts +0 -39
- package/src/operations/MachinesDeleteMetadata.ts +0 -43
- package/src/operations/MachinesExec.ts +0 -58
- package/src/operations/MachinesGetMemory.ts +0 -45
- package/src/operations/MachinesGetMetadataKey.ts +0 -47
- package/src/operations/MachinesList.ts +0 -1494
- package/src/operations/MachinesListEvents.ts +0 -59
- package/src/operations/MachinesListProcesses.ts +0 -73
- package/src/operations/MachinesListVersions.ts +0 -742
- package/src/operations/MachinesOrgList.ts +0 -128
- package/src/operations/MachinesPatchMetadata.ts +0 -38
- package/src/operations/MachinesReclaimMemory.ts +0 -46
- package/src/operations/MachinesReleaseLease.ts +0 -41
- package/src/operations/MachinesRestart.ts +0 -62
- package/src/operations/MachinesSetMemoryLimit.ts +0 -48
- package/src/operations/MachinesShow.ts +0 -1473
- package/src/operations/MachinesShowLease.ts +0 -51
- package/src/operations/MachinesShowMetadata.ts +0 -43
- package/src/operations/MachinesSignal.ts +0 -72
- package/src/operations/MachinesStart.ts +0 -39
- package/src/operations/MachinesStop.ts +0 -60
- package/src/operations/MachinesSuspend.ts +0 -39
- package/src/operations/MachinesUncordon.ts +0 -39
- package/src/operations/MachinesUpdate.ts +0 -2170
- package/src/operations/MachinesUpdateMetadata.ts +0 -47
- package/src/operations/MachinesUpsertMetadata.ts +0 -47
- package/src/operations/MachinesWait.ts +0 -79
- package/src/operations/PlatformPlacementsPost.ts +0 -80
- package/src/operations/PlatformRegionsGet.ts +0 -56
- package/src/operations/SecretCreate.ts +0 -51
- package/src/operations/SecretDelete.ts +0 -39
- package/src/operations/SecretGet.ts +0 -51
- package/src/operations/SecretkeyDecrypt.ts +0 -47
- package/src/operations/SecretkeyDelete.ts +0 -42
- package/src/operations/SecretkeyEncrypt.ts +0 -47
- package/src/operations/SecretkeyGenerate.ts +0 -57
- package/src/operations/SecretkeyGet.ts +0 -48
- package/src/operations/SecretkeySet.ts +0 -53
- package/src/operations/SecretkeySign.ts +0 -45
- package/src/operations/SecretkeyVerify.ts +0 -44
- package/src/operations/SecretkeysList.ts +0 -56
- package/src/operations/SecretsList.ts +0 -56
- package/src/operations/SecretsUpdate.ts +0 -56
- package/src/operations/TokensAuthenticate.ts +0 -54
- package/src/operations/TokensAuthorize.ts +0 -122
- package/src/operations/TokensRequestKms.ts +0 -27
- package/src/operations/TokensRequestOIDC.ts +0 -33
- package/src/operations/TokensRequest_Kms.ts +0 -24
- package/src/operations/TokensRequest_OIDC.ts +0 -26
- package/src/operations/VolumeDelete.ts +0 -81
- package/src/operations/VolumesCreate.ts +0 -128
- package/src/operations/VolumesExtend.ts +0 -94
- package/src/operations/VolumesGetById.ts +0 -81
- package/src/operations/VolumesList.ts +0 -83
- package/src/operations/VolumesListSnapshots.ts +0 -58
- package/src/operations/VolumesOrgList.ts +0 -115
- package/src/operations/VolumesUpdate.ts +0 -85
- package/src/operations/createVolumeSnapshot.ts +0 -40
- package/src/operations/index.ts +0 -76
- package/src/sensitive.ts +0 -4
|
@@ -0,0 +1,2461 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.js";
|
|
5
|
+
import { FlyIoProtocol, } from "../protocol.js";
|
|
6
|
+
import { BadRequest, Forbidden, NotFound, UnprocessableEntity, } from "../errors.js";
|
|
7
|
+
import * as Retry from "../retry.js";
|
|
8
|
+
export const AppCertificatesAcmeCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
9
|
+
app_name: S.String.pipe(T.Label()),
|
|
10
|
+
hostname: S.optional(S.String),
|
|
11
|
+
}).pipe(T.Http({
|
|
12
|
+
method: "POST",
|
|
13
|
+
uri: "/apps/{app_name}/certificates/acme",
|
|
14
|
+
code: 200,
|
|
15
|
+
}))).annotate({
|
|
16
|
+
identifier: "AppCertificatesAcmeCreateRequest",
|
|
17
|
+
});
|
|
18
|
+
export const IssuedCertificateType = /*@__PURE__*/ S.String;
|
|
19
|
+
export const IssuedCertificate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
20
|
+
certificate_authority: S.optional(S.String),
|
|
21
|
+
expires_at: S.optional(S.String),
|
|
22
|
+
type: S.optional(IssuedCertificateType),
|
|
23
|
+
})).annotate({
|
|
24
|
+
identifier: "IssuedCertificate",
|
|
25
|
+
});
|
|
26
|
+
export const CertificateEntryIssuedList = /*@__PURE__*/ S.Array(IssuedCertificate);
|
|
27
|
+
export const CertificateEntrySource = /*@__PURE__*/ S.String;
|
|
28
|
+
export const CertificateEntryStatus = /*@__PURE__*/ S.String;
|
|
29
|
+
export const CertificateEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
30
|
+
created_at: S.optional(S.String),
|
|
31
|
+
expires_at: S.optional(S.String),
|
|
32
|
+
issued: S.optional(CertificateEntryIssuedList),
|
|
33
|
+
issuer: S.optional(S.String),
|
|
34
|
+
source: S.optional(CertificateEntrySource),
|
|
35
|
+
status: S.optional(CertificateEntryStatus),
|
|
36
|
+
})).annotate({
|
|
37
|
+
identifier: "CertificateEntry",
|
|
38
|
+
});
|
|
39
|
+
export const CertificateDetailCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
40
|
+
export const DNSRequirementsAList = /*@__PURE__*/ S.Array(S.String);
|
|
41
|
+
export const DNSRequirementsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
42
|
+
export const AcmeChallenge = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
43
|
+
name: S.optional(S.String),
|
|
44
|
+
target: S.optional(S.String),
|
|
45
|
+
})).annotate({ identifier: "AcmeChallenge" });
|
|
46
|
+
export const OwnershipVerification = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
+
app_value: S.optional(S.String),
|
|
48
|
+
name: S.optional(S.String),
|
|
49
|
+
org_value: S.optional(S.String),
|
|
50
|
+
})).annotate({
|
|
51
|
+
identifier: "OwnershipVerification",
|
|
52
|
+
});
|
|
53
|
+
export const DNSRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
54
|
+
a: S.optional(DNSRequirementsAList),
|
|
55
|
+
aaaa: S.optional(DNSRequirementsAaaaList),
|
|
56
|
+
acme_challenge: S.optional(AcmeChallenge),
|
|
57
|
+
cname: S.optional(S.String),
|
|
58
|
+
ownership: S.optional(OwnershipVerification),
|
|
59
|
+
})).annotate({
|
|
60
|
+
identifier: "DNSRequirements",
|
|
61
|
+
});
|
|
62
|
+
export const CertificateValidation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
63
|
+
alpn_configured: S.optional(S.Boolean),
|
|
64
|
+
dns_configured: S.optional(S.Boolean),
|
|
65
|
+
http_configured: S.optional(S.Boolean),
|
|
66
|
+
ownership_txt_configured: S.optional(S.Boolean),
|
|
67
|
+
})).annotate({
|
|
68
|
+
identifier: "CertificateValidation",
|
|
69
|
+
});
|
|
70
|
+
export const CertificateValidationError = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
71
|
+
code: S.optional(S.String),
|
|
72
|
+
message: S.optional(S.String),
|
|
73
|
+
remediation: S.optional(S.String),
|
|
74
|
+
timestamp: S.optional(S.String),
|
|
75
|
+
})).annotate({
|
|
76
|
+
identifier: "CertificateValidationError",
|
|
77
|
+
});
|
|
78
|
+
export const CertificateDetailValidationErrorsList = /*@__PURE__*/ S.Array(CertificateValidationError);
|
|
79
|
+
export const CertificateDetail = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
|
+
acme_requested: S.optional(S.Boolean),
|
|
81
|
+
certificates: S.optional(CertificateDetailCertificatesList),
|
|
82
|
+
configured: S.optional(S.Boolean),
|
|
83
|
+
dns_provider: S.optional(S.String),
|
|
84
|
+
dns_requirements: S.optional(DNSRequirements),
|
|
85
|
+
hostname: S.optional(S.String),
|
|
86
|
+
rate_limited_until: S.optional(S.String),
|
|
87
|
+
status: S.optional(S.String),
|
|
88
|
+
validation: S.optional(CertificateValidation),
|
|
89
|
+
validation_errors: S.optional(CertificateDetailValidationErrorsList),
|
|
90
|
+
})).annotate({
|
|
91
|
+
identifier: "CertificateDetail",
|
|
92
|
+
});
|
|
93
|
+
export const AppCertificatesAcmeDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
94
|
+
app_name: S.String.pipe(T.Label()),
|
|
95
|
+
hostname: S.String.pipe(T.Label()),
|
|
96
|
+
}).pipe(T.Http({
|
|
97
|
+
method: "DELETE",
|
|
98
|
+
uri: "/apps/{app_name}/certificates/{hostname}/acme",
|
|
99
|
+
code: 200,
|
|
100
|
+
}))).annotate({
|
|
101
|
+
identifier: "AppCertificatesAcmeDeleteRequest",
|
|
102
|
+
});
|
|
103
|
+
export const AppCertificatesCheckRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
104
|
+
app_name: S.String.pipe(T.Label()),
|
|
105
|
+
hostname: S.String.pipe(T.Label()),
|
|
106
|
+
}).pipe(T.Http({
|
|
107
|
+
method: "POST",
|
|
108
|
+
uri: "/apps/{app_name}/certificates/{hostname}/check",
|
|
109
|
+
code: 200,
|
|
110
|
+
}))).annotate({
|
|
111
|
+
identifier: "AppCertificatesCheckRequest",
|
|
112
|
+
});
|
|
113
|
+
export const CertificateCheckResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateEntry);
|
|
114
|
+
export const DNSRecordsAList = /*@__PURE__*/ S.Array(S.String);
|
|
115
|
+
export const DNSRecordsAaaaList = /*@__PURE__*/ S.Array(S.String);
|
|
116
|
+
export const DNSRecordsCnameList = /*@__PURE__*/ S.Array(S.String);
|
|
117
|
+
export const DNSRecordsResolvedAddressesList = /*@__PURE__*/ S.Array(S.String);
|
|
118
|
+
export const DNSRecords = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
+
a: S.optional(DNSRecordsAList),
|
|
120
|
+
aaaa: S.optional(DNSRecordsAaaaList),
|
|
121
|
+
acme_challenge_cname: S.optional(S.String),
|
|
122
|
+
cname: S.optional(DNSRecordsCnameList),
|
|
123
|
+
ownership_txt: S.optional(S.String),
|
|
124
|
+
resolved_addresses: S.optional(DNSRecordsResolvedAddressesList),
|
|
125
|
+
soa: S.optional(S.String),
|
|
126
|
+
})).annotate({ identifier: "DNSRecords" });
|
|
127
|
+
export const CertificateCheckResponseValidationErrorsList =
|
|
128
|
+
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
129
|
+
export const CertificateCheckResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
130
|
+
acme_requested: S.optional(S.Boolean),
|
|
131
|
+
certificates: S.optional(CertificateCheckResponseCertificatesList),
|
|
132
|
+
configured: S.optional(S.Boolean),
|
|
133
|
+
dns_provider: S.optional(S.String),
|
|
134
|
+
dns_records: S.optional(DNSRecords),
|
|
135
|
+
dns_requirements: S.optional(DNSRequirements),
|
|
136
|
+
hostname: S.optional(S.String),
|
|
137
|
+
rate_limited_until: S.optional(S.String),
|
|
138
|
+
status: S.optional(S.String),
|
|
139
|
+
validation: S.optional(CertificateValidation),
|
|
140
|
+
validation_errors: S.optional(CertificateCheckResponseValidationErrorsList),
|
|
141
|
+
})).annotate({
|
|
142
|
+
identifier: "CertificateCheckResponse",
|
|
143
|
+
});
|
|
144
|
+
export const AppCertificatesCustomCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
145
|
+
app_name: S.String.pipe(T.Label()),
|
|
146
|
+
fullchain: S.optional(S.String),
|
|
147
|
+
hostname: S.optional(S.String),
|
|
148
|
+
private_key: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
149
|
+
}).pipe(T.Http({
|
|
150
|
+
method: "POST",
|
|
151
|
+
uri: "/apps/{app_name}/certificates/custom",
|
|
152
|
+
code: 200,
|
|
153
|
+
}))).annotate({
|
|
154
|
+
identifier: "AppCertificatesCustomCreateRequest",
|
|
155
|
+
});
|
|
156
|
+
export const AppCertificatesCustomDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
157
|
+
app_name: S.String.pipe(T.Label()),
|
|
158
|
+
hostname: S.String.pipe(T.Label()),
|
|
159
|
+
}).pipe(T.Http({
|
|
160
|
+
method: "DELETE",
|
|
161
|
+
uri: "/apps/{app_name}/certificates/{hostname}/custom",
|
|
162
|
+
code: 200,
|
|
163
|
+
}))).annotate({
|
|
164
|
+
identifier: "AppCertificatesCustomDeleteRequest",
|
|
165
|
+
});
|
|
166
|
+
export const DestroyCustomCertificateResponseCertificatesList =
|
|
167
|
+
/*@__PURE__*/ S.Array(CertificateEntry);
|
|
168
|
+
export const DestroyCustomCertificateResponseValidationErrorsList =
|
|
169
|
+
/*@__PURE__*/ S.Array(CertificateValidationError);
|
|
170
|
+
export const DestroyCustomCertificateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
171
|
+
acme_requested: S.optional(S.Boolean),
|
|
172
|
+
certificates: S.optional(DestroyCustomCertificateResponseCertificatesList),
|
|
173
|
+
configured: S.optional(S.Boolean),
|
|
174
|
+
dns_provider: S.optional(S.String),
|
|
175
|
+
dns_requirements: S.optional(DNSRequirements),
|
|
176
|
+
hostname: S.optional(S.String),
|
|
177
|
+
rate_limited_until: S.optional(S.String),
|
|
178
|
+
status: S.optional(S.String),
|
|
179
|
+
validation: S.optional(CertificateValidation),
|
|
180
|
+
validation_errors: S.optional(DestroyCustomCertificateResponseValidationErrorsList),
|
|
181
|
+
warning: S.optional(S.String),
|
|
182
|
+
})).annotate({
|
|
183
|
+
identifier: "DestroyCustomCertificateResponse",
|
|
184
|
+
});
|
|
185
|
+
export const AppCertificatesDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
|
+
app_name: S.String.pipe(T.Label()),
|
|
187
|
+
hostname: S.String.pipe(T.Label()),
|
|
188
|
+
}).pipe(T.Http({
|
|
189
|
+
method: "DELETE",
|
|
190
|
+
uri: "/apps/{app_name}/certificates/{hostname}",
|
|
191
|
+
code: 200,
|
|
192
|
+
}))).annotate({
|
|
193
|
+
identifier: "AppCertificatesDeleteRequest",
|
|
194
|
+
});
|
|
195
|
+
export const AppCertificatesDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
196
|
+
identifier: "AppCertificatesDeleteResponse",
|
|
197
|
+
});
|
|
198
|
+
export const AppCertificatesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
199
|
+
app_name: S.String.pipe(T.Label()),
|
|
200
|
+
filter: S.optional(S.String.pipe(T.Query())),
|
|
201
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
202
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
203
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/certificates", code: 200 }))).annotate({
|
|
204
|
+
identifier: "AppCertificatesListRequest",
|
|
205
|
+
});
|
|
206
|
+
export const CertificateSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
207
|
+
acme_alpn_configured: S.optional(S.Boolean),
|
|
208
|
+
acme_dns_configured: S.optional(S.Boolean),
|
|
209
|
+
acme_http_configured: S.optional(S.Boolean),
|
|
210
|
+
acme_requested: S.optional(S.Boolean),
|
|
211
|
+
configured: S.optional(S.Boolean),
|
|
212
|
+
created_at: S.optional(S.String),
|
|
213
|
+
dns_provider: S.optional(S.String),
|
|
214
|
+
has_custom_certificate: S.optional(S.Boolean),
|
|
215
|
+
has_fly_certificate: S.optional(S.Boolean),
|
|
216
|
+
hostname: S.optional(S.String),
|
|
217
|
+
ownership_txt_configured: S.optional(S.Boolean),
|
|
218
|
+
status: S.optional(S.String),
|
|
219
|
+
updated_at: S.optional(S.String),
|
|
220
|
+
})).annotate({
|
|
221
|
+
identifier: "CertificateSummary",
|
|
222
|
+
});
|
|
223
|
+
export const ListCertificatesResponseCertificatesList = /*@__PURE__*/ S.Array(CertificateSummary);
|
|
224
|
+
export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
225
|
+
certificates: S.optional(ListCertificatesResponseCertificatesList),
|
|
226
|
+
next_cursor: S.optional(S.String),
|
|
227
|
+
total_count: S.optional(S.Number),
|
|
228
|
+
})).annotate({
|
|
229
|
+
identifier: "ListCertificatesResponse",
|
|
230
|
+
});
|
|
231
|
+
export const AppCertificatesShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
232
|
+
app_name: S.String.pipe(T.Label()),
|
|
233
|
+
hostname: S.String.pipe(T.Label()),
|
|
234
|
+
}).pipe(T.Http({
|
|
235
|
+
method: "GET",
|
|
236
|
+
uri: "/apps/{app_name}/certificates/{hostname}",
|
|
237
|
+
code: 200,
|
|
238
|
+
}))).annotate({
|
|
239
|
+
identifier: "AppCertificatesShowRequest",
|
|
240
|
+
});
|
|
241
|
+
export const AppCreateDeployTokenRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
242
|
+
app_name: S.String.pipe(T.Label()),
|
|
243
|
+
expiry: S.optional(S.String),
|
|
244
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/deploy_token", code: 200 }))).annotate({
|
|
245
|
+
identifier: "AppCreateDeployTokenRequest",
|
|
246
|
+
});
|
|
247
|
+
export const CreateAppResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
+
token: S.optional(S.String),
|
|
249
|
+
})).annotate({
|
|
250
|
+
identifier: "CreateAppResponse",
|
|
251
|
+
});
|
|
252
|
+
export const AppIPAssignmentsCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
+
app_name: S.String.pipe(T.Label()),
|
|
254
|
+
network: S.optional(S.String),
|
|
255
|
+
org_slug: S.optional(S.String),
|
|
256
|
+
region: S.optional(S.String),
|
|
257
|
+
service_name: S.optional(S.String),
|
|
258
|
+
type: S.optional(S.String),
|
|
259
|
+
}).pipe(T.Http({
|
|
260
|
+
method: "POST",
|
|
261
|
+
uri: "/apps/{app_name}/ip_assignments",
|
|
262
|
+
code: 200,
|
|
263
|
+
}))).annotate({
|
|
264
|
+
identifier: "AppIPAssignmentsCreateRequest",
|
|
265
|
+
});
|
|
266
|
+
export const IPAssignment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
267
|
+
created_at: S.optional(S.String),
|
|
268
|
+
ip: S.optional(S.String),
|
|
269
|
+
region: S.optional(S.String),
|
|
270
|
+
service_name: S.optional(S.String),
|
|
271
|
+
shared: S.optional(S.Boolean),
|
|
272
|
+
})).annotate({ identifier: "IPAssignment" });
|
|
273
|
+
export const AppIPAssignmentsDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
274
|
+
app_name: S.String.pipe(T.Label()),
|
|
275
|
+
ip: S.String.pipe(T.Label()),
|
|
276
|
+
}).pipe(T.Http({
|
|
277
|
+
method: "DELETE",
|
|
278
|
+
uri: "/apps/{app_name}/ip_assignments/{ip}",
|
|
279
|
+
code: 200,
|
|
280
|
+
}))).annotate({
|
|
281
|
+
identifier: "AppIPAssignmentsDeleteRequest",
|
|
282
|
+
});
|
|
283
|
+
export const AppIPAssignmentsDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
284
|
+
identifier: "AppIPAssignmentsDeleteResponse",
|
|
285
|
+
});
|
|
286
|
+
export const AppIPAssignmentsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
287
|
+
app_name: S.String.pipe(T.Label()),
|
|
288
|
+
}).pipe(T.Http({
|
|
289
|
+
method: "GET",
|
|
290
|
+
uri: "/apps/{app_name}/ip_assignments",
|
|
291
|
+
code: 200,
|
|
292
|
+
}))).annotate({
|
|
293
|
+
identifier: "AppIPAssignmentsListRequest",
|
|
294
|
+
});
|
|
295
|
+
export const ListIPAssignmentsResponseIpsList = /*@__PURE__*/ S.Array(IPAssignment);
|
|
296
|
+
export const ListIPAssignmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
297
|
+
ips: S.optional(ListIPAssignmentsResponseIpsList),
|
|
298
|
+
})).annotate({
|
|
299
|
+
identifier: "ListIPAssignmentsResponse",
|
|
300
|
+
});
|
|
301
|
+
export const AppsCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
302
|
+
enable_subdomains: S.optional(S.Boolean),
|
|
303
|
+
name: S.optional(S.String),
|
|
304
|
+
network: S.optional(S.String),
|
|
305
|
+
org_slug: S.optional(S.String),
|
|
306
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps", code: 200 }))).annotate({
|
|
307
|
+
identifier: "AppsCreateRequest",
|
|
308
|
+
});
|
|
309
|
+
export const AppsCreateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
310
|
+
identifier: "AppsCreateResponse",
|
|
311
|
+
});
|
|
312
|
+
export const AppsDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
313
|
+
app_name: S.String.pipe(T.Label()),
|
|
314
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/apps/{app_name}", code: 200 }))).annotate({
|
|
315
|
+
identifier: "AppsDeleteRequest",
|
|
316
|
+
});
|
|
317
|
+
export const AppsDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
318
|
+
identifier: "AppsDeleteResponse",
|
|
319
|
+
});
|
|
320
|
+
export const AppsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
321
|
+
org_slug: S.String.pipe(T.Query()),
|
|
322
|
+
app_role: S.optional(S.String.pipe(T.Query())),
|
|
323
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps", code: 200 }))).annotate({
|
|
324
|
+
identifier: "AppsListRequest",
|
|
325
|
+
});
|
|
326
|
+
export const AppOrganizationInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
+
internal_numeric_id: S.optional(S.Number),
|
|
328
|
+
name: S.optional(S.String),
|
|
329
|
+
slug: S.optional(S.String),
|
|
330
|
+
})).annotate({
|
|
331
|
+
identifier: "AppOrganizationInfo",
|
|
332
|
+
});
|
|
333
|
+
export const App = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
334
|
+
id: S.optional(S.String),
|
|
335
|
+
internal_numeric_id: S.optional(S.Number),
|
|
336
|
+
machine_count: S.optional(S.Number),
|
|
337
|
+
name: S.optional(S.String),
|
|
338
|
+
network: S.optional(S.String),
|
|
339
|
+
organization: S.optional(AppOrganizationInfo),
|
|
340
|
+
status: S.optional(S.String),
|
|
341
|
+
volume_count: S.optional(S.Number),
|
|
342
|
+
})).annotate({ identifier: "App" });
|
|
343
|
+
export const ListAppsResponseAppsList = /*@__PURE__*/ S.Array(App);
|
|
344
|
+
export const ListAppsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
345
|
+
apps: S.optional(ListAppsResponseAppsList),
|
|
346
|
+
total_apps: S.optional(S.Number),
|
|
347
|
+
})).annotate({
|
|
348
|
+
identifier: "ListAppsResponse",
|
|
349
|
+
});
|
|
350
|
+
export const AppsShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
351
|
+
app_name: S.String.pipe(T.Label()),
|
|
352
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}", code: 200 }))).annotate({
|
|
353
|
+
identifier: "AppsShowRequest",
|
|
354
|
+
});
|
|
355
|
+
export const CreateVolumeSnapshotRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
356
|
+
app_name: S.String.pipe(T.Label()),
|
|
357
|
+
volume_id: S.String.pipe(T.Label()),
|
|
358
|
+
}).pipe(T.Http({
|
|
359
|
+
method: "POST",
|
|
360
|
+
uri: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
361
|
+
code: 200,
|
|
362
|
+
}))).annotate({
|
|
363
|
+
identifier: "CreateVolumeSnapshotRequest",
|
|
364
|
+
});
|
|
365
|
+
export const CreateVolumeSnapshotResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
366
|
+
identifier: "CreateVolumeSnapshotResponse",
|
|
367
|
+
});
|
|
368
|
+
export const CurrentTokenShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/tokens/current", code: 200 }))).annotate({
|
|
369
|
+
identifier: "CurrentTokenShowRequest",
|
|
370
|
+
});
|
|
371
|
+
export const MainTokenInfoAppsList = /*@__PURE__*/ S.Array(S.String);
|
|
372
|
+
export const MainTokenInfo = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
373
|
+
apps: S.optional(MainTokenInfoAppsList),
|
|
374
|
+
org_slug: S.optional(S.String),
|
|
375
|
+
organization: S.optional(S.String),
|
|
376
|
+
restricted_to_machine: S.optional(S.String),
|
|
377
|
+
source_machine_id: S.optional(S.String),
|
|
378
|
+
token_id: S.optional(S.String),
|
|
379
|
+
user: S.optional(S.String),
|
|
380
|
+
})).annotate({ identifier: "MainTokenInfo" });
|
|
381
|
+
export const CurrentTokenResponseTokensList = /*@__PURE__*/ S.Array(MainTokenInfo);
|
|
382
|
+
export const CurrentTokenResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
383
|
+
tokens: S.optional(CurrentTokenResponseTokensList),
|
|
384
|
+
})).annotate({
|
|
385
|
+
identifier: "CurrentTokenResponse",
|
|
386
|
+
});
|
|
387
|
+
export const MachinesCordonRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
388
|
+
app_name: S.String.pipe(T.Label()),
|
|
389
|
+
machine_id: S.String.pipe(T.Label()),
|
|
390
|
+
}).pipe(T.Http({
|
|
391
|
+
method: "POST",
|
|
392
|
+
uri: "/apps/{app_name}/machines/{machine_id}/cordon",
|
|
393
|
+
code: 200,
|
|
394
|
+
}))).annotate({
|
|
395
|
+
identifier: "MachinesCordonRequest",
|
|
396
|
+
});
|
|
397
|
+
export const MachinesCordonResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
398
|
+
identifier: "MachinesCordonResponse",
|
|
399
|
+
});
|
|
400
|
+
export const FlyMachineCacheDrive = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
401
|
+
size_mb: S.optional(S.Number),
|
|
402
|
+
})).annotate({
|
|
403
|
+
identifier: "FlyMachineCacheDrive",
|
|
404
|
+
});
|
|
405
|
+
export const FlyMachineHTTPHeaderValuesList = /*@__PURE__*/ S.Array(S.String);
|
|
406
|
+
export const FlyMachineHTTPHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
407
|
+
name: S.optional(S.String),
|
|
408
|
+
values: S.optional(FlyMachineHTTPHeaderValuesList),
|
|
409
|
+
})).annotate({
|
|
410
|
+
identifier: "FlyMachineHTTPHeader",
|
|
411
|
+
});
|
|
412
|
+
export const FlyMachineCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
413
|
+
export const FlyMachineCheckKind = /*@__PURE__*/ S.String;
|
|
414
|
+
export const FlyMachineCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
415
|
+
grace_period: S.optional(S.String),
|
|
416
|
+
headers: S.optional(FlyMachineCheckHeadersList),
|
|
417
|
+
interval: S.optional(S.String),
|
|
418
|
+
kind: S.optional(FlyMachineCheckKind),
|
|
419
|
+
method: S.optional(S.String),
|
|
420
|
+
path: S.optional(S.String),
|
|
421
|
+
port: S.optional(S.Number),
|
|
422
|
+
protocol: S.optional(S.String),
|
|
423
|
+
timeout: S.optional(S.String),
|
|
424
|
+
tls_server_name: S.optional(S.String),
|
|
425
|
+
tls_skip_verify: S.optional(S.Boolean),
|
|
426
|
+
type: S.optional(S.String),
|
|
427
|
+
})).annotate({
|
|
428
|
+
identifier: "FlyMachineCheck",
|
|
429
|
+
});
|
|
430
|
+
export const FlyMachineConfigChecksMap = /*@__PURE__*/ S.Record(S.String, FlyMachineCheck);
|
|
431
|
+
export const FlyContainerConfigCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
432
|
+
export const FlyContainerDependencyCondition = /*@__PURE__*/ S.String;
|
|
433
|
+
export const FlyContainerDependency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
434
|
+
condition: S.optional(FlyContainerDependencyCondition),
|
|
435
|
+
name: S.optional(S.String),
|
|
436
|
+
})).annotate({
|
|
437
|
+
identifier: "FlyContainerDependency",
|
|
438
|
+
});
|
|
439
|
+
export const FlyContainerConfigDependsOnList = /*@__PURE__*/ S.Array(FlyContainerDependency);
|
|
440
|
+
export const FlyContainerConfigEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
441
|
+
export const FlyContainerConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
442
|
+
export const FlyEnvFromFieldRef = /*@__PURE__*/ S.String;
|
|
443
|
+
export const FlyEnvFrom = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
444
|
+
env_var: S.optional(S.String),
|
|
445
|
+
field_ref: S.optional(FlyEnvFromFieldRef),
|
|
446
|
+
})).annotate({ identifier: "FlyEnvFrom" });
|
|
447
|
+
export const FlyContainerConfigEnvFromList = /*@__PURE__*/ S.Array(FlyEnvFrom);
|
|
448
|
+
export const FlyContainerConfigExecList = /*@__PURE__*/ S.Array(S.String);
|
|
449
|
+
export const FlyFile = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
450
|
+
guest_path: S.optional(S.String),
|
|
451
|
+
image_config: S.optional(S.String),
|
|
452
|
+
mode: S.optional(S.Number),
|
|
453
|
+
raw_value: S.optional(S.String),
|
|
454
|
+
secret_name: S.optional(S.String),
|
|
455
|
+
})).annotate({ identifier: "FlyFile" });
|
|
456
|
+
export const FlyContainerConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
|
|
457
|
+
export const FlyExecHealthcheckCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
458
|
+
export const FlyExecHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
459
|
+
command: S.optional(FlyExecHealthcheckCommandList),
|
|
460
|
+
})).annotate({
|
|
461
|
+
identifier: "FlyExecHealthcheck",
|
|
462
|
+
});
|
|
463
|
+
export const FlyHTTPHealthcheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
464
|
+
export const FlyContainerHealthcheckScheme = /*@__PURE__*/ S.String;
|
|
465
|
+
export const FlyHTTPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
466
|
+
headers: S.optional(FlyHTTPHealthcheckHeadersList),
|
|
467
|
+
method: S.optional(S.String),
|
|
468
|
+
path: S.optional(S.String),
|
|
469
|
+
port: S.optional(S.Number),
|
|
470
|
+
scheme: S.optional(FlyContainerHealthcheckScheme),
|
|
471
|
+
tls_server_name: S.optional(S.String),
|
|
472
|
+
tls_skip_verify: S.optional(S.Boolean),
|
|
473
|
+
})).annotate({
|
|
474
|
+
identifier: "FlyHTTPHealthcheck",
|
|
475
|
+
});
|
|
476
|
+
export const FlyContainerHealthcheckKind = /*@__PURE__*/ S.String;
|
|
477
|
+
export const FlyTCPHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
478
|
+
port: S.optional(S.Number),
|
|
479
|
+
})).annotate({
|
|
480
|
+
identifier: "FlyTCPHealthcheck",
|
|
481
|
+
});
|
|
482
|
+
export const FlyUnhealthyPolicy = /*@__PURE__*/ S.String;
|
|
483
|
+
export const FlyContainerHealthcheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
484
|
+
exec: S.optional(FlyExecHealthcheck),
|
|
485
|
+
failure_threshold: S.optional(S.Number),
|
|
486
|
+
grace_period: S.optional(S.Number),
|
|
487
|
+
http: S.optional(FlyHTTPHealthcheck),
|
|
488
|
+
interval: S.optional(S.Number),
|
|
489
|
+
kind: S.optional(FlyContainerHealthcheckKind),
|
|
490
|
+
name: S.optional(S.String),
|
|
491
|
+
success_threshold: S.optional(S.Number),
|
|
492
|
+
tcp: S.optional(FlyTCPHealthcheck),
|
|
493
|
+
timeout: S.optional(S.Number),
|
|
494
|
+
unhealthy: S.optional(FlyUnhealthyPolicy),
|
|
495
|
+
})).annotate({
|
|
496
|
+
identifier: "FlyContainerHealthcheck",
|
|
497
|
+
});
|
|
498
|
+
export const FlyContainerConfigHealthchecksList = /*@__PURE__*/ S.Array(FlyContainerHealthcheck);
|
|
499
|
+
export const FlyMachineRestartPolicy = /*@__PURE__*/ S.String;
|
|
500
|
+
export const FlyMachineRestart = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
501
|
+
gpu_bid_price: S.optional(S.Number),
|
|
502
|
+
max_retries: S.optional(S.Number),
|
|
503
|
+
policy: S.optional(FlyMachineRestartPolicy),
|
|
504
|
+
})).annotate({
|
|
505
|
+
identifier: "FlyMachineRestart",
|
|
506
|
+
});
|
|
507
|
+
export const FlyMachineSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
508
|
+
env_var: S.optional(S.String),
|
|
509
|
+
name: S.optional(S.String),
|
|
510
|
+
})).annotate({
|
|
511
|
+
identifier: "FlyMachineSecret",
|
|
512
|
+
});
|
|
513
|
+
export const FlyContainerConfigSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
|
|
514
|
+
export const FlyStopConfigSignal = /*@__PURE__*/ S.String;
|
|
515
|
+
export const FlyStopConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
516
|
+
signal: S.optional(FlyStopConfigSignal),
|
|
517
|
+
timeout: S.optional(S.String),
|
|
518
|
+
})).annotate({ identifier: "FlyStopConfig" });
|
|
519
|
+
export const FlyContainerConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
520
|
+
cmd: S.optional(FlyContainerConfigCmdList),
|
|
521
|
+
depends_on: S.optional(FlyContainerConfigDependsOnList),
|
|
522
|
+
entrypoint: S.optional(FlyContainerConfigEntrypointList),
|
|
523
|
+
env: S.optional(FlyContainerConfigEnvMap),
|
|
524
|
+
env_from: S.optional(FlyContainerConfigEnvFromList),
|
|
525
|
+
exec: S.optional(FlyContainerConfigExecList),
|
|
526
|
+
files: S.optional(FlyContainerConfigFilesList),
|
|
527
|
+
healthchecks: S.optional(FlyContainerConfigHealthchecksList),
|
|
528
|
+
image: S.optional(S.String),
|
|
529
|
+
name: S.optional(S.String),
|
|
530
|
+
restart: S.optional(FlyMachineRestart),
|
|
531
|
+
secrets: S.optional(FlyContainerConfigSecretsList),
|
|
532
|
+
stop: S.optional(FlyStopConfig),
|
|
533
|
+
user: S.optional(S.String),
|
|
534
|
+
})).annotate({
|
|
535
|
+
identifier: "FlyContainerConfig",
|
|
536
|
+
});
|
|
537
|
+
export const FlyMachineConfigContainersList = /*@__PURE__*/ S.Array(FlyContainerConfig);
|
|
538
|
+
export const FlyDnsForwardRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
539
|
+
addr: S.optional(S.String),
|
|
540
|
+
basename: S.optional(S.String),
|
|
541
|
+
})).annotate({
|
|
542
|
+
identifier: "FlyDnsForwardRule",
|
|
543
|
+
});
|
|
544
|
+
export const FlyDNSConfigDnsForwardRulesList = /*@__PURE__*/ S.Array(FlyDnsForwardRule);
|
|
545
|
+
export const FlyDNSConfigNameserversList = /*@__PURE__*/ S.Array(S.String);
|
|
546
|
+
export const FlyDnsOption = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
547
|
+
name: S.optional(S.String),
|
|
548
|
+
value: S.optional(S.String),
|
|
549
|
+
})).annotate({ identifier: "FlyDnsOption" });
|
|
550
|
+
export const FlyDNSConfigOptionsList = /*@__PURE__*/ S.Array(FlyDnsOption);
|
|
551
|
+
export const FlyDNSConfigSearchesList = /*@__PURE__*/ S.Array(S.String);
|
|
552
|
+
export const FlyDNSConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
553
|
+
dns_forward_rules: S.optional(FlyDNSConfigDnsForwardRulesList),
|
|
554
|
+
hostname: S.optional(S.String),
|
|
555
|
+
hostname_fqdn: S.optional(S.String),
|
|
556
|
+
nameservers: S.optional(FlyDNSConfigNameserversList),
|
|
557
|
+
options: S.optional(FlyDNSConfigOptionsList),
|
|
558
|
+
searches: S.optional(FlyDNSConfigSearchesList),
|
|
559
|
+
skip_registration: S.optional(S.Boolean),
|
|
560
|
+
})).annotate({ identifier: "FlyDNSConfig" });
|
|
561
|
+
export const FlyMachineConfigEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
562
|
+
export const FlyMachineConfigFilesList = /*@__PURE__*/ S.Array(FlyFile);
|
|
563
|
+
export const FlyMachineGuestKernelArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
564
|
+
export const FlyMachineGuestPersistRootfs = /*@__PURE__*/ S.String;
|
|
565
|
+
export const FlyMachineGuest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
566
|
+
cpu_kind: S.optional(S.String),
|
|
567
|
+
cpus: S.optional(S.Number),
|
|
568
|
+
gpu_kind: S.optional(S.String),
|
|
569
|
+
gpus: S.optional(S.Number),
|
|
570
|
+
host_dedication_id: S.optional(S.String),
|
|
571
|
+
kernel_args: S.optional(FlyMachineGuestKernelArgsList),
|
|
572
|
+
max_memory_mb: S.optional(S.Number),
|
|
573
|
+
memory_mb: S.optional(S.Number),
|
|
574
|
+
persist_rootfs: S.optional(FlyMachineGuestPersistRootfs),
|
|
575
|
+
})).annotate({
|
|
576
|
+
identifier: "FlyMachineGuest",
|
|
577
|
+
});
|
|
578
|
+
export const FlyMachineInitCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
579
|
+
export const FlyMachineInitEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
580
|
+
export const FlyMachineInitExecList = /*@__PURE__*/ S.Array(S.String);
|
|
581
|
+
export const FlyMachineInitKernelArgsList = /*@__PURE__*/ S.Array(S.String);
|
|
582
|
+
export const FlyMachineInit = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
583
|
+
cmd: S.optional(FlyMachineInitCmdList),
|
|
584
|
+
entrypoint: S.optional(FlyMachineInitEntrypointList),
|
|
585
|
+
exec: S.optional(FlyMachineInitExecList),
|
|
586
|
+
kernel_args: S.optional(FlyMachineInitKernelArgsList),
|
|
587
|
+
swap_size_mb: S.optional(S.Number),
|
|
588
|
+
tty: S.optional(S.Boolean),
|
|
589
|
+
})).annotate({ identifier: "FlyMachineInit" });
|
|
590
|
+
export const FlyMachineConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
591
|
+
export const FlyMachineMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
592
|
+
https: S.optional(S.Boolean),
|
|
593
|
+
path: S.optional(S.String),
|
|
594
|
+
port: S.optional(S.Number),
|
|
595
|
+
})).annotate({
|
|
596
|
+
identifier: "FlyMachineMetrics",
|
|
597
|
+
});
|
|
598
|
+
export const FlyMachineMount = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
599
|
+
add_size_gb: S.optional(S.Number),
|
|
600
|
+
encrypted: S.optional(S.Boolean),
|
|
601
|
+
extend_threshold_percent: S.optional(S.Number),
|
|
602
|
+
name: S.optional(S.String),
|
|
603
|
+
path: S.optional(S.String),
|
|
604
|
+
size_gb: S.optional(S.Number),
|
|
605
|
+
size_gb_limit: S.optional(S.Number),
|
|
606
|
+
volume: S.optional(S.String),
|
|
607
|
+
})).annotate({
|
|
608
|
+
identifier: "FlyMachineMount",
|
|
609
|
+
});
|
|
610
|
+
export const FlyMachineConfigMountsList = /*@__PURE__*/ S.Array(FlyMachineMount);
|
|
611
|
+
export const FlyMachineProcessCmdList = /*@__PURE__*/ S.Array(S.String);
|
|
612
|
+
export const FlyMachineProcessEntrypointList = /*@__PURE__*/ S.Array(S.String);
|
|
613
|
+
export const FlyMachineProcessEnvMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
614
|
+
export const FlyMachineProcessEnvFromList = /*@__PURE__*/ S.Array(FlyEnvFrom);
|
|
615
|
+
export const FlyMachineProcessExecList = /*@__PURE__*/ S.Array(S.String);
|
|
616
|
+
export const FlyMachineProcessSecretsList = /*@__PURE__*/ S.Array(FlyMachineSecret);
|
|
617
|
+
export const FlyMachineProcess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
618
|
+
cmd: S.optional(FlyMachineProcessCmdList),
|
|
619
|
+
entrypoint: S.optional(FlyMachineProcessEntrypointList),
|
|
620
|
+
env: S.optional(FlyMachineProcessEnvMap),
|
|
621
|
+
env_from: S.optional(FlyMachineProcessEnvFromList),
|
|
622
|
+
exec: S.optional(FlyMachineProcessExecList),
|
|
623
|
+
ignore_app_secrets: S.optional(S.Boolean),
|
|
624
|
+
secrets: S.optional(FlyMachineProcessSecretsList),
|
|
625
|
+
user: S.optional(S.String),
|
|
626
|
+
})).annotate({
|
|
627
|
+
identifier: "FlyMachineProcess",
|
|
628
|
+
});
|
|
629
|
+
export const FlyMachineConfigProcessesList = /*@__PURE__*/ S.Array(FlyMachineProcess);
|
|
630
|
+
export const FlyMachineRootfsPersist = /*@__PURE__*/ S.String;
|
|
631
|
+
export const FlyMachineRootfs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
632
|
+
persist: S.optional(FlyMachineRootfsPersist),
|
|
633
|
+
size_gb: S.optional(S.Number),
|
|
634
|
+
})).annotate({
|
|
635
|
+
identifier: "FlyMachineRootfs",
|
|
636
|
+
});
|
|
637
|
+
export const FlyMachineServiceAutostop = /*@__PURE__*/ S.String;
|
|
638
|
+
export const FlyMachineServiceCheckHeadersList = /*@__PURE__*/ S.Array(FlyMachineHTTPHeader);
|
|
639
|
+
export const FlyMachineServiceCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
640
|
+
grace_period: S.optional(S.String),
|
|
641
|
+
headers: S.optional(FlyMachineServiceCheckHeadersList),
|
|
642
|
+
interval: S.optional(S.String),
|
|
643
|
+
method: S.optional(S.String),
|
|
644
|
+
path: S.optional(S.String),
|
|
645
|
+
port: S.optional(S.Number),
|
|
646
|
+
protocol: S.optional(S.String),
|
|
647
|
+
timeout: S.optional(S.String),
|
|
648
|
+
tls_server_name: S.optional(S.String),
|
|
649
|
+
tls_skip_verify: S.optional(S.Boolean),
|
|
650
|
+
type: S.optional(S.String),
|
|
651
|
+
})).annotate({
|
|
652
|
+
identifier: "FlyMachineServiceCheck",
|
|
653
|
+
});
|
|
654
|
+
export const FlyMachineServiceChecksList = /*@__PURE__*/ S.Array(FlyMachineServiceCheck);
|
|
655
|
+
export const FlyMachineServiceConcurrency = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
656
|
+
hard_limit: S.optional(S.Number),
|
|
657
|
+
soft_limit: S.optional(S.Number),
|
|
658
|
+
type: S.optional(S.String),
|
|
659
|
+
})).annotate({
|
|
660
|
+
identifier: "FlyMachineServiceConcurrency",
|
|
661
|
+
});
|
|
662
|
+
export const FlyMachinePortHandlersList = /*@__PURE__*/ S.Array(S.String);
|
|
663
|
+
export const FlyReplayCacheType = /*@__PURE__*/ S.String;
|
|
664
|
+
export const FlyReplayCache = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
665
|
+
allow_bypass: S.optional(S.Boolean),
|
|
666
|
+
name: S.optional(S.String),
|
|
667
|
+
path_prefix: S.optional(S.String),
|
|
668
|
+
ttl_seconds: S.optional(S.Number),
|
|
669
|
+
type: S.optional(FlyReplayCacheType),
|
|
670
|
+
})).annotate({ identifier: "FlyReplayCache" });
|
|
671
|
+
export const FlyHTTPOptionsReplayCacheList = /*@__PURE__*/ S.Array(FlyReplayCache);
|
|
672
|
+
export const FlyHTTPResponseOptionsHeadersMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
673
|
+
export const FlyHTTPResponseOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
674
|
+
headers: S.optional(FlyHTTPResponseOptionsHeadersMap),
|
|
675
|
+
pristine: S.optional(S.Boolean),
|
|
676
|
+
})).annotate({
|
|
677
|
+
identifier: "FlyHTTPResponseOptions",
|
|
678
|
+
});
|
|
679
|
+
export const FlyHTTPOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
680
|
+
compress: S.optional(S.Boolean),
|
|
681
|
+
h2_backend: S.optional(S.Boolean),
|
|
682
|
+
headers_read_timeout: S.optional(S.Number),
|
|
683
|
+
idle_timeout: S.optional(S.Number),
|
|
684
|
+
replay_cache: S.optional(FlyHTTPOptionsReplayCacheList),
|
|
685
|
+
response: S.optional(FlyHTTPResponseOptions),
|
|
686
|
+
})).annotate({ identifier: "FlyHTTPOptions" });
|
|
687
|
+
export const FlyProxyProtoOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
688
|
+
version: S.optional(S.String),
|
|
689
|
+
})).annotate({
|
|
690
|
+
identifier: "FlyProxyProtoOptions",
|
|
691
|
+
});
|
|
692
|
+
export const FlyTLSOptionsAlpnList = /*@__PURE__*/ S.Array(S.String);
|
|
693
|
+
export const FlyTLSOptionsVersionsList = /*@__PURE__*/ S.Array(S.String);
|
|
694
|
+
export const FlyTLSOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
695
|
+
alpn: S.optional(FlyTLSOptionsAlpnList),
|
|
696
|
+
default_self_signed: S.optional(S.Boolean),
|
|
697
|
+
versions: S.optional(FlyTLSOptionsVersionsList),
|
|
698
|
+
})).annotate({ identifier: "FlyTLSOptions" });
|
|
699
|
+
export const FlyMachinePort = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
700
|
+
end_port: S.optional(S.Number),
|
|
701
|
+
force_https: S.optional(S.Boolean),
|
|
702
|
+
handlers: S.optional(FlyMachinePortHandlersList),
|
|
703
|
+
http_options: S.optional(FlyHTTPOptions),
|
|
704
|
+
port: S.optional(S.Number),
|
|
705
|
+
proxy_proto_options: S.optional(FlyProxyProtoOptions),
|
|
706
|
+
start_port: S.optional(S.Number),
|
|
707
|
+
tls_options: S.optional(FlyTLSOptions),
|
|
708
|
+
})).annotate({ identifier: "FlyMachinePort" });
|
|
709
|
+
export const FlyMachineServicePortsList = /*@__PURE__*/ S.Array(FlyMachinePort);
|
|
710
|
+
export const FlyMachineService = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
711
|
+
autostart: S.optional(S.Boolean),
|
|
712
|
+
autostop: S.optional(FlyMachineServiceAutostop),
|
|
713
|
+
checks: S.optional(FlyMachineServiceChecksList),
|
|
714
|
+
concurrency: S.optional(FlyMachineServiceConcurrency),
|
|
715
|
+
force_instance_description: S.optional(S.String),
|
|
716
|
+
force_instance_key: S.optional(S.String),
|
|
717
|
+
internal_port: S.optional(S.Number),
|
|
718
|
+
min_machines_running: S.optional(S.Number),
|
|
719
|
+
ports: S.optional(FlyMachineServicePortsList),
|
|
720
|
+
protocol: S.optional(S.String),
|
|
721
|
+
})).annotate({
|
|
722
|
+
identifier: "FlyMachineService",
|
|
723
|
+
});
|
|
724
|
+
export const FlyMachineConfigServicesList = /*@__PURE__*/ S.Array(FlyMachineService);
|
|
725
|
+
export const FlyMachineSpot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
726
|
+
max_price_fraction: S.optional(S.Number),
|
|
727
|
+
})).annotate({ identifier: "FlyMachineSpot" });
|
|
728
|
+
export const FlyMachineConfigStandbysList = /*@__PURE__*/ S.Array(S.String);
|
|
729
|
+
export const FlyStatic = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
730
|
+
guest_path: S.String,
|
|
731
|
+
index_document: S.optional(S.String),
|
|
732
|
+
tigris_bucket: S.optional(S.String),
|
|
733
|
+
url_prefix: S.String,
|
|
734
|
+
})).annotate({ identifier: "FlyStatic" });
|
|
735
|
+
export const FlyMachineConfigStaticsList = /*@__PURE__*/ S.Array(FlyStatic);
|
|
736
|
+
export const FlyMachineConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
737
|
+
auto_destroy: S.optional(S.Boolean),
|
|
738
|
+
cache_drive: S.optional(FlyMachineCacheDrive),
|
|
739
|
+
checks: S.optional(FlyMachineConfigChecksMap),
|
|
740
|
+
containers: S.optional(FlyMachineConfigContainersList),
|
|
741
|
+
disable_machine_autostart: S.optional(S.Boolean),
|
|
742
|
+
dns: S.optional(FlyDNSConfig),
|
|
743
|
+
env: S.optional(FlyMachineConfigEnvMap),
|
|
744
|
+
files: S.optional(FlyMachineConfigFilesList),
|
|
745
|
+
guest: S.optional(FlyMachineGuest),
|
|
746
|
+
image: S.optional(S.String),
|
|
747
|
+
init: S.optional(FlyMachineInit),
|
|
748
|
+
metadata: S.optional(FlyMachineConfigMetadataMap),
|
|
749
|
+
metrics: S.optional(FlyMachineMetrics),
|
|
750
|
+
mounts: S.optional(FlyMachineConfigMountsList),
|
|
751
|
+
processes: S.optional(FlyMachineConfigProcessesList),
|
|
752
|
+
restart: S.optional(FlyMachineRestart),
|
|
753
|
+
rootfs: S.optional(FlyMachineRootfs),
|
|
754
|
+
schedule: S.optional(S.String),
|
|
755
|
+
services: S.optional(FlyMachineConfigServicesList),
|
|
756
|
+
size: S.optional(S.String),
|
|
757
|
+
spot: S.optional(FlyMachineSpot),
|
|
758
|
+
standbys: S.optional(FlyMachineConfigStandbysList),
|
|
759
|
+
statics: S.optional(FlyMachineConfigStaticsList),
|
|
760
|
+
stop_config: S.optional(FlyStopConfig),
|
|
761
|
+
})).annotate({
|
|
762
|
+
identifier: "FlyMachineConfig",
|
|
763
|
+
});
|
|
764
|
+
export const MachinesCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
765
|
+
app_name: S.String.pipe(T.Label()),
|
|
766
|
+
config: S.optional(FlyMachineConfig),
|
|
767
|
+
lease_ttl: S.optional(S.Number),
|
|
768
|
+
min_secrets_version: S.optional(S.Number),
|
|
769
|
+
name: S.optional(S.String),
|
|
770
|
+
region: S.optional(S.String),
|
|
771
|
+
skip_launch: S.optional(S.Boolean),
|
|
772
|
+
skip_secrets: S.optional(S.Boolean),
|
|
773
|
+
skip_service_registration: S.optional(S.Boolean),
|
|
774
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
775
|
+
identifier: "MachinesCreateRequest",
|
|
776
|
+
});
|
|
777
|
+
export const CheckStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
778
|
+
name: S.optional(S.String),
|
|
779
|
+
output: S.optional(S.String),
|
|
780
|
+
status: S.optional(S.String),
|
|
781
|
+
updated_at: S.optional(S.String),
|
|
782
|
+
})).annotate({ identifier: "CheckStatus" });
|
|
783
|
+
export const MachineChecksList = /*@__PURE__*/ S.Array(CheckStatus);
|
|
784
|
+
export const MachineEvent = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
785
|
+
id: S.optional(S.String),
|
|
786
|
+
request: S.optional(S.Unknown),
|
|
787
|
+
source: S.optional(S.String),
|
|
788
|
+
status: S.optional(S.String),
|
|
789
|
+
timestamp: S.optional(S.Number),
|
|
790
|
+
type: S.optional(S.String),
|
|
791
|
+
})).annotate({ identifier: "MachineEvent" });
|
|
792
|
+
export const MachineEventsList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
793
|
+
export const MachineHostStatus = /*@__PURE__*/ S.String;
|
|
794
|
+
export const ImageRefLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
795
|
+
export const ImageRef = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
796
|
+
digest: S.optional(S.String),
|
|
797
|
+
labels: S.optional(ImageRefLabelsMap),
|
|
798
|
+
registry: S.optional(S.String),
|
|
799
|
+
repository: S.optional(S.String),
|
|
800
|
+
tag: S.optional(S.String),
|
|
801
|
+
})).annotate({ identifier: "ImageRef" });
|
|
802
|
+
export const Machine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
803
|
+
checks: S.optional(MachineChecksList),
|
|
804
|
+
config: S.optional(FlyMachineConfig),
|
|
805
|
+
created_at: S.optional(S.String),
|
|
806
|
+
events: S.optional(MachineEventsList),
|
|
807
|
+
host_status: S.optional(MachineHostStatus),
|
|
808
|
+
id: S.optional(S.String),
|
|
809
|
+
image_ref: S.optional(ImageRef),
|
|
810
|
+
incomplete_config: S.optional(FlyMachineConfig),
|
|
811
|
+
instance_id: S.optional(S.String),
|
|
812
|
+
name: S.optional(S.String),
|
|
813
|
+
nonce: S.optional(S.String),
|
|
814
|
+
private_ip: S.optional(S.String),
|
|
815
|
+
region: S.optional(S.String),
|
|
816
|
+
state: S.optional(S.String),
|
|
817
|
+
updated_at: S.optional(S.String),
|
|
818
|
+
})).annotate({ identifier: "Machine" });
|
|
819
|
+
export const MachinesCreateLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
820
|
+
app_name: S.String.pipe(T.Label()),
|
|
821
|
+
machine_id: S.String.pipe(T.Label()),
|
|
822
|
+
description: S.optional(S.String),
|
|
823
|
+
ttl: S.optional(S.Number),
|
|
824
|
+
}).pipe(T.Http({
|
|
825
|
+
method: "POST",
|
|
826
|
+
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
827
|
+
code: 200,
|
|
828
|
+
}))).annotate({
|
|
829
|
+
identifier: "MachinesCreateLeaseRequest",
|
|
830
|
+
});
|
|
831
|
+
export const Lease = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
832
|
+
description: S.optional(S.String),
|
|
833
|
+
expires_at: S.optional(S.Number),
|
|
834
|
+
nonce: S.optional(S.String),
|
|
835
|
+
owner: S.optional(S.String),
|
|
836
|
+
version: S.optional(S.String),
|
|
837
|
+
})).annotate({ identifier: "Lease" });
|
|
838
|
+
export const MachinesDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
839
|
+
app_name: S.String.pipe(T.Label()),
|
|
840
|
+
machine_id: S.String.pipe(T.Label()),
|
|
841
|
+
force: S.optional(S.Boolean.pipe(T.Query())),
|
|
842
|
+
}).pipe(T.Http({
|
|
843
|
+
method: "DELETE",
|
|
844
|
+
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
845
|
+
code: 200,
|
|
846
|
+
}))).annotate({
|
|
847
|
+
identifier: "MachinesDeleteRequest",
|
|
848
|
+
});
|
|
849
|
+
export const MachinesDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
850
|
+
identifier: "MachinesDeleteResponse",
|
|
851
|
+
});
|
|
852
|
+
export const MachinesDeleteMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
853
|
+
app_name: S.String.pipe(T.Label()),
|
|
854
|
+
machine_id: S.String.pipe(T.Label()),
|
|
855
|
+
key: S.String.pipe(T.Label()),
|
|
856
|
+
}).pipe(T.Http({
|
|
857
|
+
method: "DELETE",
|
|
858
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
859
|
+
code: 200,
|
|
860
|
+
}))).annotate({
|
|
861
|
+
identifier: "MachinesDeleteMetadataRequest",
|
|
862
|
+
});
|
|
863
|
+
export const MachinesDeleteMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
864
|
+
identifier: "MachinesDeleteMetadataResponse",
|
|
865
|
+
});
|
|
866
|
+
export const MachinesExecRequestCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
867
|
+
export const MachinesExecRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
868
|
+
app_name: S.String.pipe(T.Label()),
|
|
869
|
+
machine_id: S.String.pipe(T.Label()),
|
|
870
|
+
cmd: S.optional(S.String),
|
|
871
|
+
command: S.optional(MachinesExecRequestCommandList),
|
|
872
|
+
container: S.optional(S.String),
|
|
873
|
+
stdin: S.optional(S.String),
|
|
874
|
+
timeout: S.optional(S.Number),
|
|
875
|
+
}).pipe(T.Http({
|
|
876
|
+
method: "POST",
|
|
877
|
+
uri: "/apps/{app_name}/machines/{machine_id}/exec",
|
|
878
|
+
code: 200,
|
|
879
|
+
}))).annotate({
|
|
880
|
+
identifier: "MachinesExecRequest",
|
|
881
|
+
});
|
|
882
|
+
export const Flydv1ExecResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
883
|
+
exit_code: S.optional(S.Number),
|
|
884
|
+
exit_signal: S.optional(S.Number),
|
|
885
|
+
stderr: S.optional(S.String),
|
|
886
|
+
stdout: S.optional(S.String),
|
|
887
|
+
})).annotate({
|
|
888
|
+
identifier: "Flydv1ExecResponse",
|
|
889
|
+
});
|
|
890
|
+
export const MachinesGetMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
891
|
+
app_name: S.String.pipe(T.Label()),
|
|
892
|
+
machine_id: S.String.pipe(T.Label()),
|
|
893
|
+
}).pipe(T.Http({
|
|
894
|
+
method: "GET",
|
|
895
|
+
uri: "/apps/{app_name}/machines/{machine_id}/memory",
|
|
896
|
+
code: 200,
|
|
897
|
+
}))).annotate({
|
|
898
|
+
identifier: "MachinesGetMemoryRequest",
|
|
899
|
+
});
|
|
900
|
+
export const MainMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
901
|
+
available_mb: S.optional(S.Number),
|
|
902
|
+
limit_mb: S.optional(S.Number),
|
|
903
|
+
})).annotate({
|
|
904
|
+
identifier: "MainMemoryResponse",
|
|
905
|
+
});
|
|
906
|
+
export const MachinesGetMetadataKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
907
|
+
app_name: S.String.pipe(T.Label()),
|
|
908
|
+
machine_id: S.String.pipe(T.Label()),
|
|
909
|
+
key: S.String.pipe(T.Label()),
|
|
910
|
+
}).pipe(T.Http({
|
|
911
|
+
method: "GET",
|
|
912
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
913
|
+
code: 200,
|
|
914
|
+
}))).annotate({
|
|
915
|
+
identifier: "MachinesGetMetadataKeyRequest",
|
|
916
|
+
});
|
|
917
|
+
export const MetadataValueResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
918
|
+
value: S.optional(S.String),
|
|
919
|
+
})).annotate({
|
|
920
|
+
identifier: "MetadataValueResponse",
|
|
921
|
+
});
|
|
922
|
+
export const MachinesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
923
|
+
app_name: S.String.pipe(T.Label()),
|
|
924
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
925
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
926
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
927
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
928
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/machines", code: 200 }))).annotate({
|
|
929
|
+
identifier: "MachinesListRequest",
|
|
930
|
+
});
|
|
931
|
+
export const MachinesListResponseBodyList = /*@__PURE__*/ S.Array(Machine);
|
|
932
|
+
export const MachinesListResponse = /*@__PURE__*/ S.suspend(() => MachinesListResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
933
|
+
identifier: "MachinesListResponse",
|
|
934
|
+
});
|
|
935
|
+
export const MachinesListEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
936
|
+
app_name: S.String.pipe(T.Label()),
|
|
937
|
+
machine_id: S.String.pipe(T.Label()),
|
|
938
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
939
|
+
}).pipe(T.Http({
|
|
940
|
+
method: "GET",
|
|
941
|
+
uri: "/apps/{app_name}/machines/{machine_id}/events",
|
|
942
|
+
code: 200,
|
|
943
|
+
}))).annotate({
|
|
944
|
+
identifier: "MachinesListEventsRequest",
|
|
945
|
+
});
|
|
946
|
+
export const MachinesListEventsResponseBodyList = /*@__PURE__*/ S.Array(MachineEvent);
|
|
947
|
+
export const MachinesListEventsResponse = /*@__PURE__*/ S.suspend(() => MachinesListEventsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
948
|
+
identifier: "MachinesListEventsResponse",
|
|
949
|
+
});
|
|
950
|
+
export const MachinesListProcessesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
951
|
+
app_name: S.String.pipe(T.Label()),
|
|
952
|
+
machine_id: S.String.pipe(T.Label()),
|
|
953
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
954
|
+
order: S.optional(S.String.pipe(T.Query())),
|
|
955
|
+
}).pipe(T.Http({
|
|
956
|
+
method: "GET",
|
|
957
|
+
uri: "/apps/{app_name}/machines/{machine_id}/ps",
|
|
958
|
+
code: 200,
|
|
959
|
+
}))).annotate({
|
|
960
|
+
identifier: "MachinesListProcessesRequest",
|
|
961
|
+
});
|
|
962
|
+
export const ListenSocket = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
963
|
+
address: S.optional(S.String),
|
|
964
|
+
proto: S.optional(S.String),
|
|
965
|
+
})).annotate({ identifier: "ListenSocket" });
|
|
966
|
+
export const ProcessStatListenSocketsList = /*@__PURE__*/ S.Array(ListenSocket);
|
|
967
|
+
export const ProcessStat = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
968
|
+
command: S.optional(S.String),
|
|
969
|
+
cpu: S.optional(S.Number),
|
|
970
|
+
directory: S.optional(S.String),
|
|
971
|
+
listen_sockets: S.optional(ProcessStatListenSocketsList),
|
|
972
|
+
pid: S.optional(S.Number),
|
|
973
|
+
rss: S.optional(S.Number),
|
|
974
|
+
rtime: S.optional(S.Number),
|
|
975
|
+
stime: S.optional(S.Number),
|
|
976
|
+
})).annotate({ identifier: "ProcessStat" });
|
|
977
|
+
export const MachinesListProcessesResponseBodyList = /*@__PURE__*/ S.Array(ProcessStat);
|
|
978
|
+
export const MachinesListProcessesResponse = /*@__PURE__*/ S.suspend(() => MachinesListProcessesResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
979
|
+
identifier: "MachinesListProcessesResponse",
|
|
980
|
+
});
|
|
981
|
+
export const MachinesListVersionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
982
|
+
app_name: S.String.pipe(T.Label()),
|
|
983
|
+
machine_id: S.String.pipe(T.Label()),
|
|
984
|
+
}).pipe(T.Http({
|
|
985
|
+
method: "GET",
|
|
986
|
+
uri: "/apps/{app_name}/machines/{machine_id}/versions",
|
|
987
|
+
code: 200,
|
|
988
|
+
}))).annotate({
|
|
989
|
+
identifier: "MachinesListVersionsRequest",
|
|
990
|
+
});
|
|
991
|
+
export const MachineVersion = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
992
|
+
user_config: S.optional(FlyMachineConfig),
|
|
993
|
+
version: S.optional(S.String),
|
|
994
|
+
})).annotate({ identifier: "MachineVersion" });
|
|
995
|
+
export const MachinesListVersionsResponseBodyList = /*@__PURE__*/ S.Array(MachineVersion);
|
|
996
|
+
export const MachinesListVersionsResponse = /*@__PURE__*/ S.suspend(() => MachinesListVersionsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
997
|
+
identifier: "MachinesListVersionsResponse",
|
|
998
|
+
});
|
|
999
|
+
export const MachinesOrgListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1000
|
+
org_slug: S.String.pipe(T.Label()),
|
|
1001
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1002
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1003
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1004
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1005
|
+
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1006
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1007
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1008
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/machines", code: 200 }))).annotate({
|
|
1009
|
+
identifier: "MachinesOrgListRequest",
|
|
1010
|
+
});
|
|
1011
|
+
export const OrgMachinesResponseErrorRegionsList = /*@__PURE__*/ S.Array(S.String);
|
|
1012
|
+
export const MachineOverviewConfigMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1013
|
+
export const MachineOverviewConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1014
|
+
guest: S.optional(FlyMachineGuest),
|
|
1015
|
+
image: S.optional(S.String),
|
|
1016
|
+
metadata: S.optional(MachineOverviewConfigMetadataMap),
|
|
1017
|
+
})).annotate({
|
|
1018
|
+
identifier: "MachineOverviewConfig",
|
|
1019
|
+
});
|
|
1020
|
+
export const OrgMachine = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1021
|
+
app_name: S.optional(S.String),
|
|
1022
|
+
config: S.optional(MachineOverviewConfig),
|
|
1023
|
+
created_at: S.optional(S.String),
|
|
1024
|
+
id: S.optional(S.String),
|
|
1025
|
+
name: S.optional(S.String),
|
|
1026
|
+
private_ip: S.optional(S.String),
|
|
1027
|
+
region: S.optional(S.String),
|
|
1028
|
+
state: S.optional(S.String),
|
|
1029
|
+
updated_at: S.optional(S.String),
|
|
1030
|
+
version: S.optional(S.String),
|
|
1031
|
+
})).annotate({ identifier: "OrgMachine" });
|
|
1032
|
+
export const OrgMachinesResponseMachinesList = /*@__PURE__*/ S.Array(OrgMachine);
|
|
1033
|
+
export const OrgMachinesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1034
|
+
error_regions: S.optional(OrgMachinesResponseErrorRegionsList),
|
|
1035
|
+
last_machine_id: S.optional(S.String),
|
|
1036
|
+
last_updated_at: S.optional(S.String),
|
|
1037
|
+
machines: S.optional(OrgMachinesResponseMachinesList),
|
|
1038
|
+
next_cursor: S.optional(S.String),
|
|
1039
|
+
})).annotate({
|
|
1040
|
+
identifier: "OrgMachinesResponse",
|
|
1041
|
+
});
|
|
1042
|
+
export const MachinesReclaimMemoryRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1043
|
+
app_name: S.String.pipe(T.Label()),
|
|
1044
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1045
|
+
amount_mb: S.optional(S.Number),
|
|
1046
|
+
}).pipe(T.Http({
|
|
1047
|
+
method: "POST",
|
|
1048
|
+
uri: "/apps/{app_name}/machines/{machine_id}/memory/reclaim",
|
|
1049
|
+
code: 200,
|
|
1050
|
+
}))).annotate({
|
|
1051
|
+
identifier: "MachinesReclaimMemoryRequest",
|
|
1052
|
+
});
|
|
1053
|
+
export const MainReclaimMemoryResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1054
|
+
actual_mb: S.optional(S.Number),
|
|
1055
|
+
})).annotate({
|
|
1056
|
+
identifier: "MainReclaimMemoryResponse",
|
|
1057
|
+
});
|
|
1058
|
+
export const MachinesReleaseLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1059
|
+
app_name: S.String.pipe(T.Label()),
|
|
1060
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1061
|
+
}).pipe(T.Http({
|
|
1062
|
+
method: "DELETE",
|
|
1063
|
+
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
1064
|
+
code: 200,
|
|
1065
|
+
}))).annotate({
|
|
1066
|
+
identifier: "MachinesReleaseLeaseRequest",
|
|
1067
|
+
});
|
|
1068
|
+
export const MachinesReleaseLeaseResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1069
|
+
identifier: "MachinesReleaseLeaseResponse",
|
|
1070
|
+
});
|
|
1071
|
+
export const MachinesRestartRequestSignal = /*@__PURE__*/ S.String;
|
|
1072
|
+
export const MachinesRestartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1073
|
+
app_name: S.String.pipe(T.Label()),
|
|
1074
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1075
|
+
timeout: S.optional(S.String.pipe(T.Query())),
|
|
1076
|
+
signal: S.optional(MachinesRestartRequestSignal.pipe(T.Query())),
|
|
1077
|
+
}).pipe(T.Http({
|
|
1078
|
+
method: "POST",
|
|
1079
|
+
uri: "/apps/{app_name}/machines/{machine_id}/restart",
|
|
1080
|
+
code: 200,
|
|
1081
|
+
}))).annotate({
|
|
1082
|
+
identifier: "MachinesRestartRequest",
|
|
1083
|
+
});
|
|
1084
|
+
export const MachinesRestartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1085
|
+
identifier: "MachinesRestartResponse",
|
|
1086
|
+
});
|
|
1087
|
+
export const MachinesSetMemoryLimitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1088
|
+
app_name: S.String.pipe(T.Label()),
|
|
1089
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1090
|
+
limit_mb: S.optional(S.Number),
|
|
1091
|
+
}).pipe(T.Http({
|
|
1092
|
+
method: "PUT",
|
|
1093
|
+
uri: "/apps/{app_name}/machines/{machine_id}/memory",
|
|
1094
|
+
code: 200,
|
|
1095
|
+
}))).annotate({
|
|
1096
|
+
identifier: "MachinesSetMemoryLimitRequest",
|
|
1097
|
+
});
|
|
1098
|
+
export const MachinesShowRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1099
|
+
app_name: S.String.pipe(T.Label()),
|
|
1100
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1101
|
+
}).pipe(T.Http({
|
|
1102
|
+
method: "GET",
|
|
1103
|
+
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
1104
|
+
code: 200,
|
|
1105
|
+
}))).annotate({
|
|
1106
|
+
identifier: "MachinesShowRequest",
|
|
1107
|
+
});
|
|
1108
|
+
export const MachinesShowLeaseRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1109
|
+
app_name: S.String.pipe(T.Label()),
|
|
1110
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1111
|
+
}).pipe(T.Http({
|
|
1112
|
+
method: "GET",
|
|
1113
|
+
uri: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
1114
|
+
code: 200,
|
|
1115
|
+
}))).annotate({
|
|
1116
|
+
identifier: "MachinesShowLeaseRequest",
|
|
1117
|
+
});
|
|
1118
|
+
export const MachinesShowMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1119
|
+
app_name: S.String.pipe(T.Label()),
|
|
1120
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1121
|
+
}).pipe(T.Http({
|
|
1122
|
+
method: "GET",
|
|
1123
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1124
|
+
code: 200,
|
|
1125
|
+
}))).annotate({
|
|
1126
|
+
identifier: "MachinesShowMetadataRequest",
|
|
1127
|
+
});
|
|
1128
|
+
export const MachinesShowMetadataResponseBodyMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1129
|
+
export const MachinesShowMetadataResponse = /*@__PURE__*/ S.suspend(() => MachinesShowMetadataResponseBodyMap.pipe(T.RawResponseRoot())).annotate({
|
|
1130
|
+
identifier: "MachinesShowMetadataResponse",
|
|
1131
|
+
});
|
|
1132
|
+
export const MachinesSignalRequestSignal = /*@__PURE__*/ S.String;
|
|
1133
|
+
export const MachinesSignalRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1134
|
+
app_name: S.String.pipe(T.Label()),
|
|
1135
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1136
|
+
signal: S.optional(MachinesSignalRequestSignal),
|
|
1137
|
+
}).pipe(T.Http({
|
|
1138
|
+
method: "POST",
|
|
1139
|
+
uri: "/apps/{app_name}/machines/{machine_id}/signal",
|
|
1140
|
+
code: 200,
|
|
1141
|
+
}))).annotate({
|
|
1142
|
+
identifier: "MachinesSignalRequest",
|
|
1143
|
+
});
|
|
1144
|
+
export const MachinesSignalResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1145
|
+
identifier: "MachinesSignalResponse",
|
|
1146
|
+
});
|
|
1147
|
+
export const MachinesStartRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1148
|
+
app_name: S.String.pipe(T.Label()),
|
|
1149
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1150
|
+
}).pipe(T.Http({
|
|
1151
|
+
method: "POST",
|
|
1152
|
+
uri: "/apps/{app_name}/machines/{machine_id}/start",
|
|
1153
|
+
code: 200,
|
|
1154
|
+
}))).annotate({
|
|
1155
|
+
identifier: "MachinesStartRequest",
|
|
1156
|
+
});
|
|
1157
|
+
export const MachinesStartResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1158
|
+
identifier: "MachinesStartResponse",
|
|
1159
|
+
});
|
|
1160
|
+
export const MachinesStopRequestSignal = /*@__PURE__*/ S.String;
|
|
1161
|
+
export const MachinesStopRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1162
|
+
app_name: S.String.pipe(T.Label()),
|
|
1163
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1164
|
+
signal: S.optional(MachinesStopRequestSignal),
|
|
1165
|
+
timeout: S.optional(S.String),
|
|
1166
|
+
}).pipe(T.Http({
|
|
1167
|
+
method: "POST",
|
|
1168
|
+
uri: "/apps/{app_name}/machines/{machine_id}/stop",
|
|
1169
|
+
code: 200,
|
|
1170
|
+
}))).annotate({
|
|
1171
|
+
identifier: "MachinesStopRequest",
|
|
1172
|
+
});
|
|
1173
|
+
export const MachinesStopResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1174
|
+
identifier: "MachinesStopResponse",
|
|
1175
|
+
});
|
|
1176
|
+
export const MachinesSuspendRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1177
|
+
app_name: S.String.pipe(T.Label()),
|
|
1178
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1179
|
+
}).pipe(T.Http({
|
|
1180
|
+
method: "POST",
|
|
1181
|
+
uri: "/apps/{app_name}/machines/{machine_id}/suspend",
|
|
1182
|
+
code: 200,
|
|
1183
|
+
}))).annotate({
|
|
1184
|
+
identifier: "MachinesSuspendRequest",
|
|
1185
|
+
});
|
|
1186
|
+
export const MachinesSuspendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1187
|
+
identifier: "MachinesSuspendResponse",
|
|
1188
|
+
});
|
|
1189
|
+
export const MachinesUncordonRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1190
|
+
app_name: S.String.pipe(T.Label()),
|
|
1191
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1192
|
+
}).pipe(T.Http({
|
|
1193
|
+
method: "POST",
|
|
1194
|
+
uri: "/apps/{app_name}/machines/{machine_id}/uncordon",
|
|
1195
|
+
code: 200,
|
|
1196
|
+
}))).annotate({
|
|
1197
|
+
identifier: "MachinesUncordonRequest",
|
|
1198
|
+
});
|
|
1199
|
+
export const MachinesUncordonResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1200
|
+
identifier: "MachinesUncordonResponse",
|
|
1201
|
+
});
|
|
1202
|
+
export const MachinesUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1203
|
+
app_name: S.String.pipe(T.Label()),
|
|
1204
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1205
|
+
config: S.optional(FlyMachineConfig),
|
|
1206
|
+
current_version: S.optional(S.String),
|
|
1207
|
+
lease_ttl: S.optional(S.Number),
|
|
1208
|
+
min_secrets_version: S.optional(S.Number),
|
|
1209
|
+
name: S.optional(S.String),
|
|
1210
|
+
region: S.optional(S.String),
|
|
1211
|
+
skip_launch: S.optional(S.Boolean),
|
|
1212
|
+
skip_secrets: S.optional(S.Boolean),
|
|
1213
|
+
skip_service_registration: S.optional(S.Boolean),
|
|
1214
|
+
}).pipe(T.Http({
|
|
1215
|
+
method: "POST",
|
|
1216
|
+
uri: "/apps/{app_name}/machines/{machine_id}",
|
|
1217
|
+
code: 200,
|
|
1218
|
+
}))).annotate({
|
|
1219
|
+
identifier: "MachinesUpdateRequest",
|
|
1220
|
+
});
|
|
1221
|
+
export const MachinesUpdateMetadataRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1222
|
+
export const MachinesUpdateMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1223
|
+
app_name: S.String.pipe(T.Label()),
|
|
1224
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1225
|
+
machine_version: S.optional(S.String),
|
|
1226
|
+
metadata: S.optional(MachinesUpdateMetadataRequestMetadataMap),
|
|
1227
|
+
updated_at: S.optional(S.String),
|
|
1228
|
+
}).pipe(T.Http({
|
|
1229
|
+
method: "PUT",
|
|
1230
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1231
|
+
code: 200,
|
|
1232
|
+
}))).annotate({
|
|
1233
|
+
identifier: "MachinesUpdateMetadataRequest",
|
|
1234
|
+
});
|
|
1235
|
+
export const MachinesUpdateMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1236
|
+
identifier: "MachinesUpdateMetadataResponse",
|
|
1237
|
+
});
|
|
1238
|
+
export const MachinesUpdateMetadataRequestMetadataMap2 = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1239
|
+
export const MachinesUpdateMetadataRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1240
|
+
app_name: S.String.pipe(T.Label()),
|
|
1241
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1242
|
+
machine_version: S.optional(S.String),
|
|
1243
|
+
metadata: S.optional(MachinesUpdateMetadataRequestMetadataMap2),
|
|
1244
|
+
updated_at: S.optional(S.String),
|
|
1245
|
+
}).pipe(T.Http({
|
|
1246
|
+
method: "PATCH",
|
|
1247
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata",
|
|
1248
|
+
code: 200,
|
|
1249
|
+
}))).annotate({
|
|
1250
|
+
identifier: "MachinesUpdateMetadataRequest2",
|
|
1251
|
+
});
|
|
1252
|
+
export const MachinesUpdateMetadata2Response = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1253
|
+
identifier: "MachinesUpdateMetadata2Response",
|
|
1254
|
+
});
|
|
1255
|
+
export const MachinesUpsertMetadataRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1256
|
+
app_name: S.String.pipe(T.Label()),
|
|
1257
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1258
|
+
key: S.String.pipe(T.Label()),
|
|
1259
|
+
updated_at: S.optional(S.String),
|
|
1260
|
+
value: S.optional(S.String),
|
|
1261
|
+
}).pipe(T.Http({
|
|
1262
|
+
method: "POST",
|
|
1263
|
+
uri: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
1264
|
+
code: 200,
|
|
1265
|
+
}))).annotate({
|
|
1266
|
+
identifier: "MachinesUpsertMetadataRequest",
|
|
1267
|
+
});
|
|
1268
|
+
export const MachinesUpsertMetadataResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1269
|
+
identifier: "MachinesUpsertMetadataResponse",
|
|
1270
|
+
});
|
|
1271
|
+
export const MachinesWaitRequestState = /*@__PURE__*/ S.String;
|
|
1272
|
+
export const MachinesWaitRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1273
|
+
app_name: S.String.pipe(T.Label()),
|
|
1274
|
+
machine_id: S.String.pipe(T.Label()),
|
|
1275
|
+
version: S.optional(S.String.pipe(T.Query())),
|
|
1276
|
+
instance_id: S.optional(S.String.pipe(T.Query())),
|
|
1277
|
+
from_event_id: S.optional(S.String.pipe(T.Query())),
|
|
1278
|
+
timeout: S.optional(S.Number.pipe(T.Query())),
|
|
1279
|
+
state: S.optional(MachinesWaitRequestState.pipe(T.Query())),
|
|
1280
|
+
}).pipe(T.Http({
|
|
1281
|
+
method: "GET",
|
|
1282
|
+
uri: "/apps/{app_name}/machines/{machine_id}/wait",
|
|
1283
|
+
code: 200,
|
|
1284
|
+
}))).annotate({
|
|
1285
|
+
identifier: "MachinesWaitRequest",
|
|
1286
|
+
});
|
|
1287
|
+
export const WaitMachineResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1288
|
+
event_id: S.optional(S.String),
|
|
1289
|
+
ok: S.optional(S.Boolean),
|
|
1290
|
+
state: S.optional(S.String),
|
|
1291
|
+
version: S.optional(S.String),
|
|
1292
|
+
})).annotate({
|
|
1293
|
+
identifier: "WaitMachineResponse",
|
|
1294
|
+
});
|
|
1295
|
+
export const PlacementWeights = /*@__PURE__*/ S.Record(S.String, S.Number);
|
|
1296
|
+
export const PlatformPlacementsPostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1297
|
+
compute: S.optional(FlyMachineGuest),
|
|
1298
|
+
count: S.optional(S.Number),
|
|
1299
|
+
org_slug: S.String,
|
|
1300
|
+
region: S.optional(S.String),
|
|
1301
|
+
volume_name: S.optional(S.String),
|
|
1302
|
+
volume_size_bytes: S.optional(S.Number),
|
|
1303
|
+
weights: S.optional(PlacementWeights),
|
|
1304
|
+
}).pipe(T.Http({ method: "POST", uri: "/platform/placements", code: 200 }))).annotate({
|
|
1305
|
+
identifier: "PlatformPlacementsPostRequest",
|
|
1306
|
+
});
|
|
1307
|
+
export const PlacementRegionPlacement = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1308
|
+
concurrency: S.optional(S.Number),
|
|
1309
|
+
count: S.optional(S.Number),
|
|
1310
|
+
region: S.optional(S.String),
|
|
1311
|
+
})).annotate({
|
|
1312
|
+
identifier: "PlacementRegionPlacement",
|
|
1313
|
+
});
|
|
1314
|
+
export const MainGetPlacementsResponseRegionsList = /*@__PURE__*/ S.Array(PlacementRegionPlacement);
|
|
1315
|
+
export const MainGetPlacementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1316
|
+
regions: S.optional(MainGetPlacementsResponseRegionsList),
|
|
1317
|
+
})).annotate({
|
|
1318
|
+
identifier: "MainGetPlacementsResponse",
|
|
1319
|
+
});
|
|
1320
|
+
export const PlatformRegionsGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/platform/regions", code: 200 }))).annotate({
|
|
1321
|
+
identifier: "PlatformRegionsGetRequest",
|
|
1322
|
+
});
|
|
1323
|
+
export const MainRegionRow = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1324
|
+
code: S.optional(S.String),
|
|
1325
|
+
deprecated: S.optional(S.Boolean),
|
|
1326
|
+
gateway_available: S.optional(S.Boolean),
|
|
1327
|
+
geo_region: S.optional(S.String),
|
|
1328
|
+
latitude: S.optional(S.Number),
|
|
1329
|
+
longitude: S.optional(S.Number),
|
|
1330
|
+
name: S.optional(S.String),
|
|
1331
|
+
requires_paid_plan: S.optional(S.Boolean),
|
|
1332
|
+
})).annotate({ identifier: "MainRegionRow" });
|
|
1333
|
+
export const MainRegionResponseRegionsList = /*@__PURE__*/ S.Array(MainRegionRow);
|
|
1334
|
+
export const MainRegionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1335
|
+
nearest: S.optional(S.String),
|
|
1336
|
+
regions: S.optional(MainRegionResponseRegionsList),
|
|
1337
|
+
})).annotate({
|
|
1338
|
+
identifier: "MainRegionResponse",
|
|
1339
|
+
});
|
|
1340
|
+
export const SecretCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1341
|
+
app_name: S.String.pipe(T.Label()),
|
|
1342
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1343
|
+
value: S.optional(S.String),
|
|
1344
|
+
}).pipe(T.Http({
|
|
1345
|
+
method: "POST",
|
|
1346
|
+
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
1347
|
+
code: 200,
|
|
1348
|
+
}))).annotate({
|
|
1349
|
+
identifier: "SecretCreateRequest",
|
|
1350
|
+
});
|
|
1351
|
+
export const SetAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1352
|
+
Version: S.optional(S.Number),
|
|
1353
|
+
created_at: S.optional(S.String),
|
|
1354
|
+
digest: S.optional(S.String),
|
|
1355
|
+
name: S.optional(S.String),
|
|
1356
|
+
updated_at: S.optional(S.String),
|
|
1357
|
+
value: S.optional(S.String),
|
|
1358
|
+
version: S.optional(S.Number),
|
|
1359
|
+
})).annotate({
|
|
1360
|
+
identifier: "SetAppSecretResponse",
|
|
1361
|
+
});
|
|
1362
|
+
export const SecretDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1363
|
+
app_name: S.String.pipe(T.Label()),
|
|
1364
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1365
|
+
}).pipe(T.Http({
|
|
1366
|
+
method: "DELETE",
|
|
1367
|
+
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
1368
|
+
code: 200,
|
|
1369
|
+
}))).annotate({
|
|
1370
|
+
identifier: "SecretDeleteRequest",
|
|
1371
|
+
});
|
|
1372
|
+
export const DeleteAppSecretResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1373
|
+
Version: S.optional(S.Number),
|
|
1374
|
+
version: S.optional(S.Number),
|
|
1375
|
+
})).annotate({
|
|
1376
|
+
identifier: "DeleteAppSecretResponse",
|
|
1377
|
+
});
|
|
1378
|
+
export const SecretGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1379
|
+
app_name: S.String.pipe(T.Label()),
|
|
1380
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1381
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1382
|
+
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1383
|
+
}).pipe(T.Http({
|
|
1384
|
+
method: "GET",
|
|
1385
|
+
uri: "/apps/{app_name}/secrets/{secret_name}",
|
|
1386
|
+
code: 200,
|
|
1387
|
+
}))).annotate({
|
|
1388
|
+
identifier: "SecretGetRequest",
|
|
1389
|
+
});
|
|
1390
|
+
export const AppSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1391
|
+
created_at: S.optional(S.String),
|
|
1392
|
+
digest: S.optional(S.String),
|
|
1393
|
+
name: S.optional(S.String),
|
|
1394
|
+
updated_at: S.optional(S.String),
|
|
1395
|
+
value: S.optional(S.String),
|
|
1396
|
+
})).annotate({ identifier: "AppSecret" });
|
|
1397
|
+
export const SecretkeyDecryptRequestAssociatedDataList = /*@__PURE__*/ S.Array(S.Number);
|
|
1398
|
+
export const SecretkeyDecryptRequestCiphertextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1399
|
+
export const SecretkeyDecryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1400
|
+
app_name: S.String.pipe(T.Label()),
|
|
1401
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1402
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1403
|
+
associated_data: S.optional(SecretkeyDecryptRequestAssociatedDataList),
|
|
1404
|
+
ciphertext: S.optional(SecretkeyDecryptRequestCiphertextList),
|
|
1405
|
+
}).pipe(T.Http({
|
|
1406
|
+
method: "POST",
|
|
1407
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/decrypt",
|
|
1408
|
+
code: 200,
|
|
1409
|
+
}))).annotate({
|
|
1410
|
+
identifier: "SecretkeyDecryptRequest",
|
|
1411
|
+
});
|
|
1412
|
+
export const DecryptSecretkeyResponsePlaintextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1413
|
+
export const DecryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1414
|
+
plaintext: S.optional(DecryptSecretkeyResponsePlaintextList),
|
|
1415
|
+
})).annotate({
|
|
1416
|
+
identifier: "DecryptSecretkeyResponse",
|
|
1417
|
+
});
|
|
1418
|
+
export const SecretkeyDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1419
|
+
app_name: S.String.pipe(T.Label()),
|
|
1420
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1421
|
+
}).pipe(T.Http({
|
|
1422
|
+
method: "DELETE",
|
|
1423
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
1424
|
+
code: 200,
|
|
1425
|
+
}))).annotate({
|
|
1426
|
+
identifier: "SecretkeyDeleteRequest",
|
|
1427
|
+
});
|
|
1428
|
+
export const DeleteSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1429
|
+
Version: S.optional(S.Number),
|
|
1430
|
+
version: S.optional(S.Number),
|
|
1431
|
+
})).annotate({
|
|
1432
|
+
identifier: "DeleteSecretkeyResponse",
|
|
1433
|
+
});
|
|
1434
|
+
export const SecretkeyEncryptRequestAssociatedDataList = /*@__PURE__*/ S.Array(S.Number);
|
|
1435
|
+
export const SecretkeyEncryptRequestPlaintextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1436
|
+
export const SecretkeyEncryptRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1437
|
+
app_name: S.String.pipe(T.Label()),
|
|
1438
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1439
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1440
|
+
associated_data: S.optional(SecretkeyEncryptRequestAssociatedDataList),
|
|
1441
|
+
plaintext: S.optional(SecretkeyEncryptRequestPlaintextList),
|
|
1442
|
+
}).pipe(T.Http({
|
|
1443
|
+
method: "POST",
|
|
1444
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/encrypt",
|
|
1445
|
+
code: 200,
|
|
1446
|
+
}))).annotate({
|
|
1447
|
+
identifier: "SecretkeyEncryptRequest",
|
|
1448
|
+
});
|
|
1449
|
+
export const EncryptSecretkeyResponseCiphertextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1450
|
+
export const EncryptSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1451
|
+
ciphertext: S.optional(EncryptSecretkeyResponseCiphertextList),
|
|
1452
|
+
})).annotate({
|
|
1453
|
+
identifier: "EncryptSecretkeyResponse",
|
|
1454
|
+
});
|
|
1455
|
+
export const SecretkeyGenerateRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1456
|
+
export const SecretkeyGenerateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1457
|
+
app_name: S.String.pipe(T.Label()),
|
|
1458
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1459
|
+
type: S.optional(S.String),
|
|
1460
|
+
value: S.optional(SecretkeyGenerateRequestValueList),
|
|
1461
|
+
}).pipe(T.Http({
|
|
1462
|
+
method: "POST",
|
|
1463
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/generate",
|
|
1464
|
+
code: 200,
|
|
1465
|
+
}))).annotate({
|
|
1466
|
+
identifier: "SecretkeyGenerateRequest",
|
|
1467
|
+
});
|
|
1468
|
+
export const SetSecretkeyResponsePublicKeyList = /*@__PURE__*/ S.Array(S.Number);
|
|
1469
|
+
export const SetSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1470
|
+
Version: S.optional(S.Number),
|
|
1471
|
+
created_at: S.optional(S.String),
|
|
1472
|
+
name: S.optional(S.String),
|
|
1473
|
+
public_key: S.optional(SetSecretkeyResponsePublicKeyList),
|
|
1474
|
+
type: S.optional(S.String),
|
|
1475
|
+
updated_at: S.optional(S.String),
|
|
1476
|
+
version: S.optional(S.Number),
|
|
1477
|
+
})).annotate({
|
|
1478
|
+
identifier: "SetSecretkeyResponse",
|
|
1479
|
+
});
|
|
1480
|
+
export const SecretkeyGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1481
|
+
app_name: S.String.pipe(T.Label()),
|
|
1482
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1483
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1484
|
+
}).pipe(T.Http({
|
|
1485
|
+
method: "GET",
|
|
1486
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
1487
|
+
code: 200,
|
|
1488
|
+
}))).annotate({
|
|
1489
|
+
identifier: "SecretkeyGetRequest",
|
|
1490
|
+
});
|
|
1491
|
+
export const SecretKeyPublicKeyList = /*@__PURE__*/ S.Array(S.Number);
|
|
1492
|
+
export const SecretKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1493
|
+
created_at: S.optional(S.String),
|
|
1494
|
+
name: S.optional(S.String),
|
|
1495
|
+
public_key: S.optional(SecretKeyPublicKeyList),
|
|
1496
|
+
type: S.optional(S.String),
|
|
1497
|
+
updated_at: S.optional(S.String),
|
|
1498
|
+
})).annotate({ identifier: "SecretKey" });
|
|
1499
|
+
export const SecretkeySetRequestValueList = /*@__PURE__*/ S.Array(S.Number);
|
|
1500
|
+
export const SecretkeySetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1501
|
+
app_name: S.String.pipe(T.Label()),
|
|
1502
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1503
|
+
type: S.optional(S.String),
|
|
1504
|
+
value: S.optional(SecretkeySetRequestValueList),
|
|
1505
|
+
}).pipe(T.Http({
|
|
1506
|
+
method: "POST",
|
|
1507
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
1508
|
+
code: 200,
|
|
1509
|
+
}))).annotate({
|
|
1510
|
+
identifier: "SecretkeySetRequest",
|
|
1511
|
+
});
|
|
1512
|
+
export const SecretkeySignRequestPlaintextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1513
|
+
export const SecretkeySignRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1514
|
+
app_name: S.String.pipe(T.Label()),
|
|
1515
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1516
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1517
|
+
plaintext: S.optional(SecretkeySignRequestPlaintextList),
|
|
1518
|
+
}).pipe(T.Http({
|
|
1519
|
+
method: "POST",
|
|
1520
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/sign",
|
|
1521
|
+
code: 200,
|
|
1522
|
+
}))).annotate({
|
|
1523
|
+
identifier: "SecretkeySignRequest",
|
|
1524
|
+
});
|
|
1525
|
+
export const SignSecretkeyResponseSignatureList = /*@__PURE__*/ S.Array(S.Number);
|
|
1526
|
+
export const SignSecretkeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1527
|
+
signature: S.optional(SignSecretkeyResponseSignatureList),
|
|
1528
|
+
})).annotate({
|
|
1529
|
+
identifier: "SignSecretkeyResponse",
|
|
1530
|
+
});
|
|
1531
|
+
export const SecretkeysListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1532
|
+
app_name: S.String.pipe(T.Label()),
|
|
1533
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1534
|
+
types: S.optional(S.String.pipe(T.Query())),
|
|
1535
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/secretkeys", code: 200 }))).annotate({
|
|
1536
|
+
identifier: "SecretkeysListRequest",
|
|
1537
|
+
});
|
|
1538
|
+
export const SecretKeysSecretKeysList = /*@__PURE__*/ S.Array(SecretKey);
|
|
1539
|
+
export const SecretKeys = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1540
|
+
secret_keys: S.optional(SecretKeysSecretKeysList),
|
|
1541
|
+
})).annotate({ identifier: "SecretKeys" });
|
|
1542
|
+
export const SecretkeyVerifyRequestPlaintextList = /*@__PURE__*/ S.Array(S.Number);
|
|
1543
|
+
export const SecretkeyVerifyRequestSignatureList = /*@__PURE__*/ S.Array(S.Number);
|
|
1544
|
+
export const SecretkeyVerifyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1545
|
+
app_name: S.String.pipe(T.Label()),
|
|
1546
|
+
secret_name: S.String.pipe(T.Label()),
|
|
1547
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1548
|
+
plaintext: S.optional(SecretkeyVerifyRequestPlaintextList),
|
|
1549
|
+
signature: S.optional(SecretkeyVerifyRequestSignatureList),
|
|
1550
|
+
}).pipe(T.Http({
|
|
1551
|
+
method: "POST",
|
|
1552
|
+
uri: "/apps/{app_name}/secretkeys/{secret_name}/verify",
|
|
1553
|
+
code: 200,
|
|
1554
|
+
}))).annotate({
|
|
1555
|
+
identifier: "SecretkeyVerifyRequest",
|
|
1556
|
+
});
|
|
1557
|
+
export const SecretkeyVerifyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1558
|
+
identifier: "SecretkeyVerifyResponse",
|
|
1559
|
+
});
|
|
1560
|
+
export const SecretsListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1561
|
+
app_name: S.String.pipe(T.Label()),
|
|
1562
|
+
min_version: S.optional(S.String.pipe(T.Query())),
|
|
1563
|
+
show_secrets: S.optional(S.Boolean.pipe(T.Query())),
|
|
1564
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
1565
|
+
identifier: "SecretsListRequest",
|
|
1566
|
+
});
|
|
1567
|
+
export const AppSecretsSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1568
|
+
export const AppSecrets = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1569
|
+
secrets: S.optional(AppSecretsSecretsList),
|
|
1570
|
+
})).annotate({ identifier: "AppSecrets" });
|
|
1571
|
+
export const SecretsUpdateRequestValuesMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
1572
|
+
export const SecretsUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1573
|
+
app_name: S.String.pipe(T.Label()),
|
|
1574
|
+
values: S.optional(SecretsUpdateRequestValuesMap),
|
|
1575
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/secrets", code: 200 }))).annotate({
|
|
1576
|
+
identifier: "SecretsUpdateRequest",
|
|
1577
|
+
});
|
|
1578
|
+
export const AppSecretsUpdateRespSecretsList = /*@__PURE__*/ S.Array(AppSecret);
|
|
1579
|
+
export const AppSecretsUpdateResp = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1580
|
+
Version: S.optional(S.Number),
|
|
1581
|
+
secrets: S.optional(AppSecretsUpdateRespSecretsList),
|
|
1582
|
+
version: S.optional(S.Number),
|
|
1583
|
+
})).annotate({
|
|
1584
|
+
identifier: "AppSecretsUpdateResp",
|
|
1585
|
+
});
|
|
1586
|
+
export const TokensAuthenticateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1587
|
+
header: S.optional(S.String),
|
|
1588
|
+
}).pipe(T.Http({ method: "POST", uri: "/tokens/authenticate", code: 200 }))).annotate({
|
|
1589
|
+
identifier: "TokensAuthenticateRequest",
|
|
1590
|
+
});
|
|
1591
|
+
export const MacaroonCaveatSetCaveatsList = /*@__PURE__*/ S.Array(S.Unknown);
|
|
1592
|
+
export const MacaroonCaveatSet = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1593
|
+
caveats: S.optional(MacaroonCaveatSetCaveatsList),
|
|
1594
|
+
})).annotate({
|
|
1595
|
+
identifier: "MacaroonCaveatSet",
|
|
1596
|
+
});
|
|
1597
|
+
export const MacaroonNonceKidList = /*@__PURE__*/ S.Array(S.Number);
|
|
1598
|
+
export const MacaroonNonceRndList = /*@__PURE__*/ S.Array(S.Number);
|
|
1599
|
+
export const MacaroonNonce = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1600
|
+
kid: S.optional(MacaroonNonceKidList),
|
|
1601
|
+
proof: S.optional(S.Boolean),
|
|
1602
|
+
rnd: S.optional(MacaroonNonceRndList),
|
|
1603
|
+
})).annotate({ identifier: "MacaroonNonce" });
|
|
1604
|
+
export const RootVerifiedTokenPermissionTokenList = /*@__PURE__*/ S.Array(S.Number);
|
|
1605
|
+
export const RootVerifiedToken = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1606
|
+
caveats: S.optional(MacaroonCaveatSet),
|
|
1607
|
+
header: S.optional(S.String),
|
|
1608
|
+
nonce: S.optional(MacaroonNonce),
|
|
1609
|
+
permission_token: S.optional(RootVerifiedTokenPermissionTokenList),
|
|
1610
|
+
})).annotate({
|
|
1611
|
+
identifier: "RootVerifiedToken",
|
|
1612
|
+
});
|
|
1613
|
+
export const TokensAuthenticateResponseBodyList = /*@__PURE__*/ S.Array(RootVerifiedToken);
|
|
1614
|
+
export const TokensAuthenticateResponse = /*@__PURE__*/ S.suspend(() => TokensAuthenticateResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1615
|
+
identifier: "TokensAuthenticateResponse",
|
|
1616
|
+
});
|
|
1617
|
+
export const RessetAction = /*@__PURE__*/ S.Number;
|
|
1618
|
+
export const MainTokenAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
1619
|
+
export const MainTokenAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1620
|
+
action: S.optional(RessetAction),
|
|
1621
|
+
app_feature: S.optional(S.String),
|
|
1622
|
+
app_name: S.optional(S.String),
|
|
1623
|
+
command: S.optional(MainTokenAccessCommandList),
|
|
1624
|
+
machine_feature: S.optional(S.String),
|
|
1625
|
+
machine_id: S.optional(S.String),
|
|
1626
|
+
mutation: S.optional(S.String),
|
|
1627
|
+
org_feature: S.optional(S.String),
|
|
1628
|
+
org_slug: S.optional(S.String),
|
|
1629
|
+
source_machine: S.optional(S.String),
|
|
1630
|
+
storage_object: S.optional(S.String),
|
|
1631
|
+
volume_id: S.optional(S.String),
|
|
1632
|
+
})).annotate({
|
|
1633
|
+
identifier: "MainTokenAccess",
|
|
1634
|
+
});
|
|
1635
|
+
export const TokensAuthorizeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1636
|
+
access: S.optional(MainTokenAccess),
|
|
1637
|
+
header: S.optional(S.String),
|
|
1638
|
+
}).pipe(T.Http({ method: "POST", uri: "/tokens/authorize", code: 200 }))).annotate({
|
|
1639
|
+
identifier: "TokensAuthorizeRequest",
|
|
1640
|
+
});
|
|
1641
|
+
export const FlyioAccessCommandList = /*@__PURE__*/ S.Array(S.String);
|
|
1642
|
+
export const FlyioAccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1643
|
+
action: S.optional(RessetAction),
|
|
1644
|
+
app_feature: S.optional(S.String),
|
|
1645
|
+
appid: S.optional(S.Number),
|
|
1646
|
+
cluster: S.optional(S.String),
|
|
1647
|
+
command: S.optional(FlyioAccessCommandList),
|
|
1648
|
+
feature: S.optional(S.String),
|
|
1649
|
+
machine: S.optional(S.String),
|
|
1650
|
+
machine_feature: S.optional(S.String),
|
|
1651
|
+
mutation: S.optional(S.String),
|
|
1652
|
+
orgid: S.optional(S.Number),
|
|
1653
|
+
sourceApp: S.optional(S.String),
|
|
1654
|
+
sourceMachine: S.optional(S.String),
|
|
1655
|
+
sourceOrganization: S.optional(S.String),
|
|
1656
|
+
storage_object: S.optional(S.String),
|
|
1657
|
+
volume: S.optional(S.String),
|
|
1658
|
+
})).annotate({ identifier: "FlyioAccess" });
|
|
1659
|
+
export const AuthorizeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1660
|
+
access: S.optional(FlyioAccess),
|
|
1661
|
+
verified_token: S.optional(RootVerifiedToken),
|
|
1662
|
+
})).annotate({
|
|
1663
|
+
identifier: "AuthorizeResponse",
|
|
1664
|
+
});
|
|
1665
|
+
export const TokensRequestKmsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/tokens/kms", code: 200 }))).annotate({
|
|
1666
|
+
identifier: "TokensRequestKmsRequest",
|
|
1667
|
+
});
|
|
1668
|
+
export const TokensRequestKmsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1669
|
+
identifier: "TokensRequestKmsResponse",
|
|
1670
|
+
});
|
|
1671
|
+
export const TokensRequestOIDCRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1672
|
+
aud: S.optional(S.String),
|
|
1673
|
+
aws_principal_tags: S.optional(S.Boolean),
|
|
1674
|
+
}).pipe(T.Http({ method: "POST", uri: "/tokens/oidc", code: 200 }))).annotate({
|
|
1675
|
+
identifier: "TokensRequestOIDCRequest",
|
|
1676
|
+
});
|
|
1677
|
+
export const TokensRequestOIDCResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1678
|
+
identifier: "TokensRequestOIDCResponse",
|
|
1679
|
+
});
|
|
1680
|
+
export const VolumeDeleteRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1681
|
+
app_name: S.String.pipe(T.Label()),
|
|
1682
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1683
|
+
}).pipe(T.Http({
|
|
1684
|
+
method: "DELETE",
|
|
1685
|
+
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1686
|
+
code: 200,
|
|
1687
|
+
}))).annotate({
|
|
1688
|
+
identifier: "VolumeDeleteRequest",
|
|
1689
|
+
});
|
|
1690
|
+
export const VolumeHostStatus = /*@__PURE__*/ S.String;
|
|
1691
|
+
export const VolumeType = /*@__PURE__*/ S.String;
|
|
1692
|
+
export const Volume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1693
|
+
attached_alloc_id: S.optional(S.String),
|
|
1694
|
+
attached_machine_id: S.optional(S.String),
|
|
1695
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
1696
|
+
block_size: S.optional(S.Number),
|
|
1697
|
+
blocks: S.optional(S.Number),
|
|
1698
|
+
blocks_avail: S.optional(S.Number),
|
|
1699
|
+
blocks_free: S.optional(S.Number),
|
|
1700
|
+
bytes_total: S.optional(S.Number),
|
|
1701
|
+
bytes_used: S.optional(S.Number),
|
|
1702
|
+
created_at: S.optional(S.String),
|
|
1703
|
+
encrypted: S.optional(S.Boolean),
|
|
1704
|
+
fstype: S.optional(S.String),
|
|
1705
|
+
host_status: S.optional(VolumeHostStatus),
|
|
1706
|
+
id: S.optional(S.String),
|
|
1707
|
+
name: S.optional(S.String),
|
|
1708
|
+
region: S.optional(S.String),
|
|
1709
|
+
size_gb: S.optional(S.Number),
|
|
1710
|
+
snapshot_retention: S.optional(S.Number),
|
|
1711
|
+
state: S.optional(S.String),
|
|
1712
|
+
type: S.optional(VolumeType),
|
|
1713
|
+
zone: S.optional(S.String),
|
|
1714
|
+
})).annotate({ identifier: "Volume" });
|
|
1715
|
+
export const VolumesCreateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1716
|
+
app_name: S.String.pipe(T.Label()),
|
|
1717
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
1718
|
+
compute: S.optional(FlyMachineGuest),
|
|
1719
|
+
compute_image: S.optional(S.String),
|
|
1720
|
+
encrypted: S.optional(S.Boolean),
|
|
1721
|
+
fstype: S.optional(S.String),
|
|
1722
|
+
name: S.optional(S.String),
|
|
1723
|
+
region: S.optional(S.String),
|
|
1724
|
+
require_unique_zone: S.optional(S.Boolean),
|
|
1725
|
+
size_gb: S.optional(S.Number),
|
|
1726
|
+
snapshot_id: S.optional(S.String),
|
|
1727
|
+
snapshot_retention: S.optional(S.Number),
|
|
1728
|
+
source_volume_id: S.optional(S.String),
|
|
1729
|
+
unique_zone_app_wide: S.optional(S.Boolean),
|
|
1730
|
+
}).pipe(T.Http({ method: "POST", uri: "/apps/{app_name}/volumes", code: 200 }))).annotate({
|
|
1731
|
+
identifier: "VolumesCreateRequest",
|
|
1732
|
+
});
|
|
1733
|
+
export const VolumesExtendRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1734
|
+
app_name: S.String.pipe(T.Label()),
|
|
1735
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1736
|
+
size_gb: S.optional(S.Number),
|
|
1737
|
+
}).pipe(T.Http({
|
|
1738
|
+
method: "PUT",
|
|
1739
|
+
uri: "/apps/{app_name}/volumes/{volume_id}/extend",
|
|
1740
|
+
code: 200,
|
|
1741
|
+
}))).annotate({
|
|
1742
|
+
identifier: "VolumesExtendRequest",
|
|
1743
|
+
});
|
|
1744
|
+
export const ExtendVolumeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1745
|
+
needs_restart: S.optional(S.Boolean),
|
|
1746
|
+
volume: S.optional(Volume),
|
|
1747
|
+
})).annotate({
|
|
1748
|
+
identifier: "ExtendVolumeResponse",
|
|
1749
|
+
});
|
|
1750
|
+
export const VolumesGetByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1751
|
+
app_name: S.String.pipe(T.Label()),
|
|
1752
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1753
|
+
}).pipe(T.Http({
|
|
1754
|
+
method: "GET",
|
|
1755
|
+
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1756
|
+
code: 200,
|
|
1757
|
+
}))).annotate({
|
|
1758
|
+
identifier: "VolumesGetByIdRequest",
|
|
1759
|
+
});
|
|
1760
|
+
export const VolumesListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1761
|
+
app_name: S.String.pipe(T.Label()),
|
|
1762
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1763
|
+
}).pipe(T.Http({ method: "GET", uri: "/apps/{app_name}/volumes", code: 200 }))).annotate({
|
|
1764
|
+
identifier: "VolumesListRequest",
|
|
1765
|
+
});
|
|
1766
|
+
export const VolumesListResponseBodyList = /*@__PURE__*/ S.Array(Volume);
|
|
1767
|
+
export const VolumesListResponse = /*@__PURE__*/ S.suspend(() => VolumesListResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1768
|
+
identifier: "VolumesListResponse",
|
|
1769
|
+
});
|
|
1770
|
+
export const VolumesListSnapshotsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1771
|
+
app_name: S.String.pipe(T.Label()),
|
|
1772
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1773
|
+
}).pipe(T.Http({
|
|
1774
|
+
method: "GET",
|
|
1775
|
+
uri: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
1776
|
+
code: 200,
|
|
1777
|
+
}))).annotate({
|
|
1778
|
+
identifier: "VolumesListSnapshotsRequest",
|
|
1779
|
+
});
|
|
1780
|
+
export const VolumeSnapshot = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1781
|
+
created_at: S.optional(S.String),
|
|
1782
|
+
digest: S.optional(S.String),
|
|
1783
|
+
id: S.optional(S.String),
|
|
1784
|
+
retention_days: S.optional(S.Number),
|
|
1785
|
+
size: S.optional(S.Number),
|
|
1786
|
+
status: S.optional(S.String),
|
|
1787
|
+
volume_size: S.optional(S.Number),
|
|
1788
|
+
})).annotate({ identifier: "VolumeSnapshot" });
|
|
1789
|
+
export const VolumesListSnapshotsResponseBodyList = /*@__PURE__*/ S.Array(VolumeSnapshot);
|
|
1790
|
+
export const VolumesListSnapshotsResponse = /*@__PURE__*/ S.suspend(() => VolumesListSnapshotsResponseBodyList.pipe(T.RawResponseRoot())).annotate({
|
|
1791
|
+
identifier: "VolumesListSnapshotsResponse",
|
|
1792
|
+
});
|
|
1793
|
+
export const VolumesOrgListRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1794
|
+
org_slug: S.String.pipe(T.Label()),
|
|
1795
|
+
include_deleted: S.optional(S.Boolean.pipe(T.Query())),
|
|
1796
|
+
region: S.optional(S.String.pipe(T.Query())),
|
|
1797
|
+
state: S.optional(S.String.pipe(T.Query())),
|
|
1798
|
+
summary: S.optional(S.Boolean.pipe(T.Query())),
|
|
1799
|
+
updated_after: S.optional(S.String.pipe(T.Query())),
|
|
1800
|
+
cursor: S.optional(S.String.pipe(T.Query())),
|
|
1801
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1802
|
+
}).pipe(T.Http({ method: "GET", uri: "/orgs/{org_slug}/volumes", code: 200 }))).annotate({
|
|
1803
|
+
identifier: "VolumesOrgListRequest",
|
|
1804
|
+
});
|
|
1805
|
+
export const OrgVolumeHostStatus = /*@__PURE__*/ S.String;
|
|
1806
|
+
export const OrgVolumeType = /*@__PURE__*/ S.String;
|
|
1807
|
+
export const OrgVolume = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1808
|
+
app_name: S.optional(S.String),
|
|
1809
|
+
attached_alloc_id: S.optional(S.String),
|
|
1810
|
+
attached_machine_id: S.optional(S.String),
|
|
1811
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
1812
|
+
block_size: S.optional(S.Number),
|
|
1813
|
+
blocks: S.optional(S.Number),
|
|
1814
|
+
blocks_avail: S.optional(S.Number),
|
|
1815
|
+
blocks_free: S.optional(S.Number),
|
|
1816
|
+
bytes_total: S.optional(S.Number),
|
|
1817
|
+
bytes_used: S.optional(S.Number),
|
|
1818
|
+
created_at: S.optional(S.String),
|
|
1819
|
+
encrypted: S.optional(S.Boolean),
|
|
1820
|
+
fstype: S.optional(S.String),
|
|
1821
|
+
host_status: S.optional(OrgVolumeHostStatus),
|
|
1822
|
+
id: S.optional(S.String),
|
|
1823
|
+
name: S.optional(S.String),
|
|
1824
|
+
region: S.optional(S.String),
|
|
1825
|
+
size_gb: S.optional(S.Number),
|
|
1826
|
+
snapshot_retention: S.optional(S.Number),
|
|
1827
|
+
state: S.optional(S.String),
|
|
1828
|
+
type: S.optional(OrgVolumeType),
|
|
1829
|
+
updated_at: S.optional(S.String),
|
|
1830
|
+
zone: S.optional(S.String),
|
|
1831
|
+
})).annotate({ identifier: "OrgVolume" });
|
|
1832
|
+
export const OrgVolumesResponseVolumesList = /*@__PURE__*/ S.Array(OrgVolume);
|
|
1833
|
+
export const OrgVolumesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1834
|
+
last_updated_at: S.optional(S.String),
|
|
1835
|
+
last_volume_id: S.optional(S.String),
|
|
1836
|
+
next_cursor: S.optional(S.String),
|
|
1837
|
+
volumes: S.optional(OrgVolumesResponseVolumesList),
|
|
1838
|
+
})).annotate({
|
|
1839
|
+
identifier: "OrgVolumesResponse",
|
|
1840
|
+
});
|
|
1841
|
+
export const VolumesUpdateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1842
|
+
app_name: S.String.pipe(T.Label()),
|
|
1843
|
+
volume_id: S.String.pipe(T.Label()),
|
|
1844
|
+
auto_backup_enabled: S.optional(S.Boolean),
|
|
1845
|
+
snapshot_retention: S.optional(S.Number),
|
|
1846
|
+
}).pipe(T.Http({
|
|
1847
|
+
method: "PUT",
|
|
1848
|
+
uri: "/apps/{app_name}/volumes/{volume_id}",
|
|
1849
|
+
code: 200,
|
|
1850
|
+
}))).annotate({
|
|
1851
|
+
identifier: "VolumesUpdateRequest",
|
|
1852
|
+
});
|
|
1853
|
+
/** Request ACME certificate */
|
|
1854
|
+
export const appCertificatesAcmeCreate = /*@__PURE__*/ API.make(() => ({
|
|
1855
|
+
input: AppCertificatesAcmeCreateRequest,
|
|
1856
|
+
output: CertificateDetail,
|
|
1857
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
1858
|
+
protocol: FlyIoProtocol,
|
|
1859
|
+
retry: Retry.Retry,
|
|
1860
|
+
}));
|
|
1861
|
+
/** Remove ACME certificates */
|
|
1862
|
+
export const appCertificatesAcmeDelete = /*@__PURE__*/ API.make(() => ({
|
|
1863
|
+
input: AppCertificatesAcmeDeleteRequest,
|
|
1864
|
+
output: CertificateDetail,
|
|
1865
|
+
errors: [Forbidden, NotFound],
|
|
1866
|
+
protocol: FlyIoProtocol,
|
|
1867
|
+
retry: Retry.Retry,
|
|
1868
|
+
}));
|
|
1869
|
+
/** Check DNS and re-validate certificate */
|
|
1870
|
+
export const appCertificatesCheck = /*@__PURE__*/ API.make(() => ({
|
|
1871
|
+
input: AppCertificatesCheckRequest,
|
|
1872
|
+
output: CertificateCheckResponse,
|
|
1873
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1874
|
+
protocol: FlyIoProtocol,
|
|
1875
|
+
retry: Retry.Retry,
|
|
1876
|
+
}));
|
|
1877
|
+
/** Upload custom certificate */
|
|
1878
|
+
export const appCertificatesCustomCreate = /*@__PURE__*/ API.make(() => ({
|
|
1879
|
+
input: AppCertificatesCustomCreateRequest,
|
|
1880
|
+
output: CertificateDetail,
|
|
1881
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
1882
|
+
protocol: FlyIoProtocol,
|
|
1883
|
+
retry: Retry.Retry,
|
|
1884
|
+
}));
|
|
1885
|
+
/** Remove custom certificate */
|
|
1886
|
+
export const appCertificatesCustomDelete = /*@__PURE__*/ API.make(() => ({
|
|
1887
|
+
input: AppCertificatesCustomDeleteRequest,
|
|
1888
|
+
output: DestroyCustomCertificateResponse,
|
|
1889
|
+
errors: [Forbidden, NotFound],
|
|
1890
|
+
protocol: FlyIoProtocol,
|
|
1891
|
+
retry: Retry.Retry,
|
|
1892
|
+
}));
|
|
1893
|
+
/** Remove certificate */
|
|
1894
|
+
export const appCertificatesDelete = /*@__PURE__*/ API.make(() => ({
|
|
1895
|
+
input: AppCertificatesDeleteRequest,
|
|
1896
|
+
output: AppCertificatesDeleteResponse,
|
|
1897
|
+
errors: [Forbidden, NotFound],
|
|
1898
|
+
protocol: FlyIoProtocol,
|
|
1899
|
+
retry: Retry.Retry,
|
|
1900
|
+
}));
|
|
1901
|
+
/** List certificates for app */
|
|
1902
|
+
export const appCertificatesList = /*@__PURE__*/ API.make(() => ({
|
|
1903
|
+
input: AppCertificatesListRequest,
|
|
1904
|
+
output: ListCertificatesResponse,
|
|
1905
|
+
errors: [Forbidden, NotFound],
|
|
1906
|
+
protocol: FlyIoProtocol,
|
|
1907
|
+
retry: Retry.Retry,
|
|
1908
|
+
}));
|
|
1909
|
+
/** Get certificate details */
|
|
1910
|
+
export const appCertificatesShow = /*@__PURE__*/ API.make(() => ({
|
|
1911
|
+
input: AppCertificatesShowRequest,
|
|
1912
|
+
output: CertificateDetail,
|
|
1913
|
+
errors: [Forbidden, NotFound],
|
|
1914
|
+
protocol: FlyIoProtocol,
|
|
1915
|
+
retry: Retry.Retry,
|
|
1916
|
+
}));
|
|
1917
|
+
/** Create App deploy token */
|
|
1918
|
+
export const appCreateDeployToken = /*@__PURE__*/ API.make(() => ({
|
|
1919
|
+
input: AppCreateDeployTokenRequest,
|
|
1920
|
+
output: CreateAppResponse,
|
|
1921
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1922
|
+
protocol: FlyIoProtocol,
|
|
1923
|
+
retry: Retry.Retry,
|
|
1924
|
+
}));
|
|
1925
|
+
/** Assign new IP address to app */
|
|
1926
|
+
export const appIPAssignmentsCreate = /*@__PURE__*/ API.make(() => ({
|
|
1927
|
+
input: AppIPAssignmentsCreateRequest,
|
|
1928
|
+
output: IPAssignment,
|
|
1929
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1930
|
+
protocol: FlyIoProtocol,
|
|
1931
|
+
retry: Retry.Retry,
|
|
1932
|
+
}));
|
|
1933
|
+
/** Remove IP assignment from app */
|
|
1934
|
+
export const appIPAssignmentsDelete = /*@__PURE__*/ API.make(() => ({
|
|
1935
|
+
input: AppIPAssignmentsDeleteRequest,
|
|
1936
|
+
output: AppIPAssignmentsDeleteResponse,
|
|
1937
|
+
errors: [Forbidden, NotFound],
|
|
1938
|
+
protocol: FlyIoProtocol,
|
|
1939
|
+
retry: Retry.Retry,
|
|
1940
|
+
}));
|
|
1941
|
+
/** List IP assignments for app */
|
|
1942
|
+
export const appIPAssignmentsList = /*@__PURE__*/ API.make(() => ({
|
|
1943
|
+
input: AppIPAssignmentsListRequest,
|
|
1944
|
+
output: ListIPAssignmentsResponse,
|
|
1945
|
+
errors: [Forbidden, NotFound],
|
|
1946
|
+
protocol: FlyIoProtocol,
|
|
1947
|
+
retry: Retry.Retry,
|
|
1948
|
+
}));
|
|
1949
|
+
/** Create App Create an app with the specified details in the request body. */
|
|
1950
|
+
export const appsCreate = /*@__PURE__*/ API.make(() => ({
|
|
1951
|
+
input: AppsCreateRequest,
|
|
1952
|
+
output: AppsCreateResponse,
|
|
1953
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1954
|
+
protocol: FlyIoProtocol,
|
|
1955
|
+
retry: Retry.Retry,
|
|
1956
|
+
}));
|
|
1957
|
+
/** Destroy App Delete an app by its name. */
|
|
1958
|
+
export const appsDelete = /*@__PURE__*/ API.make(() => ({
|
|
1959
|
+
input: AppsDeleteRequest,
|
|
1960
|
+
output: AppsDeleteResponse,
|
|
1961
|
+
errors: [Forbidden, NotFound],
|
|
1962
|
+
protocol: FlyIoProtocol,
|
|
1963
|
+
retry: Retry.Retry,
|
|
1964
|
+
}));
|
|
1965
|
+
/** List Apps List all apps with the ability to filter by organization slug. */
|
|
1966
|
+
export const appsList = /*@__PURE__*/ API.make(() => ({
|
|
1967
|
+
input: AppsListRequest,
|
|
1968
|
+
output: ListAppsResponse,
|
|
1969
|
+
errors: [Forbidden],
|
|
1970
|
+
protocol: FlyIoProtocol,
|
|
1971
|
+
retry: Retry.Retry,
|
|
1972
|
+
}));
|
|
1973
|
+
/** Get App Retrieve details about a specific app by its name. */
|
|
1974
|
+
export const appsShow = /*@__PURE__*/ API.make(() => ({
|
|
1975
|
+
input: AppsShowRequest,
|
|
1976
|
+
output: App,
|
|
1977
|
+
errors: [Forbidden, NotFound],
|
|
1978
|
+
protocol: FlyIoProtocol,
|
|
1979
|
+
retry: Retry.Retry,
|
|
1980
|
+
}));
|
|
1981
|
+
/** Create Snapshot Create a snapshot for a specific volume within an app. */
|
|
1982
|
+
export const createVolumeSnapshot = /*@__PURE__*/ API.make(() => ({
|
|
1983
|
+
input: CreateVolumeSnapshotRequest,
|
|
1984
|
+
output: CreateVolumeSnapshotResponse,
|
|
1985
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
1986
|
+
protocol: FlyIoProtocol,
|
|
1987
|
+
retry: Retry.Retry,
|
|
1988
|
+
}));
|
|
1989
|
+
/** Get Current Token Information Get information about the current macaroon token(s), including organizations, apps, user identity hashes, and machine restrictions */
|
|
1990
|
+
export const currentTokenShow = /*@__PURE__*/ API.make(() => ({
|
|
1991
|
+
input: CurrentTokenShowRequest,
|
|
1992
|
+
output: CurrentTokenResponse,
|
|
1993
|
+
errors: [],
|
|
1994
|
+
protocol: FlyIoProtocol,
|
|
1995
|
+
retry: Retry.Retry,
|
|
1996
|
+
}));
|
|
1997
|
+
/** Cordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
|
|
1998
|
+
export const machinesCordon = /*@__PURE__*/ API.make(() => ({
|
|
1999
|
+
input: MachinesCordonRequest,
|
|
2000
|
+
output: MachinesCordonResponse,
|
|
2001
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2002
|
+
protocol: FlyIoProtocol,
|
|
2003
|
+
retry: Retry.Retry,
|
|
2004
|
+
}));
|
|
2005
|
+
/** Create Machine Create a Machine within a specific app using the details provided in the request body. **Important**: This request can fail, and you’re responsible for handling that failure. If you ask for a large Machine, or a Machine in a region we happen to be at capacity for, you might need to retry the request, or to fall back to another region. If you’re working directly with the Machines API, you’re taking some responsibility for your own orchestration! */
|
|
2006
|
+
export const machinesCreate = /*@__PURE__*/ API.make(() => ({
|
|
2007
|
+
input: MachinesCreateRequest,
|
|
2008
|
+
output: Machine,
|
|
2009
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2010
|
+
protocol: FlyIoProtocol,
|
|
2011
|
+
retry: Retry.Retry,
|
|
2012
|
+
}));
|
|
2013
|
+
/** Create Lease Create a lease for a specific Machine within an app using the details provided in the request body. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2014
|
+
export const machinesCreateLease = /*@__PURE__*/ API.make(() => ({
|
|
2015
|
+
input: MachinesCreateLeaseRequest,
|
|
2016
|
+
output: Lease,
|
|
2017
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2018
|
+
protocol: FlyIoProtocol,
|
|
2019
|
+
retry: Retry.Retry,
|
|
2020
|
+
}));
|
|
2021
|
+
/** Destroy Machine Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running. */
|
|
2022
|
+
export const machinesDelete = /*@__PURE__*/ API.make(() => ({
|
|
2023
|
+
input: MachinesDeleteRequest,
|
|
2024
|
+
output: MachinesDeleteResponse,
|
|
2025
|
+
errors: [Forbidden, NotFound],
|
|
2026
|
+
protocol: FlyIoProtocol,
|
|
2027
|
+
retry: Retry.Retry,
|
|
2028
|
+
}));
|
|
2029
|
+
/** Delete Metadata Delete metadata for a specific Machine within an app by providing a metadata key. */
|
|
2030
|
+
export const machinesDeleteMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2031
|
+
input: MachinesDeleteMetadataRequest,
|
|
2032
|
+
output: MachinesDeleteMetadataResponse,
|
|
2033
|
+
errors: [Forbidden, NotFound],
|
|
2034
|
+
protocol: FlyIoProtocol,
|
|
2035
|
+
retry: Retry.Retry,
|
|
2036
|
+
}));
|
|
2037
|
+
/** Execute Command Execute a command on a specific Machine and return the raw command output bytes. */
|
|
2038
|
+
export const machinesExec = /*@__PURE__*/ API.make(() => ({
|
|
2039
|
+
input: MachinesExecRequest,
|
|
2040
|
+
output: Flydv1ExecResponse,
|
|
2041
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2042
|
+
protocol: FlyIoProtocol,
|
|
2043
|
+
retry: Retry.Retry,
|
|
2044
|
+
}));
|
|
2045
|
+
/** Get Machine Memory Get current memory limit and available capacity for a machine */
|
|
2046
|
+
export const machinesGetMemory = /*@__PURE__*/ API.make(() => ({
|
|
2047
|
+
input: MachinesGetMemoryRequest,
|
|
2048
|
+
output: MainMemoryResponse,
|
|
2049
|
+
errors: [Forbidden, NotFound],
|
|
2050
|
+
protocol: FlyIoProtocol,
|
|
2051
|
+
retry: Retry.Retry,
|
|
2052
|
+
}));
|
|
2053
|
+
/** Get Metadata Value Get the value of a specific metadata key */
|
|
2054
|
+
export const machinesGetMetadataKey = /*@__PURE__*/ API.make(() => ({
|
|
2055
|
+
input: MachinesGetMetadataKeyRequest,
|
|
2056
|
+
output: MetadataValueResponse,
|
|
2057
|
+
errors: [NotFound],
|
|
2058
|
+
protocol: FlyIoProtocol,
|
|
2059
|
+
retry: Retry.Retry,
|
|
2060
|
+
}));
|
|
2061
|
+
/** List Machines List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region. */
|
|
2062
|
+
export const machinesList = /*@__PURE__*/ API.make(() => ({
|
|
2063
|
+
input: MachinesListRequest,
|
|
2064
|
+
output: MachinesListResponse,
|
|
2065
|
+
errors: [Forbidden, NotFound],
|
|
2066
|
+
protocol: FlyIoProtocol,
|
|
2067
|
+
retry: Retry.Retry,
|
|
2068
|
+
}));
|
|
2069
|
+
/** List Events List all events associated with a specific Machine within an app. */
|
|
2070
|
+
export const machinesListEvents = /*@__PURE__*/ API.make(() => ({
|
|
2071
|
+
input: MachinesListEventsRequest,
|
|
2072
|
+
output: MachinesListEventsResponse,
|
|
2073
|
+
errors: [Forbidden, NotFound],
|
|
2074
|
+
protocol: FlyIoProtocol,
|
|
2075
|
+
retry: Retry.Retry,
|
|
2076
|
+
}));
|
|
2077
|
+
/** List Processes List all processes running on a specific Machine within an app, with optional sorting parameters. */
|
|
2078
|
+
export const machinesListProcesses = /*@__PURE__*/ API.make(() => ({
|
|
2079
|
+
input: MachinesListProcessesRequest,
|
|
2080
|
+
output: MachinesListProcessesResponse,
|
|
2081
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2082
|
+
protocol: FlyIoProtocol,
|
|
2083
|
+
retry: Retry.Retry,
|
|
2084
|
+
}));
|
|
2085
|
+
/** List Versions List all versions of the configuration for a specific Machine within an app. */
|
|
2086
|
+
export const machinesListVersions = /*@__PURE__*/ API.make(() => ({
|
|
2087
|
+
input: MachinesListVersionsRequest,
|
|
2088
|
+
output: MachinesListVersionsResponse,
|
|
2089
|
+
errors: [Forbidden, NotFound],
|
|
2090
|
+
protocol: FlyIoProtocol,
|
|
2091
|
+
retry: Retry.Retry,
|
|
2092
|
+
}));
|
|
2093
|
+
/** List All Machines List all Machines associated with a specific organization. Machines are sorted by their `updated_at` timestamps, oldest to newest. This API call represents "a point in time". Recent machine changes, including creations and destructions, may take time to propagate. When polling with `updated_after`, offset your timestamps to catch late-arriving events. */
|
|
2094
|
+
export const machinesOrgList = /*@__PURE__*/ API.make(() => ({
|
|
2095
|
+
input: MachinesOrgListRequest,
|
|
2096
|
+
output: OrgMachinesResponse,
|
|
2097
|
+
errors: [Forbidden, NotFound],
|
|
2098
|
+
protocol: FlyIoProtocol,
|
|
2099
|
+
retry: Retry.Retry,
|
|
2100
|
+
}));
|
|
2101
|
+
/** Reclaim Machine Memory Trigger the balloon device to reclaim memory from a machine */
|
|
2102
|
+
export const machinesReclaimMemory = /*@__PURE__*/ API.make(() => ({
|
|
2103
|
+
input: MachinesReclaimMemoryRequest,
|
|
2104
|
+
output: MainReclaimMemoryResponse,
|
|
2105
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2106
|
+
protocol: FlyIoProtocol,
|
|
2107
|
+
retry: Retry.Retry,
|
|
2108
|
+
}));
|
|
2109
|
+
/** Release Lease Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2110
|
+
export const machinesReleaseLease = /*@__PURE__*/ API.make(() => ({
|
|
2111
|
+
input: MachinesReleaseLeaseRequest,
|
|
2112
|
+
output: MachinesReleaseLeaseResponse,
|
|
2113
|
+
errors: [Forbidden, NotFound],
|
|
2114
|
+
protocol: FlyIoProtocol,
|
|
2115
|
+
retry: Retry.Retry,
|
|
2116
|
+
}));
|
|
2117
|
+
/** Restart Machine Restart a specific Machine within an app, with an optional timeout parameter. */
|
|
2118
|
+
export const machinesRestart = /*@__PURE__*/ API.make(() => ({
|
|
2119
|
+
input: MachinesRestartRequest,
|
|
2120
|
+
output: MachinesRestartResponse,
|
|
2121
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2122
|
+
protocol: FlyIoProtocol,
|
|
2123
|
+
retry: Retry.Retry,
|
|
2124
|
+
}));
|
|
2125
|
+
/** Set Machine Memory Limit Set the memory limit for a machine using the balloon device */
|
|
2126
|
+
export const machinesSetMemoryLimit = /*@__PURE__*/ API.make(() => ({
|
|
2127
|
+
input: MachinesSetMemoryLimitRequest,
|
|
2128
|
+
output: MainMemoryResponse,
|
|
2129
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2130
|
+
protocol: FlyIoProtocol,
|
|
2131
|
+
retry: Retry.Retry,
|
|
2132
|
+
}));
|
|
2133
|
+
/** Get Machine Get details of a specific Machine within an app by the Machine ID. */
|
|
2134
|
+
export const machinesShow = /*@__PURE__*/ API.make(() => ({
|
|
2135
|
+
input: MachinesShowRequest,
|
|
2136
|
+
output: Machine,
|
|
2137
|
+
errors: [Forbidden, NotFound],
|
|
2138
|
+
protocol: FlyIoProtocol,
|
|
2139
|
+
retry: Retry.Retry,
|
|
2140
|
+
}));
|
|
2141
|
+
/** Get Lease Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine. */
|
|
2142
|
+
export const machinesShowLease = /*@__PURE__*/ API.make(() => ({
|
|
2143
|
+
input: MachinesShowLeaseRequest,
|
|
2144
|
+
output: Lease,
|
|
2145
|
+
errors: [Forbidden, NotFound],
|
|
2146
|
+
protocol: FlyIoProtocol,
|
|
2147
|
+
retry: Retry.Retry,
|
|
2148
|
+
}));
|
|
2149
|
+
/** Get Metadata Retrieve metadata for a specific Machine within an app. */
|
|
2150
|
+
export const machinesShowMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2151
|
+
input: MachinesShowMetadataRequest,
|
|
2152
|
+
output: MachinesShowMetadataResponse,
|
|
2153
|
+
errors: [Forbidden, NotFound],
|
|
2154
|
+
protocol: FlyIoProtocol,
|
|
2155
|
+
retry: Retry.Retry,
|
|
2156
|
+
}));
|
|
2157
|
+
/** Signal Machine Send a signal to a specific Machine within an app using the details provided in the request body. */
|
|
2158
|
+
export const machinesSignal = /*@__PURE__*/ API.make(() => ({
|
|
2159
|
+
input: MachinesSignalRequest,
|
|
2160
|
+
output: MachinesSignalResponse,
|
|
2161
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2162
|
+
protocol: FlyIoProtocol,
|
|
2163
|
+
retry: Retry.Retry,
|
|
2164
|
+
}));
|
|
2165
|
+
/** Start Machine Start a specific Machine within an app. */
|
|
2166
|
+
export const machinesStart = /*@__PURE__*/ API.make(() => ({
|
|
2167
|
+
input: MachinesStartRequest,
|
|
2168
|
+
output: MachinesStartResponse,
|
|
2169
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2170
|
+
protocol: FlyIoProtocol,
|
|
2171
|
+
retry: Retry.Retry,
|
|
2172
|
+
}));
|
|
2173
|
+
/** Stop Machine Stop a specific Machine within an app, with an optional request body to specify signal and timeout. */
|
|
2174
|
+
export const machinesStop = /*@__PURE__*/ API.make(() => ({
|
|
2175
|
+
input: MachinesStopRequest,
|
|
2176
|
+
output: MachinesStopResponse,
|
|
2177
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2178
|
+
protocol: FlyIoProtocol,
|
|
2179
|
+
retry: Retry.Retry,
|
|
2180
|
+
}));
|
|
2181
|
+
/** Suspend Machine Suspend a specific Machine within an app. The next start operation will attempt (but is not guaranteed) to resume the Machine from a snapshot taken at suspension time, rather than performing a cold boot. */
|
|
2182
|
+
export const machinesSuspend = /*@__PURE__*/ API.make(() => ({
|
|
2183
|
+
input: MachinesSuspendRequest,
|
|
2184
|
+
output: MachinesSuspendResponse,
|
|
2185
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2186
|
+
protocol: FlyIoProtocol,
|
|
2187
|
+
retry: Retry.Retry,
|
|
2188
|
+
}));
|
|
2189
|
+
/** Uncordon Machine “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones. */
|
|
2190
|
+
export const machinesUncordon = /*@__PURE__*/ API.make(() => ({
|
|
2191
|
+
input: MachinesUncordonRequest,
|
|
2192
|
+
output: MachinesUncordonResponse,
|
|
2193
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2194
|
+
protocol: FlyIoProtocol,
|
|
2195
|
+
retry: Retry.Retry,
|
|
2196
|
+
}));
|
|
2197
|
+
/** Update Machine Update a Machine's configuration using the details provided in the request body. */
|
|
2198
|
+
export const machinesUpdate = /*@__PURE__*/ API.make(() => ({
|
|
2199
|
+
input: MachinesUpdateRequest,
|
|
2200
|
+
output: Machine,
|
|
2201
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2202
|
+
protocol: FlyIoProtocol,
|
|
2203
|
+
retry: Retry.Retry,
|
|
2204
|
+
}));
|
|
2205
|
+
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2206
|
+
export const machinesUpdateMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2207
|
+
input: MachinesUpdateMetadataRequest,
|
|
2208
|
+
output: MachinesUpdateMetadataResponse,
|
|
2209
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2210
|
+
protocol: FlyIoProtocol,
|
|
2211
|
+
retry: Retry.Retry,
|
|
2212
|
+
}));
|
|
2213
|
+
/** Update Metadata (set/remove multiple keys) Update multiple metadata keys at once. Null values and empty strings remove keys. + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed. */
|
|
2214
|
+
export const machinesUpdateMetadata2 = /*@__PURE__*/ API.make(() => ({
|
|
2215
|
+
input: MachinesUpdateMetadataRequest2,
|
|
2216
|
+
output: MachinesUpdateMetadata2Response,
|
|
2217
|
+
errors: [BadRequest],
|
|
2218
|
+
protocol: FlyIoProtocol,
|
|
2219
|
+
retry: Retry.Retry,
|
|
2220
|
+
}));
|
|
2221
|
+
/** Upsert Metadata Key Update metadata for a specific machine within an app by providing a metadata key. */
|
|
2222
|
+
export const machinesUpsertMetadata = /*@__PURE__*/ API.make(() => ({
|
|
2223
|
+
input: MachinesUpsertMetadataRequest,
|
|
2224
|
+
output: MachinesUpsertMetadataResponse,
|
|
2225
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2226
|
+
protocol: FlyIoProtocol,
|
|
2227
|
+
retry: Retry.Retry,
|
|
2228
|
+
}));
|
|
2229
|
+
/** Wait for State Wait for a Machine to reach a specific state. Specify the desired state with the state parameter. See the [Machine states table](https://fly.io/docs/machines/working-with-machines/#machine-states) for a list of possible states. The default for this parameter is `started`. This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter. */
|
|
2230
|
+
export const machinesWait = /*@__PURE__*/ API.make(() => ({
|
|
2231
|
+
input: MachinesWaitRequest,
|
|
2232
|
+
output: WaitMachineResponse,
|
|
2233
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2234
|
+
protocol: FlyIoProtocol,
|
|
2235
|
+
retry: Retry.Retry,
|
|
2236
|
+
}));
|
|
2237
|
+
/** Get Placements Simulates placing the specified number of machines into regions, depending on available capacity and limits. */
|
|
2238
|
+
export const platformPlacementsPost = /*@__PURE__*/ API.make(() => ({
|
|
2239
|
+
input: PlatformPlacementsPostRequest,
|
|
2240
|
+
output: MainGetPlacementsResponse,
|
|
2241
|
+
errors: [BadRequest, Forbidden],
|
|
2242
|
+
protocol: FlyIoProtocol,
|
|
2243
|
+
retry: Retry.Retry,
|
|
2244
|
+
}));
|
|
2245
|
+
/** Get Regions List all regions on the platform with their details. */
|
|
2246
|
+
export const platformRegionsGet = /*@__PURE__*/ API.make(() => ({
|
|
2247
|
+
input: PlatformRegionsGetRequest,
|
|
2248
|
+
output: MainRegionResponse,
|
|
2249
|
+
errors: [Forbidden],
|
|
2250
|
+
protocol: FlyIoProtocol,
|
|
2251
|
+
retry: Retry.Retry,
|
|
2252
|
+
}));
|
|
2253
|
+
/** Create or update Secret */
|
|
2254
|
+
export const secretCreate = /*@__PURE__*/ API.make(() => ({
|
|
2255
|
+
input: SecretCreateRequest,
|
|
2256
|
+
output: SetAppSecretResponse,
|
|
2257
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2258
|
+
protocol: FlyIoProtocol,
|
|
2259
|
+
retry: Retry.Retry,
|
|
2260
|
+
}));
|
|
2261
|
+
/** Delete an app secret */
|
|
2262
|
+
export const secretDelete = /*@__PURE__*/ API.make(() => ({
|
|
2263
|
+
input: SecretDeleteRequest,
|
|
2264
|
+
output: DeleteAppSecretResponse,
|
|
2265
|
+
errors: [Forbidden, NotFound],
|
|
2266
|
+
protocol: FlyIoProtocol,
|
|
2267
|
+
retry: Retry.Retry,
|
|
2268
|
+
}));
|
|
2269
|
+
/** Get an app secret */
|
|
2270
|
+
export const secretGet = /*@__PURE__*/ API.make(() => ({
|
|
2271
|
+
input: SecretGetRequest,
|
|
2272
|
+
output: AppSecret,
|
|
2273
|
+
errors: [Forbidden, NotFound],
|
|
2274
|
+
protocol: FlyIoProtocol,
|
|
2275
|
+
retry: Retry.Retry,
|
|
2276
|
+
}));
|
|
2277
|
+
/** Decrypt with a secret key */
|
|
2278
|
+
export const secretkeyDecrypt = /*@__PURE__*/ API.make(() => ({
|
|
2279
|
+
input: SecretkeyDecryptRequest,
|
|
2280
|
+
output: DecryptSecretkeyResponse,
|
|
2281
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2282
|
+
protocol: FlyIoProtocol,
|
|
2283
|
+
retry: Retry.Retry,
|
|
2284
|
+
}));
|
|
2285
|
+
/** Delete an app's secret key */
|
|
2286
|
+
export const secretkeyDelete = /*@__PURE__*/ API.make(() => ({
|
|
2287
|
+
input: SecretkeyDeleteRequest,
|
|
2288
|
+
output: DeleteSecretkeyResponse,
|
|
2289
|
+
errors: [Forbidden, NotFound],
|
|
2290
|
+
protocol: FlyIoProtocol,
|
|
2291
|
+
retry: Retry.Retry,
|
|
2292
|
+
}));
|
|
2293
|
+
/** Encrypt with a secret key */
|
|
2294
|
+
export const secretkeyEncrypt = /*@__PURE__*/ API.make(() => ({
|
|
2295
|
+
input: SecretkeyEncryptRequest,
|
|
2296
|
+
output: EncryptSecretkeyResponse,
|
|
2297
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2298
|
+
protocol: FlyIoProtocol,
|
|
2299
|
+
retry: Retry.Retry,
|
|
2300
|
+
}));
|
|
2301
|
+
/** Generate a random secret key */
|
|
2302
|
+
export const secretkeyGenerate = /*@__PURE__*/ API.make(() => ({
|
|
2303
|
+
input: SecretkeyGenerateRequest,
|
|
2304
|
+
output: SetSecretkeyResponse,
|
|
2305
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2306
|
+
protocol: FlyIoProtocol,
|
|
2307
|
+
retry: Retry.Retry,
|
|
2308
|
+
}));
|
|
2309
|
+
/** Get an app's secret key */
|
|
2310
|
+
export const secretkeyGet = /*@__PURE__*/ API.make(() => ({
|
|
2311
|
+
input: SecretkeyGetRequest,
|
|
2312
|
+
output: SecretKey,
|
|
2313
|
+
errors: [Forbidden, NotFound],
|
|
2314
|
+
protocol: FlyIoProtocol,
|
|
2315
|
+
retry: Retry.Retry,
|
|
2316
|
+
}));
|
|
2317
|
+
/** Create or update a secret key */
|
|
2318
|
+
export const secretkeySet = /*@__PURE__*/ API.make(() => ({
|
|
2319
|
+
input: SecretkeySetRequest,
|
|
2320
|
+
output: SetSecretkeyResponse,
|
|
2321
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2322
|
+
protocol: FlyIoProtocol,
|
|
2323
|
+
retry: Retry.Retry,
|
|
2324
|
+
}));
|
|
2325
|
+
/** Sign with a secret key */
|
|
2326
|
+
export const secretkeySign = /*@__PURE__*/ API.make(() => ({
|
|
2327
|
+
input: SecretkeySignRequest,
|
|
2328
|
+
output: SignSecretkeyResponse,
|
|
2329
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2330
|
+
protocol: FlyIoProtocol,
|
|
2331
|
+
retry: Retry.Retry,
|
|
2332
|
+
}));
|
|
2333
|
+
/** List secret keys belonging to an app */
|
|
2334
|
+
export const secretkeysList = /*@__PURE__*/ API.make(() => ({
|
|
2335
|
+
input: SecretkeysListRequest,
|
|
2336
|
+
output: SecretKeys,
|
|
2337
|
+
errors: [Forbidden, NotFound],
|
|
2338
|
+
protocol: FlyIoProtocol,
|
|
2339
|
+
retry: Retry.Retry,
|
|
2340
|
+
}));
|
|
2341
|
+
/** Verify with a secret key */
|
|
2342
|
+
export const secretkeyVerify = /*@__PURE__*/ API.make(() => ({
|
|
2343
|
+
input: SecretkeyVerifyRequest,
|
|
2344
|
+
output: SecretkeyVerifyResponse,
|
|
2345
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2346
|
+
protocol: FlyIoProtocol,
|
|
2347
|
+
retry: Retry.Retry,
|
|
2348
|
+
}));
|
|
2349
|
+
/** List app secrets belonging to an app */
|
|
2350
|
+
export const secretsList = /*@__PURE__*/ API.make(() => ({
|
|
2351
|
+
input: SecretsListRequest,
|
|
2352
|
+
output: AppSecrets,
|
|
2353
|
+
errors: [Forbidden, NotFound],
|
|
2354
|
+
protocol: FlyIoProtocol,
|
|
2355
|
+
retry: Retry.Retry,
|
|
2356
|
+
}));
|
|
2357
|
+
/** Update app secrets belonging to an app */
|
|
2358
|
+
export const secretsUpdate = /*@__PURE__*/ API.make(() => ({
|
|
2359
|
+
input: SecretsUpdateRequest,
|
|
2360
|
+
output: AppSecretsUpdateResp,
|
|
2361
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2362
|
+
protocol: FlyIoProtocol,
|
|
2363
|
+
retry: Retry.Retry,
|
|
2364
|
+
}));
|
|
2365
|
+
/** Authenticate token header Verify a token header without checking resource access. */
|
|
2366
|
+
export const tokensAuthenticate = /*@__PURE__*/ API.make(() => ({
|
|
2367
|
+
input: TokensAuthenticateRequest,
|
|
2368
|
+
output: TokensAuthenticateResponse,
|
|
2369
|
+
errors: [BadRequest],
|
|
2370
|
+
protocol: FlyIoProtocol,
|
|
2371
|
+
retry: Retry.Retry,
|
|
2372
|
+
}));
|
|
2373
|
+
/** Authorize token for resource access Verify a token header and validate it against a requested access scope. */
|
|
2374
|
+
export const tokensAuthorize = /*@__PURE__*/ API.make(() => ({
|
|
2375
|
+
input: TokensAuthorizeRequest,
|
|
2376
|
+
output: AuthorizeResponse,
|
|
2377
|
+
errors: [BadRequest],
|
|
2378
|
+
protocol: FlyIoProtocol,
|
|
2379
|
+
retry: Retry.Retry,
|
|
2380
|
+
}));
|
|
2381
|
+
/** Request a Petsem token for accessing KMS This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource. */
|
|
2382
|
+
export const tokensRequestKms = /*@__PURE__*/ API.make(() => ({
|
|
2383
|
+
input: TokensRequestKmsRequest,
|
|
2384
|
+
output: TokensRequestKmsResponse,
|
|
2385
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2386
|
+
protocol: FlyIoProtocol,
|
|
2387
|
+
retry: Retry.Retry,
|
|
2388
|
+
}));
|
|
2389
|
+
/** Request an OIDC token Request an Open ID Connect token for your machine. Customize the audience claim with the `aud` parameter. This returns a JWT token. Learn more about [using OpenID Connect](/docs/reference/openid-connect/) on Fly.io. */
|
|
2390
|
+
export const tokensRequestOIDC = /*@__PURE__*/ API.make(() => ({
|
|
2391
|
+
input: TokensRequestOIDCRequest,
|
|
2392
|
+
output: TokensRequestOIDCResponse,
|
|
2393
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2394
|
+
protocol: FlyIoProtocol,
|
|
2395
|
+
retry: Retry.Retry,
|
|
2396
|
+
}));
|
|
2397
|
+
/** Destroy Volume Delete a specific volume within an app by volume ID. */
|
|
2398
|
+
export const volumeDelete = /*@__PURE__*/ API.make(() => ({
|
|
2399
|
+
input: VolumeDeleteRequest,
|
|
2400
|
+
output: Volume,
|
|
2401
|
+
errors: [Forbidden, NotFound],
|
|
2402
|
+
protocol: FlyIoProtocol,
|
|
2403
|
+
retry: Retry.Retry,
|
|
2404
|
+
}));
|
|
2405
|
+
/** Create Volume Create a volume for a specific app using the details provided in the request body. */
|
|
2406
|
+
export const volumesCreate = /*@__PURE__*/ API.make(() => ({
|
|
2407
|
+
input: VolumesCreateRequest,
|
|
2408
|
+
output: Volume,
|
|
2409
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2410
|
+
protocol: FlyIoProtocol,
|
|
2411
|
+
retry: Retry.Retry,
|
|
2412
|
+
}));
|
|
2413
|
+
/** Extend Volume Extend a volume's size within an app using the details provided in the request body. */
|
|
2414
|
+
export const volumesExtend = /*@__PURE__*/ API.make(() => ({
|
|
2415
|
+
input: VolumesExtendRequest,
|
|
2416
|
+
output: ExtendVolumeResponse,
|
|
2417
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2418
|
+
protocol: FlyIoProtocol,
|
|
2419
|
+
retry: Retry.Retry,
|
|
2420
|
+
}));
|
|
2421
|
+
/** Get Volume Retrieve details about a specific volume by its ID within an app. */
|
|
2422
|
+
export const volumesGetById = /*@__PURE__*/ API.make(() => ({
|
|
2423
|
+
input: VolumesGetByIdRequest,
|
|
2424
|
+
output: Volume,
|
|
2425
|
+
errors: [Forbidden, NotFound],
|
|
2426
|
+
protocol: FlyIoProtocol,
|
|
2427
|
+
retry: Retry.Retry,
|
|
2428
|
+
}));
|
|
2429
|
+
/** List Volumes List all volumes associated with a specific app. */
|
|
2430
|
+
export const volumesList = /*@__PURE__*/ API.make(() => ({
|
|
2431
|
+
input: VolumesListRequest,
|
|
2432
|
+
output: VolumesListResponse,
|
|
2433
|
+
errors: [Forbidden, NotFound],
|
|
2434
|
+
protocol: FlyIoProtocol,
|
|
2435
|
+
retry: Retry.Retry,
|
|
2436
|
+
}));
|
|
2437
|
+
/** List Snapshots List all snapshots for a specific volume within an app. */
|
|
2438
|
+
export const volumesListSnapshots = /*@__PURE__*/ API.make(() => ({
|
|
2439
|
+
input: VolumesListSnapshotsRequest,
|
|
2440
|
+
output: VolumesListSnapshotsResponse,
|
|
2441
|
+
errors: [Forbidden, NotFound],
|
|
2442
|
+
protocol: FlyIoProtocol,
|
|
2443
|
+
retry: Retry.Retry,
|
|
2444
|
+
}));
|
|
2445
|
+
/** List All Volumes List all volumes for an organization with optional filters and cursor-based pagination. */
|
|
2446
|
+
export const volumesOrgList = /*@__PURE__*/ API.make(() => ({
|
|
2447
|
+
input: VolumesOrgListRequest,
|
|
2448
|
+
output: OrgVolumesResponse,
|
|
2449
|
+
errors: [],
|
|
2450
|
+
protocol: FlyIoProtocol,
|
|
2451
|
+
retry: Retry.Retry,
|
|
2452
|
+
}));
|
|
2453
|
+
/** Update Volume Update a volume's configuration using the details provided in the request body. */
|
|
2454
|
+
export const volumesUpdate = /*@__PURE__*/ API.make(() => ({
|
|
2455
|
+
input: VolumesUpdateRequest,
|
|
2456
|
+
output: Volume,
|
|
2457
|
+
errors: [BadRequest, Forbidden, NotFound],
|
|
2458
|
+
protocol: FlyIoProtocol,
|
|
2459
|
+
retry: Retry.Retry,
|
|
2460
|
+
}));
|
|
2461
|
+
//# sourceMappingURL=machines.js.map
|