@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
@@ -13,8 +13,83 @@
13
13
  "description": "On-chain Guard creation. IMPORTANT: All defined data (include all submitted data) must be defined in the 'table' field. USAGE: Set 'namedNew' field with {name, tags?, onChain?} to name the new Guard. The Guard is immutable once created. Define the validation logic in 'root' field. When root.type='file', the file can contain all Guard fields, and any fields defined in the schema will OVERRIDE the file content.",
14
14
  "properties": {
15
15
  "namedNew": {
16
+ "$ref": "#/definitions/guard_namedNew",
17
+ "$schema": "http://json-schema.org/draft-07/schema#"
18
+ },
19
+ "description": {
20
+ "$ref": "#/definitions/guard_description",
21
+ "$schema": "http://json-schema.org/draft-07/schema#"
22
+ },
23
+ "table": {
24
+ "$ref": "#/definitions/guard_table",
25
+ "$schema": "http://json-schema.org/draft-07/schema#"
26
+ },
27
+ "root": {
28
+ "description": "Root definition: either a direct GuardNode computation tree (no type wrapper) or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content. For the node structure, see guard-node-schema.json for complete GuardNode definitions. IMPORTANT: The root node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.)",
29
+ "oneOf": [
30
+ {
31
+ "$ref": "guard-node-schema.json",
32
+ "description": "Direct GuardNode computation tree - the node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.). No 'type: node' wrapper needed."
33
+ },
34
+ {
35
+ "type": "object",
36
+ "description": "File reference",
37
+ "properties": {
38
+ "type": {
39
+ "const": "file"
40
+ },
41
+ "file_path": {
42
+ "type": "string",
43
+ "description": "Path to JSON or Markdown file containing Guard definition"
44
+ },
45
+ "format": {
46
+ "type": "string",
47
+ "enum": [
48
+ "json",
49
+ "markdown"
50
+ ],
51
+ "default": "json",
52
+ "description": "File format: 'json' or 'markdown'"
53
+ }
54
+ },
55
+ "required": [
56
+ "type",
57
+ "file_path"
58
+ ]
59
+ }
60
+ ]
61
+ },
62
+ "rely": {
63
+ "$ref": "#/definitions/guard_rely",
64
+ "$schema": "http://json-schema.org/draft-07/schema#"
65
+ },
66
+ "binding_hint": {
67
+ "$ref": "#/definitions/guard_binding_hint",
68
+ "$schema": "http://json-schema.org/draft-07/schema#"
69
+ }
70
+ },
71
+ "required": [
72
+ "root"
73
+ ],
74
+ "additionalProperties": false
75
+ },
76
+ "env": {
77
+ "$ref": "#/definitions/env",
78
+ "$schema": "http://json-schema.org/draft-07/schema#"
79
+ }
80
+ },
81
+ "required": [
82
+ "operation_type",
83
+ "data"
84
+ ],
85
+ "definitions": {
86
+ "guard_namedNew": {
87
+ "anyOf": [
88
+ {
89
+ "not": {}
90
+ },
91
+ {
16
92
  "type": "object",
17
- "description": "Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file.",
18
93
  "properties": {
19
94
  "name": {
20
95
  "type": "string",
@@ -29,22 +104,38 @@
29
104
  },
30
105
  "onChain": {
31
106
  "type": "boolean",
32
- "description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone."
107
+ "description": "CRITICAL: Whether to sync the name to the blockchain. DEFAULT (undefined/false): The name is stored LOCALLY ONLY on your device (PRIVATE). If set to true: The name is published ON-CHAIN and becomes PUBLICLY VISIBLE to everyone. Only set to true for displaying the relationships you are willing to make public on the chain."
33
108
  },
34
109
  "replaceExistName": {
35
110
  "type": "boolean",
36
- "description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name."
111
+ "description": "FORCE CLAIM: Set to true ONLY when the user explicitly expresses a STRONG INTENTION to forcefully take over an existing name (e.g., 'I must use this name', 'force rename', 'replace the existing one'). WARNING: This will UNBIND the name from its original object and rebind it to the new one, potentially breaking existing references. If not specified or false: the operation will FAIL with an error when the name is already in use (safe default behavior)."
37
112
  }
38
113
  },
39
- "additionalProperties": false
114
+ "additionalProperties": false,
115
+ "description": "Assign a name and optional tags to a new object. By default, names are stored LOCALLY (private) on your device. Set 'onChain: true' to create a PUBLIC on-chain identity visible to everyone. IMPORTANT: If the requested name is already taken, the operation will FAIL by default. Only set 'replaceExistName: true' when the user EXPLICITLY demands to forcefully claim the name."
116
+ }
117
+ ],
118
+ "description": "Name and optional tags for the new Guard object. Set 'onChain: true' to create a public on-chain identity. When using root.type='file', this field OVERRIDES namedNew in the file."
119
+ },
120
+ "guard_description": {
121
+ "anyOf": [
122
+ {
123
+ "not": {}
40
124
  },
41
- "description": {
125
+ {
42
126
  "type": "string",
43
- "description": "Guard description. When using root.type='file', this field OVERRIDES description in the file."
127
+ "description": "Description string (max 4000 bcs characters)"
128
+ }
129
+ ],
130
+ "description": "Guard description. When using root.type='file', this field OVERRIDES description in the file."
131
+ },
132
+ "guard_table": {
133
+ "anyOf": [
134
+ {
135
+ "not": {}
44
136
  },
45
- "table": {
137
+ {
46
138
  "type": "array",
47
- "description": "Data table of the Guard object. When using root.type='file', this field OVERRIDES table in the file.",
48
139
  "items": {
49
140
  "type": "object",
50
141
  "properties": {
@@ -52,21 +143,398 @@
52
143
  "type": "integer",
53
144
  "minimum": 0,
54
145
  "maximum": 255,
55
- "description": "Identifier index (0-255) for referencing this value in Guard nodes"
146
+ "description": "Identifier (0-255) for data lookup in Guard table."
56
147
  },
57
148
  "b_submission": {
58
149
  "type": "boolean",
59
150
  "description": "Whether user submission is required for this data"
60
151
  },
61
152
  "value_type": {
62
- "type": "string",
63
- "description": "Value type: Bool, Address, String, U8, U16, U32, U64, U128, U256, VecBool, VecAddress, VecString, VecU8, VecU16, VecU32, VecU64, VecU128, VecU256, VecVecU8"
153
+ "anyOf": [
154
+ {
155
+ "type": "number",
156
+ "const": 0,
157
+ "description": "Bool (0)"
158
+ },
159
+ {
160
+ "type": "number",
161
+ "const": 1,
162
+ "description": "Address (1)"
163
+ },
164
+ {
165
+ "type": "number",
166
+ "const": 2,
167
+ "description": "String (2)"
168
+ },
169
+ {
170
+ "type": "number",
171
+ "const": 3,
172
+ "description": "U8 (3)"
173
+ },
174
+ {
175
+ "type": "number",
176
+ "const": 4,
177
+ "description": "U16 (4)"
178
+ },
179
+ {
180
+ "type": "number",
181
+ "const": 5,
182
+ "description": "U32 (5)"
183
+ },
184
+ {
185
+ "type": "number",
186
+ "const": 6,
187
+ "description": "U64 (6)"
188
+ },
189
+ {
190
+ "type": "number",
191
+ "const": 7,
192
+ "description": "U128 (7)"
193
+ },
194
+ {
195
+ "type": "number",
196
+ "const": 8,
197
+ "description": "U256 (8)"
198
+ },
199
+ {
200
+ "type": "number",
201
+ "const": 9,
202
+ "description": "VecBool (9)"
203
+ },
204
+ {
205
+ "type": "number",
206
+ "const": 10,
207
+ "description": "VecAddress (10)"
208
+ },
209
+ {
210
+ "type": "number",
211
+ "const": 11,
212
+ "description": "VecString (11)"
213
+ },
214
+ {
215
+ "type": "number",
216
+ "const": 12,
217
+ "description": "VecU8 (12)"
218
+ },
219
+ {
220
+ "type": "number",
221
+ "const": 13,
222
+ "description": "VecU16 (13)"
223
+ },
224
+ {
225
+ "type": "number",
226
+ "const": 14,
227
+ "description": "VecU32 (14)"
228
+ },
229
+ {
230
+ "type": "number",
231
+ "const": 15,
232
+ "description": "VecU64 (15)"
233
+ },
234
+ {
235
+ "type": "number",
236
+ "const": 16,
237
+ "description": "VecU128 (16)"
238
+ },
239
+ {
240
+ "type": "number",
241
+ "const": 17,
242
+ "description": "VecU256 (17)"
243
+ },
244
+ {
245
+ "type": "number",
246
+ "const": 18,
247
+ "description": "VecVecU8 (18)"
248
+ },
249
+ {
250
+ "type": "string",
251
+ "const": "Bool",
252
+ "description": "Bool"
253
+ },
254
+ {
255
+ "type": "string",
256
+ "const": "Address",
257
+ "description": "Address"
258
+ },
259
+ {
260
+ "type": "string",
261
+ "const": "String",
262
+ "description": "String"
263
+ },
264
+ {
265
+ "type": "string",
266
+ "const": "U8",
267
+ "description": "U8"
268
+ },
269
+ {
270
+ "type": "string",
271
+ "const": "U16",
272
+ "description": "U16"
273
+ },
274
+ {
275
+ "type": "string",
276
+ "const": "U32",
277
+ "description": "U32"
278
+ },
279
+ {
280
+ "type": "string",
281
+ "const": "U64",
282
+ "description": "U64"
283
+ },
284
+ {
285
+ "type": "string",
286
+ "const": "U128",
287
+ "description": "U128"
288
+ },
289
+ {
290
+ "type": "string",
291
+ "const": "U256",
292
+ "description": "U256"
293
+ },
294
+ {
295
+ "type": "string",
296
+ "const": "VecBool",
297
+ "description": "VecBool"
298
+ },
299
+ {
300
+ "type": "string",
301
+ "const": "VecAddress",
302
+ "description": "VecAddress"
303
+ },
304
+ {
305
+ "type": "string",
306
+ "const": "VecString",
307
+ "description": "VecString"
308
+ },
309
+ {
310
+ "type": "string",
311
+ "const": "VecU8",
312
+ "description": "VecU8"
313
+ },
314
+ {
315
+ "type": "string",
316
+ "const": "VecU16",
317
+ "description": "VecU16"
318
+ },
319
+ {
320
+ "type": "string",
321
+ "const": "VecU32",
322
+ "description": "VecU32"
323
+ },
324
+ {
325
+ "type": "string",
326
+ "const": "VecU64",
327
+ "description": "VecU64"
328
+ },
329
+ {
330
+ "type": "string",
331
+ "const": "VecU128",
332
+ "description": "VecU128"
333
+ },
334
+ {
335
+ "type": "string",
336
+ "const": "VecU256",
337
+ "description": "VecU256"
338
+ },
339
+ {
340
+ "type": "string",
341
+ "const": "VecVecU8",
342
+ "description": "VecVecU8"
343
+ },
344
+ {
345
+ "type": "string",
346
+ "const": "bool",
347
+ "description": "bool"
348
+ },
349
+ {
350
+ "type": "string",
351
+ "const": "address",
352
+ "description": "address"
353
+ },
354
+ {
355
+ "type": "string",
356
+ "const": "string",
357
+ "description": "string"
358
+ },
359
+ {
360
+ "type": "string",
361
+ "const": "u8",
362
+ "description": "u8"
363
+ },
364
+ {
365
+ "type": "string",
366
+ "const": "u16",
367
+ "description": "u16"
368
+ },
369
+ {
370
+ "type": "string",
371
+ "const": "u32",
372
+ "description": "u32"
373
+ },
374
+ {
375
+ "type": "string",
376
+ "const": "u64",
377
+ "description": "u64"
378
+ },
379
+ {
380
+ "type": "string",
381
+ "const": "u128",
382
+ "description": "u128"
383
+ },
384
+ {
385
+ "type": "string",
386
+ "const": "u256",
387
+ "description": "u256"
388
+ },
389
+ {
390
+ "type": "string",
391
+ "const": "vecbool",
392
+ "description": "vecbool"
393
+ },
394
+ {
395
+ "type": "string",
396
+ "const": "vecaddress",
397
+ "description": "vecaddress"
398
+ },
399
+ {
400
+ "type": "string",
401
+ "const": "vecstring",
402
+ "description": "vecstring"
403
+ },
404
+ {
405
+ "type": "string",
406
+ "const": "vecu8",
407
+ "description": "vecu8"
408
+ },
409
+ {
410
+ "type": "string",
411
+ "const": "vecu16",
412
+ "description": "vecu16"
413
+ },
414
+ {
415
+ "type": "string",
416
+ "const": "vecu32",
417
+ "description": "vecu32"
418
+ },
419
+ {
420
+ "type": "string",
421
+ "const": "vecu64",
422
+ "description": "vecu64"
423
+ },
424
+ {
425
+ "type": "string",
426
+ "const": "vecu128",
427
+ "description": "vecu128"
428
+ },
429
+ {
430
+ "type": "string",
431
+ "const": "vecu256",
432
+ "description": "vecu256"
433
+ },
434
+ {
435
+ "type": "string",
436
+ "const": "vecvecu8",
437
+ "description": "vecvecu8"
438
+ }
439
+ ],
440
+ "description": "Type of the value"
64
441
  },
65
442
  "value": {
66
- "description": "The actual value (omit if b_submission is true)"
443
+ "anyOf": [
444
+ {
445
+ "type": "boolean"
446
+ },
447
+ {
448
+ "anyOf": [
449
+ {
450
+ "type": "object",
451
+ "properties": {
452
+ "name_or_address": {
453
+ "type": "string",
454
+ "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)."
455
+ },
456
+ "local_mark_first": {
457
+ "type": "boolean",
458
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
459
+ }
460
+ },
461
+ "additionalProperties": false,
462
+ "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."
463
+ },
464
+ {
465
+ "type": "string"
466
+ }
467
+ ]
468
+ },
469
+ {
470
+ "type": "string"
471
+ },
472
+ {
473
+ "type": "number"
474
+ },
475
+ {
476
+ "type": "array",
477
+ "items": {
478
+ "type": "boolean"
479
+ }
480
+ },
481
+ {
482
+ "anyOf": [
483
+ {
484
+ "type": "object",
485
+ "properties": {
486
+ "entities": {
487
+ "type": "array",
488
+ "items": {
489
+ "$ref": "#/definitions/guard_table/anyOf/1/items/properties/value/anyOf/1/anyOf/0"
490
+ }
491
+ },
492
+ "check_all_founded": {
493
+ "type": "boolean",
494
+ "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"
495
+ }
496
+ },
497
+ "required": [
498
+ "entities"
499
+ ],
500
+ "additionalProperties": false,
501
+ "description": "Used to batch find account or object IDs by name"
502
+ },
503
+ {
504
+ "type": "array",
505
+ "items": {
506
+ "type": "string"
507
+ }
508
+ }
509
+ ]
510
+ },
511
+ {
512
+ "type": "array",
513
+ "items": {
514
+ "type": "string"
515
+ }
516
+ },
517
+ {
518
+ "type": "array",
519
+ "items": {
520
+ "type": "number"
521
+ }
522
+ },
523
+ {
524
+ "type": "array",
525
+ "items": {
526
+ "type": "array",
527
+ "items": {
528
+ "type": "number"
529
+ }
530
+ }
531
+ }
532
+ ],
533
+ "description": "The actual value data"
67
534
  },
68
535
  "name": {
69
536
  "type": "string",
537
+ "default": "",
70
538
  "description": "Name or description of this data"
71
539
  }
72
540
  },
@@ -74,52 +542,27 @@
74
542
  "identifier",
75
543
  "b_submission",
76
544
  "value_type"
77
- ]
545
+ ],
546
+ "additionalProperties": false,
547
+ "description": "Guard table item"
78
548
  }
549
+ }
550
+ ],
551
+ "description": "Data table of the Guard object. When using root.type='file', this field OVERRIDES table in the file."
552
+ },
553
+ "guard_rely": {
554
+ "anyOf": [
555
+ {
556
+ "not": {}
79
557
  },
80
- "root": {
81
- "description": "Root definition: either a direct GuardNode computation tree (no type wrapper) or a file reference (type='file'). When type='file', the file can define all Guard fields (namedNew, description, table, root, rely), and schema fields override file content. For the node structure, see guard-node-schema.json for complete GuardNode definitions. IMPORTANT: The root node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.)",
82
- "oneOf": [
83
- {
84
- "$ref": "guard-node-schema.json",
85
- "description": "Direct GuardNode computation tree - the node MUST be a logical operation returning Bool (e.g., logic_and, logic_or, logic_equal, query_reward_record_exists, etc.). No 'type: node' wrapper needed."
86
- },
87
- {
88
- "type": "object",
89
- "description": "File reference",
90
- "properties": {
91
- "type": {
92
- "const": "file"
93
- },
94
- "file_path": {
95
- "type": "string",
96
- "description": "Path to JSON or Markdown file containing Guard definition"
97
- },
98
- "format": {
99
- "type": "string",
100
- "enum": [
101
- "json",
102
- "markdown"
103
- ],
104
- "default": "json",
105
- "description": "File format: 'json' or 'markdown'"
106
- }
107
- },
108
- "required": [
109
- "type",
110
- "file_path"
111
- ]
112
- }
113
- ]
114
- },
115
- "rely": {
558
+ {
116
559
  "type": "object",
117
- "description": "All Guard objects that the new Guard object depends on.",
118
560
  "properties": {
119
561
  "guards": {
120
562
  "type": "array",
121
563
  "items": {
122
- "type": "string"
564
+ "type": "string",
565
+ "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)."
123
566
  },
124
567
  "description": "List of dependent Guard object IDs or names."
125
568
  },
@@ -130,27 +573,93 @@
130
573
  },
131
574
  "required": [
132
575
  "guards"
133
- ]
576
+ ],
577
+ "additionalProperties": false
134
578
  }
135
- },
136
- "required": [
137
- "root"
138
- ]
579
+ ],
580
+ "description": "All Guard objects that the new Guard object depends on. If logic_or is true, the execution result of the new Guard object is the logical OR of the execution results of all dependent Guard objects; otherwise, it is logical AND. When using root.type='file', this field OVERRIDES rely in the file."
139
581
  },
