@appwrite.io/console 2.1.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +2201 -692
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +2202 -693
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +2201 -692
- package/docs/examples/account/create-anonymous-session.md +2 -0
- package/docs/examples/account/create-billing-address.md +2 -0
- package/docs/examples/account/create-email-password-session.md +2 -0
- package/docs/examples/account/create-email-token.md +2 -0
- package/docs/examples/account/create-email-verification.md +2 -0
- package/docs/examples/account/create-jwt.md +2 -0
- package/docs/examples/account/create-key.md +17 -0
- package/docs/examples/account/create-magic-url-token.md +2 -0
- package/docs/examples/account/create-mfa-authenticator.md +2 -0
- package/docs/examples/account/create-mfa-challenge.md +2 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/create-o-auth-2-session.md +2 -0
- package/docs/examples/account/create-o-auth-2-token.md +2 -0
- package/docs/examples/account/create-payment-method.md +2 -0
- package/docs/examples/account/create-phone-token.md +2 -0
- package/docs/examples/account/create-phone-verification.md +2 -0
- package/docs/examples/account/create-push-target.md +2 -0
- package/docs/examples/account/create-recovery.md +2 -0
- package/docs/examples/account/create-session.md +2 -0
- package/docs/examples/account/create-verification.md +2 -0
- package/docs/examples/account/create.md +2 -0
- package/docs/examples/account/delete-billing-address.md +2 -0
- package/docs/examples/account/delete-identity.md +2 -0
- package/docs/examples/account/delete-key.md +15 -0
- package/docs/examples/account/delete-mfa-authenticator.md +2 -0
- package/docs/examples/account/delete-payment-method.md +2 -0
- package/docs/examples/account/delete-push-target.md +2 -0
- package/docs/examples/account/delete-session.md +2 -0
- package/docs/examples/account/delete-sessions.md +2 -0
- package/docs/examples/account/delete.md +2 -0
- package/docs/examples/account/get-billing-address.md +2 -0
- package/docs/examples/account/get-coupon.md +2 -0
- package/docs/examples/account/get-key.md +15 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/get-payment-method.md +2 -0
- package/docs/examples/account/get-prefs.md +2 -0
- package/docs/examples/account/get-session.md +2 -0
- package/docs/examples/account/get.md +2 -0
- package/docs/examples/account/list-billing-addresses.md +2 -0
- package/docs/examples/account/list-identities.md +2 -0
- package/docs/examples/account/list-invoices.md +2 -0
- package/docs/examples/account/list-keys.md +15 -0
- package/docs/examples/account/list-logs.md +2 -0
- package/docs/examples/account/list-mfa-factors.md +2 -0
- package/docs/examples/account/list-payment-methods.md +2 -0
- package/docs/examples/account/list-sessions.md +2 -0
- package/docs/examples/account/update-billing-address.md +2 -0
- package/docs/examples/account/update-email-verification.md +2 -0
- package/docs/examples/account/update-email.md +2 -0
- package/docs/examples/account/update-key.md +18 -0
- package/docs/examples/account/update-magic-url-session.md +2 -0
- package/docs/examples/account/update-mfa-authenticator.md +2 -0
- package/docs/examples/account/update-mfa-challenge.md +2 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/update-mfa.md +2 -0
- package/docs/examples/account/update-name.md +2 -0
- package/docs/examples/account/update-password.md +2 -0
- package/docs/examples/account/update-payment-method-mandate-options.md +2 -0
- package/docs/examples/account/update-payment-method-provider.md +2 -0
- package/docs/examples/account/update-payment-method.md +2 -0
- package/docs/examples/account/update-phone-session.md +2 -0
- package/docs/examples/account/update-phone-verification.md +2 -0
- package/docs/examples/account/update-phone.md +2 -0
- package/docs/examples/account/update-prefs.md +2 -0
- package/docs/examples/account/update-push-target.md +2 -0
- package/docs/examples/account/update-recovery.md +2 -0
- package/docs/examples/account/update-session.md +2 -0
- package/docs/examples/account/update-status.md +2 -0
- package/docs/examples/account/update-verification.md +2 -0
- package/docs/examples/assistant/chat.md +2 -0
- package/docs/examples/avatars/get-browser.md +2 -0
- package/docs/examples/avatars/get-credit-card.md +2 -0
- package/docs/examples/avatars/get-favicon.md +2 -0
- package/docs/examples/avatars/get-flag.md +2 -0
- package/docs/examples/avatars/get-image.md +2 -0
- package/docs/examples/avatars/get-initials.md +2 -0
- package/docs/examples/avatars/get-qr.md +2 -0
- package/docs/examples/avatars/get-screenshot.md +7 -5
- package/docs/examples/backups/create-archive.md +4 -2
- package/docs/examples/backups/create-policy.md +4 -2
- package/docs/examples/backups/create-restoration.md +4 -2
- package/docs/examples/backups/delete-archive.md +2 -0
- package/docs/examples/backups/delete-policy.md +2 -0
- package/docs/examples/backups/get-archive.md +2 -0
- package/docs/examples/backups/get-policy.md +2 -0
- package/docs/examples/backups/get-restoration.md +2 -0
- package/docs/examples/backups/list-archives.md +2 -0
- package/docs/examples/backups/list-policies.md +2 -0
- package/docs/examples/backups/list-restorations.md +2 -0
- package/docs/examples/backups/update-policy.md +2 -0
- package/docs/examples/console/create-program-membership.md +2 -0
- package/docs/examples/console/create-source.md +2 -0
- package/docs/examples/console/get-campaign.md +2 -0
- package/docs/examples/console/get-coupon.md +2 -0
- package/docs/examples/console/get-plan.md +2 -0
- package/docs/examples/console/get-plans.md +2 -0
- package/docs/examples/console/get-program.md +2 -0
- package/docs/examples/console/get-resource.md +2 -0
- package/docs/examples/console/{get-regions.md → list-regions.md} +3 -3
- package/docs/examples/console/suggest-columns.md +2 -0
- package/docs/examples/console/suggest-indexes.md +2 -0
- package/docs/examples/console/variables.md +2 -0
- package/docs/examples/databases/create-boolean-attribute.md +2 -0
- package/docs/examples/databases/create-collection.md +2 -0
- package/docs/examples/databases/create-datetime-attribute.md +2 -0
- package/docs/examples/databases/create-document.md +2 -0
- package/docs/examples/databases/create-documents.md +2 -0
- package/docs/examples/databases/create-email-attribute.md +2 -0
- package/docs/examples/databases/create-enum-attribute.md +2 -0
- package/docs/examples/databases/create-float-attribute.md +2 -0
- package/docs/examples/databases/create-index.md +4 -2
- package/docs/examples/databases/create-integer-attribute.md +2 -0
- package/docs/examples/databases/create-ip-attribute.md +2 -0
- package/docs/examples/databases/create-line-attribute.md +2 -0
- package/docs/examples/databases/create-longtext-attribute.md +20 -0
- package/docs/examples/databases/create-mediumtext-attribute.md +20 -0
- package/docs/examples/databases/create-operations.md +2 -0
- package/docs/examples/databases/create-point-attribute.md +2 -0
- package/docs/examples/databases/create-polygon-attribute.md +2 -0
- package/docs/examples/databases/create-relationship-attribute.md +2 -0
- package/docs/examples/databases/create-string-attribute.md +2 -0
- package/docs/examples/databases/create-text-attribute.md +20 -0
- package/docs/examples/databases/create-transaction.md +2 -0
- package/docs/examples/databases/create-url-attribute.md +2 -0
- package/docs/examples/databases/create-varchar-attribute.md +21 -0
- package/docs/examples/databases/create.md +2 -0
- package/docs/examples/databases/decrement-document-attribute.md +2 -0
- package/docs/examples/databases/delete-attribute.md +2 -0
- package/docs/examples/databases/delete-collection.md +2 -0
- package/docs/examples/databases/delete-document.md +2 -0
- package/docs/examples/databases/delete-documents.md +2 -0
- package/docs/examples/databases/delete-index.md +2 -0
- package/docs/examples/databases/delete-transaction.md +2 -0
- package/docs/examples/databases/delete.md +2 -0
- package/docs/examples/databases/get-attribute.md +2 -0
- package/docs/examples/databases/get-collection-usage.md +2 -0
- package/docs/examples/databases/get-collection.md +2 -0
- package/docs/examples/databases/get-document.md +2 -0
- package/docs/examples/databases/get-index.md +2 -0
- package/docs/examples/databases/get-transaction.md +2 -0
- package/docs/examples/databases/get-usage.md +2 -0
- package/docs/examples/databases/get.md +2 -0
- package/docs/examples/databases/increment-document-attribute.md +2 -0
- package/docs/examples/databases/list-attributes.md +2 -0
- package/docs/examples/databases/list-collection-logs.md +2 -0
- package/docs/examples/databases/list-collections.md +2 -0
- package/docs/examples/databases/list-document-logs.md +2 -0
- package/docs/examples/databases/list-documents.md +2 -0
- package/docs/examples/databases/list-indexes.md +2 -0
- package/docs/examples/databases/list-logs.md +2 -0
- package/docs/examples/databases/list-transactions.md +2 -0
- package/docs/examples/databases/list-usage.md +2 -0
- package/docs/examples/databases/list.md +2 -0
- package/docs/examples/databases/update-boolean-attribute.md +2 -0
- package/docs/examples/databases/update-collection.md +3 -1
- package/docs/examples/databases/update-datetime-attribute.md +2 -0
- package/docs/examples/databases/update-document.md +2 -0
- package/docs/examples/databases/update-documents.md +2 -0
- package/docs/examples/databases/update-email-attribute.md +2 -0
- package/docs/examples/databases/update-enum-attribute.md +2 -0
- package/docs/examples/databases/update-float-attribute.md +2 -0
- package/docs/examples/databases/update-integer-attribute.md +2 -0
- package/docs/examples/databases/update-ip-attribute.md +2 -0
- package/docs/examples/databases/update-line-attribute.md +2 -0
- package/docs/examples/databases/update-longtext-attribute.md +20 -0
- package/docs/examples/databases/update-mediumtext-attribute.md +20 -0
- package/docs/examples/databases/update-point-attribute.md +2 -0
- package/docs/examples/databases/update-polygon-attribute.md +2 -0
- package/docs/examples/databases/update-relationship-attribute.md +2 -0
- package/docs/examples/databases/update-string-attribute.md +2 -0
- package/docs/examples/databases/update-text-attribute.md +20 -0
- package/docs/examples/databases/update-transaction.md +2 -0
- package/docs/examples/databases/update-url-attribute.md +2 -0
- package/docs/examples/databases/update-varchar-attribute.md +21 -0
- package/docs/examples/databases/update.md +3 -1
- package/docs/examples/databases/upsert-document.md +2 -0
- package/docs/examples/databases/upsert-documents.md +2 -0
- package/docs/examples/domains/create-preset-google-workspace.md +2 -0
- package/docs/examples/domains/create-preset-i-cloud.md +2 -0
- package/docs/examples/domains/create-preset-mailgun.md +2 -0
- package/docs/examples/domains/create-preset-outlook.md +2 -0
- package/docs/examples/domains/create-preset-proton-mail.md +2 -0
- package/docs/examples/domains/create-preset-zoho.md +2 -0
- package/docs/examples/domains/create-record-a.md +2 -0
- package/docs/examples/domains/create-record-aaaa.md +2 -0
- package/docs/examples/domains/create-record-alias.md +2 -0
- package/docs/examples/domains/create-record-caa.md +2 -0
- package/docs/examples/domains/create-record-cname.md +2 -0
- package/docs/examples/domains/create-record-https.md +2 -0
- package/docs/examples/domains/create-record-mx.md +2 -0
- package/docs/examples/domains/create-record-ns.md +2 -0
- package/docs/examples/domains/create-record-srv.md +2 -0
- package/docs/examples/domains/create-record-txt.md +2 -0
- package/docs/examples/domains/create.md +2 -0
- package/docs/examples/domains/delete-record.md +2 -0
- package/docs/examples/domains/delete.md +2 -0
- package/docs/examples/domains/get-preset-google-workspace.md +2 -0
- package/docs/examples/domains/get-preset-i-cloud.md +2 -0
- package/docs/examples/domains/get-preset-mailgun.md +2 -0
- package/docs/examples/domains/get-preset-outlook.md +2 -0
- package/docs/examples/domains/get-preset-proton-mail.md +2 -0
- package/docs/examples/domains/get-preset-zoho.md +2 -0
- package/docs/examples/domains/get-price.md +17 -0
- package/docs/examples/domains/get-record.md +2 -0
- package/docs/examples/domains/get-zone.md +2 -0
- package/docs/examples/domains/get.md +2 -0
- package/docs/examples/domains/list-records.md +2 -0
- package/docs/examples/domains/list-suggestions.md +2 -0
- package/docs/examples/domains/list.md +2 -0
- package/docs/examples/domains/update-nameservers.md +2 -0
- package/docs/examples/domains/update-record-a.md +2 -0
- package/docs/examples/domains/update-record-aaaa.md +2 -0
- package/docs/examples/domains/update-record-alias.md +2 -0
- package/docs/examples/domains/update-record-caa.md +2 -0
- package/docs/examples/domains/update-record-cname.md +2 -0
- package/docs/examples/domains/update-record-https.md +2 -0
- package/docs/examples/domains/update-record-mx.md +2 -0
- package/docs/examples/domains/update-record-ns.md +2 -0
- package/docs/examples/domains/update-record-srv.md +2 -0
- package/docs/examples/domains/update-record-txt.md +2 -0
- package/docs/examples/domains/update-team.md +2 -0
- package/docs/examples/domains/update-zone.md +2 -0
- package/docs/examples/functions/create-deployment.md +2 -0
- package/docs/examples/functions/create-duplicate-deployment.md +2 -0
- package/docs/examples/functions/create-execution.md +2 -0
- package/docs/examples/functions/create-template-deployment.md +2 -0
- package/docs/examples/functions/create-variable.md +2 -0
- package/docs/examples/functions/create-vcs-deployment.md +2 -0
- package/docs/examples/functions/create.md +4 -2
- package/docs/examples/functions/delete-deployment.md +2 -0
- package/docs/examples/functions/delete-execution.md +2 -0
- package/docs/examples/functions/delete-variable.md +2 -0
- package/docs/examples/functions/delete.md +2 -0
- package/docs/examples/functions/get-deployment-download.md +2 -0
- package/docs/examples/functions/get-deployment.md +2 -0
- package/docs/examples/functions/get-execution.md +2 -0
- package/docs/examples/functions/get-template.md +2 -0
- package/docs/examples/functions/get-usage.md +2 -0
- package/docs/examples/functions/get-variable.md +2 -0
- package/docs/examples/functions/get.md +2 -0
- package/docs/examples/functions/list-deployments.md +2 -0
- package/docs/examples/functions/list-executions.md +2 -0
- package/docs/examples/functions/list-runtimes.md +2 -0
- package/docs/examples/functions/list-specifications.md +2 -0
- package/docs/examples/functions/list-templates.md +5 -3
- package/docs/examples/functions/list-usage.md +2 -0
- package/docs/examples/functions/list-variables.md +2 -0
- package/docs/examples/functions/list.md +2 -0
- package/docs/examples/functions/update-deployment-status.md +2 -0
- package/docs/examples/functions/update-function-deployment.md +2 -0
- package/docs/examples/functions/update-variable.md +2 -0
- package/docs/examples/functions/update.md +4 -2
- package/docs/examples/graphql/mutation.md +2 -0
- package/docs/examples/graphql/query.md +2 -0
- package/docs/examples/health/get-antivirus.md +2 -0
- package/docs/examples/health/get-cache.md +2 -0
- package/docs/examples/health/get-certificate.md +2 -0
- package/docs/examples/health/get-db.md +2 -0
- package/docs/examples/health/get-failed-jobs.md +2 -0
- package/docs/examples/health/get-pub-sub.md +2 -0
- package/docs/examples/health/get-queue-audits.md +2 -0
- package/docs/examples/health/get-queue-billing-project-aggregation.md +2 -0
- package/docs/examples/health/get-queue-billing-team-aggregation.md +2 -0
- package/docs/examples/health/get-queue-builds.md +2 -0
- package/docs/examples/health/get-queue-certificates.md +2 -0
- package/docs/examples/health/get-queue-databases.md +2 -0
- package/docs/examples/health/get-queue-deletes.md +2 -0
- package/docs/examples/health/get-queue-functions.md +2 -0
- package/docs/examples/health/get-queue-logs.md +2 -0
- package/docs/examples/health/get-queue-mails.md +2 -0
- package/docs/examples/health/get-queue-messaging.md +2 -0
- package/docs/examples/health/get-queue-migrations.md +2 -0
- package/docs/examples/health/get-queue-priority-builds.md +2 -0
- package/docs/examples/health/get-queue-region-manager.md +2 -0
- package/docs/examples/health/get-queue-stats-resources.md +2 -0
- package/docs/examples/health/get-queue-threats.md +2 -0
- package/docs/examples/health/get-queue-usage.md +2 -0
- package/docs/examples/health/get-queue-webhooks.md +2 -0
- package/docs/examples/health/get-storage-local.md +2 -0
- package/docs/examples/health/get-storage.md +2 -0
- package/docs/examples/health/get-time.md +2 -0
- package/docs/examples/health/get.md +2 -0
- package/docs/examples/locale/get.md +2 -0
- package/docs/examples/locale/list-codes.md +2 -0
- package/docs/examples/locale/list-continents.md +2 -0
- package/docs/examples/locale/list-countries-eu.md +2 -0
- package/docs/examples/locale/list-countries-phones.md +2 -0
- package/docs/examples/locale/list-countries.md +2 -0
- package/docs/examples/locale/list-currencies.md +2 -0
- package/docs/examples/locale/list-languages.md +2 -0
- package/docs/examples/messaging/create-apns-provider.md +2 -0
- package/docs/examples/messaging/create-email.md +2 -0
- package/docs/examples/messaging/create-fcm-provider.md +2 -0
- package/docs/examples/messaging/create-mailgun-provider.md +2 -0
- package/docs/examples/messaging/create-msg-91-provider.md +2 -0
- package/docs/examples/messaging/create-push.md +2 -0
- package/docs/examples/messaging/create-resend-provider.md +2 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +2 -0
- package/docs/examples/messaging/create-sms.md +2 -0
- package/docs/examples/messaging/create-smtp-provider.md +2 -0
- package/docs/examples/messaging/create-subscriber.md +2 -0
- package/docs/examples/messaging/create-telesign-provider.md +2 -0
- package/docs/examples/messaging/create-textmagic-provider.md +2 -0
- package/docs/examples/messaging/create-topic.md +2 -0
- package/docs/examples/messaging/create-twilio-provider.md +2 -0
- package/docs/examples/messaging/create-vonage-provider.md +2 -0
- package/docs/examples/messaging/delete-provider.md +2 -0
- package/docs/examples/messaging/delete-subscriber.md +2 -0
- package/docs/examples/messaging/delete-topic.md +2 -0
- package/docs/examples/messaging/delete.md +2 -0
- package/docs/examples/messaging/get-message.md +2 -0
- package/docs/examples/messaging/get-provider.md +2 -0
- package/docs/examples/messaging/get-subscriber.md +2 -0
- package/docs/examples/messaging/get-topic.md +2 -0
- package/docs/examples/messaging/list-message-logs.md +2 -0
- package/docs/examples/messaging/list-messages.md +2 -0
- package/docs/examples/messaging/list-provider-logs.md +2 -0
- package/docs/examples/messaging/list-providers.md +2 -0
- package/docs/examples/messaging/list-subscriber-logs.md +2 -0
- package/docs/examples/messaging/list-subscribers.md +2 -0
- package/docs/examples/messaging/list-targets.md +2 -0
- package/docs/examples/messaging/list-topic-logs.md +2 -0
- package/docs/examples/messaging/list-topics.md +2 -0
- package/docs/examples/messaging/update-apns-provider.md +2 -0
- package/docs/examples/messaging/update-email.md +2 -0
- package/docs/examples/messaging/update-fcm-provider.md +2 -0
- package/docs/examples/messaging/update-mailgun-provider.md +2 -0
- package/docs/examples/messaging/update-msg-91-provider.md +2 -0
- package/docs/examples/messaging/update-push.md +2 -0
- package/docs/examples/messaging/update-resend-provider.md +2 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +2 -0
- package/docs/examples/messaging/update-sms.md +2 -0
- package/docs/examples/messaging/update-smtp-provider.md +2 -0
- package/docs/examples/messaging/update-telesign-provider.md +2 -0
- package/docs/examples/messaging/update-textmagic-provider.md +2 -0
- package/docs/examples/messaging/update-topic.md +2 -0
- package/docs/examples/messaging/update-twilio-provider.md +2 -0
- package/docs/examples/messaging/update-vonage-provider.md +2 -0
- package/docs/examples/migrations/create-appwrite-migration.md +4 -2
- package/docs/examples/migrations/create-csv-export.md +2 -0
- package/docs/examples/migrations/create-csv-import.md +2 -0
- package/docs/examples/migrations/create-firebase-migration.md +4 -2
- package/docs/examples/migrations/create-n-host-migration.md +4 -2
- package/docs/examples/migrations/create-supabase-migration.md +4 -2
- package/docs/examples/migrations/delete.md +2 -0
- package/docs/examples/migrations/get-appwrite-report.md +4 -2
- package/docs/examples/migrations/get-firebase-report.md +4 -2
- package/docs/examples/migrations/get-n-host-report.md +4 -2
- package/docs/examples/migrations/get-supabase-report.md +4 -2
- package/docs/examples/migrations/get.md +2 -0
- package/docs/examples/migrations/list.md +2 -0
- package/docs/examples/migrations/retry.md +2 -0
- package/docs/examples/organizations/add-credit.md +2 -0
- package/docs/examples/organizations/cancel-downgrade.md +2 -0
- package/docs/examples/organizations/create-downgrade-feedback.md +2 -0
- package/docs/examples/organizations/create-invoice-payment.md +2 -0
- package/docs/examples/organizations/create-key.md +18 -0
- package/docs/examples/organizations/create.md +4 -2
- package/docs/examples/organizations/delete-backup-payment-method.md +2 -0
- package/docs/examples/organizations/delete-billing-address.md +2 -0
- package/docs/examples/organizations/delete-default-payment-method.md +2 -0
- package/docs/examples/organizations/delete-key.md +16 -0
- package/docs/examples/organizations/delete.md +2 -0
- package/docs/examples/organizations/estimation-create-organization.md +4 -2
- package/docs/examples/organizations/estimation-delete-organization.md +2 -0
- package/docs/examples/organizations/estimation-update-plan.md +4 -2
- package/docs/examples/organizations/get-aggregation.md +2 -0
- package/docs/examples/organizations/get-available-credits.md +2 -0
- package/docs/examples/organizations/get-billing-address.md +2 -0
- package/docs/examples/organizations/get-credit.md +2 -0
- package/docs/examples/organizations/get-invoice-download.md +2 -0
- package/docs/examples/organizations/get-invoice-view.md +2 -0
- package/docs/examples/organizations/get-invoice.md +2 -0
- package/docs/examples/organizations/{update-projects.md → get-key.md} +4 -2
- package/docs/examples/organizations/get-payment-method.md +2 -0
- package/docs/examples/organizations/get-plan.md +2 -0
- package/docs/examples/organizations/get-scopes.md +2 -0
- package/docs/examples/organizations/get-usage.md +2 -0
- package/docs/examples/organizations/list-aggregations.md +2 -0
- package/docs/examples/organizations/list-credits.md +2 -0
- package/docs/examples/organizations/list-invoices.md +2 -0
- package/docs/examples/organizations/list-keys.md +16 -0
- package/docs/examples/organizations/list-regions.md +15 -0
- package/docs/examples/organizations/list.md +2 -0
- package/docs/examples/organizations/set-backup-payment-method.md +2 -0
- package/docs/examples/organizations/set-billing-address.md +2 -0
- package/docs/examples/organizations/set-billing-email.md +2 -0
- package/docs/examples/organizations/set-billing-tax-id.md +2 -0
- package/docs/examples/organizations/set-default-payment-method.md +2 -0
- package/docs/examples/organizations/update-budget.md +2 -0
- package/docs/examples/organizations/update-key.md +19 -0
- package/docs/examples/organizations/update-plan.md +4 -2
- package/docs/examples/organizations/validate-invoice.md +2 -0
- package/docs/examples/organizations/validate-payment.md +2 -0
- package/docs/examples/project/create-variable.md +2 -0
- package/docs/examples/project/delete-variable.md +2 -0
- package/docs/examples/project/get-usage.md +2 -0
- package/docs/examples/project/get-variable.md +2 -0
- package/docs/examples/project/list-variables.md +2 -0
- package/docs/examples/project/update-variable.md +2 -0
- package/docs/examples/projects/create-dev-key.md +2 -0
- package/docs/examples/projects/create-jwt.md +4 -2
- package/docs/examples/projects/create-key.md +5 -2
- package/docs/examples/projects/create-platform.md +2 -0
- package/docs/examples/projects/create-smtp-test.md +2 -0
- package/docs/examples/projects/create-webhook.md +2 -0
- package/docs/examples/projects/create.md +2 -0
- package/docs/examples/projects/delete-dev-key.md +2 -0
- package/docs/examples/projects/delete-email-template.md +2 -0
- package/docs/examples/projects/delete-key.md +2 -0
- package/docs/examples/projects/delete-platform.md +2 -0
- package/docs/examples/projects/delete-sms-template.md +2 -0
- package/docs/examples/projects/delete-webhook.md +2 -0
- package/docs/examples/projects/delete.md +2 -0
- package/docs/examples/projects/get-dev-key.md +2 -0
- package/docs/examples/projects/get-email-template.md +2 -0
- package/docs/examples/projects/get-key.md +2 -0
- package/docs/examples/projects/get-platform.md +2 -0
- package/docs/examples/projects/get-sms-template.md +2 -0
- package/docs/examples/projects/get-webhook.md +2 -0
- package/docs/examples/projects/get.md +2 -0
- package/docs/examples/projects/list-dev-keys.md +2 -0
- package/docs/examples/projects/list-keys.md +3 -0
- package/docs/examples/projects/list-platforms.md +2 -0
- package/docs/examples/projects/list-webhooks.md +2 -0
- package/docs/examples/projects/list.md +2 -0
- package/docs/examples/projects/update-api-status-all.md +2 -0
- package/docs/examples/projects/update-api-status.md +2 -0
- package/docs/examples/projects/update-auth-duration.md +2 -0
- package/docs/examples/projects/update-auth-limit.md +2 -0
- package/docs/examples/projects/update-auth-password-dictionary.md +2 -0
- package/docs/examples/projects/update-auth-password-history.md +2 -0
- package/docs/examples/projects/update-auth-sessions-limit.md +2 -0
- package/docs/examples/projects/update-auth-status.md +2 -0
- package/docs/examples/projects/update-dev-key.md +2 -0
- package/docs/examples/projects/update-email-template.md +2 -0
- package/docs/examples/projects/update-key.md +4 -2
- package/docs/examples/projects/update-labels.md +2 -0
- package/docs/examples/projects/update-memberships-privacy.md +2 -0
- package/docs/examples/projects/update-mock-numbers.md +2 -0
- package/docs/examples/projects/update-o-auth-2.md +2 -0
- package/docs/examples/projects/update-personal-data-check.md +2 -0
- package/docs/examples/projects/update-platform.md +2 -0
- package/docs/examples/projects/update-service-status-all.md +2 -0
- package/docs/examples/projects/update-service-status.md +2 -0
- package/docs/examples/projects/update-session-alerts.md +2 -0
- package/docs/examples/projects/update-session-invalidation.md +2 -0
- package/docs/examples/projects/update-sms-template.md +2 -0
- package/docs/examples/projects/update-smtp.md +2 -0
- package/docs/examples/projects/update-team.md +2 -0
- package/docs/examples/projects/update-webhook-signature.md +2 -0
- package/docs/examples/projects/update-webhook.md +2 -0
- package/docs/examples/projects/update.md +2 -0
- package/docs/examples/proxy/create-api-rule.md +2 -0
- package/docs/examples/proxy/create-function-rule.md +2 -0
- package/docs/examples/proxy/create-redirect-rule.md +2 -0
- package/docs/examples/proxy/create-site-rule.md +2 -0
- package/docs/examples/proxy/delete-rule.md +2 -0
- package/docs/examples/proxy/get-rule.md +2 -0
- package/docs/examples/proxy/list-rules.md +2 -0
- package/docs/examples/proxy/update-rule-verification.md +2 -0
- package/docs/examples/sites/create-deployment.md +2 -0
- package/docs/examples/sites/create-duplicate-deployment.md +2 -0
- package/docs/examples/sites/create-template-deployment.md +2 -0
- package/docs/examples/sites/create-variable.md +2 -0
- package/docs/examples/sites/create-vcs-deployment.md +2 -0
- package/docs/examples/sites/create.md +2 -0
- package/docs/examples/sites/delete-deployment.md +2 -0
- package/docs/examples/sites/delete-log.md +2 -0
- package/docs/examples/sites/delete-variable.md +2 -0
- package/docs/examples/sites/delete.md +2 -0
- package/docs/examples/sites/get-deployment-download.md +2 -0
- package/docs/examples/sites/get-deployment.md +2 -0
- package/docs/examples/sites/get-log.md +2 -0
- package/docs/examples/sites/get-template.md +2 -0
- package/docs/examples/sites/get-usage.md +2 -0
- package/docs/examples/sites/get-variable.md +2 -0
- package/docs/examples/sites/get.md +2 -0
- package/docs/examples/sites/list-deployments.md +2 -0
- package/docs/examples/sites/list-frameworks.md +2 -0
- package/docs/examples/sites/list-logs.md +2 -0
- package/docs/examples/sites/list-specifications.md +2 -0
- package/docs/examples/sites/list-templates.md +5 -3
- package/docs/examples/sites/list-usage.md +2 -0
- package/docs/examples/sites/list-variables.md +2 -0
- package/docs/examples/sites/list.md +2 -0
- package/docs/examples/sites/update-deployment-status.md +2 -0
- package/docs/examples/sites/update-site-deployment.md +2 -0
- package/docs/examples/sites/update-variable.md +2 -0
- package/docs/examples/sites/update.md +2 -0
- package/docs/examples/storage/create-bucket.md +2 -0
- package/docs/examples/storage/create-file.md +2 -0
- package/docs/examples/storage/delete-bucket.md +2 -0
- package/docs/examples/storage/delete-file.md +2 -0
- package/docs/examples/storage/get-bucket-usage.md +2 -0
- package/docs/examples/storage/get-bucket.md +2 -0
- package/docs/examples/storage/get-file-download.md +2 -0
- package/docs/examples/storage/get-file-preview.md +2 -0
- package/docs/examples/storage/get-file-view.md +2 -0
- package/docs/examples/storage/get-file.md +2 -0
- package/docs/examples/storage/get-usage.md +2 -0
- package/docs/examples/storage/list-buckets.md +2 -0
- package/docs/examples/storage/list-files.md +2 -0
- package/docs/examples/storage/update-bucket.md +2 -0
- package/docs/examples/storage/update-file.md +2 -0
- package/docs/examples/tablesdb/create-boolean-column.md +2 -0
- package/docs/examples/tablesdb/create-datetime-column.md +2 -0
- package/docs/examples/tablesdb/create-email-column.md +2 -0
- package/docs/examples/tablesdb/create-enum-column.md +2 -0
- package/docs/examples/tablesdb/create-float-column.md +2 -0
- package/docs/examples/tablesdb/create-index.md +4 -2
- package/docs/examples/tablesdb/create-integer-column.md +2 -0
- package/docs/examples/tablesdb/create-ip-column.md +2 -0
- package/docs/examples/tablesdb/create-line-column.md +2 -0
- package/docs/examples/tablesdb/create-longtext-column.md +20 -0
- package/docs/examples/tablesdb/create-mediumtext-column.md +20 -0
- package/docs/examples/tablesdb/create-operations.md +2 -0
- package/docs/examples/tablesdb/create-point-column.md +2 -0
- package/docs/examples/tablesdb/create-polygon-column.md +2 -0
- package/docs/examples/tablesdb/create-relationship-column.md +2 -0
- package/docs/examples/tablesdb/create-row.md +2 -0
- package/docs/examples/tablesdb/create-rows.md +2 -0
- package/docs/examples/tablesdb/create-string-column.md +2 -0
- package/docs/examples/tablesdb/create-table.md +2 -0
- package/docs/examples/tablesdb/create-text-column.md +20 -0
- package/docs/examples/tablesdb/create-transaction.md +2 -0
- package/docs/examples/tablesdb/create-url-column.md +2 -0
- package/docs/examples/tablesdb/create-varchar-column.md +21 -0
- package/docs/examples/tablesdb/create.md +2 -0
- package/docs/examples/tablesdb/decrement-row-column.md +2 -0
- package/docs/examples/tablesdb/delete-column.md +2 -0
- package/docs/examples/tablesdb/delete-index.md +2 -0
- package/docs/examples/tablesdb/delete-row.md +2 -0
- package/docs/examples/tablesdb/delete-rows.md +2 -0
- package/docs/examples/tablesdb/delete-table.md +2 -0
- package/docs/examples/tablesdb/delete-transaction.md +2 -0
- package/docs/examples/tablesdb/delete.md +2 -0
- package/docs/examples/tablesdb/get-column.md +2 -0
- package/docs/examples/tablesdb/get-index.md +2 -0
- package/docs/examples/tablesdb/get-row.md +2 -0
- package/docs/examples/tablesdb/get-table-usage.md +2 -0
- package/docs/examples/tablesdb/get-table.md +2 -0
- package/docs/examples/tablesdb/get-transaction.md +2 -0
- package/docs/examples/tablesdb/get-usage.md +2 -0
- package/docs/examples/tablesdb/get.md +2 -0
- package/docs/examples/tablesdb/increment-row-column.md +2 -0
- package/docs/examples/tablesdb/list-columns.md +2 -0
- package/docs/examples/tablesdb/list-indexes.md +2 -0
- package/docs/examples/tablesdb/list-row-logs.md +2 -0
- package/docs/examples/tablesdb/list-rows.md +2 -0
- package/docs/examples/tablesdb/list-table-logs.md +2 -0
- package/docs/examples/tablesdb/list-tables.md +2 -0
- package/docs/examples/tablesdb/list-transactions.md +2 -0
- package/docs/examples/tablesdb/list-usage.md +2 -0
- package/docs/examples/tablesdb/list.md +2 -0
- package/docs/examples/tablesdb/update-boolean-column.md +2 -0
- package/docs/examples/tablesdb/update-datetime-column.md +2 -0
- package/docs/examples/tablesdb/update-email-column.md +2 -0
- package/docs/examples/tablesdb/update-enum-column.md +2 -0
- package/docs/examples/tablesdb/update-float-column.md +2 -0
- package/docs/examples/tablesdb/update-integer-column.md +2 -0
- package/docs/examples/tablesdb/update-ip-column.md +2 -0
- package/docs/examples/tablesdb/update-line-column.md +2 -0
- package/docs/examples/tablesdb/update-longtext-column.md +20 -0
- package/docs/examples/tablesdb/update-mediumtext-column.md +20 -0
- package/docs/examples/tablesdb/update-point-column.md +2 -0
- package/docs/examples/tablesdb/update-polygon-column.md +2 -0
- package/docs/examples/tablesdb/update-relationship-column.md +2 -0
- package/docs/examples/tablesdb/update-row.md +2 -0
- package/docs/examples/tablesdb/update-rows.md +2 -0
- package/docs/examples/tablesdb/update-string-column.md +2 -0
- package/docs/examples/tablesdb/update-table.md +3 -1
- package/docs/examples/tablesdb/update-text-column.md +20 -0
- package/docs/examples/tablesdb/update-transaction.md +2 -0
- package/docs/examples/tablesdb/update-url-column.md +2 -0
- package/docs/examples/tablesdb/update-varchar-column.md +21 -0
- package/docs/examples/tablesdb/update.md +3 -1
- package/docs/examples/tablesdb/upsert-row.md +2 -0
- package/docs/examples/tablesdb/upsert-rows.md +2 -0
- package/docs/examples/teams/create-membership.md +2 -0
- package/docs/examples/teams/create.md +2 -0
- package/docs/examples/teams/delete-membership.md +2 -0
- package/docs/examples/teams/delete.md +2 -0
- package/docs/examples/teams/get-membership.md +2 -0
- package/docs/examples/teams/get-prefs.md +2 -0
- package/docs/examples/teams/get.md +2 -0
- package/docs/examples/teams/list-logs.md +2 -0
- package/docs/examples/teams/list-memberships.md +2 -0
- package/docs/examples/teams/list.md +2 -0
- package/docs/examples/teams/update-membership-status.md +2 -0
- package/docs/examples/teams/update-membership.md +2 -0
- package/docs/examples/teams/update-name.md +2 -0
- package/docs/examples/teams/update-prefs.md +2 -0
- package/docs/examples/tokens/create-file-token.md +2 -0
- package/docs/examples/tokens/delete.md +2 -0
- package/docs/examples/tokens/get.md +2 -0
- package/docs/examples/tokens/list.md +2 -0
- package/docs/examples/tokens/update.md +2 -0
- package/docs/examples/users/create-argon-2-user.md +2 -0
- package/docs/examples/users/create-bcrypt-user.md +2 -0
- package/docs/examples/users/create-jwt.md +2 -0
- package/docs/examples/users/create-md-5-user.md +2 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/create-ph-pass-user.md +2 -0
- package/docs/examples/users/create-scrypt-modified-user.md +2 -0
- package/docs/examples/users/create-scrypt-user.md +2 -0
- package/docs/examples/users/create-session.md +2 -0
- package/docs/examples/users/create-sha-user.md +2 -0
- package/docs/examples/users/create-target.md +2 -0
- package/docs/examples/users/create-token.md +2 -0
- package/docs/examples/users/create.md +2 -0
- package/docs/examples/users/delete-identity.md +2 -0
- package/docs/examples/users/delete-mfa-authenticator.md +2 -0
- package/docs/examples/users/delete-session.md +2 -0
- package/docs/examples/users/delete-sessions.md +2 -0
- package/docs/examples/users/delete-target.md +2 -0
- package/docs/examples/users/delete.md +2 -0
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/get-prefs.md +2 -0
- package/docs/examples/users/get-target.md +2 -0
- package/docs/examples/users/get-usage.md +2 -0
- package/docs/examples/users/get.md +2 -0
- package/docs/examples/users/list-identities.md +2 -0
- package/docs/examples/users/list-logs.md +2 -0
- package/docs/examples/users/list-memberships.md +2 -0
- package/docs/examples/users/list-mfa-factors.md +2 -0
- package/docs/examples/users/list-sessions.md +2 -0
- package/docs/examples/users/list-targets.md +2 -0
- package/docs/examples/users/list.md +2 -0
- package/docs/examples/users/update-email-verification.md +2 -0
- package/docs/examples/users/update-email.md +2 -0
- package/docs/examples/users/update-labels.md +2 -0
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/update-mfa.md +2 -0
- package/docs/examples/users/update-name.md +2 -0
- package/docs/examples/users/update-password.md +2 -0
- package/docs/examples/users/update-phone-verification.md +2 -0
- package/docs/examples/users/update-phone.md +2 -0
- package/docs/examples/users/update-prefs.md +2 -0
- package/docs/examples/users/update-status.md +2 -0
- package/docs/examples/users/update-target.md +2 -0
- package/docs/examples/vcs/create-repository-detection.md +2 -0
- package/docs/examples/vcs/create-repository.md +2 -0
- package/docs/examples/vcs/delete-installation.md +2 -0
- package/docs/examples/vcs/get-installation.md +2 -0
- package/docs/examples/vcs/get-repository-contents.md +2 -0
- package/docs/examples/vcs/get-repository.md +2 -0
- package/docs/examples/vcs/list-installations.md +2 -0
- package/docs/examples/vcs/list-repositories.md +2 -0
- package/docs/examples/vcs/list-repository-branches.md +2 -0
- package/docs/examples/vcs/update-external-deployments.md +2 -0
- package/package.json +1 -1
- package/src/channel.ts +38 -22
- package/src/client.ts +110 -49
- package/src/enums/backup-services.ts +5 -0
- package/src/enums/browser-permission.ts +22 -0
- package/src/enums/build-runtime.ts +5 -0
- package/src/enums/deployment-status.ts +1 -0
- package/src/enums/frameworks.ts +17 -0
- package/src/enums/order-by.ts +4 -0
- package/src/enums/registration-type.ts +6 -0
- package/src/enums/resources.ts +13 -0
- package/src/enums/runtime.ts +5 -0
- package/src/enums/runtimes.ts +71 -0
- package/src/enums/scopes.ts +66 -0
- package/src/enums/use-cases.ts +11 -0
- package/src/index.ts +9 -2
- package/src/models.ts +394 -4
- package/src/services/account.ts +375 -67
- package/src/services/assistant.ts +1 -1
- package/src/services/avatars.ts +20 -19
- package/src/services/backups.ts +37 -36
- package/src/services/console.ts +12 -43
- package/src/services/databases.ts +1061 -281
- package/src/services/domains.ts +114 -44
- package/src/services/functions.ts +61 -58
- package/src/services/graphql.ts +4 -4
- package/src/services/health.ts +23 -21
- package/src/services/messaging.ts +56 -56
- package/src/services/migrations.ts +79 -78
- package/src/services/organizations.ts +430 -94
- package/src/services/project.ts +5 -5
- package/src/services/projects.ts +106 -155
- package/src/services/proxy.ts +8 -8
- package/src/services/realtime.ts +135 -58
- package/src/services/sites.ts +43 -41
- package/src/services/storage.ts +17 -17
- package/src/services/tables-db.ts +1051 -269
- package/src/services/teams.ts +14 -14
- package/src/services/tokens.ts +5 -5
- package/src/services/users.ts +50 -50
- package/src/services/vcs.ts +10 -10
- package/types/channel.d.ts +9 -7
- package/types/client.d.ts +7 -2
- package/types/enums/backup-services.d.ts +5 -0
- package/types/enums/browser-permission.d.ts +22 -0
- package/types/enums/build-runtime.d.ts +6 -1
- package/types/enums/deployment-status.d.ts +1 -0
- package/types/enums/frameworks.d.ts +17 -0
- package/types/enums/order-by.d.ts +4 -0
- package/types/enums/registration-type.d.ts +6 -0
- package/types/enums/resources.d.ts +13 -0
- package/types/enums/runtime.d.ts +6 -1
- package/types/enums/runtimes.d.ts +71 -0
- package/types/enums/scopes.d.ts +66 -0
- package/types/enums/use-cases.d.ts +11 -0
- package/types/index.d.ts +9 -2
- package/types/models.d.ts +385 -4
- package/types/services/account.d.ts +111 -0
- package/types/services/avatars.d.ts +5 -4
- package/types/services/backups.d.ts +13 -12
- package/types/services/console.d.ts +1 -13
- package/types/services/databases.d.ts +303 -8
- package/types/services/domains.d.ts +26 -0
- package/types/services/functions.d.ts +18 -15
- package/types/services/health.d.ts +2 -0
- package/types/services/migrations.d.ts +33 -32
- package/types/services/organizations.d.ts +151 -29
- package/types/services/projects.d.ts +20 -36
- package/types/services/realtime.d.ts +13 -6
- package/types/services/sites.d.ts +9 -7
- package/types/services/tables-db.d.ts +305 -8
- package/docs/examples/projects/update-status.md +0 -14
- package/src/enums/billing-plan.ts +0 -17
- package/src/enums/status.ts +0 -4
- package/types/enums/billing-plan.d.ts +0 -17
- package/types/enums/status.d.ts +0 -4
package/src/services/teams.ts
CHANGED
|
@@ -19,7 +19,7 @@ export class Teams {
|
|
|
19
19
|
* @throws {AppwriteException}
|
|
20
20
|
* @returns {Promise<Models.TeamList<Preferences>>}
|
|
21
21
|
*/
|
|
22
|
-
list<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: { queries?: string[], search?: string, total?: boolean
|
|
22
|
+
list<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.TeamList<Preferences>>;
|
|
23
23
|
/**
|
|
24
24
|
* Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
|
|
25
25
|
*
|
|
@@ -85,7 +85,7 @@ export class Teams {
|
|
|
85
85
|
* @throws {AppwriteException}
|
|
86
86
|
* @returns {Promise<Models.Team<Preferences>>}
|
|
87
87
|
*/
|
|
88
|
-
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string, name: string, roles?: string[]
|
|
88
|
+
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string, name: string, roles?: string[] }): Promise<Models.Team<Preferences>>;
|
|
89
89
|
/**
|
|
90
90
|
* Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
|
|
91
91
|
*
|
|
@@ -156,7 +156,7 @@ export class Teams {
|
|
|
156
156
|
* @throws {AppwriteException}
|
|
157
157
|
* @returns {Promise<Models.Team<Preferences>>}
|
|
158
158
|
*/
|
|
159
|
-
get<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string
|
|
159
|
+
get<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string }): Promise<Models.Team<Preferences>>;
|
|
160
160
|
/**
|
|
161
161
|
* Get a team by its ID. All team members have read access for this resource.
|
|
162
162
|
*
|
|
@@ -208,7 +208,7 @@ export class Teams {
|
|
|
208
208
|
* @throws {AppwriteException}
|
|
209
209
|
* @returns {Promise<Models.Team<Preferences>>}
|
|
210
210
|
*/
|
|
211
|
-
updateName<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string, name: string
|
|
211
|
+
updateName<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string, name: string }): Promise<Models.Team<Preferences>>;
|
|
212
212
|
/**
|
|
213
213
|
* Update the team's name by its unique ID.
|
|
214
214
|
*
|
|
@@ -270,7 +270,7 @@ export class Teams {
|
|
|
270
270
|
* @throws {AppwriteException}
|
|
271
271
|
* @returns {Promise<{}>}
|
|
272
272
|
*/
|
|
273
|
-
delete(params: { teamId: string
|
|
273
|
+
delete(params: { teamId: string }): Promise<{}>;
|
|
274
274
|
/**
|
|
275
275
|
* Delete a team using its ID. Only team members with the owner role can delete the team.
|
|
276
276
|
*
|
|
@@ -324,7 +324,7 @@ export class Teams {
|
|
|
324
324
|
* @throws {AppwriteException}
|
|
325
325
|
* @returns {Promise<Models.LogList>}
|
|
326
326
|
*/
|
|
327
|
-
listLogs(params: { teamId: string, queries?: string[], total?: boolean
|
|
327
|
+
listLogs(params: { teamId: string, queries?: string[], total?: boolean }): Promise<Models.LogList>;
|
|
328
328
|
/**
|
|
329
329
|
* Get the team activity logs list by its unique ID.
|
|
330
330
|
*
|
|
@@ -391,7 +391,7 @@ export class Teams {
|
|
|
391
391
|
* @throws {AppwriteException}
|
|
392
392
|
* @returns {Promise<Models.MembershipList>}
|
|
393
393
|
*/
|
|
394
|
-
listMemberships(params: { teamId: string, queries?: string[], search?: string, total?: boolean
|
|
394
|
+
listMemberships(params: { teamId: string, queries?: string[], search?: string, total?: boolean }): Promise<Models.MembershipList>;
|
|
395
395
|
/**
|
|
396
396
|
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.
|
|
397
397
|
*
|
|
@@ -474,7 +474,7 @@ export class Teams {
|
|
|
474
474
|
* @throws {AppwriteException}
|
|
475
475
|
* @returns {Promise<Models.Membership>}
|
|
476
476
|
*/
|
|
477
|
-
createMembership(params: { teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string
|
|
477
|
+
createMembership(params: { teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string }): Promise<Models.Membership>;
|
|
478
478
|
/**
|
|
479
479
|
* Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.
|
|
480
480
|
*
|
|
@@ -574,7 +574,7 @@ export class Teams {
|
|
|
574
574
|
* @throws {AppwriteException}
|
|
575
575
|
* @returns {Promise<Models.Membership>}
|
|
576
576
|
*/
|
|
577
|
-
getMembership(params: { teamId: string, membershipId: string
|
|
577
|
+
getMembership(params: { teamId: string, membershipId: string }): Promise<Models.Membership>;
|
|
578
578
|
/**
|
|
579
579
|
* Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
|
|
580
580
|
*
|
|
@@ -635,7 +635,7 @@ export class Teams {
|
|
|
635
635
|
* @throws {AppwriteException}
|
|
636
636
|
* @returns {Promise<Models.Membership>}
|
|
637
637
|
*/
|
|
638
|
-
updateMembership(params: { teamId: string, membershipId: string, roles: string[]
|
|
638
|
+
updateMembership(params: { teamId: string, membershipId: string, roles: string[] }): Promise<Models.Membership>;
|
|
639
639
|
/**
|
|
640
640
|
* Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](https://appwrite.io/docs/permissions).
|
|
641
641
|
*
|
|
@@ -705,7 +705,7 @@ export class Teams {
|
|
|
705
705
|
* @throws {AppwriteException}
|
|
706
706
|
* @returns {Promise<{}>}
|
|
707
707
|
*/
|
|
708
|
-
deleteMembership(params: { teamId: string, membershipId: string
|
|
708
|
+
deleteMembership(params: { teamId: string, membershipId: string }): Promise<{}>;
|
|
709
709
|
/**
|
|
710
710
|
* This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.
|
|
711
711
|
*
|
|
@@ -770,7 +770,7 @@ export class Teams {
|
|
|
770
770
|
* @throws {AppwriteException}
|
|
771
771
|
* @returns {Promise<Models.Membership>}
|
|
772
772
|
*/
|
|
773
|
-
updateMembershipStatus(params: { teamId: string, membershipId: string, userId: string, secret: string
|
|
773
|
+
updateMembershipStatus(params: { teamId: string, membershipId: string, userId: string, secret: string }): Promise<Models.Membership>;
|
|
774
774
|
/**
|
|
775
775
|
* Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.
|
|
776
776
|
*
|
|
@@ -850,7 +850,7 @@ export class Teams {
|
|
|
850
850
|
* @throws {AppwriteException}
|
|
851
851
|
* @returns {Promise<Preferences>}
|
|
852
852
|
*/
|
|
853
|
-
getPrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string
|
|
853
|
+
getPrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string }): Promise<Preferences>;
|
|
854
854
|
/**
|
|
855
855
|
* Get the team's shared preferences by its unique ID. If a preference doesn't need to be shared by all team members, prefer storing them in [user preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
|
|
856
856
|
*
|
|
@@ -902,7 +902,7 @@ export class Teams {
|
|
|
902
902
|
* @throws {AppwriteException}
|
|
903
903
|
* @returns {Promise<Preferences>}
|
|
904
904
|
*/
|
|
905
|
-
updatePrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string, prefs: object
|
|
905
|
+
updatePrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { teamId: string, prefs: object }): Promise<Preferences>;
|
|
906
906
|
/**
|
|
907
907
|
* Update the team's preferences by its unique ID. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
|
|
908
908
|
*
|
package/src/services/tokens.ts
CHANGED
|
@@ -20,7 +20,7 @@ export class Tokens {
|
|
|
20
20
|
* @throws {AppwriteException}
|
|
21
21
|
* @returns {Promise<Models.ResourceTokenList>}
|
|
22
22
|
*/
|
|
23
|
-
list(params: { bucketId: string, fileId: string, queries?: string[], total?: boolean
|
|
23
|
+
list(params: { bucketId: string, fileId: string, queries?: string[], total?: boolean }): Promise<Models.ResourceTokenList>;
|
|
24
24
|
/**
|
|
25
25
|
* List all the tokens created for a specific file or bucket. You can use the query params to filter your results.
|
|
26
26
|
*
|
|
@@ -92,7 +92,7 @@ export class Tokens {
|
|
|
92
92
|
* @throws {AppwriteException}
|
|
93
93
|
* @returns {Promise<Models.ResourceToken>}
|
|
94
94
|
*/
|
|
95
|
-
createFileToken(params: { bucketId: string, fileId: string, expire?: string
|
|
95
|
+
createFileToken(params: { bucketId: string, fileId: string, expire?: string }): Promise<Models.ResourceToken>;
|
|
96
96
|
/**
|
|
97
97
|
* Create a new token. A token is linked to a file. Token can be passed as a request URL search parameter.
|
|
98
98
|
*
|
|
@@ -157,7 +157,7 @@ export class Tokens {
|
|
|
157
157
|
* @throws {AppwriteException}
|
|
158
158
|
* @returns {Promise<Models.ResourceToken>}
|
|
159
159
|
*/
|
|
160
|
-
get(params: { tokenId: string
|
|
160
|
+
get(params: { tokenId: string }): Promise<Models.ResourceToken>;
|
|
161
161
|
/**
|
|
162
162
|
* Get a token by its unique ID.
|
|
163
163
|
*
|
|
@@ -209,7 +209,7 @@ export class Tokens {
|
|
|
209
209
|
* @throws {AppwriteException}
|
|
210
210
|
* @returns {Promise<Models.ResourceToken>}
|
|
211
211
|
*/
|
|
212
|
-
update(params: { tokenId: string, expire?: string
|
|
212
|
+
update(params: { tokenId: string, expire?: string }): Promise<Models.ResourceToken>;
|
|
213
213
|
/**
|
|
214
214
|
* Update a token by its unique ID. Use this endpoint to update a token's expiry date.
|
|
215
215
|
*
|
|
@@ -268,7 +268,7 @@ export class Tokens {
|
|
|
268
268
|
* @throws {AppwriteException}
|
|
269
269
|
* @returns {Promise<{}>}
|
|
270
270
|
*/
|
|
271
|
-
delete(params: { tokenId: string
|
|
271
|
+
delete(params: { tokenId: string }): Promise<{}>;
|
|
272
272
|
/**
|
|
273
273
|
* Delete a token by its unique ID.
|
|
274
274
|
*
|
package/src/services/users.ts
CHANGED
|
@@ -23,7 +23,7 @@ export class Users {
|
|
|
23
23
|
* @throws {AppwriteException}
|
|
24
24
|
* @returns {Promise<Models.UserList<Preferences>>}
|
|
25
25
|
*/
|
|
26
|
-
list<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: { queries?: string[], search?: string, total?: boolean
|
|
26
|
+
list<Preferences extends Models.Preferences = Models.DefaultPreferences>(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.UserList<Preferences>>;
|
|
27
27
|
/**
|
|
28
28
|
* Get a list of all the project's users. You can use the query params to filter your results.
|
|
29
29
|
*
|
|
@@ -91,7 +91,7 @@ export class Users {
|
|
|
91
91
|
* @throws {AppwriteException}
|
|
92
92
|
* @returns {Promise<Models.User<Preferences>>}
|
|
93
93
|
*/
|
|
94
|
-
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email?: string, phone?: string, password?: string, name?: string
|
|
94
|
+
create<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email?: string, phone?: string, password?: string, name?: string }): Promise<Models.User<Preferences>>;
|
|
95
95
|
/**
|
|
96
96
|
* Create a new user.
|
|
97
97
|
*
|
|
@@ -174,7 +174,7 @@ export class Users {
|
|
|
174
174
|
* @throws {AppwriteException}
|
|
175
175
|
* @returns {Promise<Models.User<Preferences>>}
|
|
176
176
|
*/
|
|
177
|
-
createArgon2User<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string
|
|
177
|
+
createArgon2User<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string }): Promise<Models.User<Preferences>>;
|
|
178
178
|
/**
|
|
179
179
|
* Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
180
180
|
*
|
|
@@ -257,7 +257,7 @@ export class Users {
|
|
|
257
257
|
* @throws {AppwriteException}
|
|
258
258
|
* @returns {Promise<Models.User<Preferences>>}
|
|
259
259
|
*/
|
|
260
|
-
createBcryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string
|
|
260
|
+
createBcryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string }): Promise<Models.User<Preferences>>;
|
|
261
261
|
/**
|
|
262
262
|
* Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
263
263
|
*
|
|
@@ -339,7 +339,7 @@ export class Users {
|
|
|
339
339
|
* @throws {AppwriteException}
|
|
340
340
|
* @returns {Promise<Models.IdentityList>}
|
|
341
341
|
*/
|
|
342
|
-
listIdentities(params?: { queries?: string[], search?: string, total?: boolean
|
|
342
|
+
listIdentities(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.IdentityList>;
|
|
343
343
|
/**
|
|
344
344
|
* Get identities for all users.
|
|
345
345
|
*
|
|
@@ -403,7 +403,7 @@ export class Users {
|
|
|
403
403
|
* @throws {AppwriteException}
|
|
404
404
|
* @returns {Promise<{}>}
|
|
405
405
|
*/
|
|
406
|
-
deleteIdentity(params: { identityId: string
|
|
406
|
+
deleteIdentity(params: { identityId: string }): Promise<{}>;
|
|
407
407
|
/**
|
|
408
408
|
* Delete an identity by its unique ID.
|
|
409
409
|
*
|
|
@@ -458,7 +458,7 @@ export class Users {
|
|
|
458
458
|
* @throws {AppwriteException}
|
|
459
459
|
* @returns {Promise<Models.User<Preferences>>}
|
|
460
460
|
*/
|
|
461
|
-
createMD5User<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string
|
|
461
|
+
createMD5User<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string }): Promise<Models.User<Preferences>>;
|
|
462
462
|
/**
|
|
463
463
|
* Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
464
464
|
*
|
|
@@ -541,7 +541,7 @@ export class Users {
|
|
|
541
541
|
* @throws {AppwriteException}
|
|
542
542
|
* @returns {Promise<Models.User<Preferences>>}
|
|
543
543
|
*/
|
|
544
|
-
createPHPassUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string
|
|
544
|
+
createPHPassUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, name?: string }): Promise<Models.User<Preferences>>;
|
|
545
545
|
/**
|
|
546
546
|
* Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
547
547
|
*
|
|
@@ -629,7 +629,7 @@ export class Users {
|
|
|
629
629
|
* @throws {AppwriteException}
|
|
630
630
|
* @returns {Promise<Models.User<Preferences>>}
|
|
631
631
|
*/
|
|
632
|
-
createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string
|
|
632
|
+
createScryptUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string }): Promise<Models.User<Preferences>>;
|
|
633
633
|
/**
|
|
634
634
|
* Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
635
635
|
*
|
|
@@ -760,7 +760,7 @@ export class Users {
|
|
|
760
760
|
* @throws {AppwriteException}
|
|
761
761
|
* @returns {Promise<Models.User<Preferences>>}
|
|
762
762
|
*/
|
|
763
|
-
createScryptModifiedUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string
|
|
763
|
+
createScryptModifiedUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string }): Promise<Models.User<Preferences>>;
|
|
764
764
|
/**
|
|
765
765
|
* Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
766
766
|
*
|
|
@@ -871,7 +871,7 @@ export class Users {
|
|
|
871
871
|
* @throws {AppwriteException}
|
|
872
872
|
* @returns {Promise<Models.User<Preferences>>}
|
|
873
873
|
*/
|
|
874
|
-
createSHAUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordVersion?: PasswordHash, name?: string
|
|
874
|
+
createSHAUser<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string, password: string, passwordVersion?: PasswordHash, name?: string }): Promise<Models.User<Preferences>>;
|
|
875
875
|
/**
|
|
876
876
|
* Create a new user. Password provided must be hashed with the [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
877
877
|
*
|
|
@@ -958,7 +958,7 @@ export class Users {
|
|
|
958
958
|
* @throws {AppwriteException}
|
|
959
959
|
* @returns {Promise<Models.UsageUsers>}
|
|
960
960
|
*/
|
|
961
|
-
getUsage(params?: { range?: UsageRange
|
|
961
|
+
getUsage(params?: { range?: UsageRange }): Promise<Models.UsageUsers>;
|
|
962
962
|
/**
|
|
963
963
|
* Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
|
|
964
964
|
*
|
|
@@ -974,7 +974,7 @@ export class Users {
|
|
|
974
974
|
): Promise<Models.UsageUsers> {
|
|
975
975
|
let params: { range?: UsageRange };
|
|
976
976
|
|
|
977
|
-
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'range' in paramsOrFirst)) {
|
|
977
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('range' in paramsOrFirst))) {
|
|
978
978
|
params = (paramsOrFirst || {}) as { range?: UsageRange };
|
|
979
979
|
} else {
|
|
980
980
|
params = {
|
|
@@ -1010,7 +1010,7 @@ export class Users {
|
|
|
1010
1010
|
* @throws {AppwriteException}
|
|
1011
1011
|
* @returns {Promise<Models.User<Preferences>>}
|
|
1012
1012
|
*/
|
|
1013
|
-
get<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string
|
|
1013
|
+
get<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string }): Promise<Models.User<Preferences>>;
|
|
1014
1014
|
/**
|
|
1015
1015
|
* Get a user by its unique ID.
|
|
1016
1016
|
*
|
|
@@ -1061,7 +1061,7 @@ export class Users {
|
|
|
1061
1061
|
* @throws {AppwriteException}
|
|
1062
1062
|
* @returns {Promise<{}>}
|
|
1063
1063
|
*/
|
|
1064
|
-
delete(params: { userId: string
|
|
1064
|
+
delete(params: { userId: string }): Promise<{}>;
|
|
1065
1065
|
/**
|
|
1066
1066
|
* Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus) endpoint instead.
|
|
1067
1067
|
*
|
|
@@ -1114,7 +1114,7 @@ export class Users {
|
|
|
1114
1114
|
* @throws {AppwriteException}
|
|
1115
1115
|
* @returns {Promise<Models.User<Preferences>>}
|
|
1116
1116
|
*/
|
|
1117
|
-
updateEmail<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string
|
|
1117
|
+
updateEmail<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, email: string }): Promise<Models.User<Preferences>>;
|
|
1118
1118
|
/**
|
|
1119
1119
|
* Update the user email by its unique ID.
|
|
1120
1120
|
*
|
|
@@ -1178,7 +1178,7 @@ export class Users {
|
|
|
1178
1178
|
* @throws {AppwriteException}
|
|
1179
1179
|
* @returns {Promise<Models.Jwt>}
|
|
1180
1180
|
*/
|
|
1181
|
-
createJWT(params: { userId: string, sessionId?: string, duration?: number
|
|
1181
|
+
createJWT(params: { userId: string, sessionId?: string, duration?: number }): Promise<Models.Jwt>;
|
|
1182
1182
|
/**
|
|
1183
1183
|
* Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
|
|
1184
1184
|
*
|
|
@@ -1246,7 +1246,7 @@ export class Users {
|
|
|
1246
1246
|
* @throws {AppwriteException}
|
|
1247
1247
|
* @returns {Promise<Models.User<Preferences>>}
|
|
1248
1248
|
*/
|
|
1249
|
-
updateLabels<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, labels: string[]
|
|
1249
|
+
updateLabels<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, labels: string[] }): Promise<Models.User<Preferences>>;
|
|
1250
1250
|
/**
|
|
1251
1251
|
* Update the user labels by its unique ID.
|
|
1252
1252
|
*
|
|
@@ -1312,7 +1312,7 @@ export class Users {
|
|
|
1312
1312
|
* @throws {AppwriteException}
|
|
1313
1313
|
* @returns {Promise<Models.LogList>}
|
|
1314
1314
|
*/
|
|
1315
|
-
listLogs(params: { userId: string, queries?: string[], total?: boolean
|
|
1315
|
+
listLogs(params: { userId: string, queries?: string[], total?: boolean }): Promise<Models.LogList>;
|
|
1316
1316
|
/**
|
|
1317
1317
|
* Get the user activity logs list by its unique ID.
|
|
1318
1318
|
*
|
|
@@ -1379,7 +1379,7 @@ export class Users {
|
|
|
1379
1379
|
* @throws {AppwriteException}
|
|
1380
1380
|
* @returns {Promise<Models.MembershipList>}
|
|
1381
1381
|
*/
|
|
1382
|
-
listMemberships(params: { userId: string, queries?: string[], search?: string, total?: boolean
|
|
1382
|
+
listMemberships(params: { userId: string, queries?: string[], search?: string, total?: boolean }): Promise<Models.MembershipList>;
|
|
1383
1383
|
/**
|
|
1384
1384
|
* Get the user membership list by its unique ID.
|
|
1385
1385
|
*
|
|
@@ -1451,7 +1451,7 @@ export class Users {
|
|
|
1451
1451
|
* @returns {Promise<Models.User<Preferences>>}
|
|
1452
1452
|
* @deprecated This API has been deprecated since 1.8.0. Please use `Users.updateMFA` instead.
|
|
1453
1453
|
*/
|
|
1454
|
-
updateMfa<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, mfa: boolean
|
|
1454
|
+
updateMfa<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, mfa: boolean }): Promise<Models.User<Preferences>>;
|
|
1455
1455
|
/**
|
|
1456
1456
|
* Enable or disable MFA on a user account.
|
|
1457
1457
|
*
|
|
@@ -1514,7 +1514,7 @@ export class Users {
|
|
|
1514
1514
|
* @throws {AppwriteException}
|
|
1515
1515
|
* @returns {Promise<Models.User<Preferences>>}
|
|
1516
1516
|
*/
|
|
1517
|
-
updateMFA<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, mfa: boolean
|
|
1517
|
+
updateMFA<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, mfa: boolean }): Promise<Models.User<Preferences>>;
|
|
1518
1518
|
/**
|
|
1519
1519
|
* Enable or disable MFA on a user account.
|
|
1520
1520
|
*
|
|
@@ -1578,7 +1578,7 @@ export class Users {
|
|
|
1578
1578
|
* @returns {Promise<{}>}
|
|
1579
1579
|
* @deprecated This API has been deprecated since 1.8.0. Please use `Users.deleteMFAAuthenticator` instead.
|
|
1580
1580
|
*/
|
|
1581
|
-
deleteMfaAuthenticator(params: { userId: string, type: AuthenticatorType
|
|
1581
|
+
deleteMfaAuthenticator(params: { userId: string, type: AuthenticatorType }): Promise<{}>;
|
|
1582
1582
|
/**
|
|
1583
1583
|
* Delete an authenticator app.
|
|
1584
1584
|
*
|
|
@@ -1638,7 +1638,7 @@ export class Users {
|
|
|
1638
1638
|
* @throws {AppwriteException}
|
|
1639
1639
|
* @returns {Promise<{}>}
|
|
1640
1640
|
*/
|
|
1641
|
-
deleteMFAAuthenticator(params: { userId: string, type: AuthenticatorType
|
|
1641
|
+
deleteMFAAuthenticator(params: { userId: string, type: AuthenticatorType }): Promise<{}>;
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Delete an authenticator app.
|
|
1644
1644
|
*
|
|
@@ -1698,7 +1698,7 @@ export class Users {
|
|
|
1698
1698
|
* @returns {Promise<Models.MfaFactors>}
|
|
1699
1699
|
* @deprecated This API has been deprecated since 1.8.0. Please use `Users.listMFAFactors` instead.
|
|
1700
1700
|
*/
|
|
1701
|
-
listMfaFactors(params: { userId: string
|
|
1701
|
+
listMfaFactors(params: { userId: string }): Promise<Models.MfaFactors>;
|
|
1702
1702
|
/**
|
|
1703
1703
|
* List the factors available on the account to be used as a MFA challange.
|
|
1704
1704
|
*
|
|
@@ -1749,7 +1749,7 @@ export class Users {
|
|
|
1749
1749
|
* @throws {AppwriteException}
|
|
1750
1750
|
* @returns {Promise<Models.MfaFactors>}
|
|
1751
1751
|
*/
|
|
1752
|
-
listMFAFactors(params: { userId: string
|
|
1752
|
+
listMFAFactors(params: { userId: string }): Promise<Models.MfaFactors>;
|
|
1753
1753
|
/**
|
|
1754
1754
|
* List the factors available on the account to be used as a MFA challange.
|
|
1755
1755
|
*
|
|
@@ -1801,7 +1801,7 @@ export class Users {
|
|
|
1801
1801
|
* @returns {Promise<Models.MfaRecoveryCodes>}
|
|
1802
1802
|
* @deprecated This API has been deprecated since 1.8.0. Please use `Users.getMFARecoveryCodes` instead.
|
|
1803
1803
|
*/
|
|
1804
|
-
getMfaRecoveryCodes(params: { userId: string
|
|
1804
|
+
getMfaRecoveryCodes(params: { userId: string }): Promise<Models.MfaRecoveryCodes>;
|
|
1805
1805
|
/**
|
|
1806
1806
|
* Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
1807
1807
|
*
|
|
@@ -1852,7 +1852,7 @@ export class Users {
|
|
|
1852
1852
|
* @throws {AppwriteException}
|
|
1853
1853
|
* @returns {Promise<Models.MfaRecoveryCodes>}
|
|
1854
1854
|
*/
|
|
1855
|
-
getMFARecoveryCodes(params: { userId: string
|
|
1855
|
+
getMFARecoveryCodes(params: { userId: string }): Promise<Models.MfaRecoveryCodes>;
|
|
1856
1856
|
/**
|
|
1857
1857
|
* Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
1858
1858
|
*
|
|
@@ -1904,7 +1904,7 @@ export class Users {
|
|
|
1904
1904
|
* @returns {Promise<Models.MfaRecoveryCodes>}
|
|
1905
1905
|
* @deprecated This API has been deprecated since 1.8.0. Please use `Users.updateMFARecoveryCodes` instead.
|
|
1906
1906
|
*/
|
|
1907
|
-
updateMfaRecoveryCodes(params: { userId: string
|
|
1907
|
+
updateMfaRecoveryCodes(params: { userId: string }): Promise<Models.MfaRecoveryCodes>;
|
|
1908
1908
|
/**
|
|
1909
1909
|
* Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
1910
1910
|
*
|
|
@@ -1956,7 +1956,7 @@ export class Users {
|
|
|
1956
1956
|
* @throws {AppwriteException}
|
|
1957
1957
|
* @returns {Promise<Models.MfaRecoveryCodes>}
|
|
1958
1958
|
*/
|
|
1959
|
-
updateMFARecoveryCodes(params: { userId: string
|
|
1959
|
+
updateMFARecoveryCodes(params: { userId: string }): Promise<Models.MfaRecoveryCodes>;
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
1962
1962
|
*
|
|
@@ -2009,7 +2009,7 @@ export class Users {
|
|
|
2009
2009
|
* @returns {Promise<Models.MfaRecoveryCodes>}
|
|
2010
2010
|
* @deprecated This API has been deprecated since 1.8.0. Please use `Users.createMFARecoveryCodes` instead.
|
|
2011
2011
|
*/
|
|
2012
|
-
createMfaRecoveryCodes(params: { userId: string
|
|
2012
|
+
createMfaRecoveryCodes(params: { userId: string }): Promise<Models.MfaRecoveryCodes>;
|
|
2013
2013
|
/**
|
|
2014
2014
|
* Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
|
|
2015
2015
|
*
|
|
@@ -2061,7 +2061,7 @@ export class Users {
|
|
|
2061
2061
|
* @throws {AppwriteException}
|
|
2062
2062
|
* @returns {Promise<Models.MfaRecoveryCodes>}
|
|
2063
2063
|
*/
|
|
2064
|
-
createMFARecoveryCodes(params: { userId: string
|
|
2064
|
+
createMFARecoveryCodes(params: { userId: string }): Promise<Models.MfaRecoveryCodes>;
|
|
2065
2065
|
/**
|
|
2066
2066
|
* Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
|
|
2067
2067
|
*
|
|
@@ -2114,7 +2114,7 @@ export class Users {
|
|
|
2114
2114
|
* @throws {AppwriteException}
|
|
2115
2115
|
* @returns {Promise<Models.User<Preferences>>}
|
|
2116
2116
|
*/
|
|
2117
|
-
updateName<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, name: string
|
|
2117
|
+
updateName<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, name: string }): Promise<Models.User<Preferences>>;
|
|
2118
2118
|
/**
|
|
2119
2119
|
* Update the user name by its unique ID.
|
|
2120
2120
|
*
|
|
@@ -2177,7 +2177,7 @@ export class Users {
|
|
|
2177
2177
|
* @throws {AppwriteException}
|
|
2178
2178
|
* @returns {Promise<Models.User<Preferences>>}
|
|
2179
2179
|
*/
|
|
2180
|
-
updatePassword<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, password: string
|
|
2180
|
+
updatePassword<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, password: string }): Promise<Models.User<Preferences>>;
|
|
2181
2181
|
/**
|
|
2182
2182
|
* Update the user password by its unique ID.
|
|
2183
2183
|
*
|
|
@@ -2240,7 +2240,7 @@ export class Users {
|
|
|
2240
2240
|
* @throws {AppwriteException}
|
|
2241
2241
|
* @returns {Promise<Models.User<Preferences>>}
|
|
2242
2242
|
*/
|
|
2243
|
-
updatePhone<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, number: string
|
|
2243
|
+
updatePhone<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, number: string }): Promise<Models.User<Preferences>>;
|
|
2244
2244
|
/**
|
|
2245
2245
|
* Update the user phone by its unique ID.
|
|
2246
2246
|
*
|
|
@@ -2302,7 +2302,7 @@ export class Users {
|
|
|
2302
2302
|
* @throws {AppwriteException}
|
|
2303
2303
|
* @returns {Promise<Preferences>}
|
|
2304
2304
|
*/
|
|
2305
|
-
getPrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string
|
|
2305
|
+
getPrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string }): Promise<Preferences>;
|
|
2306
2306
|
/**
|
|
2307
2307
|
* Get the user preferences by its unique ID.
|
|
2308
2308
|
*
|
|
@@ -2354,7 +2354,7 @@ export class Users {
|
|
|
2354
2354
|
* @throws {AppwriteException}
|
|
2355
2355
|
* @returns {Promise<Preferences>}
|
|
2356
2356
|
*/
|
|
2357
|
-
updatePrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, prefs: object
|
|
2357
|
+
updatePrefs<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, prefs: object }): Promise<Preferences>;
|
|
2358
2358
|
/**
|
|
2359
2359
|
* Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
|
|
2360
2360
|
*
|
|
@@ -2417,7 +2417,7 @@ export class Users {
|
|
|
2417
2417
|
* @throws {AppwriteException}
|
|
2418
2418
|
* @returns {Promise<Models.SessionList>}
|
|
2419
2419
|
*/
|
|
2420
|
-
listSessions(params: { userId: string, total?: boolean
|
|
2420
|
+
listSessions(params: { userId: string, total?: boolean }): Promise<Models.SessionList>;
|
|
2421
2421
|
/**
|
|
2422
2422
|
* Get the user sessions list by its unique ID.
|
|
2423
2423
|
*
|
|
@@ -2477,7 +2477,7 @@ export class Users {
|
|
|
2477
2477
|
* @throws {AppwriteException}
|
|
2478
2478
|
* @returns {Promise<Models.Session>}
|
|
2479
2479
|
*/
|
|
2480
|
-
createSession(params: { userId: string
|
|
2480
|
+
createSession(params: { userId: string }): Promise<Models.Session>;
|
|
2481
2481
|
/**
|
|
2482
2482
|
* Creates a session for a user. Returns an immediately usable session object.
|
|
2483
2483
|
*
|
|
@@ -2531,7 +2531,7 @@ export class Users {
|
|
|
2531
2531
|
* @throws {AppwriteException}
|
|
2532
2532
|
* @returns {Promise<{}>}
|
|
2533
2533
|
*/
|
|
2534
|
-
deleteSessions(params: { userId: string
|
|
2534
|
+
deleteSessions(params: { userId: string }): Promise<{}>;
|
|
2535
2535
|
/**
|
|
2536
2536
|
* Delete all user's sessions by using the user's unique ID.
|
|
2537
2537
|
*
|
|
@@ -2584,7 +2584,7 @@ export class Users {
|
|
|
2584
2584
|
* @throws {AppwriteException}
|
|
2585
2585
|
* @returns {Promise<{}>}
|
|
2586
2586
|
*/
|
|
2587
|
-
deleteSession(params: { userId: string, sessionId: string
|
|
2587
|
+
deleteSession(params: { userId: string, sessionId: string }): Promise<{}>;
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Delete a user sessions by its unique ID.
|
|
2590
2590
|
*
|
|
@@ -2644,7 +2644,7 @@ export class Users {
|
|
|
2644
2644
|
* @throws {AppwriteException}
|
|
2645
2645
|
* @returns {Promise<Models.User<Preferences>>}
|
|
2646
2646
|
*/
|
|
2647
|
-
updateStatus<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, status: boolean
|
|
2647
|
+
updateStatus<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, status: boolean }): Promise<Models.User<Preferences>>;
|
|
2648
2648
|
/**
|
|
2649
2649
|
* Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.
|
|
2650
2650
|
*
|
|
@@ -2708,7 +2708,7 @@ export class Users {
|
|
|
2708
2708
|
* @throws {AppwriteException}
|
|
2709
2709
|
* @returns {Promise<Models.TargetList>}
|
|
2710
2710
|
*/
|
|
2711
|
-
listTargets(params: { userId: string, queries?: string[], total?: boolean
|
|
2711
|
+
listTargets(params: { userId: string, queries?: string[], total?: boolean }): Promise<Models.TargetList>;
|
|
2712
2712
|
/**
|
|
2713
2713
|
* List the messaging targets that are associated with a user.
|
|
2714
2714
|
*
|
|
@@ -2777,7 +2777,7 @@ export class Users {
|
|
|
2777
2777
|
* @throws {AppwriteException}
|
|
2778
2778
|
* @returns {Promise<Models.Target>}
|
|
2779
2779
|
*/
|
|
2780
|
-
createTarget(params: { userId: string, targetId: string, providerType: MessagingProviderType, identifier: string, providerId?: string, name?: string
|
|
2780
|
+
createTarget(params: { userId: string, targetId: string, providerType: MessagingProviderType, identifier: string, providerId?: string, name?: string }): Promise<Models.Target>;
|
|
2781
2781
|
/**
|
|
2782
2782
|
* Create a messaging target.
|
|
2783
2783
|
*
|
|
@@ -2870,7 +2870,7 @@ export class Users {
|
|
|
2870
2870
|
* @throws {AppwriteException}
|
|
2871
2871
|
* @returns {Promise<Models.Target>}
|
|
2872
2872
|
*/
|
|
2873
|
-
getTarget(params: { userId: string, targetId: string
|
|
2873
|
+
getTarget(params: { userId: string, targetId: string }): Promise<Models.Target>;
|
|
2874
2874
|
/**
|
|
2875
2875
|
* Get a user's push notification target by ID.
|
|
2876
2876
|
*
|
|
@@ -2932,7 +2932,7 @@ export class Users {
|
|
|
2932
2932
|
* @throws {AppwriteException}
|
|
2933
2933
|
* @returns {Promise<Models.Target>}
|
|
2934
2934
|
*/
|
|
2935
|
-
updateTarget(params: { userId: string, targetId: string, identifier?: string, providerId?: string, name?: string
|
|
2935
|
+
updateTarget(params: { userId: string, targetId: string, identifier?: string, providerId?: string, name?: string }): Promise<Models.Target>;
|
|
2936
2936
|
/**
|
|
2937
2937
|
* Update a messaging target.
|
|
2938
2938
|
*
|
|
@@ -3010,7 +3010,7 @@ export class Users {
|
|
|
3010
3010
|
* @throws {AppwriteException}
|
|
3011
3011
|
* @returns {Promise<{}>}
|
|
3012
3012
|
*/
|
|
3013
|
-
deleteTarget(params: { userId: string, targetId: string
|
|
3013
|
+
deleteTarget(params: { userId: string, targetId: string }): Promise<{}>;
|
|
3014
3014
|
/**
|
|
3015
3015
|
* Delete a messaging target.
|
|
3016
3016
|
*
|
|
@@ -3072,7 +3072,7 @@ export class Users {
|
|
|
3072
3072
|
* @throws {AppwriteException}
|
|
3073
3073
|
* @returns {Promise<Models.Token>}
|
|
3074
3074
|
*/
|
|
3075
|
-
createToken(params: { userId: string, length?: number, expire?: number
|
|
3075
|
+
createToken(params: { userId: string, length?: number, expire?: number }): Promise<Models.Token>;
|
|
3076
3076
|
/**
|
|
3077
3077
|
* Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
|
|
3078
3078
|
*
|
|
@@ -3139,7 +3139,7 @@ export class Users {
|
|
|
3139
3139
|
* @throws {AppwriteException}
|
|
3140
3140
|
* @returns {Promise<Models.User<Preferences>>}
|
|
3141
3141
|
*/
|
|
3142
|
-
updateEmailVerification<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, emailVerification: boolean
|
|
3142
|
+
updateEmailVerification<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, emailVerification: boolean }): Promise<Models.User<Preferences>>;
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Update the user email verification status by its unique ID.
|
|
3145
3145
|
*
|
|
@@ -3202,7 +3202,7 @@ export class Users {
|
|
|
3202
3202
|
* @throws {AppwriteException}
|
|
3203
3203
|
* @returns {Promise<Models.User<Preferences>>}
|
|
3204
3204
|
*/
|
|
3205
|
-
updatePhoneVerification<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, phoneVerification: boolean
|
|
3205
|
+
updatePhoneVerification<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: { userId: string, phoneVerification: boolean }): Promise<Models.User<Preferences>>;
|
|
3206
3206
|
/**
|
|
3207
3207
|
* Update the user phone verification status by its unique ID.
|
|
3208
3208
|
*
|