appwrite-cli 13.1.0 → 13.2.1
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 +15 -1
- package/README.md +2 -2
- package/dist/bundle-win-arm64.mjs +2775 -1279
- package/dist/cli.cjs +2775 -1279
- package/dist/index.js +1576 -346
- package/dist/lib/commands/config-validations.d.ts +3 -1
- package/dist/lib/commands/config-validations.d.ts.map +1 -1
- package/dist/lib/commands/generators/typescript/databases.d.ts.map +1 -1
- package/dist/lib/commands/generic.d.ts.map +1 -1
- package/dist/lib/commands/init.d.ts.map +1 -1
- package/dist/lib/commands/pull.d.ts.map +1 -1
- package/dist/lib/commands/push.d.ts.map +1 -1
- package/dist/lib/commands/run.d.ts.map +1 -1
- package/dist/lib/commands/services/account.d.ts.map +1 -1
- package/dist/lib/commands/services/console.d.ts.map +1 -1
- package/dist/lib/commands/services/databases.d.ts.map +1 -1
- package/dist/lib/commands/services/functions.d.ts.map +1 -1
- package/dist/lib/commands/services/health.d.ts.map +1 -1
- package/dist/lib/commands/services/messaging.d.ts.map +1 -1
- package/dist/lib/commands/services/project.d.ts.map +1 -1
- package/dist/lib/commands/services/projects.d.ts.map +1 -1
- package/dist/lib/commands/services/proxy.d.ts.map +1 -1
- package/dist/lib/commands/services/sites.d.ts.map +1 -1
- package/dist/lib/commands/services/storage.d.ts.map +1 -1
- package/dist/lib/commands/services/tables-db.d.ts.map +1 -1
- package/dist/lib/commands/services/users.d.ts.map +1 -1
- package/dist/lib/commands/services/vcs.d.ts.map +1 -1
- package/dist/lib/constants.d.ts +1 -1
- package/dist/lib/emulation/utils.d.ts +2 -1
- package/dist/lib/emulation/utils.d.ts.map +1 -1
- package/dist/lib/utils.d.ts.map +1 -1
- package/docs/examples/account/create-anonymous-session.md +2 -0
- package/docs/examples/account/create-email-password-session.md +2 -0
- package/docs/examples/account/create-email-token.md +2 -0
- package/docs/examples/account/create-email-verification.md +2 -0
- package/docs/examples/account/create-jwt.md +2 -0
- package/docs/examples/account/create-magic-url-token.md +2 -0
- package/docs/examples/account/create-mfa-authenticator.md +2 -0
- package/docs/examples/account/create-mfa-challenge.md +2 -0
- package/docs/examples/account/create-mfa-recovery-codes.md +2 -0
- 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 +2 -0
- package/docs/examples/account/create-phone-verification.md +2 -0
- package/docs/examples/account/create-push-target.md +2 -0
- package/docs/examples/account/create-recovery.md +2 -0
- package/docs/examples/account/create-session.md +2 -0
- package/docs/examples/account/create-verification.md +2 -0
- package/docs/examples/account/create.md +2 -0
- package/docs/examples/account/delete-identity.md +2 -0
- package/docs/examples/account/delete-mfa-authenticator.md +2 -0
- package/docs/examples/account/delete-push-target.md +2 -0
- package/docs/examples/account/delete-session.md +2 -0
- package/docs/examples/account/delete-sessions.md +2 -0
- package/docs/examples/account/delete.md +2 -0
- package/docs/examples/account/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/get-prefs.md +2 -0
- package/docs/examples/account/get-session.md +2 -0
- package/docs/examples/account/get.md +2 -0
- package/docs/examples/account/list-identities.md +2 -0
- package/docs/examples/account/list-logs.md +2 -0
- package/docs/examples/account/list-mfa-factors.md +2 -0
- package/docs/examples/account/list-sessions.md +2 -0
- package/docs/examples/account/update-email-verification.md +2 -0
- package/docs/examples/account/update-email.md +2 -0
- package/docs/examples/account/update-magic-url-session.md +2 -0
- package/docs/examples/account/update-mfa-authenticator.md +2 -0
- package/docs/examples/account/update-mfa-challenge.md +2 -0
- package/docs/examples/account/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/account/update-mfa.md +2 -0
- package/docs/examples/account/update-name.md +2 -0
- package/docs/examples/account/update-password.md +2 -0
- package/docs/examples/account/update-phone-session.md +2 -0
- package/docs/examples/account/update-phone-verification.md +2 -0
- package/docs/examples/account/update-phone.md +2 -0
- package/docs/examples/account/update-prefs.md +2 -0
- package/docs/examples/account/update-push-target.md +2 -0
- package/docs/examples/account/update-recovery.md +2 -0
- package/docs/examples/account/update-session.md +2 -0
- package/docs/examples/account/update-status.md +2 -0
- package/docs/examples/account/update-verification.md +2 -0
- package/docs/examples/console/get-resource.md +2 -0
- package/docs/examples/console/variables.md +2 -0
- package/docs/examples/databases/create-boolean-attribute.md +2 -0
- package/docs/examples/databases/create-collection.md +2 -0
- package/docs/examples/databases/create-datetime-attribute.md +2 -0
- package/docs/examples/databases/create-document.md +2 -0
- package/docs/examples/databases/create-documents.md +2 -0
- package/docs/examples/databases/create-email-attribute.md +2 -0
- package/docs/examples/databases/create-enum-attribute.md +2 -0
- package/docs/examples/databases/create-float-attribute.md +2 -0
- package/docs/examples/databases/create-index.md +2 -0
- package/docs/examples/databases/create-integer-attribute.md +2 -0
- package/docs/examples/databases/create-ip-attribute.md +2 -0
- package/docs/examples/databases/create-line-attribute.md +2 -0
- package/docs/examples/databases/create-longtext-attribute.md +7 -0
- package/docs/examples/databases/create-mediumtext-attribute.md +7 -0
- package/docs/examples/databases/create-operations.md +2 -0
- package/docs/examples/databases/create-point-attribute.md +2 -0
- package/docs/examples/databases/create-polygon-attribute.md +2 -0
- package/docs/examples/databases/create-relationship-attribute.md +2 -0
- package/docs/examples/databases/create-string-attribute.md +2 -0
- package/docs/examples/databases/create-text-attribute.md +7 -0
- package/docs/examples/databases/create-transaction.md +2 -0
- package/docs/examples/databases/create-url-attribute.md +2 -0
- package/docs/examples/databases/create-varchar-attribute.md +8 -0
- package/docs/examples/databases/create.md +2 -0
- package/docs/examples/databases/decrement-document-attribute.md +2 -0
- package/docs/examples/databases/delete-attribute.md +2 -0
- package/docs/examples/databases/delete-collection.md +2 -0
- package/docs/examples/databases/delete-document.md +2 -0
- package/docs/examples/databases/delete-documents.md +2 -0
- package/docs/examples/databases/delete-index.md +2 -0
- package/docs/examples/databases/delete-transaction.md +2 -0
- package/docs/examples/databases/delete.md +2 -0
- package/docs/examples/databases/get-attribute.md +2 -0
- package/docs/examples/databases/get-collection-usage.md +2 -0
- package/docs/examples/databases/get-collection.md +2 -0
- package/docs/examples/databases/get-document.md +2 -0
- package/docs/examples/databases/get-index.md +2 -0
- package/docs/examples/databases/get-transaction.md +2 -0
- package/docs/examples/databases/get-usage.md +2 -0
- package/docs/examples/databases/get.md +2 -0
- package/docs/examples/databases/increment-document-attribute.md +2 -0
- package/docs/examples/databases/list-attributes.md +2 -0
- package/docs/examples/databases/list-collection-logs.md +2 -0
- package/docs/examples/databases/list-collections.md +2 -0
- package/docs/examples/databases/list-document-logs.md +2 -0
- package/docs/examples/databases/list-documents.md +2 -0
- package/docs/examples/databases/list-indexes.md +2 -0
- package/docs/examples/databases/list-logs.md +2 -0
- package/docs/examples/databases/list-transactions.md +2 -0
- package/docs/examples/databases/list-usage.md +2 -0
- package/docs/examples/databases/list.md +2 -0
- package/docs/examples/databases/update-boolean-attribute.md +2 -0
- package/docs/examples/databases/update-collection.md +3 -2
- package/docs/examples/databases/update-datetime-attribute.md +2 -0
- package/docs/examples/databases/update-document.md +2 -0
- package/docs/examples/databases/update-documents.md +2 -0
- package/docs/examples/databases/update-email-attribute.md +2 -0
- package/docs/examples/databases/update-enum-attribute.md +2 -0
- package/docs/examples/databases/update-float-attribute.md +2 -0
- package/docs/examples/databases/update-integer-attribute.md +2 -0
- package/docs/examples/databases/update-ip-attribute.md +2 -0
- package/docs/examples/databases/update-line-attribute.md +2 -0
- package/docs/examples/databases/update-longtext-attribute.md +8 -0
- package/docs/examples/databases/update-mediumtext-attribute.md +8 -0
- package/docs/examples/databases/update-point-attribute.md +2 -0
- package/docs/examples/databases/update-polygon-attribute.md +2 -0
- package/docs/examples/databases/update-relationship-attribute.md +2 -0
- package/docs/examples/databases/update-string-attribute.md +2 -0
- package/docs/examples/databases/update-text-attribute.md +8 -0
- package/docs/examples/databases/update-transaction.md +2 -0
- package/docs/examples/databases/update-url-attribute.md +2 -0
- package/docs/examples/databases/update-varchar-attribute.md +8 -0
- package/docs/examples/databases/update.md +3 -2
- package/docs/examples/databases/upsert-document.md +2 -0
- package/docs/examples/databases/upsert-documents.md +2 -0
- package/docs/examples/functions/create-deployment.md +2 -0
- package/docs/examples/functions/create-duplicate-deployment.md +2 -0
- package/docs/examples/functions/create-execution.md +2 -0
- package/docs/examples/functions/create-template-deployment.md +2 -0
- package/docs/examples/functions/create-variable.md +2 -0
- package/docs/examples/functions/create-vcs-deployment.md +2 -0
- package/docs/examples/functions/create.md +2 -0
- package/docs/examples/functions/delete-deployment.md +2 -0
- package/docs/examples/functions/delete-execution.md +2 -0
- package/docs/examples/functions/delete-variable.md +2 -0
- package/docs/examples/functions/delete.md +2 -0
- package/docs/examples/functions/get-deployment-download.md +2 -0
- package/docs/examples/functions/get-deployment.md +2 -0
- package/docs/examples/functions/get-execution.md +2 -0
- package/docs/examples/functions/get-template.md +2 -0
- package/docs/examples/functions/get-usage.md +2 -0
- package/docs/examples/functions/get-variable.md +2 -0
- package/docs/examples/functions/get.md +2 -0
- package/docs/examples/functions/list-deployments.md +2 -0
- package/docs/examples/functions/list-executions.md +2 -0
- package/docs/examples/functions/list-runtimes.md +2 -0
- package/docs/examples/functions/list-specifications.md +2 -0
- package/docs/examples/functions/list-templates.md +2 -0
- package/docs/examples/functions/list-usage.md +2 -0
- package/docs/examples/functions/list-variables.md +2 -0
- package/docs/examples/functions/list.md +2 -0
- package/docs/examples/functions/update-deployment-status.md +2 -0
- package/docs/examples/functions/update-function-deployment.md +2 -0
- package/docs/examples/functions/update-variable.md +2 -0
- package/docs/examples/functions/update.md +2 -0
- package/docs/examples/graphql/mutation.md +2 -0
- package/docs/examples/graphql/query.md +2 -0
- package/docs/examples/health/get-antivirus.md +2 -0
- package/docs/examples/health/get-cache.md +2 -0
- package/docs/examples/health/get-certificate.md +2 -0
- package/docs/examples/health/get-db.md +2 -0
- package/docs/examples/health/get-failed-jobs.md +2 -0
- package/docs/examples/health/get-pub-sub.md +2 -0
- package/docs/examples/health/get-queue-audits.md +2 -0
- package/docs/examples/health/get-queue-builds.md +2 -0
- package/docs/examples/health/get-queue-certificates.md +2 -0
- package/docs/examples/health/get-queue-databases.md +2 -0
- package/docs/examples/health/get-queue-deletes.md +2 -0
- package/docs/examples/health/get-queue-functions.md +2 -0
- package/docs/examples/health/get-queue-logs.md +2 -0
- package/docs/examples/health/get-queue-mails.md +2 -0
- package/docs/examples/health/get-queue-messaging.md +2 -0
- package/docs/examples/health/get-queue-migrations.md +2 -0
- package/docs/examples/health/get-queue-stats-resources.md +2 -0
- package/docs/examples/health/get-queue-usage.md +2 -0
- package/docs/examples/health/get-queue-webhooks.md +2 -0
- package/docs/examples/health/get-storage-local.md +2 -0
- package/docs/examples/health/get-storage.md +2 -0
- package/docs/examples/health/get-time.md +2 -0
- package/docs/examples/health/get.md +2 -0
- package/docs/examples/locale/get.md +2 -0
- package/docs/examples/locale/list-codes.md +2 -0
- package/docs/examples/locale/list-continents.md +2 -0
- package/docs/examples/locale/list-countries-eu.md +2 -0
- package/docs/examples/locale/list-countries-phones.md +2 -0
- package/docs/examples/locale/list-countries.md +2 -0
- package/docs/examples/locale/list-currencies.md +2 -0
- package/docs/examples/locale/list-languages.md +2 -0
- package/docs/examples/messaging/create-apns-provider.md +2 -0
- package/docs/examples/messaging/create-email.md +2 -0
- package/docs/examples/messaging/create-fcm-provider.md +2 -0
- package/docs/examples/messaging/create-mailgun-provider.md +2 -0
- package/docs/examples/messaging/create-msg-91-provider.md +2 -0
- package/docs/examples/messaging/create-push.md +2 -0
- package/docs/examples/messaging/create-resend-provider.md +2 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +2 -0
- package/docs/examples/messaging/create-sms.md +2 -0
- package/docs/examples/messaging/create-smtp-provider.md +2 -0
- package/docs/examples/messaging/create-subscriber.md +2 -0
- package/docs/examples/messaging/create-telesign-provider.md +2 -0
- package/docs/examples/messaging/create-textmagic-provider.md +2 -0
- package/docs/examples/messaging/create-topic.md +2 -0
- package/docs/examples/messaging/create-twilio-provider.md +2 -0
- package/docs/examples/messaging/create-vonage-provider.md +2 -0
- package/docs/examples/messaging/delete-provider.md +2 -0
- package/docs/examples/messaging/delete-subscriber.md +2 -0
- package/docs/examples/messaging/delete-topic.md +2 -0
- package/docs/examples/messaging/delete.md +2 -0
- package/docs/examples/messaging/get-message.md +2 -0
- package/docs/examples/messaging/get-provider.md +2 -0
- package/docs/examples/messaging/get-subscriber.md +2 -0
- package/docs/examples/messaging/get-topic.md +2 -0
- package/docs/examples/messaging/list-message-logs.md +2 -0
- package/docs/examples/messaging/list-messages.md +2 -0
- package/docs/examples/messaging/list-provider-logs.md +2 -0
- package/docs/examples/messaging/list-providers.md +2 -0
- package/docs/examples/messaging/list-subscriber-logs.md +2 -0
- package/docs/examples/messaging/list-subscribers.md +2 -0
- package/docs/examples/messaging/list-targets.md +2 -0
- package/docs/examples/messaging/list-topic-logs.md +2 -0
- package/docs/examples/messaging/list-topics.md +2 -0
- package/docs/examples/messaging/update-apns-provider.md +2 -0
- package/docs/examples/messaging/update-email.md +2 -0
- package/docs/examples/messaging/update-fcm-provider.md +2 -0
- package/docs/examples/messaging/update-mailgun-provider.md +2 -0
- package/docs/examples/messaging/update-msg-91-provider.md +2 -0
- package/docs/examples/messaging/update-push.md +2 -0
- package/docs/examples/messaging/update-resend-provider.md +2 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +2 -0
- package/docs/examples/messaging/update-sms.md +2 -0
- package/docs/examples/messaging/update-smtp-provider.md +2 -0
- package/docs/examples/messaging/update-telesign-provider.md +2 -0
- package/docs/examples/messaging/update-textmagic-provider.md +2 -0
- package/docs/examples/messaging/update-topic.md +2 -0
- package/docs/examples/messaging/update-twilio-provider.md +2 -0
- package/docs/examples/messaging/update-vonage-provider.md +2 -0
- package/docs/examples/migrations/create-appwrite-migration.md +2 -0
- package/docs/examples/migrations/create-csv-export.md +2 -0
- package/docs/examples/migrations/create-csv-import.md +2 -0
- package/docs/examples/migrations/create-firebase-migration.md +2 -0
- package/docs/examples/migrations/create-n-host-migration.md +2 -0
- package/docs/examples/migrations/create-supabase-migration.md +2 -0
- package/docs/examples/migrations/delete.md +2 -0
- package/docs/examples/migrations/get-appwrite-report.md +2 -0
- package/docs/examples/migrations/get-firebase-report.md +2 -0
- package/docs/examples/migrations/get-n-host-report.md +2 -0
- package/docs/examples/migrations/get-supabase-report.md +2 -0
- package/docs/examples/migrations/get.md +2 -0
- package/docs/examples/migrations/list.md +2 -0
- package/docs/examples/migrations/retry.md +2 -0
- package/docs/examples/project/create-variable.md +2 -0
- package/docs/examples/project/delete-variable.md +2 -0
- package/docs/examples/project/get-usage.md +2 -0
- package/docs/examples/project/get-variable.md +2 -0
- package/docs/examples/project/list-variables.md +2 -0
- package/docs/examples/project/update-variable.md +2 -0
- package/docs/examples/projects/create-dev-key.md +2 -0
- package/docs/examples/projects/create-jwt.md +2 -0
- package/docs/examples/projects/create-key.md +2 -0
- package/docs/examples/projects/create-platform.md +2 -0
- package/docs/examples/projects/create-smtp-test.md +2 -0
- package/docs/examples/projects/create-webhook.md +2 -0
- package/docs/examples/projects/create.md +2 -0
- package/docs/examples/projects/delete-dev-key.md +2 -0
- package/docs/examples/projects/delete-email-template.md +2 -0
- package/docs/examples/projects/delete-key.md +2 -0
- package/docs/examples/projects/delete-platform.md +2 -0
- package/docs/examples/projects/delete-sms-template.md +2 -0
- package/docs/examples/projects/delete-webhook.md +2 -0
- package/docs/examples/projects/delete.md +2 -0
- package/docs/examples/projects/get-dev-key.md +2 -0
- package/docs/examples/projects/get-email-template.md +2 -0
- package/docs/examples/projects/get-key.md +2 -0
- package/docs/examples/projects/get-platform.md +2 -0
- package/docs/examples/projects/get-sms-template.md +2 -0
- package/docs/examples/projects/get-webhook.md +2 -0
- package/docs/examples/projects/get.md +2 -0
- package/docs/examples/projects/list-dev-keys.md +2 -0
- package/docs/examples/projects/list-keys.md +2 -0
- package/docs/examples/projects/list-platforms.md +2 -0
- package/docs/examples/projects/list-webhooks.md +2 -0
- package/docs/examples/projects/list.md +2 -0
- package/docs/examples/projects/update-api-status-all.md +2 -0
- package/docs/examples/projects/update-api-status.md +2 -0
- package/docs/examples/projects/update-auth-duration.md +2 -0
- package/docs/examples/projects/update-auth-limit.md +2 -0
- package/docs/examples/projects/update-auth-password-dictionary.md +2 -0
- package/docs/examples/projects/update-auth-password-history.md +2 -0
- package/docs/examples/projects/update-auth-sessions-limit.md +2 -0
- package/docs/examples/projects/update-auth-status.md +2 -0
- package/docs/examples/projects/update-dev-key.md +2 -0
- package/docs/examples/projects/update-email-template.md +2 -0
- package/docs/examples/projects/update-key.md +2 -0
- package/docs/examples/projects/update-labels.md +2 -0
- package/docs/examples/projects/update-memberships-privacy.md +2 -0
- package/docs/examples/projects/update-mock-numbers.md +2 -0
- package/docs/examples/projects/update-o-auth-2.md +2 -0
- package/docs/examples/projects/update-personal-data-check.md +2 -0
- package/docs/examples/projects/update-platform.md +2 -0
- package/docs/examples/projects/update-service-status-all.md +2 -0
- package/docs/examples/projects/update-service-status.md +2 -0
- package/docs/examples/projects/update-session-alerts.md +2 -0
- package/docs/examples/projects/update-session-invalidation.md +2 -0
- package/docs/examples/projects/update-sms-template.md +2 -0
- package/docs/examples/projects/update-smtp.md +2 -0
- package/docs/examples/projects/update-team.md +2 -0
- package/docs/examples/projects/update-webhook-signature.md +2 -0
- package/docs/examples/projects/update-webhook.md +2 -0
- package/docs/examples/projects/update.md +2 -0
- package/docs/examples/proxy/create-api-rule.md +2 -0
- package/docs/examples/proxy/create-function-rule.md +2 -0
- package/docs/examples/proxy/create-redirect-rule.md +2 -0
- package/docs/examples/proxy/create-site-rule.md +2 -0
- package/docs/examples/proxy/delete-rule.md +2 -0
- package/docs/examples/proxy/get-rule.md +2 -0
- package/docs/examples/proxy/list-rules.md +2 -0
- package/docs/examples/proxy/update-rule-verification.md +2 -0
- package/docs/examples/sites/create-deployment.md +2 -0
- package/docs/examples/sites/create-duplicate-deployment.md +2 -0
- package/docs/examples/sites/create-template-deployment.md +2 -0
- package/docs/examples/sites/create-variable.md +2 -0
- package/docs/examples/sites/create-vcs-deployment.md +2 -0
- package/docs/examples/sites/create.md +2 -0
- package/docs/examples/sites/delete-deployment.md +2 -0
- package/docs/examples/sites/delete-log.md +2 -0
- package/docs/examples/sites/delete-variable.md +2 -0
- package/docs/examples/sites/delete.md +2 -0
- package/docs/examples/sites/get-deployment-download.md +2 -0
- package/docs/examples/sites/get-deployment.md +2 -0
- package/docs/examples/sites/get-log.md +2 -0
- package/docs/examples/sites/get-template.md +2 -0
- package/docs/examples/sites/get-usage.md +2 -0
- package/docs/examples/sites/get-variable.md +2 -0
- package/docs/examples/sites/get.md +2 -0
- package/docs/examples/sites/list-deployments.md +2 -0
- package/docs/examples/sites/list-frameworks.md +2 -0
- package/docs/examples/sites/list-logs.md +2 -0
- package/docs/examples/sites/list-specifications.md +2 -0
- package/docs/examples/sites/list-templates.md +2 -0
- package/docs/examples/sites/list-usage.md +2 -0
- package/docs/examples/sites/list-variables.md +2 -0
- package/docs/examples/sites/list.md +2 -0
- package/docs/examples/sites/update-deployment-status.md +2 -0
- package/docs/examples/sites/update-site-deployment.md +2 -0
- package/docs/examples/sites/update-variable.md +2 -0
- package/docs/examples/sites/update.md +2 -0
- package/docs/examples/storage/create-bucket.md +2 -0
- package/docs/examples/storage/create-file.md +2 -0
- package/docs/examples/storage/delete-bucket.md +2 -0
- package/docs/examples/storage/delete-file.md +2 -0
- package/docs/examples/storage/get-bucket-usage.md +2 -0
- package/docs/examples/storage/get-bucket.md +2 -0
- package/docs/examples/storage/get-file-download.md +2 -0
- package/docs/examples/storage/get-file-preview.md +2 -0
- package/docs/examples/storage/get-file-view.md +2 -0
- package/docs/examples/storage/get-file.md +2 -0
- package/docs/examples/storage/get-usage.md +2 -0
- package/docs/examples/storage/list-buckets.md +2 -0
- package/docs/examples/storage/list-files.md +2 -0
- package/docs/examples/storage/update-bucket.md +2 -0
- package/docs/examples/storage/update-file.md +2 -0
- package/docs/examples/tablesdb/create-boolean-column.md +2 -0
- package/docs/examples/tablesdb/create-datetime-column.md +2 -0
- package/docs/examples/tablesdb/create-email-column.md +2 -0
- package/docs/examples/tablesdb/create-enum-column.md +2 -0
- package/docs/examples/tablesdb/create-float-column.md +2 -0
- package/docs/examples/tablesdb/create-index.md +2 -0
- package/docs/examples/tablesdb/create-integer-column.md +2 -0
- package/docs/examples/tablesdb/create-ip-column.md +2 -0
- package/docs/examples/tablesdb/create-line-column.md +2 -0
- package/docs/examples/tablesdb/create-longtext-column.md +7 -0
- package/docs/examples/tablesdb/create-mediumtext-column.md +7 -0
- package/docs/examples/tablesdb/create-operations.md +2 -0
- package/docs/examples/tablesdb/create-point-column.md +2 -0
- package/docs/examples/tablesdb/create-polygon-column.md +2 -0
- package/docs/examples/tablesdb/create-relationship-column.md +2 -0
- package/docs/examples/tablesdb/create-row.md +2 -0
- package/docs/examples/tablesdb/create-rows.md +2 -0
- package/docs/examples/tablesdb/create-string-column.md +2 -0
- package/docs/examples/tablesdb/create-table.md +2 -0
- package/docs/examples/tablesdb/create-text-column.md +7 -0
- package/docs/examples/tablesdb/create-transaction.md +2 -0
- package/docs/examples/tablesdb/create-url-column.md +2 -0
- package/docs/examples/tablesdb/create-varchar-column.md +8 -0
- package/docs/examples/tablesdb/create.md +2 -0
- package/docs/examples/tablesdb/decrement-row-column.md +2 -0
- package/docs/examples/tablesdb/delete-column.md +2 -0
- package/docs/examples/tablesdb/delete-index.md +2 -0
- package/docs/examples/tablesdb/delete-row.md +2 -0
- package/docs/examples/tablesdb/delete-rows.md +2 -0
- package/docs/examples/tablesdb/delete-table.md +2 -0
- package/docs/examples/tablesdb/delete-transaction.md +2 -0
- package/docs/examples/tablesdb/delete.md +2 -0
- package/docs/examples/tablesdb/get-column.md +2 -0
- package/docs/examples/tablesdb/get-index.md +2 -0
- package/docs/examples/tablesdb/get-row.md +2 -0
- package/docs/examples/tablesdb/get-table-usage.md +2 -0
- package/docs/examples/tablesdb/get-table.md +2 -0
- package/docs/examples/tablesdb/get-transaction.md +2 -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 +2 -0
- package/docs/examples/tablesdb/list-columns.md +2 -0
- package/docs/examples/tablesdb/list-indexes.md +2 -0
- package/docs/examples/tablesdb/list-row-logs.md +2 -0
- package/docs/examples/tablesdb/list-rows.md +2 -0
- package/docs/examples/tablesdb/list-table-logs.md +2 -0
- package/docs/examples/tablesdb/list-tables.md +2 -0
- package/docs/examples/tablesdb/list-transactions.md +2 -0
- package/docs/examples/tablesdb/list-usage.md +2 -0
- package/docs/examples/tablesdb/list.md +2 -0
- package/docs/examples/tablesdb/update-boolean-column.md +2 -0
- package/docs/examples/tablesdb/update-datetime-column.md +2 -0
- package/docs/examples/tablesdb/update-email-column.md +2 -0
- package/docs/examples/tablesdb/update-enum-column.md +2 -0
- package/docs/examples/tablesdb/update-float-column.md +2 -0
- package/docs/examples/tablesdb/update-integer-column.md +2 -0
- package/docs/examples/tablesdb/update-ip-column.md +2 -0
- package/docs/examples/tablesdb/update-line-column.md +2 -0
- package/docs/examples/tablesdb/update-longtext-column.md +8 -0
- package/docs/examples/tablesdb/update-mediumtext-column.md +8 -0
- package/docs/examples/tablesdb/update-point-column.md +2 -0
- package/docs/examples/tablesdb/update-polygon-column.md +2 -0
- package/docs/examples/tablesdb/update-relationship-column.md +2 -0
- package/docs/examples/tablesdb/update-row.md +2 -0
- package/docs/examples/tablesdb/update-rows.md +2 -0
- package/docs/examples/tablesdb/update-string-column.md +2 -0
- package/docs/examples/tablesdb/update-table.md +3 -2
- package/docs/examples/tablesdb/update-text-column.md +8 -0
- package/docs/examples/tablesdb/update-transaction.md +2 -0
- package/docs/examples/tablesdb/update-url-column.md +2 -0
- package/docs/examples/tablesdb/update-varchar-column.md +8 -0
- package/docs/examples/tablesdb/update.md +3 -2
- package/docs/examples/tablesdb/upsert-row.md +2 -0
- package/docs/examples/tablesdb/upsert-rows.md +2 -0
- package/docs/examples/teams/create-membership.md +2 -0
- package/docs/examples/teams/create.md +2 -0
- package/docs/examples/teams/delete-membership.md +2 -0
- package/docs/examples/teams/delete.md +2 -0
- package/docs/examples/teams/get-membership.md +2 -0
- package/docs/examples/teams/get-prefs.md +2 -0
- package/docs/examples/teams/get.md +2 -0
- package/docs/examples/teams/list-logs.md +2 -0
- package/docs/examples/teams/list-memberships.md +2 -0
- package/docs/examples/teams/list.md +2 -0
- package/docs/examples/teams/update-membership-status.md +2 -0
- package/docs/examples/teams/update-membership.md +2 -0
- package/docs/examples/teams/update-name.md +2 -0
- package/docs/examples/teams/update-prefs.md +2 -0
- package/docs/examples/tokens/create-file-token.md +2 -0
- package/docs/examples/tokens/delete.md +2 -0
- package/docs/examples/tokens/get.md +2 -0
- package/docs/examples/tokens/list.md +2 -0
- package/docs/examples/tokens/update.md +2 -0
- package/docs/examples/users/create-argon-2-user.md +2 -0
- package/docs/examples/users/create-bcrypt-user.md +2 -0
- package/docs/examples/users/create-jwt.md +2 -0
- package/docs/examples/users/create-md-5-user.md +2 -0
- package/docs/examples/users/create-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/create-ph-pass-user.md +2 -0
- package/docs/examples/users/create-scrypt-modified-user.md +2 -0
- package/docs/examples/users/create-scrypt-user.md +2 -0
- package/docs/examples/users/create-session.md +2 -0
- package/docs/examples/users/create-sha-user.md +2 -0
- package/docs/examples/users/create-target.md +2 -0
- package/docs/examples/users/create-token.md +2 -0
- package/docs/examples/users/create.md +2 -0
- package/docs/examples/users/delete-identity.md +2 -0
- package/docs/examples/users/delete-mfa-authenticator.md +2 -0
- package/docs/examples/users/delete-session.md +2 -0
- package/docs/examples/users/delete-sessions.md +2 -0
- package/docs/examples/users/delete-target.md +2 -0
- package/docs/examples/users/delete.md +2 -0
- package/docs/examples/users/get-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/get-prefs.md +2 -0
- package/docs/examples/users/get-target.md +2 -0
- package/docs/examples/users/get-usage.md +2 -0
- package/docs/examples/users/get.md +2 -0
- package/docs/examples/users/list-identities.md +2 -0
- package/docs/examples/users/list-logs.md +2 -0
- package/docs/examples/users/list-memberships.md +2 -0
- package/docs/examples/users/list-mfa-factors.md +2 -0
- package/docs/examples/users/list-sessions.md +2 -0
- package/docs/examples/users/list-targets.md +2 -0
- package/docs/examples/users/list.md +2 -0
- package/docs/examples/users/update-email-verification.md +2 -0
- package/docs/examples/users/update-email.md +2 -0
- package/docs/examples/users/update-labels.md +2 -0
- package/docs/examples/users/update-mfa-recovery-codes.md +2 -0
- package/docs/examples/users/update-mfa.md +2 -0
- package/docs/examples/users/update-name.md +2 -0
- package/docs/examples/users/update-password.md +2 -0
- package/docs/examples/users/update-phone-verification.md +2 -0
- package/docs/examples/users/update-phone.md +2 -0
- package/docs/examples/users/update-prefs.md +2 -0
- package/docs/examples/users/update-status.md +2 -0
- package/docs/examples/users/update-target.md +2 -0
- package/docs/examples/vcs/create-repository-detection.md +2 -0
- package/docs/examples/vcs/create-repository.md +2 -0
- package/docs/examples/vcs/delete-installation.md +2 -0
- package/docs/examples/vcs/get-installation.md +2 -0
- package/docs/examples/vcs/get-repository-contents.md +2 -0
- package/docs/examples/vcs/get-repository.md +2 -0
- package/docs/examples/vcs/list-installations.md +2 -0
- package/docs/examples/vcs/list-repositories.md +2 -0
- package/docs/examples/vcs/list-repository-branches.md +2 -0
- package/docs/examples/vcs/update-external-deployments.md +2 -0
- package/install.ps1 +2 -2
- package/install.sh +1 -1
- package/lib/commands/config-validations.ts +16 -5
- package/lib/commands/generators/typescript/databases.ts +24 -6
- package/lib/commands/generic.ts +1 -2
- package/lib/commands/init.ts +10 -8
- package/lib/commands/pull.ts +7 -0
- package/lib/commands/push.ts +2 -1
- package/lib/commands/run.ts +2 -1
- package/lib/commands/services/account.ts +7 -12
- package/lib/commands/services/console.ts +2 -5
- package/lib/commands/services/databases.ts +167 -15
- package/lib/commands/services/functions.ts +9 -17
- package/lib/commands/services/health.ts +2 -5
- package/lib/commands/services/messaging.ts +5 -9
- package/lib/commands/services/project.ts +2 -5
- package/lib/commands/services/projects.ts +15 -28
- package/lib/commands/services/proxy.ts +2 -6
- package/lib/commands/services/sites.ts +8 -17
- package/lib/commands/services/storage.ts +6 -12
- package/lib/commands/services/tables-db.ts +167 -15
- package/lib/commands/services/users.ts +5 -11
- package/lib/commands/services/vcs.ts +3 -6
- package/lib/constants.ts +1 -1
- package/lib/emulation/utils.ts +2 -2
- package/lib/utils.ts +1 -2
- package/package.json +2 -2
- package/scoop/appwrite.config.json +3 -3
|
@@ -9,15 +9,7 @@ import {
|
|
|
9
9
|
parseBool,
|
|
10
10
|
parseInteger,
|
|
11
11
|
} from "../../parser.js";
|
|
12
|
-
import {
|
|
13
|
-
Functions,
|
|
14
|
-
Runtime,
|
|
15
|
-
UsageRange,
|
|
16
|
-
TemplateReferenceType,
|
|
17
|
-
VCSReferenceType,
|
|
18
|
-
DeploymentDownloadType,
|
|
19
|
-
ExecutionMethod,
|
|
20
|
-
} from "@appwrite.io/console";
|
|
12
|
+
import { Functions } from "@appwrite.io/console";
|
|
21
13
|
|
|
22
14
|
let functionsClient: Functions | null = null;
|
|
23
15
|
|
|
@@ -92,7 +84,7 @@ functions
|
|
|
92
84
|
.action(
|
|
93
85
|
actionRunner(
|
|
94
86
|
async ({ functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) =>
|
|
95
|
-
parse(await (await getFunctionsClient()).create(functionId, name, runtime
|
|
87
|
+
parse(await (await getFunctionsClient()).create(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification)),
|
|
96
88
|
),
|
|
97
89
|
);
|
|
98
90
|
|
|
@@ -152,7 +144,7 @@ functions
|
|
|
152
144
|
.action(
|
|
153
145
|
actionRunner(
|
|
154
146
|
async ({ range }) =>
|
|
155
|
-
parse(await (await getFunctionsClient()).listUsage(range
|
|
147
|
+
parse(await (await getFunctionsClient()).listUsage(range)),
|
|
156
148
|
),
|
|
157
149
|
);
|
|
158
150
|
|
|
@@ -206,7 +198,7 @@ functions
|
|
|
206
198
|
.action(
|
|
207
199
|
actionRunner(
|
|
208
200
|
async ({ functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) =>
|
|
209
|
-
parse(await (await getFunctionsClient()).update(functionId, name, runtime
|
|
201
|
+
parse(await (await getFunctionsClient()).update(functionId, name, runtime, execute, events, schedule, timeout, enabled, logging, entrypoint, commands, scopes, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification)),
|
|
210
202
|
),
|
|
211
203
|
);
|
|
212
204
|
|
|
@@ -304,7 +296,7 @@ Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/p
|
|
|
304
296
|
.action(
|
|
305
297
|
actionRunner(
|
|
306
298
|
async ({ functionId, repository, owner, rootDirectory, type, reference, activate }) =>
|
|
307
|
-
parse(await (await getFunctionsClient()).createTemplateDeployment(functionId, repository, owner, rootDirectory, type
|
|
299
|
+
parse(await (await getFunctionsClient()).createTemplateDeployment(functionId, repository, owner, rootDirectory, type, reference, activate)),
|
|
308
300
|
),
|
|
309
301
|
);
|
|
310
302
|
|
|
@@ -325,7 +317,7 @@ This endpoint lets you create deployment from a branch, commit, or a tag.`)
|
|
|
325
317
|
.action(
|
|
326
318
|
actionRunner(
|
|
327
319
|
async ({ functionId, type, reference, activate }) =>
|
|
328
|
-
parse(await (await getFunctionsClient()).createVcsDeployment(functionId, type
|
|
320
|
+
parse(await (await getFunctionsClient()).createVcsDeployment(functionId, type, reference, activate)),
|
|
329
321
|
),
|
|
330
322
|
);
|
|
331
323
|
|
|
@@ -363,7 +355,7 @@ functions
|
|
|
363
355
|
.action(
|
|
364
356
|
actionRunner(
|
|
365
357
|
async ({ functionId, deploymentId, type, destination }) => {
|
|
366
|
-
const url = await (await getFunctionsClient()).getDeploymentDownload(functionId, deploymentId, type
|
|
358
|
+
const url = await (await getFunctionsClient()).getDeploymentDownload(functionId, deploymentId, type);
|
|
367
359
|
const response = await fetch(url);
|
|
368
360
|
const buffer = Buffer.from(await response.arrayBuffer());
|
|
369
361
|
fs.writeFileSync(destination, buffer);
|
|
@@ -420,7 +412,7 @@ functions
|
|
|
420
412
|
.action(
|
|
421
413
|
actionRunner(
|
|
422
414
|
async ({ functionId, body, async, path, method, headers, scheduledAt }) =>
|
|
423
|
-
parse(await (await getFunctionsClient()).createExecution(functionId, body, async, path, method
|
|
415
|
+
parse(await (await getFunctionsClient()).createExecution(functionId, body, async, path, method, JSON.parse(headers), scheduledAt)),
|
|
424
416
|
),
|
|
425
417
|
);
|
|
426
418
|
|
|
@@ -456,7 +448,7 @@ functions
|
|
|
456
448
|
.action(
|
|
457
449
|
actionRunner(
|
|
458
450
|
async ({ functionId, range }) =>
|
|
459
|
-
parse(await (await getFunctionsClient()).getUsage(functionId, range
|
|
451
|
+
parse(await (await getFunctionsClient()).getUsage(functionId, range)),
|
|
460
452
|
),
|
|
461
453
|
);
|
|
462
454
|
|
|
@@ -8,10 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Health,
|
|
13
|
-
Name,
|
|
14
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Health } from "@appwrite.io/console";
|
|
15
12
|
|
|
16
13
|
let healthClient: Health | null = null;
|
|
17
14
|
|
|
@@ -150,7 +147,7 @@ health
|
|
|
150
147
|
.action(
|
|
151
148
|
actionRunner(
|
|
152
149
|
async ({ name, threshold }) =>
|
|
153
|
-
parse(await (await getHealthClient()).getFailedJobs(name
|
|
150
|
+
parse(await (await getHealthClient()).getFailedJobs(name, threshold)),
|
|
154
151
|
),
|
|
155
152
|
);
|
|
156
153
|
|
|
@@ -8,11 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Messaging,
|
|
13
|
-
MessagePriority,
|
|
14
|
-
SmtpEncryption,
|
|
15
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Messaging } from "@appwrite.io/console";
|
|
16
12
|
|
|
17
13
|
let messagingClient: Messaging | null = null;
|
|
18
14
|
|
|
@@ -153,7 +149,7 @@ messaging
|
|
|
153
149
|
.action(
|
|
154
150
|
actionRunner(
|
|
155
151
|
async ({ messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority }) =>
|
|
156
|
-
parse(await (await getMessagingClient()).createPush(messageId, title, body, topics, users, targets, JSON.parse(data), action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority
|
|
152
|
+
parse(await (await getMessagingClient()).createPush(messageId, title, body, topics, users, targets, JSON.parse(data), action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority)),
|
|
157
153
|
),
|
|
158
154
|
);
|
|
159
155
|
|
|
@@ -198,7 +194,7 @@ messaging
|
|
|
198
194
|
.action(
|
|
199
195
|
actionRunner(
|
|
200
196
|
async ({ messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority }) =>
|
|
201
|
-
parse(await (await getMessagingClient()).updatePush(messageId, topics, users, targets, title, body, JSON.parse(data), action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority
|
|
197
|
+
parse(await (await getMessagingClient()).updatePush(messageId, topics, users, targets, title, body, JSON.parse(data), action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority)),
|
|
202
198
|
),
|
|
203
199
|
);
|
|
204
200
|
|
|
@@ -642,7 +638,7 @@ messaging
|
|
|
642
638
|
.action(
|
|
643
639
|
actionRunner(
|
|
644
640
|
async ({ providerId, name, host, port, username, password, encryption, autoTls, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled }) =>
|
|
645
|
-
parse(await (await getMessagingClient()).createSmtpProvider(providerId, name, host, port, username, password, encryption
|
|
641
|
+
parse(await (await getMessagingClient()).createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTls, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled)),
|
|
646
642
|
),
|
|
647
643
|
);
|
|
648
644
|
|
|
@@ -676,7 +672,7 @@ messaging
|
|
|
676
672
|
.action(
|
|
677
673
|
actionRunner(
|
|
678
674
|
async ({ providerId, name, host, port, username, password, encryption, autoTls, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled }) =>
|
|
679
|
-
parse(await (await getMessagingClient()).updateSmtpProvider(providerId, name, host, port, username, password, encryption
|
|
675
|
+
parse(await (await getMessagingClient()).updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTls, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled)),
|
|
680
676
|
),
|
|
681
677
|
);
|
|
682
678
|
|
|
@@ -8,10 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Project,
|
|
13
|
-
ProjectUsageRange,
|
|
14
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Project } from "@appwrite.io/console";
|
|
15
12
|
|
|
16
13
|
let projectClient: Project | null = null;
|
|
17
14
|
|
|
@@ -38,7 +35,7 @@ project
|
|
|
38
35
|
.action(
|
|
39
36
|
actionRunner(
|
|
40
37
|
async ({ startDate, endDate, period }) =>
|
|
41
|
-
parse(await (await getProjectClient()).getUsage(startDate, endDate, period
|
|
38
|
+
parse(await (await getProjectClient()).getUsage(startDate, endDate, period)),
|
|
42
39
|
),
|
|
43
40
|
);
|
|
44
41
|
|
|
@@ -8,20 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Projects,
|
|
13
|
-
Region,
|
|
14
|
-
Api,
|
|
15
|
-
AuthMethod,
|
|
16
|
-
OAuthProvider,
|
|
17
|
-
PlatformType,
|
|
18
|
-
ApiService,
|
|
19
|
-
SMTPSecure,
|
|
20
|
-
EmailTemplateType,
|
|
21
|
-
EmailTemplateLocale,
|
|
22
|
-
SmsTemplateType,
|
|
23
|
-
SmsTemplateLocale,
|
|
24
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Projects } from "@appwrite.io/console";
|
|
25
12
|
|
|
26
13
|
let projectsClient: Projects | null = null;
|
|
27
14
|
|
|
@@ -76,7 +63,7 @@ projects
|
|
|
76
63
|
.action(
|
|
77
64
|
actionRunner(
|
|
78
65
|
async ({ projectId, name, teamId, region, description, logo, url, legalName, legalCountry, legalState, legalCity, legalAddress, legalTaxId }) =>
|
|
79
|
-
parse(await (await getProjectsClient()).create(projectId, name, teamId, region
|
|
66
|
+
parse(await (await getProjectsClient()).create(projectId, name, teamId, region, description, logo, url, legalName, legalCountry, legalState, legalCity, legalAddress, legalTaxId)),
|
|
80
67
|
),
|
|
81
68
|
);
|
|
82
69
|
|
|
@@ -132,7 +119,7 @@ projects
|
|
|
132
119
|
.action(
|
|
133
120
|
actionRunner(
|
|
134
121
|
async ({ projectId, api, status }) =>
|
|
135
|
-
parse(await (await getProjectsClient()).updateApiStatus(projectId, api
|
|
122
|
+
parse(await (await getProjectsClient()).updateApiStatus(projectId, api, status)),
|
|
136
123
|
),
|
|
137
124
|
);
|
|
138
125
|
|
|
@@ -279,7 +266,7 @@ projects
|
|
|
279
266
|
.action(
|
|
280
267
|
actionRunner(
|
|
281
268
|
async ({ projectId, method, status }) =>
|
|
282
|
-
parse(await (await getProjectsClient()).updateAuthStatus(projectId, method
|
|
269
|
+
parse(await (await getProjectsClient()).updateAuthStatus(projectId, method, status)),
|
|
283
270
|
),
|
|
284
271
|
);
|
|
285
272
|
|
|
@@ -457,7 +444,7 @@ projects
|
|
|
457
444
|
.action(
|
|
458
445
|
actionRunner(
|
|
459
446
|
async ({ projectId, provider, appId, secret, enabled }) =>
|
|
460
|
-
parse(await (await getProjectsClient()).updateOAuth2(projectId, provider
|
|
447
|
+
parse(await (await getProjectsClient()).updateOAuth2(projectId, provider, appId, secret, enabled)),
|
|
461
448
|
),
|
|
462
449
|
);
|
|
463
450
|
|
|
@@ -490,7 +477,7 @@ projects
|
|
|
490
477
|
.action(
|
|
491
478
|
actionRunner(
|
|
492
479
|
async ({ projectId, type, name, key, store, hostname }) =>
|
|
493
|
-
parse(await (await getProjectsClient()).createPlatform(projectId, type
|
|
480
|
+
parse(await (await getProjectsClient()).createPlatform(projectId, type, name, key, store, hostname)),
|
|
494
481
|
),
|
|
495
482
|
);
|
|
496
483
|
|
|
@@ -543,7 +530,7 @@ projects
|
|
|
543
530
|
.action(
|
|
544
531
|
actionRunner(
|
|
545
532
|
async ({ projectId, service, status }) =>
|
|
546
|
-
parse(await (await getProjectsClient()).updateServiceStatus(projectId, service
|
|
533
|
+
parse(await (await getProjectsClient()).updateServiceStatus(projectId, service, status)),
|
|
547
534
|
),
|
|
548
535
|
);
|
|
549
536
|
|
|
@@ -575,7 +562,7 @@ projects
|
|
|
575
562
|
.action(
|
|
576
563
|
actionRunner(
|
|
577
564
|
async ({ projectId, enabled, senderName, senderEmail, replyTo, host, port, username, password, secure }) =>
|
|
578
|
-
parse(await (await getProjectsClient()).updateSmtp(projectId, enabled, senderName, senderEmail, replyTo, host, port, username, password, secure
|
|
565
|
+
parse(await (await getProjectsClient()).updateSmtp(projectId, enabled, senderName, senderEmail, replyTo, host, port, username, password, secure)),
|
|
579
566
|
),
|
|
580
567
|
);
|
|
581
568
|
|
|
@@ -595,7 +582,7 @@ projects
|
|
|
595
582
|
.action(
|
|
596
583
|
actionRunner(
|
|
597
584
|
async ({ projectId, emails, senderName, senderEmail, host, replyTo, port, username, password, secure }) =>
|
|
598
|
-
parse(await (await getProjectsClient()).createSmtpTest(projectId, emails, senderName, senderEmail, host, replyTo, port, username, password, secure
|
|
585
|
+
parse(await (await getProjectsClient()).createSmtpTest(projectId, emails, senderName, senderEmail, host, replyTo, port, username, password, secure)),
|
|
599
586
|
),
|
|
600
587
|
);
|
|
601
588
|
|
|
@@ -620,7 +607,7 @@ projects
|
|
|
620
607
|
.action(
|
|
621
608
|
actionRunner(
|
|
622
609
|
async ({ projectId, type, locale }) =>
|
|
623
|
-
parse(await (await getProjectsClient()).getEmailTemplate(projectId, type
|
|
610
|
+
parse(await (await getProjectsClient()).getEmailTemplate(projectId, type, locale)),
|
|
624
611
|
),
|
|
625
612
|
);
|
|
626
613
|
|
|
@@ -638,7 +625,7 @@ projects
|
|
|
638
625
|
.action(
|
|
639
626
|
actionRunner(
|
|
640
627
|
async ({ projectId, type, locale, subject, message, senderName, senderEmail, replyTo }) =>
|
|
641
|
-
parse(await (await getProjectsClient()).updateEmailTemplate(projectId, type
|
|
628
|
+
parse(await (await getProjectsClient()).updateEmailTemplate(projectId, type, locale, subject, message, senderName, senderEmail, replyTo)),
|
|
642
629
|
),
|
|
643
630
|
);
|
|
644
631
|
|
|
@@ -651,7 +638,7 @@ projects
|
|
|
651
638
|
.action(
|
|
652
639
|
actionRunner(
|
|
653
640
|
async ({ projectId, type, locale }) =>
|
|
654
|
-
parse(await (await getProjectsClient()).deleteEmailTemplate(projectId, type
|
|
641
|
+
parse(await (await getProjectsClient()).deleteEmailTemplate(projectId, type, locale)),
|
|
655
642
|
),
|
|
656
643
|
);
|
|
657
644
|
|
|
@@ -664,7 +651,7 @@ projects
|
|
|
664
651
|
.action(
|
|
665
652
|
actionRunner(
|
|
666
653
|
async ({ projectId, type, locale }) =>
|
|
667
|
-
parse(await (await getProjectsClient()).getSmsTemplate(projectId, type
|
|
654
|
+
parse(await (await getProjectsClient()).getSmsTemplate(projectId, type, locale)),
|
|
668
655
|
),
|
|
669
656
|
);
|
|
670
657
|
|
|
@@ -678,7 +665,7 @@ projects
|
|
|
678
665
|
.action(
|
|
679
666
|
actionRunner(
|
|
680
667
|
async ({ projectId, type, locale, message }) =>
|
|
681
|
-
parse(await (await getProjectsClient()).updateSmsTemplate(projectId, type
|
|
668
|
+
parse(await (await getProjectsClient()).updateSmsTemplate(projectId, type, locale, message)),
|
|
682
669
|
),
|
|
683
670
|
);
|
|
684
671
|
|
|
@@ -691,7 +678,7 @@ projects
|
|
|
691
678
|
.action(
|
|
692
679
|
actionRunner(
|
|
693
680
|
async ({ projectId, type, locale }) =>
|
|
694
|
-
parse(await (await getProjectsClient()).deleteSmsTemplate(projectId, type
|
|
681
|
+
parse(await (await getProjectsClient()).deleteSmsTemplate(projectId, type, locale)),
|
|
695
682
|
),
|
|
696
683
|
);
|
|
697
684
|
|
|
@@ -8,11 +8,7 @@ import {
|
|
|
8
8
|
parseBool,
|
|
9
9
|
parseInteger,
|
|
10
10
|
} from "../../parser.js";
|
|
11
|
-
import {
|
|
12
|
-
Proxy,
|
|
13
|
-
StatusCode,
|
|
14
|
-
ProxyResourceType,
|
|
15
|
-
} from "@appwrite.io/console";
|
|
11
|
+
import { Proxy } from "@appwrite.io/console";
|
|
16
12
|
|
|
17
13
|
let proxyClient: Proxy | null = null;
|
|
18
14
|
|
|
@@ -83,7 +79,7 @@ proxy
|
|
|
83
79
|
.action(
|
|
84
80
|
actionRunner(
|
|
85
81
|
async ({ domain, url, statusCode, resourceId, resourceType }) =>
|
|
86
|
-
parse(await (await getProxyClient()).createRedirectRule(domain, url, statusCode
|
|
82
|
+
parse(await (await getProxyClient()).createRedirectRule(domain, url, statusCode, resourceId, resourceType)),
|
|
87
83
|
),
|
|
88
84
|
);
|
|
89
85
|
|
|
@@ -9,16 +9,7 @@ import {
|
|
|
9
9
|
parseBool,
|
|
10
10
|
parseInteger,
|
|
11
11
|
} from "../../parser.js";
|
|
12
|
-
import {
|
|
13
|
-
Sites,
|
|
14
|
-
Framework,
|
|
15
|
-
BuildRuntime,
|
|
16
|
-
Adapter,
|
|
17
|
-
UsageRange,
|
|
18
|
-
TemplateReferenceType,
|
|
19
|
-
VCSReferenceType,
|
|
20
|
-
DeploymentDownloadType,
|
|
21
|
-
} from "@appwrite.io/console";
|
|
12
|
+
import { Sites } from "@appwrite.io/console";
|
|
22
13
|
|
|
23
14
|
let sitesClient: Sites | null = null;
|
|
24
15
|
|
|
@@ -93,7 +84,7 @@ sites
|
|
|
93
84
|
.action(
|
|
94
85
|
actionRunner(
|
|
95
86
|
async ({ siteId, name, framework, buildRuntime, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, adapter, installationId, fallbackFile, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) =>
|
|
96
|
-
parse(await (await getSitesClient()).create(siteId, name, framework
|
|
87
|
+
parse(await (await getSitesClient()).create(siteId, name, framework, buildRuntime, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, adapter, installationId, fallbackFile, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification)),
|
|
97
88
|
),
|
|
98
89
|
);
|
|
99
90
|
|
|
@@ -147,7 +138,7 @@ sites
|
|
|
147
138
|
.action(
|
|
148
139
|
actionRunner(
|
|
149
140
|
async ({ range }) =>
|
|
150
|
-
parse(await (await getSitesClient()).listUsage(range
|
|
141
|
+
parse(await (await getSitesClient()).listUsage(range)),
|
|
151
142
|
),
|
|
152
143
|
);
|
|
153
144
|
|
|
@@ -201,7 +192,7 @@ sites
|
|
|
201
192
|
.action(
|
|
202
193
|
actionRunner(
|
|
203
194
|
async ({ siteId, name, framework, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, buildRuntime, adapter, fallbackFile, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification }) =>
|
|
204
|
-
parse(await (await getSitesClient()).update(siteId, name, framework
|
|
195
|
+
parse(await (await getSitesClient()).update(siteId, name, framework, enabled, logging, timeout, installCommand, buildCommand, outputDirectory, buildRuntime, adapter, fallbackFile, installationId, providerRepositoryId, providerBranch, providerSilentMode, providerRootDirectory, specification)),
|
|
205
196
|
),
|
|
206
197
|
);
|
|
207
198
|
|
|
@@ -295,7 +286,7 @@ Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/p
|
|
|
295
286
|
.action(
|
|
296
287
|
actionRunner(
|
|
297
288
|
async ({ siteId, repository, owner, rootDirectory, type, reference, activate }) =>
|
|
298
|
-
parse(await (await getSitesClient()).createTemplateDeployment(siteId, repository, owner, rootDirectory, type
|
|
289
|
+
parse(await (await getSitesClient()).createTemplateDeployment(siteId, repository, owner, rootDirectory, type, reference, activate)),
|
|
299
290
|
),
|
|
300
291
|
);
|
|
301
292
|
|
|
@@ -316,7 +307,7 @@ This endpoint lets you create deployment from a branch, commit, or a tag.`)
|
|
|
316
307
|
.action(
|
|
317
308
|
actionRunner(
|
|
318
309
|
async ({ siteId, type, reference, activate }) =>
|
|
319
|
-
parse(await (await getSitesClient()).createVcsDeployment(siteId, type
|
|
310
|
+
parse(await (await getSitesClient()).createVcsDeployment(siteId, type, reference, activate)),
|
|
320
311
|
),
|
|
321
312
|
);
|
|
322
313
|
|
|
@@ -354,7 +345,7 @@ sites
|
|
|
354
345
|
.action(
|
|
355
346
|
actionRunner(
|
|
356
347
|
async ({ siteId, deploymentId, type, destination }) => {
|
|
357
|
-
const url = await (await getSitesClient()).getDeploymentDownload(siteId, deploymentId, type
|
|
348
|
+
const url = await (await getSitesClient()).getDeploymentDownload(siteId, deploymentId, type);
|
|
358
349
|
const response = await fetch(url);
|
|
359
350
|
const buffer = Buffer.from(await response.arrayBuffer());
|
|
360
351
|
fs.writeFileSync(destination, buffer);
|
|
@@ -425,7 +416,7 @@ sites
|
|
|
425
416
|
.action(
|
|
426
417
|
actionRunner(
|
|
427
418
|
async ({ siteId, range }) =>
|
|
428
|
-
parse(await (await getSitesClient()).getUsage(siteId, range
|
|
419
|
+
parse(await (await getSitesClient()).getUsage(siteId, range)),
|
|
429
420
|
),
|
|
430
421
|
);
|
|
431
422
|
|
|
@@ -9,13 +9,7 @@ import {
|
|
|
9
9
|
parseBool,
|
|
10
10
|
parseInteger,
|
|
11
11
|
} from "../../parser.js";
|
|
12
|
-
import {
|
|
13
|
-
Storage,
|
|
14
|
-
Compression,
|
|
15
|
-
ImageGravity,
|
|
16
|
-
ImageFormat,
|
|
17
|
-
UsageRange,
|
|
18
|
-
} from "@appwrite.io/console";
|
|
12
|
+
import { Storage } from "@appwrite.io/console";
|
|
19
13
|
|
|
20
14
|
let storageClient: Storage | null = null;
|
|
21
15
|
|
|
@@ -93,7 +87,7 @@ storage
|
|
|
93
87
|
.action(
|
|
94
88
|
actionRunner(
|
|
95
89
|
async ({ bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus, transformations }) =>
|
|
96
|
-
parse(await (await getStorageClient()).createBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression
|
|
90
|
+
parse(await (await getStorageClient()).createBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus, transformations)),
|
|
97
91
|
),
|
|
98
92
|
);
|
|
99
93
|
|
|
@@ -150,7 +144,7 @@ storage
|
|
|
150
144
|
.action(
|
|
151
145
|
actionRunner(
|
|
152
146
|
async ({ bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus, transformations }) =>
|
|
153
|
-
parse(await (await getStorageClient()).updateBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression
|
|
147
|
+
parse(await (await getStorageClient()).updateBucket(bucketId, name, permissions, fileSecurity, enabled, maximumFileSize, allowedFileExtensions, compression, encryption, antivirus, transformations)),
|
|
154
148
|
),
|
|
155
149
|
);
|
|
156
150
|
|
|
@@ -283,7 +277,7 @@ storage
|
|
|
283
277
|
.action(
|
|
284
278
|
actionRunner(
|
|
285
279
|
async ({ bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output, token, destination }) => {
|
|
286
|
-
const url = await (await getStorageClient()).getFilePreview(bucketId, fileId, width, height, gravity
|
|
280
|
+
const url = await (await getStorageClient()).getFilePreview(bucketId, fileId, width, height, gravity, quality, borderWidth, borderColor, borderRadius, opacity, rotation, background, output, token);
|
|
287
281
|
const response = await fetch(url);
|
|
288
282
|
const buffer = Buffer.from(await response.arrayBuffer());
|
|
289
283
|
fs.writeFileSync(destination, buffer);
|
|
@@ -319,7 +313,7 @@ storage
|
|
|
319
313
|
.action(
|
|
320
314
|
actionRunner(
|
|
321
315
|
async ({ range }) =>
|
|
322
|
-
parse(await (await getStorageClient()).getUsage(range
|
|
316
|
+
parse(await (await getStorageClient()).getUsage(range)),
|
|
323
317
|
),
|
|
324
318
|
);
|
|
325
319
|
|
|
@@ -332,7 +326,7 @@ storage
|
|
|
332
326
|
.action(
|
|
333
327
|
actionRunner(
|
|
334
328
|
async ({ bucketId, range }) =>
|
|
335
|
-
parse(await (await getStorageClient()).getBucketUsage(bucketId, range
|
|
329
|
+
parse(await (await getStorageClient()).getBucketUsage(bucketId, range)),
|
|
336
330
|
),
|
|
337
331
|
);
|
|
338
332
|
|