@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,3367 @@
1
+ /**
2
+ * The Decision API's wire contract (`/v1/api/*`, go-prod spec §4) as Zod — the mirror of
3
+ * `openapi/decision-api.yaml`, whose component schemas are GENERATED from these
4
+ * (`openapi/generate.ts`) and whose examples `test/node/contracts-openapi.test.ts` parses here.
5
+ * x402 and UDID shapes mirror the board's contracts (`board/contracts/{x402,ixo-pay,udid}`).
6
+ *
7
+ * REQUEST bodies are `z.strictObject`: an unknown key is a `400 VALIDATION` (§4.3 "validation is
8
+ * complete before anything is charged or stored"), never silently dropped. RESPONSES are
9
+ * `z.object`, so a reader tolerates the additive changes §4.1 ships without a bump. Query strings
10
+ * are loose: an unknown parameter is ignored. URLs we ACCEPT are https only (§14); URLs we RETURN
11
+ * are plain `z.url()`, so a local dev oracle on http still validates.
12
+ *
13
+ * Not a published subpath: the router parses with it, and clients (S7) are generated from the
14
+ * OpenAPI. NODE-SAFE all the same (zod + the engine's type mirror), because the node lane tests it.
15
+ */
16
+ import { z } from "zod";
17
+ import { Verdict } from "../lib/engine/types.js";
18
+ import { Capability, MemberRole } from "./capabilities.js";
19
+ /** `Prefer: wait=N` / `?wait=N` ceiling: under the step's 4-minute timeout and the ~100 s most
20
+ * gateways cut at, above the typical AI + external-source budget (§4.6). */
21
+ export declare const MAX_WAIT_SECONDS = 90;
22
+ export declare const MAX_BATCH_CLAIMS = 100;
23
+ export declare const MAX_PAGE_LIMIT = 500;
24
+ /** `metadata` is echoed on every GET and webhook, never evaluated — kept small (§4.3). */
25
+ export declare const MAX_METADATA_BYTES = 4096;
26
+ export declare const MAX_JSON_BODY_BYTES: number;
27
+ export declare const MAX_UPLOAD_BYTES = 25000000;
28
+ /** `apc_` + 40 hex of sha256(sourceId|Idempotency-Key) — so the ledger's PK insert IS the
29
+ * duplicate guard (§4.6) — or `apc_` + a fresh ULID when the caller sent no key. */
30
+ export declare const ClaimId: z.ZodString;
31
+ /** Any claim a record can show (contracts v1.2): an API claim's `ClaimId`, or a chain claim's own
32
+ * id — a CID, or (on older collections) a Matrix event id — at most 512 chars. What the READ
33
+ * routes take as `:claimId` (the record, timeline, receipt, report — a source's for its linked
34
+ * collections' chain claims, and the operator's); submit, review and erase stay `ClaimId`. */
35
+ export declare const RecordClaimId: z.ZodString;
36
+ export declare const SourceId: z.ZodString;
37
+ export declare const EndpointId: z.ZodString;
38
+ export declare const EventId: z.ZodString;
39
+ export declare const MemberId: z.ZodString;
40
+ export declare const UploadId: z.ZodString;
41
+ export declare const AuditId: z.ZodString;
42
+ /** `wh:<eventId>:<endpointId>`, or `wh:<eventId>:claim` for the claim's own `webhookUrl` — the
43
+ * `matrix_deliveries.dedupeKey`, so a redelivery can never double-post one event to one target. */
44
+ export declare const DeliveryId: z.ZodString;
45
+ /** The facilitator's settlement id (`org.udid.receipt@1` `settlementId`, payments spec §13.1): 64
46
+ * hex, one per offer — a batch's claims share it. Replaces the hold id `chargeId` (contracts v1.3). */
47
+ export declare const SettlementId: z.ZodString;
48
+ /** The 8-char lookup prefix of an API key (`eo_live_<prefix>_<secret>`, §3.2). */
49
+ export declare const KeyPrefix: z.ZodString;
50
+ export declare const ProtocolDid: z.ZodString;
51
+ /** An IXO user account (`ixo1` + 38 bech32 chars) — members, owners, payers. Contract and DAO
52
+ * accounts are not supported at launch (the board's `didIxo`). */
53
+ export declare const AccountDid: z.ZodString;
54
+ /** A company entity (company authority D1): the on-chain entity whose controllers administer every
55
+ * source linked to it. */
56
+ export declare const EntityDid: z.ZodString;
57
+ /** A reviewer key: `did:key` (Ed25519) generated in the member's browser (§3.2, §10). */
58
+ export declare const ReviewerDid: z.ZodString;
59
+ /** ISO-8601 UTC (§4.1) — `Z`, never an offset — on everything we write. */
60
+ export declare const Timestamp: z.ZodISODateTime;
61
+ /** A compact JWS: base64url(header).base64url(payload).base64url(signature). */
62
+ export declare const CompactJws: z.ZodString;
63
+ /** SSRF control §14 starts at the schema: https only. The public-DNS / private-range checks run
64
+ * at fetch time, per redirect hop, where the resolved address is known. */
65
+ export declare const HttpsUrl: z.ZodURL;
66
+ /** A non-negative integer in an asset's base units as a decimal STRING, never a float — PAY
67
+ * (`upay`, 1 PAY = 1 USD = 1,000,000 upay) or a customer's own asset. 78 digits covers uint256. */
68
+ export declare const BaseUnitAmount: z.ZodString;
69
+ /** Any CAIP-2 `namespace:reference` — the network of a customer's own x402 offer. */
70
+ export declare const Caip2Network: z.ZodString;
71
+ /** x402's network id for the IXO chain the facilitator settles on, CAIP-2 `cosmos:<chain-id>`
72
+ * (`cosmos:devnet-1`, `cosmos:pandora-8` testnet, `cosmos:ixo-5` mainnet). */
73
+ export declare const IxoNetwork: z.ZodString;
74
+ /** The card scheme's networks (payments spec §6.3, `stripe-manual-capture`): Stripe test or live. */
75
+ export declare const StripeNetwork: z.ZodEnum<{
76
+ "stripe:live": "stripe:live";
77
+ "stripe:test": "stripe:test";
78
+ }>;
79
+ /** CAIP-2 `eip155:<chainId>`: the `exact` scheme's EVM chain (USDC on Base: `eip155:8453`). */
80
+ export declare const EvmNetwork: z.ZodString;
81
+ /** A 20-byte EVM account, hex: an `exact` payment's payer (its EIP-3009 authorization's signer). */
82
+ export declare const EvmAddress: z.ZodString;
83
+ /** Where a payment settles: the IXO chain (PAY), Stripe (card, contracts v1.4) or an EVM chain
84
+ * (`exact`: USDC on Base, a plan without PAY). */
85
+ export declare const SettleNetwork: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
86
+ "stripe:live": "stripe:live";
87
+ "stripe:test": "stripe:test";
88
+ }>, z.ZodString]>;
89
+ /** The facilitator's offer id, the 402's single-use nonce: a lowercase UUID. */
90
+ export declare const OfferNonce: z.ZodString;
91
+ export declare const Scope: z.ZodEnum<{
92
+ "claims:read": "claims:read";
93
+ "claims:write": "claims:write";
94
+ "webhooks:manage": "webhooks:manage";
95
+ }>;
96
+ export type Scope = z.infer<typeof Scope>;
97
+ export { Capability, MemberRole };
98
+ /** The ledger's `claim_ingests.status` — where the claim got to, independent of the verdict. */
99
+ export declare const ClaimStatus: z.ZodEnum<{
100
+ failed: "failed";
101
+ processed: "processed";
102
+ processing: "processing";
103
+ queued: "queued";
104
+ }>;
105
+ export type ClaimStatus = z.infer<typeof ClaimStatus>;
106
+ /** How a claim arrived (contracts v1.2): `POST /v1/api/claims`, or the cron's scan of a watched
107
+ * on-chain collection. */
108
+ export declare const ClaimLane: z.ZodEnum<{
109
+ api: "api";
110
+ chain: "chain";
111
+ }>;
112
+ export type ClaimLane = z.infer<typeof ClaimLane>;
113
+ /** The `decisions.chainStatus` column: where a verdict got to on chain. Always `skipped` on the API
114
+ * lane (nothing is signed); a chain claim's is the act lane's real state. */
115
+ export declare const ChainStatus: z.ZodEnum<{
116
+ blocked: "blocked";
117
+ held: "held";
118
+ owner_submitted: "owner_submitted";
119
+ pending: "pending";
120
+ skipped: "skipped";
121
+ submitted: "submitted";
122
+ }>;
123
+ export type ChainStatus = z.infer<typeof ChainStatus>;
124
+ /**
125
+ * The `decisions.status` column: the engine's three, the facts lane's own `invalid_facts`, and the
126
+ * engine's two refusals of the claim's content (v1.7): `content_mismatch` (the facts don't match the
127
+ * content you sent) and `payload_too_large` — both with no decision, and the claim `failed`.
128
+ */
129
+ export declare const DecisionStatus: z.ZodEnum<{
130
+ content_mismatch: "content_mismatch";
131
+ decided: "decided";
132
+ invalid_facts: "invalid_facts";
133
+ payload_too_large: "payload_too_large";
134
+ pending_review: "pending_review";
135
+ unusable: "unusable";
136
+ }>;
137
+ export type DecisionStatus = z.infer<typeof DecisionStatus>;
138
+ /**
139
+ * A claim's payment (contracts v1.3, payments spec §4): `reserved` at accept (`/verify` reserved the
140
+ * price; the claim runs), `settled` once the engine's receipt was accepted (the minute's transfer has
141
+ * not paid it yet), `paid` with the transfer's `transaction`, `released` when no receipt came within
142
+ * 24 h (nothing moved), `failed` when the facilitator refused the receipt (nothing moved).
143
+ */
144
+ /** `refunded` / `partially_refunded` (v1.4.3) are a paid CARD payment the operator refunded since —
145
+ * PAY is final on chain and never reaches them. */
146
+ export declare const PaymentStatus: z.ZodEnum<{
147
+ failed: "failed";
148
+ paid: "paid";
149
+ partially_refunded: "partially_refunded";
150
+ refunded: "refunded";
151
+ released: "released";
152
+ reserved: "reserved";
153
+ settled: "settled";
154
+ }>;
155
+ export type PaymentStatus = z.infer<typeof PaymentStatus>;
156
+ /** `failed` will be retried; `dead` spent its 8 attempts (§4.5) and waits for a redeliver. The
157
+ * delivery row's `sent` is `delivered` here: the wire says what the receiver got. */
158
+ export declare const DeliveryStatus: z.ZodEnum<{
159
+ dead: "dead";
160
+ delivered: "delivered";
161
+ failed: "failed";
162
+ pending: "pending";
163
+ }>;
164
+ export type DeliveryStatus = z.infer<typeof DeliveryStatus>;
165
+ /**
166
+ * v1.8 (D10): a source starts `pending-link` — created by a controller of its organisation, waiting
167
+ * for the engine to hold the organisation's link for it — and turns `active` at the company sync.
168
+ * `disputed`: the engine holds a link for ANOTHER entity (first link wins), or says disputed — no
169
+ * authority; delete the source and add the oracle again. Neither takes claims, keys, invites or
170
+ * webhooks. `paused` is the only state with a `pausedReason`.
171
+ */
172
+ export declare const SourceStatus: z.ZodEnum<{
173
+ active: "active";
174
+ disputed: "disputed";
175
+ paused: "paused";
176
+ "pending-link": "pending-link";
177
+ }>;
178
+ export type SourceStatus = z.infer<typeof SourceStatus>;
179
+ /**
180
+ * How a source pays (§3.2): `x402` — an outside customer pays per decision (§11) — or `none` — the
181
+ * operator's own organisation or a partner it does not charge: no 402, no `api_charges` row. Set
182
+ * only by the oracle's operator; the engine bills the oracle's owner its fee either way (§11.12).
183
+ */
184
+ export declare const BillingMode: z.ZodEnum<{
185
+ none: "none";
186
+ x402: "x402";
187
+ }>;
188
+ export type BillingMode = z.infer<typeof BillingMode>;
189
+ export { Verdict };
190
+ /**
191
+ * The oracle's published price for one protocol (payments spec §3.1) — what
192
+ * `GET /v1/api/protocols/:did` serves, every offer quotes and the facilitator checks each charge
193
+ * against (`price_mismatch` otherwise). `amountMicroUsd` is the price, and the PAY base units
194
+ * (`amount`, 1 upay = 1 micro-USD) the same number; `amountCents` is it rounded DOWN to a whole
195
+ * cent, for display and the per-key daily cap.
196
+ */
197
+ export declare const Price: z.ZodObject<{
198
+ amountMicroUsd: z.ZodInt;
199
+ amountCents: z.ZodInt;
200
+ currency: z.ZodLiteral<"USD">;
201
+ amount: z.ZodString;
202
+ asset: z.ZodLiteral<"upay">;
203
+ }, z.core.$strip>;
204
+ export type Price = z.infer<typeof Price>;
205
+ /**
206
+ * x402 v2 `PaymentRequirements` in its generic form — what a customer's own payment service
207
+ * advertised, forwarded to the engine untouched (§11.10 step 1). LOOSE on purpose, the one loose
208
+ * request object: the engine binds the decision-to-pay to `sha256(RFC 8785 canonical JSON of
209
+ * requirements)`, so dropping a key we do not know would change the digest the payer's
210
+ * facilitator recomputes — and the credential would never verify. v2 has no `resource` here.
211
+ */
212
+ export declare const PaymentRequirements: z.ZodObject<{
213
+ scheme: z.ZodString;
214
+ network: z.ZodString;
215
+ amount: z.ZodString;
216
+ asset: z.ZodString;
217
+ payTo: z.ZodString;
218
+ maxTimeoutSeconds: z.ZodInt;
219
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
220
+ }, z.core.$loose>;
221
+ export type PaymentRequirements = z.infer<typeof PaymentRequirements>;
222
+ /** x402 v2 `ResourceInfo`: what is paid for. LOOSE — upstream grows it. */
223
+ export declare const ResourceInfo: z.ZodObject<{
224
+ url: z.ZodURL;
225
+ description: z.ZodOptional<z.ZodString>;
226
+ mimeType: z.ZodOptional<z.ZodString>;
227
+ }, z.core.$loose>;
228
+ export type ResourceInfo = z.infer<typeof ResourceInfo>;
229
+ /**
230
+ * One ixo-pay `accepts[]` entry (§11.2) exactly as the facilitator registered it — strict, because
231
+ * the payer echoes it byte for byte as `accepted` and the facilitator refuses anything not
232
+ * canonically equal (`terms_mismatch`). `extra.nonce` is the facilitator's single-use offerId.
233
+ */
234
+ export declare const IxoPayRequirements: z.ZodObject<{
235
+ scheme: z.ZodLiteral<"ixo-pay">;
236
+ network: z.ZodString;
237
+ asset: z.ZodLiteral<"upay">;
238
+ amount: z.ZodString;
239
+ payTo: z.ZodString;
240
+ maxTimeoutSeconds: z.ZodInt;
241
+ extra: z.ZodObject<{
242
+ nonce: z.ZodString;
243
+ fundingUrl: z.ZodURL;
244
+ }, z.core.$strict>;
245
+ }, z.core.$strict>;
246
+ export type IxoPayRequirements = z.infer<typeof IxoPayRequirements>;
247
+ /**
248
+ * The `PAYMENT-REQUIRED` header (base64 of UTF-8 JSON) — authoritative for x402 clients (board
249
+ * D30). It is the facilitator's `/offers` answer verbatim: `resource.url` is the submit URL with
250
+ * the claimId as fragment, or the batch URL. `accepts` holds the ways the oracle's plan takes: an
251
+ * ixo-pay entry (PAY, IXO-run oracles only), the facilitator's `stripe-manual-capture` entry when
252
+ * it takes card (contracts v1.4, payments spec §6.3), and x402's `exact` EVM entry when it takes
253
+ * USDC on Base — a plan without PAY lists no ixo-pay entry at all (§11.7).
254
+ */
255
+ export declare const X402PaymentRequired: z.ZodObject<{
256
+ x402Version: z.ZodLiteral<2>;
257
+ error: z.ZodOptional<z.ZodString>;
258
+ resource: z.ZodObject<{
259
+ url: z.ZodURL;
260
+ description: z.ZodOptional<z.ZodString>;
261
+ mimeType: z.ZodOptional<z.ZodString>;
262
+ }, z.core.$loose>;
263
+ accepts: z.ZodArray<z.ZodObject<{
264
+ scheme: z.ZodString;
265
+ network: z.ZodString;
266
+ amount: z.ZodString;
267
+ asset: z.ZodString;
268
+ payTo: z.ZodString;
269
+ maxTimeoutSeconds: z.ZodInt;
270
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
271
+ }, z.core.$loose>>;
272
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
+ }, z.core.$strip>;
274
+ export type X402PaymentRequired = z.infer<typeof X402PaymentRequired>;
275
+ /** The `PAYMENT-SIGNATURE` request header (base64 of UTF-8 JSON, x402 v2 PaymentPayload): the
276
+ * chosen terms echoed as `accepted`, and the developer's delegation with the 402's nonce. */
277
+ export declare const IxoPayPaymentPayload: z.ZodObject<{
278
+ x402Version: z.ZodLiteral<2>;
279
+ resource: z.ZodOptional<z.ZodObject<{
280
+ url: z.ZodURL;
281
+ description: z.ZodOptional<z.ZodString>;
282
+ mimeType: z.ZodOptional<z.ZodString>;
283
+ }, z.core.$loose>>;
284
+ accepted: z.ZodObject<{
285
+ scheme: z.ZodLiteral<"ixo-pay">;
286
+ network: z.ZodString;
287
+ asset: z.ZodLiteral<"upay">;
288
+ amount: z.ZodString;
289
+ payTo: z.ZodString;
290
+ maxTimeoutSeconds: z.ZodInt;
291
+ extra: z.ZodObject<{
292
+ nonce: z.ZodString;
293
+ fundingUrl: z.ZodURL;
294
+ }, z.core.$strict>;
295
+ }, z.core.$strict>;
296
+ payload: z.ZodObject<{
297
+ delegation: z.ZodString;
298
+ nonce: z.ZodString;
299
+ }, z.core.$strict>;
300
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
301
+ }, z.core.$strict>;
302
+ export type IxoPayPaymentPayload = z.infer<typeof IxoPayPaymentPayload>;
303
+ /**
304
+ * One card `accepts[]` entry (contracts v1.4, payments spec §6.3): the facilitator's
305
+ * `stripe-manual-capture` terms — `amount` in US cents, `payTo` the operator's Stripe account,
306
+ * `extra` exactly `{ nonce }`. Listed after the ixo-pay entry when the oracle takes card.
307
+ */
308
+ export declare const CardRequirements: z.ZodObject<{
309
+ scheme: z.ZodLiteral<"stripe-manual-capture">;
310
+ network: z.ZodEnum<{
311
+ "stripe:live": "stripe:live";
312
+ "stripe:test": "stripe:test";
313
+ }>;
314
+ amount: z.ZodString;
315
+ asset: z.ZodLiteral<"usd">;
316
+ payTo: z.ZodString;
317
+ maxTimeoutSeconds: z.ZodInt;
318
+ extra: z.ZodObject<{
319
+ nonce: z.ZodString;
320
+ }, z.core.$strict>;
321
+ }, z.core.$strict>;
322
+ export type CardRequirements = z.infer<typeof CardRequirements>;
323
+ /**
324
+ * The `PAYMENT-SIGNATURE` header for card (contracts v1.4): the card entry echoed as `accepted` and
325
+ * the PaymentIntent the payer authorized (uncaptured) on its saved card. There is no delegation:
326
+ * the payer is the account the facilitator's `/verify` names. After a 3-D Secure confirmation the
327
+ * SAME header (the original offer) is sent again, even past the offer's `maxTimeoutSeconds`.
328
+ */
329
+ export declare const CardPaymentPayload: z.ZodObject<{
330
+ x402Version: z.ZodLiteral<2>;
331
+ resource: z.ZodOptional<z.ZodObject<{
332
+ url: z.ZodURL;
333
+ description: z.ZodOptional<z.ZodString>;
334
+ mimeType: z.ZodOptional<z.ZodString>;
335
+ }, z.core.$loose>>;
336
+ accepted: z.ZodObject<{
337
+ scheme: z.ZodLiteral<"stripe-manual-capture">;
338
+ network: z.ZodEnum<{
339
+ "stripe:live": "stripe:live";
340
+ "stripe:test": "stripe:test";
341
+ }>;
342
+ amount: z.ZodString;
343
+ asset: z.ZodLiteral<"usd">;
344
+ payTo: z.ZodString;
345
+ maxTimeoutSeconds: z.ZodInt;
346
+ extra: z.ZodObject<{
347
+ nonce: z.ZodString;
348
+ }, z.core.$strict>;
349
+ }, z.core.$strict>;
350
+ payload: z.ZodObject<{
351
+ paymentIntentId: z.ZodString;
352
+ customerId: z.ZodString;
353
+ }, z.core.$strict>;
354
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
355
+ }, z.core.$strict>;
356
+ export type CardPaymentPayload = z.infer<typeof CardPaymentPayload>;
357
+ /** One claim of a (possibly batched) settlement and where it got to at the facilitator. */
358
+ /**
359
+ * A chain claim's id as the facilitator keys its reservation (1.22.0, x402-ixo-pay 0.7.0): a CIDv1
360
+ * in lowercase base32 — checked by form, as the facilitator does.
361
+ */
362
+ export declare const ChainClaimId: z.ZodString;
363
+ /** A settled claim: an API claim, or (1.22.0) a chain claim a per-review collection paid for. */
364
+ export declare const SettlementClaim: z.ZodObject<{
365
+ claimId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
366
+ state: z.ZodString;
367
+ }, z.core.$loose>;
368
+ export type SettlementClaim = z.infer<typeof SettlementClaim>;
369
+ /** `org.udid.receipt@1` — the settlement receipt: one `settlementId` per offer, the claims the
370
+ * `/settle` call carried receipts for; `decision` is absent on ixo-pay (no decision-to-pay). */
371
+ export declare const UdidReceipt: z.ZodObject<{
372
+ settlementId: z.ZodString;
373
+ offerId: z.ZodString;
374
+ replayed: z.ZodBoolean;
375
+ claims: z.ZodArray<z.ZodObject<{
376
+ claimId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
377
+ state: z.ZodString;
378
+ }, z.core.$loose>>;
379
+ decision: z.ZodOptional<z.ZodObject<{
380
+ issuer: z.ZodString;
381
+ id: z.ZodString;
382
+ }, z.core.$strip>>;
383
+ }, z.core.$loose>;
384
+ export type UdidReceipt = z.infer<typeof UdidReceipt>;
385
+ export declare const X402PaymentResponse: z.ZodUnion<readonly [z.ZodObject<{
386
+ success: z.ZodLiteral<true>;
387
+ transaction: z.ZodString;
388
+ network: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
389
+ "stripe:live": "stripe:live";
390
+ "stripe:test": "stripe:test";
391
+ }>, z.ZodString]>;
392
+ payer: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
393
+ extensions: z.ZodObject<{
394
+ "org.udid.receipt@1": z.ZodObject<{
395
+ settlementId: z.ZodString;
396
+ offerId: z.ZodString;
397
+ replayed: z.ZodBoolean;
398
+ claims: z.ZodArray<z.ZodObject<{
399
+ claimId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
400
+ state: z.ZodString;
401
+ }, z.core.$loose>>;
402
+ decision: z.ZodOptional<z.ZodObject<{
403
+ issuer: z.ZodString;
404
+ id: z.ZodString;
405
+ }, z.core.$strip>>;
406
+ }, z.core.$loose>;
407
+ }, z.core.$loose>;
408
+ }, z.core.$loose>, z.ZodObject<{
409
+ success: z.ZodLiteral<false>;
410
+ errorReason: z.ZodLiteral<"settlement_pending">;
411
+ transaction: z.ZodString;
412
+ network: z.ZodUnion<readonly [z.ZodString, z.ZodEnum<{
413
+ "stripe:live": "stripe:live";
414
+ "stripe:test": "stripe:test";
415
+ }>, z.ZodString]>;
416
+ payer: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
417
+ extensions: z.ZodObject<{
418
+ "org.udid.receipt@1": z.ZodObject<{
419
+ settlementId: z.ZodString;
420
+ offerId: z.ZodString;
421
+ replayed: z.ZodBoolean;
422
+ claims: z.ZodArray<z.ZodObject<{
423
+ claimId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
424
+ state: z.ZodString;
425
+ }, z.core.$loose>>;
426
+ decision: z.ZodOptional<z.ZodObject<{
427
+ issuer: z.ZodString;
428
+ id: z.ZodString;
429
+ }, z.core.$strip>>;
430
+ }, z.core.$loose>;
431
+ }, z.core.$loose>;
432
+ }, z.core.$loose>]>;
433
+ export type X402PaymentResponse = z.infer<typeof X402PaymentResponse>;
434
+ /**
435
+ * The 402 BODY (Appendix A, board D30): our error envelope, the x402 object in
436
+ * `details.paymentRequired` for a client that reads bodies, and `price` / `fundingUrl` for a human.
437
+ * Only `PAYMENT_REQUIRED` carries an offer: `SPEND_CAP` and `INSUFFICIENT_CREDITS` have nothing an
438
+ * SDK may auto-pay, so it branches on `error.code` and surfaces those two to the developer.
439
+ */
440
+ export declare const PaymentRequiredBody: z.ZodObject<{
441
+ error: z.ZodObject<{
442
+ message: z.ZodString;
443
+ requestId: z.ZodString;
444
+ docsUrl: z.ZodURL;
445
+ code: z.ZodEnum<{
446
+ INSUFFICIENT_CREDITS: "INSUFFICIENT_CREDITS";
447
+ PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
448
+ SPEND_CAP: "SPEND_CAP";
449
+ }>;
450
+ details: z.ZodObject<{
451
+ paymentRequired: z.ZodOptional<z.ZodObject<{
452
+ x402Version: z.ZodLiteral<2>;
453
+ error: z.ZodOptional<z.ZodString>;
454
+ resource: z.ZodObject<{
455
+ url: z.ZodURL;
456
+ description: z.ZodOptional<z.ZodString>;
457
+ mimeType: z.ZodOptional<z.ZodString>;
458
+ }, z.core.$loose>;
459
+ accepts: z.ZodArray<z.ZodObject<{
460
+ scheme: z.ZodString;
461
+ network: z.ZodString;
462
+ amount: z.ZodString;
463
+ asset: z.ZodString;
464
+ payTo: z.ZodString;
465
+ maxTimeoutSeconds: z.ZodInt;
466
+ extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
467
+ }, z.core.$loose>>;
468
+ extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
469
+ }, z.core.$strip>>;
470
+ price: z.ZodObject<{
471
+ amountMicroUsd: z.ZodInt;
472
+ amountCents: z.ZodInt;
473
+ currency: z.ZodLiteral<"USD">;
474
+ amount: z.ZodString;
475
+ asset: z.ZodLiteral<"upay">;
476
+ }, z.core.$strip>;
477
+ fundingUrl: z.ZodURL;
478
+ }, z.core.$strip>;
479
+ }, z.core.$strip>;
480
+ }, z.core.$strip>;
481
+ export type PaymentRequiredBody = z.infer<typeof PaymentRequiredBody>;
482
+ /**
483
+ * A file the claim points at: EXACTLY one of an https `url` or an `uploadId` from
484
+ * `PUT /v1/api/uploads` (strict objects, so both-or-neither matches no branch). An `uploadId` is
485
+ * resolved to its R2 object inside the workflow — never through a signed URL, whose `exp` would
486
+ * expire under a slow retry ladder. v1.7: an upload carries the `cid` its upload returned — it is
487
+ * part of the claim's content (company authority: the engine binds the file by it), and accept
488
+ * refuses one that is not the upload's.
489
+ */
490
+ export declare const Attachment: z.ZodUnion<readonly [z.ZodObject<{
491
+ question: z.ZodString;
492
+ name: z.ZodOptional<z.ZodString>;
493
+ mediaType: z.ZodOptional<z.ZodString>;
494
+ cid: z.ZodOptional<z.ZodString>;
495
+ url: z.ZodURL;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ question: z.ZodString;
498
+ name: z.ZodOptional<z.ZodString>;
499
+ mediaType: z.ZodOptional<z.ZodString>;
500
+ uploadId: z.ZodString;
501
+ cid: z.ZodString;
502
+ }, z.core.$strict>]>;
503
+ export type Attachment = z.infer<typeof Attachment>;
504
+ export declare const SubmitClaimRequest: z.ZodObject<{
505
+ protocolDid: z.ZodOptional<z.ZodString>;
506
+ answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
507
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
508
+ question: z.ZodString;
509
+ name: z.ZodOptional<z.ZodString>;
510
+ mediaType: z.ZodOptional<z.ZodString>;
511
+ cid: z.ZodOptional<z.ZodString>;
512
+ url: z.ZodURL;
513
+ }, z.core.$strict>, z.ZodObject<{
514
+ question: z.ZodString;
515
+ name: z.ZodOptional<z.ZodString>;
516
+ mediaType: z.ZodOptional<z.ZodString>;
517
+ uploadId: z.ZodString;
518
+ cid: z.ZodString;
519
+ }, z.core.$strict>]>>>;
520
+ submitter: z.ZodOptional<z.ZodString>;
521
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
522
+ webhookUrl: z.ZodOptional<z.ZodURL>;
523
+ }, z.core.$strict>;
524
+ export type SubmitClaimRequest = z.infer<typeof SubmitClaimRequest>;
525
+ /** `202` when the decision did not land inside the wait budget — also a repeat of a running key. */
526
+ export declare const Accepted: z.ZodObject<{
527
+ claimId: z.ZodString;
528
+ status: z.ZodEnum<{
529
+ failed: "failed";
530
+ processed: "processed";
531
+ processing: "processing";
532
+ queued: "queued";
533
+ }>;
534
+ pollUrl: z.ZodURL;
535
+ }, z.core.$strip>;
536
+ export type Accepted = z.infer<typeof Accepted>;
537
+ /**
538
+ * Async only; ONE offer covers the batch (price × valid items), one reservation per claim, each
539
+ * settled on its own receipt. With an `Idempotency-Key` K on the batch, item i's claimId derives from
540
+ * `K:i`, so a retried batch re-finds every item.
541
+ */
542
+ export declare const BatchSubmitRequest: z.ZodObject<{
543
+ claims: z.ZodArray<z.ZodObject<{
544
+ protocolDid: z.ZodOptional<z.ZodString>;
545
+ answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
546
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
547
+ question: z.ZodString;
548
+ name: z.ZodOptional<z.ZodString>;
549
+ mediaType: z.ZodOptional<z.ZodString>;
550
+ cid: z.ZodOptional<z.ZodString>;
551
+ url: z.ZodURL;
552
+ }, z.core.$strict>, z.ZodObject<{
553
+ question: z.ZodString;
554
+ name: z.ZodOptional<z.ZodString>;
555
+ mediaType: z.ZodOptional<z.ZodString>;
556
+ uploadId: z.ZodString;
557
+ cid: z.ZodString;
558
+ }, z.core.$strict>]>>>;
559
+ submitter: z.ZodOptional<z.ZodString>;
560
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
561
+ webhookUrl: z.ZodOptional<z.ZodURL>;
562
+ }, z.core.$strict>>;
563
+ }, z.core.$strict>;
564
+ export type BatchSubmitRequest = z.infer<typeof BatchSubmitRequest>;
565
+ /** One item's answer: accepted, or its own validation error inline — one bad item never fails the batch. */
566
+ export declare const BatchItemResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
+ index: z.ZodInt;
568
+ status: z.ZodLiteral<"accepted">;
569
+ claimId: z.ZodString;
570
+ pollUrl: z.ZodURL;
571
+ }, z.core.$strip>, z.ZodObject<{
572
+ index: z.ZodInt;
573
+ status: z.ZodLiteral<"rejected">;
574
+ error: z.ZodObject<{
575
+ code: z.ZodEnum<{
576
+ ATTESTATION_INVALID: "ATTESTATION_INVALID";
577
+ ATTESTATION_ISSUER_MISMATCH: "ATTESTATION_ISSUER_MISMATCH";
578
+ ATTESTATION_KEY_UNKNOWN: "ATTESTATION_KEY_UNKNOWN";
579
+ ATTESTATION_MISMATCH: "ATTESTATION_MISMATCH";
580
+ ATTESTATION_REQUIRED: "ATTESTATION_REQUIRED";
581
+ ATTESTATION_UNRESOLVABLE: "ATTESTATION_UNRESOLVABLE";
582
+ CONFLICT: "CONFLICT";
583
+ FORBIDDEN: "FORBIDDEN";
584
+ IDEMPOTENCY_MISMATCH: "IDEMPOTENCY_MISMATCH";
585
+ INSUFFICIENT_CREDITS: "INSUFFICIENT_CREDITS";
586
+ INTERNAL: "INTERNAL";
587
+ NOT_FOUND: "NOT_FOUND";
588
+ NOT_PENDING_REVIEW: "NOT_PENDING_REVIEW";
589
+ PAYER_NOT_MEMBER: "PAYER_NOT_MEMBER";
590
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
591
+ PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
592
+ PROTOCOL_NOT_ALLOWED: "PROTOCOL_NOT_ALLOWED";
593
+ RATE_LIMITED: "RATE_LIMITED";
594
+ REVIEWER_GRANT_INVALID: "REVIEWER_GRANT_INVALID";
595
+ REVIEWER_NOT_AUTHORIZED: "REVIEWER_NOT_AUTHORIZED";
596
+ REVIEW_EXPIRED: "REVIEW_EXPIRED";
597
+ SCOPE: "SCOPE";
598
+ SOURCE_DISPUTED: "SOURCE_DISPUTED";
599
+ SOURCE_PAUSED: "SOURCE_PAUSED";
600
+ SOURCE_PENDING_LINK: "SOURCE_PENDING_LINK";
601
+ SPEND_CAP: "SPEND_CAP";
602
+ UNAUTHORIZED: "UNAUTHORIZED";
603
+ UNAVAILABLE: "UNAVAILABLE";
604
+ UPLOADS_DISABLED: "UPLOADS_DISABLED";
605
+ VALIDATION: "VALIDATION";
606
+ }>;
607
+ message: z.ZodString;
608
+ details: z.ZodOptional<z.ZodUnknown>;
609
+ docsUrl: z.ZodURL;
610
+ }, z.core.$strip>;
611
+ }, z.core.$strip>], "status">;
612
+ export type BatchItemResult = z.infer<typeof BatchItemResult>;
613
+ export declare const BatchSubmitResponse: z.ZodObject<{
614
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
615
+ index: z.ZodInt;
616
+ status: z.ZodLiteral<"accepted">;
617
+ claimId: z.ZodString;
618
+ pollUrl: z.ZodURL;
619
+ }, z.core.$strip>, z.ZodObject<{
620
+ index: z.ZodInt;
621
+ status: z.ZodLiteral<"rejected">;
622
+ error: z.ZodObject<{
623
+ code: z.ZodEnum<{
624
+ ATTESTATION_INVALID: "ATTESTATION_INVALID";
625
+ ATTESTATION_ISSUER_MISMATCH: "ATTESTATION_ISSUER_MISMATCH";
626
+ ATTESTATION_KEY_UNKNOWN: "ATTESTATION_KEY_UNKNOWN";
627
+ ATTESTATION_MISMATCH: "ATTESTATION_MISMATCH";
628
+ ATTESTATION_REQUIRED: "ATTESTATION_REQUIRED";
629
+ ATTESTATION_UNRESOLVABLE: "ATTESTATION_UNRESOLVABLE";
630
+ CONFLICT: "CONFLICT";
631
+ FORBIDDEN: "FORBIDDEN";
632
+ IDEMPOTENCY_MISMATCH: "IDEMPOTENCY_MISMATCH";
633
+ INSUFFICIENT_CREDITS: "INSUFFICIENT_CREDITS";
634
+ INTERNAL: "INTERNAL";
635
+ NOT_FOUND: "NOT_FOUND";
636
+ NOT_PENDING_REVIEW: "NOT_PENDING_REVIEW";
637
+ PAYER_NOT_MEMBER: "PAYER_NOT_MEMBER";
638
+ PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE";
639
+ PAYMENT_REQUIRED: "PAYMENT_REQUIRED";
640
+ PROTOCOL_NOT_ALLOWED: "PROTOCOL_NOT_ALLOWED";
641
+ RATE_LIMITED: "RATE_LIMITED";
642
+ REVIEWER_GRANT_INVALID: "REVIEWER_GRANT_INVALID";
643
+ REVIEWER_NOT_AUTHORIZED: "REVIEWER_NOT_AUTHORIZED";
644
+ REVIEW_EXPIRED: "REVIEW_EXPIRED";
645
+ SCOPE: "SCOPE";
646
+ SOURCE_DISPUTED: "SOURCE_DISPUTED";
647
+ SOURCE_PAUSED: "SOURCE_PAUSED";
648
+ SOURCE_PENDING_LINK: "SOURCE_PENDING_LINK";
649
+ SPEND_CAP: "SPEND_CAP";
650
+ UNAUTHORIZED: "UNAUTHORIZED";
651
+ UNAVAILABLE: "UNAVAILABLE";
652
+ UPLOADS_DISABLED: "UPLOADS_DISABLED";
653
+ VALIDATION: "VALIDATION";
654
+ }>;
655
+ message: z.ZodString;
656
+ details: z.ZodOptional<z.ZodUnknown>;
657
+ docsUrl: z.ZodURL;
658
+ }, z.core.$strip>;
659
+ }, z.core.$strip>], "status">>;
660
+ }, z.core.$strip>;
661
+ export type BatchSubmitResponse = z.infer<typeof BatchSubmitResponse>;
662
+ export declare const ReceiptRef: z.ZodObject<{
663
+ cid: z.ZodString;
664
+ jws: z.ZodString;
665
+ }, z.core.$strip>;
666
+ export type ReceiptRef = z.infer<typeof ReceiptRef>;
667
+ /**
668
+ * The `decisions` row as the API shows it. `decision` is the ENGINE's `Decision` verbatim — the
669
+ * oracle never decides, so there is no field here it computed; null for the facts lane's
670
+ * `invalid_facts` (no engine call was made). `chainStatus` is always `skipped` on the API lane;
671
+ * on a chain claim it is where the `MsgEvaluateClaim` got to (contracts v1.2).
672
+ */
673
+ export declare const ClaimDecision: z.ZodObject<{
674
+ status: z.ZodEnum<{
675
+ content_mismatch: "content_mismatch";
676
+ decided: "decided";
677
+ invalid_facts: "invalid_facts";
678
+ payload_too_large: "payload_too_large";
679
+ pending_review: "pending_review";
680
+ unusable: "unusable";
681
+ }>;
682
+ verdict: z.ZodNullable<z.ZodEnum<{
683
+ approve: "approve";
684
+ partial: "partial";
685
+ reject: "reject";
686
+ review: "review";
687
+ }>>;
688
+ rubricId: z.ZodNullable<z.ZodString>;
689
+ factsDigest: z.ZodNullable<z.ZodString>;
690
+ resultDigest: z.ZodNullable<z.ZodString>;
691
+ decision: z.ZodNullable<z.ZodObject<{
692
+ status: z.ZodEnum<{
693
+ decided: "decided";
694
+ pending_review: "pending_review";
695
+ unusable: "unusable";
696
+ }>;
697
+ verdict: z.ZodEnum<{
698
+ approve: "approve";
699
+ partial: "partial";
700
+ reject: "reject";
701
+ review: "review";
702
+ }>;
703
+ class: z.ZodEnum<{
704
+ insufficient_evidence: "insufficient_evidence";
705
+ invalid_evidence: "invalid_evidence";
706
+ out_of_authority: "out_of_authority";
707
+ partial: "partial";
708
+ refuted: "refuted";
709
+ requires_human_review: "requires_human_review";
710
+ supported: "supported";
711
+ }>;
712
+ evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
713
+ action: z.ZodEnum<{
714
+ auto_approve: "auto_approve";
715
+ auto_reject: "auto_reject";
716
+ needs_human_review: "needs_human_review";
717
+ }>;
718
+ totalBps: z.ZodNullable<z.ZodNumber>;
719
+ gates: z.ZodArray<z.ZodObject<{
720
+ code: z.ZodString;
721
+ outcome: z.ZodEnum<{
722
+ failed: "failed";
723
+ not_reached: "not_reached";
724
+ passed: "passed";
725
+ skipped: "skipped";
726
+ unevaluated: "unevaluated";
727
+ }>;
728
+ }, z.core.$loose>>;
729
+ criteria: z.ZodArray<z.ZodObject<{
730
+ code: z.ZodString;
731
+ scoreBps: z.ZodNullable<z.ZodNumber>;
732
+ pending: z.ZodBoolean;
733
+ capped: z.ZodBoolean;
734
+ }, z.core.$loose>>;
735
+ pendingTasks: z.ZodArray<z.ZodString>;
736
+ reasons: z.ZodArray<z.ZodObject<{
737
+ code: z.ZodString;
738
+ reason: z.ZodString;
739
+ class: z.ZodEnum<{
740
+ insufficient_evidence: "insufficient_evidence";
741
+ invalid_evidence: "invalid_evidence";
742
+ out_of_authority: "out_of_authority";
743
+ partial: "partial";
744
+ refuted: "refuted";
745
+ requires_human_review: "requires_human_review";
746
+ supported: "supported";
747
+ }>;
748
+ }, z.core.$loose>>;
749
+ }, z.core.$loose>>;
750
+ explanation: z.ZodNullable<z.ZodString>;
751
+ receipt: z.ZodNullable<z.ZodObject<{
752
+ cid: z.ZodString;
753
+ jws: z.ZodString;
754
+ }, z.core.$strip>>;
755
+ chainStatus: z.ZodEnum<{
756
+ blocked: "blocked";
757
+ held: "held";
758
+ owner_submitted: "owner_submitted";
759
+ pending: "pending";
760
+ skipped: "skipped";
761
+ submitted: "submitted";
762
+ }>;
763
+ erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
764
+ name: z.ZodString;
765
+ detail: z.ZodString;
766
+ }, z.core.$strip>>>;
767
+ }, z.core.$strip>;
768
+ export type ClaimDecision = z.infer<typeof ClaimDecision>;
769
+ /** A task a human must answer (§10), with the prompt and answer shape the manifest declares. */
770
+ export declare const ReviewTask: z.ZodObject<{
771
+ id: z.ZodString;
772
+ prompt: z.ZodString;
773
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
774
+ type: z.ZodLiteral<"boolean">;
775
+ }, z.core.$loose>, z.ZodObject<{
776
+ type: z.ZodLiteral<"enum">;
777
+ options: z.ZodArray<z.ZodString>;
778
+ }, z.core.$loose>, z.ZodObject<{
779
+ type: z.ZodLiteral<"number">;
780
+ }, z.core.$loose>, z.ZodObject<{
781
+ type: z.ZodLiteral<"text">;
782
+ }, z.core.$loose>], "type">;
783
+ }, z.core.$strip>;
784
+ export type ReviewTask = z.infer<typeof ReviewTask>;
785
+ /**
786
+ * `pendingTasks` are what the engine asked for, with prompt and answer shape from the manifest —
787
+ * stored in the claim's `review_required` timeline event at decision time, so a later manifest
788
+ * change never rewrites what the reviewer was asked.
789
+ */
790
+ export declare const ClaimReviewState: z.ZodObject<{
791
+ pendingTasks: z.ZodArray<z.ZodObject<{
792
+ id: z.ZodString;
793
+ prompt: z.ZodString;
794
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
795
+ type: z.ZodLiteral<"boolean">;
796
+ }, z.core.$loose>, z.ZodObject<{
797
+ type: z.ZodLiteral<"enum">;
798
+ options: z.ZodArray<z.ZodString>;
799
+ }, z.core.$loose>, z.ZodObject<{
800
+ type: z.ZodLiteral<"number">;
801
+ }, z.core.$loose>, z.ZodObject<{
802
+ type: z.ZodLiteral<"text">;
803
+ }, z.core.$loose>], "type">;
804
+ }, z.core.$strip>>;
805
+ answeredAt: z.ZodNullable<z.ZodISODateTime>;
806
+ foldedAt: z.ZodNullable<z.ZodISODateTime>;
807
+ foldError: z.ZodNullable<z.ZodString>;
808
+ answerBy: z.ZodNullable<z.ZodISODateTime>;
809
+ }, z.core.$strip>;
810
+ export type ClaimReviewState = z.infer<typeof ClaimReviewState>;
811
+ export declare const ClaimPayment: z.ZodObject<{
812
+ scheme: z.ZodEnum<{
813
+ exact: "exact";
814
+ "ixo-pay": "ixo-pay";
815
+ "stripe-manual-capture": "stripe-manual-capture";
816
+ }>;
817
+ amount: z.ZodString;
818
+ asset: z.ZodEnum<{
819
+ upay: "upay";
820
+ usd: "usd";
821
+ usdc: "usdc";
822
+ }>;
823
+ settlementId: z.ZodNullable<z.ZodString>;
824
+ status: z.ZodEnum<{
825
+ failed: "failed";
826
+ paid: "paid";
827
+ partially_refunded: "partially_refunded";
828
+ refunded: "refunded";
829
+ released: "released";
830
+ reserved: "reserved";
831
+ settled: "settled";
832
+ }>;
833
+ transaction: z.ZodNullable<z.ZodString>;
834
+ refundedAt: z.ZodNullable<z.ZodISODateTime>;
835
+ refundId: z.ZodNullable<z.ZodString>;
836
+ refundedAmountCents: z.ZodNullable<z.ZodNumber>;
837
+ }, z.core.$strip>;
838
+ export type ClaimPayment = z.infer<typeof ClaimPayment>;
839
+ /** The claim's latest event, aggregated over its deliveries (the claim's own `webhookUrl` and
840
+ * every subscribed endpoint): `delivered` only when all are; `dead` if any is; the attempts summed. */
841
+ export declare const ClaimWebhookState: z.ZodObject<{
842
+ status: z.ZodEnum<{
843
+ dead: "dead";
844
+ delivered: "delivered";
845
+ failed: "failed";
846
+ pending: "pending";
847
+ }>;
848
+ attempts: z.ZodInt;
849
+ }, z.core.$strip>;
850
+ export type ClaimWebhookState = z.infer<typeof ClaimWebhookState>;
851
+ /** Why a claim failed (§5): the facts lane missed the work order, the engine refused the facts,
852
+ * the stored body no longer matched its digest, or the retry ladder (~4 h) ran out. */
853
+ export declare const ClaimErrorCode: z.ZodEnum<{
854
+ body_mismatch: "body_mismatch";
855
+ engine_rejected: "engine_rejected";
856
+ invalid_facts: "invalid_facts";
857
+ retries_exhausted: "retries_exhausted";
858
+ }>;
859
+ export type ClaimErrorCode = z.infer<typeof ClaimErrorCode>;
860
+ /**
861
+ * §4.4 — the sync 200, the GET, and every `claim.*` webhook's `data`. NEVER the answers (§6.3):
862
+ * they are personal data and only the fold re-reads them. `null` wherever a part has not happened.
863
+ * Since v1.2 it shows either lane: an API claim has its `sourceId` and no `collectionId`; a chain
864
+ * claim its on-chain `collectionId`, `metadata` and `payment` null, and a `sourceId` only when read
865
+ * through a source's linked collection.
866
+ */
867
+ export declare const ClaimRecord: z.ZodObject<{
868
+ claimId: z.ZodString;
869
+ lane: z.ZodEnum<{
870
+ api: "api";
871
+ chain: "chain";
872
+ }>;
873
+ sourceId: z.ZodNullable<z.ZodString>;
874
+ collectionId: z.ZodNullable<z.ZodString>;
875
+ protocolDid: z.ZodString;
876
+ submitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
+ submittedBy: z.ZodNullable<z.ZodString>;
878
+ submittedVia: z.ZodNullable<z.ZodObject<{
879
+ name: z.ZodString;
880
+ verified: z.ZodBoolean;
881
+ }, z.core.$strict>>;
882
+ contentDigest: z.ZodNullable<z.ZodString>;
883
+ status: z.ZodEnum<{
884
+ failed: "failed";
885
+ processed: "processed";
886
+ processing: "processing";
887
+ queued: "queued";
888
+ }>;
889
+ decision: z.ZodNullable<z.ZodObject<{
890
+ status: z.ZodEnum<{
891
+ content_mismatch: "content_mismatch";
892
+ decided: "decided";
893
+ invalid_facts: "invalid_facts";
894
+ payload_too_large: "payload_too_large";
895
+ pending_review: "pending_review";
896
+ unusable: "unusable";
897
+ }>;
898
+ verdict: z.ZodNullable<z.ZodEnum<{
899
+ approve: "approve";
900
+ partial: "partial";
901
+ reject: "reject";
902
+ review: "review";
903
+ }>>;
904
+ rubricId: z.ZodNullable<z.ZodString>;
905
+ factsDigest: z.ZodNullable<z.ZodString>;
906
+ resultDigest: z.ZodNullable<z.ZodString>;
907
+ decision: z.ZodNullable<z.ZodObject<{
908
+ status: z.ZodEnum<{
909
+ decided: "decided";
910
+ pending_review: "pending_review";
911
+ unusable: "unusable";
912
+ }>;
913
+ verdict: z.ZodEnum<{
914
+ approve: "approve";
915
+ partial: "partial";
916
+ reject: "reject";
917
+ review: "review";
918
+ }>;
919
+ class: z.ZodEnum<{
920
+ insufficient_evidence: "insufficient_evidence";
921
+ invalid_evidence: "invalid_evidence";
922
+ out_of_authority: "out_of_authority";
923
+ partial: "partial";
924
+ refuted: "refuted";
925
+ requires_human_review: "requires_human_review";
926
+ supported: "supported";
927
+ }>;
928
+ evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
929
+ action: z.ZodEnum<{
930
+ auto_approve: "auto_approve";
931
+ auto_reject: "auto_reject";
932
+ needs_human_review: "needs_human_review";
933
+ }>;
934
+ totalBps: z.ZodNullable<z.ZodNumber>;
935
+ gates: z.ZodArray<z.ZodObject<{
936
+ code: z.ZodString;
937
+ outcome: z.ZodEnum<{
938
+ failed: "failed";
939
+ not_reached: "not_reached";
940
+ passed: "passed";
941
+ skipped: "skipped";
942
+ unevaluated: "unevaluated";
943
+ }>;
944
+ }, z.core.$loose>>;
945
+ criteria: z.ZodArray<z.ZodObject<{
946
+ code: z.ZodString;
947
+ scoreBps: z.ZodNullable<z.ZodNumber>;
948
+ pending: z.ZodBoolean;
949
+ capped: z.ZodBoolean;
950
+ }, z.core.$loose>>;
951
+ pendingTasks: z.ZodArray<z.ZodString>;
952
+ reasons: z.ZodArray<z.ZodObject<{
953
+ code: z.ZodString;
954
+ reason: z.ZodString;
955
+ class: z.ZodEnum<{
956
+ insufficient_evidence: "insufficient_evidence";
957
+ invalid_evidence: "invalid_evidence";
958
+ out_of_authority: "out_of_authority";
959
+ partial: "partial";
960
+ refuted: "refuted";
961
+ requires_human_review: "requires_human_review";
962
+ supported: "supported";
963
+ }>;
964
+ }, z.core.$loose>>;
965
+ }, z.core.$loose>>;
966
+ explanation: z.ZodNullable<z.ZodString>;
967
+ receipt: z.ZodNullable<z.ZodObject<{
968
+ cid: z.ZodString;
969
+ jws: z.ZodString;
970
+ }, z.core.$strip>>;
971
+ chainStatus: z.ZodEnum<{
972
+ blocked: "blocked";
973
+ held: "held";
974
+ owner_submitted: "owner_submitted";
975
+ pending: "pending";
976
+ skipped: "skipped";
977
+ submitted: "submitted";
978
+ }>;
979
+ erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
980
+ name: z.ZodString;
981
+ detail: z.ZodString;
982
+ }, z.core.$strip>>>;
983
+ }, z.core.$strip>>;
984
+ review: z.ZodNullable<z.ZodObject<{
985
+ pendingTasks: z.ZodArray<z.ZodObject<{
986
+ id: z.ZodString;
987
+ prompt: z.ZodString;
988
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
989
+ type: z.ZodLiteral<"boolean">;
990
+ }, z.core.$loose>, z.ZodObject<{
991
+ type: z.ZodLiteral<"enum">;
992
+ options: z.ZodArray<z.ZodString>;
993
+ }, z.core.$loose>, z.ZodObject<{
994
+ type: z.ZodLiteral<"number">;
995
+ }, z.core.$loose>, z.ZodObject<{
996
+ type: z.ZodLiteral<"text">;
997
+ }, z.core.$loose>], "type">;
998
+ }, z.core.$strip>>;
999
+ answeredAt: z.ZodNullable<z.ZodISODateTime>;
1000
+ foldedAt: z.ZodNullable<z.ZodISODateTime>;
1001
+ foldError: z.ZodNullable<z.ZodString>;
1002
+ answerBy: z.ZodNullable<z.ZodISODateTime>;
1003
+ }, z.core.$strip>>;
1004
+ payment: z.ZodNullable<z.ZodObject<{
1005
+ scheme: z.ZodEnum<{
1006
+ exact: "exact";
1007
+ "ixo-pay": "ixo-pay";
1008
+ "stripe-manual-capture": "stripe-manual-capture";
1009
+ }>;
1010
+ amount: z.ZodString;
1011
+ asset: z.ZodEnum<{
1012
+ upay: "upay";
1013
+ usd: "usd";
1014
+ usdc: "usdc";
1015
+ }>;
1016
+ settlementId: z.ZodNullable<z.ZodString>;
1017
+ status: z.ZodEnum<{
1018
+ failed: "failed";
1019
+ paid: "paid";
1020
+ partially_refunded: "partially_refunded";
1021
+ refunded: "refunded";
1022
+ released: "released";
1023
+ reserved: "reserved";
1024
+ settled: "settled";
1025
+ }>;
1026
+ transaction: z.ZodNullable<z.ZodString>;
1027
+ refundedAt: z.ZodNullable<z.ZodISODateTime>;
1028
+ refundId: z.ZodNullable<z.ZodString>;
1029
+ refundedAmountCents: z.ZodNullable<z.ZodNumber>;
1030
+ }, z.core.$strip>>;
1031
+ webhook: z.ZodNullable<z.ZodObject<{
1032
+ status: z.ZodEnum<{
1033
+ dead: "dead";
1034
+ delivered: "delivered";
1035
+ failed: "failed";
1036
+ pending: "pending";
1037
+ }>;
1038
+ attempts: z.ZodInt;
1039
+ }, z.core.$strip>>;
1040
+ error: z.ZodNullable<z.ZodObject<{
1041
+ code: z.ZodEnum<{
1042
+ body_mismatch: "body_mismatch";
1043
+ engine_rejected: "engine_rejected";
1044
+ invalid_facts: "invalid_facts";
1045
+ retries_exhausted: "retries_exhausted";
1046
+ }>;
1047
+ message: z.ZodString;
1048
+ }, z.core.$strip>>;
1049
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1050
+ createdAt: z.ZodISODateTime;
1051
+ decidedAt: z.ZodNullable<z.ZodISODateTime>;
1052
+ }, z.core.$strip>;
1053
+ export type ClaimRecord = z.infer<typeof ClaimRecord>;
1054
+ export declare const ClaimPage: z.ZodObject<{
1055
+ items: z.ZodArray<z.ZodObject<{
1056
+ claimId: z.ZodString;
1057
+ lane: z.ZodEnum<{
1058
+ api: "api";
1059
+ chain: "chain";
1060
+ }>;
1061
+ sourceId: z.ZodNullable<z.ZodString>;
1062
+ collectionId: z.ZodNullable<z.ZodString>;
1063
+ protocolDid: z.ZodString;
1064
+ submitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1065
+ submittedBy: z.ZodNullable<z.ZodString>;
1066
+ submittedVia: z.ZodNullable<z.ZodObject<{
1067
+ name: z.ZodString;
1068
+ verified: z.ZodBoolean;
1069
+ }, z.core.$strict>>;
1070
+ contentDigest: z.ZodNullable<z.ZodString>;
1071
+ status: z.ZodEnum<{
1072
+ failed: "failed";
1073
+ processed: "processed";
1074
+ processing: "processing";
1075
+ queued: "queued";
1076
+ }>;
1077
+ decision: z.ZodNullable<z.ZodObject<{
1078
+ status: z.ZodEnum<{
1079
+ content_mismatch: "content_mismatch";
1080
+ decided: "decided";
1081
+ invalid_facts: "invalid_facts";
1082
+ payload_too_large: "payload_too_large";
1083
+ pending_review: "pending_review";
1084
+ unusable: "unusable";
1085
+ }>;
1086
+ verdict: z.ZodNullable<z.ZodEnum<{
1087
+ approve: "approve";
1088
+ partial: "partial";
1089
+ reject: "reject";
1090
+ review: "review";
1091
+ }>>;
1092
+ rubricId: z.ZodNullable<z.ZodString>;
1093
+ factsDigest: z.ZodNullable<z.ZodString>;
1094
+ resultDigest: z.ZodNullable<z.ZodString>;
1095
+ decision: z.ZodNullable<z.ZodObject<{
1096
+ status: z.ZodEnum<{
1097
+ decided: "decided";
1098
+ pending_review: "pending_review";
1099
+ unusable: "unusable";
1100
+ }>;
1101
+ verdict: z.ZodEnum<{
1102
+ approve: "approve";
1103
+ partial: "partial";
1104
+ reject: "reject";
1105
+ review: "review";
1106
+ }>;
1107
+ class: z.ZodEnum<{
1108
+ insufficient_evidence: "insufficient_evidence";
1109
+ invalid_evidence: "invalid_evidence";
1110
+ out_of_authority: "out_of_authority";
1111
+ partial: "partial";
1112
+ refuted: "refuted";
1113
+ requires_human_review: "requires_human_review";
1114
+ supported: "supported";
1115
+ }>;
1116
+ evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
1117
+ action: z.ZodEnum<{
1118
+ auto_approve: "auto_approve";
1119
+ auto_reject: "auto_reject";
1120
+ needs_human_review: "needs_human_review";
1121
+ }>;
1122
+ totalBps: z.ZodNullable<z.ZodNumber>;
1123
+ gates: z.ZodArray<z.ZodObject<{
1124
+ code: z.ZodString;
1125
+ outcome: z.ZodEnum<{
1126
+ failed: "failed";
1127
+ not_reached: "not_reached";
1128
+ passed: "passed";
1129
+ skipped: "skipped";
1130
+ unevaluated: "unevaluated";
1131
+ }>;
1132
+ }, z.core.$loose>>;
1133
+ criteria: z.ZodArray<z.ZodObject<{
1134
+ code: z.ZodString;
1135
+ scoreBps: z.ZodNullable<z.ZodNumber>;
1136
+ pending: z.ZodBoolean;
1137
+ capped: z.ZodBoolean;
1138
+ }, z.core.$loose>>;
1139
+ pendingTasks: z.ZodArray<z.ZodString>;
1140
+ reasons: z.ZodArray<z.ZodObject<{
1141
+ code: z.ZodString;
1142
+ reason: z.ZodString;
1143
+ class: z.ZodEnum<{
1144
+ insufficient_evidence: "insufficient_evidence";
1145
+ invalid_evidence: "invalid_evidence";
1146
+ out_of_authority: "out_of_authority";
1147
+ partial: "partial";
1148
+ refuted: "refuted";
1149
+ requires_human_review: "requires_human_review";
1150
+ supported: "supported";
1151
+ }>;
1152
+ }, z.core.$loose>>;
1153
+ }, z.core.$loose>>;
1154
+ explanation: z.ZodNullable<z.ZodString>;
1155
+ receipt: z.ZodNullable<z.ZodObject<{
1156
+ cid: z.ZodString;
1157
+ jws: z.ZodString;
1158
+ }, z.core.$strip>>;
1159
+ chainStatus: z.ZodEnum<{
1160
+ blocked: "blocked";
1161
+ held: "held";
1162
+ owner_submitted: "owner_submitted";
1163
+ pending: "pending";
1164
+ skipped: "skipped";
1165
+ submitted: "submitted";
1166
+ }>;
1167
+ erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1168
+ name: z.ZodString;
1169
+ detail: z.ZodString;
1170
+ }, z.core.$strip>>>;
1171
+ }, z.core.$strip>>;
1172
+ review: z.ZodNullable<z.ZodObject<{
1173
+ pendingTasks: z.ZodArray<z.ZodObject<{
1174
+ id: z.ZodString;
1175
+ prompt: z.ZodString;
1176
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1177
+ type: z.ZodLiteral<"boolean">;
1178
+ }, z.core.$loose>, z.ZodObject<{
1179
+ type: z.ZodLiteral<"enum">;
1180
+ options: z.ZodArray<z.ZodString>;
1181
+ }, z.core.$loose>, z.ZodObject<{
1182
+ type: z.ZodLiteral<"number">;
1183
+ }, z.core.$loose>, z.ZodObject<{
1184
+ type: z.ZodLiteral<"text">;
1185
+ }, z.core.$loose>], "type">;
1186
+ }, z.core.$strip>>;
1187
+ answeredAt: z.ZodNullable<z.ZodISODateTime>;
1188
+ foldedAt: z.ZodNullable<z.ZodISODateTime>;
1189
+ foldError: z.ZodNullable<z.ZodString>;
1190
+ answerBy: z.ZodNullable<z.ZodISODateTime>;
1191
+ }, z.core.$strip>>;
1192
+ payment: z.ZodNullable<z.ZodObject<{
1193
+ scheme: z.ZodEnum<{
1194
+ exact: "exact";
1195
+ "ixo-pay": "ixo-pay";
1196
+ "stripe-manual-capture": "stripe-manual-capture";
1197
+ }>;
1198
+ amount: z.ZodString;
1199
+ asset: z.ZodEnum<{
1200
+ upay: "upay";
1201
+ usd: "usd";
1202
+ usdc: "usdc";
1203
+ }>;
1204
+ settlementId: z.ZodNullable<z.ZodString>;
1205
+ status: z.ZodEnum<{
1206
+ failed: "failed";
1207
+ paid: "paid";
1208
+ partially_refunded: "partially_refunded";
1209
+ refunded: "refunded";
1210
+ released: "released";
1211
+ reserved: "reserved";
1212
+ settled: "settled";
1213
+ }>;
1214
+ transaction: z.ZodNullable<z.ZodString>;
1215
+ refundedAt: z.ZodNullable<z.ZodISODateTime>;
1216
+ refundId: z.ZodNullable<z.ZodString>;
1217
+ refundedAmountCents: z.ZodNullable<z.ZodNumber>;
1218
+ }, z.core.$strip>>;
1219
+ webhook: z.ZodNullable<z.ZodObject<{
1220
+ status: z.ZodEnum<{
1221
+ dead: "dead";
1222
+ delivered: "delivered";
1223
+ failed: "failed";
1224
+ pending: "pending";
1225
+ }>;
1226
+ attempts: z.ZodInt;
1227
+ }, z.core.$strip>>;
1228
+ error: z.ZodNullable<z.ZodObject<{
1229
+ code: z.ZodEnum<{
1230
+ body_mismatch: "body_mismatch";
1231
+ engine_rejected: "engine_rejected";
1232
+ invalid_facts: "invalid_facts";
1233
+ retries_exhausted: "retries_exhausted";
1234
+ }>;
1235
+ message: z.ZodString;
1236
+ }, z.core.$strip>>;
1237
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1238
+ createdAt: z.ZodISODateTime;
1239
+ decidedAt: z.ZodNullable<z.ZodISODateTime>;
1240
+ }, z.core.$strip>>;
1241
+ nextCursor: z.ZodNullable<z.ZodString>;
1242
+ }, z.core.$strip>;
1243
+ export type ClaimPage = z.infer<typeof ClaimPage>;
1244
+ /**
1245
+ * v1.2.1 — the operator's read of a record (`/admin/claims*`): the owning source's display name
1246
+ * beside its `sourceId`, since an operator is no member of its customers' sources and cannot look
1247
+ * the name up. `null` for a chain claim, which no source owns.
1248
+ */
1249
+ export declare const AdminClaimRecord: z.ZodObject<{
1250
+ claimId: z.ZodString;
1251
+ lane: z.ZodEnum<{
1252
+ api: "api";
1253
+ chain: "chain";
1254
+ }>;
1255
+ sourceId: z.ZodNullable<z.ZodString>;
1256
+ collectionId: z.ZodNullable<z.ZodString>;
1257
+ protocolDid: z.ZodString;
1258
+ submitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1259
+ submittedBy: z.ZodNullable<z.ZodString>;
1260
+ submittedVia: z.ZodNullable<z.ZodObject<{
1261
+ name: z.ZodString;
1262
+ verified: z.ZodBoolean;
1263
+ }, z.core.$strict>>;
1264
+ contentDigest: z.ZodNullable<z.ZodString>;
1265
+ status: z.ZodEnum<{
1266
+ failed: "failed";
1267
+ processed: "processed";
1268
+ processing: "processing";
1269
+ queued: "queued";
1270
+ }>;
1271
+ decision: z.ZodNullable<z.ZodObject<{
1272
+ status: z.ZodEnum<{
1273
+ content_mismatch: "content_mismatch";
1274
+ decided: "decided";
1275
+ invalid_facts: "invalid_facts";
1276
+ payload_too_large: "payload_too_large";
1277
+ pending_review: "pending_review";
1278
+ unusable: "unusable";
1279
+ }>;
1280
+ verdict: z.ZodNullable<z.ZodEnum<{
1281
+ approve: "approve";
1282
+ partial: "partial";
1283
+ reject: "reject";
1284
+ review: "review";
1285
+ }>>;
1286
+ rubricId: z.ZodNullable<z.ZodString>;
1287
+ factsDigest: z.ZodNullable<z.ZodString>;
1288
+ resultDigest: z.ZodNullable<z.ZodString>;
1289
+ decision: z.ZodNullable<z.ZodObject<{
1290
+ status: z.ZodEnum<{
1291
+ decided: "decided";
1292
+ pending_review: "pending_review";
1293
+ unusable: "unusable";
1294
+ }>;
1295
+ verdict: z.ZodEnum<{
1296
+ approve: "approve";
1297
+ partial: "partial";
1298
+ reject: "reject";
1299
+ review: "review";
1300
+ }>;
1301
+ class: z.ZodEnum<{
1302
+ insufficient_evidence: "insufficient_evidence";
1303
+ invalid_evidence: "invalid_evidence";
1304
+ out_of_authority: "out_of_authority";
1305
+ partial: "partial";
1306
+ refuted: "refuted";
1307
+ requires_human_review: "requires_human_review";
1308
+ supported: "supported";
1309
+ }>;
1310
+ evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
1311
+ action: z.ZodEnum<{
1312
+ auto_approve: "auto_approve";
1313
+ auto_reject: "auto_reject";
1314
+ needs_human_review: "needs_human_review";
1315
+ }>;
1316
+ totalBps: z.ZodNullable<z.ZodNumber>;
1317
+ gates: z.ZodArray<z.ZodObject<{
1318
+ code: z.ZodString;
1319
+ outcome: z.ZodEnum<{
1320
+ failed: "failed";
1321
+ not_reached: "not_reached";
1322
+ passed: "passed";
1323
+ skipped: "skipped";
1324
+ unevaluated: "unevaluated";
1325
+ }>;
1326
+ }, z.core.$loose>>;
1327
+ criteria: z.ZodArray<z.ZodObject<{
1328
+ code: z.ZodString;
1329
+ scoreBps: z.ZodNullable<z.ZodNumber>;
1330
+ pending: z.ZodBoolean;
1331
+ capped: z.ZodBoolean;
1332
+ }, z.core.$loose>>;
1333
+ pendingTasks: z.ZodArray<z.ZodString>;
1334
+ reasons: z.ZodArray<z.ZodObject<{
1335
+ code: z.ZodString;
1336
+ reason: z.ZodString;
1337
+ class: z.ZodEnum<{
1338
+ insufficient_evidence: "insufficient_evidence";
1339
+ invalid_evidence: "invalid_evidence";
1340
+ out_of_authority: "out_of_authority";
1341
+ partial: "partial";
1342
+ refuted: "refuted";
1343
+ requires_human_review: "requires_human_review";
1344
+ supported: "supported";
1345
+ }>;
1346
+ }, z.core.$loose>>;
1347
+ }, z.core.$loose>>;
1348
+ explanation: z.ZodNullable<z.ZodString>;
1349
+ receipt: z.ZodNullable<z.ZodObject<{
1350
+ cid: z.ZodString;
1351
+ jws: z.ZodString;
1352
+ }, z.core.$strip>>;
1353
+ chainStatus: z.ZodEnum<{
1354
+ blocked: "blocked";
1355
+ held: "held";
1356
+ owner_submitted: "owner_submitted";
1357
+ pending: "pending";
1358
+ skipped: "skipped";
1359
+ submitted: "submitted";
1360
+ }>;
1361
+ erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1362
+ name: z.ZodString;
1363
+ detail: z.ZodString;
1364
+ }, z.core.$strip>>>;
1365
+ }, z.core.$strip>>;
1366
+ review: z.ZodNullable<z.ZodObject<{
1367
+ pendingTasks: z.ZodArray<z.ZodObject<{
1368
+ id: z.ZodString;
1369
+ prompt: z.ZodString;
1370
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1371
+ type: z.ZodLiteral<"boolean">;
1372
+ }, z.core.$loose>, z.ZodObject<{
1373
+ type: z.ZodLiteral<"enum">;
1374
+ options: z.ZodArray<z.ZodString>;
1375
+ }, z.core.$loose>, z.ZodObject<{
1376
+ type: z.ZodLiteral<"number">;
1377
+ }, z.core.$loose>, z.ZodObject<{
1378
+ type: z.ZodLiteral<"text">;
1379
+ }, z.core.$loose>], "type">;
1380
+ }, z.core.$strip>>;
1381
+ answeredAt: z.ZodNullable<z.ZodISODateTime>;
1382
+ foldedAt: z.ZodNullable<z.ZodISODateTime>;
1383
+ foldError: z.ZodNullable<z.ZodString>;
1384
+ answerBy: z.ZodNullable<z.ZodISODateTime>;
1385
+ }, z.core.$strip>>;
1386
+ payment: z.ZodNullable<z.ZodObject<{
1387
+ scheme: z.ZodEnum<{
1388
+ exact: "exact";
1389
+ "ixo-pay": "ixo-pay";
1390
+ "stripe-manual-capture": "stripe-manual-capture";
1391
+ }>;
1392
+ amount: z.ZodString;
1393
+ asset: z.ZodEnum<{
1394
+ upay: "upay";
1395
+ usd: "usd";
1396
+ usdc: "usdc";
1397
+ }>;
1398
+ settlementId: z.ZodNullable<z.ZodString>;
1399
+ status: z.ZodEnum<{
1400
+ failed: "failed";
1401
+ paid: "paid";
1402
+ partially_refunded: "partially_refunded";
1403
+ refunded: "refunded";
1404
+ released: "released";
1405
+ reserved: "reserved";
1406
+ settled: "settled";
1407
+ }>;
1408
+ transaction: z.ZodNullable<z.ZodString>;
1409
+ refundedAt: z.ZodNullable<z.ZodISODateTime>;
1410
+ refundId: z.ZodNullable<z.ZodString>;
1411
+ refundedAmountCents: z.ZodNullable<z.ZodNumber>;
1412
+ }, z.core.$strip>>;
1413
+ webhook: z.ZodNullable<z.ZodObject<{
1414
+ status: z.ZodEnum<{
1415
+ dead: "dead";
1416
+ delivered: "delivered";
1417
+ failed: "failed";
1418
+ pending: "pending";
1419
+ }>;
1420
+ attempts: z.ZodInt;
1421
+ }, z.core.$strip>>;
1422
+ error: z.ZodNullable<z.ZodObject<{
1423
+ code: z.ZodEnum<{
1424
+ body_mismatch: "body_mismatch";
1425
+ engine_rejected: "engine_rejected";
1426
+ invalid_facts: "invalid_facts";
1427
+ retries_exhausted: "retries_exhausted";
1428
+ }>;
1429
+ message: z.ZodString;
1430
+ }, z.core.$strip>>;
1431
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1432
+ createdAt: z.ZodISODateTime;
1433
+ decidedAt: z.ZodNullable<z.ZodISODateTime>;
1434
+ sourceName: z.ZodNullable<z.ZodString>;
1435
+ }, z.core.$strip>;
1436
+ export type AdminClaimRecord = z.infer<typeof AdminClaimRecord>;
1437
+ export declare const AdminClaimPage: z.ZodObject<{
1438
+ items: z.ZodArray<z.ZodObject<{
1439
+ claimId: z.ZodString;
1440
+ lane: z.ZodEnum<{
1441
+ api: "api";
1442
+ chain: "chain";
1443
+ }>;
1444
+ sourceId: z.ZodNullable<z.ZodString>;
1445
+ collectionId: z.ZodNullable<z.ZodString>;
1446
+ protocolDid: z.ZodString;
1447
+ submitter: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1448
+ submittedBy: z.ZodNullable<z.ZodString>;
1449
+ submittedVia: z.ZodNullable<z.ZodObject<{
1450
+ name: z.ZodString;
1451
+ verified: z.ZodBoolean;
1452
+ }, z.core.$strict>>;
1453
+ contentDigest: z.ZodNullable<z.ZodString>;
1454
+ status: z.ZodEnum<{
1455
+ failed: "failed";
1456
+ processed: "processed";
1457
+ processing: "processing";
1458
+ queued: "queued";
1459
+ }>;
1460
+ decision: z.ZodNullable<z.ZodObject<{
1461
+ status: z.ZodEnum<{
1462
+ content_mismatch: "content_mismatch";
1463
+ decided: "decided";
1464
+ invalid_facts: "invalid_facts";
1465
+ payload_too_large: "payload_too_large";
1466
+ pending_review: "pending_review";
1467
+ unusable: "unusable";
1468
+ }>;
1469
+ verdict: z.ZodNullable<z.ZodEnum<{
1470
+ approve: "approve";
1471
+ partial: "partial";
1472
+ reject: "reject";
1473
+ review: "review";
1474
+ }>>;
1475
+ rubricId: z.ZodNullable<z.ZodString>;
1476
+ factsDigest: z.ZodNullable<z.ZodString>;
1477
+ resultDigest: z.ZodNullable<z.ZodString>;
1478
+ decision: z.ZodNullable<z.ZodObject<{
1479
+ status: z.ZodEnum<{
1480
+ decided: "decided";
1481
+ pending_review: "pending_review";
1482
+ unusable: "unusable";
1483
+ }>;
1484
+ verdict: z.ZodEnum<{
1485
+ approve: "approve";
1486
+ partial: "partial";
1487
+ reject: "reject";
1488
+ review: "review";
1489
+ }>;
1490
+ class: z.ZodEnum<{
1491
+ insufficient_evidence: "insufficient_evidence";
1492
+ invalid_evidence: "invalid_evidence";
1493
+ out_of_authority: "out_of_authority";
1494
+ partial: "partial";
1495
+ refuted: "refuted";
1496
+ requires_human_review: "requires_human_review";
1497
+ supported: "supported";
1498
+ }>;
1499
+ evaluationStatus: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<5>]>;
1500
+ action: z.ZodEnum<{
1501
+ auto_approve: "auto_approve";
1502
+ auto_reject: "auto_reject";
1503
+ needs_human_review: "needs_human_review";
1504
+ }>;
1505
+ totalBps: z.ZodNullable<z.ZodNumber>;
1506
+ gates: z.ZodArray<z.ZodObject<{
1507
+ code: z.ZodString;
1508
+ outcome: z.ZodEnum<{
1509
+ failed: "failed";
1510
+ not_reached: "not_reached";
1511
+ passed: "passed";
1512
+ skipped: "skipped";
1513
+ unevaluated: "unevaluated";
1514
+ }>;
1515
+ }, z.core.$loose>>;
1516
+ criteria: z.ZodArray<z.ZodObject<{
1517
+ code: z.ZodString;
1518
+ scoreBps: z.ZodNullable<z.ZodNumber>;
1519
+ pending: z.ZodBoolean;
1520
+ capped: z.ZodBoolean;
1521
+ }, z.core.$loose>>;
1522
+ pendingTasks: z.ZodArray<z.ZodString>;
1523
+ reasons: z.ZodArray<z.ZodObject<{
1524
+ code: z.ZodString;
1525
+ reason: z.ZodString;
1526
+ class: z.ZodEnum<{
1527
+ insufficient_evidence: "insufficient_evidence";
1528
+ invalid_evidence: "invalid_evidence";
1529
+ out_of_authority: "out_of_authority";
1530
+ partial: "partial";
1531
+ refuted: "refuted";
1532
+ requires_human_review: "requires_human_review";
1533
+ supported: "supported";
1534
+ }>;
1535
+ }, z.core.$loose>>;
1536
+ }, z.core.$loose>>;
1537
+ explanation: z.ZodNullable<z.ZodString>;
1538
+ receipt: z.ZodNullable<z.ZodObject<{
1539
+ cid: z.ZodString;
1540
+ jws: z.ZodString;
1541
+ }, z.core.$strip>>;
1542
+ chainStatus: z.ZodEnum<{
1543
+ blocked: "blocked";
1544
+ held: "held";
1545
+ owner_submitted: "owner_submitted";
1546
+ pending: "pending";
1547
+ skipped: "skipped";
1548
+ submitted: "submitted";
1549
+ }>;
1550
+ erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1551
+ name: z.ZodString;
1552
+ detail: z.ZodString;
1553
+ }, z.core.$strip>>>;
1554
+ }, z.core.$strip>>;
1555
+ review: z.ZodNullable<z.ZodObject<{
1556
+ pendingTasks: z.ZodArray<z.ZodObject<{
1557
+ id: z.ZodString;
1558
+ prompt: z.ZodString;
1559
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1560
+ type: z.ZodLiteral<"boolean">;
1561
+ }, z.core.$loose>, z.ZodObject<{
1562
+ type: z.ZodLiteral<"enum">;
1563
+ options: z.ZodArray<z.ZodString>;
1564
+ }, z.core.$loose>, z.ZodObject<{
1565
+ type: z.ZodLiteral<"number">;
1566
+ }, z.core.$loose>, z.ZodObject<{
1567
+ type: z.ZodLiteral<"text">;
1568
+ }, z.core.$loose>], "type">;
1569
+ }, z.core.$strip>>;
1570
+ answeredAt: z.ZodNullable<z.ZodISODateTime>;
1571
+ foldedAt: z.ZodNullable<z.ZodISODateTime>;
1572
+ foldError: z.ZodNullable<z.ZodString>;
1573
+ answerBy: z.ZodNullable<z.ZodISODateTime>;
1574
+ }, z.core.$strip>>;
1575
+ payment: z.ZodNullable<z.ZodObject<{
1576
+ scheme: z.ZodEnum<{
1577
+ exact: "exact";
1578
+ "ixo-pay": "ixo-pay";
1579
+ "stripe-manual-capture": "stripe-manual-capture";
1580
+ }>;
1581
+ amount: z.ZodString;
1582
+ asset: z.ZodEnum<{
1583
+ upay: "upay";
1584
+ usd: "usd";
1585
+ usdc: "usdc";
1586
+ }>;
1587
+ settlementId: z.ZodNullable<z.ZodString>;
1588
+ status: z.ZodEnum<{
1589
+ failed: "failed";
1590
+ paid: "paid";
1591
+ partially_refunded: "partially_refunded";
1592
+ refunded: "refunded";
1593
+ released: "released";
1594
+ reserved: "reserved";
1595
+ settled: "settled";
1596
+ }>;
1597
+ transaction: z.ZodNullable<z.ZodString>;
1598
+ refundedAt: z.ZodNullable<z.ZodISODateTime>;
1599
+ refundId: z.ZodNullable<z.ZodString>;
1600
+ refundedAmountCents: z.ZodNullable<z.ZodNumber>;
1601
+ }, z.core.$strip>>;
1602
+ webhook: z.ZodNullable<z.ZodObject<{
1603
+ status: z.ZodEnum<{
1604
+ dead: "dead";
1605
+ delivered: "delivered";
1606
+ failed: "failed";
1607
+ pending: "pending";
1608
+ }>;
1609
+ attempts: z.ZodInt;
1610
+ }, z.core.$strip>>;
1611
+ error: z.ZodNullable<z.ZodObject<{
1612
+ code: z.ZodEnum<{
1613
+ body_mismatch: "body_mismatch";
1614
+ engine_rejected: "engine_rejected";
1615
+ invalid_facts: "invalid_facts";
1616
+ retries_exhausted: "retries_exhausted";
1617
+ }>;
1618
+ message: z.ZodString;
1619
+ }, z.core.$strip>>;
1620
+ metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1621
+ createdAt: z.ZodISODateTime;
1622
+ decidedAt: z.ZodNullable<z.ZodISODateTime>;
1623
+ sourceName: z.ZodNullable<z.ZodString>;
1624
+ }, z.core.$strip>>;
1625
+ nextCursor: z.ZodNullable<z.ZodString>;
1626
+ }, z.core.$strip>;
1627
+ /** `GET /v1/api/claims` filters (§4.2); newest first, keyset (§4.1). Loose: an unknown
1628
+ * parameter is ignored, as HTTP caches and tracing proxies add their own. `lane` picks one lane;
1629
+ * absent, a console member gets both — the source's API claims and its linked collections' chain
1630
+ * claims (contracts v1.2) — and an API key `api`, so an integration written before 1.2 sees no
1631
+ * chain record it did not ask for (`lane=chain`). `collectionId` narrows to one linked
1632
+ * collection's chain claims. */
1633
+ export declare const ListClaimsQuery: z.ZodObject<{
1634
+ lane: z.ZodOptional<z.ZodEnum<{
1635
+ api: "api";
1636
+ chain: "chain";
1637
+ }>>;
1638
+ collectionId: z.ZodOptional<z.ZodString>;
1639
+ status: z.ZodOptional<z.ZodEnum<{
1640
+ failed: "failed";
1641
+ processed: "processed";
1642
+ processing: "processing";
1643
+ queued: "queued";
1644
+ }>>;
1645
+ decision: z.ZodOptional<z.ZodEnum<{
1646
+ content_mismatch: "content_mismatch";
1647
+ decided: "decided";
1648
+ invalid_facts: "invalid_facts";
1649
+ payload_too_large: "payload_too_large";
1650
+ pending_review: "pending_review";
1651
+ unusable: "unusable";
1652
+ }>>;
1653
+ protocol: z.ZodOptional<z.ZodString>;
1654
+ verdict: z.ZodOptional<z.ZodEnum<{
1655
+ approve: "approve";
1656
+ partial: "partial";
1657
+ reject: "reject";
1658
+ review: "review";
1659
+ }>>;
1660
+ since: z.ZodOptional<z.ZodISODateTime>;
1661
+ until: z.ZodOptional<z.ZodISODateTime>;
1662
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1663
+ cursor: z.ZodOptional<z.ZodString>;
1664
+ }, z.core.$strip>;
1665
+ export type ListClaimsQuery = z.infer<typeof ListClaimsQuery>;
1666
+ /** `GET /v1/api/admin/claims` (contracts v1.2): the source list's filters over EVERY source and
1667
+ * every watched collection, plus `sourceId` — which finds API claims only. */
1668
+ export declare const AdminListClaimsQuery: z.ZodObject<{
1669
+ lane: z.ZodOptional<z.ZodEnum<{
1670
+ api: "api";
1671
+ chain: "chain";
1672
+ }>>;
1673
+ collectionId: z.ZodOptional<z.ZodString>;
1674
+ status: z.ZodOptional<z.ZodEnum<{
1675
+ failed: "failed";
1676
+ processed: "processed";
1677
+ processing: "processing";
1678
+ queued: "queued";
1679
+ }>>;
1680
+ decision: z.ZodOptional<z.ZodEnum<{
1681
+ content_mismatch: "content_mismatch";
1682
+ decided: "decided";
1683
+ invalid_facts: "invalid_facts";
1684
+ payload_too_large: "payload_too_large";
1685
+ pending_review: "pending_review";
1686
+ unusable: "unusable";
1687
+ }>>;
1688
+ protocol: z.ZodOptional<z.ZodString>;
1689
+ verdict: z.ZodOptional<z.ZodEnum<{
1690
+ approve: "approve";
1691
+ partial: "partial";
1692
+ reject: "reject";
1693
+ review: "review";
1694
+ }>>;
1695
+ since: z.ZodOptional<z.ZodISODateTime>;
1696
+ until: z.ZodOptional<z.ZodISODateTime>;
1697
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1698
+ cursor: z.ZodOptional<z.ZodString>;
1699
+ sourceId: z.ZodOptional<z.ZodString>;
1700
+ }, z.core.$strip>;
1701
+ export type AdminListClaimsQuery = z.infer<typeof AdminListClaimsQuery>;
1702
+ export declare const ClaimEventType: z.ZodEnum<{
1703
+ accepted: "accepted";
1704
+ chain_submitted: "chain_submitted";
1705
+ decided: "decided";
1706
+ erased: "erased";
1707
+ facts_produced: "facts_produced";
1708
+ failed: "failed";
1709
+ folded: "folded";
1710
+ paid: "paid";
1711
+ review_answered: "review_answered";
1712
+ review_expired: "review_expired";
1713
+ review_required: "review_required";
1714
+ unusable: "unusable";
1715
+ webhook_attempt: "webhook_attempt";
1716
+ }>;
1717
+ export type ClaimEventType = z.infer<typeof ClaimEventType>;
1718
+ /** One `api_events` row — or, for a chain claim, one step derived from its ledger rows' times.
1719
+ * `data` carries names, codes, durations and counts — for `facts_produced` the fact names and
1720
+ * their timings, NEVER a value (§4.2). `accepted` carries `protocolDid`, and `via:
1721
+ * "oauth:<client_id>"` (1.4.6) when an AI app submitted the claim over OAuth. */
1722
+ export declare const ClaimEvent: z.ZodObject<{
1723
+ id: z.ZodString;
1724
+ type: z.ZodEnum<{
1725
+ accepted: "accepted";
1726
+ chain_submitted: "chain_submitted";
1727
+ decided: "decided";
1728
+ erased: "erased";
1729
+ facts_produced: "facts_produced";
1730
+ failed: "failed";
1731
+ folded: "folded";
1732
+ paid: "paid";
1733
+ review_answered: "review_answered";
1734
+ review_expired: "review_expired";
1735
+ review_required: "review_required";
1736
+ unusable: "unusable";
1737
+ webhook_attempt: "webhook_attempt";
1738
+ }>;
1739
+ at: z.ZodISODateTime;
1740
+ data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1741
+ }, z.core.$strip>;
1742
+ export type ClaimEvent = z.infer<typeof ClaimEvent>;
1743
+ export declare const ClaimEvents: z.ZodObject<{
1744
+ claimId: z.ZodString;
1745
+ items: z.ZodArray<z.ZodObject<{
1746
+ id: z.ZodString;
1747
+ type: z.ZodEnum<{
1748
+ accepted: "accepted";
1749
+ chain_submitted: "chain_submitted";
1750
+ decided: "decided";
1751
+ erased: "erased";
1752
+ facts_produced: "facts_produced";
1753
+ failed: "failed";
1754
+ folded: "folded";
1755
+ paid: "paid";
1756
+ review_answered: "review_answered";
1757
+ review_expired: "review_expired";
1758
+ review_required: "review_required";
1759
+ unusable: "unusable";
1760
+ webhook_attempt: "webhook_attempt";
1761
+ }>;
1762
+ at: z.ZodISODateTime;
1763
+ data: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1764
+ }, z.core.$strip>>;
1765
+ }, z.core.$strip>;
1766
+ export type ClaimEvents = z.infer<typeof ClaimEvents>;
1767
+ /** Everything needed to verify offline: the engine's receipt and where its keys live. */
1768
+ export declare const Receipt: z.ZodObject<{
1769
+ cid: z.ZodString;
1770
+ jws: z.ZodString;
1771
+ issuerKeysUrl: z.ZodURL;
1772
+ verifyUrl: z.ZodURL;
1773
+ }, z.core.$strip>;
1774
+ export type Receipt = z.infer<typeof Receipt>;
1775
+ /**
1776
+ * Mirrors the chain lane's review body (`routes/v1/reviews.ts`): answers cover EXACTLY the
1777
+ * pending tasks, and `attestation` — the reviewer's signed statement — is required: a member's
1778
+ * from its registered `did:key` (§10), an organisation controller's (a root, 1.11.0) from its
1779
+ * `did:ixo` with a `kid` on that DID's document. It is typed optional only so a missing one
1780
+ * answers `ATTESTATION_REQUIRED` rather than a generic `VALIDATION`, as on the chain lane.
1781
+ */
1782
+ export declare const ReviewRequest: z.ZodObject<{
1783
+ answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1784
+ attestation: z.ZodOptional<z.ZodString>;
1785
+ reviewerGrant: z.ZodOptional<z.ZodString>;
1786
+ answeredAgainst: z.ZodOptional<z.ZodString>;
1787
+ }, z.core.$strict>;
1788
+ export type ReviewRequest = z.infer<typeof ReviewRequest>;
1789
+ /** The stored review, as the chain lane's `reviewBody` shows it — the JWS itself never leaves. */
1790
+ export declare const ReviewRow: z.ZodObject<{
1791
+ claimId: z.ZodString;
1792
+ answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodBoolean, z.ZodString]>>;
1793
+ reviewerDid: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
1794
+ answeredAt: z.ZodISODateTime;
1795
+ foldedAt: z.ZodNullable<z.ZodISODateTime>;
1796
+ foldError: z.ZodNullable<z.ZodString>;
1797
+ }, z.core.$strip>;
1798
+ export type ReviewRow = z.infer<typeof ReviewRow>;
1799
+ /**
1800
+ * Why the CALLER cannot answer reviews on this oracle (1.15.0), known before it tries — only what is
1801
+ * cheap and certain: `oracle-owner`, it is the account that registered this oracle with the decision
1802
+ * engine, which never folds an answer from the oracle's own side (`403 REVIEWER_NOT_AUTHORIZED`,
1803
+ * `details.reason: "oracle-owner"`); `not-reviewer`, the caller does not sign answers — an API key
1804
+ * (which may still relay a member-signed answer), or a member or AI app without `claims/review`.
1805
+ */
1806
+ export declare const ReviewBlock: z.ZodEnum<{
1807
+ "not-reviewer": "not-reviewer";
1808
+ "oracle-owner": "oracle-owner";
1809
+ }>;
1810
+ export type ReviewBlock = z.infer<typeof ReviewBlock>;
1811
+ /** Can the caller answer this review? `reason` is set iff `ok` is false. */
1812
+ export declare const CanAnswer: z.ZodObject<{
1813
+ ok: z.ZodBoolean;
1814
+ reason: z.ZodOptional<z.ZodEnum<{
1815
+ "not-reviewer": "not-reviewer";
1816
+ "oracle-owner": "oracle-owner";
1817
+ }>>;
1818
+ }, z.core.$strip>;
1819
+ export type CanAnswer = z.infer<typeof CanAnswer>;
1820
+ export declare const ReviewView: z.ZodObject<{
1821
+ claimId: z.ZodString;
1822
+ protocolDid: z.ZodString;
1823
+ resultDigest: z.ZodString;
1824
+ pendingTasks: z.ZodArray<z.ZodObject<{
1825
+ id: z.ZodString;
1826
+ prompt: z.ZodString;
1827
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1828
+ type: z.ZodLiteral<"boolean">;
1829
+ }, z.core.$loose>, z.ZodObject<{
1830
+ type: z.ZodLiteral<"enum">;
1831
+ options: z.ZodArray<z.ZodString>;
1832
+ }, z.core.$loose>, z.ZodObject<{
1833
+ type: z.ZodLiteral<"number">;
1834
+ }, z.core.$loose>, z.ZodObject<{
1835
+ type: z.ZodLiteral<"text">;
1836
+ }, z.core.$loose>], "type">;
1837
+ }, z.core.$strip>>;
1838
+ answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1839
+ files: z.ZodArray<z.ZodObject<{
1840
+ question: z.ZodString;
1841
+ name: z.ZodNullable<z.ZodString>;
1842
+ mediaType: z.ZodNullable<z.ZodString>;
1843
+ url: z.ZodURL;
1844
+ }, z.core.$strip>>;
1845
+ submittedAt: z.ZodISODateTime;
1846
+ answerBy: z.ZodNullable<z.ZodISODateTime>;
1847
+ canAnswer: z.ZodObject<{
1848
+ ok: z.ZodBoolean;
1849
+ reason: z.ZodOptional<z.ZodEnum<{
1850
+ "not-reviewer": "not-reviewer";
1851
+ "oracle-owner": "oracle-owner";
1852
+ }>>;
1853
+ }, z.core.$strip>;
1854
+ erroredFacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1855
+ name: z.ZodString;
1856
+ detail: z.ZodString;
1857
+ }, z.core.$strip>>>;
1858
+ duplicates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1859
+ taskId: z.ZodString;
1860
+ ruleId: z.ZodString;
1861
+ score: z.ZodOptional<z.ZodNumber>;
1862
+ prior: z.ZodObject<{
1863
+ outcome: z.ZodNullable<z.ZodEnum<{
1864
+ approve: "approve";
1865
+ partial: "partial";
1866
+ reject: "reject";
1867
+ review: "review";
1868
+ }>>;
1869
+ claimId: z.ZodOptional<z.ZodString>;
1870
+ submittedAt: z.ZodOptional<z.ZodISODateTime>;
1871
+ files: z.ZodOptional<z.ZodArray<z.ZodObject<{
1872
+ question: z.ZodString;
1873
+ name: z.ZodNullable<z.ZodString>;
1874
+ mediaType: z.ZodNullable<z.ZodString>;
1875
+ url: z.ZodURL;
1876
+ }, z.core.$strip>>>;
1877
+ }, z.core.$strip>;
1878
+ }, z.core.$strip>>>;
1879
+ }, z.core.$strip>;
1880
+ export type ReviewView = z.infer<typeof ReviewView>;
1881
+ /** The engine's decision report in JSON (`Accept: application/json`), proxied as-is — LOOSE
1882
+ * because its body is the engine's to grow; only the keys a client joins on are pinned. */
1883
+ export declare const DecisionReport: z.ZodObject<{
1884
+ claimId: z.ZodString;
1885
+ verdict: z.ZodNullable<z.ZodEnum<{
1886
+ approve: "approve";
1887
+ partial: "partial";
1888
+ reject: "reject";
1889
+ review: "review";
1890
+ }>>;
1891
+ }, z.core.$loose>;
1892
+ export type DecisionReport = z.infer<typeof DecisionReport>;
1893
+ /** `url` is a short-lived signed read (`/v1/api/files/:uploadId?exp=&sig=`) for a person to look at
1894
+ * the file, never a public object; a claim references the file by `uploadId`. */
1895
+ export declare const Upload: z.ZodObject<{
1896
+ uploadId: z.ZodString;
1897
+ url: z.ZodURL;
1898
+ cid: z.ZodString;
1899
+ mediaType: z.ZodString;
1900
+ size: z.ZodInt;
1901
+ }, z.core.$strip>;
1902
+ export type Upload = z.infer<typeof Upload>;
1903
+ /**
1904
+ * v1.7: a one-use, signed `PUT` for a client that must not hold the API key (an AI app's sandboxed
1905
+ * widget). `uploadUrl` is the whole credential — `PUT` the bytes to it with no `Authorization`
1906
+ * before `expiresAt`, and the answer is the same `Upload` as `PUT /v1/api/uploads`, under this
1907
+ * `uploadId`. `GET /v1/api/uploads/{uploadId}` reads it back once used.
1908
+ */
1909
+ export declare const UploadLink: z.ZodObject<{
1910
+ uploadId: z.ZodString;
1911
+ uploadUrl: z.ZodURL;
1912
+ expiresAt: z.ZodISODateTime;
1913
+ }, z.core.$strip>;
1914
+ export type UploadLink = z.infer<typeof UploadLink>;
1915
+ /** `price: null` — this oracle publishes no price for the protocol (contract v1.1.1): nothing is
1916
+ * offered for it, and the facilitator refuses any offer that names it. */
1917
+ export declare const ProtocolSummary: z.ZodObject<{
1918
+ protocolDid: z.ZodString;
1919
+ name: z.ZodNullable<z.ZodString>;
1920
+ price: z.ZodNullable<z.ZodObject<{
1921
+ amountMicroUsd: z.ZodInt;
1922
+ amountCents: z.ZodInt;
1923
+ currency: z.ZodLiteral<"USD">;
1924
+ amount: z.ZodString;
1925
+ asset: z.ZodLiteral<"upay">;
1926
+ }, z.core.$strip>>;
1927
+ }, z.core.$strip>;
1928
+ export type ProtocolSummary = z.infer<typeof ProtocolSummary>;
1929
+ export declare const ProtocolList: z.ZodObject<{
1930
+ items: z.ZodArray<z.ZodObject<{
1931
+ protocolDid: z.ZodString;
1932
+ name: z.ZodNullable<z.ZodString>;
1933
+ price: z.ZodNullable<z.ZodObject<{
1934
+ amountMicroUsd: z.ZodInt;
1935
+ amountCents: z.ZodInt;
1936
+ currency: z.ZodLiteral<"USD">;
1937
+ amount: z.ZodString;
1938
+ asset: z.ZodLiteral<"upay">;
1939
+ }, z.core.$strip>>;
1940
+ }, z.core.$strip>>;
1941
+ }, z.core.$strip>;
1942
+ export type ProtocolList = z.infer<typeof ProtocolList>;
1943
+ export declare const FileQuestion: z.ZodObject<{
1944
+ question: z.ZodString;
1945
+ required: z.ZodBoolean;
1946
+ mediaTypes: z.ZodArray<z.ZodString>;
1947
+ maxBytes: z.ZodInt;
1948
+ }, z.core.$strip>;
1949
+ export type FileQuestion = z.infer<typeof FileQuestion>;
1950
+ /**
1951
+ * The work order a CALLER needs (§4.2): what to send, and what will happen to it. Facts are NAMES
1952
+ * only — the engine's manifest carries endpoints, audiences and AI instructions that are the
1953
+ * oracle's business, not the customer's.
1954
+ */
1955
+ export declare const ProtocolWorkOrder: z.ZodObject<{
1956
+ protocolDid: z.ZodString;
1957
+ name: z.ZodNullable<z.ZodString>;
1958
+ rubricId: z.ZodString;
1959
+ answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1960
+ files: z.ZodArray<z.ZodObject<{
1961
+ question: z.ZodString;
1962
+ required: z.ZodBoolean;
1963
+ mediaTypes: z.ZodArray<z.ZodString>;
1964
+ maxBytes: z.ZodInt;
1965
+ }, z.core.$strip>>;
1966
+ facts: z.ZodObject<{
1967
+ ext: z.ZodArray<z.ZodString>;
1968
+ ai: z.ZodArray<z.ZodString>;
1969
+ unique: z.ZodBoolean;
1970
+ frequency: z.ZodBoolean;
1971
+ }, z.core.$strip>;
1972
+ reviewTasks: z.ZodArray<z.ZodObject<{
1973
+ id: z.ZodString;
1974
+ prompt: z.ZodString;
1975
+ answer: z.ZodDiscriminatedUnion<[z.ZodObject<{
1976
+ type: z.ZodLiteral<"boolean">;
1977
+ }, z.core.$loose>, z.ZodObject<{
1978
+ type: z.ZodLiteral<"enum">;
1979
+ options: z.ZodArray<z.ZodString>;
1980
+ }, z.core.$loose>, z.ZodObject<{
1981
+ type: z.ZodLiteral<"number">;
1982
+ }, z.core.$loose>, z.ZodObject<{
1983
+ type: z.ZodLiteral<"text">;
1984
+ }, z.core.$loose>], "type">;
1985
+ }, z.core.$strip>>;
1986
+ price: z.ZodNullable<z.ZodObject<{
1987
+ amountMicroUsd: z.ZodInt;
1988
+ amountCents: z.ZodInt;
1989
+ currency: z.ZodLiteral<"USD">;
1990
+ amount: z.ZodString;
1991
+ asset: z.ZodLiteral<"upay">;
1992
+ }, z.core.$strip>>;
1993
+ example: z.ZodObject<{
1994
+ protocolDid: z.ZodOptional<z.ZodString>;
1995
+ answers: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1996
+ attachments: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1997
+ question: z.ZodString;
1998
+ name: z.ZodOptional<z.ZodString>;
1999
+ mediaType: z.ZodOptional<z.ZodString>;
2000
+ cid: z.ZodOptional<z.ZodString>;
2001
+ url: z.ZodURL;
2002
+ }, z.core.$strict>, z.ZodObject<{
2003
+ question: z.ZodString;
2004
+ name: z.ZodOptional<z.ZodString>;
2005
+ mediaType: z.ZodOptional<z.ZodString>;
2006
+ uploadId: z.ZodString;
2007
+ cid: z.ZodString;
2008
+ }, z.core.$strict>]>>>;
2009
+ submitter: z.ZodOptional<z.ZodString>;
2010
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2011
+ webhookUrl: z.ZodOptional<z.ZodURL>;
2012
+ }, z.core.$strict>;
2013
+ }, z.core.$strip>;
2014
+ export type ProtocolWorkOrder = z.infer<typeof ProtocolWorkOrder>;
2015
+ /** One allowed protocol. The price is the oracle's published one (payments spec §3.1) — no
2016
+ * per-source prices (owner, v1.1): a partner who should not pay gets billing mode `none`. */
2017
+ export declare const AllowedProtocol: z.ZodObject<{
2018
+ protocolDid: z.ZodString;
2019
+ }, z.core.$strip>;
2020
+ export type AllowedProtocol = z.infer<typeof AllowedProtocol>;
2021
+ export declare const Source: z.ZodObject<{
2022
+ sourceId: z.ZodString;
2023
+ name: z.ZodString;
2024
+ ownerDid: z.ZodString;
2025
+ status: z.ZodEnum<{
2026
+ active: "active";
2027
+ disputed: "disputed";
2028
+ paused: "paused";
2029
+ "pending-link": "pending-link";
2030
+ }>;
2031
+ pausedReason: z.ZodNullable<z.ZodEnum<{
2032
+ "engine-credits": "engine-credits";
2033
+ operator: "operator";
2034
+ "payments-disabled": "payments-disabled";
2035
+ "rubric-unusable": "rubric-unusable";
2036
+ }>>;
2037
+ billingMode: z.ZodEnum<{
2038
+ none: "none";
2039
+ x402: "x402";
2040
+ }>;
2041
+ allowedProtocols: z.ZodArray<z.ZodObject<{
2042
+ protocolDid: z.ZodString;
2043
+ }, z.core.$strip>>;
2044
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
2045
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
2046
+ contactEmail: z.ZodNullable<z.ZodEmail>;
2047
+ companyEntityDid: z.ZodString;
2048
+ payeeField: z.ZodNullable<z.ZodString>;
2049
+ createdAt: z.ZodISODateTime;
2050
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
2051
+ }, z.core.$strip>;
2052
+ export type Source = z.infer<typeof Source>;
2053
+ /** Sign-up (§12.3, D10): a current controller of `entityDid` adds this oracle to the organisation.
2054
+ * The source starts `pending-link`; the invoker pays (`ownerDid`) but holds no membership — as a
2055
+ * controller it is root already. */
2056
+ export declare const CreateSourceRequest: z.ZodObject<{
2057
+ name: z.ZodString;
2058
+ contactEmail: z.ZodEmail;
2059
+ entityDid: z.ZodString;
2060
+ }, z.core.$strict>;
2061
+ export type CreateSourceRequest = z.infer<typeof CreateSourceRequest>;
2062
+ /**
2063
+ * Where a member stands: `invited` (an email invite nobody has accepted), `accepted` (an account
2064
+ * joined, no grant uploaded yet — it can call nothing), `active` (a live grant), `expired`,
2065
+ * `revoked`. The owner is always `active`: the root needs no grant.
2066
+ */
2067
+ export declare const MemberStatus: z.ZodEnum<{
2068
+ accepted: "accepted";
2069
+ active: "active";
2070
+ expired: "expired";
2071
+ invited: "invited";
2072
+ revoked: "revoked";
2073
+ }>;
2074
+ export type MemberStatus = z.infer<typeof MemberStatus>;
2075
+ export declare const Member: z.ZodObject<{
2076
+ memberId: z.ZodString;
2077
+ did: z.ZodNullable<z.ZodString>;
2078
+ email: z.ZodNullable<z.ZodEmail>;
2079
+ role: z.ZodEnum<{
2080
+ developer: "developer";
2081
+ owner: "owner";
2082
+ reviewer: "reviewer";
2083
+ submitter: "submitter";
2084
+ viewer: "viewer";
2085
+ }>;
2086
+ status: z.ZodEnum<{
2087
+ accepted: "accepted";
2088
+ active: "active";
2089
+ expired: "expired";
2090
+ invited: "invited";
2091
+ revoked: "revoked";
2092
+ }>;
2093
+ capabilities: z.ZodArray<z.ZodEnum<{
2094
+ "audit/read": "audit/read";
2095
+ "claims/read": "claims/read";
2096
+ "claims/review": "claims/review";
2097
+ "claims/submit": "claims/submit";
2098
+ "keys/manage": "keys/manage";
2099
+ "settings/manage": "settings/manage";
2100
+ "source/*": "source/*";
2101
+ "spend/read": "spend/read";
2102
+ "webhooks/manage": "webhooks/manage";
2103
+ }>>;
2104
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
2105
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2106
+ delegationCid: z.ZodNullable<z.ZodString>;
2107
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2108
+ reviewerDid: z.ZodNullable<z.ZodString>;
2109
+ reviewerDelegationExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2110
+ notifyReviews: z.ZodBoolean;
2111
+ invitedAt: z.ZodISODateTime;
2112
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2113
+ }, z.core.$strip>;
2114
+ export type Member = z.infer<typeof Member>;
2115
+ export declare const MemberList: z.ZodObject<{
2116
+ items: z.ZodArray<z.ZodObject<{
2117
+ memberId: z.ZodString;
2118
+ did: z.ZodNullable<z.ZodString>;
2119
+ email: z.ZodNullable<z.ZodEmail>;
2120
+ role: z.ZodEnum<{
2121
+ developer: "developer";
2122
+ owner: "owner";
2123
+ reviewer: "reviewer";
2124
+ submitter: "submitter";
2125
+ viewer: "viewer";
2126
+ }>;
2127
+ status: z.ZodEnum<{
2128
+ accepted: "accepted";
2129
+ active: "active";
2130
+ expired: "expired";
2131
+ invited: "invited";
2132
+ revoked: "revoked";
2133
+ }>;
2134
+ capabilities: z.ZodArray<z.ZodEnum<{
2135
+ "audit/read": "audit/read";
2136
+ "claims/read": "claims/read";
2137
+ "claims/review": "claims/review";
2138
+ "claims/submit": "claims/submit";
2139
+ "keys/manage": "keys/manage";
2140
+ "settings/manage": "settings/manage";
2141
+ "source/*": "source/*";
2142
+ "spend/read": "spend/read";
2143
+ "webhooks/manage": "webhooks/manage";
2144
+ }>>;
2145
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
2146
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2147
+ delegationCid: z.ZodNullable<z.ZodString>;
2148
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2149
+ reviewerDid: z.ZodNullable<z.ZodString>;
2150
+ reviewerDelegationExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2151
+ notifyReviews: z.ZodBoolean;
2152
+ invitedAt: z.ZodISODateTime;
2153
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2154
+ }, z.core.$strip>>;
2155
+ }, z.core.$strip>;
2156
+ export type MemberList = z.infer<typeof MemberList>;
2157
+ /** `webhookSecret` signs deliveries to a claim's own `webhookUrl` and the source's default URL
2158
+ * (§4.5) — shown here once; `POST /v1/api/source/webhook-secret` rotates it. */
2159
+ export declare const CreateSourceResponse: z.ZodObject<{
2160
+ source: z.ZodObject<{
2161
+ sourceId: z.ZodString;
2162
+ name: z.ZodString;
2163
+ ownerDid: z.ZodString;
2164
+ status: z.ZodEnum<{
2165
+ active: "active";
2166
+ disputed: "disputed";
2167
+ paused: "paused";
2168
+ "pending-link": "pending-link";
2169
+ }>;
2170
+ pausedReason: z.ZodNullable<z.ZodEnum<{
2171
+ "engine-credits": "engine-credits";
2172
+ operator: "operator";
2173
+ "payments-disabled": "payments-disabled";
2174
+ "rubric-unusable": "rubric-unusable";
2175
+ }>>;
2176
+ billingMode: z.ZodEnum<{
2177
+ none: "none";
2178
+ x402: "x402";
2179
+ }>;
2180
+ allowedProtocols: z.ZodArray<z.ZodObject<{
2181
+ protocolDid: z.ZodString;
2182
+ }, z.core.$strip>>;
2183
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
2184
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
2185
+ contactEmail: z.ZodNullable<z.ZodEmail>;
2186
+ companyEntityDid: z.ZodString;
2187
+ payeeField: z.ZodNullable<z.ZodString>;
2188
+ createdAt: z.ZodISODateTime;
2189
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
2190
+ }, z.core.$strip>;
2191
+ webhookSecret: z.ZodString;
2192
+ }, z.core.$strip>;
2193
+ export type CreateSourceResponse = z.infer<typeof CreateSourceResponse>;
2194
+ /** The old secret keeps signing beside the new one until `previousExpiresAt` (24 h). */
2195
+ export declare const RotateWebhookSecretResponse: z.ZodObject<{
2196
+ webhookSecret: z.ZodString;
2197
+ previousExpiresAt: z.ZodISODateTime;
2198
+ }, z.core.$strip>;
2199
+ export type RotateWebhookSecretResponse = z.infer<typeof RotateWebhookSecretResponse>;
2200
+ /**
2201
+ * `GET /v1/api/sources` — the signed-in account's sources on THIS oracle (the console asks every
2202
+ * oracle it lists). `delegation` is the member's stored grant (base64 CAR), which the console
2203
+ * attaches as its invocation's proof; null for the owner, and until a grant is uploaded.
2204
+ */
2205
+ export declare const MySource: z.ZodObject<{
2206
+ source: z.ZodObject<{
2207
+ sourceId: z.ZodString;
2208
+ name: z.ZodString;
2209
+ ownerDid: z.ZodString;
2210
+ status: z.ZodEnum<{
2211
+ active: "active";
2212
+ disputed: "disputed";
2213
+ paused: "paused";
2214
+ "pending-link": "pending-link";
2215
+ }>;
2216
+ pausedReason: z.ZodNullable<z.ZodEnum<{
2217
+ "engine-credits": "engine-credits";
2218
+ operator: "operator";
2219
+ "payments-disabled": "payments-disabled";
2220
+ "rubric-unusable": "rubric-unusable";
2221
+ }>>;
2222
+ billingMode: z.ZodEnum<{
2223
+ none: "none";
2224
+ x402: "x402";
2225
+ }>;
2226
+ allowedProtocols: z.ZodArray<z.ZodObject<{
2227
+ protocolDid: z.ZodString;
2228
+ }, z.core.$strip>>;
2229
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
2230
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
2231
+ contactEmail: z.ZodNullable<z.ZodEmail>;
2232
+ companyEntityDid: z.ZodString;
2233
+ payeeField: z.ZodNullable<z.ZodString>;
2234
+ createdAt: z.ZodISODateTime;
2235
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
2236
+ }, z.core.$strip>;
2237
+ memberId: z.ZodString;
2238
+ role: z.ZodEnum<{
2239
+ developer: "developer";
2240
+ owner: "owner";
2241
+ reviewer: "reviewer";
2242
+ submitter: "submitter";
2243
+ viewer: "viewer";
2244
+ }>;
2245
+ status: z.ZodEnum<{
2246
+ accepted: "accepted";
2247
+ active: "active";
2248
+ expired: "expired";
2249
+ invited: "invited";
2250
+ revoked: "revoked";
2251
+ }>;
2252
+ capabilities: z.ZodArray<z.ZodEnum<{
2253
+ "audit/read": "audit/read";
2254
+ "claims/read": "claims/read";
2255
+ "claims/review": "claims/review";
2256
+ "claims/submit": "claims/submit";
2257
+ "keys/manage": "keys/manage";
2258
+ "settings/manage": "settings/manage";
2259
+ "source/*": "source/*";
2260
+ "spend/read": "spend/read";
2261
+ "webhooks/manage": "webhooks/manage";
2262
+ }>>;
2263
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
2264
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2265
+ delegation: z.ZodNullable<z.ZodString>;
2266
+ delegationCid: z.ZodNullable<z.ZodString>;
2267
+ }, z.core.$strip>;
2268
+ export type MySource = z.infer<typeof MySource>;
2269
+ export declare const MySourceList: z.ZodObject<{
2270
+ items: z.ZodArray<z.ZodObject<{
2271
+ source: z.ZodObject<{
2272
+ sourceId: z.ZodString;
2273
+ name: z.ZodString;
2274
+ ownerDid: z.ZodString;
2275
+ status: z.ZodEnum<{
2276
+ active: "active";
2277
+ disputed: "disputed";
2278
+ paused: "paused";
2279
+ "pending-link": "pending-link";
2280
+ }>;
2281
+ pausedReason: z.ZodNullable<z.ZodEnum<{
2282
+ "engine-credits": "engine-credits";
2283
+ operator: "operator";
2284
+ "payments-disabled": "payments-disabled";
2285
+ "rubric-unusable": "rubric-unusable";
2286
+ }>>;
2287
+ billingMode: z.ZodEnum<{
2288
+ none: "none";
2289
+ x402: "x402";
2290
+ }>;
2291
+ allowedProtocols: z.ZodArray<z.ZodObject<{
2292
+ protocolDid: z.ZodString;
2293
+ }, z.core.$strip>>;
2294
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
2295
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
2296
+ contactEmail: z.ZodNullable<z.ZodEmail>;
2297
+ companyEntityDid: z.ZodString;
2298
+ payeeField: z.ZodNullable<z.ZodString>;
2299
+ createdAt: z.ZodISODateTime;
2300
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
2301
+ }, z.core.$strip>;
2302
+ memberId: z.ZodString;
2303
+ role: z.ZodEnum<{
2304
+ developer: "developer";
2305
+ owner: "owner";
2306
+ reviewer: "reviewer";
2307
+ submitter: "submitter";
2308
+ viewer: "viewer";
2309
+ }>;
2310
+ status: z.ZodEnum<{
2311
+ accepted: "accepted";
2312
+ active: "active";
2313
+ expired: "expired";
2314
+ invited: "invited";
2315
+ revoked: "revoked";
2316
+ }>;
2317
+ capabilities: z.ZodArray<z.ZodEnum<{
2318
+ "audit/read": "audit/read";
2319
+ "claims/read": "claims/read";
2320
+ "claims/review": "claims/review";
2321
+ "claims/submit": "claims/submit";
2322
+ "keys/manage": "keys/manage";
2323
+ "settings/manage": "settings/manage";
2324
+ "source/*": "source/*";
2325
+ "spend/read": "spend/read";
2326
+ "webhooks/manage": "webhooks/manage";
2327
+ }>>;
2328
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
2329
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2330
+ delegation: z.ZodNullable<z.ZodString>;
2331
+ delegationCid: z.ZodNullable<z.ZodString>;
2332
+ }, z.core.$strip>>;
2333
+ }, z.core.$strip>;
2334
+ export type MySourceList = z.infer<typeof MySourceList>;
2335
+ /**
2336
+ * `GET /v1/api/organisations/{entityDid}/sources` query (1.17.0): the organisation's sources on this
2337
+ * oracle in every state, keyset-paged (`SourcePage`), for a current controller of the entity only.
2338
+ */
2339
+ export declare const ListOrganisationSourcesQuery: z.ZodObject<{
2340
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2341
+ cursor: z.ZodOptional<z.ZodString>;
2342
+ }, z.core.$strip>;
2343
+ export type ListOrganisationSourcesQuery = z.infer<typeof ListOrganisationSourcesQuery>;
2344
+ /**
2345
+ * `POST /v1/api/sources/{sourceId}/company/sync` (v1.8): the source as mirrored from the engine's
2346
+ * stored link for its organisation, and its members.
2347
+ */
2348
+ export declare const CompanySyncResponse: z.ZodObject<{
2349
+ source: z.ZodObject<{
2350
+ sourceId: z.ZodString;
2351
+ name: z.ZodString;
2352
+ ownerDid: z.ZodString;
2353
+ status: z.ZodEnum<{
2354
+ active: "active";
2355
+ disputed: "disputed";
2356
+ paused: "paused";
2357
+ "pending-link": "pending-link";
2358
+ }>;
2359
+ pausedReason: z.ZodNullable<z.ZodEnum<{
2360
+ "engine-credits": "engine-credits";
2361
+ operator: "operator";
2362
+ "payments-disabled": "payments-disabled";
2363
+ "rubric-unusable": "rubric-unusable";
2364
+ }>>;
2365
+ billingMode: z.ZodEnum<{
2366
+ none: "none";
2367
+ x402: "x402";
2368
+ }>;
2369
+ allowedProtocols: z.ZodArray<z.ZodObject<{
2370
+ protocolDid: z.ZodString;
2371
+ }, z.core.$strip>>;
2372
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
2373
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
2374
+ contactEmail: z.ZodNullable<z.ZodEmail>;
2375
+ companyEntityDid: z.ZodString;
2376
+ payeeField: z.ZodNullable<z.ZodString>;
2377
+ createdAt: z.ZodISODateTime;
2378
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
2379
+ }, z.core.$strip>;
2380
+ members: z.ZodArray<z.ZodObject<{
2381
+ memberId: z.ZodString;
2382
+ did: z.ZodNullable<z.ZodString>;
2383
+ email: z.ZodNullable<z.ZodEmail>;
2384
+ role: z.ZodEnum<{
2385
+ developer: "developer";
2386
+ owner: "owner";
2387
+ reviewer: "reviewer";
2388
+ submitter: "submitter";
2389
+ viewer: "viewer";
2390
+ }>;
2391
+ status: z.ZodEnum<{
2392
+ accepted: "accepted";
2393
+ active: "active";
2394
+ expired: "expired";
2395
+ invited: "invited";
2396
+ revoked: "revoked";
2397
+ }>;
2398
+ capabilities: z.ZodArray<z.ZodEnum<{
2399
+ "audit/read": "audit/read";
2400
+ "claims/read": "claims/read";
2401
+ "claims/review": "claims/review";
2402
+ "claims/submit": "claims/submit";
2403
+ "keys/manage": "keys/manage";
2404
+ "settings/manage": "settings/manage";
2405
+ "source/*": "source/*";
2406
+ "spend/read": "spend/read";
2407
+ "webhooks/manage": "webhooks/manage";
2408
+ }>>;
2409
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
2410
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2411
+ delegationCid: z.ZodNullable<z.ZodString>;
2412
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2413
+ reviewerDid: z.ZodNullable<z.ZodString>;
2414
+ reviewerDelegationExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2415
+ notifyReviews: z.ZodBoolean;
2416
+ invitedAt: z.ZodISODateTime;
2417
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2418
+ }, z.core.$strip>>;
2419
+ }, z.core.$strip>;
2420
+ export type CompanySyncResponse = z.infer<typeof CompanySyncResponse>;
2421
+ /** An invite names the role the owner will grant; the grant itself is `PUT …/delegation`. An
2422
+ * invite by `did` is accepted at once (the account exists); by `email` it waits for `accept`.
2423
+ * `owner` here makes a CO-owner: a grant of `source/*`, revocable like any other — the source's
2424
+ * roots stay its organisation's current controllers (D10); `ownerDid`, the creator who pays, is
2425
+ * not one. */
2426
+ export declare const InviteMemberRequest: z.ZodObject<{
2427
+ email: z.ZodOptional<z.ZodEmail>;
2428
+ did: z.ZodOptional<z.ZodString>;
2429
+ role: z.ZodEnum<{
2430
+ developer: "developer";
2431
+ owner: "owner";
2432
+ reviewer: "reviewer";
2433
+ submitter: "submitter";
2434
+ viewer: "viewer";
2435
+ }>;
2436
+ }, z.core.$strict>;
2437
+ export type InviteMemberRequest = z.infer<typeof InviteMemberRequest>;
2438
+ /** `inviteToken` is shown once (an email invite only); the console turns it into the link. */
2439
+ export declare const InviteMemberResponse: z.ZodObject<{
2440
+ memberId: z.ZodString;
2441
+ did: z.ZodNullable<z.ZodString>;
2442
+ email: z.ZodNullable<z.ZodEmail>;
2443
+ role: z.ZodEnum<{
2444
+ developer: "developer";
2445
+ owner: "owner";
2446
+ reviewer: "reviewer";
2447
+ submitter: "submitter";
2448
+ viewer: "viewer";
2449
+ }>;
2450
+ status: z.ZodEnum<{
2451
+ accepted: "accepted";
2452
+ active: "active";
2453
+ expired: "expired";
2454
+ invited: "invited";
2455
+ revoked: "revoked";
2456
+ }>;
2457
+ capabilities: z.ZodArray<z.ZodEnum<{
2458
+ "audit/read": "audit/read";
2459
+ "claims/read": "claims/read";
2460
+ "claims/review": "claims/review";
2461
+ "claims/submit": "claims/submit";
2462
+ "keys/manage": "keys/manage";
2463
+ "settings/manage": "settings/manage";
2464
+ "source/*": "source/*";
2465
+ "spend/read": "spend/read";
2466
+ "webhooks/manage": "webhooks/manage";
2467
+ }>>;
2468
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
2469
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
2470
+ delegationCid: z.ZodNullable<z.ZodString>;
2471
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2472
+ reviewerDid: z.ZodNullable<z.ZodString>;
2473
+ reviewerDelegationExpiresAt: z.ZodNullable<z.ZodISODateTime>;
2474
+ notifyReviews: z.ZodBoolean;
2475
+ invitedAt: z.ZodISODateTime;
2476
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
2477
+ inviteToken: z.ZodNullable<z.ZodString>;
2478
+ }, z.core.$strip>;
2479
+ export type InviteMemberResponse = z.infer<typeof InviteMemberResponse>;
2480
+ /** `POST /v1/api/members/accept` — the invoking account becomes that member. */
2481
+ export declare const AcceptInviteRequest: z.ZodObject<{
2482
+ inviteToken: z.ZodString;
2483
+ }, z.core.$strict>;
2484
+ export type AcceptInviteRequest = z.infer<typeof AcceptInviteRequest>;
2485
+ /**
2486
+ * `PUT /v1/api/members/:memberId/delegation` — the owner's signed grant (§3.4 step 3), base64 of
2487
+ * the delegation CAR. Checked before it is stored: issued by the owner (or a co-owner holding
2488
+ * `source/*` from the owner), to this member's DID, over this source's resource, capabilities
2489
+ * EXACTLY the role's preset, not expired. Replacing a grant revokes the previous one.
2490
+ */
2491
+ export declare const GrantMemberRequest: z.ZodObject<{
2492
+ delegation: z.ZodString;
2493
+ role: z.ZodEnum<{
2494
+ developer: "developer";
2495
+ owner: "owner";
2496
+ reviewer: "reviewer";
2497
+ submitter: "submitter";
2498
+ viewer: "viewer";
2499
+ }>;
2500
+ }, z.core.$strict>;
2501
+ export type GrantMemberRequest = z.infer<typeof GrantMemberRequest>;
2502
+ /**
2503
+ * A member's own settings: their reviewer key (§10) and their review-email switch (§10.1).
2504
+ * Registering a key needs `reviewerProof`: a compact JWS signed by THAT did:key over `{ memberId,
2505
+ * sourceId, reviewerDid, iat }` — proof of possession, so a stolen console session cannot enrol a
2506
+ * key it does not hold (§14). Clearing it (`null`) needs none. A field left out is left alone. A
2507
+ * role change is a revoke plus a new grant, never a PATCH.
2508
+ */
2509
+ export declare const UpdateMemberRequest: z.ZodObject<{
2510
+ reviewerDid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2511
+ reviewerProof: z.ZodOptional<z.ZodString>;
2512
+ notifyReviews: z.ZodOptional<z.ZodBoolean>;
2513
+ }, z.core.$strict>;
2514
+ export type UpdateMemberRequest = z.infer<typeof UpdateMemberRequest>;
2515
+ /** A key as every read shows it: the prefix, never the secret (§3.3 — shown once, at create). */
2516
+ export declare const ApiKey: z.ZodObject<{
2517
+ prefix: z.ZodString;
2518
+ name: z.ZodNullable<z.ZodString>;
2519
+ masked: z.ZodString;
2520
+ environment: z.ZodEnum<{
2521
+ live: "live";
2522
+ test: "test";
2523
+ }>;
2524
+ scopes: z.ZodArray<z.ZodEnum<{
2525
+ "claims:read": "claims:read";
2526
+ "claims:write": "claims:write";
2527
+ "webhooks:manage": "webhooks:manage";
2528
+ }>>;
2529
+ maxSpendCentsPerDay: z.ZodNullable<z.ZodInt>;
2530
+ createdAt: z.ZodISODateTime;
2531
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
2532
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2533
+ }, z.core.$strip>;
2534
+ export type ApiKey = z.infer<typeof ApiKey>;
2535
+ export declare const KeyList: z.ZodObject<{
2536
+ items: z.ZodArray<z.ZodObject<{
2537
+ prefix: z.ZodString;
2538
+ name: z.ZodNullable<z.ZodString>;
2539
+ masked: z.ZodString;
2540
+ environment: z.ZodEnum<{
2541
+ live: "live";
2542
+ test: "test";
2543
+ }>;
2544
+ scopes: z.ZodArray<z.ZodEnum<{
2545
+ "claims:read": "claims:read";
2546
+ "claims:write": "claims:write";
2547
+ "webhooks:manage": "webhooks:manage";
2548
+ }>>;
2549
+ maxSpendCentsPerDay: z.ZodNullable<z.ZodInt>;
2550
+ createdAt: z.ZodISODateTime;
2551
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
2552
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2553
+ }, z.core.$strip>>;
2554
+ }, z.core.$strip>;
2555
+ export type KeyList = z.infer<typeof KeyList>;
2556
+ export declare const CreateApiKeyRequest: z.ZodObject<{
2557
+ name: z.ZodOptional<z.ZodString>;
2558
+ scopes: z.ZodArray<z.ZodEnum<{
2559
+ "claims:read": "claims:read";
2560
+ "claims:write": "claims:write";
2561
+ "webhooks:manage": "webhooks:manage";
2562
+ }>>;
2563
+ maxSpendCentsPerDay: z.ZodOptional<z.ZodInt>;
2564
+ }, z.core.$strict>;
2565
+ export type CreateApiKeyRequest = z.infer<typeof CreateApiKeyRequest>;
2566
+ /** `DELETE /v1/api/keys/:prefix` — `graceDays` > 0 lets a rotation overlap (§3.3: up to 30 days). */
2567
+ export declare const RevokeApiKeyQuery: z.ZodObject<{
2568
+ graceDays: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
2569
+ }, z.core.$strip>;
2570
+ export type RevokeApiKeyQuery = z.infer<typeof RevokeApiKeyQuery>;
2571
+ /** The only response that ever carries the full key. */
2572
+ export declare const CreateApiKeyResponse: z.ZodObject<{
2573
+ prefix: z.ZodString;
2574
+ name: z.ZodNullable<z.ZodString>;
2575
+ masked: z.ZodString;
2576
+ environment: z.ZodEnum<{
2577
+ live: "live";
2578
+ test: "test";
2579
+ }>;
2580
+ scopes: z.ZodArray<z.ZodEnum<{
2581
+ "claims:read": "claims:read";
2582
+ "claims:write": "claims:write";
2583
+ "webhooks:manage": "webhooks:manage";
2584
+ }>>;
2585
+ maxSpendCentsPerDay: z.ZodNullable<z.ZodInt>;
2586
+ createdAt: z.ZodISODateTime;
2587
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
2588
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
2589
+ key: z.ZodString;
2590
+ }, z.core.$strip>;
2591
+ export type CreateApiKeyResponse = z.infer<typeof CreateApiKeyResponse>;
2592
+ /** A source's settings (§12.2 Settings). The allow-list and the billing mode are the operator's
2593
+ * (`/v1/api/admin/sources/:id/…`), because they are commercial terms. */
2594
+ export declare const SourceSettings: z.ZodObject<{
2595
+ name: z.ZodOptional<z.ZodString>;
2596
+ defaultWebhookUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
2597
+ contactEmail: z.ZodOptional<z.ZodEmail>;
2598
+ refillFloorCents: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
2599
+ }, z.core.$strict>;
2600
+ export type SourceSettings = z.infer<typeof SourceSettings>;
2601
+ export declare const AuditEntry: z.ZodObject<{
2602
+ id: z.ZodString;
2603
+ sourceId: z.ZodNullable<z.ZodString>;
2604
+ actor: z.ZodObject<{
2605
+ kind: z.ZodEnum<{
2606
+ key: "key";
2607
+ member: "member";
2608
+ oauth: "oauth";
2609
+ operator: "operator";
2610
+ system: "system";
2611
+ }>;
2612
+ id: z.ZodString;
2613
+ clientId: z.ZodOptional<z.ZodString>;
2614
+ clientName: z.ZodOptional<z.ZodString>;
2615
+ }, z.core.$strip>;
2616
+ action: z.ZodString;
2617
+ target: z.ZodNullable<z.ZodString>;
2618
+ at: z.ZodISODateTime;
2619
+ details: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2620
+ }, z.core.$strip>;
2621
+ export type AuditEntry = z.infer<typeof AuditEntry>;
2622
+ export declare const AuditPage: z.ZodObject<{
2623
+ items: z.ZodArray<z.ZodObject<{
2624
+ id: z.ZodString;
2625
+ sourceId: z.ZodNullable<z.ZodString>;
2626
+ actor: z.ZodObject<{
2627
+ kind: z.ZodEnum<{
2628
+ key: "key";
2629
+ member: "member";
2630
+ oauth: "oauth";
2631
+ operator: "operator";
2632
+ system: "system";
2633
+ }>;
2634
+ id: z.ZodString;
2635
+ clientId: z.ZodOptional<z.ZodString>;
2636
+ clientName: z.ZodOptional<z.ZodString>;
2637
+ }, z.core.$strip>;
2638
+ action: z.ZodString;
2639
+ target: z.ZodNullable<z.ZodString>;
2640
+ at: z.ZodISODateTime;
2641
+ details: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2642
+ }, z.core.$strip>>;
2643
+ nextCursor: z.ZodNullable<z.ZodString>;
2644
+ }, z.core.$strip>;
2645
+ export type AuditPage = z.infer<typeof AuditPage>;
2646
+ /** Appendix B. Declared here, not in webhooks.ts, because endpoints subscribe to them and the
2647
+ * envelope there carries `ClaimRecord` — one direction of import, no cycle. */
2648
+ export declare const WebhookEventType: z.ZodEnum<{
2649
+ "balance.low": "balance.low";
2650
+ "claim.accepted": "claim.accepted";
2651
+ "claim.decided": "claim.decided";
2652
+ "claim.failed": "claim.failed";
2653
+ "claim.folded": "claim.folded";
2654
+ "claim.review_expired": "claim.review_expired";
2655
+ "claim.review_required": "claim.review_required";
2656
+ "claim.unusable": "claim.unusable";
2657
+ "payment.settled": "payment.settled";
2658
+ "source.paused": "source.paused";
2659
+ "source.resumed": "source.resumed";
2660
+ }>;
2661
+ export type WebhookEventType = z.infer<typeof WebhookEventType>;
2662
+ export declare const WebhookEndpoint: z.ZodObject<{
2663
+ endpointId: z.ZodString;
2664
+ url: z.ZodURL;
2665
+ events: z.ZodArray<z.ZodEnum<{
2666
+ "balance.low": "balance.low";
2667
+ "claim.accepted": "claim.accepted";
2668
+ "claim.decided": "claim.decided";
2669
+ "claim.failed": "claim.failed";
2670
+ "claim.folded": "claim.folded";
2671
+ "claim.review_expired": "claim.review_expired";
2672
+ "claim.review_required": "claim.review_required";
2673
+ "claim.unusable": "claim.unusable";
2674
+ "payment.settled": "payment.settled";
2675
+ "source.paused": "source.paused";
2676
+ "source.resumed": "source.resumed";
2677
+ }>>;
2678
+ enabled: z.ZodBoolean;
2679
+ createdAt: z.ZodISODateTime;
2680
+ }, z.core.$strip>;
2681
+ export type WebhookEndpoint = z.infer<typeof WebhookEndpoint>;
2682
+ export declare const EndpointList: z.ZodObject<{
2683
+ items: z.ZodArray<z.ZodObject<{
2684
+ endpointId: z.ZodString;
2685
+ url: z.ZodURL;
2686
+ events: z.ZodArray<z.ZodEnum<{
2687
+ "balance.low": "balance.low";
2688
+ "claim.accepted": "claim.accepted";
2689
+ "claim.decided": "claim.decided";
2690
+ "claim.failed": "claim.failed";
2691
+ "claim.folded": "claim.folded";
2692
+ "claim.review_expired": "claim.review_expired";
2693
+ "claim.review_required": "claim.review_required";
2694
+ "claim.unusable": "claim.unusable";
2695
+ "payment.settled": "payment.settled";
2696
+ "source.paused": "source.paused";
2697
+ "source.resumed": "source.resumed";
2698
+ }>>;
2699
+ enabled: z.ZodBoolean;
2700
+ createdAt: z.ZodISODateTime;
2701
+ }, z.core.$strip>>;
2702
+ }, z.core.$strip>;
2703
+ export type EndpointList = z.infer<typeof EndpointList>;
2704
+ export declare const CreateWebhookEndpointRequest: z.ZodObject<{
2705
+ url: z.ZodURL;
2706
+ events: z.ZodArray<z.ZodEnum<{
2707
+ "balance.low": "balance.low";
2708
+ "claim.accepted": "claim.accepted";
2709
+ "claim.decided": "claim.decided";
2710
+ "claim.failed": "claim.failed";
2711
+ "claim.folded": "claim.folded";
2712
+ "claim.review_expired": "claim.review_expired";
2713
+ "claim.review_required": "claim.review_required";
2714
+ "claim.unusable": "claim.unusable";
2715
+ "payment.settled": "payment.settled";
2716
+ "source.paused": "source.paused";
2717
+ "source.resumed": "source.resumed";
2718
+ }>>;
2719
+ }, z.core.$strict>;
2720
+ export type CreateWebhookEndpointRequest = z.infer<typeof CreateWebhookEndpointRequest>;
2721
+ export declare const CreateWebhookEndpointResponse: z.ZodObject<{
2722
+ endpointId: z.ZodString;
2723
+ url: z.ZodURL;
2724
+ events: z.ZodArray<z.ZodEnum<{
2725
+ "balance.low": "balance.low";
2726
+ "claim.accepted": "claim.accepted";
2727
+ "claim.decided": "claim.decided";
2728
+ "claim.failed": "claim.failed";
2729
+ "claim.folded": "claim.folded";
2730
+ "claim.review_expired": "claim.review_expired";
2731
+ "claim.review_required": "claim.review_required";
2732
+ "claim.unusable": "claim.unusable";
2733
+ "payment.settled": "payment.settled";
2734
+ "source.paused": "source.paused";
2735
+ "source.resumed": "source.resumed";
2736
+ }>>;
2737
+ enabled: z.ZodBoolean;
2738
+ createdAt: z.ZodISODateTime;
2739
+ secret: z.ZodString;
2740
+ }, z.core.$strip>;
2741
+ export type CreateWebhookEndpointResponse = z.infer<typeof CreateWebhookEndpointResponse>;
2742
+ export declare const UpdateWebhookEndpointRequest: z.ZodObject<{
2743
+ url: z.ZodOptional<z.ZodURL>;
2744
+ events: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2745
+ "balance.low": "balance.low";
2746
+ "claim.accepted": "claim.accepted";
2747
+ "claim.decided": "claim.decided";
2748
+ "claim.failed": "claim.failed";
2749
+ "claim.folded": "claim.folded";
2750
+ "claim.review_expired": "claim.review_expired";
2751
+ "claim.review_required": "claim.review_required";
2752
+ "claim.unusable": "claim.unusable";
2753
+ "payment.settled": "payment.settled";
2754
+ "source.paused": "source.paused";
2755
+ "source.resumed": "source.resumed";
2756
+ }>>>;
2757
+ enabled: z.ZodOptional<z.ZodBoolean>;
2758
+ rotateSecret: z.ZodOptional<z.ZodLiteral<true>>;
2759
+ }, z.core.$strict>;
2760
+ export type UpdateWebhookEndpointRequest = z.infer<typeof UpdateWebhookEndpointRequest>;
2761
+ /** `secret` present iff the PATCH rotated it. */
2762
+ export declare const UpdateWebhookEndpointResponse: z.ZodObject<{
2763
+ endpointId: z.ZodString;
2764
+ url: z.ZodURL;
2765
+ events: z.ZodArray<z.ZodEnum<{
2766
+ "balance.low": "balance.low";
2767
+ "claim.accepted": "claim.accepted";
2768
+ "claim.decided": "claim.decided";
2769
+ "claim.failed": "claim.failed";
2770
+ "claim.folded": "claim.folded";
2771
+ "claim.review_expired": "claim.review_expired";
2772
+ "claim.review_required": "claim.review_required";
2773
+ "claim.unusable": "claim.unusable";
2774
+ "payment.settled": "payment.settled";
2775
+ "source.paused": "source.paused";
2776
+ "source.resumed": "source.resumed";
2777
+ }>>;
2778
+ enabled: z.ZodBoolean;
2779
+ createdAt: z.ZodISODateTime;
2780
+ secret: z.ZodOptional<z.ZodString>;
2781
+ }, z.core.$strip>;
2782
+ export type UpdateWebhookEndpointResponse = z.infer<typeof UpdateWebhookEndpointResponse>;
2783
+ export declare const WebhookDelivery: z.ZodObject<{
2784
+ id: z.ZodString;
2785
+ eventId: z.ZodString;
2786
+ type: z.ZodEnum<{
2787
+ "balance.low": "balance.low";
2788
+ "claim.accepted": "claim.accepted";
2789
+ "claim.decided": "claim.decided";
2790
+ "claim.failed": "claim.failed";
2791
+ "claim.folded": "claim.folded";
2792
+ "claim.review_expired": "claim.review_expired";
2793
+ "claim.review_required": "claim.review_required";
2794
+ "claim.unusable": "claim.unusable";
2795
+ "payment.settled": "payment.settled";
2796
+ "source.paused": "source.paused";
2797
+ "source.resumed": "source.resumed";
2798
+ }>;
2799
+ status: z.ZodEnum<{
2800
+ dead: "dead";
2801
+ delivered: "delivered";
2802
+ failed: "failed";
2803
+ pending: "pending";
2804
+ }>;
2805
+ attempts: z.ZodInt;
2806
+ lastStatusCode: z.ZodNullable<z.ZodInt>;
2807
+ nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
2808
+ createdAt: z.ZodISODateTime;
2809
+ }, z.core.$strip>;
2810
+ export type WebhookDelivery = z.infer<typeof WebhookDelivery>;
2811
+ export declare const DeliveryPage: z.ZodObject<{
2812
+ items: z.ZodArray<z.ZodObject<{
2813
+ id: z.ZodString;
2814
+ eventId: z.ZodString;
2815
+ type: z.ZodEnum<{
2816
+ "balance.low": "balance.low";
2817
+ "claim.accepted": "claim.accepted";
2818
+ "claim.decided": "claim.decided";
2819
+ "claim.failed": "claim.failed";
2820
+ "claim.folded": "claim.folded";
2821
+ "claim.review_expired": "claim.review_expired";
2822
+ "claim.review_required": "claim.review_required";
2823
+ "claim.unusable": "claim.unusable";
2824
+ "payment.settled": "payment.settled";
2825
+ "source.paused": "source.paused";
2826
+ "source.resumed": "source.resumed";
2827
+ }>;
2828
+ status: z.ZodEnum<{
2829
+ dead: "dead";
2830
+ delivered: "delivered";
2831
+ failed: "failed";
2832
+ pending: "pending";
2833
+ }>;
2834
+ attempts: z.ZodInt;
2835
+ lastStatusCode: z.ZodNullable<z.ZodInt>;
2836
+ nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
2837
+ createdAt: z.ZodISODateTime;
2838
+ }, z.core.$strip>>;
2839
+ nextCursor: z.ZodNullable<z.ZodString>;
2840
+ }, z.core.$strip>;
2841
+ export type DeliveryPage = z.infer<typeof DeliveryPage>;
2842
+ /**
2843
+ * `GET /v1/api/webhooks/deliveries/:deliveryId` — one delivery with what was sent. Only the LAST
2844
+ * attempt's outcome is kept (v1.1); the envelope is null once the claim's body retention erased it.
2845
+ */
2846
+ export declare const WebhookDeliveryDetail: z.ZodObject<{
2847
+ id: z.ZodString;
2848
+ eventId: z.ZodString;
2849
+ type: z.ZodEnum<{
2850
+ "balance.low": "balance.low";
2851
+ "claim.accepted": "claim.accepted";
2852
+ "claim.decided": "claim.decided";
2853
+ "claim.failed": "claim.failed";
2854
+ "claim.folded": "claim.folded";
2855
+ "claim.review_expired": "claim.review_expired";
2856
+ "claim.review_required": "claim.review_required";
2857
+ "claim.unusable": "claim.unusable";
2858
+ "payment.settled": "payment.settled";
2859
+ "source.paused": "source.paused";
2860
+ "source.resumed": "source.resumed";
2861
+ }>;
2862
+ status: z.ZodEnum<{
2863
+ dead: "dead";
2864
+ delivered: "delivered";
2865
+ failed: "failed";
2866
+ pending: "pending";
2867
+ }>;
2868
+ attempts: z.ZodInt;
2869
+ lastStatusCode: z.ZodNullable<z.ZodInt>;
2870
+ nextAttemptAt: z.ZodNullable<z.ZodISODateTime>;
2871
+ createdAt: z.ZodISODateTime;
2872
+ endpointId: z.ZodNullable<z.ZodString>;
2873
+ targetUrl: z.ZodNullable<z.ZodURL>;
2874
+ request: z.ZodObject<{
2875
+ body: z.ZodNullable<z.ZodUnknown>;
2876
+ }, z.core.$strip>;
2877
+ lastError: z.ZodNullable<z.ZodString>;
2878
+ }, z.core.$strip>;
2879
+ export type WebhookDeliveryDetail = z.infer<typeof WebhookDeliveryDetail>;
2880
+ /** An on-chain claim collection id (a uint64, as the chain and Blocksync print it). */
2881
+ export declare const CollectionId: z.ZodString;
2882
+ /**
2883
+ * An on-chain collection the source has linked: its chain claims then read with the source's own.
2884
+ * `linkedBy` is either a member who owns the collection entity on chain (company authority D9) —
2885
+ * re-checked hourly; a link whose linker no longer owns it is dropped — or (1.21.0) the source's
2886
+ * own `companyEntityDid`, for a link the oracle made at the collection's registration because the
2887
+ * engine names that organisation as the collection's company — re-checked hourly against the
2888
+ * engine, dropped when it no longer does. Only a drop hides a link (1.23.0): a re-check that cannot
2889
+ * read the chain or the engine keeps it in the reads. Billing stays the collection owner's on-chain evaluation
2890
+ * payment: never a 402 here.
2891
+ */
2892
+ export declare const LinkedCollection: z.ZodObject<{
2893
+ collectionId: z.ZodString;
2894
+ protocolDid: z.ZodString;
2895
+ linkedBy: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2896
+ linkedAt: z.ZodISODateTime;
2897
+ }, z.core.$strip>;
2898
+ export type LinkedCollection = z.infer<typeof LinkedCollection>;
2899
+ export declare const LinkedCollectionList: z.ZodObject<{
2900
+ items: z.ZodArray<z.ZodObject<{
2901
+ collectionId: z.ZodString;
2902
+ protocolDid: z.ZodString;
2903
+ linkedBy: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
2904
+ linkedAt: z.ZodISODateTime;
2905
+ }, z.core.$strip>>;
2906
+ }, z.core.$strip>;
2907
+ export type LinkedCollectionList = z.infer<typeof LinkedCollectionList>;
2908
+ export declare const LinkCollectionRequest: z.ZodObject<{
2909
+ collectionId: z.ZodString;
2910
+ }, z.core.$strict>;
2911
+ export type LinkCollectionRequest = z.infer<typeof LinkCollectionRequest>;
2912
+ /**
2913
+ * The source owner's balance — the deed of `ownerDid`, not of whichever live member paid a given
2914
+ * offer — as the facilitator sees it (`GET /v1/balances`, payments spec §5.3), base units
2915
+ * of `upay` (1 upay = 1 micro-USD): `balance` in the deed, `sendLimit` left on the send permission
2916
+ * (null = no permission granted yet), `reserved` for claims awaiting their receipt, `settled` on a
2917
+ * receipt and not yet transferred, `paying` in the transfer under way, `available` = what a new
2918
+ * reservation may take (contracts v1.3; was `held` / `spent`).
2919
+ */
2920
+ export declare const Credits: z.ZodObject<{
2921
+ asset: z.ZodLiteral<"upay">;
2922
+ balance: z.ZodString;
2923
+ sendLimit: z.ZodNullable<z.ZodString>;
2924
+ reserved: z.ZodString;
2925
+ settled: z.ZodString;
2926
+ paying: z.ZodString;
2927
+ available: z.ZodString;
2928
+ }, z.core.$strip>;
2929
+ export type Credits = z.infer<typeof Credits>;
2930
+ /**
2931
+ * A source's standing review-billing delegation (while IXO's plan lets the oracle bill reviews): the x402-ixo-pay
2932
+ * payment delegation (base64 CAR, one `billing/pay` on `billing:decision-api` to the facilitator,
2933
+ * `nb: { maxAmount, denom: "upay", oracles: [<this oracle's did:web>] }`, an `exp`, no proofs, no
2934
+ * facts) its organisation's CURRENT chain owner signed. It pays for every review of the
2935
+ * organisation's chain collections' claims, from the owner's subscription credits.
2936
+ */
2937
+ export declare const SetReviewBillingRequest: z.ZodObject<{
2938
+ delegation: z.ZodString;
2939
+ }, z.core.$strict>;
2940
+ export type SetReviewBillingRequest = z.infer<typeof SetReviewBillingRequest>;
2941
+ /**
2942
+ * `active`; `expired` past its `exp`; `exhausted` when what is left of `maxAmount` covers no
2943
+ * review; `payer_not_owner` when its signer is no longer the organisation's chain owner.
2944
+ */
2945
+ export declare const ReviewBillingState: z.ZodEnum<{
2946
+ active: "active";
2947
+ exhausted: "exhausted";
2948
+ expired: "expired";
2949
+ payer_not_owner: "payer_not_owner";
2950
+ }>;
2951
+ export type ReviewBillingState = z.infer<typeof ReviewBillingState>;
2952
+ /**
2953
+ * Why a collection's reviews are paused: `payer-credits` — the payer's credits (or the send
2954
+ * permission behind them) do not cover a review: top up; `payer-delegation` — no usable delegation
2955
+ * (none, expired, used up, its signer no longer the owner): store a new one.
2956
+ */
2957
+ export declare const PayerPausedReason: z.ZodEnum<{
2958
+ "payer-credits": "payer-credits";
2959
+ "payer-delegation": "payer-delegation";
2960
+ }>;
2961
+ export type PayerPausedReason = z.infer<typeof PayerPausedReason>;
2962
+ /**
2963
+ * The stored delegation as the Console reads it — never the token. `spent` / `remaining` are this
2964
+ * oracle's own count against `maxAmount` (the facilitator exposes none; the delegation is bound to
2965
+ * this oracle alone, so the two agree); `credits` the payer's balance at the facilitator, null until
2966
+ * it answers this oracle (after the first review is reserved).
2967
+ */
2968
+ export declare const ReviewBilling: z.ZodObject<{
2969
+ sourceId: z.ZodString;
2970
+ state: z.ZodEnum<{
2971
+ active: "active";
2972
+ exhausted: "exhausted";
2973
+ expired: "expired";
2974
+ payer_not_owner: "payer_not_owner";
2975
+ }>;
2976
+ payer: z.ZodString;
2977
+ delegationCid: z.ZodString;
2978
+ maxAmount: z.ZodString;
2979
+ spent: z.ZodString;
2980
+ remaining: z.ZodString;
2981
+ expiresAt: z.ZodISODateTime;
2982
+ credits: z.ZodNullable<z.ZodObject<{
2983
+ asset: z.ZodLiteral<"upay">;
2984
+ balance: z.ZodString;
2985
+ sendLimit: z.ZodNullable<z.ZodString>;
2986
+ reserved: z.ZodString;
2987
+ settled: z.ZodString;
2988
+ paying: z.ZodString;
2989
+ available: z.ZodString;
2990
+ }, z.core.$strip>>;
2991
+ pricePerReview: z.ZodArray<z.ZodObject<{
2992
+ protocolDid: z.ZodString;
2993
+ amount: z.ZodString;
2994
+ amountCents: z.ZodInt;
2995
+ }, z.core.$strip>>;
2996
+ pausedCollections: z.ZodArray<z.ZodObject<{
2997
+ collectionId: z.ZodString;
2998
+ reason: z.ZodEnum<{
2999
+ "payer-credits": "payer-credits";
3000
+ "payer-delegation": "payer-delegation";
3001
+ }>;
3002
+ since: z.ZodISODateTime;
3003
+ }, z.core.$strip>>;
3004
+ createdBy: z.ZodString;
3005
+ createdAt: z.ZodISODateTime;
3006
+ updatedAt: z.ZodISODateTime;
3007
+ }, z.core.$strip>;
3008
+ export type ReviewBilling = z.infer<typeof ReviewBilling>;
3009
+ /** `DELETE`'s answer: whether a delegation was held, and what a full stop takes. */
3010
+ export declare const ReviewBillingDeleted: z.ZodObject<{
3011
+ deleted: z.ZodBoolean;
3012
+ message: z.ZodString;
3013
+ }, z.core.$strip>;
3014
+ export type ReviewBillingDeleted = z.infer<typeof ReviewBillingDeleted>;
3015
+ export declare const Limits: z.ZodObject<{
3016
+ maxBodyBytes: z.ZodInt;
3017
+ maxUploadBytes: z.ZodInt;
3018
+ maxBatchClaims: z.ZodInt;
3019
+ maxWaitSeconds: z.ZodInt;
3020
+ maxConcurrentWaiters: z.ZodInt;
3021
+ maxPageLimit: z.ZodInt;
3022
+ }, z.core.$strip>;
3023
+ export type Limits = z.infer<typeof Limits>;
3024
+ /** Who is asking — the console resolves its API-developer role from this (§12.3). */
3025
+ export declare const Caller: z.ZodDiscriminatedUnion<[z.ZodObject<{
3026
+ kind: z.ZodLiteral<"key">;
3027
+ prefix: z.ZodString;
3028
+ scopes: z.ZodArray<z.ZodEnum<{
3029
+ "claims:read": "claims:read";
3030
+ "claims:write": "claims:write";
3031
+ "webhooks:manage": "webhooks:manage";
3032
+ }>>;
3033
+ }, z.core.$strip>, z.ZodObject<{
3034
+ kind: z.ZodLiteral<"member">;
3035
+ memberId: z.ZodString;
3036
+ did: z.ZodString;
3037
+ role: z.ZodEnum<{
3038
+ developer: "developer";
3039
+ owner: "owner";
3040
+ reviewer: "reviewer";
3041
+ submitter: "submitter";
3042
+ viewer: "viewer";
3043
+ }>;
3044
+ capabilities: z.ZodArray<z.ZodEnum<{
3045
+ "audit/read": "audit/read";
3046
+ "claims/read": "claims/read";
3047
+ "claims/review": "claims/review";
3048
+ "claims/submit": "claims/submit";
3049
+ "keys/manage": "keys/manage";
3050
+ "settings/manage": "settings/manage";
3051
+ "source/*": "source/*";
3052
+ "spend/read": "spend/read";
3053
+ "webhooks/manage": "webhooks/manage";
3054
+ }>>;
3055
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
3056
+ }, z.core.$strip>, z.ZodObject<{
3057
+ kind: z.ZodLiteral<"controller">;
3058
+ did: z.ZodString;
3059
+ capabilities: z.ZodArray<z.ZodEnum<{
3060
+ "audit/read": "audit/read";
3061
+ "claims/read": "claims/read";
3062
+ "claims/review": "claims/review";
3063
+ "claims/submit": "claims/submit";
3064
+ "keys/manage": "keys/manage";
3065
+ "settings/manage": "settings/manage";
3066
+ "source/*": "source/*";
3067
+ "spend/read": "spend/read";
3068
+ "webhooks/manage": "webhooks/manage";
3069
+ }>>;
3070
+ }, z.core.$strip>], "kind">;
3071
+ export type Caller = z.infer<typeof Caller>;
3072
+ /**
3073
+ * Least exposure (§14): `members` (emails, DIDs) only to a console member — never to an API key;
3074
+ * `keys` to a key or a member with `keys/manage`; `webhookEndpoints` to a key with
3075
+ * `webhooks:manage` or a member with `webhooks/manage`; `credits` to a key or a member with
3076
+ * `spend/read`. `credits` is the source owner's balance (another live member who pays an offer
3077
+ * has their own, not shown here); null when the source pays nothing here (billing mode `none`,
3078
+ * payments off) or the facilitator could not be read.
3079
+ */
3080
+ export declare const Me: z.ZodObject<{
3081
+ caller: z.ZodDiscriminatedUnion<[z.ZodObject<{
3082
+ kind: z.ZodLiteral<"key">;
3083
+ prefix: z.ZodString;
3084
+ scopes: z.ZodArray<z.ZodEnum<{
3085
+ "claims:read": "claims:read";
3086
+ "claims:write": "claims:write";
3087
+ "webhooks:manage": "webhooks:manage";
3088
+ }>>;
3089
+ }, z.core.$strip>, z.ZodObject<{
3090
+ kind: z.ZodLiteral<"member">;
3091
+ memberId: z.ZodString;
3092
+ did: z.ZodString;
3093
+ role: z.ZodEnum<{
3094
+ developer: "developer";
3095
+ owner: "owner";
3096
+ reviewer: "reviewer";
3097
+ submitter: "submitter";
3098
+ viewer: "viewer";
3099
+ }>;
3100
+ capabilities: z.ZodArray<z.ZodEnum<{
3101
+ "audit/read": "audit/read";
3102
+ "claims/read": "claims/read";
3103
+ "claims/review": "claims/review";
3104
+ "claims/submit": "claims/submit";
3105
+ "keys/manage": "keys/manage";
3106
+ "settings/manage": "settings/manage";
3107
+ "source/*": "source/*";
3108
+ "spend/read": "spend/read";
3109
+ "webhooks/manage": "webhooks/manage";
3110
+ }>>;
3111
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
3112
+ }, z.core.$strip>, z.ZodObject<{
3113
+ kind: z.ZodLiteral<"controller">;
3114
+ did: z.ZodString;
3115
+ capabilities: z.ZodArray<z.ZodEnum<{
3116
+ "audit/read": "audit/read";
3117
+ "claims/read": "claims/read";
3118
+ "claims/review": "claims/review";
3119
+ "claims/submit": "claims/submit";
3120
+ "keys/manage": "keys/manage";
3121
+ "settings/manage": "settings/manage";
3122
+ "source/*": "source/*";
3123
+ "spend/read": "spend/read";
3124
+ "webhooks/manage": "webhooks/manage";
3125
+ }>>;
3126
+ }, z.core.$strip>], "kind">;
3127
+ source: z.ZodObject<{
3128
+ sourceId: z.ZodString;
3129
+ name: z.ZodString;
3130
+ ownerDid: z.ZodString;
3131
+ status: z.ZodEnum<{
3132
+ active: "active";
3133
+ disputed: "disputed";
3134
+ paused: "paused";
3135
+ "pending-link": "pending-link";
3136
+ }>;
3137
+ pausedReason: z.ZodNullable<z.ZodEnum<{
3138
+ "engine-credits": "engine-credits";
3139
+ operator: "operator";
3140
+ "payments-disabled": "payments-disabled";
3141
+ "rubric-unusable": "rubric-unusable";
3142
+ }>>;
3143
+ billingMode: z.ZodEnum<{
3144
+ none: "none";
3145
+ x402: "x402";
3146
+ }>;
3147
+ allowedProtocols: z.ZodArray<z.ZodObject<{
3148
+ protocolDid: z.ZodString;
3149
+ }, z.core.$strip>>;
3150
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
3151
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
3152
+ contactEmail: z.ZodNullable<z.ZodEmail>;
3153
+ companyEntityDid: z.ZodString;
3154
+ payeeField: z.ZodNullable<z.ZodString>;
3155
+ createdAt: z.ZodISODateTime;
3156
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
3157
+ }, z.core.$strip>;
3158
+ members: z.ZodOptional<z.ZodArray<z.ZodObject<{
3159
+ memberId: z.ZodString;
3160
+ did: z.ZodNullable<z.ZodString>;
3161
+ email: z.ZodNullable<z.ZodEmail>;
3162
+ role: z.ZodEnum<{
3163
+ developer: "developer";
3164
+ owner: "owner";
3165
+ reviewer: "reviewer";
3166
+ submitter: "submitter";
3167
+ viewer: "viewer";
3168
+ }>;
3169
+ status: z.ZodEnum<{
3170
+ accepted: "accepted";
3171
+ active: "active";
3172
+ expired: "expired";
3173
+ invited: "invited";
3174
+ revoked: "revoked";
3175
+ }>;
3176
+ capabilities: z.ZodArray<z.ZodEnum<{
3177
+ "audit/read": "audit/read";
3178
+ "claims/read": "claims/read";
3179
+ "claims/review": "claims/review";
3180
+ "claims/submit": "claims/submit";
3181
+ "keys/manage": "keys/manage";
3182
+ "settings/manage": "settings/manage";
3183
+ "source/*": "source/*";
3184
+ "spend/read": "spend/read";
3185
+ "webhooks/manage": "webhooks/manage";
3186
+ }>>;
3187
+ protocols: z.ZodNullable<z.ZodArray<z.ZodString>>;
3188
+ expiresAt: z.ZodNullable<z.ZodISODateTime>;
3189
+ delegationCid: z.ZodNullable<z.ZodString>;
3190
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
3191
+ reviewerDid: z.ZodNullable<z.ZodString>;
3192
+ reviewerDelegationExpiresAt: z.ZodNullable<z.ZodISODateTime>;
3193
+ notifyReviews: z.ZodBoolean;
3194
+ invitedAt: z.ZodISODateTime;
3195
+ acceptedAt: z.ZodNullable<z.ZodISODateTime>;
3196
+ }, z.core.$strip>>>;
3197
+ keys: z.ZodOptional<z.ZodArray<z.ZodObject<{
3198
+ prefix: z.ZodString;
3199
+ name: z.ZodNullable<z.ZodString>;
3200
+ masked: z.ZodString;
3201
+ environment: z.ZodEnum<{
3202
+ live: "live";
3203
+ test: "test";
3204
+ }>;
3205
+ scopes: z.ZodArray<z.ZodEnum<{
3206
+ "claims:read": "claims:read";
3207
+ "claims:write": "claims:write";
3208
+ "webhooks:manage": "webhooks:manage";
3209
+ }>>;
3210
+ maxSpendCentsPerDay: z.ZodNullable<z.ZodInt>;
3211
+ createdAt: z.ZodISODateTime;
3212
+ lastUsedAt: z.ZodNullable<z.ZodISODateTime>;
3213
+ revokedAt: z.ZodNullable<z.ZodISODateTime>;
3214
+ }, z.core.$strip>>>;
3215
+ credits: z.ZodOptional<z.ZodNullable<z.ZodObject<{
3216
+ asset: z.ZodLiteral<"upay">;
3217
+ balance: z.ZodString;
3218
+ sendLimit: z.ZodNullable<z.ZodString>;
3219
+ reserved: z.ZodString;
3220
+ settled: z.ZodString;
3221
+ paying: z.ZodString;
3222
+ available: z.ZodString;
3223
+ }, z.core.$strip>>>;
3224
+ limits: z.ZodObject<{
3225
+ maxBodyBytes: z.ZodInt;
3226
+ maxUploadBytes: z.ZodInt;
3227
+ maxBatchClaims: z.ZodInt;
3228
+ maxWaitSeconds: z.ZodInt;
3229
+ maxConcurrentWaiters: z.ZodInt;
3230
+ maxPageLimit: z.ZodInt;
3231
+ }, z.core.$strip>;
3232
+ webhookEndpoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
3233
+ endpointId: z.ZodString;
3234
+ url: z.ZodURL;
3235
+ events: z.ZodArray<z.ZodEnum<{
3236
+ "balance.low": "balance.low";
3237
+ "claim.accepted": "claim.accepted";
3238
+ "claim.decided": "claim.decided";
3239
+ "claim.failed": "claim.failed";
3240
+ "claim.folded": "claim.folded";
3241
+ "claim.review_expired": "claim.review_expired";
3242
+ "claim.review_required": "claim.review_required";
3243
+ "claim.unusable": "claim.unusable";
3244
+ "payment.settled": "payment.settled";
3245
+ "source.paused": "source.paused";
3246
+ "source.resumed": "source.resumed";
3247
+ }>>;
3248
+ enabled: z.ZodBoolean;
3249
+ createdAt: z.ZodISODateTime;
3250
+ }, z.core.$strip>>>;
3251
+ reviewBlocked: z.ZodNullable<z.ZodEnum<{
3252
+ "not-reviewer": "not-reviewer";
3253
+ "oracle-owner": "oracle-owner";
3254
+ }>>;
3255
+ }, z.core.$strip>;
3256
+ export type Me = z.infer<typeof Me>;
3257
+ export declare const SourcePage: z.ZodObject<{
3258
+ items: z.ZodArray<z.ZodObject<{
3259
+ sourceId: z.ZodString;
3260
+ name: z.ZodString;
3261
+ ownerDid: z.ZodString;
3262
+ status: z.ZodEnum<{
3263
+ active: "active";
3264
+ disputed: "disputed";
3265
+ paused: "paused";
3266
+ "pending-link": "pending-link";
3267
+ }>;
3268
+ pausedReason: z.ZodNullable<z.ZodEnum<{
3269
+ "engine-credits": "engine-credits";
3270
+ operator: "operator";
3271
+ "payments-disabled": "payments-disabled";
3272
+ "rubric-unusable": "rubric-unusable";
3273
+ }>>;
3274
+ billingMode: z.ZodEnum<{
3275
+ none: "none";
3276
+ x402: "x402";
3277
+ }>;
3278
+ allowedProtocols: z.ZodArray<z.ZodObject<{
3279
+ protocolDid: z.ZodString;
3280
+ }, z.core.$strip>>;
3281
+ refillFloorCents: z.ZodNullable<z.ZodInt>;
3282
+ defaultWebhookUrl: z.ZodNullable<z.ZodURL>;
3283
+ contactEmail: z.ZodNullable<z.ZodEmail>;
3284
+ companyEntityDid: z.ZodString;
3285
+ payeeField: z.ZodNullable<z.ZodString>;
3286
+ createdAt: z.ZodISODateTime;
3287
+ activatedAt: z.ZodNullable<z.ZodISODateTime>;
3288
+ }, z.core.$strip>>;
3289
+ nextCursor: z.ZodNullable<z.ZodString>;
3290
+ }, z.core.$strip>;
3291
+ export type SourcePage = z.infer<typeof SourcePage>;
3292
+ export declare const PauseSourceRequest: z.ZodObject<{
3293
+ note: z.ZodOptional<z.ZodString>;
3294
+ }, z.core.$strict>;
3295
+ export type PauseSourceRequest = z.infer<typeof PauseSourceRequest>;
3296
+ /** Replaces the allow-list whole — a PUT, so the console's form is the truth. */
3297
+ export declare const SetSourceProtocolsRequest: z.ZodObject<{
3298
+ protocols: z.ZodArray<z.ZodObject<{
3299
+ protocolDid: z.ZodString;
3300
+ }, z.core.$strict>>;
3301
+ }, z.core.$strict>;
3302
+ export type SetSourceProtocolsRequest = z.infer<typeof SetSourceProtocolsRequest>;
3303
+ /** `PUT /v1/api/admin/sources/:sourceId/billing-mode` — operators only, never the source's members. */
3304
+ export declare const SetBillingModeRequest: z.ZodObject<{
3305
+ billingMode: z.ZodEnum<{
3306
+ none: "none";
3307
+ x402: "x402";
3308
+ }>;
3309
+ }, z.core.$strict>;
3310
+ export type SetBillingModeRequest = z.infer<typeof SetBillingModeRequest>;
3311
+ /**
3312
+ * `GET /v1/api/admin/facilitator-delegation` (contracts v1.4.1): S10's card facilitator
3313
+ * (`ixo-pay-facilitator`) trusts this oracle's did:web as its root for operator actions, so an
3314
+ * operator reaches it with a delegation the oracle signs — one capability per requested action
3315
+ * (never `*`, never the retired `operators/manage`), no `nb`, to the operator's own did:ixo, at
3316
+ * most an hour. Minted fresh every call (a nonce each), never cached.
3317
+ */
3318
+ export declare const FACILITATOR_RESOURCE = "ixo:ixo-pay-facilitator";
3319
+ export declare const FACILITATOR_DELEGATION_MAX_TTL_SEC = 3600;
3320
+ /** The facilitator's operator actions (S10), in the order a delegation lists them. */
3321
+ export declare const FacilitatorAction: z.ZodEnum<{
3322
+ "operators/evidence": "operators/evidence";
3323
+ "operators/onboard": "operators/onboard";
3324
+ "operators/read": "operators/read";
3325
+ "operators/refund": "operators/refund";
3326
+ }>;
3327
+ export type FacilitatorAction = z.infer<typeof FacilitatorAction>;
3328
+ export declare const FacilitatorDelegationQuery: z.ZodObject<{
3329
+ actions: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<("operators/evidence" | "operators/onboard" | "operators/read" | "operators/refund")[], string | undefined>>;
3330
+ ttl: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3331
+ }, z.core.$strip>;
3332
+ export type FacilitatorDelegationQuery = z.infer<typeof FacilitatorDelegationQuery>;
3333
+ export declare const FacilitatorCapability: z.ZodObject<{
3334
+ with: z.ZodLiteral<"ixo:ixo-pay-facilitator">;
3335
+ can: z.ZodEnum<{
3336
+ "operators/evidence": "operators/evidence";
3337
+ "operators/onboard": "operators/onboard";
3338
+ "operators/read": "operators/read";
3339
+ "operators/refund": "operators/refund";
3340
+ }>;
3341
+ }, z.core.$strip>;
3342
+ export type FacilitatorCapability = z.infer<typeof FacilitatorCapability>;
3343
+ export declare const FacilitatorDelegation: z.ZodObject<{
3344
+ delegation: z.ZodString;
3345
+ issuer: z.ZodString;
3346
+ audience: z.ZodString;
3347
+ capabilities: z.ZodArray<z.ZodObject<{
3348
+ with: z.ZodLiteral<"ixo:ixo-pay-facilitator">;
3349
+ can: z.ZodEnum<{
3350
+ "operators/evidence": "operators/evidence";
3351
+ "operators/onboard": "operators/onboard";
3352
+ "operators/read": "operators/read";
3353
+ "operators/refund": "operators/refund";
3354
+ }>;
3355
+ }, z.core.$strip>>;
3356
+ expiresAt: z.ZodISODateTime;
3357
+ }, z.core.$strip>;
3358
+ export type FacilitatorDelegation = z.infer<typeof FacilitatorDelegation>;
3359
+ /** The source's personal data (claim bodies, metadata, members, endpoints, the list of uploaded files,
3360
+ * the webhook delivery log, review answers) as one archive, behind a short-lived signed URL
3361
+ * — the export route §6.3 promises. */
3362
+ export declare const DataExport: z.ZodObject<{
3363
+ url: z.ZodURL;
3364
+ expiresAt: z.ZodISODateTime;
3365
+ }, z.core.$strip>;
3366
+ export type DataExport = z.infer<typeof DataExport>;
3367
+ //# sourceMappingURL=api.d.ts.map