@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.
Files changed (1117) hide show
  1. package/README.md +794 -2
  2. package/dist/act.d.ts +87 -0
  3. package/dist/act.d.ts.map +1 -0
  4. package/dist/act.js +20 -0
  5. package/dist/act.js.map +1 -0
  6. package/dist/app.d.ts +22 -0
  7. package/dist/app.d.ts.map +1 -0
  8. package/dist/app.js +128 -0
  9. package/dist/app.js.map +1 -0
  10. package/dist/c2pa.wasm +0 -0
  11. package/dist/cli/commands/api.d.ts +50 -0
  12. package/dist/cli/commands/api.d.ts.map +1 -0
  13. package/dist/cli/commands/api.js +737 -0
  14. package/dist/cli/commands/api.js.map +1 -0
  15. package/dist/cli/commands/create-collection.d.ts +40 -0
  16. package/dist/cli/commands/create-collection.d.ts.map +1 -0
  17. package/dist/cli/commands/create-collection.js +318 -0
  18. package/dist/cli/commands/create-collection.js.map +1 -0
  19. package/dist/cli/commands/create-deed.d.ts +31 -0
  20. package/dist/cli/commands/create-deed.d.ts.map +1 -0
  21. package/dist/cli/commands/create-deed.js +208 -0
  22. package/dist/cli/commands/create-deed.js.map +1 -0
  23. package/dist/cli/commands/delegation.d.ts +26 -0
  24. package/dist/cli/commands/delegation.d.ts.map +1 -0
  25. package/dist/cli/commands/delegation.js +162 -0
  26. package/dist/cli/commands/delegation.js.map +1 -0
  27. package/dist/cli/commands/derive.d.ts +22 -0
  28. package/dist/cli/commands/derive.d.ts.map +1 -0
  29. package/dist/cli/commands/derive.js +53 -0
  30. package/dist/cli/commands/derive.js.map +1 -0
  31. package/dist/cli/commands/engine.d.ts +25 -0
  32. package/dist/cli/commands/engine.d.ts.map +1 -0
  33. package/dist/cli/commands/engine.js +107 -0
  34. package/dist/cli/commands/engine.js.map +1 -0
  35. package/dist/cli/commands/erase.d.ts +17 -0
  36. package/dist/cli/commands/erase.d.ts.map +1 -0
  37. package/dist/cli/commands/erase.js +117 -0
  38. package/dist/cli/commands/erase.js.map +1 -0
  39. package/dist/cli/commands/facts-run.d.ts +30 -0
  40. package/dist/cli/commands/facts-run.d.ts.map +1 -0
  41. package/dist/cli/commands/facts-run.js +409 -0
  42. package/dist/cli/commands/facts-run.js.map +1 -0
  43. package/dist/cli/commands/facts-scaffold.d.ts +22 -0
  44. package/dist/cli/commands/facts-scaffold.d.ts.map +1 -0
  45. package/dist/cli/commands/facts-scaffold.js +208 -0
  46. package/dist/cli/commands/facts-scaffold.js.map +1 -0
  47. package/dist/cli/commands/init.d.ts +18 -0
  48. package/dist/cli/commands/init.d.ts.map +1 -0
  49. package/dist/cli/commands/init.js +34 -0
  50. package/dist/cli/commands/init.js.map +1 -0
  51. package/dist/cli/commands/login.d.ts +9 -0
  52. package/dist/cli/commands/login.d.ts.map +1 -0
  53. package/dist/cli/commands/login.js +16 -0
  54. package/dist/cli/commands/login.js.map +1 -0
  55. package/dist/cli/commands/logout.d.ts +10 -0
  56. package/dist/cli/commands/logout.d.ts.map +1 -0
  57. package/dist/cli/commands/logout.js +28 -0
  58. package/dist/cli/commands/logout.js.map +1 -0
  59. package/dist/cli/commands/manifest.d.ts +12 -0
  60. package/dist/cli/commands/manifest.d.ts.map +1 -0
  61. package/dist/cli/commands/manifest.js +48 -0
  62. package/dist/cli/commands/manifest.js.map +1 -0
  63. package/dist/cli/commands/oracle-init.d.ts +48 -0
  64. package/dist/cli/commands/oracle-init.d.ts.map +1 -0
  65. package/dist/cli/commands/oracle-init.js +1122 -0
  66. package/dist/cli/commands/oracle-init.js.map +1 -0
  67. package/dist/cli/commands/org.d.ts +28 -0
  68. package/dist/cli/commands/org.d.ts.map +1 -0
  69. package/dist/cli/commands/org.js +309 -0
  70. package/dist/cli/commands/org.js.map +1 -0
  71. package/dist/cli/commands/protocol-review.d.ts +20 -0
  72. package/dist/cli/commands/protocol-review.d.ts.map +1 -0
  73. package/dist/cli/commands/protocol-review.js +162 -0
  74. package/dist/cli/commands/protocol-review.js.map +1 -0
  75. package/dist/cli/commands/publish-protocol.d.ts +43 -0
  76. package/dist/cli/commands/publish-protocol.d.ts.map +1 -0
  77. package/dist/cli/commands/publish-protocol.js +345 -0
  78. package/dist/cli/commands/publish-protocol.js.map +1 -0
  79. package/dist/cli/commands/register.d.ts +16 -0
  80. package/dist/cli/commands/register.d.ts.map +1 -0
  81. package/dist/cli/commands/register.js +54 -0
  82. package/dist/cli/commands/register.js.map +1 -0
  83. package/dist/cli/commands/relink.d.ts +11 -0
  84. package/dist/cli/commands/relink.d.ts.map +1 -0
  85. package/dist/cli/commands/relink.js +36 -0
  86. package/dist/cli/commands/relink.js.map +1 -0
  87. package/dist/cli/commands/rubric-fetch-form.d.ts +16 -0
  88. package/dist/cli/commands/rubric-fetch-form.d.ts.map +1 -0
  89. package/dist/cli/commands/rubric-fetch-form.js +83 -0
  90. package/dist/cli/commands/rubric-fetch-form.js.map +1 -0
  91. package/dist/cli/commands/rubric-validate.d.ts +72 -0
  92. package/dist/cli/commands/rubric-validate.d.ts.map +1 -0
  93. package/dist/cli/commands/rubric-validate.js +163 -0
  94. package/dist/cli/commands/rubric-validate.js.map +1 -0
  95. package/dist/cli/commands/scan.d.ts +13 -0
  96. package/dist/cli/commands/scan.d.ts.map +1 -0
  97. package/dist/cli/commands/scan.js +39 -0
  98. package/dist/cli/commands/scan.js.map +1 -0
  99. package/dist/cli/commands/skills.d.ts +11 -0
  100. package/dist/cli/commands/skills.d.ts.map +1 -0
  101. package/dist/cli/commands/skills.js +19 -0
  102. package/dist/cli/commands/skills.js.map +1 -0
  103. package/dist/cli/commands/submit-claim.d.ts +25 -0
  104. package/dist/cli/commands/submit-claim.d.ts.map +1 -0
  105. package/dist/cli/commands/submit-claim.js +155 -0
  106. package/dist/cli/commands/submit-claim.js.map +1 -0
  107. package/dist/cli/index.d.ts +15 -0
  108. package/dist/cli/index.d.ts.map +1 -0
  109. package/dist/cli/index.js +206 -0
  110. package/dist/cli/index.js.map +1 -0
  111. package/dist/cli/lib/agent-card-schema.d.ts +8 -0
  112. package/dist/cli/lib/agent-card-schema.d.ts.map +1 -0
  113. package/dist/cli/lib/agent-card-schema.js +169 -0
  114. package/dist/cli/lib/agent-card-schema.js.map +1 -0
  115. package/dist/cli/lib/ai-rest.d.ts +12 -0
  116. package/dist/cli/lib/ai-rest.d.ts.map +1 -0
  117. package/dist/cli/lib/ai-rest.js +36 -0
  118. package/dist/cli/lib/ai-rest.js.map +1 -0
  119. package/dist/cli/lib/args.d.ts +33 -0
  120. package/dist/cli/lib/args.d.ts.map +1 -0
  121. package/dist/cli/lib/args.js +24 -0
  122. package/dist/cli/lib/args.js.map +1 -0
  123. package/dist/cli/lib/authhub.d.ts +7 -0
  124. package/dist/cli/lib/authhub.d.ts.map +1 -0
  125. package/dist/cli/lib/authhub.js +210 -0
  126. package/dist/cli/lib/authhub.js.map +1 -0
  127. package/dist/cli/lib/chain.d.ts +264 -0
  128. package/dist/cli/lib/chain.d.ts.map +1 -0
  129. package/dist/cli/lib/chain.js +584 -0
  130. package/dist/cli/lib/chain.js.map +1 -0
  131. package/dist/cli/lib/devvars.d.ts +59 -0
  132. package/dist/cli/lib/devvars.d.ts.map +1 -0
  133. package/dist/cli/lib/devvars.js +206 -0
  134. package/dist/cli/lib/devvars.js.map +1 -0
  135. package/dist/cli/lib/engine.d.ts +54 -0
  136. package/dist/cli/lib/engine.d.ts.map +1 -0
  137. package/dist/cli/lib/engine.js +112 -0
  138. package/dist/cli/lib/engine.js.map +1 -0
  139. package/dist/cli/lib/identity-cards.d.ts +188 -0
  140. package/dist/cli/lib/identity-cards.d.ts.map +1 -0
  141. package/dist/cli/lib/identity-cards.js +261 -0
  142. package/dist/cli/lib/identity-cards.js.map +1 -0
  143. package/dist/cli/lib/matrix-account.d.ts +79 -0
  144. package/dist/cli/lib/matrix-account.d.ts.map +1 -0
  145. package/dist/cli/lib/matrix-account.js +228 -0
  146. package/dist/cli/lib/matrix-account.js.map +1 -0
  147. package/dist/cli/lib/oracle-account.d.ts +108 -0
  148. package/dist/cli/lib/oracle-account.d.ts.map +1 -0
  149. package/dist/cli/lib/oracle-account.js +207 -0
  150. package/dist/cli/lib/oracle-account.js.map +1 -0
  151. package/dist/cli/lib/project.d.ts +22 -0
  152. package/dist/cli/lib/project.d.ts.map +1 -0
  153. package/dist/cli/lib/project.js +62 -0
  154. package/dist/cli/lib/project.js.map +1 -0
  155. package/dist/cli/lib/session.d.ts +109 -0
  156. package/dist/cli/lib/session.d.ts.map +1 -0
  157. package/dist/cli/lib/session.js +354 -0
  158. package/dist/cli/lib/session.js.map +1 -0
  159. package/dist/cli/lib/workorder.d.ts +57 -0
  160. package/dist/cli/lib/workorder.d.ts.map +1 -0
  161. package/dist/cli/lib/workorder.js +101 -0
  162. package/dist/cli/lib/workorder.js.map +1 -0
  163. package/dist/config.d.ts +221 -0
  164. package/dist/config.d.ts.map +1 -0
  165. package/dist/config.js +431 -0
  166. package/dist/config.js.map +1 -0
  167. package/dist/context.d.ts +88 -0
  168. package/dist/context.d.ts.map +1 -0
  169. package/dist/context.js +9 -0
  170. package/dist/context.js.map +1 -0
  171. package/dist/contracts/api.d.ts +3367 -0
  172. package/dist/contracts/api.d.ts.map +1 -0
  173. package/dist/contracts/api.js +1303 -0
  174. package/dist/contracts/api.js.map +1 -0
  175. package/dist/contracts/capabilities.d.ts +126 -0
  176. package/dist/contracts/capabilities.d.ts.map +1 -0
  177. package/dist/contracts/capabilities.js +164 -0
  178. package/dist/contracts/capabilities.js.map +1 -0
  179. package/dist/contracts/claim-source.d.ts +98 -0
  180. package/dist/contracts/claim-source.d.ts.map +1 -0
  181. package/dist/contracts/claim-source.js +17 -0
  182. package/dist/contracts/claim-source.js.map +1 -0
  183. package/dist/contracts/errors.d.ts +150 -0
  184. package/dist/contracts/errors.d.ts.map +1 -0
  185. package/dist/contracts/errors.js +121 -0
  186. package/dist/contracts/errors.js.map +1 -0
  187. package/dist/contracts/index.d.ts +15 -0
  188. package/dist/contracts/index.d.ts.map +1 -0
  189. package/dist/contracts/index.js +11 -0
  190. package/dist/contracts/index.js.map +1 -0
  191. package/dist/contracts/payment-gate.d.ts +129 -0
  192. package/dist/contracts/payment-gate.d.ts.map +1 -0
  193. package/dist/contracts/payment-gate.js +24 -0
  194. package/dist/contracts/payment-gate.js.map +1 -0
  195. package/dist/contracts/start-api-claim.d.ts +90 -0
  196. package/dist/contracts/start-api-claim.d.ts.map +1 -0
  197. package/dist/contracts/start-api-claim.js +22 -0
  198. package/dist/contracts/start-api-claim.js.map +1 -0
  199. package/dist/contracts/webhooks.d.ts +1487 -0
  200. package/dist/contracts/webhooks.d.ts.map +1 -0
  201. package/dist/contracts/webhooks.js +71 -0
  202. package/dist/contracts/webhooks.js.map +1 -0
  203. package/dist/contracts/work-order.d.ts +29 -0
  204. package/dist/contracts/work-order.d.ts.map +1 -0
  205. package/dist/contracts/work-order.js +12 -0
  206. package/dist/contracts/work-order.js.map +1 -0
  207. package/dist/cron/ai-cost.d.ts +29 -0
  208. package/dist/cron/ai-cost.d.ts.map +1 -0
  209. package/dist/cron/ai-cost.js +80 -0
  210. package/dist/cron/ai-cost.js.map +1 -0
  211. package/dist/cron/api-lane.d.ts +39 -0
  212. package/dist/cron/api-lane.d.ts.map +1 -0
  213. package/dist/cron/api-lane.js +203 -0
  214. package/dist/cron/api-lane.js.map +1 -0
  215. package/dist/cron/backlog.d.ts +50 -0
  216. package/dist/cron/backlog.d.ts.map +1 -0
  217. package/dist/cron/backlog.js +115 -0
  218. package/dist/cron/backlog.js.map +1 -0
  219. package/dist/cron/billing.d.ts +11 -0
  220. package/dist/cron/billing.d.ts.map +1 -0
  221. package/dist/cron/billing.js +69 -0
  222. package/dist/cron/billing.js.map +1 -0
  223. package/dist/cron/collection.d.ts +50 -0
  224. package/dist/cron/collection.d.ts.map +1 -0
  225. package/dist/cron/collection.js +118 -0
  226. package/dist/cron/collection.js.map +1 -0
  227. package/dist/cron/funding.d.ts +16 -0
  228. package/dist/cron/funding.d.ts.map +1 -0
  229. package/dist/cron/funding.js +262 -0
  230. package/dist/cron/funding.js.map +1 -0
  231. package/dist/cron/payer-billing.d.ts +38 -0
  232. package/dist/cron/payer-billing.d.ts.map +1 -0
  233. package/dist/cron/payer-billing.js +119 -0
  234. package/dist/cron/payer-billing.js.map +1 -0
  235. package/dist/cron/scan.d.ts +43 -0
  236. package/dist/cron/scan.d.ts.map +1 -0
  237. package/dist/cron/scan.js +250 -0
  238. package/dist/cron/scan.js.map +1 -0
  239. package/dist/db/client.d.ts +14 -0
  240. package/dist/db/client.d.ts.map +1 -0
  241. package/dist/db/client.js +14 -0
  242. package/dist/db/client.js.map +1 -0
  243. package/dist/db/index.d.ts +7 -0
  244. package/dist/db/index.d.ts.map +1 -0
  245. package/dist/db/index.js +7 -0
  246. package/dist/db/index.js.map +1 -0
  247. package/dist/db/schema.d.ts +6738 -0
  248. package/dist/db/schema.d.ts.map +1 -0
  249. package/dist/db/schema.js +1433 -0
  250. package/dist/db/schema.js.map +1 -0
  251. package/dist/define-oracle.d.ts +32 -0
  252. package/dist/define-oracle.d.ts.map +1 -0
  253. package/dist/define-oracle.js +80 -0
  254. package/dist/define-oracle.js.map +1 -0
  255. package/dist/dev-oracle.d.ts +9 -0
  256. package/dist/dev-oracle.d.ts.map +1 -0
  257. package/dist/dev-oracle.js +19 -0
  258. package/dist/dev-oracle.js.map +1 -0
  259. package/dist/dev-worker.d.ts +10 -0
  260. package/dist/dev-worker.d.ts.map +1 -0
  261. package/dist/dev-worker.js +12 -0
  262. package/dist/dev-worker.js.map +1 -0
  263. package/dist/env.d.ts +146 -0
  264. package/dist/env.d.ts.map +1 -0
  265. package/dist/env.js +10 -0
  266. package/dist/env.js.map +1 -0
  267. package/dist/facts/exif.d.ts +43 -0
  268. package/dist/facts/exif.d.ts.map +1 -0
  269. package/dist/facts/exif.js +224 -0
  270. package/dist/facts/exif.js.map +1 -0
  271. package/dist/facts/fact.d.ts +62 -0
  272. package/dist/facts/fact.d.ts.map +1 -0
  273. package/dist/facts/fact.js +105 -0
  274. package/dist/facts/fact.js.map +1 -0
  275. package/dist/facts/geo.d.ts +55 -0
  276. package/dist/facts/geo.d.ts.map +1 -0
  277. package/dist/facts/geo.js +267 -0
  278. package/dist/facts/geo.js.map +1 -0
  279. package/dist/facts/index.d.ts +31 -0
  280. package/dist/facts/index.d.ts.map +1 -0
  281. package/dist/facts/index.js +27 -0
  282. package/dist/facts/index.js.map +1 -0
  283. package/dist/facts/linked-doc.d.ts +60 -0
  284. package/dist/facts/linked-doc.d.ts.map +1 -0
  285. package/dist/facts/linked-doc.js +101 -0
  286. package/dist/facts/linked-doc.js.map +1 -0
  287. package/dist/facts/types.d.ts +278 -0
  288. package/dist/facts/types.d.ts.map +1 -0
  289. package/dist/facts/types.js +19 -0
  290. package/dist/facts/types.js.map +1 -0
  291. package/dist/index.d.ts +25 -0
  292. package/dist/index.d.ts.map +1 -0
  293. package/dist/index.js +19 -0
  294. package/dist/index.js.map +1 -0
  295. package/dist/lib/api-lane/accept.d.ts +29 -0
  296. package/dist/lib/api-lane/accept.d.ts.map +1 -0
  297. package/dist/lib/api-lane/accept.js +218 -0
  298. package/dist/lib/api-lane/accept.js.map +1 -0
  299. package/dist/lib/api-lane/claim-list.d.ts +44 -0
  300. package/dist/lib/api-lane/claim-list.d.ts.map +1 -0
  301. package/dist/lib/api-lane/claim-list.js +92 -0
  302. package/dist/lib/api-lane/claim-list.js.map +1 -0
  303. package/dist/lib/api-lane/company.d.ts +56 -0
  304. package/dist/lib/api-lane/company.d.ts.map +1 -0
  305. package/dist/lib/api-lane/company.js +103 -0
  306. package/dist/lib/api-lane/company.js.map +1 -0
  307. package/dist/lib/api-lane/events.d.ts +21 -0
  308. package/dist/lib/api-lane/events.d.ts.map +1 -0
  309. package/dist/lib/api-lane/events.js +111 -0
  310. package/dist/lib/api-lane/events.js.map +1 -0
  311. package/dist/lib/api-lane/ids.d.ts +39 -0
  312. package/dist/lib/api-lane/ids.d.ts.map +1 -0
  313. package/dist/lib/api-lane/ids.js +78 -0
  314. package/dist/lib/api-lane/ids.js.map +1 -0
  315. package/dist/lib/api-lane/index.d.ts +16 -0
  316. package/dist/lib/api-lane/index.d.ts.map +1 -0
  317. package/dist/lib/api-lane/index.js +16 -0
  318. package/dist/lib/api-lane/index.js.map +1 -0
  319. package/dist/lib/api-lane/linked.d.ts +264 -0
  320. package/dist/lib/api-lane/linked.d.ts.map +1 -0
  321. package/dist/lib/api-lane/linked.js +272 -0
  322. package/dist/lib/api-lane/linked.js.map +1 -0
  323. package/dist/lib/api-lane/media-type.d.ts +15 -0
  324. package/dist/lib/api-lane/media-type.d.ts.map +1 -0
  325. package/dist/lib/api-lane/media-type.js +73 -0
  326. package/dist/lib/api-lane/media-type.js.map +1 -0
  327. package/dist/lib/api-lane/member-emails.d.ts +83 -0
  328. package/dist/lib/api-lane/member-emails.d.ts.map +1 -0
  329. package/dist/lib/api-lane/member-emails.js +213 -0
  330. package/dist/lib/api-lane/member-emails.js.map +1 -0
  331. package/dist/lib/api-lane/members.d.ts +42 -0
  332. package/dist/lib/api-lane/members.d.ts.map +1 -0
  333. package/dist/lib/api-lane/members.js +75 -0
  334. package/dist/lib/api-lane/members.js.map +1 -0
  335. package/dist/lib/api-lane/notify.d.ts +47 -0
  336. package/dist/lib/api-lane/notify.d.ts.map +1 -0
  337. package/dist/lib/api-lane/notify.js +240 -0
  338. package/dist/lib/api-lane/notify.js.map +1 -0
  339. package/dist/lib/api-lane/pause.d.ts +41 -0
  340. package/dist/lib/api-lane/pause.d.ts.map +1 -0
  341. package/dist/lib/api-lane/pause.js +155 -0
  342. package/dist/lib/api-lane/pause.js.map +1 -0
  343. package/dist/lib/api-lane/record.d.ts +76 -0
  344. package/dist/lib/api-lane/record.d.ts.map +1 -0
  345. package/dist/lib/api-lane/record.js +337 -0
  346. package/dist/lib/api-lane/record.js.map +1 -0
  347. package/dist/lib/api-lane/retention.d.ts +43 -0
  348. package/dist/lib/api-lane/retention.d.ts.map +1 -0
  349. package/dist/lib/api-lane/retention.js +176 -0
  350. package/dist/lib/api-lane/retention.js.map +1 -0
  351. package/dist/lib/api-lane/review.d.ts +76 -0
  352. package/dist/lib/api-lane/review.d.ts.map +1 -0
  353. package/dist/lib/api-lane/review.js +355 -0
  354. package/dist/lib/api-lane/review.js.map +1 -0
  355. package/dist/lib/api-lane/reviewers.d.ts +109 -0
  356. package/dist/lib/api-lane/reviewers.d.ts.map +1 -0
  357. package/dist/lib/api-lane/reviewers.js +755 -0
  358. package/dist/lib/api-lane/reviewers.js.map +1 -0
  359. package/dist/lib/api-lane/source-delete.d.ts +16 -0
  360. package/dist/lib/api-lane/source-delete.d.ts.map +1 -0
  361. package/dist/lib/api-lane/source-delete.js +50 -0
  362. package/dist/lib/api-lane/source-delete.js.map +1 -0
  363. package/dist/lib/api-lane/source.d.ts +19 -0
  364. package/dist/lib/api-lane/source.d.ts.map +1 -0
  365. package/dist/lib/api-lane/source.js +226 -0
  366. package/dist/lib/api-lane/source.js.map +1 -0
  367. package/dist/lib/api-lane/submitter.d.ts +22 -0
  368. package/dist/lib/api-lane/submitter.d.ts.map +1 -0
  369. package/dist/lib/api-lane/submitter.js +34 -0
  370. package/dist/lib/api-lane/submitter.js.map +1 -0
  371. package/dist/lib/api-lane/timeline.d.ts +20 -0
  372. package/dist/lib/api-lane/timeline.d.ts.map +1 -0
  373. package/dist/lib/api-lane/timeline.js +23 -0
  374. package/dist/lib/api-lane/timeline.js.map +1 -0
  375. package/dist/lib/api-lane/webhook-crypto.d.ts +44 -0
  376. package/dist/lib/api-lane/webhook-crypto.d.ts.map +1 -0
  377. package/dist/lib/api-lane/webhook-crypto.js +103 -0
  378. package/dist/lib/api-lane/webhook-crypto.js.map +1 -0
  379. package/dist/lib/api-lane/webhooks.d.ts +117 -0
  380. package/dist/lib/api-lane/webhooks.d.ts.map +1 -0
  381. package/dist/lib/api-lane/webhooks.js +503 -0
  382. package/dist/lib/api-lane/webhooks.js.map +1 -0
  383. package/dist/lib/archive.d.ts +64 -0
  384. package/dist/lib/archive.d.ts.map +1 -0
  385. package/dist/lib/archive.js +305 -0
  386. package/dist/lib/archive.js.map +1 -0
  387. package/dist/lib/bech32.d.ts +8 -0
  388. package/dist/lib/bech32.d.ts.map +1 -0
  389. package/dist/lib/bech32.js +39 -0
  390. package/dist/lib/bech32.js.map +1 -0
  391. package/dist/lib/claim-erase.d.ts +22 -0
  392. package/dist/lib/claim-erase.d.ts.map +1 -0
  393. package/dist/lib/claim-erase.js +44 -0
  394. package/dist/lib/claim-erase.js.map +1 -0
  395. package/dist/lib/cursor.d.ts +11 -0
  396. package/dist/lib/cursor.d.ts.map +1 -0
  397. package/dist/lib/cursor.js +20 -0
  398. package/dist/lib/cursor.js.map +1 -0
  399. package/dist/lib/email/send.d.ts +43 -0
  400. package/dist/lib/email/send.d.ts.map +1 -0
  401. package/dist/lib/email/send.js +71 -0
  402. package/dist/lib/email/send.js.map +1 -0
  403. package/dist/lib/email/template.d.ts +217 -0
  404. package/dist/lib/email/template.d.ts.map +1 -0
  405. package/dist/lib/email/template.js +713 -0
  406. package/dist/lib/email/template.js.map +1 -0
  407. package/dist/lib/engine/adr36.d.ts +56 -0
  408. package/dist/lib/engine/adr36.d.ts.map +1 -0
  409. package/dist/lib/engine/adr36.js +76 -0
  410. package/dist/lib/engine/adr36.js.map +1 -0
  411. package/dist/lib/engine/client.d.ts +162 -0
  412. package/dist/lib/engine/client.d.ts.map +1 -0
  413. package/dist/lib/engine/client.js +473 -0
  414. package/dist/lib/engine/client.js.map +1 -0
  415. package/dist/lib/engine/types.d.ts +1356 -0
  416. package/dist/lib/engine/types.d.ts.map +1 -0
  417. package/dist/lib/engine/types.js +562 -0
  418. package/dist/lib/engine/types.js.map +1 -0
  419. package/dist/lib/errors.d.ts +73 -0
  420. package/dist/lib/errors.d.ts.map +1 -0
  421. package/dist/lib/errors.js +96 -0
  422. package/dist/lib/errors.js.map +1 -0
  423. package/dist/lib/facts/builder.d.ts +88 -0
  424. package/dist/lib/facts/builder.d.ts.map +1 -0
  425. package/dist/lib/facts/builder.js +239 -0
  426. package/dist/lib/facts/builder.js.map +1 -0
  427. package/dist/lib/facts/ctx.d.ts +34 -0
  428. package/dist/lib/facts/ctx.d.ts.map +1 -0
  429. package/dist/lib/facts/ctx.js +51 -0
  430. package/dist/lib/facts/ctx.js.map +1 -0
  431. package/dist/lib/facts/expected.d.ts +23 -0
  432. package/dist/lib/facts/expected.d.ts.map +1 -0
  433. package/dist/lib/facts/expected.js +16 -0
  434. package/dist/lib/facts/expected.js.map +1 -0
  435. package/dist/lib/facts/fact-cache.d.ts +469 -0
  436. package/dist/lib/facts/fact-cache.d.ts.map +1 -0
  437. package/dist/lib/facts/fact-cache.js +52 -0
  438. package/dist/lib/facts/fact-cache.js.map +1 -0
  439. package/dist/lib/facts/factset.d.ts +608 -0
  440. package/dist/lib/facts/factset.d.ts.map +1 -0
  441. package/dist/lib/facts/factset.js +226 -0
  442. package/dist/lib/facts/factset.js.map +1 -0
  443. package/dist/lib/facts/producer.d.ts +190 -0
  444. package/dist/lib/facts/producer.d.ts.map +1 -0
  445. package/dist/lib/facts/producer.js +15 -0
  446. package/dist/lib/facts/producer.js.map +1 -0
  447. package/dist/lib/facts/runner.d.ts +111 -0
  448. package/dist/lib/facts/runner.d.ts.map +1 -0
  449. package/dist/lib/facts/runner.js +438 -0
  450. package/dist/lib/facts/runner.js.map +1 -0
  451. package/dist/lib/facts/stock/ai-check.d.ts +100 -0
  452. package/dist/lib/facts/stock/ai-check.d.ts.map +1 -0
  453. package/dist/lib/facts/stock/ai-check.js +526 -0
  454. package/dist/lib/facts/stock/ai-check.js.map +1 -0
  455. package/dist/lib/facts/stock/ai-inputs.d.ts +104 -0
  456. package/dist/lib/facts/stock/ai-inputs.d.ts.map +1 -0
  457. package/dist/lib/facts/stock/ai-inputs.js +332 -0
  458. package/dist/lib/facts/stock/ai-inputs.js.map +1 -0
  459. package/dist/lib/facts/stock/ai-provider.d.ts +105 -0
  460. package/dist/lib/facts/stock/ai-provider.d.ts.map +1 -0
  461. package/dist/lib/facts/stock/ai-provider.js +250 -0
  462. package/dist/lib/facts/stock/ai-provider.js.map +1 -0
  463. package/dist/lib/facts/stock/ai-unique.d.ts +85 -0
  464. package/dist/lib/facts/stock/ai-unique.d.ts.map +1 -0
  465. package/dist/lib/facts/stock/ai-unique.js +208 -0
  466. package/dist/lib/facts/stock/ai-unique.js.map +1 -0
  467. package/dist/lib/facts/stock/archive.d.ts +63 -0
  468. package/dist/lib/facts/stock/archive.d.ts.map +1 -0
  469. package/dist/lib/facts/stock/archive.js +349 -0
  470. package/dist/lib/facts/stock/archive.js.map +1 -0
  471. package/dist/lib/facts/stock/c2pa-trust-list.d.ts +16 -0
  472. package/dist/lib/facts/stock/c2pa-trust-list.d.ts.map +1 -0
  473. package/dist/lib/facts/stock/c2pa-trust-list.js +637 -0
  474. package/dist/lib/facts/stock/c2pa-trust-list.js.map +1 -0
  475. package/dist/lib/facts/stock/c2pa.d.ts +56 -0
  476. package/dist/lib/facts/stock/c2pa.d.ts.map +1 -0
  477. package/dist/lib/facts/stock/c2pa.js +234 -0
  478. package/dist/lib/facts/stock/c2pa.js.map +1 -0
  479. package/dist/lib/facts/stock/call.d.ts +91 -0
  480. package/dist/lib/facts/stock/call.d.ts.map +1 -0
  481. package/dist/lib/facts/stock/call.js +281 -0
  482. package/dist/lib/facts/stock/call.js.map +1 -0
  483. package/dist/lib/facts/stock/capability.d.ts +39 -0
  484. package/dist/lib/facts/stock/capability.d.ts.map +1 -0
  485. package/dist/lib/facts/stock/capability.js +59 -0
  486. package/dist/lib/facts/stock/capability.js.map +1 -0
  487. package/dist/lib/facts/stock/ext-source.d.ts +51 -0
  488. package/dist/lib/facts/stock/ext-source.d.ts.map +1 -0
  489. package/dist/lib/facts/stock/ext-source.js +201 -0
  490. package/dist/lib/facts/stock/ext-source.js.map +1 -0
  491. package/dist/lib/facts/stock/frequency-fact.d.ts +59 -0
  492. package/dist/lib/facts/stock/frequency-fact.d.ts.map +1 -0
  493. package/dist/lib/facts/stock/frequency-fact.js +86 -0
  494. package/dist/lib/facts/stock/frequency-fact.js.map +1 -0
  495. package/dist/lib/facts/stock/frequency.d.ts +32 -0
  496. package/dist/lib/facts/stock/frequency.d.ts.map +1 -0
  497. package/dist/lib/facts/stock/frequency.js +48 -0
  498. package/dist/lib/facts/stock/frequency.js.map +1 -0
  499. package/dist/lib/facts/stock/index.d.ts +27 -0
  500. package/dist/lib/facts/stock/index.d.ts.map +1 -0
  501. package/dist/lib/facts/stock/index.js +28 -0
  502. package/dist/lib/facts/stock/index.js.map +1 -0
  503. package/dist/lib/facts/stock/normalize.d.ts +45 -0
  504. package/dist/lib/facts/stock/normalize.d.ts.map +1 -0
  505. package/dist/lib/facts/stock/normalize.js +135 -0
  506. package/dist/lib/facts/stock/normalize.js.map +1 -0
  507. package/dist/lib/facts/stock/phash.d.ts +55 -0
  508. package/dist/lib/facts/stock/phash.d.ts.map +1 -0
  509. package/dist/lib/facts/stock/phash.js +256 -0
  510. package/dist/lib/facts/stock/phash.js.map +1 -0
  511. package/dist/lib/facts/stock/rule-defaults.d.ts +72 -0
  512. package/dist/lib/facts/stock/rule-defaults.d.ts.map +1 -0
  513. package/dist/lib/facts/stock/rule-defaults.js +55 -0
  514. package/dist/lib/facts/stock/rule-defaults.js.map +1 -0
  515. package/dist/lib/facts/stock/send.d.ts +52 -0
  516. package/dist/lib/facts/stock/send.d.ts.map +1 -0
  517. package/dist/lib/facts/stock/send.js +148 -0
  518. package/dist/lib/facts/stock/send.js.map +1 -0
  519. package/dist/lib/facts/stock/unique-score.d.ts +138 -0
  520. package/dist/lib/facts/stock/unique-score.d.ts.map +1 -0
  521. package/dist/lib/facts/stock/unique-score.js +257 -0
  522. package/dist/lib/facts/stock/unique-score.js.map +1 -0
  523. package/dist/lib/facts/stock/unique-store.d.ts +420 -0
  524. package/dist/lib/facts/stock/unique-store.d.ts.map +1 -0
  525. package/dist/lib/facts/stock/unique-store.js +328 -0
  526. package/dist/lib/facts/stock/unique-store.js.map +1 -0
  527. package/dist/lib/facts/stock/unique.d.ts +35 -0
  528. package/dist/lib/facts/stock/unique.d.ts.map +1 -0
  529. package/dist/lib/facts/stock/unique.js +327 -0
  530. package/dist/lib/facts/stock/unique.js.map +1 -0
  531. package/dist/lib/facts/tools.d.ts +57 -0
  532. package/dist/lib/facts/tools.d.ts.map +1 -0
  533. package/dist/lib/facts/tools.js +325 -0
  534. package/dist/lib/facts/tools.js.map +1 -0
  535. package/dist/lib/facts/validate.d.ts +33 -0
  536. package/dist/lib/facts/validate.d.ts.map +1 -0
  537. package/dist/lib/facts/validate.js +137 -0
  538. package/dist/lib/facts/validate.js.map +1 -0
  539. package/dist/lib/hash.d.ts +44 -0
  540. package/dist/lib/hash.d.ts.map +1 -0
  541. package/dist/lib/hash.js +80 -0
  542. package/dist/lib/hash.js.map +1 -0
  543. package/dist/lib/http/client.d.ts +113 -0
  544. package/dist/lib/http/client.d.ts.map +1 -0
  545. package/dist/lib/http/client.js +330 -0
  546. package/dist/lib/http/client.js.map +1 -0
  547. package/dist/lib/ids.d.ts +17 -0
  548. package/dist/lib/ids.d.ts.map +1 -0
  549. package/dist/lib/ids.js +26 -0
  550. package/dist/lib/ids.js.map +1 -0
  551. package/dist/lib/ixo/attachments.d.ts +116 -0
  552. package/dist/lib/ixo/attachments.d.ts.map +1 -0
  553. package/dist/lib/ixo/attachments.js +290 -0
  554. package/dist/lib/ixo/attachments.js.map +1 -0
  555. package/dist/lib/ixo/authz.d.ts +40 -0
  556. package/dist/lib/ixo/authz.d.ts.map +1 -0
  557. package/dist/lib/ixo/authz.js +113 -0
  558. package/dist/lib/ixo/authz.js.map +1 -0
  559. package/dist/lib/ixo/blocksync/index.d.ts +90 -0
  560. package/dist/lib/ixo/blocksync/index.d.ts.map +1 -0
  561. package/dist/lib/ixo/blocksync/index.js +251 -0
  562. package/dist/lib/ixo/blocksync/index.js.map +1 -0
  563. package/dist/lib/ixo/blocksync/queries.d.ts +15 -0
  564. package/dist/lib/ixo/blocksync/queries.d.ts.map +1 -0
  565. package/dist/lib/ixo/blocksync/queries.js +144 -0
  566. package/dist/lib/ixo/blocksync/queries.js.map +1 -0
  567. package/dist/lib/ixo/blocksync/types.d.ts +184 -0
  568. package/dist/lib/ixo/blocksync/types.d.ts.map +1 -0
  569. package/dist/lib/ixo/blocksync/types.js +108 -0
  570. package/dist/lib/ixo/blocksync/types.js.map +1 -0
  571. package/dist/lib/ixo/cellnode.d.ts +35 -0
  572. package/dist/lib/ixo/cellnode.d.ts.map +1 -0
  573. package/dist/lib/ixo/cellnode.js +43 -0
  574. package/dist/lib/ixo/cellnode.js.map +1 -0
  575. package/dist/lib/ixo/chain-write.d.ts +130 -0
  576. package/dist/lib/ixo/chain-write.d.ts.map +1 -0
  577. package/dist/lib/ixo/chain-write.js +460 -0
  578. package/dist/lib/ixo/chain-write.js.map +1 -0
  579. package/dist/lib/ixo/chain.d.ts +1046 -0
  580. package/dist/lib/ixo/chain.d.ts.map +1 -0
  581. package/dist/lib/ixo/chain.js +279 -0
  582. package/dist/lib/ixo/chain.js.map +1 -0
  583. package/dist/lib/ixo/claim-bot.d.ts +49 -0
  584. package/dist/lib/ixo/claim-bot.d.ts.map +1 -0
  585. package/dist/lib/ixo/claim-bot.js +141 -0
  586. package/dist/lib/ixo/claim-bot.js.map +1 -0
  587. package/dist/lib/ixo/delegation-verify.d.ts +44 -0
  588. package/dist/lib/ixo/delegation-verify.d.ts.map +1 -0
  589. package/dist/lib/ixo/delegation-verify.js +101 -0
  590. package/dist/lib/ixo/delegation-verify.js.map +1 -0
  591. package/dist/lib/ixo/did.d.ts +13 -0
  592. package/dist/lib/ixo/did.d.ts.map +1 -0
  593. package/dist/lib/ixo/did.js +85 -0
  594. package/dist/lib/ixo/did.js.map +1 -0
  595. package/dist/lib/ixo/grant-chain.d.ts +55 -0
  596. package/dist/lib/ixo/grant-chain.d.ts.map +1 -0
  597. package/dist/lib/ixo/grant-chain.js +185 -0
  598. package/dist/lib/ixo/grant-chain.js.map +1 -0
  599. package/dist/lib/ixo/identity.d.ts +32 -0
  600. package/dist/lib/ixo/identity.d.ts.map +1 -0
  601. package/dist/lib/ixo/identity.js +104 -0
  602. package/dist/lib/ixo/identity.js.map +1 -0
  603. package/dist/lib/ixo/index.d.ts +118 -0
  604. package/dist/lib/ixo/index.d.ts.map +1 -0
  605. package/dist/lib/ixo/index.js +395 -0
  606. package/dist/lib/ixo/index.js.map +1 -0
  607. package/dist/lib/ixo/payment.d.ts +104 -0
  608. package/dist/lib/ixo/payment.d.ts.map +1 -0
  609. package/dist/lib/ixo/payment.js +136 -0
  610. package/dist/lib/ixo/payment.js.map +1 -0
  611. package/dist/lib/ixo/ucan-store.d.ts +30 -0
  612. package/dist/lib/ixo/ucan-store.d.ts.map +1 -0
  613. package/dist/lib/ixo/ucan-store.js +134 -0
  614. package/dist/lib/ixo/ucan-store.js.map +1 -0
  615. package/dist/lib/ixo/ucan.d.ts +96 -0
  616. package/dist/lib/ixo/ucan.d.ts.map +1 -0
  617. package/dist/lib/ixo/ucan.js +216 -0
  618. package/dist/lib/ixo/ucan.js.map +1 -0
  619. package/dist/lib/ixo/verified-read.d.ts +43 -0
  620. package/dist/lib/ixo/verified-read.d.ts.map +1 -0
  621. package/dist/lib/ixo/verified-read.js +73 -0
  622. package/dist/lib/ixo/verified-read.js.map +1 -0
  623. package/dist/lib/ixo/vfs.d.ts +27 -0
  624. package/dist/lib/ixo/vfs.d.ts.map +1 -0
  625. package/dist/lib/ixo/vfs.js +42 -0
  626. package/dist/lib/ixo/vfs.js.map +1 -0
  627. package/dist/lib/ixo/web-did.d.ts +7 -0
  628. package/dist/lib/ixo/web-did.d.ts.map +1 -0
  629. package/dist/lib/ixo/web-did.js +9 -0
  630. package/dist/lib/ixo/web-did.js.map +1 -0
  631. package/dist/lib/logger.d.ts +34 -0
  632. package/dist/lib/logger.d.ts.map +1 -0
  633. package/dist/lib/logger.js +126 -0
  634. package/dist/lib/logger.js.map +1 -0
  635. package/dist/lib/matrix/api.d.ts +57 -0
  636. package/dist/lib/matrix/api.d.ts.map +1 -0
  637. package/dist/lib/matrix/api.js +58 -0
  638. package/dist/lib/matrix/api.js.map +1 -0
  639. package/dist/lib/matrix/client.d.ts +41 -0
  640. package/dist/lib/matrix/client.d.ts.map +1 -0
  641. package/dist/lib/matrix/client.js +104 -0
  642. package/dist/lib/matrix/client.js.map +1 -0
  643. package/dist/lib/matrix/deliver.d.ts +224 -0
  644. package/dist/lib/matrix/deliver.d.ts.map +1 -0
  645. package/dist/lib/matrix/deliver.js +788 -0
  646. package/dist/lib/matrix/deliver.js.map +1 -0
  647. package/dist/lib/matrix/events.d.ts +114 -0
  648. package/dist/lib/matrix/events.d.ts.map +1 -0
  649. package/dist/lib/matrix/events.js +143 -0
  650. package/dist/lib/matrix/events.js.map +1 -0
  651. package/dist/lib/matrix/mxid.d.ts +24 -0
  652. package/dist/lib/matrix/mxid.d.ts.map +1 -0
  653. package/dist/lib/matrix/mxid.js +47 -0
  654. package/dist/lib/matrix/mxid.js.map +1 -0
  655. package/dist/lib/metrics.d.ts +105 -0
  656. package/dist/lib/metrics.d.ts.map +1 -0
  657. package/dist/lib/metrics.js +204 -0
  658. package/dist/lib/metrics.js.map +1 -0
  659. package/dist/lib/oauth/approvals.d.ts +160 -0
  660. package/dist/lib/oauth/approvals.d.ts.map +1 -0
  661. package/dist/lib/oauth/approvals.js +273 -0
  662. package/dist/lib/oauth/approvals.js.map +1 -0
  663. package/dist/lib/oauth/standing.d.ts +152 -0
  664. package/dist/lib/oauth/standing.d.ts.map +1 -0
  665. package/dist/lib/oauth/standing.js +299 -0
  666. package/dist/lib/oauth/standing.js.map +1 -0
  667. package/dist/lib/oauth/token.d.ts +60 -0
  668. package/dist/lib/oauth/token.d.ts.map +1 -0
  669. package/dist/lib/oauth/token.js +129 -0
  670. package/dist/lib/oauth/token.js.map +1 -0
  671. package/dist/lib/payments/extend.d.ts +42 -0
  672. package/dist/lib/payments/extend.d.ts.map +1 -0
  673. package/dist/lib/payments/extend.js +98 -0
  674. package/dist/lib/payments/extend.js.map +1 -0
  675. package/dist/lib/payments/facilitator.d.ts +220 -0
  676. package/dist/lib/payments/facilitator.d.ts.map +1 -0
  677. package/dist/lib/payments/facilitator.js +451 -0
  678. package/dist/lib/payments/facilitator.js.map +1 -0
  679. package/dist/lib/payments/gate.d.ts +207 -0
  680. package/dist/lib/payments/gate.d.ts.map +1 -0
  681. package/dist/lib/payments/gate.js +481 -0
  682. package/dist/lib/payments/gate.js.map +1 -0
  683. package/dist/lib/payments/header-seal.d.ts +33 -0
  684. package/dist/lib/payments/header-seal.d.ts.map +1 -0
  685. package/dist/lib/payments/header-seal.js +76 -0
  686. package/dist/lib/payments/header-seal.js.map +1 -0
  687. package/dist/lib/payments/index.d.ts +12 -0
  688. package/dist/lib/payments/index.d.ts.map +1 -0
  689. package/dist/lib/payments/index.js +11 -0
  690. package/dist/lib/payments/index.js.map +1 -0
  691. package/dist/lib/payments/price.d.ts +25 -0
  692. package/dist/lib/payments/price.d.ts.map +1 -0
  693. package/dist/lib/payments/price.js +43 -0
  694. package/dist/lib/payments/price.js.map +1 -0
  695. package/dist/lib/payments/reconcile.d.ts +77 -0
  696. package/dist/lib/payments/reconcile.d.ts.map +1 -0
  697. package/dist/lib/payments/reconcile.js +317 -0
  698. package/dist/lib/payments/reconcile.js.map +1 -0
  699. package/dist/lib/payments/refund.d.ts +34 -0
  700. package/dist/lib/payments/refund.d.ts.map +1 -0
  701. package/dist/lib/payments/refund.js +123 -0
  702. package/dist/lib/payments/refund.js.map +1 -0
  703. package/dist/lib/payments/review-billing.d.ts +222 -0
  704. package/dist/lib/payments/review-billing.d.ts.map +1 -0
  705. package/dist/lib/payments/review-billing.js +609 -0
  706. package/dist/lib/payments/review-billing.js.map +1 -0
  707. package/dist/lib/payments/settle.d.ts +44 -0
  708. package/dist/lib/payments/settle.d.ts.map +1 -0
  709. package/dist/lib/payments/settle.js +306 -0
  710. package/dist/lib/payments/settle.js.map +1 -0
  711. package/dist/lib/payments/terms.d.ts +27 -0
  712. package/dist/lib/payments/terms.d.ts.map +1 -0
  713. package/dist/lib/payments/terms.js +21 -0
  714. package/dist/lib/payments/terms.js.map +1 -0
  715. package/dist/lib/payouts.d.ts +20 -0
  716. package/dist/lib/payouts.d.ts.map +1 -0
  717. package/dist/lib/payouts.js +30 -0
  718. package/dist/lib/payouts.js.map +1 -0
  719. package/dist/lib/readiness.d.ts +42 -0
  720. package/dist/lib/readiness.d.ts.map +1 -0
  721. package/dist/lib/readiness.js +130 -0
  722. package/dist/lib/readiness.js.map +1 -0
  723. package/dist/lib/redact.d.ts +23 -0
  724. package/dist/lib/redact.d.ts.map +1 -0
  725. package/dist/lib/redact.js +67 -0
  726. package/dist/lib/redact.js.map +1 -0
  727. package/dist/lib/register.d.ts +85 -0
  728. package/dist/lib/register.d.ts.map +1 -0
  729. package/dist/lib/register.js +390 -0
  730. package/dist/lib/register.js.map +1 -0
  731. package/dist/lib/review/attestation.d.ts +92 -0
  732. package/dist/lib/review/attestation.d.ts.map +1 -0
  733. package/dist/lib/review/attestation.js +264 -0
  734. package/dist/lib/review/attestation.js.map +1 -0
  735. package/dist/lib/review/reviewer-grant.d.ts +146 -0
  736. package/dist/lib/review/reviewer-grant.d.ts.map +1 -0
  737. package/dist/lib/review/reviewer-grant.js +359 -0
  738. package/dist/lib/review/reviewer-grant.js.map +1 -0
  739. package/dist/lib/review/tasks.d.ts +18 -0
  740. package/dist/lib/review/tasks.d.ts.map +1 -0
  741. package/dist/lib/review/tasks.js +36 -0
  742. package/dist/lib/review/tasks.js.map +1 -0
  743. package/dist/lib/sentry.d.ts +89 -0
  744. package/dist/lib/sentry.d.ts.map +1 -0
  745. package/dist/lib/sentry.js +284 -0
  746. package/dist/lib/sentry.js.map +1 -0
  747. package/dist/lib/spans.d.ts +14 -0
  748. package/dist/lib/spans.d.ts.map +1 -0
  749. package/dist/lib/spans.js +28 -0
  750. package/dist/lib/spans.js.map +1 -0
  751. package/dist/lib/tracing.d.ts +31 -0
  752. package/dist/lib/tracing.d.ts.map +1 -0
  753. package/dist/lib/tracing.js +66 -0
  754. package/dist/lib/tracing.js.map +1 -0
  755. package/dist/lib/ttl-cache.d.ts +26 -0
  756. package/dist/lib/ttl-cache.d.ts.map +1 -0
  757. package/dist/lib/ttl-cache.js +61 -0
  758. package/dist/lib/ttl-cache.js.map +1 -0
  759. package/dist/lib/validator.d.ts +19 -0
  760. package/dist/lib/validator.d.ts.map +1 -0
  761. package/dist/lib/validator.js +32 -0
  762. package/dist/lib/validator.js.map +1 -0
  763. package/dist/lib/work-order/form.d.ts +40 -0
  764. package/dist/lib/work-order/form.d.ts.map +1 -0
  765. package/dist/lib/work-order/form.js +316 -0
  766. package/dist/lib/work-order/form.js.map +1 -0
  767. package/dist/lib/work-order/index.d.ts +20 -0
  768. package/dist/lib/work-order/index.d.ts.map +1 -0
  769. package/dist/lib/work-order/index.js +66 -0
  770. package/dist/lib/work-order/index.js.map +1 -0
  771. package/dist/middleware/api/audit.d.ts +9 -0
  772. package/dist/middleware/api/audit.d.ts.map +1 -0
  773. package/dist/middleware/api/audit.js +38 -0
  774. package/dist/middleware/api/audit.js.map +1 -0
  775. package/dist/middleware/api/auth.d.ts +29 -0
  776. package/dist/middleware/api/auth.d.ts.map +1 -0
  777. package/dist/middleware/api/auth.js +105 -0
  778. package/dist/middleware/api/auth.js.map +1 -0
  779. package/dist/middleware/api/console.d.ts +92 -0
  780. package/dist/middleware/api/console.d.ts.map +1 -0
  781. package/dist/middleware/api/console.js +446 -0
  782. package/dist/middleware/api/console.js.map +1 -0
  783. package/dist/middleware/api/errors.d.ts +48 -0
  784. package/dist/middleware/api/errors.d.ts.map +1 -0
  785. package/dist/middleware/api/errors.js +133 -0
  786. package/dist/middleware/api/errors.js.map +1 -0
  787. package/dist/middleware/api/idempotency.d.ts +23 -0
  788. package/dist/middleware/api/idempotency.d.ts.map +1 -0
  789. package/dist/middleware/api/idempotency.js +158 -0
  790. package/dist/middleware/api/idempotency.js.map +1 -0
  791. package/dist/middleware/api/keys.d.ts +14 -0
  792. package/dist/middleware/api/keys.d.ts.map +1 -0
  793. package/dist/middleware/api/keys.js +66 -0
  794. package/dist/middleware/api/keys.js.map +1 -0
  795. package/dist/middleware/api/membership.d.ts +32 -0
  796. package/dist/middleware/api/membership.d.ts.map +1 -0
  797. package/dist/middleware/api/membership.js +48 -0
  798. package/dist/middleware/api/membership.js.map +1 -0
  799. package/dist/middleware/api/oauth.d.ts +28 -0
  800. package/dist/middleware/api/oauth.d.ts.map +1 -0
  801. package/dist/middleware/api/oauth.js +109 -0
  802. package/dist/middleware/api/oauth.js.map +1 -0
  803. package/dist/middleware/api/rate-limit.d.ts +23 -0
  804. package/dist/middleware/api/rate-limit.d.ts.map +1 -0
  805. package/dist/middleware/api/rate-limit.js +70 -0
  806. package/dist/middleware/api/rate-limit.js.map +1 -0
  807. package/dist/middleware/api/types.d.ts +92 -0
  808. package/dist/middleware/api/types.d.ts.map +1 -0
  809. package/dist/middleware/api/types.js +7 -0
  810. package/dist/middleware/api/types.js.map +1 -0
  811. package/dist/middleware/api/wait.d.ts +21 -0
  812. package/dist/middleware/api/wait.d.ts.map +1 -0
  813. package/dist/middleware/api/wait.js +85 -0
  814. package/dist/middleware/api/wait.js.map +1 -0
  815. package/dist/middleware/capability.d.ts +32 -0
  816. package/dist/middleware/capability.d.ts.map +1 -0
  817. package/dist/middleware/capability.js +113 -0
  818. package/dist/middleware/capability.js.map +1 -0
  819. package/dist/middleware/database.d.ts +14 -0
  820. package/dist/middleware/database.d.ts.map +1 -0
  821. package/dist/middleware/database.js +18 -0
  822. package/dist/middleware/database.js.map +1 -0
  823. package/dist/middleware/error-handler.d.ts +13 -0
  824. package/dist/middleware/error-handler.d.ts.map +1 -0
  825. package/dist/middleware/error-handler.js +127 -0
  826. package/dist/middleware/error-handler.js.map +1 -0
  827. package/dist/middleware/observability.d.ts +32 -0
  828. package/dist/middleware/observability.d.ts.map +1 -0
  829. package/dist/middleware/observability.js +134 -0
  830. package/dist/middleware/observability.js.map +1 -0
  831. package/dist/middleware/rate-limit.d.ts +16 -0
  832. package/dist/middleware/rate-limit.d.ts.map +1 -0
  833. package/dist/middleware/rate-limit.js +56 -0
  834. package/dist/middleware/rate-limit.js.map +1 -0
  835. package/dist/middleware/ucan-auth.d.ts +39 -0
  836. package/dist/middleware/ucan-auth.d.ts.map +1 -0
  837. package/dist/middleware/ucan-auth.js +278 -0
  838. package/dist/middleware/ucan-auth.js.map +1 -0
  839. package/dist/networks.d.ts +34 -0
  840. package/dist/networks.d.ts.map +1 -0
  841. package/dist/networks.js +49 -0
  842. package/dist/networks.js.map +1 -0
  843. package/dist/oracle.d.ts +193 -0
  844. package/dist/oracle.d.ts.map +1 -0
  845. package/dist/oracle.js +245 -0
  846. package/dist/oracle.js.map +1 -0
  847. package/dist/routes/health.d.ts +16 -0
  848. package/dist/routes/health.d.ts.map +1 -0
  849. package/dist/routes/health.js +29 -0
  850. package/dist/routes/health.js.map +1 -0
  851. package/dist/routes/v1/admin.d.ts +18 -0
  852. package/dist/routes/v1/admin.d.ts.map +1 -0
  853. package/dist/routes/v1/admin.js +101 -0
  854. package/dist/routes/v1/admin.js.map +1 -0
  855. package/dist/routes/v1/api/admin-claims.d.ts +14 -0
  856. package/dist/routes/v1/api/admin-claims.d.ts.map +1 -0
  857. package/dist/routes/v1/api/admin-claims.js +82 -0
  858. package/dist/routes/v1/api/admin-claims.js.map +1 -0
  859. package/dist/routes/v1/api/admin-facilitator.d.ts +20 -0
  860. package/dist/routes/v1/api/admin-facilitator.d.ts.map +1 -0
  861. package/dist/routes/v1/api/admin-facilitator.js +64 -0
  862. package/dist/routes/v1/api/admin-facilitator.js.map +1 -0
  863. package/dist/routes/v1/api/admin.d.ts +9 -0
  864. package/dist/routes/v1/api/admin.d.ts.map +1 -0
  865. package/dist/routes/v1/api/admin.js +110 -0
  866. package/dist/routes/v1/api/admin.js.map +1 -0
  867. package/dist/routes/v1/api/audit.d.ts +8 -0
  868. package/dist/routes/v1/api/audit.d.ts.map +1 -0
  869. package/dist/routes/v1/api/audit.js +56 -0
  870. package/dist/routes/v1/api/audit.js.map +1 -0
  871. package/dist/routes/v1/api/batch.d.ts +17 -0
  872. package/dist/routes/v1/api/batch.d.ts.map +1 -0
  873. package/dist/routes/v1/api/batch.js +192 -0
  874. package/dist/routes/v1/api/batch.js.map +1 -0
  875. package/dist/routes/v1/api/claims-read.d.ts +43 -0
  876. package/dist/routes/v1/api/claims-read.d.ts.map +1 -0
  877. package/dist/routes/v1/api/claims-read.js +123 -0
  878. package/dist/routes/v1/api/claims-read.js.map +1 -0
  879. package/dist/routes/v1/api/claims.d.ts +131 -0
  880. package/dist/routes/v1/api/claims.d.ts.map +1 -0
  881. package/dist/routes/v1/api/claims.js +407 -0
  882. package/dist/routes/v1/api/claims.js.map +1 -0
  883. package/dist/routes/v1/api/collections-link.d.ts +14 -0
  884. package/dist/routes/v1/api/collections-link.d.ts.map +1 -0
  885. package/dist/routes/v1/api/collections-link.js +97 -0
  886. package/dist/routes/v1/api/collections-link.js.map +1 -0
  887. package/dist/routes/v1/api/export.d.ts +48 -0
  888. package/dist/routes/v1/api/export.d.ts.map +1 -0
  889. package/dist/routes/v1/api/export.js +251 -0
  890. package/dist/routes/v1/api/export.js.map +1 -0
  891. package/dist/routes/v1/api/index.d.ts +16 -0
  892. package/dist/routes/v1/api/index.d.ts.map +1 -0
  893. package/dist/routes/v1/api/index.js +68 -0
  894. package/dist/routes/v1/api/index.js.map +1 -0
  895. package/dist/routes/v1/api/keys.d.ts +9 -0
  896. package/dist/routes/v1/api/keys.d.ts.map +1 -0
  897. package/dist/routes/v1/api/keys.js +95 -0
  898. package/dist/routes/v1/api/keys.js.map +1 -0
  899. package/dist/routes/v1/api/me.d.ts +21 -0
  900. package/dist/routes/v1/api/me.d.ts.map +1 -0
  901. package/dist/routes/v1/api/me.js +122 -0
  902. package/dist/routes/v1/api/me.js.map +1 -0
  903. package/dist/routes/v1/api/members.d.ts +17 -0
  904. package/dist/routes/v1/api/members.d.ts.map +1 -0
  905. package/dist/routes/v1/api/members.js +406 -0
  906. package/dist/routes/v1/api/members.js.map +1 -0
  907. package/dist/routes/v1/api/meta.d.ts +12 -0
  908. package/dist/routes/v1/api/meta.d.ts.map +1 -0
  909. package/dist/routes/v1/api/meta.js +59 -0
  910. package/dist/routes/v1/api/meta.js.map +1 -0
  911. package/dist/routes/v1/api/openapi.gen.d.ts +2 -0
  912. package/dist/routes/v1/api/openapi.gen.d.ts.map +1 -0
  913. package/dist/routes/v1/api/openapi.gen.js +7 -0
  914. package/dist/routes/v1/api/openapi.gen.js.map +1 -0
  915. package/dist/routes/v1/api/protocols.d.ts +22 -0
  916. package/dist/routes/v1/api/protocols.d.ts.map +1 -0
  917. package/dist/routes/v1/api/protocols.js +153 -0
  918. package/dist/routes/v1/api/protocols.js.map +1 -0
  919. package/dist/routes/v1/api/review-billing.d.ts +18 -0
  920. package/dist/routes/v1/api/review-billing.d.ts.map +1 -0
  921. package/dist/routes/v1/api/review-billing.js +196 -0
  922. package/dist/routes/v1/api/review-billing.js.map +1 -0
  923. package/dist/routes/v1/api/review.d.ts +30 -0
  924. package/dist/routes/v1/api/review.d.ts.map +1 -0
  925. package/dist/routes/v1/api/review.js +302 -0
  926. package/dist/routes/v1/api/review.js.map +1 -0
  927. package/dist/routes/v1/api/sources.d.ts +10 -0
  928. package/dist/routes/v1/api/sources.d.ts.map +1 -0
  929. package/dist/routes/v1/api/sources.js +293 -0
  930. package/dist/routes/v1/api/sources.js.map +1 -0
  931. package/dist/routes/v1/api/uploads.d.ts +37 -0
  932. package/dist/routes/v1/api/uploads.d.ts.map +1 -0
  933. package/dist/routes/v1/api/uploads.js +414 -0
  934. package/dist/routes/v1/api/uploads.js.map +1 -0
  935. package/dist/routes/v1/api/views.d.ts +18 -0
  936. package/dist/routes/v1/api/views.d.ts.map +1 -0
  937. package/dist/routes/v1/api/views.js +95 -0
  938. package/dist/routes/v1/api/views.js.map +1 -0
  939. package/dist/routes/v1/api/webhooks.d.ts +14 -0
  940. package/dist/routes/v1/api/webhooks.d.ts.map +1 -0
  941. package/dist/routes/v1/api/webhooks.js +282 -0
  942. package/dist/routes/v1/api/webhooks.js.map +1 -0
  943. package/dist/routes/v1/api/work-orders.d.ts +45 -0
  944. package/dist/routes/v1/api/work-orders.d.ts.map +1 -0
  945. package/dist/routes/v1/api/work-orders.js +171 -0
  946. package/dist/routes/v1/api/work-orders.js.map +1 -0
  947. package/dist/routes/v1/claims.d.ts +21 -0
  948. package/dist/routes/v1/claims.d.ts.map +1 -0
  949. package/dist/routes/v1/claims.js +153 -0
  950. package/dist/routes/v1/claims.js.map +1 -0
  951. package/dist/routes/v1/collections.d.ts +45 -0
  952. package/dist/routes/v1/collections.d.ts.map +1 -0
  953. package/dist/routes/v1/collections.js +201 -0
  954. package/dist/routes/v1/collections.js.map +1 -0
  955. package/dist/routes/v1/index.d.ts +13 -0
  956. package/dist/routes/v1/index.d.ts.map +1 -0
  957. package/dist/routes/v1/index.js +41 -0
  958. package/dist/routes/v1/index.js.map +1 -0
  959. package/dist/routes/v1/info.d.ts +14 -0
  960. package/dist/routes/v1/info.d.ts.map +1 -0
  961. package/dist/routes/v1/info.js +75 -0
  962. package/dist/routes/v1/info.js.map +1 -0
  963. package/dist/routes/v1/mcp/index.d.ts +33 -0
  964. package/dist/routes/v1/mcp/index.d.ts.map +1 -0
  965. package/dist/routes/v1/mcp/index.js +252 -0
  966. package/dist/routes/v1/mcp/index.js.map +1 -0
  967. package/dist/routes/v1/mcp/oauth.d.ts +27 -0
  968. package/dist/routes/v1/mcp/oauth.d.ts.map +1 -0
  969. package/dist/routes/v1/mcp/oauth.js +500 -0
  970. package/dist/routes/v1/mcp/oauth.js.map +1 -0
  971. package/dist/routes/v1/mcp/tools.d.ts +71 -0
  972. package/dist/routes/v1/mcp/tools.d.ts.map +1 -0
  973. package/dist/routes/v1/mcp/tools.js +432 -0
  974. package/dist/routes/v1/mcp/tools.js.map +1 -0
  975. package/dist/routes/v1/mcp/ui.d.ts +45 -0
  976. package/dist/routes/v1/mcp/ui.d.ts.map +1 -0
  977. package/dist/routes/v1/mcp/ui.js +454 -0
  978. package/dist/routes/v1/mcp/ui.js.map +1 -0
  979. package/dist/routes/v1/oauth.d.ts +29 -0
  980. package/dist/routes/v1/oauth.d.ts.map +1 -0
  981. package/dist/routes/v1/oauth.js +256 -0
  982. package/dist/routes/v1/oauth.js.map +1 -0
  983. package/dist/routes/v1/reviewers.d.ts +22 -0
  984. package/dist/routes/v1/reviewers.d.ts.map +1 -0
  985. package/dist/routes/v1/reviewers.js +165 -0
  986. package/dist/routes/v1/reviewers.js.map +1 -0
  987. package/dist/routes/v1/reviews.d.ts +38 -0
  988. package/dist/routes/v1/reviews.d.ts.map +1 -0
  989. package/dist/routes/v1/reviews.js +234 -0
  990. package/dist/routes/v1/reviews.js.map +1 -0
  991. package/dist/routes/v1/shared.d.ts +586 -0
  992. package/dist/routes/v1/shared.d.ts.map +1 -0
  993. package/dist/routes/v1/shared.js +229 -0
  994. package/dist/routes/v1/shared.js.map +1 -0
  995. package/dist/routes/well-known.d.ts +15 -0
  996. package/dist/routes/well-known.d.ts.map +1 -0
  997. package/dist/routes/well-known.js +35 -0
  998. package/dist/routes/well-known.js.map +1 -0
  999. package/dist/runtime.d.ts +100 -0
  1000. package/dist/runtime.d.ts.map +1 -0
  1001. package/dist/runtime.js +144 -0
  1002. package/dist/runtime.js.map +1 -0
  1003. package/dist/testing/fake-tools.d.ts +104 -0
  1004. package/dist/testing/fake-tools.d.ts.map +1 -0
  1005. package/dist/testing/fake-tools.js +213 -0
  1006. package/dist/testing/fake-tools.js.map +1 -0
  1007. package/dist/testing/index.d.ts +54 -0
  1008. package/dist/testing/index.d.ts.map +1 -0
  1009. package/dist/testing/index.js +104 -0
  1010. package/dist/testing/index.js.map +1 -0
  1011. package/dist/testing/samples.d.ts +70 -0
  1012. package/dist/testing/samples.d.ts.map +1 -0
  1013. package/dist/testing/samples.js +92 -0
  1014. package/dist/testing/samples.js.map +1 -0
  1015. package/dist/workflows/claim-ingest.d.ts +250 -0
  1016. package/dist/workflows/claim-ingest.d.ts.map +1 -0
  1017. package/dist/workflows/claim-ingest.js +1020 -0
  1018. package/dist/workflows/claim-ingest.js.map +1 -0
  1019. package/dist/workflows/claim-source.d.ts +25 -0
  1020. package/dist/workflows/claim-source.d.ts.map +1 -0
  1021. package/dist/workflows/claim-source.js +107 -0
  1022. package/dist/workflows/claim-source.js.map +1 -0
  1023. package/dist/workflows/review-complete.d.ts +82 -0
  1024. package/dist/workflows/review-complete.d.ts.map +1 -0
  1025. package/dist/workflows/review-complete.js +455 -0
  1026. package/dist/workflows/review-complete.js.map +1 -0
  1027. package/dist/workflows/steps.d.ts +125 -0
  1028. package/dist/workflows/steps.d.ts.map +1 -0
  1029. package/dist/workflows/steps.js +325 -0
  1030. package/dist/workflows/steps.js.map +1 -0
  1031. package/docs/api.md +2595 -0
  1032. package/docs/guide.md +1525 -0
  1033. package/migrations/0000_init.sql +108 -0
  1034. package/migrations/0001_review_attestation.sql +1 -0
  1035. package/migrations/0002_decisions_facts.sql +1 -0
  1036. package/migrations/0003_api_lane.sql +171 -0
  1037. package/migrations/0004_api_v1_1.sql +19 -0
  1038. package/migrations/0005_member_notify.sql +3 -0
  1039. package/migrations/0006_source_collections.sql +16 -0
  1040. package/migrations/0007_api_settlement.sql +27 -0
  1041. package/migrations/0008_review_extend.sql +1 -0
  1042. package/migrations/0009_card_refunds.sql +4 -0
  1043. package/migrations/0010_even_scorpion.sql +16 -0
  1044. package/migrations/0011_mcp_oauth.sql +27 -0
  1045. package/migrations/0012_mcp_standing.sql +21 -0
  1046. package/migrations/0013_unknown_krista_starr.sql +2 -0
  1047. package/migrations/0014_last_carnage.sql +14 -0
  1048. package/migrations/0015_company_authority.sql +26 -0
  1049. package/migrations/0016_owner_only_links.sql +6 -0
  1050. package/migrations/0017_organisations.sql +35 -0
  1051. package/migrations/0018_remove_app_signed.sql +4 -0
  1052. package/migrations/0019_submitted_via.sql +2 -0
  1053. package/migrations/0020_drop_decision_to_pay.sql +4 -0
  1054. package/migrations/0021_manual_erase.sql +25 -0
  1055. package/migrations/0022_errored_facts.sql +1 -0
  1056. package/migrations/0023_review_billing.sql +20 -0
  1057. package/migrations/0024_pending_task_details.sql +1 -0
  1058. package/migrations/meta/0000_snapshot.json +707 -0
  1059. package/migrations/meta/0001_snapshot.json +714 -0
  1060. package/migrations/meta/0002_snapshot.json +721 -0
  1061. package/migrations/meta/0003_snapshot.json +1845 -0
  1062. package/migrations/meta/0004_snapshot.json +1969 -0
  1063. package/migrations/meta/0005_snapshot.json +1991 -0
  1064. package/migrations/meta/0006_snapshot.json +2097 -0
  1065. package/migrations/meta/0007_snapshot.json +2128 -0
  1066. package/migrations/meta/0008_snapshot.json +2133 -0
  1067. package/migrations/meta/0009_snapshot.json +2161 -0
  1068. package/migrations/meta/0010_snapshot.json +2265 -0
  1069. package/migrations/meta/0011_snapshot.json +2448 -0
  1070. package/migrations/meta/0012_snapshot.json +2577 -0
  1071. package/migrations/meta/0013_snapshot.json +2594 -0
  1072. package/migrations/meta/0014_snapshot.json +2602 -0
  1073. package/migrations/meta/0015_snapshot.json +2778 -0
  1074. package/migrations/meta/0016_snapshot.json +2778 -0
  1075. package/migrations/meta/0017_snapshot.json +2792 -0
  1076. package/migrations/meta/0018_snapshot.json +2778 -0
  1077. package/migrations/meta/0019_snapshot.json +2792 -0
  1078. package/migrations/meta/0020_snapshot.json +2785 -0
  1079. package/migrations/meta/0021_snapshot.json +2762 -0
  1080. package/migrations/meta/0022_snapshot.json +2769 -0
  1081. package/migrations/meta/0023_snapshot.json +2900 -0
  1082. package/migrations/meta/0024_snapshot.json +2907 -0
  1083. package/migrations/meta/_journal.json +181 -0
  1084. package/openapi/decision-api.yaml +12204 -0
  1085. package/package.json +121 -4
  1086. package/skills/README.md +19 -0
  1087. package/skills/add-openhands-support/SKILL.md +113 -0
  1088. package/skills/create-collection/SKILL.md +199 -0
  1089. package/skills/create-collection/reference/claims-stack.md +106 -0
  1090. package/skills/create-collection/reference/collection.md +111 -0
  1091. package/skills/create-oracle/SKILL.md +400 -0
  1092. package/skills/create-rubric/SKILL.md +130 -0
  1093. package/skills/create-rubric/reference/format-cheatsheet.md +186 -0
  1094. package/skills/create-rubric/templates/claim-form.example.json +60 -0
  1095. package/skills/decision-api-client/SKILL.md +236 -0
  1096. package/skills/decision-api-oracle/SKILL.md +336 -0
  1097. package/skills/publish-protocol/SKILL.md +151 -0
  1098. package/skills/publish-protocol/reference/publishing.md +116 -0
  1099. package/skills/reference/engine-contract.md +222 -0
  1100. package/skills/write-facts/SKILL.md +221 -0
  1101. package/skills/write-facts/reference/examples/http-vendor.ts +88 -0
  1102. package/skills/write-facts/reference/examples/price-matches-agreement.ts +67 -0
  1103. package/skills/write-facts/reference/facts-api.md +232 -0
  1104. package/templates/project/.dev.vars.example +93 -0
  1105. package/templates/project/.editorconfig +9 -0
  1106. package/templates/project/CLAUDE.md +45 -0
  1107. package/templates/project/README.md +199 -0
  1108. package/templates/project/biome.json +37 -0
  1109. package/templates/project/gitignore +29 -0
  1110. package/templates/project/package.json +32 -0
  1111. package/templates/project/src/facts/index.ts +19 -0
  1112. package/templates/project/src/index.ts +25 -0
  1113. package/templates/project/test/api-lane.test.ts +57 -0
  1114. package/templates/project/test/facts.test.ts +14 -0
  1115. package/templates/project/tsconfig.json +25 -0
  1116. package/templates/project/vitest.config.ts +13 -0
  1117. 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