@appwrite.io/console 1.5.2 → 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 +11874 -11100
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +11872 -11101
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +11874 -11100
- 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 +14 -0
- 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 +32 -5
- 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/o-auth-provider.ts +1 -0
- 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 +1171 -188
- package/src/services/account.ts +126 -446
- package/src/services/assistant.ts +2 -7
- package/src/services/avatars.ts +7 -28
- package/src/services/backups.ts +24 -90
- package/src/services/console.ts +48 -52
- package/src/services/databases.ts +241 -350
- package/src/services/domains.ts +1821 -0
- package/src/services/functions.ts +216 -248
- package/src/services/graphql.ts +4 -14
- package/src/services/health.ts +56 -206
- package/src/services/locale.ts +16 -64
- package/src/services/messaging.ts +92 -335
- package/src/services/migrations.ts +66 -89
- package/src/services/organizations.ts +84 -241
- package/src/services/project.ts +20 -45
- package/src/services/projects.ts +262 -330
- package/src/services/proxy.ts +129 -44
- package/src/services/sites.ts +1104 -0
- package/src/services/storage.ts +42 -105
- package/src/services/teams.ts +28 -104
- package/src/services/tokens.ts +160 -0
- package/src/services/users.ts +94 -313
- package/src/services/vcs.ts +70 -108
- 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/o-auth-provider.d.ts +1 -0
- 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 +1171 -188
- package/types/services/account.d.ts +4 -128
- package/types/services/assistant.d.ts +0 -2
- package/types/services/avatars.d.ts +0 -14
- package/types/services/backups.d.ts +0 -24
- package/types/services/console.d.ts +9 -13
- package/types/services/databases.d.ts +43 -97
- package/types/services/domains.d.ts +524 -0
- package/types/services/functions.d.ts +58 -84
- package/types/services/graphql.d.ts +0 -4
- package/types/services/health.d.ts +6 -56
- package/types/services/locale.d.ts +0 -16
- package/types/services/messaging.d.ts +0 -92
- package/types/services/migrations.d.ts +9 -23
- package/types/services/organizations.d.ts +11 -68
- package/types/services/project.d.ts +4 -14
- package/types/services/projects.d.ts +47 -91
- package/types/services/proxy.d.ts +31 -13
- package/types/services/sites.d.ts +319 -0
- package/types/services/storage.d.ts +6 -33
- package/types/services/teams.d.ts +0 -28
- package/types/services/tokens.d.ts +51 -0
- package/types/services/users.d.ts +3 -87
- package/types/services/vcs.d.ts +14 -31
package/src/services/health.ts
CHANGED
|
@@ -11,26 +11,20 @@ export class Health {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
|
-
* Get HTTP
|
|
15
|
-
*
|
|
16
14
|
* Check the Appwrite HTTP server is up and responsive.
|
|
17
15
|
*
|
|
18
16
|
* @throws {AppwriteException}
|
|
19
17
|
* @returns {Promise<Models.HealthStatus>}
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
get(): Promise<Models.HealthStatus> {
|
|
22
20
|
const apiPath = '/health';
|
|
23
21
|
const payload: Payload = {};
|
|
24
22
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
25
23
|
|
|
26
24
|
const apiHeaders: { [header: string]: string } = {
|
|
27
|
-
'content-type': 'application/json',
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return await this.client.call(
|
|
27
|
+
return this.client.call(
|
|
34
28
|
'get',
|
|
35
29
|
uri,
|
|
36
30
|
apiHeaders,
|
|
@@ -38,26 +32,20 @@ export class Health {
|
|
|
38
32
|
);
|
|
39
33
|
}
|
|
40
34
|
/**
|
|
41
|
-
* Get antivirus
|
|
42
|
-
*
|
|
43
35
|
* Check the Appwrite Antivirus server is up and connection is successful.
|
|
44
36
|
*
|
|
45
37
|
* @throws {AppwriteException}
|
|
46
38
|
* @returns {Promise<Models.HealthAntivirus>}
|
|
47
39
|
*/
|
|
48
|
-
|
|
40
|
+
getAntivirus(): Promise<Models.HealthAntivirus> {
|
|
49
41
|
const apiPath = '/health/anti-virus';
|
|
50
42
|
const payload: Payload = {};
|
|
51
43
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
52
44
|
|
|
53
45
|
const apiHeaders: { [header: string]: string } = {
|
|
54
|
-
'content-type': 'application/json',
|
|
55
46
|
}
|
|
56
47
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return await this.client.call(
|
|
48
|
+
return this.client.call(
|
|
61
49
|
'get',
|
|
62
50
|
uri,
|
|
63
51
|
apiHeaders,
|
|
@@ -65,26 +53,20 @@ export class Health {
|
|
|
65
53
|
);
|
|
66
54
|
}
|
|
67
55
|
/**
|
|
68
|
-
* Get cache
|
|
69
|
-
*
|
|
70
56
|
* Check the Appwrite in-memory cache servers are up and connection is successful.
|
|
71
57
|
*
|
|
72
58
|
* @throws {AppwriteException}
|
|
73
59
|
* @returns {Promise<Models.HealthStatus>}
|
|
74
60
|
*/
|
|
75
|
-
|
|
61
|
+
getCache(): Promise<Models.HealthStatus> {
|
|
76
62
|
const apiPath = '/health/cache';
|
|
77
63
|
const payload: Payload = {};
|
|
78
64
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
79
65
|
|
|
80
66
|
const apiHeaders: { [header: string]: string } = {
|
|
81
|
-
'content-type': 'application/json',
|
|
82
67
|
}
|
|
83
68
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return await this.client.call(
|
|
69
|
+
return this.client.call(
|
|
88
70
|
'get',
|
|
89
71
|
uri,
|
|
90
72
|
apiHeaders,
|
|
@@ -92,15 +74,13 @@ export class Health {
|
|
|
92
74
|
);
|
|
93
75
|
}
|
|
94
76
|
/**
|
|
95
|
-
* Get the SSL certificate for a domain
|
|
96
|
-
*
|
|
97
77
|
* Get the SSL certificate for a domain
|
|
98
78
|
*
|
|
99
79
|
* @param {string} domain
|
|
100
80
|
* @throws {AppwriteException}
|
|
101
81
|
* @returns {Promise<Models.HealthCertificate>}
|
|
102
82
|
*/
|
|
103
|
-
|
|
83
|
+
getCertificate(domain?: string): Promise<Models.HealthCertificate> {
|
|
104
84
|
const apiPath = '/health/certificate';
|
|
105
85
|
const payload: Payload = {};
|
|
106
86
|
if (typeof domain !== 'undefined') {
|
|
@@ -109,13 +89,9 @@ export class Health {
|
|
|
109
89
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
110
90
|
|
|
111
91
|
const apiHeaders: { [header: string]: string } = {
|
|
112
|
-
'content-type': 'application/json',
|
|
113
92
|
}
|
|
114
93
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return await this.client.call(
|
|
94
|
+
return this.client.call(
|
|
119
95
|
'get',
|
|
120
96
|
uri,
|
|
121
97
|
apiHeaders,
|
|
@@ -123,26 +99,20 @@ export class Health {
|
|
|
123
99
|
);
|
|
124
100
|
}
|
|
125
101
|
/**
|
|
126
|
-
* Get DB
|
|
127
|
-
*
|
|
128
102
|
* Check the Appwrite database servers are up and connection is successful.
|
|
129
103
|
*
|
|
130
104
|
* @throws {AppwriteException}
|
|
131
105
|
* @returns {Promise<Models.HealthStatus>}
|
|
132
106
|
*/
|
|
133
|
-
|
|
107
|
+
getDB(): Promise<Models.HealthStatus> {
|
|
134
108
|
const apiPath = '/health/db';
|
|
135
109
|
const payload: Payload = {};
|
|
136
110
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
137
111
|
|
|
138
112
|
const apiHeaders: { [header: string]: string } = {
|
|
139
|
-
'content-type': 'application/json',
|
|
140
113
|
}
|
|
141
114
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return await this.client.call(
|
|
115
|
+
return this.client.call(
|
|
146
116
|
'get',
|
|
147
117
|
uri,
|
|
148
118
|
apiHeaders,
|
|
@@ -150,26 +120,20 @@ export class Health {
|
|
|
150
120
|
);
|
|
151
121
|
}
|
|
152
122
|
/**
|
|
153
|
-
* Get pubsub
|
|
154
|
-
*
|
|
155
123
|
* Check the Appwrite pub-sub servers are up and connection is successful.
|
|
156
124
|
*
|
|
157
125
|
* @throws {AppwriteException}
|
|
158
126
|
* @returns {Promise<Models.HealthStatus>}
|
|
159
127
|
*/
|
|
160
|
-
|
|
128
|
+
getPubSub(): Promise<Models.HealthStatus> {
|
|
161
129
|
const apiPath = '/health/pubsub';
|
|
162
130
|
const payload: Payload = {};
|
|
163
131
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
164
132
|
|
|
165
133
|
const apiHeaders: { [header: string]: string } = {
|
|
166
|
-
'content-type': 'application/json',
|
|
167
134
|
}
|
|
168
135
|
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
return await this.client.call(
|
|
136
|
+
return this.client.call(
|
|
173
137
|
'get',
|
|
174
138
|
uri,
|
|
175
139
|
apiHeaders,
|
|
@@ -177,15 +141,13 @@ export class Health {
|
|
|
177
141
|
);
|
|
178
142
|
}
|
|
179
143
|
/**
|
|
180
|
-
* Get billing aggregation queue
|
|
181
|
-
*
|
|
182
144
|
* Get billing aggregation queue
|
|
183
145
|
*
|
|
184
146
|
* @param {number} threshold
|
|
185
147
|
* @throws {AppwriteException}
|
|
186
148
|
* @returns {Promise<Models.HealthQueue>}
|
|
187
149
|
*/
|
|
188
|
-
|
|
150
|
+
getQueueBillingAggregation(threshold?: number): Promise<Models.HealthQueue> {
|
|
189
151
|
const apiPath = '/health/queue/billing-aggregation';
|
|
190
152
|
const payload: Payload = {};
|
|
191
153
|
if (typeof threshold !== 'undefined') {
|
|
@@ -194,13 +156,9 @@ export class Health {
|
|
|
194
156
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
195
157
|
|
|
196
158
|
const apiHeaders: { [header: string]: string } = {
|
|
197
|
-
'content-type': 'application/json',
|
|
198
159
|
}
|
|
199
160
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
return await this.client.call(
|
|
161
|
+
return this.client.call(
|
|
204
162
|
'get',
|
|
205
163
|
uri,
|
|
206
164
|
apiHeaders,
|
|
@@ -208,15 +166,13 @@ export class Health {
|
|
|
208
166
|
);
|
|
209
167
|
}
|
|
210
168
|
/**
|
|
211
|
-
* Get builds queue
|
|
212
|
-
*
|
|
213
169
|
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
|
|
214
170
|
*
|
|
215
171
|
* @param {number} threshold
|
|
216
172
|
* @throws {AppwriteException}
|
|
217
173
|
* @returns {Promise<Models.HealthQueue>}
|
|
218
174
|
*/
|
|
219
|
-
|
|
175
|
+
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue> {
|
|
220
176
|
const apiPath = '/health/queue/builds';
|
|
221
177
|
const payload: Payload = {};
|
|
222
178
|
if (typeof threshold !== 'undefined') {
|
|
@@ -225,13 +181,9 @@ export class Health {
|
|
|
225
181
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
226
182
|
|
|
227
183
|
const apiHeaders: { [header: string]: string } = {
|
|
228
|
-
'content-type': 'application/json',
|
|
229
184
|
}
|
|
230
185
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return await this.client.call(
|
|
186
|
+
return this.client.call(
|
|
235
187
|
'get',
|
|
236
188
|
uri,
|
|
237
189
|
apiHeaders,
|
|
@@ -239,15 +191,13 @@ export class Health {
|
|
|
239
191
|
);
|
|
240
192
|
}
|
|
241
193
|
/**
|
|
242
|
-
* Get billing aggregation queue
|
|
243
|
-
*
|
|
244
194
|
* Get the priority builds queue size.
|
|
245
195
|
*
|
|
246
196
|
* @param {number} threshold
|
|
247
197
|
* @throws {AppwriteException}
|
|
248
198
|
* @returns {Promise<Models.HealthQueue>}
|
|
249
199
|
*/
|
|
250
|
-
|
|
200
|
+
getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue> {
|
|
251
201
|
const apiPath = '/health/queue/builds-priority';
|
|
252
202
|
const payload: Payload = {};
|
|
253
203
|
if (typeof threshold !== 'undefined') {
|
|
@@ -256,13 +206,9 @@ export class Health {
|
|
|
256
206
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
257
207
|
|
|
258
208
|
const apiHeaders: { [header: string]: string } = {
|
|
259
|
-
'content-type': 'application/json',
|
|
260
209
|
}
|
|
261
210
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return await this.client.call(
|
|
211
|
+
return this.client.call(
|
|
266
212
|
'get',
|
|
267
213
|
uri,
|
|
268
214
|
apiHeaders,
|
|
@@ -270,15 +216,13 @@ export class Health {
|
|
|
270
216
|
);
|
|
271
217
|
}
|
|
272
218
|
/**
|
|
273
|
-
* Get certificates queue
|
|
274
|
-
*
|
|
275
219
|
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
|
|
276
220
|
*
|
|
277
221
|
* @param {number} threshold
|
|
278
222
|
* @throws {AppwriteException}
|
|
279
223
|
* @returns {Promise<Models.HealthQueue>}
|
|
280
224
|
*/
|
|
281
|
-
|
|
225
|
+
getQueueCertificates(threshold?: number): Promise<Models.HealthQueue> {
|
|
282
226
|
const apiPath = '/health/queue/certificates';
|
|
283
227
|
const payload: Payload = {};
|
|
284
228
|
if (typeof threshold !== 'undefined') {
|
|
@@ -287,13 +231,9 @@ export class Health {
|
|
|
287
231
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
288
232
|
|
|
289
233
|
const apiHeaders: { [header: string]: string } = {
|
|
290
|
-
'content-type': 'application/json',
|
|
291
234
|
}
|
|
292
235
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return await this.client.call(
|
|
236
|
+
return this.client.call(
|
|
297
237
|
'get',
|
|
298
238
|
uri,
|
|
299
239
|
apiHeaders,
|
|
@@ -301,8 +241,6 @@ export class Health {
|
|
|
301
241
|
);
|
|
302
242
|
}
|
|
303
243
|
/**
|
|
304
|
-
* Get databases queue
|
|
305
|
-
*
|
|
306
244
|
* Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
|
|
307
245
|
*
|
|
308
246
|
* @param {string} name
|
|
@@ -310,7 +248,7 @@ export class Health {
|
|
|
310
248
|
* @throws {AppwriteException}
|
|
311
249
|
* @returns {Promise<Models.HealthQueue>}
|
|
312
250
|
*/
|
|
313
|
-
|
|
251
|
+
getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue> {
|
|
314
252
|
const apiPath = '/health/queue/databases';
|
|
315
253
|
const payload: Payload = {};
|
|
316
254
|
if (typeof name !== 'undefined') {
|
|
@@ -322,13 +260,9 @@ export class Health {
|
|
|
322
260
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
323
261
|
|
|
324
262
|
const apiHeaders: { [header: string]: string } = {
|
|
325
|
-
'content-type': 'application/json',
|
|
326
263
|
}
|
|
327
264
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
return await this.client.call(
|
|
265
|
+
return this.client.call(
|
|
332
266
|
'get',
|
|
333
267
|
uri,
|
|
334
268
|
apiHeaders,
|
|
@@ -336,15 +270,13 @@ export class Health {
|
|
|
336
270
|
);
|
|
337
271
|
}
|
|
338
272
|
/**
|
|
339
|
-
* Get deletes queue
|
|
340
|
-
*
|
|
341
273
|
* Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
|
|
342
274
|
*
|
|
343
275
|
* @param {number} threshold
|
|
344
276
|
* @throws {AppwriteException}
|
|
345
277
|
* @returns {Promise<Models.HealthQueue>}
|
|
346
278
|
*/
|
|
347
|
-
|
|
279
|
+
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue> {
|
|
348
280
|
const apiPath = '/health/queue/deletes';
|
|
349
281
|
const payload: Payload = {};
|
|
350
282
|
if (typeof threshold !== 'undefined') {
|
|
@@ -353,13 +285,9 @@ export class Health {
|
|
|
353
285
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
354
286
|
|
|
355
287
|
const apiHeaders: { [header: string]: string } = {
|
|
356
|
-
'content-type': 'application/json',
|
|
357
288
|
}
|
|
358
289
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
return await this.client.call(
|
|
290
|
+
return this.client.call(
|
|
363
291
|
'get',
|
|
364
292
|
uri,
|
|
365
293
|
apiHeaders,
|
|
@@ -367,8 +295,6 @@ export class Health {
|
|
|
367
295
|
);
|
|
368
296
|
}
|
|
369
297
|
/**
|
|
370
|
-
* Get number of failed queue jobs
|
|
371
|
-
*
|
|
372
298
|
* Returns the amount of failed jobs in a given queue.
|
|
373
299
|
|
|
374
300
|
*
|
|
@@ -377,7 +303,7 @@ export class Health {
|
|
|
377
303
|
* @throws {AppwriteException}
|
|
378
304
|
* @returns {Promise<Models.HealthQueue>}
|
|
379
305
|
*/
|
|
380
|
-
|
|
306
|
+
getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue> {
|
|
381
307
|
if (typeof name === 'undefined') {
|
|
382
308
|
throw new AppwriteException('Missing required parameter: "name"');
|
|
383
309
|
}
|
|
@@ -389,13 +315,9 @@ export class Health {
|
|
|
389
315
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
390
316
|
|
|
391
317
|
const apiHeaders: { [header: string]: string } = {
|
|
392
|
-
'content-type': 'application/json',
|
|
393
318
|
}
|
|
394
319
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
return await this.client.call(
|
|
320
|
+
return this.client.call(
|
|
399
321
|
'get',
|
|
400
322
|
uri,
|
|
401
323
|
apiHeaders,
|
|
@@ -403,15 +325,13 @@ export class Health {
|
|
|
403
325
|
);
|
|
404
326
|
}
|
|
405
327
|
/**
|
|
406
|
-
* Get functions queue
|
|
407
|
-
*
|
|
408
328
|
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
|
|
409
329
|
*
|
|
410
330
|
* @param {number} threshold
|
|
411
331
|
* @throws {AppwriteException}
|
|
412
332
|
* @returns {Promise<Models.HealthQueue>}
|
|
413
333
|
*/
|
|
414
|
-
|
|
334
|
+
getQueueFunctions(threshold?: number): Promise<Models.HealthQueue> {
|
|
415
335
|
const apiPath = '/health/queue/functions';
|
|
416
336
|
const payload: Payload = {};
|
|
417
337
|
if (typeof threshold !== 'undefined') {
|
|
@@ -420,13 +340,9 @@ export class Health {
|
|
|
420
340
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
421
341
|
|
|
422
342
|
const apiHeaders: { [header: string]: string } = {
|
|
423
|
-
'content-type': 'application/json',
|
|
424
343
|
}
|
|
425
344
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
return await this.client.call(
|
|
345
|
+
return this.client.call(
|
|
430
346
|
'get',
|
|
431
347
|
uri,
|
|
432
348
|
apiHeaders,
|
|
@@ -434,15 +350,13 @@ export class Health {
|
|
|
434
350
|
);
|
|
435
351
|
}
|
|
436
352
|
/**
|
|
437
|
-
* Get logs queue
|
|
438
|
-
*
|
|
439
353
|
* Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
|
|
440
354
|
*
|
|
441
355
|
* @param {number} threshold
|
|
442
356
|
* @throws {AppwriteException}
|
|
443
357
|
* @returns {Promise<Models.HealthQueue>}
|
|
444
358
|
*/
|
|
445
|
-
|
|
359
|
+
getQueueLogs(threshold?: number): Promise<Models.HealthQueue> {
|
|
446
360
|
const apiPath = '/health/queue/logs';
|
|
447
361
|
const payload: Payload = {};
|
|
448
362
|
if (typeof threshold !== 'undefined') {
|
|
@@ -451,13 +365,9 @@ export class Health {
|
|
|
451
365
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
452
366
|
|
|
453
367
|
const apiHeaders: { [header: string]: string } = {
|
|
454
|
-
'content-type': 'application/json',
|
|
455
368
|
}
|
|
456
369
|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
return await this.client.call(
|
|
370
|
+
return this.client.call(
|
|
461
371
|
'get',
|
|
462
372
|
uri,
|
|
463
373
|
apiHeaders,
|
|
@@ -465,15 +375,13 @@ export class Health {
|
|
|
465
375
|
);
|
|
466
376
|
}
|
|
467
377
|
/**
|
|
468
|
-
* Get mails queue
|
|
469
|
-
*
|
|
470
378
|
* Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
|
|
471
379
|
*
|
|
472
380
|
* @param {number} threshold
|
|
473
381
|
* @throws {AppwriteException}
|
|
474
382
|
* @returns {Promise<Models.HealthQueue>}
|
|
475
383
|
*/
|
|
476
|
-
|
|
384
|
+
getQueueMails(threshold?: number): Promise<Models.HealthQueue> {
|
|
477
385
|
const apiPath = '/health/queue/mails';
|
|
478
386
|
const payload: Payload = {};
|
|
479
387
|
if (typeof threshold !== 'undefined') {
|
|
@@ -482,13 +390,9 @@ export class Health {
|
|
|
482
390
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
483
391
|
|
|
484
392
|
const apiHeaders: { [header: string]: string } = {
|
|
485
|
-
'content-type': 'application/json',
|
|
486
393
|
}
|
|
487
394
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
return await this.client.call(
|
|
395
|
+
return this.client.call(
|
|
492
396
|
'get',
|
|
493
397
|
uri,
|
|
494
398
|
apiHeaders,
|
|
@@ -496,15 +400,13 @@ export class Health {
|
|
|
496
400
|
);
|
|
497
401
|
}
|
|
498
402
|
/**
|
|
499
|
-
* Get messaging queue
|
|
500
|
-
*
|
|
501
403
|
* Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
|
|
502
404
|
*
|
|
503
405
|
* @param {number} threshold
|
|
504
406
|
* @throws {AppwriteException}
|
|
505
407
|
* @returns {Promise<Models.HealthQueue>}
|
|
506
408
|
*/
|
|
507
|
-
|
|
409
|
+
getQueueMessaging(threshold?: number): Promise<Models.HealthQueue> {
|
|
508
410
|
const apiPath = '/health/queue/messaging';
|
|
509
411
|
const payload: Payload = {};
|
|
510
412
|
if (typeof threshold !== 'undefined') {
|
|
@@ -513,13 +415,9 @@ export class Health {
|
|
|
513
415
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
514
416
|
|
|
515
417
|
const apiHeaders: { [header: string]: string } = {
|
|
516
|
-
'content-type': 'application/json',
|
|
517
418
|
}
|
|
518
419
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
return await this.client.call(
|
|
420
|
+
return this.client.call(
|
|
523
421
|
'get',
|
|
524
422
|
uri,
|
|
525
423
|
apiHeaders,
|
|
@@ -527,15 +425,13 @@ export class Health {
|
|
|
527
425
|
);
|
|
528
426
|
}
|
|
529
427
|
/**
|
|
530
|
-
* Get migrations queue
|
|
531
|
-
*
|
|
532
428
|
* Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
|
|
533
429
|
*
|
|
534
430
|
* @param {number} threshold
|
|
535
431
|
* @throws {AppwriteException}
|
|
536
432
|
* @returns {Promise<Models.HealthQueue>}
|
|
537
433
|
*/
|
|
538
|
-
|
|
434
|
+
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue> {
|
|
539
435
|
const apiPath = '/health/queue/migrations';
|
|
540
436
|
const payload: Payload = {};
|
|
541
437
|
if (typeof threshold !== 'undefined') {
|
|
@@ -544,13 +440,9 @@ export class Health {
|
|
|
544
440
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
545
441
|
|
|
546
442
|
const apiHeaders: { [header: string]: string } = {
|
|
547
|
-
'content-type': 'application/json',
|
|
548
443
|
}
|
|
549
444
|
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
return await this.client.call(
|
|
445
|
+
return this.client.call(
|
|
554
446
|
'get',
|
|
555
447
|
uri,
|
|
556
448
|
apiHeaders,
|
|
@@ -558,16 +450,14 @@ export class Health {
|
|
|
558
450
|
);
|
|
559
451
|
}
|
|
560
452
|
/**
|
|
561
|
-
* Get
|
|
562
|
-
*
|
|
563
|
-
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
453
|
+
* Get region manager queue
|
|
564
454
|
*
|
|
565
455
|
* @param {number} threshold
|
|
566
456
|
* @throws {AppwriteException}
|
|
567
457
|
* @returns {Promise<Models.HealthQueue>}
|
|
568
458
|
*/
|
|
569
|
-
|
|
570
|
-
const apiPath = '/health/queue/
|
|
459
|
+
getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue> {
|
|
460
|
+
const apiPath = '/health/queue/region-manager';
|
|
571
461
|
const payload: Payload = {};
|
|
572
462
|
if (typeof threshold !== 'undefined') {
|
|
573
463
|
payload['threshold'] = threshold;
|
|
@@ -575,13 +465,9 @@ export class Health {
|
|
|
575
465
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
576
466
|
|
|
577
467
|
const apiHeaders: { [header: string]: string } = {
|
|
578
|
-
'content-type': 'application/json',
|
|
579
468
|
}
|
|
580
469
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
return await this.client.call(
|
|
470
|
+
return this.client.call(
|
|
585
471
|
'get',
|
|
586
472
|
uri,
|
|
587
473
|
apiHeaders,
|
|
@@ -589,16 +475,14 @@ export class Health {
|
|
|
589
475
|
);
|
|
590
476
|
}
|
|
591
477
|
/**
|
|
592
|
-
* Get stats
|
|
593
|
-
*
|
|
594
|
-
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
478
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
595
479
|
*
|
|
596
480
|
* @param {number} threshold
|
|
597
481
|
* @throws {AppwriteException}
|
|
598
482
|
* @returns {Promise<Models.HealthQueue>}
|
|
599
483
|
*/
|
|
600
|
-
|
|
601
|
-
const apiPath = '/health/queue/stats-
|
|
484
|
+
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue> {
|
|
485
|
+
const apiPath = '/health/queue/stats-resources';
|
|
602
486
|
const payload: Payload = {};
|
|
603
487
|
if (typeof threshold !== 'undefined') {
|
|
604
488
|
payload['threshold'] = threshold;
|
|
@@ -606,13 +490,9 @@ export class Health {
|
|
|
606
490
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
607
491
|
|
|
608
492
|
const apiHeaders: { [header: string]: string } = {
|
|
609
|
-
'content-type': 'application/json',
|
|
610
493
|
}
|
|
611
494
|
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
return await this.client.call(
|
|
495
|
+
return this.client.call(
|
|
616
496
|
'get',
|
|
617
497
|
uri,
|
|
618
498
|
apiHeaders,
|
|
@@ -620,16 +500,14 @@ export class Health {
|
|
|
620
500
|
);
|
|
621
501
|
}
|
|
622
502
|
/**
|
|
623
|
-
* Get
|
|
624
|
-
*
|
|
625
|
-
* Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
503
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
626
504
|
*
|
|
627
505
|
* @param {number} threshold
|
|
628
506
|
* @throws {AppwriteException}
|
|
629
507
|
* @returns {Promise<Models.HealthQueue>}
|
|
630
508
|
*/
|
|
631
|
-
|
|
632
|
-
const apiPath = '/health/queue/stats-usage
|
|
509
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue> {
|
|
510
|
+
const apiPath = '/health/queue/stats-usage';
|
|
633
511
|
const payload: Payload = {};
|
|
634
512
|
if (typeof threshold !== 'undefined') {
|
|
635
513
|
payload['threshold'] = threshold;
|
|
@@ -637,13 +515,9 @@ export class Health {
|
|
|
637
515
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
638
516
|
|
|
639
517
|
const apiHeaders: { [header: string]: string } = {
|
|
640
|
-
'content-type': 'application/json',
|
|
641
518
|
}
|
|
642
519
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
return await this.client.call(
|
|
520
|
+
return this.client.call(
|
|
647
521
|
'get',
|
|
648
522
|
uri,
|
|
649
523
|
apiHeaders,
|
|
@@ -651,15 +525,13 @@ export class Health {
|
|
|
651
525
|
);
|
|
652
526
|
}
|
|
653
527
|
/**
|
|
654
|
-
* Get webhooks queue
|
|
655
|
-
*
|
|
656
528
|
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
|
|
657
529
|
*
|
|
658
530
|
* @param {number} threshold
|
|
659
531
|
* @throws {AppwriteException}
|
|
660
532
|
* @returns {Promise<Models.HealthQueue>}
|
|
661
533
|
*/
|
|
662
|
-
|
|
534
|
+
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue> {
|
|
663
535
|
const apiPath = '/health/queue/webhooks';
|
|
664
536
|
const payload: Payload = {};
|
|
665
537
|
if (typeof threshold !== 'undefined') {
|
|
@@ -668,13 +540,9 @@ export class Health {
|
|
|
668
540
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
669
541
|
|
|
670
542
|
const apiHeaders: { [header: string]: string } = {
|
|
671
|
-
'content-type': 'application/json',
|
|
672
543
|
}
|
|
673
544
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
return await this.client.call(
|
|
545
|
+
return this.client.call(
|
|
678
546
|
'get',
|
|
679
547
|
uri,
|
|
680
548
|
apiHeaders,
|
|
@@ -682,26 +550,20 @@ export class Health {
|
|
|
682
550
|
);
|
|
683
551
|
}
|
|
684
552
|
/**
|
|
685
|
-
* Get storage
|
|
686
|
-
*
|
|
687
553
|
* Check the Appwrite storage device is up and connection is successful.
|
|
688
554
|
*
|
|
689
555
|
* @throws {AppwriteException}
|
|
690
556
|
* @returns {Promise<Models.HealthStatus>}
|
|
691
557
|
*/
|
|
692
|
-
|
|
558
|
+
getStorage(): Promise<Models.HealthStatus> {
|
|
693
559
|
const apiPath = '/health/storage';
|
|
694
560
|
const payload: Payload = {};
|
|
695
561
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
696
562
|
|
|
697
563
|
const apiHeaders: { [header: string]: string } = {
|
|
698
|
-
'content-type': 'application/json',
|
|
699
564
|
}
|
|
700
565
|
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
return await this.client.call(
|
|
566
|
+
return this.client.call(
|
|
705
567
|
'get',
|
|
706
568
|
uri,
|
|
707
569
|
apiHeaders,
|
|
@@ -709,26 +571,20 @@ export class Health {
|
|
|
709
571
|
);
|
|
710
572
|
}
|
|
711
573
|
/**
|
|
712
|
-
* Get local storage
|
|
713
|
-
*
|
|
714
574
|
* Check the Appwrite local storage device is up and connection is successful.
|
|
715
575
|
*
|
|
716
576
|
* @throws {AppwriteException}
|
|
717
577
|
* @returns {Promise<Models.HealthStatus>}
|
|
718
578
|
*/
|
|
719
|
-
|
|
579
|
+
getStorageLocal(): Promise<Models.HealthStatus> {
|
|
720
580
|
const apiPath = '/health/storage/local';
|
|
721
581
|
const payload: Payload = {};
|
|
722
582
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
723
583
|
|
|
724
584
|
const apiHeaders: { [header: string]: string } = {
|
|
725
|
-
'content-type': 'application/json',
|
|
726
585
|
}
|
|
727
586
|
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
return await this.client.call(
|
|
587
|
+
return this.client.call(
|
|
732
588
|
'get',
|
|
733
589
|
uri,
|
|
734
590
|
apiHeaders,
|
|
@@ -736,26 +592,20 @@ export class Health {
|
|
|
736
592
|
);
|
|
737
593
|
}
|
|
738
594
|
/**
|
|
739
|
-
* Get time
|
|
740
|
-
*
|
|
741
595
|
* Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
|
|
742
596
|
*
|
|
743
597
|
* @throws {AppwriteException}
|
|
744
598
|
* @returns {Promise<Models.HealthTime>}
|
|
745
599
|
*/
|
|
746
|
-
|
|
600
|
+
getTime(): Promise<Models.HealthTime> {
|
|
747
601
|
const apiPath = '/health/time';
|
|
748
602
|
const payload: Payload = {};
|
|
749
603
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
750
604
|
|
|
751
605
|
const apiHeaders: { [header: string]: string } = {
|
|
752
|
-
'content-type': 'application/json',
|
|
753
606
|
}
|
|
754
607
|
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
return await this.client.call(
|
|
608
|
+
return this.client.call(
|
|
759
609
|
'get',
|
|
760
610
|
uri,
|
|
761
611
|
apiHeaders,
|