@wowok/agent-mcp 2.4.1 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) 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.d.ts +2 -2
  6. package/dist/index.js +29 -1621
  7. package/dist/knowledge/allocation-confirm.d.ts +115 -0
  8. package/dist/knowledge/allocation-confirm.js +534 -0
  9. package/dist/knowledge/allocation-context.d.ts +58 -0
  10. package/dist/knowledge/allocation-context.js +249 -0
  11. package/dist/knowledge/allocation-ledger.d.ts +67 -0
  12. package/dist/knowledge/allocation-ledger.js +463 -0
  13. package/dist/knowledge/allocation-puzzle.d.ts +135 -0
  14. package/dist/knowledge/allocation-puzzle.js +298 -0
  15. package/dist/knowledge/allocation-risk.d.ts +78 -0
  16. package/dist/knowledge/allocation-risk.js +568 -0
  17. package/dist/knowledge/allocation-templates.d.ts +38 -0
  18. package/dist/knowledge/allocation-templates.js +970 -0
  19. package/dist/knowledge/allocation-translation.d.ts +72 -0
  20. package/dist/knowledge/allocation-translation.js +585 -0
  21. package/dist/knowledge/arb-risk.d.ts +37 -0
  22. package/dist/knowledge/arb-risk.js +210 -0
  23. package/dist/knowledge/arbitration-confirm.d.ts +135 -0
  24. package/dist/knowledge/arbitration-confirm.js +559 -0
  25. package/dist/knowledge/arbitration-context.d.ts +81 -0
  26. package/dist/knowledge/arbitration-context.js +505 -0
  27. package/dist/knowledge/arbitration-ledger.d.ts +62 -0
  28. package/dist/knowledge/arbitration-ledger.js +521 -0
  29. package/dist/knowledge/arbitration-puzzle.d.ts +84 -0
  30. package/dist/knowledge/arbitration-puzzle.js +304 -0
  31. package/dist/knowledge/arbitration-risk.d.ts +112 -0
  32. package/dist/knowledge/arbitration-risk.js +433 -0
  33. package/dist/knowledge/arbitration-templates.d.ts +38 -0
  34. package/dist/knowledge/arbitration-templates.js +276 -0
  35. package/dist/knowledge/arbitration-translation.d.ts +91 -0
  36. package/dist/knowledge/arbitration-translation.js +487 -0
  37. package/dist/knowledge/bridge-risk.d.ts +36 -0
  38. package/dist/knowledge/bridge-risk.js +263 -0
  39. package/dist/knowledge/contact-risk.d.ts +32 -0
  40. package/dist/knowledge/contact-risk.js +200 -0
  41. package/dist/knowledge/demand-confirm.d.ts +32 -0
  42. package/dist/knowledge/demand-confirm.js +206 -0
  43. package/dist/knowledge/demand-risk.d.ts +30 -0
  44. package/dist/knowledge/demand-risk.js +240 -0
  45. package/dist/knowledge/demand-translation.d.ts +55 -0
  46. package/dist/knowledge/demand-translation.js +354 -0
  47. package/dist/knowledge/deployment-scanner.d.ts +63 -0
  48. package/dist/knowledge/deployment-scanner.js +762 -0
  49. package/dist/knowledge/examples-scanner-cli.d.ts +1 -0
  50. package/dist/knowledge/examples-scanner-cli.js +26 -0
  51. package/dist/knowledge/examples-scanner.d.ts +121 -0
  52. package/dist/knowledge/examples-scanner.js +825 -0
  53. package/dist/knowledge/flywheel-loop.d.ts +3 -0
  54. package/dist/knowledge/flywheel-loop.js +32 -3
  55. package/dist/knowledge/glossary.js +3 -1
  56. package/dist/knowledge/guard-confirm.d.ts +86 -0
  57. package/dist/knowledge/guard-confirm.js +406 -0
  58. package/dist/knowledge/guard-context.d.ts +56 -0
  59. package/dist/knowledge/guard-context.js +287 -0
  60. package/dist/knowledge/guard-design-patterns.d.ts +37 -0
  61. package/dist/knowledge/guard-design-patterns.js +257 -0
  62. package/dist/knowledge/guard-ledger.js +14 -0
  63. package/dist/knowledge/guard-lint.d.ts +1 -0
  64. package/dist/knowledge/guard-lint.js +83 -3
  65. package/dist/knowledge/guard-migration.d.ts +48 -0
  66. package/dist/knowledge/guard-migration.js +228 -0
  67. package/dist/knowledge/guard-puzzle.js +3 -2
  68. package/dist/knowledge/guard-risk.d.ts +3 -1
  69. package/dist/knowledge/guard-risk.js +832 -64
  70. package/dist/knowledge/guard-templates.d.ts +1 -0
  71. package/dist/knowledge/guard-templates.js +278 -2
  72. package/dist/knowledge/guard-translation.js +6 -5
  73. package/dist/knowledge/index.d.ts +342 -0
  74. package/dist/knowledge/index.js +344 -0
  75. package/dist/knowledge/machine-confirm.d.ts +102 -0
  76. package/dist/knowledge/machine-confirm.js +559 -0
  77. package/dist/knowledge/machine-context.d.ts +160 -0
  78. package/dist/knowledge/machine-context.js +812 -0
  79. package/dist/knowledge/machine-ledger.d.ts +41 -0
  80. package/dist/knowledge/machine-ledger.js +315 -0
  81. package/dist/knowledge/machine-puzzle.d.ts +206 -0
  82. package/dist/knowledge/machine-puzzle.js +494 -0
  83. package/dist/knowledge/machine-risk.d.ts +75 -0
  84. package/dist/knowledge/machine-risk.js +644 -0
  85. package/dist/knowledge/machine-templates.d.ts +92 -0
  86. package/dist/knowledge/machine-templates.js +1592 -0
  87. package/dist/knowledge/machine-topology.d.ts +57 -0
  88. package/dist/knowledge/machine-topology.js +234 -0
  89. package/dist/knowledge/machine-translation.d.ts +96 -0
  90. package/dist/knowledge/machine-translation.js +513 -0
  91. package/dist/knowledge/mcp-schema-audit-cli.d.ts +1 -0
  92. package/dist/knowledge/mcp-schema-audit-cli.js +45 -0
  93. package/dist/knowledge/mcp-schema-audit.d.ts +90 -0
  94. package/dist/knowledge/mcp-schema-audit.js +772 -0
  95. package/dist/knowledge/onchain-constants.d.ts +4 -0
  96. package/dist/knowledge/onchain-constants.js +35 -0
  97. package/dist/knowledge/order-confirm.d.ts +115 -0
  98. package/dist/knowledge/order-confirm.js +573 -0
  99. package/dist/knowledge/order-context.d.ts +66 -0
  100. package/dist/knowledge/order-context.js +390 -0
  101. package/dist/knowledge/order-ledger.d.ts +69 -0
  102. package/dist/knowledge/order-ledger.js +341 -0
  103. package/dist/knowledge/order-puzzle.d.ts +159 -0
  104. package/dist/knowledge/order-puzzle.js +255 -0
  105. package/dist/knowledge/order-risk.d.ts +66 -0
  106. package/dist/knowledge/order-risk.js +653 -0
  107. package/dist/knowledge/order-templates.d.ts +50 -0
  108. package/dist/knowledge/order-templates.js +368 -0
  109. package/dist/knowledge/order-translation.d.ts +78 -0
  110. package/dist/knowledge/order-translation.js +550 -0
  111. package/dist/knowledge/passport-confirm.d.ts +130 -0
  112. package/dist/knowledge/passport-confirm.js +531 -0
  113. package/dist/knowledge/passport-context.d.ts +59 -0
  114. package/dist/knowledge/passport-context.js +306 -0
  115. package/dist/knowledge/passport-ledger.d.ts +48 -0
  116. package/dist/knowledge/passport-ledger.js +282 -0
  117. package/dist/knowledge/passport-puzzle.d.ts +108 -0
  118. package/dist/knowledge/passport-puzzle.js +333 -0
  119. package/dist/knowledge/passport-risk.d.ts +70 -0
  120. package/dist/knowledge/passport-risk.js +450 -0
  121. package/dist/knowledge/passport-templates.d.ts +40 -0
  122. package/dist/knowledge/passport-templates.js +568 -0
  123. package/dist/knowledge/passport-translation.d.ts +68 -0
  124. package/dist/knowledge/passport-translation.js +516 -0
  125. package/dist/knowledge/payment-risk.d.ts +33 -0
  126. package/dist/knowledge/payment-risk.js +182 -0
  127. package/dist/knowledge/permission-confirm.d.ts +110 -0
  128. package/dist/knowledge/permission-confirm.js +426 -0
  129. package/dist/knowledge/permission-context.d.ts +58 -0
  130. package/dist/knowledge/permission-context.js +224 -0
  131. package/dist/knowledge/permission-ledger.d.ts +38 -0
  132. package/dist/knowledge/permission-ledger.js +403 -0
  133. package/dist/knowledge/permission-puzzle.d.ts +122 -0
  134. package/dist/knowledge/permission-puzzle.js +173 -0
  135. package/dist/knowledge/permission-risk.d.ts +76 -0
  136. package/dist/knowledge/permission-risk.js +411 -0
  137. package/dist/knowledge/permission-templates.d.ts +38 -0
  138. package/dist/knowledge/permission-templates.js +234 -0
  139. package/dist/knowledge/permission-translation.d.ts +57 -0
  140. package/dist/knowledge/permission-translation.js +350 -0
  141. package/dist/knowledge/personal-risk.d.ts +36 -0
  142. package/dist/knowledge/personal-risk.js +212 -0
  143. package/dist/knowledge/progress-confirm.d.ts +108 -0
  144. package/dist/knowledge/progress-confirm.js +456 -0
  145. package/dist/knowledge/progress-context.d.ts +123 -0
  146. package/dist/knowledge/progress-context.js +452 -0
  147. package/dist/knowledge/progress-ledger.d.ts +63 -0
  148. package/dist/knowledge/progress-ledger.js +327 -0
  149. package/dist/knowledge/progress-puzzle.d.ts +82 -0
  150. package/dist/knowledge/progress-puzzle.js +219 -0
  151. package/dist/knowledge/progress-risk.d.ts +74 -0
  152. package/dist/knowledge/progress-risk.js +461 -0
  153. package/dist/knowledge/progress-templates.d.ts +38 -0
  154. package/dist/knowledge/progress-templates.js +228 -0
  155. package/dist/knowledge/progress-translation.d.ts +52 -0
  156. package/dist/knowledge/progress-translation.js +401 -0
  157. package/dist/knowledge/proof-confirm.d.ts +31 -0
  158. package/dist/knowledge/proof-confirm.js +187 -0
  159. package/dist/knowledge/proof-risk.d.ts +33 -0
  160. package/dist/knowledge/proof-risk.js +207 -0
  161. package/dist/knowledge/proof-translation.d.ts +52 -0
  162. package/dist/knowledge/proof-translation.js +283 -0
  163. package/dist/knowledge/registrar-risk.d.ts +34 -0
  164. package/dist/knowledge/registrar-risk.js +217 -0
  165. package/dist/knowledge/repository-confirm.d.ts +36 -0
  166. package/dist/knowledge/repository-confirm.js +242 -0
  167. package/dist/knowledge/repository-risk.d.ts +40 -0
  168. package/dist/knowledge/repository-risk.js +312 -0
  169. package/dist/knowledge/repository-translation.d.ts +58 -0
  170. package/dist/knowledge/repository-translation.js +422 -0
  171. package/dist/knowledge/resource-risk.d.ts +32 -0
  172. package/dist/knowledge/resource-risk.js +157 -0
  173. package/dist/knowledge/reward-confirm.d.ts +113 -0
  174. package/dist/knowledge/reward-confirm.js +496 -0
  175. package/dist/knowledge/reward-context.d.ts +127 -0
  176. package/dist/knowledge/reward-context.js +504 -0
  177. package/dist/knowledge/reward-ledger.d.ts +96 -0
  178. package/dist/knowledge/reward-ledger.js +502 -0
  179. package/dist/knowledge/reward-puzzle.d.ts +97 -0
  180. package/dist/knowledge/reward-puzzle.js +288 -0
  181. package/dist/knowledge/reward-risk.d.ts +84 -0
  182. package/dist/knowledge/reward-risk.js +545 -0
  183. package/dist/knowledge/reward-translation.d.ts +58 -0
  184. package/dist/knowledge/reward-translation.js +501 -0
  185. package/dist/knowledge/safety-rules.js +11 -3
  186. package/dist/knowledge/scenario-modes.d.ts +53 -0
  187. package/dist/knowledge/scenario-modes.js +302 -0
  188. package/dist/knowledge/service-confirm.d.ts +152 -0
  189. package/dist/knowledge/service-confirm.js +699 -0
  190. package/dist/knowledge/service-context.d.ts +66 -0
  191. package/dist/knowledge/service-context.js +403 -0
  192. package/dist/knowledge/service-ledger.d.ts +71 -0
  193. package/dist/knowledge/service-ledger.js +609 -0
  194. package/dist/knowledge/service-puzzle.d.ts +158 -0
  195. package/dist/knowledge/service-puzzle.js +236 -0
  196. package/dist/knowledge/service-risk.d.ts +108 -0
  197. package/dist/knowledge/service-risk.js +615 -0
  198. package/dist/knowledge/service-templates.d.ts +39 -0
  199. package/dist/knowledge/service-templates.js +418 -0
  200. package/dist/knowledge/service-translation.d.ts +103 -0
  201. package/dist/knowledge/service-translation.js +622 -0
  202. package/dist/knowledge/tools-reference.d.ts +17 -0
  203. package/dist/knowledge/tools-reference.js +151 -0
  204. package/dist/knowledge/treasury-confirm.d.ts +133 -0
  205. package/dist/knowledge/treasury-confirm.js +512 -0
  206. package/dist/knowledge/treasury-context.d.ts +64 -0
  207. package/dist/knowledge/treasury-context.js +363 -0
  208. package/dist/knowledge/treasury-ledger.d.ts +42 -0
  209. package/dist/knowledge/treasury-ledger.js +300 -0
  210. package/dist/knowledge/treasury-puzzle.d.ts +163 -0
  211. package/dist/knowledge/treasury-puzzle.js +216 -0
  212. package/dist/knowledge/treasury-risk.d.ts +86 -0
  213. package/dist/knowledge/treasury-risk.js +440 -0
  214. package/dist/knowledge/treasury-templates.d.ts +38 -0
  215. package/dist/knowledge/treasury-templates.js +316 -0
  216. package/dist/knowledge/treasury-translation.d.ts +78 -0
  217. package/dist/knowledge/treasury-translation.js +498 -0
  218. package/dist/knowledge/util-risk.d.ts +30 -0
  219. package/dist/knowledge/util-risk.js +135 -0
  220. package/dist/project/business-puzzle.d.ts +47 -0
  221. package/dist/project/business-puzzle.js +372 -0
  222. package/dist/project/deployment-doc.d.ts +61 -0
  223. package/dist/project/deployment-doc.js +432 -0
  224. package/dist/project/graph.d.ts +1 -0
  225. package/dist/project/graph.js +27 -1
  226. package/dist/project/index.d.ts +1 -0
  227. package/dist/project/index.js +39 -2
  228. package/dist/project/namespace.d.ts +11 -1
  229. package/dist/project/namespace.js +27 -2
  230. package/dist/project/query.d.ts +2 -0
  231. package/dist/project/query.js +56 -15
  232. package/dist/project/risk-aggregator.d.ts +50 -0
  233. package/dist/project/risk-aggregator.js +280 -0
  234. package/dist/project/substep-trace.d.ts +130 -0
  235. package/dist/project/substep-trace.js +332 -0
  236. package/dist/rules.d.ts +12 -0
  237. package/dist/rules.js +9 -0
  238. package/dist/schema/call/allocation.d.ts +44 -44
  239. package/dist/schema/call/arbitration.d.ts +141 -141
  240. package/dist/schema/call/base.d.ts +386 -386
  241. package/dist/schema/call/base.js +6 -6
  242. package/dist/schema/call/bridge-handler.d.ts +5 -2
  243. package/dist/schema/call/bridge.d.ts +159 -159
  244. package/dist/schema/call/contact.d.ts +110 -110
  245. package/dist/schema/call/demand.d.ts +76 -76
  246. package/dist/schema/call/handler.d.ts +2 -3
  247. package/dist/schema/call/handler.js +1 -1
  248. package/dist/schema/call/machine.d.ts +96 -96
  249. package/dist/schema/call/order.d.ts +98 -110
  250. package/dist/schema/call/permission-handler.d.ts +5 -0
  251. package/dist/schema/call/permission-handler.js +54 -0
  252. package/dist/schema/call/permission.d.ts +108 -108
  253. package/dist/schema/call/personal.d.ts +14 -14
  254. package/dist/schema/call/progress.d.ts +57 -72
  255. package/dist/schema/call/progress.js +7 -4
  256. package/dist/schema/call/proof.d.ts +18 -18
  257. package/dist/schema/call/proof.js +12 -7
  258. package/dist/schema/call/repository.d.ts +154 -154
  259. package/dist/schema/call/reward.d.ts +55 -55
  260. package/dist/schema/call/semantic.js +1 -1
  261. package/dist/schema/call/service.d.ts +238 -238
  262. package/dist/schema/call/treasury.d.ts +93 -93
  263. package/dist/schema/config/index.d.ts +178 -5
  264. package/dist/schema/config/index.js +52 -1
  265. package/dist/schema/local/index.d.ts +3554 -836
  266. package/dist/schema/local/index.js +2 -1
  267. package/dist/schema/messenger/index.d.ts +162 -162
  268. package/dist/schema/operations.d.ts +1102 -1118
  269. package/dist/schema/operations.js +7 -1
  270. package/dist/schema/project/index.d.ts +1392 -6
  271. package/dist/schema/project/index.js +426 -2
  272. package/dist/schema/query/index.d.ts +818 -818
  273. package/dist/schema/query/index.js +15 -9
  274. package/dist/schema/schema-query/index.d.ts +23 -3
  275. package/dist/schema/schema-query/index.js +13 -2
  276. package/dist/schema/sync-layer4.d.ts +21 -0
  277. package/dist/schema/sync-layer4.js +261 -0
  278. package/dist/schema/trust/index.d.ts +26 -26
  279. package/dist/schema/utils/guard-query-utils.d.ts +7 -0
  280. package/dist/schema/utils/guard-query-utils.js +14 -1
  281. package/dist/schemas/account_operation.output.json +718 -0
  282. package/dist/schemas/bridge_operation.output.json +1 -1
  283. package/dist/schemas/config_operation.output.json +173 -0
  284. package/dist/schemas/index.json +9 -1
  285. package/dist/schemas/local_info_operation.output.json +718 -0
  286. package/dist/schemas/local_mark_operation.output.json +718 -0
  287. package/dist/schemas/messenger_operation.output.json +1 -1
  288. package/dist/schemas/onchain_events.output.json +1 -1
  289. package/dist/schemas/onchain_operations.output.json +5 -4
  290. package/dist/schemas/onchain_operations.schema.json +1813 -333
  291. package/dist/schemas/onchain_operations_allocation.schema.json +9 -11
  292. package/dist/schemas/onchain_operations_arbitration.schema.json +2 -1
  293. package/dist/schemas/onchain_operations_contact.schema.json +2 -1
  294. package/dist/schemas/onchain_operations_demand.schema.json +2 -1
  295. package/dist/schemas/onchain_operations_gen_passport.schema.json +878 -872
  296. package/dist/schemas/onchain_operations_gen_proof.schema.json +273 -0
  297. package/dist/schemas/onchain_operations_guard.schema.json +584 -70
  298. package/dist/schemas/onchain_operations_machine.schema.json +4 -6
  299. package/dist/schemas/onchain_operations_order.schema.json +13 -9
  300. package/dist/schemas/onchain_operations_payment.schema.json +2 -1
  301. package/dist/schemas/onchain_operations_permission.schema.json +2 -1
  302. package/dist/schemas/onchain_operations_personal.schema.json +2 -1
  303. package/dist/schemas/onchain_operations_progress.schema.json +14 -10
  304. package/dist/schemas/onchain_operations_proof.schema.json +699 -0
  305. package/dist/schemas/onchain_operations_repository.schema.json +2 -1
  306. package/dist/schemas/onchain_operations_reward.schema.json +2 -1
  307. package/dist/schemas/onchain_operations_service.schema.json +4 -6
  308. package/dist/schemas/onchain_operations_treasury.schema.json +2 -1
  309. package/dist/schemas/onchain_table_data.output.json +6 -12
  310. package/dist/schemas/onchain_table_data.schema.json +32 -1
  311. package/dist/schemas/project_operation.output.json +879 -0
  312. package/dist/schemas/project_operation.schema.json +473 -2
  313. package/dist/schemas/query_toolkit.output.json +14906 -6
  314. package/dist/schemas/schema_query.output.json +38 -1
  315. package/dist/telemetry/index.d.ts +1 -1
  316. package/dist/tools/handlers/bridge.d.ts +1 -0
  317. package/dist/tools/handlers/bridge.js +1 -0
  318. package/dist/tools/handlers/config.d.ts +2 -0
  319. package/dist/tools/handlers/config.js +74 -0
  320. package/dist/tools/handlers/file-export.d.ts +3 -0
  321. package/dist/tools/handlers/file-export.js +90 -0
  322. package/dist/tools/handlers/local.d.ts +3 -0
  323. package/dist/tools/handlers/local.js +38 -0
  324. package/dist/tools/handlers/messenger.d.ts +16 -0
  325. package/dist/tools/handlers/messenger.js +188 -0
  326. package/dist/tools/handlers/onchain.d.ts +2 -0
  327. package/dist/tools/handlers/onchain.js +248 -0
  328. package/dist/tools/handlers/project.d.ts +2 -0
  329. package/dist/tools/handlers/project.js +293 -0
  330. package/dist/tools/handlers/query.d.ts +5 -0
  331. package/dist/tools/handlers/query.js +256 -0
  332. package/dist/tools/handlers/schema-query.d.ts +2 -0
  333. package/dist/tools/handlers/schema-query.js +93 -0
  334. package/dist/tools/handlers/trust.d.ts +2 -0
  335. package/dist/tools/handlers/trust.js +194 -0
  336. package/dist/tools/handlers/wip.d.ts +2 -0
  337. package/dist/tools/handlers/wip.js +44 -0
  338. package/dist/tools/index.d.ts +13 -0
  339. package/dist/tools/index.js +526 -0
  340. package/dist/tools/rules-hook.d.ts +2 -0
  341. package/dist/tools/rules-hook.js +23 -0
  342. package/dist/tools/shared.d.ts +20 -0
  343. package/dist/tools/shared.js +130 -0
  344. package/dist/tools/types.d.ts +35 -0
  345. package/dist/tools/types.js +1 -0
  346. package/dist/tools/wrap.d.ts +14 -0
  347. package/dist/tools/wrap.js +267 -0
  348. package/package.json +20 -6
