@appwrite.io/console 0.6.0-rc.11 → 0.6.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +32 -0
- package/README.md +4 -4
- package/dist/cjs/sdk.js +382 -228
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +383 -229
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +382 -228
- package/docs/examples/account/add-authenticator.md +8 -13
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-challenge.md +13 -0
- package/docs/examples/account/create-email-password-session.md +9 -13
- package/docs/examples/account/create-email-token.md +10 -13
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
- package/docs/examples/account/create-o-auth2session.md +10 -9
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +9 -13
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +10 -13
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +9 -13
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/delete-authenticator.md +9 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-push-target.md +8 -13
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/delete.md +6 -13
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-factors.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-challenge.md +9 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +8 -13
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +9 -13
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/account/verify-authenticator.md +9 -13
- package/docs/examples/assistant/chat.md +8 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/console/variables.md +6 -13
- package/docs/examples/databases/create-boolean-attribute.md +13 -13
- package/docs/examples/databases/create-collection.md +13 -13
- package/docs/examples/databases/create-datetime-attribute.md +13 -13
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/create-email-attribute.md +13 -13
- package/docs/examples/databases/create-enum-attribute.md +14 -13
- package/docs/examples/databases/create-float-attribute.md +15 -13
- package/docs/examples/databases/create-index.md +13 -13
- package/docs/examples/databases/create-integer-attribute.md +15 -13
- package/docs/examples/databases/create-ip-attribute.md +13 -13
- package/docs/examples/databases/create-relationship-attribute.md +15 -13
- package/docs/examples/databases/create-string-attribute.md +15 -13
- package/docs/examples/databases/create-url-attribute.md +13 -13
- package/docs/examples/databases/create.md +10 -13
- package/docs/examples/databases/delete-attribute.md +10 -13
- package/docs/examples/databases/delete-collection.md +9 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/delete-index.md +10 -13
- package/docs/examples/databases/delete.md +8 -13
- package/docs/examples/databases/get-attribute.md +10 -13
- package/docs/examples/databases/get-collection-usage.md +10 -13
- package/docs/examples/databases/get-collection.md +9 -13
- package/docs/examples/databases/get-database-usage.md +9 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/get-index.md +10 -13
- package/docs/examples/databases/get-usage.md +8 -13
- package/docs/examples/databases/get.md +8 -13
- package/docs/examples/databases/list-attributes.md +10 -13
- package/docs/examples/databases/list-collection-logs.md +10 -13
- package/docs/examples/databases/list-collections.md +10 -13
- package/docs/examples/databases/list-document-logs.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/list-indexes.md +10 -13
- package/docs/examples/databases/list-logs.md +9 -13
- package/docs/examples/databases/list.md +9 -13
- package/docs/examples/databases/update-boolean-attribute.md +12 -13
- package/docs/examples/databases/update-collection.md +13 -13
- package/docs/examples/databases/update-datetime-attribute.md +12 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/databases/update-email-attribute.md +12 -13
- package/docs/examples/databases/update-enum-attribute.md +13 -13
- package/docs/examples/databases/update-float-attribute.md +14 -13
- package/docs/examples/databases/update-integer-attribute.md +14 -13
- package/docs/examples/databases/update-ip-attribute.md +12 -13
- package/docs/examples/databases/update-relationship-attribute.md +11 -13
- package/docs/examples/databases/update-string-attribute.md +12 -13
- package/docs/examples/databases/update-url-attribute.md +12 -13
- package/docs/examples/databases/update.md +10 -13
- package/docs/examples/functions/create-build.md +10 -13
- package/docs/examples/functions/create-deployment.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/create-variable.md +10 -13
- package/docs/examples/functions/create.md +27 -13
- package/docs/examples/functions/delete-deployment.md +9 -13
- package/docs/examples/functions/delete-variable.md +9 -13
- package/docs/examples/functions/delete.md +8 -13
- package/docs/examples/functions/download-deployment.md +9 -9
- package/docs/examples/functions/get-deployment.md +9 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/get-function-usage.md +9 -13
- package/docs/examples/functions/get-usage.md +8 -13
- package/docs/examples/functions/get-variable.md +9 -13
- package/docs/examples/functions/get.md +8 -13
- package/docs/examples/functions/list-deployments.md +10 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/functions/list-runtimes.md +6 -13
- package/docs/examples/functions/list-variables.md +8 -13
- package/docs/examples/functions/list.md +9 -13
- package/docs/examples/functions/update-deployment.md +9 -13
- package/docs/examples/functions/update-variable.md +11 -13
- package/docs/examples/functions/update.md +23 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/health/get-antivirus.md +6 -13
- package/docs/examples/health/get-cache.md +6 -13
- package/docs/examples/health/get-certificate.md +8 -13
- package/docs/examples/health/get-d-b.md +6 -13
- package/docs/examples/health/get-failed-jobs.md +9 -13
- package/docs/examples/health/get-pub-sub.md +6 -13
- package/docs/examples/health/get-queue-builds.md +8 -13
- package/docs/examples/health/get-queue-certificates.md +8 -13
- package/docs/examples/health/get-queue-databases.md +9 -13
- package/docs/examples/health/get-queue-deletes.md +8 -13
- package/docs/examples/health/get-queue-functions.md +8 -13
- package/docs/examples/health/get-queue-logs.md +8 -13
- package/docs/examples/health/get-queue-mails.md +8 -13
- package/docs/examples/health/get-queue-messaging.md +8 -13
- package/docs/examples/health/get-queue-migrations.md +8 -13
- package/docs/examples/health/get-queue-webhooks.md +8 -13
- package/docs/examples/health/get-queue.md +6 -13
- package/docs/examples/health/get-storage-local.md +6 -13
- package/docs/examples/health/get-time.md +6 -13
- package/docs/examples/health/get.md +6 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +19 -13
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +17 -13
- package/docs/examples/messaging/create-msg91provider.md +13 -13
- package/docs/examples/messaging/create-push.md +23 -13
- package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +10 -13
- package/docs/examples/messaging/create-telesign-provider.md +13 -13
- package/docs/examples/messaging/create-textmagic-provider.md +13 -13
- package/docs/examples/messaging/create-topic.md +10 -13
- package/docs/examples/messaging/create-twilio-provider.md +13 -13
- package/docs/examples/messaging/create-vonage-provider.md +13 -13
- package/docs/examples/messaging/delete-provider.md +8 -13
- package/docs/examples/messaging/delete-subscriber.md +9 -13
- package/docs/examples/messaging/delete-topic.md +8 -13
- package/docs/examples/messaging/delete.md +8 -13
- package/docs/examples/messaging/get-message.md +8 -13
- package/docs/examples/messaging/get-provider.md +8 -13
- package/docs/examples/messaging/get-subscriber.md +9 -13
- package/docs/examples/messaging/get-topic.md +8 -13
- package/docs/examples/messaging/list-message-logs.md +9 -13
- package/docs/examples/messaging/list-messages.md +9 -13
- package/docs/examples/messaging/list-provider-logs.md +9 -13
- package/docs/examples/messaging/list-providers.md +9 -13
- package/docs/examples/messaging/list-subscriber-logs.md +9 -13
- package/docs/examples/messaging/list-subscribers.md +10 -13
- package/docs/examples/messaging/list-targets.md +9 -13
- package/docs/examples/messaging/list-topic-logs.md +9 -13
- package/docs/examples/messaging/list-topics.md +9 -13
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +18 -13
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +17 -13
- package/docs/examples/messaging/update-msg91provider.md +13 -13
- package/docs/examples/messaging/update-push.md +23 -13
- package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +13 -13
- package/docs/examples/messaging/update-textmagic-provider.md +13 -13
- package/docs/examples/messaging/update-topic.md +10 -13
- package/docs/examples/messaging/update-twilio-provider.md +13 -13
- package/docs/examples/messaging/update-vonage-provider.md +13 -13
- package/docs/examples/migrations/create-appwrite-migration.md +11 -13
- package/docs/examples/migrations/create-firebase-migration.md +9 -13
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
- package/docs/examples/migrations/create-n-host-migration.md +15 -13
- package/docs/examples/migrations/create-supabase-migration.md +14 -13
- package/docs/examples/migrations/delete-firebase-auth.md +6 -13
- package/docs/examples/migrations/delete.md +8 -13
- package/docs/examples/migrations/get-appwrite-report.md +11 -13
- package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
- package/docs/examples/migrations/get-firebase-report.md +9 -13
- package/docs/examples/migrations/get-n-host-report.md +15 -13
- package/docs/examples/migrations/get-supabase-report.md +14 -13
- package/docs/examples/migrations/get.md +8 -13
- package/docs/examples/migrations/list-firebase-projects.md +6 -13
- package/docs/examples/migrations/list.md +9 -13
- package/docs/examples/migrations/retry.md +8 -13
- package/docs/examples/project/create-variable.md +9 -13
- package/docs/examples/project/delete-variable.md +8 -13
- package/docs/examples/project/get-usage.md +10 -13
- package/docs/examples/project/get-variable.md +8 -13
- package/docs/examples/project/list-variables.md +6 -13
- package/docs/examples/project/update-variable.md +10 -13
- package/docs/examples/projects/create-key.md +11 -13
- package/docs/examples/projects/create-platform.md +13 -13
- package/docs/examples/projects/create-smtp-test.md +17 -13
- package/docs/examples/projects/create-webhook.md +15 -13
- package/docs/examples/projects/create.md +20 -13
- package/docs/examples/projects/delete-email-template.md +10 -13
- package/docs/examples/projects/delete-key.md +9 -13
- package/docs/examples/projects/delete-platform.md +9 -13
- package/docs/examples/projects/delete-sms-template.md +10 -13
- package/docs/examples/projects/delete-webhook.md +9 -13
- package/docs/examples/projects/delete.md +8 -13
- package/docs/examples/projects/get-email-template.md +10 -13
- package/docs/examples/projects/get-key.md +9 -13
- package/docs/examples/projects/get-platform.md +9 -13
- package/docs/examples/projects/get-sms-template.md +10 -13
- package/docs/examples/projects/get-webhook.md +9 -13
- package/docs/examples/projects/get.md +8 -13
- package/docs/examples/projects/list-keys.md +8 -13
- package/docs/examples/projects/list-platforms.md +8 -13
- package/docs/examples/projects/list-webhooks.md +8 -13
- package/docs/examples/projects/list.md +9 -13
- package/docs/examples/projects/update-auth-duration.md +9 -13
- package/docs/examples/projects/update-auth-limit.md +9 -13
- package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
- package/docs/examples/projects/update-auth-password-history.md +9 -13
- package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
- package/docs/examples/projects/update-auth-status.md +10 -13
- package/docs/examples/projects/update-email-template.md +15 -13
- package/docs/examples/projects/update-key.md +12 -13
- package/docs/examples/projects/update-o-auth2.md +12 -13
- package/docs/examples/projects/update-personal-data-check.md +9 -13
- package/docs/examples/projects/update-platform.md +13 -13
- package/docs/examples/projects/update-service-status-all.md +9 -13
- package/docs/examples/projects/update-service-status.md +10 -13
- package/docs/examples/projects/update-sms-template.md +11 -13
- package/docs/examples/projects/update-smtp.md +17 -13
- package/docs/examples/projects/update-team.md +9 -13
- package/docs/examples/projects/update-webhook-signature.md +9 -13
- package/docs/examples/projects/update-webhook.md +16 -13
- package/docs/examples/projects/update.md +18 -13
- package/docs/examples/proxy/create-rule.md +10 -13
- package/docs/examples/proxy/delete-rule.md +8 -13
- package/docs/examples/proxy/get-rule.md +8 -13
- package/docs/examples/proxy/list-rules.md +9 -13
- package/docs/examples/proxy/update-rule-verification.md +8 -13
- package/docs/examples/storage/create-bucket.md +17 -13
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-bucket.md +8 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-bucket-usage.md +9 -13
- package/docs/examples/storage/get-bucket.md +8 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/get-usage.md +8 -13
- package/docs/examples/storage/list-buckets.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-bucket.md +17 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-logs.md +9 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/docs/examples/users/create-argon2user.md +11 -13
- package/docs/examples/users/create-bcrypt-user.md +11 -13
- package/docs/examples/users/create-m-d5user.md +11 -13
- package/docs/examples/users/create-p-h-pass-user.md +11 -13
- package/docs/examples/users/create-s-h-a-user.md +12 -13
- package/docs/examples/users/create-scrypt-modified-user.md +14 -13
- package/docs/examples/users/create-scrypt-user.md +16 -13
- package/docs/examples/users/create-session.md +8 -13
- package/docs/examples/users/create-target.md +13 -13
- package/docs/examples/users/create-token.md +10 -13
- package/docs/examples/users/create.md +12 -13
- package/docs/examples/users/delete-authenticator.md +10 -13
- package/docs/examples/users/delete-identity.md +8 -13
- package/docs/examples/users/delete-session.md +9 -13
- package/docs/examples/users/delete-sessions.md +8 -13
- package/docs/examples/users/delete-target.md +9 -13
- package/docs/examples/users/delete.md +8 -13
- package/docs/examples/users/get-prefs.md +8 -13
- package/docs/examples/users/get-target.md +9 -13
- package/docs/examples/users/get-usage.md +8 -13
- package/docs/examples/users/get.md +8 -13
- package/docs/examples/users/list-factors.md +8 -13
- package/docs/examples/users/list-identities.md +9 -13
- package/docs/examples/users/list-logs.md +9 -13
- package/docs/examples/users/list-memberships.md +8 -13
- package/docs/examples/users/list-sessions.md +8 -13
- package/docs/examples/users/list-targets.md +9 -13
- package/docs/examples/users/list.md +9 -13
- package/docs/examples/users/update-email-verification.md +9 -13
- package/docs/examples/users/update-email.md +9 -13
- package/docs/examples/users/update-labels.md +9 -13
- package/docs/examples/users/update-mfa.md +9 -13
- package/docs/examples/users/update-name.md +9 -13
- package/docs/examples/users/update-password.md +9 -13
- package/docs/examples/users/update-phone-verification.md +9 -13
- package/docs/examples/users/update-phone.md +9 -13
- package/docs/examples/users/update-prefs.md +9 -13
- package/docs/examples/users/update-status.md +9 -13
- package/docs/examples/users/update-target.md +12 -13
- package/docs/examples/vcs/create-repository-detection.md +10 -13
- package/docs/examples/vcs/create-repository.md +10 -13
- package/docs/examples/vcs/delete-installation.md +8 -13
- package/docs/examples/vcs/get-installation.md +8 -13
- package/docs/examples/vcs/get-repository.md +9 -13
- package/docs/examples/vcs/list-installations.md +9 -13
- package/docs/examples/vcs/list-repositories.md +9 -13
- package/docs/examples/vcs/list-repository-branches.md +9 -13
- package/docs/examples/vcs/update-external-deployments.md +10 -13
- package/package.json +1 -1
- package/src/client.ts +1 -1
- package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
- package/src/enums/email-template-type.ts +1 -0
- package/src/enums/region.ts +1 -0
- package/src/enums/runtime.ts +32 -0
- package/src/enums/{s-m-s-template-locale.ts → sms-template-locale.ts} +1 -1
- package/src/enums/{s-m-s-template-type.ts → sms-template-type.ts} +2 -1
- package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
- package/src/index.ts +4 -4
- package/src/service.ts +0 -3
- package/src/services/account.ts +61 -8
- package/src/services/assistant.ts +0 -1
- package/src/services/avatars.ts +0 -1
- package/src/services/console.ts +0 -1
- package/src/services/databases.ts +0 -1
- package/src/services/functions.ts +0 -1
- package/src/services/graphql.ts +0 -1
- package/src/services/health.ts +0 -1
- package/src/services/locale.ts +0 -1
- package/src/services/messaging.ts +112 -33
- package/src/services/migrations.ts +0 -1
- package/src/services/project.ts +0 -1
- package/src/services/projects.ts +14 -15
- package/src/services/proxy.ts +0 -1
- package/src/services/storage.ts +0 -1
- package/src/services/teams.ts +0 -1
- package/src/services/users.ts +0 -1
- package/src/services/vcs.ts +0 -1
- package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
- package/types/enums/email-template-type.d.ts +2 -1
- package/types/enums/region.d.ts +2 -1
- package/types/enums/runtime.d.ts +33 -1
- package/types/enums/{s-m-s-template-locale.d.ts → sms-template-locale.d.ts} +1 -1
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
- package/types/index.d.ts +4 -4
- package/types/services/account.d.ts +28 -3
- package/types/services/messaging.d.ts +88 -32
- package/types/services/projects.d.ts +14 -14
- package/docs/examples/account/create2f-a-challenge.md +0 -18
- package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/create-s-m-s.md +0 -18
- package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
- package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/update-s-m-s.md +0 -18
- package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
- package/types/enums/s-m-s-template-type.d.ts +0 -5
package/dist/iife/sdk.js
CHANGED
|
@@ -26,6 +26,26 @@
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
class Service {
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
static flatten(data, prefix = '') {
|
|
34
|
+
let output = {};
|
|
35
|
+
for (const [key, value] of Object.entries(data)) {
|
|
36
|
+
let finalKey = prefix ? prefix + '[' + key + ']' : key;
|
|
37
|
+
if (Array.isArray(value)) {
|
|
38
|
+
output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
output[finalKey] = value;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
return output;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
|
|
48
|
+
|
|
29
49
|
class Query {
|
|
30
50
|
constructor(method, attribute, values) {
|
|
31
51
|
this.method = method;
|
|
@@ -70,29 +90,6 @@
|
|
|
70
90
|
Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
71
91
|
Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
|
|
72
92
|
|
|
73
|
-
class Service {
|
|
74
|
-
constructor(client) {
|
|
75
|
-
this.client = client;
|
|
76
|
-
}
|
|
77
|
-
static flatten(data, prefix = '') {
|
|
78
|
-
let output = {};
|
|
79
|
-
for (const [key, value] of Object.entries(data)) {
|
|
80
|
-
let finalKey = prefix ? prefix + '[' + key + ']' : key;
|
|
81
|
-
if (Array.isArray(value)) {
|
|
82
|
-
output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
|
|
83
|
-
}
|
|
84
|
-
else if (value instanceof Query) {
|
|
85
|
-
output[finalKey] = JSON.stringify(value);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
output[finalKey] = value;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return output;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
|
|
95
|
-
|
|
96
93
|
class AppwriteException extends Error {
|
|
97
94
|
constructor(message, code = 0, type = '', response = '') {
|
|
98
95
|
super(message);
|
|
@@ -118,7 +115,7 @@
|
|
|
118
115
|
'x-sdk-name': 'Console',
|
|
119
116
|
'x-sdk-platform': 'console',
|
|
120
117
|
'x-sdk-language': 'web',
|
|
121
|
-
'x-sdk-version': '0.6.0-rc.
|
|
118
|
+
'x-sdk-version': '0.6.0-rc.13',
|
|
122
119
|
'X-Appwrite-Response-Format': '1.5.0',
|
|
123
120
|
};
|
|
124
121
|
this.realtime = {
|
|
@@ -700,7 +697,7 @@
|
|
|
700
697
|
* @throws {AppwriteException}
|
|
701
698
|
* @returns {Promise}
|
|
702
699
|
*/
|
|
703
|
-
|
|
700
|
+
createChallenge(factor) {
|
|
704
701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
705
702
|
if (typeof factor === 'undefined') {
|
|
706
703
|
throw new AppwriteException('Missing required parameter: "factor"');
|
|
@@ -1221,12 +1218,11 @@
|
|
|
1221
1218
|
* @param {OAuthProvider} provider
|
|
1222
1219
|
* @param {string} success
|
|
1223
1220
|
* @param {string} failure
|
|
1224
|
-
* @param {boolean} token
|
|
1225
1221
|
* @param {string[]} scopes
|
|
1226
1222
|
* @throws {AppwriteException}
|
|
1227
1223
|
* @returns {void|string}
|
|
1228
1224
|
*/
|
|
1229
|
-
createOAuth2Session(provider, success, failure,
|
|
1225
|
+
createOAuth2Session(provider, success, failure, scopes) {
|
|
1230
1226
|
if (typeof provider === 'undefined') {
|
|
1231
1227
|
throw new AppwriteException('Missing required parameter: "provider"');
|
|
1232
1228
|
}
|
|
@@ -1238,9 +1234,6 @@
|
|
|
1238
1234
|
if (typeof failure !== 'undefined') {
|
|
1239
1235
|
payload['failure'] = failure;
|
|
1240
1236
|
}
|
|
1241
|
-
if (typeof token !== 'undefined') {
|
|
1242
|
-
payload['token'] = token;
|
|
1243
|
-
}
|
|
1244
1237
|
if (typeof scopes !== 'undefined') {
|
|
1245
1238
|
payload['scopes'] = scopes;
|
|
1246
1239
|
}
|
|
@@ -1566,6 +1559,58 @@
|
|
|
1566
1559
|
}, payload);
|
|
1567
1560
|
});
|
|
1568
1561
|
}
|
|
1562
|
+
/**
|
|
1563
|
+
* Create OAuth2 token
|
|
1564
|
+
*
|
|
1565
|
+
* Allow the user to login to their account using the OAuth2 provider of their
|
|
1566
|
+
* choice. Each OAuth2 provider should be enabled from the Appwrite console
|
|
1567
|
+
* first. Use the success and failure arguments to provide a redirect URL's
|
|
1568
|
+
* back to your app when login is completed.
|
|
1569
|
+
*
|
|
1570
|
+
* If authentication succeeds, `userId` and `secret` of a token will be
|
|
1571
|
+
* appended to the success URL as query parameters. These can be used to
|
|
1572
|
+
* create a new session using the [Create
|
|
1573
|
+
* session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
|
|
1574
|
+
* endpoint.
|
|
1575
|
+
*
|
|
1576
|
+
* A user is limited to 10 active sessions at a time by default. [Learn more
|
|
1577
|
+
* about session
|
|
1578
|
+
* limits](https://appwrite.io/docs/authentication-security#limits).
|
|
1579
|
+
*
|
|
1580
|
+
* @param {OAuthProvider} provider
|
|
1581
|
+
* @param {string} success
|
|
1582
|
+
* @param {string} failure
|
|
1583
|
+
* @param {string[]} scopes
|
|
1584
|
+
* @throws {AppwriteException}
|
|
1585
|
+
* @returns {void|string}
|
|
1586
|
+
*/
|
|
1587
|
+
createOAuth2Token(provider, success, failure, scopes) {
|
|
1588
|
+
if (typeof provider === 'undefined') {
|
|
1589
|
+
throw new AppwriteException('Missing required parameter: "provider"');
|
|
1590
|
+
}
|
|
1591
|
+
const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
|
|
1592
|
+
const payload = {};
|
|
1593
|
+
if (typeof success !== 'undefined') {
|
|
1594
|
+
payload['success'] = success;
|
|
1595
|
+
}
|
|
1596
|
+
if (typeof failure !== 'undefined') {
|
|
1597
|
+
payload['failure'] = failure;
|
|
1598
|
+
}
|
|
1599
|
+
if (typeof scopes !== 'undefined') {
|
|
1600
|
+
payload['scopes'] = scopes;
|
|
1601
|
+
}
|
|
1602
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1603
|
+
payload['project'] = this.client.config.project;
|
|
1604
|
+
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
1605
|
+
uri.searchParams.append(key, value);
|
|
1606
|
+
}
|
|
1607
|
+
if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {
|
|
1608
|
+
window.location.href = uri.toString();
|
|
1609
|
+
}
|
|
1610
|
+
else {
|
|
1611
|
+
return uri;
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1569
1614
|
/**
|
|
1570
1615
|
* Create phone token
|
|
1571
1616
|
*
|
|
@@ -5507,6 +5552,7 @@
|
|
|
5507
5552
|
/**
|
|
5508
5553
|
* List messages
|
|
5509
5554
|
*
|
|
5555
|
+
* Get a list of all messages from the current Appwrite project.
|
|
5510
5556
|
*
|
|
5511
5557
|
* @param {string[]} queries
|
|
5512
5558
|
* @param {string} search
|
|
@@ -5530,8 +5576,9 @@
|
|
|
5530
5576
|
});
|
|
5531
5577
|
}
|
|
5532
5578
|
/**
|
|
5533
|
-
* Create an email
|
|
5579
|
+
* Create an email
|
|
5534
5580
|
*
|
|
5581
|
+
* Create a new email message.
|
|
5535
5582
|
*
|
|
5536
5583
|
* @param {string} messageId
|
|
5537
5584
|
* @param {string} subject
|
|
@@ -5541,13 +5588,14 @@
|
|
|
5541
5588
|
* @param {string[]} targets
|
|
5542
5589
|
* @param {string[]} cc
|
|
5543
5590
|
* @param {string[]} bcc
|
|
5591
|
+
* @param {string[]} attachments
|
|
5544
5592
|
* @param {MessageStatus} status
|
|
5545
5593
|
* @param {boolean} html
|
|
5546
5594
|
* @param {string} scheduledAt
|
|
5547
5595
|
* @throws {AppwriteException}
|
|
5548
5596
|
* @returns {Promise}
|
|
5549
5597
|
*/
|
|
5550
|
-
createEmail(messageId, subject, content, topics, users, targets, cc, bcc, status, html, scheduledAt) {
|
|
5598
|
+
createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, status, html, scheduledAt) {
|
|
5551
5599
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5552
5600
|
if (typeof messageId === 'undefined') {
|
|
5553
5601
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5584,6 +5632,9 @@
|
|
|
5584
5632
|
if (typeof bcc !== 'undefined') {
|
|
5585
5633
|
payload['bcc'] = bcc;
|
|
5586
5634
|
}
|
|
5635
|
+
if (typeof attachments !== 'undefined') {
|
|
5636
|
+
payload['attachments'] = attachments;
|
|
5637
|
+
}
|
|
5587
5638
|
if (typeof status !== 'undefined') {
|
|
5588
5639
|
payload['status'] = status;
|
|
5589
5640
|
}
|
|
@@ -5600,7 +5651,9 @@
|
|
|
5600
5651
|
});
|
|
5601
5652
|
}
|
|
5602
5653
|
/**
|
|
5603
|
-
* Update an email
|
|
5654
|
+
* Update an email
|
|
5655
|
+
*
|
|
5656
|
+
* Update an email message by its unique ID.
|
|
5604
5657
|
*
|
|
5605
5658
|
*
|
|
5606
5659
|
* @param {string} messageId
|
|
@@ -5661,8 +5714,9 @@
|
|
|
5661
5714
|
});
|
|
5662
5715
|
}
|
|
5663
5716
|
/**
|
|
5664
|
-
* Create a push notification
|
|
5717
|
+
* Create a push notification
|
|
5665
5718
|
*
|
|
5719
|
+
* Create a new push notification.
|
|
5666
5720
|
*
|
|
5667
5721
|
* @param {string} messageId
|
|
5668
5722
|
* @param {string} title
|
|
@@ -5672,6 +5726,7 @@
|
|
|
5672
5726
|
* @param {string[]} targets
|
|
5673
5727
|
* @param {object} data
|
|
5674
5728
|
* @param {string} action
|
|
5729
|
+
* @param {string} image
|
|
5675
5730
|
* @param {string} icon
|
|
5676
5731
|
* @param {string} sound
|
|
5677
5732
|
* @param {string} color
|
|
@@ -5682,7 +5737,7 @@
|
|
|
5682
5737
|
* @throws {AppwriteException}
|
|
5683
5738
|
* @returns {Promise}
|
|
5684
5739
|
*/
|
|
5685
|
-
createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
|
|
5740
|
+
createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, status, scheduledAt) {
|
|
5686
5741
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5687
5742
|
if (typeof messageId === 'undefined') {
|
|
5688
5743
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5719,6 +5774,9 @@
|
|
|
5719
5774
|
if (typeof action !== 'undefined') {
|
|
5720
5775
|
payload['action'] = action;
|
|
5721
5776
|
}
|
|
5777
|
+
if (typeof image !== 'undefined') {
|
|
5778
|
+
payload['image'] = image;
|
|
5779
|
+
}
|
|
5722
5780
|
if (typeof icon !== 'undefined') {
|
|
5723
5781
|
payload['icon'] = icon;
|
|
5724
5782
|
}
|
|
@@ -5747,7 +5805,9 @@
|
|
|
5747
5805
|
});
|
|
5748
5806
|
}
|
|
5749
5807
|
/**
|
|
5750
|
-
* Update a push notification
|
|
5808
|
+
* Update a push notification
|
|
5809
|
+
*
|
|
5810
|
+
* Update a push notification by its unique ID.
|
|
5751
5811
|
*
|
|
5752
5812
|
*
|
|
5753
5813
|
* @param {string} messageId
|
|
@@ -5758,6 +5818,7 @@
|
|
|
5758
5818
|
* @param {string} body
|
|
5759
5819
|
* @param {object} data
|
|
5760
5820
|
* @param {string} action
|
|
5821
|
+
* @param {string} image
|
|
5761
5822
|
* @param {string} icon
|
|
5762
5823
|
* @param {string} sound
|
|
5763
5824
|
* @param {string} color
|
|
@@ -5768,7 +5829,7 @@
|
|
|
5768
5829
|
* @throws {AppwriteException}
|
|
5769
5830
|
* @returns {Promise}
|
|
5770
5831
|
*/
|
|
5771
|
-
updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
|
|
5832
|
+
updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, status, scheduledAt) {
|
|
5772
5833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5773
5834
|
if (typeof messageId === 'undefined') {
|
|
5774
5835
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5796,6 +5857,9 @@
|
|
|
5796
5857
|
if (typeof action !== 'undefined') {
|
|
5797
5858
|
payload['action'] = action;
|
|
5798
5859
|
}
|
|
5860
|
+
if (typeof image !== 'undefined') {
|
|
5861
|
+
payload['image'] = image;
|
|
5862
|
+
}
|
|
5799
5863
|
if (typeof icon !== 'undefined') {
|
|
5800
5864
|
payload['icon'] = icon;
|
|
5801
5865
|
}
|
|
@@ -5824,8 +5888,9 @@
|
|
|
5824
5888
|
});
|
|
5825
5889
|
}
|
|
5826
5890
|
/**
|
|
5827
|
-
* Create an SMS
|
|
5891
|
+
* Create an SMS
|
|
5828
5892
|
*
|
|
5893
|
+
* Create a new SMS message.
|
|
5829
5894
|
*
|
|
5830
5895
|
* @param {string} messageId
|
|
5831
5896
|
* @param {string} content
|
|
@@ -5837,7 +5902,7 @@
|
|
|
5837
5902
|
* @throws {AppwriteException}
|
|
5838
5903
|
* @returns {Promise}
|
|
5839
5904
|
*/
|
|
5840
|
-
|
|
5905
|
+
createSms(messageId, content, topics, users, targets, status, scheduledAt) {
|
|
5841
5906
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5842
5907
|
if (typeof messageId === 'undefined') {
|
|
5843
5908
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5875,7 +5940,9 @@
|
|
|
5875
5940
|
});
|
|
5876
5941
|
}
|
|
5877
5942
|
/**
|
|
5878
|
-
* Update an SMS
|
|
5943
|
+
* Update an SMS
|
|
5944
|
+
*
|
|
5945
|
+
* Update an email message by its unique ID.
|
|
5879
5946
|
*
|
|
5880
5947
|
*
|
|
5881
5948
|
* @param {string} messageId
|
|
@@ -5888,7 +5955,7 @@
|
|
|
5888
5955
|
* @throws {AppwriteException}
|
|
5889
5956
|
* @returns {Promise}
|
|
5890
5957
|
*/
|
|
5891
|
-
|
|
5958
|
+
updateSms(messageId, topics, users, targets, content, status, scheduledAt) {
|
|
5892
5959
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5893
5960
|
if (typeof messageId === 'undefined') {
|
|
5894
5961
|
throw new AppwriteException('Missing required parameter: "messageId"');
|
|
@@ -5922,6 +5989,8 @@
|
|
|
5922
5989
|
/**
|
|
5923
5990
|
* Get a message
|
|
5924
5991
|
*
|
|
5992
|
+
* Get a message by its unique ID.
|
|
5993
|
+
*
|
|
5925
5994
|
*
|
|
5926
5995
|
* @param {string} messageId
|
|
5927
5996
|
* @throws {AppwriteException}
|
|
@@ -5964,6 +6033,7 @@
|
|
|
5964
6033
|
/**
|
|
5965
6034
|
* List message logs
|
|
5966
6035
|
*
|
|
6036
|
+
* Get the message activity logs listed by its unique ID.
|
|
5967
6037
|
*
|
|
5968
6038
|
* @param {string} messageId
|
|
5969
6039
|
* @param {string[]} queries
|
|
@@ -5989,8 +6059,7 @@
|
|
|
5989
6059
|
/**
|
|
5990
6060
|
* List message targets
|
|
5991
6061
|
*
|
|
5992
|
-
*
|
|
5993
|
-
* attribute.
|
|
6062
|
+
* Get a list of the targets associated with a message.
|
|
5994
6063
|
*
|
|
5995
6064
|
* @param {string} messageId
|
|
5996
6065
|
* @param {string[]} queries
|
|
@@ -6016,6 +6085,7 @@
|
|
|
6016
6085
|
/**
|
|
6017
6086
|
* List providers
|
|
6018
6087
|
*
|
|
6088
|
+
* Get a list of all providers from the current Appwrite project.
|
|
6019
6089
|
*
|
|
6020
6090
|
* @param {string[]} queries
|
|
6021
6091
|
* @param {string} search
|
|
@@ -6041,6 +6111,7 @@
|
|
|
6041
6111
|
/**
|
|
6042
6112
|
* Create APNS provider
|
|
6043
6113
|
*
|
|
6114
|
+
* Create a new Apple Push Notification service provider.
|
|
6044
6115
|
*
|
|
6045
6116
|
* @param {string} providerId
|
|
6046
6117
|
* @param {string} name
|
|
@@ -6048,11 +6119,12 @@
|
|
|
6048
6119
|
* @param {string} authKeyId
|
|
6049
6120
|
* @param {string} teamId
|
|
6050
6121
|
* @param {string} bundleId
|
|
6122
|
+
* @param {boolean} sandbox
|
|
6051
6123
|
* @param {boolean} enabled
|
|
6052
6124
|
* @throws {AppwriteException}
|
|
6053
6125
|
* @returns {Promise}
|
|
6054
6126
|
*/
|
|
6055
|
-
|
|
6127
|
+
createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
|
|
6056
6128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6057
6129
|
if (typeof providerId === 'undefined') {
|
|
6058
6130
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6080,6 +6152,9 @@
|
|
|
6080
6152
|
if (typeof bundleId !== 'undefined') {
|
|
6081
6153
|
payload['bundleId'] = bundleId;
|
|
6082
6154
|
}
|
|
6155
|
+
if (typeof sandbox !== 'undefined') {
|
|
6156
|
+
payload['sandbox'] = sandbox;
|
|
6157
|
+
}
|
|
6083
6158
|
if (typeof enabled !== 'undefined') {
|
|
6084
6159
|
payload['enabled'] = enabled;
|
|
6085
6160
|
}
|
|
@@ -6092,6 +6167,7 @@
|
|
|
6092
6167
|
/**
|
|
6093
6168
|
* Update APNS provider
|
|
6094
6169
|
*
|
|
6170
|
+
* Update a Apple Push Notification service provider by its unique ID.
|
|
6095
6171
|
*
|
|
6096
6172
|
* @param {string} providerId
|
|
6097
6173
|
* @param {string} name
|
|
@@ -6100,10 +6176,11 @@
|
|
|
6100
6176
|
* @param {string} authKeyId
|
|
6101
6177
|
* @param {string} teamId
|
|
6102
6178
|
* @param {string} bundleId
|
|
6179
|
+
* @param {boolean} sandbox
|
|
6103
6180
|
* @throws {AppwriteException}
|
|
6104
6181
|
* @returns {Promise}
|
|
6105
6182
|
*/
|
|
6106
|
-
|
|
6183
|
+
updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
|
|
6107
6184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6108
6185
|
if (typeof providerId === 'undefined') {
|
|
6109
6186
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6128,6 +6205,9 @@
|
|
|
6128
6205
|
if (typeof bundleId !== 'undefined') {
|
|
6129
6206
|
payload['bundleId'] = bundleId;
|
|
6130
6207
|
}
|
|
6208
|
+
if (typeof sandbox !== 'undefined') {
|
|
6209
|
+
payload['sandbox'] = sandbox;
|
|
6210
|
+
}
|
|
6131
6211
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
6132
6212
|
return yield this.client.call('patch', uri, {
|
|
6133
6213
|
'content-type': 'application/json',
|
|
@@ -6137,6 +6217,7 @@
|
|
|
6137
6217
|
/**
|
|
6138
6218
|
* Create FCM provider
|
|
6139
6219
|
*
|
|
6220
|
+
* Create a new Firebase Cloud Messaging provider.
|
|
6140
6221
|
*
|
|
6141
6222
|
* @param {string} providerId
|
|
6142
6223
|
* @param {string} name
|
|
@@ -6145,7 +6226,7 @@
|
|
|
6145
6226
|
* @throws {AppwriteException}
|
|
6146
6227
|
* @returns {Promise}
|
|
6147
6228
|
*/
|
|
6148
|
-
|
|
6229
|
+
createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
|
|
6149
6230
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6150
6231
|
if (typeof providerId === 'undefined') {
|
|
6151
6232
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6176,6 +6257,7 @@
|
|
|
6176
6257
|
/**
|
|
6177
6258
|
* Update FCM provider
|
|
6178
6259
|
*
|
|
6260
|
+
* Update a Firebase Cloud Messaging provider by its unique ID.
|
|
6179
6261
|
*
|
|
6180
6262
|
* @param {string} providerId
|
|
6181
6263
|
* @param {string} name
|
|
@@ -6184,7 +6266,7 @@
|
|
|
6184
6266
|
* @throws {AppwriteException}
|
|
6185
6267
|
* @returns {Promise}
|
|
6186
6268
|
*/
|
|
6187
|
-
|
|
6269
|
+
updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
|
|
6188
6270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6189
6271
|
if (typeof providerId === 'undefined') {
|
|
6190
6272
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6209,6 +6291,7 @@
|
|
|
6209
6291
|
/**
|
|
6210
6292
|
* Create Mailgun provider
|
|
6211
6293
|
*
|
|
6294
|
+
* Create a new Mailgun provider.
|
|
6212
6295
|
*
|
|
6213
6296
|
* @param {string} providerId
|
|
6214
6297
|
* @param {string} name
|
|
@@ -6272,6 +6355,7 @@
|
|
|
6272
6355
|
/**
|
|
6273
6356
|
* Update Mailgun provider
|
|
6274
6357
|
*
|
|
6358
|
+
* Update a Mailgun provider by its unique ID.
|
|
6275
6359
|
*
|
|
6276
6360
|
* @param {string} providerId
|
|
6277
6361
|
* @param {string} name
|
|
@@ -6329,6 +6413,7 @@
|
|
|
6329
6413
|
/**
|
|
6330
6414
|
* Create Msg91 provider
|
|
6331
6415
|
*
|
|
6416
|
+
* Create a new MSG91 provider.
|
|
6332
6417
|
*
|
|
6333
6418
|
* @param {string} providerId
|
|
6334
6419
|
* @param {string} name
|
|
@@ -6376,6 +6461,7 @@
|
|
|
6376
6461
|
/**
|
|
6377
6462
|
* Update Msg91 provider
|
|
6378
6463
|
*
|
|
6464
|
+
* Update a MSG91 provider by its unique ID.
|
|
6379
6465
|
*
|
|
6380
6466
|
* @param {string} providerId
|
|
6381
6467
|
* @param {string} name
|
|
@@ -6472,6 +6558,7 @@
|
|
|
6472
6558
|
/**
|
|
6473
6559
|
* Update Sendgrid provider
|
|
6474
6560
|
*
|
|
6561
|
+
* Update a Sendgrid provider by its unique ID.
|
|
6475
6562
|
*
|
|
6476
6563
|
* @param {string} providerId
|
|
6477
6564
|
* @param {string} name
|
|
@@ -6521,6 +6608,7 @@
|
|
|
6521
6608
|
/**
|
|
6522
6609
|
* Create SMTP provider
|
|
6523
6610
|
*
|
|
6611
|
+
* Create a new SMTP provider.
|
|
6524
6612
|
*
|
|
6525
6613
|
* @param {string} providerId
|
|
6526
6614
|
* @param {string} name
|
|
@@ -6528,7 +6616,7 @@
|
|
|
6528
6616
|
* @param {number} port
|
|
6529
6617
|
* @param {string} username
|
|
6530
6618
|
* @param {string} password
|
|
6531
|
-
* @param {
|
|
6619
|
+
* @param {SmtpEncryption} encryption
|
|
6532
6620
|
* @param {boolean} autoTLS
|
|
6533
6621
|
* @param {string} mailer
|
|
6534
6622
|
* @param {string} fromName
|
|
@@ -6539,7 +6627,7 @@
|
|
|
6539
6627
|
* @throws {AppwriteException}
|
|
6540
6628
|
* @returns {Promise}
|
|
6541
6629
|
*/
|
|
6542
|
-
|
|
6630
|
+
createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6543
6631
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6544
6632
|
if (typeof providerId === 'undefined') {
|
|
6545
6633
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6603,6 +6691,7 @@
|
|
|
6603
6691
|
/**
|
|
6604
6692
|
* Update SMTP provider
|
|
6605
6693
|
*
|
|
6694
|
+
* Update a SMTP provider by its unique ID.
|
|
6606
6695
|
*
|
|
6607
6696
|
* @param {string} providerId
|
|
6608
6697
|
* @param {string} name
|
|
@@ -6610,7 +6699,7 @@
|
|
|
6610
6699
|
* @param {number} port
|
|
6611
6700
|
* @param {string} username
|
|
6612
6701
|
* @param {string} password
|
|
6613
|
-
* @param {
|
|
6702
|
+
* @param {SmtpEncryption} encryption
|
|
6614
6703
|
* @param {boolean} autoTLS
|
|
6615
6704
|
* @param {string} mailer
|
|
6616
6705
|
* @param {string} fromName
|
|
@@ -6621,7 +6710,7 @@
|
|
|
6621
6710
|
* @throws {AppwriteException}
|
|
6622
6711
|
* @returns {Promise}
|
|
6623
6712
|
*/
|
|
6624
|
-
|
|
6713
|
+
updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
|
|
6625
6714
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6626
6715
|
if (typeof providerId === 'undefined') {
|
|
6627
6716
|
throw new AppwriteException('Missing required parameter: "providerId"');
|
|
@@ -6676,6 +6765,7 @@
|
|
|
6676
6765
|
/**
|
|
6677
6766
|
* Create Telesign provider
|
|
6678
6767
|
*
|
|
6768
|
+
* Create a new Telesign provider.
|
|
6679
6769
|
*
|
|
6680
6770
|
* @param {string} providerId
|
|
6681
6771
|
* @param {string} name
|
|
@@ -6723,6 +6813,7 @@
|
|
|
6723
6813
|
/**
|
|
6724
6814
|
* Update Telesign provider
|
|
6725
6815
|
*
|
|
6816
|
+
* Update a Telesign provider by its unique ID.
|
|
6726
6817
|
*
|
|
6727
6818
|
* @param {string} providerId
|
|
6728
6819
|
* @param {string} name
|
|
@@ -6764,6 +6855,7 @@
|
|
|
6764
6855
|
/**
|
|
6765
6856
|
* Create Textmagic provider
|
|
6766
6857
|
*
|
|
6858
|
+
* Create a new Textmagic provider.
|
|
6767
6859
|
*
|
|
6768
6860
|
* @param {string} providerId
|
|
6769
6861
|
* @param {string} name
|
|
@@ -6811,6 +6903,7 @@
|
|
|
6811
6903
|
/**
|
|
6812
6904
|
* Update Textmagic provider
|
|
6813
6905
|
*
|
|
6906
|
+
* Update a Textmagic provider by its unique ID.
|
|
6814
6907
|
*
|
|
6815
6908
|
* @param {string} providerId
|
|
6816
6909
|
* @param {string} name
|
|
@@ -6852,6 +6945,7 @@
|
|
|
6852
6945
|
/**
|
|
6853
6946
|
* Create Twilio provider
|
|
6854
6947
|
*
|
|
6948
|
+
* Create a new Twilio provider.
|
|
6855
6949
|
*
|
|
6856
6950
|
* @param {string} providerId
|
|
6857
6951
|
* @param {string} name
|
|
@@ -6899,6 +6993,7 @@
|
|
|
6899
6993
|
/**
|
|
6900
6994
|
* Update Twilio provider
|
|
6901
6995
|
*
|
|
6996
|
+
* Update a Twilio provider by its unique ID.
|
|
6902
6997
|
*
|
|
6903
6998
|
* @param {string} providerId
|
|
6904
6999
|
* @param {string} name
|
|
@@ -6940,6 +7035,7 @@
|
|
|
6940
7035
|
/**
|
|
6941
7036
|
* Create Vonage provider
|
|
6942
7037
|
*
|
|
7038
|
+
* Create a new Vonage provider.
|
|
6943
7039
|
*
|
|
6944
7040
|
* @param {string} providerId
|
|
6945
7041
|
* @param {string} name
|
|
@@ -6987,6 +7083,7 @@
|
|
|
6987
7083
|
/**
|
|
6988
7084
|
* Update Vonage provider
|
|
6989
7085
|
*
|
|
7086
|
+
* Update a Vonage provider by its unique ID.
|
|
6990
7087
|
*
|
|
6991
7088
|
* @param {string} providerId
|
|
6992
7089
|
* @param {string} name
|
|
@@ -7028,6 +7125,8 @@
|
|
|
7028
7125
|
/**
|
|
7029
7126
|
* Get provider
|
|
7030
7127
|
*
|
|
7128
|
+
* Get a provider by its unique ID.
|
|
7129
|
+
*
|
|
7031
7130
|
*
|
|
7032
7131
|
* @param {string} providerId
|
|
7033
7132
|
* @throws {AppwriteException}
|
|
@@ -7049,6 +7148,7 @@
|
|
|
7049
7148
|
/**
|
|
7050
7149
|
* Delete provider
|
|
7051
7150
|
*
|
|
7151
|
+
* Delete a provider by its unique ID.
|
|
7052
7152
|
*
|
|
7053
7153
|
* @param {string} providerId
|
|
7054
7154
|
* @throws {AppwriteException}
|
|
@@ -7070,6 +7170,7 @@
|
|
|
7070
7170
|
/**
|
|
7071
7171
|
* List provider logs
|
|
7072
7172
|
*
|
|
7173
|
+
* Get the provider activity logs listed by its unique ID.
|
|
7073
7174
|
*
|
|
7074
7175
|
* @param {string} providerId
|
|
7075
7176
|
* @param {string[]} queries
|
|
@@ -7095,6 +7196,7 @@
|
|
|
7095
7196
|
/**
|
|
7096
7197
|
* List subscriber logs
|
|
7097
7198
|
*
|
|
7199
|
+
* Get the subscriber activity logs listed by its unique ID.
|
|
7098
7200
|
*
|
|
7099
7201
|
* @param {string} subscriberId
|
|
7100
7202
|
* @param {string[]} queries
|
|
@@ -7118,8 +7220,9 @@
|
|
|
7118
7220
|
});
|
|
7119
7221
|
}
|
|
7120
7222
|
/**
|
|
7121
|
-
* List topics
|
|
7223
|
+
* List topics
|
|
7122
7224
|
*
|
|
7225
|
+
* Get a list of all topics from the current Appwrite project.
|
|
7123
7226
|
*
|
|
7124
7227
|
* @param {string[]} queries
|
|
7125
7228
|
* @param {string} search
|
|
@@ -7143,8 +7246,9 @@
|
|
|
7143
7246
|
});
|
|
7144
7247
|
}
|
|
7145
7248
|
/**
|
|
7146
|
-
* Create a topic
|
|
7249
|
+
* Create a topic
|
|
7147
7250
|
*
|
|
7251
|
+
* Create a new topic.
|
|
7148
7252
|
*
|
|
7149
7253
|
* @param {string} topicId
|
|
7150
7254
|
* @param {string} name
|
|
@@ -7178,7 +7282,9 @@
|
|
|
7178
7282
|
});
|
|
7179
7283
|
}
|
|
7180
7284
|
/**
|
|
7181
|
-
* Get a topic
|
|
7285
|
+
* Get a topic
|
|
7286
|
+
*
|
|
7287
|
+
* Get a topic by its unique ID.
|
|
7182
7288
|
*
|
|
7183
7289
|
*
|
|
7184
7290
|
* @param {string} topicId
|
|
@@ -7199,15 +7305,18 @@
|
|
|
7199
7305
|
});
|
|
7200
7306
|
}
|
|
7201
7307
|
/**
|
|
7202
|
-
* Update a topic
|
|
7308
|
+
* Update a topic
|
|
7309
|
+
*
|
|
7310
|
+
* Update a topic by its unique ID.
|
|
7203
7311
|
*
|
|
7204
7312
|
*
|
|
7205
7313
|
* @param {string} topicId
|
|
7206
7314
|
* @param {string} name
|
|
7315
|
+
* @param {string[]} subscribe
|
|
7207
7316
|
* @throws {AppwriteException}
|
|
7208
7317
|
* @returns {Promise}
|
|
7209
7318
|
*/
|
|
7210
|
-
updateTopic(topicId, name) {
|
|
7319
|
+
updateTopic(topicId, name, subscribe) {
|
|
7211
7320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7212
7321
|
if (typeof topicId === 'undefined') {
|
|
7213
7322
|
throw new AppwriteException('Missing required parameter: "topicId"');
|
|
@@ -7217,6 +7326,9 @@
|
|
|
7217
7326
|
if (typeof name !== 'undefined') {
|
|
7218
7327
|
payload['name'] = name;
|
|
7219
7328
|
}
|
|
7329
|
+
if (typeof subscribe !== 'undefined') {
|
|
7330
|
+
payload['subscribe'] = subscribe;
|
|
7331
|
+
}
|
|
7220
7332
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
7221
7333
|
return yield this.client.call('patch', uri, {
|
|
7222
7334
|
'content-type': 'application/json',
|
|
@@ -7224,8 +7336,9 @@
|
|
|
7224
7336
|
});
|
|
7225
7337
|
}
|
|
7226
7338
|
/**
|
|
7227
|
-
* Delete a topic
|
|
7339
|
+
* Delete a topic
|
|
7228
7340
|
*
|
|
7341
|
+
* Delete a topic by its unique ID.
|
|
7229
7342
|
*
|
|
7230
7343
|
* @param {string} topicId
|
|
7231
7344
|
* @throws {AppwriteException}
|
|
@@ -7247,6 +7360,7 @@
|
|
|
7247
7360
|
/**
|
|
7248
7361
|
* List topic logs
|
|
7249
7362
|
*
|
|
7363
|
+
* Get the topic activity logs listed by its unique ID.
|
|
7250
7364
|
*
|
|
7251
7365
|
* @param {string} topicId
|
|
7252
7366
|
* @param {string[]} queries
|
|
@@ -7270,8 +7384,9 @@
|
|
|
7270
7384
|
});
|
|
7271
7385
|
}
|
|
7272
7386
|
/**
|
|
7273
|
-
* List subscribers
|
|
7387
|
+
* List subscribers
|
|
7274
7388
|
*
|
|
7389
|
+
* Get a list of all subscribers from the current Appwrite project.
|
|
7275
7390
|
*
|
|
7276
7391
|
* @param {string} topicId
|
|
7277
7392
|
* @param {string[]} queries
|
|
@@ -7299,8 +7414,9 @@
|
|
|
7299
7414
|
});
|
|
7300
7415
|
}
|
|
7301
7416
|
/**
|
|
7302
|
-
* Create a subscriber
|
|
7417
|
+
* Create a subscriber
|
|
7303
7418
|
*
|
|
7419
|
+
* Create a new subscriber.
|
|
7304
7420
|
*
|
|
7305
7421
|
* @param {string} topicId
|
|
7306
7422
|
* @param {string} subscriberId
|
|
@@ -7334,7 +7450,9 @@
|
|
|
7334
7450
|
});
|
|
7335
7451
|
}
|
|
7336
7452
|
/**
|
|
7337
|
-
* Get a subscriber
|
|
7453
|
+
* Get a subscriber
|
|
7454
|
+
*
|
|
7455
|
+
* Get a subscriber by its unique ID.
|
|
7338
7456
|
*
|
|
7339
7457
|
*
|
|
7340
7458
|
* @param {string} topicId
|
|
@@ -7359,8 +7477,9 @@
|
|
|
7359
7477
|
});
|
|
7360
7478
|
}
|
|
7361
7479
|
/**
|
|
7362
|
-
* Delete a subscriber
|
|
7480
|
+
* Delete a subscriber
|
|
7363
7481
|
*
|
|
7482
|
+
* Delete a subscriber by its unique ID.
|
|
7364
7483
|
*
|
|
7365
7484
|
* @param {string} topicId
|
|
7366
7485
|
* @param {string} subscriberId
|
|
@@ -8937,7 +9056,7 @@
|
|
|
8937
9056
|
*
|
|
8938
9057
|
*
|
|
8939
9058
|
* @param {string} projectId
|
|
8940
|
-
* @param {
|
|
9059
|
+
* @param {ApiService} service
|
|
8941
9060
|
* @param {boolean} status
|
|
8942
9061
|
* @throws {AppwriteException}
|
|
8943
9062
|
* @returns {Promise}
|
|
@@ -9270,8 +9389,8 @@
|
|
|
9270
9389
|
*
|
|
9271
9390
|
*
|
|
9272
9391
|
* @param {string} projectId
|
|
9273
|
-
* @param {
|
|
9274
|
-
* @param {
|
|
9392
|
+
* @param {SmsTemplateType} type
|
|
9393
|
+
* @param {SmsTemplateLocale} locale
|
|
9275
9394
|
* @throws {AppwriteException}
|
|
9276
9395
|
* @returns {Promise}
|
|
9277
9396
|
*/
|
|
@@ -9299,8 +9418,8 @@
|
|
|
9299
9418
|
*
|
|
9300
9419
|
*
|
|
9301
9420
|
* @param {string} projectId
|
|
9302
|
-
* @param {
|
|
9303
|
-
* @param {
|
|
9421
|
+
* @param {SmsTemplateType} type
|
|
9422
|
+
* @param {SmsTemplateLocale} locale
|
|
9304
9423
|
* @param {string} message
|
|
9305
9424
|
* @throws {AppwriteException}
|
|
9306
9425
|
* @returns {Promise}
|
|
@@ -9335,8 +9454,8 @@
|
|
|
9335
9454
|
*
|
|
9336
9455
|
*
|
|
9337
9456
|
* @param {string} projectId
|
|
9338
|
-
* @param {
|
|
9339
|
-
* @param {
|
|
9457
|
+
* @param {SmsTemplateType} type
|
|
9458
|
+
* @param {SmsTemplateLocale} locale
|
|
9340
9459
|
* @throws {AppwriteException}
|
|
9341
9460
|
* @returns {Promise}
|
|
9342
9461
|
*/
|
|
@@ -12752,10 +12871,42 @@
|
|
|
12752
12871
|
|
|
12753
12872
|
exports.Runtime = void 0;
|
|
12754
12873
|
(function (Runtime) {
|
|
12874
|
+
Runtime["Node145"] = "node-14.5";
|
|
12875
|
+
Runtime["Node160"] = "node-16.0";
|
|
12755
12876
|
Runtime["Node180"] = "node-18.0";
|
|
12877
|
+
Runtime["Node190"] = "node-19.0";
|
|
12878
|
+
Runtime["Node200"] = "node-20.0";
|
|
12756
12879
|
Runtime["Php80"] = "php-8.0";
|
|
12880
|
+
Runtime["Php81"] = "php-8.1";
|
|
12881
|
+
Runtime["Php82"] = "php-8.2";
|
|
12882
|
+
Runtime["Ruby30"] = "ruby-3.0";
|
|
12757
12883
|
Runtime["Ruby31"] = "ruby-3.1";
|
|
12884
|
+
Runtime["Ruby32"] = "ruby-3.2";
|
|
12885
|
+
Runtime["Python38"] = "python-3.8";
|
|
12758
12886
|
Runtime["Python39"] = "python-3.9";
|
|
12887
|
+
Runtime["Python310"] = "python-3.10";
|
|
12888
|
+
Runtime["Python311"] = "python-3.11";
|
|
12889
|
+
Runtime["Python312"] = "python-3.12";
|
|
12890
|
+
Runtime["Dart215"] = "dart-2.15";
|
|
12891
|
+
Runtime["Dart216"] = "dart-2.16";
|
|
12892
|
+
Runtime["Dart217"] = "dart-2.17";
|
|
12893
|
+
Runtime["Dart218"] = "dart-2.18";
|
|
12894
|
+
Runtime["Dart30"] = "dart-3.0";
|
|
12895
|
+
Runtime["Dart31"] = "dart-3.1";
|
|
12896
|
+
Runtime["Dotnet31"] = "dotnet-3.1";
|
|
12897
|
+
Runtime["Dotnet60"] = "dotnet-6.0";
|
|
12898
|
+
Runtime["Dotnet70"] = "dotnet-7.0";
|
|
12899
|
+
Runtime["Java80"] = "java-8.0";
|
|
12900
|
+
Runtime["Java110"] = "java-11.0";
|
|
12901
|
+
Runtime["Java170"] = "java-17.0";
|
|
12902
|
+
Runtime["Java180"] = "java-18.0";
|
|
12903
|
+
Runtime["Swift55"] = "swift-5.5";
|
|
12904
|
+
Runtime["Swift58"] = "swift-5.8";
|
|
12905
|
+
Runtime["Kotlin16"] = "kotlin-1.6";
|
|
12906
|
+
Runtime["Kotlin18"] = "kotlin-1.8";
|
|
12907
|
+
Runtime["Cpp17"] = "cpp-17";
|
|
12908
|
+
Runtime["Cpp20"] = "cpp-20";
|
|
12909
|
+
Runtime["Bun10"] = "bun-1.0";
|
|
12759
12910
|
})(exports.Runtime || (exports.Runtime = {}));
|
|
12760
12911
|
|
|
12761
12912
|
exports.FunctionUsageRange = void 0;
|
|
@@ -12798,12 +12949,12 @@
|
|
|
12798
12949
|
MessageStatus["Processing"] = "processing";
|
|
12799
12950
|
})(exports.MessageStatus || (exports.MessageStatus = {}));
|
|
12800
12951
|
|
|
12801
|
-
exports.
|
|
12802
|
-
(function (
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
})(exports.
|
|
12952
|
+
exports.SmtpEncryption = void 0;
|
|
12953
|
+
(function (SmtpEncryption) {
|
|
12954
|
+
SmtpEncryption["None"] = "none";
|
|
12955
|
+
SmtpEncryption["Ssl"] = "ssl";
|
|
12956
|
+
SmtpEncryption["Tls"] = "tls";
|
|
12957
|
+
})(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
|
|
12807
12958
|
|
|
12808
12959
|
exports.ProjectUsageRange = void 0;
|
|
12809
12960
|
(function (ProjectUsageRange) {
|
|
@@ -12814,6 +12965,7 @@
|
|
|
12814
12965
|
exports.Region = void 0;
|
|
12815
12966
|
(function (Region) {
|
|
12816
12967
|
Region["Default"] = "default";
|
|
12968
|
+
Region["Fra"] = "fra";
|
|
12817
12969
|
})(exports.Region || (exports.Region = {}));
|
|
12818
12970
|
|
|
12819
12971
|
exports.AuthMethod = void 0;
|
|
@@ -12844,20 +12996,20 @@
|
|
|
12844
12996
|
PlatformType["Unity"] = "unity";
|
|
12845
12997
|
})(exports.PlatformType || (exports.PlatformType = {}));
|
|
12846
12998
|
|
|
12847
|
-
exports.
|
|
12848
|
-
(function (
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12853
|
-
|
|
12854
|
-
|
|
12855
|
-
|
|
12856
|
-
|
|
12857
|
-
|
|
12858
|
-
|
|
12859
|
-
|
|
12860
|
-
})(exports.
|
|
12999
|
+
exports.ApiService = void 0;
|
|
13000
|
+
(function (ApiService) {
|
|
13001
|
+
ApiService["Account"] = "account";
|
|
13002
|
+
ApiService["Avatars"] = "avatars";
|
|
13003
|
+
ApiService["Databases"] = "databases";
|
|
13004
|
+
ApiService["Locale"] = "locale";
|
|
13005
|
+
ApiService["Health"] = "health";
|
|
13006
|
+
ApiService["Storage"] = "storage";
|
|
13007
|
+
ApiService["Teams"] = "teams";
|
|
13008
|
+
ApiService["Users"] = "users";
|
|
13009
|
+
ApiService["Functions"] = "functions";
|
|
13010
|
+
ApiService["Graphql"] = "graphql";
|
|
13011
|
+
ApiService["Messaging"] = "messaging";
|
|
13012
|
+
})(exports.ApiService || (exports.ApiService = {}));
|
|
12861
13013
|
|
|
12862
13014
|
exports.SMTPSecure = void 0;
|
|
12863
13015
|
(function (SMTPSecure) {
|
|
@@ -12870,6 +13022,7 @@
|
|
|
12870
13022
|
EmailTemplateType["Magicsession"] = "magicsession";
|
|
12871
13023
|
EmailTemplateType["Recovery"] = "recovery";
|
|
12872
13024
|
EmailTemplateType["Invitation"] = "invitation";
|
|
13025
|
+
EmailTemplateType["Mfachallenge"] = "mfachallenge";
|
|
12873
13026
|
})(exports.EmailTemplateType || (exports.EmailTemplateType = {}));
|
|
12874
13027
|
|
|
12875
13028
|
exports.EmailTemplateLocale = void 0;
|
|
@@ -13007,147 +13160,148 @@
|
|
|
13007
13160
|
EmailTemplateLocale["Zu"] = "zu";
|
|
13008
13161
|
})(exports.EmailTemplateLocale || (exports.EmailTemplateLocale = {}));
|
|
13009
13162
|
|
|
13010
|
-
exports.
|
|
13011
|
-
(function (
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
|
|
13163
|
+
exports.SmsTemplateType = void 0;
|
|
13164
|
+
(function (SmsTemplateType) {
|
|
13165
|
+
SmsTemplateType["Verification"] = "verification";
|
|
13166
|
+
SmsTemplateType["Login"] = "login";
|
|
13167
|
+
SmsTemplateType["Invitation"] = "invitation";
|
|
13168
|
+
SmsTemplateType["Mfachallenge"] = "mfachallenge";
|
|
13169
|
+
})(exports.SmsTemplateType || (exports.SmsTemplateType = {}));
|
|
13016
13170
|
|
|
13017
|
-
exports.
|
|
13018
|
-
(function (
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
|
|
13109
|
-
|
|
13110
|
-
|
|
13111
|
-
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
})(exports.
|
|
13171
|
+
exports.SmsTemplateLocale = void 0;
|
|
13172
|
+
(function (SmsTemplateLocale) {
|
|
13173
|
+
SmsTemplateLocale["Af"] = "af";
|
|
13174
|
+
SmsTemplateLocale["Arae"] = "ar-ae";
|
|
13175
|
+
SmsTemplateLocale["Arbh"] = "ar-bh";
|
|
13176
|
+
SmsTemplateLocale["Ardz"] = "ar-dz";
|
|
13177
|
+
SmsTemplateLocale["Areg"] = "ar-eg";
|
|
13178
|
+
SmsTemplateLocale["Ariq"] = "ar-iq";
|
|
13179
|
+
SmsTemplateLocale["Arjo"] = "ar-jo";
|
|
13180
|
+
SmsTemplateLocale["Arkw"] = "ar-kw";
|
|
13181
|
+
SmsTemplateLocale["Arlb"] = "ar-lb";
|
|
13182
|
+
SmsTemplateLocale["Arly"] = "ar-ly";
|
|
13183
|
+
SmsTemplateLocale["Arma"] = "ar-ma";
|
|
13184
|
+
SmsTemplateLocale["Arom"] = "ar-om";
|
|
13185
|
+
SmsTemplateLocale["Arqa"] = "ar-qa";
|
|
13186
|
+
SmsTemplateLocale["Arsa"] = "ar-sa";
|
|
13187
|
+
SmsTemplateLocale["Arsy"] = "ar-sy";
|
|
13188
|
+
SmsTemplateLocale["Artn"] = "ar-tn";
|
|
13189
|
+
SmsTemplateLocale["Arye"] = "ar-ye";
|
|
13190
|
+
SmsTemplateLocale["As"] = "as";
|
|
13191
|
+
SmsTemplateLocale["Az"] = "az";
|
|
13192
|
+
SmsTemplateLocale["Be"] = "be";
|
|
13193
|
+
SmsTemplateLocale["Bg"] = "bg";
|
|
13194
|
+
SmsTemplateLocale["Bh"] = "bh";
|
|
13195
|
+
SmsTemplateLocale["Bn"] = "bn";
|
|
13196
|
+
SmsTemplateLocale["Bs"] = "bs";
|
|
13197
|
+
SmsTemplateLocale["Ca"] = "ca";
|
|
13198
|
+
SmsTemplateLocale["Cs"] = "cs";
|
|
13199
|
+
SmsTemplateLocale["Cy"] = "cy";
|
|
13200
|
+
SmsTemplateLocale["Da"] = "da";
|
|
13201
|
+
SmsTemplateLocale["De"] = "de";
|
|
13202
|
+
SmsTemplateLocale["Deat"] = "de-at";
|
|
13203
|
+
SmsTemplateLocale["Dech"] = "de-ch";
|
|
13204
|
+
SmsTemplateLocale["Deli"] = "de-li";
|
|
13205
|
+
SmsTemplateLocale["Delu"] = "de-lu";
|
|
13206
|
+
SmsTemplateLocale["El"] = "el";
|
|
13207
|
+
SmsTemplateLocale["En"] = "en";
|
|
13208
|
+
SmsTemplateLocale["Enau"] = "en-au";
|
|
13209
|
+
SmsTemplateLocale["Enbz"] = "en-bz";
|
|
13210
|
+
SmsTemplateLocale["Enca"] = "en-ca";
|
|
13211
|
+
SmsTemplateLocale["Engb"] = "en-gb";
|
|
13212
|
+
SmsTemplateLocale["Enie"] = "en-ie";
|
|
13213
|
+
SmsTemplateLocale["Enjm"] = "en-jm";
|
|
13214
|
+
SmsTemplateLocale["Ennz"] = "en-nz";
|
|
13215
|
+
SmsTemplateLocale["Entt"] = "en-tt";
|
|
13216
|
+
SmsTemplateLocale["Enus"] = "en-us";
|
|
13217
|
+
SmsTemplateLocale["Enza"] = "en-za";
|
|
13218
|
+
SmsTemplateLocale["Eo"] = "eo";
|
|
13219
|
+
SmsTemplateLocale["Es"] = "es";
|
|
13220
|
+
SmsTemplateLocale["Esar"] = "es-ar";
|
|
13221
|
+
SmsTemplateLocale["Esbo"] = "es-bo";
|
|
13222
|
+
SmsTemplateLocale["Escl"] = "es-cl";
|
|
13223
|
+
SmsTemplateLocale["Esco"] = "es-co";
|
|
13224
|
+
SmsTemplateLocale["Escr"] = "es-cr";
|
|
13225
|
+
SmsTemplateLocale["Esdo"] = "es-do";
|
|
13226
|
+
SmsTemplateLocale["Esec"] = "es-ec";
|
|
13227
|
+
SmsTemplateLocale["Esgt"] = "es-gt";
|
|
13228
|
+
SmsTemplateLocale["Eshn"] = "es-hn";
|
|
13229
|
+
SmsTemplateLocale["Esmx"] = "es-mx";
|
|
13230
|
+
SmsTemplateLocale["Esni"] = "es-ni";
|
|
13231
|
+
SmsTemplateLocale["Espa"] = "es-pa";
|
|
13232
|
+
SmsTemplateLocale["Espe"] = "es-pe";
|
|
13233
|
+
SmsTemplateLocale["Espr"] = "es-pr";
|
|
13234
|
+
SmsTemplateLocale["Espy"] = "es-py";
|
|
13235
|
+
SmsTemplateLocale["Essv"] = "es-sv";
|
|
13236
|
+
SmsTemplateLocale["Esuy"] = "es-uy";
|
|
13237
|
+
SmsTemplateLocale["Esve"] = "es-ve";
|
|
13238
|
+
SmsTemplateLocale["Et"] = "et";
|
|
13239
|
+
SmsTemplateLocale["Eu"] = "eu";
|
|
13240
|
+
SmsTemplateLocale["Fa"] = "fa";
|
|
13241
|
+
SmsTemplateLocale["Fi"] = "fi";
|
|
13242
|
+
SmsTemplateLocale["Fo"] = "fo";
|
|
13243
|
+
SmsTemplateLocale["Fr"] = "fr";
|
|
13244
|
+
SmsTemplateLocale["Frbe"] = "fr-be";
|
|
13245
|
+
SmsTemplateLocale["Frca"] = "fr-ca";
|
|
13246
|
+
SmsTemplateLocale["Frch"] = "fr-ch";
|
|
13247
|
+
SmsTemplateLocale["Frlu"] = "fr-lu";
|
|
13248
|
+
SmsTemplateLocale["Ga"] = "ga";
|
|
13249
|
+
SmsTemplateLocale["Gd"] = "gd";
|
|
13250
|
+
SmsTemplateLocale["He"] = "he";
|
|
13251
|
+
SmsTemplateLocale["Hi"] = "hi";
|
|
13252
|
+
SmsTemplateLocale["Hr"] = "hr";
|
|
13253
|
+
SmsTemplateLocale["Hu"] = "hu";
|
|
13254
|
+
SmsTemplateLocale["Id"] = "id";
|
|
13255
|
+
SmsTemplateLocale["Is"] = "is";
|
|
13256
|
+
SmsTemplateLocale["It"] = "it";
|
|
13257
|
+
SmsTemplateLocale["Itch"] = "it-ch";
|
|
13258
|
+
SmsTemplateLocale["Ja"] = "ja";
|
|
13259
|
+
SmsTemplateLocale["Ji"] = "ji";
|
|
13260
|
+
SmsTemplateLocale["Ko"] = "ko";
|
|
13261
|
+
SmsTemplateLocale["Ku"] = "ku";
|
|
13262
|
+
SmsTemplateLocale["Lt"] = "lt";
|
|
13263
|
+
SmsTemplateLocale["Lv"] = "lv";
|
|
13264
|
+
SmsTemplateLocale["Mk"] = "mk";
|
|
13265
|
+
SmsTemplateLocale["Ml"] = "ml";
|
|
13266
|
+
SmsTemplateLocale["Ms"] = "ms";
|
|
13267
|
+
SmsTemplateLocale["Mt"] = "mt";
|
|
13268
|
+
SmsTemplateLocale["Nb"] = "nb";
|
|
13269
|
+
SmsTemplateLocale["Ne"] = "ne";
|
|
13270
|
+
SmsTemplateLocale["Nl"] = "nl";
|
|
13271
|
+
SmsTemplateLocale["Nlbe"] = "nl-be";
|
|
13272
|
+
SmsTemplateLocale["Nn"] = "nn";
|
|
13273
|
+
SmsTemplateLocale["No"] = "no";
|
|
13274
|
+
SmsTemplateLocale["Pa"] = "pa";
|
|
13275
|
+
SmsTemplateLocale["Pl"] = "pl";
|
|
13276
|
+
SmsTemplateLocale["Pt"] = "pt";
|
|
13277
|
+
SmsTemplateLocale["Ptbr"] = "pt-br";
|
|
13278
|
+
SmsTemplateLocale["Rm"] = "rm";
|
|
13279
|
+
SmsTemplateLocale["Ro"] = "ro";
|
|
13280
|
+
SmsTemplateLocale["Romd"] = "ro-md";
|
|
13281
|
+
SmsTemplateLocale["Ru"] = "ru";
|
|
13282
|
+
SmsTemplateLocale["Rumd"] = "ru-md";
|
|
13283
|
+
SmsTemplateLocale["Sb"] = "sb";
|
|
13284
|
+
SmsTemplateLocale["Sk"] = "sk";
|
|
13285
|
+
SmsTemplateLocale["Sl"] = "sl";
|
|
13286
|
+
SmsTemplateLocale["Sq"] = "sq";
|
|
13287
|
+
SmsTemplateLocale["Sr"] = "sr";
|
|
13288
|
+
SmsTemplateLocale["Sv"] = "sv";
|
|
13289
|
+
SmsTemplateLocale["Svfi"] = "sv-fi";
|
|
13290
|
+
SmsTemplateLocale["Th"] = "th";
|
|
13291
|
+
SmsTemplateLocale["Tn"] = "tn";
|
|
13292
|
+
SmsTemplateLocale["Tr"] = "tr";
|
|
13293
|
+
SmsTemplateLocale["Ts"] = "ts";
|
|
13294
|
+
SmsTemplateLocale["Ua"] = "ua";
|
|
13295
|
+
SmsTemplateLocale["Ur"] = "ur";
|
|
13296
|
+
SmsTemplateLocale["Ve"] = "ve";
|
|
13297
|
+
SmsTemplateLocale["Vi"] = "vi";
|
|
13298
|
+
SmsTemplateLocale["Xh"] = "xh";
|
|
13299
|
+
SmsTemplateLocale["Zhcn"] = "zh-cn";
|
|
13300
|
+
SmsTemplateLocale["Zhhk"] = "zh-hk";
|
|
13301
|
+
SmsTemplateLocale["Zhsg"] = "zh-sg";
|
|
13302
|
+
SmsTemplateLocale["Zhtw"] = "zh-tw";
|
|
13303
|
+
SmsTemplateLocale["Zu"] = "zu";
|
|
13304
|
+
})(exports.SmsTemplateLocale || (exports.SmsTemplateLocale = {}));
|
|
13151
13305
|
|
|
13152
13306
|
exports.ResourceType = void 0;
|
|
13153
13307
|
(function (ResourceType) {
|