@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
|
@@ -8,8 +8,6 @@ export declare class Users {
|
|
|
8
8
|
client: Client;
|
|
9
9
|
constructor(client: Client);
|
|
10
10
|
/**
|
|
11
|
-
* List users
|
|
12
|
-
*
|
|
13
11
|
* Get a list of all the project's users. You can use the query params to filter your results.
|
|
14
12
|
*
|
|
15
13
|
* @param {string[]} queries
|
|
@@ -19,8 +17,6 @@ export declare class Users {
|
|
|
19
17
|
*/
|
|
20
18
|
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.UserList<Preferences>>;
|
|
21
19
|
/**
|
|
22
|
-
* Create user
|
|
23
|
-
*
|
|
24
20
|
* Create a new user.
|
|
25
21
|
*
|
|
26
22
|
* @param {string} userId
|
|
@@ -33,8 +29,6 @@ export declare class Users {
|
|
|
33
29
|
*/
|
|
34
30
|
create<Preferences extends Models.Preferences>(userId: string, email?: string, phone?: string, password?: string, name?: string): Promise<Models.User<Preferences>>;
|
|
35
31
|
/**
|
|
36
|
-
* Create user with Argon2 password
|
|
37
|
-
*
|
|
38
32
|
* Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
39
33
|
*
|
|
40
34
|
* @param {string} userId
|
|
@@ -46,8 +40,6 @@ export declare class Users {
|
|
|
46
40
|
*/
|
|
47
41
|
createArgon2User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
48
42
|
/**
|
|
49
|
-
* Create user with bcrypt password
|
|
50
|
-
*
|
|
51
43
|
* Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
52
44
|
*
|
|
53
45
|
* @param {string} userId
|
|
@@ -59,8 +51,6 @@ export declare class Users {
|
|
|
59
51
|
*/
|
|
60
52
|
createBcryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
61
53
|
/**
|
|
62
|
-
* List identities
|
|
63
|
-
*
|
|
64
54
|
* Get identities for all users.
|
|
65
55
|
*
|
|
66
56
|
* @param {string[]} queries
|
|
@@ -70,8 +60,6 @@ export declare class Users {
|
|
|
70
60
|
*/
|
|
71
61
|
listIdentities(queries?: string[], search?: string): Promise<Models.IdentityList>;
|
|
72
62
|
/**
|
|
73
|
-
* Delete identity
|
|
74
|
-
*
|
|
75
63
|
* Delete an identity by its unique ID.
|
|
76
64
|
*
|
|
77
65
|
* @param {string} identityId
|
|
@@ -80,8 +68,6 @@ export declare class Users {
|
|
|
80
68
|
*/
|
|
81
69
|
deleteIdentity(identityId: string): Promise<{}>;
|
|
82
70
|
/**
|
|
83
|
-
* Create user with MD5 password
|
|
84
|
-
*
|
|
85
71
|
* Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
86
72
|
*
|
|
87
73
|
* @param {string} userId
|
|
@@ -93,8 +79,6 @@ export declare class Users {
|
|
|
93
79
|
*/
|
|
94
80
|
createMD5User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
95
81
|
/**
|
|
96
|
-
* Create user with PHPass password
|
|
97
|
-
*
|
|
98
82
|
* Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
99
83
|
*
|
|
100
84
|
* @param {string} userId
|
|
@@ -106,8 +90,6 @@ export declare class Users {
|
|
|
106
90
|
*/
|
|
107
91
|
createPHPassUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
|
108
92
|
/**
|
|
109
|
-
* Create user with Scrypt password
|
|
110
|
-
*
|
|
111
93
|
* Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
112
94
|
*
|
|
113
95
|
* @param {string} userId
|
|
@@ -124,8 +106,6 @@ export declare class Users {
|
|
|
124
106
|
*/
|
|
125
107
|
createScryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordCpu: number, passwordMemory: number, passwordParallel: number, passwordLength: number, name?: string): Promise<Models.User<Preferences>>;
|
|
126
108
|
/**
|
|
127
|
-
* Create user with Scrypt modified password
|
|
128
|
-
*
|
|
129
109
|
* Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
130
110
|
*
|
|
131
111
|
* @param {string} userId
|
|
@@ -140,8 +120,6 @@ export declare class Users {
|
|
|
140
120
|
*/
|
|
141
121
|
createScryptModifiedUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string): Promise<Models.User<Preferences>>;
|
|
142
122
|
/**
|
|
143
|
-
* Create user with SHA password
|
|
144
|
-
*
|
|
145
123
|
* Create a new user. Password provided must be hashed with the [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
|
146
124
|
*
|
|
147
125
|
* @param {string} userId
|
|
@@ -154,8 +132,6 @@ export declare class Users {
|
|
|
154
132
|
*/
|
|
155
133
|
createSHAUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordVersion?: PasswordHash, name?: string): Promise<Models.User<Preferences>>;
|
|
156
134
|
/**
|
|
157
|
-
* Get users usage stats
|
|
158
|
-
*
|
|
159
135
|
* Get usage metrics and statistics for all users in the project. You can view the total number of users and sessions. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.
|
|
160
136
|
|
|
161
137
|
*
|
|
@@ -165,8 +141,6 @@ export declare class Users {
|
|
|
165
141
|
*/
|
|
166
142
|
getUsage(range?: UserUsageRange): Promise<Models.UsageUsers>;
|
|
167
143
|
/**
|
|
168
|
-
* Get user
|
|
169
|
-
*
|
|
170
144
|
* Get a user by its unique ID.
|
|
171
145
|
*
|
|
172
146
|
* @param {string} userId
|
|
@@ -175,8 +149,6 @@ export declare class Users {
|
|
|
175
149
|
*/
|
|
176
150
|
get<Preferences extends Models.Preferences>(userId: string): Promise<Models.User<Preferences>>;
|
|
177
151
|
/**
|
|
178
|
-
* Delete user
|
|
179
|
-
*
|
|
180
152
|
* Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus) endpoint instead.
|
|
181
153
|
*
|
|
182
154
|
* @param {string} userId
|
|
@@ -185,8 +157,6 @@ export declare class Users {
|
|
|
185
157
|
*/
|
|
186
158
|
delete(userId: string): Promise<{}>;
|
|
187
159
|
/**
|
|
188
|
-
* Update email
|
|
189
|
-
*
|
|
190
160
|
* Update the user email by its unique ID.
|
|
191
161
|
*
|
|
192
162
|
* @param {string} userId
|
|
@@ -196,8 +166,6 @@ export declare class Users {
|
|
|
196
166
|
*/
|
|
197
167
|
updateEmail<Preferences extends Models.Preferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
|
|
198
168
|
/**
|
|
199
|
-
* Create user JWT
|
|
200
|
-
*
|
|
201
169
|
* Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
|
|
202
170
|
*
|
|
203
171
|
* @param {string} userId
|
|
@@ -208,8 +176,6 @@ export declare class Users {
|
|
|
208
176
|
*/
|
|
209
177
|
createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt>;
|
|
210
178
|
/**
|
|
211
|
-
* Update user labels
|
|
212
|
-
*
|
|
213
179
|
* Update the user labels by its unique ID.
|
|
214
180
|
|
|
215
181
|
Labels can be used to grant access to resources. While teams are a way for user's to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the [Permissions docs](https://appwrite.io/docs/permissions) for more info.
|
|
@@ -221,8 +187,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
221
187
|
*/
|
|
222
188
|
updateLabels<Preferences extends Models.Preferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
|
|
223
189
|
/**
|
|
224
|
-
* List user logs
|
|
225
|
-
*
|
|
226
190
|
* Get the user activity logs list by its unique ID.
|
|
227
191
|
*
|
|
228
192
|
* @param {string} userId
|
|
@@ -232,18 +196,16 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
232
196
|
*/
|
|
233
197
|
listLogs(userId: string, queries?: string[]): Promise<Models.LogList>;
|
|
234
198
|
/**
|
|
235
|
-
* List user memberships
|
|
236
|
-
*
|
|
237
199
|
* Get the user membership list by its unique ID.
|
|
238
200
|
*
|
|
239
201
|
* @param {string} userId
|
|
202
|
+
* @param {string[]} queries
|
|
203
|
+
* @param {string} search
|
|
240
204
|
* @throws {AppwriteException}
|
|
241
205
|
* @returns {Promise<Models.MembershipList>}
|
|
242
206
|
*/
|
|
243
|
-
listMemberships(userId: string): Promise<Models.MembershipList>;
|
|
207
|
+
listMemberships(userId: string, queries?: string[], search?: string): Promise<Models.MembershipList>;
|
|
244
208
|
/**
|
|
245
|
-
* Update MFA
|
|
246
|
-
*
|
|
247
209
|
* Enable or disable MFA on a user account.
|
|
248
210
|
*
|
|
249
211
|
* @param {string} userId
|
|
@@ -253,8 +215,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
253
215
|
*/
|
|
254
216
|
updateMfa<Preferences extends Models.Preferences>(userId: string, mfa: boolean): Promise<Models.User<Preferences>>;
|
|
255
217
|
/**
|
|
256
|
-
* Delete authenticator
|
|
257
|
-
*
|
|
258
218
|
* Delete an authenticator app.
|
|
259
219
|
*
|
|
260
220
|
* @param {string} userId
|
|
@@ -264,8 +224,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
264
224
|
*/
|
|
265
225
|
deleteMfaAuthenticator(userId: string, type: AuthenticatorType): Promise<{}>;
|
|
266
226
|
/**
|
|
267
|
-
* List factors
|
|
268
|
-
*
|
|
269
227
|
* List the factors available on the account to be used as a MFA challange.
|
|
270
228
|
*
|
|
271
229
|
* @param {string} userId
|
|
@@ -274,8 +232,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
274
232
|
*/
|
|
275
233
|
listMfaFactors(userId: string): Promise<Models.MfaFactors>;
|
|
276
234
|
/**
|
|
277
|
-
* Get MFA recovery codes
|
|
278
|
-
*
|
|
279
235
|
* Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
280
236
|
*
|
|
281
237
|
* @param {string} userId
|
|
@@ -284,8 +240,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
284
240
|
*/
|
|
285
241
|
getMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
|
286
242
|
/**
|
|
287
|
-
* Regenerate MFA recovery codes
|
|
288
|
-
*
|
|
289
243
|
* Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
|
|
290
244
|
*
|
|
291
245
|
* @param {string} userId
|
|
@@ -294,8 +248,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
294
248
|
*/
|
|
295
249
|
updateMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
|
296
250
|
/**
|
|
297
|
-
* Create MFA recovery codes
|
|
298
|
-
*
|
|
299
251
|
* Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
|
|
300
252
|
*
|
|
301
253
|
* @param {string} userId
|
|
@@ -304,8 +256,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
304
256
|
*/
|
|
305
257
|
createMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
|
306
258
|
/**
|
|
307
|
-
* Update name
|
|
308
|
-
*
|
|
309
259
|
* Update the user name by its unique ID.
|
|
310
260
|
*
|
|
311
261
|
* @param {string} userId
|
|
@@ -315,8 +265,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
315
265
|
*/
|
|
316
266
|
updateName<Preferences extends Models.Preferences>(userId: string, name: string): Promise<Models.User<Preferences>>;
|
|
317
267
|
/**
|
|
318
|
-
* Update password
|
|
319
|
-
*
|
|
320
268
|
* Update the user password by its unique ID.
|
|
321
269
|
*
|
|
322
270
|
* @param {string} userId
|
|
@@ -326,8 +274,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
326
274
|
*/
|
|
327
275
|
updatePassword<Preferences extends Models.Preferences>(userId: string, password: string): Promise<Models.User<Preferences>>;
|
|
328
276
|
/**
|
|
329
|
-
* Update phone
|
|
330
|
-
*
|
|
331
277
|
* Update the user phone by its unique ID.
|
|
332
278
|
*
|
|
333
279
|
* @param {string} userId
|
|
@@ -337,8 +283,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
337
283
|
*/
|
|
338
284
|
updatePhone<Preferences extends Models.Preferences>(userId: string, number: string): Promise<Models.User<Preferences>>;
|
|
339
285
|
/**
|
|
340
|
-
* Get user preferences
|
|
341
|
-
*
|
|
342
286
|
* Get the user preferences by its unique ID.
|
|
343
287
|
*
|
|
344
288
|
* @param {string} userId
|
|
@@ -347,8 +291,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
347
291
|
*/
|
|
348
292
|
getPrefs<Preferences extends Models.Preferences>(userId: string): Promise<Preferences>;
|
|
349
293
|
/**
|
|
350
|
-
* Update user preferences
|
|
351
|
-
*
|
|
352
294
|
* Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
|
|
353
295
|
*
|
|
354
296
|
* @param {string} userId
|
|
@@ -358,8 +300,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
358
300
|
*/
|
|
359
301
|
updatePrefs<Preferences extends Models.Preferences>(userId: string, prefs: object): Promise<Preferences>;
|
|
360
302
|
/**
|
|
361
|
-
* List user sessions
|
|
362
|
-
*
|
|
363
303
|
* Get the user sessions list by its unique ID.
|
|
364
304
|
*
|
|
365
305
|
* @param {string} userId
|
|
@@ -368,8 +308,6 @@ Labels can be used to grant access to resources. While teams are a way for user&
|
|
|
368
308
|
*/
|
|
369
309
|
listSessions(userId: string): Promise<Models.SessionList>;
|
|
370
310
|
/**
|
|
371
|
-
* Create session
|
|
372
|
-
*
|
|
373
311
|
* Creates a session for a user. Returns an immediately usable session object.
|
|
374
312
|
|
|
375
313
|
If you want to generate a token for a custom authentication flow, use the [POST /users/{userId}/tokens](https://appwrite.io/docs/server/users#createToken) endpoint.
|
|
@@ -380,8 +318,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
380
318
|
*/
|
|
381
319
|
createSession(userId: string): Promise<Models.Session>;
|
|
382
320
|
/**
|
|
383
|
-
* Delete user sessions
|
|
384
|
-
*
|
|
385
321
|
* Delete all user's sessions by using the user's unique ID.
|
|
386
322
|
*
|
|
387
323
|
* @param {string} userId
|
|
@@ -390,8 +326,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
390
326
|
*/
|
|
391
327
|
deleteSessions(userId: string): Promise<{}>;
|
|
392
328
|
/**
|
|
393
|
-
* Delete user session
|
|
394
|
-
*
|
|
395
329
|
* Delete a user sessions by its unique ID.
|
|
396
330
|
*
|
|
397
331
|
* @param {string} userId
|
|
@@ -401,8 +335,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
401
335
|
*/
|
|
402
336
|
deleteSession(userId: string, sessionId: string): Promise<{}>;
|
|
403
337
|
/**
|
|
404
|
-
* Update user status
|
|
405
|
-
*
|
|
406
338
|
* Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.
|
|
407
339
|
*
|
|
408
340
|
* @param {string} userId
|
|
@@ -412,8 +344,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
412
344
|
*/
|
|
413
345
|
updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
|
|
414
346
|
/**
|
|
415
|
-
* List user targets
|
|
416
|
-
*
|
|
417
347
|
* List the messaging targets that are associated with a user.
|
|
418
348
|
*
|
|
419
349
|
* @param {string} userId
|
|
@@ -423,8 +353,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
423
353
|
*/
|
|
424
354
|
listTargets(userId: string, queries?: string[]): Promise<Models.TargetList>;
|
|
425
355
|
/**
|
|
426
|
-
* Create user target
|
|
427
|
-
*
|
|
428
356
|
* Create a messaging target.
|
|
429
357
|
*
|
|
430
358
|
* @param {string} userId
|
|
@@ -438,8 +366,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
438
366
|
*/
|
|
439
367
|
createTarget(userId: string, targetId: string, providerType: MessagingProviderType, identifier: string, providerId?: string, name?: string): Promise<Models.Target>;
|
|
440
368
|
/**
|
|
441
|
-
* Get user target
|
|
442
|
-
*
|
|
443
369
|
* Get a user's push notification target by ID.
|
|
444
370
|
*
|
|
445
371
|
* @param {string} userId
|
|
@@ -449,8 +375,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
449
375
|
*/
|
|
450
376
|
getTarget(userId: string, targetId: string): Promise<Models.Target>;
|
|
451
377
|
/**
|
|
452
|
-
* Update user target
|
|
453
|
-
*
|
|
454
378
|
* Update a messaging target.
|
|
455
379
|
*
|
|
456
380
|
* @param {string} userId
|
|
@@ -463,8 +387,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
463
387
|
*/
|
|
464
388
|
updateTarget(userId: string, targetId: string, identifier?: string, providerId?: string, name?: string): Promise<Models.Target>;
|
|
465
389
|
/**
|
|
466
|
-
* Delete user target
|
|
467
|
-
*
|
|
468
390
|
* Delete a messaging target.
|
|
469
391
|
*
|
|
470
392
|
* @param {string} userId
|
|
@@ -474,8 +396,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
474
396
|
*/
|
|
475
397
|
deleteTarget(userId: string, targetId: string): Promise<{}>;
|
|
476
398
|
/**
|
|
477
|
-
* Create token
|
|
478
|
-
*
|
|
479
399
|
* Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
|
|
480
400
|
|
|
481
401
|
*
|
|
@@ -487,8 +407,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
487
407
|
*/
|
|
488
408
|
createToken(userId: string, length?: number, expire?: number): Promise<Models.Token>;
|
|
489
409
|
/**
|
|
490
|
-
* Update email verification
|
|
491
|
-
*
|
|
492
410
|
* Update the user email verification status by its unique ID.
|
|
493
411
|
*
|
|
494
412
|
* @param {string} userId
|
|
@@ -498,8 +416,6 @@ If you want to generate a token for a custom authentication flow, use the [POST
|
|
|
498
416
|
*/
|
|
499
417
|
updateEmailVerification<Preferences extends Models.Preferences>(userId: string, emailVerification: boolean): Promise<Models.User<Preferences>>;
|
|
500
418
|
/**
|
|
501
|
-
* Update phone verification
|
|
502
|
-
*
|
|
503
419
|
* Update the user phone verification status by its unique ID.
|
|
504
420
|
*
|
|
505
421
|
* @param {string} userId
|
package/types/services/vcs.d.ts
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
import { Client } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
|
+
import { VCSDetectionType } from '../enums/v-c-s-detection-type';
|
|
3
4
|
export declare class Vcs {
|
|
4
5
|
client: Client;
|
|
5
6
|
constructor(client: Client);
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
+
* Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
8
9
|
*
|
|
10
|
+
* @param {string} installationId
|
|
11
|
+
* @param {string} providerRepositoryId
|
|
12
|
+
* @param {VCSDetectionType} type
|
|
13
|
+
* @param {string} providerRootDirectory
|
|
14
|
+
* @throws {AppwriteException}
|
|
15
|
+
* @returns {Promise<Models.DetectionFramework>}
|
|
16
|
+
*/
|
|
17
|
+
createRepositoryDetection(installationId: string, providerRepositoryId: string, type: VCSDetectionType, providerRootDirectory?: string): Promise<Models.DetectionFramework>;
|
|
18
|
+
/**
|
|
9
19
|
* Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.
|
|
10
20
|
*
|
|
11
21
|
* @param {string} installationId
|
|
22
|
+
* @param {VCSDetectionType} type
|
|
12
23
|
* @param {string} search
|
|
13
24
|
* @throws {AppwriteException}
|
|
14
|
-
* @returns {Promise<Models.
|
|
25
|
+
* @returns {Promise<Models.ProviderRepositoryFrameworkList>}
|
|
15
26
|
*/
|
|
16
|
-
listRepositories(installationId: string, search?: string): Promise<Models.
|
|
27
|
+
listRepositories(installationId: string, type: VCSDetectionType, search?: string): Promise<Models.ProviderRepositoryFrameworkList>;
|
|
17
28
|
/**
|
|
18
|
-
* Create repository
|
|
19
|
-
*
|
|
20
29
|
* Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.
|
|
21
30
|
*
|
|
22
31
|
* @param {string} installationId
|
|
@@ -27,8 +36,6 @@ export declare class Vcs {
|
|
|
27
36
|
*/
|
|
28
37
|
createRepository(installationId: string, name: string, xprivate: boolean): Promise<Models.ProviderRepository>;
|
|
29
38
|
/**
|
|
30
|
-
* Get repository
|
|
31
|
-
*
|
|
32
39
|
* Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
|
|
33
40
|
*
|
|
34
41
|
* @param {string} installationId
|
|
@@ -38,8 +45,6 @@ export declare class Vcs {
|
|
|
38
45
|
*/
|
|
39
46
|
getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository>;
|
|
40
47
|
/**
|
|
41
|
-
* List repository branches
|
|
42
|
-
*
|
|
43
48
|
* Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
|
|
44
49
|
|
|
45
50
|
*
|
|
@@ -50,8 +55,6 @@ export declare class Vcs {
|
|
|
50
55
|
*/
|
|
51
56
|
listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList>;
|
|
52
57
|
/**
|
|
53
|
-
* Get files and directories of a VCS repository
|
|
54
|
-
*
|
|
55
58
|
* Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
56
59
|
|
|
57
60
|
*
|
|
@@ -63,20 +66,6 @@ export declare class Vcs {
|
|
|
63
66
|
*/
|
|
64
67
|
getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.VcsContentList>;
|
|
65
68
|
/**
|
|
66
|
-
* Detect runtime settings from source code
|
|
67
|
-
*
|
|
68
|
-
* Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
69
|
-
*
|
|
70
|
-
* @param {string} installationId
|
|
71
|
-
* @param {string} providerRepositoryId
|
|
72
|
-
* @param {string} providerRootDirectory
|
|
73
|
-
* @throws {AppwriteException}
|
|
74
|
-
* @returns {Promise<Models.Detection>}
|
|
75
|
-
*/
|
|
76
|
-
createRepositoryDetection(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.Detection>;
|
|
77
|
-
/**
|
|
78
|
-
* Authorize external deployment
|
|
79
|
-
*
|
|
80
69
|
* Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.
|
|
81
70
|
*
|
|
82
71
|
* @param {string} installationId
|
|
@@ -87,8 +76,6 @@ export declare class Vcs {
|
|
|
87
76
|
*/
|
|
88
77
|
updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}>;
|
|
89
78
|
/**
|
|
90
|
-
* List installations
|
|
91
|
-
*
|
|
92
79
|
* List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
|
|
93
80
|
|
|
94
81
|
*
|
|
@@ -99,8 +86,6 @@ export declare class Vcs {
|
|
|
99
86
|
*/
|
|
100
87
|
listInstallations(queries?: string[], search?: string): Promise<Models.InstallationList>;
|
|
101
88
|
/**
|
|
102
|
-
* Get installation
|
|
103
|
-
*
|
|
104
89
|
* Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
|
|
105
90
|
*
|
|
106
91
|
* @param {string} installationId
|
|
@@ -109,8 +94,6 @@ export declare class Vcs {
|
|
|
109
94
|
*/
|
|
110
95
|
getInstallation(installationId: string): Promise<Models.Installation>;
|
|
111
96
|
/**
|
|
112
|
-
* Delete installation
|
|
113
|
-
*
|
|
114
97
|
* Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
|
|
115
98
|
*
|
|
116
99
|
* @param {string} installationId
|