140
- "env": {
141
- "$ref": "#/definitions/env",
142
- "$schema": "http://json-schema.org/draft-07/schema#"
582
+ "guard_binding_hint": {
583
+ "anyOf": [
584
+ {
585
+ "not": {}
586
+ },
587
+ {
588
+ "type": "object",
589
+ "properties": {
590
+ "action": {
591
+ "type": "string",
592
+ "enum": [
593
+ "buy",
594
+ "forward",
595
+ "allocate",
596
+ "claim_reward",
597
+ "vote",
598
+ "dispute",
599
+ "write_repository",
600
+ "submit_progress",
601
+ "gen_passport",
602
+ "custom"
603
+ ],
604
+ "description": "Protected action type. Example: 'buy' for Service buy_guard, 'forward' for Machine Forward.guard."
605
+ },
606
+ "host_object": {
607
+ "type": "string",
608
+ "enum": [
609
+ "Service",
610
+ "Machine",
611
+ "Arbitration",
612
+ "Reward",
613
+ "Repository",
614
+ "Progress",
615
+ "Demand",
616
+ "Standalone"
617
+ ],
618
+ "description": "Host object type. Example: 'Service', 'Machine'."
619
+ },
620
+ "binding_field": {
621
+ "type": "string",
622
+ "enum": [
623
+ "buy_guard",
624
+ "order_allocators",
625
+ "Forward.guard",
626
+ "submission",
627
+ "guard",
628
+ "write_guard",
629
+ "usage_guard",
630
+ "voting_guard",
631
+ "ServiceGuard",
632
+ "none"
633
+ ],
634
+ "description": "Binding field. Example: 'buy_guard', 'Forward.guard'."
635
+ },
636
+ "rule_sentence": {
637
+ "type": "string",
638
+ "description": "One-sentence description of the validation rule (human-readable). Example: 'Only the author can purchase this service'."
639
+ },
640
+ "failure_conditions": {
641
+ "type": "array",
642
+ "items": {
643
+ "type": "string"
644
+ },
645
+ "description": "List of conditions under which the Guard should FAIL. Example: ['Signer is not in allowlist','Order is already completed']."
646
+ },
647
+ "circular_reference": {
648
+ "type": "boolean",
649
+ "description": "Whether the Guard references the Host Object itself (circular reference pattern). true=Guard queries the Host Object it binds to."
650
+ }
651
+ },
652
+ "required": [
653
+ "action",
654
+ "host_object",
655
+ "binding_field"
656
+ ],
657
+ "additionalProperties": false,
658
+ "description": "Optional semantic hint for Guard capability system. Provides intent + binding context so the MCP server can derive GuardPuzzle, run risk assessment, and generate confirmation text. Strongly recommended: fill this field to enable puzzle_status, matched_scene, suggested_patterns, confirmation_text, and pending_questions in the response guard_advice."
659
+ }
660
+ ],
661
+ "description": "Phase 5 Guard capability hint. Provides semantic context (action + host_object + binding_field + optional rule/failure_conditions) for puzzle derivation. When provided, the response will include complete guard_advice (puzzle_status, matched_scene, suggested_patterns, confirmation_text, pending_questions). When absent, puzzle_status intent/binding dimensions are marked incomplete."
143
662
  },
144
- "submission": {
145
- "$ref": "#/definitions/submission",
146
- "$schema": "http://json-schema.org/draft-07/schema#"
147
- }
148
- },
149
- "required": [
150
- "operation_type",
151
- "data"
152
- ],
153
- "definitions": {
154
663
  "env": {
155
664
  "type": "object",
156
665
  "properties": {
@@ -209,516 +718,6 @@
209
718
  },
210
719
  "additionalProperties": false,
211
720
  "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."
212
- },
213
- "submission": {
214
- "type": "object",
215
- "properties": {
216
- "type": {
217
- "type": "string",
218
- "const": "submission",
219
- "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
220
- },
221
- "guard": {
222
- "type": "array",
223
- "items": {
224
- "type": "object",
225
- "properties": {
226
- "object": {
227
- "type": "string",
228
- "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
229
- },
230
- "impack": {
231
- "type": "boolean",
232
- "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"
233
- }
234
- },
235
- "required": [
236
- "object",
237
- "impack"
238
- ],
239
- "additionalProperties": false
240
- },
241
- "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
242
- },
243
- "submission": {
244
- "type": "array",
245
- "items": {
246
- "type": "object",
247
- "properties": {
248
- "guard": {
249
- "$ref": "#/definitions/submission/properties/guard/items/properties/object",
250
- "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
251
- },
252
- "submission": {
253
- "type": "array",
254
- "items": {
255
- "type": "object",
256
- "properties": {
257
- "identifier": {
258
- "type": "integer",
259
- "minimum": 0,
260
- "maximum": 255,
261
- "description": "Identifier (0-255) for data lookup in Guard table."
262
- },
263
- "b_submission": {
264
- "type": "boolean",
265
- "description": "Whether user submission is required for this data"
266
- },
267
- "value_type": {
268
- "anyOf": [
269
- {
270
- "type": "number",
271
- "const": 0,
272
- "description": "Bool (0)"
273
- },
274
- {
275
- "type": "number",
276
- "const": 1,
277
- "description": "Address (1)"
278
- },
279
- {
280
- "type": "number",
281
- "const": 2,
282
- "description": "String (2)"
283
- },
284
- {
285
- "type": "number",
286
- "const": 3,
287
- "description": "U8 (3)"
288
- },
289
- {
290
- "type": "number",
291
- "const": 4,
292
- "description": "U16 (4)"
293
- },
294
- {
295
- "type": "number",
296
- "const": 5,
297
- "description": "U32 (5)"
298
- },
299
- {
300
- "type": "number",
301
- "const": 6,
302
- "description": "U64 (6)"
303
- },
304
- {
305
- "type": "number",
306
- "const": 7,
307
- "description": "U128 (7)"
308
- },
309
- {
310
- "type": "number",
311
- "const": 8,
312
- "description": "U256 (8)"
313
- },
314
- {
315
- "type": "number",
316
- "const": 9,
317
- "description": "VecBool (9)"
318
- },
319
- {
320
- "type": "number",
321
- "const": 10,
322
- "description": "VecAddress (10)"
323
- },
324
- {
325
- "type": "number",
326
- "const": 11,
327
- "description": "VecString (11)"
328
- },
329
- {
330
- "type": "number",
331
- "const": 12,
332
- "description": "VecU8 (12)"
333
- },
334
- {
335
- "type": "number",
336
- "const": 13,
337
- "description": "VecU16 (13)"
338
- },
339
- {
340
- "type": "number",
341
- "const": 14,
342
- "description": "VecU32 (14)"
343
- },
344
- {
345
- "type": "number",
346
- "const": 15,
347
- "description": "VecU64 (15)"
348
- },
349
- {
350
- "type": "number",
351
- "const": 16,
352
- "description": "VecU128 (16)"
353
- },
354
- {
355
- "type": "number",
356
- "const": 17,
357
- "description": "VecU256 (17)"
358
- },
359
- {
360
- "type": "number",
361
- "const": 18,
362
- "description": "VecVecU8 (18)"
363
- },
364
- {
365
- "type": "string",
366
- "const": "Bool",
367
- "description": "Bool"
368
- },
369
- {
370
- "type": "string",
371
- "const": "Address",
372
- "description": "Address"
373
- },
374
- {
375
- "type": "string",
376
- "const": "String",
377
- "description": "String"
378
- },
379
- {
380
- "type": "string",
381
- "const": "U8",
382
- "description": "U8"
383
- },
384
- {
385
- "type": "string",
386
- "const": "U16",
387
- "description": "U16"
388
- },
389
- {
390
- "type": "string",
391
- "const": "U32",
392
- "description": "U32"
393
- },
394
- {
395
- "type": "string",
396
- "const": "U64",
397
- "description": "U64"
398
- },
399
- {
400
- "type": "string",
401
- "const": "U128",
402
- "description": "U128"
403
- },
404
- {
405
- "type": "string",
406
- "const": "U256",
407
- "description": "U256"
408
- },
409
- {
410
- "type": "string",
411
- "const": "VecBool",
412
- "description": "VecBool"
413
- },
414
- {
415
- "type": "string",
416
- "const": "VecAddress",
417
- "description": "VecAddress"
418
- },
419
- {
420
- "type": "string",
421
- "const": "VecString",
422
- "description": "VecString"
423
- },
424
- {
425
- "type": "string",
426
- "const": "VecU8",
427
- "description": "VecU8"
428
- },
429
- {
430
- "type": "string",
431
- "const": "VecU16",
432
- "description": "VecU16"
433
- },
434
- {
435
- "type": "string",
436
- "const": "VecU32",
437
- "description": "VecU32"
438
- },
439
- {
440
- "type": "string",
441
- "const": "VecU64",
442
- "description": "VecU64"
443
- },
444
- {
445
- "type": "string",
446
- "const": "VecU128",
447
- "description": "VecU128"
448
- },
449
- {
450
- "type": "string",
451
- "const": "VecU256",
452
- "description": "VecU256"
453
- },
454
- {
455
- "type": "string",
456
- "const": "VecVecU8",
457
- "description": "VecVecU8"
458
- },
459
- {
460
- "type": "string",
461
- "const": "bool",
462
- "description": "bool"
463
- },
464
- {
465
- "type": "string",
466
- "const": "address",
467
- "description": "address"
468
- },
469
- {
470
- "type": "string",
471
- "const": "string",
472
- "description": "string"
473
- },
474
- {
475
- "type": "string",
476
- "const": "u8",
477
- "description": "u8"
478
- },
479
- {
480
- "type": "string",
481
- "const": "u16",
482
- "description": "u16"
483
- },
484
- {
485
- "type": "string",
486
- "const": "u32",
487
- "description": "u32"
488
- },
489
- {
490
- "type": "string",
491
- "const": "u64",
492
- "description": "u64"
493
- },
494
- {
495
- "type": "string",
496
- "const": "u128",
497
- "description": "u128"
498
- },
499
- {
500
- "type": "string",
501
- "const": "u256",
502
- "description": "u256"
503
- },
504
- {
505
- "type": "string",
506
- "const": "vecbool",
507
- "description": "vecbool"
508
- },
509
- {
510
- "type": "string",
511
- "const": "vecaddress",
512
- "description": "vecaddress"
513
- },
514
- {
515
- "type": "string",
516
- "const": "vecstring",
517
- "description": "vecstring"
518
- },
519
- {
520
- "type": "string",
521
- "const": "vecu8",
522
- "description": "vecu8"
523
- },
524
- {
525
- "type": "string",
526
- "const": "vecu16",
527
- "description": "vecu16"
528
- },
529
- {
530
- "type": "string",
531
- "const": "vecu32",
532
- "description": "vecu32"
533
- },
534
- {
535
- "type": "string",
536
- "const": "vecu64",
537
- "description": "vecu64"
538
- },
539
- {
540
- "type": "string",
541
- "const": "vecu128",
542
- "description": "vecu128"
543
- },
544
- {
545
- "type": "string",
546
- "const": "vecu256",
547
- "description": "vecu256"
548
- },
549
- {
550
- "type": "string",
551
- "const": "vecvecu8",
552
- "description": "vecvecu8"
553
- }
554
- ],
555
- "description": "Type of the value"
556
- },
557
- "value": {
558
- "anyOf": [
559
- {
560
- "type": "boolean"
561
- },
562
- {
563
- "anyOf": [
564
- {
565
- "type": "object",
566
- "properties": {
567
- "name_or_address": {
568
- "$ref": "#/definitions/submission/properties/guard/items/properties/object",
569
- "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)."
570
- },
571
- "local_mark_first": {
572
- "type": "boolean",
573
- "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
574
- }
575
- },
576
- "additionalProperties": false,
577
- "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."
578
- },
579
- {
580
- "type": "string"
581
- }
582
- ]
583
- },
584
- {
585
- "type": "string"
586
- },
587
- {
588
- "type": "number"
589
- },
590
- {
591
- "type": "array",
592
- "items": {
593
- "type": "boolean"
594
- }
595
- },
596
- {
597
- "anyOf": [
598
- {
599
- "type": "object",
600
- "properties": {
601
- "entities": {
602
- "type": "array",
603
- "items": {
604
- "$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
605
- }
606
- },
607
- "check_all_founded": {
608
- "type": "boolean",
609
- "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"
610
- }
611
- },
612
- "required": [
613
- "entities"
614
- ],
615
- "additionalProperties": false,
616
- "description": "Used to batch find account or object IDs by name"
617
- },
618
- {
619
- "type": "array",
620
- "items": {
621
- "type": "string"
622
- }
623
- }
624
- ]
625
- },
626
- {
627
- "type": "array",
628
- "items": {
629
- "type": "string"
630
- }
631
- },
632
- {
633
- "type": "array",
634
- "items": {
635
- "type": "number"
636
- }
637
- },
638
- {
639
- "type": "array",
640
- "items": {
641
- "type": "array",
642
- "items": {
643
- "type": "number"
644
- }
645
- }
646
- }
647
- ],
648
- "description": "The actual value data"
649
- },
650
- "name": {
651
- "type": "string",
652
- "default": "",
653
- "description": "Name or description of this data"
654
- },
655
- "object_type": {
656
- "type": "string",
657
- "enum": [
658
- "Permission",
659
- "Repository",
660
- "Arb",
661
- "Arbitration",
662
- "Service",
663
- "Machine",
664
- "Order",
665
- "Progress",
666
- "Payment",
667
- "Treasury",
668
- "Guard",
669
- "Demand",
670
- "Passport",
671
- "Allocation",
672
- "Resource",
673
- "Reward",
674
- "Discount",
675
- "EntityRegistrar",
676
- "EntityLinker",
677
- "Proof",
678
- "WReceivedObject",
679
- "Contact",
680
- "TableItem_ProgressHistory",
681
- "TableItem_PermissionPerm",
682
- "TableItem_DemandPresenter",
683
- "TableItem_MachineNode",
684
- "TableItem_TreasuryHistory",
685
- "TableItem_RepositoryData",
686
- "TableItem_RewardRecord",
687
- "TableItem_EntityLinker",
688
- "TableItem_AddressMark",
689
- "TableItem_EntityRegistrar"
690
- ],
691
- "description": "Object type when value_type is Address and represents a specific object"
692
- }
693
- },
694
- "required": [
695
- "identifier",
696
- "b_submission",
697
- "value_type"
698
- ],
699
- "additionalProperties": false,
700
- "description": "Guard table item"
701
- },
702
- "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...'}]"
703
- }
704
- },
705
- "required": [
706
- "guard",
707
- "submission"
708
- ],
709
- "additionalProperties": false,
710
- "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
711
- },
712
- "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."
713
- }
714
- },
715
- "required": [
716
- "type",
717
- "guard",
718
- "submission"
719
- ],
720
- "additionalProperties": false,
721
- "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'."
722
721
  }
723
722
  }
724
723
  }