@wowok/agent-mcp 2.4.3 → 2.5.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 (317) hide show
  1. package/dist/config/runtime.d.ts +4 -0
  2. package/dist/config/runtime.js +29 -5
  3. package/dist/harness/auto-escalation.d.ts +27 -0
  4. package/dist/harness/auto-escalation.js +68 -0
  5. package/dist/index.js +21 -0
  6. package/dist/knowledge/allocation-confirm.d.ts +115 -0
  7. package/dist/knowledge/allocation-confirm.js +534 -0
  8. package/dist/knowledge/allocation-context.d.ts +58 -0
  9. package/dist/knowledge/allocation-context.js +249 -0
  10. package/dist/knowledge/allocation-ledger.d.ts +67 -0
  11. package/dist/knowledge/allocation-ledger.js +463 -0
  12. package/dist/knowledge/allocation-puzzle.d.ts +135 -0
  13. package/dist/knowledge/allocation-puzzle.js +298 -0
  14. package/dist/knowledge/allocation-risk.d.ts +78 -0
  15. package/dist/knowledge/allocation-risk.js +568 -0
  16. package/dist/knowledge/allocation-templates.d.ts +38 -0
  17. package/dist/knowledge/allocation-templates.js +970 -0
  18. package/dist/knowledge/allocation-translation.d.ts +72 -0
  19. package/dist/knowledge/allocation-translation.js +585 -0
  20. package/dist/knowledge/arb-risk.d.ts +37 -0
  21. package/dist/knowledge/arb-risk.js +210 -0
  22. package/dist/knowledge/arbitration-confirm.d.ts +135 -0
  23. package/dist/knowledge/arbitration-confirm.js +559 -0
  24. package/dist/knowledge/arbitration-context.d.ts +81 -0
  25. package/dist/knowledge/arbitration-context.js +505 -0
  26. package/dist/knowledge/arbitration-ledger.d.ts +62 -0
  27. package/dist/knowledge/arbitration-ledger.js +521 -0
  28. package/dist/knowledge/arbitration-puzzle.d.ts +84 -0
  29. package/dist/knowledge/arbitration-puzzle.js +304 -0
  30. package/dist/knowledge/arbitration-risk.d.ts +112 -0
  31. package/dist/knowledge/arbitration-risk.js +433 -0
  32. package/dist/knowledge/arbitration-templates.d.ts +38 -0
  33. package/dist/knowledge/arbitration-templates.js +276 -0
  34. package/dist/knowledge/arbitration-translation.d.ts +91 -0
  35. package/dist/knowledge/arbitration-translation.js +487 -0
  36. package/dist/knowledge/bridge-risk.d.ts +36 -0
  37. package/dist/knowledge/bridge-risk.js +263 -0
  38. package/dist/knowledge/contact-risk.d.ts +32 -0
  39. package/dist/knowledge/contact-risk.js +200 -0
  40. package/dist/knowledge/demand-confirm.d.ts +32 -0
  41. package/dist/knowledge/demand-confirm.js +206 -0
  42. package/dist/knowledge/demand-risk.d.ts +30 -0
  43. package/dist/knowledge/demand-risk.js +240 -0
  44. package/dist/knowledge/demand-translation.d.ts +55 -0
  45. package/dist/knowledge/demand-translation.js +354 -0
  46. package/dist/knowledge/deployment-scanner.d.ts +63 -0
  47. package/dist/knowledge/deployment-scanner.js +762 -0
  48. package/dist/knowledge/examples-scanner-cli.d.ts +1 -0
  49. package/dist/knowledge/examples-scanner-cli.js +26 -0
  50. package/dist/knowledge/examples-scanner.d.ts +121 -0
  51. package/dist/knowledge/examples-scanner.js +825 -0
  52. package/dist/knowledge/flywheel-loop.d.ts +3 -0
  53. package/dist/knowledge/flywheel-loop.js +32 -3
  54. package/dist/knowledge/glossary.js +3 -1
  55. package/dist/knowledge/guard-confirm.d.ts +86 -0
  56. package/dist/knowledge/guard-confirm.js +406 -0
  57. package/dist/knowledge/guard-context.d.ts +56 -0
  58. package/dist/knowledge/guard-context.js +287 -0
  59. package/dist/knowledge/guard-design-patterns.d.ts +37 -0
  60. package/dist/knowledge/guard-design-patterns.js +257 -0
  61. package/dist/knowledge/guard-puzzle.js +3 -2
  62. package/dist/knowledge/guard-risk.d.ts +1 -1
  63. package/dist/knowledge/guard-risk.js +12 -14
  64. package/dist/knowledge/guard-templates.js +1 -1
  65. package/dist/knowledge/guard-translation.js +6 -5
  66. package/dist/knowledge/index.d.ts +342 -0
  67. package/dist/knowledge/index.js +344 -0
  68. package/dist/knowledge/machine-confirm.d.ts +102 -0
  69. package/dist/knowledge/machine-confirm.js +559 -0
  70. package/dist/knowledge/machine-context.d.ts +160 -0
  71. package/dist/knowledge/machine-context.js +812 -0
  72. package/dist/knowledge/machine-ledger.d.ts +41 -0
  73. package/dist/knowledge/machine-ledger.js +315 -0
  74. package/dist/knowledge/machine-puzzle.d.ts +206 -0
  75. package/dist/knowledge/machine-puzzle.js +494 -0
  76. package/dist/knowledge/machine-risk.d.ts +75 -0
  77. package/dist/knowledge/machine-risk.js +644 -0
  78. package/dist/knowledge/machine-templates.d.ts +92 -0
  79. package/dist/knowledge/machine-templates.js +1592 -0
  80. package/dist/knowledge/machine-topology.d.ts +57 -0
  81. package/dist/knowledge/machine-topology.js +234 -0
  82. package/dist/knowledge/machine-translation.d.ts +96 -0
  83. package/dist/knowledge/machine-translation.js +513 -0
  84. package/dist/knowledge/mcp-schema-audit-cli.d.ts +1 -0
  85. package/dist/knowledge/mcp-schema-audit-cli.js +45 -0
  86. package/dist/knowledge/mcp-schema-audit.d.ts +90 -0
  87. package/dist/knowledge/mcp-schema-audit.js +772 -0
  88. package/dist/knowledge/onchain-constants.d.ts +4 -0
  89. package/dist/knowledge/onchain-constants.js +35 -0
  90. package/dist/knowledge/order-confirm.d.ts +115 -0
  91. package/dist/knowledge/order-confirm.js +573 -0
  92. package/dist/knowledge/order-context.d.ts +66 -0
  93. package/dist/knowledge/order-context.js +390 -0
  94. package/dist/knowledge/order-ledger.d.ts +69 -0
  95. package/dist/knowledge/order-ledger.js +341 -0
  96. package/dist/knowledge/order-puzzle.d.ts +159 -0
  97. package/dist/knowledge/order-puzzle.js +255 -0
  98. package/dist/knowledge/order-risk.d.ts +66 -0
  99. package/dist/knowledge/order-risk.js +653 -0
  100. package/dist/knowledge/order-templates.d.ts +50 -0
  101. package/dist/knowledge/order-templates.js +368 -0
  102. package/dist/knowledge/order-translation.d.ts +78 -0
  103. package/dist/knowledge/order-translation.js +550 -0
  104. package/dist/knowledge/passport-confirm.d.ts +130 -0
  105. package/dist/knowledge/passport-confirm.js +531 -0
  106. package/dist/knowledge/passport-context.d.ts +59 -0
  107. package/dist/knowledge/passport-context.js +306 -0
  108. package/dist/knowledge/passport-ledger.d.ts +48 -0
  109. package/dist/knowledge/passport-ledger.js +282 -0
  110. package/dist/knowledge/passport-puzzle.d.ts +108 -0
  111. package/dist/knowledge/passport-puzzle.js +333 -0
  112. package/dist/knowledge/passport-risk.d.ts +70 -0
  113. package/dist/knowledge/passport-risk.js +450 -0
  114. package/dist/knowledge/passport-templates.d.ts +40 -0
  115. package/dist/knowledge/passport-templates.js +568 -0
  116. package/dist/knowledge/passport-translation.d.ts +68 -0
  117. package/dist/knowledge/passport-translation.js +516 -0
  118. package/dist/knowledge/payment-risk.d.ts +33 -0
  119. package/dist/knowledge/payment-risk.js +182 -0
  120. package/dist/knowledge/permission-confirm.d.ts +110 -0
  121. package/dist/knowledge/permission-confirm.js +426 -0
  122. package/dist/knowledge/permission-context.d.ts +58 -0
  123. package/dist/knowledge/permission-context.js +224 -0
  124. package/dist/knowledge/permission-ledger.d.ts +38 -0
  125. package/dist/knowledge/permission-ledger.js +403 -0
  126. package/dist/knowledge/permission-puzzle.d.ts +122 -0
  127. package/dist/knowledge/permission-puzzle.js +173 -0
  128. package/dist/knowledge/permission-risk.d.ts +76 -0
  129. package/dist/knowledge/permission-risk.js +411 -0
  130. package/dist/knowledge/permission-templates.d.ts +38 -0
  131. package/dist/knowledge/permission-templates.js +234 -0
  132. package/dist/knowledge/permission-translation.d.ts +57 -0
  133. package/dist/knowledge/permission-translation.js +350 -0
  134. package/dist/knowledge/personal-risk.d.ts +36 -0
  135. package/dist/knowledge/personal-risk.js +212 -0
  136. package/dist/knowledge/progress-confirm.d.ts +108 -0
  137. package/dist/knowledge/progress-confirm.js +456 -0
  138. package/dist/knowledge/progress-context.d.ts +123 -0
  139. package/dist/knowledge/progress-context.js +452 -0
  140. package/dist/knowledge/progress-ledger.d.ts +63 -0
  141. package/dist/knowledge/progress-ledger.js +327 -0
  142. package/dist/knowledge/progress-puzzle.d.ts +82 -0
  143. package/dist/knowledge/progress-puzzle.js +219 -0
  144. package/dist/knowledge/progress-risk.d.ts +74 -0
  145. package/dist/knowledge/progress-risk.js +461 -0
  146. package/dist/knowledge/progress-templates.d.ts +38 -0
  147. package/dist/knowledge/progress-templates.js +228 -0
  148. package/dist/knowledge/progress-translation.d.ts +52 -0
  149. package/dist/knowledge/progress-translation.js +401 -0
  150. package/dist/knowledge/proof-confirm.d.ts +31 -0
  151. package/dist/knowledge/proof-confirm.js +187 -0
  152. package/dist/knowledge/proof-risk.d.ts +33 -0
  153. package/dist/knowledge/proof-risk.js +207 -0
  154. package/dist/knowledge/proof-translation.d.ts +52 -0
  155. package/dist/knowledge/proof-translation.js +283 -0
  156. package/dist/knowledge/registrar-risk.d.ts +34 -0
  157. package/dist/knowledge/registrar-risk.js +217 -0
  158. package/dist/knowledge/repository-confirm.d.ts +36 -0
  159. package/dist/knowledge/repository-confirm.js +242 -0
  160. package/dist/knowledge/repository-risk.d.ts +40 -0
  161. package/dist/knowledge/repository-risk.js +312 -0
  162. package/dist/knowledge/repository-translation.d.ts +58 -0
  163. package/dist/knowledge/repository-translation.js +422 -0
  164. package/dist/knowledge/resource-risk.d.ts +32 -0
  165. package/dist/knowledge/resource-risk.js +157 -0
  166. package/dist/knowledge/reward-confirm.d.ts +113 -0
  167. package/dist/knowledge/reward-confirm.js +496 -0
  168. package/dist/knowledge/reward-context.d.ts +127 -0
  169. package/dist/knowledge/reward-context.js +504 -0
  170. package/dist/knowledge/reward-ledger.d.ts +96 -0
  171. package/dist/knowledge/reward-ledger.js +502 -0
  172. package/dist/knowledge/reward-puzzle.d.ts +97 -0
  173. package/dist/knowledge/reward-puzzle.js +288 -0
  174. package/dist/knowledge/reward-risk.d.ts +84 -0
  175. package/dist/knowledge/reward-risk.js +545 -0
  176. package/dist/knowledge/reward-translation.d.ts +58 -0
  177. package/dist/knowledge/reward-translation.js +501 -0
  178. package/dist/knowledge/safety-rules.js +11 -3
  179. package/dist/knowledge/scenario-modes.d.ts +53 -0
  180. package/dist/knowledge/scenario-modes.js +302 -0
  181. package/dist/knowledge/service-confirm.d.ts +152 -0
  182. package/dist/knowledge/service-confirm.js +699 -0
  183. package/dist/knowledge/service-context.d.ts +66 -0
  184. package/dist/knowledge/service-context.js +403 -0
  185. package/dist/knowledge/service-ledger.d.ts +71 -0
  186. package/dist/knowledge/service-ledger.js +609 -0
  187. package/dist/knowledge/service-puzzle.d.ts +158 -0
  188. package/dist/knowledge/service-puzzle.js +236 -0
  189. package/dist/knowledge/service-risk.d.ts +108 -0
  190. package/dist/knowledge/service-risk.js +615 -0
  191. package/dist/knowledge/service-templates.d.ts +39 -0
  192. package/dist/knowledge/service-templates.js +418 -0
  193. package/dist/knowledge/service-translation.d.ts +103 -0
  194. package/dist/knowledge/service-translation.js +622 -0
  195. package/dist/knowledge/tools-reference.d.ts +17 -0
  196. package/dist/knowledge/tools-reference.js +151 -0
  197. package/dist/knowledge/treasury-confirm.d.ts +133 -0
  198. package/dist/knowledge/treasury-confirm.js +512 -0
  199. package/dist/knowledge/treasury-context.d.ts +64 -0
  200. package/dist/knowledge/treasury-context.js +363 -0
  201. package/dist/knowledge/treasury-ledger.d.ts +42 -0
  202. package/dist/knowledge/treasury-ledger.js +300 -0
  203. package/dist/knowledge/treasury-puzzle.d.ts +163 -0
  204. package/dist/knowledge/treasury-puzzle.js +216 -0
  205. package/dist/knowledge/treasury-risk.d.ts +86 -0
  206. package/dist/knowledge/treasury-risk.js +440 -0
  207. package/dist/knowledge/treasury-templates.d.ts +38 -0
  208. package/dist/knowledge/treasury-templates.js +316 -0
  209. package/dist/knowledge/treasury-translation.d.ts +78 -0
  210. package/dist/knowledge/treasury-translation.js +498 -0
  211. package/dist/knowledge/util-risk.d.ts +30 -0
  212. package/dist/knowledge/util-risk.js +135 -0
  213. package/dist/project/business-puzzle.d.ts +47 -0
  214. package/dist/project/business-puzzle.js +372 -0
  215. package/dist/project/deployment-doc.d.ts +61 -0
  216. package/dist/project/deployment-doc.js +432 -0
  217. package/dist/project/risk-aggregator.d.ts +50 -0
  218. package/dist/project/risk-aggregator.js +280 -0
  219. package/dist/project/substep-trace.d.ts +130 -0
  220. package/dist/project/substep-trace.js +332 -0
  221. package/dist/schema/call/allocation.d.ts +34 -34
  222. package/dist/schema/call/arbitration.d.ts +141 -141
  223. package/dist/schema/call/base.d.ts +386 -386
  224. package/dist/schema/call/base.js +3 -3
  225. package/dist/schema/call/bridge-handler.d.ts +5 -2
  226. package/dist/schema/call/bridge.d.ts +159 -159
  227. package/dist/schema/call/contact.d.ts +110 -110
  228. package/dist/schema/call/demand.d.ts +76 -76
  229. package/dist/schema/call/handler.d.ts +2 -3
  230. package/dist/schema/call/handler.js +1 -1
  231. package/dist/schema/call/machine.d.ts +58 -58
  232. package/dist/schema/call/order.d.ts +98 -110
  233. package/dist/schema/call/permission-handler.d.ts +5 -0
  234. package/dist/schema/call/permission-handler.js +54 -0
  235. package/dist/schema/call/permission.d.ts +108 -108
  236. package/dist/schema/call/personal.d.ts +14 -14
  237. package/dist/schema/call/progress.d.ts +57 -72
  238. package/dist/schema/call/progress.js +7 -4
  239. package/dist/schema/call/proof.d.ts +18 -18
  240. package/dist/schema/call/proof.js +12 -7
  241. package/dist/schema/call/repository.d.ts +154 -154
  242. package/dist/schema/call/reward.d.ts +55 -55
  243. package/dist/schema/call/service.d.ts +231 -231
  244. package/dist/schema/call/treasury.d.ts +93 -93
  245. package/dist/schema/config/index.d.ts +178 -5
  246. package/dist/schema/config/index.js +52 -1
  247. package/dist/schema/local/index.d.ts +3554 -836
  248. package/dist/schema/local/index.js +2 -1
  249. package/dist/schema/messenger/index.d.ts +162 -162
  250. package/dist/schema/operations.d.ts +1058 -1074
  251. package/dist/schema/operations.js +7 -1
  252. package/dist/schema/project/index.d.ts +1412 -6
  253. package/dist/schema/project/index.js +441 -3
  254. package/dist/schema/query/index.d.ts +672 -672
  255. package/dist/schema/schema-query/index.d.ts +23 -3
  256. package/dist/schema/schema-query/index.js +13 -2
  257. package/dist/schema/sync-layer4.d.ts +21 -0
  258. package/dist/schema/sync-layer4.js +261 -0
  259. package/dist/schema/trust/index.d.ts +26 -26
  260. package/dist/schemas/account_operation.output.json +718 -0
  261. package/dist/schemas/config_operation.output.json +173 -0
  262. package/dist/schemas/index.json +9 -1
  263. package/dist/schemas/local_info_operation.output.json +718 -0
  264. package/dist/schemas/local_mark_operation.output.json +718 -0
  265. package/dist/schemas/onchain_operations.output.json +3 -2
  266. package/dist/schemas/onchain_operations.schema.json +1809 -336
  267. package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
  268. package/dist/schemas/onchain_operations_arbitration.schema.json +2 -1
  269. package/dist/schemas/onchain_operations_contact.schema.json +2 -1
  270. package/dist/schemas/onchain_operations_demand.schema.json +2 -1
  271. package/dist/schemas/onchain_operations_gen_passport.schema.json +878 -872
  272. package/dist/schemas/onchain_operations_gen_proof.schema.json +273 -0
  273. package/dist/schemas/onchain_operations_guard.schema.json +578 -579
  274. package/dist/schemas/onchain_operations_machine.schema.json +2 -1
  275. package/dist/schemas/onchain_operations_order.schema.json +13 -9
  276. package/dist/schemas/onchain_operations_payment.schema.json +0 -514
  277. package/dist/schemas/onchain_operations_permission.schema.json +0 -514
  278. package/dist/schemas/onchain_operations_personal.schema.json +0 -514
  279. package/dist/schemas/onchain_operations_progress.schema.json +14 -10
  280. package/dist/schemas/onchain_operations_proof.schema.json +699 -0
  281. package/dist/schemas/onchain_operations_repository.schema.json +2 -1
  282. package/dist/schemas/onchain_operations_reward.schema.json +2 -1
  283. package/dist/schemas/onchain_operations_service.schema.json +2 -1
  284. package/dist/schemas/onchain_operations_treasury.schema.json +2 -1
  285. package/dist/schemas/onchain_table_data.schema.json +32 -1
  286. package/dist/schemas/project_operation.output.json +918 -0
  287. package/dist/schemas/project_operation.schema.json +474 -3
  288. package/dist/schemas/query_toolkit.output.json +14906 -6
  289. package/dist/schemas/schema_query.output.json +38 -1
  290. package/dist/telemetry/index.d.ts +1 -1
  291. package/dist/tools/handlers/config.d.ts +1 -1
  292. package/dist/tools/handlers/config.js +21 -18
  293. package/dist/tools/handlers/file-export.d.ts +2 -2
  294. package/dist/tools/handlers/local.d.ts +3 -30
  295. package/dist/tools/handlers/local.js +14 -3
  296. package/dist/tools/handlers/messenger.d.ts +1 -1
  297. package/dist/tools/handlers/messenger.js +2 -1
  298. package/dist/tools/handlers/onchain.d.ts +1 -1
  299. package/dist/tools/handlers/onchain.js +24 -22
  300. package/dist/tools/handlers/project.d.ts +1 -1
  301. package/dist/tools/handlers/project.js +262 -18
  302. package/dist/tools/handlers/query.d.ts +4 -4
  303. package/dist/tools/handlers/schema-query.d.ts +1 -1
  304. package/dist/tools/handlers/schema-query.js +21 -20
  305. package/dist/tools/handlers/trust.d.ts +1 -1
  306. package/dist/tools/handlers/trust.js +2 -2
  307. package/dist/tools/handlers/wip.d.ts +1 -1
  308. package/dist/tools/handlers/wip.js +1 -1
  309. package/dist/tools/index.d.ts +1 -1
  310. package/dist/tools/index.js +96 -25
  311. package/dist/tools/rules-hook.d.ts +1 -1
  312. package/dist/tools/rules-hook.js +3 -2
  313. package/dist/tools/shared.d.ts +13 -22
  314. package/dist/tools/types.d.ts +5 -5
  315. package/dist/tools/wrap.d.ts +10 -2
  316. package/dist/tools/wrap.js +212 -0
  317. package/package.json +3 -3
