@appwrite.io/console 0.6.0-rc.9 → 0.6.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/.travis.yml +32 -0
- package/README.md +5 -5
- package/dist/cjs/sdk.js +1140 -418
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1141 -419
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1140 -418
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-email-password-session.md +9 -13
- package/docs/examples/account/create-email-token.md +10 -13
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +10 -9
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +9 -13
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +10 -13
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +9 -13
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-mfa-authenticator.md +14 -0
- package/docs/examples/account/delete-push-target.md +8 -13
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/delete.md +6 -13
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +8 -13
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +9 -13
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/assistant/chat.md +8 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/console/variables.md +6 -13
- package/docs/examples/databases/create-boolean-attribute.md +13 -13
- package/docs/examples/databases/create-collection.md +13 -13
- package/docs/examples/databases/create-datetime-attribute.md +13 -13
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/create-email-attribute.md +13 -13
- package/docs/examples/databases/create-enum-attribute.md +14 -13
- package/docs/examples/databases/create-float-attribute.md +15 -13
- package/docs/examples/databases/create-index.md +13 -13
- package/docs/examples/databases/create-integer-attribute.md +15 -13
- package/docs/examples/databases/create-ip-attribute.md +13 -13
- package/docs/examples/databases/create-relationship-attribute.md +15 -13
- package/docs/examples/databases/create-string-attribute.md +15 -13
- package/docs/examples/databases/create-url-attribute.md +13 -13
- package/docs/examples/databases/create.md +10 -13
- package/docs/examples/databases/delete-attribute.md +10 -13
- package/docs/examples/databases/delete-collection.md +9 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/delete-index.md +10 -13
- package/docs/examples/databases/delete.md +8 -13
- package/docs/examples/databases/get-attribute.md +10 -13
- package/docs/examples/databases/get-collection-usage.md +10 -13
- package/docs/examples/databases/get-collection.md +9 -13
- package/docs/examples/databases/get-database-usage.md +9 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/get-index.md +10 -13
- package/docs/examples/databases/get-usage.md +8 -13
- package/docs/examples/databases/get.md +8 -13
- package/docs/examples/databases/list-attributes.md +10 -13
- package/docs/examples/databases/list-collection-logs.md +10 -13
- package/docs/examples/databases/list-collections.md +10 -13
- package/docs/examples/databases/list-document-logs.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/list-indexes.md +10 -13
- package/docs/examples/databases/list-logs.md +9 -13
- package/docs/examples/databases/list.md +9 -13
- package/docs/examples/databases/update-boolean-attribute.md +12 -13
- package/docs/examples/databases/update-collection.md +13 -13
- package/docs/examples/databases/update-datetime-attribute.md +12 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/databases/update-email-attribute.md +12 -13
- package/docs/examples/databases/update-enum-attribute.md +13 -13
- package/docs/examples/databases/update-float-attribute.md +14 -13
- package/docs/examples/databases/update-integer-attribute.md +14 -13
- package/docs/examples/databases/update-ip-attribute.md +12 -13
- package/docs/examples/databases/update-relationship-attribute.md +11 -13
- package/docs/examples/databases/update-string-attribute.md +12 -13
- package/docs/examples/databases/update-url-attribute.md +12 -13
- package/docs/examples/databases/update.md +10 -13
- package/docs/examples/functions/create-build.md +10 -13
- package/docs/examples/functions/create-deployment.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/create-variable.md +10 -13
- package/docs/examples/functions/create.md +27 -13
- package/docs/examples/functions/delete-deployment.md +9 -13
- package/docs/examples/functions/delete-variable.md +9 -13
- package/docs/examples/functions/delete.md +8 -13
- package/docs/examples/functions/download-deployment.md +9 -9
- package/docs/examples/functions/get-deployment.md +9 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/get-function-usage.md +9 -13
- package/docs/examples/functions/get-usage.md +8 -13
- package/docs/examples/functions/get-variable.md +9 -13
- package/docs/examples/functions/get.md +8 -13
- package/docs/examples/functions/list-deployments.md +10 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/functions/list-runtimes.md +6 -13
- package/docs/examples/functions/list-variables.md +8 -13
- package/docs/examples/functions/list.md +9 -13
- package/docs/examples/functions/update-deployment.md +9 -13
- package/docs/examples/functions/update-variable.md +11 -13
- package/docs/examples/functions/update.md +23 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/health/get-antivirus.md +6 -13
- package/docs/examples/health/get-cache.md +6 -13
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +6 -13
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +6 -13
- package/docs/examples/health/get-queue-builds.md +8 -13
- package/docs/examples/health/get-queue-certificates.md +8 -13
- package/docs/examples/health/get-queue-databases.md +9 -13
- package/docs/examples/health/get-queue-deletes.md +8 -13
- package/docs/examples/health/get-queue-functions.md +8 -13
- package/docs/examples/health/get-queue-logs.md +8 -13
- package/docs/examples/health/get-queue-mails.md +8 -13
- package/docs/examples/health/get-queue-messaging.md +8 -13
- package/docs/examples/health/get-queue-migrations.md +8 -13
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-queue-webhooks.md +8 -13
- package/docs/examples/health/get-queue.md +6 -13
- package/docs/examples/health/get-storage-local.md +6 -13
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +6 -13
- package/docs/examples/health/get.md +6 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +19 -13
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +17 -13
- package/docs/examples/messaging/create-msg91provider.md +13 -13
- package/docs/examples/messaging/create-push.md +23 -13
- package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +10 -13
- package/docs/examples/messaging/create-telesign-provider.md +13 -13
- package/docs/examples/messaging/create-textmagic-provider.md +13 -13
- package/docs/examples/messaging/create-topic.md +10 -13
- package/docs/examples/messaging/create-twilio-provider.md +13 -13
- package/docs/examples/messaging/create-vonage-provider.md +13 -13
- package/docs/examples/messaging/delete-provider.md +8 -13
- package/docs/examples/messaging/delete-subscriber.md +9 -13
- package/docs/examples/messaging/delete-topic.md +8 -13
- package/docs/examples/messaging/delete.md +8 -13
- package/docs/examples/messaging/get-message.md +8 -13
- package/docs/examples/messaging/get-provider.md +8 -13
- package/docs/examples/messaging/get-subscriber.md +9 -13
- package/docs/examples/messaging/get-topic.md +8 -13
- package/docs/examples/messaging/list-message-logs.md +9 -13
- package/docs/examples/messaging/list-messages.md +9 -13
- package/docs/examples/messaging/list-provider-logs.md +9 -13
- package/docs/examples/messaging/list-providers.md +9 -13
- package/docs/examples/messaging/list-subscriber-logs.md +9 -13
- package/docs/examples/messaging/list-subscribers.md +10 -13
- package/docs/examples/messaging/list-targets.md +9 -13
- package/docs/examples/messaging/list-topic-logs.md +9 -13
- package/docs/examples/messaging/list-topics.md +9 -13
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +18 -13
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +17 -13
- package/docs/examples/messaging/update-msg91provider.md +13 -13
- package/docs/examples/messaging/update-push.md +23 -13
- package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +13 -13
- package/docs/examples/messaging/update-textmagic-provider.md +13 -13
- package/docs/examples/messaging/update-topic.md +10 -13
- package/docs/examples/messaging/update-twilio-provider.md +13 -13
- package/docs/examples/messaging/update-vonage-provider.md +13 -13
- package/docs/examples/migrations/create-appwrite-migration.md +11 -13
- package/docs/examples/migrations/create-firebase-migration.md +9 -13
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
- package/docs/examples/migrations/create-n-host-migration.md +15 -13
- package/docs/examples/migrations/create-supabase-migration.md +14 -13
- package/docs/examples/migrations/delete-firebase-auth.md +6 -13
- package/docs/examples/migrations/delete.md +8 -13
- package/docs/examples/migrations/get-appwrite-report.md +11 -13
- package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
- package/docs/examples/migrations/get-firebase-report.md +9 -13
- package/docs/examples/migrations/get-n-host-report.md +15 -13
- package/docs/examples/migrations/get-supabase-report.md +14 -13
- package/docs/examples/migrations/get.md +8 -13
- package/docs/examples/migrations/list-firebase-projects.md +6 -13
- package/docs/examples/migrations/list.md +9 -13
- package/docs/examples/migrations/retry.md +8 -13
- package/docs/examples/project/create-variable.md +9 -13
- package/docs/examples/project/delete-variable.md +8 -13
- package/docs/examples/project/get-usage.md +10 -13
- package/docs/examples/project/get-variable.md +8 -13
- package/docs/examples/project/list-variables.md +6 -13
- package/docs/examples/project/update-variable.md +10 -13
- package/docs/examples/projects/create-key.md +11 -13
- package/docs/examples/projects/create-platform.md +13 -13
- package/docs/examples/projects/create-smtp-test.md +17 -13
- package/docs/examples/projects/create-webhook.md +15 -13
- package/docs/examples/projects/create.md +20 -13
- package/docs/examples/projects/delete-email-template.md +10 -13
- package/docs/examples/projects/delete-key.md +9 -13
- package/docs/examples/projects/delete-platform.md +9 -13
- package/docs/examples/projects/delete-sms-template.md +10 -13
- package/docs/examples/projects/delete-webhook.md +9 -13
- package/docs/examples/projects/delete.md +8 -13
- package/docs/examples/projects/get-email-template.md +10 -13
- package/docs/examples/projects/get-key.md +9 -13
- package/docs/examples/projects/get-platform.md +9 -13
- package/docs/examples/projects/get-sms-template.md +10 -13
- package/docs/examples/projects/get-webhook.md +9 -13
- package/docs/examples/projects/get.md +8 -13
- package/docs/examples/projects/list-keys.md +8 -13
- package/docs/examples/projects/list-platforms.md +8 -13
- package/docs/examples/projects/list-webhooks.md +8 -13
- package/docs/examples/projects/list.md +9 -13
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/projects/update-auth-duration.md +9 -13
- package/docs/examples/projects/update-auth-limit.md +9 -13
- package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
- package/docs/examples/projects/update-auth-password-history.md +9 -13
- package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
- package/docs/examples/projects/update-auth-status.md +10 -13
- package/docs/examples/projects/update-email-template.md +15 -13
- package/docs/examples/projects/update-key.md +12 -13
- package/docs/examples/projects/update-o-auth2.md +12 -13
- package/docs/examples/projects/update-personal-data-check.md +9 -13
- package/docs/examples/projects/update-platform.md +13 -13
- package/docs/examples/projects/update-service-status-all.md +9 -13
- package/docs/examples/projects/update-service-status.md +10 -13
- package/docs/examples/projects/update-sms-template.md +11 -13
- package/docs/examples/projects/update-smtp.md +17 -13
- package/docs/examples/projects/update-team.md +9 -13
- package/docs/examples/projects/update-webhook-signature.md +9 -13
- package/docs/examples/projects/update-webhook.md +16 -13
- package/docs/examples/projects/update.md +18 -13
- package/docs/examples/proxy/create-rule.md +10 -13
- package/docs/examples/proxy/delete-rule.md +8 -13
- package/docs/examples/proxy/get-rule.md +8 -13
- package/docs/examples/proxy/list-rules.md +9 -13
- package/docs/examples/proxy/update-rule-verification.md +8 -13
- package/docs/examples/storage/create-bucket.md +17 -13
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-bucket.md +8 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-bucket-usage.md +9 -13
- package/docs/examples/storage/get-bucket.md +8 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/get-usage.md +8 -13
- package/docs/examples/storage/list-buckets.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-bucket.md +17 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-logs.md +9 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/docs/examples/users/create-argon2user.md +11 -13
- package/docs/examples/users/create-bcrypt-user.md +11 -13
- package/docs/examples/users/create-m-d5user.md +11 -13
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +11 -13
- package/docs/examples/users/create-s-h-a-user.md +12 -13
- package/docs/examples/users/create-scrypt-modified-user.md +14 -13
- package/docs/examples/users/create-scrypt-user.md +16 -13
- package/docs/examples/users/create-session.md +8 -13
- package/docs/examples/users/create-target.md +13 -13
- package/docs/examples/users/create-token.md +10 -13
- package/docs/examples/users/create.md +12 -13
- package/docs/examples/users/delete-identity.md +8 -13
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +9 -13
- package/docs/examples/users/delete-sessions.md +8 -13
- package/docs/examples/users/delete-target.md +9 -13
- package/docs/examples/users/delete.md +8 -13
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +8 -13
- package/docs/examples/users/get-target.md +9 -13
- package/docs/examples/users/get-usage.md +8 -13
- package/docs/examples/users/get.md +8 -13
- package/docs/examples/users/list-identities.md +9 -13
- package/docs/examples/users/list-logs.md +9 -13
- package/docs/examples/users/list-memberships.md +8 -13
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +8 -13
- package/docs/examples/users/list-targets.md +9 -13
- package/docs/examples/users/list.md +9 -13
- package/docs/examples/users/update-email-verification.md +9 -13
- package/docs/examples/users/update-email.md +9 -13
- package/docs/examples/users/update-labels.md +9 -13
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +9 -13
- package/docs/examples/users/update-name.md +9 -13
- package/docs/examples/users/update-password.md +9 -13
- package/docs/examples/users/update-phone-verification.md +9 -13
- package/docs/examples/users/update-phone.md +9 -13
- package/docs/examples/users/update-prefs.md +9 -13
- package/docs/examples/users/update-status.md +9 -13
- package/docs/examples/users/update-target.md +12 -13
- package/docs/examples/vcs/create-repository-detection.md +10 -13
- package/docs/examples/vcs/create-repository.md +10 -13
- package/docs/examples/vcs/delete-installation.md +8 -13
- package/docs/examples/vcs/get-installation.md +8 -13
- package/docs/examples/vcs/get-repository.md +9 -13
- package/docs/examples/vcs/list-installations.md +9 -13
- package/docs/examples/vcs/list-repositories.md +9 -13
- package/docs/examples/vcs/list-repository-branches.md +9 -13
- package/docs/examples/vcs/update-external-deployments.md +10 -13
- package/package.json +1 -1
- package/src/client.ts +3 -3
- package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
- package/src/enums/api.ts +5 -0
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +7 -0
- package/src/enums/index-type.ts +0 -1
- package/src/enums/name.ts +15 -0
- package/src/enums/{password-version.ts → password-hash.ts} +1 -1
- package/src/enums/region.ts +1 -0
- package/src/enums/runtime.ts +40 -0
- package/src/enums/{template-locale.ts → sms-template-locale.ts} +1 -1
- package/src/enums/{template-type.ts → sms-template-type.ts} +2 -1
- package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
- package/src/index.ts +11 -8
- package/src/models.ts +57 -19
- package/src/query.ts +2 -2
- package/src/service.ts +0 -3
- package/src/services/account.ts +239 -66
- package/src/services/assistant.ts +0 -1
- package/src/services/avatars.ts +0 -1
- package/src/services/console.ts +0 -1
- package/src/services/databases.ts +20 -4
- package/src/services/functions.ts +0 -1
- package/src/services/graphql.ts +0 -1
- package/src/services/health.ts +121 -1
- package/src/services/locale.ts +0 -1
- package/src/services/messaging.ts +161 -70
- package/src/services/migrations.ts +0 -1
- package/src/services/project.ts +1 -2
- package/src/services/projects.ts +97 -24
- package/src/services/proxy.ts +0 -1
- package/src/services/storage.ts +2 -3
- package/src/services/teams.ts +0 -1
- package/src/services/users.ts +115 -39
- package/src/services/vcs.ts +0 -1
- package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
- package/types/enums/api.d.ts +5 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +7 -0
- package/types/enums/index-type.d.ts +1 -2
- package/types/enums/name.d.ts +15 -0
- package/types/enums/{password-version.d.ts → password-hash.d.ts} +1 -1
- package/types/enums/region.d.ts +2 -1
- package/types/enums/runtime.d.ts +41 -1
- package/types/enums/{template-locale.d.ts → sms-template-locale.d.ts} +1 -1
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
- package/types/index.d.ts +11 -8
- package/types/models.d.ts +57 -19
- package/types/query.d.ts +2 -2
- package/types/services/account.d.ts +121 -28
- package/types/services/databases.d.ts +20 -3
- package/types/services/health.d.ts +56 -0
- package/types/services/messaging.d.ts +109 -49
- package/types/services/project.d.ts +1 -1
- package/types/services/projects.d.ts +47 -23
- package/types/services/storage.d.ts +2 -2
- package/types/services/users.d.ts +63 -17
- package/docs/examples/account/add-authenticator.md +0 -18
- package/docs/examples/account/create-challenge.md +0 -18
- package/docs/examples/account/delete-authenticator.md +0 -18
- package/docs/examples/account/list-factors.md +0 -18
- package/docs/examples/account/update-challenge.md +0 -18
- package/docs/examples/account/verify-authenticator.md +0 -18
- package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/create-s-m-s.md +0 -18
- package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
- package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/update-s-m-s.md +0 -18
- package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
- package/docs/examples/users/delete-authenticator.md +0 -18
- package/docs/examples/users/list-providers.md +0 -18
- package/src/enums/authenticator-factor.ts +0 -3
- package/src/enums/authenticator-provider.ts +0 -3
- package/src/enums/message-type.ts +0 -5
- package/types/enums/authenticator-factor.d.ts +0 -3
- package/types/enums/authenticator-provider.d.ts +0 -3
- package/types/enums/message-type.d.ts +0 -5
- package/types/enums/template-type.d.ts +0 -5
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { AuthenticatorType } from '../enums/authenticator-type';
|
|
5
|
+
import { AuthenticationFactor } from '../enums/authentication-factor';
|
|
6
6
|
import { OAuthProvider } from '../enums/o-auth-provider';
|
|
7
7
|
export declare class Account extends Service {
|
|
8
8
|
constructor(client: Client);
|
|
@@ -108,6 +108,7 @@ export declare class Account extends Service {
|
|
|
108
108
|
/**
|
|
109
109
|
* Update MFA
|
|
110
110
|
*
|
|
111
|
+
* Enable or disable MFA on an account.
|
|
111
112
|
*
|
|
112
113
|
* @param {boolean} mfa
|
|
113
114
|
* @throws {AppwriteException}
|
|
@@ -115,62 +116,115 @@ export declare class Account extends Service {
|
|
|
115
116
|
*/
|
|
116
117
|
updateMFA<Preferences extends Models.Preferences>(mfa: boolean): Promise<Models.User<Preferences>>;
|
|
117
118
|
/**
|
|
118
|
-
*
|
|
119
|
+
* Add Authenticator
|
|
120
|
+
*
|
|
121
|
+
* Add an authenticator app to be used as an MFA factor. Verify the
|
|
122
|
+
* authenticator using the [verify
|
|
123
|
+
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
|
|
124
|
+
* method.
|
|
125
|
+
*
|
|
126
|
+
* @param {AuthenticatorType} type
|
|
127
|
+
* @throws {AppwriteException}
|
|
128
|
+
* @returns {Promise}
|
|
129
|
+
*/
|
|
130
|
+
createMfaAuthenticator(type: AuthenticatorType): Promise<Models.MfaType>;
|
|
131
|
+
/**
|
|
132
|
+
* Verify Authenticator
|
|
133
|
+
*
|
|
134
|
+
* Verify an authenticator app after adding it using the [add
|
|
135
|
+
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
|
|
136
|
+
* method.
|
|
137
|
+
*
|
|
138
|
+
* @param {AuthenticatorType} type
|
|
139
|
+
* @param {string} otp
|
|
140
|
+
* @throws {AppwriteException}
|
|
141
|
+
* @returns {Promise}
|
|
142
|
+
*/
|
|
143
|
+
updateMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
|
|
144
|
+
/**
|
|
145
|
+
* Delete Authenticator
|
|
146
|
+
*
|
|
147
|
+
* Delete an authenticator for a user by ID.
|
|
148
|
+
*
|
|
149
|
+
* @param {AuthenticatorType} type
|
|
150
|
+
* @param {string} otp
|
|
151
|
+
* @throws {AppwriteException}
|
|
152
|
+
* @returns {Promise}
|
|
153
|
+
*/
|
|
154
|
+
deleteMfaAuthenticator<Preferences extends Models.Preferences>(type: AuthenticatorType, otp: string): Promise<Models.User<Preferences>>;
|
|
155
|
+
/**
|
|
156
|
+
* Create 2FA Challenge
|
|
119
157
|
*
|
|
158
|
+
* Begin the process of MFA verification after sign-in. Finish the flow with
|
|
159
|
+
* [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
|
|
160
|
+
* method.
|
|
120
161
|
*
|
|
121
|
-
* @param {
|
|
162
|
+
* @param {AuthenticationFactor} factor
|
|
122
163
|
* @throws {AppwriteException}
|
|
123
164
|
* @returns {Promise}
|
|
124
165
|
*/
|
|
125
|
-
|
|
166
|
+
createMfaChallenge(factor: AuthenticationFactor): Promise<Models.MfaChallenge>;
|
|
126
167
|
/**
|
|
127
168
|
* Create MFA Challenge (confirmation)
|
|
128
169
|
*
|
|
170
|
+
* Complete the MFA challenge by providing the one-time password. Finish the
|
|
171
|
+
* process of MFA verification by providing the one-time password. To begin
|
|
172
|
+
* the flow, use
|
|
173
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
174
|
+
* method.
|
|
129
175
|
*
|
|
130
176
|
* @param {string} challengeId
|
|
131
177
|
* @param {string} otp
|
|
132
178
|
* @throws {AppwriteException}
|
|
133
179
|
* @returns {Promise}
|
|
134
180
|
*/
|
|
135
|
-
|
|
181
|
+
updateMfaChallenge(challengeId: string, otp: string): Promise<{}>;
|
|
136
182
|
/**
|
|
137
183
|
* List Factors
|
|
138
184
|
*
|
|
139
|
-
*
|
|
185
|
+
* List the factors available on the account to be used as a MFA challange.
|
|
140
186
|
*
|
|
141
187
|
* @throws {AppwriteException}
|
|
142
188
|
* @returns {Promise}
|
|
143
189
|
*/
|
|
144
|
-
|
|
190
|
+
listMfaFactors(): Promise<Models.MfaFactors>;
|
|
145
191
|
/**
|
|
146
|
-
*
|
|
192
|
+
* Get MFA Recovery Codes
|
|
147
193
|
*
|
|
194
|
+
* Get recovery codes that can be used as backup for MFA flow. Before getting
|
|
195
|
+
* codes, they must be generated using
|
|
196
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
197
|
+
* method. An OTP challenge is required to read recovery codes.
|
|
148
198
|
*
|
|
149
|
-
* @param {AuthenticatorFactor} factor
|
|
150
199
|
* @throws {AppwriteException}
|
|
151
200
|
* @returns {Promise}
|
|
152
201
|
*/
|
|
153
|
-
|
|
202
|
+
getMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
|
|
154
203
|
/**
|
|
155
|
-
*
|
|
204
|
+
* Create MFA Recovery Codes
|
|
156
205
|
*
|
|
206
|
+
* Generate recovery codes as backup for MFA flow. It's recommended to
|
|
207
|
+
* generate and show then immediately after user successfully adds their
|
|
208
|
+
* authehticator. Recovery codes can be used as a MFA verification type in
|
|
209
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
210
|
+
* method.
|
|
157
211
|
*
|
|
158
|
-
* @param {AuthenticatorFactor} factor
|
|
159
|
-
* @param {string} otp
|
|
160
212
|
* @throws {AppwriteException}
|
|
161
213
|
* @returns {Promise}
|
|
162
214
|
*/
|
|
163
|
-
|
|
215
|
+
createMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
|
|
164
216
|
/**
|
|
165
|
-
*
|
|
217
|
+
* Regenerate MFA Recovery Codes
|
|
166
218
|
*
|
|
219
|
+
* Regenerate recovery codes that can be used as backup for MFA flow. Before
|
|
220
|
+
* regenerating codes, they must be first generated using
|
|
221
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
222
|
+
* method. An OTP challenge is required to regenreate recovery codes.
|
|
167
223
|
*
|
|
168
|
-
* @param {AuthenticatorProvider} provider
|
|
169
|
-
* @param {string} otp
|
|
170
224
|
* @throws {AppwriteException}
|
|
171
225
|
* @returns {Promise}
|
|
172
226
|
*/
|
|
173
|
-
|
|
227
|
+
updateMfaRecoveryCodes(): Promise<Models.MfaRecoveryCodes>;
|
|
174
228
|
/**
|
|
175
229
|
* Update name
|
|
176
230
|
*
|
|
@@ -321,7 +375,7 @@ export declare class Account extends Service {
|
|
|
321
375
|
*/
|
|
322
376
|
createEmailPasswordSession(email: string, password: string): Promise<Models.Session>;
|
|
323
377
|
/**
|
|
324
|
-
*
|
|
378
|
+
* Update magic URL session
|
|
325
379
|
*
|
|
326
380
|
* Use this endpoint to create a session from token. Provide the **userId**
|
|
327
381
|
* and **secret** parameters from the successful response of authentication
|
|
@@ -356,12 +410,24 @@ export declare class Account extends Service {
|
|
|
356
410
|
* @param {OAuthProvider} provider
|
|
357
411
|
* @param {string} success
|
|
358
412
|
* @param {string} failure
|
|
359
|
-
* @param {boolean} token
|
|
360
413
|
* @param {string[]} scopes
|
|
361
414
|
* @throws {AppwriteException}
|
|
362
415
|
* @returns {void|string}
|
|
363
416
|
*/
|
|
364
|
-
createOAuth2Session(provider: OAuthProvider, success?: string, failure?: string,
|
|
417
|
+
createOAuth2Session(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): void | URL;
|
|
418
|
+
/**
|
|
419
|
+
* Update phone session
|
|
420
|
+
*
|
|
421
|
+
* Use this endpoint to create a session from token. Provide the **userId**
|
|
422
|
+
* and **secret** parameters from the successful response of authentication
|
|
423
|
+
* flows initiated by token creation. For example, magic URL and phone login.
|
|
424
|
+
*
|
|
425
|
+
* @param {string} userId
|
|
426
|
+
* @param {string} secret
|
|
427
|
+
* @throws {AppwriteException}
|
|
428
|
+
* @returns {Promise}
|
|
429
|
+
*/
|
|
430
|
+
updatePhoneSession(userId: string, secret: string): Promise<Models.Session>;
|
|
365
431
|
/**
|
|
366
432
|
* Create session
|
|
367
433
|
*
|
|
@@ -387,10 +453,11 @@ export declare class Account extends Service {
|
|
|
387
453
|
*/
|
|
388
454
|
getSession(sessionId: string): Promise<Models.Session>;
|
|
389
455
|
/**
|
|
390
|
-
* Update
|
|
456
|
+
* Update session
|
|
391
457
|
*
|
|
392
|
-
*
|
|
393
|
-
* useful when session
|
|
458
|
+
* Use this endpoint to extend a session's length. Extending a session is
|
|
459
|
+
* useful when session expiry is short. If the session was created using an
|
|
460
|
+
* OAuth provider, this endpoint refreshes the access token from the provider.
|
|
394
461
|
*
|
|
395
462
|
* @param {string} sessionId
|
|
396
463
|
* @throws {AppwriteException}
|
|
@@ -423,7 +490,7 @@ export declare class Account extends Service {
|
|
|
423
490
|
*/
|
|
424
491
|
updateStatus<Preferences extends Models.Preferences>(): Promise<Models.User<Preferences>>;
|
|
425
492
|
/**
|
|
426
|
-
* Create
|
|
493
|
+
* Create push target
|
|
427
494
|
*
|
|
428
495
|
*
|
|
429
496
|
* @param {string} targetId
|
|
@@ -434,7 +501,7 @@ export declare class Account extends Service {
|
|
|
434
501
|
*/
|
|
435
502
|
createPushTarget(targetId: string, identifier: string, providerId?: string): Promise<Models.Target>;
|
|
436
503
|
/**
|
|
437
|
-
* Update
|
|
504
|
+
* Update push target
|
|
438
505
|
*
|
|
439
506
|
*
|
|
440
507
|
* @param {string} targetId
|
|
@@ -444,7 +511,7 @@ export declare class Account extends Service {
|
|
|
444
511
|
*/
|
|
445
512
|
updatePushTarget(targetId: string, identifier: string): Promise<Models.Target>;
|
|
446
513
|
/**
|
|
447
|
-
* Delete
|
|
514
|
+
* Delete push target
|
|
448
515
|
*
|
|
449
516
|
*
|
|
450
517
|
* @param {string} targetId
|
|
@@ -501,6 +568,32 @@ export declare class Account extends Service {
|
|
|
501
568
|
* @returns {Promise}
|
|
502
569
|
*/
|
|
503
570
|
createMagicURLToken(userId: string, email: string, url?: string, phrase?: boolean): Promise<Models.Token>;
|
|
571
|
+
/**
|
|
572
|
+
* Create OAuth2 token
|
|
573
|
+
*
|
|
574
|
+
* Allow the user to login to their account using the OAuth2 provider of their
|
|
575
|
+
* choice. Each OAuth2 provider should be enabled from the Appwrite console
|
|
576
|
+
* first. Use the success and failure arguments to provide a redirect URL's
|
|
577
|
+
* back to your app when login is completed.
|
|
578
|
+
*
|
|
579
|
+
* If authentication succeeds, `userId` and `secret` of a token will be
|
|
580
|
+
* appended to the success URL as query parameters. These can be used to
|
|
581
|
+
* create a new session using the [Create
|
|
582
|
+
* session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
583
|
+
* endpoint.
|
|
584
|
+
*
|
|
585
|
+
* A user is limited to 10 active sessions at a time by default. [Learn more
|
|
586
|
+
* about session
|
|
587
|
+
* limits](https://appwrite.io/docs/authentication-security#limits).
|
|
588
|
+
*
|
|
589
|
+
* @param {OAuthProvider} provider
|
|
590
|
+
* @param {string} success
|
|
591
|
+
* @param {string} failure
|
|
592
|
+
* @param {string[]} scopes
|
|
593
|
+
* @throws {AppwriteException}
|
|
594
|
+
* @returns {void|string}
|
|
595
|
+
*/
|
|
596
|
+
createOAuth2Token(provider: OAuthProvider, success?: string, failure?: string, scopes?: string[]): void | URL;
|
|
504
597
|
/**
|
|
505
598
|
* Create phone token
|
|
506
599
|
*
|
|
@@ -33,7 +33,7 @@ export declare class Databases extends Service {
|
|
|
33
33
|
*/
|
|
34
34
|
create(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
|
|
35
35
|
/**
|
|
36
|
-
* Get usage stats
|
|
36
|
+
* Get databases usage stats
|
|
37
37
|
*
|
|
38
38
|
*
|
|
39
39
|
* @param {DatabaseUsageRange} range
|
|
@@ -148,6 +148,7 @@ export declare class Databases extends Service {
|
|
|
148
148
|
/**
|
|
149
149
|
* List attributes
|
|
150
150
|
*
|
|
151
|
+
* List attributes in the collection.
|
|
151
152
|
*
|
|
152
153
|
* @param {string} databaseId
|
|
153
154
|
* @param {string} collectionId
|
|
@@ -175,6 +176,8 @@ export declare class Databases extends Service {
|
|
|
175
176
|
/**
|
|
176
177
|
* Update boolean attribute
|
|
177
178
|
*
|
|
179
|
+
* Update a boolean attribute. Changing the `default` value will not update
|
|
180
|
+
* already existing documents.
|
|
178
181
|
*
|
|
179
182
|
* @param {string} databaseId
|
|
180
183
|
* @param {string} collectionId
|
|
@@ -188,6 +191,7 @@ export declare class Databases extends Service {
|
|
|
188
191
|
/**
|
|
189
192
|
* Create datetime attribute
|
|
190
193
|
*
|
|
194
|
+
* Create a date time attribute according to the ISO 8601 standard.
|
|
191
195
|
*
|
|
192
196
|
* @param {string} databaseId
|
|
193
197
|
* @param {string} collectionId
|
|
@@ -202,6 +206,8 @@ export declare class Databases extends Service {
|
|
|
202
206
|
/**
|
|
203
207
|
* Update dateTime attribute
|
|
204
208
|
*
|
|
209
|
+
* Update a date time attribute. Changing the `default` value will not update
|
|
210
|
+
* already existing documents.
|
|
205
211
|
*
|
|
206
212
|
* @param {string} databaseId
|
|
207
213
|
* @param {string} collectionId
|
|
@@ -247,6 +253,9 @@ export declare class Databases extends Service {
|
|
|
247
253
|
/**
|
|
248
254
|
* Create enum attribute
|
|
249
255
|
*
|
|
256
|
+
* Create an enumeration attribute. The `elements` param acts as a white-list
|
|
257
|
+
* of accepted values for this attribute.
|
|
258
|
+
*
|
|
250
259
|
*
|
|
251
260
|
* @param {string} databaseId
|
|
252
261
|
* @param {string} collectionId
|
|
@@ -470,6 +479,7 @@ export declare class Databases extends Service {
|
|
|
470
479
|
/**
|
|
471
480
|
* Get attribute
|
|
472
481
|
*
|
|
482
|
+
* Get attribute by ID.
|
|
473
483
|
*
|
|
474
484
|
* @param {string} databaseId
|
|
475
485
|
* @param {string} collectionId
|
|
@@ -481,6 +491,7 @@ export declare class Databases extends Service {
|
|
|
481
491
|
/**
|
|
482
492
|
* Delete attribute
|
|
483
493
|
*
|
|
494
|
+
* Deletes an attribute.
|
|
484
495
|
*
|
|
485
496
|
* @param {string} databaseId
|
|
486
497
|
* @param {string} collectionId
|
|
@@ -591,6 +602,7 @@ export declare class Databases extends Service {
|
|
|
591
602
|
/**
|
|
592
603
|
* List indexes
|
|
593
604
|
*
|
|
605
|
+
* List indexes in the collection.
|
|
594
606
|
*
|
|
595
607
|
* @param {string} databaseId
|
|
596
608
|
* @param {string} collectionId
|
|
@@ -602,6 +614,9 @@ export declare class Databases extends Service {
|
|
|
602
614
|
/**
|
|
603
615
|
* Create index
|
|
604
616
|
*
|
|
617
|
+
* Creates an index on the attributes listed. Your index should include all
|
|
618
|
+
* the attributes you will query in a single request.
|
|
619
|
+
* Attributes can be `key`, `fulltext`, and `unique`.
|
|
605
620
|
*
|
|
606
621
|
* @param {string} databaseId
|
|
607
622
|
* @param {string} collectionId
|
|
@@ -616,6 +631,7 @@ export declare class Databases extends Service {
|
|
|
616
631
|
/**
|
|
617
632
|
* Get index
|
|
618
633
|
*
|
|
634
|
+
* Get index by ID.
|
|
619
635
|
*
|
|
620
636
|
* @param {string} databaseId
|
|
621
637
|
* @param {string} collectionId
|
|
@@ -627,6 +643,7 @@ export declare class Databases extends Service {
|
|
|
627
643
|
/**
|
|
628
644
|
* Delete index
|
|
629
645
|
*
|
|
646
|
+
* Delete an index.
|
|
630
647
|
*
|
|
631
648
|
* @param {string} databaseId
|
|
632
649
|
* @param {string} collectionId
|
|
@@ -648,7 +665,7 @@ export declare class Databases extends Service {
|
|
|
648
665
|
*/
|
|
649
666
|
listCollectionLogs(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.LogList>;
|
|
650
667
|
/**
|
|
651
|
-
* Get usage stats
|
|
668
|
+
* Get collection usage stats
|
|
652
669
|
*
|
|
653
670
|
*
|
|
654
671
|
* @param {string} databaseId
|
|
@@ -670,7 +687,7 @@ export declare class Databases extends Service {
|
|
|
670
687
|
*/
|
|
671
688
|
listLogs(databaseId: string, queries?: string[]): Promise<Models.LogList>;
|
|
672
689
|
/**
|
|
673
|
-
* Get usage stats
|
|
690
|
+
* Get database usage stats
|
|
674
691
|
*
|
|
675
692
|
*
|
|
676
693
|
* @param {string} databaseId
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { Name } from '../enums/name';
|
|
4
5
|
export declare class Health extends Service {
|
|
5
6
|
constructor(client: Client);
|
|
6
7
|
/**
|
|
@@ -31,6 +32,16 @@ export declare class Health extends Service {
|
|
|
31
32
|
* @returns {Promise}
|
|
32
33
|
*/
|
|
33
34
|
getCache(): Promise<Models.HealthStatus>;
|
|
35
|
+
/**
|
|
36
|
+
* Get the SSL certificate for a domain
|
|
37
|
+
*
|
|
38
|
+
* Get the SSL certificate for a domain
|
|
39
|
+
*
|
|
40
|
+
* @param {string} domain
|
|
41
|
+
* @throws {AppwriteException}
|
|
42
|
+
* @returns {Promise}
|
|
43
|
+
*/
|
|
44
|
+
getCertificate(domain?: string): Promise<Models.HealthCertificate>;
|
|
34
45
|
/**
|
|
35
46
|
* Get DB
|
|
36
47
|
*
|
|
@@ -105,9 +116,23 @@ export declare class Health extends Service {
|
|
|
105
116
|
* @returns {Promise}
|
|
106
117
|
*/
|
|
107
118
|
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
|
|
119
|
+
/**
|
|
120
|
+
* Get number of failed queue jobs
|
|
121
|
+
*
|
|
122
|
+
* Returns the amount of failed jobs in a given queue.
|
|
123
|
+
*
|
|
124
|
+
*
|
|
125
|
+
* @param {Name} name
|
|
126
|
+
* @param {number} threshold
|
|
127
|
+
* @throws {AppwriteException}
|
|
128
|
+
* @returns {Promise}
|
|
129
|
+
*/
|
|
130
|
+
getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;
|
|
108
131
|
/**
|
|
109
132
|
* Get functions queue
|
|
110
133
|
*
|
|
134
|
+
* Get the number of function executions that are waiting to be processed in
|
|
135
|
+
* the Appwrite internal queue server.
|
|
111
136
|
*
|
|
112
137
|
* @param {number} threshold
|
|
113
138
|
* @throws {AppwriteException}
|
|
@@ -158,6 +183,28 @@ export declare class Health extends Service {
|
|
|
158
183
|
* @returns {Promise}
|
|
159
184
|
*/
|
|
160
185
|
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
186
|
+
/**
|
|
187
|
+
* Get usage queue
|
|
188
|
+
*
|
|
189
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
190
|
+
* internal queue server.
|
|
191
|
+
*
|
|
192
|
+
* @param {number} threshold
|
|
193
|
+
* @throws {AppwriteException}
|
|
194
|
+
* @returns {Promise}
|
|
195
|
+
*/
|
|
196
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
|
197
|
+
/**
|
|
198
|
+
* Get usage dump queue
|
|
199
|
+
*
|
|
200
|
+
* Get the number of projects containing metrics that are waiting to be
|
|
201
|
+
* processed in the Appwrite internal queue server.
|
|
202
|
+
*
|
|
203
|
+
* @param {number} threshold
|
|
204
|
+
* @throws {AppwriteException}
|
|
205
|
+
* @returns {Promise}
|
|
206
|
+
*/
|
|
207
|
+
getQueueUsageDump(threshold?: number): Promise<Models.HealthQueue>;
|
|
161
208
|
/**
|
|
162
209
|
* Get webhooks queue
|
|
163
210
|
*
|
|
@@ -169,6 +216,15 @@ export declare class Health extends Service {
|
|
|
169
216
|
* @returns {Promise}
|
|
170
217
|
*/
|
|
171
218
|
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
|
|
219
|
+
/**
|
|
220
|
+
* Get storage
|
|
221
|
+
*
|
|
222
|
+
* Check the Appwrite storage device is up and connection is successful.
|
|
223
|
+
*
|
|
224
|
+
* @throws {AppwriteException}
|
|
225
|
+
* @returns {Promise}
|
|
226
|
+
*/
|
|
227
|
+
getStorage(): Promise<Models.HealthStatus>;
|
|
172
228
|
/**
|
|
173
229
|
* Get local storage
|
|
174
230
|
*
|