@wowok/agent-mcp 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) hide show
  1. package/README.md +8 -0
  2. package/dist/chain-semantics/composition-truth.d.ts +102 -0
  3. package/dist/chain-semantics/composition-truth.js +1 -0
  4. package/dist/chain-semantics/eval-order.js +1 -1
  5. package/dist/chain-semantics/fund-flow.js +1 -1
  6. package/dist/chain-semantics/index.d.ts +1 -0
  7. package/dist/chain-semantics/index.js +1 -1
  8. package/dist/composition/audit.js +1 -1
  9. package/dist/composition/blueprint-view.d.ts +3 -3
  10. package/dist/composition/blueprint-view.js +1 -1
  11. package/dist/composition/compile.d.ts +24 -3
  12. package/dist/composition/compile.js +1 -1
  13. package/dist/composition/emit-phases.d.ts +206 -0
  14. package/dist/composition/emit-phases.js +1 -0
  15. package/dist/composition/generate.d.ts +40 -0
  16. package/dist/composition/generate.js +1 -0
  17. package/dist/composition/guard-fill.d.ts +44 -0
  18. package/dist/composition/guard-fill.js +1 -0
  19. package/dist/composition/inflight.d.ts +20 -2
  20. package/dist/composition/inflight.js +1 -1
  21. package/dist/composition/input-normalize.d.ts +15 -0
  22. package/dist/composition/input-normalize.js +1 -0
  23. package/dist/composition/materialize.d.ts +18 -13
  24. package/dist/composition/materialize.js +1 -1
  25. package/dist/composition/mode-gates.d.ts +35 -0
  26. package/dist/composition/mode-gates.js +1 -0
  27. package/dist/composition/param-disclosure.js +1 -1
  28. package/dist/composition/plan-retry-ledger.d.ts +21 -0
  29. package/dist/composition/plan-retry-ledger.js +1 -0
  30. package/dist/composition/plan.d.ts +7 -2
  31. package/dist/composition/plan.js +1 -1
  32. package/dist/composition/product-card.d.ts +94 -0
  33. package/dist/composition/product-card.js +1 -0
  34. package/dist/composition/supply-chain-emit.d.ts +46 -0
  35. package/dist/composition/supply-chain-emit.js +1 -0
  36. package/dist/config/config-audit.spec.js +1 -1
  37. package/dist/config/config-warnings.d.ts +2 -0
  38. package/dist/config/config-warnings.js +1 -0
  39. package/dist/config/exposure.d.ts +2 -2
  40. package/dist/config/judgment.d.ts +31 -5
  41. package/dist/config/judgment.js +1 -1
  42. package/dist/config/judgment.spec.js +1 -1
  43. package/dist/config/match-policy-file.d.ts +34 -0
  44. package/dist/config/match-policy-file.js +1 -0
  45. package/dist/config/match-policy-file.spec.d.ts +1 -0
  46. package/dist/config/match-policy-file.spec.js +1 -0
  47. package/dist/config/rule-engine.d.ts +5 -5
  48. package/dist/config/rule-engine.js +1 -1
  49. package/dist/config/runtime.d.ts +0 -1
  50. package/dist/config/runtime.js +1 -1
  51. package/dist/config/severity.d.ts +0 -2
  52. package/dist/config/severity.js +1 -1
  53. package/dist/config/store-policy.spec.js +1 -1
  54. package/dist/config/template-params.d.ts +42 -0
  55. package/dist/config/template-params.js +1 -0
  56. package/dist/config/template-params.spec.d.ts +1 -0
  57. package/dist/config/template-params.spec.js +1 -0
  58. package/dist/data/api/api.spec.js +1 -1
  59. package/dist/data/api/server.js +1 -1
  60. package/dist/data/projection/store.d.ts +2 -1
  61. package/dist/data/projection/store.js +1 -1
  62. package/dist/data/projection/types.d.ts +22 -0
  63. package/dist/data/sync/cdc.d.ts +1 -2
  64. package/dist/data/sync/cdc.js +1 -1
  65. package/dist/evaluation/acceptance.d.ts +8 -0
  66. package/dist/evaluation/acceptance.js +1 -1
  67. package/dist/evaluation/builtins/demand-match.js +1 -1
  68. package/dist/evaluation/builtins/graph-service.spec.js +1 -1
  69. package/dist/evaluation/capability.d.ts +2 -0
  70. package/dist/evaluation/category-match-rules.d.ts +0 -1
  71. package/dist/evaluation/category-match-rules.js +1 -1
  72. package/dist/evaluation/composer.d.ts +25 -0
  73. package/dist/evaluation/composer.js +1 -1
  74. package/dist/evaluation/engine.js +1 -1
  75. package/dist/evaluation/extract.d.ts +7 -0
  76. package/dist/evaluation/extract.js +1 -1
  77. package/dist/evaluation/game-strategy.d.ts +0 -3
  78. package/dist/evaluation/game-strategy.js +1 -1
  79. package/dist/evaluation/match-operation.d.ts +9 -0
  80. package/dist/evaluation/match-operation.js +1 -1
  81. package/dist/evaluation/match-policy-resolver.d.ts +9 -0
  82. package/dist/evaluation/match-policy-resolver.js +1 -0
  83. package/dist/evaluation/match-policy.d.ts +3 -1
  84. package/dist/evaluation/match-policy.js +1 -1
  85. package/dist/evaluation/region.d.ts +0 -6
  86. package/dist/evaluation/region.js +1 -1
  87. package/dist/evaluation/standards.d.ts +2 -1
  88. package/dist/evaluation/standards.js +1 -1
  89. package/dist/evaluation/structured-lines.d.ts +8 -0
  90. package/dist/evaluation/structured-lines.js +1 -0
  91. package/dist/evaluation/types.d.ts +6 -0
  92. package/dist/experience/realtime-feedback.js +1 -1
  93. package/dist/extensions/capability-manifest.d.ts +1 -0
  94. package/dist/extensions/capability-manifest.js +1 -1
  95. package/dist/extensions/capability.d.ts +91 -0
  96. package/dist/extensions/capability.js +1 -0
  97. package/dist/extensions/industry-audit.spec.js +1 -1
  98. package/dist/extensions/industry-pack.d.ts +13 -0
  99. package/dist/extensions/industry-pack.js +1 -1
  100. package/dist/extensions/modes.js +1 -1
  101. package/dist/extensions/registry.d.ts +0 -2
  102. package/dist/extensions/registry.js +1 -1
  103. package/dist/goal/GoalEngine.js +1 -1
  104. package/dist/graph/onchain/analyze.js +1 -1
  105. package/dist/graph/onchain/expand.js +1 -1
  106. package/dist/graph/onchain/exposure.js +1 -1
  107. package/dist/graph/onchain/facts.js +1 -1
  108. package/dist/graph/onchain/order-status.d.ts +0 -1
  109. package/dist/graph/onchain/order-status.js +1 -1
  110. package/dist/harness/recover.js +1 -1
  111. package/dist/harness/verify.d.ts +0 -3
  112. package/dist/harness/verify.js +1 -1
  113. package/dist/intent/types.d.ts +0 -1
  114. package/dist/intent/types.js +1 -1
  115. package/dist/keeper/detectors.js +1 -1
  116. package/dist/keeper/types.d.ts +0 -1
  117. package/dist/keeper/types.js +1 -1
  118. package/dist/knowledge/allocation-risk.d.ts +1 -0
  119. package/dist/knowledge/allocation-risk.js +1 -1
  120. package/dist/knowledge/allocator-rail-verifier.d.ts +6 -1
  121. package/dist/knowledge/allocator-rail-verifier.js +1 -1
  122. package/dist/knowledge/arbitration-ledger.js +1 -1
  123. package/dist/knowledge/arbitration-puzzle.js +1 -1
  124. package/dist/knowledge/audit-rules.d.ts +2 -2
  125. package/dist/knowledge/audit-rules.js +1 -1
  126. package/dist/knowledge/baselines/judgment-baselines.json +21 -2
  127. package/dist/knowledge/baselines/rules/oracle.json +120 -0
  128. package/dist/knowledge/baselines/rules/plan.json +384 -17
  129. package/dist/knowledge/baselines/rules/progress.json +20 -2
  130. package/dist/knowledge/builtin-templates.d.ts +12 -1
  131. package/dist/knowledge/builtin-templates.js +1 -1
  132. package/dist/knowledge/component-schema.js +1 -1
  133. package/dist/knowledge/contact-templates.d.ts +0 -1
  134. package/dist/knowledge/contact-templates.js +1 -1
  135. package/dist/knowledge/dynamic-pricing.js +1 -1
  136. package/dist/knowledge/fee-param-bindings.js +1 -1
  137. package/dist/knowledge/fund-layer.d.ts +1 -0
  138. package/dist/knowledge/fund-layer.js +1 -1
  139. package/dist/knowledge/game-scenarios.js +1 -1
  140. package/dist/knowledge/getting-started.js +1 -1
  141. package/dist/knowledge/guard-binding-table.d.ts +52 -0
  142. package/dist/knowledge/guard-binding-table.js +1 -0
  143. package/dist/knowledge/guard-binding-verifier.d.ts +30 -0
  144. package/dist/knowledge/guard-binding-verifier.js +1 -0
  145. package/dist/knowledge/guard-bindings.js +1 -1
  146. package/dist/knowledge/guard-blueprint.d.ts +68 -0
  147. package/dist/knowledge/guard-blueprint.js +1 -0
  148. package/dist/knowledge/guard-design-patterns.d.ts +1 -1
  149. package/dist/knowledge/guard-design-patterns.js +1 -1
  150. package/dist/knowledge/guard-field-cognition.js +1 -1
  151. package/dist/knowledge/guard-host-context.d.ts +24 -0
  152. package/dist/knowledge/guard-host-context.js +1 -0
  153. package/dist/knowledge/guard-lint.js +1 -1
  154. package/dist/knowledge/guard-node-gates.d.ts +3 -0
  155. package/dist/knowledge/guard-node-gates.js +1 -1
  156. package/dist/knowledge/guard-puzzle.js +1 -1
  157. package/dist/knowledge/guard-render.js +1 -1
  158. package/dist/knowledge/guard-risk.js +1 -1
  159. package/dist/knowledge/guard-submission-prompt.d.ts +11 -0
  160. package/dist/knowledge/guard-submission-prompt.js +1 -1
  161. package/dist/knowledge/guard-templates.d.ts +1 -1
  162. package/dist/knowledge/guard-templates.js +1 -1
  163. package/dist/knowledge/guard-translation.js +1 -1
  164. package/dist/knowledge/index.d.ts +1 -1
  165. package/dist/knowledge/index.js +1 -1
  166. package/dist/knowledge/industry-generalizer.d.ts +6 -1
  167. package/dist/knowledge/industry-generalizer.js +1 -1
  168. package/dist/knowledge/industry-registry.js +1 -1
  169. package/dist/knowledge/jsonrpc-enum.d.ts +38 -0
  170. package/dist/knowledge/jsonrpc-enum.js +1 -1
  171. package/dist/knowledge/machine-topology.js +1 -1
  172. package/dist/knowledge/machine-translation.js +1 -1
  173. package/dist/knowledge/object-dependency.d.ts +31 -0
  174. package/dist/knowledge/object-dependency.js +1 -0
  175. package/dist/knowledge/onchain-constants.d.ts +2 -0
  176. package/dist/knowledge/onchain-constants.js +1 -1
  177. package/dist/knowledge/param-schema.d.ts +23 -0
  178. package/dist/knowledge/param-schema.js +1 -1
  179. package/dist/knowledge/param-tiers.js +1 -1
  180. package/dist/knowledge/passport-ledger.js +1 -1
  181. package/dist/knowledge/path-oracle/coverage.d.ts +16 -0
  182. package/dist/knowledge/path-oracle/coverage.js +1 -0
  183. package/dist/knowledge/path-oracle/index.d.ts +5 -0
  184. package/dist/knowledge/path-oracle/index.js +1 -0
  185. package/dist/knowledge/path-oracle/products/food-delivery.d.ts +2 -0
  186. package/dist/knowledge/path-oracle/products/food-delivery.js +1 -0
  187. package/dist/knowledge/path-oracle/schema.d.ts +188 -0
  188. package/dist/knowledge/path-oracle/schema.js +1 -0
  189. package/dist/knowledge/pattern-resolutions.d.ts +2 -0
  190. package/dist/knowledge/pattern-resolutions.js +1 -1
  191. package/dist/knowledge/progress-ledger.js +1 -1
  192. package/dist/knowledge/progress-risk.js +1 -1
  193. package/dist/knowledge/projection.spec.js +1 -1
  194. package/dist/knowledge/protocol-facts.js +1 -1
  195. package/dist/knowledge/requirement-families.d.ts +13 -0
  196. package/dist/knowledge/requirement-families.js +1 -0
  197. package/dist/knowledge/reward-ledger.js +1 -1
  198. package/dist/knowledge/scenario-modes.d.ts +1 -0
  199. package/dist/knowledge/scenario-modes.js +1 -1
  200. package/dist/knowledge/semantic-ir.d.ts +4 -0
  201. package/dist/knowledge/semantic-ir.js +1 -1
  202. package/dist/knowledge/service-ledger.d.ts +1 -1
  203. package/dist/knowledge/service-ledger.js +1 -1
  204. package/dist/knowledge/sku-name-gate.d.ts +17 -0
  205. package/dist/knowledge/sku-name-gate.js +1 -0
  206. package/dist/knowledge/supply-chain.d.ts +9 -0
  207. package/dist/knowledge/supply-chain.js +1 -1
  208. package/dist/knowledge/template-loader.d.ts +14 -6
  209. package/dist/knowledge/template-loader.js +1 -1
  210. package/dist/knowledge/template-nav.d.ts +3 -1
  211. package/dist/knowledge/template-nav.js +1 -1
  212. package/dist/knowledge/template-prose.d.ts +1 -1
  213. package/dist/knowledge/template-registry.js +1 -1
  214. package/dist/knowledge/template-scanner.d.ts +62 -0
  215. package/dist/knowledge/template-scanner.js +1 -1
  216. package/dist/knowledge/template-test-profiles.js +1 -1
  217. package/dist/knowledge/tools-reference.js +1 -1
  218. package/dist/knowledge/workflow-guidance.d.ts +5 -0
  219. package/dist/knowledge/workflow-guidance.js +1 -1
  220. package/dist/monitor/MonitorLoop.js +1 -1
  221. package/dist/participation/radar-core.js +1 -1
  222. package/dist/participation/time-window.js +1 -1
  223. package/dist/persona/address-format.d.ts +0 -1
  224. package/dist/persona/address-format.js +1 -1
  225. package/dist/persona/bridge.js +1 -1
  226. package/dist/persona/index.d.ts +0 -2
  227. package/dist/persona/index.js +1 -1
  228. package/dist/persona/model.js +1 -1
  229. package/dist/persona/persona-audit.spec.js +1 -1
  230. package/dist/persona/types.d.ts +6 -0
  231. package/dist/playbooks/service-build/business-puzzle.js +1 -1
  232. package/dist/playbooks/service-build/game-theory.d.ts +2 -2
  233. package/dist/playbooks/service-build/intent-analyzer.js +1 -1
  234. package/dist/playbooks/service-build/machine-panorama.js +1 -1
  235. package/dist/playbooks/service-build/merchant-guide.d.ts +50 -23
  236. package/dist/playbooks/service-build/merchant-guide.js +1 -1
  237. package/dist/playbooks/service-build/migration-planner.d.ts +2 -0
  238. package/dist/playbooks/service-build/migration-planner.js +1 -1
  239. package/dist/playbooks/service-build/mode-actions.js +1 -1
  240. package/dist/playbooks/service-build/object-panorama.d.ts +8 -0
  241. package/dist/playbooks/service-build/object-panorama.js +1 -1
  242. package/dist/playbooks/service-build/participation-radar.js +1 -1
  243. package/dist/playbooks/service-build/relationship-profile.js +1 -1
  244. package/dist/playbooks/service-build/reverse-mapping.d.ts +6 -0
  245. package/dist/playbooks/service-build/reverse-mapping.js +1 -1
  246. package/dist/playbooks/service-build/service-panorama.d.ts +1 -0
  247. package/dist/playbooks/service-build/service-panorama.js +1 -1
  248. package/dist/playbooks/service-build/service-quote.js +1 -1
  249. package/dist/playbooks/service-build/service-quote.spec.js +1 -1
  250. package/dist/playbooks/service-build/workflow-design-assessment.d.ts +10 -1
  251. package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
  252. package/dist/review/index.js +1 -1
  253. package/dist/review/repository.js +1 -1
  254. package/dist/safety/confirm-gate.js +1 -1
  255. package/dist/schema/benchmark-migration/index.d.ts +104 -0
  256. package/dist/schema/benchmark-migration/index.js +1 -1
  257. package/dist/schema/call/allocation.d.ts +15 -6
  258. package/dist/schema/call/allocation.js +1 -1
  259. package/dist/schema/call/base.d.ts +256 -0
  260. package/dist/schema/call/base.js +1 -1
  261. package/dist/schema/call/bridge.d.ts +32 -6
  262. package/dist/schema/call/demand.d.ts +15 -6
  263. package/dist/schema/call/demand.js +1 -1
  264. package/dist/schema/call/guard.d.ts +8 -8
  265. package/dist/schema/call/guard.js +1 -1
  266. package/dist/schema/call/handler.d.ts +3 -0
  267. package/dist/schema/call/handler.js +1 -1
  268. package/dist/schema/call/machine.d.ts +32 -8
  269. package/dist/schema/call/machine.js +1 -1
  270. package/dist/schema/call/order.d.ts +26 -8
  271. package/dist/schema/call/order.js +1 -1
  272. package/dist/schema/call/payment.d.ts +20 -8
  273. package/dist/schema/call/payment.js +1 -1
  274. package/dist/schema/call/permission-handler.js +1 -1
  275. package/dist/schema/call/permission.d.ts +330 -114
  276. package/dist/schema/call/permission.js +1 -1
  277. package/dist/schema/call/personal.d.ts +10 -4
  278. package/dist/schema/call/personal.js +1 -1
  279. package/dist/schema/call/progress.d.ts +16 -4
  280. package/dist/schema/call/reward.d.ts +10 -4
  281. package/dist/schema/call/reward.js +1 -1
  282. package/dist/schema/call/semantic.d.ts +1 -0
  283. package/dist/schema/call/semantic.js +1 -1
  284. package/dist/schema/call/service.d.ts +128 -40
  285. package/dist/schema/call/service.js +1 -1
  286. package/dist/schema/call/treasury.d.ts +15 -6
  287. package/dist/schema/call/treasury.js +1 -1
  288. package/dist/schema/common/index.js +1 -1
  289. package/dist/schema/config/index.d.ts +61 -0
  290. package/dist/schema/config/index.js +1 -1
  291. package/dist/schema/envelope-unify.d.ts +4 -0
  292. package/dist/schema/envelope-unify.js +1 -0
  293. package/dist/schema/evaluation/index.d.ts +216 -19
  294. package/dist/schema/evaluation/index.js +1 -1
  295. package/dist/schema/goal/index.d.ts +47 -0
  296. package/dist/schema/goal/planning.d.ts +115 -1
  297. package/dist/schema/goal/planning.js +1 -1
  298. package/dist/schema/industry-pack/index.d.ts +137 -6
  299. package/dist/schema/industry-pack/index.js +1 -1
  300. package/dist/schema/industry-pack/modes.d.ts +6 -6
  301. package/dist/schema/keeper/index.d.ts +26 -0
  302. package/dist/schema/local/index.d.ts +137 -0
  303. package/dist/schema/local/index.js +1 -1
  304. package/dist/schema/local/wip.d.ts +6 -0
  305. package/dist/schema/local/wip.js +1 -1
  306. package/dist/schema/messenger/index.d.ts +26 -0
  307. package/dist/schema/operations.d.ts +342 -83
  308. package/dist/schema/operations.js +1 -1
  309. package/dist/schema/persona/index.d.ts +2907 -640
  310. package/dist/schema/persona/index.js +1 -1
  311. package/dist/schema/query/bi.d.ts +145 -4
  312. package/dist/schema/query/bi.js +1 -1
  313. package/dist/schema/query/index.d.ts +266 -73
  314. package/dist/schema/query/index.js +1 -1
  315. package/dist/schema/schema-query/index.d.ts +1 -1
  316. package/dist/schema/schema-query/index.js +1 -1
  317. package/dist/schema/schema-version.js +1 -1
  318. package/dist/schema/utils/permission-machine-check.d.ts +2 -0
  319. package/dist/schema/utils/permission-machine-check.js +1 -1
  320. package/dist/schema/watch/index.d.ts +16 -0
  321. package/dist/schema/watch/index.js +1 -1
  322. package/dist/schema/workflow/index.d.ts +2 -2
  323. package/dist/schema/workflow/index.js +1 -1
  324. package/dist/schema-query-impl/index.d.ts +1 -1
  325. package/dist/schema-query-impl/index.js +1 -1
  326. package/dist/schemas/account_operation.output.json +94 -0
  327. package/dist/schemas/benchmark_migration_operation.output.json +338 -9
  328. package/dist/schemas/benchmark_migration_operation.schema.json +26 -1
  329. package/dist/schemas/bridge_operation.output.json +94 -0
  330. package/dist/schemas/config_operation.output.json +352 -0
  331. package/dist/schemas/config_operation.schema.json +20 -2
  332. package/dist/schemas/evaluation_operation.output.json +570 -4
  333. package/dist/schemas/evaluation_operation.schema.json +194 -3
  334. package/dist/schemas/goal_operation.schema.json +183 -0
  335. package/dist/schemas/index.json +1 -1
  336. package/dist/schemas/industry_pack_operation.output.json +621 -0
  337. package/dist/schemas/industry_pack_operation.schema.json +20 -2
  338. package/dist/schemas/keeper_operation.output.json +94 -0
  339. package/dist/schemas/local_cache_operation.output.json +94 -0
  340. package/dist/schemas/local_history_operation.output.json +94 -0
  341. package/dist/schemas/local_info_operation.output.json +94 -0
  342. package/dist/schemas/local_mark_operation.output.json +94 -0
  343. package/dist/schemas/messenger_operation.output.json +94 -0
  344. package/dist/schemas/monitor_events.output.json +94 -0
  345. package/dist/schemas/monitor_subscription.output.json +94 -0
  346. package/dist/schemas/onchain_events.output.json +94 -0
  347. package/dist/schemas/onchain_operations.output.json +313 -1
  348. package/dist/schemas/onchain_operations.schema.json +1248 -664
  349. package/dist/schemas/onchain_operations_allocation.schema.json +30 -15
  350. package/dist/schemas/onchain_operations_arbitration.schema.json +9 -2
  351. package/dist/schemas/onchain_operations_contact.schema.json +8 -1
  352. package/dist/schemas/onchain_operations_demand.schema.json +29 -14
  353. package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -1
  354. package/dist/schemas/onchain_operations_guard.schema.json +290 -105
  355. package/dist/schemas/onchain_operations_machine.schema.json +49 -34
  356. package/dist/schemas/onchain_operations_order.schema.json +63 -40
  357. package/dist/schemas/onchain_operations_payment.schema.json +26 -11
  358. package/dist/schemas/onchain_operations_permission.schema.json +362 -235
  359. package/dist/schemas/onchain_operations_personal.schema.json +27 -15
  360. package/dist/schemas/onchain_operations_progress.schema.json +45 -30
  361. package/dist/schemas/onchain_operations_proof.schema.json +8 -1
  362. package/dist/schemas/onchain_operations_repository.schema.json +8 -1
  363. package/dist/schemas/onchain_operations_reward.schema.json +32 -17
  364. package/dist/schemas/onchain_operations_service.schema.json +221 -124
  365. package/dist/schemas/onchain_operations_treasury.schema.json +32 -17
  366. package/dist/schemas/onchain_table_data.output.json +258 -6
  367. package/dist/schemas/onchain_table_data.schema.json +92 -52
  368. package/dist/schemas/persona_operation.output.json +7752 -0
  369. package/dist/schemas/persona_operation.schema.json +1232 -4
  370. package/dist/schemas/query_toolkit.output.json +756 -116
  371. package/dist/schemas/query_toolkit.schema.json +138 -7
  372. package/dist/schemas/schema_query.schema.json +1 -1
  373. package/dist/schemas/watch_operation.output.json +83 -0
  374. package/dist/schemas/wip_file.output.json +8 -0
  375. package/dist/schemas/workflow_operation.schema.json +2 -2
  376. package/dist/tools/handlers/benchmark-migration.d.ts +11 -3
  377. package/dist/tools/handlers/benchmark-migration.js +1 -1
  378. package/dist/tools/handlers/config.js +1 -1
  379. package/dist/tools/handlers/evaluation.js +1 -1
  380. package/dist/tools/handlers/evaluation.spec.js +1 -1
  381. package/dist/tools/handlers/industry-pack.js +1 -1
  382. package/dist/tools/handlers/onchain.d.ts +20 -0
  383. package/dist/tools/handlers/onchain.js +1 -1
  384. package/dist/tools/handlers/persona.js +1 -1
  385. package/dist/tools/handlers/query.d.ts +8 -0
  386. package/dist/tools/handlers/query.js +1 -1
  387. package/dist/tools/handlers/winner-derivation.d.ts +20 -0
  388. package/dist/tools/handlers/winner-derivation.js +1 -0
  389. package/dist/tools/handlers/wip-upload.js +1 -1
  390. package/dist/tools/index.d.ts +1 -0
  391. package/dist/tools/index.js +1 -1
  392. package/dist/tools/registry/business.js +1 -1
  393. package/dist/tools/registry/config.js +1 -1
  394. package/dist/tools/registry/evaluation.js +1 -1
  395. package/dist/tools/registry/identity.js +1 -1
  396. package/dist/tools/registry/query.js +1 -1
  397. package/dist/tools/transport-integrity.d.ts +7 -0
  398. package/dist/tools/transport-integrity.js +1 -0
  399. package/dist/tools/upgrade-check.js +1 -1
  400. package/dist/tools/wrap.d.ts +5 -0
  401. package/dist/tools/wrap.js +1 -1
  402. package/package.json +2 -2
  403. package/dist/extensions/business-modules.d.ts +0 -54
  404. package/dist/extensions/business-modules.js +0 -1
  405. package/dist/schemas/guard-templates.json +0 -379
