apify-client 3.0.0-beta.8 → 3.0.0-beta.80
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/README.md +10 -2
- package/dist/apify_api_error.d.ts +13 -27
- package/dist/apify_api_error.js +33 -23
- package/dist/apify_client.d.ts +125 -10
- package/dist/apify_client.js +133 -48
- package/dist/apify_client_error.d.ts +10 -0
- package/dist/apify_client_error.js +10 -0
- package/dist/base/api_client.d.ts +7 -7
- package/dist/base/api_client.js +36 -36
- package/dist/base/resource_client.d.ts +21 -8
- package/dist/base/resource_client.js +67 -33
- package/dist/base/resource_collection_client.d.ts +12 -4
- package/dist/base/resource_collection_client.js +34 -11
- package/dist/body_parser.d.ts +3 -4
- package/dist/body_parser.js +19 -26
- package/dist/bundle.js +27 -22
- package/dist/bundle.js.map +1 -1
- package/dist/generated/api.d.ts +3033 -971
- package/dist/generated/schemas.d.ts +2340 -932
- package/dist/generated/schemas.js +570 -229
- package/dist/http_clients/axios.d.ts +60 -0
- package/dist/http_clients/axios.js +117 -0
- package/dist/http_clients/base.d.ts +336 -0
- package/dist/http_clients/base.js +612 -0
- package/dist/http_clients/index.d.ts +4 -0
- package/dist/http_clients/index.js +2 -0
- package/dist/http_compressors/base.d.ts +40 -0
- package/dist/http_compressors/base.js +9 -0
- package/dist/http_compressors/brotli.d.ts +33 -0
- package/dist/http_compressors/brotli.js +39 -0
- package/dist/http_compressors/gzip.d.ts +33 -0
- package/dist/http_compressors/gzip.js +39 -0
- package/dist/http_compressors/index.d.ts +6 -0
- package/dist/http_compressors/index.js +2 -0
- package/dist/http_compressors/resolve.d.ts +23 -0
- package/dist/http_compressors/resolve.js +27 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -1
- package/dist/invalid_response_body_error.d.ts +14 -0
- package/dist/invalid_response_body_error.js +18 -0
- package/dist/models.d.ts +166 -243
- package/dist/models.js +6 -4
- package/dist/resource_clients/actor.d.ts +74 -34
- package/dist/resource_clients/actor.js +87 -56
- package/dist/resource_clients/actor_collection.d.ts +18 -12
- package/dist/resource_clients/actor_collection.js +11 -3
- package/dist/resource_clients/actor_env_var.d.ts +11 -4
- package/dist/resource_clients/actor_env_var.js +16 -6
- package/dist/resource_clients/actor_env_var_collection.d.ts +9 -4
- package/dist/resource_clients/actor_env_var_collection.js +11 -4
- package/dist/resource_clients/actor_version.d.ts +20 -5
- package/dist/resource_clients/actor_version.js +19 -9
- package/dist/resource_clients/actor_version_collection.d.ts +11 -4
- package/dist/resource_clients/actor_version_collection.js +13 -4
- package/dist/resource_clients/build.d.ts +20 -7
- package/dist/resource_clients/build.js +35 -15
- package/dist/resource_clients/build_collection.d.ts +7 -5
- package/dist/resource_clients/build_collection.js +4 -1
- package/dist/resource_clients/dataset.d.ts +81 -36
- package/dist/resource_clients/dataset.js +109 -120
- package/dist/resource_clients/dataset_collection.d.ts +10 -6
- package/dist/resource_clients/dataset_collection.js +13 -2
- package/dist/resource_clients/key_value_store.d.ts +106 -25
- package/dist/resource_clients/key_value_store.js +131 -50
- package/dist/resource_clients/key_value_store_collection.d.ts +10 -6
- package/dist/resource_clients/key_value_store_collection.js +13 -2
- package/dist/resource_clients/log.d.ts +40 -21
- package/dist/resource_clients/log.js +144 -66
- package/dist/resource_clients/request_queue.d.ts +76 -31
- package/dist/resource_clients/request_queue.js +178 -93
- package/dist/resource_clients/request_queue_collection.d.ts +9 -5
- package/dist/resource_clients/request_queue_collection.js +9 -3
- package/dist/resource_clients/run.d.ts +126 -28
- package/dist/resource_clients/run.js +193 -49
- package/dist/resource_clients/run_collection.d.ts +5 -3
- package/dist/resource_clients/run_collection.js +4 -1
- package/dist/resource_clients/schedule.d.ts +16 -7
- package/dist/resource_clients/schedule.js +30 -22
- package/dist/resource_clients/schedule_collection.d.ts +6 -2
- package/dist/resource_clients/schedule_collection.js +9 -3
- package/dist/resource_clients/store_collection.d.ts +6 -4
- package/dist/resource_clients/store_collection.js +4 -1
- package/dist/resource_clients/task.d.ts +36 -13
- package/dist/resource_clients/task.js +79 -46
- package/dist/resource_clients/task_collection.d.ts +9 -5
- package/dist/resource_clients/task_collection.js +9 -3
- package/dist/resource_clients/user.d.ts +19 -10
- package/dist/resource_clients/user.js +42 -38
- package/dist/resource_clients/webhook.d.ts +17 -8
- package/dist/resource_clients/webhook.js +30 -22
- package/dist/resource_clients/webhook_collection.d.ts +8 -4
- package/dist/resource_clients/webhook_collection.js +9 -3
- package/dist/resource_clients/webhook_dispatch.d.ts +4 -1
- package/dist/resource_clients/webhook_dispatch.js +7 -2
- package/dist/resource_clients/webhook_dispatch_collection.d.ts +3 -1
- package/dist/resource_clients/webhook_dispatch_collection.js +4 -1
- package/dist/response_validation_error.d.ts +2 -1
- package/dist/response_validation_error.js +2 -1
- package/dist/runtime/node.d.ts +6 -0
- package/dist/runtime/node.js +80 -0
- package/dist/runtime/types.d.ts +60 -0
- package/dist/runtime/types.js +1 -0
- package/dist/runtime/web.d.ts +5 -0
- package/dist/runtime/web.js +21 -0
- package/dist/schemas.d.ts +368 -4
- package/dist/schemas.js +26 -4
- package/dist/statistics.d.ts +1 -6
- package/dist/statistics.js +2 -2
- package/dist/timeouts.d.ts +84 -0
- package/dist/timeouts.js +37 -0
- package/dist/timezones.d.ts +1 -1
- package/dist/utils.d.ts +93 -58
- package/dist/utils.js +226 -158
- package/dist/wait_for_resources.d.ts +8 -0
- package/dist/wait_for_resources.js +39 -0
- package/package.json +32 -29
- package/dist/http_client.d.ts +0 -88
- package/dist/http_client.js +0 -255
- package/dist/interceptors.d.ts +0 -19
- package/dist/interceptors.js +0 -105
|
@@ -21,7 +21,7 @@ export const ActorStats = lazySchema(() => z.looseObject({
|
|
|
21
21
|
totalUsers30Days: z.int().optional(),
|
|
22
22
|
totalUsers90Days: z.int().optional(),
|
|
23
23
|
totalMetamorphs: z.int().optional(),
|
|
24
|
-
lastRunStartedAt: z.date().optional(),
|
|
24
|
+
lastRunStartedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).optional(),
|
|
25
25
|
actorReviewCount: z.int().optional(),
|
|
26
26
|
actorReviewRating: z.number().optional(),
|
|
27
27
|
bookmarkCount: z.int().optional(),
|
|
@@ -33,34 +33,38 @@ export const ActorStats = lazySchema(() => z.looseObject({
|
|
|
33
33
|
TOTAL: z.int().optional(),
|
|
34
34
|
}).optional(),
|
|
35
35
|
}));
|
|
36
|
-
export const
|
|
36
|
+
export const ActorListItem = lazySchema(() => z.looseObject({
|
|
37
37
|
id: z.string(),
|
|
38
|
-
createdAt: z.date(),
|
|
39
|
-
modifiedAt: z.date(),
|
|
38
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
39
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
40
40
|
name: z.string(),
|
|
41
41
|
username: z.string(),
|
|
42
42
|
title: z.string().optional(),
|
|
43
43
|
stats: ActorStats().nullable().optional(),
|
|
44
44
|
}));
|
|
45
45
|
export const ListOfActors = lazySchema(() => PaginationResponse().extend({
|
|
46
|
-
items: z.array(
|
|
46
|
+
items: z.array(ActorListItem()),
|
|
47
47
|
}));
|
|
48
48
|
export const ListOfActorsResponse = lazySchema(() => z.looseObject({
|
|
49
49
|
data: ListOfActors(),
|
|
50
50
|
}));
|
|
51
51
|
/** Machine-processable error type identifier. */
|
|
52
|
-
export const ErrorType = lazySchema(() => z.enum(["3d-secure-auth-failed", "access-right-already-exists", "action-not-found", "actor-already-rented", "actor-can-not-be-rented", "actor-disabled", "actor-is-not-rented", "actor-memory-limit-exceeded", "actor-name-exists-new-owner", "actor-name-not-unique", "actor-not-found", "actor-not-github-actor", "actor-not-public", "actor-permission-level-not-supported-for-agentic-payments", "actor-review-already-exists", "actor-run-failed", "actor-standby-not-supported-for-agentic-payments", "actor-task-name-not-unique", "agentic-payment-info-retrieval-error", "agentic-payment-information-missing", "agentic-payment-insufficient-amount", "agentic-payment-provider-internal-error", "agentic-payment-provider-unauthorized", "airtable-webhook-deprecated", "already-subscribed-to-paid-actor", "apify-plan-required-to-use-paid-actor", "apify-signup-not-allowed", "auth-method-not-supported", "authorization-server-not-found", "auto-issue-date-invalid", "background-check-required", "billing-system-error", "black-friday-plan-expired", "braintree-error", "braintree-not-linked", "braintree-operation-timed-out", "braintree-unsupported-currency", "build-not-found", "build-outdated", "cannot-add-apify-events-to-ppe-actor", "cannot-add-multiple-pricing-infos", "cannot-add-pricing-info-that-alters-past", "cannot-add-second-future-pricing-info", "cannot-build-actor-from-webhook", "cannot-change-billing-interval", "cannot-change-owner", "cannot-charge-apify-event", "cannot-charge-non-pay-per-event-actor", "cannot-comment-as-other-user", "cannot-copy-actor-task", "cannot-create-payout", "cannot-create-public-actor", "cannot-create-tax-transaction", "cannot-delete-critical-actor", "cannot-delete-invoice", "cannot-delete-paid-actor", "cannot-disable-one-time-event-for-apify-start-event", "cannot-disable-organization-with-enabled-members", "cannot-disable-user-with-subscription", "cannot-link-oauth-to-unverified-email", "cannot-metamorph-to-pay-per-result-actor", "cannot-modify-actor-pricing-too-frequently", "cannot-modify-actor-pricing-with-immediate-effect", "cannot-monetize-without-payout-billing-info", "cannot-override-paid-actor-trial", "cannot-permanently-delete-subscription", "cannot-publish-actor", "cannot-publish-actor-task", "cannot-reduce-last-full-token", "cannot-reimburse-more-than-original-charge", "cannot-reimburse-non-rental-charge", "cannot-remove-own-actor-from-recently-used", "cannot-remove-payment-method", "cannot-remove-pricing-info", "cannot-remove-running-run", "cannot-remove-user-with-public-actors", "cannot-remove-user-with-subscription", "cannot-remove-user-with-unpaid-invoice", "cannot-rename-env-var", "cannot-rent-paid-actor", "cannot-review-own-actor", "cannot-set-access-rights-for-owner", "cannot-set-is-status-message-terminal", "cannot-unpublish-critical-actor", "cannot-unpublish-paid-actor", "cannot-unpublish-profile", "cannot-update-invoice-field", "concurrent-runs-limit-exceeded", "concurrent-update-detected", "conference-token-not-found", "content-encoding-forbidden-for-html", "coupon-already-redeemed", "coupon-expired", "coupon-for-new-customers", "coupon-for-subscribed-users", "coupon-limits-are-in-conflict-with-current-limits", "coupon-max-number-of-redemptions-reached", "coupon-not-found", "coupon-not-unique", "coupons-disabled", "create-github-issue-not-allowed", "creator-plan-not-available", "cron-expression-invalid", "daily-ai-token-limit-exceeded", "daily-publication-limit-exceeded", "dataset-does-not-have-fields-schema", "dataset-does-not-have-schema", "dataset-locked", "dataset-schema-invalid", "dcr-not-supported", "default-dataset-not-found", "deleting-default-build", "deleting-unfinished-build", "email-already-taken", "email-already-taken-removed-user", "email-domain-not-allowed-for-coupon", "email-invalid", "email-not-allowed", "email-not-valid", "email-update-too-soon", "elevated-permissions-needed", "env-var-already-exists", "exchange-rate-fetch-failed", "expired-conference-token", "failed-to-charge-user", "final-invoice-negative", "full-permission-actor-blocked-for-admin", "full-permission-actor-not-approved", "github-branch-empty", "github-issue-already-exists", "github-public-key-not-found", "github-repository-not-found", "github-signature-does-not-match-payload", "github-user-not-authorized-for-issues", "gmail-not-allowed", "id-does-not-match", "incompatible-billing-interval", "incomplete-payout-billing-info", "inconsistent-currencies", "incorrect-pricing-modifier-prefix", "input-json-invalid-characters", "input-json-not-object", "input-json-too-long", "input-update-collision", "insufficient-permissions", "insufficient-permissions-to-change-field", "insufficient-security-measures", "insufficient-tax-country-evidence", "integration-auth-error", "internal-server-error", "invalid-billing-info", "invalid-billing-period-for-payout", "invalid-build", "invalid-client-key", "invalid-collection", "invalid-conference-login-password", "invalid-content-type-header", "invalid-credentials", "invalid-git-auth-token", "invalid-github-issue-url", "invalid-header", "invalid-id", "invalid-idempotency-key", "invalid-input", "invalid-input-schema", "invalid-invoice", "invalid-invoice-type", "invalid-issue-date", "invalid-label-params", "invalid-main-account-user-id", "invalid-oauth-app", "invalid-oauth-scope", "invalid-one-time-invoice", "invalid-parameter", "invalid-payout-status", "invalid-picture-url", "invalid-record-key", "invalid-request", "invalid-resource-type", "invalid-signature", "invalid-subscription-plan", "invalid-tax-number", "invalid-tax-number-format", "invalid-token", "invalid-token-type", "invalid-two-factor-code", "invalid-two-factor-code-or-recovery-code", "invalid-two-factor-recovery-code", "invalid-username", "invalid-value", "invitation-invalid-resource-type", "invitation-no-longer-valid", "invoice-canceled", "invoice-cannot-be-refunded-due-to-too-high-amount", "invoice-incomplete", "invoice-is-draft", "invoice-locked", "invoice-must-be-buffer", "invoice-not-canceled", "invoice-not-draft", "invoice-not-found", "invoice-outdated", "invoice-paid-already", "issue-already-connected-to-github", "issue-not-found", "issues-bad-request", "issuer-not-registered", "job-finished", "label-already-linked", "last-api-token", "limit-reached", "max-items-must-be-greater-than-zero", "max-metamorphs-exceeded", "max-total-charge-usd-below-minimum", "max-total-charge-usd-must-be-greater-than-zero", "method-not-allowed", "migration-disabled", "missing-actor-rights", "missing-api-token", "missing-billing-info", "missing-line-items", "missing-payment-date", "missing-payout-billing-info", "missing-proxy-password", "missing-reporting-fields", "missing-resource-name", "missing-settings", "missing-username", "monthly-usage-limit-too-low", "more-than-one-update-not-allowed", "multiple-records-found", "must-be-admin", "name-not-unique", "next-runtime-computation-failed", "no-columns-in-exported-dataset", "no-payment-attempt-for-refund-found", "no-payment-method-available", "no-team-account-seats-available", "non-temporary-email", "not-enough-usage-to-run-paid-actor", "not-implemented", "not-supported-currencies", "o-auth-service-already-connected", "o-auth-service-not-connected", "oauth-resource-access-failed", "one-time-invoice-already-marked-paid", "only-drafts-can-be-deleted", "operation-canceled", "operation-not-allowed", "operation-timed-out", "organization-cannot-own-itself", "organization-role-not-found", "overlapping-payout-billing-periods", "own-token-required", "page-not-found", "param-not-one-of", "parameter-required", "parameters-mismatched", "password-reset-email-already-sent", "password-reset-token-expired", "pay-as-you-go-without-monthly-interval", "payment-attempt-status-message-required", "payout-already-paid", "payout-canceled", "payout-invalid-state", "payout-must-be-approved-to-be-marked-paid", "payout-not-found", "payout-number-already-exists", "phone-number-invalid", "phone-number-landline", "phone-number-opted-out", "phone-verification-disabled", "platform-feature-disabled", "price-overrides-validation-failed", "pricing-model-not-supported", "promotional-plan-not-available", "proxy-auth-ip-not-unique", "public-actor-disabled", "query-timeout", "quoted-price-outdated", "rate-limit-exceeded", "recaptcha-invalid", "recaptcha-required", "record-not-found", "record-not-public", "record-or-token-not-found", "record-too-large", "redirect-uri-mismatch", "reduced-plan-not-available", "rental-charge-already-reimbursed", "rental-not-allowed", "request-aborted-prematurely", "request-handled-or-locked", "request-id-invalid", "request-queue-duplicate-requests", "request-too-large", "requested-dataset-view-does-not-exist", "resume-token-expired", "run-failed", "run-input-body-not-valid-json", "run-timeout-exceeded", "russia-is-evil", "same-user", "schedule-actor-not-found", "schedule-actor-task-not-found", "schedule-name-not-unique", "schema-validation", "schema-validation-error", "schema-validation-failed", "service-worker-registration-not-allowed", "sign-up-method-not-allowed", "slack-integration-not-custom", "socket-closed", "socket-destroyed", "store-schema-invalid", "store-terms-not-accepted", "stripe-enabled", "stripe-generic-decline", "stripe-not-enabled", "stripe-not-enabled-for-user", "tagged-build-required", "tax-country-invalid", "tax-number-invalid", "tax-number-validation-failed", "taxamo-call-failed", "taxamo-request-failed", "testing-error", "token-not-provided", "too-few-versions", "too-many-actor-tasks", "too-many-actors", "too-many-labels-on-resource", "too-many-mcp-connectors", "too-many-o-auth-apps", "too-many-organizations", "too-many-requests", "too-many-schedules", "too-many-ui-access-keys", "too-many-user-labels", "too-many-values", "too-many-versions", "too-many-webhooks", "unexpected-route", "unknown-build-tag", "unknown-payment-provider", "unsubscribe-token-invalid", "unsupported-actor-pricing-model-for-agentic-payments", "unsupported-content-encoding", "unsupported-file-type-for-issue", "unsupported-file-type-image-expected", "unsupported-file-type-text-or-json-expected", "unsupported-permission", "upcoming-subscription-bill-not-up-to-date", "user-already-exists", "user-already-verified", "user-creates-organizations-too-fast", "user-disabled", "user-email-is-disposable", "user-email-not-set", "user-email-not-verified", "user-has-no-subscription", "user-integration-not-found", "user-is-already-invited", "user-is-already-organization-member", "user-is-not-member-of-organization", "user-is-not-organization", "user-is-organization", "user-is-organization-owner", "user-is-removed", "user-not-found", "user-not-logged-in", "user-not-verified", "user-or-token-not-found", "user-plan-not-allowed-for-coupon", "user-problem-with-card", "user-record-not-found", "username-already-taken", "username-missing", "username-not-allowed", "username-removal-forbidden", "username-required", "verification-email-already-sent", "verification-token-expired", "version-already-exists", "versions-size-exceeded", "weak-password", "x402-agentic-payment-already-finalized", "x402-agentic-payment-insufficient-amount", "x402-agentic-payment-malformed-token", "x402-agentic-payment-settlement-failed", "x402-agentic-payment-settlement-in-progress", "x402-agentic-payment-settlement-stuck", "x402-agentic-payment-unauthorized", "x402-payment-required", "zero-invoice"]).or(z.string()));
|
|
52
|
+
export const ErrorType = lazySchema(() => z.enum(["3d-secure-auth-failed", "access-right-already-exists", "action-not-found", "actor-already-rented", "actor-can-not-be-rented", "actor-disabled", "actor-is-not-rented", "actor-memory-limit-exceeded", "actor-name-exists-new-owner", "actor-name-not-unique", "actor-not-found", "actor-not-github-actor", "actor-not-public", "actor-permission-level-not-supported-for-agentic-payments", "actor-review-already-exists", "actor-run-failed", "actor-standby-not-supported-for-agentic-payments", "actor-task-name-not-unique", "agentic-payment-info-retrieval-error", "agentic-payment-information-missing", "agentic-payment-insufficient-amount", "agentic-payment-provider-internal-error", "agentic-payment-provider-unauthorized", "airtable-webhook-deprecated", "already-subscribed-to-paid-actor", "apify-plan-required-to-use-paid-actor", "apify-signup-not-allowed", "auth-method-not-supported", "authorization-server-not-found", "auto-issue-date-invalid", "background-check-required", "billing-system-error", "black-friday-plan-expired", "braintree-error", "braintree-not-linked", "braintree-operation-timed-out", "braintree-unsupported-currency", "build-not-found", "build-outdated", "cannot-add-apify-events-to-ppe-actor", "cannot-add-multiple-pricing-infos", "cannot-add-pricing-info-that-alters-past", "cannot-add-second-future-pricing-info", "cannot-build-actor-from-webhook", "cannot-change-billing-interval", "cannot-change-owner", "cannot-charge-apify-event", "cannot-charge-non-pay-per-event-actor", "cannot-comment-as-other-user", "cannot-copy-actor-task", "cannot-create-payout", "cannot-create-public-actor", "cannot-create-tax-transaction", "cannot-delete-critical-actor", "cannot-delete-invoice", "cannot-delete-paid-actor", "cannot-disable-one-time-event-for-apify-start-event", "cannot-disable-organization-with-enabled-members", "cannot-disable-user-with-subscription", "cannot-link-oauth-to-unverified-email", "cannot-metamorph-to-pay-per-result-actor", "cannot-modify-actor-pricing-too-frequently", "cannot-modify-actor-pricing-with-immediate-effect", "cannot-monetize-without-payout-billing-info", "cannot-override-paid-actor-trial", "cannot-permanently-delete-subscription", "cannot-publish-actor", "cannot-publish-actor-task", "cannot-reduce-last-full-token", "cannot-reimburse-more-than-original-charge", "cannot-reimburse-non-rental-charge", "cannot-remove-own-actor-from-recently-used", "cannot-remove-payment-method", "cannot-remove-pricing-info", "cannot-remove-running-run", "cannot-remove-user-with-public-actors", "cannot-remove-user-with-subscription", "cannot-remove-user-with-unpaid-invoice", "cannot-rename-env-var", "cannot-rent-paid-actor", "cannot-review-own-actor", "cannot-set-access-rights-for-owner", "cannot-set-is-status-message-terminal", "cannot-unpublish-critical-actor", "cannot-unpublish-paid-actor", "cannot-unpublish-profile", "cannot-update-invoice-field", "concurrent-runs-limit-exceeded", "concurrent-update-detected", "conference-token-not-found", "content-encoding-forbidden-for-html", "coupon-already-redeemed", "coupon-expired", "coupon-for-new-customers", "coupon-for-subscribed-users", "coupon-limits-are-in-conflict-with-current-limits", "coupon-max-number-of-redemptions-reached", "coupon-not-found", "coupon-not-unique", "coupons-disabled", "create-github-issue-not-allowed", "creator-plan-not-available", "cron-expression-invalid", "daily-ai-token-limit-exceeded", "daily-publication-limit-exceeded", "dataset-does-not-have-fields-schema", "dataset-does-not-have-schema", "dataset-locked", "dataset-schema-invalid", "dcr-not-supported", "default-dataset-not-found", "deleting-default-build", "deleting-unfinished-build", "email-already-taken", "email-already-taken-removed-user", "email-domain-not-allowed-for-coupon", "email-invalid", "email-not-allowed", "email-not-valid", "email-update-too-soon", "elevated-permissions-needed", "env-var-already-exists", "exchange-rate-fetch-failed", "expired-conference-token", "failed-to-charge-user", "final-invoice-negative", "full-permission-actor-blocked-for-admin", "full-permission-actor-not-approved", "full-permissions-require-verified-owner", "github-branch-empty", "github-issue-already-exists", "github-public-key-not-found", "github-repository-not-found", "github-signature-does-not-match-payload", "github-user-not-authorized-for-issues", "gmail-not-allowed", "id-does-not-match", "incompatible-billing-interval", "incomplete-payout-billing-info", "inconsistent-currencies", "incorrect-pricing-modifier-prefix", "input-json-invalid-characters", "input-json-not-object", "input-json-too-long", "input-update-collision", "input-validation-timed-out", "insufficient-permissions", "insufficient-permissions-to-change-field", "insufficient-security-measures", "insufficient-tax-country-evidence", "integration-auth-error", "internal-server-error", "invalid-billing-info", "invalid-billing-period-for-payout", "invalid-build", "invalid-client-key", "invalid-collection", "invalid-conference-login-password", "invalid-content-type-header", "invalid-credentials", "invalid-git-auth-token", "invalid-github-issue-url", "invalid-header", "invalid-id", "invalid-idempotency-key", "invalid-input", "invalid-input-schema", "invalid-invoice", "invalid-invoice-type", "invalid-issue-date", "invalid-label-params", "invalid-main-account-user-id", "invalid-oauth-app", "invalid-oauth-scope", "invalid-one-time-invoice", "invalid-parameter", "invalid-payout-status", "invalid-picture-url", "invalid-record-key", "invalid-request", "invalid-resource-type", "invalid-signature", "invalid-subscription-plan", "invalid-tax-number", "invalid-tax-number-format", "invalid-token", "invalid-token-type", "invalid-two-factor-code", "invalid-two-factor-code-or-recovery-code", "invalid-two-factor-recovery-code", "invalid-username", "invalid-value", "invitation-invalid-resource-type", "invitation-no-longer-valid", "invoice-canceled", "invoice-cannot-be-refunded-due-to-too-high-amount", "invoice-incomplete", "invoice-is-draft", "invoice-locked", "invoice-must-be-buffer", "invoice-not-canceled", "invoice-not-draft", "invoice-not-found", "invoice-outdated", "invoice-paid-already", "issue-already-connected-to-github", "issue-not-found", "issues-bad-request", "issuer-not-registered", "job-finished", "label-already-linked", "last-api-token", "limit-reached", "max-items-must-be-greater-than-zero", "max-metamorphs-exceeded", "max-total-charge-usd-below-minimum", "max-total-charge-usd-must-be-greater-than-zero", "mcp-connector-actor-not-allowed", "method-not-allowed", "migration-disabled", "missing-actor-rights", "missing-api-token", "missing-billing-info", "missing-line-items", "missing-payment-date", "missing-payout-billing-info", "missing-proxy-password", "missing-reporting-fields", "missing-resource-name", "missing-settings", "missing-username", "monthly-usage-limit-too-low", "more-public-actors-require-verified-owner", "more-than-one-update-not-allowed", "multiple-records-found", "must-be-admin", "name-not-unique", "next-runtime-computation-failed", "no-columns-in-exported-dataset", "no-payment-attempt-for-refund-found", "no-payment-method-available", "no-team-account-seats-available", "non-temporary-email", "not-enough-usage-to-run-paid-actor", "not-implemented", "not-supported-currencies", "o-auth-service-already-connected", "o-auth-service-not-connected", "oauth-resource-access-failed", "one-time-invoice-already-marked-paid", "only-drafts-can-be-deleted", "operation-canceled", "operation-not-allowed", "operation-timed-out", "organization-cannot-own-itself", "organization-role-not-found", "overlapping-payout-billing-periods", "own-token-required", "page-not-found", "param-not-one-of", "parameter-required", "parameters-mismatched", "password-reset-email-already-sent", "password-reset-token-expired", "pay-as-you-go-without-monthly-interval", "payment-attempt-status-message-required", "payout-already-paid", "payout-canceled", "payout-invalid-state", "payout-must-be-approved-to-be-marked-paid", "payout-not-found", "payout-number-already-exists", "phone-number-invalid", "phone-number-landline", "phone-number-opted-out", "phone-verification-disabled", "platform-feature-disabled", "price-overrides-validation-failed", "pricing-model-not-supported", "promotional-plan-not-available", "proxy-auth-ip-not-unique", "public-actor-disabled", "query-timeout", "quoted-price-outdated", "rate-limit-exceeded", "readme-required", "recaptcha-invalid", "recaptcha-required", "record-not-found", "record-not-public", "record-or-token-not-found", "record-too-large", "redirect-uri-mismatch", "reduced-plan-not-available", "rental-charge-already-reimbursed", "rental-not-allowed", "request-aborted-prematurely", "request-handled-or-locked", "request-id-invalid", "request-queue-duplicate-requests", "request-too-large", "requested-dataset-view-does-not-exist", "resume-token-expired", "run-failed", "run-input-body-not-valid-json", "run-timeout-exceeded", "russia-is-evil", "same-user", "schedule-actor-not-found", "schedule-actor-task-not-found", "schedule-name-not-unique", "schema-validation", "schema-validation-error", "schema-validation-failed", "schemas-required", "service-worker-registration-not-allowed", "sign-up-method-not-allowed", "slack-integration-not-custom", "socket-closed", "socket-destroyed", "standby-deployment-invalid", "store-schema-invalid", "store-terms-not-accepted", "stripe-enabled", "stripe-generic-decline", "stripe-not-enabled", "stripe-not-enabled-for-user", "tagged-build-required", "tax-country-invalid", "tax-number-invalid", "tax-number-validation-failed", "taxamo-call-failed", "taxamo-request-failed", "testing-error", "token-not-provided", "too-few-versions", "too-many-actor-tasks", "too-many-actors", "too-many-labels-on-resource", "too-many-mcp-connectors", "too-many-o-auth-apps", "too-many-organizations", "too-many-public-actor-tasks-per-account", "too-many-public-actor-tasks-per-actor", "too-many-requests", "too-many-schedules", "too-many-ui-access-keys", "too-many-user-labels", "too-many-values", "too-many-versions", "too-many-webhooks", "unexpected-route", "unknown-build-tag", "unknown-payment-provider", "unsubscribe-token-invalid", "unsupported-actor-pricing-model-for-agentic-payments", "unsupported-content-encoding", "unsupported-file-type-for-issue", "unsupported-file-type-image-expected", "unsupported-file-type-text-or-json-expected", "unsupported-permission", "upcoming-subscription-bill-not-up-to-date", "user-already-exists", "user-already-verified", "user-creates-organizations-too-fast", "user-disabled", "user-email-is-disposable", "user-email-not-set", "user-email-not-verified", "user-has-no-subscription", "user-integration-not-found", "user-is-already-invited", "user-is-already-organization-member", "user-is-not-member-of-organization", "user-is-not-organization", "user-is-organization", "user-is-organization-owner", "user-is-removed", "user-not-found", "user-not-logged-in", "user-not-verified", "user-or-token-not-found", "user-plan-not-allowed-for-coupon", "user-problem-with-card", "user-record-not-found", "username-already-taken", "username-missing", "username-not-allowed", "username-removal-forbidden", "username-required", "verification-email-already-sent", "verification-token-expired", "version-already-exists", "versions-size-exceeded", "weak-password", "x402-agentic-payment-already-finalized", "x402-agentic-payment-insufficient-amount", "x402-agentic-payment-malformed-token", "x402-agentic-payment-settlement-failed", "x402-agentic-payment-settlement-in-progress", "x402-agentic-payment-settlement-stuck", "x402-agentic-payment-unauthorized", "x402-payment-required", "zero-invoice"]).or(z.string()));
|
|
53
53
|
export const ErrorDetail = lazySchema(() => z.looseObject({
|
|
54
54
|
type: ErrorType().optional(),
|
|
55
55
|
message: z.string().optional(),
|
|
56
|
+
data: z.record(z.string(), z.unknown()).optional(),
|
|
56
57
|
}));
|
|
57
58
|
export const ErrorResponse = lazySchema(() => z.looseObject({
|
|
58
59
|
error: ErrorDetail(),
|
|
59
60
|
}));
|
|
60
|
-
|
|
61
|
-
export const
|
|
61
|
+
/** Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). */
|
|
62
|
+
export const ActorPermissionLevel = lazySchema(() => z.enum(["LIMITED_PERMISSIONS", "FULL_PERMISSIONS"]).or(z.string()));
|
|
63
|
+
/** The version source types accepted in request bodies. Same as `VersionSourceType`, without `SOURCE_CODE`. */
|
|
64
|
+
export const WritableVersionSourceType = lazySchema(() => z.enum(["SOURCE_FILES", "GIT_REPO", "TARBALL", "GITHUB_GIST"]).or(z.string()));
|
|
65
|
+
export const EnvVarRequest = lazySchema(() => z.looseObject({
|
|
62
66
|
name: z.string(),
|
|
63
|
-
value: z.string()
|
|
67
|
+
value: z.string(),
|
|
64
68
|
isSecret: z.boolean().nullable().optional(),
|
|
65
69
|
}));
|
|
66
70
|
export const SourceCodeFileFormat = lazySchema(() => z.enum(["BASE64", "TEXT"]).or(z.string()));
|
|
@@ -79,26 +83,26 @@ export const SourceCodeFolder = lazySchema(() => z.looseObject({
|
|
|
79
83
|
folder: z.boolean(),
|
|
80
84
|
}));
|
|
81
85
|
export const VersionSourceFiles = lazySchema(() => z.array(z.union([SourceCodeFile(), SourceCodeFolder()])));
|
|
82
|
-
export const
|
|
86
|
+
export const CreateVersionRequest = lazySchema(() => z.looseObject({
|
|
83
87
|
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/),
|
|
84
|
-
sourceType:
|
|
85
|
-
envVars: z.array(
|
|
88
|
+
sourceType: WritableVersionSourceType(),
|
|
89
|
+
envVars: z.array(EnvVarRequest()).optional(),
|
|
86
90
|
applyEnvVarsToBuild: z.boolean().nullable().optional(),
|
|
87
91
|
buildTag: z.string().nullable().optional(),
|
|
88
92
|
sourceFiles: VersionSourceFiles().optional(),
|
|
89
|
-
gitRepoUrl: z.string().
|
|
90
|
-
tarballUrl: z.string().
|
|
91
|
-
gitHubGistUrl: z.string().
|
|
93
|
+
gitRepoUrl: z.string().optional(),
|
|
94
|
+
tarballUrl: z.string().optional(),
|
|
95
|
+
gitHubGistUrl: z.string().optional(),
|
|
92
96
|
}));
|
|
93
|
-
/** Determines the permission level that the Actor requires to run. For details, see [Actor permissions](https://docs.apify.com/platform/actors/development/permissions). */
|
|
94
|
-
export const ActorPermissionLevel = lazySchema(() => z.enum(["LIMITED_PERMISSIONS", "FULL_PERMISSIONS"]).or(z.string()));
|
|
95
97
|
/** The default settings applied to an Actor run. Can be overridden elsewhere. */
|
|
96
98
|
export const DefaultRunOptions = lazySchema(() => z.looseObject({
|
|
97
99
|
build: z.string().optional(),
|
|
98
100
|
timeoutSecs: z.int().optional(),
|
|
99
101
|
memoryMbytes: z.int().optional(),
|
|
100
|
-
restartOnError: z.boolean().optional(),
|
|
102
|
+
restartOnError: z.boolean().nullable().optional(),
|
|
101
103
|
maxItems: z.int().nullable().optional(),
|
|
104
|
+
maxTotalChargeUsd: z.number().nullable().optional(),
|
|
105
|
+
isMaxTotalChargeUsdSetByUser: z.boolean().nullable().optional(),
|
|
102
106
|
forcePermissionLevel: ActorPermissionLevel().nullable().optional(),
|
|
103
107
|
}));
|
|
104
108
|
export const ActorStandby = lazySchema(() => z.looseObject({
|
|
@@ -110,6 +114,9 @@ export const ActorStandby = lazySchema(() => z.looseObject({
|
|
|
110
114
|
memoryMbytes: z.int().nullable().optional(),
|
|
111
115
|
disableStandbyFieldsOverride: z.boolean().nullable().optional(),
|
|
112
116
|
shouldPassActorInput: z.boolean().nullable().optional(),
|
|
117
|
+
tenancy: z.string().nullable().optional(),
|
|
118
|
+
isConsoleAuthEnabled: z.boolean().nullable().optional(),
|
|
119
|
+
isTokenlessEnabled: z.boolean().nullable().optional(),
|
|
113
120
|
}));
|
|
114
121
|
export const ExampleRunInput = lazySchema(() => z.looseObject({
|
|
115
122
|
body: z.string().optional(),
|
|
@@ -119,23 +126,46 @@ export const CreateActorRequest = lazySchema(() => z.looseObject({
|
|
|
119
126
|
name: z.string().nullable().optional(),
|
|
120
127
|
description: z.string().nullable().optional(),
|
|
121
128
|
title: z.string().nullable().optional(),
|
|
122
|
-
isPublic: z.boolean().
|
|
129
|
+
isPublic: z.boolean().optional(),
|
|
130
|
+
actorPermissionLevel: ActorPermissionLevel().optional(),
|
|
123
131
|
seoTitle: z.string().nullable().optional(),
|
|
124
132
|
seoDescription: z.string().nullable().optional(),
|
|
125
133
|
restartOnError: z.boolean().optional(),
|
|
126
|
-
versions: z.array(
|
|
134
|
+
versions: z.array(CreateVersionRequest()).min(1).optional(),
|
|
127
135
|
categories: z.array(z.string()).nullable().optional(),
|
|
128
136
|
defaultRunOptions: DefaultRunOptions().optional(),
|
|
129
137
|
actorStandby: ActorStandby().nullable().optional(),
|
|
130
138
|
exampleRunInput: ExampleRunInput().nullable().optional(),
|
|
131
139
|
isDeprecated: z.boolean().nullable().optional(),
|
|
132
140
|
}));
|
|
141
|
+
export const VersionSourceType = lazySchema(() => z.enum(["SOURCE_FILES", "GIT_REPO", "TARBALL", "GITHUB_GIST", "SOURCE_CODE"]).or(z.string()));
|
|
142
|
+
export const EnvVar = lazySchema(() => z.looseObject({
|
|
143
|
+
name: z.string(),
|
|
144
|
+
value: z.string().optional(),
|
|
145
|
+
isSecret: z.boolean().nullable().optional(),
|
|
146
|
+
valueHash: z.string().optional(),
|
|
147
|
+
}));
|
|
148
|
+
export const Version = lazySchema(() => z.looseObject({
|
|
149
|
+
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/),
|
|
150
|
+
sourceType: VersionSourceType().nullable(),
|
|
151
|
+
envVars: z.array(EnvVar()).nullable().optional(),
|
|
152
|
+
applyEnvVarsToBuild: z.boolean().nullable().optional(),
|
|
153
|
+
buildTag: z.string().nullable().optional(),
|
|
154
|
+
sourceFiles: VersionSourceFiles().optional(),
|
|
155
|
+
gitRepoUrl: z.string().nullable().optional(),
|
|
156
|
+
tarballUrl: z.string().nullable().optional(),
|
|
157
|
+
gitHubGistUrl: z.string().nullable().optional(),
|
|
158
|
+
githubWebhookId: z.int().nullable().optional(),
|
|
159
|
+
gitlabWebhookId: z.int().nullable().optional(),
|
|
160
|
+
bitbucketWebhookId: z.string().nullable().optional(),
|
|
161
|
+
}));
|
|
133
162
|
export const CommonActorPricingInfo = lazySchema(() => z.looseObject({
|
|
134
163
|
apifyMarginPercentage: z.number(),
|
|
135
|
-
createdAt: z.date(),
|
|
136
|
-
startedAt: z.date(),
|
|
137
|
-
notifiedAboutFutureChangeAt: z.date().nullable().optional(),
|
|
138
|
-
notifiedAboutChangeAt: z.date().nullable().optional(),
|
|
164
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
165
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
166
|
+
notifiedAboutFutureChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
167
|
+
notifiedAboutChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
168
|
+
notifiedAboutRentalToPpePriceChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
139
169
|
reasonForChange: z.string().nullable().optional(),
|
|
140
170
|
isPriceChangeNotificationSuppressed: z.boolean().optional(),
|
|
141
171
|
forceContainsSignificantPriceChange: z.boolean().optional(),
|
|
@@ -159,7 +189,7 @@ export const ActorChargeEvent = lazySchema(() => z.looseObject({
|
|
|
159
189
|
eventPriceUsd: z.number().optional(),
|
|
160
190
|
eventTieredPricingUsd: TieredPricingPerEvent().optional(),
|
|
161
191
|
isPrimaryEvent: z.boolean().optional(),
|
|
162
|
-
isOneTimeEvent: z.boolean().optional(),
|
|
192
|
+
isOneTimeEvent: z.boolean().nullable().optional(),
|
|
163
193
|
}));
|
|
164
194
|
export const PayPerEventActorPricingInfo = lazySchema(() => CommonActorPricingInfo().extend({
|
|
165
195
|
pricingModel: z.literal("PAY_PER_EVENT"),
|
|
@@ -167,6 +197,7 @@ export const PayPerEventActorPricingInfo = lazySchema(() => CommonActorPricingIn
|
|
|
167
197
|
actorChargeEvents: z.record(z.string(), ActorChargeEvent()).optional(),
|
|
168
198
|
}),
|
|
169
199
|
minimalMaxTotalChargeUsd: z.number().nullable().optional(),
|
|
200
|
+
isPPEPlatformUsagePaidByUser: z.boolean().nullable().optional(),
|
|
170
201
|
}));
|
|
171
202
|
/** A single tier's price-per-dataset-item entry. */
|
|
172
203
|
export const TieredPricingPerDatasetItemEntry = lazySchema(() => z.looseObject({
|
|
@@ -183,6 +214,7 @@ export const PricePerDatasetItemActorPricingInfo = lazySchema(() => CommonActorP
|
|
|
183
214
|
pricePerUnitUsd: z.number().optional(),
|
|
184
215
|
tieredPricing: TieredPricingPerDatasetItem().optional(),
|
|
185
216
|
}));
|
|
217
|
+
/** Rental pricing model, which is no longer supported. */
|
|
186
218
|
export const FlatPricePerMonthActorPricingInfo = lazySchema(() => CommonActorPricingInfo().extend({
|
|
187
219
|
pricingModel: z.literal("FLAT_PRICE_PER_MONTH"),
|
|
188
220
|
trialMinutes: z.int(),
|
|
@@ -197,23 +229,23 @@ export const TaggedBuildInfo = lazySchema(() => z.looseObject({
|
|
|
197
229
|
buildId: z.string().optional(),
|
|
198
230
|
buildNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$/).nullable().optional(),
|
|
199
231
|
buildNumberInt: z.int().optional(),
|
|
200
|
-
finishedAt: z.date().nullable().optional(),
|
|
232
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
201
233
|
}));
|
|
202
234
|
/** A dictionary mapping build tag names (e.g., "latest", "beta") to their build information. */
|
|
203
235
|
export const TaggedBuilds = lazySchema(() => z.record(z.string(), TaggedBuildInfo().nullable()));
|
|
204
236
|
/** A warning displayed on the Actor's page in Apify Store and Console. Can be set by the Actor's developer or automatically by Apify's quality checks. */
|
|
205
237
|
export const ActorNotice = lazySchema(() => z.enum(["NONE", "RESIDENTIAL_PROXY_REQUIRED", "UNDER_MAINTENANCE"]).or(z.string()).nullable());
|
|
206
|
-
export const
|
|
238
|
+
export const ActorResource = lazySchema(() => z.looseObject({
|
|
207
239
|
id: z.string(),
|
|
208
240
|
userId: z.string(),
|
|
209
241
|
name: z.string(),
|
|
210
242
|
username: z.string(),
|
|
211
243
|
description: z.string().nullable().optional(),
|
|
212
|
-
restartOnError: z.boolean().optional(),
|
|
244
|
+
restartOnError: z.boolean().nullable().optional(),
|
|
213
245
|
isPublic: z.boolean(),
|
|
214
246
|
actorPermissionLevel: ActorPermissionLevel().optional(),
|
|
215
|
-
createdAt: z.date(),
|
|
216
|
-
modifiedAt: z.date(),
|
|
247
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
248
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
217
249
|
stats: ActorStats(),
|
|
218
250
|
versions: z.array(Version()),
|
|
219
251
|
pricingInfos: z.array(ActorRunPricingInfo()).optional(),
|
|
@@ -238,37 +270,26 @@ export const Actor = lazySchema(() => z.looseObject({
|
|
|
238
270
|
}));
|
|
239
271
|
/** Response containing Actor data. */
|
|
240
272
|
export const ActorResponse = lazySchema(() => z.looseObject({
|
|
241
|
-
data:
|
|
242
|
-
}));
|
|
243
|
-
export const CreateOrUpdateVersionRequest = lazySchema(() => z.looseObject({
|
|
244
|
-
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/).nullable().optional(),
|
|
245
|
-
sourceType: VersionSourceType().nullable().optional(),
|
|
246
|
-
envVars: z.array(EnvVar()).nullable().optional(),
|
|
247
|
-
applyEnvVarsToBuild: z.boolean().nullable().optional(),
|
|
248
|
-
buildTag: z.string().nullable().optional(),
|
|
249
|
-
sourceFiles: VersionSourceFiles().optional(),
|
|
250
|
-
gitRepoUrl: z.string().nullable().optional(),
|
|
251
|
-
tarballUrl: z.string().nullable().optional(),
|
|
252
|
-
gitHubGistUrl: z.string().nullable().optional(),
|
|
273
|
+
data: ActorResource(),
|
|
253
274
|
}));
|
|
254
275
|
/** The name of the build tag. */
|
|
255
|
-
export const
|
|
276
|
+
export const UpdatedBuildProperty = lazySchema(() => z.looseObject({
|
|
256
277
|
buildId: z.string(),
|
|
257
278
|
}).nullable());
|
|
258
279
|
export const UpdateActorRequest = lazySchema(() => z.looseObject({
|
|
259
280
|
name: z.string().optional(),
|
|
260
281
|
description: z.string().nullable().optional(),
|
|
261
282
|
isPublic: z.boolean().optional(),
|
|
262
|
-
actorPermissionLevel: ActorPermissionLevel().
|
|
283
|
+
actorPermissionLevel: ActorPermissionLevel().optional(),
|
|
263
284
|
seoTitle: z.string().nullable().optional(),
|
|
264
285
|
seoDescription: z.string().nullable().optional(),
|
|
265
286
|
title: z.string().nullable().optional(),
|
|
266
287
|
restartOnError: z.boolean().optional(),
|
|
267
|
-
versions: z.array(
|
|
288
|
+
versions: z.array(CreateVersionRequest()).min(1).optional(),
|
|
268
289
|
pricingInfos: z.array(ActorRunPricingInfo()).optional(),
|
|
269
290
|
categories: z.array(z.string()).nullable().optional(),
|
|
270
291
|
defaultRunOptions: DefaultRunOptions().nullable().optional(),
|
|
271
|
-
taggedBuilds: z.record(z.string(),
|
|
292
|
+
taggedBuilds: z.record(z.string(), UpdatedBuildProperty()).nullable().optional(),
|
|
272
293
|
actorStandby: ActorStandby().nullable().optional(),
|
|
273
294
|
exampleRunInput: ExampleRunInput().nullable().optional(),
|
|
274
295
|
isDeprecated: z.boolean().nullable().optional(),
|
|
@@ -283,6 +304,21 @@ export const ListOfVersionsResponse = lazySchema(() => z.looseObject({
|
|
|
283
304
|
export const VersionResponse = lazySchema(() => z.looseObject({
|
|
284
305
|
data: Version(),
|
|
285
306
|
}));
|
|
307
|
+
export const UpdateVersionRequest = lazySchema(() => z.looseObject({
|
|
308
|
+
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/).optional(),
|
|
309
|
+
sourceType: WritableVersionSourceType().optional(),
|
|
310
|
+
envVars: z.array(EnvVarRequest()).optional(),
|
|
311
|
+
applyEnvVarsToBuild: z.boolean().nullable().optional(),
|
|
312
|
+
buildTag: z.string().nullable().optional(),
|
|
313
|
+
sourceFiles: VersionSourceFiles().optional(),
|
|
314
|
+
gitRepoUrl: z.string().optional(),
|
|
315
|
+
tarballUrl: z.string().optional(),
|
|
316
|
+
gitHubGistUrl: z.string().optional(),
|
|
317
|
+
}));
|
|
318
|
+
export const UpdateBuildOnPushRequest = lazySchema(() => z.looseObject({
|
|
319
|
+
providerId: z.string(),
|
|
320
|
+
enabled: z.boolean(),
|
|
321
|
+
}));
|
|
286
322
|
export const ListOfEnvVars = lazySchema(() => z.looseObject({
|
|
287
323
|
total: z.int(),
|
|
288
324
|
items: z.array(EnvVar()),
|
|
@@ -290,7 +326,6 @@ export const ListOfEnvVars = lazySchema(() => z.looseObject({
|
|
|
290
326
|
export const ListOfEnvVarsResponse = lazySchema(() => z.looseObject({
|
|
291
327
|
data: ListOfEnvVars(),
|
|
292
328
|
}));
|
|
293
|
-
export const EnvVarRequest = lazySchema(() => EnvVar().required({ value: true }));
|
|
294
329
|
export const EnvVarResponse = lazySchema(() => z.looseObject({
|
|
295
330
|
data: EnvVar(),
|
|
296
331
|
}));
|
|
@@ -301,62 +336,129 @@ export const WebhookCondition = lazySchema(() => z.looseObject({
|
|
|
301
336
|
actorTaskId: z.string().nullable().optional(),
|
|
302
337
|
actorRunId: z.string().nullable().optional(),
|
|
303
338
|
}));
|
|
339
|
+
/** Slack message configuration. Present only when `actionType` is `SLACK_MESSAGE`. */
|
|
340
|
+
export const WebhookSlackMessage = lazySchema(() => z.looseObject({
|
|
341
|
+
userIntegrationId: z.string().optional(),
|
|
342
|
+
channelId: z.string().optional(),
|
|
343
|
+
messageTemplate: z.string().optional(),
|
|
344
|
+
}));
|
|
345
|
+
/** Selects which dataset item fields are included in the output. */
|
|
346
|
+
export const WebhookDatasetTransformation = lazySchema(() => z.looseObject({
|
|
347
|
+
fields: z.array(z.string()).optional(),
|
|
348
|
+
omit: z.array(z.string()).optional(),
|
|
349
|
+
}));
|
|
350
|
+
/** Gmail email configuration. Present only when `actionType` is `GOOGLE_MAIL`. */
|
|
351
|
+
export const WebhookGoogleMail = lazySchema(() => z.looseObject({
|
|
352
|
+
userIntegrationId: z.string().optional(),
|
|
353
|
+
emailTo: z.array(z.string()).optional(),
|
|
354
|
+
subject: z.string().optional(),
|
|
355
|
+
body: z.string().optional(),
|
|
356
|
+
attachmentFormat: z.string().optional(),
|
|
357
|
+
attachmentTransformation: WebhookDatasetTransformation().optional(),
|
|
358
|
+
}));
|
|
359
|
+
/** Google Drive upload configuration. Present only when `actionType` is `GOOGLE_DRIVE`. */
|
|
360
|
+
export const WebhookGoogleDrive = lazySchema(() => z.looseObject({
|
|
361
|
+
userIntegrationId: z.string().optional(),
|
|
362
|
+
filename: z.string().optional(),
|
|
363
|
+
format: z.string().nullable().optional(),
|
|
364
|
+
transformation: WebhookDatasetTransformation().optional(),
|
|
365
|
+
}));
|
|
366
|
+
/** GitHub issue configuration. Present only when `actionType` is `GITHUB_ISSUE`. */
|
|
367
|
+
export const WebhookGithubIssue = lazySchema(() => z.looseObject({
|
|
368
|
+
userIntegrationId: z.string().optional(),
|
|
369
|
+
repository: z.string().optional(),
|
|
370
|
+
title: z.string().optional(),
|
|
371
|
+
body: z.string().optional(),
|
|
372
|
+
}));
|
|
304
373
|
/** Status of the webhook dispatch indicating whether the HTTP request was successful. */
|
|
305
374
|
export const WebhookDispatchStatus = lazySchema(() => z.enum(["ACTIVE", "SUCCEEDED", "FAILED"]).or(z.string()));
|
|
306
|
-
export const
|
|
375
|
+
export const WebhookLastDispatch = lazySchema(() => z.looseObject({
|
|
307
376
|
status: WebhookDispatchStatus(),
|
|
308
|
-
finishedAt: z.date().nullable().optional(),
|
|
309
|
-
removedAt: z.date().nullable().optional(),
|
|
377
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
378
|
+
removedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
310
379
|
}));
|
|
311
380
|
export const WebhookStats = lazySchema(() => z.looseObject({
|
|
312
381
|
totalDispatches: z.int().optional(),
|
|
313
382
|
}));
|
|
314
|
-
export const
|
|
383
|
+
export const WebhookResource = lazySchema(() => z.looseObject({
|
|
315
384
|
id: z.string(),
|
|
316
|
-
createdAt: z.date(),
|
|
317
|
-
modifiedAt: z.date(),
|
|
385
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
386
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
318
387
|
userId: z.string(),
|
|
319
388
|
isAdHoc: z.boolean().nullable().optional(),
|
|
320
|
-
isApifyIntegration: z.boolean().optional(),
|
|
321
389
|
isEnabled: z.boolean().optional(),
|
|
322
390
|
actionType: z.string().optional(),
|
|
391
|
+
isApifyIntegration: z.boolean().nullable().optional(),
|
|
323
392
|
shouldInterpolateStrings: z.boolean().nullable().optional(),
|
|
324
393
|
eventTypes: z.array(WebhookEventType()),
|
|
325
394
|
condition: WebhookCondition(),
|
|
326
395
|
ignoreSslErrors: z.boolean(),
|
|
327
|
-
doNotRetry: z.boolean(),
|
|
328
|
-
requestUrl: z.url({ normalize: true }),
|
|
329
|
-
|
|
396
|
+
doNotRetry: z.boolean().nullable().optional(),
|
|
397
|
+
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
398
|
+
payloadTemplate: z.string().nullable().optional(),
|
|
399
|
+
headersTemplate: z.string().nullable().optional(),
|
|
400
|
+
title: z.string().nullable().optional(),
|
|
401
|
+
description: z.string().nullable().optional(),
|
|
402
|
+
slackMessage: WebhookSlackMessage().optional(),
|
|
403
|
+
googleMail: WebhookGoogleMail().optional(),
|
|
404
|
+
googleDrive: WebhookGoogleDrive().optional(),
|
|
405
|
+
githubIssue: WebhookGithubIssue().optional(),
|
|
406
|
+
lastDispatch: WebhookLastDispatch().nullable().optional(),
|
|
330
407
|
stats: WebhookStats().nullable().optional(),
|
|
331
408
|
}));
|
|
332
|
-
|
|
333
|
-
|
|
409
|
+
/** Paginated list of webhooks with all their fields, including `payloadTemplate`. */
|
|
410
|
+
export const ListOfWebhookResources = lazySchema(() => PaginationResponse().extend({
|
|
411
|
+
items: z.array(WebhookResource()),
|
|
334
412
|
}));
|
|
335
|
-
export const
|
|
336
|
-
data:
|
|
413
|
+
export const ListOfWebhookResourcesResponse = lazySchema(() => z.looseObject({
|
|
414
|
+
data: ListOfWebhookResources(),
|
|
415
|
+
}));
|
|
416
|
+
/** An OAuth connection configured on an Actor. Secret credentials are never returned. */
|
|
417
|
+
export const ActorOAuthConnection = lazySchema(() => z.looseObject({
|
|
418
|
+
_id: z.string(),
|
|
419
|
+
actorId: z.string(),
|
|
420
|
+
oAuthProviderType: z.enum(["CUSTOM", "GOOGLE"]).or(z.string()),
|
|
421
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
422
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
423
|
+
credentials: z.looseObject({
|
|
424
|
+
clientId: z.string().optional(),
|
|
425
|
+
scope: z.string().optional(),
|
|
426
|
+
label: z.string().optional(),
|
|
427
|
+
imageUrl: z.string().optional(),
|
|
428
|
+
}).optional(),
|
|
429
|
+
}));
|
|
430
|
+
export const ListOfActorOAuthConnections = lazySchema(() => z.looseObject({
|
|
431
|
+
total: z.int(),
|
|
432
|
+
items: z.array(ActorOAuthConnection()),
|
|
433
|
+
}));
|
|
434
|
+
export const ListOfActorOAuthConnectionsResponse = lazySchema(() => z.looseObject({
|
|
435
|
+
data: ListOfActorOAuthConnections(),
|
|
337
436
|
}));
|
|
338
437
|
/** Status of an Actor job (run or build). */
|
|
339
438
|
export const ActorJobStatus = lazySchema(() => z.enum(["READY", "RUNNING", "SUCCEEDED", "FAILED", "TIMING-OUT", "TIMED-OUT", "ABORTING", "ABORTED"]).or(z.string()));
|
|
340
439
|
export const RunOrigin = lazySchema(() => z.enum(["DEVELOPMENT", "WEB", "API", "SCHEDULER", "TEST", "WEBHOOK", "ACTOR", "CLI", "CI", "STANDBY", "MCP"]).or(z.string()));
|
|
341
|
-
export const
|
|
440
|
+
export const BuildMeta = lazySchema(() => z.looseObject({
|
|
342
441
|
origin: RunOrigin(),
|
|
343
442
|
clientIp: z.string().optional(),
|
|
344
443
|
userAgent: z.string().optional(),
|
|
444
|
+
githubActionsRunUrl: z.string().optional(),
|
|
445
|
+
actorRunId: z.string().optional(),
|
|
446
|
+
webhookDispatchId: z.string().optional(),
|
|
345
447
|
}));
|
|
346
|
-
export const
|
|
448
|
+
export const BuildListItem = lazySchema(() => z.looseObject({
|
|
347
449
|
id: z.string(),
|
|
348
450
|
actId: z.string().optional(),
|
|
349
451
|
userId: z.string().optional(),
|
|
350
452
|
status: ActorJobStatus(),
|
|
351
|
-
startedAt: z.date(),
|
|
352
|
-
finishedAt: z.date().nullable().optional(),
|
|
353
|
-
usageTotalUsd: z.number(),
|
|
453
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
454
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
455
|
+
usageTotalUsd: z.number().optional(),
|
|
354
456
|
buildNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$/),
|
|
355
457
|
buildNumberInt: z.int().optional(),
|
|
356
|
-
meta:
|
|
458
|
+
meta: BuildMeta().optional(),
|
|
357
459
|
}));
|
|
358
460
|
export const ListOfBuilds = lazySchema(() => PaginationResponse().extend({
|
|
359
|
-
items: z.array(
|
|
461
|
+
items: z.array(BuildListItem()),
|
|
360
462
|
}));
|
|
361
463
|
export const ListOfBuildsResponse = lazySchema(() => z.looseObject({
|
|
362
464
|
data: ListOfBuilds(),
|
|
@@ -372,38 +474,53 @@ export const BuildOptions = lazySchema(() => z.looseObject({
|
|
|
372
474
|
betaPackages: z.boolean().nullable().optional(),
|
|
373
475
|
memoryMbytes: z.int().nullable().optional(),
|
|
374
476
|
diskMbytes: z.int().nullable().optional(),
|
|
477
|
+
tag: z.string().nullable().optional(),
|
|
478
|
+
debug: z.boolean().nullable().optional(),
|
|
375
479
|
}));
|
|
376
480
|
export const BuildUsage = lazySchema(() => z.looseObject({
|
|
377
481
|
ACTOR_COMPUTE_UNITS: z.number().nullable().optional(),
|
|
378
482
|
}));
|
|
483
|
+
/** Additional information about the Actor. */
|
|
484
|
+
export const ActorDefinitionMeta = lazySchema(() => z.looseObject({
|
|
485
|
+
templateId: z.string().optional(),
|
|
486
|
+
generatedBy: z.string().optional(),
|
|
487
|
+
}));
|
|
379
488
|
/** The definition of the Actor, the full specification of this field can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/actor-json) */
|
|
380
489
|
export const ActorDefinition = lazySchema(() => z.looseObject({
|
|
381
490
|
actorSpecification: z.literal(1).optional(),
|
|
382
491
|
name: z.string().optional(),
|
|
492
|
+
title: z.string().optional(),
|
|
493
|
+
description: z.string().optional(),
|
|
383
494
|
version: z.string().regex(/^[0-9]+(\.[0-9]+)+$/).optional(),
|
|
384
495
|
buildTag: z.string().optional(),
|
|
496
|
+
meta: ActorDefinitionMeta().optional(),
|
|
385
497
|
environmentVariables: z.record(z.string(), z.string()).optional(),
|
|
386
498
|
dockerfile: z.string().optional(),
|
|
387
499
|
dockerContextDir: z.string().optional(),
|
|
388
500
|
readme: z.string().nullable().optional(),
|
|
389
501
|
input: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
502
|
+
output: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
390
503
|
changelog: z.string().nullable().optional(),
|
|
391
504
|
storages: z.looseObject({
|
|
392
505
|
dataset: z.record(z.string(), z.unknown()).optional(),
|
|
506
|
+
datasets: z.record(z.string(), z.record(z.string(), z.unknown())).optional(),
|
|
507
|
+
keyValueStore: z.record(z.string(), z.unknown()).optional(),
|
|
393
508
|
}).optional(),
|
|
394
509
|
defaultMemoryMbytes: z.union([z.string(), z.int()]).optional(),
|
|
395
510
|
minMemoryMbytes: z.int().min(128).optional(),
|
|
396
511
|
maxMemoryMbytes: z.int().min(128).optional(),
|
|
397
512
|
usesStandbyMode: z.boolean().optional(),
|
|
513
|
+
webServerSchema: z.record(z.string(), z.unknown()).optional(),
|
|
514
|
+
webServerMcpPath: z.string().optional(),
|
|
398
515
|
}));
|
|
399
516
|
export const Build = lazySchema(() => z.looseObject({
|
|
400
517
|
id: z.string(),
|
|
401
518
|
actId: z.string(),
|
|
402
519
|
userId: z.string(),
|
|
403
|
-
startedAt: z.date(),
|
|
404
|
-
finishedAt: z.date().nullable().optional(),
|
|
520
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
521
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
405
522
|
status: ActorJobStatus(),
|
|
406
|
-
meta:
|
|
523
|
+
meta: BuildMeta(),
|
|
407
524
|
stats: BuildStats().nullable().optional(),
|
|
408
525
|
options: BuildOptions().nullable().optional(),
|
|
409
526
|
usage: BuildUsage().nullable().optional(),
|
|
@@ -411,13 +528,21 @@ export const Build = lazySchema(() => z.looseObject({
|
|
|
411
528
|
usageUsd: BuildUsage().nullable().optional(),
|
|
412
529
|
inputSchema: z.string().nullable().optional(),
|
|
413
530
|
readme: z.string().nullable().optional(),
|
|
531
|
+
changelog: z.string().nullable().optional(),
|
|
532
|
+
exitCode: z.int().nullable().optional(),
|
|
533
|
+
gitCommitId: z.string().optional(),
|
|
534
|
+
gitBranchName: z.string().optional(),
|
|
535
|
+
createdByOrganizationMemberUserId: z.string().optional(),
|
|
414
536
|
buildNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$/),
|
|
537
|
+
imageDigest: z.string().nullable().optional(),
|
|
415
538
|
actVersion: z.looseObject({
|
|
416
539
|
sourceType: VersionSourceType().optional(),
|
|
417
|
-
buildTag: z.string().optional(),
|
|
540
|
+
buildTag: z.string().nullable().optional(),
|
|
418
541
|
versionNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])$/).optional(),
|
|
419
542
|
gitRepoUrl: z.string().optional(),
|
|
420
543
|
sourceFiles: z.array(SourceCodeFile()).optional(),
|
|
544
|
+
gitHubGistUrl: z.string().optional(),
|
|
545
|
+
tarballUrl: z.string().optional(),
|
|
421
546
|
}).optional(),
|
|
422
547
|
actorDefinition: ActorDefinition().nullable().optional(),
|
|
423
548
|
}));
|
|
@@ -430,16 +555,24 @@ export const RunMeta = lazySchema(() => z.looseObject({
|
|
|
430
555
|
clientIp: z.string().nullable().optional(),
|
|
431
556
|
userAgent: z.string().nullable().optional(),
|
|
432
557
|
scheduleId: z.string().nullable().optional(),
|
|
433
|
-
scheduledAt: z.date().nullable().optional(),
|
|
558
|
+
scheduledAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
559
|
+
actorRunId: z.string().optional(),
|
|
560
|
+
webhookDispatchId: z.string().optional(),
|
|
561
|
+
scheduledAct2Id: z.string().optional(),
|
|
562
|
+
scheduledActorTaskId: z.string().optional(),
|
|
563
|
+
}));
|
|
564
|
+
/** Standby configuration of the run. Present only on Actor Standby runs. */
|
|
565
|
+
export const RunStandby = lazySchema(() => z.looseObject({
|
|
566
|
+
deployment: z.enum(["SINGLE_TENANT", "MULTI_TENANT_OWNER_PAID", "MULTI_TENANT_FREE_USERS", "MULTI_TENANT_PAYING_USERS"]).or(z.string()),
|
|
434
567
|
}));
|
|
435
|
-
export const
|
|
568
|
+
export const RunListItem = lazySchema(() => z.looseObject({
|
|
436
569
|
id: z.string(),
|
|
437
570
|
actId: z.string(),
|
|
438
571
|
userId: z.string().optional(),
|
|
439
572
|
actorTaskId: z.string().nullable().optional(),
|
|
440
573
|
status: ActorJobStatus(),
|
|
441
|
-
startedAt: z.date(),
|
|
442
|
-
finishedAt: z.date().nullable().optional(),
|
|
574
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
575
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
443
576
|
buildId: z.string(),
|
|
444
577
|
buildNumber: z.string().regex(/^([0-9]|[1-9][0-9])\.([0-9]|[1-9][0-9])(\.[1-9][0-9]{0,4})$/).optional(),
|
|
445
578
|
buildNumberInt: z.int().optional(),
|
|
@@ -448,9 +581,10 @@ export const RunShort = lazySchema(() => z.looseObject({
|
|
|
448
581
|
defaultKeyValueStoreId: z.string(),
|
|
449
582
|
defaultDatasetId: z.string(),
|
|
450
583
|
defaultRequestQueueId: z.string(),
|
|
584
|
+
standby: RunStandby().nullable().optional(),
|
|
451
585
|
}));
|
|
452
586
|
export const ListOfRuns = lazySchema(() => PaginationResponse().extend({
|
|
453
|
-
items: z.array(
|
|
587
|
+
items: z.array(RunListItem()),
|
|
454
588
|
}));
|
|
455
589
|
export const ListOfRunsResponse = lazySchema(() => z.looseObject({
|
|
456
590
|
data: ListOfRuns(),
|
|
@@ -489,13 +623,26 @@ export const RunStats = lazySchema(() => z.looseObject({
|
|
|
489
623
|
metamorph: z.int().min(0).optional(),
|
|
490
624
|
computeUnits: z.number().min(0).optional(),
|
|
491
625
|
}));
|
|
626
|
+
/** Cost of a single pay-per-event event type charged during the run. */
|
|
627
|
+
export const RunEventUsage = lazySchema(() => z.looseObject({
|
|
628
|
+
eventTotalUsd: z.number(),
|
|
629
|
+
eventTitle: z.string(),
|
|
630
|
+
}));
|
|
631
|
+
/** Information about the third-party integration that created the resource. */
|
|
632
|
+
export const IntegrationTracking = lazySchema(() => z.looseObject({
|
|
633
|
+
platform: z.string().optional(),
|
|
634
|
+
appId: z.string().optional(),
|
|
635
|
+
isAiTool: z.boolean().optional(),
|
|
636
|
+
}));
|
|
492
637
|
export const RunOptions = lazySchema(() => z.looseObject({
|
|
493
638
|
build: z.string(),
|
|
494
639
|
timeoutSecs: z.int().min(0),
|
|
495
640
|
memoryMbytes: z.int().min(128).max(32768),
|
|
496
641
|
diskMbytes: z.int().min(0),
|
|
642
|
+
restartOnError: z.boolean().nullable().optional(),
|
|
497
643
|
maxItems: z.int().min(0).nullable().optional(),
|
|
498
644
|
maxTotalChargeUsd: z.number().min(0).nullable().optional(),
|
|
645
|
+
isMaxTotalChargeUsdSetByUser: z.boolean().optional(),
|
|
499
646
|
}));
|
|
500
647
|
/** Defines the general access level for the resource. */
|
|
501
648
|
export const GeneralAccess = lazySchema(() => z.enum(["ANYONE_WITH_ID_CAN_READ", "ANYONE_WITH_NAME_CAN_READ", "FOLLOW_USER_SETTING", "RESTRICTED"]).or(z.string()));
|
|
@@ -512,6 +659,7 @@ export const RunUsage = lazySchema(() => z.looseObject({
|
|
|
512
659
|
DATA_TRANSFER_EXTERNAL_GBYTES: z.number().nullable().optional(),
|
|
513
660
|
PROXY_RESIDENTIAL_TRANSFER_GBYTES: z.number().nullable().optional(),
|
|
514
661
|
PROXY_SERPS: z.int().nullable().optional(),
|
|
662
|
+
PROXY_UNBLOCKER_UNITS: z.number().nullable().optional(),
|
|
515
663
|
}));
|
|
516
664
|
/** Resource usage costs in USD. All values are monetary amounts in US dollars. */
|
|
517
665
|
export const RunUsageUsd = lazySchema(() => z.looseObject({
|
|
@@ -527,13 +675,15 @@ export const RunUsageUsd = lazySchema(() => z.looseObject({
|
|
|
527
675
|
DATA_TRANSFER_EXTERNAL_GBYTES: z.number().nullable().optional(),
|
|
528
676
|
PROXY_RESIDENTIAL_TRANSFER_GBYTES: z.number().nullable().optional(),
|
|
529
677
|
PROXY_SERPS: z.number().nullable().optional(),
|
|
678
|
+
PROXY_UNBLOCKER_UNITS: z.number().nullable().optional(),
|
|
530
679
|
}));
|
|
531
680
|
/** Information about a metamorph event that occurred during the run. */
|
|
532
|
-
export const
|
|
533
|
-
createdAt: z.date(),
|
|
681
|
+
export const RunMetamorphEvent = lazySchema(() => z.looseObject({
|
|
682
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
534
683
|
actorId: z.string(),
|
|
535
684
|
buildId: z.string(),
|
|
536
685
|
inputKey: z.string().nullable().optional(),
|
|
686
|
+
buildTags: z.array(z.string()).optional(),
|
|
537
687
|
}));
|
|
538
688
|
/** Represents an Actor run and its associated data. */
|
|
539
689
|
export const Run = lazySchema(() => z.looseObject({
|
|
@@ -541,8 +691,8 @@ export const Run = lazySchema(() => z.looseObject({
|
|
|
541
691
|
actId: z.string(),
|
|
542
692
|
userId: z.string(),
|
|
543
693
|
actorTaskId: z.string().nullable().optional(),
|
|
544
|
-
startedAt: z.date(),
|
|
545
|
-
finishedAt: z.date().nullable().optional(),
|
|
694
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
695
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
546
696
|
status: ActorJobStatus(),
|
|
547
697
|
statusMessage: z.string().nullable().optional(),
|
|
548
698
|
isStatusMessageTerminal: z.boolean().nullable().optional(),
|
|
@@ -550,6 +700,14 @@ export const Run = lazySchema(() => z.looseObject({
|
|
|
550
700
|
pricingInfo: ActorRunPricingInfo().optional(),
|
|
551
701
|
stats: RunStats(),
|
|
552
702
|
chargedEventCounts: z.record(z.string(), z.int()).optional(),
|
|
703
|
+
accountedChargedEventCounts: z.record(z.string(), z.int()).nullable().optional(),
|
|
704
|
+
eventUsage: z.record(z.string(), RunEventUsage()).optional(),
|
|
705
|
+
externalChargedTotalUsd: z.number().optional(),
|
|
706
|
+
standby: RunStandby().nullable().optional(),
|
|
707
|
+
integrationTracking: IntegrationTracking().optional(),
|
|
708
|
+
createdByOrganizationMemberUserId: z.string().optional(),
|
|
709
|
+
consoleUrl: z.url({ normalize: true }).optional(),
|
|
710
|
+
output: z.record(z.string(), z.url({ normalize: true })).optional(),
|
|
553
711
|
options: RunOptions(),
|
|
554
712
|
buildId: z.string(),
|
|
555
713
|
exitCode: z.int().nullable().optional(),
|
|
@@ -575,7 +733,7 @@ export const Run = lazySchema(() => z.looseObject({
|
|
|
575
733
|
usage: RunUsage().nullable().optional(),
|
|
576
734
|
usageTotalUsd: z.number().nullable().optional(),
|
|
577
735
|
usageUsd: RunUsageUsd().nullable().optional(),
|
|
578
|
-
metamorphs: z.array(
|
|
736
|
+
metamorphs: z.array(RunMetamorphEvent()).nullable().optional(),
|
|
579
737
|
platformUsageBillingModel: z.string().optional(),
|
|
580
738
|
}));
|
|
581
739
|
export const RunResponse = lazySchema(() => z.looseObject({
|
|
@@ -587,13 +745,14 @@ export const DatasetStats = lazySchema(() => z.looseObject({
|
|
|
587
745
|
storageBytes: z.int().optional(),
|
|
588
746
|
inflatedBytes: z.int().optional(),
|
|
589
747
|
}));
|
|
590
|
-
export const
|
|
748
|
+
export const DatasetResource = lazySchema(() => z.looseObject({
|
|
591
749
|
id: z.string(),
|
|
592
750
|
name: z.string().nullable().optional(),
|
|
751
|
+
title: z.string().nullable().optional(),
|
|
593
752
|
userId: z.string(),
|
|
594
|
-
createdAt: z.date(),
|
|
595
|
-
modifiedAt: z.date(),
|
|
596
|
-
accessedAt: z.date(),
|
|
753
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
754
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
755
|
+
accessedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
597
756
|
itemCount: z.int().min(0),
|
|
598
757
|
cleanItemCount: z.int().min(0),
|
|
599
758
|
actId: z.string().nullable().optional(),
|
|
@@ -608,7 +767,7 @@ export const Dataset = lazySchema(() => z.looseObject({
|
|
|
608
767
|
}));
|
|
609
768
|
/** Response containing dataset metadata. */
|
|
610
769
|
export const DatasetResponse = lazySchema(() => z.looseObject({
|
|
611
|
-
data:
|
|
770
|
+
data: DatasetResource(),
|
|
612
771
|
}));
|
|
613
772
|
export const UpdateDatasetRequest = lazySchema(() => z.looseObject({
|
|
614
773
|
name: z.string().nullable().optional(),
|
|
@@ -619,26 +778,26 @@ export const UpdateDatasetRequest = lazySchema(() => z.looseObject({
|
|
|
619
778
|
* object or an array of objects. Each object represents one dataset item.
|
|
620
779
|
*/
|
|
621
780
|
export const PutItemsRequest = lazySchema(() => z.record(z.string(), z.unknown()));
|
|
622
|
-
export const
|
|
781
|
+
export const DatasetItemValidationError = lazySchema(() => z.looseObject({
|
|
623
782
|
instancePath: z.string().optional(),
|
|
624
783
|
schemaPath: z.string().optional(),
|
|
625
784
|
keyword: z.string().optional(),
|
|
626
785
|
message: z.string().optional(),
|
|
627
786
|
params: z.record(z.string(), z.unknown()).optional(),
|
|
628
787
|
}));
|
|
629
|
-
export const
|
|
788
|
+
export const InvalidDatasetItem = lazySchema(() => z.looseObject({
|
|
630
789
|
itemPosition: z.int().optional(),
|
|
631
|
-
validationErrors: z.array(
|
|
790
|
+
validationErrors: z.array(DatasetItemValidationError()).optional(),
|
|
632
791
|
}));
|
|
633
|
-
export const
|
|
634
|
-
invalidItems: z.array(
|
|
792
|
+
export const DatasetSchemaValidationErrorData = lazySchema(() => z.looseObject({
|
|
793
|
+
invalidItems: z.array(InvalidDatasetItem()),
|
|
635
794
|
}));
|
|
636
795
|
export const DatasetSchemaValidationError = lazySchema(() => z.looseObject({
|
|
637
796
|
type: z.string().optional(),
|
|
638
797
|
message: z.string().optional(),
|
|
639
|
-
data:
|
|
798
|
+
data: DatasetSchemaValidationErrorData().optional(),
|
|
640
799
|
}));
|
|
641
|
-
export const
|
|
800
|
+
export const PutItemsErrorResponse = lazySchema(() => z.looseObject({
|
|
642
801
|
error: DatasetSchemaValidationError(),
|
|
643
802
|
}));
|
|
644
803
|
export const DatasetFieldStatistics = lazySchema(() => z.looseObject({
|
|
@@ -661,14 +820,15 @@ export const KeyValueStoreStats = lazySchema(() => z.looseObject({
|
|
|
661
820
|
s3StorageBytes: z.int().optional(),
|
|
662
821
|
storageBytes: z.int().optional(),
|
|
663
822
|
}));
|
|
664
|
-
export const
|
|
823
|
+
export const KeyValueStoreResource = lazySchema(() => z.looseObject({
|
|
665
824
|
id: z.string(),
|
|
666
825
|
name: z.string().nullable().optional(),
|
|
826
|
+
title: z.string().nullable().optional(),
|
|
667
827
|
userId: z.string().nullable().optional(),
|
|
668
828
|
username: z.string().nullable().optional(),
|
|
669
|
-
createdAt: z.date(),
|
|
670
|
-
modifiedAt: z.date(),
|
|
671
|
-
accessedAt: z.date(),
|
|
829
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
830
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
831
|
+
accessedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
672
832
|
actId: z.string().nullable().optional(),
|
|
673
833
|
actRunId: z.string().nullable().optional(),
|
|
674
834
|
consoleUrl: z.url({ normalize: true }).optional(),
|
|
@@ -681,9 +841,9 @@ export const KeyValueStore = lazySchema(() => z.looseObject({
|
|
|
681
841
|
}));
|
|
682
842
|
/** Response containing key-value store data. */
|
|
683
843
|
export const KeyValueStoreResponse = lazySchema(() => z.looseObject({
|
|
684
|
-
data:
|
|
844
|
+
data: KeyValueStoreResource(),
|
|
685
845
|
}));
|
|
686
|
-
export const
|
|
846
|
+
export const UpdateKeyValueStoreRequest = lazySchema(() => z.looseObject({
|
|
687
847
|
name: z.string().nullable().optional(),
|
|
688
848
|
generalAccess: GeneralAccess().optional(),
|
|
689
849
|
}));
|
|
@@ -718,11 +878,11 @@ export const QueueId = lazySchema(() => z.string());
|
|
|
718
878
|
/** The ID of the user who owns the request queue. */
|
|
719
879
|
export const QueueUserId = lazySchema(() => z.string());
|
|
720
880
|
/** The timestamp when the request queue was created. */
|
|
721
|
-
export const QueueCreatedAt = lazySchema(() => z.date());
|
|
881
|
+
export const QueueCreatedAt = lazySchema(() => z.iso.datetime({ offset: true }).pipe(z.coerce.date()));
|
|
722
882
|
/** The timestamp when the request queue was last modified. Modifications include adding, updating, or removing requests, as well as locking or unlocking requests in the request queue. */
|
|
723
|
-
export const QueueModifiedAt = lazySchema(() => z.date());
|
|
883
|
+
export const QueueModifiedAt = lazySchema(() => z.iso.datetime({ offset: true }).pipe(z.coerce.date()));
|
|
724
884
|
/** The timestamp when the request queue was last accessed. */
|
|
725
|
-
export const QueueAccessedAt = lazySchema(() => z.date());
|
|
885
|
+
export const QueueAccessedAt = lazySchema(() => z.iso.datetime({ offset: true }).pipe(z.coerce.date()));
|
|
726
886
|
/** The total number of requests in the request queue. */
|
|
727
887
|
export const TotalRequestCount = lazySchema(() => z.int().min(0));
|
|
728
888
|
/** The number of requests that have been handled. */
|
|
@@ -740,9 +900,10 @@ export const RequestQueueStats = lazySchema(() => z.looseObject({
|
|
|
740
900
|
writeCount: z.int().optional(),
|
|
741
901
|
}));
|
|
742
902
|
/** A request queue object containing metadata and statistics. */
|
|
743
|
-
export const
|
|
903
|
+
export const RequestQueueResource = lazySchema(() => z.looseObject({
|
|
744
904
|
id: QueueId(),
|
|
745
905
|
name: z.string().nullable().optional(),
|
|
906
|
+
title: z.string().nullable().optional(),
|
|
746
907
|
userId: QueueUserId(),
|
|
747
908
|
actId: z.string().nullable().optional(),
|
|
748
909
|
actRunId: z.string().nullable().optional(),
|
|
@@ -759,7 +920,7 @@ export const RequestQueue = lazySchema(() => z.looseObject({
|
|
|
759
920
|
}));
|
|
760
921
|
/** Response containing request queue data. */
|
|
761
922
|
export const RequestQueueResponse = lazySchema(() => z.looseObject({
|
|
762
|
-
data:
|
|
923
|
+
data: RequestQueueResource(),
|
|
763
924
|
}));
|
|
764
925
|
/** Request object for updating a request queue. */
|
|
765
926
|
export const UpdateRequestQueueRequest = lazySchema(() => z.looseObject({
|
|
@@ -771,6 +932,8 @@ export const UniqueKey = lazySchema(() => z.string());
|
|
|
771
932
|
/** The URL of the request. */
|
|
772
933
|
export const RequestUrl = lazySchema(() => z.string());
|
|
773
934
|
export const HttpMethod = lazySchema(() => z.enum(["GET", "HEAD", "POST", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]).or(z.string()));
|
|
935
|
+
/** The HTTP method of the request. */
|
|
936
|
+
export const RequestMethod = lazySchema(() => HttpMethod());
|
|
774
937
|
/** The number of times this request has been retried. */
|
|
775
938
|
export const RetryCount = lazySchema(() => z.int());
|
|
776
939
|
/** Custom user data attached to the request. Can contain arbitrary fields. */
|
|
@@ -778,7 +941,7 @@ export const RequestUserData = lazySchema(() => z.record(z.string(), z.unknown()
|
|
|
778
941
|
export const RequestBase = lazySchema(() => z.looseObject({
|
|
779
942
|
uniqueKey: UniqueKey(),
|
|
780
943
|
url: RequestUrl(),
|
|
781
|
-
method:
|
|
944
|
+
method: RequestMethod().optional(),
|
|
782
945
|
retryCount: RetryCount().optional(),
|
|
783
946
|
loadedUrl: z.string().nullable().optional(),
|
|
784
947
|
payload: z.union([z.string(), z.record(z.string(), z.unknown())]).nullable().optional(),
|
|
@@ -786,17 +949,21 @@ export const RequestBase = lazySchema(() => z.looseObject({
|
|
|
786
949
|
userData: RequestUserData().optional(),
|
|
787
950
|
noRetry: z.boolean().nullable().optional(),
|
|
788
951
|
errorMessages: z.array(z.string()).nullable().optional(),
|
|
789
|
-
handledAt: z.date().nullable().optional(),
|
|
952
|
+
handledAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
790
953
|
}));
|
|
791
954
|
/** A unique identifier assigned to the request. */
|
|
792
955
|
export const RequestId = lazySchema(() => z.string());
|
|
956
|
+
/** The timestamp when the lock on this request expires. */
|
|
957
|
+
export const LockExpiresAt = lazySchema(() => z.iso.datetime({ offset: true }).pipe(z.coerce.date()));
|
|
793
958
|
/** A request stored in the request queue, including its metadata and processing state. */
|
|
794
|
-
export const
|
|
959
|
+
export const RequestResource = lazySchema(() => RequestBase().extend({
|
|
795
960
|
id: RequestId().optional(),
|
|
961
|
+
lockExpiresAt: LockExpiresAt().optional(),
|
|
962
|
+
lockByClient: z.string().optional(),
|
|
796
963
|
}).required({ id: true }));
|
|
797
964
|
/** A paginated list of requests from the request queue. */
|
|
798
965
|
export const ListOfRequests = lazySchema(() => z.looseObject({
|
|
799
|
-
items: z.array(
|
|
966
|
+
items: z.array(RequestResource()),
|
|
800
967
|
limit: z.int(),
|
|
801
968
|
exclusiveStartId: z.string().optional(),
|
|
802
969
|
cursor: z.string().optional(),
|
|
@@ -830,33 +997,33 @@ export const AddedRequest = lazySchema(() => z.looseObject({
|
|
|
830
997
|
wasAlreadyHandled: WasAlreadyHandled(),
|
|
831
998
|
}));
|
|
832
999
|
/** A request that failed to be processed during a request queue operation and can be retried. */
|
|
833
|
-
export const
|
|
1000
|
+
export const UnprocessedRequest = lazySchema(() => z.looseObject({
|
|
834
1001
|
id: RequestId().optional(),
|
|
835
1002
|
uniqueKey: UniqueKey(),
|
|
836
1003
|
url: RequestUrl(),
|
|
837
|
-
method:
|
|
1004
|
+
method: RequestMethod().optional(),
|
|
838
1005
|
}));
|
|
839
1006
|
/** Result of a batch add operation containing successfully processed and failed requests. */
|
|
840
1007
|
export const BatchAddResult = lazySchema(() => z.looseObject({
|
|
841
1008
|
processedRequests: z.array(AddedRequest()),
|
|
842
|
-
unprocessedRequests: z.array(
|
|
1009
|
+
unprocessedRequests: z.array(UnprocessedRequest()),
|
|
843
1010
|
}));
|
|
844
1011
|
/** Response containing the result of a batch add operation. */
|
|
845
1012
|
export const BatchAddResponse = lazySchema(() => z.looseObject({
|
|
846
1013
|
data: BatchAddResult(),
|
|
847
1014
|
}));
|
|
848
1015
|
/** A request that should be deleted, identified by its ID. */
|
|
849
|
-
export const
|
|
1016
|
+
export const RequestToDeleteById = lazySchema(() => z.looseObject({
|
|
850
1017
|
id: RequestId(),
|
|
851
1018
|
uniqueKey: UniqueKey().optional(),
|
|
852
1019
|
}));
|
|
853
1020
|
/** A request that should be deleted, identified by its unique key. */
|
|
854
|
-
export const
|
|
1021
|
+
export const RequestToDeleteByUniqueKey = lazySchema(() => z.looseObject({
|
|
855
1022
|
id: RequestId().optional(),
|
|
856
1023
|
uniqueKey: UniqueKey(),
|
|
857
1024
|
}));
|
|
858
1025
|
/** A request that should be deleted. */
|
|
859
|
-
export const
|
|
1026
|
+
export const RequestToDelete = lazySchema(() => z.union([RequestToDeleteById(), RequestToDeleteByUniqueKey()]));
|
|
860
1027
|
/** Confirmation of a request that was successfully deleted, identified by its ID. */
|
|
861
1028
|
export const DeletedRequestById = lazySchema(() => z.looseObject({
|
|
862
1029
|
uniqueKey: UniqueKey().optional(),
|
|
@@ -872,7 +1039,7 @@ export const DeletedRequest = lazySchema(() => z.union([DeletedRequestById(), De
|
|
|
872
1039
|
/** Result of a batch delete operation containing successfully deleted and failed requests. */
|
|
873
1040
|
export const BatchDeleteResult = lazySchema(() => z.looseObject({
|
|
874
1041
|
processedRequests: z.array(DeletedRequest()),
|
|
875
|
-
unprocessedRequests: z.array(
|
|
1042
|
+
unprocessedRequests: z.array(UnprocessedRequest()),
|
|
876
1043
|
}));
|
|
877
1044
|
/** Response containing the result of a batch delete operation. */
|
|
878
1045
|
export const BatchDeleteResponse = lazySchema(() => z.looseObject({
|
|
@@ -888,14 +1055,12 @@ export const UnlockRequestsResponse = lazySchema(() => z.looseObject({
|
|
|
888
1055
|
}));
|
|
889
1056
|
/** Response containing a single request from the request queue. */
|
|
890
1057
|
export const RequestResponse = lazySchema(() => z.looseObject({
|
|
891
|
-
data:
|
|
1058
|
+
data: RequestResource(),
|
|
892
1059
|
}));
|
|
893
1060
|
/** Response containing the result of updating a request in the request queue. */
|
|
894
1061
|
export const UpdateRequestResponse = lazySchema(() => z.looseObject({
|
|
895
1062
|
data: RequestRegistration(),
|
|
896
1063
|
}));
|
|
897
|
-
/** The timestamp when the lock on this request expires. */
|
|
898
|
-
export const LockExpiresAt = lazySchema(() => z.date());
|
|
899
1064
|
/** Information about a request lock. */
|
|
900
1065
|
export const RequestLockInfo = lazySchema(() => z.looseObject({
|
|
901
1066
|
lockExpiresAt: LockExpiresAt(),
|
|
@@ -907,11 +1072,11 @@ export const ProlongRequestLockResponse = lazySchema(() => z.looseObject({
|
|
|
907
1072
|
/** The maximum number of requests returned. */
|
|
908
1073
|
export const HeadLimit = lazySchema(() => z.int());
|
|
909
1074
|
/** A request from the request queue head without lock information. */
|
|
910
|
-
export const
|
|
1075
|
+
export const RequestQueueHeadItem = lazySchema(() => z.looseObject({
|
|
911
1076
|
id: RequestId(),
|
|
912
1077
|
uniqueKey: UniqueKey(),
|
|
913
1078
|
url: RequestUrl(),
|
|
914
|
-
method:
|
|
1079
|
+
method: RequestMethod().optional(),
|
|
915
1080
|
retryCount: RetryCount().optional(),
|
|
916
1081
|
}));
|
|
917
1082
|
/** A batch of requests from the request queue head without locking. */
|
|
@@ -919,18 +1084,18 @@ export const RequestQueueHead = lazySchema(() => z.looseObject({
|
|
|
919
1084
|
limit: HeadLimit(),
|
|
920
1085
|
queueModifiedAt: QueueModifiedAt(),
|
|
921
1086
|
hadMultipleClients: HadMultipleClients(),
|
|
922
|
-
items: z.array(
|
|
1087
|
+
items: z.array(RequestQueueHeadItem()),
|
|
923
1088
|
}));
|
|
924
1089
|
/** Response containing requests from the request queue head without locking. */
|
|
925
|
-
export const
|
|
1090
|
+
export const RequestQueueHeadResponse = lazySchema(() => z.looseObject({
|
|
926
1091
|
data: RequestQueueHead(),
|
|
927
1092
|
}));
|
|
928
1093
|
/** A request from the request queue head that has been locked for processing. */
|
|
929
|
-
export const
|
|
1094
|
+
export const LockedRequestQueueHeadItem = lazySchema(() => z.looseObject({
|
|
930
1095
|
id: RequestId(),
|
|
931
1096
|
uniqueKey: UniqueKey(),
|
|
932
1097
|
url: RequestUrl(),
|
|
933
|
-
method:
|
|
1098
|
+
method: RequestMethod().optional(),
|
|
934
1099
|
retryCount: RetryCount().optional(),
|
|
935
1100
|
lockExpiresAt: LockExpiresAt(),
|
|
936
1101
|
}));
|
|
@@ -942,29 +1107,32 @@ export const LockedRequestQueueHead = lazySchema(() => z.looseObject({
|
|
|
942
1107
|
clientKey: z.string().optional(),
|
|
943
1108
|
hadMultipleClients: HadMultipleClients(),
|
|
944
1109
|
lockSecs: z.int(),
|
|
945
|
-
items: z.array(
|
|
1110
|
+
items: z.array(LockedRequestQueueHeadItem()),
|
|
946
1111
|
}));
|
|
947
1112
|
/** Response containing locked requests from the request queue head. */
|
|
948
|
-
export const
|
|
1113
|
+
export const LockedRequestQueueHeadResponse = lazySchema(() => z.looseObject({
|
|
949
1114
|
data: LockedRequestQueueHead(),
|
|
950
1115
|
}));
|
|
951
1116
|
export const TaskStats = lazySchema(() => z.looseObject({
|
|
952
1117
|
totalRuns: z.int().optional(),
|
|
1118
|
+
lastRunStartedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
953
1119
|
}));
|
|
954
|
-
export const
|
|
1120
|
+
export const TaskListItem = lazySchema(() => z.looseObject({
|
|
955
1121
|
id: z.string(),
|
|
956
1122
|
userId: z.string(),
|
|
957
1123
|
actId: z.string(),
|
|
958
1124
|
actName: z.string().nullable().optional(),
|
|
959
1125
|
name: z.string(),
|
|
1126
|
+
title: z.string().nullable().optional(),
|
|
960
1127
|
username: z.string().nullable().optional(),
|
|
961
1128
|
actUsername: z.string().nullable().optional(),
|
|
962
|
-
createdAt: z.date(),
|
|
963
|
-
modifiedAt: z.date(),
|
|
1129
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1130
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
964
1131
|
stats: TaskStats().nullable().optional(),
|
|
1132
|
+
isPublic: z.boolean().optional(),
|
|
965
1133
|
}));
|
|
966
1134
|
export const ListOfTasks = lazySchema(() => PaginationResponse().extend({
|
|
967
|
-
items: z.array(
|
|
1135
|
+
items: z.array(TaskListItem()),
|
|
968
1136
|
}));
|
|
969
1137
|
export const ListOfTasksResponse = lazySchema(() => z.looseObject({
|
|
970
1138
|
data: ListOfTasks(),
|
|
@@ -976,6 +1144,8 @@ export const TaskOptions = lazySchema(() => z.looseObject({
|
|
|
976
1144
|
maxItems: z.int().nullable().optional(),
|
|
977
1145
|
maxTotalChargeUsd: z.number().nullable().optional(),
|
|
978
1146
|
restartOnError: z.boolean().nullable().optional(),
|
|
1147
|
+
isMaxTotalChargeUsdSetByUser: z.boolean().nullable().optional(),
|
|
1148
|
+
forcePermissionLevel: ActorPermissionLevel().nullable().optional(),
|
|
979
1149
|
}));
|
|
980
1150
|
/**
|
|
981
1151
|
* The input configuration for the Actor task. This is a user-defined JSON object
|
|
@@ -988,12 +1158,18 @@ export const TaskInput = lazySchema(() => z.record(z.string(), z.unknown()));
|
|
|
988
1158
|
* `publishedAt` is set and unpublished when it is `null`.
|
|
989
1159
|
*/
|
|
990
1160
|
export const TaskPublicConfig = lazySchema(() => z.looseObject({
|
|
991
|
-
publishedAt: z.date().nullable().optional(),
|
|
1161
|
+
publishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
992
1162
|
seoTitle: z.string().max(60).nullable().optional(),
|
|
993
1163
|
seoDescription: z.string().max(160).nullable().optional(),
|
|
994
1164
|
inputSchemaFields: z.array(z.string()).nullable().optional(),
|
|
995
1165
|
datasetName: z.string().nullable().optional(),
|
|
996
1166
|
datasetView: z.string().nullable().optional(),
|
|
1167
|
+
categorization: z.string().nullable().optional(),
|
|
1168
|
+
highlightedFields: z.array(z.string()).nullable().optional(),
|
|
1169
|
+
faq: z.array(z.looseObject({
|
|
1170
|
+
question: z.string(),
|
|
1171
|
+
answer: z.string(),
|
|
1172
|
+
})).nullable().optional(),
|
|
997
1173
|
}));
|
|
998
1174
|
export const CreateTaskRequest = lazySchema(() => z.looseObject({
|
|
999
1175
|
actId: z.string(),
|
|
@@ -1001,6 +1177,7 @@ export const CreateTaskRequest = lazySchema(() => z.looseObject({
|
|
|
1001
1177
|
options: TaskOptions().nullable().optional(),
|
|
1002
1178
|
input: z.union([TaskInput(), z.array(TaskInput())]).nullable().optional(),
|
|
1003
1179
|
title: z.string().nullable().optional(),
|
|
1180
|
+
description: z.string().nullable().optional(),
|
|
1004
1181
|
actorStandby: ActorStandby().nullable().optional(),
|
|
1005
1182
|
publicConfig: TaskPublicConfig().optional(),
|
|
1006
1183
|
}));
|
|
@@ -1009,14 +1186,16 @@ export const Task = lazySchema(() => z.looseObject({
|
|
|
1009
1186
|
userId: z.string(),
|
|
1010
1187
|
actId: z.string(),
|
|
1011
1188
|
name: z.string(),
|
|
1189
|
+
nameLowerCase: z.string().optional(),
|
|
1012
1190
|
username: z.string().nullable().optional(),
|
|
1013
|
-
createdAt: z.date(),
|
|
1014
|
-
modifiedAt: z.date(),
|
|
1015
|
-
removedAt: z.date().nullable().optional(),
|
|
1191
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1192
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1193
|
+
removedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1016
1194
|
stats: TaskStats().nullable().optional(),
|
|
1017
1195
|
options: TaskOptions().nullable().optional(),
|
|
1018
1196
|
input: z.union([TaskInput(), z.array(TaskInput())]).nullable().optional(),
|
|
1019
1197
|
title: z.string().nullable().optional(),
|
|
1198
|
+
description: z.string().nullable().optional(),
|
|
1020
1199
|
actorStandby: ActorStandby().nullable().optional(),
|
|
1021
1200
|
standbyUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1022
1201
|
isPublic: z.boolean().optional(),
|
|
@@ -1031,28 +1210,11 @@ export const UpdateTaskRequest = lazySchema(() => z.looseObject({
|
|
|
1031
1210
|
options: TaskOptions().nullable().optional(),
|
|
1032
1211
|
input: z.union([TaskInput(), z.array(TaskInput())]).nullable().optional(),
|
|
1033
1212
|
title: z.string().nullable().optional(),
|
|
1213
|
+
description: z.string().nullable().optional(),
|
|
1034
1214
|
actorStandby: ActorStandby().nullable().optional(),
|
|
1035
1215
|
publicConfig: TaskPublicConfig().optional(),
|
|
1036
1216
|
isPublic: z.boolean().optional(),
|
|
1037
1217
|
}));
|
|
1038
|
-
export const Webhook = lazySchema(() => z.looseObject({
|
|
1039
|
-
id: z.string(),
|
|
1040
|
-
createdAt: z.date(),
|
|
1041
|
-
modifiedAt: z.date(),
|
|
1042
|
-
userId: z.string(),
|
|
1043
|
-
isAdHoc: z.boolean().nullable().optional(),
|
|
1044
|
-
shouldInterpolateStrings: z.boolean().nullable().optional(),
|
|
1045
|
-
eventTypes: z.array(WebhookEventType()),
|
|
1046
|
-
condition: WebhookCondition(),
|
|
1047
|
-
ignoreSslErrors: z.boolean(),
|
|
1048
|
-
doNotRetry: z.boolean().nullable().optional(),
|
|
1049
|
-
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1050
|
-
payloadTemplate: z.string().nullable().optional(),
|
|
1051
|
-
headersTemplate: z.string().nullable().optional(),
|
|
1052
|
-
description: z.string().nullable().optional(),
|
|
1053
|
-
lastDispatch: ExampleWebhookDispatch().nullable().optional(),
|
|
1054
|
-
stats: WebhookStats().nullable().optional(),
|
|
1055
|
-
}));
|
|
1056
1218
|
export const UpdateRunRequest = lazySchema(() => z.looseObject({
|
|
1057
1219
|
runId: z.string().optional(),
|
|
1058
1220
|
statusMessage: z.string().optional(),
|
|
@@ -1062,22 +1224,66 @@ export const UpdateRunRequest = lazySchema(() => z.looseObject({
|
|
|
1062
1224
|
export const ChargeRunRequest = lazySchema(() => z.looseObject({
|
|
1063
1225
|
eventName: z.string(),
|
|
1064
1226
|
count: z.int(),
|
|
1227
|
+
requestId: z.string().optional(),
|
|
1228
|
+
}));
|
|
1229
|
+
/** An account a user connected through an Actor OAuth connection. */
|
|
1230
|
+
export const ActorOAuthAccount = lazySchema(() => z.looseObject({
|
|
1231
|
+
_id: z.string(),
|
|
1232
|
+
userId: z.string(),
|
|
1233
|
+
connectionId: z.string(),
|
|
1234
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1235
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1236
|
+
authorizedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1237
|
+
description: z.string().nullable().optional(),
|
|
1238
|
+
data: z.record(z.string(), z.unknown()),
|
|
1239
|
+
}));
|
|
1240
|
+
export const ListOfActorOAuthAccounts = lazySchema(() => z.looseObject({
|
|
1241
|
+
total: z.int(),
|
|
1242
|
+
items: z.array(ActorOAuthAccount()),
|
|
1243
|
+
}));
|
|
1244
|
+
export const ListOfActorOAuthAccountsResponse = lazySchema(() => z.looseObject({
|
|
1245
|
+
data: ListOfActorOAuthAccounts(),
|
|
1246
|
+
}));
|
|
1247
|
+
export const ActorOAuthAccountResponse = lazySchema(() => z.looseObject({
|
|
1248
|
+
data: ActorOAuthAccount(),
|
|
1065
1249
|
}));
|
|
1066
1250
|
export const StorageOwnership = lazySchema(() => z.enum(["ownedByMe", "sharedWithMe"]).or(z.string()));
|
|
1251
|
+
export const KeyValueStoreListStats = lazySchema(() => z.looseObject({
|
|
1252
|
+
readCount: z.int().optional(),
|
|
1253
|
+
writeCount: z.int().optional(),
|
|
1254
|
+
deleteCount: z.int().optional(),
|
|
1255
|
+
listCount: z.int().optional(),
|
|
1256
|
+
s3StorageBytes: z.int().optional(),
|
|
1257
|
+
}));
|
|
1258
|
+
export const KeyValueStoreListItem = lazySchema(() => z.looseObject({
|
|
1259
|
+
id: z.string(),
|
|
1260
|
+
name: z.string().nullable().optional(),
|
|
1261
|
+
title: z.string().nullable().optional(),
|
|
1262
|
+
userId: z.string().nullable().optional(),
|
|
1263
|
+
username: z.string().nullable().optional(),
|
|
1264
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1265
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1266
|
+
accessedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1267
|
+
actId: z.string().nullable().optional(),
|
|
1268
|
+
actRunId: z.string().nullable().optional(),
|
|
1269
|
+
schema: z.union([z.record(z.string(), z.unknown()), z.string()]).nullable().optional(),
|
|
1270
|
+
generalAccess: GeneralAccess().nullable().optional(),
|
|
1271
|
+
stats: KeyValueStoreListStats().optional(),
|
|
1272
|
+
}));
|
|
1067
1273
|
export const ListOfKeyValueStores = lazySchema(() => PaginationResponse().extend({
|
|
1068
1274
|
unnamed: z.boolean().optional(),
|
|
1069
|
-
items: z.array(
|
|
1275
|
+
items: z.array(KeyValueStoreListItem()),
|
|
1070
1276
|
}));
|
|
1071
1277
|
export const ListOfKeyValueStoresResponse = lazySchema(() => z.looseObject({
|
|
1072
1278
|
data: ListOfKeyValueStores(),
|
|
1073
1279
|
}));
|
|
1074
1280
|
export const DatasetListItem = lazySchema(() => z.looseObject({
|
|
1075
1281
|
id: z.string(),
|
|
1076
|
-
name: z.string(),
|
|
1282
|
+
name: z.string().nullable().optional(),
|
|
1077
1283
|
userId: z.string(),
|
|
1078
|
-
createdAt: z.date(),
|
|
1079
|
-
modifiedAt: z.date(),
|
|
1080
|
-
accessedAt: z.date(),
|
|
1284
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1285
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1286
|
+
accessedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1081
1287
|
itemCount: z.int(),
|
|
1082
1288
|
cleanItemCount: z.int(),
|
|
1083
1289
|
actId: z.string().nullable().optional(),
|
|
@@ -1094,16 +1300,26 @@ export const ListOfDatasets = lazySchema(() => PaginationResponse().extend({
|
|
|
1094
1300
|
export const ListOfDatasetsResponse = lazySchema(() => z.looseObject({
|
|
1095
1301
|
data: ListOfDatasets(),
|
|
1096
1302
|
}));
|
|
1303
|
+
/** Statistics about request queue operations and storage, as returned in request queue lists. */
|
|
1304
|
+
export const RequestQueueListStats = lazySchema(() => z.looseObject({
|
|
1305
|
+
deleteCount: z.int().optional(),
|
|
1306
|
+
headItemReadCount: z.int().optional(),
|
|
1307
|
+
readCount: z.int().optional(),
|
|
1308
|
+
writeCount: z.int().optional(),
|
|
1309
|
+
s3StorageBytes: z.int().optional(),
|
|
1310
|
+
dynamodbStorageBytes: z.int().optional(),
|
|
1311
|
+
}));
|
|
1097
1312
|
/** A shortened request queue object for list responses. */
|
|
1098
|
-
export const
|
|
1313
|
+
export const RequestQueueListItem = lazySchema(() => z.looseObject({
|
|
1099
1314
|
id: QueueId(),
|
|
1100
|
-
name: z.string(),
|
|
1315
|
+
name: z.string().nullable().optional(),
|
|
1316
|
+
title: z.string().nullable().optional(),
|
|
1101
1317
|
userId: QueueUserId(),
|
|
1102
|
-
username: z.string(),
|
|
1318
|
+
username: z.string().optional(),
|
|
1103
1319
|
createdAt: QueueCreatedAt(),
|
|
1104
1320
|
modifiedAt: QueueModifiedAt(),
|
|
1105
1321
|
accessedAt: QueueAccessedAt(),
|
|
1106
|
-
expireAt: z.date().optional(),
|
|
1322
|
+
expireAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).optional(),
|
|
1107
1323
|
totalRequestCount: TotalRequestCount(),
|
|
1108
1324
|
handledRequestCount: HandledRequestCount(),
|
|
1109
1325
|
pendingRequestCount: PendingRequestCount(),
|
|
@@ -1111,18 +1327,49 @@ export const RequestQueueShort = lazySchema(() => z.looseObject({
|
|
|
1111
1327
|
actRunId: z.string().nullable().optional(),
|
|
1112
1328
|
hadMultipleClients: HadMultipleClients(),
|
|
1113
1329
|
generalAccess: GeneralAccess().nullable().optional(),
|
|
1114
|
-
stats:
|
|
1330
|
+
stats: RequestQueueListStats().optional(),
|
|
1115
1331
|
}));
|
|
1116
1332
|
/** A paginated list of request queues. */
|
|
1117
1333
|
export const ListOfRequestQueues = lazySchema(() => PaginationResponse().extend({
|
|
1118
1334
|
unnamed: z.boolean().optional(),
|
|
1119
|
-
items: z.array(
|
|
1335
|
+
items: z.array(RequestQueueListItem()),
|
|
1120
1336
|
}));
|
|
1121
1337
|
/** Response containing a list of request queues. */
|
|
1122
1338
|
export const ListOfRequestQueuesResponse = lazySchema(() => z.looseObject({
|
|
1123
1339
|
data: ListOfRequestQueues(),
|
|
1124
1340
|
}));
|
|
1125
|
-
export const
|
|
1341
|
+
export const WebhookListItem = lazySchema(() => z.looseObject({
|
|
1342
|
+
id: z.string(),
|
|
1343
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1344
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1345
|
+
userId: z.string(),
|
|
1346
|
+
isAdHoc: z.boolean().nullable().optional(),
|
|
1347
|
+
isApifyIntegration: z.boolean().optional(),
|
|
1348
|
+
isEnabled: z.boolean().optional(),
|
|
1349
|
+
actionType: z.string().optional(),
|
|
1350
|
+
shouldInterpolateStrings: z.boolean().nullable().optional(),
|
|
1351
|
+
eventTypes: z.array(WebhookEventType()),
|
|
1352
|
+
condition: WebhookCondition(),
|
|
1353
|
+
ignoreSslErrors: z.boolean(),
|
|
1354
|
+
doNotRetry: z.boolean(),
|
|
1355
|
+
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1356
|
+
headersTemplate: z.string().nullable().optional(),
|
|
1357
|
+
title: z.string().nullable().optional(),
|
|
1358
|
+
description: z.string().nullable().optional(),
|
|
1359
|
+
slackMessage: WebhookSlackMessage().optional(),
|
|
1360
|
+
googleMail: WebhookGoogleMail().optional(),
|
|
1361
|
+
googleDrive: WebhookGoogleDrive().optional(),
|
|
1362
|
+
githubIssue: WebhookGithubIssue().optional(),
|
|
1363
|
+
lastDispatch: WebhookLastDispatch().nullable().optional(),
|
|
1364
|
+
stats: WebhookStats().nullable().optional(),
|
|
1365
|
+
}));
|
|
1366
|
+
export const ListOfWebhooks = lazySchema(() => PaginationResponse().extend({
|
|
1367
|
+
items: z.array(WebhookListItem()),
|
|
1368
|
+
}));
|
|
1369
|
+
export const ListOfWebhooksResponse = lazySchema(() => z.looseObject({
|
|
1370
|
+
data: ListOfWebhooks(),
|
|
1371
|
+
}));
|
|
1372
|
+
export const CreateWebhookRequest = lazySchema(() => z.looseObject({
|
|
1126
1373
|
isAdHoc: z.boolean().nullable().optional(),
|
|
1127
1374
|
eventTypes: z.array(WebhookEventType()),
|
|
1128
1375
|
condition: WebhookCondition(),
|
|
@@ -1137,9 +1384,9 @@ export const WebhookCreate = lazySchema(() => z.looseObject({
|
|
|
1137
1384
|
}));
|
|
1138
1385
|
/** Response containing webhook data. */
|
|
1139
1386
|
export const WebhookResponse = lazySchema(() => z.looseObject({
|
|
1140
|
-
data:
|
|
1387
|
+
data: WebhookResource(),
|
|
1141
1388
|
}));
|
|
1142
|
-
export const
|
|
1389
|
+
export const UpdateWebhookRequest = lazySchema(() => z.looseObject({
|
|
1143
1390
|
isAdHoc: z.boolean().nullable().optional(),
|
|
1144
1391
|
eventTypes: z.array(WebhookEventType()).nullable().optional(),
|
|
1145
1392
|
condition: WebhookCondition().nullable().optional(),
|
|
@@ -1153,16 +1400,22 @@ export const WebhookUpdate = lazySchema(() => z.looseObject({
|
|
|
1153
1400
|
}));
|
|
1154
1401
|
/** A summary of the webhook that triggered this dispatch. */
|
|
1155
1402
|
export const WebhookDispatchWebhookSummary = lazySchema(() => z.looseObject({
|
|
1403
|
+
_id: z.string().optional(),
|
|
1156
1404
|
actionType: z.string().optional(),
|
|
1157
1405
|
condition: WebhookCondition().optional(),
|
|
1158
1406
|
requestUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1159
1407
|
isAdHoc: z.boolean().optional(),
|
|
1408
|
+
isApifyIntegration: z.boolean().nullable().optional(),
|
|
1409
|
+
slackMessage: WebhookSlackMessage().optional(),
|
|
1410
|
+
googleMail: WebhookGoogleMail().optional(),
|
|
1411
|
+
googleDrive: WebhookGoogleDrive().optional(),
|
|
1412
|
+
githubIssue: WebhookGithubIssue().optional(),
|
|
1160
1413
|
}));
|
|
1161
1414
|
export const WebhookDispatch = lazySchema(() => z.looseObject({
|
|
1162
1415
|
id: z.string(),
|
|
1163
1416
|
userId: z.string(),
|
|
1164
1417
|
webhookId: z.string(),
|
|
1165
|
-
createdAt: z.date(),
|
|
1418
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1166
1419
|
status: WebhookDispatchStatus(),
|
|
1167
1420
|
eventType: WebhookEventType(),
|
|
1168
1421
|
eventData: z.looseObject({
|
|
@@ -1173,14 +1426,15 @@ export const WebhookDispatch = lazySchema(() => z.looseObject({
|
|
|
1173
1426
|
}).nullable().optional(),
|
|
1174
1427
|
webhook: WebhookDispatchWebhookSummary().nullable().optional(),
|
|
1175
1428
|
calls: z.array(z.looseObject({
|
|
1176
|
-
startedAt: z.date().nullable().optional(),
|
|
1177
|
-
finishedAt: z.date().nullable().optional(),
|
|
1429
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1430
|
+
finishedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1178
1431
|
errorMessage: z.string().nullable().optional(),
|
|
1179
1432
|
responseStatus: z.int().nullable().optional(),
|
|
1180
1433
|
responseBody: z.string().nullable().optional(),
|
|
1434
|
+
debugPostMessage: z.record(z.string(), z.unknown()).optional(),
|
|
1181
1435
|
})).optional(),
|
|
1182
1436
|
}));
|
|
1183
|
-
export const
|
|
1437
|
+
export const WebhookDispatchResponse = lazySchema(() => z.looseObject({
|
|
1184
1438
|
data: WebhookDispatch(),
|
|
1185
1439
|
}));
|
|
1186
1440
|
export const ListOfWebhookDispatches = lazySchema(() => PaginationResponse().extend({
|
|
@@ -1189,9 +1443,6 @@ export const ListOfWebhookDispatches = lazySchema(() => PaginationResponse().ext
|
|
|
1189
1443
|
export const ListOfWebhookDispatchesResponse = lazySchema(() => z.looseObject({
|
|
1190
1444
|
data: ListOfWebhookDispatches(),
|
|
1191
1445
|
}));
|
|
1192
|
-
export const WebhookDispatchResponse = lazySchema(() => z.looseObject({
|
|
1193
|
-
data: WebhookDispatch(),
|
|
1194
|
-
}));
|
|
1195
1446
|
export const ScheduleBase = lazySchema(() => z.looseObject({
|
|
1196
1447
|
id: z.string(),
|
|
1197
1448
|
userId: z.string(),
|
|
@@ -1200,27 +1451,34 @@ export const ScheduleBase = lazySchema(() => z.looseObject({
|
|
|
1200
1451
|
timezone: z.string(),
|
|
1201
1452
|
isEnabled: z.boolean(),
|
|
1202
1453
|
isExclusive: z.boolean(),
|
|
1203
|
-
createdAt: z.date(),
|
|
1204
|
-
modifiedAt: z.date(),
|
|
1205
|
-
nextRunAt: z.date().nullable().optional(),
|
|
1206
|
-
lastRunAt: z.date().nullable().optional(),
|
|
1454
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1455
|
+
modifiedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1456
|
+
nextRunAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1457
|
+
lastRunAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1207
1458
|
}));
|
|
1208
|
-
|
|
1459
|
+
/** Notification settings for this schedule. */
|
|
1460
|
+
export const ScheduleNotifications = lazySchema(() => z.looseObject({
|
|
1461
|
+
email: z.boolean().optional(),
|
|
1462
|
+
}));
|
|
1463
|
+
export const ScheduleListItemActionRunActor = lazySchema(() => z.looseObject({
|
|
1209
1464
|
id: z.string(),
|
|
1210
1465
|
type: z.literal("RUN_ACTOR"),
|
|
1211
1466
|
actorId: z.string(),
|
|
1212
1467
|
}));
|
|
1213
|
-
export const
|
|
1468
|
+
export const ScheduleListItemActionRunActorTask = lazySchema(() => z.looseObject({
|
|
1214
1469
|
id: z.string(),
|
|
1215
1470
|
type: z.literal("RUN_ACTOR_TASK"),
|
|
1216
1471
|
actorTaskId: z.string(),
|
|
1217
1472
|
}));
|
|
1218
|
-
export const
|
|
1219
|
-
export const
|
|
1220
|
-
|
|
1473
|
+
export const ScheduleListItemAction = lazySchema(() => z.discriminatedUnion("type", [ScheduleListItemActionRunActor(), ScheduleListItemActionRunActorTask()]));
|
|
1474
|
+
export const ScheduleListItem = lazySchema(() => ScheduleBase().extend({
|
|
1475
|
+
title: z.string().nullable().optional(),
|
|
1476
|
+
notifications: ScheduleNotifications().optional(),
|
|
1477
|
+
integrationTracking: IntegrationTracking().optional(),
|
|
1478
|
+
actions: z.array(ScheduleListItemAction()),
|
|
1221
1479
|
}));
|
|
1222
1480
|
export const ListOfSchedules = lazySchema(() => PaginationResponse().extend({
|
|
1223
|
-
items: z.array(
|
|
1481
|
+
items: z.array(ScheduleListItem()),
|
|
1224
1482
|
}));
|
|
1225
1483
|
export const ListOfSchedulesResponse = lazySchema(() => z.looseObject({
|
|
1226
1484
|
data: ListOfSchedules(),
|
|
@@ -1241,7 +1499,7 @@ export const ScheduleCreateActionRunActorTask = lazySchema(() => z.looseObject({
|
|
|
1241
1499
|
input: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
1242
1500
|
}));
|
|
1243
1501
|
export const ScheduleCreateAction = lazySchema(() => z.discriminatedUnion("type", [ScheduleCreateActionRunActor(), ScheduleCreateActionRunActorTask()]));
|
|
1244
|
-
export const
|
|
1502
|
+
export const CreateOrUpdateScheduleRequest = lazySchema(() => z.looseObject({
|
|
1245
1503
|
name: z.string().nullable().optional(),
|
|
1246
1504
|
isEnabled: z.boolean().nullable().optional(),
|
|
1247
1505
|
isExclusive: z.boolean().nullable().optional(),
|
|
@@ -1249,8 +1507,17 @@ export const ScheduleCreate = lazySchema(() => z.looseObject({
|
|
|
1249
1507
|
timezone: z.string().nullable().optional(),
|
|
1250
1508
|
description: z.string().nullable().optional(),
|
|
1251
1509
|
title: z.string().nullable().optional(),
|
|
1510
|
+
notifications: ScheduleNotifications().optional(),
|
|
1252
1511
|
actions: z.array(ScheduleCreateAction()).nullable().optional(),
|
|
1253
1512
|
}));
|
|
1513
|
+
/** State of the schedule editor in Apify Console. It's removed when an API update changes `cronExpression` or `timezone`. */
|
|
1514
|
+
export const ScheduleUiState = lazySchema(() => z.looseObject({
|
|
1515
|
+
version: z.int().optional(),
|
|
1516
|
+
data: z.looseObject({
|
|
1517
|
+
cronExpression: z.string().optional(),
|
|
1518
|
+
timezone: z.string().optional(),
|
|
1519
|
+
}).optional(),
|
|
1520
|
+
}));
|
|
1254
1521
|
export const ScheduleActionRunActor = lazySchema(() => z.looseObject({
|
|
1255
1522
|
id: z.string(),
|
|
1256
1523
|
type: z.literal("RUN_ACTOR"),
|
|
@@ -1268,40 +1535,44 @@ export const ScheduleAction = lazySchema(() => z.discriminatedUnion("type", [Sch
|
|
|
1268
1535
|
export const Schedule = lazySchema(() => ScheduleBase().extend({
|
|
1269
1536
|
description: z.string().nullable().optional(),
|
|
1270
1537
|
title: z.string().nullable().optional(),
|
|
1271
|
-
notifications:
|
|
1272
|
-
|
|
1273
|
-
|
|
1538
|
+
notifications: ScheduleNotifications().optional(),
|
|
1539
|
+
uiState: ScheduleUiState().optional(),
|
|
1540
|
+
integrationTracking: IntegrationTracking().optional(),
|
|
1274
1541
|
actions: z.array(ScheduleAction()),
|
|
1275
1542
|
}));
|
|
1276
1543
|
export const ScheduleResponse = lazySchema(() => z.looseObject({
|
|
1277
1544
|
data: Schedule(),
|
|
1278
1545
|
}));
|
|
1279
|
-
export const
|
|
1546
|
+
export const ScheduleLogEntry = lazySchema(() => z.looseObject({
|
|
1280
1547
|
message: z.string(),
|
|
1281
1548
|
level: z.string(),
|
|
1282
|
-
createdAt: z.date(),
|
|
1549
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1283
1550
|
}));
|
|
1284
1551
|
export const ScheduleLogResponse = lazySchema(() => z.looseObject({
|
|
1285
|
-
data: z.array(
|
|
1552
|
+
data: z.array(ScheduleLogEntry()),
|
|
1286
1553
|
}));
|
|
1287
1554
|
export const CurrentPricingInfo = lazySchema(() => z.looseObject({
|
|
1288
1555
|
pricingModel: z.string(),
|
|
1289
1556
|
apifyMarginPercentage: z.number().optional(),
|
|
1290
|
-
createdAt: z.date().optional(),
|
|
1291
|
-
startedAt: z.date().optional(),
|
|
1292
|
-
notifiedAboutChangeAt: z.date().nullable().optional(),
|
|
1293
|
-
notifiedAboutFutureChangeAt: z.date().nullable().optional(),
|
|
1557
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).optional(),
|
|
1558
|
+
startedAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).optional(),
|
|
1559
|
+
notifiedAboutChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1560
|
+
notifiedAboutFutureChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1294
1561
|
isPriceChangeNotificationSuppressed: z.boolean().optional(),
|
|
1295
1562
|
forceContainsSignificantPriceChange: z.boolean().optional(),
|
|
1296
1563
|
isPPEPlatformUsagePaidByUser: z.boolean().optional(),
|
|
1297
1564
|
reasonForChange: z.string().nullable().optional(),
|
|
1298
|
-
trialMinutes: z.int().nullable().optional(),
|
|
1299
|
-
unitName: z.string().nullable().optional(),
|
|
1300
|
-
pricePerUnitUsd: z.number().nullable().optional(),
|
|
1301
1565
|
minimalMaxTotalChargeUsd: z.number().nullable().optional(),
|
|
1302
1566
|
pricingPerEvent: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
1567
|
+
pricePerUnitUsd: z.number().optional(),
|
|
1568
|
+
trialMinutes: z.int().optional(),
|
|
1569
|
+
unitName: z.string().optional(),
|
|
1570
|
+
tieredPricing: z.record(z.string(), z.looseObject({
|
|
1571
|
+
tieredPricePerUnitUsd: z.number().optional(),
|
|
1572
|
+
})).optional(),
|
|
1573
|
+
notifiedAboutRentalToPpePriceChangeAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable().optional(),
|
|
1303
1574
|
}));
|
|
1304
|
-
export const
|
|
1575
|
+
export const StoreActor = lazySchema(() => z.looseObject({
|
|
1305
1576
|
id: z.string(),
|
|
1306
1577
|
title: z.string(),
|
|
1307
1578
|
name: z.string(),
|
|
@@ -1321,15 +1592,23 @@ export const StoreListActor = lazySchema(() => z.looseObject({
|
|
|
1321
1592
|
bookmarkCount: z.int().optional(),
|
|
1322
1593
|
badge: z.string().nullable().optional(),
|
|
1323
1594
|
readmeSummary: z.string().optional(),
|
|
1595
|
+
inputSchema: z.looseObject({
|
|
1596
|
+
type: z.string(),
|
|
1597
|
+
properties: z.record(z.string(), z.looseObject({
|
|
1598
|
+
type: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1599
|
+
})),
|
|
1600
|
+
required: z.array(z.string()).optional(),
|
|
1601
|
+
}).optional(),
|
|
1324
1602
|
}));
|
|
1325
1603
|
export const ListOfStoreActors = lazySchema(() => PaginationResponse().extend({
|
|
1326
|
-
items: z.array(
|
|
1604
|
+
items: z.array(StoreActor()),
|
|
1327
1605
|
}));
|
|
1328
|
-
export const
|
|
1606
|
+
export const ListOfStoreActorsResponse = lazySchema(() => z.looseObject({
|
|
1329
1607
|
data: ListOfStoreActors(),
|
|
1330
1608
|
}));
|
|
1331
|
-
export const
|
|
1609
|
+
export const UserProfile = lazySchema(() => z.looseObject({
|
|
1332
1610
|
bio: z.string().nullable().optional(),
|
|
1611
|
+
readme: z.string().nullable().optional(),
|
|
1333
1612
|
name: z.string().optional(),
|
|
1334
1613
|
pictureUrl: z.url({ normalize: true }).nullable().optional(),
|
|
1335
1614
|
githubUsername: z.string().nullable().optional(),
|
|
@@ -1338,18 +1617,20 @@ export const Profile = lazySchema(() => z.looseObject({
|
|
|
1338
1617
|
}));
|
|
1339
1618
|
export const UserPublicInfo = lazySchema(() => z.looseObject({
|
|
1340
1619
|
username: z.string(),
|
|
1341
|
-
profile:
|
|
1620
|
+
profile: UserProfile().optional(),
|
|
1342
1621
|
}));
|
|
1343
|
-
export const
|
|
1622
|
+
export const UserPublicInfoResponse = lazySchema(() => z.looseObject({
|
|
1344
1623
|
data: UserPublicInfo(),
|
|
1345
1624
|
}));
|
|
1346
1625
|
export const ProxyGroup = lazySchema(() => z.looseObject({
|
|
1626
|
+
id: z.string().optional(),
|
|
1347
1627
|
name: z.string(),
|
|
1348
1628
|
description: z.string().nullable(),
|
|
1349
|
-
availableCount: z.int(),
|
|
1629
|
+
availableCount: z.int().optional(),
|
|
1350
1630
|
}));
|
|
1351
|
-
|
|
1352
|
-
|
|
1631
|
+
/** Proxy access info. Omitted when the user has no access to Apify Proxy. */
|
|
1632
|
+
export const ProxyResource = lazySchema(() => z.looseObject({
|
|
1633
|
+
password: z.string().nullable().optional(),
|
|
1353
1634
|
groups: z.array(ProxyGroup()),
|
|
1354
1635
|
}));
|
|
1355
1636
|
/**
|
|
@@ -1358,7 +1639,7 @@ export const Proxy = lazySchema(() => z.looseObject({
|
|
|
1358
1639
|
* the count of available proxies.
|
|
1359
1640
|
*/
|
|
1360
1641
|
export const AvailableProxyGroups = lazySchema(() => z.record(z.string(), z.int()));
|
|
1361
|
-
export const
|
|
1642
|
+
export const UserPlan = lazySchema(() => z.looseObject({
|
|
1362
1643
|
id: z.string().optional(),
|
|
1363
1644
|
description: z.string().optional(),
|
|
1364
1645
|
isEnabled: z.boolean().optional(),
|
|
@@ -1384,13 +1665,24 @@ export const Plan = lazySchema(() => z.looseObject({
|
|
|
1384
1665
|
maxScheduleCount: z.int().optional(),
|
|
1385
1666
|
maxConcurrentActorRuns: z.int().optional(),
|
|
1386
1667
|
planPricing: z.record(z.string(), z.unknown()).optional(),
|
|
1668
|
+
planVersion: z.number().optional(),
|
|
1669
|
+
legacyPlanId: z.string().optional(),
|
|
1670
|
+
planTags: z.array(z.string()).optional(),
|
|
1671
|
+
overageThresholdUsd: z.number().optional(),
|
|
1672
|
+
maxMonthlyUnblockerUnits: z.int().optional(),
|
|
1673
|
+
maxPublicActorTaskCount: z.int().optional(),
|
|
1674
|
+
maxPublicActorTaskCountPerActor: z.int().optional(),
|
|
1675
|
+
forceBillingInterval: z.string().optional(),
|
|
1676
|
+
personalizedSupport: z.string().nullable().optional(),
|
|
1677
|
+
monitoringLevel: z.enum(["STANDARD"]).or(z.string()).nullable().optional(),
|
|
1678
|
+
isPayingCustomer: z.boolean().optional(),
|
|
1387
1679
|
}));
|
|
1388
1680
|
export const EffectivePlatformFeature = lazySchema(() => z.looseObject({
|
|
1389
1681
|
isEnabled: z.boolean(),
|
|
1390
1682
|
disabledReason: z.string().nullable(),
|
|
1391
1683
|
disabledReasonType: z.string().nullable(),
|
|
1392
1684
|
isTrial: z.boolean(),
|
|
1393
|
-
trialExpirationAt: z.date().nullable(),
|
|
1685
|
+
trialExpirationAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).nullable(),
|
|
1394
1686
|
}));
|
|
1395
1687
|
export const EffectivePlatformFeatures = lazySchema(() => z.looseObject({
|
|
1396
1688
|
ACTORS: EffectivePlatformFeature(),
|
|
@@ -1407,22 +1699,23 @@ export const EffectivePlatformFeatures = lazySchema(() => z.looseObject({
|
|
|
1407
1699
|
export const UserPrivateInfo = lazySchema(() => z.looseObject({
|
|
1408
1700
|
id: z.string().optional(),
|
|
1409
1701
|
username: z.string(),
|
|
1410
|
-
profile:
|
|
1411
|
-
email: z.string().optional(),
|
|
1412
|
-
proxy:
|
|
1413
|
-
plan:
|
|
1702
|
+
profile: UserProfile().optional(),
|
|
1703
|
+
email: z.string().nullable().optional(),
|
|
1704
|
+
proxy: ProxyResource().optional(),
|
|
1705
|
+
plan: UserPlan().optional(),
|
|
1414
1706
|
effectivePlatformFeatures: EffectivePlatformFeatures().optional(),
|
|
1415
|
-
createdAt: z.date().optional(),
|
|
1707
|
+
createdAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()).optional(),
|
|
1416
1708
|
isPaying: z.boolean().optional(),
|
|
1709
|
+
organizationOwnerUserId: z.string().nullable().optional(),
|
|
1417
1710
|
}));
|
|
1418
|
-
export const
|
|
1711
|
+
export const UserPrivateInfoResponse = lazySchema(() => z.looseObject({
|
|
1419
1712
|
data: UserPrivateInfo(),
|
|
1420
1713
|
}));
|
|
1421
1714
|
export const UsageCycle = lazySchema(() => z.looseObject({
|
|
1422
|
-
startAt: z.date(),
|
|
1423
|
-
endAt: z.date(),
|
|
1715
|
+
startAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1716
|
+
endAt: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1424
1717
|
}));
|
|
1425
|
-
export const
|
|
1718
|
+
export const PriceTier = lazySchema(() => z.looseObject({
|
|
1426
1719
|
quantityAbove: z.number(),
|
|
1427
1720
|
discountPercent: z.number(),
|
|
1428
1721
|
tierQuantity: z.number(),
|
|
@@ -1434,21 +1727,21 @@ export const UsageItem = lazySchema(() => z.looseObject({
|
|
|
1434
1727
|
baseAmountUsd: z.number(),
|
|
1435
1728
|
baseUnitPriceUsd: z.number().optional(),
|
|
1436
1729
|
amountAfterVolumeDiscountUsd: z.number().optional(),
|
|
1437
|
-
priceTiers: z.array(
|
|
1730
|
+
priceTiers: z.array(PriceTier()).optional(),
|
|
1438
1731
|
}));
|
|
1439
1732
|
/** A map of usage item names (e.g., ACTOR_COMPUTE_UNITS) to their usage details. */
|
|
1440
1733
|
export const MonthlyServiceUsage = lazySchema(() => z.record(z.string(), UsageItem()));
|
|
1441
1734
|
/** A map of service usage item names to their usage details. */
|
|
1442
1735
|
export const ServiceUsage = lazySchema(() => z.record(z.string(), UsageItem()));
|
|
1443
|
-
export const
|
|
1444
|
-
date: z.date(),
|
|
1736
|
+
export const DailyServiceUsage = lazySchema(() => z.looseObject({
|
|
1737
|
+
date: z.iso.datetime({ offset: true }).pipe(z.coerce.date()),
|
|
1445
1738
|
serviceUsage: ServiceUsage(),
|
|
1446
1739
|
totalUsageCreditsUsd: z.number(),
|
|
1447
1740
|
}));
|
|
1448
1741
|
export const MonthlyUsage = lazySchema(() => z.looseObject({
|
|
1449
1742
|
usageCycle: UsageCycle(),
|
|
1450
1743
|
monthlyServiceUsage: MonthlyServiceUsage(),
|
|
1451
|
-
dailyServiceUsages: z.array(
|
|
1744
|
+
dailyServiceUsages: z.array(DailyServiceUsage()),
|
|
1452
1745
|
totalUsageCreditsUsdBeforeVolumeDiscount: z.number(),
|
|
1453
1746
|
totalUsageCreditsUsdAfterVolumeDiscount: z.number(),
|
|
1454
1747
|
}));
|
|
@@ -1468,8 +1761,9 @@ export const Limits = lazySchema(() => z.looseObject({
|
|
|
1468
1761
|
maxTeamAccountSeatCount: z.int(),
|
|
1469
1762
|
dataRetentionDays: z.int(),
|
|
1470
1763
|
maxScheduleCount: z.int().optional(),
|
|
1764
|
+
maxMonthlyUnblockerUnits: z.number().optional(),
|
|
1471
1765
|
}));
|
|
1472
|
-
export const
|
|
1766
|
+
export const CurrentUsage = lazySchema(() => z.looseObject({
|
|
1473
1767
|
monthlyUsageUsd: z.number(),
|
|
1474
1768
|
monthlyActorComputeUnits: z.number(),
|
|
1475
1769
|
monthlyExternalDataTransferGbytes: z.number(),
|
|
@@ -1481,19 +1775,66 @@ export const Current = lazySchema(() => z.looseObject({
|
|
|
1481
1775
|
activeActorJobCount: z.int(),
|
|
1482
1776
|
teamAccountSeatCount: z.int(),
|
|
1483
1777
|
scheduleCount: z.int().optional(),
|
|
1778
|
+
monthlyUnblockerUnits: z.number().optional(),
|
|
1484
1779
|
}));
|
|
1485
1780
|
export const AccountLimits = lazySchema(() => z.looseObject({
|
|
1486
1781
|
monthlyUsageCycle: UsageCycle(),
|
|
1487
1782
|
limits: Limits(),
|
|
1488
|
-
current:
|
|
1783
|
+
current: CurrentUsage(),
|
|
1489
1784
|
}));
|
|
1490
|
-
export const
|
|
1785
|
+
export const AccountLimitsResponse = lazySchema(() => z.looseObject({
|
|
1491
1786
|
data: AccountLimits(),
|
|
1492
1787
|
}));
|
|
1493
1788
|
export const UpdateLimitsRequest = lazySchema(() => z.looseObject({
|
|
1494
1789
|
maxMonthlyUsageUsd: z.number().optional(),
|
|
1495
1790
|
dataRetentionDays: z.int().optional(),
|
|
1496
1791
|
}));
|
|
1792
|
+
/** A place the user can create a repository in, such as their own account or an organization, group or workspace they can access. */
|
|
1793
|
+
export const GitProviderWorkspace = lazySchema(() => z.looseObject({
|
|
1794
|
+
id: z.string(),
|
|
1795
|
+
label: z.string(),
|
|
1796
|
+
}));
|
|
1797
|
+
/** A connected git provider account the user can create repositories through. */
|
|
1798
|
+
export const GitProviderIntegration = lazySchema(() => z.looseObject({
|
|
1799
|
+
id: z.string(),
|
|
1800
|
+
provider: z.enum(["github", "gitlab", "bitbucket"]).or(z.string()),
|
|
1801
|
+
workspaces: z.array(GitProviderWorkspace()),
|
|
1802
|
+
addWorkspaceUrl: z.string().optional(),
|
|
1803
|
+
}));
|
|
1804
|
+
export const ListOfGitProviderIntegrationsResponse = lazySchema(() => z.looseObject({
|
|
1805
|
+
data: z.array(GitProviderIntegration()),
|
|
1806
|
+
}));
|
|
1807
|
+
/** A file to commit into the new repository. */
|
|
1808
|
+
export const GitRepoFile = lazySchema(() => z.looseObject({
|
|
1809
|
+
path: z.string(),
|
|
1810
|
+
content: z.string(),
|
|
1811
|
+
encoding: z.enum(["utf-8", "base64"]).or(z.string()),
|
|
1812
|
+
}));
|
|
1813
|
+
export const CreateGitRepoRequest = lazySchema(() => z.looseObject({
|
|
1814
|
+
workspace: z.string(),
|
|
1815
|
+
repoName: z.string(),
|
|
1816
|
+
isPrivate: z.boolean(),
|
|
1817
|
+
files: z.array(GitRepoFile()).optional(),
|
|
1818
|
+
templateArchiveUrl: z.string().optional(),
|
|
1819
|
+
}));
|
|
1820
|
+
/** URLs of a newly created repository. */
|
|
1821
|
+
export const GitRepo = lazySchema(() => z.looseObject({
|
|
1822
|
+
sshUrl: z.string(),
|
|
1823
|
+
httpsUrl: z.string(),
|
|
1824
|
+
htmlUrl: z.string(),
|
|
1825
|
+
}));
|
|
1826
|
+
export const GitRepoResponse = lazySchema(() => z.looseObject({
|
|
1827
|
+
data: GitRepo(),
|
|
1828
|
+
}));
|
|
1829
|
+
export const RegisterDeploymentKeyRequest = lazySchema(() => z.looseObject({
|
|
1830
|
+
actorId: z.string(),
|
|
1831
|
+
repoName: z.string(),
|
|
1832
|
+
}));
|
|
1833
|
+
export const RegisterDeploymentKeyResponse = lazySchema(() => z.looseObject({
|
|
1834
|
+
data: z.looseObject({
|
|
1835
|
+
repoName: z.string(),
|
|
1836
|
+
}),
|
|
1837
|
+
}));
|
|
1497
1838
|
export const BrowserInfoResponse = lazySchema(() => z.looseObject({
|
|
1498
1839
|
method: z.string(),
|
|
1499
1840
|
clientIp: z.string().nullable(),
|
|
@@ -1502,20 +1843,20 @@ export const BrowserInfoResponse = lazySchema(() => z.looseObject({
|
|
|
1502
1843
|
headers: z.record(z.string(), z.union([z.string(), z.array(z.string())])).optional(),
|
|
1503
1844
|
rawHeaders: z.array(z.string()).optional(),
|
|
1504
1845
|
}));
|
|
1505
|
-
export const
|
|
1846
|
+
export const EncodeAndSignResult = lazySchema(() => z.looseObject({
|
|
1506
1847
|
encoded: z.string(),
|
|
1507
1848
|
}));
|
|
1508
1849
|
export const EncodeAndSignResponse = lazySchema(() => z.looseObject({
|
|
1509
|
-
data:
|
|
1850
|
+
data: EncodeAndSignResult(),
|
|
1510
1851
|
}));
|
|
1511
1852
|
export const DecodeAndVerifyRequest = lazySchema(() => z.looseObject({
|
|
1512
1853
|
encoded: z.string(),
|
|
1513
1854
|
}));
|
|
1514
|
-
export const
|
|
1855
|
+
export const DecodeAndVerifyResult = lazySchema(() => z.looseObject({
|
|
1515
1856
|
decoded: z.unknown(),
|
|
1516
1857
|
encodedByUserId: z.string().nullable(),
|
|
1517
1858
|
isVerifiedUser: z.boolean(),
|
|
1518
1859
|
}));
|
|
1519
1860
|
export const DecodeAndVerifyResponse = lazySchema(() => z.looseObject({
|
|
1520
|
-
data:
|
|
1861
|
+
data: DecodeAndVerifyResult(),
|
|
1521
1862
|
}));
|