@appwrite.io/console 1.6.0 → 1.8.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 +6807 -3959
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +6805 -3960
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +6807 -3959
- 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-document.md +17 -0
- 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 +1 -5
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +4 -3
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-template.md +1 -1
- package/docs/examples/functions/get-usage.md +2 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +1 -1
- package/docs/examples/functions/list-templates.md +1 -1
- package/docs/examples/functions/list-usage.md +13 -0
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-status.md +14 -0
- package/docs/examples/functions/update-function-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +3 -2
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-priority-builds.md +1 -1
- package/docs/examples/health/get-queue-region-manager.md +13 -0
- package/docs/examples/health/get-queue-stats-resources.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-csv-migration.md +15 -0
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/organizations/add-credit.md +1 -1
- package/docs/examples/organizations/create-invoice-payment.md +1 -1
- package/docs/examples/organizations/create.md +1 -1
- package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
- package/docs/examples/organizations/delete-billing-address.md +1 -1
- package/docs/examples/organizations/delete-default-payment-method.md +1 -1
- package/docs/examples/organizations/delete.md +1 -1
- package/docs/examples/organizations/get-aggregation.md +1 -1
- package/docs/examples/organizations/get-billing-address.md +1 -1
- package/docs/examples/organizations/get-credit.md +1 -1
- package/docs/examples/organizations/get-invoice-download.md +1 -1
- package/docs/examples/organizations/get-invoice-view.md +1 -1
- package/docs/examples/organizations/get-invoice.md +1 -1
- package/docs/examples/organizations/get-payment-method.md +1 -1
- package/docs/examples/organizations/get-plan.md +1 -1
- package/docs/examples/organizations/get-scopes.md +1 -1
- package/docs/examples/organizations/list-aggregations.md +1 -1
- package/docs/examples/organizations/list-credits.md +1 -1
- package/docs/examples/organizations/list-invoices.md +1 -1
- package/docs/examples/organizations/list.md +1 -1
- package/docs/examples/organizations/set-backup-payment-method.md +1 -1
- package/docs/examples/organizations/set-billing-address.md +1 -1
- package/docs/examples/organizations/set-billing-email.md +1 -1
- package/docs/examples/organizations/set-billing-tax-id.md +1 -1
- package/docs/examples/organizations/set-default-payment-method.md +1 -1
- package/docs/examples/organizations/update-budget.md +1 -1
- package/docs/examples/organizations/update-plan.md +1 -1
- package/docs/examples/organizations/validate-invoice.md +1 -1
- package/docs/examples/project/create-variable.md +3 -2
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -2
- package/docs/examples/projects/create-dev-key.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-dev-key.md +14 -0
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +14 -0
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +14 -0
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-dev-key.md +16 -0
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-memberships-privacy.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +1 -1
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
- package/docs/examples/proxy/create-function-rule.md +15 -0
- package/docs/examples/proxy/create-redirect-rule.md +15 -0
- package/docs/examples/proxy/create-site-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/sites/create-deployment.md +18 -0
- package/docs/examples/sites/create-duplicate-deployment.md +14 -0
- package/docs/examples/sites/create-template-deployment.md +18 -0
- package/docs/examples/sites/create-variable.md +16 -0
- package/docs/examples/sites/create-vcs-deployment.md +16 -0
- package/docs/examples/sites/create.md +30 -0
- package/docs/examples/sites/delete-deployment.md +14 -0
- package/docs/examples/sites/delete-log.md +14 -0
- package/docs/examples/sites/delete-variable.md +14 -0
- package/docs/examples/sites/delete.md +13 -0
- package/docs/examples/sites/get-deployment-download.md +15 -0
- package/docs/examples/sites/get-deployment.md +14 -0
- package/docs/examples/sites/get-log.md +14 -0
- package/docs/examples/sites/get-template.md +13 -0
- package/docs/examples/sites/get-usage.md +14 -0
- package/docs/examples/sites/get-variable.md +14 -0
- package/docs/examples/sites/get.md +13 -0
- package/docs/examples/sites/list-deployments.md +15 -0
- package/docs/examples/sites/list-frameworks.md +11 -0
- package/docs/examples/sites/list-logs.md +14 -0
- package/docs/examples/sites/list-specifications.md +11 -0
- package/docs/examples/sites/list-templates.md +16 -0
- package/docs/examples/sites/list-usage.md +13 -0
- package/docs/examples/sites/list-variables.md +13 -0
- package/docs/examples/sites/list.md +14 -0
- package/docs/examples/sites/update-deployment-status.md +14 -0
- package/docs/examples/sites/update-site-deployment.md +14 -0
- package/docs/examples/sites/update-variable.md +17 -0
- package/docs/examples/sites/update.md +30 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +3 -2
- package/docs/examples/storage/get-file-preview.md +4 -3
- package/docs/examples/storage/get-file-view.md +3 -2
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/tokens/create-file-token.md +15 -0
- package/docs/examples/tokens/delete.md +13 -0
- package/docs/examples/tokens/get.md +13 -0
- package/docs/examples/tokens/list.md +15 -0
- package/docs/examples/tokens/update.md +14 -0
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +4 -2
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +3 -2
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +3 -2
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +16 -3
- package/src/enums/adapter.ts +4 -0
- package/src/enums/api-service.ts +1 -0
- package/src/enums/build-runtime.ts +62 -0
- package/src/enums/console-resource-type.ts +3 -0
- package/src/enums/deployment-download-type.ts +4 -0
- package/src/enums/framework.ts +16 -0
- package/src/enums/image-format.ts +0 -1
- package/src/enums/name.ts +0 -1
- package/src/enums/region.ts +2 -1
- package/src/enums/runtime.ts +4 -3
- package/src/enums/site-usage-range.ts +5 -0
- package/src/enums/status-code.ts +6 -0
- package/src/enums/v-c-s-deployment-type.ts +5 -0
- package/src/enums/v-c-s-detection-type.ts +4 -0
- package/src/index.ts +13 -2
- package/src/models.ts +1100 -217
- package/src/services/account.ts +0 -16
- package/src/services/avatars.ts +0 -7
- package/src/services/backups.ts +0 -6
- package/src/services/console.ts +36 -5
- package/src/services/databases.ts +194 -18
- package/src/services/domains.ts +1821 -0
- package/src/services/functions.ts +170 -81
- package/src/services/health.ts +9 -34
- package/src/services/locale.ts +0 -8
- package/src/services/messaging.ts +0 -13
- package/src/services/migrations.ts +43 -6
- package/src/services/organizations.ts +0 -47
- package/src/services/project.ts +10 -5
- package/src/services/projects.ts +172 -10
- package/src/services/proxy.ts +124 -14
- package/src/services/sites.ts +1104 -0
- package/src/services/storage.ts +15 -12
- package/src/services/teams.ts +0 -6
- package/src/services/tokens.ts +160 -0
- package/src/services/users.ts +9 -13
- package/src/services/vcs.ts +54 -42
- package/types/enums/adapter.d.ts +4 -0
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +62 -0
- package/types/enums/console-resource-type.d.ts +3 -0
- package/types/enums/deployment-download-type.d.ts +4 -0
- package/types/enums/framework.d.ts +16 -0
- package/types/enums/image-format.d.ts +0 -1
- package/types/enums/name.d.ts +0 -1
- package/types/enums/region.d.ts +3 -2
- package/types/enums/runtime.d.ts +5 -4
- package/types/enums/site-usage-range.d.ts +5 -0
- package/types/enums/status-code.d.ts +6 -0
- package/types/enums/v-c-s-deployment-type.d.ts +5 -0
- package/types/enums/v-c-s-detection-type.d.ts +4 -0
- package/types/index.d.ts +13 -2
- package/types/models.d.ts +1100 -217
- package/types/services/console.d.ts +10 -0
- package/types/services/databases.d.ts +56 -2
- package/types/services/domains.d.ts +524 -0
- package/types/services/functions.d.ts +59 -33
- package/types/services/health.d.ts +6 -6
- package/types/services/migrations.d.ts +10 -0
- package/types/services/organizations.d.ts +0 -10
- package/types/services/project.d.ts +4 -2
- package/types/services/projects.d.ts +48 -0
- package/types/services/proxy.d.ts +33 -5
- package/types/services/sites.d.ts +319 -0
- package/types/services/storage.d.ts +6 -3
- package/types/services/tokens.d.ts +51 -0
- package/types/services/users.d.ts +3 -1
- package/types/services/vcs.d.ts +15 -12
|
@@ -2,6 +2,8 @@ import { Client, UploadProgress } from '../client';
|
|
|
2
2
|
import type { Models } from '../models';
|
|
3
3
|
import { Runtime } from '../enums/runtime';
|
|
4
4
|
import { FunctionUsageRange } from '../enums/function-usage-range';
|
|
5
|
+
import { VCSDeploymentType } from '../enums/v-c-s-deployment-type';
|
|
6
|
+
import { DeploymentDownloadType } from '../enums/deployment-download-type';
|
|
5
7
|
import { ExecutionMethod } from '../enums/execution-method';
|
|
6
8
|
export declare class Functions {
|
|
7
9
|
client: Client;
|
|
@@ -35,15 +37,11 @@ export declare class Functions {
|
|
|
35
37
|
* @param {string} providerBranch
|
|
36
38
|
* @param {boolean} providerSilentMode
|
|
37
39
|
* @param {string} providerRootDirectory
|
|
38
|
-
* @param {string} templateRepository
|
|
39
|
-
* @param {string} templateOwner
|
|
40
|
-
* @param {string} templateRootDirectory
|
|
41
|
-
* @param {string} templateVersion
|
|
42
40
|
* @param {string} specification
|
|
43
41
|
* @throws {AppwriteException}
|
|
44
42
|
* @returns {Promise<Models.Function>}
|
|
45
43
|
*/
|
|
46
|
-
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string,
|
|
44
|
+
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
47
45
|
/**
|
|
48
46
|
* Get a list of all runtimes that are currently active on your instance.
|
|
49
47
|
*
|
|
@@ -53,7 +51,6 @@ export declare class Functions {
|
|
|
53
51
|
listRuntimes(): Promise<Models.RuntimeList>;
|
|
54
52
|
/**
|
|
55
53
|
* List allowed function specifications for this instance.
|
|
56
|
-
|
|
57
54
|
*
|
|
58
55
|
* @throws {AppwriteException}
|
|
59
56
|
* @returns {Promise<Models.SpecificationList>}
|
|
@@ -79,13 +76,13 @@ export declare class Functions {
|
|
|
79
76
|
*/
|
|
80
77
|
getTemplate(templateId: string): Promise<Models.TemplateFunction>;
|
|
81
78
|
/**
|
|
82
|
-
* Get usage metrics and statistics for
|
|
79
|
+
* Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
83
80
|
*
|
|
84
81
|
* @param {FunctionUsageRange} range
|
|
85
82
|
* @throws {AppwriteException}
|
|
86
83
|
* @returns {Promise<Models.UsageFunctions>}
|
|
87
84
|
*/
|
|
88
|
-
|
|
85
|
+
listUsage(range?: FunctionUsageRange): Promise<Models.UsageFunctions>;
|
|
89
86
|
/**
|
|
90
87
|
* Get a function by its unique ID.
|
|
91
88
|
*
|
|
@@ -128,7 +125,16 @@ export declare class Functions {
|
|
|
128
125
|
*/
|
|
129
126
|
delete(functionId: string): Promise<{}>;
|
|
130
127
|
/**
|
|
131
|
-
*
|
|
128
|
+
* Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
|
|
129
|
+
*
|
|
130
|
+
* @param {string} functionId
|
|
131
|
+
* @param {string} deploymentId
|
|
132
|
+
* @throws {AppwriteException}
|
|
133
|
+
* @returns {Promise<Models.Function>}
|
|
134
|
+
*/
|
|
135
|
+
updateFunctionDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
136
|
+
/**
|
|
137
|
+
* Get a list of all the function's code deployments. You can use the query params to filter your results.
|
|
132
138
|
*
|
|
133
139
|
* @param {string} functionId
|
|
134
140
|
* @param {string[]} queries
|
|
@@ -154,70 +160,89 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
154
160
|
*/
|
|
155
161
|
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
156
162
|
/**
|
|
157
|
-
*
|
|
163
|
+
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
158
164
|
*
|
|
159
165
|
* @param {string} functionId
|
|
160
166
|
* @param {string} deploymentId
|
|
167
|
+
* @param {string} buildId
|
|
161
168
|
* @throws {AppwriteException}
|
|
162
169
|
* @returns {Promise<Models.Deployment>}
|
|
163
170
|
*/
|
|
164
|
-
|
|
171
|
+
createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;
|
|
165
172
|
/**
|
|
166
|
-
*
|
|
173
|
+
* Create a deployment based on a template.
|
|
174
|
+
|
|
175
|
+
Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.
|
|
167
176
|
*
|
|
168
177
|
* @param {string} functionId
|
|
169
|
-
* @param {string}
|
|
178
|
+
* @param {string} repository
|
|
179
|
+
* @param {string} owner
|
|
180
|
+
* @param {string} rootDirectory
|
|
181
|
+
* @param {string} version
|
|
182
|
+
* @param {boolean} activate
|
|
170
183
|
* @throws {AppwriteException}
|
|
171
|
-
* @returns {Promise<Models.
|
|
184
|
+
* @returns {Promise<Models.Deployment>}
|
|
172
185
|
*/
|
|
173
|
-
|
|
186
|
+
createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, version: string, activate?: boolean): Promise<Models.Deployment>;
|
|
174
187
|
/**
|
|
175
|
-
*
|
|
188
|
+
* Create a deployment when a function is connected to VCS.
|
|
189
|
+
|
|
190
|
+
This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
191
|
+
*
|
|
192
|
+
* @param {string} functionId
|
|
193
|
+
* @param {VCSDeploymentType} type
|
|
194
|
+
* @param {string} reference
|
|
195
|
+
* @param {boolean} activate
|
|
196
|
+
* @throws {AppwriteException}
|
|
197
|
+
* @returns {Promise<Models.Deployment>}
|
|
198
|
+
*/
|
|
199
|
+
createVcsDeployment(functionId: string, type: VCSDeploymentType, reference: string, activate?: boolean): Promise<Models.Deployment>;
|
|
200
|
+
/**
|
|
201
|
+
* Get a function deployment by its unique ID.
|
|
176
202
|
*
|
|
177
203
|
* @param {string} functionId
|
|
178
204
|
* @param {string} deploymentId
|
|
179
205
|
* @throws {AppwriteException}
|
|
180
|
-
* @returns {Promise<
|
|
206
|
+
* @returns {Promise<Models.Deployment>}
|
|
181
207
|
*/
|
|
182
|
-
|
|
208
|
+
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
183
209
|
/**
|
|
184
|
-
*
|
|
210
|
+
* Delete a code deployment by its unique ID.
|
|
185
211
|
*
|
|
186
212
|
* @param {string} functionId
|
|
187
213
|
* @param {string} deploymentId
|
|
188
|
-
* @param {string} buildId
|
|
189
214
|
* @throws {AppwriteException}
|
|
190
215
|
* @returns {Promise<{}>}
|
|
191
216
|
*/
|
|
192
|
-
|
|
217
|
+
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
193
218
|
/**
|
|
194
|
-
*
|
|
219
|
+
* Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
|
|
195
220
|
*
|
|
196
221
|
* @param {string} functionId
|
|
197
222
|
* @param {string} deploymentId
|
|
223
|
+
* @param {DeploymentDownloadType} type
|
|
198
224
|
* @throws {AppwriteException}
|
|
199
|
-
* @returns {
|
|
225
|
+
* @returns {string}
|
|
200
226
|
*/
|
|
201
|
-
|
|
227
|
+
getDeploymentDownload(functionId: string, deploymentId: string, type?: DeploymentDownloadType): string;
|
|
202
228
|
/**
|
|
203
|
-
*
|
|
229
|
+
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
|
|
204
230
|
*
|
|
205
231
|
* @param {string} functionId
|
|
206
232
|
* @param {string} deploymentId
|
|
207
233
|
* @throws {AppwriteException}
|
|
208
|
-
* @returns {
|
|
234
|
+
* @returns {Promise<Models.Deployment>}
|
|
209
235
|
*/
|
|
210
|
-
|
|
236
|
+
updateDeploymentStatus(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
211
237
|
/**
|
|
212
238
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
213
239
|
*
|
|
214
240
|
* @param {string} functionId
|
|
215
241
|
* @param {string[]} queries
|
|
216
|
-
* @param {string} search
|
|
217
242
|
* @throws {AppwriteException}
|
|
218
243
|
* @returns {Promise<Models.ExecutionList>}
|
|
219
244
|
*/
|
|
220
|
-
listExecutions(functionId: string, queries?: string[]
|
|
245
|
+
listExecutions(functionId: string, queries?: string[]): Promise<Models.ExecutionList>;
|
|
221
246
|
/**
|
|
222
247
|
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
|
|
223
248
|
*
|
|
@@ -243,7 +268,6 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
243
268
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
244
269
|
/**
|
|
245
270
|
* Delete a function execution by its unique ID.
|
|
246
|
-
|
|
247
271
|
*
|
|
248
272
|
* @param {string} functionId
|
|
249
273
|
* @param {string} executionId
|
|
@@ -259,7 +283,7 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
259
283
|
* @throws {AppwriteException}
|
|
260
284
|
* @returns {Promise<Models.UsageFunction>}
|
|
261
285
|
*/
|
|
262
|
-
|
|
286
|
+
getUsage(functionId: string, range?: FunctionUsageRange): Promise<Models.UsageFunction>;
|
|
263
287
|
/**
|
|
264
288
|
* Get a list of all variables of a specific function.
|
|
265
289
|
*
|
|
@@ -274,10 +298,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
274
298
|
* @param {string} functionId
|
|
275
299
|
* @param {string} key
|
|
276
300
|
* @param {string} value
|
|
301
|
+
* @param {boolean} secret
|
|
277
302
|
* @throws {AppwriteException}
|
|
278
303
|
* @returns {Promise<Models.Variable>}
|
|
279
304
|
*/
|
|
280
|
-
createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
|
|
305
|
+
createVariable(functionId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
|
|
281
306
|
/**
|
|
282
307
|
* Get a variable by its unique ID.
|
|
283
308
|
*
|
|
@@ -294,10 +319,11 @@ Use the "command" param to set the entrypoint used to execute your cod
|
|
|
294
319
|
* @param {string} variableId
|
|
295
320
|
* @param {string} key
|
|
296
321
|
* @param {string} value
|
|
322
|
+
* @param {boolean} secret
|
|
297
323
|
* @throws {AppwriteException}
|
|
298
324
|
* @returns {Promise<Models.Variable>}
|
|
299
325
|
*/
|
|
300
|
-
updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
326
|
+
updateVariable(functionId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
|
|
301
327
|
/**
|
|
302
328
|
* Delete a variable by its unique ID.
|
|
303
329
|
*
|
|
@@ -147,29 +147,29 @@ export declare class Health {
|
|
|
147
147
|
*/
|
|
148
148
|
getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
|
|
149
149
|
/**
|
|
150
|
-
* Get
|
|
150
|
+
* Get region manager queue
|
|
151
151
|
*
|
|
152
152
|
* @param {number} threshold
|
|
153
153
|
* @throws {AppwriteException}
|
|
154
154
|
* @returns {Promise<Models.HealthQueue>}
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
getQueueRegionManager(threshold?: number): Promise<Models.HealthQueue>;
|
|
157
157
|
/**
|
|
158
|
-
* Get the number of metrics that are waiting to be processed in the Appwrite
|
|
158
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
|
|
159
159
|
*
|
|
160
160
|
* @param {number} threshold
|
|
161
161
|
* @throws {AppwriteException}
|
|
162
162
|
* @returns {Promise<Models.HealthQueue>}
|
|
163
163
|
*/
|
|
164
|
-
|
|
164
|
+
getQueueStatsResources(threshold?: number): Promise<Models.HealthQueue>;
|
|
165
165
|
/**
|
|
166
|
-
* Get the number of
|
|
166
|
+
* Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
|
|
167
167
|
*
|
|
168
168
|
* @param {number} threshold
|
|
169
169
|
* @throws {AppwriteException}
|
|
170
170
|
* @returns {Promise<Models.HealthQueue>}
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
getQueueUsage(threshold?: number): Promise<Models.HealthQueue>;
|
|
173
173
|
/**
|
|
174
174
|
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
|
|
175
175
|
*
|
|
@@ -34,6 +34,16 @@ export declare class Migrations {
|
|
|
34
34
|
* @returns {Promise<Models.MigrationReport>}
|
|
35
35
|
*/
|
|
36
36
|
getAppwriteReport(resources: string[], endpoint: string, projectID: string, key: string): Promise<Models.MigrationReport>;
|
|
37
|
+
/**
|
|
38
|
+
* Import documents from a CSV file into your Appwrite database. This endpoint allows you to import documents from a CSV file uploaded to Appwrite Storage bucket.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} bucketId
|
|
41
|
+
* @param {string} fileId
|
|
42
|
+
* @param {string} resourceId
|
|
43
|
+
* @throws {AppwriteException}
|
|
44
|
+
* @returns {Promise<Models.Migration>}
|
|
45
|
+
*/
|
|
46
|
+
createCsvMigration(bucketId: string, fileId: string, resourceId: string): Promise<Models.Migration>;
|
|
37
47
|
/**
|
|
38
48
|
* Migrate data from a Firebase project to your Appwrite project. This endpoint allows you to migrate resources like authentication and other supported services from a Firebase project.
|
|
39
49
|
*
|
|
@@ -268,14 +268,4 @@ export declare class Organizations {
|
|
|
268
268
|
* @returns {Promise<Models.Organization<Preferences>>}
|
|
269
269
|
*/
|
|
270
270
|
setBillingTaxId<Preferences extends Models.Preferences>(organizationId: string, taxId: string): Promise<Models.Organization<Preferences>>;
|
|
271
|
-
/**
|
|
272
|
-
* Get the usage data for an organization.
|
|
273
|
-
*
|
|
274
|
-
* @param {string} organizationId
|
|
275
|
-
* @param {string} startDate
|
|
276
|
-
* @param {string} endDate
|
|
277
|
-
* @throws {AppwriteException}
|
|
278
|
-
* @returns {Promise<Models.UsageOrganization>}
|
|
279
|
-
*/
|
|
280
|
-
getUsage(organizationId: string, startDate?: string, endDate?: string): Promise<Models.UsageOrganization>;
|
|
281
271
|
}
|
|
@@ -26,10 +26,11 @@ export declare class Project {
|
|
|
26
26
|
*
|
|
27
27
|
* @param {string} key
|
|
28
28
|
* @param {string} value
|
|
29
|
+
* @param {boolean} secret
|
|
29
30
|
* @throws {AppwriteException}
|
|
30
31
|
* @returns {Promise<Models.Variable>}
|
|
31
32
|
*/
|
|
32
|
-
createVariable(key: string, value: string): Promise<Models.Variable>;
|
|
33
|
+
createVariable(key: string, value: string, secret?: boolean): Promise<Models.Variable>;
|
|
33
34
|
/**
|
|
34
35
|
* Get a project variable by its unique ID.
|
|
35
36
|
*
|
|
@@ -44,10 +45,11 @@ export declare class Project {
|
|
|
44
45
|
* @param {string} variableId
|
|
45
46
|
* @param {string} key
|
|
46
47
|
* @param {string} value
|
|
48
|
+
* @param {boolean} secret
|
|
47
49
|
* @throws {AppwriteException}
|
|
48
50
|
* @returns {Promise<Models.Variable>}
|
|
49
51
|
*/
|
|
50
|
-
updateVariable(variableId: string, key: string, value?: string): Promise<Models.Variable>;
|
|
52
|
+
updateVariable(variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
|
|
51
53
|
/**
|
|
52
54
|
* Delete a project variable by its unique ID.
|
|
53
55
|
*
|
|
@@ -189,6 +189,54 @@ export declare class Projects {
|
|
|
189
189
|
* @returns {Promise<Models.Project>}
|
|
190
190
|
*/
|
|
191
191
|
updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
|
|
192
|
+
/**
|
|
193
|
+
* List all the project\'s dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'
|
|
194
|
+
*
|
|
195
|
+
* @param {string} projectId
|
|
196
|
+
* @param {string[]} queries
|
|
197
|
+
* @throws {AppwriteException}
|
|
198
|
+
* @returns {Promise<Models.DevKeyList>}
|
|
199
|
+
*/
|
|
200
|
+
listDevKeys(projectId: string, queries?: string[]): Promise<Models.DevKeyList>;
|
|
201
|
+
/**
|
|
202
|
+
* Create a new project dev key. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development. Strictly meant for development purposes only.
|
|
203
|
+
*
|
|
204
|
+
* @param {string} projectId
|
|
205
|
+
* @param {string} name
|
|
206
|
+
* @param {string} expire
|
|
207
|
+
* @throws {AppwriteException}
|
|
208
|
+
* @returns {Promise<Models.DevKey>}
|
|
209
|
+
*/
|
|
210
|
+
createDevKey(projectId: string, name: string, expire: string): Promise<Models.DevKey>;
|
|
211
|
+
/**
|
|
212
|
+
* Get a project\'s dev key by its unique ID. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.
|
|
213
|
+
*
|
|
214
|
+
* @param {string} projectId
|
|
215
|
+
* @param {string} keyId
|
|
216
|
+
* @throws {AppwriteException}
|
|
217
|
+
* @returns {Promise<Models.DevKey>}
|
|
218
|
+
*/
|
|
219
|
+
getDevKey(projectId: string, keyId: string): Promise<Models.DevKey>;
|
|
220
|
+
/**
|
|
221
|
+
* Update a project\'s dev key by its unique ID. Use this endpoint to update a project\'s dev key name or expiration time.'
|
|
222
|
+
*
|
|
223
|
+
* @param {string} projectId
|
|
224
|
+
* @param {string} keyId
|
|
225
|
+
* @param {string} name
|
|
226
|
+
* @param {string} expire
|
|
227
|
+
* @throws {AppwriteException}
|
|
228
|
+
* @returns {Promise<Models.DevKey>}
|
|
229
|
+
*/
|
|
230
|
+
updateDevKey(projectId: string, keyId: string, name: string, expire: string): Promise<Models.DevKey>;
|
|
231
|
+
/**
|
|
232
|
+
* Delete a project\'s dev key by its unique ID. Once deleted, the key will no longer allow bypassing of rate limits and better logging of errors.
|
|
233
|
+
*
|
|
234
|
+
* @param {string} projectId
|
|
235
|
+
* @param {string} keyId
|
|
236
|
+
* @throws {AppwriteException}
|
|
237
|
+
* @returns {Promise<{}>}
|
|
238
|
+
*/
|
|
239
|
+
deleteDevKey(projectId: string, keyId: string): Promise<{}>;
|
|
192
240
|
/**
|
|
193
241
|
* Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
|
|
194
242
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
-
import {
|
|
3
|
+
import { StatusCode } from '../enums/status-code';
|
|
4
4
|
export declare class Proxy {
|
|
5
5
|
client: Client;
|
|
6
6
|
constructor(client: Client);
|
|
@@ -14,15 +14,43 @@ export declare class Proxy {
|
|
|
14
14
|
*/
|
|
15
15
|
listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
|
|
16
16
|
/**
|
|
17
|
-
* Create a new proxy rule.
|
|
17
|
+
* Create a new proxy rule for serving Appwrite's API on custom domain.
|
|
18
18
|
*
|
|
19
19
|
* @param {string} domain
|
|
20
|
-
* @param {ResourceType} resourceType
|
|
21
|
-
* @param {string} resourceId
|
|
22
20
|
* @throws {AppwriteException}
|
|
23
21
|
* @returns {Promise<Models.ProxyRule>}
|
|
24
22
|
*/
|
|
25
|
-
|
|
23
|
+
createAPIRule(domain: string): Promise<Models.ProxyRule>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a new proxy rule for executing Appwrite Function on custom domain.
|
|
26
|
+
*
|
|
27
|
+
* @param {string} domain
|
|
28
|
+
* @param {string} functionId
|
|
29
|
+
* @param {string} branch
|
|
30
|
+
* @throws {AppwriteException}
|
|
31
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
32
|
+
*/
|
|
33
|
+
createFunctionRule(domain: string, functionId: string, branch?: string): Promise<Models.ProxyRule>;
|
|
34
|
+
/**
|
|
35
|
+
* Create a new proxy rule for to redirect from custom domain to another domain.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} domain
|
|
38
|
+
* @param {string} url
|
|
39
|
+
* @param {StatusCode} statusCode
|
|
40
|
+
* @throws {AppwriteException}
|
|
41
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
42
|
+
*/
|
|
43
|
+
createRedirectRule(domain: string, url: string, statusCode: StatusCode): Promise<Models.ProxyRule>;
|
|
44
|
+
/**
|
|
45
|
+
* Create a new proxy rule for serving Appwrite Site on custom domain.
|
|
46
|
+
*
|
|
47
|
+
* @param {string} domain
|
|
48
|
+
* @param {string} siteId
|
|
49
|
+
* @param {string} branch
|
|
50
|
+
* @throws {AppwriteException}
|
|
51
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
52
|
+
*/
|
|
53
|
+
createSiteRule(domain: string, siteId: string, branch?: string): Promise<Models.ProxyRule>;
|
|
26
54
|
/**
|
|
27
55
|
* Get a proxy rule by its unique ID.
|
|
28
56
|
*
|