@appwrite.io/console 0.6.0-rc.8 → 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 +979 -200
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +980 -201
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +979 -200
- 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 +1 -1
- 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 +1 -1
- 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/{projects/update-auth-mfa-factors.md → account/delete-push-target.md} +3 -3
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- 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-providers.md → list-factors.md} +2 -2
- 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 +1 -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-a-p-n-s-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-f-c-m-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-s-m-s.md +1 -1
- 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-push-notification.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/list-targets.md +1 -1
- 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 +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-f-c-m-provider.md +1 -1
- 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 +1 -1
- 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/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- 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/update-smtp.md +1 -1
- 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 +1 -1
- 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 +5 -5
- package/src/query.ts +61 -34
- package/src/service.ts +7 -7
- package/src/services/account.ts +57 -31
- 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 +242 -76
- package/src/services/migrations.ts +3 -2
- package/src/services/project.ts +4 -2
- package/src/services/projects.ts +41 -63
- package/src/services/proxy.ts +4 -2
- package/src/services/storage.ts +16 -11
- package/src/services/teams.ts +1 -0
- package/src/services/users.ts +17 -12
- 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 +5 -5
- package/types/query.d.ts +10 -3
- package/types/services/account.d.ts +32 -20
- 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 +82 -36
- package/types/services/migrations.d.ts +2 -2
- package/types/services/project.d.ts +3 -2
- package/types/services/projects.d.ts +40 -42
- package/types/services/proxy.d.ts +3 -2
- package/types/services/storage.d.ts +15 -11
- package/types/services/users.d.ts +16 -12
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { MessageType } from '../enums/message-type';
|
|
5
|
+
import { SMTPEncryption } from '../enums/s-m-t-p-encryption';
|
|
4
6
|
export declare class Messaging extends Service {
|
|
5
7
|
constructor(client: Client);
|
|
6
8
|
/**
|
|
7
9
|
* List messages
|
|
8
10
|
*
|
|
9
11
|
*
|
|
10
|
-
* @param {string} queries
|
|
12
|
+
* @param {string[]} queries
|
|
11
13
|
* @param {string} search
|
|
12
14
|
* @throws {AppwriteException}
|
|
13
15
|
* @returns {Promise}
|
|
14
16
|
*/
|
|
15
|
-
listMessages(queries?: string, search?: string): Promise<Models.MessageList>;
|
|
17
|
+
listMessages(queries?: string[], search?: string): Promise<Models.MessageList>;
|
|
16
18
|
/**
|
|
17
19
|
* Create an email.
|
|
18
20
|
*
|
|
@@ -25,14 +27,13 @@ export declare class Messaging extends Service {
|
|
|
25
27
|
* @param {string[]} targets
|
|
26
28
|
* @param {string[]} cc
|
|
27
29
|
* @param {string[]} bcc
|
|
28
|
-
* @param {
|
|
29
|
-
* @param {string} status
|
|
30
|
+
* @param {MessageType} status
|
|
30
31
|
* @param {boolean} html
|
|
31
32
|
* @param {string} scheduledAt
|
|
32
33
|
* @throws {AppwriteException}
|
|
33
34
|
* @returns {Promise}
|
|
34
35
|
*/
|
|
35
|
-
createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[],
|
|
36
|
+
createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], status?: MessageType, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
36
37
|
/**
|
|
37
38
|
* Update an email.
|
|
38
39
|
*
|
|
@@ -42,9 +43,8 @@ export declare class Messaging extends Service {
|
|
|
42
43
|
* @param {string[]} users
|
|
43
44
|
* @param {string[]} targets
|
|
44
45
|
* @param {string} subject
|
|
45
|
-
* @param {string} description
|
|
46
46
|
* @param {string} content
|
|
47
|
-
* @param {
|
|
47
|
+
* @param {MessageType} status
|
|
48
48
|
* @param {boolean} html
|
|
49
49
|
* @param {string[]} cc
|
|
50
50
|
* @param {string[]} bcc
|
|
@@ -52,7 +52,7 @@ export declare class Messaging extends Service {
|
|
|
52
52
|
* @throws {AppwriteException}
|
|
53
53
|
* @returns {Promise}
|
|
54
54
|
*/
|
|
55
|
-
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string,
|
|
55
|
+
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, status?: MessageType, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string): Promise<Models.Message>;
|
|
56
56
|
/**
|
|
57
57
|
* Create a push notification.
|
|
58
58
|
*
|
|
@@ -63,7 +63,6 @@ export declare class Messaging extends Service {
|
|
|
63
63
|
* @param {string[]} topics
|
|
64
64
|
* @param {string[]} users
|
|
65
65
|
* @param {string[]} targets
|
|
66
|
-
* @param {string} description
|
|
67
66
|
* @param {object} data
|
|
68
67
|
* @param {string} action
|
|
69
68
|
* @param {string} icon
|
|
@@ -71,12 +70,12 @@ export declare class Messaging extends Service {
|
|
|
71
70
|
* @param {string} color
|
|
72
71
|
* @param {string} tag
|
|
73
72
|
* @param {string} badge
|
|
74
|
-
* @param {
|
|
73
|
+
* @param {MessageType} status
|
|
75
74
|
* @param {string} scheduledAt
|
|
76
75
|
* @throws {AppwriteException}
|
|
77
76
|
* @returns {Promise}
|
|
78
77
|
*/
|
|
79
|
-
createPush(messageId: string, title: string, body: string, topics?: string[], users?: string[], targets?: string[],
|
|
78
|
+
createPush(messageId: string, title: string, body: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: string, status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
|
|
80
79
|
/**
|
|
81
80
|
* Update a push notification.
|
|
82
81
|
*
|
|
@@ -85,7 +84,6 @@ export declare class Messaging extends Service {
|
|
|
85
84
|
* @param {string[]} topics
|
|
86
85
|
* @param {string[]} users
|
|
87
86
|
* @param {string[]} targets
|
|
88
|
-
* @param {string} description
|
|
89
87
|
* @param {string} title
|
|
90
88
|
* @param {string} body
|
|
91
89
|
* @param {object} data
|
|
@@ -95,12 +93,12 @@ export declare class Messaging extends Service {
|
|
|
95
93
|
* @param {string} color
|
|
96
94
|
* @param {string} tag
|
|
97
95
|
* @param {number} badge
|
|
98
|
-
* @param {
|
|
96
|
+
* @param {MessageType} status
|
|
99
97
|
* @param {string} scheduledAt
|
|
100
98
|
* @throws {AppwriteException}
|
|
101
99
|
* @returns {Promise}
|
|
102
100
|
*/
|
|
103
|
-
|
|
101
|
+
updatePush(messageId: string, topics?: string[], users?: string[], targets?: string[], title?: string, body?: string, data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
|
|
104
102
|
/**
|
|
105
103
|
* Create an SMS.
|
|
106
104
|
*
|
|
@@ -110,13 +108,12 @@ export declare class Messaging extends Service {
|
|
|
110
108
|
* @param {string[]} topics
|
|
111
109
|
* @param {string[]} users
|
|
112
110
|
* @param {string[]} targets
|
|
113
|
-
* @param {
|
|
114
|
-
* @param {string} status
|
|
111
|
+
* @param {MessageType} status
|
|
115
112
|
* @param {string} scheduledAt
|
|
116
113
|
* @throws {AppwriteException}
|
|
117
114
|
* @returns {Promise}
|
|
118
115
|
*/
|
|
119
|
-
createSMS(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[],
|
|
116
|
+
createSMS(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
|
|
120
117
|
/**
|
|
121
118
|
* Update an SMS.
|
|
122
119
|
*
|
|
@@ -125,14 +122,13 @@ export declare class Messaging extends Service {
|
|
|
125
122
|
* @param {string[]} topics
|
|
126
123
|
* @param {string[]} users
|
|
127
124
|
* @param {string[]} targets
|
|
128
|
-
* @param {string} description
|
|
129
125
|
* @param {string} content
|
|
130
|
-
* @param {
|
|
126
|
+
* @param {MessageType} status
|
|
131
127
|
* @param {string} scheduledAt
|
|
132
128
|
* @throws {AppwriteException}
|
|
133
129
|
* @returns {Promise}
|
|
134
130
|
*/
|
|
135
|
-
updateSMS(messageId: string, topics?: string[], users?: string[], targets?: string[],
|
|
131
|
+
updateSMS(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
|
|
136
132
|
/**
|
|
137
133
|
* Get a message
|
|
138
134
|
*
|
|
@@ -142,6 +138,15 @@ export declare class Messaging extends Service {
|
|
|
142
138
|
* @returns {Promise}
|
|
143
139
|
*/
|
|
144
140
|
getMessage(messageId: string): Promise<Models.Message>;
|
|
141
|
+
/**
|
|
142
|
+
* Delete a message
|
|
143
|
+
*
|
|
144
|
+
*
|
|
145
|
+
* @param {string} messageId
|
|
146
|
+
* @throws {AppwriteException}
|
|
147
|
+
* @returns {Promise}
|
|
148
|
+
*/
|
|
149
|
+
delete(messageId: string): Promise<{}>;
|
|
145
150
|
/**
|
|
146
151
|
* List message logs
|
|
147
152
|
*
|
|
@@ -159,21 +164,21 @@ export declare class Messaging extends Service {
|
|
|
159
164
|
* attribute.
|
|
160
165
|
*
|
|
161
166
|
* @param {string} messageId
|
|
162
|
-
* @param {string} queries
|
|
167
|
+
* @param {string[]} queries
|
|
163
168
|
* @throws {AppwriteException}
|
|
164
169
|
* @returns {Promise}
|
|
165
170
|
*/
|
|
166
|
-
listTargets(messageId: string, queries?: string): Promise<Models.TargetList>;
|
|
171
|
+
listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList>;
|
|
167
172
|
/**
|
|
168
173
|
* List providers
|
|
169
174
|
*
|
|
170
175
|
*
|
|
171
|
-
* @param {string} queries
|
|
176
|
+
* @param {string[]} queries
|
|
172
177
|
* @param {string} search
|
|
173
178
|
* @throws {AppwriteException}
|
|
174
179
|
* @returns {Promise}
|
|
175
180
|
*/
|
|
176
|
-
listProviders(queries?: string, search?: string): Promise<Models.ProviderList>;
|
|
181
|
+
listProviders(queries?: string[], search?: string): Promise<Models.ProviderList>;
|
|
177
182
|
/**
|
|
178
183
|
* Create APNS provider
|
|
179
184
|
*
|
|
@@ -237,15 +242,15 @@ export declare class Messaging extends Service {
|
|
|
237
242
|
* @param {string} apiKey
|
|
238
243
|
* @param {string} domain
|
|
239
244
|
* @param {boolean} isEuRegion
|
|
240
|
-
* @param {boolean} enabled
|
|
241
245
|
* @param {string} fromName
|
|
242
246
|
* @param {string} fromEmail
|
|
243
247
|
* @param {string} replyToName
|
|
244
248
|
* @param {string} replyToEmail
|
|
249
|
+
* @param {boolean} enabled
|
|
245
250
|
* @throws {AppwriteException}
|
|
246
251
|
* @returns {Promise}
|
|
247
252
|
*/
|
|
248
|
-
createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean,
|
|
253
|
+
createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
249
254
|
/**
|
|
250
255
|
* Update Mailgun provider
|
|
251
256
|
*
|
|
@@ -299,15 +304,15 @@ export declare class Messaging extends Service {
|
|
|
299
304
|
* @param {string} providerId
|
|
300
305
|
* @param {string} name
|
|
301
306
|
* @param {string} apiKey
|
|
302
|
-
* @param {boolean} enabled
|
|
303
307
|
* @param {string} fromName
|
|
304
308
|
* @param {string} fromEmail
|
|
305
309
|
* @param {string} replyToName
|
|
306
310
|
* @param {string} replyToEmail
|
|
311
|
+
* @param {boolean} enabled
|
|
307
312
|
* @throws {AppwriteException}
|
|
308
313
|
* @returns {Promise}
|
|
309
314
|
*/
|
|
310
|
-
createSendgridProvider(providerId: string, name: string, apiKey?: string,
|
|
315
|
+
createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
311
316
|
/**
|
|
312
317
|
* Update Sendgrid provider
|
|
313
318
|
*
|
|
@@ -324,6 +329,49 @@ export declare class Messaging extends Service {
|
|
|
324
329
|
* @returns {Promise}
|
|
325
330
|
*/
|
|
326
331
|
updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
|
|
332
|
+
/**
|
|
333
|
+
* Create SMTP provider
|
|
334
|
+
*
|
|
335
|
+
*
|
|
336
|
+
* @param {string} providerId
|
|
337
|
+
* @param {string} name
|
|
338
|
+
* @param {string} host
|
|
339
|
+
* @param {number} port
|
|
340
|
+
* @param {string} username
|
|
341
|
+
* @param {string} password
|
|
342
|
+
* @param {SMTPEncryption} encryption
|
|
343
|
+
* @param {boolean} autoTLS
|
|
344
|
+
* @param {string} mailer
|
|
345
|
+
* @param {string} fromName
|
|
346
|
+
* @param {string} fromEmail
|
|
347
|
+
* @param {string} replyToName
|
|
348
|
+
* @param {string} replyToEmail
|
|
349
|
+
* @param {boolean} enabled
|
|
350
|
+
* @throws {AppwriteException}
|
|
351
|
+
* @returns {Promise}
|
|
352
|
+
*/
|
|
353
|
+
createSMTPProvider(providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SMTPEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
354
|
+
/**
|
|
355
|
+
* Update SMTP provider
|
|
356
|
+
*
|
|
357
|
+
*
|
|
358
|
+
* @param {string} providerId
|
|
359
|
+
* @param {string} name
|
|
360
|
+
* @param {string} host
|
|
361
|
+
* @param {number} port
|
|
362
|
+
* @param {string} username
|
|
363
|
+
* @param {string} password
|
|
364
|
+
* @param {SMTPEncryption} encryption
|
|
365
|
+
* @param {boolean} autoTLS
|
|
366
|
+
* @param {string} fromName
|
|
367
|
+
* @param {string} fromEmail
|
|
368
|
+
* @param {string} replyToName
|
|
369
|
+
* @param {string} replyToEmail
|
|
370
|
+
* @param {boolean} enabled
|
|
371
|
+
* @throws {AppwriteException}
|
|
372
|
+
* @returns {Promise}
|
|
373
|
+
*/
|
|
374
|
+
updateSMTPProvider(providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SMTPEncryption, autoTLS?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
327
375
|
/**
|
|
328
376
|
* Create Telesign provider
|
|
329
377
|
*
|
|
@@ -478,23 +526,22 @@ export declare class Messaging extends Service {
|
|
|
478
526
|
* List topics.
|
|
479
527
|
*
|
|
480
528
|
*
|
|
481
|
-
* @param {string} queries
|
|
529
|
+
* @param {string[]} queries
|
|
482
530
|
* @param {string} search
|
|
483
531
|
* @throws {AppwriteException}
|
|
484
532
|
* @returns {Promise}
|
|
485
533
|
*/
|
|
486
|
-
listTopics(queries?: string, search?: string): Promise<Models.TopicList>;
|
|
534
|
+
listTopics(queries?: string[], search?: string): Promise<Models.TopicList>;
|
|
487
535
|
/**
|
|
488
536
|
* Create a topic.
|
|
489
537
|
*
|
|
490
538
|
*
|
|
491
539
|
* @param {string} topicId
|
|
492
540
|
* @param {string} name
|
|
493
|
-
* @param {string} description
|
|
494
541
|
* @throws {AppwriteException}
|
|
495
542
|
* @returns {Promise}
|
|
496
543
|
*/
|
|
497
|
-
createTopic(topicId: string, name: string
|
|
544
|
+
createTopic(topicId: string, name: string): Promise<Models.Topic>;
|
|
498
545
|
/**
|
|
499
546
|
* Get a topic.
|
|
500
547
|
*
|
|
@@ -510,11 +557,10 @@ export declare class Messaging extends Service {
|
|
|
510
557
|
*
|
|
511
558
|
* @param {string} topicId
|
|
512
559
|
* @param {string} name
|
|
513
|
-
* @param {string} description
|
|
514
560
|
* @throws {AppwriteException}
|
|
515
561
|
* @returns {Promise}
|
|
516
562
|
*/
|
|
517
|
-
updateTopic(topicId: string, name?: string
|
|
563
|
+
updateTopic(topicId: string, name?: string): Promise<Models.Topic>;
|
|
518
564
|
/**
|
|
519
565
|
* Delete a topic.
|
|
520
566
|
*
|
|
@@ -539,12 +585,12 @@ export declare class Messaging extends Service {
|
|
|
539
585
|
*
|
|
540
586
|
*
|
|
541
587
|
* @param {string} topicId
|
|
542
|
-
* @param {string} queries
|
|
588
|
+
* @param {string[]} queries
|
|
543
589
|
* @param {string} search
|
|
544
590
|
* @throws {AppwriteException}
|
|
545
591
|
* @returns {Promise}
|
|
546
592
|
*/
|
|
547
|
-
listSubscribers(topicId: string, queries?: string, search?: string): Promise<Models.SubscriberList>;
|
|
593
|
+
listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList>;
|
|
548
594
|
/**
|
|
549
595
|
* Create a subscriber.
|
|
550
596
|
*
|
|
@@ -7,12 +7,12 @@ export declare class Migrations extends Service {
|
|
|
7
7
|
* List Migrations
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
|
-
* @param {string} queries
|
|
10
|
+
* @param {string[]} queries
|
|
11
11
|
* @param {string} search
|
|
12
12
|
* @throws {AppwriteException}
|
|
13
13
|
* @returns {Promise}
|
|
14
14
|
*/
|
|
15
|
-
list(queries?: string, search?: string): Promise<Models.MigrationList>;
|
|
15
|
+
list(queries?: string[], search?: string): Promise<Models.MigrationList>;
|
|
16
16
|
/**
|
|
17
17
|
* Migrate Appwrite Data
|
|
18
18
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { ProjectUsageRange } from '../enums/project-usage-range';
|
|
4
5
|
export declare class Project extends Service {
|
|
5
6
|
constructor(client: Client);
|
|
6
7
|
/**
|
|
@@ -9,11 +10,11 @@ export declare class Project extends Service {
|
|
|
9
10
|
*
|
|
10
11
|
* @param {string} startDate
|
|
11
12
|
* @param {string} endDate
|
|
12
|
-
* @param {
|
|
13
|
+
* @param {ProjectUsageRange} period
|
|
13
14
|
* @throws {AppwriteException}
|
|
14
15
|
* @returns {Promise}
|
|
15
16
|
*/
|
|
16
|
-
getUsage(startDate: string, endDate: string, period?:
|
|
17
|
+
getUsage(startDate: string, endDate: string, period?: ProjectUsageRange): Promise<Models.UsageProject>;
|
|
17
18
|
/**
|
|
18
19
|
* List Variables
|
|
19
20
|
*
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { Region } from '../enums/region';
|
|
5
|
+
import { AuthMethod } from '../enums/auth-method';
|
|
6
|
+
import { OAuthProvider } from '../enums/o-auth-provider';
|
|
7
|
+
import { PlatformType } from '../enums/platform-type';
|
|
8
|
+
import { APIService } from '../enums/a-p-i-service';
|
|
9
|
+
import { SMTPSecure } from '../enums/s-m-t-p-secure';
|
|
10
|
+
import { TemplateType } from '../enums/template-type';
|
|
11
|
+
import { TemplateLocale } from '../enums/template-locale';
|
|
4
12
|
export declare class Projects extends Service {
|
|
5
13
|
constructor(client: Client);
|
|
6
14
|
/**
|
|
@@ -20,7 +28,7 @@ export declare class Projects extends Service {
|
|
|
20
28
|
* @param {string} projectId
|
|
21
29
|
* @param {string} name
|
|
22
30
|
* @param {string} teamId
|
|
23
|
-
* @param {
|
|
31
|
+
* @param {Region} region
|
|
24
32
|
* @param {string} description
|
|
25
33
|
* @param {string} logo
|
|
26
34
|
* @param {string} url
|
|
@@ -33,7 +41,7 @@ export declare class Projects extends Service {
|
|
|
33
41
|
* @throws {AppwriteException}
|
|
34
42
|
* @returns {Promise}
|
|
35
43
|
*/
|
|
36
|
-
create(projectId: string, name: string, teamId: string, region?:
|
|
44
|
+
create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
37
45
|
/**
|
|
38
46
|
* Get project
|
|
39
47
|
*
|
|
@@ -101,16 +109,6 @@ export declare class Projects extends Service {
|
|
|
101
109
|
* @returns {Promise}
|
|
102
110
|
*/
|
|
103
111
|
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
104
|
-
/**
|
|
105
|
-
* Update Project user minimum sessions factors
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* @param {string} projectId
|
|
109
|
-
* @param {number} factors
|
|
110
|
-
* @throws {AppwriteException}
|
|
111
|
-
* @returns {Promise}
|
|
112
|
-
*/
|
|
113
|
-
updateAuthMfaFactors(projectId: string, factors: number): Promise<Models.Project>;
|
|
114
112
|
/**
|
|
115
113
|
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
116
114
|
*
|
|
@@ -146,12 +144,12 @@ export declare class Projects extends Service {
|
|
|
146
144
|
*
|
|
147
145
|
*
|
|
148
146
|
* @param {string} projectId
|
|
149
|
-
* @param {
|
|
147
|
+
* @param {AuthMethod} method
|
|
150
148
|
* @param {boolean} status
|
|
151
149
|
* @throws {AppwriteException}
|
|
152
150
|
* @returns {Promise}
|
|
153
151
|
*/
|
|
154
|
-
updateAuthStatus(projectId: string, method:
|
|
152
|
+
updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
|
|
155
153
|
/**
|
|
156
154
|
* List keys
|
|
157
155
|
*
|
|
@@ -211,14 +209,14 @@ export declare class Projects extends Service {
|
|
|
211
209
|
*
|
|
212
210
|
*
|
|
213
211
|
* @param {string} projectId
|
|
214
|
-
* @param {
|
|
212
|
+
* @param {OAuthProvider} provider
|
|
215
213
|
* @param {string} appId
|
|
216
214
|
* @param {string} secret
|
|
217
215
|
* @param {boolean} enabled
|
|
218
216
|
* @throws {AppwriteException}
|
|
219
217
|
* @returns {Promise}
|
|
220
218
|
*/
|
|
221
|
-
updateOAuth2(projectId: string, provider:
|
|
219
|
+
updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
|
|
222
220
|
/**
|
|
223
221
|
* List platforms
|
|
224
222
|
*
|
|
@@ -233,7 +231,7 @@ export declare class Projects extends Service {
|
|
|
233
231
|
*
|
|
234
232
|
*
|
|
235
233
|
* @param {string} projectId
|
|
236
|
-
* @param {
|
|
234
|
+
* @param {PlatformType} type
|
|
237
235
|
* @param {string} name
|
|
238
236
|
* @param {string} key
|
|
239
237
|
* @param {string} store
|
|
@@ -241,7 +239,7 @@ export declare class Projects extends Service {
|
|
|
241
239
|
* @throws {AppwriteException}
|
|
242
240
|
* @returns {Promise}
|
|
243
241
|
*/
|
|
244
|
-
createPlatform(projectId: string, type:
|
|
242
|
+
createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
245
243
|
/**
|
|
246
244
|
* Get platform
|
|
247
245
|
*
|
|
@@ -281,12 +279,12 @@ export declare class Projects extends Service {
|
|
|
281
279
|
*
|
|
282
280
|
*
|
|
283
281
|
* @param {string} projectId
|
|
284
|
-
* @param {
|
|
282
|
+
* @param {APIService} service
|
|
285
283
|
* @param {boolean} status
|
|
286
284
|
* @throws {AppwriteException}
|
|
287
285
|
* @returns {Promise}
|
|
288
286
|
*/
|
|
289
|
-
updateServiceStatus(projectId: string, service:
|
|
287
|
+
updateServiceStatus(projectId: string, service: APIService, status: boolean): Promise<Models.Project>;
|
|
290
288
|
/**
|
|
291
289
|
* Update all service status
|
|
292
290
|
*
|
|
@@ -310,11 +308,11 @@ export declare class Projects extends Service {
|
|
|
310
308
|
* @param {number} port
|
|
311
309
|
* @param {string} username
|
|
312
310
|
* @param {string} password
|
|
313
|
-
* @param {
|
|
311
|
+
* @param {SMTPSecure} secure
|
|
314
312
|
* @throws {AppwriteException}
|
|
315
313
|
* @returns {Promise}
|
|
316
314
|
*/
|
|
317
|
-
updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?:
|
|
315
|
+
updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project>;
|
|
318
316
|
/**
|
|
319
317
|
* Create SMTP test
|
|
320
318
|
*
|
|
@@ -328,11 +326,11 @@ export declare class Projects extends Service {
|
|
|
328
326
|
* @param {number} port
|
|
329
327
|
* @param {string} username
|
|
330
328
|
* @param {string} password
|
|
331
|
-
* @param {
|
|
329
|
+
* @param {SMTPSecure} secure
|
|
332
330
|
* @throws {AppwriteException}
|
|
333
331
|
* @returns {Promise}
|
|
334
332
|
*/
|
|
335
|
-
createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?:
|
|
333
|
+
createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
|
|
336
334
|
/**
|
|
337
335
|
* Update Project Team
|
|
338
336
|
*
|
|
@@ -348,19 +346,19 @@ export declare class Projects extends Service {
|
|
|
348
346
|
*
|
|
349
347
|
*
|
|
350
348
|
* @param {string} projectId
|
|
351
|
-
* @param {
|
|
352
|
-
* @param {
|
|
349
|
+
* @param {TemplateType} type
|
|
350
|
+
* @param {TemplateLocale} locale
|
|
353
351
|
* @throws {AppwriteException}
|
|
354
352
|
* @returns {Promise}
|
|
355
353
|
*/
|
|
356
|
-
getEmailTemplate(projectId: string, type:
|
|
354
|
+
getEmailTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.EmailTemplate>;
|
|
357
355
|
/**
|
|
358
356
|
* Update custom email templates
|
|
359
357
|
*
|
|
360
358
|
*
|
|
361
359
|
* @param {string} projectId
|
|
362
|
-
* @param {
|
|
363
|
-
* @param {
|
|
360
|
+
* @param {TemplateType} type
|
|
361
|
+
* @param {TemplateLocale} locale
|
|
364
362
|
* @param {string} subject
|
|
365
363
|
* @param {string} message
|
|
366
364
|
* @param {string} senderName
|
|
@@ -369,52 +367,52 @@ export declare class Projects extends Service {
|
|
|
369
367
|
* @throws {AppwriteException}
|
|
370
368
|
* @returns {Promise}
|
|
371
369
|
*/
|
|
372
|
-
updateEmailTemplate(projectId: string, type:
|
|
370
|
+
updateEmailTemplate(projectId: string, type: TemplateType, locale: TemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
|
|
373
371
|
/**
|
|
374
372
|
* Reset custom email template
|
|
375
373
|
*
|
|
376
374
|
*
|
|
377
375
|
* @param {string} projectId
|
|
378
|
-
* @param {
|
|
379
|
-
* @param {
|
|
376
|
+
* @param {TemplateType} type
|
|
377
|
+
* @param {TemplateLocale} locale
|
|
380
378
|
* @throws {AppwriteException}
|
|
381
379
|
* @returns {Promise}
|
|
382
380
|
*/
|
|
383
|
-
deleteEmailTemplate(projectId: string, type:
|
|
381
|
+
deleteEmailTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.EmailTemplate>;
|
|
384
382
|
/**
|
|
385
383
|
* Get custom SMS template
|
|
386
384
|
*
|
|
387
385
|
*
|
|
388
386
|
* @param {string} projectId
|
|
389
|
-
* @param {
|
|
390
|
-
* @param {
|
|
387
|
+
* @param {TemplateType} type
|
|
388
|
+
* @param {TemplateLocale} locale
|
|
391
389
|
* @throws {AppwriteException}
|
|
392
390
|
* @returns {Promise}
|
|
393
391
|
*/
|
|
394
|
-
getSmsTemplate(projectId: string, type:
|
|
392
|
+
getSmsTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.SmsTemplate>;
|
|
395
393
|
/**
|
|
396
394
|
* Update custom SMS template
|
|
397
395
|
*
|
|
398
396
|
*
|
|
399
397
|
* @param {string} projectId
|
|
400
|
-
* @param {
|
|
401
|
-
* @param {
|
|
398
|
+
* @param {TemplateType} type
|
|
399
|
+
* @param {TemplateLocale} locale
|
|
402
400
|
* @param {string} message
|
|
403
401
|
* @throws {AppwriteException}
|
|
404
402
|
* @returns {Promise}
|
|
405
403
|
*/
|
|
406
|
-
updateSmsTemplate(projectId: string, type:
|
|
404
|
+
updateSmsTemplate(projectId: string, type: TemplateType, locale: TemplateLocale, message: string): Promise<Models.SmsTemplate>;
|
|
407
405
|
/**
|
|
408
406
|
* Reset custom SMS template
|
|
409
407
|
*
|
|
410
408
|
*
|
|
411
409
|
* @param {string} projectId
|
|
412
|
-
* @param {
|
|
413
|
-
* @param {
|
|
410
|
+
* @param {TemplateType} type
|
|
411
|
+
* @param {TemplateLocale} locale
|
|
414
412
|
* @throws {AppwriteException}
|
|
415
413
|
* @returns {Promise}
|
|
416
414
|
*/
|
|
417
|
-
deleteSmsTemplate(projectId: string, type:
|
|
415
|
+
deleteSmsTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.SmsTemplate>;
|
|
418
416
|
/**
|
|
419
417
|
* List webhooks
|
|
420
418
|
*
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { ResourceType } from '../enums/resource-type';
|
|
4
5
|
export declare class Proxy extends Service {
|
|
5
6
|
constructor(client: Client);
|
|
6
7
|
/**
|
|
@@ -21,12 +22,12 @@ export declare class Proxy extends Service {
|
|
|
21
22
|
* Create a new proxy rule.
|
|
22
23
|
*
|
|
23
24
|
* @param {string} domain
|
|
24
|
-
* @param {
|
|
25
|
+
* @param {ResourceType} resourceType
|
|
25
26
|
* @param {string} resourceId
|
|
26
27
|
* @throws {AppwriteException}
|
|
27
28
|
* @returns {Promise}
|
|
28
29
|
*/
|
|
29
|
-
createRule(domain: string, resourceType:
|
|
30
|
+
createRule(domain: string, resourceType: ResourceType, resourceId?: string): Promise<Models.ProxyRule>;
|
|
30
31
|
/**
|
|
31
32
|
* Get Rule
|
|
32
33
|
*
|