@appwrite.io/console 0.6.2 → 0.7.0-rc.1
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/.github/workflows/autoclose.yml +11 -0
- package/.github/workflows/publish.yml +40 -16
- package/README.md +3 -3
- package/dist/cjs/sdk.js +2749 -2318
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2749 -2318
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2749 -2318
- package/docs/examples/account/create-anonymous-session.md +2 -2
- package/docs/examples/account/create-email-password-session.md +2 -2
- package/docs/examples/account/create-email-token.md +2 -2
- package/docs/examples/account/create-j-w-t.md +2 -2
- package/docs/examples/account/create-magic-u-r-l-token.md +2 -2
- package/docs/examples/account/create-mfa-authenticator.md +2 -2
- package/docs/examples/account/create-mfa-challenge.md +2 -2
- package/docs/examples/account/create-mfa-recovery-codes.md +2 -2
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-phone-token.md +2 -2
- package/docs/examples/account/create-phone-verification.md +2 -2
- package/docs/examples/account/create-push-target.md +2 -2
- package/docs/examples/account/create-recovery.md +2 -2
- package/docs/examples/account/create-session.md +2 -2
- package/docs/examples/account/create-verification.md +2 -2
- package/docs/examples/account/create.md +2 -2
- package/docs/examples/account/delete-identity.md +2 -2
- package/docs/examples/account/delete-mfa-authenticator.md +3 -4
- package/docs/examples/account/delete-push-target.md +2 -2
- package/docs/examples/account/delete-session.md +2 -2
- package/docs/examples/account/delete-sessions.md +2 -2
- package/docs/examples/account/delete.md +2 -2
- package/docs/examples/account/get-mfa-recovery-codes.md +2 -2
- package/docs/examples/account/get-prefs.md +2 -2
- package/docs/examples/account/get-session.md +2 -2
- package/docs/examples/account/get.md +2 -2
- package/docs/examples/account/list-identities.md +2 -2
- package/docs/examples/account/list-logs.md +2 -2
- package/docs/examples/account/list-mfa-factors.md +2 -2
- package/docs/examples/account/list-sessions.md +2 -2
- package/docs/examples/account/update-email.md +2 -2
- package/docs/examples/account/update-m-f-a.md +2 -2
- package/docs/examples/account/update-magic-u-r-l-session.md +2 -2
- package/docs/examples/account/update-mfa-authenticator.md +2 -2
- package/docs/examples/account/update-mfa-challenge.md +2 -2
- package/docs/examples/account/update-mfa-recovery-codes.md +2 -2
- package/docs/examples/account/update-name.md +2 -2
- package/docs/examples/account/update-password.md +2 -2
- package/docs/examples/account/update-phone-session.md +2 -2
- package/docs/examples/account/update-phone-verification.md +2 -2
- package/docs/examples/account/update-phone.md +2 -2
- package/docs/examples/account/update-prefs.md +2 -2
- package/docs/examples/account/update-push-target.md +2 -2
- package/docs/examples/account/update-recovery.md +2 -2
- package/docs/examples/account/update-session.md +2 -2
- package/docs/examples/account/update-status.md +2 -2
- package/docs/examples/account/update-verification.md +2 -2
- package/docs/examples/assistant/chat.md +2 -2
- package/docs/examples/avatars/get-browser.md +1 -1
- package/docs/examples/avatars/get-credit-card.md +1 -1
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +1 -1
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/console/variables.md +2 -2
- package/docs/examples/databases/create-boolean-attribute.md +2 -2
- package/docs/examples/databases/create-collection.md +2 -2
- package/docs/examples/databases/create-datetime-attribute.md +2 -2
- package/docs/examples/databases/create-document.md +2 -2
- package/docs/examples/databases/create-email-attribute.md +2 -2
- package/docs/examples/databases/create-enum-attribute.md +2 -2
- package/docs/examples/databases/create-float-attribute.md +2 -2
- package/docs/examples/databases/create-index.md +2 -2
- package/docs/examples/databases/create-integer-attribute.md +2 -2
- package/docs/examples/databases/create-ip-attribute.md +2 -2
- package/docs/examples/databases/create-relationship-attribute.md +2 -2
- package/docs/examples/databases/create-string-attribute.md +2 -2
- package/docs/examples/databases/create-url-attribute.md +2 -2
- package/docs/examples/databases/create.md +2 -2
- package/docs/examples/databases/delete-attribute.md +2 -2
- package/docs/examples/databases/delete-collection.md +2 -2
- package/docs/examples/databases/delete-document.md +2 -2
- package/docs/examples/databases/delete-index.md +2 -2
- package/docs/examples/databases/delete.md +2 -2
- package/docs/examples/databases/get-attribute.md +2 -2
- package/docs/examples/databases/get-collection-usage.md +2 -2
- package/docs/examples/databases/get-collection.md +2 -2
- package/docs/examples/databases/get-database-usage.md +2 -2
- package/docs/examples/databases/get-document.md +2 -2
- package/docs/examples/databases/get-index.md +2 -2
- package/docs/examples/databases/get-usage.md +2 -2
- package/docs/examples/databases/get.md +2 -2
- package/docs/examples/databases/list-attributes.md +2 -2
- package/docs/examples/databases/list-collection-logs.md +2 -2
- package/docs/examples/databases/list-collections.md +2 -2
- package/docs/examples/databases/list-document-logs.md +2 -2
- package/docs/examples/databases/list-documents.md +2 -2
- package/docs/examples/databases/list-indexes.md +2 -2
- package/docs/examples/databases/list-logs.md +2 -2
- package/docs/examples/databases/list.md +2 -2
- package/docs/examples/databases/update-boolean-attribute.md +2 -2
- package/docs/examples/databases/update-collection.md +2 -2
- package/docs/examples/databases/update-datetime-attribute.md +2 -2
- package/docs/examples/databases/update-document.md +2 -2
- package/docs/examples/databases/update-email-attribute.md +2 -2
- package/docs/examples/databases/update-enum-attribute.md +2 -2
- package/docs/examples/databases/update-float-attribute.md +2 -2
- package/docs/examples/databases/update-integer-attribute.md +2 -2
- package/docs/examples/databases/update-ip-attribute.md +2 -2
- package/docs/examples/databases/update-relationship-attribute.md +2 -2
- package/docs/examples/databases/update-string-attribute.md +2 -2
- package/docs/examples/databases/update-url-attribute.md +2 -2
- package/docs/examples/databases/update.md +2 -2
- package/docs/examples/functions/create-build.md +3 -3
- package/docs/examples/functions/create-deployment.md +2 -2
- package/docs/examples/functions/create-execution.md +4 -3
- package/docs/examples/functions/create-variable.md +2 -2
- package/docs/examples/functions/create.md +4 -3
- package/docs/examples/functions/delete-deployment.md +2 -2
- package/docs/examples/functions/delete-execution.md +14 -0
- package/docs/examples/functions/delete-variable.md +2 -2
- package/docs/examples/functions/delete.md +2 -2
- package/docs/examples/functions/{download-deployment.md → get-deployment-download.md} +2 -2
- package/docs/examples/functions/get-deployment.md +2 -2
- package/docs/examples/functions/get-execution.md +2 -2
- package/docs/examples/functions/get-function-usage.md +2 -2
- package/docs/examples/functions/get-template.md +13 -0
- package/docs/examples/functions/get-usage.md +2 -2
- package/docs/examples/functions/get-variable.md +2 -2
- package/docs/examples/functions/get.md +2 -2
- package/docs/examples/functions/list-deployments.md +2 -2
- package/docs/examples/functions/list-executions.md +2 -2
- package/docs/examples/functions/list-runtimes.md +2 -2
- package/docs/examples/functions/list-templates.md +16 -0
- package/docs/examples/functions/list-variables.md +2 -2
- package/docs/examples/functions/list.md +2 -2
- package/docs/examples/functions/update-deployment-build.md +14 -0
- package/docs/examples/functions/update-deployment.md +2 -2
- package/docs/examples/functions/update-variable.md +2 -2
- package/docs/examples/functions/update.md +3 -2
- package/docs/examples/graphql/mutation.md +2 -2
- package/docs/examples/graphql/query.md +2 -2
- package/docs/examples/health/get-antivirus.md +2 -2
- package/docs/examples/health/get-cache.md +2 -2
- package/docs/examples/health/get-certificate.md +2 -2
- package/docs/examples/health/get-d-b.md +2 -2
- package/docs/examples/health/get-failed-jobs.md +2 -2
- package/docs/examples/health/get-pub-sub.md +2 -2
- package/docs/examples/health/get-queue-builds.md +2 -2
- package/docs/examples/health/get-queue-certificates.md +2 -2
- package/docs/examples/health/get-queue-databases.md +2 -2
- package/docs/examples/health/get-queue-deletes.md +2 -2
- package/docs/examples/health/get-queue-functions.md +2 -2
- package/docs/examples/health/get-queue-logs.md +2 -2
- package/docs/examples/health/get-queue-mails.md +2 -2
- package/docs/examples/health/get-queue-messaging.md +2 -2
- package/docs/examples/health/get-queue-migrations.md +2 -2
- package/docs/examples/health/get-queue-usage-dump.md +2 -2
- package/docs/examples/health/get-queue-usage.md +2 -2
- package/docs/examples/health/get-queue-webhooks.md +2 -2
- package/docs/examples/health/get-queue.md +2 -2
- package/docs/examples/health/get-storage-local.md +2 -2
- package/docs/examples/health/get-storage.md +2 -2
- package/docs/examples/health/get-time.md +2 -2
- package/docs/examples/health/get.md +2 -2
- package/docs/examples/locale/get.md +2 -2
- package/docs/examples/locale/list-codes.md +2 -2
- package/docs/examples/locale/list-continents.md +2 -2
- package/docs/examples/locale/list-countries-e-u.md +2 -2
- package/docs/examples/locale/list-countries-phones.md +2 -2
- package/docs/examples/locale/list-countries.md +2 -2
- package/docs/examples/locale/list-currencies.md +2 -2
- package/docs/examples/locale/list-languages.md +2 -2
- package/docs/examples/messaging/create-apns-provider.md +2 -2
- package/docs/examples/messaging/create-email.md +2 -2
- package/docs/examples/messaging/create-fcm-provider.md +2 -2
- package/docs/examples/messaging/create-mailgun-provider.md +2 -2
- package/docs/examples/messaging/create-msg91provider.md +2 -2
- package/docs/examples/messaging/create-push.md +2 -2
- package/docs/examples/messaging/create-sendgrid-provider.md +2 -2
- package/docs/examples/messaging/create-sms.md +2 -2
- package/docs/examples/messaging/create-smtp-provider.md +2 -2
- package/docs/examples/messaging/create-subscriber.md +2 -2
- package/docs/examples/messaging/create-telesign-provider.md +2 -2
- package/docs/examples/messaging/create-textmagic-provider.md +2 -2
- package/docs/examples/messaging/create-topic.md +2 -2
- package/docs/examples/messaging/create-twilio-provider.md +2 -2
- package/docs/examples/messaging/create-vonage-provider.md +2 -2
- package/docs/examples/messaging/delete-provider.md +2 -2
- package/docs/examples/messaging/delete-subscriber.md +2 -2
- package/docs/examples/messaging/delete-topic.md +2 -2
- package/docs/examples/messaging/delete.md +2 -2
- package/docs/examples/messaging/get-message.md +2 -2
- package/docs/examples/messaging/get-provider.md +2 -2
- package/docs/examples/messaging/get-subscriber.md +2 -2
- package/docs/examples/messaging/get-topic.md +2 -2
- package/docs/examples/messaging/list-message-logs.md +2 -2
- package/docs/examples/messaging/list-messages.md +2 -2
- package/docs/examples/messaging/list-provider-logs.md +2 -2
- package/docs/examples/messaging/list-providers.md +2 -2
- package/docs/examples/messaging/list-subscriber-logs.md +2 -2
- package/docs/examples/messaging/list-subscribers.md +2 -2
- package/docs/examples/messaging/list-targets.md +2 -2
- package/docs/examples/messaging/list-topic-logs.md +2 -2
- package/docs/examples/messaging/list-topics.md +2 -2
- package/docs/examples/messaging/update-apns-provider.md +2 -2
- package/docs/examples/messaging/update-email.md +2 -2
- package/docs/examples/messaging/update-fcm-provider.md +2 -2
- package/docs/examples/messaging/update-mailgun-provider.md +2 -2
- package/docs/examples/messaging/update-msg91provider.md +2 -2
- package/docs/examples/messaging/update-push.md +2 -2
- package/docs/examples/messaging/update-sendgrid-provider.md +2 -2
- package/docs/examples/messaging/update-sms.md +2 -2
- package/docs/examples/messaging/update-smtp-provider.md +2 -2
- package/docs/examples/messaging/update-telesign-provider.md +2 -2
- package/docs/examples/messaging/update-textmagic-provider.md +2 -2
- package/docs/examples/messaging/update-topic.md +2 -2
- package/docs/examples/messaging/update-twilio-provider.md +2 -2
- package/docs/examples/messaging/update-vonage-provider.md +2 -2
- package/docs/examples/migrations/create-appwrite-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-migration.md +2 -2
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +2 -2
- package/docs/examples/migrations/create-n-host-migration.md +2 -2
- package/docs/examples/migrations/create-supabase-migration.md +2 -2
- package/docs/examples/migrations/delete-firebase-auth.md +2 -2
- package/docs/examples/migrations/delete.md +2 -2
- package/docs/examples/migrations/get-appwrite-report.md +2 -2
- package/docs/examples/migrations/get-firebase-report-o-auth.md +2 -2
- package/docs/examples/migrations/get-firebase-report.md +2 -2
- package/docs/examples/migrations/get-n-host-report.md +2 -2
- package/docs/examples/migrations/get-supabase-report.md +2 -2
- package/docs/examples/migrations/get.md +2 -2
- package/docs/examples/migrations/list-firebase-projects.md +2 -2
- package/docs/examples/migrations/list.md +2 -2
- package/docs/examples/migrations/retry.md +2 -2
- package/docs/examples/project/create-variable.md +2 -2
- package/docs/examples/project/delete-variable.md +2 -2
- package/docs/examples/project/get-usage.md +2 -2
- package/docs/examples/project/get-variable.md +2 -2
- package/docs/examples/project/list-variables.md +2 -2
- package/docs/examples/project/update-variable.md +2 -2
- package/docs/examples/projects/create-j-w-t.md +15 -0
- package/docs/examples/projects/create-key.md +2 -2
- package/docs/examples/projects/create-platform.md +2 -2
- package/docs/examples/projects/create-smtp-test.md +2 -2
- package/docs/examples/projects/create-webhook.md +2 -2
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-email-template.md +2 -2
- package/docs/examples/projects/delete-key.md +2 -2
- package/docs/examples/projects/delete-platform.md +2 -2
- package/docs/examples/projects/delete-sms-template.md +2 -2
- package/docs/examples/projects/delete-webhook.md +2 -2
- package/docs/examples/projects/delete.md +2 -2
- package/docs/examples/projects/get-email-template.md +2 -2
- package/docs/examples/projects/get-key.md +2 -2
- package/docs/examples/projects/get-platform.md +2 -2
- package/docs/examples/projects/get-sms-template.md +2 -2
- package/docs/examples/projects/get-webhook.md +2 -2
- package/docs/examples/projects/get.md +2 -2
- package/docs/examples/projects/list-keys.md +2 -2
- package/docs/examples/projects/list-platforms.md +2 -2
- package/docs/examples/projects/list-webhooks.md +2 -2
- package/docs/examples/projects/list.md +2 -2
- package/docs/examples/projects/update-api-status-all.md +2 -2
- package/docs/examples/projects/update-api-status.md +2 -2
- package/docs/examples/projects/update-auth-duration.md +2 -2
- package/docs/examples/projects/update-auth-limit.md +2 -2
- package/docs/examples/projects/update-auth-password-dictionary.md +2 -2
- package/docs/examples/projects/update-auth-password-history.md +2 -2
- package/docs/examples/projects/update-auth-sessions-limit.md +2 -2
- package/docs/examples/projects/update-auth-status.md +2 -2
- package/docs/examples/projects/update-email-template.md +2 -2
- package/docs/examples/projects/update-key.md +2 -2
- package/docs/examples/projects/update-mock-numbers.md +14 -0
- package/docs/examples/projects/update-o-auth2.md +2 -2
- package/docs/examples/projects/update-personal-data-check.md +2 -2
- package/docs/examples/projects/update-platform.md +2 -2
- package/docs/examples/projects/update-service-status-all.md +2 -2
- package/docs/examples/projects/update-service-status.md +2 -2
- package/docs/examples/projects/update-session-alerts.md +14 -0
- package/docs/examples/projects/update-sms-template.md +2 -2
- package/docs/examples/projects/update-smtp.md +2 -2
- package/docs/examples/projects/update-team.md +2 -2
- package/docs/examples/projects/update-webhook-signature.md +2 -2
- package/docs/examples/projects/update-webhook.md +2 -2
- package/docs/examples/projects/update.md +2 -2
- package/docs/examples/proxy/create-rule.md +2 -2
- package/docs/examples/proxy/delete-rule.md +2 -2
- package/docs/examples/proxy/get-rule.md +2 -2
- package/docs/examples/proxy/list-rules.md +2 -2
- package/docs/examples/proxy/update-rule-verification.md +2 -2
- package/docs/examples/storage/create-bucket.md +2 -2
- package/docs/examples/storage/create-file.md +2 -2
- package/docs/examples/storage/delete-bucket.md +2 -2
- package/docs/examples/storage/delete-file.md +2 -2
- package/docs/examples/storage/get-bucket-usage.md +2 -2
- package/docs/examples/storage/get-bucket.md +2 -2
- package/docs/examples/storage/get-file-download.md +1 -1
- package/docs/examples/storage/get-file-preview.md +1 -1
- package/docs/examples/storage/get-file-view.md +1 -1
- package/docs/examples/storage/get-file.md +2 -2
- package/docs/examples/storage/get-usage.md +2 -2
- package/docs/examples/storage/list-buckets.md +2 -2
- package/docs/examples/storage/list-files.md +2 -2
- package/docs/examples/storage/update-bucket.md +2 -2
- package/docs/examples/storage/update-file.md +2 -2
- package/docs/examples/teams/create-membership.md +2 -2
- package/docs/examples/teams/create.md +2 -2
- package/docs/examples/teams/delete-membership.md +2 -2
- package/docs/examples/teams/delete.md +2 -2
- package/docs/examples/teams/get-membership.md +2 -2
- package/docs/examples/teams/get-prefs.md +2 -2
- package/docs/examples/teams/get.md +2 -2
- package/docs/examples/teams/list-logs.md +2 -2
- package/docs/examples/teams/list-memberships.md +2 -2
- package/docs/examples/teams/list.md +2 -2
- package/docs/examples/teams/update-membership-status.md +2 -2
- package/docs/examples/teams/update-membership.md +2 -2
- package/docs/examples/teams/update-name.md +2 -2
- package/docs/examples/teams/update-prefs.md +2 -2
- package/docs/examples/users/create-argon2user.md +2 -2
- package/docs/examples/users/create-bcrypt-user.md +2 -2
- package/docs/examples/users/create-j-w-t.md +15 -0
- package/docs/examples/users/create-m-d5user.md +2 -2
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/create-p-h-pass-user.md +2 -2
- package/docs/examples/users/create-s-h-a-user.md +2 -2
- package/docs/examples/users/create-scrypt-modified-user.md +2 -2
- package/docs/examples/users/create-scrypt-user.md +2 -2
- package/docs/examples/users/create-session.md +2 -2
- package/docs/examples/users/create-target.md +2 -2
- package/docs/examples/users/create-token.md +2 -2
- package/docs/examples/users/create.md +2 -2
- package/docs/examples/users/delete-identity.md +2 -2
- package/docs/examples/users/delete-mfa-authenticator.md +2 -2
- package/docs/examples/users/delete-session.md +2 -2
- package/docs/examples/users/delete-sessions.md +2 -2
- package/docs/examples/users/delete-target.md +2 -2
- package/docs/examples/users/delete.md +2 -2
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/get-prefs.md +2 -2
- package/docs/examples/users/get-target.md +2 -2
- package/docs/examples/users/get-usage.md +2 -2
- package/docs/examples/users/get.md +2 -2
- package/docs/examples/users/list-identities.md +2 -2
- package/docs/examples/users/list-logs.md +2 -2
- package/docs/examples/users/list-memberships.md +2 -2
- package/docs/examples/users/list-mfa-factors.md +2 -2
- package/docs/examples/users/list-sessions.md +2 -2
- package/docs/examples/users/list-targets.md +2 -2
- package/docs/examples/users/list.md +2 -2
- package/docs/examples/users/update-email-verification.md +2 -2
- package/docs/examples/users/update-email.md +2 -2
- package/docs/examples/users/update-labels.md +2 -2
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/update-mfa.md +2 -2
- package/docs/examples/users/update-name.md +2 -2
- package/docs/examples/users/update-password.md +2 -2
- package/docs/examples/users/update-phone-verification.md +2 -2
- package/docs/examples/users/update-phone.md +2 -2
- package/docs/examples/users/update-prefs.md +2 -2
- package/docs/examples/users/update-status.md +2 -2
- package/docs/examples/users/update-target.md +2 -2
- package/docs/examples/vcs/create-repository-detection.md +2 -2
- package/docs/examples/vcs/create-repository.md +2 -2
- package/docs/examples/vcs/delete-installation.md +2 -2
- package/docs/examples/vcs/get-installation.md +2 -2
- package/docs/examples/vcs/get-repository-contents.md +15 -0
- package/docs/examples/vcs/get-repository.md +2 -2
- package/docs/examples/vcs/list-installations.md +2 -2
- package/docs/examples/vcs/list-repositories.md +2 -2
- package/docs/examples/vcs/list-repository-branches.md +2 -2
- package/docs/examples/vcs/update-external-deployments.md +2 -2
- package/package.json +1 -1
- package/src/client.ts +322 -51
- package/src/enums/credit-card.ts +1 -1
- package/src/enums/email-template-type.ts +2 -0
- package/src/enums/name.ts +1 -2
- package/src/enums/platform-type.ts +2 -0
- package/src/enums/runtime.ts +1 -3
- package/src/id.ts +21 -2
- package/src/index.ts +7 -0
- package/src/models.ts +299 -0
- package/src/permission.ts +41 -6
- package/src/query.ts +161 -1
- package/src/service.ts +3 -0
- package/src/services/account.ts +654 -647
- 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 +446 -321
- 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 +82 -4
- package/types/enums/credit-card.d.ts +1 -1
- package/types/enums/email-template-type.d.ts +3 -1
- package/types/enums/name.d.ts +2 -3
- package/types/enums/platform-type.d.ts +3 -1
- package/types/enums/runtime.d.ts +2 -4
- package/types/id.d.ts +15 -0
- package/types/index.d.ts +7 -0
- package/types/models.d.ts +299 -0
- package/types/permission.d.ts +36 -0
- package/types/query.d.ts +160 -0
- package/types/service.d.ts +3 -0
- package/types/services/account.d.ts +165 -320
- 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 +119 -92
- 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,4 +1,3 @@
|
|
|
1
|
-
import { Service } from '../service';
|
|
2
1
|
import { Client } from '../client';
|
|
3
2
|
import type { Models } from '../models';
|
|
4
3
|
import { Region } from '../enums/region';
|
|
@@ -12,7 +11,8 @@ import { EmailTemplateType } from '../enums/email-template-type';
|
|
|
12
11
|
import { EmailTemplateLocale } from '../enums/email-template-locale';
|
|
13
12
|
import { SmsTemplateType } from '../enums/sms-template-type';
|
|
14
13
|
import { SmsTemplateLocale } from '../enums/sms-template-locale';
|
|
15
|
-
export declare class Projects
|
|
14
|
+
export declare class Projects {
|
|
15
|
+
client: Client;
|
|
16
16
|
constructor(client: Client);
|
|
17
17
|
/**
|
|
18
18
|
* List projects
|
|
@@ -21,8 +21,8 @@ export declare class Projects extends Service {
|
|
|
21
21
|
* @param {string[]} queries
|
|
22
22
|
* @param {string} search
|
|
23
23
|
* @throws {AppwriteException}
|
|
24
|
-
* @returns {Promise}
|
|
25
|
-
|
|
24
|
+
* @returns {Promise<Models.ProjectList>}
|
|
25
|
+
*/
|
|
26
26
|
list(queries?: string[], search?: string): Promise<Models.ProjectList>;
|
|
27
27
|
/**
|
|
28
28
|
* Create project
|
|
@@ -42,8 +42,8 @@ export declare class Projects extends Service {
|
|
|
42
42
|
* @param {string} legalAddress
|
|
43
43
|
* @param {string} legalTaxId
|
|
44
44
|
* @throws {AppwriteException}
|
|
45
|
-
* @returns {Promise}
|
|
46
|
-
|
|
45
|
+
* @returns {Promise<Models.Project>}
|
|
46
|
+
*/
|
|
47
47
|
create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
48
48
|
/**
|
|
49
49
|
* Get project
|
|
@@ -51,8 +51,8 @@ export declare class Projects extends Service {
|
|
|
51
51
|
*
|
|
52
52
|
* @param {string} projectId
|
|
53
53
|
* @throws {AppwriteException}
|
|
54
|
-
* @returns {Promise}
|
|
55
|
-
|
|
54
|
+
* @returns {Promise<Models.Project>}
|
|
55
|
+
*/
|
|
56
56
|
get(projectId: string): Promise<Models.Project>;
|
|
57
57
|
/**
|
|
58
58
|
* Update project
|
|
@@ -70,8 +70,8 @@ export declare class Projects extends Service {
|
|
|
70
70
|
* @param {string} legalAddress
|
|
71
71
|
* @param {string} legalTaxId
|
|
72
72
|
* @throws {AppwriteException}
|
|
73
|
-
* @returns {Promise}
|
|
74
|
-
|
|
73
|
+
* @returns {Promise<Models.Project>}
|
|
74
|
+
*/
|
|
75
75
|
update(projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
76
76
|
/**
|
|
77
77
|
* Delete project
|
|
@@ -79,8 +79,8 @@ export declare class Projects extends Service {
|
|
|
79
79
|
*
|
|
80
80
|
* @param {string} projectId
|
|
81
81
|
* @throws {AppwriteException}
|
|
82
|
-
* @returns {Promise}
|
|
83
|
-
|
|
82
|
+
* @returns {Promise<{}>}
|
|
83
|
+
*/
|
|
84
84
|
delete(projectId: string): Promise<{}>;
|
|
85
85
|
/**
|
|
86
86
|
* Update API status
|
|
@@ -90,8 +90,8 @@ export declare class Projects extends Service {
|
|
|
90
90
|
* @param {Api} api
|
|
91
91
|
* @param {boolean} status
|
|
92
92
|
* @throws {AppwriteException}
|
|
93
|
-
* @returns {Promise}
|
|
94
|
-
|
|
93
|
+
* @returns {Promise<Models.Project>}
|
|
94
|
+
*/
|
|
95
95
|
updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project>;
|
|
96
96
|
/**
|
|
97
97
|
* Update all API status
|
|
@@ -100,8 +100,8 @@ export declare class Projects extends Service {
|
|
|
100
100
|
* @param {string} projectId
|
|
101
101
|
* @param {boolean} status
|
|
102
102
|
* @throws {AppwriteException}
|
|
103
|
-
* @returns {Promise}
|
|
104
|
-
|
|
103
|
+
* @returns {Promise<Models.Project>}
|
|
104
|
+
*/
|
|
105
105
|
updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
|
106
106
|
/**
|
|
107
107
|
* Update project authentication duration
|
|
@@ -110,8 +110,8 @@ export declare class Projects extends Service {
|
|
|
110
110
|
* @param {string} projectId
|
|
111
111
|
* @param {number} duration
|
|
112
112
|
* @throws {AppwriteException}
|
|
113
|
-
* @returns {Promise}
|
|
114
|
-
|
|
113
|
+
* @returns {Promise<Models.Project>}
|
|
114
|
+
*/
|
|
115
115
|
updateAuthDuration(projectId: string, duration: number): Promise<Models.Project>;
|
|
116
116
|
/**
|
|
117
117
|
* Update project users limit
|
|
@@ -120,8 +120,8 @@ export declare class Projects extends Service {
|
|
|
120
120
|
* @param {string} projectId
|
|
121
121
|
* @param {number} limit
|
|
122
122
|
* @throws {AppwriteException}
|
|
123
|
-
* @returns {Promise}
|
|
124
|
-
|
|
123
|
+
* @returns {Promise<Models.Project>}
|
|
124
|
+
*/
|
|
125
125
|
updateAuthLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
126
126
|
/**
|
|
127
127
|
* Update project user sessions limit
|
|
@@ -130,9 +130,19 @@ export declare class Projects extends Service {
|
|
|
130
130
|
* @param {string} projectId
|
|
131
131
|
* @param {number} limit
|
|
132
132
|
* @throws {AppwriteException}
|
|
133
|
-
* @returns {Promise}
|
|
134
|
-
|
|
133
|
+
* @returns {Promise<Models.Project>}
|
|
134
|
+
*/
|
|
135
135
|
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
136
|
+
/**
|
|
137
|
+
* Update the mock numbers for the project
|
|
138
|
+
*
|
|
139
|
+
*
|
|
140
|
+
* @param {string} projectId
|
|
141
|
+
* @param {object[]} numbers
|
|
142
|
+
* @throws {AppwriteException}
|
|
143
|
+
* @returns {Promise<Models.Project>}
|
|
144
|
+
*/
|
|
145
|
+
updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project>;
|
|
136
146
|
/**
|
|
137
147
|
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
138
148
|
*
|
|
@@ -140,8 +150,8 @@ export declare class Projects extends Service {
|
|
|
140
150
|
* @param {string} projectId
|
|
141
151
|
* @param {boolean} enabled
|
|
142
152
|
* @throws {AppwriteException}
|
|
143
|
-
* @returns {Promise}
|
|
144
|
-
|
|
153
|
+
* @returns {Promise<Models.Project>}
|
|
154
|
+
*/
|
|
145
155
|
updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project>;
|
|
146
156
|
/**
|
|
147
157
|
* Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
|
|
@@ -150,8 +160,8 @@ export declare class Projects extends Service {
|
|
|
150
160
|
* @param {string} projectId
|
|
151
161
|
* @param {number} limit
|
|
152
162
|
* @throws {AppwriteException}
|
|
153
|
-
* @returns {Promise}
|
|
154
|
-
|
|
163
|
+
* @returns {Promise<Models.Project>}
|
|
164
|
+
*/
|
|
155
165
|
updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project>;
|
|
156
166
|
/**
|
|
157
167
|
* Enable or disable checking user passwords for similarity with their personal data.
|
|
@@ -160,9 +170,19 @@ export declare class Projects extends Service {
|
|
|
160
170
|
* @param {string} projectId
|
|
161
171
|
* @param {boolean} enabled
|
|
162
172
|
* @throws {AppwriteException}
|
|
163
|
-
* @returns {Promise}
|
|
164
|
-
|
|
173
|
+
* @returns {Promise<Models.Project>}
|
|
174
|
+
*/
|
|
165
175
|
updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project>;
|
|
176
|
+
/**
|
|
177
|
+
* Update project sessions emails
|
|
178
|
+
*
|
|
179
|
+
*
|
|
180
|
+
* @param {string} projectId
|
|
181
|
+
* @param {boolean} alerts
|
|
182
|
+
* @throws {AppwriteException}
|
|
183
|
+
* @returns {Promise<Models.Project>}
|
|
184
|
+
*/
|
|
185
|
+
updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project>;
|
|
166
186
|
/**
|
|
167
187
|
* Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
|
168
188
|
*
|
|
@@ -171,17 +191,28 @@ export declare class Projects extends Service {
|
|
|
171
191
|
* @param {AuthMethod} method
|
|
172
192
|
* @param {boolean} status
|
|
173
193
|
* @throws {AppwriteException}
|
|
174
|
-
* @returns {Promise}
|
|
175
|
-
|
|
194
|
+
* @returns {Promise<Models.Project>}
|
|
195
|
+
*/
|
|
176
196
|
updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
|
|
197
|
+
/**
|
|
198
|
+
* Create JWT
|
|
199
|
+
*
|
|
200
|
+
*
|
|
201
|
+
* @param {string} projectId
|
|
202
|
+
* @param {string[]} scopes
|
|
203
|
+
* @param {number} duration
|
|
204
|
+
* @throws {AppwriteException}
|
|
205
|
+
* @returns {Promise<Models.Jwt>}
|
|
206
|
+
*/
|
|
207
|
+
createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt>;
|
|
177
208
|
/**
|
|
178
209
|
* List keys
|
|
179
210
|
*
|
|
180
211
|
*
|
|
181
212
|
* @param {string} projectId
|
|
182
213
|
* @throws {AppwriteException}
|
|
183
|
-
* @returns {Promise}
|
|
184
|
-
|
|
214
|
+
* @returns {Promise<Models.KeyList>}
|
|
215
|
+
*/
|
|
185
216
|
listKeys(projectId: string): Promise<Models.KeyList>;
|
|
186
217
|
/**
|
|
187
218
|
* Create key
|
|
@@ -192,8 +223,8 @@ export declare class Projects extends Service {
|
|
|
192
223
|
* @param {string[]} scopes
|
|
193
224
|
* @param {string} expire
|
|
194
225
|
* @throws {AppwriteException}
|
|
195
|
-
* @returns {Promise}
|
|
196
|
-
|
|
226
|
+
* @returns {Promise<Models.Key>}
|
|
227
|
+
*/
|
|
197
228
|
createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
|
198
229
|
/**
|
|
199
230
|
* Get key
|
|
@@ -202,8 +233,8 @@ export declare class Projects extends Service {
|
|
|
202
233
|
* @param {string} projectId
|
|
203
234
|
* @param {string} keyId
|
|
204
235
|
* @throws {AppwriteException}
|
|
205
|
-
* @returns {Promise}
|
|
206
|
-
|
|
236
|
+
* @returns {Promise<Models.Key>}
|
|
237
|
+
*/
|
|
207
238
|
getKey(projectId: string, keyId: string): Promise<Models.Key>;
|
|
208
239
|
/**
|
|
209
240
|
* Update key
|
|
@@ -215,8 +246,8 @@ export declare class Projects extends Service {
|
|
|
215
246
|
* @param {string[]} scopes
|
|
216
247
|
* @param {string} expire
|
|
217
248
|
* @throws {AppwriteException}
|
|
218
|
-
* @returns {Promise}
|
|
219
|
-
|
|
249
|
+
* @returns {Promise<Models.Key>}
|
|
250
|
+
*/
|
|
220
251
|
updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
|
221
252
|
/**
|
|
222
253
|
* Delete key
|
|
@@ -225,8 +256,8 @@ export declare class Projects extends Service {
|
|
|
225
256
|
* @param {string} projectId
|
|
226
257
|
* @param {string} keyId
|
|
227
258
|
* @throws {AppwriteException}
|
|
228
|
-
* @returns {Promise}
|
|
229
|
-
|
|
259
|
+
* @returns {Promise<{}>}
|
|
260
|
+
*/
|
|
230
261
|
deleteKey(projectId: string, keyId: string): Promise<{}>;
|
|
231
262
|
/**
|
|
232
263
|
* Update project OAuth2
|
|
@@ -238,8 +269,8 @@ export declare class Projects extends Service {
|
|
|
238
269
|
* @param {string} secret
|
|
239
270
|
* @param {boolean} enabled
|
|
240
271
|
* @throws {AppwriteException}
|
|
241
|
-
* @returns {Promise}
|
|
242
|
-
|
|
272
|
+
* @returns {Promise<Models.Project>}
|
|
273
|
+
*/
|
|
243
274
|
updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
|
|
244
275
|
/**
|
|
245
276
|
* List platforms
|
|
@@ -247,8 +278,8 @@ export declare class Projects extends Service {
|
|
|
247
278
|
*
|
|
248
279
|
* @param {string} projectId
|
|
249
280
|
* @throws {AppwriteException}
|
|
250
|
-
* @returns {Promise}
|
|
251
|
-
|
|
281
|
+
* @returns {Promise<Models.PlatformList>}
|
|
282
|
+
*/
|
|
252
283
|
listPlatforms(projectId: string): Promise<Models.PlatformList>;
|
|
253
284
|
/**
|
|
254
285
|
* Create platform
|
|
@@ -261,8 +292,8 @@ export declare class Projects extends Service {
|
|
|
261
292
|
* @param {string} store
|
|
262
293
|
* @param {string} hostname
|
|
263
294
|
* @throws {AppwriteException}
|
|
264
|
-
* @returns {Promise}
|
|
265
|
-
|
|
295
|
+
* @returns {Promise<Models.Platform>}
|
|
296
|
+
*/
|
|
266
297
|
createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
267
298
|
/**
|
|
268
299
|
* Get platform
|
|
@@ -271,8 +302,8 @@ export declare class Projects extends Service {
|
|
|
271
302
|
* @param {string} projectId
|
|
272
303
|
* @param {string} platformId
|
|
273
304
|
* @throws {AppwriteException}
|
|
274
|
-
* @returns {Promise}
|
|
275
|
-
|
|
305
|
+
* @returns {Promise<Models.Platform>}
|
|
306
|
+
*/
|
|
276
307
|
getPlatform(projectId: string, platformId: string): Promise<Models.Platform>;
|
|
277
308
|
/**
|
|
278
309
|
* Update platform
|
|
@@ -285,8 +316,8 @@ export declare class Projects extends Service {
|
|
|
285
316
|
* @param {string} store
|
|
286
317
|
* @param {string} hostname
|
|
287
318
|
* @throws {AppwriteException}
|
|
288
|
-
* @returns {Promise}
|
|
289
|
-
|
|
319
|
+
* @returns {Promise<Models.Platform>}
|
|
320
|
+
*/
|
|
290
321
|
updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
291
322
|
/**
|
|
292
323
|
* Delete platform
|
|
@@ -295,8 +326,8 @@ export declare class Projects extends Service {
|
|
|
295
326
|
* @param {string} projectId
|
|
296
327
|
* @param {string} platformId
|
|
297
328
|
* @throws {AppwriteException}
|
|
298
|
-
* @returns {Promise}
|
|
299
|
-
|
|
329
|
+
* @returns {Promise<{}>}
|
|
330
|
+
*/
|
|
300
331
|
deletePlatform(projectId: string, platformId: string): Promise<{}>;
|
|
301
332
|
/**
|
|
302
333
|
* Update service status
|
|
@@ -306,8 +337,8 @@ export declare class Projects extends Service {
|
|
|
306
337
|
* @param {ApiService} service
|
|
307
338
|
* @param {boolean} status
|
|
308
339
|
* @throws {AppwriteException}
|
|
309
|
-
* @returns {Promise}
|
|
310
|
-
|
|
340
|
+
* @returns {Promise<Models.Project>}
|
|
341
|
+
*/
|
|
311
342
|
updateServiceStatus(projectId: string, service: ApiService, status: boolean): Promise<Models.Project>;
|
|
312
343
|
/**
|
|
313
344
|
* Update all service status
|
|
@@ -316,8 +347,8 @@ export declare class Projects extends Service {
|
|
|
316
347
|
* @param {string} projectId
|
|
317
348
|
* @param {boolean} status
|
|
318
349
|
* @throws {AppwriteException}
|
|
319
|
-
* @returns {Promise}
|
|
320
|
-
|
|
350
|
+
* @returns {Promise<Models.Project>}
|
|
351
|
+
*/
|
|
321
352
|
updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
|
322
353
|
/**
|
|
323
354
|
* Update SMTP
|
|
@@ -334,8 +365,8 @@ export declare class Projects extends Service {
|
|
|
334
365
|
* @param {string} password
|
|
335
366
|
* @param {SMTPSecure} secure
|
|
336
367
|
* @throws {AppwriteException}
|
|
337
|
-
* @returns {Promise}
|
|
338
|
-
|
|
368
|
+
* @returns {Promise<Models.Project>}
|
|
369
|
+
*/
|
|
339
370
|
updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project>;
|
|
340
371
|
/**
|
|
341
372
|
* Create SMTP test
|
|
@@ -352,18 +383,18 @@ export declare class Projects extends Service {
|
|
|
352
383
|
* @param {string} password
|
|
353
384
|
* @param {SMTPSecure} secure
|
|
354
385
|
* @throws {AppwriteException}
|
|
355
|
-
* @returns {Promise}
|
|
356
|
-
|
|
386
|
+
* @returns {Promise<{}>}
|
|
387
|
+
*/
|
|
357
388
|
createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
|
|
358
389
|
/**
|
|
359
|
-
* Update
|
|
390
|
+
* Update project team
|
|
360
391
|
*
|
|
361
392
|
*
|
|
362
393
|
* @param {string} projectId
|
|
363
394
|
* @param {string} teamId
|
|
364
395
|
* @throws {AppwriteException}
|
|
365
|
-
* @returns {Promise}
|
|
366
|
-
|
|
396
|
+
* @returns {Promise<Models.Project>}
|
|
397
|
+
*/
|
|
367
398
|
updateTeam(projectId: string, teamId: string): Promise<Models.Project>;
|
|
368
399
|
/**
|
|
369
400
|
* Get custom email template
|
|
@@ -373,8 +404,8 @@ export declare class Projects extends Service {
|
|
|
373
404
|
* @param {EmailTemplateType} type
|
|
374
405
|
* @param {EmailTemplateLocale} locale
|
|
375
406
|
* @throws {AppwriteException}
|
|
376
|
-
* @returns {Promise}
|
|
377
|
-
|
|
407
|
+
* @returns {Promise<Models.EmailTemplate>}
|
|
408
|
+
*/
|
|
378
409
|
getEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
|
|
379
410
|
/**
|
|
380
411
|
* Update custom email templates
|
|
@@ -389,8 +420,8 @@ export declare class Projects extends Service {
|
|
|
389
420
|
* @param {string} senderEmail
|
|
390
421
|
* @param {string} replyTo
|
|
391
422
|
* @throws {AppwriteException}
|
|
392
|
-
* @returns {Promise}
|
|
393
|
-
|
|
423
|
+
* @returns {Promise<Models.Project>}
|
|
424
|
+
*/
|
|
394
425
|
updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
|
|
395
426
|
/**
|
|
396
427
|
* Reset custom email template
|
|
@@ -400,8 +431,8 @@ export declare class Projects extends Service {
|
|
|
400
431
|
* @param {EmailTemplateType} type
|
|
401
432
|
* @param {EmailTemplateLocale} locale
|
|
402
433
|
* @throws {AppwriteException}
|
|
403
|
-
* @returns {Promise}
|
|
404
|
-
|
|
434
|
+
* @returns {Promise<Models.EmailTemplate>}
|
|
435
|
+
*/
|
|
405
436
|
deleteEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
|
|
406
437
|
/**
|
|
407
438
|
* Get custom SMS template
|
|
@@ -411,8 +442,8 @@ export declare class Projects extends Service {
|
|
|
411
442
|
* @param {SmsTemplateType} type
|
|
412
443
|
* @param {SmsTemplateLocale} locale
|
|
413
444
|
* @throws {AppwriteException}
|
|
414
|
-
* @returns {Promise}
|
|
415
|
-
|
|
445
|
+
* @returns {Promise<Models.SmsTemplate>}
|
|
446
|
+
*/
|
|
416
447
|
getSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
|
|
417
448
|
/**
|
|
418
449
|
* Update custom SMS template
|
|
@@ -423,8 +454,8 @@ export declare class Projects extends Service {
|
|
|
423
454
|
* @param {SmsTemplateLocale} locale
|
|
424
455
|
* @param {string} message
|
|
425
456
|
* @throws {AppwriteException}
|
|
426
|
-
* @returns {Promise}
|
|
427
|
-
|
|
457
|
+
* @returns {Promise<Models.SmsTemplate>}
|
|
458
|
+
*/
|
|
428
459
|
updateSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string): Promise<Models.SmsTemplate>;
|
|
429
460
|
/**
|
|
430
461
|
* Reset custom SMS template
|
|
@@ -434,8 +465,8 @@ export declare class Projects extends Service {
|
|
|
434
465
|
* @param {SmsTemplateType} type
|
|
435
466
|
* @param {SmsTemplateLocale} locale
|
|
436
467
|
* @throws {AppwriteException}
|
|
437
|
-
* @returns {Promise}
|
|
438
|
-
|
|
468
|
+
* @returns {Promise<Models.SmsTemplate>}
|
|
469
|
+
*/
|
|
439
470
|
deleteSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
|
|
440
471
|
/**
|
|
441
472
|
* List webhooks
|
|
@@ -443,8 +474,8 @@ export declare class Projects extends Service {
|
|
|
443
474
|
*
|
|
444
475
|
* @param {string} projectId
|
|
445
476
|
* @throws {AppwriteException}
|
|
446
|
-
* @returns {Promise}
|
|
447
|
-
|
|
477
|
+
* @returns {Promise<Models.WebhookList>}
|
|
478
|
+
*/
|
|
448
479
|
listWebhooks(projectId: string): Promise<Models.WebhookList>;
|
|
449
480
|
/**
|
|
450
481
|
* Create webhook
|
|
@@ -459,8 +490,8 @@ export declare class Projects extends Service {
|
|
|
459
490
|
* @param {string} httpUser
|
|
460
491
|
* @param {string} httpPass
|
|
461
492
|
* @throws {AppwriteException}
|
|
462
|
-
* @returns {Promise}
|
|
463
|
-
|
|
493
|
+
* @returns {Promise<Models.Webhook>}
|
|
494
|
+
*/
|
|
464
495
|
createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
|
465
496
|
/**
|
|
466
497
|
* Get webhook
|
|
@@ -469,8 +500,8 @@ export declare class Projects extends Service {
|
|
|
469
500
|
* @param {string} projectId
|
|
470
501
|
* @param {string} webhookId
|
|
471
502
|
* @throws {AppwriteException}
|
|
472
|
-
* @returns {Promise}
|
|
473
|
-
|
|
503
|
+
* @returns {Promise<Models.Webhook>}
|
|
504
|
+
*/
|
|
474
505
|
getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
|
475
506
|
/**
|
|
476
507
|
* Update webhook
|
|
@@ -486,8 +517,8 @@ export declare class Projects extends Service {
|
|
|
486
517
|
* @param {string} httpUser
|
|
487
518
|
* @param {string} httpPass
|
|
488
519
|
* @throws {AppwriteException}
|
|
489
|
-
* @returns {Promise}
|
|
490
|
-
|
|
520
|
+
* @returns {Promise<Models.Webhook>}
|
|
521
|
+
*/
|
|
491
522
|
updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
|
492
523
|
/**
|
|
493
524
|
* Delete webhook
|
|
@@ -496,8 +527,8 @@ export declare class Projects extends Service {
|
|
|
496
527
|
* @param {string} projectId
|
|
497
528
|
* @param {string} webhookId
|
|
498
529
|
* @throws {AppwriteException}
|
|
499
|
-
* @returns {Promise}
|
|
500
|
-
|
|
530
|
+
* @returns {Promise<{}>}
|
|
531
|
+
*/
|
|
501
532
|
deleteWebhook(projectId: string, webhookId: string): Promise<{}>;
|
|
502
533
|
/**
|
|
503
534
|
* Update webhook signature key
|
|
@@ -506,7 +537,7 @@ export declare class Projects extends Service {
|
|
|
506
537
|
* @param {string} projectId
|
|
507
538
|
* @param {string} webhookId
|
|
508
539
|
* @throws {AppwriteException}
|
|
509
|
-
* @returns {Promise}
|
|
510
|
-
|
|
540
|
+
* @returns {Promise<Models.Webhook>}
|
|
541
|
+
*/
|
|
511
542
|
updateWebhookSignature(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
|
512
543
|
}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
import { Service } from '../service';
|
|
2
1
|
import { Client } from '../client';
|
|
3
2
|
import type { Models } from '../models';
|
|
4
3
|
import { ResourceType } from '../enums/resource-type';
|
|
5
|
-
export declare class Proxy
|
|
4
|
+
export declare class Proxy {
|
|
5
|
+
client: Client;
|
|
6
6
|
constructor(client: Client);
|
|
7
7
|
/**
|
|
8
8
|
* List Rules
|
|
9
9
|
*
|
|
10
|
-
* Get a list of all the proxy rules. You can use the query params to filter
|
|
11
|
-
* your results.
|
|
10
|
+
* Get a list of all the proxy rules. You can use the query params to filter your results.
|
|
12
11
|
*
|
|
13
12
|
* @param {string[]} queries
|
|
14
13
|
* @param {string} search
|
|
15
14
|
* @throws {AppwriteException}
|
|
16
|
-
* @returns {Promise}
|
|
17
|
-
|
|
15
|
+
* @returns {Promise<Models.ProxyRuleList>}
|
|
16
|
+
*/
|
|
18
17
|
listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
|
|
19
18
|
/**
|
|
20
19
|
* Create Rule
|
|
@@ -25,8 +24,8 @@ export declare class Proxy extends Service {
|
|
|
25
24
|
* @param {ResourceType} resourceType
|
|
26
25
|
* @param {string} resourceId
|
|
27
26
|
* @throws {AppwriteException}
|
|
28
|
-
* @returns {Promise}
|
|
29
|
-
|
|
27
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
28
|
+
*/
|
|
30
29
|
createRule(domain: string, resourceType: ResourceType, resourceId?: string): Promise<Models.ProxyRule>;
|
|
31
30
|
/**
|
|
32
31
|
* Get Rule
|
|
@@ -35,8 +34,8 @@ export declare class Proxy extends Service {
|
|
|
35
34
|
*
|
|
36
35
|
* @param {string} ruleId
|
|
37
36
|
* @throws {AppwriteException}
|
|
38
|
-
* @returns {Promise}
|
|
39
|
-
|
|
37
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
38
|
+
*/
|
|
40
39
|
getRule(ruleId: string): Promise<Models.ProxyRule>;
|
|
41
40
|
/**
|
|
42
41
|
* Delete Rule
|
|
@@ -45,8 +44,8 @@ export declare class Proxy extends Service {
|
|
|
45
44
|
*
|
|
46
45
|
* @param {string} ruleId
|
|
47
46
|
* @throws {AppwriteException}
|
|
48
|
-
* @returns {Promise}
|
|
49
|
-
|
|
47
|
+
* @returns {Promise<{}>}
|
|
48
|
+
*/
|
|
50
49
|
deleteRule(ruleId: string): Promise<{}>;
|
|
51
50
|
/**
|
|
52
51
|
* Update Rule Verification Status
|
|
@@ -54,7 +53,7 @@ export declare class Proxy extends Service {
|
|
|
54
53
|
*
|
|
55
54
|
* @param {string} ruleId
|
|
56
55
|
* @throws {AppwriteException}
|
|
57
|
-
* @returns {Promise}
|
|
58
|
-
|
|
56
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
57
|
+
*/
|
|
59
58
|
updateRuleVerification(ruleId: string): Promise<Models.ProxyRule>;
|
|
60
59
|
}
|