@appwrite.io/console 2.2.0 → 2.3.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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/dist/cjs/sdk.js +412 -202
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +412 -203
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +412 -202
- 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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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/activities/get-event.md +15 -0
- package/docs/examples/activities/list-events.md +15 -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 +2 -0
- 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/list-regions.md +2 -0
- 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 +2 -0
- 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 +4 -1
- package/docs/examples/databases/create-mediumtext-attribute.md +4 -1
- 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 +4 -1
- 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 +4 -1
- 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 +2 -0
- 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 +2 -0
- package/docs/examples/databases/update-mediumtext-attribute.md +2 -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 +2 -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 +2 -0
- package/docs/examples/databases/update.md +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- package/docs/examples/migrations/create-n-host-migration.md +2 -0
- package/docs/examples/migrations/create-supabase-migration.md +2 -0
- package/docs/examples/migrations/delete.md +2 -0
- package/docs/examples/migrations/get-appwrite-report.md +2 -0
- package/docs/examples/migrations/get-firebase-report.md +2 -0
- package/docs/examples/migrations/get-n-host-report.md +2 -0
- package/docs/examples/migrations/get-supabase-report.md +2 -0
- 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 +2 -0
- package/docs/examples/organizations/create.md +2 -0
- 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 +2 -0
- package/docs/examples/organizations/delete.md +2 -0
- package/docs/examples/organizations/estimation-create-organization.md +2 -0
- package/docs/examples/organizations/estimation-delete-organization.md +2 -0
- package/docs/examples/organizations/estimation-update-plan.md +2 -0
- 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/get-key.md +2 -0
- 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 +2 -0
- package/docs/examples/organizations/list-regions.md +2 -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 +2 -0
- package/docs/examples/organizations/update-plan.md +2 -0
- 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 +2 -0
- package/docs/examples/projects/create-key.md +3 -0
- 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 +2 -0
- 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 +2 -0
- 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 +2 -0
- 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 +4 -1
- package/docs/examples/tablesdb/create-mediumtext-column.md +4 -1
- 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 +4 -1
- 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 +4 -1
- 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 +2 -0
- package/docs/examples/tablesdb/update-mediumtext-column.md +2 -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 +2 -0
- package/docs/examples/tablesdb/update-text-column.md +2 -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 +2 -0
- package/docs/examples/tablesdb/update.md +2 -0
- 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 +4 -2
- 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 +4 -2
- 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 +30 -18
- package/src/client.ts +108 -22
- package/src/enums/{services.ts → backup-services.ts} +1 -1
- package/src/enums/build-runtime.ts +2 -0
- package/src/enums/registration-type.ts +6 -0
- package/src/enums/runtime.ts +2 -0
- package/src/enums/runtimes.ts +2 -0
- package/src/enums/scopes.ts +1 -0
- package/src/index.ts +3 -3
- package/src/models.ts +227 -5
- package/src/services/account.ts +11 -11
- package/src/services/activities.ts +116 -0
- package/src/services/avatars.ts +3 -3
- package/src/services/backups.ts +28 -28
- package/src/services/console.ts +1 -1
- package/src/services/databases.ts +57 -29
- package/src/services/domains.ts +70 -0
- package/src/services/functions.ts +2 -2
- package/src/services/graphql.ts +2 -2
- package/src/services/health.ts +1 -1
- package/src/services/migrations.ts +10 -10
- package/src/services/organizations.ts +0 -60
- package/src/services/projects.ts +28 -78
- package/src/services/realtime.ts +135 -58
- package/src/services/sites.ts +2 -2
- package/src/services/storage.ts +1 -1
- package/src/services/tables-db.ts +57 -29
- package/src/services/teams.ts +18 -19
- package/src/services/users.ts +1 -1
- package/types/channel.d.ts +4 -3
- package/types/client.d.ts +7 -2
- package/types/enums/{services.d.ts → backup-services.d.ts} +1 -1
- package/types/enums/build-runtime.d.ts +3 -1
- package/types/enums/registration-type.d.ts +6 -0
- package/types/enums/runtime.d.ts +3 -1
- package/types/enums/runtimes.d.ts +3 -1
- package/types/enums/scopes.d.ts +2 -1
- package/types/index.d.ts +3 -3
- package/types/models.d.ts +224 -5
- package/types/services/activities.d.ts +46 -0
- package/types/services/backups.d.ts +13 -13
- package/types/services/databases.d.ts +16 -4
- package/types/services/domains.d.ts +26 -0
- package/types/services/migrations.d.ts +2 -2
- package/types/services/organizations.d.ts +0 -22
- package/types/services/projects.d.ts +8 -25
- package/types/services/realtime.d.ts +13 -6
- package/types/services/tables-db.d.ts +16 -4
- package/types/services/teams.d.ts +8 -9
- package/docs/examples/organizations/update-projects.md +0 -14
- package/docs/examples/projects/update-status.md +0 -14
- package/src/enums/roles.ts +0 -7
- package/src/enums/status.ts +0 -4
- package/types/enums/roles.d.ts +0 -7
- package/types/enums/status.d.ts +0 -4
package/src/services/teams.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { Service } from '../service';
|
|
|
2
2
|
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
4
|
|
|
5
|
-
import { Roles } from '../enums/roles';
|
|
6
5
|
|
|
7
6
|
export class Teams {
|
|
8
7
|
client: Client;
|
|
@@ -466,7 +465,7 @@ export class Teams {
|
|
|
466
465
|
*
|
|
467
466
|
*
|
|
468
467
|
* @param {string} params.teamId - Team ID.
|
|
469
|
-
* @param {
|
|
468
|
+
* @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
|
|
470
469
|
* @param {string} params.email - Email of the new team member.
|
|
471
470
|
* @param {string} params.userId - ID of the user to be added to a team.
|
|
472
471
|
* @param {string} params.phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
|
@@ -475,7 +474,7 @@ export class Teams {
|
|
|
475
474
|
* @throws {AppwriteException}
|
|
476
475
|
* @returns {Promise<Models.Membership>}
|
|
477
476
|
*/
|
|
478
|
-
createMembership(params: { teamId: string, roles:
|
|
477
|
+
createMembership(params: { teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string }): Promise<Models.Membership>;
|
|
479
478
|
/**
|
|
480
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.
|
|
481
480
|
*
|
|
@@ -487,7 +486,7 @@ export class Teams {
|
|
|
487
486
|
*
|
|
488
487
|
*
|
|
489
488
|
* @param {string} teamId - Team ID.
|
|
490
|
-
* @param {
|
|
489
|
+
* @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
|
|
491
490
|
* @param {string} email - Email of the new team member.
|
|
492
491
|
* @param {string} userId - ID of the user to be added to a team.
|
|
493
492
|
* @param {string} phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
|
|
@@ -497,19 +496,19 @@ export class Teams {
|
|
|
497
496
|
* @returns {Promise<Models.Membership>}
|
|
498
497
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
499
498
|
*/
|
|
500
|
-
createMembership(teamId: string, roles:
|
|
499
|
+
createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
|
|
501
500
|
createMembership(
|
|
502
|
-
paramsOrFirst: { teamId: string, roles:
|
|
503
|
-
...rest: [(
|
|
501
|
+
paramsOrFirst: { teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string } | string,
|
|
502
|
+
...rest: [(string[])?, (string)?, (string)?, (string)?, (string)?, (string)?]
|
|
504
503
|
): Promise<Models.Membership> {
|
|
505
|
-
let params: { teamId: string, roles:
|
|
504
|
+
let params: { teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string };
|
|
506
505
|
|
|
507
506
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
508
|
-
params = (paramsOrFirst || {}) as { teamId: string, roles:
|
|
507
|
+
params = (paramsOrFirst || {}) as { teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string };
|
|
509
508
|
} else {
|
|
510
509
|
params = {
|
|
511
510
|
teamId: paramsOrFirst as string,
|
|
512
|
-
roles: rest[0] as
|
|
511
|
+
roles: rest[0] as string[],
|
|
513
512
|
email: rest[1] as string,
|
|
514
513
|
userId: rest[2] as string,
|
|
515
514
|
phone: rest[3] as string,
|
|
@@ -632,36 +631,36 @@ export class Teams {
|
|
|
632
631
|
*
|
|
633
632
|
* @param {string} params.teamId - Team ID.
|
|
634
633
|
* @param {string} params.membershipId - Membership ID.
|
|
635
|
-
* @param {
|
|
634
|
+
* @param {string[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
|
|
636
635
|
* @throws {AppwriteException}
|
|
637
636
|
* @returns {Promise<Models.Membership>}
|
|
638
637
|
*/
|
|
639
|
-
updateMembership(params: { teamId: string, membershipId: string, roles:
|
|
638
|
+
updateMembership(params: { teamId: string, membershipId: string, roles: string[] }): Promise<Models.Membership>;
|
|
640
639
|
/**
|
|
641
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).
|
|
642
641
|
*
|
|
643
642
|
*
|
|
644
643
|
* @param {string} teamId - Team ID.
|
|
645
644
|
* @param {string} membershipId - Membership ID.
|
|
646
|
-
* @param {
|
|
645
|
+
* @param {string[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
|
|
647
646
|
* @throws {AppwriteException}
|
|
648
647
|
* @returns {Promise<Models.Membership>}
|
|
649
648
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
650
649
|
*/
|
|
651
|
-
updateMembership(teamId: string, membershipId: string, roles:
|
|
650
|
+
updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership>;
|
|
652
651
|
updateMembership(
|
|
653
|
-
paramsOrFirst: { teamId: string, membershipId: string, roles:
|
|
654
|
-
...rest: [(string)?, (
|
|
652
|
+
paramsOrFirst: { teamId: string, membershipId: string, roles: string[] } | string,
|
|
653
|
+
...rest: [(string)?, (string[])?]
|
|
655
654
|
): Promise<Models.Membership> {
|
|
656
|
-
let params: { teamId: string, membershipId: string, roles:
|
|
655
|
+
let params: { teamId: string, membershipId: string, roles: string[] };
|
|
657
656
|
|
|
658
657
|
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
659
|
-
params = (paramsOrFirst || {}) as { teamId: string, membershipId: string, roles:
|
|
658
|
+
params = (paramsOrFirst || {}) as { teamId: string, membershipId: string, roles: string[] };
|
|
660
659
|
} else {
|
|
661
660
|
params = {
|
|
662
661
|
teamId: paramsOrFirst as string,
|
|
663
662
|
membershipId: rest[0] as string,
|
|
664
|
-
roles: rest[1] as
|
|
663
|
+
roles: rest[1] as string[]
|
|
665
664
|
};
|
|
666
665
|
}
|
|
667
666
|
|
package/src/services/users.ts
CHANGED
|
@@ -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 = {
|
package/types/channel.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ interface Membership {
|
|
|
37
37
|
interface Resolved {
|
|
38
38
|
_res: any;
|
|
39
39
|
}
|
|
40
|
-
declare type Actionable = Document | Row | File |
|
|
40
|
+
declare type Actionable = Document | Row | File | Team | Membership;
|
|
41
41
|
export declare class Channel<T> {
|
|
42
42
|
private readonly segments;
|
|
43
43
|
_type: T;
|
|
@@ -50,22 +50,23 @@ export declare class Channel<T> {
|
|
|
50
50
|
table(this: Channel<TablesDB>, id?: string): Channel<Table>;
|
|
51
51
|
row(this: Channel<Table>, id?: string): Channel<Row>;
|
|
52
52
|
file(this: Channel<Bucket>, id?: string): Channel<File>;
|
|
53
|
-
execution(this: Channel<Func>, id?: string): Channel<Execution>;
|
|
54
53
|
create(this: Channel<Actionable>): Channel<Resolved>;
|
|
55
54
|
update(this: Channel<Actionable>): Channel<Resolved>;
|
|
56
55
|
delete(this: Channel<Actionable>): Channel<Resolved>;
|
|
57
56
|
static database(id?: string): Channel<Database>;
|
|
57
|
+
static execution(id?: string): Channel<Execution>;
|
|
58
58
|
static tablesdb(id?: string): Channel<TablesDB>;
|
|
59
59
|
static bucket(id?: string): Channel<Bucket>;
|
|
60
60
|
static function(id?: string): Channel<Func>;
|
|
61
61
|
static team(id?: string): Channel<Team>;
|
|
62
62
|
static membership(id?: string): Channel<Membership>;
|
|
63
|
-
static account(
|
|
63
|
+
static account(): string;
|
|
64
64
|
static documents(): string;
|
|
65
65
|
static rows(): string;
|
|
66
66
|
static files(): string;
|
|
67
67
|
static executions(): string;
|
|
68
68
|
static teams(): string;
|
|
69
|
+
static memberships(): string;
|
|
69
70
|
}
|
|
70
71
|
export declare type ActionableChannel = Channel<Document> | Channel<Row> | Channel<File> | Channel<Execution> | Channel<Team> | Channel<Membership>;
|
|
71
72
|
export declare type ResolvedChannel = Channel<Resolved>;
|
package/types/client.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Models } from './models';
|
|
2
2
|
import { Channel, ActionableChannel, ResolvedChannel } from './channel';
|
|
3
|
+
import { Query } from './query';
|
|
3
4
|
/**
|
|
4
5
|
* Payload type representing a key-value pair with string keys and any values.
|
|
5
6
|
*/
|
|
@@ -27,11 +28,15 @@ declare type RealtimeResponseEvent<T extends unknown> = {
|
|
|
27
28
|
/**
|
|
28
29
|
* Timestamp indicating the time of the event.
|
|
29
30
|
*/
|
|
30
|
-
timestamp:
|
|
31
|
+
timestamp: string;
|
|
31
32
|
/**
|
|
32
33
|
* Payload containing event-specific data.
|
|
33
34
|
*/
|
|
34
35
|
payload: T;
|
|
36
|
+
/**
|
|
37
|
+
* Subscription IDs this event matches (from backend, optional).
|
|
38
|
+
*/
|
|
39
|
+
subscriptions?: string[];
|
|
35
40
|
};
|
|
36
41
|
/**
|
|
37
42
|
* Type representing upload progress information.
|
|
@@ -238,7 +243,7 @@ declare class Client {
|
|
|
238
243
|
* @param {(payload: RealtimeMessage) => void} callback Is called on every realtime update.
|
|
239
244
|
* @returns {() => void} Unsubscribes from events.
|
|
240
245
|
*/
|
|
241
|
-
subscribe<T extends unknown>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void): () => void;
|
|
246
|
+
subscribe<T extends unknown>(channels: string | string[] | Channel<any> | ActionableChannel | ResolvedChannel | (Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (payload: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): () => void;
|
|
242
247
|
prepareRequest(method: string, url: URL, headers?: Headers, params?: Payload): {
|
|
243
248
|
uri: string;
|
|
244
249
|
options: RequestInit;
|
|
@@ -35,6 +35,7 @@ export declare enum BuildRuntime {
|
|
|
35
35
|
Dart35 = "dart-3.5",
|
|
36
36
|
Dart38 = "dart-3.8",
|
|
37
37
|
Dart39 = "dart-3.9",
|
|
38
|
+
Dart310 = "dart-3.10",
|
|
38
39
|
Dotnet60 = "dotnet-6.0",
|
|
39
40
|
Dotnet70 = "dotnet-7.0",
|
|
40
41
|
Dotnet80 = "dotnet-8.0",
|
|
@@ -62,5 +63,6 @@ export declare enum BuildRuntime {
|
|
|
62
63
|
Flutter327 = "flutter-3.27",
|
|
63
64
|
Flutter329 = "flutter-3.29",
|
|
64
65
|
Flutter332 = "flutter-3.32",
|
|
65
|
-
Flutter335 = "flutter-3.35"
|
|
66
|
+
Flutter335 = "flutter-3.35",
|
|
67
|
+
Flutter338 = "flutter-3.38"
|
|
66
68
|
}
|
package/types/enums/runtime.d.ts
CHANGED
|
@@ -35,6 +35,7 @@ export declare enum Runtime {
|
|
|
35
35
|
Dart35 = "dart-3.5",
|
|
36
36
|
Dart38 = "dart-3.8",
|
|
37
37
|
Dart39 = "dart-3.9",
|
|
38
|
+
Dart310 = "dart-3.10",
|
|
38
39
|
Dotnet60 = "dotnet-6.0",
|
|
39
40
|
Dotnet70 = "dotnet-7.0",
|
|
40
41
|
Dotnet80 = "dotnet-8.0",
|
|
@@ -62,5 +63,6 @@ export declare enum Runtime {
|
|
|
62
63
|
Flutter327 = "flutter-3.27",
|
|
63
64
|
Flutter329 = "flutter-3.29",
|
|
64
65
|
Flutter332 = "flutter-3.32",
|
|
65
|
-
Flutter335 = "flutter-3.35"
|
|
66
|
+
Flutter335 = "flutter-3.35",
|
|
67
|
+
Flutter338 = "flutter-3.38"
|
|
66
68
|
}
|
|
@@ -35,6 +35,7 @@ export declare enum Runtimes {
|
|
|
35
35
|
Dart35 = "dart-3.5",
|
|
36
36
|
Dart38 = "dart-3.8",
|
|
37
37
|
Dart39 = "dart-3.9",
|
|
38
|
+
Dart310 = "dart-3.10",
|
|
38
39
|
Dotnet60 = "dotnet-6.0",
|
|
39
40
|
Dotnet70 = "dotnet-7.0",
|
|
40
41
|
Dotnet80 = "dotnet-8.0",
|
|
@@ -62,5 +63,6 @@ export declare enum Runtimes {
|
|
|
62
63
|
Flutter327 = "flutter-3.27",
|
|
63
64
|
Flutter329 = "flutter-3.29",
|
|
64
65
|
Flutter332 = "flutter-3.32",
|
|
65
|
-
Flutter335 = "flutter-3.35"
|
|
66
|
+
Flutter335 = "flutter-3.35",
|
|
67
|
+
Flutter338 = "flutter-3.38"
|
|
66
68
|
}
|
package/types/enums/scopes.d.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export { Client, Query, AppwriteException } from './client';
|
|
9
9
|
export { Account } from './services/account';
|
|
10
|
+
export { Activities } from './services/activities';
|
|
10
11
|
export { Avatars } from './services/avatars';
|
|
11
12
|
export { Backups } from './services/backups';
|
|
12
13
|
export { Assistant } from './services/assistant';
|
|
@@ -49,7 +50,7 @@ export { Theme } from './enums/theme';
|
|
|
49
50
|
export { Timezone } from './enums/timezone';
|
|
50
51
|
export { BrowserPermission } from './enums/browser-permission';
|
|
51
52
|
export { ImageFormat } from './enums/image-format';
|
|
52
|
-
export {
|
|
53
|
+
export { BackupServices } from './enums/backup-services';
|
|
53
54
|
export { Platform } from './enums/platform';
|
|
54
55
|
export { ConsoleResourceType } from './enums/console-resource-type';
|
|
55
56
|
export { UsageRange } from './enums/usage-range';
|
|
@@ -57,6 +58,7 @@ export { RelationshipType } from './enums/relationship-type';
|
|
|
57
58
|
export { RelationMutate } from './enums/relation-mutate';
|
|
58
59
|
export { IndexType } from './enums/index-type';
|
|
59
60
|
export { OrderBy } from './enums/order-by';
|
|
61
|
+
export { RegistrationType } from './enums/registration-type';
|
|
60
62
|
export { FilterType } from './enums/filter-type';
|
|
61
63
|
export { Runtime } from './enums/runtime';
|
|
62
64
|
export { Runtimes } from './enums/runtimes';
|
|
@@ -76,7 +78,6 @@ export { AuthMethod } from './enums/auth-method';
|
|
|
76
78
|
export { PlatformType } from './enums/platform-type';
|
|
77
79
|
export { ApiService } from './enums/api-service';
|
|
78
80
|
export { SMTPSecure } from './enums/smtp-secure';
|
|
79
|
-
export { Status } from './enums/status';
|
|
80
81
|
export { EmailTemplateType } from './enums/email-template-type';
|
|
81
82
|
export { EmailTemplateLocale } from './enums/email-template-locale';
|
|
82
83
|
export { SmsTemplateType } from './enums/sms-template-type';
|
|
@@ -89,7 +90,6 @@ export { Adapter } from './enums/adapter';
|
|
|
89
90
|
export { Frameworks } from './enums/frameworks';
|
|
90
91
|
export { Compression } from './enums/compression';
|
|
91
92
|
export { ImageGravity } from './enums/image-gravity';
|
|
92
|
-
export { Roles } from './enums/roles';
|
|
93
93
|
export { PasswordHash } from './enums/password-hash';
|
|
94
94
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
|
95
95
|
export { VCSDetectionType } from './enums/vcs-detection-type';
|
package/types/models.d.ts
CHANGED
|
@@ -756,11 +756,19 @@ export declare namespace Models {
|
|
|
756
756
|
/**
|
|
757
757
|
* Collection attributes.
|
|
758
758
|
*/
|
|
759
|
-
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
|
|
759
|
+
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeVarchar | Models.AttributeText | Models.AttributeMediumtext | Models.AttributeLongtext | Models.AttributeString)[];
|
|
760
760
|
/**
|
|
761
761
|
* Collection indexes.
|
|
762
762
|
*/
|
|
763
763
|
indexes: Index[];
|
|
764
|
+
/**
|
|
765
|
+
* Maximum document size in bytes. Returns 0 when no limit applies.
|
|
766
|
+
*/
|
|
767
|
+
bytesMax: number;
|
|
768
|
+
/**
|
|
769
|
+
* Currently used document size in bytes based on defined attributes.
|
|
770
|
+
*/
|
|
771
|
+
bytesUsed: number;
|
|
764
772
|
};
|
|
765
773
|
/**
|
|
766
774
|
* Attributes List
|
|
@@ -773,7 +781,7 @@ export declare namespace Models {
|
|
|
773
781
|
/**
|
|
774
782
|
* List of attributes.
|
|
775
783
|
*/
|
|
776
|
-
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeString)[];
|
|
784
|
+
attributes: (Models.AttributeBoolean | Models.AttributeInteger | Models.AttributeFloat | Models.AttributeEmail | Models.AttributeEnum | Models.AttributeUrl | Models.AttributeIp | Models.AttributeDatetime | Models.AttributeRelationship | Models.AttributePoint | Models.AttributeLine | Models.AttributePolygon | Models.AttributeVarchar | Models.AttributeText | Models.AttributeMediumtext | Models.AttributeLongtext | Models.AttributeString)[];
|
|
777
785
|
};
|
|
778
786
|
/**
|
|
779
787
|
* AttributeString
|
|
@@ -1420,6 +1428,10 @@ export declare namespace Models {
|
|
|
1420
1428
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1421
1429
|
*/
|
|
1422
1430
|
default?: string;
|
|
1431
|
+
/**
|
|
1432
|
+
* Defines whether this attribute is encrypted or not.
|
|
1433
|
+
*/
|
|
1434
|
+
encrypt?: boolean;
|
|
1423
1435
|
};
|
|
1424
1436
|
/**
|
|
1425
1437
|
* AttributeText
|
|
@@ -1461,6 +1473,10 @@ export declare namespace Models {
|
|
|
1461
1473
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1462
1474
|
*/
|
|
1463
1475
|
default?: string;
|
|
1476
|
+
/**
|
|
1477
|
+
* Defines whether this attribute is encrypted or not.
|
|
1478
|
+
*/
|
|
1479
|
+
encrypt?: boolean;
|
|
1464
1480
|
};
|
|
1465
1481
|
/**
|
|
1466
1482
|
* AttributeMediumtext
|
|
@@ -1502,6 +1518,10 @@ export declare namespace Models {
|
|
|
1502
1518
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1503
1519
|
*/
|
|
1504
1520
|
default?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* Defines whether this attribute is encrypted or not.
|
|
1523
|
+
*/
|
|
1524
|
+
encrypt?: boolean;
|
|
1505
1525
|
};
|
|
1506
1526
|
/**
|
|
1507
1527
|
* AttributeLongtext
|
|
@@ -1543,6 +1563,10 @@ export declare namespace Models {
|
|
|
1543
1563
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1544
1564
|
*/
|
|
1545
1565
|
default?: string;
|
|
1566
|
+
/**
|
|
1567
|
+
* Defines whether this attribute is encrypted or not.
|
|
1568
|
+
*/
|
|
1569
|
+
encrypt?: boolean;
|
|
1546
1570
|
};
|
|
1547
1571
|
/**
|
|
1548
1572
|
* Table
|
|
@@ -1583,11 +1607,19 @@ export declare namespace Models {
|
|
|
1583
1607
|
/**
|
|
1584
1608
|
* Table columns.
|
|
1585
1609
|
*/
|
|
1586
|
-
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
|
|
1610
|
+
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnVarchar | Models.ColumnText | Models.ColumnMediumtext | Models.ColumnLongtext | Models.ColumnString)[];
|
|
1587
1611
|
/**
|
|
1588
1612
|
* Table indexes.
|
|
1589
1613
|
*/
|
|
1590
1614
|
indexes: ColumnIndex[];
|
|
1615
|
+
/**
|
|
1616
|
+
* Maximum row size in bytes. Returns 0 when no limit applies.
|
|
1617
|
+
*/
|
|
1618
|
+
bytesMax: number;
|
|
1619
|
+
/**
|
|
1620
|
+
* Currently used row size in bytes based on defined columns.
|
|
1621
|
+
*/
|
|
1622
|
+
bytesUsed: number;
|
|
1591
1623
|
};
|
|
1592
1624
|
/**
|
|
1593
1625
|
* Columns List
|
|
@@ -1600,7 +1632,7 @@ export declare namespace Models {
|
|
|
1600
1632
|
/**
|
|
1601
1633
|
* List of columns.
|
|
1602
1634
|
*/
|
|
1603
|
-
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
|
|
1635
|
+
columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnVarchar | Models.ColumnText | Models.ColumnMediumtext | Models.ColumnLongtext | Models.ColumnString)[];
|
|
1604
1636
|
};
|
|
1605
1637
|
/**
|
|
1606
1638
|
* ColumnString
|
|
@@ -2247,6 +2279,10 @@ export declare namespace Models {
|
|
|
2247
2279
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2248
2280
|
*/
|
|
2249
2281
|
default?: string;
|
|
2282
|
+
/**
|
|
2283
|
+
* Defines whether this column is encrypted or not.
|
|
2284
|
+
*/
|
|
2285
|
+
encrypt?: boolean;
|
|
2250
2286
|
};
|
|
2251
2287
|
/**
|
|
2252
2288
|
* ColumnText
|
|
@@ -2288,6 +2324,10 @@ export declare namespace Models {
|
|
|
2288
2324
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2289
2325
|
*/
|
|
2290
2326
|
default?: string;
|
|
2327
|
+
/**
|
|
2328
|
+
* Defines whether this column is encrypted or not.
|
|
2329
|
+
*/
|
|
2330
|
+
encrypt?: boolean;
|
|
2291
2331
|
};
|
|
2292
2332
|
/**
|
|
2293
2333
|
* ColumnMediumtext
|
|
@@ -2329,6 +2369,10 @@ export declare namespace Models {
|
|
|
2329
2369
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2330
2370
|
*/
|
|
2331
2371
|
default?: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* Defines whether this column is encrypted or not.
|
|
2374
|
+
*/
|
|
2375
|
+
encrypt?: boolean;
|
|
2332
2376
|
};
|
|
2333
2377
|
/**
|
|
2334
2378
|
* ColumnLongtext
|
|
@@ -2370,6 +2414,10 @@ export declare namespace Models {
|
|
|
2370
2414
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2371
2415
|
*/
|
|
2372
2416
|
default?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Defines whether this column is encrypted or not.
|
|
2419
|
+
*/
|
|
2420
|
+
encrypt?: boolean;
|
|
2373
2421
|
};
|
|
2374
2422
|
/**
|
|
2375
2423
|
* Index
|
|
@@ -6094,7 +6142,7 @@ export declare namespace Models {
|
|
|
6094
6142
|
*/
|
|
6095
6143
|
_APP_ASSISTANT_ENABLED: boolean;
|
|
6096
6144
|
/**
|
|
6097
|
-
* A
|
|
6145
|
+
* A comma separated list of domains to use for site URLs.
|
|
6098
6146
|
*/
|
|
6099
6147
|
_APP_DOMAIN_SITES: string;
|
|
6100
6148
|
/**
|
|
@@ -6518,6 +6566,139 @@ export declare namespace Models {
|
|
|
6518
6566
|
*/
|
|
6519
6567
|
version: string;
|
|
6520
6568
|
};
|
|
6569
|
+
/**
|
|
6570
|
+
* ActivityEvent
|
|
6571
|
+
*/
|
|
6572
|
+
export type ActivityEvent = {
|
|
6573
|
+
/**
|
|
6574
|
+
* Event ID.
|
|
6575
|
+
*/
|
|
6576
|
+
$id: string;
|
|
6577
|
+
/**
|
|
6578
|
+
* User type.
|
|
6579
|
+
*/
|
|
6580
|
+
userType: string;
|
|
6581
|
+
/**
|
|
6582
|
+
* User ID.
|
|
6583
|
+
*/
|
|
6584
|
+
userId: string;
|
|
6585
|
+
/**
|
|
6586
|
+
* User Email.
|
|
6587
|
+
*/
|
|
6588
|
+
userEmail: string;
|
|
6589
|
+
/**
|
|
6590
|
+
* User Name.
|
|
6591
|
+
*/
|
|
6592
|
+
userName: string;
|
|
6593
|
+
/**
|
|
6594
|
+
* Resource parent.
|
|
6595
|
+
*/
|
|
6596
|
+
resourceParent: string;
|
|
6597
|
+
/**
|
|
6598
|
+
* Resource type.
|
|
6599
|
+
*/
|
|
6600
|
+
resourceType: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* Resource ID.
|
|
6603
|
+
*/
|
|
6604
|
+
resourceId: string;
|
|
6605
|
+
/**
|
|
6606
|
+
* Resource.
|
|
6607
|
+
*/
|
|
6608
|
+
resource: string;
|
|
6609
|
+
/**
|
|
6610
|
+
* Event name.
|
|
6611
|
+
*/
|
|
6612
|
+
event: string;
|
|
6613
|
+
/**
|
|
6614
|
+
* User agent.
|
|
6615
|
+
*/
|
|
6616
|
+
userAgent: string;
|
|
6617
|
+
/**
|
|
6618
|
+
* IP address.
|
|
6619
|
+
*/
|
|
6620
|
+
ip: string;
|
|
6621
|
+
/**
|
|
6622
|
+
* API mode when event triggered.
|
|
6623
|
+
*/
|
|
6624
|
+
mode: string;
|
|
6625
|
+
/**
|
|
6626
|
+
* Location.
|
|
6627
|
+
*/
|
|
6628
|
+
country: string;
|
|
6629
|
+
/**
|
|
6630
|
+
* Log creation date in ISO 8601 format.
|
|
6631
|
+
*/
|
|
6632
|
+
time: string;
|
|
6633
|
+
/**
|
|
6634
|
+
* Project ID.
|
|
6635
|
+
*/
|
|
6636
|
+
projectId: string;
|
|
6637
|
+
/**
|
|
6638
|
+
* Team ID.
|
|
6639
|
+
*/
|
|
6640
|
+
teamId: string;
|
|
6641
|
+
/**
|
|
6642
|
+
* Hostname.
|
|
6643
|
+
*/
|
|
6644
|
+
hostname: string;
|
|
6645
|
+
/**
|
|
6646
|
+
* Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
|
|
6647
|
+
*/
|
|
6648
|
+
osCode: string;
|
|
6649
|
+
/**
|
|
6650
|
+
* Operating system name.
|
|
6651
|
+
*/
|
|
6652
|
+
osName: string;
|
|
6653
|
+
/**
|
|
6654
|
+
* Operating system version.
|
|
6655
|
+
*/
|
|
6656
|
+
osVersion: string;
|
|
6657
|
+
/**
|
|
6658
|
+
* Client type.
|
|
6659
|
+
*/
|
|
6660
|
+
clientType: string;
|
|
6661
|
+
/**
|
|
6662
|
+
* Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
|
|
6663
|
+
*/
|
|
6664
|
+
clientCode: string;
|
|
6665
|
+
/**
|
|
6666
|
+
* Client name.
|
|
6667
|
+
*/
|
|
6668
|
+
clientName: string;
|
|
6669
|
+
/**
|
|
6670
|
+
* Client version.
|
|
6671
|
+
*/
|
|
6672
|
+
clientVersion: string;
|
|
6673
|
+
/**
|
|
6674
|
+
* Client engine name.
|
|
6675
|
+
*/
|
|
6676
|
+
clientEngine: string;
|
|
6677
|
+
/**
|
|
6678
|
+
* Client engine name.
|
|
6679
|
+
*/
|
|
6680
|
+
clientEngineVersion: string;
|
|
6681
|
+
/**
|
|
6682
|
+
* Device name.
|
|
6683
|
+
*/
|
|
6684
|
+
deviceName: string;
|
|
6685
|
+
/**
|
|
6686
|
+
* Device brand name.
|
|
6687
|
+
*/
|
|
6688
|
+
deviceBrand: string;
|
|
6689
|
+
/**
|
|
6690
|
+
* Device model name.
|
|
6691
|
+
*/
|
|
6692
|
+
deviceModel: string;
|
|
6693
|
+
/**
|
|
6694
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
6695
|
+
*/
|
|
6696
|
+
countryCode: string;
|
|
6697
|
+
/**
|
|
6698
|
+
* Country name.
|
|
6699
|
+
*/
|
|
6700
|
+
countryName: string;
|
|
6701
|
+
};
|
|
6521
6702
|
/**
|
|
6522
6703
|
* AdditionalResource
|
|
6523
6704
|
*/
|
|
@@ -8351,6 +8532,31 @@ export declare namespace Models {
|
|
|
8351
8532
|
*/
|
|
8352
8533
|
value: number;
|
|
8353
8534
|
};
|
|
8535
|
+
/**
|
|
8536
|
+
* DomainPrice
|
|
8537
|
+
*/
|
|
8538
|
+
export type DomainPrice = {
|
|
8539
|
+
/**
|
|
8540
|
+
* Domain name.
|
|
8541
|
+
*/
|
|
8542
|
+
domain: string;
|
|
8543
|
+
/**
|
|
8544
|
+
* Top-level domain for the requested domain.
|
|
8545
|
+
*/
|
|
8546
|
+
tld: string;
|
|
8547
|
+
/**
|
|
8548
|
+
* Whether the domain is currently available for registration.
|
|
8549
|
+
*/
|
|
8550
|
+
available: boolean;
|
|
8551
|
+
/**
|
|
8552
|
+
* Domain registration price.
|
|
8553
|
+
*/
|
|
8554
|
+
price: number;
|
|
8555
|
+
/**
|
|
8556
|
+
* Price period in years.
|
|
8557
|
+
*/
|
|
8558
|
+
periodYears: number;
|
|
8559
|
+
};
|
|
8354
8560
|
/**
|
|
8355
8561
|
* DomainSuggestion
|
|
8356
8562
|
*/
|
|
@@ -8372,6 +8578,19 @@ export declare namespace Models {
|
|
|
8372
8578
|
*/
|
|
8373
8579
|
available: boolean;
|
|
8374
8580
|
};
|
|
8581
|
+
/**
|
|
8582
|
+
* Activity event list
|
|
8583
|
+
*/
|
|
8584
|
+
export type ActivityEventList = {
|
|
8585
|
+
/**
|
|
8586
|
+
* Total number of events that matched your query.
|
|
8587
|
+
*/
|
|
8588
|
+
total: number;
|
|
8589
|
+
/**
|
|
8590
|
+
* List of events.
|
|
8591
|
+
*/
|
|
8592
|
+
events: ActivityEvent[];
|
|
8593
|
+
};
|
|
8375
8594
|
/**
|
|
8376
8595
|
* Aggregation team list
|
|
8377
8596
|
*/
|