@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/models.ts
CHANGED
|
@@ -811,11 +811,19 @@ export namespace Models {
|
|
|
811
811
|
/**
|
|
812
812
|
* Collection attributes.
|
|
813
813
|
*/
|
|
814
|
-
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)[];
|
|
814
|
+
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)[];
|
|
815
815
|
/**
|
|
816
816
|
* Collection indexes.
|
|
817
817
|
*/
|
|
818
818
|
indexes: Index[];
|
|
819
|
+
/**
|
|
820
|
+
* Maximum document size in bytes. Returns 0 when no limit applies.
|
|
821
|
+
*/
|
|
822
|
+
bytesMax: number;
|
|
823
|
+
/**
|
|
824
|
+
* Currently used document size in bytes based on defined attributes.
|
|
825
|
+
*/
|
|
826
|
+
bytesUsed: number;
|
|
819
827
|
}
|
|
820
828
|
|
|
821
829
|
/**
|
|
@@ -829,7 +837,7 @@ export namespace Models {
|
|
|
829
837
|
/**
|
|
830
838
|
* List of attributes.
|
|
831
839
|
*/
|
|
832
|
-
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)[];
|
|
840
|
+
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)[];
|
|
833
841
|
}
|
|
834
842
|
|
|
835
843
|
/**
|
|
@@ -1490,6 +1498,10 @@ export namespace Models {
|
|
|
1490
1498
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1491
1499
|
*/
|
|
1492
1500
|
default?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* Defines whether this attribute is encrypted or not.
|
|
1503
|
+
*/
|
|
1504
|
+
encrypt?: boolean;
|
|
1493
1505
|
}
|
|
1494
1506
|
|
|
1495
1507
|
/**
|
|
@@ -1532,6 +1544,10 @@ export namespace Models {
|
|
|
1532
1544
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1533
1545
|
*/
|
|
1534
1546
|
default?: string;
|
|
1547
|
+
/**
|
|
1548
|
+
* Defines whether this attribute is encrypted or not.
|
|
1549
|
+
*/
|
|
1550
|
+
encrypt?: boolean;
|
|
1535
1551
|
}
|
|
1536
1552
|
|
|
1537
1553
|
/**
|
|
@@ -1574,6 +1590,10 @@ export namespace Models {
|
|
|
1574
1590
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1575
1591
|
*/
|
|
1576
1592
|
default?: string;
|
|
1593
|
+
/**
|
|
1594
|
+
* Defines whether this attribute is encrypted or not.
|
|
1595
|
+
*/
|
|
1596
|
+
encrypt?: boolean;
|
|
1577
1597
|
}
|
|
1578
1598
|
|
|
1579
1599
|
/**
|
|
@@ -1616,6 +1636,10 @@ export namespace Models {
|
|
|
1616
1636
|
* Default value for attribute when not provided. Cannot be set when attribute is required.
|
|
1617
1637
|
*/
|
|
1618
1638
|
default?: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* Defines whether this attribute is encrypted or not.
|
|
1641
|
+
*/
|
|
1642
|
+
encrypt?: boolean;
|
|
1619
1643
|
}
|
|
1620
1644
|
|
|
1621
1645
|
/**
|
|
@@ -1657,11 +1681,19 @@ export namespace Models {
|
|
|
1657
1681
|
/**
|
|
1658
1682
|
* Table columns.
|
|
1659
1683
|
*/
|
|
1660
|
-
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)[];
|
|
1684
|
+
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)[];
|
|
1661
1685
|
/**
|
|
1662
1686
|
* Table indexes.
|
|
1663
1687
|
*/
|
|
1664
1688
|
indexes: ColumnIndex[];
|
|
1689
|
+
/**
|
|
1690
|
+
* Maximum row size in bytes. Returns 0 when no limit applies.
|
|
1691
|
+
*/
|
|
1692
|
+
bytesMax: number;
|
|
1693
|
+
/**
|
|
1694
|
+
* Currently used row size in bytes based on defined columns.
|
|
1695
|
+
*/
|
|
1696
|
+
bytesUsed: number;
|
|
1665
1697
|
}
|
|
1666
1698
|
|
|
1667
1699
|
/**
|
|
@@ -1675,7 +1707,7 @@ export namespace Models {
|
|
|
1675
1707
|
/**
|
|
1676
1708
|
* List of columns.
|
|
1677
1709
|
*/
|
|
1678
|
-
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)[];
|
|
1710
|
+
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)[];
|
|
1679
1711
|
}
|
|
1680
1712
|
|
|
1681
1713
|
/**
|
|
@@ -2336,6 +2368,10 @@ export namespace Models {
|
|
|
2336
2368
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2337
2369
|
*/
|
|
2338
2370
|
default?: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Defines whether this column is encrypted or not.
|
|
2373
|
+
*/
|
|
2374
|
+
encrypt?: boolean;
|
|
2339
2375
|
}
|
|
2340
2376
|
|
|
2341
2377
|
/**
|
|
@@ -2378,6 +2414,10 @@ export namespace Models {
|
|
|
2378
2414
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2379
2415
|
*/
|
|
2380
2416
|
default?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Defines whether this column is encrypted or not.
|
|
2419
|
+
*/
|
|
2420
|
+
encrypt?: boolean;
|
|
2381
2421
|
}
|
|
2382
2422
|
|
|
2383
2423
|
/**
|
|
@@ -2420,6 +2460,10 @@ export namespace Models {
|
|
|
2420
2460
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2421
2461
|
*/
|
|
2422
2462
|
default?: string;
|
|
2463
|
+
/**
|
|
2464
|
+
* Defines whether this column is encrypted or not.
|
|
2465
|
+
*/
|
|
2466
|
+
encrypt?: boolean;
|
|
2423
2467
|
}
|
|
2424
2468
|
|
|
2425
2469
|
/**
|
|
@@ -2462,6 +2506,10 @@ export namespace Models {
|
|
|
2462
2506
|
* Default value for column when not provided. Cannot be set when column is required.
|
|
2463
2507
|
*/
|
|
2464
2508
|
default?: string;
|
|
2509
|
+
/**
|
|
2510
|
+
* Defines whether this column is encrypted or not.
|
|
2511
|
+
*/
|
|
2512
|
+
encrypt?: boolean;
|
|
2465
2513
|
}
|
|
2466
2514
|
|
|
2467
2515
|
/**
|
|
@@ -6274,7 +6322,7 @@ export namespace Models {
|
|
|
6274
6322
|
*/
|
|
6275
6323
|
_APP_ASSISTANT_ENABLED: boolean;
|
|
6276
6324
|
/**
|
|
6277
|
-
* A
|
|
6325
|
+
* A comma separated list of domains to use for site URLs.
|
|
6278
6326
|
*/
|
|
6279
6327
|
_APP_DOMAIN_SITES: string;
|
|
6280
6328
|
/**
|
|
@@ -6711,6 +6759,140 @@ export namespace Models {
|
|
|
6711
6759
|
version: string;
|
|
6712
6760
|
}
|
|
6713
6761
|
|
|
6762
|
+
/**
|
|
6763
|
+
* ActivityEvent
|
|
6764
|
+
*/
|
|
6765
|
+
export type ActivityEvent = {
|
|
6766
|
+
/**
|
|
6767
|
+
* Event ID.
|
|
6768
|
+
*/
|
|
6769
|
+
$id: string;
|
|
6770
|
+
/**
|
|
6771
|
+
* User type.
|
|
6772
|
+
*/
|
|
6773
|
+
userType: string;
|
|
6774
|
+
/**
|
|
6775
|
+
* User ID.
|
|
6776
|
+
*/
|
|
6777
|
+
userId: string;
|
|
6778
|
+
/**
|
|
6779
|
+
* User Email.
|
|
6780
|
+
*/
|
|
6781
|
+
userEmail: string;
|
|
6782
|
+
/**
|
|
6783
|
+
* User Name.
|
|
6784
|
+
*/
|
|
6785
|
+
userName: string;
|
|
6786
|
+
/**
|
|
6787
|
+
* Resource parent.
|
|
6788
|
+
*/
|
|
6789
|
+
resourceParent: string;
|
|
6790
|
+
/**
|
|
6791
|
+
* Resource type.
|
|
6792
|
+
*/
|
|
6793
|
+
resourceType: string;
|
|
6794
|
+
/**
|
|
6795
|
+
* Resource ID.
|
|
6796
|
+
*/
|
|
6797
|
+
resourceId: string;
|
|
6798
|
+
/**
|
|
6799
|
+
* Resource.
|
|
6800
|
+
*/
|
|
6801
|
+
resource: string;
|
|
6802
|
+
/**
|
|
6803
|
+
* Event name.
|
|
6804
|
+
*/
|
|
6805
|
+
event: string;
|
|
6806
|
+
/**
|
|
6807
|
+
* User agent.
|
|
6808
|
+
*/
|
|
6809
|
+
userAgent: string;
|
|
6810
|
+
/**
|
|
6811
|
+
* IP address.
|
|
6812
|
+
*/
|
|
6813
|
+
ip: string;
|
|
6814
|
+
/**
|
|
6815
|
+
* API mode when event triggered.
|
|
6816
|
+
*/
|
|
6817
|
+
mode: string;
|
|
6818
|
+
/**
|
|
6819
|
+
* Location.
|
|
6820
|
+
*/
|
|
6821
|
+
country: string;
|
|
6822
|
+
/**
|
|
6823
|
+
* Log creation date in ISO 8601 format.
|
|
6824
|
+
*/
|
|
6825
|
+
time: string;
|
|
6826
|
+
/**
|
|
6827
|
+
* Project ID.
|
|
6828
|
+
*/
|
|
6829
|
+
projectId: string;
|
|
6830
|
+
/**
|
|
6831
|
+
* Team ID.
|
|
6832
|
+
*/
|
|
6833
|
+
teamId: string;
|
|
6834
|
+
/**
|
|
6835
|
+
* Hostname.
|
|
6836
|
+
*/
|
|
6837
|
+
hostname: string;
|
|
6838
|
+
/**
|
|
6839
|
+
* Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
|
|
6840
|
+
*/
|
|
6841
|
+
osCode: string;
|
|
6842
|
+
/**
|
|
6843
|
+
* Operating system name.
|
|
6844
|
+
*/
|
|
6845
|
+
osName: string;
|
|
6846
|
+
/**
|
|
6847
|
+
* Operating system version.
|
|
6848
|
+
*/
|
|
6849
|
+
osVersion: string;
|
|
6850
|
+
/**
|
|
6851
|
+
* Client type.
|
|
6852
|
+
*/
|
|
6853
|
+
clientType: string;
|
|
6854
|
+
/**
|
|
6855
|
+
* Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
|
|
6856
|
+
*/
|
|
6857
|
+
clientCode: string;
|
|
6858
|
+
/**
|
|
6859
|
+
* Client name.
|
|
6860
|
+
*/
|
|
6861
|
+
clientName: string;
|
|
6862
|
+
/**
|
|
6863
|
+
* Client version.
|
|
6864
|
+
*/
|
|
6865
|
+
clientVersion: string;
|
|
6866
|
+
/**
|
|
6867
|
+
* Client engine name.
|
|
6868
|
+
*/
|
|
6869
|
+
clientEngine: string;
|
|
6870
|
+
/**
|
|
6871
|
+
* Client engine name.
|
|
6872
|
+
*/
|
|
6873
|
+
clientEngineVersion: string;
|
|
6874
|
+
/**
|
|
6875
|
+
* Device name.
|
|
6876
|
+
*/
|
|
6877
|
+
deviceName: string;
|
|
6878
|
+
/**
|
|
6879
|
+
* Device brand name.
|
|
6880
|
+
*/
|
|
6881
|
+
deviceBrand: string;
|
|
6882
|
+
/**
|
|
6883
|
+
* Device model name.
|
|
6884
|
+
*/
|
|
6885
|
+
deviceModel: string;
|
|
6886
|
+
/**
|
|
6887
|
+
* Country two-character ISO 3166-1 alpha code.
|
|
6888
|
+
*/
|
|
6889
|
+
countryCode: string;
|
|
6890
|
+
/**
|
|
6891
|
+
* Country name.
|
|
6892
|
+
*/
|
|
6893
|
+
countryName: string;
|
|
6894
|
+
}
|
|
6895
|
+
|
|
6714
6896
|
/**
|
|
6715
6897
|
* AdditionalResource
|
|
6716
6898
|
*/
|
|
@@ -8581,6 +8763,32 @@ export namespace Models {
|
|
|
8581
8763
|
value: number;
|
|
8582
8764
|
}
|
|
8583
8765
|
|
|
8766
|
+
/**
|
|
8767
|
+
* DomainPrice
|
|
8768
|
+
*/
|
|
8769
|
+
export type DomainPrice = {
|
|
8770
|
+
/**
|
|
8771
|
+
* Domain name.
|
|
8772
|
+
*/
|
|
8773
|
+
domain: string;
|
|
8774
|
+
/**
|
|
8775
|
+
* Top-level domain for the requested domain.
|
|
8776
|
+
*/
|
|
8777
|
+
tld: string;
|
|
8778
|
+
/**
|
|
8779
|
+
* Whether the domain is currently available for registration.
|
|
8780
|
+
*/
|
|
8781
|
+
available: boolean;
|
|
8782
|
+
/**
|
|
8783
|
+
* Domain registration price.
|
|
8784
|
+
*/
|
|
8785
|
+
price: number;
|
|
8786
|
+
/**
|
|
8787
|
+
* Price period in years.
|
|
8788
|
+
*/
|
|
8789
|
+
periodYears: number;
|
|
8790
|
+
}
|
|
8791
|
+
|
|
8584
8792
|
/**
|
|
8585
8793
|
* DomainSuggestion
|
|
8586
8794
|
*/
|
|
@@ -8603,6 +8811,20 @@ export namespace Models {
|
|
|
8603
8811
|
available: boolean;
|
|
8604
8812
|
}
|
|
8605
8813
|
|
|
8814
|
+
/**
|
|
8815
|
+
* Activity event list
|
|
8816
|
+
*/
|
|
8817
|
+
export type ActivityEventList = {
|
|
8818
|
+
/**
|
|
8819
|
+
* Total number of events that matched your query.
|
|
8820
|
+
*/
|
|
8821
|
+
total: number;
|
|
8822
|
+
/**
|
|
8823
|
+
* List of events.
|
|
8824
|
+
*/
|
|
8825
|
+
events: ActivityEvent[];
|
|
8826
|
+
}
|
|
8827
|
+
|
|
8606
8828
|
/**
|
|
8607
8829
|
* Aggregation team list
|
|
8608
8830
|
*/
|
package/src/services/account.ts
CHANGED
|
@@ -1278,7 +1278,7 @@ export class Account {
|
|
|
1278
1278
|
): Promise<Models.MfaType> {
|
|
1279
1279
|
let params: { type: AuthenticatorType };
|
|
1280
1280
|
|
|
1281
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'type' in paramsOrFirst)) {
|
|
1281
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('type' in paramsOrFirst))) {
|
|
1282
1282
|
params = (paramsOrFirst || {}) as { type: AuthenticatorType };
|
|
1283
1283
|
} else {
|
|
1284
1284
|
params = {
|
|
@@ -1330,7 +1330,7 @@ export class Account {
|
|
|
1330
1330
|
): Promise<Models.MfaType> {
|
|
1331
1331
|
let params: { type: AuthenticatorType };
|
|
1332
1332
|
|
|
1333
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'type' in paramsOrFirst)) {
|
|
1333
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('type' in paramsOrFirst))) {
|
|
1334
1334
|
params = (paramsOrFirst || {}) as { type: AuthenticatorType };
|
|
1335
1335
|
} else {
|
|
1336
1336
|
params = {
|
|
@@ -1386,7 +1386,7 @@ export class Account {
|
|
|
1386
1386
|
): Promise<Models.User<Preferences>> {
|
|
1387
1387
|
let params: { type: AuthenticatorType, otp: string };
|
|
1388
1388
|
|
|
1389
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'type' in paramsOrFirst)) {
|
|
1389
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('type' in paramsOrFirst || 'otp' in paramsOrFirst))) {
|
|
1390
1390
|
params = (paramsOrFirst || {}) as { type: AuthenticatorType, otp: string };
|
|
1391
1391
|
} else {
|
|
1392
1392
|
params = {
|
|
@@ -1449,7 +1449,7 @@ export class Account {
|
|
|
1449
1449
|
): Promise<Models.User<Preferences>> {
|
|
1450
1450
|
let params: { type: AuthenticatorType, otp: string };
|
|
1451
1451
|
|
|
1452
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'type' in paramsOrFirst)) {
|
|
1452
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('type' in paramsOrFirst || 'otp' in paramsOrFirst))) {
|
|
1453
1453
|
params = (paramsOrFirst || {}) as { type: AuthenticatorType, otp: string };
|
|
1454
1454
|
} else {
|
|
1455
1455
|
params = {
|
|
@@ -1510,7 +1510,7 @@ export class Account {
|
|
|
1510
1510
|
): Promise<{}> {
|
|
1511
1511
|
let params: { type: AuthenticatorType };
|
|
1512
1512
|
|
|
1513
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'type' in paramsOrFirst)) {
|
|
1513
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('type' in paramsOrFirst))) {
|
|
1514
1514
|
params = (paramsOrFirst || {}) as { type: AuthenticatorType };
|
|
1515
1515
|
} else {
|
|
1516
1516
|
params = {
|
|
@@ -1562,7 +1562,7 @@ export class Account {
|
|
|
1562
1562
|
): Promise<{}> {
|
|
1563
1563
|
let params: { type: AuthenticatorType };
|
|
1564
1564
|
|
|
1565
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'type' in paramsOrFirst)) {
|
|
1565
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('type' in paramsOrFirst))) {
|
|
1566
1566
|
params = (paramsOrFirst || {}) as { type: AuthenticatorType };
|
|
1567
1567
|
} else {
|
|
1568
1568
|
params = {
|
|
@@ -1615,7 +1615,7 @@ export class Account {
|
|
|
1615
1615
|
): Promise<Models.MfaChallenge> {
|
|
1616
1616
|
let params: { factor: AuthenticationFactor };
|
|
1617
1617
|
|
|
1618
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'factor' in paramsOrFirst)) {
|
|
1618
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('factor' in paramsOrFirst))) {
|
|
1619
1619
|
params = (paramsOrFirst || {}) as { factor: AuthenticationFactor };
|
|
1620
1620
|
} else {
|
|
1621
1621
|
params = {
|
|
@@ -1670,7 +1670,7 @@ export class Account {
|
|
|
1670
1670
|
): Promise<Models.MfaChallenge> {
|
|
1671
1671
|
let params: { factor: AuthenticationFactor };
|
|
1672
1672
|
|
|
1673
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'factor' in paramsOrFirst)) {
|
|
1673
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('factor' in paramsOrFirst))) {
|
|
1674
1674
|
params = (paramsOrFirst || {}) as { factor: AuthenticationFactor };
|
|
1675
1675
|
} else {
|
|
1676
1676
|
params = {
|
|
@@ -2647,7 +2647,7 @@ export class Account {
|
|
|
2647
2647
|
): Promise<Models.User<Preferences>> {
|
|
2648
2648
|
let params: { prefs: Partial<Preferences> };
|
|
2649
2649
|
|
|
2650
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'prefs' in paramsOrFirst)) {
|
|
2650
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('prefs' in paramsOrFirst))) {
|
|
2651
2651
|
params = (paramsOrFirst || {}) as { prefs: Partial<Preferences> };
|
|
2652
2652
|
} else {
|
|
2653
2653
|
params = {
|
|
@@ -3073,7 +3073,7 @@ export class Account {
|
|
|
3073
3073
|
): void | string {
|
|
3074
3074
|
let params: { provider: OAuthProvider, success?: string, failure?: string, scopes?: string[] };
|
|
3075
3075
|
|
|
3076
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'provider' in paramsOrFirst)) {
|
|
3076
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('provider' in paramsOrFirst || 'success' in paramsOrFirst || 'failure' in paramsOrFirst || 'scopes' in paramsOrFirst))) {
|
|
3077
3077
|
params = (paramsOrFirst || {}) as { provider: OAuthProvider, success?: string, failure?: string, scopes?: string[] };
|
|
3078
3078
|
} else {
|
|
3079
3079
|
params = {
|
|
@@ -3825,7 +3825,7 @@ export class Account {
|
|
|
3825
3825
|
): void | string {
|
|
3826
3826
|
let params: { provider: OAuthProvider, success?: string, failure?: string, scopes?: string[] };
|
|
3827
3827
|
|
|
3828
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'provider' in paramsOrFirst)) {
|
|
3828
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('provider' in paramsOrFirst || 'success' in paramsOrFirst || 'failure' in paramsOrFirst || 'scopes' in paramsOrFirst))) {
|
|
3829
3829
|
params = (paramsOrFirst || {}) as { provider: OAuthProvider, success?: string, failure?: string, scopes?: string[] };
|
|
3830
3830
|
} else {
|
|
3831
3831
|
params = {
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { Service } from '../service';
|
|
2
|
+
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
3
|
+
import type { Models } from '../models';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class Activities {
|
|
7
|
+
client: Client;
|
|
8
|
+
|
|
9
|
+
constructor(client: Client) {
|
|
10
|
+
this.client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List all events for selected filters.
|
|
15
|
+
*
|
|
16
|
+
* @param {string} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
|
|
17
|
+
* @throws {AppwriteException}
|
|
18
|
+
* @returns {Promise<Models.ActivityEventList>}
|
|
19
|
+
*/
|
|
20
|
+
listEvents(params?: { queries?: string }): Promise<Models.ActivityEventList>;
|
|
21
|
+
/**
|
|
22
|
+
* List all events for selected filters.
|
|
23
|
+
*
|
|
24
|
+
* @param {string} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
|
|
25
|
+
* @throws {AppwriteException}
|
|
26
|
+
* @returns {Promise<Models.ActivityEventList>}
|
|
27
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
28
|
+
*/
|
|
29
|
+
listEvents(queries?: string): Promise<Models.ActivityEventList>;
|
|
30
|
+
listEvents(
|
|
31
|
+
paramsOrFirst?: { queries?: string } | string
|
|
32
|
+
): Promise<Models.ActivityEventList> {
|
|
33
|
+
let params: { queries?: string };
|
|
34
|
+
|
|
35
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
36
|
+
params = (paramsOrFirst || {}) as { queries?: string };
|
|
37
|
+
} else {
|
|
38
|
+
params = {
|
|
39
|
+
queries: paramsOrFirst as string
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const queries = params.queries;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
const apiPath = '/activities/events';
|
|
47
|
+
const payload: Payload = {};
|
|
48
|
+
if (typeof queries !== 'undefined') {
|
|
49
|
+
payload['queries'] = queries;
|
|
50
|
+
}
|
|
51
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
52
|
+
|
|
53
|
+
const apiHeaders: { [header: string]: string } = {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return this.client.call(
|
|
57
|
+
'get',
|
|
58
|
+
uri,
|
|
59
|
+
apiHeaders,
|
|
60
|
+
payload
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Get event by ID.
|
|
66
|
+
*
|
|
67
|
+
*
|
|
68
|
+
* @param {string} params.eventId - Event ID.
|
|
69
|
+
* @throws {AppwriteException}
|
|
70
|
+
* @returns {Promise<Models.ActivityEvent>}
|
|
71
|
+
*/
|
|
72
|
+
getEvent(params: { eventId: string }): Promise<Models.ActivityEvent>;
|
|
73
|
+
/**
|
|
74
|
+
* Get event by ID.
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
* @param {string} eventId - Event ID.
|
|
78
|
+
* @throws {AppwriteException}
|
|
79
|
+
* @returns {Promise<Models.ActivityEvent>}
|
|
80
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
81
|
+
*/
|
|
82
|
+
getEvent(eventId: string): Promise<Models.ActivityEvent>;
|
|
83
|
+
getEvent(
|
|
84
|
+
paramsOrFirst: { eventId: string } | string
|
|
85
|
+
): Promise<Models.ActivityEvent> {
|
|
86
|
+
let params: { eventId: string };
|
|
87
|
+
|
|
88
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
89
|
+
params = (paramsOrFirst || {}) as { eventId: string };
|
|
90
|
+
} else {
|
|
91
|
+
params = {
|
|
92
|
+
eventId: paramsOrFirst as string
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const eventId = params.eventId;
|
|
97
|
+
|
|
98
|
+
if (typeof eventId === 'undefined') {
|
|
99
|
+
throw new AppwriteException('Missing required parameter: "eventId"');
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const apiPath = '/activities/events/{eventId}'.replace('{eventId}', eventId);
|
|
103
|
+
const payload: Payload = {};
|
|
104
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
105
|
+
|
|
106
|
+
const apiHeaders: { [header: string]: string } = {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return this.client.call(
|
|
110
|
+
'get',
|
|
111
|
+
uri,
|
|
112
|
+
apiHeaders,
|
|
113
|
+
payload
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
}
|
package/src/services/avatars.ts
CHANGED
|
@@ -50,7 +50,7 @@ export class Avatars {
|
|
|
50
50
|
): string {
|
|
51
51
|
let params: { code: Browser, width?: number, height?: number, quality?: number };
|
|
52
52
|
|
|
53
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'code' in paramsOrFirst)) {
|
|
53
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('code' in paramsOrFirst || 'width' in paramsOrFirst || 'height' in paramsOrFirst || 'quality' in paramsOrFirst))) {
|
|
54
54
|
params = (paramsOrFirst || {}) as { code: Browser, width?: number, height?: number, quality?: number };
|
|
55
55
|
} else {
|
|
56
56
|
params = {
|
|
@@ -130,7 +130,7 @@ export class Avatars {
|
|
|
130
130
|
): string {
|
|
131
131
|
let params: { code: CreditCard, width?: number, height?: number, quality?: number };
|
|
132
132
|
|
|
133
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'code' in paramsOrFirst)) {
|
|
133
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('code' in paramsOrFirst || 'width' in paramsOrFirst || 'height' in paramsOrFirst || 'quality' in paramsOrFirst))) {
|
|
134
134
|
params = (paramsOrFirst || {}) as { code: CreditCard, width?: number, height?: number, quality?: number };
|
|
135
135
|
} else {
|
|
136
136
|
params = {
|
|
@@ -269,7 +269,7 @@ export class Avatars {
|
|
|
269
269
|
): string {
|
|
270
270
|
let params: { code: Flag, width?: number, height?: number, quality?: number };
|
|
271
271
|
|
|
272
|
-
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'code' in paramsOrFirst)) {
|
|
272
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && ('code' in paramsOrFirst || 'width' in paramsOrFirst || 'height' in paramsOrFirst || 'quality' in paramsOrFirst))) {
|
|
273
273
|
params = (paramsOrFirst || {}) as { code: Flag, width?: number, height?: number, quality?: number };
|
|
274
274
|
} else {
|
|
275
275
|
params = {
|