@appwrite.io/console 1.5.2 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -1
- package/README.md +3 -3
- package/dist/cjs/sdk.js +11874 -11100
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +11872 -11101
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +11874 -11100
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-billing-address.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-payment-method.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-billing-address.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +1 -1
- package/docs/examples/account/delete-payment-method.md +1 -1
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- package/docs/examples/account/get-billing-address.md +1 -1
- package/docs/examples/account/get-coupon.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-payment-method.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-billing-addresses.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-invoices.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-payment-methods.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-billing-address.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
- package/docs/examples/account/update-payment-method-provider.md +1 -1
- package/docs/examples/account/update-payment-method.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-browser.md +2 -2
- package/docs/examples/avatars/get-credit-card.md +2 -2
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +2 -2
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/backups/create-archive.md +1 -1
- package/docs/examples/backups/create-policy.md +1 -1
- package/docs/examples/backups/create-restoration.md +1 -1
- package/docs/examples/backups/delete-archive.md +1 -1
- package/docs/examples/backups/delete-policy.md +1 -1
- package/docs/examples/backups/get-archive.md +1 -1
- package/docs/examples/backups/get-policy.md +1 -1
- package/docs/examples/backups/get-restoration.md +1 -1
- package/docs/examples/backups/list-archives.md +1 -1
- package/docs/examples/backups/list-policies.md +1 -1
- package/docs/examples/backups/list-restorations.md +1 -1
- package/docs/examples/backups/update-policy.md +1 -1
- package/docs/examples/console/create-program-membership.md +1 -1
- package/docs/examples/console/create-source.md +1 -1
- package/docs/examples/console/get-campaign.md +1 -1
- package/docs/examples/console/get-coupon.md +1 -1
- package/docs/examples/console/get-resource.md +14 -0
- package/docs/examples/console/plans.md +1 -1
- package/docs/examples/console/regions.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +4 -2
- package/docs/examples/databases/create-documents.md +15 -0
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +3 -2
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-documents.md +15 -0
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-documents.md +16 -0
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/databases/upsert-documents.md +15 -0
- package/docs/examples/domains/create-preset-google-workspace.md +13 -0
- package/docs/examples/domains/create-preset-i-cloud.md +13 -0
- package/docs/examples/domains/create-preset-mailgun.md +13 -0
- package/docs/examples/domains/create-preset-outlook.md +13 -0
- package/docs/examples/domains/create-preset-proton-mail.md +13 -0
- package/docs/examples/domains/create-preset-zoho.md +13 -0
- package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
- package/docs/examples/domains/create-record-a.md +17 -0
- package/docs/examples/domains/create-record-alias.md +17 -0
- package/docs/examples/domains/create-record-c-a-a.md +17 -0
- package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
- package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
- package/docs/examples/domains/create-record-m-x.md +18 -0
- package/docs/examples/domains/create-record-n-s.md +17 -0
- package/docs/examples/domains/create-record-s-r-v.md +20 -0
- package/docs/examples/domains/create-record-t-x-t.md +17 -0
- package/docs/examples/domains/create.md +14 -0
- package/docs/examples/domains/delete-record.md +14 -0
- package/docs/examples/domains/delete.md +13 -0
- package/docs/examples/domains/get-preset-google-workspace.md +13 -0
- package/docs/examples/domains/get-preset-i-cloud.md +13 -0
- package/docs/examples/domains/get-preset-mailgun.md +13 -0
- package/docs/examples/domains/get-preset-outlook.md +13 -0
- package/docs/examples/domains/get-preset-proton-mail.md +13 -0
- package/docs/examples/domains/get-preset-zoho.md +13 -0
- package/docs/examples/domains/get-record.md +14 -0
- package/docs/examples/domains/get-zone.md +13 -0
- package/docs/examples/domains/get.md +13 -0
- package/docs/examples/domains/list-records.md +14 -0
- package/docs/examples/domains/list.md +14 -0
- package/docs/examples/domains/update-nameservers.md +13 -0
- package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
- package/docs/examples/domains/update-record-a.md +18 -0
- package/docs/examples/domains/update-record-alias.md +18 -0
- package/docs/examples/domains/update-record-c-a-a.md +18 -0
- package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
- package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
- package/docs/examples/domains/update-record-m-x.md +19 -0
- package/docs/examples/domains/update-record-n-s.md +18 -0
- package/docs/examples/domains/update-record-s-r-v.md +21 -0
- package/docs/examples/domains/update-record-t-x-t.md +18 -0
- package/docs/examples/domains/update-team.md +14 -0
- package/docs/examples/domains/update-zone.md +14 -0
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-duplicate-deployment.md +15 -0
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-template-deployment.md +18 -0
- package/docs/examples/functions/create-variable.md +3 -2
- package/docs/examples/functions/create-vcs-deployment.md +16 -0
- package/docs/examples/functions/create.md +3 -3
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +4 -3
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-template.md +1 -1
- package/docs/examples/functions/get-usage.md +2 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +1 -1
- package/docs/examples/functions/list-templates.md +1 -1
- package/docs/examples/functions/list-usage.md +13 -0
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-status.md +14 -0
- package/docs/examples/functions/update-function-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +3 -2
- package/docs/examples/functions/update.md +1 -1
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-priority-builds.md +1 -1
- package/docs/examples/health/get-queue-region-manager.md +13 -0
- package/docs/examples/health/get-queue-stats-resources.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/health/get.md +1 -1
- package/docs/examples/locale/get.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-e-u.md +1 -1
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-csv-migration.md +15 -0
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/organizations/add-credit.md +1 -1
- package/docs/examples/organizations/create-invoice-payment.md +1 -1
- package/docs/examples/organizations/create.md +1 -1
- package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
- package/docs/examples/organizations/delete-billing-address.md +1 -1
- package/docs/examples/organizations/delete-default-payment-method.md +1 -1
- package/docs/examples/organizations/delete.md +1 -1
- package/docs/examples/organizations/get-aggregation.md +1 -1
- package/docs/examples/organizations/get-billing-address.md +1 -1
- package/docs/examples/organizations/get-credit.md +1 -1
- package/docs/examples/organizations/get-invoice-download.md +1 -1
- package/docs/examples/organizations/get-invoice-view.md +1 -1
- package/docs/examples/organizations/get-invoice.md +1 -1
- package/docs/examples/organizations/get-payment-method.md +1 -1
- package/docs/examples/organizations/get-plan.md +1 -1
- package/docs/examples/organizations/get-scopes.md +1 -1
- package/docs/examples/organizations/list-aggregations.md +1 -1
- package/docs/examples/organizations/list-credits.md +1 -1
- package/docs/examples/organizations/list-invoices.md +1 -1
- package/docs/examples/organizations/list.md +1 -1
- package/docs/examples/organizations/set-backup-payment-method.md +1 -1
- package/docs/examples/organizations/set-billing-address.md +1 -1
- package/docs/examples/organizations/set-billing-email.md +1 -1
- package/docs/examples/organizations/set-billing-tax-id.md +1 -1
- package/docs/examples/organizations/set-default-payment-method.md +1 -1
- package/docs/examples/organizations/update-budget.md +1 -1
- package/docs/examples/organizations/update-plan.md +1 -1
- package/docs/examples/organizations/validate-invoice.md +14 -0
- package/docs/examples/project/create-variable.md +3 -2
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -2
- package/docs/examples/projects/create-dev-key.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-dev-key.md +14 -0
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +14 -0
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +14 -0
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-dev-key.md +16 -0
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-memberships-privacy.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +1 -1
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
- package/docs/examples/proxy/create-function-rule.md +15 -0
- package/docs/examples/proxy/create-redirect-rule.md +15 -0
- package/docs/examples/proxy/create-site-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/sites/create-deployment.md +18 -0
- package/docs/examples/sites/create-duplicate-deployment.md +14 -0
- package/docs/examples/sites/create-template-deployment.md +18 -0
- package/docs/examples/sites/create-variable.md +16 -0
- package/docs/examples/sites/create-vcs-deployment.md +16 -0
- package/docs/examples/sites/create.md +30 -0
- package/docs/examples/sites/delete-deployment.md +14 -0
- package/docs/examples/sites/delete-log.md +14 -0
- package/docs/examples/sites/delete-variable.md +14 -0
- package/docs/examples/sites/delete.md +13 -0
- package/docs/examples/sites/get-deployment-download.md +15 -0
- package/docs/examples/sites/get-deployment.md +14 -0
- package/docs/examples/sites/get-log.md +14 -0
- package/docs/examples/sites/get-template.md +13 -0
- package/docs/examples/sites/get-usage.md +14 -0
- package/docs/examples/sites/get-variable.md +14 -0
- package/docs/examples/sites/get.md +13 -0
- package/docs/examples/sites/list-deployments.md +15 -0
- package/docs/examples/sites/list-frameworks.md +11 -0
- package/docs/examples/sites/list-logs.md +14 -0
- package/docs/examples/sites/list-specifications.md +11 -0
- package/docs/examples/sites/list-templates.md +16 -0
- package/docs/examples/sites/list-usage.md +13 -0
- package/docs/examples/sites/list-variables.md +13 -0
- package/docs/examples/sites/list.md +14 -0
- package/docs/examples/sites/update-deployment-status.md +14 -0
- package/docs/examples/sites/update-site-deployment.md +14 -0
- package/docs/examples/sites/update-variable.md +17 -0
- package/docs/examples/sites/update.md +30 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +3 -2
- package/docs/examples/storage/get-file-preview.md +4 -3
- package/docs/examples/storage/get-file-view.md +3 -2
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/tokens/create-file-token.md +15 -0
- package/docs/examples/tokens/delete.md +13 -0
- package/docs/examples/tokens/get.md +13 -0
- package/docs/examples/tokens/list.md +15 -0
- package/docs/examples/tokens/update.md +14 -0
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +4 -2
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +3 -2
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +3 -2
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +32 -5
- package/src/enums/adapter.ts +4 -0
- package/src/enums/api-service.ts +1 -0
- package/src/enums/build-runtime.ts +62 -0
- package/src/enums/console-resource-type.ts +3 -0
- package/src/enums/deployment-download-type.ts +4 -0
- package/src/enums/framework.ts +16 -0
- package/src/enums/image-format.ts +0 -1
- package/src/enums/name.ts +0 -1
- package/src/enums/o-auth-provider.ts +1 -0
- package/src/enums/region.ts +2 -1
- package/src/enums/runtime.ts +4 -3
- package/src/enums/site-usage-range.ts +5 -0
- package/src/enums/status-code.ts +6 -0
- package/src/enums/v-c-s-deployment-type.ts +5 -0
- package/src/enums/v-c-s-detection-type.ts +4 -0
- package/src/index.ts +13 -2
- package/src/models.ts +1171 -188
- package/src/services/account.ts +126 -446
- package/src/services/assistant.ts +2 -7
- package/src/services/avatars.ts +7 -28
- package/src/services/backups.ts +24 -90
- package/src/services/console.ts +48 -52
- package/src/services/databases.ts +241 -350
- package/src/services/domains.ts +1821 -0
- package/src/services/functions.ts +216 -248
- package/src/services/graphql.ts +4 -14
- package/src/services/health.ts +56 -206
- package/src/services/locale.ts +16 -64
- package/src/services/messaging.ts +92 -335
- package/src/services/migrations.ts +66 -89
- package/src/services/organizations.ts +84 -241
- package/src/services/project.ts +20 -45
- package/src/services/projects.ts +262 -330
- package/src/services/proxy.ts +129 -44
- package/src/services/sites.ts +1104 -0
- package/src/services/storage.ts +42 -105
- package/src/services/teams.ts +28 -104
- package/src/services/tokens.ts +160 -0
- package/src/services/users.ts +94 -313
- package/src/services/vcs.ts +70 -108
- package/types/enums/adapter.d.ts +4 -0
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +62 -0
- package/types/enums/console-resource-type.d.ts +3 -0
- package/types/enums/deployment-download-type.d.ts +4 -0
- package/types/enums/framework.d.ts +16 -0
- package/types/enums/image-format.d.ts +0 -1
- package/types/enums/name.d.ts +0 -1
- package/types/enums/o-auth-provider.d.ts +1 -0
- package/types/enums/region.d.ts +3 -2
- package/types/enums/runtime.d.ts +5 -4
- package/types/enums/site-usage-range.d.ts +5 -0
- package/types/enums/status-code.d.ts +6 -0
- package/types/enums/v-c-s-deployment-type.d.ts +5 -0
- package/types/enums/v-c-s-detection-type.d.ts +4 -0
- package/types/index.d.ts +13 -2
- package/types/models.d.ts +1171 -188
- package/types/services/account.d.ts +4 -128
- package/types/services/assistant.d.ts +0 -2
- package/types/services/avatars.d.ts +0 -14
- package/types/services/backups.d.ts +0 -24
- package/types/services/console.d.ts +9 -13
- package/types/services/databases.d.ts +43 -97
- package/types/services/domains.d.ts +524 -0
- package/types/services/functions.d.ts +58 -84
- package/types/services/graphql.d.ts +0 -4
- package/types/services/health.d.ts +6 -56
- package/types/services/locale.d.ts +0 -16
- package/types/services/messaging.d.ts +0 -92
- package/types/services/migrations.d.ts +9 -23
- package/types/services/organizations.d.ts +11 -68
- package/types/services/project.d.ts +4 -14
- package/types/services/projects.d.ts +47 -91
- package/types/services/proxy.d.ts +31 -13
- package/types/services/sites.d.ts +319 -0
- package/types/services/storage.d.ts +6 -33
- package/types/services/teams.d.ts +0 -28
- package/types/services/tokens.d.ts +51 -0
- package/types/services/users.d.ts +3 -87
- package/types/services/vcs.d.ts +14 -31
|
@@ -10,15 +10,13 @@ export class Assistant {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Ask query
|
|
14
|
-
*
|
|
15
13
|
* Send a prompt to the AI assistant and receive a response. This endpoint allows you to interact with Appwrite's AI assistant by sending questions or prompts and receiving helpful responses in real-time through a server-sent events stream.
|
|
16
14
|
*
|
|
17
15
|
* @param {string} prompt
|
|
18
16
|
* @throws {AppwriteException}
|
|
19
17
|
* @returns {Promise<{}>}
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
chat(prompt: string): Promise<{}> {
|
|
22
20
|
if (typeof prompt === 'undefined') {
|
|
23
21
|
throw new AppwriteException('Missing required parameter: "prompt"');
|
|
24
22
|
}
|
|
@@ -33,10 +31,7 @@ export class Assistant {
|
|
|
33
31
|
'content-type': 'application/json',
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return await this.client.call(
|
|
34
|
+
return this.client.call(
|
|
40
35
|
'post',
|
|
41
36
|
uri,
|
|
42
37
|
apiHeaders,
|
package/src/services/avatars.ts
CHANGED
|
@@ -13,8 +13,6 @@ export class Avatars {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Get browser icon
|
|
17
|
-
*
|
|
18
16
|
* You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) endpoint. Use width, height and quality arguments to change the output settings.
|
|
19
17
|
|
|
20
18
|
When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
|
|
@@ -44,7 +42,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
44
42
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
45
43
|
|
|
46
44
|
const apiHeaders: { [header: string]: string } = {
|
|
47
|
-
'content-type': 'application/json',
|
|
48
45
|
}
|
|
49
46
|
|
|
50
47
|
payload['project'] = this.client.config.project;
|
|
@@ -52,12 +49,10 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
52
49
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
53
50
|
uri.searchParams.append(key, value);
|
|
54
51
|
}
|
|
55
|
-
|
|
52
|
+
|
|
56
53
|
return uri.toString();
|
|
57
54
|
}
|
|
58
55
|
/**
|
|
59
|
-
* Get credit card icon
|
|
60
|
-
*
|
|
61
56
|
* The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.
|
|
62
57
|
|
|
63
58
|
When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
|
|
@@ -88,7 +83,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
88
83
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
89
84
|
|
|
90
85
|
const apiHeaders: { [header: string]: string } = {
|
|
91
|
-
'content-type': 'application/json',
|
|
92
86
|
}
|
|
93
87
|
|
|
94
88
|
payload['project'] = this.client.config.project;
|
|
@@ -96,12 +90,10 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
96
90
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
97
91
|
uri.searchParams.append(key, value);
|
|
98
92
|
}
|
|
99
|
-
|
|
93
|
+
|
|
100
94
|
return uri.toString();
|
|
101
95
|
}
|
|
102
96
|
/**
|
|
103
|
-
* Get favicon
|
|
104
|
-
*
|
|
105
97
|
* Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.
|
|
106
98
|
|
|
107
99
|
This endpoint does not follow HTTP redirects.
|
|
@@ -122,7 +114,6 @@ This endpoint does not follow HTTP redirects.
|
|
|
122
114
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
123
115
|
|
|
124
116
|
const apiHeaders: { [header: string]: string } = {
|
|
125
|
-
'content-type': 'application/json',
|
|
126
117
|
}
|
|
127
118
|
|
|
128
119
|
payload['project'] = this.client.config.project;
|
|
@@ -130,12 +121,10 @@ This endpoint does not follow HTTP redirects.
|
|
|
130
121
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
131
122
|
uri.searchParams.append(key, value);
|
|
132
123
|
}
|
|
133
|
-
|
|
124
|
+
|
|
134
125
|
return uri.toString();
|
|
135
126
|
}
|
|
136
127
|
/**
|
|
137
|
-
* Get country flag
|
|
138
|
-
*
|
|
139
128
|
* You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings. Country codes follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.
|
|
140
129
|
|
|
141
130
|
When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
|
|
@@ -166,7 +155,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
166
155
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
167
156
|
|
|
168
157
|
const apiHeaders: { [header: string]: string } = {
|
|
169
|
-
'content-type': 'application/json',
|
|
170
158
|
}
|
|
171
159
|
|
|
172
160
|
payload['project'] = this.client.config.project;
|
|
@@ -174,12 +162,10 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
174
162
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
175
163
|
uri.searchParams.append(key, value);
|
|
176
164
|
}
|
|
177
|
-
|
|
165
|
+
|
|
178
166
|
return uri.toString();
|
|
179
167
|
}
|
|
180
168
|
/**
|
|
181
|
-
* Get image from URL
|
|
182
|
-
*
|
|
183
169
|
* Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.
|
|
184
170
|
|
|
185
171
|
When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.
|
|
@@ -210,7 +196,6 @@ This endpoint does not follow HTTP redirects.
|
|
|
210
196
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
211
197
|
|
|
212
198
|
const apiHeaders: { [header: string]: string } = {
|
|
213
|
-
'content-type': 'application/json',
|
|
214
199
|
}
|
|
215
200
|
|
|
216
201
|
payload['project'] = this.client.config.project;
|
|
@@ -218,12 +203,10 @@ This endpoint does not follow HTTP redirects.
|
|
|
218
203
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
219
204
|
uri.searchParams.append(key, value);
|
|
220
205
|
}
|
|
221
|
-
|
|
206
|
+
|
|
222
207
|
return uri.toString();
|
|
223
208
|
}
|
|
224
209
|
/**
|
|
225
|
-
* Get user initials
|
|
226
|
-
*
|
|
227
210
|
* Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.
|
|
228
211
|
|
|
229
212
|
You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.
|
|
@@ -256,7 +239,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
256
239
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
257
240
|
|
|
258
241
|
const apiHeaders: { [header: string]: string } = {
|
|
259
|
-
'content-type': 'application/json',
|
|
260
242
|
}
|
|
261
243
|
|
|
262
244
|
payload['project'] = this.client.config.project;
|
|
@@ -264,12 +246,10 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
264
246
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
265
247
|
uri.searchParams.append(key, value);
|
|
266
248
|
}
|
|
267
|
-
|
|
249
|
+
|
|
268
250
|
return uri.toString();
|
|
269
251
|
}
|
|
270
252
|
/**
|
|
271
|
-
* Get QR code
|
|
272
|
-
*
|
|
273
253
|
* Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.
|
|
274
254
|
|
|
275
255
|
*
|
|
@@ -301,7 +281,6 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
301
281
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
302
282
|
|
|
303
283
|
const apiHeaders: { [header: string]: string } = {
|
|
304
|
-
'content-type': 'application/json',
|
|
305
284
|
}
|
|
306
285
|
|
|
307
286
|
payload['project'] = this.client.config.project;
|
|
@@ -309,7 +288,7 @@ When one dimension is specified and the other is 0, the image is scaled with pre
|
|
|
309
288
|
for (const [key, value] of Object.entries(Service.flatten(payload))) {
|
|
310
289
|
uri.searchParams.append(key, value);
|
|
311
290
|
}
|
|
312
|
-
|
|
291
|
+
|
|
313
292
|
return uri.toString();
|
|
314
293
|
}
|
|
315
294
|
}
|
package/src/services/backups.ts
CHANGED
|
@@ -10,15 +10,13 @@ export class Backups {
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* List archives
|
|
14
|
-
*
|
|
15
13
|
* List all archives for a project.
|
|
16
14
|
*
|
|
17
15
|
* @param {string[]} queries
|
|
18
16
|
* @throws {AppwriteException}
|
|
19
17
|
* @returns {Promise<Models.BackupArchiveList>}
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
listArchives(queries?: string[]): Promise<Models.BackupArchiveList> {
|
|
22
20
|
const apiPath = '/backups/archives';
|
|
23
21
|
const payload: Payload = {};
|
|
24
22
|
if (typeof queries !== 'undefined') {
|
|
@@ -27,13 +25,9 @@ export class Backups {
|
|
|
27
25
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
28
26
|
|
|
29
27
|
const apiHeaders: { [header: string]: string } = {
|
|
30
|
-
'content-type': 'application/json',
|
|
31
28
|
}
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
return await this.client.call(
|
|
30
|
+
return this.client.call(
|
|
37
31
|
'get',
|
|
38
32
|
uri,
|
|
39
33
|
apiHeaders,
|
|
@@ -41,8 +35,6 @@ export class Backups {
|
|
|
41
35
|
);
|
|
42
36
|
}
|
|
43
37
|
/**
|
|
44
|
-
* Create archive
|
|
45
|
-
*
|
|
46
38
|
* Create a new archive asynchronously for a project.
|
|
47
39
|
*
|
|
48
40
|
* @param {string[]} services
|
|
@@ -50,7 +42,7 @@ export class Backups {
|
|
|
50
42
|
* @throws {AppwriteException}
|
|
51
43
|
* @returns {Promise<Models.BackupArchive>}
|
|
52
44
|
*/
|
|
53
|
-
|
|
45
|
+
createArchive(services: string[], resourceId?: string): Promise<Models.BackupArchive> {
|
|
54
46
|
if (typeof services === 'undefined') {
|
|
55
47
|
throw new AppwriteException('Missing required parameter: "services"');
|
|
56
48
|
}
|
|
@@ -68,10 +60,7 @@ export class Backups {
|
|
|
68
60
|
'content-type': 'application/json',
|
|
69
61
|
}
|
|
70
62
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return await this.client.call(
|
|
63
|
+
return this.client.call(
|
|
75
64
|
'post',
|
|
76
65
|
uri,
|
|
77
66
|
apiHeaders,
|
|
@@ -79,15 +68,13 @@ export class Backups {
|
|
|
79
68
|
);
|
|
80
69
|
}
|
|
81
70
|
/**
|
|
82
|
-
* Get backup archive
|
|
83
|
-
*
|
|
84
71
|
* Get a backup archive using it's ID.
|
|
85
72
|
*
|
|
86
73
|
* @param {string} archiveId
|
|
87
74
|
* @throws {AppwriteException}
|
|
88
75
|
* @returns {Promise<Models.BackupArchive>}
|
|
89
76
|
*/
|
|
90
|
-
|
|
77
|
+
getArchive(archiveId: string): Promise<Models.BackupArchive> {
|
|
91
78
|
if (typeof archiveId === 'undefined') {
|
|
92
79
|
throw new AppwriteException('Missing required parameter: "archiveId"');
|
|
93
80
|
}
|
|
@@ -96,13 +83,9 @@ export class Backups {
|
|
|
96
83
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
97
84
|
|
|
98
85
|
const apiHeaders: { [header: string]: string } = {
|
|
99
|
-
'content-type': 'application/json',
|
|
100
86
|
}
|
|
101
87
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return await this.client.call(
|
|
88
|
+
return this.client.call(
|
|
106
89
|
'get',
|
|
107
90
|
uri,
|
|
108
91
|
apiHeaders,
|
|
@@ -110,15 +93,13 @@ export class Backups {
|
|
|
110
93
|
);
|
|
111
94
|
}
|
|
112
95
|
/**
|
|
113
|
-
* Delete archive
|
|
114
|
-
*
|
|
115
96
|
* Delete an existing archive for a project.
|
|
116
97
|
*
|
|
117
98
|
* @param {string} archiveId
|
|
118
99
|
* @throws {AppwriteException}
|
|
119
100
|
* @returns {Promise<{}>}
|
|
120
101
|
*/
|
|
121
|
-
|
|
102
|
+
deleteArchive(archiveId: string): Promise<{}> {
|
|
122
103
|
if (typeof archiveId === 'undefined') {
|
|
123
104
|
throw new AppwriteException('Missing required parameter: "archiveId"');
|
|
124
105
|
}
|
|
@@ -130,10 +111,7 @@ export class Backups {
|
|
|
130
111
|
'content-type': 'application/json',
|
|
131
112
|
}
|
|
132
113
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
return await this.client.call(
|
|
114
|
+
return this.client.call(
|
|
137
115
|
'delete',
|
|
138
116
|
uri,
|
|
139
117
|
apiHeaders,
|
|
@@ -141,15 +119,13 @@ export class Backups {
|
|
|
141
119
|
);
|
|
142
120
|
}
|
|
143
121
|
/**
|
|
144
|
-
* List backup policies
|
|
145
|
-
*
|
|
146
122
|
* List all policies for a project.
|
|
147
123
|
*
|
|
148
124
|
* @param {string[]} queries
|
|
149
125
|
* @throws {AppwriteException}
|
|
150
126
|
* @returns {Promise<Models.BackupPolicyList>}
|
|
151
127
|
*/
|
|
152
|
-
|
|
128
|
+
listPolicies(queries?: string[]): Promise<Models.BackupPolicyList> {
|
|
153
129
|
const apiPath = '/backups/policies';
|
|
154
130
|
const payload: Payload = {};
|
|
155
131
|
if (typeof queries !== 'undefined') {
|
|
@@ -158,13 +134,9 @@ export class Backups {
|
|
|
158
134
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
159
135
|
|
|
160
136
|
const apiHeaders: { [header: string]: string } = {
|
|
161
|
-
'content-type': 'application/json',
|
|
162
137
|
}
|
|
163
138
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
return await this.client.call(
|
|
139
|
+
return this.client.call(
|
|
168
140
|
'get',
|
|
169
141
|
uri,
|
|
170
142
|
apiHeaders,
|
|
@@ -172,8 +144,6 @@ export class Backups {
|
|
|
172
144
|
);
|
|
173
145
|
}
|
|
174
146
|
/**
|
|
175
|
-
* Create backup policy
|
|
176
|
-
*
|
|
177
147
|
* Create a new backup policy.
|
|
178
148
|
*
|
|
179
149
|
* @param {string} policyId
|
|
@@ -186,7 +156,7 @@ export class Backups {
|
|
|
186
156
|
* @throws {AppwriteException}
|
|
187
157
|
* @returns {Promise<Models.BackupPolicy>}
|
|
188
158
|
*/
|
|
189
|
-
|
|
159
|
+
createPolicy(policyId: string, services: string[], retention: number, schedule: string, name?: string, resourceId?: string, enabled?: boolean): Promise<Models.BackupPolicy> {
|
|
190
160
|
if (typeof policyId === 'undefined') {
|
|
191
161
|
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
192
162
|
}
|
|
@@ -228,10 +198,7 @@ export class Backups {
|
|
|
228
198
|
'content-type': 'application/json',
|
|
229
199
|
}
|
|
230
200
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
return await this.client.call(
|
|
201
|
+
return this.client.call(
|
|
235
202
|
'post',
|
|
236
203
|
uri,
|
|
237
204
|
apiHeaders,
|
|
@@ -239,15 +206,13 @@ export class Backups {
|
|
|
239
206
|
);
|
|
240
207
|
}
|
|
241
208
|
/**
|
|
242
|
-
* Get backup policy
|
|
243
|
-
*
|
|
244
209
|
* Get a backup policy using it's ID.
|
|
245
210
|
*
|
|
246
211
|
* @param {string} policyId
|
|
247
212
|
* @throws {AppwriteException}
|
|
248
213
|
* @returns {Promise<Models.BackupPolicy>}
|
|
249
214
|
*/
|
|
250
|
-
|
|
215
|
+
getPolicy(policyId: string): Promise<Models.BackupPolicy> {
|
|
251
216
|
if (typeof policyId === 'undefined') {
|
|
252
217
|
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
253
218
|
}
|
|
@@ -256,13 +221,9 @@ export class Backups {
|
|
|
256
221
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
257
222
|
|
|
258
223
|
const apiHeaders: { [header: string]: string } = {
|
|
259
|
-
'content-type': 'application/json',
|
|
260
224
|
}
|
|
261
225
|
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return await this.client.call(
|
|
226
|
+
return this.client.call(
|
|
266
227
|
'get',
|
|
267
228
|
uri,
|
|
268
229
|
apiHeaders,
|
|
@@ -270,8 +231,6 @@ export class Backups {
|
|
|
270
231
|
);
|
|
271
232
|
}
|
|
272
233
|
/**
|
|
273
|
-
* Update backup policy
|
|
274
|
-
*
|
|
275
234
|
* Update an existing policy using it's ID.
|
|
276
235
|
*
|
|
277
236
|
* @param {string} policyId
|
|
@@ -282,7 +241,7 @@ export class Backups {
|
|
|
282
241
|
* @throws {AppwriteException}
|
|
283
242
|
* @returns {Promise<Models.BackupPolicy>}
|
|
284
243
|
*/
|
|
285
|
-
|
|
244
|
+
updatePolicy(policyId: string, name?: string, retention?: number, schedule?: string, enabled?: boolean): Promise<Models.BackupPolicy> {
|
|
286
245
|
if (typeof policyId === 'undefined') {
|
|
287
246
|
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
288
247
|
}
|
|
@@ -306,10 +265,7 @@ export class Backups {
|
|
|
306
265
|
'content-type': 'application/json',
|
|
307
266
|
}
|
|
308
267
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
return await this.client.call(
|
|
268
|
+
return this.client.call(
|
|
313
269
|
'patch',
|
|
314
270
|
uri,
|
|
315
271
|
apiHeaders,
|
|
@@ -317,15 +273,13 @@ export class Backups {
|
|
|
317
273
|
);
|
|
318
274
|
}
|
|
319
275
|
/**
|
|
320
|
-
* Delete backup policy
|
|
321
|
-
*
|
|
322
276
|
* Delete a policy using it's ID.
|
|
323
277
|
*
|
|
324
278
|
* @param {string} policyId
|
|
325
279
|
* @throws {AppwriteException}
|
|
326
280
|
* @returns {Promise<{}>}
|
|
327
281
|
*/
|
|
328
|
-
|
|
282
|
+
deletePolicy(policyId: string): Promise<{}> {
|
|
329
283
|
if (typeof policyId === 'undefined') {
|
|
330
284
|
throw new AppwriteException('Missing required parameter: "policyId"');
|
|
331
285
|
}
|
|
@@ -337,10 +291,7 @@ export class Backups {
|
|
|
337
291
|
'content-type': 'application/json',
|
|
338
292
|
}
|
|
339
293
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
return await this.client.call(
|
|
294
|
+
return this.client.call(
|
|
344
295
|
'delete',
|
|
345
296
|
uri,
|
|
346
297
|
apiHeaders,
|
|
@@ -348,8 +299,6 @@ export class Backups {
|
|
|
348
299
|
);
|
|
349
300
|
}
|
|
350
301
|
/**
|
|
351
|
-
* Create restoration
|
|
352
|
-
*
|
|
353
302
|
* Create and trigger a new restoration for a backup on a project.
|
|
354
303
|
*
|
|
355
304
|
* @param {string} archiveId
|
|
@@ -359,7 +308,7 @@ export class Backups {
|
|
|
359
308
|
* @throws {AppwriteException}
|
|
360
309
|
* @returns {Promise<Models.BackupRestoration>}
|
|
361
310
|
*/
|
|
362
|
-
|
|
311
|
+
createRestoration(archiveId: string, services: string[], newResourceId?: string, newResourceName?: string): Promise<Models.BackupRestoration> {
|
|
363
312
|
if (typeof archiveId === 'undefined') {
|
|
364
313
|
throw new AppwriteException('Missing required parameter: "archiveId"');
|
|
365
314
|
}
|
|
@@ -386,10 +335,7 @@ export class Backups {
|
|
|
386
335
|
'content-type': 'application/json',
|
|
387
336
|
}
|
|
388
337
|
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
return await this.client.call(
|
|
338
|
+
return this.client.call(
|
|
393
339
|
'post',
|
|
394
340
|
uri,
|
|
395
341
|
apiHeaders,
|
|
@@ -397,15 +343,13 @@ export class Backups {
|
|
|
397
343
|
);
|
|
398
344
|
}
|
|
399
345
|
/**
|
|
400
|
-
* List restorations
|
|
401
|
-
*
|
|
402
346
|
* List all backup restorations for a project.
|
|
403
347
|
*
|
|
404
348
|
* @param {string[]} queries
|
|
405
349
|
* @throws {AppwriteException}
|
|
406
350
|
* @returns {Promise<Models.BackupRestorationList>}
|
|
407
351
|
*/
|
|
408
|
-
|
|
352
|
+
listRestorations(queries?: string[]): Promise<Models.BackupRestorationList> {
|
|
409
353
|
const apiPath = '/backups/restorations';
|
|
410
354
|
const payload: Payload = {};
|
|
411
355
|
if (typeof queries !== 'undefined') {
|
|
@@ -414,13 +358,9 @@ export class Backups {
|
|
|
414
358
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
415
359
|
|
|
416
360
|
const apiHeaders: { [header: string]: string } = {
|
|
417
|
-
'content-type': 'application/json',
|
|
418
361
|
}
|
|
419
362
|
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
return await this.client.call(
|
|
363
|
+
return this.client.call(
|
|
424
364
|
'get',
|
|
425
365
|
uri,
|
|
426
366
|
apiHeaders,
|
|
@@ -428,15 +368,13 @@ export class Backups {
|
|
|
428
368
|
);
|
|
429
369
|
}
|
|
430
370
|
/**
|
|
431
|
-
* Get backup restoration
|
|
432
|
-
*
|
|
433
371
|
* Get the current status of a backup restoration.
|
|
434
372
|
*
|
|
435
373
|
* @param {string} restorationId
|
|
436
374
|
* @throws {AppwriteException}
|
|
437
375
|
* @returns {Promise<Models.BackupRestoration>}
|
|
438
376
|
*/
|
|
439
|
-
|
|
377
|
+
getRestoration(restorationId: string): Promise<Models.BackupRestoration> {
|
|
440
378
|
if (typeof restorationId === 'undefined') {
|
|
441
379
|
throw new AppwriteException('Missing required parameter: "restorationId"');
|
|
442
380
|
}
|
|
@@ -445,13 +383,9 @@ export class Backups {
|
|
|
445
383
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
446
384
|
|
|
447
385
|
const apiHeaders: { [header: string]: string } = {
|
|
448
|
-
'content-type': 'application/json',
|
|
449
386
|
}
|
|
450
387
|
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
return await this.client.call(
|
|
388
|
+
return this.client.call(
|
|
455
389
|
'get',
|
|
456
390
|
uri,
|
|
457
391
|
apiHeaders,
|