@appwrite.io/console 1.5.2 → 1.7.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 +9 -1
- package/README.md +3 -3
- package/dist/cjs/sdk.js +11874 -11100
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +11872 -11101
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +11874 -11100
- package/docs/examples/account/create-anonymous-session.md +1 -1
- package/docs/examples/account/create-billing-address.md +1 -1
- package/docs/examples/account/create-email-password-session.md +1 -1
- package/docs/examples/account/create-email-token.md +1 -1
- package/docs/examples/account/create-j-w-t.md +1 -1
- package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
- package/docs/examples/account/create-mfa-authenticator.md +1 -1
- package/docs/examples/account/create-mfa-challenge.md +1 -1
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/create-o-auth2session.md +1 -1
- package/docs/examples/account/create-o-auth2token.md +1 -1
- package/docs/examples/account/create-payment-method.md +1 -1
- package/docs/examples/account/create-phone-token.md +1 -1
- package/docs/examples/account/create-phone-verification.md +1 -1
- package/docs/examples/account/create-push-target.md +1 -1
- package/docs/examples/account/create-recovery.md +1 -1
- package/docs/examples/account/create-session.md +1 -1
- package/docs/examples/account/create-verification.md +1 -1
- package/docs/examples/account/create.md +1 -1
- package/docs/examples/account/delete-billing-address.md +1 -1
- package/docs/examples/account/delete-identity.md +1 -1
- package/docs/examples/account/delete-mfa-authenticator.md +1 -1
- package/docs/examples/account/delete-payment-method.md +1 -1
- package/docs/examples/account/delete-push-target.md +1 -1
- package/docs/examples/account/delete-session.md +1 -1
- package/docs/examples/account/delete-sessions.md +1 -1
- package/docs/examples/account/delete.md +1 -1
- package/docs/examples/account/get-billing-address.md +1 -1
- package/docs/examples/account/get-coupon.md +1 -1
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-payment-method.md +1 -1
- package/docs/examples/account/get-prefs.md +1 -1
- package/docs/examples/account/get-session.md +1 -1
- package/docs/examples/account/get.md +1 -1
- package/docs/examples/account/list-billing-addresses.md +1 -1
- package/docs/examples/account/list-identities.md +1 -1
- package/docs/examples/account/list-invoices.md +1 -1
- package/docs/examples/account/list-logs.md +1 -1
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-payment-methods.md +1 -1
- package/docs/examples/account/list-sessions.md +1 -1
- package/docs/examples/account/update-billing-address.md +1 -1
- package/docs/examples/account/update-email.md +1 -1
- package/docs/examples/account/update-m-f-a.md +1 -1
- package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
- package/docs/examples/account/update-mfa-authenticator.md +1 -1
- package/docs/examples/account/update-mfa-challenge.md +1 -1
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/update-name.md +1 -1
- package/docs/examples/account/update-password.md +1 -1
- package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
- package/docs/examples/account/update-payment-method-provider.md +1 -1
- package/docs/examples/account/update-payment-method.md +1 -1
- package/docs/examples/account/update-phone-session.md +1 -1
- package/docs/examples/account/update-phone-verification.md +1 -1
- package/docs/examples/account/update-phone.md +1 -1
- package/docs/examples/account/update-prefs.md +1 -1
- package/docs/examples/account/update-push-target.md +1 -1
- package/docs/examples/account/update-recovery.md +1 -1
- package/docs/examples/account/update-session.md +1 -1
- package/docs/examples/account/update-status.md +1 -1
- package/docs/examples/account/update-verification.md +1 -1
- package/docs/examples/assistant/chat.md +1 -1
- package/docs/examples/avatars/get-browser.md +2 -2
- package/docs/examples/avatars/get-credit-card.md +2 -2
- package/docs/examples/avatars/get-favicon.md +1 -1
- package/docs/examples/avatars/get-flag.md +2 -2
- package/docs/examples/avatars/get-image.md +1 -1
- package/docs/examples/avatars/get-initials.md +1 -1
- package/docs/examples/avatars/get-q-r.md +1 -1
- package/docs/examples/backups/create-archive.md +1 -1
- package/docs/examples/backups/create-policy.md +1 -1
- package/docs/examples/backups/create-restoration.md +1 -1
- package/docs/examples/backups/delete-archive.md +1 -1
- package/docs/examples/backups/delete-policy.md +1 -1
- package/docs/examples/backups/get-archive.md +1 -1
- package/docs/examples/backups/get-policy.md +1 -1
- package/docs/examples/backups/get-restoration.md +1 -1
- package/docs/examples/backups/list-archives.md +1 -1
- package/docs/examples/backups/list-policies.md +1 -1
- package/docs/examples/backups/list-restorations.md +1 -1
- package/docs/examples/backups/update-policy.md +1 -1
- package/docs/examples/console/create-program-membership.md +1 -1
- package/docs/examples/console/create-source.md +1 -1
- package/docs/examples/console/get-campaign.md +1 -1
- package/docs/examples/console/get-coupon.md +1 -1
- package/docs/examples/console/get-resource.md +14 -0
- package/docs/examples/console/plans.md +1 -1
- package/docs/examples/console/regions.md +1 -1
- package/docs/examples/console/variables.md +1 -1
- package/docs/examples/databases/create-boolean-attribute.md +1 -1
- package/docs/examples/databases/create-collection.md +1 -1
- package/docs/examples/databases/create-datetime-attribute.md +1 -1
- package/docs/examples/databases/create-document.md +4 -2
- package/docs/examples/databases/create-documents.md +15 -0
- package/docs/examples/databases/create-email-attribute.md +1 -1
- package/docs/examples/databases/create-enum-attribute.md +1 -1
- package/docs/examples/databases/create-float-attribute.md +1 -1
- package/docs/examples/databases/create-index.md +3 -2
- package/docs/examples/databases/create-integer-attribute.md +1 -1
- package/docs/examples/databases/create-ip-attribute.md +1 -1
- package/docs/examples/databases/create-relationship-attribute.md +1 -1
- package/docs/examples/databases/create-string-attribute.md +1 -1
- package/docs/examples/databases/create-url-attribute.md +1 -1
- package/docs/examples/databases/create.md +1 -1
- package/docs/examples/databases/delete-attribute.md +1 -1
- package/docs/examples/databases/delete-collection.md +1 -1
- package/docs/examples/databases/delete-document.md +1 -1
- package/docs/examples/databases/delete-documents.md +15 -0
- package/docs/examples/databases/delete-index.md +1 -1
- package/docs/examples/databases/delete.md +1 -1
- package/docs/examples/databases/get-attribute.md +1 -1
- package/docs/examples/databases/get-collection-usage.md +1 -1
- package/docs/examples/databases/get-collection.md +1 -1
- package/docs/examples/databases/get-database-usage.md +1 -1
- package/docs/examples/databases/get-document.md +1 -1
- package/docs/examples/databases/get-index.md +1 -1
- package/docs/examples/databases/get-usage.md +1 -1
- package/docs/examples/databases/get.md +1 -1
- package/docs/examples/databases/list-attributes.md +1 -1
- package/docs/examples/databases/list-collection-logs.md +1 -1
- package/docs/examples/databases/list-collections.md +1 -1
- package/docs/examples/databases/list-document-logs.md +1 -1
- package/docs/examples/databases/list-documents.md +1 -1
- package/docs/examples/databases/list-indexes.md +1 -1
- package/docs/examples/databases/list-logs.md +1 -1
- package/docs/examples/databases/list.md +1 -1
- package/docs/examples/databases/update-boolean-attribute.md +1 -1
- package/docs/examples/databases/update-collection.md +1 -1
- package/docs/examples/databases/update-datetime-attribute.md +1 -1
- package/docs/examples/databases/update-document.md +1 -1
- package/docs/examples/databases/update-documents.md +16 -0
- package/docs/examples/databases/update-email-attribute.md +1 -1
- package/docs/examples/databases/update-enum-attribute.md +1 -1
- package/docs/examples/databases/update-float-attribute.md +1 -1
- package/docs/examples/databases/update-integer-attribute.md +1 -1
- package/docs/examples/databases/update-ip-attribute.md +1 -1
- package/docs/examples/databases/update-relationship-attribute.md +1 -1
- package/docs/examples/databases/update-string-attribute.md +1 -1
- package/docs/examples/databases/update-url-attribute.md +1 -1
- package/docs/examples/databases/update.md +1 -1
- package/docs/examples/databases/upsert-documents.md +15 -0
- package/docs/examples/domains/create-preset-google-workspace.md +13 -0
- package/docs/examples/domains/create-preset-i-cloud.md +13 -0
- package/docs/examples/domains/create-preset-mailgun.md +13 -0
- package/docs/examples/domains/create-preset-outlook.md +13 -0
- package/docs/examples/domains/create-preset-proton-mail.md +13 -0
- package/docs/examples/domains/create-preset-zoho.md +13 -0
- package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
- package/docs/examples/domains/create-record-a.md +17 -0
- package/docs/examples/domains/create-record-alias.md +17 -0
- package/docs/examples/domains/create-record-c-a-a.md +17 -0
- package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
- package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
- package/docs/examples/domains/create-record-m-x.md +18 -0
- package/docs/examples/domains/create-record-n-s.md +17 -0
- package/docs/examples/domains/create-record-s-r-v.md +20 -0
- package/docs/examples/domains/create-record-t-x-t.md +17 -0
- package/docs/examples/domains/create.md +14 -0
- package/docs/examples/domains/delete-record.md +14 -0
- package/docs/examples/domains/delete.md +13 -0
- package/docs/examples/domains/get-preset-google-workspace.md +13 -0
- package/docs/examples/domains/get-preset-i-cloud.md +13 -0
- package/docs/examples/domains/get-preset-mailgun.md +13 -0
- package/docs/examples/domains/get-preset-outlook.md +13 -0
- package/docs/examples/domains/get-preset-proton-mail.md +13 -0
- package/docs/examples/domains/get-preset-zoho.md +13 -0
- package/docs/examples/domains/get-record.md +14 -0
- package/docs/examples/domains/get-zone.md +13 -0
- package/docs/examples/domains/get.md +13 -0
- package/docs/examples/domains/list-records.md +14 -0
- package/docs/examples/domains/list.md +14 -0
- package/docs/examples/domains/update-nameservers.md +13 -0
- package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
- package/docs/examples/domains/update-record-a.md +18 -0
- package/docs/examples/domains/update-record-alias.md +18 -0
- package/docs/examples/domains/update-record-c-a-a.md +18 -0
- package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
- package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
- package/docs/examples/domains/update-record-m-x.md +19 -0
- package/docs/examples/domains/update-record-n-s.md +18 -0
- package/docs/examples/domains/update-record-s-r-v.md +21 -0
- package/docs/examples/domains/update-record-t-x-t.md +18 -0
- package/docs/examples/domains/update-team.md +14 -0
- package/docs/examples/domains/update-zone.md +14 -0
- package/docs/examples/functions/create-deployment.md +1 -1
- package/docs/examples/functions/create-duplicate-deployment.md +15 -0
- package/docs/examples/functions/create-execution.md +1 -1
- package/docs/examples/functions/create-template-deployment.md +18 -0
- package/docs/examples/functions/create-variable.md +3 -2
- package/docs/examples/functions/create-vcs-deployment.md +16 -0
- package/docs/examples/functions/create.md +3 -3
- package/docs/examples/functions/delete-deployment.md +1 -1
- package/docs/examples/functions/delete-execution.md +1 -1
- package/docs/examples/functions/delete-variable.md +1 -1
- package/docs/examples/functions/delete.md +1 -1
- package/docs/examples/functions/get-deployment-download.md +4 -3
- package/docs/examples/functions/get-deployment.md +1 -1
- package/docs/examples/functions/get-execution.md +1 -1
- package/docs/examples/functions/get-template.md +1 -1
- package/docs/examples/functions/get-usage.md +2 -1
- package/docs/examples/functions/get-variable.md +1 -1
- package/docs/examples/functions/get.md +1 -1
- package/docs/examples/functions/list-deployments.md +1 -1
- 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 -1
- package/docs/examples/functions/list-usage.md +13 -0
- package/docs/examples/functions/list-variables.md +1 -1
- package/docs/examples/functions/list.md +1 -1
- package/docs/examples/functions/update-deployment-status.md +14 -0
- package/docs/examples/functions/update-function-deployment.md +14 -0
- package/docs/examples/functions/update-variable.md +3 -2
- package/docs/examples/functions/update.md +1 -1
- 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 -1
- package/docs/examples/health/get-d-b.md +1 -1
- package/docs/examples/health/get-failed-jobs.md +1 -1
- package/docs/examples/health/get-pub-sub.md +1 -1
- package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
- package/docs/examples/health/get-queue-builds.md +1 -1
- package/docs/examples/health/get-queue-certificates.md +1 -1
- package/docs/examples/health/get-queue-databases.md +1 -1
- package/docs/examples/health/get-queue-deletes.md +1 -1
- package/docs/examples/health/get-queue-functions.md +1 -1
- package/docs/examples/health/get-queue-logs.md +1 -1
- package/docs/examples/health/get-queue-mails.md +1 -1
- package/docs/examples/health/get-queue-messaging.md +1 -1
- package/docs/examples/health/get-queue-migrations.md +1 -1
- package/docs/examples/health/get-queue-priority-builds.md +1 -1
- package/docs/examples/health/get-queue-region-manager.md +13 -0
- package/docs/examples/health/get-queue-stats-resources.md +1 -1
- package/docs/examples/health/get-queue-usage.md +1 -1
- package/docs/examples/health/get-queue-webhooks.md +1 -1
- 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/health/get.md +1 -1
- package/docs/examples/locale/get.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-e-u.md +1 -1
- 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 +1 -1
- package/docs/examples/messaging/create-email.md +1 -1
- package/docs/examples/messaging/create-fcm-provider.md +1 -1
- package/docs/examples/messaging/create-mailgun-provider.md +1 -1
- package/docs/examples/messaging/create-msg91provider.md +1 -1
- package/docs/examples/messaging/create-push.md +1 -1
- package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/create-sms.md +1 -1
- package/docs/examples/messaging/create-smtp-provider.md +1 -1
- package/docs/examples/messaging/create-subscriber.md +1 -1
- package/docs/examples/messaging/create-telesign-provider.md +1 -1
- package/docs/examples/messaging/create-textmagic-provider.md +1 -1
- package/docs/examples/messaging/create-topic.md +1 -1
- package/docs/examples/messaging/create-twilio-provider.md +1 -1
- package/docs/examples/messaging/create-vonage-provider.md +1 -1
- package/docs/examples/messaging/delete-provider.md +1 -1
- package/docs/examples/messaging/delete-subscriber.md +1 -1
- package/docs/examples/messaging/delete-topic.md +1 -1
- package/docs/examples/messaging/delete.md +1 -1
- package/docs/examples/messaging/get-message.md +1 -1
- package/docs/examples/messaging/get-provider.md +1 -1
- package/docs/examples/messaging/get-subscriber.md +1 -1
- package/docs/examples/messaging/get-topic.md +1 -1
- package/docs/examples/messaging/list-message-logs.md +1 -1
- package/docs/examples/messaging/list-messages.md +1 -1
- package/docs/examples/messaging/list-provider-logs.md +1 -1
- package/docs/examples/messaging/list-providers.md +1 -1
- package/docs/examples/messaging/list-subscriber-logs.md +1 -1
- package/docs/examples/messaging/list-subscribers.md +1 -1
- package/docs/examples/messaging/list-targets.md +1 -1
- package/docs/examples/messaging/list-topic-logs.md +1 -1
- package/docs/examples/messaging/list-topics.md +1 -1
- package/docs/examples/messaging/update-apns-provider.md +1 -1
- package/docs/examples/messaging/update-email.md +1 -1
- package/docs/examples/messaging/update-fcm-provider.md +1 -1
- package/docs/examples/messaging/update-mailgun-provider.md +1 -1
- package/docs/examples/messaging/update-msg91provider.md +1 -1
- package/docs/examples/messaging/update-push.md +1 -1
- package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
- package/docs/examples/messaging/update-sms.md +1 -1
- package/docs/examples/messaging/update-smtp-provider.md +1 -1
- package/docs/examples/messaging/update-telesign-provider.md +1 -1
- package/docs/examples/messaging/update-textmagic-provider.md +1 -1
- package/docs/examples/messaging/update-topic.md +1 -1
- package/docs/examples/messaging/update-twilio-provider.md +1 -1
- package/docs/examples/messaging/update-vonage-provider.md +1 -1
- package/docs/examples/migrations/create-appwrite-migration.md +1 -1
- package/docs/examples/migrations/create-csv-migration.md +15 -0
- package/docs/examples/migrations/create-firebase-migration.md +1 -1
- package/docs/examples/migrations/create-n-host-migration.md +1 -1
- package/docs/examples/migrations/create-supabase-migration.md +1 -1
- package/docs/examples/migrations/delete.md +1 -1
- package/docs/examples/migrations/get-appwrite-report.md +1 -1
- package/docs/examples/migrations/get-firebase-report.md +1 -1
- package/docs/examples/migrations/get-n-host-report.md +1 -1
- package/docs/examples/migrations/get-supabase-report.md +1 -1
- package/docs/examples/migrations/get.md +1 -1
- package/docs/examples/migrations/list.md +1 -1
- package/docs/examples/migrations/retry.md +1 -1
- package/docs/examples/organizations/add-credit.md +1 -1
- package/docs/examples/organizations/create-invoice-payment.md +1 -1
- package/docs/examples/organizations/create.md +1 -1
- package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
- package/docs/examples/organizations/delete-billing-address.md +1 -1
- package/docs/examples/organizations/delete-default-payment-method.md +1 -1
- package/docs/examples/organizations/delete.md +1 -1
- package/docs/examples/organizations/get-aggregation.md +1 -1
- package/docs/examples/organizations/get-billing-address.md +1 -1
- package/docs/examples/organizations/get-credit.md +1 -1
- package/docs/examples/organizations/get-invoice-download.md +1 -1
- package/docs/examples/organizations/get-invoice-view.md +1 -1
- package/docs/examples/organizations/get-invoice.md +1 -1
- package/docs/examples/organizations/get-payment-method.md +1 -1
- package/docs/examples/organizations/get-plan.md +1 -1
- package/docs/examples/organizations/get-scopes.md +1 -1
- package/docs/examples/organizations/list-aggregations.md +1 -1
- package/docs/examples/organizations/list-credits.md +1 -1
- package/docs/examples/organizations/list-invoices.md +1 -1
- package/docs/examples/organizations/list.md +1 -1
- package/docs/examples/organizations/set-backup-payment-method.md +1 -1
- package/docs/examples/organizations/set-billing-address.md +1 -1
- package/docs/examples/organizations/set-billing-email.md +1 -1
- package/docs/examples/organizations/set-billing-tax-id.md +1 -1
- package/docs/examples/organizations/set-default-payment-method.md +1 -1
- package/docs/examples/organizations/update-budget.md +1 -1
- package/docs/examples/organizations/update-plan.md +1 -1
- package/docs/examples/organizations/validate-invoice.md +14 -0
- package/docs/examples/project/create-variable.md +3 -2
- package/docs/examples/project/delete-variable.md +1 -1
- package/docs/examples/project/get-usage.md +1 -1
- package/docs/examples/project/get-variable.md +1 -1
- package/docs/examples/project/list-variables.md +1 -1
- package/docs/examples/project/update-variable.md +3 -2
- package/docs/examples/projects/create-dev-key.md +15 -0
- package/docs/examples/projects/create-j-w-t.md +1 -1
- package/docs/examples/projects/create-key.md +1 -1
- package/docs/examples/projects/create-platform.md +1 -1
- package/docs/examples/projects/create-smtp-test.md +1 -1
- package/docs/examples/projects/create-webhook.md +1 -1
- package/docs/examples/projects/create.md +2 -2
- package/docs/examples/projects/delete-dev-key.md +14 -0
- package/docs/examples/projects/delete-email-template.md +1 -1
- package/docs/examples/projects/delete-key.md +1 -1
- package/docs/examples/projects/delete-platform.md +1 -1
- package/docs/examples/projects/delete-sms-template.md +1 -1
- package/docs/examples/projects/delete-webhook.md +1 -1
- package/docs/examples/projects/delete.md +1 -1
- package/docs/examples/projects/get-dev-key.md +14 -0
- package/docs/examples/projects/get-email-template.md +1 -1
- package/docs/examples/projects/get-key.md +1 -1
- package/docs/examples/projects/get-platform.md +1 -1
- package/docs/examples/projects/get-sms-template.md +1 -1
- package/docs/examples/projects/get-webhook.md +1 -1
- package/docs/examples/projects/get.md +1 -1
- package/docs/examples/projects/list-dev-keys.md +14 -0
- package/docs/examples/projects/list-keys.md +1 -1
- package/docs/examples/projects/list-platforms.md +1 -1
- package/docs/examples/projects/list-webhooks.md +1 -1
- package/docs/examples/projects/list.md +1 -1
- package/docs/examples/projects/update-api-status-all.md +1 -1
- package/docs/examples/projects/update-api-status.md +1 -1
- package/docs/examples/projects/update-auth-duration.md +1 -1
- package/docs/examples/projects/update-auth-limit.md +1 -1
- package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
- package/docs/examples/projects/update-auth-password-history.md +1 -1
- package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
- package/docs/examples/projects/update-auth-status.md +1 -1
- package/docs/examples/projects/update-dev-key.md +16 -0
- package/docs/examples/projects/update-email-template.md +1 -1
- package/docs/examples/projects/update-key.md +1 -1
- package/docs/examples/projects/update-memberships-privacy.md +1 -1
- package/docs/examples/projects/update-mock-numbers.md +1 -1
- package/docs/examples/projects/update-o-auth2.md +1 -1
- package/docs/examples/projects/update-personal-data-check.md +1 -1
- package/docs/examples/projects/update-platform.md +1 -1
- package/docs/examples/projects/update-service-status-all.md +1 -1
- package/docs/examples/projects/update-service-status.md +1 -1
- package/docs/examples/projects/update-session-alerts.md +1 -1
- package/docs/examples/projects/update-sms-template.md +1 -1
- package/docs/examples/projects/update-smtp.md +1 -1
- package/docs/examples/projects/update-team.md +1 -1
- package/docs/examples/projects/update-webhook-signature.md +1 -1
- package/docs/examples/projects/update-webhook.md +1 -1
- package/docs/examples/projects/update.md +1 -1
- package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
- package/docs/examples/proxy/create-function-rule.md +15 -0
- package/docs/examples/proxy/create-redirect-rule.md +15 -0
- package/docs/examples/proxy/create-site-rule.md +15 -0
- package/docs/examples/proxy/delete-rule.md +1 -1
- package/docs/examples/proxy/get-rule.md +1 -1
- package/docs/examples/proxy/list-rules.md +1 -1
- package/docs/examples/proxy/update-rule-verification.md +1 -1
- package/docs/examples/sites/create-deployment.md +18 -0
- package/docs/examples/sites/create-duplicate-deployment.md +14 -0
- package/docs/examples/sites/create-template-deployment.md +18 -0
- package/docs/examples/sites/create-variable.md +16 -0
- package/docs/examples/sites/create-vcs-deployment.md +16 -0
- package/docs/examples/sites/create.md +30 -0
- package/docs/examples/sites/delete-deployment.md +14 -0
- package/docs/examples/sites/delete-log.md +14 -0
- package/docs/examples/sites/delete-variable.md +14 -0
- package/docs/examples/sites/delete.md +13 -0
- package/docs/examples/sites/get-deployment-download.md +15 -0
- package/docs/examples/sites/get-deployment.md +14 -0
- package/docs/examples/sites/get-log.md +14 -0
- package/docs/examples/sites/get-template.md +13 -0
- package/docs/examples/sites/get-usage.md +14 -0
- package/docs/examples/sites/get-variable.md +14 -0
- package/docs/examples/sites/get.md +13 -0
- package/docs/examples/sites/list-deployments.md +15 -0
- package/docs/examples/sites/list-frameworks.md +11 -0
- package/docs/examples/sites/list-logs.md +14 -0
- package/docs/examples/sites/list-specifications.md +11 -0
- package/docs/examples/sites/list-templates.md +16 -0
- package/docs/examples/sites/list-usage.md +13 -0
- package/docs/examples/sites/list-variables.md +13 -0
- package/docs/examples/sites/list.md +14 -0
- package/docs/examples/sites/update-deployment-status.md +14 -0
- package/docs/examples/sites/update-site-deployment.md +14 -0
- package/docs/examples/sites/update-variable.md +17 -0
- package/docs/examples/sites/update.md +30 -0
- package/docs/examples/storage/create-bucket.md +1 -1
- package/docs/examples/storage/create-file.md +1 -1
- package/docs/examples/storage/delete-bucket.md +1 -1
- package/docs/examples/storage/delete-file.md +1 -1
- package/docs/examples/storage/get-bucket-usage.md +1 -1
- package/docs/examples/storage/get-bucket.md +1 -1
- package/docs/examples/storage/get-file-download.md +3 -2
- package/docs/examples/storage/get-file-preview.md +4 -3
- package/docs/examples/storage/get-file-view.md +3 -2
- package/docs/examples/storage/get-file.md +1 -1
- package/docs/examples/storage/get-usage.md +1 -1
- package/docs/examples/storage/list-buckets.md +1 -1
- package/docs/examples/storage/list-files.md +1 -1
- package/docs/examples/storage/update-bucket.md +1 -1
- package/docs/examples/storage/update-file.md +1 -1
- package/docs/examples/teams/create-membership.md +1 -1
- package/docs/examples/teams/create.md +1 -1
- package/docs/examples/teams/delete-membership.md +1 -1
- package/docs/examples/teams/delete.md +1 -1
- package/docs/examples/teams/get-membership.md +1 -1
- package/docs/examples/teams/get-prefs.md +1 -1
- package/docs/examples/teams/get.md +1 -1
- package/docs/examples/teams/list-logs.md +1 -1
- package/docs/examples/teams/list-memberships.md +1 -1
- package/docs/examples/teams/list.md +1 -1
- package/docs/examples/teams/update-membership-status.md +1 -1
- package/docs/examples/teams/update-membership.md +1 -1
- package/docs/examples/teams/update-name.md +1 -1
- package/docs/examples/teams/update-prefs.md +1 -1
- package/docs/examples/tokens/create-file-token.md +15 -0
- package/docs/examples/tokens/delete.md +13 -0
- package/docs/examples/tokens/get.md +13 -0
- package/docs/examples/tokens/list.md +15 -0
- package/docs/examples/tokens/update.md +14 -0
- package/docs/examples/users/create-argon2user.md +1 -1
- package/docs/examples/users/create-bcrypt-user.md +1 -1
- package/docs/examples/users/create-j-w-t.md +1 -1
- package/docs/examples/users/create-m-d5user.md +1 -1
- package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/create-p-h-pass-user.md +1 -1
- package/docs/examples/users/create-s-h-a-user.md +1 -1
- package/docs/examples/users/create-scrypt-modified-user.md +1 -1
- package/docs/examples/users/create-scrypt-user.md +1 -1
- package/docs/examples/users/create-session.md +1 -1
- package/docs/examples/users/create-target.md +1 -1
- package/docs/examples/users/create-token.md +1 -1
- package/docs/examples/users/create.md +1 -1
- package/docs/examples/users/delete-identity.md +1 -1
- package/docs/examples/users/delete-mfa-authenticator.md +1 -1
- package/docs/examples/users/delete-session.md +1 -1
- package/docs/examples/users/delete-sessions.md +1 -1
- package/docs/examples/users/delete-target.md +1 -1
- package/docs/examples/users/delete.md +1 -1
- package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/get-prefs.md +1 -1
- package/docs/examples/users/get-target.md +1 -1
- package/docs/examples/users/get-usage.md +1 -1
- package/docs/examples/users/get.md +1 -1
- package/docs/examples/users/list-identities.md +1 -1
- package/docs/examples/users/list-logs.md +1 -1
- package/docs/examples/users/list-memberships.md +4 -2
- package/docs/examples/users/list-mfa-factors.md +1 -1
- package/docs/examples/users/list-sessions.md +1 -1
- package/docs/examples/users/list-targets.md +1 -1
- package/docs/examples/users/list.md +1 -1
- package/docs/examples/users/update-email-verification.md +1 -1
- package/docs/examples/users/update-email.md +1 -1
- package/docs/examples/users/update-labels.md +1 -1
- package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/users/update-mfa.md +1 -1
- package/docs/examples/users/update-name.md +1 -1
- package/docs/examples/users/update-password.md +1 -1
- package/docs/examples/users/update-phone-verification.md +1 -1
- package/docs/examples/users/update-phone.md +1 -1
- package/docs/examples/users/update-prefs.md +1 -1
- package/docs/examples/users/update-status.md +1 -1
- package/docs/examples/users/update-target.md +1 -1
- package/docs/examples/vcs/create-repository-detection.md +3 -2
- package/docs/examples/vcs/create-repository.md +1 -1
- package/docs/examples/vcs/delete-installation.md +1 -1
- package/docs/examples/vcs/get-installation.md +1 -1
- package/docs/examples/vcs/get-repository-contents.md +1 -1
- package/docs/examples/vcs/get-repository.md +1 -1
- package/docs/examples/vcs/list-installations.md +1 -1
- package/docs/examples/vcs/list-repositories.md +3 -2
- package/docs/examples/vcs/list-repository-branches.md +1 -1
- package/docs/examples/vcs/update-external-deployments.md +1 -1
- package/package.json +1 -1
- package/src/client.ts +32 -5
- package/src/enums/adapter.ts +4 -0
- package/src/enums/api-service.ts +1 -0
- package/src/enums/build-runtime.ts +62 -0
- package/src/enums/console-resource-type.ts +3 -0
- package/src/enums/deployment-download-type.ts +4 -0
- package/src/enums/framework.ts +16 -0
- package/src/enums/image-format.ts +0 -1
- package/src/enums/name.ts +0 -1
- package/src/enums/o-auth-provider.ts +1 -0
- package/src/enums/region.ts +2 -1
- package/src/enums/runtime.ts +4 -3
- package/src/enums/site-usage-range.ts +5 -0
- package/src/enums/status-code.ts +6 -0
- package/src/enums/v-c-s-deployment-type.ts +5 -0
- package/src/enums/v-c-s-detection-type.ts +4 -0
- package/src/index.ts +13 -2
- package/src/models.ts +1171 -188
- package/src/services/account.ts +126 -446
- package/src/services/assistant.ts +2 -7
- package/src/services/avatars.ts +7 -28
- package/src/services/backups.ts +24 -90
- package/src/services/console.ts +48 -52
- package/src/services/databases.ts +241 -350
- package/src/services/domains.ts +1821 -0
- package/src/services/functions.ts +216 -248
- package/src/services/graphql.ts +4 -14
- package/src/services/health.ts +56 -206
- package/src/services/locale.ts +16 -64
- package/src/services/messaging.ts +92 -335
- package/src/services/migrations.ts +66 -89
- package/src/services/organizations.ts +84 -241
- package/src/services/project.ts +20 -45
- package/src/services/projects.ts +262 -330
- package/src/services/proxy.ts +129 -44
- package/src/services/sites.ts +1104 -0
- package/src/services/storage.ts +42 -105
- package/src/services/teams.ts +28 -104
- package/src/services/tokens.ts +160 -0
- package/src/services/users.ts +94 -313
- package/src/services/vcs.ts +70 -108
- package/types/enums/adapter.d.ts +4 -0
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/build-runtime.d.ts +62 -0
- package/types/enums/console-resource-type.d.ts +3 -0
- package/types/enums/deployment-download-type.d.ts +4 -0
- package/types/enums/framework.d.ts +16 -0
- package/types/enums/image-format.d.ts +0 -1
- package/types/enums/name.d.ts +0 -1
- package/types/enums/o-auth-provider.d.ts +1 -0
- package/types/enums/region.d.ts +3 -2
- package/types/enums/runtime.d.ts +5 -4
- package/types/enums/site-usage-range.d.ts +5 -0
- package/types/enums/status-code.d.ts +6 -0
- package/types/enums/v-c-s-deployment-type.d.ts +5 -0
- package/types/enums/v-c-s-detection-type.d.ts +4 -0
- package/types/index.d.ts +13 -2
- package/types/models.d.ts +1171 -188
- package/types/services/account.d.ts +4 -128
- package/types/services/assistant.d.ts +0 -2
- package/types/services/avatars.d.ts +0 -14
- package/types/services/backups.d.ts +0 -24
- package/types/services/console.d.ts +9 -13
- package/types/services/databases.d.ts +43 -97
- package/types/services/domains.d.ts +524 -0
- package/types/services/functions.d.ts +58 -84
- package/types/services/graphql.d.ts +0 -4
- package/types/services/health.d.ts +6 -56
- package/types/services/locale.d.ts +0 -16
- package/types/services/messaging.d.ts +0 -92
- package/types/services/migrations.d.ts +9 -23
- package/types/services/organizations.d.ts +11 -68
- package/types/services/project.d.ts +4 -14
- package/types/services/projects.d.ts +47 -91
- package/types/services/proxy.d.ts +31 -13
- package/types/services/sites.d.ts +319 -0
- package/types/services/storage.d.ts +6 -33
- package/types/services/teams.d.ts +0 -28
- package/types/services/tokens.d.ts +51 -0
- package/types/services/users.d.ts +3 -87
- package/types/services/vcs.d.ts +14 -31
package/src/services/vcs.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Service } from '../service';
|
|
2
2
|
import { AppwriteException, Client, type Payload, UploadProgress } from '../client';
|
|
3
3
|
import type { Models } from '../models';
|
|
4
|
+
import { VCSDetectionType } from '../enums/v-c-s-detection-type';
|
|
4
5
|
|
|
5
6
|
export class Vcs {
|
|
6
7
|
client: Client;
|
|
@@ -10,34 +11,79 @@ export class Vcs {
|
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
+
* Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
14
15
|
*
|
|
16
|
+
* @param {string} installationId
|
|
17
|
+
* @param {string} providerRepositoryId
|
|
18
|
+
* @param {VCSDetectionType} type
|
|
19
|
+
* @param {string} providerRootDirectory
|
|
20
|
+
* @throws {AppwriteException}
|
|
21
|
+
* @returns {Promise<Models.DetectionFramework>}
|
|
22
|
+
*/
|
|
23
|
+
createRepositoryDetection(installationId: string, providerRepositoryId: string, type: VCSDetectionType, providerRootDirectory?: string): Promise<Models.DetectionFramework> {
|
|
24
|
+
if (typeof installationId === 'undefined') {
|
|
25
|
+
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
26
|
+
}
|
|
27
|
+
if (typeof providerRepositoryId === 'undefined') {
|
|
28
|
+
throw new AppwriteException('Missing required parameter: "providerRepositoryId"');
|
|
29
|
+
}
|
|
30
|
+
if (typeof type === 'undefined') {
|
|
31
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
32
|
+
}
|
|
33
|
+
const apiPath = '/vcs/github/installations/{installationId}/detections'.replace('{installationId}', installationId);
|
|
34
|
+
const payload: Payload = {};
|
|
35
|
+
if (typeof providerRepositoryId !== 'undefined') {
|
|
36
|
+
payload['providerRepositoryId'] = providerRepositoryId;
|
|
37
|
+
}
|
|
38
|
+
if (typeof type !== 'undefined') {
|
|
39
|
+
payload['type'] = type;
|
|
40
|
+
}
|
|
41
|
+
if (typeof providerRootDirectory !== 'undefined') {
|
|
42
|
+
payload['providerRootDirectory'] = providerRootDirectory;
|
|
43
|
+
}
|
|
44
|
+
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
45
|
+
|
|
46
|
+
const apiHeaders: { [header: string]: string } = {
|
|
47
|
+
'content-type': 'application/json',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return this.client.call(
|
|
51
|
+
'post',
|
|
52
|
+
uri,
|
|
53
|
+
apiHeaders,
|
|
54
|
+
payload
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
15
58
|
* Get a list of GitHub repositories available through your installation. This endpoint returns repositories with their basic information, detected runtime environments, and latest push dates. You can optionally filter repositories using a search term. Each repository's runtime is automatically detected based on its contents and language statistics. The GitHub installation must be properly configured for this endpoint to work.
|
|
16
59
|
*
|
|
17
60
|
* @param {string} installationId
|
|
61
|
+
* @param {VCSDetectionType} type
|
|
18
62
|
* @param {string} search
|
|
19
63
|
* @throws {AppwriteException}
|
|
20
|
-
* @returns {Promise<Models.
|
|
64
|
+
* @returns {Promise<Models.ProviderRepositoryFrameworkList>}
|
|
21
65
|
*/
|
|
22
|
-
|
|
66
|
+
listRepositories(installationId: string, type: VCSDetectionType, search?: string): Promise<Models.ProviderRepositoryFrameworkList> {
|
|
23
67
|
if (typeof installationId === 'undefined') {
|
|
24
68
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
25
69
|
}
|
|
70
|
+
if (typeof type === 'undefined') {
|
|
71
|
+
throw new AppwriteException('Missing required parameter: "type"');
|
|
72
|
+
}
|
|
26
73
|
const apiPath = '/vcs/github/installations/{installationId}/providerRepositories'.replace('{installationId}', installationId);
|
|
27
74
|
const payload: Payload = {};
|
|
75
|
+
if (typeof type !== 'undefined') {
|
|
76
|
+
payload['type'] = type;
|
|
77
|
+
}
|
|
28
78
|
if (typeof search !== 'undefined') {
|
|
29
79
|
payload['search'] = search;
|
|
30
80
|
}
|
|
31
81
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
32
82
|
|
|
33
83
|
const apiHeaders: { [header: string]: string } = {
|
|
34
|
-
'content-type': 'application/json',
|
|
35
84
|
}
|
|
36
85
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return await this.client.call(
|
|
86
|
+
return this.client.call(
|
|
41
87
|
'get',
|
|
42
88
|
uri,
|
|
43
89
|
apiHeaders,
|
|
@@ -45,8 +91,6 @@ export class Vcs {
|
|
|
45
91
|
);
|
|
46
92
|
}
|
|
47
93
|
/**
|
|
48
|
-
* Create repository
|
|
49
|
-
*
|
|
50
94
|
* Create a new GitHub repository through your installation. This endpoint allows you to create either a public or private repository by specifying a name and visibility setting. The repository will be created under your GitHub user account or organization, depending on your installation type. The GitHub installation must be properly configured and have the necessary permissions for repository creation.
|
|
51
95
|
*
|
|
52
96
|
* @param {string} installationId
|
|
@@ -55,7 +99,7 @@ export class Vcs {
|
|
|
55
99
|
* @throws {AppwriteException}
|
|
56
100
|
* @returns {Promise<Models.ProviderRepository>}
|
|
57
101
|
*/
|
|
58
|
-
|
|
102
|
+
createRepository(installationId: string, name: string, xprivate: boolean): Promise<Models.ProviderRepository> {
|
|
59
103
|
if (typeof installationId === 'undefined') {
|
|
60
104
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
61
105
|
}
|
|
@@ -79,10 +123,7 @@ export class Vcs {
|
|
|
79
123
|
'content-type': 'application/json',
|
|
80
124
|
}
|
|
81
125
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
return await this.client.call(
|
|
126
|
+
return this.client.call(
|
|
86
127
|
'post',
|
|
87
128
|
uri,
|
|
88
129
|
apiHeaders,
|
|
@@ -90,8 +131,6 @@ export class Vcs {
|
|
|
90
131
|
);
|
|
91
132
|
}
|
|
92
133
|
/**
|
|
93
|
-
* Get repository
|
|
94
|
-
*
|
|
95
134
|
* Get detailed information about a specific GitHub repository from your installation. This endpoint returns repository details including its ID, name, visibility status, organization, and latest push date. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
|
|
96
135
|
*
|
|
97
136
|
* @param {string} installationId
|
|
@@ -99,7 +138,7 @@ export class Vcs {
|
|
|
99
138
|
* @throws {AppwriteException}
|
|
100
139
|
* @returns {Promise<Models.ProviderRepository>}
|
|
101
140
|
*/
|
|
102
|
-
|
|
141
|
+
getRepository(installationId: string, providerRepositoryId: string): Promise<Models.ProviderRepository> {
|
|
103
142
|
if (typeof installationId === 'undefined') {
|
|
104
143
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
105
144
|
}
|
|
@@ -111,13 +150,9 @@ export class Vcs {
|
|
|
111
150
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
112
151
|
|
|
113
152
|
const apiHeaders: { [header: string]: string } = {
|
|
114
|
-
'content-type': 'application/json',
|
|
115
153
|
}
|
|
116
154
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
return await this.client.call(
|
|
155
|
+
return this.client.call(
|
|
121
156
|
'get',
|
|
122
157
|
uri,
|
|
123
158
|
apiHeaders,
|
|
@@ -125,8 +160,6 @@ export class Vcs {
|
|
|
125
160
|
);
|
|
126
161
|
}
|
|
127
162
|
/**
|
|
128
|
-
* List repository branches
|
|
129
|
-
*
|
|
130
163
|
* Get a list of all branches from a GitHub repository in your installation. This endpoint returns the names of all branches in the repository and their total count. The GitHub installation must be properly configured and have access to the requested repository for this endpoint to work.
|
|
131
164
|
|
|
132
165
|
*
|
|
@@ -135,7 +168,7 @@ export class Vcs {
|
|
|
135
168
|
* @throws {AppwriteException}
|
|
136
169
|
* @returns {Promise<Models.BranchList>}
|
|
137
170
|
*/
|
|
138
|
-
|
|
171
|
+
listRepositoryBranches(installationId: string, providerRepositoryId: string): Promise<Models.BranchList> {
|
|
139
172
|
if (typeof installationId === 'undefined') {
|
|
140
173
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
141
174
|
}
|
|
@@ -147,13 +180,9 @@ export class Vcs {
|
|
|
147
180
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
148
181
|
|
|
149
182
|
const apiHeaders: { [header: string]: string } = {
|
|
150
|
-
'content-type': 'application/json',
|
|
151
183
|
}
|
|
152
184
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
return await this.client.call(
|
|
185
|
+
return this.client.call(
|
|
157
186
|
'get',
|
|
158
187
|
uri,
|
|
159
188
|
apiHeaders,
|
|
@@ -161,8 +190,6 @@ export class Vcs {
|
|
|
161
190
|
);
|
|
162
191
|
}
|
|
163
192
|
/**
|
|
164
|
-
* Get files and directories of a VCS repository
|
|
165
|
-
*
|
|
166
193
|
* Get a list of files and directories from a GitHub repository connected to your project. This endpoint returns the contents of a specified repository path, including file names, sizes, and whether each item is a file or directory. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
167
194
|
|
|
168
195
|
*
|
|
@@ -172,7 +199,7 @@ export class Vcs {
|
|
|
172
199
|
* @throws {AppwriteException}
|
|
173
200
|
* @returns {Promise<Models.VcsContentList>}
|
|
174
201
|
*/
|
|
175
|
-
|
|
202
|
+
getRepositoryContents(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.VcsContentList> {
|
|
176
203
|
if (typeof installationId === 'undefined') {
|
|
177
204
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
178
205
|
}
|
|
@@ -187,13 +214,9 @@ export class Vcs {
|
|
|
187
214
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
188
215
|
|
|
189
216
|
const apiHeaders: { [header: string]: string } = {
|
|
190
|
-
'content-type': 'application/json',
|
|
191
217
|
}
|
|
192
218
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
return await this.client.call(
|
|
219
|
+
return this.client.call(
|
|
197
220
|
'get',
|
|
198
221
|
uri,
|
|
199
222
|
apiHeaders,
|
|
@@ -201,47 +224,6 @@ export class Vcs {
|
|
|
201
224
|
);
|
|
202
225
|
}
|
|
203
226
|
/**
|
|
204
|
-
* Detect runtime settings from source code
|
|
205
|
-
*
|
|
206
|
-
* Analyze a GitHub repository to automatically detect the programming language and runtime environment. This endpoint scans the repository's files and language statistics to determine the appropriate runtime settings for your function. The GitHub installation must be properly configured and the repository must be accessible through your installation for this endpoint to work.
|
|
207
|
-
*
|
|
208
|
-
* @param {string} installationId
|
|
209
|
-
* @param {string} providerRepositoryId
|
|
210
|
-
* @param {string} providerRootDirectory
|
|
211
|
-
* @throws {AppwriteException}
|
|
212
|
-
* @returns {Promise<Models.Detection>}
|
|
213
|
-
*/
|
|
214
|
-
async createRepositoryDetection(installationId: string, providerRepositoryId: string, providerRootDirectory?: string): Promise<Models.Detection> {
|
|
215
|
-
if (typeof installationId === 'undefined') {
|
|
216
|
-
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
217
|
-
}
|
|
218
|
-
if (typeof providerRepositoryId === 'undefined') {
|
|
219
|
-
throw new AppwriteException('Missing required parameter: "providerRepositoryId"');
|
|
220
|
-
}
|
|
221
|
-
const apiPath = '/vcs/github/installations/{installationId}/providerRepositories/{providerRepositoryId}/detection'.replace('{installationId}', installationId).replace('{providerRepositoryId}', providerRepositoryId);
|
|
222
|
-
const payload: Payload = {};
|
|
223
|
-
if (typeof providerRootDirectory !== 'undefined') {
|
|
224
|
-
payload['providerRootDirectory'] = providerRootDirectory;
|
|
225
|
-
}
|
|
226
|
-
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
227
|
-
|
|
228
|
-
const apiHeaders: { [header: string]: string } = {
|
|
229
|
-
'content-type': 'application/json',
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
payload['project'] = this.client.config.project;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return await this.client.call(
|
|
236
|
-
'post',
|
|
237
|
-
uri,
|
|
238
|
-
apiHeaders,
|
|
239
|
-
payload
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* Authorize external deployment
|
|
244
|
-
*
|
|
245
227
|
* Authorize and create deployments for a GitHub pull request in your project. This endpoint allows external contributions by creating deployments from pull requests, enabling preview environments for code review. The pull request must be open and not previously authorized. The GitHub installation must be properly configured and have access to both the repository and pull request for this endpoint to work.
|
|
246
228
|
*
|
|
247
229
|
* @param {string} installationId
|
|
@@ -250,7 +232,7 @@ export class Vcs {
|
|
|
250
232
|
* @throws {AppwriteException}
|
|
251
233
|
* @returns {Promise<{}>}
|
|
252
234
|
*/
|
|
253
|
-
|
|
235
|
+
updateExternalDeployments(installationId: string, repositoryId: string, providerPullRequestId: string): Promise<{}> {
|
|
254
236
|
if (typeof installationId === 'undefined') {
|
|
255
237
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
256
238
|
}
|
|
@@ -271,10 +253,7 @@ export class Vcs {
|
|
|
271
253
|
'content-type': 'application/json',
|
|
272
254
|
}
|
|
273
255
|
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
return await this.client.call(
|
|
256
|
+
return this.client.call(
|
|
278
257
|
'patch',
|
|
279
258
|
uri,
|
|
280
259
|
apiHeaders,
|
|
@@ -282,8 +261,6 @@ export class Vcs {
|
|
|
282
261
|
);
|
|
283
262
|
}
|
|
284
263
|
/**
|
|
285
|
-
* List installations
|
|
286
|
-
*
|
|
287
264
|
* List all VCS installations configured for the current project. This endpoint returns a list of installations including their provider, organization, and other configuration details.
|
|
288
265
|
|
|
289
266
|
*
|
|
@@ -292,7 +269,7 @@ export class Vcs {
|
|
|
292
269
|
* @throws {AppwriteException}
|
|
293
270
|
* @returns {Promise<Models.InstallationList>}
|
|
294
271
|
*/
|
|
295
|
-
|
|
272
|
+
listInstallations(queries?: string[], search?: string): Promise<Models.InstallationList> {
|
|
296
273
|
const apiPath = '/vcs/installations';
|
|
297
274
|
const payload: Payload = {};
|
|
298
275
|
if (typeof queries !== 'undefined') {
|
|
@@ -304,13 +281,9 @@ export class Vcs {
|
|
|
304
281
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
305
282
|
|
|
306
283
|
const apiHeaders: { [header: string]: string } = {
|
|
307
|
-
'content-type': 'application/json',
|
|
308
284
|
}
|
|
309
285
|
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
return await this.client.call(
|
|
286
|
+
return this.client.call(
|
|
314
287
|
'get',
|
|
315
288
|
uri,
|
|
316
289
|
apiHeaders,
|
|
@@ -318,15 +291,13 @@ export class Vcs {
|
|
|
318
291
|
);
|
|
319
292
|
}
|
|
320
293
|
/**
|
|
321
|
-
* Get installation
|
|
322
|
-
*
|
|
323
294
|
* Get a VCS installation by its unique ID. This endpoint returns the installation's details including its provider, organization, and configuration.
|
|
324
295
|
*
|
|
325
296
|
* @param {string} installationId
|
|
326
297
|
* @throws {AppwriteException}
|
|
327
298
|
* @returns {Promise<Models.Installation>}
|
|
328
299
|
*/
|
|
329
|
-
|
|
300
|
+
getInstallation(installationId: string): Promise<Models.Installation> {
|
|
330
301
|
if (typeof installationId === 'undefined') {
|
|
331
302
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
332
303
|
}
|
|
@@ -335,13 +306,9 @@ export class Vcs {
|
|
|
335
306
|
const uri = new URL(this.client.config.endpoint + apiPath);
|
|
336
307
|
|
|
337
308
|
const apiHeaders: { [header: string]: string } = {
|
|
338
|
-
'content-type': 'application/json',
|
|
339
309
|
}
|
|
340
310
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
return await this.client.call(
|
|
311
|
+
return this.client.call(
|
|
345
312
|
'get',
|
|
346
313
|
uri,
|
|
347
314
|
apiHeaders,
|
|
@@ -349,15 +316,13 @@ export class Vcs {
|
|
|
349
316
|
);
|
|
350
317
|
}
|
|
351
318
|
/**
|
|
352
|
-
* Delete installation
|
|
353
|
-
*
|
|
354
319
|
* Delete a VCS installation by its unique ID. This endpoint removes the installation and all its associated repositories from the project.
|
|
355
320
|
*
|
|
356
321
|
* @param {string} installationId
|
|
357
322
|
* @throws {AppwriteException}
|
|
358
323
|
* @returns {Promise<{}>}
|
|
359
324
|
*/
|
|
360
|
-
|
|
325
|
+
deleteInstallation(installationId: string): Promise<{}> {
|
|
361
326
|
if (typeof installationId === 'undefined') {
|
|
362
327
|
throw new AppwriteException('Missing required parameter: "installationId"');
|
|
363
328
|
}
|
|
@@ -369,10 +334,7 @@ export class Vcs {
|
|
|
369
334
|
'content-type': 'application/json',
|
|
370
335
|
}
|
|
371
336
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
return await this.client.call(
|
|
337
|
+
return this.client.call(
|
|
376
338
|
'delete',
|
|
377
339
|
uri,
|
|
378
340
|
apiHeaders,
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare enum BuildRuntime {
|
|
2
|
+
Node145 = "node-14.5",
|
|
3
|
+
Node160 = "node-16.0",
|
|
4
|
+
Node180 = "node-18.0",
|
|
5
|
+
Node190 = "node-19.0",
|
|
6
|
+
Node200 = "node-20.0",
|
|
7
|
+
Node210 = "node-21.0",
|
|
8
|
+
Node22 = "node-22",
|
|
9
|
+
Php80 = "php-8.0",
|
|
10
|
+
Php81 = "php-8.1",
|
|
11
|
+
Php82 = "php-8.2",
|
|
12
|
+
Php83 = "php-8.3",
|
|
13
|
+
Ruby30 = "ruby-3.0",
|
|
14
|
+
Ruby31 = "ruby-3.1",
|
|
15
|
+
Ruby32 = "ruby-3.2",
|
|
16
|
+
Ruby33 = "ruby-3.3",
|
|
17
|
+
Python38 = "python-3.8",
|
|
18
|
+
Python39 = "python-3.9",
|
|
19
|
+
Python310 = "python-3.10",
|
|
20
|
+
Python311 = "python-3.11",
|
|
21
|
+
Python312 = "python-3.12",
|
|
22
|
+
Pythonml311 = "python-ml-3.11",
|
|
23
|
+
Pythonml312 = "python-ml-3.12",
|
|
24
|
+
Deno140 = "deno-1.40",
|
|
25
|
+
Deno146 = "deno-1.46",
|
|
26
|
+
Deno20 = "deno-2.0",
|
|
27
|
+
Dart215 = "dart-2.15",
|
|
28
|
+
Dart216 = "dart-2.16",
|
|
29
|
+
Dart217 = "dart-2.17",
|
|
30
|
+
Dart218 = "dart-2.18",
|
|
31
|
+
Dart219 = "dart-2.19",
|
|
32
|
+
Dart30 = "dart-3.0",
|
|
33
|
+
Dart31 = "dart-3.1",
|
|
34
|
+
Dart33 = "dart-3.3",
|
|
35
|
+
Dart35 = "dart-3.5",
|
|
36
|
+
Dotnet60 = "dotnet-6.0",
|
|
37
|
+
Dotnet70 = "dotnet-7.0",
|
|
38
|
+
Dotnet80 = "dotnet-8.0",
|
|
39
|
+
Java80 = "java-8.0",
|
|
40
|
+
Java110 = "java-11.0",
|
|
41
|
+
Java170 = "java-17.0",
|
|
42
|
+
Java180 = "java-18.0",
|
|
43
|
+
Java210 = "java-21.0",
|
|
44
|
+
Java22 = "java-22",
|
|
45
|
+
Swift55 = "swift-5.5",
|
|
46
|
+
Swift58 = "swift-5.8",
|
|
47
|
+
Swift59 = "swift-5.9",
|
|
48
|
+
Swift510 = "swift-5.10",
|
|
49
|
+
Kotlin16 = "kotlin-1.6",
|
|
50
|
+
Kotlin18 = "kotlin-1.8",
|
|
51
|
+
Kotlin19 = "kotlin-1.9",
|
|
52
|
+
Kotlin20 = "kotlin-2.0",
|
|
53
|
+
Cpp17 = "cpp-17",
|
|
54
|
+
Cpp20 = "cpp-20",
|
|
55
|
+
Bun10 = "bun-1.0",
|
|
56
|
+
Bun11 = "bun-1.1",
|
|
57
|
+
Go123 = "go-1.23",
|
|
58
|
+
Static1 = "static-1",
|
|
59
|
+
Flutter324 = "flutter-3.24",
|
|
60
|
+
Flutter327 = "flutter-3.27",
|
|
61
|
+
Flutter329 = "flutter-3.29"
|
|
62
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum Framework {
|
|
2
|
+
Analog = "analog",
|
|
3
|
+
Angular = "angular",
|
|
4
|
+
Nextjs = "nextjs",
|
|
5
|
+
React = "react",
|
|
6
|
+
Nuxt = "nuxt",
|
|
7
|
+
Vue = "vue",
|
|
8
|
+
Sveltekit = "sveltekit",
|
|
9
|
+
Astro = "astro",
|
|
10
|
+
Remix = "remix",
|
|
11
|
+
Lynx = "lynx",
|
|
12
|
+
Flutter = "flutter",
|
|
13
|
+
Reactnative = "react-native",
|
|
14
|
+
Vite = "vite",
|
|
15
|
+
Other = "other"
|
|
16
|
+
}
|
package/types/enums/name.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare enum Name {
|
|
|
6
6
|
V1functions = "v1-functions",
|
|
7
7
|
V1statsresources = "v1-stats-resources",
|
|
8
8
|
V1statsusage = "v1-stats-usage",
|
|
9
|
-
V1statsusagedump = "v1-stats-usage-dump",
|
|
10
9
|
V1webhooks = "v1-webhooks",
|
|
11
10
|
V1certificates = "v1-certificates",
|
|
12
11
|
V1builds = "v1-builds",
|
package/types/enums/region.d.ts
CHANGED
package/types/enums/runtime.d.ts
CHANGED
|
@@ -20,9 +20,7 @@ export declare enum Runtime {
|
|
|
20
20
|
Python311 = "python-3.11",
|
|
21
21
|
Python312 = "python-3.12",
|
|
22
22
|
Pythonml311 = "python-ml-3.11",
|
|
23
|
-
|
|
24
|
-
Deno124 = "deno-1.24",
|
|
25
|
-
Deno135 = "deno-1.35",
|
|
23
|
+
Pythonml312 = "python-ml-3.12",
|
|
26
24
|
Deno140 = "deno-1.40",
|
|
27
25
|
Deno146 = "deno-1.46",
|
|
28
26
|
Deno20 = "deno-2.0",
|
|
@@ -30,6 +28,7 @@ export declare enum Runtime {
|
|
|
30
28
|
Dart216 = "dart-2.16",
|
|
31
29
|
Dart217 = "dart-2.17",
|
|
32
30
|
Dart218 = "dart-2.18",
|
|
31
|
+
Dart219 = "dart-2.19",
|
|
33
32
|
Dart30 = "dart-3.0",
|
|
34
33
|
Dart31 = "dart-3.1",
|
|
35
34
|
Dart33 = "dart-3.3",
|
|
@@ -57,5 +56,7 @@ export declare enum Runtime {
|
|
|
57
56
|
Bun11 = "bun-1.1",
|
|
58
57
|
Go123 = "go-1.23",
|
|
59
58
|
Static1 = "static-1",
|
|
60
|
-
Flutter324 = "flutter-3.24"
|
|
59
|
+
Flutter324 = "flutter-3.24",
|
|
60
|
+
Flutter327 = "flutter-3.27",
|
|
61
|
+
Flutter329 = "flutter-3.29"
|
|
61
62
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Appwrite Console SDK
|
|
3
3
|
*
|
|
4
|
-
* This SDK is compatible with Appwrite server version 1.
|
|
4
|
+
* This SDK is compatible with Appwrite server version 1.7.x.
|
|
5
5
|
* For older versions, please check
|
|
6
6
|
* [previous releases](https://github.com/appwrite/sdk-for-console/releases).
|
|
7
7
|
*/
|
|
@@ -12,6 +12,7 @@ export { Backups } from './services/backups';
|
|
|
12
12
|
export { Assistant } from './services/assistant';
|
|
13
13
|
export { Console } from './services/console';
|
|
14
14
|
export { Databases } from './services/databases';
|
|
15
|
+
export { Domains } from './services/domains';
|
|
15
16
|
export { Functions } from './services/functions';
|
|
16
17
|
export { Graphql } from './services/graphql';
|
|
17
18
|
export { Health } from './services/health';
|
|
@@ -22,8 +23,10 @@ export { Organizations } from './services/organizations';
|
|
|
22
23
|
export { Project } from './services/project';
|
|
23
24
|
export { Projects } from './services/projects';
|
|
24
25
|
export { Proxy } from './services/proxy';
|
|
26
|
+
export { Sites } from './services/sites';
|
|
25
27
|
export { Storage } from './services/storage';
|
|
26
28
|
export { Teams } from './services/teams';
|
|
29
|
+
export { Tokens } from './services/tokens';
|
|
27
30
|
export { Users } from './services/users';
|
|
28
31
|
export { Vcs } from './services/vcs';
|
|
29
32
|
export type { Models, Payload, RealtimeResponseEvent, UploadProgress } from './client';
|
|
@@ -37,12 +40,15 @@ export { OAuthProvider } from './enums/o-auth-provider';
|
|
|
37
40
|
export { Browser } from './enums/browser';
|
|
38
41
|
export { CreditCard } from './enums/credit-card';
|
|
39
42
|
export { Flag } from './enums/flag';
|
|
43
|
+
export { ConsoleResourceType } from './enums/console-resource-type';
|
|
40
44
|
export { DatabaseUsageRange } from './enums/database-usage-range';
|
|
41
45
|
export { RelationshipType } from './enums/relationship-type';
|
|
42
46
|
export { RelationMutate } from './enums/relation-mutate';
|
|
43
47
|
export { IndexType } from './enums/index-type';
|
|
44
48
|
export { Runtime } from './enums/runtime';
|
|
45
49
|
export { FunctionUsageRange } from './enums/function-usage-range';
|
|
50
|
+
export { VCSDeploymentType } from './enums/v-c-s-deployment-type';
|
|
51
|
+
export { DeploymentDownloadType } from './enums/deployment-download-type';
|
|
46
52
|
export { ExecutionMethod } from './enums/execution-method';
|
|
47
53
|
export { Name } from './enums/name';
|
|
48
54
|
export { MessagePriority } from './enums/message-priority';
|
|
@@ -59,7 +65,11 @@ export { EmailTemplateType } from './enums/email-template-type';
|
|
|
59
65
|
export { EmailTemplateLocale } from './enums/email-template-locale';
|
|
60
66
|
export { SmsTemplateType } from './enums/sms-template-type';
|
|
61
67
|
export { SmsTemplateLocale } from './enums/sms-template-locale';
|
|
62
|
-
export {
|
|
68
|
+
export { StatusCode } from './enums/status-code';
|
|
69
|
+
export { Framework } from './enums/framework';
|
|
70
|
+
export { BuildRuntime } from './enums/build-runtime';
|
|
71
|
+
export { Adapter } from './enums/adapter';
|
|
72
|
+
export { SiteUsageRange } from './enums/site-usage-range';
|
|
63
73
|
export { Compression } from './enums/compression';
|
|
64
74
|
export { ImageGravity } from './enums/image-gravity';
|
|
65
75
|
export { ImageFormat } from './enums/image-format';
|
|
@@ -67,3 +77,4 @@ export { StorageUsageRange } from './enums/storage-usage-range';
|
|
|
67
77
|
export { PasswordHash } from './enums/password-hash';
|
|
68
78
|
export { UserUsageRange } from './enums/user-usage-range';
|
|
69
79
|
export { MessagingProviderType } from './enums/messaging-provider-type';
|
|
80
|
+
export { VCSDetectionType } from './enums/v-c-s-detection-type';
|