@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
|
@@ -15,8 +15,6 @@ export declare class Projects {
|
|
|
15
15
|
client: Client;
|
|
16
16
|
constructor(client: Client);
|
|
17
17
|
/**
|
|
18
|
-
* List projects
|
|
19
|
-
*
|
|
20
18
|
* Get a list of all projects. You can use the query params to filter your results.
|
|
21
19
|
*
|
|
22
20
|
* @param {string[]} queries
|
|
@@ -26,8 +24,6 @@ export declare class Projects {
|
|
|
26
24
|
*/
|
|
27
25
|
list(queries?: string[], search?: string): Promise<Models.ProjectList>;
|
|
28
26
|
/**
|
|
29
|
-
* Create project
|
|
30
|
-
*
|
|
31
27
|
* Create a new project. You can create a maximum of 100 projects per account.
|
|
32
28
|
*
|
|
33
29
|
* @param {string} projectId
|
|
@@ -48,8 +44,6 @@ export declare class Projects {
|
|
|
48
44
|
*/
|
|
49
45
|
create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
50
46
|
/**
|
|
51
|
-
* Get project
|
|
52
|
-
*
|
|
53
47
|
* Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata.
|
|
54
48
|
*
|
|
55
49
|
* @param {string} projectId
|
|
@@ -58,8 +52,6 @@ export declare class Projects {
|
|
|
58
52
|
*/
|
|
59
53
|
get(projectId: string): Promise<Models.Project>;
|
|
60
54
|
/**
|
|
61
|
-
* Update project
|
|
62
|
-
*
|
|
63
55
|
* Update a project by its unique ID.
|
|
64
56
|
*
|
|
65
57
|
* @param {string} projectId
|
|
@@ -78,8 +70,6 @@ export declare class Projects {
|
|
|
78
70
|
*/
|
|
79
71
|
update(projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
|
80
72
|
/**
|
|
81
|
-
* Delete project
|
|
82
|
-
*
|
|
83
73
|
* Delete a project by its unique ID.
|
|
84
74
|
*
|
|
85
75
|
* @param {string} projectId
|
|
@@ -88,8 +78,6 @@ export declare class Projects {
|
|
|
88
78
|
*/
|
|
89
79
|
delete(projectId: string): Promise<{}>;
|
|
90
80
|
/**
|
|
91
|
-
* Update API status
|
|
92
|
-
*
|
|
93
81
|
* Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
|
|
94
82
|
*
|
|
95
83
|
* @param {string} projectId
|
|
@@ -100,8 +88,6 @@ export declare class Projects {
|
|
|
100
88
|
*/
|
|
101
89
|
updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project>;
|
|
102
90
|
/**
|
|
103
|
-
* Update all API status
|
|
104
|
-
*
|
|
105
91
|
* Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.
|
|
106
92
|
*
|
|
107
93
|
* @param {string} projectId
|
|
@@ -111,8 +97,6 @@ export declare class Projects {
|
|
|
111
97
|
*/
|
|
112
98
|
updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
|
113
99
|
/**
|
|
114
|
-
* Update project authentication duration
|
|
115
|
-
*
|
|
116
100
|
* Update how long sessions created within a project should stay active for.
|
|
117
101
|
*
|
|
118
102
|
* @param {string} projectId
|
|
@@ -122,8 +106,6 @@ export declare class Projects {
|
|
|
122
106
|
*/
|
|
123
107
|
updateAuthDuration(projectId: string, duration: number): Promise<Models.Project>;
|
|
124
108
|
/**
|
|
125
|
-
* Update project users limit
|
|
126
|
-
*
|
|
127
109
|
* Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
|
|
128
110
|
*
|
|
129
111
|
* @param {string} projectId
|
|
@@ -133,8 +115,6 @@ export declare class Projects {
|
|
|
133
115
|
*/
|
|
134
116
|
updateAuthLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
135
117
|
/**
|
|
136
|
-
* Update project user sessions limit
|
|
137
|
-
*
|
|
138
118
|
* Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.
|
|
139
119
|
*
|
|
140
120
|
* @param {string} projectId
|
|
@@ -144,8 +124,6 @@ export declare class Projects {
|
|
|
144
124
|
*/
|
|
145
125
|
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
|
|
146
126
|
/**
|
|
147
|
-
* Update project memberships privacy attributes
|
|
148
|
-
*
|
|
149
127
|
* Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status.
|
|
150
128
|
*
|
|
151
129
|
* @param {string} projectId
|
|
@@ -157,8 +135,6 @@ export declare class Projects {
|
|
|
157
135
|
*/
|
|
158
136
|
updateMembershipsPrivacy(projectId: string, userName: boolean, userEmail: boolean, mfa: boolean): Promise<Models.Project>;
|
|
159
137
|
/**
|
|
160
|
-
* Update the mock numbers for the project
|
|
161
|
-
*
|
|
162
138
|
* Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
|
|
163
139
|
*
|
|
164
140
|
* @param {string} projectId
|
|
@@ -168,8 +144,6 @@ export declare class Projects {
|
|
|
168
144
|
*/
|
|
169
145
|
updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project>;
|
|
170
146
|
/**
|
|
171
|
-
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
|
172
|
-
*
|
|
173
147
|
* Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords.
|
|
174
148
|
*
|
|
175
149
|
* @param {string} projectId
|
|
@@ -179,8 +153,6 @@ export declare class Projects {
|
|
|
179
153
|
*/
|
|
180
154
|
updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project>;
|
|
181
155
|
/**
|
|
182
|
-
* Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
|
|
183
|
-
*
|
|
184
156
|
* Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.
|
|
185
157
|
*
|
|
186
158
|
* @param {string} projectId
|
|
@@ -190,8 +162,6 @@ export declare class Projects {
|
|
|
190
162
|
*/
|
|
191
163
|
updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project>;
|
|
192
164
|
/**
|
|
193
|
-
* Enable or disable checking user passwords for similarity with their personal data.
|
|
194
|
-
*
|
|
195
165
|
* Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
|
|
196
166
|
*
|
|
197
167
|
* @param {string} projectId
|
|
@@ -201,8 +171,6 @@ export declare class Projects {
|
|
|
201
171
|
*/
|
|
202
172
|
updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project>;
|
|
203
173
|
/**
|
|
204
|
-
* Update project sessions emails
|
|
205
|
-
*
|
|
206
174
|
* Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
|
|
207
175
|
*
|
|
208
176
|
* @param {string} projectId
|
|
@@ -212,8 +180,6 @@ export declare class Projects {
|
|
|
212
180
|
*/
|
|
213
181
|
updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project>;
|
|
214
182
|
/**
|
|
215
|
-
* Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
|
216
|
-
*
|
|
217
183
|
* Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
|
|
218
184
|
*
|
|
219
185
|
* @param {string} projectId
|
|
@@ -224,8 +190,54 @@ export declare class Projects {
|
|
|
224
190
|
*/
|
|
225
191
|
updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
|
|
226
192
|
/**
|
|
227
|
-
*
|
|
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.
|
|
228
233
|
*
|
|
234
|
+
* @param {string} projectId
|
|
235
|
+
* @param {string} keyId
|
|
236
|
+
* @throws {AppwriteException}
|
|
237
|
+
* @returns {Promise<{}>}
|
|
238
|
+
*/
|
|
239
|
+
deleteDevKey(projectId: string, keyId: string): Promise<{}>;
|
|
240
|
+
/**
|
|
229
241
|
* Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
|
|
230
242
|
*
|
|
231
243
|
* @param {string} projectId
|
|
@@ -236,8 +248,6 @@ export declare class Projects {
|
|
|
236
248
|
*/
|
|
237
249
|
createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt>;
|
|
238
250
|
/**
|
|
239
|
-
* List keys
|
|
240
|
-
*
|
|
241
251
|
* Get a list of all API keys from the current project.
|
|
242
252
|
*
|
|
243
253
|
* @param {string} projectId
|
|
@@ -246,8 +256,6 @@ export declare class Projects {
|
|
|
246
256
|
*/
|
|
247
257
|
listKeys(projectId: string): Promise<Models.KeyList>;
|
|
248
258
|
/**
|
|
249
|
-
* Create key
|
|
250
|
-
*
|
|
251
259
|
* Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
|
|
252
260
|
*
|
|
253
261
|
* @param {string} projectId
|
|
@@ -259,8 +267,6 @@ export declare class Projects {
|
|
|
259
267
|
*/
|
|
260
268
|
createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
|
261
269
|
/**
|
|
262
|
-
* Get key
|
|
263
|
-
*
|
|
264
270
|
* Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
|
|
265
271
|
*
|
|
266
272
|
* @param {string} projectId
|
|
@@ -270,8 +276,6 @@ export declare class Projects {
|
|
|
270
276
|
*/
|
|
271
277
|
getKey(projectId: string, keyId: string): Promise<Models.Key>;
|
|
272
278
|
/**
|
|
273
|
-
* Update key
|
|
274
|
-
*
|
|
275
279
|
* Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
|
|
276
280
|
*
|
|
277
281
|
* @param {string} projectId
|
|
@@ -284,8 +288,6 @@ export declare class Projects {
|
|
|
284
288
|
*/
|
|
285
289
|
updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
|
286
290
|
/**
|
|
287
|
-
* Delete key
|
|
288
|
-
*
|
|
289
291
|
* Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
|
|
290
292
|
*
|
|
291
293
|
* @param {string} projectId
|
|
@@ -295,8 +297,6 @@ export declare class Projects {
|
|
|
295
297
|
*/
|
|
296
298
|
deleteKey(projectId: string, keyId: string): Promise<{}>;
|
|
297
299
|
/**
|
|
298
|
-
* Update project OAuth2
|
|
299
|
-
*
|
|
300
300
|
* Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
|
|
301
301
|
*
|
|
302
302
|
* @param {string} projectId
|
|
@@ -309,8 +309,6 @@ export declare class Projects {
|
|
|
309
309
|
*/
|
|
310
310
|
updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
|
|
311
311
|
/**
|
|
312
|
-
* List platforms
|
|
313
|
-
*
|
|
314
312
|
* Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
|
|
315
313
|
*
|
|
316
314
|
* @param {string} projectId
|
|
@@ -319,8 +317,6 @@ export declare class Projects {
|
|
|
319
317
|
*/
|
|
320
318
|
listPlatforms(projectId: string): Promise<Models.PlatformList>;
|
|
321
319
|
/**
|
|
322
|
-
* Create platform
|
|
323
|
-
*
|
|
324
320
|
* Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.
|
|
325
321
|
*
|
|
326
322
|
* @param {string} projectId
|
|
@@ -334,8 +330,6 @@ export declare class Projects {
|
|
|
334
330
|
*/
|
|
335
331
|
createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
336
332
|
/**
|
|
337
|
-
* Get platform
|
|
338
|
-
*
|
|
339
333
|
* Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations.
|
|
340
334
|
*
|
|
341
335
|
* @param {string} projectId
|
|
@@ -345,8 +339,6 @@ export declare class Projects {
|
|
|
345
339
|
*/
|
|
346
340
|
getPlatform(projectId: string, platformId: string): Promise<Models.Platform>;
|
|
347
341
|
/**
|
|
348
|
-
* Update platform
|
|
349
|
-
*
|
|
350
342
|
* Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname.
|
|
351
343
|
*
|
|
352
344
|
* @param {string} projectId
|
|
@@ -360,8 +352,6 @@ export declare class Projects {
|
|
|
360
352
|
*/
|
|
361
353
|
updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
|
362
354
|
/**
|
|
363
|
-
* Delete platform
|
|
364
|
-
*
|
|
365
355
|
* Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
|
|
366
356
|
*
|
|
367
357
|
* @param {string} projectId
|
|
@@ -371,8 +361,6 @@ export declare class Projects {
|
|
|
371
361
|
*/
|
|
372
362
|
deletePlatform(projectId: string, platformId: string): Promise<{}>;
|
|
373
363
|
/**
|
|
374
|
-
* Update service status
|
|
375
|
-
*
|
|
376
364
|
* Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
|
|
377
365
|
*
|
|
378
366
|
* @param {string} projectId
|
|
@@ -383,8 +371,6 @@ export declare class Projects {
|
|
|
383
371
|
*/
|
|
384
372
|
updateServiceStatus(projectId: string, service: ApiService, status: boolean): Promise<Models.Project>;
|
|
385
373
|
/**
|
|
386
|
-
* Update all service status
|
|
387
|
-
*
|
|
388
374
|
* Update the status of all services. Use this endpoint to enable or disable all optional services at once.
|
|
389
375
|
*
|
|
390
376
|
* @param {string} projectId
|
|
@@ -394,8 +380,6 @@ export declare class Projects {
|
|
|
394
380
|
*/
|
|
395
381
|
updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
|
396
382
|
/**
|
|
397
|
-
* Update SMTP
|
|
398
|
-
*
|
|
399
383
|
* Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
|
|
400
384
|
*
|
|
401
385
|
* @param {string} projectId
|
|
@@ -413,8 +397,6 @@ export declare class Projects {
|
|
|
413
397
|
*/
|
|
414
398
|
updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project>;
|
|
415
399
|
/**
|
|
416
|
-
* Create SMTP test
|
|
417
|
-
*
|
|
418
400
|
* Send a test email to verify SMTP configuration.
|
|
419
401
|
*
|
|
420
402
|
* @param {string} projectId
|
|
@@ -432,8 +414,6 @@ export declare class Projects {
|
|
|
432
414
|
*/
|
|
433
415
|
createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
|
|
434
416
|
/**
|
|
435
|
-
* Update project team
|
|
436
|
-
*
|
|
437
417
|
* Update the team ID of a project allowing for it to be transferred to another team.
|
|
438
418
|
*
|
|
439
419
|
* @param {string} projectId
|
|
@@ -443,8 +423,6 @@ export declare class Projects {
|
|
|
443
423
|
*/
|
|
444
424
|
updateTeam(projectId: string, teamId: string): Promise<Models.Project>;
|
|
445
425
|
/**
|
|
446
|
-
* Get custom email template
|
|
447
|
-
*
|
|
448
426
|
* Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
|
|
449
427
|
*
|
|
450
428
|
* @param {string} projectId
|
|
@@ -455,8 +433,6 @@ export declare class Projects {
|
|
|
455
433
|
*/
|
|
456
434
|
getEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
|
|
457
435
|
/**
|
|
458
|
-
* Update custom email templates
|
|
459
|
-
*
|
|
460
436
|
* Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
|
|
461
437
|
*
|
|
462
438
|
* @param {string} projectId
|
|
@@ -472,8 +448,6 @@ export declare class Projects {
|
|
|
472
448
|
*/
|
|
473
449
|
updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.EmailTemplate>;
|
|
474
450
|
/**
|
|
475
|
-
* Reset custom email template
|
|
476
|
-
*
|
|
477
451
|
* Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
|
|
478
452
|
*
|
|
479
453
|
* @param {string} projectId
|
|
@@ -484,8 +458,6 @@ export declare class Projects {
|
|
|
484
458
|
*/
|
|
485
459
|
deleteEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
|
|
486
460
|
/**
|
|
487
|
-
* Get custom SMS template
|
|
488
|
-
*
|
|
489
461
|
* Get a custom SMS template for the specified locale and type returning it's contents.
|
|
490
462
|
*
|
|
491
463
|
* @param {string} projectId
|
|
@@ -496,8 +468,6 @@ export declare class Projects {
|
|
|
496
468
|
*/
|
|
497
469
|
getSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
|
|
498
470
|
/**
|
|
499
|
-
* Update custom SMS template
|
|
500
|
-
*
|
|
501
471
|
* Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
|
|
502
472
|
*
|
|
503
473
|
* @param {string} projectId
|
|
@@ -509,8 +479,6 @@ export declare class Projects {
|
|
|
509
479
|
*/
|
|
510
480
|
updateSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string): Promise<Models.SmsTemplate>;
|
|
511
481
|
/**
|
|
512
|
-
* Reset custom SMS template
|
|
513
|
-
*
|
|
514
482
|
* Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
|
|
515
483
|
*
|
|
516
484
|
* @param {string} projectId
|
|
@@ -521,8 +489,6 @@ export declare class Projects {
|
|
|
521
489
|
*/
|
|
522
490
|
deleteSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
|
|
523
491
|
/**
|
|
524
|
-
* List webhooks
|
|
525
|
-
*
|
|
526
492
|
* Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
|
|
527
493
|
*
|
|
528
494
|
* @param {string} projectId
|
|
@@ -531,8 +497,6 @@ export declare class Projects {
|
|
|
531
497
|
*/
|
|
532
498
|
listWebhooks(projectId: string): Promise<Models.WebhookList>;
|
|
533
499
|
/**
|
|
534
|
-
* Create webhook
|
|
535
|
-
*
|
|
536
500
|
* Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
|
|
537
501
|
*
|
|
538
502
|
* @param {string} projectId
|
|
@@ -548,8 +512,6 @@ export declare class Projects {
|
|
|
548
512
|
*/
|
|
549
513
|
createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
|
550
514
|
/**
|
|
551
|
-
* Get webhook
|
|
552
|
-
*
|
|
553
515
|
* Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
|
|
554
516
|
*
|
|
555
517
|
* @param {string} projectId
|
|
@@ -559,8 +521,6 @@ export declare class Projects {
|
|
|
559
521
|
*/
|
|
560
522
|
getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
|
561
523
|
/**
|
|
562
|
-
* Update webhook
|
|
563
|
-
*
|
|
564
524
|
* Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
|
|
565
525
|
*
|
|
566
526
|
* @param {string} projectId
|
|
@@ -577,8 +537,6 @@ export declare class Projects {
|
|
|
577
537
|
*/
|
|
578
538
|
updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
|
579
539
|
/**
|
|
580
|
-
* Delete webhook
|
|
581
|
-
*
|
|
582
540
|
* Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
|
|
583
541
|
*
|
|
584
542
|
* @param {string} projectId
|
|
@@ -588,8 +546,6 @@ export declare class Projects {
|
|
|
588
546
|
*/
|
|
589
547
|
deleteWebhook(projectId: string, webhookId: string): Promise<{}>;
|
|
590
548
|
/**
|
|
591
|
-
* Update webhook signature key
|
|
592
|
-
*
|
|
593
549
|
* Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
|
|
594
550
|
*
|
|
595
551
|
* @param {string} projectId
|
|
@@ -1,12 +1,10 @@
|
|
|
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);
|
|
7
7
|
/**
|
|
8
|
-
* List rules
|
|
9
|
-
*
|
|
10
8
|
* Get a list of all the proxy rules. You can use the query params to filter your results.
|
|
11
9
|
*
|
|
12
10
|
* @param {string[]} queries
|
|
@@ -16,20 +14,44 @@ export declare class Proxy {
|
|
|
16
14
|
*/
|
|
17
15
|
listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
|
|
18
16
|
/**
|
|
19
|
-
* Create rule
|
|
17
|
+
* Create a new proxy rule for serving Appwrite's API on custom domain.
|
|
20
18
|
*
|
|
21
|
-
*
|
|
19
|
+
* @param {string} domain
|
|
20
|
+
* @throws {AppwriteException}
|
|
21
|
+
* @returns {Promise<Models.ProxyRule>}
|
|
22
|
+
*/
|
|
23
|
+
createAPIRule(domain: string): Promise<Models.ProxyRule>;
|
|
24
|
+
/**
|
|
25
|
+
* Create a new proxy rule for executing Appwrite Function on custom domain.
|
|
22
26
|
*
|
|
23
27
|
* @param {string} domain
|
|
24
|
-
* @param {
|
|
25
|
-
* @param {string}
|
|
28
|
+
* @param {string} functionId
|
|
29
|
+
* @param {string} branch
|
|
26
30
|
* @throws {AppwriteException}
|
|
27
31
|
* @returns {Promise<Models.ProxyRule>}
|
|
28
32
|
*/
|
|
29
|
-
|
|
33
|
+
createFunctionRule(domain: string, functionId: string, branch?: string): Promise<Models.ProxyRule>;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Create a new proxy rule for to redirect from custom domain to another domain.
|
|
32
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>;
|
|
54
|
+
/**
|
|
33
55
|
* Get a proxy rule by its unique ID.
|
|
34
56
|
*
|
|
35
57
|
* @param {string} ruleId
|
|
@@ -38,8 +60,6 @@ export declare class Proxy {
|
|
|
38
60
|
*/
|
|
39
61
|
getRule(ruleId: string): Promise<Models.ProxyRule>;
|
|
40
62
|
/**
|
|
41
|
-
* Delete rule
|
|
42
|
-
*
|
|
43
63
|
* Delete a proxy rule by its unique ID.
|
|
44
64
|
*
|
|
45
65
|
* @param {string} ruleId
|
|
@@ -48,8 +68,6 @@ export declare class Proxy {
|
|
|
48
68
|
*/
|
|
49
69
|
deleteRule(ruleId: string): Promise<{}>;
|
|
50
70
|
/**
|
|
51
|
-
* Update rule verification status
|
|
52
|
-
*
|
|
53
71
|
* Retry getting verification process of a proxy rule. This endpoint triggers domain verification by checking DNS records (CNAME) against the configured target domain. If verification is successful, a TLS certificate will be automatically provisioned for the domain.
|
|
54
72
|
*
|
|
55
73
|
* @param {string} ruleId
|