appwrite-cli 8.2.2 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -5
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-email-password-session.md +3 -3
- package/docs/examples/account/create-email-token.md +3 -4
- package/docs/examples/account/create-jwt.md +1 -0
- package/docs/examples/account/create-magic-url-token.md +3 -0
- package/docs/examples/account/create-mfa-authenticator.md +2 -2
- package/docs/examples/account/create-mfa-challenge.md +2 -2
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth-2-session.md +2 -0
- package/docs/examples/account/create-o-auth-2-token.md +2 -0
- package/docs/examples/account/create-phone-token.md +3 -3
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +3 -4
- package/docs/examples/account/create-recovery.md +3 -3
- package/docs/examples/account/create-session.md +3 -3
- package/docs/examples/account/create-verification.md +2 -2
- package/docs/examples/account/create.md +3 -4
- package/docs/examples/account/delete-identity.md +2 -2
- package/docs/examples/account/delete-mfa-authenticator.md +2 -2
- package/docs/examples/account/delete-push-target.md +2 -2
- package/docs/examples/account/delete-session.md +2 -2
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +2 -2
- package/docs/examples/account/list-identities.md +1 -2
- package/docs/examples/account/list-logs.md +1 -2
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-email.md +3 -3
- package/docs/examples/account/update-magic-url-session.md +3 -0
- package/docs/examples/account/update-mfa-authenticator.md +3 -3
- package/docs/examples/account/update-mfa-challenge.md +3 -3
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-mfa.md +2 -0
- package/docs/examples/account/update-name.md +2 -2
- package/docs/examples/account/update-password.md +2 -3
- package/docs/examples/account/update-phone-session.md +3 -3
- package/docs/examples/account/update-phone-verification.md +3 -3
- package/docs/examples/account/update-phone.md +3 -3
- package/docs/examples/account/update-prefs.md +2 -2
- package/docs/examples/account/update-push-target.md +3 -3
- package/docs/examples/account/update-recovery.md +4 -4
- package/docs/examples/account/update-session.md +2 -2
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +3 -3
- package/docs/examples/avatars/get-browser.md +2 -5
- package/docs/examples/avatars/get-credit-card.md +2 -5
- package/docs/examples/avatars/get-favicon.md +2 -2
- package/docs/examples/avatars/get-flag.md +2 -5
- package/docs/examples/avatars/get-image.md +2 -4
- package/docs/examples/avatars/get-initials.md +1 -5
- package/docs/examples/avatars/get-qr.md +2 -0
- package/docs/examples/console/get-resource.md +3 -3
- package/docs/examples/databases/create-boolean-attribute.md +5 -7
- package/docs/examples/databases/create-collection.md +4 -7
- package/docs/examples/databases/create-datetime-attribute.md +5 -7
- package/docs/examples/databases/create-document.md +5 -6
- package/docs/examples/databases/create-documents.md +4 -4
- package/docs/examples/databases/create-email-attribute.md +5 -7
- package/docs/examples/databases/create-enum-attribute.md +6 -8
- package/docs/examples/databases/create-float-attribute.md +5 -9
- package/docs/examples/databases/create-index.md +6 -8
- package/docs/examples/databases/create-integer-attribute.md +5 -9
- package/docs/examples/databases/create-ip-attribute.md +5 -7
- package/docs/examples/databases/create-relationship-attribute.md +5 -9
- package/docs/examples/databases/create-string-attribute.md +6 -9
- package/docs/examples/databases/create-url-attribute.md +5 -7
- package/docs/examples/databases/create.md +2 -3
- package/docs/examples/databases/decrement-document-attribute.md +5 -0
- package/docs/examples/databases/delete-attribute.md +4 -4
- package/docs/examples/databases/delete-collection.md +3 -3
- package/docs/examples/databases/delete-document.md +4 -4
- package/docs/examples/databases/delete-documents.md +3 -4
- package/docs/examples/databases/delete-index.md +4 -4
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +4 -4
- package/docs/examples/databases/get-collection-usage.md +3 -4
- package/docs/examples/databases/get-collection.md +3 -3
- package/docs/examples/databases/get-document.md +4 -5
- package/docs/examples/databases/get-index.md +4 -4
- package/docs/examples/databases/get-usage.md +2 -2
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/increment-document-attribute.md +5 -0
- package/docs/examples/databases/list-attributes.md +3 -4
- package/docs/examples/databases/list-collection-logs.md +3 -4
- package/docs/examples/databases/list-collections.md +2 -4
- package/docs/examples/databases/list-document-logs.md +4 -5
- package/docs/examples/databases/list-documents.md +3 -4
- package/docs/examples/databases/list-indexes.md +3 -4
- package/docs/examples/databases/list-logs.md +2 -3
- package/docs/examples/databases/list-usage.md +1 -0
- package/docs/examples/databases/list.md +1 -3
- package/docs/examples/databases/update-boolean-attribute.md +6 -7
- package/docs/examples/databases/update-collection.md +4 -7
- package/docs/examples/databases/update-datetime-attribute.md +6 -7
- package/docs/examples/databases/update-document.md +4 -6
- package/docs/examples/databases/update-documents.md +3 -5
- package/docs/examples/databases/update-email-attribute.md +6 -7
- package/docs/examples/databases/update-enum-attribute.md +7 -8
- package/docs/examples/databases/update-float-attribute.md +6 -9
- package/docs/examples/databases/update-integer-attribute.md +6 -9
- package/docs/examples/databases/update-ip-attribute.md +6 -7
- package/docs/examples/databases/update-relationship-attribute.md +4 -6
- package/docs/examples/databases/update-string-attribute.md +6 -8
- package/docs/examples/databases/update-url-attribute.md +6 -7
- package/docs/examples/databases/update.md +2 -3
- package/docs/examples/databases/upsert-document.md +5 -6
- package/docs/examples/databases/upsert-documents.md +4 -4
- package/docs/examples/functions/create-deployment.md +4 -6
- package/docs/examples/functions/create-duplicate-deployment.md +3 -4
- package/docs/examples/functions/create-execution.md +2 -8
- package/docs/examples/functions/create-template-deployment.md +6 -7
- package/docs/examples/functions/create-variable.md +4 -5
- package/docs/examples/functions/create-vcs-deployment.md +4 -5
- package/docs/examples/functions/create.md +3 -18
- package/docs/examples/functions/delete-deployment.md +3 -3
- package/docs/examples/functions/delete-execution.md +3 -3
- package/docs/examples/functions/delete-variable.md +3 -3
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +3 -4
- package/docs/examples/functions/get-deployment.md +3 -3
- package/docs/examples/functions/get-execution.md +3 -3
- package/docs/examples/functions/get-template.md +2 -2
- package/docs/examples/functions/get-usage.md +2 -3
- package/docs/examples/functions/get-variable.md +3 -3
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +2 -4
- package/docs/examples/functions/list-executions.md +2 -3
- package/docs/examples/functions/list-runtimes.md +1 -1
- package/docs/examples/functions/list-specifications.md +1 -1
- package/docs/examples/functions/list-templates.md +1 -5
- package/docs/examples/functions/list-usage.md +1 -2
- package/docs/examples/functions/list-variables.md +2 -2
- package/docs/examples/functions/list.md +1 -3
- package/docs/examples/functions/update-deployment-status.md +3 -3
- package/docs/examples/functions/update-function-deployment.md +3 -3
- package/docs/examples/functions/update-variable.md +4 -6
- package/docs/examples/functions/update.md +2 -18
- package/docs/examples/graphql/mutation.md +1 -1
- package/docs/examples/graphql/query.md +1 -1
- package/docs/examples/health/get-antivirus.md +1 -1
- package/docs/examples/health/get-cache.md +1 -1
- package/docs/examples/health/get-certificate.md +1 -2
- package/docs/examples/health/get-db.md +1 -0
- package/docs/examples/health/get-failed-jobs.md +2 -3
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -2
- package/docs/examples/health/get-queue-certificates.md +1 -2
- package/docs/examples/health/get-queue-databases.md +1 -3
- package/docs/examples/health/get-queue-deletes.md +1 -2
- package/docs/examples/health/get-queue-functions.md +1 -2
- package/docs/examples/health/get-queue-logs.md +1 -2
- package/docs/examples/health/get-queue-mails.md +1 -2
- package/docs/examples/health/get-queue-messaging.md +1 -2
- package/docs/examples/health/get-queue-migrations.md +1 -2
- package/docs/examples/health/get-queue-stats-resources.md +1 -2
- package/docs/examples/health/get-queue-usage.md +1 -2
- package/docs/examples/health/get-queue-webhooks.md +1 -2
- package/docs/examples/health/get-storage-local.md +1 -1
- package/docs/examples/health/get-storage.md +1 -1
- package/docs/examples/health/get-time.md +1 -1
- package/docs/examples/locale/list-codes.md +1 -1
- package/docs/examples/locale/list-continents.md +1 -1
- package/docs/examples/locale/list-countries-eu.md +1 -0
- package/docs/examples/locale/list-countries-phones.md +1 -1
- package/docs/examples/locale/list-countries.md +1 -1
- package/docs/examples/locale/list-currencies.md +1 -1
- package/docs/examples/locale/list-languages.md +1 -1
- package/docs/examples/messaging/create-apns-provider.md +3 -9
- package/docs/examples/messaging/create-email.md +4 -13
- package/docs/examples/messaging/create-fcm-provider.md +3 -5
- package/docs/examples/messaging/create-mailgun-provider.md +3 -11
- package/docs/examples/messaging/create-msg-91-provider.md +3 -0
- package/docs/examples/messaging/create-push.md +2 -20
- package/docs/examples/messaging/create-sendgrid-provider.md +3 -9
- package/docs/examples/messaging/create-sms.md +3 -8
- package/docs/examples/messaging/create-smtp-provider.md +4 -15
- package/docs/examples/messaging/create-subscriber.md +4 -4
- package/docs/examples/messaging/create-telesign-provider.md +3 -7
- package/docs/examples/messaging/create-textmagic-provider.md +3 -7
- package/docs/examples/messaging/create-topic.md +3 -4
- package/docs/examples/messaging/create-twilio-provider.md +3 -7
- package/docs/examples/messaging/create-vonage-provider.md +3 -7
- package/docs/examples/messaging/delete-provider.md +2 -2
- package/docs/examples/messaging/delete-subscriber.md +3 -3
- package/docs/examples/messaging/delete-topic.md +2 -2
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +2 -2
- package/docs/examples/messaging/get-provider.md +2 -2
- package/docs/examples/messaging/get-subscriber.md +3 -3
- package/docs/examples/messaging/get-topic.md +2 -2
- package/docs/examples/messaging/list-message-logs.md +2 -3
- package/docs/examples/messaging/list-messages.md +1 -3
- package/docs/examples/messaging/list-provider-logs.md +2 -3
- package/docs/examples/messaging/list-providers.md +1 -3
- package/docs/examples/messaging/list-subscriber-logs.md +2 -3
- package/docs/examples/messaging/list-subscribers.md +2 -4
- package/docs/examples/messaging/list-targets.md +2 -3
- package/docs/examples/messaging/list-topic-logs.md +2 -3
- package/docs/examples/messaging/list-topics.md +1 -3
- package/docs/examples/messaging/update-apns-provider.md +2 -9
- package/docs/examples/messaging/update-email.md +2 -13
- package/docs/examples/messaging/update-fcm-provider.md +2 -5
- package/docs/examples/messaging/update-mailgun-provider.md +2 -11
- package/docs/examples/messaging/update-msg-91-provider.md +2 -0
- package/docs/examples/messaging/update-push.md +2 -20
- package/docs/examples/messaging/update-sendgrid-provider.md +2 -9
- package/docs/examples/messaging/update-sms.md +2 -8
- package/docs/examples/messaging/update-smtp-provider.md +2 -15
- package/docs/examples/messaging/update-telesign-provider.md +2 -7
- package/docs/examples/messaging/update-textmagic-provider.md +2 -7
- package/docs/examples/messaging/update-topic.md +2 -4
- package/docs/examples/messaging/update-twilio-provider.md +2 -7
- package/docs/examples/messaging/update-vonage-provider.md +2 -7
- package/docs/examples/migrations/create-appwrite-migration.md +5 -5
- package/docs/examples/migrations/create-csv-migration.md +4 -4
- package/docs/examples/migrations/create-firebase-migration.md +3 -3
- package/docs/examples/migrations/create-n-host-migration.md +8 -9
- package/docs/examples/migrations/create-supabase-migration.md +7 -8
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +5 -5
- package/docs/examples/migrations/get-firebase-report.md +3 -3
- package/docs/examples/migrations/get-n-host-report.md +8 -9
- package/docs/examples/migrations/get-supabase-report.md +7 -8
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -3
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/project/create-variable.md +3 -4
- package/docs/examples/project/delete-variable.md +2 -2
- package/docs/examples/project/get-usage.md +3 -4
- package/docs/examples/project/get-variable.md +2 -2
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -5
- package/docs/examples/projects/create-dev-key.md +4 -4
- package/docs/examples/projects/create-jwt.md +3 -0
- package/docs/examples/projects/create-key.md +4 -5
- package/docs/examples/projects/create-platform.md +4 -7
- package/docs/examples/projects/create-smtp-test.md +6 -11
- package/docs/examples/projects/create-webhook.md +6 -9
- package/docs/examples/projects/create.md +3 -13
- package/docs/examples/projects/delete-dev-key.md +3 -3
- package/docs/examples/projects/delete-email-template.md +4 -4
- package/docs/examples/projects/delete-key.md +3 -3
- package/docs/examples/projects/delete-platform.md +3 -3
- package/docs/examples/projects/delete-sms-template.md +4 -4
- package/docs/examples/projects/delete-webhook.md +3 -3
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +3 -3
- package/docs/examples/projects/get-email-template.md +4 -4
- package/docs/examples/projects/get-key.md +3 -3
- package/docs/examples/projects/get-platform.md +3 -3
- package/docs/examples/projects/get-sms-template.md +4 -4
- package/docs/examples/projects/get-webhook.md +3 -3
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +2 -3
- package/docs/examples/projects/list-keys.md +2 -2
- package/docs/examples/projects/list-platforms.md +2 -2
- package/docs/examples/projects/list-webhooks.md +2 -2
- package/docs/examples/projects/list.md +1 -3
- package/docs/examples/projects/update-api-status-all.md +3 -3
- package/docs/examples/projects/update-api-status.md +4 -4
- package/docs/examples/projects/update-auth-duration.md +3 -3
- package/docs/examples/projects/update-auth-limit.md +3 -3
- package/docs/examples/projects/update-auth-password-dictionary.md +3 -3
- package/docs/examples/projects/update-auth-password-history.md +3 -3
- package/docs/examples/projects/update-auth-sessions-limit.md +3 -3
- package/docs/examples/projects/update-auth-status.md +4 -4
- package/docs/examples/projects/update-dev-key.md +5 -5
- package/docs/examples/projects/update-email-template.md +6 -9
- package/docs/examples/projects/update-key.md +5 -6
- package/docs/examples/projects/update-memberships-privacy.md +5 -5
- package/docs/examples/projects/update-mock-numbers.md +3 -3
- package/docs/examples/projects/update-o-auth-2.md +3 -0
- package/docs/examples/projects/update-personal-data-check.md +3 -3
- package/docs/examples/projects/update-platform.md +4 -7
- package/docs/examples/projects/update-service-status-all.md +3 -3
- package/docs/examples/projects/update-service-status.md +4 -4
- package/docs/examples/projects/update-session-alerts.md +3 -3
- package/docs/examples/projects/update-session-invalidation.md +3 -0
- package/docs/examples/projects/update-sms-template.md +5 -5
- package/docs/examples/projects/update-smtp.md +3 -11
- package/docs/examples/projects/update-team.md +3 -3
- package/docs/examples/projects/update-webhook-signature.md +3 -3
- package/docs/examples/projects/update-webhook.md +7 -10
- package/docs/examples/projects/update.md +2 -11
- package/docs/examples/proxy/create-api-rule.md +2 -0
- package/docs/examples/proxy/create-function-rule.md +3 -4
- package/docs/examples/proxy/create-redirect-rule.md +6 -6
- package/docs/examples/proxy/create-site-rule.md +3 -4
- package/docs/examples/proxy/delete-rule.md +2 -2
- package/docs/examples/proxy/get-rule.md +2 -2
- package/docs/examples/proxy/list-rules.md +1 -3
- package/docs/examples/proxy/update-rule-verification.md +2 -2
- package/docs/examples/sites/create-deployment.md +4 -7
- package/docs/examples/sites/create-duplicate-deployment.md +3 -3
- package/docs/examples/sites/create-template-deployment.md +6 -7
- package/docs/examples/sites/create-variable.md +4 -5
- package/docs/examples/sites/create-vcs-deployment.md +4 -5
- package/docs/examples/sites/create.md +4 -18
- package/docs/examples/sites/delete-deployment.md +3 -3
- package/docs/examples/sites/delete-log.md +3 -3
- package/docs/examples/sites/delete-variable.md +3 -3
- package/docs/examples/sites/delete.md +1 -1
- package/docs/examples/sites/get-deployment-download.md +3 -4
- package/docs/examples/sites/get-deployment.md +3 -3
- package/docs/examples/sites/get-log.md +3 -3
- package/docs/examples/sites/get-template.md +2 -2
- package/docs/examples/sites/get-usage.md +2 -3
- package/docs/examples/sites/get-variable.md +3 -3
- package/docs/examples/sites/get.md +1 -1
- package/docs/examples/sites/list-deployments.md +2 -4
- package/docs/examples/sites/list-frameworks.md +1 -1
- package/docs/examples/sites/list-logs.md +2 -3
- package/docs/examples/sites/list-specifications.md +1 -1
- package/docs/examples/sites/list-templates.md +1 -5
- package/docs/examples/sites/list-usage.md +1 -2
- package/docs/examples/sites/list-variables.md +2 -2
- package/docs/examples/sites/list.md +1 -3
- package/docs/examples/sites/update-deployment-status.md +3 -3
- package/docs/examples/sites/update-site-deployment.md +3 -3
- package/docs/examples/sites/update-variable.md +4 -6
- package/docs/examples/sites/update.md +3 -18
- package/docs/examples/storage/create-bucket.md +3 -11
- package/docs/examples/storage/create-file.md +4 -5
- package/docs/examples/storage/delete-bucket.md +2 -2
- package/docs/examples/storage/delete-file.md +3 -3
- package/docs/examples/storage/get-bucket-usage.md +2 -3
- package/docs/examples/storage/get-bucket.md +2 -2
- package/docs/examples/storage/get-file-download.md +3 -4
- package/docs/examples/storage/get-file-preview.md +3 -15
- package/docs/examples/storage/get-file-view.md +3 -4
- package/docs/examples/storage/get-file.md +3 -3
- package/docs/examples/storage/get-usage.md +1 -2
- package/docs/examples/storage/list-buckets.md +1 -3
- package/docs/examples/storage/list-files.md +2 -4
- package/docs/examples/storage/update-bucket.md +3 -11
- package/docs/examples/storage/update-file.md +3 -5
- package/docs/examples/tablesdb/create-boolean-column.md +5 -0
- package/docs/examples/tablesdb/create-datetime-column.md +5 -0
- package/docs/examples/tablesdb/create-email-column.md +5 -0
- package/docs/examples/tablesdb/create-enum-column.md +6 -0
- package/docs/examples/tablesdb/create-float-column.md +5 -0
- package/docs/examples/tablesdb/create-index.md +6 -0
- package/docs/examples/tablesdb/create-integer-column.md +5 -0
- package/docs/examples/tablesdb/create-ip-column.md +5 -0
- package/docs/examples/tablesdb/create-relationship-column.md +5 -0
- package/docs/examples/tablesdb/create-row.md +5 -0
- package/docs/examples/tablesdb/create-rows.md +4 -0
- package/docs/examples/tablesdb/create-string-column.md +6 -0
- package/docs/examples/tablesdb/create-table.md +4 -0
- package/docs/examples/tablesdb/create-url-column.md +5 -0
- package/docs/examples/tablesdb/create.md +3 -0
- package/docs/examples/tablesdb/decrement-row-column.md +5 -0
- package/docs/examples/tablesdb/delete-column.md +4 -0
- package/docs/examples/tablesdb/delete-index.md +4 -0
- package/docs/examples/tablesdb/delete-row.md +4 -0
- package/docs/examples/tablesdb/delete-rows.md +3 -0
- package/docs/examples/tablesdb/delete-table.md +3 -0
- package/docs/examples/tablesdb/delete.md +2 -0
- package/docs/examples/tablesdb/get-column.md +4 -0
- package/docs/examples/tablesdb/get-index.md +4 -0
- package/docs/examples/tablesdb/get-row.md +4 -0
- package/docs/examples/tablesdb/get-table-usage.md +3 -0
- package/docs/examples/tablesdb/get-table.md +3 -0
- package/docs/examples/tablesdb/get-usage.md +2 -0
- package/docs/examples/tablesdb/get.md +2 -0
- package/docs/examples/tablesdb/increment-row-column.md +5 -0
- package/docs/examples/tablesdb/list-columns.md +3 -0
- package/docs/examples/tablesdb/list-indexes.md +3 -0
- package/docs/examples/tablesdb/list-row-logs.md +4 -0
- package/docs/examples/tablesdb/list-rows.md +3 -0
- package/docs/examples/tablesdb/list-table-logs.md +3 -0
- package/docs/examples/tablesdb/list-tables.md +2 -0
- package/docs/examples/tablesdb/list-usage.md +1 -0
- package/docs/examples/tablesdb/list.md +1 -0
- package/docs/examples/tablesdb/update-boolean-column.md +6 -0
- package/docs/examples/tablesdb/update-datetime-column.md +6 -0
- package/docs/examples/tablesdb/update-email-column.md +6 -0
- package/docs/examples/tablesdb/update-enum-column.md +7 -0
- package/docs/examples/tablesdb/update-float-column.md +6 -0
- package/docs/examples/tablesdb/update-integer-column.md +6 -0
- package/docs/examples/tablesdb/update-ip-column.md +6 -0
- package/docs/examples/tablesdb/update-relationship-column.md +4 -0
- package/docs/examples/tablesdb/update-row.md +4 -0
- package/docs/examples/tablesdb/update-rows.md +3 -0
- package/docs/examples/tablesdb/update-string-column.md +6 -0
- package/docs/examples/tablesdb/update-table.md +4 -0
- package/docs/examples/tablesdb/update-url-column.md +6 -0
- package/docs/examples/tablesdb/update.md +3 -0
- package/docs/examples/tablesdb/upsert-row.md +4 -0
- package/docs/examples/tablesdb/upsert-rows.md +4 -0
- package/docs/examples/teams/create-membership.md +3 -8
- package/docs/examples/teams/create.md +2 -3
- package/docs/examples/teams/delete-membership.md +3 -3
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +3 -3
- package/docs/examples/teams/get-prefs.md +2 -2
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +2 -3
- package/docs/examples/teams/list-memberships.md +2 -4
- package/docs/examples/teams/list.md +1 -3
- package/docs/examples/teams/update-membership-status.md +5 -5
- package/docs/examples/teams/update-membership.md +4 -4
- package/docs/examples/teams/update-name.md +3 -3
- package/docs/examples/teams/update-prefs.md +3 -3
- package/docs/examples/tokens/create-file-token.md +3 -4
- package/docs/examples/tokens/delete.md +1 -1
- package/docs/examples/tokens/get.md +1 -1
- package/docs/examples/tokens/list.md +2 -3
- package/docs/examples/tokens/update.md +1 -2
- package/docs/examples/users/create-argon-2-user.md +4 -0
- package/docs/examples/users/create-bcrypt-user.md +4 -5
- package/docs/examples/users/create-jwt.md +2 -0
- package/docs/examples/users/create-md-5-user.md +4 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/create-ph-pass-user.md +4 -0
- package/docs/examples/users/create-scrypt-modified-user.md +7 -8
- package/docs/examples/users/create-scrypt-user.md +9 -10
- package/docs/examples/users/create-session.md +2 -2
- package/docs/examples/users/create-sha-user.md +4 -0
- package/docs/examples/users/create-target.md +5 -7
- package/docs/examples/users/create-token.md +2 -4
- package/docs/examples/users/create.md +1 -5
- package/docs/examples/users/delete-identity.md +2 -2
- package/docs/examples/users/delete-mfa-authenticator.md +3 -3
- package/docs/examples/users/delete-session.md +3 -3
- package/docs/examples/users/delete-sessions.md +2 -2
- package/docs/examples/users/delete-target.md +3 -3
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/get-prefs.md +2 -2
- package/docs/examples/users/get-target.md +3 -3
- package/docs/examples/users/get-usage.md +1 -2
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -3
- package/docs/examples/users/list-logs.md +2 -3
- package/docs/examples/users/list-memberships.md +2 -4
- package/docs/examples/users/list-mfa-factors.md +2 -2
- package/docs/examples/users/list-sessions.md +2 -2
- package/docs/examples/users/list-targets.md +2 -3
- package/docs/examples/users/list.md +1 -3
- package/docs/examples/users/update-email-verification.md +3 -3
- package/docs/examples/users/update-email.md +3 -3
- package/docs/examples/users/update-labels.md +3 -3
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -2
- package/docs/examples/users/update-mfa.md +3 -3
- package/docs/examples/users/update-name.md +3 -3
- package/docs/examples/users/update-password.md +3 -3
- package/docs/examples/users/update-phone-verification.md +3 -3
- package/docs/examples/users/update-phone.md +3 -3
- package/docs/examples/users/update-prefs.md +3 -3
- package/docs/examples/users/update-status.md +3 -3
- package/docs/examples/users/update-target.md +3 -6
- package/docs/examples/vcs/create-repository-detection.md +4 -5
- package/docs/examples/vcs/create-repository.md +4 -4
- package/docs/examples/vcs/delete-installation.md +2 -2
- package/docs/examples/vcs/get-installation.md +2 -2
- package/docs/examples/vcs/get-repository-contents.md +3 -5
- package/docs/examples/vcs/get-repository.md +3 -3
- package/docs/examples/vcs/list-installations.md +1 -3
- package/docs/examples/vcs/list-repositories.md +3 -4
- package/docs/examples/vcs/list-repository-branches.md +3 -3
- package/docs/examples/vcs/update-external-deployments.md +4 -4
- package/index.js +40 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/client.js +3 -8
- package/lib/commands/account.js +55 -103
- package/lib/commands/avatars.js +1 -8
- package/lib/commands/console.js +1 -3
- package/lib/commands/databases.js +279 -226
- package/lib/commands/functions.js +3 -33
- package/lib/commands/graphql.js +1 -3
- package/lib/commands/health.js +1 -23
- package/lib/commands/init.js +1 -1
- package/lib/commands/locale.js +1 -9
- package/lib/commands/messaging.js +41 -87
- package/lib/commands/migrations.js +7 -15
- package/lib/commands/project.js +1 -7
- package/lib/commands/projects.js +77 -86
- package/lib/commands/proxy.js +1 -9
- package/lib/commands/pull.js +62 -1
- package/lib/commands/push.js +163 -8
- package/lib/commands/run.js +1 -1
- package/lib/commands/sites.js +3 -32
- package/lib/commands/storage.js +3 -18
- package/lib/commands/tables-db.js +2896 -0
- package/lib/commands/teams.js +1 -15
- package/lib/commands/tokens.js +1 -6
- package/lib/commands/types.js +7 -9
- package/lib/commands/update.js +218 -0
- package/lib/commands/users.js +34 -77
- package/lib/commands/vcs.js +2 -12
- package/lib/config.js +99 -14
- package/lib/parser.js +2 -1
- package/lib/questions.js +32 -7
- package/lib/type-generation/languages/dart.js +13 -13
- package/lib/type-generation/languages/java.js +13 -13
- package/lib/type-generation/languages/javascript.js +14 -14
- package/lib/type-generation/languages/kotlin.js +11 -10
- package/lib/type-generation/languages/php.js +15 -14
- package/lib/type-generation/languages/swift.js +13 -13
- package/lib/type-generation/languages/typescript.js +8 -8
- package/lib/utils.js +39 -2
- package/package.json +1 -1
- package/scoop/{appwrite.json → appwrite.config.json} +3 -3
- package/docs/examples/account/create-j-w-t.md +0 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +0 -5
- package/docs/examples/account/create-o-auth2session.md +0 -5
- package/docs/examples/account/create-o-auth2token.md +0 -5
- package/docs/examples/account/update-m-f-a.md +0 -2
- package/docs/examples/account/update-magic-u-r-l-session.md +0 -3
- package/docs/examples/avatars/get-q-r.md +0 -5
- package/docs/examples/databases/get-database-usage.md +0 -3
- package/docs/examples/health/get-d-b.md +0 -1
- package/docs/examples/locale/list-countries-e-u.md +0 -1
- package/docs/examples/messaging/create-msg91provider.md +0 -7
- package/docs/examples/messaging/update-msg91provider.md +0 -7
- package/docs/examples/projects/create-j-w-t.md +0 -4
- package/docs/examples/projects/update-o-auth2.md +0 -6
- package/docs/examples/proxy/create-a-p-i-rule.md +0 -2
- package/docs/examples/users/create-argon2user.md +0 -5
- package/docs/examples/users/create-j-w-t.md +0 -4
- package/docs/examples/users/create-m-d5user.md +0 -5
- package/docs/examples/users/create-p-h-pass-user.md +0 -5
- package/docs/examples/users/create-s-h-a-user.md +0 -6
package/lib/commands/projects.js
CHANGED
|
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
|
|
|
7
7
|
const { getAllFiles, showConsoleLink } = require('../utils.js');
|
|
8
8
|
const { Command } = require('commander');
|
|
9
9
|
const { sdkForProject, sdkForConsole } = require('../sdks')
|
|
10
|
-
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
|
|
10
|
+
const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
|
|
11
11
|
const { localConfig, globalConfig } = require("../config");
|
|
12
12
|
const { File } = require('undici');
|
|
13
13
|
const { ReadableStream } = require('stream/web');
|
|
@@ -79,7 +79,6 @@ const projectsList = async ({queries,search,parseOutput = true, overrideForCli =
|
|
|
79
79
|
return response;
|
|
80
80
|
|
|
81
81
|
}
|
|
82
|
-
|
|
83
82
|
/**
|
|
84
83
|
* @typedef {Object} ProjectsCreateRequestParams
|
|
85
84
|
* @property {string} projectId Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, and hyphen. Can't start with a special char. Max length is 36 chars.
|
|
@@ -161,7 +160,6 @@ const projectsCreate = async ({projectId,name,teamId,region,description,logo,url
|
|
|
161
160
|
return response;
|
|
162
161
|
|
|
163
162
|
}
|
|
164
|
-
|
|
165
163
|
/**
|
|
166
164
|
* @typedef {Object} ProjectsGetRequestParams
|
|
167
165
|
* @property {string} projectId Project unique ID.
|
|
@@ -195,7 +193,6 @@ const projectsGet = async ({projectId,parseOutput = true, overrideForCli = false
|
|
|
195
193
|
return response;
|
|
196
194
|
|
|
197
195
|
}
|
|
198
|
-
|
|
199
196
|
/**
|
|
200
197
|
* @typedef {Object} ProjectsUpdateRequestParams
|
|
201
198
|
* @property {string} projectId Project unique ID.
|
|
@@ -266,7 +263,6 @@ const projectsUpdate = async ({projectId,name,description,logo,url,legalName,leg
|
|
|
266
263
|
return response;
|
|
267
264
|
|
|
268
265
|
}
|
|
269
|
-
|
|
270
266
|
/**
|
|
271
267
|
* @typedef {Object} ProjectsDeleteRequestParams
|
|
272
268
|
* @property {string} projectId Project unique ID.
|
|
@@ -297,9 +293,8 @@ const projectsDelete = async ({projectId,parseOutput = true, overrideForCli = fa
|
|
|
297
293
|
return response;
|
|
298
294
|
|
|
299
295
|
}
|
|
300
|
-
|
|
301
296
|
/**
|
|
302
|
-
* @typedef {Object}
|
|
297
|
+
* @typedef {Object} ProjectsUpdateAPIStatusRequestParams
|
|
303
298
|
* @property {string} projectId Project unique ID.
|
|
304
299
|
* @property {Api} api API name.
|
|
305
300
|
* @property {boolean} status API status.
|
|
@@ -309,9 +304,9 @@ const projectsDelete = async ({projectId,parseOutput = true, overrideForCli = fa
|
|
|
309
304
|
*/
|
|
310
305
|
|
|
311
306
|
/**
|
|
312
|
-
* @param {
|
|
307
|
+
* @param {ProjectsUpdateAPIStatusRequestParams} params
|
|
313
308
|
*/
|
|
314
|
-
const
|
|
309
|
+
const projectsUpdateAPIStatus = async ({projectId,api,status,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
315
310
|
let client = !sdk ? await sdkForConsole() :
|
|
316
311
|
sdk;
|
|
317
312
|
let apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
|
|
@@ -336,9 +331,8 @@ const projectsUpdateApiStatus = async ({projectId,api,status,parseOutput = true,
|
|
|
336
331
|
return response;
|
|
337
332
|
|
|
338
333
|
}
|
|
339
|
-
|
|
340
334
|
/**
|
|
341
|
-
* @typedef {Object}
|
|
335
|
+
* @typedef {Object} ProjectsUpdateAPIStatusAllRequestParams
|
|
342
336
|
* @property {string} projectId Project unique ID.
|
|
343
337
|
* @property {boolean} status API status.
|
|
344
338
|
* @property {boolean} overrideForCli
|
|
@@ -347,9 +341,9 @@ const projectsUpdateApiStatus = async ({projectId,api,status,parseOutput = true,
|
|
|
347
341
|
*/
|
|
348
342
|
|
|
349
343
|
/**
|
|
350
|
-
* @param {
|
|
344
|
+
* @param {ProjectsUpdateAPIStatusAllRequestParams} params
|
|
351
345
|
*/
|
|
352
|
-
const
|
|
346
|
+
const projectsUpdateAPIStatusAll = async ({projectId,status,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
353
347
|
let client = !sdk ? await sdkForConsole() :
|
|
354
348
|
sdk;
|
|
355
349
|
let apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
|
|
@@ -371,7 +365,6 @@ const projectsUpdateApiStatusAll = async ({projectId,status,parseOutput = true,
|
|
|
371
365
|
return response;
|
|
372
366
|
|
|
373
367
|
}
|
|
374
|
-
|
|
375
368
|
/**
|
|
376
369
|
* @typedef {Object} ProjectsUpdateAuthDurationRequestParams
|
|
377
370
|
* @property {string} projectId Project unique ID.
|
|
@@ -406,7 +399,6 @@ const projectsUpdateAuthDuration = async ({projectId,duration,parseOutput = true
|
|
|
406
399
|
return response;
|
|
407
400
|
|
|
408
401
|
}
|
|
409
|
-
|
|
410
402
|
/**
|
|
411
403
|
* @typedef {Object} ProjectsUpdateAuthLimitRequestParams
|
|
412
404
|
* @property {string} projectId Project unique ID.
|
|
@@ -441,7 +433,6 @@ const projectsUpdateAuthLimit = async ({projectId,limit,parseOutput = true, over
|
|
|
441
433
|
return response;
|
|
442
434
|
|
|
443
435
|
}
|
|
444
|
-
|
|
445
436
|
/**
|
|
446
437
|
* @typedef {Object} ProjectsUpdateAuthSessionsLimitRequestParams
|
|
447
438
|
* @property {string} projectId Project unique ID.
|
|
@@ -476,7 +467,6 @@ const projectsUpdateAuthSessionsLimit = async ({projectId,limit,parseOutput = tr
|
|
|
476
467
|
return response;
|
|
477
468
|
|
|
478
469
|
}
|
|
479
|
-
|
|
480
470
|
/**
|
|
481
471
|
* @typedef {Object} ProjectsUpdateMembershipsPrivacyRequestParams
|
|
482
472
|
* @property {string} projectId Project unique ID.
|
|
@@ -519,7 +509,6 @@ const projectsUpdateMembershipsPrivacy = async ({projectId,userName,userEmail,mf
|
|
|
519
509
|
return response;
|
|
520
510
|
|
|
521
511
|
}
|
|
522
|
-
|
|
523
512
|
/**
|
|
524
513
|
* @typedef {Object} ProjectsUpdateMockNumbersRequestParams
|
|
525
514
|
* @property {string} projectId Project unique ID.
|
|
@@ -555,7 +544,6 @@ const projectsUpdateMockNumbers = async ({projectId,numbers,parseOutput = true,
|
|
|
555
544
|
return response;
|
|
556
545
|
|
|
557
546
|
}
|
|
558
|
-
|
|
559
547
|
/**
|
|
560
548
|
* @typedef {Object} ProjectsUpdateAuthPasswordDictionaryRequestParams
|
|
561
549
|
* @property {string} projectId Project unique ID.
|
|
@@ -590,7 +578,6 @@ const projectsUpdateAuthPasswordDictionary = async ({projectId,enabled,parseOutp
|
|
|
590
578
|
return response;
|
|
591
579
|
|
|
592
580
|
}
|
|
593
|
-
|
|
594
581
|
/**
|
|
595
582
|
* @typedef {Object} ProjectsUpdateAuthPasswordHistoryRequestParams
|
|
596
583
|
* @property {string} projectId Project unique ID.
|
|
@@ -625,7 +612,6 @@ const projectsUpdateAuthPasswordHistory = async ({projectId,limit,parseOutput =
|
|
|
625
612
|
return response;
|
|
626
613
|
|
|
627
614
|
}
|
|
628
|
-
|
|
629
615
|
/**
|
|
630
616
|
* @typedef {Object} ProjectsUpdatePersonalDataCheckRequestParams
|
|
631
617
|
* @property {string} projectId Project unique ID.
|
|
@@ -660,7 +646,6 @@ const projectsUpdatePersonalDataCheck = async ({projectId,enabled,parseOutput =
|
|
|
660
646
|
return response;
|
|
661
647
|
|
|
662
648
|
}
|
|
663
|
-
|
|
664
649
|
/**
|
|
665
650
|
* @typedef {Object} ProjectsUpdateSessionAlertsRequestParams
|
|
666
651
|
* @property {string} projectId Project unique ID.
|
|
@@ -695,7 +680,40 @@ const projectsUpdateSessionAlerts = async ({projectId,alerts,parseOutput = true,
|
|
|
695
680
|
return response;
|
|
696
681
|
|
|
697
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* @typedef {Object} ProjectsUpdateSessionInvalidationRequestParams
|
|
685
|
+
* @property {string} projectId Project unique ID.
|
|
686
|
+
* @property {boolean} enabled Update authentication session invalidation status. Use this endpoint to enable or disable session invalidation on password change
|
|
687
|
+
* @property {boolean} overrideForCli
|
|
688
|
+
* @property {boolean} parseOutput
|
|
689
|
+
* @property {libClient | undefined} sdk
|
|
690
|
+
*/
|
|
698
691
|
|
|
692
|
+
/**
|
|
693
|
+
* @param {ProjectsUpdateSessionInvalidationRequestParams} params
|
|
694
|
+
*/
|
|
695
|
+
const projectsUpdateSessionInvalidation = async ({projectId,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
696
|
+
let client = !sdk ? await sdkForConsole() :
|
|
697
|
+
sdk;
|
|
698
|
+
let apiPath = '/projects/{projectId}/auth/session-invalidation'.replace('{projectId}', projectId);
|
|
699
|
+
let payload = {};
|
|
700
|
+
if (typeof enabled !== 'undefined') {
|
|
701
|
+
payload['enabled'] = enabled;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
let response = undefined;
|
|
705
|
+
|
|
706
|
+
response = await client.call('patch', apiPath, {
|
|
707
|
+
'content-type': 'application/json',
|
|
708
|
+
}, payload);
|
|
709
|
+
|
|
710
|
+
if (parseOutput) {
|
|
711
|
+
parse(response)
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
return response;
|
|
715
|
+
|
|
716
|
+
}
|
|
699
717
|
/**
|
|
700
718
|
* @typedef {Object} ProjectsUpdateAuthStatusRequestParams
|
|
701
719
|
* @property {string} projectId Project unique ID.
|
|
@@ -731,7 +749,6 @@ const projectsUpdateAuthStatus = async ({projectId,method,status,parseOutput = t
|
|
|
731
749
|
return response;
|
|
732
750
|
|
|
733
751
|
}
|
|
734
|
-
|
|
735
752
|
/**
|
|
736
753
|
* @typedef {Object} ProjectsListDevKeysRequestParams
|
|
737
754
|
* @property {string} projectId Project unique ID.
|
|
@@ -769,7 +786,6 @@ const projectsListDevKeys = async ({projectId,queries,parseOutput = true, overri
|
|
|
769
786
|
return response;
|
|
770
787
|
|
|
771
788
|
}
|
|
772
|
-
|
|
773
789
|
/**
|
|
774
790
|
* @typedef {Object} ProjectsCreateDevKeyRequestParams
|
|
775
791
|
* @property {string} projectId Project unique ID.
|
|
@@ -808,7 +824,6 @@ const projectsCreateDevKey = async ({projectId,name,expire,parseOutput = true, o
|
|
|
808
824
|
return response;
|
|
809
825
|
|
|
810
826
|
}
|
|
811
|
-
|
|
812
827
|
/**
|
|
813
828
|
* @typedef {Object} ProjectsGetDevKeyRequestParams
|
|
814
829
|
* @property {string} projectId Project unique ID.
|
|
@@ -843,7 +858,6 @@ const projectsGetDevKey = async ({projectId,keyId,parseOutput = true, overrideFo
|
|
|
843
858
|
return response;
|
|
844
859
|
|
|
845
860
|
}
|
|
846
|
-
|
|
847
861
|
/**
|
|
848
862
|
* @typedef {Object} ProjectsUpdateDevKeyRequestParams
|
|
849
863
|
* @property {string} projectId Project unique ID.
|
|
@@ -883,7 +897,6 @@ const projectsUpdateDevKey = async ({projectId,keyId,name,expire,parseOutput = t
|
|
|
883
897
|
return response;
|
|
884
898
|
|
|
885
899
|
}
|
|
886
|
-
|
|
887
900
|
/**
|
|
888
901
|
* @typedef {Object} ProjectsDeleteDevKeyRequestParams
|
|
889
902
|
* @property {string} projectId Project unique ID.
|
|
@@ -915,7 +928,6 @@ const projectsDeleteDevKey = async ({projectId,keyId,parseOutput = true, overrid
|
|
|
915
928
|
return response;
|
|
916
929
|
|
|
917
930
|
}
|
|
918
|
-
|
|
919
931
|
/**
|
|
920
932
|
* @typedef {Object} ProjectsCreateJWTRequestParams
|
|
921
933
|
* @property {string} projectId Project unique ID.
|
|
@@ -955,7 +967,6 @@ const projectsCreateJWT = async ({projectId,scopes,duration,parseOutput = true,
|
|
|
955
967
|
return response;
|
|
956
968
|
|
|
957
969
|
}
|
|
958
|
-
|
|
959
970
|
/**
|
|
960
971
|
* @typedef {Object} ProjectsListKeysRequestParams
|
|
961
972
|
* @property {string} projectId Project unique ID.
|
|
@@ -989,7 +1000,6 @@ const projectsListKeys = async ({projectId,parseOutput = true, overrideForCli =
|
|
|
989
1000
|
return response;
|
|
990
1001
|
|
|
991
1002
|
}
|
|
992
|
-
|
|
993
1003
|
/**
|
|
994
1004
|
* @typedef {Object} ProjectsCreateKeyRequestParams
|
|
995
1005
|
* @property {string} projectId Project unique ID.
|
|
@@ -1033,7 +1043,6 @@ const projectsCreateKey = async ({projectId,name,scopes,expire,parseOutput = tru
|
|
|
1033
1043
|
return response;
|
|
1034
1044
|
|
|
1035
1045
|
}
|
|
1036
|
-
|
|
1037
1046
|
/**
|
|
1038
1047
|
* @typedef {Object} ProjectsGetKeyRequestParams
|
|
1039
1048
|
* @property {string} projectId Project unique ID.
|
|
@@ -1068,7 +1077,6 @@ const projectsGetKey = async ({projectId,keyId,parseOutput = true, overrideForCl
|
|
|
1068
1077
|
return response;
|
|
1069
1078
|
|
|
1070
1079
|
}
|
|
1071
|
-
|
|
1072
1080
|
/**
|
|
1073
1081
|
* @typedef {Object} ProjectsUpdateKeyRequestParams
|
|
1074
1082
|
* @property {string} projectId Project unique ID.
|
|
@@ -1113,7 +1121,6 @@ const projectsUpdateKey = async ({projectId,keyId,name,scopes,expire,parseOutput
|
|
|
1113
1121
|
return response;
|
|
1114
1122
|
|
|
1115
1123
|
}
|
|
1116
|
-
|
|
1117
1124
|
/**
|
|
1118
1125
|
* @typedef {Object} ProjectsDeleteKeyRequestParams
|
|
1119
1126
|
* @property {string} projectId Project unique ID.
|
|
@@ -1145,7 +1152,6 @@ const projectsDeleteKey = async ({projectId,keyId,parseOutput = true, overrideFo
|
|
|
1145
1152
|
return response;
|
|
1146
1153
|
|
|
1147
1154
|
}
|
|
1148
|
-
|
|
1149
1155
|
/**
|
|
1150
1156
|
* @typedef {Object} ProjectsUpdateOAuth2RequestParams
|
|
1151
1157
|
* @property {string} projectId Project unique ID.
|
|
@@ -1192,7 +1198,6 @@ const projectsUpdateOAuth2 = async ({projectId,provider,appId,secret,enabled,par
|
|
|
1192
1198
|
return response;
|
|
1193
1199
|
|
|
1194
1200
|
}
|
|
1195
|
-
|
|
1196
1201
|
/**
|
|
1197
1202
|
* @typedef {Object} ProjectsListPlatformsRequestParams
|
|
1198
1203
|
* @property {string} projectId Project unique ID.
|
|
@@ -1226,7 +1231,6 @@ const projectsListPlatforms = async ({projectId,parseOutput = true, overrideForC
|
|
|
1226
1231
|
return response;
|
|
1227
1232
|
|
|
1228
1233
|
}
|
|
1229
|
-
|
|
1230
1234
|
/**
|
|
1231
1235
|
* @typedef {Object} ProjectsCreatePlatformRequestParams
|
|
1232
1236
|
* @property {string} projectId Project unique ID.
|
|
@@ -1277,7 +1281,6 @@ const projectsCreatePlatform = async ({projectId,type,name,key,store,hostname,pa
|
|
|
1277
1281
|
return response;
|
|
1278
1282
|
|
|
1279
1283
|
}
|
|
1280
|
-
|
|
1281
1284
|
/**
|
|
1282
1285
|
* @typedef {Object} ProjectsGetPlatformRequestParams
|
|
1283
1286
|
* @property {string} projectId Project unique ID.
|
|
@@ -1312,7 +1315,6 @@ const projectsGetPlatform = async ({projectId,platformId,parseOutput = true, ove
|
|
|
1312
1315
|
return response;
|
|
1313
1316
|
|
|
1314
1317
|
}
|
|
1315
|
-
|
|
1316
1318
|
/**
|
|
1317
1319
|
* @typedef {Object} ProjectsUpdatePlatformRequestParams
|
|
1318
1320
|
* @property {string} projectId Project unique ID.
|
|
@@ -1360,7 +1362,6 @@ const projectsUpdatePlatform = async ({projectId,platformId,name,key,store,hostn
|
|
|
1360
1362
|
return response;
|
|
1361
1363
|
|
|
1362
1364
|
}
|
|
1363
|
-
|
|
1364
1365
|
/**
|
|
1365
1366
|
* @typedef {Object} ProjectsDeletePlatformRequestParams
|
|
1366
1367
|
* @property {string} projectId Project unique ID.
|
|
@@ -1392,7 +1393,6 @@ const projectsDeletePlatform = async ({projectId,platformId,parseOutput = true,
|
|
|
1392
1393
|
return response;
|
|
1393
1394
|
|
|
1394
1395
|
}
|
|
1395
|
-
|
|
1396
1396
|
/**
|
|
1397
1397
|
* @typedef {Object} ProjectsUpdateServiceStatusRequestParams
|
|
1398
1398
|
* @property {string} projectId Project unique ID.
|
|
@@ -1431,7 +1431,6 @@ const projectsUpdateServiceStatus = async ({projectId,service,status,parseOutput
|
|
|
1431
1431
|
return response;
|
|
1432
1432
|
|
|
1433
1433
|
}
|
|
1434
|
-
|
|
1435
1434
|
/**
|
|
1436
1435
|
* @typedef {Object} ProjectsUpdateServiceStatusAllRequestParams
|
|
1437
1436
|
* @property {string} projectId Project unique ID.
|
|
@@ -1466,9 +1465,8 @@ const projectsUpdateServiceStatusAll = async ({projectId,status,parseOutput = tr
|
|
|
1466
1465
|
return response;
|
|
1467
1466
|
|
|
1468
1467
|
}
|
|
1469
|
-
|
|
1470
1468
|
/**
|
|
1471
|
-
* @typedef {Object}
|
|
1469
|
+
* @typedef {Object} ProjectsUpdateSMTPRequestParams
|
|
1472
1470
|
* @property {string} projectId Project unique ID.
|
|
1473
1471
|
* @property {boolean} enabled Enable custom SMTP service
|
|
1474
1472
|
* @property {string} senderName Name of the email sender
|
|
@@ -1485,9 +1483,9 @@ const projectsUpdateServiceStatusAll = async ({projectId,status,parseOutput = tr
|
|
|
1485
1483
|
*/
|
|
1486
1484
|
|
|
1487
1485
|
/**
|
|
1488
|
-
* @param {
|
|
1486
|
+
* @param {ProjectsUpdateSMTPRequestParams} params
|
|
1489
1487
|
*/
|
|
1490
|
-
const
|
|
1488
|
+
const projectsUpdateSMTP = async ({projectId,enabled,senderName,senderEmail,replyTo,host,port,username,password,secure,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1491
1489
|
let client = !sdk ? await sdkForConsole() :
|
|
1492
1490
|
sdk;
|
|
1493
1491
|
let apiPath = '/projects/{projectId}/smtp'.replace('{projectId}', projectId);
|
|
@@ -1533,9 +1531,8 @@ const projectsUpdateSmtp = async ({projectId,enabled,senderName,senderEmail,repl
|
|
|
1533
1531
|
return response;
|
|
1534
1532
|
|
|
1535
1533
|
}
|
|
1536
|
-
|
|
1537
1534
|
/**
|
|
1538
|
-
* @typedef {Object}
|
|
1535
|
+
* @typedef {Object} ProjectsCreateSMTPTestRequestParams
|
|
1539
1536
|
* @property {string} projectId Project unique ID.
|
|
1540
1537
|
* @property {string[]} emails Array of emails to send test email to. Maximum of 10 emails are allowed.
|
|
1541
1538
|
* @property {string} senderName Name of the email sender
|
|
@@ -1552,9 +1549,9 @@ const projectsUpdateSmtp = async ({projectId,enabled,senderName,senderEmail,repl
|
|
|
1552
1549
|
*/
|
|
1553
1550
|
|
|
1554
1551
|
/**
|
|
1555
|
-
* @param {
|
|
1552
|
+
* @param {ProjectsCreateSMTPTestRequestParams} params
|
|
1556
1553
|
*/
|
|
1557
|
-
const
|
|
1554
|
+
const projectsCreateSMTPTest = async ({projectId,emails,senderName,senderEmail,host,replyTo,port,username,password,secure,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1558
1555
|
let client = !sdk ? await sdkForConsole() :
|
|
1559
1556
|
sdk;
|
|
1560
1557
|
let apiPath = '/projects/{projectId}/smtp/tests'.replace('{projectId}', projectId);
|
|
@@ -1601,7 +1598,6 @@ const projectsCreateSmtpTest = async ({projectId,emails,senderName,senderEmail,h
|
|
|
1601
1598
|
return response;
|
|
1602
1599
|
|
|
1603
1600
|
}
|
|
1604
|
-
|
|
1605
1601
|
/**
|
|
1606
1602
|
* @typedef {Object} ProjectsUpdateTeamRequestParams
|
|
1607
1603
|
* @property {string} projectId Project unique ID.
|
|
@@ -1636,7 +1632,6 @@ const projectsUpdateTeam = async ({projectId,teamId,parseOutput = true, override
|
|
|
1636
1632
|
return response;
|
|
1637
1633
|
|
|
1638
1634
|
}
|
|
1639
|
-
|
|
1640
1635
|
/**
|
|
1641
1636
|
* @typedef {Object} ProjectsGetEmailTemplateRequestParams
|
|
1642
1637
|
* @property {string} projectId Project unique ID.
|
|
@@ -1668,7 +1663,6 @@ const projectsGetEmailTemplate = async ({projectId,type,locale,parseOutput = tru
|
|
|
1668
1663
|
return response;
|
|
1669
1664
|
|
|
1670
1665
|
}
|
|
1671
|
-
|
|
1672
1666
|
/**
|
|
1673
1667
|
* @typedef {Object} ProjectsUpdateEmailTemplateRequestParams
|
|
1674
1668
|
* @property {string} projectId Project unique ID.
|
|
@@ -1721,7 +1715,6 @@ const projectsUpdateEmailTemplate = async ({projectId,type,locale,subject,messag
|
|
|
1721
1715
|
return response;
|
|
1722
1716
|
|
|
1723
1717
|
}
|
|
1724
|
-
|
|
1725
1718
|
/**
|
|
1726
1719
|
* @typedef {Object} ProjectsDeleteEmailTemplateRequestParams
|
|
1727
1720
|
* @property {string} projectId Project unique ID.
|
|
@@ -1754,9 +1747,8 @@ const projectsDeleteEmailTemplate = async ({projectId,type,locale,parseOutput =
|
|
|
1754
1747
|
return response;
|
|
1755
1748
|
|
|
1756
1749
|
}
|
|
1757
|
-
|
|
1758
1750
|
/**
|
|
1759
|
-
* @typedef {Object}
|
|
1751
|
+
* @typedef {Object} ProjectsGetSMSTemplateRequestParams
|
|
1760
1752
|
* @property {string} projectId Project unique ID.
|
|
1761
1753
|
* @property {SmsTemplateType} type Template type
|
|
1762
1754
|
* @property {SmsTemplateLocale} locale Template locale
|
|
@@ -1766,9 +1758,9 @@ const projectsDeleteEmailTemplate = async ({projectId,type,locale,parseOutput =
|
|
|
1766
1758
|
*/
|
|
1767
1759
|
|
|
1768
1760
|
/**
|
|
1769
|
-
* @param {
|
|
1761
|
+
* @param {ProjectsGetSMSTemplateRequestParams} params
|
|
1770
1762
|
*/
|
|
1771
|
-
const
|
|
1763
|
+
const projectsGetSMSTemplate = async ({projectId,type,locale,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1772
1764
|
let client = !sdk ? await sdkForConsole() :
|
|
1773
1765
|
sdk;
|
|
1774
1766
|
let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
|
@@ -1786,9 +1778,8 @@ const projectsGetSmsTemplate = async ({projectId,type,locale,parseOutput = true,
|
|
|
1786
1778
|
return response;
|
|
1787
1779
|
|
|
1788
1780
|
}
|
|
1789
|
-
|
|
1790
1781
|
/**
|
|
1791
|
-
* @typedef {Object}
|
|
1782
|
+
* @typedef {Object} ProjectsUpdateSMSTemplateRequestParams
|
|
1792
1783
|
* @property {string} projectId Project unique ID.
|
|
1793
1784
|
* @property {SmsTemplateType} type Template type
|
|
1794
1785
|
* @property {SmsTemplateLocale} locale Template locale
|
|
@@ -1799,9 +1790,9 @@ const projectsGetSmsTemplate = async ({projectId,type,locale,parseOutput = true,
|
|
|
1799
1790
|
*/
|
|
1800
1791
|
|
|
1801
1792
|
/**
|
|
1802
|
-
* @param {
|
|
1793
|
+
* @param {ProjectsUpdateSMSTemplateRequestParams} params
|
|
1803
1794
|
*/
|
|
1804
|
-
const
|
|
1795
|
+
const projectsUpdateSMSTemplate = async ({projectId,type,locale,message,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1805
1796
|
let client = !sdk ? await sdkForConsole() :
|
|
1806
1797
|
sdk;
|
|
1807
1798
|
let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
|
@@ -1823,9 +1814,8 @@ const projectsUpdateSmsTemplate = async ({projectId,type,locale,message,parseOut
|
|
|
1823
1814
|
return response;
|
|
1824
1815
|
|
|
1825
1816
|
}
|
|
1826
|
-
|
|
1827
1817
|
/**
|
|
1828
|
-
* @typedef {Object}
|
|
1818
|
+
* @typedef {Object} ProjectsDeleteSMSTemplateRequestParams
|
|
1829
1819
|
* @property {string} projectId Project unique ID.
|
|
1830
1820
|
* @property {SmsTemplateType} type Template type
|
|
1831
1821
|
* @property {SmsTemplateLocale} locale Template locale
|
|
@@ -1835,9 +1825,9 @@ const projectsUpdateSmsTemplate = async ({projectId,type,locale,message,parseOut
|
|
|
1835
1825
|
*/
|
|
1836
1826
|
|
|
1837
1827
|
/**
|
|
1838
|
-
* @param {
|
|
1828
|
+
* @param {ProjectsDeleteSMSTemplateRequestParams} params
|
|
1839
1829
|
*/
|
|
1840
|
-
const
|
|
1830
|
+
const projectsDeleteSMSTemplate = async ({projectId,type,locale,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1841
1831
|
let client = !sdk ? await sdkForConsole() :
|
|
1842
1832
|
sdk;
|
|
1843
1833
|
let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
|
|
@@ -1856,7 +1846,6 @@ const projectsDeleteSmsTemplate = async ({projectId,type,locale,parseOutput = tr
|
|
|
1856
1846
|
return response;
|
|
1857
1847
|
|
|
1858
1848
|
}
|
|
1859
|
-
|
|
1860
1849
|
/**
|
|
1861
1850
|
* @typedef {Object} ProjectsListWebhooksRequestParams
|
|
1862
1851
|
* @property {string} projectId Project unique ID.
|
|
@@ -1890,7 +1879,6 @@ const projectsListWebhooks = async ({projectId,parseOutput = true, overrideForCl
|
|
|
1890
1879
|
return response;
|
|
1891
1880
|
|
|
1892
1881
|
}
|
|
1893
|
-
|
|
1894
1882
|
/**
|
|
1895
1883
|
* @typedef {Object} ProjectsCreateWebhookRequestParams
|
|
1896
1884
|
* @property {string} projectId Project unique ID.
|
|
@@ -1950,7 +1938,6 @@ const projectsCreateWebhook = async ({projectId,name,events,url,security,enabled
|
|
|
1950
1938
|
return response;
|
|
1951
1939
|
|
|
1952
1940
|
}
|
|
1953
|
-
|
|
1954
1941
|
/**
|
|
1955
1942
|
* @typedef {Object} ProjectsGetWebhookRequestParams
|
|
1956
1943
|
* @property {string} projectId Project unique ID.
|
|
@@ -1985,7 +1972,6 @@ const projectsGetWebhook = async ({projectId,webhookId,parseOutput = true, overr
|
|
|
1985
1972
|
return response;
|
|
1986
1973
|
|
|
1987
1974
|
}
|
|
1988
|
-
|
|
1989
1975
|
/**
|
|
1990
1976
|
* @typedef {Object} ProjectsUpdateWebhookRequestParams
|
|
1991
1977
|
* @property {string} projectId Project unique ID.
|
|
@@ -2046,7 +2032,6 @@ const projectsUpdateWebhook = async ({projectId,webhookId,name,events,url,securi
|
|
|
2046
2032
|
return response;
|
|
2047
2033
|
|
|
2048
2034
|
}
|
|
2049
|
-
|
|
2050
2035
|
/**
|
|
2051
2036
|
* @typedef {Object} ProjectsDeleteWebhookRequestParams
|
|
2052
2037
|
* @property {string} projectId Project unique ID.
|
|
@@ -2078,7 +2063,6 @@ const projectsDeleteWebhook = async ({projectId,webhookId,parseOutput = true, ov
|
|
|
2078
2063
|
return response;
|
|
2079
2064
|
|
|
2080
2065
|
}
|
|
2081
|
-
|
|
2082
2066
|
/**
|
|
2083
2067
|
* @typedef {Object} ProjectsUpdateWebhookSignatureRequestParams
|
|
2084
2068
|
* @property {string} projectId Project unique ID.
|
|
@@ -2110,7 +2094,6 @@ const projectsUpdateWebhookSignature = async ({projectId,webhookId,parseOutput =
|
|
|
2110
2094
|
return response;
|
|
2111
2095
|
|
|
2112
2096
|
}
|
|
2113
|
-
|
|
2114
2097
|
projects
|
|
2115
2098
|
.command(`list`)
|
|
2116
2099
|
.description(`Get a list of all projects. You can use the query params to filter your results. `)
|
|
@@ -2172,14 +2155,14 @@ projects
|
|
|
2172
2155
|
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
|
|
2173
2156
|
.requiredOption(`--api <api>`, `API name.`)
|
|
2174
2157
|
.requiredOption(`--status [value]`, `API status.`, (value) => value === undefined ? true : parseBool(value))
|
|
2175
|
-
.action(actionRunner(
|
|
2158
|
+
.action(actionRunner(projectsUpdateAPIStatus))
|
|
2176
2159
|
|
|
2177
2160
|
projects
|
|
2178
2161
|
.command(`update-api-status-all`)
|
|
2179
2162
|
.description(`Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.`)
|
|
2180
2163
|
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
|
|
2181
2164
|
.requiredOption(`--status [value]`, `API status.`, (value) => value === undefined ? true : parseBool(value))
|
|
2182
|
-
.action(actionRunner(
|
|
2165
|
+
.action(actionRunner(projectsUpdateAPIStatusAll))
|
|
2183
2166
|
|
|
2184
2167
|
projects
|
|
2185
2168
|
.command(`update-auth-duration`)
|
|
@@ -2246,6 +2229,13 @@ projects
|
|
|
2246
2229
|
.requiredOption(`--alerts [value]`, `Set to true to enable session emails.`, (value) => value === undefined ? true : parseBool(value))
|
|
2247
2230
|
.action(actionRunner(projectsUpdateSessionAlerts))
|
|
2248
2231
|
|
|
2232
|
+
projects
|
|
2233
|
+
.command(`update-session-invalidation`)
|
|
2234
|
+
.description(`Invalidate all existing sessions. An optional auth security setting for projects, and enabled by default for console project.`)
|
|
2235
|
+
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
|
|
2236
|
+
.requiredOption(`--enabled [value]`, `Update authentication session invalidation status. Use this endpoint to enable or disable session invalidation on password change`, (value) => value === undefined ? true : parseBool(value))
|
|
2237
|
+
.action(actionRunner(projectsUpdateSessionInvalidation))
|
|
2238
|
+
|
|
2249
2239
|
projects
|
|
2250
2240
|
.command(`update-auth-status`)
|
|
2251
2241
|
.description(`Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. `)
|
|
@@ -2425,7 +2415,7 @@ projects
|
|
|
2425
2415
|
.option(`--username <username>`, `SMTP server username`)
|
|
2426
2416
|
.option(`--password <password>`, `SMTP server password`)
|
|
2427
2417
|
.option(`--secure <secure>`, `Does SMTP server use secure connection`)
|
|
2428
|
-
.action(actionRunner(
|
|
2418
|
+
.action(actionRunner(projectsUpdateSMTP))
|
|
2429
2419
|
|
|
2430
2420
|
projects
|
|
2431
2421
|
.command(`create-smtp-test`)
|
|
@@ -2440,7 +2430,7 @@ projects
|
|
|
2440
2430
|
.option(`--username <username>`, `SMTP server username`)
|
|
2441
2431
|
.option(`--password <password>`, `SMTP server password`)
|
|
2442
2432
|
.option(`--secure <secure>`, `Does SMTP server use secure connection`)
|
|
2443
|
-
.action(actionRunner(
|
|
2433
|
+
.action(actionRunner(projectsCreateSMTPTest))
|
|
2444
2434
|
|
|
2445
2435
|
projects
|
|
2446
2436
|
.command(`update-team`)
|
|
@@ -2484,7 +2474,7 @@ projects
|
|
|
2484
2474
|
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
|
|
2485
2475
|
.requiredOption(`--type <type>`, `Template type`)
|
|
2486
2476
|
.requiredOption(`--locale <locale>`, `Template locale`)
|
|
2487
|
-
.action(actionRunner(
|
|
2477
|
+
.action(actionRunner(projectsGetSMSTemplate))
|
|
2488
2478
|
|
|
2489
2479
|
projects
|
|
2490
2480
|
.command(`update-sms-template`)
|
|
@@ -2493,7 +2483,7 @@ projects
|
|
|
2493
2483
|
.requiredOption(`--type <type>`, `Template type`)
|
|
2494
2484
|
.requiredOption(`--locale <locale>`, `Template locale`)
|
|
2495
2485
|
.requiredOption(`--message <message>`, `Template message`)
|
|
2496
|
-
.action(actionRunner(
|
|
2486
|
+
.action(actionRunner(projectsUpdateSMSTemplate))
|
|
2497
2487
|
|
|
2498
2488
|
projects
|
|
2499
2489
|
.command(`delete-sms-template`)
|
|
@@ -2501,7 +2491,7 @@ projects
|
|
|
2501
2491
|
.requiredOption(`--project-id <project-id>`, `Project unique ID.`)
|
|
2502
2492
|
.requiredOption(`--type <type>`, `Template type`)
|
|
2503
2493
|
.requiredOption(`--locale <locale>`, `Template locale`)
|
|
2504
|
-
.action(actionRunner(
|
|
2494
|
+
.action(actionRunner(projectsDeleteSMSTemplate))
|
|
2505
2495
|
|
|
2506
2496
|
projects
|
|
2507
2497
|
.command(`list-webhooks`)
|
|
@@ -2566,8 +2556,8 @@ module.exports = {
|
|
|
2566
2556
|
projectsGet,
|
|
2567
2557
|
projectsUpdate,
|
|
2568
2558
|
projectsDelete,
|
|
2569
|
-
|
|
2570
|
-
|
|
2559
|
+
projectsUpdateAPIStatus,
|
|
2560
|
+
projectsUpdateAPIStatusAll,
|
|
2571
2561
|
projectsUpdateAuthDuration,
|
|
2572
2562
|
projectsUpdateAuthLimit,
|
|
2573
2563
|
projectsUpdateAuthSessionsLimit,
|
|
@@ -2577,6 +2567,7 @@ module.exports = {
|
|
|
2577
2567
|
projectsUpdateAuthPasswordHistory,
|
|
2578
2568
|
projectsUpdatePersonalDataCheck,
|
|
2579
2569
|
projectsUpdateSessionAlerts,
|
|
2570
|
+
projectsUpdateSessionInvalidation,
|
|
2580
2571
|
projectsUpdateAuthStatus,
|
|
2581
2572
|
projectsListDevKeys,
|
|
2582
2573
|
projectsCreateDevKey,
|
|
@@ -2597,15 +2588,15 @@ module.exports = {
|
|
|
2597
2588
|
projectsDeletePlatform,
|
|
2598
2589
|
projectsUpdateServiceStatus,
|
|
2599
2590
|
projectsUpdateServiceStatusAll,
|
|
2600
|
-
|
|
2601
|
-
|
|
2591
|
+
projectsUpdateSMTP,
|
|
2592
|
+
projectsCreateSMTPTest,
|
|
2602
2593
|
projectsUpdateTeam,
|
|
2603
2594
|
projectsGetEmailTemplate,
|
|
2604
2595
|
projectsUpdateEmailTemplate,
|
|
2605
2596
|
projectsDeleteEmailTemplate,
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2597
|
+
projectsGetSMSTemplate,
|
|
2598
|
+
projectsUpdateSMSTemplate,
|
|
2599
|
+
projectsDeleteSMSTemplate,
|
|
2609
2600
|
projectsListWebhooks,
|
|
2610
2601
|
projectsCreateWebhook,
|
|
2611
2602
|
projectsGetWebhook,
|