@@ -1 +1 @@
1
- import{z}from'zod';import{PermissionIndexTypeSchema}from'../query/index.js';import{CallEnvSchema,SubmissionCallSchema,NormalObjectSchema}from'./base.js';import{AccountOrMark_AddressSchema,DescriptionSchema,LongNameSchema,ManyAccountOrMark_AddressSchema,NameOrAddressSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const RemarkSetSchema=z['object']({'op':z['literal']('set'),'index':PermissionIndexTypeSchema,'remark':LongNameSchema['describe']('Permission\x20remark.')})['strict']()['describe']('Set\x20remark\x20for\x20a\x20permission.');export const RemarkRemoveSchema=z['object']({'op':z['literal']('remove'),'index':PermissionIndexTypeSchema})['strict']()['describe']('Remove\x20remark\x20for\x20a\x20permission.');export const RemarkClearSchema=z['object']({'op':z['literal']('clear')})['strict']()['describe']('Clear\x20remarks\x20for\x20all\x20permissions.');export const RemarkSchema=z['discriminatedUnion']('op',[RemarkSetSchema,RemarkRemoveSchema,RemarkClearSchema])['describe']('Set\x20remarks\x20for\x20permissions.');export const TablePermByIndexSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add\x20perm\x20by\x20index'),'index':PermissionIndexTypeSchema,'entity':ManyAccountOrMark_AddressSchema})['strict']()['describe']('Grant\x20a\x20specific\x20permission\x20to\x20multiple\x20entities\x20at\x20once.\x20USE\x20WHEN:\x20You\x20need\x20to\x20assign\x20the\x20SAME\x20permission\x20to\x20MULTIPLE\x20users/Guards.\x20Example:\x20Give\x20\x27create\x20service\x27\x20permission\x20to\x20Alice,\x20Bob,\x20and\x20Carol\x20simultaneously.'),z['object']({'op':z['literal']('set\x20perm\x20by\x20index'),'index':PermissionIndexTypeSchema,'entity':ManyAccountOrMark_AddressSchema})['strict']()['describe']('Replace\x20the\x20entity\x20list\x20for\x20a\x20specific\x20permission\x20with\x20a\x20new\x20set\x20of\x20entities.\x20USE\x20WHEN:\x20You\x20want\x20to\x20completely\x20redefine\x20WHO\x20has\x20this\x20permission.\x20WARNING:\x20This\x20overwrites\x20the\x20existing\x20entity\x20list\x20for\x20this\x20permission.'),z['object']({'op':z['literal']('remove\x20perm\x20by\x20index'),'index':PermissionIndexTypeSchema,'entity':ManyAccountOrMark_AddressSchema})['strict']()['describe']('Revoke\x20a\x20specific\x20permission\x20from\x20multiple\x20entities\x20at\x20once.\x20USE\x20WHEN:\x20You\x20need\x20to\x20remove\x20the\x20SAME\x20permission\x20from\x20MULTIPLE\x20users/Guards.\x20Example:\x20Remove\x20\x27create\x20service\x27\x20permission\x20from\x20Alice,\x20Bob,\x20and\x20Carol\x20simultaneously.')])['describe']('Permission-centric\x20operations:\x20Manage\x20WHO\x20has\x20a\x20specific\x20permission.\x20Best\x20for\x20batch-assigning\x20one\x20permission\x20to\x20many\x20users.\x20Structure:\x20{op:\x20\x27add|set|remove\x20perm\x20by\x20index\x27,\x20index:\x20<permission\x20index>,\x20entity:\x20[user1,\x20user2,\x20...]}');export const TablePermByEntitySchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add\x20perm\x20by\x20entity'),'entity':AccountOrMark_AddressSchema,'index':z['array'](PermissionIndexTypeSchema)})['strict']()['describe']('Grant\x20multiple\x20permissions\x20to\x20a\x20single\x20entity.\x20USE\x20WHEN:\x20You\x20need\x20to\x20give\x20ONE\x20user/Guard\x20MANY\x20permissions\x20at\x20once.\x20Example:\x20Give\x20Alice\x20all\x20Machine-related\x20permissions\x20(create,\x20edit,\x20publish,\x20pause,\x20etc.)\x20in\x20one\x20call.'),z['object']({'op':z['literal']('set\x20perm\x20by\x20entity'),'entity':AccountOrMark_AddressSchema,'index':z['array'](PermissionIndexTypeSchema)})['strict']()['describe']('Replace\x20all\x20permissions\x20of\x20a\x20single\x20entity\x20with\x20a\x20new\x20permission\x20set.\x20USE\x20WHEN:\x20You\x20want\x20to\x20completely\x20redefine\x20WHAT\x20permissions\x20a\x20user/Guard\x20has.\x20WARNING:\x20This\x20overwrites\x20all\x20existing\x20permissions\x20for\x20this\x20entity.'),z['object']({'op':z['literal']('remove\x20perm\x20by\x20entity'),'entity':AccountOrMark_AddressSchema,'index':z['array'](PermissionIndexTypeSchema)})['strict']()['describe']('Revoke\x20multiple\x20permissions\x20from\x20a\x20single\x20entity.\x20USE\x20WHEN:\x20You\x20need\x20to\x20remove\x20MANY\x20permissions\x20from\x20ONE\x20user/Guard\x20at\x20once.\x20Example:\x20Remove\x20all\x20Machine-related\x20permissions\x20from\x20Alice.')])['describe']('Entity-centric\x20operations:\x20Manage\x20WHAT\x20permissions\x20a\x20specific\x20user/Guard\x20has.\x20Best\x20for\x20assigning\x20many\x20permissions\x20to\x20one\x20user.\x20Structure:\x20{op:\x20\x27add|set|remove\x20perm\x20by\x20entity\x27,\x20entity:\x20user_id,\x20index:\x20[perm1,\x20perm2,\x20...]}');export const TableSchema=z['discriminatedUnion']('op',[...TablePermByIndexSchema['options'],...TablePermByEntitySchema['options']])['describe']('Manage\x20permission\x20assignments\x20using\x20two\x20complementary\x20approaches.\x20CHOOSE\x20THE\x20RIGHT\x20APPROACH:\x20(1)\x20\x27perm\x20by\x20index\x27\x20-\x20Use\x20when\x20granting\x20ONE\x20permission\x20to\x20MANY\x20users\x20(permission-centric).\x20Example:\x20Give\x20\x27create\x20service\x27\x20permission\x20to\x20Alice,\x20Bob,\x20and\x20Carol.\x20(2)\x20\x27perm\x20by\x20entity\x27\x20-\x20Use\x20when\x20granting\x20MANY\x20permissions\x20to\x20ONE\x20user\x20(entity-centric).\x20Example:\x20Give\x20Alice\x20all\x20Machine-related\x20permissions.\x20Both\x20approaches\x20support\x20add/set/remove\x20operations.\x20Requires\x20admin\x20permission.');export const EntitySwapReplaceCopySchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('swap'),'entity1':AccountOrMark_AddressSchema,'entity2':AccountOrMark_AddressSchema})['strict']()['describe']('Swap\x20all\x20permission\x20indexes\x20between\x20two\x20entities.'),z['object']({'op':z['literal']('replace'),'entity1':AccountOrMark_AddressSchema,'entity2':AccountOrMark_AddressSchema})['strict']()['describe']('Remove\x20all\x20permission\x20indexes\x20from\x20entity1\x20and\x20add\x20them\x20to\x20entity2\x27s\x20permission\x20indexes.'),z['object']({'op':z['literal']('copy'),'entity1':AccountOrMark_AddressSchema,'entity2':AccountOrMark_AddressSchema})['strict']()['describe']('Add\x20all\x20permission\x20indexes\x20from\x20entity1\x20to\x20entity2\x27s\x20permission\x20indexes.')]);export const EntityDelSchema=z['object']({'op':z['literal']('del'),'entity':AccountOrMark_AddressSchema})['strict']()['describe']('Delete\x20all\x20permission\x20indexes\x20from\x20an\x20entity.');export const EntitySchema=z['discriminatedUnion']('op',[...EntitySwapReplaceCopySchema['options'],EntityDelSchema]);export const AdminSchema=z['object']({'op':z['enum'](['add','remove','set'])['describe']('Admin\x20operations:\x20add,\x20remove,\x20set.'),'addresses':ManyAccountOrMark_AddressSchema['describe']('List\x20of\x20admin\x20addresses.')})['strict']();export const CallPermission_DataSchema=z['object']({'object':NormalObjectSchema['optional'](),'description':DescriptionSchema['optional'](),'remark':RemarkSchema['optional'](),'table':TableSchema['optional']()['describe']('Manage\x20permission\x20assignments\x20using\x20two\x20approaches:\x20(1)\x20By\x20Permission\x20Index\x20-\x20add/set/remove\x20entity\x20IDs\x20for\x20a\x20specific\x20permission;\x20(2)\x20By\x20Entity\x20-\x20add/set/remove\x20permission\x20indexes\x20for\x20a\x20specific\x20entity.\x20Requires\x20admin\x20permission.'),'entity':EntitySchema['optional']()['describe']('Advanced\x20entity\x20permission\x20operations:\x20swap\x20permissions\x20between\x20two\x20entities,\x20replace\x20one\x20entity\x27s\x20permissions\x20with\x20another\x27s,\x20copy\x20permissions\x20from\x20one\x20entity\x20to\x20another,\x20or\x20delete\x20all\x20permissions\x20of\x20an\x20entity.\x20Entity\x20can\x20be\x20a\x20user\x20ID\x20or\x20Guard\x20object\x20ID.\x20Requires\x20admin\x20permission.'),'admin':AdminSchema['optional']()['describe']('Manage\x20Permission\x20object\x20admins:\x20add\x20new\x20admins,\x20remove\x20existing\x20admins,\x20or\x20set\x20the\x20complete\x20admin\x20list.\x20Only\x20the\x20Permission\x20object\x20owner\x20(builder)\x20can\x20perform\x20this\x20operation.\x20The\x20creator\x20automatically\x20becomes\x20an\x20admin\x20with\x20full\x20permissions.'),'apply':z['array'](NameOrAddressSchema)['optional']()['describe']('Array\x20of\x20object\x20IDs\x20or\x20names\x20to\x20operate\x20on,\x20apply\x20the\x20Permission\x20object\x20to\x20these\x20objects\x27\x20permission\x20control.\x20Note:\x20The\x20signer\x20must\x20be\x20the\x20owner\x20of\x20the\x20existing\x20Permission\x20objects\x20for\x20these\x20objects'),'builder':AccountOrMark_AddressSchema['optional']()['describe']('Set\x20or\x20transfer\x20ownership\x20of\x20the\x20Permission\x20object\x20to\x20the\x20specified\x20user\x20ID.\x20The\x20creator\x20automatically\x20becomes\x20the\x20builder;\x20only\x20the\x20builder\x20can\x20transfer\x20ownership\x20to\x20other\x20users.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Permission\x20object\x20and\x20send\x20them\x20to\x20the\x20builder(owner).'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Permission\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20tags?,\x20...}\x20to\x20create\x20a\x20Permission.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallPermission_InputSchema=z['object']({'data':CallPermission_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
1
+ import{z}from'zod';import{PermissionIndexTypeSchema}from'../query/index.js';import{CallEnvSchema,SubmissionCallSchema,NormalObjectSchema}from'./base.js';import{AccountOrMark_AddressAISchema,ManyAccountOrMark_AddressAISchema,DescriptionSchema,LongNameSchema,NameOrAddressSchema,ReceivedObjectsOrRecentlySchema,RECEIVE_FORMAT_BLOCK_OBJECTS}from'../common/index.js';export const RemarkSetSchema=z['object']({'op':z['literal']('set'),'index':PermissionIndexTypeSchema,'remark':LongNameSchema['describe']('Permission\x20remark.')})['strict']()['describe']('Set\x20remark\x20for\x20a\x20permission.');export const RemarkRemoveSchema=z['object']({'op':z['literal']('remove'),'index':PermissionIndexTypeSchema})['strict']()['describe']('Remove\x20remark\x20for\x20a\x20permission.');export const RemarkClearSchema=z['object']({'op':z['literal']('clear')})['strict']()['describe']('Clear\x20remarks\x20for\x20all\x20permissions.');export const RemarkSchema=z['discriminatedUnion']('op',[RemarkSetSchema,RemarkRemoveSchema,RemarkClearSchema])['describe']('Set\x20remarks\x20for\x20permissions.');export const TablePermByIndexSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add\x20perm\x20by\x20index'),'index':PermissionIndexTypeSchema,'entity':ManyAccountOrMark_AddressAISchema})['strict']()['describe']('Grant\x20a\x20specific\x20permission\x20to\x20multiple\x20entities\x20at\x20once.\x20USE\x20WHEN:\x20You\x20need\x20to\x20assign\x20the\x20SAME\x20permission\x20to\x20MULTIPLE\x20users/Guards.\x20Example:\x20Give\x20\x27create\x20service\x27\x20permission\x20to\x20Alice,\x20Bob,\x20and\x20Carol\x20simultaneously.'),z['object']({'op':z['literal']('set\x20perm\x20by\x20index'),'index':PermissionIndexTypeSchema,'entity':ManyAccountOrMark_AddressAISchema})['strict']()['describe']('Replace\x20the\x20entity\x20list\x20for\x20a\x20specific\x20permission\x20with\x20a\x20new\x20set\x20of\x20entities.\x20USE\x20WHEN:\x20You\x20want\x20to\x20completely\x20redefine\x20WHO\x20has\x20this\x20permission.\x20WARNING:\x20This\x20overwrites\x20the\x20existing\x20entity\x20list\x20for\x20this\x20permission.'),z['object']({'op':z['literal']('remove\x20perm\x20by\x20index'),'index':PermissionIndexTypeSchema,'entity':ManyAccountOrMark_AddressAISchema})['strict']()['describe']('Revoke\x20a\x20specific\x20permission\x20from\x20multiple\x20entities\x20at\x20once.\x20USE\x20WHEN:\x20You\x20need\x20to\x20remove\x20the\x20SAME\x20permission\x20from\x20MULTIPLE\x20users/Guards.\x20Example:\x20Remove\x20\x27create\x20service\x27\x20permission\x20from\x20Alice,\x20Bob,\x20and\x20Carol\x20simultaneously.')])['describe']('Permission-centric\x20operations:\x20Manage\x20WHO\x20has\x20a\x20specific\x20permission.\x20Best\x20for\x20batch-assigning\x20one\x20permission\x20to\x20many\x20users.\x20Structure:\x20{op:\x20\x27add|set|remove\x20perm\x20by\x20index\x27,\x20index:\x20<permission\x20index>,\x20entity:\x20[user1,\x20user2,\x20...]}');export const TablePermByEntitySchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('add\x20perm\x20by\x20entity'),'entity':AccountOrMark_AddressAISchema,'index':z['array'](PermissionIndexTypeSchema)})['strict']()['describe']('Grant\x20multiple\x20permissions\x20to\x20a\x20single\x20entity.\x20USE\x20WHEN:\x20You\x20need\x20to\x20give\x20ONE\x20user/Guard\x20MANY\x20permissions\x20at\x20once.\x20Example:\x20Give\x20Alice\x20all\x20Machine-related\x20permissions\x20(create,\x20edit,\x20publish,\x20pause,\x20etc.)\x20in\x20one\x20call.'),z['object']({'op':z['literal']('set\x20perm\x20by\x20entity'),'entity':AccountOrMark_AddressAISchema,'index':z['array'](PermissionIndexTypeSchema)})['strict']()['describe']('Replace\x20all\x20permissions\x20of\x20a\x20single\x20entity\x20with\x20a\x20new\x20permission\x20set.\x20USE\x20WHEN:\x20You\x20want\x20to\x20completely\x20redefine\x20WHAT\x20permissions\x20a\x20user/Guard\x20has.\x20WARNING:\x20This\x20overwrites\x20all\x20existing\x20permissions\x20for\x20this\x20entity.'),z['object']({'op':z['literal']('remove\x20perm\x20by\x20entity'),'entity':AccountOrMark_AddressAISchema,'index':z['array'](PermissionIndexTypeSchema)})['strict']()['describe']('Revoke\x20multiple\x20permissions\x20from\x20a\x20single\x20entity.\x20USE\x20WHEN:\x20You\x20need\x20to\x20remove\x20MANY\x20permissions\x20from\x20ONE\x20user/Guard\x20at\x20once.\x20Example:\x20Remove\x20all\x20Machine-related\x20permissions\x20from\x20Alice.')])['describe']('Entity-centric\x20operations:\x20Manage\x20WHAT\x20permissions\x20a\x20specific\x20user/Guard\x20has.\x20Best\x20for\x20assigning\x20many\x20permissions\x20to\x20one\x20user.\x20Structure:\x20{op:\x20\x27add|set|remove\x20perm\x20by\x20entity\x27,\x20entity:\x20user_id,\x20index:\x20[perm1,\x20perm2,\x20...]}');export const TableSchema=z['discriminatedUnion']('op',[...TablePermByIndexSchema['options'],...TablePermByEntitySchema['options']])['describe']('Manage\x20permission\x20assignments\x20using\x20two\x20complementary\x20approaches.\x20CHOOSE\x20THE\x20RIGHT\x20APPROACH:\x20(1)\x20\x27perm\x20by\x20index\x27\x20-\x20Use\x20when\x20granting\x20ONE\x20permission\x20to\x20MANY\x20users\x20(permission-centric).\x20Example:\x20Give\x20\x27create\x20service\x27\x20permission\x20to\x20Alice,\x20Bob,\x20and\x20Carol.\x20(2)\x20\x27perm\x20by\x20entity\x27\x20-\x20Use\x20when\x20granting\x20MANY\x20permissions\x20to\x20ONE\x20user\x20(entity-centric).\x20Example:\x20Give\x20Alice\x20all\x20Machine-related\x20permissions.\x20Both\x20approaches\x20support\x20add/set/remove\x20operations.\x20Requires\x20admin\x20permission.');export const EntitySwapReplaceCopySchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('swap'),'entity1':AccountOrMark_AddressAISchema,'entity2':AccountOrMark_AddressAISchema})['strict']()['describe']('Swap\x20all\x20permission\x20indexes\x20between\x20two\x20entities.'),z['object']({'op':z['literal']('replace'),'entity1':AccountOrMark_AddressAISchema,'entity2':AccountOrMark_AddressAISchema})['strict']()['describe']('Remove\x20all\x20permission\x20indexes\x20from\x20entity1\x20and\x20add\x20them\x20to\x20entity2\x27s\x20permission\x20indexes.'),z['object']({'op':z['literal']('copy'),'entity1':AccountOrMark_AddressAISchema,'entity2':AccountOrMark_AddressAISchema})['strict']()['describe']('Add\x20all\x20permission\x20indexes\x20from\x20entity1\x20to\x20entity2\x27s\x20permission\x20indexes.')]);export const EntityDelSchema=z['object']({'op':z['literal']('del'),'entity':AccountOrMark_AddressAISchema})['strict']()['describe']('Delete\x20all\x20permission\x20indexes\x20from\x20an\x20entity.');export const EntitySchema=z['discriminatedUnion']('op',[...EntitySwapReplaceCopySchema['options'],EntityDelSchema]);export const AdminSchema=z['object']({'op':z['enum'](['add','remove','set'])['describe']('Admin\x20operations:\x20add,\x20remove,\x20set.'),'addresses':ManyAccountOrMark_AddressAISchema['describe']('List\x20of\x20admin\x20addresses.')})['strict']();export const CallPermission_DataSchema=z['object']({'object':NormalObjectSchema['optional'](),'description':DescriptionSchema['optional'](),'remark':RemarkSchema['optional'](),'table':TableSchema['optional']()['describe']('Manage\x20permission\x20assignments\x20using\x20two\x20approaches:\x20(1)\x20By\x20Permission\x20Index\x20-\x20add/set/remove\x20entity\x20IDs\x20for\x20a\x20specific\x20permission;\x20(2)\x20By\x20Entity\x20-\x20add/set/remove\x20permission\x20indexes\x20for\x20a\x20specific\x20entity.\x20Requires\x20admin\x20permission.'),'entity':EntitySchema['optional']()['describe']('Advanced\x20entity\x20permission\x20operations:\x20swap\x20permissions\x20between\x20two\x20entities,\x20replace\x20one\x20entity\x27s\x20permissions\x20with\x20another\x27s,\x20copy\x20permissions\x20from\x20one\x20entity\x20to\x20another,\x20or\x20delete\x20all\x20permissions\x20of\x20an\x20entity.\x20Entity\x20can\x20be\x20a\x20user\x20ID\x20or\x20Guard\x20object\x20ID.\x20Requires\x20admin\x20permission.'),'admin':AdminSchema['optional']()['describe']('Manage\x20Permission\x20object\x20admins:\x20add\x20new\x20admins,\x20remove\x20existing\x20admins,\x20or\x20set\x20the\x20complete\x20admin\x20list.\x20Only\x20the\x20Permission\x20object\x20owner\x20(builder)\x20can\x20perform\x20this\x20operation.\x20The\x20creator\x20automatically\x20becomes\x20an\x20admin\x20with\x20full\x20permissions.'),'apply':z['array'](NameOrAddressSchema)['optional']()['describe']('Array\x20of\x20object\x20IDs\x20or\x20names\x20to\x20operate\x20on,\x20apply\x20the\x20Permission\x20object\x20to\x20these\x20objects\x27\x20permission\x20control.\x20Note:\x20The\x20signer\x20must\x20be\x20the\x20owner\x20of\x20the\x20existing\x20Permission\x20objects\x20for\x20these\x20objects'),'builder':AccountOrMark_AddressAISchema['optional']()['describe']('Set\x20or\x20transfer\x20ownership\x20of\x20the\x20Permission\x20object\x20to\x20the\x20specified\x20user\x20ID.\x20The\x20creator\x20automatically\x20becomes\x20the\x20builder;\x20only\x20the\x20builder\x20can\x20transfer\x20ownership\x20to\x20other\x20users.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Permission\x20object\x20and\x20send\x20them\x20to\x20the\x20builder(owner).'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.')})['strict']()['describe']('On-chain\x20Permission\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20tags?,\x20...}\x20to\x20create\x20a\x20Permission.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.');export const CallPermission_InputSchema=z['object']({'data':CallPermission_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
@@ -219,10 +219,13 @@ export declare const MarkSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
219
219
  }, z.core.$strict>], "op">;
220
220
  export declare const CallPersonal_DataSchema: z.ZodObject<{
221
221
  description: z.ZodOptional<z.ZodString>;
222
- referrer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
222
+ referrer: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
223
+ name_or_address: string;
224
+ local_mark_first: boolean;
225
+ }, string>>, z.ZodObject<{
223
226
  name_or_address: z.ZodOptional<z.ZodString>;
224
227
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
225
- }, z.core.$strict>, z.ZodNull]>>;
228
+ }, z.core.$strict>]>, z.ZodNull]>>;
226
229
  information: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