@@ -892,7 +892,8 @@
892
892
  ],
893
893
  "additionalProperties": false
894
894
  },
895
- "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
895
+ "maxItems": 20,
896
+ "description": "Array of Guard objects to verify. Constraint: at most 20 entries (MAX_GUARD_COUNT_PASSPORT). Relation: each entry corresponds to a Guard bound to the operation."
896
897
  },
897
898
  "submission": {
898
899
  "type": "array",
@@ -98,13 +98,15 @@
98
98
  "additionalProperties": false,
99
99
  "description": "Specify a specific operation between current node and next node."
100
100
  },
101
- "hold": {
102
- "type": "boolean",
103
- "description": "Whether to lock operation permission. When true, locks the permission; when false or omitted, submits operation result directly."
104
- },
105
- "adminUnhold": {
106
- "type": "boolean",
107
- "description": "Whether to allow admin to force unlock. Only applicable when hold is true."
101
+ "op": {
102
+ "type": "string",
103
+ "enum": [
104
+ "next",
105
+ "hold",
106
+ "unhold",
107
+ "adminUnhold"
108
+ ],
109
+ "description": "Operation type on the forward: 'next' = advance the forward (accomplish); 'hold' = set hold to block the forward; 'unhold' = self-unhold, release own hold (no 224 permission needed); 'adminUnhold' = force-release hold via 224 permission (PROGRESS_UNHOLD)."
108
110
  },
109
111
  "message": {
110
112
  "type": "string",
@@ -112,7 +114,8 @@
112
114
  }
113
115
  },
