@appwrite.io/console 0.6.0-rc.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +32 -0
- package/README.md +5 -5
- package/dist/cjs/sdk.js +1140 -418
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1141 -419
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1140 -418
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-email-password-session.md +9 -13
- package/docs/examples/account/create-email-token.md +10 -13
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +10 -9
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +9 -13
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +10 -13
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +9 -13
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-mfa-authenticator.md +14 -0
- package/docs/examples/account/delete-push-target.md +8 -13
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/delete.md +6 -13
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +8 -13
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +9 -13
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/assistant/chat.md +8 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/console/variables.md +6 -13
- package/docs/examples/databases/create-boolean-attribute.md +13 -13
- package/docs/examples/databases/create-collection.md +13 -13
- package/docs/examples/databases/create-datetime-attribute.md +13 -13
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/create-email-attribute.md +13 -13
- package/docs/examples/databases/create-enum-attribute.md +14 -13
- package/docs/examples/databases/create-float-attribute.md +15 -13
- package/docs/examples/databases/create-index.md +13 -13
- package/docs/examples/databases/create-integer-attribute.md +15 -13
- package/docs/examples/databases/create-ip-attribute.md +13 -13
- package/docs/examples/databases/create-relationship-attribute.md +15 -13
- package/docs/examples/databases/create-string-attribute.md +15 -13
- package/docs/examples/databases/create-url-attribute.md +13 -13
- package/docs/examples/databases/create.md +10 -13
- package/docs/examples/databases/delete-attribute.md +10 -13
- package/docs/examples/databases/delete-collection.md +9 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/delete-index.md +10 -13
- package/docs/examples/databases/delete.md +8 -13
- package/docs/examples/databases/get-attribute.md +10 -13
- package/docs/examples/databases/get-collection-usage.md +10 -13
- package/docs/examples/databases/get-collection.md +9 -13
- package/docs/examples/databases/get-database-usage.md +9 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/get-index.md +10 -13
- package/docs/examples/databases/get-usage.md +8 -13
- package/docs/examples/databases/get.md +8 -13
- package/docs/examples/databases/list-attributes.md +10 -13
- package/docs/examples/databases/list-collection-logs.md +10 -13
- package/docs/examples/databases/list-collections.md +10 -13
- package/docs/examples/databases/list-document-logs.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/list-indexes.md +10 -13
- package/docs/examples/databases/list-logs.md +9 -13
- package/docs/examples/databases/list.md +9 -13
- package/docs/examples/databases/update-boolean-attribute.md +12 -13
- package/docs/examples/databases/update-collection.md +13 -13
- package/docs/examples/databases/update-datetime-attribute.md +12 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/databases/update-email-attribute.md +12 -13
- package/docs/examples/databases/update-enum-attribute.md +13 -13
- package/docs/examples/databases/update-float-attribute.md +14 -13
- package/docs/examples/databases/update-integer-attribute.md +14 -13
- package/docs/examples/databases/update-ip-attribute.md +12 -13
- package/docs/examples/databases/update-relationship-attribute.md +11 -13
- package/docs/examples/databases/update-string-attribute.md +12 -13
- package/docs/examples/databases/update-url-attribute.md +12 -13
- package/docs/examples/databases/update.md +10 -13
- package/docs/examples/functions/create-build.md +10 -13
- package/docs/examples/functions/create-deployment.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/create-variable.md +10 -13
- package/docs/examples/functions/create.md +27 -13
- package/docs/examples/functions/delete-deployment.md +9 -13
- package/docs/examples/functions/delete-variable.md +9 -13
- package/docs/examples/functions/delete.md +8 -13
- package/docs/examples/functions/download-deployment.md +9 -9
- package/docs/examples/functions/get-deployment.md +9 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/get-function-usage.md +9 -13
- package/docs/examples/functions/get-usage.md +8 -13
- package/docs/examples/functions/get-variable.md +9 -13
- package/docs/examples/functions/get.md +8 -13
- package/docs/examples/functions/list-deployments.md +10 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/functions/list-runtimes.md +6 -13
- package/docs/examples/functions/list-variables.md +8 -13
- package/docs/examples/functions/list.md +9 -13
- package/docs/examples/functions/update-deployment.md +9 -13
- package/docs/examples/functions/update-variable.md +11 -13
- package/docs/examples/functions/update.md +23 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/health/get-antivirus.md +6 -13
- package/docs/examples/health/get-cache.md +6 -13
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +6 -13
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +6 -13
- package/docs/examples/health/get-queue-builds.md +8 -13
- package/docs/examples/health/get-queue-certificates.md +8 -13
- package/docs/examples/health/get-queue-databases.md +9 -13
- package/docs/examples/health/get-queue-deletes.md +8 -13
- package/docs/examples/health/get-queue-functions.md +8 -13
- package/docs/examples/health/get-queue-logs.md +8 -13
- package/docs/examples/health/get-queue-mails.md +8 -13
- package/docs/examples/health/get-queue-messaging.md +8 -13
- package/docs/examples/health/get-queue-migrations.md +8 -13
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-queue-webhooks.md +8 -13
- package/docs/examples/health/get-queue.md +6 -13
- package/docs/examples/health/get-storage-local.md +6 -13
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +6 -13
- package/docs/examples/health/get.md +6 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +19 -13
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +17 -13
- package/docs/examples/messaging/create-msg91provider.md +13 -13
- package/docs/examples/messaging/create-push.md +23 -13
- package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +10 -13
- package/docs/examples/messaging/create-telesign-provider.md +13 -13
- package/docs/examples/messaging/create-textmagic-provider.md +13 -13
- package/docs/examples/messaging/create-topic.md +10 -13
- package/docs/examples/messaging/create-twilio-provider.md +13 -13
- package/docs/examples/messaging/create-vonage-provider.md +13 -13
- package/docs/examples/messaging/delete-provider.md +8 -13
- package/docs/examples/messaging/delete-subscriber.md +9 -13
- package/docs/examples/messaging/delete-topic.md +8 -13
- package/docs/examples/messaging/delete.md +8 -13
- package/docs/examples/messaging/get-message.md +8 -13
- package/docs/examples/messaging/get-provider.md +8 -13
- package/docs/examples/messaging/get-subscriber.md +9 -13
- package/docs/examples/messaging/get-topic.md +8 -13
- package/docs/examples/messaging/list-message-logs.md +9 -13
- package/docs/examples/messaging/list-messages.md +9 -13
- package/docs/examples/messaging/list-provider-logs.md +9 -13
- package/docs/examples/messaging/list-providers.md +9 -13
- package/docs/examples/messaging/list-subscriber-logs.md +9 -13
- package/docs/examples/messaging/list-subscribers.md +10 -13
- package/docs/examples/messaging/list-targets.md +9 -13
- package/docs/examples/messaging/list-topic-logs.md +9 -13
- package/docs/examples/messaging/list-topics.md +9 -13
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +18 -13
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +17 -13
- package/docs/examples/messaging/update-msg91provider.md +13 -13
- package/docs/examples/messaging/update-push.md +23 -13
- package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +13 -13
- package/docs/examples/messaging/update-textmagic-provider.md +13 -13
- package/docs/examples/messaging/update-topic.md +10 -13
- package/docs/examples/messaging/update-twilio-provider.md +13 -13
- package/docs/examples/messaging/update-vonage-provider.md +13 -13
- package/docs/examples/migrations/create-appwrite-migration.md +11 -13
- package/docs/examples/migrations/create-firebase-migration.md +9 -13
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
- package/docs/examples/migrations/create-n-host-migration.md +15 -13
- package/docs/examples/migrations/create-supabase-migration.md +14 -13
- package/docs/examples/migrations/delete-firebase-auth.md +6 -13
- package/docs/examples/migrations/delete.md +8 -13
- package/docs/examples/migrations/get-appwrite-report.md +11 -13
- package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
- package/docs/examples/migrations/get-firebase-report.md +9 -13
- package/docs/examples/migrations/get-n-host-report.md +15 -13
- package/docs/examples/migrations/get-supabase-report.md +14 -13
- package/docs/examples/migrations/get.md +8 -13
- package/docs/examples/migrations/list-firebase-projects.md +6 -13
- package/docs/examples/migrations/list.md +9 -13
- package/docs/examples/migrations/retry.md +8 -13
- package/docs/examples/project/create-variable.md +9 -13
- package/docs/examples/project/delete-variable.md +8 -13
- package/docs/examples/project/get-usage.md +10 -13
- package/docs/examples/project/get-variable.md +8 -13
- package/docs/examples/project/list-variables.md +6 -13
- package/docs/examples/project/update-variable.md +10 -13
- package/docs/examples/projects/create-key.md +11 -13
- package/docs/examples/projects/create-platform.md +13 -13
- package/docs/examples/projects/create-smtp-test.md +17 -13
- package/docs/examples/projects/create-webhook.md +15 -13
- package/docs/examples/projects/create.md +20 -13
- package/docs/examples/projects/delete-email-template.md +10 -13
- package/docs/examples/projects/delete-key.md +9 -13
- package/docs/examples/projects/delete-platform.md +9 -13
- package/docs/examples/projects/delete-sms-template.md +10 -13
- package/docs/examples/projects/delete-webhook.md +9 -13
- package/docs/examples/projects/delete.md +8 -13
- package/docs/examples/projects/get-email-template.md +10 -13
- package/docs/examples/projects/get-key.md +9 -13
- package/docs/examples/projects/get-platform.md +9 -13
- package/docs/examples/projects/get-sms-template.md +10 -13
- package/docs/examples/projects/get-webhook.md +9 -13
- package/docs/examples/projects/get.md +8 -13
- package/docs/examples/projects/list-keys.md +8 -13
- package/docs/examples/projects/list-platforms.md +8 -13
- package/docs/examples/projects/list-webhooks.md +8 -13
- package/docs/examples/projects/list.md +9 -13
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/projects/update-auth-duration.md +9 -13
- package/docs/examples/projects/update-auth-limit.md +9 -13
- package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
- package/docs/examples/projects/update-auth-password-history.md +9 -13
- package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
- package/docs/examples/projects/update-auth-status.md +10 -13
- package/docs/examples/projects/update-email-template.md +15 -13
- package/docs/examples/projects/update-key.md +12 -13
- package/docs/examples/projects/update-o-auth2.md +12 -13
- package/docs/examples/projects/update-personal-data-check.md +9 -13
- package/docs/examples/projects/update-platform.md +13 -13
- package/docs/examples/projects/update-service-status-all.md +9 -13
- package/docs/examples/projects/update-service-status.md +10 -13
- package/docs/examples/projects/update-sms-template.md +11 -13
- package/docs/examples/projects/update-smtp.md +17 -13
- package/docs/examples/projects/update-team.md +9 -13
- package/docs/examples/projects/update-webhook-signature.md +9 -13
- package/docs/examples/projects/update-webhook.md +16 -13
- package/docs/examples/projects/update.md +18 -13
- package/docs/examples/proxy/create-rule.md +10 -13
- package/docs/examples/proxy/delete-rule.md +8 -13
- package/docs/examples/proxy/get-rule.md +8 -13
- package/docs/examples/proxy/list-rules.md +9 -13
- package/docs/examples/proxy/update-rule-verification.md +8 -13
- package/docs/examples/storage/create-bucket.md +17 -13
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-bucket.md +8 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-bucket-usage.md +9 -13
- package/docs/examples/storage/get-bucket.md +8 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/get-usage.md +8 -13
- package/docs/examples/storage/list-buckets.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-bucket.md +17 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-logs.md +9 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/docs/examples/users/create-argon2user.md +11 -13
- package/docs/examples/users/create-bcrypt-user.md +11 -13
- package/docs/examples/users/create-m-d5user.md +11 -13
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +11 -13
- package/docs/examples/users/create-s-h-a-user.md +12 -13
- package/docs/examples/users/create-scrypt-modified-user.md +14 -13
- package/docs/examples/users/create-scrypt-user.md +16 -13
- package/docs/examples/users/create-session.md +8 -13
- package/docs/examples/users/create-target.md +13 -13
- package/docs/examples/users/create-token.md +10 -13
- package/docs/examples/users/create.md +12 -13
- package/docs/examples/users/delete-identity.md +8 -13
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +9 -13
- package/docs/examples/users/delete-sessions.md +8 -13
- package/docs/examples/users/delete-target.md +9 -13
- package/docs/examples/users/delete.md +8 -13
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +8 -13
- package/docs/examples/users/get-target.md +9 -13
- package/docs/examples/users/get-usage.md +8 -13
- package/docs/examples/users/get.md +8 -13
- package/docs/examples/users/list-identities.md +9 -13
- package/docs/examples/users/list-logs.md +9 -13
- package/docs/examples/users/list-memberships.md +8 -13
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +8 -13
- package/docs/examples/users/list-targets.md +9 -13
- package/docs/examples/users/list.md +9 -13
- package/docs/examples/users/update-email-verification.md +9 -13
- package/docs/examples/users/update-email.md +9 -13
- package/docs/examples/users/update-labels.md +9 -13
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +9 -13
- package/docs/examples/users/update-name.md +9 -13
- package/docs/examples/users/update-password.md +9 -13
- package/docs/examples/users/update-phone-verification.md +9 -13
- package/docs/examples/users/update-phone.md +9 -13
- package/docs/examples/users/update-prefs.md +9 -13
- package/docs/examples/users/update-status.md +9 -13
- package/docs/examples/users/update-target.md +12 -13
- package/docs/examples/vcs/create-repository-detection.md +10 -13
- package/docs/examples/vcs/create-repository.md +10 -13
- package/docs/examples/vcs/delete-installation.md +8 -13
- package/docs/examples/vcs/get-installation.md +8 -13
- package/docs/examples/vcs/get-repository.md +9 -13
- package/docs/examples/vcs/list-installations.md +9 -13
- package/docs/examples/vcs/list-repositories.md +9 -13
- package/docs/examples/vcs/list-repository-branches.md +9 -13
- package/docs/examples/vcs/update-external-deployments.md +10 -13
- package/package.json +1 -1
- package/src/client.ts +3 -3
- package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
- package/src/enums/api.ts +5 -0
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +7 -0
- package/src/enums/index-type.ts +0 -1
- package/src/enums/name.ts +15 -0
- package/src/enums/{password-version.ts → password-hash.ts} +1 -1
- package/src/enums/region.ts +1 -0
- package/src/enums/runtime.ts +40 -0
- package/src/enums/{template-locale.ts → sms-template-locale.ts} +1 -1
- package/src/enums/{template-type.ts → sms-template-type.ts} +2 -1
- package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
- package/src/index.ts +11 -8
- package/src/models.ts +57 -19
- package/src/query.ts +2 -2
- package/src/service.ts +0 -3
- package/src/services/account.ts +239 -66
- package/src/services/assistant.ts +0 -1
- package/src/services/avatars.ts +0 -1
- package/src/services/console.ts +0 -1
- package/src/services/databases.ts +20 -4
- package/src/services/functions.ts +0 -1
- package/src/services/graphql.ts +0 -1
- package/src/services/health.ts +121 -1
- package/src/services/locale.ts +0 -1
- package/src/services/messaging.ts +161 -70
- package/src/services/migrations.ts +0 -1
- package/src/services/project.ts +1 -2
- package/src/services/projects.ts +97 -24
- package/src/services/proxy.ts +0 -1
- package/src/services/storage.ts +2 -3
- package/src/services/teams.ts +0 -1
- package/src/services/users.ts +115 -39
- package/src/services/vcs.ts +0 -1
- package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
- package/types/enums/api.d.ts +5 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +7 -0
- package/types/enums/index-type.d.ts +1 -2
- package/types/enums/name.d.ts +15 -0
- package/types/enums/{password-version.d.ts → password-hash.d.ts} +1 -1
- package/types/enums/region.d.ts +2 -1
- package/types/enums/runtime.d.ts +41 -1
- package/types/enums/{template-locale.d.ts → sms-template-locale.d.ts} +1 -1
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
- package/types/index.d.ts +11 -8
- package/types/models.d.ts +57 -19
- package/types/query.d.ts +2 -2
- package/types/services/account.d.ts +121 -28
- package/types/services/databases.d.ts +20 -3
- package/types/services/health.d.ts +56 -0
- package/types/services/messaging.d.ts +109 -49
- package/types/services/project.d.ts +1 -1
- package/types/services/projects.d.ts +47 -23
- package/types/services/storage.d.ts +2 -2
- package/types/services/users.d.ts +63 -17
- package/docs/examples/account/add-authenticator.md +0 -18
- package/docs/examples/account/create-challenge.md +0 -18
- package/docs/examples/account/delete-authenticator.md +0 -18
- package/docs/examples/account/list-factors.md +0 -18
- package/docs/examples/account/update-challenge.md +0 -18
- package/docs/examples/account/verify-authenticator.md +0 -18
- package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/create-s-m-s.md +0 -18
- package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
- package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/update-s-m-s.md +0 -18
- package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
- package/docs/examples/users/delete-authenticator.md +0 -18
- package/docs/examples/users/list-providers.md +0 -18
- package/src/enums/authenticator-factor.ts +0 -3
- package/src/enums/authenticator-provider.ts +0 -3
- package/src/enums/message-type.ts +0 -5
- package/types/enums/authenticator-factor.d.ts +0 -3
- package/types/enums/authenticator-provider.d.ts +0 -3
- package/types/enums/message-type.d.ts +0 -5
- package/types/enums/template-type.d.ts +0 -5
package/dist/iife/sdk.js
CHANGED
|
@@ -26,6 +26,26 @@
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
class Service {
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
static flatten(data, prefix = '') {
|
|
34
|
+
let output = {};
|
|
35
|
+
for (const [key, value] of Object.entries(data)) {
|
|
36
|
+
let finalKey = prefix ? prefix + '[' + key + ']' : key;
|
|
37
|
+
if (Array.isArray(value)) {
|
|
38
|
+
output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
output[finalKey] = value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return output;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
|
|
48
|
+
|
|
29
49
|
class Query {
|
|
30
50
|
constructor(method, attribute, values) {
|
|
31
51
|
this.method = method;
|
|
@@ -67,31 +87,8 @@
|
|
|
67
87
|
Query.limit = (limit) => new Query("limit", undefined, limit).toString();
|
|
68
88
|
Query.offset = (offset) => new Query("offset", undefined, offset).toString();
|
|
69
89
|
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
|
|
90
|
+
Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
91
|
+
Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
95
92
|
|
|
96
93
|
class AppwriteException extends Error {
|
|
97
94
|
constructor(message, code = 0, type = '', response = '') {
|
|
@@ -106,7 +103,7 @@
|
|
|
106
103
|
class Client {
|
|
107
104
|
constructor() {
|
|
108
105
|
this.config = {
|
|
109
|
-
endpoint: 'https://
|
|
106
|
+
endpoint: 'https://cloud.appwrite.io/v1',
|
|
110
107
|
endpointRealtime: '',
|
|
111
108
|
project: '',
|
|
112
109
|
key: '',
|
|
@@ -118,8 +115,8 @@
|
|
|
118
115
|
'x-sdk-name': 'Console',
|
|
119
116
|
'x-sdk-platform': 'console',
|
|
120
117
|
'x-sdk-language': 'web',
|
|
121
|
-
'x-sdk-version': '0.6.0
|
|
122
|
-
'X-Appwrite-Response-Format': '1.
|
|
118
|
+
'x-sdk-version': '0.6.0',
|
|
119
|
+
'X-Appwrite-Response-Format': '1.5.0',
|
|
123
120
|
};
|
|
124
121
|
this.realtime = {
|
|
125
122
|
socket: undefined,
|
|
@@ -671,6 +668,7 @@
|
|
|
671
668
|
/**
|
|
672
669
|
* Update MFA
|
|
673
670
|
*
|
|
671
|
+
* Enable or disable MFA on an account.
|
|
674
672
|
*
|
|
675
673
|
* @param {boolean} mfa
|
|
676
674
|
* @throws {AppwriteException}
|
|
@@ -693,23 +691,24 @@
|
|
|
693
691
|
});
|
|
694
692
|
}
|
|
695
693
|
/**
|
|
696
|
-
*
|
|
694
|
+
* Add Authenticator
|
|
697
695
|
*
|
|
696
|
+
* Add an authenticator app to be used as an MFA factor. Verify the
|
|
697
|
+
* authenticator using the [verify
|
|
698
|
+
* authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
|
|
699
|
+
* method.
|
|
698
700
|
*
|
|
699
|
-
* @param {
|
|
701
|
+
* @param {AuthenticatorType} type
|
|
700
702
|
* @throws {AppwriteException}
|
|
701
703
|
* @returns {Promise}
|
|
702
704
|
*/
|
|
703
|
-
|
|
705
|
+
createMfaAuthenticator(type) {
|
|
704
706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
-
if (typeof
|
|
706
|
-
throw new AppwriteException('Missing required parameter: "
|
|
707
|
+
if (typeof type === 'undefined') {
|
|
708
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
707
709
|
}
|
|
708
|
-
const apiPath = '/account/mfa/
|
|
710
|
+
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
|
709
711
|
const payload = {};
|
|
710
|
-
if (typeof provider !== 'undefined') {
|
|
711
|
-
payload['provider'] = provider;
|
|
712
|
-
}
|
|
713
712
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
714
713
|
return yield this.client.call('post', uri, {
|
|
715
714
|
'content-type': 'application/json',
|
|
@@ -717,27 +716,27 @@
|
|
|
717
716
|
});
|
|
718
717
|
}
|
|
719
718
|
/**
|
|
720
|
-
*
|
|
719
|
+
* Verify Authenticator
|
|
721
720
|
*
|
|
721
|
+
* Verify an authenticator app after adding it using the [add
|
|
722
|
+
* authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
|
|
723
|
+
* method.
|
|
722
724
|
*
|
|
723
|
-
* @param {
|
|
725
|
+
* @param {AuthenticatorType} type
|
|
724
726
|
* @param {string} otp
|
|
725
727
|
* @throws {AppwriteException}
|
|
726
728
|
* @returns {Promise}
|
|
727
729
|
*/
|
|
728
|
-
|
|
730
|
+
updateMfaAuthenticator(type, otp) {
|
|
729
731
|
return __awaiter(this, void 0, void 0, function* () {
|
|
730
|
-
if (typeof
|
|
731
|
-
throw new AppwriteException('Missing required parameter: "
|
|
732
|
+
if (typeof type === 'undefined') {
|
|
733
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
732
734
|
}
|
|
733
735
|
if (typeof otp === 'undefined') {
|
|
734
736
|
throw new AppwriteException('Missing required parameter: "otp"');
|
|
735
737
|
}
|
|
736
|
-
const apiPath = '/account/mfa/
|
|
738
|
+
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
|
737
739
|
const payload = {};
|
|
738
|
-
if (typeof challengeId !== 'undefined') {
|
|
739
|
-
payload['challengeId'] = challengeId;
|
|
740
|
-
}
|
|
741
740
|
if (typeof otp !== 'undefined') {
|
|
742
741
|
payload['otp'] = otp;
|
|
743
742
|
}
|
|
@@ -748,38 +747,55 @@
|
|
|
748
747
|
});
|
|
749
748
|
}
|
|
750
749
|
/**
|
|
751
|
-
*
|
|
750
|
+
* Delete Authenticator
|
|
752
751
|
*
|
|
753
|
-
*
|
|
752
|
+
* Delete an authenticator for a user by ID.
|
|
754
753
|
*
|
|
754
|
+
* @param {AuthenticatorType} type
|
|
755
|
+
* @param {string} otp
|
|
755
756
|
* @throws {AppwriteException}
|
|
756
757
|
* @returns {Promise}
|
|
757
758
|
*/
|
|
758
|
-
|
|
759
|
+
deleteMfaAuthenticator(type, otp) {
|
|
759
760
|
return __awaiter(this, void 0, void 0, function* () {
|
|
760
|
-
|
|
761
|
+
if (typeof type === 'undefined') {
|
|
762
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
763
|
+
}
|
|
764
|
+
if (typeof otp === 'undefined') {
|
|
765
|
+
throw new AppwriteException('Missing required parameter: "otp"');
|
|
766
|
+
}
|
|
767
|
+
const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
|
|
761
768
|
const payload = {};
|
|
769
|
+
if (typeof otp !== 'undefined') {
|
|
770
|
+
payload['otp'] = otp;
|
|
771
|
+
}
|
|
762
772
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
763
|
-
return yield this.client.call('
|
|
773
|
+
return yield this.client.call('delete', uri, {
|
|
764
774
|
'content-type': 'application/json',
|
|
765
775
|
}, payload);
|
|
766
776
|
});
|
|
767
777
|
}
|
|
768
778
|
/**
|
|
769
|
-
*
|
|
779
|
+
* Create 2FA Challenge
|
|
770
780
|
*
|
|
781
|
+
* Begin the process of MFA verification after sign-in. Finish the flow with
|
|
782
|
+
* [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
|
|
783
|
+
* method.
|
|
771
784
|
*
|
|
772
|
-
* @param {
|
|
785
|
+
* @param {AuthenticationFactor} factor
|
|
773
786
|
* @throws {AppwriteException}
|
|
774
787
|
* @returns {Promise}
|
|
775
788
|
*/
|
|
776
|
-
|
|
789
|
+
createMfaChallenge(factor) {
|
|
777
790
|
return __awaiter(this, void 0, void 0, function* () {
|
|
778
791
|
if (typeof factor === 'undefined') {
|
|
779
792
|
throw new AppwriteException('Missing required parameter: "factor"');
|
|
780
793
|
}
|
|
781
|
-
const apiPath = '/account/mfa/
|
|
794
|
+
const apiPath = '/account/mfa/challenge';
|
|
782
795
|
const payload = {};
|
|
796
|
+
if (typeof factor !== 'undefined') {
|
|
797
|
+
payload['factor'] = factor;
|
|
798
|
+
}
|
|
783
799
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
784
800
|
return yield this.client.call('post', uri, {
|
|
785
801
|
'content-type': 'application/json',
|
|
@@ -787,24 +803,32 @@
|
|
|
787
803
|
});
|
|
788
804
|
}
|
|
789
805
|
/**
|
|
790
|
-
*
|
|
806
|
+
* Create MFA Challenge (confirmation)
|
|
791
807
|
*
|
|
808
|
+
* Complete the MFA challenge by providing the one-time password. Finish the
|
|
809
|
+
* process of MFA verification by providing the one-time password. To begin
|
|
810
|
+
* the flow, use
|
|
811
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
812
|
+
* method.
|
|
792
813
|
*
|
|
793
|
-
* @param {
|
|
814
|
+
* @param {string} challengeId
|
|
794
815
|
* @param {string} otp
|
|
795
816
|
* @throws {AppwriteException}
|
|
796
817
|
* @returns {Promise}
|
|
797
818
|
*/
|
|
798
|
-
|
|
819
|
+
updateMfaChallenge(challengeId, otp) {
|
|
799
820
|
return __awaiter(this, void 0, void 0, function* () {
|
|
800
|
-
if (typeof
|
|
801
|
-
throw new AppwriteException('Missing required parameter: "
|
|
821
|
+
if (typeof challengeId === 'undefined') {
|
|
822
|
+
throw new AppwriteException('Missing required parameter: "challengeId"');
|
|
802
823
|
}
|
|
803
824
|
if (typeof otp === 'undefined') {
|
|
804
825
|
throw new AppwriteException('Missing required parameter: "otp"');
|
|
805
826
|
}
|
|
806
|
-
const apiPath = '/account/mfa/
|
|
827
|
+
const apiPath = '/account/mfa/challenge';
|
|
807
828
|
const payload = {};
|
|
829
|
+
if (typeof challengeId !== 'undefined') {
|
|
830
|
+
payload['challengeId'] = challengeId;
|
|
831
|
+
}
|
|
808
832
|
if (typeof otp !== 'undefined') {
|
|
809
833
|
payload['otp'] = otp;
|
|
810
834
|
}
|
|
@@ -815,29 +839,83 @@
|
|
|
815
839
|
});
|
|
816
840
|
}
|
|
817
841
|
/**
|
|
818
|
-
*
|
|
842
|
+
* List Factors
|
|
819
843
|
*
|
|
844
|
+
* List the factors available on the account to be used as a MFA challange.
|
|
820
845
|
*
|
|
821
|
-
* @param {AuthenticatorProvider} provider
|
|
822
|
-
* @param {string} otp
|
|
823
846
|
* @throws {AppwriteException}
|
|
824
847
|
* @returns {Promise}
|
|
825
848
|
*/
|
|
826
|
-
|
|
849
|
+
listMfaFactors() {
|
|
827
850
|
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);
|
|
851
|
+
const apiPath = '/account/mfa/factors';
|
|
835
852
|
const payload = {};
|
|
836
|
-
if (typeof otp !== 'undefined') {
|
|
837
|
-
payload['otp'] = otp;
|
|
838
|
-
}
|
|
839
853
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
840
|
-
return yield this.client.call('
|
|
854
|
+
return yield this.client.call('get', uri, {
|
|
855
|
+
'content-type': 'application/json',
|
|
856
|
+
}, payload);
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Get MFA Recovery Codes
|
|
861
|
+
*
|
|
862
|
+
* Get recovery codes that can be used as backup for MFA flow. Before getting
|
|
863
|
+
* codes, they must be generated using
|
|
864
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
865
|
+
* method. An OTP challenge is required to read recovery codes.
|
|
866
|
+
*
|
|
867
|
+
* @throws {AppwriteException}
|
|
868
|
+
* @returns {Promise}
|
|
869
|
+
*/
|
|
870
|
+
getMfaRecoveryCodes() {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
const apiPath = '/account/mfa/recovery-codes';
|
|
873
|
+
const payload = {};
|
|
874
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
875
|
+
return yield this.client.call('get', uri, {
|
|
876
|
+
'content-type': 'application/json',
|
|
877
|
+
}, payload);
|
|
878
|
+
});
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Create MFA Recovery Codes
|
|
882
|
+
*
|
|
883
|
+
* Generate recovery codes as backup for MFA flow. It's recommended to
|
|
884
|
+
* generate and show then immediately after user successfully adds their
|
|
885
|
+
* authehticator. Recovery codes can be used as a MFA verification type in
|
|
886
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
887
|
+
* method.
|
|
888
|
+
*
|
|
889
|
+
* @throws {AppwriteException}
|
|
890
|
+
* @returns {Promise}
|
|
891
|
+
*/
|
|
892
|
+
createMfaRecoveryCodes() {
|
|
893
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
894
|
+
const apiPath = '/account/mfa/recovery-codes';
|
|
895
|
+
const payload = {};
|
|
896
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
897
|
+
return yield this.client.call('post', uri, {
|
|
898
|
+
'content-type': 'application/json',
|
|
899
|
+
}, payload);
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Regenerate MFA Recovery Codes
|
|
904
|
+
*
|
|
905
|
+
* Regenerate recovery codes that can be used as backup for MFA flow. Before
|
|
906
|
+
* regenerating codes, they must be first generated using
|
|
907
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
908
|
+
* method. An OTP challenge is required to regenreate recovery codes.
|
|
909
|
+
*
|
|
910
|
+
* @throws {AppwriteException}
|
|
911
|
+
* @returns {Promise}
|
|
912
|
+
*/
|
|
913
|
+
updateMfaRecoveryCodes() {
|
|
914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
const apiPath = '/account/mfa/recovery-codes';
|
|
916
|
+
const payload = {};
|
|
917
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
918
|
+
return yield this.client.call('patch', uri, {
|
|
841
919
|
'content-type': 'application/json',
|
|
842
920
|
}, payload);
|
|
843
921
|
});
|
|
@@ -1166,7 +1244,7 @@
|
|
|
1166
1244
|
});
|
|
1167
1245
|
}
|
|
1168
1246
|
/**
|
|
1169
|
-
*
|
|
1247
|
+
* Update magic URL session
|
|
1170
1248
|
*
|
|
1171
1249
|
* Use this endpoint to create a session from token. Provide the **userId**
|
|
1172
1250
|
* and **secret** parameters from the successful response of authentication
|
|
@@ -1222,12 +1300,11 @@
|
|
|
1222
1300
|
* @param {OAuthProvider} provider
|
|
1223
1301
|
* @param {string} success
|
|
1224
1302
|
* @param {string} failure
|
|
1225
|
-
* @param {boolean} token
|
|
1226
1303
|
* @param {string[]} scopes
|
|
1227
1304
|
* @throws {AppwriteException}
|
|
1228
1305
|
* @returns {void|string}
|
|
1229
1306
|
*/
|
|
1230
|
-
createOAuth2Session(provider, success, failure,
|
|
1307
|
+
createOAuth2Session(provider, success, failure, scopes) {
|
|
1231
1308
|
if (typeof provider === 'undefined') {
|
|
1232
1309
|
throw new AppwriteException('Missing required parameter: "provider"');
|
|
1233
1310
|
}
|
|
@@ -1239,9 +1316,6 @@
|
|
|
1239
1316
|
if (typeof failure !== 'undefined') {
|
|
1240
1317
|
payload['failure'] = failure;
|
|
1241
1318
|
}
|
|
1242
|
-
if (typeof token !== 'undefined') {
|
|
1243
|
-
payload['token'] = token;
|
|
1244
|
-
}
|
|
1245
1319
|
if (typeof scopes !== 'undefined') {
|
|
1246
1320
|
payload['scopes'] = scopes;
|
|
1247
1321
|
}
|
|
@@ -1257,6 +1331,40 @@
|
|
|
1257
1331
|
return uri;
|
|
1258
1332
|
}
|
|
1259
1333
|
}
|
|
1334
|
+
/**
|
|
1335
|
+
* Update phone session
|
|
1336
|
+
*
|
|
1337
|
+
* Use this endpoint to create a session from token. Provide the **userId**
|
|
1338
|
+
* and **secret** parameters from the successful response of authentication
|
|
1339
|
+
* flows initiated by token creation. For example, magic URL and phone login.
|
|
1340
|
+
*
|
|
1341
|
+
* @param {string} userId
|
|
1342
|
+
* @param {string} secret
|
|
1343
|
+
* @throws {AppwriteException}
|
|
1344
|
+
* @returns {Promise}
|
|
1345
|
+
*/
|
|
1346
|
+
updatePhoneSession(userId, secret) {
|
|
1347
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1348
|
+
if (typeof userId === 'undefined') {
|
|
1349
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
1350
|
+
}
|
|
1351
|
+
if (typeof secret === 'undefined') {
|
|
1352
|
+
throw new AppwriteException('Missing required parameter: "secret"');
|
|
1353
|
+
}
|
|
1354
|
+
const apiPath = '/account/sessions/phone';
|
|
1355
|
+
const payload = {};
|
|
1356
|
+
if (typeof userId !== 'undefined') {
|
|
1357
|
+
payload['userId'] = userId;
|
|
1358
|
+
}
|
|
1359
|
+
if (typeof secret !== 'undefined') {
|
|
1360
|
+
payload['secret'] = secret;
|
|
1361
|
+
}
|
|
1362
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1363
|
+
return yield this.client.call('put', uri, {
|
|
1364
|
+
'content-type': 'application/json',
|
|
1365
|
+
}, payload);
|
|
1366
|
+
});
|
|
1367
|
+
}
|
|
1260
1368
|
/**
|
|
1261
1369
|
* Create session
|
|
1262
1370
|
*
|
|
@@ -1315,10 +1423,11 @@
|
|
|
1315
1423
|
});
|
|
1316
1424
|
}
|
|
1317
1425
|
/**
|
|
1318
|
-
* Update
|
|
1426
|
+
* Update session
|
|
1319
1427
|
*
|
|
1320
|
-
*
|
|
1321
|
-
* useful when session
|
|
1428
|
+
* Use this endpoint to extend a session's length. Extending a session is
|
|
1429
|
+
* useful when session expiry is short. If the session was created using an
|
|
1430
|
+
* OAuth provider, this endpoint refreshes the access token from the provider.
|
|
1322
1431
|
*
|
|
1323
1432
|
* @param {string} sessionId
|
|
1324
1433
|
* @throws {AppwriteException}
|
|
@@ -1384,7 +1493,7 @@
|
|
|
1384
1493
|
});
|
|
1385
1494
|
}
|
|
1386
1495
|
/**
|
|
1387
|
-
* Create
|
|
1496
|
+
* Create push target
|
|
1388
1497
|
*
|
|
1389
1498
|
*
|
|
1390
1499
|
* @param {string} targetId
|
|
@@ -1419,7 +1528,7 @@
|
|
|
1419
1528
|
});
|
|
1420
1529
|
}
|
|
1421
1530
|
/**
|
|
1422
|
-
* Update
|
|
1531
|
+
* Update push target
|
|
1423
1532
|
*
|
|
1424
1533
|
*
|
|
1425
1534
|
* @param {string} targetId
|
|
@@ -1447,7 +1556,7 @@
|
|
|
1447
1556
|
});
|
|
1448
1557
|
}
|
|
1449
1558
|
/**
|
|
1450
|
-
* Delete
|
|
1559
|
+
* Delete push target
|
|
1451
1560
|
*
|
|
1452
1561
|
*
|
|
1453
1562
|
* @param {string} targetId
|
|
@@ -1567,6 +1676,58 @@
|
|
|
1567
1676
|
}, payload);
|
|
1568
1677
|
});
|
|
1569
1678
|
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Create OAuth2 token
|
|
1681
|
+
*
|
|
1682
|
+
* Allow the user to login to their account using the OAuth2 provider of their
|
|
1683
|
+
* choice. Each OAuth2 provider should be enabled from the Appwrite console
|
|
1684
|
+
* first. Use the success and failure arguments to provide a redirect URL's
|
|
1685
|
+
* back to your app when login is completed.
|
|
1686
|
+
*
|
|
1687
|
+
* If authentication succeeds, `userId` and `secret` of a token will be
|
|
1688
|
+
* appended to the success URL as query parameters. These can be used to
|
|
1689
|
+
* create a new session using the [Create
|
|
1690
|
+
* session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
1691
|
+
* endpoint.
|
|
1692
|
+
*
|
|
1693
|
+
* A user is limited to 10 active sessions at a time by default. [Learn more
|
|
1694
|
+
* about session
|
|
1695
|
+
* limits](https://appwrite.io/docs/authentication-security#limits).
|
|
1696
|
+
*
|
|
1697
|
+
* @param {OAuthProvider} provider
|
|
1698
|
+
* @param {string} success
|
|
1699
|
+
* @param {string} failure
|
|
1700
|
+
* @param {string[]} scopes
|
|
1701
|
+
* @throws {AppwriteException}
|
|
1702
|
+
* @returns {void|string}
|
|
1703
|
+
*/
|
|
1704
|
+
createOAuth2Token(provider, success, failure, scopes) {
|
|
1705
|
+
if (typeof provider === 'undefined') {
|
|
1706
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
1707
|
+
}
|
|
1708
|
+
const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
|
|
1709
|
+
const payload = {};
|
|
1710
|
+
if (typeof success !== 'undefined') {
|
|
1711
|
+
payload['success'] = success;
|
|
1712
|
+
}
|
|
1713
|
+
if (typeof failure !== 'undefined') {
|
|
1714
|
+
payload['failure'] = failure;
|
|
1715
|
+
}
|
|
1716
|
+
if (typeof scopes !== 'undefined') {
|
|
1717
|
+
payload['scopes'] = scopes;
|
|
1718
|
+
}
|
|
1719
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1720
|
+
payload['project'] = this.client.config.project;
|
|
1721
|
+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
1722
|
+
uri.searchParams.append(key, value);
|
|
1723
|
+
}
|
|
1724
|
+
if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {
|
|
1725
|
+
window.location.href = uri.toString();
|
|
1726
|
+
}
|
|
1727
|
+
else {
|
|
1728
|
+
return uri;
|
|
1729
|
+
}
|
|
1730
|
+
}
|
|
1570
1731
|
/**
|
|
1571
1732
|
* Create phone token
|
|
1572
1733
|
*
|
|
@@ -2158,7 +2319,7 @@
|
|
|
2158
2319
|
});
|
|
2159
2320
|
}
|
|
2160
2321
|
/**
|
|
2161
|
-
* Get usage stats
|
|
2322
|
+
* Get databases usage stats
|
|
2162
2323
|
*
|
|
2163
2324
|
*
|
|
2164
2325
|
* @param {DatabaseUsageRange} range
|
|
@@ -2441,6 +2602,7 @@
|
|
|
2441
2602
|
/**
|
|
2442
2603
|
* List attributes
|
|
2443
2604
|
*
|
|
2605
|
+
* List attributes in the collection.
|
|
2444
2606
|
*
|
|
2445
2607
|
* @param {string} databaseId
|
|
2446
2608
|
* @param {string} collectionId
|
|
@@ -2519,6 +2681,8 @@
|
|
|
2519
2681
|
/**
|
|
2520
2682
|
* Update boolean attribute
|
|
2521
2683
|
*
|
|
2684
|
+
* Update a boolean attribute. Changing the `default` value will not update
|
|
2685
|
+
* already existing documents.
|
|
2522
2686
|
*
|
|
2523
2687
|
* @param {string} databaseId
|
|
2524
2688
|
* @param {string} collectionId
|
|
@@ -2562,6 +2726,7 @@
|
|
|
2562
2726
|
/**
|
|
2563
2727
|
* Create datetime attribute
|
|
2564
2728
|
*
|
|
2729
|
+
* Create a date time attribute according to the ISO 8601 standard.
|
|
2565
2730
|
*
|
|
2566
2731
|
* @param {string} databaseId
|
|
2567
2732
|
* @param {string} collectionId
|
|
@@ -2609,6 +2774,8 @@
|
|
|
2609
2774
|
/**
|
|
2610
2775
|
* Update dateTime attribute
|
|
2611
2776
|
*
|
|
2777
|
+
* Update a date time attribute. Changing the `default` value will not update
|
|
2778
|
+
* already existing documents.
|
|
2612
2779
|
*
|
|
2613
2780
|
* @param {string} databaseId
|
|
2614
2781
|
* @param {string} collectionId
|
|
@@ -2747,6 +2914,9 @@
|
|
|
2747
2914
|
/**
|
|
2748
2915
|
* Create enum attribute
|
|
2749
2916
|
*
|
|
2917
|
+
* Create an enumeration attribute. The `elements` param acts as a white-list
|
|
2918
|
+
* of accepted values for this attribute.
|
|
2919
|
+
*
|
|
2750
2920
|
*
|
|
2751
2921
|
* @param {string} databaseId
|
|
2752
2922
|
* @param {string} collectionId
|
|
@@ -3444,6 +3614,7 @@
|
|
|
3444
3614
|
/**
|
|
3445
3615
|
* Get attribute
|
|
3446
3616
|
*
|
|
3617
|
+
* Get attribute by ID.
|
|
3447
3618
|
*
|
|
3448
3619
|
* @param {string} databaseId
|
|
3449
3620
|
* @param {string} collectionId
|
|
@@ -3473,6 +3644,7 @@
|
|
|
3473
3644
|
/**
|
|
3474
3645
|
* Delete attribute
|
|
3475
3646
|
*
|
|
3647
|
+
* Deletes an attribute.
|
|
3476
3648
|
*
|
|
3477
3649
|
* @param {string} databaseId
|
|
3478
3650
|
* @param {string} collectionId
|
|
@@ -3754,6 +3926,7 @@
|
|
|
3754
3926
|
/**
|
|
3755
3927
|
* List indexes
|
|
3756
3928
|
*
|
|
3929
|
+
* List indexes in the collection.
|
|
3757
3930
|
*
|
|
3758
3931
|
* @param {string} databaseId
|
|
3759
3932
|
* @param {string} collectionId
|
|
@@ -3783,6 +3956,9 @@
|
|
|
3783
3956
|
/**
|
|
3784
3957
|
* Create index
|
|
3785
3958
|
*
|
|
3959
|
+
* Creates an index on the attributes listed. Your index should include all
|
|
3960
|
+
* the attributes you will query in a single request.
|
|
3961
|
+
* Attributes can be `key`, `fulltext`, and `unique`.
|
|
3786
3962
|
*
|
|
3787
3963
|
* @param {string} databaseId
|
|
3788
3964
|
* @param {string} collectionId
|
|
@@ -3833,6 +4009,7 @@
|
|
|
3833
4009
|
/**
|
|
3834
4010
|
* Get index
|
|
3835
4011
|
*
|
|
4012
|
+
* Get index by ID.
|
|
3836
4013
|
*
|
|
3837
4014
|
* @param {string} databaseId
|
|
3838
4015
|
* @param {string} collectionId
|
|
@@ -3862,6 +4039,7 @@
|
|
|
3862
4039
|
/**
|
|
3863
4040
|
* Delete index
|
|
3864
4041
|
*
|
|
4042
|
+
* Delete an index.
|
|
3865
4043
|
*
|
|
3866
4044
|
* @param {string} databaseId
|
|
3867
4045
|
* @param {string} collectionId
|
|
@@ -3919,7 +4097,7 @@
|
|
|
3919
4097
|
});
|
|
3920
4098
|
}
|
|
3921
4099
|
/**
|
|
3922
|
-
* Get usage stats
|
|
4100
|
+
* Get collection usage stats
|
|
3923
4101
|
*
|
|
3924
4102
|
*
|
|
3925
4103
|
* @param {string} databaseId
|
|
@@ -3974,7 +4152,7 @@
|
|
|
3974
4152
|
});
|
|
3975
4153
|
}
|
|
3976
4154
|
/**
|
|
3977
|
-
* Get usage stats
|
|
4155
|
+
* Get database usage stats
|
|
3978
4156
|
*
|
|
3979
4157
|
*
|
|
3980
4158
|
* @param {string} databaseId
|
|
@@ -4957,6 +5135,28 @@
|
|
|
4957
5135
|
}, payload);
|
|
4958
5136
|
});
|
|
4959
5137
|
}
|
|
5138
|
+
/**
|
|
5139
|
+
* Get the SSL certificate for a domain
|
|
5140
|
+
*
|
|
5141
|
+
* Get the SSL certificate for a domain
|
|
5142
|
+
*
|
|
5143
|
+
* @param {string} domain
|
|
5144
|
+
* @throws {AppwriteException}
|
|
5145
|
+
* @returns {Promise}
|
|
5146
|
+
*/
|
|
5147
|
+
getCertificate(domain) {
|
|
5148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5149
|
+
const apiPath = '/health/certificate';
|
|
5150
|
+
const payload = {};
|
|
5151
|
+
if (typeof domain !== 'undefined') {
|
|
5152
|
+
payload['domain'] = domain;
|
|
5153
|
+
}
|
|
5154
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5155
|
+
return yield this.client.call('get', uri, {
|
|
5156
|
+
'content-type': 'application/json',
|
|
5157
|
+
}, payload);
|
|
5158
|
+
});
|
|
5159
|
+
}
|
|
4960
5160
|
/**
|
|
4961
5161
|
* Get DB
|
|
4962
5162
|
*
|
|
@@ -5110,16 +5310,91 @@
|
|
|
5110
5310
|
});
|
|
5111
5311
|
}
|
|
5112
5312
|
/**
|
|
5113
|
-
* Get
|
|
5313
|
+
* Get number of failed queue jobs
|
|
5314
|
+
*
|
|
5315
|
+
* Returns the amount of failed jobs in a given queue.
|
|
5316
|
+
*
|
|
5317
|
+
*
|
|
5318
|
+
* @param {Name} name
|
|
5319
|
+
* @param {number} threshold
|
|
5320
|
+
* @throws {AppwriteException}
|
|
5321
|
+
* @returns {Promise}
|
|
5322
|
+
*/
|
|
5323
|
+
getFailedJobs(name, threshold) {
|
|
5324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5325
|
+
if (typeof name === 'undefined') {
|
|
5326
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
5327
|
+
}
|
|
5328
|
+
const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
|
|
5329
|
+
const payload = {};
|
|
5330
|
+
if (typeof threshold !== 'undefined') {
|
|
5331
|
+
payload['threshold'] = threshold;
|
|
5332
|
+
}
|
|
5333
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5334
|
+
return yield this.client.call('get', uri, {
|
|
5335
|
+
'content-type': 'application/json',
|
|
5336
|
+
}, payload);
|
|
5337
|
+
});
|
|
5338
|
+
}
|
|
5339
|
+
/**
|
|
5340
|
+
* Get functions queue
|
|
5341
|
+
*
|
|
5342
|
+
* Get the number of function executions that are waiting to be processed in
|
|
5343
|
+
* the Appwrite internal queue server.
|
|
5344
|
+
*
|
|
5345
|
+
* @param {number} threshold
|
|
5346
|
+
* @throws {AppwriteException}
|
|
5347
|
+
* @returns {Promise}
|
|
5348
|
+
*/
|
|
5349
|
+
getQueueFunctions(threshold) {
|
|
5350
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5351
|
+
const apiPath = '/health/queue/functions';
|
|
5352
|
+
const payload = {};
|
|
5353
|
+
if (typeof threshold !== 'undefined') {
|
|
5354
|
+
payload['threshold'] = threshold;
|
|
5355
|
+
}
|
|
5356
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5357
|
+
return yield this.client.call('get', uri, {
|
|
5358
|
+
'content-type': 'application/json',
|
|
5359
|
+
}, payload);
|
|
5360
|
+
});
|
|
5361
|
+
}
|
|
5362
|
+
/**
|
|
5363
|
+
* Get logs queue
|
|
5364
|
+
*
|
|
5365
|
+
* Get the number of logs that are waiting to be processed in the Appwrite
|
|
5366
|
+
* internal queue server.
|
|
5367
|
+
*
|
|
5368
|
+
* @param {number} threshold
|
|
5369
|
+
* @throws {AppwriteException}
|
|
5370
|
+
* @returns {Promise}
|
|
5371
|
+
*/
|
|
5372
|
+
getQueueLogs(threshold) {
|
|
5373
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5374
|
+
const apiPath = '/health/queue/logs';
|
|
5375
|
+
const payload = {};
|
|
5376
|
+
if (typeof threshold !== 'undefined') {
|
|
5377
|
+
payload['threshold'] = threshold;
|
|
5378
|
+
}
|
|
5379
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5380
|
+
return yield this.client.call('get', uri, {
|
|
5381
|
+
'content-type': 'application/json',
|
|
5382
|
+
}, payload);
|
|
5383
|
+
});
|
|
5384
|
+
}
|
|
5385
|
+
/**
|
|
5386
|
+
* Get mails queue
|
|
5114
5387
|
*
|
|
5388
|
+
* Get the number of mails that are waiting to be processed in the Appwrite
|
|
5389
|
+
* internal queue server.
|
|
5115
5390
|
*
|
|
5116
5391
|
* @param {number} threshold
|
|
5117
5392
|
* @throws {AppwriteException}
|
|
5118
5393
|
* @returns {Promise}
|
|
5119
5394
|
*/
|
|
5120
|
-
|
|
5395
|
+
getQueueMails(threshold) {
|
|
5121
5396
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5122
|
-
const apiPath = '/health/queue/
|
|
5397
|
+
const apiPath = '/health/queue/mails';
|
|
5123
5398
|
const payload = {};
|
|
5124
5399
|
if (typeof threshold !== 'undefined') {
|
|
5125
5400
|
payload['threshold'] = threshold;
|
|
@@ -5131,18 +5406,18 @@
|
|
|
5131
5406
|
});
|
|
5132
5407
|
}
|
|
5133
5408
|
/**
|
|
5134
|
-
* Get
|
|
5409
|
+
* Get messaging queue
|
|
5135
5410
|
*
|
|
5136
|
-
* Get the number of
|
|
5411
|
+
* Get the number of messages that are waiting to be processed in the Appwrite
|
|
5137
5412
|
* internal queue server.
|
|
5138
5413
|
*
|
|
5139
5414
|
* @param {number} threshold
|
|
5140
5415
|
* @throws {AppwriteException}
|
|
5141
5416
|
* @returns {Promise}
|
|
5142
5417
|
*/
|
|
5143
|
-
|
|
5418
|
+
getQueueMessaging(threshold) {
|
|
5144
5419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5145
|
-
const apiPath = '/health/queue/
|
|
5420
|
+
const apiPath = '/health/queue/messaging';
|
|
5146
5421
|
const payload = {};
|
|
5147
5422
|
if (typeof threshold !== 'undefined') {
|
|
5148
5423
|
payload['threshold'] = threshold;
|
|
@@ -5154,18 +5429,18 @@
|
|
|
5154
5429
|
});
|
|
5155
5430
|
}
|
|
5156
5431
|
/**
|
|
5157
|
-
* Get
|
|
5432
|
+
* Get migrations queue
|
|
5158
5433
|
*
|
|
5159
|
-
* Get the number of
|
|
5160
|
-
* internal queue server.
|
|
5434
|
+
* Get the number of migrations that are waiting to be processed in the
|
|
5435
|
+
* Appwrite internal queue server.
|
|
5161
5436
|
*
|
|
5162
5437
|
* @param {number} threshold
|
|
5163
5438
|
* @throws {AppwriteException}
|
|
5164
5439
|
* @returns {Promise}
|
|
5165
5440
|
*/
|
|
5166
|
-
|
|
5441
|
+
getQueueMigrations(threshold) {
|
|
5167
5442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5168
|
-
const apiPath = '/health/queue/
|
|
5443
|
+
const apiPath = '/health/queue/migrations';
|
|
5169
5444
|
const payload = {};
|
|
5170
5445
|
if (typeof threshold !== 'undefined') {
|
|
5171
5446
|
payload['threshold'] = threshold;
|
|
@@ -5177,18 +5452,18 @@
|
|
|
5177
5452
|
});
|
|
5178
5453
|
}
|
|
5179
5454
|
/**
|
|
5180
|
-
* Get
|
|
5455
|
+
* Get usage queue
|
|
5181
5456
|
*
|
|
5182
|
-
* Get the number of
|
|
5457
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
5183
5458
|
* internal queue server.
|
|
5184
5459
|
*
|
|
5185
5460
|
* @param {number} threshold
|
|
5186
5461
|
* @throws {AppwriteException}
|
|
5187
5462
|
* @returns {Promise}
|
|
5188
5463
|
*/
|
|
5189
|
-
|
|
5464
|
+
getQueueUsage(threshold) {
|
|
5190
5465
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5191
|
-
const apiPath = '/health/queue/
|
|
5466
|
+
const apiPath = '/health/queue/usage';
|
|
5192
5467
|
const payload = {};
|
|
5193
5468
|
if (typeof threshold !== 'undefined') {
|
|
5194
5469
|
payload['threshold'] = threshold;
|
|
@@ -5200,18 +5475,18 @@
|
|
|
5200
5475
|
});
|
|
5201
5476
|
}
|
|
5202
5477
|
/**
|
|
5203
|
-
* Get
|
|
5478
|
+
* Get usage dump queue
|
|
5204
5479
|
*
|
|
5205
|
-
* Get the number of
|
|
5206
|
-
* Appwrite internal queue server.
|
|
5480
|
+
* Get the number of projects containing metrics that are waiting to be
|
|
5481
|
+
* processed in the Appwrite internal queue server.
|
|
5207
5482
|
*
|
|
5208
5483
|
* @param {number} threshold
|
|
5209
5484
|
* @throws {AppwriteException}
|
|
5210
5485
|
* @returns {Promise}
|
|
5211
5486
|
*/
|
|
5212
|
-
|
|
5487
|
+
getQueueUsageDump(threshold) {
|
|
5213
5488
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5214
|
-
const apiPath = '/health/queue/
|
|
5489
|
+
const apiPath = '/health/queue/usage-dump';
|
|
5215
5490
|
const payload = {};
|
|
5216
5491
|
if (typeof threshold !== 'undefined') {
|
|
5217
5492
|
payload['threshold'] = threshold;
|
|
@@ -5245,6 +5520,24 @@
|
|
|
5245
5520
|
}, payload);
|
|
5246
5521
|
});
|
|
5247
5522
|
}
|
|
5523
|
+
/**
|
|
5524
|
+
* Get storage
|
|
5525
|
+
*
|
|
5526
|
+
* Check the Appwrite storage device is up and connection is successful.
|
|
5527
|
+
*
|
|
5528
|
+
* @throws {AppwriteException}
|
|
5529
|
+
* @returns {Promise}
|
|
5530
|
+
*/
|
|
5531
|
+
getStorage() {
|
|
5532
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5533
|
+
const apiPath = '/health/storage';
|
|
5534
|
+
const payload = {};
|
|
5535
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5536
|
+
return yield this.client.call('get', uri, {
|
|
5537
|
+
'content-type': 'application/json',
|
|
5538
|
+
}, payload);
|
|
5539
|
+
});
|
|
5540
|
+
}
|
|
5248
5541
|
/**
|
|
5249
5542
|
* Get local storage
|
|
5250
5543
|
*
|
|
@@ -5459,6 +5752,7 @@
|
|
|
5459
5752
|
/**
|
|
5460
5753
|
* List messages
|
|
5461
5754
|
*
|
|
5755
|
+
* Get a list of all messages from the current Appwrite project.
|
|
5462
5756
|
*
|
|
5463
5757
|
* @param {string[]} queries
|
|
5464
5758
|
* @param {string} search
|
|
@@ -5482,8 +5776,9 @@
|
|
|
5482
5776
|
});
|
|
5483
5777
|
}
|
|
5484
5778
|
/**
|
|
5485
|
-
* Create
|
|
5779
|
+
* Create email
|
|
5486
5780
|
*
|
|
5781
|
+
* Create a new email message.
|
|
5487
5782
|
*
|
|
5488
5783
|
* @param {string} messageId
|
|
5489
5784
|
* @param {string} subject
|
|
@@ -5493,13 +5788,14 @@
|
|
|
5493
5788
|
* @param {string[]} targets
|
|
5494
5789
|
* @param {string[]} cc
|
|
5495
5790
|
* @param {string[]} bcc
|
|
5496
|
-
* @param {
|
|
5791
|
+
* @param {string[]} attachments
|
|
5792
|
+
* @param {boolean} draft
|
|
5497
5793
|
* @param {boolean} html
|
|
5498
5794
|
* @param {string} scheduledAt
|
|
5499
5795
|
* @throws {AppwriteException}
|
|
5500
5796
|
* @returns {Promise}
|
|
5501
5797
|
*/
|
|
5502
|
-
createEmail(messageId, subject, content, topics, users, targets, cc, bcc,
|
|
5798
|
+
createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
|
|
5503
5799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5504
5800
|
if (typeof messageId === 'undefined') {
|
|
5505
5801
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5536,8 +5832,11 @@
|
|
|
5536
5832
|
if (typeof bcc !== 'undefined') {
|
|
5537
5833
|
payload['bcc'] = bcc;
|
|
5538
5834
|
}
|
|
5539
|
-
if (typeof
|
|
5540
|
-
payload['
|
|
5835
|
+
if (typeof attachments !== 'undefined') {
|
|
5836
|
+
payload['attachments'] = attachments;
|
|
5837
|
+
}
|
|
5838
|
+
if (typeof draft !== 'undefined') {
|
|
5839
|
+
payload['draft'] = draft;
|
|
5541
5840
|
}
|
|
5542
5841
|
if (typeof html !== 'undefined') {
|
|
5543
5842
|
payload['html'] = html;
|
|
@@ -5552,7 +5851,9 @@
|
|
|
5552
5851
|
});
|
|
5553
5852
|
}
|
|
5554
5853
|
/**
|
|
5555
|
-
* Update
|
|
5854
|
+
* Update email
|
|
5855
|
+
*
|
|
5856
|
+
* Update an email message by its unique ID.
|
|
5556
5857
|
*
|
|
5557
5858
|
*
|
|
5558
5859
|
* @param {string} messageId
|
|
@@ -5561,7 +5862,7 @@
|
|
|
5561
5862
|
* @param {string[]} targets
|
|
5562
5863
|
* @param {string} subject
|
|
5563
5864
|
* @param {string} content
|
|
5564
|
-
* @param {
|
|
5865
|
+
* @param {boolean} draft
|
|
5565
5866
|
* @param {boolean} html
|
|
5566
5867
|
* @param {string[]} cc
|
|
5567
5868
|
* @param {string[]} bcc
|
|
@@ -5569,7 +5870,7 @@
|
|
|
5569
5870
|
* @throws {AppwriteException}
|
|
5570
5871
|
* @returns {Promise}
|
|
5571
5872
|
*/
|
|
5572
|
-
updateEmail(messageId, topics, users, targets, subject, content,
|
|
5873
|
+
updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt) {
|
|
5573
5874
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5574
5875
|
if (typeof messageId === 'undefined') {
|
|
5575
5876
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5591,8 +5892,8 @@
|
|
|
5591
5892
|
if (typeof content !== 'undefined') {
|
|
5592
5893
|
payload['content'] = content;
|
|
5593
5894
|
}
|
|
5594
|
-
if (typeof
|
|
5595
|
-
payload['
|
|
5895
|
+
if (typeof draft !== 'undefined') {
|
|
5896
|
+
payload['draft'] = draft;
|
|
5596
5897
|
}
|
|
5597
5898
|
if (typeof html !== 'undefined') {
|
|
5598
5899
|
payload['html'] = html;
|
|
@@ -5613,8 +5914,9 @@
|
|
|
5613
5914
|
});
|
|
5614
5915
|
}
|
|
5615
5916
|
/**
|
|
5616
|
-
* Create
|
|
5917
|
+
* Create push notification
|
|
5617
5918
|
*
|
|
5919
|
+
* Create a new push notification.
|
|
5618
5920
|
*
|
|
5619
5921
|
* @param {string} messageId
|
|
5620
5922
|
* @param {string} title
|
|
@@ -5624,17 +5926,18 @@
|
|
|
5624
5926
|
* @param {string[]} targets
|
|
5625
5927
|
* @param {object} data
|
|
5626
5928
|
* @param {string} action
|
|
5929
|
+
* @param {string} image
|
|
5627
5930
|
* @param {string} icon
|
|
5628
5931
|
* @param {string} sound
|
|
5629
5932
|
* @param {string} color
|
|
5630
5933
|
* @param {string} tag
|
|
5631
5934
|
* @param {string} badge
|
|
5632
|
-
* @param {
|
|
5935
|
+
* @param {boolean} draft
|
|
5633
5936
|
* @param {string} scheduledAt
|
|
5634
5937
|
* @throws {AppwriteException}
|
|
5635
5938
|
* @returns {Promise}
|
|
5636
5939
|
*/
|
|
5637
|
-
createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge,
|
|
5940
|
+
createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
|
5638
5941
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5639
5942
|
if (typeof messageId === 'undefined') {
|
|
5640
5943
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5671,6 +5974,9 @@
|
|
|
5671
5974
|
if (typeof action !== 'undefined') {
|
|
5672
5975
|
payload['action'] = action;
|
|
5673
5976
|
}
|
|
5977
|
+
if (typeof image !== 'undefined') {
|
|
5978
|
+
payload['image'] = image;
|
|
5979
|
+
}
|
|
5674
5980
|
if (typeof icon !== 'undefined') {
|
|
5675
5981
|
payload['icon'] = icon;
|
|
5676
5982
|
}
|
|
@@ -5686,8 +5992,8 @@
|
|
|
5686
5992
|
if (typeof badge !== 'undefined') {
|
|
5687
5993
|
payload['badge'] = badge;
|
|
5688
5994
|
}
|
|
5689
|
-
if (typeof
|
|
5690
|
-
payload['
|
|
5995
|
+
if (typeof draft !== 'undefined') {
|
|
5996
|
+
payload['draft'] = draft;
|
|
5691
5997
|
}
|
|
5692
5998
|
if (typeof scheduledAt !== 'undefined') {
|
|
5693
5999
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5699,7 +6005,9 @@
|
|
|
5699
6005
|
});
|
|
5700
6006
|
}
|
|
5701
6007
|
/**
|
|
5702
|
-
* Update
|
|
6008
|
+
* Update push notification
|
|
6009
|
+
*
|
|
6010
|
+
* Update a push notification by its unique ID.
|
|
5703
6011
|
*
|
|
5704
6012
|
*
|
|
5705
6013
|
* @param {string} messageId
|
|
@@ -5710,17 +6018,18 @@
|
|
|
5710
6018
|
* @param {string} body
|
|
5711
6019
|
* @param {object} data
|
|
5712
6020
|
* @param {string} action
|
|
6021
|
+
* @param {string} image
|
|
5713
6022
|
* @param {string} icon
|
|
5714
6023
|
* @param {string} sound
|
|
5715
6024
|
* @param {string} color
|
|
5716
6025
|
* @param {string} tag
|
|
5717
6026
|
* @param {number} badge
|
|
5718
|
-
* @param {
|
|
6027
|
+
* @param {boolean} draft
|
|
5719
6028
|
* @param {string} scheduledAt
|
|
5720
6029
|
* @throws {AppwriteException}
|
|
5721
6030
|
* @returns {Promise}
|
|
5722
6031
|
*/
|
|
5723
|
-
updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge,
|
|
6032
|
+
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
|
|
5724
6033
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5725
6034
|
if (typeof messageId === 'undefined') {
|
|
5726
6035
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5748,6 +6057,9 @@
|
|
|
5748
6057
|
if (typeof action !== 'undefined') {
|
|
5749
6058
|
payload['action'] = action;
|
|
5750
6059
|
}
|
|
6060
|
+
if (typeof image !== 'undefined') {
|
|
6061
|
+
payload['image'] = image;
|
|
6062
|
+
}
|
|
5751
6063
|
if (typeof icon !== 'undefined') {
|
|
5752
6064
|
payload['icon'] = icon;
|
|
5753
6065
|
}
|
|
@@ -5763,8 +6075,8 @@
|
|
|
5763
6075
|
if (typeof badge !== 'undefined') {
|
|
5764
6076
|
payload['badge'] = badge;
|
|
5765
6077
|
}
|
|
5766
|
-
if (typeof
|
|
5767
|
-
payload['
|
|
6078
|
+
if (typeof draft !== 'undefined') {
|
|
6079
|
+
payload['draft'] = draft;
|
|
5768
6080
|
}
|
|
5769
6081
|
if (typeof scheduledAt !== 'undefined') {
|
|
5770
6082
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5776,20 +6088,21 @@
|
|
|
5776
6088
|
});
|
|
5777
6089
|
}
|
|
5778
6090
|
/**
|
|
5779
|
-
* Create
|
|
6091
|
+
* Create SMS
|
|
5780
6092
|
*
|
|
6093
|
+
* Create a new SMS message.
|
|
5781
6094
|
*
|
|
5782
6095
|
* @param {string} messageId
|
|
5783
6096
|
* @param {string} content
|
|
5784
6097
|
* @param {string[]} topics
|
|
5785
6098
|
* @param {string[]} users
|
|
5786
6099
|
* @param {string[]} targets
|
|
5787
|
-
* @param {
|
|
6100
|
+
* @param {boolean} draft
|
|
5788
6101
|
* @param {string} scheduledAt
|
|
5789
6102
|
* @throws {AppwriteException}
|
|
5790
6103
|
* @returns {Promise}
|
|
5791
6104
|
*/
|
|
5792
|
-
|
|
6105
|
+
createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
|
|
5793
6106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5794
6107
|
if (typeof messageId === 'undefined') {
|
|
5795
6108
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5814,8 +6127,8 @@
|
|
|
5814
6127
|
if (typeof targets !== 'undefined') {
|
|
5815
6128
|
payload['targets'] = targets;
|
|
5816
6129
|
}
|
|
5817
|
-
if (typeof
|
|
5818
|
-
payload['
|
|
6130
|
+
if (typeof draft !== 'undefined') {
|
|
6131
|
+
payload['draft'] = draft;
|
|
5819
6132
|
}
|
|
5820
6133
|
if (typeof scheduledAt !== 'undefined') {
|
|
5821
6134
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5827,7 +6140,9 @@
|
|
|
5827
6140
|
});
|
|
5828
6141
|
}
|
|
5829
6142
|
/**
|
|
5830
|
-
* Update
|
|
6143
|
+
* Update SMS
|
|
6144
|
+
*
|
|
6145
|
+
* Update an email message by its unique ID.
|
|
5831
6146
|
*
|
|
5832
6147
|
*
|
|
5833
6148
|
* @param {string} messageId
|
|
@@ -5835,12 +6150,12 @@
|
|
|
5835
6150
|
* @param {string[]} users
|
|
5836
6151
|
* @param {string[]} targets
|
|
5837
6152
|
* @param {string} content
|
|
5838
|
-
* @param {
|
|
6153
|
+
* @param {boolean} draft
|
|
5839
6154
|
* @param {string} scheduledAt
|
|
5840
6155
|
* @throws {AppwriteException}
|
|
5841
6156
|
* @returns {Promise}
|
|
5842
6157
|
*/
|
|
5843
|
-
|
|
6158
|
+
updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
|
|
5844
6159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5845
6160
|
if (typeof messageId === 'undefined') {
|
|
5846
6161
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5859,8 +6174,8 @@
|
|
|
5859
6174
|
if (typeof content !== 'undefined') {
|
|
5860
6175
|
payload['content'] = content;
|
|
5861
6176
|
}
|
|
5862
|
-
if (typeof
|
|
5863
|
-
payload['
|
|
6177
|
+
if (typeof draft !== 'undefined') {
|
|
6178
|
+
payload['draft'] = draft;
|
|
5864
6179
|
}
|
|
5865
6180
|
if (typeof scheduledAt !== 'undefined') {
|
|
5866
6181
|
payload['scheduledAt'] = scheduledAt;
|
|
@@ -5872,7 +6187,9 @@
|
|
|
5872
6187
|
});
|
|
5873
6188
|
}
|
|
5874
6189
|
/**
|
|
5875
|
-
* Get
|
|
6190
|
+
* Get message
|
|
6191
|
+
*
|
|
6192
|
+
* Get a message by its unique ID.
|
|
5876
6193
|
*
|
|
5877
6194
|
*
|
|
5878
6195
|
* @param {string} messageId
|
|
@@ -5893,8 +6210,10 @@
|
|
|
5893
6210
|
});
|
|
5894
6211
|
}
|
|
5895
6212
|
/**
|
|
5896
|
-
* Delete
|
|
6213
|
+
* Delete message
|
|
5897
6214
|
*
|
|
6215
|
+
* Delete a message. If the message is not a draft or scheduled, but has been
|
|
6216
|
+
* sent, this will not recall the message.
|
|
5898
6217
|
*
|
|
5899
6218
|
* @param {string} messageId
|
|
5900
6219
|
* @throws {AppwriteException}
|
|
@@ -5916,6 +6235,7 @@
|
|
|
5916
6235
|
/**
|
|
5917
6236
|
* List message logs
|
|
5918
6237
|
*
|
|
6238
|
+
* Get the message activity logs listed by its unique ID.
|
|
5919
6239
|
*
|
|
5920
6240
|
* @param {string} messageId
|
|
5921
6241
|
* @param {string[]} queries
|
|
@@ -5941,8 +6261,7 @@
|
|
|
5941
6261
|
/**
|
|
5942
6262
|
* List message targets
|
|
5943
6263
|
*
|
|
5944
|
-
*
|
|
5945
|
-
* attribute.
|
|
6264
|
+
* Get a list of the targets associated with a message.
|
|
5946
6265
|
*
|
|
5947
6266
|
* @param {string} messageId
|
|
5948
6267
|
* @param {string[]} queries
|
|
@@ -5968,6 +6287,7 @@
|
|
|
5968
6287
|
/**
|
|
5969
6288
|
* List providers
|
|
5970
6289
|
*
|
|
6290
|
+
* Get a list of all providers from the current Appwrite project.
|
|
5971
6291
|
*
|
|
5972
6292
|
* @param {string[]} queries
|
|
5973
6293
|
* @param {string} search
|
|
@@ -5993,6 +6313,7 @@
|
|
|
5993
6313
|
/**
|
|
5994
6314
|
* Create APNS provider
|
|
5995
6315
|
*
|
|
6316
|
+
* Create a new Apple Push Notification service provider.
|
|
5996
6317
|
*
|
|
5997
6318
|
* @param {string} providerId
|
|
5998
6319
|
* @param {string} name
|
|
@@ -6000,11 +6321,12 @@
|
|
|
6000
6321
|
* @param {string} authKeyId
|
|
6001
6322
|
* @param {string} teamId
|
|
6002
6323
|
* @param {string} bundleId
|
|
6324
|
+
* @param {boolean} sandbox
|
|
6003
6325
|
* @param {boolean} enabled
|
|
6004
6326
|
* @throws {AppwriteException}
|
|
6005
6327
|
* @returns {Promise}
|
|
6006
6328
|
*/
|
|
6007
|
-
|
|
6329
|
+
createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
|
|
6008
6330
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6009
6331
|
if (typeof providerId === 'undefined') {
|
|
6010
6332
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6032,6 +6354,9 @@
|
|
|
6032
6354
|
if (typeof bundleId !== 'undefined') {
|
|
6033
6355
|
payload['bundleId'] = bundleId;
|
|
6034
6356
|
}
|
|
6357
|
+
if (typeof sandbox !== 'undefined') {
|
|
6358
|
+
payload['sandbox'] = sandbox;
|
|
6359
|
+
}
|
|
6035
6360
|
if (typeof enabled !== 'undefined') {
|
|
6036
6361
|
payload['enabled'] = enabled;
|
|
6037
6362
|
}
|
|
@@ -6044,6 +6369,7 @@
|
|
|
6044
6369
|
/**
|
|
6045
6370
|
* Update APNS provider
|
|
6046
6371
|
*
|
|
6372
|
+
* Update a Apple Push Notification service provider by its unique ID.
|
|
6047
6373
|
*
|
|
6048
6374
|
* @param {string} providerId
|
|
6049
6375
|
* @param {string} name
|
|
@@ -6052,10 +6378,11 @@
|
|
|
6052
6378
|
* @param {string} authKeyId
|
|
6053
6379
|
* @param {string} teamId
|
|
6054
6380
|
* @param {string} bundleId
|
|
6381
|
+
* @param {boolean} sandbox
|
|
6055
6382
|
* @throws {AppwriteException}
|
|
6056
6383
|
* @returns {Promise}
|
|
6057
6384
|
*/
|
|
6058
|
-
|
|
6385
|
+
updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
|
|
6059
6386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6060
6387
|
if (typeof providerId === 'undefined') {
|
|
6061
6388
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6080,6 +6407,9 @@
|
|
|
6080
6407
|
if (typeof bundleId !== 'undefined') {
|
|
6081
6408
|
payload['bundleId'] = bundleId;
|
|
6082
6409
|
}
|
|
6410
|
+
if (typeof sandbox !== 'undefined') {
|
|
6411
|
+
payload['sandbox'] = sandbox;
|
|
6412
|
+
}
|
|
6083
6413
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6084
6414
|
return yield this.client.call('patch', uri, {
|
|
6085
6415
|
'content-type': 'application/json',
|
|
@@ -6089,6 +6419,7 @@
|
|
|
6089
6419
|
/**
|
|
6090
6420
|
* Create FCM provider
|
|
6091
6421
|
*
|
|
6422
|
+
* Create a new Firebase Cloud Messaging provider.
|
|
6092
6423
|
*
|
|
6093
6424
|
* @param {string} providerId
|
|
6094
6425
|
* @param {string} name
|
|
@@ -6097,7 +6428,7 @@
|
|
|
6097
6428
|
* @throws {AppwriteException}
|
|
6098
6429
|
* @returns {Promise}
|
|
6099
6430
|
*/
|
|
6100
|
-
|
|
6431
|
+
createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
|
|
6101
6432
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6102
6433
|
if (typeof providerId === 'undefined') {
|
|
6103
6434
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6128,6 +6459,7 @@
|
|
|
6128
6459
|
/**
|
|
6129
6460
|
* Update FCM provider
|
|
6130
6461
|
*
|
|
6462
|
+
* Update a Firebase Cloud Messaging provider by its unique ID.
|
|
6131
6463
|
*
|
|
6132
6464
|
* @param {string} providerId
|
|
6133
6465
|
* @param {string} name
|
|
@@ -6136,7 +6468,7 @@
|
|
|
6136
6468
|
* @throws {AppwriteException}
|
|
6137
6469
|
* @returns {Promise}
|
|
6138
6470
|
*/
|
|
6139
|
-
|
|
6471
|
+
updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
|
|
6140
6472
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6141
6473
|
if (typeof providerId === 'undefined') {
|
|
6142
6474
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6161,6 +6493,7 @@
|
|
|
6161
6493
|
/**
|
|
6162
6494
|
* Create Mailgun provider
|
|
6163
6495
|
*
|
|
6496
|
+
* Create a new Mailgun provider.
|
|
6164
6497
|
*
|
|
6165
6498
|
* @param {string} providerId
|
|
6166
6499
|
* @param {string} name
|
|
@@ -6224,6 +6557,7 @@
|
|
|
6224
6557
|
/**
|
|
6225
6558
|
* Update Mailgun provider
|
|
6226
6559
|
*
|
|
6560
|
+
* Update a Mailgun provider by its unique ID.
|
|
6227
6561
|
*
|
|
6228
6562
|
* @param {string} providerId
|
|
6229
6563
|
* @param {string} name
|
|
@@ -6281,6 +6615,7 @@
|
|
|
6281
6615
|
/**
|
|
6282
6616
|
* Create Msg91 provider
|
|
6283
6617
|
*
|
|
6618
|
+
* Create a new MSG91 provider.
|
|
6284
6619
|
*
|
|
6285
6620
|
* @param {string} providerId
|
|
6286
6621
|
* @param {string} name
|
|
@@ -6328,6 +6663,7 @@
|
|
|
6328
6663
|
/**
|
|
6329
6664
|
* Update Msg91 provider
|
|
6330
6665
|
*
|
|
6666
|
+
* Update a MSG91 provider by its unique ID.
|
|
6331
6667
|
*
|
|
6332
6668
|
* @param {string} providerId
|
|
6333
6669
|
* @param {string} name
|
|
@@ -6369,6 +6705,7 @@
|
|
|
6369
6705
|
/**
|
|
6370
6706
|
* Create Sendgrid provider
|
|
6371
6707
|
*
|
|
6708
|
+
* Create a new Sendgrid provider.
|
|
6372
6709
|
*
|
|
6373
6710
|
* @param {string} providerId
|
|
6374
6711
|
* @param {string} name
|
|
@@ -6424,6 +6761,7 @@
|
|
|
6424
6761
|
/**
|
|
6425
6762
|
* Update Sendgrid provider
|
|
6426
6763
|
*
|
|
6764
|
+
* Update a Sendgrid provider by its unique ID.
|
|
6427
6765
|
*
|
|
6428
6766
|
* @param {string} providerId
|
|
6429
6767
|
* @param {string} name
|
|
@@ -6473,6 +6811,7 @@
|
|
|
6473
6811
|
/**
|
|
6474
6812
|
* Create SMTP provider
|
|
6475
6813
|
*
|
|
6814
|
+
* Create a new SMTP provider.
|
|
6476
6815
|
*
|
|
6477
6816
|
* @param {string} providerId
|
|
6478
6817
|
* @param {string} name
|
|
@@ -6480,7 +6819,7 @@
|
|
|
6480
6819
|
* @param {number} port
|
|
6481
6820
|
* @param {string} username
|
|
6482
6821
|
* @param {string} password
|
|
6483
|
-
* @param {
|
|
6822
|
+
* @param {SmtpEncryption} encryption
|
|
6484
6823
|
* @param {boolean} autoTLS
|
|
6485
6824
|
* @param {string} mailer
|
|
6486
6825
|
* @param {string} fromName
|
|
@@ -6491,7 +6830,7 @@
|
|
|
6491
6830
|
* @throws {AppwriteException}
|
|
6492
6831
|
* @returns {Promise}
|
|
6493
6832
|
*/
|
|
6494
|
-
|
|
6833
|
+
createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6495
6834
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6496
6835
|
if (typeof providerId === 'undefined') {
|
|
6497
6836
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6555,6 +6894,7 @@
|
|
|
6555
6894
|
/**
|
|
6556
6895
|
* Update SMTP provider
|
|
6557
6896
|
*
|
|
6897
|
+
* Update a SMTP provider by its unique ID.
|
|
6558
6898
|
*
|
|
6559
6899
|
* @param {string} providerId
|
|
6560
6900
|
* @param {string} name
|
|
@@ -6562,8 +6902,9 @@
|
|
|
6562
6902
|
* @param {number} port
|
|
6563
6903
|
* @param {string} username
|
|
6564
6904
|
* @param {string} password
|
|
6565
|
-
* @param {
|
|
6905
|
+
* @param {SmtpEncryption} encryption
|
|
6566
6906
|
* @param {boolean} autoTLS
|
|
6907
|
+
* @param {string} mailer
|
|
6567
6908
|
* @param {string} fromName
|
|
6568
6909
|
* @param {string} fromEmail
|
|
6569
6910
|
* @param {string} replyToName
|
|
@@ -6572,7 +6913,7 @@
|
|
|
6572
6913
|
* @throws {AppwriteException}
|
|
6573
6914
|
* @returns {Promise}
|
|
6574
6915
|
*/
|
|
6575
|
-
|
|
6916
|
+
updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6576
6917
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6577
6918
|
if (typeof providerId === 'undefined') {
|
|
6578
6919
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6600,6 +6941,9 @@
|
|
|
6600
6941
|
if (typeof autoTLS !== 'undefined') {
|
|
6601
6942
|
payload['autoTLS'] = autoTLS;
|
|
6602
6943
|
}
|
|
6944
|
+
if (typeof mailer !== 'undefined') {
|
|
6945
|
+
payload['mailer'] = mailer;
|
|
6946
|
+
}
|
|
6603
6947
|
if (typeof fromName !== 'undefined') {
|
|
6604
6948
|
payload['fromName'] = fromName;
|
|
6605
6949
|
}
|
|
@@ -6624,17 +6968,18 @@
|
|
|
6624
6968
|
/**
|
|
6625
6969
|
* Create Telesign provider
|
|
6626
6970
|
*
|
|
6971
|
+
* Create a new Telesign provider.
|
|
6627
6972
|
*
|
|
6628
6973
|
* @param {string} providerId
|
|
6629
6974
|
* @param {string} name
|
|
6630
6975
|
* @param {string} from
|
|
6631
|
-
* @param {string}
|
|
6632
|
-
* @param {string}
|
|
6976
|
+
* @param {string} customerId
|
|
6977
|
+
* @param {string} apiKey
|
|
6633
6978
|
* @param {boolean} enabled
|
|
6634
6979
|
* @throws {AppwriteException}
|
|
6635
6980
|
* @returns {Promise}
|
|
6636
6981
|
*/
|
|
6637
|
-
createTelesignProvider(providerId, name, from,
|
|
6982
|
+
createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
|
|
6638
6983
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6639
6984
|
if (typeof providerId === 'undefined') {
|
|
6640
6985
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6653,11 +6998,11 @@
|
|
|
6653
6998
|
if (typeof from !== 'undefined') {
|
|
6654
6999
|
payload['from'] = from;
|
|
6655
7000
|
}
|
|
6656
|
-
if (typeof
|
|
6657
|
-
payload['
|
|
7001
|
+
if (typeof customerId !== 'undefined') {
|
|
7002
|
+
payload['customerId'] = customerId;
|
|
6658
7003
|
}
|
|
6659
|
-
if (typeof
|
|
6660
|
-
payload['
|
|
7004
|
+
if (typeof apiKey !== 'undefined') {
|
|
7005
|
+
payload['apiKey'] = apiKey;
|
|
6661
7006
|
}
|
|
6662
7007
|
if (typeof enabled !== 'undefined') {
|
|
6663
7008
|
payload['enabled'] = enabled;
|
|
@@ -6671,17 +7016,18 @@
|
|
|
6671
7016
|
/**
|
|
6672
7017
|
* Update Telesign provider
|
|
6673
7018
|
*
|
|
7019
|
+
* Update a Telesign provider by its unique ID.
|
|
6674
7020
|
*
|
|
6675
7021
|
* @param {string} providerId
|
|
6676
7022
|
* @param {string} name
|
|
6677
7023
|
* @param {boolean} enabled
|
|
6678
|
-
* @param {string}
|
|
6679
|
-
* @param {string}
|
|
7024
|
+
* @param {string} customerId
|
|
7025
|
+
* @param {string} apiKey
|
|
6680
7026
|
* @param {string} from
|
|
6681
7027
|
* @throws {AppwriteException}
|
|
6682
7028
|
* @returns {Promise}
|
|
6683
7029
|
*/
|
|
6684
|
-
updateTelesignProvider(providerId, name, enabled,
|
|
7030
|
+
updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
|
|
6685
7031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6686
7032
|
if (typeof providerId === 'undefined') {
|
|
6687
7033
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6694,11 +7040,11 @@
|
|
|
6694
7040
|
if (typeof enabled !== 'undefined') {
|
|
6695
7041
|
payload['enabled'] = enabled;
|
|
6696
7042
|
}
|
|
6697
|
-
if (typeof
|
|
6698
|
-
payload['
|
|
7043
|
+
if (typeof customerId !== 'undefined') {
|
|
7044
|
+
payload['customerId'] = customerId;
|
|
6699
7045
|
}
|
|
6700
|
-
if (typeof
|
|
6701
|
-
payload['
|
|
7046
|
+
if (typeof apiKey !== 'undefined') {
|
|
7047
|
+
payload['apiKey'] = apiKey;
|
|
6702
7048
|
}
|
|
6703
7049
|
if (typeof from !== 'undefined') {
|
|
6704
7050
|
payload['from'] = from;
|
|
@@ -6712,6 +7058,7 @@
|
|
|
6712
7058
|
/**
|
|
6713
7059
|
* Create Textmagic provider
|
|
6714
7060
|
*
|
|
7061
|
+
* Create a new Textmagic provider.
|
|
6715
7062
|
*
|
|
6716
7063
|
* @param {string} providerId
|
|
6717
7064
|
* @param {string} name
|
|
@@ -6759,6 +7106,7 @@
|
|
|
6759
7106
|
/**
|
|
6760
7107
|
* Update Textmagic provider
|
|
6761
7108
|
*
|
|
7109
|
+
* Update a Textmagic provider by its unique ID.
|
|
6762
7110
|
*
|
|
6763
7111
|
* @param {string} providerId
|
|
6764
7112
|
* @param {string} name
|
|
@@ -6800,6 +7148,7 @@
|
|
|
6800
7148
|
/**
|
|
6801
7149
|
* Create Twilio provider
|
|
6802
7150
|
*
|
|
7151
|
+
* Create a new Twilio provider.
|
|
6803
7152
|
*
|
|
6804
7153
|
* @param {string} providerId
|
|
6805
7154
|
* @param {string} name
|
|
@@ -6847,6 +7196,7 @@
|
|
|
6847
7196
|
/**
|
|
6848
7197
|
* Update Twilio provider
|
|
6849
7198
|
*
|
|
7199
|
+
* Update a Twilio provider by its unique ID.
|
|
6850
7200
|
*
|
|
6851
7201
|
* @param {string} providerId
|
|
6852
7202
|
* @param {string} name
|
|
@@ -6888,6 +7238,7 @@
|
|
|
6888
7238
|
/**
|
|
6889
7239
|
* Create Vonage provider
|
|
6890
7240
|
*
|
|
7241
|
+
* Create a new Vonage provider.
|
|
6891
7242
|
*
|
|
6892
7243
|
* @param {string} providerId
|
|
6893
7244
|
* @param {string} name
|
|
@@ -6935,6 +7286,7 @@
|
|
|
6935
7286
|
/**
|
|
6936
7287
|
* Update Vonage provider
|
|
6937
7288
|
*
|
|
7289
|
+
* Update a Vonage provider by its unique ID.
|
|
6938
7290
|
*
|
|
6939
7291
|
* @param {string} providerId
|
|
6940
7292
|
* @param {string} name
|
|
@@ -6976,6 +7328,8 @@
|
|
|
6976
7328
|
/**
|
|
6977
7329
|
* Get provider
|
|
6978
7330
|
*
|
|
7331
|
+
* Get a provider by its unique ID.
|
|
7332
|
+
*
|
|
6979
7333
|
*
|
|
6980
7334
|
* @param {string} providerId
|
|
6981
7335
|
* @throws {AppwriteException}
|
|
@@ -6997,6 +7351,7 @@
|
|
|
6997
7351
|
/**
|
|
6998
7352
|
* Delete provider
|
|
6999
7353
|
*
|
|
7354
|
+
* Delete a provider by its unique ID.
|
|
7000
7355
|
*
|
|
7001
7356
|
* @param {string} providerId
|
|
7002
7357
|
* @throws {AppwriteException}
|
|
@@ -7018,6 +7373,7 @@
|
|
|
7018
7373
|
/**
|
|
7019
7374
|
* List provider logs
|
|
7020
7375
|
*
|
|
7376
|
+
* Get the provider activity logs listed by its unique ID.
|
|
7021
7377
|
*
|
|
7022
7378
|
* @param {string} providerId
|
|
7023
7379
|
* @param {string[]} queries
|
|
@@ -7043,6 +7399,7 @@
|
|
|
7043
7399
|
/**
|
|
7044
7400
|
* List subscriber logs
|
|
7045
7401
|
*
|
|
7402
|
+
* Get the subscriber activity logs listed by its unique ID.
|
|
7046
7403
|
*
|
|
7047
7404
|
* @param {string} subscriberId
|
|
7048
7405
|
* @param {string[]} queries
|
|
@@ -7066,8 +7423,9 @@
|
|
|
7066
7423
|
});
|
|
7067
7424
|
}
|
|
7068
7425
|
/**
|
|
7069
|
-
* List topics
|
|
7426
|
+
* List topics
|
|
7070
7427
|
*
|
|
7428
|
+
* Get a list of all topics from the current Appwrite project.
|
|
7071
7429
|
*
|
|
7072
7430
|
* @param {string[]} queries
|
|
7073
7431
|
* @param {string} search
|
|
@@ -7091,15 +7449,17 @@
|
|
|
7091
7449
|
});
|
|
7092
7450
|
}
|
|
7093
7451
|
/**
|
|
7094
|
-
* Create
|
|
7452
|
+
* Create topic
|
|
7095
7453
|
*
|
|
7454
|
+
* Create a new topic.
|
|
7096
7455
|
*
|
|
7097
7456
|
* @param {string} topicId
|
|
7098
7457
|
* @param {string} name
|
|
7458
|
+
* @param {string[]} subscribe
|
|
7099
7459
|
* @throws {AppwriteException}
|
|
7100
7460
|
* @returns {Promise}
|
|
7101
7461
|
*/
|
|
7102
|
-
createTopic(topicId, name) {
|
|
7462
|
+
createTopic(topicId, name, subscribe) {
|
|
7103
7463
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7104
7464
|
if (typeof topicId === 'undefined') {
|
|
7105
7465
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -7115,6 +7475,9 @@
|
|
|
7115
7475
|
if (typeof name !== 'undefined') {
|
|
7116
7476
|
payload['name'] = name;
|
|
7117
7477
|
}
|
|
7478
|
+
if (typeof subscribe !== 'undefined') {
|
|
7479
|
+
payload['subscribe'] = subscribe;
|
|
7480
|
+
}
|
|
7118
7481
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7119
7482
|
return yield this.client.call('post', uri, {
|
|
7120
7483
|
'content-type': 'application/json',
|
|
@@ -7122,7 +7485,9 @@
|
|
|
7122
7485
|
});
|
|
7123
7486
|
}
|
|
7124
7487
|
/**
|
|
7125
|
-
* Get
|
|
7488
|
+
* Get topic
|
|
7489
|
+
*
|
|
7490
|
+
* Get a topic by its unique ID.
|
|
7126
7491
|
*
|
|
7127
7492
|
*
|
|
7128
7493
|
* @param {string} topicId
|
|
@@ -7143,15 +7508,18 @@
|
|
|
7143
7508
|
});
|
|
7144
7509
|
}
|
|
7145
7510
|
/**
|
|
7146
|
-
* Update
|
|
7511
|
+
* Update topic
|
|
7512
|
+
*
|
|
7513
|
+
* Update a topic by its unique ID.
|
|
7147
7514
|
*
|
|
7148
7515
|
*
|
|
7149
7516
|
* @param {string} topicId
|
|
7150
7517
|
* @param {string} name
|
|
7518
|
+
* @param {string[]} subscribe
|
|
7151
7519
|
* @throws {AppwriteException}
|
|
7152
7520
|
* @returns {Promise}
|
|
7153
7521
|
*/
|
|
7154
|
-
updateTopic(topicId, name) {
|
|
7522
|
+
updateTopic(topicId, name, subscribe) {
|
|
7155
7523
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7156
7524
|
if (typeof topicId === 'undefined') {
|
|
7157
7525
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -7161,6 +7529,9 @@
|
|
|
7161
7529
|
if (typeof name !== 'undefined') {
|
|
7162
7530
|
payload['name'] = name;
|
|
7163
7531
|
}
|
|
7532
|
+
if (typeof subscribe !== 'undefined') {
|
|
7533
|
+
payload['subscribe'] = subscribe;
|
|
7534
|
+
}
|
|
7164
7535
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7165
7536
|
return yield this.client.call('patch', uri, {
|
|
7166
7537
|
'content-type': 'application/json',
|
|
@@ -7168,8 +7539,9 @@
|
|
|
7168
7539
|
});
|
|
7169
7540
|
}
|
|
7170
7541
|
/**
|
|
7171
|
-
* Delete
|
|
7542
|
+
* Delete topic
|
|
7172
7543
|
*
|
|
7544
|
+
* Delete a topic by its unique ID.
|
|
7173
7545
|
*
|
|
7174
7546
|
* @param {string} topicId
|
|
7175
7547
|
* @throws {AppwriteException}
|
|
@@ -7191,6 +7563,7 @@
|
|
|
7191
7563
|
/**
|
|
7192
7564
|
* List topic logs
|
|
7193
7565
|
*
|
|
7566
|
+
* Get the topic activity logs listed by its unique ID.
|
|
7194
7567
|
*
|
|
7195
7568
|
* @param {string} topicId
|
|
7196
7569
|
* @param {string[]} queries
|
|
@@ -7214,8 +7587,9 @@
|
|
|
7214
7587
|
});
|
|
7215
7588
|
}
|
|
7216
7589
|
/**
|
|
7217
|
-
* List subscribers
|
|
7590
|
+
* List subscribers
|
|
7218
7591
|
*
|
|
7592
|
+
* Get a list of all subscribers from the current Appwrite project.
|
|
7219
7593
|
*
|
|
7220
7594
|
* @param {string} topicId
|
|
7221
7595
|
* @param {string[]} queries
|
|
@@ -7243,8 +7617,9 @@
|
|
|
7243
7617
|
});
|
|
7244
7618
|
}
|
|
7245
7619
|
/**
|
|
7246
|
-
* Create
|
|
7620
|
+
* Create subscriber
|
|
7247
7621
|
*
|
|
7622
|
+
* Create a new subscriber.
|
|
7248
7623
|
*
|
|
7249
7624
|
* @param {string} topicId
|
|
7250
7625
|
* @param {string} subscriberId
|
|
@@ -7278,7 +7653,9 @@
|
|
|
7278
7653
|
});
|
|
7279
7654
|
}
|
|
7280
7655
|
/**
|
|
7281
|
-
* Get
|
|
7656
|
+
* Get subscriber
|
|
7657
|
+
*
|
|
7658
|
+
* Get a subscriber by its unique ID.
|
|
7282
7659
|
*
|
|
7283
7660
|
*
|
|
7284
7661
|
* @param {string} topicId
|
|
@@ -7303,8 +7680,9 @@
|
|
|
7303
7680
|
});
|
|
7304
7681
|
}
|
|
7305
7682
|
/**
|
|
7306
|
-
* Delete
|
|
7683
|
+
* Delete subscriber
|
|
7307
7684
|
*
|
|
7685
|
+
* Delete a subscriber by its unique ID.
|
|
7308
7686
|
*
|
|
7309
7687
|
* @param {string} topicId
|
|
7310
7688
|
* @param {string} subscriberId
|
|
@@ -7942,7 +8320,7 @@
|
|
|
7942
8320
|
super(client);
|
|
7943
8321
|
}
|
|
7944
8322
|
/**
|
|
7945
|
-
* Get usage stats
|
|
8323
|
+
* Get project usage stats
|
|
7946
8324
|
*
|
|
7947
8325
|
*
|
|
7948
8326
|
* @param {string} startDate
|
|
@@ -8321,6 +8699,69 @@
|
|
|
8321
8699
|
}, payload);
|
|
8322
8700
|
});
|
|
8323
8701
|
}
|
|
8702
|
+
/**
|
|
8703
|
+
* Update API status
|
|
8704
|
+
*
|
|
8705
|
+
*
|
|
8706
|
+
* @param {string} projectId
|
|
8707
|
+
* @param {Api} api
|
|
8708
|
+
* @param {boolean} status
|
|
8709
|
+
* @throws {AppwriteException}
|
|
8710
|
+
* @returns {Promise}
|
|
8711
|
+
*/
|
|
8712
|
+
updateApiStatus(projectId, api, status) {
|
|
8713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8714
|
+
if (typeof projectId === 'undefined') {
|
|
8715
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
8716
|
+
}
|
|
8717
|
+
if (typeof api === 'undefined') {
|
|
8718
|
+
throw new AppwriteException('Missing required parameter: "api"');
|
|
8719
|
+
}
|
|
8720
|
+
if (typeof status === 'undefined') {
|
|
8721
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
8722
|
+
}
|
|
8723
|
+
const apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
|
|
8724
|
+
const payload = {};
|
|
8725
|
+
if (typeof api !== 'undefined') {
|
|
8726
|
+
payload['api'] = api;
|
|
8727
|
+
}
|
|
8728
|
+
if (typeof status !== 'undefined') {
|
|
8729
|
+
payload['status'] = status;
|
|
8730
|
+
}
|
|
8731
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8732
|
+
return yield this.client.call('patch', uri, {
|
|
8733
|
+
'content-type': 'application/json',
|
|
8734
|
+
}, payload);
|
|
8735
|
+
});
|
|
8736
|
+
}
|
|
8737
|
+
/**
|
|
8738
|
+
* Update all API status
|
|
8739
|
+
*
|
|
8740
|
+
*
|
|
8741
|
+
* @param {string} projectId
|
|
8742
|
+
* @param {boolean} status
|
|
8743
|
+
* @throws {AppwriteException}
|
|
8744
|
+
* @returns {Promise}
|
|
8745
|
+
*/
|
|
8746
|
+
updateApiStatusAll(projectId, status) {
|
|
8747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8748
|
+
if (typeof projectId === 'undefined') {
|
|
8749
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
8750
|
+
}
|
|
8751
|
+
if (typeof status === 'undefined') {
|
|
8752
|
+
throw new AppwriteException('Missing required parameter: "status"');
|
|
8753
|
+
}
|
|
8754
|
+
const apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
|
|
8755
|
+
const payload = {};
|
|
8756
|
+
if (typeof status !== 'undefined') {
|
|
8757
|
+
payload['status'] = status;
|
|
8758
|
+
}
|
|
8759
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8760
|
+
return yield this.client.call('patch', uri, {
|
|
8761
|
+
'content-type': 'application/json',
|
|
8762
|
+
}, payload);
|
|
8763
|
+
});
|
|
8764
|
+
}
|
|
8324
8765
|
/**
|
|
8325
8766
|
* Update project authentication duration
|
|
8326
8767
|
*
|
|
@@ -8881,7 +9322,7 @@
|
|
|
8881
9322
|
*
|
|
8882
9323
|
*
|
|
8883
9324
|
* @param {string} projectId
|
|
8884
|
-
* @param {
|
|
9325
|
+
* @param {ApiService} service
|
|
8885
9326
|
* @param {boolean} status
|
|
8886
9327
|
* @throws {AppwriteException}
|
|
8887
9328
|
* @returns {Promise}
|
|
@@ -9101,8 +9542,8 @@
|
|
|
9101
9542
|
*
|
|
9102
9543
|
*
|
|
9103
9544
|
* @param {string} projectId
|
|
9104
|
-
* @param {
|
|
9105
|
-
* @param {
|
|
9545
|
+
* @param {EmailTemplateType} type
|
|
9546
|
+
* @param {EmailTemplateLocale} locale
|
|
9106
9547
|
* @throws {AppwriteException}
|
|
9107
9548
|
* @returns {Promise}
|
|
9108
9549
|
*/
|
|
@@ -9130,8 +9571,8 @@
|
|
|
9130
9571
|
*
|
|
9131
9572
|
*
|
|
9132
9573
|
* @param {string} projectId
|
|
9133
|
-
* @param {
|
|
9134
|
-
* @param {
|
|
9574
|
+
* @param {EmailTemplateType} type
|
|
9575
|
+
* @param {EmailTemplateLocale} locale
|
|
9135
9576
|
* @param {string} subject
|
|
9136
9577
|
* @param {string} message
|
|
9137
9578
|
* @param {string} senderName
|
|
@@ -9185,8 +9626,8 @@
|
|
|
9185
9626
|
*
|
|
9186
9627
|
*
|
|
9187
9628
|
* @param {string} projectId
|
|
9188
|
-
* @param {
|
|
9189
|
-
* @param {
|
|
9629
|
+
* @param {EmailTemplateType} type
|
|
9630
|
+
* @param {EmailTemplateLocale} locale
|
|
9190
9631
|
* @throws {AppwriteException}
|
|
9191
9632
|
* @returns {Promise}
|
|
9192
9633
|
*/
|
|
@@ -9214,8 +9655,8 @@
|
|
|
9214
9655
|
*
|
|
9215
9656
|
*
|
|
9216
9657
|
* @param {string} projectId
|
|
9217
|
-
* @param {
|
|
9218
|
-
* @param {
|
|
9658
|
+
* @param {SmsTemplateType} type
|
|
9659
|
+
* @param {SmsTemplateLocale} locale
|
|
9219
9660
|
* @throws {AppwriteException}
|
|
9220
9661
|
* @returns {Promise}
|
|
9221
9662
|
*/
|
|
@@ -9243,8 +9684,8 @@
|
|
|
9243
9684
|
*
|
|
9244
9685
|
*
|
|
9245
9686
|
* @param {string} projectId
|
|
9246
|
-
* @param {
|
|
9247
|
-
* @param {
|
|
9687
|
+
* @param {SmsTemplateType} type
|
|
9688
|
+
* @param {SmsTemplateLocale} locale
|
|
9248
9689
|
* @param {string} message
|
|
9249
9690
|
* @throws {AppwriteException}
|
|
9250
9691
|
* @returns {Promise}
|
|
@@ -9279,8 +9720,8 @@
|
|
|
9279
9720
|
*
|
|
9280
9721
|
*
|
|
9281
9722
|
* @param {string} projectId
|
|
9282
|
-
* @param {
|
|
9283
|
-
* @param {
|
|
9723
|
+
* @param {SmsTemplateType} type
|
|
9724
|
+
* @param {SmsTemplateLocale} locale
|
|
9284
9725
|
* @throws {AppwriteException}
|
|
9285
9726
|
* @returns {Promise}
|
|
9286
9727
|
*/
|
|
@@ -10210,7 +10651,7 @@
|
|
|
10210
10651
|
return uri;
|
|
10211
10652
|
}
|
|
10212
10653
|
/**
|
|
10213
|
-
* Get usage stats
|
|
10654
|
+
* Get storage usage stats
|
|
10214
10655
|
*
|
|
10215
10656
|
*
|
|
10216
10657
|
* @param {StorageUsageRange} range
|
|
@@ -10231,7 +10672,7 @@
|
|
|
10231
10672
|
});
|
|
10232
10673
|
}
|
|
10233
10674
|
/**
|
|
10234
|
-
* Get usage stats
|
|
10675
|
+
* Get bucket usage stats
|
|
10235
10676
|
*
|
|
10236
10677
|
*
|
|
10237
10678
|
* @param {string} bucketId
|
|
@@ -11184,7 +11625,7 @@
|
|
|
11184
11625
|
* @param {string} userId
|
|
11185
11626
|
* @param {string} email
|
|
11186
11627
|
* @param {string} password
|
|
11187
|
-
* @param {
|
|
11628
|
+
* @param {PasswordHash} passwordVersion
|
|
11188
11629
|
* @param {string} name
|
|
11189
11630
|
* @throws {AppwriteException}
|
|
11190
11631
|
* @returns {Promise}
|
|
@@ -11224,7 +11665,7 @@
|
|
|
11224
11665
|
});
|
|
11225
11666
|
}
|
|
11226
11667
|
/**
|
|
11227
|
-
* Get usage stats
|
|
11668
|
+
* Get users usage stats
|
|
11228
11669
|
*
|
|
11229
11670
|
*
|
|
11230
11671
|
* @param {UserUsageRange} range
|
|
@@ -11407,6 +11848,7 @@
|
|
|
11407
11848
|
/**
|
|
11408
11849
|
* Update MFA
|
|
11409
11850
|
*
|
|
11851
|
+
* Enable or disable MFA on a user account.
|
|
11410
11852
|
*
|
|
11411
11853
|
* @param {string} userId
|
|
11412
11854
|
* @param {boolean} mfa
|
|
@@ -11435,31 +11877,122 @@
|
|
|
11435
11877
|
/**
|
|
11436
11878
|
* Delete Authenticator
|
|
11437
11879
|
*
|
|
11880
|
+
* Delete an authenticator app.
|
|
11438
11881
|
*
|
|
11439
11882
|
* @param {string} userId
|
|
11440
|
-
* @param {
|
|
11441
|
-
* @param {string} otp
|
|
11883
|
+
* @param {AuthenticatorType} type
|
|
11442
11884
|
* @throws {AppwriteException}
|
|
11443
11885
|
* @returns {Promise}
|
|
11444
11886
|
*/
|
|
11445
|
-
|
|
11887
|
+
deleteMfaAuthenticator(userId, type) {
|
|
11446
11888
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11447
11889
|
if (typeof userId === 'undefined') {
|
|
11448
11890
|
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11449
11891
|
}
|
|
11450
|
-
if (typeof
|
|
11451
|
-
throw new AppwriteException('Missing required parameter: "
|
|
11892
|
+
if (typeof type === 'undefined') {
|
|
11893
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
11452
11894
|
}
|
|
11453
|
-
|
|
11454
|
-
|
|
11895
|
+
const apiPath = '/users/{userId}/mfa/authenticators/{type}'.replace('{userId}', userId).replace('{type}', type);
|
|
11896
|
+
const payload = {};
|
|
11897
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11898
|
+
return yield this.client.call('delete', uri, {
|
|
11899
|
+
'content-type': 'application/json',
|
|
11900
|
+
}, payload);
|
|
11901
|
+
});
|
|
11902
|
+
}
|
|
11903
|
+
/**
|
|
11904
|
+
* List Factors
|
|
11905
|
+
*
|
|
11906
|
+
* List the factors available on the account to be used as a MFA challange.
|
|
11907
|
+
*
|
|
11908
|
+
* @param {string} userId
|
|
11909
|
+
* @throws {AppwriteException}
|
|
11910
|
+
* @returns {Promise}
|
|
11911
|
+
*/
|
|
11912
|
+
listMfaFactors(userId) {
|
|
11913
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11914
|
+
if (typeof userId === 'undefined') {
|
|
11915
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11455
11916
|
}
|
|
11456
|
-
const apiPath = '/users/{userId}/mfa/
|
|
11917
|
+
const apiPath = '/users/{userId}/mfa/factors'.replace('{userId}', userId);
|
|
11457
11918
|
const payload = {};
|
|
11458
|
-
|
|
11459
|
-
|
|
11919
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11920
|
+
return yield this.client.call('get', uri, {
|
|
11921
|
+
'content-type': 'application/json',
|
|
11922
|
+
}, payload);
|
|
11923
|
+
});
|
|
11924
|
+
}
|
|
11925
|
+
/**
|
|
11926
|
+
* Get MFA Recovery Codes
|
|
11927
|
+
*
|
|
11928
|
+
* Get recovery codes that can be used as backup for MFA flow by User ID.
|
|
11929
|
+
* Before getting codes, they must be generated using
|
|
11930
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
11931
|
+
* method.
|
|
11932
|
+
*
|
|
11933
|
+
* @param {string} userId
|
|
11934
|
+
* @throws {AppwriteException}
|
|
11935
|
+
* @returns {Promise}
|
|
11936
|
+
*/
|
|
11937
|
+
getMfaRecoveryCodes(userId) {
|
|
11938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11939
|
+
if (typeof userId === 'undefined') {
|
|
11940
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11460
11941
|
}
|
|
11942
|
+
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
|
11943
|
+
const payload = {};
|
|
11461
11944
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11462
|
-
return yield this.client.call('
|
|
11945
|
+
return yield this.client.call('get', uri, {
|
|
11946
|
+
'content-type': 'application/json',
|
|
11947
|
+
}, payload);
|
|
11948
|
+
});
|
|
11949
|
+
}
|
|
11950
|
+
/**
|
|
11951
|
+
* Regenerate MFA Recovery Codes
|
|
11952
|
+
*
|
|
11953
|
+
* Regenerate recovery codes that can be used as backup for MFA flow by User
|
|
11954
|
+
* ID. Before regenerating codes, they must be first generated using
|
|
11955
|
+
* [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
|
|
11956
|
+
* method.
|
|
11957
|
+
*
|
|
11958
|
+
* @param {string} userId
|
|
11959
|
+
* @throws {AppwriteException}
|
|
11960
|
+
* @returns {Promise}
|
|
11961
|
+
*/
|
|
11962
|
+
updateMfaRecoveryCodes(userId) {
|
|
11963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11964
|
+
if (typeof userId === 'undefined') {
|
|
11965
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11966
|
+
}
|
|
11967
|
+
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
|
11968
|
+
const payload = {};
|
|
11969
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11970
|
+
return yield this.client.call('put', uri, {
|
|
11971
|
+
'content-type': 'application/json',
|
|
11972
|
+
}, payload);
|
|
11973
|
+
});
|
|
11974
|
+
}
|
|
11975
|
+
/**
|
|
11976
|
+
* Create MFA Recovery Codes
|
|
11977
|
+
*
|
|
11978
|
+
* Generate recovery codes used as backup for MFA flow for User ID. Recovery
|
|
11979
|
+
* codes can be used as a MFA verification type in
|
|
11980
|
+
* [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
|
|
11981
|
+
* method by client SDK.
|
|
11982
|
+
*
|
|
11983
|
+
* @param {string} userId
|
|
11984
|
+
* @throws {AppwriteException}
|
|
11985
|
+
* @returns {Promise}
|
|
11986
|
+
*/
|
|
11987
|
+
createMfaRecoveryCodes(userId) {
|
|
11988
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11989
|
+
if (typeof userId === 'undefined') {
|
|
11990
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
11991
|
+
}
|
|
11992
|
+
const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
|
|
11993
|
+
const payload = {};
|
|
11994
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
11995
|
+
return yield this.client.call('patch', uri, {
|
|
11463
11996
|
'content-type': 'application/json',
|
|
11464
11997
|
}, payload);
|
|
11465
11998
|
});
|
|
@@ -11604,27 +12137,6 @@
|
|
|
11604
12137
|
}, payload);
|
|
11605
12138
|
});
|
|
11606
12139
|
}
|
|
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
12140
|
/**
|
|
11629
12141
|
* List user sessions
|
|
11630
12142
|
*
|
|
@@ -11755,6 +12267,7 @@
|
|
|
11755
12267
|
/**
|
|
11756
12268
|
* List User Targets
|
|
11757
12269
|
*
|
|
12270
|
+
* List the messaging targets that are associated with a user.
|
|
11758
12271
|
*
|
|
11759
12272
|
* @param {string} userId
|
|
11760
12273
|
* @param {string[]} queries
|
|
@@ -11780,6 +12293,7 @@
|
|
|
11780
12293
|
/**
|
|
11781
12294
|
* Create User Target
|
|
11782
12295
|
*
|
|
12296
|
+
* Create a messaging target.
|
|
11783
12297
|
*
|
|
11784
12298
|
* @param {string} userId
|
|
11785
12299
|
* @param {string} targetId
|
|
@@ -11830,6 +12344,7 @@
|
|
|
11830
12344
|
/**
|
|
11831
12345
|
* Get User Target
|
|
11832
12346
|
*
|
|
12347
|
+
* Get a user's push notification target by ID.
|
|
11833
12348
|
*
|
|
11834
12349
|
* @param {string} userId
|
|
11835
12350
|
* @param {string} targetId
|
|
@@ -11855,6 +12370,7 @@
|
|
|
11855
12370
|
/**
|
|
11856
12371
|
* Update User target
|
|
11857
12372
|
*
|
|
12373
|
+
* Update a messaging target.
|
|
11858
12374
|
*
|
|
11859
12375
|
* @param {string} userId
|
|
11860
12376
|
* @param {string} targetId
|
|
@@ -11892,6 +12408,7 @@
|
|
|
11892
12408
|
/**
|
|
11893
12409
|
* Delete user target
|
|
11894
12410
|
*
|
|
12411
|
+
* Delete a messaging target.
|
|
11895
12412
|
*
|
|
11896
12413
|
* @param {string} userId
|
|
11897
12414
|
* @param {string} targetId
|
|
@@ -12373,15 +12890,18 @@
|
|
|
12373
12890
|
}
|
|
12374
12891
|
}
|
|
12375
12892
|
|
|
12376
|
-
exports.
|
|
12377
|
-
(function (
|
|
12378
|
-
|
|
12379
|
-
})(exports.
|
|
12893
|
+
exports.AuthenticatorType = void 0;
|
|
12894
|
+
(function (AuthenticatorType) {
|
|
12895
|
+
AuthenticatorType["Totp"] = "totp";
|
|
12896
|
+
})(exports.AuthenticatorType || (exports.AuthenticatorType = {}));
|
|
12380
12897
|
|
|
12381
|
-
exports.
|
|
12382
|
-
(function (
|
|
12383
|
-
|
|
12384
|
-
|
|
12898
|
+
exports.AuthenticationFactor = void 0;
|
|
12899
|
+
(function (AuthenticationFactor) {
|
|
12900
|
+
AuthenticationFactor["Email"] = "email";
|
|
12901
|
+
AuthenticationFactor["Phone"] = "phone";
|
|
12902
|
+
AuthenticationFactor["Totp"] = "totp";
|
|
12903
|
+
AuthenticationFactor["Recoverycode"] = "recoverycode";
|
|
12904
|
+
})(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
|
|
12385
12905
|
|
|
12386
12906
|
exports.OAuthProvider = void 0;
|
|
12387
12907
|
(function (OAuthProvider) {
|
|
@@ -12689,15 +13209,54 @@
|
|
|
12689
13209
|
IndexType["Key"] = "key";
|
|
12690
13210
|
IndexType["Fulltext"] = "fulltext";
|
|
12691
13211
|
IndexType["Unique"] = "unique";
|
|
12692
|
-
IndexType["Spatial"] = "spatial";
|
|
12693
13212
|
})(exports.IndexType || (exports.IndexType = {}));
|
|
12694
13213
|
|
|
12695
13214
|
exports.Runtime = void 0;
|
|
12696
13215
|
(function (Runtime) {
|
|
13216
|
+
Runtime["Node145"] = "node-14.5";
|
|
13217
|
+
Runtime["Node160"] = "node-16.0";
|
|
12697
13218
|
Runtime["Node180"] = "node-18.0";
|
|
13219
|
+
Runtime["Node190"] = "node-19.0";
|
|
13220
|
+
Runtime["Node200"] = "node-20.0";
|
|
13221
|
+
Runtime["Node210"] = "node-21.0";
|
|
12698
13222
|
Runtime["Php80"] = "php-8.0";
|
|
13223
|
+
Runtime["Php81"] = "php-8.1";
|
|
13224
|
+
Runtime["Php82"] = "php-8.2";
|
|
13225
|
+
Runtime["Php83"] = "php-8.3";
|
|
13226
|
+
Runtime["Ruby30"] = "ruby-3.0";
|
|
12699
13227
|
Runtime["Ruby31"] = "ruby-3.1";
|
|
13228
|
+
Runtime["Ruby32"] = "ruby-3.2";
|
|
13229
|
+
Runtime["Ruby33"] = "ruby-3.3";
|
|
13230
|
+
Runtime["Python38"] = "python-3.8";
|
|
12700
13231
|
Runtime["Python39"] = "python-3.9";
|
|
13232
|
+
Runtime["Python310"] = "python-3.10";
|
|
13233
|
+
Runtime["Python311"] = "python-3.11";
|
|
13234
|
+
Runtime["Python312"] = "python-3.12";
|
|
13235
|
+
Runtime["Deno140"] = "deno-1.40";
|
|
13236
|
+
Runtime["Dart215"] = "dart-2.15";
|
|
13237
|
+
Runtime["Dart216"] = "dart-2.16";
|
|
13238
|
+
Runtime["Dart217"] = "dart-2.17";
|
|
13239
|
+
Runtime["Dart218"] = "dart-2.18";
|
|
13240
|
+
Runtime["Dart30"] = "dart-3.0";
|
|
13241
|
+
Runtime["Dart31"] = "dart-3.1";
|
|
13242
|
+
Runtime["Dart33"] = "dart-3.3";
|
|
13243
|
+
Runtime["Dotnet31"] = "dotnet-3.1";
|
|
13244
|
+
Runtime["Dotnet60"] = "dotnet-6.0";
|
|
13245
|
+
Runtime["Dotnet70"] = "dotnet-7.0";
|
|
13246
|
+
Runtime["Java80"] = "java-8.0";
|
|
13247
|
+
Runtime["Java110"] = "java-11.0";
|
|
13248
|
+
Runtime["Java170"] = "java-17.0";
|
|
13249
|
+
Runtime["Java180"] = "java-18.0";
|
|
13250
|
+
Runtime["Java210"] = "java-21.0";
|
|
13251
|
+
Runtime["Swift55"] = "swift-5.5";
|
|
13252
|
+
Runtime["Swift58"] = "swift-5.8";
|
|
13253
|
+
Runtime["Swift59"] = "swift-5.9";
|
|
13254
|
+
Runtime["Kotlin16"] = "kotlin-1.6";
|
|
13255
|
+
Runtime["Kotlin18"] = "kotlin-1.8";
|
|
13256
|
+
Runtime["Kotlin19"] = "kotlin-1.9";
|
|
13257
|
+
Runtime["Cpp17"] = "cpp-17";
|
|
13258
|
+
Runtime["Cpp20"] = "cpp-20";
|
|
13259
|
+
Runtime["Bun10"] = "bun-1.0";
|
|
12701
13260
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
12702
13261
|
|
|
12703
13262
|
exports.FunctionUsageRange = void 0;
|
|
@@ -12717,19 +13276,29 @@
|
|
|
12717
13276
|
ExecutionMethod["OPTIONS"] = "OPTIONS";
|
|
12718
13277
|
})(exports.ExecutionMethod || (exports.ExecutionMethod = {}));
|
|
12719
13278
|
|
|
12720
|
-
exports.
|
|
12721
|
-
(function (
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
13279
|
+
exports.Name = void 0;
|
|
13280
|
+
(function (Name) {
|
|
13281
|
+
Name["V1database"] = "v1-database";
|
|
13282
|
+
Name["V1deletes"] = "v1-deletes";
|
|
13283
|
+
Name["V1audits"] = "v1-audits";
|
|
13284
|
+
Name["V1mails"] = "v1-mails";
|
|
13285
|
+
Name["V1functions"] = "v1-functions";
|
|
13286
|
+
Name["V1usage"] = "v1-usage";
|
|
13287
|
+
Name["V1usagedump"] = "v1-usage-dump";
|
|
13288
|
+
Name["Webhooksv1"] = "webhooksv1";
|
|
13289
|
+
Name["V1certificates"] = "v1-certificates";
|
|
13290
|
+
Name["V1builds"] = "v1-builds";
|
|
13291
|
+
Name["V1messaging"] = "v1-messaging";
|
|
13292
|
+
Name["V1migrations"] = "v1-migrations";
|
|
13293
|
+
Name["Hamsterv1"] = "hamsterv1";
|
|
13294
|
+
})(exports.Name || (exports.Name = {}));
|
|
12726
13295
|
|
|
12727
|
-
exports.
|
|
12728
|
-
(function (
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
})(exports.
|
|
13296
|
+
exports.SmtpEncryption = void 0;
|
|
13297
|
+
(function (SmtpEncryption) {
|
|
13298
|
+
SmtpEncryption["None"] = "none";
|
|
13299
|
+
SmtpEncryption["Ssl"] = "ssl";
|
|
13300
|
+
SmtpEncryption["Tls"] = "tls";
|
|
13301
|
+
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
|
12733
13302
|
|
|
12734
13303
|
exports.ProjectUsageRange = void 0;
|
|
12735
13304
|
(function (ProjectUsageRange) {
|
|
@@ -12740,8 +13309,16 @@
|
|
|
12740
13309
|
exports.Region = void 0;
|
|
12741
13310
|
(function (Region) {
|
|
12742
13311
|
Region["Default"] = "default";
|
|
13312
|
+
Region["Fra"] = "fra";
|
|
12743
13313
|
})(exports.Region || (exports.Region = {}));
|
|
12744
13314
|
|
|
13315
|
+
exports.Api = void 0;
|
|
13316
|
+
(function (Api) {
|
|
13317
|
+
Api["Rest"] = "rest";
|
|
13318
|
+
Api["Graphql"] = "graphql";
|
|
13319
|
+
Api["Realtime"] = "realtime";
|
|
13320
|
+
})(exports.Api || (exports.Api = {}));
|
|
13321
|
+
|
|
12745
13322
|
exports.AuthMethod = void 0;
|
|
12746
13323
|
(function (AuthMethod) {
|
|
12747
13324
|
AuthMethod["Emailpassword"] = "email-password";
|
|
@@ -12770,167 +13347,312 @@
|
|
|
12770
13347
|
PlatformType["Unity"] = "unity";
|
|
12771
13348
|
})(exports.PlatformType || (exports.PlatformType = {}));
|
|
12772
13349
|
|
|
12773
|
-
exports.
|
|
12774
|
-
(function (
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
})(exports.
|
|
13350
|
+
exports.ApiService = void 0;
|
|
13351
|
+
(function (ApiService) {
|
|
13352
|
+
ApiService["Account"] = "account";
|
|
13353
|
+
ApiService["Avatars"] = "avatars";
|
|
13354
|
+
ApiService["Databases"] = "databases";
|
|
13355
|
+
ApiService["Locale"] = "locale";
|
|
13356
|
+
ApiService["Health"] = "health";
|
|
13357
|
+
ApiService["Storage"] = "storage";
|
|
13358
|
+
ApiService["Teams"] = "teams";
|
|
13359
|
+
ApiService["Users"] = "users";
|
|
13360
|
+
ApiService["Functions"] = "functions";
|
|
13361
|
+
ApiService["Graphql"] = "graphql";
|
|
13362
|
+
ApiService["Messaging"] = "messaging";
|
|
13363
|
+
})(exports.ApiService || (exports.ApiService = {}));
|
|
12787
13364
|
|
|
12788
13365
|
exports.SMTPSecure = void 0;
|
|
12789
13366
|
(function (SMTPSecure) {
|
|
12790
13367
|
SMTPSecure["Tls"] = "tls";
|
|
12791
13368
|
})(exports.SMTPSecure || (exports.SMTPSecure = {}));
|
|
12792
13369
|
|
|
12793
|
-
exports.
|
|
12794
|
-
(function (
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
13370
|
+
exports.EmailTemplateType = void 0;
|
|
13371
|
+
(function (EmailTemplateType) {
|
|
13372
|
+
EmailTemplateType["Verification"] = "verification";
|
|
13373
|
+
EmailTemplateType["Magicsession"] = "magicsession";
|
|
13374
|
+
EmailTemplateType["Recovery"] = "recovery";
|
|
13375
|
+
EmailTemplateType["Invitation"] = "invitation";
|
|
13376
|
+
EmailTemplateType["Mfachallenge"] = "mfachallenge";
|
|
13377
|
+
})(exports.EmailTemplateType || (exports.EmailTemplateType = {}));
|
|
13378
|
+
|
|
13379
|
+
exports.EmailTemplateLocale = void 0;
|
|
13380
|
+
(function (EmailTemplateLocale) {
|
|
13381
|
+
EmailTemplateLocale["Af"] = "af";
|
|
13382
|
+
EmailTemplateLocale["Arae"] = "ar-ae";
|
|
13383
|
+
EmailTemplateLocale["Arbh"] = "ar-bh";
|
|
13384
|
+
EmailTemplateLocale["Ardz"] = "ar-dz";
|
|
13385
|
+
EmailTemplateLocale["Areg"] = "ar-eg";
|
|
13386
|
+
EmailTemplateLocale["Ariq"] = "ar-iq";
|
|
13387
|
+
EmailTemplateLocale["Arjo"] = "ar-jo";
|
|
13388
|
+
EmailTemplateLocale["Arkw"] = "ar-kw";
|
|
13389
|
+
EmailTemplateLocale["Arlb"] = "ar-lb";
|
|
13390
|
+
EmailTemplateLocale["Arly"] = "ar-ly";
|
|
13391
|
+
EmailTemplateLocale["Arma"] = "ar-ma";
|
|
13392
|
+
EmailTemplateLocale["Arom"] = "ar-om";
|
|
13393
|
+
EmailTemplateLocale["Arqa"] = "ar-qa";
|
|
13394
|
+
EmailTemplateLocale["Arsa"] = "ar-sa";
|
|
13395
|
+
EmailTemplateLocale["Arsy"] = "ar-sy";
|
|
13396
|
+
EmailTemplateLocale["Artn"] = "ar-tn";
|
|
13397
|
+
EmailTemplateLocale["Arye"] = "ar-ye";
|
|
13398
|
+
EmailTemplateLocale["As"] = "as";
|
|
13399
|
+
EmailTemplateLocale["Az"] = "az";
|
|
13400
|
+
EmailTemplateLocale["Be"] = "be";
|
|
13401
|
+
EmailTemplateLocale["Bg"] = "bg";
|
|
13402
|
+
EmailTemplateLocale["Bh"] = "bh";
|
|
13403
|
+
EmailTemplateLocale["Bn"] = "bn";
|
|
13404
|
+
EmailTemplateLocale["Bs"] = "bs";
|
|
13405
|
+
EmailTemplateLocale["Ca"] = "ca";
|
|
13406
|
+
EmailTemplateLocale["Cs"] = "cs";
|
|
13407
|
+
EmailTemplateLocale["Cy"] = "cy";
|
|
13408
|
+
EmailTemplateLocale["Da"] = "da";
|
|
13409
|
+
EmailTemplateLocale["De"] = "de";
|
|
13410
|
+
EmailTemplateLocale["Deat"] = "de-at";
|
|
13411
|
+
EmailTemplateLocale["Dech"] = "de-ch";
|
|
13412
|
+
EmailTemplateLocale["Deli"] = "de-li";
|
|
13413
|
+
EmailTemplateLocale["Delu"] = "de-lu";
|
|
13414
|
+
EmailTemplateLocale["El"] = "el";
|
|
13415
|
+
EmailTemplateLocale["En"] = "en";
|
|
13416
|
+
EmailTemplateLocale["Enau"] = "en-au";
|
|
13417
|
+
EmailTemplateLocale["Enbz"] = "en-bz";
|
|
13418
|
+
EmailTemplateLocale["Enca"] = "en-ca";
|
|
13419
|
+
EmailTemplateLocale["Engb"] = "en-gb";
|
|
13420
|
+
EmailTemplateLocale["Enie"] = "en-ie";
|
|
13421
|
+
EmailTemplateLocale["Enjm"] = "en-jm";
|
|
13422
|
+
EmailTemplateLocale["Ennz"] = "en-nz";
|
|
13423
|
+
EmailTemplateLocale["Entt"] = "en-tt";
|
|
13424
|
+
EmailTemplateLocale["Enus"] = "en-us";
|
|
13425
|
+
EmailTemplateLocale["Enza"] = "en-za";
|
|
13426
|
+
EmailTemplateLocale["Eo"] = "eo";
|
|
13427
|
+
EmailTemplateLocale["Es"] = "es";
|
|
13428
|
+
EmailTemplateLocale["Esar"] = "es-ar";
|
|
13429
|
+
EmailTemplateLocale["Esbo"] = "es-bo";
|
|
13430
|
+
EmailTemplateLocale["Escl"] = "es-cl";
|
|
13431
|
+
EmailTemplateLocale["Esco"] = "es-co";
|
|
13432
|
+
EmailTemplateLocale["Escr"] = "es-cr";
|
|
13433
|
+
EmailTemplateLocale["Esdo"] = "es-do";
|
|
13434
|
+
EmailTemplateLocale["Esec"] = "es-ec";
|
|
13435
|
+
EmailTemplateLocale["Esgt"] = "es-gt";
|
|
13436
|
+
EmailTemplateLocale["Eshn"] = "es-hn";
|
|
13437
|
+
EmailTemplateLocale["Esmx"] = "es-mx";
|
|
13438
|
+
EmailTemplateLocale["Esni"] = "es-ni";
|
|
13439
|
+
EmailTemplateLocale["Espa"] = "es-pa";
|
|
13440
|
+
EmailTemplateLocale["Espe"] = "es-pe";
|
|
13441
|
+
EmailTemplateLocale["Espr"] = "es-pr";
|
|
13442
|
+
EmailTemplateLocale["Espy"] = "es-py";
|
|
13443
|
+
EmailTemplateLocale["Essv"] = "es-sv";
|
|
13444
|
+
EmailTemplateLocale["Esuy"] = "es-uy";
|
|
13445
|
+
EmailTemplateLocale["Esve"] = "es-ve";
|
|
13446
|
+
EmailTemplateLocale["Et"] = "et";
|
|
13447
|
+
EmailTemplateLocale["Eu"] = "eu";
|
|
13448
|
+
EmailTemplateLocale["Fa"] = "fa";
|
|
13449
|
+
EmailTemplateLocale["Fi"] = "fi";
|
|
13450
|
+
EmailTemplateLocale["Fo"] = "fo";
|
|
13451
|
+
EmailTemplateLocale["Fr"] = "fr";
|
|
13452
|
+
EmailTemplateLocale["Frbe"] = "fr-be";
|
|
13453
|
+
EmailTemplateLocale["Frca"] = "fr-ca";
|
|
13454
|
+
EmailTemplateLocale["Frch"] = "fr-ch";
|
|
13455
|
+
EmailTemplateLocale["Frlu"] = "fr-lu";
|
|
13456
|
+
EmailTemplateLocale["Ga"] = "ga";
|
|
13457
|
+
EmailTemplateLocale["Gd"] = "gd";
|
|
13458
|
+
EmailTemplateLocale["He"] = "he";
|
|
13459
|
+
EmailTemplateLocale["Hi"] = "hi";
|
|
13460
|
+
EmailTemplateLocale["Hr"] = "hr";
|
|
13461
|
+
EmailTemplateLocale["Hu"] = "hu";
|
|
13462
|
+
EmailTemplateLocale["Id"] = "id";
|
|
13463
|
+
EmailTemplateLocale["Is"] = "is";
|
|
13464
|
+
EmailTemplateLocale["It"] = "it";
|
|
13465
|
+
EmailTemplateLocale["Itch"] = "it-ch";
|
|
13466
|
+
EmailTemplateLocale["Ja"] = "ja";
|
|
13467
|
+
EmailTemplateLocale["Ji"] = "ji";
|
|
13468
|
+
EmailTemplateLocale["Ko"] = "ko";
|
|
13469
|
+
EmailTemplateLocale["Ku"] = "ku";
|
|
13470
|
+
EmailTemplateLocale["Lt"] = "lt";
|
|
13471
|
+
EmailTemplateLocale["Lv"] = "lv";
|
|
13472
|
+
EmailTemplateLocale["Mk"] = "mk";
|
|
13473
|
+
EmailTemplateLocale["Ml"] = "ml";
|
|
13474
|
+
EmailTemplateLocale["Ms"] = "ms";
|
|
13475
|
+
EmailTemplateLocale["Mt"] = "mt";
|
|
13476
|
+
EmailTemplateLocale["Nb"] = "nb";
|
|
13477
|
+
EmailTemplateLocale["Ne"] = "ne";
|
|
13478
|
+
EmailTemplateLocale["Nl"] = "nl";
|
|
13479
|
+
EmailTemplateLocale["Nlbe"] = "nl-be";
|
|
13480
|
+
EmailTemplateLocale["Nn"] = "nn";
|
|
13481
|
+
EmailTemplateLocale["No"] = "no";
|
|
13482
|
+
EmailTemplateLocale["Pa"] = "pa";
|
|
13483
|
+
EmailTemplateLocale["Pl"] = "pl";
|
|
13484
|
+
EmailTemplateLocale["Pt"] = "pt";
|
|
13485
|
+
EmailTemplateLocale["Ptbr"] = "pt-br";
|
|
13486
|
+
EmailTemplateLocale["Rm"] = "rm";
|
|
13487
|
+
EmailTemplateLocale["Ro"] = "ro";
|
|
13488
|
+
EmailTemplateLocale["Romd"] = "ro-md";
|
|
13489
|
+
EmailTemplateLocale["Ru"] = "ru";
|
|
13490
|
+
EmailTemplateLocale["Rumd"] = "ru-md";
|
|
13491
|
+
EmailTemplateLocale["Sb"] = "sb";
|
|
13492
|
+
EmailTemplateLocale["Sk"] = "sk";
|
|
13493
|
+
EmailTemplateLocale["Sl"] = "sl";
|
|
13494
|
+
EmailTemplateLocale["Sq"] = "sq";
|
|
13495
|
+
EmailTemplateLocale["Sr"] = "sr";
|
|
13496
|
+
EmailTemplateLocale["Sv"] = "sv";
|
|
13497
|
+
EmailTemplateLocale["Svfi"] = "sv-fi";
|
|
13498
|
+
EmailTemplateLocale["Th"] = "th";
|
|
13499
|
+
EmailTemplateLocale["Tn"] = "tn";
|
|
13500
|
+
EmailTemplateLocale["Tr"] = "tr";
|
|
13501
|
+
EmailTemplateLocale["Ts"] = "ts";
|
|
13502
|
+
EmailTemplateLocale["Ua"] = "ua";
|
|
13503
|
+
EmailTemplateLocale["Ur"] = "ur";
|
|
13504
|
+
EmailTemplateLocale["Ve"] = "ve";
|
|
13505
|
+
EmailTemplateLocale["Vi"] = "vi";
|
|
13506
|
+
EmailTemplateLocale["Xh"] = "xh";
|
|
13507
|
+
EmailTemplateLocale["Zhcn"] = "zh-cn";
|
|
13508
|
+
EmailTemplateLocale["Zhhk"] = "zh-hk";
|
|
13509
|
+
EmailTemplateLocale["Zhsg"] = "zh-sg";
|
|
13510
|
+
EmailTemplateLocale["Zhtw"] = "zh-tw";
|
|
13511
|
+
EmailTemplateLocale["Zu"] = "zu";
|
|
13512
|
+
})(exports.EmailTemplateLocale || (exports.EmailTemplateLocale = {}));
|
|
13513
|
+
|
|
13514
|
+
exports.SmsTemplateType = void 0;
|
|
13515
|
+
(function (SmsTemplateType) {
|
|
13516
|
+
SmsTemplateType["Verification"] = "verification";
|
|
13517
|
+
SmsTemplateType["Login"] = "login";
|
|
13518
|
+
SmsTemplateType["Invitation"] = "invitation";
|
|
13519
|
+
SmsTemplateType["Mfachallenge"] = "mfachallenge";
|
|
13520
|
+
})(exports.SmsTemplateType || (exports.SmsTemplateType = {}));
|
|
12799
13521
|
|
|
12800
|
-
exports.
|
|
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
|
-
})(exports.
|
|
13522
|
+
exports.SmsTemplateLocale = void 0;
|
|
13523
|
+
(function (SmsTemplateLocale) {
|
|
13524
|
+
SmsTemplateLocale["Af"] = "af";
|
|
13525
|
+
SmsTemplateLocale["Arae"] = "ar-ae";
|
|
13526
|
+
SmsTemplateLocale["Arbh"] = "ar-bh";
|
|
13527
|
+
SmsTemplateLocale["Ardz"] = "ar-dz";
|
|
13528
|
+
SmsTemplateLocale["Areg"] = "ar-eg";
|
|
13529
|
+
SmsTemplateLocale["Ariq"] = "ar-iq";
|
|
13530
|
+
SmsTemplateLocale["Arjo"] = "ar-jo";
|
|
13531
|
+
SmsTemplateLocale["Arkw"] = "ar-kw";
|
|
13532
|
+
SmsTemplateLocale["Arlb"] = "ar-lb";
|
|
13533
|
+
SmsTemplateLocale["Arly"] = "ar-ly";
|
|
13534
|
+
SmsTemplateLocale["Arma"] = "ar-ma";
|
|
13535
|
+
SmsTemplateLocale["Arom"] = "ar-om";
|
|
13536
|
+
SmsTemplateLocale["Arqa"] = "ar-qa";
|
|
13537
|
+
SmsTemplateLocale["Arsa"] = "ar-sa";
|
|
13538
|
+
SmsTemplateLocale["Arsy"] = "ar-sy";
|
|
13539
|
+
SmsTemplateLocale["Artn"] = "ar-tn";
|
|
13540
|
+
SmsTemplateLocale["Arye"] = "ar-ye";
|
|
13541
|
+
SmsTemplateLocale["As"] = "as";
|
|
13542
|
+
SmsTemplateLocale["Az"] = "az";
|
|
13543
|
+
SmsTemplateLocale["Be"] = "be";
|
|
13544
|
+
SmsTemplateLocale["Bg"] = "bg";
|
|
13545
|
+
SmsTemplateLocale["Bh"] = "bh";
|
|
13546
|
+
SmsTemplateLocale["Bn"] = "bn";
|
|
13547
|
+
SmsTemplateLocale["Bs"] = "bs";
|
|
13548
|
+
SmsTemplateLocale["Ca"] = "ca";
|
|
13549
|
+
SmsTemplateLocale["Cs"] = "cs";
|
|
13550
|
+
SmsTemplateLocale["Cy"] = "cy";
|
|
13551
|
+
SmsTemplateLocale["Da"] = "da";
|
|
13552
|
+
SmsTemplateLocale["De"] = "de";
|
|
13553
|
+
SmsTemplateLocale["Deat"] = "de-at";
|
|
13554
|
+
SmsTemplateLocale["Dech"] = "de-ch";
|
|
13555
|
+
SmsTemplateLocale["Deli"] = "de-li";
|
|
13556
|
+
SmsTemplateLocale["Delu"] = "de-lu";
|
|
13557
|
+
SmsTemplateLocale["El"] = "el";
|
|
13558
|
+
SmsTemplateLocale["En"] = "en";
|
|
13559
|
+
SmsTemplateLocale["Enau"] = "en-au";
|
|
13560
|
+
SmsTemplateLocale["Enbz"] = "en-bz";
|
|
13561
|
+
SmsTemplateLocale["Enca"] = "en-ca";
|
|
13562
|
+
SmsTemplateLocale["Engb"] = "en-gb";
|
|
13563
|
+
SmsTemplateLocale["Enie"] = "en-ie";
|
|
13564
|
+
SmsTemplateLocale["Enjm"] = "en-jm";
|
|
13565
|
+
SmsTemplateLocale["Ennz"] = "en-nz";
|
|
13566
|
+
SmsTemplateLocale["Entt"] = "en-tt";
|
|
13567
|
+
SmsTemplateLocale["Enus"] = "en-us";
|
|
13568
|
+
SmsTemplateLocale["Enza"] = "en-za";
|
|
13569
|
+
SmsTemplateLocale["Eo"] = "eo";
|
|
13570
|
+
SmsTemplateLocale["Es"] = "es";
|
|
13571
|
+
SmsTemplateLocale["Esar"] = "es-ar";
|
|
13572
|
+
SmsTemplateLocale["Esbo"] = "es-bo";
|
|
13573
|
+
SmsTemplateLocale["Escl"] = "es-cl";
|
|
13574
|
+
SmsTemplateLocale["Esco"] = "es-co";
|
|
13575
|
+
SmsTemplateLocale["Escr"] = "es-cr";
|
|
13576
|
+
SmsTemplateLocale["Esdo"] = "es-do";
|
|
13577
|
+
SmsTemplateLocale["Esec"] = "es-ec";
|
|
13578
|
+
SmsTemplateLocale["Esgt"] = "es-gt";
|
|
13579
|
+
SmsTemplateLocale["Eshn"] = "es-hn";
|
|
13580
|
+
SmsTemplateLocale["Esmx"] = "es-mx";
|
|
13581
|
+
SmsTemplateLocale["Esni"] = "es-ni";
|
|
13582
|
+
SmsTemplateLocale["Espa"] = "es-pa";
|
|
13583
|
+
SmsTemplateLocale["Espe"] = "es-pe";
|
|
13584
|
+
SmsTemplateLocale["Espr"] = "es-pr";
|
|
13585
|
+
SmsTemplateLocale["Espy"] = "es-py";
|
|
13586
|
+
SmsTemplateLocale["Essv"] = "es-sv";
|
|
13587
|
+
SmsTemplateLocale["Esuy"] = "es-uy";
|
|
13588
|
+
SmsTemplateLocale["Esve"] = "es-ve";
|
|
13589
|
+
SmsTemplateLocale["Et"] = "et";
|
|
13590
|
+
SmsTemplateLocale["Eu"] = "eu";
|
|
13591
|
+
SmsTemplateLocale["Fa"] = "fa";
|
|
13592
|
+
SmsTemplateLocale["Fi"] = "fi";
|
|
13593
|
+
SmsTemplateLocale["Fo"] = "fo";
|
|
13594
|
+
SmsTemplateLocale["Fr"] = "fr";
|
|
13595
|
+
SmsTemplateLocale["Frbe"] = "fr-be";
|
|
13596
|
+
SmsTemplateLocale["Frca"] = "fr-ca";
|
|
13597
|
+
SmsTemplateLocale["Frch"] = "fr-ch";
|
|
13598
|
+
SmsTemplateLocale["Frlu"] = "fr-lu";
|
|
13599
|
+
SmsTemplateLocale["Ga"] = "ga";
|
|
13600
|
+
SmsTemplateLocale["Gd"] = "gd";
|
|
13601
|
+
SmsTemplateLocale["He"] = "he";
|
|
13602
|
+
SmsTemplateLocale["Hi"] = "hi";
|
|
13603
|
+
SmsTemplateLocale["Hr"] = "hr";
|
|
13604
|
+
SmsTemplateLocale["Hu"] = "hu";
|
|
13605
|
+
SmsTemplateLocale["Id"] = "id";
|
|
13606
|
+
SmsTemplateLocale["Is"] = "is";
|
|
13607
|
+
SmsTemplateLocale["It"] = "it";
|
|
13608
|
+
SmsTemplateLocale["Itch"] = "it-ch";
|
|
13609
|
+
SmsTemplateLocale["Ja"] = "ja";
|
|
13610
|
+
SmsTemplateLocale["Ji"] = "ji";
|
|
13611
|
+
SmsTemplateLocale["Ko"] = "ko";
|
|
13612
|
+
SmsTemplateLocale["Ku"] = "ku";
|
|
13613
|
+
SmsTemplateLocale["Lt"] = "lt";
|
|
13614
|
+
SmsTemplateLocale["Lv"] = "lv";
|
|
13615
|
+
SmsTemplateLocale["Mk"] = "mk";
|
|
13616
|
+
SmsTemplateLocale["Ml"] = "ml";
|
|
13617
|
+
SmsTemplateLocale["Ms"] = "ms";
|
|
13618
|
+
SmsTemplateLocale["Mt"] = "mt";
|
|
13619
|
+
SmsTemplateLocale["Nb"] = "nb";
|
|
13620
|
+
SmsTemplateLocale["Ne"] = "ne";
|
|
13621
|
+
SmsTemplateLocale["Nl"] = "nl";
|
|
13622
|
+
SmsTemplateLocale["Nlbe"] = "nl-be";
|
|
13623
|
+
SmsTemplateLocale["Nn"] = "nn";
|
|
13624
|
+
SmsTemplateLocale["No"] = "no";
|
|
13625
|
+
SmsTemplateLocale["Pa"] = "pa";
|
|
13626
|
+
SmsTemplateLocale["Pl"] = "pl";
|
|
13627
|
+
SmsTemplateLocale["Pt"] = "pt";
|
|
13628
|
+
SmsTemplateLocale["Ptbr"] = "pt-br";
|
|
13629
|
+
SmsTemplateLocale["Rm"] = "rm";
|
|
13630
|
+
SmsTemplateLocale["Ro"] = "ro";
|
|
13631
|
+
SmsTemplateLocale["Romd"] = "ro-md";
|
|
13632
|
+
SmsTemplateLocale["Ru"] = "ru";
|
|
13633
|
+
SmsTemplateLocale["Rumd"] = "ru-md";
|
|
13634
|
+
SmsTemplateLocale["Sb"] = "sb";
|
|
13635
|
+
SmsTemplateLocale["Sk"] = "sk";
|
|
13636
|
+
SmsTemplateLocale["Sl"] = "sl";
|
|
13637
|
+
SmsTemplateLocale["Sq"] = "sq";
|
|
13638
|
+
SmsTemplateLocale["Sr"] = "sr";
|
|
13639
|
+
SmsTemplateLocale["Sv"] = "sv";
|
|
13640
|
+
SmsTemplateLocale["Svfi"] = "sv-fi";
|
|
13641
|
+
SmsTemplateLocale["Th"] = "th";
|
|
13642
|
+
SmsTemplateLocale["Tn"] = "tn";
|
|
13643
|
+
SmsTemplateLocale["Tr"] = "tr";
|
|
13644
|
+
SmsTemplateLocale["Ts"] = "ts";
|
|
13645
|
+
SmsTemplateLocale["Ua"] = "ua";
|
|
13646
|
+
SmsTemplateLocale["Ur"] = "ur";
|
|
13647
|
+
SmsTemplateLocale["Ve"] = "ve";
|
|
13648
|
+
SmsTemplateLocale["Vi"] = "vi";
|
|
13649
|
+
SmsTemplateLocale["Xh"] = "xh";
|
|
13650
|
+
SmsTemplateLocale["Zhcn"] = "zh-cn";
|
|
13651
|
+
SmsTemplateLocale["Zhhk"] = "zh-hk";
|
|
13652
|
+
SmsTemplateLocale["Zhsg"] = "zh-sg";
|
|
13653
|
+
SmsTemplateLocale["Zhtw"] = "zh-tw";
|
|
13654
|
+
SmsTemplateLocale["Zu"] = "zu";
|
|
13655
|
+
})(exports.SmsTemplateLocale || (exports.SmsTemplateLocale = {}));
|
|
12934
13656
|
|
|
12935
13657
|
exports.ResourceType = void 0;
|
|
12936
13658
|
(function (ResourceType) {
|
|
@@ -12974,20 +13696,20 @@
|
|
|
12974
13696
|
StorageUsageRange["NinetyDays"] = "90d";
|
|
12975
13697
|
})(exports.StorageUsageRange || (exports.StorageUsageRange = {}));
|
|
12976
13698
|
|
|
12977
|
-
exports.
|
|
12978
|
-
(function (
|
|
12979
|
-
|
|
12980
|
-
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
12986
|
-
|
|
12987
|
-
|
|
12988
|
-
|
|
12989
|
-
|
|
12990
|
-
})(exports.
|
|
13699
|
+
exports.PasswordHash = void 0;
|
|
13700
|
+
(function (PasswordHash) {
|
|
13701
|
+
PasswordHash["Sha1"] = "sha1";
|
|
13702
|
+
PasswordHash["Sha224"] = "sha224";
|
|
13703
|
+
PasswordHash["Sha256"] = "sha256";
|
|
13704
|
+
PasswordHash["Sha384"] = "sha384";
|
|
13705
|
+
PasswordHash["Sha512224"] = "sha512/224";
|
|
13706
|
+
PasswordHash["Sha512256"] = "sha512/256";
|
|
13707
|
+
PasswordHash["Sha512"] = "sha512";
|
|
13708
|
+
PasswordHash["Sha3224"] = "sha3-224";
|
|
13709
|
+
PasswordHash["Sha3256"] = "sha3-256";
|
|
13710
|
+
PasswordHash["Sha3384"] = "sha3-384";
|
|
13711
|
+
PasswordHash["Sha3512"] = "sha3-512";
|
|
13712
|
+
})(exports.PasswordHash || (exports.PasswordHash = {}));
|
|
12991
13713
|
|
|
12992
13714
|
exports.UserUsageRange = void 0;
|
|
12993
13715
|
(function (UserUsageRange) {
|