@distilled.cloud/fly-io 0.30.3 → 1.0.0-rc.10
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/LICENSE +201 -0
- package/lib/credentials.d.ts +24 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +51 -5
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +54 -4
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +46 -7
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +30 -8
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +30 -8
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts +5 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +5 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +60 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +541 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/addons.d.ts +466 -0
- package/lib/services/addons.d.ts.map +1 -0
- package/lib/services/addons.js +613 -0
- package/lib/services/addons.js.map +1 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +6 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/machines.d.ts +2763 -0
- package/lib/services/machines.d.ts.map +1 -0
- package/lib/services/machines.js +3087 -0
- package/lib/services/machines.js.map +1 -0
- package/lib/services/mpg.d.ts +376 -0
- package/lib/services/mpg.d.ts.map +1 -0
- package/lib/services/mpg.js +570 -0
- package/lib/services/mpg.js.map +1 -0
- package/lib/services/sprites.d.ts +321 -0
- package/lib/services/sprites.d.ts.map +1 -0
- package/lib/services/sprites.js +407 -0
- package/lib/services/sprites.js.map +1 -0
- package/lib/traits.d.ts +18 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +18 -2
- package/lib/traits.js.map +1 -1
- package/package.json +61 -41
- package/src/credentials.ts +65 -5
- package/src/errors.ts +65 -8
- package/src/index.ts +40 -8
- package/src/pagination.ts +12 -0
- package/src/protocol.ts +774 -0
- package/src/retry.ts +4 -4
- package/src/services/addons.ts +1313 -0
- package/src/services/index.ts +5 -0
- package/src/services/machines.ts +7438 -0
- package/src/services/mpg.ts +1188 -0
- package/src/services/sprites.ts +917 -0
- package/src/traits.ts +76 -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,917 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs. Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as T from "../traits.ts";
|
|
6
|
+
import {
|
|
7
|
+
SpritesProtocol,
|
|
8
|
+
type SpritesOpError,
|
|
9
|
+
type SpritesOpContext,
|
|
10
|
+
} from "../protocol.ts";
|
|
11
|
+
import { paginateCursor } from "../pagination.ts";
|
|
12
|
+
import {
|
|
13
|
+
BadRequest,
|
|
14
|
+
Conflict,
|
|
15
|
+
NotFound,
|
|
16
|
+
SpritesNotEnabled,
|
|
17
|
+
} from "../errors.ts";
|
|
18
|
+
import * as Retry from "../retry.ts";
|
|
19
|
+
|
|
20
|
+
export type { SpritesOpError, SpritesOpContext };
|
|
21
|
+
|
|
22
|
+
export interface CreateCheckpointRequest {
|
|
23
|
+
name: string;
|
|
24
|
+
comment?: string;
|
|
25
|
+
}
|
|
26
|
+
export const CreateCheckpointRequest = /*@__PURE__*/ S.suspend(() =>
|
|
27
|
+
S.Struct({
|
|
28
|
+
name: S.String.pipe(T.Label()),
|
|
29
|
+
comment: S.optional(S.String),
|
|
30
|
+
}).pipe(
|
|
31
|
+
T.Http({ method: "POST", uri: "/sprites/{name}/checkpoint", code: 200 }),
|
|
32
|
+
),
|
|
33
|
+
).annotate({
|
|
34
|
+
identifier: "CreateCheckpointRequest",
|
|
35
|
+
}) as any as S.Schema<CreateCheckpointRequest>;
|
|
36
|
+
|
|
37
|
+
export interface StreamEvent {
|
|
38
|
+
type?: string;
|
|
39
|
+
data?: string;
|
|
40
|
+
error?: string;
|
|
41
|
+
time?: string;
|
|
42
|
+
}
|
|
43
|
+
export const StreamEvent = /*@__PURE__*/ S.suspend(() =>
|
|
44
|
+
S.Struct({
|
|
45
|
+
type: S.optional(S.String),
|
|
46
|
+
data: S.optional(S.String),
|
|
47
|
+
error: S.optional(S.String),
|
|
48
|
+
time: S.optional(S.String),
|
|
49
|
+
}),
|
|
50
|
+
).annotate({ identifier: "StreamEvent" }) as any as S.Schema<StreamEvent>;
|
|
51
|
+
|
|
52
|
+
export type CreateCheckpointResponseBodyList = Array<StreamEvent>;
|
|
53
|
+
export const CreateCheckpointResponseBodyList = /*@__PURE__*/ S.Array(
|
|
54
|
+
StreamEvent,
|
|
55
|
+
) as any as S.Schema<CreateCheckpointResponseBodyList>;
|
|
56
|
+
|
|
57
|
+
export type CreateCheckpointResponse = CreateCheckpointResponseBodyList;
|
|
58
|
+
export const CreateCheckpointResponse = /*@__PURE__*/ S.suspend(() =>
|
|
59
|
+
CreateCheckpointResponseBodyList.pipe(T.RawResponseRoot()),
|
|
60
|
+
).annotate({
|
|
61
|
+
identifier: "CreateCheckpointResponse",
|
|
62
|
+
}) as any as S.Schema<CreateCheckpointResponse>;
|
|
63
|
+
|
|
64
|
+
export interface CreateOrganizationTokenRequest {
|
|
65
|
+
/** Fly organization slug */
|
|
66
|
+
org: string;
|
|
67
|
+
/** Human-readable label for the minted token */
|
|
68
|
+
description?: string;
|
|
69
|
+
/** Optional Sprites invite code */
|
|
70
|
+
invite_code?: string;
|
|
71
|
+
}
|
|
72
|
+
export const CreateOrganizationTokenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
73
|
+
S.Struct({
|
|
74
|
+
org: S.String.pipe(T.Label()),
|
|
75
|
+
description: S.optional(S.String),
|
|
76
|
+
invite_code: S.optional(S.String),
|
|
77
|
+
}).pipe(
|
|
78
|
+
T.Http({ method: "POST", uri: "/organizations/{org}/tokens", code: 200 }),
|
|
79
|
+
),
|
|
80
|
+
).annotate({
|
|
81
|
+
identifier: "CreateOrganizationTokenRequest",
|
|
82
|
+
}) as any as S.Schema<CreateOrganizationTokenRequest>;
|
|
83
|
+
|
|
84
|
+
export interface CreateOrganizationTokenResponse {
|
|
85
|
+
/** Sprites bearer token. Send as Authorization: Bearer on subsequent sprite ops. */
|
|
86
|
+
token: string | Redacted.Redacted<string>;
|
|
87
|
+
}
|
|
88
|
+
export const CreateOrganizationTokenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
89
|
+
S.Struct({
|
|
90
|
+
token: S.String.pipe(T.SensitiveValue({})),
|
|
91
|
+
}),
|
|
92
|
+
).annotate({
|
|
93
|
+
identifier: "CreateOrganizationTokenResponse",
|
|
94
|
+
}) as any as S.Schema<CreateOrganizationTokenResponse>;
|
|
95
|
+
|
|
96
|
+
export type UrlAuth = "sprite" | "public";
|
|
97
|
+
export const UrlAuth = S.String;
|
|
98
|
+
|
|
99
|
+
export interface UrlSettings {
|
|
100
|
+
auth?: UrlAuth | (string & {});
|
|
101
|
+
private_access?: string;
|
|
102
|
+
}
|
|
103
|
+
export const UrlSettings = /*@__PURE__*/ S.suspend(() =>
|
|
104
|
+
S.Struct({
|
|
105
|
+
auth: S.optional(UrlAuth),
|
|
106
|
+
private_access: S.optional(S.String),
|
|
107
|
+
}),
|
|
108
|
+
).annotate({ identifier: "UrlSettings" }) as any as S.Schema<UrlSettings>;
|
|
109
|
+
|
|
110
|
+
/** Labels stamped on the sprite (used for ownership / nuke) */
|
|
111
|
+
export type CreateSpriteRequestLabelsList = Array<string>;
|
|
112
|
+
export const CreateSpriteRequestLabelsList = /*@__PURE__*/ S.Array(
|
|
113
|
+
S.String,
|
|
114
|
+
) as any as S.Schema<CreateSpriteRequestLabelsList>;
|
|
115
|
+
|
|
116
|
+
export interface CreateSpriteRequest {
|
|
117
|
+
/** Unique name for the sprite within the organization */
|
|
118
|
+
name: string;
|
|
119
|
+
url_settings?: UrlSettings;
|
|
120
|
+
/** Labels stamped on the sprite (used for ownership / nuke) */
|
|
121
|
+
labels?: CreateSpriteRequestLabelsList;
|
|
122
|
+
}
|
|
123
|
+
export const CreateSpriteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
124
|
+
S.Struct({
|
|
125
|
+
name: S.String,
|
|
126
|
+
url_settings: S.optional(UrlSettings),
|
|
127
|
+
labels: S.optional(CreateSpriteRequestLabelsList),
|
|
128
|
+
}).pipe(T.Http({ method: "POST", uri: "/sprites", code: 200 })),
|
|
129
|
+
).annotate({
|
|
130
|
+
identifier: "CreateSpriteRequest",
|
|
131
|
+
}) as any as S.Schema<CreateSpriteRequest>;
|
|
132
|
+
|
|
133
|
+
export type SpriteStatus = "cold" | "warm" | "running";
|
|
134
|
+
export const SpriteStatus = S.String;
|
|
135
|
+
|
|
136
|
+
export type SpriteLabelsList = Array<string>;
|
|
137
|
+
export const SpriteLabelsList = /*@__PURE__*/ S.Array(
|
|
138
|
+
S.String,
|
|
139
|
+
) as any as S.Schema<SpriteLabelsList>;
|
|
140
|
+
|
|
141
|
+
export interface Sprite {
|
|
142
|
+
id?: string;
|
|
143
|
+
name?: string;
|
|
144
|
+
organization?: string;
|
|
145
|
+
org_slug?: string;
|
|
146
|
+
url?: string;
|
|
147
|
+
url_settings?: UrlSettings;
|
|
148
|
+
status?: SpriteStatus;
|
|
149
|
+
labels?: SpriteLabelsList;
|
|
150
|
+
created_at?: string;
|
|
151
|
+
updated_at?: string;
|
|
152
|
+
last_started_at?: string | null;
|
|
153
|
+
last_active_at?: string | null;
|
|
154
|
+
last_running_at?: string | null;
|
|
155
|
+
version?: string | null;
|
|
156
|
+
}
|
|
157
|
+
export const Sprite = /*@__PURE__*/ S.suspend(() =>
|
|
158
|
+
S.Struct({
|
|
159
|
+
id: S.optional(S.String),
|
|
160
|
+
name: S.optional(S.String),
|
|
161
|
+
organization: S.optional(S.String),
|
|
162
|
+
org_slug: S.optional(S.String),
|
|
163
|
+
url: S.optional(S.String),
|
|
164
|
+
url_settings: S.optional(UrlSettings),
|
|
165
|
+
status: S.optional(SpriteStatus),
|
|
166
|
+
labels: S.optional(SpriteLabelsList),
|
|
167
|
+
created_at: S.optional(S.String),
|
|
168
|
+
updated_at: S.optional(S.String),
|
|
169
|
+
last_started_at: S.optional(S.NullOr(S.String)),
|
|
170
|
+
last_active_at: S.optional(S.NullOr(S.String)),
|
|
171
|
+
last_running_at: S.optional(S.NullOr(S.String)),
|
|
172
|
+
version: S.optional(S.NullOr(S.String)),
|
|
173
|
+
}),
|
|
174
|
+
).annotate({ identifier: "Sprite" }) as any as S.Schema<Sprite>;
|
|
175
|
+
|
|
176
|
+
export interface DeleteSpriteRequest {
|
|
177
|
+
/** Unique sprite name */
|
|
178
|
+
name: string;
|
|
179
|
+
}
|
|
180
|
+
export const DeleteSpriteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
181
|
+
S.Struct({
|
|
182
|
+
name: S.String.pipe(T.Label()),
|
|
183
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/sprites/{name}", code: 200 })),
|
|
184
|
+
).annotate({
|
|
185
|
+
identifier: "DeleteSpriteRequest",
|
|
186
|
+
}) as any as S.Schema<DeleteSpriteRequest>;
|
|
187
|
+
|
|
188
|
+
export interface DeleteSpriteResponse {}
|
|
189
|
+
export const DeleteSpriteResponse = /*@__PURE__*/ S.suspend(() =>
|
|
190
|
+
S.Struct({}),
|
|
191
|
+
).annotate({
|
|
192
|
+
identifier: "DeleteSpriteResponse",
|
|
193
|
+
}) as any as S.Schema<DeleteSpriteResponse>;
|
|
194
|
+
|
|
195
|
+
export type ExecCommandRequestCmdList = Array<string>;
|
|
196
|
+
export const ExecCommandRequestCmdList = /*@__PURE__*/ S.Array(
|
|
197
|
+
S.String,
|
|
198
|
+
) as any as S.Schema<ExecCommandRequestCmdList>;
|
|
199
|
+
|
|
200
|
+
export type ExecCommandRequestEnvList = Array<string>;
|
|
201
|
+
export const ExecCommandRequestEnvList = /*@__PURE__*/ S.Array(
|
|
202
|
+
S.String,
|
|
203
|
+
) as any as S.Schema<ExecCommandRequestEnvList>;
|
|
204
|
+
|
|
205
|
+
export interface ExecCommandRequest {
|
|
206
|
+
name: string;
|
|
207
|
+
/** Command and args (repeatable) */
|
|
208
|
+
cmd: ExecCommandRequestCmdList;
|
|
209
|
+
/** Explicit path to the executable */
|
|
210
|
+
path?: string;
|
|
211
|
+
/** Read stdin from the request body */
|
|
212
|
+
stdin?: boolean;
|
|
213
|
+
/** Environment variables as KEY=VALUE (repeatable) */
|
|
214
|
+
env?: ExecCommandRequestEnvList;
|
|
215
|
+
/** Working directory */
|
|
216
|
+
dir?: string;
|
|
217
|
+
body?: Uint8Array | string;
|
|
218
|
+
}
|
|
219
|
+
export const ExecCommandRequest = /*@__PURE__*/ S.suspend(() =>
|
|
220
|
+
S.Struct({
|
|
221
|
+
name: S.String.pipe(T.Label()),
|
|
222
|
+
cmd: ExecCommandRequestCmdList.pipe(T.Query()),
|
|
223
|
+
path: S.optional(S.String.pipe(T.Query())),
|
|
224
|
+
stdin: S.optional(S.Boolean.pipe(T.Query())),
|
|
225
|
+
env: S.optional(ExecCommandRequestEnvList.pipe(T.Query())),
|
|
226
|
+
dir: S.optional(S.String.pipe(T.Query())),
|
|
227
|
+
body: S.optional(S.String.pipe(T.HttpBody())),
|
|
228
|
+
}).pipe(
|
|
229
|
+
T.Http({
|
|
230
|
+
method: "POST",
|
|
231
|
+
uri: "/sprites/{name}/exec",
|
|
232
|
+
code: 200,
|
|
233
|
+
bodyMediaType: "application/octet-stream",
|
|
234
|
+
}),
|
|
235
|
+
),
|
|
236
|
+
).annotate({
|
|
237
|
+
identifier: "ExecCommandRequest",
|
|
238
|
+
}) as any as S.Schema<ExecCommandRequest>;
|
|
239
|
+
|
|
240
|
+
export interface ExecResult {
|
|
241
|
+
exit_code?: number;
|
|
242
|
+
stdout?: string;
|
|
243
|
+
stderr?: string;
|
|
244
|
+
}
|
|
245
|
+
export const ExecResult = /*@__PURE__*/ S.suspend(() =>
|
|
246
|
+
S.Struct({
|
|
247
|
+
exit_code: S.optional(S.Number),
|
|
248
|
+
stdout: S.optional(S.String),
|
|
249
|
+
stderr: S.optional(S.String),
|
|
250
|
+
}),
|
|
251
|
+
).annotate({ identifier: "ExecResult" }) as any as S.Schema<ExecResult>;
|
|
252
|
+
|
|
253
|
+
export interface GetCheckpointRequest {
|
|
254
|
+
name: string;
|
|
255
|
+
/** Checkpoint identifier (e.g. v7) */
|
|
256
|
+
checkpoint_id: string;
|
|
257
|
+
}
|
|
258
|
+
export const GetCheckpointRequest = /*@__PURE__*/ S.suspend(() =>
|
|
259
|
+
S.Struct({
|
|
260
|
+
name: S.String.pipe(T.Label()),
|
|
261
|
+
checkpoint_id: S.String.pipe(T.Label()),
|
|
262
|
+
}).pipe(
|
|
263
|
+
T.Http({
|
|
264
|
+
method: "GET",
|
|
265
|
+
uri: "/sprites/{name}/checkpoints/{checkpoint_id}",
|
|
266
|
+
code: 200,
|
|
267
|
+
}),
|
|
268
|
+
),
|
|
269
|
+
).annotate({
|
|
270
|
+
identifier: "GetCheckpointRequest",
|
|
271
|
+
}) as any as S.Schema<GetCheckpointRequest>;
|
|
272
|
+
|
|
273
|
+
export interface Checkpoint {
|
|
274
|
+
id?: string;
|
|
275
|
+
create_time?: string;
|
|
276
|
+
source_id?: string;
|
|
277
|
+
comment?: string;
|
|
278
|
+
health?: string;
|
|
279
|
+
}
|
|
280
|
+
export const Checkpoint = /*@__PURE__*/ S.suspend(() =>
|
|
281
|
+
S.Struct({
|
|
282
|
+
id: S.optional(S.String),
|
|
283
|
+
create_time: S.optional(S.String),
|
|
284
|
+
source_id: S.optional(S.String),
|
|
285
|
+
comment: S.optional(S.String),
|
|
286
|
+
health: S.optional(S.String),
|
|
287
|
+
}),
|
|
288
|
+
).annotate({ identifier: "Checkpoint" }) as any as S.Schema<Checkpoint>;
|
|
289
|
+
|
|
290
|
+
export interface GetServiceRequest {
|
|
291
|
+
name: string;
|
|
292
|
+
service_name: string;
|
|
293
|
+
}
|
|
294
|
+
export const GetServiceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
295
|
+
S.Struct({
|
|
296
|
+
name: S.String.pipe(T.Label()),
|
|
297
|
+
service_name: S.String.pipe(T.Label()),
|
|
298
|
+
}).pipe(
|
|
299
|
+
T.Http({
|
|
300
|
+
method: "GET",
|
|
301
|
+
uri: "/sprites/{name}/services/{service_name}",
|
|
302
|
+
code: 200,
|
|
303
|
+
}),
|
|
304
|
+
),
|
|
305
|
+
).annotate({
|
|
306
|
+
identifier: "GetServiceRequest",
|
|
307
|
+
}) as any as S.Schema<GetServiceRequest>;
|
|
308
|
+
|
|
309
|
+
export type SpriteServiceArgsList = Array<string>;
|
|
310
|
+
export const SpriteServiceArgsList = /*@__PURE__*/ S.Array(
|
|
311
|
+
S.String,
|
|
312
|
+
) as any as S.Schema<SpriteServiceArgsList>;
|
|
313
|
+
|
|
314
|
+
export type SpriteServiceNeedsList = Array<string>;
|
|
315
|
+
export const SpriteServiceNeedsList = /*@__PURE__*/ S.Array(
|
|
316
|
+
S.String,
|
|
317
|
+
) as any as S.Schema<SpriteServiceNeedsList>;
|
|
318
|
+
|
|
319
|
+
export interface SpriteServiceState {
|
|
320
|
+
name?: string;
|
|
321
|
+
status?: string;
|
|
322
|
+
pid?: number;
|
|
323
|
+
started_at?: string;
|
|
324
|
+
error?: string;
|
|
325
|
+
}
|
|
326
|
+
export const SpriteServiceState = /*@__PURE__*/ S.suspend(() =>
|
|
327
|
+
S.Struct({
|
|
328
|
+
name: S.optional(S.String),
|
|
329
|
+
status: S.optional(S.String),
|
|
330
|
+
pid: S.optional(S.Number),
|
|
331
|
+
started_at: S.optional(S.String),
|
|
332
|
+
error: S.optional(S.String),
|
|
333
|
+
}),
|
|
334
|
+
).annotate({
|
|
335
|
+
identifier: "SpriteServiceState",
|
|
336
|
+
}) as any as S.Schema<SpriteServiceState>;
|
|
337
|
+
|
|
338
|
+
export interface SpriteService {
|
|
339
|
+
name?: string;
|
|
340
|
+
cmd?: string;
|
|
341
|
+
args?: SpriteServiceArgsList;
|
|
342
|
+
needs?: SpriteServiceNeedsList;
|
|
343
|
+
http_port?: number;
|
|
344
|
+
state?: SpriteServiceState;
|
|
345
|
+
}
|
|
346
|
+
export const SpriteService = /*@__PURE__*/ S.suspend(() =>
|
|
347
|
+
S.Struct({
|
|
348
|
+
name: S.optional(S.String),
|
|
349
|
+
cmd: S.optional(S.String),
|
|
350
|
+
args: S.optional(SpriteServiceArgsList),
|
|
351
|
+
needs: S.optional(SpriteServiceNeedsList),
|
|
352
|
+
http_port: S.optional(S.Number),
|
|
353
|
+
state: S.optional(SpriteServiceState),
|
|
354
|
+
}),
|
|
355
|
+
).annotate({ identifier: "SpriteService" }) as any as S.Schema<SpriteService>;
|
|
356
|
+
|
|
357
|
+
export interface GetSpriteRequest {
|
|
358
|
+
/** Unique sprite name */
|
|
359
|
+
name: string;
|
|
360
|
+
}
|
|
361
|
+
export const GetSpriteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
362
|
+
S.Struct({
|
|
363
|
+
name: S.String.pipe(T.Label()),
|
|
364
|
+
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}", code: 200 })),
|
|
365
|
+
).annotate({
|
|
366
|
+
identifier: "GetSpriteRequest",
|
|
367
|
+
}) as any as S.Schema<GetSpriteRequest>;
|
|
368
|
+
|
|
369
|
+
export interface ListCheckpointsRequest {
|
|
370
|
+
name: string;
|
|
371
|
+
}
|
|
372
|
+
export const ListCheckpointsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
373
|
+
S.Struct({
|
|
374
|
+
name: S.String.pipe(T.Label()),
|
|
375
|
+
}).pipe(
|
|
376
|
+
T.Http({ method: "GET", uri: "/sprites/{name}/checkpoints", code: 200 }),
|
|
377
|
+
),
|
|
378
|
+
).annotate({
|
|
379
|
+
identifier: "ListCheckpointsRequest",
|
|
380
|
+
}) as any as S.Schema<ListCheckpointsRequest>;
|
|
381
|
+
|
|
382
|
+
export type ListCheckpointsResponseBodyList = Array<Checkpoint>;
|
|
383
|
+
export const ListCheckpointsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
384
|
+
Checkpoint,
|
|
385
|
+
) as any as S.Schema<ListCheckpointsResponseBodyList>;
|
|
386
|
+
|
|
387
|
+
export type ListCheckpointsResponse = ListCheckpointsResponseBodyList;
|
|
388
|
+
export const ListCheckpointsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
389
|
+
ListCheckpointsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
390
|
+
).annotate({
|
|
391
|
+
identifier: "ListCheckpointsResponse",
|
|
392
|
+
}) as any as S.Schema<ListCheckpointsResponse>;
|
|
393
|
+
|
|
394
|
+
export interface ListExecSessionsRequest {
|
|
395
|
+
name: string;
|
|
396
|
+
}
|
|
397
|
+
export const ListExecSessionsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
398
|
+
S.Struct({
|
|
399
|
+
name: S.String.pipe(T.Label()),
|
|
400
|
+
}).pipe(T.Http({ method: "GET", uri: "/sprites/{name}/exec", code: 200 })),
|
|
401
|
+
).annotate({
|
|
402
|
+
identifier: "ListExecSessionsRequest",
|
|
403
|
+
}) as any as S.Schema<ListExecSessionsRequest>;
|
|
404
|
+
|
|
405
|
+
export interface ExecSession {
|
|
406
|
+
id?: string;
|
|
407
|
+
command?: string;
|
|
408
|
+
is_active?: boolean;
|
|
409
|
+
tty?: boolean;
|
|
410
|
+
created?: string;
|
|
411
|
+
last_activity?: string;
|
|
412
|
+
workdir?: string;
|
|
413
|
+
bytes_per_second?: number;
|
|
414
|
+
}
|
|
415
|
+
export const ExecSession = /*@__PURE__*/ S.suspend(() =>
|
|
416
|
+
S.Struct({
|
|
417
|
+
id: S.optional(S.String),
|
|
418
|
+
command: S.optional(S.String),
|
|
419
|
+
is_active: S.optional(S.Boolean),
|
|
420
|
+
tty: S.optional(S.Boolean),
|
|
421
|
+
created: S.optional(S.String),
|
|
422
|
+
last_activity: S.optional(S.String),
|
|
423
|
+
workdir: S.optional(S.String),
|
|
424
|
+
bytes_per_second: S.optional(S.Number),
|
|
425
|
+
}),
|
|
426
|
+
).annotate({ identifier: "ExecSession" }) as any as S.Schema<ExecSession>;
|
|
427
|
+
|
|
428
|
+
export type ListExecSessionsResponseBodyList = Array<ExecSession>;
|
|
429
|
+
export const ListExecSessionsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
430
|
+
ExecSession,
|
|
431
|
+
) as any as S.Schema<ListExecSessionsResponseBodyList>;
|
|
432
|
+
|
|
433
|
+
export type ListExecSessionsResponse = ListExecSessionsResponseBodyList;
|
|
434
|
+
export const ListExecSessionsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
435
|
+
ListExecSessionsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
436
|
+
).annotate({
|
|
437
|
+
identifier: "ListExecSessionsResponse",
|
|
438
|
+
}) as any as S.Schema<ListExecSessionsResponse>;
|
|
439
|
+
|
|
440
|
+
export interface ListServicesRequest {
|
|
441
|
+
name: string;
|
|
442
|
+
}
|
|
443
|
+
export const ListServicesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
444
|
+
S.Struct({
|
|
445
|
+
name: S.String.pipe(T.Label()),
|
|
446
|
+
}).pipe(
|
|
447
|
+
T.Http({ method: "GET", uri: "/sprites/{name}/services", code: 200 }),
|
|
448
|
+
),
|
|
449
|
+
).annotate({
|
|
450
|
+
identifier: "ListServicesRequest",
|
|
451
|
+
}) as any as S.Schema<ListServicesRequest>;
|
|
452
|
+
|
|
453
|
+
export type ListServicesResponseBodyList = Array<SpriteService>;
|
|
454
|
+
export const ListServicesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
455
|
+
SpriteService,
|
|
456
|
+
) as any as S.Schema<ListServicesResponseBodyList>;
|
|
457
|
+
|
|
458
|
+
export type ListServicesResponse = ListServicesResponseBodyList;
|
|
459
|
+
export const ListServicesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
460
|
+
ListServicesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
461
|
+
).annotate({
|
|
462
|
+
identifier: "ListServicesResponse",
|
|
463
|
+
}) as any as S.Schema<ListServicesResponse>;
|
|
464
|
+
|
|
465
|
+
export interface ListSpritesRequest {
|
|
466
|
+
/** Filter sprites by name prefix */
|
|
467
|
+
prefix?: string;
|
|
468
|
+
/** Maximum number of results (1-50, default 50) */
|
|
469
|
+
max_results?: number;
|
|
470
|
+
/** Token from the previous response */
|
|
471
|
+
continuation_token?: string;
|
|
472
|
+
}
|
|
473
|
+
export const ListSpritesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
474
|
+
S.Struct({
|
|
475
|
+
prefix: S.optional(S.String.pipe(T.Query())),
|
|
476
|
+
max_results: S.optional(S.Number.pipe(T.Query())),
|
|
477
|
+
continuation_token: S.optional(S.String.pipe(T.Query())),
|
|
478
|
+
}).pipe(T.Http({ method: "GET", uri: "/sprites", code: 200 })),
|
|
479
|
+
).annotate({
|
|
480
|
+
identifier: "ListSpritesRequest",
|
|
481
|
+
}) as any as S.Schema<ListSpritesRequest>;
|
|
482
|
+
|
|
483
|
+
export type ListSpritesResponseSpritesList = Array<Sprite>;
|
|
484
|
+
export const ListSpritesResponseSpritesList = /*@__PURE__*/ S.Array(
|
|
485
|
+
Sprite,
|
|
486
|
+
) as any as S.Schema<ListSpritesResponseSpritesList>;
|
|
487
|
+
|
|
488
|
+
export interface ListSpritesResponse {
|
|
489
|
+
sprites: ListSpritesResponseSpritesList;
|
|
490
|
+
has_more?: boolean;
|
|
491
|
+
next_continuation_token?: string | null;
|
|
492
|
+
name?: string;
|
|
493
|
+
running?: number;
|
|
494
|
+
warm?: number;
|
|
495
|
+
cold?: number;
|
|
496
|
+
running_limit?: number;
|
|
497
|
+
warm_limit?: number;
|
|
498
|
+
}
|
|
499
|
+
export const ListSpritesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
500
|
+
S.Struct({
|
|
501
|
+
sprites: ListSpritesResponseSpritesList,
|
|
502
|
+
has_more: S.optional(S.Boolean),
|
|
503
|
+
next_continuation_token: S.optional(S.NullOr(S.String)),
|
|
504
|
+
name: S.optional(S.String),
|
|
505
|
+
running: S.optional(S.Number),
|
|
506
|
+
warm: S.optional(S.Number),
|
|
507
|
+
cold: S.optional(S.Number),
|
|
508
|
+
running_limit: S.optional(S.Number),
|
|
509
|
+
warm_limit: S.optional(S.Number),
|
|
510
|
+
}),
|
|
511
|
+
).annotate({
|
|
512
|
+
identifier: "ListSpritesResponse",
|
|
513
|
+
}) as any as S.Schema<ListSpritesResponse>;
|
|
514
|
+
|
|
515
|
+
/** Command arguments */
|
|
516
|
+
export type PutServiceRequestArgsList = Array<string>;
|
|
517
|
+
export const PutServiceRequestArgsList = /*@__PURE__*/ S.Array(
|
|
518
|
+
S.String,
|
|
519
|
+
) as any as S.Schema<PutServiceRequestArgsList>;
|
|
520
|
+
|
|
521
|
+
/** Service dependencies (started first) */
|
|
522
|
+
export type PutServiceRequestNeedsList = Array<string>;
|
|
523
|
+
export const PutServiceRequestNeedsList = /*@__PURE__*/ S.Array(
|
|
524
|
+
S.String,
|
|
525
|
+
) as any as S.Schema<PutServiceRequestNeedsList>;
|
|
526
|
+
|
|
527
|
+
export interface PutServiceRequest {
|
|
528
|
+
name: string;
|
|
529
|
+
service_name: string;
|
|
530
|
+
/** Time to monitor logs after starting (default 5s) */
|
|
531
|
+
duration?: string;
|
|
532
|
+
/** Command to execute */
|
|
533
|
+
cmd: string;
|
|
534
|
+
/** Command arguments */
|
|
535
|
+
args?: PutServiceRequestArgsList;
|
|
536
|
+
/** Working directory for the service */
|
|
537
|
+
dir?: string;
|
|
538
|
+
/** Service dependencies (started first) */
|
|
539
|
+
needs?: PutServiceRequestNeedsList;
|
|
540
|
+
/** HTTP port for proxy routing */
|
|
541
|
+
http_port?: number;
|
|
542
|
+
}
|
|
543
|
+
export const PutServiceRequest = /*@__PURE__*/ S.suspend(() =>
|
|
544
|
+
S.Struct({
|
|
545
|
+
name: S.String.pipe(T.Label()),
|
|
546
|
+
service_name: S.String.pipe(T.Label()),
|
|
547
|
+
duration: S.optional(S.String.pipe(T.Query())),
|
|
548
|
+
cmd: S.String,
|
|
549
|
+
args: S.optional(PutServiceRequestArgsList),
|
|
550
|
+
dir: S.optional(S.String),
|
|
551
|
+
needs: S.optional(PutServiceRequestNeedsList),
|
|
552
|
+
http_port: S.optional(S.Number),
|
|
553
|
+
}).pipe(
|
|
554
|
+
T.Http({
|
|
555
|
+
method: "PUT",
|
|
556
|
+
uri: "/sprites/{name}/services/{service_name}",
|
|
557
|
+
code: 200,
|
|
558
|
+
}),
|
|
559
|
+
),
|
|
560
|
+
).annotate({
|
|
561
|
+
identifier: "PutServiceRequest",
|
|
562
|
+
}) as any as S.Schema<PutServiceRequest>;
|
|
563
|
+
|
|
564
|
+
export type PutServiceResponseBodyList = Array<StreamEvent>;
|
|
565
|
+
export const PutServiceResponseBodyList = /*@__PURE__*/ S.Array(
|
|
566
|
+
StreamEvent,
|
|
567
|
+
) as any as S.Schema<PutServiceResponseBodyList>;
|
|
568
|
+
|
|
569
|
+
export type PutServiceResponse = PutServiceResponseBodyList;
|
|
570
|
+
export const PutServiceResponse = /*@__PURE__*/ S.suspend(() =>
|
|
571
|
+
PutServiceResponseBodyList.pipe(T.RawResponseRoot()),
|
|
572
|
+
).annotate({
|
|
573
|
+
identifier: "PutServiceResponse",
|
|
574
|
+
}) as any as S.Schema<PutServiceResponse>;
|
|
575
|
+
|
|
576
|
+
export interface RestoreCheckpointRequest {
|
|
577
|
+
name: string;
|
|
578
|
+
checkpoint_id: string;
|
|
579
|
+
}
|
|
580
|
+
export const RestoreCheckpointRequest = /*@__PURE__*/ S.suspend(() =>
|
|
581
|
+
S.Struct({
|
|
582
|
+
name: S.String.pipe(T.Label()),
|
|
583
|
+
checkpoint_id: S.String.pipe(T.Label()),
|
|
584
|
+
}).pipe(
|
|
585
|
+
T.Http({
|
|
586
|
+
method: "POST",
|
|
587
|
+
uri: "/sprites/{name}/checkpoints/{checkpoint_id}/restore",
|
|
588
|
+
code: 200,
|
|
589
|
+
}),
|
|
590
|
+
),
|
|
591
|
+
).annotate({
|
|
592
|
+
identifier: "RestoreCheckpointRequest",
|
|
593
|
+
}) as any as S.Schema<RestoreCheckpointRequest>;
|
|
594
|
+
|
|
595
|
+
export type RestoreCheckpointResponseBodyList = Array<StreamEvent>;
|
|
596
|
+
export const RestoreCheckpointResponseBodyList = /*@__PURE__*/ S.Array(
|
|
597
|
+
StreamEvent,
|
|
598
|
+
) as any as S.Schema<RestoreCheckpointResponseBodyList>;
|
|
599
|
+
|
|
600
|
+
export type RestoreCheckpointResponse = RestoreCheckpointResponseBodyList;
|
|
601
|
+
export const RestoreCheckpointResponse = /*@__PURE__*/ S.suspend(() =>
|
|
602
|
+
RestoreCheckpointResponseBodyList.pipe(T.RawResponseRoot()),
|
|
603
|
+
).annotate({
|
|
604
|
+
identifier: "RestoreCheckpointResponse",
|
|
605
|
+
}) as any as S.Schema<RestoreCheckpointResponse>;
|
|
606
|
+
|
|
607
|
+
export interface UpdateSpriteRequest {
|
|
608
|
+
/** Unique sprite name */
|
|
609
|
+
name: string;
|
|
610
|
+
url_settings: UrlSettings;
|
|
611
|
+
}
|
|
612
|
+
export const UpdateSpriteRequest = /*@__PURE__*/ S.suspend(() =>
|
|
613
|
+
S.Struct({
|
|
614
|
+
name: S.String.pipe(T.Label()),
|
|
615
|
+
url_settings: UrlSettings,
|
|
616
|
+
}).pipe(T.Http({ method: "PUT", uri: "/sprites/{name}", code: 200 })),
|
|
617
|
+
).annotate({
|
|
618
|
+
identifier: "UpdateSpriteRequest",
|
|
619
|
+
}) as any as S.Schema<UpdateSpriteRequest>;
|
|
620
|
+
|
|
621
|
+
export interface WriteFileRequest {
|
|
622
|
+
name: string;
|
|
623
|
+
/** Path to the file to write */
|
|
624
|
+
path: string;
|
|
625
|
+
/** Working directory for resolving relative paths */
|
|
626
|
+
workingDir: string;
|
|
627
|
+
/** File permissions in octal (e.g. 0644) */
|
|
628
|
+
mode?: string;
|
|
629
|
+
/** Create parent directories if they do not exist */
|
|
630
|
+
mkdir?: boolean;
|
|
631
|
+
body: Uint8Array | string;
|
|
632
|
+
}
|
|
633
|
+
export const WriteFileRequest = /*@__PURE__*/ S.suspend(() =>
|
|
634
|
+
S.Struct({
|
|
635
|
+
name: S.String.pipe(T.Label()),
|
|
636
|
+
path: S.String.pipe(T.Query()),
|
|
637
|
+
workingDir: S.String.pipe(T.Query()),
|
|
638
|
+
mode: S.optional(S.String.pipe(T.Query())),
|
|
639
|
+
mkdir: S.optional(S.Boolean.pipe(T.Query())),
|
|
640
|
+
body: S.String.pipe(T.HttpBody()),
|
|
641
|
+
}).pipe(
|
|
642
|
+
T.Http({
|
|
643
|
+
method: "PUT",
|
|
644
|
+
uri: "/sprites/{name}/fs/write",
|
|
645
|
+
code: 200,
|
|
646
|
+
bodyMediaType: "application/octet-stream",
|
|
647
|
+
}),
|
|
648
|
+
),
|
|
649
|
+
).annotate({
|
|
650
|
+
identifier: "WriteFileRequest",
|
|
651
|
+
}) as any as S.Schema<WriteFileRequest>;
|
|
652
|
+
|
|
653
|
+
export interface WriteFileResponse {
|
|
654
|
+
path?: string;
|
|
655
|
+
size?: number;
|
|
656
|
+
mode?: string;
|
|
657
|
+
}
|
|
658
|
+
export const WriteFileResponse = /*@__PURE__*/ S.suspend(() =>
|
|
659
|
+
S.Struct({
|
|
660
|
+
path: S.optional(S.String),
|
|
661
|
+
size: S.optional(S.Number),
|
|
662
|
+
mode: S.optional(S.String),
|
|
663
|
+
}),
|
|
664
|
+
).annotate({
|
|
665
|
+
identifier: "WriteFileResponse",
|
|
666
|
+
}) as any as S.Schema<WriteFileResponse>;
|
|
667
|
+
|
|
668
|
+
export type CreateCheckpointError = NotFound | SpritesOpError;
|
|
669
|
+
/** Create a checkpoint (NDJSON progress stream) */
|
|
670
|
+
export const createCheckpoint: API.OperationMethod<
|
|
671
|
+
CreateCheckpointRequest,
|
|
672
|
+
CreateCheckpointResponse,
|
|
673
|
+
CreateCheckpointError,
|
|
674
|
+
SpritesOpContext
|
|
675
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
676
|
+
input: CreateCheckpointRequest,
|
|
677
|
+
output: CreateCheckpointResponse,
|
|
678
|
+
errors: [NotFound],
|
|
679
|
+
protocol: SpritesProtocol,
|
|
680
|
+
retry: Retry.Retry,
|
|
681
|
+
}));
|
|
682
|
+
|
|
683
|
+
export type CreateOrganizationTokenError = SpritesNotEnabled | SpritesOpError;
|
|
684
|
+
/** Mint a Sprites bearer token from a Fly.io macaroon POST with Authorization: FlyV1 {FLY_API_TOKEN}. Sprite CRUD rejects Bearer FLY_API_TOKEN (401); callers mint once, cache, then Bearer the returned token. 401 with 'sprites not enabled' means the org has not enabled Sprites. */
|
|
685
|
+
export const createOrganizationToken: API.OperationMethod<
|
|
686
|
+
CreateOrganizationTokenRequest,
|
|
687
|
+
CreateOrganizationTokenResponse,
|
|
688
|
+
CreateOrganizationTokenError,
|
|
689
|
+
SpritesOpContext
|
|
690
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
691
|
+
input: CreateOrganizationTokenRequest,
|
|
692
|
+
output: CreateOrganizationTokenResponse,
|
|
693
|
+
errors: [SpritesNotEnabled],
|
|
694
|
+
protocol: SpritesProtocol,
|
|
695
|
+
retry: Retry.Retry,
|
|
696
|
+
}));
|
|
697
|
+
|
|
698
|
+
export type CreateSpriteError = BadRequest | Conflict | SpritesOpError;
|
|
699
|
+
/** Create a sprite */
|
|
700
|
+
export const createSprite: API.OperationMethod<
|
|
701
|
+
CreateSpriteRequest,
|
|
702
|
+
Sprite,
|
|
703
|
+
CreateSpriteError,
|
|
704
|
+
SpritesOpContext
|
|
705
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
706
|
+
input: CreateSpriteRequest,
|
|
707
|
+
output: Sprite,
|
|
708
|
+
errors: [BadRequest, Conflict],
|
|
709
|
+
protocol: SpritesProtocol,
|
|
710
|
+
retry: Retry.Retry,
|
|
711
|
+
}));
|
|
712
|
+
|
|
713
|
+
export type DeleteSpriteError = NotFound | SpritesOpError;
|
|
714
|
+
/** Delete a sprite */
|
|
715
|
+
export const deleteSprite: API.OperationMethod<
|
|
716
|
+
DeleteSpriteRequest,
|
|
717
|
+
DeleteSpriteResponse,
|
|
718
|
+
DeleteSpriteError,
|
|
719
|
+
SpritesOpContext
|
|
720
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
721
|
+
input: DeleteSpriteRequest,
|
|
722
|
+
output: DeleteSpriteResponse,
|
|
723
|
+
errors: [NotFound],
|
|
724
|
+
protocol: SpritesProtocol,
|
|
725
|
+
retry: Retry.Retry,
|
|
726
|
+
}));
|
|
727
|
+
|
|
728
|
+
export type ExecCommandError = BadRequest | NotFound | SpritesOpError;
|
|
729
|
+
/** Execute a command via HTTP POST (non-TTY). Simpler than the WebSocket exec API. */
|
|
730
|
+
export const execCommand: API.OperationMethod<
|
|
731
|
+
ExecCommandRequest,
|
|
732
|
+
ExecResult,
|
|
733
|
+
ExecCommandError,
|
|
734
|
+
SpritesOpContext
|
|
735
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
736
|
+
input: ExecCommandRequest,
|
|
737
|
+
output: ExecResult,
|
|
738
|
+
errors: [BadRequest, NotFound],
|
|
739
|
+
protocol: SpritesProtocol,
|
|
740
|
+
retry: Retry.Retry,
|
|
741
|
+
}));
|
|
742
|
+
|
|
743
|
+
export type GetCheckpointError = NotFound | SpritesOpError;
|
|
744
|
+
/** Get a checkpoint */
|
|
745
|
+
export const getCheckpoint: API.OperationMethod<
|
|
746
|
+
GetCheckpointRequest,
|
|
747
|
+
Checkpoint,
|
|
748
|
+
GetCheckpointError,
|
|
749
|
+
SpritesOpContext
|
|
750
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
751
|
+
input: GetCheckpointRequest,
|
|
752
|
+
output: Checkpoint,
|
|
753
|
+
errors: [NotFound],
|
|
754
|
+
protocol: SpritesProtocol,
|
|
755
|
+
retry: Retry.Retry,
|
|
756
|
+
}));
|
|
757
|
+
|
|
758
|
+
export type GetServiceError = NotFound | SpritesOpError;
|
|
759
|
+
/** Get a sprite service */
|
|
760
|
+
export const getService: API.OperationMethod<
|
|
761
|
+
GetServiceRequest,
|
|
762
|
+
SpriteService,
|
|
763
|
+
GetServiceError,
|
|
764
|
+
SpritesOpContext
|
|
765
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
766
|
+
input: GetServiceRequest,
|
|
767
|
+
output: SpriteService,
|
|
768
|
+
errors: [NotFound],
|
|
769
|
+
protocol: SpritesProtocol,
|
|
770
|
+
retry: Retry.Retry,
|
|
771
|
+
}));
|
|
772
|
+
|
|
773
|
+
export type GetSpriteError = NotFound | SpritesOpError;
|
|
774
|
+
/** Get a sprite */
|
|
775
|
+
export const getSprite: API.OperationMethod<
|
|
776
|
+
GetSpriteRequest,
|
|
777
|
+
Sprite,
|
|
778
|
+
GetSpriteError,
|
|
779
|
+
SpritesOpContext
|
|
780
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
781
|
+
input: GetSpriteRequest,
|
|
782
|
+
output: Sprite,
|
|
783
|
+
errors: [NotFound],
|
|
784
|
+
protocol: SpritesProtocol,
|
|
785
|
+
retry: Retry.Retry,
|
|
786
|
+
}));
|
|
787
|
+
|
|
788
|
+
export type ListCheckpointsError = NotFound | SpritesOpError;
|
|
789
|
+
/** List checkpoints */
|
|
790
|
+
export const listCheckpoints: API.OperationMethod<
|
|
791
|
+
ListCheckpointsRequest,
|
|
792
|
+
ListCheckpointsResponse,
|
|
793
|
+
ListCheckpointsError,
|
|
794
|
+
SpritesOpContext
|
|
795
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
796
|
+
input: ListCheckpointsRequest,
|
|
797
|
+
output: ListCheckpointsResponse,
|
|
798
|
+
errors: [NotFound],
|
|
799
|
+
protocol: SpritesProtocol,
|
|
800
|
+
retry: Retry.Retry,
|
|
801
|
+
}));
|
|
802
|
+
|
|
803
|
+
export type ListExecSessionsError = NotFound | SpritesOpError;
|
|
804
|
+
/** List active exec sessions */
|
|
805
|
+
export const listExecSessions: API.OperationMethod<
|
|
806
|
+
ListExecSessionsRequest,
|
|
807
|
+
ListExecSessionsResponse,
|
|
808
|
+
ListExecSessionsError,
|
|
809
|
+
SpritesOpContext
|
|
810
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
811
|
+
input: ListExecSessionsRequest,
|
|
812
|
+
output: ListExecSessionsResponse,
|
|
813
|
+
errors: [NotFound],
|
|
814
|
+
protocol: SpritesProtocol,
|
|
815
|
+
retry: Retry.Retry,
|
|
816
|
+
}));
|
|
817
|
+
|
|
818
|
+
export type ListServicesError = NotFound | SpritesOpError;
|
|
819
|
+
/** List configured sprite services */
|
|
820
|
+
export const listServices: API.OperationMethod<
|
|
821
|
+
ListServicesRequest,
|
|
822
|
+
ListServicesResponse,
|
|
823
|
+
ListServicesError,
|
|
824
|
+
SpritesOpContext
|
|
825
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
826
|
+
input: ListServicesRequest,
|
|
827
|
+
output: ListServicesResponse,
|
|
828
|
+
errors: [NotFound],
|
|
829
|
+
protocol: SpritesProtocol,
|
|
830
|
+
retry: Retry.Retry,
|
|
831
|
+
}));
|
|
832
|
+
|
|
833
|
+
export type ListSpritesError = SpritesOpError;
|
|
834
|
+
/** List sprites for the authenticated organization */
|
|
835
|
+
export const listSprites: API.PaginatedOperationMethod<
|
|
836
|
+
ListSpritesRequest,
|
|
837
|
+
ListSpritesResponse,
|
|
838
|
+
ListSpritesError,
|
|
839
|
+
SpritesOpContext,
|
|
840
|
+
Sprite
|
|
841
|
+
> = /*@__PURE__*/ API.makePaginated(
|
|
842
|
+
() => ({
|
|
843
|
+
input: ListSpritesRequest,
|
|
844
|
+
output: ListSpritesResponse,
|
|
845
|
+
errors: [],
|
|
846
|
+
protocol: SpritesProtocol,
|
|
847
|
+
retry: Retry.Retry,
|
|
848
|
+
pagination: {
|
|
849
|
+
inputToken: "continuation_token",
|
|
850
|
+
outputToken: "next_continuation_token",
|
|
851
|
+
items: "sprites",
|
|
852
|
+
pageSize: "max_results",
|
|
853
|
+
mode: "cursor",
|
|
854
|
+
} as const,
|
|
855
|
+
}),
|
|
856
|
+
paginateCursor,
|
|
857
|
+
) as any;
|
|
858
|
+
|
|
859
|
+
export type PutServiceError = BadRequest | NotFound | SpritesOpError;
|
|
860
|
+
/** Create or update a sprite service. Returns NDJSON start progress. */
|
|
861
|
+
export const putService: API.OperationMethod<
|
|
862
|
+
PutServiceRequest,
|
|
863
|
+
PutServiceResponse,
|
|
864
|
+
PutServiceError,
|
|
865
|
+
SpritesOpContext
|
|
866
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
867
|
+
input: PutServiceRequest,
|
|
868
|
+
output: PutServiceResponse,
|
|
869
|
+
errors: [BadRequest, NotFound],
|
|
870
|
+
protocol: SpritesProtocol,
|
|
871
|
+
retry: Retry.Retry,
|
|
872
|
+
}));
|
|
873
|
+
|
|
874
|
+
export type RestoreCheckpointError = NotFound | SpritesOpError;
|
|
875
|
+
/** Restore a checkpoint (NDJSON progress stream). Destructive. */
|
|
876
|
+
export const restoreCheckpoint: API.OperationMethod<
|
|
877
|
+
RestoreCheckpointRequest,
|
|
878
|
+
RestoreCheckpointResponse,
|
|
879
|
+
RestoreCheckpointError,
|
|
880
|
+
SpritesOpContext
|
|
881
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
882
|
+
input: RestoreCheckpointRequest,
|
|
883
|
+
output: RestoreCheckpointResponse,
|
|
884
|
+
errors: [NotFound],
|
|
885
|
+
protocol: SpritesProtocol,
|
|
886
|
+
retry: Retry.Retry,
|
|
887
|
+
}));
|
|
888
|
+
|
|
889
|
+
export type UpdateSpriteError = NotFound | SpritesOpError;
|
|
890
|
+
/** Update sprite URL auth settings */
|
|
891
|
+
export const updateSprite: API.OperationMethod<
|
|
892
|
+
UpdateSpriteRequest,
|
|
893
|
+
Sprite,
|
|
894
|
+
UpdateSpriteError,
|
|
895
|
+
SpritesOpContext
|
|
896
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
897
|
+
input: UpdateSpriteRequest,
|
|
898
|
+
output: Sprite,
|
|
899
|
+
errors: [NotFound],
|
|
900
|
+
protocol: SpritesProtocol,
|
|
901
|
+
retry: Retry.Retry,
|
|
902
|
+
}));
|
|
903
|
+
|
|
904
|
+
export type WriteFileError = BadRequest | NotFound | SpritesOpError;
|
|
905
|
+
/** Write file contents to the sprite filesystem. Request body is raw file bytes. */
|
|
906
|
+
export const writeFile: API.OperationMethod<
|
|
907
|
+
WriteFileRequest,
|
|
908
|
+
WriteFileResponse,
|
|
909
|
+
WriteFileError,
|
|
910
|
+
SpritesOpContext
|
|
911
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
912
|
+
input: WriteFileRequest,
|
|
913
|
+
output: WriteFileResponse,
|
|
914
|
+
errors: [BadRequest, NotFound],
|
|
915
|
+
protocol: SpritesProtocol,
|
|
916
|
+
retry: Retry.Retry,
|
|
917
|
+
}));
|