114
116
  "required": [
115
- "operation"
117
+ "operation",
118
+ "op"
116
119
  ],
117
120
  "additionalProperties": false,
118
121
  "description": "Advance order process"
@@ -370,7 +373,8 @@
370
373
  ],
371
374
  "additionalProperties": false
372
375
  },
373
- "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
376
+ "maxItems": 20,
377
+ "description": "Array of Guard objects to verify. Constraint: at most 20 entries (MAX_GUARD_COUNT_PASSPORT). Relation: each entry corresponds to a Guard bound to the operation."
374
378
  },
375
379
  "submission": {
376
380
  "type": "array",
@@ -15,10 +15,6 @@
15
15
  "env": {
16
16
  "$ref": "#/definitions/env",
17
17
  "$schema": "http://json-schema.org/draft-07/schema#"
18
- },
19
- "submission": {
20
- "$ref": "#/definitions/submission",
21
- "$schema": "http://json-schema.org/draft-07/schema#"
22
18
  }
23
19
  },
24
20
  "required": [
@@ -228,516 +224,6 @@
228
224
  },
229
225
  "additionalProperties": false,
230
226
  "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
231
- },
232
- "submission": {
233
- "type": "object",
234
- "properties": {
235
- "type": {
236
- "type": "string",
237
- "const": "submission",
238
- "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
239
- },
240
- "guard": {
241
- "type": "array",
242
- "items": {
243
- "type": "object",
244
- "properties": {
245
- "object": {
246
- "type": "string",
247
- "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
248
- },
249
- "impack": {
250
- "type": "boolean",
251
- "description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
252
- }
253
- },
254
- "required": [
255
- "object",
256
- "impack"
257
- ],
258
- "additionalProperties": false
259
- },
260
- "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
261
- },
262
- "submission": {
263
- "type": "array",
264
- "items": {
265
- "type": "object",
266
- "properties": {
267
- "guard": {
268
- "$ref": "#/definitions/submission/properties/guard/items/properties/object",
269
- "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
270
- },
271
- "submission": {
272
- "type": "array",
273
- "items": {
274
- "type": "object",
275
- "properties": {
276
- "identifier": {
277
- "type": "integer",
278
- "minimum": 0,
279
- "maximum": 255,
280
- "description": "Identifier (0-255) for data lookup in Guard table."
281
- },
282
- "b_submission": {
283
- "type": "boolean",
284
- "description": "Whether user submission is required for this data"
285
- },
286
- "value_type": {
287
- "anyOf": [
288
- {
289
- "type": "number",
290
- "const": 0,
291
- "description": "Bool (0)"
292
- },
293
- {
294
- "type": "number",
295
- "const": 1,
296
- "description": "Address (1)"
297
- },
298
- {
299
- "type": "number",
300
- "const": 2,
301
- "description": "String (2)"
302
- },
303
- {
304
- "type": "number",
305
- "const": 3,
306
- "description": "U8 (3)"
307
- },
308
- {
309
- "type": "number",
310
- "const": 4,
311
- "description": "U16 (4)"
312
- },
313
- {
314
- "type": "number",
315
- "const": 5,
316
- "description": "U32 (5)"
317
- },
318
- {
319
- "type": "number",
320
- "const": 6,
321
- "description": "U64 (6)"
322
- },
323
- {
324
- "type": "number",
325
- "const": 7,
326
- "description": "U128 (7)"
327
- },
328
- {
329
- "type": "number",
330
- "const": 8,
331
- "description": "U256 (8)"
332
- },
333
- {
334
- "type": "number",
335
- "const": 9,
336
- "description": "VecBool (9)"
337
- },
338
- {
339
- "type": "number",
340
- "const": 10,
341
- "description": "VecAddress (10)"
342
- },
343
- {
344
- "type": "number",
345
- "const": 11,
346
- "description": "VecString (11)"
347
- },
348
- {
349
- "type": "number",
350
- "const": 12,
351
- "description": "VecU8 (12)"
352
- },
353
- {
354
- "type": "number",
355
- "const": 13,
356
- "description": "VecU16 (13)"
357
- },
358
- {
359
- "type": "number",
360
- "const": 14,
361
- "description": "VecU32 (14)"
362
- },
363
- {
364
- "type": "number",
365
- "const": 15,
366
- "description": "VecU64 (15)"
367
- },
368
- {
369
- "type": "number",
370
- "const": 16,
371
- "description": "VecU128 (16)"
372
- },
373
- {
374
- "type": "number",
375
- "const": 17,
376
- "description": "VecU256 (17)"
377
- },
378
- {
379
- "type": "number",
380
- "const": 18,
381
- "description": "VecVecU8 (18)"
382
- },
383
- {
384
- "type": "string",
385
- "const": "Bool",
386
- "description": "Bool"
387
- },
388
- {
389
- "type": "string",
390
- "const": "Address",
391
- "description": "Address"
392
- },
393
- {
394
- "type": "string",
395
- "const": "String",
396
- "description": "String"
397
- },
398
- {
399
- "type": "string",
400
- "const": "U8",
401
- "description": "U8"
402
- },
403
- {
404
- "type": "string",
405
- "const": "U16",
406
- "description": "U16"
407
- },
408
- {
409
- "type": "string",
410
- "const": "U32",
411
- "description": "U32"
412
- },
413
- {
414
- "type": "string",
415
- "const": "U64",
416
- "description": "U64"
417
- },
418
- {
419
- "type": "string",
420
- "const": "U128",
421
- "description": "U128"
422
- },
423
- {
424
- "type": "string",
425
- "const": "U256",
426
- "description": "U256"
427
- },
428
- {
429
- "type": "string",
430
- "const": "VecBool",
431
- "description": "VecBool"
432
- },
433
- {
434
- "type": "string",
435
- "const": "VecAddress",
436
- "description": "VecAddress"
437
- },
438
- {
439
- "type": "string",
440
- "const": "VecString",
441
- "description": "VecString"
442
- },
443
- {
444
- "type": "string",
445
- "const": "VecU8",
446
- "description": "VecU8"
447
- },
448
- {
449
- "type": "string",
450
- "const": "VecU16",
451
- "description": "VecU16"
452
- },
453
- {
454
- "type": "string",
455
- "const": "VecU32",
456
- "description": "VecU32"
457
- },
458
- {
459
- "type": "string",
460
- "const": "VecU64",
461
- "description": "VecU64"
462
- },
463
- {
464
- "type": "string",
465
- "const": "VecU128",
466
- "description": "VecU128"
467
- },
468
- {
469
- "type": "string",
470
- "const": "VecU256",
471
- "description": "VecU256"
472
- },
473
- {
474
- "type": "string",
475
- "const": "VecVecU8",
476
- "description": "VecVecU8"
477
- },
478
- {
479
- "type": "string",
480
- "const": "bool",
481
- "description": "bool"
482
- },
483
- {
484
- "type": "string",
485
- "const": "address",
486
- "description": "address"
487
- },
488
- {
489
- "type": "string",
490
- "const": "string",
491
- "description": "string"
492
- },
493
- {
494
- "type": "string",
495
- "const": "u8",
496
- "description": "u8"
497
- },
498
- {
499
- "type": "string",
500
- "const": "u16",
501
- "description": "u16"
502
- },
503
- {
504
- "type": "string",
505
- "const": "u32",
506
- "description": "u32"
507
- },
508
- {
509
- "type": "string",
510
- "const": "u64",
511
- "description": "u64"
512
- },
513
- {
514
- "type": "string",
515
- "const": "u128",
516
- "description": "u128"
517
- },
518
- {
519
- "type": "string",
520
- "const": "u256",
521
- "description": "u256"
522
- },
523
- {
524
- "type": "string",
525
- "const": "vecbool",
526
- "description": "vecbool"
527
- },
528
- {
529
- "type": "string",
530
- "const": "vecaddress",
531
- "description": "vecaddress"
532
- },
533
- {
534
- "type": "string",
535
- "const": "vecstring",
536
- "description": "vecstring"
537
- },
538
- {
539
- "type": "string",
540
- "const": "vecu8",
541
- "description": "vecu8"
542
- },
543
- {
544
- "type": "string",
545
- "const": "vecu16",
546
- "description": "vecu16"
547
- },
548
- {
549
- "type": "string",
550
- "const": "vecu32",
551
- "description": "vecu32"
552
- },
553
- {
554
- "type": "string",
555
- "const": "vecu64",
556
- "description": "vecu64"
557
- },
558
- {
559
- "type": "string",
560
- "const": "vecu128",
561
- "description": "vecu128"
562
- },
563
- {
564
- "type": "string",
565
- "const": "vecu256",
566
- "description": "vecu256"
567
- },
568
- {
569
- "type": "string",
570
- "const": "vecvecu8",
571
- "description": "vecvecu8"
572
- }
573
- ],
574
- "description": "Type of the value"
575
- },
576
- "value": {
577
- "anyOf": [
578
- {
579
- "type": "boolean"
580
- },
581
- {
582
- "anyOf": [
583
- {
584
- "type": "object",
585
- "properties": {
586
- "name_or_address": {
587
- "$ref": "#/definitions/submission/properties/guard/items/properties/object",
588
- "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
589
- },
590
- "local_mark_first": {
591
- "type": "boolean",
592
- "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
593
- }
594
- },
595
- "additionalProperties": false,
596
- "description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
597
- },
598
- {
599
- "type": "string"
600
- }
601
- ]
602
- },
603
- {
604
- "type": "string"
605
- },
606
- {
607
- "type": "number"
608
- },
609
- {
610
- "type": "array",
611
- "items": {
612
- "type": "boolean"
613
- }
614
- },
615
- {
616
- "anyOf": [
617
- {
618
- "type": "object",
619
- "properties": {
620
- "entities": {
621
- "type": "array",
622
- "items": {
623
- "$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
624
- }
625
- },
626
- "check_all_founded": {
627
- "type": "boolean",
628
- "description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"
629
- }
630
- },
631
- "required": [
632
- "entities"
633
- ],
634
- "additionalProperties": false,
635
- "description": "Used to batch find account or object IDs by name"
636
- },
637
- {
638
- "type": "array",
639
- "items": {
640
- "type": "string"
641
- }
642
- }
643
- ]
644
- },
645
- {
646
- "type": "array",
647
- "items": {
648
- "type": "string"
649
- }
650
- },
651
- {
652
- "type": "array",
653
- "items": {
654
- "type": "number"
655
- }
656
- },
657
- {
658
- "type": "array",
659
- "items": {
660
- "type": "array",
661
- "items": {
662
- "type": "number"
663
- }
664
- }
665
- }
666
- ],
667
- "description": "The actual value data"
668
- },
669
- "name": {
670
- "type": "string",
671
- "default": "",
672
- "description": "Name or description of this data"
673
- },
674
- "object_type": {
675
- "type": "string",
676
- "enum": [
677
- "Permission",
678
- "Repository",
679
- "Arb",
680
- "Arbitration",
681
- "Service",
682
- "Machine",
683
- "Order",
684
- "Progress",
685
- "Payment",
686
- "Treasury",
687
- "Guard",
688
- "Demand",
689
- "Passport",
690
- "Allocation",
691
- "Resource",
692
- "Reward",
693
- "Discount",
694
- "EntityRegistrar",
695
- "EntityLinker",
696
- "Proof",
697
- "WReceivedObject",
698
- "Contact",
699
- "TableItem_ProgressHistory",
700
- "TableItem_PermissionPerm",
701
- "TableItem_DemandPresenter",
702
- "TableItem_MachineNode",
703
- "TableItem_TreasuryHistory",
704
- "TableItem_RepositoryData",
705
- "TableItem_RewardRecord",
706
- "TableItem_EntityLinker",
707
- "TableItem_AddressMark",
708
- "TableItem_EntityRegistrar"
709
- ],
710
- "description": "Object type when value_type is Address and represents a specific object"
711
- }
712
- },
713
- "required": [
714
- "identifier",
715
- "b_submission",
716
- "value_type"
717
- ],
718
- "additionalProperties": false,
719
- "description": "Guard table item"
720
- },
721
- "description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
722
- }
723
- },
724
- "required": [
725
- "guard",
726
- "submission"
727
- ],
728
- "additionalProperties": false,
729
- "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
730
- },
731
- "description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission."
732
- }
733
- },
734
- "required": [
735
- "type",
736
- "guard",
737
- "submission"
738
- ],
739
- "additionalProperties": false,
740
- "description": "Guard verification required. The operation was blocked because one or more Guards require user-submitted data. Fill the submission array and resubmit. Semantic status is 'pending_input'."
741
227
  }
742
228
  }
743
229
  }