@appwrite.io/console 0.6.4 → 0.7.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/cjs/sdk.js +2513 -2350
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2513 -2350
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2513 -2350
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +2 -3
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +1 -1
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +1 -1
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/functions/create-build.md +2 -2
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-execution.md +3 -2
- package/docs/examples/functions/create-variable.md +1 -1
- package/docs/examples/functions/create.md +3 -3
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +14 -0
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/{download-deployment.md → get-deployment-download.md} +1 -1
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-function-usage.md +1 -1
- package/docs/examples/functions/{get-specifications.md → get-template.md} +4 -2
- package/docs/examples/functions/get-usage.md +1 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +1 -1
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-templates.md +16 -0
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-build.md +14 -0
- package/docs/examples/functions/update-deployment.md +1 -1
- package/docs/examples/functions/update-variable.md +1 -1
- package/docs/examples/functions/update.md +3 -3
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-usage-dump.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-queue.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete-firebase-auth.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report-o-auth.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list-firebase-projects.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/project/create-variable.md +1 -1
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +1 -1
- package/docs/examples/projects/create-j-w-t.md +15 -0
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +1 -1
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +14 -0
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +14 -0
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-rule.md +1 -1
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +15 -0
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +1 -1
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +1 -1
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +15 -0
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +1 -1
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +124 -66
- package/src/enums/email-template-type.ts +2 -0
- package/src/enums/platform-type.ts +2 -0
- package/src/enums/runtime.ts +1 -0
- package/src/index.ts +1 -1
- package/src/models.ts +230 -28
- package/src/services/account.ts +651 -644
- package/src/services/assistant.ts +19 -16
- package/src/services/avatars.ts +111 -152
- package/src/services/console.ts +19 -14
- package/src/services/databases.ts +628 -638
- package/src/services/functions.ts +435 -339
- package/src/services/graphql.ts +31 -24
- package/src/services/health.ts +299 -199
- package/src/services/locale.ts +113 -77
- package/src/services/messaging.ts +568 -583
- package/src/services/migrations.ts +199 -197
- package/src/services/project.ts +82 -65
- package/src/services/projects.ts +615 -459
- package/src/services/proxy.ts +68 -50
- package/src/services/storage.ts +198 -253
- package/src/services/teams.ts +198 -188
- package/src/services/users.ts +568 -478
- package/src/services/vcs.ts +149 -83
- package/types/client.d.ts +13 -17
- package/types/enums/email-template-type.d.ts +3 -1
- package/types/enums/platform-type.d.ts +3 -1
- package/types/enums/runtime.d.ts +2 -1
- package/types/index.d.ts +1 -1
- package/types/models.d.ts +230 -28
- package/types/services/account.d.ts +162 -317
- package/types/services/assistant.d.ts +4 -4
- package/types/services/avatars.d.ts +50 -84
- package/types/services/console.d.ts +4 -4
- package/types/services/databases.d.ts +143 -173
- package/types/services/functions.d.ts +112 -97
- package/types/services/graphql.d.ts +6 -6
- package/types/services/health.d.ts +64 -85
- package/types/services/locale.d.ts +28 -39
- package/types/services/messaging.d.ts +103 -104
- package/types/services/migrations.d.ts +34 -34
- package/types/services/project.d.ts +17 -20
- package/types/services/projects.d.ts +118 -87
- package/types/services/proxy.d.ts +13 -14
- package/types/services/storage.d.ts +53 -78
- package/types/services/teams.d.ts +53 -83
- package/types/services/users.d.ts +120 -157
- package/types/services/vcs.d.ts +31 -20
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Service } from '../service';
|
|
2
1
|
import { Client } from '../client';
|
|
3
2
|
import type { Models } from '../models';
|
|
4
3
|
import { SmtpEncryption } from '../enums/smtp-encryption';
|
|
5
|
-
export declare class Messaging
|
|
4
|
+
export declare class Messaging {
|
|
5
|
+
client: Client;
|
|
6
6
|
constructor(client: Client);
|
|
7
7
|
/**
|
|
8
8
|
* List messages
|
|
@@ -12,8 +12,8 @@ export declare class Messaging extends Service {
|
|
|
12
12
|
* @param {string[]} queries
|
|
13
13
|
* @param {string} search
|
|
14
14
|
* @throws {AppwriteException}
|
|
15
|
-
* @returns {Promise}
|
|
16
|
-
|
|
15
|
+
* @returns {Promise<Models.MessageList>}
|
|
16
|
+
*/
|
|
17
17
|
listMessages(queries?: string[], search?: string): Promise<Models.MessageList>;
|
|
18
18
|
/**
|
|
19
19
|
* Create email
|
|
@@ -33,14 +33,14 @@ export declare class Messaging extends Service {
|
|
|
33
33
|
* @param {boolean} html
|
|
34
34
|
* @param {string} scheduledAt
|
|
35
35
|
* @throws {AppwriteException}
|
|
36
|
-
* @returns {Promise}
|
|
37
|
-
|
|
36
|
+
* @returns {Promise<Models.Message>}
|
|
37
|
+
*/
|
|
38
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>;
|
|
39
39
|
/**
|
|
40
40
|
* Update email
|
|
41
41
|
*
|
|
42
42
|
* Update an email message by its unique ID.
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
*
|
|
45
45
|
* @param {string} messageId
|
|
46
46
|
* @param {string[]} topics
|
|
@@ -55,8 +55,8 @@ export declare class Messaging extends Service {
|
|
|
55
55
|
* @param {string} scheduledAt
|
|
56
56
|
* @param {string[]} attachments
|
|
57
57
|
* @throws {AppwriteException}
|
|
58
|
-
* @returns {Promise}
|
|
59
|
-
|
|
58
|
+
* @returns {Promise<Models.Message>}
|
|
59
|
+
*/
|
|
60
60
|
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string, attachments?: string[]): Promise<Models.Message>;
|
|
61
61
|
/**
|
|
62
62
|
* Create push notification
|
|
@@ -80,14 +80,14 @@ export declare class Messaging extends Service {
|
|
|
80
80
|
* @param {boolean} draft
|
|
81
81
|
* @param {string} scheduledAt
|
|
82
82
|
* @throws {AppwriteException}
|
|
83
|
-
* @returns {Promise}
|
|
84
|
-
|
|
83
|
+
* @returns {Promise<Models.Message>}
|
|
84
|
+
*/
|
|
85
85
|
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>;
|
|
86
86
|
/**
|
|
87
87
|
* Update push notification
|
|
88
88
|
*
|
|
89
89
|
* Update a push notification by its unique ID.
|
|
90
|
-
|
|
90
|
+
|
|
91
91
|
*
|
|
92
92
|
* @param {string} messageId
|
|
93
93
|
* @param {string[]} topics
|
|
@@ -106,8 +106,8 @@ export declare class Messaging extends Service {
|
|
|
106
106
|
* @param {boolean} draft
|
|
107
107
|
* @param {string} scheduledAt
|
|
108
108
|
* @throws {AppwriteException}
|
|
109
|
-
* @returns {Promise}
|
|
110
|
-
|
|
109
|
+
* @returns {Promise<Models.Message>}
|
|
110
|
+
*/
|
|
111
111
|
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>;
|
|
112
112
|
/**
|
|
113
113
|
* Create SMS
|
|
@@ -122,14 +122,14 @@ export declare class Messaging extends Service {
|
|
|
122
122
|
* @param {boolean} draft
|
|
123
123
|
* @param {string} scheduledAt
|
|
124
124
|
* @throws {AppwriteException}
|
|
125
|
-
* @returns {Promise}
|
|
126
|
-
|
|
125
|
+
* @returns {Promise<Models.Message>}
|
|
126
|
+
*/
|
|
127
127
|
createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
128
128
|
/**
|
|
129
129
|
* Update SMS
|
|
130
130
|
*
|
|
131
131
|
* Update an email message by its unique ID.
|
|
132
|
-
|
|
132
|
+
|
|
133
133
|
*
|
|
134
134
|
* @param {string} messageId
|
|
135
135
|
* @param {string[]} topics
|
|
@@ -139,30 +139,29 @@ export declare class Messaging extends Service {
|
|
|
139
139
|
* @param {boolean} draft
|
|
140
140
|
* @param {string} scheduledAt
|
|
141
141
|
* @throws {AppwriteException}
|
|
142
|
-
* @returns {Promise}
|
|
143
|
-
|
|
142
|
+
* @returns {Promise<Models.Message>}
|
|
143
|
+
*/
|
|
144
144
|
updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
145
145
|
/**
|
|
146
146
|
* Get message
|
|
147
147
|
*
|
|
148
148
|
* Get a message by its unique ID.
|
|
149
|
-
|
|
149
|
+
|
|
150
150
|
*
|
|
151
151
|
* @param {string} messageId
|
|
152
152
|
* @throws {AppwriteException}
|
|
153
|
-
* @returns {Promise}
|
|
154
|
-
|
|
153
|
+
* @returns {Promise<Models.Message>}
|
|
154
|
+
*/
|
|
155
155
|
getMessage(messageId: string): Promise<Models.Message>;
|
|
156
156
|
/**
|
|
157
157
|
* Delete message
|
|
158
158
|
*
|
|
159
|
-
* Delete a message. If the message is not a draft or scheduled, but has been
|
|
160
|
-
* sent, this will not recall the message.
|
|
159
|
+
* Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
|
|
161
160
|
*
|
|
162
161
|
* @param {string} messageId
|
|
163
162
|
* @throws {AppwriteException}
|
|
164
|
-
* @returns {Promise}
|
|
165
|
-
|
|
163
|
+
* @returns {Promise<{}>}
|
|
164
|
+
*/
|
|
166
165
|
delete(messageId: string): Promise<{}>;
|
|
167
166
|
/**
|
|
168
167
|
* List message logs
|
|
@@ -172,8 +171,8 @@ export declare class Messaging extends Service {
|
|
|
172
171
|
* @param {string} messageId
|
|
173
172
|
* @param {string[]} queries
|
|
174
173
|
* @throws {AppwriteException}
|
|
175
|
-
* @returns {Promise}
|
|
176
|
-
|
|
174
|
+
* @returns {Promise<Models.LogList>}
|
|
175
|
+
*/
|
|
177
176
|
listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList>;
|
|
178
177
|
/**
|
|
179
178
|
* List message targets
|
|
@@ -183,8 +182,8 @@ export declare class Messaging extends Service {
|
|
|
183
182
|
* @param {string} messageId
|
|
184
183
|
* @param {string[]} queries
|
|
185
184
|
* @throws {AppwriteException}
|
|
186
|
-
* @returns {Promise}
|
|
187
|
-
|
|
185
|
+
* @returns {Promise<Models.TargetList>}
|
|
186
|
+
*/
|
|
188
187
|
listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList>;
|
|
189
188
|
/**
|
|
190
189
|
* List providers
|
|
@@ -194,8 +193,8 @@ export declare class Messaging extends Service {
|
|
|
194
193
|
* @param {string[]} queries
|
|
195
194
|
* @param {string} search
|
|
196
195
|
* @throws {AppwriteException}
|
|
197
|
-
* @returns {Promise}
|
|
198
|
-
|
|
196
|
+
* @returns {Promise<Models.ProviderList>}
|
|
197
|
+
*/
|
|
199
198
|
listProviders(queries?: string[], search?: string): Promise<Models.ProviderList>;
|
|
200
199
|
/**
|
|
201
200
|
* Create APNS provider
|
|
@@ -211,8 +210,8 @@ export declare class Messaging extends Service {
|
|
|
211
210
|
* @param {boolean} sandbox
|
|
212
211
|
* @param {boolean} enabled
|
|
213
212
|
* @throws {AppwriteException}
|
|
214
|
-
* @returns {Promise}
|
|
215
|
-
|
|
213
|
+
* @returns {Promise<Models.Provider>}
|
|
214
|
+
*/
|
|
216
215
|
createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider>;
|
|
217
216
|
/**
|
|
218
217
|
* Update APNS provider
|
|
@@ -228,8 +227,8 @@ export declare class Messaging extends Service {
|
|
|
228
227
|
* @param {string} bundleId
|
|
229
228
|
* @param {boolean} sandbox
|
|
230
229
|
* @throws {AppwriteException}
|
|
231
|
-
* @returns {Promise}
|
|
232
|
-
|
|
230
|
+
* @returns {Promise<Models.Provider>}
|
|
231
|
+
*/
|
|
233
232
|
updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider>;
|
|
234
233
|
/**
|
|
235
234
|
* Create FCM provider
|
|
@@ -241,8 +240,8 @@ export declare class Messaging extends Service {
|
|
|
241
240
|
* @param {object} serviceAccountJSON
|
|
242
241
|
* @param {boolean} enabled
|
|
243
242
|
* @throws {AppwriteException}
|
|
244
|
-
* @returns {Promise}
|
|
245
|
-
|
|
243
|
+
* @returns {Promise<Models.Provider>}
|
|
244
|
+
*/
|
|
246
245
|
createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider>;
|
|
247
246
|
/**
|
|
248
247
|
* Update FCM provider
|
|
@@ -254,8 +253,8 @@ export declare class Messaging extends Service {
|
|
|
254
253
|
* @param {boolean} enabled
|
|
255
254
|
* @param {object} serviceAccountJSON
|
|
256
255
|
* @throws {AppwriteException}
|
|
257
|
-
* @returns {Promise}
|
|
258
|
-
|
|
256
|
+
* @returns {Promise<Models.Provider>}
|
|
257
|
+
*/
|
|
259
258
|
updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider>;
|
|
260
259
|
/**
|
|
261
260
|
* Create Mailgun provider
|
|
@@ -273,8 +272,8 @@ export declare class Messaging extends Service {
|
|
|
273
272
|
* @param {string} replyToEmail
|
|
274
273
|
* @param {boolean} enabled
|
|
275
274
|
* @throws {AppwriteException}
|
|
276
|
-
* @returns {Promise}
|
|
277
|
-
|
|
275
|
+
* @returns {Promise<Models.Provider>}
|
|
276
|
+
*/
|
|
278
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>;
|
|
279
278
|
/**
|
|
280
279
|
* Update Mailgun provider
|
|
@@ -292,8 +291,8 @@ export declare class Messaging extends Service {
|
|
|
292
291
|
* @param {string} replyToName
|
|
293
292
|
* @param {string} replyToEmail
|
|
294
293
|
* @throws {AppwriteException}
|
|
295
|
-
* @returns {Promise}
|
|
296
|
-
|
|
294
|
+
* @returns {Promise<Models.Provider>}
|
|
295
|
+
*/
|
|
297
296
|
updateMailgunProvider(providerId: string, name?: string, apiKey?: string, domain?: string, isEuRegion?: boolean, enabled?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
|
|
298
297
|
/**
|
|
299
298
|
* Create Msg91 provider
|
|
@@ -307,8 +306,8 @@ export declare class Messaging extends Service {
|
|
|
307
306
|
* @param {string} authKey
|
|
308
307
|
* @param {boolean} enabled
|
|
309
308
|
* @throws {AppwriteException}
|
|
310
|
-
* @returns {Promise}
|
|
311
|
-
|
|
309
|
+
* @returns {Promise<Models.Provider>}
|
|
310
|
+
*/
|
|
312
311
|
createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
313
312
|
/**
|
|
314
313
|
* Update Msg91 provider
|
|
@@ -322,8 +321,8 @@ export declare class Messaging extends Service {
|
|
|
322
321
|
* @param {string} senderId
|
|
323
322
|
* @param {string} authKey
|
|
324
323
|
* @throws {AppwriteException}
|
|
325
|
-
* @returns {Promise}
|
|
326
|
-
|
|
324
|
+
* @returns {Promise<Models.Provider>}
|
|
325
|
+
*/
|
|
327
326
|
updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider>;
|
|
328
327
|
/**
|
|
329
328
|
* Create Sendgrid provider
|
|
@@ -339,8 +338,8 @@ export declare class Messaging extends Service {
|
|
|
339
338
|
* @param {string} replyToEmail
|
|
340
339
|
* @param {boolean} enabled
|
|
341
340
|
* @throws {AppwriteException}
|
|
342
|
-
* @returns {Promise}
|
|
343
|
-
|
|
341
|
+
* @returns {Promise<Models.Provider>}
|
|
342
|
+
*/
|
|
344
343
|
createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
345
344
|
/**
|
|
346
345
|
* Update Sendgrid provider
|
|
@@ -356,8 +355,8 @@ export declare class Messaging extends Service {
|
|
|
356
355
|
* @param {string} replyToName
|
|
357
356
|
* @param {string} replyToEmail
|
|
358
357
|
* @throws {AppwriteException}
|
|
359
|
-
* @returns {Promise}
|
|
360
|
-
|
|
358
|
+
* @returns {Promise<Models.Provider>}
|
|
359
|
+
*/
|
|
361
360
|
updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
|
|
362
361
|
/**
|
|
363
362
|
* Create SMTP provider
|
|
@@ -379,8 +378,8 @@ export declare class Messaging extends Service {
|
|
|
379
378
|
* @param {string} replyToEmail
|
|
380
379
|
* @param {boolean} enabled
|
|
381
380
|
* @throws {AppwriteException}
|
|
382
|
-
* @returns {Promise}
|
|
383
|
-
|
|
381
|
+
* @returns {Promise<Models.Provider>}
|
|
382
|
+
*/
|
|
384
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>;
|
|
385
384
|
/**
|
|
386
385
|
* Update SMTP provider
|
|
@@ -402,8 +401,8 @@ export declare class Messaging extends Service {
|
|
|
402
401
|
* @param {string} replyToEmail
|
|
403
402
|
* @param {boolean} enabled
|
|
404
403
|
* @throws {AppwriteException}
|
|
405
|
-
* @returns {Promise}
|
|
406
|
-
|
|
404
|
+
* @returns {Promise<Models.Provider>}
|
|
405
|
+
*/
|
|
407
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>;
|
|
408
407
|
/**
|
|
409
408
|
* Create Telesign provider
|
|
@@ -417,8 +416,8 @@ export declare class Messaging extends Service {
|
|
|
417
416
|
* @param {string} apiKey
|
|
418
417
|
* @param {boolean} enabled
|
|
419
418
|
* @throws {AppwriteException}
|
|
420
|
-
* @returns {Promise}
|
|
421
|
-
|
|
419
|
+
* @returns {Promise<Models.Provider>}
|
|
420
|
+
*/
|
|
422
421
|
createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
423
422
|
/**
|
|
424
423
|
* Update Telesign provider
|
|
@@ -432,8 +431,8 @@ export declare class Messaging extends Service {
|
|
|
432
431
|
* @param {string} apiKey
|
|
433
432
|
* @param {string} from
|
|
434
433
|
* @throws {AppwriteException}
|
|
435
|
-
* @returns {Promise}
|
|
436
|
-
|
|
434
|
+
* @returns {Promise<Models.Provider>}
|
|
435
|
+
*/
|
|
437
436
|
updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider>;
|
|
438
437
|
/**
|
|
439
438
|
* Create Textmagic provider
|
|
@@ -447,8 +446,8 @@ export declare class Messaging extends Service {
|
|
|
447
446
|
* @param {string} apiKey
|
|
448
447
|
* @param {boolean} enabled
|
|
449
448
|
* @throws {AppwriteException}
|
|
450
|
-
* @returns {Promise}
|
|
451
|
-
|
|
449
|
+
* @returns {Promise<Models.Provider>}
|
|
450
|
+
*/
|
|
452
451
|
createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
453
452
|
/**
|
|
454
453
|
* Update Textmagic provider
|
|
@@ -462,8 +461,8 @@ export declare class Messaging extends Service {
|
|
|
462
461
|
* @param {string} apiKey
|
|
463
462
|
* @param {string} from
|
|
464
463
|
* @throws {AppwriteException}
|
|
465
|
-
* @returns {Promise}
|
|
466
|
-
|
|
464
|
+
* @returns {Promise<Models.Provider>}
|
|
465
|
+
*/
|
|
467
466
|
updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider>;
|
|
468
467
|
/**
|
|
469
468
|
* Create Twilio provider
|
|
@@ -477,8 +476,8 @@ export declare class Messaging extends Service {
|
|
|
477
476
|
* @param {string} authToken
|
|
478
477
|
* @param {boolean} enabled
|
|
479
478
|
* @throws {AppwriteException}
|
|
480
|
-
* @returns {Promise}
|
|
481
|
-
|
|
479
|
+
* @returns {Promise<Models.Provider>}
|
|
480
|
+
*/
|
|
482
481
|
createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
483
482
|
/**
|
|
484
483
|
* Update Twilio provider
|
|
@@ -492,8 +491,8 @@ export declare class Messaging extends Service {
|
|
|
492
491
|
* @param {string} authToken
|
|
493
492
|
* @param {string} from
|
|
494
493
|
* @throws {AppwriteException}
|
|
495
|
-
* @returns {Promise}
|
|
496
|
-
|
|
494
|
+
* @returns {Promise<Models.Provider>}
|
|
495
|
+
*/
|
|
497
496
|
updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider>;
|
|
498
497
|
/**
|
|
499
498
|
* Create Vonage provider
|
|
@@ -507,8 +506,8 @@ export declare class Messaging extends Service {
|
|
|
507
506
|
* @param {string} apiSecret
|
|
508
507
|
* @param {boolean} enabled
|
|
509
508
|
* @throws {AppwriteException}
|
|
510
|
-
* @returns {Promise}
|
|
511
|
-
|
|
509
|
+
* @returns {Promise<Models.Provider>}
|
|
510
|
+
*/
|
|
512
511
|
createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider>;
|
|
513
512
|
/**
|
|
514
513
|
* Update Vonage provider
|
|
@@ -522,19 +521,19 @@ export declare class Messaging extends Service {
|
|
|
522
521
|
* @param {string} apiSecret
|
|
523
522
|
* @param {string} from
|
|
524
523
|
* @throws {AppwriteException}
|
|
525
|
-
* @returns {Promise}
|
|
526
|
-
|
|
524
|
+
* @returns {Promise<Models.Provider>}
|
|
525
|
+
*/
|
|
527
526
|
updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider>;
|
|
528
527
|
/**
|
|
529
528
|
* Get provider
|
|
530
529
|
*
|
|
531
530
|
* Get a provider by its unique ID.
|
|
532
|
-
|
|
531
|
+
|
|
533
532
|
*
|
|
534
533
|
* @param {string} providerId
|
|
535
534
|
* @throws {AppwriteException}
|
|
536
|
-
* @returns {Promise}
|
|
537
|
-
|
|
535
|
+
* @returns {Promise<Models.Provider>}
|
|
536
|
+
*/
|
|
538
537
|
getProvider(providerId: string): Promise<Models.Provider>;
|
|
539
538
|
/**
|
|
540
539
|
* Delete provider
|
|
@@ -543,8 +542,8 @@ export declare class Messaging extends Service {
|
|
|
543
542
|
*
|
|
544
543
|
* @param {string} providerId
|
|
545
544
|
* @throws {AppwriteException}
|
|
546
|
-
* @returns {Promise}
|
|
547
|
-
|
|
545
|
+
* @returns {Promise<{}>}
|
|
546
|
+
*/
|
|
548
547
|
deleteProvider(providerId: string): Promise<{}>;
|
|
549
548
|
/**
|
|
550
549
|
* List provider logs
|
|
@@ -554,8 +553,8 @@ export declare class Messaging extends Service {
|
|
|
554
553
|
* @param {string} providerId
|
|
555
554
|
* @param {string[]} queries
|
|
556
555
|
* @throws {AppwriteException}
|
|
557
|
-
* @returns {Promise}
|
|
558
|
-
|
|
556
|
+
* @returns {Promise<Models.LogList>}
|
|
557
|
+
*/
|
|
559
558
|
listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList>;
|
|
560
559
|
/**
|
|
561
560
|
* List subscriber logs
|
|
@@ -565,8 +564,8 @@ export declare class Messaging extends Service {
|
|
|
565
564
|
* @param {string} subscriberId
|
|
566
565
|
* @param {string[]} queries
|
|
567
566
|
* @throws {AppwriteException}
|
|
568
|
-
* @returns {Promise}
|
|
569
|
-
|
|
567
|
+
* @returns {Promise<Models.LogList>}
|
|
568
|
+
*/
|
|
570
569
|
listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList>;
|
|
571
570
|
/**
|
|
572
571
|
* List topics
|
|
@@ -576,8 +575,8 @@ export declare class Messaging extends Service {
|
|
|
576
575
|
* @param {string[]} queries
|
|
577
576
|
* @param {string} search
|
|
578
577
|
* @throws {AppwriteException}
|
|
579
|
-
* @returns {Promise}
|
|
580
|
-
|
|
578
|
+
* @returns {Promise<Models.TopicList>}
|
|
579
|
+
*/
|
|
581
580
|
listTopics(queries?: string[], search?: string): Promise<Models.TopicList>;
|
|
582
581
|
/**
|
|
583
582
|
* Create topic
|
|
@@ -588,32 +587,32 @@ export declare class Messaging extends Service {
|
|
|
588
587
|
* @param {string} name
|
|
589
588
|
* @param {string[]} subscribe
|
|
590
589
|
* @throws {AppwriteException}
|
|
591
|
-
* @returns {Promise}
|
|
592
|
-
|
|
590
|
+
* @returns {Promise<Models.Topic>}
|
|
591
|
+
*/
|
|
593
592
|
createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic>;
|
|
594
593
|
/**
|
|
595
594
|
* Get topic
|
|
596
595
|
*
|
|
597
596
|
* Get a topic by its unique ID.
|
|
598
|
-
|
|
597
|
+
|
|
599
598
|
*
|
|
600
599
|
* @param {string} topicId
|
|
601
600
|
* @throws {AppwriteException}
|
|
602
|
-
* @returns {Promise}
|
|
603
|
-
|
|
601
|
+
* @returns {Promise<Models.Topic>}
|
|
602
|
+
*/
|
|
604
603
|
getTopic(topicId: string): Promise<Models.Topic>;
|
|
605
604
|
/**
|
|
606
605
|
* Update topic
|
|
607
606
|
*
|
|
608
607
|
* Update a topic by its unique ID.
|
|
609
|
-
|
|
608
|
+
|
|
610
609
|
*
|
|
611
610
|
* @param {string} topicId
|
|
612
611
|
* @param {string} name
|
|
613
612
|
* @param {string[]} subscribe
|
|
614
613
|
* @throws {AppwriteException}
|
|
615
|
-
* @returns {Promise}
|
|
616
|
-
|
|
614
|
+
* @returns {Promise<Models.Topic>}
|
|
615
|
+
*/
|
|
617
616
|
updateTopic(topicId: string, name?: string, subscribe?: string[]): Promise<Models.Topic>;
|
|
618
617
|
/**
|
|
619
618
|
* Delete topic
|
|
@@ -622,8 +621,8 @@ export declare class Messaging extends Service {
|
|
|
622
621
|
*
|
|
623
622
|
* @param {string} topicId
|
|
624
623
|
* @throws {AppwriteException}
|
|
625
|
-
* @returns {Promise}
|
|
626
|
-
|
|
624
|
+
* @returns {Promise<{}>}
|
|
625
|
+
*/
|
|
627
626
|
deleteTopic(topicId: string): Promise<{}>;
|
|
628
627
|
/**
|
|
629
628
|
* List topic logs
|
|
@@ -633,8 +632,8 @@ export declare class Messaging extends Service {
|
|
|
633
632
|
* @param {string} topicId
|
|
634
633
|
* @param {string[]} queries
|
|
635
634
|
* @throws {AppwriteException}
|
|
636
|
-
* @returns {Promise}
|
|
637
|
-
|
|
635
|
+
* @returns {Promise<Models.LogList>}
|
|
636
|
+
*/
|
|
638
637
|
listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList>;
|
|
639
638
|
/**
|
|
640
639
|
* List subscribers
|
|
@@ -645,8 +644,8 @@ export declare class Messaging extends Service {
|
|
|
645
644
|
* @param {string[]} queries
|
|
646
645
|
* @param {string} search
|
|
647
646
|
* @throws {AppwriteException}
|
|
648
|
-
* @returns {Promise}
|
|
649
|
-
|
|
647
|
+
* @returns {Promise<Models.SubscriberList>}
|
|
648
|
+
*/
|
|
650
649
|
listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList>;
|
|
651
650
|
/**
|
|
652
651
|
* Create subscriber
|
|
@@ -657,20 +656,20 @@ export declare class Messaging extends Service {
|
|
|
657
656
|
* @param {string} subscriberId
|
|
658
657
|
* @param {string} targetId
|
|
659
658
|
* @throws {AppwriteException}
|
|
660
|
-
* @returns {Promise}
|
|
661
|
-
|
|
659
|
+
* @returns {Promise<Models.Subscriber>}
|
|
660
|
+
*/
|
|
662
661
|
createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber>;
|
|
663
662
|
/**
|
|
664
663
|
* Get subscriber
|
|
665
664
|
*
|
|
666
665
|
* Get a subscriber by its unique ID.
|
|
667
|
-
|
|
666
|
+
|
|
668
667
|
*
|
|
669
668
|
* @param {string} topicId
|
|
670
669
|
* @param {string} subscriberId
|
|
671
670
|
* @throws {AppwriteException}
|
|
672
|
-
* @returns {Promise}
|
|
673
|
-
|
|
671
|
+
* @returns {Promise<Models.Subscriber>}
|
|
672
|
+
*/
|
|
674
673
|
getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber>;
|
|
675
674
|
/**
|
|
676
675
|
* Delete subscriber
|
|
@@ -680,7 +679,7 @@ export declare class Messaging extends Service {
|
|
|
680
679
|
* @param {string} topicId
|
|
681
680
|
* @param {string} subscriberId
|
|
682
681
|
* @throws {AppwriteException}
|
|
683
|
-
* @returns {Promise}
|
|
684
|
-
|
|
682
|
+
* @returns {Promise<{}>}
|
|
683
|
+
*/
|
|
685
684
|
deleteSubscriber(topicId: string, subscriberId: string): Promise<{}>;
|
|
686
685
|
}
|