@ixo/decision-oracle 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +121 -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
package/package.json
CHANGED
|
@@ -1,6 +1,123 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ixo/decision-oracle",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "Run an IXO evaluation oracle: pull claims, produce facts with your handlers, let the decision engine decide, sign on chain",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ixo",
|
|
7
|
+
"oracle",
|
|
8
|
+
"evaluation",
|
|
9
|
+
"claims",
|
|
10
|
+
"cloudflare-workers",
|
|
11
|
+
"hono",
|
|
12
|
+
"d1"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/ixoworld/eval-oralce.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/ixoworld/eval-oralce/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/ixoworld/eval-oralce#readme",
|
|
22
|
+
"type": "module",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./facts": {
|
|
29
|
+
"types": "./dist/facts/index.d.ts",
|
|
30
|
+
"default": "./dist/facts/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./testing": {
|
|
33
|
+
"types": "./dist/testing/index.d.ts",
|
|
34
|
+
"default": "./dist/testing/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./runtime": {
|
|
37
|
+
"types": "./dist/runtime.d.ts",
|
|
38
|
+
"default": "./dist/runtime.js"
|
|
39
|
+
},
|
|
40
|
+
"./package.json": "./package.json"
|
|
41
|
+
},
|
|
42
|
+
"bin": {
|
|
43
|
+
"decision-oracle": "dist/cli/index.js"
|
|
44
|
+
},
|
|
45
|
+
"files": [
|
|
46
|
+
"dist",
|
|
47
|
+
"docs",
|
|
48
|
+
"migrations",
|
|
49
|
+
"openapi/decision-api.yaml",
|
|
50
|
+
"skills",
|
|
51
|
+
"templates",
|
|
52
|
+
"README.md"
|
|
53
|
+
],
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"dev": "wrangler dev",
|
|
59
|
+
"start": "wrangler dev",
|
|
60
|
+
"build": "bun ./scripts/build.ts",
|
|
61
|
+
"bundle-check": "wrangler deploy --dry-run --outdir .wrangler/dry-run",
|
|
62
|
+
"mock:api": "bunx @stoplight/prism-cli@5.16.0 mock openapi/decision-api.yaml -p 4010",
|
|
63
|
+
"openapi:generate": "bun openapi/generate.ts",
|
|
64
|
+
"email:preview": "bun scripts/email-preview.ts",
|
|
65
|
+
"cf-typegen": "wrangler types --env-interface Env --include-runtime=false",
|
|
66
|
+
"typecheck": "tsc --noEmit",
|
|
67
|
+
"test": "vitest run",
|
|
68
|
+
"test:node": "vitest run --config vitest.node.config.ts",
|
|
69
|
+
"test:watch": "vitest",
|
|
70
|
+
"db:generate": "drizzle-kit generate",
|
|
71
|
+
"db:migrate": "wrangler d1 migrations apply eval-oracle-devnet --local",
|
|
72
|
+
"db:migrate:remote": "wrangler d1 migrations apply eval-oracle-devnet --remote",
|
|
73
|
+
"db:studio": "drizzle-kit studio",
|
|
74
|
+
"check": "bun run typecheck && bun run test && bun run test:node",
|
|
75
|
+
"postinstall": "[ ! -d src ] || bun ./scripts/copy-wasm.ts"
|
|
76
|
+
},
|
|
77
|
+
"dependencies": {
|
|
78
|
+
"@cfworker/json-schema": "^4.1.1",
|
|
79
|
+
"@cloudflare/workers-types": "^5.20260910.1",
|
|
80
|
+
"@contentauth/toolkit": "0.13.14",
|
|
81
|
+
"@cosmjs/proto-signing": "^0.39.0",
|
|
82
|
+
"@cosmjs/stargate": "^0.39.0",
|
|
83
|
+
"@hono/zod-validator": "^0.8.0",
|
|
84
|
+
"@ixo/decision-oracle-client": "0.1.0",
|
|
85
|
+
"@ixo/impactxclient-sdk": "^3.0.1",
|
|
86
|
+
"@ixo/matrixclient-sdk": "^3.0.0",
|
|
87
|
+
"@ixo/ucan": "^2.1.0",
|
|
88
|
+
"@ixo/x402-ixo-pay": "0.6.0",
|
|
89
|
+
"@modelcontextprotocol/sdk": "1.31.0",
|
|
90
|
+
"@noble/curves": "^1.9.7",
|
|
91
|
+
"@noble/hashes": "^1.8.0",
|
|
92
|
+
"@scure/base": "^1.2.6",
|
|
93
|
+
"@scure/bip32": "1.7.0",
|
|
94
|
+
"@scure/bip39": "^2.4.0",
|
|
95
|
+
"@sentry/cloudflare": "^10.76.1",
|
|
96
|
+
"drizzle-orm": "^0.45.2",
|
|
97
|
+
"eciesjs": "^0.4.15",
|
|
98
|
+
"fflate": "^0.8.3",
|
|
99
|
+
"hono": "^4.12.30",
|
|
100
|
+
"jose": "^6.2.3",
|
|
101
|
+
"jpeg-js": "^0.4.4",
|
|
102
|
+
"long": "^5.3.2",
|
|
103
|
+
"multiformats": "^13.4.2",
|
|
104
|
+
"protobufjs": "7.6.5",
|
|
105
|
+
"upng-js": "^2.1.0",
|
|
106
|
+
"zod": "^4.4.3"
|
|
107
|
+
},
|
|
108
|
+
"devDependencies": {
|
|
109
|
+
"@cloudflare/vitest-pool-workers": "^0.18.4",
|
|
110
|
+
"@sentry/cli": "^2",
|
|
111
|
+
"@types/node": "^26.1.1",
|
|
112
|
+
"ajv": "^8.20.0",
|
|
113
|
+
"drizzle-kit": "^0.31.10",
|
|
114
|
+
"typescript": "^7.0.2",
|
|
115
|
+
"vitest": "^4.1.10",
|
|
116
|
+
"wrangler": "^4.146.0",
|
|
117
|
+
"yaml": "^2.9.0"
|
|
118
|
+
},
|
|
119
|
+
"engines": {
|
|
120
|
+
"node": ">=20",
|
|
121
|
+
"bun": ">=1.3.0"
|
|
122
|
+
}
|
|
123
|
+
}
|
package/skills/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Skills
|
|
2
|
+
|
|
3
|
+
The Claude Code skills shipped with `@ixo/decision-oracle`. `decision-oracle init` copies this directory
|
|
4
|
+
into a new project's `.claude/skills/`, and `decision-oracle skills sync` refreshes those copies from the
|
|
5
|
+
installed package (leaving any skill of your own in that directory alone).
|
|
6
|
+
|
|
7
|
+
| Skill | Drives |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| `create-oracle` | building an oracle from a protocol: init → identity → the work order → handlers → run → deploy → get hired |
|
|
10
|
+
| `write-facts` | one manifest entry → one fact handler + its test: the facts API, stock vs custom, the never-fake-ok rule |
|
|
11
|
+
| `create-rubric` | authoring a rubric for a claim form and validating it against the engine |
|
|
12
|
+
| `publish-protocol` | anchoring a claim form and rubric on chain as a protocol entity |
|
|
13
|
+
| `create-collection` | creating a claim collection an oracle can be hired against |
|
|
14
|
+
| `decision-api-client` | testing a Decision API oracle from the customer side: devnet test credentials (source, keys, payment delegation), the SDK and CLI smoke, MCP from Claude Code, the docs agent test |
|
|
15
|
+
| `decision-api-oracle` | turning on, deploying and verifying the Decision API lane — the shipment-delivery example (SwiftDrop Express) on devnet end to end: publish, identity, Cloudflare, deploy, engine registration (payable at once), operator, verify, emails |
|
|
16
|
+
| `add-openhands-support` | making an oracle hireable from the Openhands app (asks, the Yoma youth world): the hire/scan adapter, the bridge's fact names, pricing, the picker's card fields, engine registration |
|
|
17
|
+
|
|
18
|
+
`reference/engine-contract.md` (here, beside the skills) is the decision engine's contract —
|
|
19
|
+
background for all eight, not an interface anyone codes against.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: add-openhands-support
|
|
3
|
+
description: Use when an oracle built on @ixo/decision-oracle should be hireable from the Openhands Network app (asks, quests, the Yoma youth world) — "make my oracle work with Openhands", an oracle missing from the Openhands checker picker, a hire nudge that 404s, an ask whose claims are never judged, or FACT_MISSING on judgeN / withinRadiusN / openhandsSite names.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Adding Openhands support to an oracle
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
An Openhands ask is its OWN protocol: the app writes a rubric per ask from the poster's sentence
|
|
11
|
+
(`bridge.ts toEngineRubric`), escrows the pay, grants a **meta-authorization** to the checker the
|
|
12
|
+
poster picked, and nudges that checker's `#eval` endpoint. A plain `decision-oracle init` project can
|
|
13
|
+
do none of the Openhands half: it has no hire/scan routes, cannot mint its own evaluate grant from
|
|
14
|
+
a meta-grant, does not answer the bridge's fact names, and is filtered out of the picker. This
|
|
15
|
+
skill adds that adapter. The engine still decides; nothing here judges.
|
|
16
|
+
|
|
17
|
+
**Explain before acting.** Tell the provider what will happen — files copied into their project,
|
|
18
|
+
a redeploy, an `oracle init` that signs chain transactions (card refresh), `engine register` —
|
|
19
|
+
and wait for their OK. Dry-run every chain step first (`create-oracle` step 8's contract).
|
|
20
|
+
|
|
21
|
+
## The adapter (copy, don't rewrite)
|
|
22
|
+
|
|
23
|
+
Source of truth: `examples/street-check-oracle` in the eval-oracle repo (an `init` project with
|
|
24
|
+
the adapter added, deployed on devnet), itself ported from `ixoworld/openhands-oracle`. Copy:
|
|
25
|
+
|
|
26
|
+
| Path | What it is |
|
|
27
|
+
| --- | --- |
|
|
28
|
+
| `src/openhands/` | `routes.ts` (`POST /openhands/hire/:id`, `/openhands/scan/:id`, `GET /openhands/claims/:id/why`), `invitations.ts` (10-min backstop), `chain.ts` (meta-grant → `MsgCreateClaimAuthorization`), `act.ts` / `release.ts` (pooled payouts — the act seam's amount stands only where the collection's owner set `operatorAmounts: "allowed"`; Verify step 4), `spots.ts` |
|
|
29
|
+
| `src/workflows/hire.ts` | `OpenhandsHire`: verify → mint → register → scan, one instance per collection |
|
|
30
|
+
| `src/facts/` | the bridge's names: `withinRadius[2..5]`, `located`, `beforeAfter` (package stock), `notElsewhere[N]`, `notMarkedGenerated[N]`, `photoShape[N]`, `daylight`, `weather`, `notAlreadyMapped`, `cooldown`, `reMeasure[N]`, `openhandsSite`; `ai.judge[N]` is the stock judge |
|
|
31
|
+
| `src/index.ts` | wraps `oracle.fetch` with `handleOpenhandsRoute`, routes cron `*/10` to the three passes, exports `OpenhandsHire` |
|
|
32
|
+
| `src/env.ts`, `src/pricing.ts`, `migrations/`, `scripts/flatten-package-migrations.ts` (+ `scripts/lib/`) | `OH_DB`, `HIRE_WORKFLOW`, `WHY_RATE_LIMITER`, the check price |
|
|
33
|
+
|
|
34
|
+
Outside the eval-oracle repo, get it with `git clone https://github.com/ixoworld/eval-oracle` and
|
|
35
|
+
copy from `examples/street-check-oracle/`. The fact handlers are not street-specific: they are the
|
|
36
|
+
bridge's generic vocabulary, and each ask's rubric picks which ones it asks for — copy them as
|
|
37
|
+
they are. If the project already answers one of these names, keep ONE handler for it: a name
|
|
38
|
+
answered twice throws at module evaluation (`defineFacts`).
|
|
39
|
+
|
|
40
|
+
`wrangler.jsonc`: a second D1 `OH_DB` (`migrations_dir: "migrations"`), the `HIRE_WORKFLOW`
|
|
41
|
+
workflow (`class_name: "OpenhandsHire"`), crons `["* * * * *", "*/5 * * * *", "0 * * * *", "*/10 * * * *"]`
|
|
42
|
+
(the package's three tiers plus Openhands' ten-minute one), the
|
|
43
|
+
`WHY_RATE_LIMITER` ratelimit — in EVERY env. Keep `supportedProtocols: []` (every ask is new).
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
wrangler d1 create <name>-oh-<env> # paste the id into that env's OH_DB
|
|
47
|
+
bun run db:migrate:remote # must apply BOTH databases — copy the example's script
|
|
48
|
+
bun run cf-typegen && bun run check
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Pricing — never leave it at 0
|
|
52
|
+
|
|
53
|
+
`src/pricing.ts` `CHECK_PRICE_DENOM` / `CHECK_PRICE_AMOUNT` feed `pricing.evaluation` AND the
|
|
54
|
+
ceiling written on every minted grant. Denom = the app's `NEXT_PUBLIC_ASK_DENOM` (`uixo` on
|
|
55
|
+
devnet, `upay` on testnet/mainnet). At 0 the oracle works for free while the engine bills its
|
|
56
|
+
owner per decision. The picker shows the price from `/v1/info`, and the poster's escrow carries it;
|
|
57
|
+
an ask escrowing less is refused 402 and never judged. Default, unless the provider names one:
|
|
58
|
+
`350_000` base units — 0.35 IXO on devnet, 0.35 PAY ($0.35) on testnet/mainnet, Openhands' own
|
|
59
|
+
check fee (`QI_CHECKER_BASE_UPAY`), which covers the engine's $0.30 per decision.
|
|
60
|
+
|
|
61
|
+
## Being listed and hired
|
|
62
|
+
|
|
63
|
+
The app's picker (`packages/openhands-data/src/oracles.ts`, with `NEXT_PUBLIC_CHECKER_ADDRESS`
|
|
64
|
+
UNSET) lists an oracle when its entity has: `#acard` with a **`check-openhands`** service (next to
|
|
65
|
+
`check-measure`, priced in PAY — the app reads the service id, and `check-openhands` is what marks
|
|
66
|
+
the oracle Openhands-compatible); `#orz` granting `ORACLE_ADDRESS`; `#eval` = an https base URL
|
|
67
|
+
whose `/v1/info` answers that address, the ask denom, and `policies.allowAiChecks: true` (else it
|
|
68
|
+
is offered only for asks without written checks); and the oracle **registered with the engine**
|
|
69
|
+
(`engine register`, below). `oracle init` writes `#orz`, `#eval` and the card — re-run it after any
|
|
70
|
+
price change (`acard` drifts); it is idempotent against live state, so a re-run on an initialised
|
|
71
|
+
oracle only replaces what drifted. `--openhands` adds the `check-openhands` service, priced in
|
|
72
|
+
PAY at the oracle's per-review price (`/v1/info`'s `pricing.api`, else `--price-pay <n>`;
|
|
73
|
+
1 PAY = 1 USD):
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
bunx decision-oracle oracle init --protocol <any ask's protocol, or the app's claim-form entity> \
|
|
77
|
+
--kit-url https://<host> --logo https://<host>/logo.svg --openhands --network <n> # dry run; then --yes
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Hire/scan nudges go to the PICKED oracle's `#eval`; that routing is the `demo/oracle-picker` change
|
|
81
|
+
in openhands-network. The app build has it when `packages/openhands-data/src/oracles.ts` reads the
|
|
82
|
+
`#eval` endpoint and `app/ask/post.ts` passes `checker.endpoint` to `notifyOracle` — and in use,
|
|
83
|
+
when the hire nudge shows up in THIS oracle's logs after a post.
|
|
84
|
+
|
|
85
|
+
Then, right after deploy: `bunx decision-oracle engine register --env <env> --env-file .dev.vars`.
|
|
86
|
+
The Openhands app lists only registered oracles, and otherwise the engine (and the Decision
|
|
87
|
+
Console) learns the oracle only at its first decision.
|
|
88
|
+
|
|
89
|
+
## Verify (in order)
|
|
90
|
+
|
|
91
|
+
1. `curl <host>/v1/info` → address, `pricing.evaluation` in the ask denom, `allowAiChecks: true`.
|
|
92
|
+
2. The composer's checker step lists the oracle at its price.
|
|
93
|
+
3. Post an ask picking it → `wrangler workflows instances describe <name>-hire-<env> <collectionId>`
|
|
94
|
+
shows verify, mint (a tx), register `active`, scan.
|
|
95
|
+
4. Submit a claim → logs `evaluate.done` (`decided`) then `act.submitted`; the receipt page
|
|
96
|
+
`/r/<id>` shows the decision trace and the payout line naming the check fee. The pooled amount
|
|
97
|
+
the act seam picks stands only if the collection's owner set `operatorAmounts: "allowed"` —
|
|
98
|
+
`PATCH /v1/collections/:id/settings` with `{ "operatorAmounts": "allowed" }` (UCAN action
|
|
99
|
+
`collections/settings`), under the owner's
|
|
100
|
+
own UCAN. Otherwise the oracle pays the default leg and logs `act.amount-ignored-not-opted-in`.
|
|
101
|
+
|
|
102
|
+
## Common mistakes
|
|
103
|
+
|
|
104
|
+
| Symptom | Cause / fix |
|
|
105
|
+
| --- | --- |
|
|
106
|
+
| Hire nudge 404 | the adapter's routes are not wrapped in `src/index.ts` `fetch` |
|
|
107
|
+
| Every claim rejected `weather` "unreachable" | `weather` left as a stub; copy `src/facts/weather.ts` (Open-Meteo, no key) |
|
|
108
|
+
| Oracle missing from the picker | no `check-openhands` service on `#acard`, no `#orz`/https `#eval`, not `engine register`ed, price unreadable, or `NEXT_PUBLIC_CHECKER_ADDRESS` set (single-checker mode) |
|
|
109
|
+
| Picker shows the oracle at 0 | `pricing.ts` still 0, or its denom ≠ the ask denom |
|
|
110
|
+
| `withinRadius` fails for everyone | the ask's place was geocoded from a word ("You" → a village in Burkina Faso); set the place by name |
|
|
111
|
+
| Console "Could not read this oracle's prices" | the console reads the Decision API price list; a chain-lane oracle has none (`API_LANE` off) — console-side, not an oracle fault |
|
|
112
|
+
| Wrangler can't resolve `protobufjs/minimal.js` | inside the eval-oracle workspace there is one hoisted protobufjs; drop openhands-oracle's `alias` |
|
|
113
|
+
| `chain.test.ts` fails after a denom change | the "foreign denom" fixtures used your new denom; give them one you are not paid in |
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: create-collection
|
|
3
|
+
description: Use when a published protocol needs a live claim collection an oracle can be hired against — creating the deed that hosts the claims, the collection on it, its evaluation payment, funding its admin account, granting Evaluate/Submit authorizations, wiring the owner→oracle Matrix delegation, or debugging "No claim protocols are linked to this entity" / NO_EVALUATE_GRANT / "payment withdrawal failed" / an oracle that can't pull claims.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Creating a collection
|
|
7
|
+
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The claims stack is THREE on-chain objects, created in a fixed order, each pointing at the previous
|
|
11
|
+
one — `reference/claims-stack.md` is the full brief:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
protocol (protocol/verifiableClaim — the claim SCHEMA: #vct + #rub; a template, owns nothing)
|
|
15
|
+
→ deed (a domain entity — hosts the claims; its linkedClaim names the protocol)
|
|
16
|
+
→ collection (MsgCreateCollection: entity = the DEED, protocol = the protocol; a numeric id)
|
|
17
|
+
→ claims (submit / evaluate)
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
A **collection** is the live claims lane: payment legs (submission/approval/rejection/evaluation), a
|
|
21
|
+
quota and time window, and the DEED's admin account that pays out on evaluation. A deed holds at
|
|
22
|
+
most one collection per protocol; every command resolves it FROM the (`--entity`, `--protocol`) pair
|
|
23
|
+
via Blocksync, so the pipeline is resumable with nothing but those two.
|
|
24
|
+
|
|
25
|
+
**The mistake this skill exists to prevent:** passing the protocol DID where the deed belongs. The
|
|
26
|
+
chain accepts `entity = protocol`, but the portal's collection block is given the ENTITY and lists
|
|
27
|
+
only protocols found in its `linkedClaim` → claims-config doc → `entityClaims[].template.id` — a
|
|
28
|
+
protocol entity has no `linkedClaim`, so it answers **"No claim protocols are linked to <did>"**.
|
|
29
|
+
`create-collection` runs that same check before signing and refuses a deed that doesn't link the
|
|
30
|
+
protocol.
|
|
31
|
+
|
|
32
|
+
## Safety — read before running anything
|
|
33
|
+
|
|
34
|
+
- **devnet is the only implicit network.** `--network` defaults to devnet; testnet/mainnet must be
|
|
35
|
+
named explicitly, never assumed.
|
|
36
|
+
- **Every chain write is a real signed transaction.** The confirm gate prints the exact plan and
|
|
37
|
+
exits 0 without signing unless `--yes` is passed. Run WITHOUT `--yes` first, show the plan, and
|
|
38
|
+
only re-run WITH `--yes` after the user explicitly says to proceed.
|
|
39
|
+
- **Signing is an AuthHub session, not a mnemonic** — `bunx decision-oracle login --network <n>` once
|
|
40
|
+
(the same session `publish-protocol` used). The session is also the Matrix identity: the deed's
|
|
41
|
+
room is joined and its bots invited as the session's own Matrix user, and the room-state write
|
|
42
|
+
carries the session's UCAN. Never ask anyone to paste a mnemonic or session file into a message.
|
|
43
|
+
- **This spends real funds twice over**: gas on every signed tx, AND whatever `--eval-amount` /
|
|
44
|
+
`--fund` say actually moves — the evaluation payment is real income for a real oracle, and funding
|
|
45
|
+
is a real transfer out of the signer's balance.
|
|
46
|
+
|
|
47
|
+
## When to use
|
|
48
|
+
|
|
49
|
+
- "Create a collection for this protocol / hire an oracle to evaluate claims / grant Evaluate or Submit"
|
|
50
|
+
- The portal's collection block says "No claim protocols are linked to this entity"
|
|
51
|
+
- A collection exists but evaluations fail with `payment withdrawal failed`
|
|
52
|
+
- An oracle reports `NO_EVALUATE_GRANT` / 403 trying to decide a claim against this collection
|
|
53
|
+
- The oracle needs the owner→oracle Matrix delegation before it can pull claim bodies from the
|
|
54
|
+
Matrix claim bot (step 5)
|
|
55
|
+
|
|
56
|
+
## Pipeline
|
|
57
|
+
|
|
58
|
+
1. **Ask, don't assume, for every policy-relevant value:**
|
|
59
|
+
- protocol DID (already published, with a `#rub` — if not, hand off to `publish-protocol`;
|
|
60
|
+
`create-deed` refuses a protocol without one)
|
|
61
|
+
- the deed: an existing domain entity DID that already links the protocol, OR a title (+ optional
|
|
62
|
+
description) for a new one — the title is what the portal's picker shows
|
|
63
|
+
- evaluation payment: denom + amount. This is the oracle's income per decision AND the minimum
|
|
64
|
+
that oracle's own `pricing.evaluation` accepts, so confirm the number with whoever owns the
|
|
65
|
+
oracle rather than guessing
|
|
66
|
+
- optional admin funding amount (`--fund`) — covers the first evaluation payouts, see the gotcha
|
|
67
|
+
- the oracle address to grant Evaluate; the agent address(es) to grant Submit (comma-separated)
|
|
68
|
+
- quota and window in days if the defaults (100, 90) aren't right — state them explicitly rather
|
|
69
|
+
than silently applying them
|
|
70
|
+
|
|
71
|
+
2. **Log in once** if there is no session for this network yet:
|
|
72
|
+
`bunx decision-oracle login --network devnet`.
|
|
73
|
+
|
|
74
|
+
3. **The deed** — skip when the user already has a domain entity that links the protocol (step 4
|
|
75
|
+
checks this for real). Otherwise, dry run first:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
bunx decision-oracle create-deed --protocol <protocol did> --title "…" [--description "…"] \
|
|
79
|
+
[--type deed] [--network devnet] [--phase entity|room|claims|all] [--entity <did>] [--yes]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Three phases: `entity` (`MsgCreateEntity`, `--type` default `deed`), `room` (source the deed's
|
|
83
|
+
Matrix room, invite the claim bot AND the state bot — `reference/claims-stack.md` says why both),
|
|
84
|
+
`claims` (the claims-config doc into room state at `claims/<cid>` with a public ACL, then one tx:
|
|
85
|
+
`MsgAddLinkedClaim {id}#claims` + `MsgAddService`). Resume with `--entity <did> --phase
|
|
86
|
+
room|claims|all`. It prints the exact step-4 command.
|
|
87
|
+
|
|
88
|
+
4. **The collection**, dry run first:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
bunx decision-oracle create-collection --entity <deed did> --protocol <protocol did> \
|
|
92
|
+
--eval-amount <amount> [--eval-denom uixo] [--network devnet] [--fund <amount>] \
|
|
93
|
+
[--evaluate <oracle address>] [--submit <agent address>] [--quota 100] [--days 90] \
|
|
94
|
+
[--max-custom-amount 0uixo] [--phase collection|fund|grants|all] [--yes]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
`--max-custom-amount` is the evaluate grant's `MaxCustomAmount`, written explicitly (`0<eval
|
|
98
|
+
denom>` by default). The chain holds EVERY non-empty evaluation amount to it (its denom must be
|
|
99
|
+
listed), and the oracle sends an ordinary claim's own coins by default — so if the protocol's
|
|
100
|
+
claims carry coins, set it to at least the largest claim amount in that denom, or every
|
|
101
|
+
approval fails at MsgExec. `0` is right only when claims carry no coins (an intent claim sends
|
|
102
|
+
none). Anything above the claims' own amounts is room for the oracle to set its own — and that
|
|
103
|
+
stands only once the owner also opts in on the oracle (`PATCH /v1/collections/:id/settings`
|
|
104
|
+
`{ operatorAmounts: "allowed" }`; a later owner must opt in again).
|
|
105
|
+
|
|
106
|
+
Same discipline: show the dry-run plan for every phase that would run, get explicit OK, only then
|
|
107
|
+
re-run identically with `--yes`. `--phase collection` is a safe no-op when the deed already holds
|
|
108
|
+
a collection for this protocol.
|
|
109
|
+
|
|
110
|
+
**Gotcha:** the collection's admin account — the DEED's, not the signer's — pays EVERY evaluation,
|
|
111
|
+
rejects included, plus the approval payment on an ordinary approve (an intent claim's comes from
|
|
112
|
+
escrow) and the rejection payment on a reject, all on the same message. It starts at zero. An
|
|
113
|
+
unfunded admin makes `MsgEvaluateClaim` fail `payment withdrawal failed`. The oracle recognises that failure: the decision parks
|
|
114
|
+
`chainStatus: blocked` (no retries), the collection pauses `pausedReason: admin-unfunded`, and the
|
|
115
|
+
owner gets a Matrix notice in the review room plus an email to `contactEmail` naming the admin
|
|
116
|
+
account, the full amount the failed claim needs (evaluation + its verdict's payment, per denom)
|
|
117
|
+
and the balance. Top it up and the oracle resumes and re-delivers the parked decisions by itself
|
|
118
|
+
within a minute — nothing to re-run. Still: pass `--fund` here, sized by the number of
|
|
119
|
+
EVALUATIONS you expect plus the approval payouts the admin account pays.
|
|
120
|
+
|
|
121
|
+
5. **Grants and the delegation are two different things.** `--evaluate` / `--submit` in step 4 grant
|
|
122
|
+
the on-chain `EvaluateClaimAuthorization` / `SubmitClaimAuthorization` (granter = the deed's
|
|
123
|
+
admin) — that is what stops `POST /v1/decisions` 403ing `NO_EVALUATE_GRANT`. The oracle STILL
|
|
124
|
+
cannot pull claim bodies from Matrix without an owner→oracle UCAN delegation:
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
bunx decision-oracle delegation --for bot --audience did:ixo:<oracle address> \
|
|
128
|
+
--out delegation.car [--network devnet] [--days 30] [--yes]
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Same dry-run-then-confirm discipline, same session. The CAR is written to a file, never printed —
|
|
132
|
+
it is a bearer credential — and it expires on its own schedule (30 days by default), independent
|
|
133
|
+
of the grants' 365-day expiry.
|
|
134
|
+
|
|
135
|
+
The bot returns the claim's JSON re-ordered, so its bytes can't be CID-checked: a claim the oracle
|
|
136
|
+
read only from the Matrix claim bot goes to the engine as `claimContent` with no `document`, and
|
|
137
|
+
is decided like any other. For a payout protocol the oracle also looks past the bot to the IPFS
|
|
138
|
+
gateway and a Cellnode for the exact stored bytes.
|
|
139
|
+
|
|
140
|
+
6. **Enroll the collection with the oracle.** An oracle watches nothing until the collection's owner
|
|
141
|
+
registers it. The portal makes that call for a real commissioner; as the same session, with the
|
|
142
|
+
step-5 CAR:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
bunx decision-oracle register --collection <id> --delegation delegation.car \
|
|
146
|
+
[--contact-email <addr>] [--kit <oracle url>]
|
|
147
|
+
bunx decision-oracle scan --collection <id> # discover claims now instead of at the next tick
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
A refusal names its gate: not the chain owner, no Evaluate grant for that oracle's
|
|
151
|
+
`ORACLE_ADDRESS` (step 4), or an evaluation payment below the oracle's own minimum. To put a claim
|
|
152
|
+
in without the portal (the SUBMITTER's side, as the same session — it holds the Submit grant):
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
bunx decision-oracle submit-claim --collection <id> --answers answers.json \
|
|
156
|
+
[--file <fileQuestion>=<path> …] [--yes]
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
(claim-bot media upload → save into the deed's room → `MsgExec(MsgSubmitClaim)`. The
|
|
160
|
+
passport-delivery example's `protocol/sample-claim.json` is a worked answers file.)
|
|
161
|
+
|
|
162
|
+
7. **Report the run** — the output contract below.
|
|
163
|
+
|
|
164
|
+
## Output contract
|
|
165
|
+
|
|
166
|
+
Always end with this block, verbatim, filled in from this run:
|
|
167
|
+
|
|
168
|
+
```text
|
|
169
|
+
collection id : <id>
|
|
170
|
+
deed DID : <did>
|
|
171
|
+
protocol DID : <did>
|
|
172
|
+
oracle granted: <evaluate address>
|
|
173
|
+
|
|
174
|
+
bunx decision-oracle register --collection <id> # if it isn't registered yet
|
|
175
|
+
bunx decision-oracle scan --collection <id>
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
That grant is exactly what unlocks the oracle's persisted-decision leg; the printed commands are
|
|
179
|
+
what makes the first real decision land. Say plainly what is still owed too: an unfunded admin
|
|
180
|
+
account, a phase that was dry-run but never confirmed, or a delegation nobody has minted yet.
|
|
181
|
+
|
|
182
|
+
## Common mistakes
|
|
183
|
+
|
|
184
|
+
| Mistake | Fix |
|
|
185
|
+
| --- | --- |
|
|
186
|
+
| `--entity <protocol did>` | the entity is the DEED; the protocol goes in `--protocol` |
|
|
187
|
+
| Creating the collection before the deed links the protocol | run `create-deed --phase claims`; the picker reads `linkedClaim` → claims-config |
|
|
188
|
+
| Granting Evaluate and expecting the oracle to pull claims | it also needs the claim-bot delegation (step 5) |
|
|
189
|
+
| Leaving the admin account unfunded | every evaluation debits it, rejects included — pass `--fund` |
|
|
190
|
+
| Guessing the evaluation amount | it must meet the oracle's `pricing.evaluation.minAmount`, or register 402s |
|
|
191
|
+
| Running with `--yes` first | dry-run, show the plan, then confirm |
|
|
192
|
+
| Re-running `create-deed --phase claims` for no reason | it rewrites the doc under a new cid and adds a second `linkedClaim` — resume from `claims` only when that phase actually failed |
|
|
193
|
+
|
|
194
|
+
## Reference
|
|
195
|
+
|
|
196
|
+
- `reference/claims-stack.md` — protocol vs deed vs collection: what each is, the exact
|
|
197
|
+
`linkedClaim` / claims-config shapes the portal reads, the two bots, and the pre-flight checklist.
|
|
198
|
+
- `reference/collection.md` — the messages in detail, resuming, the admin-funding gotcha in full,
|
|
199
|
+
and the delegation's identity.
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Protocol vs deed vs collection — the IXO claims stack
|
|
2
|
+
|
|
3
|
+
Three distinct on-chain objects, created in a fixed order, each pointing at the previous one. Never
|
|
4
|
+
confuse them: passing a protocol DID where an entity DID is expected yields the portal's "No claim
|
|
5
|
+
protocols are linked to <did>".
|
|
6
|
+
|
|
7
|
+
## 1. Protocol — `entityType: protocol/verifiableClaim`
|
|
8
|
+
|
|
9
|
+
WHAT: the claim *schema*. Defines what a claim looks like: the survey template (`{id}#vct`) and the
|
|
10
|
+
rubric (`{id}#rub`) as LinkedResources. It is an entity, but a template, not a domain — it owns
|
|
11
|
+
nothing and links to nothing. `linkedClaim: []` always.
|
|
12
|
+
|
|
13
|
+
MADE BY: `bunx decision-oracle publish-protocol` (the `publish-protocol` skill).
|
|
14
|
+
|
|
15
|
+
OUTPUT: the protocol DID. Only ever used as `--protocol` in steps 2 and 3 — NEVER as anything's
|
|
16
|
+
`--entity`.
|
|
17
|
+
|
|
18
|
+
## 2. Deed — a domain entity (`deed`, `project`, `dao`, …)
|
|
19
|
+
|
|
20
|
+
WHAT: the thing that *hosts* claims. Owner of the collection's admin account; what users submit
|
|
21
|
+
claims against; whose Matrix room the claims land in. Links to the protocol through `linkedClaim`.
|
|
22
|
+
|
|
23
|
+
MADE BY: `bunx decision-oracle create-deed`, three phases:
|
|
24
|
+
|
|
25
|
+
1. `entity` — `MsgCreateEntity` of `--type` (default `deed`), the same verification / controller /
|
|
26
|
+
relayer shape as a protocol. The DID is only known from the tx events, which is why the
|
|
27
|
+
`linkedClaim` cannot ride the create message (its doc is keyed on the room the DID names).
|
|
28
|
+
2. `room` — the rooms bot sources the entity's room and the session's Matrix user joins; then BOTH
|
|
29
|
+
bots are invited (each invite also raises the bot's power level, so it must be done by a room
|
|
30
|
+
member with power — the session user):
|
|
31
|
+
- the **claim bot** — without it every submission is `IXO_ROOM_NOT_FOUND`;
|
|
32
|
+
- the **state bot** — without it nothing can read or write the room's state, and the state bot
|
|
33
|
+
answers `You do not have permission to edit state for 'claims'`.
|
|
34
|
+
3. `claims` — the claims-config doc:
|
|
35
|
+
```json
|
|
36
|
+
{
|
|
37
|
+
"@context": { "ixo": "https://w3id.org/ixo/vocab/v1", "web3": "https://ipfs.io/ipfs/",
|
|
38
|
+
"id": "@id", "type": "@type", "@protected": true },
|
|
39
|
+
"id": "{id}#claims",
|
|
40
|
+
"type": "ixo:Claims",
|
|
41
|
+
"entityClaims": [{
|
|
42
|
+
"id": "claims",
|
|
43
|
+
"template": { "id": "<protocolDid>", "type": "verifiableClaim", "title": "…",
|
|
44
|
+
"description": "…", "creator": "", "createdAt": "<ISO>" },
|
|
45
|
+
"isEncrypted": false,
|
|
46
|
+
"isHeadlineMetric": true
|
|
47
|
+
}]
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
`template.id` MUST be the bare protocol DID. NEVER a creator-studio `ref:<node>:did#Name`
|
|
51
|
+
placeholder — it cannot be resolved from a ledgered entity and the portal's picker greys it out.
|
|
52
|
+
`proof` = CIDv1 / raw / sha256 of the doc's bytes. The doc goes into the deed's room state via the
|
|
53
|
+
state bot at **key `claims`, path `<cid>`**, then ACL `{ canAccess: ["*"], canEdit: [] }` —
|
|
54
|
+
exactly where the portal reads it (`queryState(roomId, "claims", proof)`, which is NOT where the
|
|
55
|
+
generic linked-resource resolver looks, so the key and path matter). Then ONE tx:
|
|
56
|
+
`MsgAddLinkedClaim`
|
|
57
|
+
```
|
|
58
|
+
{ id: "{id}#claims", type: "protocol/verifiableClaim", serviceEndpoint: "matrix:<cid>",
|
|
59
|
+
proof: "<cid>", encrypted: "false", right: "", description: "…" }
|
|
60
|
+
```
|
|
61
|
+
plus `MsgAddService {id}#matrix`. The portal keys on the endpoint's scheme (`matrix`) only.
|
|
62
|
+
|
|
63
|
+
TO ATTACH A PROTOCOL TO AN EXISTING ENTITY: `create-deed --entity <did> --phase claims` (add `room`
|
|
64
|
+
first if its room has no state bot yet). Updating the doc alone is not enough if the entity has no
|
|
65
|
+
`linkedClaim` entry.
|
|
66
|
+
|
|
67
|
+
OUTPUT: the deed DID. This is the `--entity` argument everywhere below.
|
|
68
|
+
|
|
69
|
+
## 3. Collection — `MsgCreateCollection`
|
|
70
|
+
|
|
71
|
+
WHAT: an *instance* that accepts claims: "claims of protocol X, against entity Y, between these
|
|
72
|
+
dates, up to this quota, with these payments". Not an entity, no DID — a numeric-string id.
|
|
73
|
+
|
|
74
|
+
MADE BY: `bunx decision-oracle create-collection`:
|
|
75
|
+
- `entity` = the DEED (never the protocol), `protocol` = the protocol
|
|
76
|
+
- `endDate` is ALWAYS set (a nil end date panics the chain on submit); the command uses now − 1 day →
|
|
77
|
+
now + `--days`
|
|
78
|
+
- payment legs are paid from the DEED's admin account (`entity.accounts[name=admin]`); the signer
|
|
79
|
+
must own the deed (or hold authz for it)
|
|
80
|
+
- before signing, it runs the portal's own gate: the deed's `linkedClaim` is non-empty, each
|
|
81
|
+
`matrix:` one's doc is read from the room, and some `entityClaims[].template.id` equals the
|
|
82
|
+
protocol — else it fails loudly instead of minting a collection the portal cannot see.
|
|
83
|
+
|
|
84
|
+
The portal's protocol picker is given the deed DID and lists only protocols found in THAT entity's
|
|
85
|
+
`linkedClaim` → claims-config → `entityClaims[].template.id`. If the picker is empty, the deed is not
|
|
86
|
+
linked to the protocol yet: fix step 2, don't retry step 3.
|
|
87
|
+
|
|
88
|
+
## Order and dependency
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
protocol --(template.id in the claims-config doc, referenced by linkedClaim)--> deed
|
|
92
|
+
deed + protocol -----------------------------------------------------------> collection
|
|
93
|
+
collection ----------------------------------------------------------------> claims
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
Checklist before creating a collection:
|
|
97
|
+
- [ ] a protocol DID whose entityType is `protocol/verifiableClaim`, with a `#rub`
|
|
98
|
+
- [ ] a deed DID whose entityType is a domain (`deed` / `project` / `dao`), NOT a protocol
|
|
99
|
+
- [ ] the deed's `linkedClaim` is non-empty on Blocksync
|
|
100
|
+
- [ ] the resolved claims-config doc has `entityClaims[].template.id == <protocol did>`
|
|
101
|
+
- [ ] both bots in the deed's room (the claim bot's `/invited` endpoint answers `isInvited: true`;
|
|
102
|
+
the state bot has no such endpoint — trust `create-deed`'s `room` phase)
|
|
103
|
+
- [ ] `endDate` is set
|
|
104
|
+
|
|
105
|
+
Two rules here come from behaviour hit for real rather than from types: "always set an end date" (a
|
|
106
|
+
chain panic) and "never a `ref:` placeholder" (the portal's own guard).
|