@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,542 @@
|
|
1
|
+
import { Client, Models } from "../client";
|
2
|
+
import { Api } from "../enums/api";
|
3
|
+
import { ApiService } from "../enums/api-service";
|
4
|
+
import { AuthMethod } from "../enums/auth-method";
|
5
|
+
import { EmailTemplateLocale } from "../enums/email-template-locale";
|
6
|
+
import { EmailTemplateType } from "../enums/email-template-type";
|
7
|
+
import { OAuthProvider } from "../enums/o-auth-provider";
|
8
|
+
import { PlatformType } from "../enums/platform-type";
|
9
|
+
import { Region } from "../enums/region";
|
10
|
+
import { SMTPSecure } from "../enums/s-m-t-p-secure";
|
11
|
+
import { SmsTemplateLocale } from "../enums/sms-template-locale";
|
12
|
+
import { SmsTemplateType } from "../enums/sms-template-type";
|
13
|
+
export declare class Projects {
|
14
|
+
client: Client;
|
15
|
+
constructor(client: Client);
|
16
|
+
/**
|
17
|
+
* List projects
|
18
|
+
*
|
19
|
+
*
|
20
|
+
* @param {string[]} queries
|
21
|
+
* @param {string} search
|
22
|
+
* @throws {AppcondaException}
|
23
|
+
* @returns {Promise<Models.ProjectList>}
|
24
|
+
*/
|
25
|
+
list(queries?: string[], search?: string): Promise<Models.ProjectList>;
|
26
|
+
/**
|
27
|
+
* Create project
|
28
|
+
*
|
29
|
+
*
|
30
|
+
* @param {string} projectId
|
31
|
+
* @param {string} name
|
32
|
+
* @param {string} teamId
|
33
|
+
* @param {Region} region
|
34
|
+
* @param {string} description
|
35
|
+
* @param {string} logo
|
36
|
+
* @param {string} url
|
37
|
+
* @param {string} legalName
|
38
|
+
* @param {string} legalCountry
|
39
|
+
* @param {string} legalState
|
40
|
+
* @param {string} legalCity
|
41
|
+
* @param {string} legalAddress
|
42
|
+
* @param {string} legalTaxId
|
43
|
+
* @throws {AppcondaException}
|
44
|
+
* @returns {Promise<Models.Project>}
|
45
|
+
*/
|
46
|
+
create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
47
|
+
/**
|
48
|
+
* Get project
|
49
|
+
*
|
50
|
+
*
|
51
|
+
* @param {string} projectId
|
52
|
+
* @throws {AppcondaException}
|
53
|
+
* @returns {Promise<Models.Project>}
|
54
|
+
*/
|
55
|
+
get(projectId: string): Promise<Models.Project>;
|
56
|
+
/**
|
57
|
+
* Update project
|
58
|
+
*
|
59
|
+
*
|
60
|
+
* @param {string} projectId
|
61
|
+
* @param {string} name
|
62
|
+
* @param {string} description
|
63
|
+
* @param {string} logo
|
64
|
+
* @param {string} url
|
65
|
+
* @param {string} legalName
|
66
|
+
* @param {string} legalCountry
|
67
|
+
* @param {string} legalState
|
68
|
+
* @param {string} legalCity
|
69
|
+
* @param {string} legalAddress
|
70
|
+
* @param {string} legalTaxId
|
71
|
+
* @throws {AppcondaException}
|
72
|
+
* @returns {Promise<Models.Project>}
|
73
|
+
*/
|
74
|
+
update(projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
|
75
|
+
/**
|
76
|
+
* Delete project
|
77
|
+
*
|
78
|
+
*
|
79
|
+
* @param {string} projectId
|
80
|
+
* @throws {AppcondaException}
|
81
|
+
* @returns {Promise<{}>}
|
82
|
+
*/
|
83
|
+
delete(projectId: string): Promise<{}>;
|
84
|
+
/**
|
85
|
+
* Update API status
|
86
|
+
*
|
87
|
+
*
|
88
|
+
* @param {string} projectId
|
89
|
+
* @param {Api} api
|
90
|
+
* @param {boolean} status
|
91
|
+
* @throws {AppcondaException}
|
92
|
+
* @returns {Promise<Models.Project>}
|
93
|
+
*/
|
94
|
+
updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project>;
|
95
|
+
/**
|
96
|
+
* Update all API status
|
97
|
+
*
|
98
|
+
*
|
99
|
+
* @param {string} projectId
|
100
|
+
* @param {boolean} status
|
101
|
+
* @throws {AppcondaException}
|
102
|
+
* @returns {Promise<Models.Project>}
|
103
|
+
*/
|
104
|
+
updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
105
|
+
/**
|
106
|
+
* Update project authentication duration
|
107
|
+
*
|
108
|
+
*
|
109
|
+
* @param {string} projectId
|
110
|
+
* @param {number} duration
|
111
|
+
* @throws {AppcondaException}
|
112
|
+
* @returns {Promise<Models.Project>}
|
113
|
+
*/
|
114
|
+
updateAuthDuration(projectId: string, duration: number): Promise<Models.Project>;
|
115
|
+
/**
|
116
|
+
* Update project users limit
|
117
|
+
*
|
118
|
+
*
|
119
|
+
* @param {string} projectId
|
120
|
+
* @param {number} limit
|
121
|
+
* @throws {AppcondaException}
|
122
|
+
* @returns {Promise<Models.Project>}
|
123
|
+
*/
|
124
|
+
updateAuthLimit(projectId: string, limit: number): Promise<Models.Project>;
|
125
|
+
/**
|
126
|
+
* Update project user sessions limit
|
127
|
+
*
|
128
|
+
*
|
129
|
+
* @param {string} projectId
|
130
|
+
* @param {number} limit
|
131
|
+
* @throws {AppcondaException}
|
132
|
+
* @returns {Promise<Models.Project>}
|
133
|
+
*/
|
134
|
+
updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
|
135
|
+
/**
|
136
|
+
* Update the mock numbers for the project
|
137
|
+
*
|
138
|
+
*
|
139
|
+
* @param {string} projectId
|
140
|
+
* @param {object[]} numbers
|
141
|
+
* @throws {AppcondaException}
|
142
|
+
* @returns {Promise<Models.Project>}
|
143
|
+
*/
|
144
|
+
updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project>;
|
145
|
+
/**
|
146
|
+
* Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
|
147
|
+
*
|
148
|
+
*
|
149
|
+
* @param {string} projectId
|
150
|
+
* @param {boolean} enabled
|
151
|
+
* @throws {AppcondaException}
|
152
|
+
* @returns {Promise<Models.Project>}
|
153
|
+
*/
|
154
|
+
updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project>;
|
155
|
+
/**
|
156
|
+
* Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
|
157
|
+
*
|
158
|
+
*
|
159
|
+
* @param {string} projectId
|
160
|
+
* @param {number} limit
|
161
|
+
* @throws {AppcondaException}
|
162
|
+
* @returns {Promise<Models.Project>}
|
163
|
+
*/
|
164
|
+
updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project>;
|
165
|
+
/**
|
166
|
+
* Enable or disable checking user passwords for similarity with their personal data.
|
167
|
+
*
|
168
|
+
*
|
169
|
+
* @param {string} projectId
|
170
|
+
* @param {boolean} enabled
|
171
|
+
* @throws {AppcondaException}
|
172
|
+
* @returns {Promise<Models.Project>}
|
173
|
+
*/
|
174
|
+
updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project>;
|
175
|
+
/**
|
176
|
+
* Update project sessions emails
|
177
|
+
*
|
178
|
+
*
|
179
|
+
* @param {string} projectId
|
180
|
+
* @param {boolean} alerts
|
181
|
+
* @throws {AppcondaException}
|
182
|
+
* @returns {Promise<Models.Project>}
|
183
|
+
*/
|
184
|
+
updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project>;
|
185
|
+
/**
|
186
|
+
* Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
|
187
|
+
*
|
188
|
+
*
|
189
|
+
* @param {string} projectId
|
190
|
+
* @param {AuthMethod} method
|
191
|
+
* @param {boolean} status
|
192
|
+
* @throws {AppcondaException}
|
193
|
+
* @returns {Promise<Models.Project>}
|
194
|
+
*/
|
195
|
+
updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
|
196
|
+
/**
|
197
|
+
* Create JWT
|
198
|
+
*
|
199
|
+
*
|
200
|
+
* @param {string} projectId
|
201
|
+
* @param {string[]} scopes
|
202
|
+
* @param {number} duration
|
203
|
+
* @throws {AppcondaException}
|
204
|
+
* @returns {Promise<Models.Jwt>}
|
205
|
+
*/
|
206
|
+
createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt>;
|
207
|
+
/**
|
208
|
+
* List keys
|
209
|
+
*
|
210
|
+
*
|
211
|
+
* @param {string} projectId
|
212
|
+
* @throws {AppcondaException}
|
213
|
+
* @returns {Promise<Models.KeyList>}
|
214
|
+
*/
|
215
|
+
listKeys(projectId: string): Promise<Models.KeyList>;
|
216
|
+
/**
|
217
|
+
* Create key
|
218
|
+
*
|
219
|
+
*
|
220
|
+
* @param {string} projectId
|
221
|
+
* @param {string} name
|
222
|
+
* @param {string[]} scopes
|
223
|
+
* @param {string} expire
|
224
|
+
* @throws {AppcondaException}
|
225
|
+
* @returns {Promise<Models.Key>}
|
226
|
+
*/
|
227
|
+
createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
228
|
+
/**
|
229
|
+
* Get key
|
230
|
+
*
|
231
|
+
*
|
232
|
+
* @param {string} projectId
|
233
|
+
* @param {string} keyId
|
234
|
+
* @throws {AppcondaException}
|
235
|
+
* @returns {Promise<Models.Key>}
|
236
|
+
*/
|
237
|
+
getKey(projectId: string, keyId: string): Promise<Models.Key>;
|
238
|
+
/**
|
239
|
+
* Update key
|
240
|
+
*
|
241
|
+
*
|
242
|
+
* @param {string} projectId
|
243
|
+
* @param {string} keyId
|
244
|
+
* @param {string} name
|
245
|
+
* @param {string[]} scopes
|
246
|
+
* @param {string} expire
|
247
|
+
* @throws {AppcondaException}
|
248
|
+
* @returns {Promise<Models.Key>}
|
249
|
+
*/
|
250
|
+
updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key>;
|
251
|
+
/**
|
252
|
+
* Delete key
|
253
|
+
*
|
254
|
+
*
|
255
|
+
* @param {string} projectId
|
256
|
+
* @param {string} keyId
|
257
|
+
* @throws {AppcondaException}
|
258
|
+
* @returns {Promise<{}>}
|
259
|
+
*/
|
260
|
+
deleteKey(projectId: string, keyId: string): Promise<{}>;
|
261
|
+
/**
|
262
|
+
* Update project OAuth2
|
263
|
+
*
|
264
|
+
*
|
265
|
+
* @param {string} projectId
|
266
|
+
* @param {OAuthProvider} provider
|
267
|
+
* @param {string} appId
|
268
|
+
* @param {string} secret
|
269
|
+
* @param {boolean} enabled
|
270
|
+
* @throws {AppcondaException}
|
271
|
+
* @returns {Promise<Models.Project>}
|
272
|
+
*/
|
273
|
+
updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
|
274
|
+
/**
|
275
|
+
* List platforms
|
276
|
+
*
|
277
|
+
*
|
278
|
+
* @param {string} projectId
|
279
|
+
* @throws {AppcondaException}
|
280
|
+
* @returns {Promise<Models.PlatformList>}
|
281
|
+
*/
|
282
|
+
listPlatforms(projectId: string): Promise<Models.PlatformList>;
|
283
|
+
/**
|
284
|
+
* Create platform
|
285
|
+
*
|
286
|
+
*
|
287
|
+
* @param {string} projectId
|
288
|
+
* @param {PlatformType} type
|
289
|
+
* @param {string} name
|
290
|
+
* @param {string} key
|
291
|
+
* @param {string} store
|
292
|
+
* @param {string} hostname
|
293
|
+
* @throws {AppcondaException}
|
294
|
+
* @returns {Promise<Models.Platform>}
|
295
|
+
*/
|
296
|
+
createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
297
|
+
/**
|
298
|
+
* Get platform
|
299
|
+
*
|
300
|
+
*
|
301
|
+
* @param {string} projectId
|
302
|
+
* @param {string} platformId
|
303
|
+
* @throws {AppcondaException}
|
304
|
+
* @returns {Promise<Models.Platform>}
|
305
|
+
*/
|
306
|
+
getPlatform(projectId: string, platformId: string): Promise<Models.Platform>;
|
307
|
+
/**
|
308
|
+
* Update platform
|
309
|
+
*
|
310
|
+
*
|
311
|
+
* @param {string} projectId
|
312
|
+
* @param {string} platformId
|
313
|
+
* @param {string} name
|
314
|
+
* @param {string} key
|
315
|
+
* @param {string} store
|
316
|
+
* @param {string} hostname
|
317
|
+
* @throws {AppcondaException}
|
318
|
+
* @returns {Promise<Models.Platform>}
|
319
|
+
*/
|
320
|
+
updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
|
321
|
+
/**
|
322
|
+
* Delete platform
|
323
|
+
*
|
324
|
+
*
|
325
|
+
* @param {string} projectId
|
326
|
+
* @param {string} platformId
|
327
|
+
* @throws {AppcondaException}
|
328
|
+
* @returns {Promise<{}>}
|
329
|
+
*/
|
330
|
+
deletePlatform(projectId: string, platformId: string): Promise<{}>;
|
331
|
+
/**
|
332
|
+
* Update service status
|
333
|
+
*
|
334
|
+
*
|
335
|
+
* @param {string} projectId
|
336
|
+
* @param {ApiService} service
|
337
|
+
* @param {boolean} status
|
338
|
+
* @throws {AppcondaException}
|
339
|
+
* @returns {Promise<Models.Project>}
|
340
|
+
*/
|
341
|
+
updateServiceStatus(projectId: string, service: ApiService, status: boolean): Promise<Models.Project>;
|
342
|
+
/**
|
343
|
+
* Update all service status
|
344
|
+
*
|
345
|
+
*
|
346
|
+
* @param {string} projectId
|
347
|
+
* @param {boolean} status
|
348
|
+
* @throws {AppcondaException}
|
349
|
+
* @returns {Promise<Models.Project>}
|
350
|
+
*/
|
351
|
+
updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project>;
|
352
|
+
/**
|
353
|
+
* Update SMTP
|
354
|
+
*
|
355
|
+
*
|
356
|
+
* @param {string} projectId
|
357
|
+
* @param {boolean} enabled
|
358
|
+
* @param {string} senderName
|
359
|
+
* @param {string} senderEmail
|
360
|
+
* @param {string} replyTo
|
361
|
+
* @param {string} host
|
362
|
+
* @param {number} port
|
363
|
+
* @param {string} username
|
364
|
+
* @param {string} password
|
365
|
+
* @param {SMTPSecure} secure
|
366
|
+
* @throws {AppcondaException}
|
367
|
+
* @returns {Promise<Models.Project>}
|
368
|
+
*/
|
369
|
+
updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project>;
|
370
|
+
/**
|
371
|
+
* Create SMTP test
|
372
|
+
*
|
373
|
+
*
|
374
|
+
* @param {string} projectId
|
375
|
+
* @param {string[]} emails
|
376
|
+
* @param {string} senderName
|
377
|
+
* @param {string} senderEmail
|
378
|
+
* @param {string} host
|
379
|
+
* @param {string} replyTo
|
380
|
+
* @param {number} port
|
381
|
+
* @param {string} username
|
382
|
+
* @param {string} password
|
383
|
+
* @param {SMTPSecure} secure
|
384
|
+
* @throws {AppcondaException}
|
385
|
+
* @returns {Promise<{}>}
|
386
|
+
*/
|
387
|
+
createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
|
388
|
+
/**
|
389
|
+
* Update project team
|
390
|
+
*
|
391
|
+
*
|
392
|
+
* @param {string} projectId
|
393
|
+
* @param {string} teamId
|
394
|
+
* @throws {AppcondaException}
|
395
|
+
* @returns {Promise<Models.Project>}
|
396
|
+
*/
|
397
|
+
updateTeam(projectId: string, teamId: string): Promise<Models.Project>;
|
398
|
+
/**
|
399
|
+
* Get custom email template
|
400
|
+
*
|
401
|
+
*
|
402
|
+
* @param {string} projectId
|
403
|
+
* @param {EmailTemplateType} type
|
404
|
+
* @param {EmailTemplateLocale} locale
|
405
|
+
* @throws {AppcondaException}
|
406
|
+
* @returns {Promise<Models.EmailTemplate>}
|
407
|
+
*/
|
408
|
+
getEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
|
409
|
+
/**
|
410
|
+
* Update custom email templates
|
411
|
+
*
|
412
|
+
*
|
413
|
+
* @param {string} projectId
|
414
|
+
* @param {EmailTemplateType} type
|
415
|
+
* @param {EmailTemplateLocale} locale
|
416
|
+
* @param {string} subject
|
417
|
+
* @param {string} message
|
418
|
+
* @param {string} senderName
|
419
|
+
* @param {string} senderEmail
|
420
|
+
* @param {string} replyTo
|
421
|
+
* @throws {AppcondaException}
|
422
|
+
* @returns {Promise<Models.Project>}
|
423
|
+
*/
|
424
|
+
updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
|
425
|
+
/**
|
426
|
+
* Reset custom email template
|
427
|
+
*
|
428
|
+
*
|
429
|
+
* @param {string} projectId
|
430
|
+
* @param {EmailTemplateType} type
|
431
|
+
* @param {EmailTemplateLocale} locale
|
432
|
+
* @throws {AppcondaException}
|
433
|
+
* @returns {Promise<Models.EmailTemplate>}
|
434
|
+
*/
|
435
|
+
deleteEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate>;
|
436
|
+
/**
|
437
|
+
* Get custom SMS template
|
438
|
+
*
|
439
|
+
*
|
440
|
+
* @param {string} projectId
|
441
|
+
* @param {SmsTemplateType} type
|
442
|
+
* @param {SmsTemplateLocale} locale
|
443
|
+
* @throws {AppcondaException}
|
444
|
+
* @returns {Promise<Models.SmsTemplate>}
|
445
|
+
*/
|
446
|
+
getSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
|
447
|
+
/**
|
448
|
+
* Update custom SMS template
|
449
|
+
*
|
450
|
+
*
|
451
|
+
* @param {string} projectId
|
452
|
+
* @param {SmsTemplateType} type
|
453
|
+
* @param {SmsTemplateLocale} locale
|
454
|
+
* @param {string} message
|
455
|
+
* @throws {AppcondaException}
|
456
|
+
* @returns {Promise<Models.SmsTemplate>}
|
457
|
+
*/
|
458
|
+
updateSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string): Promise<Models.SmsTemplate>;
|
459
|
+
/**
|
460
|
+
* Reset custom SMS template
|
461
|
+
*
|
462
|
+
*
|
463
|
+
* @param {string} projectId
|
464
|
+
* @param {SmsTemplateType} type
|
465
|
+
* @param {SmsTemplateLocale} locale
|
466
|
+
* @throws {AppcondaException}
|
467
|
+
* @returns {Promise<Models.SmsTemplate>}
|
468
|
+
*/
|
469
|
+
deleteSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate>;
|
470
|
+
/**
|
471
|
+
* List webhooks
|
472
|
+
*
|
473
|
+
*
|
474
|
+
* @param {string} projectId
|
475
|
+
* @throws {AppcondaException}
|
476
|
+
* @returns {Promise<Models.WebhookList>}
|
477
|
+
*/
|
478
|
+
listWebhooks(projectId: string): Promise<Models.WebhookList>;
|
479
|
+
/**
|
480
|
+
* Create webhook
|
481
|
+
*
|
482
|
+
*
|
483
|
+
* @param {string} projectId
|
484
|
+
* @param {string} name
|
485
|
+
* @param {string[]} events
|
486
|
+
* @param {string} url
|
487
|
+
* @param {boolean} security
|
488
|
+
* @param {boolean} enabled
|
489
|
+
* @param {string} httpUser
|
490
|
+
* @param {string} httpPass
|
491
|
+
* @throws {AppcondaException}
|
492
|
+
* @returns {Promise<Models.Webhook>}
|
493
|
+
*/
|
494
|
+
createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
495
|
+
/**
|
496
|
+
* Get webhook
|
497
|
+
*
|
498
|
+
*
|
499
|
+
* @param {string} projectId
|
500
|
+
* @param {string} webhookId
|
501
|
+
* @throws {AppcondaException}
|
502
|
+
* @returns {Promise<Models.Webhook>}
|
503
|
+
*/
|
504
|
+
getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
505
|
+
/**
|
506
|
+
* Update webhook
|
507
|
+
*
|
508
|
+
*
|
509
|
+
* @param {string} projectId
|
510
|
+
* @param {string} webhookId
|
511
|
+
* @param {string} name
|
512
|
+
* @param {string[]} events
|
513
|
+
* @param {string} url
|
514
|
+
* @param {boolean} security
|
515
|
+
* @param {boolean} enabled
|
516
|
+
* @param {string} httpUser
|
517
|
+
* @param {string} httpPass
|
518
|
+
* @throws {AppcondaException}
|
519
|
+
* @returns {Promise<Models.Webhook>}
|
520
|
+
*/
|
521
|
+
updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook>;
|
522
|
+
/**
|
523
|
+
* Delete webhook
|
524
|
+
*
|
525
|
+
*
|
526
|
+
* @param {string} projectId
|
527
|
+
* @param {string} webhookId
|
528
|
+
* @throws {AppcondaException}
|
529
|
+
* @returns {Promise<{}>}
|
530
|
+
*/
|
531
|
+
deleteWebhook(projectId: string, webhookId: string): Promise<{}>;
|
532
|
+
/**
|
533
|
+
* Update webhook signature key
|
534
|
+
*
|
535
|
+
*
|
536
|
+
* @param {string} projectId
|
537
|
+
* @param {string} webhookId
|
538
|
+
* @throws {AppcondaException}
|
539
|
+
* @returns {Promise<Models.Webhook>}
|
540
|
+
*/
|
541
|
+
updateWebhookSignature(projectId: string, webhookId: string): Promise<Models.Webhook>;
|
542
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { Client } from '../client';
|
2
|
+
import type { Models } from '../models';
|
3
|
+
import { ResourceType } from '../enums/resource-type';
|
4
|
+
export declare class Proxy {
|
5
|
+
client: Client;
|
6
|
+
constructor(client: Client);
|
7
|
+
/**
|
8
|
+
* List Rules
|
9
|
+
*
|
10
|
+
* Get a list of all the proxy rules. You can use the query params to filter your results.
|
11
|
+
*
|
12
|
+
* @param {string[]} queries
|
13
|
+
* @param {string} search
|
14
|
+
* @throws {AppcondaException}
|
15
|
+
* @returns {Promise<Models.ProxyRuleList>}
|
16
|
+
*/
|
17
|
+
listRules(queries?: string[], search?: string): Promise<Models.ProxyRuleList>;
|
18
|
+
/**
|
19
|
+
* Create Rule
|
20
|
+
*
|
21
|
+
* Create a new proxy rule.
|
22
|
+
*
|
23
|
+
* @param {string} domain
|
24
|
+
* @param {ResourceType} resourceType
|
25
|
+
* @param {string} resourceId
|
26
|
+
* @throws {AppcondaException}
|
27
|
+
* @returns {Promise<Models.ProxyRule>}
|
28
|
+
*/
|
29
|
+
createRule(domain: string, resourceType: ResourceType, resourceId?: string): Promise<Models.ProxyRule>;
|
30
|
+
/**
|
31
|
+
* Get Rule
|
32
|
+
*
|
33
|
+
* Get a proxy rule by its unique ID.
|
34
|
+
*
|
35
|
+
* @param {string} ruleId
|
36
|
+
* @throws {AppcondaException}
|
37
|
+
* @returns {Promise<Models.ProxyRule>}
|
38
|
+
*/
|
39
|
+
getRule(ruleId: string): Promise<Models.ProxyRule>;
|
40
|
+
/**
|
41
|
+
* Delete Rule
|
42
|
+
*
|
43
|
+
* Delete a proxy rule by its unique ID.
|
44
|
+
*
|
45
|
+
* @param {string} ruleId
|
46
|
+
* @throws {AppcondaException}
|
47
|
+
* @returns {Promise<{}>}
|
48
|
+
*/
|
49
|
+
deleteRule(ruleId: string): Promise<{}>;
|
50
|
+
/**
|
51
|
+
* Update Rule Verification Status
|
52
|
+
*
|
53
|
+
*
|
54
|
+
* @param {string} ruleId
|
55
|
+
* @throws {AppcondaException}
|
56
|
+
* @returns {Promise<Models.ProxyRule>}
|
57
|
+
*/
|
58
|
+
updateRuleVerification(ruleId: string): Promise<Models.ProxyRule>;
|
59
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Client, Models } from "../client";
|
2
|
+
export declare class Roles {
|
3
|
+
client: Client;
|
4
|
+
constructor(client: Client);
|
5
|
+
get(roleId: string): Promise<Models.Role>;
|
6
|
+
/**
|
7
|
+
* Create account
|
8
|
+
*
|
9
|
+
* Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appconda.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appconda.io/docs/references/cloud/client-web/account#createEmailSession).
|
10
|
+
*
|
11
|
+
* @param {string} tenantId
|
12
|
+
* @param {string} name
|
13
|
+
* @param {string} slug
|
14
|
+
* @throws {AppcondaException}
|
15
|
+
* @returns {Promise<Models.User<Preferences>>}
|
16
|
+
*/
|
17
|
+
create({ $id, name, description }: Models.Role): Promise<Models.Tenant>;
|
18
|
+
list(queries?: string[], search?: string): Promise<Models.RoleList>;
|
19
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { Client } from "../client";
|
2
|
+
export declare class Schemas {
|
3
|
+
client: Client;
|
4
|
+
constructor(client: Client);
|
5
|
+
/**
|
6
|
+
* Create account
|
7
|
+
*
|
8
|
+
* Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appconda.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appconda.io/docs/references/cloud/client-web/account#createEmailSession).
|
9
|
+
*
|
10
|
+
* @param {string} tenantId
|
11
|
+
* @param {string} name
|
12
|
+
* @param {string} slug
|
13
|
+
* @throws {AppcondaException}
|
14
|
+
* @returns {Promise<Models.User<Preferences>>}
|
15
|
+
*/
|
16
|
+
import(projectId: string, databaseId: string, databaseName: string, schema: string): Promise<any>;
|
17
|
+
}
|