@wowok/agent-mcp 2.7.1 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/dist/config/index.js +1 -1
  2. package/dist/config/runtime.js +1 -238
  3. package/dist/customer/customer-advice.js +1 -130
  4. package/dist/customer/index.js +1 -11
  5. package/dist/customer/industry-risks.js +1 -438
  6. package/dist/customer/info-puzzle.js +1 -681
  7. package/dist/customer/order-monitor.js +1 -328
  8. package/dist/customer/order-strategy.js +1 -373
  9. package/dist/customer/post-purchase.js +1 -351
  10. package/dist/customer/preorder-compare.js +1 -34
  11. package/dist/customer/reminder-system.js +1 -316
  12. package/dist/customer/risk-assessment.js +1 -397
  13. package/dist/customer/types.js +1 -13
  14. package/dist/customer/user-preferences.js +1 -460
  15. package/dist/evaluation/arbitration-game.d.ts +9 -2
  16. package/dist/evaluation/arbitration-game.js +1 -48
  17. package/dist/evaluation/builtins/demand-match.js +1 -153
  18. package/dist/evaluation/builtins/index.js +1 -10
  19. package/dist/evaluation/builtins/service-risk.js +1 -55
  20. package/dist/evaluation/capability.js +1 -13
  21. package/dist/evaluation/composer.js +1 -40
  22. package/dist/evaluation/engine.js +1 -175
  23. package/dist/evaluation/extract.js +1 -115
  24. package/dist/evaluation/game-strategy.d.ts +27 -0
  25. package/dist/evaluation/game-strategy.js +1 -0
  26. package/dist/evaluation/gap.js +1 -100
  27. package/dist/evaluation/index.d.ts +1 -0
  28. package/dist/evaluation/index.js +1 -11
  29. package/dist/evaluation/node-game.d.ts +31 -3
  30. package/dist/evaluation/node-game.js +1 -57
  31. package/dist/evaluation/region.js +1 -36
  32. package/dist/evaluation/types.d.ts +1 -0
  33. package/dist/evaluation/types.js +1 -1
  34. package/dist/evaluation/user-injection.js +1 -27
  35. package/dist/experience/experience-reuse.js +1 -103
  36. package/dist/experience/index.js +1 -5
  37. package/dist/experience/intent-distill.js +1 -83
  38. package/dist/experience/realtime-feedback.js +1 -94
  39. package/dist/experience/types.js +1 -1
  40. package/dist/experience/user-profile.js +1 -171
  41. package/dist/extensions/business-modules.js +1 -287
  42. package/dist/extensions/capability-manifest.js +1 -781
  43. package/dist/extensions/constraint-registry.js +1 -198
  44. package/dist/extensions/index.js +1 -6
  45. package/dist/extensions/metric-registry.js +1 -257
  46. package/dist/extensions/mode-evaluator.js +1 -170
  47. package/dist/extensions/modes.js +1 -499
  48. package/dist/extensions/registry.js +1 -717
  49. package/dist/extensions/types.js +1 -1
  50. package/dist/harness/auto-escalation.js +1 -68
  51. package/dist/harness/checkpoint.js +1 -129
  52. package/dist/harness/index.js +1 -78
  53. package/dist/harness/plan.js +1 -315
  54. package/dist/harness/recover.js +1 -139
  55. package/dist/harness/types.js +1 -1
  56. package/dist/harness/verify.js +1 -237
  57. package/dist/index.js +1 -273
  58. package/dist/intent/enrich.js +1 -67
  59. package/dist/intent/index.js +1 -60
  60. package/dist/intent/matcher.js +1 -81
  61. package/dist/intent/store.js +1 -55
  62. package/dist/intent/types.js +1 -10
  63. package/dist/knowledge/acquisition-flywheel.js +1 -192
  64. package/dist/knowledge/allocation-confirm.js +1 -534
  65. package/dist/knowledge/allocation-context.js +1 -249
  66. package/dist/knowledge/allocation-ledger.js +1 -463
  67. package/dist/knowledge/allocation-puzzle.js +1 -298
  68. package/dist/knowledge/allocation-risk.js +1 -568
  69. package/dist/knowledge/allocation-templates.js +1 -970
  70. package/dist/knowledge/allocation-translation.js +1 -585
  71. package/dist/knowledge/arb-risk.js +1 -210
  72. package/dist/knowledge/arbitration-confirm.js +1 -559
  73. package/dist/knowledge/arbitration-context.js +1 -505
  74. package/dist/knowledge/arbitration-ledger.js +1 -521
  75. package/dist/knowledge/arbitration-puzzle.js +1 -304
  76. package/dist/knowledge/arbitration-risk.js +1 -423
  77. package/dist/knowledge/arbitration-templates.js +1 -276
  78. package/dist/knowledge/arbitration-translation.js +1 -487
  79. package/dist/knowledge/arbitration-trust.js +1 -117
  80. package/dist/knowledge/audit-rules.js +1 -141
  81. package/dist/knowledge/bridge-risk.js +1 -263
  82. package/dist/knowledge/contact-risk.js +1 -200
  83. package/dist/knowledge/contact-templates.js +1 -60
  84. package/dist/knowledge/demand-confirm.js +1 -206
  85. package/dist/knowledge/demand-matching.js +1 -132
  86. package/dist/knowledge/demand-risk.js +1 -240
  87. package/dist/knowledge/demand-translation.js +1 -354
  88. package/dist/knowledge/deployment-scanner.js +1 -823
  89. package/dist/knowledge/dynamic-pricing.js +1 -87
  90. package/dist/knowledge/examples-scanner-cli.js +1 -26
  91. package/dist/knowledge/examples-scanner.js +1 -843
  92. package/dist/knowledge/flywheel-loop.js +1 -404
  93. package/dist/knowledge/fund-layer.js +1 -973
  94. package/dist/knowledge/glossary.js +1 -211
  95. package/dist/knowledge/guard-confirm.js +1 -406
  96. package/dist/knowledge/guard-context.js +1 -287
  97. package/dist/knowledge/guard-design-patterns.js +1 -360
  98. package/dist/knowledge/guard-ledger.js +1 -260
  99. package/dist/knowledge/guard-lint.js +1 -670
  100. package/dist/knowledge/guard-migration.js +1 -228
  101. package/dist/knowledge/guard-puzzle.js +1 -805
  102. package/dist/knowledge/guard-render.js +1 -700
  103. package/dist/knowledge/guard-risk.js +1 -1879
  104. package/dist/knowledge/guard-submission-prompt.js +1 -171
  105. package/dist/knowledge/guard-templates.js +1 -1105
  106. package/dist/knowledge/guard-translation.js +1 -1119
  107. package/dist/knowledge/index.js +1 -436
  108. package/dist/knowledge/industry-evolution.js +1 -323
  109. package/dist/knowledge/industry-generalizer.js +1 -381
  110. package/dist/knowledge/industry-registry.js +1 -174
  111. package/dist/knowledge/intent-metrics.d.ts +4 -3
  112. package/dist/knowledge/intent-metrics.js +1 -566
  113. package/dist/knowledge/machine-confirm.js +1 -559
  114. package/dist/knowledge/machine-context.js +1 -833
  115. package/dist/knowledge/machine-ledger.js +1 -338
  116. package/dist/knowledge/machine-puzzle.js +1 -494
  117. package/dist/knowledge/machine-render.js +1 -565
  118. package/dist/knowledge/machine-risk.js +1 -669
  119. package/dist/knowledge/machine-templates.js +1 -1597
  120. package/dist/knowledge/machine-topology.js +1 -234
  121. package/dist/knowledge/machine-translation.js +1 -513
  122. package/dist/knowledge/mcp-schema-audit-cli.js +1 -45
  123. package/dist/knowledge/mcp-schema-audit.js +1 -777
  124. package/dist/knowledge/onchain-constants.js +1 -35
  125. package/dist/knowledge/order-confirm.js +1 -573
  126. package/dist/knowledge/order-context.js +1 -390
  127. package/dist/knowledge/order-ledger.js +1 -341
  128. package/dist/knowledge/order-puzzle.js +1 -255
  129. package/dist/knowledge/order-risk.js +1 -653
  130. package/dist/knowledge/order-templates.js +1 -368
  131. package/dist/knowledge/order-translation.js +1 -550
  132. package/dist/knowledge/overrides-loader.js +1 -65
  133. package/dist/knowledge/passport-confirm.js +1 -531
  134. package/dist/knowledge/passport-context.js +1 -306
  135. package/dist/knowledge/passport-ledger.js +1 -282
  136. package/dist/knowledge/passport-puzzle.js +1 -333
  137. package/dist/knowledge/passport-risk.js +1 -450
  138. package/dist/knowledge/passport-templates.js +1 -568
  139. package/dist/knowledge/passport-translation.js +1 -516
  140. package/dist/knowledge/payment-risk.js +1 -249
  141. package/dist/knowledge/permission-confirm.js +1 -426
  142. package/dist/knowledge/permission-context.js +1 -224
  143. package/dist/knowledge/permission-ledger.js +1 -403
  144. package/dist/knowledge/permission-puzzle.js +1 -173
  145. package/dist/knowledge/permission-risk.js +1 -411
  146. package/dist/knowledge/permission-templates.js +1 -234
  147. package/dist/knowledge/permission-translation.js +1 -350
  148. package/dist/knowledge/personal-risk.js +1 -212
  149. package/dist/knowledge/process-model.js +1 -160
  150. package/dist/knowledge/progress-confirm.js +1 -456
  151. package/dist/knowledge/progress-context.js +1 -452
  152. package/dist/knowledge/progress-ledger.js +1 -330
  153. package/dist/knowledge/progress-puzzle.js +1 -219
  154. package/dist/knowledge/progress-risk.js +1 -461
  155. package/dist/knowledge/progress-templates.js +1 -228
  156. package/dist/knowledge/progress-translation.js +1 -405
  157. package/dist/knowledge/proof-confirm.js +1 -187
  158. package/dist/knowledge/proof-risk.js +1 -207
  159. package/dist/knowledge/proof-translation.js +1 -283
  160. package/dist/knowledge/registrar-risk.js +1 -217
  161. package/dist/knowledge/repository-confirm.js +1 -286
  162. package/dist/knowledge/repository-risk.js +1 -373
  163. package/dist/knowledge/repository-translation.js +1 -445
  164. package/dist/knowledge/reputation-rules.js +1 -99
  165. package/dist/knowledge/resource-risk.js +1 -157
  166. package/dist/knowledge/reward-confirm.js +1 -526
  167. package/dist/knowledge/reward-context.js +1 -504
  168. package/dist/knowledge/reward-ledger.js +1 -502
  169. package/dist/knowledge/reward-puzzle.js +1 -300
  170. package/dist/knowledge/reward-risk.js +1 -627
  171. package/dist/knowledge/reward-templates.js +1 -197
  172. package/dist/knowledge/reward-translation.js +1 -501
  173. package/dist/knowledge/safety-rules.js +1 -404
  174. package/dist/knowledge/scenario-modes.js +1 -321
  175. package/dist/knowledge/service-confirm.js +1 -807
  176. package/dist/knowledge/service-context.js +1 -403
  177. package/dist/knowledge/service-ledger.js +1 -609
  178. package/dist/knowledge/service-puzzle.js +1 -236
  179. package/dist/knowledge/service-risk.js +1 -651
  180. package/dist/knowledge/service-templates.js +1 -456
  181. package/dist/knowledge/service-translation.js +1 -622
  182. package/dist/knowledge/template-registry.js +1 -353
  183. package/dist/knowledge/tool-constraints.js +1 -195
  184. package/dist/knowledge/tools-reference.js +1 -178
  185. package/dist/knowledge/treasury-confirm.js +1 -512
  186. package/dist/knowledge/treasury-context.js +1 -363
  187. package/dist/knowledge/treasury-ledger.js +1 -300
  188. package/dist/knowledge/treasury-puzzle.js +1 -216
  189. package/dist/knowledge/treasury-risk.js +1 -440
  190. package/dist/knowledge/treasury-templates.js +1 -358
  191. package/dist/knowledge/treasury-translation.js +1 -498
  192. package/dist/knowledge/trust-metrics.js +1 -198
  193. package/dist/knowledge/util-risk.js +1 -135
  194. package/dist/loop-engineering/aggregate.js +1 -132
  195. package/dist/loop-engineering/context-collect.js +1 -83
  196. package/dist/loop-engineering/diagnose.js +1 -273
  197. package/dist/loop-engineering/improve.js +1 -405
  198. package/dist/loop-engineering/index.js +1 -4
  199. package/dist/loop-engineering/pipeline.js +1 -56
  200. package/dist/mode-market/index.js +1 -3
  201. package/dist/mode-market/registry.js +1 -124
  202. package/dist/mode-market/review.js +1 -214
  203. package/dist/mode-market/submission.js +1 -85
  204. package/dist/participation/collaborator-interest.d.ts +23 -0
  205. package/dist/participation/collaborator-interest.js +1 -0
  206. package/dist/participation/customer-interest.d.ts +25 -0
  207. package/dist/participation/customer-interest.js +1 -0
  208. package/dist/participation/merchant-interest.js +1 -100
  209. package/dist/participation/radar-core.d.ts +13 -3
  210. package/dist/participation/radar-core.js +1 -269
  211. package/dist/participation/supplier-interest.d.ts +25 -0
  212. package/dist/participation/supplier-interest.js +1 -0
  213. package/dist/persona/analyzer.js +1 -66
  214. package/dist/persona/bridge.js +1 -86
  215. package/dist/persona/defaults.js +1 -195
  216. package/dist/persona/experience-bridge.js +1 -23
  217. package/dist/persona/index.js +1 -71
  218. package/dist/persona/model.js +1 -111
  219. package/dist/persona/store.js +1 -62
  220. package/dist/persona/types.d.ts +3 -1
  221. package/dist/persona/types.js +1 -5
  222. package/dist/project/business-puzzle.js +1 -383
  223. package/dist/project/context-assembly.js +1 -254
  224. package/dist/project/deployment-bridge.js +1 -120
  225. package/dist/project/deployment-doc.js +1 -1126
  226. package/dist/project/edit-planner.js +1 -1342
  227. package/dist/project/evaluation.js +1 -2011
  228. package/dist/project/game-theory.js +1 -177
  229. package/dist/project/graph-builder.js +1 -656
  230. package/dist/project/graph.js +1 -340
  231. package/dist/project/handlers.js +1 -1784
  232. package/dist/project/index.d.ts +1 -0
  233. package/dist/project/index.js +1 -301
  234. package/dist/project/intent-analyzer.js +1 -149
  235. package/dist/project/machine-nodes.js +1 -36
  236. package/dist/project/merchant-guide.js +1 -264
  237. package/dist/project/migration.js +1 -125
  238. package/dist/project/mode-actions.js +1 -309
  239. package/dist/project/namespace.js +1 -206
  240. package/dist/project/participation-radar.js +1 -428
  241. package/dist/project/pipeline-actions.js +1 -109
  242. package/dist/project/project-store.js +1 -422
  243. package/dist/project/query.js +1 -153
  244. package/dist/project/reverse-mapping.d.ts +34 -0
  245. package/dist/project/reverse-mapping.js +1 -0
  246. package/dist/project/risk-aggregator.js +1 -295
  247. package/dist/project/rollback-policy.js +1 -290
  248. package/dist/project/semantic-assembler.js +1 -345
  249. package/dist/project/semantic-graph.js +1 -292
  250. package/dist/project/stage-gate.js +1 -369
  251. package/dist/project/substep-trace.js +1 -332
  252. package/dist/project/task-tracker.js +1 -78
  253. package/dist/role/derivation.d.ts +18 -0
  254. package/dist/role/derivation.js +1 -0
  255. package/dist/role/index.d.ts +5 -0
  256. package/dist/role/index.js +1 -0
  257. package/dist/role/model.d.ts +8 -0
  258. package/dist/role/model.js +1 -0
  259. package/dist/role/resolution.d.ts +11 -0
  260. package/dist/role/resolution.js +1 -0
  261. package/dist/role/types.d.ts +11 -0
  262. package/dist/role/types.js +1 -0
  263. package/dist/rules.js +1 -52
  264. package/dist/safety/confirm-gate.js +1 -88
  265. package/dist/safety/index.js +1 -3
  266. package/dist/safety/preview.js +1 -52
  267. package/dist/schema/call/allocation.js +1 -34
  268. package/dist/schema/call/arbitration.js +1 -113
  269. package/dist/schema/call/base.d.ts +15 -15
  270. package/dist/schema/call/base.js +1 -370
  271. package/dist/schema/call/bridge-handler.js +1 -265
  272. package/dist/schema/call/bridge.d.ts +7 -7
  273. package/dist/schema/call/bridge.js +1 -458
  274. package/dist/schema/call/contact.js +1 -37
  275. package/dist/schema/call/demand.js +1 -47
  276. package/dist/schema/call/guard.js +1 -161
  277. package/dist/schema/call/handler.js +1 -322
  278. package/dist/schema/call/index.js +1 -20
  279. package/dist/schema/call/machine.js +1 -193
  280. package/dist/schema/call/order.js +1 -35
  281. package/dist/schema/call/payment.js +1 -37
  282. package/dist/schema/call/permission-handler.js +1 -54
  283. package/dist/schema/call/permission.js +1 -105
  284. package/dist/schema/call/personal.js +1 -78
  285. package/dist/schema/call/progress.js +1 -47
  286. package/dist/schema/call/proof.js +1 -33
  287. package/dist/schema/call/repository.js +1 -77
  288. package/dist/schema/call/reward.js +1 -30
  289. package/dist/schema/call/semantic.js +1 -1679
  290. package/dist/schema/call/service.js +1 -184
  291. package/dist/schema/call/treasury.js +1 -71
  292. package/dist/schema/common/index.js +1 -407
  293. package/dist/schema/config/index.js +1 -68
  294. package/dist/schema/evaluation/index.d.ts +213 -16
  295. package/dist/schema/evaluation/index.js +1 -356
  296. package/dist/schema/index.js +1 -17
  297. package/dist/schema/intent-radar/index.d.ts +13 -13
  298. package/dist/schema/intent-radar/index.js +1 -89
  299. package/dist/schema/local/index.d.ts +21 -21
  300. package/dist/schema/local/index.js +1 -927
  301. package/dist/schema/local/wip.js +1 -187
  302. package/dist/schema/messenger/index.d.ts +7 -7
  303. package/dist/schema/messenger/index.js +1 -475
  304. package/dist/schema/operations.d.ts +7 -7
  305. package/dist/schema/operations.js +1 -520
  306. package/dist/schema/persona/index.d.ts +54 -54
  307. package/dist/schema/persona/index.js +1 -148
  308. package/dist/schema/project/index.d.ts +94 -48
  309. package/dist/schema/project/index.js +1 -2057
  310. package/dist/schema/query/index.d.ts +423 -7
  311. package/dist/schema/query/index.js +1 -1646
  312. package/dist/schema/schema-query/index.js +1 -104
  313. package/dist/schema/schema-version.js +1 -76
  314. package/dist/schema/sync-layer4.js +1 -286
  315. package/dist/schema/task-status.js +1 -36
  316. package/dist/schema/trust/index.js +1 -314
  317. package/dist/schema/utils/guard-parser.js +1 -419
  318. package/dist/schema/utils/guard-query-utils.js +1 -46
  319. package/dist/schema/utils/node-parser.js +1 -369
  320. package/dist/schema/utils/object-type-utils.js +1 -35
  321. package/dist/schema/utils/permission-index-utils.js +1 -7
  322. package/dist/schema/utils/permission-machine-check.js +1 -121
  323. package/dist/schema/utils/skills-recommendation.js +1 -77
  324. package/dist/schema-query/index.js +1 -810
  325. package/dist/schemas/account_operation.output.json +5 -2
  326. package/dist/schemas/bridge_operation.output.json +5 -2
  327. package/dist/schemas/evaluation_operation.output.json +112 -7
  328. package/dist/schemas/evaluation_operation.schema.json +93 -6
  329. package/dist/schemas/index.json +1 -1
  330. package/dist/schemas/intent_radar.output.json +4 -1
  331. package/dist/schemas/intent_radar.schema.json +4 -1
  332. package/dist/schemas/local_info_operation.output.json +5 -2
  333. package/dist/schemas/local_mark_operation.output.json +5 -2
  334. package/dist/schemas/messenger_operation.output.json +5 -2
  335. package/dist/schemas/onchain_events.output.json +5 -2
  336. package/dist/schemas/onchain_operations.output.json +5 -2
  337. package/dist/schemas/onchain_operations.schema.json +4 -4
  338. package/dist/schemas/onchain_operations_allocation.schema.json +1 -1
  339. package/dist/schemas/onchain_operations_machine.schema.json +2 -2
  340. package/dist/schemas/onchain_operations_service.schema.json +1 -1
  341. package/dist/schemas/onchain_table_data.output.json +6 -3
  342. package/dist/schemas/persona_operation.output.json +4 -1
  343. package/dist/schemas/persona_operation.schema.json +4 -1
  344. package/dist/schemas/project_operation.output.json +28 -8
  345. package/dist/schemas/query_toolkit.output.json +8 -5
  346. package/dist/schemas/wowok_buildin_info.output.json +132 -0
  347. package/dist/schemas/wowok_buildin_info.schema.json +14 -0
  348. package/dist/telemetry/index.js +1 -112
  349. package/dist/telemetry/redact.js +1 -23
  350. package/dist/telemetry/storage.js +1 -80
  351. package/dist/tools/handlers/bridge.js +1 -1
  352. package/dist/tools/handlers/config.js +1 -74
  353. package/dist/tools/handlers/evaluation.js +1 -123
  354. package/dist/tools/handlers/file-export.js +1 -90
  355. package/dist/tools/handlers/intent-radar.js +1 -76
  356. package/dist/tools/handlers/local.js +1 -53
  357. package/dist/tools/handlers/messenger.js +1 -188
  358. package/dist/tools/handlers/onchain.js +1 -1180
  359. package/dist/tools/handlers/persona.js +1 -89
  360. package/dist/tools/handlers/project.js +1 -211
  361. package/dist/tools/handlers/query.js +1 -434
  362. package/dist/tools/handlers/schema-query.js +1 -176
  363. package/dist/tools/handlers/task-status.js +1 -26
  364. package/dist/tools/handlers/trust.js +1 -380
  365. package/dist/tools/handlers/wip.js +1 -90
  366. package/dist/tools/index.js +1 -1382
  367. package/dist/tools/retry.js +1 -85
  368. package/dist/tools/rules-hook.js +1 -23
  369. package/dist/tools/shared.js +1 -130
  370. package/dist/tools/types.js +1 -1
  371. package/dist/tools/upgrade-check.d.ts +19 -0
  372. package/dist/tools/upgrade-check.js +1 -0
  373. package/dist/tools/wip-deploy-assist.js +1 -306
  374. package/dist/tools/wrap.js +1 -500
  375. package/package.json +4 -2
