@appwrite.io/console 0.6.0-rc.9 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +32 -0
- package/README.md +5 -5
- package/dist/cjs/sdk.js +1140 -418
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1141 -419
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1140 -418
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-email-password-session.md +9 -13
- package/docs/examples/account/create-email-token.md +10 -13
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +10 -9
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +9 -13
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +10 -13
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +9 -13
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-mfa-authenticator.md +14 -0
- package/docs/examples/account/delete-push-target.md +8 -13
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/delete.md +6 -13
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +8 -13
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +9 -13
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/assistant/chat.md +8 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/console/variables.md +6 -13
- package/docs/examples/databases/create-boolean-attribute.md +13 -13
- package/docs/examples/databases/create-collection.md +13 -13
- package/docs/examples/databases/create-datetime-attribute.md +13 -13
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/create-email-attribute.md +13 -13
- package/docs/examples/databases/create-enum-attribute.md +14 -13
- package/docs/examples/databases/create-float-attribute.md +15 -13
- package/docs/examples/databases/create-index.md +13 -13
- package/docs/examples/databases/create-integer-attribute.md +15 -13
- package/docs/examples/databases/create-ip-attribute.md +13 -13
- package/docs/examples/databases/create-relationship-attribute.md +15 -13
- package/docs/examples/databases/create-string-attribute.md +15 -13
- package/docs/examples/databases/create-url-attribute.md +13 -13
- package/docs/examples/databases/create.md +10 -13
- package/docs/examples/databases/delete-attribute.md +10 -13
- package/docs/examples/databases/delete-collection.md +9 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/delete-index.md +10 -13
- package/docs/examples/databases/delete.md +8 -13
- package/docs/examples/databases/get-attribute.md +10 -13
- package/docs/examples/databases/get-collection-usage.md +10 -13
- package/docs/examples/databases/get-collection.md +9 -13
- package/docs/examples/databases/get-database-usage.md +9 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/get-index.md +10 -13
- package/docs/examples/databases/get-usage.md +8 -13
- package/docs/examples/databases/get.md +8 -13
- package/docs/examples/databases/list-attributes.md +10 -13
- package/docs/examples/databases/list-collection-logs.md +10 -13
- package/docs/examples/databases/list-collections.md +10 -13
- package/docs/examples/databases/list-document-logs.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/list-indexes.md +10 -13
- package/docs/examples/databases/list-logs.md +9 -13
- package/docs/examples/databases/list.md +9 -13
- package/docs/examples/databases/update-boolean-attribute.md +12 -13
- package/docs/examples/databases/update-collection.md +13 -13
- package/docs/examples/databases/update-datetime-attribute.md +12 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/databases/update-email-attribute.md +12 -13
- package/docs/examples/databases/update-enum-attribute.md +13 -13
- package/docs/examples/databases/update-float-attribute.md +14 -13
- package/docs/examples/databases/update-integer-attribute.md +14 -13
- package/docs/examples/databases/update-ip-attribute.md +12 -13
- package/docs/examples/databases/update-relationship-attribute.md +11 -13
- package/docs/examples/databases/update-string-attribute.md +12 -13
- package/docs/examples/databases/update-url-attribute.md +12 -13
- package/docs/examples/databases/update.md +10 -13
- package/docs/examples/functions/create-build.md +10 -13
- package/docs/examples/functions/create-deployment.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/create-variable.md +10 -13
- package/docs/examples/functions/create.md +27 -13
- package/docs/examples/functions/delete-deployment.md +9 -13
- package/docs/examples/functions/delete-variable.md +9 -13
- package/docs/examples/functions/delete.md +8 -13
- package/docs/examples/functions/download-deployment.md +9 -9
- package/docs/examples/functions/get-deployment.md +9 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/get-function-usage.md +9 -13
- package/docs/examples/functions/get-usage.md +8 -13
- package/docs/examples/functions/get-variable.md +9 -13
- package/docs/examples/functions/get.md +8 -13
- package/docs/examples/functions/list-deployments.md +10 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/functions/list-runtimes.md +6 -13
- package/docs/examples/functions/list-variables.md +8 -13
- package/docs/examples/functions/list.md +9 -13
- package/docs/examples/functions/update-deployment.md +9 -13
- package/docs/examples/functions/update-variable.md +11 -13
- package/docs/examples/functions/update.md +23 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/health/get-antivirus.md +6 -13
- package/docs/examples/health/get-cache.md +6 -13
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +6 -13
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +6 -13
- package/docs/examples/health/get-queue-builds.md +8 -13
- package/docs/examples/health/get-queue-certificates.md +8 -13
- package/docs/examples/health/get-queue-databases.md +9 -13
- package/docs/examples/health/get-queue-deletes.md +8 -13
- package/docs/examples/health/get-queue-functions.md +8 -13
- package/docs/examples/health/get-queue-logs.md +8 -13
- package/docs/examples/health/get-queue-mails.md +8 -13
- package/docs/examples/health/get-queue-messaging.md +8 -13
- package/docs/examples/health/get-queue-migrations.md +8 -13
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-queue-webhooks.md +8 -13
- package/docs/examples/health/get-queue.md +6 -13
- package/docs/examples/health/get-storage-local.md +6 -13
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +6 -13
- package/docs/examples/health/get.md +6 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +19 -13
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +17 -13
- package/docs/examples/messaging/create-msg91provider.md +13 -13
- package/docs/examples/messaging/create-push.md +23 -13
- package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +10 -13
- package/docs/examples/messaging/create-telesign-provider.md +13 -13
- package/docs/examples/messaging/create-textmagic-provider.md +13 -13
- package/docs/examples/messaging/create-topic.md +10 -13
- package/docs/examples/messaging/create-twilio-provider.md +13 -13
- package/docs/examples/messaging/create-vonage-provider.md +13 -13
- package/docs/examples/messaging/delete-provider.md +8 -13
- package/docs/examples/messaging/delete-subscriber.md +9 -13
- package/docs/examples/messaging/delete-topic.md +8 -13
- package/docs/examples/messaging/delete.md +8 -13
- package/docs/examples/messaging/get-message.md +8 -13
- package/docs/examples/messaging/get-provider.md +8 -13
- package/docs/examples/messaging/get-subscriber.md +9 -13
- package/docs/examples/messaging/get-topic.md +8 -13
- package/docs/examples/messaging/list-message-logs.md +9 -13
- package/docs/examples/messaging/list-messages.md +9 -13
- package/docs/examples/messaging/list-provider-logs.md +9 -13
- package/docs/examples/messaging/list-providers.md +9 -13
- package/docs/examples/messaging/list-subscriber-logs.md +9 -13
- package/docs/examples/messaging/list-subscribers.md +10 -13
- package/docs/examples/messaging/list-targets.md +9 -13
- package/docs/examples/messaging/list-topic-logs.md +9 -13
- package/docs/examples/messaging/list-topics.md +9 -13
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +18 -13
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +17 -13
- package/docs/examples/messaging/update-msg91provider.md +13 -13
- package/docs/examples/messaging/update-push.md +23 -13
- package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +13 -13
- package/docs/examples/messaging/update-textmagic-provider.md +13 -13
- package/docs/examples/messaging/update-topic.md +10 -13
- package/docs/examples/messaging/update-twilio-provider.md +13 -13
- package/docs/examples/messaging/update-vonage-provider.md +13 -13
- package/docs/examples/migrations/create-appwrite-migration.md +11 -13
- package/docs/examples/migrations/create-firebase-migration.md +9 -13
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
- package/docs/examples/migrations/create-n-host-migration.md +15 -13
- package/docs/examples/migrations/create-supabase-migration.md +14 -13
- package/docs/examples/migrations/delete-firebase-auth.md +6 -13
- package/docs/examples/migrations/delete.md +8 -13
- package/docs/examples/migrations/get-appwrite-report.md +11 -13
- package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
- package/docs/examples/migrations/get-firebase-report.md +9 -13
- package/docs/examples/migrations/get-n-host-report.md +15 -13
- package/docs/examples/migrations/get-supabase-report.md +14 -13
- package/docs/examples/migrations/get.md +8 -13
- package/docs/examples/migrations/list-firebase-projects.md +6 -13
- package/docs/examples/migrations/list.md +9 -13
- package/docs/examples/migrations/retry.md +8 -13
- package/docs/examples/project/create-variable.md +9 -13
- package/docs/examples/project/delete-variable.md +8 -13
- package/docs/examples/project/get-usage.md +10 -13
- package/docs/examples/project/get-variable.md +8 -13
- package/docs/examples/project/list-variables.md +6 -13
- package/docs/examples/project/update-variable.md +10 -13
- package/docs/examples/projects/create-key.md +11 -13
- package/docs/examples/projects/create-platform.md +13 -13
- package/docs/examples/projects/create-smtp-test.md +17 -13
- package/docs/examples/projects/create-webhook.md +15 -13
- package/docs/examples/projects/create.md +20 -13
- package/docs/examples/projects/delete-email-template.md +10 -13
- package/docs/examples/projects/delete-key.md +9 -13
- package/docs/examples/projects/delete-platform.md +9 -13
- package/docs/examples/projects/delete-sms-template.md +10 -13
- package/docs/examples/projects/delete-webhook.md +9 -13
- package/docs/examples/projects/delete.md +8 -13
- package/docs/examples/projects/get-email-template.md +10 -13
- package/docs/examples/projects/get-key.md +9 -13
- package/docs/examples/projects/get-platform.md +9 -13
- package/docs/examples/projects/get-sms-template.md +10 -13
- package/docs/examples/projects/get-webhook.md +9 -13
- package/docs/examples/projects/get.md +8 -13
- package/docs/examples/projects/list-keys.md +8 -13
- package/docs/examples/projects/list-platforms.md +8 -13
- package/docs/examples/projects/list-webhooks.md +8 -13
- package/docs/examples/projects/list.md +9 -13
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/projects/update-auth-duration.md +9 -13
- package/docs/examples/projects/update-auth-limit.md +9 -13
- package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
- package/docs/examples/projects/update-auth-password-history.md +9 -13
- package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
- package/docs/examples/projects/update-auth-status.md +10 -13
- package/docs/examples/projects/update-email-template.md +15 -13
- package/docs/examples/projects/update-key.md +12 -13
- package/docs/examples/projects/update-o-auth2.md +12 -13
- package/docs/examples/projects/update-personal-data-check.md +9 -13
- package/docs/examples/projects/update-platform.md +13 -13
- package/docs/examples/projects/update-service-status-all.md +9 -13
- package/docs/examples/projects/update-service-status.md +10 -13
- package/docs/examples/projects/update-sms-template.md +11 -13
- package/docs/examples/projects/update-smtp.md +17 -13
- package/docs/examples/projects/update-team.md +9 -13
- package/docs/examples/projects/update-webhook-signature.md +9 -13
- package/docs/examples/projects/update-webhook.md +16 -13
- package/docs/examples/projects/update.md +18 -13
- package/docs/examples/proxy/create-rule.md +10 -13
- package/docs/examples/proxy/delete-rule.md +8 -13
- package/docs/examples/proxy/get-rule.md +8 -13
- package/docs/examples/proxy/list-rules.md +9 -13
- package/docs/examples/proxy/update-rule-verification.md +8 -13
- package/docs/examples/storage/create-bucket.md +17 -13
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-bucket.md +8 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-bucket-usage.md +9 -13
- package/docs/examples/storage/get-bucket.md +8 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/get-usage.md +8 -13
- package/docs/examples/storage/list-buckets.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-bucket.md +17 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-logs.md +9 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/docs/examples/users/create-argon2user.md +11 -13
- package/docs/examples/users/create-bcrypt-user.md +11 -13
- package/docs/examples/users/create-m-d5user.md +11 -13
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +11 -13
- package/docs/examples/users/create-s-h-a-user.md +12 -13
- package/docs/examples/users/create-scrypt-modified-user.md +14 -13
- package/docs/examples/users/create-scrypt-user.md +16 -13
- package/docs/examples/users/create-session.md +8 -13
- package/docs/examples/users/create-target.md +13 -13
- package/docs/examples/users/create-token.md +10 -13
- package/docs/examples/users/create.md +12 -13
- package/docs/examples/users/delete-identity.md +8 -13
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +9 -13
- package/docs/examples/users/delete-sessions.md +8 -13
- package/docs/examples/users/delete-target.md +9 -13
- package/docs/examples/users/delete.md +8 -13
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +8 -13
- package/docs/examples/users/get-target.md +9 -13
- package/docs/examples/users/get-usage.md +8 -13
- package/docs/examples/users/get.md +8 -13
- package/docs/examples/users/list-identities.md +9 -13
- package/docs/examples/users/list-logs.md +9 -13
- package/docs/examples/users/list-memberships.md +8 -13
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +8 -13
- package/docs/examples/users/list-targets.md +9 -13
- package/docs/examples/users/list.md +9 -13
- package/docs/examples/users/update-email-verification.md +9 -13
- package/docs/examples/users/update-email.md +9 -13
- package/docs/examples/users/update-labels.md +9 -13
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +9 -13
- package/docs/examples/users/update-name.md +9 -13
- package/docs/examples/users/update-password.md +9 -13
- package/docs/examples/users/update-phone-verification.md +9 -13
- package/docs/examples/users/update-phone.md +9 -13
- package/docs/examples/users/update-prefs.md +9 -13
- package/docs/examples/users/update-status.md +9 -13
- package/docs/examples/users/update-target.md +12 -13
- package/docs/examples/vcs/create-repository-detection.md +10 -13
- package/docs/examples/vcs/create-repository.md +10 -13
- package/docs/examples/vcs/delete-installation.md +8 -13
- package/docs/examples/vcs/get-installation.md +8 -13
- package/docs/examples/vcs/get-repository.md +9 -13
- package/docs/examples/vcs/list-installations.md +9 -13
- package/docs/examples/vcs/list-repositories.md +9 -13
- package/docs/examples/vcs/list-repository-branches.md +9 -13
- package/docs/examples/vcs/update-external-deployments.md +10 -13
- package/package.json +1 -1
- package/src/client.ts +3 -3
- package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
- package/src/enums/api.ts +5 -0
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +7 -0
- package/src/enums/index-type.ts +0 -1
- package/src/enums/name.ts +15 -0
- package/src/enums/{password-version.ts → password-hash.ts} +1 -1
- package/src/enums/region.ts +1 -0
- package/src/enums/runtime.ts +40 -0
- package/src/enums/{template-locale.ts → sms-template-locale.ts} +1 -1
- package/src/enums/{template-type.ts → sms-template-type.ts} +2 -1
- package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
- package/src/index.ts +11 -8
- package/src/models.ts +57 -19
- package/src/query.ts +2 -2
- package/src/service.ts +0 -3
- package/src/services/account.ts +239 -66
- package/src/services/assistant.ts +0 -1
- package/src/services/avatars.ts +0 -1
- package/src/services/console.ts +0 -1
- package/src/services/databases.ts +20 -4
- package/src/services/functions.ts +0 -1
- package/src/services/graphql.ts +0 -1
- package/src/services/health.ts +121 -1
- package/src/services/locale.ts +0 -1
- package/src/services/messaging.ts +161 -70
- package/src/services/migrations.ts +0 -1
- package/src/services/project.ts +1 -2
- package/src/services/projects.ts +97 -24
- package/src/services/proxy.ts +0 -1
- package/src/services/storage.ts +2 -3
- package/src/services/teams.ts +0 -1
- package/src/services/users.ts +115 -39
- package/src/services/vcs.ts +0 -1
- package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
- package/types/enums/api.d.ts +5 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +7 -0
- package/types/enums/index-type.d.ts +1 -2
- package/types/enums/name.d.ts +15 -0
- package/types/enums/{password-version.d.ts → password-hash.d.ts} +1 -1
- package/types/enums/region.d.ts +2 -1
- package/types/enums/runtime.d.ts +41 -1
- package/types/enums/{template-locale.d.ts → sms-template-locale.d.ts} +1 -1
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
- package/types/index.d.ts +11 -8
- package/types/models.d.ts +57 -19
- package/types/query.d.ts +2 -2
- package/types/services/account.d.ts +121 -28
- package/types/services/databases.d.ts +20 -3
- package/types/services/health.d.ts +56 -0
- package/types/services/messaging.d.ts +109 -49
- package/types/services/project.d.ts +1 -1
- package/types/services/projects.d.ts +47 -23
- package/types/services/storage.d.ts +2 -2
- package/types/services/users.d.ts +63 -17
- package/docs/examples/account/add-authenticator.md +0 -18
- package/docs/examples/account/create-challenge.md +0 -18
- package/docs/examples/account/delete-authenticator.md +0 -18
- package/docs/examples/account/list-factors.md +0 -18
- package/docs/examples/account/update-challenge.md +0 -18
- package/docs/examples/account/verify-authenticator.md +0 -18
- package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/create-s-m-s.md +0 -18
- package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
- package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/update-s-m-s.md +0 -18
- package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
- package/docs/examples/users/delete-authenticator.md +0 -18
- package/docs/examples/users/list-providers.md +0 -18
- package/src/enums/authenticator-factor.ts +0 -3
- package/src/enums/authenticator-provider.ts +0 -3
- package/src/enums/message-type.ts +0 -5
- package/types/enums/authenticator-factor.d.ts +0 -3
- package/types/enums/authenticator-provider.d.ts +0 -3
- package/types/enums/message-type.d.ts +0 -5
- package/types/enums/template-type.d.ts +0 -5
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { Client } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
-
import {
|
|
5
|
-
import { SMTPEncryption } from '../enums/s-m-t-p-encryption';
|
|
4
|
+
import { SmtpEncryption } from '../enums/smtp-encryption';
|
|
6
5
|
export declare class Messaging extends Service {
|
|
7
6
|
constructor(client: Client);
|
|
8
7
|
/**
|
|
9
8
|
* List messages
|
|
10
9
|
*
|
|
10
|
+
* Get a list of all messages from the current Appwrite project.
|
|
11
11
|
*
|
|
12
12
|
* @param {string[]} queries
|
|
13
13
|
* @param {string} search
|
|
@@ -16,8 +16,9 @@ export declare class Messaging extends Service {
|
|
|
16
16
|
*/
|
|
17
17
|
listMessages(queries?: string[], search?: string): Promise<Models.MessageList>;
|
|
18
18
|
/**
|
|
19
|
-
* Create
|
|
19
|
+
* Create email
|
|
20
20
|
*
|
|
21
|
+
* Create a new email message.
|
|
21
22
|
*
|
|
22
23
|
* @param {string} messageId
|
|
23
24
|
* @param {string} subject
|
|
@@ -27,15 +28,18 @@ export declare class Messaging extends Service {
|
|
|
27
28
|
* @param {string[]} targets
|
|
28
29
|
* @param {string[]} cc
|
|
29
30
|
* @param {string[]} bcc
|
|
30
|
-
* @param {
|
|
31
|
+
* @param {string[]} attachments
|
|
32
|
+
* @param {boolean} draft
|
|
31
33
|
* @param {boolean} html
|
|
32
34
|
* @param {string} scheduledAt
|
|
33
35
|
* @throws {AppwriteException}
|
|
34
36
|
* @returns {Promise}
|
|
35
37
|
*/
|
|
36
|
-
createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[],
|
|
38
|
+
createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], draft?: boolean, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
37
39
|
/**
|
|
38
|
-
* Update
|
|
40
|
+
* Update email
|
|
41
|
+
*
|
|
42
|
+
* Update an email message by its unique ID.
|
|
39
43
|
*
|
|
40
44
|
*
|
|
41
45
|
* @param {string} messageId
|
|
@@ -44,7 +48,7 @@ export declare class Messaging extends Service {
|
|
|
44
48
|
* @param {string[]} targets
|
|
45
49
|
* @param {string} subject
|
|
46
50
|
* @param {string} content
|
|
47
|
-
* @param {
|
|
51
|
+
* @param {boolean} draft
|
|
48
52
|
* @param {boolean} html
|
|
49
53
|
* @param {string[]} cc
|
|
50
54
|
* @param {string[]} bcc
|
|
@@ -52,10 +56,11 @@ export declare class Messaging extends Service {
|
|
|
52
56
|
* @throws {AppwriteException}
|
|
53
57
|
* @returns {Promise}
|
|
54
58
|
*/
|
|
55
|
-
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string,
|
|
59
|
+
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string): Promise<Models.Message>;
|
|
56
60
|
/**
|
|
57
|
-
* Create
|
|
61
|
+
* Create push notification
|
|
58
62
|
*
|
|
63
|
+
* Create a new push notification.
|
|
59
64
|
*
|
|
60
65
|
* @param {string} messageId
|
|
61
66
|
* @param {string} title
|
|
@@ -65,19 +70,22 @@ export declare class Messaging extends Service {
|
|
|
65
70
|
* @param {string[]} targets
|
|
66
71
|
* @param {object} data
|
|
67
72
|
* @param {string} action
|
|
73
|
+
* @param {string} image
|
|
68
74
|
* @param {string} icon
|
|
69
75
|
* @param {string} sound
|
|
70
76
|
* @param {string} color
|
|
71
77
|
* @param {string} tag
|
|
72
78
|
* @param {string} badge
|
|
73
|
-
* @param {
|
|
79
|
+
* @param {boolean} draft
|
|
74
80
|
* @param {string} scheduledAt
|
|
75
81
|
* @throws {AppwriteException}
|
|
76
82
|
* @returns {Promise}
|
|
77
83
|
*/
|
|
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,
|
|
84
|
+
createPush(messageId: string, title: string, body: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
79
85
|
/**
|
|
80
|
-
* Update
|
|
86
|
+
* Update push notification
|
|
87
|
+
*
|
|
88
|
+
* Update a push notification by its unique ID.
|
|
81
89
|
*
|
|
82
90
|
*
|
|
83
91
|
* @param {string} messageId
|
|
@@ -88,34 +96,38 @@ export declare class Messaging extends Service {
|
|
|
88
96
|
* @param {string} body
|
|
89
97
|
* @param {object} data
|
|
90
98
|
* @param {string} action
|
|
99
|
+
* @param {string} image
|
|
91
100
|
* @param {string} icon
|
|
92
101
|
* @param {string} sound
|
|
93
102
|
* @param {string} color
|
|
94
103
|
* @param {string} tag
|
|
95
104
|
* @param {number} badge
|
|
96
|
-
* @param {
|
|
105
|
+
* @param {boolean} draft
|
|
97
106
|
* @param {string} scheduledAt
|
|
98
107
|
* @throws {AppwriteException}
|
|
99
108
|
* @returns {Promise}
|
|
100
109
|
*/
|
|
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,
|
|
110
|
+
updatePush(messageId: string, topics?: string[], users?: string[], targets?: string[], title?: string, body?: string, data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
102
111
|
/**
|
|
103
|
-
* Create
|
|
112
|
+
* Create SMS
|
|
104
113
|
*
|
|
114
|
+
* Create a new SMS message.
|
|
105
115
|
*
|
|
106
116
|
* @param {string} messageId
|
|
107
117
|
* @param {string} content
|
|
108
118
|
* @param {string[]} topics
|
|
109
119
|
* @param {string[]} users
|
|
110
120
|
* @param {string[]} targets
|
|
111
|
-
* @param {
|
|
121
|
+
* @param {boolean} draft
|
|
112
122
|
* @param {string} scheduledAt
|
|
113
123
|
* @throws {AppwriteException}
|
|
114
124
|
* @returns {Promise}
|
|
115
125
|
*/
|
|
116
|
-
|
|
126
|
+
createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
117
127
|
/**
|
|
118
|
-
* Update
|
|
128
|
+
* Update SMS
|
|
129
|
+
*
|
|
130
|
+
* Update an email message by its unique ID.
|
|
119
131
|
*
|
|
120
132
|
*
|
|
121
133
|
* @param {string} messageId
|
|
@@ -123,14 +135,16 @@ export declare class Messaging extends Service {
|
|
|
123
135
|
* @param {string[]} users
|
|
124
136
|
* @param {string[]} targets
|
|
125
137
|
* @param {string} content
|
|
126
|
-
* @param {
|
|
138
|
+
* @param {boolean} draft
|
|
127
139
|
* @param {string} scheduledAt
|
|
128
140
|
* @throws {AppwriteException}
|
|
129
141
|
* @returns {Promise}
|
|
130
142
|
*/
|
|
131
|
-
|
|
143
|
+
updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
132
144
|
/**
|
|
133
|
-
* Get
|
|
145
|
+
* Get message
|
|
146
|
+
*
|
|
147
|
+
* Get a message by its unique ID.
|
|
134
148
|
*
|
|
135
149
|
*
|
|
136
150
|
* @param {string} messageId
|
|
@@ -139,8 +153,10 @@ export declare class Messaging extends Service {
|
|
|
139
153
|
*/
|
|
140
154
|
getMessage(messageId: string): Promise<Models.Message>;
|
|
141
155
|
/**
|
|
142
|
-
* Delete
|
|
156
|
+
* Delete message
|
|
143
157
|
*
|
|
158
|
+
* Delete a message. If the message is not a draft or scheduled, but has been
|
|
159
|
+
* sent, this will not recall the message.
|
|
144
160
|
*
|
|
145
161
|
* @param {string} messageId
|
|
146
162
|
* @throws {AppwriteException}
|
|
@@ -150,6 +166,7 @@ export declare class Messaging extends Service {
|
|
|
150
166
|
/**
|
|
151
167
|
* List message logs
|
|
152
168
|
*
|
|
169
|
+
* Get the message activity logs listed by its unique ID.
|
|
153
170
|
*
|
|
154
171
|
* @param {string} messageId
|
|
155
172
|
* @param {string[]} queries
|
|
@@ -160,8 +177,7 @@ export declare class Messaging extends Service {
|
|
|
160
177
|
/**
|
|
161
178
|
* List message targets
|
|
162
179
|
*
|
|
163
|
-
*
|
|
164
|
-
* attribute.
|
|
180
|
+
* Get a list of the targets associated with a message.
|
|
165
181
|
*
|
|
166
182
|
* @param {string} messageId
|
|
167
183
|
* @param {string[]} queries
|
|
@@ -172,6 +188,7 @@ export declare class Messaging extends Service {
|
|
|
172
188
|
/**
|
|
173
189
|
* List providers
|
|
174
190
|
*
|
|
191
|
+
* Get a list of all providers from the current Appwrite project.
|
|
175
192
|
*
|
|
176
193
|
* @param {string[]} queries
|
|
177
194
|
* @param {string} search
|
|
@@ -182,6 +199,7 @@ export declare class Messaging extends Service {
|
|
|
182
199
|
/**
|
|
183
200
|
* Create APNS provider
|
|
184
201
|
*
|
|
202
|
+
* Create a new Apple Push Notification service provider.
|
|
185
203
|
*
|
|
186
204
|
* @param {string} providerId
|
|
187
205
|
* @param {string} name
|
|
@@ -189,14 +207,16 @@ export declare class Messaging extends Service {
|
|
|
189
207
|
* @param {string} authKeyId
|
|
190
208
|
* @param {string} teamId
|
|
191
209
|
* @param {string} bundleId
|
|
210
|
+
* @param {boolean} sandbox
|
|
192
211
|
* @param {boolean} enabled
|
|
193
212
|
* @throws {AppwriteException}
|
|
194
213
|
* @returns {Promise}
|
|
195
214
|
*/
|
|
196
|
-
|
|
215
|
+
createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider>;
|
|
197
216
|
/**
|
|
198
217
|
* Update APNS provider
|
|
199
218
|
*
|
|
219
|
+
* Update a Apple Push Notification service provider by its unique ID.
|
|
200
220
|
*
|
|
201
221
|
* @param {string} providerId
|
|
202
222
|
* @param {string} name
|
|
@@ -205,13 +225,15 @@ export declare class Messaging extends Service {
|
|
|
205
225
|
* @param {string} authKeyId
|
|
206
226
|
* @param {string} teamId
|
|
207
227
|
* @param {string} bundleId
|
|
228
|
+
* @param {boolean} sandbox
|
|
208
229
|
* @throws {AppwriteException}
|
|
209
230
|
* @returns {Promise}
|
|
210
231
|
*/
|
|
211
|
-
|
|
232
|
+
updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider>;
|
|
212
233
|
/**
|
|
213
234
|
* Create FCM provider
|
|
214
235
|
*
|
|
236
|
+
* Create a new Firebase Cloud Messaging provider.
|
|
215
237
|
*
|
|
216
238
|
* @param {string} providerId
|
|
217
239
|
* @param {string} name
|
|
@@ -220,10 +242,11 @@ export declare class Messaging extends Service {
|
|
|
220
242
|
* @throws {AppwriteException}
|
|
221
243
|
* @returns {Promise}
|
|
222
244
|
*/
|
|
223
|
-
|
|
245
|
+
createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider>;
|
|
224
246
|
/**
|
|
225
247
|
* Update FCM provider
|
|
226
248
|
*
|
|
249
|
+
* Update a Firebase Cloud Messaging provider by its unique ID.
|
|
227
250
|
*
|
|
228
251
|
* @param {string} providerId
|
|
229
252
|
* @param {string} name
|
|
@@ -232,10 +255,11 @@ export declare class Messaging extends Service {
|
|
|
232
255
|
* @throws {AppwriteException}
|
|
233
256
|
* @returns {Promise}
|
|
234
257
|
*/
|
|
235
|
-
|
|
258
|
+
updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider>;
|
|
236
259
|
/**
|
|
237
260
|
* Create Mailgun provider
|
|
238
261
|
*
|
|
262
|
+
* Create a new Mailgun provider.
|
|
239
263
|
*
|
|
240
264
|
* @param {string} providerId
|
|
241
265
|
* @param {string} name
|
|
@@ -254,6 +278,7 @@ export declare class Messaging extends Service {
|
|
|
254
278
|
/**
|
|
255
279
|
* Update Mailgun provider
|
|
256
280
|
*
|
|
281
|
+
* Update a Mailgun provider by its unique ID.
|
|
257
282
|
*
|
|
258
283
|
* @param {string} providerId
|
|
259
284
|
* @param {string} name
|
|
@@ -272,6 +297,7 @@ export declare class Messaging extends Service {
|
|
|
272
297
|
/**
|
|
273
298
|
* Create Msg91 provider
|
|
274
299
|
*
|
|
300
|
+
* Create a new MSG91 provider.
|
|
275
301
|
*
|
|
276
302
|
* @param {string} providerId
|
|
277
303
|
* @param {string} name
|
|
@@ -286,6 +312,7 @@ export declare class Messaging extends Service {
|
|
|
286
312
|
/**
|
|
287
313
|
* Update Msg91 provider
|
|
288
314
|
*
|
|
315
|
+
* Update a MSG91 provider by its unique ID.
|
|
289
316
|
*
|
|
290
317
|
* @param {string} providerId
|
|
291
318
|
* @param {string} name
|
|
@@ -300,6 +327,7 @@ export declare class Messaging extends Service {
|
|
|
300
327
|
/**
|
|
301
328
|
* Create Sendgrid provider
|
|
302
329
|
*
|
|
330
|
+
* Create a new Sendgrid provider.
|
|
303
331
|
*
|
|
304
332
|
* @param {string} providerId
|
|
305
333
|
* @param {string} name
|
|
@@ -316,6 +344,7 @@ export declare class Messaging extends Service {
|
|
|
316
344
|
/**
|
|
317
345
|
* Update Sendgrid provider
|
|
318
346
|
*
|
|
347
|
+
* Update a Sendgrid provider by its unique ID.
|
|
319
348
|
*
|
|
320
349
|
* @param {string} providerId
|
|
321
350
|
* @param {string} name
|
|
@@ -332,6 +361,7 @@ export declare class Messaging extends Service {
|
|
|
332
361
|
/**
|
|
333
362
|
* Create SMTP provider
|
|
334
363
|
*
|
|
364
|
+
* Create a new SMTP provider.
|
|
335
365
|
*
|
|
336
366
|
* @param {string} providerId
|
|
337
367
|
* @param {string} name
|
|
@@ -339,7 +369,7 @@ export declare class Messaging extends Service {
|
|
|
339
369
|
* @param {number} port
|
|
340
370
|
* @param {string} username
|
|
341
371
|
* @param {string} password
|
|
342
|
-
* @param {
|
|
372
|
+
* @param {SmtpEncryption} encryption
|
|
343
373
|
* @param {boolean} autoTLS
|
|
344
374
|
* @param {string} mailer
|
|
345
375
|
* @param {string} fromName
|
|
@@ -350,10 +380,11 @@ export declare class Messaging extends Service {
|
|
|
350
380
|
* @throws {AppwriteException}
|
|
351
381
|
* @returns {Promise}
|
|
352
382
|
*/
|
|
353
|
-
|
|
383
|
+
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
384
|
/**
|
|
355
385
|
* Update SMTP provider
|
|
356
386
|
*
|
|
387
|
+
* Update a SMTP provider by its unique ID.
|
|
357
388
|
*
|
|
358
389
|
* @param {string} providerId
|
|
359
390
|
* @param {string} name
|
|
@@ -361,8 +392,9 @@ export declare class Messaging extends Service {
|
|
|
361
392
|
* @param {number} port
|
|
362
393
|
* @param {string} username
|
|
363
394
|
* @param {string} password
|
|
364
|
-
* @param {
|
|
395
|
+
* @param {SmtpEncryption} encryption
|
|
365
396
|
* @param {boolean} autoTLS
|
|
397
|
+
* @param {string} mailer
|
|
366
398
|
* @param {string} fromName
|
|
367
399
|
* @param {string} fromEmail
|
|
368
400
|
* @param {string} replyToName
|
|
@@ -371,38 +403,41 @@ export declare class Messaging extends Service {
|
|
|
371
403
|
* @throws {AppwriteException}
|
|
372
404
|
* @returns {Promise}
|
|
373
405
|
*/
|
|
374
|
-
|
|
406
|
+
updateSmtpProvider(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>;
|
|
375
407
|
/**
|
|
376
408
|
* Create Telesign provider
|
|
377
409
|
*
|
|
410
|
+
* Create a new Telesign provider.
|
|
378
411
|
*
|
|
379
412
|
* @param {string} providerId
|
|
380
413
|
* @param {string} name
|
|
381
414
|
* @param {string} from
|
|
382
|
-
* @param {string}
|
|
383
|
-
* @param {string}
|
|
415
|
+
* @param {string} customerId
|
|
416
|
+
* @param {string} apiKey
|
|
384
417
|
* @param {boolean} enabled
|
|
385
418
|
* @throws {AppwriteException}
|
|
386
419
|
* @returns {Promise}
|
|
387
420
|
*/
|
|
388
|
-
createTelesignProvider(providerId: string, name: string, from?: string,
|
|
421
|
+
createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
389
422
|
/**
|
|
390
423
|
* Update Telesign provider
|
|
391
424
|
*
|
|
425
|
+
* Update a Telesign provider by its unique ID.
|
|
392
426
|
*
|
|
393
427
|
* @param {string} providerId
|
|
394
428
|
* @param {string} name
|
|
395
429
|
* @param {boolean} enabled
|
|
396
|
-
* @param {string}
|
|
397
|
-
* @param {string}
|
|
430
|
+
* @param {string} customerId
|
|
431
|
+
* @param {string} apiKey
|
|
398
432
|
* @param {string} from
|
|
399
433
|
* @throws {AppwriteException}
|
|
400
434
|
* @returns {Promise}
|
|
401
435
|
*/
|
|
402
|
-
updateTelesignProvider(providerId: string, name?: string, enabled?: boolean,
|
|
436
|
+
updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider>;
|
|
403
437
|
/**
|
|
404
438
|
* Create Textmagic provider
|
|
405
439
|
*
|
|
440
|
+
* Create a new Textmagic provider.
|
|
406
441
|
*
|
|
407
442
|
* @param {string} providerId
|
|
408
443
|
* @param {string} name
|
|
@@ -417,6 +452,7 @@ export declare class Messaging extends Service {
|
|
|
417
452
|
/**
|
|
418
453
|
* Update Textmagic provider
|
|
419
454
|
*
|
|
455
|
+
* Update a Textmagic provider by its unique ID.
|
|
420
456
|
*
|
|
421
457
|
* @param {string} providerId
|
|
422
458
|
* @param {string} name
|
|
@@ -431,6 +467,7 @@ export declare class Messaging extends Service {
|
|
|
431
467
|
/**
|
|
432
468
|
* Create Twilio provider
|
|
433
469
|
*
|
|
470
|
+
* Create a new Twilio provider.
|
|
434
471
|
*
|
|
435
472
|
* @param {string} providerId
|
|
436
473
|
* @param {string} name
|
|
@@ -445,6 +482,7 @@ export declare class Messaging extends Service {
|
|
|
445
482
|
/**
|
|
446
483
|
* Update Twilio provider
|
|
447
484
|
*
|
|
485
|
+
* Update a Twilio provider by its unique ID.
|
|
448
486
|
*
|
|
449
487
|
* @param {string} providerId
|
|
450
488
|
* @param {string} name
|
|
@@ -459,6 +497,7 @@ export declare class Messaging extends Service {
|
|
|
459
497
|
/**
|
|
460
498
|
* Create Vonage provider
|
|
461
499
|
*
|
|
500
|
+
* Create a new Vonage provider.
|
|
462
501
|
*
|
|
463
502
|
* @param {string} providerId
|
|
464
503
|
* @param {string} name
|
|
@@ -473,6 +512,7 @@ export declare class Messaging extends Service {
|
|
|
473
512
|
/**
|
|
474
513
|
* Update Vonage provider
|
|
475
514
|
*
|
|
515
|
+
* Update a Vonage provider by its unique ID.
|
|
476
516
|
*
|
|
477
517
|
* @param {string} providerId
|
|
478
518
|
* @param {string} name
|
|
@@ -487,6 +527,8 @@ export declare class Messaging extends Service {
|
|
|
487
527
|
/**
|
|
488
528
|
* Get provider
|
|
489
529
|
*
|
|
530
|
+
* Get a provider by its unique ID.
|
|
531
|
+
*
|
|
490
532
|
*
|
|
491
533
|
* @param {string} providerId
|
|
492
534
|
* @throws {AppwriteException}
|
|
@@ -496,6 +538,7 @@ export declare class Messaging extends Service {
|
|
|
496
538
|
/**
|
|
497
539
|
* Delete provider
|
|
498
540
|
*
|
|
541
|
+
* Delete a provider by its unique ID.
|
|
499
542
|
*
|
|
500
543
|
* @param {string} providerId
|
|
501
544
|
* @throws {AppwriteException}
|
|
@@ -505,6 +548,7 @@ export declare class Messaging extends Service {
|
|
|
505
548
|
/**
|
|
506
549
|
* List provider logs
|
|
507
550
|
*
|
|
551
|
+
* Get the provider activity logs listed by its unique ID.
|
|
508
552
|
*
|
|
509
553
|
* @param {string} providerId
|
|
510
554
|
* @param {string[]} queries
|
|
@@ -515,6 +559,7 @@ export declare class Messaging extends Service {
|
|
|
515
559
|
/**
|
|
516
560
|
* List subscriber logs
|
|
517
561
|
*
|
|
562
|
+
* Get the subscriber activity logs listed by its unique ID.
|
|
518
563
|
*
|
|
519
564
|
* @param {string} subscriberId
|
|
520
565
|
* @param {string[]} queries
|
|
@@ -523,8 +568,9 @@ export declare class Messaging extends Service {
|
|
|
523
568
|
*/
|
|
524
569
|
listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList>;
|
|
525
570
|
/**
|
|
526
|
-
* List topics
|
|
571
|
+
* List topics
|
|
527
572
|
*
|
|
573
|
+
* Get a list of all topics from the current Appwrite project.
|
|
528
574
|
*
|
|
529
575
|
* @param {string[]} queries
|
|
530
576
|
* @param {string} search
|
|
@@ -533,17 +579,21 @@ export declare class Messaging extends Service {
|
|
|
533
579
|
*/
|
|
534
580
|
listTopics(queries?: string[], search?: string): Promise<Models.TopicList>;
|
|
535
581
|
/**
|
|
536
|
-
* Create
|
|
582
|
+
* Create topic
|
|
537
583
|
*
|
|
584
|
+
* Create a new topic.
|
|
538
585
|
*
|
|
539
586
|
* @param {string} topicId
|
|
540
587
|
* @param {string} name
|
|
588
|
+
* @param {string[]} subscribe
|
|
541
589
|
* @throws {AppwriteException}
|
|
542
590
|
* @returns {Promise}
|
|
543
591
|
*/
|
|
544
|
-
createTopic(topicId: string, name: string): Promise<Models.Topic>;
|
|
592
|
+
createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic>;
|
|
545
593
|
/**
|
|
546
|
-
* Get
|
|
594
|
+
* Get topic
|
|
595
|
+
*
|
|
596
|
+
* Get a topic by its unique ID.
|
|
547
597
|
*
|
|
548
598
|
*
|
|
549
599
|
* @param {string} topicId
|
|
@@ -552,18 +602,22 @@ export declare class Messaging extends Service {
|
|
|
552
602
|
*/
|
|
553
603
|
getTopic(topicId: string): Promise<Models.Topic>;
|
|
554
604
|
/**
|
|
555
|
-
* Update
|
|
605
|
+
* Update topic
|
|
606
|
+
*
|
|
607
|
+
* Update a topic by its unique ID.
|
|
556
608
|
*
|
|
557
609
|
*
|
|
558
610
|
* @param {string} topicId
|
|
559
611
|
* @param {string} name
|
|
612
|
+
* @param {string[]} subscribe
|
|
560
613
|
* @throws {AppwriteException}
|
|
561
614
|
* @returns {Promise}
|
|
562
615
|
*/
|
|
563
|
-
updateTopic(topicId: string, name?: string): Promise<Models.Topic>;
|
|
616
|
+
updateTopic(topicId: string, name?: string, subscribe?: string[]): Promise<Models.Topic>;
|
|
564
617
|
/**
|
|
565
|
-
* Delete
|
|
618
|
+
* Delete topic
|
|
566
619
|
*
|
|
620
|
+
* Delete a topic by its unique ID.
|
|
567
621
|
*
|
|
568
622
|
* @param {string} topicId
|
|
569
623
|
* @throws {AppwriteException}
|
|
@@ -573,6 +627,7 @@ export declare class Messaging extends Service {
|
|
|
573
627
|
/**
|
|
574
628
|
* List topic logs
|
|
575
629
|
*
|
|
630
|
+
* Get the topic activity logs listed by its unique ID.
|
|
576
631
|
*
|
|
577
632
|
* @param {string} topicId
|
|
578
633
|
* @param {string[]} queries
|
|
@@ -581,8 +636,9 @@ export declare class Messaging extends Service {
|
|
|
581
636
|
*/
|
|
582
637
|
listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList>;
|
|
583
638
|
/**
|
|
584
|
-
* List subscribers
|
|
639
|
+
* List subscribers
|
|
585
640
|
*
|
|
641
|
+
* Get a list of all subscribers from the current Appwrite project.
|
|
586
642
|
*
|
|
587
643
|
* @param {string} topicId
|
|
588
644
|
* @param {string[]} queries
|
|
@@ -592,8 +648,9 @@ export declare class Messaging extends Service {
|
|
|
592
648
|
*/
|
|
593
649
|
listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList>;
|
|
594
650
|
/**
|
|
595
|
-
* Create
|
|
651
|
+
* Create subscriber
|
|
596
652
|
*
|
|
653
|
+
* Create a new subscriber.
|
|
597
654
|
*
|
|
598
655
|
* @param {string} topicId
|
|
599
656
|
* @param {string} subscriberId
|
|
@@ -603,7 +660,9 @@ export declare class Messaging extends Service {
|
|
|
603
660
|
*/
|
|
604
661
|
createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber>;
|
|
605
662
|
/**
|
|
606
|
-
* Get
|
|
663
|
+
* Get subscriber
|
|
664
|
+
*
|
|
665
|
+
* Get a subscriber by its unique ID.
|
|
607
666
|
*
|
|
608
667
|
*
|
|
609
668
|
* @param {string} topicId
|
|
@@ -613,8 +672,9 @@ export declare class Messaging extends Service {
|
|
|
613
672
|
*/
|
|
614
673
|
getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber>;
|
|
615
674
|
/**
|
|
616
|
-
* Delete
|
|
675
|
+
* Delete subscriber
|
|
617
676
|
*
|
|
677
|
+
* Delete a subscriber by its unique ID.
|
|
618
678
|
*
|
|
619
679
|
* @param {string} topicId
|
|
620
680
|
* @param {string} subscriberId
|