@@ -8,742 +8,87 @@
8
8
  "operation_type": {
9
9
  "const": "gen_passport"
10
10
  },
11
- "data": {
12
- "$ref": "#/definitions/data",
13
- "$schema": "http://json-schema.org/draft-07/schema#"
14
- },
15
- "env": {
16
- "$ref": "#/definitions/env",
17
- "$schema": "http://json-schema.org/draft-07/schema#"
11
+ "guard": {
12
+ "anyOf": [
13
+ {
14
+ "type": "string",
15
+ "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)."
16
+ },
17
+ {
18
+ "type": "array",
19
+ "items": {
20
+ "$ref": "#/definitions/data/properties/guard/anyOf/0"
21
+ }
22
+ }
23
+ ],
24
+ "description": "Guard object ID(s) to verify and generate passport from. Can be a single guard (string) or multiple guards (array of strings). Supports guard names or addresses."
18
25
  },
19
- "submission": {
20
- "$ref": "#/definitions/submission",
21
- "$schema": "http://json-schema.org/draft-07/schema#"
22
- }
23
- },
24
- "required": [
25
- "operation_type",
26
- "data"
27
- ],
28
- "definitions": {
29
- "data": {
26
+ "info": {
30
27
  "type": "object",
31
28
  "properties": {
29
+ "type": {
30
+ "type": "string",
31
+ "const": "submission",
32
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
33
+ },
32
34
  "guard": {
33
- "anyOf": [
34
- {
35
- "type": "string",
36
- "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)."
37
- },
38
- {
39
- "type": "array",
40
- "items": {
41
- "$ref": "#/definitions/data/properties/guard/anyOf/0"
35
+ "type": "array",
36
+ "items": {
37
+ "type": "object",
38
+ "properties": {
39
+ "object": {
40
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
41
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
42
+ },
43
+ "impack": {
44
+ "type": "boolean",
45
+ "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"
42
46
  }
43
- }
44
- ],
45
- "description": "Guard object ID(s) to verify and generate passport from. Can be a single guard (string) or multiple guards (array of strings). Supports guard names or addresses."
46
- },
47
- "info": {
48
- "type": "object",
49
- "properties": {
50
- "type": {
51
- "type": "string",
52
- "const": "submission",
53
- "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
54
47
  },
55
- "guard": {
56
- "type": "array",
57
- "items": {
58
- "type": "object",
59
- "properties": {
60
- "object": {
61
- "$ref": "#/definitions/data/properties/guard/anyOf/0",
62
- "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
63
- },
64
- "impack": {
65
- "type": "boolean",
66
- "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"
67
- }
68
- },
69
- "required": [
70
- "object",
71
- "impack"
72
- ],
73
- "additionalProperties": false
48
+ "required": [
49
+ "object",
50
+ "impack"
51
+ ],
52
+ "additionalProperties": false
53
+ },
54
+ "maxItems": 20,
55
+ "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."
56
+ },
57
+ "submission": {
58
+ "type": "array",
59
+ "items": {
60
+ "type": "object",
61
+ "properties": {
62
+ "guard": {
63
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
64
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
74
65
  },
75
- "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
76
- },
77
- "submission": {
78
- "type": "array",
79
- "items": {
80
- "type": "object",
81
- "properties": {
82
- "guard": {
83
- "$ref": "#/definitions/data/properties/guard/anyOf/0",
84
- "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
85
- },
86
- "submission": {
87
- "type": "array",
88
- "items": {
89
- "type": "object",
90
- "properties": {
91
- "identifier": {
92
- "type": "integer",
93
- "minimum": 0,
94
- "maximum": 255,
95
- "description": "Identifier (0-255) for data lookup in Guard table."
66
+ "submission": {
67
+ "type": "array",
68
+ "items": {
69
+ "type": "object",
70
+ "properties": {
71
+ "identifier": {
72
+ "type": "integer",
73
+ "minimum": 0,
74
+ "maximum": 255,
75
+ "description": "Identifier (0-255) for data lookup in Guard table."
76
+ },
77
+ "b_submission": {
78
+ "type": "boolean",
79
+ "description": "Whether user submission is required for this data"
80
+ },
81
+ "value_type": {
82
+ "anyOf": [
83
+ {
84
+ "type": "number",
85
+ "const": 0,
86
+ "description": "Bool (0)"
96
87
  },
97
- "b_submission": {
98
- "type": "boolean",
99
- "description": "Whether user submission is required for this data"
100
- },
101
- "value_type": {
102
- "anyOf": [
103
- {
104
- "type": "number",
105
- "const": 0,
106
- "description": "Bool (0)"
107
- },
108
- {
109
- "type": "number",
110
- "const": 1,
111
- "description": "Address (1)"
112
- },
113
- {
114
- "type": "number",
115
- "const": 2,
116
- "description": "String (2)"
117
- },
118
- {
119
- "type": "number",
120
- "const": 3,
121
- "description": "U8 (3)"
122
- },
123
- {
124
- "type": "number",
125
- "const": 4,
126
- "description": "U16 (4)"
127
- },
128
- {
129
- "type": "number",
130
- "const": 5,
131
- "description": "U32 (5)"
132
- },
133
- {
134
- "type": "number",
135
- "const": 6,
136
- "description": "U64 (6)"
137
- },
138
- {
139
- "type": "number",
140
- "const": 7,
141
- "description": "U128 (7)"
142
- },
143
- {
144
- "type": "number",
145
- "const": 8,
146
- "description": "U256 (8)"
147
- },
148
- {
149
- "type": "number",
150
- "const": 9,
151
- "description": "VecBool (9)"
152
- },
153
- {
154
- "type": "number",
155
- "const": 10,
156
- "description": "VecAddress (10)"
157
- },
158
- {
159
- "type": "number",
160
- "const": 11,
161
- "description": "VecString (11)"
162
- },
163
- {
164
- "type": "number",
165
- "const": 12,
166
- "description": "VecU8 (12)"
167
- },
168
- {
169
- "type": "number",
170
- "const": 13,
171
- "description": "VecU16 (13)"
172
- },
173
- {
174
- "type": "number",
175
- "const": 14,
176
- "description": "VecU32 (14)"
177
- },
178
- {
179
- "type": "number",
180
- "const": 15,
181
- "description": "VecU64 (15)"
182
- },
183
- {
184
- "type": "number",
185
- "const": 16,
186
- "description": "VecU128 (16)"
187
- },
188
- {
189
- "type": "number",
190
- "const": 17,
191
- "description": "VecU256 (17)"
192
- },
193
- {
194
- "type": "number",
195
- "const": 18,
196
- "description": "VecVecU8 (18)"
197
- },
198
- {
199
- "type": "string",
200
- "const": "Bool",
201
- "description": "Bool"
202
- },
203
- {
204
- "type": "string",
205
- "const": "Address",
206
- "description": "Address"
207
- },
208
- {
209
- "type": "string",
210
- "const": "String",
211
- "description": "String"
212
- },
213
- {
214
- "type": "string",
215
- "const": "U8",
216
- "description": "U8"
217
- },
218
- {
219
- "type": "string",
220
- "const": "U16",
221
- "description": "U16"
222
- },
223
- {
224
- "type": "string",
225
- "const": "U32",
226
- "description": "U32"
227
- },
228
- {
229
- "type": "string",
230
- "const": "U64",
231
- "description": "U64"
232
- },
233
- {
234
- "type": "string",
235
- "const": "U128",
236
- "description": "U128"
237
- },
238
- {
239
- "type": "string",
240
- "const": "U256",
241
- "description": "U256"
242
- },
243
- {
244
- "type": "string",
245
- "const": "VecBool",
246
- "description": "VecBool"
247
- },
248
- {
249
- "type": "string",
250
- "const": "VecAddress",
251
- "description": "VecAddress"
252
- },
253
- {
254
- "type": "string",
255
- "const": "VecString",
256
- "description": "VecString"
257
- },
258
- {
259
- "type": "string",
260
- "const": "VecU8",
261
- "description": "VecU8"
262
- },
263
- {
264
- "type": "string",
265
- "const": "VecU16",
266
- "description": "VecU16"
267
- },
268
- {
269
- "type": "string",
270
- "const": "VecU32",
271
- "description": "VecU32"
272
- },
273
- {
274
- "type": "string",
275
- "const": "VecU64",
276
- "description": "VecU64"
277
- },
278
- {
279
- "type": "string",
280
- "const": "VecU128",
281
- "description": "VecU128"
282
- },
283
- {
284
- "type": "string",
285
- "const": "VecU256",
286
- "description": "VecU256"
287
- },
288
- {
289
- "type": "string",
290
- "const": "VecVecU8",
291
- "description": "VecVecU8"
292
- },
293
- {
294
- "type": "string",
295
- "const": "bool",
296
- "description": "bool"
297
- },
298
- {
299
- "type": "string",
300
- "const": "address",
301
- "description": "address"
302
- },
303
- {
304
- "type": "string",
305
- "const": "string",
306
- "description": "string"
307
- },
308
- {
309
- "type": "string",
310
- "const": "u8",
311
- "description": "u8"
312
- },
313
- {
314
- "type": "string",
315
- "const": "u16",
316
- "description": "u16"
317
- },
318
- {
319
- "type": "string",
320
- "const": "u32",
321
- "description": "u32"
322
- },
323
- {
324
- "type": "string",
325
- "const": "u64",
326
- "description": "u64"
327
- },
328
- {
329
- "type": "string",
330
- "const": "u128",
331
- "description": "u128"
332
- },
333
- {
334
- "type": "string",
335
- "const": "u256",
336
- "description": "u256"
337
- },
338
- {
339
- "type": "string",
340
- "const": "vecbool",
341
- "description": "vecbool"
342
- },
343
- {
344
- "type": "string",
345
- "const": "vecaddress",
346
- "description": "vecaddress"
347
- },
348
- {
349
- "type": "string",
350
- "const": "vecstring",
351
- "description": "vecstring"
352
- },
353
- {
354
- "type": "string",
355
- "const": "vecu8",
356
- "description": "vecu8"
357
- },
358
- {
359
- "type": "string",
360
- "const": "vecu16",
361
- "description": "vecu16"
362
- },
363
- {
364
- "type": "string",
365
- "const": "vecu32",
366
- "description": "vecu32"
367
- },
368
- {
369
- "type": "string",
370
- "const": "vecu64",
371
- "description": "vecu64"
372
- },
373
- {
374
- "type": "string",
375
- "const": "vecu128",
376
- "description": "vecu128"
377
- },
378
- {
379
- "type": "string",
380
- "const": "vecu256",
381
- "description": "vecu256"
382
- },
383
- {
384
- "type": "string",
385
- "const": "vecvecu8",
386
- "description": "vecvecu8"
387
- }
388
- ],
389
- "description": "Type of the value"
390
- },
391
- "value": {
392
- "anyOf": [
393
- {
394
- "type": "boolean"
395
- },
396
- {
397
- "anyOf": [
398
- {
399
- "type": "object",
400
- "properties": {
401
- "name_or_address": {
402
- "$ref": "#/definitions/data/properties/guard/anyOf/0",
403
- "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)."
404
- },
405
- "local_mark_first": {
406
- "type": "boolean",
407
- "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
408
- }
409
- },
410
- "additionalProperties": false,
411
- "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."
412
- },
413
- {
414
- "type": "string"
415
- }
416
- ]
417
- },
418
- {
419
- "type": "string"
420
- },
421
- {
422
- "type": "number"
423
- },
424
- {
425
- "type": "array",
426
- "items": {
427
- "type": "boolean"
428
- }
429
- },
430
- {
431
- "anyOf": [
432
- {
433
- "type": "object",
434
- "properties": {
435
- "entities": {
436
- "type": "array",
437
- "items": {
438
- "$ref": "#/definitions/data/properties/info/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
439
- }
440
- },
441
- "check_all_founded": {
442
- "type": "boolean",
443
- "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"
444
- }
445
- },
446
- "required": [
447
- "entities"
448
- ],
449
- "additionalProperties": false,
450
- "description": "Used to batch find account or object IDs by name"
451
- },
452
- {
453
- "type": "array",
454
- "items": {
455
- "type": "string"
456
- }
457
- }
458
- ]
459
- },
460
- {
461
- "type": "array",
462
- "items": {
463
- "type": "string"
464
- }
465
- },
466
- {
467
- "type": "array",
468
- "items": {
469
- "type": "number"
470
- }
471
- },
472
- {
473
- "type": "array",
474
- "items": {
475
- "type": "array",
476
- "items": {
477
- "type": "number"
478
- }
479
- }
480
- }
481
- ],
482
- "description": "The actual value data"
483
- },
484
- "name": {
485
- "type": "string",
486
- "default": "",
487
- "description": "Name or description of this data"
488
- },
489
- "object_type": {
490
- "type": "string",
491
- "enum": [
492
- "Permission",
493
- "Repository",
494
- "Arb",
495
- "Arbitration",
496
- "Service",
497
- "Machine",
498
- "Order",
499
- "Progress",
500
- "Payment",
501
- "Treasury",
502
- "Guard",
503
- "Demand",
504
- "Passport",
505
- "Allocation",
506
- "Resource",
507
- "Reward",
508
- "Discount",
509
- "EntityRegistrar",
510
- "EntityLinker",
511
- "Proof",
512
- "WReceivedObject",
513
- "Contact",
514
- "TableItem_ProgressHistory",
515
- "TableItem_PermissionPerm",
516
- "TableItem_DemandPresenter",
517
- "TableItem_MachineNode",
518
- "TableItem_TreasuryHistory",
519
- "TableItem_RepositoryData",
520
- "TableItem_RewardRecord",
521
- "TableItem_EntityLinker",
522
- "TableItem_AddressMark",
523
- "TableItem_EntityRegistrar"
524
- ],
525
- "description": "Object type when value_type is Address and represents a specific object"
526
- }
527
- },
528
- "required": [
529
- "identifier",
530
- "b_submission",
531
- "value_type"
532
- ],
533
- "additionalProperties": false,
534
- "description": "Guard table item"
535
- },
536
- "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...'}]"
537
- }
538
- },
539
- "required": [
540
- "guard",
541
- "submission"
542
- ],
543
- "additionalProperties": false,
544
- "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
545
- },
546
- "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."
547
- }
548
- },
549
- "required": [
550
- "type",
551
- "guard",
552
- "submission"
553
- ],
554
- "additionalProperties": false,
555
- "description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard."
556
- },
557
- "env": {
558
- "type": "object",
559
- "properties": {
560
- "account": {
561
- "$ref": "#/definitions/data/properties/guard/anyOf/0",
562
- "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).",
563
- "default": ""
564
- },
565
- "permission_guard": {
566
- "type": "array",
567
- "items": {
568
- "type": "string"
569
- },
570
- "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
571
- },
572
- "no_cache": {
573
- "type": "boolean",
574
- "description": "Whether to disable caching."
575
- },
576
- "network": {
577
- "type": "string",
578
- "enum": [
579
- "localnet",
580
- "testnet",
581
- "mainnet"
582
- ],
583
- "description": "Network entrypoint: Specifies which network the operation occurs on"
584
- },
585
- "referrer": {
586
- "$ref": "#/definitions/data/properties/guard/anyOf/0",
587
- "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
588
- },
589
- "confirmed": {
590
- "type": "boolean",
591
- "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
592
- },
593
- "user_intent_phrases": {
594
- "type": "array",
595
- "items": {
596
- "type": "string"
597
- },
598
- "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
599
- },
600
- "project": {
601
- "type": "string",
602
- "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
603
- },
604
- "client_schema_version": {
605
- "type": "string",
606
- "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
607
- },
608
- "schema_strict_mode": {
609
- "type": "boolean",
610
- "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
611
- }
612
- },
613
- "additionalProperties": false,
614
- "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."
615
- }
616
- },
617
- "required": [
618
- "guard"
619
- ],
620
- "additionalProperties": false,
621
- "description": "Generate a new Passport object after Guard verification succeeds. The Passport is an immutable on-chain object that can be used for offline friend verification, transaction condition verification, etc. Supports verifying multiple guards at once."
622
- },
623
- "env": {
624
- "type": "object",
625
- "properties": {
626
- "account": {
627
- "type": "string",
628
- "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).",
629
- "default": ""
630
- },
631
- "permission_guard": {
632
- "type": "array",
633
- "items": {
634
- "type": "string"
635
- },
636
- "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
637
- },
638
- "no_cache": {
639
- "type": "boolean",
640
- "description": "Whether to disable caching."
641
- },
642
- "network": {
643
- "type": "string",
644
- "enum": [
645
- "localnet",
646
- "testnet",
647
- "mainnet"
648
- ],
649
- "description": "Network entrypoint: Specifies which network the operation occurs on"
650
- },
651
- "referrer": {
652
- "$ref": "#/definitions/env/properties/account",
653
- "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
654
- },
655
- "confirmed": {
656
- "type": "boolean",
657
- "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
658
- },
659
- "user_intent_phrases": {
660
- "type": "array",
661
- "items": {
662
- "type": "string"
663
- },
664
- "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
665
- },
666
- "project": {
667
- "type": "string",
668
- "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
669
- },
670
- "client_schema_version": {
671
- "type": "string",
672
- "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
673
- },
674
- "schema_strict_mode": {
675
- "type": "boolean",
676
- "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
677
- }
678
- },
679
- "additionalProperties": false,
680
- "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."
681
- },
682
- "submission": {
683
- "type": "object",
684
- "properties": {
685
- "type": {
686
- "type": "string",
687
- "const": "submission",
688
- "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
689
- },
690
- "guard": {
691
- "type": "array",
692
- "items": {
693
- "type": "object",
694
- "properties": {
695
- "object": {
696
- "type": "string",
697
- "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
698
- },
699
- "impack": {
700
- "type": "boolean",
701
- "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"
702
- }
703
- },
704
- "required": [
705
- "object",
706
- "impack"
707
- ],
708
- "additionalProperties": false
709
- },
710
- "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
711
- },
712
- "submission": {
713
- "type": "array",
714
- "items": {
715
- "type": "object",
716
- "properties": {
717
- "guard": {
718
- "$ref": "#/definitions/submission/properties/guard/items/properties/object",
719
- "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
720
- },
721
- "submission": {
722
- "type": "array",
723
- "items": {
724
- "type": "object",
725
- "properties": {
726
- "identifier": {
727
- "type": "integer",
728
- "minimum": 0,
729
- "maximum": 255,
730
- "description": "Identifier (0-255) for data lookup in Guard table."
731
- },
732
- "b_submission": {
733
- "type": "boolean",
734
- "description": "Whether user submission is required for this data"
735
- },
736
- "value_type": {
737
- "anyOf": [
738
- {
739
- "type": "number",
740
- "const": 0,
741
- "description": "Bool (0)"
742
- },
743
- {
744
- "type": "number",
745
- "const": 1,
746
- "description": "Address (1)"
88
+ {
89
+ "type": "number",
90
+ "const": 1,
91
+ "description": "Address (1)"
747
92
  },
748
93
  {
749
94
  "type": "number",
@@ -1010,184 +355,845 @@
1010
355
  "const": "vecu128",
1011
356
  "description": "vecu128"
1012
357
  },
1013
- {
1014
- "type": "string",
1015
- "const": "vecu256",
1016
- "description": "vecu256"
358
+ {
359
+ "type": "string",
360
+ "const": "vecu256",
361
+ "description": "vecu256"
362
+ },
363
+ {
364
+ "type": "string",
365
+ "const": "vecvecu8",
366
+ "description": "vecvecu8"
367
+ }
368
+ ],
369
+ "description": "Type of the value"
370
+ },
371
+ "value": {
372
+ "anyOf": [
373
+ {
374
+ "type": "boolean"
375
+ },
376
+ {
377
+ "anyOf": [
378
+ {
379
+ "type": "object",
380
+ "properties": {
381
+ "name_or_address": {
382
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
383
+ "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)."
384
+ },
385
+ "local_mark_first": {
386
+ "type": "boolean",
387
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
388
+ }
389
+ },
390
+ "additionalProperties": false,
391
+ "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."
392
+ },
393
+ {
394
+ "type": "string"
395
+ }
396
+ ]
397
+ },
398
+ {
399
+ "type": "string"
400
+ },
401
+ {
402
+ "type": "number"
403
+ },
404
+ {
405
+ "type": "array",
406
+ "items": {
407
+ "type": "boolean"
408
+ }
409
+ },
410
+ {
411
+ "anyOf": [
412
+ {
413
+ "type": "object",
414
+ "properties": {
415
+ "entities": {
416
+ "type": "array",
417
+ "items": {
418
+ "$ref": "#/definitions/data/properties/info/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
419
+ }
420
+ },
421
+ "check_all_founded": {
422
+ "type": "boolean",
423
+ "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"
424
+ }
425
+ },
426
+ "required": [
427
+ "entities"
428
+ ],
429
+ "additionalProperties": false,
430
+ "description": "Used to batch find account or object IDs by name"
431
+ },
432
+ {
433
+ "type": "array",
434
+ "items": {
435
+ "type": "string"
436
+ }
437
+ }
438
+ ]
439
+ },
440
+ {
441
+ "type": "array",
442
+ "items": {
443
+ "type": "string"
444
+ }
445
+ },
446
+ {
447
+ "type": "array",
448
+ "items": {
449
+ "type": "number"
450
+ }
451
+ },
452
+ {
453
+ "type": "array",
454
+ "items": {
455
+ "type": "array",
456
+ "items": {
457
+ "type": "number"
458
+ }
459
+ }
460
+ }
461
+ ],
462
+ "description": "The actual value data"
463
+ },
464
+ "name": {
465
+ "type": "string",
466
+ "default": "",
467
+ "description": "Name or description of this data"
468
+ },
469
+ "object_type": {
470
+ "type": "string",
471
+ "enum": [
472
+ "Permission",
473
+ "Repository",
474
+ "Arb",
475
+ "Arbitration",
476
+ "Service",
477
+ "Machine",
478
+ "Order",
479
+ "Progress",
480
+ "Payment",
481
+ "Treasury",
482
+ "Guard",
483
+ "Demand",
484
+ "Passport",
485
+ "Allocation",
486
+ "Resource",
487
+ "Reward",
488
+ "Discount",
489
+ "EntityRegistrar",
490
+ "EntityLinker",
491
+ "Proof",
492
+ "WReceivedObject",
493
+ "Contact",
494
+ "TableItem_ProgressHistory",
495
+ "TableItem_PermissionPerm",
496
+ "TableItem_DemandPresenter",
497
+ "TableItem_MachineNode",
498
+ "TableItem_TreasuryHistory",
499
+ "TableItem_RepositoryData",
500
+ "TableItem_RewardRecord",
501
+ "TableItem_EntityLinker",
502
+ "TableItem_AddressMark",
503
+ "TableItem_EntityRegistrar"
504
+ ],
505
+ "description": "Object type when value_type is Address and represents a specific object"
506
+ }
507
+ },
508
+ "required": [
509
+ "identifier",
510
+ "b_submission",
511
+ "value_type"
512
+ ],
513
+ "additionalProperties": false,
514
+ "description": "Guard table item"
515
+ },
516
+ "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...'}]"
517
+ }
518
+ },
519
+ "required": [
520
+ "guard",
521
+ "submission"
522
+ ],
523
+ "additionalProperties": false,
524
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
525
+ },
526
+ "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."
527
+ }
528
+ },
529
+ "required": [
530
+ "type",
531
+ "guard",
532
+ "submission"
533
+ ],
534
+ "additionalProperties": false,
535
+ "description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard."
536
+ },
537
+ "env": {
538
+ "type": "object",
539
+ "properties": {
540
+ "account": {
541
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
542
+ "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).",
543
+ "default": ""
544
+ },
545
+ "permission_guard": {
546
+ "type": "array",
547
+ "items": {
548
+ "type": "string"
549
+ },
550
+ "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
551
+ },
552
+ "no_cache": {
553
+ "type": "boolean",
554
+ "description": "Whether to disable caching."
555
+ },
556
+ "network": {
557
+ "type": "string",
558
+ "enum": [
559
+ "localnet",
560
+ "testnet",
561
+ "mainnet"
562
+ ],
563
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
564
+ },
565
+ "referrer": {
566
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
567
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
568
+ },
569
+ "confirmed": {
570
+ "type": "boolean",
571
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
572
+ },
573
+ "user_intent_phrases": {
574
+ "type": "array",
575
+ "items": {
576
+ "type": "string"
577
+ },
578
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
579
+ },
580
+ "project": {
581
+ "type": "string",
582
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
583
+ },
584
+ "client_schema_version": {
585
+ "type": "string",
586
+ "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
587
+ },
588
+ "schema_strict_mode": {
589
+ "type": "boolean",
590
+ "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
591
+ }
592
+ },
593
+ "additionalProperties": false,
594
+ "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."
595
+ }
596
+ },
597
+ "required": [
598
+ "operation_type",
599
+ "guard"
600
+ ],
601
+ "additionalProperties": false,
602
+ "definitions": {
603
+ "data": {
604
+ "type": "object",
605
+ "properties": {
606
+ "guard": {
607
+ "anyOf": [
608
+ {
609
+ "type": "string",
610
+ "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)."
611
+ },
612
+ {
613
+ "type": "array",
614
+ "items": {
615
+ "$ref": "#/definitions/data/properties/guard/anyOf/0"
616
+ }
617
+ }
618
+ ],
619
+ "description": "Guard object ID(s) to verify and generate passport from. Can be a single guard (string) or multiple guards (array of strings). Supports guard names or addresses."
620
+ },
621
+ "info": {
622
+ "type": "object",
623
+ "properties": {
624
+ "type": {
625
+ "type": "string",
626
+ "const": "submission",
627
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
628
+ },
629
+ "guard": {
630
+ "type": "array",
631
+ "items": {
632
+ "type": "object",
633
+ "properties": {
634
+ "object": {
635
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
636
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
637
+ },
638
+ "impack": {
639
+ "type": "boolean",
640
+ "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"
641
+ }
642
+ },
643
+ "required": [
644
+ "object",
645
+ "impack"
646
+ ],
647
+ "additionalProperties": false
648
+ },
649
+ "maxItems": 20,
650
+ "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."
651
+ },
652
+ "submission": {
653
+ "type": "array",
654
+ "items": {
655
+ "type": "object",
656
+ "properties": {
657
+ "guard": {
658
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
659
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
660
+ },
661
+ "submission": {
662
+ "type": "array",
663
+ "items": {
664
+ "type": "object",
665
+ "properties": {
666
+ "identifier": {
667
+ "type": "integer",
668
+ "minimum": 0,
669
+ "maximum": 255,
670
+ "description": "Identifier (0-255) for data lookup in Guard table."
671
+ },
672
+ "b_submission": {
673
+ "type": "boolean",
674
+ "description": "Whether user submission is required for this data"
1017
675
  },
1018
- {
1019
- "type": "string",
1020
- "const": "vecvecu8",
1021
- "description": "vecvecu8"
1022
- }
1023
- ],
1024
- "description": "Type of the value"
1025
- },
1026
- "value": {
1027
- "anyOf": [
1028
- {
1029
- "type": "boolean"
676
+ "value_type": {
677
+ "anyOf": [
678
+ {
679
+ "type": "number",
680
+ "const": 0,
681
+ "description": "Bool (0)"
682
+ },
683
+ {
684
+ "type": "number",
685
+ "const": 1,
686
+ "description": "Address (1)"
687
+ },
688
+ {
689
+ "type": "number",
690
+ "const": 2,
691
+ "description": "String (2)"
692
+ },
693
+ {
694
+ "type": "number",
695
+ "const": 3,
696
+ "description": "U8 (3)"
697
+ },
698
+ {
699
+ "type": "number",
700
+ "const": 4,
701
+ "description": "U16 (4)"
702
+ },
703
+ {
704
+ "type": "number",
705
+ "const": 5,
706
+ "description": "U32 (5)"
707
+ },
708
+ {
709
+ "type": "number",
710
+ "const": 6,
711
+ "description": "U64 (6)"
712
+ },
713
+ {
714
+ "type": "number",
715
+ "const": 7,
716
+ "description": "U128 (7)"
717
+ },
718
+ {
719
+ "type": "number",
720
+ "const": 8,
721
+ "description": "U256 (8)"
722
+ },
723
+ {
724
+ "type": "number",
725
+ "const": 9,
726
+ "description": "VecBool (9)"
727
+ },
728
+ {
729
+ "type": "number",
730
+ "const": 10,
731
+ "description": "VecAddress (10)"
732
+ },
733
+ {
734
+ "type": "number",
735
+ "const": 11,
736
+ "description": "VecString (11)"
737
+ },
738
+ {
739
+ "type": "number",
740
+ "const": 12,
741
+ "description": "VecU8 (12)"
742
+ },
743
+ {
744
+ "type": "number",
745
+ "const": 13,
746
+ "description": "VecU16 (13)"
747
+ },
748
+ {
749
+ "type": "number",
750
+ "const": 14,
751
+ "description": "VecU32 (14)"
752
+ },
753
+ {
754
+ "type": "number",
755
+ "const": 15,
756
+ "description": "VecU64 (15)"
757
+ },
758
+ {
759
+ "type": "number",
760
+ "const": 16,
761
+ "description": "VecU128 (16)"
762
+ },
763
+ {
764
+ "type": "number",
765
+ "const": 17,
766
+ "description": "VecU256 (17)"
767
+ },
768
+ {
769
+ "type": "number",
770
+ "const": 18,
771
+ "description": "VecVecU8 (18)"
772
+ },
773
+ {
774
+ "type": "string",
775
+ "const": "Bool",
776
+ "description": "Bool"
777
+ },
778
+ {
779
+ "type": "string",
780
+ "const": "Address",
781
+ "description": "Address"
782
+ },
783
+ {
784
+ "type": "string",
785
+ "const": "String",
786
+ "description": "String"
787
+ },
788
+ {
789
+ "type": "string",
790
+ "const": "U8",
791
+ "description": "U8"
792
+ },
793
+ {
794
+ "type": "string",
795
+ "const": "U16",
796
+ "description": "U16"
797
+ },
798
+ {
799
+ "type": "string",
800
+ "const": "U32",
801
+ "description": "U32"
802
+ },
803
+ {
804
+ "type": "string",
805
+ "const": "U64",
806
+ "description": "U64"
807
+ },
808
+ {
809
+ "type": "string",
810
+ "const": "U128",
811
+ "description": "U128"
812
+ },
813
+ {
814
+ "type": "string",
815
+ "const": "U256",
816
+ "description": "U256"
817
+ },
818
+ {
819
+ "type": "string",
820
+ "const": "VecBool",
821
+ "description": "VecBool"
822
+ },
823
+ {
824
+ "type": "string",
825
+ "const": "VecAddress",
826
+ "description": "VecAddress"
827
+ },
828
+ {
829
+ "type": "string",
830
+ "const": "VecString",
831
+ "description": "VecString"
832
+ },
833
+ {
834
+ "type": "string",
835
+ "const": "VecU8",
836
+ "description": "VecU8"
837
+ },
838
+ {
839
+ "type": "string",
840
+ "const": "VecU16",
841
+ "description": "VecU16"
842
+ },
843
+ {
844
+ "type": "string",
845
+ "const": "VecU32",
846
+ "description": "VecU32"
847
+ },
848
+ {
849
+ "type": "string",
850
+ "const": "VecU64",
851
+ "description": "VecU64"
852
+ },
853
+ {
854
+ "type": "string",
855
+ "const": "VecU128",
856
+ "description": "VecU128"
857
+ },
858
+ {
859
+ "type": "string",
860
+ "const": "VecU256",
861
+ "description": "VecU256"
862
+ },
863
+ {
864
+ "type": "string",
865
+ "const": "VecVecU8",
866
+ "description": "VecVecU8"
867
+ },
868
+ {
869
+ "type": "string",
870
+ "const": "bool",
871
+ "description": "bool"
872
+ },
873
+ {
874
+ "type": "string",
875
+ "const": "address",
876
+ "description": "address"
877
+ },
878
+ {
879
+ "type": "string",
880
+ "const": "string",
881
+ "description": "string"
882
+ },
883
+ {
884
+ "type": "string",
885
+ "const": "u8",
886
+ "description": "u8"
887
+ },
888
+ {
889
+ "type": "string",
890
+ "const": "u16",
891
+ "description": "u16"
892
+ },
893
+ {
894
+ "type": "string",
895
+ "const": "u32",
896
+ "description": "u32"
897
+ },
898
+ {
899
+ "type": "string",
900
+ "const": "u64",
901
+ "description": "u64"
902
+ },
903
+ {
904
+ "type": "string",
905
+ "const": "u128",
906
+ "description": "u128"
907
+ },
908
+ {
909
+ "type": "string",
910
+ "const": "u256",
911
+ "description": "u256"
912
+ },
913
+ {
914
+ "type": "string",
915
+ "const": "vecbool",
916
+ "description": "vecbool"
917
+ },
918
+ {
919
+ "type": "string",
920
+ "const": "vecaddress",
921
+ "description": "vecaddress"
922
+ },
923
+ {
924
+ "type": "string",
925
+ "const": "vecstring",
926
+ "description": "vecstring"
927
+ },
928
+ {
929
+ "type": "string",
930
+ "const": "vecu8",
931
+ "description": "vecu8"
932
+ },
933
+ {
934
+ "type": "string",
935
+ "const": "vecu16",
936
+ "description": "vecu16"
937
+ },
938
+ {
939
+ "type": "string",
940
+ "const": "vecu32",
941
+ "description": "vecu32"
942
+ },
943
+ {
944
+ "type": "string",
945
+ "const": "vecu64",
946
+ "description": "vecu64"
947
+ },
948
+ {
949
+ "type": "string",
950
+ "const": "vecu128",
951
+ "description": "vecu128"
952
+ },
953
+ {
954
+ "type": "string",
955
+ "const": "vecu256",
956
+ "description": "vecu256"
957
+ },
958
+ {
959
+ "type": "string",
960
+ "const": "vecvecu8",
961
+ "description": "vecvecu8"
962
+ }
963
+ ],
964
+ "description": "Type of the value"
1030
965
  },
1031
- {
966
+ "value": {
1032
967
  "anyOf": [
1033
968
  {
1034
- "type": "object",
1035
- "properties": {
1036
- "name_or_address": {
1037
- "$ref": "#/definitions/submission/properties/guard/items/properties/object",
1038
- "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)."
969
+ "type": "boolean"
970
+ },
971
+ {
972
+ "anyOf": [
973
+ {
974
+ "type": "object",
975
+ "properties": {
976
+ "name_or_address": {
977
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
978
+ "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)."
979
+ },
980
+ "local_mark_first": {
981
+ "type": "boolean",
982
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
983
+ }
984
+ },
985
+ "additionalProperties": false,
986
+ "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."
1039
987
  },
1040
- "local_mark_first": {
1041
- "type": "boolean",
1042
- "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
988
+ {
989
+ "type": "string"
1043
990
  }
1044
- },
1045
- "additionalProperties": false,
1046
- "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."
991
+ ]
1047
992
  },
1048
993
  {
1049
994
  "type": "string"
1050
- }
1051
- ]
1052
- },
1053
- {
1054
- "type": "string"
1055
- },
1056
- {
1057
- "type": "number"
1058
- },
1059
- {
1060
- "type": "array",
1061
- "items": {
1062
- "type": "boolean"
1063
- }
1064
- },
1065
- {
1066
- "anyOf": [
995
+ },
1067
996
  {
1068
- "type": "object",
1069
- "properties": {
1070
- "entities": {
997
+ "type": "number"
998
+ },
999
+ {
1000
+ "type": "array",
1001
+ "items": {
1002
+ "type": "boolean"
1003
+ }
1004
+ },
1005
+ {
1006
+ "anyOf": [
1007
+ {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "entities": {
1011
+ "type": "array",
1012
+ "items": {
1013
+ "$ref": "#/definitions/data/properties/info/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
1014
+ }
1015
+ },
1016
+ "check_all_founded": {
1017
+ "type": "boolean",
1018
+ "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"
1019
+ }
1020
+ },
1021
+ "required": [
1022
+ "entities"
1023
+ ],
1024
+ "additionalProperties": false,
1025
+ "description": "Used to batch find account or object IDs by name"
1026
+ },
1027
+ {
1071
1028
  "type": "array",
1072
1029
  "items": {
1073
- "$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
1030
+ "type": "string"
1074
1031
  }
1075
- },
1076
- "check_all_founded": {
1077
- "type": "boolean",
1078
- "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"
1079
1032
  }
1080
- },
1081
- "required": [
1082
- "entities"
1083
- ],
1084
- "additionalProperties": false,
1085
- "description": "Used to batch find account or object IDs by name"
1033
+ ]
1086
1034
  },
1087
1035
  {
1088
1036
  "type": "array",
1089
1037
  "items": {
1090
1038
  "type": "string"
1091
1039
  }
1040
+ },
1041
+ {
1042
+ "type": "array",
1043
+ "items": {
1044
+ "type": "number"
1045
+ }
1046
+ },
1047
+ {
1048
+ "type": "array",
1049
+ "items": {
1050
+ "type": "array",
1051
+ "items": {
1052
+ "type": "number"
1053
+ }
1054
+ }
1092
1055
  }
1093
- ]
1094
- },
1095
- {
1096
- "type": "array",
1097
- "items": {
1098
- "type": "string"
1099
- }
1056
+ ],
1057
+ "description": "The actual value data"
1100
1058
  },
1101
- {
1102
- "type": "array",
1103
- "items": {
1104
- "type": "number"
1105
- }
1059
+ "name": {
1060
+ "type": "string",
1061
+ "default": "",
1062
+ "description": "Name or description of this data"
1106
1063
  },
1107
- {
1108
- "type": "array",
1109
- "items": {
1110
- "type": "array",
1111
- "items": {
1112
- "type": "number"
1113
- }
1114
- }
1064
+ "object_type": {
1065
+ "type": "string",
1066
+ "enum": [
1067
+ "Permission",
1068
+ "Repository",
1069
+ "Arb",
1070
+ "Arbitration",
1071
+ "Service",
1072
+ "Machine",
1073
+ "Order",
1074
+ "Progress",
1075
+ "Payment",
1076
+ "Treasury",
1077
+ "Guard",
1078
+ "Demand",
1079
+ "Passport",
1080
+ "Allocation",
1081
+ "Resource",
1082
+ "Reward",
1083
+ "Discount",
1084
+ "EntityRegistrar",
1085
+ "EntityLinker",
1086
+ "Proof",
1087
+ "WReceivedObject",
1088
+ "Contact",
1089
+ "TableItem_ProgressHistory",
1090
+ "TableItem_PermissionPerm",
1091
+ "TableItem_DemandPresenter",
1092
+ "TableItem_MachineNode",
1093
+ "TableItem_TreasuryHistory",
1094
+ "TableItem_RepositoryData",
1095
+ "TableItem_RewardRecord",
1096
+ "TableItem_EntityLinker",
1097
+ "TableItem_AddressMark",
1098
+ "TableItem_EntityRegistrar"
1099
+ ],
1100
+ "description": "Object type when value_type is Address and represents a specific object"
1115
1101
  }
1102
+ },
1103
+ "required": [
1104
+ "identifier",
1105
+ "b_submission",
1106
+ "value_type"
1116
1107
  ],
1117
- "description": "The actual value data"
1118
- },
1119
- "name": {
1120
- "type": "string",
1121
- "default": "",
1122
- "description": "Name or description of this data"
1108
+ "additionalProperties": false,
1109
+ "description": "Guard table item"
1123
1110
  },
1124
- "object_type": {
1125
- "type": "string",
1126
- "enum": [
1127
- "Permission",
1128
- "Repository",
1129
- "Arb",
1130
- "Arbitration",
1131
- "Service",
1132
- "Machine",
1133
- "Order",
1134
- "Progress",
1135
- "Payment",
1136
- "Treasury",
1137
- "Guard",
1138
- "Demand",
1139
- "Passport",
1140
- "Allocation",
1141
- "Resource",
1142
- "Reward",
1143
- "Discount",
1144
- "EntityRegistrar",
1145
- "EntityLinker",
1146
- "Proof",
1147
- "WReceivedObject",
1148
- "Contact",
1149
- "TableItem_ProgressHistory",
1150
- "TableItem_PermissionPerm",
1151
- "TableItem_DemandPresenter",
1152
- "TableItem_MachineNode",
1153
- "TableItem_TreasuryHistory",
1154
- "TableItem_RepositoryData",
1155
- "TableItem_RewardRecord",
1156
- "TableItem_EntityLinker",
1157
- "TableItem_AddressMark",
1158
- "TableItem_EntityRegistrar"
1159
- ],
1160
- "description": "Object type when value_type is Address and represents a specific object"
1161
- }
1162
- },
1163
- "required": [
1164
- "identifier",
1165
- "b_submission",
1166
- "value_type"
1167
- ],
1168
- "additionalProperties": false,
1169
- "description": "Guard table item"
1111
+ "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...'}]"
1112
+ }
1170
1113
  },
1171
- "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...'}]"
1172
- }
1114
+ "required": [
1115
+ "guard",
1116
+ "submission"
1117
+ ],
1118
+ "additionalProperties": false,
1119
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
1120
+ },
1121
+ "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."
1122
+ }
1123
+ },
1124
+ "required": [
1125
+ "type",
1126
+ "guard",
1127
+ "submission"
1128
+ ],
1129
+ "additionalProperties": false,
1130
+ "description": "Optional submission data. If not provided, will attempt to get existing submissions from the guard."
1131
+ },
1132
+ "env": {
1133
+ "type": "object",
1134
+ "properties": {
1135
+ "account": {
1136
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
1137
+ "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).",
1138
+ "default": ""
1173
1139
  },
1174
- "required": [
1175
- "guard",
1176
- "submission"
1177
- ],
1178
- "additionalProperties": false,
1179
- "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
1140
+ "permission_guard": {
1141
+ "type": "array",
1142
+ "items": {
1143
+ "type": "string"
1144
+ },
1145
+ "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
1146
+ },
1147
+ "no_cache": {
1148
+ "type": "boolean",
1149
+ "description": "Whether to disable caching."
1150
+ },
1151
+ "network": {
1152
+ "type": "string",
1153
+ "enum": [
1154
+ "localnet",
1155
+ "testnet",
1156
+ "mainnet"
1157
+ ],
1158
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
1159
+ },
1160
+ "referrer": {
1161
+ "$ref": "#/definitions/data/properties/guard/anyOf/0",
1162
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
1163
+ },
1164
+ "confirmed": {
1165
+ "type": "boolean",
1166
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
1167
+ },
1168
+ "user_intent_phrases": {
1169
+ "type": "array",
1170
+ "items": {
1171
+ "type": "string"
1172
+ },
1173
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
1174
+ },
1175
+ "project": {
1176
+ "type": "string",
1177
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
1178
+ },
1179
+ "client_schema_version": {
1180
+ "type": "string",
1181
+ "description": "Client-side schema version (semver, e.g. '1.0.0'). When provided, the server checks compatibility and attaches warnings if mismatched."
1182
+ },
1183
+ "schema_strict_mode": {
1184
+ "type": "boolean",
1185
+ "description": "When true, schema incompatibility returns an error instead of a warning. Default: false (warn mode)."
1186
+ }
1180
1187
  },
1181
- "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."
1188
+ "additionalProperties": false,
1189
+ "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."
1182
1190
  }
1183
1191
  },
1184
1192
  "required": [
1185
- "type",
1186
- "guard",
1187
- "submission"
1193
+ "guard"
1188
1194
  ],
1189
1195
  "additionalProperties": false,
1190
- "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'."
1196
+ "description": "Generate a new Passport object after Guard verification succeeds. The Passport is an immutable on-chain object that can be used for offline friend verification, transaction condition verification, etc. Supports verifying multiple guards at once."
1191
1197
  }
1192
1198
  }
1193
1199
  }