@wowok/agent-mcp 2.7.0 → 2.7.2

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 (427) hide show
  1. package/dist/config/index.js +1 -1
  2. package/dist/config/runtime.js +1 -238
  3. package/dist/customer/customer-advice.js +1 -130
  4. package/dist/customer/index.js +1 -11
  5. package/dist/customer/industry-risks.js +1 -438
  6. package/dist/customer/info-puzzle.js +1 -681
  7. package/dist/customer/order-monitor.js +1 -328
  8. package/dist/customer/order-strategy.js +1 -373
  9. package/dist/customer/post-purchase.js +1 -351
  10. package/dist/customer/preorder-compare.js +1 -34
  11. package/dist/customer/reminder-system.js +1 -316
  12. package/dist/customer/risk-assessment.d.ts +5 -1
  13. package/dist/customer/risk-assessment.js +1 -397
  14. package/dist/customer/types.js +1 -13
  15. package/dist/customer/user-preferences.js +1 -460
  16. package/dist/evaluation/arbitration-game.d.ts +23 -0
  17. package/dist/evaluation/arbitration-game.js +1 -0
  18. package/dist/evaluation/builtins/demand-match.d.ts +15 -0
  19. package/dist/evaluation/builtins/demand-match.js +1 -0
  20. package/dist/evaluation/builtins/index.d.ts +3 -0
  21. package/dist/evaluation/builtins/index.js +1 -0
  22. package/dist/evaluation/builtins/service-risk.d.ts +6 -0
  23. package/dist/evaluation/builtins/service-risk.js +1 -0
  24. package/dist/evaluation/capability.d.ts +50 -0
  25. package/dist/evaluation/capability.js +1 -0
  26. package/dist/evaluation/composer.d.ts +13 -0
  27. package/dist/evaluation/composer.js +1 -0
  28. package/dist/evaluation/engine.d.ts +18 -0
  29. package/dist/evaluation/engine.js +1 -0
  30. package/dist/evaluation/extract.d.ts +30 -0
  31. package/dist/evaluation/extract.js +1 -0
  32. package/dist/evaluation/game-strategy.d.ts +27 -0
  33. package/dist/evaluation/game-strategy.js +1 -0
  34. package/dist/evaluation/gap.d.ts +2 -0
  35. package/dist/evaluation/gap.js +1 -0
  36. package/dist/evaluation/index.d.ts +12 -0
  37. package/dist/evaluation/index.js +1 -0
  38. package/dist/evaluation/node-game.d.ts +62 -0
  39. package/dist/evaluation/node-game.js +1 -0
  40. package/dist/evaluation/region.d.ts +10 -0
  41. package/dist/evaluation/region.js +1 -0
  42. package/dist/evaluation/types.d.ts +77 -0
  43. package/dist/evaluation/types.js +1 -0
  44. package/dist/evaluation/user-injection.d.ts +6 -0
  45. package/dist/evaluation/user-injection.js +1 -0
  46. package/dist/examples/education-contact-create.json +40 -0
  47. package/dist/examples/freelance-contact-create.json +40 -0
  48. package/dist/examples/insurance-machine-create.json +1 -1
  49. package/dist/examples/insurance-service-allocators.json +1 -1
  50. package/dist/examples/machine-publish.json +1 -1
  51. package/dist/examples/rental-ziroom-service-create.json +1 -1
  52. package/dist/examples/retail-adv-guard-messenger-proof-create.json +1 -1
  53. package/dist/examples/retail-myshop-service-create.json +1 -1
  54. package/dist/examples/retail-myshop-service-customer-required.json +1 -1
  55. package/dist/examples/subscription-contact-create.json +40 -0
  56. package/dist/examples/threebody-machine-create.json +1 -1
  57. package/dist/examples/travel-machine-create.json +1 -1
  58. package/dist/examples/travel-service-create.json +1 -1
  59. package/dist/experience/experience-reuse.js +1 -103
  60. package/dist/experience/index.js +1 -5
  61. package/dist/experience/intent-distill.js +1 -83
  62. package/dist/experience/realtime-feedback.js +1 -94
  63. package/dist/experience/types.js +1 -1
  64. package/dist/experience/user-profile.js +1 -171
  65. package/dist/extensions/business-modules.js +1 -287
  66. package/dist/extensions/capability-manifest.js +1 -781
  67. package/dist/extensions/constraint-registry.js +1 -198
  68. package/dist/extensions/index.js +1 -6
  69. package/dist/extensions/metric-registry.js +1 -257
  70. package/dist/extensions/mode-evaluator.js +1 -170
  71. package/dist/extensions/modes.js +1 -499
  72. package/dist/extensions/registry.js +1 -717
  73. package/dist/extensions/types.js +1 -1
  74. package/dist/harness/auto-escalation.js +1 -68
  75. package/dist/harness/checkpoint.js +1 -129
  76. package/dist/harness/index.js +1 -78
  77. package/dist/harness/plan.js +1 -276
  78. package/dist/harness/recover.js +1 -139
  79. package/dist/harness/types.js +1 -1
  80. package/dist/harness/verify.js +1 -237
  81. package/dist/index.js +1 -273
  82. package/dist/intent/enrich.d.ts +1 -0
  83. package/dist/intent/enrich.js +1 -0
  84. package/dist/intent/index.d.ts +23 -0
  85. package/dist/intent/index.js +1 -0
  86. package/dist/intent/matcher.d.ts +2 -0
  87. package/dist/intent/matcher.js +1 -0
  88. package/dist/intent/store.d.ts +19 -0
  89. package/dist/intent/store.js +1 -0
  90. package/dist/intent/types.d.ts +33 -0
  91. package/dist/intent/types.js +1 -0
  92. package/dist/knowledge/acquisition-flywheel.js +1 -192
  93. package/dist/knowledge/allocation-confirm.js +1 -534
  94. package/dist/knowledge/allocation-context.js +1 -249
  95. package/dist/knowledge/allocation-ledger.js +1 -463
  96. package/dist/knowledge/allocation-puzzle.js +1 -298
  97. package/dist/knowledge/allocation-risk.js +1 -568
  98. package/dist/knowledge/allocation-templates.js +1 -970
  99. package/dist/knowledge/allocation-translation.js +1 -585
  100. package/dist/knowledge/arb-risk.js +1 -210
  101. package/dist/knowledge/arbitration-confirm.js +1 -559
  102. package/dist/knowledge/arbitration-context.js +1 -505
  103. package/dist/knowledge/arbitration-ledger.js +1 -521
  104. package/dist/knowledge/arbitration-puzzle.js +1 -304
  105. package/dist/knowledge/arbitration-risk.js +1 -433
  106. package/dist/knowledge/arbitration-templates.js +1 -276
  107. package/dist/knowledge/arbitration-translation.js +1 -487
  108. package/dist/knowledge/arbitration-trust.js +1 -117
  109. package/dist/knowledge/audit-rules.js +1 -141
  110. package/dist/knowledge/bridge-risk.js +1 -263
  111. package/dist/knowledge/contact-risk.js +1 -200
  112. package/dist/knowledge/contact-templates.d.ts +27 -0
  113. package/dist/knowledge/contact-templates.js +1 -0
  114. package/dist/knowledge/demand-confirm.js +1 -206
  115. package/dist/knowledge/demand-matching.js +1 -132
  116. package/dist/knowledge/demand-risk.js +1 -240
  117. package/dist/knowledge/demand-translation.js +1 -354
  118. package/dist/knowledge/deployment-scanner.js +1 -823
  119. package/dist/knowledge/dynamic-pricing.js +1 -87
  120. package/dist/knowledge/examples-scanner-cli.js +1 -26
  121. package/dist/knowledge/examples-scanner.js +1 -825
  122. package/dist/knowledge/flywheel-loop.js +1 -404
  123. package/dist/knowledge/fund-layer.js +1 -973
  124. package/dist/knowledge/glossary.js +1 -211
  125. package/dist/knowledge/guard-confirm.js +1 -406
  126. package/dist/knowledge/guard-context.js +1 -287
  127. package/dist/knowledge/guard-design-patterns.js +1 -360
  128. package/dist/knowledge/guard-ledger.js +1 -260
  129. package/dist/knowledge/guard-lint.js +1 -670
  130. package/dist/knowledge/guard-migration.js +1 -228
  131. package/dist/knowledge/guard-puzzle.js +1 -805
  132. package/dist/knowledge/guard-render.js +1 -700
  133. package/dist/knowledge/guard-risk.js +1 -1879
  134. package/dist/knowledge/guard-submission-prompt.js +1 -171
  135. package/dist/knowledge/guard-templates.js +1 -1105
  136. package/dist/knowledge/guard-translation.js +1 -1119
  137. package/dist/knowledge/index.js +1 -436
  138. package/dist/knowledge/industry-evolution.js +1 -323
  139. package/dist/knowledge/industry-generalizer.js +1 -381
  140. package/dist/knowledge/industry-registry.js +1 -174
  141. package/dist/knowledge/intent-metrics.d.ts +4 -3
  142. package/dist/knowledge/intent-metrics.js +1 -566
  143. package/dist/knowledge/machine-confirm.js +1 -559
  144. package/dist/knowledge/machine-context.js +1 -833
  145. package/dist/knowledge/machine-ledger.js +1 -338
  146. package/dist/knowledge/machine-puzzle.js +1 -494
  147. package/dist/knowledge/machine-render.js +1 -565
  148. package/dist/knowledge/machine-risk.js +1 -670
  149. package/dist/knowledge/machine-templates.js +1 -1597
  150. package/dist/knowledge/machine-topology.js +1 -234
  151. package/dist/knowledge/machine-translation.js +1 -513
  152. package/dist/knowledge/mcp-schema-audit-cli.js +1 -45
  153. package/dist/knowledge/mcp-schema-audit.d.ts +1 -1
  154. package/dist/knowledge/mcp-schema-audit.js +1 -773
  155. package/dist/knowledge/onchain-constants.js +1 -35
  156. package/dist/knowledge/order-confirm.js +1 -573
  157. package/dist/knowledge/order-context.js +1 -390
  158. package/dist/knowledge/order-ledger.js +1 -341
  159. package/dist/knowledge/order-puzzle.js +1 -255
  160. package/dist/knowledge/order-risk.js +1 -653
  161. package/dist/knowledge/order-templates.js +1 -368
  162. package/dist/knowledge/order-translation.js +1 -550
  163. package/dist/knowledge/overrides-loader.js +1 -65
  164. package/dist/knowledge/passport-confirm.js +1 -531
  165. package/dist/knowledge/passport-context.js +1 -306
  166. package/dist/knowledge/passport-ledger.js +1 -282
  167. package/dist/knowledge/passport-puzzle.js +1 -333
  168. package/dist/knowledge/passport-risk.js +1 -450
  169. package/dist/knowledge/passport-templates.js +1 -568
  170. package/dist/knowledge/passport-translation.js +1 -516
  171. package/dist/knowledge/payment-risk.js +1 -249
  172. package/dist/knowledge/permission-confirm.js +1 -426
  173. package/dist/knowledge/permission-context.js +1 -224
  174. package/dist/knowledge/permission-ledger.js +1 -403
  175. package/dist/knowledge/permission-puzzle.js +1 -173
  176. package/dist/knowledge/permission-risk.js +1 -411
  177. package/dist/knowledge/permission-templates.js +1 -234
  178. package/dist/knowledge/permission-translation.js +1 -350
  179. package/dist/knowledge/personal-risk.js +1 -212
  180. package/dist/knowledge/process-model.js +1 -160
  181. package/dist/knowledge/progress-confirm.js +1 -456
  182. package/dist/knowledge/progress-context.js +1 -452
  183. package/dist/knowledge/progress-ledger.js +1 -330
  184. package/dist/knowledge/progress-puzzle.js +1 -219
  185. package/dist/knowledge/progress-risk.js +1 -461
  186. package/dist/knowledge/progress-templates.js +1 -228
  187. package/dist/knowledge/progress-translation.js +1 -405
  188. package/dist/knowledge/proof-confirm.js +1 -187
  189. package/dist/knowledge/proof-risk.js +1 -207
  190. package/dist/knowledge/proof-translation.js +1 -283
  191. package/dist/knowledge/registrar-risk.js +1 -217
  192. package/dist/knowledge/repository-confirm.js +1 -286
  193. package/dist/knowledge/repository-risk.js +1 -373
  194. package/dist/knowledge/repository-translation.js +1 -445
  195. package/dist/knowledge/reputation-rules.js +1 -99
  196. package/dist/knowledge/resource-risk.js +1 -157
  197. package/dist/knowledge/reward-confirm.js +1 -526
  198. package/dist/knowledge/reward-context.js +1 -504
  199. package/dist/knowledge/reward-ledger.js +1 -502
  200. package/dist/knowledge/reward-puzzle.js +1 -300
  201. package/dist/knowledge/reward-risk.js +1 -627
  202. package/dist/knowledge/reward-templates.js +1 -197
  203. package/dist/knowledge/reward-translation.js +1 -501
  204. package/dist/knowledge/safety-rules.js +1 -404
  205. package/dist/knowledge/scenario-modes.js +1 -321
  206. package/dist/knowledge/service-confirm.js +1 -807
  207. package/dist/knowledge/service-context.js +1 -403
  208. package/dist/knowledge/service-ledger.js +1 -609
  209. package/dist/knowledge/service-puzzle.js +1 -236
  210. package/dist/knowledge/service-risk.js +1 -615
  211. package/dist/knowledge/service-templates.js +1 -456
  212. package/dist/knowledge/service-translation.js +1 -622
  213. package/dist/knowledge/template-registry.d.ts +1 -1
  214. package/dist/knowledge/template-registry.js +1 -341
  215. package/dist/knowledge/tool-constraints.js +1 -195
  216. package/dist/knowledge/tools-reference.js +1 -155
  217. package/dist/knowledge/treasury-confirm.js +1 -512
  218. package/dist/knowledge/treasury-context.js +1 -363
  219. package/dist/knowledge/treasury-ledger.js +1 -300
  220. package/dist/knowledge/treasury-puzzle.js +1 -216
  221. package/dist/knowledge/treasury-risk.js +1 -440
  222. package/dist/knowledge/treasury-templates.js +1 -358
  223. package/dist/knowledge/treasury-translation.js +1 -498
  224. package/dist/knowledge/trust-metrics.js +1 -198
  225. package/dist/knowledge/util-risk.js +1 -135
  226. package/dist/loop-engineering/aggregate.js +1 -132
  227. package/dist/loop-engineering/context-collect.js +1 -83
  228. package/dist/loop-engineering/diagnose.js +1 -273
  229. package/dist/loop-engineering/improve.js +1 -405
  230. package/dist/loop-engineering/index.js +1 -4
  231. package/dist/loop-engineering/pipeline.js +1 -56
  232. package/dist/mode-market/index.js +1 -3
  233. package/dist/mode-market/registry.js +1 -124
  234. package/dist/mode-market/review.js +1 -214
  235. package/dist/mode-market/submission.js +1 -85
  236. package/dist/participation/collaborator-interest.d.ts +23 -0
  237. package/dist/participation/collaborator-interest.js +1 -0
  238. package/dist/participation/customer-interest.d.ts +25 -0
  239. package/dist/participation/customer-interest.js +1 -0
  240. package/dist/participation/merchant-interest.js +1 -100
  241. package/dist/participation/radar-core.d.ts +13 -3
  242. package/dist/participation/radar-core.js +1 -269
  243. package/dist/participation/supplier-interest.d.ts +25 -0
  244. package/dist/participation/supplier-interest.js +1 -0
  245. package/dist/persona/analyzer.d.ts +16 -0
  246. package/dist/persona/analyzer.js +1 -0
  247. package/dist/persona/bridge.d.ts +5 -0
  248. package/dist/persona/bridge.js +1 -0
  249. package/dist/persona/defaults.d.ts +4 -0
  250. package/dist/persona/defaults.js +1 -0
  251. package/dist/persona/experience-bridge.d.ts +3 -0
  252. package/dist/persona/experience-bridge.js +1 -0
  253. package/dist/persona/index.d.ts +18 -0
  254. package/dist/persona/index.js +1 -0
  255. package/dist/persona/model.d.ts +7 -0
  256. package/dist/persona/model.js +1 -0
  257. package/dist/persona/store.d.ts +19 -0
  258. package/dist/persona/store.js +1 -0
  259. package/dist/persona/types.d.ts +45 -0
  260. package/dist/persona/types.js +1 -0
  261. package/dist/project/business-puzzle.js +1 -383
  262. package/dist/project/context-assembly.js +1 -254
  263. package/dist/project/deployment-bridge.js +1 -120
  264. package/dist/project/deployment-doc.js +1 -1126
  265. package/dist/project/edit-planner.js +1 -1342
  266. package/dist/project/evaluation.js +1 -2011
  267. package/dist/project/game-theory.js +1 -177
  268. package/dist/project/graph-builder.js +1 -656
  269. package/dist/project/graph.js +1 -340
  270. package/dist/project/handlers.d.ts +5 -0
  271. package/dist/project/handlers.js +1 -1762
  272. package/dist/project/index.d.ts +1 -0
  273. package/dist/project/index.js +1 -301
  274. package/dist/project/intent-analyzer.js +1 -149
  275. package/dist/project/machine-nodes.js +1 -36
  276. package/dist/project/merchant-guide.js +1 -264
  277. package/dist/project/migration.js +1 -125
  278. package/dist/project/mode-actions.js +1 -309
  279. package/dist/project/namespace.js +1 -206
  280. package/dist/project/participation-radar.js +1 -428
  281. package/dist/project/pipeline-actions.js +1 -109
  282. package/dist/project/project-store.js +1 -422
  283. package/dist/project/query.js +1 -153
  284. package/dist/project/reverse-mapping.d.ts +34 -0
  285. package/dist/project/reverse-mapping.js +1 -0
  286. package/dist/project/risk-aggregator.js +1 -295
  287. package/dist/project/rollback-policy.js +1 -290
  288. package/dist/project/semantic-assembler.js +1 -345
  289. package/dist/project/semantic-graph.js +1 -245
  290. package/dist/project/stage-gate.js +1 -369
  291. package/dist/project/substep-trace.js +1 -332
  292. package/dist/project/task-tracker.js +1 -78
  293. package/dist/role/derivation.d.ts +18 -0
  294. package/dist/role/derivation.js +1 -0
  295. package/dist/role/index.d.ts +5 -0
  296. package/dist/role/index.js +1 -0
  297. package/dist/role/model.d.ts +8 -0
  298. package/dist/role/model.js +1 -0
  299. package/dist/role/resolution.d.ts +11 -0
  300. package/dist/role/resolution.js +1 -0
  301. package/dist/role/types.d.ts +11 -0
  302. package/dist/role/types.js +1 -0
  303. package/dist/rules.d.ts +2 -0
  304. package/dist/rules.js +1 -9
  305. package/dist/safety/confirm-gate.js +1 -88
  306. package/dist/safety/index.js +1 -3
  307. package/dist/safety/preview.js +1 -52
  308. package/dist/schema/call/allocation.js +1 -34
  309. package/dist/schema/call/arbitration.js +1 -113
  310. package/dist/schema/call/base.d.ts +15 -15
  311. package/dist/schema/call/base.js +1 -370
  312. package/dist/schema/call/bridge-handler.js +1 -265
  313. package/dist/schema/call/bridge.d.ts +7 -7
  314. package/dist/schema/call/bridge.js +1 -458
  315. package/dist/schema/call/contact.js +1 -37
  316. package/dist/schema/call/demand.js +1 -47
  317. package/dist/schema/call/guard.js +1 -161
  318. package/dist/schema/call/handler.js +1 -322
  319. package/dist/schema/call/index.js +1 -20
  320. package/dist/schema/call/machine.js +1 -193
  321. package/dist/schema/call/order.js +1 -35
  322. package/dist/schema/call/payment.js +1 -37
  323. package/dist/schema/call/permission-handler.js +1 -54
  324. package/dist/schema/call/permission.js +1 -105
  325. package/dist/schema/call/personal.js +1 -78
  326. package/dist/schema/call/progress.js +1 -47
  327. package/dist/schema/call/proof.js +1 -33
  328. package/dist/schema/call/repository.js +1 -77
  329. package/dist/schema/call/reward.js +1 -30
  330. package/dist/schema/call/semantic.js +1 -1657
  331. package/dist/schema/call/service.js +1 -178
  332. package/dist/schema/call/treasury.js +1 -71
  333. package/dist/schema/common/index.js +1 -407
  334. package/dist/schema/config/index.js +1 -68
  335. package/dist/schema/evaluation/index.d.ts +4436 -0
  336. package/dist/schema/evaluation/index.js +1 -0
  337. package/dist/schema/index.d.ts +4 -0
  338. package/dist/schema/index.js +1 -13
  339. package/dist/schema/intent-radar/index.d.ts +284 -0
  340. package/dist/schema/intent-radar/index.js +1 -0
  341. package/dist/schema/local/index.d.ts +21 -21
  342. package/dist/schema/local/index.js +1 -927
  343. package/dist/schema/local/wip.js +1 -187
  344. package/dist/schema/messenger/index.d.ts +7 -7
  345. package/dist/schema/messenger/index.js +1 -475
  346. package/dist/schema/operations.d.ts +7 -7
  347. package/dist/schema/operations.js +1 -520
  348. package/dist/schema/persona/index.d.ts +1985 -0
  349. package/dist/schema/persona/index.js +1 -0
  350. package/dist/schema/project/index.d.ts +96 -50
  351. package/dist/schema/project/index.js +1 -2057
  352. package/dist/schema/query/index.d.ts +423 -7
  353. package/dist/schema/query/index.js +1 -1640
  354. package/dist/schema/schema-query/index.js +1 -104
  355. package/dist/schema/schema-version.js +1 -76
  356. package/dist/schema/sync-layer4.d.ts +1 -1
  357. package/dist/schema/sync-layer4.js +1 -282
  358. package/dist/schema/task-status.d.ts +168 -0
  359. package/dist/schema/task-status.js +1 -0
  360. package/dist/schema/trust/index.js +1 -314
  361. package/dist/schema/utils/guard-parser.js +1 -419
  362. package/dist/schema/utils/guard-query-utils.js +1 -46
  363. package/dist/schema/utils/node-parser.js +1 -369
  364. package/dist/schema/utils/object-type-utils.js +1 -35
  365. package/dist/schema/utils/permission-index-utils.js +1 -7
  366. package/dist/schema/utils/permission-machine-check.js +1 -121
  367. package/dist/schema/utils/skills-recommendation.js +1 -77
  368. package/dist/schema-query/index.js +1 -810
  369. package/dist/schemas/account_operation.output.json +5 -2
  370. package/dist/schemas/bridge_operation.output.json +5 -2
  371. package/dist/schemas/evaluation_operation.output.json +782 -0
  372. package/dist/schemas/evaluation_operation.schema.json +990 -0
  373. package/dist/schemas/index.json +25 -1
  374. package/dist/schemas/intent_radar.output.json +232 -0
  375. package/dist/schemas/intent_radar.schema.json +138 -0
  376. package/dist/schemas/local_info_operation.output.json +5 -2
  377. package/dist/schemas/local_mark_operation.output.json +5 -2
  378. package/dist/schemas/messenger_operation.output.json +5 -2
  379. package/dist/schemas/onchain_events.output.json +5 -2
  380. package/dist/schemas/onchain_operations.output.json +5 -2
  381. package/dist/schemas/onchain_operations.schema.json +6 -6
  382. package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
  383. package/dist/schemas/onchain_operations_machine.schema.json +2 -2
  384. package/dist/schemas/onchain_operations_service.schema.json +3 -3
  385. package/dist/schemas/onchain_table_data.output.json +6 -3
  386. package/dist/schemas/persona_operation.output.json +392 -0
  387. package/dist/schemas/persona_operation.schema.json +250 -0
  388. package/dist/schemas/project_operation.output.json +28 -8
  389. package/dist/schemas/query_task_status.output.json +115 -0
  390. package/dist/schemas/query_task_status.schema.json +24 -0
  391. package/dist/schemas/query_toolkit.output.json +9 -6
  392. package/dist/schemas/trust_score.schema.json +1 -1
  393. package/dist/schemas/wowok_buildin_info.output.json +132 -0
  394. package/dist/schemas/wowok_buildin_info.schema.json +14 -0
  395. package/dist/telemetry/index.js +1 -112
  396. package/dist/telemetry/redact.js +1 -23
  397. package/dist/telemetry/storage.js +1 -80
  398. package/dist/tools/handlers/bridge.js +1 -1
  399. package/dist/tools/handlers/config.js +1 -74
  400. package/dist/tools/handlers/evaluation.d.ts +2 -0
  401. package/dist/tools/handlers/evaluation.js +1 -0
  402. package/dist/tools/handlers/file-export.js +1 -90
  403. package/dist/tools/handlers/intent-radar.d.ts +2 -0
  404. package/dist/tools/handlers/intent-radar.js +1 -0
  405. package/dist/tools/handlers/local.js +1 -53
  406. package/dist/tools/handlers/messenger.js +1 -188
  407. package/dist/tools/handlers/onchain.js +1 -1082
  408. package/dist/tools/handlers/persona.d.ts +4 -0
  409. package/dist/tools/handlers/persona.js +1 -0
  410. package/dist/tools/handlers/project.js +1 -211
  411. package/dist/tools/handlers/query.js +1 -434
  412. package/dist/tools/handlers/schema-query.js +1 -176
  413. package/dist/tools/handlers/task-status.d.ts +0 -168
  414. package/dist/tools/handlers/task-status.js +1 -55
  415. package/dist/tools/handlers/trust.js +1 -380
  416. package/dist/tools/handlers/wip.js +1 -90
  417. package/dist/tools/index.js +1 -1306
  418. package/dist/tools/retry.js +1 -85
  419. package/dist/tools/rules-hook.js +1 -23
  420. package/dist/tools/shared.js +1 -130
  421. package/dist/tools/types.js +1 -1
  422. package/dist/tools/upgrade-check.d.ts +19 -0
  423. package/dist/tools/upgrade-check.js +1 -0
  424. package/dist/tools/wip-deploy-assist.d.ts +1 -1
  425. package/dist/tools/wip-deploy-assist.js +1 -278
  426. package/dist/tools/wrap.js +1 -500
  427. package/package.json +5 -3
