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 messagingListMessages = async ({queries,search,parseOutput = true, overrid
|
|
|
79
79
|
return response;
|
|
80
80
|
|
|
81
81
|
}
|
|
82
|
-
|
|
83
82
|
/**
|
|
84
83
|
* @typedef {Object} MessagingCreateEmailRequestParams
|
|
85
84
|
* @property {string} messageId Message 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.
|
|
@@ -163,7 +162,6 @@ const messagingCreateEmail = async ({messageId,subject,content,topics,users,targ
|
|
|
163
162
|
return response;
|
|
164
163
|
|
|
165
164
|
}
|
|
166
|
-
|
|
167
165
|
/**
|
|
168
166
|
* @typedef {Object} MessagingUpdateEmailRequestParams
|
|
169
167
|
* @property {string} messageId Message ID.
|
|
@@ -244,7 +242,6 @@ const messagingUpdateEmail = async ({messageId,topics,users,targets,subject,cont
|
|
|
244
242
|
return response;
|
|
245
243
|
|
|
246
244
|
}
|
|
247
|
-
|
|
248
245
|
/**
|
|
249
246
|
* @typedef {Object} MessagingCreatePushRequestParams
|
|
250
247
|
* @property {string} messageId Message 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.
|
|
@@ -353,7 +350,6 @@ const messagingCreatePush = async ({messageId,title,body,topics,users,targets,da
|
|
|
353
350
|
return response;
|
|
354
351
|
|
|
355
352
|
}
|
|
356
|
-
|
|
357
353
|
/**
|
|
358
354
|
* @typedef {Object} MessagingUpdatePushRequestParams
|
|
359
355
|
* @property {string} messageId Message ID.
|
|
@@ -459,9 +455,8 @@ const messagingUpdatePush = async ({messageId,topics,users,targets,title,body,da
|
|
|
459
455
|
return response;
|
|
460
456
|
|
|
461
457
|
}
|
|
462
|
-
|
|
463
458
|
/**
|
|
464
|
-
* @typedef {Object}
|
|
459
|
+
* @typedef {Object} MessagingCreateSMSRequestParams
|
|
465
460
|
* @property {string} messageId Message 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.
|
|
466
461
|
* @property {string} content SMS Content.
|
|
467
462
|
* @property {string[]} topics List of Topic IDs.
|
|
@@ -475,9 +470,9 @@ const messagingUpdatePush = async ({messageId,topics,users,targets,title,body,da
|
|
|
475
470
|
*/
|
|
476
471
|
|
|
477
472
|
/**
|
|
478
|
-
* @param {
|
|
473
|
+
* @param {MessagingCreateSMSRequestParams} params
|
|
479
474
|
*/
|
|
480
|
-
const
|
|
475
|
+
const messagingCreateSMS = async ({messageId,content,topics,users,targets,draft,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
481
476
|
let client = !sdk ? await sdkForProject() :
|
|
482
477
|
sdk;
|
|
483
478
|
let apiPath = '/messaging/messages/sms';
|
|
@@ -520,9 +515,8 @@ const messagingCreateSms = async ({messageId,content,topics,users,targets,draft,
|
|
|
520
515
|
return response;
|
|
521
516
|
|
|
522
517
|
}
|
|
523
|
-
|
|
524
518
|
/**
|
|
525
|
-
* @typedef {Object}
|
|
519
|
+
* @typedef {Object} MessagingUpdateSMSRequestParams
|
|
526
520
|
* @property {string} messageId Message ID.
|
|
527
521
|
* @property {string[]} topics List of Topic IDs.
|
|
528
522
|
* @property {string[]} users List of User IDs.
|
|
@@ -536,9 +530,9 @@ const messagingCreateSms = async ({messageId,content,topics,users,targets,draft,
|
|
|
536
530
|
*/
|
|
537
531
|
|
|
538
532
|
/**
|
|
539
|
-
* @param {
|
|
533
|
+
* @param {MessagingUpdateSMSRequestParams} params
|
|
540
534
|
*/
|
|
541
|
-
const
|
|
535
|
+
const messagingUpdateSMS = async ({messageId,topics,users,targets,content,draft,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
542
536
|
let client = !sdk ? await sdkForProject() :
|
|
543
537
|
sdk;
|
|
544
538
|
let apiPath = '/messaging/messages/sms/{messageId}'.replace('{messageId}', messageId);
|
|
@@ -578,7 +572,6 @@ const messagingUpdateSms = async ({messageId,topics,users,targets,content,draft,
|
|
|
578
572
|
return response;
|
|
579
573
|
|
|
580
574
|
}
|
|
581
|
-
|
|
582
575
|
/**
|
|
583
576
|
* @typedef {Object} MessagingGetMessageRequestParams
|
|
584
577
|
* @property {string} messageId Message ID.
|
|
@@ -612,7 +605,6 @@ const messagingGetMessage = async ({messageId,parseOutput = true, overrideForCli
|
|
|
612
605
|
return response;
|
|
613
606
|
|
|
614
607
|
}
|
|
615
|
-
|
|
616
608
|
/**
|
|
617
609
|
* @typedef {Object} MessagingDeleteRequestParams
|
|
618
610
|
* @property {string} messageId Message ID.
|
|
@@ -643,7 +635,6 @@ const messagingDelete = async ({messageId,parseOutput = true, overrideForCli = f
|
|
|
643
635
|
return response;
|
|
644
636
|
|
|
645
637
|
}
|
|
646
|
-
|
|
647
638
|
/**
|
|
648
639
|
* @typedef {Object} MessagingListMessageLogsRequestParams
|
|
649
640
|
* @property {string} messageId Message ID.
|
|
@@ -681,7 +672,6 @@ const messagingListMessageLogs = async ({messageId,queries,parseOutput = true, o
|
|
|
681
672
|
return response;
|
|
682
673
|
|
|
683
674
|
}
|
|
684
|
-
|
|
685
675
|
/**
|
|
686
676
|
* @typedef {Object} MessagingListTargetsRequestParams
|
|
687
677
|
* @property {string} messageId Message ID.
|
|
@@ -715,7 +705,6 @@ const messagingListTargets = async ({messageId,queries,parseOutput = true, overr
|
|
|
715
705
|
return response;
|
|
716
706
|
|
|
717
707
|
}
|
|
718
|
-
|
|
719
708
|
/**
|
|
720
709
|
* @typedef {Object} MessagingListProvidersRequestParams
|
|
721
710
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
|
|
@@ -756,9 +745,8 @@ const messagingListProviders = async ({queries,search,parseOutput = true, overri
|
|
|
756
745
|
return response;
|
|
757
746
|
|
|
758
747
|
}
|
|
759
|
-
|
|
760
748
|
/**
|
|
761
|
-
* @typedef {Object}
|
|
749
|
+
* @typedef {Object} MessagingCreateAPNSProviderRequestParams
|
|
762
750
|
* @property {string} providerId Provider 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.
|
|
763
751
|
* @property {string} name Provider name.
|
|
764
752
|
* @property {string} authKey APNS authentication key.
|
|
@@ -773,9 +761,9 @@ const messagingListProviders = async ({queries,search,parseOutput = true, overri
|
|
|
773
761
|
*/
|
|
774
762
|
|
|
775
763
|
/**
|
|
776
|
-
* @param {
|
|
764
|
+
* @param {MessagingCreateAPNSProviderRequestParams} params
|
|
777
765
|
*/
|
|
778
|
-
const
|
|
766
|
+
const messagingCreateAPNSProvider = async ({providerId,name,authKey,authKeyId,teamId,bundleId,sandbox,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
779
767
|
let client = !sdk ? await sdkForProject() :
|
|
780
768
|
sdk;
|
|
781
769
|
let apiPath = '/messaging/providers/apns';
|
|
@@ -818,9 +806,8 @@ const messagingCreateApnsProvider = async ({providerId,name,authKey,authKeyId,te
|
|
|
818
806
|
return response;
|
|
819
807
|
|
|
820
808
|
}
|
|
821
|
-
|
|
822
809
|
/**
|
|
823
|
-
* @typedef {Object}
|
|
810
|
+
* @typedef {Object} MessagingUpdateAPNSProviderRequestParams
|
|
824
811
|
* @property {string} providerId Provider ID.
|
|
825
812
|
* @property {string} name Provider name.
|
|
826
813
|
* @property {boolean} enabled Set as enabled.
|
|
@@ -835,9 +822,9 @@ const messagingCreateApnsProvider = async ({providerId,name,authKey,authKeyId,te
|
|
|
835
822
|
*/
|
|
836
823
|
|
|
837
824
|
/**
|
|
838
|
-
* @param {
|
|
825
|
+
* @param {MessagingUpdateAPNSProviderRequestParams} params
|
|
839
826
|
*/
|
|
840
|
-
const
|
|
827
|
+
const messagingUpdateAPNSProvider = async ({providerId,name,enabled,authKey,authKeyId,teamId,bundleId,sandbox,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
841
828
|
let client = !sdk ? await sdkForProject() :
|
|
842
829
|
sdk;
|
|
843
830
|
let apiPath = '/messaging/providers/apns/{providerId}'.replace('{providerId}', providerId);
|
|
@@ -877,9 +864,8 @@ const messagingUpdateApnsProvider = async ({providerId,name,enabled,authKey,auth
|
|
|
877
864
|
return response;
|
|
878
865
|
|
|
879
866
|
}
|
|
880
|
-
|
|
881
867
|
/**
|
|
882
|
-
* @typedef {Object}
|
|
868
|
+
* @typedef {Object} MessagingCreateFCMProviderRequestParams
|
|
883
869
|
* @property {string} providerId Provider 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.
|
|
884
870
|
* @property {string} name Provider name.
|
|
885
871
|
* @property {object} serviceAccountJSON FCM service account JSON.
|
|
@@ -890,9 +876,9 @@ const messagingUpdateApnsProvider = async ({providerId,name,enabled,authKey,auth
|
|
|
890
876
|
*/
|
|
891
877
|
|
|
892
878
|
/**
|
|
893
|
-
* @param {
|
|
879
|
+
* @param {MessagingCreateFCMProviderRequestParams} params
|
|
894
880
|
*/
|
|
895
|
-
const
|
|
881
|
+
const messagingCreateFCMProvider = async ({providerId,name,serviceAccountJSON,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
896
882
|
let client = !sdk ? await sdkForProject() :
|
|
897
883
|
sdk;
|
|
898
884
|
let apiPath = '/messaging/providers/fcm';
|
|
@@ -923,9 +909,8 @@ const messagingCreateFcmProvider = async ({providerId,name,serviceAccountJSON,en
|
|
|
923
909
|
return response;
|
|
924
910
|
|
|
925
911
|
}
|
|
926
|
-
|
|
927
912
|
/**
|
|
928
|
-
* @typedef {Object}
|
|
913
|
+
* @typedef {Object} MessagingUpdateFCMProviderRequestParams
|
|
929
914
|
* @property {string} providerId Provider ID.
|
|
930
915
|
* @property {string} name Provider name.
|
|
931
916
|
* @property {boolean} enabled Set as enabled.
|
|
@@ -936,9 +921,9 @@ const messagingCreateFcmProvider = async ({providerId,name,serviceAccountJSON,en
|
|
|
936
921
|
*/
|
|
937
922
|
|
|
938
923
|
/**
|
|
939
|
-
* @param {
|
|
924
|
+
* @param {MessagingUpdateFCMProviderRequestParams} params
|
|
940
925
|
*/
|
|
941
|
-
const
|
|
926
|
+
const messagingUpdateFCMProvider = async ({providerId,name,enabled,serviceAccountJSON,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
942
927
|
let client = !sdk ? await sdkForProject() :
|
|
943
928
|
sdk;
|
|
944
929
|
let apiPath = '/messaging/providers/fcm/{providerId}'.replace('{providerId}', providerId);
|
|
@@ -966,7 +951,6 @@ const messagingUpdateFcmProvider = async ({providerId,name,enabled,serviceAccoun
|
|
|
966
951
|
return response;
|
|
967
952
|
|
|
968
953
|
}
|
|
969
|
-
|
|
970
954
|
/**
|
|
971
955
|
* @typedef {Object} MessagingCreateMailgunProviderRequestParams
|
|
972
956
|
* @property {string} providerId Provider 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.
|
|
@@ -1036,7 +1020,6 @@ const messagingCreateMailgunProvider = async ({providerId,name,apiKey,domain,isE
|
|
|
1036
1020
|
return response;
|
|
1037
1021
|
|
|
1038
1022
|
}
|
|
1039
|
-
|
|
1040
1023
|
/**
|
|
1041
1024
|
* @typedef {Object} MessagingUpdateMailgunProviderRequestParams
|
|
1042
1025
|
* @property {string} providerId Provider ID.
|
|
@@ -1103,7 +1086,6 @@ const messagingUpdateMailgunProvider = async ({providerId,name,apiKey,domain,isE
|
|
|
1103
1086
|
return response;
|
|
1104
1087
|
|
|
1105
1088
|
}
|
|
1106
|
-
|
|
1107
1089
|
/**
|
|
1108
1090
|
* @typedef {Object} MessagingCreateMsg91ProviderRequestParams
|
|
1109
1091
|
* @property {string} providerId Provider 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.
|
|
@@ -1157,7 +1139,6 @@ const messagingCreateMsg91Provider = async ({providerId,name,templateId,senderId
|
|
|
1157
1139
|
return response;
|
|
1158
1140
|
|
|
1159
1141
|
}
|
|
1160
|
-
|
|
1161
1142
|
/**
|
|
1162
1143
|
* @typedef {Object} MessagingUpdateMsg91ProviderRequestParams
|
|
1163
1144
|
* @property {string} providerId Provider ID.
|
|
@@ -1208,7 +1189,6 @@ const messagingUpdateMsg91Provider = async ({providerId,name,enabled,templateId,
|
|
|
1208
1189
|
return response;
|
|
1209
1190
|
|
|
1210
1191
|
}
|
|
1211
|
-
|
|
1212
1192
|
/**
|
|
1213
1193
|
* @typedef {Object} MessagingCreateSendgridProviderRequestParams
|
|
1214
1194
|
* @property {string} providerId Provider 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.
|
|
@@ -1270,7 +1250,6 @@ const messagingCreateSendgridProvider = async ({providerId,name,apiKey,fromName,
|
|
|
1270
1250
|
return response;
|
|
1271
1251
|
|
|
1272
1252
|
}
|
|
1273
|
-
|
|
1274
1253
|
/**
|
|
1275
1254
|
* @typedef {Object} MessagingUpdateSendgridProviderRequestParams
|
|
1276
1255
|
* @property {string} providerId Provider ID.
|
|
@@ -1329,9 +1308,8 @@ const messagingUpdateSendgridProvider = async ({providerId,name,enabled,apiKey,f
|
|
|
1329
1308
|
return response;
|
|
1330
1309
|
|
|
1331
1310
|
}
|
|
1332
|
-
|
|
1333
1311
|
/**
|
|
1334
|
-
* @typedef {Object}
|
|
1312
|
+
* @typedef {Object} MessagingCreateSMTPProviderRequestParams
|
|
1335
1313
|
* @property {string} providerId Provider 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.
|
|
1336
1314
|
* @property {string} name Provider name.
|
|
1337
1315
|
* @property {string} host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.
|
|
@@ -1352,9 +1330,9 @@ const messagingUpdateSendgridProvider = async ({providerId,name,enabled,apiKey,f
|
|
|
1352
1330
|
*/
|
|
1353
1331
|
|
|
1354
1332
|
/**
|
|
1355
|
-
* @param {
|
|
1333
|
+
* @param {MessagingCreateSMTPProviderRequestParams} params
|
|
1356
1334
|
*/
|
|
1357
|
-
const
|
|
1335
|
+
const messagingCreateSMTPProvider = async ({providerId,name,host,port,username,password,encryption,autoTLS,mailer,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1358
1336
|
let client = !sdk ? await sdkForProject() :
|
|
1359
1337
|
sdk;
|
|
1360
1338
|
let apiPath = '/messaging/providers/smtp';
|
|
@@ -1415,9 +1393,8 @@ const messagingCreateSmtpProvider = async ({providerId,name,host,port,username,p
|
|
|
1415
1393
|
return response;
|
|
1416
1394
|
|
|
1417
1395
|
}
|
|
1418
|
-
|
|
1419
1396
|
/**
|
|
1420
|
-
* @typedef {Object}
|
|
1397
|
+
* @typedef {Object} MessagingUpdateSMTPProviderRequestParams
|
|
1421
1398
|
* @property {string} providerId Provider ID.
|
|
1422
1399
|
* @property {string} name Provider name.
|
|
1423
1400
|
* @property {string} host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.
|
|
@@ -1438,9 +1415,9 @@ const messagingCreateSmtpProvider = async ({providerId,name,host,port,username,p
|
|
|
1438
1415
|
*/
|
|
1439
1416
|
|
|
1440
1417
|
/**
|
|
1441
|
-
* @param {
|
|
1418
|
+
* @param {MessagingUpdateSMTPProviderRequestParams} params
|
|
1442
1419
|
*/
|
|
1443
|
-
const
|
|
1420
|
+
const messagingUpdateSMTPProvider = async ({providerId,name,host,port,username,password,encryption,autoTLS,mailer,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
|
|
1444
1421
|
let client = !sdk ? await sdkForProject() :
|
|
1445
1422
|
sdk;
|
|
1446
1423
|
let apiPath = '/messaging/providers/smtp/{providerId}'.replace('{providerId}', providerId);
|
|
@@ -1498,7 +1475,6 @@ const messagingUpdateSmtpProvider = async ({providerId,name,host,port,username,p
|
|
|
1498
1475
|
return response;
|
|
1499
1476
|
|
|
1500
1477
|
}
|
|
1501
|
-
|
|
1502
1478
|
/**
|
|
1503
1479
|
* @typedef {Object} MessagingCreateTelesignProviderRequestParams
|
|
1504
1480
|
* @property {string} providerId Provider 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.
|
|
@@ -1552,7 +1528,6 @@ const messagingCreateTelesignProvider = async ({providerId,name,from,customerId,
|
|
|
1552
1528
|
return response;
|
|
1553
1529
|
|
|
1554
1530
|
}
|
|
1555
|
-
|
|
1556
1531
|
/**
|
|
1557
1532
|
* @typedef {Object} MessagingUpdateTelesignProviderRequestParams
|
|
1558
1533
|
* @property {string} providerId Provider ID.
|
|
@@ -1603,7 +1578,6 @@ const messagingUpdateTelesignProvider = async ({providerId,name,enabled,customer
|
|
|
1603
1578
|
return response;
|
|
1604
1579
|
|
|
1605
1580
|
}
|
|
1606
|
-
|
|
1607
1581
|
/**
|
|
1608
1582
|
* @typedef {Object} MessagingCreateTextmagicProviderRequestParams
|
|
1609
1583
|
* @property {string} providerId Provider 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.
|
|
@@ -1657,7 +1631,6 @@ const messagingCreateTextmagicProvider = async ({providerId,name,from,username,a
|
|
|
1657
1631
|
return response;
|
|
1658
1632
|
|
|
1659
1633
|
}
|
|
1660
|
-
|
|
1661
1634
|
/**
|
|
1662
1635
|
* @typedef {Object} MessagingUpdateTextmagicProviderRequestParams
|
|
1663
1636
|
* @property {string} providerId Provider ID.
|
|
@@ -1708,7 +1681,6 @@ const messagingUpdateTextmagicProvider = async ({providerId,name,enabled,usernam
|
|
|
1708
1681
|
return response;
|
|
1709
1682
|
|
|
1710
1683
|
}
|
|
1711
|
-
|
|
1712
1684
|
/**
|
|
1713
1685
|
* @typedef {Object} MessagingCreateTwilioProviderRequestParams
|
|
1714
1686
|
* @property {string} providerId Provider 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.
|
|
@@ -1762,7 +1734,6 @@ const messagingCreateTwilioProvider = async ({providerId,name,from,accountSid,au
|
|
|
1762
1734
|
return response;
|
|
1763
1735
|
|
|
1764
1736
|
}
|
|
1765
|
-
|
|
1766
1737
|
/**
|
|
1767
1738
|
* @typedef {Object} MessagingUpdateTwilioProviderRequestParams
|
|
1768
1739
|
* @property {string} providerId Provider ID.
|
|
@@ -1813,7 +1784,6 @@ const messagingUpdateTwilioProvider = async ({providerId,name,enabled,accountSid
|
|
|
1813
1784
|
return response;
|
|
1814
1785
|
|
|
1815
1786
|
}
|
|
1816
|
-
|
|
1817
1787
|
/**
|
|
1818
1788
|
* @typedef {Object} MessagingCreateVonageProviderRequestParams
|
|
1819
1789
|
* @property {string} providerId Provider 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.
|
|
@@ -1867,7 +1837,6 @@ const messagingCreateVonageProvider = async ({providerId,name,from,apiKey,apiSec
|
|
|
1867
1837
|
return response;
|
|
1868
1838
|
|
|
1869
1839
|
}
|
|
1870
|
-
|
|
1871
1840
|
/**
|
|
1872
1841
|
* @typedef {Object} MessagingUpdateVonageProviderRequestParams
|
|
1873
1842
|
* @property {string} providerId Provider ID.
|
|
@@ -1918,7 +1887,6 @@ const messagingUpdateVonageProvider = async ({providerId,name,enabled,apiKey,api
|
|
|
1918
1887
|
return response;
|
|
1919
1888
|
|
|
1920
1889
|
}
|
|
1921
|
-
|
|
1922
1890
|
/**
|
|
1923
1891
|
* @typedef {Object} MessagingGetProviderRequestParams
|
|
1924
1892
|
* @property {string} providerId Provider ID.
|
|
@@ -1952,7 +1920,6 @@ const messagingGetProvider = async ({providerId,parseOutput = true, overrideForC
|
|
|
1952
1920
|
return response;
|
|
1953
1921
|
|
|
1954
1922
|
}
|
|
1955
|
-
|
|
1956
1923
|
/**
|
|
1957
1924
|
* @typedef {Object} MessagingDeleteProviderRequestParams
|
|
1958
1925
|
* @property {string} providerId Provider ID.
|
|
@@ -1983,7 +1950,6 @@ const messagingDeleteProvider = async ({providerId,parseOutput = true, overrideF
|
|
|
1983
1950
|
return response;
|
|
1984
1951
|
|
|
1985
1952
|
}
|
|
1986
|
-
|
|
1987
1953
|
/**
|
|
1988
1954
|
* @typedef {Object} MessagingListProviderLogsRequestParams
|
|
1989
1955
|
* @property {string} providerId Provider ID.
|
|
@@ -2017,7 +1983,6 @@ const messagingListProviderLogs = async ({providerId,queries,parseOutput = true,
|
|
|
2017
1983
|
return response;
|
|
2018
1984
|
|
|
2019
1985
|
}
|
|
2020
|
-
|
|
2021
1986
|
/**
|
|
2022
1987
|
* @typedef {Object} MessagingListSubscriberLogsRequestParams
|
|
2023
1988
|
* @property {string} subscriberId Subscriber ID.
|
|
@@ -2051,7 +2016,6 @@ const messagingListSubscriberLogs = async ({subscriberId,queries,parseOutput = t
|
|
|
2051
2016
|
return response;
|
|
2052
2017
|
|
|
2053
2018
|
}
|
|
2054
|
-
|
|
2055
2019
|
/**
|
|
2056
2020
|
* @typedef {Object} MessagingListTopicsRequestParams
|
|
2057
2021
|
* @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
|
|
@@ -2092,7 +2056,6 @@ const messagingListTopics = async ({queries,search,parseOutput = true, overrideF
|
|
|
2092
2056
|
return response;
|
|
2093
2057
|
|
|
2094
2058
|
}
|
|
2095
|
-
|
|
2096
2059
|
/**
|
|
2097
2060
|
* @typedef {Object} MessagingCreateTopicRequestParams
|
|
2098
2061
|
* @property {string} topicId Topic ID. Choose a custom Topic ID or a new Topic ID.
|
|
@@ -2135,7 +2098,6 @@ const messagingCreateTopic = async ({topicId,name,subscribe,parseOutput = true,
|
|
|
2135
2098
|
return response;
|
|
2136
2099
|
|
|
2137
2100
|
}
|
|
2138
|
-
|
|
2139
2101
|
/**
|
|
2140
2102
|
* @typedef {Object} MessagingGetTopicRequestParams
|
|
2141
2103
|
* @property {string} topicId Topic ID.
|
|
@@ -2169,7 +2131,6 @@ const messagingGetTopic = async ({topicId,parseOutput = true, overrideForCli = f
|
|
|
2169
2131
|
return response;
|
|
2170
2132
|
|
|
2171
2133
|
}
|
|
2172
|
-
|
|
2173
2134
|
/**
|
|
2174
2135
|
* @typedef {Object} MessagingUpdateTopicRequestParams
|
|
2175
2136
|
* @property {string} topicId Topic ID.
|
|
@@ -2209,7 +2170,6 @@ const messagingUpdateTopic = async ({topicId,name,subscribe,parseOutput = true,
|
|
|
2209
2170
|
return response;
|
|
2210
2171
|
|
|
2211
2172
|
}
|
|
2212
|
-
|
|
2213
2173
|
/**
|
|
2214
2174
|
* @typedef {Object} MessagingDeleteTopicRequestParams
|
|
2215
2175
|
* @property {string} topicId Topic ID.
|
|
@@ -2240,7 +2200,6 @@ const messagingDeleteTopic = async ({topicId,parseOutput = true, overrideForCli
|
|
|
2240
2200
|
return response;
|
|
2241
2201
|
|
|
2242
2202
|
}
|
|
2243
|
-
|
|
2244
2203
|
/**
|
|
2245
2204
|
* @typedef {Object} MessagingListTopicLogsRequestParams
|
|
2246
2205
|
* @property {string} topicId Topic ID.
|
|
@@ -2274,7 +2233,6 @@ const messagingListTopicLogs = async ({topicId,queries,parseOutput = true, overr
|
|
|
2274
2233
|
return response;
|
|
2275
2234
|
|
|
2276
2235
|
}
|
|
2277
|
-
|
|
2278
2236
|
/**
|
|
2279
2237
|
* @typedef {Object} MessagingListSubscribersRequestParams
|
|
2280
2238
|
* @property {string} topicId Topic ID. The topic ID subscribed to.
|
|
@@ -2316,7 +2274,6 @@ const messagingListSubscribers = async ({topicId,queries,search,parseOutput = tr
|
|
|
2316
2274
|
return response;
|
|
2317
2275
|
|
|
2318
2276
|
}
|
|
2319
|
-
|
|
2320
2277
|
/**
|
|
2321
2278
|
* @typedef {Object} MessagingCreateSubscriberRequestParams
|
|
2322
2279
|
* @property {string} topicId Topic ID. The topic ID to subscribe to.
|
|
@@ -2355,7 +2312,6 @@ const messagingCreateSubscriber = async ({topicId,subscriberId,targetId,parseOut
|
|
|
2355
2312
|
return response;
|
|
2356
2313
|
|
|
2357
2314
|
}
|
|
2358
|
-
|
|
2359
2315
|
/**
|
|
2360
2316
|
* @typedef {Object} MessagingGetSubscriberRequestParams
|
|
2361
2317
|
* @property {string} topicId Topic ID. The topic ID subscribed to.
|
|
@@ -2386,7 +2342,6 @@ const messagingGetSubscriber = async ({topicId,subscriberId,parseOutput = true,
|
|
|
2386
2342
|
return response;
|
|
2387
2343
|
|
|
2388
2344
|
}
|
|
2389
|
-
|
|
2390
2345
|
/**
|
|
2391
2346
|
* @typedef {Object} MessagingDeleteSubscriberRequestParams
|
|
2392
2347
|
* @property {string} topicId Topic ID. The topic ID subscribed to.
|
|
@@ -2418,7 +2373,6 @@ const messagingDeleteSubscriber = async ({topicId,subscriberId,parseOutput = tru
|
|
|
2418
2373
|
return response;
|
|
2419
2374
|
|
|
2420
2375
|
}
|
|
2421
|
-
|
|
2422
2376
|
messaging
|
|
2423
2377
|
.command(`list-messages`)
|
|
2424
2378
|
.description(`Get a list of all messages from the current Appwrite project.`)
|
|
@@ -2519,7 +2473,7 @@ messaging
|
|
|
2519
2473
|
.option(`--targets [targets...]`, `List of Targets IDs.`)
|
|
2520
2474
|
.option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
|
|
2521
2475
|
.option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
|
|
2522
|
-
.action(actionRunner(
|
|
2476
|
+
.action(actionRunner(messagingCreateSMS))
|
|
2523
2477
|
|
|
2524
2478
|
messaging
|
|
2525
2479
|
.command(`update-sms`)
|
|
@@ -2531,7 +2485,7 @@ messaging
|
|
|
2531
2485
|
.option(`--content <content>`, `Email Content.`)
|
|
2532
2486
|
.option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
|
|
2533
2487
|
.option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
|
|
2534
|
-
.action(actionRunner(
|
|
2488
|
+
.action(actionRunner(messagingUpdateSMS))
|
|
2535
2489
|
|
|
2536
2490
|
messaging
|
|
2537
2491
|
.command(`get-message`)
|
|
@@ -2580,7 +2534,7 @@ messaging
|
|
|
2580
2534
|
.option(`--bundle-id <bundle-id>`, `APNS bundle ID.`)
|
|
2581
2535
|
.option(`--sandbox [value]`, `Use APNS sandbox environment.`, (value) => value === undefined ? true : parseBool(value))
|
|
2582
2536
|
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2583
|
-
.action(actionRunner(
|
|
2537
|
+
.action(actionRunner(messagingCreateAPNSProvider))
|
|
2584
2538
|
|
|
2585
2539
|
messaging
|
|
2586
2540
|
.command(`update-apns-provider`)
|
|
@@ -2593,7 +2547,7 @@ messaging
|
|
|
2593
2547
|
.option(`--team-id <team-id>`, `APNS team ID.`)
|
|
2594
2548
|
.option(`--bundle-id <bundle-id>`, `APNS bundle ID.`)
|
|
2595
2549
|
.option(`--sandbox [value]`, `Use APNS sandbox environment.`, (value) => value === undefined ? true : parseBool(value))
|
|
2596
|
-
.action(actionRunner(
|
|
2550
|
+
.action(actionRunner(messagingUpdateAPNSProvider))
|
|
2597
2551
|
|
|
2598
2552
|
messaging
|
|
2599
2553
|
.command(`create-fcm-provider`)
|
|
@@ -2602,7 +2556,7 @@ messaging
|
|
|
2602
2556
|
.requiredOption(`--name <name>`, `Provider name.`)
|
|
2603
2557
|
.option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
|
|
2604
2558
|
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2605
|
-
.action(actionRunner(
|
|
2559
|
+
.action(actionRunner(messagingCreateFCMProvider))
|
|
2606
2560
|
|
|
2607
2561
|
messaging
|
|
2608
2562
|
.command(`update-fcm-provider`)
|
|
@@ -2611,7 +2565,7 @@ messaging
|
|
|
2611
2565
|
.option(`--name <name>`, `Provider name.`)
|
|
2612
2566
|
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2613
2567
|
.option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
|
|
2614
|
-
.action(actionRunner(
|
|
2568
|
+
.action(actionRunner(messagingUpdateFCMProvider))
|
|
2615
2569
|
|
|
2616
2570
|
messaging
|
|
2617
2571
|
.command(`create-mailgun-provider`)
|
|
@@ -2708,7 +2662,7 @@ messaging
|
|
|
2708
2662
|
.option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
|
|
2709
2663
|
.option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
|
|
2710
2664
|
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2711
|
-
.action(actionRunner(
|
|
2665
|
+
.action(actionRunner(messagingCreateSMTPProvider))
|
|
2712
2666
|
|
|
2713
2667
|
messaging
|
|
2714
2668
|
.command(`update-smtp-provider`)
|
|
@@ -2727,7 +2681,7 @@ messaging
|
|
|
2727
2681
|
.option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
|
|
2728
2682
|
.option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
|
|
2729
2683
|
.option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
|
|
2730
|
-
.action(actionRunner(
|
|
2684
|
+
.action(actionRunner(messagingUpdateSMTPProvider))
|
|
2731
2685
|
|
|
2732
2686
|
messaging
|
|
2733
2687
|
.command(`create-telesign-provider`)
|
|
@@ -2926,25 +2880,25 @@ module.exports = {
|
|
|
2926
2880
|
messagingUpdateEmail,
|
|
2927
2881
|
messagingCreatePush,
|
|
2928
2882
|
messagingUpdatePush,
|
|
2929
|
-
|
|
2930
|
-
|
|
2883
|
+
messagingCreateSMS,
|
|
2884
|
+
messagingUpdateSMS,
|
|
2931
2885
|
messagingGetMessage,
|
|
2932
2886
|
messagingDelete,
|
|
2933
2887
|
messagingListMessageLogs,
|
|
2934
2888
|
messagingListTargets,
|
|
2935
2889
|
messagingListProviders,
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2890
|
+
messagingCreateAPNSProvider,
|
|
2891
|
+
messagingUpdateAPNSProvider,
|
|
2892
|
+
messagingCreateFCMProvider,
|
|
2893
|
+
messagingUpdateFCMProvider,
|
|
2940
2894
|
messagingCreateMailgunProvider,
|
|
2941
2895
|
messagingUpdateMailgunProvider,
|
|
2942
2896
|
messagingCreateMsg91Provider,
|
|
2943
2897
|
messagingUpdateMsg91Provider,
|
|
2944
2898
|
messagingCreateSendgridProvider,
|
|
2945
2899
|
messagingUpdateSendgridProvider,
|
|
2946
|
-
|
|
2947
|
-
|
|
2900
|
+
messagingCreateSMTPProvider,
|
|
2901
|
+
messagingUpdateSMTPProvider,
|
|
2948
2902
|
messagingCreateTelesignProvider,
|
|
2949
2903
|
messagingUpdateTelesignProvider,
|
|
2950
2904
|
messagingCreateTextmagicProvider,
|