@ixo/decision-oracle 0.0.0-stage → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +794 -2
- package/dist/act.d.ts +87 -0
- package/dist/act.d.ts.map +1 -0
- package/dist/act.js +20 -0
- package/dist/act.js.map +1 -0
- package/dist/app.d.ts +22 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +128 -0
- package/dist/app.js.map +1 -0
- package/dist/c2pa.wasm +0 -0
- package/dist/cli/commands/api.d.ts +50 -0
- package/dist/cli/commands/api.d.ts.map +1 -0
- package/dist/cli/commands/api.js +737 -0
- package/dist/cli/commands/api.js.map +1 -0
- package/dist/cli/commands/create-collection.d.ts +40 -0
- package/dist/cli/commands/create-collection.d.ts.map +1 -0
- package/dist/cli/commands/create-collection.js +318 -0
- package/dist/cli/commands/create-collection.js.map +1 -0
- package/dist/cli/commands/create-deed.d.ts +31 -0
- package/dist/cli/commands/create-deed.d.ts.map +1 -0
- package/dist/cli/commands/create-deed.js +208 -0
- package/dist/cli/commands/create-deed.js.map +1 -0
- package/dist/cli/commands/delegation.d.ts +26 -0
- package/dist/cli/commands/delegation.d.ts.map +1 -0
- package/dist/cli/commands/delegation.js +162 -0
- package/dist/cli/commands/delegation.js.map +1 -0
- package/dist/cli/commands/derive.d.ts +22 -0
- package/dist/cli/commands/derive.d.ts.map +1 -0
- package/dist/cli/commands/derive.js +53 -0
- package/dist/cli/commands/derive.js.map +1 -0
- package/dist/cli/commands/engine.d.ts +25 -0
- package/dist/cli/commands/engine.d.ts.map +1 -0
- package/dist/cli/commands/engine.js +107 -0
- package/dist/cli/commands/engine.js.map +1 -0
- package/dist/cli/commands/erase.d.ts +17 -0
- package/dist/cli/commands/erase.d.ts.map +1 -0
- package/dist/cli/commands/erase.js +117 -0
- package/dist/cli/commands/erase.js.map +1 -0
- package/dist/cli/commands/facts-run.d.ts +30 -0
- package/dist/cli/commands/facts-run.d.ts.map +1 -0
- package/dist/cli/commands/facts-run.js +409 -0
- package/dist/cli/commands/facts-run.js.map +1 -0
- package/dist/cli/commands/facts-scaffold.d.ts +22 -0
- package/dist/cli/commands/facts-scaffold.d.ts.map +1 -0
- package/dist/cli/commands/facts-scaffold.js +208 -0
- package/dist/cli/commands/facts-scaffold.js.map +1 -0
- package/dist/cli/commands/init.d.ts +18 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +34 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/login.d.ts +9 -0
- package/dist/cli/commands/login.d.ts.map +1 -0
- package/dist/cli/commands/login.js +16 -0
- package/dist/cli/commands/login.js.map +1 -0
- package/dist/cli/commands/logout.d.ts +10 -0
- package/dist/cli/commands/logout.d.ts.map +1 -0
- package/dist/cli/commands/logout.js +28 -0
- package/dist/cli/commands/logout.js.map +1 -0
- package/dist/cli/commands/manifest.d.ts +12 -0
- package/dist/cli/commands/manifest.d.ts.map +1 -0
- package/dist/cli/commands/manifest.js +48 -0
- package/dist/cli/commands/manifest.js.map +1 -0
- package/dist/cli/commands/oracle-init.d.ts +48 -0
- package/dist/cli/commands/oracle-init.d.ts.map +1 -0
- package/dist/cli/commands/oracle-init.js +1122 -0
- package/dist/cli/commands/oracle-init.js.map +1 -0
- package/dist/cli/commands/org.d.ts +28 -0
- package/dist/cli/commands/org.d.ts.map +1 -0
- package/dist/cli/commands/org.js +309 -0
- package/dist/cli/commands/org.js.map +1 -0
- package/dist/cli/commands/protocol-review.d.ts +20 -0
- package/dist/cli/commands/protocol-review.d.ts.map +1 -0
- package/dist/cli/commands/protocol-review.js +162 -0
- package/dist/cli/commands/protocol-review.js.map +1 -0
- package/dist/cli/commands/publish-protocol.d.ts +43 -0
- package/dist/cli/commands/publish-protocol.d.ts.map +1 -0
- package/dist/cli/commands/publish-protocol.js +345 -0
- package/dist/cli/commands/publish-protocol.js.map +1 -0
- package/dist/cli/commands/register.d.ts +16 -0
- package/dist/cli/commands/register.d.ts.map +1 -0
- package/dist/cli/commands/register.js +54 -0
- package/dist/cli/commands/register.js.map +1 -0
- package/dist/cli/commands/relink.d.ts +11 -0
- package/dist/cli/commands/relink.d.ts.map +1 -0
- package/dist/cli/commands/relink.js +36 -0
- package/dist/cli/commands/relink.js.map +1 -0
- package/dist/cli/commands/rubric-fetch-form.d.ts +16 -0
- package/dist/cli/commands/rubric-fetch-form.d.ts.map +1 -0
- package/dist/cli/commands/rubric-fetch-form.js +83 -0
- package/dist/cli/commands/rubric-fetch-form.js.map +1 -0
- package/dist/cli/commands/rubric-validate.d.ts +72 -0
- package/dist/cli/commands/rubric-validate.d.ts.map +1 -0
- package/dist/cli/commands/rubric-validate.js +163 -0
- package/dist/cli/commands/rubric-validate.js.map +1 -0
- package/dist/cli/commands/scan.d.ts +13 -0
- package/dist/cli/commands/scan.d.ts.map +1 -0
- package/dist/cli/commands/scan.js +39 -0
- package/dist/cli/commands/scan.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +11 -0
- package/dist/cli/commands/skills.d.ts.map +1 -0
- package/dist/cli/commands/skills.js +19 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/commands/submit-claim.d.ts +25 -0
- package/dist/cli/commands/submit-claim.d.ts.map +1 -0
- package/dist/cli/commands/submit-claim.js +155 -0
- package/dist/cli/commands/submit-claim.js.map +1 -0
- package/dist/cli/index.d.ts +15 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +206 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/lib/agent-card-schema.d.ts +8 -0
- package/dist/cli/lib/agent-card-schema.d.ts.map +1 -0
- package/dist/cli/lib/agent-card-schema.js +169 -0
- package/dist/cli/lib/agent-card-schema.js.map +1 -0
- package/dist/cli/lib/ai-rest.d.ts +12 -0
- package/dist/cli/lib/ai-rest.d.ts.map +1 -0
- package/dist/cli/lib/ai-rest.js +36 -0
- package/dist/cli/lib/ai-rest.js.map +1 -0
- package/dist/cli/lib/args.d.ts +33 -0
- package/dist/cli/lib/args.d.ts.map +1 -0
- package/dist/cli/lib/args.js +24 -0
- package/dist/cli/lib/args.js.map +1 -0
- package/dist/cli/lib/authhub.d.ts +7 -0
- package/dist/cli/lib/authhub.d.ts.map +1 -0
- package/dist/cli/lib/authhub.js +210 -0
- package/dist/cli/lib/authhub.js.map +1 -0
- package/dist/cli/lib/chain.d.ts +264 -0
- package/dist/cli/lib/chain.d.ts.map +1 -0
- package/dist/cli/lib/chain.js +584 -0
- package/dist/cli/lib/chain.js.map +1 -0
- package/dist/cli/lib/devvars.d.ts +59 -0
- package/dist/cli/lib/devvars.d.ts.map +1 -0
- package/dist/cli/lib/devvars.js +206 -0
- package/dist/cli/lib/devvars.js.map +1 -0
- package/dist/cli/lib/engine.d.ts +54 -0
- package/dist/cli/lib/engine.d.ts.map +1 -0
- package/dist/cli/lib/engine.js +112 -0
- package/dist/cli/lib/engine.js.map +1 -0
- package/dist/cli/lib/identity-cards.d.ts +188 -0
- package/dist/cli/lib/identity-cards.d.ts.map +1 -0
- package/dist/cli/lib/identity-cards.js +261 -0
- package/dist/cli/lib/identity-cards.js.map +1 -0
- package/dist/cli/lib/matrix-account.d.ts +79 -0
- package/dist/cli/lib/matrix-account.d.ts.map +1 -0
- package/dist/cli/lib/matrix-account.js +228 -0
- package/dist/cli/lib/matrix-account.js.map +1 -0
- package/dist/cli/lib/oracle-account.d.ts +108 -0
- package/dist/cli/lib/oracle-account.d.ts.map +1 -0
- package/dist/cli/lib/oracle-account.js +207 -0
- package/dist/cli/lib/oracle-account.js.map +1 -0
- package/dist/cli/lib/project.d.ts +22 -0
- package/dist/cli/lib/project.d.ts.map +1 -0
- package/dist/cli/lib/project.js +62 -0
- package/dist/cli/lib/project.js.map +1 -0
- package/dist/cli/lib/session.d.ts +109 -0
- package/dist/cli/lib/session.d.ts.map +1 -0
- package/dist/cli/lib/session.js +354 -0
- package/dist/cli/lib/session.js.map +1 -0
- package/dist/cli/lib/workorder.d.ts +57 -0
- package/dist/cli/lib/workorder.d.ts.map +1 -0
- package/dist/cli/lib/workorder.js +101 -0
- package/dist/cli/lib/workorder.js.map +1 -0
- package/dist/config.d.ts +221 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +431 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +88 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +9 -0
- package/dist/context.js.map +1 -0
- package/dist/contracts/api.d.ts +3367 -0
- package/dist/contracts/api.d.ts.map +1 -0
- package/dist/contracts/api.js +1303 -0
- package/dist/contracts/api.js.map +1 -0
- package/dist/contracts/capabilities.d.ts +126 -0
- package/dist/contracts/capabilities.d.ts.map +1 -0
- package/dist/contracts/capabilities.js +164 -0
- package/dist/contracts/capabilities.js.map +1 -0
- package/dist/contracts/claim-source.d.ts +98 -0
- package/dist/contracts/claim-source.d.ts.map +1 -0
- package/dist/contracts/claim-source.js +17 -0
- package/dist/contracts/claim-source.js.map +1 -0
- package/dist/contracts/errors.d.ts +150 -0
- package/dist/contracts/errors.d.ts.map +1 -0
- package/dist/contracts/errors.js +121 -0
- package/dist/contracts/errors.js.map +1 -0
- package/dist/contracts/index.d.ts +15 -0
- package/dist/contracts/index.d.ts.map +1 -0
- package/dist/contracts/index.js +11 -0
- package/dist/contracts/index.js.map +1 -0
- package/dist/contracts/payment-gate.d.ts +129 -0
- package/dist/contracts/payment-gate.d.ts.map +1 -0
- package/dist/contracts/payment-gate.js +24 -0
- package/dist/contracts/payment-gate.js.map +1 -0
- package/dist/contracts/start-api-claim.d.ts +90 -0
- package/dist/contracts/start-api-claim.d.ts.map +1 -0
- package/dist/contracts/start-api-claim.js +22 -0
- package/dist/contracts/start-api-claim.js.map +1 -0
- package/dist/contracts/webhooks.d.ts +1487 -0
- package/dist/contracts/webhooks.d.ts.map +1 -0
- package/dist/contracts/webhooks.js +71 -0
- package/dist/contracts/webhooks.js.map +1 -0
- package/dist/contracts/work-order.d.ts +29 -0
- package/dist/contracts/work-order.d.ts.map +1 -0
- package/dist/contracts/work-order.js +12 -0
- package/dist/contracts/work-order.js.map +1 -0
- package/dist/cron/ai-cost.d.ts +29 -0
- package/dist/cron/ai-cost.d.ts.map +1 -0
- package/dist/cron/ai-cost.js +80 -0
- package/dist/cron/ai-cost.js.map +1 -0
- package/dist/cron/api-lane.d.ts +39 -0
- package/dist/cron/api-lane.d.ts.map +1 -0
- package/dist/cron/api-lane.js +203 -0
- package/dist/cron/api-lane.js.map +1 -0
- package/dist/cron/backlog.d.ts +50 -0
- package/dist/cron/backlog.d.ts.map +1 -0
- package/dist/cron/backlog.js +115 -0
- package/dist/cron/backlog.js.map +1 -0
- package/dist/cron/billing.d.ts +11 -0
- package/dist/cron/billing.d.ts.map +1 -0
- package/dist/cron/billing.js +69 -0
- package/dist/cron/billing.js.map +1 -0
- package/dist/cron/collection.d.ts +50 -0
- package/dist/cron/collection.d.ts.map +1 -0
- package/dist/cron/collection.js +118 -0
- package/dist/cron/collection.js.map +1 -0
- package/dist/cron/funding.d.ts +16 -0
- package/dist/cron/funding.d.ts.map +1 -0
- package/dist/cron/funding.js +262 -0
- package/dist/cron/funding.js.map +1 -0
- package/dist/cron/payer-billing.d.ts +38 -0
- package/dist/cron/payer-billing.d.ts.map +1 -0
- package/dist/cron/payer-billing.js +119 -0
- package/dist/cron/payer-billing.js.map +1 -0
- package/dist/cron/scan.d.ts +43 -0
- package/dist/cron/scan.d.ts.map +1 -0
- package/dist/cron/scan.js +250 -0
- package/dist/cron/scan.js.map +1 -0
- package/dist/db/client.d.ts +14 -0
- package/dist/db/client.d.ts.map +1 -0
- package/dist/db/client.js +14 -0
- package/dist/db/client.js.map +1 -0
- package/dist/db/index.d.ts +7 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +7 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/schema.d.ts +6738 -0
- package/dist/db/schema.d.ts.map +1 -0
- package/dist/db/schema.js +1433 -0
- package/dist/db/schema.js.map +1 -0
- package/dist/define-oracle.d.ts +32 -0
- package/dist/define-oracle.d.ts.map +1 -0
- package/dist/define-oracle.js +80 -0
- package/dist/define-oracle.js.map +1 -0
- package/dist/dev-oracle.d.ts +9 -0
- package/dist/dev-oracle.d.ts.map +1 -0
- package/dist/dev-oracle.js +19 -0
- package/dist/dev-oracle.js.map +1 -0
- package/dist/dev-worker.d.ts +10 -0
- package/dist/dev-worker.d.ts.map +1 -0
- package/dist/dev-worker.js +12 -0
- package/dist/dev-worker.js.map +1 -0
- package/dist/env.d.ts +146 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +10 -0
- package/dist/env.js.map +1 -0
- package/dist/facts/exif.d.ts +43 -0
- package/dist/facts/exif.d.ts.map +1 -0
- package/dist/facts/exif.js +224 -0
- package/dist/facts/exif.js.map +1 -0
- package/dist/facts/fact.d.ts +62 -0
- package/dist/facts/fact.d.ts.map +1 -0
- package/dist/facts/fact.js +105 -0
- package/dist/facts/fact.js.map +1 -0
- package/dist/facts/geo.d.ts +55 -0
- package/dist/facts/geo.d.ts.map +1 -0
- package/dist/facts/geo.js +267 -0
- package/dist/facts/geo.js.map +1 -0
- package/dist/facts/index.d.ts +31 -0
- package/dist/facts/index.d.ts.map +1 -0
- package/dist/facts/index.js +27 -0
- package/dist/facts/index.js.map +1 -0
- package/dist/facts/linked-doc.d.ts +60 -0
- package/dist/facts/linked-doc.d.ts.map +1 -0
- package/dist/facts/linked-doc.js +101 -0
- package/dist/facts/linked-doc.js.map +1 -0
- package/dist/facts/types.d.ts +278 -0
- package/dist/facts/types.d.ts.map +1 -0
- package/dist/facts/types.js +19 -0
- package/dist/facts/types.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/api-lane/accept.d.ts +29 -0
- package/dist/lib/api-lane/accept.d.ts.map +1 -0
- package/dist/lib/api-lane/accept.js +218 -0
- package/dist/lib/api-lane/accept.js.map +1 -0
- package/dist/lib/api-lane/claim-list.d.ts +44 -0
- package/dist/lib/api-lane/claim-list.d.ts.map +1 -0
- package/dist/lib/api-lane/claim-list.js +92 -0
- package/dist/lib/api-lane/claim-list.js.map +1 -0
- package/dist/lib/api-lane/company.d.ts +56 -0
- package/dist/lib/api-lane/company.d.ts.map +1 -0
- package/dist/lib/api-lane/company.js +103 -0
- package/dist/lib/api-lane/company.js.map +1 -0
- package/dist/lib/api-lane/events.d.ts +21 -0
- package/dist/lib/api-lane/events.d.ts.map +1 -0
- package/dist/lib/api-lane/events.js +111 -0
- package/dist/lib/api-lane/events.js.map +1 -0
- package/dist/lib/api-lane/ids.d.ts +39 -0
- package/dist/lib/api-lane/ids.d.ts.map +1 -0
- package/dist/lib/api-lane/ids.js +78 -0
- package/dist/lib/api-lane/ids.js.map +1 -0
- package/dist/lib/api-lane/index.d.ts +16 -0
- package/dist/lib/api-lane/index.d.ts.map +1 -0
- package/dist/lib/api-lane/index.js +16 -0
- package/dist/lib/api-lane/index.js.map +1 -0
- package/dist/lib/api-lane/linked.d.ts +264 -0
- package/dist/lib/api-lane/linked.d.ts.map +1 -0
- package/dist/lib/api-lane/linked.js +272 -0
- package/dist/lib/api-lane/linked.js.map +1 -0
- package/dist/lib/api-lane/media-type.d.ts +15 -0
- package/dist/lib/api-lane/media-type.d.ts.map +1 -0
- package/dist/lib/api-lane/media-type.js +73 -0
- package/dist/lib/api-lane/media-type.js.map +1 -0
- package/dist/lib/api-lane/member-emails.d.ts +83 -0
- package/dist/lib/api-lane/member-emails.d.ts.map +1 -0
- package/dist/lib/api-lane/member-emails.js +213 -0
- package/dist/lib/api-lane/member-emails.js.map +1 -0
- package/dist/lib/api-lane/members.d.ts +42 -0
- package/dist/lib/api-lane/members.d.ts.map +1 -0
- package/dist/lib/api-lane/members.js +75 -0
- package/dist/lib/api-lane/members.js.map +1 -0
- package/dist/lib/api-lane/notify.d.ts +47 -0
- package/dist/lib/api-lane/notify.d.ts.map +1 -0
- package/dist/lib/api-lane/notify.js +240 -0
- package/dist/lib/api-lane/notify.js.map +1 -0
- package/dist/lib/api-lane/pause.d.ts +41 -0
- package/dist/lib/api-lane/pause.d.ts.map +1 -0
- package/dist/lib/api-lane/pause.js +155 -0
- package/dist/lib/api-lane/pause.js.map +1 -0
- package/dist/lib/api-lane/record.d.ts +76 -0
- package/dist/lib/api-lane/record.d.ts.map +1 -0
- package/dist/lib/api-lane/record.js +337 -0
- package/dist/lib/api-lane/record.js.map +1 -0
- package/dist/lib/api-lane/retention.d.ts +43 -0
- package/dist/lib/api-lane/retention.d.ts.map +1 -0
- package/dist/lib/api-lane/retention.js +176 -0
- package/dist/lib/api-lane/retention.js.map +1 -0
- package/dist/lib/api-lane/review.d.ts +76 -0
- package/dist/lib/api-lane/review.d.ts.map +1 -0
- package/dist/lib/api-lane/review.js +355 -0
- package/dist/lib/api-lane/review.js.map +1 -0
- package/dist/lib/api-lane/reviewers.d.ts +109 -0
- package/dist/lib/api-lane/reviewers.d.ts.map +1 -0
- package/dist/lib/api-lane/reviewers.js +755 -0
- package/dist/lib/api-lane/reviewers.js.map +1 -0
- package/dist/lib/api-lane/source-delete.d.ts +16 -0
- package/dist/lib/api-lane/source-delete.d.ts.map +1 -0
- package/dist/lib/api-lane/source-delete.js +50 -0
- package/dist/lib/api-lane/source-delete.js.map +1 -0
- package/dist/lib/api-lane/source.d.ts +19 -0
- package/dist/lib/api-lane/source.d.ts.map +1 -0
- package/dist/lib/api-lane/source.js +226 -0
- package/dist/lib/api-lane/source.js.map +1 -0
- package/dist/lib/api-lane/submitter.d.ts +22 -0
- package/dist/lib/api-lane/submitter.d.ts.map +1 -0
- package/dist/lib/api-lane/submitter.js +34 -0
- package/dist/lib/api-lane/submitter.js.map +1 -0
- package/dist/lib/api-lane/timeline.d.ts +20 -0
- package/dist/lib/api-lane/timeline.d.ts.map +1 -0
- package/dist/lib/api-lane/timeline.js +23 -0
- package/dist/lib/api-lane/timeline.js.map +1 -0
- package/dist/lib/api-lane/webhook-crypto.d.ts +44 -0
- package/dist/lib/api-lane/webhook-crypto.d.ts.map +1 -0
- package/dist/lib/api-lane/webhook-crypto.js +103 -0
- package/dist/lib/api-lane/webhook-crypto.js.map +1 -0
- package/dist/lib/api-lane/webhooks.d.ts +117 -0
- package/dist/lib/api-lane/webhooks.d.ts.map +1 -0
- package/dist/lib/api-lane/webhooks.js +503 -0
- package/dist/lib/api-lane/webhooks.js.map +1 -0
- package/dist/lib/archive.d.ts +64 -0
- package/dist/lib/archive.d.ts.map +1 -0
- package/dist/lib/archive.js +305 -0
- package/dist/lib/archive.js.map +1 -0
- package/dist/lib/bech32.d.ts +8 -0
- package/dist/lib/bech32.d.ts.map +1 -0
- package/dist/lib/bech32.js +39 -0
- package/dist/lib/bech32.js.map +1 -0
- package/dist/lib/claim-erase.d.ts +22 -0
- package/dist/lib/claim-erase.d.ts.map +1 -0
- package/dist/lib/claim-erase.js +44 -0
- package/dist/lib/claim-erase.js.map +1 -0
- package/dist/lib/cursor.d.ts +11 -0
- package/dist/lib/cursor.d.ts.map +1 -0
- package/dist/lib/cursor.js +20 -0
- package/dist/lib/cursor.js.map +1 -0
- package/dist/lib/email/send.d.ts +43 -0
- package/dist/lib/email/send.d.ts.map +1 -0
- package/dist/lib/email/send.js +71 -0
- package/dist/lib/email/send.js.map +1 -0
- package/dist/lib/email/template.d.ts +217 -0
- package/dist/lib/email/template.d.ts.map +1 -0
- package/dist/lib/email/template.js +713 -0
- package/dist/lib/email/template.js.map +1 -0
- package/dist/lib/engine/adr36.d.ts +56 -0
- package/dist/lib/engine/adr36.d.ts.map +1 -0
- package/dist/lib/engine/adr36.js +76 -0
- package/dist/lib/engine/adr36.js.map +1 -0
- package/dist/lib/engine/client.d.ts +162 -0
- package/dist/lib/engine/client.d.ts.map +1 -0
- package/dist/lib/engine/client.js +473 -0
- package/dist/lib/engine/client.js.map +1 -0
- package/dist/lib/engine/types.d.ts +1356 -0
- package/dist/lib/engine/types.d.ts.map +1 -0
- package/dist/lib/engine/types.js +562 -0
- package/dist/lib/engine/types.js.map +1 -0
- package/dist/lib/errors.d.ts +73 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +96 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/facts/builder.d.ts +88 -0
- package/dist/lib/facts/builder.d.ts.map +1 -0
- package/dist/lib/facts/builder.js +239 -0
- package/dist/lib/facts/builder.js.map +1 -0
- package/dist/lib/facts/ctx.d.ts +34 -0
- package/dist/lib/facts/ctx.d.ts.map +1 -0
- package/dist/lib/facts/ctx.js +51 -0
- package/dist/lib/facts/ctx.js.map +1 -0
- package/dist/lib/facts/expected.d.ts +23 -0
- package/dist/lib/facts/expected.d.ts.map +1 -0
- package/dist/lib/facts/expected.js +16 -0
- package/dist/lib/facts/expected.js.map +1 -0
- package/dist/lib/facts/fact-cache.d.ts +469 -0
- package/dist/lib/facts/fact-cache.d.ts.map +1 -0
- package/dist/lib/facts/fact-cache.js +52 -0
- package/dist/lib/facts/fact-cache.js.map +1 -0
- package/dist/lib/facts/factset.d.ts +608 -0
- package/dist/lib/facts/factset.d.ts.map +1 -0
- package/dist/lib/facts/factset.js +226 -0
- package/dist/lib/facts/factset.js.map +1 -0
- package/dist/lib/facts/producer.d.ts +190 -0
- package/dist/lib/facts/producer.d.ts.map +1 -0
- package/dist/lib/facts/producer.js +15 -0
- package/dist/lib/facts/producer.js.map +1 -0
- package/dist/lib/facts/runner.d.ts +111 -0
- package/dist/lib/facts/runner.d.ts.map +1 -0
- package/dist/lib/facts/runner.js +438 -0
- package/dist/lib/facts/runner.js.map +1 -0
- package/dist/lib/facts/stock/ai-check.d.ts +100 -0
- package/dist/lib/facts/stock/ai-check.d.ts.map +1 -0
- package/dist/lib/facts/stock/ai-check.js +526 -0
- package/dist/lib/facts/stock/ai-check.js.map +1 -0
- package/dist/lib/facts/stock/ai-inputs.d.ts +104 -0
- package/dist/lib/facts/stock/ai-inputs.d.ts.map +1 -0
- package/dist/lib/facts/stock/ai-inputs.js +332 -0
- package/dist/lib/facts/stock/ai-inputs.js.map +1 -0
- package/dist/lib/facts/stock/ai-provider.d.ts +105 -0
- package/dist/lib/facts/stock/ai-provider.d.ts.map +1 -0
- package/dist/lib/facts/stock/ai-provider.js +250 -0
- package/dist/lib/facts/stock/ai-provider.js.map +1 -0
- package/dist/lib/facts/stock/ai-unique.d.ts +85 -0
- package/dist/lib/facts/stock/ai-unique.d.ts.map +1 -0
- package/dist/lib/facts/stock/ai-unique.js +208 -0
- package/dist/lib/facts/stock/ai-unique.js.map +1 -0
- package/dist/lib/facts/stock/archive.d.ts +63 -0
- package/dist/lib/facts/stock/archive.d.ts.map +1 -0
- package/dist/lib/facts/stock/archive.js +349 -0
- package/dist/lib/facts/stock/archive.js.map +1 -0
- package/dist/lib/facts/stock/c2pa-trust-list.d.ts +16 -0
- package/dist/lib/facts/stock/c2pa-trust-list.d.ts.map +1 -0
- package/dist/lib/facts/stock/c2pa-trust-list.js +637 -0
- package/dist/lib/facts/stock/c2pa-trust-list.js.map +1 -0
- package/dist/lib/facts/stock/c2pa.d.ts +56 -0
- package/dist/lib/facts/stock/c2pa.d.ts.map +1 -0
- package/dist/lib/facts/stock/c2pa.js +234 -0
- package/dist/lib/facts/stock/c2pa.js.map +1 -0
- package/dist/lib/facts/stock/call.d.ts +91 -0
- package/dist/lib/facts/stock/call.d.ts.map +1 -0
- package/dist/lib/facts/stock/call.js +281 -0
- package/dist/lib/facts/stock/call.js.map +1 -0
- package/dist/lib/facts/stock/capability.d.ts +39 -0
- package/dist/lib/facts/stock/capability.d.ts.map +1 -0
- package/dist/lib/facts/stock/capability.js +59 -0
- package/dist/lib/facts/stock/capability.js.map +1 -0
- package/dist/lib/facts/stock/ext-source.d.ts +51 -0
- package/dist/lib/facts/stock/ext-source.d.ts.map +1 -0
- package/dist/lib/facts/stock/ext-source.js +201 -0
- package/dist/lib/facts/stock/ext-source.js.map +1 -0
- package/dist/lib/facts/stock/frequency-fact.d.ts +59 -0
- package/dist/lib/facts/stock/frequency-fact.d.ts.map +1 -0
- package/dist/lib/facts/stock/frequency-fact.js +86 -0
- package/dist/lib/facts/stock/frequency-fact.js.map +1 -0
- package/dist/lib/facts/stock/frequency.d.ts +32 -0
- package/dist/lib/facts/stock/frequency.d.ts.map +1 -0
- package/dist/lib/facts/stock/frequency.js +48 -0
- package/dist/lib/facts/stock/frequency.js.map +1 -0
- package/dist/lib/facts/stock/index.d.ts +27 -0
- package/dist/lib/facts/stock/index.d.ts.map +1 -0
- package/dist/lib/facts/stock/index.js +28 -0
- package/dist/lib/facts/stock/index.js.map +1 -0
- package/dist/lib/facts/stock/normalize.d.ts +45 -0
- package/dist/lib/facts/stock/normalize.d.ts.map +1 -0
- package/dist/lib/facts/stock/normalize.js +135 -0
- package/dist/lib/facts/stock/normalize.js.map +1 -0
- package/dist/lib/facts/stock/phash.d.ts +55 -0
- package/dist/lib/facts/stock/phash.d.ts.map +1 -0
- package/dist/lib/facts/stock/phash.js +256 -0
- package/dist/lib/facts/stock/phash.js.map +1 -0
- package/dist/lib/facts/stock/rule-defaults.d.ts +72 -0
- package/dist/lib/facts/stock/rule-defaults.d.ts.map +1 -0
- package/dist/lib/facts/stock/rule-defaults.js +55 -0
- package/dist/lib/facts/stock/rule-defaults.js.map +1 -0
- package/dist/lib/facts/stock/send.d.ts +52 -0
- package/dist/lib/facts/stock/send.d.ts.map +1 -0
- package/dist/lib/facts/stock/send.js +148 -0
- package/dist/lib/facts/stock/send.js.map +1 -0
- package/dist/lib/facts/stock/unique-score.d.ts +138 -0
- package/dist/lib/facts/stock/unique-score.d.ts.map +1 -0
- package/dist/lib/facts/stock/unique-score.js +257 -0
- package/dist/lib/facts/stock/unique-score.js.map +1 -0
- package/dist/lib/facts/stock/unique-store.d.ts +420 -0
- package/dist/lib/facts/stock/unique-store.d.ts.map +1 -0
- package/dist/lib/facts/stock/unique-store.js +328 -0
- package/dist/lib/facts/stock/unique-store.js.map +1 -0
- package/dist/lib/facts/stock/unique.d.ts +35 -0
- package/dist/lib/facts/stock/unique.d.ts.map +1 -0
- package/dist/lib/facts/stock/unique.js +327 -0
- package/dist/lib/facts/stock/unique.js.map +1 -0
- package/dist/lib/facts/tools.d.ts +57 -0
- package/dist/lib/facts/tools.d.ts.map +1 -0
- package/dist/lib/facts/tools.js +325 -0
- package/dist/lib/facts/tools.js.map +1 -0
- package/dist/lib/facts/validate.d.ts +33 -0
- package/dist/lib/facts/validate.d.ts.map +1 -0
- package/dist/lib/facts/validate.js +137 -0
- package/dist/lib/facts/validate.js.map +1 -0
- package/dist/lib/hash.d.ts +44 -0
- package/dist/lib/hash.d.ts.map +1 -0
- package/dist/lib/hash.js +80 -0
- package/dist/lib/hash.js.map +1 -0
- package/dist/lib/http/client.d.ts +113 -0
- package/dist/lib/http/client.d.ts.map +1 -0
- package/dist/lib/http/client.js +330 -0
- package/dist/lib/http/client.js.map +1 -0
- package/dist/lib/ids.d.ts +17 -0
- package/dist/lib/ids.d.ts.map +1 -0
- package/dist/lib/ids.js +26 -0
- package/dist/lib/ids.js.map +1 -0
- package/dist/lib/ixo/attachments.d.ts +116 -0
- package/dist/lib/ixo/attachments.d.ts.map +1 -0
- package/dist/lib/ixo/attachments.js +290 -0
- package/dist/lib/ixo/attachments.js.map +1 -0
- package/dist/lib/ixo/authz.d.ts +40 -0
- package/dist/lib/ixo/authz.d.ts.map +1 -0
- package/dist/lib/ixo/authz.js +113 -0
- package/dist/lib/ixo/authz.js.map +1 -0
- package/dist/lib/ixo/blocksync/index.d.ts +90 -0
- package/dist/lib/ixo/blocksync/index.d.ts.map +1 -0
- package/dist/lib/ixo/blocksync/index.js +251 -0
- package/dist/lib/ixo/blocksync/index.js.map +1 -0
- package/dist/lib/ixo/blocksync/queries.d.ts +15 -0
- package/dist/lib/ixo/blocksync/queries.d.ts.map +1 -0
- package/dist/lib/ixo/blocksync/queries.js +144 -0
- package/dist/lib/ixo/blocksync/queries.js.map +1 -0
- package/dist/lib/ixo/blocksync/types.d.ts +184 -0
- package/dist/lib/ixo/blocksync/types.d.ts.map +1 -0
- package/dist/lib/ixo/blocksync/types.js +108 -0
- package/dist/lib/ixo/blocksync/types.js.map +1 -0
- package/dist/lib/ixo/cellnode.d.ts +35 -0
- package/dist/lib/ixo/cellnode.d.ts.map +1 -0
- package/dist/lib/ixo/cellnode.js +43 -0
- package/dist/lib/ixo/cellnode.js.map +1 -0
- package/dist/lib/ixo/chain-write.d.ts +130 -0
- package/dist/lib/ixo/chain-write.d.ts.map +1 -0
- package/dist/lib/ixo/chain-write.js +460 -0
- package/dist/lib/ixo/chain-write.js.map +1 -0
- package/dist/lib/ixo/chain.d.ts +1046 -0
- package/dist/lib/ixo/chain.d.ts.map +1 -0
- package/dist/lib/ixo/chain.js +279 -0
- package/dist/lib/ixo/chain.js.map +1 -0
- package/dist/lib/ixo/claim-bot.d.ts +49 -0
- package/dist/lib/ixo/claim-bot.d.ts.map +1 -0
- package/dist/lib/ixo/claim-bot.js +141 -0
- package/dist/lib/ixo/claim-bot.js.map +1 -0
- package/dist/lib/ixo/delegation-verify.d.ts +44 -0
- package/dist/lib/ixo/delegation-verify.d.ts.map +1 -0
- package/dist/lib/ixo/delegation-verify.js +101 -0
- package/dist/lib/ixo/delegation-verify.js.map +1 -0
- package/dist/lib/ixo/did.d.ts +13 -0
- package/dist/lib/ixo/did.d.ts.map +1 -0
- package/dist/lib/ixo/did.js +85 -0
- package/dist/lib/ixo/did.js.map +1 -0
- package/dist/lib/ixo/grant-chain.d.ts +55 -0
- package/dist/lib/ixo/grant-chain.d.ts.map +1 -0
- package/dist/lib/ixo/grant-chain.js +185 -0
- package/dist/lib/ixo/grant-chain.js.map +1 -0
- package/dist/lib/ixo/identity.d.ts +32 -0
- package/dist/lib/ixo/identity.d.ts.map +1 -0
- package/dist/lib/ixo/identity.js +104 -0
- package/dist/lib/ixo/identity.js.map +1 -0
- package/dist/lib/ixo/index.d.ts +118 -0
- package/dist/lib/ixo/index.d.ts.map +1 -0
- package/dist/lib/ixo/index.js +395 -0
- package/dist/lib/ixo/index.js.map +1 -0
- package/dist/lib/ixo/payment.d.ts +104 -0
- package/dist/lib/ixo/payment.d.ts.map +1 -0
- package/dist/lib/ixo/payment.js +136 -0
- package/dist/lib/ixo/payment.js.map +1 -0
- package/dist/lib/ixo/ucan-store.d.ts +30 -0
- package/dist/lib/ixo/ucan-store.d.ts.map +1 -0
- package/dist/lib/ixo/ucan-store.js +134 -0
- package/dist/lib/ixo/ucan-store.js.map +1 -0
- package/dist/lib/ixo/ucan.d.ts +96 -0
- package/dist/lib/ixo/ucan.d.ts.map +1 -0
- package/dist/lib/ixo/ucan.js +216 -0
- package/dist/lib/ixo/ucan.js.map +1 -0
- package/dist/lib/ixo/verified-read.d.ts +43 -0
- package/dist/lib/ixo/verified-read.d.ts.map +1 -0
- package/dist/lib/ixo/verified-read.js +73 -0
- package/dist/lib/ixo/verified-read.js.map +1 -0
- package/dist/lib/ixo/vfs.d.ts +27 -0
- package/dist/lib/ixo/vfs.d.ts.map +1 -0
- package/dist/lib/ixo/vfs.js +42 -0
- package/dist/lib/ixo/vfs.js.map +1 -0
- package/dist/lib/ixo/web-did.d.ts +7 -0
- package/dist/lib/ixo/web-did.d.ts.map +1 -0
- package/dist/lib/ixo/web-did.js +9 -0
- package/dist/lib/ixo/web-did.js.map +1 -0
- package/dist/lib/logger.d.ts +34 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +126 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/matrix/api.d.ts +57 -0
- package/dist/lib/matrix/api.d.ts.map +1 -0
- package/dist/lib/matrix/api.js +58 -0
- package/dist/lib/matrix/api.js.map +1 -0
- package/dist/lib/matrix/client.d.ts +41 -0
- package/dist/lib/matrix/client.d.ts.map +1 -0
- package/dist/lib/matrix/client.js +104 -0
- package/dist/lib/matrix/client.js.map +1 -0
- package/dist/lib/matrix/deliver.d.ts +224 -0
- package/dist/lib/matrix/deliver.d.ts.map +1 -0
- package/dist/lib/matrix/deliver.js +788 -0
- package/dist/lib/matrix/deliver.js.map +1 -0
- package/dist/lib/matrix/events.d.ts +114 -0
- package/dist/lib/matrix/events.d.ts.map +1 -0
- package/dist/lib/matrix/events.js +143 -0
- package/dist/lib/matrix/events.js.map +1 -0
- package/dist/lib/matrix/mxid.d.ts +24 -0
- package/dist/lib/matrix/mxid.d.ts.map +1 -0
- package/dist/lib/matrix/mxid.js +47 -0
- package/dist/lib/matrix/mxid.js.map +1 -0
- package/dist/lib/metrics.d.ts +105 -0
- package/dist/lib/metrics.d.ts.map +1 -0
- package/dist/lib/metrics.js +204 -0
- package/dist/lib/metrics.js.map +1 -0
- package/dist/lib/oauth/approvals.d.ts +160 -0
- package/dist/lib/oauth/approvals.d.ts.map +1 -0
- package/dist/lib/oauth/approvals.js +273 -0
- package/dist/lib/oauth/approvals.js.map +1 -0
- package/dist/lib/oauth/standing.d.ts +152 -0
- package/dist/lib/oauth/standing.d.ts.map +1 -0
- package/dist/lib/oauth/standing.js +299 -0
- package/dist/lib/oauth/standing.js.map +1 -0
- package/dist/lib/oauth/token.d.ts +60 -0
- package/dist/lib/oauth/token.d.ts.map +1 -0
- package/dist/lib/oauth/token.js +129 -0
- package/dist/lib/oauth/token.js.map +1 -0
- package/dist/lib/payments/extend.d.ts +42 -0
- package/dist/lib/payments/extend.d.ts.map +1 -0
- package/dist/lib/payments/extend.js +98 -0
- package/dist/lib/payments/extend.js.map +1 -0
- package/dist/lib/payments/facilitator.d.ts +220 -0
- package/dist/lib/payments/facilitator.d.ts.map +1 -0
- package/dist/lib/payments/facilitator.js +451 -0
- package/dist/lib/payments/facilitator.js.map +1 -0
- package/dist/lib/payments/gate.d.ts +207 -0
- package/dist/lib/payments/gate.d.ts.map +1 -0
- package/dist/lib/payments/gate.js +481 -0
- package/dist/lib/payments/gate.js.map +1 -0
- package/dist/lib/payments/header-seal.d.ts +33 -0
- package/dist/lib/payments/header-seal.d.ts.map +1 -0
- package/dist/lib/payments/header-seal.js +76 -0
- package/dist/lib/payments/header-seal.js.map +1 -0
- package/dist/lib/payments/index.d.ts +12 -0
- package/dist/lib/payments/index.d.ts.map +1 -0
- package/dist/lib/payments/index.js +11 -0
- package/dist/lib/payments/index.js.map +1 -0
- package/dist/lib/payments/price.d.ts +25 -0
- package/dist/lib/payments/price.d.ts.map +1 -0
- package/dist/lib/payments/price.js +43 -0
- package/dist/lib/payments/price.js.map +1 -0
- package/dist/lib/payments/reconcile.d.ts +77 -0
- package/dist/lib/payments/reconcile.d.ts.map +1 -0
- package/dist/lib/payments/reconcile.js +317 -0
- package/dist/lib/payments/reconcile.js.map +1 -0
- package/dist/lib/payments/refund.d.ts +34 -0
- package/dist/lib/payments/refund.d.ts.map +1 -0
- package/dist/lib/payments/refund.js +123 -0
- package/dist/lib/payments/refund.js.map +1 -0
- package/dist/lib/payments/review-billing.d.ts +222 -0
- package/dist/lib/payments/review-billing.d.ts.map +1 -0
- package/dist/lib/payments/review-billing.js +609 -0
- package/dist/lib/payments/review-billing.js.map +1 -0
- package/dist/lib/payments/settle.d.ts +44 -0
- package/dist/lib/payments/settle.d.ts.map +1 -0
- package/dist/lib/payments/settle.js +306 -0
- package/dist/lib/payments/settle.js.map +1 -0
- package/dist/lib/payments/terms.d.ts +27 -0
- package/dist/lib/payments/terms.d.ts.map +1 -0
- package/dist/lib/payments/terms.js +21 -0
- package/dist/lib/payments/terms.js.map +1 -0
- package/dist/lib/payouts.d.ts +20 -0
- package/dist/lib/payouts.d.ts.map +1 -0
- package/dist/lib/payouts.js +30 -0
- package/dist/lib/payouts.js.map +1 -0
- package/dist/lib/readiness.d.ts +42 -0
- package/dist/lib/readiness.d.ts.map +1 -0
- package/dist/lib/readiness.js +130 -0
- package/dist/lib/readiness.js.map +1 -0
- package/dist/lib/redact.d.ts +23 -0
- package/dist/lib/redact.d.ts.map +1 -0
- package/dist/lib/redact.js +67 -0
- package/dist/lib/redact.js.map +1 -0
- package/dist/lib/register.d.ts +85 -0
- package/dist/lib/register.d.ts.map +1 -0
- package/dist/lib/register.js +390 -0
- package/dist/lib/register.js.map +1 -0
- package/dist/lib/review/attestation.d.ts +92 -0
- package/dist/lib/review/attestation.d.ts.map +1 -0
- package/dist/lib/review/attestation.js +264 -0
- package/dist/lib/review/attestation.js.map +1 -0
- package/dist/lib/review/reviewer-grant.d.ts +146 -0
- package/dist/lib/review/reviewer-grant.d.ts.map +1 -0
- package/dist/lib/review/reviewer-grant.js +359 -0
- package/dist/lib/review/reviewer-grant.js.map +1 -0
- package/dist/lib/review/tasks.d.ts +18 -0
- package/dist/lib/review/tasks.d.ts.map +1 -0
- package/dist/lib/review/tasks.js +36 -0
- package/dist/lib/review/tasks.js.map +1 -0
- package/dist/lib/sentry.d.ts +89 -0
- package/dist/lib/sentry.d.ts.map +1 -0
- package/dist/lib/sentry.js +284 -0
- package/dist/lib/sentry.js.map +1 -0
- package/dist/lib/spans.d.ts +14 -0
- package/dist/lib/spans.d.ts.map +1 -0
- package/dist/lib/spans.js +28 -0
- package/dist/lib/spans.js.map +1 -0
- package/dist/lib/tracing.d.ts +31 -0
- package/dist/lib/tracing.d.ts.map +1 -0
- package/dist/lib/tracing.js +66 -0
- package/dist/lib/tracing.js.map +1 -0
- package/dist/lib/ttl-cache.d.ts +26 -0
- package/dist/lib/ttl-cache.d.ts.map +1 -0
- package/dist/lib/ttl-cache.js +61 -0
- package/dist/lib/ttl-cache.js.map +1 -0
- package/dist/lib/validator.d.ts +19 -0
- package/dist/lib/validator.d.ts.map +1 -0
- package/dist/lib/validator.js +32 -0
- package/dist/lib/validator.js.map +1 -0
- package/dist/lib/work-order/form.d.ts +40 -0
- package/dist/lib/work-order/form.d.ts.map +1 -0
- package/dist/lib/work-order/form.js +316 -0
- package/dist/lib/work-order/form.js.map +1 -0
- package/dist/lib/work-order/index.d.ts +20 -0
- package/dist/lib/work-order/index.d.ts.map +1 -0
- package/dist/lib/work-order/index.js +66 -0
- package/dist/lib/work-order/index.js.map +1 -0
- package/dist/middleware/api/audit.d.ts +9 -0
- package/dist/middleware/api/audit.d.ts.map +1 -0
- package/dist/middleware/api/audit.js +38 -0
- package/dist/middleware/api/audit.js.map +1 -0
- package/dist/middleware/api/auth.d.ts +29 -0
- package/dist/middleware/api/auth.d.ts.map +1 -0
- package/dist/middleware/api/auth.js +105 -0
- package/dist/middleware/api/auth.js.map +1 -0
- package/dist/middleware/api/console.d.ts +92 -0
- package/dist/middleware/api/console.d.ts.map +1 -0
- package/dist/middleware/api/console.js +446 -0
- package/dist/middleware/api/console.js.map +1 -0
- package/dist/middleware/api/errors.d.ts +48 -0
- package/dist/middleware/api/errors.d.ts.map +1 -0
- package/dist/middleware/api/errors.js +133 -0
- package/dist/middleware/api/errors.js.map +1 -0
- package/dist/middleware/api/idempotency.d.ts +23 -0
- package/dist/middleware/api/idempotency.d.ts.map +1 -0
- package/dist/middleware/api/idempotency.js +158 -0
- package/dist/middleware/api/idempotency.js.map +1 -0
- package/dist/middleware/api/keys.d.ts +14 -0
- package/dist/middleware/api/keys.d.ts.map +1 -0
- package/dist/middleware/api/keys.js +66 -0
- package/dist/middleware/api/keys.js.map +1 -0
- package/dist/middleware/api/membership.d.ts +32 -0
- package/dist/middleware/api/membership.d.ts.map +1 -0
- package/dist/middleware/api/membership.js +48 -0
- package/dist/middleware/api/membership.js.map +1 -0
- package/dist/middleware/api/oauth.d.ts +28 -0
- package/dist/middleware/api/oauth.d.ts.map +1 -0
- package/dist/middleware/api/oauth.js +109 -0
- package/dist/middleware/api/oauth.js.map +1 -0
- package/dist/middleware/api/rate-limit.d.ts +23 -0
- package/dist/middleware/api/rate-limit.d.ts.map +1 -0
- package/dist/middleware/api/rate-limit.js +70 -0
- package/dist/middleware/api/rate-limit.js.map +1 -0
- package/dist/middleware/api/types.d.ts +92 -0
- package/dist/middleware/api/types.d.ts.map +1 -0
- package/dist/middleware/api/types.js +7 -0
- package/dist/middleware/api/types.js.map +1 -0
- package/dist/middleware/api/wait.d.ts +21 -0
- package/dist/middleware/api/wait.d.ts.map +1 -0
- package/dist/middleware/api/wait.js +85 -0
- package/dist/middleware/api/wait.js.map +1 -0
- package/dist/middleware/capability.d.ts +32 -0
- package/dist/middleware/capability.d.ts.map +1 -0
- package/dist/middleware/capability.js +113 -0
- package/dist/middleware/capability.js.map +1 -0
- package/dist/middleware/database.d.ts +14 -0
- package/dist/middleware/database.d.ts.map +1 -0
- package/dist/middleware/database.js +18 -0
- package/dist/middleware/database.js.map +1 -0
- package/dist/middleware/error-handler.d.ts +13 -0
- package/dist/middleware/error-handler.d.ts.map +1 -0
- package/dist/middleware/error-handler.js +127 -0
- package/dist/middleware/error-handler.js.map +1 -0
- package/dist/middleware/observability.d.ts +32 -0
- package/dist/middleware/observability.d.ts.map +1 -0
- package/dist/middleware/observability.js +134 -0
- package/dist/middleware/observability.js.map +1 -0
- package/dist/middleware/rate-limit.d.ts +16 -0
- package/dist/middleware/rate-limit.d.ts.map +1 -0
- package/dist/middleware/rate-limit.js +56 -0
- package/dist/middleware/rate-limit.js.map +1 -0
- package/dist/middleware/ucan-auth.d.ts +39 -0
- package/dist/middleware/ucan-auth.d.ts.map +1 -0
- package/dist/middleware/ucan-auth.js +278 -0
- package/dist/middleware/ucan-auth.js.map +1 -0
- package/dist/networks.d.ts +34 -0
- package/dist/networks.d.ts.map +1 -0
- package/dist/networks.js +49 -0
- package/dist/networks.js.map +1 -0
- package/dist/oracle.d.ts +193 -0
- package/dist/oracle.d.ts.map +1 -0
- package/dist/oracle.js +245 -0
- package/dist/oracle.js.map +1 -0
- package/dist/routes/health.d.ts +16 -0
- package/dist/routes/health.d.ts.map +1 -0
- package/dist/routes/health.js +29 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/v1/admin.d.ts +18 -0
- package/dist/routes/v1/admin.d.ts.map +1 -0
- package/dist/routes/v1/admin.js +101 -0
- package/dist/routes/v1/admin.js.map +1 -0
- package/dist/routes/v1/api/admin-claims.d.ts +14 -0
- package/dist/routes/v1/api/admin-claims.d.ts.map +1 -0
- package/dist/routes/v1/api/admin-claims.js +82 -0
- package/dist/routes/v1/api/admin-claims.js.map +1 -0
- package/dist/routes/v1/api/admin-facilitator.d.ts +20 -0
- package/dist/routes/v1/api/admin-facilitator.d.ts.map +1 -0
- package/dist/routes/v1/api/admin-facilitator.js +64 -0
- package/dist/routes/v1/api/admin-facilitator.js.map +1 -0
- package/dist/routes/v1/api/admin.d.ts +9 -0
- package/dist/routes/v1/api/admin.d.ts.map +1 -0
- package/dist/routes/v1/api/admin.js +110 -0
- package/dist/routes/v1/api/admin.js.map +1 -0
- package/dist/routes/v1/api/audit.d.ts +8 -0
- package/dist/routes/v1/api/audit.d.ts.map +1 -0
- package/dist/routes/v1/api/audit.js +56 -0
- package/dist/routes/v1/api/audit.js.map +1 -0
- package/dist/routes/v1/api/batch.d.ts +17 -0
- package/dist/routes/v1/api/batch.d.ts.map +1 -0
- package/dist/routes/v1/api/batch.js +192 -0
- package/dist/routes/v1/api/batch.js.map +1 -0
- package/dist/routes/v1/api/claims-read.d.ts +43 -0
- package/dist/routes/v1/api/claims-read.d.ts.map +1 -0
- package/dist/routes/v1/api/claims-read.js +123 -0
- package/dist/routes/v1/api/claims-read.js.map +1 -0
- package/dist/routes/v1/api/claims.d.ts +131 -0
- package/dist/routes/v1/api/claims.d.ts.map +1 -0
- package/dist/routes/v1/api/claims.js +407 -0
- package/dist/routes/v1/api/claims.js.map +1 -0
- package/dist/routes/v1/api/collections-link.d.ts +14 -0
- package/dist/routes/v1/api/collections-link.d.ts.map +1 -0
- package/dist/routes/v1/api/collections-link.js +97 -0
- package/dist/routes/v1/api/collections-link.js.map +1 -0
- package/dist/routes/v1/api/export.d.ts +48 -0
- package/dist/routes/v1/api/export.d.ts.map +1 -0
- package/dist/routes/v1/api/export.js +251 -0
- package/dist/routes/v1/api/export.js.map +1 -0
- package/dist/routes/v1/api/index.d.ts +16 -0
- package/dist/routes/v1/api/index.d.ts.map +1 -0
- package/dist/routes/v1/api/index.js +68 -0
- package/dist/routes/v1/api/index.js.map +1 -0
- package/dist/routes/v1/api/keys.d.ts +9 -0
- package/dist/routes/v1/api/keys.d.ts.map +1 -0
- package/dist/routes/v1/api/keys.js +95 -0
- package/dist/routes/v1/api/keys.js.map +1 -0
- package/dist/routes/v1/api/me.d.ts +21 -0
- package/dist/routes/v1/api/me.d.ts.map +1 -0
- package/dist/routes/v1/api/me.js +122 -0
- package/dist/routes/v1/api/me.js.map +1 -0
- package/dist/routes/v1/api/members.d.ts +17 -0
- package/dist/routes/v1/api/members.d.ts.map +1 -0
- package/dist/routes/v1/api/members.js +406 -0
- package/dist/routes/v1/api/members.js.map +1 -0
- package/dist/routes/v1/api/meta.d.ts +12 -0
- package/dist/routes/v1/api/meta.d.ts.map +1 -0
- package/dist/routes/v1/api/meta.js +59 -0
- package/dist/routes/v1/api/meta.js.map +1 -0
- package/dist/routes/v1/api/openapi.gen.d.ts +2 -0
- package/dist/routes/v1/api/openapi.gen.d.ts.map +1 -0
- package/dist/routes/v1/api/openapi.gen.js +7 -0
- package/dist/routes/v1/api/openapi.gen.js.map +1 -0
- package/dist/routes/v1/api/protocols.d.ts +22 -0
- package/dist/routes/v1/api/protocols.d.ts.map +1 -0
- package/dist/routes/v1/api/protocols.js +153 -0
- package/dist/routes/v1/api/protocols.js.map +1 -0
- package/dist/routes/v1/api/review-billing.d.ts +18 -0
- package/dist/routes/v1/api/review-billing.d.ts.map +1 -0
- package/dist/routes/v1/api/review-billing.js +196 -0
- package/dist/routes/v1/api/review-billing.js.map +1 -0
- package/dist/routes/v1/api/review.d.ts +30 -0
- package/dist/routes/v1/api/review.d.ts.map +1 -0
- package/dist/routes/v1/api/review.js +302 -0
- package/dist/routes/v1/api/review.js.map +1 -0
- package/dist/routes/v1/api/sources.d.ts +10 -0
- package/dist/routes/v1/api/sources.d.ts.map +1 -0
- package/dist/routes/v1/api/sources.js +293 -0
- package/dist/routes/v1/api/sources.js.map +1 -0
- package/dist/routes/v1/api/uploads.d.ts +37 -0
- package/dist/routes/v1/api/uploads.d.ts.map +1 -0
- package/dist/routes/v1/api/uploads.js +414 -0
- package/dist/routes/v1/api/uploads.js.map +1 -0
- package/dist/routes/v1/api/views.d.ts +18 -0
- package/dist/routes/v1/api/views.d.ts.map +1 -0
- package/dist/routes/v1/api/views.js +95 -0
- package/dist/routes/v1/api/views.js.map +1 -0
- package/dist/routes/v1/api/webhooks.d.ts +14 -0
- package/dist/routes/v1/api/webhooks.d.ts.map +1 -0
- package/dist/routes/v1/api/webhooks.js +282 -0
- package/dist/routes/v1/api/webhooks.js.map +1 -0
- package/dist/routes/v1/api/work-orders.d.ts +45 -0
- package/dist/routes/v1/api/work-orders.d.ts.map +1 -0
- package/dist/routes/v1/api/work-orders.js +171 -0
- package/dist/routes/v1/api/work-orders.js.map +1 -0
- package/dist/routes/v1/claims.d.ts +21 -0
- package/dist/routes/v1/claims.d.ts.map +1 -0
- package/dist/routes/v1/claims.js +153 -0
- package/dist/routes/v1/claims.js.map +1 -0
- package/dist/routes/v1/collections.d.ts +45 -0
- package/dist/routes/v1/collections.d.ts.map +1 -0
- package/dist/routes/v1/collections.js +201 -0
- package/dist/routes/v1/collections.js.map +1 -0
- package/dist/routes/v1/index.d.ts +13 -0
- package/dist/routes/v1/index.d.ts.map +1 -0
- package/dist/routes/v1/index.js +41 -0
- package/dist/routes/v1/index.js.map +1 -0
- package/dist/routes/v1/info.d.ts +14 -0
- package/dist/routes/v1/info.d.ts.map +1 -0
- package/dist/routes/v1/info.js +75 -0
- package/dist/routes/v1/info.js.map +1 -0
- package/dist/routes/v1/mcp/index.d.ts +33 -0
- package/dist/routes/v1/mcp/index.d.ts.map +1 -0
- package/dist/routes/v1/mcp/index.js +252 -0
- package/dist/routes/v1/mcp/index.js.map +1 -0
- package/dist/routes/v1/mcp/oauth.d.ts +27 -0
- package/dist/routes/v1/mcp/oauth.d.ts.map +1 -0
- package/dist/routes/v1/mcp/oauth.js +500 -0
- package/dist/routes/v1/mcp/oauth.js.map +1 -0
- package/dist/routes/v1/mcp/tools.d.ts +71 -0
- package/dist/routes/v1/mcp/tools.d.ts.map +1 -0
- package/dist/routes/v1/mcp/tools.js +432 -0
- package/dist/routes/v1/mcp/tools.js.map +1 -0
- package/dist/routes/v1/mcp/ui.d.ts +45 -0
- package/dist/routes/v1/mcp/ui.d.ts.map +1 -0
- package/dist/routes/v1/mcp/ui.js +454 -0
- package/dist/routes/v1/mcp/ui.js.map +1 -0
- package/dist/routes/v1/oauth.d.ts +29 -0
- package/dist/routes/v1/oauth.d.ts.map +1 -0
- package/dist/routes/v1/oauth.js +256 -0
- package/dist/routes/v1/oauth.js.map +1 -0
- package/dist/routes/v1/reviewers.d.ts +22 -0
- package/dist/routes/v1/reviewers.d.ts.map +1 -0
- package/dist/routes/v1/reviewers.js +165 -0
- package/dist/routes/v1/reviewers.js.map +1 -0
- package/dist/routes/v1/reviews.d.ts +38 -0
- package/dist/routes/v1/reviews.d.ts.map +1 -0
- package/dist/routes/v1/reviews.js +234 -0
- package/dist/routes/v1/reviews.js.map +1 -0
- package/dist/routes/v1/shared.d.ts +586 -0
- package/dist/routes/v1/shared.d.ts.map +1 -0
- package/dist/routes/v1/shared.js +229 -0
- package/dist/routes/v1/shared.js.map +1 -0
- package/dist/routes/well-known.d.ts +15 -0
- package/dist/routes/well-known.d.ts.map +1 -0
- package/dist/routes/well-known.js +35 -0
- package/dist/routes/well-known.js.map +1 -0
- package/dist/runtime.d.ts +100 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +144 -0
- package/dist/runtime.js.map +1 -0
- package/dist/testing/fake-tools.d.ts +104 -0
- package/dist/testing/fake-tools.d.ts.map +1 -0
- package/dist/testing/fake-tools.js +213 -0
- package/dist/testing/fake-tools.js.map +1 -0
- package/dist/testing/index.d.ts +54 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +104 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/samples.d.ts +70 -0
- package/dist/testing/samples.d.ts.map +1 -0
- package/dist/testing/samples.js +92 -0
- package/dist/testing/samples.js.map +1 -0
- package/dist/workflows/claim-ingest.d.ts +250 -0
- package/dist/workflows/claim-ingest.d.ts.map +1 -0
- package/dist/workflows/claim-ingest.js +1020 -0
- package/dist/workflows/claim-ingest.js.map +1 -0
- package/dist/workflows/claim-source.d.ts +25 -0
- package/dist/workflows/claim-source.d.ts.map +1 -0
- package/dist/workflows/claim-source.js +107 -0
- package/dist/workflows/claim-source.js.map +1 -0
- package/dist/workflows/review-complete.d.ts +82 -0
- package/dist/workflows/review-complete.d.ts.map +1 -0
- package/dist/workflows/review-complete.js +455 -0
- package/dist/workflows/review-complete.js.map +1 -0
- package/dist/workflows/steps.d.ts +125 -0
- package/dist/workflows/steps.d.ts.map +1 -0
- package/dist/workflows/steps.js +325 -0
- package/dist/workflows/steps.js.map +1 -0
- package/docs/api.md +2595 -0
- package/docs/guide.md +1525 -0
- package/migrations/0000_init.sql +108 -0
- package/migrations/0001_review_attestation.sql +1 -0
- package/migrations/0002_decisions_facts.sql +1 -0
- package/migrations/0003_api_lane.sql +171 -0
- package/migrations/0004_api_v1_1.sql +19 -0
- package/migrations/0005_member_notify.sql +3 -0
- package/migrations/0006_source_collections.sql +16 -0
- package/migrations/0007_api_settlement.sql +27 -0
- package/migrations/0008_review_extend.sql +1 -0
- package/migrations/0009_card_refunds.sql +4 -0
- package/migrations/0010_even_scorpion.sql +16 -0
- package/migrations/0011_mcp_oauth.sql +27 -0
- package/migrations/0012_mcp_standing.sql +21 -0
- package/migrations/0013_unknown_krista_starr.sql +2 -0
- package/migrations/0014_last_carnage.sql +14 -0
- package/migrations/0015_company_authority.sql +26 -0
- package/migrations/0016_owner_only_links.sql +6 -0
- package/migrations/0017_organisations.sql +35 -0
- package/migrations/0018_remove_app_signed.sql +4 -0
- package/migrations/0019_submitted_via.sql +2 -0
- package/migrations/0020_drop_decision_to_pay.sql +4 -0
- package/migrations/0021_manual_erase.sql +25 -0
- package/migrations/0022_errored_facts.sql +1 -0
- package/migrations/0023_review_billing.sql +20 -0
- package/migrations/0024_pending_task_details.sql +1 -0
- package/migrations/meta/0000_snapshot.json +707 -0
- package/migrations/meta/0001_snapshot.json +714 -0
- package/migrations/meta/0002_snapshot.json +721 -0
- package/migrations/meta/0003_snapshot.json +1845 -0
- package/migrations/meta/0004_snapshot.json +1969 -0
- package/migrations/meta/0005_snapshot.json +1991 -0
- package/migrations/meta/0006_snapshot.json +2097 -0
- package/migrations/meta/0007_snapshot.json +2128 -0
- package/migrations/meta/0008_snapshot.json +2133 -0
- package/migrations/meta/0009_snapshot.json +2161 -0
- package/migrations/meta/0010_snapshot.json +2265 -0
- package/migrations/meta/0011_snapshot.json +2448 -0
- package/migrations/meta/0012_snapshot.json +2577 -0
- package/migrations/meta/0013_snapshot.json +2594 -0
- package/migrations/meta/0014_snapshot.json +2602 -0
- package/migrations/meta/0015_snapshot.json +2778 -0
- package/migrations/meta/0016_snapshot.json +2778 -0
- package/migrations/meta/0017_snapshot.json +2792 -0
- package/migrations/meta/0018_snapshot.json +2778 -0
- package/migrations/meta/0019_snapshot.json +2792 -0
- package/migrations/meta/0020_snapshot.json +2785 -0
- package/migrations/meta/0021_snapshot.json +2762 -0
- package/migrations/meta/0022_snapshot.json +2769 -0
- package/migrations/meta/0023_snapshot.json +2900 -0
- package/migrations/meta/0024_snapshot.json +2907 -0
- package/migrations/meta/_journal.json +181 -0
- package/openapi/decision-api.yaml +12204 -0
- package/package.json +123 -4
- package/skills/README.md +19 -0
- package/skills/add-openhands-support/SKILL.md +113 -0
- package/skills/create-collection/SKILL.md +199 -0
- package/skills/create-collection/reference/claims-stack.md +106 -0
- package/skills/create-collection/reference/collection.md +111 -0
- package/skills/create-oracle/SKILL.md +400 -0
- package/skills/create-rubric/SKILL.md +130 -0
- package/skills/create-rubric/reference/format-cheatsheet.md +186 -0
- package/skills/create-rubric/templates/claim-form.example.json +60 -0
- package/skills/decision-api-client/SKILL.md +236 -0
- package/skills/decision-api-oracle/SKILL.md +336 -0
- package/skills/publish-protocol/SKILL.md +151 -0
- package/skills/publish-protocol/reference/publishing.md +116 -0
- package/skills/reference/engine-contract.md +222 -0
- package/skills/write-facts/SKILL.md +221 -0
- package/skills/write-facts/reference/examples/http-vendor.ts +88 -0
- package/skills/write-facts/reference/examples/price-matches-agreement.ts +67 -0
- package/skills/write-facts/reference/facts-api.md +232 -0
- package/templates/project/.dev.vars.example +93 -0
- package/templates/project/.editorconfig +9 -0
- package/templates/project/CLAUDE.md +45 -0
- package/templates/project/README.md +199 -0
- package/templates/project/biome.json +37 -0
- package/templates/project/gitignore +29 -0
- package/templates/project/package.json +32 -0
- package/templates/project/src/facts/index.ts +19 -0
- package/templates/project/src/index.ts +25 -0
- package/templates/project/test/api-lane.test.ts +57 -0
- package/templates/project/test/facts.test.ts +14 -0
- package/templates/project/tsconfig.json +25 -0
- package/templates/project/vitest.config.ts +13 -0
- package/templates/project/wrangler.jsonc +446 -0
|
@@ -0,0 +1,1356 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The eval engine's wire contract as THIS kit codes against it — docs/ENGINE-CONTRACT.md is the
|
|
3
|
+
* source of truth; this file is its Zod mirror. Responses are PARSED, not trusted: a shape drift on
|
|
4
|
+
* the engine side surfaces here as a loud error, never as an `undefined` verdict written to a row.
|
|
5
|
+
*
|
|
6
|
+
* `Decision` is eval-engine's `Decision` (its `rubric/eval/decide.ts`) copied as a TYPE only: the
|
|
7
|
+
* kit never decides — it records what the engine decided (codes, scores and identifiers; never
|
|
8
|
+
* answer values) and acts on `evaluationStatus`.
|
|
9
|
+
*/
|
|
10
|
+
import { z } from "zod";
|
|
11
|
+
export declare const Verdict: z.ZodEnum<{
|
|
12
|
+
approve: "approve";
|
|
13
|
+
partial: "partial";
|
|
14
|
+
reject: "reject";
|
|
15
|
+
review: "review";
|
|
16
|
+
}>;
|
|
17
|
+
export type Verdict = z.infer<typeof Verdict>;
|
|
18
|
+
/** The owner-readable evaluation record — codes, scores and outcomes ONLY, never answer values. */
|
|
19
|
+
export declare const Decision: z.ZodObject<{
|
|
20
|
+
status: z.ZodEnum<{
|
|
21
|
+
decided: "decided";
|
|
22
|
+
pending_review: "pending_review";
|
|
23
|
+
unusable: "unusable";
|
|
24
|
+
}>;
|
|
25
|
+
verdict: z.ZodEnum<{
|
|
26
|
+
approve: "approve";
|
|
27
|
+
partial: "partial";
|
|
28
|
+
reject: "reject";
|
|
29
|
+
review: "review";
|
|
30
|
+
}>;
|
|
31
|
+
class: z.ZodEnum<{
|
|
32
|
+
insufficient_evidence: "insufficient_evidence";
|
|
33
|
+
invalid_evidence: "invalid_evidence";
|
|
34
|
+
out_of_authority: "out_of_authority";
|
|
35
|
+
partial: "partial";
|
|
36
|
+
refuted: "refuted";
|
|
37
|
+
requires_human_review: "requires_human_review";
|
|
38
|
+
supported: "supported";
|
|
39
|
+
}>;
|
|
40
|
+
evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
|
|
41
|
+
action: z.ZodEnum<{
|
|
42
|
+
auto_approve: "auto_approve";
|
|
43
|
+
auto_reject: "auto_reject";
|
|
44
|
+
needs_human_review: "needs_human_review";
|
|
45
|
+
}>;
|
|
46
|
+
totalBps: z.ZodNullable<z.ZodNumber>;
|
|
47
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
48
|
+
code: z.ZodString;
|
|
49
|
+
outcome: z.ZodEnum<{
|
|
50
|
+
failed: "failed";
|
|
51
|
+
not_reached: "not_reached";
|
|
52
|
+
passed: "passed";
|
|
53
|
+
skipped: "skipped";
|
|
54
|
+
unevaluated: "unevaluated";
|
|
55
|
+
}>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
58
|
+
code: z.ZodString;
|
|
59
|
+
scoreBps: z.ZodNullable<z.ZodNumber>;
|
|
60
|
+
pending: z.ZodBoolean;
|
|
61
|
+
capped: z.ZodBoolean;
|
|
62
|
+
}, z.core.$loose>>;
|
|
63
|
+
pendingTasks: z.ZodArray<z.ZodString>;
|
|
64
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
65
|
+
code: z.ZodString;
|
|
66
|
+
reason: z.ZodString;
|
|
67
|
+
class: z.ZodEnum<{
|
|
68
|
+
insufficient_evidence: "insufficient_evidence";
|
|
69
|
+
invalid_evidence: "invalid_evidence";
|
|
70
|
+
out_of_authority: "out_of_authority";
|
|
71
|
+
partial: "partial";
|
|
72
|
+
refuted: "refuted";
|
|
73
|
+
requires_human_review: "requires_human_review";
|
|
74
|
+
supported: "supported";
|
|
75
|
+
}>;
|
|
76
|
+
}, z.core.$loose>>;
|
|
77
|
+
}, z.core.$loose>;
|
|
78
|
+
export type Decision = z.infer<typeof Decision>;
|
|
79
|
+
/**
|
|
80
|
+
* The facts that came back `error` (S1c, `erroredFacts`): `name` is the lane-prefixed fact name
|
|
81
|
+
* (`ext.<name>` / `ai.<name>`), `detail` the fact's own error text off the engine's stored trace
|
|
82
|
+
* (`trace.ext[<name>].detail` — the text this oracle froze), in trace order, capped at
|
|
83
|
+
* `MAX_ERRORED_FACT_DETAIL` on both sides. WHY a claim was held: the engine's reason line is
|
|
84
|
+
* generic and hashed into `resultDigest`, so it never says. Display only — never a decide input,
|
|
85
|
+
* and never logged (a handler wrote the text).
|
|
86
|
+
*/
|
|
87
|
+
export declare const MAX_ERRORED_FACT_DETAIL = 500;
|
|
88
|
+
export declare const ErroredFact: z.ZodObject<{
|
|
89
|
+
name: z.ZodString;
|
|
90
|
+
detail: z.ZodString;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
export type ErroredFact = z.infer<typeof ErroredFact>;
|
|
93
|
+
/**
|
|
94
|
+
* What a pending `unique:<ruleId>` task asks about (S1c, `pendingTaskDetails`), off the engine's
|
|
95
|
+
* stored trace: `score` the frozen unique fact's `scoreBps` (absent when the fact never resolved),
|
|
96
|
+
* `priorClaimId` its winning candidate (absent without one) — a claim id out of THIS oracle's own
|
|
97
|
+
* registry. Loose: the engine may grow it; the review view reads only these keys.
|
|
98
|
+
*/
|
|
99
|
+
export declare const PendingTaskDetail: z.ZodObject<{
|
|
100
|
+
kind: z.ZodString;
|
|
101
|
+
ruleId: z.ZodString;
|
|
102
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
priorClaimId: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$loose>;
|
|
105
|
+
export type PendingTaskDetail = z.infer<typeof PendingTaskDetail>;
|
|
106
|
+
/** `$` then `.key` / `[n]` segments — the engine's path subset: no filters, wildcards, recursion or
|
|
107
|
+
* expressions. The same regex validates `OracleConfig.payouts` at module evaluation. */
|
|
108
|
+
export declare const PAYOUT_PATH: RegExp;
|
|
109
|
+
export declare const PayoutPath: z.ZodString;
|
|
110
|
+
export declare const Iso4217: z.ZodString;
|
|
111
|
+
/** OUTSIDE `facts` on both calls: never in `factsDigest`. Strict, like the engine's. */
|
|
112
|
+
export declare const PayoutRequest: z.ZodUnion<readonly [z.ZodObject<{
|
|
113
|
+
version: z.ZodLiteral<1>;
|
|
114
|
+
amountPath: z.ZodString;
|
|
115
|
+
currency: z.ZodString;
|
|
116
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
117
|
+
version: z.ZodLiteral<1>;
|
|
118
|
+
amountPath: z.ZodString;
|
|
119
|
+
currencyPath: z.ZodString;
|
|
120
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
121
|
+
version: z.ZodLiteral<1>;
|
|
122
|
+
amountPath: z.ZodString;
|
|
123
|
+
asset: z.ZodString;
|
|
124
|
+
decimals: z.ZodInt;
|
|
125
|
+
}, z.core.$strict>]>;
|
|
126
|
+
export type PayoutRequest = z.infer<typeof PayoutRequest>;
|
|
127
|
+
/**
|
|
128
|
+
* The API claim CONTENT (contract "The claim content and `contentDigest`"): the submitted body as the
|
|
129
|
+
* API's strict schema parsed it, minus transport (`webhookUrl`), with the resolved `protocolDid`;
|
|
130
|
+
* `submitter` only the caller's explicit one (hosted MCP: the signed-in user's DID), never an oracle
|
|
131
|
+
* fill. Absent optionals are omitted, never null — the digest is over exactly these keys.
|
|
132
|
+
*/
|
|
133
|
+
export declare const ApiClaimContent: z.ZodObject<{
|
|
134
|
+
protocolDid: z.ZodString;
|
|
135
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
136
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
137
|
+
submitter: z.ZodOptional<z.ZodString>;
|
|
138
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
139
|
+
}, z.core.$strict>;
|
|
140
|
+
export type ApiClaimContent = z.infer<typeof ApiClaimContent>;
|
|
141
|
+
/**
|
|
142
|
+
* The claim's content (D3). Chain: the claim CID, plus the stored document's EXACT bytes (base64)
|
|
143
|
+
* when the read lane CID-verified them — never re-serialised JSON; a bot-lane body sends no
|
|
144
|
+
* `document`. API: the content itself; the engine computes its `contentDigest` (never the
|
|
145
|
+
* idempotency `requestDigest`).
|
|
146
|
+
*/
|
|
147
|
+
export declare const ClaimContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
148
|
+
kind: z.ZodLiteral<"chain">;
|
|
149
|
+
cid: z.ZodString;
|
|
150
|
+
document: z.ZodOptional<z.ZodBase64>;
|
|
151
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
152
|
+
kind: z.ZodLiteral<"api">;
|
|
153
|
+
body: z.ZodObject<{
|
|
154
|
+
protocolDid: z.ZodString;
|
|
155
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
156
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
157
|
+
submitter: z.ZodOptional<z.ZodString>;
|
|
158
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
159
|
+
}, z.core.$strict>;
|
|
160
|
+
}, z.core.$strict>], "kind">;
|
|
161
|
+
export type ClaimContent = z.infer<typeof ClaimContent>;
|
|
162
|
+
/** The reviewer's grant chain (D2): a base64 CAR, root → member did:ixo → [reviewer did:key]. */
|
|
163
|
+
export declare const ReviewerGrant: z.ZodBase64;
|
|
164
|
+
export declare const DecideRequest: z.ZodObject<{
|
|
165
|
+
subject: z.ZodObject<{
|
|
166
|
+
kind: z.ZodEnum<{
|
|
167
|
+
api: "api";
|
|
168
|
+
claim: "claim";
|
|
169
|
+
}>;
|
|
170
|
+
claimId: z.ZodString;
|
|
171
|
+
collectionId: z.ZodString;
|
|
172
|
+
protocolDid: z.ZodString;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
rubric: z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
}, z.core.$strip>;
|
|
177
|
+
facts: z.ZodObject<{
|
|
178
|
+
version: z.ZodLiteral<1>;
|
|
179
|
+
frozenAt: z.ZodISODateTime;
|
|
180
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
181
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
182
|
+
question: z.ZodString;
|
|
183
|
+
name: z.ZodString;
|
|
184
|
+
mediaType: z.ZodString;
|
|
185
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
186
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strict>>;
|
|
188
|
+
ctx: z.ZodObject<{
|
|
189
|
+
now: z.ZodISODateTime;
|
|
190
|
+
collection: z.ZodObject<{
|
|
191
|
+
startDate: z.ZodNullable<z.ZodISODateTime>;
|
|
192
|
+
endDate: z.ZodNullable<z.ZodISODateTime>;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
claim: z.ZodObject<{
|
|
195
|
+
submitter: z.ZodNullable<z.ZodString>;
|
|
196
|
+
submitterAddress: z.ZodNullable<z.ZodString>;
|
|
197
|
+
submissionDate: z.ZodNullable<z.ZodISODateTime>;
|
|
198
|
+
useIntent: z.ZodOptional<z.ZodBoolean>;
|
|
199
|
+
}, z.core.$strict>;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
ext: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
202
|
+
status: z.ZodLiteral<"ok">;
|
|
203
|
+
value: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
204
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
205
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
request: z.ZodObject<{
|
|
208
|
+
url: z.ZodString;
|
|
209
|
+
body: z.ZodUnknown;
|
|
210
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
213
|
+
status: z.ZodInt;
|
|
214
|
+
body: z.ZodUnknown;
|
|
215
|
+
}, z.core.$strict>>;
|
|
216
|
+
attempts: z.ZodInt;
|
|
217
|
+
elapsedMs: z.ZodInt;
|
|
218
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
219
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
220
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
221
|
+
promptTokens: z.ZodNumber;
|
|
222
|
+
completionTokens: z.ZodNumber;
|
|
223
|
+
cachedTokens: z.ZodNumber;
|
|
224
|
+
costUsd: z.ZodNumber;
|
|
225
|
+
}, z.core.$strict>>>;
|
|
226
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
227
|
+
key: z.ZodString;
|
|
228
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
229
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
230
|
+
vendor: z.ZodEnum<{
|
|
231
|
+
google: "google";
|
|
232
|
+
openai: "openai";
|
|
233
|
+
other: "other";
|
|
234
|
+
unknown: "unknown";
|
|
235
|
+
}>;
|
|
236
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
237
|
+
model: z.ZodOptional<z.ZodString>;
|
|
238
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
239
|
+
aiGenerated: z.ZodBoolean;
|
|
240
|
+
watermarked: z.ZodBoolean;
|
|
241
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
242
|
+
trusted: z.ZodBoolean;
|
|
243
|
+
failures: z.ZodArray<z.ZodString>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
}, z.core.$strict>>>;
|
|
246
|
+
}, z.core.$strict>>;
|
|
247
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
+
status: z.ZodLiteral<"error">;
|
|
249
|
+
onError: z.ZodEnum<{
|
|
250
|
+
reject: "reject";
|
|
251
|
+
review: "review";
|
|
252
|
+
}>;
|
|
253
|
+
detail: z.ZodString;
|
|
254
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
255
|
+
request: z.ZodObject<{
|
|
256
|
+
url: z.ZodString;
|
|
257
|
+
body: z.ZodUnknown;
|
|
258
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
259
|
+
}, z.core.$strict>;
|
|
260
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
261
|
+
status: z.ZodInt;
|
|
262
|
+
body: z.ZodUnknown;
|
|
263
|
+
}, z.core.$strict>>;
|
|
264
|
+
attempts: z.ZodInt;
|
|
265
|
+
elapsedMs: z.ZodInt;
|
|
266
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
267
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
268
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
269
|
+
promptTokens: z.ZodNumber;
|
|
270
|
+
completionTokens: z.ZodNumber;
|
|
271
|
+
cachedTokens: z.ZodNumber;
|
|
272
|
+
costUsd: z.ZodNumber;
|
|
273
|
+
}, z.core.$strict>>>;
|
|
274
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
275
|
+
key: z.ZodString;
|
|
276
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
277
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
278
|
+
vendor: z.ZodEnum<{
|
|
279
|
+
google: "google";
|
|
280
|
+
openai: "openai";
|
|
281
|
+
other: "other";
|
|
282
|
+
unknown: "unknown";
|
|
283
|
+
}>;
|
|
284
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
285
|
+
model: z.ZodOptional<z.ZodString>;
|
|
286
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
287
|
+
aiGenerated: z.ZodBoolean;
|
|
288
|
+
watermarked: z.ZodBoolean;
|
|
289
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
290
|
+
trusted: z.ZodBoolean;
|
|
291
|
+
failures: z.ZodArray<z.ZodString>;
|
|
292
|
+
}, z.core.$strict>>;
|
|
293
|
+
}, z.core.$strict>>>;
|
|
294
|
+
}, z.core.$strict>>;
|
|
295
|
+
}, z.core.$strict>], "status">>;
|
|
296
|
+
ai: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
297
|
+
status: z.ZodLiteral<"ok">;
|
|
298
|
+
value: z.ZodBoolean;
|
|
299
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
300
|
+
failedRules: z.ZodArray<z.ZodString>;
|
|
301
|
+
score: z.ZodNumber;
|
|
302
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
304
|
+
request: z.ZodObject<{
|
|
305
|
+
url: z.ZodString;
|
|
306
|
+
body: z.ZodUnknown;
|
|
307
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
310
|
+
status: z.ZodInt;
|
|
311
|
+
body: z.ZodUnknown;
|
|
312
|
+
}, z.core.$strict>>;
|
|
313
|
+
attempts: z.ZodInt;
|
|
314
|
+
elapsedMs: z.ZodInt;
|
|
315
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
316
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
318
|
+
promptTokens: z.ZodNumber;
|
|
319
|
+
completionTokens: z.ZodNumber;
|
|
320
|
+
cachedTokens: z.ZodNumber;
|
|
321
|
+
costUsd: z.ZodNumber;
|
|
322
|
+
}, z.core.$strict>>>;
|
|
323
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
324
|
+
key: z.ZodString;
|
|
325
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
326
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
327
|
+
vendor: z.ZodEnum<{
|
|
328
|
+
google: "google";
|
|
329
|
+
openai: "openai";
|
|
330
|
+
other: "other";
|
|
331
|
+
unknown: "unknown";
|
|
332
|
+
}>;
|
|
333
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
334
|
+
model: z.ZodOptional<z.ZodString>;
|
|
335
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
336
|
+
aiGenerated: z.ZodBoolean;
|
|
337
|
+
watermarked: z.ZodBoolean;
|
|
338
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
339
|
+
trusted: z.ZodBoolean;
|
|
340
|
+
failures: z.ZodArray<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>>;
|
|
342
|
+
}, z.core.$strict>>>;
|
|
343
|
+
}, z.core.$strict>>;
|
|
344
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
345
|
+
status: z.ZodLiteral<"error">;
|
|
346
|
+
onError: z.ZodEnum<{
|
|
347
|
+
reject: "reject";
|
|
348
|
+
review: "review";
|
|
349
|
+
}>;
|
|
350
|
+
detail: z.ZodString;
|
|
351
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
352
|
+
request: z.ZodObject<{
|
|
353
|
+
url: z.ZodString;
|
|
354
|
+
body: z.ZodUnknown;
|
|
355
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
356
|
+
}, z.core.$strict>;
|
|
357
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
358
|
+
status: z.ZodInt;
|
|
359
|
+
body: z.ZodUnknown;
|
|
360
|
+
}, z.core.$strict>>;
|
|
361
|
+
attempts: z.ZodInt;
|
|
362
|
+
elapsedMs: z.ZodInt;
|
|
363
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
364
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
366
|
+
promptTokens: z.ZodNumber;
|
|
367
|
+
completionTokens: z.ZodNumber;
|
|
368
|
+
cachedTokens: z.ZodNumber;
|
|
369
|
+
costUsd: z.ZodNumber;
|
|
370
|
+
}, z.core.$strict>>>;
|
|
371
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
372
|
+
key: z.ZodString;
|
|
373
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
374
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
375
|
+
vendor: z.ZodEnum<{
|
|
376
|
+
google: "google";
|
|
377
|
+
openai: "openai";
|
|
378
|
+
other: "other";
|
|
379
|
+
unknown: "unknown";
|
|
380
|
+
}>;
|
|
381
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
382
|
+
model: z.ZodOptional<z.ZodString>;
|
|
383
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
384
|
+
aiGenerated: z.ZodBoolean;
|
|
385
|
+
watermarked: z.ZodBoolean;
|
|
386
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
387
|
+
trusted: z.ZodBoolean;
|
|
388
|
+
failures: z.ZodArray<z.ZodString>;
|
|
389
|
+
}, z.core.$strict>>;
|
|
390
|
+
}, z.core.$strict>>>;
|
|
391
|
+
}, z.core.$strict>>;
|
|
392
|
+
}, z.core.$strict>], "status">>;
|
|
393
|
+
unique: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
ruleId: z.ZodString;
|
|
395
|
+
digest: z.ZodString;
|
|
396
|
+
scoreBps: z.ZodNumber;
|
|
397
|
+
band: z.ZodEnum<{
|
|
398
|
+
pass: "pass";
|
|
399
|
+
reject: "reject";
|
|
400
|
+
review: "review";
|
|
401
|
+
}>;
|
|
402
|
+
}, z.core.$loose>>;
|
|
403
|
+
frequency: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
ruleId: z.ZodString;
|
|
405
|
+
count: z.ZodInt;
|
|
406
|
+
max: z.ZodInt;
|
|
407
|
+
per: z.ZodOptional<z.ZodEnum<{
|
|
408
|
+
day: "day";
|
|
409
|
+
month: "month";
|
|
410
|
+
week: "week";
|
|
411
|
+
year: "year";
|
|
412
|
+
}>>;
|
|
413
|
+
windowStartISO: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
414
|
+
windowEndISO: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
415
|
+
breach: z.ZodBoolean;
|
|
416
|
+
unresolved: z.ZodOptional<z.ZodLiteral<true>>;
|
|
417
|
+
}, z.core.$loose>>;
|
|
418
|
+
settings: z.ZodObject<{
|
|
419
|
+
allowAiChecks: z.ZodBoolean;
|
|
420
|
+
allowImageChecks: z.ZodBoolean;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
}, z.core.$strict>;
|
|
423
|
+
payout: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
424
|
+
version: z.ZodLiteral<1>;
|
|
425
|
+
amountPath: z.ZodString;
|
|
426
|
+
currency: z.ZodString;
|
|
427
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
428
|
+
version: z.ZodLiteral<1>;
|
|
429
|
+
amountPath: z.ZodString;
|
|
430
|
+
currencyPath: z.ZodString;
|
|
431
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
432
|
+
version: z.ZodLiteral<1>;
|
|
433
|
+
amountPath: z.ZodString;
|
|
434
|
+
asset: z.ZodString;
|
|
435
|
+
decimals: z.ZodInt;
|
|
436
|
+
}, z.core.$strict>]>>;
|
|
437
|
+
claimContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
438
|
+
kind: z.ZodLiteral<"chain">;
|
|
439
|
+
cid: z.ZodString;
|
|
440
|
+
document: z.ZodOptional<z.ZodBase64>;
|
|
441
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
442
|
+
kind: z.ZodLiteral<"api">;
|
|
443
|
+
body: z.ZodObject<{
|
|
444
|
+
protocolDid: z.ZodString;
|
|
445
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
446
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
447
|
+
submitter: z.ZodOptional<z.ZodString>;
|
|
448
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
449
|
+
}, z.core.$strict>;
|
|
450
|
+
}, z.core.$strict>], "kind">;
|
|
451
|
+
}, z.core.$strip>;
|
|
452
|
+
export type DecideRequest = z.infer<typeof DecideRequest>;
|
|
453
|
+
/** The dev lane (`POST /v1/decisions/preview`): the rubric may be inline, and so may the claim form. */
|
|
454
|
+
export declare const PreviewRequest: z.ZodObject<{
|
|
455
|
+
subject: z.ZodObject<{
|
|
456
|
+
kind: z.ZodEnum<{
|
|
457
|
+
api: "api";
|
|
458
|
+
claim: "claim";
|
|
459
|
+
}>;
|
|
460
|
+
claimId: z.ZodString;
|
|
461
|
+
collectionId: z.ZodString;
|
|
462
|
+
protocolDid: z.ZodString;
|
|
463
|
+
}, z.core.$strip>;
|
|
464
|
+
rubric: z.ZodUnion<readonly [z.ZodObject<{
|
|
465
|
+
id: z.ZodString;
|
|
466
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
467
|
+
doc: z.ZodUnknown;
|
|
468
|
+
}, z.core.$strip>]>;
|
|
469
|
+
form: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
doc: z.ZodUnknown;
|
|
471
|
+
proof: z.ZodString;
|
|
472
|
+
}, z.core.$strip>>;
|
|
473
|
+
facts: z.ZodObject<{
|
|
474
|
+
version: z.ZodLiteral<1>;
|
|
475
|
+
frozenAt: z.ZodISODateTime;
|
|
476
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
477
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
478
|
+
question: z.ZodString;
|
|
479
|
+
name: z.ZodString;
|
|
480
|
+
mediaType: z.ZodString;
|
|
481
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
482
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
483
|
+
}, z.core.$strict>>;
|
|
484
|
+
ctx: z.ZodObject<{
|
|
485
|
+
now: z.ZodISODateTime;
|
|
486
|
+
collection: z.ZodObject<{
|
|
487
|
+
startDate: z.ZodNullable<z.ZodISODateTime>;
|
|
488
|
+
endDate: z.ZodNullable<z.ZodISODateTime>;
|
|
489
|
+
}, z.core.$strict>;
|
|
490
|
+
claim: z.ZodObject<{
|
|
491
|
+
submitter: z.ZodNullable<z.ZodString>;
|
|
492
|
+
submitterAddress: z.ZodNullable<z.ZodString>;
|
|
493
|
+
submissionDate: z.ZodNullable<z.ZodISODateTime>;
|
|
494
|
+
useIntent: z.ZodOptional<z.ZodBoolean>;
|
|
495
|
+
}, z.core.$strict>;
|
|
496
|
+
}, z.core.$strict>;
|
|
497
|
+
ext: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
498
|
+
status: z.ZodLiteral<"ok">;
|
|
499
|
+
value: z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>;
|
|
500
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
501
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
502
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
503
|
+
request: z.ZodObject<{
|
|
504
|
+
url: z.ZodString;
|
|
505
|
+
body: z.ZodUnknown;
|
|
506
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
507
|
+
}, z.core.$strict>;
|
|
508
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
509
|
+
status: z.ZodInt;
|
|
510
|
+
body: z.ZodUnknown;
|
|
511
|
+
}, z.core.$strict>>;
|
|
512
|
+
attempts: z.ZodInt;
|
|
513
|
+
elapsedMs: z.ZodInt;
|
|
514
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
515
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
516
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
517
|
+
promptTokens: z.ZodNumber;
|
|
518
|
+
completionTokens: z.ZodNumber;
|
|
519
|
+
cachedTokens: z.ZodNumber;
|
|
520
|
+
costUsd: z.ZodNumber;
|
|
521
|
+
}, z.core.$strict>>>;
|
|
522
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
523
|
+
key: z.ZodString;
|
|
524
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
525
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
526
|
+
vendor: z.ZodEnum<{
|
|
527
|
+
google: "google";
|
|
528
|
+
openai: "openai";
|
|
529
|
+
other: "other";
|
|
530
|
+
unknown: "unknown";
|
|
531
|
+
}>;
|
|
532
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
533
|
+
model: z.ZodOptional<z.ZodString>;
|
|
534
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
535
|
+
aiGenerated: z.ZodBoolean;
|
|
536
|
+
watermarked: z.ZodBoolean;
|
|
537
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
538
|
+
trusted: z.ZodBoolean;
|
|
539
|
+
failures: z.ZodArray<z.ZodString>;
|
|
540
|
+
}, z.core.$strict>>;
|
|
541
|
+
}, z.core.$strict>>>;
|
|
542
|
+
}, z.core.$strict>>;
|
|
543
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
544
|
+
status: z.ZodLiteral<"error">;
|
|
545
|
+
onError: z.ZodEnum<{
|
|
546
|
+
reject: "reject";
|
|
547
|
+
review: "review";
|
|
548
|
+
}>;
|
|
549
|
+
detail: z.ZodString;
|
|
550
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
551
|
+
request: z.ZodObject<{
|
|
552
|
+
url: z.ZodString;
|
|
553
|
+
body: z.ZodUnknown;
|
|
554
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
555
|
+
}, z.core.$strict>;
|
|
556
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
557
|
+
status: z.ZodInt;
|
|
558
|
+
body: z.ZodUnknown;
|
|
559
|
+
}, z.core.$strict>>;
|
|
560
|
+
attempts: z.ZodInt;
|
|
561
|
+
elapsedMs: z.ZodInt;
|
|
562
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
563
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
564
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
565
|
+
promptTokens: z.ZodNumber;
|
|
566
|
+
completionTokens: z.ZodNumber;
|
|
567
|
+
cachedTokens: z.ZodNumber;
|
|
568
|
+
costUsd: z.ZodNumber;
|
|
569
|
+
}, z.core.$strict>>>;
|
|
570
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
571
|
+
key: z.ZodString;
|
|
572
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
573
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
574
|
+
vendor: z.ZodEnum<{
|
|
575
|
+
google: "google";
|
|
576
|
+
openai: "openai";
|
|
577
|
+
other: "other";
|
|
578
|
+
unknown: "unknown";
|
|
579
|
+
}>;
|
|
580
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
581
|
+
model: z.ZodOptional<z.ZodString>;
|
|
582
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
583
|
+
aiGenerated: z.ZodBoolean;
|
|
584
|
+
watermarked: z.ZodBoolean;
|
|
585
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
586
|
+
trusted: z.ZodBoolean;
|
|
587
|
+
failures: z.ZodArray<z.ZodString>;
|
|
588
|
+
}, z.core.$strict>>;
|
|
589
|
+
}, z.core.$strict>>>;
|
|
590
|
+
}, z.core.$strict>>;
|
|
591
|
+
}, z.core.$strict>], "status">>;
|
|
592
|
+
ai: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
593
|
+
status: z.ZodLiteral<"ok">;
|
|
594
|
+
value: z.ZodBoolean;
|
|
595
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
596
|
+
failedRules: z.ZodArray<z.ZodString>;
|
|
597
|
+
score: z.ZodNumber;
|
|
598
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
599
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
600
|
+
request: z.ZodObject<{
|
|
601
|
+
url: z.ZodString;
|
|
602
|
+
body: z.ZodUnknown;
|
|
603
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
604
|
+
}, z.core.$strict>;
|
|
605
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
606
|
+
status: z.ZodInt;
|
|
607
|
+
body: z.ZodUnknown;
|
|
608
|
+
}, z.core.$strict>>;
|
|
609
|
+
attempts: z.ZodInt;
|
|
610
|
+
elapsedMs: z.ZodInt;
|
|
611
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
612
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
613
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
614
|
+
promptTokens: z.ZodNumber;
|
|
615
|
+
completionTokens: z.ZodNumber;
|
|
616
|
+
cachedTokens: z.ZodNumber;
|
|
617
|
+
costUsd: z.ZodNumber;
|
|
618
|
+
}, z.core.$strict>>>;
|
|
619
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
620
|
+
key: z.ZodString;
|
|
621
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
622
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
623
|
+
vendor: z.ZodEnum<{
|
|
624
|
+
google: "google";
|
|
625
|
+
openai: "openai";
|
|
626
|
+
other: "other";
|
|
627
|
+
unknown: "unknown";
|
|
628
|
+
}>;
|
|
629
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
630
|
+
model: z.ZodOptional<z.ZodString>;
|
|
631
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
632
|
+
aiGenerated: z.ZodBoolean;
|
|
633
|
+
watermarked: z.ZodBoolean;
|
|
634
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
635
|
+
trusted: z.ZodBoolean;
|
|
636
|
+
failures: z.ZodArray<z.ZodString>;
|
|
637
|
+
}, z.core.$strict>>;
|
|
638
|
+
}, z.core.$strict>>>;
|
|
639
|
+
}, z.core.$strict>>;
|
|
640
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
641
|
+
status: z.ZodLiteral<"error">;
|
|
642
|
+
onError: z.ZodEnum<{
|
|
643
|
+
reject: "reject";
|
|
644
|
+
review: "review";
|
|
645
|
+
}>;
|
|
646
|
+
detail: z.ZodString;
|
|
647
|
+
transcript: z.ZodOptional<z.ZodObject<{
|
|
648
|
+
request: z.ZodObject<{
|
|
649
|
+
url: z.ZodString;
|
|
650
|
+
body: z.ZodUnknown;
|
|
651
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
652
|
+
}, z.core.$strict>;
|
|
653
|
+
response: z.ZodNullable<z.ZodObject<{
|
|
654
|
+
status: z.ZodInt;
|
|
655
|
+
body: z.ZodUnknown;
|
|
656
|
+
}, z.core.$strict>>;
|
|
657
|
+
attempts: z.ZodInt;
|
|
658
|
+
elapsedMs: z.ZodInt;
|
|
659
|
+
latencyMs: z.ZodOptional<z.ZodInt>;
|
|
660
|
+
genId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
661
|
+
usage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
662
|
+
promptTokens: z.ZodNumber;
|
|
663
|
+
completionTokens: z.ZodNumber;
|
|
664
|
+
cachedTokens: z.ZodNumber;
|
|
665
|
+
costUsd: z.ZodNumber;
|
|
666
|
+
}, z.core.$strict>>>;
|
|
667
|
+
provenance: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
668
|
+
key: z.ZodString;
|
|
669
|
+
cid: z.ZodNullable<z.ZodString>;
|
|
670
|
+
result: z.ZodNullable<z.ZodObject<{
|
|
671
|
+
vendor: z.ZodEnum<{
|
|
672
|
+
google: "google";
|
|
673
|
+
openai: "openai";
|
|
674
|
+
other: "other";
|
|
675
|
+
unknown: "unknown";
|
|
676
|
+
}>;
|
|
677
|
+
issuer: z.ZodOptional<z.ZodString>;
|
|
678
|
+
model: z.ZodOptional<z.ZodString>;
|
|
679
|
+
modelVersion: z.ZodOptional<z.ZodString>;
|
|
680
|
+
aiGenerated: z.ZodBoolean;
|
|
681
|
+
watermarked: z.ZodBoolean;
|
|
682
|
+
signedAt: z.ZodOptional<z.ZodString>;
|
|
683
|
+
trusted: z.ZodBoolean;
|
|
684
|
+
failures: z.ZodArray<z.ZodString>;
|
|
685
|
+
}, z.core.$strict>>;
|
|
686
|
+
}, z.core.$strict>>>;
|
|
687
|
+
}, z.core.$strict>>;
|
|
688
|
+
}, z.core.$strict>], "status">>;
|
|
689
|
+
unique: z.ZodOptional<z.ZodObject<{
|
|
690
|
+
ruleId: z.ZodString;
|
|
691
|
+
digest: z.ZodString;
|
|
692
|
+
scoreBps: z.ZodNumber;
|
|
693
|
+
band: z.ZodEnum<{
|
|
694
|
+
pass: "pass";
|
|
695
|
+
reject: "reject";
|
|
696
|
+
review: "review";
|
|
697
|
+
}>;
|
|
698
|
+
}, z.core.$loose>>;
|
|
699
|
+
frequency: z.ZodOptional<z.ZodObject<{
|
|
700
|
+
ruleId: z.ZodString;
|
|
701
|
+
count: z.ZodInt;
|
|
702
|
+
max: z.ZodInt;
|
|
703
|
+
per: z.ZodOptional<z.ZodEnum<{
|
|
704
|
+
day: "day";
|
|
705
|
+
month: "month";
|
|
706
|
+
week: "week";
|
|
707
|
+
year: "year";
|
|
708
|
+
}>>;
|
|
709
|
+
windowStartISO: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
710
|
+
windowEndISO: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
711
|
+
breach: z.ZodBoolean;
|
|
712
|
+
unresolved: z.ZodOptional<z.ZodLiteral<true>>;
|
|
713
|
+
}, z.core.$loose>>;
|
|
714
|
+
settings: z.ZodObject<{
|
|
715
|
+
allowAiChecks: z.ZodBoolean;
|
|
716
|
+
allowImageChecks: z.ZodBoolean;
|
|
717
|
+
}, z.core.$strict>;
|
|
718
|
+
}, z.core.$strict>;
|
|
719
|
+
}, z.core.$strip>;
|
|
720
|
+
export type PreviewRequest = z.infer<typeof PreviewRequest>;
|
|
721
|
+
/** LOOSE on purpose: the engine may add fields without a wire bump. `rubricId` is null iff the protocol has no `#rub`. */
|
|
722
|
+
export declare const DecideResponse: z.ZodObject<{
|
|
723
|
+
subject: z.ZodObject<{
|
|
724
|
+
claimId: z.ZodString;
|
|
725
|
+
collectionId: z.ZodString;
|
|
726
|
+
}, z.core.$loose>;
|
|
727
|
+
rubricId: z.ZodNullable<z.ZodString>;
|
|
728
|
+
decision: z.ZodObject<{
|
|
729
|
+
status: z.ZodEnum<{
|
|
730
|
+
decided: "decided";
|
|
731
|
+
pending_review: "pending_review";
|
|
732
|
+
unusable: "unusable";
|
|
733
|
+
}>;
|
|
734
|
+
verdict: z.ZodEnum<{
|
|
735
|
+
approve: "approve";
|
|
736
|
+
partial: "partial";
|
|
737
|
+
reject: "reject";
|
|
738
|
+
review: "review";
|
|
739
|
+
}>;
|
|
740
|
+
class: z.ZodEnum<{
|
|
741
|
+
insufficient_evidence: "insufficient_evidence";
|
|
742
|
+
invalid_evidence: "invalid_evidence";
|
|
743
|
+
out_of_authority: "out_of_authority";
|
|
744
|
+
partial: "partial";
|
|
745
|
+
refuted: "refuted";
|
|
746
|
+
requires_human_review: "requires_human_review";
|
|
747
|
+
supported: "supported";
|
|
748
|
+
}>;
|
|
749
|
+
evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
|
|
750
|
+
action: z.ZodEnum<{
|
|
751
|
+
auto_approve: "auto_approve";
|
|
752
|
+
auto_reject: "auto_reject";
|
|
753
|
+
needs_human_review: "needs_human_review";
|
|
754
|
+
}>;
|
|
755
|
+
totalBps: z.ZodNullable<z.ZodNumber>;
|
|
756
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
757
|
+
code: z.ZodString;
|
|
758
|
+
outcome: z.ZodEnum<{
|
|
759
|
+
failed: "failed";
|
|
760
|
+
not_reached: "not_reached";
|
|
761
|
+
passed: "passed";
|
|
762
|
+
skipped: "skipped";
|
|
763
|
+
unevaluated: "unevaluated";
|
|
764
|
+
}>;
|
|
765
|
+
}, z.core.$loose>>;
|
|
766
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
767
|
+
code: z.ZodString;
|
|
768
|
+
scoreBps: z.ZodNullable<z.ZodNumber>;
|
|
769
|
+
pending: z.ZodBoolean;
|
|
770
|
+
capped: z.ZodBoolean;
|
|
771
|
+
}, z.core.$loose>>;
|
|
772
|
+
pendingTasks: z.ZodArray<z.ZodString>;
|
|
773
|
+
reasons: z.ZodArray<z.ZodObject<{
|
|
774
|
+
code: z.ZodString;
|
|
775
|
+
reason: z.ZodString;
|
|
776
|
+
class: z.ZodEnum<{
|
|
777
|
+
insufficient_evidence: "insufficient_evidence";
|
|
778
|
+
invalid_evidence: "invalid_evidence";
|
|
779
|
+
out_of_authority: "out_of_authority";
|
|
780
|
+
partial: "partial";
|
|
781
|
+
refuted: "refuted";
|
|
782
|
+
requires_human_review: "requires_human_review";
|
|
783
|
+
supported: "supported";
|
|
784
|
+
}>;
|
|
785
|
+
}, z.core.$loose>>;
|
|
786
|
+
}, z.core.$loose>;
|
|
787
|
+
explanation: z.ZodNullable<z.ZodString>;
|
|
788
|
+
factsDigest: z.ZodString;
|
|
789
|
+
resultDigest: z.ZodString;
|
|
790
|
+
receipt: z.ZodNullable<z.ZodObject<{
|
|
791
|
+
cid: z.ZodString;
|
|
792
|
+
jws: z.ZodString;
|
|
793
|
+
}, z.core.$strip>>;
|
|
794
|
+
traceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
795
|
+
billing: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
796
|
+
totalMicroUsd: z.ZodInt;
|
|
797
|
+
}, z.core.$loose>>>;
|
|
798
|
+
preferences: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
799
|
+
id: z.ZodString;
|
|
800
|
+
digest: z.ZodString;
|
|
801
|
+
}, z.core.$loose>>>;
|
|
802
|
+
decisionToPayRefused: z.ZodOptional<z.ZodLiteral<"NO_PAYEE">>;
|
|
803
|
+
erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
804
|
+
name: z.ZodString;
|
|
805
|
+
detail: z.ZodString;
|
|
806
|
+
}, z.core.$loose>>>;
|
|
807
|
+
pendingTaskDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
808
|
+
kind: z.ZodString;
|
|
809
|
+
ruleId: z.ZodString;
|
|
810
|
+
score: z.ZodOptional<z.ZodNumber>;
|
|
811
|
+
priorClaimId: z.ZodOptional<z.ZodString>;
|
|
812
|
+
}, z.core.$loose>>>;
|
|
813
|
+
}, z.core.$loose>;
|
|
814
|
+
export type DecideResponse = z.infer<typeof DecideResponse>;
|
|
815
|
+
export declare const ReviewRequest: z.ZodObject<{
|
|
816
|
+
answeredAgainst: z.ZodString;
|
|
817
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
|
|
818
|
+
reviewerDid: z.ZodString;
|
|
819
|
+
attestation: z.ZodString;
|
|
820
|
+
claim: z.ZodObject<{
|
|
821
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
822
|
+
frozenAt: z.ZodOptional<z.ZodString>;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
payout: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
825
|
+
version: z.ZodLiteral<1>;
|
|
826
|
+
amountPath: z.ZodString;
|
|
827
|
+
currency: z.ZodString;
|
|
828
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
829
|
+
version: z.ZodLiteral<1>;
|
|
830
|
+
amountPath: z.ZodString;
|
|
831
|
+
currencyPath: z.ZodString;
|
|
832
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
833
|
+
version: z.ZodLiteral<1>;
|
|
834
|
+
amountPath: z.ZodString;
|
|
835
|
+
asset: z.ZodString;
|
|
836
|
+
decimals: z.ZodInt;
|
|
837
|
+
}, z.core.$strict>]>>;
|
|
838
|
+
claimContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
839
|
+
kind: z.ZodLiteral<"chain">;
|
|
840
|
+
cid: z.ZodString;
|
|
841
|
+
document: z.ZodOptional<z.ZodBase64>;
|
|
842
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
843
|
+
kind: z.ZodLiteral<"api">;
|
|
844
|
+
body: z.ZodObject<{
|
|
845
|
+
protocolDid: z.ZodString;
|
|
846
|
+
answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
847
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
848
|
+
submitter: z.ZodOptional<z.ZodString>;
|
|
849
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
850
|
+
}, z.core.$strict>;
|
|
851
|
+
}, z.core.$strict>], "kind">;
|
|
852
|
+
reviewerGrant: z.ZodOptional<z.ZodBase64>;
|
|
853
|
+
}, z.core.$strip>;
|
|
854
|
+
export type ReviewRequest = z.infer<typeof ReviewRequest>;
|
|
855
|
+
/** The ADR-36 address proof: who this did:web is on chain (adr36.ts owns producing/checking this). */
|
|
856
|
+
export declare const AddressProof: z.ZodObject<{
|
|
857
|
+
address: z.ZodString;
|
|
858
|
+
pubKey: z.ZodString;
|
|
859
|
+
signature: z.ZodString;
|
|
860
|
+
}, z.core.$strip>;
|
|
861
|
+
export type AddressProof = z.infer<typeof AddressProof>;
|
|
862
|
+
/**
|
|
863
|
+
* The register body: the address proof, plus the oracle OWNER's UCAN delegation to the engine
|
|
864
|
+
* (base64 CAR — config.OWNER_DELEGATION_CAR) carrying `subscriptions/read` on `ixo:subscriptions`
|
|
865
|
+
* and `billing/pay` bound to THIS oracle's did:web. This is how the engine finds — and bills — the
|
|
866
|
+
* owner's subscription per decision (spec §9); the kit never parses the CAR, only forwards it.
|
|
867
|
+
*/
|
|
868
|
+
export declare const RegisterRequest: z.ZodObject<{
|
|
869
|
+
address: z.ZodString;
|
|
870
|
+
pubKey: z.ZodString;
|
|
871
|
+
signature: z.ZodString;
|
|
872
|
+
ownerDelegation: z.ZodString;
|
|
873
|
+
}, z.core.$strip>;
|
|
874
|
+
export type RegisterRequest = z.infer<typeof RegisterRequest>;
|
|
875
|
+
export declare const CompanyLinkState: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
876
|
+
link: z.ZodNull;
|
|
877
|
+
entityDid: z.ZodNull;
|
|
878
|
+
payeeField: z.ZodNull;
|
|
879
|
+
issuedAt: z.ZodNull;
|
|
880
|
+
nonce: z.ZodNull;
|
|
881
|
+
state: z.ZodLiteral<"unlinked">;
|
|
882
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
883
|
+
link: z.ZodNull;
|
|
884
|
+
entityDid: z.ZodNull;
|
|
885
|
+
payeeField: z.ZodNull;
|
|
886
|
+
issuedAt: z.ZodNull;
|
|
887
|
+
nonce: z.ZodNull;
|
|
888
|
+
state: z.ZodLiteral<"disputed">;
|
|
889
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
890
|
+
state: z.ZodLiteral<"linked">;
|
|
891
|
+
link: z.ZodString;
|
|
892
|
+
entityDid: z.ZodString;
|
|
893
|
+
payeeField: z.ZodNullable<z.ZodString>;
|
|
894
|
+
issuedAt: z.ZodISODateTime;
|
|
895
|
+
nonce: z.ZodString;
|
|
896
|
+
}, z.core.$strict>], "state">;
|
|
897
|
+
export type CompanyLinkState = z.infer<typeof CompanyLinkState>;
|
|
898
|
+
/**
|
|
899
|
+
* The company the engine derives for one chain collection (contract "Company authority" → "Read
|
|
900
|
+
* it", CA11): the collection's own entity, or — on a poster's deed with exactly one org linked both
|
|
901
|
+
* ways — that org. Only the engine resolves it (the same function and cache as the decide); the
|
|
902
|
+
* register reads it to pick whose Decision API source contact a collection defaults to
|
|
903
|
+
* (lib/register.ts). `kind` is the company entity's chain type, open-ended on the engine's side.
|
|
904
|
+
*/
|
|
905
|
+
export declare const CollectionCompany: z.ZodObject<{
|
|
906
|
+
entityDid: z.ZodString;
|
|
907
|
+
kind: z.ZodString;
|
|
908
|
+
state: z.ZodEnum<{
|
|
909
|
+
disputed: "disputed";
|
|
910
|
+
ok: "ok";
|
|
911
|
+
}>;
|
|
912
|
+
source: z.ZodEnum<{
|
|
913
|
+
entity: "entity";
|
|
914
|
+
"request-link": "request-link";
|
|
915
|
+
}>;
|
|
916
|
+
}, z.core.$strip>;
|
|
917
|
+
export type CollectionCompany = z.infer<typeof CollectionCompany>;
|
|
918
|
+
/** `GET /v1/oracles/me` — the one field the cron reads; the rest is dashboard material. */
|
|
919
|
+
export declare const OracleMe: z.ZodObject<{
|
|
920
|
+
address: z.ZodOptional<z.ZodString>;
|
|
921
|
+
billingStatus: z.ZodEnum<{
|
|
922
|
+
needs_funds: "needs_funds";
|
|
923
|
+
ok: "ok";
|
|
924
|
+
}>;
|
|
925
|
+
manageSubscriptionUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
926
|
+
ixoManaged: z.ZodOptional<z.ZodBoolean>;
|
|
927
|
+
reviewBilling: z.ZodOptional<z.ZodBoolean>;
|
|
928
|
+
accepts: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
929
|
+
}, z.core.$loose>;
|
|
930
|
+
export type OracleMe = z.infer<typeof OracleMe>;
|
|
931
|
+
/**
|
|
932
|
+
* The buyer statement the engine stores centrally (contract "Agreements"). `doc` is NEVER
|
|
933
|
+
* interpreted by the kit beyond `kind` — a connector reads it and produces facts from it.
|
|
934
|
+
*/
|
|
935
|
+
export declare const Agreement: z.ZodObject<{
|
|
936
|
+
id: z.ZodString;
|
|
937
|
+
digest: z.ZodString;
|
|
938
|
+
counterparty: z.ZodNullable<z.ZodString>;
|
|
939
|
+
doc: z.ZodObject<{
|
|
940
|
+
kind: z.ZodString;
|
|
941
|
+
}, z.core.$loose>;
|
|
942
|
+
}, z.core.$loose>;
|
|
943
|
+
export type Agreement = z.infer<typeof Agreement>;
|
|
944
|
+
/**
|
|
945
|
+
* The engine's human-readable report of one of OUR decisions (its `lib/decision/report.ts`):
|
|
946
|
+
* `gates`/`criteria`/`checks` straight off the signed receipt, `explanation` the row's own (or the
|
|
947
|
+
* fold's). LOOSE — the Decision API proxies it as-is; only what the HTML view renders is pinned.
|
|
948
|
+
*/
|
|
949
|
+
export declare const Report: z.ZodObject<{
|
|
950
|
+
verdict: z.ZodEnum<{
|
|
951
|
+
approve: "approve";
|
|
952
|
+
partial: "partial";
|
|
953
|
+
reject: "reject";
|
|
954
|
+
review: "review";
|
|
955
|
+
}>;
|
|
956
|
+
explanation: z.ZodString;
|
|
957
|
+
gates: z.ZodArray<z.ZodObject<{
|
|
958
|
+
code: z.ZodString;
|
|
959
|
+
outcome: z.ZodEnum<{
|
|
960
|
+
failed: "failed";
|
|
961
|
+
not_reached: "not_reached";
|
|
962
|
+
passed: "passed";
|
|
963
|
+
skipped: "skipped";
|
|
964
|
+
unevaluated: "unevaluated";
|
|
965
|
+
}>;
|
|
966
|
+
}, z.core.$loose>>;
|
|
967
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
968
|
+
code: z.ZodString;
|
|
969
|
+
scoreBps: z.ZodNullable<z.ZodNumber>;
|
|
970
|
+
weightBps: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
971
|
+
pending: z.ZodBoolean;
|
|
972
|
+
}, z.core.$loose>>;
|
|
973
|
+
}, z.core.$loose>;
|
|
974
|
+
export type Report = z.infer<typeof Report>;
|
|
975
|
+
/** A declared external source, verbatim from the rubric — the engine never acts on it, a producer does. */
|
|
976
|
+
export declare const ManifestExt: z.ZodObject<{
|
|
977
|
+
expect: z.ZodEnum<{
|
|
978
|
+
boolean: "boolean";
|
|
979
|
+
score: "score";
|
|
980
|
+
}>;
|
|
981
|
+
onError: z.ZodEnum<{
|
|
982
|
+
reject: "reject";
|
|
983
|
+
review: "review";
|
|
984
|
+
}>;
|
|
985
|
+
endpoint: z.ZodString;
|
|
986
|
+
audience: z.ZodString;
|
|
987
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
988
|
+
can: z.ZodString;
|
|
989
|
+
with: z.ZodString;
|
|
990
|
+
}, z.core.$strip>>;
|
|
991
|
+
send: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
992
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
993
|
+
usedBy: z.ZodArray<z.ZodString>;
|
|
994
|
+
}, z.core.$loose>;
|
|
995
|
+
export type ManifestExt = z.infer<typeof ManifestExt>;
|
|
996
|
+
/** A declared AI check, verbatim — v1 checks are yes/no only. */
|
|
997
|
+
export declare const ManifestAi: z.ZodObject<{
|
|
998
|
+
expect: z.ZodLiteral<"boolean">;
|
|
999
|
+
onError: z.ZodEnum<{
|
|
1000
|
+
reject: "reject";
|
|
1001
|
+
review: "review";
|
|
1002
|
+
}>;
|
|
1003
|
+
instructions: z.ZodArray<z.ZodString>;
|
|
1004
|
+
send: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1005
|
+
usedBy: z.ZodArray<z.ZodString>;
|
|
1006
|
+
}, z.core.$loose>;
|
|
1007
|
+
export type ManifestAi = z.infer<typeof ManifestAi>;
|
|
1008
|
+
/**
|
|
1009
|
+
* A review task's answer shape — a frozen contract with the portal, and what the Matrix review-request
|
|
1010
|
+
* lane (lib/matrix/events.ts) sends verbatim into the room, and what the portal's inline card
|
|
1011
|
+
* renders a control for. LOOSE per variant (the engine may add fields without a wire bump).
|
|
1012
|
+
*/
|
|
1013
|
+
export declare const ManifestReviewAnswer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1014
|
+
type: z.ZodLiteral<"boolean">;
|
|
1015
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1016
|
+
type: z.ZodLiteral<"enum">;
|
|
1017
|
+
options: z.ZodArray<z.ZodString>;
|
|
1018
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1019
|
+
type: z.ZodLiteral<"number">;
|
|
1020
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1021
|
+
type: z.ZodLiteral<"text">;
|
|
1022
|
+
}, z.core.$loose>], "type">;
|
|
1023
|
+
export type ManifestReviewAnswer = z.infer<typeof ManifestReviewAnswer>;
|
|
1024
|
+
/**
|
|
1025
|
+
* The duplicate rule's declaration (docs/ENGINE-CONTRACT.md "Duplicate + frequency detection"):
|
|
1026
|
+
* the engine (≥ 444aeae) sends the FULL post-default rule — what its `Unique.parse` yields, minus
|
|
1027
|
+
* `label`/`@type`; `by` only when declared; an older engine sends `{ ruleId }` only. Every
|
|
1028
|
+
* parameter is optional HERE so both parse; the stock producer fills a missing one from the
|
|
1029
|
+
* engine's own defaults (lib/facts/stock/rule-defaults.ts — kept in lock-step).
|
|
1030
|
+
*/
|
|
1031
|
+
export declare const ManifestUnique: z.ZodObject<{
|
|
1032
|
+
ruleId: z.ZodString;
|
|
1033
|
+
by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1034
|
+
ref: z.ZodString;
|
|
1035
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
1036
|
+
day: "day";
|
|
1037
|
+
month: "month";
|
|
1038
|
+
year: "year";
|
|
1039
|
+
}>>;
|
|
1040
|
+
}, z.core.$loose>]>>>;
|
|
1041
|
+
countPrior: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1042
|
+
approved: "approved";
|
|
1043
|
+
pending_review: "pending_review";
|
|
1044
|
+
queued: "queued";
|
|
1045
|
+
}>>>;
|
|
1046
|
+
attachments: z.ZodOptional<z.ZodBoolean>;
|
|
1047
|
+
ai: z.ZodOptional<z.ZodObject<{
|
|
1048
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1049
|
+
maxPairs: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
}, z.core.$loose>>;
|
|
1051
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
1052
|
+
rejectAtBps: z.ZodOptional<z.ZodNumber>;
|
|
1053
|
+
reviewAtBps: z.ZodOptional<z.ZodNumber>;
|
|
1054
|
+
}, z.core.$loose>>;
|
|
1055
|
+
}, z.core.$loose>;
|
|
1056
|
+
export type ManifestUnique = z.infer<typeof ManifestUnique>;
|
|
1057
|
+
/**
|
|
1058
|
+
* The frequency rule's declaration, same posture: full post-default from the engine, `{ ruleId }`
|
|
1059
|
+
* from an older one — but `max`/`per` have NO default, so without them the rule cannot run
|
|
1060
|
+
* (rule-defaults.ts answers null; validate.ts refuses the build as `invalid_facts`).
|
|
1061
|
+
*/
|
|
1062
|
+
export declare const ManifestFrequency: z.ZodObject<{
|
|
1063
|
+
ruleId: z.ZodString;
|
|
1064
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1065
|
+
per: z.ZodOptional<z.ZodEnum<{
|
|
1066
|
+
day: "day";
|
|
1067
|
+
month: "month";
|
|
1068
|
+
week: "week";
|
|
1069
|
+
year: "year";
|
|
1070
|
+
}>>;
|
|
1071
|
+
onBreach: z.ZodOptional<z.ZodEnum<{
|
|
1072
|
+
reject: "reject";
|
|
1073
|
+
review: "review";
|
|
1074
|
+
}>>;
|
|
1075
|
+
}, z.core.$loose>;
|
|
1076
|
+
export type ManifestFrequency = z.infer<typeof ManifestFrequency>;
|
|
1077
|
+
/**
|
|
1078
|
+
* The rubric's WORK ORDER as the engine's binder computed it (docs/ENGINE-CONTRACT.md "Manifest"):
|
|
1079
|
+
* the `ext`/`ai` facts a producer must return, what the rules read (`ctx`, `fields`) and what the
|
|
1080
|
+
* engine computes itself (`derived`). LOOSE: the engine may add fields without a wire bump, and
|
|
1081
|
+
* `review` is informational — tolerated absent. `unique`/`frequency` are part of the ORDER too: a
|
|
1082
|
+
* declared rule means the producer must return that fact (validate.ts).
|
|
1083
|
+
*/
|
|
1084
|
+
export declare const Manifest: z.ZodObject<{
|
|
1085
|
+
rubricId: z.ZodString;
|
|
1086
|
+
formProof: z.ZodObject<{
|
|
1087
|
+
pinned: z.ZodString;
|
|
1088
|
+
live: z.ZodNullable<z.ZodString>;
|
|
1089
|
+
drifted: z.ZodBoolean;
|
|
1090
|
+
}, z.core.$strip>;
|
|
1091
|
+
ext: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1092
|
+
expect: z.ZodEnum<{
|
|
1093
|
+
boolean: "boolean";
|
|
1094
|
+
score: "score";
|
|
1095
|
+
}>;
|
|
1096
|
+
onError: z.ZodEnum<{
|
|
1097
|
+
reject: "reject";
|
|
1098
|
+
review: "review";
|
|
1099
|
+
}>;
|
|
1100
|
+
endpoint: z.ZodString;
|
|
1101
|
+
audience: z.ZodString;
|
|
1102
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
1103
|
+
can: z.ZodString;
|
|
1104
|
+
with: z.ZodString;
|
|
1105
|
+
}, z.core.$strip>>;
|
|
1106
|
+
send: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1107
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1108
|
+
usedBy: z.ZodArray<z.ZodString>;
|
|
1109
|
+
}, z.core.$loose>>;
|
|
1110
|
+
ai: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1111
|
+
expect: z.ZodLiteral<"boolean">;
|
|
1112
|
+
onError: z.ZodEnum<{
|
|
1113
|
+
reject: "reject";
|
|
1114
|
+
review: "review";
|
|
1115
|
+
}>;
|
|
1116
|
+
instructions: z.ZodArray<z.ZodString>;
|
|
1117
|
+
send: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1118
|
+
usedBy: z.ZodArray<z.ZodString>;
|
|
1119
|
+
}, z.core.$loose>>;
|
|
1120
|
+
hasAiChecks: z.ZodBoolean;
|
|
1121
|
+
ctx: z.ZodArray<z.ZodString>;
|
|
1122
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1123
|
+
path: z.ZodString;
|
|
1124
|
+
kind: z.ZodString;
|
|
1125
|
+
}, z.core.$loose>>;
|
|
1126
|
+
derived: z.ZodArray<z.ZodObject<{
|
|
1127
|
+
name: z.ZodString;
|
|
1128
|
+
expression: z.ZodString;
|
|
1129
|
+
}, z.core.$loose>>;
|
|
1130
|
+
review: z.ZodOptional<z.ZodObject<{
|
|
1131
|
+
tasks: z.ZodArray<z.ZodString>;
|
|
1132
|
+
taskDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1133
|
+
id: z.ZodString;
|
|
1134
|
+
prompt: z.ZodString;
|
|
1135
|
+
answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1136
|
+
type: z.ZodLiteral<"boolean">;
|
|
1137
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1138
|
+
type: z.ZodLiteral<"enum">;
|
|
1139
|
+
options: z.ZodArray<z.ZodString>;
|
|
1140
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1141
|
+
type: z.ZodLiteral<"number">;
|
|
1142
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1143
|
+
type: z.ZodLiteral<"text">;
|
|
1144
|
+
}, z.core.$loose>], "type">;
|
|
1145
|
+
}, z.core.$loose>>>;
|
|
1146
|
+
}, z.core.$loose>>;
|
|
1147
|
+
unique: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1148
|
+
ruleId: z.ZodString;
|
|
1149
|
+
by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1150
|
+
ref: z.ZodString;
|
|
1151
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
1152
|
+
day: "day";
|
|
1153
|
+
month: "month";
|
|
1154
|
+
year: "year";
|
|
1155
|
+
}>>;
|
|
1156
|
+
}, z.core.$loose>]>>>;
|
|
1157
|
+
countPrior: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1158
|
+
approved: "approved";
|
|
1159
|
+
pending_review: "pending_review";
|
|
1160
|
+
queued: "queued";
|
|
1161
|
+
}>>>;
|
|
1162
|
+
attachments: z.ZodOptional<z.ZodBoolean>;
|
|
1163
|
+
ai: z.ZodOptional<z.ZodObject<{
|
|
1164
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1165
|
+
maxPairs: z.ZodOptional<z.ZodNumber>;
|
|
1166
|
+
}, z.core.$loose>>;
|
|
1167
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
1168
|
+
rejectAtBps: z.ZodOptional<z.ZodNumber>;
|
|
1169
|
+
reviewAtBps: z.ZodOptional<z.ZodNumber>;
|
|
1170
|
+
}, z.core.$loose>>;
|
|
1171
|
+
}, z.core.$loose>>>;
|
|
1172
|
+
frequency: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1173
|
+
ruleId: z.ZodString;
|
|
1174
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1175
|
+
per: z.ZodOptional<z.ZodEnum<{
|
|
1176
|
+
day: "day";
|
|
1177
|
+
month: "month";
|
|
1178
|
+
week: "week";
|
|
1179
|
+
year: "year";
|
|
1180
|
+
}>>;
|
|
1181
|
+
onBreach: z.ZodOptional<z.ZodEnum<{
|
|
1182
|
+
reject: "reject";
|
|
1183
|
+
review: "review";
|
|
1184
|
+
}>>;
|
|
1185
|
+
}, z.core.$loose>>>;
|
|
1186
|
+
sizeProbes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1187
|
+
path: z.ZodString;
|
|
1188
|
+
maxSizeMB: z.ZodNumber;
|
|
1189
|
+
}, z.core.$loose>>>;
|
|
1190
|
+
}, z.core.$loose>;
|
|
1191
|
+
export type Manifest = z.infer<typeof Manifest>;
|
|
1192
|
+
/** A rubric the engine cannot resolve or bind — a 200, never an HTTP error; `issues` say why (spec §12). */
|
|
1193
|
+
export declare const ManifestUnusable: z.ZodObject<{
|
|
1194
|
+
status: z.ZodLiteral<"unusable">;
|
|
1195
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
1196
|
+
code: z.ZodString;
|
|
1197
|
+
message: z.ZodString;
|
|
1198
|
+
path: z.ZodString;
|
|
1199
|
+
}, z.core.$loose>>;
|
|
1200
|
+
}, z.core.$strip>;
|
|
1201
|
+
export type ManifestUnusable = z.infer<typeof ManifestUnusable>;
|
|
1202
|
+
/** Either shape, told apart by `status` — a usable manifest carries none (spec §12). */
|
|
1203
|
+
export declare const ManifestResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
1204
|
+
status: z.ZodLiteral<"unusable">;
|
|
1205
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
1206
|
+
code: z.ZodString;
|
|
1207
|
+
message: z.ZodString;
|
|
1208
|
+
path: z.ZodString;
|
|
1209
|
+
}, z.core.$loose>>;
|
|
1210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1211
|
+
rubricId: z.ZodString;
|
|
1212
|
+
formProof: z.ZodObject<{
|
|
1213
|
+
pinned: z.ZodString;
|
|
1214
|
+
live: z.ZodNullable<z.ZodString>;
|
|
1215
|
+
drifted: z.ZodBoolean;
|
|
1216
|
+
}, z.core.$strip>;
|
|
1217
|
+
ext: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1218
|
+
expect: z.ZodEnum<{
|
|
1219
|
+
boolean: "boolean";
|
|
1220
|
+
score: "score";
|
|
1221
|
+
}>;
|
|
1222
|
+
onError: z.ZodEnum<{
|
|
1223
|
+
reject: "reject";
|
|
1224
|
+
review: "review";
|
|
1225
|
+
}>;
|
|
1226
|
+
endpoint: z.ZodString;
|
|
1227
|
+
audience: z.ZodString;
|
|
1228
|
+
capability: z.ZodOptional<z.ZodObject<{
|
|
1229
|
+
can: z.ZodString;
|
|
1230
|
+
with: z.ZodString;
|
|
1231
|
+
}, z.core.$strip>>;
|
|
1232
|
+
send: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1233
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
1234
|
+
usedBy: z.ZodArray<z.ZodString>;
|
|
1235
|
+
}, z.core.$loose>>;
|
|
1236
|
+
ai: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1237
|
+
expect: z.ZodLiteral<"boolean">;
|
|
1238
|
+
onError: z.ZodEnum<{
|
|
1239
|
+
reject: "reject";
|
|
1240
|
+
review: "review";
|
|
1241
|
+
}>;
|
|
1242
|
+
instructions: z.ZodArray<z.ZodString>;
|
|
1243
|
+
send: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1244
|
+
usedBy: z.ZodArray<z.ZodString>;
|
|
1245
|
+
}, z.core.$loose>>;
|
|
1246
|
+
hasAiChecks: z.ZodBoolean;
|
|
1247
|
+
ctx: z.ZodArray<z.ZodString>;
|
|
1248
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
1249
|
+
path: z.ZodString;
|
|
1250
|
+
kind: z.ZodString;
|
|
1251
|
+
}, z.core.$loose>>;
|
|
1252
|
+
derived: z.ZodArray<z.ZodObject<{
|
|
1253
|
+
name: z.ZodString;
|
|
1254
|
+
expression: z.ZodString;
|
|
1255
|
+
}, z.core.$loose>>;
|
|
1256
|
+
review: z.ZodOptional<z.ZodObject<{
|
|
1257
|
+
tasks: z.ZodArray<z.ZodString>;
|
|
1258
|
+
taskDetails: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1259
|
+
id: z.ZodString;
|
|
1260
|
+
prompt: z.ZodString;
|
|
1261
|
+
answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1262
|
+
type: z.ZodLiteral<"boolean">;
|
|
1263
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1264
|
+
type: z.ZodLiteral<"enum">;
|
|
1265
|
+
options: z.ZodArray<z.ZodString>;
|
|
1266
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1267
|
+
type: z.ZodLiteral<"number">;
|
|
1268
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1269
|
+
type: z.ZodLiteral<"text">;
|
|
1270
|
+
}, z.core.$loose>], "type">;
|
|
1271
|
+
}, z.core.$loose>>>;
|
|
1272
|
+
}, z.core.$loose>>;
|
|
1273
|
+
unique: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1274
|
+
ruleId: z.ZodString;
|
|
1275
|
+
by: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1276
|
+
ref: z.ZodString;
|
|
1277
|
+
granularity: z.ZodOptional<z.ZodEnum<{
|
|
1278
|
+
day: "day";
|
|
1279
|
+
month: "month";
|
|
1280
|
+
year: "year";
|
|
1281
|
+
}>>;
|
|
1282
|
+
}, z.core.$loose>]>>>;
|
|
1283
|
+
countPrior: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1284
|
+
approved: "approved";
|
|
1285
|
+
pending_review: "pending_review";
|
|
1286
|
+
queued: "queued";
|
|
1287
|
+
}>>>;
|
|
1288
|
+
attachments: z.ZodOptional<z.ZodBoolean>;
|
|
1289
|
+
ai: z.ZodOptional<z.ZodObject<{
|
|
1290
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1291
|
+
maxPairs: z.ZodOptional<z.ZodNumber>;
|
|
1292
|
+
}, z.core.$loose>>;
|
|
1293
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
1294
|
+
rejectAtBps: z.ZodOptional<z.ZodNumber>;
|
|
1295
|
+
reviewAtBps: z.ZodOptional<z.ZodNumber>;
|
|
1296
|
+
}, z.core.$loose>>;
|
|
1297
|
+
}, z.core.$loose>>>;
|
|
1298
|
+
frequency: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1299
|
+
ruleId: z.ZodString;
|
|
1300
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1301
|
+
per: z.ZodOptional<z.ZodEnum<{
|
|
1302
|
+
day: "day";
|
|
1303
|
+
month: "month";
|
|
1304
|
+
week: "week";
|
|
1305
|
+
year: "year";
|
|
1306
|
+
}>>;
|
|
1307
|
+
onBreach: z.ZodOptional<z.ZodEnum<{
|
|
1308
|
+
reject: "reject";
|
|
1309
|
+
review: "review";
|
|
1310
|
+
}>>;
|
|
1311
|
+
}, z.core.$loose>>>;
|
|
1312
|
+
sizeProbes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1313
|
+
path: z.ZodString;
|
|
1314
|
+
maxSizeMB: z.ZodNumber;
|
|
1315
|
+
}, z.core.$loose>>>;
|
|
1316
|
+
}, z.core.$loose>]>;
|
|
1317
|
+
export declare const isManifestUnusable: (m: Manifest | ManifestUnusable) => m is ManifestUnusable;
|
|
1318
|
+
/** The engine's error envelope — the same `{ error: {…} }` shape this service returns. */
|
|
1319
|
+
export declare const ErrorEnvelope: z.ZodObject<{
|
|
1320
|
+
error: z.ZodObject<{
|
|
1321
|
+
code: z.ZodString;
|
|
1322
|
+
message: z.ZodString;
|
|
1323
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
1324
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
1325
|
+
}, z.core.$loose>;
|
|
1326
|
+
}, z.core.$strip>;
|
|
1327
|
+
/**
|
|
1328
|
+
* A non-2xx engine answer, carrying the contract's `code` so the workflow can route it (pause the
|
|
1329
|
+
* collection, retry, fail closed) without parsing messages. `status >= 500` — or the engine's
|
|
1330
|
+
* own `UNAVAILABLE` — is the retryable class, and so is 429 `RATE_LIMITED`: the engine's per-IP
|
|
1331
|
+
* limiter (100/60 s) throttles a backlog burst, which is a "not now", never a "no" — a
|
|
1332
|
+
* `Retry-After` it sends is exposed as `retryAfterMs` (the step's own backoff is what actually
|
|
1333
|
+
* waits). Every other 4xx is deterministic, except `INSUFFICIENT_CREDITS`, which the contract
|
|
1334
|
+
* says to retry after the top-up. The fold's own refusals — 409 `STALE_REVIEW`, 409
|
|
1335
|
+
* `FACTS_MISMATCH`, 422 `REVIEW_INCOMPLETE` (with `details.pendingTasks`), 400 not pending, 403
|
|
1336
|
+
* decided by another oracle, 404 never decided — are all in the deterministic class: the review
|
|
1337
|
+
* lane surfaces the code on the review row, never retries. So is the manifest's 404
|
|
1338
|
+
* `RUBRIC_UNKNOWN` (a pin the engine never decided under).
|
|
1339
|
+
*/
|
|
1340
|
+
export declare class EngineError extends Error {
|
|
1341
|
+
readonly status: number;
|
|
1342
|
+
readonly code: string;
|
|
1343
|
+
readonly requestId?: string;
|
|
1344
|
+
readonly details?: unknown;
|
|
1345
|
+
/** The engine's `Retry-After` (a 429), in ms — absent when it sent none. */
|
|
1346
|
+
readonly retryAfterMs?: number;
|
|
1347
|
+
constructor(status: number, code: string, message: string, extra?: {
|
|
1348
|
+
requestId?: string;
|
|
1349
|
+
details?: unknown;
|
|
1350
|
+
retryAfterMs?: number;
|
|
1351
|
+
});
|
|
1352
|
+
get retryable(): boolean;
|
|
1353
|
+
/** The engine's `details.manageSubscriptionUrl` on a 402 — where the OWNER tops up. */
|
|
1354
|
+
get topUpUrl(): string | null;
|
|
1355
|
+
}
|
|
1356
|
+
//# sourceMappingURL=types.d.ts.map
|