@appwrite.io/console 0.6.0-rc.9 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +32 -0
- package/README.md +5 -5
- package/dist/cjs/sdk.js +1182 -438
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1183 -439
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1182 -438
- 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/flag.ts +1 -1
- 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/id.ts +23 -4
- 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 +171 -80
- 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/flag.d.ts +1 -1
- 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/id.d.ts +2 -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 +113 -53
- 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
package/dist/esm/sdk.js
CHANGED
|
@@ -24,7 +24,33 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
24
24
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
25
25
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
26
26
|
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
30
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
31
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
32
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class Service {
|
|
36
|
+
constructor(client) {
|
|
37
|
+
this.client = client;
|
|
38
|
+
}
|
|
39
|
+
static flatten(data, prefix = '') {
|
|
40
|
+
let output = {};
|
|
41
|
+
for (const [key, value] of Object.entries(data)) {
|
|
42
|
+
let finalKey = prefix ? prefix + '[' + key + ']' : key;
|
|
43
|
+
if (Array.isArray(value)) {
|
|
44
|
+
output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
output[finalKey] = value;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return output;
|
|
51
|
+
}
|
|
27
52
|
}
|
|
53
|
+
Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
|
|
28
54
|
|
|
29
55
|
class Query {
|
|
30
56
|
constructor(method, attribute, values) {
|
|
@@ -67,31 +93,8 @@ Query.cursorBefore = (documentId) => new Query("cursorBefore", undefined, docume
|
|
|
67
93
|
Query.limit = (limit) => new Query("limit", undefined, limit).toString();
|
|
68
94
|
Query.offset = (offset) => new Query("offset", undefined, offset).toString();
|
|
69
95
|
Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
|
|
70
|
-
Query.or = (
|
|
71
|
-
Query.and = (
|
|
72
|
-
|
|
73
|
-
class Service {
|
|
74
|
-
constructor(client) {
|
|
75
|
-
this.client = client;
|
|
76
|
-
}
|
|
77
|
-
static flatten(data, prefix = '') {
|
|
78
|
-
let output = {};
|
|
79
|
-
for (const [key, value] of Object.entries(data)) {
|
|
80
|
-
let finalKey = prefix ? prefix + '[' + key + ']' : key;
|
|
81
|
-
if (Array.isArray(value)) {
|
|
82
|
-
output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
|
|
83
|
-
}
|
|
84
|
-
else if (value instanceof Query) {
|
|
85
|
-
output[finalKey] = JSON.stringify(value);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
output[finalKey] = value;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return output;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
|
|
96
|
+
Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
97
|
+
Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
95
98
|
|
|
96
99
|
class AppwriteException extends Error {
|
|
97
100
|
constructor(message, code = 0, type = '', response = '') {
|
|
@@ -106,7 +109,7 @@ class AppwriteException extends Error {
|
|
|
106
109
|
class Client {
|
|
107
110
|
constructor() {
|
|
108
111
|
this.config = {
|
|
109
|
-
endpoint: 'https://
|
|
112
|
+
endpoint: 'https://cloud.appwrite.io/v1',
|
|
110
113
|
endpointRealtime: '',
|
|
111
114
|
project: '',
|
|
112
115
|
key: '',
|
|
@@ -118,8 +121,8 @@ class Client {
|
|
|
118
121
|
'x-sdk-name': 'Console',
|
|
119
122
|
'x-sdk-platform': 'console',
|
|
120
123
|
'x-sdk-language': 'web',
|
|
121
|
-
'x-sdk-version': '0.6.
|
|
122
|
-
'X-Appwrite-Response-Format': '1.
|
|
124
|
+
'x-sdk-version': '0.6.1',
|
|
125
|
+
'X-Appwrite-Response-Format': '1.5.0',
|
|
123
126
|
};
|
|
124
127
|
this.realtime = {
|
|
125
128
|
socket: undefined,
|
|
@@ -671,6 +674,7 @@ class Account extends Service {
|
|
|
671
674
|
/**
|
|
672
675
|
* Update MFA
|
|
673
676
|
*
|
|
677
|
+
* Enable or disable MFA on an account.
|
|
674
678
|
*
|
|
675
679
|
* @param {boolean} mfa
|
|
676
680
|
* @throws {AppwriteException}
|
|
@@ -693,23 +697,24 @@ class Account extends Service {
|
|
|
693
697
|
});
|
|
694
698
|
}
|
|
695
699
|
/**
|
|
696
|
-
*
|
|
700
|
+
* Add Authenticator
|
|
697
701
|
*
|
|
702
|
+
* Add an authenticator app to be used as an MFA factor. Verify the
|
|
703
|
+
* authenticator using the [verify
|
|
704
|
+
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
|
|
705
|
+
* method.
|
|
698
706
|
*
|
|
699
|
-
* @param {
|
|
707
|
+
* @param {AuthenticatorType} type
|
|
700
708
|
* @throws {AppwriteException}
|
|
701
709
|
* @returns {Promise}
|
|
702
710
|
*/
|
|
703
|
-
|
|
711
|
+
createMfaAuthenticator(type) {
|
|
704
712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
-
if (typeof
|
|
706
|
-
throw new AppwriteException('Missing required parameter: "
|
|
713
|
+
if (typeof type === 'undefined') {
|
|
714
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
707
715
|
}
|
|
708
|
-
const apiPath = '/account/mfa/
|
|
716
|
+
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
|
709
717
|
const payload = {};
|
|
710
|
-
if (typeof provider !== 'undefined') {
|
|
711
|
-
payload['provider'] = provider;
|
|
712
|
-
}
|
|
713
718
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
714
719
|
return yield this.client.call('post', uri, {
|
|
715
720
|
'content-type': 'application/json',
|
|
@@ -717,27 +722,27 @@ class Account extends Service {
|
|
|
717
722
|
});
|
|
718
723
|
}
|
|
719
724
|
/**
|
|
720
|
-
*
|
|
725
|
+
* Verify Authenticator
|
|
721
726
|
*
|
|
727
|
+
* Verify an authenticator app after adding it using the [add
|
|
728
|
+
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
|
|
729
|
+
* method.
|
|
722
730
|
*
|
|
723
|
-
* @param {
|
|
731
|
+
* @param {AuthenticatorType} type
|
|
724
732
|
* @param {string} otp
|
|
725
733
|
* @throws {AppwriteException}
|
|
726
734
|
* @returns {Promise}
|
|
727
735
|
*/
|
|
728
|
-
|
|
736
|
+
updateMfaAuthenticator(type, otp) {
|
|
729
737
|
return __awaiter(this, void 0, void 0, function* () {
|
|
730
|
-
if (typeof
|
|
731
|
-
throw new AppwriteException('Missing required parameter: "
|
|
738
|
+
if (typeof type === 'undefined') {
|
|
739
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
732
740
|
}
|
|
733
741
|
if (typeof otp === 'undefined') {
|
|
734
742
|
throw new AppwriteException('Missing required parameter: "otp"');
|
|
735
743
|
}
|
|
736
|
-
const apiPath = '/account/mfa/
|
|
744
|
+
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
|
737
745
|
const payload = {};
|
|
738
|
-
if (typeof challengeId !== 'undefined') {
|
|
739
|
-
payload['challengeId'] = challengeId;
|
|
740
|
-
}
|
|
741
746
|
if (typeof otp !== 'undefined') {
|
|
742
747
|
payload['otp'] = otp;
|
|
743
748
|
}
|
|
@@ -748,38 +753,55 @@ class Account extends Service {
|
|
|
748
753
|
});
|
|
749
754
|
}
|
|
750
755
|
/**
|
|
751
|
-
*
|
|
756
|
+
* Delete Authenticator
|
|
752
757
|
*
|
|
753
|
-
*
|
|
758
|
+
* Delete an authenticator for a user by ID.
|
|
754
759
|
*
|
|
760
|
+
* @param {AuthenticatorType} type
|
|
761
|
+
* @param {string} otp
|
|
755
762
|
* @throws {AppwriteException}
|
|
756
763
|
* @returns {Promise}
|
|
757
764
|
*/
|
|
758
|
-
|
|
765
|
+
deleteMfaAuthenticator(type, otp) {
|
|
759
766
|
return __awaiter(this, void 0, void 0, function* () {
|
|
760
|
-
|
|
767
|
+
if (typeof type === 'undefined') {
|
|
768
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
769
|
+
}
|
|
770
|
+
if (typeof otp === 'undefined') {
|
|
771
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
772
|
+
}
|
|
773
|
+
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
|
761
774
|
const payload = {};
|
|
775
|
+
if (typeof otp !== 'undefined') {
|
|
776
|
+
payload['otp'] = otp;
|
|
777
|
+
}
|
|
762
778
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
763
|
-
return yield this.client.call('
|
|
779
|
+
return yield this.client.call('delete', uri, {
|
|
764
780
|
'content-type': 'application/json',
|
|
765
781
|
}, payload);
|
|
766
782
|
});
|
|
767
783
|
}
|
|
768
784
|
/**
|
|
769
|
-
*
|
|
785
|
+
* Create 2FA Challenge
|
|
770
786
|
*
|
|
787
|
+
* Begin the process of MFA verification after sign-in. Finish the flow with
|
|
788
|
+
* [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
|
|
789
|
+
* method.
|
|
771
790
|
*
|
|
772
|
-
* @param {
|
|
791
|
+
* @param {AuthenticationFactor} factor
|
|
773
792
|
* @throws {AppwriteException}
|
|
774
793
|
* @returns {Promise}
|
|
775
794
|
*/
|
|
776
|
-
|
|
795
|
+
createMfaChallenge(factor) {
|
|
777
796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
778
797
|
if (typeof factor === 'undefined') {
|
|
779
798
|
throw new AppwriteException('Missing required parameter: "factor"');
|
|
780
799
|
}
|
|
781
|
-
const apiPath = '/account/mfa/
|
|
800
|
+
const apiPath = '/account/mfa/challenge';
|
|
782
801
|
const payload = {};
|
|
802
|
+
if (typeof factor !== 'undefined') {
|
|
803
|
+
payload['factor'] = factor;
|
|
804
|
+
}
|
|
783
805
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
784
806
|
return yield this.client.call('post', uri, {
|
|
785
807
|
'content-type': 'application/json',
|
|
@@ -787,24 +809,32 @@ class Account extends Service {
|
|
|
787
809
|
});
|
|
788
810
|
}
|
|
789
811
|
/**
|
|
790
|
-
*
|
|
812
|
+
* Create MFA Challenge (confirmation)
|
|
791
813
|
*
|
|
814
|
+
* Complete the MFA challenge by providing the one-time password. Finish the
|
|
815
|
+
* process of MFA verification by providing the one-time password. To begin
|
|
816
|
+
* the flow, use
|
|
817
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
818
|
+
* method.
|
|
792
819
|
*
|
|
793
|
-
* @param {
|
|
820
|
+
* @param {string} challengeId
|
|
794
821
|
* @param {string} otp
|
|
795
822
|
* @throws {AppwriteException}
|
|
796
823
|
* @returns {Promise}
|
|
797
824
|
*/
|
|
798
|
-
|
|
825
|
+
updateMfaChallenge(challengeId, otp) {
|
|
799
826
|
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
-
if (typeof
|
|
801
|
-
throw new AppwriteException('Missing required parameter: "
|
|
827
|
+
if (typeof challengeId === 'undefined') {
|
|
828
|
+
throw new AppwriteException('Missing required parameter: "challengeId"');
|
|
802
829
|
}
|
|
803
830
|
if (typeof otp === 'undefined') {
|
|
804
831
|
throw new AppwriteException('Missing required parameter: "otp"');
|
|
805
832
|
}
|
|
806
|
-
const apiPath = '/account/mfa/
|
|
833
|
+
const apiPath = '/account/mfa/challenge';
|
|
807
834
|
const payload = {};
|
|
835
|
+
if (typeof challengeId !== 'undefined') {
|
|
836
|
+
payload['challengeId'] = challengeId;
|
|
837
|
+
}
|
|
808
838
|
if (typeof otp !== 'undefined') {
|
|
809
839
|
payload['otp'] = otp;
|
|
810
840
|
}
|
|
@@ -815,29 +845,83 @@ class Account extends Service {
|
|
|
815
845
|
});
|
|
816
846
|
}
|
|
817
847
|
/**
|
|
818
|
-
*
|
|
848
|
+
* List Factors
|
|
819
849
|
*
|
|
850
|
+
* List the factors available on the account to be used as a MFA challange.
|
|
820
851
|
*
|
|
821
|
-
* @param {AuthenticatorProvider} provider
|
|
822
|
-
* @param {string} otp
|
|
823
852
|
* @throws {AppwriteException}
|
|
824
853
|
* @returns {Promise}
|
|
825
854
|
*/
|
|
826
|
-
|
|
855
|
+
listMfaFactors() {
|
|
827
856
|
return __awaiter(this, void 0, void 0, function* () {
|
|
828
|
-
|
|
829
|
-
throw new AppwriteException('Missing required parameter: "provider"');
|
|
830
|
-
}
|
|
831
|
-
if (typeof otp === 'undefined') {
|
|
832
|
-
throw new AppwriteException('Missing required parameter: "otp"');
|
|
833
|
-
}
|
|
834
|
-
const apiPath = '/account/mfa/{provider}'.replace('{provider}', provider);
|
|
857
|
+
const apiPath = '/account/mfa/factors';
|
|
835
858
|
const payload = {};
|
|
836
|
-
if (typeof otp !== 'undefined') {
|
|
837
|
-
payload['otp'] = otp;
|
|
838
|
-
}
|
|
839
859
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
840
|
-
return yield this.client.call('
|
|
860
|
+
return yield this.client.call('get', uri, {
|
|
861
|
+
'content-type': 'application/json',
|
|
862
|
+
}, payload);
|
|
863
|
+
});
|
|
864
|
+
}
|
|
865
|
+
/**
|
|
866
|
+
* Get MFA Recovery Codes
|
|
867
|
+
*
|
|
868
|
+
* Get recovery codes that can be used as backup for MFA flow. Before getting
|
|
869
|
+
* codes, they must be generated using
|
|
870
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
871
|
+
* method. An OTP challenge is required to read recovery codes.
|
|
872
|
+
*
|
|
873
|
+
* @throws {AppwriteException}
|
|
874
|
+
* @returns {Promise}
|
|
875
|
+
*/
|
|
876
|
+
getMfaRecoveryCodes() {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
878
|
+
const apiPath = '/account/mfa/recovery-codes';
|
|
879
|
+
const payload = {};
|
|
880
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
881
|
+
return yield this.client.call('get', uri, {
|
|
882
|
+
'content-type': 'application/json',
|
|
883
|
+
}, payload);
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Create MFA Recovery Codes
|
|
888
|
+
*
|
|
889
|
+
* Generate recovery codes as backup for MFA flow. It's recommended to
|
|
890
|
+
* generate and show then immediately after user successfully adds their
|
|
891
|
+
* authehticator. Recovery codes can be used as a MFA verification type in
|
|
892
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
893
|
+
* method.
|
|
894
|
+
*
|
|
895
|
+
* @throws {AppwriteException}
|
|
896
|
+
* @returns {Promise}
|
|
897
|
+
*/
|
|
898
|
+
createMfaRecoveryCodes() {
|
|
899
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
900
|
+
const apiPath = '/account/mfa/recovery-codes';
|
|
901
|
+
const payload = {};
|
|
902
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
903
|
+
return yield this.client.call('post', uri, {
|
|
904
|
+
'content-type': 'application/json',
|
|
905
|
+
}, payload);
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Regenerate MFA Recovery Codes
|
|
910
|
+
*
|
|
911
|
+
* Regenerate recovery codes that can be used as backup for MFA flow. Before
|
|
912
|
+
* regenerating codes, they must be first generated using
|
|
913
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
914
|
+
* method. An OTP challenge is required to regenreate recovery codes.
|
|
915
|
+
*
|
|
916
|
+
* @throws {AppwriteException}
|
|
917
|
+
* @returns {Promise}
|
|
918
|
+
*/
|
|
919
|
+
updateMfaRecoveryCodes() {
|
|
920
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
921
|
+
const apiPath = '/account/mfa/recovery-codes';
|
|
922
|
+
const payload = {};
|
|
923
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
924
|
+
return yield this.client.call('patch', uri, {
|
|
841
925
|
'content-type': 'application/json',
|
|
842
926
|
}, payload);
|
|
843
927
|
});
|
|
@@ -1166,7 +1250,7 @@ class Account extends Service {
|
|
|
1166
1250
|
});
|
|
1167
1251
|
}
|
|
1168
1252
|
/**
|
|
1169
|
-
*
|
|
1253
|
+
* Update magic URL session
|
|
1170
1254
|
*
|
|
1171
1255
|
* Use this endpoint to create a session from token. Provide the **userId**
|
|
1172
1256
|
* and **secret** parameters from the successful response of authentication
|
|
@@ -1222,12 +1306,11 @@ class Account extends Service {
|
|
|
1222
1306
|
* @param {OAuthProvider} provider
|
|
1223
1307
|
* @param {string} success
|
|
1224
1308
|
* @param {string} failure
|
|
1225
|
-
* @param {boolean} token
|
|
1226
1309
|
* @param {string[]} scopes
|
|
1227
1310
|
* @throws {AppwriteException}
|
|
1228
1311
|
* @returns {void|string}
|
|
1229
1312
|
*/
|
|
1230
|
-
createOAuth2Session(provider, success, failure,
|
|
1313
|
+
createOAuth2Session(provider, success, failure, scopes) {
|
|
1231
1314
|
if (typeof provider === 'undefined') {
|
|
1232
1315
|
throw new AppwriteException('Missing required parameter: "provider"');
|
|
1233
1316
|
}
|
|
@@ -1239,9 +1322,6 @@ class Account extends Service {
|
|
|
1239
1322
|
if (typeof failure !== 'undefined') {
|
|
1240
1323
|
payload['failure'] = failure;
|
|
1241
1324
|
}
|
|
1242
|
-
if (typeof token !== 'undefined') {
|
|
1243
|
-
payload['token'] = token;
|
|
1244
|
-
}
|
|
1245
1325
|
if (typeof scopes !== 'undefined') {
|
|
1246
1326
|
payload['scopes'] = scopes;
|
|
1247
1327
|
}
|
|
@@ -1257,6 +1337,40 @@ class Account extends Service {
|
|
|
1257
1337
|
return uri;
|
|
1258
1338
|
}
|
|
1259
1339
|
}
|
|
1340
|
+
/**
|
|
1341
|
+
* Update phone session
|
|
1342
|
+
*
|
|
1343
|
+
* Use this endpoint to create a session from token. Provide the **userId**
|
|
1344
|
+
* and **secret** parameters from the successful response of authentication
|
|
1345
|
+
* flows initiated by token creation. For example, magic URL and phone login.
|
|
1346
|
+
*
|
|
1347
|
+
* @param {string} userId
|
|
1348
|
+
* @param {string} secret
|
|
1349
|
+
* @throws {AppwriteException}
|
|
1350
|
+
* @returns {Promise}
|
|
1351
|
+
*/
|
|
1352
|
+
updatePhoneSession(userId, secret) {
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
+
if (typeof userId === 'undefined') {
|
|
1355
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
1356
|
+
}
|
|
1357
|
+
if (typeof secret === 'undefined') {
|
|
1358
|
+
throw new AppwriteException('Missing required parameter: "secret"');
|
|
1359
|
+
}
|
|
1360
|
+
const apiPath = '/account/sessions/phone';
|
|
1361
|
+
const payload = {};
|
|
1362
|
+
if (typeof userId !== 'undefined') {
|
|
1363
|
+
payload['userId'] = userId;
|
|
1364
|
+
}
|
|
1365
|
+
if (typeof secret !== 'undefined') {
|
|
1366
|
+
payload['secret'] = secret;
|
|
1367
|
+
}
|
|
1368
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1369
|
+
return yield this.client.call('put', uri, {
|
|
1370
|
+
'content-type': 'application/json',
|
|
1371
|
+
}, payload);
|
|
1372
|
+
});
|
|
1373
|
+
}
|
|
1260
1374
|
/**
|
|
1261
1375
|
* Create session
|
|
1262
1376
|
*
|
|
@@ -1315,10 +1429,11 @@ class Account extends Service {
|
|
|
1315
1429
|
});
|
|
1316
1430
|
}
|
|
1317
1431
|
/**
|
|
1318
|
-
* Update
|
|
1432
|
+
* Update session
|
|
1319
1433
|
*
|
|
1320
|
-
*
|
|
1321
|
-
* useful when session
|
|
1434
|
+
* Use this endpoint to extend a session's length. Extending a session is
|
|
1435
|
+
* useful when session expiry is short. If the session was created using an
|
|
1436
|
+
* OAuth provider, this endpoint refreshes the access token from the provider.
|
|
1322
1437
|
*
|
|
1323
1438
|
* @param {string} sessionId
|
|
1324
1439
|
* @throws {AppwriteException}
|
|
@@ -1384,7 +1499,7 @@ class Account extends Service {
|
|
|
1384
1499
|
});
|
|
1385
1500
|
}
|
|
1386
1501
|
/**
|
|
1387
|
-
* Create
|
|
1502
|
+
* Create push target
|
|
1388
1503
|
*
|
|
1389
1504
|
*
|
|
1390
1505
|
* @param {string} targetId
|
|
@@ -1419,7 +1534,7 @@ class Account extends Service {
|
|
|
1419
1534
|
});
|
|
1420
1535
|
}
|
|
1421
1536
|
/**
|
|
1422
|
-
* Update
|
|
1537
|
+
* Update push target
|
|
1423
1538
|
*
|
|
1424
1539
|
*
|
|
1425
1540
|
* @param {string} targetId
|
|
@@ -1447,7 +1562,7 @@ class Account extends Service {
|
|
|
1447
1562
|
});
|
|
1448
1563
|
}
|
|
1449
1564
|
/**
|
|
1450
|
-
* Delete
|
|
1565
|
+
* Delete push target
|
|
1451
1566
|
*
|
|
1452
1567
|
*
|
|
1453
1568
|
* @param {string} targetId
|
|
@@ -1567,6 +1682,58 @@ class Account extends Service {
|
|
|
1567
1682
|
}, payload);
|
|
1568
1683
|
});
|
|
1569
1684
|
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Create OAuth2 token
|
|
1687
|
+
*
|
|
1688
|
+
* Allow the user to login to their account using the OAuth2 provider of their
|
|
1689
|
+
* choice. Each OAuth2 provider should be enabled from the Appwrite console
|
|
1690
|
+
* first. Use the success and failure arguments to provide a redirect URL's
|
|
1691
|
+
* back to your app when login is completed.
|
|
1692
|
+
*
|
|
1693
|
+
* If authentication succeeds, `userId` and `secret` of a token will be
|
|
1694
|
+
* appended to the success URL as query parameters. These can be used to
|
|
1695
|
+
* create a new session using the [Create
|
|
1696
|
+
* session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
1697
|
+
* endpoint.
|
|
1698
|
+
*
|
|
1699
|
+
* A user is limited to 10 active sessions at a time by default. [Learn more
|
|
1700
|
+
* about session
|
|
1701
|
+
* limits](https://appwrite.io/docs/authentication-security#limits).
|
|
1702
|
+
*
|
|
1703
|
+
* @param {OAuthProvider} provider
|
|
1704
|
+
* @param {string} success
|
|
1705
|
+
* @param {string} failure
|
|
1706
|
+
* @param {string[]} scopes
|
|
1707
|
+
* @throws {AppwriteException}
|
|
1708
|
+
* @returns {void|string}
|
|
1709
|
+
*/
|
|
1710
|
+
createOAuth2Token(provider, success, failure, scopes) {
|
|
1711
|
+
if (typeof provider === 'undefined') {
|
|
1712
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
1713
|
+
}
|
|
1714
|
+
const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
|
|
1715
|
+
const payload = {};
|
|
1716
|
+
if (typeof success !== 'undefined') {
|
|
1717
|
+
payload['success'] = success;
|
|
1718
|
+
}
|
|
1719
|
+
if (typeof failure !== 'undefined') {
|
|
1720
|
+
payload['failure'] = failure;
|
|
1721
|
+
}
|
|
1722
|
+
if (typeof scopes !== 'undefined') {
|
|
1723
|
+
payload['scopes'] = scopes;
|
|
1724
|
+
}
|
|
1725
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1726
|
+
payload['project'] = this.client.config.project;
|
|
1727
|
+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
1728
|
+
uri.searchParams.append(key, value);
|
|
1729
|
+
}
|
|
1730
|
+
if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {
|
|
1731
|
+
window.location.href = uri.toString();
|
|
1732
|
+
}
|
|
1733
|
+
else {
|
|
1734
|
+
return uri;
|
|
1735
|
+
}
|
|
1736
|
+
}
|
|
1570
1737
|
/**
|
|
1571
1738
|
* Create phone token
|
|
1572
1739
|
*
|
|
@@ -2158,7 +2325,7 @@ class Databases extends Service {
|
|
|
2158
2325
|
});
|
|
2159
2326
|
}
|
|
2160
2327
|
/**
|
|
2161
|
-
* Get usage stats
|
|
2328
|
+
* Get databases usage stats
|
|
2162
2329
|
*
|
|
2163
2330
|
*
|
|
2164
2331
|
* @param {DatabaseUsageRange} range
|
|
@@ -2441,6 +2608,7 @@ class Databases extends Service {
|
|
|
2441
2608
|
/**
|
|
2442
2609
|
* List attributes
|
|
2443
2610
|
*
|
|
2611
|
+
* List attributes in the collection.
|
|
2444
2612
|
*
|
|
2445
2613
|
* @param {string} databaseId
|
|
2446
2614
|
* @param {string} collectionId
|
|
@@ -2519,6 +2687,8 @@ class Databases extends Service {
|
|
|
2519
2687
|
/**
|
|
2520
2688
|
* Update boolean attribute
|
|
2521
2689
|
*
|
|
2690
|
+
* Update a boolean attribute. Changing the `default` value will not update
|
|
2691
|
+
* already existing documents.
|
|
2522
2692
|
*
|
|
2523
2693
|
* @param {string} databaseId
|
|
2524
2694
|
* @param {string} collectionId
|
|
@@ -2562,6 +2732,7 @@ class Databases extends Service {
|
|
|
2562
2732
|
/**
|
|
2563
2733
|
* Create datetime attribute
|
|
2564
2734
|
*
|
|
2735
|
+
* Create a date time attribute according to the ISO 8601 standard.
|
|
2565
2736
|
*
|
|
2566
2737
|
* @param {string} databaseId
|
|
2567
2738
|
* @param {string} collectionId
|
|
@@ -2609,6 +2780,8 @@ class Databases extends Service {
|
|
|
2609
2780
|
/**
|
|
2610
2781
|
* Update dateTime attribute
|
|
2611
2782
|
*
|
|
2783
|
+
* Update a date time attribute. Changing the `default` value will not update
|
|
2784
|
+
* already existing documents.
|
|
2612
2785
|
*
|
|
2613
2786
|
* @param {string} databaseId
|
|
2614
2787
|
* @param {string} collectionId
|
|
@@ -2747,6 +2920,9 @@ class Databases extends Service {
|
|
|
2747
2920
|
/**
|
|
2748
2921
|
* Create enum attribute
|
|
2749
2922
|
*
|
|
2923
|
+
* Create an enumeration attribute. The `elements` param acts as a white-list
|
|
2924
|
+
* of accepted values for this attribute.
|
|
2925
|
+
*
|
|
2750
2926
|
*
|
|
2751
2927
|
* @param {string} databaseId
|
|
2752
2928
|
* @param {string} collectionId
|
|
@@ -3444,6 +3620,7 @@ class Databases extends Service {
|
|
|
3444
3620
|
/**
|
|
3445
3621
|
* Get attribute
|
|
3446
3622
|
*
|
|
3623
|
+
* Get attribute by ID.
|
|
3447
3624
|
*
|
|
3448
3625
|
* @param {string} databaseId
|
|
3449
3626
|
* @param {string} collectionId
|
|
@@ -3473,6 +3650,7 @@ class Databases extends Service {
|
|
|
3473
3650
|
/**
|
|
3474
3651
|
* Delete attribute
|
|
3475
3652
|
*
|
|
3653
|
+
* Deletes an attribute.
|
|
3476
3654
|
*
|
|
3477
3655
|
* @param {string} databaseId
|
|
3478
3656
|
* @param {string} collectionId
|
|
@@ -3754,6 +3932,7 @@ class Databases extends Service {
|
|
|
3754
3932
|
/**
|
|
3755
3933
|
* List indexes
|
|
3756
3934
|
*
|
|
3935
|
+
* List indexes in the collection.
|
|
3757
3936
|
*
|
|
3758
3937
|
* @param {string} databaseId
|
|
3759
3938
|
* @param {string} collectionId
|
|
@@ -3783,6 +3962,9 @@ class Databases extends Service {
|
|
|
3783
3962
|
/**
|
|
3784
3963
|
* Create index
|
|
3785
3964
|
*
|
|
3965
|
+
* Creates an index on the attributes listed. Your index should include all
|
|
3966
|
+
* the attributes you will query in a single request.
|
|
3967
|
+
* Attributes can be `key`, `fulltext`, and `unique`.
|
|
3786
3968
|
*
|
|
3787
3969
|
* @param {string} databaseId
|
|
3788
3970
|
* @param {string} collectionId
|
|
@@ -3833,6 +4015,7 @@ class Databases extends Service {
|
|
|
3833
4015
|
/**
|
|
3834
4016
|
* Get index
|
|
3835
4017
|
*
|
|
4018
|
+
* Get index by ID.
|
|
3836
4019
|
*
|
|
3837
4020
|
* @param {string} databaseId
|
|
3838
4021
|
* @param {string} collectionId
|
|
@@ -3862,6 +4045,7 @@ class Databases extends Service {
|
|
|
3862
4045
|
/**
|
|
3863
4046
|
* Delete index
|
|
3864
4047
|
*
|
|
4048
|
+
* Delete an index.
|
|
3865
4049
|
*
|
|
3866
4050
|
* @param {string} databaseId
|
|
3867
4051
|
* @param {string} collectionId
|
|
@@ -3919,7 +4103,7 @@ class Databases extends Service {
|
|
|
3919
4103
|
});
|
|
3920
4104
|
}
|
|
3921
4105
|
/**
|
|
3922
|
-
* Get usage stats
|
|
4106
|
+
* Get collection usage stats
|
|
3923
4107
|
*
|
|
3924
4108
|
*
|
|
3925
4109
|
* @param {string} databaseId
|
|
@@ -3974,7 +4158,7 @@ class Databases extends Service {
|
|
|
3974
4158
|
});
|
|
3975
4159
|
}
|
|
3976
4160
|
/**
|
|
3977
|
-
* Get usage stats
|
|
4161
|
+
* Get database usage stats
|
|
3978
4162
|
*
|
|
3979
4163
|
*
|
|
3980
4164
|
* @param {string} databaseId
|
|
@@ -4957,6 +5141,28 @@ class Health extends Service {
|
|
|
4957
5141
|
}, payload);
|
|
4958
5142
|
});
|
|
4959
5143
|
}
|
|
5144
|
+
/**
|
|
5145
|
+
* Get the SSL certificate for a domain
|
|
5146
|
+
*
|
|
5147
|
+
* Get the SSL certificate for a domain
|
|
5148
|
+
*
|
|
5149
|
+
* @param {string} domain
|
|
5150
|
+
* @throws {AppwriteException}
|
|
5151
|
+
* @returns {Promise}
|
|
5152
|
+
*/
|
|
5153
|
+
getCertificate(domain) {
|
|
5154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5155
|
+
const apiPath = '/health/certificate';
|
|
5156
|
+
const payload = {};
|
|
5157
|
+
if (typeof domain !== 'undefined') {
|
|
5158
|
+
payload['domain'] = domain;
|
|
5159
|
+
}
|
|
5160
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5161
|
+
return yield this.client.call('get', uri, {
|
|
5162
|
+
'content-type': 'application/json',
|
|
5163
|
+
}, payload);
|
|
5164
|
+
});
|
|
5165
|
+
}
|
|
4960
5166
|
/**
|
|
4961
5167
|
* Get DB
|
|
4962
5168
|
*
|
|
@@ -5109,9 +5315,38 @@ class Health extends Service {
|
|
|
5109
5315
|
}, payload);
|
|
5110
5316
|
});
|
|
5111
5317
|
}
|
|
5318
|
+
/**
|
|
5319
|
+
* Get number of failed queue jobs
|
|
5320
|
+
*
|
|
5321
|
+
* Returns the amount of failed jobs in a given queue.
|
|
5322
|
+
*
|
|
5323
|
+
*
|
|
5324
|
+
* @param {Name} name
|
|
5325
|
+
* @param {number} threshold
|
|
5326
|
+
* @throws {AppwriteException}
|
|
5327
|
+
* @returns {Promise}
|
|
5328
|
+
*/
|
|
5329
|
+
getFailedJobs(name, threshold) {
|
|
5330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5331
|
+
if (typeof name === 'undefined') {
|
|
5332
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
5333
|
+
}
|
|
5334
|
+
const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
|
|
5335
|
+
const payload = {};
|
|
5336
|
+
if (typeof threshold !== 'undefined') {
|
|
5337
|
+
payload['threshold'] = threshold;
|
|
5338
|
+
}
|
|
5339
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5340
|
+
return yield this.client.call('get', uri, {
|
|
5341
|
+
'content-type': 'application/json',
|
|
5342
|
+
}, payload);
|
|
5343
|
+
});
|
|
5344
|
+
}
|
|
5112
5345
|
/**
|
|
5113
5346
|
* Get functions queue
|
|
5114
5347
|
*
|
|
5348
|
+
* Get the number of function executions that are waiting to be processed in
|
|
5349
|
+
* the Appwrite internal queue server.
|
|
5115
5350
|
*
|
|
5116
5351
|
* @param {number} threshold
|
|
5117
5352
|
* @throws {AppwriteException}
|
|
@@ -5119,7 +5354,76 @@ class Health extends Service {
|
|
|
5119
5354
|
*/
|
|
5120
5355
|
getQueueFunctions(threshold) {
|
|
5121
5356
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5122
|
-
const apiPath = '/health/queue/functions';
|
|
5357
|
+
const apiPath = '/health/queue/functions';
|
|
5358
|
+
const payload = {};
|
|
5359
|
+
if (typeof threshold !== 'undefined') {
|
|
5360
|
+
payload['threshold'] = threshold;
|
|
5361
|
+
}
|
|
5362
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5363
|
+
return yield this.client.call('get', uri, {
|
|
5364
|
+
'content-type': 'application/json',
|
|
5365
|
+
}, payload);
|
|
5366
|
+
});
|
|
5367
|
+
}
|
|
5368
|
+
/**
|
|
5369
|
+
* Get logs queue
|
|
5370
|
+
*
|
|
5371
|
+
* Get the number of logs that are waiting to be processed in the Appwrite
|
|
5372
|
+
* internal queue server.
|
|
5373
|
+
*
|
|
5374
|
+
* @param {number} threshold
|
|
5375
|
+
* @throws {AppwriteException}
|
|
5376
|
+
* @returns {Promise}
|
|
5377
|
+
*/
|
|
5378
|
+
getQueueLogs(threshold) {
|
|
5379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5380
|
+
const apiPath = '/health/queue/logs';
|
|
5381
|
+
const payload = {};
|
|
5382
|
+
if (typeof threshold !== 'undefined') {
|
|
5383
|
+
payload['threshold'] = threshold;
|
|
5384
|
+
}
|
|
5385
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5386
|
+
return yield this.client.call('get', uri, {
|
|
5387
|
+
'content-type': 'application/json',
|
|
5388
|
+
}, payload);
|
|
5389
|
+
});
|
|
5390
|
+
}
|
|
5391
|
+
/**
|
|
5392
|
+
* Get mails queue
|
|
5393
|
+
*
|
|
5394
|
+
* Get the number of mails that are waiting to be processed in the Appwrite
|
|
5395
|
+
* internal queue server.
|
|
5396
|
+
*
|
|
5397
|
+
* @param {number} threshold
|
|
5398
|
+
* @throws {AppwriteException}
|
|
5399
|
+
* @returns {Promise}
|
|
5400
|
+
*/
|
|
5401
|
+
getQueueMails(threshold) {
|
|
5402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5403
|
+
const apiPath = '/health/queue/mails';
|
|
5404
|
+
const payload = {};
|
|
5405
|
+
if (typeof threshold !== 'undefined') {
|
|
5406
|
+
payload['threshold'] = threshold;
|
|
5407
|
+
}
|
|
5408
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5409
|
+
return yield this.client.call('get', uri, {
|
|
5410
|
+
'content-type': 'application/json',
|
|
5411
|
+
}, payload);
|
|
5412
|
+
});
|
|
5413
|
+
}
|
|
5414
|
+
/**
|
|
5415
|
+
* Get messaging queue
|
|
5416
|
+
*
|
|
5417
|
+
* Get the number of messages that are waiting to be processed in the Appwrite
|
|
5418
|
+
* internal queue server.
|
|
5419
|
+
*
|
|
5420
|
+
* @param {number} threshold
|
|
5421
|
+
* @throws {AppwriteException}
|
|
5422
|
+
* @returns {Promise}
|
|
5423
|
+
*/
|
|
5424
|
+
getQueueMessaging(threshold) {
|
|
5425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5426
|
+
const apiPath = '/health/queue/messaging';
|
|
5123
5427
|
const payload = {};
|
|
5124
5428
|
if (typeof threshold !== 'undefined') {
|
|
5125
5429
|
payload['threshold'] = threshold;
|
|
@@ -5131,18 +5435,18 @@ class Health extends Service {
|
|
|
5131
5435
|
});
|
|
5132
5436
|
}
|
|
5133
5437
|
/**
|
|
5134
|
-
* Get
|
|
5438
|
+
* Get migrations queue
|
|
5135
5439
|
*
|
|
5136
|
-
* Get the number of
|
|
5137
|
-
* internal queue server.
|
|
5440
|
+
* Get the number of migrations that are waiting to be processed in the
|
|
5441
|
+
* Appwrite internal queue server.
|
|
5138
5442
|
*
|
|
5139
5443
|
* @param {number} threshold
|
|
5140
5444
|
* @throws {AppwriteException}
|
|
5141
5445
|
* @returns {Promise}
|
|
5142
5446
|
*/
|
|
5143
|
-
|
|
5447
|
+
getQueueMigrations(threshold) {
|
|
5144
5448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5145
|
-
const apiPath = '/health/queue/
|
|
5449
|
+
const apiPath = '/health/queue/migrations';
|
|
5146
5450
|
const payload = {};
|
|
5147
5451
|
if (typeof threshold !== 'undefined') {
|
|
5148
5452
|
payload['threshold'] = threshold;
|
|
@@ -5154,18 +5458,18 @@ class Health extends Service {
|
|
|
5154
5458
|
});
|
|
5155
5459
|
}
|
|
5156
5460
|
/**
|
|
5157
|
-
* Get
|
|
5461
|
+
* Get usage queue
|
|
5158
5462
|
*
|
|
5159
|
-
* Get the number of
|
|
5463
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
5160
5464
|
* internal queue server.
|
|
5161
5465
|
*
|
|
5162
5466
|
* @param {number} threshold
|
|
5163
5467
|
* @throws {AppwriteException}
|
|
5164
5468
|
* @returns {Promise}
|
|
5165
5469
|
*/
|
|
5166
|
-
|
|
5470
|
+
getQueueUsage(threshold) {
|
|
5167
5471
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5168
|
-
const apiPath = '/health/queue/
|
|
5472
|
+
const apiPath = '/health/queue/usage';
|
|
5169
5473
|
const payload = {};
|
|
5170
5474
|
if (typeof threshold !== 'undefined') {
|
|
5171
5475
|
payload['threshold'] = threshold;
|
|
@@ -5177,18 +5481,18 @@ class Health extends Service {
|
|
|
5177
5481
|
});
|
|
5178
5482
|
}
|
|
5179
5483
|
/**
|
|
5180
|
-
* Get
|
|
5484
|
+
* Get usage dump queue
|
|
5181
5485
|
*
|
|
5182
|
-
* Get the number of
|
|
5183
|
-
* internal queue server.
|
|
5486
|
+
* Get the number of projects containing metrics that are waiting to be
|
|
5487
|
+
* processed in the Appwrite internal queue server.
|
|
5184
5488
|
*
|
|
5185
5489
|
* @param {number} threshold
|
|
5186
5490
|
* @throws {AppwriteException}
|
|
5187
5491
|
* @returns {Promise}
|
|
5188
5492
|
*/
|
|
5189
|
-
|
|
5493
|
+
getQueueUsageDump(threshold) {
|
|
5190
5494
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5191
|
-
const apiPath = '/health/queue/
|
|
5495
|
+
const apiPath = '/health/queue/usage-dump';
|
|
5192
5496
|
const payload = {};
|
|
5193
5497
|
if (typeof threshold !== 'undefined') {
|
|
5194
5498
|
payload['threshold'] = threshold;
|
|
@@ -5200,18 +5504,18 @@ class Health extends Service {
|
|
|
5200
5504
|
});
|
|
5201
5505
|
}
|
|
5202
5506
|
/**
|
|
5203
|
-
* Get
|
|
5507
|
+
* Get webhooks queue
|
|
5204
5508
|
*
|
|
5205
|
-
* Get the number of
|
|
5206
|
-
*
|
|
5509
|
+
* Get the number of webhooks that are waiting to be processed in the Appwrite
|
|
5510
|
+
* internal queue server.
|
|
5207
5511
|
*
|
|
5208
5512
|
* @param {number} threshold
|
|
5209
5513
|
* @throws {AppwriteException}
|
|
5210
5514
|
* @returns {Promise}
|
|
5211
5515
|
*/
|
|
5212
|
-
|
|
5516
|
+
getQueueWebhooks(threshold) {
|
|
5213
5517
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5214
|
-
const apiPath = '/health/queue/
|
|
5518
|
+
const apiPath = '/health/queue/webhooks';
|
|
5215
5519
|
const payload = {};
|
|
5216
5520
|
if (typeof threshold !== 'undefined') {
|
|
5217
5521
|
payload['threshold'] = threshold;
|
|
@@ -5223,22 +5527,17 @@ class Health extends Service {
|
|
|
5223
5527
|
});
|
|
5224
5528
|
}
|
|
5225
5529
|
/**
|
|
5226
|
-
* Get
|
|
5530
|
+
* Get storage
|
|
5227
5531
|
*
|
|
5228
|
-
*
|
|
5229
|
-
* internal queue server.
|
|
5532
|
+
* Check the Appwrite storage device is up and connection is successful.
|
|
5230
5533
|
*
|
|
5231
|
-
* @param {number} threshold
|
|
5232
5534
|
* @throws {AppwriteException}
|
|
5233
5535
|
* @returns {Promise}
|
|
5234
5536
|
*/
|
|
5235
|
-
|
|
5537
|
+
getStorage() {
|
|
5236
5538
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5237
|
-
const apiPath = '/health/
|
|
5539
|
+
const apiPath = '/health/storage';
|
|
5238
5540
|
const payload = {};
|
|
5239
|
-
if (typeof threshold !== 'undefined') {
|
|
5240
|
-
payload['threshold'] = threshold;
|
|
5241
|
-
}
|
|
5242
5541
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5243
5542
|
return yield this.client.call('get', uri, {
|
|
5244
5543
|
'content-type': 'application/json',
|
|
@@ -5459,6 +5758,7 @@ class Messaging extends Service {
|
|
|
5459
5758
|
/**
|
|
5460
5759
|
* List messages
|
|
5461
5760
|
*
|
|
5761
|
+
* Get a list of all messages from the current Appwrite project.
|
|
5462
5762
|
*
|
|
5463
5763
|
* @param {string[]} queries
|
|
5464
5764
|
* @param {string} search
|
|
@@ -5482,8 +5782,9 @@ class Messaging extends Service {
|
|
|
5482
5782
|
});
|
|
5483
5783
|
}
|
|
5484
5784
|
/**
|
|
5485
|
-
* Create
|
|
5785
|
+
* Create email
|
|
5486
5786
|
*
|
|
5787
|
+
* Create a new email message.
|
|
5487
5788
|
*
|
|
5488
5789
|
* @param {string} messageId
|
|
5489
5790
|
* @param {string} subject
|
|
@@ -5493,13 +5794,14 @@ class Messaging extends Service {
|
|
|
5493
5794
|
* @param {string[]} targets
|
|
5494
5795
|
* @param {string[]} cc
|
|
5495
5796
|
* @param {string[]} bcc
|
|
5496
|
-
* @param {
|
|
5797
|
+
* @param {string[]} attachments
|
|
5798
|
+
* @param {boolean} draft
|
|
5497
5799
|
* @param {boolean} html
|
|
5498
5800
|
* @param {string} scheduledAt
|
|
5499
5801
|
* @throws {AppwriteException}
|
|
5500
5802
|
* @returns {Promise}
|
|
5501
5803
|
*/
|
|
5502
|
-
createEmail(messageId, subject, content, topics, users, targets, cc, bcc,
|
|
5804
|
+
createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
|
|
5503
5805
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5504
5806
|
if (typeof messageId === 'undefined') {
|
|
5505
5807
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5536,8 +5838,11 @@ class Messaging extends Service {
|
|
|
5536
5838
|
if (typeof bcc !== 'undefined') {
|
|
5537
5839
|
payload['bcc'] = bcc;
|
|
5538
5840
|
}
|
|
5539
|
-
if (typeof
|
|
5540
|
-
payload['
|
|
5841
|
+
if (typeof attachments !== 'undefined') {
|
|
5842
|
+
payload['attachments'] = attachments;
|
|
5843
|
+
}
|
|
5844
|
+
if (typeof draft !== 'undefined') {
|
|
5845
|
+
payload['draft'] = draft;
|
|
5541
5846
|
}
|
|
5542
5847
|
if (typeof html !== 'undefined') {
|
|
5543
5848
|
payload['html'] = html;
|
|
@@ -5552,7 +5857,9 @@ class Messaging extends Service {
|
|
|
5552
5857
|
});
|
|
5553
5858
|
}
|
|
5554
5859
|
/**
|
|
5555
|
-
* Update
|
|
5860
|
+
* Update email
|
|
5861
|
+
*
|
|
5862
|
+
* Update an email message by its unique ID.
|
|
5556
5863
|
*
|
|
5557
5864
|
*
|
|
5558
5865
|
* @param {string} messageId
|
|
@@ -5561,7 +5868,7 @@ class Messaging extends Service {
|
|
|
5561
5868
|
* @param {string[]} targets
|
|
5562
5869
|
* @param {string} subject
|
|
5563
5870
|
* @param {string} content
|
|
5564
|
-
* @param {
|
|
5871
|
+
* @param {boolean} draft
|
|
5565
5872
|
* @param {boolean} html
|
|
5566
5873
|
* @param {string[]} cc
|
|
5567
5874
|
* @param {string[]} bcc
|
|
@@ -5569,7 +5876,7 @@ class Messaging extends Service {
|
|
|
5569
5876
|
* @throws {AppwriteException}
|
|
5570
5877
|
* @returns {Promise}
|
|
5571
5878
|
*/
|
|
5572
|
-
updateEmail(messageId, topics, users, targets, subject, content,
|
|
5879
|
+
updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt) {
|
|
5573
5880
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5574
5881
|
if (typeof messageId === 'undefined') {
|
|
5575
5882
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5591,8 +5898,8 @@ class Messaging extends Service {
|
|
|
5591
5898
|
if (typeof content !== 'undefined') {
|
|
5592
5899
|
payload['content'] = content;
|
|
5593
5900
|
}
|
|
5594
|
-
if (typeof
|
|
5595
|
-
payload['
|
|
5901
|
+
if (typeof draft !== 'undefined') {
|
|
5902
|
+
payload['draft'] = draft;
|
|
5596
5903
|
}
|
|
5597
5904
|
if (typeof html !== 'undefined') {
|
|
5598
5905
|
payload['html'] = html;
|
|
@@ -5613,8 +5920,9 @@ class Messaging extends Service {
|
|
|
5613
5920
|
});
|
|
5614
5921
|
}
|
|
5615
5922
|
/**
|
|
5616
|
-
* Create
|
|
5923
|
+
* Create push notification
|
|
5617
5924
|
*
|
|
5925
|
+
* Create a new push notification.
|
|
5618
5926
|
*
|
|
5619
5927
|
* @param {string} messageId
|
|
5620
5928
|
* @param {string} title
|
|
@@ -5624,17 +5932,18 @@ class Messaging extends Service {
|
|
|
5624
5932
|
* @param {string[]} targets
|
|
5625
5933
|
* @param {object} data
|
|
5626
5934
|
* @param {string} action
|
|
5935
|
+
* @param {string} image
|
|
5627
5936
|
* @param {string} icon
|
|
5628
5937
|
* @param {string} sound
|
|
5629
5938
|
* @param {string} color
|
|
5630
5939
|
* @param {string} tag
|
|
5631
5940
|
* @param {string} badge
|
|
5632
|
-
* @param {
|
|
5941
|
+
* @param {boolean} draft
|
|
5633
5942
|
* @param {string} scheduledAt
|
|
5634
5943
|
* @throws {AppwriteException}
|
|
5635
5944
|
* @returns {Promise}
|
|
5636
5945
|
*/
|
|
5637
|
-
createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge,
|
|
5946
|
+
createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
|
5638
5947
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5639
5948
|
if (typeof messageId === 'undefined') {
|
|
5640
5949
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5671,6 +5980,9 @@ class Messaging extends Service {
|
|
|
5671
5980
|
if (typeof action !== 'undefined') {
|
|
5672
5981
|
payload['action'] = action;
|
|
5673
5982
|
}
|
|
5983
|
+
if (typeof image !== 'undefined') {
|
|
5984
|
+
payload['image'] = image;
|
|
5985
|
+
}
|
|
5674
5986
|
if (typeof icon !== 'undefined') {
|
|
5675
5987
|
payload['icon'] = icon;
|
|
5676
5988
|
}
|
|
@@ -5686,8 +5998,8 @@ class Messaging extends Service {
|
|
|
5686
5998
|
if (typeof badge !== 'undefined') {
|
|
5687
5999
|
payload['badge'] = badge;
|
|
5688
6000
|
}
|
|
5689
|
-
if (typeof
|
|
5690
|
-
payload['
|
|
6001
|
+
if (typeof draft !== 'undefined') {
|
|
6002
|
+
payload['draft'] = draft;
|
|
5691
6003
|
}
|
|
5692
6004
|
if (typeof scheduledAt !== 'undefined') {
|
|
5693
6005
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5699,7 +6011,9 @@ class Messaging extends Service {
|
|
|
5699
6011
|
});
|
|
5700
6012
|
}
|
|
5701
6013
|
/**
|
|
5702
|
-
* Update
|
|
6014
|
+
* Update push notification
|
|
6015
|
+
*
|
|
6016
|
+
* Update a push notification by its unique ID.
|
|
5703
6017
|
*
|
|
5704
6018
|
*
|
|
5705
6019
|
* @param {string} messageId
|
|
@@ -5710,17 +6024,18 @@ class Messaging extends Service {
|
|
|
5710
6024
|
* @param {string} body
|
|
5711
6025
|
* @param {object} data
|
|
5712
6026
|
* @param {string} action
|
|
6027
|
+
* @param {string} image
|
|
5713
6028
|
* @param {string} icon
|
|
5714
6029
|
* @param {string} sound
|
|
5715
6030
|
* @param {string} color
|
|
5716
6031
|
* @param {string} tag
|
|
5717
6032
|
* @param {number} badge
|
|
5718
|
-
* @param {
|
|
6033
|
+
* @param {boolean} draft
|
|
5719
6034
|
* @param {string} scheduledAt
|
|
5720
6035
|
* @throws {AppwriteException}
|
|
5721
6036
|
* @returns {Promise}
|
|
5722
6037
|
*/
|
|
5723
|
-
updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge,
|
|
6038
|
+
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
|
5724
6039
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5725
6040
|
if (typeof messageId === 'undefined') {
|
|
5726
6041
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5748,6 +6063,9 @@ class Messaging extends Service {
|
|
|
5748
6063
|
if (typeof action !== 'undefined') {
|
|
5749
6064
|
payload['action'] = action;
|
|
5750
6065
|
}
|
|
6066
|
+
if (typeof image !== 'undefined') {
|
|
6067
|
+
payload['image'] = image;
|
|
6068
|
+
}
|
|
5751
6069
|
if (typeof icon !== 'undefined') {
|
|
5752
6070
|
payload['icon'] = icon;
|
|
5753
6071
|
}
|
|
@@ -5763,8 +6081,8 @@ class Messaging extends Service {
|
|
|
5763
6081
|
if (typeof badge !== 'undefined') {
|
|
5764
6082
|
payload['badge'] = badge;
|
|
5765
6083
|
}
|
|
5766
|
-
if (typeof
|
|
5767
|
-
payload['
|
|
6084
|
+
if (typeof draft !== 'undefined') {
|
|
6085
|
+
payload['draft'] = draft;
|
|
5768
6086
|
}
|
|
5769
6087
|
if (typeof scheduledAt !== 'undefined') {
|
|
5770
6088
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5776,20 +6094,21 @@ class Messaging extends Service {
|
|
|
5776
6094
|
});
|
|
5777
6095
|
}
|
|
5778
6096
|
/**
|
|
5779
|
-
* Create
|
|
6097
|
+
* Create SMS
|
|
5780
6098
|
*
|
|
6099
|
+
* Create a new SMS message.
|
|
5781
6100
|
*
|
|
5782
6101
|
* @param {string} messageId
|
|
5783
6102
|
* @param {string} content
|
|
5784
6103
|
* @param {string[]} topics
|
|
5785
6104
|
* @param {string[]} users
|
|
5786
6105
|
* @param {string[]} targets
|
|
5787
|
-
* @param {
|
|
6106
|
+
* @param {boolean} draft
|
|
5788
6107
|
* @param {string} scheduledAt
|
|
5789
6108
|
* @throws {AppwriteException}
|
|
5790
6109
|
* @returns {Promise}
|
|
5791
6110
|
*/
|
|
5792
|
-
|
|
6111
|
+
createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
|
|
5793
6112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5794
6113
|
if (typeof messageId === 'undefined') {
|
|
5795
6114
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5814,8 +6133,8 @@ class Messaging extends Service {
|
|
|
5814
6133
|
if (typeof targets !== 'undefined') {
|
|
5815
6134
|
payload['targets'] = targets;
|
|
5816
6135
|
}
|
|
5817
|
-
if (typeof
|
|
5818
|
-
payload['
|
|
6136
|
+
if (typeof draft !== 'undefined') {
|
|
6137
|
+
payload['draft'] = draft;
|
|
5819
6138
|
}
|
|
5820
6139
|
if (typeof scheduledAt !== 'undefined') {
|
|
5821
6140
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5827,7 +6146,9 @@ class Messaging extends Service {
|
|
|
5827
6146
|
});
|
|
5828
6147
|
}
|
|
5829
6148
|
/**
|
|
5830
|
-
* Update
|
|
6149
|
+
* Update SMS
|
|
6150
|
+
*
|
|
6151
|
+
* Update an email message by its unique ID.
|
|
5831
6152
|
*
|
|
5832
6153
|
*
|
|
5833
6154
|
* @param {string} messageId
|
|
@@ -5835,12 +6156,12 @@ class Messaging extends Service {
|
|
|
5835
6156
|
* @param {string[]} users
|
|
5836
6157
|
* @param {string[]} targets
|
|
5837
6158
|
* @param {string} content
|
|
5838
|
-
* @param {
|
|
6159
|
+
* @param {boolean} draft
|
|
5839
6160
|
* @param {string} scheduledAt
|
|
5840
6161
|
* @throws {AppwriteException}
|
|
5841
6162
|
* @returns {Promise}
|
|
5842
6163
|
*/
|
|
5843
|
-
|
|
6164
|
+
updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
|
|
5844
6165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5845
6166
|
if (typeof messageId === 'undefined') {
|
|
5846
6167
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5859,8 +6180,8 @@ class Messaging extends Service {
|
|
|
5859
6180
|
if (typeof content !== 'undefined') {
|
|
5860
6181
|
payload['content'] = content;
|
|
5861
6182
|
}
|
|
5862
|
-
if (typeof
|
|
5863
|
-
payload['
|
|
6183
|
+
if (typeof draft !== 'undefined') {
|
|
6184
|
+
payload['draft'] = draft;
|
|
5864
6185
|
}
|
|
5865
6186
|
if (typeof scheduledAt !== 'undefined') {
|
|
5866
6187
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5872,7 +6193,9 @@ class Messaging extends Service {
|
|
|
5872
6193
|
});
|
|
5873
6194
|
}
|
|
5874
6195
|
/**
|
|
5875
|
-
* Get
|
|
6196
|
+
* Get message
|
|
6197
|
+
*
|
|
6198
|
+
* Get a message by its unique ID.
|
|
5876
6199
|
*
|
|
5877
6200
|
*
|
|
5878
6201
|
* @param {string} messageId
|
|
@@ -5893,8 +6216,10 @@ class Messaging extends Service {
|
|
|
5893
6216
|
});
|
|
5894
6217
|
}
|
|
5895
6218
|
/**
|
|
5896
|
-
* Delete
|
|
6219
|
+
* Delete message
|
|
5897
6220
|
*
|
|
6221
|
+
* Delete a message. If the message is not a draft or scheduled, but has been
|
|
6222
|
+
* sent, this will not recall the message.
|
|
5898
6223
|
*
|
|
5899
6224
|
* @param {string} messageId
|
|
5900
6225
|
* @throws {AppwriteException}
|
|
@@ -5916,6 +6241,7 @@ class Messaging extends Service {
|
|
|
5916
6241
|
/**
|
|
5917
6242
|
* List message logs
|
|
5918
6243
|
*
|
|
6244
|
+
* Get the message activity logs listed by its unique ID.
|
|
5919
6245
|
*
|
|
5920
6246
|
* @param {string} messageId
|
|
5921
6247
|
* @param {string[]} queries
|
|
@@ -5941,8 +6267,7 @@ class Messaging extends Service {
|
|
|
5941
6267
|
/**
|
|
5942
6268
|
* List message targets
|
|
5943
6269
|
*
|
|
5944
|
-
*
|
|
5945
|
-
* attribute.
|
|
6270
|
+
* Get a list of the targets associated with a message.
|
|
5946
6271
|
*
|
|
5947
6272
|
* @param {string} messageId
|
|
5948
6273
|
* @param {string[]} queries
|
|
@@ -5968,6 +6293,7 @@ class Messaging extends Service {
|
|
|
5968
6293
|
/**
|
|
5969
6294
|
* List providers
|
|
5970
6295
|
*
|
|
6296
|
+
* Get a list of all providers from the current Appwrite project.
|
|
5971
6297
|
*
|
|
5972
6298
|
* @param {string[]} queries
|
|
5973
6299
|
* @param {string} search
|
|
@@ -5993,6 +6319,7 @@ class Messaging extends Service {
|
|
|
5993
6319
|
/**
|
|
5994
6320
|
* Create APNS provider
|
|
5995
6321
|
*
|
|
6322
|
+
* Create a new Apple Push Notification service provider.
|
|
5996
6323
|
*
|
|
5997
6324
|
* @param {string} providerId
|
|
5998
6325
|
* @param {string} name
|
|
@@ -6000,11 +6327,12 @@ class Messaging extends Service {
|
|
|
6000
6327
|
* @param {string} authKeyId
|
|
6001
6328
|
* @param {string} teamId
|
|
6002
6329
|
* @param {string} bundleId
|
|
6330
|
+
* @param {boolean} sandbox
|
|
6003
6331
|
* @param {boolean} enabled
|
|
6004
6332
|
* @throws {AppwriteException}
|
|
6005
6333
|
* @returns {Promise}
|
|
6006
6334
|
*/
|
|
6007
|
-
|
|
6335
|
+
createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
|
|
6008
6336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6009
6337
|
if (typeof providerId === 'undefined') {
|
|
6010
6338
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6032,6 +6360,9 @@ class Messaging extends Service {
|
|
|
6032
6360
|
if (typeof bundleId !== 'undefined') {
|
|
6033
6361
|
payload['bundleId'] = bundleId;
|
|
6034
6362
|
}
|
|
6363
|
+
if (typeof sandbox !== 'undefined') {
|
|
6364
|
+
payload['sandbox'] = sandbox;
|
|
6365
|
+
}
|
|
6035
6366
|
if (typeof enabled !== 'undefined') {
|
|
6036
6367
|
payload['enabled'] = enabled;
|
|
6037
6368
|
}
|
|
@@ -6044,6 +6375,7 @@ class Messaging extends Service {
|
|
|
6044
6375
|
/**
|
|
6045
6376
|
* Update APNS provider
|
|
6046
6377
|
*
|
|
6378
|
+
* Update a Apple Push Notification service provider by its unique ID.
|
|
6047
6379
|
*
|
|
6048
6380
|
* @param {string} providerId
|
|
6049
6381
|
* @param {string} name
|
|
@@ -6052,10 +6384,11 @@ class Messaging extends Service {
|
|
|
6052
6384
|
* @param {string} authKeyId
|
|
6053
6385
|
* @param {string} teamId
|
|
6054
6386
|
* @param {string} bundleId
|
|
6387
|
+
* @param {boolean} sandbox
|
|
6055
6388
|
* @throws {AppwriteException}
|
|
6056
6389
|
* @returns {Promise}
|
|
6057
6390
|
*/
|
|
6058
|
-
|
|
6391
|
+
updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
|
|
6059
6392
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6060
6393
|
if (typeof providerId === 'undefined') {
|
|
6061
6394
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6080,6 +6413,9 @@ class Messaging extends Service {
|
|
|
6080
6413
|
if (typeof bundleId !== 'undefined') {
|
|
6081
6414
|
payload['bundleId'] = bundleId;
|
|
6082
6415
|
}
|
|
6416
|
+
if (typeof sandbox !== 'undefined') {
|
|
6417
|
+
payload['sandbox'] = sandbox;
|
|
6418
|
+
}
|
|
6083
6419
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6084
6420
|
return yield this.client.call('patch', uri, {
|
|
6085
6421
|
'content-type': 'application/json',
|
|
@@ -6089,6 +6425,7 @@ class Messaging extends Service {
|
|
|
6089
6425
|
/**
|
|
6090
6426
|
* Create FCM provider
|
|
6091
6427
|
*
|
|
6428
|
+
* Create a new Firebase Cloud Messaging provider.
|
|
6092
6429
|
*
|
|
6093
6430
|
* @param {string} providerId
|
|
6094
6431
|
* @param {string} name
|
|
@@ -6097,7 +6434,7 @@ class Messaging extends Service {
|
|
|
6097
6434
|
* @throws {AppwriteException}
|
|
6098
6435
|
* @returns {Promise}
|
|
6099
6436
|
*/
|
|
6100
|
-
|
|
6437
|
+
createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
|
|
6101
6438
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6102
6439
|
if (typeof providerId === 'undefined') {
|
|
6103
6440
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6128,6 +6465,7 @@ class Messaging extends Service {
|
|
|
6128
6465
|
/**
|
|
6129
6466
|
* Update FCM provider
|
|
6130
6467
|
*
|
|
6468
|
+
* Update a Firebase Cloud Messaging provider by its unique ID.
|
|
6131
6469
|
*
|
|
6132
6470
|
* @param {string} providerId
|
|
6133
6471
|
* @param {string} name
|
|
@@ -6136,7 +6474,7 @@ class Messaging extends Service {
|
|
|
6136
6474
|
* @throws {AppwriteException}
|
|
6137
6475
|
* @returns {Promise}
|
|
6138
6476
|
*/
|
|
6139
|
-
|
|
6477
|
+
updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
|
|
6140
6478
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6141
6479
|
if (typeof providerId === 'undefined') {
|
|
6142
6480
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6161,6 +6499,7 @@ class Messaging extends Service {
|
|
|
6161
6499
|
/**
|
|
6162
6500
|
* Create Mailgun provider
|
|
6163
6501
|
*
|
|
6502
|
+
* Create a new Mailgun provider.
|
|
6164
6503
|
*
|
|
6165
6504
|
* @param {string} providerId
|
|
6166
6505
|
* @param {string} name
|
|
@@ -6224,6 +6563,7 @@ class Messaging extends Service {
|
|
|
6224
6563
|
/**
|
|
6225
6564
|
* Update Mailgun provider
|
|
6226
6565
|
*
|
|
6566
|
+
* Update a Mailgun provider by its unique ID.
|
|
6227
6567
|
*
|
|
6228
6568
|
* @param {string} providerId
|
|
6229
6569
|
* @param {string} name
|
|
@@ -6281,17 +6621,18 @@ class Messaging extends Service {
|
|
|
6281
6621
|
/**
|
|
6282
6622
|
* Create Msg91 provider
|
|
6283
6623
|
*
|
|
6624
|
+
* Create a new MSG91 provider.
|
|
6284
6625
|
*
|
|
6285
6626
|
* @param {string} providerId
|
|
6286
6627
|
* @param {string} name
|
|
6287
|
-
* @param {string}
|
|
6628
|
+
* @param {string} templateId
|
|
6288
6629
|
* @param {string} senderId
|
|
6289
6630
|
* @param {string} authKey
|
|
6290
6631
|
* @param {boolean} enabled
|
|
6291
6632
|
* @throws {AppwriteException}
|
|
6292
6633
|
* @returns {Promise}
|
|
6293
6634
|
*/
|
|
6294
|
-
createMsg91Provider(providerId, name,
|
|
6635
|
+
createMsg91Provider(providerId, name, templateId, senderId, authKey, enabled) {
|
|
6295
6636
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6296
6637
|
if (typeof providerId === 'undefined') {
|
|
6297
6638
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6307,8 +6648,8 @@ class Messaging extends Service {
|
|
|
6307
6648
|
if (typeof name !== 'undefined') {
|
|
6308
6649
|
payload['name'] = name;
|
|
6309
6650
|
}
|
|
6310
|
-
if (typeof
|
|
6311
|
-
payload['
|
|
6651
|
+
if (typeof templateId !== 'undefined') {
|
|
6652
|
+
payload['templateId'] = templateId;
|
|
6312
6653
|
}
|
|
6313
6654
|
if (typeof senderId !== 'undefined') {
|
|
6314
6655
|
payload['senderId'] = senderId;
|
|
@@ -6328,17 +6669,18 @@ class Messaging extends Service {
|
|
|
6328
6669
|
/**
|
|
6329
6670
|
* Update Msg91 provider
|
|
6330
6671
|
*
|
|
6672
|
+
* Update a MSG91 provider by its unique ID.
|
|
6331
6673
|
*
|
|
6332
6674
|
* @param {string} providerId
|
|
6333
6675
|
* @param {string} name
|
|
6334
6676
|
* @param {boolean} enabled
|
|
6677
|
+
* @param {string} templateId
|
|
6335
6678
|
* @param {string} senderId
|
|
6336
6679
|
* @param {string} authKey
|
|
6337
|
-
* @param {string} from
|
|
6338
6680
|
* @throws {AppwriteException}
|
|
6339
6681
|
* @returns {Promise}
|
|
6340
6682
|
*/
|
|
6341
|
-
updateMsg91Provider(providerId, name, enabled, senderId, authKey
|
|
6683
|
+
updateMsg91Provider(providerId, name, enabled, templateId, senderId, authKey) {
|
|
6342
6684
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6343
6685
|
if (typeof providerId === 'undefined') {
|
|
6344
6686
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6351,15 +6693,15 @@ class Messaging extends Service {
|
|
|
6351
6693
|
if (typeof enabled !== 'undefined') {
|
|
6352
6694
|
payload['enabled'] = enabled;
|
|
6353
6695
|
}
|
|
6696
|
+
if (typeof templateId !== 'undefined') {
|
|
6697
|
+
payload['templateId'] = templateId;
|
|
6698
|
+
}
|
|
6354
6699
|
if (typeof senderId !== 'undefined') {
|
|
6355
6700
|
payload['senderId'] = senderId;
|
|
6356
6701
|
}
|
|
6357
6702
|
if (typeof authKey !== 'undefined') {
|
|
6358
6703
|
payload['authKey'] = authKey;
|
|
6359
6704
|
}
|
|
6360
|
-
if (typeof from !== 'undefined') {
|
|
6361
|
-
payload['from'] = from;
|
|
6362
|
-
}
|
|
6363
6705
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6364
6706
|
return yield this.client.call('patch', uri, {
|
|
6365
6707
|
'content-type': 'application/json',
|
|
@@ -6369,6 +6711,7 @@ class Messaging extends Service {
|
|
|
6369
6711
|
/**
|
|
6370
6712
|
* Create Sendgrid provider
|
|
6371
6713
|
*
|
|
6714
|
+
* Create a new Sendgrid provider.
|
|
6372
6715
|
*
|
|
6373
6716
|
* @param {string} providerId
|
|
6374
6717
|
* @param {string} name
|
|
@@ -6424,6 +6767,7 @@ class Messaging extends Service {
|
|
|
6424
6767
|
/**
|
|
6425
6768
|
* Update Sendgrid provider
|
|
6426
6769
|
*
|
|
6770
|
+
* Update a Sendgrid provider by its unique ID.
|
|
6427
6771
|
*
|
|
6428
6772
|
* @param {string} providerId
|
|
6429
6773
|
* @param {string} name
|
|
@@ -6473,6 +6817,7 @@ class Messaging extends Service {
|
|
|
6473
6817
|
/**
|
|
6474
6818
|
* Create SMTP provider
|
|
6475
6819
|
*
|
|
6820
|
+
* Create a new SMTP provider.
|
|
6476
6821
|
*
|
|
6477
6822
|
* @param {string} providerId
|
|
6478
6823
|
* @param {string} name
|
|
@@ -6480,7 +6825,7 @@ class Messaging extends Service {
|
|
|
6480
6825
|
* @param {number} port
|
|
6481
6826
|
* @param {string} username
|
|
6482
6827
|
* @param {string} password
|
|
6483
|
-
* @param {
|
|
6828
|
+
* @param {SmtpEncryption} encryption
|
|
6484
6829
|
* @param {boolean} autoTLS
|
|
6485
6830
|
* @param {string} mailer
|
|
6486
6831
|
* @param {string} fromName
|
|
@@ -6491,7 +6836,7 @@ class Messaging extends Service {
|
|
|
6491
6836
|
* @throws {AppwriteException}
|
|
6492
6837
|
* @returns {Promise}
|
|
6493
6838
|
*/
|
|
6494
|
-
|
|
6839
|
+
createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6495
6840
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6496
6841
|
if (typeof providerId === 'undefined') {
|
|
6497
6842
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6555,6 +6900,7 @@ class Messaging extends Service {
|
|
|
6555
6900
|
/**
|
|
6556
6901
|
* Update SMTP provider
|
|
6557
6902
|
*
|
|
6903
|
+
* Update a SMTP provider by its unique ID.
|
|
6558
6904
|
*
|
|
6559
6905
|
* @param {string} providerId
|
|
6560
6906
|
* @param {string} name
|
|
@@ -6562,8 +6908,9 @@ class Messaging extends Service {
|
|
|
6562
6908
|
* @param {number} port
|
|
6563
6909
|
* @param {string} username
|
|
6564
6910
|
* @param {string} password
|
|
6565
|
-
* @param {
|
|
6911
|
+
* @param {SmtpEncryption} encryption
|
|
6566
6912
|
* @param {boolean} autoTLS
|
|
6913
|
+
* @param {string} mailer
|
|
6567
6914
|
* @param {string} fromName
|
|
6568
6915
|
* @param {string} fromEmail
|
|
6569
6916
|
* @param {string} replyToName
|
|
@@ -6572,7 +6919,7 @@ class Messaging extends Service {
|
|
|
6572
6919
|
* @throws {AppwriteException}
|
|
6573
6920
|
* @returns {Promise}
|
|
6574
6921
|
*/
|
|
6575
|
-
|
|
6922
|
+
updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6576
6923
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6577
6924
|
if (typeof providerId === 'undefined') {
|
|
6578
6925
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6600,6 +6947,9 @@ class Messaging extends Service {
|
|
|
6600
6947
|
if (typeof autoTLS !== 'undefined') {
|
|
6601
6948
|
payload['autoTLS'] = autoTLS;
|
|
6602
6949
|
}
|
|
6950
|
+
if (typeof mailer !== 'undefined') {
|
|
6951
|
+
payload['mailer'] = mailer;
|
|
6952
|
+
}
|
|
6603
6953
|
if (typeof fromName !== 'undefined') {
|
|
6604
6954
|
payload['fromName'] = fromName;
|
|
6605
6955
|
}
|
|
@@ -6624,17 +6974,18 @@ class Messaging extends Service {
|
|
|
6624
6974
|
/**
|
|
6625
6975
|
* Create Telesign provider
|
|
6626
6976
|
*
|
|
6977
|
+
* Create a new Telesign provider.
|
|
6627
6978
|
*
|
|
6628
6979
|
* @param {string} providerId
|
|
6629
6980
|
* @param {string} name
|
|
6630
6981
|
* @param {string} from
|
|
6631
|
-
* @param {string}
|
|
6632
|
-
* @param {string}
|
|
6982
|
+
* @param {string} customerId
|
|
6983
|
+
* @param {string} apiKey
|
|
6633
6984
|
* @param {boolean} enabled
|
|
6634
6985
|
* @throws {AppwriteException}
|
|
6635
6986
|
* @returns {Promise}
|
|
6636
6987
|
*/
|
|
6637
|
-
createTelesignProvider(providerId, name, from,
|
|
6988
|
+
createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
|
|
6638
6989
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6639
6990
|
if (typeof providerId === 'undefined') {
|
|
6640
6991
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6653,11 +7004,11 @@ class Messaging extends Service {
|
|
|
6653
7004
|
if (typeof from !== 'undefined') {
|
|
6654
7005
|
payload['from'] = from;
|
|
6655
7006
|
}
|
|
6656
|
-
if (typeof
|
|
6657
|
-
payload['
|
|
7007
|
+
if (typeof customerId !== 'undefined') {
|
|
7008
|
+
payload['customerId'] = customerId;
|
|
6658
7009
|
}
|
|
6659
|
-
if (typeof
|
|
6660
|
-
payload['
|
|
7010
|
+
if (typeof apiKey !== 'undefined') {
|
|
7011
|
+
payload['apiKey'] = apiKey;
|
|
6661
7012
|
}
|
|
6662
7013
|
if (typeof enabled !== 'undefined') {
|
|
6663
7014
|
payload['enabled'] = enabled;
|
|
@@ -6671,17 +7022,18 @@ class Messaging extends Service {
|
|
|
6671
7022
|
/**
|
|
6672
7023
|
* Update Telesign provider
|
|
6673
7024
|
*
|
|
7025
|
+
* Update a Telesign provider by its unique ID.
|
|
6674
7026
|
*
|
|
6675
7027
|
* @param {string} providerId
|
|
6676
7028
|
* @param {string} name
|
|
6677
7029
|
* @param {boolean} enabled
|
|
6678
|
-
* @param {string}
|
|
6679
|
-
* @param {string}
|
|
7030
|
+
* @param {string} customerId
|
|
7031
|
+
* @param {string} apiKey
|
|
6680
7032
|
* @param {string} from
|
|
6681
7033
|
* @throws {AppwriteException}
|
|
6682
7034
|
* @returns {Promise}
|
|
6683
7035
|
*/
|
|
6684
|
-
updateTelesignProvider(providerId, name, enabled,
|
|
7036
|
+
updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
|
|
6685
7037
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6686
7038
|
if (typeof providerId === 'undefined') {
|
|
6687
7039
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6694,11 +7046,11 @@ class Messaging extends Service {
|
|
|
6694
7046
|
if (typeof enabled !== 'undefined') {
|
|
6695
7047
|
payload['enabled'] = enabled;
|
|
6696
7048
|
}
|
|
6697
|
-
if (typeof
|
|
6698
|
-
payload['
|
|
7049
|
+
if (typeof customerId !== 'undefined') {
|
|
7050
|
+
payload['customerId'] = customerId;
|
|
6699
7051
|
}
|
|
6700
|
-
if (typeof
|
|
6701
|
-
payload['
|
|
7052
|
+
if (typeof apiKey !== 'undefined') {
|
|
7053
|
+
payload['apiKey'] = apiKey;
|
|
6702
7054
|
}
|
|
6703
7055
|
if (typeof from !== 'undefined') {
|
|
6704
7056
|
payload['from'] = from;
|
|
@@ -6712,6 +7064,7 @@ class Messaging extends Service {
|
|
|
6712
7064
|
/**
|
|
6713
7065
|
* Create Textmagic provider
|
|
6714
7066
|
*
|
|
7067
|
+
* Create a new Textmagic provider.
|
|
6715
7068
|
*
|
|
6716
7069
|
* @param {string} providerId
|
|
6717
7070
|
* @param {string} name
|
|
@@ -6759,6 +7112,7 @@ class Messaging extends Service {
|
|
|
6759
7112
|
/**
|
|
6760
7113
|
* Update Textmagic provider
|
|
6761
7114
|
*
|
|
7115
|
+
* Update a Textmagic provider by its unique ID.
|
|
6762
7116
|
*
|
|
6763
7117
|
* @param {string} providerId
|
|
6764
7118
|
* @param {string} name
|
|
@@ -6800,6 +7154,7 @@ class Messaging extends Service {
|
|
|
6800
7154
|
/**
|
|
6801
7155
|
* Create Twilio provider
|
|
6802
7156
|
*
|
|
7157
|
+
* Create a new Twilio provider.
|
|
6803
7158
|
*
|
|
6804
7159
|
* @param {string} providerId
|
|
6805
7160
|
* @param {string} name
|
|
@@ -6847,6 +7202,7 @@ class Messaging extends Service {
|
|
|
6847
7202
|
/**
|
|
6848
7203
|
* Update Twilio provider
|
|
6849
7204
|
*
|
|
7205
|
+
* Update a Twilio provider by its unique ID.
|
|
6850
7206
|
*
|
|
6851
7207
|
* @param {string} providerId
|
|
6852
7208
|
* @param {string} name
|
|
@@ -6888,6 +7244,7 @@ class Messaging extends Service {
|
|
|
6888
7244
|
/**
|
|
6889
7245
|
* Create Vonage provider
|
|
6890
7246
|
*
|
|
7247
|
+
* Create a new Vonage provider.
|
|
6891
7248
|
*
|
|
6892
7249
|
* @param {string} providerId
|
|
6893
7250
|
* @param {string} name
|
|
@@ -6935,6 +7292,7 @@ class Messaging extends Service {
|
|
|
6935
7292
|
/**
|
|
6936
7293
|
* Update Vonage provider
|
|
6937
7294
|
*
|
|
7295
|
+
* Update a Vonage provider by its unique ID.
|
|
6938
7296
|
*
|
|
6939
7297
|
* @param {string} providerId
|
|
6940
7298
|
* @param {string} name
|
|
@@ -6976,6 +7334,8 @@ class Messaging extends Service {
|
|
|
6976
7334
|
/**
|
|
6977
7335
|
* Get provider
|
|
6978
7336
|
*
|
|
7337
|
+
* Get a provider by its unique ID.
|
|
7338
|
+
*
|
|
6979
7339
|
*
|
|
6980
7340
|
* @param {string} providerId
|
|
6981
7341
|
* @throws {AppwriteException}
|
|
@@ -6997,6 +7357,7 @@ class Messaging extends Service {
|
|
|
6997
7357
|
/**
|
|
6998
7358
|
* Delete provider
|
|
6999
7359
|
*
|
|
7360
|
+
* Delete a provider by its unique ID.
|
|
7000
7361
|
*
|
|
7001
7362
|
* @param {string} providerId
|
|
7002
7363
|
* @throws {AppwriteException}
|
|
@@ -7018,6 +7379,7 @@ class Messaging extends Service {
|
|
|
7018
7379
|
/**
|
|
7019
7380
|
* List provider logs
|
|
7020
7381
|
*
|
|
7382
|
+
* Get the provider activity logs listed by its unique ID.
|
|
7021
7383
|
*
|
|
7022
7384
|
* @param {string} providerId
|
|
7023
7385
|
* @param {string[]} queries
|
|
@@ -7043,6 +7405,7 @@ class Messaging extends Service {
|
|
|
7043
7405
|
/**
|
|
7044
7406
|
* List subscriber logs
|
|
7045
7407
|
*
|
|
7408
|
+
* Get the subscriber activity logs listed by its unique ID.
|
|
7046
7409
|
*
|
|
7047
7410
|
* @param {string} subscriberId
|
|
7048
7411
|
* @param {string[]} queries
|
|
@@ -7066,8 +7429,9 @@ class Messaging extends Service {
|
|
|
7066
7429
|
});
|
|
7067
7430
|
}
|
|
7068
7431
|
/**
|
|
7069
|
-
* List topics
|
|
7432
|
+
* List topics
|
|
7070
7433
|
*
|
|
7434
|
+
* Get a list of all topics from the current Appwrite project.
|
|
7071
7435
|
*
|
|
7072
7436
|
* @param {string[]} queries
|
|
7073
7437
|
* @param {string} search
|
|
@@ -7091,15 +7455,17 @@ class Messaging extends Service {
|
|
|
7091
7455
|
});
|
|
7092
7456
|
}
|
|
7093
7457
|
/**
|
|
7094
|
-
* Create
|
|
7458
|
+
* Create topic
|
|
7095
7459
|
*
|
|
7460
|
+
* Create a new topic.
|
|
7096
7461
|
*
|
|
7097
7462
|
* @param {string} topicId
|
|
7098
7463
|
* @param {string} name
|
|
7464
|
+
* @param {string[]} subscribe
|
|
7099
7465
|
* @throws {AppwriteException}
|
|
7100
7466
|
* @returns {Promise}
|
|
7101
7467
|
*/
|
|
7102
|
-
createTopic(topicId, name) {
|
|
7468
|
+
createTopic(topicId, name, subscribe) {
|
|
7103
7469
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7104
7470
|
if (typeof topicId === 'undefined') {
|
|
7105
7471
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -7115,6 +7481,9 @@ class Messaging extends Service {
|
|
|
7115
7481
|
if (typeof name !== 'undefined') {
|
|
7116
7482
|
payload['name'] = name;
|
|
7117
7483
|
}
|
|
7484
|
+
if (typeof subscribe !== 'undefined') {
|
|
7485
|
+
payload['subscribe'] = subscribe;
|
|
7486
|
+
}
|
|
7118
7487
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7119
7488
|
return yield this.client.call('post', uri, {
|
|
7120
7489
|
'content-type': 'application/json',
|
|
@@ -7122,7 +7491,9 @@ class Messaging extends Service {
|
|
|
7122
7491
|
});
|
|
7123
7492
|
}
|
|
7124
7493
|
/**
|
|
7125
|
-
* Get
|
|
7494
|
+
* Get topic
|
|
7495
|
+
*
|
|
7496
|
+
* Get a topic by its unique ID.
|
|
7126
7497
|
*
|
|
7127
7498
|
*
|
|
7128
7499
|
* @param {string} topicId
|
|
@@ -7143,15 +7514,18 @@ class Messaging extends Service {
|
|
|
7143
7514
|
});
|
|
7144
7515
|
}
|
|
7145
7516
|
/**
|
|
7146
|
-
* Update
|
|
7517
|
+
* Update topic
|
|
7518
|
+
*
|
|
7519
|
+
* Update a topic by its unique ID.
|
|
7147
7520
|
*
|
|
7148
7521
|
*
|
|
7149
7522
|
* @param {string} topicId
|
|
7150
7523
|
* @param {string} name
|
|
7524
|
+
* @param {string[]} subscribe
|
|
7151
7525
|
* @throws {AppwriteException}
|
|
7152
7526
|
* @returns {Promise}
|
|
7153
7527
|
*/
|
|
7154
|
-
updateTopic(topicId, name) {
|
|
7528
|
+
updateTopic(topicId, name, subscribe) {
|
|
7155
7529
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7156
7530
|
if (typeof topicId === 'undefined') {
|
|
7157
7531
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -7161,6 +7535,9 @@ class Messaging extends Service {
|
|
|
7161
7535
|
if (typeof name !== 'undefined') {
|
|
7162
7536
|
payload['name'] = name;
|
|
7163
7537
|
}
|
|
7538
|
+
if (typeof subscribe !== 'undefined') {
|
|
7539
|
+
payload['subscribe'] = subscribe;
|
|
7540
|
+
}
|
|
7164
7541
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7165
7542
|
return yield this.client.call('patch', uri, {
|
|
7166
7543
|
'content-type': 'application/json',
|
|
@@ -7168,8 +7545,9 @@ class Messaging extends Service {
|
|
|
7168
7545
|
});
|
|
7169
7546
|
}
|
|
7170
7547
|
/**
|
|
7171
|
-
* Delete
|
|
7548
|
+
* Delete topic
|
|
7172
7549
|
*
|
|
7550
|
+
* Delete a topic by its unique ID.
|
|
7173
7551
|
*
|
|
7174
7552
|
* @param {string} topicId
|
|
7175
7553
|
* @throws {AppwriteException}
|
|
@@ -7191,6 +7569,7 @@ class Messaging extends Service {
|
|
|
7191
7569
|
/**
|
|
7192
7570
|
* List topic logs
|
|
7193
7571
|
*
|
|
7572
|
+
* Get the topic activity logs listed by its unique ID.
|
|
7194
7573
|
*
|
|
7195
7574
|
* @param {string} topicId
|
|
7196
7575
|
* @param {string[]} queries
|
|
@@ -7214,8 +7593,9 @@ class Messaging extends Service {
|
|
|
7214
7593
|
});
|
|
7215
7594
|
}
|
|
7216
7595
|
/**
|
|
7217
|
-
* List subscribers
|
|
7596
|
+
* List subscribers
|
|
7218
7597
|
*
|
|
7598
|
+
* Get a list of all subscribers from the current Appwrite project.
|
|
7219
7599
|
*
|
|
7220
7600
|
* @param {string} topicId
|
|
7221
7601
|
* @param {string[]} queries
|
|
@@ -7243,8 +7623,9 @@ class Messaging extends Service {
|
|
|
7243
7623
|
});
|
|
7244
7624
|
}
|
|
7245
7625
|
/**
|
|
7246
|
-
* Create
|
|
7626
|
+
* Create subscriber
|
|
7247
7627
|
*
|
|
7628
|
+
* Create a new subscriber.
|
|
7248
7629
|
*
|
|
7249
7630
|
* @param {string} topicId
|
|
7250
7631
|
* @param {string} subscriberId
|
|
@@ -7278,7 +7659,9 @@ class Messaging extends Service {
|
|
|
7278
7659
|
});
|
|
7279
7660
|
}
|
|
7280
7661
|
/**
|
|
7281
|
-
* Get
|
|
7662
|
+
* Get subscriber
|
|
7663
|
+
*
|
|
7664
|
+
* Get a subscriber by its unique ID.
|
|
7282
7665
|
*
|
|
7283
7666
|
*
|
|
7284
7667
|
* @param {string} topicId
|
|
@@ -7303,8 +7686,9 @@ class Messaging extends Service {
|
|
|
7303
7686
|
});
|
|
7304
7687
|
}
|
|
7305
7688
|
/**
|
|
7306
|
-
* Delete
|
|
7689
|
+
* Delete subscriber
|
|
7307
7690
|
*
|
|
7691
|
+
* Delete a subscriber by its unique ID.
|
|
7308
7692
|
*
|
|
7309
7693
|
* @param {string} topicId
|
|
7310
7694
|
* @param {string} subscriberId
|
|
@@ -7942,7 +8326,7 @@ class Project extends Service {
|
|
|
7942
8326
|
super(client);
|
|
7943
8327
|
}
|
|
7944
8328
|
/**
|
|
7945
|
-
* Get usage stats
|
|
8329
|
+
* Get project usage stats
|
|
7946
8330
|
*
|
|
7947
8331
|
*
|
|
7948
8332
|
* @param {string} startDate
|
|
@@ -8321,6 +8705,69 @@ class Projects extends Service {
|
|
|
8321
8705
|
}, payload);
|
|
8322
8706
|
});
|
|
8323
8707
|
}
|
|
8708
|
+
/**
|
|
8709
|
+
* Update API status
|
|
8710
|
+
*
|
|
8711
|
+
*
|
|
8712
|
+
* @param {string} projectId
|
|
8713
|
+
* @param {Api} api
|
|
8714
|
+
* @param {boolean} status
|
|
8715
|
+
* @throws {AppwriteException}
|
|
8716
|
+
* @returns {Promise}
|
|
8717
|
+
*/
|
|
8718
|
+
updateApiStatus(projectId, api, status) {
|
|
8719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8720
|
+
if (typeof projectId === 'undefined') {
|
|
8721
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
8722
|
+
}
|
|
8723
|
+
if (typeof api === 'undefined') {
|
|
8724
|
+
throw new AppwriteException('Missing required parameter: "api"');
|
|
8725
|
+
}
|
|
8726
|
+
if (typeof status === 'undefined') {
|
|
8727
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
8728
|
+
}
|
|
8729
|
+
const apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
|
|
8730
|
+
const payload = {};
|
|
8731
|
+
if (typeof api !== 'undefined') {
|
|
8732
|
+
payload['api'] = api;
|
|
8733
|
+
}
|
|
8734
|
+
if (typeof status !== 'undefined') {
|
|
8735
|
+
payload['status'] = status;
|
|
8736
|
+
}
|
|
8737
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8738
|
+
return yield this.client.call('patch', uri, {
|
|
8739
|
+
'content-type': 'application/json',
|
|
8740
|
+
}, payload);
|
|
8741
|
+
});
|
|
8742
|
+
}
|
|
8743
|
+
/**
|
|
8744
|
+
* Update all API status
|
|
8745
|
+
*
|
|
8746
|
+
*
|
|
8747
|
+
* @param {string} projectId
|
|
8748
|
+
* @param {boolean} status
|
|
8749
|
+
* @throws {AppwriteException}
|
|
8750
|
+
* @returns {Promise}
|
|
8751
|
+
*/
|
|
8752
|
+
updateApiStatusAll(projectId, status) {
|
|
8753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8754
|
+
if (typeof projectId === 'undefined') {
|
|
8755
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
8756
|
+
}
|
|
8757
|
+
if (typeof status === 'undefined') {
|
|
8758
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
8759
|
+
}
|
|
8760
|
+
const apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
|
|
8761
|
+
const payload = {};
|
|
8762
|
+
if (typeof status !== 'undefined') {
|
|
8763
|
+
payload['status'] = status;
|
|
8764
|
+
}
|
|
8765
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8766
|
+
return yield this.client.call('patch', uri, {
|
|
8767
|
+
'content-type': 'application/json',
|
|
8768
|
+
}, payload);
|
|
8769
|
+
});
|
|
8770
|
+
}
|
|
8324
8771
|
/**
|
|
8325
8772
|
* Update project authentication duration
|
|
8326
8773
|
*
|
|
@@ -8881,7 +9328,7 @@ class Projects extends Service {
|
|
|
8881
9328
|
*
|
|
8882
9329
|
*
|
|
8883
9330
|
* @param {string} projectId
|
|
8884
|
-
* @param {
|
|
9331
|
+
* @param {ApiService} service
|
|
8885
9332
|
* @param {boolean} status
|
|
8886
9333
|
* @throws {AppwriteException}
|
|
8887
9334
|
* @returns {Promise}
|
|
@@ -9101,8 +9548,8 @@ class Projects extends Service {
|
|
|
9101
9548
|
*
|
|
9102
9549
|
*
|
|
9103
9550
|
* @param {string} projectId
|
|
9104
|
-
* @param {
|
|
9105
|
-
* @param {
|
|
9551
|
+
* @param {EmailTemplateType} type
|
|
9552
|
+
* @param {EmailTemplateLocale} locale
|
|
9106
9553
|
* @throws {AppwriteException}
|
|
9107
9554
|
* @returns {Promise}
|
|
9108
9555
|
*/
|
|
@@ -9130,8 +9577,8 @@ class Projects extends Service {
|
|
|
9130
9577
|
*
|
|
9131
9578
|
*
|
|
9132
9579
|
* @param {string} projectId
|
|
9133
|
-
* @param {
|
|
9134
|
-
* @param {
|
|
9580
|
+
* @param {EmailTemplateType} type
|
|
9581
|
+
* @param {EmailTemplateLocale} locale
|
|
9135
9582
|
* @param {string} subject
|
|
9136
9583
|
* @param {string} message
|
|
9137
9584
|
* @param {string} senderName
|
|
@@ -9185,8 +9632,8 @@ class Projects extends Service {
|
|
|
9185
9632
|
*
|
|
9186
9633
|
*
|
|
9187
9634
|
* @param {string} projectId
|
|
9188
|
-
* @param {
|
|
9189
|
-
* @param {
|
|
9635
|
+
* @param {EmailTemplateType} type
|
|
9636
|
+
* @param {EmailTemplateLocale} locale
|
|
9190
9637
|
* @throws {AppwriteException}
|
|
9191
9638
|
* @returns {Promise}
|
|
9192
9639
|
*/
|
|
@@ -9214,8 +9661,8 @@ class Projects extends Service {
|
|
|
9214
9661
|
*
|
|
9215
9662
|
*
|
|
9216
9663
|
* @param {string} projectId
|
|
9217
|
-
* @param {
|
|
9218
|
-
* @param {
|
|
9664
|
+
* @param {SmsTemplateType} type
|
|
9665
|
+
* @param {SmsTemplateLocale} locale
|
|
9219
9666
|
* @throws {AppwriteException}
|
|
9220
9667
|
* @returns {Promise}
|
|
9221
9668
|
*/
|
|
@@ -9243,8 +9690,8 @@ class Projects extends Service {
|
|
|
9243
9690
|
*
|
|
9244
9691
|
*
|
|
9245
9692
|
* @param {string} projectId
|
|
9246
|
-
* @param {
|
|
9247
|
-
* @param {
|
|
9693
|
+
* @param {SmsTemplateType} type
|
|
9694
|
+
* @param {SmsTemplateLocale} locale
|
|
9248
9695
|
* @param {string} message
|
|
9249
9696
|
* @throws {AppwriteException}
|
|
9250
9697
|
* @returns {Promise}
|
|
@@ -9279,8 +9726,8 @@ class Projects extends Service {
|
|
|
9279
9726
|
*
|
|
9280
9727
|
*
|
|
9281
9728
|
* @param {string} projectId
|
|
9282
|
-
* @param {
|
|
9283
|
-
* @param {
|
|
9729
|
+
* @param {SmsTemplateType} type
|
|
9730
|
+
* @param {SmsTemplateLocale} locale
|
|
9284
9731
|
* @throws {AppwriteException}
|
|
9285
9732
|
* @returns {Promise}
|
|
9286
9733
|
*/
|
|
@@ -10210,7 +10657,7 @@ class Storage extends Service {
|
|
|
10210
10657
|
return uri;
|
|
10211
10658
|
}
|
|
10212
10659
|
/**
|
|
10213
|
-
* Get usage stats
|
|
10660
|
+
* Get storage usage stats
|
|
10214
10661
|
*
|
|
10215
10662
|
*
|
|
10216
10663
|
* @param {StorageUsageRange} range
|
|
@@ -10231,7 +10678,7 @@ class Storage extends Service {
|
|
|
10231
10678
|
});
|
|
10232
10679
|
}
|
|
10233
10680
|
/**
|
|
10234
|
-
* Get usage stats
|
|
10681
|
+
* Get bucket usage stats
|
|
10235
10682
|
*
|
|
10236
10683
|
*
|
|
10237
10684
|
* @param {string} bucketId
|
|
@@ -11184,7 +11631,7 @@ class Users extends Service {
|
|
|
11184
11631
|
* @param {string} userId
|
|
11185
11632
|
* @param {string} email
|
|
11186
11633
|
* @param {string} password
|
|
11187
|
-
* @param {
|
|
11634
|
+
* @param {PasswordHash} passwordVersion
|
|
11188
11635
|
* @param {string} name
|
|
11189
11636
|
* @throws {AppwriteException}
|
|
11190
11637
|
* @returns {Promise}
|
|
@@ -11224,7 +11671,7 @@ class Users extends Service {
|
|
|
11224
11671
|
});
|
|
11225
11672
|
}
|
|
11226
11673
|
/**
|
|
11227
|
-
* Get usage stats
|
|
11674
|
+
* Get users usage stats
|
|
11228
11675
|
*
|
|
11229
11676
|
*
|
|
11230
11677
|
* @param {UserUsageRange} range
|
|
@@ -11407,6 +11854,7 @@ class Users extends Service {
|
|
|
11407
11854
|
/**
|
|
11408
11855
|
* Update MFA
|
|
11409
11856
|
*
|
|
11857
|
+
* Enable or disable MFA on a user account.
|
|
11410
11858
|
*
|
|
11411
11859
|
* @param {string} userId
|
|
11412
11860
|
* @param {boolean} mfa
|
|
@@ -11435,31 +11883,122 @@ class Users extends Service {
|
|
|
11435
11883
|
/**
|
|
11436
11884
|
* Delete Authenticator
|
|
11437
11885
|
*
|
|
11886
|
+
* Delete an authenticator app.
|
|
11438
11887
|
*
|
|
11439
11888
|
* @param {string} userId
|
|
11440
|
-
* @param {
|
|
11441
|
-
* @param {string} otp
|
|
11889
|
+
* @param {AuthenticatorType} type
|
|
11442
11890
|
* @throws {AppwriteException}
|
|
11443
11891
|
* @returns {Promise}
|
|
11444
11892
|
*/
|
|
11445
|
-
|
|
11893
|
+
deleteMfaAuthenticator(userId, type) {
|
|
11446
11894
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11447
11895
|
if (typeof userId === 'undefined') {
|
|
11448
11896
|
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11449
11897
|
}
|
|
11450
|
-
if (typeof
|
|
11451
|
-
throw new AppwriteException('Missing required parameter: "
|
|
11898
|
+
if (typeof type === 'undefined') {
|
|
11899
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
11452
11900
|
}
|
|
11453
|
-
|
|
11454
|
-
|
|
11901
|
+
const apiPath = '/users/{userId}/mfa/authenticators/{type}'.replace('{userId}', userId).replace('{type}', type);
|
|
11902
|
+
const payload = {};
|
|
11903
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11904
|
+
return yield this.client.call('delete', uri, {
|
|
11905
|
+
'content-type': 'application/json',
|
|
11906
|
+
}, payload);
|
|
11907
|
+
});
|
|
11908
|
+
}
|
|
11909
|
+
/**
|
|
11910
|
+
* List Factors
|
|
11911
|
+
*
|
|
11912
|
+
* List the factors available on the account to be used as a MFA challange.
|
|
11913
|
+
*
|
|
11914
|
+
* @param {string} userId
|
|
11915
|
+
* @throws {AppwriteException}
|
|
11916
|
+
* @returns {Promise}
|
|
11917
|
+
*/
|
|
11918
|
+
listMfaFactors(userId) {
|
|
11919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11920
|
+
if (typeof userId === 'undefined') {
|
|
11921
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11455
11922
|
}
|
|
11456
|
-
const apiPath = '/users/{userId}/mfa/
|
|
11923
|
+
const apiPath = '/users/{userId}/mfa/factors'.replace('{userId}', userId);
|
|
11457
11924
|
const payload = {};
|
|
11458
|
-
|
|
11459
|
-
|
|
11925
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11926
|
+
return yield this.client.call('get', uri, {
|
|
11927
|
+
'content-type': 'application/json',
|
|
11928
|
+
}, payload);
|
|
11929
|
+
});
|
|
11930
|
+
}
|
|
11931
|
+
/**
|
|
11932
|
+
* Get MFA Recovery Codes
|
|
11933
|
+
*
|
|
11934
|
+
* Get recovery codes that can be used as backup for MFA flow by User ID.
|
|
11935
|
+
* Before getting codes, they must be generated using
|
|
11936
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
11937
|
+
* method.
|
|
11938
|
+
*
|
|
11939
|
+
* @param {string} userId
|
|
11940
|
+
* @throws {AppwriteException}
|
|
11941
|
+
* @returns {Promise}
|
|
11942
|
+
*/
|
|
11943
|
+
getMfaRecoveryCodes(userId) {
|
|
11944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11945
|
+
if (typeof userId === 'undefined') {
|
|
11946
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11460
11947
|
}
|
|
11948
|
+
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
|
11949
|
+
const payload = {};
|
|
11461
11950
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11462
|
-
return yield this.client.call('
|
|
11951
|
+
return yield this.client.call('get', uri, {
|
|
11952
|
+
'content-type': 'application/json',
|
|
11953
|
+
}, payload);
|
|
11954
|
+
});
|
|
11955
|
+
}
|
|
11956
|
+
/**
|
|
11957
|
+
* Regenerate MFA Recovery Codes
|
|
11958
|
+
*
|
|
11959
|
+
* Regenerate recovery codes that can be used as backup for MFA flow by User
|
|
11960
|
+
* ID. Before regenerating codes, they must be first generated using
|
|
11961
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
11962
|
+
* method.
|
|
11963
|
+
*
|
|
11964
|
+
* @param {string} userId
|
|
11965
|
+
* @throws {AppwriteException}
|
|
11966
|
+
* @returns {Promise}
|
|
11967
|
+
*/
|
|
11968
|
+
updateMfaRecoveryCodes(userId) {
|
|
11969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11970
|
+
if (typeof userId === 'undefined') {
|
|
11971
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11972
|
+
}
|
|
11973
|
+
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
|
11974
|
+
const payload = {};
|
|
11975
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11976
|
+
return yield this.client.call('put', uri, {
|
|
11977
|
+
'content-type': 'application/json',
|
|
11978
|
+
}, payload);
|
|
11979
|
+
});
|
|
11980
|
+
}
|
|
11981
|
+
/**
|
|
11982
|
+
* Create MFA Recovery Codes
|
|
11983
|
+
*
|
|
11984
|
+
* Generate recovery codes used as backup for MFA flow for User ID. Recovery
|
|
11985
|
+
* codes can be used as a MFA verification type in
|
|
11986
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
11987
|
+
* method by client SDK.
|
|
11988
|
+
*
|
|
11989
|
+
* @param {string} userId
|
|
11990
|
+
* @throws {AppwriteException}
|
|
11991
|
+
* @returns {Promise}
|
|
11992
|
+
*/
|
|
11993
|
+
createMfaRecoveryCodes(userId) {
|
|
11994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11995
|
+
if (typeof userId === 'undefined') {
|
|
11996
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11997
|
+
}
|
|
11998
|
+
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
|
11999
|
+
const payload = {};
|
|
12000
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
12001
|
+
return yield this.client.call('patch', uri, {
|
|
11463
12002
|
'content-type': 'application/json',
|
|
11464
12003
|
}, payload);
|
|
11465
12004
|
});
|
|
@@ -11604,27 +12143,6 @@ class Users extends Service {
|
|
|
11604
12143
|
}, payload);
|
|
11605
12144
|
});
|
|
11606
12145
|
}
|
|
11607
|
-
/**
|
|
11608
|
-
* List Providers
|
|
11609
|
-
*
|
|
11610
|
-
*
|
|
11611
|
-
* @param {string} userId
|
|
11612
|
-
* @throws {AppwriteException}
|
|
11613
|
-
* @returns {Promise}
|
|
11614
|
-
*/
|
|
11615
|
-
listProviders(userId) {
|
|
11616
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
11617
|
-
if (typeof userId === 'undefined') {
|
|
11618
|
-
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11619
|
-
}
|
|
11620
|
-
const apiPath = '/users/{userId}/providers'.replace('{userId}', userId);
|
|
11621
|
-
const payload = {};
|
|
11622
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11623
|
-
return yield this.client.call('get', uri, {
|
|
11624
|
-
'content-type': 'application/json',
|
|
11625
|
-
}, payload);
|
|
11626
|
-
});
|
|
11627
|
-
}
|
|
11628
12146
|
/**
|
|
11629
12147
|
* List user sessions
|
|
11630
12148
|
*
|
|
@@ -11755,6 +12273,7 @@ class Users extends Service {
|
|
|
11755
12273
|
/**
|
|
11756
12274
|
* List User Targets
|
|
11757
12275
|
*
|
|
12276
|
+
* List the messaging targets that are associated with a user.
|
|
11758
12277
|
*
|
|
11759
12278
|
* @param {string} userId
|
|
11760
12279
|
* @param {string[]} queries
|
|
@@ -11780,6 +12299,7 @@ class Users extends Service {
|
|
|
11780
12299
|
/**
|
|
11781
12300
|
* Create User Target
|
|
11782
12301
|
*
|
|
12302
|
+
* Create a messaging target.
|
|
11783
12303
|
*
|
|
11784
12304
|
* @param {string} userId
|
|
11785
12305
|
* @param {string} targetId
|
|
@@ -11830,6 +12350,7 @@ class Users extends Service {
|
|
|
11830
12350
|
/**
|
|
11831
12351
|
* Get User Target
|
|
11832
12352
|
*
|
|
12353
|
+
* Get a user's push notification target by ID.
|
|
11833
12354
|
*
|
|
11834
12355
|
* @param {string} userId
|
|
11835
12356
|
* @param {string} targetId
|
|
@@ -11855,6 +12376,7 @@ class Users extends Service {
|
|
|
11855
12376
|
/**
|
|
11856
12377
|
* Update User target
|
|
11857
12378
|
*
|
|
12379
|
+
* Update a messaging target.
|
|
11858
12380
|
*
|
|
11859
12381
|
* @param {string} userId
|
|
11860
12382
|
* @param {string} targetId
|
|
@@ -11892,6 +12414,7 @@ class Users extends Service {
|
|
|
11892
12414
|
/**
|
|
11893
12415
|
* Delete user target
|
|
11894
12416
|
*
|
|
12417
|
+
* Delete a messaging target.
|
|
11895
12418
|
*
|
|
11896
12419
|
* @param {string} userId
|
|
11897
12420
|
* @param {string} targetId
|
|
@@ -12364,24 +12887,43 @@ class Role {
|
|
|
12364
12887
|
}
|
|
12365
12888
|
}
|
|
12366
12889
|
|
|
12890
|
+
var _a, _ID_hexTimestamp;
|
|
12367
12891
|
class ID {
|
|
12368
12892
|
static custom(id) {
|
|
12369
12893
|
return id;
|
|
12370
12894
|
}
|
|
12371
|
-
static unique() {
|
|
12372
|
-
|
|
12895
|
+
static unique(padding = 7) {
|
|
12896
|
+
// Generate a unique ID with padding to have a longer ID
|
|
12897
|
+
const baseId = __classPrivateFieldGet(ID, _a, "m", _ID_hexTimestamp).call(ID);
|
|
12898
|
+
let randomPadding = '';
|
|
12899
|
+
for (let i = 0; i < padding; i++) {
|
|
12900
|
+
const randomHexDigit = Math.floor(Math.random() * 16).toString(16);
|
|
12901
|
+
randomPadding += randomHexDigit;
|
|
12902
|
+
}
|
|
12903
|
+
return baseId + randomPadding;
|
|
12373
12904
|
}
|
|
12374
12905
|
}
|
|
12906
|
+
_a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
|
|
12907
|
+
const now = new Date();
|
|
12908
|
+
const sec = Math.floor(now.getTime() / 1000);
|
|
12909
|
+
const msec = now.getMilliseconds();
|
|
12910
|
+
// Convert to hexadecimal
|
|
12911
|
+
const hexTimestamp = sec.toString(16) + msec.toString(16).padStart(5, '0');
|
|
12912
|
+
return hexTimestamp;
|
|
12913
|
+
};
|
|
12375
12914
|
|
|
12376
|
-
var
|
|
12377
|
-
(function (
|
|
12378
|
-
|
|
12379
|
-
})(
|
|
12915
|
+
var AuthenticatorType;
|
|
12916
|
+
(function (AuthenticatorType) {
|
|
12917
|
+
AuthenticatorType["Totp"] = "totp";
|
|
12918
|
+
})(AuthenticatorType || (AuthenticatorType = {}));
|
|
12380
12919
|
|
|
12381
|
-
var
|
|
12382
|
-
(function (
|
|
12383
|
-
|
|
12384
|
-
|
|
12920
|
+
var AuthenticationFactor;
|
|
12921
|
+
(function (AuthenticationFactor) {
|
|
12922
|
+
AuthenticationFactor["Email"] = "email";
|
|
12923
|
+
AuthenticationFactor["Phone"] = "phone";
|
|
12924
|
+
AuthenticationFactor["Totp"] = "totp";
|
|
12925
|
+
AuthenticationFactor["Recoverycode"] = "recoverycode";
|
|
12926
|
+
})(AuthenticationFactor || (AuthenticationFactor = {}));
|
|
12385
12927
|
|
|
12386
12928
|
var OAuthProvider;
|
|
12387
12929
|
(function (OAuthProvider) {
|
|
@@ -12499,7 +13041,7 @@ var Flag;
|
|
|
12499
13041
|
Flag["Switzerland"] = "ch";
|
|
12500
13042
|
Flag["Chile"] = "cl";
|
|
12501
13043
|
Flag["China"] = "cn";
|
|
12502
|
-
Flag["
|
|
13044
|
+
Flag["CoteDIvoire"] = "ci";
|
|
12503
13045
|
Flag["Cameroon"] = "cm";
|
|
12504
13046
|
Flag["DemocraticRepublicOfTheCongo"] = "cd";
|
|
12505
13047
|
Flag["RepublicOfTheCongo"] = "cg";
|
|
@@ -12689,15 +13231,54 @@ var IndexType;
|
|
|
12689
13231
|
IndexType["Key"] = "key";
|
|
12690
13232
|
IndexType["Fulltext"] = "fulltext";
|
|
12691
13233
|
IndexType["Unique"] = "unique";
|
|
12692
|
-
IndexType["Spatial"] = "spatial";
|
|
12693
13234
|
})(IndexType || (IndexType = {}));
|
|
12694
13235
|
|
|
12695
13236
|
var Runtime;
|
|
12696
13237
|
(function (Runtime) {
|
|
13238
|
+
Runtime["Node145"] = "node-14.5";
|
|
13239
|
+
Runtime["Node160"] = "node-16.0";
|
|
12697
13240
|
Runtime["Node180"] = "node-18.0";
|
|
13241
|
+
Runtime["Node190"] = "node-19.0";
|
|
13242
|
+
Runtime["Node200"] = "node-20.0";
|
|
13243
|
+
Runtime["Node210"] = "node-21.0";
|
|
12698
13244
|
Runtime["Php80"] = "php-8.0";
|
|
13245
|
+
Runtime["Php81"] = "php-8.1";
|
|
13246
|
+
Runtime["Php82"] = "php-8.2";
|
|
13247
|
+
Runtime["Php83"] = "php-8.3";
|
|
13248
|
+
Runtime["Ruby30"] = "ruby-3.0";
|
|
12699
13249
|
Runtime["Ruby31"] = "ruby-3.1";
|
|
13250
|
+
Runtime["Ruby32"] = "ruby-3.2";
|
|
13251
|
+
Runtime["Ruby33"] = "ruby-3.3";
|
|
13252
|
+
Runtime["Python38"] = "python-3.8";
|
|
12700
13253
|
Runtime["Python39"] = "python-3.9";
|
|
13254
|
+
Runtime["Python310"] = "python-3.10";
|
|
13255
|
+
Runtime["Python311"] = "python-3.11";
|
|
13256
|
+
Runtime["Python312"] = "python-3.12";
|
|
13257
|
+
Runtime["Deno140"] = "deno-1.40";
|
|
13258
|
+
Runtime["Dart215"] = "dart-2.15";
|
|
13259
|
+
Runtime["Dart216"] = "dart-2.16";
|
|
13260
|
+
Runtime["Dart217"] = "dart-2.17";
|
|
13261
|
+
Runtime["Dart218"] = "dart-2.18";
|
|
13262
|
+
Runtime["Dart30"] = "dart-3.0";
|
|
13263
|
+
Runtime["Dart31"] = "dart-3.1";
|
|
13264
|
+
Runtime["Dart33"] = "dart-3.3";
|
|
13265
|
+
Runtime["Dotnet31"] = "dotnet-3.1";
|
|
13266
|
+
Runtime["Dotnet60"] = "dotnet-6.0";
|
|
13267
|
+
Runtime["Dotnet70"] = "dotnet-7.0";
|
|
13268
|
+
Runtime["Java80"] = "java-8.0";
|
|
13269
|
+
Runtime["Java110"] = "java-11.0";
|
|
13270
|
+
Runtime["Java170"] = "java-17.0";
|
|
13271
|
+
Runtime["Java180"] = "java-18.0";
|
|
13272
|
+
Runtime["Java210"] = "java-21.0";
|
|
13273
|
+
Runtime["Swift55"] = "swift-5.5";
|
|
13274
|
+
Runtime["Swift58"] = "swift-5.8";
|
|
13275
|
+
Runtime["Swift59"] = "swift-5.9";
|
|
13276
|
+
Runtime["Kotlin16"] = "kotlin-1.6";
|
|
13277
|
+
Runtime["Kotlin18"] = "kotlin-1.8";
|
|
13278
|
+
Runtime["Kotlin19"] = "kotlin-1.9";
|
|
13279
|
+
Runtime["Cpp17"] = "cpp-17";
|
|
13280
|
+
Runtime["Cpp20"] = "cpp-20";
|
|
13281
|
+
Runtime["Bun10"] = "bun-1.0";
|
|
12701
13282
|
})(Runtime || (Runtime = {}));
|
|
12702
13283
|
|
|
12703
13284
|
var FunctionUsageRange;
|
|
@@ -12717,19 +13298,29 @@ var ExecutionMethod;
|
|
|
12717
13298
|
ExecutionMethod["OPTIONS"] = "OPTIONS";
|
|
12718
13299
|
})(ExecutionMethod || (ExecutionMethod = {}));
|
|
12719
13300
|
|
|
12720
|
-
var
|
|
12721
|
-
(function (
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
13301
|
+
var Name;
|
|
13302
|
+
(function (Name) {
|
|
13303
|
+
Name["V1database"] = "v1-database";
|
|
13304
|
+
Name["V1deletes"] = "v1-deletes";
|
|
13305
|
+
Name["V1audits"] = "v1-audits";
|
|
13306
|
+
Name["V1mails"] = "v1-mails";
|
|
13307
|
+
Name["V1functions"] = "v1-functions";
|
|
13308
|
+
Name["V1usage"] = "v1-usage";
|
|
13309
|
+
Name["V1usagedump"] = "v1-usage-dump";
|
|
13310
|
+
Name["Webhooksv1"] = "webhooksv1";
|
|
13311
|
+
Name["V1certificates"] = "v1-certificates";
|
|
13312
|
+
Name["V1builds"] = "v1-builds";
|
|
13313
|
+
Name["V1messaging"] = "v1-messaging";
|
|
13314
|
+
Name["V1migrations"] = "v1-migrations";
|
|
13315
|
+
Name["Hamsterv1"] = "hamsterv1";
|
|
13316
|
+
})(Name || (Name = {}));
|
|
12726
13317
|
|
|
12727
|
-
var
|
|
12728
|
-
(function (
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
})(
|
|
13318
|
+
var SmtpEncryption;
|
|
13319
|
+
(function (SmtpEncryption) {
|
|
13320
|
+
SmtpEncryption["None"] = "none";
|
|
13321
|
+
SmtpEncryption["Ssl"] = "ssl";
|
|
13322
|
+
SmtpEncryption["Tls"] = "tls";
|
|
13323
|
+
})(SmtpEncryption || (SmtpEncryption = {}));
|
|
12733
13324
|
|
|
12734
13325
|
var ProjectUsageRange;
|
|
12735
13326
|
(function (ProjectUsageRange) {
|
|
@@ -12740,8 +13331,16 @@ var ProjectUsageRange;
|
|
|
12740
13331
|
var Region;
|
|
12741
13332
|
(function (Region) {
|
|
12742
13333
|
Region["Default"] = "default";
|
|
13334
|
+
Region["Fra"] = "fra";
|
|
12743
13335
|
})(Region || (Region = {}));
|
|
12744
13336
|
|
|
13337
|
+
var Api;
|
|
13338
|
+
(function (Api) {
|
|
13339
|
+
Api["Rest"] = "rest";
|
|
13340
|
+
Api["Graphql"] = "graphql";
|
|
13341
|
+
Api["Realtime"] = "realtime";
|
|
13342
|
+
})(Api || (Api = {}));
|
|
13343
|
+
|
|
12745
13344
|
var AuthMethod;
|
|
12746
13345
|
(function (AuthMethod) {
|
|
12747
13346
|
AuthMethod["Emailpassword"] = "email-password";
|
|
@@ -12770,167 +13369,312 @@ var PlatformType;
|
|
|
12770
13369
|
PlatformType["Unity"] = "unity";
|
|
12771
13370
|
})(PlatformType || (PlatformType = {}));
|
|
12772
13371
|
|
|
12773
|
-
var
|
|
12774
|
-
(function (
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
})(
|
|
13372
|
+
var ApiService;
|
|
13373
|
+
(function (ApiService) {
|
|
13374
|
+
ApiService["Account"] = "account";
|
|
13375
|
+
ApiService["Avatars"] = "avatars";
|
|
13376
|
+
ApiService["Databases"] = "databases";
|
|
13377
|
+
ApiService["Locale"] = "locale";
|
|
13378
|
+
ApiService["Health"] = "health";
|
|
13379
|
+
ApiService["Storage"] = "storage";
|
|
13380
|
+
ApiService["Teams"] = "teams";
|
|
13381
|
+
ApiService["Users"] = "users";
|
|
13382
|
+
ApiService["Functions"] = "functions";
|
|
13383
|
+
ApiService["Graphql"] = "graphql";
|
|
13384
|
+
ApiService["Messaging"] = "messaging";
|
|
13385
|
+
})(ApiService || (ApiService = {}));
|
|
12787
13386
|
|
|
12788
13387
|
var SMTPSecure;
|
|
12789
13388
|
(function (SMTPSecure) {
|
|
12790
13389
|
SMTPSecure["Tls"] = "tls";
|
|
12791
13390
|
})(SMTPSecure || (SMTPSecure = {}));
|
|
12792
13391
|
|
|
12793
|
-
var
|
|
12794
|
-
(function (
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
13392
|
+
var EmailTemplateType;
|
|
13393
|
+
(function (EmailTemplateType) {
|
|
13394
|
+
EmailTemplateType["Verification"] = "verification";
|
|
13395
|
+
EmailTemplateType["Magicsession"] = "magicsession";
|
|
13396
|
+
EmailTemplateType["Recovery"] = "recovery";
|
|
13397
|
+
EmailTemplateType["Invitation"] = "invitation";
|
|
13398
|
+
EmailTemplateType["Mfachallenge"] = "mfachallenge";
|
|
13399
|
+
})(EmailTemplateType || (EmailTemplateType = {}));
|
|
13400
|
+
|
|
13401
|
+
var EmailTemplateLocale;
|
|
13402
|
+
(function (EmailTemplateLocale) {
|
|
13403
|
+
EmailTemplateLocale["Af"] = "af";
|
|
13404
|
+
EmailTemplateLocale["Arae"] = "ar-ae";
|
|
13405
|
+
EmailTemplateLocale["Arbh"] = "ar-bh";
|
|
13406
|
+
EmailTemplateLocale["Ardz"] = "ar-dz";
|
|
13407
|
+
EmailTemplateLocale["Areg"] = "ar-eg";
|
|
13408
|
+
EmailTemplateLocale["Ariq"] = "ar-iq";
|
|
13409
|
+
EmailTemplateLocale["Arjo"] = "ar-jo";
|
|
13410
|
+
EmailTemplateLocale["Arkw"] = "ar-kw";
|
|
13411
|
+
EmailTemplateLocale["Arlb"] = "ar-lb";
|
|
13412
|
+
EmailTemplateLocale["Arly"] = "ar-ly";
|
|
13413
|
+
EmailTemplateLocale["Arma"] = "ar-ma";
|
|
13414
|
+
EmailTemplateLocale["Arom"] = "ar-om";
|
|
13415
|
+
EmailTemplateLocale["Arqa"] = "ar-qa";
|
|
13416
|
+
EmailTemplateLocale["Arsa"] = "ar-sa";
|
|
13417
|
+
EmailTemplateLocale["Arsy"] = "ar-sy";
|
|
13418
|
+
EmailTemplateLocale["Artn"] = "ar-tn";
|
|
13419
|
+
EmailTemplateLocale["Arye"] = "ar-ye";
|
|
13420
|
+
EmailTemplateLocale["As"] = "as";
|
|
13421
|
+
EmailTemplateLocale["Az"] = "az";
|
|
13422
|
+
EmailTemplateLocale["Be"] = "be";
|
|
13423
|
+
EmailTemplateLocale["Bg"] = "bg";
|
|
13424
|
+
EmailTemplateLocale["Bh"] = "bh";
|
|
13425
|
+
EmailTemplateLocale["Bn"] = "bn";
|
|
13426
|
+
EmailTemplateLocale["Bs"] = "bs";
|
|
13427
|
+
EmailTemplateLocale["Ca"] = "ca";
|
|
13428
|
+
EmailTemplateLocale["Cs"] = "cs";
|
|
13429
|
+
EmailTemplateLocale["Cy"] = "cy";
|
|
13430
|
+
EmailTemplateLocale["Da"] = "da";
|
|
13431
|
+
EmailTemplateLocale["De"] = "de";
|
|
13432
|
+
EmailTemplateLocale["Deat"] = "de-at";
|
|
13433
|
+
EmailTemplateLocale["Dech"] = "de-ch";
|
|
13434
|
+
EmailTemplateLocale["Deli"] = "de-li";
|
|
13435
|
+
EmailTemplateLocale["Delu"] = "de-lu";
|
|
13436
|
+
EmailTemplateLocale["El"] = "el";
|
|
13437
|
+
EmailTemplateLocale["En"] = "en";
|
|
13438
|
+
EmailTemplateLocale["Enau"] = "en-au";
|
|
13439
|
+
EmailTemplateLocale["Enbz"] = "en-bz";
|
|
13440
|
+
EmailTemplateLocale["Enca"] = "en-ca";
|
|
13441
|
+
EmailTemplateLocale["Engb"] = "en-gb";
|
|
13442
|
+
EmailTemplateLocale["Enie"] = "en-ie";
|
|
13443
|
+
EmailTemplateLocale["Enjm"] = "en-jm";
|
|
13444
|
+
EmailTemplateLocale["Ennz"] = "en-nz";
|
|
13445
|
+
EmailTemplateLocale["Entt"] = "en-tt";
|
|
13446
|
+
EmailTemplateLocale["Enus"] = "en-us";
|
|
13447
|
+
EmailTemplateLocale["Enza"] = "en-za";
|
|
13448
|
+
EmailTemplateLocale["Eo"] = "eo";
|
|
13449
|
+
EmailTemplateLocale["Es"] = "es";
|
|
13450
|
+
EmailTemplateLocale["Esar"] = "es-ar";
|
|
13451
|
+
EmailTemplateLocale["Esbo"] = "es-bo";
|
|
13452
|
+
EmailTemplateLocale["Escl"] = "es-cl";
|
|
13453
|
+
EmailTemplateLocale["Esco"] = "es-co";
|
|
13454
|
+
EmailTemplateLocale["Escr"] = "es-cr";
|
|
13455
|
+
EmailTemplateLocale["Esdo"] = "es-do";
|
|
13456
|
+
EmailTemplateLocale["Esec"] = "es-ec";
|
|
13457
|
+
EmailTemplateLocale["Esgt"] = "es-gt";
|
|
13458
|
+
EmailTemplateLocale["Eshn"] = "es-hn";
|
|
13459
|
+
EmailTemplateLocale["Esmx"] = "es-mx";
|
|
13460
|
+
EmailTemplateLocale["Esni"] = "es-ni";
|
|
13461
|
+
EmailTemplateLocale["Espa"] = "es-pa";
|
|
13462
|
+
EmailTemplateLocale["Espe"] = "es-pe";
|
|
13463
|
+
EmailTemplateLocale["Espr"] = "es-pr";
|
|
13464
|
+
EmailTemplateLocale["Espy"] = "es-py";
|
|
13465
|
+
EmailTemplateLocale["Essv"] = "es-sv";
|
|
13466
|
+
EmailTemplateLocale["Esuy"] = "es-uy";
|
|
13467
|
+
EmailTemplateLocale["Esve"] = "es-ve";
|
|
13468
|
+
EmailTemplateLocale["Et"] = "et";
|
|
13469
|
+
EmailTemplateLocale["Eu"] = "eu";
|
|
13470
|
+
EmailTemplateLocale["Fa"] = "fa";
|
|
13471
|
+
EmailTemplateLocale["Fi"] = "fi";
|
|
13472
|
+
EmailTemplateLocale["Fo"] = "fo";
|
|
13473
|
+
EmailTemplateLocale["Fr"] = "fr";
|
|
13474
|
+
EmailTemplateLocale["Frbe"] = "fr-be";
|
|
13475
|
+
EmailTemplateLocale["Frca"] = "fr-ca";
|
|
13476
|
+
EmailTemplateLocale["Frch"] = "fr-ch";
|
|
13477
|
+
EmailTemplateLocale["Frlu"] = "fr-lu";
|
|
13478
|
+
EmailTemplateLocale["Ga"] = "ga";
|
|
13479
|
+
EmailTemplateLocale["Gd"] = "gd";
|
|
13480
|
+
EmailTemplateLocale["He"] = "he";
|
|
13481
|
+
EmailTemplateLocale["Hi"] = "hi";
|
|
13482
|
+
EmailTemplateLocale["Hr"] = "hr";
|
|
13483
|
+
EmailTemplateLocale["Hu"] = "hu";
|
|
13484
|
+
EmailTemplateLocale["Id"] = "id";
|
|
13485
|
+
EmailTemplateLocale["Is"] = "is";
|
|
13486
|
+
EmailTemplateLocale["It"] = "it";
|
|
13487
|
+
EmailTemplateLocale["Itch"] = "it-ch";
|
|
13488
|
+
EmailTemplateLocale["Ja"] = "ja";
|
|
13489
|
+
EmailTemplateLocale["Ji"] = "ji";
|
|
13490
|
+
EmailTemplateLocale["Ko"] = "ko";
|
|
13491
|
+
EmailTemplateLocale["Ku"] = "ku";
|
|
13492
|
+
EmailTemplateLocale["Lt"] = "lt";
|
|
13493
|
+
EmailTemplateLocale["Lv"] = "lv";
|
|
13494
|
+
EmailTemplateLocale["Mk"] = "mk";
|
|
13495
|
+
EmailTemplateLocale["Ml"] = "ml";
|
|
13496
|
+
EmailTemplateLocale["Ms"] = "ms";
|
|
13497
|
+
EmailTemplateLocale["Mt"] = "mt";
|
|
13498
|
+
EmailTemplateLocale["Nb"] = "nb";
|
|
13499
|
+
EmailTemplateLocale["Ne"] = "ne";
|
|
13500
|
+
EmailTemplateLocale["Nl"] = "nl";
|
|
13501
|
+
EmailTemplateLocale["Nlbe"] = "nl-be";
|
|
13502
|
+
EmailTemplateLocale["Nn"] = "nn";
|
|
13503
|
+
EmailTemplateLocale["No"] = "no";
|
|
13504
|
+
EmailTemplateLocale["Pa"] = "pa";
|
|
13505
|
+
EmailTemplateLocale["Pl"] = "pl";
|
|
13506
|
+
EmailTemplateLocale["Pt"] = "pt";
|
|
13507
|
+
EmailTemplateLocale["Ptbr"] = "pt-br";
|
|
13508
|
+
EmailTemplateLocale["Rm"] = "rm";
|
|
13509
|
+
EmailTemplateLocale["Ro"] = "ro";
|
|
13510
|
+
EmailTemplateLocale["Romd"] = "ro-md";
|
|
13511
|
+
EmailTemplateLocale["Ru"] = "ru";
|
|
13512
|
+
EmailTemplateLocale["Rumd"] = "ru-md";
|
|
13513
|
+
EmailTemplateLocale["Sb"] = "sb";
|
|
13514
|
+
EmailTemplateLocale["Sk"] = "sk";
|
|
13515
|
+
EmailTemplateLocale["Sl"] = "sl";
|
|
13516
|
+
EmailTemplateLocale["Sq"] = "sq";
|
|
13517
|
+
EmailTemplateLocale["Sr"] = "sr";
|
|
13518
|
+
EmailTemplateLocale["Sv"] = "sv";
|
|
13519
|
+
EmailTemplateLocale["Svfi"] = "sv-fi";
|
|
13520
|
+
EmailTemplateLocale["Th"] = "th";
|
|
13521
|
+
EmailTemplateLocale["Tn"] = "tn";
|
|
13522
|
+
EmailTemplateLocale["Tr"] = "tr";
|
|
13523
|
+
EmailTemplateLocale["Ts"] = "ts";
|
|
13524
|
+
EmailTemplateLocale["Ua"] = "ua";
|
|
13525
|
+
EmailTemplateLocale["Ur"] = "ur";
|
|
13526
|
+
EmailTemplateLocale["Ve"] = "ve";
|
|
13527
|
+
EmailTemplateLocale["Vi"] = "vi";
|
|
13528
|
+
EmailTemplateLocale["Xh"] = "xh";
|
|
13529
|
+
EmailTemplateLocale["Zhcn"] = "zh-cn";
|
|
13530
|
+
EmailTemplateLocale["Zhhk"] = "zh-hk";
|
|
13531
|
+
EmailTemplateLocale["Zhsg"] = "zh-sg";
|
|
13532
|
+
EmailTemplateLocale["Zhtw"] = "zh-tw";
|
|
13533
|
+
EmailTemplateLocale["Zu"] = "zu";
|
|
13534
|
+
})(EmailTemplateLocale || (EmailTemplateLocale = {}));
|
|
13535
|
+
|
|
13536
|
+
var SmsTemplateType;
|
|
13537
|
+
(function (SmsTemplateType) {
|
|
13538
|
+
SmsTemplateType["Verification"] = "verification";
|
|
13539
|
+
SmsTemplateType["Login"] = "login";
|
|
13540
|
+
SmsTemplateType["Invitation"] = "invitation";
|
|
13541
|
+
SmsTemplateType["Mfachallenge"] = "mfachallenge";
|
|
13542
|
+
})(SmsTemplateType || (SmsTemplateType = {}));
|
|
12799
13543
|
|
|
12800
|
-
var
|
|
12801
|
-
(function (
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
12874
|
-
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
|
|
12880
|
-
|
|
12881
|
-
|
|
12882
|
-
|
|
12883
|
-
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
|
|
12890
|
-
|
|
12891
|
-
|
|
12892
|
-
|
|
12893
|
-
|
|
12894
|
-
|
|
12895
|
-
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
12908
|
-
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
|
|
12923
|
-
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
|
|
12931
|
-
|
|
12932
|
-
|
|
12933
|
-
})(
|
|
13544
|
+
var SmsTemplateLocale;
|
|
13545
|
+
(function (SmsTemplateLocale) {
|
|
13546
|
+
SmsTemplateLocale["Af"] = "af";
|
|
13547
|
+
SmsTemplateLocale["Arae"] = "ar-ae";
|
|
13548
|
+
SmsTemplateLocale["Arbh"] = "ar-bh";
|
|
13549
|
+
SmsTemplateLocale["Ardz"] = "ar-dz";
|
|
13550
|
+
SmsTemplateLocale["Areg"] = "ar-eg";
|
|
13551
|
+
SmsTemplateLocale["Ariq"] = "ar-iq";
|
|
13552
|
+
SmsTemplateLocale["Arjo"] = "ar-jo";
|
|
13553
|
+
SmsTemplateLocale["Arkw"] = "ar-kw";
|
|
13554
|
+
SmsTemplateLocale["Arlb"] = "ar-lb";
|
|
13555
|
+
SmsTemplateLocale["Arly"] = "ar-ly";
|
|
13556
|
+
SmsTemplateLocale["Arma"] = "ar-ma";
|
|
13557
|
+
SmsTemplateLocale["Arom"] = "ar-om";
|
|
13558
|
+
SmsTemplateLocale["Arqa"] = "ar-qa";
|
|
13559
|
+
SmsTemplateLocale["Arsa"] = "ar-sa";
|
|
13560
|
+
SmsTemplateLocale["Arsy"] = "ar-sy";
|
|
13561
|
+
SmsTemplateLocale["Artn"] = "ar-tn";
|
|
13562
|
+
SmsTemplateLocale["Arye"] = "ar-ye";
|
|
13563
|
+
SmsTemplateLocale["As"] = "as";
|
|
13564
|
+
SmsTemplateLocale["Az"] = "az";
|
|
13565
|
+
SmsTemplateLocale["Be"] = "be";
|
|
13566
|
+
SmsTemplateLocale["Bg"] = "bg";
|
|
13567
|
+
SmsTemplateLocale["Bh"] = "bh";
|
|
13568
|
+
SmsTemplateLocale["Bn"] = "bn";
|
|
13569
|
+
SmsTemplateLocale["Bs"] = "bs";
|
|
13570
|
+
SmsTemplateLocale["Ca"] = "ca";
|
|
13571
|
+
SmsTemplateLocale["Cs"] = "cs";
|
|
13572
|
+
SmsTemplateLocale["Cy"] = "cy";
|
|
13573
|
+
SmsTemplateLocale["Da"] = "da";
|
|
13574
|
+
SmsTemplateLocale["De"] = "de";
|
|
13575
|
+
SmsTemplateLocale["Deat"] = "de-at";
|
|
13576
|
+
SmsTemplateLocale["Dech"] = "de-ch";
|
|
13577
|
+
SmsTemplateLocale["Deli"] = "de-li";
|
|
13578
|
+
SmsTemplateLocale["Delu"] = "de-lu";
|
|
13579
|
+
SmsTemplateLocale["El"] = "el";
|
|
13580
|
+
SmsTemplateLocale["En"] = "en";
|
|
13581
|
+
SmsTemplateLocale["Enau"] = "en-au";
|
|
13582
|
+
SmsTemplateLocale["Enbz"] = "en-bz";
|
|
13583
|
+
SmsTemplateLocale["Enca"] = "en-ca";
|
|
13584
|
+
SmsTemplateLocale["Engb"] = "en-gb";
|
|
13585
|
+
SmsTemplateLocale["Enie"] = "en-ie";
|
|
13586
|
+
SmsTemplateLocale["Enjm"] = "en-jm";
|
|
13587
|
+
SmsTemplateLocale["Ennz"] = "en-nz";
|
|
13588
|
+
SmsTemplateLocale["Entt"] = "en-tt";
|
|
13589
|
+
SmsTemplateLocale["Enus"] = "en-us";
|
|
13590
|
+
SmsTemplateLocale["Enza"] = "en-za";
|
|
13591
|
+
SmsTemplateLocale["Eo"] = "eo";
|
|
13592
|
+
SmsTemplateLocale["Es"] = "es";
|
|
13593
|
+
SmsTemplateLocale["Esar"] = "es-ar";
|
|
13594
|
+
SmsTemplateLocale["Esbo"] = "es-bo";
|
|
13595
|
+
SmsTemplateLocale["Escl"] = "es-cl";
|
|
13596
|
+
SmsTemplateLocale["Esco"] = "es-co";
|
|
13597
|
+
SmsTemplateLocale["Escr"] = "es-cr";
|
|
13598
|
+
SmsTemplateLocale["Esdo"] = "es-do";
|
|
13599
|
+
SmsTemplateLocale["Esec"] = "es-ec";
|
|
13600
|
+
SmsTemplateLocale["Esgt"] = "es-gt";
|
|
13601
|
+
SmsTemplateLocale["Eshn"] = "es-hn";
|
|
13602
|
+
SmsTemplateLocale["Esmx"] = "es-mx";
|
|
13603
|
+
SmsTemplateLocale["Esni"] = "es-ni";
|
|
13604
|
+
SmsTemplateLocale["Espa"] = "es-pa";
|
|
13605
|
+
SmsTemplateLocale["Espe"] = "es-pe";
|
|
13606
|
+
SmsTemplateLocale["Espr"] = "es-pr";
|
|
13607
|
+
SmsTemplateLocale["Espy"] = "es-py";
|
|
13608
|
+
SmsTemplateLocale["Essv"] = "es-sv";
|
|
13609
|
+
SmsTemplateLocale["Esuy"] = "es-uy";
|
|
13610
|
+
SmsTemplateLocale["Esve"] = "es-ve";
|
|
13611
|
+
SmsTemplateLocale["Et"] = "et";
|
|
13612
|
+
SmsTemplateLocale["Eu"] = "eu";
|
|
13613
|
+
SmsTemplateLocale["Fa"] = "fa";
|
|
13614
|
+
SmsTemplateLocale["Fi"] = "fi";
|
|
13615
|
+
SmsTemplateLocale["Fo"] = "fo";
|
|
13616
|
+
SmsTemplateLocale["Fr"] = "fr";
|
|
13617
|
+
SmsTemplateLocale["Frbe"] = "fr-be";
|
|
13618
|
+
SmsTemplateLocale["Frca"] = "fr-ca";
|
|
13619
|
+
SmsTemplateLocale["Frch"] = "fr-ch";
|
|
13620
|
+
SmsTemplateLocale["Frlu"] = "fr-lu";
|
|
13621
|
+
SmsTemplateLocale["Ga"] = "ga";
|
|
13622
|
+
SmsTemplateLocale["Gd"] = "gd";
|
|
13623
|
+
SmsTemplateLocale["He"] = "he";
|
|
13624
|
+
SmsTemplateLocale["Hi"] = "hi";
|
|
13625
|
+
SmsTemplateLocale["Hr"] = "hr";
|
|
13626
|
+
SmsTemplateLocale["Hu"] = "hu";
|
|
13627
|
+
SmsTemplateLocale["Id"] = "id";
|
|
13628
|
+
SmsTemplateLocale["Is"] = "is";
|
|
13629
|
+
SmsTemplateLocale["It"] = "it";
|
|
13630
|
+
SmsTemplateLocale["Itch"] = "it-ch";
|
|
13631
|
+
SmsTemplateLocale["Ja"] = "ja";
|
|
13632
|
+
SmsTemplateLocale["Ji"] = "ji";
|
|
13633
|
+
SmsTemplateLocale["Ko"] = "ko";
|
|
13634
|
+
SmsTemplateLocale["Ku"] = "ku";
|
|
13635
|
+
SmsTemplateLocale["Lt"] = "lt";
|
|
13636
|
+
SmsTemplateLocale["Lv"] = "lv";
|
|
13637
|
+
SmsTemplateLocale["Mk"] = "mk";
|
|
13638
|
+
SmsTemplateLocale["Ml"] = "ml";
|
|
13639
|
+
SmsTemplateLocale["Ms"] = "ms";
|
|
13640
|
+
SmsTemplateLocale["Mt"] = "mt";
|
|
13641
|
+
SmsTemplateLocale["Nb"] = "nb";
|
|
13642
|
+
SmsTemplateLocale["Ne"] = "ne";
|
|
13643
|
+
SmsTemplateLocale["Nl"] = "nl";
|
|
13644
|
+
SmsTemplateLocale["Nlbe"] = "nl-be";
|
|
13645
|
+
SmsTemplateLocale["Nn"] = "nn";
|
|
13646
|
+
SmsTemplateLocale["No"] = "no";
|
|
13647
|
+
SmsTemplateLocale["Pa"] = "pa";
|
|
13648
|
+
SmsTemplateLocale["Pl"] = "pl";
|
|
13649
|
+
SmsTemplateLocale["Pt"] = "pt";
|
|
13650
|
+
SmsTemplateLocale["Ptbr"] = "pt-br";
|
|
13651
|
+
SmsTemplateLocale["Rm"] = "rm";
|
|
13652
|
+
SmsTemplateLocale["Ro"] = "ro";
|
|
13653
|
+
SmsTemplateLocale["Romd"] = "ro-md";
|
|
13654
|
+
SmsTemplateLocale["Ru"] = "ru";
|
|
13655
|
+
SmsTemplateLocale["Rumd"] = "ru-md";
|
|
13656
|
+
SmsTemplateLocale["Sb"] = "sb";
|
|
13657
|
+
SmsTemplateLocale["Sk"] = "sk";
|
|
13658
|
+
SmsTemplateLocale["Sl"] = "sl";
|
|
13659
|
+
SmsTemplateLocale["Sq"] = "sq";
|
|
13660
|
+
SmsTemplateLocale["Sr"] = "sr";
|
|
13661
|
+
SmsTemplateLocale["Sv"] = "sv";
|
|
13662
|
+
SmsTemplateLocale["Svfi"] = "sv-fi";
|
|
13663
|
+
SmsTemplateLocale["Th"] = "th";
|
|
13664
|
+
SmsTemplateLocale["Tn"] = "tn";
|
|
13665
|
+
SmsTemplateLocale["Tr"] = "tr";
|
|
13666
|
+
SmsTemplateLocale["Ts"] = "ts";
|
|
13667
|
+
SmsTemplateLocale["Ua"] = "ua";
|
|
13668
|
+
SmsTemplateLocale["Ur"] = "ur";
|
|
13669
|
+
SmsTemplateLocale["Ve"] = "ve";
|
|
13670
|
+
SmsTemplateLocale["Vi"] = "vi";
|
|
13671
|
+
SmsTemplateLocale["Xh"] = "xh";
|
|
13672
|
+
SmsTemplateLocale["Zhcn"] = "zh-cn";
|
|
13673
|
+
SmsTemplateLocale["Zhhk"] = "zh-hk";
|
|
13674
|
+
SmsTemplateLocale["Zhsg"] = "zh-sg";
|
|
13675
|
+
SmsTemplateLocale["Zhtw"] = "zh-tw";
|
|
13676
|
+
SmsTemplateLocale["Zu"] = "zu";
|
|
13677
|
+
})(SmsTemplateLocale || (SmsTemplateLocale = {}));
|
|
12934
13678
|
|
|
12935
13679
|
var ResourceType;
|
|
12936
13680
|
(function (ResourceType) {
|
|
@@ -12974,20 +13718,20 @@ var StorageUsageRange;
|
|
|
12974
13718
|
StorageUsageRange["NinetyDays"] = "90d";
|
|
12975
13719
|
})(StorageUsageRange || (StorageUsageRange = {}));
|
|
12976
13720
|
|
|
12977
|
-
var
|
|
12978
|
-
(function (
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
})(
|
|
13721
|
+
var PasswordHash;
|
|
13722
|
+
(function (PasswordHash) {
|
|
13723
|
+
PasswordHash["Sha1"] = "sha1";
|
|
13724
|
+
PasswordHash["Sha224"] = "sha224";
|
|
13725
|
+
PasswordHash["Sha256"] = "sha256";
|
|
13726
|
+
PasswordHash["Sha384"] = "sha384";
|
|
13727
|
+
PasswordHash["Sha512224"] = "sha512/224";
|
|
13728
|
+
PasswordHash["Sha512256"] = "sha512/256";
|
|
13729
|
+
PasswordHash["Sha512"] = "sha512";
|
|
13730
|
+
PasswordHash["Sha3224"] = "sha3-224";
|
|
13731
|
+
PasswordHash["Sha3256"] = "sha3-256";
|
|
13732
|
+
PasswordHash["Sha3384"] = "sha3-384";
|
|
13733
|
+
PasswordHash["Sha3512"] = "sha3-512";
|
|
13734
|
+
})(PasswordHash || (PasswordHash = {}));
|
|
12991
13735
|
|
|
12992
13736
|
var UserUsageRange;
|
|
12993
13737
|
(function (UserUsageRange) {
|
|
@@ -13003,5 +13747,5 @@ var MessagingProviderType;
|
|
|
13003
13747
|
MessagingProviderType["Push"] = "push";
|
|
13004
13748
|
})(MessagingProviderType || (MessagingProviderType = {}));
|
|
13005
13749
|
|
|
13006
|
-
export {
|
|
13750
|
+
export { Account, Api, ApiService, AppwriteException, Assistant, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, PasswordHash, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPSecure, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Storage, StorageUsageRange, Teams, UserUsageRange, Users, Vcs };
|
|
13007
13751
|
//# sourceMappingURL=sdk.js.map
|