@@ -0,0 +1,4436 @@
1
+ import { z } from "zod";
2
+ export declare const CapabilityVectorSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ kind: z.ZodEnum<["service", "demand"]>;
5
+ owner: z.ZodOptional<z.ZodString>;
6
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
7
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
8
+ region: z.ZodObject<{
9
+ mode: z.ZodEnum<["remote", "physical"]>;
10
+ country: z.ZodOptional<z.ZodString>;
11
+ province: z.ZodOptional<z.ZodString>;
12
+ city: z.ZodOptional<z.ZodString>;
13
+ raw: z.ZodString;
14
+ }, "strict", z.ZodTypeAny, {
15
+ raw: string;
16
+ mode: "physical" | "remote";
17
+ country?: string | undefined;
18
+ province?: string | undefined;
19
+ city?: string | undefined;
20
+ }, {
21
+ raw: string;
22
+ mode: "physical" | "remote";
23
+ country?: string | undefined;
24
+ province?: string | undefined;
25
+ city?: string | undefined;
26
+ }>;
27
+ price_min: z.ZodOptional<z.ZodString>;
28
+ price_max: z.ZodOptional<z.ZodString>;
29
+ token_type: z.ZodOptional<z.ZodString>;
30
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
31
+ trust_score: z.ZodOptional<z.ZodNumber>;
32
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
33
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
34
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
35
+ capabilities: z.ZodObject<{
36
+ has_arbitration: z.ZodBoolean;
37
+ has_refund_path: z.ZodBoolean;
38
+ has_milestone_nodes: z.ZodBoolean;
39
+ has_compensation_fund: z.ZodBoolean;
40
+ has_wip_verification: z.ZodBoolean;
41
+ has_messenger: z.ZodBoolean;
42
+ has_buy_guard: z.ZodBoolean;
43
+ has_dynamic_pricing: z.ZodBoolean;
44
+ is_published: z.ZodBoolean;
45
+ is_paused: z.ZodBoolean;
46
+ }, "strict", z.ZodTypeAny, {
47
+ has_refund_path: boolean;
48
+ has_arbitration: boolean;
49
+ has_messenger: boolean;
50
+ has_compensation_fund: boolean;
51
+ has_buy_guard: boolean;
52
+ has_milestone_nodes: boolean;
53
+ has_wip_verification: boolean;
54
+ has_dynamic_pricing: boolean;
55
+ is_published: boolean;
56
+ is_paused: boolean;
57
+ }, {
58
+ has_refund_path: boolean;
59
+ has_arbitration: boolean;
60
+ has_messenger: boolean;
61
+ has_compensation_fund: boolean;
62
+ has_buy_guard: boolean;
63
+ has_milestone_nodes: boolean;
64
+ has_wip_verification: boolean;
65
+ has_dynamic_pricing: boolean;
66
+ is_published: boolean;
67
+ is_paused: boolean;
68
+ }>;
69
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ id: string;
73
+ kind: "service" | "demand";
74
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
75
+ region: {
76
+ raw: string;
77
+ mode: "physical" | "remote";
78
+ country?: string | undefined;
79
+ province?: string | undefined;
80
+ city?: string | undefined;
81
+ };
82
+ capabilities: {
83
+ has_refund_path: boolean;
84
+ has_arbitration: boolean;
85
+ has_messenger: boolean;
86
+ has_compensation_fund: boolean;
87
+ has_buy_guard: boolean;
88
+ has_milestone_nodes: boolean;
89
+ has_wip_verification: boolean;
90
+ has_dynamic_pricing: boolean;
91
+ is_published: boolean;
92
+ is_paused: boolean;
93
+ };
94
+ owner?: string | undefined;
95
+ token_type?: string | undefined;
96
+ tags?: string[] | undefined;
97
+ trust_score?: number | undefined;
98
+ arbitration_independent?: boolean | undefined;
99
+ reputation_like_ratio?: number | undefined;
100
+ keywords?: string[] | undefined;
101
+ industry_confidence?: number | undefined;
102
+ price_min?: string | undefined;
103
+ price_max?: string | undefined;
104
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
105
+ merchant_history_count?: number | undefined;
106
+ }, {
107
+ id: string;
108
+ kind: "service" | "demand";
109
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
110
+ region: {
111
+ raw: string;
112
+ mode: "physical" | "remote";
113
+ country?: string | undefined;
114
+ province?: string | undefined;
115
+ city?: string | undefined;
116
+ };
117
+ capabilities: {
118
+ has_refund_path: boolean;
119
+ has_arbitration: boolean;
120
+ has_messenger: boolean;
121
+ has_compensation_fund: boolean;
122
+ has_buy_guard: boolean;
123
+ has_milestone_nodes: boolean;
124
+ has_wip_verification: boolean;
125
+ has_dynamic_pricing: boolean;
126
+ is_published: boolean;
127
+ is_paused: boolean;
128
+ };
129
+ owner?: string | undefined;
130
+ token_type?: string | undefined;
131
+ tags?: string[] | undefined;
132
+ trust_score?: number | undefined;
133
+ arbitration_independent?: boolean | undefined;
134
+ reputation_like_ratio?: number | undefined;
135
+ keywords?: string[] | undefined;
136
+ industry_confidence?: number | undefined;
137
+ price_min?: string | undefined;
138
+ price_max?: string | undefined;
139
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
140
+ merchant_history_count?: number | undefined;
141
+ }>;
142
+ export declare const PuzzleRawDataSchema: z.ZodObject<{
143
+ service: z.ZodObject<{
144
+ name: z.ZodOptional<z.ZodString>;
145
+ bPublished: z.ZodOptional<z.ZodBoolean>;
146
+ bPaused: z.ZodOptional<z.ZodBoolean>;
147
+ price: z.ZodOptional<z.ZodString>;
148
+ priceRaw: z.ZodOptional<z.ZodString>;
149
+ token_type: z.ZodOptional<z.ZodString>;
150
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ suspension: z.ZodOptional<z.ZodBoolean>;
152
+ wip_url: z.ZodOptional<z.ZodString>;
153
+ wip_hash: z.ZodOptional<z.ZodString>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ wip_hash?: string | undefined;
156
+ suspension?: boolean | undefined;
157
+ wip_url?: string | undefined;
158
+ }, {
159
+ wip_hash?: string | undefined;
160
+ suspension?: boolean | undefined;
161
+ wip_url?: string | undefined;
162
+ }>, "many">>;
163
+ machine: z.ZodOptional<z.ZodString>;
164
+ buy_guard: z.ZodOptional<z.ZodString>;
165
+ customer_required: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
166
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
167
+ compensation_fund: z.ZodOptional<z.ZodObject<{
168
+ balance: z.ZodOptional<z.ZodString>;
169
+ }, "strict", z.ZodTypeAny, {
170
+ balance?: string | undefined;
171
+ }, {
172
+ balance?: string | undefined;
173
+ }>>;
174
+ compensation_lock_duration: z.ZodOptional<z.ZodNumber>;
175
+ um: z.ZodOptional<z.ZodString>;
176
+ }, "strict", z.ZodTypeAny, {
177
+ name?: string | undefined;
178
+ token_type?: string | undefined;
179
+ price?: string | undefined;
180
+ compensation_fund?: {
181
+ balance?: string | undefined;
182
+ } | undefined;
183
+ buy_guard?: string | undefined;
184
+ machine?: string | undefined;
185
+ arbitrations?: string[] | undefined;
186
+ sales?: {
187
+ wip_hash?: string | undefined;
188
+ suspension?: boolean | undefined;
189
+ wip_url?: string | undefined;
190
+ }[] | undefined;
191
+ customer_required?: unknown[] | undefined;
192
+ um?: string | undefined;
193
+ bPublished?: boolean | undefined;
194
+ bPaused?: boolean | undefined;
195
+ priceRaw?: string | undefined;
196
+ compensation_lock_duration?: number | undefined;
197
+ }, {
198
+ name?: string | undefined;
199
+ token_type?: string | undefined;
200
+ price?: string | undefined;
201
+ compensation_fund?: {
202
+ balance?: string | undefined;
203
+ } | undefined;
204
+ buy_guard?: string | undefined;
205
+ machine?: string | undefined;
206
+ arbitrations?: string[] | undefined;
207
+ sales?: {
208
+ wip_hash?: string | undefined;
209
+ suspension?: boolean | undefined;
210
+ wip_url?: string | undefined;
211
+ }[] | undefined;
212
+ customer_required?: unknown[] | undefined;
213
+ um?: string | undefined;
214
+ bPublished?: boolean | undefined;
215
+ bPaused?: boolean | undefined;
216
+ priceRaw?: string | undefined;
217
+ compensation_lock_duration?: number | undefined;
218
+ }>;
219
+ machine_nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
+ name: z.ZodString;
221
+ forwards: z.ZodOptional<z.ZodArray<z.ZodObject<{
222
+ name: z.ZodOptional<z.ZodString>;
223
+ weight: z.ZodOptional<z.ZodNumber>;
224
+ namedOperator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ to: z.ZodOptional<z.ZodString>;
227
+ }, "strict", z.ZodTypeAny, {
228
+ name?: string | undefined;
229
+ to?: string | undefined;
230
+ guard?: string | null | undefined;
231
+ weight?: number | undefined;
232
+ namedOperator?: string | null | undefined;
233
+ }, {
234
+ name?: string | undefined;
235
+ to?: string | undefined;
236
+ guard?: string | null | undefined;
237
+ weight?: number | undefined;
238
+ namedOperator?: string | null | undefined;
239
+ }>, "many">>;
240
+ is_pair_done: z.ZodOptional<z.ZodBoolean>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ name: string;
243
+ forwards?: {
244
+ name?: string | undefined;
245
+ to?: string | undefined;
246
+ guard?: string | null | undefined;
247
+ weight?: number | undefined;
248
+ namedOperator?: string | null | undefined;
249
+ }[] | undefined;
250
+ is_pair_done?: boolean | undefined;
251
+ }, {
252
+ name: string;
253
+ forwards?: {
254
+ name?: string | undefined;
255
+ to?: string | undefined;
256
+ guard?: string | null | undefined;
257
+ weight?: number | undefined;
258
+ namedOperator?: string | null | undefined;
259
+ }[] | undefined;
260
+ is_pair_done?: boolean | undefined;
261
+ }>, "many">>;
262
+ machine_published: z.ZodOptional<z.ZodBoolean>;
263
+ machine_paused: z.ZodOptional<z.ZodBoolean>;
264
+ reviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
+ rating: z.ZodOptional<z.ZodString>;
266
+ reviewer: z.ZodOptional<z.ZodString>;
267
+ verified: z.ZodOptional<z.ZodBoolean>;
268
+ has_evidence: z.ZodOptional<z.ZodBoolean>;
269
+ timestamp: z.ZodOptional<z.ZodNumber>;
270
+ }, "strict", z.ZodTypeAny, {
271
+ timestamp?: number | undefined;
272
+ verified?: boolean | undefined;
273
+ rating?: string | undefined;
274
+ reviewer?: string | undefined;
275
+ has_evidence?: boolean | undefined;
276
+ }, {
277
+ timestamp?: number | undefined;
278
+ verified?: boolean | undefined;
279
+ rating?: string | undefined;
280
+ reviewer?: string | undefined;
281
+ has_evidence?: boolean | undefined;
282
+ }>, "many">>;
283
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ type: z.ZodString;
285
+ timestamp: z.ZodOptional<z.ZodNumber>;
286
+ address: z.ZodOptional<z.ZodString>;
287
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
288
+ }, "strict", z.ZodTypeAny, {
289
+ type: string;
290
+ address?: string | undefined;
291
+ data?: Record<string, unknown> | undefined;
292
+ timestamp?: number | undefined;
293
+ }, {
294
+ type: string;
295
+ address?: string | undefined;
296
+ data?: Record<string, unknown> | undefined;
297
+ timestamp?: number | undefined;
298
+ }>, "many">>;
299
+ similar_services: z.ZodOptional<z.ZodArray<z.ZodObject<{
300
+ price: z.ZodString;
301
+ }, "strict", z.ZodTypeAny, {
302
+ price: string;
303
+ }, {
304
+ price: string;
305
+ }>, "many">>;
306
+ order_amount: z.ZodOptional<z.ZodString>;
307
+ trust_score: z.ZodOptional<z.ZodObject<{
308
+ score: z.ZodNumber;
309
+ level: z.ZodString;
310
+ }, "strict", z.ZodTypeAny, {
311
+ score: number;
312
+ level: string;
313
+ }, {
314
+ score: number;
315
+ level: string;
316
+ }>>;
317
+ arbitration_owner: z.ZodOptional<z.ZodString>;
318
+ service_owner: z.ZodOptional<z.ZodString>;
319
+ wip_verified: z.ZodOptional<z.ZodBoolean>;
320
+ order_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
321
+ status: z.ZodString;
322
+ has_dispute: z.ZodBoolean;
323
+ is_repeat: z.ZodBoolean;
324
+ }, "strict", z.ZodTypeAny, {
325
+ status: string;
326
+ has_dispute: boolean;
327
+ is_repeat: boolean;
328
+ }, {
329
+ status: string;
330
+ has_dispute: boolean;
331
+ is_repeat: boolean;
332
+ }>, "many">>;
333
+ merchant_reputation: z.ZodOptional<z.ZodObject<{
334
+ likes: z.ZodNumber;
335
+ dislikes: z.ZodNumber;
336
+ }, "strict", z.ZodTypeAny, {
337
+ likes: number;
338
+ dislikes: number;
339
+ }, {
340
+ likes: number;
341
+ dislikes: number;
342
+ }>>;
343
+ }, "strict", z.ZodTypeAny, {
344
+ service: {
345
+ name?: string | undefined;
346
+ token_type?: string | undefined;
347
+ price?: string | undefined;
348
+ compensation_fund?: {
349
+ balance?: string | undefined;
350
+ } | undefined;
351
+ buy_guard?: string | undefined;
352
+ machine?: string | undefined;
353
+ arbitrations?: string[] | undefined;
354
+ sales?: {
355
+ wip_hash?: string | undefined;
356
+ suspension?: boolean | undefined;
357
+ wip_url?: string | undefined;
358
+ }[] | undefined;
359
+ customer_required?: unknown[] | undefined;
360
+ um?: string | undefined;
361
+ bPublished?: boolean | undefined;
362
+ bPaused?: boolean | undefined;
363
+ priceRaw?: string | undefined;
364
+ compensation_lock_duration?: number | undefined;
365
+ };
366
+ events?: {
367
+ type: string;
368
+ address?: string | undefined;
369
+ data?: Record<string, unknown> | undefined;
370
+ timestamp?: number | undefined;
371
+ }[] | undefined;
372
+ trust_score?: {
373
+ score: number;
374
+ level: string;
375
+ } | undefined;
376
+ reviews?: {
377
+ timestamp?: number | undefined;
378
+ verified?: boolean | undefined;
379
+ rating?: string | undefined;
380
+ reviewer?: string | undefined;
381
+ has_evidence?: boolean | undefined;
382
+ }[] | undefined;
383
+ machine_published?: boolean | undefined;
384
+ machine_paused?: boolean | undefined;
385
+ machine_nodes?: {
386
+ name: string;
387
+ forwards?: {
388
+ name?: string | undefined;
389
+ to?: string | undefined;
390
+ guard?: string | null | undefined;
391
+ weight?: number | undefined;
392
+ namedOperator?: string | null | undefined;
393
+ }[] | undefined;
394
+ is_pair_done?: boolean | undefined;
395
+ }[] | undefined;
396
+ order_amount?: string | undefined;
397
+ similar_services?: {
398
+ price: string;
399
+ }[] | undefined;
400
+ arbitration_owner?: string | undefined;
401
+ service_owner?: string | undefined;
402
+ wip_verified?: boolean | undefined;
403
+ order_history?: {
404
+ status: string;
405
+ has_dispute: boolean;
406
+ is_repeat: boolean;
407
+ }[] | undefined;
408
+ merchant_reputation?: {
409
+ likes: number;
410
+ dislikes: number;
411
+ } | undefined;
412
+ }, {
413
+ service: {
414
+ name?: string | undefined;
415
+ token_type?: string | undefined;
416
+ price?: string | undefined;
417
+ compensation_fund?: {
418
+ balance?: string | undefined;
419
+ } | undefined;
420
+ buy_guard?: string | undefined;
421
+ machine?: string | undefined;
422
+ arbitrations?: string[] | undefined;
423
+ sales?: {
424
+ wip_hash?: string | undefined;
425
+ suspension?: boolean | undefined;
426
+ wip_url?: string | undefined;
427
+ }[] | undefined;
428
+ customer_required?: unknown[] | undefined;
429
+ um?: string | undefined;
430
+ bPublished?: boolean | undefined;
431
+ bPaused?: boolean | undefined;
432
+ priceRaw?: string | undefined;
433
+ compensation_lock_duration?: number | undefined;
434
+ };
435
+ events?: {
436
+ type: string;
437
+ address?: string | undefined;
438
+ data?: Record<string, unknown> | undefined;
439
+ timestamp?: number | undefined;
440
+ }[] | undefined;
441
+ trust_score?: {
442
+ score: number;
443
+ level: string;
444
+ } | undefined;
445
+ reviews?: {
446
+ timestamp?: number | undefined;
447
+ verified?: boolean | undefined;
448
+ rating?: string | undefined;
449
+ reviewer?: string | undefined;
450
+ has_evidence?: boolean | undefined;
451
+ }[] | undefined;
452
+ machine_published?: boolean | undefined;
453
+ machine_paused?: boolean | undefined;
454
+ machine_nodes?: {
455
+ name: string;
456
+ forwards?: {
457
+ name?: string | undefined;
458
+ to?: string | undefined;
459
+ guard?: string | null | undefined;
460
+ weight?: number | undefined;
461
+ namedOperator?: string | null | undefined;
462
+ }[] | undefined;
463
+ is_pair_done?: boolean | undefined;
464
+ }[] | undefined;
465
+ order_amount?: string | undefined;
466
+ similar_services?: {
467
+ price: string;
468
+ }[] | undefined;
469
+ arbitration_owner?: string | undefined;
470
+ service_owner?: string | undefined;
471
+ wip_verified?: boolean | undefined;
472
+ order_history?: {
473
+ status: string;
474
+ has_dispute: boolean;
475
+ is_repeat: boolean;
476
+ }[] | undefined;
477
+ merchant_reputation?: {
478
+ likes: number;
479
+ dislikes: number;
480
+ } | undefined;
481
+ }>;
482
+ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
483
+ action: z.ZodLiteral<"arb_game">;
484
+ status: z.ZodEnum<["Principal_confirming", "Arbitrator_confirming", "Voting", "Arbitrated", "Objectionable", "Finished", "Withdrawn"]>;
485
+ perspective: z.ZodEnum<["customer", "merchant", "arbitrator"]>;
486
+ appetite: z.ZodOptional<z.ZodEnum<["conservative", "balanced", "aggressive"]>>;
487
+ account: z.ZodOptional<z.ZodString>;
488
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
491
+ action: "arb_game";
492
+ perspective: "merchant" | "customer" | "arbitrator";
493
+ account?: string | undefined;
494
+ requirements?: string[] | undefined;
495
+ appetite?: "balanced" | "conservative" | "aggressive" | undefined;
496
+ }, {
497
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
498
+ action: "arb_game";
499
+ perspective: "merchant" | "customer" | "arbitrator";
500
+ account?: string | undefined;
501
+ requirements?: string[] | undefined;
502
+ appetite?: "balanced" | "conservative" | "aggressive" | undefined;
503
+ }>, z.ZodObject<{
504
+ action: z.ZodLiteral<"node_game">;
505
+ current_node: z.ZodString;
506
+ perspective: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
507
+ appetite: z.ZodOptional<z.ZodEnum<["conservative", "balanced", "aggressive"]>>;
508
+ account: z.ZodOptional<z.ZodString>;
509
+ threshold: z.ZodOptional<z.ZodNumber>;
510
+ allocation: z.ZodOptional<z.ZodObject<{
511
+ recipient_slots: z.ZodNumber;
512
+ guard_gated_slots: z.ZodNumber;
513
+ direct_to_me_slots: z.ZodNumber;
514
+ to_payer_slots: z.ZodNumber;
515
+ }, "strict", z.ZodTypeAny, {
516
+ recipient_slots: number;
517
+ guard_gated_slots: number;
518
+ direct_to_me_slots: number;
519
+ to_payer_slots: number;
520
+ }, {
521
+ recipient_slots: number;
522
+ guard_gated_slots: number;
523
+ direct_to_me_slots: number;
524
+ to_payer_slots: number;
525
+ }>>;
526
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
527
+ order_amount: z.ZodOptional<z.ZodString>;
528
+ compensation_fund: z.ZodOptional<z.ZodString>;
529
+ operable: z.ZodArray<z.ZodObject<{
530
+ name: z.ZodString;
531
+ to_node: z.ZodString;
532
+ execution_path: z.ZodEnum<["order_holder", "permission", "named_operator", "not_available"]>;
533
+ guard: z.ZodOptional<z.ZodString>;
534
+ consequence: z.ZodOptional<z.ZodString>;
535
+ weight: z.ZodOptional<z.ZodNumber>;
536
+ }, "strict", z.ZodTypeAny, {
537
+ name: string;
538
+ to_node: string;
539
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
540
+ guard?: string | undefined;
541
+ weight?: number | undefined;
542
+ consequence?: string | undefined;
543
+ }, {
544
+ name: string;
545
+ to_node: string;
546
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
547
+ guard?: string | undefined;
548
+ weight?: number | undefined;
549
+ consequence?: string | undefined;
550
+ }>, "many">;
551
+ waiting_on: z.ZodOptional<z.ZodArray<z.ZodObject<{
552
+ role: z.ZodString;
553
+ forwards: z.ZodArray<z.ZodString, "many">;
554
+ }, "strict", z.ZodTypeAny, {
555
+ role: string;
556
+ forwards: string[];
557
+ }, {
558
+ role: string;
559
+ forwards: string[];
560
+ }>, "many">>;
561
+ }, "strict", z.ZodTypeAny, {
562
+ action: "node_game";
563
+ current_node: string;
564
+ perspective: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
565
+ operable: {
566
+ name: string;
567
+ to_node: string;
568
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
569
+ guard?: string | undefined;
570
+ weight?: number | undefined;
571
+ consequence?: string | undefined;
572
+ }[];
573
+ account?: string | undefined;
574
+ allocation?: {
575
+ recipient_slots: number;
576
+ guard_gated_slots: number;
577
+ direct_to_me_slots: number;
578
+ to_payer_slots: number;
579
+ } | undefined;
580
+ compensation_fund?: string | undefined;
581
+ threshold?: number | undefined;
582
+ waiting_on?: {
583
+ role: string;
584
+ forwards: string[];
585
+ }[] | undefined;
586
+ order_amount?: string | undefined;
587
+ requirements?: string[] | undefined;
588
+ appetite?: "balanced" | "conservative" | "aggressive" | undefined;
589
+ }, {
590
+ action: "node_game";
591
+ current_node: string;
592
+ perspective: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
593
+ operable: {
594
+ name: string;
595
+ to_node: string;
596
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
597
+ guard?: string | undefined;
598
+ weight?: number | undefined;
599
+ consequence?: string | undefined;
600
+ }[];
601
+ account?: string | undefined;
602
+ allocation?: {
603
+ recipient_slots: number;
604
+ guard_gated_slots: number;
605
+ direct_to_me_slots: number;
606
+ to_payer_slots: number;
607
+ } | undefined;
608
+ compensation_fund?: string | undefined;
609
+ threshold?: number | undefined;
610
+ waiting_on?: {
611
+ role: string;
612
+ forwards: string[];
613
+ }[] | undefined;
614
+ order_amount?: string | undefined;
615
+ requirements?: string[] | undefined;
616
+ appetite?: "balanced" | "conservative" | "aggressive" | undefined;
617
+ }>, z.ZodObject<{
618
+ action: z.ZodLiteral<"capability_gap">;
619
+ demand: z.ZodObject<{
620
+ id: z.ZodString;
621
+ kind: z.ZodEnum<["service", "demand"]>;
622
+ owner: z.ZodOptional<z.ZodString>;
623
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
624
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
625
+ region: z.ZodObject<{
626
+ mode: z.ZodEnum<["remote", "physical"]>;
627
+ country: z.ZodOptional<z.ZodString>;
628
+ province: z.ZodOptional<z.ZodString>;
629
+ city: z.ZodOptional<z.ZodString>;
630
+ raw: z.ZodString;
631
+ }, "strict", z.ZodTypeAny, {
632
+ raw: string;
633
+ mode: "physical" | "remote";
634
+ country?: string | undefined;
635
+ province?: string | undefined;
636
+ city?: string | undefined;
637
+ }, {
638
+ raw: string;
639
+ mode: "physical" | "remote";
640
+ country?: string | undefined;
641
+ province?: string | undefined;
642
+ city?: string | undefined;
643
+ }>;
644
+ price_min: z.ZodOptional<z.ZodString>;
645
+ price_max: z.ZodOptional<z.ZodString>;
646
+ token_type: z.ZodOptional<z.ZodString>;
647
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
648
+ trust_score: z.ZodOptional<z.ZodNumber>;
649
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
650
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
651
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
652
+ capabilities: z.ZodObject<{
653
+ has_arbitration: z.ZodBoolean;
654
+ has_refund_path: z.ZodBoolean;
655
+ has_milestone_nodes: z.ZodBoolean;
656
+ has_compensation_fund: z.ZodBoolean;
657
+ has_wip_verification: z.ZodBoolean;
658
+ has_messenger: z.ZodBoolean;
659
+ has_buy_guard: z.ZodBoolean;
660
+ has_dynamic_pricing: z.ZodBoolean;
661
+ is_published: z.ZodBoolean;
662
+ is_paused: z.ZodBoolean;
663
+ }, "strict", z.ZodTypeAny, {
664
+ has_refund_path: boolean;
665
+ has_arbitration: boolean;
666
+ has_messenger: boolean;
667
+ has_compensation_fund: boolean;
668
+ has_buy_guard: boolean;
669
+ has_milestone_nodes: boolean;
670
+ has_wip_verification: boolean;
671
+ has_dynamic_pricing: boolean;
672
+ is_published: boolean;
673
+ is_paused: boolean;
674
+ }, {
675
+ has_refund_path: boolean;
676
+ has_arbitration: boolean;
677
+ has_messenger: boolean;
678
+ has_compensation_fund: boolean;
679
+ has_buy_guard: boolean;
680
+ has_milestone_nodes: boolean;
681
+ has_wip_verification: boolean;
682
+ has_dynamic_pricing: boolean;
683
+ is_published: boolean;
684
+ is_paused: boolean;
685
+ }>;
686
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
687
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
688
+ }, "strict", z.ZodTypeAny, {
689
+ id: string;
690
+ kind: "service" | "demand";
691
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
692
+ region: {
693
+ raw: string;
694
+ mode: "physical" | "remote";
695
+ country?: string | undefined;
696
+ province?: string | undefined;
697
+ city?: string | undefined;
698
+ };
699
+ capabilities: {
700
+ has_refund_path: boolean;
701
+ has_arbitration: boolean;
702
+ has_messenger: boolean;
703
+ has_compensation_fund: boolean;
704
+ has_buy_guard: boolean;
705
+ has_milestone_nodes: boolean;
706
+ has_wip_verification: boolean;
707
+ has_dynamic_pricing: boolean;
708
+ is_published: boolean;
709
+ is_paused: boolean;
710
+ };
711
+ owner?: string | undefined;
712
+ token_type?: string | undefined;
713
+ tags?: string[] | undefined;
714
+ trust_score?: number | undefined;
715
+ arbitration_independent?: boolean | undefined;
716
+ reputation_like_ratio?: number | undefined;
717
+ keywords?: string[] | undefined;
718
+ industry_confidence?: number | undefined;
719
+ price_min?: string | undefined;
720
+ price_max?: string | undefined;
721
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
722
+ merchant_history_count?: number | undefined;
723
+ }, {
724
+ id: string;
725
+ kind: "service" | "demand";
726
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
727
+ region: {
728
+ raw: string;
729
+ mode: "physical" | "remote";
730
+ country?: string | undefined;
731
+ province?: string | undefined;
732
+ city?: string | undefined;
733
+ };
734
+ capabilities: {
735
+ has_refund_path: boolean;
736
+ has_arbitration: boolean;
737
+ has_messenger: boolean;
738
+ has_compensation_fund: boolean;
739
+ has_buy_guard: boolean;
740
+ has_milestone_nodes: boolean;
741
+ has_wip_verification: boolean;
742
+ has_dynamic_pricing: boolean;
743
+ is_published: boolean;
744
+ is_paused: boolean;
745
+ };
746
+ owner?: string | undefined;
747
+ token_type?: string | undefined;
748
+ tags?: string[] | undefined;
749
+ trust_score?: number | undefined;
750
+ arbitration_independent?: boolean | undefined;
751
+ reputation_like_ratio?: number | undefined;
752
+ keywords?: string[] | undefined;
753
+ industry_confidence?: number | undefined;
754
+ price_min?: string | undefined;
755
+ price_max?: string | undefined;
756
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
757
+ merchant_history_count?: number | undefined;
758
+ }>;
759
+ service: z.ZodObject<{
760
+ id: z.ZodString;
761
+ kind: z.ZodEnum<["service", "demand"]>;
762
+ owner: z.ZodOptional<z.ZodString>;
763
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
764
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
765
+ region: z.ZodObject<{
766
+ mode: z.ZodEnum<["remote", "physical"]>;
767
+ country: z.ZodOptional<z.ZodString>;
768
+ province: z.ZodOptional<z.ZodString>;
769
+ city: z.ZodOptional<z.ZodString>;
770
+ raw: z.ZodString;
771
+ }, "strict", z.ZodTypeAny, {
772
+ raw: string;
773
+ mode: "physical" | "remote";
774
+ country?: string | undefined;
775
+ province?: string | undefined;
776
+ city?: string | undefined;
777
+ }, {
778
+ raw: string;
779
+ mode: "physical" | "remote";
780
+ country?: string | undefined;
781
+ province?: string | undefined;
782
+ city?: string | undefined;
783
+ }>;
784
+ price_min: z.ZodOptional<z.ZodString>;
785
+ price_max: z.ZodOptional<z.ZodString>;
786
+ token_type: z.ZodOptional<z.ZodString>;
787
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
788
+ trust_score: z.ZodOptional<z.ZodNumber>;
789
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
790
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
791
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
792
+ capabilities: z.ZodObject<{
793
+ has_arbitration: z.ZodBoolean;
794
+ has_refund_path: z.ZodBoolean;
795
+ has_milestone_nodes: z.ZodBoolean;
796
+ has_compensation_fund: z.ZodBoolean;
797
+ has_wip_verification: z.ZodBoolean;
798
+ has_messenger: z.ZodBoolean;
799
+ has_buy_guard: z.ZodBoolean;
800
+ has_dynamic_pricing: z.ZodBoolean;
801
+ is_published: z.ZodBoolean;
802
+ is_paused: z.ZodBoolean;
803
+ }, "strict", z.ZodTypeAny, {
804
+ has_refund_path: boolean;
805
+ has_arbitration: boolean;
806
+ has_messenger: boolean;
807
+ has_compensation_fund: boolean;
808
+ has_buy_guard: boolean;
809
+ has_milestone_nodes: boolean;
810
+ has_wip_verification: boolean;
811
+ has_dynamic_pricing: boolean;
812
+ is_published: boolean;
813
+ is_paused: boolean;
814
+ }, {
815
+ has_refund_path: boolean;
816
+ has_arbitration: boolean;
817
+ has_messenger: boolean;
818
+ has_compensation_fund: boolean;
819
+ has_buy_guard: boolean;
820
+ has_milestone_nodes: boolean;
821
+ has_wip_verification: boolean;
822
+ has_dynamic_pricing: boolean;
823
+ is_published: boolean;
824
+ is_paused: boolean;
825
+ }>;
826
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
827
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
828
+ }, "strict", z.ZodTypeAny, {
829
+ id: string;
830
+ kind: "service" | "demand";
831
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
832
+ region: {
833
+ raw: string;
834
+ mode: "physical" | "remote";
835
+ country?: string | undefined;
836
+ province?: string | undefined;
837
+ city?: string | undefined;
838
+ };
839
+ capabilities: {
840
+ has_refund_path: boolean;
841
+ has_arbitration: boolean;
842
+ has_messenger: boolean;
843
+ has_compensation_fund: boolean;
844
+ has_buy_guard: boolean;
845
+ has_milestone_nodes: boolean;
846
+ has_wip_verification: boolean;
847
+ has_dynamic_pricing: boolean;
848
+ is_published: boolean;
849
+ is_paused: boolean;
850
+ };
851
+ owner?: string | undefined;
852
+ token_type?: string | undefined;
853
+ tags?: string[] | undefined;
854
+ trust_score?: number | undefined;
855
+ arbitration_independent?: boolean | undefined;
856
+ reputation_like_ratio?: number | undefined;
857
+ keywords?: string[] | undefined;
858
+ industry_confidence?: number | undefined;
859
+ price_min?: string | undefined;
860
+ price_max?: string | undefined;
861
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
862
+ merchant_history_count?: number | undefined;
863
+ }, {
864
+ id: string;
865
+ kind: "service" | "demand";
866
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
867
+ region: {
868
+ raw: string;
869
+ mode: "physical" | "remote";
870
+ country?: string | undefined;
871
+ province?: string | undefined;
872
+ city?: string | undefined;
873
+ };
874
+ capabilities: {
875
+ has_refund_path: boolean;
876
+ has_arbitration: boolean;
877
+ has_messenger: boolean;
878
+ has_compensation_fund: boolean;
879
+ has_buy_guard: boolean;
880
+ has_milestone_nodes: boolean;
881
+ has_wip_verification: boolean;
882
+ has_dynamic_pricing: boolean;
883
+ is_published: boolean;
884
+ is_paused: boolean;
885
+ };
886
+ owner?: string | undefined;
887
+ token_type?: string | undefined;
888
+ tags?: string[] | undefined;
889
+ trust_score?: number | undefined;
890
+ arbitration_independent?: boolean | undefined;
891
+ reputation_like_ratio?: number | undefined;
892
+ keywords?: string[] | undefined;
893
+ industry_confidence?: number | undefined;
894
+ price_min?: string | undefined;
895
+ price_max?: string | undefined;
896
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
897
+ merchant_history_count?: number | undefined;
898
+ }>;
899
+ }, "strict", z.ZodTypeAny, {
900
+ action: "capability_gap";
901
+ service: {
902
+ id: string;
903
+ kind: "service" | "demand";
904
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
905
+ region: {
906
+ raw: string;
907
+ mode: "physical" | "remote";
908
+ country?: string | undefined;
909
+ province?: string | undefined;
910
+ city?: string | undefined;
911
+ };
912
+ capabilities: {
913
+ has_refund_path: boolean;
914
+ has_arbitration: boolean;
915
+ has_messenger: boolean;
916
+ has_compensation_fund: boolean;
917
+ has_buy_guard: boolean;
918
+ has_milestone_nodes: boolean;
919
+ has_wip_verification: boolean;
920
+ has_dynamic_pricing: boolean;
921
+ is_published: boolean;
922
+ is_paused: boolean;
923
+ };
924
+ owner?: string | undefined;
925
+ token_type?: string | undefined;
926
+ tags?: string[] | undefined;
927
+ trust_score?: number | undefined;
928
+ arbitration_independent?: boolean | undefined;
929
+ reputation_like_ratio?: number | undefined;
930
+ keywords?: string[] | undefined;
931
+ industry_confidence?: number | undefined;
932
+ price_min?: string | undefined;
933
+ price_max?: string | undefined;
934
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
935
+ merchant_history_count?: number | undefined;
936
+ };
937
+ demand: {
938
+ id: string;
939
+ kind: "service" | "demand";
940
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
941
+ region: {
942
+ raw: string;
943
+ mode: "physical" | "remote";
944
+ country?: string | undefined;
945
+ province?: string | undefined;
946
+ city?: string | undefined;
947
+ };
948
+ capabilities: {
949
+ has_refund_path: boolean;
950
+ has_arbitration: boolean;
951
+ has_messenger: boolean;
952
+ has_compensation_fund: boolean;
953
+ has_buy_guard: boolean;
954
+ has_milestone_nodes: boolean;
955
+ has_wip_verification: boolean;
956
+ has_dynamic_pricing: boolean;
957
+ is_published: boolean;
958
+ is_paused: boolean;
959
+ };
960
+ owner?: string | undefined;
961
+ token_type?: string | undefined;
962
+ tags?: string[] | undefined;
963
+ trust_score?: number | undefined;
964
+ arbitration_independent?: boolean | undefined;
965
+ reputation_like_ratio?: number | undefined;
966
+ keywords?: string[] | undefined;
967
+ industry_confidence?: number | undefined;
968
+ price_min?: string | undefined;
969
+ price_max?: string | undefined;
970
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
971
+ merchant_history_count?: number | undefined;
972
+ };
973
+ }, {
974
+ action: "capability_gap";
975
+ service: {
976
+ id: string;
977
+ kind: "service" | "demand";
978
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
979
+ region: {
980
+ raw: string;
981
+ mode: "physical" | "remote";
982
+ country?: string | undefined;
983
+ province?: string | undefined;
984
+ city?: string | undefined;
985
+ };
986
+ capabilities: {
987
+ has_refund_path: boolean;
988
+ has_arbitration: boolean;
989
+ has_messenger: boolean;
990
+ has_compensation_fund: boolean;
991
+ has_buy_guard: boolean;
992
+ has_milestone_nodes: boolean;
993
+ has_wip_verification: boolean;
994
+ has_dynamic_pricing: boolean;
995
+ is_published: boolean;
996
+ is_paused: boolean;
997
+ };
998
+ owner?: string | undefined;
999
+ token_type?: string | undefined;
1000
+ tags?: string[] | undefined;
1001
+ trust_score?: number | undefined;
1002
+ arbitration_independent?: boolean | undefined;
1003
+ reputation_like_ratio?: number | undefined;
1004
+ keywords?: string[] | undefined;
1005
+ industry_confidence?: number | undefined;
1006
+ price_min?: string | undefined;
1007
+ price_max?: string | undefined;
1008
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1009
+ merchant_history_count?: number | undefined;
1010
+ };
1011
+ demand: {
1012
+ id: string;
1013
+ kind: "service" | "demand";
1014
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1015
+ region: {
1016
+ raw: string;
1017
+ mode: "physical" | "remote";
1018
+ country?: string | undefined;
1019
+ province?: string | undefined;
1020
+ city?: string | undefined;
1021
+ };
1022
+ capabilities: {
1023
+ has_refund_path: boolean;
1024
+ has_arbitration: boolean;
1025
+ has_messenger: boolean;
1026
+ has_compensation_fund: boolean;
1027
+ has_buy_guard: boolean;
1028
+ has_milestone_nodes: boolean;
1029
+ has_wip_verification: boolean;
1030
+ has_dynamic_pricing: boolean;
1031
+ is_published: boolean;
1032
+ is_paused: boolean;
1033
+ };
1034
+ owner?: string | undefined;
1035
+ token_type?: string | undefined;
1036
+ tags?: string[] | undefined;
1037
+ trust_score?: number | undefined;
1038
+ arbitration_independent?: boolean | undefined;
1039
+ reputation_like_ratio?: number | undefined;
1040
+ keywords?: string[] | undefined;
1041
+ industry_confidence?: number | undefined;
1042
+ price_min?: string | undefined;
1043
+ price_max?: string | undefined;
1044
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1045
+ merchant_history_count?: number | undefined;
1046
+ };
1047
+ }>, z.ZodObject<{
1048
+ action: z.ZodLiteral<"compose_service">;
1049
+ demand: z.ZodObject<{
1050
+ id: z.ZodString;
1051
+ kind: z.ZodEnum<["service", "demand"]>;
1052
+ owner: z.ZodOptional<z.ZodString>;
1053
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1054
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1055
+ region: z.ZodObject<{
1056
+ mode: z.ZodEnum<["remote", "physical"]>;
1057
+ country: z.ZodOptional<z.ZodString>;
1058
+ province: z.ZodOptional<z.ZodString>;
1059
+ city: z.ZodOptional<z.ZodString>;
1060
+ raw: z.ZodString;
1061
+ }, "strict", z.ZodTypeAny, {
1062
+ raw: string;
1063
+ mode: "physical" | "remote";
1064
+ country?: string | undefined;
1065
+ province?: string | undefined;
1066
+ city?: string | undefined;
1067
+ }, {
1068
+ raw: string;
1069
+ mode: "physical" | "remote";
1070
+ country?: string | undefined;
1071
+ province?: string | undefined;
1072
+ city?: string | undefined;
1073
+ }>;
1074
+ price_min: z.ZodOptional<z.ZodString>;
1075
+ price_max: z.ZodOptional<z.ZodString>;
1076
+ token_type: z.ZodOptional<z.ZodString>;
1077
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1078
+ trust_score: z.ZodOptional<z.ZodNumber>;
1079
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1080
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1081
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1082
+ capabilities: z.ZodObject<{
1083
+ has_arbitration: z.ZodBoolean;
1084
+ has_refund_path: z.ZodBoolean;
1085
+ has_milestone_nodes: z.ZodBoolean;
1086
+ has_compensation_fund: z.ZodBoolean;
1087
+ has_wip_verification: z.ZodBoolean;
1088
+ has_messenger: z.ZodBoolean;
1089
+ has_buy_guard: z.ZodBoolean;
1090
+ has_dynamic_pricing: z.ZodBoolean;
1091
+ is_published: z.ZodBoolean;
1092
+ is_paused: z.ZodBoolean;
1093
+ }, "strict", z.ZodTypeAny, {
1094
+ has_refund_path: boolean;
1095
+ has_arbitration: boolean;
1096
+ has_messenger: boolean;
1097
+ has_compensation_fund: boolean;
1098
+ has_buy_guard: boolean;
1099
+ has_milestone_nodes: boolean;
1100
+ has_wip_verification: boolean;
1101
+ has_dynamic_pricing: boolean;
1102
+ is_published: boolean;
1103
+ is_paused: boolean;
1104
+ }, {
1105
+ has_refund_path: boolean;
1106
+ has_arbitration: boolean;
1107
+ has_messenger: boolean;
1108
+ has_compensation_fund: boolean;
1109
+ has_buy_guard: boolean;
1110
+ has_milestone_nodes: boolean;
1111
+ has_wip_verification: boolean;
1112
+ has_dynamic_pricing: boolean;
1113
+ is_published: boolean;
1114
+ is_paused: boolean;
1115
+ }>;
1116
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1117
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1118
+ }, "strict", z.ZodTypeAny, {
1119
+ id: string;
1120
+ kind: "service" | "demand";
1121
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1122
+ region: {
1123
+ raw: string;
1124
+ mode: "physical" | "remote";
1125
+ country?: string | undefined;
1126
+ province?: string | undefined;
1127
+ city?: string | undefined;
1128
+ };
1129
+ capabilities: {
1130
+ has_refund_path: boolean;
1131
+ has_arbitration: boolean;
1132
+ has_messenger: boolean;
1133
+ has_compensation_fund: boolean;
1134
+ has_buy_guard: boolean;
1135
+ has_milestone_nodes: boolean;
1136
+ has_wip_verification: boolean;
1137
+ has_dynamic_pricing: boolean;
1138
+ is_published: boolean;
1139
+ is_paused: boolean;
1140
+ };
1141
+ owner?: string | undefined;
1142
+ token_type?: string | undefined;
1143
+ tags?: string[] | undefined;
1144
+ trust_score?: number | undefined;
1145
+ arbitration_independent?: boolean | undefined;
1146
+ reputation_like_ratio?: number | undefined;
1147
+ keywords?: string[] | undefined;
1148
+ industry_confidence?: number | undefined;
1149
+ price_min?: string | undefined;
1150
+ price_max?: string | undefined;
1151
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1152
+ merchant_history_count?: number | undefined;
1153
+ }, {
1154
+ id: string;
1155
+ kind: "service" | "demand";
1156
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1157
+ region: {
1158
+ raw: string;
1159
+ mode: "physical" | "remote";
1160
+ country?: string | undefined;
1161
+ province?: string | undefined;
1162
+ city?: string | undefined;
1163
+ };
1164
+ capabilities: {
1165
+ has_refund_path: boolean;
1166
+ has_arbitration: boolean;
1167
+ has_messenger: boolean;
1168
+ has_compensation_fund: boolean;
1169
+ has_buy_guard: boolean;
1170
+ has_milestone_nodes: boolean;
1171
+ has_wip_verification: boolean;
1172
+ has_dynamic_pricing: boolean;
1173
+ is_published: boolean;
1174
+ is_paused: boolean;
1175
+ };
1176
+ owner?: string | undefined;
1177
+ token_type?: string | undefined;
1178
+ tags?: string[] | undefined;
1179
+ trust_score?: number | undefined;
1180
+ arbitration_independent?: boolean | undefined;
1181
+ reputation_like_ratio?: number | undefined;
1182
+ keywords?: string[] | undefined;
1183
+ industry_confidence?: number | undefined;
1184
+ price_min?: string | undefined;
1185
+ price_max?: string | undefined;
1186
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1187
+ merchant_history_count?: number | undefined;
1188
+ }>;
1189
+ services: z.ZodArray<z.ZodObject<{
1190
+ id: z.ZodString;
1191
+ kind: z.ZodEnum<["service", "demand"]>;
1192
+ owner: z.ZodOptional<z.ZodString>;
1193
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1194
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1195
+ region: z.ZodObject<{
1196
+ mode: z.ZodEnum<["remote", "physical"]>;
1197
+ country: z.ZodOptional<z.ZodString>;
1198
+ province: z.ZodOptional<z.ZodString>;
1199
+ city: z.ZodOptional<z.ZodString>;
1200
+ raw: z.ZodString;
1201
+ }, "strict", z.ZodTypeAny, {
1202
+ raw: string;
1203
+ mode: "physical" | "remote";
1204
+ country?: string | undefined;
1205
+ province?: string | undefined;
1206
+ city?: string | undefined;
1207
+ }, {
1208
+ raw: string;
1209
+ mode: "physical" | "remote";
1210
+ country?: string | undefined;
1211
+ province?: string | undefined;
1212
+ city?: string | undefined;
1213
+ }>;
1214
+ price_min: z.ZodOptional<z.ZodString>;
1215
+ price_max: z.ZodOptional<z.ZodString>;
1216
+ token_type: z.ZodOptional<z.ZodString>;
1217
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1218
+ trust_score: z.ZodOptional<z.ZodNumber>;
1219
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1220
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1221
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1222
+ capabilities: z.ZodObject<{
1223
+ has_arbitration: z.ZodBoolean;
1224
+ has_refund_path: z.ZodBoolean;
1225
+ has_milestone_nodes: z.ZodBoolean;
1226
+ has_compensation_fund: z.ZodBoolean;
1227
+ has_wip_verification: z.ZodBoolean;
1228
+ has_messenger: z.ZodBoolean;
1229
+ has_buy_guard: z.ZodBoolean;
1230
+ has_dynamic_pricing: z.ZodBoolean;
1231
+ is_published: z.ZodBoolean;
1232
+ is_paused: z.ZodBoolean;
1233
+ }, "strict", z.ZodTypeAny, {
1234
+ has_refund_path: boolean;
1235
+ has_arbitration: boolean;
1236
+ has_messenger: boolean;
1237
+ has_compensation_fund: boolean;
1238
+ has_buy_guard: boolean;
1239
+ has_milestone_nodes: boolean;
1240
+ has_wip_verification: boolean;
1241
+ has_dynamic_pricing: boolean;
1242
+ is_published: boolean;
1243
+ is_paused: boolean;
1244
+ }, {
1245
+ has_refund_path: boolean;
1246
+ has_arbitration: boolean;
1247
+ has_messenger: boolean;
1248
+ has_compensation_fund: boolean;
1249
+ has_buy_guard: boolean;
1250
+ has_milestone_nodes: boolean;
1251
+ has_wip_verification: boolean;
1252
+ has_dynamic_pricing: boolean;
1253
+ is_published: boolean;
1254
+ is_paused: boolean;
1255
+ }>;
1256
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1257
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1258
+ }, "strict", z.ZodTypeAny, {
1259
+ id: string;
1260
+ kind: "service" | "demand";
1261
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1262
+ region: {
1263
+ raw: string;
1264
+ mode: "physical" | "remote";
1265
+ country?: string | undefined;
1266
+ province?: string | undefined;
1267
+ city?: string | undefined;
1268
+ };
1269
+ capabilities: {
1270
+ has_refund_path: boolean;
1271
+ has_arbitration: boolean;
1272
+ has_messenger: boolean;
1273
+ has_compensation_fund: boolean;
1274
+ has_buy_guard: boolean;
1275
+ has_milestone_nodes: boolean;
1276
+ has_wip_verification: boolean;
1277
+ has_dynamic_pricing: boolean;
1278
+ is_published: boolean;
1279
+ is_paused: boolean;
1280
+ };
1281
+ owner?: string | undefined;
1282
+ token_type?: string | undefined;
1283
+ tags?: string[] | undefined;
1284
+ trust_score?: number | undefined;
1285
+ arbitration_independent?: boolean | undefined;
1286
+ reputation_like_ratio?: number | undefined;
1287
+ keywords?: string[] | undefined;
1288
+ industry_confidence?: number | undefined;
1289
+ price_min?: string | undefined;
1290
+ price_max?: string | undefined;
1291
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1292
+ merchant_history_count?: number | undefined;
1293
+ }, {
1294
+ id: string;
1295
+ kind: "service" | "demand";
1296
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1297
+ region: {
1298
+ raw: string;
1299
+ mode: "physical" | "remote";
1300
+ country?: string | undefined;
1301
+ province?: string | undefined;
1302
+ city?: string | undefined;
1303
+ };
1304
+ capabilities: {
1305
+ has_refund_path: boolean;
1306
+ has_arbitration: boolean;
1307
+ has_messenger: boolean;
1308
+ has_compensation_fund: boolean;
1309
+ has_buy_guard: boolean;
1310
+ has_milestone_nodes: boolean;
1311
+ has_wip_verification: boolean;
1312
+ has_dynamic_pricing: boolean;
1313
+ is_published: boolean;
1314
+ is_paused: boolean;
1315
+ };
1316
+ owner?: string | undefined;
1317
+ token_type?: string | undefined;
1318
+ tags?: string[] | undefined;
1319
+ trust_score?: number | undefined;
1320
+ arbitration_independent?: boolean | undefined;
1321
+ reputation_like_ratio?: number | undefined;
1322
+ keywords?: string[] | undefined;
1323
+ industry_confidence?: number | undefined;
1324
+ price_min?: string | undefined;
1325
+ price_max?: string | undefined;
1326
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1327
+ merchant_history_count?: number | undefined;
1328
+ }>, "many">;
1329
+ }, "strict", z.ZodTypeAny, {
1330
+ action: "compose_service";
1331
+ demand: {
1332
+ id: string;
1333
+ kind: "service" | "demand";
1334
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1335
+ region: {
1336
+ raw: string;
1337
+ mode: "physical" | "remote";
1338
+ country?: string | undefined;
1339
+ province?: string | undefined;
1340
+ city?: string | undefined;
1341
+ };
1342
+ capabilities: {
1343
+ has_refund_path: boolean;
1344
+ has_arbitration: boolean;
1345
+ has_messenger: boolean;
1346
+ has_compensation_fund: boolean;
1347
+ has_buy_guard: boolean;
1348
+ has_milestone_nodes: boolean;
1349
+ has_wip_verification: boolean;
1350
+ has_dynamic_pricing: boolean;
1351
+ is_published: boolean;
1352
+ is_paused: boolean;
1353
+ };
1354
+ owner?: string | undefined;
1355
+ token_type?: string | undefined;
1356
+ tags?: string[] | undefined;
1357
+ trust_score?: number | undefined;
1358
+ arbitration_independent?: boolean | undefined;
1359
+ reputation_like_ratio?: number | undefined;
1360
+ keywords?: string[] | undefined;
1361
+ industry_confidence?: number | undefined;
1362
+ price_min?: string | undefined;
1363
+ price_max?: string | undefined;
1364
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1365
+ merchant_history_count?: number | undefined;
1366
+ };
1367
+ services: {
1368
+ id: string;
1369
+ kind: "service" | "demand";
1370
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1371
+ region: {
1372
+ raw: string;
1373
+ mode: "physical" | "remote";
1374
+ country?: string | undefined;
1375
+ province?: string | undefined;
1376
+ city?: string | undefined;
1377
+ };
1378
+ capabilities: {
1379
+ has_refund_path: boolean;
1380
+ has_arbitration: boolean;
1381
+ has_messenger: boolean;
1382
+ has_compensation_fund: boolean;
1383
+ has_buy_guard: boolean;
1384
+ has_milestone_nodes: boolean;
1385
+ has_wip_verification: boolean;
1386
+ has_dynamic_pricing: boolean;
1387
+ is_published: boolean;
1388
+ is_paused: boolean;
1389
+ };
1390
+ owner?: string | undefined;
1391
+ token_type?: string | undefined;
1392
+ tags?: string[] | undefined;
1393
+ trust_score?: number | undefined;
1394
+ arbitration_independent?: boolean | undefined;
1395
+ reputation_like_ratio?: number | undefined;
1396
+ keywords?: string[] | undefined;
1397
+ industry_confidence?: number | undefined;
1398
+ price_min?: string | undefined;
1399
+ price_max?: string | undefined;
1400
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1401
+ merchant_history_count?: number | undefined;
1402
+ }[];
1403
+ }, {
1404
+ action: "compose_service";
1405
+ demand: {
1406
+ id: string;
1407
+ kind: "service" | "demand";
1408
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1409
+ region: {
1410
+ raw: string;
1411
+ mode: "physical" | "remote";
1412
+ country?: string | undefined;
1413
+ province?: string | undefined;
1414
+ city?: string | undefined;
1415
+ };
1416
+ capabilities: {
1417
+ has_refund_path: boolean;
1418
+ has_arbitration: boolean;
1419
+ has_messenger: boolean;
1420
+ has_compensation_fund: boolean;
1421
+ has_buy_guard: boolean;
1422
+ has_milestone_nodes: boolean;
1423
+ has_wip_verification: boolean;
1424
+ has_dynamic_pricing: boolean;
1425
+ is_published: boolean;
1426
+ is_paused: boolean;
1427
+ };
1428
+ owner?: string | undefined;
1429
+ token_type?: string | undefined;
1430
+ tags?: string[] | undefined;
1431
+ trust_score?: number | undefined;
1432
+ arbitration_independent?: boolean | undefined;
1433
+ reputation_like_ratio?: number | undefined;
1434
+ keywords?: string[] | undefined;
1435
+ industry_confidence?: number | undefined;
1436
+ price_min?: string | undefined;
1437
+ price_max?: string | undefined;
1438
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1439
+ merchant_history_count?: number | undefined;
1440
+ };
1441
+ services: {
1442
+ id: string;
1443
+ kind: "service" | "demand";
1444
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1445
+ region: {
1446
+ raw: string;
1447
+ mode: "physical" | "remote";
1448
+ country?: string | undefined;
1449
+ province?: string | undefined;
1450
+ city?: string | undefined;
1451
+ };
1452
+ capabilities: {
1453
+ has_refund_path: boolean;
1454
+ has_arbitration: boolean;
1455
+ has_messenger: boolean;
1456
+ has_compensation_fund: boolean;
1457
+ has_buy_guard: boolean;
1458
+ has_milestone_nodes: boolean;
1459
+ has_wip_verification: boolean;
1460
+ has_dynamic_pricing: boolean;
1461
+ is_published: boolean;
1462
+ is_paused: boolean;
1463
+ };
1464
+ owner?: string | undefined;
1465
+ token_type?: string | undefined;
1466
+ tags?: string[] | undefined;
1467
+ trust_score?: number | undefined;
1468
+ arbitration_independent?: boolean | undefined;
1469
+ reputation_like_ratio?: number | undefined;
1470
+ keywords?: string[] | undefined;
1471
+ industry_confidence?: number | undefined;
1472
+ price_min?: string | undefined;
1473
+ price_max?: string | undefined;
1474
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1475
+ merchant_history_count?: number | undefined;
1476
+ }[];
1477
+ }>, z.ZodObject<{
1478
+ action: z.ZodLiteral<"demand_match">;
1479
+ demand_cap: z.ZodObject<{
1480
+ id: z.ZodString;
1481
+ kind: z.ZodEnum<["service", "demand"]>;
1482
+ owner: z.ZodOptional<z.ZodString>;
1483
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1484
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1485
+ region: z.ZodObject<{
1486
+ mode: z.ZodEnum<["remote", "physical"]>;
1487
+ country: z.ZodOptional<z.ZodString>;
1488
+ province: z.ZodOptional<z.ZodString>;
1489
+ city: z.ZodOptional<z.ZodString>;
1490
+ raw: z.ZodString;
1491
+ }, "strict", z.ZodTypeAny, {
1492
+ raw: string;
1493
+ mode: "physical" | "remote";
1494
+ country?: string | undefined;
1495
+ province?: string | undefined;
1496
+ city?: string | undefined;
1497
+ }, {
1498
+ raw: string;
1499
+ mode: "physical" | "remote";
1500
+ country?: string | undefined;
1501
+ province?: string | undefined;
1502
+ city?: string | undefined;
1503
+ }>;
1504
+ price_min: z.ZodOptional<z.ZodString>;
1505
+ price_max: z.ZodOptional<z.ZodString>;
1506
+ token_type: z.ZodOptional<z.ZodString>;
1507
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1508
+ trust_score: z.ZodOptional<z.ZodNumber>;
1509
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1510
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1511
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1512
+ capabilities: z.ZodObject<{
1513
+ has_arbitration: z.ZodBoolean;
1514
+ has_refund_path: z.ZodBoolean;
1515
+ has_milestone_nodes: z.ZodBoolean;
1516
+ has_compensation_fund: z.ZodBoolean;
1517
+ has_wip_verification: z.ZodBoolean;
1518
+ has_messenger: z.ZodBoolean;
1519
+ has_buy_guard: z.ZodBoolean;
1520
+ has_dynamic_pricing: z.ZodBoolean;
1521
+ is_published: z.ZodBoolean;
1522
+ is_paused: z.ZodBoolean;
1523
+ }, "strict", z.ZodTypeAny, {
1524
+ has_refund_path: boolean;
1525
+ has_arbitration: boolean;
1526
+ has_messenger: boolean;
1527
+ has_compensation_fund: boolean;
1528
+ has_buy_guard: boolean;
1529
+ has_milestone_nodes: boolean;
1530
+ has_wip_verification: boolean;
1531
+ has_dynamic_pricing: boolean;
1532
+ is_published: boolean;
1533
+ is_paused: boolean;
1534
+ }, {
1535
+ has_refund_path: boolean;
1536
+ has_arbitration: boolean;
1537
+ has_messenger: boolean;
1538
+ has_compensation_fund: boolean;
1539
+ has_buy_guard: boolean;
1540
+ has_milestone_nodes: boolean;
1541
+ has_wip_verification: boolean;
1542
+ has_dynamic_pricing: boolean;
1543
+ is_published: boolean;
1544
+ is_paused: boolean;
1545
+ }>;
1546
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1548
+ }, "strict", z.ZodTypeAny, {
1549
+ id: string;
1550
+ kind: "service" | "demand";
1551
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1552
+ region: {
1553
+ raw: string;
1554
+ mode: "physical" | "remote";
1555
+ country?: string | undefined;
1556
+ province?: string | undefined;
1557
+ city?: string | undefined;
1558
+ };
1559
+ capabilities: {
1560
+ has_refund_path: boolean;
1561
+ has_arbitration: boolean;
1562
+ has_messenger: boolean;
1563
+ has_compensation_fund: boolean;
1564
+ has_buy_guard: boolean;
1565
+ has_milestone_nodes: boolean;
1566
+ has_wip_verification: boolean;
1567
+ has_dynamic_pricing: boolean;
1568
+ is_published: boolean;
1569
+ is_paused: boolean;
1570
+ };
1571
+ owner?: string | undefined;
1572
+ token_type?: string | undefined;
1573
+ tags?: string[] | undefined;
1574
+ trust_score?: number | undefined;
1575
+ arbitration_independent?: boolean | undefined;
1576
+ reputation_like_ratio?: number | undefined;
1577
+ keywords?: string[] | undefined;
1578
+ industry_confidence?: number | undefined;
1579
+ price_min?: string | undefined;
1580
+ price_max?: string | undefined;
1581
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1582
+ merchant_history_count?: number | undefined;
1583
+ }, {
1584
+ id: string;
1585
+ kind: "service" | "demand";
1586
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1587
+ region: {
1588
+ raw: string;
1589
+ mode: "physical" | "remote";
1590
+ country?: string | undefined;
1591
+ province?: string | undefined;
1592
+ city?: string | undefined;
1593
+ };
1594
+ capabilities: {
1595
+ has_refund_path: boolean;
1596
+ has_arbitration: boolean;
1597
+ has_messenger: boolean;
1598
+ has_compensation_fund: boolean;
1599
+ has_buy_guard: boolean;
1600
+ has_milestone_nodes: boolean;
1601
+ has_wip_verification: boolean;
1602
+ has_dynamic_pricing: boolean;
1603
+ is_published: boolean;
1604
+ is_paused: boolean;
1605
+ };
1606
+ owner?: string | undefined;
1607
+ token_type?: string | undefined;
1608
+ tags?: string[] | undefined;
1609
+ trust_score?: number | undefined;
1610
+ arbitration_independent?: boolean | undefined;
1611
+ reputation_like_ratio?: number | undefined;
1612
+ keywords?: string[] | undefined;
1613
+ industry_confidence?: number | undefined;
1614
+ price_min?: string | undefined;
1615
+ price_max?: string | undefined;
1616
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1617
+ merchant_history_count?: number | undefined;
1618
+ }>;
1619
+ services: z.ZodArray<z.ZodObject<{
1620
+ object: z.ZodString;
1621
+ description: z.ZodString;
1622
+ location: z.ZodString;
1623
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
1624
+ name: z.ZodOptional<z.ZodString>;
1625
+ price: z.ZodString;
1626
+ wip_hash: z.ZodOptional<z.ZodString>;
1627
+ }, "strict", z.ZodTypeAny, {
1628
+ price: string;
1629
+ name?: string | undefined;
1630
+ wip_hash?: string | undefined;
1631
+ }, {
1632
+ price: string;
1633
+ name?: string | undefined;
1634
+ wip_hash?: string | undefined;
1635
+ }>, "many">>;
1636
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1637
+ compensation_fund: z.ZodOptional<z.ZodString>;
1638
+ buy_guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1639
+ machine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1640
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1641
+ bPublished: z.ZodOptional<z.ZodBoolean>;
1642
+ bPaused: z.ZodOptional<z.ZodBoolean>;
1643
+ owner: z.ZodOptional<z.ZodString>;
1644
+ }, "strict", z.ZodTypeAny, {
1645
+ object: string;
1646
+ description: string;
1647
+ location: string;
1648
+ owner?: string | undefined;
1649
+ compensation_fund?: string | undefined;
1650
+ buy_guard?: string | null | undefined;
1651
+ machine?: string | null | undefined;
1652
+ arbitrations?: string[] | undefined;
1653
+ sales?: {
1654
+ price: string;
1655
+ name?: string | undefined;
1656
+ wip_hash?: string | undefined;
1657
+ }[] | undefined;
1658
+ um?: string | null | undefined;
1659
+ bPublished?: boolean | undefined;
1660
+ bPaused?: boolean | undefined;
1661
+ }, {
1662
+ object: string;
1663
+ description: string;
1664
+ location: string;
1665
+ owner?: string | undefined;
1666
+ compensation_fund?: string | undefined;
1667
+ buy_guard?: string | null | undefined;
1668
+ machine?: string | null | undefined;
1669
+ arbitrations?: string[] | undefined;
1670
+ sales?: {
1671
+ price: string;
1672
+ name?: string | undefined;
1673
+ wip_hash?: string | undefined;
1674
+ }[] | undefined;
1675
+ um?: string | null | undefined;
1676
+ bPublished?: boolean | undefined;
1677
+ bPaused?: boolean | undefined;
1678
+ }>, "many">;
1679
+ injection: z.ZodOptional<z.ZodObject<{
1680
+ intent: z.ZodOptional<z.ZodString>;
1681
+ preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1682
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1683
+ rule_id: z.ZodString;
1684
+ condition: z.ZodEnum<["require", "forbid"]>;
1685
+ note: z.ZodOptional<z.ZodString>;
1686
+ }, "strict", z.ZodTypeAny, {
1687
+ rule_id: string;
1688
+ condition: "require" | "forbid";
1689
+ note?: string | undefined;
1690
+ }, {
1691
+ rule_id: string;
1692
+ condition: "require" | "forbid";
1693
+ note?: string | undefined;
1694
+ }>, "many">>;
1695
+ overrides: z.ZodOptional<z.ZodObject<{
1696
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1697
+ enabled: z.ZodOptional<z.ZodBoolean>;
1698
+ weight: z.ZodOptional<z.ZodNumber>;
1699
+ }, "strict", z.ZodTypeAny, {
1700
+ enabled?: boolean | undefined;
1701
+ weight?: number | undefined;
1702
+ }, {
1703
+ enabled?: boolean | undefined;
1704
+ weight?: number | undefined;
1705
+ }>>>;
1706
+ data_sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1707
+ enabled: z.ZodOptional<z.ZodBoolean>;
1708
+ }, "strict", z.ZodTypeAny, {
1709
+ enabled?: boolean | undefined;
1710
+ }, {
1711
+ enabled?: boolean | undefined;
1712
+ }>>>;
1713
+ }, "strict", z.ZodTypeAny, {
1714
+ data_sources?: Record<string, {
1715
+ enabled?: boolean | undefined;
1716
+ }> | undefined;
1717
+ rules?: Record<string, {
1718
+ enabled?: boolean | undefined;
1719
+ weight?: number | undefined;
1720
+ }> | undefined;
1721
+ }, {
1722
+ data_sources?: Record<string, {
1723
+ enabled?: boolean | undefined;
1724
+ }> | undefined;
1725
+ rules?: Record<string, {
1726
+ enabled?: boolean | undefined;
1727
+ weight?: number | undefined;
1728
+ }> | undefined;
1729
+ }>>;
1730
+ }, "strict", z.ZodTypeAny, {
1731
+ intent?: string | undefined;
1732
+ overrides?: {
1733
+ data_sources?: Record<string, {
1734
+ enabled?: boolean | undefined;
1735
+ }> | undefined;
1736
+ rules?: Record<string, {
1737
+ enabled?: boolean | undefined;
1738
+ weight?: number | undefined;
1739
+ }> | undefined;
1740
+ } | undefined;
1741
+ preferences?: Record<string, unknown> | undefined;
1742
+ requirements?: {
1743
+ rule_id: string;
1744
+ condition: "require" | "forbid";
1745
+ note?: string | undefined;
1746
+ }[] | undefined;
1747
+ }, {
1748
+ intent?: string | undefined;
1749
+ overrides?: {
1750
+ data_sources?: Record<string, {
1751
+ enabled?: boolean | undefined;
1752
+ }> | undefined;
1753
+ rules?: Record<string, {
1754
+ enabled?: boolean | undefined;
1755
+ weight?: number | undefined;
1756
+ }> | undefined;
1757
+ } | undefined;
1758
+ preferences?: Record<string, unknown> | undefined;
1759
+ requirements?: {
1760
+ rule_id: string;
1761
+ condition: "require" | "forbid";
1762
+ note?: string | undefined;
1763
+ }[] | undefined;
1764
+ }>>;
1765
+ account: z.ZodOptional<z.ZodString>;
1766
+ }, "strict", z.ZodTypeAny, {
1767
+ action: "demand_match";
1768
+ services: {
1769
+ object: string;
1770
+ description: string;
1771
+ location: string;
1772
+ owner?: string | undefined;
1773
+ compensation_fund?: string | undefined;
1774
+ buy_guard?: string | null | undefined;
1775
+ machine?: string | null | undefined;
1776
+ arbitrations?: string[] | undefined;
1777
+ sales?: {
1778
+ price: string;
1779
+ name?: string | undefined;
1780
+ wip_hash?: string | undefined;
1781
+ }[] | undefined;
1782
+ um?: string | null | undefined;
1783
+ bPublished?: boolean | undefined;
1784
+ bPaused?: boolean | undefined;
1785
+ }[];
1786
+ demand_cap: {
1787
+ id: string;
1788
+ kind: "service" | "demand";
1789
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1790
+ region: {
1791
+ raw: string;
1792
+ mode: "physical" | "remote";
1793
+ country?: string | undefined;
1794
+ province?: string | undefined;
1795
+ city?: string | undefined;
1796
+ };
1797
+ capabilities: {
1798
+ has_refund_path: boolean;
1799
+ has_arbitration: boolean;
1800
+ has_messenger: boolean;
1801
+ has_compensation_fund: boolean;
1802
+ has_buy_guard: boolean;
1803
+ has_milestone_nodes: boolean;
1804
+ has_wip_verification: boolean;
1805
+ has_dynamic_pricing: boolean;
1806
+ is_published: boolean;
1807
+ is_paused: boolean;
1808
+ };
1809
+ owner?: string | undefined;
1810
+ token_type?: string | undefined;
1811
+ tags?: string[] | undefined;
1812
+ trust_score?: number | undefined;
1813
+ arbitration_independent?: boolean | undefined;
1814
+ reputation_like_ratio?: number | undefined;
1815
+ keywords?: string[] | undefined;
1816
+ industry_confidence?: number | undefined;
1817
+ price_min?: string | undefined;
1818
+ price_max?: string | undefined;
1819
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1820
+ merchant_history_count?: number | undefined;
1821
+ };
1822
+ account?: string | undefined;
1823
+ injection?: {
1824
+ intent?: string | undefined;
1825
+ overrides?: {
1826
+ data_sources?: Record<string, {
1827
+ enabled?: boolean | undefined;
1828
+ }> | undefined;
1829
+ rules?: Record<string, {
1830
+ enabled?: boolean | undefined;
1831
+ weight?: number | undefined;
1832
+ }> | undefined;
1833
+ } | undefined;
1834
+ preferences?: Record<string, unknown> | undefined;
1835
+ requirements?: {
1836
+ rule_id: string;
1837
+ condition: "require" | "forbid";
1838
+ note?: string | undefined;
1839
+ }[] | undefined;
1840
+ } | undefined;
1841
+ }, {
1842
+ action: "demand_match";
1843
+ services: {
1844
+ object: string;
1845
+ description: string;
1846
+ location: string;
1847
+ owner?: string | undefined;
1848
+ compensation_fund?: string | undefined;
1849
+ buy_guard?: string | null | undefined;
1850
+ machine?: string | null | undefined;
1851
+ arbitrations?: string[] | undefined;
1852
+ sales?: {
1853
+ price: string;
1854
+ name?: string | undefined;
1855
+ wip_hash?: string | undefined;
1856
+ }[] | undefined;
1857
+ um?: string | null | undefined;
1858
+ bPublished?: boolean | undefined;
1859
+ bPaused?: boolean | undefined;
1860
+ }[];
1861
+ demand_cap: {
1862
+ id: string;
1863
+ kind: "service" | "demand";
1864
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1865
+ region: {
1866
+ raw: string;
1867
+ mode: "physical" | "remote";
1868
+ country?: string | undefined;
1869
+ province?: string | undefined;
1870
+ city?: string | undefined;
1871
+ };
1872
+ capabilities: {
1873
+ has_refund_path: boolean;
1874
+ has_arbitration: boolean;
1875
+ has_messenger: boolean;
1876
+ has_compensation_fund: boolean;
1877
+ has_buy_guard: boolean;
1878
+ has_milestone_nodes: boolean;
1879
+ has_wip_verification: boolean;
1880
+ has_dynamic_pricing: boolean;
1881
+ is_published: boolean;
1882
+ is_paused: boolean;
1883
+ };
1884
+ owner?: string | undefined;
1885
+ token_type?: string | undefined;
1886
+ tags?: string[] | undefined;
1887
+ trust_score?: number | undefined;
1888
+ arbitration_independent?: boolean | undefined;
1889
+ reputation_like_ratio?: number | undefined;
1890
+ keywords?: string[] | undefined;
1891
+ industry_confidence?: number | undefined;
1892
+ price_min?: string | undefined;
1893
+ price_max?: string | undefined;
1894
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1895
+ merchant_history_count?: number | undefined;
1896
+ };
1897
+ account?: string | undefined;
1898
+ injection?: {
1899
+ intent?: string | undefined;
1900
+ overrides?: {
1901
+ data_sources?: Record<string, {
1902
+ enabled?: boolean | undefined;
1903
+ }> | undefined;
1904
+ rules?: Record<string, {
1905
+ enabled?: boolean | undefined;
1906
+ weight?: number | undefined;
1907
+ }> | undefined;
1908
+ } | undefined;
1909
+ preferences?: Record<string, unknown> | undefined;
1910
+ requirements?: {
1911
+ rule_id: string;
1912
+ condition: "require" | "forbid";
1913
+ note?: string | undefined;
1914
+ }[] | undefined;
1915
+ } | undefined;
1916
+ }>, z.ZodObject<{
1917
+ action: z.ZodLiteral<"service_match">;
1918
+ service_cap: z.ZodObject<{
1919
+ id: z.ZodString;
1920
+ kind: z.ZodEnum<["service", "demand"]>;
1921
+ owner: z.ZodOptional<z.ZodString>;
1922
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1923
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1924
+ region: z.ZodObject<{
1925
+ mode: z.ZodEnum<["remote", "physical"]>;
1926
+ country: z.ZodOptional<z.ZodString>;
1927
+ province: z.ZodOptional<z.ZodString>;
1928
+ city: z.ZodOptional<z.ZodString>;
1929
+ raw: z.ZodString;
1930
+ }, "strict", z.ZodTypeAny, {
1931
+ raw: string;
1932
+ mode: "physical" | "remote";
1933
+ country?: string | undefined;
1934
+ province?: string | undefined;
1935
+ city?: string | undefined;
1936
+ }, {
1937
+ raw: string;
1938
+ mode: "physical" | "remote";
1939
+ country?: string | undefined;
1940
+ province?: string | undefined;
1941
+ city?: string | undefined;
1942
+ }>;
1943
+ price_min: z.ZodOptional<z.ZodString>;
1944
+ price_max: z.ZodOptional<z.ZodString>;
1945
+ token_type: z.ZodOptional<z.ZodString>;
1946
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1947
+ trust_score: z.ZodOptional<z.ZodNumber>;
1948
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1949
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1950
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1951
+ capabilities: z.ZodObject<{
1952
+ has_arbitration: z.ZodBoolean;
1953
+ has_refund_path: z.ZodBoolean;
1954
+ has_milestone_nodes: z.ZodBoolean;
1955
+ has_compensation_fund: z.ZodBoolean;
1956
+ has_wip_verification: z.ZodBoolean;
1957
+ has_messenger: z.ZodBoolean;
1958
+ has_buy_guard: z.ZodBoolean;
1959
+ has_dynamic_pricing: z.ZodBoolean;
1960
+ is_published: z.ZodBoolean;
1961
+ is_paused: z.ZodBoolean;
1962
+ }, "strict", z.ZodTypeAny, {
1963
+ has_refund_path: boolean;
1964
+ has_arbitration: boolean;
1965
+ has_messenger: boolean;
1966
+ has_compensation_fund: boolean;
1967
+ has_buy_guard: boolean;
1968
+ has_milestone_nodes: boolean;
1969
+ has_wip_verification: boolean;
1970
+ has_dynamic_pricing: boolean;
1971
+ is_published: boolean;
1972
+ is_paused: boolean;
1973
+ }, {
1974
+ has_refund_path: boolean;
1975
+ has_arbitration: boolean;
1976
+ has_messenger: boolean;
1977
+ has_compensation_fund: boolean;
1978
+ has_buy_guard: boolean;
1979
+ has_milestone_nodes: boolean;
1980
+ has_wip_verification: boolean;
1981
+ has_dynamic_pricing: boolean;
1982
+ is_published: boolean;
1983
+ is_paused: boolean;
1984
+ }>;
1985
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1986
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1987
+ }, "strict", z.ZodTypeAny, {
1988
+ id: string;
1989
+ kind: "service" | "demand";
1990
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1991
+ region: {
1992
+ raw: string;
1993
+ mode: "physical" | "remote";
1994
+ country?: string | undefined;
1995
+ province?: string | undefined;
1996
+ city?: string | undefined;
1997
+ };
1998
+ capabilities: {
1999
+ has_refund_path: boolean;
2000
+ has_arbitration: boolean;
2001
+ has_messenger: boolean;
2002
+ has_compensation_fund: boolean;
2003
+ has_buy_guard: boolean;
2004
+ has_milestone_nodes: boolean;
2005
+ has_wip_verification: boolean;
2006
+ has_dynamic_pricing: boolean;
2007
+ is_published: boolean;
2008
+ is_paused: boolean;
2009
+ };
2010
+ owner?: string | undefined;
2011
+ token_type?: string | undefined;
2012
+ tags?: string[] | undefined;
2013
+ trust_score?: number | undefined;
2014
+ arbitration_independent?: boolean | undefined;
2015
+ reputation_like_ratio?: number | undefined;
2016
+ keywords?: string[] | undefined;
2017
+ industry_confidence?: number | undefined;
2018
+ price_min?: string | undefined;
2019
+ price_max?: string | undefined;
2020
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
2021
+ merchant_history_count?: number | undefined;
2022
+ }, {
2023
+ id: string;
2024
+ kind: "service" | "demand";
2025
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
2026
+ region: {
2027
+ raw: string;
2028
+ mode: "physical" | "remote";
2029
+ country?: string | undefined;
2030
+ province?: string | undefined;
2031
+ city?: string | undefined;
2032
+ };
2033
+ capabilities: {
2034
+ has_refund_path: boolean;
2035
+ has_arbitration: boolean;
2036
+ has_messenger: boolean;
2037
+ has_compensation_fund: boolean;
2038
+ has_buy_guard: boolean;
2039
+ has_milestone_nodes: boolean;
2040
+ has_wip_verification: boolean;
2041
+ has_dynamic_pricing: boolean;
2042
+ is_published: boolean;
2043
+ is_paused: boolean;
2044
+ };
2045
+ owner?: string | undefined;
2046
+ token_type?: string | undefined;
2047
+ tags?: string[] | undefined;
2048
+ trust_score?: number | undefined;
2049
+ arbitration_independent?: boolean | undefined;
2050
+ reputation_like_ratio?: number | undefined;
2051
+ keywords?: string[] | undefined;
2052
+ industry_confidence?: number | undefined;
2053
+ price_min?: string | undefined;
2054
+ price_max?: string | undefined;
2055
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
2056
+ merchant_history_count?: number | undefined;
2057
+ }>;
2058
+ demands: z.ZodArray<z.ZodObject<{
2059
+ object: z.ZodString;
2060
+ description: z.ZodString;
2061
+ location: z.ZodString;
2062
+ rewards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2063
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2064
+ owner: z.ZodOptional<z.ZodString>;
2065
+ }, "strict", z.ZodTypeAny, {
2066
+ object: string;
2067
+ description: string;
2068
+ location: string;
2069
+ owner?: string | undefined;
2070
+ rewards?: string[] | undefined;
2071
+ um?: string | null | undefined;
2072
+ }, {
2073
+ object: string;
2074
+ description: string;
2075
+ location: string;
2076
+ owner?: string | undefined;
2077
+ rewards?: string[] | undefined;
2078
+ um?: string | null | undefined;
2079
+ }>, "many">;
2080
+ injection: z.ZodOptional<z.ZodObject<{
2081
+ intent: z.ZodOptional<z.ZodString>;
2082
+ preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2083
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
2084
+ rule_id: z.ZodString;
2085
+ condition: z.ZodEnum<["require", "forbid"]>;
2086
+ note: z.ZodOptional<z.ZodString>;
2087
+ }, "strict", z.ZodTypeAny, {
2088
+ rule_id: string;
2089
+ condition: "require" | "forbid";
2090
+ note?: string | undefined;
2091
+ }, {
2092
+ rule_id: string;
2093
+ condition: "require" | "forbid";
2094
+ note?: string | undefined;
2095
+ }>, "many">>;
2096
+ overrides: z.ZodOptional<z.ZodObject<{
2097
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2098
+ enabled: z.ZodOptional<z.ZodBoolean>;
2099
+ weight: z.ZodOptional<z.ZodNumber>;
2100
+ }, "strict", z.ZodTypeAny, {
2101
+ enabled?: boolean | undefined;
2102
+ weight?: number | undefined;
2103
+ }, {
2104
+ enabled?: boolean | undefined;
2105
+ weight?: number | undefined;
2106
+ }>>>;
2107
+ data_sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2108
+ enabled: z.ZodOptional<z.ZodBoolean>;
2109
+ }, "strict", z.ZodTypeAny, {
2110
+ enabled?: boolean | undefined;
2111
+ }, {
2112
+ enabled?: boolean | undefined;
2113
+ }>>>;
2114
+ }, "strict", z.ZodTypeAny, {
2115
+ data_sources?: Record<string, {
2116
+ enabled?: boolean | undefined;
2117
+ }> | undefined;
2118
+ rules?: Record<string, {
2119
+ enabled?: boolean | undefined;
2120
+ weight?: number | undefined;
2121
+ }> | undefined;
2122
+ }, {
2123
+ data_sources?: Record<string, {
2124
+ enabled?: boolean | undefined;
2125
+ }> | undefined;
2126
+ rules?: Record<string, {
2127
+ enabled?: boolean | undefined;
2128
+ weight?: number | undefined;
2129
+ }> | undefined;
2130
+ }>>;
2131
+ }, "strict", z.ZodTypeAny, {
2132
+ intent?: string | undefined;
2133
+ overrides?: {
2134
+ data_sources?: Record<string, {
2135
+ enabled?: boolean | undefined;
2136
+ }> | undefined;
2137
+ rules?: Record<string, {
2138
+ enabled?: boolean | undefined;
2139
+ weight?: number | undefined;
2140
+ }> | undefined;
2141
+ } | undefined;
2142
+ preferences?: Record<string, unknown> | undefined;
2143
+ requirements?: {
2144
+ rule_id: string;
2145
+ condition: "require" | "forbid";
2146
+ note?: string | undefined;
2147
+ }[] | undefined;
2148
+ }, {
2149
+ intent?: string | undefined;
2150
+ overrides?: {
2151
+ data_sources?: Record<string, {
2152
+ enabled?: boolean | undefined;
2153
+ }> | undefined;
2154
+ rules?: Record<string, {
2155
+ enabled?: boolean | undefined;
2156
+ weight?: number | undefined;
2157
+ }> | undefined;
2158
+ } | undefined;
2159
+ preferences?: Record<string, unknown> | undefined;
2160
+ requirements?: {
2161
+ rule_id: string;
2162
+ condition: "require" | "forbid";
2163
+ note?: string | undefined;
2164
+ }[] | undefined;
2165
+ }>>;
2166
+ account: z.ZodOptional<z.ZodString>;
2167
+ }, "strict", z.ZodTypeAny, {
2168
+ action: "service_match";
2169
+ service_cap: {
2170
+ id: string;
2171
+ kind: "service" | "demand";
2172
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
2173
+ region: {
2174
+ raw: string;
2175
+ mode: "physical" | "remote";
2176
+ country?: string | undefined;
2177
+ province?: string | undefined;
2178
+ city?: string | undefined;
2179
+ };
2180
+ capabilities: {
2181
+ has_refund_path: boolean;
2182
+ has_arbitration: boolean;
2183
+ has_messenger: boolean;
2184
+ has_compensation_fund: boolean;
2185
+ has_buy_guard: boolean;
2186
+ has_milestone_nodes: boolean;
2187
+ has_wip_verification: boolean;
2188
+ has_dynamic_pricing: boolean;
2189
+ is_published: boolean;
2190
+ is_paused: boolean;
2191
+ };
2192
+ owner?: string | undefined;
2193
+ token_type?: string | undefined;
2194
+ tags?: string[] | undefined;
2195
+ trust_score?: number | undefined;
2196
+ arbitration_independent?: boolean | undefined;
2197
+ reputation_like_ratio?: number | undefined;
2198
+ keywords?: string[] | undefined;
2199
+ industry_confidence?: number | undefined;
2200
+ price_min?: string | undefined;
2201
+ price_max?: string | undefined;
2202
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
2203
+ merchant_history_count?: number | undefined;
2204
+ };
2205
+ demands: {
2206
+ object: string;
2207
+ description: string;
2208
+ location: string;
2209
+ owner?: string | undefined;
2210
+ rewards?: string[] | undefined;
2211
+ um?: string | null | undefined;
2212
+ }[];
2213
+ account?: string | undefined;
2214
+ injection?: {
2215
+ intent?: string | undefined;
2216
+ overrides?: {
2217
+ data_sources?: Record<string, {
2218
+ enabled?: boolean | undefined;
2219
+ }> | undefined;
2220
+ rules?: Record<string, {
2221
+ enabled?: boolean | undefined;
2222
+ weight?: number | undefined;
2223
+ }> | undefined;
2224
+ } | undefined;
2225
+ preferences?: Record<string, unknown> | undefined;
2226
+ requirements?: {
2227
+ rule_id: string;
2228
+ condition: "require" | "forbid";
2229
+ note?: string | undefined;
2230
+ }[] | undefined;
2231
+ } | undefined;
2232
+ }, {
2233
+ action: "service_match";
2234
+ service_cap: {
2235
+ id: string;
2236
+ kind: "service" | "demand";
2237
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
2238
+ region: {
2239
+ raw: string;
2240
+ mode: "physical" | "remote";
2241
+ country?: string | undefined;
2242
+ province?: string | undefined;
2243
+ city?: string | undefined;
2244
+ };
2245
+ capabilities: {
2246
+ has_refund_path: boolean;
2247
+ has_arbitration: boolean;
2248
+ has_messenger: boolean;
2249
+ has_compensation_fund: boolean;
2250
+ has_buy_guard: boolean;
2251
+ has_milestone_nodes: boolean;
2252
+ has_wip_verification: boolean;
2253
+ has_dynamic_pricing: boolean;
2254
+ is_published: boolean;
2255
+ is_paused: boolean;
2256
+ };
2257
+ owner?: string | undefined;
2258
+ token_type?: string | undefined;
2259
+ tags?: string[] | undefined;
2260
+ trust_score?: number | undefined;
2261
+ arbitration_independent?: boolean | undefined;
2262
+ reputation_like_ratio?: number | undefined;
2263
+ keywords?: string[] | undefined;
2264
+ industry_confidence?: number | undefined;
2265
+ price_min?: string | undefined;
2266
+ price_max?: string | undefined;
2267
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
2268
+ merchant_history_count?: number | undefined;
2269
+ };
2270
+ demands: {
2271
+ object: string;
2272
+ description: string;
2273
+ location: string;
2274
+ owner?: string | undefined;
2275
+ rewards?: string[] | undefined;
2276
+ um?: string | null | undefined;
2277
+ }[];
2278
+ account?: string | undefined;
2279
+ injection?: {
2280
+ intent?: string | undefined;
2281
+ overrides?: {
2282
+ data_sources?: Record<string, {
2283
+ enabled?: boolean | undefined;
2284
+ }> | undefined;
2285
+ rules?: Record<string, {
2286
+ enabled?: boolean | undefined;
2287
+ weight?: number | undefined;
2288
+ }> | undefined;
2289
+ } | undefined;
2290
+ preferences?: Record<string, unknown> | undefined;
2291
+ requirements?: {
2292
+ rule_id: string;
2293
+ condition: "require" | "forbid";
2294
+ note?: string | undefined;
2295
+ }[] | undefined;
2296
+ } | undefined;
2297
+ }>, z.ZodObject<{
2298
+ action: z.ZodLiteral<"service_risk">;
2299
+ service_id: z.ZodString;
2300
+ puzzle_raw: z.ZodObject<{
2301
+ service: z.ZodObject<{
2302
+ name: z.ZodOptional<z.ZodString>;
2303
+ bPublished: z.ZodOptional<z.ZodBoolean>;
2304
+ bPaused: z.ZodOptional<z.ZodBoolean>;
2305
+ price: z.ZodOptional<z.ZodString>;
2306
+ priceRaw: z.ZodOptional<z.ZodString>;
2307
+ token_type: z.ZodOptional<z.ZodString>;
2308
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
2309
+ suspension: z.ZodOptional<z.ZodBoolean>;
2310
+ wip_url: z.ZodOptional<z.ZodString>;
2311
+ wip_hash: z.ZodOptional<z.ZodString>;
2312
+ }, "strict", z.ZodTypeAny, {
2313
+ wip_hash?: string | undefined;
2314
+ suspension?: boolean | undefined;
2315
+ wip_url?: string | undefined;
2316
+ }, {
2317
+ wip_hash?: string | undefined;
2318
+ suspension?: boolean | undefined;
2319
+ wip_url?: string | undefined;
2320
+ }>, "many">>;
2321
+ machine: z.ZodOptional<z.ZodString>;
2322
+ buy_guard: z.ZodOptional<z.ZodString>;
2323
+ customer_required: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2324
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2325
+ compensation_fund: z.ZodOptional<z.ZodObject<{
2326
+ balance: z.ZodOptional<z.ZodString>;
2327
+ }, "strict", z.ZodTypeAny, {
2328
+ balance?: string | undefined;
2329
+ }, {
2330
+ balance?: string | undefined;
2331
+ }>>;
2332
+ compensation_lock_duration: z.ZodOptional<z.ZodNumber>;
2333
+ um: z.ZodOptional<z.ZodString>;
2334
+ }, "strict", z.ZodTypeAny, {
2335
+ name?: string | undefined;
2336
+ token_type?: string | undefined;
2337
+ price?: string | undefined;
2338
+ compensation_fund?: {
2339
+ balance?: string | undefined;
2340
+ } | undefined;
2341
+ buy_guard?: string | undefined;
2342
+ machine?: string | undefined;
2343
+ arbitrations?: string[] | undefined;
2344
+ sales?: {
2345
+ wip_hash?: string | undefined;
2346
+ suspension?: boolean | undefined;
2347
+ wip_url?: string | undefined;
2348
+ }[] | undefined;
2349
+ customer_required?: unknown[] | undefined;
2350
+ um?: string | undefined;
2351
+ bPublished?: boolean | undefined;
2352
+ bPaused?: boolean | undefined;
2353
+ priceRaw?: string | undefined;
2354
+ compensation_lock_duration?: number | undefined;
2355
+ }, {
2356
+ name?: string | undefined;
2357
+ token_type?: string | undefined;
2358
+ price?: string | undefined;
2359
+ compensation_fund?: {
2360
+ balance?: string | undefined;
2361
+ } | undefined;
2362
+ buy_guard?: string | undefined;
2363
+ machine?: string | undefined;
2364
+ arbitrations?: string[] | undefined;
2365
+ sales?: {
2366
+ wip_hash?: string | undefined;
2367
+ suspension?: boolean | undefined;
2368
+ wip_url?: string | undefined;
2369
+ }[] | undefined;
2370
+ customer_required?: unknown[] | undefined;
2371
+ um?: string | undefined;
2372
+ bPublished?: boolean | undefined;
2373
+ bPaused?: boolean | undefined;
2374
+ priceRaw?: string | undefined;
2375
+ compensation_lock_duration?: number | undefined;
2376
+ }>;
2377
+ machine_nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2378
+ name: z.ZodString;
2379
+ forwards: z.ZodOptional<z.ZodArray<z.ZodObject<{
2380
+ name: z.ZodOptional<z.ZodString>;
2381
+ weight: z.ZodOptional<z.ZodNumber>;
2382
+ namedOperator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2383
+ guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2384
+ to: z.ZodOptional<z.ZodString>;
2385
+ }, "strict", z.ZodTypeAny, {
2386
+ name?: string | undefined;
2387
+ to?: string | undefined;
2388
+ guard?: string | null | undefined;
2389
+ weight?: number | undefined;
2390
+ namedOperator?: string | null | undefined;
2391
+ }, {
2392
+ name?: string | undefined;
2393
+ to?: string | undefined;
2394
+ guard?: string | null | undefined;
2395
+ weight?: number | undefined;
2396
+ namedOperator?: string | null | undefined;
2397
+ }>, "many">>;
2398
+ is_pair_done: z.ZodOptional<z.ZodBoolean>;
2399
+ }, "strict", z.ZodTypeAny, {
2400
+ name: string;
2401
+ forwards?: {
2402
+ name?: string | undefined;
2403
+ to?: string | undefined;
2404
+ guard?: string | null | undefined;
2405
+ weight?: number | undefined;
2406
+ namedOperator?: string | null | undefined;
2407
+ }[] | undefined;
2408
+ is_pair_done?: boolean | undefined;
2409
+ }, {
2410
+ name: string;
2411
+ forwards?: {
2412
+ name?: string | undefined;
2413
+ to?: string | undefined;
2414
+ guard?: string | null | undefined;
2415
+ weight?: number | undefined;
2416
+ namedOperator?: string | null | undefined;
2417
+ }[] | undefined;
2418
+ is_pair_done?: boolean | undefined;
2419
+ }>, "many">>;
2420
+ machine_published: z.ZodOptional<z.ZodBoolean>;
2421
+ machine_paused: z.ZodOptional<z.ZodBoolean>;
2422
+ reviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
2423
+ rating: z.ZodOptional<z.ZodString>;
2424
+ reviewer: z.ZodOptional<z.ZodString>;
2425
+ verified: z.ZodOptional<z.ZodBoolean>;
2426
+ has_evidence: z.ZodOptional<z.ZodBoolean>;
2427
+ timestamp: z.ZodOptional<z.ZodNumber>;
2428
+ }, "strict", z.ZodTypeAny, {
2429
+ timestamp?: number | undefined;
2430
+ verified?: boolean | undefined;
2431
+ rating?: string | undefined;
2432
+ reviewer?: string | undefined;
2433
+ has_evidence?: boolean | undefined;
2434
+ }, {
2435
+ timestamp?: number | undefined;
2436
+ verified?: boolean | undefined;
2437
+ rating?: string | undefined;
2438
+ reviewer?: string | undefined;
2439
+ has_evidence?: boolean | undefined;
2440
+ }>, "many">>;
2441
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
2442
+ type: z.ZodString;
2443
+ timestamp: z.ZodOptional<z.ZodNumber>;
2444
+ address: z.ZodOptional<z.ZodString>;
2445
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2446
+ }, "strict", z.ZodTypeAny, {
2447
+ type: string;
2448
+ address?: string | undefined;
2449
+ data?: Record<string, unknown> | undefined;
2450
+ timestamp?: number | undefined;
2451
+ }, {
2452
+ type: string;
2453
+ address?: string | undefined;
2454
+ data?: Record<string, unknown> | undefined;
2455
+ timestamp?: number | undefined;
2456
+ }>, "many">>;
2457
+ similar_services: z.ZodOptional<z.ZodArray<z.ZodObject<{
2458
+ price: z.ZodString;
2459
+ }, "strict", z.ZodTypeAny, {
2460
+ price: string;
2461
+ }, {
2462
+ price: string;
2463
+ }>, "many">>;
2464
+ order_amount: z.ZodOptional<z.ZodString>;
2465
+ trust_score: z.ZodOptional<z.ZodObject<{
2466
+ score: z.ZodNumber;
2467
+ level: z.ZodString;
2468
+ }, "strict", z.ZodTypeAny, {
2469
+ score: number;
2470
+ level: string;
2471
+ }, {
2472
+ score: number;
2473
+ level: string;
2474
+ }>>;
2475
+ arbitration_owner: z.ZodOptional<z.ZodString>;
2476
+ service_owner: z.ZodOptional<z.ZodString>;
2477
+ wip_verified: z.ZodOptional<z.ZodBoolean>;
2478
+ order_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2479
+ status: z.ZodString;
2480
+ has_dispute: z.ZodBoolean;
2481
+ is_repeat: z.ZodBoolean;
2482
+ }, "strict", z.ZodTypeAny, {
2483
+ status: string;
2484
+ has_dispute: boolean;
2485
+ is_repeat: boolean;
2486
+ }, {
2487
+ status: string;
2488
+ has_dispute: boolean;
2489
+ is_repeat: boolean;
2490
+ }>, "many">>;
2491
+ merchant_reputation: z.ZodOptional<z.ZodObject<{
2492
+ likes: z.ZodNumber;
2493
+ dislikes: z.ZodNumber;
2494
+ }, "strict", z.ZodTypeAny, {
2495
+ likes: number;
2496
+ dislikes: number;
2497
+ }, {
2498
+ likes: number;
2499
+ dislikes: number;
2500
+ }>>;
2501
+ }, "strict", z.ZodTypeAny, {
2502
+ service: {
2503
+ name?: string | undefined;
2504
+ token_type?: string | undefined;
2505
+ price?: string | undefined;
2506
+ compensation_fund?: {
2507
+ balance?: string | undefined;
2508
+ } | undefined;
2509
+ buy_guard?: string | undefined;
2510
+ machine?: string | undefined;
2511
+ arbitrations?: string[] | undefined;
2512
+ sales?: {
2513
+ wip_hash?: string | undefined;
2514
+ suspension?: boolean | undefined;
2515
+ wip_url?: string | undefined;
2516
+ }[] | undefined;
2517
+ customer_required?: unknown[] | undefined;
2518
+ um?: string | undefined;
2519
+ bPublished?: boolean | undefined;
2520
+ bPaused?: boolean | undefined;
2521
+ priceRaw?: string | undefined;
2522
+ compensation_lock_duration?: number | undefined;
2523
+ };
2524
+ events?: {
2525
+ type: string;
2526
+ address?: string | undefined;
2527
+ data?: Record<string, unknown> | undefined;
2528
+ timestamp?: number | undefined;
2529
+ }[] | undefined;
2530
+ trust_score?: {
2531
+ score: number;
2532
+ level: string;
2533
+ } | undefined;
2534
+ reviews?: {
2535
+ timestamp?: number | undefined;
2536
+ verified?: boolean | undefined;
2537
+ rating?: string | undefined;
2538
+ reviewer?: string | undefined;
2539
+ has_evidence?: boolean | undefined;
2540
+ }[] | undefined;
2541
+ machine_published?: boolean | undefined;
2542
+ machine_paused?: boolean | undefined;
2543
+ machine_nodes?: {
2544
+ name: string;
2545
+ forwards?: {
2546
+ name?: string | undefined;
2547
+ to?: string | undefined;
2548
+ guard?: string | null | undefined;
2549
+ weight?: number | undefined;
2550
+ namedOperator?: string | null | undefined;
2551
+ }[] | undefined;
2552
+ is_pair_done?: boolean | undefined;
2553
+ }[] | undefined;
2554
+ order_amount?: string | undefined;
2555
+ similar_services?: {
2556
+ price: string;
2557
+ }[] | undefined;
2558
+ arbitration_owner?: string | undefined;
2559
+ service_owner?: string | undefined;
2560
+ wip_verified?: boolean | undefined;
2561
+ order_history?: {
2562
+ status: string;
2563
+ has_dispute: boolean;
2564
+ is_repeat: boolean;
2565
+ }[] | undefined;
2566
+ merchant_reputation?: {
2567
+ likes: number;
2568
+ dislikes: number;
2569
+ } | undefined;
2570
+ }, {
2571
+ service: {
2572
+ name?: string | undefined;
2573
+ token_type?: string | undefined;
2574
+ price?: string | undefined;
2575
+ compensation_fund?: {
2576
+ balance?: string | undefined;
2577
+ } | undefined;
2578
+ buy_guard?: string | undefined;
2579
+ machine?: string | undefined;
2580
+ arbitrations?: string[] | undefined;
2581
+ sales?: {
2582
+ wip_hash?: string | undefined;
2583
+ suspension?: boolean | undefined;
2584
+ wip_url?: string | undefined;
2585
+ }[] | undefined;
2586
+ customer_required?: unknown[] | undefined;
2587
+ um?: string | undefined;
2588
+ bPublished?: boolean | undefined;
2589
+ bPaused?: boolean | undefined;
2590
+ priceRaw?: string | undefined;
2591
+ compensation_lock_duration?: number | undefined;
2592
+ };
2593
+ events?: {
2594
+ type: string;
2595
+ address?: string | undefined;
2596
+ data?: Record<string, unknown> | undefined;
2597
+ timestamp?: number | undefined;
2598
+ }[] | undefined;
2599
+ trust_score?: {
2600
+ score: number;
2601
+ level: string;
2602
+ } | undefined;
2603
+ reviews?: {
2604
+ timestamp?: number | undefined;
2605
+ verified?: boolean | undefined;
2606
+ rating?: string | undefined;
2607
+ reviewer?: string | undefined;
2608
+ has_evidence?: boolean | undefined;
2609
+ }[] | undefined;
2610
+ machine_published?: boolean | undefined;
2611
+ machine_paused?: boolean | undefined;
2612
+ machine_nodes?: {
2613
+ name: string;
2614
+ forwards?: {
2615
+ name?: string | undefined;
2616
+ to?: string | undefined;
2617
+ guard?: string | null | undefined;
2618
+ weight?: number | undefined;
2619
+ namedOperator?: string | null | undefined;
2620
+ }[] | undefined;
2621
+ is_pair_done?: boolean | undefined;
2622
+ }[] | undefined;
2623
+ order_amount?: string | undefined;
2624
+ similar_services?: {
2625
+ price: string;
2626
+ }[] | undefined;
2627
+ arbitration_owner?: string | undefined;
2628
+ service_owner?: string | undefined;
2629
+ wip_verified?: boolean | undefined;
2630
+ order_history?: {
2631
+ status: string;
2632
+ has_dispute: boolean;
2633
+ is_repeat: boolean;
2634
+ }[] | undefined;
2635
+ merchant_reputation?: {
2636
+ likes: number;
2637
+ dislikes: number;
2638
+ } | undefined;
2639
+ }>;
2640
+ injection: z.ZodOptional<z.ZodObject<{
2641
+ intent: z.ZodOptional<z.ZodString>;
2642
+ preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2643
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
2644
+ rule_id: z.ZodString;
2645
+ condition: z.ZodEnum<["require", "forbid"]>;
2646
+ note: z.ZodOptional<z.ZodString>;
2647
+ }, "strict", z.ZodTypeAny, {
2648
+ rule_id: string;
2649
+ condition: "require" | "forbid";
2650
+ note?: string | undefined;
2651
+ }, {
2652
+ rule_id: string;
2653
+ condition: "require" | "forbid";
2654
+ note?: string | undefined;
2655
+ }>, "many">>;
2656
+ overrides: z.ZodOptional<z.ZodObject<{
2657
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2658
+ enabled: z.ZodOptional<z.ZodBoolean>;
2659
+ weight: z.ZodOptional<z.ZodNumber>;
2660
+ }, "strict", z.ZodTypeAny, {
2661
+ enabled?: boolean | undefined;
2662
+ weight?: number | undefined;
2663
+ }, {
2664
+ enabled?: boolean | undefined;
2665
+ weight?: number | undefined;
2666
+ }>>>;
2667
+ data_sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2668
+ enabled: z.ZodOptional<z.ZodBoolean>;
2669
+ }, "strict", z.ZodTypeAny, {
2670
+ enabled?: boolean | undefined;
2671
+ }, {
2672
+ enabled?: boolean | undefined;
2673
+ }>>>;
2674
+ }, "strict", z.ZodTypeAny, {
2675
+ data_sources?: Record<string, {
2676
+ enabled?: boolean | undefined;
2677
+ }> | undefined;
2678
+ rules?: Record<string, {
2679
+ enabled?: boolean | undefined;
2680
+ weight?: number | undefined;
2681
+ }> | undefined;
2682
+ }, {
2683
+ data_sources?: Record<string, {
2684
+ enabled?: boolean | undefined;
2685
+ }> | undefined;
2686
+ rules?: Record<string, {
2687
+ enabled?: boolean | undefined;
2688
+ weight?: number | undefined;
2689
+ }> | undefined;
2690
+ }>>;
2691
+ }, "strict", z.ZodTypeAny, {
2692
+ intent?: string | undefined;
2693
+ overrides?: {
2694
+ data_sources?: Record<string, {
2695
+ enabled?: boolean | undefined;
2696
+ }> | undefined;
2697
+ rules?: Record<string, {
2698
+ enabled?: boolean | undefined;
2699
+ weight?: number | undefined;
2700
+ }> | undefined;
2701
+ } | undefined;
2702
+ preferences?: Record<string, unknown> | undefined;
2703
+ requirements?: {
2704
+ rule_id: string;
2705
+ condition: "require" | "forbid";
2706
+ note?: string | undefined;
2707
+ }[] | undefined;
2708
+ }, {
2709
+ intent?: string | undefined;
2710
+ overrides?: {
2711
+ data_sources?: Record<string, {
2712
+ enabled?: boolean | undefined;
2713
+ }> | undefined;
2714
+ rules?: Record<string, {
2715
+ enabled?: boolean | undefined;
2716
+ weight?: number | undefined;
2717
+ }> | undefined;
2718
+ } | undefined;
2719
+ preferences?: Record<string, unknown> | undefined;
2720
+ requirements?: {
2721
+ rule_id: string;
2722
+ condition: "require" | "forbid";
2723
+ note?: string | undefined;
2724
+ }[] | undefined;
2725
+ }>>;
2726
+ depth: z.ZodOptional<z.ZodEnum<["browse", "evaluate", "preorder", "monitor"]>>;
2727
+ account: z.ZodOptional<z.ZodString>;
2728
+ }, "strict", z.ZodTypeAny, {
2729
+ action: "service_risk";
2730
+ service_id: string;
2731
+ puzzle_raw: {
2732
+ service: {
2733
+ name?: string | undefined;
2734
+ token_type?: string | undefined;
2735
+ price?: string | undefined;
2736
+ compensation_fund?: {
2737
+ balance?: string | undefined;
2738
+ } | undefined;
2739
+ buy_guard?: string | undefined;
2740
+ machine?: string | undefined;
2741
+ arbitrations?: string[] | undefined;
2742
+ sales?: {
2743
+ wip_hash?: string | undefined;
2744
+ suspension?: boolean | undefined;
2745
+ wip_url?: string | undefined;
2746
+ }[] | undefined;
2747
+ customer_required?: unknown[] | undefined;
2748
+ um?: string | undefined;
2749
+ bPublished?: boolean | undefined;
2750
+ bPaused?: boolean | undefined;
2751
+ priceRaw?: string | undefined;
2752
+ compensation_lock_duration?: number | undefined;
2753
+ };
2754
+ events?: {
2755
+ type: string;
2756
+ address?: string | undefined;
2757
+ data?: Record<string, unknown> | undefined;
2758
+ timestamp?: number | undefined;
2759
+ }[] | undefined;
2760
+ trust_score?: {
2761
+ score: number;
2762
+ level: string;
2763
+ } | undefined;
2764
+ reviews?: {
2765
+ timestamp?: number | undefined;
2766
+ verified?: boolean | undefined;
2767
+ rating?: string | undefined;
2768
+ reviewer?: string | undefined;
2769
+ has_evidence?: boolean | undefined;
2770
+ }[] | undefined;
2771
+ machine_published?: boolean | undefined;
2772
+ machine_paused?: boolean | undefined;
2773
+ machine_nodes?: {
2774
+ name: string;
2775
+ forwards?: {
2776
+ name?: string | undefined;
2777
+ to?: string | undefined;
2778
+ guard?: string | null | undefined;
2779
+ weight?: number | undefined;
2780
+ namedOperator?: string | null | undefined;
2781
+ }[] | undefined;
2782
+ is_pair_done?: boolean | undefined;
2783
+ }[] | undefined;
2784
+ order_amount?: string | undefined;
2785
+ similar_services?: {
2786
+ price: string;
2787
+ }[] | undefined;
2788
+ arbitration_owner?: string | undefined;
2789
+ service_owner?: string | undefined;
2790
+ wip_verified?: boolean | undefined;
2791
+ order_history?: {
2792
+ status: string;
2793
+ has_dispute: boolean;
2794
+ is_repeat: boolean;
2795
+ }[] | undefined;
2796
+ merchant_reputation?: {
2797
+ likes: number;
2798
+ dislikes: number;
2799
+ } | undefined;
2800
+ };
2801
+ account?: string | undefined;
2802
+ depth?: "browse" | "evaluate" | "preorder" | "monitor" | undefined;
2803
+ injection?: {
2804
+ intent?: string | undefined;
2805
+ overrides?: {
2806
+ data_sources?: Record<string, {
2807
+ enabled?: boolean | undefined;
2808
+ }> | undefined;
2809
+ rules?: Record<string, {
2810
+ enabled?: boolean | undefined;
2811
+ weight?: number | undefined;
2812
+ }> | undefined;
2813
+ } | undefined;
2814
+ preferences?: Record<string, unknown> | undefined;
2815
+ requirements?: {
2816
+ rule_id: string;
2817
+ condition: "require" | "forbid";
2818
+ note?: string | undefined;
2819
+ }[] | undefined;
2820
+ } | undefined;
2821
+ }, {
2822
+ action: "service_risk";
2823
+ service_id: string;
2824
+ puzzle_raw: {
2825
+ service: {
2826
+ name?: string | undefined;
2827
+ token_type?: string | undefined;
2828
+ price?: string | undefined;
2829
+ compensation_fund?: {
2830
+ balance?: string | undefined;
2831
+ } | undefined;
2832
+ buy_guard?: string | undefined;
2833
+ machine?: string | undefined;
2834
+ arbitrations?: string[] | undefined;
2835
+ sales?: {
2836
+ wip_hash?: string | undefined;
2837
+ suspension?: boolean | undefined;
2838
+ wip_url?: string | undefined;
2839
+ }[] | undefined;
2840
+ customer_required?: unknown[] | undefined;
2841
+ um?: string | undefined;
2842
+ bPublished?: boolean | undefined;
2843
+ bPaused?: boolean | undefined;
2844
+ priceRaw?: string | undefined;
2845
+ compensation_lock_duration?: number | undefined;
2846
+ };
2847
+ events?: {
2848
+ type: string;
2849
+ address?: string | undefined;
2850
+ data?: Record<string, unknown> | undefined;
2851
+ timestamp?: number | undefined;
2852
+ }[] | undefined;
2853
+ trust_score?: {
2854
+ score: number;
2855
+ level: string;
2856
+ } | undefined;
2857
+ reviews?: {
2858
+ timestamp?: number | undefined;
2859
+ verified?: boolean | undefined;
2860
+ rating?: string | undefined;
2861
+ reviewer?: string | undefined;
2862
+ has_evidence?: boolean | undefined;
2863
+ }[] | undefined;
2864
+ machine_published?: boolean | undefined;
2865
+ machine_paused?: boolean | undefined;
2866
+ machine_nodes?: {
2867
+ name: string;
2868
+ forwards?: {
2869
+ name?: string | undefined;
2870
+ to?: string | undefined;
2871
+ guard?: string | null | undefined;
2872
+ weight?: number | undefined;
2873
+ namedOperator?: string | null | undefined;
2874
+ }[] | undefined;
2875
+ is_pair_done?: boolean | undefined;
2876
+ }[] | undefined;
2877
+ order_amount?: string | undefined;
2878
+ similar_services?: {
2879
+ price: string;
2880
+ }[] | undefined;
2881
+ arbitration_owner?: string | undefined;
2882
+ service_owner?: string | undefined;
2883
+ wip_verified?: boolean | undefined;
2884
+ order_history?: {
2885
+ status: string;
2886
+ has_dispute: boolean;
2887
+ is_repeat: boolean;
2888
+ }[] | undefined;
2889
+ merchant_reputation?: {
2890
+ likes: number;
2891
+ dislikes: number;
2892
+ } | undefined;
2893
+ };
2894
+ account?: string | undefined;
2895
+ depth?: "browse" | "evaluate" | "preorder" | "monitor" | undefined;
2896
+ injection?: {
2897
+ intent?: string | undefined;
2898
+ overrides?: {
2899
+ data_sources?: Record<string, {
2900
+ enabled?: boolean | undefined;
2901
+ }> | undefined;
2902
+ rules?: Record<string, {
2903
+ enabled?: boolean | undefined;
2904
+ weight?: number | undefined;
2905
+ }> | undefined;
2906
+ } | undefined;
2907
+ preferences?: Record<string, unknown> | undefined;
2908
+ requirements?: {
2909
+ rule_id: string;
2910
+ condition: "require" | "forbid";
2911
+ note?: string | undefined;
2912
+ }[] | undefined;
2913
+ } | undefined;
2914
+ }>]>;
2915
+ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
2916
+ result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
2917
+ action: z.ZodLiteral<"arb_game">;
2918
+ status: z.ZodEnum<["Principal_confirming", "Arbitrator_confirming", "Voting", "Arbitrated", "Objectionable", "Finished", "Withdrawn"]>;
2919
+ perspective: z.ZodEnum<["customer", "merchant", "arbitrator"]>;
2920
+ actions: z.ZodArray<z.ZodObject<{
2921
+ action: z.ZodString;
2922
+ favorability: z.ZodNumber;
2923
+ gain_score: z.ZodNumber;
2924
+ risk_score: z.ZodNumber;
2925
+ is_optimal: z.ZodBoolean;
2926
+ payoff_note: z.ZodString;
2927
+ risk: z.ZodEnum<["low", "medium", "high"]>;
2928
+ }, "strict", z.ZodTypeAny, {
2929
+ action: string;
2930
+ risk_score: number;
2931
+ risk: "low" | "high" | "medium";
2932
+ favorability: number;
2933
+ gain_score: number;
2934
+ is_optimal: boolean;
2935
+ payoff_note: string;
2936
+ }, {
2937
+ action: string;
2938
+ risk_score: number;
2939
+ risk: "low" | "high" | "medium";
2940
+ favorability: number;
2941
+ gain_score: number;
2942
+ is_optimal: boolean;
2943
+ payoff_note: string;
2944
+ }>, "many">;
2945
+ summary: z.ZodString;
2946
+ }, "strict", z.ZodTypeAny, {
2947
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
2948
+ summary: string;
2949
+ action: "arb_game";
2950
+ actions: {
2951
+ action: string;
2952
+ risk_score: number;
2953
+ risk: "low" | "high" | "medium";
2954
+ favorability: number;
2955
+ gain_score: number;
2956
+ is_optimal: boolean;
2957
+ payoff_note: string;
2958
+ }[];
2959
+ perspective: "merchant" | "customer" | "arbitrator";
2960
+ }, {
2961
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
2962
+ summary: string;
2963
+ action: "arb_game";
2964
+ actions: {
2965
+ action: string;
2966
+ risk_score: number;
2967
+ risk: "low" | "high" | "medium";
2968
+ favorability: number;
2969
+ gain_score: number;
2970
+ is_optimal: boolean;
2971
+ payoff_note: string;
2972
+ }[];
2973
+ perspective: "merchant" | "customer" | "arbitrator";
2974
+ }>, z.ZodObject<{
2975
+ action: z.ZodLiteral<"node_game">;
2976
+ current_node: z.ZodString;
2977
+ perspective: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
2978
+ actions: z.ZodArray<z.ZodObject<{
2979
+ forward: z.ZodString;
2980
+ to_node: z.ZodString;
2981
+ execution_path: z.ZodEnum<["order_holder", "permission", "named_operator", "not_available"]>;
2982
+ guard: z.ZodOptional<z.ZodString>;
2983
+ favorability: z.ZodNumber;
2984
+ gain_score: z.ZodNumber;
2985
+ risk_score: z.ZodNumber;
2986
+ is_optimal: z.ZodBoolean;
2987
+ payoff_note: z.ZodString;
2988
+ risk: z.ZodEnum<["low", "medium", "high"]>;
2989
+ }, "strict", z.ZodTypeAny, {
2990
+ risk_score: number;
2991
+ forward: string;
2992
+ risk: "low" | "high" | "medium";
2993
+ to_node: string;
2994
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
2995
+ favorability: number;
2996
+ gain_score: number;
2997
+ is_optimal: boolean;
2998
+ payoff_note: string;
2999
+ guard?: string | undefined;
3000
+ }, {
3001
+ risk_score: number;
3002
+ forward: string;
3003
+ risk: "low" | "high" | "medium";
3004
+ to_node: string;
3005
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
3006
+ favorability: number;
3007
+ gain_score: number;
3008
+ is_optimal: boolean;
3009
+ payoff_note: string;
3010
+ guard?: string | undefined;
3011
+ }>, "many">;
3012
+ cooperation: z.ZodOptional<z.ZodObject<{
3013
+ threshold: z.ZodNumber;
3014
+ my_weight: z.ZodNumber;
3015
+ needed_from_others: z.ZodNumber;
3016
+ collaborators: z.ZodArray<z.ZodString, "many">;
3017
+ allocation: z.ZodOptional<z.ZodObject<{
3018
+ recipient_slots: z.ZodNumber;
3019
+ guard_gated_slots: z.ZodNumber;
3020
+ direct_to_me_slots: z.ZodNumber;
3021
+ to_payer_slots: z.ZodNumber;
3022
+ }, "strict", z.ZodTypeAny, {
3023
+ recipient_slots: number;
3024
+ guard_gated_slots: number;
3025
+ direct_to_me_slots: number;
3026
+ to_payer_slots: number;
3027
+ }, {
3028
+ recipient_slots: number;
3029
+ guard_gated_slots: number;
3030
+ direct_to_me_slots: number;
3031
+ to_payer_slots: number;
3032
+ }>>;
3033
+ allocation_note: z.ZodOptional<z.ZodString>;
3034
+ }, "strict", z.ZodTypeAny, {
3035
+ threshold: number;
3036
+ my_weight: number;
3037
+ needed_from_others: number;
3038
+ collaborators: string[];
3039
+ allocation?: {
3040
+ recipient_slots: number;
3041
+ guard_gated_slots: number;
3042
+ direct_to_me_slots: number;
3043
+ to_payer_slots: number;
3044
+ } | undefined;
3045
+ allocation_note?: string | undefined;
3046
+ }, {
3047
+ threshold: number;
3048
+ my_weight: number;
3049
+ needed_from_others: number;
3050
+ collaborators: string[];
3051
+ allocation?: {
3052
+ recipient_slots: number;
3053
+ guard_gated_slots: number;
3054
+ direct_to_me_slots: number;
3055
+ to_payer_slots: number;
3056
+ } | undefined;
3057
+ allocation_note?: string | undefined;
3058
+ }>>;
3059
+ value_at_stake: z.ZodOptional<z.ZodString>;
3060
+ risk_exposure: z.ZodOptional<z.ZodString>;
3061
+ summary: z.ZodString;
3062
+ }, "strict", z.ZodTypeAny, {
3063
+ summary: string;
3064
+ action: "node_game";
3065
+ current_node: string;
3066
+ actions: {
3067
+ risk_score: number;
3068
+ forward: string;
3069
+ risk: "low" | "high" | "medium";
3070
+ to_node: string;
3071
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
3072
+ favorability: number;
3073
+ gain_score: number;
3074
+ is_optimal: boolean;
3075
+ payoff_note: string;
3076
+ guard?: string | undefined;
3077
+ }[];
3078
+ perspective: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
3079
+ cooperation?: {
3080
+ threshold: number;
3081
+ my_weight: number;
3082
+ needed_from_others: number;
3083
+ collaborators: string[];
3084
+ allocation?: {
3085
+ recipient_slots: number;
3086
+ guard_gated_slots: number;
3087
+ direct_to_me_slots: number;
3088
+ to_payer_slots: number;
3089
+ } | undefined;
3090
+ allocation_note?: string | undefined;
3091
+ } | undefined;
3092
+ value_at_stake?: string | undefined;
3093
+ risk_exposure?: string | undefined;
3094
+ }, {
3095
+ summary: string;
3096
+ action: "node_game";
3097
+ current_node: string;
3098
+ actions: {
3099
+ risk_score: number;
3100
+ forward: string;
3101
+ risk: "low" | "high" | "medium";
3102
+ to_node: string;
3103
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
3104
+ favorability: number;
3105
+ gain_score: number;
3106
+ is_optimal: boolean;
3107
+ payoff_note: string;
3108
+ guard?: string | undefined;
3109
+ }[];
3110
+ perspective: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
3111
+ cooperation?: {
3112
+ threshold: number;
3113
+ my_weight: number;
3114
+ needed_from_others: number;
3115
+ collaborators: string[];
3116
+ allocation?: {
3117
+ recipient_slots: number;
3118
+ guard_gated_slots: number;
3119
+ direct_to_me_slots: number;
3120
+ to_payer_slots: number;
3121
+ } | undefined;
3122
+ allocation_note?: string | undefined;
3123
+ } | undefined;
3124
+ value_at_stake?: string | undefined;
3125
+ risk_exposure?: string | undefined;
3126
+ }>, z.ZodObject<{
3127
+ action: z.ZodLiteral<"capability_gap">;
3128
+ report: z.ZodObject<{
3129
+ entity_id: z.ZodString;
3130
+ satisfied: z.ZodArray<z.ZodObject<{
3131
+ dimension: z.ZodString;
3132
+ requirement: z.ZodString;
3133
+ provided: z.ZodString;
3134
+ status: z.ZodEnum<["satisfied", "partial", "missing"]>;
3135
+ impact: z.ZodEnum<["critical", "major", "minor"]>;
3136
+ suggestion: z.ZodString;
3137
+ }, "strict", z.ZodTypeAny, {
3138
+ status: "partial" | "satisfied" | "missing";
3139
+ dimension: string;
3140
+ requirement: string;
3141
+ suggestion: string;
3142
+ impact: "critical" | "major" | "minor";
3143
+ provided: string;
3144
+ }, {
3145
+ status: "partial" | "satisfied" | "missing";
3146
+ dimension: string;
3147
+ requirement: string;
3148
+ suggestion: string;
3149
+ impact: "critical" | "major" | "minor";
3150
+ provided: string;
3151
+ }>, "many">;
3152
+ missing: z.ZodArray<z.ZodObject<{
3153
+ dimension: z.ZodString;
3154
+ requirement: z.ZodString;
3155
+ provided: z.ZodString;
3156
+ status: z.ZodEnum<["satisfied", "partial", "missing"]>;
3157
+ impact: z.ZodEnum<["critical", "major", "minor"]>;
3158
+ suggestion: z.ZodString;
3159
+ }, "strict", z.ZodTypeAny, {
3160
+ status: "partial" | "satisfied" | "missing";
3161
+ dimension: string;
3162
+ requirement: string;
3163
+ suggestion: string;
3164
+ impact: "critical" | "major" | "minor";
3165
+ provided: string;
3166
+ }, {
3167
+ status: "partial" | "satisfied" | "missing";
3168
+ dimension: string;
3169
+ requirement: string;
3170
+ suggestion: string;
3171
+ impact: "critical" | "major" | "minor";
3172
+ provided: string;
3173
+ }>, "many">;
3174
+ coverage_score: z.ZodNumber;
3175
+ summary: z.ZodString;
3176
+ }, "strict", z.ZodTypeAny, {
3177
+ summary: string;
3178
+ satisfied: {
3179
+ status: "partial" | "satisfied" | "missing";
3180
+ dimension: string;
3181
+ requirement: string;
3182
+ suggestion: string;
3183
+ impact: "critical" | "major" | "minor";
3184
+ provided: string;
3185
+ }[];
3186
+ missing: {
3187
+ status: "partial" | "satisfied" | "missing";
3188
+ dimension: string;
3189
+ requirement: string;
3190
+ suggestion: string;
3191
+ impact: "critical" | "major" | "minor";
3192
+ provided: string;
3193
+ }[];
3194
+ entity_id: string;
3195
+ coverage_score: number;
3196
+ }, {
3197
+ summary: string;
3198
+ satisfied: {
3199
+ status: "partial" | "satisfied" | "missing";
3200
+ dimension: string;
3201
+ requirement: string;
3202
+ suggestion: string;
3203
+ impact: "critical" | "major" | "minor";
3204
+ provided: string;
3205
+ }[];
3206
+ missing: {
3207
+ status: "partial" | "satisfied" | "missing";
3208
+ dimension: string;
3209
+ requirement: string;
3210
+ suggestion: string;
3211
+ impact: "critical" | "major" | "minor";
3212
+ provided: string;
3213
+ }[];
3214
+ entity_id: string;
3215
+ coverage_score: number;
3216
+ }>;
3217
+ }, "strict", z.ZodTypeAny, {
3218
+ action: "capability_gap";
3219
+ report: {
3220
+ summary: string;
3221
+ satisfied: {
3222
+ status: "partial" | "satisfied" | "missing";
3223
+ dimension: string;
3224
+ requirement: string;
3225
+ suggestion: string;
3226
+ impact: "critical" | "major" | "minor";
3227
+ provided: string;
3228
+ }[];
3229
+ missing: {
3230
+ status: "partial" | "satisfied" | "missing";
3231
+ dimension: string;
3232
+ requirement: string;
3233
+ suggestion: string;
3234
+ impact: "critical" | "major" | "minor";
3235
+ provided: string;
3236
+ }[];
3237
+ entity_id: string;
3238
+ coverage_score: number;
3239
+ };
3240
+ }, {
3241
+ action: "capability_gap";
3242
+ report: {
3243
+ summary: string;
3244
+ satisfied: {
3245
+ status: "partial" | "satisfied" | "missing";
3246
+ dimension: string;
3247
+ requirement: string;
3248
+ suggestion: string;
3249
+ impact: "critical" | "major" | "minor";
3250
+ provided: string;
3251
+ }[];
3252
+ missing: {
3253
+ status: "partial" | "satisfied" | "missing";
3254
+ dimension: string;
3255
+ requirement: string;
3256
+ suggestion: string;
3257
+ impact: "critical" | "major" | "minor";
3258
+ provided: string;
3259
+ }[];
3260
+ entity_id: string;
3261
+ coverage_score: number;
3262
+ };
3263
+ }>, z.ZodObject<{
3264
+ action: z.ZodLiteral<"compose_service">;
3265
+ plan: z.ZodObject<{
3266
+ demand: z.ZodString;
3267
+ services: z.ZodArray<z.ZodObject<{
3268
+ id: z.ZodString;
3269
+ covered: z.ZodArray<z.ZodString, "many">;
3270
+ }, "strict", z.ZodTypeAny, {
3271
+ id: string;
3272
+ covered: string[];
3273
+ }, {
3274
+ id: string;
3275
+ covered: string[];
3276
+ }>, "many">;
3277
+ coverage_score: z.ZodNumber;
3278
+ remaining_missing: z.ZodArray<z.ZodString, "many">;
3279
+ feasibility: z.ZodEnum<["ready", "needs_supply_chain", "infeasible"]>;
3280
+ summary: z.ZodString;
3281
+ }, "strict", z.ZodTypeAny, {
3282
+ summary: string;
3283
+ demand: string;
3284
+ services: {
3285
+ id: string;
3286
+ covered: string[];
3287
+ }[];
3288
+ coverage_score: number;
3289
+ remaining_missing: string[];
3290
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3291
+ }, {
3292
+ summary: string;
3293
+ demand: string;
3294
+ services: {
3295
+ id: string;
3296
+ covered: string[];
3297
+ }[];
3298
+ coverage_score: number;
3299
+ remaining_missing: string[];
3300
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3301
+ }>;
3302
+ }, "strict", z.ZodTypeAny, {
3303
+ action: "compose_service";
3304
+ plan: {
3305
+ summary: string;
3306
+ demand: string;
3307
+ services: {
3308
+ id: string;
3309
+ covered: string[];
3310
+ }[];
3311
+ coverage_score: number;
3312
+ remaining_missing: string[];
3313
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3314
+ };
3315
+ }, {
3316
+ action: "compose_service";
3317
+ plan: {
3318
+ summary: string;
3319
+ demand: string;
3320
+ services: {
3321
+ id: string;
3322
+ covered: string[];
3323
+ }[];
3324
+ coverage_score: number;
3325
+ remaining_missing: string[];
3326
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3327
+ };
3328
+ }>, z.ZodObject<{
3329
+ action: z.ZodLiteral<"demand_match">;
3330
+ matches: z.ZodArray<z.ZodObject<{
3331
+ service: z.ZodObject<{
3332
+ object: z.ZodString;
3333
+ description: z.ZodString;
3334
+ location: z.ZodString;
3335
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
3336
+ name: z.ZodOptional<z.ZodString>;
3337
+ price: z.ZodString;
3338
+ wip_hash: z.ZodOptional<z.ZodString>;
3339
+ }, "strict", z.ZodTypeAny, {
3340
+ price: string;
3341
+ name?: string | undefined;
3342
+ wip_hash?: string | undefined;
3343
+ }, {
3344
+ price: string;
3345
+ name?: string | undefined;
3346
+ wip_hash?: string | undefined;
3347
+ }>, "many">>;
3348
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3349
+ compensation_fund: z.ZodOptional<z.ZodString>;
3350
+ buy_guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3351
+ machine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3352
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3353
+ bPublished: z.ZodOptional<z.ZodBoolean>;
3354
+ bPaused: z.ZodOptional<z.ZodBoolean>;
3355
+ owner: z.ZodOptional<z.ZodString>;
3356
+ }, "strict", z.ZodTypeAny, {
3357
+ object: string;
3358
+ description: string;
3359
+ location: string;
3360
+ owner?: string | undefined;
3361
+ compensation_fund?: string | undefined;
3362
+ buy_guard?: string | null | undefined;
3363
+ machine?: string | null | undefined;
3364
+ arbitrations?: string[] | undefined;
3365
+ sales?: {
3366
+ price: string;
3367
+ name?: string | undefined;
3368
+ wip_hash?: string | undefined;
3369
+ }[] | undefined;
3370
+ um?: string | null | undefined;
3371
+ bPublished?: boolean | undefined;
3372
+ bPaused?: boolean | undefined;
3373
+ }, {
3374
+ object: string;
3375
+ description: string;
3376
+ location: string;
3377
+ owner?: string | undefined;
3378
+ compensation_fund?: string | undefined;
3379
+ buy_guard?: string | null | undefined;
3380
+ machine?: string | null | undefined;
3381
+ arbitrations?: string[] | undefined;
3382
+ sales?: {
3383
+ price: string;
3384
+ name?: string | undefined;
3385
+ wip_hash?: string | undefined;
3386
+ }[] | undefined;
3387
+ um?: string | null | undefined;
3388
+ bPublished?: boolean | undefined;
3389
+ bPaused?: boolean | undefined;
3390
+ }>;
3391
+ result: z.ZodObject<{
3392
+ evaluation_id: z.ZodString;
3393
+ total: z.ZodNumber;
3394
+ level: z.ZodEnum<["low", "medium_low", "medium_high", "high"]>;
3395
+ breakdown: z.ZodArray<z.ZodObject<{
3396
+ rule_id: z.ZodString;
3397
+ dimension: z.ZodString;
3398
+ score: z.ZodNumber;
3399
+ weight: z.ZodNumber;
3400
+ reason: z.ZodOptional<z.ZodString>;
3401
+ matched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3402
+ mismatched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3403
+ red_flag: z.ZodOptional<z.ZodBoolean>;
3404
+ }, "strict", z.ZodTypeAny, {
3405
+ score: number;
3406
+ rule_id: string;
3407
+ dimension: string;
3408
+ weight: number;
3409
+ reason?: string | undefined;
3410
+ matched?: string[] | undefined;
3411
+ mismatched?: string[] | undefined;
3412
+ red_flag?: boolean | undefined;
3413
+ }, {
3414
+ score: number;
3415
+ rule_id: string;
3416
+ dimension: string;
3417
+ weight: number;
3418
+ reason?: string | undefined;
3419
+ matched?: string[] | undefined;
3420
+ mismatched?: string[] | undefined;
3421
+ red_flag?: boolean | undefined;
3422
+ }>, "many">;
3423
+ red_flags: z.ZodArray<z.ZodString, "many">;
3424
+ blocked: z.ZodBoolean;
3425
+ trace: z.ZodArray<z.ZodObject<{
3426
+ kind: z.ZodEnum<["data_source", "rule", "override"]>;
3427
+ id: z.ZodString;
3428
+ detail: z.ZodString;
3429
+ }, "strict", z.ZodTypeAny, {
3430
+ id: string;
3431
+ kind: "rule" | "data_source" | "override";
3432
+ detail: string;
3433
+ }, {
3434
+ id: string;
3435
+ kind: "rule" | "data_source" | "override";
3436
+ detail: string;
3437
+ }>, "many">;
3438
+ summary: z.ZodString;
3439
+ }, "strict", z.ZodTypeAny, {
3440
+ summary: string;
3441
+ level: "low" | "medium_low" | "medium_high" | "high";
3442
+ total: number;
3443
+ blocked: boolean;
3444
+ breakdown: {
3445
+ score: number;
3446
+ rule_id: string;
3447
+ dimension: string;
3448
+ weight: number;
3449
+ reason?: string | undefined;
3450
+ matched?: string[] | undefined;
3451
+ mismatched?: string[] | undefined;
3452
+ red_flag?: boolean | undefined;
3453
+ }[];
3454
+ red_flags: string[];
3455
+ evaluation_id: string;
3456
+ trace: {
3457
+ id: string;
3458
+ kind: "rule" | "data_source" | "override";
3459
+ detail: string;
3460
+ }[];
3461
+ }, {
3462
+ summary: string;
3463
+ level: "low" | "medium_low" | "medium_high" | "high";
3464
+ total: number;
3465
+ blocked: boolean;
3466
+ breakdown: {
3467
+ score: number;
3468
+ rule_id: string;
3469
+ dimension: string;
3470
+ weight: number;
3471
+ reason?: string | undefined;
3472
+ matched?: string[] | undefined;
3473
+ mismatched?: string[] | undefined;
3474
+ red_flag?: boolean | undefined;
3475
+ }[];
3476
+ red_flags: string[];
3477
+ evaluation_id: string;
3478
+ trace: {
3479
+ id: string;
3480
+ kind: "rule" | "data_source" | "override";
3481
+ detail: string;
3482
+ }[];
3483
+ }>;
3484
+ }, "strict", z.ZodTypeAny, {
3485
+ result: {
3486
+ summary: string;
3487
+ level: "low" | "medium_low" | "medium_high" | "high";
3488
+ total: number;
3489
+ blocked: boolean;
3490
+ breakdown: {
3491
+ score: number;
3492
+ rule_id: string;
3493
+ dimension: string;
3494
+ weight: number;
3495
+ reason?: string | undefined;
3496
+ matched?: string[] | undefined;
3497
+ mismatched?: string[] | undefined;
3498
+ red_flag?: boolean | undefined;
3499
+ }[];
3500
+ red_flags: string[];
3501
+ evaluation_id: string;
3502
+ trace: {
3503
+ id: string;
3504
+ kind: "rule" | "data_source" | "override";
3505
+ detail: string;
3506
+ }[];
3507
+ };
3508
+ service: {
3509
+ object: string;
3510
+ description: string;
3511
+ location: string;
3512
+ owner?: string | undefined;
3513
+ compensation_fund?: string | undefined;
3514
+ buy_guard?: string | null | undefined;
3515
+ machine?: string | null | undefined;
3516
+ arbitrations?: string[] | undefined;
3517
+ sales?: {
3518
+ price: string;
3519
+ name?: string | undefined;
3520
+ wip_hash?: string | undefined;
3521
+ }[] | undefined;
3522
+ um?: string | null | undefined;
3523
+ bPublished?: boolean | undefined;
3524
+ bPaused?: boolean | undefined;
3525
+ };
3526
+ }, {
3527
+ result: {
3528
+ summary: string;
3529
+ level: "low" | "medium_low" | "medium_high" | "high";
3530
+ total: number;
3531
+ blocked: boolean;
3532
+ breakdown: {
3533
+ score: number;
3534
+ rule_id: string;
3535
+ dimension: string;
3536
+ weight: number;
3537
+ reason?: string | undefined;
3538
+ matched?: string[] | undefined;
3539
+ mismatched?: string[] | undefined;
3540
+ red_flag?: boolean | undefined;
3541
+ }[];
3542
+ red_flags: string[];
3543
+ evaluation_id: string;
3544
+ trace: {
3545
+ id: string;
3546
+ kind: "rule" | "data_source" | "override";
3547
+ detail: string;
3548
+ }[];
3549
+ };
3550
+ service: {
3551
+ object: string;
3552
+ description: string;
3553
+ location: string;
3554
+ owner?: string | undefined;
3555
+ compensation_fund?: string | undefined;
3556
+ buy_guard?: string | null | undefined;
3557
+ machine?: string | null | undefined;
3558
+ arbitrations?: string[] | undefined;
3559
+ sales?: {
3560
+ price: string;
3561
+ name?: string | undefined;
3562
+ wip_hash?: string | undefined;
3563
+ }[] | undefined;
3564
+ um?: string | null | undefined;
3565
+ bPublished?: boolean | undefined;
3566
+ bPaused?: boolean | undefined;
3567
+ };
3568
+ }>, "many">;
3569
+ }, "strict", z.ZodTypeAny, {
3570
+ action: "demand_match";
3571
+ matches: {
3572
+ result: {
3573
+ summary: string;
3574
+ level: "low" | "medium_low" | "medium_high" | "high";
3575
+ total: number;
3576
+ blocked: boolean;
3577
+ breakdown: {
3578
+ score: number;
3579
+ rule_id: string;
3580
+ dimension: string;
3581
+ weight: number;
3582
+ reason?: string | undefined;
3583
+ matched?: string[] | undefined;
3584
+ mismatched?: string[] | undefined;
3585
+ red_flag?: boolean | undefined;
3586
+ }[];
3587
+ red_flags: string[];
3588
+ evaluation_id: string;
3589
+ trace: {
3590
+ id: string;
3591
+ kind: "rule" | "data_source" | "override";
3592
+ detail: string;
3593
+ }[];
3594
+ };
3595
+ service: {
3596
+ object: string;
3597
+ description: string;
3598
+ location: string;
3599
+ owner?: string | undefined;
3600
+ compensation_fund?: string | undefined;
3601
+ buy_guard?: string | null | undefined;
3602
+ machine?: string | null | undefined;
3603
+ arbitrations?: string[] | undefined;
3604
+ sales?: {
3605
+ price: string;
3606
+ name?: string | undefined;
3607
+ wip_hash?: string | undefined;
3608
+ }[] | undefined;
3609
+ um?: string | null | undefined;
3610
+ bPublished?: boolean | undefined;
3611
+ bPaused?: boolean | undefined;
3612
+ };
3613
+ }[];
3614
+ }, {
3615
+ action: "demand_match";
3616
+ matches: {
3617
+ result: {
3618
+ summary: string;
3619
+ level: "low" | "medium_low" | "medium_high" | "high";
3620
+ total: number;
3621
+ blocked: boolean;
3622
+ breakdown: {
3623
+ score: number;
3624
+ rule_id: string;
3625
+ dimension: string;
3626
+ weight: number;
3627
+ reason?: string | undefined;
3628
+ matched?: string[] | undefined;
3629
+ mismatched?: string[] | undefined;
3630
+ red_flag?: boolean | undefined;
3631
+ }[];
3632
+ red_flags: string[];
3633
+ evaluation_id: string;
3634
+ trace: {
3635
+ id: string;
3636
+ kind: "rule" | "data_source" | "override";
3637
+ detail: string;
3638
+ }[];
3639
+ };
3640
+ service: {
3641
+ object: string;
3642
+ description: string;
3643
+ location: string;
3644
+ owner?: string | undefined;
3645
+ compensation_fund?: string | undefined;
3646
+ buy_guard?: string | null | undefined;
3647
+ machine?: string | null | undefined;
3648
+ arbitrations?: string[] | undefined;
3649
+ sales?: {
3650
+ price: string;
3651
+ name?: string | undefined;
3652
+ wip_hash?: string | undefined;
3653
+ }[] | undefined;
3654
+ um?: string | null | undefined;
3655
+ bPublished?: boolean | undefined;
3656
+ bPaused?: boolean | undefined;
3657
+ };
3658
+ }[];
3659
+ }>, z.ZodObject<{
3660
+ action: z.ZodLiteral<"service_match">;
3661
+ matches: z.ZodArray<z.ZodObject<{
3662
+ demand: z.ZodObject<{
3663
+ object: z.ZodString;
3664
+ description: z.ZodString;
3665
+ location: z.ZodString;
3666
+ rewards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3667
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3668
+ owner: z.ZodOptional<z.ZodString>;
3669
+ }, "strict", z.ZodTypeAny, {
3670
+ object: string;
3671
+ description: string;
3672
+ location: string;
3673
+ owner?: string | undefined;
3674
+ rewards?: string[] | undefined;
3675
+ um?: string | null | undefined;
3676
+ }, {
3677
+ object: string;
3678
+ description: string;
3679
+ location: string;
3680
+ owner?: string | undefined;
3681
+ rewards?: string[] | undefined;
3682
+ um?: string | null | undefined;
3683
+ }>;
3684
+ result: z.ZodObject<{
3685
+ evaluation_id: z.ZodString;
3686
+ total: z.ZodNumber;
3687
+ level: z.ZodEnum<["low", "medium_low", "medium_high", "high"]>;
3688
+ breakdown: z.ZodArray<z.ZodObject<{
3689
+ rule_id: z.ZodString;
3690
+ dimension: z.ZodString;
3691
+ score: z.ZodNumber;
3692
+ weight: z.ZodNumber;
3693
+ reason: z.ZodOptional<z.ZodString>;
3694
+ matched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3695
+ mismatched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3696
+ red_flag: z.ZodOptional<z.ZodBoolean>;
3697
+ }, "strict", z.ZodTypeAny, {
3698
+ score: number;
3699
+ rule_id: string;
3700
+ dimension: string;
3701
+ weight: number;
3702
+ reason?: string | undefined;
3703
+ matched?: string[] | undefined;
3704
+ mismatched?: string[] | undefined;
3705
+ red_flag?: boolean | undefined;
3706
+ }, {
3707
+ score: number;
3708
+ rule_id: string;
3709
+ dimension: string;
3710
+ weight: number;
3711
+ reason?: string | undefined;
3712
+ matched?: string[] | undefined;
3713
+ mismatched?: string[] | undefined;
3714
+ red_flag?: boolean | undefined;
3715
+ }>, "many">;
3716
+ red_flags: z.ZodArray<z.ZodString, "many">;
3717
+ blocked: z.ZodBoolean;
3718
+ trace: z.ZodArray<z.ZodObject<{
3719
+ kind: z.ZodEnum<["data_source", "rule", "override"]>;
3720
+ id: z.ZodString;
3721
+ detail: z.ZodString;
3722
+ }, "strict", z.ZodTypeAny, {
3723
+ id: string;
3724
+ kind: "rule" | "data_source" | "override";
3725
+ detail: string;
3726
+ }, {
3727
+ id: string;
3728
+ kind: "rule" | "data_source" | "override";
3729
+ detail: string;
3730
+ }>, "many">;
3731
+ summary: z.ZodString;
3732
+ }, "strict", z.ZodTypeAny, {
3733
+ summary: string;
3734
+ level: "low" | "medium_low" | "medium_high" | "high";
3735
+ total: number;
3736
+ blocked: boolean;
3737
+ breakdown: {
3738
+ score: number;
3739
+ rule_id: string;
3740
+ dimension: string;
3741
+ weight: number;
3742
+ reason?: string | undefined;
3743
+ matched?: string[] | undefined;
3744
+ mismatched?: string[] | undefined;
3745
+ red_flag?: boolean | undefined;
3746
+ }[];
3747
+ red_flags: string[];
3748
+ evaluation_id: string;
3749
+ trace: {
3750
+ id: string;
3751
+ kind: "rule" | "data_source" | "override";
3752
+ detail: string;
3753
+ }[];
3754
+ }, {
3755
+ summary: string;
3756
+ level: "low" | "medium_low" | "medium_high" | "high";
3757
+ total: number;
3758
+ blocked: boolean;
3759
+ breakdown: {
3760
+ score: number;
3761
+ rule_id: string;
3762
+ dimension: string;
3763
+ weight: number;
3764
+ reason?: string | undefined;
3765
+ matched?: string[] | undefined;
3766
+ mismatched?: string[] | undefined;
3767
+ red_flag?: boolean | undefined;
3768
+ }[];
3769
+ red_flags: string[];
3770
+ evaluation_id: string;
3771
+ trace: {
3772
+ id: string;
3773
+ kind: "rule" | "data_source" | "override";
3774
+ detail: string;
3775
+ }[];
3776
+ }>;
3777
+ }, "strict", z.ZodTypeAny, {
3778
+ result: {
3779
+ summary: string;
3780
+ level: "low" | "medium_low" | "medium_high" | "high";
3781
+ total: number;
3782
+ blocked: boolean;
3783
+ breakdown: {
3784
+ score: number;
3785
+ rule_id: string;
3786
+ dimension: string;
3787
+ weight: number;
3788
+ reason?: string | undefined;
3789
+ matched?: string[] | undefined;
3790
+ mismatched?: string[] | undefined;
3791
+ red_flag?: boolean | undefined;
3792
+ }[];
3793
+ red_flags: string[];
3794
+ evaluation_id: string;
3795
+ trace: {
3796
+ id: string;
3797
+ kind: "rule" | "data_source" | "override";
3798
+ detail: string;
3799
+ }[];
3800
+ };
3801
+ demand: {
3802
+ object: string;
3803
+ description: string;
3804
+ location: string;
3805
+ owner?: string | undefined;
3806
+ rewards?: string[] | undefined;
3807
+ um?: string | null | undefined;
3808
+ };
3809
+ }, {
3810
+ result: {
3811
+ summary: string;
3812
+ level: "low" | "medium_low" | "medium_high" | "high";
3813
+ total: number;
3814
+ blocked: boolean;
3815
+ breakdown: {
3816
+ score: number;
3817
+ rule_id: string;
3818
+ dimension: string;
3819
+ weight: number;
3820
+ reason?: string | undefined;
3821
+ matched?: string[] | undefined;
3822
+ mismatched?: string[] | undefined;
3823
+ red_flag?: boolean | undefined;
3824
+ }[];
3825
+ red_flags: string[];
3826
+ evaluation_id: string;
3827
+ trace: {
3828
+ id: string;
3829
+ kind: "rule" | "data_source" | "override";
3830
+ detail: string;
3831
+ }[];
3832
+ };
3833
+ demand: {
3834
+ object: string;
3835
+ description: string;
3836
+ location: string;
3837
+ owner?: string | undefined;
3838
+ rewards?: string[] | undefined;
3839
+ um?: string | null | undefined;
3840
+ };
3841
+ }>, "many">;
3842
+ }, "strict", z.ZodTypeAny, {
3843
+ action: "service_match";
3844
+ matches: {
3845
+ result: {
3846
+ summary: string;
3847
+ level: "low" | "medium_low" | "medium_high" | "high";
3848
+ total: number;
3849
+ blocked: boolean;
3850
+ breakdown: {
3851
+ score: number;
3852
+ rule_id: string;
3853
+ dimension: string;
3854
+ weight: number;
3855
+ reason?: string | undefined;
3856
+ matched?: string[] | undefined;
3857
+ mismatched?: string[] | undefined;
3858
+ red_flag?: boolean | undefined;
3859
+ }[];
3860
+ red_flags: string[];
3861
+ evaluation_id: string;
3862
+ trace: {
3863
+ id: string;
3864
+ kind: "rule" | "data_source" | "override";
3865
+ detail: string;
3866
+ }[];
3867
+ };
3868
+ demand: {
3869
+ object: string;
3870
+ description: string;
3871
+ location: string;
3872
+ owner?: string | undefined;
3873
+ rewards?: string[] | undefined;
3874
+ um?: string | null | undefined;
3875
+ };
3876
+ }[];
3877
+ }, {
3878
+ action: "service_match";
3879
+ matches: {
3880
+ result: {
3881
+ summary: string;
3882
+ level: "low" | "medium_low" | "medium_high" | "high";
3883
+ total: number;
3884
+ blocked: boolean;
3885
+ breakdown: {
3886
+ score: number;
3887
+ rule_id: string;
3888
+ dimension: string;
3889
+ weight: number;
3890
+ reason?: string | undefined;
3891
+ matched?: string[] | undefined;
3892
+ mismatched?: string[] | undefined;
3893
+ red_flag?: boolean | undefined;
3894
+ }[];
3895
+ red_flags: string[];
3896
+ evaluation_id: string;
3897
+ trace: {
3898
+ id: string;
3899
+ kind: "rule" | "data_source" | "override";
3900
+ detail: string;
3901
+ }[];
3902
+ };
3903
+ demand: {
3904
+ object: string;
3905
+ description: string;
3906
+ location: string;
3907
+ owner?: string | undefined;
3908
+ rewards?: string[] | undefined;
3909
+ um?: string | null | undefined;
3910
+ };
3911
+ }[];
3912
+ }>, z.ZodObject<{
3913
+ action: z.ZodLiteral<"service_risk">;
3914
+ result: z.ZodObject<{
3915
+ evaluation_id: z.ZodString;
3916
+ total: z.ZodNumber;
3917
+ level: z.ZodEnum<["low", "medium_low", "medium_high", "high"]>;
3918
+ breakdown: z.ZodArray<z.ZodObject<{
3919
+ rule_id: z.ZodString;
3920
+ dimension: z.ZodString;
3921
+ score: z.ZodNumber;
3922
+ weight: z.ZodNumber;
3923
+ reason: z.ZodOptional<z.ZodString>;
3924
+ matched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3925
+ mismatched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3926
+ red_flag: z.ZodOptional<z.ZodBoolean>;
3927
+ }, "strict", z.ZodTypeAny, {
3928
+ score: number;
3929
+ rule_id: string;
3930
+ dimension: string;
3931
+ weight: number;
3932
+ reason?: string | undefined;
3933
+ matched?: string[] | undefined;
3934
+ mismatched?: string[] | undefined;
3935
+ red_flag?: boolean | undefined;
3936
+ }, {
3937
+ score: number;
3938
+ rule_id: string;
3939
+ dimension: string;
3940
+ weight: number;
3941
+ reason?: string | undefined;
3942
+ matched?: string[] | undefined;
3943
+ mismatched?: string[] | undefined;
3944
+ red_flag?: boolean | undefined;
3945
+ }>, "many">;
3946
+ red_flags: z.ZodArray<z.ZodString, "many">;
3947
+ blocked: z.ZodBoolean;
3948
+ trace: z.ZodArray<z.ZodObject<{
3949
+ kind: z.ZodEnum<["data_source", "rule", "override"]>;
3950
+ id: z.ZodString;
3951
+ detail: z.ZodString;
3952
+ }, "strict", z.ZodTypeAny, {
3953
+ id: string;
3954
+ kind: "rule" | "data_source" | "override";
3955
+ detail: string;
3956
+ }, {
3957
+ id: string;
3958
+ kind: "rule" | "data_source" | "override";
3959
+ detail: string;
3960
+ }>, "many">;
3961
+ summary: z.ZodString;
3962
+ }, "strict", z.ZodTypeAny, {
3963
+ summary: string;
3964
+ level: "low" | "medium_low" | "medium_high" | "high";
3965
+ total: number;
3966
+ blocked: boolean;
3967
+ breakdown: {
3968
+ score: number;
3969
+ rule_id: string;
3970
+ dimension: string;
3971
+ weight: number;
3972
+ reason?: string | undefined;
3973
+ matched?: string[] | undefined;
3974
+ mismatched?: string[] | undefined;
3975
+ red_flag?: boolean | undefined;
3976
+ }[];
3977
+ red_flags: string[];
3978
+ evaluation_id: string;
3979
+ trace: {
3980
+ id: string;
3981
+ kind: "rule" | "data_source" | "override";
3982
+ detail: string;
3983
+ }[];
3984
+ }, {
3985
+ summary: string;
3986
+ level: "low" | "medium_low" | "medium_high" | "high";
3987
+ total: number;
3988
+ blocked: boolean;
3989
+ breakdown: {
3990
+ score: number;
3991
+ rule_id: string;
3992
+ dimension: string;
3993
+ weight: number;
3994
+ reason?: string | undefined;
3995
+ matched?: string[] | undefined;
3996
+ mismatched?: string[] | undefined;
3997
+ red_flag?: boolean | undefined;
3998
+ }[];
3999
+ red_flags: string[];
4000
+ evaluation_id: string;
4001
+ trace: {
4002
+ id: string;
4003
+ kind: "rule" | "data_source" | "override";
4004
+ detail: string;
4005
+ }[];
4006
+ }>;
4007
+ }, "strict", z.ZodTypeAny, {
4008
+ result: {
4009
+ summary: string;
4010
+ level: "low" | "medium_low" | "medium_high" | "high";
4011
+ total: number;
4012
+ blocked: boolean;
4013
+ breakdown: {
4014
+ score: number;
4015
+ rule_id: string;
4016
+ dimension: string;
4017
+ weight: number;
4018
+ reason?: string | undefined;
4019
+ matched?: string[] | undefined;
4020
+ mismatched?: string[] | undefined;
4021
+ red_flag?: boolean | undefined;
4022
+ }[];
4023
+ red_flags: string[];
4024
+ evaluation_id: string;
4025
+ trace: {
4026
+ id: string;
4027
+ kind: "rule" | "data_source" | "override";
4028
+ detail: string;
4029
+ }[];
4030
+ };
4031
+ action: "service_risk";
4032
+ }, {
4033
+ result: {
4034
+ summary: string;
4035
+ level: "low" | "medium_low" | "medium_high" | "high";
4036
+ total: number;
4037
+ blocked: boolean;
4038
+ breakdown: {
4039
+ score: number;
4040
+ rule_id: string;
4041
+ dimension: string;
4042
+ weight: number;
4043
+ reason?: string | undefined;
4044
+ matched?: string[] | undefined;
4045
+ mismatched?: string[] | undefined;
4046
+ red_flag?: boolean | undefined;
4047
+ }[];
4048
+ red_flags: string[];
4049
+ evaluation_id: string;
4050
+ trace: {
4051
+ id: string;
4052
+ kind: "rule" | "data_source" | "override";
4053
+ detail: string;
4054
+ }[];
4055
+ };
4056
+ action: "service_risk";
4057
+ }>]>;
4058
+ }, "strict", z.ZodTypeAny, {
4059
+ result: {
4060
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
4061
+ summary: string;
4062
+ action: "arb_game";
4063
+ actions: {
4064
+ action: string;
4065
+ risk_score: number;
4066
+ risk: "low" | "high" | "medium";
4067
+ favorability: number;
4068
+ gain_score: number;
4069
+ is_optimal: boolean;
4070
+ payoff_note: string;
4071
+ }[];
4072
+ perspective: "merchant" | "customer" | "arbitrator";
4073
+ } | {
4074
+ summary: string;
4075
+ action: "node_game";
4076
+ current_node: string;
4077
+ actions: {
4078
+ risk_score: number;
4079
+ forward: string;
4080
+ risk: "low" | "high" | "medium";
4081
+ to_node: string;
4082
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
4083
+ favorability: number;
4084
+ gain_score: number;
4085
+ is_optimal: boolean;
4086
+ payoff_note: string;
4087
+ guard?: string | undefined;
4088
+ }[];
4089
+ perspective: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
4090
+ cooperation?: {
4091
+ threshold: number;
4092
+ my_weight: number;
4093
+ needed_from_others: number;
4094
+ collaborators: string[];
4095
+ allocation?: {
4096
+ recipient_slots: number;
4097
+ guard_gated_slots: number;
4098
+ direct_to_me_slots: number;
4099
+ to_payer_slots: number;
4100
+ } | undefined;
4101
+ allocation_note?: string | undefined;
4102
+ } | undefined;
4103
+ value_at_stake?: string | undefined;
4104
+ risk_exposure?: string | undefined;
4105
+ } | {
4106
+ action: "capability_gap";
4107
+ report: {
4108
+ summary: string;
4109
+ satisfied: {
4110
+ status: "partial" | "satisfied" | "missing";
4111
+ dimension: string;
4112
+ requirement: string;
4113
+ suggestion: string;
4114
+ impact: "critical" | "major" | "minor";
4115
+ provided: string;
4116
+ }[];
4117
+ missing: {
4118
+ status: "partial" | "satisfied" | "missing";
4119
+ dimension: string;
4120
+ requirement: string;
4121
+ suggestion: string;
4122
+ impact: "critical" | "major" | "minor";
4123
+ provided: string;
4124
+ }[];
4125
+ entity_id: string;
4126
+ coverage_score: number;
4127
+ };
4128
+ } | {
4129
+ action: "compose_service";
4130
+ plan: {
4131
+ summary: string;
4132
+ demand: string;
4133
+ services: {
4134
+ id: string;
4135
+ covered: string[];
4136
+ }[];
4137
+ coverage_score: number;
4138
+ remaining_missing: string[];
4139
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
4140
+ };
4141
+ } | {
4142
+ action: "demand_match";
4143
+ matches: {
4144
+ result: {
4145
+ summary: string;
4146
+ level: "low" | "medium_low" | "medium_high" | "high";
4147
+ total: number;
4148
+ blocked: boolean;
4149
+ breakdown: {
4150
+ score: number;
4151
+ rule_id: string;
4152
+ dimension: string;
4153
+ weight: number;
4154
+ reason?: string | undefined;
4155
+ matched?: string[] | undefined;
4156
+ mismatched?: string[] | undefined;
4157
+ red_flag?: boolean | undefined;
4158
+ }[];
4159
+ red_flags: string[];
4160
+ evaluation_id: string;
4161
+ trace: {
4162
+ id: string;
4163
+ kind: "rule" | "data_source" | "override";
4164
+ detail: string;
4165
+ }[];
4166
+ };
4167
+ service: {
4168
+ object: string;
4169
+ description: string;
4170
+ location: string;
4171
+ owner?: string | undefined;
4172
+ compensation_fund?: string | undefined;
4173
+ buy_guard?: string | null | undefined;
4174
+ machine?: string | null | undefined;
4175
+ arbitrations?: string[] | undefined;
4176
+ sales?: {
4177
+ price: string;
4178
+ name?: string | undefined;
4179
+ wip_hash?: string | undefined;
4180
+ }[] | undefined;
4181
+ um?: string | null | undefined;
4182
+ bPublished?: boolean | undefined;
4183
+ bPaused?: boolean | undefined;
4184
+ };
4185
+ }[];
4186
+ } | {
4187
+ action: "service_match";
4188
+ matches: {
4189
+ result: {
4190
+ summary: string;
4191
+ level: "low" | "medium_low" | "medium_high" | "high";
4192
+ total: number;
4193
+ blocked: boolean;
4194
+ breakdown: {
4195
+ score: number;
4196
+ rule_id: string;
4197
+ dimension: string;
4198
+ weight: number;
4199
+ reason?: string | undefined;
4200
+ matched?: string[] | undefined;
4201
+ mismatched?: string[] | undefined;
4202
+ red_flag?: boolean | undefined;
4203
+ }[];
4204
+ red_flags: string[];
4205
+ evaluation_id: string;
4206
+ trace: {
4207
+ id: string;
4208
+ kind: "rule" | "data_source" | "override";
4209
+ detail: string;
4210
+ }[];
4211
+ };
4212
+ demand: {
4213
+ object: string;
4214
+ description: string;
4215
+ location: string;
4216
+ owner?: string | undefined;
4217
+ rewards?: string[] | undefined;
4218
+ um?: string | null | undefined;
4219
+ };
4220
+ }[];
4221
+ } | {
4222
+ result: {
4223
+ summary: string;
4224
+ level: "low" | "medium_low" | "medium_high" | "high";
4225
+ total: number;
4226
+ blocked: boolean;
4227
+ breakdown: {
4228
+ score: number;
4229
+ rule_id: string;
4230
+ dimension: string;
4231
+ weight: number;
4232
+ reason?: string | undefined;
4233
+ matched?: string[] | undefined;
4234
+ mismatched?: string[] | undefined;
4235
+ red_flag?: boolean | undefined;
4236
+ }[];
4237
+ red_flags: string[];
4238
+ evaluation_id: string;
4239
+ trace: {
4240
+ id: string;
4241
+ kind: "rule" | "data_source" | "override";
4242
+ detail: string;
4243
+ }[];
4244
+ };
4245
+ action: "service_risk";
4246
+ };
4247
+ }, {
4248
+ result: {
4249
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
4250
+ summary: string;
4251
+ action: "arb_game";
4252
+ actions: {
4253
+ action: string;
4254
+ risk_score: number;
4255
+ risk: "low" | "high" | "medium";
4256
+ favorability: number;
4257
+ gain_score: number;
4258
+ is_optimal: boolean;
4259
+ payoff_note: string;
4260
+ }[];
4261
+ perspective: "merchant" | "customer" | "arbitrator";
4262
+ } | {
4263
+ summary: string;
4264
+ action: "node_game";
4265
+ current_node: string;
4266
+ actions: {
4267
+ risk_score: number;
4268
+ forward: string;
4269
+ risk: "low" | "high" | "medium";
4270
+ to_node: string;
4271
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
4272
+ favorability: number;
4273
+ gain_score: number;
4274
+ is_optimal: boolean;
4275
+ payoff_note: string;
4276
+ guard?: string | undefined;
4277
+ }[];
4278
+ perspective: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
4279
+ cooperation?: {
4280
+ threshold: number;
4281
+ my_weight: number;
4282
+ needed_from_others: number;
4283
+ collaborators: string[];
4284
+ allocation?: {
4285
+ recipient_slots: number;
4286
+ guard_gated_slots: number;
4287
+ direct_to_me_slots: number;
4288
+ to_payer_slots: number;
4289
+ } | undefined;
4290
+ allocation_note?: string | undefined;
4291
+ } | undefined;
4292
+ value_at_stake?: string | undefined;
4293
+ risk_exposure?: string | undefined;
4294
+ } | {
4295
+ action: "capability_gap";
4296
+ report: {
4297
+ summary: string;
4298
+ satisfied: {
4299
+ status: "partial" | "satisfied" | "missing";
4300
+ dimension: string;
4301
+ requirement: string;
4302
+ suggestion: string;
4303
+ impact: "critical" | "major" | "minor";
4304
+ provided: string;
4305
+ }[];
4306
+ missing: {
4307
+ status: "partial" | "satisfied" | "missing";
4308
+ dimension: string;
4309
+ requirement: string;
4310
+ suggestion: string;
4311
+ impact: "critical" | "major" | "minor";
4312
+ provided: string;
4313
+ }[];
4314
+ entity_id: string;
4315
+ coverage_score: number;
4316
+ };
4317
+ } | {
4318
+ action: "compose_service";
4319
+ plan: {
4320
+ summary: string;
4321
+ demand: string;
4322
+ services: {
4323
+ id: string;
4324
+ covered: string[];
4325
+ }[];
4326
+ coverage_score: number;
4327
+ remaining_missing: string[];
4328
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
4329
+ };
4330
+ } | {
4331
+ action: "demand_match";
4332
+ matches: {
4333
+ result: {
4334
+ summary: string;
4335
+ level: "low" | "medium_low" | "medium_high" | "high";
4336
+ total: number;
4337
+ blocked: boolean;
4338
+ breakdown: {
4339
+ score: number;
4340
+ rule_id: string;
4341
+ dimension: string;
4342
+ weight: number;
4343
+ reason?: string | undefined;
4344
+ matched?: string[] | undefined;
4345
+ mismatched?: string[] | undefined;
4346
+ red_flag?: boolean | undefined;
4347
+ }[];
4348
+ red_flags: string[];
4349
+ evaluation_id: string;
4350
+ trace: {
4351
+ id: string;
4352
+ kind: "rule" | "data_source" | "override";
4353
+ detail: string;
4354
+ }[];
4355
+ };
4356
+ service: {
4357
+ object: string;
4358
+ description: string;
4359
+ location: string;
4360
+ owner?: string | undefined;
4361
+ compensation_fund?: string | undefined;
4362
+ buy_guard?: string | null | undefined;
4363
+ machine?: string | null | undefined;
4364
+ arbitrations?: string[] | undefined;
4365
+ sales?: {
4366
+ price: string;
4367
+ name?: string | undefined;
4368
+ wip_hash?: string | undefined;
4369
+ }[] | undefined;
4370
+ um?: string | null | undefined;
4371
+ bPublished?: boolean | undefined;
4372
+ bPaused?: boolean | undefined;
4373
+ };
4374
+ }[];
4375
+ } | {
4376
+ action: "service_match";
4377
+ matches: {
4378
+ result: {
4379
+ summary: string;
4380
+ level: "low" | "medium_low" | "medium_high" | "high";
4381
+ total: number;
4382
+ blocked: boolean;
4383
+ breakdown: {
4384
+ score: number;
4385
+ rule_id: string;
4386
+ dimension: string;
4387
+ weight: number;
4388
+ reason?: string | undefined;
4389
+ matched?: string[] | undefined;
4390
+ mismatched?: string[] | undefined;
4391
+ red_flag?: boolean | undefined;
4392
+ }[];
4393
+ red_flags: string[];
4394
+ evaluation_id: string;
4395
+ trace: {
4396
+ id: string;
4397
+ kind: "rule" | "data_source" | "override";
4398
+ detail: string;
4399
+ }[];
4400
+ };
4401
+ demand: {
4402
+ object: string;
4403
+ description: string;
4404
+ location: string;
4405
+ owner?: string | undefined;
4406
+ rewards?: string[] | undefined;
4407
+ um?: string | null | undefined;
4408
+ };
4409
+ }[];
4410
+ } | {
4411
+ result: {
4412
+ summary: string;
4413
+ level: "low" | "medium_low" | "medium_high" | "high";
4414
+ total: number;
4415
+ blocked: boolean;
4416
+ breakdown: {
4417
+ score: number;
4418
+ rule_id: string;
4419
+ dimension: string;
4420
+ weight: number;
4421
+ reason?: string | undefined;
4422
+ matched?: string[] | undefined;
4423
+ mismatched?: string[] | undefined;
4424
+ red_flag?: boolean | undefined;
4425
+ }[];
4426
+ red_flags: string[];
4427
+ evaluation_id: string;
4428
+ trace: {
4429
+ id: string;
4430
+ kind: "rule" | "data_source" | "override";
4431
+ detail: string;
4432
+ }[];
4433
+ };
4434
+ action: "service_risk";
4435
+ };
4436
+ }>;