@@ -1,927 +1 @@
1
- import { EntrypointSchema, ObjectOwnerSchema, NameOrAddressSchema, NameSchema, WowAddressSchema, TokenTypeSchema, FaucetNetworkSchema } from "../common/index.js";
2
- import { z } from "zod";
3
- import { SemanticSummarySchema as _RealSemanticSummarySchema } from "../call/index.js";
4
- const SemanticSummarySchema = z.lazy(() => _RealSemanticSummarySchema);
5
- const LocalOperationErrorFields = {
6
- error_code: z
7
- .enum([
8
- "invalid_parameter", "guard_rejected", "state_conflict",
9
- "insufficient_balance", "object_not_found", "permission_denied",
10
- "immutable_violation", "network_error", "rate_limit",
11
- "gas_exceeded", "bcs_error", "signature_error",
12
- "config_error", "wip_verification_failed", "unknown",
13
- ])
14
- .optional()
15
- .describe("Error classification for programmatic recovery"),
16
- retryable: z.boolean().optional().describe("Whether the operation can be retried as-is"),
17
- recovery_hint: z.string().optional().describe("Recovery suggestion for AI or user"),
18
- };
19
- export const LocalMarkConstraints = {
20
- nameMaxLength: 64,
21
- tagMaxLength: 64,
22
- tagMaxCount: 50,
23
- };
24
- export const LocalInfoConstraints = {
25
- nameMaxLength: 64,
26
- contentMaxLength: 300,
27
- contentMaxCount: 50,
28
- defaultName: "Address of delivery",
29
- };
30
- export const AccountConstraints = {
31
- nameMaxLength: 64,
32
- };
33
- export const ErrorResultSchema = z
34
- .object({
35
- error: z.literal(true).describe("Always true for error responses"),
36
- code: z.string().optional().describe("Error code for programmatic handling"),
37
- message: z.string().describe("Human-readable error message"),
38
- details: z.record(z.string(), z.string()).optional().describe("Additional error context"),
39
- })
40
- .describe("Error response structure");
41
- export const createResultSchema = (successSchema) => z.union([
42
- z.object({ success: z.literal(true), data: successSchema }),
43
- ErrorResultSchema,
44
- ]);
45
- export const CoinBalanceSchema = z.object({
46
- coinType: z.string().describe("Coin type"),
47
- coinObjectCount: z.number().describe("Coin object count"),
48
- totalBalance: z.string().describe("Total balance"),
49
- lockedBalance: z.record(z.string(), z.string()).describe("Locked balance"),
50
- }).describe("Coin balance");
51
- export const CoinStructSchema = z.object({
52
- balance: z.string().describe("Coin balance"),
53
- coinObjectId: z.string().describe("Coin object ID"),
54
- coinType: z.string().describe("Coin type"),
55
- digest: z.string().describe("Transaction digest"),
56
- previousTransaction: z.string().describe("Previous transaction digest"),
57
- version: z.union([z.string(), z.number()]).describe("Coin object version"),
58
- }).describe("Coin object");
59
- export const PaginatedCoinsSchema = z.object({
60
- data: z.array(CoinStructSchema).describe("Coin object list"),
61
- hasNextPage: z.boolean().describe("Whether there is a next page"),
62
- nextCursor: z.union([z.string(), z.null()]).optional().describe("Next query cursor"),
63
- }).describe("Paginated coin objects");
64
- export const FaucetCoinInfoSchema = z.object({
65
- amount: z.number().describe("Coin amount"),
66
- id: z.string().describe("Coin ID"),
67
- transferTxDigest: z.string().describe("Transfer transaction digest"),
68
- }).describe("Testnet faucet coin info");
69
- export const EventIdSchema = z.object({
70
- eventSeq: z.union([z.string(), z.number()]).describe("Event sequence number"),
71
- txDigest: z.string().describe("Transaction digest"),
72
- }).describe("Event ID");
73
- export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
74
- z.object({
75
- id: EventIdSchema.describe("Event ID"),
76
- packageId: z.string().describe("Package ID where event originated"),
77
- parsedJson: z.record(z.string(), z.unknown()).describe("Parsed JSON value of the event"),
78
- sender: z.string().describe("Sender's address"),
79
- timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
80
- transactionModule: z.string().describe("Module where event originated"),
81
- type: z.string().describe("Move event type"),
82
- bcs: z.string().describe("BCS encoded event"),
83
- bcsEncoding: z.literal("base64").describe("BCS encoding format"),
84
- }),
85
- z.object({
86
- id: EventIdSchema.describe("Event ID"),
87
- packageId: z.string().describe("Package ID where event originated"),
88
- parsedJson: z.record(z.string(), z.unknown()).describe("Parsed JSON value of the event"),
89
- sender: z.string().describe("Sender's ID"),
90
- timestampMs: z.union([z.string(), z.null()]).optional().describe("UTC timestamp in milliseconds since epoch"),
91
- transactionModule: z.string().describe("Module where event originated"),
92
- type: z.string().describe("Move event type"),
93
- bcs: z.string().describe("BCS encoded event"),
94
- bcsEncoding: z.literal("base58").describe("BCS encoding format"),
95
- }),
96
- ]).describe("Blockchain event");
97
- export const BalanceChangeSchema = z.object({
98
- amount: z.string().describe("Balance change value, negative for spending, positive for receiving"),
99
- coinType: z.string().describe("Coin type"),
100
- owner: ObjectOwnerSchema.describe("Owner of the balance change"),
101
- }).describe("Balance change");
102
- export const GasCostSummarySchema = z.object({
103
- computationCost: z.string().describe("Computation/execution cost"),
104
- nonRefundableStorageFee: z.string().describe("Non-refundable storage fee"),
105
- storageCost: z.string().describe("Storage cost"),
106
- storageRebate: z.string().describe("Storage rebate"),
107
- }).describe("Transaction fee summary");
108
- export const WowObjectRefSchema = z.object({
109
- digest: z.string().describe("Base64 string of object digest"),
110
- objectId: z.string().describe("Hex code string representing object ID"),
111
- version: z.union([z.string(), z.number()]).describe("Object version"),
112
- }).describe("Wow object reference");
113
- export const OwnedObjectRefSchema = z.object({
114
- owner: ObjectOwnerSchema.describe("Owner"),
115
- reference: WowObjectRefSchema.describe("Object reference"),
116
- }).describe("Owned object reference");
117
- export const TransactionBlockEffectsModifiedAtVersionsSchema = z.object({
118
- objectId: z.string().describe("Object ID"),
119
- sequenceNumber: z.union([z.string(), z.number()]).describe("Sequence number"),
120
- }).describe("Transaction block effects modified versions");
121
- export const WowMoveAbortSchema = z.object({
122
- error_code: z.union([z.string(), z.null()]).optional().describe("Error code"),
123
- function: z.union([z.string(), z.null()]).optional().describe("Function"),
124
- line: z.union([z.number(), z.null()]).optional().describe("Line number"),
125
- module_id: z.union([z.string(), z.null()]).optional().describe("Module ID"),
126
- }).describe("Wow Move abort");
127
- export const ExecutionStatusSchema = z.object({
128
- status: z.union([z.literal("success"), z.literal("failure")]).describe("Execution status"),
129
- error: z.string().optional().describe("Error message"),
130
- }).describe("Execution status");
131
- export const WowGasDataSchema = z.object({
132
- budget: z.string().describe("Budget"),
133
- owner: z.string().describe("Owner"),
134
- payment: z.array(WowObjectRefSchema).describe("Payment"),
135
- price: z.string().describe("Price"),
136
- }).describe("Wow gas data");
137
- export const WowTransactionBlockKindSchema = z.object({
138
- kind: z.string().describe("Transaction type"),
139
- }).passthrough().describe("Wow transaction block kind");
140
- export const TransactionBlockDataSchema = z.object({
141
- gasData: WowGasDataSchema.describe("Gas data"),
142
- messageVersion: z.literal("v1").describe("Message version"),
143
- sender: z.string().describe("Sender"),
144
- transaction: WowTransactionBlockKindSchema.describe("Transaction"),
145
- }).describe("Transaction block data");
146
- export const WowTransactionBlockSchema = z.object({
147
- data: TransactionBlockDataSchema.describe("Transaction data"),
148
- txSignatures: z.array(z.string()).describe("Transaction signatures"),
149
- }).describe("Wow transaction block");
150
- export const WowObjectChangeSchema = z.discriminatedUnion("type", [
151
- z.object({
152
- type: z.literal("published"),
153
- digest: z.string().describe("Digest"),
154
- modules: z.array(z.string()).describe("Modules"),
155
- packageId: z.string().describe("Package ID"),
156
- version: z.union([z.string(), z.number()]).describe("Version"),
157
- }),
158
- z.object({
159
- type: z.literal("transferred"),
160
- digest: z.string().describe("Digest"),
161
- objectId: z.string().describe("Object ID"),
162
- objectType: z.string().describe("Object type"),
163
- recipient: ObjectOwnerSchema.describe("Recipient"),
164
- sender: z.string().describe("Sender ID"),
165
- version: z.union([z.string(), z.number()]).describe("Version"),
166
- }),
167
- z.object({
168
- type: z.literal("mutated"),
169
- digest: z.string().describe("Digest"),
170
- objectId: z.string().describe("Object ID"),
171
- objectType: z.string().describe("Object type"),
172
- owner: z.union([ObjectOwnerSchema, z.null()]).describe("Owner"),
173
- previousVersion: z.union([z.string(), z.number()]).describe("Previous version"),
174
- sender: z.string().describe("Sender"),
175
- version: z.union([z.string(), z.number()]).describe("Version"),
176
- }),
177
- z.object({
178
- type: z.literal("deleted"),
179
- objectId: z.string().describe("Object ID"),
180
- objectType: z.string().describe("Object type"),
181
- sender: z.string().describe("Sender"),
182
- version: z.union([z.string(), z.number()]).describe("Version"),
183
- }),
184
- z.object({
185
- type: z.literal("wrapped"),
186
- objectId: z.string().describe("Object ID"),
187
- objectType: z.string().describe("Object type"),
188
- sender: z.string().describe("Sender"),
189
- version: z.union([z.string(), z.number()]).describe("Version"),
190
- }),
191
- z.object({
192
- type: z.literal("created"),
193
- digest: z.string().describe("Digest"),
194
- objectId: z.string().describe("Object ID"),
195
- objectType: z.string().describe("Object type"),
196
- owner: z.union([ObjectOwnerSchema, z.null()]).describe("Owner"),
197
- sender: z.string().describe("Sender"),
198
- version: z.union([z.string(), z.number()]).describe("Version"),
199
- }),
200
- ]).describe("Object change information");
201
- export const TransactionEffectsSchema = z.object({
202
- abortError: z.union([WowMoveAbortSchema, z.null()]).optional().describe("Abort error if transaction failed with abort code"),
203
- created: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of newly created objects"),
204
- deleted: z.array(WowObjectRefSchema).optional().describe("Object references (old refs) of now deleted objects"),
205
- dependencies: z.array(z.string()).optional().describe("Set of transaction digests this transaction depends on"),
206
- eventsDigest: z.union([z.string(), z.null()]).optional().describe("Digest of events emitted during execution"),
207
- executedEpoch: z.union([z.string(), z.number()]).describe("Epoch in which this transaction was executed"),
208
- gasObject: OwnedObjectRefSchema.describe("Updated gas object reference"),
209
- gasUsed: GasCostSummarySchema.describe("Gas used"),
210
- messageVersion: z.literal("v1").describe("Message version"),
211
- modifiedAtVersions: z.array(TransactionBlockEffectsModifiedAtVersionsSchema).optional().describe("Version of each modified (mutated or deleted) object before this transaction modified it"),
212
- mutated: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of mutated objects, including gas object"),
213
- sharedObjects: z.array(WowObjectRefSchema).optional().describe("Object references of shared objects used in this transaction"),
214
- status: ExecutionStatusSchema.describe("Execution status"),
215
- transactionDigest: z.string().describe("Transaction digest"),
216
- unwrapped: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of objects unwrapped in this transaction"),
217
- unwrappedThenDeleted: z.array(WowObjectRefSchema).optional().describe("Object references of objects previously wrapped in other objects but now deleted"),
218
- wrapped: z.array(WowObjectRefSchema).optional().describe("Object references of objects now wrapped in other objects"),
219
- }).describe("Transaction effects");
220
- export const WowTransactionBlockResponseSchema = z.object({
221
- balanceChanges: z.union([z.array(BalanceChangeSchema), z.null()]).optional().describe("Balance changes"),
222
- checkpoint: z.union([z.string(), z.null()]).optional().describe("Checkpoint number that this transaction is included in and thus completed"),
223
- confirmedLocalExecution: z.union([z.boolean(), z.null()]).optional().describe("Confirmed local execution"),
224
- digest: z.string().describe("Transaction digest"),
225
- effects: z.union([TransactionEffectsSchema, z.null()]).optional().describe("Transaction effects"),
226
- errors: z.array(z.string()).optional().describe("Error messages"),
227
- events: z.union([z.array(WowEventSchema), z.null()]).optional().describe("Events"),
228
- objectChanges: z.union([z.array(WowObjectChangeSchema), z.null()]).optional().describe("Object changes"),
229
- rawEffects: z.array(z.number()).optional().describe("Raw effects"),
230
- rawTransaction: z.string().optional().describe("Raw transaction"),
231
- timestampMs: z.union([z.string(), z.null()]).optional().describe("Timestamp"),
232
- transaction: z.union([WowTransactionBlockSchema, z.null()]).optional().describe("Transaction input data"),
233
- }).describe("Wow transaction block response");
234
- export const MarkParamSchema = z
235
- .object({
236
- name: z
237
- .object({
238
- value: z
239
- .string()
240
- .max(LocalMarkConstraints.nameMaxLength, `Mark name exceeds maximum length of ${LocalMarkConstraints.nameMaxLength} bcs characters`)
241
- .describe(`Mark name value (max ${LocalMarkConstraints.nameMaxLength} bcs characters)`),
242
- replaceExistName: z
243
- .boolean()
244
- .optional()
245
- .default(false)
246
- .describe("If true, replace existing mark with same name; if false (default), throw error when name exists"),
247
- })
248
- .optional()
249
- .describe("Mark naming configuration. MUST be an object {value: string, replaceExistName?: boolean}, NOT a plain string. Example: {name: {value: 'my-account', replaceExistName: true}}"),
250
- address: WowAddressSchema,
251
- tags: z
252
- .array(z
253
- .string()
254
- .max(LocalMarkConstraints.tagMaxLength, `Tag exceeds maximum length of ${LocalMarkConstraints.tagMaxLength} bcs characters`))
255
- .max(LocalMarkConstraints.tagMaxCount, `Tag count exceeds maximum of ${LocalMarkConstraints.tagMaxCount}`)
256
- .optional()
257
- .describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
258
- })
259
- .describe("LOCAL ONLY: Parameters for creating or updating a LOCAL mark. This data is stored privately on your device and will NEVER be published to the blockchain. " +
260
- "For public on-chain marks, use the 'personal' tool instead. " +
261
- "IMPORTANT: 'name' field is an OBJECT {value, replaceExistName?}, not a string. " +
262
- "FIX-011 cross-network consistency: LocalMark names are scoped per network. " +
263
- "When creating marks for the same logical object on different networks (e.g. testnet and mainnet), " +
264
- "use the SAME name value to keep name-based references portable. " +
265
- "Before creating a mark on mainnet, check if a mark with the same name already exists on testnet " +
266
- "(via query_local with network='testnet') and replicate the same name on mainnet for consistency.");
267
- export const MarkDataSchema = z
268
- .object({
269
- name: z
270
- .string()
271
- .max(LocalMarkConstraints.nameMaxLength, `Mark name exceeds maximum length of ${LocalMarkConstraints.nameMaxLength} bcs characters`)
272
- .optional()
273
- .describe(`Mark name (max ${LocalMarkConstraints.nameMaxLength} bcs characters)`),
274
- address: WowAddressSchema,
275
- tags: z
276
- .array(z.string().max(LocalMarkConstraints.tagMaxLength, `Tag exceeds maximum length of ${LocalMarkConstraints.tagMaxLength} bcs characters`))
277
- .max(LocalMarkConstraints.tagMaxCount, `Tag count exceeds maximum of ${LocalMarkConstraints.tagMaxCount}`)
278
- .optional()
279
- .describe(`Tags for categorization (max ${LocalMarkConstraints.tagMaxCount} tags, each max ${LocalMarkConstraints.tagMaxLength} bcs characters)`),
280
- createdAt: z
281
- .number()
282
- .optional()
283
- .describe("Unix timestamp (ms) when this mark was created"),
284
- updatedAt: z
285
- .number()
286
- .optional()
287
- .describe("Unix timestamp (ms) when this mark was last modified"),
288
- })
289
- .describe("LOCAL PRIVATE: Local mark data structure for storing address names and tags privately on your device. This data is NEVER published to the blockchain. CROSS-NETWORK ISOLATION (DOC-02): LocalMark names are scoped per network — the same name 'my-service' can map to different addresses on testnet vs mainnet. When switching networks (e.g., testnet→mainnet deployment), re-create marks with the same names pointing to the new mainnet addresses. This enables name-based object references that work identically across networks without code changes.");
290
- export const InfoDataInnerSchema = z
291
- .object({
292
- default: z
293
- .string()
294
- .max(LocalInfoConstraints.contentMaxLength, `Default value exceeds maximum length of ${LocalInfoConstraints.contentMaxLength} bcs characters`)
295
- .describe(`Primary/default value for this info (max ${LocalInfoConstraints.contentMaxLength} bcs characters)`),
296
- contents: z
297
- .array(z.string().max(LocalInfoConstraints.contentMaxLength, `Content item exceeds maximum length of ${LocalInfoConstraints.contentMaxLength} bcs characters`))
298
- .max(LocalInfoConstraints.contentMaxCount, `Content count exceeds maximum of ${LocalInfoConstraints.contentMaxCount}`)
299
- .optional()
300
- .describe(`Additional content values (max ${LocalInfoConstraints.contentMaxCount} items, each max ${LocalInfoConstraints.contentMaxLength} bcs characters)`),
301
- createdAt: z
302
- .number()
303
- .optional()
304
- .describe("Unix timestamp (ms) when this info was created"),
305
- updatedAt: z
306
- .number()
307
- .optional()
308
- .describe("Unix timestamp (ms) when this info was last modified"),
309
- })
310
- .describe("Info data inner structure");
311
- export const InfoDataSchema = InfoDataInnerSchema.extend({
312
- name: z
313
- .string()
314
- .max(LocalInfoConstraints.nameMaxLength, `Info name exceeds maximum length of ${LocalInfoConstraints.nameMaxLength} bcs characters`)
315
- .describe(`Unique identifier for this info entry (max ${LocalInfoConstraints.nameMaxLength} bcs characters)`),
316
- }).describe("LOCAL PRIVATE: Local info data structure for storing sensitive personal information like delivery addresses, phone numbers, etc. This data is stored ONLY on your device and NEVER published to the blockchain.");
317
- export const LocalMarkFilterSchema = z
318
- .object({
319
- name: NameSchema
320
- .optional()
321
- .describe("Filter by mark name (supports fuzzy match)"),
322
- tags: z
323
- .array(z.string())
324
- .optional()
325
- .describe("Filter by tags - returns marks that contain ANY of the specified tags"),
326
- address: WowAddressSchema
327
- .optional()
328
- .describe("Filter by address (exact match, format: 0x + 64 hex characters)"),
329
- createdAt: z
330
- .object({
331
- gte: z
332
- .number()
333
- .optional()
334
- .describe("Filter marks created on or after this timestamp (ms)"),
335
- lte: z
336
- .number()
337
- .optional()
338
- .describe("Filter marks created on or before this timestamp (ms)"),
339
- })
340
- .optional()
341
- .describe("Filter by creation time range"),
342
- updatedAt: z
343
- .object({
344
- gte: z
345
- .number()
346
- .optional()
347
- .describe("Filter marks updated on or after this timestamp (ms)"),
348
- lte: z
349
- .number()
350
- .optional()
351
- .describe("Filter marks updated on or before this timestamp (ms)"),
352
- })
353
- .optional()
354
- .describe("Filter by update time range"),
355
- })
356
- .describe("Filter criteria for querying local marks. Multiple filters are combined with AND logic.");
357
- export const LocalInfoFilterSchema = z
358
- .object({
359
- name: NameSchema
360
- .optional()
361
- .describe("Filter by info name (supports fuzzy match)"),
362
- default: z
363
- .string()
364
- .optional()
365
- .describe("Filter by default value (supports fuzzy match)"),
366
- contents: z
367
- .array(z.string())
368
- .optional()
369
- .describe("Filter by contents - returns info that contains ANY of the specified content items"),
370
- createdAt: z
371
- .object({
372
- gte: z
373
- .number()
374
- .optional()
375
- .describe("Filter info created on or after this timestamp (ms)"),
376
- lte: z
377
- .number()
378
- .optional()
379
- .describe("Filter info created on or before this timestamp (ms)"),
380
- })
381
- .optional()
382
- .describe("Filter by creation time range"),
383
- updatedAt: z
384
- .object({
385
- gte: z
386
- .number()
387
- .optional()
388
- .describe("Filter info updated on or after this timestamp (ms)"),
389
- lte: z
390
- .number()
391
- .optional()
392
- .describe("Filter info updated on or before this timestamp (ms)"),
393
- })
394
- .optional()
395
- .describe("Filter by update time range"),
396
- })
397
- .describe("Filter criteria for querying local info. Multiple filters are combined with AND logic.");
398
- export const QueryLocalInfoListSchema = z.object({
399
- filter: LocalInfoFilterSchema.optional().describe("Local info filter"),
400
- }).describe("Query local info list parameters");
401
- export const QueryAccountSchema = z
402
- .object({
403
- name_or_address: NameOrAddressSchema.optional()
404
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
405
- balance: z
406
- .boolean()
407
- .optional()
408
- .describe("Whether to query coin balance amount"),
409
- coin: z
410
- .object({
411
- cursor: z
412
- .union([z.string(), z.null()])
413
- .optional()
414
- .describe("Query cursor for pagination"),
415
- limit: z
416
- .union([z.number(), z.null()])
417
- .optional()
418
- .describe("Maximum number of objects to return"),
419
- })
420
- .optional()
421
- .describe("Whether to query coin object list"),
422
- token_type: TokenTypeSchema
423
- .optional()
424
- .describe("Token type; default token type is 0x2::wow::WOW"),
425
- network: EntrypointSchema
426
- .optional(),
427
- })
428
- .describe("Used to query account's coin balance");
429
- export const QueryAccountResultSchema = z.object({
430
- name_or_address: NameOrAddressSchema.optional().describe("Account name or ID"),
431
- address: z.string().optional().describe("Account ID"),
432
- balance: CoinBalanceSchema.optional().describe("Coin balance details"),
433
- coin: PaginatedCoinsSchema.optional().describe("Paginated coin object list"),
434
- }).describe("Result of querying account's coin balance");
435
- export const AccountOperationSchema = z
436
- .object({
437
- gen: z
438
- .object({
439
- name: NameSchema
440
- .optional()
441
- .describe(`Account name (max ${AccountConstraints.nameMaxLength} characters). Use empty string '' or omit for the default account. ` +
442
- `Recommended convention: <role>-<number> (e.g. shop-001, user-001, arb-001) for easy filtering and batch operations.`),
443
- replaceExistName: z
444
- .boolean()
445
- .optional()
446
- .describe("DISCOURAGED. If true, an existing account with the same name will be SUSPENDED (not just renamed) to free the name for the new account. " +
447
- "The old account moves to the Suspended tab and cannot sign transactions until resumed with a new name. " +
448
- "FORBIDDEN on the default account (name='' or omitted) — the default account is unique and cannot be replaced; use suspend() explicitly instead. " +
449
- "Prefer versioned names (e.g. 'shop_v2') over replaceExistName for production. Default: false (throws AccountNameExist on collision)."),
450
- messenger: z
451
- .boolean()
452
- .optional()
453
- .describe("Enable messenger for this account. true=enable, false=disable, omit=unchanged. " +
454
- "Account name is used for messenger identity lookup (no separate messenger name)."),
455
- })
456
- .optional()
457
- .describe("Generate new account"),
458
- faucet: z
459
- .preprocess((val) => {
460
- if (val && typeof val === 'object' && !Array.isArray(val)) {
461
- const obj = val;
462
- if (obj.name !== undefined && obj.name_or_address === undefined) {
463
- obj.name_or_address = obj.name;
464
- delete obj.name;
465
- }
466
- }
467
- return val;
468
- }, z.object({
469
- name_or_address: NameOrAddressSchema.optional()
470
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
471
- network: FaucetNetworkSchema,
472
- }).strict())
473
- .optional()
474
- .describe("Distribute test coins from faucet to the specified account"),
475
- suspend: z
476
- .object({
477
- name_or_address: NameOrAddressSchema.optional()
478
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
479
- })
480
- .optional()
481
- .describe("Remove account from active account list (cannot sign transactions), and delete its name"),
482
- resume: z
483
- .object({
484
- address: WowAddressSchema,
485
- name: NameSchema.optional()
486
- .describe("New name for the resumed account. Omit to leave unnamed."),
487
- })
488
- .optional()
489
- .describe("Add account back to active account list"),
490
- rename: z
491
- .object({
492
- name_or_address: NameOrAddressSchema.optional()
493
- .describe(`Source account name or address. Use empty string '' for the default account. Defaults to '' if omitted. Can be a name or address.`),
494
- new_name: NameSchema
495
- .describe(`New account name (max ${AccountConstraints.nameMaxLength} characters). Must be a name (not an address).`),
496
- })
497
- .optional()
498
- .describe("Rename account. name_or_address can be name or address, new_name must be a name."),
499
- swap_name: z
500
- .object({
501
- name1: NameSchema.optional()
502
- .describe("First account name. Use empty string '' for the default account."),
503
- name2: NameSchema.optional()
504
- .describe("Second account name. Use empty string '' for the default account."),
505
- })
506
- .optional()
507
- .describe("Swap the names of two accounts"),
508
- transfer: z
509
- .object({
510
- name_or_address_from: NameOrAddressSchema.optional()
511
- .describe("Sender account name or address. Use empty string '' for the default account."),
512
- name_or_address_to: NameOrAddressSchema.optional()
513
- .describe("Recipient account name or address. Use empty string '' for the default account."),
514
- amount: z
515
- .union([z.number(), z.string()])
516
- .describe("Amount of tokens to transfer"),
517
- token_type: z
518
- .string()
519
- .optional()
520
- .describe("Token type; default token type is 0x2::wow::WOW"),
521
- network: EntrypointSchema
522
- .optional()
523
- })
524
- .optional()
525
- .describe("Transfer tokens from one account to another"),
526
- get: z
527
- .object({
528
- name_or_address: NameOrAddressSchema.optional()
529
- .describe("Account name or address. Use empty string '' for the default account."),
530
- balance_required: z
531
- .union([z.string(), z.number()])
532
- .describe("Required balance amount"),
533
- token_type: z
534
- .string()
535
- .optional()
536
- .describe("Token type; default token type is 0x2::wow::WOW"),
537
- network: EntrypointSchema
538
- .optional()
539
- })
540
- .optional()
541
- .describe("Generate new coin object ID from account by required amount and return"),
542
- signData: z
543
- .object({
544
- name_or_address: NameOrAddressSchema.optional()
545
- .describe("Account name or address. Use empty string '' for the default account."),
546
- data: z.string().describe("Data to sign. If data_encoding is not specified, treated as UTF-8 string."),
547
- data_encoding: z
548
- .union([
549
- z.literal("utf8").describe("Data is UTF-8 encoded string"),
550
- z.literal("base64").describe("Data is base64 encoded bytes"),
551
- z.literal("hex").describe("Data is hex encoded bytes (with or without 0x prefix)"),
552
- ])
553
- .optional()
554
- .describe("Encoding format of the data field. If not specified, defaults to utf8."),
555
- })
556
- .optional()
557
- .describe("Sign data with account's private key"),
558
- messenger: z
559
- .object({
560
- name_or_account: NameOrAddressSchema.optional()
561
- .describe("Account name or address. Use empty string '' for the default account. Defaults to '' if omitted."),
562
- enabled: z
563
- .boolean()
564
- .describe("true to enable messenger, false to disable"),
565
- })
566
- .optional()
567
- .describe("Enable or disable messenger for an account"),
568
- })
569
- .strict()
570
- .refine((data) => Object.keys(data).length > 0, "At least one operation (gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger) must be specified")
571
- .describe("Account operations (mutations only: gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger). " +
572
- "Parameters MUST be wrapped in the operation type property (e.g. {transfer: {...}}, NOT {amount: ...}). Unwrapped parameters are rejected. " +
573
- "TO LIST ALL ACCOUNTS: use the query_toolkit tool with query_type='account_list' (returns name, address, suspended status, messenger status for all local accounts). " +
574
- "This separation follows CQRS: account_operation = mutations, query_toolkit = queries. " +
575
- "Common workflow after MCP restart: (1) query_toolkit query_type='account_list' to see all accounts, (2) account_operation with the appropriate mutation.");
576
- export const AccountOperationResultSchema = z
577
- .object({
578
- gen: z
579
- .object({
580
- address: z.string().describe("Newly generated account ID"),
581
- name: NameSchema.optional().describe("Account name"),
582
- messenger: z
583
- .boolean()
584
- .optional()
585
- .describe("Messenger enabled flag"),
586
- })
587
- .optional()
588
- .describe("Result of generating new account"),
589
- faucet: z
590
- .object({
591
- name_or_address: NameOrAddressSchema.optional()
592
- .describe("Account name or address that received faucet coins"),
593
- result: z
594
- .array(FaucetCoinInfoSchema)
595
- .describe("List of distributed test coin info"),
596
- network: FaucetNetworkSchema,
597
- })
598
- .optional()
599
- .describe("Result of distributing test coins from faucet to the specified account"),
600
- suspend: z
601
- .object({
602
- name_or_address: NameOrAddressSchema.optional()
603
- .describe("Account name or address that was suspended"),
604
- success: z
605
- .boolean()
606
- .describe("True if account was successfully suspended, false if account does not exist"),
607
- })
608
- .optional()
609
- .describe("Result of removing account from active account list (cannot sign transactions)"),
610
- resume: z
611
- .object({
612
- address: WowAddressSchema.describe("Account ID that was resumed"),
613
- name: NameSchema.optional().describe("New name assigned to the account"),
614
- success: z
615
- .boolean()
616
- .describe("True if account was successfully resumed, false if account does not exist"),
617
- })
618
- .optional()
619
- .describe("Result of adding account back to active account list"),
620
- rename: z
621
- .object({
622
- name_or_address: NameOrAddressSchema.optional()
623
- .describe("Source account name or address that was renamed"),
624
- new_name: NameSchema.describe("New account name"),
625
- success: z
626
- .boolean()
627
- .describe("True if rename was successful, false if account not found or name already exists"),
628
- })
629
- .optional()
630
- .describe("Result of renaming account"),
631
- swap_name: z
632
- .object({
633
- name1: NameSchema.optional()
634
- .describe("First account name"),
635
- name2: NameSchema.optional()
636
- .describe("Second account name"),
637
- success: z
638
- .boolean()
639
- .describe("True if swap was successful, false if either account not found"),
640
- })
641
- .optional()
642
- .describe("Result of swapping account names"),
643
- transfer: WowTransactionBlockResponseSchema.optional().describe("Result of token transfer transaction"),
644
- get: z
645
- .object({
646
- coin_address: z
647
- .string()
648
- .optional()
649
- .describe("Newly generated coin object ID"),
650
- name_or_address: NameOrAddressSchema.optional()
651
- .describe("Account name or address"),
652
- balance_required: z
653
- .union([z.string(), z.number()])
654
- .describe("Required coin object balance"),
655
- token_type: z
656
- .string()
657
- .optional()
658
- .describe("Token type; default token type is 0x2::wow::WOW"),
659
- network: EntrypointSchema
660
- .optional()
661
- })
662
- .optional()
663
- .describe("Result of generating new coin object ID from account by required amount"),
664
- signData: z
665
- .object({
666
- name_or_address: NameOrAddressSchema.optional()
667
- .describe("Account name or address used for signing"),
668
- signature: z.string().describe("Signature in hex format"),
669
- publicKey: z.string().describe("Public key in hex format"),
670
- address: z.string().describe("Account address"),
671
- })
672
- .optional()
673
- .describe("Result of signing data with account"),
674
- messenger: z
675
- .object({
676
- name_or_account: NameOrAddressSchema.optional()
677
- .describe("Account name or address"),
678
- enabled: z
679
- .boolean()
680
- .describe("Messenger enabled flag"),
681
- })
682
- .optional()
683
- .describe("Result of enabling or disabling messenger for an account"),
684
- })
685
- .describe("Results of account operations");
686
- export const LocalMarkOperationSchema = z
687
- .object({
688
- add: z
689
- .object({
690
- op: z.literal("add").describe("Operation type: add marks"),
691
- data: z
692
- .array(MarkParamSchema)
693
- .min(1)
694
- .describe("Array of mark data to add (at least 1 item)"),
695
- })
696
- .strict()
697
- .optional()
698
- .describe("Add one or more marks"),
699
- remove: z
700
- .object({
701
- op: z.literal("remove").describe("Operation type: remove marks"),
702
- names: z
703
- .array(z.string())
704
- .min(1)
705
- .describe("Array of mark names or addresses to remove"),
706
- })
707
- .strict()
708
- .optional()
709
- .describe("Remove marks by name or address"),
710
- clear: z
711
- .object({
712
- op: z.literal("clear").describe("Operation type: clear all marks"),
713
- })
714
- .strict()
715
- .optional()
716
- .describe("Remove all marks"),
717
- })
718
- .strict()
719
- .refine((data) => data.add !== undefined || data.remove !== undefined || data.clear !== undefined, {
720
- message: "Exactly one operation field (add/remove/clear) must be specified. " +
721
- "CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', names:[...]}} or {clear: {op:'clear'}}. " +
722
- "INCORRECT flat format {op:'add', data:[...]} will silently do nothing.",
723
- })
724
- .describe("Local mark operations. Exactly one operation type (add/remove/clear) must be specified as a NESTED field. " +
725
- "Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}.");
726
- export const LocalMarkOperationResultSchema = z.object({
727
- clear: z.boolean().optional().describe("Whether all marks were successfully removed"),
728
- add: z.array(MarkDataSchema).optional().describe("List of added mark data"),
729
- remove: z.array(MarkDataSchema).optional().describe("List of removed mark data"),
730
- }).describe("Results of local mark operations for ID");
731
- export const LocalInfoOperationSchema = z
732
- .object({
733
- add: z
734
- .object({
735
- op: z.literal("add").describe("Operation type: add info"),
736
- data: z
737
- .array(InfoDataSchema)
738
- .min(1)
739
- .describe("Array of info data to add (at least 1 item)"),
740
- })
741
- .strict()
742
- .optional()
743
- .describe("Add one or more info entries"),
744
- remove: z
745
- .object({
746
- op: z.literal("remove").describe("Operation type: remove info"),
747
- data: z
748
- .array(z.string())
749
- .min(1)
750
- .describe("Array of info names to remove"),
751
- })
752
- .strict()
753
- .optional()
754
- .describe("Remove info entries by name"),
755
- reset: z
756
- .object({
757
- op: z.literal("reset").describe("Operation type: reset contents"),
758
- name: z.string().describe("Name of info entry to reset"),
759
- contents: z
760
- .array(z.string())
761
- .describe("New content list to replace existing contents"),
762
- })
763
- .strict()
764
- .optional()
765
- .describe("Reset the contents of an existing info entry"),
766
- clear: z
767
- .object({
768
- op: z.literal("clear").describe("Operation type: clear all info"),
769
- })
770
- .strict()
771
- .optional()
772
- .describe("Remove all info entries"),
773
- })
774
- .strict()
775
- .refine((data) => data.add !== undefined || data.remove !== undefined || data.reset !== undefined || data.clear !== undefined, {
776
- message: "Exactly one operation field (add/remove/reset/clear) must be specified. " +
777
- "CORRECT format: {add: {op:'add', data:[...]}} or {remove: {op:'remove', data:[...]}} etc. " +
778
- "INCORRECT flat format {op:'add', data:[...]} will silently do nothing.",
779
- })
780
- .describe("Local info operations. Exactly one operation type (add/remove/reset/clear) must be specified as a NESTED field. " +
781
- "Example: {add: {op:'add', data:[...]}} — NOT flat {op:'add', data:[...]}.");
782
- export const LocalInfoOperationResultSchema = z.object({
783
- success: z.boolean().describe("Whether successful"),
784
- }).describe("Results of local info operations");
785
- export const FetchTokenInfoOperationSchema = z.object({
786
- tokenType: z.union([TokenTypeSchema, z.null()]).optional().describe("Token type; default token type is 0x2::wow::WOW"),
787
- alias: NameSchema.optional().describe("Token alias; used to quickly fetch token info"),
788
- network: EntrypointSchema.optional(),
789
- }).describe("Fetch token info to local and name it");
790
- export const QueryLocalMarkListSchema = z.object({
791
- filter: LocalMarkFilterSchema.optional().describe("Local mark filter"),
792
- }).describe("Query local mark list parameters");
793
- export const QueryLocalMarkListResultSchema = z.object({
794
- result: z.array(MarkDataSchema).describe("Local mark list"),
795
- }).describe("Query local mark list result");
796
- export const AccountFilterSchema = z
797
- .object({
798
- name: NameSchema
799
- .optional()
800
- .describe("Filter by account name (supports fuzzy match)"),
801
- address: WowAddressSchema
802
- .optional()
803
- .describe("Filter by account address (supports partial match, format: 0x + hex characters)"),
804
- suspended: z
805
- .boolean()
806
- .optional()
807
- .describe("Filter by suspension status. Omit to return all accounts regardless of status"),
808
- hasMessenger: z
809
- .boolean()
810
- .optional()
811
- .describe("Filter accounts with messenger enabled"),
812
- createdAt: z
813
- .object({
814
- gte: z
815
- .number()
816
- .optional()
817
- .describe("Filter accounts created on or after this timestamp (ms)"),
818
- lte: z
819
- .number()
820
- .optional()
821
- .describe("Filter accounts created on or before this timestamp (ms)"),
822
- })
823
- .optional()
824
- .describe("Filter by creation time range"),
825
- updatedAt: z
826
- .object({
827
- gte: z
828
- .number()
829
- .optional()
830
- .describe("Filter accounts updated on or after this timestamp (ms)"),
831
- lte: z
832
- .number()
833
- .optional()
834
- .describe("Filter accounts updated on or before this timestamp (ms)"),
835
- })
836
- .optional()
837
- .describe("Filter by update time range"),
838
- includePubkey: z
839
- .boolean()
840
- .optional()
841
- .describe("Include pubkey in results (default: false). Pubkey is large (~900 bytes), omit unless needed"),
842
- })
843
- .describe("Filter criteria for querying accounts. Multiple filters are combined with AND logic.");
844
- export const QueryAccountListSchema = z.object({
845
- filter: AccountFilterSchema.optional().describe("Account filter"),
846
- }).describe("Query account list parameters");
847
- export const AccountDataSchema = z.object({
848
- name: z.string().optional().describe("Account name"),
849
- address: z.string().describe("Account address"),
850
- pubkey: z.string().optional().describe("Account public key"),
851
- secret: z.string().optional().describe("Account secret key"),
852
- suspended: z.boolean().optional().describe("Whether account is suspended"),
853
- createdAt: z.number().optional().describe("Timestamp when account was created"),
854
- updatedAt: z.number().optional().describe("Timestamp when account was last updated"),
855
- messenger: z.boolean().optional().describe("Whether messenger is enabled for this account"),
856
- suspendedName: z.string().optional().describe("Name before suspension (set by suspend, cleared by resume)"),
857
- }).describe("Account data");
858
- export const QueryAccountListResultSchema = z.object({
859
- result: z.array(AccountDataSchema).describe("Account list"),
860
- }).describe("Query account list result");
861
- export const QueryLocalInfoListResultSchema = z.object({
862
- result: z.array(InfoDataSchema).describe("Local info list"),
863
- }).describe("Query local info list result");
864
- export const TokenTypeInfoSchema = z.object({
865
- type: z.string().describe("Token type"),
866
- alias: z.string().optional().describe("Token alias"),
867
- name: z.string().describe("Token name"),
868
- symbol: z.string().describe("Token symbol"),
869
- decimals: z.number().describe("Number of decimal places"),
870
- description: z.string().describe("Description of the token"),
871
- iconUrl: z.union([z.string(), z.null()]).optional().describe("URL for the token logo"),
872
- id: z.union([z.string(), z.null()]).optional().describe("Object id for the CoinMetadata object"),
873
- }).describe("Token type info");
874
- export const TokenDataFilterSchema = z.object({
875
- alias_or_name: NameSchema.optional().describe("Alias or name filter"),
876
- symbol: z.string().optional().describe("Token symbol"),
877
- type: z.string().optional().describe("Token type"),
878
- }).describe("Token data filter");
879
- export const QueryLocalTokenListResultSchema = z.object({
880
- result: z.array(TokenTypeInfoSchema).describe("Local token list"),
881
- }).describe("Query local token list result");
882
- export const AccountOperationOutputSchema = z.discriminatedUnion("status", [
883
- z.object({
884
- status: z.literal("success"),
885
- data: AccountOperationResultSchema.describe("Success result data"),
886
- }),
887
- z.object({
888
- status: z.literal("error"),
889
- error: z.string().describe("Error message"),
890
- ...LocalOperationErrorFields,
891
- }),
892
- ]).describe("Account operation output schema with discriminator");
893
- export const AccountOperationOutputWrappedSchema = z.object({
894
- result: AccountOperationOutputSchema,
895
- semantic: SemanticSummarySchema.optional().describe("Business semantic summary for account operation"),
896
- }).describe("Account operation output wrapped schema");
897
- export const LocalMarkOperationOutputSchema = z.discriminatedUnion("status", [
898
- z.object({
899
- status: z.literal("success"),
900
- data: LocalMarkOperationResultSchema.describe("Success result data"),
901
- }),
902
- z.object({
903
- status: z.literal("error"),
904
- error: z.string().describe("Error message"),
905
- ...LocalOperationErrorFields,
906
- }),
907
- ]).describe("Local mark operation output schema with discriminator");
908
- export const LocalMarkOperationOutputWrappedSchema = z.object({
909
- result: LocalMarkOperationOutputSchema,
910
- semantic: SemanticSummarySchema.optional().describe("Business semantic summary for local mark operation"),
911
- }).describe("Local mark operation output wrapped schema");
912
- export const LocalInfoOperationOutputSchema = z.discriminatedUnion("status", [
913
- z.object({
914
- status: z.literal("success"),
915
- data: LocalInfoOperationResultSchema.describe("Success result data"),
916
- }),
917
- z.object({
918
- status: z.literal("error"),
919
- error: z.string().describe("Error message"),
920
- ...LocalOperationErrorFields,
921
- }),
922
- ]).describe("Local info operation output schema with discriminator");
923
- export const LocalInfoOperationOutputWrappedSchema = z.object({
924
- result: LocalInfoOperationOutputSchema,
925
- semantic: SemanticSummarySchema.optional().describe("Business semantic summary for local info operation"),
926
- }).describe("Local info operation output wrapped schema");
927
- export * from "./wip.js";
1
+ import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';import{SemanticSummarySchema as a276a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a276a),LocalOperationErrorFields={'error_code':z['enum'](['invalid_parameter','guard_rejected','state_conflict','insufficient_balance','object_not_found','permission_denied','immutable_violation','network_error','rate_limit','gas_exceeded','bcs_error','signature_error','config_error','wip_verification_failed','unknown'])['optional']()['describe']('Error\x20classification\x20for\x20programmatic\x20recovery'),'retryable':z['boolean']()['optional']()['describe']('Whether\x20the\x20operation\x20can\x20be\x20retried\x20as-is'),'recovery_hint':z['string']()['optional']()['describe']('Recovery\x20suggestion\x20for\x20AI\x20or\x20user')};export const LocalMarkConstraints={'nameMaxLength':0x40,'tagMaxLength':0x40,'tagMaxCount':0x32};export const LocalInfoConstraints={'nameMaxLength':0x40,'contentMaxLength':0x12c,'contentMaxCount':0x32,'defaultName':'Address\x20of\x20delivery'};export const AccountConstraints={'nameMaxLength':0x40};export const ErrorResultSchema=z['object']({'error':z['literal'](!![])['describe']('Always\x20true\x20for\x20error\x20responses'),'code':z['string']()['optional']()['describe']('Error\x20code\x20for\x20programmatic\x20handling'),'message':z['string']()['describe']('Human-readable\x20error\x20message'),'details':z['record'](z['string'](),z['string']())['optional']()['describe']('Additional\x20error\x20context')})['describe']('Error\x20response\x20structure');export const createResultSchema=a=>z['union']([z['object']({'success':z['literal'](!![]),'data':a}),ErrorResultSchema]);export const CoinBalanceSchema=z['object']({'coinType':z['string']()['describe']('Coin\x20type'),'coinObjectCount':z['number']()['describe']('Coin\x20object\x20count'),'totalBalance':z['string']()['describe']('Total\x20balance'),'lockedBalance':z['record'](z['string'](),z['string']())['describe']('Locked\x20balance')})['describe']('Coin\x20balance');export const CoinStructSchema=z['object']({'balance':z['string']()['describe']('Coin\x20balance'),'coinObjectId':z['string']()['describe']('Coin\x20object\x20ID'),'coinType':z['string']()['describe']('Coin\x20type'),'digest':z['string']()['describe']('Transaction\x20digest'),'previousTransaction':z['string']()['describe']('Previous\x20transaction\x20digest'),'version':z['union']([z['string'](),z['number']()])['describe']('Coin\x20object\x20version')})['describe']('Coin\x20object');export const PaginatedCoinsSchema=z['object']({'data':z['array'](CoinStructSchema)['describe']('Coin\x20object\x20list'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Next\x20query\x20cursor')})['describe']('Paginated\x20coin\x20objects');export const FaucetCoinInfoSchema=z['object']({'amount':z['number']()['describe']('Coin\x20amount'),'id':z['string']()['describe']('Coin\x20ID'),'transferTxDigest':z['string']()['describe']('Transfer\x20transaction\x20digest')})['describe']('Testnet\x20faucet\x20coin\x20info');export const EventIdSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20ID');export const WowEventSchema=z['discriminatedUnion']('bcsEncoding',[z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['unknown']())['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20address'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base64')['describe']('BCS\x20encoding\x20format')}),z['object']({'id':EventIdSchema['describe']('Event\x20ID'),'packageId':z['string']()['describe']('Package\x20ID\x20where\x20event\x20originated'),'parsedJson':z['record'](z['string'](),z['unknown']())['describe']('Parsed\x20JSON\x20value\x20of\x20the\x20event'),'sender':z['string']()['describe']('Sender\x27s\x20ID'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('UTC\x20timestamp\x20in\x20milliseconds\x20since\x20epoch'),'transactionModule':z['string']()['describe']('Module\x20where\x20event\x20originated'),'type':z['string']()['describe']('Move\x20event\x20type'),'bcs':z['string']()['describe']('BCS\x20encoded\x20event'),'bcsEncoding':z['literal']('base58')['describe']('BCS\x20encoding\x20format')})])['describe']('Blockchain\x20event');export const BalanceChangeSchema=z['object']({'amount':z['string']()['describe']('Balance\x20change\x20value,\x20negative\x20for\x20spending,\x20positive\x20for\x20receiving'),'coinType':z['string']()['describe']('Coin\x20type'),'owner':ObjectOwnerSchema['describe']('Owner\x20of\x20the\x20balance\x20change')})['describe']('Balance\x20change');export const GasCostSummarySchema=z['object']({'computationCost':z['string']()['describe']('Computation/execution\x20cost'),'nonRefundableStorageFee':z['string']()['describe']('Non-refundable\x20storage\x20fee'),'storageCost':z['string']()['describe']('Storage\x20cost'),'storageRebate':z['string']()['describe']('Storage\x20rebate')})['describe']('Transaction\x20fee\x20summary');export const WowObjectRefSchema=z['object']({'digest':z['string']()['describe']('Base64\x20string\x20of\x20object\x20digest'),'objectId':z['string']()['describe']('Hex\x20code\x20string\x20representing\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Object\x20version')})['describe']('Wow\x20object\x20reference');export const OwnedObjectRefSchema=z['object']({'owner':ObjectOwnerSchema['describe']('Owner'),'reference':WowObjectRefSchema['describe']('Object\x20reference')})['describe']('Owned\x20object\x20reference');export const TransactionBlockEffectsModifiedAtVersionsSchema=z['object']({'objectId':z['string']()['describe']('Object\x20ID'),'sequenceNumber':z['union']([z['string'](),z['number']()])['describe']('Sequence\x20number')})['describe']('Transaction\x20block\x20effects\x20modified\x20versions');export const WowMoveAbortSchema=z['object']({'error_code':z['union']([z['string'](),z['null']()])['optional']()['describe']('Error\x20code'),'function':z['union']([z['string'](),z['null']()])['optional']()['describe']('Function'),'line':z['union']([z['number'](),z['null']()])['optional']()['describe']('Line\x20number'),'module_id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Module\x20ID')})['describe']('Wow\x20Move\x20abort');export const ExecutionStatusSchema=z['object']({'status':z['union']([z['literal']('success'),z['literal']('failure')])['describe']('Execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message')})['describe']('Execution\x20status');export const WowGasDataSchema=z['object']({'budget':z['string']()['describe']('Budget'),'owner':z['string']()['describe']('Owner'),'payment':z['array'](WowObjectRefSchema)['describe']('Payment'),'price':z['string']()['describe']('Price')})['describe']('Wow\x20gas\x20data');export const WowTransactionBlockKindSchema=z['object']({'kind':z['string']()['describe']('Transaction\x20type')})['passthrough']()['describe']('Wow\x20transaction\x20block\x20kind');export const TransactionBlockDataSchema=z['object']({'gasData':WowGasDataSchema['describe']('Gas\x20data'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'sender':z['string']()['describe']('Sender'),'transaction':WowTransactionBlockKindSchema['describe']('Transaction')})['describe']('Transaction\x20block\x20data');export const WowTransactionBlockSchema=z['object']({'data':TransactionBlockDataSchema['describe']('Transaction\x20data'),'txSignatures':z['array'](z['string']())['describe']('Transaction\x20signatures')})['describe']('Wow\x20transaction\x20block');export const WowObjectChangeSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('published'),'digest':z['string']()['describe']('Digest'),'modules':z['array'](z['string']())['describe']('Modules'),'packageId':z['string']()['describe']('Package\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('transferred'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'recipient':ObjectOwnerSchema['describe']('Recipient'),'sender':z['string']()['describe']('Sender\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('mutated'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'previousVersion':z['union']([z['string'](),z['number']()])['describe']('Previous\x20version'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('deleted'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('wrapped'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')}),z['object']({'type':z['literal']('created'),'digest':z['string']()['describe']('Digest'),'objectId':z['string']()['describe']('Object\x20ID'),'objectType':z['string']()['describe']('Object\x20type'),'owner':z['union']([ObjectOwnerSchema,z['null']()])['describe']('Owner'),'sender':z['string']()['describe']('Sender'),'version':z['union']([z['string'](),z['number']()])['describe']('Version')})])['describe']('Object\x20change\x20information');export const TransactionEffectsSchema=z['object']({'abortError':z['union']([WowMoveAbortSchema,z['null']()])['optional']()['describe']('Abort\x20error\x20if\x20transaction\x20failed\x20with\x20abort\x20code'),'created':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20newly\x20created\x20objects'),'deleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20(old\x20refs)\x20of\x20now\x20deleted\x20objects'),'dependencies':z['array'](z['string']())['optional']()['describe']('Set\x20of\x20transaction\x20digests\x20this\x20transaction\x20depends\x20on'),'eventsDigest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20events\x20emitted\x20during\x20execution'),'executedEpoch':z['union']([z['string'](),z['number']()])['describe']('Epoch\x20in\x20which\x20this\x20transaction\x20was\x20executed'),'gasObject':OwnedObjectRefSchema['describe']('Updated\x20gas\x20object\x20reference'),'gasUsed':GasCostSummarySchema['describe']('Gas\x20used'),'messageVersion':z['literal']('v1')['describe']('Message\x20version'),'modifiedAtVersions':z['array'](TransactionBlockEffectsModifiedAtVersionsSchema)['optional']()['describe']('Version\x20of\x20each\x20modified\x20(mutated\x20or\x20deleted)\x20object\x20before\x20this\x20transaction\x20modified\x20it'),'mutated':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20mutated\x20objects,\x20including\x20gas\x20object'),'sharedObjects':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20shared\x20objects\x20used\x20in\x20this\x20transaction'),'status':ExecutionStatusSchema['describe']('Execution\x20status'),'transactionDigest':z['string']()['describe']('Transaction\x20digest'),'unwrapped':z['array'](OwnedObjectRefSchema)['optional']()['describe']('ObjectRef\x20and\x20owner\x20of\x20objects\x20unwrapped\x20in\x20this\x20transaction'),'unwrappedThenDeleted':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20previously\x20wrapped\x20in\x20other\x20objects\x20but\x20now\x20deleted'),'wrapped':z['array'](WowObjectRefSchema)['optional']()['describe']('Object\x20references\x20of\x20objects\x20now\x20wrapped\x20in\x20other\x20objects')})['describe']('Transaction\x20effects');export const WowTransactionBlockResponseSchema=z['object']({'balanceChanges':z['union']([z['array'](BalanceChangeSchema),z['null']()])['optional']()['describe']('Balance\x20changes'),'checkpoint':z['union']([z['string'](),z['null']()])['optional']()['describe']('Checkpoint\x20number\x20that\x20this\x20transaction\x20is\x20included\x20in\x20and\x20thus\x20completed'),'confirmedLocalExecution':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Confirmed\x20local\x20execution'),'digest':z['string']()['describe']('Transaction\x20digest'),'effects':z['union']([TransactionEffectsSchema,z['null']()])['optional']()['describe']('Transaction\x20effects'),'errors':z['array'](z['string']())['optional']()['describe']('Error\x20messages'),'events':z['union']([z['array'](WowEventSchema),z['null']()])['optional']()['describe']('Events'),'objectChanges':z['union']([z['array'](WowObjectChangeSchema),z['null']()])['optional']()['describe']('Object\x20changes'),'rawEffects':z['array'](z['number']())['optional']()['describe']('Raw\x20effects'),'rawTransaction':z['string']()['optional']()['describe']('Raw\x20transaction'),'timestampMs':z['union']([z['string'](),z['null']()])['optional']()['describe']('Timestamp'),'transaction':z['union']([WowTransactionBlockSchema,z['null']()])['optional']()['describe']('Transaction\x20input\x20data')})['describe']('Wow\x20transaction\x20block\x20response');export const MarkParamSchema=z['object']({'name':z['object']({'value':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Mark\x20name\x20value\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'replaceExistName':z['boolean']()['optional']()['default'](![])['describe']('If\x20true,\x20replace\x20existing\x20mark\x20with\x20same\x20name;\x20if\x20false\x20(default),\x20throw\x20error\x20when\x20name\x20exists')})['optional']()['describe']('Mark\x20naming\x20configuration.\x20MUST\x20be\x20an\x20object\x20{value:\x20string,\x20replaceExistName?:\x20boolean},\x20NOT\x20a\x20plain\x20string.\x20Example:\x20{name:\x20{value:\x20\x27my-account\x27,\x20replaceExistName:\x20true}}'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20ONLY:\x20Parameters\x20for\x20creating\x20or\x20updating\x20a\x20LOCAL\x20mark.\x20This\x20data\x20is\x20stored\x20privately\x20on\x20your\x20device\x20and\x20will\x20NEVER\x20be\x20published\x20to\x20the\x20blockchain.\x20'+'For\x20public\x20on-chain\x20marks,\x20use\x20the\x20\x27personal\x27\x20tool\x20instead.\x20'+'IMPORTANT:\x20\x27name\x27\x20field\x20is\x20an\x20OBJECT\x20{value,\x20replaceExistName?},\x20not\x20a\x20string.\x20'+'FIX-011\x20cross-network\x20consistency:\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network.\x20'+'When\x20creating\x20marks\x20for\x20the\x20same\x20logical\x20object\x20on\x20different\x20networks\x20(e.g.\x20testnet\x20and\x20mainnet),\x20'+'use\x20the\x20SAME\x20name\x20value\x20to\x20keep\x20name-based\x20references\x20portable.\x20'+'Before\x20creating\x20a\x20mark\x20on\x20mainnet,\x20check\x20if\x20a\x20mark\x20with\x20the\x20same\x20name\x20already\x20exists\x20on\x20testnet\x20'+'(via\x20query_local\x20with\x20network=\x27testnet\x27)\x20and\x20replicate\x20the\x20same\x20name\x20on\x20mainnet\x20for\x20consistency.');export const MarkDataSchema=z['object']({'name':z['string']()['max'](LocalMarkConstraints['nameMaxLength'],'Mark\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters')['optional']()['describe']('Mark\x20name\x20(max\x20'+LocalMarkConstraints['nameMaxLength']+'\x20bcs\x20characters)'),'address':WowAddressSchema,'tags':z['array'](z['string']()['max'](LocalMarkConstraints['tagMaxLength'],'Tag\x20exceeds\x20maximum\x20length\x20of\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters'))['max'](LocalMarkConstraints['tagMaxCount'],'Tag\x20count\x20exceeds\x20maximum\x20of\x20'+LocalMarkConstraints['tagMaxCount'])['optional']()['describe']('Tags\x20for\x20categorization\x20(max\x20'+LocalMarkConstraints['tagMaxCount']+'\x20tags,\x20each\x20max\x20'+LocalMarkConstraints['tagMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20mark\x20was\x20last\x20modified')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20mark\x20data\x20structure\x20for\x20storing\x20address\x20names\x20and\x20tags\x20privately\x20on\x20your\x20device.\x20This\x20data\x20is\x20NEVER\x20published\x20to\x20the\x20blockchain.\x20CROSS-NETWORK\x20ISOLATION\x20(DOC-02):\x20LocalMark\x20names\x20are\x20scoped\x20per\x20network\x20—\x20the\x20same\x20name\x20\x27my-service\x27\x20can\x20map\x20to\x20different\x20addresses\x20on\x20testnet\x20vs\x20mainnet.\x20When\x20switching\x20networks\x20(e.g.,\x20testnet→mainnet\x20deployment),\x20re-create\x20marks\x20with\x20the\x20same\x20names\x20pointing\x20to\x20the\x20new\x20mainnet\x20addresses.\x20This\x20enables\x20name-based\x20object\x20references\x20that\x20work\x20identically\x20across\x20networks\x20without\x20code\x20changes.');export const InfoDataInnerSchema=z['object']({'default':z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Default\x20value\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters')['describe']('Primary/default\x20value\x20for\x20this\x20info\x20(max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'contents':z['array'](z['string']()['max'](LocalInfoConstraints['contentMaxLength'],'Content\x20item\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters'))['max'](LocalInfoConstraints['contentMaxCount'],'Content\x20count\x20exceeds\x20maximum\x20of\x20'+LocalInfoConstraints['contentMaxCount'])['optional']()['describe']('Additional\x20content\x20values\x20(max\x20'+LocalInfoConstraints['contentMaxCount']+'\x20items,\x20each\x20max\x20'+LocalInfoConstraints['contentMaxLength']+'\x20bcs\x20characters)'),'createdAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Unix\x20timestamp\x20(ms)\x20when\x20this\x20info\x20was\x20last\x20modified')})['describe']('Info\x20data\x20inner\x20structure');export const InfoDataSchema=InfoDataInnerSchema['extend']({'name':z['string']()['max'](LocalInfoConstraints['nameMaxLength'],'Info\x20name\x20exceeds\x20maximum\x20length\x20of\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters')['describe']('Unique\x20identifier\x20for\x20this\x20info\x20entry\x20(max\x20'+LocalInfoConstraints['nameMaxLength']+'\x20bcs\x20characters)')})['describe']('LOCAL\x20PRIVATE:\x20Local\x20info\x20data\x20structure\x20for\x20storing\x20sensitive\x20personal\x20information\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20etc.\x20This\x20data\x20is\x20stored\x20ONLY\x20on\x20your\x20device\x20and\x20NEVER\x20published\x20to\x20the\x20blockchain.');export const LocalMarkFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20mark\x20name\x20(supports\x20fuzzy\x20match)'),'tags':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20tags\x20-\x20returns\x20marks\x20that\x20contain\x20ANY\x20of\x20the\x20specified\x20tags'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20address\x20(exact\x20match,\x20format:\x200x\x20+\x2064\x20hex\x20characters)'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20marks\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20marks.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const LocalInfoFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20info\x20name\x20(supports\x20fuzzy\x20match)'),'default':z['string']()['optional']()['describe']('Filter\x20by\x20default\x20value\x20(supports\x20fuzzy\x20match)'),'contents':z['array'](z['string']())['optional']()['describe']('Filter\x20by\x20contents\x20-\x20returns\x20info\x20that\x20contains\x20ANY\x20of\x20the\x20specified\x20content\x20items'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20info\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range')})['describe']('Filter\x20criteria\x20for\x20querying\x20local\x20info.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryLocalInfoListSchema=z['object']({'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['describe']('Query\x20local\x20info\x20list\x20parameters');export const QueryAccountSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Whether\x20to\x20query\x20coin\x20balance\x20amount'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Query\x20cursor\x20for\x20pagination'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20objects\x20to\x20return')})['optional']()['describe']('Whether\x20to\x20query\x20coin\x20object\x20list'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['describe']('Used\x20to\x20query\x20account\x27s\x20coin\x20balance');export const QueryAccountResultSchema=z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID'),'address':z['string']()['optional']()['describe']('Account\x20ID'),'balance':CoinBalanceSchema['optional']()['describe']('Coin\x20balance\x20details'),'coin':PaginatedCoinsSchema['optional']()['describe']('Paginated\x20coin\x20object\x20list')})['describe']('Result\x20of\x20querying\x20account\x27s\x20coin\x20balance');export const AccountOperationSchema=z['object']({'gen':z['object']({'name':NameSchema['optional']()['describe']('Account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Use\x20empty\x20string\x20\x27\x27\x20or\x20omit\x20for\x20the\x20default\x20account.\x20'+'Recommended\x20convention:\x20<role>-<number>\x20(e.g.\x20shop-001,\x20user-001,\x20arb-001)\x20for\x20easy\x20filtering\x20and\x20batch\x20operations.'),'replaceExistName':z['boolean']()['optional']()['describe']('DISCOURAGED.\x20If\x20true,\x20an\x20existing\x20account\x20with\x20the\x20same\x20name\x20will\x20be\x20SUSPENDED\x20(not\x20just\x20renamed)\x20to\x20free\x20the\x20name\x20for\x20the\x20new\x20account.\x20'+'The\x20old\x20account\x20moves\x20to\x20the\x20Suspended\x20tab\x20and\x20cannot\x20sign\x20transactions\x20until\x20resumed\x20with\x20a\x20new\x20name.\x20'+'FORBIDDEN\x20on\x20the\x20default\x20account\x20(name=\x27\x27\x20or\x20omitted)\x20—\x20the\x20default\x20account\x20is\x20unique\x20and\x20cannot\x20be\x20replaced;\x20use\x20suspend()\x20explicitly\x20instead.\x20'+'Prefer\x20versioned\x20names\x20(e.g.\x20\x27shop_v2\x27)\x20over\x20replaceExistName\x20for\x20production.\x20Default:\x20false\x20(throws\x20AccountNameExist\x20on\x20collision).'),'messenger':z['boolean']()['optional']()['describe']('Enable\x20messenger\x20for\x20this\x20account.\x20true=enable,\x20false=disable,\x20omit=unchanged.\x20'+'Account\x20name\x20is\x20used\x20for\x20messenger\x20identity\x20lookup\x20(no\x20separate\x20messenger\x20name).')})['optional']()['describe']('Generate\x20new\x20account'),'faucet':z['preprocess'](a=>{if(a&&typeof a==='object'&&!Array['isArray'](a)){const b=a;b['name']!==undefined&&b['name_or_address']===undefined&&(b['name_or_address']=b['name'],delete b['name']);}return a;},z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'network':FaucetNetworkSchema})['strict']())['optional']()['describe']('Distribute\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.')})['optional']()['describe']('Remove\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions),\x20and\x20delete\x20its\x20name'),'resume':z['object']({'address':WowAddressSchema,'name':NameSchema['optional']()['describe']('New\x20name\x20for\x20the\x20resumed\x20account.\x20Omit\x20to\x20leave\x20unnamed.')})['optional']()['describe']('Add\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.\x20Can\x20be\x20a\x20name\x20or\x20address.'),'new_name':NameSchema['describe']('New\x20account\x20name\x20(max\x20'+AccountConstraints['nameMaxLength']+'\x20characters).\x20Must\x20be\x20a\x20name\x20(not\x20an\x20address).')})['optional']()['describe']('Rename\x20account.\x20name_or_address\x20can\x20be\x20name\x20or\x20address,\x20new_name\x20must\x20be\x20a\x20name.'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.')})['optional']()['describe']('Swap\x20the\x20names\x20of\x20two\x20accounts'),'transfer':z['object']({'name_or_address_from':NameOrAddressSchema['optional']()['describe']('Sender\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'name_or_address_to':NameOrAddressSchema['optional']()['describe']('Recipient\x20account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'amount':z['union']([z['number'](),z['string']()])['describe']('Amount\x20of\x20tokens\x20to\x20transfer'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Transfer\x20tokens\x20from\x20one\x20account\x20to\x20another'),'get':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20balance\x20amount'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Generate\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount\x20and\x20return'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'data':z['string']()['describe']('Data\x20to\x20sign.\x20If\x20data_encoding\x20is\x20not\x20specified,\x20treated\x20as\x20UTF-8\x20string.'),'data_encoding':z['union']([z['literal']('utf8')['describe']('Data\x20is\x20UTF-8\x20encoded\x20string'),z['literal']('base64')['describe']('Data\x20is\x20base64\x20encoded\x20bytes'),z['literal']('hex')['describe']('Data\x20is\x20hex\x20encoded\x20bytes\x20(with\x20or\x20without\x200x\x20prefix)')])['optional']()['describe']('Encoding\x20format\x20of\x20the\x20data\x20field.\x20If\x20not\x20specified,\x20defaults\x20to\x20utf8.')})['optional']()['describe']('Sign\x20data\x20with\x20account\x27s\x20private\x20key'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20Defaults\x20to\x20\x27\x27\x20if\x20omitted.'),'enabled':z['boolean']()['describe']('true\x20to\x20enable\x20messenger,\x20false\x20to\x20disable')})['optional']()['describe']('Enable\x20or\x20disable\x20messenger\x20for\x20an\x20account')})['strict']()['refine'](a=>Object['keys'](a)['length']>0x0,'At\x20least\x20one\x20operation\x20(gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger)\x20must\x20be\x20specified')['describe']('Account\x20operations\x20(mutations\x20only:\x20gen/faucet/suspend/resume/rename/swap_name/transfer/get/signData/messenger).\x20'+'Parameters\x20MUST\x20be\x20wrapped\x20in\x20the\x20operation\x20type\x20property\x20(e.g.\x20{transfer:\x20{...}},\x20NOT\x20{amount:\x20...}).\x20Unwrapped\x20parameters\x20are\x20rejected.\x20'+'TO\x20LIST\x20ALL\x20ACCOUNTS:\x20use\x20the\x20query_toolkit\x20tool\x20with\x20query_type=\x27account_list\x27\x20(returns\x20name,\x20address,\x20suspended\x20status,\x20messenger\x20status\x20for\x20all\x20local\x20accounts).\x20'+'This\x20separation\x20follows\x20CQRS:\x20account_operation\x20=\x20mutations,\x20query_toolkit\x20=\x20queries.\x20'+'Common\x20workflow\x20after\x20MCP\x20restart:\x20(1)\x20query_toolkit\x20query_type=\x27account_list\x27\x20to\x20see\x20all\x20accounts,\x20(2)\x20account_operation\x20with\x20the\x20appropriate\x20mutation.');export const AccountOperationResultSchema=z['object']({'gen':z['object']({'address':z['string']()['describe']('Newly\x20generated\x20account\x20ID'),'name':NameSchema['optional']()['describe']('Account\x20name'),'messenger':z['boolean']()['optional']()['describe']('Messenger\x20enabled\x20flag')})['optional']()['describe']('Result\x20of\x20generating\x20new\x20account'),'faucet':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20received\x20faucet\x20coins'),'result':z['array'](FaucetCoinInfoSchema)['describe']('List\x20of\x20distributed\x20test\x20coin\x20info'),'network':FaucetNetworkSchema})['optional']()['describe']('Result\x20of\x20distributing\x20test\x20coins\x20from\x20faucet\x20to\x20the\x20specified\x20account'),'suspend':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20that\x20was\x20suspended'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20suspended,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20removing\x20account\x20from\x20active\x20account\x20list\x20(cannot\x20sign\x20transactions)'),'resume':z['object']({'address':WowAddressSchema['describe']('Account\x20ID\x20that\x20was\x20resumed'),'name':NameSchema['optional']()['describe']('New\x20name\x20assigned\x20to\x20the\x20account'),'success':z['boolean']()['describe']('True\x20if\x20account\x20was\x20successfully\x20resumed,\x20false\x20if\x20account\x20does\x20not\x20exist')})['optional']()['describe']('Result\x20of\x20adding\x20account\x20back\x20to\x20active\x20account\x20list'),'rename':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Source\x20account\x20name\x20or\x20address\x20that\x20was\x20renamed'),'new_name':NameSchema['describe']('New\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20rename\x20was\x20successful,\x20false\x20if\x20account\x20not\x20found\x20or\x20name\x20already\x20exists')})['optional']()['describe']('Result\x20of\x20renaming\x20account'),'swap_name':z['object']({'name1':NameSchema['optional']()['describe']('First\x20account\x20name'),'name2':NameSchema['optional']()['describe']('Second\x20account\x20name'),'success':z['boolean']()['describe']('True\x20if\x20swap\x20was\x20successful,\x20false\x20if\x20either\x20account\x20not\x20found')})['optional']()['describe']('Result\x20of\x20swapping\x20account\x20names'),'transfer':WowTransactionBlockResponseSchema['optional']()['describe']('Result\x20of\x20token\x20transfer\x20transaction'),'get':z['object']({'coin_address':z['string']()['optional']()['describe']('Newly\x20generated\x20coin\x20object\x20ID'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20coin\x20object\x20balance'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Result\x20of\x20generating\x20new\x20coin\x20object\x20ID\x20from\x20account\x20by\x20required\x20amount'),'signData':z['object']({'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20used\x20for\x20signing'),'signature':z['string']()['describe']('Signature\x20in\x20hex\x20format'),'publicKey':z['string']()['describe']('Public\x20key\x20in\x20hex\x20format'),'address':z['string']()['describe']('Account\x20address')})['optional']()['describe']('Result\x20of\x20signing\x20data\x20with\x20account'),'messenger':z['object']({'name_or_account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'enabled':z['boolean']()['describe']('Messenger\x20enabled\x20flag')})['optional']()['describe']('Result\x20of\x20enabling\x20or\x20disabling\x20messenger\x20for\x20an\x20account')})['describe']('Results\x20of\x20account\x20operations');export const LocalMarkOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20marks'),'data':z['array'](MarkParamSchema)['min'](0x1)['describe']('Array\x20of\x20mark\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Add\x20one\x20or\x20more\x20marks'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20marks'),'names':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20mark\x20names\x20or\x20addresses\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20marks\x20by\x20name\x20or\x20address'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20marks')})['strict']()['optional']()['describe']('Remove\x20all\x20marks')})['strict']()['refine'](a=>a['add']!==undefined||a['remove']!==undefined||a['clear']!==undefined,{'message':'Exactly\x20one\x20operation\x20field\x20(add/remove/clear)\x20must\x20be\x20specified.\x20'+'CORRECT\x20format:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20or\x20{remove:\x20{op:\x27remove\x27,\x20names:[...]}}\x20or\x20{clear:\x20{op:\x27clear\x27}}.\x20'+'INCORRECT\x20flat\x20format\x20{op:\x27add\x27,\x20data:[...]}\x20will\x20silently\x20do\x20nothing.'})['describe']('Local\x20mark\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/clear)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}.');export const LocalMarkOperationResultSchema=z['object']({'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20marks\x20were\x20successfully\x20removed'),'add':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20added\x20mark\x20data'),'remove':z['array'](MarkDataSchema)['optional']()['describe']('List\x20of\x20removed\x20mark\x20data')})['describe']('Results\x20of\x20local\x20mark\x20operations\x20for\x20ID');export const LocalInfoOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20info'),'data':z['array'](InfoDataSchema)['min'](0x1)['describe']('Array\x20of\x20info\x20data\x20to\x20add\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Add\x20one\x20or\x20more\x20info\x20entries'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20info'),'data':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20info\x20names\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20info\x20entries\x20by\x20name'),'reset':z['object']({'op':z['literal']('reset')['describe']('Operation\x20type:\x20reset\x20contents'),'name':z['string']()['describe']('Name\x20of\x20info\x20entry\x20to\x20reset'),'contents':z['array'](z['string']())['describe']('New\x20content\x20list\x20to\x20replace\x20existing\x20contents')})['strict']()['optional']()['describe']('Reset\x20the\x20contents\x20of\x20an\x20existing\x20info\x20entry'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20info')})['strict']()['optional']()['describe']('Remove\x20all\x20info\x20entries')})['strict']()['refine'](a=>a['add']!==undefined||a['remove']!==undefined||a['reset']!==undefined||a['clear']!==undefined,{'message':'Exactly\x20one\x20operation\x20field\x20(add/remove/reset/clear)\x20must\x20be\x20specified.\x20'+'CORRECT\x20format:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20or\x20{remove:\x20{op:\x27remove\x27,\x20data:[...]}}\x20etc.\x20'+'INCORRECT\x20flat\x20format\x20{op:\x27add\x27,\x20data:[...]}\x20will\x20silently\x20do\x20nothing.'})['describe']('Local\x20info\x20operations.\x20Exactly\x20one\x20operation\x20type\x20(add/remove/reset/clear)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}.');export const LocalInfoOperationResultSchema=z['object']({'success':z['boolean']()['describe']('Whether\x20successful')})['describe']('Results\x20of\x20local\x20info\x20operations');export const FetchTokenInfoOperationSchema=z['object']({'tokenType':z['union']([TokenTypeSchema,z['null']()])['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'alias':NameSchema['optional']()['describe']('Token\x20alias;\x20used\x20to\x20quickly\x20fetch\x20token\x20info'),'network':EntrypointSchema['optional']()})['describe']('Fetch\x20token\x20info\x20to\x20local\x20and\x20name\x20it');export const QueryLocalMarkListSchema=z['object']({'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['describe']('Query\x20local\x20mark\x20list\x20parameters');export const QueryLocalMarkListResultSchema=z['object']({'result':z['array'](MarkDataSchema)['describe']('Local\x20mark\x20list')})['describe']('Query\x20local\x20mark\x20list\x20result');export const AccountFilterSchema=z['object']({'name':NameSchema['optional']()['describe']('Filter\x20by\x20account\x20name\x20(supports\x20fuzzy\x20match)'),'address':WowAddressSchema['optional']()['describe']('Filter\x20by\x20account\x20address\x20(supports\x20partial\x20match,\x20format:\x200x\x20+\x20hex\x20characters)'),'suspended':z['boolean']()['optional']()['describe']('Filter\x20by\x20suspension\x20status.\x20Omit\x20to\x20return\x20all\x20accounts\x20regardless\x20of\x20status'),'hasMessenger':z['boolean']()['optional']()['describe']('Filter\x20accounts\x20with\x20messenger\x20enabled'),'createdAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20created\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20creation\x20time\x20range'),'updatedAt':z['object']({'gte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20after\x20this\x20timestamp\x20(ms)'),'lte':z['number']()['optional']()['describe']('Filter\x20accounts\x20updated\x20on\x20or\x20before\x20this\x20timestamp\x20(ms)')})['optional']()['describe']('Filter\x20by\x20update\x20time\x20range'),'includePubkey':z['boolean']()['optional']()['describe']('Include\x20pubkey\x20in\x20results\x20(default:\x20false).\x20Pubkey\x20is\x20large\x20(~900\x20bytes),\x20omit\x20unless\x20needed')})['describe']('Filter\x20criteria\x20for\x20querying\x20accounts.\x20Multiple\x20filters\x20are\x20combined\x20with\x20AND\x20logic.');export const QueryAccountListSchema=z['object']({'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['describe']('Query\x20account\x20list\x20parameters');export const AccountDataSchema=z['object']({'name':z['string']()['optional']()['describe']('Account\x20name'),'address':z['string']()['describe']('Account\x20address'),'pubkey':z['string']()['optional']()['describe']('Account\x20public\x20key'),'secret':z['string']()['optional']()['describe']('Account\x20secret\x20key'),'suspended':z['boolean']()['optional']()['describe']('Whether\x20account\x20is\x20suspended'),'createdAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20created'),'updatedAt':z['number']()['optional']()['describe']('Timestamp\x20when\x20account\x20was\x20last\x20updated'),'messenger':z['boolean']()['optional']()['describe']('Whether\x20messenger\x20is\x20enabled\x20for\x20this\x20account'),'suspendedName':z['string']()['optional']()['describe']('Name\x20before\x20suspension\x20(set\x20by\x20suspend,\x20cleared\x20by\x20resume)')})['describe']('Account\x20data');export const QueryAccountListResultSchema=z['object']({'result':z['array'](AccountDataSchema)['describe']('Account\x20list')})['describe']('Query\x20account\x20list\x20result');export const QueryLocalInfoListResultSchema=z['object']({'result':z['array'](InfoDataSchema)['describe']('Local\x20info\x20list')})['describe']('Query\x20local\x20info\x20list\x20result');export const TokenTypeInfoSchema=z['object']({'type':z['string']()['describe']('Token\x20type'),'alias':z['string']()['optional']()['describe']('Token\x20alias'),'name':z['string']()['describe']('Token\x20name'),'symbol':z['string']()['describe']('Token\x20symbol'),'decimals':z['number']()['describe']('Number\x20of\x20decimal\x20places'),'description':z['string']()['describe']('Description\x20of\x20the\x20token'),'iconUrl':z['union']([z['string'](),z['null']()])['optional']()['describe']('URL\x20for\x20the\x20token\x20logo'),'id':z['union']([z['string'](),z['null']()])['optional']()['describe']('Object\x20id\x20for\x20the\x20CoinMetadata\x20object')})['describe']('Token\x20type\x20info');export const TokenDataFilterSchema=z['object']({'alias_or_name':NameSchema['optional']()['describe']('Alias\x20or\x20name\x20filter'),'symbol':z['string']()['optional']()['describe']('Token\x20symbol'),'type':z['string']()['optional']()['describe']('Token\x20type')})['describe']('Token\x20data\x20filter');export const QueryLocalTokenListResultSchema=z['object']({'result':z['array'](TokenTypeInfoSchema)['describe']('Local\x20token\x20list')})['describe']('Query\x20local\x20token\x20list\x20result');export const AccountOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':AccountOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Account\x20operation\x20output\x20schema\x20with\x20discriminator');export const AccountOperationOutputWrappedSchema=z['object']({'result':AccountOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20account\x20operation')})['describe']('Account\x20operation\x20output\x20wrapped\x20schema');export const LocalMarkOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalMarkOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20mark\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalMarkOperationOutputWrappedSchema=z['object']({'result':LocalMarkOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20mark\x20operation')})['describe']('Local\x20mark\x20operation\x20output\x20wrapped\x20schema');export const LocalInfoOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalInfoOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20info\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalInfoOperationOutputWrappedSchema=z['object']({'result':LocalInfoOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20info\x20operation')})['describe']('Local\x20info\x20operation\x20output\x20wrapped\x20schema');export*from'./wip.js';