@appconda/nextjs 1.0.12
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/.github/workflows/autoclose.yml +11 -0
- package/.github/workflows/publish.yml +42 -0
- package/.travis.yml +32 -0
- package/CHANGELOG.md +1 -0
- package/LICENSE +12 -0
- package/README.md +0 -0
- package/dist/cjs/sdk.js +10608 -0
- package/dist/cjs/sdk.js.map +1 -0
- package/dist/esm/sdk.js +10589 -0
- package/dist/esm/sdk.js.map +1 -0
- package/dist/iife/sdk.js +10609 -0
- package/docs/examples/account/create-anonymous-session.md +11 -0
- package/docs/examples/account/create-email-password-session.md +14 -0
- package/docs/examples/account/create-email-token.md +15 -0
- package/docs/examples/account/create-j-w-t.md +11 -0
- package/docs/examples/account/create-magic-u-r-l-token.md +16 -0
- 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 +15 -0
- package/docs/examples/account/create-o-auth2token.md +15 -0
- package/docs/examples/account/create-phone-token.md +14 -0
- package/docs/examples/account/create-phone-verification.md +11 -0
- package/docs/examples/account/create-push-target.md +15 -0
- package/docs/examples/account/create-recovery.md +14 -0
- package/docs/examples/account/create-session.md +14 -0
- package/docs/examples/account/create-verification.md +13 -0
- package/docs/examples/account/create.md +16 -0
- package/docs/examples/account/delete-identity.md +13 -0
- package/docs/examples/account/delete-mfa-authenticator.md +13 -0
- package/docs/examples/account/delete-push-target.md +13 -0
- package/docs/examples/account/delete-session.md +13 -0
- package/docs/examples/account/delete-sessions.md +11 -0
- package/docs/examples/account/delete.md +11 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
- package/docs/examples/account/get-prefs.md +11 -0
- package/docs/examples/account/get-session.md +13 -0
- package/docs/examples/account/get.md +11 -0
- package/docs/examples/account/list-identities.md +13 -0
- package/docs/examples/account/list-logs.md +13 -0
- package/docs/examples/account/list-mfa-factors.md +11 -0
- package/docs/examples/account/list-sessions.md +11 -0
- package/docs/examples/account/update-email.md +14 -0
- package/docs/examples/account/update-m-f-a.md +13 -0
- package/docs/examples/account/update-magic-u-r-l-session.md +14 -0
- 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 +13 -0
- package/docs/examples/account/update-password.md +14 -0
- package/docs/examples/account/update-phone-session.md +14 -0
- package/docs/examples/account/update-phone-verification.md +14 -0
- package/docs/examples/account/update-phone.md +14 -0
- package/docs/examples/account/update-prefs.md +13 -0
- package/docs/examples/account/update-push-target.md +14 -0
- package/docs/examples/account/update-recovery.md +15 -0
- package/docs/examples/account/update-session.md +13 -0
- package/docs/examples/account/update-status.md +11 -0
- package/docs/examples/account/update-verification.md +14 -0
- package/docs/examples/assistant/chat.md +13 -0
- package/docs/examples/avatars/get-browser.md +16 -0
- package/docs/examples/avatars/get-credit-card.md +16 -0
- package/docs/examples/avatars/get-favicon.md +13 -0
- package/docs/examples/avatars/get-flag.md +16 -0
- package/docs/examples/avatars/get-image.md +15 -0
- package/docs/examples/avatars/get-initials.md +16 -0
- package/docs/examples/avatars/get-q-r.md +16 -0
- package/docs/examples/console/variables.md +11 -0
- package/docs/examples/databases/create-boolean-attribute.md +18 -0
- package/docs/examples/databases/create-collection.md +18 -0
- package/docs/examples/databases/create-datetime-attribute.md +18 -0
- package/docs/examples/databases/create-document.md +17 -0
- package/docs/examples/databases/create-email-attribute.md +18 -0
- package/docs/examples/databases/create-enum-attribute.md +19 -0
- package/docs/examples/databases/create-float-attribute.md +20 -0
- package/docs/examples/databases/create-index.md +18 -0
- package/docs/examples/databases/create-integer-attribute.md +20 -0
- package/docs/examples/databases/create-ip-attribute.md +18 -0
- package/docs/examples/databases/create-relationship-attribute.md +20 -0
- package/docs/examples/databases/create-string-attribute.md +20 -0
- package/docs/examples/databases/create-url-attribute.md +18 -0
- package/docs/examples/databases/create.md +15 -0
- package/docs/examples/databases/delete-attribute.md +15 -0
- package/docs/examples/databases/delete-collection.md +14 -0
- package/docs/examples/databases/delete-document.md +15 -0
- package/docs/examples/databases/delete-index.md +15 -0
- package/docs/examples/databases/delete.md +13 -0
- package/docs/examples/databases/get-attribute.md +15 -0
- package/docs/examples/databases/get-collection-usage.md +15 -0
- package/docs/examples/databases/get-collection.md +14 -0
- package/docs/examples/databases/get-database-usage.md +14 -0
- package/docs/examples/databases/get-document.md +16 -0
- package/docs/examples/databases/get-index.md +15 -0
- package/docs/examples/databases/get-usage.md +13 -0
- package/docs/examples/databases/get.md +13 -0
- package/docs/examples/databases/list-attributes.md +15 -0
- package/docs/examples/databases/list-collection-logs.md +15 -0
- package/docs/examples/databases/list-collections.md +15 -0
- package/docs/examples/databases/list-document-logs.md +16 -0
- package/docs/examples/databases/list-documents.md +15 -0
- package/docs/examples/databases/list-indexes.md +15 -0
- package/docs/examples/databases/list-logs.md +14 -0
- package/docs/examples/databases/list.md +14 -0
- package/docs/examples/databases/update-boolean-attribute.md +17 -0
- package/docs/examples/databases/update-collection.md +18 -0
- package/docs/examples/databases/update-datetime-attribute.md +17 -0
- package/docs/examples/databases/update-document.md +17 -0
- package/docs/examples/databases/update-email-attribute.md +17 -0
- package/docs/examples/databases/update-enum-attribute.md +18 -0
- package/docs/examples/databases/update-float-attribute.md +19 -0
- package/docs/examples/databases/update-integer-attribute.md +19 -0
- package/docs/examples/databases/update-ip-attribute.md +17 -0
- package/docs/examples/databases/update-relationship-attribute.md +16 -0
- package/docs/examples/databases/update-string-attribute.md +17 -0
- package/docs/examples/databases/update-url-attribute.md +17 -0
- package/docs/examples/databases/update.md +15 -0
- package/docs/examples/functions/create-build.md +15 -0
- package/docs/examples/functions/create-deployment.md +17 -0
- package/docs/examples/functions/create-execution.md +19 -0
- package/docs/examples/functions/create-variable.md +15 -0
- package/docs/examples/functions/create.md +34 -0
- package/docs/examples/functions/delete-deployment.md +14 -0
- package/docs/examples/functions/delete-execution.md +14 -0
- package/docs/examples/functions/delete-variable.md +14 -0
- package/docs/examples/functions/delete.md +13 -0
- package/docs/examples/functions/get-deployment-download.md +14 -0
- package/docs/examples/functions/get-deployment.md +14 -0
- package/docs/examples/functions/get-execution.md +14 -0
- package/docs/examples/functions/get-function-usage.md +14 -0
- package/docs/examples/functions/get-template.md +13 -0
- package/docs/examples/functions/get-usage.md +13 -0
- package/docs/examples/functions/get-variable.md +14 -0
- package/docs/examples/functions/get.md +13 -0
- package/docs/examples/functions/list-deployments.md +15 -0
- package/docs/examples/functions/list-executions.md +15 -0
- package/docs/examples/functions/list-runtimes.md +11 -0
- package/docs/examples/functions/list-specifications.md +11 -0
- package/docs/examples/functions/list-templates.md +16 -0
- package/docs/examples/functions/list-variables.md +13 -0
- package/docs/examples/functions/list.md +14 -0
- package/docs/examples/functions/update-deployment-build.md +14 -0
- package/docs/examples/functions/update-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +16 -0
- package/docs/examples/functions/update.md +30 -0
- package/docs/examples/graphql/mutation.md +13 -0
- package/docs/examples/graphql/query.md +13 -0
- package/docs/examples/health/get-antivirus.md +11 -0
- package/docs/examples/health/get-cache.md +11 -0
- package/docs/examples/health/get-certificate.md +13 -0
- package/docs/examples/health/get-d-b.md +11 -0
- package/docs/examples/health/get-failed-jobs.md +14 -0
- package/docs/examples/health/get-pub-sub.md +11 -0
- package/docs/examples/health/get-queue-builds.md +13 -0
- package/docs/examples/health/get-queue-certificates.md +13 -0
- package/docs/examples/health/get-queue-databases.md +14 -0
- package/docs/examples/health/get-queue-deletes.md +13 -0
- package/docs/examples/health/get-queue-functions.md +13 -0
- package/docs/examples/health/get-queue-logs.md +13 -0
- package/docs/examples/health/get-queue-mails.md +13 -0
- package/docs/examples/health/get-queue-messaging.md +13 -0
- package/docs/examples/health/get-queue-migrations.md +13 -0
- 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 +13 -0
- package/docs/examples/health/get-queue.md +11 -0
- package/docs/examples/health/get-storage-local.md +11 -0
- package/docs/examples/health/get-storage.md +11 -0
- package/docs/examples/health/get-time.md +11 -0
- package/docs/examples/health/get.md +11 -0
- package/docs/examples/locale/get.md +11 -0
- package/docs/examples/locale/list-codes.md +11 -0
- package/docs/examples/locale/list-continents.md +11 -0
- package/docs/examples/locale/list-countries-e-u.md +11 -0
- package/docs/examples/locale/list-countries-phones.md +11 -0
- package/docs/examples/locale/list-countries.md +11 -0
- package/docs/examples/locale/list-currencies.md +11 -0
- package/docs/examples/locale/list-languages.md +11 -0
- package/docs/examples/messaging/create-apns-provider.md +20 -0
- package/docs/examples/messaging/create-email.md +24 -0
- package/docs/examples/messaging/create-fcm-provider.md +16 -0
- package/docs/examples/messaging/create-mailgun-provider.md +22 -0
- package/docs/examples/messaging/create-msg91provider.md +18 -0
- package/docs/examples/messaging/create-push.md +28 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +20 -0
- 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 +15 -0
- package/docs/examples/messaging/create-telesign-provider.md +18 -0
- package/docs/examples/messaging/create-textmagic-provider.md +18 -0
- package/docs/examples/messaging/create-topic.md +15 -0
- package/docs/examples/messaging/create-twilio-provider.md +18 -0
- package/docs/examples/messaging/create-vonage-provider.md +18 -0
- package/docs/examples/messaging/delete-provider.md +13 -0
- package/docs/examples/messaging/delete-subscriber.md +14 -0
- package/docs/examples/messaging/delete-topic.md +13 -0
- package/docs/examples/messaging/delete.md +13 -0
- package/docs/examples/messaging/get-message.md +13 -0
- package/docs/examples/messaging/get-provider.md +13 -0
- package/docs/examples/messaging/get-subscriber.md +14 -0
- package/docs/examples/messaging/get-topic.md +13 -0
- package/docs/examples/messaging/list-message-logs.md +14 -0
- package/docs/examples/messaging/list-messages.md +14 -0
- package/docs/examples/messaging/list-provider-logs.md +14 -0
- package/docs/examples/messaging/list-providers.md +14 -0
- package/docs/examples/messaging/list-subscriber-logs.md +14 -0
- package/docs/examples/messaging/list-subscribers.md +15 -0
- package/docs/examples/messaging/list-targets.md +14 -0
- package/docs/examples/messaging/list-topic-logs.md +14 -0
- package/docs/examples/messaging/list-topics.md +14 -0
- package/docs/examples/messaging/update-apns-provider.md +20 -0
- package/docs/examples/messaging/update-email.md +24 -0
- package/docs/examples/messaging/update-fcm-provider.md +16 -0
- package/docs/examples/messaging/update-mailgun-provider.md +22 -0
- package/docs/examples/messaging/update-msg91provider.md +18 -0
- package/docs/examples/messaging/update-push.md +28 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +20 -0
- 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 +18 -0
- package/docs/examples/messaging/update-textmagic-provider.md +18 -0
- package/docs/examples/messaging/update-topic.md +15 -0
- package/docs/examples/messaging/update-twilio-provider.md +18 -0
- package/docs/examples/messaging/update-vonage-provider.md +18 -0
- package/docs/examples/migrations/create-appwrite-migration.md +16 -0
- package/docs/examples/migrations/create-firebase-migration.md +14 -0
- package/docs/examples/migrations/create-firebase-o-auth-migration.md +14 -0
- package/docs/examples/migrations/create-n-host-migration.md +20 -0
- package/docs/examples/migrations/create-supabase-migration.md +19 -0
- package/docs/examples/migrations/delete-firebase-auth.md +11 -0
- package/docs/examples/migrations/delete.md +13 -0
- package/docs/examples/migrations/get-appwrite-report.md +16 -0
- package/docs/examples/migrations/get-firebase-report-o-auth.md +14 -0
- package/docs/examples/migrations/get-firebase-report.md +14 -0
- package/docs/examples/migrations/get-n-host-report.md +20 -0
- package/docs/examples/migrations/get-supabase-report.md +19 -0
- package/docs/examples/migrations/get.md +13 -0
- package/docs/examples/migrations/list-firebase-projects.md +11 -0
- package/docs/examples/migrations/list.md +14 -0
- package/docs/examples/migrations/retry.md +13 -0
- package/docs/examples/project/create-variable.md +14 -0
- package/docs/examples/project/delete-variable.md +13 -0
- package/docs/examples/project/get-usage.md +15 -0
- package/docs/examples/project/get-variable.md +13 -0
- package/docs/examples/project/list-variables.md +11 -0
- package/docs/examples/project/update-variable.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +15 -0
- package/docs/examples/projects/create-key.md +16 -0
- package/docs/examples/projects/create-platform.md +18 -0
- package/docs/examples/projects/create-smtp-test.md +22 -0
- package/docs/examples/projects/create-webhook.md +20 -0
- package/docs/examples/projects/create.md +25 -0
- package/docs/examples/projects/delete-email-template.md +15 -0
- package/docs/examples/projects/delete-key.md +14 -0
- package/docs/examples/projects/delete-platform.md +14 -0
- package/docs/examples/projects/delete-sms-template.md +15 -0
- package/docs/examples/projects/delete-webhook.md +14 -0
- package/docs/examples/projects/delete.md +13 -0
- package/docs/examples/projects/get-email-template.md +15 -0
- package/docs/examples/projects/get-key.md +14 -0
- package/docs/examples/projects/get-platform.md +14 -0
- package/docs/examples/projects/get-sms-template.md +15 -0
- package/docs/examples/projects/get-webhook.md +14 -0
- package/docs/examples/projects/get.md +13 -0
- package/docs/examples/projects/list-keys.md +13 -0
- package/docs/examples/projects/list-platforms.md +13 -0
- package/docs/examples/projects/list-webhooks.md +13 -0
- package/docs/examples/projects/list.md +14 -0
- 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 +14 -0
- package/docs/examples/projects/update-auth-limit.md +14 -0
- package/docs/examples/projects/update-auth-password-dictionary.md +14 -0
- package/docs/examples/projects/update-auth-password-history.md +14 -0
- package/docs/examples/projects/update-auth-sessions-limit.md +14 -0
- package/docs/examples/projects/update-auth-status.md +15 -0
- package/docs/examples/projects/update-email-template.md +20 -0
- package/docs/examples/projects/update-key.md +17 -0
- package/docs/examples/projects/update-mock-numbers.md +14 -0
- package/docs/examples/projects/update-o-auth2.md +17 -0
- package/docs/examples/projects/update-personal-data-check.md +14 -0
- package/docs/examples/projects/update-platform.md +18 -0
- package/docs/examples/projects/update-service-status-all.md +14 -0
- package/docs/examples/projects/update-service-status.md +15 -0
- package/docs/examples/projects/update-session-alerts.md +14 -0
- package/docs/examples/projects/update-sms-template.md +16 -0
- package/docs/examples/projects/update-smtp.md +22 -0
- package/docs/examples/projects/update-team.md +14 -0
- package/docs/examples/projects/update-webhook-signature.md +14 -0
- package/docs/examples/projects/update-webhook.md +21 -0
- package/docs/examples/projects/update.md +23 -0
- package/docs/examples/proxy/create-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +13 -0
- package/docs/examples/proxy/get-rule.md +13 -0
- package/docs/examples/proxy/list-rules.md +14 -0
- package/docs/examples/proxy/update-rule-verification.md +13 -0
- package/docs/examples/storage/create-bucket.md +22 -0
- package/docs/examples/storage/create-file.md +16 -0
- package/docs/examples/storage/delete-bucket.md +13 -0
- package/docs/examples/storage/delete-file.md +14 -0
- package/docs/examples/storage/get-bucket-usage.md +14 -0
- package/docs/examples/storage/get-bucket.md +13 -0
- package/docs/examples/storage/get-file-download.md +14 -0
- package/docs/examples/storage/get-file-preview.md +25 -0
- package/docs/examples/storage/get-file-view.md +14 -0
- package/docs/examples/storage/get-file.md +14 -0
- package/docs/examples/storage/get-usage.md +13 -0
- package/docs/examples/storage/list-buckets.md +14 -0
- package/docs/examples/storage/list-files.md +15 -0
- package/docs/examples/storage/update-bucket.md +22 -0
- package/docs/examples/storage/update-file.md +16 -0
- package/docs/examples/teams/create-membership.md +19 -0
- package/docs/examples/teams/create.md +15 -0
- package/docs/examples/teams/delete-membership.md +14 -0
- package/docs/examples/teams/delete.md +13 -0
- package/docs/examples/teams/get-membership.md +14 -0
- package/docs/examples/teams/get-prefs.md +13 -0
- package/docs/examples/teams/get.md +13 -0
- package/docs/examples/teams/list-logs.md +14 -0
- package/docs/examples/teams/list-memberships.md +15 -0
- package/docs/examples/teams/list.md +14 -0
- package/docs/examples/teams/update-membership-status.md +16 -0
- package/docs/examples/teams/update-membership.md +15 -0
- package/docs/examples/teams/update-name.md +14 -0
- package/docs/examples/teams/update-prefs.md +14 -0
- package/docs/examples/users/create-argon2user.md +16 -0
- package/docs/examples/users/create-bcrypt-user.md +16 -0
- package/docs/examples/users/create-j-w-t.md +15 -0
- package/docs/examples/users/create-m-d5user.md +16 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/create-p-h-pass-user.md +16 -0
- package/docs/examples/users/create-s-h-a-user.md +17 -0
- package/docs/examples/users/create-scrypt-modified-user.md +19 -0
- package/docs/examples/users/create-scrypt-user.md +21 -0
- package/docs/examples/users/create-session.md +13 -0
- package/docs/examples/users/create-target.md +18 -0
- package/docs/examples/users/create-token.md +15 -0
- package/docs/examples/users/create.md +17 -0
- package/docs/examples/users/delete-identity.md +13 -0
- package/docs/examples/users/delete-mfa-authenticator.md +14 -0
- package/docs/examples/users/delete-session.md +14 -0
- package/docs/examples/users/delete-sessions.md +13 -0
- package/docs/examples/users/delete-target.md +14 -0
- package/docs/examples/users/delete.md +13 -0
- package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/get-prefs.md +13 -0
- package/docs/examples/users/get-target.md +14 -0
- package/docs/examples/users/get-usage.md +13 -0
- package/docs/examples/users/get.md +13 -0
- package/docs/examples/users/list-identities.md +14 -0
- package/docs/examples/users/list-logs.md +14 -0
- package/docs/examples/users/list-memberships.md +13 -0
- package/docs/examples/users/list-mfa-factors.md +13 -0
- package/docs/examples/users/list-sessions.md +13 -0
- package/docs/examples/users/list-targets.md +14 -0
- package/docs/examples/users/list.md +14 -0
- package/docs/examples/users/update-email-verification.md +14 -0
- package/docs/examples/users/update-email.md +14 -0
- package/docs/examples/users/update-labels.md +14 -0
- package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
- package/docs/examples/users/update-mfa.md +14 -0
- package/docs/examples/users/update-name.md +14 -0
- package/docs/examples/users/update-password.md +14 -0
- package/docs/examples/users/update-phone-verification.md +14 -0
- package/docs/examples/users/update-phone.md +14 -0
- package/docs/examples/users/update-prefs.md +14 -0
- package/docs/examples/users/update-status.md +14 -0
- package/docs/examples/users/update-target.md +17 -0
- package/docs/examples/vcs/create-repository-detection.md +15 -0
- package/docs/examples/vcs/create-repository.md +15 -0
- package/docs/examples/vcs/delete-installation.md +13 -0
- package/docs/examples/vcs/get-installation.md +13 -0
- package/docs/examples/vcs/get-repository-contents.md +15 -0
- package/docs/examples/vcs/get-repository.md +14 -0
- package/docs/examples/vcs/list-installations.md +14 -0
- package/docs/examples/vcs/list-repositories.md +14 -0
- package/docs/examples/vcs/list-repository-branches.md +14 -0
- package/docs/examples/vcs/update-external-deployments.md +15 -0
- package/package.json +42 -0
- package/publish.sh +4 -0
- package/rollup.config.js +27 -0
- package/src/Cache/Adapter.ts +11 -0
- package/src/Cache/Adapters/Filesystem.ts +126 -0
- package/src/Cache/Adapters/Memory.ts +57 -0
- package/src/Cache/Adapters/None.ts +36 -0
- package/src/Cache/Adapters/Redis.ts +106 -0
- package/src/Cache/Adapters/Sharding.ts +87 -0
- package/src/Cache/Cache.ts +75 -0
- package/src/Cache/index.ts +5 -0
- package/src/Cache/test.ts +0 -0
- package/src/Services.ts +41 -0
- package/src/client.ts +397 -0
- package/src/decorators/Cache.ts +102 -0
- package/src/decorators/CacheKey.ts +9 -0
- package/src/decorators/Invalidate.ts +68 -0
- package/src/enums/api-service.ts +13 -0
- package/src/enums/api.ts +5 -0
- package/src/enums/auth-method.ts +9 -0
- package/src/enums/authentication-factor.ts +6 -0
- package/src/enums/authenticator-type.ts +3 -0
- package/src/enums/browser.ts +16 -0
- package/src/enums/compression.ts +5 -0
- package/src/enums/credit-card.ts +18 -0
- package/src/enums/database-usage-range.ts +5 -0
- package/src/enums/email-template-locale.ts +133 -0
- package/src/enums/email-template-type.ts +9 -0
- package/src/enums/entities/EntityLimitType.ts +4 -0
- package/src/enums/entities/PropertyAttributeName.ts +27 -0
- package/src/enums/entities/PropertyCondition.ts +8 -0
- package/src/enums/entities/PropertyType.ts +16 -0
- package/src/enums/entities/PropertyValueType.ts +6 -0
- package/src/enums/entities/RowAccess.ts +2 -0
- package/src/enums/entities/ViewFilterCondition.ts +12 -0
- package/src/enums/execution-method.ts +8 -0
- package/src/enums/flag.ts +197 -0
- package/src/enums/function-usage-range.ts +5 -0
- package/src/enums/image-format.ts +7 -0
- package/src/enums/image-gravity.ts +11 -0
- package/src/enums/index-type.ts +5 -0
- package/src/enums/messaging-provider-type.ts +5 -0
- package/src/enums/name.ts +14 -0
- package/src/enums/o-auth-provider copy.ts +41 -0
- package/src/enums/o-auth-provider.ts +41 -0
- package/src/enums/password-hash.ts +13 -0
- package/src/enums/platform-type.ts +17 -0
- package/src/enums/project-usage-range.ts +4 -0
- package/src/enums/region.ts +4 -0
- package/src/enums/relation-mutate.ts +5 -0
- package/src/enums/relationship-type.ts +6 -0
- package/src/enums/resource-type.ts +4 -0
- package/src/enums/runtime.ts +48 -0
- package/src/enums/s-m-t-p-secure.ts +3 -0
- package/src/enums/shared/ApplicationLayout.ts +4 -0
- package/src/enums/shared/Colors.ts +24 -0
- package/src/enums/shared/InputType.ts +6 -0
- package/src/enums/shared/Periodicity.ts +7 -0
- package/src/enums/shared/SvgIcon.ts +37 -0
- package/src/enums/shared/Theme.ts +4 -0
- package/src/enums/sms-template-locale.ts +133 -0
- package/src/enums/sms-template-type.ts +6 -0
- package/src/enums/smtp-encryption.ts +5 -0
- package/src/enums/storage-usage-range.ts +5 -0
- package/src/enums/subscriptions/PricingModel.ts +14 -0
- package/src/enums/subscriptions/SubscriptionBillingPeriod.ts +15 -0
- package/src/enums/subscriptions/SubscriptionFeatureLimitType.ts +16 -0
- package/src/enums/subscriptions/SubscriptionPriceType.ts +10 -0
- package/src/enums/tenants/LinkedAccountStatus.ts +5 -0
- package/src/enums/tenants/TenantUserJoined.ts +6 -0
- package/src/enums/tenants/TenantUserStatus.ts +6 -0
- package/src/enums/tenants/TenantUserType.ts +5 -0
- package/src/enums/user-usage-range.ts +5 -0
- package/src/id.ts +47 -0
- package/src/index.ts +36 -0
- package/src/inputFile.ts +23 -0
- package/src/lib/Registry/Registry.ts +66 -0
- package/src/lib/Registry/index.ts +1 -0
- package/src/models.ts +3339 -0
- package/src/permission.ts +57 -0
- package/src/query.ts +261 -0
- package/src/role.ts +100 -0
- package/src/service-client.ts +29 -0
- package/src/service.ts +30 -0
- package/src/services/account.ts +1643 -0
- package/src/services/applets.ts +75 -0
- package/src/services/avatars.ts +314 -0
- package/src/services/community.ts +102 -0
- package/src/services/configuration.ts +15 -0
- package/src/services/databases.ts +2037 -0
- package/src/services/functions.ts +986 -0
- package/src/services/graphql.ts +75 -0
- package/src/services/health.ts +629 -0
- package/src/services/locale.ts +205 -0
- package/src/services/messaging.ts +2247 -0
- package/src/services/node.ts +15 -0
- package/src/services/permissions.ts +131 -0
- package/src/services/pricing.ts +30 -0
- package/src/services/projects.ts +1901 -0
- package/src/services/roles.ts +101 -0
- package/src/services/schema.ts +65 -0
- package/src/services/storage.ts +576 -0
- package/src/services/subscription.ts +40 -0
- package/src/services/teams.ts +490 -0
- package/src/services/tenant-subscription.ts +93 -0
- package/src/services/tenant.ts +194 -0
- package/src/services/users.ts +1584 -0
- package/tsconfig.json +29 -0
- package/types/Cache/Adapter.d.ts +10 -0
- package/types/Cache/Adapters/Filesystem.d.ts +16 -0
- package/types/Cache/Adapters/Memory.d.ts +18 -0
- package/types/Cache/Adapters/None.d.ts +12 -0
- package/types/Cache/Adapters/Redis.d.ts +14 -0
- package/types/Cache/Adapters/Sharding.d.ts +17 -0
- package/types/Cache/Cache.d.ts +16 -0
- package/types/Cache/index.d.ts +5 -0
- package/types/Cache/test.d.ts +0 -0
- package/types/Services.d.ts +6 -0
- package/types/client.d.ts +141 -0
- package/types/decorators/Cache.d.ts +1 -0
- package/types/decorators/CacheKey.d.ts +1 -0
- package/types/decorators/Invalidate.d.ts +1 -0
- package/types/enums/api-service.d.ts +13 -0
- package/types/enums/api.d.ts +5 -0
- package/types/enums/auth-method.d.ts +9 -0
- package/types/enums/authentication-factor.d.ts +6 -0
- package/types/enums/authenticator-type.d.ts +3 -0
- package/types/enums/browser.d.ts +16 -0
- package/types/enums/compression.d.ts +5 -0
- package/types/enums/credit-card.d.ts +18 -0
- package/types/enums/database-usage-range.d.ts +5 -0
- package/types/enums/email-template-locale.d.ts +133 -0
- package/types/enums/email-template-type.d.ts +9 -0
- package/types/enums/entities/EntityLimitType.d.ts +4 -0
- package/types/enums/entities/PropertyAttributeName.d.ts +27 -0
- package/types/enums/entities/PropertyCondition.d.ts +7 -0
- package/types/enums/entities/PropertyType.d.ts +12 -0
- package/types/enums/entities/PropertyValueType.d.ts +6 -0
- package/types/enums/entities/RowAccess.d.ts +2 -0
- package/types/enums/entities/ViewFilterCondition.d.ts +12 -0
- package/types/enums/execution-method.d.ts +8 -0
- package/types/enums/flag.d.ts +197 -0
- package/types/enums/function-usage-range.d.ts +5 -0
- package/types/enums/image-format.d.ts +7 -0
- package/types/enums/image-gravity.d.ts +11 -0
- package/types/enums/index-type.d.ts +5 -0
- package/types/enums/messaging-provider-type.d.ts +5 -0
- package/types/enums/name.d.ts +14 -0
- package/types/enums/o-auth-provider copy.d.ts +41 -0
- package/types/enums/o-auth-provider.d.ts +41 -0
- package/types/enums/password-hash.d.ts +13 -0
- package/types/enums/platform-type.d.ts +17 -0
- package/types/enums/project-usage-range.d.ts +4 -0
- package/types/enums/region.d.ts +4 -0
- package/types/enums/relation-mutate.d.ts +5 -0
- package/types/enums/relationship-type.d.ts +6 -0
- package/types/enums/resource-type.d.ts +4 -0
- package/types/enums/runtime.d.ts +48 -0
- package/types/enums/s-m-t-p-secure.d.ts +3 -0
- package/types/enums/shared/ApplicationLayout.d.ts +4 -0
- package/types/enums/shared/Colors.d.ts +24 -0
- package/types/enums/shared/InputType.d.ts +6 -0
- package/types/enums/shared/Periodicity.d.ts +7 -0
- package/types/enums/shared/SvgIcon.d.ts +37 -0
- package/types/enums/shared/Theme.d.ts +4 -0
- package/types/enums/sms-template-locale.d.ts +133 -0
- package/types/enums/sms-template-type.d.ts +6 -0
- package/types/enums/smtp-encryption.d.ts +5 -0
- package/types/enums/storage-usage-range.d.ts +5 -0
- package/types/enums/subscriptions/PricingModel.d.ts +11 -0
- package/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
- package/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
- package/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
- package/types/enums/tenants/TenantUserJoined.d.ts +6 -0
- package/types/enums/tenants/TenantUserStatus.d.ts +6 -0
- package/types/enums/tenants/TenantUserType.d.ts +5 -0
- package/types/enums/user-usage-range.d.ts +5 -0
- package/types/id.d.ts +20 -0
- package/types/index.d.ts +36 -0
- package/types/inputFile.d.ts +6 -0
- package/types/lib/Registry/Registry.d.ts +38 -0
- package/types/lib/Registry/index.d.ts +1 -0
- package/types/models.d.ts +3272 -0
- package/types/permission.d.ts +43 -0
- package/types/query.d.ts +194 -0
- package/types/role.d.ts +70 -0
- package/types/service-client.d.ts +7 -0
- package/types/service.d.ts +11 -0
- package/types/services/account.d.ts +530 -0
- package/types/services/acl.d.ts +28 -0
- package/types/services/applets.d.ts +9 -0
- package/types/services/assistant.d.ts +14 -0
- package/types/services/avatars.d.ts +115 -0
- package/types/services/community.d.ts +19 -0
- package/types/services/configuration.d.ts +5 -0
- package/types/services/console.d.ts +15 -0
- package/types/services/databases.d.ts +613 -0
- package/types/services/functions.d.ts +319 -0
- package/types/services/graphql.d.ts +25 -0
- package/types/services/health.d.ts +231 -0
- package/types/services/locale.d.ts +80 -0
- package/types/services/messaging.d.ts +685 -0
- package/types/services/migrations.d.ts +185 -0
- package/types/services/node.d.ts +5 -0
- package/types/services/permissions.d.ts +20 -0
- package/types/services/pricing.d.ts +15 -0
- package/types/services/project.d.ts +70 -0
- package/types/services/projects.d.ts +542 -0
- package/types/services/proxy.d.ts +59 -0
- package/types/services/roles.d.ts +19 -0
- package/types/services/schema.d.ts +17 -0
- package/types/services/storage.d.ts +189 -0
- package/types/services/subscription-product.d.ts +77 -0
- package/types/services/subscription.d.ts +15 -0
- package/types/services/teams.d.ts +167 -0
- package/types/services/tenant-subscription.d.ts +12 -0
- package/types/services/tenant.d.ts +32 -0
- package/types/services/users.d.ts +499 -0
- package/types/services/vcs.d.ts +108 -0
@@ -0,0 +1,499 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
import { PasswordHash } from '../enums/password-hash';
|
4
|
+
import { AuthenticatorType } from '../enums/authenticator-type';
|
5
|
+
import { MessagingProviderType } from '../enums/messaging-provider-type';
|
6
|
+
export declare class Users {
|
7
|
+
client: Client;
|
8
|
+
constructor(client: Client);
|
9
|
+
/**
|
10
|
+
* List users
|
11
|
+
*
|
12
|
+
* Get a list of all the project's users. You can use the query params to filter your results.
|
13
|
+
*
|
14
|
+
* @param {string[]} queries
|
15
|
+
* @param {string} search
|
16
|
+
* @throws {AppcondaException}
|
17
|
+
* @returns {Promise<Models.UserList<Preferences>>}
|
18
|
+
*/
|
19
|
+
list<Preferences extends Models.Preferences>(queries?: string[], search?: string): Promise<Models.UserList<Preferences>>;
|
20
|
+
/**
|
21
|
+
* Create user
|
22
|
+
*
|
23
|
+
* Create a new user.
|
24
|
+
*
|
25
|
+
* @param {string} userId
|
26
|
+
* @param {string} email
|
27
|
+
* @param {string} phone
|
28
|
+
* @param {string} password
|
29
|
+
* @param {string} name
|
30
|
+
* @throws {AppcondaException}
|
31
|
+
* @returns {Promise<Models.User<Preferences>>}
|
32
|
+
*/
|
33
|
+
create<Preferences extends Models.Preferences>(userId: string, email?: string, phone?: string, password?: string, name?: string): Promise<Models.User<Preferences>>;
|
34
|
+
/**
|
35
|
+
* Create user with Argon2 password
|
36
|
+
*
|
37
|
+
* Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
38
|
+
*
|
39
|
+
* @param {string} userId
|
40
|
+
* @param {string} email
|
41
|
+
* @param {string} password
|
42
|
+
* @param {string} name
|
43
|
+
* @throws {AppcondaException}
|
44
|
+
* @returns {Promise<Models.User<Preferences>>}
|
45
|
+
*/
|
46
|
+
createArgon2User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
47
|
+
/**
|
48
|
+
* Create user with bcrypt password
|
49
|
+
*
|
50
|
+
* Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
51
|
+
*
|
52
|
+
* @param {string} userId
|
53
|
+
* @param {string} email
|
54
|
+
* @param {string} password
|
55
|
+
* @param {string} name
|
56
|
+
* @throws {AppcondaException}
|
57
|
+
* @returns {Promise<Models.User<Preferences>>}
|
58
|
+
*/
|
59
|
+
createBcryptUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
60
|
+
/**
|
61
|
+
* List Identities
|
62
|
+
*
|
63
|
+
* Get identities for all users.
|
64
|
+
*
|
65
|
+
* @param {string[]} queries
|
66
|
+
* @param {string} search
|
67
|
+
* @throws {AppcondaException}
|
68
|
+
* @returns {Promise<Models.IdentityList>}
|
69
|
+
*/
|
70
|
+
listIdentities(queries?: string[], search?: string): Promise<Models.IdentityList>;
|
71
|
+
/**
|
72
|
+
* Delete identity
|
73
|
+
*
|
74
|
+
* Delete an identity by its unique ID.
|
75
|
+
*
|
76
|
+
* @param {string} identityId
|
77
|
+
* @throws {AppcondaException}
|
78
|
+
* @returns {Promise<{}>}
|
79
|
+
*/
|
80
|
+
deleteIdentity(identityId: string): Promise<{}>;
|
81
|
+
/**
|
82
|
+
* Create user with MD5 password
|
83
|
+
*
|
84
|
+
* Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
85
|
+
*
|
86
|
+
* @param {string} userId
|
87
|
+
* @param {string} email
|
88
|
+
* @param {string} password
|
89
|
+
* @param {string} name
|
90
|
+
* @throws {AppcondaException}
|
91
|
+
* @returns {Promise<Models.User<Preferences>>}
|
92
|
+
*/
|
93
|
+
createMD5User<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
94
|
+
/**
|
95
|
+
* Create user with PHPass password
|
96
|
+
*
|
97
|
+
* Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
98
|
+
*
|
99
|
+
* @param {string} userId
|
100
|
+
* @param {string} email
|
101
|
+
* @param {string} password
|
102
|
+
* @param {string} name
|
103
|
+
* @throws {AppcondaException}
|
104
|
+
* @returns {Promise<Models.User<Preferences>>}
|
105
|
+
*/
|
106
|
+
createPHPassUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, name?: string): Promise<Models.User<Preferences>>;
|
107
|
+
/**
|
108
|
+
* Create user with Scrypt password
|
109
|
+
*
|
110
|
+
* Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
111
|
+
*
|
112
|
+
* @param {string} userId
|
113
|
+
* @param {string} email
|
114
|
+
* @param {string} password
|
115
|
+
* @param {string} passwordSalt
|
116
|
+
* @param {number} passwordCpu
|
117
|
+
* @param {number} passwordMemory
|
118
|
+
* @param {number} passwordParallel
|
119
|
+
* @param {number} passwordLength
|
120
|
+
* @param {string} name
|
121
|
+
* @throws {AppcondaException}
|
122
|
+
* @returns {Promise<Models.User<Preferences>>}
|
123
|
+
*/
|
124
|
+
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>>;
|
125
|
+
/**
|
126
|
+
* Create user with Scrypt modified password
|
127
|
+
*
|
128
|
+
* 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://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
129
|
+
*
|
130
|
+
* @param {string} userId
|
131
|
+
* @param {string} email
|
132
|
+
* @param {string} password
|
133
|
+
* @param {string} passwordSalt
|
134
|
+
* @param {string} passwordSaltSeparator
|
135
|
+
* @param {string} passwordSignerKey
|
136
|
+
* @param {string} name
|
137
|
+
* @throws {AppcondaException}
|
138
|
+
* @returns {Promise<Models.User<Preferences>>}
|
139
|
+
*/
|
140
|
+
createScryptModifiedUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordSalt: string, passwordSaltSeparator: string, passwordSignerKey: string, name?: string): Promise<Models.User<Preferences>>;
|
141
|
+
/**
|
142
|
+
* Create user with SHA password
|
143
|
+
*
|
144
|
+
* 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://appconda.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
|
145
|
+
*
|
146
|
+
* @param {string} userId
|
147
|
+
* @param {string} email
|
148
|
+
* @param {string} password
|
149
|
+
* @param {PasswordHash} passwordVersion
|
150
|
+
* @param {string} name
|
151
|
+
* @throws {AppcondaException}
|
152
|
+
* @returns {Promise<Models.User<Preferences>>}
|
153
|
+
*/
|
154
|
+
createSHAUser<Preferences extends Models.Preferences>(userId: string, email: string, password: string, passwordVersion?: PasswordHash, name?: string): Promise<Models.User<Preferences>>;
|
155
|
+
/**
|
156
|
+
* Get user
|
157
|
+
*
|
158
|
+
* Get a user by its unique ID.
|
159
|
+
*
|
160
|
+
* @param {string} userId
|
161
|
+
* @throws {AppcondaException}
|
162
|
+
* @returns {Promise<Models.User<Preferences>>}
|
163
|
+
*/
|
164
|
+
get<Preferences extends Models.Preferences>(userId: string): Promise<Models.User<Preferences>>;
|
165
|
+
/**
|
166
|
+
* Delete user
|
167
|
+
*
|
168
|
+
* 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://appconda.io/docs/server/users#usersUpdateStatus) endpoint instead.
|
169
|
+
*
|
170
|
+
* @param {string} userId
|
171
|
+
* @throws {AppcondaException}
|
172
|
+
* @returns {Promise<{}>}
|
173
|
+
*/
|
174
|
+
delete(userId: string): Promise<{}>;
|
175
|
+
/**
|
176
|
+
* Update email
|
177
|
+
*
|
178
|
+
* Update the user email by its unique ID.
|
179
|
+
*
|
180
|
+
* @param {string} userId
|
181
|
+
* @param {string} email
|
182
|
+
* @throws {AppcondaException}
|
183
|
+
* @returns {Promise<Models.User<Preferences>>}
|
184
|
+
*/
|
185
|
+
updateEmail<Preferences extends Models.Preferences>(userId: string, email: string): Promise<Models.User<Preferences>>;
|
186
|
+
/**
|
187
|
+
* Create user JWT
|
188
|
+
*
|
189
|
+
* 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.
|
190
|
+
*
|
191
|
+
* @param {string} userId
|
192
|
+
* @param {string} sessionId
|
193
|
+
* @param {number} duration
|
194
|
+
* @throws {AppcondaException}
|
195
|
+
* @returns {Promise<Models.Jwt>}
|
196
|
+
*/
|
197
|
+
createJWT(userId: string, sessionId?: string, duration?: number): Promise<Models.Jwt>;
|
198
|
+
/**
|
199
|
+
* Update user labels
|
200
|
+
*
|
201
|
+
* Update the user labels by its unique ID.
|
202
|
+
|
203
|
+
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://appconda.io/docs/permissions) for more info.
|
204
|
+
*
|
205
|
+
* @param {string} userId
|
206
|
+
* @param {string[]} labels
|
207
|
+
* @throws {AppcondaException}
|
208
|
+
* @returns {Promise<Models.User<Preferences>>}
|
209
|
+
*/
|
210
|
+
updateLabels<Preferences extends Models.Preferences>(userId: string, labels: string[]): Promise<Models.User<Preferences>>;
|
211
|
+
/**
|
212
|
+
* List user logs
|
213
|
+
*
|
214
|
+
* Get the user activity logs list by its unique ID.
|
215
|
+
*
|
216
|
+
* @param {string} userId
|
217
|
+
* @param {string[]} queries
|
218
|
+
* @throws {AppcondaException}
|
219
|
+
* @returns {Promise<Models.LogList>}
|
220
|
+
*/
|
221
|
+
listLogs(userId: string, queries?: string[]): Promise<Models.LogList>;
|
222
|
+
/**
|
223
|
+
* List user memberships
|
224
|
+
*
|
225
|
+
* Get the user membership list by its unique ID.
|
226
|
+
*
|
227
|
+
* @param {string} userId
|
228
|
+
* @throws {AppcondaException}
|
229
|
+
* @returns {Promise<Models.MembershipList>}
|
230
|
+
*/
|
231
|
+
listMemberships(userId: string): Promise<Models.MembershipList>;
|
232
|
+
/**
|
233
|
+
* Update MFA
|
234
|
+
*
|
235
|
+
* Enable or disable MFA on a user account.
|
236
|
+
*
|
237
|
+
* @param {string} userId
|
238
|
+
* @param {boolean} mfa
|
239
|
+
* @throws {AppcondaException}
|
240
|
+
* @returns {Promise<Models.User<Preferences>>}
|
241
|
+
*/
|
242
|
+
updateMfa<Preferences extends Models.Preferences>(userId: string, mfa: boolean): Promise<Models.User<Preferences>>;
|
243
|
+
/**
|
244
|
+
* Delete Authenticator
|
245
|
+
*
|
246
|
+
* Delete an authenticator app.
|
247
|
+
*
|
248
|
+
* @param {string} userId
|
249
|
+
* @param {AuthenticatorType} type
|
250
|
+
* @throws {AppcondaException}
|
251
|
+
* @returns {Promise<Models.User<Preferences>>}
|
252
|
+
*/
|
253
|
+
deleteMfaAuthenticator<Preferences extends Models.Preferences>(userId: string, type: AuthenticatorType): Promise<Models.User<Preferences>>;
|
254
|
+
/**
|
255
|
+
* List Factors
|
256
|
+
*
|
257
|
+
* List the factors available on the account to be used as a MFA challange.
|
258
|
+
*
|
259
|
+
* @param {string} userId
|
260
|
+
* @throws {AppcondaException}
|
261
|
+
* @returns {Promise<Models.MfaFactors>}
|
262
|
+
*/
|
263
|
+
listMfaFactors(userId: string): Promise<Models.MfaFactors>;
|
264
|
+
/**
|
265
|
+
* Get MFA Recovery Codes
|
266
|
+
*
|
267
|
+
* 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.
|
268
|
+
*
|
269
|
+
* @param {string} userId
|
270
|
+
* @throws {AppcondaException}
|
271
|
+
* @returns {Promise<Models.MfaRecoveryCodes>}
|
272
|
+
*/
|
273
|
+
getMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
274
|
+
/**
|
275
|
+
* Regenerate MFA Recovery Codes
|
276
|
+
*
|
277
|
+
* 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.
|
278
|
+
*
|
279
|
+
* @param {string} userId
|
280
|
+
* @throws {AppcondaException}
|
281
|
+
* @returns {Promise<Models.MfaRecoveryCodes>}
|
282
|
+
*/
|
283
|
+
updateMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
284
|
+
/**
|
285
|
+
* Create MFA Recovery Codes
|
286
|
+
*
|
287
|
+
* 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.
|
288
|
+
*
|
289
|
+
* @param {string} userId
|
290
|
+
* @throws {AppcondaException}
|
291
|
+
* @returns {Promise<Models.MfaRecoveryCodes>}
|
292
|
+
*/
|
293
|
+
createMfaRecoveryCodes(userId: string): Promise<Models.MfaRecoveryCodes>;
|
294
|
+
/**
|
295
|
+
* Update name
|
296
|
+
*
|
297
|
+
* Update the user name by its unique ID.
|
298
|
+
*
|
299
|
+
* @param {string} userId
|
300
|
+
* @param {string} name
|
301
|
+
* @throws {AppcondaException}
|
302
|
+
* @returns {Promise<Models.User<Preferences>>}
|
303
|
+
*/
|
304
|
+
updateName<Preferences extends Models.Preferences>(userId: string, name: string): Promise<Models.User<Preferences>>;
|
305
|
+
/**
|
306
|
+
* Update password
|
307
|
+
*
|
308
|
+
* Update the user password by its unique ID.
|
309
|
+
*
|
310
|
+
* @param {string} userId
|
311
|
+
* @param {string} password
|
312
|
+
* @throws {AppcondaException}
|
313
|
+
* @returns {Promise<Models.User<Preferences>>}
|
314
|
+
*/
|
315
|
+
updatePassword<Preferences extends Models.Preferences>(userId: string, password: string): Promise<Models.User<Preferences>>;
|
316
|
+
/**
|
317
|
+
* Update phone
|
318
|
+
*
|
319
|
+
* Update the user phone by its unique ID.
|
320
|
+
*
|
321
|
+
* @param {string} userId
|
322
|
+
* @param {string} number
|
323
|
+
* @throws {AppcondaException}
|
324
|
+
* @returns {Promise<Models.User<Preferences>>}
|
325
|
+
*/
|
326
|
+
updatePhone<Preferences extends Models.Preferences>(userId: string, number: string): Promise<Models.User<Preferences>>;
|
327
|
+
/**
|
328
|
+
* Get user preferences
|
329
|
+
*
|
330
|
+
* Get the user preferences by its unique ID.
|
331
|
+
*
|
332
|
+
* @param {string} userId
|
333
|
+
* @throws {AppcondaException}
|
334
|
+
* @returns {Promise<Preferences>}
|
335
|
+
*/
|
336
|
+
getPrefs<Preferences extends Models.Preferences>(userId: string): Promise<Preferences>;
|
337
|
+
/**
|
338
|
+
* Update user preferences
|
339
|
+
*
|
340
|
+
* 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.
|
341
|
+
*
|
342
|
+
* @param {string} userId
|
343
|
+
* @param {object} prefs
|
344
|
+
* @throws {AppcondaException}
|
345
|
+
* @returns {Promise<Preferences>}
|
346
|
+
*/
|
347
|
+
updatePrefs<Preferences extends Models.Preferences>(userId: string, prefs: object): Promise<Preferences>;
|
348
|
+
/**
|
349
|
+
* List user sessions
|
350
|
+
*
|
351
|
+
* Get the user sessions list by its unique ID.
|
352
|
+
*
|
353
|
+
* @param {string} userId
|
354
|
+
* @throws {AppcondaException}
|
355
|
+
* @returns {Promise<Models.SessionList>}
|
356
|
+
*/
|
357
|
+
listSessions(userId: string): Promise<Models.SessionList>;
|
358
|
+
/**
|
359
|
+
* Create session
|
360
|
+
*
|
361
|
+
* Creates a session for a user. Returns an immediately usable session object.
|
362
|
+
|
363
|
+
If you want to generate a token for a custom authentication flow, use the [POST /users/{userId}/tokens](https://appconda.io/docs/server/users#createToken) endpoint.
|
364
|
+
*
|
365
|
+
* @param {string} userId
|
366
|
+
* @throws {AppcondaException}
|
367
|
+
* @returns {Promise<Models.Session>}
|
368
|
+
*/
|
369
|
+
createSession(userId: string): Promise<Models.Session>;
|
370
|
+
/**
|
371
|
+
* Delete user sessions
|
372
|
+
*
|
373
|
+
* Delete all user's sessions by using the user's unique ID.
|
374
|
+
*
|
375
|
+
* @param {string} userId
|
376
|
+
* @throws {AppcondaException}
|
377
|
+
* @returns {Promise<{}>}
|
378
|
+
*/
|
379
|
+
deleteSessions(userId: string): Promise<{}>;
|
380
|
+
/**
|
381
|
+
* Delete user session
|
382
|
+
*
|
383
|
+
* Delete a user sessions by its unique ID.
|
384
|
+
*
|
385
|
+
* @param {string} userId
|
386
|
+
* @param {string} sessionId
|
387
|
+
* @throws {AppcondaException}
|
388
|
+
* @returns {Promise<{}>}
|
389
|
+
*/
|
390
|
+
deleteSession(userId: string, sessionId: string): Promise<{}>;
|
391
|
+
/**
|
392
|
+
* Update user status
|
393
|
+
*
|
394
|
+
* 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.
|
395
|
+
*
|
396
|
+
* @param {string} userId
|
397
|
+
* @param {boolean} status
|
398
|
+
* @throws {AppcondaException}
|
399
|
+
* @returns {Promise<Models.User<Preferences>>}
|
400
|
+
*/
|
401
|
+
updateStatus<Preferences extends Models.Preferences>(userId: string, status: boolean): Promise<Models.User<Preferences>>;
|
402
|
+
/**
|
403
|
+
* List User Targets
|
404
|
+
*
|
405
|
+
* List the messaging targets that are associated with a user.
|
406
|
+
*
|
407
|
+
* @param {string} userId
|
408
|
+
* @param {string[]} queries
|
409
|
+
* @throws {AppcondaException}
|
410
|
+
* @returns {Promise<Models.TargetList>}
|
411
|
+
*/
|
412
|
+
listTargets(userId: string, queries?: string[]): Promise<Models.TargetList>;
|
413
|
+
/**
|
414
|
+
* Create User Target
|
415
|
+
*
|
416
|
+
* Create a messaging target.
|
417
|
+
*
|
418
|
+
* @param {string} userId
|
419
|
+
* @param {string} targetId
|
420
|
+
* @param {MessagingProviderType} providerType
|
421
|
+
* @param {string} identifier
|
422
|
+
* @param {string} providerId
|
423
|
+
* @param {string} name
|
424
|
+
* @throws {AppcondaException}
|
425
|
+
* @returns {Promise<Models.Target>}
|
426
|
+
*/
|
427
|
+
createTarget(userId: string, targetId: string, providerType: MessagingProviderType, identifier: string, providerId?: string, name?: string): Promise<Models.Target>;
|
428
|
+
/**
|
429
|
+
* Get User Target
|
430
|
+
*
|
431
|
+
* Get a user's push notification target by ID.
|
432
|
+
*
|
433
|
+
* @param {string} userId
|
434
|
+
* @param {string} targetId
|
435
|
+
* @throws {AppcondaException}
|
436
|
+
* @returns {Promise<Models.Target>}
|
437
|
+
*/
|
438
|
+
getTarget(userId: string, targetId: string): Promise<Models.Target>;
|
439
|
+
/**
|
440
|
+
* Update User target
|
441
|
+
*
|
442
|
+
* Update a messaging target.
|
443
|
+
*
|
444
|
+
* @param {string} userId
|
445
|
+
* @param {string} targetId
|
446
|
+
* @param {string} identifier
|
447
|
+
* @param {string} providerId
|
448
|
+
* @param {string} name
|
449
|
+
* @throws {AppcondaException}
|
450
|
+
* @returns {Promise<Models.Target>}
|
451
|
+
*/
|
452
|
+
updateTarget(userId: string, targetId: string, identifier?: string, providerId?: string, name?: string): Promise<Models.Target>;
|
453
|
+
/**
|
454
|
+
* Delete user target
|
455
|
+
*
|
456
|
+
* Delete a messaging target.
|
457
|
+
*
|
458
|
+
* @param {string} userId
|
459
|
+
* @param {string} targetId
|
460
|
+
* @throws {AppcondaException}
|
461
|
+
* @returns {Promise<{}>}
|
462
|
+
*/
|
463
|
+
deleteTarget(userId: string, targetId: string): Promise<{}>;
|
464
|
+
/**
|
465
|
+
* Create token
|
466
|
+
*
|
467
|
+
* 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://appconda.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
|
468
|
+
|
469
|
+
*
|
470
|
+
* @param {string} userId
|
471
|
+
* @param {number} length
|
472
|
+
* @param {number} expire
|
473
|
+
* @throws {AppcondaException}
|
474
|
+
* @returns {Promise<Models.Token>}
|
475
|
+
*/
|
476
|
+
createToken(userId: string, length?: number, expire?: number): Promise<Models.Token>;
|
477
|
+
/**
|
478
|
+
* Update email verification
|
479
|
+
*
|
480
|
+
* Update the user email verification status by its unique ID.
|
481
|
+
*
|
482
|
+
* @param {string} userId
|
483
|
+
* @param {boolean} emailVerification
|
484
|
+
* @throws {AppcondaException}
|
485
|
+
* @returns {Promise<Models.User<Preferences>>}
|
486
|
+
*/
|
487
|
+
updateEmailVerification<Preferences extends Models.Preferences>(userId: string, emailVerification: boolean): Promise<Models.User<Preferences>>;
|
488
|
+
/**
|
489
|
+
* Update phone verification
|
490
|
+
*
|
491
|
+
* Update the user phone verification status by its unique ID.
|
492
|
+
*
|
493
|
+
* @param {string} userId
|
494
|
+
* @param {boolean} phoneVerification
|
495
|
+
* @throws {AppcondaException}
|
496
|
+
* @returns {Promise<Models.User<Preferences>>}
|
497
|
+
*/
|
498
|
+
updatePhoneVerification<Preferences extends Models.Preferences>(userId: string, phoneVerification: boolean): Promise<Models.User<Preferences>>;
|
499
|
+
}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
export declare class Vcs {
|
4
|
+
client: Client;
|
5
|
+
constructor(client: Client);
|
6
|
+
/**
|
7
|
+
* List Repositories
|
8
|
+
*
|
9
|
+
*
|
10
|
+
* @param {string} installationId
|
11
|
+
* @param {string} search
|
12
|
+
* @throws {AppcondaException}
|
13
|
+
* @returns {Promise<Models.ProviderRepositoryList>}
|
14
|
+
*/
|
15
|
+
listRepositories(installationId: string, search?: string): Promise<Models.ProviderRepositoryList>;
|
16
|
+
/**
|
17
|
+
* Create repository
|
18
|
+
*
|
19
|
+
*
|
20
|
+
* @param {string} installationId
|
21
|
+
* @param {string} name
|
22
|
+
* @param {boolean} xprivate
|
23
|
+
* @throws {AppcondaException}
|
24
|
+
* @returns {Promise<Models.ProviderRepository>}
|
25
|
+
*/
|
26
|
+
createRepository(installationId: string, name: string, xprivate: boolean): Promise<Models.ProviderRepository>;
|
27
|
+
/**
|
28
|
+
* Get repository
|
29
|
+
*
|
30
|
+
*
|
31
|
+
* @param {string} installationId
|
32
|
+
* @param {string} providerRepositoryId
|
33
|
+
* @throws {AppcondaException}
|
34
|
+
* @returns {Promise<Models.ProviderRepository>}
|
35
|
+
*/
|
36
|
+
getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository>;
|
37
|
+
/**
|
38
|
+
* List Repository Branches
|
39
|
+
*
|
40
|
+
*
|
41
|
+
* @param {string} installationId
|
42
|
+
* @param {string} providerRepositoryId
|
43
|
+
* @throws {AppcondaException}
|
44
|
+
* @returns {Promise<Models.BranchList>}
|
45
|
+
*/
|
46
|
+
listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList>;
|
47
|
+
/**
|
48
|
+
* Get files and directories of a VCS repository
|
49
|
+
*
|
50
|
+
*
|
51
|
+
* @param {string} installationId
|
52
|
+
* @param {string} providerRepositoryId
|
53
|
+
* @param {string} providerRootDirectory
|
54
|
+
* @throws {AppcondaException}
|
55
|
+
* @returns {Promise<Models.VcsContentList>}
|
56
|
+
*/
|
57
|
+
getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.VcsContentList>;
|
58
|
+
/**
|
59
|
+
* Detect runtime settings from source code
|
60
|
+
*
|
61
|
+
*
|
62
|
+
* @param {string} installationId
|
63
|
+
* @param {string} providerRepositoryId
|
64
|
+
* @param {string} providerRootDirectory
|
65
|
+
* @throws {AppcondaException}
|
66
|
+
* @returns {Promise<Models.Detection>}
|
67
|
+
*/
|
68
|
+
createRepositoryDetection(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.Detection>;
|
69
|
+
/**
|
70
|
+
* Authorize external deployment
|
71
|
+
*
|
72
|
+
*
|
73
|
+
* @param {string} installationId
|
74
|
+
* @param {string} repositoryId
|
75
|
+
* @param {string} providerPullRequestId
|
76
|
+
* @throws {AppcondaException}
|
77
|
+
* @returns {Promise<{}>}
|
78
|
+
*/
|
79
|
+
updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}>;
|
80
|
+
/**
|
81
|
+
* List installations
|
82
|
+
*
|
83
|
+
*
|
84
|
+
* @param {string[]} queries
|
85
|
+
* @param {string} search
|
86
|
+
* @throws {AppcondaException}
|
87
|
+
* @returns {Promise<Models.InstallationList>}
|
88
|
+
*/
|
89
|
+
listInstallations(queries?: string[], search?: string): Promise<Models.InstallationList>;
|
90
|
+
/**
|
91
|
+
* Get installation
|
92
|
+
*
|
93
|
+
*
|
94
|
+
* @param {string} installationId
|
95
|
+
* @throws {AppcondaException}
|
96
|
+
* @returns {Promise<Models.Installation>}
|
97
|
+
*/
|
98
|
+
getInstallation(installationId: string): Promise<Models.Installation>;
|
99
|
+
/**
|
100
|
+
* Delete Installation
|
101
|
+
*
|
102
|
+
*
|
103
|
+
* @param {string} installationId
|
104
|
+
* @throws {AppcondaException}
|
105
|
+
* @returns {Promise<{}>}
|
106
|
+
*/
|
107
|
+
deleteInstallation(installationId: string): Promise<{}>;
|
108
|
+
}
|