227
230
  op: z.ZodLiteral<"add">;
228
231
  data: z.ZodArray<z.ZodObject<{
@@ -331,10 +334,13 @@ export declare const CallPersonal_DataSchema: z.ZodObject<{
331
334
  export declare const CallPersonal_InputSchema: z.ZodObject<{
332
335
  data: z.ZodObject<{
333
336
  description: z.ZodOptional<z.ZodString>;
334
- referrer: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
337
+ referrer: z.ZodOptional<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
338
+ name_or_address: string;
339
+ local_mark_first: boolean;
340
+ }, string>>, z.ZodObject<{
335
341
  name_or_address: z.ZodOptional<z.ZodString>;
336
342
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
337
- }, z.core.$strict>, z.ZodNull]>>;
343
+ }, z.core.$strict>]>, z.ZodNull]>>;
338
344
  information: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
339
345
  op: z.ZodLiteral<"add">;
340
346
  data: z.ZodArray<z.ZodObject<{
@@ -1 +1 @@
1
- import{z}from'zod';import{AccountOrMark_AddressAISchema,AccountOrMark_AddressSchema,DescriptionSchema,ManyAccountOrMark_AddressAISchema,NameSchema}from'../common/index.js';import{RecordsInEntitySchema}from'../query/index.js';import{CallEnvSchema}from'./base.js';export const InformationAddSchema=z['object']({'op':z['literal']('add'),'data':z['array'](RecordsInEntitySchema)})['strict']()['describe']('PUBLIC:\x20Add\x20personal\x20info\x20on-chain.\x20Safe:\x20social\x20handles,\x20URLs,\x20public\x20email.\x20NEVER:\x20phone,\x20address,\x20private\x20keys.');export const InformationRemoveSchema=z['object']({'op':z['literal']('remove'),'name':z['array'](NameSchema)})['strict']()['describe']('PUBLIC:\x20Remove\x20specified\x20personal\x20info\x20records\x20from\x20your\x20public\x20profile.');export const InformationClearSchema=z['object']({'op':z['literal']('clear')})['strict']()['describe']('PUBLIC:\x20Clear\x20ALL\x20personal\x20info\x20from\x20your\x20public\x20profile.');export const InformationSchema=z['discriminatedUnion']('op',[InformationAddSchema,InformationRemoveSchema,InformationClearSchema]);export const MarkAddSchema=z['object']({'op':z['literal']('add'),'data':z['array'](z['object']({'address':AccountOrMark_AddressAISchema,'name':NameSchema['optional'](),'tags':z['array'](NameSchema)['optional']()})['strict']())})['strict']()['describe']('PUBLIC:\x20Add\x20ID\x20name\x20and\x20tags\x20on-chain\x20for\x20public\x20identity.\x20For\x20private\x20marks,\x20use\x20\x27local\x27\x20tool.');export const MarkRemoveSchema=z['object']({'op':z['literal']('remove'),'data':z['array'](z['object']({'address':AccountOrMark_AddressAISchema,'tags':z['array'](NameSchema)['optional']()})['strict']())})['strict']()['describe']('PUBLIC:\x20Remove\x20specified\x20tags\x20from\x20your\x20on-chain\x20identity\x20mark.');export const MarkClearSchema=z['object']({'op':z['literal']('clear'),'address':ManyAccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC:\x20Clear\x20ALL\x20tags\x20from\x20specified\x20on-chain\x20identity\x20marks.');export const MarkLikeSchema=z['object']({'op':z['literal']('like'),'address':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC\x20REPUTATION\x20VOTE:\x20Like\x20an\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20An\x20on-chain\x20reputation\x20vote\x20—\x20toggles\x20off\x20if\x20already\x20liked,\x20auto-flips\x20an\x20existing\x20dislike,\x20and\x20increments\x20the\x20target\x27s\x20PUBLIC\x20aggregate\x20like\x20count\x20(queryable\x20via\x20query\x20personal\x20/\x20Guard\x20entity_voted_record).\x20Do\x20NOT\x20emulate\x20with\x20mark.add\x20tags:[\x27like\x27]\x20—\x20manual\x20tags\x20stay\x20private\x20in\x20your\x20Resource\x20and\x20never\x20affect\x20the\x20aggregate\x20count.');export const MarkDislikeSchema=z['object']({'op':z['literal']('dislike'),'address':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC\x20REPUTATION\x20VOTE:\x20Dislike\x20an\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20An\x20on-chain\x20reputation\x20vote\x20—\x20toggles\x20off\x20if\x20already\x20disliked,\x20auto-flips\x20an\x20existing\x20like,\x20and\x20increments\x20the\x20target\x27s\x20PUBLIC\x20aggregate\x20dislike\x20count.\x20Same\x20manual-tag\x20caveat\x20as\x20\x27like\x27.');export const MarkFavorSchema=z['object']({'op':z['literal']('favor'),'address':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC\x20REPUTATION\x20VOTE:\x20Favor\x20(bookmark/star)\x20an\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20An\x20on-chain\x20reputation\x20vote\x20—\x20toggles\x20off\x20if\x20already\x20favored,\x20and\x20increments\x20the\x20target\x27s\x20PUBLIC\x20aggregate\x20favor\x20count\x20(independent\x20of\x20like/dislike;\x20queryable\x20via\x20query\x20personal).\x20Use\x20for\x20\x27save\x20this\x20service/provider\x27\x20style\x20endorsements.');export const MarkTransferSchema=z['object']({'op':z['literal']('transfer'),'to':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC:\x20Transfer\x20your\x20on-chain\x20identity\x20mark\x20to\x20another\x20address.');export const MarkReplaceSchema=z['object']({'op':z['literal']('replace'),'new_mark_object':z['string']()['describe']('New\x20personal\x20ID\x20tag\x20object\x20ID.')})['strict']()['describe']('PUBLIC:\x20Replace\x20your\x20on-chain\x20identity\x20mark\x20with\x20a\x20new\x20object.');export const MarkDestroySchema=z['object']({'op':z['literal']('destroy')})['strict']()['describe']('PUBLIC:\x20Destroy\x20your\x20on-chain\x20identity\x20mark\x20permanently.');export const MarkSchema=z['discriminatedUnion']('op',[MarkAddSchema,MarkRemoveSchema,MarkClearSchema,MarkLikeSchema,MarkDislikeSchema,MarkFavorSchema,MarkTransferSchema,MarkReplaceSchema,MarkDestroySchema]);export const CallPersonal_DataSchema=z['object']({'description':DescriptionSchema['optional'](),'referrer':z['union']([z['string'](),AccountOrMark_AddressSchema,z['null']()])['optional']()['describe']('Referrer\x20ID\x20(name\x20or\x20address)\x20for\x20joining\x20the\x20on-chain\x20network.'),'information':InformationSchema['optional']()['describe']('PUBLIC:\x20Personal\x20info\x20on-chain.\x20Safe:\x20social\x20handles,\x20URLs.\x20NEVER:\x20phone,\x20address,\x20private\x20keys.'),'mark':MarkSchema['optional']()['describe']('PUBLIC:\x20On-chain\x20identity\x20mark.\x20For\x20PRIVATE\x20marks,\x20use\x20\x27local\x27\x20tool.')})['strict']();export const CallPersonal_InputSchema=z['object']({'data':CallPersonal_DataSchema,'env':CallEnvSchema['optional']()})['strict']();
1
+ import{z}from'zod';import{AccountOrMark_AddressAISchema,DescriptionSchema,ManyAccountOrMark_AddressAISchema,NameSchema}from'../common/index.js';import{RecordsInEntitySchema}from'../query/index.js';import{CallEnvSchema}from'./base.js';export const InformationAddSchema=z['object']({'op':z['literal']('add'),'data':z['array'](RecordsInEntitySchema)})['strict']()['describe']('PUBLIC:\x20Add\x20personal\x20info\x20on-chain.\x20Safe:\x20social\x20handles,\x20URLs,\x20public\x20email.\x20NEVER:\x20phone,\x20address,\x20private\x20keys.');export const InformationRemoveSchema=z['object']({'op':z['literal']('remove'),'name':z['array'](NameSchema)})['strict']()['describe']('PUBLIC:\x20Remove\x20specified\x20personal\x20info\x20records\x20from\x20your\x20public\x20profile.');export const InformationClearSchema=z['object']({'op':z['literal']('clear')})['strict']()['describe']('PUBLIC:\x20Clear\x20ALL\x20personal\x20info\x20from\x20your\x20public\x20profile.');export const InformationSchema=z['discriminatedUnion']('op',[InformationAddSchema,InformationRemoveSchema,InformationClearSchema]);export const MarkAddSchema=z['object']({'op':z['literal']('add'),'data':z['array'](z['object']({'address':AccountOrMark_AddressAISchema,'name':NameSchema['optional'](),'tags':z['array'](NameSchema)['optional']()})['strict']())})['strict']()['describe']('PUBLIC:\x20Add\x20ID\x20name\x20and\x20tags\x20on-chain\x20for\x20public\x20identity.\x20For\x20private\x20marks,\x20use\x20\x27local\x27\x20tool.');export const MarkRemoveSchema=z['object']({'op':z['literal']('remove'),'data':z['array'](z['object']({'address':AccountOrMark_AddressAISchema,'tags':z['array'](NameSchema)['optional']()})['strict']())})['strict']()['describe']('PUBLIC:\x20Remove\x20specified\x20tags\x20from\x20your\x20on-chain\x20identity\x20mark.');export const MarkClearSchema=z['object']({'op':z['literal']('clear'),'address':ManyAccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC:\x20Clear\x20ALL\x20tags\x20from\x20specified\x20on-chain\x20identity\x20marks.');export const MarkLikeSchema=z['object']({'op':z['literal']('like'),'address':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC\x20REPUTATION\x20VOTE:\x20Like\x20an\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20An\x20on-chain\x20reputation\x20vote\x20—\x20toggles\x20off\x20if\x20already\x20liked,\x20auto-flips\x20an\x20existing\x20dislike,\x20and\x20increments\x20the\x20target\x27s\x20PUBLIC\x20aggregate\x20like\x20count\x20(queryable\x20via\x20query\x20personal\x20/\x20Guard\x20entity_voted_record).\x20Do\x20NOT\x20emulate\x20with\x20mark.add\x20tags:[\x27like\x27]\x20—\x20manual\x20tags\x20stay\x20private\x20in\x20your\x20Resource\x20and\x20never\x20affect\x20the\x20aggregate\x20count.');export const MarkDislikeSchema=z['object']({'op':z['literal']('dislike'),'address':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC\x20REPUTATION\x20VOTE:\x20Dislike\x20an\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20An\x20on-chain\x20reputation\x20vote\x20—\x20toggles\x20off\x20if\x20already\x20disliked,\x20auto-flips\x20an\x20existing\x20like,\x20and\x20increments\x20the\x20target\x27s\x20PUBLIC\x20aggregate\x20dislike\x20count.\x20Same\x20manual-tag\x20caveat\x20as\x20\x27like\x27.');export const MarkFavorSchema=z['object']({'op':z['literal']('favor'),'address':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC\x20REPUTATION\x20VOTE:\x20Favor\x20(bookmark/star)\x20an\x20address\x20(0x...)\x20or\x20LocalMark\x20name.\x20An\x20on-chain\x20reputation\x20vote\x20—\x20toggles\x20off\x20if\x20already\x20favored,\x20and\x20increments\x20the\x20target\x27s\x20PUBLIC\x20aggregate\x20favor\x20count\x20(independent\x20of\x20like/dislike;\x20queryable\x20via\x20query\x20personal).\x20Use\x20for\x20\x27save\x20this\x20service/provider\x27\x20style\x20endorsements.');export const MarkTransferSchema=z['object']({'op':z['literal']('transfer'),'to':AccountOrMark_AddressAISchema})['strict']()['describe']('PUBLIC:\x20Transfer\x20your\x20on-chain\x20identity\x20mark\x20to\x20another\x20address.');export const MarkReplaceSchema=z['object']({'op':z['literal']('replace'),'new_mark_object':z['string']()['describe']('New\x20personal\x20ID\x20tag\x20object\x20ID.')})['strict']()['describe']('PUBLIC:\x20Replace\x20your\x20on-chain\x20identity\x20mark\x20with\x20a\x20new\x20object.');export const MarkDestroySchema=z['object']({'op':z['literal']('destroy')})['strict']()['describe']('PUBLIC:\x20Destroy\x20your\x20on-chain\x20identity\x20mark\x20permanently.');export const MarkSchema=z['discriminatedUnion']('op',[MarkAddSchema,MarkRemoveSchema,MarkClearSchema,MarkLikeSchema,MarkDislikeSchema,MarkFavorSchema,MarkTransferSchema,MarkReplaceSchema,MarkDestroySchema]);export const CallPersonal_DataSchema=z['object']({'description':DescriptionSchema['optional'](),'referrer':z['union']([AccountOrMark_AddressAISchema,z['null']()])['optional']()['describe']('Referrer\x20ID\x20(name\x20or\x20address)\x20for\x20joining\x20the\x20on-chain\x20network.\x20String\x20shorthand\x20accepted\x20—\x20local\x20marks\x20resolved\x20first\x20(F-RQ-11\x20rq2\x20promotion).'),'information':InformationSchema['optional']()['describe']('PUBLIC:\x20Personal\x20info\x20on-chain.\x20Safe:\x20social\x20handles,\x20URLs.\x20NEVER:\x20phone,\x20address,\x20private\x20keys.'),'mark':MarkSchema['optional']()['describe']('PUBLIC:\x20On-chain\x20identity\x20mark.\x20For\x20PRIVATE\x20marks,\x20use\x20\x27local\x27\x20tool.')})['strict']();export const CallPersonal_InputSchema=z['object']({'data':CallPersonal_DataSchema,'env':CallEnvSchema['optional']()})['strict']();
@@ -50,13 +50,19 @@ export declare const CallProgress_DataSchema: z.ZodObject<{
50
50
  progress_namedOperator: z.ZodOptional<z.ZodObject<{
51
51
  op: z.ZodUnion<readonly [z.ZodLiteral<"add">, z.ZodLiteral<"set">, z.ZodLiteral<"remove">]>;
52
52
  name: z.ZodString;
53
- operators: z.ZodObject<{
53
+ operators: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
54
+ entities: {
55
+ name_or_address: string;
56
+ local_mark_first: boolean;
57
+ }[];
58
+ check_all_founded: boolean;
59
+ }, string[]>>, z.ZodObject<{
54
60
  entities: z.ZodArray<z.ZodObject<{
55
61
  name_or_address: z.ZodOptional<z.ZodString>;
56
62
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
57
63
  }, z.core.$strict>>;
58
64
  check_all_founded: z.ZodDefault<z.ZodBoolean>;
59
- }, z.core.$strict>;
65
+ }, z.core.$strict>]>;
60
66
  }, z.core.$strict>>;
61
67
  operate: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
62
68
  operation: z.ZodObject<{
@@ -121,13 +127,19 @@ export declare const CallProgress_InputSchema: z.ZodObject<{
121
127
  progress_namedOperator: z.ZodOptional<z.ZodObject<{
122
128
  op: z.ZodUnion<readonly [z.ZodLiteral<"add">, z.ZodLiteral<"set">, z.ZodLiteral<"remove">]>;
123
129
  name: z.ZodString;
124
- operators: z.ZodObject<{
130
+ operators: z.ZodUnion<readonly [z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
131
+ entities: {
132
+ name_or_address: string;
133
+ local_mark_first: boolean;
134
+ }[];
135
+ check_all_founded: boolean;
136
+ }, string[]>>, z.ZodObject<{
125
137
  entities: z.ZodArray<z.ZodObject<{
126
138
  name_or_address: z.ZodOptional<z.ZodString>;
127
139
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
128
140
  }, z.core.$strict>>;
129
141
  check_all_founded: z.ZodDefault<z.ZodBoolean>;
130
- }, z.core.$strict>;
142
+ }, z.core.$strict>]>;
131
143
  }, z.core.$strict>>;
132
144
  operate: z.ZodOptional<z.ZodPreprocess<z.ZodObject<{
133
145
  operation: z.ZodObject<{
@@ -38,10 +38,13 @@ export declare const CallReward_DataSchema: z.ZodObject<{
38
38
  recipient: z.ZodUnion<readonly [z.ZodObject<{
39
39
  GuardIdentifier: z.ZodNumber;
40
40
  }, z.core.$strip>, z.ZodObject<{
41
- Entity: z.ZodObject<{
41
+ Entity: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
42
+ name_or_address: string;
43
+ local_mark_first: boolean;
44
+ }, string>>, z.ZodObject<{
42
45
  name_or_address: z.ZodOptional<z.ZodString>;
43
46
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
44
- }, z.core.$strict>;
47
+ }, z.core.$strict>]>;
45
48
  }, z.core.$strip>, z.ZodObject<{
46
49
  Signer: z.ZodLiteral<"signer">;
47
50
  }, z.core.$strip>]>;
@@ -132,10 +135,13 @@ export declare const CallReward_InputSchema: z.ZodObject<{
132
135
  recipient: z.ZodUnion<readonly [z.ZodObject<{
133
136
  GuardIdentifier: z.ZodNumber;
134
137
  }, z.core.$strip>, z.ZodObject<{
135
- Entity: z.ZodObject<{
138
+ Entity: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
139
+ name_or_address: string;
140
+ local_mark_first: boolean;
141
+ }, string>>, z.ZodObject<{
136
142
  name_or_address: z.ZodOptional<z.ZodString>;
137
143
  local_mark_first: z.ZodOptional<z.ZodBoolean>;
138
- }, z.core.$strict>;
144
+ }, z.core.$strict>]>;
139
145
  }, z.core.$strip>, z.ZodObject<{
140
146
  Signer: z.ZodLiteral<"signer">;
141
147
  }, z.core.$strip>]>;
@@ -1 +1 @@
1
- import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].\x20OPTIONAL\x20EVIDENCE\x20BINDING\x20(ksk9d2-tn-261026\x20F-01):\x20an\x20entry\x20may\x20carry\x20evidence\x20{repo,\x20key,\x20predicate}\x20—\x20a\x20claim-time\x20attestation\x20pin\x20that\x20counts\x20ONLY\x20repository\x20rows\x20tied\x20to\x20THIS\x20claim\x27s\x20own\x20store_from\x20value\x20(the\x20submitted\x20order),\x20so\x20borrowed/foreign\x20rows\x20never\x20satisfy\x20the\x20bounty;\x20it\x20requires\x20store_from_id\x20on\x20the\x20same\x20guard\x20(a\x20missing\x20pin\x20aborts\x2016\x20at\x20build\x20time)\x20and\x20a\x20claim\x20whose\x20order\x20has\x20no\x20matching\x20attestation\x20row\x20aborts\x2015.'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
1
+ import{z}from'zod';import{TypedPermissionObjectSchema,CoinParamSchema,CallEnvSchema,SubmissionCallSchema}from'./base.js';import{RewardGuardSchema,PaymentInfoSchema}from'../query/index.js';import{ReceivedObjectsOrRecentlySchema,ReceivedBalanceOrRecentlySchema,NameOrAddressSchema,DescriptionSchema,RECEIVE_FORMAT_BLOCK_OBJECTS,RECEIVE_FORMAT_BLOCK_BALANCE}from'../common/index.js';export const CallReward_DataSchema=z['object']({'object':TypedPermissionObjectSchema,'claim':NameOrAddressSchema['optional']()['describe']('GUARD\x20object\x20name/address\x20whose\x20verification\x20starts\x20the\x20reward\x20distribution\x20—\x20this\x20is\x20the\x20GUARD,\x20NEVER\x20the\x20order\x20(KLM-FIND-08,\x20klook-mn\x20261019:\x20passing\x20the\x20order\x20here\x20aborts).\x20The\x20ORDER\x20reference\x20rides\x20submission\x20slot\x200\x20—\x20pass\x20it\x20via\x20the\x20call\x27s\x20\x27submission\x27,\x20not\x20in\x20this\x20field.\x20WINDOW\x20LIFECYCLE\x20(rqd3-tn-261030\x20F-02):\x20the\x20guard\x27s\x20pass\x20condition\x20must\x20cover\x20EVERY\x20terminal\x20state\x20that\x20may\x20legitimately\x20hold\x20at\x20claim\x20time.\x20A\x20completed-only\x20window\x20(root\x20=\x20query\x20order\x20status\x20==\x20completed)\x20is\x20CLOSED\x20FOREVER\x20the\x20moment\x20the\x20Machine\x20settles\x20—\x20settlement\x20overwrites\x20the\x20order\x20status,\x20the\x20guard\x20can\x20never\x20pass\x20again,\x20and\x20the\x20bounty\x20is\x20stranded\x20(claim\x20path\x20aborts\x20with\x20E_GUARD_NOT_FOUND\x20—\x20the\x20payout\x20lookup\x20finds\x20no\x20payable\x20row,\x20abort\x207).\x20Design\x20the\x20claim\x20guard\x20against\x20the\x20full\x20terminal\x20set\x20(e.g.\x20completed\x20OR\x20settled\x20OR\x20refunded,\x20per\x20the\x20payout\x20rail),\x20and\x20if\x20a\x20bound\x20window\x20is\x20already\x20closed,\x20migration\x20=\x20new\x20guard\x20with\x20the\x20corrected\x20root\x20+\x20reward.guard_remove\x20+\x20reward.guard_add\x20(guards\x20are\x20immutable\x20—\x20there\x20is\x20no\x20in-place\x20edit).'),'description':DescriptionSchema['optional'](),'coin_add':CoinParamSchema['optional']()['describe']('Add\x20amount\x20to\x20Reward\x20object.'),'receive':ReceivedBalanceOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20received\x20by\x20Reward\x20object\x20and\x20store\x20them\x20in\x20pending\x20balance.'+RECEIVE_FORMAT_BLOCK_BALANCE),'guard_add':z['array'](RewardGuardSchema)['optional']()['describe']('Add\x20Guard\x20to\x20Reward\x20object.\x20IDIOMS\x20(F08\x20—\x20these\x20differ\x20from\x20Service\x20allocation,\x20follow\x20THIS\x20shape\x20here):\x20recipient\x20is\x20ONE\x20OF\x20{GuardIdentifier:\x20<u8>}\x20|\x20{Entity:\x20{name_or_address:\x20\x27mark\x27}}\x20|\x20{Signer:\x20\x27signer\x27}\x20(string\x20const\x20INSIDE\x20the\x20key,\x20NOT\x20a\x20bare\x20string)\x20—\x20BUT\x20on\x20the\x20REWARD\x20claim\x20rail\x20the\x20recipient\x20MUST\x20equal\x20the\x20transaction\x20sender\x20(chain\x20assert,\x20abort\x2014),\x20so\x20{Signer:\x20\x27signer\x27}\x20is\x20the\x20canonical\x20form\x20and\x20{Entity}\x20also\x20passes\x20(SDK\x20replaces\x20it\x20with\x20the\x20claimant\x27s\x20account\x20at\x20claim\x20time);\x20a\x20{GuardIdentifier}\x20recipient\x20resolves\x20to\x20the\x20submitted\x20Order\x20and\x20is\x20STRUCTURALLY\x20UNPAYABLE\x20(every\x20claim\x20aborts\x2014)\x20—\x20the\x20tool\x20gate\x20rejects\x20it\x20(crs-mn-261015\x20F-12).\x20amount\x20is\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}\x20—\x20value\x20accepts\x20a\x20display\x20string\x20with\x20token\x20symbol\x20(\x270.1WOW\x27)\x20or\x20a\x20smallest-unit\x20integer\x20(\x27100000000\x27),\x20NOT\x20the\x20plain\x20balance\x20string\x20used\x20by\x20allocation\x20`sharing`.\x20FULL\x20EXAMPLE:\x20[{guard:\x20\x270xabc...\x27,\x20recipient:\x20{Signer:\x20\x27signer\x27},\x20amount:\x20{type:\x20\x27Fixed\x27,\x20value:\x20\x270.1WOW\x27}}].\x20OPTIONAL\x20EVIDENCE\x20BINDING\x20(ksk9d2-tn-261026\x20F-01):\x20an\x20entry\x20may\x20carry\x20evidence\x20{repo,\x20key,\x20predicate}\x20—\x20a\x20claim-time\x20attestation\x20pin\x20that\x20counts\x20ONLY\x20repository\x20rows\x20tied\x20to\x20THIS\x20claim\x27s\x20own\x20store_from\x20value\x20(the\x20submitted\x20order),\x20so\x20borrowed/foreign\x20rows\x20never\x20satisfy\x20the\x20bounty;\x20it\x20requires\x20store_from_id\x20on\x20the\x20same\x20guard\x20(a\x20missing\x20pin\x20aborts\x2016\x20at\x20build\x20time)\x20and\x20a\x20claim\x20whose\x20order\x20has\x20no\x20matching\x20attestation\x20row\x20aborts\x2015.'),'guard_remove':z['string']()['optional']()['describe']('Unified\x20guard\x20removal\x20—\x20one\x20entry,\x20two\x20intents:\x20pass\x20the\x20literal\x20\x27expired\x27\x20to\x20sweep\x20ALL\x20expired\x20guards,\x20or\x20pass\x20a\x20Guard\x20object\x20ID\x20to\x20remove\x20that\x20specific\x20mounted\x20guard\x20(works\x20on\x20non-expiring\x20guards\x20too,\x20F-57).\x20Constraints:\x20while\x20the\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future\x20removal\x20is\x20blocked\x20(same\x20public-commitment\x20lock\x20as\x20guard_add,\x20abort\x2010);\x20removing\x20a\x20not-mounted\x20ID\x20aborts\x207;\x20consumed\x20claim\x20once-slots\x20survive\x20remove+re-add,\x20so\x20removal\x20can\x20never\x20re-arm\x20an\x20already-drained\x20bounty.'),'guard_expiration_time':z['union']([z['number']()['int']()['min'](0x1),z['null']()])['optional']()['describe']('Add\x20expiration\x20time(ms).\x20Before\x20this\x20time\x20expires,\x20new\x20Guard\x20and\x20fund\x20allocation\x20rules\x20cannot\x20be\x20added.'),'owner_receive':ReceivedObjectsOrRecentlySchema['optional']()['describe']('Unwrap\x20CoinWrapper\x20objects\x20and\x20other\x20objects\x20received\x20by\x20this\x20Reward\x20object\x20and\x20send\x20them\x20to\x20the\x20owner\x20of\x20its\x20Permission\x20object.'+RECEIVE_FORMAT_BLOCK_OBJECTS),'um':z['union']([NameOrAddressSchema,z['null']()])['optional']()['describe']('Contact\x20object\x20ID\x20or\x20name.'),'withdraw':z['object']({'amount':z['union']([z['number']()['int']()['min'](0x0),z['string']()])['describe']('Amount\x20to\x20withdraw\x20(SMALLEST\x20token\x20units,\x20e.g.\x20\x27100000000\x27).'),'payment_info':PaymentInfoSchema['describe']('Payment\x20receipt\x20metadata\x20(remark/index).\x20The\x20withdrawn\x20funds\x20leave\x20the\x20Reward\x20balance\x20inside\x20a\x20Payment\x20object\x20—\x20the\x20on-chain\x20auditable\x20receipt.'),'unwrap':z['boolean']()['optional']()['describe']('Auto-unwrap:\x20when\x20true,\x20the\x20coin\x20is\x20paid\x20straight\x20to\x20the\x20transaction\x20sender\x20in\x20the\x20SAME\x20transaction\x20(single-PTB\x20flow).\x20When\x20false\x20or\x20omitted\x20(default),\x20a\x20CoinWrapper\x20is\x20delivered\x20to\x20the\x20sender\x27s\x20wallet\x20for\x20later\x20unwrapping\x20via\x20the\x20payment\x20call\x20with\x20receive:true.\x20Both\x20modes\x20keep\x20the\x20Payment\x20object\x20as\x20the\x20on-chain\x20receipt.')})['optional']()['describe']('Permission-gated\x20balance\x20exit\x20(the\x20ONLY\x20non-claim\x20exit\x20from\x20the\x20Reward\x20balance):\x20withdraws\x20this\x20amount\x20from\x20the\x20Reward\x20balance\x20and\x20delivers\x20it\x20to\x20the\x20transaction\x20sender\x20inside\x20a\x20Payment\x20object\x20(the\x20on-chain\x20auditable\x20receipt,\x20keyed\x20by\x20the\x20RewardWithdrawEvent).\x20The\x20executing\x20account\x20needs\x20the\x20withdraw\x20right\x20(permission\x20index\x20158)\x20on\x20the\x20Reward\x27s\x20Permission\x20object.\x20Fails\x20on-chain\x20when\x20the\x20balance\x20is\x20insufficient\x20or\x20while\x20the\x20declared\x20no-guard\x20window\x20(guard_expiration_time)\x20is\x20still\x20in\x20the\x20future;\x20claim\x20replay\x20protection\x20is\x20unaffected.\x20Use\x20it\x20to\x20recover\x20mismatched\x20or\x20overfunded\x20pools.')})['strict']()['describe']('On-chain\x20Reward\x20operations.\x20USAGE:\x20(1)\x20CREATE\x20NEW:\x20Set\x20\x27object\x27\x20field\x20with\x20OBJECT\x20format\x20{name,\x20type_parameter,\x20permission,\x20...}\x20to\x20create\x20a\x20Reward.\x20NOTE:\x20\x27name\x27\x20goes\x20INSIDE\x20\x27object\x27,\x20NOT\x20at\x20the\x20data\x20root\x20level.\x27permission\x27\x20can\x20be\x20a\x20new\x20Permission\x20object\x20or\x20reference\x20an\x20existing\x20one\x20-\x20check\x20\x27object\x27\x20field\x20description\x20for\x20details.\x20(2)\x20OPERATE\x20EXISTING:\x20Set\x20\x27object\x27\x20field\x20with\x20STRING\x20format\x20(object\x20ID\x20or\x20name).\x20The\x20\x27object\x27\x20field\x20is\x20CRITICAL\x20and\x20REQUIRED\x20in\x20both\x20cases.\x20STRING\x20for\x20existing,\x20OBJECT\x20for\x20new\x20creation.\x20NAME\x20RESOLUTION\x20SCOPE\x20(T8\x20az3-mn-261013):\x20a\x20LocalMark\x20name\x20resolves\x20ONLY\x20within\x20the\x20SIGNING\x20account\x27s\x20own\x20local\x20mark\x20store\x20—\x20when\x20the\x20Reward\x20was\x20named\x20by\x20a\x20DIFFERENT\x20account\x20(e.g.\x20the\x20merchant\x27s\x20mark)\x20and\x20you\x20operate\x20it\x20from\x20another\x20account,\x20the\x20name\x20lookup\x20fails\x20with\x20\x27not\x20found\x20locally\x27;\x20pass\x20the\x20on-chain\x200x\x20object\x20ID\x20instead\x20(resolve\x20it\x20once\x20via\x20workspace/onchain_objects\x20and\x20reuse\x20the\x20id).');export const CallReward_InputSchema=z['object']({'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']();
@@ -12,6 +12,7 @@ export interface SemanticContext {
12
12
  failed_at: string;
13
13
  verify_events_since: string;
14
14
  digests: string[];
15
+ idempotency_key?: string;
15
16
  };
16
17
  pre_warnings?: string[];
17
18
  schema_check?: import("../schema-version.js").SchemaCheckResult;