@appwrite.io/console 1.6.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/README.md +3 -3
- package/dist/cjs/sdk.js +6731 -3907
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +6729 -3908
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +6731 -3907
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-billing-address.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-payment-method.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-billing-address.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +1 -1
- package/docs/examples/account/delete-payment-method.md +1 -1
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- package/docs/examples/account/get-billing-address.md +1 -1
- package/docs/examples/account/get-coupon.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-payment-method.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-billing-addresses.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-invoices.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-payment-methods.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-billing-address.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
- package/docs/examples/account/update-payment-method-provider.md +1 -1
- package/docs/examples/account/update-payment-method.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-browser.md +2 -2
- package/docs/examples/avatars/get-credit-card.md +2 -2
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +2 -2
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/backups/create-archive.md +1 -1
- package/docs/examples/backups/create-policy.md +1 -1
- package/docs/examples/backups/create-restoration.md +1 -1
- package/docs/examples/backups/delete-archive.md +1 -1
- package/docs/examples/backups/delete-policy.md +1 -1
- package/docs/examples/backups/get-archive.md +1 -1
- package/docs/examples/backups/get-policy.md +1 -1
- package/docs/examples/backups/get-restoration.md +1 -1
- package/docs/examples/backups/list-archives.md +1 -1
- package/docs/examples/backups/list-policies.md +1 -1
- package/docs/examples/backups/list-restorations.md +1 -1
- package/docs/examples/backups/update-policy.md +1 -1
- package/docs/examples/console/create-program-membership.md +1 -1
- package/docs/examples/console/create-source.md +1 -1
- package/docs/examples/console/get-campaign.md +1 -1
- package/docs/examples/console/get-coupon.md +1 -1
- package/docs/examples/console/get-resource.md +14 -0
- package/docs/examples/console/plans.md +1 -1
- package/docs/examples/console/regions.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +4 -2
- package/docs/examples/databases/create-documents.md +15 -0
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +3 -2
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-documents.md +15 -0
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-documents.md +16 -0
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/databases/upsert-documents.md +15 -0
- package/docs/examples/domains/create-preset-google-workspace.md +13 -0
- package/docs/examples/domains/create-preset-i-cloud.md +13 -0
- package/docs/examples/domains/create-preset-mailgun.md +13 -0
- package/docs/examples/domains/create-preset-outlook.md +13 -0
- package/docs/examples/domains/create-preset-proton-mail.md +13 -0
- package/docs/examples/domains/create-preset-zoho.md +13 -0
- package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
- package/docs/examples/domains/create-record-a.md +17 -0
- package/docs/examples/domains/create-record-alias.md +17 -0
- package/docs/examples/domains/create-record-c-a-a.md +17 -0
- package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
- package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
- package/docs/examples/domains/create-record-m-x.md +18 -0
- package/docs/examples/domains/create-record-n-s.md +17 -0
- package/docs/examples/domains/create-record-s-r-v.md +20 -0
- package/docs/examples/domains/create-record-t-x-t.md +17 -0
- package/docs/examples/domains/create.md +14 -0
- package/docs/examples/domains/delete-record.md +14 -0
- package/docs/examples/domains/delete.md +13 -0
- package/docs/examples/domains/get-preset-google-workspace.md +13 -0
- package/docs/examples/domains/get-preset-i-cloud.md +13 -0
- package/docs/examples/domains/get-preset-mailgun.md +13 -0
- package/docs/examples/domains/get-preset-outlook.md +13 -0
- package/docs/examples/domains/get-preset-proton-mail.md +13 -0
- package/docs/examples/domains/get-preset-zoho.md +13 -0
- package/docs/examples/domains/get-record.md +14 -0
- package/docs/examples/domains/get-zone.md +13 -0
- package/docs/examples/domains/get.md +13 -0
- package/docs/examples/domains/list-records.md +14 -0
- package/docs/examples/domains/list.md +14 -0
- package/docs/examples/domains/update-nameservers.md +13 -0
- package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
- package/docs/examples/domains/update-record-a.md +18 -0
- package/docs/examples/domains/update-record-alias.md +18 -0
- package/docs/examples/domains/update-record-c-a-a.md +18 -0
- package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
- package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
- package/docs/examples/domains/update-record-m-x.md +19 -0
- package/docs/examples/domains/update-record-n-s.md +18 -0
- package/docs/examples/domains/update-record-s-r-v.md +21 -0
- package/docs/examples/domains/update-record-t-x-t.md +18 -0
- package/docs/examples/domains/update-team.md +14 -0
- package/docs/examples/domains/update-zone.md +14 -0
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-duplicate-deployment.md +15 -0
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-template-deployment.md +18 -0
- package/docs/examples/functions/create-variable.md +3 -2
- package/docs/examples/functions/create-vcs-deployment.md +16 -0
- package/docs/examples/functions/create.md +3 -3
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +4 -3
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-template.md +1 -1
- package/docs/examples/functions/get-usage.md +2 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +1 -1
- package/docs/examples/functions/list-templates.md +1 -1
- package/docs/examples/functions/list-usage.md +13 -0
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-status.md +14 -0
- package/docs/examples/functions/update-function-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +3 -2
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-priority-builds.md +1 -1
- package/docs/examples/health/get-queue-region-manager.md +13 -0
- package/docs/examples/health/get-queue-stats-resources.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-csv-migration.md +15 -0
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/organizations/add-credit.md +1 -1
- package/docs/examples/organizations/create-invoice-payment.md +1 -1
- package/docs/examples/organizations/create.md +1 -1
- package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
- package/docs/examples/organizations/delete-billing-address.md +1 -1
- package/docs/examples/organizations/delete-default-payment-method.md +1 -1
- package/docs/examples/organizations/delete.md +1 -1
- package/docs/examples/organizations/get-aggregation.md +1 -1
- package/docs/examples/organizations/get-billing-address.md +1 -1
- package/docs/examples/organizations/get-credit.md +1 -1
- package/docs/examples/organizations/get-invoice-download.md +1 -1
- package/docs/examples/organizations/get-invoice-view.md +1 -1
- package/docs/examples/organizations/get-invoice.md +1 -1
- package/docs/examples/organizations/get-payment-method.md +1 -1
- package/docs/examples/organizations/get-plan.md +1 -1
- package/docs/examples/organizations/get-scopes.md +1 -1
- package/docs/examples/organizations/list-aggregations.md +1 -1
- package/docs/examples/organizations/list-credits.md +1 -1
- package/docs/examples/organizations/list-invoices.md +1 -1
- package/docs/examples/organizations/list.md +1 -1
- package/docs/examples/organizations/set-backup-payment-method.md +1 -1
- package/docs/examples/organizations/set-billing-address.md +1 -1
- package/docs/examples/organizations/set-billing-email.md +1 -1
- package/docs/examples/organizations/set-billing-tax-id.md +1 -1
- package/docs/examples/organizations/set-default-payment-method.md +1 -1
- package/docs/examples/organizations/update-budget.md +1 -1
- package/docs/examples/organizations/update-plan.md +1 -1
- package/docs/examples/organizations/validate-invoice.md +1 -1
- package/docs/examples/project/create-variable.md +3 -2
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -2
- package/docs/examples/projects/create-dev-key.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-dev-key.md +14 -0
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +14 -0
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +14 -0
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-dev-key.md +16 -0
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-memberships-privacy.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +1 -1
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
- package/docs/examples/proxy/create-function-rule.md +15 -0
- package/docs/examples/proxy/create-redirect-rule.md +15 -0
- package/docs/examples/proxy/create-site-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/sites/create-deployment.md +18 -0
- package/docs/examples/sites/create-duplicate-deployment.md +14 -0
- package/docs/examples/sites/create-template-deployment.md +18 -0
- package/docs/examples/sites/create-variable.md +16 -0
- package/docs/examples/sites/create-vcs-deployment.md +16 -0
- package/docs/examples/sites/create.md +30 -0
- package/docs/examples/sites/delete-deployment.md +14 -0
- package/docs/examples/sites/delete-log.md +14 -0
- package/docs/examples/sites/delete-variable.md +14 -0
- package/docs/examples/sites/delete.md +13 -0
- package/docs/examples/sites/get-deployment-download.md +15 -0
- package/docs/examples/sites/get-deployment.md +14 -0
- package/docs/examples/sites/get-log.md +14 -0
- package/docs/examples/sites/get-template.md +13 -0
- package/docs/examples/sites/get-usage.md +14 -0
- package/docs/examples/sites/get-variable.md +14 -0
- package/docs/examples/sites/get.md +13 -0
- package/docs/examples/sites/list-deployments.md +15 -0
- package/docs/examples/sites/list-frameworks.md +11 -0
- package/docs/examples/sites/list-logs.md +14 -0
- package/docs/examples/sites/list-specifications.md +11 -0
- package/docs/examples/sites/list-templates.md +16 -0
- package/docs/examples/sites/list-usage.md +13 -0
- package/docs/examples/sites/list-variables.md +13 -0
- package/docs/examples/sites/list.md +14 -0
- package/docs/examples/sites/update-deployment-status.md +14 -0
- package/docs/examples/sites/update-site-deployment.md +14 -0
- package/docs/examples/sites/update-variable.md +17 -0
- package/docs/examples/sites/update.md +30 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +3 -2
- package/docs/examples/storage/get-file-preview.md +4 -3
- package/docs/examples/storage/get-file-view.md +3 -2
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/tokens/create-file-token.md +15 -0
- package/docs/examples/tokens/delete.md +13 -0
- package/docs/examples/tokens/get.md +13 -0
- package/docs/examples/tokens/list.md +15 -0
- package/docs/examples/tokens/update.md +14 -0
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +4 -2
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +3 -2
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +3 -2
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +12 -2
- package/src/enums/adapter.ts +4 -0
- package/src/enums/api-service.ts +1 -0
- package/src/enums/build-runtime.ts +62 -0
- package/src/enums/console-resource-type.ts +3 -0
- package/src/enums/deployment-download-type.ts +4 -0
- package/src/enums/framework.ts +16 -0
- package/src/enums/image-format.ts +0 -1
- package/src/enums/name.ts +0 -1
- package/src/enums/region.ts +2 -1
- package/src/enums/runtime.ts +4 -3
- package/src/enums/site-usage-range.ts +5 -0
- package/src/enums/status-code.ts +6 -0
- package/src/enums/v-c-s-deployment-type.ts +5 -0
- package/src/enums/v-c-s-detection-type.ts +4 -0
- package/src/index.ts +13 -2
- package/src/models.ts +1092 -221
- package/src/services/account.ts +0 -16
- package/src/services/avatars.ts +0 -7
- package/src/services/backups.ts +0 -6
- package/src/services/console.ts +36 -5
- package/src/services/databases.ts +149 -18
- package/src/services/domains.ts +1821 -0
- package/src/services/functions.ts +174 -69
- package/src/services/health.ts +9 -34
- package/src/services/locale.ts +0 -8
- package/src/services/messaging.ts +0 -13
- package/src/services/migrations.ts +43 -6
- package/src/services/organizations.ts +0 -47
- package/src/services/project.ts +10 -5
- package/src/services/projects.ts +172 -10
- package/src/services/proxy.ts +124 -14
- package/src/services/sites.ts +1104 -0
- package/src/services/storage.ts +15 -12
- package/src/services/teams.ts +0 -6
- package/src/services/tokens.ts +160 -0
- package/src/services/users.ts +9 -13
- package/src/services/vcs.ts +54 -42
- package/types/enums/adapter.d.ts +4 -0
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +62 -0
- package/types/enums/console-resource-type.d.ts +3 -0
- package/types/enums/deployment-download-type.d.ts +4 -0
- package/types/enums/framework.d.ts +16 -0
- package/types/enums/image-format.d.ts +0 -1
- package/types/enums/name.d.ts +0 -1
- package/types/enums/region.d.ts +3 -2
- package/types/enums/runtime.d.ts +5 -4
- package/types/enums/site-usage-range.d.ts +5 -0
- package/types/enums/status-code.d.ts +6 -0
- package/types/enums/v-c-s-deployment-type.d.ts +5 -0
- package/types/enums/v-c-s-detection-type.d.ts +4 -0
- package/types/index.d.ts +13 -2
- package/types/models.d.ts +1092 -221
- package/types/services/console.d.ts +10 -0
- package/types/services/databases.d.ts +44 -2
- package/types/services/domains.d.ts +524 -0
- package/types/services/functions.d.ts +60 -30
- package/types/services/health.d.ts +6 -6
- package/types/services/migrations.d.ts +10 -0
- package/types/services/organizations.d.ts +0 -10
- package/types/services/project.d.ts +4 -2
- package/types/services/projects.d.ts +48 -0
- package/types/services/proxy.d.ts +33 -5
- package/types/services/sites.d.ts +319 -0
- package/types/services/storage.d.ts +6 -3
- package/types/services/tokens.d.ts +51 -0
- package/types/services/users.d.ts +3 -1
- package/types/services/vcs.d.ts +15 -12
package/src/services/account.ts
CHANGED
|
@@ -24,7 +24,6 @@ export class Account {
|
|
|
24
24
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25
25
|
|
|
26
26
|
const apiHeaders: { [header: string]: string } = {
|
|
27
|
-
'content-type': 'application/json',
|
|
28
27
|
}
|
|
29
28
|
|
|
30
29
|
return this.client.call(
|
|
@@ -119,7 +118,6 @@ export class Account {
|
|
|
119
118
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
120
119
|
|
|
121
120
|
const apiHeaders: { [header: string]: string } = {
|
|
122
|
-
'content-type': 'application/json',
|
|
123
121
|
}
|
|
124
122
|
|
|
125
123
|
return this.client.call(
|
|
@@ -203,7 +201,6 @@ export class Account {
|
|
|
203
201
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
204
202
|
|
|
205
203
|
const apiHeaders: { [header: string]: string } = {
|
|
206
|
-
'content-type': 'application/json',
|
|
207
204
|
}
|
|
208
205
|
|
|
209
206
|
return this.client.call(
|
|
@@ -317,7 +314,6 @@ export class Account {
|
|
|
317
314
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
318
315
|
|
|
319
316
|
const apiHeaders: { [header: string]: string } = {
|
|
320
|
-
'content-type': 'application/json',
|
|
321
317
|
}
|
|
322
318
|
|
|
323
319
|
return this.client.call(
|
|
@@ -381,7 +377,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
381
377
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
382
378
|
|
|
383
379
|
const apiHeaders: { [header: string]: string } = {
|
|
384
|
-
'content-type': 'application/json',
|
|
385
380
|
}
|
|
386
381
|
|
|
387
382
|
return this.client.call(
|
|
@@ -433,7 +428,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
433
428
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
434
429
|
|
|
435
430
|
const apiHeaders: { [header: string]: string } = {
|
|
436
|
-
'content-type': 'application/json',
|
|
437
431
|
}
|
|
438
432
|
|
|
439
433
|
return this.client.call(
|
|
@@ -481,7 +475,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
481
475
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
482
476
|
|
|
483
477
|
const apiHeaders: { [header: string]: string } = {
|
|
484
|
-
'content-type': 'application/json',
|
|
485
478
|
}
|
|
486
479
|
|
|
487
480
|
return this.client.call(
|
|
@@ -682,7 +675,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
682
675
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
683
676
|
|
|
684
677
|
const apiHeaders: { [header: string]: string } = {
|
|
685
|
-
'content-type': 'application/json',
|
|
686
678
|
}
|
|
687
679
|
|
|
688
680
|
return this.client.call(
|
|
@@ -704,7 +696,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
704
696
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
705
697
|
|
|
706
698
|
const apiHeaders: { [header: string]: string } = {
|
|
707
|
-
'content-type': 'application/json',
|
|
708
699
|
}
|
|
709
700
|
|
|
710
701
|
return this.client.call(
|
|
@@ -836,7 +827,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
836
827
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
837
828
|
|
|
838
829
|
const apiHeaders: { [header: string]: string } = {
|
|
839
|
-
'content-type': 'application/json',
|
|
840
830
|
}
|
|
841
831
|
|
|
842
832
|
return this.client.call(
|
|
@@ -884,7 +874,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
884
874
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
885
875
|
|
|
886
876
|
const apiHeaders: { [header: string]: string } = {
|
|
887
|
-
'content-type': 'application/json',
|
|
888
877
|
}
|
|
889
878
|
|
|
890
879
|
return this.client.call(
|
|
@@ -1074,7 +1063,6 @@ This endpoint can also be used to convert an anonymous account to a normal one,
|
|
|
1074
1063
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1075
1064
|
|
|
1076
1065
|
const apiHeaders: { [header: string]: string } = {
|
|
1077
|
-
'content-type': 'application/json',
|
|
1078
1066
|
}
|
|
1079
1067
|
|
|
1080
1068
|
return this.client.call(
|
|
@@ -1206,7 +1194,6 @@ Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/
|
|
|
1206
1194
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1207
1195
|
|
|
1208
1196
|
const apiHeaders: { [header: string]: string } = {
|
|
1209
|
-
'content-type': 'application/json',
|
|
1210
1197
|
}
|
|
1211
1198
|
|
|
1212
1199
|
return this.client.call(
|
|
@@ -1367,7 +1354,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1367
1354
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1368
1355
|
|
|
1369
1356
|
const apiHeaders: { [header: string]: string } = {
|
|
1370
|
-
'content-type': 'application/json',
|
|
1371
1357
|
}
|
|
1372
1358
|
|
|
1373
1359
|
payload['project'] = this.client.config.project;
|
|
@@ -1471,7 +1457,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1471
1457
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1472
1458
|
|
|
1473
1459
|
const apiHeaders: { [header: string]: string } = {
|
|
1474
|
-
'content-type': 'application/json',
|
|
1475
1460
|
}
|
|
1476
1461
|
|
|
1477
1462
|
return this.client.call(
|
|
@@ -1775,7 +1760,6 @@ A user is limited to 10 active sessions at a time by default. [Learn more about
|
|
|
1775
1760
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1776
1761
|
|
|
1777
1762
|
const apiHeaders: { [header: string]: string } = {
|
|
1778
|
-
'content-type': 'application/json',
|
|
1779
1763
|
}
|
|
1780
1764
|
|
|
1781
1765
|
payload['project'] = this.client.config.project;
|
package/src/services/avatars.ts
CHANGED
|
@@ -42,7 +42,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
42
42
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
43
43
|
|
|
44
44
|
const apiHeaders: { [header: string]: string } = {
|
|
45
|
-
'content-type': 'application/json',
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
payload['project'] = this.client.config.project;
|
|
@@ -84,7 +83,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
84
83
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
85
84
|
|
|
86
85
|
const apiHeaders: { [header: string]: string } = {
|
|
87
|
-
'content-type': 'application/json',
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
payload['project'] = this.client.config.project;
|
|
@@ -116,7 +114,6 @@ This endpoint does not follow HTTP redirects.
|
|
|
116
114
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
117
115
|
|
|
118
116
|
const apiHeaders: { [header: string]: string } = {
|
|
119
|
-
'content-type': 'application/json',
|
|
120
117
|
}
|
|
121
118
|
|
|
122
119
|
payload['project'] = this.client.config.project;
|
|
@@ -158,7 +155,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
158
155
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
159
156
|
|
|
160
157
|
const apiHeaders: { [header: string]: string } = {
|
|
161
|
-
'content-type': 'application/json',
|
|
162
158
|
}
|
|
163
159
|
|
|
164
160
|
payload['project'] = this.client.config.project;
|
|
@@ -200,7 +196,6 @@ This endpoint does not follow HTTP redirects.
|
|
|
200
196
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
201
197
|
|
|
202
198
|
const apiHeaders: { [header: string]: string } = {
|
|
203
|
-
'content-type': 'application/json',
|
|
204
199
|
}
|
|
205
200
|
|
|
206
201
|
payload['project'] = this.client.config.project;
|
|
@@ -244,7 +239,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
244
239
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
245
240
|
|
|
246
241
|
const apiHeaders: { [header: string]: string } = {
|
|
247
|
-
'content-type': 'application/json',
|
|
248
242
|
}
|
|
249
243
|
|
|
250
244
|
payload['project'] = this.client.config.project;
|
|
@@ -287,7 +281,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
287
281
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
288
282
|
|
|
289
283
|
const apiHeaders: { [header: string]: string } = {
|
|
290
|
-
'content-type': 'application/json',
|
|
291
284
|
}
|
|
292
285
|
|
|
293
286
|
payload['project'] = this.client.config.project;
|
package/src/services/backups.ts
CHANGED
|
@@ -25,7 +25,6 @@ export class Backups {
|
|
|
25
25
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26
26
|
|
|
27
27
|
const apiHeaders: { [header: string]: string } = {
|
|
28
|
-
'content-type': 'application/json',
|
|
29
28
|
}
|
|
30
29
|
|
|
31
30
|
return this.client.call(
|
|
@@ -84,7 +83,6 @@ export class Backups {
|
|
|
84
83
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
85
84
|
|
|
86
85
|
const apiHeaders: { [header: string]: string } = {
|
|
87
|
-
'content-type': 'application/json',
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
return this.client.call(
|
|
@@ -136,7 +134,6 @@ export class Backups {
|
|
|
136
134
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
137
135
|
|
|
138
136
|
const apiHeaders: { [header: string]: string } = {
|
|
139
|
-
'content-type': 'application/json',
|
|
140
137
|
}
|
|
141
138
|
|
|
142
139
|
return this.client.call(
|
|
@@ -224,7 +221,6 @@ export class Backups {
|
|
|
224
221
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
225
222
|
|
|
226
223
|
const apiHeaders: { [header: string]: string } = {
|
|
227
|
-
'content-type': 'application/json',
|
|
228
224
|
}
|
|
229
225
|
|
|
230
226
|
return this.client.call(
|
|
@@ -362,7 +358,6 @@ export class Backups {
|
|
|
362
358
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
363
359
|
|
|
364
360
|
const apiHeaders: { [header: string]: string } = {
|
|
365
|
-
'content-type': 'application/json',
|
|
366
361
|
}
|
|
367
362
|
|
|
368
363
|
return this.client.call(
|
|
@@ -388,7 +383,6 @@ export class Backups {
|
|
|
388
383
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
389
384
|
|
|
390
385
|
const apiHeaders: { [header: string]: string } = {
|
|
391
|
-
'content-type': 'application/json',
|
|
392
386
|
}
|
|
393
387
|
|
|
394
388
|
return this.client.call(
|
package/src/services/console.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { ConsoleResourceType } from '../enums/console-resource-type';
|
|
4
5
|
|
|
5
6
|
export class Console {
|
|
6
7
|
client: Client;
|
|
@@ -25,7 +26,6 @@ export class Console {
|
|
|
25
26
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
26
27
|
|
|
27
28
|
const apiHeaders: { [header: string]: string } = {
|
|
28
|
-
'content-type': 'application/json',
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
return this.client.call(
|
|
@@ -51,7 +51,6 @@ export class Console {
|
|
|
51
51
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
52
52
|
|
|
53
53
|
const apiHeaders: { [header: string]: string } = {
|
|
54
|
-
'content-type': 'application/json',
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
return this.client.call(
|
|
@@ -73,7 +72,6 @@ export class Console {
|
|
|
73
72
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
74
73
|
|
|
75
74
|
const apiHeaders: { [header: string]: string } = {
|
|
76
|
-
'content-type': 'application/json',
|
|
77
75
|
}
|
|
78
76
|
|
|
79
77
|
return this.client.call(
|
|
@@ -121,7 +119,41 @@ export class Console {
|
|
|
121
119
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
122
120
|
|
|
123
121
|
const apiHeaders: { [header: string]: string } = {
|
|
124
|
-
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return this.client.call(
|
|
125
|
+
'get',
|
|
126
|
+
uri,
|
|
127
|
+
apiHeaders,
|
|
128
|
+
payload
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Check if a resource ID is available.
|
|
133
|
+
*
|
|
134
|
+
* @param {string} value
|
|
135
|
+
* @param {ConsoleResourceType} type
|
|
136
|
+
* @throws {AppwriteException}
|
|
137
|
+
* @returns {Promise<{}>}
|
|
138
|
+
*/
|
|
139
|
+
getResource(value: string, type: ConsoleResourceType): Promise<{}> {
|
|
140
|
+
if (typeof value === 'undefined') {
|
|
141
|
+
throw new AppwriteException('Missing required parameter: "value"');
|
|
142
|
+
}
|
|
143
|
+
if (typeof type === 'undefined') {
|
|
144
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
145
|
+
}
|
|
146
|
+
const apiPath = '/console/resources';
|
|
147
|
+
const payload: Payload = {};
|
|
148
|
+
if (typeof value !== 'undefined') {
|
|
149
|
+
payload['value'] = value;
|
|
150
|
+
}
|
|
151
|
+
if (typeof type !== 'undefined') {
|
|
152
|
+
payload['type'] = type;
|
|
153
|
+
}
|
|
154
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
155
|
+
|
|
156
|
+
const apiHeaders: { [header: string]: string } = {
|
|
125
157
|
}
|
|
126
158
|
|
|
127
159
|
return this.client.call(
|
|
@@ -185,7 +217,6 @@ export class Console {
|
|
|
185
217
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
186
218
|
|
|
187
219
|
const apiHeaders: { [header: string]: string } = {
|
|
188
|
-
'content-type': 'application/json',
|
|
189
220
|
}
|
|
190
221
|
|
|
191
222
|
return this.client.call(
|
|
@@ -33,7 +33,6 @@ export class Databases {
|
|
|
33
33
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
34
34
|
|
|
35
35
|
const apiHeaders: { [header: string]: string } = {
|
|
36
|
-
'content-type': 'application/json',
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
return this.client.call(
|
|
@@ -100,7 +99,6 @@ export class Databases {
|
|
|
100
99
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
101
100
|
|
|
102
101
|
const apiHeaders: { [header: string]: string } = {
|
|
103
|
-
'content-type': 'application/json',
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
return this.client.call(
|
|
@@ -126,7 +124,6 @@ export class Databases {
|
|
|
126
124
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
127
125
|
|
|
128
126
|
const apiHeaders: { [header: string]: string } = {
|
|
129
|
-
'content-type': 'application/json',
|
|
130
127
|
}
|
|
131
128
|
|
|
132
129
|
return this.client.call(
|
|
@@ -223,7 +220,6 @@ export class Databases {
|
|
|
223
220
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
224
221
|
|
|
225
222
|
const apiHeaders: { [header: string]: string } = {
|
|
226
|
-
'content-type': 'application/json',
|
|
227
223
|
}
|
|
228
224
|
|
|
229
225
|
return this.client.call(
|
|
@@ -305,7 +301,6 @@ export class Databases {
|
|
|
305
301
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
306
302
|
|
|
307
303
|
const apiHeaders: { [header: string]: string } = {
|
|
308
|
-
'content-type': 'application/json',
|
|
309
304
|
}
|
|
310
305
|
|
|
311
306
|
return this.client.call(
|
|
@@ -418,7 +413,6 @@ export class Databases {
|
|
|
418
413
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
419
414
|
|
|
420
415
|
const apiHeaders: { [header: string]: string } = {
|
|
421
|
-
'content-type': 'application/json',
|
|
422
416
|
}
|
|
423
417
|
|
|
424
418
|
return this.client.call(
|
|
@@ -1525,7 +1519,6 @@ export class Databases {
|
|
|
1525
1519
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1526
1520
|
|
|
1527
1521
|
const apiHeaders: { [header: string]: string } = {
|
|
1528
|
-
'content-type': 'application/json',
|
|
1529
1522
|
}
|
|
1530
1523
|
|
|
1531
1524
|
return this.client.call(
|
|
@@ -1636,7 +1629,6 @@ export class Databases {
|
|
|
1636
1629
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1637
1630
|
|
|
1638
1631
|
const apiHeaders: { [header: string]: string } = {
|
|
1639
|
-
'content-type': 'application/json',
|
|
1640
1632
|
}
|
|
1641
1633
|
|
|
1642
1634
|
return this.client.call(
|
|
@@ -1648,7 +1640,6 @@ export class Databases {
|
|
|
1648
1640
|
}
|
|
1649
1641
|
/**
|
|
1650
1642
|
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
|
|
1651
|
-
|
|
1652
1643
|
*
|
|
1653
1644
|
* @param {string} databaseId
|
|
1654
1645
|
* @param {string} collectionId
|
|
@@ -1695,6 +1686,150 @@ export class Databases {
|
|
|
1695
1686
|
payload
|
|
1696
1687
|
);
|
|
1697
1688
|
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
|
|
1691
|
+
*
|
|
1692
|
+
* @param {string} databaseId
|
|
1693
|
+
* @param {string} collectionId
|
|
1694
|
+
* @param {object[]} documents
|
|
1695
|
+
* @throws {AppwriteException}
|
|
1696
|
+
* @returns {Promise<Models.DocumentList<Document>>}
|
|
1697
|
+
*/
|
|
1698
|
+
createDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, documents: object[]): Promise<Models.DocumentList<Document>> {
|
|
1699
|
+
if (typeof databaseId === 'undefined') {
|
|
1700
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1701
|
+
}
|
|
1702
|
+
if (typeof collectionId === 'undefined') {
|
|
1703
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
1704
|
+
}
|
|
1705
|
+
if (typeof documents === 'undefined') {
|
|
1706
|
+
throw new AppwriteException('Missing required parameter: "documents"');
|
|
1707
|
+
}
|
|
1708
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1709
|
+
const payload: Payload = {};
|
|
1710
|
+
if (typeof documents !== 'undefined') {
|
|
1711
|
+
payload['documents'] = documents;
|
|
1712
|
+
}
|
|
1713
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1714
|
+
|
|
1715
|
+
const apiHeaders: { [header: string]: string } = {
|
|
1716
|
+
'content-type': 'application/json',
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
return this.client.call(
|
|
1720
|
+
'post',
|
|
1721
|
+
uri,
|
|
1722
|
+
apiHeaders,
|
|
1723
|
+
payload
|
|
1724
|
+
);
|
|
1725
|
+
}
|
|
1726
|
+
/**
|
|
1727
|
+
* Create or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
|
|
1728
|
+
|
|
1729
|
+
*
|
|
1730
|
+
* @param {string} databaseId
|
|
1731
|
+
* @param {string} collectionId
|
|
1732
|
+
* @param {object[]} documents
|
|
1733
|
+
* @throws {AppwriteException}
|
|
1734
|
+
* @returns {Promise<Models.DocumentList<Document>>}
|
|
1735
|
+
*/
|
|
1736
|
+
upsertDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, documents?: object[]): Promise<Models.DocumentList<Document>> {
|
|
1737
|
+
if (typeof databaseId === 'undefined') {
|
|
1738
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1739
|
+
}
|
|
1740
|
+
if (typeof collectionId === 'undefined') {
|
|
1741
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
1742
|
+
}
|
|
1743
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1744
|
+
const payload: Payload = {};
|
|
1745
|
+
if (typeof documents !== 'undefined') {
|
|
1746
|
+
payload['documents'] = documents;
|
|
1747
|
+
}
|
|
1748
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1749
|
+
|
|
1750
|
+
const apiHeaders: { [header: string]: string } = {
|
|
1751
|
+
'content-type': 'application/json',
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
return this.client.call(
|
|
1755
|
+
'put',
|
|
1756
|
+
uri,
|
|
1757
|
+
apiHeaders,
|
|
1758
|
+
payload
|
|
1759
|
+
);
|
|
1760
|
+
}
|
|
1761
|
+
/**
|
|
1762
|
+
* Update all documents that match your queries, if no queries are submitted then all documents are updated. You can pass only specific fields to be updated.
|
|
1763
|
+
*
|
|
1764
|
+
* @param {string} databaseId
|
|
1765
|
+
* @param {string} collectionId
|
|
1766
|
+
* @param {object} data
|
|
1767
|
+
* @param {string[]} queries
|
|
1768
|
+
* @throws {AppwriteException}
|
|
1769
|
+
* @returns {Promise<Models.DocumentList<Document>>}
|
|
1770
|
+
*/
|
|
1771
|
+
updateDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, data?: object, queries?: string[]): Promise<Models.DocumentList<Document>> {
|
|
1772
|
+
if (typeof databaseId === 'undefined') {
|
|
1773
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1774
|
+
}
|
|
1775
|
+
if (typeof collectionId === 'undefined') {
|
|
1776
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
1777
|
+
}
|
|
1778
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1779
|
+
const payload: Payload = {};
|
|
1780
|
+
if (typeof data !== 'undefined') {
|
|
1781
|
+
payload['data'] = data;
|
|
1782
|
+
}
|
|
1783
|
+
if (typeof queries !== 'undefined') {
|
|
1784
|
+
payload['queries'] = queries;
|
|
1785
|
+
}
|
|
1786
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1787
|
+
|
|
1788
|
+
const apiHeaders: { [header: string]: string } = {
|
|
1789
|
+
'content-type': 'application/json',
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
return this.client.call(
|
|
1793
|
+
'patch',
|
|
1794
|
+
uri,
|
|
1795
|
+
apiHeaders,
|
|
1796
|
+
payload
|
|
1797
|
+
);
|
|
1798
|
+
}
|
|
1799
|
+
/**
|
|
1800
|
+
* Bulk delete documents using queries, if no queries are passed then all documents are deleted.
|
|
1801
|
+
*
|
|
1802
|
+
* @param {string} databaseId
|
|
1803
|
+
* @param {string} collectionId
|
|
1804
|
+
* @param {string[]} queries
|
|
1805
|
+
* @throws {AppwriteException}
|
|
1806
|
+
* @returns {Promise<Models.DocumentList<Document>>}
|
|
1807
|
+
*/
|
|
1808
|
+
deleteDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>> {
|
|
1809
|
+
if (typeof databaseId === 'undefined') {
|
|
1810
|
+
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1811
|
+
}
|
|
1812
|
+
if (typeof collectionId === 'undefined') {
|
|
1813
|
+
throw new AppwriteException('Missing required parameter: "collectionId"');
|
|
1814
|
+
}
|
|
1815
|
+
const apiPath = '/databases/{databaseId}/collections/{collectionId}/documents'.replace('{databaseId}', databaseId).replace('{collectionId}', collectionId);
|
|
1816
|
+
const payload: Payload = {};
|
|
1817
|
+
if (typeof queries !== 'undefined') {
|
|
1818
|
+
payload['queries'] = queries;
|
|
1819
|
+
}
|
|
1820
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1821
|
+
|
|
1822
|
+
const apiHeaders: { [header: string]: string } = {
|
|
1823
|
+
'content-type': 'application/json',
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
return this.client.call(
|
|
1827
|
+
'delete',
|
|
1828
|
+
uri,
|
|
1829
|
+
apiHeaders,
|
|
1830
|
+
payload
|
|
1831
|
+
);
|
|
1832
|
+
}
|
|
1698
1833
|
/**
|
|
1699
1834
|
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
|
|
1700
1835
|
*
|
|
@@ -1723,7 +1858,6 @@ export class Databases {
|
|
|
1723
1858
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1724
1859
|
|
|
1725
1860
|
const apiHeaders: { [header: string]: string } = {
|
|
1726
|
-
'content-type': 'application/json',
|
|
1727
1861
|
}
|
|
1728
1862
|
|
|
1729
1863
|
return this.client.call(
|
|
@@ -1837,7 +1971,6 @@ export class Databases {
|
|
|
1837
1971
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1838
1972
|
|
|
1839
1973
|
const apiHeaders: { [header: string]: string } = {
|
|
1840
|
-
'content-type': 'application/json',
|
|
1841
1974
|
}
|
|
1842
1975
|
|
|
1843
1976
|
return this.client.call(
|
|
@@ -1871,7 +2004,6 @@ export class Databases {
|
|
|
1871
2004
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1872
2005
|
|
|
1873
2006
|
const apiHeaders: { [header: string]: string } = {
|
|
1874
|
-
'content-type': 'application/json',
|
|
1875
2007
|
}
|
|
1876
2008
|
|
|
1877
2009
|
return this.client.call(
|
|
@@ -1891,10 +2023,11 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
1891
2023
|
* @param {IndexType} type
|
|
1892
2024
|
* @param {string[]} attributes
|
|
1893
2025
|
* @param {string[]} orders
|
|
2026
|
+
* @param {number[]} lengths
|
|
1894
2027
|
* @throws {AppwriteException}
|
|
1895
2028
|
* @returns {Promise<Models.Index>}
|
|
1896
2029
|
*/
|
|
1897
|
-
createIndex(databaseId: string, collectionId: string, key: string, type: IndexType, attributes: string[], orders?: string[]): Promise<Models.Index> {
|
|
2030
|
+
createIndex(databaseId: string, collectionId: string, key: string, type: IndexType, attributes: string[], orders?: string[], lengths?: number[]): Promise<Models.Index> {
|
|
1898
2031
|
if (typeof databaseId === 'undefined') {
|
|
1899
2032
|
throw new AppwriteException('Missing required parameter: "databaseId"');
|
|
1900
2033
|
}
|
|
@@ -1924,6 +2057,9 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
1924
2057
|
if (typeof orders !== 'undefined') {
|
|
1925
2058
|
payload['orders'] = orders;
|
|
1926
2059
|
}
|
|
2060
|
+
if (typeof lengths !== 'undefined') {
|
|
2061
|
+
payload['lengths'] = lengths;
|
|
2062
|
+
}
|
|
1927
2063
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1928
2064
|
|
|
1929
2065
|
const apiHeaders: { [header: string]: string } = {
|
|
@@ -1961,7 +2097,6 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
1961
2097
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1962
2098
|
|
|
1963
2099
|
const apiHeaders: { [header: string]: string } = {
|
|
1964
|
-
'content-type': 'application/json',
|
|
1965
2100
|
}
|
|
1966
2101
|
|
|
1967
2102
|
return this.client.call(
|
|
@@ -2029,7 +2164,6 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2029
2164
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2030
2165
|
|
|
2031
2166
|
const apiHeaders: { [header: string]: string } = {
|
|
2032
|
-
'content-type': 'application/json',
|
|
2033
2167
|
}
|
|
2034
2168
|
|
|
2035
2169
|
return this.client.call(
|
|
@@ -2063,7 +2197,6 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2063
2197
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2064
2198
|
|
|
2065
2199
|
const apiHeaders: { [header: string]: string } = {
|
|
2066
|
-
'content-type': 'application/json',
|
|
2067
2200
|
}
|
|
2068
2201
|
|
|
2069
2202
|
return this.client.call(
|
|
@@ -2093,7 +2226,6 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2093
2226
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2094
2227
|
|
|
2095
2228
|
const apiHeaders: { [header: string]: string } = {
|
|
2096
|
-
'content-type': 'application/json',
|
|
2097
2229
|
}
|
|
2098
2230
|
|
|
2099
2231
|
return this.client.call(
|
|
@@ -2123,7 +2255,6 @@ Attributes can be `key`, `fulltext`, and `unique`.
|
|
|
2123
2255
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
2124
2256
|
|
|
2125
2257
|
const apiHeaders: { [header: string]: string } = {
|
|
2126
|
-
'content-type': 'application/json',
|
|
2127
2258
|
}
|
|
2128
2259
|
|
|
2129
2260
|
return this.client.call(
|