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
|
@@ -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 functionsList = async ({queries,search,parseOutput = true, overrideForCli
|
|
|
79
79
|
return response;
|
|
80
80
|
|
|
81
81
|
}
|
|
82
|
-
|
|
83
82
|
/**
|
|
84
83
|
* @typedef {Object} FunctionsCreateRequestParams
|
|
85
84
|
* @property {string} functionId Function ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
@@ -184,7 +183,6 @@ const functionsCreate = async ({functionId,name,runtime,execute,events,schedule,
|
|
|
184
183
|
return response;
|
|
185
184
|
|
|
186
185
|
}
|
|
187
|
-
|
|
188
186
|
/**
|
|
189
187
|
* @typedef {Object} FunctionsListRuntimesRequestParams
|
|
190
188
|
* @property {boolean} overrideForCli
|
|
@@ -213,7 +211,6 @@ const functionsListRuntimes = async ({parseOutput = true, overrideForCli = false
|
|
|
213
211
|
return response;
|
|
214
212
|
|
|
215
213
|
}
|
|
216
|
-
|
|
217
214
|
/**
|
|
218
215
|
* @typedef {Object} FunctionsListSpecificationsRequestParams
|
|
219
216
|
* @property {boolean} overrideForCli
|
|
@@ -246,7 +243,6 @@ const functionsListSpecifications = async ({parseOutput = true, overrideForCli =
|
|
|
246
243
|
return response;
|
|
247
244
|
|
|
248
245
|
}
|
|
249
|
-
|
|
250
246
|
/**
|
|
251
247
|
* @typedef {Object} FunctionsListTemplatesRequestParams
|
|
252
248
|
* @property {string[]} runtimes List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
|
|
@@ -295,7 +291,6 @@ const functionsListTemplates = async ({runtimes,useCases,limit,offset,parseOutpu
|
|
|
295
291
|
return response;
|
|
296
292
|
|
|
297
293
|
}
|
|
298
|
-
|
|
299
294
|
/**
|
|
300
295
|
* @typedef {Object} FunctionsGetTemplateRequestParams
|
|
301
296
|
* @property {string} templateId Template ID.
|
|
@@ -329,10 +324,9 @@ const functionsGetTemplate = async ({templateId,parseOutput = true, overrideForC
|
|
|
329
324
|
return response;
|
|
330
325
|
|
|
331
326
|
}
|
|
332
|
-
|
|
333
327
|
/**
|
|
334
328
|
* @typedef {Object} FunctionsListUsageRequestParams
|
|
335
|
-
* @property {
|
|
329
|
+
* @property {UsageRange} range Date range.
|
|
336
330
|
* @property {boolean} overrideForCli
|
|
337
331
|
* @property {boolean} parseOutput
|
|
338
332
|
* @property {libClient | undefined} sdk
|
|
@@ -366,7 +360,6 @@ const functionsListUsage = async ({range,parseOutput = true, overrideForCli = fa
|
|
|
366
360
|
return response;
|
|
367
361
|
|
|
368
362
|
}
|
|
369
|
-
|
|
370
363
|
/**
|
|
371
364
|
* @typedef {Object} FunctionsGetRequestParams
|
|
372
365
|
* @property {string} functionId Function ID.
|
|
@@ -400,7 +393,6 @@ const functionsGet = async ({functionId,parseOutput = true, overrideForCli = fal
|
|
|
400
393
|
return response;
|
|
401
394
|
|
|
402
395
|
}
|
|
403
|
-
|
|
404
396
|
/**
|
|
405
397
|
* @typedef {Object} FunctionsUpdateRequestParams
|
|
406
398
|
* @property {string} functionId Function ID.
|
|
@@ -502,7 +494,6 @@ const functionsUpdate = async ({functionId,name,runtime,execute,events,schedule,
|
|
|
502
494
|
return response;
|
|
503
495
|
|
|
504
496
|
}
|
|
505
|
-
|
|
506
497
|
/**
|
|
507
498
|
* @typedef {Object} FunctionsDeleteRequestParams
|
|
508
499
|
* @property {string} functionId Function ID.
|
|
@@ -533,7 +524,6 @@ const functionsDelete = async ({functionId,parseOutput = true, overrideForCli =
|
|
|
533
524
|
return response;
|
|
534
525
|
|
|
535
526
|
}
|
|
536
|
-
|
|
537
527
|
/**
|
|
538
528
|
* @typedef {Object} FunctionsUpdateFunctionDeploymentRequestParams
|
|
539
529
|
* @property {string} functionId Function ID.
|
|
@@ -568,7 +558,6 @@ const functionsUpdateFunctionDeployment = async ({functionId,deploymentId,parseO
|
|
|
568
558
|
return response;
|
|
569
559
|
|
|
570
560
|
}
|
|
571
|
-
|
|
572
561
|
/**
|
|
573
562
|
* @typedef {Object} FunctionsListDeploymentsRequestParams
|
|
574
563
|
* @property {string} functionId Function ID.
|
|
@@ -610,7 +599,6 @@ const functionsListDeployments = async ({functionId,queries,search,parseOutput =
|
|
|
610
599
|
return response;
|
|
611
600
|
|
|
612
601
|
}
|
|
613
|
-
|
|
614
602
|
/**
|
|
615
603
|
* @typedef {Object} FunctionsCreateDeploymentRequestParams
|
|
616
604
|
* @property {string} functionId Function ID.
|
|
@@ -775,7 +763,6 @@ const functionsCreateDeployment = async ({functionId,code,activate,entrypoint,co
|
|
|
775
763
|
|
|
776
764
|
return response;
|
|
777
765
|
}
|
|
778
|
-
|
|
779
766
|
/**
|
|
780
767
|
* @typedef {Object} FunctionsCreateDuplicateDeploymentRequestParams
|
|
781
768
|
* @property {string} functionId Function ID.
|
|
@@ -814,7 +801,6 @@ const functionsCreateDuplicateDeployment = async ({functionId,deploymentId,build
|
|
|
814
801
|
return response;
|
|
815
802
|
|
|
816
803
|
}
|
|
817
|
-
|
|
818
804
|
/**
|
|
819
805
|
* @typedef {Object} FunctionsCreateTemplateDeploymentRequestParams
|
|
820
806
|
* @property {string} functionId Function ID.
|
|
@@ -865,7 +851,6 @@ const functionsCreateTemplateDeployment = async ({functionId,repository,owner,ro
|
|
|
865
851
|
return response;
|
|
866
852
|
|
|
867
853
|
}
|
|
868
|
-
|
|
869
854
|
/**
|
|
870
855
|
* @typedef {Object} FunctionsCreateVcsDeploymentRequestParams
|
|
871
856
|
* @property {string} functionId Function ID.
|
|
@@ -908,7 +893,6 @@ const functionsCreateVcsDeployment = async ({functionId,type,reference,activate,
|
|
|
908
893
|
return response;
|
|
909
894
|
|
|
910
895
|
}
|
|
911
|
-
|
|
912
896
|
/**
|
|
913
897
|
* @typedef {Object} FunctionsGetDeploymentRequestParams
|
|
914
898
|
* @property {string} functionId Function ID.
|
|
@@ -943,7 +927,6 @@ const functionsGetDeployment = async ({functionId,deploymentId,parseOutput = tru
|
|
|
943
927
|
return response;
|
|
944
928
|
|
|
945
929
|
}
|
|
946
|
-
|
|
947
930
|
/**
|
|
948
931
|
* @typedef {Object} FunctionsDeleteDeploymentRequestParams
|
|
949
932
|
* @property {string} functionId Function ID.
|
|
@@ -975,7 +958,6 @@ const functionsDeleteDeployment = async ({functionId,deploymentId,parseOutput =
|
|
|
975
958
|
return response;
|
|
976
959
|
|
|
977
960
|
}
|
|
978
|
-
|
|
979
961
|
/**
|
|
980
962
|
* @typedef {Object} FunctionsGetDeploymentDownloadRequestParams
|
|
981
963
|
* @property {string} functionId Function ID.
|
|
@@ -1026,7 +1008,6 @@ const functionsGetDeploymentDownload = async ({functionId,deploymentId,type,pars
|
|
|
1026
1008
|
return response;
|
|
1027
1009
|
|
|
1028
1010
|
}
|
|
1029
|
-
|
|
1030
1011
|
/**
|
|
1031
1012
|
* @typedef {Object} FunctionsUpdateDeploymentStatusRequestParams
|
|
1032
1013
|
* @property {string} functionId Function ID.
|
|
@@ -1058,7 +1039,6 @@ const functionsUpdateDeploymentStatus = async ({functionId,deploymentId,parseOut
|
|
|
1058
1039
|
return response;
|
|
1059
1040
|
|
|
1060
1041
|
}
|
|
1061
|
-
|
|
1062
1042
|
/**
|
|
1063
1043
|
* @typedef {Object} FunctionsListExecutionsRequestParams
|
|
1064
1044
|
* @property {string} functionId Function ID.
|
|
@@ -1096,7 +1076,6 @@ const functionsListExecutions = async ({functionId,queries,parseOutput = true, o
|
|
|
1096
1076
|
return response;
|
|
1097
1077
|
|
|
1098
1078
|
}
|
|
1099
|
-
|
|
1100
1079
|
/**
|
|
1101
1080
|
* @typedef {Object} FunctionsCreateExecutionRequestParams
|
|
1102
1081
|
* @property {string} functionId Function ID.
|
|
@@ -1151,7 +1130,6 @@ const functionsCreateExecution = async ({functionId,body,async,xpath,method,head
|
|
|
1151
1130
|
return response;
|
|
1152
1131
|
|
|
1153
1132
|
}
|
|
1154
|
-
|
|
1155
1133
|
/**
|
|
1156
1134
|
* @typedef {Object} FunctionsGetExecutionRequestParams
|
|
1157
1135
|
* @property {string} functionId Function ID.
|
|
@@ -1186,7 +1164,6 @@ const functionsGetExecution = async ({functionId,executionId,parseOutput = true,
|
|
|
1186
1164
|
return response;
|
|
1187
1165
|
|
|
1188
1166
|
}
|
|
1189
|
-
|
|
1190
1167
|
/**
|
|
1191
1168
|
* @typedef {Object} FunctionsDeleteExecutionRequestParams
|
|
1192
1169
|
* @property {string} functionId Function ID.
|
|
@@ -1218,11 +1195,10 @@ const functionsDeleteExecution = async ({functionId,executionId,parseOutput = tr
|
|
|
1218
1195
|
return response;
|
|
1219
1196
|
|
|
1220
1197
|
}
|
|
1221
|
-
|
|
1222
1198
|
/**
|
|
1223
1199
|
* @typedef {Object} FunctionsGetUsageRequestParams
|
|
1224
1200
|
* @property {string} functionId Function ID.
|
|
1225
|
-
* @property {
|
|
1201
|
+
* @property {UsageRange} range Date range.
|
|
1226
1202
|
* @property {boolean} overrideForCli
|
|
1227
1203
|
* @property {boolean} parseOutput
|
|
1228
1204
|
* @property {libClient | undefined} sdk
|
|
@@ -1252,7 +1228,6 @@ const functionsGetUsage = async ({functionId,range,parseOutput = true, overrideF
|
|
|
1252
1228
|
return response;
|
|
1253
1229
|
|
|
1254
1230
|
}
|
|
1255
|
-
|
|
1256
1231
|
/**
|
|
1257
1232
|
* @typedef {Object} FunctionsListVariablesRequestParams
|
|
1258
1233
|
* @property {string} functionId Function unique ID.
|
|
@@ -1282,7 +1257,6 @@ const functionsListVariables = async ({functionId,parseOutput = true, overrideFo
|
|
|
1282
1257
|
return response;
|
|
1283
1258
|
|
|
1284
1259
|
}
|
|
1285
|
-
|
|
1286
1260
|
/**
|
|
1287
1261
|
* @typedef {Object} FunctionsCreateVariableRequestParams
|
|
1288
1262
|
* @property {string} functionId Function unique ID.
|
|
@@ -1325,7 +1299,6 @@ const functionsCreateVariable = async ({functionId,key,value,secret,parseOutput
|
|
|
1325
1299
|
return response;
|
|
1326
1300
|
|
|
1327
1301
|
}
|
|
1328
|
-
|
|
1329
1302
|
/**
|
|
1330
1303
|
* @typedef {Object} FunctionsGetVariableRequestParams
|
|
1331
1304
|
* @property {string} functionId Function unique ID.
|
|
@@ -1356,7 +1329,6 @@ const functionsGetVariable = async ({functionId,variableId,parseOutput = true, o
|
|
|
1356
1329
|
return response;
|
|
1357
1330
|
|
|
1358
1331
|
}
|
|
1359
|
-
|
|
1360
1332
|
/**
|
|
1361
1333
|
* @typedef {Object} FunctionsUpdateVariableRequestParams
|
|
1362
1334
|
* @property {string} functionId Function unique ID.
|
|
@@ -1400,7 +1372,6 @@ const functionsUpdateVariable = async ({functionId,variableId,key,value,secret,p
|
|
|
1400
1372
|
return response;
|
|
1401
1373
|
|
|
1402
1374
|
}
|
|
1403
|
-
|
|
1404
1375
|
/**
|
|
1405
1376
|
* @typedef {Object} FunctionsDeleteVariableRequestParams
|
|
1406
1377
|
* @property {string} functionId Function unique ID.
|
|
@@ -1432,7 +1403,6 @@ const functionsDeleteVariable = async ({functionId,variableId,parseOutput = true
|
|
|
1432
1403
|
return response;
|
|
1433
1404
|
|
|
1434
1405
|
}
|
|
1435
|
-
|
|
1436
1406
|
functions
|
|
1437
1407
|
.command(`list`)
|
|
1438
1408
|
.description(`Get a list of all the project's functions. You can use the query params to filter your results.`)
|
package/lib/commands/graphql.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');
|
|
@@ -73,7 +73,6 @@ const graphqlQuery = async ({query,parseOutput = true, overrideForCli = false, s
|
|
|
73
73
|
return response;
|
|
74
74
|
|
|
75
75
|
}
|
|
76
|
-
|
|
77
76
|
/**
|
|
78
77
|
* @typedef {Object} GraphqlMutationRequestParams
|
|
79
78
|
* @property {object} query The query or queries to execute.
|
|
@@ -108,7 +107,6 @@ const graphqlMutation = async ({query,parseOutput = true, overrideForCli = false
|
|
|
108
107
|
return response;
|
|
109
108
|
|
|
110
109
|
}
|
|
111
|
-
|
|
112
110
|
graphql
|
|
113
111
|
.command(`query`)
|
|
114
112
|
.description(`Execute a GraphQL mutation.`)
|
package/lib/commands/health.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');
|
|
@@ -67,7 +67,6 @@ const healthGet = async ({parseOutput = true, overrideForCli = false, sdk = unde
|
|
|
67
67
|
return response;
|
|
68
68
|
|
|
69
69
|
}
|
|
70
|
-
|
|
71
70
|
/**
|
|
72
71
|
* @typedef {Object} HealthGetAntivirusRequestParams
|
|
73
72
|
* @property {boolean} overrideForCli
|
|
@@ -96,7 +95,6 @@ const healthGetAntivirus = async ({parseOutput = true, overrideForCli = false, s
|
|
|
96
95
|
return response;
|
|
97
96
|
|
|
98
97
|
}
|
|
99
|
-
|
|
100
98
|
/**
|
|
101
99
|
* @typedef {Object} HealthGetCacheRequestParams
|
|
102
100
|
* @property {boolean} overrideForCli
|
|
@@ -125,7 +123,6 @@ const healthGetCache = async ({parseOutput = true, overrideForCli = false, sdk =
|
|
|
125
123
|
return response;
|
|
126
124
|
|
|
127
125
|
}
|
|
128
|
-
|
|
129
126
|
/**
|
|
130
127
|
* @typedef {Object} HealthGetCertificateRequestParams
|
|
131
128
|
* @property {string} domain string
|
|
@@ -158,7 +155,6 @@ const healthGetCertificate = async ({domain,parseOutput = true, overrideForCli =
|
|
|
158
155
|
return response;
|
|
159
156
|
|
|
160
157
|
}
|
|
161
|
-
|
|
162
158
|
/**
|
|
163
159
|
* @typedef {Object} HealthGetDBRequestParams
|
|
164
160
|
* @property {boolean} overrideForCli
|
|
@@ -187,7 +183,6 @@ const healthGetDB = async ({parseOutput = true, overrideForCli = false, sdk = un
|
|
|
187
183
|
return response;
|
|
188
184
|
|
|
189
185
|
}
|
|
190
|
-
|
|
191
186
|
/**
|
|
192
187
|
* @typedef {Object} HealthGetPubSubRequestParams
|
|
193
188
|
* @property {boolean} overrideForCli
|
|
@@ -216,7 +211,6 @@ const healthGetPubSub = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
216
211
|
return response;
|
|
217
212
|
|
|
218
213
|
}
|
|
219
|
-
|
|
220
214
|
/**
|
|
221
215
|
* @typedef {Object} HealthGetQueueBuildsRequestParams
|
|
222
216
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -249,7 +243,6 @@ const healthGetQueueBuilds = async ({threshold,parseOutput = true, overrideForCl
|
|
|
249
243
|
return response;
|
|
250
244
|
|
|
251
245
|
}
|
|
252
|
-
|
|
253
246
|
/**
|
|
254
247
|
* @typedef {Object} HealthGetQueueCertificatesRequestParams
|
|
255
248
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -282,7 +275,6 @@ const healthGetQueueCertificates = async ({threshold,parseOutput = true, overrid
|
|
|
282
275
|
return response;
|
|
283
276
|
|
|
284
277
|
}
|
|
285
|
-
|
|
286
278
|
/**
|
|
287
279
|
* @typedef {Object} HealthGetQueueDatabasesRequestParams
|
|
288
280
|
* @property {string} name Queue name for which to check the queue size
|
|
@@ -319,7 +311,6 @@ const healthGetQueueDatabases = async ({name,threshold,parseOutput = true, overr
|
|
|
319
311
|
return response;
|
|
320
312
|
|
|
321
313
|
}
|
|
322
|
-
|
|
323
314
|
/**
|
|
324
315
|
* @typedef {Object} HealthGetQueueDeletesRequestParams
|
|
325
316
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -352,7 +343,6 @@ const healthGetQueueDeletes = async ({threshold,parseOutput = true, overrideForC
|
|
|
352
343
|
return response;
|
|
353
344
|
|
|
354
345
|
}
|
|
355
|
-
|
|
356
346
|
/**
|
|
357
347
|
* @typedef {Object} HealthGetFailedJobsRequestParams
|
|
358
348
|
* @property {Name} name The name of the queue
|
|
@@ -386,7 +376,6 @@ const healthGetFailedJobs = async ({name,threshold,parseOutput = true, overrideF
|
|
|
386
376
|
return response;
|
|
387
377
|
|
|
388
378
|
}
|
|
389
|
-
|
|
390
379
|
/**
|
|
391
380
|
* @typedef {Object} HealthGetQueueFunctionsRequestParams
|
|
392
381
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -419,7 +408,6 @@ const healthGetQueueFunctions = async ({threshold,parseOutput = true, overrideFo
|
|
|
419
408
|
return response;
|
|
420
409
|
|
|
421
410
|
}
|
|
422
|
-
|
|
423
411
|
/**
|
|
424
412
|
* @typedef {Object} HealthGetQueueLogsRequestParams
|
|
425
413
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -452,7 +440,6 @@ const healthGetQueueLogs = async ({threshold,parseOutput = true, overrideForCli
|
|
|
452
440
|
return response;
|
|
453
441
|
|
|
454
442
|
}
|
|
455
|
-
|
|
456
443
|
/**
|
|
457
444
|
* @typedef {Object} HealthGetQueueMailsRequestParams
|
|
458
445
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -485,7 +472,6 @@ const healthGetQueueMails = async ({threshold,parseOutput = true, overrideForCli
|
|
|
485
472
|
return response;
|
|
486
473
|
|
|
487
474
|
}
|
|
488
|
-
|
|
489
475
|
/**
|
|
490
476
|
* @typedef {Object} HealthGetQueueMessagingRequestParams
|
|
491
477
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -518,7 +504,6 @@ const healthGetQueueMessaging = async ({threshold,parseOutput = true, overrideFo
|
|
|
518
504
|
return response;
|
|
519
505
|
|
|
520
506
|
}
|
|
521
|
-
|
|
522
507
|
/**
|
|
523
508
|
* @typedef {Object} HealthGetQueueMigrationsRequestParams
|
|
524
509
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -551,7 +536,6 @@ const healthGetQueueMigrations = async ({threshold,parseOutput = true, overrideF
|
|
|
551
536
|
return response;
|
|
552
537
|
|
|
553
538
|
}
|
|
554
|
-
|
|
555
539
|
/**
|
|
556
540
|
* @typedef {Object} HealthGetQueueStatsResourcesRequestParams
|
|
557
541
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -584,7 +568,6 @@ const healthGetQueueStatsResources = async ({threshold,parseOutput = true, overr
|
|
|
584
568
|
return response;
|
|
585
569
|
|
|
586
570
|
}
|
|
587
|
-
|
|
588
571
|
/**
|
|
589
572
|
* @typedef {Object} HealthGetQueueUsageRequestParams
|
|
590
573
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -617,7 +600,6 @@ const healthGetQueueUsage = async ({threshold,parseOutput = true, overrideForCli
|
|
|
617
600
|
return response;
|
|
618
601
|
|
|
619
602
|
}
|
|
620
|
-
|
|
621
603
|
/**
|
|
622
604
|
* @typedef {Object} HealthGetQueueWebhooksRequestParams
|
|
623
605
|
* @property {number} threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
|
|
@@ -650,7 +632,6 @@ const healthGetQueueWebhooks = async ({threshold,parseOutput = true, overrideFor
|
|
|
650
632
|
return response;
|
|
651
633
|
|
|
652
634
|
}
|
|
653
|
-
|
|
654
635
|
/**
|
|
655
636
|
* @typedef {Object} HealthGetStorageRequestParams
|
|
656
637
|
* @property {boolean} overrideForCli
|
|
@@ -679,7 +660,6 @@ const healthGetStorage = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
679
660
|
return response;
|
|
680
661
|
|
|
681
662
|
}
|
|
682
|
-
|
|
683
663
|
/**
|
|
684
664
|
* @typedef {Object} HealthGetStorageLocalRequestParams
|
|
685
665
|
* @property {boolean} overrideForCli
|
|
@@ -708,7 +688,6 @@ const healthGetStorageLocal = async ({parseOutput = true, overrideForCli = false
|
|
|
708
688
|
return response;
|
|
709
689
|
|
|
710
690
|
}
|
|
711
|
-
|
|
712
691
|
/**
|
|
713
692
|
* @typedef {Object} HealthGetTimeRequestParams
|
|
714
693
|
* @property {boolean} overrideForCli
|
|
@@ -737,7 +716,6 @@ const healthGetTime = async ({parseOutput = true, overrideForCli = false, sdk =
|
|
|
737
716
|
return response;
|
|
738
717
|
|
|
739
718
|
}
|
|
740
|
-
|
|
741
719
|
health
|
|
742
720
|
.command(`get`)
|
|
743
721
|
.description(`Check the Appwrite HTTP server is up and responsive.`)
|
package/lib/commands/init.js
CHANGED
|
@@ -117,7 +117,7 @@ const initProject = async ({ organizationId, projectId, projectName } = {}) => {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
success(`Project successfully ${answers.start === 'existing' ? 'linked' : 'created'}. Details are now stored in appwrite.json file.`);
|
|
120
|
+
success(`Project successfully ${answers.start === 'existing' ? 'linked' : 'created'}. Details are now stored in appwrite.config.json file.`);
|
|
121
121
|
|
|
122
122
|
if(answers.start === 'existing') {
|
|
123
123
|
answers = await inquirer.prompt(questionsInitProjectAutopull);
|
package/lib/commands/locale.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');
|
|
@@ -67,7 +67,6 @@ const localeGet = async ({parseOutput = true, overrideForCli = false, sdk = unde
|
|
|
67
67
|
return response;
|
|
68
68
|
|
|
69
69
|
}
|
|
70
|
-
|
|
71
70
|
/**
|
|
72
71
|
* @typedef {Object} LocaleListCodesRequestParams
|
|
73
72
|
* @property {boolean} overrideForCli
|
|
@@ -96,7 +95,6 @@ const localeListCodes = async ({parseOutput = true, overrideForCli = false, sdk
|
|
|
96
95
|
return response;
|
|
97
96
|
|
|
98
97
|
}
|
|
99
|
-
|
|
100
98
|
/**
|
|
101
99
|
* @typedef {Object} LocaleListContinentsRequestParams
|
|
102
100
|
* @property {boolean} overrideForCli
|
|
@@ -125,7 +123,6 @@ const localeListContinents = async ({parseOutput = true, overrideForCli = false,
|
|
|
125
123
|
return response;
|
|
126
124
|
|
|
127
125
|
}
|
|
128
|
-
|
|
129
126
|
/**
|
|
130
127
|
* @typedef {Object} LocaleListCountriesRequestParams
|
|
131
128
|
* @property {boolean} overrideForCli
|
|
@@ -154,7 +151,6 @@ const localeListCountries = async ({parseOutput = true, overrideForCli = false,
|
|
|
154
151
|
return response;
|
|
155
152
|
|
|
156
153
|
}
|
|
157
|
-
|
|
158
154
|
/**
|
|
159
155
|
* @typedef {Object} LocaleListCountriesEURequestParams
|
|
160
156
|
* @property {boolean} overrideForCli
|
|
@@ -183,7 +179,6 @@ const localeListCountriesEU = async ({parseOutput = true, overrideForCli = false
|
|
|
183
179
|
return response;
|
|
184
180
|
|
|
185
181
|
}
|
|
186
|
-
|
|
187
182
|
/**
|
|
188
183
|
* @typedef {Object} LocaleListCountriesPhonesRequestParams
|
|
189
184
|
* @property {boolean} overrideForCli
|
|
@@ -212,7 +207,6 @@ const localeListCountriesPhones = async ({parseOutput = true, overrideForCli = f
|
|
|
212
207
|
return response;
|
|
213
208
|
|
|
214
209
|
}
|
|
215
|
-
|
|
216
210
|
/**
|
|
217
211
|
* @typedef {Object} LocaleListCurrenciesRequestParams
|
|
218
212
|
* @property {boolean} overrideForCli
|
|
@@ -241,7 +235,6 @@ const localeListCurrencies = async ({parseOutput = true, overrideForCli = false,
|
|
|
241
235
|
return response;
|
|
242
236
|
|
|
243
237
|
}
|
|
244
|
-
|
|
245
238
|
/**
|
|
246
239
|
* @typedef {Object} LocaleListLanguagesRequestParams
|
|
247
240
|
* @property {boolean} overrideForCli
|
|
@@ -270,7 +263,6 @@ const localeListLanguages = async ({parseOutput = true, overrideForCli = false,
|
|
|
270
263
|
return response;
|
|
271
264
|
|
|
272
265
|
}
|
|
273
|
-
|
|
274
266
|
locale
|
|
275
267
|
.command(`get`)
|
|
276
268
|
.description(`Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language. ([IP Geolocation by DB-IP](https://db-ip.com))`)
|