@appwrite.io/console 0.6.0-rc.7 → 0.6.0-rc.9
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/README.md +2 -2
- package/dist/cjs/sdk.js +1208 -243
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1209 -244
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1208 -243
- package/docs/examples/account/add-authenticator.md +2 -2
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-challenge.md +2 -2
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +18 -0
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +2 -2
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +18 -0
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-authenticator.md +2 -2
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-push-target.md +18 -0
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/{list-providers.md → delete.md} +2 -2
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-factors.md +18 -0
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-challenge.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +2 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/account/verify-authenticator.md +2 -2
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-browser.md +2 -2
- package/docs/examples/avatars/get-credit-card.md +2 -2
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +2 -2
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +1 -1
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +2 -2
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create-build.md +1 -1
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-variable.md +1 -1
- package/docs/examples/functions/create.md +2 -2
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/download-deployment.md +1 -1
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-function-usage.md +1 -1
- package/docs/examples/functions/get-usage.md +1 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment.md +1 -1
- package/docs/examples/functions/update-variable.md +1 -1
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-queue.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/{create-apns-provider.md → create-a-p-n-s-provider.md} +2 -2
- package/docs/examples/messaging/{create-push-message.md → create-email.md} +2 -2
- package/docs/examples/messaging/{create-fcm-provider.md → create-f-c-m-provider.md} +2 -2
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/{create-s-m-s-message.md → create-push.md} +2 -2
- package/docs/examples/messaging/{update-push-notification.md → create-s-m-s.md} +2 -2
- package/docs/examples/messaging/create-s-m-t-p-provider.md +18 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/{update-fcm-provider.md → delete.md} +2 -2
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/{update-apns-provider.md → list-targets.md} +2 -2
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-a-p-n-s-provider.md +18 -0
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-f-c-m-provider.md +18 -0
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +18 -0
- package/docs/examples/messaging/update-s-m-s.md +1 -1
- package/docs/examples/messaging/update-s-m-t-p-provider.md +18 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete-firebase-auth.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report-o-auth.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list-firebase-projects.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/project/create-variable.md +1 -1
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +2 -2
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +2 -2
- package/docs/examples/projects/{update-auth-mfa-factors.md → create-smtp-test.md} +2 -2
- package/docs/examples/projects/create-webhook.md +2 -2
- package/docs/examples/projects/create.md +1 -1
- package/docs/examples/projects/delete-email-template.md +2 -2
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +2 -2
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-email-template.md +2 -2
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +2 -2
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +2 -2
- package/docs/examples/projects/update-email-template.md +2 -2
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +2 -2
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +2 -2
- package/docs/examples/projects/update-sms-template.md +2 -2
- package/docs/examples/projects/{get-usage.md → update-smtp.md} +2 -2
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +2 -2
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-rule.md +2 -2
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +1 -1
- package/docs/examples/storage/get-file-preview.md +1 -1
- package/docs/examples/storage/get-file-view.md +1 -1
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +2 -2
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-authenticator.md +2 -2
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-providers.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +1 -1
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +1 -1
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/a-p-i-service.ts +13 -0
- package/src/enums/auth-method.ts +9 -0
- package/src/enums/authenticator-factor.ts +3 -0
- package/src/enums/authenticator-provider.ts +3 -0
- package/src/enums/browser.ts +16 -0
- package/src/enums/compression.ts +5 -0
- package/src/enums/credit-card.ts +18 -0
- package/src/enums/database-usage-range.ts +5 -0
- package/src/enums/execution-method.ts +8 -0
- package/src/enums/flag.ts +196 -0
- package/src/enums/function-usage-range.ts +5 -0
- package/src/enums/image-format.ts +7 -0
- package/src/enums/image-gravity.ts +11 -0
- package/src/enums/index-type.ts +6 -0
- package/src/enums/message-type.ts +5 -0
- package/src/enums/messaging-provider-type.ts +5 -0
- package/src/enums/o-auth-provider.ts +41 -0
- package/src/enums/password-version.ts +13 -0
- package/src/enums/platform-type.ts +15 -0
- package/src/enums/project-usage-range.ts +4 -0
- package/src/enums/region.ts +3 -0
- package/src/enums/relation-mutate.ts +5 -0
- package/src/enums/relationship-type.ts +6 -0
- package/src/enums/resource-type.ts +4 -0
- package/src/enums/runtime.ts +6 -0
- package/src/enums/s-m-t-p-encryption.ts +5 -0
- package/src/enums/s-m-t-p-secure.ts +3 -0
- package/src/enums/storage-usage-range.ts +5 -0
- package/src/enums/template-locale.ts +133 -0
- package/src/enums/template-type.ts +5 -0
- package/src/enums/user-usage-range.ts +5 -0
- package/src/index.ts +32 -1
- package/src/models.ts +213 -187
- package/src/query.ts +61 -34
- package/src/service.ts +7 -7
- package/src/services/account.ts +167 -34
- package/src/services/assistant.ts +1 -0
- package/src/services/avatars.ts +10 -6
- package/src/services/console.ts +1 -0
- package/src/services/databases.ts +18 -13
- package/src/services/functions.ts +14 -10
- package/src/services/graphql.ts +1 -0
- package/src/services/health.ts +1 -0
- package/src/services/locale.ts +1 -0
- package/src/services/messaging.ts +273 -78
- package/src/services/migrations.ts +3 -2
- package/src/services/project.ts +24 -4
- package/src/services/projects.ts +135 -91
- package/src/services/proxy.ts +4 -2
- package/src/services/storage.ts +17 -12
- package/src/services/teams.ts +1 -0
- package/src/services/users.ts +17 -17
- package/src/services/vcs.ts +1 -0
- package/types/enums/a-p-i-service.d.ts +13 -0
- package/types/enums/auth-method.d.ts +9 -0
- package/types/enums/authenticator-factor.d.ts +3 -0
- package/types/enums/authenticator-provider.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/compression.d.ts +5 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/database-usage-range.d.ts +5 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +196 -0
- package/types/enums/function-usage-range.d.ts +5 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/index-type.d.ts +6 -0
- package/types/enums/message-type.d.ts +5 -0
- package/types/enums/messaging-provider-type.d.ts +5 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/enums/password-version.d.ts +13 -0
- package/types/enums/platform-type.d.ts +15 -0
- package/types/enums/project-usage-range.d.ts +4 -0
- package/types/enums/region.d.ts +3 -0
- package/types/enums/relation-mutate.d.ts +5 -0
- package/types/enums/relationship-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +4 -0
- package/types/enums/runtime.d.ts +6 -0
- package/types/enums/s-m-t-p-encryption.d.ts +5 -0
- package/types/enums/s-m-t-p-secure.d.ts +3 -0
- package/types/enums/storage-usage-range.d.ts +5 -0
- package/types/enums/template-locale.d.ts +133 -0
- package/types/enums/template-type.d.ts +5 -0
- package/types/enums/user-usage-range.d.ts +5 -0
- package/types/index.d.ts +31 -0
- package/types/models.d.ts +213 -187
- package/types/query.d.ts +10 -3
- package/types/services/account.d.ts +77 -25
- package/types/services/avatars.d.ts +9 -6
- package/types/services/databases.d.ts +17 -13
- package/types/services/functions.d.ts +13 -10
- package/types/services/messaging.d.ts +96 -38
- package/types/services/migrations.d.ts +2 -2
- package/types/services/project.d.ts +5 -2
- package/types/services/projects.d.ts +61 -53
- package/types/services/proxy.d.ts +3 -2
- package/types/services/storage.d.ts +16 -12
- package/types/services/users.d.ts +16 -13
- package/docs/examples/messaging/create-email-message.md +0 -18
- package/docs/examples/projects/update-smtp-configuration.md +0 -18
package/dist/esm/sdk.js
CHANGED
|
@@ -26,17 +26,63 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
class Query {
|
|
30
|
+
constructor(method, attribute, values) {
|
|
31
|
+
this.method = method;
|
|
32
|
+
this.attribute = attribute;
|
|
33
|
+
if (values !== undefined) {
|
|
34
|
+
if (Array.isArray(values)) {
|
|
35
|
+
this.values = values;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
this.values = [values];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
toString() {
|
|
43
|
+
return JSON.stringify({
|
|
44
|
+
method: this.method,
|
|
45
|
+
attribute: this.attribute,
|
|
46
|
+
values: this.values,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
Query.equal = (attribute, value) => new Query("equal", attribute, value).toString();
|
|
51
|
+
Query.notEqual = (attribute, value) => new Query("notEqual", attribute, value).toString();
|
|
52
|
+
Query.lessThan = (attribute, value) => new Query("lessThan", attribute, value).toString();
|
|
53
|
+
Query.lessThanEqual = (attribute, value) => new Query("lessThanEqual", attribute, value).toString();
|
|
54
|
+
Query.greaterThan = (attribute, value) => new Query("greaterThan", attribute, value).toString();
|
|
55
|
+
Query.greaterThanEqual = (attribute, value) => new Query("greaterThanEqual", attribute, value).toString();
|
|
56
|
+
Query.isNull = (attribute) => new Query("isNull", attribute).toString();
|
|
57
|
+
Query.isNotNull = (attribute) => new Query("isNotNull", attribute).toString();
|
|
58
|
+
Query.between = (attribute, start, end) => new Query("between", attribute, [start, end]).toString();
|
|
59
|
+
Query.startsWith = (attribute, value) => new Query("startsWith", attribute, value).toString();
|
|
60
|
+
Query.endsWith = (attribute, value) => new Query("endsWith", attribute, value).toString();
|
|
61
|
+
Query.select = (attributes) => new Query("select", undefined, attributes).toString();
|
|
62
|
+
Query.search = (attribute, value) => new Query("search", attribute, value).toString();
|
|
63
|
+
Query.orderDesc = (attribute) => new Query("orderDesc", attribute).toString();
|
|
64
|
+
Query.orderAsc = (attribute) => new Query("orderAsc", attribute).toString();
|
|
65
|
+
Query.cursorAfter = (documentId) => new Query("cursorAfter", undefined, documentId).toString();
|
|
66
|
+
Query.cursorBefore = (documentId) => new Query("cursorBefore", undefined, documentId).toString();
|
|
67
|
+
Query.limit = (limit) => new Query("limit", undefined, limit).toString();
|
|
68
|
+
Query.offset = (offset) => new Query("offset", undefined, offset).toString();
|
|
69
|
+
Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
|
|
70
|
+
Query.or = (...queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
71
|
+
Query.and = (...queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
72
|
+
|
|
29
73
|
class Service {
|
|
30
74
|
constructor(client) {
|
|
31
75
|
this.client = client;
|
|
32
76
|
}
|
|
33
77
|
static flatten(data, prefix = '') {
|
|
34
78
|
let output = {};
|
|
35
|
-
for (const key
|
|
36
|
-
let
|
|
37
|
-
let finalKey = prefix ? `${prefix}[${key}]` : key;
|
|
79
|
+
for (const [key, value] of Object.entries(data)) {
|
|
80
|
+
let finalKey = prefix ? prefix + '[' + key + ']' : key;
|
|
38
81
|
if (Array.isArray(value)) {
|
|
39
|
-
output = Object.assign(output,
|
|
82
|
+
output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
|
|
83
|
+
}
|
|
84
|
+
else if (value instanceof Query) {
|
|
85
|
+
output[finalKey] = JSON.stringify(value);
|
|
40
86
|
}
|
|
41
87
|
else {
|
|
42
88
|
output[finalKey] = value;
|
|
@@ -47,36 +93,6 @@ class Service {
|
|
|
47
93
|
}
|
|
48
94
|
Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
|
|
49
95
|
|
|
50
|
-
class Query {
|
|
51
|
-
}
|
|
52
|
-
Query.equal = (attribute, value) => Query.addQuery(attribute, "equal", value);
|
|
53
|
-
Query.notEqual = (attribute, value) => Query.addQuery(attribute, "notEqual", value);
|
|
54
|
-
Query.lessThan = (attribute, value) => Query.addQuery(attribute, "lessThan", value);
|
|
55
|
-
Query.lessThanEqual = (attribute, value) => Query.addQuery(attribute, "lessThanEqual", value);
|
|
56
|
-
Query.greaterThan = (attribute, value) => Query.addQuery(attribute, "greaterThan", value);
|
|
57
|
-
Query.greaterThanEqual = (attribute, value) => Query.addQuery(attribute, "greaterThanEqual", value);
|
|
58
|
-
Query.isNull = (attribute) => `isNull("${attribute}")`;
|
|
59
|
-
Query.isNotNull = (attribute) => `isNotNull("${attribute}")`;
|
|
60
|
-
Query.between = (attribute, start, end) => `between("${attribute}", ${Query.parseValues(start)}, ${Query.parseValues(end)})`;
|
|
61
|
-
Query.startsWith = (attribute, value) => Query.addQuery(attribute, "startsWith", value);
|
|
62
|
-
Query.endsWith = (attribute, value) => Query.addQuery(attribute, "endsWith", value);
|
|
63
|
-
Query.select = (attributes) => `select([${attributes.map((attr) => `"${attr}"`).join(",")}])`;
|
|
64
|
-
Query.search = (attribute, value) => Query.addQuery(attribute, "search", value);
|
|
65
|
-
Query.orderDesc = (attribute) => `orderDesc("${attribute}")`;
|
|
66
|
-
Query.orderAsc = (attribute) => `orderAsc("${attribute}")`;
|
|
67
|
-
Query.cursorAfter = (documentId) => `cursorAfter("${documentId}")`;
|
|
68
|
-
Query.cursorBefore = (documentId) => `cursorBefore("${documentId}")`;
|
|
69
|
-
Query.limit = (limit) => `limit(${limit})`;
|
|
70
|
-
Query.offset = (offset) => `offset(${offset})`;
|
|
71
|
-
Query.addQuery = (attribute, method, value) => value instanceof Array
|
|
72
|
-
? `${method}("${attribute}", [${value
|
|
73
|
-
.map((v) => Query.parseValues(v))
|
|
74
|
-
.join(",")}])`
|
|
75
|
-
: `${method}("${attribute}", [${Query.parseValues(value)}])`;
|
|
76
|
-
Query.parseValues = (value) => typeof value === "string" || value instanceof String
|
|
77
|
-
? `"${value}"`
|
|
78
|
-
: `${value}`;
|
|
79
|
-
|
|
80
96
|
class AppwriteException extends Error {
|
|
81
97
|
constructor(message, code = 0, type = '', response = '') {
|
|
82
98
|
super(message);
|
|
@@ -102,7 +118,7 @@ class Client {
|
|
|
102
118
|
'x-sdk-name': 'Console',
|
|
103
119
|
'x-sdk-platform': 'console',
|
|
104
120
|
'x-sdk-language': 'web',
|
|
105
|
-
'x-sdk-version': '0.6.0-rc.
|
|
121
|
+
'x-sdk-version': '0.6.0-rc.9',
|
|
106
122
|
'X-Appwrite-Response-Format': '1.4.0',
|
|
107
123
|
};
|
|
108
124
|
this.realtime = {
|
|
@@ -506,6 +522,24 @@ class Account extends Service {
|
|
|
506
522
|
}, payload);
|
|
507
523
|
});
|
|
508
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
* Delete account
|
|
527
|
+
*
|
|
528
|
+
* Delete the currently logged in user.
|
|
529
|
+
*
|
|
530
|
+
* @throws {AppwriteException}
|
|
531
|
+
* @returns {Promise}
|
|
532
|
+
*/
|
|
533
|
+
delete() {
|
|
534
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
535
|
+
const apiPath = '/account';
|
|
536
|
+
const payload = {};
|
|
537
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
538
|
+
return yield this.client.call('delete', uri, {
|
|
539
|
+
'content-type': 'application/json',
|
|
540
|
+
}, payload);
|
|
541
|
+
});
|
|
542
|
+
}
|
|
509
543
|
/**
|
|
510
544
|
* Update email
|
|
511
545
|
*
|
|
@@ -550,7 +584,7 @@ class Account extends Service {
|
|
|
550
584
|
*
|
|
551
585
|
* Get the list of identities for the currently logged in user.
|
|
552
586
|
*
|
|
553
|
-
* @param {string} queries
|
|
587
|
+
* @param {string[]} queries
|
|
554
588
|
* @throws {AppwriteException}
|
|
555
589
|
* @returns {Promise}
|
|
556
590
|
*/
|
|
@@ -662,7 +696,7 @@ class Account extends Service {
|
|
|
662
696
|
* Create MFA Challenge
|
|
663
697
|
*
|
|
664
698
|
*
|
|
665
|
-
* @param {
|
|
699
|
+
* @param {AuthenticatorProvider} provider
|
|
666
700
|
* @throws {AppwriteException}
|
|
667
701
|
* @returns {Promise}
|
|
668
702
|
*/
|
|
@@ -714,16 +748,16 @@ class Account extends Service {
|
|
|
714
748
|
});
|
|
715
749
|
}
|
|
716
750
|
/**
|
|
717
|
-
* List
|
|
751
|
+
* List Factors
|
|
718
752
|
*
|
|
719
753
|
* Get the currently logged in user.
|
|
720
754
|
*
|
|
721
755
|
* @throws {AppwriteException}
|
|
722
756
|
* @returns {Promise}
|
|
723
757
|
*/
|
|
724
|
-
|
|
758
|
+
listFactors() {
|
|
725
759
|
return __awaiter(this, void 0, void 0, function* () {
|
|
726
|
-
const apiPath = '/account/mfa/
|
|
760
|
+
const apiPath = '/account/mfa/factors';
|
|
727
761
|
const payload = {};
|
|
728
762
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
729
763
|
return yield this.client.call('get', uri, {
|
|
@@ -735,16 +769,16 @@ class Account extends Service {
|
|
|
735
769
|
* Add Authenticator
|
|
736
770
|
*
|
|
737
771
|
*
|
|
738
|
-
* @param {
|
|
772
|
+
* @param {AuthenticatorFactor} factor
|
|
739
773
|
* @throws {AppwriteException}
|
|
740
774
|
* @returns {Promise}
|
|
741
775
|
*/
|
|
742
|
-
addAuthenticator(
|
|
776
|
+
addAuthenticator(factor) {
|
|
743
777
|
return __awaiter(this, void 0, void 0, function* () {
|
|
744
|
-
if (typeof
|
|
745
|
-
throw new AppwriteException('Missing required parameter: "
|
|
778
|
+
if (typeof factor === 'undefined') {
|
|
779
|
+
throw new AppwriteException('Missing required parameter: "factor"');
|
|
746
780
|
}
|
|
747
|
-
const apiPath = '/account/mfa/{
|
|
781
|
+
const apiPath = '/account/mfa/{factor}'.replace('{factor}', factor);
|
|
748
782
|
const payload = {};
|
|
749
783
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
750
784
|
return yield this.client.call('post', uri, {
|
|
@@ -756,20 +790,20 @@ class Account extends Service {
|
|
|
756
790
|
* Verify Authenticator
|
|
757
791
|
*
|
|
758
792
|
*
|
|
759
|
-
* @param {
|
|
793
|
+
* @param {AuthenticatorFactor} factor
|
|
760
794
|
* @param {string} otp
|
|
761
795
|
* @throws {AppwriteException}
|
|
762
796
|
* @returns {Promise}
|
|
763
797
|
*/
|
|
764
|
-
verifyAuthenticator(
|
|
798
|
+
verifyAuthenticator(factor, otp) {
|
|
765
799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
766
|
-
if (typeof
|
|
767
|
-
throw new AppwriteException('Missing required parameter: "
|
|
800
|
+
if (typeof factor === 'undefined') {
|
|
801
|
+
throw new AppwriteException('Missing required parameter: "factor"');
|
|
768
802
|
}
|
|
769
803
|
if (typeof otp === 'undefined') {
|
|
770
804
|
throw new AppwriteException('Missing required parameter: "otp"');
|
|
771
805
|
}
|
|
772
|
-
const apiPath = '/account/mfa/{
|
|
806
|
+
const apiPath = '/account/mfa/{factor}'.replace('{factor}', factor);
|
|
773
807
|
const payload = {};
|
|
774
808
|
if (typeof otp !== 'undefined') {
|
|
775
809
|
payload['otp'] = otp;
|
|
@@ -784,7 +818,7 @@ class Account extends Service {
|
|
|
784
818
|
* Delete Authenticator
|
|
785
819
|
*
|
|
786
820
|
*
|
|
787
|
-
* @param {
|
|
821
|
+
* @param {AuthenticatorProvider} provider
|
|
788
822
|
* @param {string} otp
|
|
789
823
|
* @throws {AppwriteException}
|
|
790
824
|
* @returns {Promise}
|
|
@@ -1185,7 +1219,7 @@ class Account extends Service {
|
|
|
1185
1219
|
* limits](https://appwrite.io/docs/authentication-security#limits).
|
|
1186
1220
|
*
|
|
1187
1221
|
*
|
|
1188
|
-
* @param {
|
|
1222
|
+
* @param {OAuthProvider} provider
|
|
1189
1223
|
* @param {string} success
|
|
1190
1224
|
* @param {string} failure
|
|
1191
1225
|
* @param {boolean} token
|
|
@@ -1281,11 +1315,10 @@ class Account extends Service {
|
|
|
1281
1315
|
});
|
|
1282
1316
|
}
|
|
1283
1317
|
/**
|
|
1284
|
-
* Update
|
|
1318
|
+
* Update (or renew) a session
|
|
1285
1319
|
*
|
|
1286
|
-
*
|
|
1287
|
-
*
|
|
1288
|
-
* "refresh" the access token.
|
|
1320
|
+
* Extend session's expiry to increase it's lifespan. Extending a session is
|
|
1321
|
+
* useful when session length is short such as 5 minutes.
|
|
1289
1322
|
*
|
|
1290
1323
|
* @param {string} sessionId
|
|
1291
1324
|
* @throws {AppwriteException}
|
|
@@ -1351,7 +1384,42 @@ class Account extends Service {
|
|
|
1351
1384
|
});
|
|
1352
1385
|
}
|
|
1353
1386
|
/**
|
|
1354
|
-
*
|
|
1387
|
+
* Create a push target
|
|
1388
|
+
*
|
|
1389
|
+
*
|
|
1390
|
+
* @param {string} targetId
|
|
1391
|
+
* @param {string} identifier
|
|
1392
|
+
* @param {string} providerId
|
|
1393
|
+
* @throws {AppwriteException}
|
|
1394
|
+
* @returns {Promise}
|
|
1395
|
+
*/
|
|
1396
|
+
createPushTarget(targetId, identifier, providerId) {
|
|
1397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1398
|
+
if (typeof targetId === 'undefined') {
|
|
1399
|
+
throw new AppwriteException('Missing required parameter: "targetId"');
|
|
1400
|
+
}
|
|
1401
|
+
if (typeof identifier === 'undefined') {
|
|
1402
|
+
throw new AppwriteException('Missing required parameter: "identifier"');
|
|
1403
|
+
}
|
|
1404
|
+
const apiPath = '/account/targets/push';
|
|
1405
|
+
const payload = {};
|
|
1406
|
+
if (typeof targetId !== 'undefined') {
|
|
1407
|
+
payload['targetId'] = targetId;
|
|
1408
|
+
}
|
|
1409
|
+
if (typeof identifier !== 'undefined') {
|
|
1410
|
+
payload['identifier'] = identifier;
|
|
1411
|
+
}
|
|
1412
|
+
if (typeof providerId !== 'undefined') {
|
|
1413
|
+
payload['providerId'] = providerId;
|
|
1414
|
+
}
|
|
1415
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1416
|
+
return yield this.client.call('post', uri, {
|
|
1417
|
+
'content-type': 'application/json',
|
|
1418
|
+
}, payload);
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Update a push target
|
|
1355
1423
|
*
|
|
1356
1424
|
*
|
|
1357
1425
|
* @param {string} targetId
|
|
@@ -1378,6 +1446,72 @@ class Account extends Service {
|
|
|
1378
1446
|
}, payload);
|
|
1379
1447
|
});
|
|
1380
1448
|
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Delete a push target
|
|
1451
|
+
*
|
|
1452
|
+
*
|
|
1453
|
+
* @param {string} targetId
|
|
1454
|
+
* @throws {AppwriteException}
|
|
1455
|
+
* @returns {Promise}
|
|
1456
|
+
*/
|
|
1457
|
+
deletePushTarget(targetId) {
|
|
1458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1459
|
+
if (typeof targetId === 'undefined') {
|
|
1460
|
+
throw new AppwriteException('Missing required parameter: "targetId"');
|
|
1461
|
+
}
|
|
1462
|
+
const apiPath = '/account/targets/{targetId}/push'.replace('{targetId}', targetId);
|
|
1463
|
+
const payload = {};
|
|
1464
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1465
|
+
return yield this.client.call('delete', uri, {
|
|
1466
|
+
'content-type': 'application/json',
|
|
1467
|
+
}, payload);
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Create email token (OTP)
|
|
1472
|
+
*
|
|
1473
|
+
* Sends the user an email with a secret key for creating a session. If the
|
|
1474
|
+
* provided user ID has not be registered, a new user will be created. Use the
|
|
1475
|
+
* returned user ID and secret and submit a request to the [POST
|
|
1476
|
+
* /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
1477
|
+
* endpoint to complete the login process. The secret sent to the user's email
|
|
1478
|
+
* is valid for 15 minutes.
|
|
1479
|
+
*
|
|
1480
|
+
* A user is limited to 10 active sessions at a time by default. [Learn more
|
|
1481
|
+
* about session
|
|
1482
|
+
* limits](https://appwrite.io/docs/authentication-security#limits).
|
|
1483
|
+
*
|
|
1484
|
+
* @param {string} userId
|
|
1485
|
+
* @param {string} email
|
|
1486
|
+
* @param {boolean} phrase
|
|
1487
|
+
* @throws {AppwriteException}
|
|
1488
|
+
* @returns {Promise}
|
|
1489
|
+
*/
|
|
1490
|
+
createEmailToken(userId, email, phrase) {
|
|
1491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1492
|
+
if (typeof userId === 'undefined') {
|
|
1493
|
+
throw new AppwriteException('Missing required parameter: "userId"');
|
|
1494
|
+
}
|
|
1495
|
+
if (typeof email === 'undefined') {
|
|
1496
|
+
throw new AppwriteException('Missing required parameter: "email"');
|
|
1497
|
+
}
|
|
1498
|
+
const apiPath = '/account/tokens/email';
|
|
1499
|
+
const payload = {};
|
|
1500
|
+
if (typeof userId !== 'undefined') {
|
|
1501
|
+
payload['userId'] = userId;
|
|
1502
|
+
}
|
|
1503
|
+
if (typeof email !== 'undefined') {
|
|
1504
|
+
payload['email'] = email;
|
|
1505
|
+
}
|
|
1506
|
+
if (typeof phrase !== 'undefined') {
|
|
1507
|
+
payload['phrase'] = phrase;
|
|
1508
|
+
}
|
|
1509
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1510
|
+
return yield this.client.call('post', uri, {
|
|
1511
|
+
'content-type': 'application/json',
|
|
1512
|
+
}, payload);
|
|
1513
|
+
});
|
|
1514
|
+
}
|
|
1381
1515
|
/**
|
|
1382
1516
|
* Create magic URL token
|
|
1383
1517
|
*
|
|
@@ -1386,8 +1520,8 @@ class Account extends Service {
|
|
|
1386
1520
|
* the user clicks the link in the email, the user is redirected back to the
|
|
1387
1521
|
* URL you provided with the secret key and userId values attached to the URL
|
|
1388
1522
|
* query string. Use the query string parameters to submit a request to the
|
|
1389
|
-
* [
|
|
1390
|
-
* /account/sessions/
|
|
1523
|
+
* [POST
|
|
1524
|
+
* /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
1391
1525
|
* endpoint to complete the login process. The link sent to the user's email
|
|
1392
1526
|
* address is valid for 1 hour. If you are on a mobile device you can leave
|
|
1393
1527
|
* the URL parameter empty, so that the login completion will be handled by
|
|
@@ -1401,11 +1535,11 @@ class Account extends Service {
|
|
|
1401
1535
|
* @param {string} userId
|
|
1402
1536
|
* @param {string} email
|
|
1403
1537
|
* @param {string} url
|
|
1404
|
-
* @param {boolean}
|
|
1538
|
+
* @param {boolean} phrase
|
|
1405
1539
|
* @throws {AppwriteException}
|
|
1406
1540
|
* @returns {Promise}
|
|
1407
1541
|
*/
|
|
1408
|
-
createMagicURLToken(userId, email, url,
|
|
1542
|
+
createMagicURLToken(userId, email, url, phrase) {
|
|
1409
1543
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1410
1544
|
if (typeof userId === 'undefined') {
|
|
1411
1545
|
throw new AppwriteException('Missing required parameter: "userId"');
|
|
@@ -1424,8 +1558,8 @@ class Account extends Service {
|
|
|
1424
1558
|
if (typeof url !== 'undefined') {
|
|
1425
1559
|
payload['url'] = url;
|
|
1426
1560
|
}
|
|
1427
|
-
if (typeof
|
|
1428
|
-
payload['
|
|
1561
|
+
if (typeof phrase !== 'undefined') {
|
|
1562
|
+
payload['phrase'] = phrase;
|
|
1429
1563
|
}
|
|
1430
1564
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1431
1565
|
return yield this.client.call('post', uri, {
|
|
@@ -1438,8 +1572,8 @@ class Account extends Service {
|
|
|
1438
1572
|
*
|
|
1439
1573
|
* Sends the user an SMS with a secret key for creating a session. If the
|
|
1440
1574
|
* provided user ID has not be registered, a new user will be created. Use the
|
|
1441
|
-
* returned user ID and secret and submit a request to the [
|
|
1442
|
-
* /account/sessions/
|
|
1575
|
+
* returned user ID and secret and submit a request to the [POST
|
|
1576
|
+
* /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
1443
1577
|
* endpoint to complete the login process. The secret sent to the user's phone
|
|
1444
1578
|
* is valid for 15 minutes.
|
|
1445
1579
|
*
|
|
@@ -1628,7 +1762,7 @@ class Avatars extends Service {
|
|
|
1628
1762
|
* image at source quality. If dimensions are not specified, the default size
|
|
1629
1763
|
* of image returned is 100x100px.
|
|
1630
1764
|
*
|
|
1631
|
-
* @param {
|
|
1765
|
+
* @param {Browser} code
|
|
1632
1766
|
* @param {number} width
|
|
1633
1767
|
* @param {number} height
|
|
1634
1768
|
* @param {number} quality
|
|
@@ -1670,7 +1804,7 @@ class Avatars extends Service {
|
|
|
1670
1804
|
* of image returned is 100x100px.
|
|
1671
1805
|
*
|
|
1672
1806
|
*
|
|
1673
|
-
* @param {
|
|
1807
|
+
* @param {CreditCard} code
|
|
1674
1808
|
* @param {number} width
|
|
1675
1809
|
* @param {number} height
|
|
1676
1810
|
* @param {number} quality
|
|
@@ -1740,7 +1874,7 @@ class Avatars extends Service {
|
|
|
1740
1874
|
* of image returned is 100x100px.
|
|
1741
1875
|
*
|
|
1742
1876
|
*
|
|
1743
|
-
* @param {
|
|
1877
|
+
* @param {Flag} code
|
|
1744
1878
|
* @param {number} width
|
|
1745
1879
|
* @param {number} height
|
|
1746
1880
|
* @param {number} quality
|
|
@@ -2027,7 +2161,7 @@ class Databases extends Service {
|
|
|
2027
2161
|
* Get usage stats for the database
|
|
2028
2162
|
*
|
|
2029
2163
|
*
|
|
2030
|
-
* @param {
|
|
2164
|
+
* @param {DatabaseUsageRange} range
|
|
2031
2165
|
* @throws {AppwriteException}
|
|
2032
2166
|
* @returns {Promise}
|
|
2033
2167
|
*/
|
|
@@ -3058,11 +3192,11 @@ class Databases extends Service {
|
|
|
3058
3192
|
* @param {string} databaseId
|
|
3059
3193
|
* @param {string} collectionId
|
|
3060
3194
|
* @param {string} relatedCollectionId
|
|
3061
|
-
* @param {
|
|
3195
|
+
* @param {RelationshipType} type
|
|
3062
3196
|
* @param {boolean} twoWay
|
|
3063
3197
|
* @param {string} key
|
|
3064
3198
|
* @param {string} twoWayKey
|
|
3065
|
-
* @param {
|
|
3199
|
+
* @param {RelationMutate} onDelete
|
|
3066
3200
|
* @throws {AppwriteException}
|
|
3067
3201
|
* @returns {Promise}
|
|
3068
3202
|
*/
|
|
@@ -3375,7 +3509,7 @@ class Databases extends Service {
|
|
|
3375
3509
|
* @param {string} databaseId
|
|
3376
3510
|
* @param {string} collectionId
|
|
3377
3511
|
* @param {string} key
|
|
3378
|
-
* @param {
|
|
3512
|
+
* @param {RelationMutate} onDelete
|
|
3379
3513
|
* @throws {AppwriteException}
|
|
3380
3514
|
* @returns {Promise}
|
|
3381
3515
|
*/
|
|
@@ -3653,7 +3787,7 @@ class Databases extends Service {
|
|
|
3653
3787
|
* @param {string} databaseId
|
|
3654
3788
|
* @param {string} collectionId
|
|
3655
3789
|
* @param {string} key
|
|
3656
|
-
* @param {
|
|
3790
|
+
* @param {IndexType} type
|
|
3657
3791
|
* @param {string[]} attributes
|
|
3658
3792
|
* @param {string[]} orders
|
|
3659
3793
|
* @throws {AppwriteException}
|
|
@@ -3790,7 +3924,7 @@ class Databases extends Service {
|
|
|
3790
3924
|
*
|
|
3791
3925
|
* @param {string} databaseId
|
|
3792
3926
|
* @param {string} collectionId
|
|
3793
|
-
* @param {
|
|
3927
|
+
* @param {DatabaseUsageRange} range
|
|
3794
3928
|
* @throws {AppwriteException}
|
|
3795
3929
|
* @returns {Promise}
|
|
3796
3930
|
*/
|
|
@@ -3844,7 +3978,7 @@ class Databases extends Service {
|
|
|
3844
3978
|
*
|
|
3845
3979
|
*
|
|
3846
3980
|
* @param {string} databaseId
|
|
3847
|
-
* @param {
|
|
3981
|
+
* @param {DatabaseUsageRange} range
|
|
3848
3982
|
* @throws {AppwriteException}
|
|
3849
3983
|
* @returns {Promise}
|
|
3850
3984
|
*/
|
|
@@ -3907,7 +4041,7 @@ class Functions extends Service {
|
|
|
3907
4041
|
*
|
|
3908
4042
|
* @param {string} functionId
|
|
3909
4043
|
* @param {string} name
|
|
3910
|
-
* @param {
|
|
4044
|
+
* @param {Runtime} runtime
|
|
3911
4045
|
* @param {string[]} execute
|
|
3912
4046
|
* @param {string[]} events
|
|
3913
4047
|
* @param {string} schedule
|
|
@@ -4029,7 +4163,7 @@ class Functions extends Service {
|
|
|
4029
4163
|
* Get functions usage
|
|
4030
4164
|
*
|
|
4031
4165
|
*
|
|
4032
|
-
* @param {
|
|
4166
|
+
* @param {FunctionUsageRange} range
|
|
4033
4167
|
* @throws {AppwriteException}
|
|
4034
4168
|
* @returns {Promise}
|
|
4035
4169
|
*/
|
|
@@ -4075,7 +4209,7 @@ class Functions extends Service {
|
|
|
4075
4209
|
*
|
|
4076
4210
|
* @param {string} functionId
|
|
4077
4211
|
* @param {string} name
|
|
4078
|
-
* @param {
|
|
4212
|
+
* @param {Runtime} runtime
|
|
4079
4213
|
* @param {string[]} execute
|
|
4080
4214
|
* @param {string[]} events
|
|
4081
4215
|
* @param {string} schedule
|
|
@@ -4472,7 +4606,7 @@ class Functions extends Service {
|
|
|
4472
4606
|
* @param {string} body
|
|
4473
4607
|
* @param {boolean} async
|
|
4474
4608
|
* @param {string} xpath
|
|
4475
|
-
* @param {
|
|
4609
|
+
* @param {ExecutionMethod} method
|
|
4476
4610
|
* @param {object} headers
|
|
4477
4611
|
* @throws {AppwriteException}
|
|
4478
4612
|
* @returns {Promise}
|
|
@@ -4536,7 +4670,7 @@ class Functions extends Service {
|
|
|
4536
4670
|
*
|
|
4537
4671
|
*
|
|
4538
4672
|
* @param {string} functionId
|
|
4539
|
-
* @param {
|
|
4673
|
+
* @param {FunctionUsageRange} range
|
|
4540
4674
|
* @throws {AppwriteException}
|
|
4541
4675
|
* @returns {Promise}
|
|
4542
4676
|
*/
|
|
@@ -5326,7 +5460,7 @@ class Messaging extends Service {
|
|
|
5326
5460
|
* List messages
|
|
5327
5461
|
*
|
|
5328
5462
|
*
|
|
5329
|
-
* @param {string} queries
|
|
5463
|
+
* @param {string[]} queries
|
|
5330
5464
|
* @param {string} search
|
|
5331
5465
|
* @throws {AppwriteException}
|
|
5332
5466
|
* @returns {Promise}
|
|
@@ -5359,14 +5493,13 @@ class Messaging extends Service {
|
|
|
5359
5493
|
* @param {string[]} targets
|
|
5360
5494
|
* @param {string[]} cc
|
|
5361
5495
|
* @param {string[]} bcc
|
|
5362
|
-
* @param {
|
|
5363
|
-
* @param {string} status
|
|
5496
|
+
* @param {MessageType} status
|
|
5364
5497
|
* @param {boolean} html
|
|
5365
5498
|
* @param {string} scheduledAt
|
|
5366
5499
|
* @throws {AppwriteException}
|
|
5367
5500
|
* @returns {Promise}
|
|
5368
5501
|
*/
|
|
5369
|
-
|
|
5502
|
+
createEmail(messageId, subject, content, topics, users, targets, cc, bcc, status, html, scheduledAt) {
|
|
5370
5503
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5371
5504
|
if (typeof messageId === 'undefined') {
|
|
5372
5505
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5403,9 +5536,6 @@ class Messaging extends Service {
|
|
|
5403
5536
|
if (typeof bcc !== 'undefined') {
|
|
5404
5537
|
payload['bcc'] = bcc;
|
|
5405
5538
|
}
|
|
5406
|
-
if (typeof description !== 'undefined') {
|
|
5407
|
-
payload['description'] = description;
|
|
5408
|
-
}
|
|
5409
5539
|
if (typeof status !== 'undefined') {
|
|
5410
5540
|
payload['status'] = status;
|
|
5411
5541
|
}
|
|
@@ -5430,9 +5560,8 @@ class Messaging extends Service {
|
|
|
5430
5560
|
* @param {string[]} users
|
|
5431
5561
|
* @param {string[]} targets
|
|
5432
5562
|
* @param {string} subject
|
|
5433
|
-
* @param {string} description
|
|
5434
5563
|
* @param {string} content
|
|
5435
|
-
* @param {
|
|
5564
|
+
* @param {MessageType} status
|
|
5436
5565
|
* @param {boolean} html
|
|
5437
5566
|
* @param {string[]} cc
|
|
5438
5567
|
* @param {string[]} bcc
|
|
@@ -5440,7 +5569,7 @@ class Messaging extends Service {
|
|
|
5440
5569
|
* @throws {AppwriteException}
|
|
5441
5570
|
* @returns {Promise}
|
|
5442
5571
|
*/
|
|
5443
|
-
updateEmail(messageId, topics, users, targets, subject,
|
|
5572
|
+
updateEmail(messageId, topics, users, targets, subject, content, status, html, cc, bcc, scheduledAt) {
|
|
5444
5573
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5445
5574
|
if (typeof messageId === 'undefined') {
|
|
5446
5575
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5459,9 +5588,6 @@ class Messaging extends Service {
|
|
|
5459
5588
|
if (typeof subject !== 'undefined') {
|
|
5460
5589
|
payload['subject'] = subject;
|
|
5461
5590
|
}
|
|
5462
|
-
if (typeof description !== 'undefined') {
|
|
5463
|
-
payload['description'] = description;
|
|
5464
|
-
}
|
|
5465
5591
|
if (typeof content !== 'undefined') {
|
|
5466
5592
|
payload['content'] = content;
|
|
5467
5593
|
}
|
|
@@ -5496,7 +5622,6 @@ class Messaging extends Service {
|
|
|
5496
5622
|
* @param {string[]} topics
|
|
5497
5623
|
* @param {string[]} users
|
|
5498
5624
|
* @param {string[]} targets
|
|
5499
|
-
* @param {string} description
|
|
5500
5625
|
* @param {object} data
|
|
5501
5626
|
* @param {string} action
|
|
5502
5627
|
* @param {string} icon
|
|
@@ -5504,12 +5629,12 @@ class Messaging extends Service {
|
|
|
5504
5629
|
* @param {string} color
|
|
5505
5630
|
* @param {string} tag
|
|
5506
5631
|
* @param {string} badge
|
|
5507
|
-
* @param {
|
|
5632
|
+
* @param {MessageType} status
|
|
5508
5633
|
* @param {string} scheduledAt
|
|
5509
5634
|
* @throws {AppwriteException}
|
|
5510
5635
|
* @returns {Promise}
|
|
5511
5636
|
*/
|
|
5512
|
-
|
|
5637
|
+
createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
|
|
5513
5638
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5514
5639
|
if (typeof messageId === 'undefined') {
|
|
5515
5640
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5540,9 +5665,6 @@ class Messaging extends Service {
|
|
|
5540
5665
|
if (typeof targets !== 'undefined') {
|
|
5541
5666
|
payload['targets'] = targets;
|
|
5542
5667
|
}
|
|
5543
|
-
if (typeof description !== 'undefined') {
|
|
5544
|
-
payload['description'] = description;
|
|
5545
|
-
}
|
|
5546
5668
|
if (typeof data !== 'undefined') {
|
|
5547
5669
|
payload['data'] = data;
|
|
5548
5670
|
}
|
|
@@ -5584,7 +5706,6 @@ class Messaging extends Service {
|
|
|
5584
5706
|
* @param {string[]} topics
|
|
5585
5707
|
* @param {string[]} users
|
|
5586
5708
|
* @param {string[]} targets
|
|
5587
|
-
* @param {string} description
|
|
5588
5709
|
* @param {string} title
|
|
5589
5710
|
* @param {string} body
|
|
5590
5711
|
* @param {object} data
|
|
@@ -5594,12 +5715,12 @@ class Messaging extends Service {
|
|
|
5594
5715
|
* @param {string} color
|
|
5595
5716
|
* @param {string} tag
|
|
5596
5717
|
* @param {number} badge
|
|
5597
|
-
* @param {
|
|
5718
|
+
* @param {MessageType} status
|
|
5598
5719
|
* @param {string} scheduledAt
|
|
5599
5720
|
* @throws {AppwriteException}
|
|
5600
5721
|
* @returns {Promise}
|
|
5601
5722
|
*/
|
|
5602
|
-
|
|
5723
|
+
updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
|
|
5603
5724
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5604
5725
|
if (typeof messageId === 'undefined') {
|
|
5605
5726
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5615,9 +5736,6 @@ class Messaging extends Service {
|
|
|
5615
5736
|
if (typeof targets !== 'undefined') {
|
|
5616
5737
|
payload['targets'] = targets;
|
|
5617
5738
|
}
|
|
5618
|
-
if (typeof description !== 'undefined') {
|
|
5619
|
-
payload['description'] = description;
|
|
5620
|
-
}
|
|
5621
5739
|
if (typeof title !== 'undefined') {
|
|
5622
5740
|
payload['title'] = title;
|
|
5623
5741
|
}
|
|
@@ -5666,13 +5784,12 @@ class Messaging extends Service {
|
|
|
5666
5784
|
* @param {string[]} topics
|
|
5667
5785
|
* @param {string[]} users
|
|
5668
5786
|
* @param {string[]} targets
|
|
5669
|
-
* @param {
|
|
5670
|
-
* @param {string} status
|
|
5787
|
+
* @param {MessageType} status
|
|
5671
5788
|
* @param {string} scheduledAt
|
|
5672
5789
|
* @throws {AppwriteException}
|
|
5673
5790
|
* @returns {Promise}
|
|
5674
5791
|
*/
|
|
5675
|
-
|
|
5792
|
+
createSMS(messageId, content, topics, users, targets, status, scheduledAt) {
|
|
5676
5793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5677
5794
|
if (typeof messageId === 'undefined') {
|
|
5678
5795
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5697,9 +5814,6 @@ class Messaging extends Service {
|
|
|
5697
5814
|
if (typeof targets !== 'undefined') {
|
|
5698
5815
|
payload['targets'] = targets;
|
|
5699
5816
|
}
|
|
5700
|
-
if (typeof description !== 'undefined') {
|
|
5701
|
-
payload['description'] = description;
|
|
5702
|
-
}
|
|
5703
5817
|
if (typeof status !== 'undefined') {
|
|
5704
5818
|
payload['status'] = status;
|
|
5705
5819
|
}
|
|
@@ -5720,14 +5834,13 @@ class Messaging extends Service {
|
|
|
5720
5834
|
* @param {string[]} topics
|
|
5721
5835
|
* @param {string[]} users
|
|
5722
5836
|
* @param {string[]} targets
|
|
5723
|
-
* @param {string} description
|
|
5724
5837
|
* @param {string} content
|
|
5725
|
-
* @param {
|
|
5838
|
+
* @param {MessageType} status
|
|
5726
5839
|
* @param {string} scheduledAt
|
|
5727
5840
|
* @throws {AppwriteException}
|
|
5728
5841
|
* @returns {Promise}
|
|
5729
5842
|
*/
|
|
5730
|
-
updateSMS(messageId, topics, users, targets,
|
|
5843
|
+
updateSMS(messageId, topics, users, targets, content, status, scheduledAt) {
|
|
5731
5844
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5732
5845
|
if (typeof messageId === 'undefined') {
|
|
5733
5846
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5743,9 +5856,6 @@ class Messaging extends Service {
|
|
|
5743
5856
|
if (typeof targets !== 'undefined') {
|
|
5744
5857
|
payload['targets'] = targets;
|
|
5745
5858
|
}
|
|
5746
|
-
if (typeof description !== 'undefined') {
|
|
5747
|
-
payload['description'] = description;
|
|
5748
|
-
}
|
|
5749
5859
|
if (typeof content !== 'undefined') {
|
|
5750
5860
|
payload['content'] = content;
|
|
5751
5861
|
}
|
|
@@ -5782,6 +5892,27 @@ class Messaging extends Service {
|
|
|
5782
5892
|
}, payload);
|
|
5783
5893
|
});
|
|
5784
5894
|
}
|
|
5895
|
+
/**
|
|
5896
|
+
* Delete a message
|
|
5897
|
+
*
|
|
5898
|
+
*
|
|
5899
|
+
* @param {string} messageId
|
|
5900
|
+
* @throws {AppwriteException}
|
|
5901
|
+
* @returns {Promise}
|
|
5902
|
+
*/
|
|
5903
|
+
delete(messageId) {
|
|
5904
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5905
|
+
if (typeof messageId === 'undefined') {
|
|
5906
|
+
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
5907
|
+
}
|
|
5908
|
+
const apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
|
|
5909
|
+
const payload = {};
|
|
5910
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5911
|
+
return yield this.client.call('delete', uri, {
|
|
5912
|
+
'content-type': 'application/json',
|
|
5913
|
+
}, payload);
|
|
5914
|
+
});
|
|
5915
|
+
}
|
|
5785
5916
|
/**
|
|
5786
5917
|
* List message logs
|
|
5787
5918
|
*
|
|
@@ -5807,11 +5938,38 @@ class Messaging extends Service {
|
|
|
5807
5938
|
}, payload);
|
|
5808
5939
|
});
|
|
5809
5940
|
}
|
|
5941
|
+
/**
|
|
5942
|
+
* List message targets
|
|
5943
|
+
*
|
|
5944
|
+
* List the targets associated with a message as set via the targets
|
|
5945
|
+
* attribute.
|
|
5946
|
+
*
|
|
5947
|
+
* @param {string} messageId
|
|
5948
|
+
* @param {string[]} queries
|
|
5949
|
+
* @throws {AppwriteException}
|
|
5950
|
+
* @returns {Promise}
|
|
5951
|
+
*/
|
|
5952
|
+
listTargets(messageId, queries) {
|
|
5953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5954
|
+
if (typeof messageId === 'undefined') {
|
|
5955
|
+
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
5956
|
+
}
|
|
5957
|
+
const apiPath = '/messaging/messages/{messageId}/targets'.replace('{messageId}', messageId);
|
|
5958
|
+
const payload = {};
|
|
5959
|
+
if (typeof queries !== 'undefined') {
|
|
5960
|
+
payload['queries'] = queries;
|
|
5961
|
+
}
|
|
5962
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
5963
|
+
return yield this.client.call('get', uri, {
|
|
5964
|
+
'content-type': 'application/json',
|
|
5965
|
+
}, payload);
|
|
5966
|
+
});
|
|
5967
|
+
}
|
|
5810
5968
|
/**
|
|
5811
5969
|
* List providers
|
|
5812
5970
|
*
|
|
5813
5971
|
*
|
|
5814
|
-
* @param {string} queries
|
|
5972
|
+
* @param {string[]} queries
|
|
5815
5973
|
* @param {string} search
|
|
5816
5974
|
* @throws {AppwriteException}
|
|
5817
5975
|
* @returns {Promise}
|
|
@@ -5846,7 +6004,7 @@ class Messaging extends Service {
|
|
|
5846
6004
|
* @throws {AppwriteException}
|
|
5847
6005
|
* @returns {Promise}
|
|
5848
6006
|
*/
|
|
5849
|
-
|
|
6007
|
+
createAPNSProvider(providerId, name, authKey, authKeyId, teamId, bundleId, enabled) {
|
|
5850
6008
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5851
6009
|
if (typeof providerId === 'undefined') {
|
|
5852
6010
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -5897,7 +6055,7 @@ class Messaging extends Service {
|
|
|
5897
6055
|
* @throws {AppwriteException}
|
|
5898
6056
|
* @returns {Promise}
|
|
5899
6057
|
*/
|
|
5900
|
-
|
|
6058
|
+
updateAPNSProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId) {
|
|
5901
6059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5902
6060
|
if (typeof providerId === 'undefined') {
|
|
5903
6061
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -5939,7 +6097,7 @@ class Messaging extends Service {
|
|
|
5939
6097
|
* @throws {AppwriteException}
|
|
5940
6098
|
* @returns {Promise}
|
|
5941
6099
|
*/
|
|
5942
|
-
|
|
6100
|
+
createFCMProvider(providerId, name, serviceAccountJSON, enabled) {
|
|
5943
6101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5944
6102
|
if (typeof providerId === 'undefined') {
|
|
5945
6103
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -5978,7 +6136,7 @@ class Messaging extends Service {
|
|
|
5978
6136
|
* @throws {AppwriteException}
|
|
5979
6137
|
* @returns {Promise}
|
|
5980
6138
|
*/
|
|
5981
|
-
|
|
6139
|
+
updateFCMProvider(providerId, name, enabled, serviceAccountJSON) {
|
|
5982
6140
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5983
6141
|
if (typeof providerId === 'undefined') {
|
|
5984
6142
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6009,15 +6167,15 @@ class Messaging extends Service {
|
|
|
6009
6167
|
* @param {string} apiKey
|
|
6010
6168
|
* @param {string} domain
|
|
6011
6169
|
* @param {boolean} isEuRegion
|
|
6012
|
-
* @param {boolean} enabled
|
|
6013
6170
|
* @param {string} fromName
|
|
6014
6171
|
* @param {string} fromEmail
|
|
6015
6172
|
* @param {string} replyToName
|
|
6016
6173
|
* @param {string} replyToEmail
|
|
6174
|
+
* @param {boolean} enabled
|
|
6017
6175
|
* @throws {AppwriteException}
|
|
6018
6176
|
* @returns {Promise}
|
|
6019
6177
|
*/
|
|
6020
|
-
createMailgunProvider(providerId, name, apiKey, domain, isEuRegion,
|
|
6178
|
+
createMailgunProvider(providerId, name, apiKey, domain, isEuRegion, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6021
6179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6022
6180
|
if (typeof providerId === 'undefined') {
|
|
6023
6181
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6042,9 +6200,6 @@ class Messaging extends Service {
|
|
|
6042
6200
|
if (typeof isEuRegion !== 'undefined') {
|
|
6043
6201
|
payload['isEuRegion'] = isEuRegion;
|
|
6044
6202
|
}
|
|
6045
|
-
if (typeof enabled !== 'undefined') {
|
|
6046
|
-
payload['enabled'] = enabled;
|
|
6047
|
-
}
|
|
6048
6203
|
if (typeof fromName !== 'undefined') {
|
|
6049
6204
|
payload['fromName'] = fromName;
|
|
6050
6205
|
}
|
|
@@ -6057,6 +6212,9 @@ class Messaging extends Service {
|
|
|
6057
6212
|
if (typeof replyToEmail !== 'undefined') {
|
|
6058
6213
|
payload['replyToEmail'] = replyToEmail;
|
|
6059
6214
|
}
|
|
6215
|
+
if (typeof enabled !== 'undefined') {
|
|
6216
|
+
payload['enabled'] = enabled;
|
|
6217
|
+
}
|
|
6060
6218
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6061
6219
|
return yield this.client.call('post', uri, {
|
|
6062
6220
|
'content-type': 'application/json',
|
|
@@ -6215,15 +6373,15 @@ class Messaging extends Service {
|
|
|
6215
6373
|
* @param {string} providerId
|
|
6216
6374
|
* @param {string} name
|
|
6217
6375
|
* @param {string} apiKey
|
|
6218
|
-
* @param {boolean} enabled
|
|
6219
6376
|
* @param {string} fromName
|
|
6220
6377
|
* @param {string} fromEmail
|
|
6221
6378
|
* @param {string} replyToName
|
|
6222
6379
|
* @param {string} replyToEmail
|
|
6380
|
+
* @param {boolean} enabled
|
|
6223
6381
|
* @throws {AppwriteException}
|
|
6224
6382
|
* @returns {Promise}
|
|
6225
6383
|
*/
|
|
6226
|
-
createSendgridProvider(providerId, name, apiKey,
|
|
6384
|
+
createSendgridProvider(providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6227
6385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6228
6386
|
if (typeof providerId === 'undefined') {
|
|
6229
6387
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6242,9 +6400,6 @@ class Messaging extends Service {
|
|
|
6242
6400
|
if (typeof apiKey !== 'undefined') {
|
|
6243
6401
|
payload['apiKey'] = apiKey;
|
|
6244
6402
|
}
|
|
6245
|
-
if (typeof enabled !== 'undefined') {
|
|
6246
|
-
payload['enabled'] = enabled;
|
|
6247
|
-
}
|
|
6248
6403
|
if (typeof fromName !== 'undefined') {
|
|
6249
6404
|
payload['fromName'] = fromName;
|
|
6250
6405
|
}
|
|
@@ -6257,6 +6412,9 @@ class Messaging extends Service {
|
|
|
6257
6412
|
if (typeof replyToEmail !== 'undefined') {
|
|
6258
6413
|
payload['replyToEmail'] = replyToEmail;
|
|
6259
6414
|
}
|
|
6415
|
+
if (typeof enabled !== 'undefined') {
|
|
6416
|
+
payload['enabled'] = enabled;
|
|
6417
|
+
}
|
|
6260
6418
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6261
6419
|
return yield this.client.call('post', uri, {
|
|
6262
6420
|
'content-type': 'application/json',
|
|
@@ -6312,6 +6470,157 @@ class Messaging extends Service {
|
|
|
6312
6470
|
}, payload);
|
|
6313
6471
|
});
|
|
6314
6472
|
}
|
|
6473
|
+
/**
|
|
6474
|
+
* Create SMTP provider
|
|
6475
|
+
*
|
|
6476
|
+
*
|
|
6477
|
+
* @param {string} providerId
|
|
6478
|
+
* @param {string} name
|
|
6479
|
+
* @param {string} host
|
|
6480
|
+
* @param {number} port
|
|
6481
|
+
* @param {string} username
|
|
6482
|
+
* @param {string} password
|
|
6483
|
+
* @param {SMTPEncryption} encryption
|
|
6484
|
+
* @param {boolean} autoTLS
|
|
6485
|
+
* @param {string} mailer
|
|
6486
|
+
* @param {string} fromName
|
|
6487
|
+
* @param {string} fromEmail
|
|
6488
|
+
* @param {string} replyToName
|
|
6489
|
+
* @param {string} replyToEmail
|
|
6490
|
+
* @param {boolean} enabled
|
|
6491
|
+
* @throws {AppwriteException}
|
|
6492
|
+
* @returns {Promise}
|
|
6493
|
+
*/
|
|
6494
|
+
createSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6496
|
+
if (typeof providerId === 'undefined') {
|
|
6497
|
+
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
6498
|
+
}
|
|
6499
|
+
if (typeof name === 'undefined') {
|
|
6500
|
+
throw new AppwriteException('Missing required parameter: "name"');
|
|
6501
|
+
}
|
|
6502
|
+
if (typeof host === 'undefined') {
|
|
6503
|
+
throw new AppwriteException('Missing required parameter: "host"');
|
|
6504
|
+
}
|
|
6505
|
+
const apiPath = '/messaging/providers/smtp';
|
|
6506
|
+
const payload = {};
|
|
6507
|
+
if (typeof providerId !== 'undefined') {
|
|
6508
|
+
payload['providerId'] = providerId;
|
|
6509
|
+
}
|
|
6510
|
+
if (typeof name !== 'undefined') {
|
|
6511
|
+
payload['name'] = name;
|
|
6512
|
+
}
|
|
6513
|
+
if (typeof host !== 'undefined') {
|
|
6514
|
+
payload['host'] = host;
|
|
6515
|
+
}
|
|
6516
|
+
if (typeof port !== 'undefined') {
|
|
6517
|
+
payload['port'] = port;
|
|
6518
|
+
}
|
|
6519
|
+
if (typeof username !== 'undefined') {
|
|
6520
|
+
payload['username'] = username;
|
|
6521
|
+
}
|
|
6522
|
+
if (typeof password !== 'undefined') {
|
|
6523
|
+
payload['password'] = password;
|
|
6524
|
+
}
|
|
6525
|
+
if (typeof encryption !== 'undefined') {
|
|
6526
|
+
payload['encryption'] = encryption;
|
|
6527
|
+
}
|
|
6528
|
+
if (typeof autoTLS !== 'undefined') {
|
|
6529
|
+
payload['autoTLS'] = autoTLS;
|
|
6530
|
+
}
|
|
6531
|
+
if (typeof mailer !== 'undefined') {
|
|
6532
|
+
payload['mailer'] = mailer;
|
|
6533
|
+
}
|
|
6534
|
+
if (typeof fromName !== 'undefined') {
|
|
6535
|
+
payload['fromName'] = fromName;
|
|
6536
|
+
}
|
|
6537
|
+
if (typeof fromEmail !== 'undefined') {
|
|
6538
|
+
payload['fromEmail'] = fromEmail;
|
|
6539
|
+
}
|
|
6540
|
+
if (typeof replyToName !== 'undefined') {
|
|
6541
|
+
payload['replyToName'] = replyToName;
|
|
6542
|
+
}
|
|
6543
|
+
if (typeof replyToEmail !== 'undefined') {
|
|
6544
|
+
payload['replyToEmail'] = replyToEmail;
|
|
6545
|
+
}
|
|
6546
|
+
if (typeof enabled !== 'undefined') {
|
|
6547
|
+
payload['enabled'] = enabled;
|
|
6548
|
+
}
|
|
6549
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6550
|
+
return yield this.client.call('post', uri, {
|
|
6551
|
+
'content-type': 'application/json',
|
|
6552
|
+
}, payload);
|
|
6553
|
+
});
|
|
6554
|
+
}
|
|
6555
|
+
/**
|
|
6556
|
+
* Update SMTP provider
|
|
6557
|
+
*
|
|
6558
|
+
*
|
|
6559
|
+
* @param {string} providerId
|
|
6560
|
+
* @param {string} name
|
|
6561
|
+
* @param {string} host
|
|
6562
|
+
* @param {number} port
|
|
6563
|
+
* @param {string} username
|
|
6564
|
+
* @param {string} password
|
|
6565
|
+
* @param {SMTPEncryption} encryption
|
|
6566
|
+
* @param {boolean} autoTLS
|
|
6567
|
+
* @param {string} fromName
|
|
6568
|
+
* @param {string} fromEmail
|
|
6569
|
+
* @param {string} replyToName
|
|
6570
|
+
* @param {string} replyToEmail
|
|
6571
|
+
* @param {boolean} enabled
|
|
6572
|
+
* @throws {AppwriteException}
|
|
6573
|
+
* @returns {Promise}
|
|
6574
|
+
*/
|
|
6575
|
+
updateSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6576
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6577
|
+
if (typeof providerId === 'undefined') {
|
|
6578
|
+
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
6579
|
+
}
|
|
6580
|
+
const apiPath = '/messaging/providers/smtp/{providerId}'.replace('{providerId}', providerId);
|
|
6581
|
+
const payload = {};
|
|
6582
|
+
if (typeof name !== 'undefined') {
|
|
6583
|
+
payload['name'] = name;
|
|
6584
|
+
}
|
|
6585
|
+
if (typeof host !== 'undefined') {
|
|
6586
|
+
payload['host'] = host;
|
|
6587
|
+
}
|
|
6588
|
+
if (typeof port !== 'undefined') {
|
|
6589
|
+
payload['port'] = port;
|
|
6590
|
+
}
|
|
6591
|
+
if (typeof username !== 'undefined') {
|
|
6592
|
+
payload['username'] = username;
|
|
6593
|
+
}
|
|
6594
|
+
if (typeof password !== 'undefined') {
|
|
6595
|
+
payload['password'] = password;
|
|
6596
|
+
}
|
|
6597
|
+
if (typeof encryption !== 'undefined') {
|
|
6598
|
+
payload['encryption'] = encryption;
|
|
6599
|
+
}
|
|
6600
|
+
if (typeof autoTLS !== 'undefined') {
|
|
6601
|
+
payload['autoTLS'] = autoTLS;
|
|
6602
|
+
}
|
|
6603
|
+
if (typeof fromName !== 'undefined') {
|
|
6604
|
+
payload['fromName'] = fromName;
|
|
6605
|
+
}
|
|
6606
|
+
if (typeof fromEmail !== 'undefined') {
|
|
6607
|
+
payload['fromEmail'] = fromEmail;
|
|
6608
|
+
}
|
|
6609
|
+
if (typeof replyToName !== 'undefined') {
|
|
6610
|
+
payload['replyToName'] = replyToName;
|
|
6611
|
+
}
|
|
6612
|
+
if (typeof replyToEmail !== 'undefined') {
|
|
6613
|
+
payload['replyToEmail'] = replyToEmail;
|
|
6614
|
+
}
|
|
6615
|
+
if (typeof enabled !== 'undefined') {
|
|
6616
|
+
payload['enabled'] = enabled;
|
|
6617
|
+
}
|
|
6618
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6619
|
+
return yield this.client.call('patch', uri, {
|
|
6620
|
+
'content-type': 'application/json',
|
|
6621
|
+
}, payload);
|
|
6622
|
+
});
|
|
6623
|
+
}
|
|
6315
6624
|
/**
|
|
6316
6625
|
* Create Telesign provider
|
|
6317
6626
|
*
|
|
@@ -6760,7 +7069,7 @@ class Messaging extends Service {
|
|
|
6760
7069
|
* List topics.
|
|
6761
7070
|
*
|
|
6762
7071
|
*
|
|
6763
|
-
* @param {string} queries
|
|
7072
|
+
* @param {string[]} queries
|
|
6764
7073
|
* @param {string} search
|
|
6765
7074
|
* @throws {AppwriteException}
|
|
6766
7075
|
* @returns {Promise}
|
|
@@ -6787,11 +7096,10 @@ class Messaging extends Service {
|
|
|
6787
7096
|
*
|
|
6788
7097
|
* @param {string} topicId
|
|
6789
7098
|
* @param {string} name
|
|
6790
|
-
* @param {string} description
|
|
6791
7099
|
* @throws {AppwriteException}
|
|
6792
7100
|
* @returns {Promise}
|
|
6793
7101
|
*/
|
|
6794
|
-
createTopic(topicId, name
|
|
7102
|
+
createTopic(topicId, name) {
|
|
6795
7103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6796
7104
|
if (typeof topicId === 'undefined') {
|
|
6797
7105
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -6807,9 +7115,6 @@ class Messaging extends Service {
|
|
|
6807
7115
|
if (typeof name !== 'undefined') {
|
|
6808
7116
|
payload['name'] = name;
|
|
6809
7117
|
}
|
|
6810
|
-
if (typeof description !== 'undefined') {
|
|
6811
|
-
payload['description'] = description;
|
|
6812
|
-
}
|
|
6813
7118
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6814
7119
|
return yield this.client.call('post', uri, {
|
|
6815
7120
|
'content-type': 'application/json',
|
|
@@ -6843,11 +7148,10 @@ class Messaging extends Service {
|
|
|
6843
7148
|
*
|
|
6844
7149
|
* @param {string} topicId
|
|
6845
7150
|
* @param {string} name
|
|
6846
|
-
* @param {string} description
|
|
6847
7151
|
* @throws {AppwriteException}
|
|
6848
7152
|
* @returns {Promise}
|
|
6849
7153
|
*/
|
|
6850
|
-
updateTopic(topicId, name
|
|
7154
|
+
updateTopic(topicId, name) {
|
|
6851
7155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6852
7156
|
if (typeof topicId === 'undefined') {
|
|
6853
7157
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -6857,9 +7161,6 @@ class Messaging extends Service {
|
|
|
6857
7161
|
if (typeof name !== 'undefined') {
|
|
6858
7162
|
payload['name'] = name;
|
|
6859
7163
|
}
|
|
6860
|
-
if (typeof description !== 'undefined') {
|
|
6861
|
-
payload['description'] = description;
|
|
6862
|
-
}
|
|
6863
7164
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6864
7165
|
return yield this.client.call('patch', uri, {
|
|
6865
7166
|
'content-type': 'application/json',
|
|
@@ -6917,7 +7218,7 @@ class Messaging extends Service {
|
|
|
6917
7218
|
*
|
|
6918
7219
|
*
|
|
6919
7220
|
* @param {string} topicId
|
|
6920
|
-
* @param {string} queries
|
|
7221
|
+
* @param {string[]} queries
|
|
6921
7222
|
* @param {string} search
|
|
6922
7223
|
* @throws {AppwriteException}
|
|
6923
7224
|
* @returns {Promise}
|
|
@@ -7036,7 +7337,7 @@ class Migrations extends Service {
|
|
|
7036
7337
|
* List Migrations
|
|
7037
7338
|
*
|
|
7038
7339
|
*
|
|
7039
|
-
* @param {string} queries
|
|
7340
|
+
* @param {string[]} queries
|
|
7040
7341
|
* @param {string} search
|
|
7041
7342
|
* @throws {AppwriteException}
|
|
7042
7343
|
* @returns {Promise}
|
|
@@ -7644,16 +7945,30 @@ class Project extends Service {
|
|
|
7644
7945
|
* Get usage stats for a project
|
|
7645
7946
|
*
|
|
7646
7947
|
*
|
|
7647
|
-
* @param {string}
|
|
7948
|
+
* @param {string} startDate
|
|
7949
|
+
* @param {string} endDate
|
|
7950
|
+
* @param {ProjectUsageRange} period
|
|
7648
7951
|
* @throws {AppwriteException}
|
|
7649
7952
|
* @returns {Promise}
|
|
7650
7953
|
*/
|
|
7651
|
-
getUsage(
|
|
7954
|
+
getUsage(startDate, endDate, period) {
|
|
7652
7955
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7956
|
+
if (typeof startDate === 'undefined') {
|
|
7957
|
+
throw new AppwriteException('Missing required parameter: "startDate"');
|
|
7958
|
+
}
|
|
7959
|
+
if (typeof endDate === 'undefined') {
|
|
7960
|
+
throw new AppwriteException('Missing required parameter: "endDate"');
|
|
7961
|
+
}
|
|
7653
7962
|
const apiPath = '/project/usage';
|
|
7654
7963
|
const payload = {};
|
|
7655
|
-
if (typeof
|
|
7656
|
-
payload['
|
|
7964
|
+
if (typeof startDate !== 'undefined') {
|
|
7965
|
+
payload['startDate'] = startDate;
|
|
7966
|
+
}
|
|
7967
|
+
if (typeof endDate !== 'undefined') {
|
|
7968
|
+
payload['endDate'] = endDate;
|
|
7969
|
+
}
|
|
7970
|
+
if (typeof period !== 'undefined') {
|
|
7971
|
+
payload['period'] = period;
|
|
7657
7972
|
}
|
|
7658
7973
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7659
7974
|
return yield this.client.call('get', uri, {
|
|
@@ -7829,7 +8144,7 @@ class Projects extends Service {
|
|
|
7829
8144
|
* @param {string} projectId
|
|
7830
8145
|
* @param {string} name
|
|
7831
8146
|
* @param {string} teamId
|
|
7832
|
-
* @param {
|
|
8147
|
+
* @param {Region} region
|
|
7833
8148
|
* @param {string} description
|
|
7834
8149
|
* @param {string} logo
|
|
7835
8150
|
* @param {string} url
|
|
@@ -8090,34 +8405,6 @@ class Projects extends Service {
|
|
|
8090
8405
|
}, payload);
|
|
8091
8406
|
});
|
|
8092
8407
|
}
|
|
8093
|
-
/**
|
|
8094
|
-
* Update Project user minimum sessions factors
|
|
8095
|
-
*
|
|
8096
|
-
*
|
|
8097
|
-
* @param {string} projectId
|
|
8098
|
-
* @param {number} factors
|
|
8099
|
-
* @throws {AppwriteException}
|
|
8100
|
-
* @returns {Promise}
|
|
8101
|
-
*/
|
|
8102
|
-
updateAuthMfaFactors(projectId, factors) {
|
|
8103
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8104
|
-
if (typeof projectId === 'undefined') {
|
|
8105
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
8106
|
-
}
|
|
8107
|
-
if (typeof factors === 'undefined') {
|
|
8108
|
-
throw new AppwriteException('Missing required parameter: "factors"');
|
|
8109
|
-
}
|
|
8110
|
-
const apiPath = '/projects/{projectId}/auth/mfa/factors'.replace('{projectId}', projectId);
|
|
8111
|
-
const payload = {};
|
|
8112
|
-
if (typeof factors !== 'undefined') {
|
|
8113
|
-
payload['factors'] = factors;
|
|
8114
|
-
}
|
|
8115
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8116
|
-
return yield this.client.call('patch', uri, {
|
|
8117
|
-
'content-type': 'application/json',
|
|
8118
|
-
}, payload);
|
|
8119
|
-
});
|
|
8120
|
-
}
|
|
8121
8408
|
/**
|
|
8122
8409
|
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
8123
8410
|
*
|
|
@@ -8207,7 +8494,7 @@ class Projects extends Service {
|
|
|
8207
8494
|
*
|
|
8208
8495
|
*
|
|
8209
8496
|
* @param {string} projectId
|
|
8210
|
-
* @param {
|
|
8497
|
+
* @param {AuthMethod} method
|
|
8211
8498
|
* @param {boolean} status
|
|
8212
8499
|
* @throws {AppwriteException}
|
|
8213
8500
|
* @returns {Promise}
|
|
@@ -8392,7 +8679,7 @@ class Projects extends Service {
|
|
|
8392
8679
|
*
|
|
8393
8680
|
*
|
|
8394
8681
|
* @param {string} projectId
|
|
8395
|
-
* @param {
|
|
8682
|
+
* @param {OAuthProvider} provider
|
|
8396
8683
|
* @param {string} appId
|
|
8397
8684
|
* @param {string} secret
|
|
8398
8685
|
* @param {boolean} enabled
|
|
@@ -8453,7 +8740,7 @@ class Projects extends Service {
|
|
|
8453
8740
|
*
|
|
8454
8741
|
*
|
|
8455
8742
|
* @param {string} projectId
|
|
8456
|
-
* @param {
|
|
8743
|
+
* @param {PlatformType} type
|
|
8457
8744
|
* @param {string} name
|
|
8458
8745
|
* @param {string} key
|
|
8459
8746
|
* @param {string} store
|
|
@@ -8594,7 +8881,7 @@ class Projects extends Service {
|
|
|
8594
8881
|
*
|
|
8595
8882
|
*
|
|
8596
8883
|
* @param {string} projectId
|
|
8597
|
-
* @param {
|
|
8884
|
+
* @param {APIService} service
|
|
8598
8885
|
* @param {boolean} status
|
|
8599
8886
|
* @throws {AppwriteException}
|
|
8600
8887
|
* @returns {Promise}
|
|
@@ -8653,7 +8940,7 @@ class Projects extends Service {
|
|
|
8653
8940
|
});
|
|
8654
8941
|
}
|
|
8655
8942
|
/**
|
|
8656
|
-
* Update SMTP
|
|
8943
|
+
* Update SMTP
|
|
8657
8944
|
*
|
|
8658
8945
|
*
|
|
8659
8946
|
* @param {string} projectId
|
|
@@ -8665,11 +8952,11 @@ class Projects extends Service {
|
|
|
8665
8952
|
* @param {number} port
|
|
8666
8953
|
* @param {string} username
|
|
8667
8954
|
* @param {string} password
|
|
8668
|
-
* @param {
|
|
8955
|
+
* @param {SMTPSecure} secure
|
|
8669
8956
|
* @throws {AppwriteException}
|
|
8670
8957
|
* @returns {Promise}
|
|
8671
8958
|
*/
|
|
8672
|
-
|
|
8959
|
+
updateSmtp(projectId, enabled, senderName, senderEmail, replyTo, host, port, username, password, secure) {
|
|
8673
8960
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8674
8961
|
if (typeof projectId === 'undefined') {
|
|
8675
8962
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
@@ -8712,6 +8999,75 @@ class Projects extends Service {
|
|
|
8712
8999
|
}, payload);
|
|
8713
9000
|
});
|
|
8714
9001
|
}
|
|
9002
|
+
/**
|
|
9003
|
+
* Create SMTP test
|
|
9004
|
+
*
|
|
9005
|
+
*
|
|
9006
|
+
* @param {string} projectId
|
|
9007
|
+
* @param {string[]} emails
|
|
9008
|
+
* @param {string} senderName
|
|
9009
|
+
* @param {string} senderEmail
|
|
9010
|
+
* @param {string} host
|
|
9011
|
+
* @param {string} replyTo
|
|
9012
|
+
* @param {number} port
|
|
9013
|
+
* @param {string} username
|
|
9014
|
+
* @param {string} password
|
|
9015
|
+
* @param {SMTPSecure} secure
|
|
9016
|
+
* @throws {AppwriteException}
|
|
9017
|
+
* @returns {Promise}
|
|
9018
|
+
*/
|
|
9019
|
+
createSmtpTest(projectId, emails, senderName, senderEmail, host, replyTo, port, username, password, secure) {
|
|
9020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9021
|
+
if (typeof projectId === 'undefined') {
|
|
9022
|
+
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
9023
|
+
}
|
|
9024
|
+
if (typeof emails === 'undefined') {
|
|
9025
|
+
throw new AppwriteException('Missing required parameter: "emails"');
|
|
9026
|
+
}
|
|
9027
|
+
if (typeof senderName === 'undefined') {
|
|
9028
|
+
throw new AppwriteException('Missing required parameter: "senderName"');
|
|
9029
|
+
}
|
|
9030
|
+
if (typeof senderEmail === 'undefined') {
|
|
9031
|
+
throw new AppwriteException('Missing required parameter: "senderEmail"');
|
|
9032
|
+
}
|
|
9033
|
+
if (typeof host === 'undefined') {
|
|
9034
|
+
throw new AppwriteException('Missing required parameter: "host"');
|
|
9035
|
+
}
|
|
9036
|
+
const apiPath = '/projects/{projectId}/smtp/tests'.replace('{projectId}', projectId);
|
|
9037
|
+
const payload = {};
|
|
9038
|
+
if (typeof emails !== 'undefined') {
|
|
9039
|
+
payload['emails'] = emails;
|
|
9040
|
+
}
|
|
9041
|
+
if (typeof senderName !== 'undefined') {
|
|
9042
|
+
payload['senderName'] = senderName;
|
|
9043
|
+
}
|
|
9044
|
+
if (typeof senderEmail !== 'undefined') {
|
|
9045
|
+
payload['senderEmail'] = senderEmail;
|
|
9046
|
+
}
|
|
9047
|
+
if (typeof replyTo !== 'undefined') {
|
|
9048
|
+
payload['replyTo'] = replyTo;
|
|
9049
|
+
}
|
|
9050
|
+
if (typeof host !== 'undefined') {
|
|
9051
|
+
payload['host'] = host;
|
|
9052
|
+
}
|
|
9053
|
+
if (typeof port !== 'undefined') {
|
|
9054
|
+
payload['port'] = port;
|
|
9055
|
+
}
|
|
9056
|
+
if (typeof username !== 'undefined') {
|
|
9057
|
+
payload['username'] = username;
|
|
9058
|
+
}
|
|
9059
|
+
if (typeof password !== 'undefined') {
|
|
9060
|
+
payload['password'] = password;
|
|
9061
|
+
}
|
|
9062
|
+
if (typeof secure !== 'undefined') {
|
|
9063
|
+
payload['secure'] = secure;
|
|
9064
|
+
}
|
|
9065
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
9066
|
+
return yield this.client.call('post', uri, {
|
|
9067
|
+
'content-type': 'application/json',
|
|
9068
|
+
}, payload);
|
|
9069
|
+
});
|
|
9070
|
+
}
|
|
8715
9071
|
/**
|
|
8716
9072
|
* Update Project Team
|
|
8717
9073
|
*
|
|
@@ -8745,8 +9101,8 @@ class Projects extends Service {
|
|
|
8745
9101
|
*
|
|
8746
9102
|
*
|
|
8747
9103
|
* @param {string} projectId
|
|
8748
|
-
* @param {
|
|
8749
|
-
* @param {
|
|
9104
|
+
* @param {TemplateType} type
|
|
9105
|
+
* @param {TemplateLocale} locale
|
|
8750
9106
|
* @throws {AppwriteException}
|
|
8751
9107
|
* @returns {Promise}
|
|
8752
9108
|
*/
|
|
@@ -8774,8 +9130,8 @@ class Projects extends Service {
|
|
|
8774
9130
|
*
|
|
8775
9131
|
*
|
|
8776
9132
|
* @param {string} projectId
|
|
8777
|
-
* @param {
|
|
8778
|
-
* @param {
|
|
9133
|
+
* @param {TemplateType} type
|
|
9134
|
+
* @param {TemplateLocale} locale
|
|
8779
9135
|
* @param {string} subject
|
|
8780
9136
|
* @param {string} message
|
|
8781
9137
|
* @param {string} senderName
|
|
@@ -8829,8 +9185,8 @@ class Projects extends Service {
|
|
|
8829
9185
|
*
|
|
8830
9186
|
*
|
|
8831
9187
|
* @param {string} projectId
|
|
8832
|
-
* @param {
|
|
8833
|
-
* @param {
|
|
9188
|
+
* @param {TemplateType} type
|
|
9189
|
+
* @param {TemplateLocale} locale
|
|
8834
9190
|
* @throws {AppwriteException}
|
|
8835
9191
|
* @returns {Promise}
|
|
8836
9192
|
*/
|
|
@@ -8858,8 +9214,8 @@ class Projects extends Service {
|
|
|
8858
9214
|
*
|
|
8859
9215
|
*
|
|
8860
9216
|
* @param {string} projectId
|
|
8861
|
-
* @param {
|
|
8862
|
-
* @param {
|
|
9217
|
+
* @param {TemplateType} type
|
|
9218
|
+
* @param {TemplateLocale} locale
|
|
8863
9219
|
* @throws {AppwriteException}
|
|
8864
9220
|
* @returns {Promise}
|
|
8865
9221
|
*/
|
|
@@ -8887,8 +9243,8 @@ class Projects extends Service {
|
|
|
8887
9243
|
*
|
|
8888
9244
|
*
|
|
8889
9245
|
* @param {string} projectId
|
|
8890
|
-
* @param {
|
|
8891
|
-
* @param {
|
|
9246
|
+
* @param {TemplateType} type
|
|
9247
|
+
* @param {TemplateLocale} locale
|
|
8892
9248
|
* @param {string} message
|
|
8893
9249
|
* @throws {AppwriteException}
|
|
8894
9250
|
* @returns {Promise}
|
|
@@ -8923,8 +9279,8 @@ class Projects extends Service {
|
|
|
8923
9279
|
*
|
|
8924
9280
|
*
|
|
8925
9281
|
* @param {string} projectId
|
|
8926
|
-
* @param {
|
|
8927
|
-
* @param {
|
|
9282
|
+
* @param {TemplateType} type
|
|
9283
|
+
* @param {TemplateLocale} locale
|
|
8928
9284
|
* @throws {AppwriteException}
|
|
8929
9285
|
* @returns {Promise}
|
|
8930
9286
|
*/
|
|
@@ -8947,31 +9303,6 @@ class Projects extends Service {
|
|
|
8947
9303
|
}, payload);
|
|
8948
9304
|
});
|
|
8949
9305
|
}
|
|
8950
|
-
/**
|
|
8951
|
-
* Get usage stats for a project
|
|
8952
|
-
*
|
|
8953
|
-
*
|
|
8954
|
-
* @param {string} projectId
|
|
8955
|
-
* @param {string} range
|
|
8956
|
-
* @throws {AppwriteException}
|
|
8957
|
-
* @returns {Promise}
|
|
8958
|
-
*/
|
|
8959
|
-
getUsage(projectId, range) {
|
|
8960
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8961
|
-
if (typeof projectId === 'undefined') {
|
|
8962
|
-
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
8963
|
-
}
|
|
8964
|
-
const apiPath = '/projects/{projectId}/usage'.replace('{projectId}', projectId);
|
|
8965
|
-
const payload = {};
|
|
8966
|
-
if (typeof range !== 'undefined') {
|
|
8967
|
-
payload['range'] = range;
|
|
8968
|
-
}
|
|
8969
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
8970
|
-
return yield this.client.call('get', uri, {
|
|
8971
|
-
'content-type': 'application/json',
|
|
8972
|
-
}, payload);
|
|
8973
|
-
});
|
|
8974
|
-
}
|
|
8975
9306
|
/**
|
|
8976
9307
|
* List webhooks
|
|
8977
9308
|
*
|
|
@@ -9002,12 +9333,13 @@ class Projects extends Service {
|
|
|
9002
9333
|
* @param {string[]} events
|
|
9003
9334
|
* @param {string} url
|
|
9004
9335
|
* @param {boolean} security
|
|
9336
|
+
* @param {boolean} enabled
|
|
9005
9337
|
* @param {string} httpUser
|
|
9006
9338
|
* @param {string} httpPass
|
|
9007
9339
|
* @throws {AppwriteException}
|
|
9008
9340
|
* @returns {Promise}
|
|
9009
9341
|
*/
|
|
9010
|
-
createWebhook(projectId, name, events, url, security, httpUser, httpPass) {
|
|
9342
|
+
createWebhook(projectId, name, events, url, security, enabled, httpUser, httpPass) {
|
|
9011
9343
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9012
9344
|
if (typeof projectId === 'undefined') {
|
|
9013
9345
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
@@ -9029,6 +9361,9 @@ class Projects extends Service {
|
|
|
9029
9361
|
if (typeof name !== 'undefined') {
|
|
9030
9362
|
payload['name'] = name;
|
|
9031
9363
|
}
|
|
9364
|
+
if (typeof enabled !== 'undefined') {
|
|
9365
|
+
payload['enabled'] = enabled;
|
|
9366
|
+
}
|
|
9032
9367
|
if (typeof events !== 'undefined') {
|
|
9033
9368
|
payload['events'] = events;
|
|
9034
9369
|
}
|
|
@@ -9085,12 +9420,13 @@ class Projects extends Service {
|
|
|
9085
9420
|
* @param {string[]} events
|
|
9086
9421
|
* @param {string} url
|
|
9087
9422
|
* @param {boolean} security
|
|
9423
|
+
* @param {boolean} enabled
|
|
9088
9424
|
* @param {string} httpUser
|
|
9089
9425
|
* @param {string} httpPass
|
|
9090
9426
|
* @throws {AppwriteException}
|
|
9091
9427
|
* @returns {Promise}
|
|
9092
9428
|
*/
|
|
9093
|
-
updateWebhook(projectId, webhookId, name, events, url, security, httpUser, httpPass) {
|
|
9429
|
+
updateWebhook(projectId, webhookId, name, events, url, security, enabled, httpUser, httpPass) {
|
|
9094
9430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9095
9431
|
if (typeof projectId === 'undefined') {
|
|
9096
9432
|
throw new AppwriteException('Missing required parameter: "projectId"');
|
|
@@ -9115,6 +9451,9 @@ class Projects extends Service {
|
|
|
9115
9451
|
if (typeof name !== 'undefined') {
|
|
9116
9452
|
payload['name'] = name;
|
|
9117
9453
|
}
|
|
9454
|
+
if (typeof enabled !== 'undefined') {
|
|
9455
|
+
payload['enabled'] = enabled;
|
|
9456
|
+
}
|
|
9118
9457
|
if (typeof events !== 'undefined') {
|
|
9119
9458
|
payload['events'] = events;
|
|
9120
9459
|
}
|
|
@@ -9225,7 +9564,7 @@ class Proxy extends Service {
|
|
|
9225
9564
|
* Create a new proxy rule.
|
|
9226
9565
|
*
|
|
9227
9566
|
* @param {string} domain
|
|
9228
|
-
* @param {
|
|
9567
|
+
* @param {ResourceType} resourceType
|
|
9229
9568
|
* @param {string} resourceId
|
|
9230
9569
|
* @throws {AppwriteException}
|
|
9231
9570
|
* @returns {Promise}
|
|
@@ -9365,7 +9704,7 @@ class Storage extends Service {
|
|
|
9365
9704
|
* @param {boolean} enabled
|
|
9366
9705
|
* @param {number} maximumFileSize
|
|
9367
9706
|
* @param {string[]} allowedFileExtensions
|
|
9368
|
-
* @param {
|
|
9707
|
+
* @param {Compression} compression
|
|
9369
9708
|
* @param {boolean} encryption
|
|
9370
9709
|
* @param {boolean} antivirus
|
|
9371
9710
|
* @throws {AppwriteException}
|
|
@@ -9452,7 +9791,7 @@ class Storage extends Service {
|
|
|
9452
9791
|
* @param {boolean} enabled
|
|
9453
9792
|
* @param {number} maximumFileSize
|
|
9454
9793
|
* @param {string[]} allowedFileExtensions
|
|
9455
|
-
* @param {
|
|
9794
|
+
* @param {Compression} compression
|
|
9456
9795
|
* @param {boolean} encryption
|
|
9457
9796
|
* @param {boolean} antivirus
|
|
9458
9797
|
* @throws {AppwriteException}
|
|
@@ -9781,7 +10120,7 @@ class Storage extends Service {
|
|
|
9781
10120
|
* @param {string} fileId
|
|
9782
10121
|
* @param {number} width
|
|
9783
10122
|
* @param {number} height
|
|
9784
|
-
* @param {
|
|
10123
|
+
* @param {ImageGravity} gravity
|
|
9785
10124
|
* @param {number} quality
|
|
9786
10125
|
* @param {number} borderWidth
|
|
9787
10126
|
* @param {string} borderColor
|
|
@@ -9789,7 +10128,7 @@ class Storage extends Service {
|
|
|
9789
10128
|
* @param {number} opacity
|
|
9790
10129
|
* @param {number} rotation
|
|
9791
10130
|
* @param {string} background
|
|
9792
|
-
* @param {
|
|
10131
|
+
* @param {ImageFormat} output
|
|
9793
10132
|
* @throws {AppwriteException}
|
|
9794
10133
|
* @returns {URL}
|
|
9795
10134
|
*/
|
|
@@ -9874,7 +10213,7 @@ class Storage extends Service {
|
|
|
9874
10213
|
* Get usage stats for storage
|
|
9875
10214
|
*
|
|
9876
10215
|
*
|
|
9877
|
-
* @param {
|
|
10216
|
+
* @param {StorageUsageRange} range
|
|
9878
10217
|
* @throws {AppwriteException}
|
|
9879
10218
|
* @returns {Promise}
|
|
9880
10219
|
*/
|
|
@@ -9892,11 +10231,11 @@ class Storage extends Service {
|
|
|
9892
10231
|
});
|
|
9893
10232
|
}
|
|
9894
10233
|
/**
|
|
9895
|
-
* Get usage stats for
|
|
10234
|
+
* Get usage stats for storage bucket
|
|
9896
10235
|
*
|
|
9897
10236
|
*
|
|
9898
10237
|
* @param {string} bucketId
|
|
9899
|
-
* @param {
|
|
10238
|
+
* @param {StorageUsageRange} range
|
|
9900
10239
|
* @throws {AppwriteException}
|
|
9901
10240
|
* @returns {Promise}
|
|
9902
10241
|
*/
|
|
@@ -10550,7 +10889,7 @@ class Users extends Service {
|
|
|
10550
10889
|
*
|
|
10551
10890
|
* Get identities for all users.
|
|
10552
10891
|
*
|
|
10553
|
-
* @param {string} queries
|
|
10892
|
+
* @param {string[]} queries
|
|
10554
10893
|
* @param {string} search
|
|
10555
10894
|
* @throws {AppwriteException}
|
|
10556
10895
|
* @returns {Promise}
|
|
@@ -10845,7 +11184,7 @@ class Users extends Service {
|
|
|
10845
11184
|
* @param {string} userId
|
|
10846
11185
|
* @param {string} email
|
|
10847
11186
|
* @param {string} password
|
|
10848
|
-
* @param {
|
|
11187
|
+
* @param {PasswordVersion} passwordVersion
|
|
10849
11188
|
* @param {string} name
|
|
10850
11189
|
* @throws {AppwriteException}
|
|
10851
11190
|
* @returns {Promise}
|
|
@@ -10888,21 +11227,17 @@ class Users extends Service {
|
|
|
10888
11227
|
* Get usage stats for the users API
|
|
10889
11228
|
*
|
|
10890
11229
|
*
|
|
10891
|
-
* @param {
|
|
10892
|
-
* @param {string} provider
|
|
11230
|
+
* @param {UserUsageRange} range
|
|
10893
11231
|
* @throws {AppwriteException}
|
|
10894
11232
|
* @returns {Promise}
|
|
10895
11233
|
*/
|
|
10896
|
-
getUsage(range
|
|
11234
|
+
getUsage(range) {
|
|
10897
11235
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10898
11236
|
const apiPath = '/users/usage';
|
|
10899
11237
|
const payload = {};
|
|
10900
11238
|
if (typeof range !== 'undefined') {
|
|
10901
11239
|
payload['range'] = range;
|
|
10902
11240
|
}
|
|
10903
|
-
if (typeof provider !== 'undefined') {
|
|
10904
|
-
payload['provider'] = provider;
|
|
10905
|
-
}
|
|
10906
11241
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
10907
11242
|
return yield this.client.call('get', uri, {
|
|
10908
11243
|
'content-type': 'application/json',
|
|
@@ -11102,7 +11437,7 @@ class Users extends Service {
|
|
|
11102
11437
|
*
|
|
11103
11438
|
*
|
|
11104
11439
|
* @param {string} userId
|
|
11105
|
-
* @param {
|
|
11440
|
+
* @param {AuthenticatorProvider} provider
|
|
11106
11441
|
* @param {string} otp
|
|
11107
11442
|
* @throws {AppwriteException}
|
|
11108
11443
|
* @returns {Promise}
|
|
@@ -11422,7 +11757,7 @@ class Users extends Service {
|
|
|
11422
11757
|
*
|
|
11423
11758
|
*
|
|
11424
11759
|
* @param {string} userId
|
|
11425
|
-
* @param {string} queries
|
|
11760
|
+
* @param {string[]} queries
|
|
11426
11761
|
* @throws {AppwriteException}
|
|
11427
11762
|
* @returns {Promise}
|
|
11428
11763
|
*/
|
|
@@ -11448,7 +11783,7 @@ class Users extends Service {
|
|
|
11448
11783
|
*
|
|
11449
11784
|
* @param {string} userId
|
|
11450
11785
|
* @param {string} targetId
|
|
11451
|
-
* @param {
|
|
11786
|
+
* @param {MessagingProviderType} providerType
|
|
11452
11787
|
* @param {string} identifier
|
|
11453
11788
|
* @param {string} providerId
|
|
11454
11789
|
* @param {string} name
|
|
@@ -12038,5 +12373,635 @@ class ID {
|
|
|
12038
12373
|
}
|
|
12039
12374
|
}
|
|
12040
12375
|
|
|
12041
|
-
|
|
12376
|
+
var AuthenticatorProvider;
|
|
12377
|
+
(function (AuthenticatorProvider) {
|
|
12378
|
+
AuthenticatorProvider["Totp"] = "totp";
|
|
12379
|
+
})(AuthenticatorProvider || (AuthenticatorProvider = {}));
|
|
12380
|
+
|
|
12381
|
+
var AuthenticatorFactor;
|
|
12382
|
+
(function (AuthenticatorFactor) {
|
|
12383
|
+
AuthenticatorFactor["Totp"] = "totp";
|
|
12384
|
+
})(AuthenticatorFactor || (AuthenticatorFactor = {}));
|
|
12385
|
+
|
|
12386
|
+
var OAuthProvider;
|
|
12387
|
+
(function (OAuthProvider) {
|
|
12388
|
+
OAuthProvider["Amazon"] = "amazon";
|
|
12389
|
+
OAuthProvider["Apple"] = "apple";
|
|
12390
|
+
OAuthProvider["Auth0"] = "auth0";
|
|
12391
|
+
OAuthProvider["Authentik"] = "authentik";
|
|
12392
|
+
OAuthProvider["Autodesk"] = "autodesk";
|
|
12393
|
+
OAuthProvider["Bitbucket"] = "bitbucket";
|
|
12394
|
+
OAuthProvider["Bitly"] = "bitly";
|
|
12395
|
+
OAuthProvider["Box"] = "box";
|
|
12396
|
+
OAuthProvider["Dailymotion"] = "dailymotion";
|
|
12397
|
+
OAuthProvider["Discord"] = "discord";
|
|
12398
|
+
OAuthProvider["Disqus"] = "disqus";
|
|
12399
|
+
OAuthProvider["Dropbox"] = "dropbox";
|
|
12400
|
+
OAuthProvider["Etsy"] = "etsy";
|
|
12401
|
+
OAuthProvider["Facebook"] = "facebook";
|
|
12402
|
+
OAuthProvider["Github"] = "github";
|
|
12403
|
+
OAuthProvider["Gitlab"] = "gitlab";
|
|
12404
|
+
OAuthProvider["Google"] = "google";
|
|
12405
|
+
OAuthProvider["Linkedin"] = "linkedin";
|
|
12406
|
+
OAuthProvider["Microsoft"] = "microsoft";
|
|
12407
|
+
OAuthProvider["Notion"] = "notion";
|
|
12408
|
+
OAuthProvider["Oidc"] = "oidc";
|
|
12409
|
+
OAuthProvider["Okta"] = "okta";
|
|
12410
|
+
OAuthProvider["Paypal"] = "paypal";
|
|
12411
|
+
OAuthProvider["PaypalSandbox"] = "paypalSandbox";
|
|
12412
|
+
OAuthProvider["Podio"] = "podio";
|
|
12413
|
+
OAuthProvider["Salesforce"] = "salesforce";
|
|
12414
|
+
OAuthProvider["Slack"] = "slack";
|
|
12415
|
+
OAuthProvider["Spotify"] = "spotify";
|
|
12416
|
+
OAuthProvider["Stripe"] = "stripe";
|
|
12417
|
+
OAuthProvider["Tradeshift"] = "tradeshift";
|
|
12418
|
+
OAuthProvider["TradeshiftBox"] = "tradeshiftBox";
|
|
12419
|
+
OAuthProvider["Twitch"] = "twitch";
|
|
12420
|
+
OAuthProvider["Wordpress"] = "wordpress";
|
|
12421
|
+
OAuthProvider["Yahoo"] = "yahoo";
|
|
12422
|
+
OAuthProvider["Yammer"] = "yammer";
|
|
12423
|
+
OAuthProvider["Yandex"] = "yandex";
|
|
12424
|
+
OAuthProvider["Zoho"] = "zoho";
|
|
12425
|
+
OAuthProvider["Zoom"] = "zoom";
|
|
12426
|
+
OAuthProvider["Mock"] = "mock";
|
|
12427
|
+
})(OAuthProvider || (OAuthProvider = {}));
|
|
12428
|
+
|
|
12429
|
+
var Browser;
|
|
12430
|
+
(function (Browser) {
|
|
12431
|
+
Browser["AvantBrowser"] = "aa";
|
|
12432
|
+
Browser["AndroidWebViewBeta"] = "an";
|
|
12433
|
+
Browser["GoogleChrome"] = "ch";
|
|
12434
|
+
Browser["GoogleChromeIOS"] = "ci";
|
|
12435
|
+
Browser["GoogleChromeMobile"] = "cm";
|
|
12436
|
+
Browser["Chromium"] = "cr";
|
|
12437
|
+
Browser["MozillaFirefox"] = "ff";
|
|
12438
|
+
Browser["Safari"] = "sf";
|
|
12439
|
+
Browser["MobileSafari"] = "mf";
|
|
12440
|
+
Browser["MicrosoftEdge"] = "ps";
|
|
12441
|
+
Browser["MicrosoftEdgeIOS"] = "oi";
|
|
12442
|
+
Browser["OperaMini"] = "om";
|
|
12443
|
+
Browser["Opera"] = "op";
|
|
12444
|
+
Browser["OperaNext"] = "on";
|
|
12445
|
+
})(Browser || (Browser = {}));
|
|
12446
|
+
|
|
12447
|
+
var CreditCard;
|
|
12448
|
+
(function (CreditCard) {
|
|
12449
|
+
CreditCard["AmericanExpress"] = "amex";
|
|
12450
|
+
CreditCard["Argencard"] = "argencard";
|
|
12451
|
+
CreditCard["Cabal"] = "cabal";
|
|
12452
|
+
CreditCard["Consosud"] = "censosud";
|
|
12453
|
+
CreditCard["DinersClub"] = "diners";
|
|
12454
|
+
CreditCard["Discover"] = "discover";
|
|
12455
|
+
CreditCard["Elo"] = "elo";
|
|
12456
|
+
CreditCard["Hipercard"] = "hipercard";
|
|
12457
|
+
CreditCard["JCB"] = "jcb";
|
|
12458
|
+
CreditCard["Mastercard"] = "mastercard";
|
|
12459
|
+
CreditCard["Naranja"] = "naranja";
|
|
12460
|
+
CreditCard["TarjetaShopping"] = "targeta-shopping";
|
|
12461
|
+
CreditCard["UnionChinaPay"] = "union-china-pay";
|
|
12462
|
+
CreditCard["Visa"] = "visa";
|
|
12463
|
+
CreditCard["MIR"] = "mir";
|
|
12464
|
+
CreditCard["Maestro"] = "maestro";
|
|
12465
|
+
})(CreditCard || (CreditCard = {}));
|
|
12466
|
+
|
|
12467
|
+
var Flag;
|
|
12468
|
+
(function (Flag) {
|
|
12469
|
+
Flag["Afghanistan"] = "af";
|
|
12470
|
+
Flag["Angola"] = "ao";
|
|
12471
|
+
Flag["Albania"] = "al";
|
|
12472
|
+
Flag["Andorra"] = "ad";
|
|
12473
|
+
Flag["UnitedArabEmirates"] = "ae";
|
|
12474
|
+
Flag["Argentina"] = "ar";
|
|
12475
|
+
Flag["Armenia"] = "am";
|
|
12476
|
+
Flag["AntiguaAndBarbuda"] = "ag";
|
|
12477
|
+
Flag["Australia"] = "au";
|
|
12478
|
+
Flag["Austria"] = "at";
|
|
12479
|
+
Flag["Azerbaijan"] = "az";
|
|
12480
|
+
Flag["Burundi"] = "bi";
|
|
12481
|
+
Flag["Belgium"] = "be";
|
|
12482
|
+
Flag["Benin"] = "bj";
|
|
12483
|
+
Flag["BurkinaFaso"] = "bf";
|
|
12484
|
+
Flag["Bangladesh"] = "bd";
|
|
12485
|
+
Flag["Bulgaria"] = "bg";
|
|
12486
|
+
Flag["Bahrain"] = "bh";
|
|
12487
|
+
Flag["Bahamas"] = "bs";
|
|
12488
|
+
Flag["BosniaAndHerzegovina"] = "ba";
|
|
12489
|
+
Flag["Belarus"] = "by";
|
|
12490
|
+
Flag["Belize"] = "bz";
|
|
12491
|
+
Flag["Bolivia"] = "bo";
|
|
12492
|
+
Flag["Brazil"] = "br";
|
|
12493
|
+
Flag["Barbados"] = "bb";
|
|
12494
|
+
Flag["BruneiDarussalam"] = "bn";
|
|
12495
|
+
Flag["Bhutan"] = "bt";
|
|
12496
|
+
Flag["Botswana"] = "bw";
|
|
12497
|
+
Flag["CentralAfricanRepublic"] = "cf";
|
|
12498
|
+
Flag["Canada"] = "ca";
|
|
12499
|
+
Flag["Switzerland"] = "ch";
|
|
12500
|
+
Flag["Chile"] = "cl";
|
|
12501
|
+
Flag["China"] = "cn";
|
|
12502
|
+
Flag["CTeDIvoire"] = "ci";
|
|
12503
|
+
Flag["Cameroon"] = "cm";
|
|
12504
|
+
Flag["DemocraticRepublicOfTheCongo"] = "cd";
|
|
12505
|
+
Flag["RepublicOfTheCongo"] = "cg";
|
|
12506
|
+
Flag["Colombia"] = "co";
|
|
12507
|
+
Flag["Comoros"] = "km";
|
|
12508
|
+
Flag["CapeVerde"] = "cv";
|
|
12509
|
+
Flag["CostaRica"] = "cr";
|
|
12510
|
+
Flag["Cuba"] = "cu";
|
|
12511
|
+
Flag["Cyprus"] = "cy";
|
|
12512
|
+
Flag["CzechRepublic"] = "cz";
|
|
12513
|
+
Flag["Germany"] = "de";
|
|
12514
|
+
Flag["Djibouti"] = "dj";
|
|
12515
|
+
Flag["Dominica"] = "dm";
|
|
12516
|
+
Flag["Denmark"] = "dk";
|
|
12517
|
+
Flag["DominicanRepublic"] = "do";
|
|
12518
|
+
Flag["Algeria"] = "dz";
|
|
12519
|
+
Flag["Ecuador"] = "ec";
|
|
12520
|
+
Flag["Egypt"] = "eg";
|
|
12521
|
+
Flag["Eritrea"] = "er";
|
|
12522
|
+
Flag["Spain"] = "es";
|
|
12523
|
+
Flag["Estonia"] = "ee";
|
|
12524
|
+
Flag["Ethiopia"] = "et";
|
|
12525
|
+
Flag["Finland"] = "fi";
|
|
12526
|
+
Flag["Fiji"] = "fj";
|
|
12527
|
+
Flag["France"] = "fr";
|
|
12528
|
+
Flag["MicronesiaFederatedStatesOf"] = "fm";
|
|
12529
|
+
Flag["Gabon"] = "ga";
|
|
12530
|
+
Flag["UnitedKingdom"] = "gb";
|
|
12531
|
+
Flag["Georgia"] = "ge";
|
|
12532
|
+
Flag["Ghana"] = "gh";
|
|
12533
|
+
Flag["Guinea"] = "gn";
|
|
12534
|
+
Flag["Gambia"] = "gm";
|
|
12535
|
+
Flag["GuineaBissau"] = "gw";
|
|
12536
|
+
Flag["EquatorialGuinea"] = "gq";
|
|
12537
|
+
Flag["Greece"] = "gr";
|
|
12538
|
+
Flag["Grenada"] = "gd";
|
|
12539
|
+
Flag["Guatemala"] = "gt";
|
|
12540
|
+
Flag["Guyana"] = "gy";
|
|
12541
|
+
Flag["Honduras"] = "hn";
|
|
12542
|
+
Flag["Croatia"] = "hr";
|
|
12543
|
+
Flag["Haiti"] = "ht";
|
|
12544
|
+
Flag["Hungary"] = "hu";
|
|
12545
|
+
Flag["Indonesia"] = "id";
|
|
12546
|
+
Flag["India"] = "in";
|
|
12547
|
+
Flag["Ireland"] = "ie";
|
|
12548
|
+
Flag["IranIslamicRepublicOf"] = "ir";
|
|
12549
|
+
Flag["Iraq"] = "iq";
|
|
12550
|
+
Flag["Iceland"] = "is";
|
|
12551
|
+
Flag["Israel"] = "il";
|
|
12552
|
+
Flag["Italy"] = "it";
|
|
12553
|
+
Flag["Jamaica"] = "jm";
|
|
12554
|
+
Flag["Jordan"] = "jo";
|
|
12555
|
+
Flag["Japan"] = "jp";
|
|
12556
|
+
Flag["Kazakhstan"] = "kz";
|
|
12557
|
+
Flag["Kenya"] = "ke";
|
|
12558
|
+
Flag["Kyrgyzstan"] = "kg";
|
|
12559
|
+
Flag["Cambodia"] = "kh";
|
|
12560
|
+
Flag["Kiribati"] = "ki";
|
|
12561
|
+
Flag["SaintKittsAndNevis"] = "kn";
|
|
12562
|
+
Flag["SouthKorea"] = "kr";
|
|
12563
|
+
Flag["Kuwait"] = "kw";
|
|
12564
|
+
Flag["LaoPeopleSDemocraticRepublic"] = "la";
|
|
12565
|
+
Flag["Lebanon"] = "lb";
|
|
12566
|
+
Flag["Liberia"] = "lr";
|
|
12567
|
+
Flag["Libya"] = "ly";
|
|
12568
|
+
Flag["SaintLucia"] = "lc";
|
|
12569
|
+
Flag["Liechtenstein"] = "li";
|
|
12570
|
+
Flag["SriLanka"] = "lk";
|
|
12571
|
+
Flag["Lesotho"] = "ls";
|
|
12572
|
+
Flag["Lithuania"] = "lt";
|
|
12573
|
+
Flag["Luxembourg"] = "lu";
|
|
12574
|
+
Flag["Latvia"] = "lv";
|
|
12575
|
+
Flag["Morocco"] = "ma";
|
|
12576
|
+
Flag["Monaco"] = "mc";
|
|
12577
|
+
Flag["Moldova"] = "md";
|
|
12578
|
+
Flag["Madagascar"] = "mg";
|
|
12579
|
+
Flag["Maldives"] = "mv";
|
|
12580
|
+
Flag["Mexico"] = "mx";
|
|
12581
|
+
Flag["MarshallIslands"] = "mh";
|
|
12582
|
+
Flag["NorthMacedonia"] = "mk";
|
|
12583
|
+
Flag["Mali"] = "ml";
|
|
12584
|
+
Flag["Malta"] = "mt";
|
|
12585
|
+
Flag["Myanmar"] = "mm";
|
|
12586
|
+
Flag["Montenegro"] = "me";
|
|
12587
|
+
Flag["Mongolia"] = "mn";
|
|
12588
|
+
Flag["Mozambique"] = "mz";
|
|
12589
|
+
Flag["Mauritania"] = "mr";
|
|
12590
|
+
Flag["Mauritius"] = "mu";
|
|
12591
|
+
Flag["Malawi"] = "mw";
|
|
12592
|
+
Flag["Malaysia"] = "my";
|
|
12593
|
+
Flag["Namibia"] = "na";
|
|
12594
|
+
Flag["Niger"] = "ne";
|
|
12595
|
+
Flag["Nigeria"] = "ng";
|
|
12596
|
+
Flag["Nicaragua"] = "ni";
|
|
12597
|
+
Flag["Netherlands"] = "nl";
|
|
12598
|
+
Flag["Norway"] = "no";
|
|
12599
|
+
Flag["Nepal"] = "np";
|
|
12600
|
+
Flag["Nauru"] = "nr";
|
|
12601
|
+
Flag["NewZealand"] = "nz";
|
|
12602
|
+
Flag["Oman"] = "om";
|
|
12603
|
+
Flag["Pakistan"] = "pk";
|
|
12604
|
+
Flag["Panama"] = "pa";
|
|
12605
|
+
Flag["Peru"] = "pe";
|
|
12606
|
+
Flag["Philippines"] = "ph";
|
|
12607
|
+
Flag["Palau"] = "pw";
|
|
12608
|
+
Flag["PapuaNewGuinea"] = "pg";
|
|
12609
|
+
Flag["Poland"] = "pl";
|
|
12610
|
+
Flag["NorthKorea"] = "kp";
|
|
12611
|
+
Flag["Portugal"] = "pt";
|
|
12612
|
+
Flag["Paraguay"] = "py";
|
|
12613
|
+
Flag["Qatar"] = "qa";
|
|
12614
|
+
Flag["Romania"] = "ro";
|
|
12615
|
+
Flag["Russia"] = "ru";
|
|
12616
|
+
Flag["Rwanda"] = "rw";
|
|
12617
|
+
Flag["SaudiArabia"] = "sa";
|
|
12618
|
+
Flag["Sudan"] = "sd";
|
|
12619
|
+
Flag["Senegal"] = "sn";
|
|
12620
|
+
Flag["Singapore"] = "sg";
|
|
12621
|
+
Flag["SolomonIslands"] = "sb";
|
|
12622
|
+
Flag["SierraLeone"] = "sl";
|
|
12623
|
+
Flag["ElSalvador"] = "sv";
|
|
12624
|
+
Flag["SanMarino"] = "sm";
|
|
12625
|
+
Flag["Somalia"] = "so";
|
|
12626
|
+
Flag["Serbia"] = "rs";
|
|
12627
|
+
Flag["SouthSudan"] = "ss";
|
|
12628
|
+
Flag["SaoTomeAndPrincipe"] = "st";
|
|
12629
|
+
Flag["Suriname"] = "sr";
|
|
12630
|
+
Flag["Slovakia"] = "sk";
|
|
12631
|
+
Flag["Slovenia"] = "si";
|
|
12632
|
+
Flag["Sweden"] = "se";
|
|
12633
|
+
Flag["Eswatini"] = "sz";
|
|
12634
|
+
Flag["Seychelles"] = "sc";
|
|
12635
|
+
Flag["Syria"] = "sy";
|
|
12636
|
+
Flag["Chad"] = "td";
|
|
12637
|
+
Flag["Togo"] = "tg";
|
|
12638
|
+
Flag["Thailand"] = "th";
|
|
12639
|
+
Flag["Tajikistan"] = "tj";
|
|
12640
|
+
Flag["Turkmenistan"] = "tm";
|
|
12641
|
+
Flag["TimorLeste"] = "tl";
|
|
12642
|
+
Flag["Tonga"] = "to";
|
|
12643
|
+
Flag["TrinidadAndTobago"] = "tt";
|
|
12644
|
+
Flag["Tunisia"] = "tn";
|
|
12645
|
+
Flag["Turkey"] = "tr";
|
|
12646
|
+
Flag["Tuvalu"] = "tv";
|
|
12647
|
+
Flag["Tanzania"] = "tz";
|
|
12648
|
+
Flag["Uganda"] = "ug";
|
|
12649
|
+
Flag["Ukraine"] = "ua";
|
|
12650
|
+
Flag["Uruguay"] = "uy";
|
|
12651
|
+
Flag["UnitedStates"] = "us";
|
|
12652
|
+
Flag["Uzbekistan"] = "uz";
|
|
12653
|
+
Flag["VaticanCity"] = "va";
|
|
12654
|
+
Flag["SaintVincentAndTheGrenadines"] = "vc";
|
|
12655
|
+
Flag["Venezuela"] = "ve";
|
|
12656
|
+
Flag["Vietnam"] = "vn";
|
|
12657
|
+
Flag["Vanuatu"] = "vu";
|
|
12658
|
+
Flag["Samoa"] = "ws";
|
|
12659
|
+
Flag["Yemen"] = "ye";
|
|
12660
|
+
Flag["SouthAfrica"] = "za";
|
|
12661
|
+
Flag["Zambia"] = "zm";
|
|
12662
|
+
Flag["Zimbabwe"] = "zw";
|
|
12663
|
+
})(Flag || (Flag = {}));
|
|
12664
|
+
|
|
12665
|
+
var DatabaseUsageRange;
|
|
12666
|
+
(function (DatabaseUsageRange) {
|
|
12667
|
+
DatabaseUsageRange["TwentyFourHours"] = "24h";
|
|
12668
|
+
DatabaseUsageRange["ThirtyDays"] = "30d";
|
|
12669
|
+
DatabaseUsageRange["NinetyDays"] = "90d";
|
|
12670
|
+
})(DatabaseUsageRange || (DatabaseUsageRange = {}));
|
|
12671
|
+
|
|
12672
|
+
var RelationshipType;
|
|
12673
|
+
(function (RelationshipType) {
|
|
12674
|
+
RelationshipType["OneToOne"] = "oneToOne";
|
|
12675
|
+
RelationshipType["ManyToOne"] = "manyToOne";
|
|
12676
|
+
RelationshipType["ManyToMany"] = "manyToMany";
|
|
12677
|
+
RelationshipType["OneToMany"] = "oneToMany";
|
|
12678
|
+
})(RelationshipType || (RelationshipType = {}));
|
|
12679
|
+
|
|
12680
|
+
var RelationMutate;
|
|
12681
|
+
(function (RelationMutate) {
|
|
12682
|
+
RelationMutate["Cascade"] = "cascade";
|
|
12683
|
+
RelationMutate["Restrict"] = "restrict";
|
|
12684
|
+
RelationMutate["SetNull"] = "setNull";
|
|
12685
|
+
})(RelationMutate || (RelationMutate = {}));
|
|
12686
|
+
|
|
12687
|
+
var IndexType;
|
|
12688
|
+
(function (IndexType) {
|
|
12689
|
+
IndexType["Key"] = "key";
|
|
12690
|
+
IndexType["Fulltext"] = "fulltext";
|
|
12691
|
+
IndexType["Unique"] = "unique";
|
|
12692
|
+
IndexType["Spatial"] = "spatial";
|
|
12693
|
+
})(IndexType || (IndexType = {}));
|
|
12694
|
+
|
|
12695
|
+
var Runtime;
|
|
12696
|
+
(function (Runtime) {
|
|
12697
|
+
Runtime["Node180"] = "node-18.0";
|
|
12698
|
+
Runtime["Php80"] = "php-8.0";
|
|
12699
|
+
Runtime["Ruby31"] = "ruby-3.1";
|
|
12700
|
+
Runtime["Python39"] = "python-3.9";
|
|
12701
|
+
})(Runtime || (Runtime = {}));
|
|
12702
|
+
|
|
12703
|
+
var FunctionUsageRange;
|
|
12704
|
+
(function (FunctionUsageRange) {
|
|
12705
|
+
FunctionUsageRange["TwentyFourHours"] = "24h";
|
|
12706
|
+
FunctionUsageRange["ThirtyDays"] = "30d";
|
|
12707
|
+
FunctionUsageRange["NinetyDays"] = "90d";
|
|
12708
|
+
})(FunctionUsageRange || (FunctionUsageRange = {}));
|
|
12709
|
+
|
|
12710
|
+
var ExecutionMethod;
|
|
12711
|
+
(function (ExecutionMethod) {
|
|
12712
|
+
ExecutionMethod["GET"] = "GET";
|
|
12713
|
+
ExecutionMethod["POST"] = "POST";
|
|
12714
|
+
ExecutionMethod["PUT"] = "PUT";
|
|
12715
|
+
ExecutionMethod["PATCH"] = "PATCH";
|
|
12716
|
+
ExecutionMethod["DELETE"] = "DELETE";
|
|
12717
|
+
ExecutionMethod["OPTIONS"] = "OPTIONS";
|
|
12718
|
+
})(ExecutionMethod || (ExecutionMethod = {}));
|
|
12719
|
+
|
|
12720
|
+
var MessageType;
|
|
12721
|
+
(function (MessageType) {
|
|
12722
|
+
MessageType["Draft"] = "draft";
|
|
12723
|
+
MessageType["Cancelled"] = "cancelled";
|
|
12724
|
+
MessageType["Processing"] = "processing";
|
|
12725
|
+
})(MessageType || (MessageType = {}));
|
|
12726
|
+
|
|
12727
|
+
var SMTPEncryption;
|
|
12728
|
+
(function (SMTPEncryption) {
|
|
12729
|
+
SMTPEncryption["None"] = "none";
|
|
12730
|
+
SMTPEncryption["Ssl"] = "ssl";
|
|
12731
|
+
SMTPEncryption["Tls"] = "tls";
|
|
12732
|
+
})(SMTPEncryption || (SMTPEncryption = {}));
|
|
12733
|
+
|
|
12734
|
+
var ProjectUsageRange;
|
|
12735
|
+
(function (ProjectUsageRange) {
|
|
12736
|
+
ProjectUsageRange["OneHour"] = "1h";
|
|
12737
|
+
ProjectUsageRange["OneDay"] = "1d";
|
|
12738
|
+
})(ProjectUsageRange || (ProjectUsageRange = {}));
|
|
12739
|
+
|
|
12740
|
+
var Region;
|
|
12741
|
+
(function (Region) {
|
|
12742
|
+
Region["Default"] = "default";
|
|
12743
|
+
})(Region || (Region = {}));
|
|
12744
|
+
|
|
12745
|
+
var AuthMethod;
|
|
12746
|
+
(function (AuthMethod) {
|
|
12747
|
+
AuthMethod["Emailpassword"] = "email-password";
|
|
12748
|
+
AuthMethod["Magicurl"] = "magic-url";
|
|
12749
|
+
AuthMethod["Emailotp"] = "email-otp";
|
|
12750
|
+
AuthMethod["Anonymous"] = "anonymous";
|
|
12751
|
+
AuthMethod["Invites"] = "invites";
|
|
12752
|
+
AuthMethod["Jwt"] = "jwt";
|
|
12753
|
+
AuthMethod["Phone"] = "phone";
|
|
12754
|
+
})(AuthMethod || (AuthMethod = {}));
|
|
12755
|
+
|
|
12756
|
+
var PlatformType;
|
|
12757
|
+
(function (PlatformType) {
|
|
12758
|
+
PlatformType["Web"] = "web";
|
|
12759
|
+
PlatformType["Flutterweb"] = "flutter-web";
|
|
12760
|
+
PlatformType["Flutterios"] = "flutter-ios";
|
|
12761
|
+
PlatformType["Flutterandroid"] = "flutter-android";
|
|
12762
|
+
PlatformType["Flutterlinux"] = "flutter-linux";
|
|
12763
|
+
PlatformType["Fluttermacos"] = "flutter-macos";
|
|
12764
|
+
PlatformType["Flutterwindows"] = "flutter-windows";
|
|
12765
|
+
PlatformType["Appleios"] = "apple-ios";
|
|
12766
|
+
PlatformType["Applemacos"] = "apple-macos";
|
|
12767
|
+
PlatformType["Applewatchos"] = "apple-watchos";
|
|
12768
|
+
PlatformType["Appletvos"] = "apple-tvos";
|
|
12769
|
+
PlatformType["Android"] = "android";
|
|
12770
|
+
PlatformType["Unity"] = "unity";
|
|
12771
|
+
})(PlatformType || (PlatformType = {}));
|
|
12772
|
+
|
|
12773
|
+
var APIService;
|
|
12774
|
+
(function (APIService) {
|
|
12775
|
+
APIService["Account"] = "account";
|
|
12776
|
+
APIService["Avatars"] = "avatars";
|
|
12777
|
+
APIService["Databases"] = "databases";
|
|
12778
|
+
APIService["Locale"] = "locale";
|
|
12779
|
+
APIService["Health"] = "health";
|
|
12780
|
+
APIService["Storage"] = "storage";
|
|
12781
|
+
APIService["Teams"] = "teams";
|
|
12782
|
+
APIService["Users"] = "users";
|
|
12783
|
+
APIService["Functions"] = "functions";
|
|
12784
|
+
APIService["Graphql"] = "graphql";
|
|
12785
|
+
APIService["Messaging"] = "messaging";
|
|
12786
|
+
})(APIService || (APIService = {}));
|
|
12787
|
+
|
|
12788
|
+
var SMTPSecure;
|
|
12789
|
+
(function (SMTPSecure) {
|
|
12790
|
+
SMTPSecure["Tls"] = "tls";
|
|
12791
|
+
})(SMTPSecure || (SMTPSecure = {}));
|
|
12792
|
+
|
|
12793
|
+
var TemplateType;
|
|
12794
|
+
(function (TemplateType) {
|
|
12795
|
+
TemplateType["Verification"] = "verification";
|
|
12796
|
+
TemplateType["Login"] = "login";
|
|
12797
|
+
TemplateType["Invitation"] = "invitation";
|
|
12798
|
+
})(TemplateType || (TemplateType = {}));
|
|
12799
|
+
|
|
12800
|
+
var TemplateLocale;
|
|
12801
|
+
(function (TemplateLocale) {
|
|
12802
|
+
TemplateLocale["Af"] = "af";
|
|
12803
|
+
TemplateLocale["Arae"] = "ar-ae";
|
|
12804
|
+
TemplateLocale["Arbh"] = "ar-bh";
|
|
12805
|
+
TemplateLocale["Ardz"] = "ar-dz";
|
|
12806
|
+
TemplateLocale["Areg"] = "ar-eg";
|
|
12807
|
+
TemplateLocale["Ariq"] = "ar-iq";
|
|
12808
|
+
TemplateLocale["Arjo"] = "ar-jo";
|
|
12809
|
+
TemplateLocale["Arkw"] = "ar-kw";
|
|
12810
|
+
TemplateLocale["Arlb"] = "ar-lb";
|
|
12811
|
+
TemplateLocale["Arly"] = "ar-ly";
|
|
12812
|
+
TemplateLocale["Arma"] = "ar-ma";
|
|
12813
|
+
TemplateLocale["Arom"] = "ar-om";
|
|
12814
|
+
TemplateLocale["Arqa"] = "ar-qa";
|
|
12815
|
+
TemplateLocale["Arsa"] = "ar-sa";
|
|
12816
|
+
TemplateLocale["Arsy"] = "ar-sy";
|
|
12817
|
+
TemplateLocale["Artn"] = "ar-tn";
|
|
12818
|
+
TemplateLocale["Arye"] = "ar-ye";
|
|
12819
|
+
TemplateLocale["As"] = "as";
|
|
12820
|
+
TemplateLocale["Az"] = "az";
|
|
12821
|
+
TemplateLocale["Be"] = "be";
|
|
12822
|
+
TemplateLocale["Bg"] = "bg";
|
|
12823
|
+
TemplateLocale["Bh"] = "bh";
|
|
12824
|
+
TemplateLocale["Bn"] = "bn";
|
|
12825
|
+
TemplateLocale["Bs"] = "bs";
|
|
12826
|
+
TemplateLocale["Ca"] = "ca";
|
|
12827
|
+
TemplateLocale["Cs"] = "cs";
|
|
12828
|
+
TemplateLocale["Cy"] = "cy";
|
|
12829
|
+
TemplateLocale["Da"] = "da";
|
|
12830
|
+
TemplateLocale["De"] = "de";
|
|
12831
|
+
TemplateLocale["Deat"] = "de-at";
|
|
12832
|
+
TemplateLocale["Dech"] = "de-ch";
|
|
12833
|
+
TemplateLocale["Deli"] = "de-li";
|
|
12834
|
+
TemplateLocale["Delu"] = "de-lu";
|
|
12835
|
+
TemplateLocale["El"] = "el";
|
|
12836
|
+
TemplateLocale["En"] = "en";
|
|
12837
|
+
TemplateLocale["Enau"] = "en-au";
|
|
12838
|
+
TemplateLocale["Enbz"] = "en-bz";
|
|
12839
|
+
TemplateLocale["Enca"] = "en-ca";
|
|
12840
|
+
TemplateLocale["Engb"] = "en-gb";
|
|
12841
|
+
TemplateLocale["Enie"] = "en-ie";
|
|
12842
|
+
TemplateLocale["Enjm"] = "en-jm";
|
|
12843
|
+
TemplateLocale["Ennz"] = "en-nz";
|
|
12844
|
+
TemplateLocale["Entt"] = "en-tt";
|
|
12845
|
+
TemplateLocale["Enus"] = "en-us";
|
|
12846
|
+
TemplateLocale["Enza"] = "en-za";
|
|
12847
|
+
TemplateLocale["Eo"] = "eo";
|
|
12848
|
+
TemplateLocale["Es"] = "es";
|
|
12849
|
+
TemplateLocale["Esar"] = "es-ar";
|
|
12850
|
+
TemplateLocale["Esbo"] = "es-bo";
|
|
12851
|
+
TemplateLocale["Escl"] = "es-cl";
|
|
12852
|
+
TemplateLocale["Esco"] = "es-co";
|
|
12853
|
+
TemplateLocale["Escr"] = "es-cr";
|
|
12854
|
+
TemplateLocale["Esdo"] = "es-do";
|
|
12855
|
+
TemplateLocale["Esec"] = "es-ec";
|
|
12856
|
+
TemplateLocale["Esgt"] = "es-gt";
|
|
12857
|
+
TemplateLocale["Eshn"] = "es-hn";
|
|
12858
|
+
TemplateLocale["Esmx"] = "es-mx";
|
|
12859
|
+
TemplateLocale["Esni"] = "es-ni";
|
|
12860
|
+
TemplateLocale["Espa"] = "es-pa";
|
|
12861
|
+
TemplateLocale["Espe"] = "es-pe";
|
|
12862
|
+
TemplateLocale["Espr"] = "es-pr";
|
|
12863
|
+
TemplateLocale["Espy"] = "es-py";
|
|
12864
|
+
TemplateLocale["Essv"] = "es-sv";
|
|
12865
|
+
TemplateLocale["Esuy"] = "es-uy";
|
|
12866
|
+
TemplateLocale["Esve"] = "es-ve";
|
|
12867
|
+
TemplateLocale["Et"] = "et";
|
|
12868
|
+
TemplateLocale["Eu"] = "eu";
|
|
12869
|
+
TemplateLocale["Fa"] = "fa";
|
|
12870
|
+
TemplateLocale["Fi"] = "fi";
|
|
12871
|
+
TemplateLocale["Fo"] = "fo";
|
|
12872
|
+
TemplateLocale["Fr"] = "fr";
|
|
12873
|
+
TemplateLocale["Frbe"] = "fr-be";
|
|
12874
|
+
TemplateLocale["Frca"] = "fr-ca";
|
|
12875
|
+
TemplateLocale["Frch"] = "fr-ch";
|
|
12876
|
+
TemplateLocale["Frlu"] = "fr-lu";
|
|
12877
|
+
TemplateLocale["Ga"] = "ga";
|
|
12878
|
+
TemplateLocale["Gd"] = "gd";
|
|
12879
|
+
TemplateLocale["He"] = "he";
|
|
12880
|
+
TemplateLocale["Hi"] = "hi";
|
|
12881
|
+
TemplateLocale["Hr"] = "hr";
|
|
12882
|
+
TemplateLocale["Hu"] = "hu";
|
|
12883
|
+
TemplateLocale["Id"] = "id";
|
|
12884
|
+
TemplateLocale["Is"] = "is";
|
|
12885
|
+
TemplateLocale["It"] = "it";
|
|
12886
|
+
TemplateLocale["Itch"] = "it-ch";
|
|
12887
|
+
TemplateLocale["Ja"] = "ja";
|
|
12888
|
+
TemplateLocale["Ji"] = "ji";
|
|
12889
|
+
TemplateLocale["Ko"] = "ko";
|
|
12890
|
+
TemplateLocale["Ku"] = "ku";
|
|
12891
|
+
TemplateLocale["Lt"] = "lt";
|
|
12892
|
+
TemplateLocale["Lv"] = "lv";
|
|
12893
|
+
TemplateLocale["Mk"] = "mk";
|
|
12894
|
+
TemplateLocale["Ml"] = "ml";
|
|
12895
|
+
TemplateLocale["Ms"] = "ms";
|
|
12896
|
+
TemplateLocale["Mt"] = "mt";
|
|
12897
|
+
TemplateLocale["Nb"] = "nb";
|
|
12898
|
+
TemplateLocale["Ne"] = "ne";
|
|
12899
|
+
TemplateLocale["Nl"] = "nl";
|
|
12900
|
+
TemplateLocale["Nlbe"] = "nl-be";
|
|
12901
|
+
TemplateLocale["Nn"] = "nn";
|
|
12902
|
+
TemplateLocale["No"] = "no";
|
|
12903
|
+
TemplateLocale["Pa"] = "pa";
|
|
12904
|
+
TemplateLocale["Pl"] = "pl";
|
|
12905
|
+
TemplateLocale["Pt"] = "pt";
|
|
12906
|
+
TemplateLocale["Ptbr"] = "pt-br";
|
|
12907
|
+
TemplateLocale["Rm"] = "rm";
|
|
12908
|
+
TemplateLocale["Ro"] = "ro";
|
|
12909
|
+
TemplateLocale["Romd"] = "ro-md";
|
|
12910
|
+
TemplateLocale["Ru"] = "ru";
|
|
12911
|
+
TemplateLocale["Rumd"] = "ru-md";
|
|
12912
|
+
TemplateLocale["Sb"] = "sb";
|
|
12913
|
+
TemplateLocale["Sk"] = "sk";
|
|
12914
|
+
TemplateLocale["Sl"] = "sl";
|
|
12915
|
+
TemplateLocale["Sq"] = "sq";
|
|
12916
|
+
TemplateLocale["Sr"] = "sr";
|
|
12917
|
+
TemplateLocale["Sv"] = "sv";
|
|
12918
|
+
TemplateLocale["Svfi"] = "sv-fi";
|
|
12919
|
+
TemplateLocale["Th"] = "th";
|
|
12920
|
+
TemplateLocale["Tn"] = "tn";
|
|
12921
|
+
TemplateLocale["Tr"] = "tr";
|
|
12922
|
+
TemplateLocale["Ts"] = "ts";
|
|
12923
|
+
TemplateLocale["Ua"] = "ua";
|
|
12924
|
+
TemplateLocale["Ur"] = "ur";
|
|
12925
|
+
TemplateLocale["Ve"] = "ve";
|
|
12926
|
+
TemplateLocale["Vi"] = "vi";
|
|
12927
|
+
TemplateLocale["Xh"] = "xh";
|
|
12928
|
+
TemplateLocale["Zhcn"] = "zh-cn";
|
|
12929
|
+
TemplateLocale["Zhhk"] = "zh-hk";
|
|
12930
|
+
TemplateLocale["Zhsg"] = "zh-sg";
|
|
12931
|
+
TemplateLocale["Zhtw"] = "zh-tw";
|
|
12932
|
+
TemplateLocale["Zu"] = "zu";
|
|
12933
|
+
})(TemplateLocale || (TemplateLocale = {}));
|
|
12934
|
+
|
|
12935
|
+
var ResourceType;
|
|
12936
|
+
(function (ResourceType) {
|
|
12937
|
+
ResourceType["Api"] = "api";
|
|
12938
|
+
ResourceType["Function"] = "function";
|
|
12939
|
+
})(ResourceType || (ResourceType = {}));
|
|
12940
|
+
|
|
12941
|
+
var Compression;
|
|
12942
|
+
(function (Compression) {
|
|
12943
|
+
Compression["None"] = "none";
|
|
12944
|
+
Compression["Gzip"] = "gzip";
|
|
12945
|
+
Compression["Zstd"] = "zstd";
|
|
12946
|
+
})(Compression || (Compression = {}));
|
|
12947
|
+
|
|
12948
|
+
var ImageGravity;
|
|
12949
|
+
(function (ImageGravity) {
|
|
12950
|
+
ImageGravity["Center"] = "center";
|
|
12951
|
+
ImageGravity["Topleft"] = "top-left";
|
|
12952
|
+
ImageGravity["Top"] = "top";
|
|
12953
|
+
ImageGravity["Topright"] = "top-right";
|
|
12954
|
+
ImageGravity["Left"] = "left";
|
|
12955
|
+
ImageGravity["Right"] = "right";
|
|
12956
|
+
ImageGravity["Bottomleft"] = "bottom-left";
|
|
12957
|
+
ImageGravity["Bottom"] = "bottom";
|
|
12958
|
+
ImageGravity["Bottomright"] = "bottom-right";
|
|
12959
|
+
})(ImageGravity || (ImageGravity = {}));
|
|
12960
|
+
|
|
12961
|
+
var ImageFormat;
|
|
12962
|
+
(function (ImageFormat) {
|
|
12963
|
+
ImageFormat["Jpg"] = "jpg";
|
|
12964
|
+
ImageFormat["Jpeg"] = "jpeg";
|
|
12965
|
+
ImageFormat["Gif"] = "gif";
|
|
12966
|
+
ImageFormat["Png"] = "png";
|
|
12967
|
+
ImageFormat["Webp"] = "webp";
|
|
12968
|
+
})(ImageFormat || (ImageFormat = {}));
|
|
12969
|
+
|
|
12970
|
+
var StorageUsageRange;
|
|
12971
|
+
(function (StorageUsageRange) {
|
|
12972
|
+
StorageUsageRange["TwentyFourHours"] = "24h";
|
|
12973
|
+
StorageUsageRange["ThirtyDays"] = "30d";
|
|
12974
|
+
StorageUsageRange["NinetyDays"] = "90d";
|
|
12975
|
+
})(StorageUsageRange || (StorageUsageRange = {}));
|
|
12976
|
+
|
|
12977
|
+
var PasswordVersion;
|
|
12978
|
+
(function (PasswordVersion) {
|
|
12979
|
+
PasswordVersion["Sha1"] = "sha1";
|
|
12980
|
+
PasswordVersion["Sha224"] = "sha224";
|
|
12981
|
+
PasswordVersion["Sha256"] = "sha256";
|
|
12982
|
+
PasswordVersion["Sha384"] = "sha384";
|
|
12983
|
+
PasswordVersion["Sha512224"] = "sha512/224";
|
|
12984
|
+
PasswordVersion["Sha512256"] = "sha512/256";
|
|
12985
|
+
PasswordVersion["Sha512"] = "sha512";
|
|
12986
|
+
PasswordVersion["Sha3224"] = "sha3-224";
|
|
12987
|
+
PasswordVersion["Sha3256"] = "sha3-256";
|
|
12988
|
+
PasswordVersion["Sha3384"] = "sha3-384";
|
|
12989
|
+
PasswordVersion["Sha3512"] = "sha3-512";
|
|
12990
|
+
})(PasswordVersion || (PasswordVersion = {}));
|
|
12991
|
+
|
|
12992
|
+
var UserUsageRange;
|
|
12993
|
+
(function (UserUsageRange) {
|
|
12994
|
+
UserUsageRange["TwentyFourHours"] = "24h";
|
|
12995
|
+
UserUsageRange["ThirtyDays"] = "30d";
|
|
12996
|
+
UserUsageRange["NinetyDays"] = "90d";
|
|
12997
|
+
})(UserUsageRange || (UserUsageRange = {}));
|
|
12998
|
+
|
|
12999
|
+
var MessagingProviderType;
|
|
13000
|
+
(function (MessagingProviderType) {
|
|
13001
|
+
MessagingProviderType["Email"] = "email";
|
|
13002
|
+
MessagingProviderType["Sms"] = "sms";
|
|
13003
|
+
MessagingProviderType["Push"] = "push";
|
|
13004
|
+
})(MessagingProviderType || (MessagingProviderType = {}));
|
|
13005
|
+
|
|
13006
|
+
export { APIService, Account, AppwriteException, Assistant, AuthMethod, AuthenticatorFactor, AuthenticatorProvider, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, MessageType, Messaging, MessagingProviderType, Migrations, OAuthProvider, PasswordVersion, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPEncryption, SMTPSecure, Storage, StorageUsageRange, Teams, TemplateLocale, TemplateType, UserUsageRange, Users, Vcs };
|
|
12042
13007
|
//# sourceMappingURL=sdk.js.map
|