@distilled.cloud/fly-io 0.26.1 → 0.28.0
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/operations/AppCertificatesAcmeCreate.d.ts +53 -101
- package/lib/operations/AppCertificatesAcmeCreate.d.ts.map +1 -1
- package/lib/operations/AppCertificatesAcmeCreate.js +0 -2
- package/lib/operations/AppCertificatesAcmeCreate.js.map +1 -1
- package/lib/operations/AppCertificatesAcmeDelete.d.ts +53 -101
- package/lib/operations/AppCertificatesAcmeDelete.d.ts.map +1 -1
- package/lib/operations/AppCertificatesAcmeDelete.js +0 -2
- package/lib/operations/AppCertificatesAcmeDelete.js.map +1 -1
- package/lib/operations/AppCertificatesCheck.d.ts +62 -119
- package/lib/operations/AppCertificatesCheck.d.ts.map +1 -1
- package/lib/operations/AppCertificatesCheck.js +0 -2
- package/lib/operations/AppCertificatesCheck.js.map +1 -1
- package/lib/operations/AppCertificatesCustomCreate.d.ts +56 -105
- package/lib/operations/AppCertificatesCustomCreate.d.ts.map +1 -1
- package/lib/operations/AppCertificatesCustomCreate.js +1 -2
- package/lib/operations/AppCertificatesCustomCreate.js.map +1 -1
- package/lib/operations/AppCertificatesCustomDelete.d.ts +54 -103
- package/lib/operations/AppCertificatesCustomDelete.d.ts.map +1 -1
- package/lib/operations/AppCertificatesCustomDelete.js +0 -2
- package/lib/operations/AppCertificatesCustomDelete.js.map +1 -1
- package/lib/operations/AppCertificatesDelete.d.ts +8 -11
- package/lib/operations/AppCertificatesDelete.d.ts.map +1 -1
- package/lib/operations/AppCertificatesDelete.js +0 -2
- package/lib/operations/AppCertificatesDelete.js.map +1 -1
- package/lib/operations/AppCertificatesList.d.ts +28 -51
- package/lib/operations/AppCertificatesList.d.ts.map +1 -1
- package/lib/operations/AppCertificatesList.js +0 -2
- package/lib/operations/AppCertificatesList.js.map +1 -1
- package/lib/operations/AppCertificatesShow.d.ts +53 -101
- package/lib/operations/AppCertificatesShow.d.ts.map +1 -1
- package/lib/operations/AppCertificatesShow.js +0 -2
- package/lib/operations/AppCertificatesShow.js.map +1 -1
- package/lib/operations/AppCreateDeployToken.d.ts +10 -15
- package/lib/operations/AppCreateDeployToken.d.ts.map +1 -1
- package/lib/operations/AppCreateDeployToken.js +0 -2
- package/lib/operations/AppCreateDeployToken.js.map +1 -1
- package/lib/operations/AppIPAssignmentsCreate.d.ts +18 -31
- package/lib/operations/AppIPAssignmentsCreate.d.ts.map +1 -1
- package/lib/operations/AppIPAssignmentsCreate.js +0 -2
- package/lib/operations/AppIPAssignmentsCreate.js.map +1 -1
- package/lib/operations/AppIPAssignmentsDelete.d.ts +8 -11
- package/lib/operations/AppIPAssignmentsDelete.d.ts.map +1 -1
- package/lib/operations/AppIPAssignmentsDelete.js +0 -2
- package/lib/operations/AppIPAssignmentsDelete.js.map +1 -1
- package/lib/operations/AppIPAssignmentsList.d.ts +15 -25
- package/lib/operations/AppIPAssignmentsList.d.ts.map +1 -1
- package/lib/operations/AppIPAssignmentsList.js +0 -2
- package/lib/operations/AppIPAssignmentsList.js.map +1 -1
- package/lib/operations/AppsCreate.d.ts +10 -15
- package/lib/operations/AppsCreate.d.ts.map +1 -1
- package/lib/operations/AppsCreate.js +2 -3
- package/lib/operations/AppsCreate.js.map +1 -1
- package/lib/operations/AppsDelete.d.ts +7 -9
- package/lib/operations/AppsDelete.d.ts.map +1 -1
- package/lib/operations/AppsDelete.js +2 -3
- package/lib/operations/AppsDelete.js.map +1 -1
- package/lib/operations/AppsList.d.ts +24 -43
- package/lib/operations/AppsList.d.ts.map +1 -1
- package/lib/operations/AppsList.js +0 -2
- package/lib/operations/AppsList.js.map +1 -1
- package/lib/operations/AppsShow.d.ts +20 -35
- package/lib/operations/AppsShow.d.ts.map +1 -1
- package/lib/operations/AppsShow.js +0 -2
- package/lib/operations/AppsShow.js.map +1 -1
- package/lib/operations/CurrentTokenShow.d.ts +17 -27
- package/lib/operations/CurrentTokenShow.d.ts.map +1 -1
- package/lib/operations/CurrentTokenShow.js +2 -6
- package/lib/operations/CurrentTokenShow.js.map +1 -1
- package/lib/operations/MachinesCordon.d.ts +8 -11
- package/lib/operations/MachinesCordon.d.ts.map +1 -1
- package/lib/operations/MachinesCordon.js +2 -3
- package/lib/operations/MachinesCordon.js.map +1 -1
- package/lib/operations/MachinesCreate.d.ts +799 -1615
- package/lib/operations/MachinesCreate.d.ts.map +1 -1
- package/lib/operations/MachinesCreate.js +9 -3
- package/lib/operations/MachinesCreate.js.map +1 -1
- package/lib/operations/MachinesCreateLease.d.ts +16 -27
- package/lib/operations/MachinesCreateLease.d.ts.map +1 -1
- package/lib/operations/MachinesCreateLease.js +0 -2
- package/lib/operations/MachinesCreateLease.js.map +1 -1
- package/lib/operations/MachinesDelete.d.ts +9 -13
- package/lib/operations/MachinesDelete.d.ts.map +1 -1
- package/lib/operations/MachinesDelete.js +2 -3
- package/lib/operations/MachinesDelete.js.map +1 -1
- package/lib/operations/MachinesDeleteMetadata.d.ts +9 -13
- package/lib/operations/MachinesDeleteMetadata.d.ts.map +1 -1
- package/lib/operations/MachinesDeleteMetadata.js +0 -2
- package/lib/operations/MachinesDeleteMetadata.js.map +1 -1
- package/lib/operations/MachinesExec.d.ts +18 -31
- package/lib/operations/MachinesExec.d.ts.map +1 -1
- package/lib/operations/MachinesExec.js +0 -2
- package/lib/operations/MachinesExec.js.map +1 -1
- package/lib/operations/MachinesGetMemory.d.ts +11 -17
- package/lib/operations/MachinesGetMemory.d.ts.map +1 -1
- package/lib/operations/MachinesGetMemory.js +0 -2
- package/lib/operations/MachinesGetMemory.js.map +1 -1
- package/lib/operations/MachinesGetMetadataKey.d.ts +11 -17
- package/lib/operations/MachinesGetMetadataKey.d.ts.map +1 -1
- package/lib/operations/MachinesGetMetadataKey.js +0 -2
- package/lib/operations/MachinesGetMetadataKey.js.map +1 -1
- package/lib/operations/MachinesList.d.ts +545 -1099
- package/lib/operations/MachinesList.d.ts.map +1 -1
- package/lib/operations/MachinesList.js +6 -2
- package/lib/operations/MachinesList.js.map +1 -1
- package/lib/operations/MachinesListEvents.d.ts +16 -27
- package/lib/operations/MachinesListEvents.d.ts.map +1 -1
- package/lib/operations/MachinesListEvents.js +0 -2
- package/lib/operations/MachinesListEvents.js.map +1 -1
- package/lib/operations/MachinesListProcesses.d.ts +22 -39
- package/lib/operations/MachinesListProcesses.d.ts.map +1 -1
- package/lib/operations/MachinesListProcesses.js +0 -2
- package/lib/operations/MachinesListProcesses.js.map +1 -1
- package/lib/operations/MachinesListVersions.d.ts +261 -523
- package/lib/operations/MachinesListVersions.d.ts.map +1 -1
- package/lib/operations/MachinesListVersions.js +3 -2
- package/lib/operations/MachinesListVersions.js.map +1 -1
- package/lib/operations/MachinesOrgList.d.ts +47 -89
- package/lib/operations/MachinesOrgList.d.ts.map +1 -1
- package/lib/operations/MachinesOrgList.js +3 -5
- package/lib/operations/MachinesOrgList.js.map +1 -1
- package/lib/operations/MachinesReclaimMemory.d.ts +11 -17
- package/lib/operations/MachinesReclaimMemory.d.ts.map +1 -1
- package/lib/operations/MachinesReclaimMemory.js +0 -2
- package/lib/operations/MachinesReclaimMemory.js.map +1 -1
- package/lib/operations/MachinesReleaseLease.d.ts +8 -11
- package/lib/operations/MachinesReleaseLease.d.ts.map +1 -1
- package/lib/operations/MachinesReleaseLease.js +0 -2
- package/lib/operations/MachinesReleaseLease.js.map +1 -1
- package/lib/operations/MachinesRestart.d.ts +10 -15
- package/lib/operations/MachinesRestart.d.ts.map +1 -1
- package/lib/operations/MachinesRestart.js +2 -3
- package/lib/operations/MachinesRestart.js.map +1 -1
- package/lib/operations/MachinesSetMemoryLimit.d.ts +12 -19
- package/lib/operations/MachinesSetMemoryLimit.d.ts.map +1 -1
- package/lib/operations/MachinesSetMemoryLimit.js +0 -2
- package/lib/operations/MachinesSetMemoryLimit.js.map +1 -1
- package/lib/operations/MachinesShow.d.ts +542 -1093
- package/lib/operations/MachinesShow.d.ts.map +1 -1
- package/lib/operations/MachinesShow.js +6 -2
- package/lib/operations/MachinesShow.js.map +1 -1
- package/lib/operations/MachinesShowLease.d.ts +14 -23
- package/lib/operations/MachinesShowLease.d.ts.map +1 -1
- package/lib/operations/MachinesShowLease.js +0 -2
- package/lib/operations/MachinesShowLease.js.map +1 -1
- package/lib/operations/MachinesShowMetadata.d.ts +8 -13
- package/lib/operations/MachinesShowMetadata.d.ts.map +1 -1
- package/lib/operations/MachinesShowMetadata.js +0 -2
- package/lib/operations/MachinesShowMetadata.js.map +1 -1
- package/lib/operations/MachinesSignal.d.ts +9 -13
- package/lib/operations/MachinesSignal.d.ts.map +1 -1
- package/lib/operations/MachinesSignal.js +2 -3
- package/lib/operations/MachinesSignal.js.map +1 -1
- package/lib/operations/MachinesStart.d.ts +8 -11
- package/lib/operations/MachinesStart.d.ts.map +1 -1
- package/lib/operations/MachinesStart.js +2 -3
- package/lib/operations/MachinesStart.js.map +1 -1
- package/lib/operations/MachinesStop.d.ts +10 -15
- package/lib/operations/MachinesStop.d.ts.map +1 -1
- package/lib/operations/MachinesStop.js +2 -3
- package/lib/operations/MachinesStop.js.map +1 -1
- package/lib/operations/MachinesSuspend.d.ts +8 -11
- package/lib/operations/MachinesSuspend.d.ts.map +1 -1
- package/lib/operations/MachinesSuspend.js +2 -3
- package/lib/operations/MachinesSuspend.js.map +1 -1
- package/lib/operations/MachinesUncordon.d.ts +8 -11
- package/lib/operations/MachinesUncordon.d.ts.map +1 -1
- package/lib/operations/MachinesUncordon.js +2 -3
- package/lib/operations/MachinesUncordon.js.map +1 -1
- package/lib/operations/MachinesUpdate.d.ts +801 -1619
- package/lib/operations/MachinesUpdate.d.ts.map +1 -1
- package/lib/operations/MachinesUpdate.js +9 -3
- package/lib/operations/MachinesUpdate.js.map +1 -1
- package/lib/operations/MachinesUpdateMetadata.d.ts +12 -20
- package/lib/operations/MachinesUpdateMetadata.d.ts.map +1 -1
- package/lib/operations/MachinesUpdateMetadata.js +3 -5
- package/lib/operations/MachinesUpdateMetadata.js.map +1 -1
- package/lib/operations/MachinesUpsertMetadata.d.ts +11 -17
- package/lib/operations/MachinesUpsertMetadata.d.ts.map +1 -1
- package/lib/operations/MachinesUpsertMetadata.js +0 -2
- package/lib/operations/MachinesUpsertMetadata.js.map +1 -1
- package/lib/operations/MachinesWait.d.ts +18 -31
- package/lib/operations/MachinesWait.d.ts.map +1 -1
- package/lib/operations/MachinesWait.js +0 -2
- package/lib/operations/MachinesWait.js.map +1 -1
- package/lib/operations/PlatformPlacementsPost.d.ts +29 -55
- package/lib/operations/PlatformPlacementsPost.d.ts.map +1 -1
- package/lib/operations/PlatformPlacementsPost.js +0 -2
- package/lib/operations/PlatformPlacementsPost.js.map +1 -1
- package/lib/operations/PlatformRegionsGet.d.ts +18 -29
- package/lib/operations/PlatformRegionsGet.d.ts.map +1 -1
- package/lib/operations/PlatformRegionsGet.js +0 -2
- package/lib/operations/PlatformRegionsGet.js.map +1 -1
- package/lib/operations/SecretCreate.d.ts +17 -29
- package/lib/operations/SecretCreate.d.ts.map +1 -1
- package/lib/operations/SecretCreate.js +0 -2
- package/lib/operations/SecretCreate.js.map +1 -1
- package/lib/operations/SecretDelete.d.ts +11 -17
- package/lib/operations/SecretDelete.d.ts.map +1 -1
- package/lib/operations/SecretDelete.js +0 -2
- package/lib/operations/SecretDelete.js.map +1 -1
- package/lib/operations/SecretGet.d.ts +16 -27
- package/lib/operations/SecretGet.d.ts.map +1 -1
- package/lib/operations/SecretGet.js +0 -2
- package/lib/operations/SecretGet.js.map +1 -1
- package/lib/operations/SecretkeyDecrypt.d.ts +13 -21
- package/lib/operations/SecretkeyDecrypt.d.ts.map +1 -1
- package/lib/operations/SecretkeyDecrypt.js +0 -2
- package/lib/operations/SecretkeyDecrypt.js.map +1 -1
- package/lib/operations/SecretkeyDelete.d.ts +11 -17
- package/lib/operations/SecretkeyDelete.d.ts.map +1 -1
- package/lib/operations/SecretkeyDelete.js +0 -2
- package/lib/operations/SecretkeyDelete.js.map +1 -1
- package/lib/operations/SecretkeyEncrypt.d.ts +13 -21
- package/lib/operations/SecretkeyEncrypt.d.ts.map +1 -1
- package/lib/operations/SecretkeyEncrypt.js +0 -2
- package/lib/operations/SecretkeyEncrypt.js.map +1 -1
- package/lib/operations/SecretkeyGenerate.d.ts +18 -31
- package/lib/operations/SecretkeyGenerate.d.ts.map +1 -1
- package/lib/operations/SecretkeyGenerate.js +0 -2
- package/lib/operations/SecretkeyGenerate.js.map +1 -1
- package/lib/operations/SecretkeyGet.d.ts +15 -25
- package/lib/operations/SecretkeyGet.d.ts.map +1 -1
- package/lib/operations/SecretkeyGet.js +0 -2
- package/lib/operations/SecretkeyGet.js.map +1 -1
- package/lib/operations/SecretkeySet.d.ts +18 -31
- package/lib/operations/SecretkeySet.d.ts.map +1 -1
- package/lib/operations/SecretkeySet.js +0 -2
- package/lib/operations/SecretkeySet.js.map +1 -1
- package/lib/operations/SecretkeySign.d.ts +12 -19
- package/lib/operations/SecretkeySign.d.ts.map +1 -1
- package/lib/operations/SecretkeySign.js +0 -2
- package/lib/operations/SecretkeySign.js.map +1 -1
- package/lib/operations/SecretkeyVerify.d.ts +11 -17
- package/lib/operations/SecretkeyVerify.d.ts.map +1 -1
- package/lib/operations/SecretkeyVerify.js +2 -3
- package/lib/operations/SecretkeyVerify.js.map +1 -1
- package/lib/operations/SecretkeysList.d.ts +17 -29
- package/lib/operations/SecretkeysList.d.ts.map +1 -1
- package/lib/operations/SecretkeysList.js +0 -2
- package/lib/operations/SecretkeysList.js.map +1 -1
- package/lib/operations/SecretsList.d.ts +17 -29
- package/lib/operations/SecretsList.d.ts.map +1 -1
- package/lib/operations/SecretsList.js +0 -2
- package/lib/operations/SecretsList.js.map +1 -1
- package/lib/operations/SecretsUpdate.d.ts +18 -33
- package/lib/operations/SecretsUpdate.d.ts.map +1 -1
- package/lib/operations/SecretsUpdate.js +0 -2
- package/lib/operations/SecretsUpdate.js.map +1 -1
- package/lib/operations/TokensAuthenticate.d.ts +26 -0
- package/lib/operations/TokensAuthenticate.d.ts.map +1 -0
- package/lib/operations/TokensAuthenticate.js +33 -0
- package/lib/operations/TokensAuthenticate.js.map +1 -0
- package/lib/operations/TokensAuthorize.d.ts +59 -0
- package/lib/operations/TokensAuthorize.d.ts.map +1 -0
- package/lib/operations/TokensAuthorize.js +64 -0
- package/lib/operations/TokensAuthorize.js.map +1 -0
- package/lib/operations/TokensRequestKms.d.ts +6 -5
- package/lib/operations/TokensRequestKms.d.ts.map +1 -1
- package/lib/operations/TokensRequestKms.js +2 -3
- package/lib/operations/TokensRequestKms.js.map +1 -1
- package/lib/operations/TokensRequestOIDC.d.ts +8 -11
- package/lib/operations/TokensRequestOIDC.d.ts.map +1 -1
- package/lib/operations/TokensRequestOIDC.js +1 -3
- package/lib/operations/TokensRequestOIDC.js.map +1 -1
- package/lib/operations/VolumeDelete.d.ts +30 -55
- package/lib/operations/VolumeDelete.d.ts.map +1 -1
- package/lib/operations/VolumeDelete.js +0 -2
- package/lib/operations/VolumeDelete.js.map +1 -1
- package/lib/operations/VolumesCreate.d.ts +52 -99
- package/lib/operations/VolumesCreate.d.ts.map +1 -1
- package/lib/operations/VolumesCreate.js +0 -2
- package/lib/operations/VolumesCreate.js.map +1 -1
- package/lib/operations/VolumesExtend.d.ts +34 -63
- package/lib/operations/VolumesExtend.d.ts.map +1 -1
- package/lib/operations/VolumesExtend.js +0 -2
- package/lib/operations/VolumesExtend.js.map +1 -1
- package/lib/operations/VolumesGetById.d.ts +30 -55
- package/lib/operations/VolumesGetById.d.ts.map +1 -1
- package/lib/operations/VolumesGetById.js +0 -2
- package/lib/operations/VolumesGetById.js.map +1 -1
- package/lib/operations/VolumesList.d.ts +30 -55
- package/lib/operations/VolumesList.d.ts.map +1 -1
- package/lib/operations/VolumesList.js +0 -2
- package/lib/operations/VolumesList.js.map +1 -1
- package/lib/operations/VolumesListSnapshots.d.ts +16 -27
- package/lib/operations/VolumesListSnapshots.d.ts.map +1 -1
- package/lib/operations/VolumesListSnapshots.js +0 -2
- package/lib/operations/VolumesListSnapshots.js.map +1 -1
- package/lib/operations/VolumesOrgList.d.ts +43 -81
- package/lib/operations/VolumesOrgList.d.ts.map +1 -1
- package/lib/operations/VolumesOrgList.js +0 -2
- package/lib/operations/VolumesOrgList.js.map +1 -1
- package/lib/operations/VolumesUpdate.d.ts +32 -59
- package/lib/operations/VolumesUpdate.d.ts.map +1 -1
- package/lib/operations/VolumesUpdate.js +0 -2
- package/lib/operations/VolumesUpdate.js.map +1 -1
- package/lib/operations/createVolumeSnapshot.d.ts +8 -11
- package/lib/operations/createVolumeSnapshot.d.ts.map +1 -1
- package/lib/operations/createVolumeSnapshot.js +0 -2
- package/lib/operations/createVolumeSnapshot.js.map +1 -1
- package/lib/operations/index.d.ts +4 -1
- package/lib/operations/index.d.ts.map +1 -1
- package/lib/operations/index.js +4 -1
- package/lib/operations/index.js.map +1 -1
- package/package.json +2 -2
- package/src/operations/AppCertificatesAcmeCreate.ts +45 -6
- package/src/operations/AppCertificatesAcmeDelete.ts +45 -6
- package/src/operations/AppCertificatesCheck.ts +54 -4
- package/src/operations/AppCertificatesCustomCreate.ts +48 -6
- package/src/operations/AppCertificatesCustomDelete.ts +46 -6
- package/src/operations/AppCertificatesDelete.ts +7 -5
- package/src/operations/AppCertificatesList.ts +29 -4
- package/src/operations/AppCertificatesShow.ts +45 -4
- package/src/operations/AppCreateDeployToken.ts +11 -4
- package/src/operations/AppIPAssignmentsCreate.ts +19 -6
- package/src/operations/AppIPAssignmentsDelete.ts +7 -6
- package/src/operations/AppIPAssignmentsList.ts +16 -4
- package/src/operations/AppsCreate.ts +12 -4
- package/src/operations/AppsDelete.ts +9 -4
- package/src/operations/AppsList.ts +25 -4
- package/src/operations/AppsShow.ts +17 -4
- package/src/operations/CurrentTokenShow.ts +17 -7
- package/src/operations/MachinesCordon.ts +8 -4
- package/src/operations/MachinesCreate.ts +767 -5
- package/src/operations/MachinesCreateLease.ts +15 -4
- package/src/operations/MachinesDelete.ts +9 -4
- package/src/operations/MachinesDeleteMetadata.ts +8 -6
- package/src/operations/MachinesExec.ts +17 -4
- package/src/operations/MachinesGetMemory.ts +10 -4
- package/src/operations/MachinesGetMetadataKey.ts +10 -6
- package/src/operations/MachinesList.ts +524 -4
- package/src/operations/MachinesListEvents.ts +15 -4
- package/src/operations/MachinesListProcesses.ts +18 -5
- package/src/operations/MachinesListVersions.ts +249 -4
- package/src/operations/MachinesOrgList.ts +49 -7
- package/src/operations/MachinesReclaimMemory.ts +10 -5
- package/src/operations/MachinesReleaseLease.ts +7 -4
- package/src/operations/MachinesRestart.ts +17 -4
- package/src/operations/MachinesSetMemoryLimit.ts +11 -6
- package/src/operations/MachinesShow.ts +519 -4
- package/src/operations/MachinesShowLease.ts +13 -4
- package/src/operations/MachinesShowMetadata.ts +10 -4
- package/src/operations/MachinesSignal.ts +23 -4
- package/src/operations/MachinesStart.ts +8 -4
- package/src/operations/MachinesStop.ts +17 -4
- package/src/operations/MachinesSuspend.ts +8 -4
- package/src/operations/MachinesUncordon.ts +8 -4
- package/src/operations/MachinesUpdate.ts +767 -5
- package/src/operations/MachinesUpdateMetadata.ts +13 -9
- package/src/operations/MachinesUpsertMetadata.ts +10 -6
- package/src/operations/MachinesWait.ts +23 -4
- package/src/operations/PlatformPlacementsPost.ts +26 -6
- package/src/operations/PlatformRegionsGet.ts +16 -4
- package/src/operations/SecretCreate.ts +16 -4
- package/src/operations/SecretDelete.ts +10 -4
- package/src/operations/SecretGet.ts +15 -4
- package/src/operations/SecretkeyDecrypt.ts +12 -4
- package/src/operations/SecretkeyDelete.ts +10 -4
- package/src/operations/SecretkeyEncrypt.ts +12 -4
- package/src/operations/SecretkeyGenerate.ts +17 -4
- package/src/operations/SecretkeyGet.ts +14 -4
- package/src/operations/SecretkeySet.ts +17 -4
- package/src/operations/SecretkeySign.ts +11 -4
- package/src/operations/SecretkeyVerify.ts +11 -4
- package/src/operations/SecretkeysList.ts +18 -4
- package/src/operations/SecretsList.ts +18 -4
- package/src/operations/SecretsUpdate.ts +19 -4
- package/src/operations/TokensAuthenticate.ts +54 -0
- package/src/operations/TokensAuthorize.ts +122 -0
- package/src/operations/TokensRequestKms.ts +7 -4
- package/src/operations/TokensRequestOIDC.ts +9 -4
- package/src/operations/VolumeDelete.ts +29 -4
- package/src/operations/VolumesCreate.ts +53 -4
- package/src/operations/VolumesExtend.ts +33 -4
- package/src/operations/VolumesGetById.ts +29 -4
- package/src/operations/VolumesList.ts +31 -4
- package/src/operations/VolumesListSnapshots.ts +15 -4
- package/src/operations/VolumesOrgList.ts +44 -4
- package/src/operations/VolumesUpdate.ts +31 -4
- package/src/operations/createVolumeSnapshot.ts +7 -4
- package/src/operations/index.ts +4 -1
|
@@ -4,14 +4,29 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface SecretsListInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
min_version?: string;
|
|
10
|
+
show_secrets?: boolean;
|
|
11
|
+
}
|
|
7
12
|
export const SecretsListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
13
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
14
|
min_version: Schema.optional(Schema.String),
|
|
10
15
|
show_secrets: Schema.optional(Schema.Boolean),
|
|
11
|
-
}).pipe(
|
|
12
|
-
|
|
16
|
+
}).pipe(
|
|
17
|
+
T.Http({ method: "GET", path: "/apps/{app_name}/secrets" }),
|
|
18
|
+
) as unknown as Schema.Codec<SecretsListInput>;
|
|
13
19
|
|
|
14
20
|
// Output Schema
|
|
21
|
+
export interface SecretsListOutput {
|
|
22
|
+
secrets?: {
|
|
23
|
+
created_at?: string;
|
|
24
|
+
digest?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
updated_at?: string;
|
|
27
|
+
value?: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
15
30
|
export const SecretsListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
16
31
|
secrets: Schema.optional(
|
|
17
32
|
Schema.Array(
|
|
@@ -24,8 +39,7 @@ export const SecretsListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
24
39
|
}),
|
|
25
40
|
),
|
|
26
41
|
),
|
|
27
|
-
})
|
|
28
|
-
export type SecretsListOutput = typeof SecretsListOutput.Type;
|
|
42
|
+
}) as unknown as Schema.Codec<SecretsListOutput>;
|
|
29
43
|
|
|
30
44
|
// The operation
|
|
31
45
|
/**
|
|
@@ -4,13 +4,29 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface SecretsUpdateInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
values?: Record<string, string>;
|
|
10
|
+
}
|
|
7
11
|
export const SecretsUpdateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
values: Schema.optional(Schema.Record(Schema.String, Schema.String)),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
14
|
+
}).pipe(
|
|
15
|
+
T.Http({ method: "POST", path: "/apps/{app_name}/secrets" }),
|
|
16
|
+
) as unknown as Schema.Codec<SecretsUpdateInput>;
|
|
12
17
|
|
|
13
18
|
// Output Schema
|
|
19
|
+
export interface SecretsUpdateOutput {
|
|
20
|
+
Version?: number;
|
|
21
|
+
secrets?: {
|
|
22
|
+
created_at?: string;
|
|
23
|
+
digest?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
updated_at?: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
}[];
|
|
28
|
+
version?: number;
|
|
29
|
+
}
|
|
14
30
|
export const SecretsUpdateOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
15
31
|
Version: Schema.optional(Schema.Number),
|
|
16
32
|
secrets: Schema.optional(
|
|
@@ -25,8 +41,7 @@ export const SecretsUpdateOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
25
41
|
),
|
|
26
42
|
),
|
|
27
43
|
version: Schema.optional(Schema.Number),
|
|
28
|
-
})
|
|
29
|
-
export type SecretsUpdateOutput = typeof SecretsUpdateOutput.Type;
|
|
44
|
+
}) as unknown as Schema.Codec<SecretsUpdateOutput>;
|
|
30
45
|
|
|
31
46
|
// The operation
|
|
32
47
|
/**
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { BadRequest } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export interface TokensAuthenticateInput {
|
|
8
|
+
header?: string;
|
|
9
|
+
}
|
|
10
|
+
export const TokensAuthenticateInput =
|
|
11
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
12
|
+
header: Schema.optional(Schema.String),
|
|
13
|
+
}).pipe(
|
|
14
|
+
T.Http({ method: "POST", path: "/tokens/authenticate" }),
|
|
15
|
+
) as unknown as Schema.Codec<TokensAuthenticateInput>;
|
|
16
|
+
|
|
17
|
+
// Output Schema
|
|
18
|
+
export type TokensAuthenticateOutput = {
|
|
19
|
+
caveats?: { caveats?: unknown[] };
|
|
20
|
+
header?: string;
|
|
21
|
+
nonce?: { kid?: number[]; proof?: boolean; rnd?: number[] };
|
|
22
|
+
permission_token?: number[];
|
|
23
|
+
}[];
|
|
24
|
+
export const TokensAuthenticateOutput =
|
|
25
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
26
|
+
Schema.Struct({
|
|
27
|
+
caveats: Schema.optional(
|
|
28
|
+
Schema.Struct({
|
|
29
|
+
caveats: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
30
|
+
}),
|
|
31
|
+
),
|
|
32
|
+
header: Schema.optional(Schema.String),
|
|
33
|
+
nonce: Schema.optional(
|
|
34
|
+
Schema.Struct({
|
|
35
|
+
kid: Schema.optional(Schema.Array(Schema.Number)),
|
|
36
|
+
proof: Schema.optional(Schema.Boolean),
|
|
37
|
+
rnd: Schema.optional(Schema.Array(Schema.Number)),
|
|
38
|
+
}),
|
|
39
|
+
),
|
|
40
|
+
permission_token: Schema.optional(Schema.Array(Schema.Number)),
|
|
41
|
+
}),
|
|
42
|
+
) as unknown as Schema.Codec<TokensAuthenticateOutput>;
|
|
43
|
+
|
|
44
|
+
// The operation
|
|
45
|
+
/**
|
|
46
|
+
* Authenticate token header
|
|
47
|
+
*
|
|
48
|
+
* Verify a token header without checking resource access.
|
|
49
|
+
*/
|
|
50
|
+
export const TokensAuthenticate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
51
|
+
inputSchema: TokensAuthenticateInput,
|
|
52
|
+
outputSchema: TokensAuthenticateOutput,
|
|
53
|
+
errors: [BadRequest] as const,
|
|
54
|
+
}));
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as Schema from "effect/Schema";
|
|
2
|
+
import { API } from "../client.ts";
|
|
3
|
+
import * as T from "../traits.ts";
|
|
4
|
+
import { BadRequest } from "../errors.ts";
|
|
5
|
+
|
|
6
|
+
// Input Schema
|
|
7
|
+
export interface TokensAuthorizeInput {
|
|
8
|
+
access?: {
|
|
9
|
+
action?: 1 | 2 | 4 | 8 | 16 | 31 | 0;
|
|
10
|
+
app_feature?: string;
|
|
11
|
+
app_name?: string;
|
|
12
|
+
command?: string[];
|
|
13
|
+
machine_feature?: string;
|
|
14
|
+
machine_id?: string;
|
|
15
|
+
mutation?: string;
|
|
16
|
+
org_feature?: string;
|
|
17
|
+
org_slug?: string;
|
|
18
|
+
source_machine?: string;
|
|
19
|
+
storage_object?: string;
|
|
20
|
+
volume_id?: string;
|
|
21
|
+
};
|
|
22
|
+
header?: string;
|
|
23
|
+
}
|
|
24
|
+
export const TokensAuthorizeInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
25
|
+
access: Schema.optional(
|
|
26
|
+
Schema.Struct({
|
|
27
|
+
action: Schema.optional(Schema.Literals([1, 2, 4, 8, 16, 31, 0])),
|
|
28
|
+
app_feature: Schema.optional(Schema.String),
|
|
29
|
+
app_name: Schema.optional(Schema.String),
|
|
30
|
+
command: Schema.optional(Schema.Array(Schema.String)),
|
|
31
|
+
machine_feature: Schema.optional(Schema.String),
|
|
32
|
+
machine_id: Schema.optional(Schema.String),
|
|
33
|
+
mutation: Schema.optional(Schema.String),
|
|
34
|
+
org_feature: Schema.optional(Schema.String),
|
|
35
|
+
org_slug: Schema.optional(Schema.String),
|
|
36
|
+
source_machine: Schema.optional(Schema.String),
|
|
37
|
+
storage_object: Schema.optional(Schema.String),
|
|
38
|
+
volume_id: Schema.optional(Schema.String),
|
|
39
|
+
}),
|
|
40
|
+
),
|
|
41
|
+
header: Schema.optional(Schema.String),
|
|
42
|
+
}).pipe(
|
|
43
|
+
T.Http({ method: "POST", path: "/tokens/authorize" }),
|
|
44
|
+
) as unknown as Schema.Codec<TokensAuthorizeInput>;
|
|
45
|
+
|
|
46
|
+
// Output Schema
|
|
47
|
+
export interface TokensAuthorizeOutput {
|
|
48
|
+
access?: {
|
|
49
|
+
action?: 1 | 2 | 4 | 8 | 16 | 31 | 0;
|
|
50
|
+
app_feature?: string;
|
|
51
|
+
appid?: number;
|
|
52
|
+
cluster?: string;
|
|
53
|
+
command?: string[];
|
|
54
|
+
feature?: string;
|
|
55
|
+
machine?: string;
|
|
56
|
+
machine_feature?: string;
|
|
57
|
+
mutation?: string;
|
|
58
|
+
orgid?: number;
|
|
59
|
+
sourceApp?: string;
|
|
60
|
+
sourceMachine?: string;
|
|
61
|
+
sourceOrganization?: string;
|
|
62
|
+
storage_object?: string;
|
|
63
|
+
volume?: string;
|
|
64
|
+
};
|
|
65
|
+
verified_token?: {
|
|
66
|
+
caveats?: { caveats?: unknown[] };
|
|
67
|
+
header?: string;
|
|
68
|
+
nonce?: { kid?: number[]; proof?: boolean; rnd?: number[] };
|
|
69
|
+
permission_token?: number[];
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
export const TokensAuthorizeOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
73
|
+
access: Schema.optional(
|
|
74
|
+
Schema.Struct({
|
|
75
|
+
action: Schema.optional(Schema.Literals([1, 2, 4, 8, 16, 31, 0])),
|
|
76
|
+
app_feature: Schema.optional(Schema.String),
|
|
77
|
+
appid: Schema.optional(Schema.Number),
|
|
78
|
+
cluster: Schema.optional(Schema.String),
|
|
79
|
+
command: Schema.optional(Schema.Array(Schema.String)),
|
|
80
|
+
feature: Schema.optional(Schema.String),
|
|
81
|
+
machine: Schema.optional(Schema.String),
|
|
82
|
+
machine_feature: Schema.optional(Schema.String),
|
|
83
|
+
mutation: Schema.optional(Schema.String),
|
|
84
|
+
orgid: Schema.optional(Schema.Number),
|
|
85
|
+
sourceApp: Schema.optional(Schema.String),
|
|
86
|
+
sourceMachine: Schema.optional(Schema.String),
|
|
87
|
+
sourceOrganization: Schema.optional(Schema.String),
|
|
88
|
+
storage_object: Schema.optional(Schema.String),
|
|
89
|
+
volume: Schema.optional(Schema.String),
|
|
90
|
+
}),
|
|
91
|
+
),
|
|
92
|
+
verified_token: Schema.optional(
|
|
93
|
+
Schema.Struct({
|
|
94
|
+
caveats: Schema.optional(
|
|
95
|
+
Schema.Struct({
|
|
96
|
+
caveats: Schema.optional(Schema.Array(Schema.Unknown)),
|
|
97
|
+
}),
|
|
98
|
+
),
|
|
99
|
+
header: Schema.optional(Schema.String),
|
|
100
|
+
nonce: Schema.optional(
|
|
101
|
+
Schema.Struct({
|
|
102
|
+
kid: Schema.optional(Schema.Array(Schema.Number)),
|
|
103
|
+
proof: Schema.optional(Schema.Boolean),
|
|
104
|
+
rnd: Schema.optional(Schema.Array(Schema.Number)),
|
|
105
|
+
}),
|
|
106
|
+
),
|
|
107
|
+
permission_token: Schema.optional(Schema.Array(Schema.Number)),
|
|
108
|
+
}),
|
|
109
|
+
),
|
|
110
|
+
}) as unknown as Schema.Codec<TokensAuthorizeOutput>;
|
|
111
|
+
|
|
112
|
+
// The operation
|
|
113
|
+
/**
|
|
114
|
+
* Authorize token for resource access
|
|
115
|
+
*
|
|
116
|
+
* Verify a token header and validate it against a requested access scope.
|
|
117
|
+
*/
|
|
118
|
+
export const TokensAuthorize = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
119
|
+
inputSchema: TokensAuthorizeInput,
|
|
120
|
+
outputSchema: TokensAuthorizeOutput,
|
|
121
|
+
errors: [BadRequest] as const,
|
|
122
|
+
}));
|
|
@@ -4,14 +4,17 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface TokensRequestKmsInput {}
|
|
7
8
|
export const TokensRequestKmsInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
8
9
|
{},
|
|
9
|
-
).pipe(
|
|
10
|
-
|
|
10
|
+
).pipe(
|
|
11
|
+
T.Http({ method: "POST", path: "/tokens/kms" }),
|
|
12
|
+
) as unknown as Schema.Codec<TokensRequestKmsInput>;
|
|
11
13
|
|
|
12
14
|
// Output Schema
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
+
export type TokensRequestKmsOutput = void;
|
|
16
|
+
export const TokensRequestKmsOutput =
|
|
17
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void as unknown as Schema.Codec<TokensRequestKmsOutput>;
|
|
15
18
|
|
|
16
19
|
// The operation
|
|
17
20
|
/**
|
|
@@ -4,18 +4,23 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface TokensRequestOIDCInput {
|
|
8
|
+
aud?: string;
|
|
9
|
+
aws_principal_tags?: boolean;
|
|
10
|
+
}
|
|
7
11
|
export const TokensRequestOIDCInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
8
12
|
{
|
|
9
13
|
aud: Schema.optional(Schema.String),
|
|
10
14
|
aws_principal_tags: Schema.optional(Schema.Boolean),
|
|
11
15
|
},
|
|
12
|
-
).pipe(
|
|
13
|
-
|
|
16
|
+
).pipe(
|
|
17
|
+
T.Http({ method: "POST", path: "/tokens/oidc" }),
|
|
18
|
+
) as unknown as Schema.Codec<TokensRequestOIDCInput>;
|
|
14
19
|
|
|
15
20
|
// Output Schema
|
|
21
|
+
export type TokensRequestOIDCOutput = void;
|
|
16
22
|
export const TokensRequestOIDCOutput =
|
|
17
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
18
|
-
export type TokensRequestOIDCOutput = typeof TokensRequestOIDCOutput.Type;
|
|
23
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Void as unknown as Schema.Codec<TokensRequestOIDCOutput>;
|
|
19
24
|
|
|
20
25
|
// The operation
|
|
21
26
|
/**
|
|
@@ -4,15 +4,41 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface VolumeDeleteInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
volume_id: string;
|
|
10
|
+
}
|
|
7
11
|
export const VolumeDeleteInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
volume_id: Schema.String.pipe(T.PathParam()),
|
|
10
14
|
}).pipe(
|
|
11
15
|
T.Http({ method: "DELETE", path: "/apps/{app_name}/volumes/{volume_id}" }),
|
|
12
|
-
)
|
|
13
|
-
export type VolumeDeleteInput = typeof VolumeDeleteInput.Type;
|
|
16
|
+
) as unknown as Schema.Codec<VolumeDeleteInput>;
|
|
14
17
|
|
|
15
18
|
// Output Schema
|
|
19
|
+
export interface VolumeDeleteOutput {
|
|
20
|
+
attached_alloc_id?: string;
|
|
21
|
+
attached_machine_id?: string;
|
|
22
|
+
auto_backup_enabled?: boolean;
|
|
23
|
+
block_size?: number;
|
|
24
|
+
blocks?: number;
|
|
25
|
+
blocks_avail?: number;
|
|
26
|
+
blocks_free?: number;
|
|
27
|
+
bytes_total?: number;
|
|
28
|
+
bytes_used?: number;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
encrypted?: boolean;
|
|
31
|
+
fstype?: string;
|
|
32
|
+
host_status?: "ok" | "unknown" | "unreachable";
|
|
33
|
+
id?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
region?: string;
|
|
36
|
+
size_gb?: number;
|
|
37
|
+
snapshot_retention?: number;
|
|
38
|
+
state?: string;
|
|
39
|
+
type?: "local" | "cache";
|
|
40
|
+
zone?: string;
|
|
41
|
+
}
|
|
16
42
|
export const VolumeDeleteOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
43
|
attached_alloc_id: Schema.optional(Schema.String),
|
|
18
44
|
attached_machine_id: Schema.optional(Schema.String),
|
|
@@ -37,8 +63,7 @@ export const VolumeDeleteOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
37
63
|
state: Schema.optional(Schema.String),
|
|
38
64
|
type: Schema.optional(Schema.Literals(["local", "cache"])),
|
|
39
65
|
zone: Schema.optional(Schema.String),
|
|
40
|
-
})
|
|
41
|
-
export type VolumeDeleteOutput = typeof VolumeDeleteOutput.Type;
|
|
66
|
+
}) as unknown as Schema.Codec<VolumeDeleteOutput>;
|
|
42
67
|
|
|
43
68
|
// The operation
|
|
44
69
|
/**
|
|
@@ -4,6 +4,32 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface VolumesCreateInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
auto_backup_enabled?: boolean;
|
|
10
|
+
compute?: {
|
|
11
|
+
cpu_kind?: string;
|
|
12
|
+
cpus?: number;
|
|
13
|
+
gpu_kind?: string;
|
|
14
|
+
gpus?: number;
|
|
15
|
+
host_dedication_id?: string;
|
|
16
|
+
kernel_args?: string[];
|
|
17
|
+
max_memory_mb?: number;
|
|
18
|
+
memory_mb?: number;
|
|
19
|
+
persist_rootfs?: "never" | "always" | "restart";
|
|
20
|
+
};
|
|
21
|
+
compute_image?: string;
|
|
22
|
+
encrypted?: boolean;
|
|
23
|
+
fstype?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
region?: string;
|
|
26
|
+
require_unique_zone?: boolean;
|
|
27
|
+
size_gb?: number;
|
|
28
|
+
snapshot_id?: string;
|
|
29
|
+
snapshot_retention?: number;
|
|
30
|
+
source_volume_id?: string;
|
|
31
|
+
unique_zone_app_wide?: boolean;
|
|
32
|
+
}
|
|
7
33
|
export const VolumesCreateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
34
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
35
|
auto_backup_enabled: Schema.optional(Schema.Boolean),
|
|
@@ -33,10 +59,34 @@ export const VolumesCreateInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
33
59
|
snapshot_retention: Schema.optional(Schema.Number),
|
|
34
60
|
source_volume_id: Schema.optional(Schema.String),
|
|
35
61
|
unique_zone_app_wide: Schema.optional(Schema.Boolean),
|
|
36
|
-
}).pipe(
|
|
37
|
-
|
|
62
|
+
}).pipe(
|
|
63
|
+
T.Http({ method: "POST", path: "/apps/{app_name}/volumes" }),
|
|
64
|
+
) as unknown as Schema.Codec<VolumesCreateInput>;
|
|
38
65
|
|
|
39
66
|
// Output Schema
|
|
67
|
+
export interface VolumesCreateOutput {
|
|
68
|
+
attached_alloc_id?: string;
|
|
69
|
+
attached_machine_id?: string;
|
|
70
|
+
auto_backup_enabled?: boolean;
|
|
71
|
+
block_size?: number;
|
|
72
|
+
blocks?: number;
|
|
73
|
+
blocks_avail?: number;
|
|
74
|
+
blocks_free?: number;
|
|
75
|
+
bytes_total?: number;
|
|
76
|
+
bytes_used?: number;
|
|
77
|
+
created_at?: string;
|
|
78
|
+
encrypted?: boolean;
|
|
79
|
+
fstype?: string;
|
|
80
|
+
host_status?: "ok" | "unknown" | "unreachable";
|
|
81
|
+
id?: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
region?: string;
|
|
84
|
+
size_gb?: number;
|
|
85
|
+
snapshot_retention?: number;
|
|
86
|
+
state?: string;
|
|
87
|
+
type?: "local" | "cache";
|
|
88
|
+
zone?: string;
|
|
89
|
+
}
|
|
40
90
|
export const VolumesCreateOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
41
91
|
attached_alloc_id: Schema.optional(Schema.String),
|
|
42
92
|
attached_machine_id: Schema.optional(Schema.String),
|
|
@@ -61,8 +111,7 @@ export const VolumesCreateOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
61
111
|
state: Schema.optional(Schema.String),
|
|
62
112
|
type: Schema.optional(Schema.Literals(["local", "cache"])),
|
|
63
113
|
zone: Schema.optional(Schema.String),
|
|
64
|
-
})
|
|
65
|
-
export type VolumesCreateOutput = typeof VolumesCreateOutput.Type;
|
|
114
|
+
}) as unknown as Schema.Codec<VolumesCreateOutput>;
|
|
66
115
|
|
|
67
116
|
// The operation
|
|
68
117
|
/**
|
|
@@ -4,6 +4,11 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { BadRequest, Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface VolumesExtendInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
volume_id: string;
|
|
10
|
+
size_gb?: number;
|
|
11
|
+
}
|
|
7
12
|
export const VolumesExtendInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
13
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
14
|
volume_id: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,10 +18,35 @@ export const VolumesExtendInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
13
18
|
method: "PUT",
|
|
14
19
|
path: "/apps/{app_name}/volumes/{volume_id}/extend",
|
|
15
20
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type VolumesExtendInput = typeof VolumesExtendInput.Type;
|
|
21
|
+
) as unknown as Schema.Codec<VolumesExtendInput>;
|
|
18
22
|
|
|
19
23
|
// Output Schema
|
|
24
|
+
export interface VolumesExtendOutput {
|
|
25
|
+
needs_restart?: boolean;
|
|
26
|
+
volume?: {
|
|
27
|
+
attached_alloc_id?: string;
|
|
28
|
+
attached_machine_id?: string;
|
|
29
|
+
auto_backup_enabled?: boolean;
|
|
30
|
+
block_size?: number;
|
|
31
|
+
blocks?: number;
|
|
32
|
+
blocks_avail?: number;
|
|
33
|
+
blocks_free?: number;
|
|
34
|
+
bytes_total?: number;
|
|
35
|
+
bytes_used?: number;
|
|
36
|
+
created_at?: string;
|
|
37
|
+
encrypted?: boolean;
|
|
38
|
+
fstype?: string;
|
|
39
|
+
host_status?: "ok" | "unknown" | "unreachable";
|
|
40
|
+
id?: string;
|
|
41
|
+
name?: string;
|
|
42
|
+
region?: string;
|
|
43
|
+
size_gb?: number;
|
|
44
|
+
snapshot_retention?: number;
|
|
45
|
+
state?: string;
|
|
46
|
+
type?: "local" | "cache";
|
|
47
|
+
zone?: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
20
50
|
export const VolumesExtendOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
21
51
|
needs_restart: Schema.optional(Schema.Boolean),
|
|
22
52
|
volume: Schema.optional(
|
|
@@ -46,8 +76,7 @@ export const VolumesExtendOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
46
76
|
zone: Schema.optional(Schema.String),
|
|
47
77
|
}),
|
|
48
78
|
),
|
|
49
|
-
})
|
|
50
|
-
export type VolumesExtendOutput = typeof VolumesExtendOutput.Type;
|
|
79
|
+
}) as unknown as Schema.Codec<VolumesExtendOutput>;
|
|
51
80
|
|
|
52
81
|
// The operation
|
|
53
82
|
/**
|
|
@@ -4,15 +4,41 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface VolumesGetByIdInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
volume_id: string;
|
|
10
|
+
}
|
|
7
11
|
export const VolumesGetByIdInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
volume_id: Schema.String.pipe(T.PathParam()),
|
|
10
14
|
}).pipe(
|
|
11
15
|
T.Http({ method: "GET", path: "/apps/{app_name}/volumes/{volume_id}" }),
|
|
12
|
-
)
|
|
13
|
-
export type VolumesGetByIdInput = typeof VolumesGetByIdInput.Type;
|
|
16
|
+
) as unknown as Schema.Codec<VolumesGetByIdInput>;
|
|
14
17
|
|
|
15
18
|
// Output Schema
|
|
19
|
+
export interface VolumesGetByIdOutput {
|
|
20
|
+
attached_alloc_id?: string;
|
|
21
|
+
attached_machine_id?: string;
|
|
22
|
+
auto_backup_enabled?: boolean;
|
|
23
|
+
block_size?: number;
|
|
24
|
+
blocks?: number;
|
|
25
|
+
blocks_avail?: number;
|
|
26
|
+
blocks_free?: number;
|
|
27
|
+
bytes_total?: number;
|
|
28
|
+
bytes_used?: number;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
encrypted?: boolean;
|
|
31
|
+
fstype?: string;
|
|
32
|
+
host_status?: "ok" | "unknown" | "unreachable";
|
|
33
|
+
id?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
region?: string;
|
|
36
|
+
size_gb?: number;
|
|
37
|
+
snapshot_retention?: number;
|
|
38
|
+
state?: string;
|
|
39
|
+
type?: "local" | "cache";
|
|
40
|
+
zone?: string;
|
|
41
|
+
}
|
|
16
42
|
export const VolumesGetByIdOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
17
43
|
attached_alloc_id: Schema.optional(Schema.String),
|
|
18
44
|
attached_machine_id: Schema.optional(Schema.String),
|
|
@@ -37,8 +63,7 @@ export const VolumesGetByIdOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
37
63
|
state: Schema.optional(Schema.String),
|
|
38
64
|
type: Schema.optional(Schema.Literals(["local", "cache"])),
|
|
39
65
|
zone: Schema.optional(Schema.String),
|
|
40
|
-
})
|
|
41
|
-
export type VolumesGetByIdOutput = typeof VolumesGetByIdOutput.Type;
|
|
66
|
+
}) as unknown as Schema.Codec<VolumesGetByIdOutput>;
|
|
42
67
|
|
|
43
68
|
// The operation
|
|
44
69
|
/**
|
|
@@ -4,13 +4,41 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface VolumesListInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
summary?: boolean;
|
|
10
|
+
}
|
|
7
11
|
export const VolumesListInput = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8
12
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
9
13
|
summary: Schema.optional(Schema.Boolean),
|
|
10
|
-
}).pipe(
|
|
11
|
-
|
|
14
|
+
}).pipe(
|
|
15
|
+
T.Http({ method: "GET", path: "/apps/{app_name}/volumes" }),
|
|
16
|
+
) as unknown as Schema.Codec<VolumesListInput>;
|
|
12
17
|
|
|
13
18
|
// Output Schema
|
|
19
|
+
export type VolumesListOutput = {
|
|
20
|
+
attached_alloc_id?: string;
|
|
21
|
+
attached_machine_id?: string;
|
|
22
|
+
auto_backup_enabled?: boolean;
|
|
23
|
+
block_size?: number;
|
|
24
|
+
blocks?: number;
|
|
25
|
+
blocks_avail?: number;
|
|
26
|
+
blocks_free?: number;
|
|
27
|
+
bytes_total?: number;
|
|
28
|
+
bytes_used?: number;
|
|
29
|
+
created_at?: string;
|
|
30
|
+
encrypted?: boolean;
|
|
31
|
+
fstype?: string;
|
|
32
|
+
host_status?: "ok" | "unknown" | "unreachable";
|
|
33
|
+
id?: string;
|
|
34
|
+
name?: string;
|
|
35
|
+
region?: string;
|
|
36
|
+
size_gb?: number;
|
|
37
|
+
snapshot_retention?: number;
|
|
38
|
+
state?: string;
|
|
39
|
+
type?: "local" | "cache";
|
|
40
|
+
zone?: string;
|
|
41
|
+
}[];
|
|
14
42
|
export const VolumesListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
15
43
|
Schema.Struct({
|
|
16
44
|
attached_alloc_id: Schema.optional(Schema.String),
|
|
@@ -37,8 +65,7 @@ export const VolumesListOutput = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
37
65
|
type: Schema.optional(Schema.Literals(["local", "cache"])),
|
|
38
66
|
zone: Schema.optional(Schema.String),
|
|
39
67
|
}),
|
|
40
|
-
)
|
|
41
|
-
export type VolumesListOutput = typeof VolumesListOutput.Type;
|
|
68
|
+
) as unknown as Schema.Codec<VolumesListOutput>;
|
|
42
69
|
|
|
43
70
|
// The operation
|
|
44
71
|
/**
|
|
@@ -4,6 +4,10 @@ import * as T from "../traits.ts";
|
|
|
4
4
|
import { Forbidden, NotFound } from "../errors.ts";
|
|
5
5
|
|
|
6
6
|
// Input Schema
|
|
7
|
+
export interface VolumesListSnapshotsInput {
|
|
8
|
+
app_name: string;
|
|
9
|
+
volume_id: string;
|
|
10
|
+
}
|
|
7
11
|
export const VolumesListSnapshotsInput =
|
|
8
12
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9
13
|
app_name: Schema.String.pipe(T.PathParam()),
|
|
@@ -13,10 +17,18 @@ export const VolumesListSnapshotsInput =
|
|
|
13
17
|
method: "GET",
|
|
14
18
|
path: "/apps/{app_name}/volumes/{volume_id}/snapshots",
|
|
15
19
|
}),
|
|
16
|
-
)
|
|
17
|
-
export type VolumesListSnapshotsInput = typeof VolumesListSnapshotsInput.Type;
|
|
20
|
+
) as unknown as Schema.Codec<VolumesListSnapshotsInput>;
|
|
18
21
|
|
|
19
22
|
// Output Schema
|
|
23
|
+
export type VolumesListSnapshotsOutput = {
|
|
24
|
+
created_at?: string;
|
|
25
|
+
digest?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
retention_days?: number;
|
|
28
|
+
size?: number;
|
|
29
|
+
status?: string;
|
|
30
|
+
volume_size?: number;
|
|
31
|
+
}[];
|
|
20
32
|
export const VolumesListSnapshotsOutput =
|
|
21
33
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
22
34
|
Schema.Struct({
|
|
@@ -28,8 +40,7 @@ export const VolumesListSnapshotsOutput =
|
|
|
28
40
|
status: Schema.optional(Schema.String),
|
|
29
41
|
volume_size: Schema.optional(Schema.Number),
|
|
30
42
|
}),
|
|
31
|
-
)
|
|
32
|
-
export type VolumesListSnapshotsOutput = typeof VolumesListSnapshotsOutput.Type;
|
|
43
|
+
) as unknown as Schema.Codec<VolumesListSnapshotsOutput>;
|
|
33
44
|
|
|
34
45
|
// The operation
|
|
35
46
|
/**
|