@appwrite.io/console 1.9.0 → 2.0.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/.github/workflows/publish.yml +9 -8
- package/CHANGELOG.md +51 -6
- package/LICENSE +1 -1
- package/README.md +84 -4
- package/dist/cjs/sdk.js +15258 -6036
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +15256 -6037
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +15258 -6036
- package/docs/examples/account/create-billing-address.md +8 -8
- package/docs/examples/account/create-email-password-session.md +4 -4
- package/docs/examples/account/create-email-token.md +5 -5
- package/docs/examples/account/{update-magic-u-r-l-session.md → create-email-verification.md} +3 -4
- package/docs/examples/account/{update-m-f-a.md → create-jwt.md} +3 -3
- package/docs/examples/account/{create-magic-u-r-l-token.md → create-magic-url-token.md} +6 -6
- package/docs/examples/account/create-mfa-authenticator.md +3 -3
- package/docs/examples/account/create-mfa-challenge.md +3 -3
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/{create-o-auth2token.md → create-o-auth-2-session.md} +6 -6
- package/docs/examples/account/{create-o-auth2session.md → create-o-auth-2-token.md} +6 -6
- package/docs/examples/account/create-phone-token.md +4 -4
- package/docs/examples/account/create-push-target.md +5 -5
- package/docs/examples/account/create-recovery.md +4 -4
- package/docs/examples/account/create-session.md +4 -4
- package/docs/examples/account/create-verification.md +3 -3
- package/docs/examples/account/create.md +6 -6
- package/docs/examples/account/delete-billing-address.md +3 -3
- package/docs/examples/account/delete-identity.md +3 -3
- package/docs/examples/account/delete-mfa-authenticator.md +3 -3
- package/docs/examples/account/delete-payment-method.md +3 -3
- package/docs/examples/account/delete-push-target.md +3 -3
- package/docs/examples/account/delete-session.md +3 -3
- package/docs/examples/account/get-billing-address.md +3 -3
- package/docs/examples/account/get-coupon.md +3 -3
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-payment-method.md +3 -3
- package/docs/examples/account/get-session.md +3 -3
- package/docs/examples/account/list-billing-addresses.md +3 -3
- package/docs/examples/account/list-identities.md +4 -3
- package/docs/examples/account/list-invoices.md +3 -3
- package/docs/examples/account/list-logs.md +4 -3
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-payment-methods.md +3 -3
- package/docs/examples/account/update-billing-address.md +9 -9
- package/docs/examples/account/update-email-verification.md +14 -0
- package/docs/examples/account/update-email.md +4 -4
- package/docs/examples/account/update-magic-url-session.md +14 -0
- package/docs/examples/account/update-mfa-authenticator.md +4 -4
- package/docs/examples/account/update-mfa-challenge.md +4 -4
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/{create-j-w-t.md → update-mfa.md} +3 -1
- package/docs/examples/account/update-name.md +3 -3
- package/docs/examples/account/update-password.md +4 -4
- package/docs/examples/account/update-payment-method-mandate-options.md +3 -3
- package/docs/examples/account/update-payment-method-provider.md +6 -5
- package/docs/examples/account/update-payment-method.md +6 -5
- package/docs/examples/account/update-phone-session.md +4 -4
- package/docs/examples/account/update-phone-verification.md +4 -4
- package/docs/examples/account/update-phone.md +4 -4
- package/docs/examples/account/update-prefs.md +7 -3
- package/docs/examples/account/update-push-target.md +4 -4
- package/docs/examples/account/update-recovery.md +5 -5
- package/docs/examples/account/update-session.md +3 -3
- package/docs/examples/account/update-verification.md +4 -4
- package/docs/examples/assistant/chat.md +3 -3
- package/docs/examples/avatars/get-browser.md +6 -6
- package/docs/examples/avatars/get-credit-card.md +6 -6
- package/docs/examples/avatars/get-favicon.md +3 -3
- package/docs/examples/avatars/get-flag.md +6 -6
- package/docs/examples/avatars/get-image.md +5 -5
- package/docs/examples/avatars/get-initials.md +6 -6
- package/docs/examples/avatars/{get-q-r.md → get-qr.md} +6 -6
- package/docs/examples/avatars/get-screenshot.md +35 -0
- package/docs/examples/backups/create-archive.md +4 -4
- package/docs/examples/backups/create-policy.md +9 -9
- package/docs/examples/backups/create-restoration.md +6 -6
- package/docs/examples/backups/delete-archive.md +3 -3
- package/docs/examples/backups/delete-policy.md +3 -3
- package/docs/examples/backups/get-archive.md +3 -3
- package/docs/examples/backups/get-policy.md +3 -3
- package/docs/examples/backups/get-restoration.md +3 -3
- package/docs/examples/backups/list-archives.md +3 -3
- package/docs/examples/backups/list-policies.md +3 -3
- package/docs/examples/backups/list-restorations.md +3 -3
- package/docs/examples/backups/update-policy.md +7 -7
- package/docs/examples/console/create-program-membership.md +3 -3
- package/docs/examples/console/create-source.md +7 -7
- package/docs/examples/console/get-campaign.md +3 -3
- package/docs/examples/console/get-coupon.md +3 -3
- package/docs/examples/console/{plans.md → get-plan.md} +3 -1
- package/docs/examples/console/get-plans.md +13 -0
- package/docs/examples/console/{regions.md → get-program.md} +3 -1
- package/docs/examples/console/get-regions.md +13 -0
- package/docs/examples/console/get-resource.md +4 -4
- package/docs/examples/console/suggest-columns.md +17 -0
- package/docs/examples/console/suggest-indexes.md +16 -0
- package/docs/examples/databases/create-boolean-attribute.md +8 -8
- package/docs/examples/databases/create-collection.md +11 -9
- package/docs/examples/databases/create-datetime-attribute.md +8 -8
- package/docs/examples/databases/create-document.md +16 -11
- package/docs/examples/databases/create-documents.md +7 -6
- package/docs/examples/databases/create-email-attribute.md +8 -8
- package/docs/examples/databases/create-enum-attribute.md +9 -9
- package/docs/examples/databases/create-float-attribute.md +10 -10
- package/docs/examples/databases/create-index.md +9 -9
- package/docs/examples/databases/create-integer-attribute.md +10 -10
- package/docs/examples/databases/create-ip-attribute.md +8 -8
- package/docs/examples/databases/create-line-attribute.md +17 -0
- package/docs/examples/databases/create-operations.md +24 -0
- package/docs/examples/databases/create-point-attribute.md +17 -0
- package/docs/examples/databases/create-polygon-attribute.md +17 -0
- package/docs/examples/databases/create-relationship-attribute.md +10 -10
- package/docs/examples/databases/create-string-attribute.md +10 -10
- package/docs/examples/databases/create-transaction.md +13 -0
- package/docs/examples/databases/create-url-attribute.md +8 -8
- package/docs/examples/databases/create.md +5 -5
- package/docs/examples/databases/decrement-document-attribute.md +9 -8
- package/docs/examples/databases/delete-attribute.md +5 -5
- package/docs/examples/databases/delete-collection.md +4 -4
- package/docs/examples/databases/delete-document.md +6 -5
- package/docs/examples/databases/delete-documents.md +6 -5
- package/docs/examples/databases/delete-index.md +5 -5
- package/docs/examples/databases/{get-database-usage.md → delete-transaction.md} +4 -5
- package/docs/examples/databases/delete.md +3 -3
- package/docs/examples/databases/get-attribute.md +5 -5
- package/docs/examples/databases/get-collection-usage.md +6 -6
- package/docs/examples/databases/get-collection.md +4 -4
- package/docs/examples/databases/get-document.md +7 -6
- package/docs/examples/databases/get-index.md +5 -5
- package/docs/examples/databases/get-transaction.md +13 -0
- package/docs/examples/databases/get-usage.md +5 -4
- package/docs/examples/databases/get.md +3 -3
- package/docs/examples/databases/increment-document-attribute.md +9 -8
- package/docs/examples/databases/list-attributes.md +6 -5
- package/docs/examples/databases/list-collection-logs.md +5 -5
- package/docs/examples/databases/list-collections.md +6 -5
- package/docs/examples/databases/list-document-logs.md +6 -6
- package/docs/examples/databases/list-documents.md +7 -5
- package/docs/examples/databases/list-indexes.md +6 -5
- package/docs/examples/databases/list-logs.md +4 -4
- package/docs/examples/databases/list-transactions.md +13 -0
- package/docs/examples/databases/list-usage.md +13 -0
- package/docs/examples/databases/list.md +5 -4
- package/docs/examples/databases/update-boolean-attribute.md +8 -8
- package/docs/examples/databases/update-collection.md +9 -9
- package/docs/examples/databases/update-datetime-attribute.md +8 -8
- package/docs/examples/databases/update-document.md +15 -8
- package/docs/examples/databases/update-documents.md +13 -6
- package/docs/examples/databases/update-email-attribute.md +8 -8
- package/docs/examples/databases/update-enum-attribute.md +9 -9
- package/docs/examples/databases/update-float-attribute.md +10 -10
- package/docs/examples/databases/update-integer-attribute.md +10 -10
- package/docs/examples/databases/update-ip-attribute.md +8 -8
- package/docs/examples/databases/update-line-attribute.md +18 -0
- package/docs/examples/databases/update-point-attribute.md +18 -0
- package/docs/examples/databases/update-polygon-attribute.md +18 -0
- package/docs/examples/databases/update-relationship-attribute.md +7 -7
- package/docs/examples/databases/update-string-attribute.md +9 -9
- package/docs/examples/databases/update-transaction.md +15 -0
- package/docs/examples/databases/update-url-attribute.md +8 -8
- package/docs/examples/databases/update.md +5 -5
- package/docs/examples/databases/upsert-document.md +15 -8
- package/docs/examples/databases/upsert-documents.md +6 -5
- package/docs/examples/domains/create-preset-google-workspace.md +3 -3
- package/docs/examples/domains/create-preset-i-cloud.md +3 -3
- package/docs/examples/domains/create-preset-mailgun.md +3 -3
- package/docs/examples/domains/create-preset-outlook.md +3 -3
- package/docs/examples/domains/create-preset-proton-mail.md +3 -3
- package/docs/examples/domains/create-preset-zoho.md +3 -3
- package/docs/examples/domains/create-record-a.md +7 -7
- package/docs/examples/domains/{create-record-a-a-a-a.md → create-record-aaaa.md} +7 -7
- package/docs/examples/domains/create-record-alias.md +7 -7
- package/docs/examples/domains/{create-record-n-s.md → create-record-caa.md} +7 -7
- package/docs/examples/domains/{create-record-c-a-a.md → create-record-cname.md} +7 -7
- package/docs/examples/domains/{create-record-h-t-t-p-s.md → create-record-https.md} +7 -7
- package/docs/examples/domains/create-record-mx.md +18 -0
- package/docs/examples/domains/create-record-ns.md +17 -0
- package/docs/examples/domains/create-record-srv.md +20 -0
- package/docs/examples/domains/{create-record-c-n-a-m-e.md → create-record-txt.md} +7 -7
- package/docs/examples/domains/create.md +4 -4
- package/docs/examples/domains/delete-record.md +4 -4
- package/docs/examples/domains/delete.md +3 -3
- package/docs/examples/domains/get-preset-google-workspace.md +3 -3
- package/docs/examples/domains/get-preset-i-cloud.md +3 -3
- package/docs/examples/domains/get-preset-mailgun.md +3 -3
- package/docs/examples/domains/get-preset-outlook.md +3 -3
- package/docs/examples/domains/get-preset-proton-mail.md +3 -3
- package/docs/examples/domains/get-preset-zoho.md +3 -3
- package/docs/examples/domains/get-record.md +4 -4
- package/docs/examples/domains/get-zone.md +3 -3
- package/docs/examples/domains/get.md +3 -3
- package/docs/examples/domains/list-records.md +4 -4
- package/docs/examples/domains/list.md +4 -4
- package/docs/examples/domains/update-nameservers.md +3 -3
- package/docs/examples/domains/update-record-a.md +8 -8
- package/docs/examples/domains/update-record-aaaa.md +18 -0
- package/docs/examples/domains/update-record-alias.md +8 -8
- package/docs/examples/domains/update-record-caa.md +18 -0
- package/docs/examples/domains/update-record-cname.md +18 -0
- package/docs/examples/domains/update-record-https.md +18 -0
- package/docs/examples/domains/update-record-mx.md +19 -0
- package/docs/examples/domains/update-record-ns.md +18 -0
- package/docs/examples/domains/update-record-srv.md +21 -0
- package/docs/examples/domains/update-record-txt.md +18 -0
- package/docs/examples/domains/update-team.md +4 -4
- package/docs/examples/domains/update-zone.md +4 -4
- package/docs/examples/functions/create-deployment.md +7 -7
- package/docs/examples/functions/create-duplicate-deployment.md +5 -5
- package/docs/examples/functions/create-execution.md +9 -9
- package/docs/examples/functions/create-template-deployment.md +10 -9
- package/docs/examples/functions/create-variable.md +6 -6
- package/docs/examples/functions/create-vcs-deployment.md +7 -7
- package/docs/examples/functions/create.md +21 -21
- package/docs/examples/functions/delete-deployment.md +4 -4
- package/docs/examples/functions/delete-execution.md +4 -4
- package/docs/examples/functions/delete-variable.md +4 -4
- package/docs/examples/functions/delete.md +3 -3
- package/docs/examples/functions/get-deployment-download.md +5 -5
- package/docs/examples/functions/get-deployment.md +4 -4
- package/docs/examples/functions/get-execution.md +4 -4
- package/docs/examples/functions/get-template.md +3 -3
- package/docs/examples/functions/get-usage.md +5 -5
- package/docs/examples/functions/get-variable.md +4 -4
- package/docs/examples/functions/get.md +3 -3
- package/docs/examples/functions/list-deployments.md +6 -5
- package/docs/examples/functions/list-executions.md +5 -4
- package/docs/examples/functions/list-templates.md +7 -6
- package/docs/examples/functions/list-usage.md +4 -4
- package/docs/examples/functions/list-variables.md +3 -3
- package/docs/examples/functions/list.md +5 -4
- package/docs/examples/functions/update-deployment-status.md +4 -4
- package/docs/examples/functions/update-function-deployment.md +4 -4
- package/docs/examples/functions/update-variable.md +7 -7
- package/docs/examples/functions/update.md +21 -21
- package/docs/examples/graphql/mutation.md +3 -3
- package/docs/examples/graphql/query.md +3 -3
- package/docs/examples/health/get-certificate.md +3 -3
- package/docs/examples/health/get-failed-jobs.md +5 -5
- package/docs/examples/health/get-queue-billing-project-aggregation.md +3 -3
- package/docs/examples/health/get-queue-billing-team-aggregation.md +3 -3
- package/docs/examples/health/get-queue-builds.md +3 -3
- package/docs/examples/health/get-queue-certificates.md +3 -3
- package/docs/examples/health/get-queue-databases.md +4 -4
- package/docs/examples/health/get-queue-deletes.md +3 -3
- package/docs/examples/health/get-queue-functions.md +3 -3
- package/docs/examples/health/get-queue-logs.md +3 -3
- package/docs/examples/health/get-queue-mails.md +3 -3
- package/docs/examples/health/get-queue-messaging.md +3 -3
- package/docs/examples/health/get-queue-migrations.md +3 -3
- package/docs/examples/health/get-queue-priority-builds.md +3 -3
- package/docs/examples/health/get-queue-region-manager.md +3 -3
- package/docs/examples/health/get-queue-stats-resources.md +3 -3
- package/docs/examples/health/get-queue-threats.md +13 -0
- package/docs/examples/health/get-queue-usage.md +3 -3
- package/docs/examples/health/get-queue-webhooks.md +3 -3
- package/docs/examples/messaging/create-apns-provider.md +10 -10
- package/docs/examples/messaging/create-email.md +14 -14
- package/docs/examples/messaging/create-fcm-provider.md +6 -6
- package/docs/examples/messaging/create-mailgun-provider.md +12 -12
- package/docs/examples/messaging/{create-msg91provider.md → create-msg-91-provider.md} +8 -8
- package/docs/examples/messaging/create-push.md +21 -21
- package/docs/examples/messaging/create-resend-provider.md +20 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +10 -10
- package/docs/examples/messaging/create-sms.md +9 -9
- package/docs/examples/messaging/create-smtp-provider.md +16 -16
- package/docs/examples/messaging/create-subscriber.md +5 -5
- package/docs/examples/messaging/create-telesign-provider.md +8 -8
- package/docs/examples/messaging/create-textmagic-provider.md +8 -8
- package/docs/examples/messaging/create-topic.md +5 -5
- package/docs/examples/messaging/create-twilio-provider.md +8 -8
- package/docs/examples/messaging/create-vonage-provider.md +8 -8
- package/docs/examples/messaging/delete-provider.md +3 -3
- package/docs/examples/messaging/delete-subscriber.md +4 -4
- package/docs/examples/messaging/delete-topic.md +3 -3
- package/docs/examples/messaging/delete.md +3 -3
- package/docs/examples/messaging/get-message.md +3 -3
- package/docs/examples/messaging/get-provider.md +3 -3
- package/docs/examples/messaging/get-subscriber.md +4 -4
- package/docs/examples/messaging/get-topic.md +3 -3
- package/docs/examples/messaging/list-message-logs.md +5 -4
- package/docs/examples/messaging/list-messages.md +5 -4
- package/docs/examples/messaging/list-provider-logs.md +5 -4
- package/docs/examples/messaging/list-providers.md +5 -4
- package/docs/examples/messaging/list-subscriber-logs.md +5 -4
- package/docs/examples/messaging/list-subscribers.md +6 -5
- package/docs/examples/messaging/list-targets.md +5 -4
- package/docs/examples/messaging/list-topic-logs.md +5 -4
- package/docs/examples/messaging/list-topics.md +5 -4
- package/docs/examples/messaging/update-apns-provider.md +10 -10
- package/docs/examples/messaging/update-email.md +14 -14
- package/docs/examples/messaging/update-fcm-provider.md +6 -6
- package/docs/examples/messaging/update-mailgun-provider.md +12 -12
- package/docs/examples/messaging/{update-msg91provider.md → update-msg-91-provider.md} +8 -8
- package/docs/examples/messaging/update-push.md +21 -21
- package/docs/examples/messaging/update-resend-provider.md +20 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +10 -10
- package/docs/examples/messaging/update-sms.md +9 -9
- package/docs/examples/messaging/update-smtp-provider.md +16 -16
- package/docs/examples/messaging/update-telesign-provider.md +8 -8
- package/docs/examples/messaging/update-textmagic-provider.md +8 -8
- package/docs/examples/messaging/update-topic.md +5 -5
- package/docs/examples/messaging/update-twilio-provider.md +8 -8
- package/docs/examples/messaging/update-vonage-provider.md +8 -8
- package/docs/examples/migrations/create-appwrite-migration.md +6 -6
- package/docs/examples/migrations/create-csv-export.md +21 -0
- package/docs/examples/migrations/{create-csv-migration.md → create-csv-import.md} +6 -5
- package/docs/examples/migrations/create-firebase-migration.md +4 -4
- package/docs/examples/migrations/create-n-host-migration.md +10 -10
- package/docs/examples/migrations/create-supabase-migration.md +9 -9
- package/docs/examples/migrations/delete.md +3 -3
- package/docs/examples/migrations/get-appwrite-report.md +6 -6
- package/docs/examples/migrations/get-firebase-report.md +4 -4
- package/docs/examples/migrations/get-n-host-report.md +10 -10
- package/docs/examples/migrations/get-supabase-report.md +9 -9
- package/docs/examples/migrations/get.md +3 -3
- package/docs/examples/migrations/list.md +5 -4
- package/docs/examples/migrations/retry.md +3 -3
- package/docs/examples/organizations/add-credit.md +4 -4
- package/docs/examples/organizations/cancel-downgrade.md +3 -3
- package/docs/examples/organizations/create-downgrade-feedback.md +17 -0
- package/docs/examples/organizations/create-invoice-payment.md +5 -5
- package/docs/examples/organizations/create.md +13 -12
- package/docs/examples/organizations/delete-backup-payment-method.md +3 -3
- package/docs/examples/organizations/delete-billing-address.md +3 -3
- package/docs/examples/organizations/delete-default-payment-method.md +3 -3
- package/docs/examples/organizations/delete.md +3 -3
- package/docs/examples/organizations/estimation-create-organization.md +8 -7
- package/docs/examples/organizations/estimation-delete-organization.md +3 -3
- package/docs/examples/organizations/estimation-update-plan.md +7 -7
- package/docs/examples/organizations/get-aggregation.md +6 -4
- package/docs/examples/organizations/get-available-credits.md +13 -0
- package/docs/examples/organizations/get-billing-address.md +4 -4
- package/docs/examples/organizations/get-credit.md +4 -4
- package/docs/examples/organizations/get-invoice-download.md +4 -4
- package/docs/examples/organizations/get-invoice-view.md +4 -4
- package/docs/examples/organizations/get-invoice.md +4 -4
- package/docs/examples/organizations/get-payment-method.md +4 -4
- package/docs/examples/organizations/get-plan.md +3 -3
- package/docs/examples/organizations/get-scopes.md +3 -3
- package/docs/examples/organizations/get-usage.md +5 -5
- package/docs/examples/organizations/list-aggregations.md +4 -4
- package/docs/examples/organizations/list-credits.md +4 -4
- package/docs/examples/organizations/list-invoices.md +4 -4
- package/docs/examples/organizations/list.md +4 -4
- package/docs/examples/organizations/set-backup-payment-method.md +4 -4
- package/docs/examples/organizations/set-billing-address.md +4 -4
- package/docs/examples/organizations/set-billing-email.md +4 -4
- package/docs/examples/organizations/set-billing-tax-id.md +4 -4
- package/docs/examples/organizations/set-default-payment-method.md +4 -4
- package/docs/examples/organizations/update-budget.md +5 -5
- package/docs/examples/organizations/update-plan.md +11 -11
- package/docs/examples/organizations/update-projects.md +14 -0
- package/docs/examples/organizations/validate-invoice.md +4 -4
- package/docs/examples/organizations/validate-payment.md +4 -4
- package/docs/examples/project/create-variable.md +5 -5
- package/docs/examples/project/delete-variable.md +3 -3
- package/docs/examples/project/get-usage.md +5 -5
- package/docs/examples/project/get-variable.md +3 -3
- package/docs/examples/project/update-variable.md +6 -6
- package/docs/examples/projects/create-dev-key.md +5 -5
- package/docs/examples/projects/{create-j-w-t.md → create-jwt.md} +5 -5
- package/docs/examples/projects/create-key.md +6 -6
- package/docs/examples/projects/create-platform.md +8 -8
- package/docs/examples/projects/create-smtp-test.md +12 -12
- package/docs/examples/projects/create-webhook.md +10 -10
- package/docs/examples/projects/create.md +16 -16
- package/docs/examples/projects/delete-dev-key.md +4 -4
- package/docs/examples/projects/delete-email-template.md +5 -5
- package/docs/examples/projects/delete-key.md +4 -4
- package/docs/examples/projects/delete-platform.md +4 -4
- package/docs/examples/projects/delete-sms-template.md +5 -5
- package/docs/examples/projects/delete-webhook.md +4 -4
- package/docs/examples/projects/delete.md +3 -3
- package/docs/examples/projects/get-dev-key.md +4 -4
- package/docs/examples/projects/get-email-template.md +5 -5
- package/docs/examples/projects/get-key.md +4 -4
- package/docs/examples/projects/get-platform.md +4 -4
- package/docs/examples/projects/get-sms-template.md +5 -5
- package/docs/examples/projects/get-webhook.md +4 -4
- package/docs/examples/projects/get.md +3 -3
- package/docs/examples/projects/list-dev-keys.md +4 -4
- package/docs/examples/projects/list-keys.md +4 -3
- package/docs/examples/projects/list-platforms.md +4 -3
- package/docs/examples/projects/list-webhooks.md +4 -3
- package/docs/examples/projects/list.md +5 -4
- package/docs/examples/projects/update-api-status-all.md +4 -4
- package/docs/examples/projects/update-api-status.md +6 -6
- package/docs/examples/projects/update-auth-duration.md +4 -4
- package/docs/examples/projects/update-auth-limit.md +4 -4
- package/docs/examples/projects/update-auth-password-dictionary.md +4 -4
- package/docs/examples/projects/update-auth-password-history.md +4 -4
- package/docs/examples/projects/update-auth-sessions-limit.md +4 -4
- package/docs/examples/projects/update-auth-status.md +5 -5
- package/docs/examples/projects/update-dev-key.md +6 -6
- package/docs/examples/projects/update-email-template.md +10 -10
- package/docs/examples/projects/update-key.md +7 -7
- package/docs/examples/projects/update-memberships-privacy.md +6 -6
- package/docs/examples/projects/update-mock-numbers.md +4 -4
- package/docs/examples/projects/{update-o-auth2.md → update-o-auth-2.md} +7 -7
- package/docs/examples/projects/update-personal-data-check.md +4 -4
- package/docs/examples/projects/update-platform.md +8 -8
- package/docs/examples/projects/update-service-status-all.md +4 -4
- package/docs/examples/projects/update-service-status.md +5 -5
- package/docs/examples/projects/update-session-alerts.md +4 -4
- package/docs/examples/projects/update-session-invalidation.md +14 -0
- package/docs/examples/projects/update-sms-template.md +6 -6
- package/docs/examples/projects/update-smtp.md +12 -12
- package/docs/examples/projects/update-status.md +14 -0
- package/docs/examples/projects/update-team.md +4 -4
- package/docs/examples/projects/update-webhook-signature.md +4 -4
- package/docs/examples/projects/update-webhook.md +11 -11
- package/docs/examples/projects/update.md +13 -13
- package/docs/examples/proxy/{create-a-p-i-rule.md → create-api-rule.md} +3 -3
- package/docs/examples/proxy/create-function-rule.md +5 -5
- package/docs/examples/proxy/create-redirect-rule.md +8 -8
- package/docs/examples/proxy/create-site-rule.md +5 -5
- package/docs/examples/proxy/delete-rule.md +3 -3
- package/docs/examples/proxy/get-rule.md +3 -3
- package/docs/examples/proxy/list-rules.md +5 -4
- package/docs/examples/proxy/update-rule-verification.md +3 -3
- package/docs/examples/sites/create-deployment.md +8 -8
- package/docs/examples/sites/create-duplicate-deployment.md +4 -4
- package/docs/examples/sites/create-template-deployment.md +10 -9
- package/docs/examples/sites/create-variable.md +6 -6
- package/docs/examples/sites/create-vcs-deployment.md +7 -7
- package/docs/examples/sites/create.md +21 -21
- package/docs/examples/sites/delete-deployment.md +4 -4
- package/docs/examples/sites/delete-log.md +4 -4
- package/docs/examples/sites/delete-variable.md +4 -4
- package/docs/examples/sites/delete.md +3 -3
- package/docs/examples/sites/get-deployment-download.md +5 -5
- package/docs/examples/sites/get-deployment.md +4 -4
- package/docs/examples/sites/get-log.md +4 -4
- package/docs/examples/sites/get-template.md +3 -3
- package/docs/examples/sites/get-usage.md +5 -5
- package/docs/examples/sites/get-variable.md +4 -4
- package/docs/examples/sites/get.md +3 -3
- package/docs/examples/sites/list-deployments.md +6 -5
- package/docs/examples/sites/list-logs.md +5 -4
- package/docs/examples/sites/list-templates.md +6 -6
- package/docs/examples/sites/list-usage.md +4 -4
- package/docs/examples/sites/list-variables.md +3 -3
- package/docs/examples/sites/list.md +5 -4
- package/docs/examples/sites/update-deployment-status.md +4 -4
- package/docs/examples/sites/update-site-deployment.md +4 -4
- package/docs/examples/sites/update-variable.md +7 -7
- package/docs/examples/sites/update.md +21 -21
- package/docs/examples/storage/create-bucket.md +14 -13
- package/docs/examples/storage/create-file.md +7 -7
- package/docs/examples/storage/delete-bucket.md +3 -3
- package/docs/examples/storage/delete-file.md +4 -4
- package/docs/examples/storage/get-bucket-usage.md +5 -5
- package/docs/examples/storage/get-bucket.md +3 -3
- package/docs/examples/storage/get-file-download.md +5 -5
- package/docs/examples/storage/get-file-preview.md +16 -16
- package/docs/examples/storage/get-file-view.md +5 -5
- package/docs/examples/storage/get-file.md +4 -4
- package/docs/examples/storage/get-usage.md +4 -4
- package/docs/examples/storage/list-buckets.md +5 -4
- package/docs/examples/storage/list-files.md +6 -5
- package/docs/examples/storage/update-bucket.md +14 -13
- package/docs/examples/storage/update-file.md +7 -7
- package/docs/examples/tablesdb/create-boolean-column.md +18 -0
- package/docs/examples/tablesdb/create-datetime-column.md +18 -0
- package/docs/examples/tablesdb/create-email-column.md +18 -0
- package/docs/examples/tablesdb/create-enum-column.md +19 -0
- package/docs/examples/tablesdb/create-float-column.md +20 -0
- package/docs/examples/tablesdb/create-index.md +19 -0
- package/docs/examples/tablesdb/create-integer-column.md +20 -0
- package/docs/examples/tablesdb/create-ip-column.md +18 -0
- package/docs/examples/tablesdb/create-line-column.md +17 -0
- package/docs/examples/tablesdb/create-operations.md +24 -0
- package/docs/examples/tablesdb/create-point-column.md +17 -0
- package/docs/examples/tablesdb/create-polygon-column.md +17 -0
- package/docs/examples/tablesdb/create-relationship-column.md +20 -0
- package/docs/examples/tablesdb/create-row.md +24 -0
- package/docs/examples/tablesdb/create-rows.md +16 -0
- package/docs/examples/tablesdb/create-string-column.md +20 -0
- package/docs/examples/tablesdb/create-table.md +20 -0
- package/docs/examples/tablesdb/create-transaction.md +13 -0
- package/docs/examples/tablesdb/create-url-column.md +18 -0
- package/docs/examples/tablesdb/create.md +15 -0
- package/docs/examples/tablesdb/decrement-row-column.md +19 -0
- package/docs/examples/tablesdb/delete-column.md +15 -0
- package/docs/examples/tablesdb/delete-index.md +15 -0
- package/docs/examples/tablesdb/delete-row.md +16 -0
- package/docs/examples/tablesdb/delete-rows.md +16 -0
- package/docs/examples/tablesdb/delete-table.md +14 -0
- package/docs/examples/tablesdb/delete-transaction.md +13 -0
- package/docs/examples/tablesdb/delete.md +13 -0
- package/docs/examples/tablesdb/get-column.md +15 -0
- package/docs/examples/tablesdb/get-index.md +15 -0
- package/docs/examples/tablesdb/get-row.md +17 -0
- package/docs/examples/tablesdb/get-table-usage.md +15 -0
- package/docs/examples/tablesdb/get-table.md +14 -0
- package/docs/examples/tablesdb/get-transaction.md +13 -0
- package/docs/examples/tablesdb/get-usage.md +14 -0
- package/docs/examples/tablesdb/get.md +13 -0
- package/docs/examples/tablesdb/increment-row-column.md +19 -0
- package/docs/examples/tablesdb/list-columns.md +16 -0
- package/docs/examples/tablesdb/list-indexes.md +16 -0
- package/docs/examples/tablesdb/list-row-logs.md +16 -0
- package/docs/examples/tablesdb/list-rows.md +17 -0
- package/docs/examples/tablesdb/list-table-logs.md +15 -0
- package/docs/examples/tablesdb/list-tables.md +16 -0
- package/docs/examples/tablesdb/list-transactions.md +13 -0
- package/docs/examples/tablesdb/list-usage.md +13 -0
- package/docs/examples/tablesdb/list.md +15 -0
- package/docs/examples/tablesdb/update-boolean-column.md +18 -0
- package/docs/examples/tablesdb/update-datetime-column.md +18 -0
- package/docs/examples/tablesdb/update-email-column.md +18 -0
- package/docs/examples/tablesdb/update-enum-column.md +19 -0
- package/docs/examples/tablesdb/update-float-column.md +20 -0
- package/docs/examples/tablesdb/update-integer-column.md +20 -0
- package/docs/examples/tablesdb/update-ip-column.md +18 -0
- package/docs/examples/tablesdb/update-line-column.md +18 -0
- package/docs/examples/tablesdb/update-point-column.md +18 -0
- package/docs/examples/tablesdb/update-polygon-column.md +18 -0
- package/docs/examples/tablesdb/update-relationship-column.md +17 -0
- package/docs/examples/tablesdb/update-row.md +24 -0
- package/docs/examples/tablesdb/update-rows.md +23 -0
- package/docs/examples/tablesdb/update-string-column.md +19 -0
- package/docs/examples/tablesdb/update-table.md +18 -0
- package/docs/examples/tablesdb/update-transaction.md +15 -0
- package/docs/examples/tablesdb/update-url-column.md +18 -0
- package/docs/examples/tablesdb/update.md +15 -0
- package/docs/examples/tablesdb/upsert-row.md +24 -0
- package/docs/examples/tablesdb/upsert-rows.md +16 -0
- package/docs/examples/teams/create-membership.md +9 -9
- package/docs/examples/teams/create.md +5 -5
- package/docs/examples/teams/delete-membership.md +4 -4
- package/docs/examples/teams/delete.md +3 -3
- package/docs/examples/teams/get-membership.md +4 -4
- package/docs/examples/teams/get-prefs.md +3 -3
- package/docs/examples/teams/get.md +3 -3
- package/docs/examples/teams/list-logs.md +5 -4
- package/docs/examples/teams/list-memberships.md +6 -5
- package/docs/examples/teams/list.md +5 -4
- package/docs/examples/teams/update-membership-status.md +6 -6
- package/docs/examples/teams/update-membership.md +5 -5
- package/docs/examples/teams/update-name.md +4 -4
- package/docs/examples/teams/update-prefs.md +4 -4
- package/docs/examples/tokens/create-file-token.md +5 -5
- package/docs/examples/tokens/delete.md +3 -3
- package/docs/examples/tokens/get.md +3 -3
- package/docs/examples/tokens/list.md +6 -5
- package/docs/examples/tokens/update.md +4 -4
- package/docs/examples/users/{create-m-d5user.md → create-argon-2-user.md} +6 -6
- package/docs/examples/users/create-bcrypt-user.md +6 -6
- package/docs/examples/users/{create-j-w-t.md → create-jwt.md} +5 -5
- package/docs/examples/users/{create-argon2user.md → create-md-5-user.md} +6 -6
- package/docs/examples/users/create-mfa-recovery-codes.md +3 -3
- package/docs/examples/users/{create-p-h-pass-user.md → create-ph-pass-user.md} +6 -6
- package/docs/examples/users/create-scrypt-modified-user.md +9 -9
- package/docs/examples/users/create-scrypt-user.md +11 -11
- package/docs/examples/users/create-session.md +3 -3
- package/docs/examples/users/{create-s-h-a-user.md → create-sha-user.md} +7 -7
- package/docs/examples/users/create-target.md +8 -8
- package/docs/examples/users/create-token.md +5 -5
- package/docs/examples/users/create.md +7 -7
- package/docs/examples/users/delete-identity.md +3 -3
- package/docs/examples/users/delete-mfa-authenticator.md +4 -4
- package/docs/examples/users/delete-session.md +4 -4
- package/docs/examples/users/delete-sessions.md +3 -3
- package/docs/examples/users/delete-target.md +4 -4
- package/docs/examples/users/delete.md +3 -3
- package/docs/examples/users/get-mfa-recovery-codes.md +3 -3
- package/docs/examples/users/get-prefs.md +3 -3
- package/docs/examples/users/get-target.md +4 -4
- package/docs/examples/users/get-usage.md +4 -4
- package/docs/examples/users/get.md +3 -3
- package/docs/examples/users/list-identities.md +5 -4
- package/docs/examples/users/list-logs.md +5 -4
- package/docs/examples/users/list-memberships.md +6 -5
- package/docs/examples/users/list-mfa-factors.md +3 -3
- package/docs/examples/users/list-sessions.md +4 -3
- package/docs/examples/users/list-targets.md +5 -4
- package/docs/examples/users/list.md +5 -4
- package/docs/examples/users/update-email-verification.md +4 -4
- package/docs/examples/users/update-email.md +4 -4
- package/docs/examples/users/update-labels.md +4 -4
- package/docs/examples/users/update-mfa-recovery-codes.md +3 -3
- package/docs/examples/users/update-mfa.md +4 -4
- package/docs/examples/users/update-name.md +4 -4
- package/docs/examples/users/update-password.md +4 -4
- package/docs/examples/users/update-phone-verification.md +4 -4
- package/docs/examples/users/update-phone.md +4 -4
- package/docs/examples/users/update-prefs.md +4 -4
- package/docs/examples/users/update-status.md +4 -4
- package/docs/examples/users/update-target.md +7 -7
- package/docs/examples/vcs/create-repository-detection.md +6 -6
- package/docs/examples/vcs/create-repository.md +5 -5
- package/docs/examples/vcs/delete-installation.md +3 -3
- package/docs/examples/vcs/get-installation.md +3 -3
- package/docs/examples/vcs/get-repository-contents.md +6 -5
- package/docs/examples/vcs/get-repository.md +4 -4
- package/docs/examples/vcs/list-installations.md +5 -4
- package/docs/examples/vcs/list-repositories.md +6 -5
- package/docs/examples/vcs/list-repository-branches.md +4 -4
- package/docs/examples/vcs/update-external-deployments.md +5 -5
- package/package.json +4 -4
- package/src/client.ts +42 -7
- package/src/enums/api-service.ts +1 -0
- package/src/enums/attribute-status.ts +7 -0
- package/src/enums/billing-plan-group.ts +5 -0
- package/src/enums/build-runtime.ts +2 -0
- package/src/enums/column-status.ts +7 -0
- package/src/enums/credit-card.ts +1 -1
- package/src/enums/database-type.ts +4 -0
- package/src/enums/deployment-status.ts +7 -0
- package/src/enums/execution-method.ts +1 -0
- package/src/enums/execution-status.ts +7 -0
- package/src/enums/execution-trigger.ts +5 -0
- package/src/enums/framework.ts +1 -0
- package/src/enums/health-antivirus-status.ts +5 -0
- package/src/enums/health-check-status.ts +4 -0
- package/src/enums/index-status.ts +7 -0
- package/src/enums/index-type.ts +1 -0
- package/src/enums/message-status.ts +7 -0
- package/src/enums/o-auth-provider.ts +3 -0
- package/src/enums/platform.ts +4 -0
- package/src/enums/proxy-rule-deployment-resource-type.ts +4 -0
- package/src/enums/proxy-rule-status.ts +6 -0
- package/src/enums/region.ts +3 -0
- package/src/enums/runtime.ts +2 -0
- package/src/enums/status.ts +4 -0
- package/src/enums/template-reference-type.ts +5 -0
- package/src/enums/theme.ts +4 -0
- package/src/enums/timezone.ts +421 -0
- package/src/enums/{user-usage-range.ts → usage-range.ts} +1 -1
- package/src/enums/{v-c-s-deployment-type.ts → vcs-reference-type.ts} +1 -1
- package/src/index.ts +27 -11
- package/src/models.ts +1925 -239
- package/src/operator.ts +308 -0
- package/src/query.ts +246 -2
- package/src/services/account.ts +2278 -235
- package/src/services/assistant.ts +29 -3
- package/src/services/avatars.ts +511 -52
- package/src/services/backups.ts +400 -42
- package/src/services/console.ts +499 -19
- package/src/services/databases.ts +3584 -430
- package/src/services/domains.ts +1795 -266
- package/src/services/functions.ts +1197 -155
- package/src/services/graphql.ts +56 -4
- package/src/services/health.ts +586 -42
- package/src/services/locale.ts +18 -2
- package/src/services/messaging.ts +3418 -386
- package/src/services/migrations.ts +653 -65
- package/src/services/organizations.ts +1411 -126
- package/src/services/project.ts +173 -17
- package/src/services/projects.ts +2808 -282
- package/src/services/proxy.ts +272 -26
- package/src/services/realtime.ts +437 -0
- package/src/services/sites.ts +1129 -143
- package/src/services/storage.ts +672 -89
- package/src/services/tables-db.ts +5439 -0
- package/src/services/teams.ts +535 -65
- package/src/services/tokens.ts +171 -16
- package/src/services/users.ts +1916 -182
- package/src/services/vcs.ts +373 -41
- package/types/client.d.ts +14 -5
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/attribute-status.d.ts +7 -0
- package/types/enums/billing-plan-group.d.ts +5 -0
- package/types/enums/build-runtime.d.ts +3 -1
- package/types/enums/column-status.d.ts +7 -0
- package/types/enums/credit-card.d.ts +1 -1
- package/types/enums/database-type.d.ts +4 -0
- package/types/enums/deployment-status.d.ts +7 -0
- package/types/enums/execution-method.d.ts +2 -1
- package/types/enums/execution-status.d.ts +7 -0
- package/types/enums/execution-trigger.d.ts +5 -0
- package/types/enums/framework.d.ts +1 -0
- package/types/enums/health-antivirus-status.d.ts +5 -0
- package/types/enums/health-check-status.d.ts +4 -0
- package/types/enums/index-status.d.ts +7 -0
- package/types/enums/index-type.d.ts +2 -1
- package/types/enums/message-status.d.ts +7 -0
- package/types/enums/o-auth-provider.d.ts +4 -1
- package/types/enums/platform.d.ts +4 -0
- package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
- package/types/enums/proxy-rule-status.d.ts +6 -0
- package/types/enums/region.d.ts +4 -1
- package/types/enums/runtime.d.ts +3 -1
- package/types/enums/status.d.ts +4 -0
- package/types/enums/template-reference-type.d.ts +5 -0
- package/types/enums/theme.d.ts +4 -0
- package/types/enums/timezone.d.ts +421 -0
- package/types/enums/{site-usage-range.d.ts → usage-range.d.ts} +1 -1
- package/types/enums/{v-c-s-deployment-type.d.ts → vcs-reference-type.d.ts} +1 -1
- package/types/index.d.ts +27 -11
- package/types/models.d.ts +1877 -422
- package/types/operator.d.ts +180 -0
- package/types/query.d.ts +198 -2
- package/types/services/account.d.ts +1020 -158
- package/types/services/assistant.d.ts +13 -2
- package/types/services/avatars.d.ts +263 -45
- package/types/services/backups.d.ts +190 -30
- package/types/services/console.d.ts +202 -15
- package/types/services/databases.d.ts +1756 -299
- package/types/services/domains.d.ts +971 -219
- package/types/services/functions.d.ts +622 -131
- package/types/services/graphql.d.ts +24 -2
- package/types/services/health.d.ts +246 -24
- package/types/services/locale.d.ts +2 -2
- package/types/services/messaging.d.ts +1670 -281
- package/types/services/migrations.d.ts +319 -53
- package/types/services/organizations.d.ts +664 -109
- package/types/services/project.d.ts +81 -12
- package/types/services/projects.d.ts +1308 -202
- package/types/services/proxy.d.ts +128 -19
- package/types/services/realtime.d.ts +118 -0
- package/types/services/sites.d.ts +580 -119
- package/types/services/storage.d.ts +362 -81
- package/types/services/tables-db.d.ts +2040 -0
- package/types/services/teams.d.ts +277 -61
- package/types/services/tokens.d.ts +80 -12
- package/types/services/users.d.ts +906 -149
- package/types/services/vcs.d.ts +182 -34
- package/docs/examples/domains/create-record-m-x.md +0 -18
- package/docs/examples/domains/create-record-s-r-v.md +0 -20
- package/docs/examples/domains/create-record-t-x-t.md +0 -17
- package/docs/examples/domains/update-record-a-a-a-a.md +0 -18
- package/docs/examples/domains/update-record-c-a-a.md +0 -18
- package/docs/examples/domains/update-record-c-n-a-m-e.md +0 -18
- package/docs/examples/domains/update-record-h-t-t-p-s.md +0 -18
- package/docs/examples/domains/update-record-m-x.md +0 -19
- package/docs/examples/domains/update-record-n-s.md +0 -18
- package/docs/examples/domains/update-record-s-r-v.md +0 -21
- package/docs/examples/domains/update-record-t-x-t.md +0 -18
- package/src/enums/billing-plan.ts +0 -5
- package/src/enums/database-usage-range.ts +0 -5
- package/src/enums/function-usage-range.ts +0 -5
- package/src/enums/site-usage-range.ts +0 -5
- package/src/enums/storage-usage-range.ts +0 -5
- package/types/enums/billing-plan.d.ts +0 -5
- package/types/enums/database-usage-range.d.ts +0 -5
- package/types/enums/function-usage-range.d.ts +0 -5
- package/types/enums/storage-usage-range.d.ts +0 -5
- package/types/enums/user-usage-range.d.ts +0 -5
- /package/docs/examples/health/{get-d-b.md → get-db.md} +0 -0
- /package/docs/examples/locale/{list-countries-e-u.md → list-countries-eu.md} +0 -0
- /package/src/enums/{s-m-t-p-secure.ts → smtp-secure.ts} +0 -0
- /package/src/enums/{v-c-s-detection-type.ts → vcs-detection-type.ts} +0 -0
- /package/types/enums/{s-m-t-p-secure.d.ts → smtp-secure.d.ts} +0 -0
- /package/types/enums/{v-c-s-detection-type.d.ts → vcs-detection-type.d.ts} +0 -0
package/src/services/health.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
|
+
|
|
4
5
|
import { Name } from '../enums/name';
|
|
5
6
|
|
|
6
7
|
export class Health {
|
|
@@ -17,6 +18,7 @@ export class Health {
|
|
|
17
18
|
* @returns {Promise<Models.HealthStatus>}
|
|
18
19
|
*/
|
|
19
20
|
get(): Promise<Models.HealthStatus> {
|
|
21
|
+
|
|
20
22
|
const apiPath = '/health';
|
|
21
23
|
const payload: Payload = {};
|
|
22
24
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -31,6 +33,7 @@ export class Health {
|
|
|
31
33
|
payload
|
|
32
34
|
);
|
|
33
35
|
}
|
|
36
|
+
|
|
34
37
|
/**
|
|
35
38
|
* Check the Appwrite Antivirus server is up and connection is successful.
|
|
36
39
|
*
|
|
@@ -38,6 +41,7 @@ export class Health {
|
|
|
38
41
|
* @returns {Promise<Models.HealthAntivirus>}
|
|
39
42
|
*/
|
|
40
43
|
getAntivirus(): Promise<Models.HealthAntivirus> {
|
|
44
|
+
|
|
41
45
|
const apiPath = '/health/anti-virus';
|
|
42
46
|
const payload: Payload = {};
|
|
43
47
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -52,6 +56,7 @@ export class Health {
|
|
|
52
56
|
payload
|
|
53
57
|
);
|
|
54
58
|
}
|
|
59
|
+
|
|
55
60
|
/**
|
|
56
61
|
* Check the Appwrite in-memory cache servers are up and connection is successful.
|
|
57
62
|
*
|
|
@@ -59,6 +64,7 @@ export class Health {
|
|
|
59
64
|
* @returns {Promise<Models.HealthStatus>}
|
|
60
65
|
*/
|
|
61
66
|
getCache(): Promise<Models.HealthStatus> {
|
|
67
|
+
|
|
62
68
|
const apiPath = '/health/cache';
|
|
63
69
|
const payload: Payload = {};
|
|
64
70
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -73,14 +79,40 @@ export class Health {
|
|
|
73
79
|
payload
|
|
74
80
|
);
|
|
75
81
|
}
|
|
82
|
+
|
|
76
83
|
/**
|
|
77
84
|
* Get the SSL certificate for a domain
|
|
78
85
|
*
|
|
79
|
-
* @param {string} domain
|
|
86
|
+
* @param {string} params.domain - string
|
|
80
87
|
* @throws {AppwriteException}
|
|
81
88
|
* @returns {Promise<Models.HealthCertificate>}
|
|
82
89
|
*/
|
|
83
|
-
getCertificate(domain?: string): Promise<Models.HealthCertificate
|
|
90
|
+
getCertificate(params?: { domain?: string }): Promise<Models.HealthCertificate>;
|
|
91
|
+
/**
|
|
92
|
+
* Get the SSL certificate for a domain
|
|
93
|
+
*
|
|
94
|
+
* @param {string} domain - string
|
|
95
|
+
* @throws {AppwriteException}
|
|
96
|
+
* @returns {Promise<Models.HealthCertificate>}
|
|
97
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
98
|
+
*/
|
|
99
|
+
getCertificate(domain?: string): Promise<Models.HealthCertificate>;
|
|
100
|
+
getCertificate(
|
|
101
|
+
paramsOrFirst?: { domain?: string } | string
|
|
102
|
+
): Promise<Models.HealthCertificate> {
|
|
103
|
+
let params: { domain?: string };
|
|
104
|
+
|
|
105
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
106
|
+
params = (paramsOrFirst || {}) as { domain?: string };
|
|
107
|
+
} else {
|
|
108
|
+
params = {
|
|
109
|
+
domain: paramsOrFirst as string
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
const domain = params.domain;
|
|
114
|
+
|
|
115
|
+
|
|
84
116
|
const apiPath = '/health/certificate';
|
|
85
117
|
const payload: Payload = {};
|
|
86
118
|
if (typeof domain !== 'undefined') {
|
|
@@ -98,6 +130,7 @@ export class Health {
|
|
|
98
130
|
payload
|
|
99
131
|
);
|
|
100
132
|
}
|
|
133
|
+
|
|
101
134
|
/**
|
|
102
135
|
* Check the Appwrite database servers are up and connection is successful.
|
|
103
136
|
*
|
|
@@ -105,6 +138,7 @@ export class Health {
|
|
|
105
138
|
* @returns {Promise<Models.HealthStatus>}
|
|
106
139
|
*/
|
|
107
140
|
getDB(): Promise<Models.HealthStatus> {
|
|
141
|
+
|
|
108
142
|
const apiPath = '/health/db';
|
|
109
143
|
const payload: Payload = {};
|
|
110
144
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -119,6 +153,7 @@ export class Health {
|
|
|
119
153
|
payload
|
|
120
154
|
);
|
|
121
155
|
}
|
|
156
|
+
|
|
122
157
|
/**
|
|
123
158
|
* Check the Appwrite pub-sub servers are up and connection is successful.
|
|
124
159
|
*
|
|
@@ -126,6 +161,7 @@ export class Health {
|
|
|
126
161
|
* @returns {Promise<Models.HealthStatus>}
|
|
127
162
|
*/
|
|
128
163
|
getPubSub(): Promise<Models.HealthStatus> {
|
|
164
|
+
|
|
129
165
|
const apiPath = '/health/pubsub';
|
|
130
166
|
const payload: Payload = {};
|
|
131
167
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -140,14 +176,40 @@ export class Health {
|
|
|
140
176
|
payload
|
|
141
177
|
);
|
|
142
178
|
}
|
|
179
|
+
|
|
143
180
|
/**
|
|
144
|
-
* Get billing project aggregation queue
|
|
181
|
+
* Get billing project aggregation queue.
|
|
145
182
|
*
|
|
146
|
-
* @param {number} threshold
|
|
183
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
147
184
|
* @throws {AppwriteException}
|
|
148
185
|
* @returns {Promise<Models.HealthQueue>}
|
|
149
186
|
*/
|
|
150
|
-
getQueueBillingProjectAggregation(threshold?: number): Promise<Models.HealthQueue
|
|
187
|
+
getQueueBillingProjectAggregation(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
188
|
+
/**
|
|
189
|
+
* Get billing project aggregation queue.
|
|
190
|
+
*
|
|
191
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
192
|
+
* @throws {AppwriteException}
|
|
193
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
194
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
195
|
+
*/
|
|
196
|
+
getQueueBillingProjectAggregation(threshold?: number): Promise<Models.HealthQueue>;
|
|
197
|
+
getQueueBillingProjectAggregation(
|
|
198
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
199
|
+
): Promise<Models.HealthQueue> {
|
|
200
|
+
let params: { threshold?: number };
|
|
201
|
+
|
|
202
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
203
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
204
|
+
} else {
|
|
205
|
+
params = {
|
|
206
|
+
threshold: paramsOrFirst as number
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
const threshold = params.threshold;
|
|
211
|
+
|
|
212
|
+
|
|
151
213
|
const apiPath = '/health/queue/billing-project-aggregation';
|
|
152
214
|
const payload: Payload = {};
|
|
153
215
|
if (typeof threshold !== 'undefined') {
|
|
@@ -165,14 +227,40 @@ export class Health {
|
|
|
165
227
|
payload
|
|
166
228
|
);
|
|
167
229
|
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Get billing team aggregation queue.
|
|
233
|
+
*
|
|
234
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
235
|
+
* @throws {AppwriteException}
|
|
236
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
237
|
+
*/
|
|
238
|
+
getQueueBillingTeamAggregation(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
168
239
|
/**
|
|
169
|
-
* Get billing team aggregation queue
|
|
240
|
+
* Get billing team aggregation queue.
|
|
170
241
|
*
|
|
171
|
-
* @param {number} threshold
|
|
242
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
172
243
|
* @throws {AppwriteException}
|
|
173
244
|
* @returns {Promise<Models.HealthQueue>}
|
|
245
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
174
246
|
*/
|
|
175
|
-
getQueueBillingTeamAggregation(threshold?: number): Promise<Models.HealthQueue
|
|
247
|
+
getQueueBillingTeamAggregation(threshold?: number): Promise<Models.HealthQueue>;
|
|
248
|
+
getQueueBillingTeamAggregation(
|
|
249
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
250
|
+
): Promise<Models.HealthQueue> {
|
|
251
|
+
let params: { threshold?: number };
|
|
252
|
+
|
|
253
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
254
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
255
|
+
} else {
|
|
256
|
+
params = {
|
|
257
|
+
threshold: paramsOrFirst as number
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
const threshold = params.threshold;
|
|
262
|
+
|
|
263
|
+
|
|
176
264
|
const apiPath = '/health/queue/billing-team-aggregation';
|
|
177
265
|
const payload: Payload = {};
|
|
178
266
|
if (typeof threshold !== 'undefined') {
|
|
@@ -190,14 +278,40 @@ export class Health {
|
|
|
190
278
|
payload
|
|
191
279
|
);
|
|
192
280
|
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
|
|
284
|
+
*
|
|
285
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
286
|
+
* @throws {AppwriteException}
|
|
287
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
288
|
+
*/
|
|
289
|
+
getQueueBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
193
290
|
/**
|
|
194
291
|
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
|
|
195
292
|
*
|
|
196
|
-
* @param {number} threshold
|
|
293
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
197
294
|
* @throws {AppwriteException}
|
|
198
295
|
* @returns {Promise<Models.HealthQueue>}
|
|
296
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
199
297
|
*/
|
|
200
|
-
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue
|
|
298
|
+
getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
299
|
+
getQueueBuilds(
|
|
300
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
301
|
+
): Promise<Models.HealthQueue> {
|
|
302
|
+
let params: { threshold?: number };
|
|
303
|
+
|
|
304
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
305
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
306
|
+
} else {
|
|
307
|
+
params = {
|
|
308
|
+
threshold: paramsOrFirst as number
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
const threshold = params.threshold;
|
|
313
|
+
|
|
314
|
+
|
|
201
315
|
const apiPath = '/health/queue/builds';
|
|
202
316
|
const payload: Payload = {};
|
|
203
317
|
if (typeof threshold !== 'undefined') {
|
|
@@ -215,14 +329,40 @@ export class Health {
|
|
|
215
329
|
payload
|
|
216
330
|
);
|
|
217
331
|
}
|
|
332
|
+
|
|
218
333
|
/**
|
|
219
334
|
* Get the priority builds queue size.
|
|
220
335
|
*
|
|
221
|
-
* @param {number} threshold
|
|
336
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
|
|
222
337
|
* @throws {AppwriteException}
|
|
223
338
|
* @returns {Promise<Models.HealthQueue>}
|
|
224
339
|
*/
|
|
225
|
-
getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue
|
|
340
|
+
getQueuePriorityBuilds(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
341
|
+
/**
|
|
342
|
+
* Get the priority builds queue size.
|
|
343
|
+
*
|
|
344
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
|
|
345
|
+
* @throws {AppwriteException}
|
|
346
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
347
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
348
|
+
*/
|
|
349
|
+
getQueuePriorityBuilds(threshold?: number): Promise<Models.HealthQueue>;
|
|
350
|
+
getQueuePriorityBuilds(
|
|
351
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
352
|
+
): Promise<Models.HealthQueue> {
|
|
353
|
+
let params: { threshold?: number };
|
|
354
|
+
|
|
355
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
356
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
357
|
+
} else {
|
|
358
|
+
params = {
|
|
359
|
+
threshold: paramsOrFirst as number
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
const threshold = params.threshold;
|
|
364
|
+
|
|
365
|
+
|
|
226
366
|
const apiPath = '/health/queue/builds-priority';
|
|
227
367
|
const payload: Payload = {};
|
|
228
368
|
if (typeof threshold !== 'undefined') {
|
|
@@ -240,14 +380,40 @@ export class Health {
|
|
|
240
380
|
payload
|
|
241
381
|
);
|
|
242
382
|
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
|
|
386
|
+
*
|
|
387
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
388
|
+
* @throws {AppwriteException}
|
|
389
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
390
|
+
*/
|
|
391
|
+
getQueueCertificates(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
243
392
|
/**
|
|
244
393
|
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
|
|
245
394
|
*
|
|
246
|
-
* @param {number} threshold
|
|
395
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
247
396
|
* @throws {AppwriteException}
|
|
248
397
|
* @returns {Promise<Models.HealthQueue>}
|
|
398
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
249
399
|
*/
|
|
250
|
-
getQueueCertificates(threshold?: number): Promise<Models.HealthQueue
|
|
400
|
+
getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
|
|
401
|
+
getQueueCertificates(
|
|
402
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
403
|
+
): Promise<Models.HealthQueue> {
|
|
404
|
+
let params: { threshold?: number };
|
|
405
|
+
|
|
406
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
407
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
408
|
+
} else {
|
|
409
|
+
params = {
|
|
410
|
+
threshold: paramsOrFirst as number
|
|
411
|
+
};
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
const threshold = params.threshold;
|
|
415
|
+
|
|
416
|
+
|
|
251
417
|
const apiPath = '/health/queue/certificates';
|
|
252
418
|
const payload: Payload = {};
|
|
253
419
|
if (typeof threshold !== 'undefined') {
|
|
@@ -265,15 +431,45 @@ export class Health {
|
|
|
265
431
|
payload
|
|
266
432
|
);
|
|
267
433
|
}
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
|
|
437
|
+
*
|
|
438
|
+
* @param {string} params.name - Queue name for which to check the queue size
|
|
439
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
440
|
+
* @throws {AppwriteException}
|
|
441
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
442
|
+
*/
|
|
443
|
+
getQueueDatabases(params?: { name?: string, threshold?: number }): Promise<Models.HealthQueue>;
|
|
268
444
|
/**
|
|
269
445
|
* Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
|
|
270
446
|
*
|
|
271
|
-
* @param {string} name
|
|
272
|
-
* @param {number} threshold
|
|
447
|
+
* @param {string} name - Queue name for which to check the queue size
|
|
448
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
273
449
|
* @throws {AppwriteException}
|
|
274
450
|
* @returns {Promise<Models.HealthQueue>}
|
|
451
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
275
452
|
*/
|
|
276
|
-
getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue
|
|
453
|
+
getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
|
|
454
|
+
getQueueDatabases(
|
|
455
|
+
paramsOrFirst?: { name?: string, threshold?: number } | string,
|
|
456
|
+
...rest: [(number)?]
|
|
457
|
+
): Promise<Models.HealthQueue> {
|
|
458
|
+
let params: { name?: string, threshold?: number };
|
|
459
|
+
|
|
460
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
461
|
+
params = (paramsOrFirst || {}) as { name?: string, threshold?: number };
|
|
462
|
+
} else {
|
|
463
|
+
params = {
|
|
464
|
+
name: paramsOrFirst as string,
|
|
465
|
+
threshold: rest[0] as number
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
const name = params.name;
|
|
470
|
+
const threshold = params.threshold;
|
|
471
|
+
|
|
472
|
+
|
|
277
473
|
const apiPath = '/health/queue/databases';
|
|
278
474
|
const payload: Payload = {};
|
|
279
475
|
if (typeof name !== 'undefined') {
|
|
@@ -294,14 +490,40 @@ export class Health {
|
|
|
294
490
|
payload
|
|
295
491
|
);
|
|
296
492
|
}
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
|
|
496
|
+
*
|
|
497
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
498
|
+
* @throws {AppwriteException}
|
|
499
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
500
|
+
*/
|
|
501
|
+
getQueueDeletes(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
297
502
|
/**
|
|
298
503
|
* Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
|
|
299
504
|
*
|
|
300
|
-
* @param {number} threshold
|
|
505
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
301
506
|
* @throws {AppwriteException}
|
|
302
507
|
* @returns {Promise<Models.HealthQueue>}
|
|
508
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
303
509
|
*/
|
|
304
|
-
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue
|
|
510
|
+
getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
|
|
511
|
+
getQueueDeletes(
|
|
512
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
513
|
+
): Promise<Models.HealthQueue> {
|
|
514
|
+
let params: { threshold?: number };
|
|
515
|
+
|
|
516
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
517
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
518
|
+
} else {
|
|
519
|
+
params = {
|
|
520
|
+
threshold: paramsOrFirst as number
|
|
521
|
+
};
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
const threshold = params.threshold;
|
|
525
|
+
|
|
526
|
+
|
|
305
527
|
const apiPath = '/health/queue/deletes';
|
|
306
528
|
const payload: Payload = {};
|
|
307
529
|
if (typeof threshold !== 'undefined') {
|
|
@@ -319,19 +541,50 @@ export class Health {
|
|
|
319
541
|
payload
|
|
320
542
|
);
|
|
321
543
|
}
|
|
544
|
+
|
|
322
545
|
/**
|
|
323
546
|
* Returns the amount of failed jobs in a given queue.
|
|
324
|
-
|
|
547
|
+
*
|
|
548
|
+
*
|
|
549
|
+
* @param {Name} params.name - The name of the queue
|
|
550
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
551
|
+
* @throws {AppwriteException}
|
|
552
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
553
|
+
*/
|
|
554
|
+
getFailedJobs(params: { name: Name, threshold?: number }): Promise<Models.HealthQueue>;
|
|
555
|
+
/**
|
|
556
|
+
* Returns the amount of failed jobs in a given queue.
|
|
557
|
+
*
|
|
325
558
|
*
|
|
326
|
-
* @param {Name} name
|
|
327
|
-
* @param {number} threshold
|
|
559
|
+
* @param {Name} name - The name of the queue
|
|
560
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
328
561
|
* @throws {AppwriteException}
|
|
329
562
|
* @returns {Promise<Models.HealthQueue>}
|
|
563
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
330
564
|
*/
|
|
331
|
-
getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue
|
|
565
|
+
getFailedJobs(name: Name, threshold?: number): Promise<Models.HealthQueue>;
|
|
566
|
+
getFailedJobs(
|
|
567
|
+
paramsOrFirst: { name: Name, threshold?: number } | Name,
|
|
568
|
+
...rest: [(number)?]
|
|
569
|
+
): Promise<Models.HealthQueue> {
|
|
570
|
+
let params: { name: Name, threshold?: number };
|
|
571
|
+
|
|
572
|
+
if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst) && 'name' in paramsOrFirst)) {
|
|
573
|
+
params = (paramsOrFirst || {}) as { name: Name, threshold?: number };
|
|
574
|
+
} else {
|
|
575
|
+
params = {
|
|
576
|
+
name: paramsOrFirst as Name,
|
|
577
|
+
threshold: rest[0] as number
|
|
578
|
+
};
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
const name = params.name;
|
|
582
|
+
const threshold = params.threshold;
|
|
583
|
+
|
|
332
584
|
if (typeof name === 'undefined') {
|
|
333
585
|
throw new AppwriteException('Missing required parameter: "name"');
|
|
334
586
|
}
|
|
587
|
+
|
|
335
588
|
const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
|
|
336
589
|
const payload: Payload = {};
|
|
337
590
|
if (typeof threshold !== 'undefined') {
|
|
@@ -349,14 +602,40 @@ export class Health {
|
|
|
349
602
|
payload
|
|
350
603
|
);
|
|
351
604
|
}
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
|
|
608
|
+
*
|
|
609
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
610
|
+
* @throws {AppwriteException}
|
|
611
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
612
|
+
*/
|
|
613
|
+
getQueueFunctions(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
352
614
|
/**
|
|
353
615
|
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
|
|
354
616
|
*
|
|
355
|
-
* @param {number} threshold
|
|
617
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
356
618
|
* @throws {AppwriteException}
|
|
357
619
|
* @returns {Promise<Models.HealthQueue>}
|
|
620
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
358
621
|
*/
|
|
359
|
-
getQueueFunctions(threshold?: number): Promise<Models.HealthQueue
|
|
622
|
+
getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
|
|
623
|
+
getQueueFunctions(
|
|
624
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
625
|
+
): Promise<Models.HealthQueue> {
|
|
626
|
+
let params: { threshold?: number };
|
|
627
|
+
|
|
628
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
629
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
630
|
+
} else {
|
|
631
|
+
params = {
|
|
632
|
+
threshold: paramsOrFirst as number
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
const threshold = params.threshold;
|
|
637
|
+
|
|
638
|
+
|
|
360
639
|
const apiPath = '/health/queue/functions';
|
|
361
640
|
const payload: Payload = {};
|
|
362
641
|
if (typeof threshold !== 'undefined') {
|
|
@@ -374,14 +653,40 @@ export class Health {
|
|
|
374
653
|
payload
|
|
375
654
|
);
|
|
376
655
|
}
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
|
|
659
|
+
*
|
|
660
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
661
|
+
* @throws {AppwriteException}
|
|
662
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
663
|
+
*/
|
|
664
|
+
getQueueLogs(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
377
665
|
/**
|
|
378
666
|
* Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
|
|
379
667
|
*
|
|
380
|
-
* @param {number} threshold
|
|
668
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
381
669
|
* @throws {AppwriteException}
|
|
382
670
|
* @returns {Promise<Models.HealthQueue>}
|
|
671
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
383
672
|
*/
|
|
384
|
-
getQueueLogs(threshold?: number): Promise<Models.HealthQueue
|
|
673
|
+
getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
|
|
674
|
+
getQueueLogs(
|
|
675
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
676
|
+
): Promise<Models.HealthQueue> {
|
|
677
|
+
let params: { threshold?: number };
|
|
678
|
+
|
|
679
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
680
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
681
|
+
} else {
|
|
682
|
+
params = {
|
|
683
|
+
threshold: paramsOrFirst as number
|
|
684
|
+
};
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
const threshold = params.threshold;
|
|
688
|
+
|
|
689
|
+
|
|
385
690
|
const apiPath = '/health/queue/logs';
|
|
386
691
|
const payload: Payload = {};
|
|
387
692
|
if (typeof threshold !== 'undefined') {
|
|
@@ -399,14 +704,40 @@ export class Health {
|
|
|
399
704
|
payload
|
|
400
705
|
);
|
|
401
706
|
}
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
|
|
710
|
+
*
|
|
711
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
712
|
+
* @throws {AppwriteException}
|
|
713
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
714
|
+
*/
|
|
715
|
+
getQueueMails(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
402
716
|
/**
|
|
403
717
|
* Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
|
|
404
718
|
*
|
|
405
|
-
* @param {number} threshold
|
|
719
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
406
720
|
* @throws {AppwriteException}
|
|
407
721
|
* @returns {Promise<Models.HealthQueue>}
|
|
722
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
408
723
|
*/
|
|
409
|
-
getQueueMails(threshold?: number): Promise<Models.HealthQueue
|
|
724
|
+
getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
|
|
725
|
+
getQueueMails(
|
|
726
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
727
|
+
): Promise<Models.HealthQueue> {
|
|
728
|
+
let params: { threshold?: number };
|
|
729
|
+
|
|
730
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
731
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
732
|
+
} else {
|
|
733
|
+
params = {
|
|
734
|
+
threshold: paramsOrFirst as number
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
const threshold = params.threshold;
|
|
739
|
+
|
|
740
|
+
|
|
410
741
|
const apiPath = '/health/queue/mails';
|
|
411
742
|
const payload: Payload = {};
|
|
412
743
|
if (typeof threshold !== 'undefined') {
|
|
@@ -424,14 +755,40 @@ export class Health {
|
|
|
424
755
|
payload
|
|
425
756
|
);
|
|
426
757
|
}
|
|
758
|
+
|
|
759
|
+
/**
|
|
760
|
+
* Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
|
|
761
|
+
*
|
|
762
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
763
|
+
* @throws {AppwriteException}
|
|
764
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
765
|
+
*/
|
|
766
|
+
getQueueMessaging(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
427
767
|
/**
|
|
428
768
|
* Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
|
|
429
769
|
*
|
|
430
|
-
* @param {number} threshold
|
|
770
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
431
771
|
* @throws {AppwriteException}
|
|
432
772
|
* @returns {Promise<Models.HealthQueue>}
|
|
773
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
433
774
|
*/
|
|
434
|
-
getQueueMessaging(threshold?: number): Promise<Models.HealthQueue
|
|
775
|
+
getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
|
|
776
|
+
getQueueMessaging(
|
|
777
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
778
|
+
): Promise<Models.HealthQueue> {
|
|
779
|
+
let params: { threshold?: number };
|
|
780
|
+
|
|
781
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
782
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
783
|
+
} else {
|
|
784
|
+
params = {
|
|
785
|
+
threshold: paramsOrFirst as number
|
|
786
|
+
};
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
const threshold = params.threshold;
|
|
790
|
+
|
|
791
|
+
|
|
435
792
|
const apiPath = '/health/queue/messaging';
|
|
436
793
|
const payload: Payload = {};
|
|
437
794
|
if (typeof threshold !== 'undefined') {
|
|
@@ -449,14 +806,40 @@ export class Health {
|
|
|
449
806
|
payload
|
|
450
807
|
);
|
|
451
808
|
}
|
|
809
|
+
|
|
452
810
|
/**
|
|
453
811
|
* Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
|
|
454
812
|
*
|
|
455
|
-
* @param {number} threshold
|
|
813
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
456
814
|
* @throws {AppwriteException}
|
|
457
815
|
* @returns {Promise<Models.HealthQueue>}
|
|
458
816
|
*/
|
|
459
|
-
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue
|
|
817
|
+
getQueueMigrations(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
818
|
+
/**
|
|
819
|
+
* Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
|
|
820
|
+
*
|
|
821
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
822
|
+
* @throws {AppwriteException}
|
|
823
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
824
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
825
|
+
*/
|
|
826
|
+
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
827
|
+
getQueueMigrations(
|
|
828
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
829
|
+
): Promise<Models.HealthQueue> {
|
|
830
|
+
let params: { threshold?: number };
|
|
831
|
+
|
|
832
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
833
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
834
|
+
} else {
|
|
835
|
+
params = {
|
|
836
|
+
threshold: paramsOrFirst as number
|
|
837
|
+
};
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
const threshold = params.threshold;
|
|
841
|
+
|
|
842
|
+
|
|
460
843
|
const apiPath = '/health/queue/migrations';
|
|
461
844
|
const payload: Payload = {};
|
|
462
845
|
if (typeof threshold !== 'undefined') {
|
|
@@ -474,14 +857,40 @@ export class Health {
|
|
|
474
857
|
payload
|
|
475
858
|
);
|
|
476
859
|
}
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Get region manager queue.
|
|
863
|
+
*
|
|
864
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
|
|
865
|
+
* @throws {AppwriteException}
|
|
866
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
867
|
+
*/
|
|
868
|
+
getQueueRegionManager(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
477
869
|
/**
|
|
478
|
-
* Get region manager queue
|
|
870
|
+
* Get region manager queue.
|
|
479
871
|
*
|
|
480
|
-
* @param {number} threshold
|
|
872
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
|
|
481
873
|
* @throws {AppwriteException}
|
|
482
874
|
* @returns {Promise<Models.HealthQueue>}
|
|
875
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
483
876
|
*/
|
|
484
|
-
getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue
|
|
877
|
+
getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue>;
|
|
878
|
+
getQueueRegionManager(
|
|
879
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
880
|
+
): Promise<Models.HealthQueue> {
|
|
881
|
+
let params: { threshold?: number };
|
|
882
|
+
|
|
883
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
884
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
885
|
+
} else {
|
|
886
|
+
params = {
|
|
887
|
+
threshold: paramsOrFirst as number
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
const threshold = params.threshold;
|
|
892
|
+
|
|
893
|
+
|
|
485
894
|
const apiPath = '/health/queue/region-manager';
|
|
486
895
|
const payload: Payload = {};
|
|
487
896
|
if (typeof threshold !== 'undefined') {
|
|
@@ -499,14 +908,40 @@ export class Health {
|
|
|
499
908
|
payload
|
|
500
909
|
);
|
|
501
910
|
}
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
914
|
+
*
|
|
915
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
916
|
+
* @throws {AppwriteException}
|
|
917
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
918
|
+
*/
|
|
919
|
+
getQueueStatsResources(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
502
920
|
/**
|
|
503
921
|
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
504
922
|
*
|
|
505
|
-
* @param {number} threshold
|
|
923
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
506
924
|
* @throws {AppwriteException}
|
|
507
925
|
* @returns {Promise<Models.HealthQueue>}
|
|
926
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
508
927
|
*/
|
|
509
|
-
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue
|
|
928
|
+
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;
|
|
929
|
+
getQueueStatsResources(
|
|
930
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
931
|
+
): Promise<Models.HealthQueue> {
|
|
932
|
+
let params: { threshold?: number };
|
|
933
|
+
|
|
934
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
935
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
936
|
+
} else {
|
|
937
|
+
params = {
|
|
938
|
+
threshold: paramsOrFirst as number
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
const threshold = params.threshold;
|
|
943
|
+
|
|
944
|
+
|
|
510
945
|
const apiPath = '/health/queue/stats-resources';
|
|
511
946
|
const payload: Payload = {};
|
|
512
947
|
if (typeof threshold !== 'undefined') {
|
|
@@ -524,14 +959,40 @@ export class Health {
|
|
|
524
959
|
payload
|
|
525
960
|
);
|
|
526
961
|
}
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
965
|
+
*
|
|
966
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
967
|
+
* @throws {AppwriteException}
|
|
968
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
969
|
+
*/
|
|
970
|
+
getQueueUsage(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
527
971
|
/**
|
|
528
972
|
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
529
973
|
*
|
|
530
|
-
* @param {number} threshold
|
|
974
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
531
975
|
* @throws {AppwriteException}
|
|
532
976
|
* @returns {Promise<Models.HealthQueue>}
|
|
977
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
533
978
|
*/
|
|
534
|
-
getQueueUsage(threshold?: number): Promise<Models.HealthQueue
|
|
979
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
|
980
|
+
getQueueUsage(
|
|
981
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
982
|
+
): Promise<Models.HealthQueue> {
|
|
983
|
+
let params: { threshold?: number };
|
|
984
|
+
|
|
985
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
986
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
987
|
+
} else {
|
|
988
|
+
params = {
|
|
989
|
+
threshold: paramsOrFirst as number
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
const threshold = params.threshold;
|
|
994
|
+
|
|
995
|
+
|
|
535
996
|
const apiPath = '/health/queue/stats-usage';
|
|
536
997
|
const payload: Payload = {};
|
|
537
998
|
if (typeof threshold !== 'undefined') {
|
|
@@ -549,14 +1010,91 @@ export class Health {
|
|
|
549
1010
|
payload
|
|
550
1011
|
);
|
|
551
1012
|
}
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* Get threats queue.
|
|
1016
|
+
*
|
|
1017
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
|
|
1018
|
+
* @throws {AppwriteException}
|
|
1019
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
1020
|
+
*/
|
|
1021
|
+
getQueueThreats(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
1022
|
+
/**
|
|
1023
|
+
* Get threats queue.
|
|
1024
|
+
*
|
|
1025
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
|
|
1026
|
+
* @throws {AppwriteException}
|
|
1027
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
1028
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1029
|
+
*/
|
|
1030
|
+
getQueueThreats(threshold?: number): Promise<Models.HealthQueue>;
|
|
1031
|
+
getQueueThreats(
|
|
1032
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
1033
|
+
): Promise<Models.HealthQueue> {
|
|
1034
|
+
let params: { threshold?: number };
|
|
1035
|
+
|
|
1036
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1037
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
1038
|
+
} else {
|
|
1039
|
+
params = {
|
|
1040
|
+
threshold: paramsOrFirst as number
|
|
1041
|
+
};
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
const threshold = params.threshold;
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
const apiPath = '/health/queue/threats';
|
|
1048
|
+
const payload: Payload = {};
|
|
1049
|
+
if (typeof threshold !== 'undefined') {
|
|
1050
|
+
payload['threshold'] = threshold;
|
|
1051
|
+
}
|
|
1052
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
1053
|
+
|
|
1054
|
+
const apiHeaders: { [header: string]: string } = {
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
return this.client.call(
|
|
1058
|
+
'get',
|
|
1059
|
+
uri,
|
|
1060
|
+
apiHeaders,
|
|
1061
|
+
payload
|
|
1062
|
+
);
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/**
|
|
1066
|
+
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
|
|
1067
|
+
*
|
|
1068
|
+
* @param {number} params.threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
1069
|
+
* @throws {AppwriteException}
|
|
1070
|
+
* @returns {Promise<Models.HealthQueue>}
|
|
1071
|
+
*/
|
|
1072
|
+
getQueueWebhooks(params?: { threshold?: number }): Promise<Models.HealthQueue>;
|
|
552
1073
|
/**
|
|
553
1074
|
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
|
|
554
1075
|
*
|
|
555
|
-
* @param {number} threshold
|
|
1076
|
+
* @param {number} threshold - Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
556
1077
|
* @throws {AppwriteException}
|
|
557
1078
|
* @returns {Promise<Models.HealthQueue>}
|
|
1079
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
558
1080
|
*/
|
|
559
|
-
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue
|
|
1081
|
+
getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
|
|
1082
|
+
getQueueWebhooks(
|
|
1083
|
+
paramsOrFirst?: { threshold?: number } | number
|
|
1084
|
+
): Promise<Models.HealthQueue> {
|
|
1085
|
+
let params: { threshold?: number };
|
|
1086
|
+
|
|
1087
|
+
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
|
|
1088
|
+
params = (paramsOrFirst || {}) as { threshold?: number };
|
|
1089
|
+
} else {
|
|
1090
|
+
params = {
|
|
1091
|
+
threshold: paramsOrFirst as number
|
|
1092
|
+
};
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
const threshold = params.threshold;
|
|
1096
|
+
|
|
1097
|
+
|
|
560
1098
|
const apiPath = '/health/queue/webhooks';
|
|
561
1099
|
const payload: Payload = {};
|
|
562
1100
|
if (typeof threshold !== 'undefined') {
|
|
@@ -574,6 +1112,7 @@ export class Health {
|
|
|
574
1112
|
payload
|
|
575
1113
|
);
|
|
576
1114
|
}
|
|
1115
|
+
|
|
577
1116
|
/**
|
|
578
1117
|
* Check the Appwrite storage device is up and connection is successful.
|
|
579
1118
|
*
|
|
@@ -581,6 +1120,7 @@ export class Health {
|
|
|
581
1120
|
* @returns {Promise<Models.HealthStatus>}
|
|
582
1121
|
*/
|
|
583
1122
|
getStorage(): Promise<Models.HealthStatus> {
|
|
1123
|
+
|
|
584
1124
|
const apiPath = '/health/storage';
|
|
585
1125
|
const payload: Payload = {};
|
|
586
1126
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -595,6 +1135,7 @@ export class Health {
|
|
|
595
1135
|
payload
|
|
596
1136
|
);
|
|
597
1137
|
}
|
|
1138
|
+
|
|
598
1139
|
/**
|
|
599
1140
|
* Check the Appwrite local storage device is up and connection is successful.
|
|
600
1141
|
*
|
|
@@ -602,6 +1143,7 @@ export class Health {
|
|
|
602
1143
|
* @returns {Promise<Models.HealthStatus>}
|
|
603
1144
|
*/
|
|
604
1145
|
getStorageLocal(): Promise<Models.HealthStatus> {
|
|
1146
|
+
|
|
605
1147
|
const apiPath = '/health/storage/local';
|
|
606
1148
|
const payload: Payload = {};
|
|
607
1149
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
@@ -616,6 +1158,7 @@ export class Health {
|
|
|
616
1158
|
payload
|
|
617
1159
|
);
|
|
618
1160
|
}
|
|
1161
|
+
|
|
619
1162
|
/**
|
|
620
1163
|
* 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.
|
|
621
1164
|
*
|
|
@@ -623,6 +1166,7 @@ export class Health {
|
|
|
623
1166
|
* @returns {Promise<Models.HealthTime>}
|
|
624
1167
|
*/
|
|
625
1168
|
getTime(): Promise<Models.HealthTime> {
|
|
1169
|
+
|
|
626
1170
|
const apiPath = '/health/time';
|
|
627
1171
|
const payload: Payload = {};
|
|
628
1172
|
const uri = new URL(this.client.config.endpoint + apiPath);
|