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