@appwrite.io/console 0.6.0-rc.9 → 0.6.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/.travis.yml +32 -0
- package/README.md +5 -5
- package/dist/cjs/sdk.js +1140 -418
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +1141 -419
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +1140 -418
- package/docs/examples/account/create-anonymous-session.md +6 -13
- package/docs/examples/account/create-email-password-session.md +9 -13
- package/docs/examples/account/create-email-token.md +10 -13
- package/docs/examples/account/create-j-w-t.md +6 -13
- package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
- package/docs/examples/account/create-mfa-authenticator.md +13 -0
- package/docs/examples/account/create-mfa-challenge.md +13 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/create-o-auth2session.md +10 -9
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +9 -13
- package/docs/examples/account/create-phone-verification.md +6 -13
- package/docs/examples/account/create-push-target.md +10 -13
- package/docs/examples/account/create-recovery.md +9 -13
- package/docs/examples/account/create-session.md +9 -13
- package/docs/examples/account/create-verification.md +8 -13
- package/docs/examples/account/create.md +11 -13
- package/docs/examples/account/delete-identity.md +8 -13
- package/docs/examples/account/delete-mfa-authenticator.md +14 -0
- package/docs/examples/account/delete-push-target.md +8 -13
- package/docs/examples/account/delete-session.md +8 -13
- package/docs/examples/account/delete-sessions.md +6 -13
- package/docs/examples/account/delete.md +6 -13
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +6 -13
- package/docs/examples/account/get-session.md +8 -13
- package/docs/examples/account/get.md +6 -13
- package/docs/examples/account/list-identities.md +8 -13
- package/docs/examples/account/list-logs.md +8 -13
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +6 -13
- package/docs/examples/account/update-email.md +9 -13
- package/docs/examples/account/update-m-f-a.md +8 -13
- package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
- package/docs/examples/account/update-mfa-authenticator.md +14 -0
- package/docs/examples/account/update-mfa-challenge.md +14 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/update-name.md +8 -13
- package/docs/examples/account/update-password.md +9 -13
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +9 -13
- package/docs/examples/account/update-phone.md +9 -13
- package/docs/examples/account/update-prefs.md +8 -13
- package/docs/examples/account/update-push-target.md +9 -13
- package/docs/examples/account/update-recovery.md +10 -13
- package/docs/examples/account/update-session.md +8 -13
- package/docs/examples/account/update-status.md +6 -13
- package/docs/examples/account/update-verification.md +9 -13
- package/docs/examples/assistant/chat.md +8 -13
- package/docs/examples/avatars/get-browser.md +11 -9
- package/docs/examples/avatars/get-credit-card.md +11 -9
- package/docs/examples/avatars/get-favicon.md +8 -9
- package/docs/examples/avatars/get-flag.md +11 -9
- package/docs/examples/avatars/get-image.md +10 -9
- package/docs/examples/avatars/get-initials.md +11 -9
- package/docs/examples/avatars/get-q-r.md +11 -9
- package/docs/examples/console/variables.md +6 -13
- package/docs/examples/databases/create-boolean-attribute.md +13 -13
- package/docs/examples/databases/create-collection.md +13 -13
- package/docs/examples/databases/create-datetime-attribute.md +13 -13
- package/docs/examples/databases/create-document.md +12 -13
- package/docs/examples/databases/create-email-attribute.md +13 -13
- package/docs/examples/databases/create-enum-attribute.md +14 -13
- package/docs/examples/databases/create-float-attribute.md +15 -13
- package/docs/examples/databases/create-index.md +13 -13
- package/docs/examples/databases/create-integer-attribute.md +15 -13
- package/docs/examples/databases/create-ip-attribute.md +13 -13
- package/docs/examples/databases/create-relationship-attribute.md +15 -13
- package/docs/examples/databases/create-string-attribute.md +15 -13
- package/docs/examples/databases/create-url-attribute.md +13 -13
- package/docs/examples/databases/create.md +10 -13
- package/docs/examples/databases/delete-attribute.md +10 -13
- package/docs/examples/databases/delete-collection.md +9 -13
- package/docs/examples/databases/delete-document.md +10 -13
- package/docs/examples/databases/delete-index.md +10 -13
- package/docs/examples/databases/delete.md +8 -13
- package/docs/examples/databases/get-attribute.md +10 -13
- package/docs/examples/databases/get-collection-usage.md +10 -13
- package/docs/examples/databases/get-collection.md +9 -13
- package/docs/examples/databases/get-database-usage.md +9 -13
- package/docs/examples/databases/get-document.md +11 -13
- package/docs/examples/databases/get-index.md +10 -13
- package/docs/examples/databases/get-usage.md +8 -13
- package/docs/examples/databases/get.md +8 -13
- package/docs/examples/databases/list-attributes.md +10 -13
- package/docs/examples/databases/list-collection-logs.md +10 -13
- package/docs/examples/databases/list-collections.md +10 -13
- package/docs/examples/databases/list-document-logs.md +11 -13
- package/docs/examples/databases/list-documents.md +10 -13
- package/docs/examples/databases/list-indexes.md +10 -13
- package/docs/examples/databases/list-logs.md +9 -13
- package/docs/examples/databases/list.md +9 -13
- package/docs/examples/databases/update-boolean-attribute.md +12 -13
- package/docs/examples/databases/update-collection.md +13 -13
- package/docs/examples/databases/update-datetime-attribute.md +12 -13
- package/docs/examples/databases/update-document.md +12 -13
- package/docs/examples/databases/update-email-attribute.md +12 -13
- package/docs/examples/databases/update-enum-attribute.md +13 -13
- package/docs/examples/databases/update-float-attribute.md +14 -13
- package/docs/examples/databases/update-integer-attribute.md +14 -13
- package/docs/examples/databases/update-ip-attribute.md +12 -13
- package/docs/examples/databases/update-relationship-attribute.md +11 -13
- package/docs/examples/databases/update-string-attribute.md +12 -13
- package/docs/examples/databases/update-url-attribute.md +12 -13
- package/docs/examples/databases/update.md +10 -13
- package/docs/examples/functions/create-build.md +10 -13
- package/docs/examples/functions/create-deployment.md +12 -13
- package/docs/examples/functions/create-execution.md +13 -13
- package/docs/examples/functions/create-variable.md +10 -13
- package/docs/examples/functions/create.md +27 -13
- package/docs/examples/functions/delete-deployment.md +9 -13
- package/docs/examples/functions/delete-variable.md +9 -13
- package/docs/examples/functions/delete.md +8 -13
- package/docs/examples/functions/download-deployment.md +9 -9
- package/docs/examples/functions/get-deployment.md +9 -13
- package/docs/examples/functions/get-execution.md +9 -13
- package/docs/examples/functions/get-function-usage.md +9 -13
- package/docs/examples/functions/get-usage.md +8 -13
- package/docs/examples/functions/get-variable.md +9 -13
- package/docs/examples/functions/get.md +8 -13
- package/docs/examples/functions/list-deployments.md +10 -13
- package/docs/examples/functions/list-executions.md +10 -13
- package/docs/examples/functions/list-runtimes.md +6 -13
- package/docs/examples/functions/list-variables.md +8 -13
- package/docs/examples/functions/list.md +9 -13
- package/docs/examples/functions/update-deployment.md +9 -13
- package/docs/examples/functions/update-variable.md +11 -13
- package/docs/examples/functions/update.md +23 -13
- package/docs/examples/graphql/mutation.md +8 -13
- package/docs/examples/graphql/query.md +8 -13
- package/docs/examples/health/get-antivirus.md +6 -13
- package/docs/examples/health/get-cache.md +6 -13
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +6 -13
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +6 -13
- package/docs/examples/health/get-queue-builds.md +8 -13
- package/docs/examples/health/get-queue-certificates.md +8 -13
- package/docs/examples/health/get-queue-databases.md +9 -13
- package/docs/examples/health/get-queue-deletes.md +8 -13
- package/docs/examples/health/get-queue-functions.md +8 -13
- package/docs/examples/health/get-queue-logs.md +8 -13
- package/docs/examples/health/get-queue-mails.md +8 -13
- package/docs/examples/health/get-queue-messaging.md +8 -13
- package/docs/examples/health/get-queue-migrations.md +8 -13
- package/docs/examples/health/get-queue-usage-dump.md +13 -0
- package/docs/examples/health/get-queue-usage.md +13 -0
- package/docs/examples/health/get-queue-webhooks.md +8 -13
- package/docs/examples/health/get-queue.md +6 -13
- package/docs/examples/health/get-storage-local.md +6 -13
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +6 -13
- package/docs/examples/health/get.md +6 -13
- package/docs/examples/locale/get.md +6 -13
- package/docs/examples/locale/list-codes.md +6 -13
- package/docs/examples/locale/list-continents.md +6 -13
- package/docs/examples/locale/list-countries-e-u.md +6 -13
- package/docs/examples/locale/list-countries-phones.md +6 -13
- package/docs/examples/locale/list-countries.md +6 -13
- package/docs/examples/locale/list-currencies.md +6 -13
- package/docs/examples/locale/list-languages.md +6 -13
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +19 -13
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +17 -13
- package/docs/examples/messaging/create-msg91provider.md +13 -13
- package/docs/examples/messaging/create-push.md +23 -13
- package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/create-sms.md +19 -0
- package/docs/examples/messaging/create-smtp-provider.md +26 -0
- package/docs/examples/messaging/create-subscriber.md +10 -13
- package/docs/examples/messaging/create-telesign-provider.md +13 -13
- package/docs/examples/messaging/create-textmagic-provider.md +13 -13
- package/docs/examples/messaging/create-topic.md +10 -13
- package/docs/examples/messaging/create-twilio-provider.md +13 -13
- package/docs/examples/messaging/create-vonage-provider.md +13 -13
- package/docs/examples/messaging/delete-provider.md +8 -13
- package/docs/examples/messaging/delete-subscriber.md +9 -13
- package/docs/examples/messaging/delete-topic.md +8 -13
- package/docs/examples/messaging/delete.md +8 -13
- package/docs/examples/messaging/get-message.md +8 -13
- package/docs/examples/messaging/get-provider.md +8 -13
- package/docs/examples/messaging/get-subscriber.md +9 -13
- package/docs/examples/messaging/get-topic.md +8 -13
- package/docs/examples/messaging/list-message-logs.md +9 -13
- package/docs/examples/messaging/list-messages.md +9 -13
- package/docs/examples/messaging/list-provider-logs.md +9 -13
- package/docs/examples/messaging/list-providers.md +9 -13
- package/docs/examples/messaging/list-subscriber-logs.md +9 -13
- package/docs/examples/messaging/list-subscribers.md +10 -13
- package/docs/examples/messaging/list-targets.md +9 -13
- package/docs/examples/messaging/list-topic-logs.md +9 -13
- package/docs/examples/messaging/list-topics.md +9 -13
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +18 -13
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +17 -13
- package/docs/examples/messaging/update-msg91provider.md +13 -13
- package/docs/examples/messaging/update-push.md +23 -13
- package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
- package/docs/examples/messaging/update-sms.md +19 -0
- package/docs/examples/messaging/update-smtp-provider.md +26 -0
- package/docs/examples/messaging/update-telesign-provider.md +13 -13
- package/docs/examples/messaging/update-textmagic-provider.md +13 -13
- package/docs/examples/messaging/update-topic.md +10 -13
- package/docs/examples/messaging/update-twilio-provider.md +13 -13
- package/docs/examples/messaging/update-vonage-provider.md +13 -13
- package/docs/examples/migrations/create-appwrite-migration.md +11 -13
- package/docs/examples/migrations/create-firebase-migration.md +9 -13
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
- package/docs/examples/migrations/create-n-host-migration.md +15 -13
- package/docs/examples/migrations/create-supabase-migration.md +14 -13
- package/docs/examples/migrations/delete-firebase-auth.md +6 -13
- package/docs/examples/migrations/delete.md +8 -13
- package/docs/examples/migrations/get-appwrite-report.md +11 -13
- package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
- package/docs/examples/migrations/get-firebase-report.md +9 -13
- package/docs/examples/migrations/get-n-host-report.md +15 -13
- package/docs/examples/migrations/get-supabase-report.md +14 -13
- package/docs/examples/migrations/get.md +8 -13
- package/docs/examples/migrations/list-firebase-projects.md +6 -13
- package/docs/examples/migrations/list.md +9 -13
- package/docs/examples/migrations/retry.md +8 -13
- package/docs/examples/project/create-variable.md +9 -13
- package/docs/examples/project/delete-variable.md +8 -13
- package/docs/examples/project/get-usage.md +10 -13
- package/docs/examples/project/get-variable.md +8 -13
- package/docs/examples/project/list-variables.md +6 -13
- package/docs/examples/project/update-variable.md +10 -13
- package/docs/examples/projects/create-key.md +11 -13
- package/docs/examples/projects/create-platform.md +13 -13
- package/docs/examples/projects/create-smtp-test.md +17 -13
- package/docs/examples/projects/create-webhook.md +15 -13
- package/docs/examples/projects/create.md +20 -13
- package/docs/examples/projects/delete-email-template.md +10 -13
- package/docs/examples/projects/delete-key.md +9 -13
- package/docs/examples/projects/delete-platform.md +9 -13
- package/docs/examples/projects/delete-sms-template.md +10 -13
- package/docs/examples/projects/delete-webhook.md +9 -13
- package/docs/examples/projects/delete.md +8 -13
- package/docs/examples/projects/get-email-template.md +10 -13
- package/docs/examples/projects/get-key.md +9 -13
- package/docs/examples/projects/get-platform.md +9 -13
- package/docs/examples/projects/get-sms-template.md +10 -13
- package/docs/examples/projects/get-webhook.md +9 -13
- package/docs/examples/projects/get.md +8 -13
- package/docs/examples/projects/list-keys.md +8 -13
- package/docs/examples/projects/list-platforms.md +8 -13
- package/docs/examples/projects/list-webhooks.md +8 -13
- package/docs/examples/projects/list.md +9 -13
- package/docs/examples/projects/update-api-status-all.md +14 -0
- package/docs/examples/projects/update-api-status.md +15 -0
- package/docs/examples/projects/update-auth-duration.md +9 -13
- package/docs/examples/projects/update-auth-limit.md +9 -13
- package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
- package/docs/examples/projects/update-auth-password-history.md +9 -13
- package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
- package/docs/examples/projects/update-auth-status.md +10 -13
- package/docs/examples/projects/update-email-template.md +15 -13
- package/docs/examples/projects/update-key.md +12 -13
- package/docs/examples/projects/update-o-auth2.md +12 -13
- package/docs/examples/projects/update-personal-data-check.md +9 -13
- package/docs/examples/projects/update-platform.md +13 -13
- package/docs/examples/projects/update-service-status-all.md +9 -13
- package/docs/examples/projects/update-service-status.md +10 -13
- package/docs/examples/projects/update-sms-template.md +11 -13
- package/docs/examples/projects/update-smtp.md +17 -13
- package/docs/examples/projects/update-team.md +9 -13
- package/docs/examples/projects/update-webhook-signature.md +9 -13
- package/docs/examples/projects/update-webhook.md +16 -13
- package/docs/examples/projects/update.md +18 -13
- package/docs/examples/proxy/create-rule.md +10 -13
- package/docs/examples/proxy/delete-rule.md +8 -13
- package/docs/examples/proxy/get-rule.md +8 -13
- package/docs/examples/proxy/list-rules.md +9 -13
- package/docs/examples/proxy/update-rule-verification.md +8 -13
- package/docs/examples/storage/create-bucket.md +17 -13
- package/docs/examples/storage/create-file.md +11 -13
- package/docs/examples/storage/delete-bucket.md +8 -13
- package/docs/examples/storage/delete-file.md +9 -13
- package/docs/examples/storage/get-bucket-usage.md +9 -13
- package/docs/examples/storage/get-bucket.md +8 -13
- package/docs/examples/storage/get-file-download.md +9 -9
- package/docs/examples/storage/get-file-preview.md +20 -9
- package/docs/examples/storage/get-file-view.md +9 -9
- package/docs/examples/storage/get-file.md +9 -13
- package/docs/examples/storage/get-usage.md +8 -13
- package/docs/examples/storage/list-buckets.md +9 -13
- package/docs/examples/storage/list-files.md +10 -13
- package/docs/examples/storage/update-bucket.md +17 -13
- package/docs/examples/storage/update-file.md +11 -13
- package/docs/examples/teams/create-membership.md +14 -13
- package/docs/examples/teams/create.md +10 -13
- package/docs/examples/teams/delete-membership.md +9 -13
- package/docs/examples/teams/delete.md +8 -13
- package/docs/examples/teams/get-membership.md +9 -13
- package/docs/examples/teams/get-prefs.md +8 -13
- package/docs/examples/teams/get.md +8 -13
- package/docs/examples/teams/list-logs.md +9 -13
- package/docs/examples/teams/list-memberships.md +10 -13
- package/docs/examples/teams/list.md +9 -13
- package/docs/examples/teams/update-membership-status.md +11 -13
- package/docs/examples/teams/update-membership.md +10 -13
- package/docs/examples/teams/update-name.md +9 -13
- package/docs/examples/teams/update-prefs.md +9 -13
- package/docs/examples/users/create-argon2user.md +11 -13
- package/docs/examples/users/create-bcrypt-user.md +11 -13
- package/docs/examples/users/create-m-d5user.md +11 -13
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +11 -13
- package/docs/examples/users/create-s-h-a-user.md +12 -13
- package/docs/examples/users/create-scrypt-modified-user.md +14 -13
- package/docs/examples/users/create-scrypt-user.md +16 -13
- package/docs/examples/users/create-session.md +8 -13
- package/docs/examples/users/create-target.md +13 -13
- package/docs/examples/users/create-token.md +10 -13
- package/docs/examples/users/create.md +12 -13
- package/docs/examples/users/delete-identity.md +8 -13
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +9 -13
- package/docs/examples/users/delete-sessions.md +8 -13
- package/docs/examples/users/delete-target.md +9 -13
- package/docs/examples/users/delete.md +8 -13
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +8 -13
- package/docs/examples/users/get-target.md +9 -13
- package/docs/examples/users/get-usage.md +8 -13
- package/docs/examples/users/get.md +8 -13
- package/docs/examples/users/list-identities.md +9 -13
- package/docs/examples/users/list-logs.md +9 -13
- package/docs/examples/users/list-memberships.md +8 -13
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +8 -13
- package/docs/examples/users/list-targets.md +9 -13
- package/docs/examples/users/list.md +9 -13
- package/docs/examples/users/update-email-verification.md +9 -13
- package/docs/examples/users/update-email.md +9 -13
- package/docs/examples/users/update-labels.md +9 -13
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +9 -13
- package/docs/examples/users/update-name.md +9 -13
- package/docs/examples/users/update-password.md +9 -13
- package/docs/examples/users/update-phone-verification.md +9 -13
- package/docs/examples/users/update-phone.md +9 -13
- package/docs/examples/users/update-prefs.md +9 -13
- package/docs/examples/users/update-status.md +9 -13
- package/docs/examples/users/update-target.md +12 -13
- package/docs/examples/vcs/create-repository-detection.md +10 -13
- package/docs/examples/vcs/create-repository.md +10 -13
- package/docs/examples/vcs/delete-installation.md +8 -13
- package/docs/examples/vcs/get-installation.md +8 -13
- package/docs/examples/vcs/get-repository.md +9 -13
- package/docs/examples/vcs/list-installations.md +9 -13
- package/docs/examples/vcs/list-repositories.md +9 -13
- package/docs/examples/vcs/list-repository-branches.md +9 -13
- package/docs/examples/vcs/update-external-deployments.md +10 -13
- package/package.json +1 -1
- package/src/client.ts +3 -3
- package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
- package/src/enums/api.ts +5 -0
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +7 -0
- package/src/enums/index-type.ts +0 -1
- package/src/enums/name.ts +15 -0
- package/src/enums/{password-version.ts → password-hash.ts} +1 -1
- package/src/enums/region.ts +1 -0
- package/src/enums/runtime.ts +40 -0
- package/src/enums/{template-locale.ts → sms-template-locale.ts} +1 -1
- package/src/enums/{template-type.ts → sms-template-type.ts} +2 -1
- package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
- package/src/index.ts +11 -8
- package/src/models.ts +57 -19
- package/src/query.ts +2 -2
- package/src/service.ts +0 -3
- package/src/services/account.ts +239 -66
- package/src/services/assistant.ts +0 -1
- package/src/services/avatars.ts +0 -1
- package/src/services/console.ts +0 -1
- package/src/services/databases.ts +20 -4
- package/src/services/functions.ts +0 -1
- package/src/services/graphql.ts +0 -1
- package/src/services/health.ts +121 -1
- package/src/services/locale.ts +0 -1
- package/src/services/messaging.ts +161 -70
- package/src/services/migrations.ts +0 -1
- package/src/services/project.ts +1 -2
- package/src/services/projects.ts +97 -24
- package/src/services/proxy.ts +0 -1
- package/src/services/storage.ts +2 -3
- package/src/services/teams.ts +0 -1
- package/src/services/users.ts +115 -39
- package/src/services/vcs.ts +0 -1
- package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
- package/types/enums/api.d.ts +5 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +7 -0
- package/types/enums/index-type.d.ts +1 -2
- package/types/enums/name.d.ts +15 -0
- package/types/enums/{password-version.d.ts → password-hash.d.ts} +1 -1
- package/types/enums/region.d.ts +2 -1
- package/types/enums/runtime.d.ts +41 -1
- package/types/enums/{template-locale.d.ts → sms-template-locale.d.ts} +1 -1
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
- package/types/index.d.ts +11 -8
- package/types/models.d.ts +57 -19
- package/types/query.d.ts +2 -2
- package/types/services/account.d.ts +121 -28
- package/types/services/databases.d.ts +20 -3
- package/types/services/health.d.ts +56 -0
- package/types/services/messaging.d.ts +109 -49
- package/types/services/project.d.ts +1 -1
- package/types/services/projects.d.ts +47 -23
- package/types/services/storage.d.ts +2 -2
- package/types/services/users.d.ts +63 -17
- package/docs/examples/account/add-authenticator.md +0 -18
- package/docs/examples/account/create-challenge.md +0 -18
- package/docs/examples/account/delete-authenticator.md +0 -18
- package/docs/examples/account/list-factors.md +0 -18
- package/docs/examples/account/update-challenge.md +0 -18
- package/docs/examples/account/verify-authenticator.md +0 -18
- package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/create-s-m-s.md +0 -18
- package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
- package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
- package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
- package/docs/examples/messaging/update-s-m-s.md +0 -18
- package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
- package/docs/examples/users/delete-authenticator.md +0 -18
- package/docs/examples/users/list-providers.md +0 -18
- package/src/enums/authenticator-factor.ts +0 -3
- package/src/enums/authenticator-provider.ts +0 -3
- package/src/enums/message-type.ts +0 -5
- package/types/enums/authenticator-factor.d.ts +0 -3
- package/types/enums/authenticator-provider.d.ts +0 -3
- package/types/enums/message-type.d.ts +0 -5
- package/types/enums/template-type.d.ts +0 -5
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export declare enum EmailTemplateLocale {
|
|
2
|
+
Af = "af",
|
|
3
|
+
Arae = "ar-ae",
|
|
4
|
+
Arbh = "ar-bh",
|
|
5
|
+
Ardz = "ar-dz",
|
|
6
|
+
Areg = "ar-eg",
|
|
7
|
+
Ariq = "ar-iq",
|
|
8
|
+
Arjo = "ar-jo",
|
|
9
|
+
Arkw = "ar-kw",
|
|
10
|
+
Arlb = "ar-lb",
|
|
11
|
+
Arly = "ar-ly",
|
|
12
|
+
Arma = "ar-ma",
|
|
13
|
+
Arom = "ar-om",
|
|
14
|
+
Arqa = "ar-qa",
|
|
15
|
+
Arsa = "ar-sa",
|
|
16
|
+
Arsy = "ar-sy",
|
|
17
|
+
Artn = "ar-tn",
|
|
18
|
+
Arye = "ar-ye",
|
|
19
|
+
As = "as",
|
|
20
|
+
Az = "az",
|
|
21
|
+
Be = "be",
|
|
22
|
+
Bg = "bg",
|
|
23
|
+
Bh = "bh",
|
|
24
|
+
Bn = "bn",
|
|
25
|
+
Bs = "bs",
|
|
26
|
+
Ca = "ca",
|
|
27
|
+
Cs = "cs",
|
|
28
|
+
Cy = "cy",
|
|
29
|
+
Da = "da",
|
|
30
|
+
De = "de",
|
|
31
|
+
Deat = "de-at",
|
|
32
|
+
Dech = "de-ch",
|
|
33
|
+
Deli = "de-li",
|
|
34
|
+
Delu = "de-lu",
|
|
35
|
+
El = "el",
|
|
36
|
+
En = "en",
|
|
37
|
+
Enau = "en-au",
|
|
38
|
+
Enbz = "en-bz",
|
|
39
|
+
Enca = "en-ca",
|
|
40
|
+
Engb = "en-gb",
|
|
41
|
+
Enie = "en-ie",
|
|
42
|
+
Enjm = "en-jm",
|
|
43
|
+
Ennz = "en-nz",
|
|
44
|
+
Entt = "en-tt",
|
|
45
|
+
Enus = "en-us",
|
|
46
|
+
Enza = "en-za",
|
|
47
|
+
Eo = "eo",
|
|
48
|
+
Es = "es",
|
|
49
|
+
Esar = "es-ar",
|
|
50
|
+
Esbo = "es-bo",
|
|
51
|
+
Escl = "es-cl",
|
|
52
|
+
Esco = "es-co",
|
|
53
|
+
Escr = "es-cr",
|
|
54
|
+
Esdo = "es-do",
|
|
55
|
+
Esec = "es-ec",
|
|
56
|
+
Esgt = "es-gt",
|
|
57
|
+
Eshn = "es-hn",
|
|
58
|
+
Esmx = "es-mx",
|
|
59
|
+
Esni = "es-ni",
|
|
60
|
+
Espa = "es-pa",
|
|
61
|
+
Espe = "es-pe",
|
|
62
|
+
Espr = "es-pr",
|
|
63
|
+
Espy = "es-py",
|
|
64
|
+
Essv = "es-sv",
|
|
65
|
+
Esuy = "es-uy",
|
|
66
|
+
Esve = "es-ve",
|
|
67
|
+
Et = "et",
|
|
68
|
+
Eu = "eu",
|
|
69
|
+
Fa = "fa",
|
|
70
|
+
Fi = "fi",
|
|
71
|
+
Fo = "fo",
|
|
72
|
+
Fr = "fr",
|
|
73
|
+
Frbe = "fr-be",
|
|
74
|
+
Frca = "fr-ca",
|
|
75
|
+
Frch = "fr-ch",
|
|
76
|
+
Frlu = "fr-lu",
|
|
77
|
+
Ga = "ga",
|
|
78
|
+
Gd = "gd",
|
|
79
|
+
He = "he",
|
|
80
|
+
Hi = "hi",
|
|
81
|
+
Hr = "hr",
|
|
82
|
+
Hu = "hu",
|
|
83
|
+
Id = "id",
|
|
84
|
+
Is = "is",
|
|
85
|
+
It = "it",
|
|
86
|
+
Itch = "it-ch",
|
|
87
|
+
Ja = "ja",
|
|
88
|
+
Ji = "ji",
|
|
89
|
+
Ko = "ko",
|
|
90
|
+
Ku = "ku",
|
|
91
|
+
Lt = "lt",
|
|
92
|
+
Lv = "lv",
|
|
93
|
+
Mk = "mk",
|
|
94
|
+
Ml = "ml",
|
|
95
|
+
Ms = "ms",
|
|
96
|
+
Mt = "mt",
|
|
97
|
+
Nb = "nb",
|
|
98
|
+
Ne = "ne",
|
|
99
|
+
Nl = "nl",
|
|
100
|
+
Nlbe = "nl-be",
|
|
101
|
+
Nn = "nn",
|
|
102
|
+
No = "no",
|
|
103
|
+
Pa = "pa",
|
|
104
|
+
Pl = "pl",
|
|
105
|
+
Pt = "pt",
|
|
106
|
+
Ptbr = "pt-br",
|
|
107
|
+
Rm = "rm",
|
|
108
|
+
Ro = "ro",
|
|
109
|
+
Romd = "ro-md",
|
|
110
|
+
Ru = "ru",
|
|
111
|
+
Rumd = "ru-md",
|
|
112
|
+
Sb = "sb",
|
|
113
|
+
Sk = "sk",
|
|
114
|
+
Sl = "sl",
|
|
115
|
+
Sq = "sq",
|
|
116
|
+
Sr = "sr",
|
|
117
|
+
Sv = "sv",
|
|
118
|
+
Svfi = "sv-fi",
|
|
119
|
+
Th = "th",
|
|
120
|
+
Tn = "tn",
|
|
121
|
+
Tr = "tr",
|
|
122
|
+
Ts = "ts",
|
|
123
|
+
Ua = "ua",
|
|
124
|
+
Ur = "ur",
|
|
125
|
+
Ve = "ve",
|
|
126
|
+
Vi = "vi",
|
|
127
|
+
Xh = "xh",
|
|
128
|
+
Zhcn = "zh-cn",
|
|
129
|
+
Zhhk = "zh-hk",
|
|
130
|
+
Zhsg = "zh-sg",
|
|
131
|
+
Zhtw = "zh-tw",
|
|
132
|
+
Zu = "zu"
|
|
133
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum Name {
|
|
2
|
+
V1database = "v1-database",
|
|
3
|
+
V1deletes = "v1-deletes",
|
|
4
|
+
V1audits = "v1-audits",
|
|
5
|
+
V1mails = "v1-mails",
|
|
6
|
+
V1functions = "v1-functions",
|
|
7
|
+
V1usage = "v1-usage",
|
|
8
|
+
V1usagedump = "v1-usage-dump",
|
|
9
|
+
Webhooksv1 = "webhooksv1",
|
|
10
|
+
V1certificates = "v1-certificates",
|
|
11
|
+
V1builds = "v1-builds",
|
|
12
|
+
V1messaging = "v1-messaging",
|
|
13
|
+
V1migrations = "v1-migrations",
|
|
14
|
+
Hamsterv1 = "hamsterv1"
|
|
15
|
+
}
|
package/types/enums/region.d.ts
CHANGED
package/types/enums/runtime.d.ts
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
export declare enum Runtime {
|
|
2
|
+
Node145 = "node-14.5",
|
|
3
|
+
Node160 = "node-16.0",
|
|
2
4
|
Node180 = "node-18.0",
|
|
5
|
+
Node190 = "node-19.0",
|
|
6
|
+
Node200 = "node-20.0",
|
|
7
|
+
Node210 = "node-21.0",
|
|
3
8
|
Php80 = "php-8.0",
|
|
9
|
+
Php81 = "php-8.1",
|
|
10
|
+
Php82 = "php-8.2",
|
|
11
|
+
Php83 = "php-8.3",
|
|
12
|
+
Ruby30 = "ruby-3.0",
|
|
4
13
|
Ruby31 = "ruby-3.1",
|
|
5
|
-
|
|
14
|
+
Ruby32 = "ruby-3.2",
|
|
15
|
+
Ruby33 = "ruby-3.3",
|
|
16
|
+
Python38 = "python-3.8",
|
|
17
|
+
Python39 = "python-3.9",
|
|
18
|
+
Python310 = "python-3.10",
|
|
19
|
+
Python311 = "python-3.11",
|
|
20
|
+
Python312 = "python-3.12",
|
|
21
|
+
Deno140 = "deno-1.40",
|
|
22
|
+
Dart215 = "dart-2.15",
|
|
23
|
+
Dart216 = "dart-2.16",
|
|
24
|
+
Dart217 = "dart-2.17",
|
|
25
|
+
Dart218 = "dart-2.18",
|
|
26
|
+
Dart30 = "dart-3.0",
|
|
27
|
+
Dart31 = "dart-3.1",
|
|
28
|
+
Dart33 = "dart-3.3",
|
|
29
|
+
Dotnet31 = "dotnet-3.1",
|
|
30
|
+
Dotnet60 = "dotnet-6.0",
|
|
31
|
+
Dotnet70 = "dotnet-7.0",
|
|
32
|
+
Java80 = "java-8.0",
|
|
33
|
+
Java110 = "java-11.0",
|
|
34
|
+
Java170 = "java-17.0",
|
|
35
|
+
Java180 = "java-18.0",
|
|
36
|
+
Java210 = "java-21.0",
|
|
37
|
+
Swift55 = "swift-5.5",
|
|
38
|
+
Swift58 = "swift-5.8",
|
|
39
|
+
Swift59 = "swift-5.9",
|
|
40
|
+
Kotlin16 = "kotlin-1.6",
|
|
41
|
+
Kotlin18 = "kotlin-1.8",
|
|
42
|
+
Kotlin19 = "kotlin-1.9",
|
|
43
|
+
Cpp17 = "cpp-17",
|
|
44
|
+
Cpp20 = "cpp-20",
|
|
45
|
+
Bun10 = "bun-1.0"
|
|
6
46
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export type { QueryTypes, QueryTypesList } from './query';
|
|
|
22
22
|
export { Permission } from './permission';
|
|
23
23
|
export { Role } from './role';
|
|
24
24
|
export { ID } from './id';
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
25
|
+
export { AuthenticatorType } from './enums/authenticator-type';
|
|
26
|
+
export { AuthenticationFactor } from './enums/authentication-factor';
|
|
27
27
|
export { OAuthProvider } from './enums/o-auth-provider';
|
|
28
28
|
export { Browser } from './enums/browser';
|
|
29
29
|
export { CreditCard } from './enums/credit-card';
|
|
@@ -35,21 +35,24 @@ export { IndexType } from './enums/index-type';
|
|
|
35
35
|
export { Runtime } from './enums/runtime';
|
|
36
36
|
export { FunctionUsageRange } from './enums/function-usage-range';
|
|
37
37
|
export { ExecutionMethod } from './enums/execution-method';
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
38
|
+
export { Name } from './enums/name';
|
|
39
|
+
export { SmtpEncryption } from './enums/smtp-encryption';
|
|
40
40
|
export { ProjectUsageRange } from './enums/project-usage-range';
|
|
41
41
|
export { Region } from './enums/region';
|
|
42
|
+
export { Api } from './enums/api';
|
|
42
43
|
export { AuthMethod } from './enums/auth-method';
|
|
43
44
|
export { PlatformType } from './enums/platform-type';
|
|
44
|
-
export {
|
|
45
|
+
export { ApiService } from './enums/api-service';
|
|
45
46
|
export { SMTPSecure } from './enums/s-m-t-p-secure';
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
47
|
+
export { EmailTemplateType } from './enums/email-template-type';
|
|
48
|
+
export { EmailTemplateLocale } from './enums/email-template-locale';
|
|
49
|
+
export { SmsTemplateType } from './enums/sms-template-type';
|
|
50
|
+
export { SmsTemplateLocale } from './enums/sms-template-locale';
|
|
48
51
|
export { ResourceType } from './enums/resource-type';
|
|
49
52
|
export { Compression } from './enums/compression';
|
|
50
53
|
export { ImageGravity } from './enums/image-gravity';
|
|
51
54
|
export { ImageFormat } from './enums/image-format';
|
|
52
55
|
export { StorageUsageRange } from './enums/storage-usage-range';
|
|
53
|
-
export {
|
|
56
|
+
export { PasswordHash } from './enums/password-hash';
|
|
54
57
|
export { UserUsageRange } from './enums/user-usage-range';
|
|
55
58
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
package/types/models.d.ts
CHANGED
|
@@ -1186,10 +1186,6 @@ export declare namespace Models {
|
|
|
1186
1186
|
* Multi factor authentication status.
|
|
1187
1187
|
*/
|
|
1188
1188
|
mfa: boolean;
|
|
1189
|
-
/**
|
|
1190
|
-
* TOTP status.
|
|
1191
|
-
*/
|
|
1192
|
-
totp: boolean;
|
|
1193
1189
|
/**
|
|
1194
1190
|
* User preferences as a key-value object
|
|
1195
1191
|
*/
|
|
@@ -1419,11 +1415,15 @@ export declare namespace Models {
|
|
|
1419
1415
|
/**
|
|
1420
1416
|
* Returns a list of active session factors.
|
|
1421
1417
|
*/
|
|
1422
|
-
factors:
|
|
1418
|
+
factors: string[];
|
|
1423
1419
|
/**
|
|
1424
1420
|
* Secret used to authenticate the user. Only included if the request was made with an API key
|
|
1425
1421
|
*/
|
|
1426
1422
|
secret: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* Most recent date in ISO 8601 format when the session successfully passed MFA challenge.
|
|
1425
|
+
*/
|
|
1426
|
+
mfaUpdatedAt: string;
|
|
1427
1427
|
};
|
|
1428
1428
|
/**
|
|
1429
1429
|
* Identity
|
|
@@ -2656,6 +2656,35 @@ export declare namespace Models {
|
|
|
2656
2656
|
*/
|
|
2657
2657
|
status: string;
|
|
2658
2658
|
};
|
|
2659
|
+
/**
|
|
2660
|
+
* Health Certificate
|
|
2661
|
+
*/
|
|
2662
|
+
type HealthCertificate = {
|
|
2663
|
+
/**
|
|
2664
|
+
* Certificate name
|
|
2665
|
+
*/
|
|
2666
|
+
name: string;
|
|
2667
|
+
/**
|
|
2668
|
+
* Subject SN
|
|
2669
|
+
*/
|
|
2670
|
+
subjectSN: string;
|
|
2671
|
+
/**
|
|
2672
|
+
* Issuer organisation
|
|
2673
|
+
*/
|
|
2674
|
+
issuerOrganisation: string;
|
|
2675
|
+
/**
|
|
2676
|
+
* Valid from
|
|
2677
|
+
*/
|
|
2678
|
+
validFrom: string;
|
|
2679
|
+
/**
|
|
2680
|
+
* Valid to
|
|
2681
|
+
*/
|
|
2682
|
+
validTo: string;
|
|
2683
|
+
/**
|
|
2684
|
+
* Signature type SN
|
|
2685
|
+
*/
|
|
2686
|
+
signatureTypeSN: string;
|
|
2687
|
+
};
|
|
2659
2688
|
/**
|
|
2660
2689
|
* Health Time
|
|
2661
2690
|
*/
|
|
@@ -3211,13 +3240,18 @@ export declare namespace Models {
|
|
|
3211
3240
|
expire: string;
|
|
3212
3241
|
};
|
|
3213
3242
|
/**
|
|
3214
|
-
*
|
|
3243
|
+
* MFA Recovery Codes
|
|
3215
3244
|
*/
|
|
3216
|
-
type
|
|
3245
|
+
type MfaRecoveryCodes = {
|
|
3217
3246
|
/**
|
|
3218
|
-
*
|
|
3247
|
+
* Recovery codes.
|
|
3219
3248
|
*/
|
|
3220
|
-
|
|
3249
|
+
recoveryCodes: string[];
|
|
3250
|
+
};
|
|
3251
|
+
/**
|
|
3252
|
+
* MFAType
|
|
3253
|
+
*/
|
|
3254
|
+
type MfaType = {
|
|
3221
3255
|
/**
|
|
3222
3256
|
* Secret token used for TOTP factor.
|
|
3223
3257
|
*/
|
|
@@ -3228,9 +3262,9 @@ export declare namespace Models {
|
|
|
3228
3262
|
uri: string;
|
|
3229
3263
|
};
|
|
3230
3264
|
/**
|
|
3231
|
-
*
|
|
3265
|
+
* MFAFactors
|
|
3232
3266
|
*/
|
|
3233
|
-
type
|
|
3267
|
+
type MfaFactors = {
|
|
3234
3268
|
/**
|
|
3235
3269
|
* TOTP
|
|
3236
3270
|
*/
|
|
@@ -3341,10 +3375,6 @@ export declare namespace Models {
|
|
|
3341
3375
|
* Status of delivery.
|
|
3342
3376
|
*/
|
|
3343
3377
|
status: string;
|
|
3344
|
-
/**
|
|
3345
|
-
* Message description.
|
|
3346
|
-
*/
|
|
3347
|
-
description?: string;
|
|
3348
3378
|
};
|
|
3349
3379
|
/**
|
|
3350
3380
|
* Topic
|
|
@@ -3367,13 +3397,21 @@ export declare namespace Models {
|
|
|
3367
3397
|
*/
|
|
3368
3398
|
name: string;
|
|
3369
3399
|
/**
|
|
3370
|
-
* Total count of subscribers subscribed to topic.
|
|
3400
|
+
* Total count of email subscribers subscribed to the topic.
|
|
3371
3401
|
*/
|
|
3372
|
-
|
|
3402
|
+
emailTotal: number;
|
|
3403
|
+
/**
|
|
3404
|
+
* Total count of SMS subscribers subscribed to the topic.
|
|
3405
|
+
*/
|
|
3406
|
+
smsTotal: number;
|
|
3407
|
+
/**
|
|
3408
|
+
* Total count of push subscribers subscribed to the topic.
|
|
3409
|
+
*/
|
|
3410
|
+
pushTotal: number;
|
|
3373
3411
|
/**
|
|
3374
|
-
*
|
|
3412
|
+
* Subscribe permissions.
|
|
3375
3413
|
*/
|
|
3376
|
-
|
|
3414
|
+
subscribe: string[];
|
|
3377
3415
|
};
|
|
3378
3416
|
/**
|
|
3379
3417
|
* Subscriber
|
package/types/query.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare class Query {
|
|
|
28
28
|
static limit: (limit: number) => string;
|
|
29
29
|
static offset: (offset: number) => string;
|
|
30
30
|
static contains: (attribute: string, value: string | string[]) => string;
|
|
31
|
-
static or: (
|
|
32
|
-
static and: (
|
|
31
|
+
static or: (queries: string[]) => string;
|
|
32
|
+
static and: (queries: string[]) => string;
|
|
33
33
|
}
|
|
34
34
|
export {};
|