@appwrite.io/console 1.10.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/publish.yml +9 -8
- package/CHANGELOG.md +6 -0
- package/LICENSE +1 -1
- package/README.md +4 -4
- package/dist/cjs/sdk.js +15239 -6070
- package/dist/cjs/sdk.js.map +1 -1
- package/dist/esm/sdk.js +15237 -6071
- package/dist/esm/sdk.js.map +1 -1
- package/dist/iife/sdk.js +15239 -6070
- package/docs/examples/account/create-billing-address.md +8 -8
- package/docs/examples/account/create-email-password-session.md +4 -4
- package/docs/examples/account/create-email-token.md +5 -5
- package/docs/examples/account/{update-magic-u-r-l-session.md → create-email-verification.md} +3 -4
- package/docs/examples/account/{update-m-f-a.md → create-jwt.md} +3 -3
- package/docs/examples/account/{create-magic-u-r-l-token.md → create-magic-url-token.md} +6 -6
- package/docs/examples/account/create-mfa-authenticator.md +3 -3
- package/docs/examples/account/create-mfa-challenge.md +3 -3
- package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/{create-o-auth2token.md → create-o-auth-2-session.md} +6 -6
- package/docs/examples/account/{create-o-auth2session.md → create-o-auth-2-token.md} +6 -6
- package/docs/examples/account/create-phone-token.md +4 -4
- package/docs/examples/account/create-push-target.md +5 -5
- package/docs/examples/account/create-recovery.md +4 -4
- package/docs/examples/account/create-session.md +4 -4
- package/docs/examples/account/create-verification.md +3 -3
- package/docs/examples/account/create.md +6 -6
- package/docs/examples/account/delete-billing-address.md +3 -3
- package/docs/examples/account/delete-identity.md +3 -3
- package/docs/examples/account/delete-mfa-authenticator.md +3 -3
- package/docs/examples/account/delete-payment-method.md +3 -3
- package/docs/examples/account/delete-push-target.md +3 -3
- package/docs/examples/account/delete-session.md +3 -3
- package/docs/examples/account/get-billing-address.md +3 -3
- package/docs/examples/account/get-coupon.md +3 -3
- package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/get-payment-method.md +3 -3
- package/docs/examples/account/get-session.md +3 -3
- package/docs/examples/account/list-billing-addresses.md +3 -3
- package/docs/examples/account/list-identities.md +4 -3
- package/docs/examples/account/list-invoices.md +3 -3
- package/docs/examples/account/list-logs.md +4 -3
- package/docs/examples/account/list-mfa-factors.md +1 -1
- package/docs/examples/account/list-payment-methods.md +3 -3
- package/docs/examples/account/update-billing-address.md +9 -9
- package/docs/examples/account/update-email-verification.md +14 -0
- package/docs/examples/account/update-email.md +4 -4
- package/docs/examples/account/update-magic-url-session.md +14 -0
- package/docs/examples/account/update-mfa-authenticator.md +4 -4
- package/docs/examples/account/update-mfa-challenge.md +4 -4
- package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
- package/docs/examples/account/{create-j-w-t.md → update-mfa.md} +3 -1
- package/docs/examples/account/update-name.md +3 -3
- package/docs/examples/account/update-password.md +4 -4
- package/docs/examples/account/update-payment-method-mandate-options.md +3 -3
- package/docs/examples/account/update-payment-method-provider.md +6 -5
- package/docs/examples/account/update-payment-method.md +6 -5
- package/docs/examples/account/update-phone-session.md +4 -4
- package/docs/examples/account/update-phone-verification.md +4 -4
- package/docs/examples/account/update-phone.md +4 -4
- package/docs/examples/account/update-prefs.md +7 -3
- package/docs/examples/account/update-push-target.md +4 -4
- package/docs/examples/account/update-recovery.md +5 -5
- package/docs/examples/account/update-session.md +3 -3
- package/docs/examples/account/update-verification.md +4 -4
- package/docs/examples/assistant/chat.md +3 -3
- package/docs/examples/avatars/get-browser.md +6 -6
- package/docs/examples/avatars/get-credit-card.md +6 -6
- package/docs/examples/avatars/get-favicon.md +3 -3
- package/docs/examples/avatars/get-flag.md +6 -6
- package/docs/examples/avatars/get-image.md +5 -5
- package/docs/examples/avatars/get-initials.md +6 -6
- package/docs/examples/avatars/{get-q-r.md → get-qr.md} +6 -6
- package/docs/examples/avatars/get-screenshot.md +35 -0
- package/docs/examples/backups/create-archive.md +4 -4
- package/docs/examples/backups/create-policy.md +9 -9
- package/docs/examples/backups/create-restoration.md +6 -6
- package/docs/examples/backups/delete-archive.md +3 -3
- package/docs/examples/backups/delete-policy.md +3 -3
- package/docs/examples/backups/get-archive.md +3 -3
- package/docs/examples/backups/get-policy.md +3 -3
- package/docs/examples/backups/get-restoration.md +3 -3
- package/docs/examples/backups/list-archives.md +3 -3
- package/docs/examples/backups/list-policies.md +3 -3
- package/docs/examples/backups/list-restorations.md +3 -3
- package/docs/examples/backups/update-policy.md +7 -7
- package/docs/examples/console/create-program-membership.md +3 -3
- package/docs/examples/console/create-source.md +7 -7
- package/docs/examples/console/get-campaign.md +3 -3
- package/docs/examples/console/get-coupon.md +3 -3
- package/docs/examples/console/{plans.md → get-plan.md} +3 -1
- package/docs/examples/console/get-plans.md +13 -0
- package/docs/examples/console/{regions.md → get-program.md} +3 -1
- package/docs/examples/console/get-regions.md +13 -0
- package/docs/examples/console/get-resource.md +4 -4
- package/docs/examples/console/suggest-columns.md +17 -0
- package/docs/examples/console/suggest-indexes.md +16 -0
- package/docs/examples/databases/create-boolean-attribute.md +8 -8
- package/docs/examples/databases/create-collection.md +11 -9
- package/docs/examples/databases/create-datetime-attribute.md +8 -8
- package/docs/examples/databases/create-document.md +15 -8
- package/docs/examples/databases/create-documents.md +6 -5
- package/docs/examples/databases/create-email-attribute.md +8 -8
- package/docs/examples/databases/create-enum-attribute.md +9 -9
- package/docs/examples/databases/create-float-attribute.md +10 -10
- package/docs/examples/databases/create-index.md +9 -9
- package/docs/examples/databases/create-integer-attribute.md +10 -10
- package/docs/examples/databases/create-ip-attribute.md +8 -8
- package/docs/examples/databases/create-line-attribute.md +17 -0
- package/docs/examples/databases/create-operations.md +24 -0
- package/docs/examples/databases/create-point-attribute.md +17 -0
- package/docs/examples/databases/create-polygon-attribute.md +17 -0
- package/docs/examples/databases/create-relationship-attribute.md +10 -10
- package/docs/examples/databases/create-string-attribute.md +10 -10
- package/docs/examples/databases/create-transaction.md +13 -0
- package/docs/examples/databases/create-url-attribute.md +8 -8
- package/docs/examples/databases/create.md +5 -5
- package/docs/examples/databases/decrement-document-attribute.md +9 -8
- package/docs/examples/databases/delete-attribute.md +5 -5
- package/docs/examples/databases/delete-collection.md +4 -4
- package/docs/examples/databases/delete-document.md +6 -5
- package/docs/examples/databases/delete-documents.md +6 -5
- package/docs/examples/databases/delete-index.md +5 -5
- package/docs/examples/databases/{get-database-usage.md → delete-transaction.md} +4 -5
- package/docs/examples/databases/delete.md +3 -3
- package/docs/examples/databases/get-attribute.md +5 -5
- package/docs/examples/databases/get-collection-usage.md +6 -6
- package/docs/examples/databases/get-collection.md +4 -4
- package/docs/examples/databases/get-document.md +7 -6
- package/docs/examples/databases/get-index.md +5 -5
- package/docs/examples/databases/get-transaction.md +13 -0
- package/docs/examples/databases/get-usage.md +5 -4
- package/docs/examples/databases/get.md +3 -3
- package/docs/examples/databases/increment-document-attribute.md +9 -8
- package/docs/examples/databases/list-attributes.md +6 -5
- package/docs/examples/databases/list-collection-logs.md +5 -5
- package/docs/examples/databases/list-collections.md +6 -5
- package/docs/examples/databases/list-document-logs.md +6 -6
- package/docs/examples/databases/list-documents.md +7 -5
- package/docs/examples/databases/list-indexes.md +6 -5
- package/docs/examples/databases/list-logs.md +4 -4
- package/docs/examples/databases/list-transactions.md +13 -0
- package/docs/examples/databases/list-usage.md +13 -0
- package/docs/examples/databases/list.md +5 -4
- package/docs/examples/databases/update-boolean-attribute.md +8 -8
- package/docs/examples/databases/update-collection.md +9 -9
- package/docs/examples/databases/update-datetime-attribute.md +8 -8
- package/docs/examples/databases/update-document.md +15 -8
- package/docs/examples/databases/update-documents.md +13 -6
- package/docs/examples/databases/update-email-attribute.md +8 -8
- package/docs/examples/databases/update-enum-attribute.md +9 -9
- package/docs/examples/databases/update-float-attribute.md +10 -10
- package/docs/examples/databases/update-integer-attribute.md +10 -10
- package/docs/examples/databases/update-ip-attribute.md +8 -8
- package/docs/examples/databases/update-line-attribute.md +18 -0
- package/docs/examples/databases/update-point-attribute.md +18 -0
- package/docs/examples/databases/update-polygon-attribute.md +18 -0
- package/docs/examples/databases/update-relationship-attribute.md +7 -7
- package/docs/examples/databases/update-string-attribute.md +9 -9
- package/docs/examples/databases/update-transaction.md +15 -0
- package/docs/examples/databases/update-url-attribute.md +8 -8
- package/docs/examples/databases/update.md +5 -5
- package/docs/examples/databases/upsert-document.md +15 -8
- package/docs/examples/databases/upsert-documents.md +6 -5
- package/docs/examples/domains/create-preset-google-workspace.md +3 -3
- package/docs/examples/domains/create-preset-i-cloud.md +3 -3
- package/docs/examples/domains/create-preset-mailgun.md +3 -3
- package/docs/examples/domains/create-preset-outlook.md +3 -3
- package/docs/examples/domains/create-preset-proton-mail.md +3 -3
- package/docs/examples/domains/create-preset-zoho.md +3 -3
- package/docs/examples/domains/create-record-a.md +7 -7
- package/docs/examples/domains/{create-record-a-a-a-a.md → create-record-aaaa.md} +7 -7
- package/docs/examples/domains/create-record-alias.md +7 -7
- package/docs/examples/domains/{create-record-n-s.md → create-record-caa.md} +7 -7
- package/docs/examples/domains/{create-record-c-a-a.md → create-record-cname.md} +7 -7
- package/docs/examples/domains/{create-record-h-t-t-p-s.md → create-record-https.md} +7 -7
- package/docs/examples/domains/create-record-mx.md +18 -0
- package/docs/examples/domains/create-record-ns.md +17 -0
- package/docs/examples/domains/create-record-srv.md +20 -0
- package/docs/examples/domains/{create-record-c-n-a-m-e.md → create-record-txt.md} +7 -7
- package/docs/examples/domains/create.md +4 -4
- package/docs/examples/domains/delete-record.md +4 -4
- package/docs/examples/domains/delete.md +3 -3
- package/docs/examples/domains/get-preset-google-workspace.md +3 -3
- package/docs/examples/domains/get-preset-i-cloud.md +3 -3
- package/docs/examples/domains/get-preset-mailgun.md +3 -3
- package/docs/examples/domains/get-preset-outlook.md +3 -3
- package/docs/examples/domains/get-preset-proton-mail.md +3 -3
- package/docs/examples/domains/get-preset-zoho.md +3 -3
- package/docs/examples/domains/get-record.md +4 -4
- package/docs/examples/domains/get-zone.md +3 -3
- package/docs/examples/domains/get.md +3 -3
- package/docs/examples/domains/list-records.md +4 -4
- package/docs/examples/domains/list.md +4 -4
- package/docs/examples/domains/update-nameservers.md +3 -3
- package/docs/examples/domains/update-record-a.md +8 -8
- package/docs/examples/domains/update-record-aaaa.md +18 -0
- package/docs/examples/domains/update-record-alias.md +8 -8
- package/docs/examples/domains/update-record-caa.md +18 -0
- package/docs/examples/domains/update-record-cname.md +18 -0
- package/docs/examples/domains/update-record-https.md +18 -0
- package/docs/examples/domains/update-record-mx.md +19 -0
- package/docs/examples/domains/update-record-ns.md +18 -0
- package/docs/examples/domains/update-record-srv.md +21 -0
- package/docs/examples/domains/update-record-txt.md +18 -0
- package/docs/examples/domains/update-team.md +4 -4
- package/docs/examples/domains/update-zone.md +4 -4
- package/docs/examples/functions/create-deployment.md +7 -7
- package/docs/examples/functions/create-duplicate-deployment.md +5 -5
- package/docs/examples/functions/create-execution.md +9 -9
- package/docs/examples/functions/create-template-deployment.md +10 -9
- package/docs/examples/functions/create-variable.md +6 -6
- package/docs/examples/functions/create-vcs-deployment.md +7 -7
- package/docs/examples/functions/create.md +21 -21
- package/docs/examples/functions/delete-deployment.md +4 -4
- package/docs/examples/functions/delete-execution.md +4 -4
- package/docs/examples/functions/delete-variable.md +4 -4
- package/docs/examples/functions/delete.md +3 -3
- package/docs/examples/functions/get-deployment-download.md +5 -5
- package/docs/examples/functions/get-deployment.md +4 -4
- package/docs/examples/functions/get-execution.md +4 -4
- package/docs/examples/functions/get-template.md +3 -3
- package/docs/examples/functions/get-usage.md +5 -5
- package/docs/examples/functions/get-variable.md +4 -4
- package/docs/examples/functions/get.md +3 -3
- package/docs/examples/functions/list-deployments.md +6 -5
- package/docs/examples/functions/list-executions.md +5 -4
- package/docs/examples/functions/list-templates.md +7 -6
- package/docs/examples/functions/list-usage.md +4 -4
- package/docs/examples/functions/list-variables.md +3 -3
- package/docs/examples/functions/list.md +5 -4
- package/docs/examples/functions/update-deployment-status.md +4 -4
- package/docs/examples/functions/update-function-deployment.md +4 -4
- package/docs/examples/functions/update-variable.md +7 -7
- package/docs/examples/functions/update.md +21 -21
- package/docs/examples/graphql/mutation.md +3 -3
- package/docs/examples/graphql/query.md +3 -3
- package/docs/examples/health/get-certificate.md +3 -3
- package/docs/examples/health/get-failed-jobs.md +5 -5
- package/docs/examples/health/get-queue-billing-project-aggregation.md +3 -3
- package/docs/examples/health/get-queue-billing-team-aggregation.md +3 -3
- package/docs/examples/health/get-queue-builds.md +3 -3
- package/docs/examples/health/get-queue-certificates.md +3 -3
- package/docs/examples/health/get-queue-databases.md +4 -4
- package/docs/examples/health/get-queue-deletes.md +3 -3
- package/docs/examples/health/get-queue-functions.md +3 -3
- package/docs/examples/health/get-queue-logs.md +3 -3
- package/docs/examples/health/get-queue-mails.md +3 -3
- package/docs/examples/health/get-queue-messaging.md +3 -3
- package/docs/examples/health/get-queue-migrations.md +3 -3
- package/docs/examples/health/get-queue-priority-builds.md +3 -3
- package/docs/examples/health/get-queue-region-manager.md +3 -3
- package/docs/examples/health/get-queue-stats-resources.md +3 -3
- package/docs/examples/health/get-queue-threats.md +13 -0
- package/docs/examples/health/get-queue-usage.md +3 -3
- package/docs/examples/health/get-queue-webhooks.md +3 -3
- package/docs/examples/messaging/create-apns-provider.md +10 -10
- package/docs/examples/messaging/create-email.md +14 -14
- package/docs/examples/messaging/create-fcm-provider.md +6 -6
- package/docs/examples/messaging/create-mailgun-provider.md +12 -12
- package/docs/examples/messaging/{create-msg91provider.md → create-msg-91-provider.md} +8 -8
- package/docs/examples/messaging/create-push.md +21 -21
- package/docs/examples/messaging/create-resend-provider.md +20 -0
- package/docs/examples/messaging/create-sendgrid-provider.md +10 -10
- package/docs/examples/messaging/create-sms.md +9 -9
- package/docs/examples/messaging/create-smtp-provider.md +16 -16
- package/docs/examples/messaging/create-subscriber.md +5 -5
- package/docs/examples/messaging/create-telesign-provider.md +8 -8
- package/docs/examples/messaging/create-textmagic-provider.md +8 -8
- package/docs/examples/messaging/create-topic.md +5 -5
- package/docs/examples/messaging/create-twilio-provider.md +8 -8
- package/docs/examples/messaging/create-vonage-provider.md +8 -8
- package/docs/examples/messaging/delete-provider.md +3 -3
- package/docs/examples/messaging/delete-subscriber.md +4 -4
- package/docs/examples/messaging/delete-topic.md +3 -3
- package/docs/examples/messaging/delete.md +3 -3
- package/docs/examples/messaging/get-message.md +3 -3
- package/docs/examples/messaging/get-provider.md +3 -3
- package/docs/examples/messaging/get-subscriber.md +4 -4
- package/docs/examples/messaging/get-topic.md +3 -3
- package/docs/examples/messaging/list-message-logs.md +5 -4
- package/docs/examples/messaging/list-messages.md +5 -4
- package/docs/examples/messaging/list-provider-logs.md +5 -4
- package/docs/examples/messaging/list-providers.md +5 -4
- package/docs/examples/messaging/list-subscriber-logs.md +5 -4
- package/docs/examples/messaging/list-subscribers.md +6 -5
- package/docs/examples/messaging/list-targets.md +5 -4
- package/docs/examples/messaging/list-topic-logs.md +5 -4
- package/docs/examples/messaging/list-topics.md +5 -4
- package/docs/examples/messaging/update-apns-provider.md +10 -10
- package/docs/examples/messaging/update-email.md +14 -14
- package/docs/examples/messaging/update-fcm-provider.md +6 -6
- package/docs/examples/messaging/update-mailgun-provider.md +12 -12
- package/docs/examples/messaging/{update-msg91provider.md → update-msg-91-provider.md} +8 -8
- package/docs/examples/messaging/update-push.md +21 -21
- package/docs/examples/messaging/update-resend-provider.md +20 -0
- package/docs/examples/messaging/update-sendgrid-provider.md +10 -10
- package/docs/examples/messaging/update-sms.md +9 -9
- package/docs/examples/messaging/update-smtp-provider.md +16 -16
- package/docs/examples/messaging/update-telesign-provider.md +8 -8
- package/docs/examples/messaging/update-textmagic-provider.md +8 -8
- package/docs/examples/messaging/update-topic.md +5 -5
- package/docs/examples/messaging/update-twilio-provider.md +8 -8
- package/docs/examples/messaging/update-vonage-provider.md +8 -8
- package/docs/examples/migrations/create-appwrite-migration.md +6 -6
- package/docs/examples/migrations/create-csv-export.md +21 -0
- package/docs/examples/migrations/{create-csv-migration.md → create-csv-import.md} +6 -5
- package/docs/examples/migrations/create-firebase-migration.md +4 -4
- package/docs/examples/migrations/create-n-host-migration.md +10 -10
- package/docs/examples/migrations/create-supabase-migration.md +9 -9
- package/docs/examples/migrations/delete.md +3 -3
- package/docs/examples/migrations/get-appwrite-report.md +6 -6
- package/docs/examples/migrations/get-firebase-report.md +4 -4
- package/docs/examples/migrations/get-n-host-report.md +10 -10
- package/docs/examples/migrations/get-supabase-report.md +9 -9
- package/docs/examples/migrations/get.md +3 -3
- package/docs/examples/migrations/list.md +5 -4
- package/docs/examples/migrations/retry.md +3 -3
- package/docs/examples/organizations/add-credit.md +4 -4
- package/docs/examples/organizations/cancel-downgrade.md +3 -3
- package/docs/examples/organizations/create-downgrade-feedback.md +17 -0
- package/docs/examples/organizations/create-invoice-payment.md +5 -5
- package/docs/examples/organizations/create.md +13 -12
- package/docs/examples/organizations/delete-backup-payment-method.md +3 -3
- package/docs/examples/organizations/delete-billing-address.md +3 -3
- package/docs/examples/organizations/delete-default-payment-method.md +3 -3
- package/docs/examples/organizations/delete.md +3 -3
- package/docs/examples/organizations/estimation-create-organization.md +8 -7
- package/docs/examples/organizations/estimation-delete-organization.md +3 -3
- package/docs/examples/organizations/estimation-update-plan.md +7 -7
- package/docs/examples/organizations/get-aggregation.md +6 -4
- package/docs/examples/organizations/get-available-credits.md +3 -3
- package/docs/examples/organizations/get-billing-address.md +4 -4
- package/docs/examples/organizations/get-credit.md +4 -4
- package/docs/examples/organizations/get-invoice-download.md +4 -4
- package/docs/examples/organizations/get-invoice-view.md +4 -4
- package/docs/examples/organizations/get-invoice.md +4 -4
- package/docs/examples/organizations/get-payment-method.md +4 -4
- package/docs/examples/organizations/get-plan.md +3 -3
- package/docs/examples/organizations/get-scopes.md +3 -3
- package/docs/examples/organizations/get-usage.md +5 -5
- package/docs/examples/organizations/list-aggregations.md +4 -4
- package/docs/examples/organizations/list-credits.md +4 -4
- package/docs/examples/organizations/list-invoices.md +4 -4
- package/docs/examples/organizations/list.md +4 -4
- package/docs/examples/organizations/set-backup-payment-method.md +4 -4
- package/docs/examples/organizations/set-billing-address.md +4 -4
- package/docs/examples/organizations/set-billing-email.md +4 -4
- package/docs/examples/organizations/set-billing-tax-id.md +4 -4
- package/docs/examples/organizations/set-default-payment-method.md +4 -4
- package/docs/examples/organizations/update-budget.md +5 -5
- package/docs/examples/organizations/update-plan.md +11 -11
- package/docs/examples/organizations/update-projects.md +4 -4
- package/docs/examples/organizations/validate-invoice.md +4 -4
- package/docs/examples/organizations/validate-payment.md +4 -4
- package/docs/examples/project/create-variable.md +5 -5
- package/docs/examples/project/delete-variable.md +3 -3
- package/docs/examples/project/get-usage.md +5 -5
- package/docs/examples/project/get-variable.md +3 -3
- package/docs/examples/project/update-variable.md +6 -6
- package/docs/examples/projects/create-dev-key.md +5 -5
- package/docs/examples/projects/{create-j-w-t.md → create-jwt.md} +5 -5
- package/docs/examples/projects/create-key.md +6 -6
- package/docs/examples/projects/create-platform.md +8 -8
- package/docs/examples/projects/create-smtp-test.md +12 -12
- package/docs/examples/projects/create-webhook.md +10 -10
- package/docs/examples/projects/create.md +16 -16
- package/docs/examples/projects/delete-dev-key.md +4 -4
- package/docs/examples/projects/delete-email-template.md +5 -5
- package/docs/examples/projects/delete-key.md +4 -4
- package/docs/examples/projects/delete-platform.md +4 -4
- package/docs/examples/projects/delete-sms-template.md +5 -5
- package/docs/examples/projects/delete-webhook.md +4 -4
- package/docs/examples/projects/delete.md +3 -3
- package/docs/examples/projects/get-dev-key.md +4 -4
- package/docs/examples/projects/get-email-template.md +5 -5
- package/docs/examples/projects/get-key.md +4 -4
- package/docs/examples/projects/get-platform.md +4 -4
- package/docs/examples/projects/get-sms-template.md +5 -5
- package/docs/examples/projects/get-webhook.md +4 -4
- package/docs/examples/projects/get.md +3 -3
- package/docs/examples/projects/list-dev-keys.md +4 -4
- package/docs/examples/projects/list-keys.md +4 -3
- package/docs/examples/projects/list-platforms.md +4 -3
- package/docs/examples/projects/list-webhooks.md +4 -3
- package/docs/examples/projects/list.md +5 -4
- package/docs/examples/projects/update-api-status-all.md +4 -4
- package/docs/examples/projects/update-api-status.md +6 -6
- package/docs/examples/projects/update-auth-duration.md +4 -4
- package/docs/examples/projects/update-auth-limit.md +4 -4
- package/docs/examples/projects/update-auth-password-dictionary.md +4 -4
- package/docs/examples/projects/update-auth-password-history.md +4 -4
- package/docs/examples/projects/update-auth-sessions-limit.md +4 -4
- package/docs/examples/projects/update-auth-status.md +5 -5
- package/docs/examples/projects/update-dev-key.md +6 -6
- package/docs/examples/projects/update-email-template.md +10 -10
- package/docs/examples/projects/update-key.md +7 -7
- package/docs/examples/projects/update-memberships-privacy.md +6 -6
- package/docs/examples/projects/update-mock-numbers.md +4 -4
- package/docs/examples/projects/{update-o-auth2.md → update-o-auth-2.md} +7 -7
- package/docs/examples/projects/update-personal-data-check.md +4 -4
- package/docs/examples/projects/update-platform.md +8 -8
- package/docs/examples/projects/update-service-status-all.md +4 -4
- package/docs/examples/projects/update-service-status.md +5 -5
- package/docs/examples/projects/update-session-alerts.md +4 -4
- package/docs/examples/projects/update-session-invalidation.md +14 -0
- package/docs/examples/projects/update-sms-template.md +6 -6
- package/docs/examples/projects/update-smtp.md +12 -12
- package/docs/examples/projects/update-status.md +14 -0
- package/docs/examples/projects/update-team.md +4 -4
- package/docs/examples/projects/update-webhook-signature.md +4 -4
- package/docs/examples/projects/update-webhook.md +11 -11
- package/docs/examples/projects/update.md +13 -13
- package/docs/examples/proxy/{create-a-p-i-rule.md → create-api-rule.md} +3 -3
- package/docs/examples/proxy/create-function-rule.md +5 -5
- package/docs/examples/proxy/create-redirect-rule.md +8 -8
- package/docs/examples/proxy/create-site-rule.md +5 -5
- package/docs/examples/proxy/delete-rule.md +3 -3
- package/docs/examples/proxy/get-rule.md +3 -3
- package/docs/examples/proxy/list-rules.md +5 -4
- package/docs/examples/proxy/update-rule-verification.md +3 -3
- package/docs/examples/sites/create-deployment.md +8 -8
- package/docs/examples/sites/create-duplicate-deployment.md +4 -4
- package/docs/examples/sites/create-template-deployment.md +10 -9
- package/docs/examples/sites/create-variable.md +6 -6
- package/docs/examples/sites/create-vcs-deployment.md +7 -7
- package/docs/examples/sites/create.md +21 -21
- package/docs/examples/sites/delete-deployment.md +4 -4
- package/docs/examples/sites/delete-log.md +4 -4
- package/docs/examples/sites/delete-variable.md +4 -4
- package/docs/examples/sites/delete.md +3 -3
- package/docs/examples/sites/get-deployment-download.md +5 -5
- package/docs/examples/sites/get-deployment.md +4 -4
- package/docs/examples/sites/get-log.md +4 -4
- package/docs/examples/sites/get-template.md +3 -3
- package/docs/examples/sites/get-usage.md +5 -5
- package/docs/examples/sites/get-variable.md +4 -4
- package/docs/examples/sites/get.md +3 -3
- package/docs/examples/sites/list-deployments.md +6 -5
- package/docs/examples/sites/list-logs.md +5 -4
- package/docs/examples/sites/list-templates.md +6 -6
- package/docs/examples/sites/list-usage.md +4 -4
- package/docs/examples/sites/list-variables.md +3 -3
- package/docs/examples/sites/list.md +5 -4
- package/docs/examples/sites/update-deployment-status.md +4 -4
- package/docs/examples/sites/update-site-deployment.md +4 -4
- package/docs/examples/sites/update-variable.md +7 -7
- package/docs/examples/sites/update.md +21 -21
- package/docs/examples/storage/create-bucket.md +14 -13
- package/docs/examples/storage/create-file.md +7 -7
- package/docs/examples/storage/delete-bucket.md +3 -3
- package/docs/examples/storage/delete-file.md +4 -4
- package/docs/examples/storage/get-bucket-usage.md +5 -5
- package/docs/examples/storage/get-bucket.md +3 -3
- package/docs/examples/storage/get-file-download.md +5 -5
- package/docs/examples/storage/get-file-preview.md +16 -16
- package/docs/examples/storage/get-file-view.md +5 -5
- package/docs/examples/storage/get-file.md +4 -4
- package/docs/examples/storage/get-usage.md +4 -4
- package/docs/examples/storage/list-buckets.md +5 -4
- package/docs/examples/storage/list-files.md +6 -5
- package/docs/examples/storage/update-bucket.md +14 -13
- package/docs/examples/storage/update-file.md +7 -7
- package/docs/examples/tablesdb/create-boolean-column.md +18 -0
- package/docs/examples/tablesdb/create-datetime-column.md +18 -0
- package/docs/examples/tablesdb/create-email-column.md +18 -0
- package/docs/examples/tablesdb/create-enum-column.md +19 -0
- package/docs/examples/tablesdb/create-float-column.md +20 -0
- package/docs/examples/tablesdb/create-index.md +19 -0
- package/docs/examples/tablesdb/create-integer-column.md +20 -0
- package/docs/examples/tablesdb/create-ip-column.md +18 -0
- package/docs/examples/tablesdb/create-line-column.md +17 -0
- package/docs/examples/tablesdb/create-operations.md +24 -0
- package/docs/examples/tablesdb/create-point-column.md +17 -0
- package/docs/examples/tablesdb/create-polygon-column.md +17 -0
- package/docs/examples/tablesdb/create-relationship-column.md +20 -0
- package/docs/examples/tablesdb/create-row.md +24 -0
- package/docs/examples/tablesdb/create-rows.md +16 -0
- package/docs/examples/tablesdb/create-string-column.md +20 -0
- package/docs/examples/tablesdb/create-table.md +20 -0
- package/docs/examples/tablesdb/create-transaction.md +13 -0
- package/docs/examples/tablesdb/create-url-column.md +18 -0
- package/docs/examples/tablesdb/create.md +15 -0
- package/docs/examples/tablesdb/decrement-row-column.md +19 -0
- package/docs/examples/tablesdb/delete-column.md +15 -0
- package/docs/examples/tablesdb/delete-index.md +15 -0
- package/docs/examples/tablesdb/delete-row.md +16 -0
- package/docs/examples/tablesdb/delete-rows.md +16 -0
- package/docs/examples/tablesdb/delete-table.md +14 -0
- package/docs/examples/tablesdb/delete-transaction.md +13 -0
- package/docs/examples/tablesdb/delete.md +13 -0
- package/docs/examples/tablesdb/get-column.md +15 -0
- package/docs/examples/tablesdb/get-index.md +15 -0
- package/docs/examples/tablesdb/get-row.md +17 -0
- package/docs/examples/tablesdb/get-table-usage.md +15 -0
- package/docs/examples/tablesdb/get-table.md +14 -0
- package/docs/examples/tablesdb/get-transaction.md +13 -0
- package/docs/examples/tablesdb/get-usage.md +14 -0
- package/docs/examples/tablesdb/get.md +13 -0
- package/docs/examples/tablesdb/increment-row-column.md +19 -0
- package/docs/examples/tablesdb/list-columns.md +16 -0
- package/docs/examples/tablesdb/list-indexes.md +16 -0
- package/docs/examples/tablesdb/list-row-logs.md +16 -0
- package/docs/examples/tablesdb/list-rows.md +17 -0
- package/docs/examples/tablesdb/list-table-logs.md +15 -0
- package/docs/examples/tablesdb/list-tables.md +16 -0
- package/docs/examples/tablesdb/list-transactions.md +13 -0
- package/docs/examples/tablesdb/list-usage.md +13 -0
- package/docs/examples/tablesdb/list.md +15 -0
- package/docs/examples/tablesdb/update-boolean-column.md +18 -0
- package/docs/examples/tablesdb/update-datetime-column.md +18 -0
- package/docs/examples/tablesdb/update-email-column.md +18 -0
- package/docs/examples/tablesdb/update-enum-column.md +19 -0
- package/docs/examples/tablesdb/update-float-column.md +20 -0
- package/docs/examples/tablesdb/update-integer-column.md +20 -0
- package/docs/examples/tablesdb/update-ip-column.md +18 -0
- package/docs/examples/tablesdb/update-line-column.md +18 -0
- package/docs/examples/tablesdb/update-point-column.md +18 -0
- package/docs/examples/tablesdb/update-polygon-column.md +18 -0
- package/docs/examples/tablesdb/update-relationship-column.md +17 -0
- package/docs/examples/tablesdb/update-row.md +24 -0
- package/docs/examples/tablesdb/update-rows.md +23 -0
- package/docs/examples/tablesdb/update-string-column.md +19 -0
- package/docs/examples/tablesdb/update-table.md +18 -0
- package/docs/examples/tablesdb/update-transaction.md +15 -0
- package/docs/examples/tablesdb/update-url-column.md +18 -0
- package/docs/examples/tablesdb/update.md +15 -0
- package/docs/examples/tablesdb/upsert-row.md +24 -0
- package/docs/examples/tablesdb/upsert-rows.md +16 -0
- package/docs/examples/teams/create-membership.md +9 -9
- package/docs/examples/teams/create.md +5 -5
- package/docs/examples/teams/delete-membership.md +4 -4
- package/docs/examples/teams/delete.md +3 -3
- package/docs/examples/teams/get-membership.md +4 -4
- package/docs/examples/teams/get-prefs.md +3 -3
- package/docs/examples/teams/get.md +3 -3
- package/docs/examples/teams/list-logs.md +5 -4
- package/docs/examples/teams/list-memberships.md +6 -5
- package/docs/examples/teams/list.md +5 -4
- package/docs/examples/teams/update-membership-status.md +6 -6
- package/docs/examples/teams/update-membership.md +5 -5
- package/docs/examples/teams/update-name.md +4 -4
- package/docs/examples/teams/update-prefs.md +4 -4
- package/docs/examples/tokens/create-file-token.md +5 -5
- package/docs/examples/tokens/delete.md +3 -3
- package/docs/examples/tokens/get.md +3 -3
- package/docs/examples/tokens/list.md +6 -5
- package/docs/examples/tokens/update.md +4 -4
- package/docs/examples/users/{create-m-d5user.md → create-argon-2-user.md} +6 -6
- package/docs/examples/users/create-bcrypt-user.md +6 -6
- package/docs/examples/users/{create-j-w-t.md → create-jwt.md} +5 -5
- package/docs/examples/users/{create-argon2user.md → create-md-5-user.md} +6 -6
- package/docs/examples/users/create-mfa-recovery-codes.md +3 -3
- package/docs/examples/users/{create-p-h-pass-user.md → create-ph-pass-user.md} +6 -6
- package/docs/examples/users/create-scrypt-modified-user.md +9 -9
- package/docs/examples/users/create-scrypt-user.md +11 -11
- package/docs/examples/users/create-session.md +3 -3
- package/docs/examples/users/{create-s-h-a-user.md → create-sha-user.md} +7 -7
- package/docs/examples/users/create-target.md +8 -8
- package/docs/examples/users/create-token.md +5 -5
- package/docs/examples/users/create.md +7 -7
- package/docs/examples/users/delete-identity.md +3 -3
- package/docs/examples/users/delete-mfa-authenticator.md +4 -4
- package/docs/examples/users/delete-session.md +4 -4
- package/docs/examples/users/delete-sessions.md +3 -3
- package/docs/examples/users/delete-target.md +4 -4
- package/docs/examples/users/delete.md +3 -3
- package/docs/examples/users/get-mfa-recovery-codes.md +3 -3
- package/docs/examples/users/get-prefs.md +3 -3
- package/docs/examples/users/get-target.md +4 -4
- package/docs/examples/users/get-usage.md +4 -4
- package/docs/examples/users/get.md +3 -3
- package/docs/examples/users/list-identities.md +5 -4
- package/docs/examples/users/list-logs.md +5 -4
- package/docs/examples/users/list-memberships.md +6 -5
- package/docs/examples/users/list-mfa-factors.md +3 -3
- package/docs/examples/users/list-sessions.md +4 -3
- package/docs/examples/users/list-targets.md +5 -4
- package/docs/examples/users/list.md +5 -4
- package/docs/examples/users/update-email-verification.md +4 -4
- package/docs/examples/users/update-email.md +4 -4
- package/docs/examples/users/update-labels.md +4 -4
- package/docs/examples/users/update-mfa-recovery-codes.md +3 -3
- package/docs/examples/users/update-mfa.md +4 -4
- package/docs/examples/users/update-name.md +4 -4
- package/docs/examples/users/update-password.md +4 -4
- package/docs/examples/users/update-phone-verification.md +4 -4
- package/docs/examples/users/update-phone.md +4 -4
- package/docs/examples/users/update-prefs.md +4 -4
- package/docs/examples/users/update-status.md +4 -4
- package/docs/examples/users/update-target.md +7 -7
- package/docs/examples/vcs/create-repository-detection.md +6 -6
- package/docs/examples/vcs/create-repository.md +5 -5
- package/docs/examples/vcs/delete-installation.md +3 -3
- package/docs/examples/vcs/get-installation.md +3 -3
- package/docs/examples/vcs/get-repository-contents.md +6 -6
- package/docs/examples/vcs/get-repository.md +4 -4
- package/docs/examples/vcs/list-installations.md +5 -4
- package/docs/examples/vcs/list-repositories.md +6 -5
- package/docs/examples/vcs/list-repository-branches.md +4 -4
- package/docs/examples/vcs/update-external-deployments.md +5 -5
- package/package.json +4 -4
- package/src/client.ts +42 -7
- package/src/enums/api-service.ts +1 -0
- package/src/enums/attribute-status.ts +7 -0
- package/src/enums/billing-plan-group.ts +5 -0
- package/src/enums/build-runtime.ts +2 -0
- package/src/enums/column-status.ts +7 -0
- package/src/enums/credit-card.ts +1 -1
- package/src/enums/database-type.ts +4 -0
- package/src/enums/deployment-status.ts +7 -0
- package/src/enums/execution-method.ts +1 -0
- package/src/enums/execution-status.ts +7 -0
- package/src/enums/execution-trigger.ts +5 -0
- package/src/enums/framework.ts +1 -0
- package/src/enums/health-antivirus-status.ts +5 -0
- package/src/enums/health-check-status.ts +4 -0
- package/src/enums/index-status.ts +7 -0
- package/src/enums/index-type.ts +1 -0
- package/src/enums/message-status.ts +7 -0
- package/src/enums/o-auth-provider.ts +3 -0
- package/src/enums/platform.ts +4 -0
- package/src/enums/proxy-rule-deployment-resource-type.ts +4 -0
- package/src/enums/proxy-rule-status.ts +6 -0
- package/src/enums/region.ts +3 -0
- package/src/enums/runtime.ts +2 -0
- package/src/enums/status.ts +4 -0
- package/src/enums/template-reference-type.ts +5 -0
- package/src/enums/theme.ts +4 -0
- package/src/enums/timezone.ts +421 -0
- package/src/enums/{user-usage-range.ts → usage-range.ts} +1 -1
- package/src/enums/{v-c-s-deployment-type.ts → vcs-reference-type.ts} +1 -1
- package/src/index.ts +27 -11
- package/src/models.ts +1692 -238
- package/src/operator.ts +308 -0
- package/src/query.ts +246 -2
- package/src/services/account.ts +2205 -223
- package/src/services/assistant.ts +29 -3
- package/src/services/avatars.ts +486 -33
- package/src/services/backups.ts +389 -42
- package/src/services/console.ts +492 -19
- package/src/services/databases.ts +3521 -431
- package/src/services/domains.ts +1684 -197
- package/src/services/functions.ts +1162 -149
- package/src/services/graphql.ts +55 -4
- package/src/services/health.ts +560 -41
- package/src/services/locale.ts +9 -0
- package/src/services/messaging.ts +3367 -380
- package/src/services/migrations.ts +641 -65
- package/src/services/organizations.ts +1323 -128
- package/src/services/project.ts +168 -17
- package/src/services/projects.ts +2742 -266
- package/src/services/proxy.ts +265 -26
- package/src/services/realtime.ts +437 -0
- package/src/services/sites.ts +1098 -140
- package/src/services/storage.ts +651 -82
- package/src/services/tables-db.ts +5439 -0
- package/src/services/teams.ts +512 -55
- package/src/services/tokens.ts +167 -16
- package/src/services/users.ts +1873 -181
- package/src/services/vcs.ts +359 -39
- package/types/client.d.ts +14 -5
- package/types/enums/api-service.d.ts +1 -0
- package/types/enums/attribute-status.d.ts +7 -0
- package/types/enums/billing-plan-group.d.ts +5 -0
- package/types/enums/build-runtime.d.ts +3 -1
- package/types/enums/column-status.d.ts +7 -0
- package/types/enums/credit-card.d.ts +1 -1
- package/types/enums/database-type.d.ts +4 -0
- package/types/enums/deployment-status.d.ts +7 -0
- package/types/enums/execution-method.d.ts +2 -1
- package/types/enums/execution-status.d.ts +7 -0
- package/types/enums/execution-trigger.d.ts +5 -0
- package/types/enums/framework.d.ts +1 -0
- package/types/enums/health-antivirus-status.d.ts +5 -0
- package/types/enums/health-check-status.d.ts +4 -0
- package/types/enums/index-status.d.ts +7 -0
- package/types/enums/index-type.d.ts +2 -1
- package/types/enums/message-status.d.ts +7 -0
- package/types/enums/o-auth-provider.d.ts +4 -1
- package/types/enums/platform.d.ts +4 -0
- package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
- package/types/enums/proxy-rule-status.d.ts +6 -0
- package/types/enums/region.d.ts +4 -1
- package/types/enums/runtime.d.ts +3 -1
- package/types/enums/status.d.ts +4 -0
- package/types/enums/template-reference-type.d.ts +5 -0
- package/types/enums/theme.d.ts +4 -0
- package/types/enums/timezone.d.ts +421 -0
- package/types/enums/{site-usage-range.d.ts → usage-range.d.ts} +1 -1
- package/types/enums/{v-c-s-deployment-type.d.ts → vcs-reference-type.d.ts} +1 -1
- package/types/index.d.ts +27 -11
- package/types/models.d.ts +1664 -245
- package/types/operator.d.ts +180 -0
- package/types/query.d.ts +198 -2
- package/types/services/account.d.ts +985 -123
- package/types/services/assistant.d.ts +13 -2
- package/types/services/avatars.d.ts +244 -26
- package/types/services/backups.d.ts +190 -30
- package/types/services/console.d.ts +201 -14
- package/types/services/databases.d.ts +1731 -284
- package/types/services/domains.d.ts +904 -152
- package/types/services/functions.d.ts +616 -125
- package/types/services/graphql.d.ts +24 -2
- package/types/services/health.d.ts +245 -23
- package/types/services/messaging.d.ts +1660 -271
- package/types/services/migrations.d.ts +319 -53
- package/types/services/organizations.d.ts +635 -97
- package/types/services/project.d.ts +81 -12
- package/types/services/projects.d.ts +1308 -202
- package/types/services/proxy.d.ts +128 -19
- package/types/services/realtime.d.ts +118 -0
- package/types/services/sites.d.ts +577 -116
- package/types/services/storage.d.ts +354 -73
- package/types/services/tables-db.d.ts +2040 -0
- package/types/services/teams.d.ts +260 -44
- package/types/services/tokens.d.ts +80 -12
- package/types/services/users.d.ts +881 -124
- package/types/services/vcs.d.ts +179 -31
- package/docs/examples/domains/create-record-m-x.md +0 -18
- package/docs/examples/domains/create-record-s-r-v.md +0 -20
- package/docs/examples/domains/create-record-t-x-t.md +0 -17
- package/docs/examples/domains/update-record-a-a-a-a.md +0 -18
- package/docs/examples/domains/update-record-c-a-a.md +0 -18
- package/docs/examples/domains/update-record-c-n-a-m-e.md +0 -18
- package/docs/examples/domains/update-record-h-t-t-p-s.md +0 -18
- package/docs/examples/domains/update-record-m-x.md +0 -19
- package/docs/examples/domains/update-record-n-s.md +0 -18
- package/docs/examples/domains/update-record-s-r-v.md +0 -21
- package/docs/examples/domains/update-record-t-x-t.md +0 -18
- package/src/enums/billing-plan.ts +0 -5
- package/src/enums/database-usage-range.ts +0 -5
- package/src/enums/function-usage-range.ts +0 -5
- package/src/enums/site-usage-range.ts +0 -5
- package/src/enums/storage-usage-range.ts +0 -5
- package/types/enums/billing-plan.d.ts +0 -5
- package/types/enums/database-usage-range.d.ts +0 -5
- package/types/enums/function-usage-range.d.ts +0 -5
- package/types/enums/storage-usage-range.d.ts +0 -5
- package/types/enums/user-usage-range.d.ts +0 -5
- /package/docs/examples/health/{get-d-b.md → get-db.md} +0 -0
- /package/docs/examples/locale/{list-countries-e-u.md → list-countries-eu.md} +0 -0
- /package/src/enums/{s-m-t-p-secure.ts → smtp-secure.ts} +0 -0
- /package/src/enums/{v-c-s-detection-type.ts → vcs-detection-type.ts} +0 -0
- /package/types/enums/{s-m-t-p-secure.d.ts → smtp-secure.d.ts} +0 -0
- /package/types/enums/{v-c-s-detection-type.d.ts → vcs-detection-type.d.ts} +0 -0
|
@@ -1,45 +1,107 @@
|
|
|
1
1
|
import { Client, UploadProgress } from '../client';
|
|
2
2
|
import type { Models } from '../models';
|
|
3
3
|
import { Runtime } from '../enums/runtime';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { UsageRange } from '../enums/usage-range';
|
|
5
|
+
import { TemplateReferenceType } from '../enums/template-reference-type';
|
|
6
|
+
import { VCSReferenceType } from '../enums/vcs-reference-type';
|
|
6
7
|
import { DeploymentDownloadType } from '../enums/deployment-download-type';
|
|
7
8
|
import { ExecutionMethod } from '../enums/execution-method';
|
|
8
9
|
export declare class Functions {
|
|
9
10
|
client: Client;
|
|
10
11
|
constructor(client: Client);
|
|
11
12
|
/**
|
|
12
|
-
* Get a list of all the project
|
|
13
|
+
* Get a list of all the project's functions. You can use the query params to filter your results.
|
|
13
14
|
*
|
|
14
|
-
* @param {string[]} queries
|
|
15
|
-
* @param {string} search
|
|
15
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId
|
|
16
|
+
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
17
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
16
18
|
* @throws {AppwriteException}
|
|
17
19
|
* @returns {Promise<Models.FunctionList>}
|
|
18
20
|
*/
|
|
19
|
-
list(
|
|
21
|
+
list(params?: {
|
|
22
|
+
queries?: string[];
|
|
23
|
+
search?: string;
|
|
24
|
+
total?: boolean;
|
|
25
|
+
}): Promise<Models.FunctionList>;
|
|
26
|
+
/**
|
|
27
|
+
* Get a list of all the project's functions. You can use the query params to filter your results.
|
|
28
|
+
*
|
|
29
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId
|
|
30
|
+
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
31
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
32
|
+
* @throws {AppwriteException}
|
|
33
|
+
* @returns {Promise<Models.FunctionList>}
|
|
34
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
35
|
+
*/
|
|
36
|
+
list(queries?: string[], search?: string, total?: boolean): Promise<Models.FunctionList>;
|
|
37
|
+
/**
|
|
38
|
+
* Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
|
|
39
|
+
*
|
|
40
|
+
* @param {string} params.functionId - Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
41
|
+
* @param {string} params.name - Function name. Max length: 128 chars.
|
|
42
|
+
* @param {Runtime} params.runtime - Execution runtime.
|
|
43
|
+
* @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
44
|
+
* @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
|
|
45
|
+
* @param {string} params.schedule - Schedule CRON syntax.
|
|
46
|
+
* @param {number} params.timeout - Function maximum execution time in seconds.
|
|
47
|
+
* @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
|
|
48
|
+
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
49
|
+
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
50
|
+
* @param {string} params.commands - Build Commands.
|
|
51
|
+
* @param {string[]} params.scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
52
|
+
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
53
|
+
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function.
|
|
54
|
+
* @param {string} params.providerBranch - Production branch for the repo linked to the function.
|
|
55
|
+
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
56
|
+
* @param {string} params.providerRootDirectory - Path to function code in the linked repo.
|
|
57
|
+
* @param {string} params.specification - Runtime specification for the function and builds.
|
|
58
|
+
* @throws {AppwriteException}
|
|
59
|
+
* @returns {Promise<Models.Function>}
|
|
60
|
+
*/
|
|
61
|
+
create(params: {
|
|
62
|
+
functionId: string;
|
|
63
|
+
name: string;
|
|
64
|
+
runtime: Runtime;
|
|
65
|
+
execute?: string[];
|
|
66
|
+
events?: string[];
|
|
67
|
+
schedule?: string;
|
|
68
|
+
timeout?: number;
|
|
69
|
+
enabled?: boolean;
|
|
70
|
+
logging?: boolean;
|
|
71
|
+
entrypoint?: string;
|
|
72
|
+
commands?: string;
|
|
73
|
+
scopes?: string[];
|
|
74
|
+
installationId?: string;
|
|
75
|
+
providerRepositoryId?: string;
|
|
76
|
+
providerBranch?: string;
|
|
77
|
+
providerSilentMode?: boolean;
|
|
78
|
+
providerRootDirectory?: string;
|
|
79
|
+
specification?: string;
|
|
80
|
+
}): Promise<Models.Function>;
|
|
20
81
|
/**
|
|
21
82
|
* Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
|
|
22
83
|
*
|
|
23
|
-
* @param {string} functionId
|
|
24
|
-
* @param {string} name
|
|
25
|
-
* @param {Runtime} runtime
|
|
26
|
-
* @param {string[]} execute
|
|
27
|
-
* @param {string[]} events
|
|
28
|
-
* @param {string} schedule
|
|
29
|
-
* @param {number} timeout
|
|
30
|
-
* @param {boolean} enabled
|
|
31
|
-
* @param {boolean} logging
|
|
32
|
-
* @param {string} entrypoint
|
|
33
|
-
* @param {string} commands
|
|
34
|
-
* @param {string[]} scopes
|
|
35
|
-
* @param {string} installationId
|
|
36
|
-
* @param {string} providerRepositoryId
|
|
37
|
-
* @param {string} providerBranch
|
|
38
|
-
* @param {boolean} providerSilentMode
|
|
39
|
-
* @param {string} providerRootDirectory
|
|
40
|
-
* @param {string} specification
|
|
84
|
+
* @param {string} functionId - Function ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
|
|
85
|
+
* @param {string} name - Function name. Max length: 128 chars.
|
|
86
|
+
* @param {Runtime} runtime - Execution runtime.
|
|
87
|
+
* @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
88
|
+
* @param {string[]} events - Events list. Maximum of 100 events are allowed.
|
|
89
|
+
* @param {string} schedule - Schedule CRON syntax.
|
|
90
|
+
* @param {number} timeout - Function maximum execution time in seconds.
|
|
91
|
+
* @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
|
|
92
|
+
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
93
|
+
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
94
|
+
* @param {string} commands - Build Commands.
|
|
95
|
+
* @param {string[]} scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
96
|
+
* @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
|
|
97
|
+
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function.
|
|
98
|
+
* @param {string} providerBranch - Production branch for the repo linked to the function.
|
|
99
|
+
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
100
|
+
* @param {string} providerRootDirectory - Path to function code in the linked repo.
|
|
101
|
+
* @param {string} specification - Runtime specification for the function and builds.
|
|
41
102
|
* @throws {AppwriteException}
|
|
42
103
|
* @returns {Promise<Models.Function>}
|
|
104
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
43
105
|
*/
|
|
44
106
|
create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
45
107
|
/**
|
|
@@ -59,278 +121,707 @@ export declare class Functions {
|
|
|
59
121
|
/**
|
|
60
122
|
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
61
123
|
*
|
|
62
|
-
* @param {string[]} runtimes
|
|
63
|
-
* @param {string[]} useCases
|
|
64
|
-
* @param {number} limit
|
|
65
|
-
* @param {number} offset
|
|
124
|
+
* @param {string[]} params.runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
|
|
125
|
+
* @param {string[]} params.useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
|
|
126
|
+
* @param {number} params.limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
|
|
127
|
+
* @param {number} params.offset - Offset the list of returned templates. Maximum offset is 5000.
|
|
128
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
66
129
|
* @throws {AppwriteException}
|
|
67
130
|
* @returns {Promise<Models.TemplateFunctionList>}
|
|
68
131
|
*/
|
|
69
|
-
listTemplates(
|
|
132
|
+
listTemplates(params?: {
|
|
133
|
+
runtimes?: string[];
|
|
134
|
+
useCases?: string[];
|
|
135
|
+
limit?: number;
|
|
136
|
+
offset?: number;
|
|
137
|
+
total?: boolean;
|
|
138
|
+
}): Promise<Models.TemplateFunctionList>;
|
|
139
|
+
/**
|
|
140
|
+
* List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
141
|
+
*
|
|
142
|
+
* @param {string[]} runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
|
|
143
|
+
* @param {string[]} useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
|
|
144
|
+
* @param {number} limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
|
|
145
|
+
* @param {number} offset - Offset the list of returned templates. Maximum offset is 5000.
|
|
146
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
147
|
+
* @throws {AppwriteException}
|
|
148
|
+
* @returns {Promise<Models.TemplateFunctionList>}
|
|
149
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
150
|
+
*/
|
|
151
|
+
listTemplates(runtimes?: string[], useCases?: string[], limit?: number, offset?: number, total?: boolean): Promise<Models.TemplateFunctionList>;
|
|
152
|
+
/**
|
|
153
|
+
* Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
154
|
+
*
|
|
155
|
+
* @param {string} params.templateId - Template ID.
|
|
156
|
+
* @throws {AppwriteException}
|
|
157
|
+
* @returns {Promise<Models.TemplateFunction>}
|
|
158
|
+
*/
|
|
159
|
+
getTemplate(params: {
|
|
160
|
+
templateId: string;
|
|
161
|
+
}): Promise<Models.TemplateFunction>;
|
|
70
162
|
/**
|
|
71
163
|
* Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
|
|
72
164
|
*
|
|
73
|
-
* @param {string} templateId
|
|
165
|
+
* @param {string} templateId - Template ID.
|
|
74
166
|
* @throws {AppwriteException}
|
|
75
167
|
* @returns {Promise<Models.TemplateFunction>}
|
|
168
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
76
169
|
*/
|
|
77
170
|
getTemplate(templateId: string): Promise<Models.TemplateFunction>;
|
|
78
171
|
/**
|
|
79
172
|
* Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
80
173
|
*
|
|
81
|
-
* @param {
|
|
174
|
+
* @param {UsageRange} params.range - Date range.
|
|
82
175
|
* @throws {AppwriteException}
|
|
83
176
|
* @returns {Promise<Models.UsageFunctions>}
|
|
84
177
|
*/
|
|
85
|
-
listUsage(
|
|
178
|
+
listUsage(params?: {
|
|
179
|
+
range?: UsageRange;
|
|
180
|
+
}): Promise<Models.UsageFunctions>;
|
|
181
|
+
/**
|
|
182
|
+
* Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
183
|
+
*
|
|
184
|
+
* @param {UsageRange} range - Date range.
|
|
185
|
+
* @throws {AppwriteException}
|
|
186
|
+
* @returns {Promise<Models.UsageFunctions>}
|
|
187
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
188
|
+
*/
|
|
189
|
+
listUsage(range?: UsageRange): Promise<Models.UsageFunctions>;
|
|
86
190
|
/**
|
|
87
191
|
* Get a function by its unique ID.
|
|
88
192
|
*
|
|
89
|
-
* @param {string} functionId
|
|
193
|
+
* @param {string} params.functionId - Function ID.
|
|
90
194
|
* @throws {AppwriteException}
|
|
91
195
|
* @returns {Promise<Models.Function>}
|
|
92
196
|
*/
|
|
197
|
+
get(params: {
|
|
198
|
+
functionId: string;
|
|
199
|
+
}): Promise<Models.Function>;
|
|
200
|
+
/**
|
|
201
|
+
* Get a function by its unique ID.
|
|
202
|
+
*
|
|
203
|
+
* @param {string} functionId - Function ID.
|
|
204
|
+
* @throws {AppwriteException}
|
|
205
|
+
* @returns {Promise<Models.Function>}
|
|
206
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
207
|
+
*/
|
|
93
208
|
get(functionId: string): Promise<Models.Function>;
|
|
94
209
|
/**
|
|
95
210
|
* Update function by its unique ID.
|
|
96
211
|
*
|
|
97
|
-
* @param {string} functionId
|
|
98
|
-
* @param {string} name
|
|
99
|
-
* @param {Runtime} runtime
|
|
100
|
-
* @param {string[]} execute
|
|
101
|
-
* @param {string[]} events
|
|
102
|
-
* @param {string} schedule
|
|
103
|
-
* @param {number} timeout
|
|
104
|
-
* @param {boolean} enabled
|
|
105
|
-
* @param {boolean} logging
|
|
106
|
-
* @param {string} entrypoint
|
|
107
|
-
* @param {string} commands
|
|
108
|
-
* @param {string[]} scopes
|
|
109
|
-
* @param {string} installationId
|
|
110
|
-
* @param {string} providerRepositoryId
|
|
111
|
-
* @param {string} providerBranch
|
|
112
|
-
* @param {boolean} providerSilentMode
|
|
113
|
-
* @param {string} providerRootDirectory
|
|
114
|
-
* @param {string} specification
|
|
212
|
+
* @param {string} params.functionId - Function ID.
|
|
213
|
+
* @param {string} params.name - Function name. Max length: 128 chars.
|
|
214
|
+
* @param {Runtime} params.runtime - Execution runtime.
|
|
215
|
+
* @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
216
|
+
* @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
|
|
217
|
+
* @param {string} params.schedule - Schedule CRON syntax.
|
|
218
|
+
* @param {number} params.timeout - Maximum execution time in seconds.
|
|
219
|
+
* @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
|
|
220
|
+
* @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
221
|
+
* @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
222
|
+
* @param {string} params.commands - Build Commands.
|
|
223
|
+
* @param {string[]} params.scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
224
|
+
* @param {string} params.installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
225
|
+
* @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function
|
|
226
|
+
* @param {string} params.providerBranch - Production branch for the repo linked to the function
|
|
227
|
+
* @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
228
|
+
* @param {string} params.providerRootDirectory - Path to function code in the linked repo.
|
|
229
|
+
* @param {string} params.specification - Runtime specification for the function and builds.
|
|
230
|
+
* @throws {AppwriteException}
|
|
231
|
+
* @returns {Promise<Models.Function>}
|
|
232
|
+
*/
|
|
233
|
+
update(params: {
|
|
234
|
+
functionId: string;
|
|
235
|
+
name: string;
|
|
236
|
+
runtime?: Runtime;
|
|
237
|
+
execute?: string[];
|
|
238
|
+
events?: string[];
|
|
239
|
+
schedule?: string;
|
|
240
|
+
timeout?: number;
|
|
241
|
+
enabled?: boolean;
|
|
242
|
+
logging?: boolean;
|
|
243
|
+
entrypoint?: string;
|
|
244
|
+
commands?: string;
|
|
245
|
+
scopes?: string[];
|
|
246
|
+
installationId?: string;
|
|
247
|
+
providerRepositoryId?: string;
|
|
248
|
+
providerBranch?: string;
|
|
249
|
+
providerSilentMode?: boolean;
|
|
250
|
+
providerRootDirectory?: string;
|
|
251
|
+
specification?: string;
|
|
252
|
+
}): Promise<Models.Function>;
|
|
253
|
+
/**
|
|
254
|
+
* Update function by its unique ID.
|
|
255
|
+
*
|
|
256
|
+
* @param {string} functionId - Function ID.
|
|
257
|
+
* @param {string} name - Function name. Max length: 128 chars.
|
|
258
|
+
* @param {Runtime} runtime - Execution runtime.
|
|
259
|
+
* @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
260
|
+
* @param {string[]} events - Events list. Maximum of 100 events are allowed.
|
|
261
|
+
* @param {string} schedule - Schedule CRON syntax.
|
|
262
|
+
* @param {number} timeout - Maximum execution time in seconds.
|
|
263
|
+
* @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
|
|
264
|
+
* @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
|
|
265
|
+
* @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
|
|
266
|
+
* @param {string} commands - Build Commands.
|
|
267
|
+
* @param {string[]} scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
|
|
268
|
+
* @param {string} installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
|
|
269
|
+
* @param {string} providerRepositoryId - Repository ID of the repo linked to the function
|
|
270
|
+
* @param {string} providerBranch - Production branch for the repo linked to the function
|
|
271
|
+
* @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
|
|
272
|
+
* @param {string} providerRootDirectory - Path to function code in the linked repo.
|
|
273
|
+
* @param {string} specification - Runtime specification for the function and builds.
|
|
115
274
|
* @throws {AppwriteException}
|
|
116
275
|
* @returns {Promise<Models.Function>}
|
|
276
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
117
277
|
*/
|
|
118
278
|
update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
|
|
119
279
|
/**
|
|
120
280
|
* Delete a function by its unique ID.
|
|
121
281
|
*
|
|
122
|
-
* @param {string} functionId
|
|
282
|
+
* @param {string} params.functionId - Function ID.
|
|
283
|
+
* @throws {AppwriteException}
|
|
284
|
+
* @returns {Promise<{}>}
|
|
285
|
+
*/
|
|
286
|
+
delete(params: {
|
|
287
|
+
functionId: string;
|
|
288
|
+
}): Promise<{}>;
|
|
289
|
+
/**
|
|
290
|
+
* Delete a function by its unique ID.
|
|
291
|
+
*
|
|
292
|
+
* @param {string} functionId - Function ID.
|
|
123
293
|
* @throws {AppwriteException}
|
|
124
294
|
* @returns {Promise<{}>}
|
|
295
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
125
296
|
*/
|
|
126
297
|
delete(functionId: string): Promise<{}>;
|
|
127
298
|
/**
|
|
128
299
|
* Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
|
|
129
300
|
*
|
|
130
|
-
* @param {string} functionId
|
|
131
|
-
* @param {string} deploymentId
|
|
301
|
+
* @param {string} params.functionId - Function ID.
|
|
302
|
+
* @param {string} params.deploymentId - Deployment ID.
|
|
303
|
+
* @throws {AppwriteException}
|
|
304
|
+
* @returns {Promise<Models.Function>}
|
|
305
|
+
*/
|
|
306
|
+
updateFunctionDeployment(params: {
|
|
307
|
+
functionId: string;
|
|
308
|
+
deploymentId: string;
|
|
309
|
+
}): Promise<Models.Function>;
|
|
310
|
+
/**
|
|
311
|
+
* Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
|
|
312
|
+
*
|
|
313
|
+
* @param {string} functionId - Function ID.
|
|
314
|
+
* @param {string} deploymentId - Deployment ID.
|
|
132
315
|
* @throws {AppwriteException}
|
|
133
316
|
* @returns {Promise<Models.Function>}
|
|
317
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
134
318
|
*/
|
|
135
319
|
updateFunctionDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
|
|
136
320
|
/**
|
|
137
|
-
* Get a list of all the function
|
|
321
|
+
* Get a list of all the function's code deployments. You can use the query params to filter your results.
|
|
138
322
|
*
|
|
139
|
-
* @param {string} functionId
|
|
140
|
-
* @param {string[]} queries
|
|
141
|
-
* @param {string} search
|
|
323
|
+
* @param {string} params.functionId - Function ID.
|
|
324
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
|
|
325
|
+
* @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
|
|
326
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
142
327
|
* @throws {AppwriteException}
|
|
143
328
|
* @returns {Promise<Models.DeploymentList>}
|
|
144
329
|
*/
|
|
145
|
-
listDeployments(
|
|
330
|
+
listDeployments(params: {
|
|
331
|
+
functionId: string;
|
|
332
|
+
queries?: string[];
|
|
333
|
+
search?: string;
|
|
334
|
+
total?: boolean;
|
|
335
|
+
}): Promise<Models.DeploymentList>;
|
|
336
|
+
/**
|
|
337
|
+
* Get a list of all the function's code deployments. You can use the query params to filter your results.
|
|
338
|
+
*
|
|
339
|
+
* @param {string} functionId - Function ID.
|
|
340
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
|
|
341
|
+
* @param {string} search - Search term to filter your list results. Max length: 256 chars.
|
|
342
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
343
|
+
* @throws {AppwriteException}
|
|
344
|
+
* @returns {Promise<Models.DeploymentList>}
|
|
345
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
346
|
+
*/
|
|
347
|
+
listDeployments(functionId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.DeploymentList>;
|
|
348
|
+
/**
|
|
349
|
+
* Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
|
|
350
|
+
*
|
|
351
|
+
* This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
|
|
352
|
+
*
|
|
353
|
+
* Use the "command" param to set the entrypoint used to execute your code.
|
|
354
|
+
*
|
|
355
|
+
* @param {string} params.functionId - Function ID.
|
|
356
|
+
* @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
357
|
+
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
358
|
+
* @param {string} params.entrypoint - Entrypoint File.
|
|
359
|
+
* @param {string} params.commands - Build Commands.
|
|
360
|
+
* @throws {AppwriteException}
|
|
361
|
+
* @returns {Promise<Models.Deployment>}
|
|
362
|
+
*/
|
|
363
|
+
createDeployment(params: {
|
|
364
|
+
functionId: string;
|
|
365
|
+
code: File;
|
|
366
|
+
activate: boolean;
|
|
367
|
+
entrypoint?: string;
|
|
368
|
+
commands?: string;
|
|
369
|
+
onProgress?: (progress: UploadProgress) => void;
|
|
370
|
+
}): Promise<Models.Deployment>;
|
|
146
371
|
/**
|
|
147
|
-
* Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you
|
|
372
|
+
* Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
|
|
148
373
|
*
|
|
149
374
|
* This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
|
|
150
375
|
*
|
|
151
|
-
* Use the
|
|
376
|
+
* Use the "command" param to set the entrypoint used to execute your code.
|
|
152
377
|
*
|
|
153
|
-
* @param {string} functionId
|
|
154
|
-
* @param {File} code
|
|
155
|
-
* @param {boolean} activate
|
|
156
|
-
* @param {string} entrypoint
|
|
157
|
-
* @param {string} commands
|
|
378
|
+
* @param {string} functionId - Function ID.
|
|
379
|
+
* @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
|
|
380
|
+
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
381
|
+
* @param {string} entrypoint - Entrypoint File.
|
|
382
|
+
* @param {string} commands - Build Commands.
|
|
158
383
|
* @throws {AppwriteException}
|
|
159
384
|
* @returns {Promise<Models.Deployment>}
|
|
385
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
160
386
|
*/
|
|
161
387
|
createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
|
|
162
388
|
/**
|
|
163
|
-
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment
|
|
389
|
+
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
164
390
|
*
|
|
165
|
-
* @param {string} functionId
|
|
166
|
-
* @param {string} deploymentId
|
|
167
|
-
* @param {string} buildId
|
|
391
|
+
* @param {string} params.functionId - Function ID.
|
|
392
|
+
* @param {string} params.deploymentId - Deployment ID.
|
|
393
|
+
* @param {string} params.buildId - Build unique ID.
|
|
168
394
|
* @throws {AppwriteException}
|
|
169
395
|
* @returns {Promise<Models.Deployment>}
|
|
170
396
|
*/
|
|
397
|
+
createDuplicateDeployment(params: {
|
|
398
|
+
functionId: string;
|
|
399
|
+
deploymentId: string;
|
|
400
|
+
buildId?: string;
|
|
401
|
+
}): Promise<Models.Deployment>;
|
|
402
|
+
/**
|
|
403
|
+
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
|
|
404
|
+
*
|
|
405
|
+
* @param {string} functionId - Function ID.
|
|
406
|
+
* @param {string} deploymentId - Deployment ID.
|
|
407
|
+
* @param {string} buildId - Build unique ID.
|
|
408
|
+
* @throws {AppwriteException}
|
|
409
|
+
* @returns {Promise<Models.Deployment>}
|
|
410
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
411
|
+
*/
|
|
171
412
|
createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;
|
|
172
413
|
/**
|
|
173
414
|
* Create a deployment based on a template.
|
|
174
415
|
*
|
|
175
|
-
* Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/
|
|
416
|
+
* Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.
|
|
417
|
+
*
|
|
418
|
+
* @param {string} params.functionId - Function ID.
|
|
419
|
+
* @param {string} params.repository - Repository name of the template.
|
|
420
|
+
* @param {string} params.owner - The name of the owner of the template.
|
|
421
|
+
* @param {string} params.rootDirectory - Path to function code in the template repo.
|
|
422
|
+
* @param {TemplateReferenceType} params.type - Type for the reference provided. Can be commit, branch, or tag
|
|
423
|
+
* @param {string} params.reference - Reference value, can be a commit hash, branch name, or release tag
|
|
424
|
+
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
425
|
+
* @throws {AppwriteException}
|
|
426
|
+
* @returns {Promise<Models.Deployment>}
|
|
427
|
+
*/
|
|
428
|
+
createTemplateDeployment(params: {
|
|
429
|
+
functionId: string;
|
|
430
|
+
repository: string;
|
|
431
|
+
owner: string;
|
|
432
|
+
rootDirectory: string;
|
|
433
|
+
type: TemplateReferenceType;
|
|
434
|
+
reference: string;
|
|
435
|
+
activate?: boolean;
|
|
436
|
+
}): Promise<Models.Deployment>;
|
|
437
|
+
/**
|
|
438
|
+
* Create a deployment based on a template.
|
|
439
|
+
*
|
|
440
|
+
* Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.
|
|
441
|
+
*
|
|
442
|
+
* @param {string} functionId - Function ID.
|
|
443
|
+
* @param {string} repository - Repository name of the template.
|
|
444
|
+
* @param {string} owner - The name of the owner of the template.
|
|
445
|
+
* @param {string} rootDirectory - Path to function code in the template repo.
|
|
446
|
+
* @param {TemplateReferenceType} type - Type for the reference provided. Can be commit, branch, or tag
|
|
447
|
+
* @param {string} reference - Reference value, can be a commit hash, branch name, or release tag
|
|
448
|
+
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
449
|
+
* @throws {AppwriteException}
|
|
450
|
+
* @returns {Promise<Models.Deployment>}
|
|
451
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
452
|
+
*/
|
|
453
|
+
createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;
|
|
454
|
+
/**
|
|
455
|
+
* Create a deployment when a function is connected to VCS.
|
|
456
|
+
*
|
|
457
|
+
* This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
176
458
|
*
|
|
177
|
-
* @param {string} functionId
|
|
178
|
-
* @param {
|
|
179
|
-
* @param {string}
|
|
180
|
-
* @param {
|
|
181
|
-
* @param {string} version
|
|
182
|
-
* @param {boolean} activate
|
|
459
|
+
* @param {string} params.functionId - Function ID.
|
|
460
|
+
* @param {VCSReferenceType} params.type - Type of reference passed. Allowed values are: branch, commit
|
|
461
|
+
* @param {string} params.reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
|
|
462
|
+
* @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
|
|
183
463
|
* @throws {AppwriteException}
|
|
184
464
|
* @returns {Promise<Models.Deployment>}
|
|
185
465
|
*/
|
|
186
|
-
|
|
466
|
+
createVcsDeployment(params: {
|
|
467
|
+
functionId: string;
|
|
468
|
+
type: VCSReferenceType;
|
|
469
|
+
reference: string;
|
|
470
|
+
activate?: boolean;
|
|
471
|
+
}): Promise<Models.Deployment>;
|
|
187
472
|
/**
|
|
188
473
|
* Create a deployment when a function is connected to VCS.
|
|
189
474
|
*
|
|
190
475
|
* This endpoint lets you create deployment from a branch, commit, or a tag.
|
|
191
476
|
*
|
|
192
|
-
* @param {string} functionId
|
|
193
|
-
* @param {
|
|
194
|
-
* @param {string} reference
|
|
195
|
-
* @param {boolean} activate
|
|
477
|
+
* @param {string} functionId - Function ID.
|
|
478
|
+
* @param {VCSReferenceType} type - Type of reference passed. Allowed values are: branch, commit
|
|
479
|
+
* @param {string} reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
|
|
480
|
+
* @param {boolean} activate - Automatically activate the deployment when it is finished building.
|
|
196
481
|
* @throws {AppwriteException}
|
|
197
482
|
* @returns {Promise<Models.Deployment>}
|
|
483
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
198
484
|
*/
|
|
199
|
-
createVcsDeployment(functionId: string, type:
|
|
485
|
+
createVcsDeployment(functionId: string, type: VCSReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;
|
|
200
486
|
/**
|
|
201
487
|
* Get a function deployment by its unique ID.
|
|
202
488
|
*
|
|
203
|
-
* @param {string} functionId
|
|
204
|
-
* @param {string} deploymentId
|
|
489
|
+
* @param {string} params.functionId - Function ID.
|
|
490
|
+
* @param {string} params.deploymentId - Deployment ID.
|
|
205
491
|
* @throws {AppwriteException}
|
|
206
492
|
* @returns {Promise<Models.Deployment>}
|
|
207
493
|
*/
|
|
494
|
+
getDeployment(params: {
|
|
495
|
+
functionId: string;
|
|
496
|
+
deploymentId: string;
|
|
497
|
+
}): Promise<Models.Deployment>;
|
|
498
|
+
/**
|
|
499
|
+
* Get a function deployment by its unique ID.
|
|
500
|
+
*
|
|
501
|
+
* @param {string} functionId - Function ID.
|
|
502
|
+
* @param {string} deploymentId - Deployment ID.
|
|
503
|
+
* @throws {AppwriteException}
|
|
504
|
+
* @returns {Promise<Models.Deployment>}
|
|
505
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
506
|
+
*/
|
|
208
507
|
getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
209
508
|
/**
|
|
210
509
|
* Delete a code deployment by its unique ID.
|
|
211
510
|
*
|
|
212
|
-
* @param {string} functionId
|
|
213
|
-
* @param {string} deploymentId
|
|
511
|
+
* @param {string} params.functionId - Function ID.
|
|
512
|
+
* @param {string} params.deploymentId - Deployment ID.
|
|
214
513
|
* @throws {AppwriteException}
|
|
215
514
|
* @returns {Promise<{}>}
|
|
216
515
|
*/
|
|
516
|
+
deleteDeployment(params: {
|
|
517
|
+
functionId: string;
|
|
518
|
+
deploymentId: string;
|
|
519
|
+
}): Promise<{}>;
|
|
520
|
+
/**
|
|
521
|
+
* Delete a code deployment by its unique ID.
|
|
522
|
+
*
|
|
523
|
+
* @param {string} functionId - Function ID.
|
|
524
|
+
* @param {string} deploymentId - Deployment ID.
|
|
525
|
+
* @throws {AppwriteException}
|
|
526
|
+
* @returns {Promise<{}>}
|
|
527
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
528
|
+
*/
|
|
217
529
|
deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
|
|
218
530
|
/**
|
|
219
|
-
* Get a function deployment content by its unique ID. The endpoint response return with a
|
|
531
|
+
* Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
|
|
532
|
+
*
|
|
533
|
+
* @param {string} params.functionId - Function ID.
|
|
534
|
+
* @param {string} params.deploymentId - Deployment ID.
|
|
535
|
+
* @param {DeploymentDownloadType} params.type - Deployment file to download. Can be: "source", "output".
|
|
536
|
+
* @throws {AppwriteException}
|
|
537
|
+
* @returns {string}
|
|
538
|
+
*/
|
|
539
|
+
getDeploymentDownload(params: {
|
|
540
|
+
functionId: string;
|
|
541
|
+
deploymentId: string;
|
|
542
|
+
type?: DeploymentDownloadType;
|
|
543
|
+
}): string;
|
|
544
|
+
/**
|
|
545
|
+
* Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
|
|
220
546
|
*
|
|
221
|
-
* @param {string} functionId
|
|
222
|
-
* @param {string} deploymentId
|
|
223
|
-
* @param {DeploymentDownloadType} type
|
|
547
|
+
* @param {string} functionId - Function ID.
|
|
548
|
+
* @param {string} deploymentId - Deployment ID.
|
|
549
|
+
* @param {DeploymentDownloadType} type - Deployment file to download. Can be: "source", "output".
|
|
224
550
|
* @throws {AppwriteException}
|
|
225
551
|
* @returns {string}
|
|
552
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
226
553
|
*/
|
|
227
554
|
getDeploymentDownload(functionId: string, deploymentId: string, type?: DeploymentDownloadType): string;
|
|
228
555
|
/**
|
|
229
|
-
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn
|
|
556
|
+
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
|
|
557
|
+
*
|
|
558
|
+
* @param {string} params.functionId - Function ID.
|
|
559
|
+
* @param {string} params.deploymentId - Deployment ID.
|
|
560
|
+
* @throws {AppwriteException}
|
|
561
|
+
* @returns {Promise<Models.Deployment>}
|
|
562
|
+
*/
|
|
563
|
+
updateDeploymentStatus(params: {
|
|
564
|
+
functionId: string;
|
|
565
|
+
deploymentId: string;
|
|
566
|
+
}): Promise<Models.Deployment>;
|
|
567
|
+
/**
|
|
568
|
+
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
|
|
230
569
|
*
|
|
231
|
-
* @param {string} functionId
|
|
232
|
-
* @param {string} deploymentId
|
|
570
|
+
* @param {string} functionId - Function ID.
|
|
571
|
+
* @param {string} deploymentId - Deployment ID.
|
|
233
572
|
* @throws {AppwriteException}
|
|
234
573
|
* @returns {Promise<Models.Deployment>}
|
|
574
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
235
575
|
*/
|
|
236
576
|
updateDeploymentStatus(functionId: string, deploymentId: string): Promise<Models.Deployment>;
|
|
237
577
|
/**
|
|
238
578
|
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
239
579
|
*
|
|
240
|
-
* @param {string} functionId
|
|
241
|
-
* @param {string[]} queries
|
|
580
|
+
* @param {string} params.functionId - Function ID.
|
|
581
|
+
* @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
|
582
|
+
* @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
242
583
|
* @throws {AppwriteException}
|
|
243
584
|
* @returns {Promise<Models.ExecutionList>}
|
|
244
585
|
*/
|
|
245
|
-
listExecutions(
|
|
586
|
+
listExecutions(params: {
|
|
587
|
+
functionId: string;
|
|
588
|
+
queries?: string[];
|
|
589
|
+
total?: boolean;
|
|
590
|
+
}): Promise<Models.ExecutionList>;
|
|
591
|
+
/**
|
|
592
|
+
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
|
|
593
|
+
*
|
|
594
|
+
* @param {string} functionId - Function ID.
|
|
595
|
+
* @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
|
|
596
|
+
* @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
|
|
597
|
+
* @throws {AppwriteException}
|
|
598
|
+
* @returns {Promise<Models.ExecutionList>}
|
|
599
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
600
|
+
*/
|
|
601
|
+
listExecutions(functionId: string, queries?: string[], total?: boolean): Promise<Models.ExecutionList>;
|
|
246
602
|
/**
|
|
247
603
|
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
|
|
248
604
|
*
|
|
249
|
-
* @param {string} functionId
|
|
250
|
-
* @param {string} body
|
|
251
|
-
* @param {boolean} async
|
|
252
|
-
* @param {string} xpath
|
|
253
|
-
* @param {ExecutionMethod} method
|
|
254
|
-
* @param {object} headers
|
|
255
|
-
* @param {string} scheduledAt
|
|
605
|
+
* @param {string} params.functionId - Function ID.
|
|
606
|
+
* @param {string} params.body - HTTP body of execution. Default value is empty string.
|
|
607
|
+
* @param {boolean} params.async - Execute code in the background. Default value is false.
|
|
608
|
+
* @param {string} params.xpath - HTTP path of execution. Path can include query params. Default value is /
|
|
609
|
+
* @param {ExecutionMethod} params.method - HTTP method of execution. Default value is POST.
|
|
610
|
+
* @param {object} params.headers - HTTP headers of execution. Defaults to empty.
|
|
611
|
+
* @param {string} params.scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
|
|
256
612
|
* @throws {AppwriteException}
|
|
257
613
|
* @returns {Promise<Models.Execution>}
|
|
258
614
|
*/
|
|
615
|
+
createExecution(params: {
|
|
616
|
+
functionId: string;
|
|
617
|
+
body?: string;
|
|
618
|
+
async?: boolean;
|
|
619
|
+
xpath?: string;
|
|
620
|
+
method?: ExecutionMethod;
|
|
621
|
+
headers?: object;
|
|
622
|
+
scheduledAt?: string;
|
|
623
|
+
}): Promise<Models.Execution>;
|
|
624
|
+
/**
|
|
625
|
+
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
|
|
626
|
+
*
|
|
627
|
+
* @param {string} functionId - Function ID.
|
|
628
|
+
* @param {string} body - HTTP body of execution. Default value is empty string.
|
|
629
|
+
* @param {boolean} async - Execute code in the background. Default value is false.
|
|
630
|
+
* @param {string} xpath - HTTP path of execution. Path can include query params. Default value is /
|
|
631
|
+
* @param {ExecutionMethod} method - HTTP method of execution. Default value is POST.
|
|
632
|
+
* @param {object} headers - HTTP headers of execution. Defaults to empty.
|
|
633
|
+
* @param {string} scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
|
|
634
|
+
* @throws {AppwriteException}
|
|
635
|
+
* @returns {Promise<Models.Execution>}
|
|
636
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
637
|
+
*/
|
|
259
638
|
createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
|
|
260
639
|
/**
|
|
261
640
|
* Get a function execution log by its unique ID.
|
|
262
641
|
*
|
|
263
|
-
* @param {string} functionId
|
|
264
|
-
* @param {string} executionId
|
|
642
|
+
* @param {string} params.functionId - Function ID.
|
|
643
|
+
* @param {string} params.executionId - Execution ID.
|
|
644
|
+
* @throws {AppwriteException}
|
|
645
|
+
* @returns {Promise<Models.Execution>}
|
|
646
|
+
*/
|
|
647
|
+
getExecution(params: {
|
|
648
|
+
functionId: string;
|
|
649
|
+
executionId: string;
|
|
650
|
+
}): Promise<Models.Execution>;
|
|
651
|
+
/**
|
|
652
|
+
* Get a function execution log by its unique ID.
|
|
653
|
+
*
|
|
654
|
+
* @param {string} functionId - Function ID.
|
|
655
|
+
* @param {string} executionId - Execution ID.
|
|
265
656
|
* @throws {AppwriteException}
|
|
266
657
|
* @returns {Promise<Models.Execution>}
|
|
658
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
267
659
|
*/
|
|
268
660
|
getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
|
|
269
661
|
/**
|
|
270
662
|
* Delete a function execution by its unique ID.
|
|
271
663
|
*
|
|
272
|
-
* @param {string} functionId
|
|
273
|
-
* @param {string} executionId
|
|
664
|
+
* @param {string} params.functionId - Function ID.
|
|
665
|
+
* @param {string} params.executionId - Execution ID.
|
|
274
666
|
* @throws {AppwriteException}
|
|
275
667
|
* @returns {Promise<{}>}
|
|
276
668
|
*/
|
|
669
|
+
deleteExecution(params: {
|
|
670
|
+
functionId: string;
|
|
671
|
+
executionId: string;
|
|
672
|
+
}): Promise<{}>;
|
|
673
|
+
/**
|
|
674
|
+
* Delete a function execution by its unique ID.
|
|
675
|
+
*
|
|
676
|
+
* @param {string} functionId - Function ID.
|
|
677
|
+
* @param {string} executionId - Execution ID.
|
|
678
|
+
* @throws {AppwriteException}
|
|
679
|
+
* @returns {Promise<{}>}
|
|
680
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
681
|
+
*/
|
|
277
682
|
deleteExecution(functionId: string, executionId: string): Promise<{}>;
|
|
278
683
|
/**
|
|
279
684
|
* Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
280
685
|
*
|
|
281
|
-
* @param {string} functionId
|
|
282
|
-
* @param {
|
|
686
|
+
* @param {string} params.functionId - Function ID.
|
|
687
|
+
* @param {UsageRange} params.range - Date range.
|
|
283
688
|
* @throws {AppwriteException}
|
|
284
689
|
* @returns {Promise<Models.UsageFunction>}
|
|
285
690
|
*/
|
|
286
|
-
getUsage(
|
|
691
|
+
getUsage(params: {
|
|
692
|
+
functionId: string;
|
|
693
|
+
range?: UsageRange;
|
|
694
|
+
}): Promise<Models.UsageFunction>;
|
|
695
|
+
/**
|
|
696
|
+
* Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
|
|
697
|
+
*
|
|
698
|
+
* @param {string} functionId - Function ID.
|
|
699
|
+
* @param {UsageRange} range - Date range.
|
|
700
|
+
* @throws {AppwriteException}
|
|
701
|
+
* @returns {Promise<Models.UsageFunction>}
|
|
702
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
703
|
+
*/
|
|
704
|
+
getUsage(functionId: string, range?: UsageRange): Promise<Models.UsageFunction>;
|
|
705
|
+
/**
|
|
706
|
+
* Get a list of all variables of a specific function.
|
|
707
|
+
*
|
|
708
|
+
* @param {string} params.functionId - Function unique ID.
|
|
709
|
+
* @throws {AppwriteException}
|
|
710
|
+
* @returns {Promise<Models.VariableList>}
|
|
711
|
+
*/
|
|
712
|
+
listVariables(params: {
|
|
713
|
+
functionId: string;
|
|
714
|
+
}): Promise<Models.VariableList>;
|
|
287
715
|
/**
|
|
288
716
|
* Get a list of all variables of a specific function.
|
|
289
717
|
*
|
|
290
|
-
* @param {string} functionId
|
|
718
|
+
* @param {string} functionId - Function unique ID.
|
|
291
719
|
* @throws {AppwriteException}
|
|
292
720
|
* @returns {Promise<Models.VariableList>}
|
|
721
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
293
722
|
*/
|
|
294
723
|
listVariables(functionId: string): Promise<Models.VariableList>;
|
|
295
724
|
/**
|
|
296
725
|
* Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
|
|
297
726
|
*
|
|
298
|
-
* @param {string} functionId
|
|
299
|
-
* @param {string} key
|
|
300
|
-
* @param {string} value
|
|
301
|
-
* @param {boolean} secret
|
|
727
|
+
* @param {string} params.functionId - Function unique ID.
|
|
728
|
+
* @param {string} params.key - Variable key. Max length: 255 chars.
|
|
729
|
+
* @param {string} params.value - Variable value. Max length: 8192 chars.
|
|
730
|
+
* @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
|
|
731
|
+
* @throws {AppwriteException}
|
|
732
|
+
* @returns {Promise<Models.Variable>}
|
|
733
|
+
*/
|
|
734
|
+
createVariable(params: {
|
|
735
|
+
functionId: string;
|
|
736
|
+
key: string;
|
|
737
|
+
value: string;
|
|
738
|
+
secret?: boolean;
|
|
739
|
+
}): Promise<Models.Variable>;
|
|
740
|
+
/**
|
|
741
|
+
* Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
|
|
742
|
+
*
|
|
743
|
+
* @param {string} functionId - Function unique ID.
|
|
744
|
+
* @param {string} key - Variable key. Max length: 255 chars.
|
|
745
|
+
* @param {string} value - Variable value. Max length: 8192 chars.
|
|
746
|
+
* @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
|
|
302
747
|
* @throws {AppwriteException}
|
|
303
748
|
* @returns {Promise<Models.Variable>}
|
|
749
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
304
750
|
*/
|
|
305
751
|
createVariable(functionId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
|
|
306
752
|
/**
|
|
307
753
|
* Get a variable by its unique ID.
|
|
308
754
|
*
|
|
309
|
-
* @param {string} functionId
|
|
310
|
-
* @param {string} variableId
|
|
755
|
+
* @param {string} params.functionId - Function unique ID.
|
|
756
|
+
* @param {string} params.variableId - Variable unique ID.
|
|
311
757
|
* @throws {AppwriteException}
|
|
312
758
|
* @returns {Promise<Models.Variable>}
|
|
313
759
|
*/
|
|
760
|
+
getVariable(params: {
|
|
761
|
+
functionId: string;
|
|
762
|
+
variableId: string;
|
|
763
|
+
}): Promise<Models.Variable>;
|
|
764
|
+
/**
|
|
765
|
+
* Get a variable by its unique ID.
|
|
766
|
+
*
|
|
767
|
+
* @param {string} functionId - Function unique ID.
|
|
768
|
+
* @param {string} variableId - Variable unique ID.
|
|
769
|
+
* @throws {AppwriteException}
|
|
770
|
+
* @returns {Promise<Models.Variable>}
|
|
771
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
772
|
+
*/
|
|
314
773
|
getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
|
|
315
774
|
/**
|
|
316
775
|
* Update variable by its unique ID.
|
|
317
776
|
*
|
|
318
|
-
* @param {string} functionId
|
|
319
|
-
* @param {string} variableId
|
|
320
|
-
* @param {string} key
|
|
321
|
-
* @param {string} value
|
|
322
|
-
* @param {boolean} secret
|
|
777
|
+
* @param {string} params.functionId - Function unique ID.
|
|
778
|
+
* @param {string} params.variableId - Variable unique ID.
|
|
779
|
+
* @param {string} params.key - Variable key. Max length: 255 chars.
|
|
780
|
+
* @param {string} params.value - Variable value. Max length: 8192 chars.
|
|
781
|
+
* @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
|
|
323
782
|
* @throws {AppwriteException}
|
|
324
783
|
* @returns {Promise<Models.Variable>}
|
|
325
784
|
*/
|
|
785
|
+
updateVariable(params: {
|
|
786
|
+
functionId: string;
|
|
787
|
+
variableId: string;
|
|
788
|
+
key: string;
|
|
789
|
+
value?: string;
|
|
790
|
+
secret?: boolean;
|
|
791
|
+
}): Promise<Models.Variable>;
|
|
792
|
+
/**
|
|
793
|
+
* Update variable by its unique ID.
|
|
794
|
+
*
|
|
795
|
+
* @param {string} functionId - Function unique ID.
|
|
796
|
+
* @param {string} variableId - Variable unique ID.
|
|
797
|
+
* @param {string} key - Variable key. Max length: 255 chars.
|
|
798
|
+
* @param {string} value - Variable value. Max length: 8192 chars.
|
|
799
|
+
* @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
|
|
800
|
+
* @throws {AppwriteException}
|
|
801
|
+
* @returns {Promise<Models.Variable>}
|
|
802
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
803
|
+
*/
|
|
326
804
|
updateVariable(functionId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
|
|
327
805
|
/**
|
|
328
806
|
* Delete a variable by its unique ID.
|
|
329
807
|
*
|
|
330
|
-
* @param {string} functionId
|
|
331
|
-
* @param {string} variableId
|
|
808
|
+
* @param {string} params.functionId - Function unique ID.
|
|
809
|
+
* @param {string} params.variableId - Variable unique ID.
|
|
810
|
+
* @throws {AppwriteException}
|
|
811
|
+
* @returns {Promise<{}>}
|
|
812
|
+
*/
|
|
813
|
+
deleteVariable(params: {
|
|
814
|
+
functionId: string;
|
|
815
|
+
variableId: string;
|
|
816
|
+
}): Promise<{}>;
|
|
817
|
+
/**
|
|
818
|
+
* Delete a variable by its unique ID.
|
|
819
|
+
*
|
|
820
|
+
* @param {string} functionId - Function unique ID.
|
|
821
|
+
* @param {string} variableId - Variable unique ID.
|
|
332
822
|
* @throws {AppwriteException}
|
|
333
823
|
* @returns {Promise<{}>}
|
|
824
|
+
* @deprecated Use the object parameter style method for a better developer experience.
|
|
334
825
|
*/
|
|
335
826
|
deleteVariable(functionId: string, variableId: string): Promise<{}>;
|
|
336
827
|
}
|