@wowok/agent-mcp 3.2.4 → 3.2.6
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.
- package/dist/composition/blueprint-view.d.ts +64 -0
- package/dist/composition/blueprint-view.js +1 -0
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/industry-pack.d.ts +1 -0
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/extensions/registry.d.ts +1 -2
- package/dist/extensions/registry.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exposure.js +1 -1
- package/dist/graph/onchain/facts.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +2 -0
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/allocation.json +5 -5
- package/dist/knowledge/baselines/rules/arb.json +1 -1
- package/dist/knowledge/baselines/rules/guard.json +9 -9
- package/dist/knowledge/baselines/rules/machine.json +5 -5
- package/dist/knowledge/baselines/rules/order.json +1 -1
- package/dist/knowledge/builtin-templates.d.ts +2 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/entity-recipient-guard.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-generalizer.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +2 -4
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-templates.js +1 -1
- package/dist/knowledge/template-loader.d.ts +7 -2
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/template-validation.d.ts +2 -0
- package/dist/knowledge/template-validation.js +1 -0
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/game-theory.d.ts +2 -2
- package/dist/playbooks/service-build/game-theory.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +54 -11
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/relationship-profile.js +1 -1
- package/dist/playbooks/service-build/reverse-mapping-nk4.spec.d.ts +1 -0
- package/dist/playbooks/service-build/reverse-mapping-nk4.spec.js +1 -0
- package/dist/playbooks/service-build/reverse-mapping.d.ts +24 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/playbooks/service-build/workflow-design-assessment.d.ts +2 -2
- package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +14 -0
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +7 -0
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/goal_operation.schema.json +1 -1
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +37 -2
- package/dist/schemas/onchain_operations_service.schema.json +37 -2
- package/dist/tools/handlers/benchmark-migration.d.ts +2 -13
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/registry/agent.js +1 -1
- package/dist/tools/wip-deploy-assist.js +1 -1
- package/package.json +2 -2
- package/dist/playbooks/service-build/semantic-graph.d.ts +0 -99
- package/dist/playbooks/service-build/semantic-graph.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case');export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20Any\x20registered\x20industry\x20is\x20accepted\x20—\x20'+'builtin:\x20\x27general\x27,\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20'+'\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27\x20—\x20plus\x20custom\x20industries\x20registered\x20via\x20industry\x20packs.')};export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['critical','high','medium','low','info'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27high\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20high\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20high\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(critical/high/medium/low/info)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20SemanticObjectGraph\x20blueprint\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(critical\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['RISK_PASSED','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20critical\x20or\x20above-threshold\x20risks\x20present.\x20'+'⚠️\x20THIS\x20IS\x20A\x20SEVERITY\x20VERDICT,\x20NOT\x20PUBLISH\x20CLEARANCE:\x20the\x20aggregation\x20is\x20a\x20pure\x20transformation\x20over\x20puzzle\x20'+'snapshots\x20and\x20planned\x20objects/operations\x20and\x20never\x20reads\x20a\x20live\x20object.\x20RISK_PASSED\x20means\x20\x27no\x20finding\x20in\x20the\x20static\x20'+'analyzers\x27\x20—\x20read\x20`evidence_scope`\x20/\x20`publish_authorized`\x20before\x20treating\x20it\x20as\x20a\x20green\x20light.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('high\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'evidence_scope':z['enum'](['puzzle_snapshots_only','object_grounded'])['optional']()['describe']('What\x20this\x20aggregation\x20actually\x20inspected.\x20Always\x20\x27puzzle_snapshots_only\x27\x20today:\x20the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20'+'reads.\x20Machine-readable\x20form\x20of\x20the\x20scope\x20warning\x20—\x20a\x20caller\x20must\x20not\x20have\x20to\x20infer\x20it\x20from\x20prose.'),'object_grounded':z['boolean']()['optional']()['describe']('True\x20only\x20if\x20a\x20live\x20on-chain\x20object\x20was\x20inspected.\x20Currently\x20always\x20false\x20(see\x20evidence_scope).'),'publish_authorized':z['boolean']()['optional']()['describe']('Whether\x20this\x20gate\x20alone\x20authorizes\x20publishing.\x20Currently\x20always\x20false:\x20use\x20template_scan\x20before\x20deploying\x20and\x20'+'service_panorama\x20/\x20onchain_objects\x20after,\x20plus\x20the\x20publish-time\x20gates\x20in\x20onchain_operations.'),'publish_authorized_reason':z['string']()['optional']()['describe']('Why\x20publish_authorized\x20is\x20false,\x20and\x20which\x20checks\x20to\x20run\x20instead.'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'post_deploy_steps':z['array'](z['object']({'order':z['number'](),'id':z['string'](),'title':z['string'](),'when':z['string'](),'action':z['string'](),'tool_hint':z['string'](),'failure_if_skipped':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20ordered\x20executable\x20post-deploy\x20steps\x20(compensation\x20fund\x20top-up\x20R-4,\x20arbitration\x20unpause\x20R-5,\x20settlement\x20alloc_by_guard\x20R-2,\x20panorama\x20verification).\x20Run\x20via\x20onchain_operations\x20AFTER\x20the\x20creation\x20plan\x20materializes.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
|
|
1
|
+
import{z}from'zod';const NetworkEnum=z['enum'](['mainnet','testnet']);export const PlanningIndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case');export const ProjectObjectTypeEnum=z['enum'](['service','machine','guard','permission','reward','arb','progress','treasury','demand','repository','contact','order','allocation','personal','payment','proof']);const IntentContextFields={'intent':z['string']()['max'](0x7d0)['optional']()['describe']('Business\x20intent\x20text\x20(e.g.\x20\x27I\x20rent\x20cameras\x20to\x20photographers\x20with\x20deposit\x20and\x20damage\x20inspection\x27).\x20'+'Used\x20as\x20the\x20primary\x20input;\x20falls\x20back\x20to\x20project_description\x20/\x20project_name\x20when\x20omitted.'),'project_name':z['string']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Optional\x20business\x20name\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_description':z['string']()['max'](0x7d0)['optional']()['describe']('Optional\x20business\x20description\x20—\x20used\x20as\x20an\x20intent\x20fallback\x20when\x20\x27intent\x27\x20is\x20omitted.'),'project_industry':PlanningIndustryEnum['optional']()['describe']('Industry\x20tag.\x20Drives\x20industry-specific\x20risk\x20calibration\x20(e.g.\x20\x27freelance\x27\x20does\x20NOT\x20require\x20'+'compensation_fund,\x20while\x20\x27rental\x27/\x27travel\x27\x20do).\x20Any\x20registered\x20industry\x20is\x20accepted\x20—\x20'+'builtin:\x20\x27general\x27,\x20\x27retail\x27,\x20\x27retail_d2c\x27,\x20\x27service\x27,\x20\x27rental\x27,\x20\x27freelance\x27,\x20\x27education\x27,\x20'+'\x27travel\x27,\x20\x27subscription\x27,\x20\x27custom\x27\x20—\x20plus\x20custom\x20industries\x20registered\x20via\x20industry\x20packs.')};export const PlanningActionMembers=[z['object']({'action':z['literal']('analyze_intent'),...IntentContextFields,'target_objects':z['array'](z['string']())['optional']()['describe']('Optional\x20explicit\x20target\x20objects\x20(entry_ids\x20or\x20object_type\x20names).\x20'+'When\x20provided,\x20puzzle\x20snapshots\x20are\x20restricted\x20to\x20these\x20objects.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C1:\x20natural-language\x20business\x20intent\x20→\x20parsed\x20intent\x20(primary/secondary\x20objects,\x20'+'detected\x20scenes,\x20industry)\x20+\x20per-object\x20puzzle\x20snapshots\x20+\x20recommended\x20creation\x20order.'),z['object']({'action':z['literal']('aggregate_risks'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown']()['describe']('Puzzle\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20from\x20analyze_intent\x20output\x20unchanged).'),'completeness':z['unknown']()['describe']('Completeness\x20snapshot\x20(opaque\x20—\x20pass\x20through\x20unchanged).'),'missing_dimensions':z['array'](z['string']())['describe']('Dimensions\x20still\x20missing\x20for\x20this\x20object.')})['strict']())['optional']()['describe']('Per-object\x20puzzle\x20snapshots,\x20keyed\x20by\x20object_type.\x20Pass\x20the\x20\x27puzzles\x27\x20field\x20from\x20a\x20prior\x20'+'analyze_intent\x20result\x20UNCHANGED.\x20When\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20'+'analyze_intent\x20first\x20(C1→C2\x20in\x20one\x20call).'),...IntentContextFields,'severity_threshold':z['enum'](['critical','high','medium','low','info'])['optional']()['describe']('Severity\x20threshold\x20(default\x20\x27high\x27).\x20Risks\x20at\x20or\x20above\x20this\x20level\x20block\x20deployment\x20(status\x20RISK_BLOCKED).'),'user_confirmed_high_risks':z['array'](z['string']())['optional']()['describe']('IDs\x20of\x20high\x20risks\x20already\x20confirmed\x20in\x20a\x20prior\x20round.\x20Confirmed\x20high\x20risks\x20no\x20longer\x20'+'trigger\x20RISK_PENDING_CONFIRM.'),'planned_objects':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27guard\x27,\x20\x27machine\x27).'),'is_new':z['boolean']()['describe']('true\x20when\x20creating\x20a\x20NEW\x20object;\x20false\x20when\x20reusing\x20an\x20existing\x20one.'),'name':z['string']()['optional']()['describe']('Planned\x20object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20objects\x20for\x20the\x20OBJECT_REUSE\x20check\x20(safety-rules).\x20Flags\x20NEW\x20objects\x20whose\x20type\x20'+'carries\x20an\x20always/strongly-recommended\x20reuse\x20rule.'),'planned_operations':z['array'](z['object']({'object_type':z['string']()['describe']('Wowok\x20object\x20type\x20(e.g.\x20\x27service\x27,\x20\x27arbitration\x27).'),'trigger':z['enum'](['create','publish'])['describe']('Lifecycle\x20trigger\x20that\x20locks\x20fields.'),'name':z['string']()['optional']()['describe']('Object\x20name\x20(for\x20readable\x20messages).')})['strict']())['optional']()['describe']('Planned\x20create/publish\x20operations\x20for\x20the\x20IMMUTABILITY\x20check\x20(safety-rules).\x20Warns\x20which\x20'+'fields\x20become\x20permanently\x20locked\x20after\x20each\x20operation.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C2:\x20puzzle\x20snapshots\x20→\x20cross-object\x20risk\x20calibration\x20(critical/high/medium/low/info)\x20with\x20blocking\x20'+'status.\x20DX\x20sugar:\x20when\x20\x27puzzles\x27\x20is\x20omitted\x20but\x20\x27intent\x27\x20is\x20present,\x20the\x20handler\x20runs\x20analyze_intent\x20first.'),z['object']({'action':z['literal']('trace_substeps'),'project':z['string']()['optional']()['describe']('Project\x20prefix\x20(human-readable\x20unique\x20identifier,\x20e.g.\x20\x27myshop\x27).\x20Used\x20to\x20key\x20the\x20service-build\x20stage\x20cache.'),'version':z['string']()['regex'](/^v\d+$/)['optional']()['describe']('Project\x20version\x20(e.g.\x20\x27v1\x27)\x20for\x20the\x20service-build\x20stage\x20cache.\x20Defaults\x20to\x20\x27v1\x27.'),'substeps':z['array'](z['object']({'step_id':z['string']()['describe']('Substep\x20id,\x20format\x20\x27T<step>.<substep>\x27\x20e.g.\x20\x27T1.1\x27.'),'parent_step':z['string']()['describe']('Parent\x20step\x20id,\x20format\x20\x27T<step>\x27\x20e.g.\x20\x27T1\x27.'),'object_type':ProjectObjectTypeEnum['describe']('Wowok\x20object\x20type\x20this\x20substep\x20operates\x20on.'),'entry_id':z['string']()['describe']('Puzzle\x20entry_id\x20this\x20substep\x20corresponds\x20to.'),'operation_type':z['string']()['describe']('operation_type\x20for\x20onchain_operations.'),'network':z['enum'](['testnet','mainnet'])['describe']('Target\x20network.'),'input':z['object']({'data':z['record'](z['string'](),z['unknown']())['describe']('Input\x20data\x20payload.'),'input_refs':z['array'](z['string']())['describe']('Upstream\x20substep_ids\x20this\x20substep\x20consumes.')})['strict'](),'output':z['object']({'object_id':z['string']()['optional'](),'tx_digest':z['string']()['optional']()})['catchall'](z['unknown']())['optional']()['describe']('Output\x20data\x20(filled\x20after\x20execution).'),'timestamp':z['number']()['describe']('Execution\x20timestamp\x20(ms).'),'status':z['enum'](['PENDING','SUCCESS','FAILED','SKIPPED'])['describe']('Execution\x20status.'),'failure_reason':z['string']()['optional']()['describe']('Failure\x20reason\x20(when\x20status=\x27FAILED\x27).'),'dependencies':z['object']({'input_refs':z['array'](z['string']()),'output_refs':z['array'](z['object']({'substep_id':z['string']()['describe']('Downstream\x20substep\x20that\x20consumes\x20this\x20output.'),'field_path':z['string']()['describe']('Field\x20path\x20produced\x20by\x20this\x20substep\x20(e.g.\x20\x27permission_address\x27).')})['strict']())})['strict']()['describe']('Dependencies\x20(input_refs\x20+\x20output_refs).'),'retry_info':z['object']({'original_step_id':z['string'](),'retry_count':z['number'](),'retry_reason':z['string']()})['strict']()['optional']()['describe']('Retry\x20info\x20(when\x20this\x20substep\x20is\x20a\x20retry\x20of\x20an\x20earlier\x20one).')})['strict']())['optional']()['describe']('Substep\x20execution\x20records\x20(63-spec\x20§2.1).\x20Required\x20when\x20action=\x27trace_substeps\x27.\x20'+'Construct\x20from\x20your\x20deployment\x20execution\x20trace.'),'substep_edges':z['array'](z['object']({'source':z['string']()['describe']('Source\x20substep\x20id.'),'target':z['string']()['describe']('Target\x20substep\x20id\x20(depends\x20on\x20source).'),'field_path':z['string']()['describe']('Field\x20path\x20flowing\x20along\x20this\x20edge.')})['strict']())['optional']()['describe']('Explicit\x20DAG\x20edges.\x20When\x20omitted,\x20edges\x20are\x20derived\x20from\x20each\x20substep\x27s\x20input_refs.'),'network':NetworkEnum['optional']()})['strict']()['describe']('C3:\x20substep\x20execution\x20records\x20→\x20DAG\x20coherence\x20analysis\x20(dangling\x20inputs,\x20circular\x20refs,\x20'+'missing\x20outputs,\x20cross-step\x20breaks,\x20topological\x20order,\x20D-10\x20verdict).'),z['object']({'action':z['literal']('merchant_guide'),...IntentContextFields,'guide_state':z['object']({'intent_text':z['string']()['describe']('Step\x201:\x20raw\x20merchant\x20business\x20description.'),'confirmed_industry':z['string']()['optional']()['describe']('Step\x202:\x20merchant-confirmed\x20industry\x20id.'),'currency':z['string']()['optional']()['describe']('Step\x205:\x20payment\x20currency\x20(default\x20WOW).'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204:\x20merchant-defined\x20deliverables\x20(opaque\x20passthrough).'),'payment_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205:\x20payment\x20structure\x20overrides\x20(opaque\x20passthrough).'),'trust_override':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206:\x20trust\x20mechanism\x20overrides\x20(opaque\x20passthrough).'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206:\x20merchant-confirmed\x20business\x20module\x20ids.')})['strict']()['optional']()['describe']('Wizard\x20state\x20from\x20a\x20prior\x20merchant_guide\x20result.\x20Pass\x20back\x20UNCHANGED\x20on\x20every\x20subsequent\x20call.\x20'+'The\x20handler\x20re-runs\x20the\x20pipeline\x20deterministically\x20and\x20advances\x20to\x20the\x20furthest\x20reachable\x20step.'),'guide_confirm':z['object']({'industry':z['string']()['optional']()['describe']('Step\x202\x20confirmation:\x20industry\x20id\x20(e.g.\x20\x27freelance\x27).'),'currency':z['string']()['optional']()['describe']('Step\x205\x20confirmation:\x20payment\x20currency.'),'deliverables':z['array'](z['unknown']())['optional']()['describe']('Step\x204\x20confirmation:\x20deliverable\x20definitions.'),'payment':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x205\x20confirmation:\x20{\x20model,\x20triggers,\x20allocation\x20}\x20overrides.'),'trust':z['record'](z['string'](),z['unknown']())['optional']()['describe']('Step\x206\x20confirmation:\x20{\x20refundPolicy,\x20arbitration,\x20escrow\x20}\x20overrides.'),'adopted_module_ids':z['array'](z['string']())['optional']()['describe']('Step\x206\x20confirmation:\x20business\x20module\x20ids\x20to\x20adopt\x20(overrides\x20recommendation).')})['strict']()['optional']()['describe']('Merchant\x20decisions\x20for\x20the\x20current\x20wizard\x20step.\x20Merged\x20over\x20guide_state.\x20Typical\x20flow:\x20'+'call\x201\x20with\x20intent\x20only\x20→\x20receive\x20step-2\x20industry\x20options\x20→\x20call\x202\x20with\x20guide_state\x20+\x20'+'guide_confirm={industry}\x20→\x20receive\x20full\x20blueprint\x20plan\x20(steps\x207-10).'),'network':NetworkEnum['optional']()})['strict']()['describe']('10-step\x20merchant\x20onboarding\x20wizard:\x20intent\x20text\x20→\x20BusinessIntent\x20→\x20industry\x20confirmation\x20→\x20'+'module\x20adoption\x20→\x20Blueprint\x20(L1\x20plan\x20projection)\x20→\x20evaluation\x20preview\x20→\x20harness\x20check\x20→\x20creation\x20'+'plan.\x20NEVER\x20executes\x20on-chain\x20operations.\x20Stateless:\x20pass\x20guide_state/guide_confirm\x20to\x20advance.')];const KeywordMatchSchema=z['object']({'keyword':z['string'](),'category':z['string'](),'matched_objects':z['array'](z['string']()),'required_level':z['enum'](['R','C','OPTIONAL']),'match_count':z['number']()})['strict']();export const AnalyzeIntentResultSchema=z['object']({'action':z['literal']('analyze_intent'),'intent_parsed':z['object']({'primary_object':z['string']()['describe']('Primary\x20object\x20inferred\x20from\x20the\x20intent\x20keywords.'),'secondary_objects':z['array'](z['string']())['describe']('Supporting\x20objects\x20typically\x20required\x20alongside\x20the\x20primary\x20one.'),'detected_scenes':z['array'](z['object']({'object':z['string'](),'scene_id':z['string']()['describe']('Free-form\x20scene\x20id,\x20e.g.\x20\x27retail\x27,\x20\x27rental_return\x27.')})['strict']())['describe']('Scenes\x20detected\x20from\x20the\x20intent\x20(used\x20for\x20template\x20selection).'),'industry':z['string']()['describe']('Industry\x20mode\x20resolved\x20from\x20the\x20intent\x20(defaults\x20to\x20\x27general\x27).'),'keyword_matches':z['array'](KeywordMatchSchema)['describe']('All\x20keyword\x20matches\x20that\x20drove\x20the\x20identification.')})['strict'](),'puzzles':z['record'](z['string'](),z['object']({'puzzle':z['unknown'](),'completeness':z['unknown'](),'missing_dimensions':z['array'](z['string']())})['strict']())['describe']('Per-object\x20puzzle\x20snapshot,\x20keyed\x20by\x20object_type.\x20Pass\x20this\x20UNCHANGED\x20to\x20aggregate_risks.'),'overall_completeness':z['enum'](['complete','partial','empty']),'next_step':z['string']()['describe']('Human-readable\x20suggestion\x20for\x20the\x20next\x20puzzle\x20step.'),'recommended_creation_order':z['array'](z['string']())['describe']('Recommended\x20object\x20creation\x20order\x20(dependency\x20topology).'),'warnings':z['array'](z['string']())})['strict']();const AggregatedRiskSchema=z['object']({'risk_rule_id':z['string']()['describe']('Unified\x20risk\x20rule\x20id,\x20e.g.\x20\x27R-S-01\x27.'),'object_type':z['string'](),'entry_id':z['string']()['describe']('Object\x20entry_id\x20(\x27*\x27\x20when\x20cross-object).'),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'details':z['object']({'field_path':z['string']()['optional'](),'actual_value':z['unknown']()['optional'](),'expected_value':z['unknown']()['optional'](),'rule_source':z['string']()['optional']()})['strict']()['optional']()})['strict'](),SafetyFindingSchema=z['object']({'rule_id':z['string']()['describe']('Safety\x20rule\x20id\x20(e.g.\x20\x27REUSE-SERVICE-01\x27,\x20\x27IMMUT-001\x27).'),'severity':z['enum'](['info','warn']),'message':z['string']()})['strict']();export const AggregateRisksResultSchema=z['object']({'action':z['literal']('aggregate_risks'),'namespace':z['object']({'prefix':z['string'](),'version':z['string'](),'industry':z['string']()['optional']()})['strict'](),'findings':z['array'](AggregatedRiskSchema)['describe']('All\x20risks\x20found,\x20sorted\x20(critical\x20first).'),'severity_summary':z['record'](z['string'](),z['number']())['describe']('Counts\x20keyed\x20by\x20severity.'),'status':z['enum'](['RISK_PASSED','RISK_BLOCKED','RISK_PENDING_CONFIRM','RISK_CANCELLED'])['describe']('Aggregated\x20status\x20(62-spec\x20§3.2).\x20RISK_BLOCKED\x20=\x20critical\x20or\x20above-threshold\x20risks\x20present.\x20'+'⚠️\x20THIS\x20IS\x20A\x20SEVERITY\x20VERDICT,\x20NOT\x20PUBLISH\x20CLEARANCE:\x20the\x20aggregation\x20is\x20a\x20pure\x20transformation\x20over\x20puzzle\x20'+'snapshots\x20and\x20planned\x20objects/operations\x20and\x20never\x20reads\x20a\x20live\x20object.\x20RISK_PASSED\x20means\x20\x27no\x20finding\x20in\x20the\x20static\x20'+'analyzers\x27\x20—\x20read\x20`evidence_scope`\x20/\x20`publish_authorized`\x20before\x20treating\x20it\x20as\x20a\x20green\x20light.'),'pending_confirmations':z['array'](z['object']({'risk_rule_id':z['string'](),'description':z['string'](),'fix_suggestion':z['string'](),'object_type':z['string'](),'entry_id':z['string']()})['strict']())['optional']()['describe']('high\x20risks\x20awaiting\x20user\x20confirmation\x20(only\x20when\x20status=\x27RISK_PENDING_CONFIRM\x27).'),'evidence_scope':z['enum'](['puzzle_snapshots_only','object_grounded'])['optional']()['describe']('What\x20this\x20aggregation\x20actually\x20inspected.\x20Always\x20\x27puzzle_snapshots_only\x27\x20today:\x20the\x20C1→C4\x20pipeline\x20performs\x20no\x20chain\x20'+'reads.\x20Machine-readable\x20form\x20of\x20the\x20scope\x20warning\x20—\x20a\x20caller\x20must\x20not\x20have\x20to\x20infer\x20it\x20from\x20prose.'),'object_grounded':z['boolean']()['optional']()['describe']('True\x20only\x20if\x20a\x20live\x20on-chain\x20object\x20was\x20inspected.\x20Currently\x20always\x20false\x20(see\x20evidence_scope).'),'publish_authorized':z['boolean']()['optional']()['describe']('Whether\x20this\x20gate\x20alone\x20authorizes\x20publishing.\x20Currently\x20always\x20false:\x20use\x20template_scan\x20before\x20deploying\x20and\x20'+'service_panorama\x20/\x20onchain_objects\x20after,\x20plus\x20the\x20publish-time\x20gates\x20in\x20onchain_operations.'),'publish_authorized_reason':z['string']()['optional']()['describe']('Why\x20publish_authorized\x20is\x20false,\x20and\x20which\x20checks\x20to\x20run\x20instead.'),'calibrated_at':z['number']()['describe']('Calibration\x20timestamp\x20(ms).'),'fix_suggestions_grouped':z['record'](z['string'](),z['array'](z['object']({'risk_rule_id':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'fix_suggestion':z['string'](),'entry_id':z['string']()})['strict']()))['optional']()['describe']('Fix\x20suggestions\x20grouped\x20by\x20object_type.'),'safety_findings':z['array'](SafetyFindingSchema)['optional']()['describe']('OBJECT_REUSE\x20/\x20IMMUTABILITY\x20findings\x20from\x20safety-rules\x20(only\x20when\x20planned_objects\x20/\x20planned_operations\x20were\x20provided).'),'intent_echo':z['object']({'primary_object':z['string'](),'industry':z['string'](),'overall_completeness':z['enum'](['complete','partial','empty'])})['strict']()['optional']()['describe']('Echo\x20of\x20the\x20auto-run\x20analyze_intent\x20(only\x20when\x20\x27puzzles\x27\x20was\x20omitted\x20and\x20\x27intent\x27\x20was\x20used).'),'warnings':z['array'](z['string']())})['strict']();export const TraceSubstepsResultSchema=z['object']({'action':z['literal']('trace_substeps'),'namespace':z['object']({'prefix':z['string'](),'version':z['string']()})['strict'](),'network':z['enum'](['testnet','mainnet']),'coherent':z['boolean']()['describe']('True\x20when\x20no\x20dangling\x20inputs,\x20no\x20cycles,\x20no\x20missing\x20outputs,\x20no\x20cross-step\x20breaks.'),'dangling_inputs':z['array'](z['object']({'substep_id':z['string'](),'missing_ref':z['string'](),'field_path':z['string']()})['strict']())['describe']('Input\x20refs\x20pointing\x20to\x20non-existent\x20substeps.'),'circular_refs':z['array'](z['object']({'cycle':z['array'](z['string']())})['strict']())['describe']('Substep\x20id\x20cycles\x20(when\x20present,\x20topological_order\x20is\x20empty).'),'missing_outputs':z['array'](z['object']({'substep_id':z['string'](),'expected_field':z['string'](),'dependent_substeps':z['array'](z['string']())})['strict']())['describe']('Substeps\x20that\x20should\x20have\x20produced\x20a\x20field\x20but\x20did\x20not.'),'cross_step_breaks':z['array'](z['object']({'source_step':z['string'](),'target_step':z['string'](),'missing_field':z['string']()})['strict']())['describe']('Upstream\x20step\x20failed\x20→\x20downstream\x20cannot\x20proceed.'),'step_details':z['array'](z['object']({'parent_step':z['string'](),'total_substeps':z['number'](),'successful':z['number'](),'failed':z['number'](),'pending':z['number'](),'skipped':z['number'](),'substep_ids':z['array'](z['string']())})['strict']())['describe']('Per-step\x20summary,\x20keyed\x20by\x20parent_step.'),'topological_order':z['array'](z['string']())['describe']('Topological\x20order\x20of\x20substep\x20ids\x20(empty\x20when\x20a\x20cycle\x20exists).'),'d10_check':z['object']({'check_id':z['literal']('D-10'),'description':z['string'](),'status':z['enum'](['PASS','FAIL','WARN']),'notes':z['array'](z['string']())})['strict']()['describe']('D-10\x20substep\x20linkage\x20completeness\x20verdict.')})['strict']();export const MerchantGuideResultSchema=z['object']({'action':z['literal']('merchant_guide'),'current_step':z['number']()['describe']('Furthest\x20wizard\x20step\x20reached\x20(2\x20=\x20awaiting\x20industry\x20confirmation;\x209\x20=\x20harness\x20issues\x20found;\x2010\x20=\x20plan\x20ready).'),'step_name':z['string'](),'guide_state':z['object']({'intent_text':z['string'](),'confirmed_industry':z['string']()['optional'](),'currency':z['string']()['optional'](),'deliverables':z['array'](z['unknown']())['optional'](),'payment_override':z['record'](z['string'](),z['unknown']())['optional'](),'trust_override':z['record'](z['string'](),z['unknown']())['optional'](),'adopted_module_ids':z['array'](z['string']())['optional']()})['strict']()['describe']('Wizard\x20state\x20—\x20pass\x20back\x20UNCHANGED\x20on\x20the\x20next\x20merchant_guide\x20call.'),'intent_draft':z['unknown']()['optional']()['describe']('Step\x201-2\x20only:\x20BusinessIntent\x20draft\x20inferred\x20from\x20the\x20description.'),'industry_options':z['object']({'inferred':z['string'](),'confidence':z['number'](),'similar':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x202\x20only:\x20industry\x20candidates\x20awaiting\x20merchant\x20confirmation.'),'intent':z['unknown']()['optional']()['describe']('Steps\x207-10:\x20final\x20BusinessIntent\x20after\x20merchant\x20overrides.'),'adopted_modules':z['array'](z['object']({'id':z['string'](),'name':z['string'](),'description':z['string'](),'requires_keeper':z['boolean'](),'keeper_hint':z['string']()['optional'](),'user_protections':z['array'](z['string']()),'merchant_obligations':z['array'](z['string']())})['strict']())['optional']()['describe']('Steps\x206-10:\x20adopted\x20business\x20modules\x20with\x20protections/obligations.'),'blueprint':z['object']({'nodes':z['array'](z['object']({'id':z['string'](),'type':z['string'](),'purpose':z['string']()})['strict']()),'edges':z['array'](z['object']({'from':z['string'](),'to':z['string'](),'relation':z['string'](),'required':z['boolean']()})['strict']())})['strict']()['optional']()['describe']('Step\x207:\x20semantic\x20object\x20graph\x20(nodes\x20+\x20edges).'),'evaluation_preview':z['unknown']()['optional']()['describe']('Step\x208:\x20estimated\x20risk/trust/completeness\x20scores\x20+\x20key\x20risks\x20+\x20module\x20boosts.'),'graph_validation':z['object']({'valid':z['boolean'](),'hard_violations':z['array'](z['object']({'id':z['string'](),'description':z['string'](),'fix':z['string']()['optional']()})['strict']()),'soft_notes':z['array'](z['object']({'id':z['string'](),'description':z['string']()})['strict']())})['strict']()['optional']()['describe']('Step\x208:\x20structural\x20validation\x20of\x20the\x20semantic\x20graph.'),'harness_check':z['object']({'module_constraints':z['array'](z['object']({'module':z['string'](),'plan_satisfied':z['boolean'](),'missing':z['array'](z['string']())['optional'](),'reason':z['string']()['optional'](),'estimated_score_boost':z['number']()})['strict']()),'blocking_issues':z['array'](z['object']({'module':z['string'](),'missing_constraints':z['array'](z['string']())['optional'](),'fix':z['string']()['optional']()})['strict']()),'deploy_time_checks':z['array'](z['string']())})['strict']()['optional']()['describe']('Step\x209:\x20module\x20constraint\x20check\x20at\x20blueprint\x20stage\x20+\x20deploy-time\x20checklist.'),'game_theory':z['object']({'summary':z['string'](),'coverage':z['string']()['describe']('Covered/total\x20scenario\x20count,\x20e.g.\x20\x274/5\x27.'),'exposed_scenarios':z['array'](z['string']()),'wow_alignments':z['array'](z['string']())['describe']('Active\x20WOW\x20mechanisms\x20aligning\x20merchant/user\x20incentives.'),'scenarios':z['array'](z['object']({'scenario':z['string'](),'covered':z['boolean'](),'conflict':z['string'](),'user_protection':z['string'](),'evaluation_metric':z['string'](),'recommendation':z['string']()['optional']()})['strict']())})['strict']()['optional']()['describe']('Step\x209:\x20merchant-user\x20adversarial\x20scenario\x20coverage.\x205\x20canonical\x20scenarios\x20checked\x20against\x20the\x20blueprint.'),'creation_plan':z['array'](z['object']({'order':z['number'](),'node_id':z['string'](),'object_type':z['string'](),'suggested_name':z['string'](),'depends_on':z['array'](z['string']()),'operation_hint':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20topologically\x20ordered\x20creation\x20plan.\x20NOT\x20executed\x20—\x20materialize\x20via\x20onchain_operations.'),'post_deploy_steps':z['array'](z['object']({'order':z['number'](),'id':z['string'](),'title':z['string'](),'when':z['string'](),'action':z['string'](),'tool_hint':z['string'](),'failure_if_skipped':z['string']()})['strict']())['optional']()['describe']('Step\x2010:\x20ordered\x20executable\x20post-deploy\x20steps\x20(compensation\x20fund\x20top-up\x20R-4,\x20arbitration\x20unpause\x20R-5,\x20settlement\x20alloc_by_guard\x20R-2,\x20panorama\x20verification).\x20Run\x20via\x20onchain_operations\x20AFTER\x20the\x20creation\x20plan\x20materializes.'),'warnings':z['array'](z['string']()),'next_action':z['string']()['describe']('Human-readable\x20guidance\x20for\x20the\x20next\x20call.')})['strict']();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';import{SemanticSummarySchema as a404a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a404a);import{ERROR_CODE_VALUES}from'../call/error-codes.js';const LocalOperationErrorFields={'error_code':z['enum'](ERROR_CODE_VALUES)['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['preprocess'](a=>{if(typeof a==='string')return{'value':a,'replaceExistName':![]};return a;},z['object']({'value':z['string']()['min'](0x1,'Mark\x20name\x20value\x20must\x20be\x20a\x20non-empty\x20string\x20(an\x20empty\x20name\x20would\x20create\x20a\x20mark\x20that\x20get(name)\x20can\x20never\x20resolve)')['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.\x20Accepts\x20a\x20bare\x20name\x20string\x20(shorthand\x20normalized\x20to\x20{value:\x20name,\x20replaceExistName:\x20false})\x20or\x20the\x20canonical\x20object\x20{value:\x20string,\x20replaceExistName?:\x20boolean}\x20when\x20replacing\x20an\x20existing\x20same-name\x20mark.\x20Examples:\x20{name:\x20\x27my-account\x27}\x20or\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'+'The\x20\x27name\x27\x20field\x20accepts\x20a\x20bare\x20name\x20string\x20(shorthand:\x20{name:\x27my-account\x27})\x20or\x20the\x20canonical\x20object\x20form\x20{value,\x20replaceExistName?}\x20when\x20an\x20existing\x20same-name\x20mark\x20must\x20be\x20replaced.\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.\x20Accepts:\x20raw\x20smallest-unit\x20integer\x20(string/number,\x20e.g.\x20\x222500000000\x22),\x20or\x20display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x222.5WOW\x22)\x20—\x20converted\x20with\x20the\x20token\x27s\x20own\x20decimals.\x20Bare\x20decimals\x20like\x20\x222.5\x22\x20or\x202.5\x20are\x20REJECTED\x20(must\x20carry\x20the\x20symbol\x20suffix).'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional'](),'confirmed':z['boolean']()['optional']()['describe']('ConfirmGate:\x20set\x20to\x20true\x20to\x20proceed\x20after\x20a\x20\x27pending_confirmation\x27\x20result.\x20Token\x20transfers\x20are\x20irreversible\x20on-chain\x20fund\x20movements\x20—\x20the\x20first\x20call\x20returns\x20a\x20pending_confirmation\x20preview\x20(amount,\x20token,\x20recipient);\x20re-call\x20with\x20confirmed=true\x20after\x20user\x20consent.')})['optional']()['describe']('💰\x20FUND\x20MOVEMENT\x20(on-chain,\x20irreversible):\x20transfer\x20tokens\x20from\x20one\x20account\x20to\x20another.\x20Amount\x20parsing:\x20display\x20strings\x20like\x20\x222.5WOW\x22\x20are\x20converted\x20to\x20raw\x20smallest\x20units\x20with\x20the\x20token\x27s\x20decimals;\x20bare\x20decimal\x20numbers\x20are\x20rejected.\x20Use\x20the\x20EMPTY\x20STRING\x20\x27\x27\x20in\x20name_or_address_from/to\x20for\x20the\x20default\x20account\x20—\x20the\x20literal\x20\x27DEFAULT\x27\x20is\x20rejected.\x20Requires\x20confirmation\x20—\x20first\x20call\x20previews,\x20re-call\x20with\x20confirmed=true.'),'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\x20coin\x20object\x20balance.\x20Accepts:\x20raw\x20smallest-unit\x20integer\x20(string/number,\x20e.g.\x20\x222500000000\x22),\x20or\x20display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x222.5WOW\x22)\x20—\x20converted\x20with\x20the\x20token\x27s\x20own\x20decimals.\x20Bare\x20decimals\x20like\x20\x222.5\x22\x20or\x202.5\x20are\x20REJECTED\x20(must\x20carry\x20the\x20symbol\x20suffix).'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional'](),'confirmed':z['boolean']()['optional']()['describe']('ConfirmGate:\x20set\x20to\x20true\x20to\x20proceed\x20after\x20a\x20\x27pending_confirmation\x27\x20result.\x20Producing\x20the\x20coin\x20object\x20is\x20an\x20on-chain\x20transaction\x20(split/merge\x20coins\x20+\x20self-transfer)\x20that\x20is\x20irreversible\x20and\x20spends\x20gas\x20—\x20the\x20first\x20call\x20returns\x20a\x20pending_confirmation\x20preview\x20(amount,\x20token,\x20account);\x20re-call\x20with\x20confirmed=true\x20after\x20user\x20consent.')})['optional']()['describe']('💰\x20FUND\x20MOVEMENT\x20(on-chain,\x20irreversible,\x20spends\x20gas):\x20split/merge\x20the\x20account\x27s\x20coins\x20to\x20produce\x20a\x20coin\x20object\x20carrying\x20AT\x20LEAST\x20the\x20required\x20balance,\x20then\x20self-deliver\x20it\x20to\x20the\x20same\x20account.\x20The\x20account\x27s\x20total\x20balance\x20does\x20not\x20leave\x20the\x20account\x20(minus\x20gas),\x20but\x20a\x20real\x20on-chain\x20transaction\x20IS\x20executed\x20and\x20its\x20digest\x20is\x20returned.\x20IMPORTANT:\x20balance_required\x20is\x20an\x20AMOUNT\x20string\x20(e.g.\x20\x221WOW\x22\x20or\x20raw\x20smallest-unit\x20integer\x20like\x20\x221000000000\x22).\x20Amount\x20parsing:\x20display\x20strings\x20like\x20\x222.5WOW\x22\x20are\x20converted\x20to\x20raw\x20smallest\x20units\x20with\x20the\x20token\x27s\x20decimals;\x20bare\x20decimal\x20numbers\x20are\x20rejected.\x20Requires\x20confirmation\x20—\x20first\x20call\x20previews,\x20re-call\x20with\x20confirmed=true.\x20RESULT\x20CONTRACT:\x20on\x20success\x20the\x20result\x20carries\x20`coin_address`,\x20`digest`\x20AND\x20`balance`\x20—\x20the\x20coin\x27s\x20ACTUAL\x20final\x20on-chain\x20amount,\x20read\x20back\x20from\x20the\x20chain.\x20Always\x20compare\x20`balance`\x20against\x20the\x20amount\x20you\x20need;\x20a\x20returned\x20digest\x20does\x20NOT\x20by\x20itself\x20mean\x20the\x20coin\x20is\x20large\x20enough.\x20If\x20the\x20requested\x20amount\x20cannot\x20be\x20covered\x20the\x20call\x20FAILS\x20with\x20the\x20required\x20amount,\x20the\x20account\x27s\x20total,\x20and\x20the\x20largest\x20single\x20coin,\x20and\x20NO\x20transaction\x20is\x20sent\x20(no\x20gas\x20spent)\x20—\x20in\x20that\x20case\x20fund\x20the\x20account\x20first,\x20or\x20request\x20at\x20most\x20the\x20largest\x20single\x20coin.\x20Do\x20not\x20retry\x20the\x20same\x20balance_required\x20after\x20such\x20a\x20failure;\x20re-reading\x20the\x20balance\x20will\x20not\x20change\x20the\x20answer.'),'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'+'DEFAULT\x20ACCOUNT:\x20every\x20name/address\x20field\x20(name_or_address,\x20name_or_address_from,\x20name_or_address_to,\x20name1,\x20name2,\x20name_or_account)\x20accepts\x20the\x20EMPTY\x20STRING\x20\x27\x27\x20to\x20mean\x20the\x20default\x20account\x20—\x20the\x20literal\x20\x27DEFAULT\x27\x20is\x20NOT\x20a\x20valid\x20name\x20and\x20is\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']('Coin\x20object\x20ID\x20that\x20actually\x20carries\x20at\x20least\x20the\x20required\x20balance\x20(split/merged\x20+\x20self-delivered\x20on-chain).\x20Always\x20cross-check\x20against\x20`balance`.'),'digest':z['string']()['optional']()['describe']('Digest\x20of\x20the\x20on-chain\x20split/merge\x20+\x20self-delivery\x20transaction\x20that\x20produced\x20coin_address;\x20absent\x20only\x20when\x20no\x20transaction\x20was\x20executed.\x20A\x20digest\x20alone\x20does\x20NOT\x20prove\x20the\x20coin\x20is\x20large\x20enough\x20—\x20compare\x20`balance`.'),'balance':z['string']()['optional']()['describe']('ACTUAL\x20final\x20on-chain\x20balance\x20of\x20coin_address\x20in\x20raw\x20smallest\x20units,\x20read\x20back\x20from\x20the\x20chain\x20after\x20execution.\x20This\x20is\x20the\x20authoritative\x20amount\x20—\x20assert\x20balance\x20>=\x20the\x20amount\x20you\x20need\x20before\x20relying\x20on\x20it.'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20coin\x20object\x20balance\x20(raw\x20smallest\x20units\x20executed\x20on-chain)'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Result\x20of\x20producing\x20a\x20coin\x20object\x20with\x20the\x20required\x20balance\x20(on-chain\x20split/merge\x20+\x20self-delivery\x20transaction)'),'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 MarkPutResultSchema=z['object']({'marked':z['array'](MarkDataSchema)['describe']('Entries\x20created\x20or\x20merged.\x20Any\x20entry\x20WITH\x20a\x20`name`\x20is\x20reachable\x20via\x20get(name).'),'unnamed':z['number']()['describe']('How\x20many\x20of\x20the\x20written\x20entries\x20have\x20NO\x20name\x20and\x20are\x20therefore\x20unreachable\x20via\x20get(name).\x20'+'Non-zero\x20is\x20legitimate\x20only\x20when\x20the\x20caller\x20asked\x20for\x20address-only\x20rows;\x20a\x20malformed\x20`name`\x20is\x20'+'rejected\x20outright\x20rather\x20than\x20landing\x20here\x20(wiki/test/10\x20N-1).')})['describe']('Result\x20of\x20a\x20local\x20mark\x20`add`\x20operation');export const LocalMarkOperationResultSchema=z['object']({'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20marks\x20were\x20successfully\x20removed'),'add':MarkPutResultSchema['optional']()['describe']('Result\x20of\x20adding\x20marks\x20(written\x20entries\x20+\x20how\x20many\x20carry\x20no\x20name)'),'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 HistoryVisitDataSchema=z['object']({'key':z['string']()['min'](0x1)['describe']('Stable\x20identity\x20key\x20of\x20the\x20visited\x20object'),'objType':z['string']()['optional']()['describe']('Object\x20type\x20tag\x20for\x20detail\x20visits\x20(short\x20form,\x20e.g.\x20\x27Machine\x27)'),'address':WowAddressSchema['describe']('Canonical\x200x\x20address\x20of\x20the\x20visited\x20object'),'network':z['string']()['optional']()['describe']('Network\x20of\x20the\x20visit;\x20resolved\x20to\x20the\x20config\x20default\x20when\x20omitted'),'ts':z['number']()['int']()['describe']('Visit\x20timestamp\x20(ms\x20epoch)')})['strict']()['describe']('One\x20history\x20visit\x20(identity-only;\x20display\x20names\x20are\x20resolved\x20live)');export const LocalHistoryOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20history\x20visits'),'data':z['array'](HistoryVisitDataSchema)['min'](0x1)['describe']('Array\x20of\x20visits\x20to\x20record\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Record\x20one\x20or\x20more\x20object\x20visits\x20(upsert\x20by\x20key)'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20history\x20entries'),'keys':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20history\x20entry\x20keys\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20history\x20entries\x20by\x20key'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20history')})['strict']()['optional']()['describe']('Remove\x20all\x20history\x20entries')})['strict']()['describe']('Local\x20visit-history\x20operations.\x20At\x20most\x20one\x20operation\x20field\x20(add/remove/clear)\x20is\x20specified\x20as\x20a\x20NESTED\x20field;\x20'+'omit\x20ALL\x20fields\x20(pass\x20{})\x20to\x20LIST\x20stored\x20history\x20(newest\x20first).\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}\x20(flat\x20form\x20is\x20rejected\x20as\x20unknown\x20fields).');export const HistoryEntryDataSchema=z['object']({'key':z['string']()['describe']('Stable\x20identity\x20key\x20of\x20the\x20visited\x20object'),'objType':z['string']()['optional']()['describe']('Object\x20type\x20tag\x20for\x20detail\x20visits'),'address':z['string']()['describe']('Canonical\x200x\x20address\x20of\x20the\x20visited\x20object'),'network':z['string']()['describe']('Network\x20of\x20the\x20visit'),'ts':z['number']()['int']()['describe']('Visit\x20timestamp\x20(ms\x20epoch)')})['strict']()['describe']('Stored\x20history\x20entry');export const LocalHistoryOperationResultSchema=z['object']({'list':z['array'](HistoryEntryDataSchema)['optional']()['describe']('History\x20entries\x20(newest\x20first);\x20present\x20when\x20no\x20op\x20was\x20given'),'add':z['array'](HistoryEntryDataSchema)['optional']()['describe']('List\x20of\x20upserted\x20history\x20entries'),'remove':z['array'](HistoryEntryDataSchema)['optional']()['describe']('List\x20of\x20removed\x20history\x20entries'),'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20history\x20entries\x20were\x20removed')})['describe']('Results\x20of\x20local\x20history\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}),z['object']({'status':z['literal']('pending_confirmation'),'operation':z['string']()['describe']('Operation\x20that\x20was\x20blocked\x20(e.g.\x20\x27account_transfer\x27)'),'message':z['string']()['describe']('Human-readable\x20confirmation\x20message\x20(amount,\x20token\x20full\x20type,\x20decimals,\x20recipient,\x20warnings)'),'rule_id':z['string']()['describe']('Id\x20of\x20the\x20confirmation\x20rule\x20that\x20matched')})['describe']('Pending\x20confirmation\x20—\x20the\x20on-chain\x20fund\x20movement\x20(transfer\x20or\x20get)\x20was\x20NOT\x20executed.\x20Read\x20message\x20first;\x20if\x20the\x20user\x20consents,\x20re-invoke\x20the\x20SAME\x20call\x20with\x20transfer.confirmed=true\x20or\x20get.confirmed=true.')])['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 const LocalHistoryOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalHistoryOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20history\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalHistoryOperationOutputWrappedSchema=z['object']({'result':LocalHistoryOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20history\x20operation')})['describe']('Local\x20history\x20operation\x20output\x20wrapped\x20schema');export const LocalCachePrefixValues=['objectv2','sharedobject','servicelist','demandlist','arbitlist','table','event','tx','entity','config','token','personal','mark','info','history'];export const LocalCacheOperationSchema=z['object']({'status':z['object']({'op':z['literal']('status')['describe']('Operation\x20type:\x20report\x20cache\x20diagnostics')})['strict']()['optional']()['describe']('Report\x20cache\x20diagnostics:\x20active\x20chain\x20identity,\x20in-memory\x20entry\x20count,\x20persisted\x20row\x20count.\x20Read-only\x20—\x20changes\x20nothing.'),'clear_prefix':z['object']({'op':z['literal']('clear_prefix')['describe']('Operation\x20type:\x20clear\x20one\x20cache\x20prefix'),'prefix':z['enum'](LocalCachePrefixValues)['describe']('Cache\x20prefix\x20to\x20clear\x20(e.g.\x20\x27objectv2\x27\x20for\x20on-chain\x20objects)')})['strict']()['optional']()['describe']('Clear\x20every\x20cached\x20row\x20under\x20ONE\x20prefix,\x20in\x20memory\x20and\x20on\x20disk.\x20Choose\x20\x27objectv2\x27\x20to\x20force\x20a\x20full\x20re-read\x20of\x20on-chain\x20objects.'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20the\x20entire\x20read\x20cache')})['strict']()['optional']()['describe']('Clear\x20the\x20ENTIRE\x20read\x20cache\x20(every\x20prefix,\x20every\x20network,\x20memory\x20and\x20disk).\x20Accounts,\x20marks,\x20info\x20and\x20history\x20are\x20NOT\x20affected.'),'refresh_chain_scope':z['object']({'op':z['literal']('refresh_chain_scope')['describe']('Operation\x20type:\x20re-detect\x20the\x20chain\x20identity\x20and\x20re-scope\x20the\x20cache'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20re-detect;\x20defaults\x20to\x20the\x20configured\x20network')})['strict']()['optional']()['describe']('Re-fetch\x20the\x20chain\x20identity\x20(w_getChainIdentifier)\x20and\x20install\x20it\x20as\x20the\x20cache\x20scope.\x20If\x20the\x20chain\x20was\x20reset,\x20every\x20previously\x20written\x20row\x20becomes\x20UNREACHABLE\x20automatically\x20and\x20is\x20re-fetched\x20on\x20next\x20read\x20—\x20the\x20automatic\x20half\x20of\x20the\x20reset-recovery\x20fix.')})['strict']()['refine'](a=>Object['values'](a)['some'](b=>b!==undefined),{'message':'Exactly\x20one\x20operation\x20field\x20(status/clear_prefix/clear/refresh_chain_scope)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{clear_prefix:\x20{op:\x20\x27clear_prefix\x27,\x20prefix:\x20\x27objectv2\x27}}\x20—\x20NOT\x20flat\x20{op:\x20\x27clear_prefix\x27,\x20prefix:\x20\x27objectv2\x27}.'})['describe']('LOCAL\x20ONLY,\x20NEVER\x20ON-CHAIN:\x20inspect\x20and\x20clear\x20this\x20device\x27s\x20WoWok\x20SDK\x20read\x20cache.\x20'+'Use\x20{status:\x20{op:\x27status\x27}}\x20to\x20diagnose\x20a\x20stale\x20cache,\x20{refresh_chain_scope:\x20{op:\x27refresh_chain_scope\x27}}\x20after\x20the\x20chain\x20node\x20was\x20reset\x20or\x20restarted\x20(this\x20alone\x20fixes\x20\x27object\x200x…\x20version\x200x…\x20is\x20unavailable\x27),\x20{clear_prefix:\x20{...}}\x20to\x20drop\x20one\x20cache\x20family\x20such\x20as\x20on-chain\x20objects,\x20or\x20{clear:\x20{op:\x27clear\x27}}\x20to\x20drop\x20everything.\x20'+'Does\x20NOT\x20touch\x20accounts,\x20marks,\x20info\x20or\x20history\x20—\x20those\x20hold\x20user\x20data\x20and\x20have\x20their\x20own\x20tools.');export const LocalCacheOperationResultSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('status'),'chain_identity':z['string']()['nullable']()['describe']('Active\x20chain\x20identity\x20scoping\x20the\x20cache\x20(genesis\x20checkpoint\x20digest),\x20or\x20null\x20when\x20UNSCOPED.\x20Null\x20means\x20the\x20identity\x20could\x20not\x20be\x20fetched\x20(node\x20unreachable\x20at\x20startup)\x20—\x20the\x20cache\x20is\x20then\x20keyed\x20by\x20network\x20name\x20only\x20and\x20is\x20NOT\x20reset-safe.'),'storage_attached':z['boolean']()['describe']('Whether\x20a\x20persistent\x20cache\x20backend\x20is\x20attached\x20(false\x20=\x20memory-only,\x20nothing\x20survives\x20restart)'),'memory_entries':z['number']()['int']()['describe']('Number\x20of\x20rows\x20currently\x20held\x20in\x20the\x20in-process\x20memory\x20cache'),'storage_rows':z['number']()['int']()['nullable']()['describe']('Number\x20of\x20rows\x20persisted\x20on\x20disk,\x20or\x20null\x20when\x20the\x20backend\x20does\x20not\x20report\x20stats'),'storage_bytes':z['number']()['int']()['nullable']()['describe']('Total\x20bytes\x20persisted\x20on\x20disk,\x20or\x20null\x20when\x20the\x20backend\x20does\x20not\x20report\x20stats')})['strict']()['describe']('Cache\x20diagnostics'),z['object']({'op':z['literal']('clear_prefix'),'prefix':z['string']()['describe']('Prefix\x20that\x20was\x20cleared'),'chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20still\x20in\x20effect\x20after\x20the\x20clear')})['strict']()['describe']('Result\x20of\x20clearing\x20one\x20cache\x20prefix'),z['object']({'op':z['literal']('clear'),'cleared':z['boolean']()['describe']('True\x20when\x20both\x20the\x20memory\x20and\x20disk\x20caches\x20were\x20cleared'),'chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20still\x20in\x20effect\x20after\x20the\x20clear')})['strict']()['describe']('Result\x20of\x20clearing\x20the\x20entire\x20read\x20cache'),z['object']({'op':z['literal']('refresh_chain_scope'),'previous_chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20in\x20effect\x20before\x20re-detection'),'chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20in\x20effect\x20after\x20re-detection,\x20or\x20null\x20when\x20the\x20node\x20did\x20not\x20answer'),'changed':z['boolean']()['describe']('True\x20when\x20the\x20identity\x20CHANGED.\x20True\x20means\x20the\x20chain\x20was\x20replaced\x20and\x20every\x20previously\x20written\x20row\x20is\x20now\x20unreachable\x20(orphaned)\x20rather\x20than\x20served\x20—\x20this\x20is\x20the\x20reset-recovery\x20signal.\x20False\x20with\x20a\x20null\x20identity\x20means\x20the\x20node\x20did\x20not\x20answer\x20and\x20the\x20cache\x20remains\x20unscoped.'),'resolved':z['boolean']()['describe']('True\x20when\x20a\x20chain\x20identity\x20was\x20obtained\x20from\x20the\x20node')})['strict']()['describe']('Result\x20of\x20re-detecting\x20the\x20chain\x20identity')]);export const LocalCacheOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalCacheOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20cache\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalCacheOperationOutputWrappedSchema=z['object']({'result':LocalCacheOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20cache\x20operation')})['describe']('Local\x20cache\x20operation\x20output\x20wrapped\x20schema');export*from'./wip.js';
|
|
1
|
+
import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';import{SemanticSummarySchema as a406a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a406a);import{ERROR_CODE_VALUES}from'../call/error-codes.js';const LocalOperationErrorFields={'error_code':z['enum'](ERROR_CODE_VALUES)['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['preprocess'](a=>{if(typeof a==='string')return{'value':a,'replaceExistName':![]};return a;},z['object']({'value':z['string']()['min'](0x1,'Mark\x20name\x20value\x20must\x20be\x20a\x20non-empty\x20string\x20(an\x20empty\x20name\x20would\x20create\x20a\x20mark\x20that\x20get(name)\x20can\x20never\x20resolve)')['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.\x20Accepts\x20a\x20bare\x20name\x20string\x20(shorthand\x20normalized\x20to\x20{value:\x20name,\x20replaceExistName:\x20false})\x20or\x20the\x20canonical\x20object\x20{value:\x20string,\x20replaceExistName?:\x20boolean}\x20when\x20replacing\x20an\x20existing\x20same-name\x20mark.\x20Examples:\x20{name:\x20\x27my-account\x27}\x20or\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'+'The\x20\x27name\x27\x20field\x20accepts\x20a\x20bare\x20name\x20string\x20(shorthand:\x20{name:\x27my-account\x27})\x20or\x20the\x20canonical\x20object\x20form\x20{value,\x20replaceExistName?}\x20when\x20an\x20existing\x20same-name\x20mark\x20must\x20be\x20replaced.\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.\x20Accepts:\x20raw\x20smallest-unit\x20integer\x20(string/number,\x20e.g.\x20\x222500000000\x22),\x20or\x20display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x222.5WOW\x22)\x20—\x20converted\x20with\x20the\x20token\x27s\x20own\x20decimals.\x20Bare\x20decimals\x20like\x20\x222.5\x22\x20or\x202.5\x20are\x20REJECTED\x20(must\x20carry\x20the\x20symbol\x20suffix).'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional'](),'confirmed':z['boolean']()['optional']()['describe']('ConfirmGate:\x20set\x20to\x20true\x20to\x20proceed\x20after\x20a\x20\x27pending_confirmation\x27\x20result.\x20Token\x20transfers\x20are\x20irreversible\x20on-chain\x20fund\x20movements\x20—\x20the\x20first\x20call\x20returns\x20a\x20pending_confirmation\x20preview\x20(amount,\x20token,\x20recipient);\x20re-call\x20with\x20confirmed=true\x20after\x20user\x20consent.')})['optional']()['describe']('💰\x20FUND\x20MOVEMENT\x20(on-chain,\x20irreversible):\x20transfer\x20tokens\x20from\x20one\x20account\x20to\x20another.\x20Amount\x20parsing:\x20display\x20strings\x20like\x20\x222.5WOW\x22\x20are\x20converted\x20to\x20raw\x20smallest\x20units\x20with\x20the\x20token\x27s\x20decimals;\x20bare\x20decimal\x20numbers\x20are\x20rejected.\x20Use\x20the\x20EMPTY\x20STRING\x20\x27\x27\x20in\x20name_or_address_from/to\x20for\x20the\x20default\x20account\x20—\x20the\x20literal\x20\x27DEFAULT\x27\x20is\x20rejected.\x20Requires\x20confirmation\x20—\x20first\x20call\x20previews,\x20re-call\x20with\x20confirmed=true.'),'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\x20coin\x20object\x20balance.\x20Accepts:\x20raw\x20smallest-unit\x20integer\x20(string/number,\x20e.g.\x20\x222500000000\x22),\x20or\x20display\x20format\x20with\x20the\x20token\x20symbol\x20(e.g.\x20\x222.5WOW\x22)\x20—\x20converted\x20with\x20the\x20token\x27s\x20own\x20decimals.\x20Bare\x20decimals\x20like\x20\x222.5\x22\x20or\x202.5\x20are\x20REJECTED\x20(must\x20carry\x20the\x20symbol\x20suffix).'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional'](),'confirmed':z['boolean']()['optional']()['describe']('ConfirmGate:\x20set\x20to\x20true\x20to\x20proceed\x20after\x20a\x20\x27pending_confirmation\x27\x20result.\x20Producing\x20the\x20coin\x20object\x20is\x20an\x20on-chain\x20transaction\x20(split/merge\x20coins\x20+\x20self-transfer)\x20that\x20is\x20irreversible\x20and\x20spends\x20gas\x20—\x20the\x20first\x20call\x20returns\x20a\x20pending_confirmation\x20preview\x20(amount,\x20token,\x20account);\x20re-call\x20with\x20confirmed=true\x20after\x20user\x20consent.')})['optional']()['describe']('💰\x20FUND\x20MOVEMENT\x20(on-chain,\x20irreversible,\x20spends\x20gas):\x20split/merge\x20the\x20account\x27s\x20coins\x20to\x20produce\x20a\x20coin\x20object\x20carrying\x20AT\x20LEAST\x20the\x20required\x20balance,\x20then\x20self-deliver\x20it\x20to\x20the\x20same\x20account.\x20The\x20account\x27s\x20total\x20balance\x20does\x20not\x20leave\x20the\x20account\x20(minus\x20gas),\x20but\x20a\x20real\x20on-chain\x20transaction\x20IS\x20executed\x20and\x20its\x20digest\x20is\x20returned.\x20IMPORTANT:\x20balance_required\x20is\x20an\x20AMOUNT\x20string\x20(e.g.\x20\x221WOW\x22\x20or\x20raw\x20smallest-unit\x20integer\x20like\x20\x221000000000\x22).\x20Amount\x20parsing:\x20display\x20strings\x20like\x20\x222.5WOW\x22\x20are\x20converted\x20to\x20raw\x20smallest\x20units\x20with\x20the\x20token\x27s\x20decimals;\x20bare\x20decimal\x20numbers\x20are\x20rejected.\x20Requires\x20confirmation\x20—\x20first\x20call\x20previews,\x20re-call\x20with\x20confirmed=true.\x20RESULT\x20CONTRACT:\x20on\x20success\x20the\x20result\x20carries\x20`coin_address`,\x20`digest`\x20AND\x20`balance`\x20—\x20the\x20coin\x27s\x20ACTUAL\x20final\x20on-chain\x20amount,\x20read\x20back\x20from\x20the\x20chain.\x20Always\x20compare\x20`balance`\x20against\x20the\x20amount\x20you\x20need;\x20a\x20returned\x20digest\x20does\x20NOT\x20by\x20itself\x20mean\x20the\x20coin\x20is\x20large\x20enough.\x20If\x20the\x20requested\x20amount\x20cannot\x20be\x20covered\x20the\x20call\x20FAILS\x20with\x20the\x20required\x20amount,\x20the\x20account\x27s\x20total,\x20and\x20the\x20largest\x20single\x20coin,\x20and\x20NO\x20transaction\x20is\x20sent\x20(no\x20gas\x20spent)\x20—\x20in\x20that\x20case\x20fund\x20the\x20account\x20first,\x20or\x20request\x20at\x20most\x20the\x20largest\x20single\x20coin.\x20Do\x20not\x20retry\x20the\x20same\x20balance_required\x20after\x20such\x20a\x20failure;\x20re-reading\x20the\x20balance\x20will\x20not\x20change\x20the\x20answer.'),'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'+'DEFAULT\x20ACCOUNT:\x20every\x20name/address\x20field\x20(name_or_address,\x20name_or_address_from,\x20name_or_address_to,\x20name1,\x20name2,\x20name_or_account)\x20accepts\x20the\x20EMPTY\x20STRING\x20\x27\x27\x20to\x20mean\x20the\x20default\x20account\x20—\x20the\x20literal\x20\x27DEFAULT\x27\x20is\x20NOT\x20a\x20valid\x20name\x20and\x20is\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']('Coin\x20object\x20ID\x20that\x20actually\x20carries\x20at\x20least\x20the\x20required\x20balance\x20(split/merged\x20+\x20self-delivered\x20on-chain).\x20Always\x20cross-check\x20against\x20`balance`.'),'digest':z['string']()['optional']()['describe']('Digest\x20of\x20the\x20on-chain\x20split/merge\x20+\x20self-delivery\x20transaction\x20that\x20produced\x20coin_address;\x20absent\x20only\x20when\x20no\x20transaction\x20was\x20executed.\x20A\x20digest\x20alone\x20does\x20NOT\x20prove\x20the\x20coin\x20is\x20large\x20enough\x20—\x20compare\x20`balance`.'),'balance':z['string']()['optional']()['describe']('ACTUAL\x20final\x20on-chain\x20balance\x20of\x20coin_address\x20in\x20raw\x20smallest\x20units,\x20read\x20back\x20from\x20the\x20chain\x20after\x20execution.\x20This\x20is\x20the\x20authoritative\x20amount\x20—\x20assert\x20balance\x20>=\x20the\x20amount\x20you\x20need\x20before\x20relying\x20on\x20it.'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address'),'balance_required':z['union']([z['string'](),z['number']()])['describe']('Required\x20coin\x20object\x20balance\x20(raw\x20smallest\x20units\x20executed\x20on-chain)'),'token_type':z['string']()['optional']()['describe']('Token\x20type;\x20default\x20token\x20type\x20is\x200x2::wow::WOW'),'network':EntrypointSchema['optional']()})['optional']()['describe']('Result\x20of\x20producing\x20a\x20coin\x20object\x20with\x20the\x20required\x20balance\x20(on-chain\x20split/merge\x20+\x20self-delivery\x20transaction)'),'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 MarkPutResultSchema=z['object']({'marked':z['array'](MarkDataSchema)['describe']('Entries\x20created\x20or\x20merged.\x20Any\x20entry\x20WITH\x20a\x20`name`\x20is\x20reachable\x20via\x20get(name).'),'unnamed':z['number']()['describe']('How\x20many\x20of\x20the\x20written\x20entries\x20have\x20NO\x20name\x20and\x20are\x20therefore\x20unreachable\x20via\x20get(name).\x20'+'Non-zero\x20is\x20legitimate\x20only\x20when\x20the\x20caller\x20asked\x20for\x20address-only\x20rows;\x20a\x20malformed\x20`name`\x20is\x20'+'rejected\x20outright\x20rather\x20than\x20landing\x20here\x20(wiki/test/10\x20N-1).')})['describe']('Result\x20of\x20a\x20local\x20mark\x20`add`\x20operation');export const LocalMarkOperationResultSchema=z['object']({'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20marks\x20were\x20successfully\x20removed'),'add':MarkPutResultSchema['optional']()['describe']('Result\x20of\x20adding\x20marks\x20(written\x20entries\x20+\x20how\x20many\x20carry\x20no\x20name)'),'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 HistoryVisitDataSchema=z['object']({'key':z['string']()['min'](0x1)['describe']('Stable\x20identity\x20key\x20of\x20the\x20visited\x20object'),'objType':z['string']()['optional']()['describe']('Object\x20type\x20tag\x20for\x20detail\x20visits\x20(short\x20form,\x20e.g.\x20\x27Machine\x27)'),'address':WowAddressSchema['describe']('Canonical\x200x\x20address\x20of\x20the\x20visited\x20object'),'network':z['string']()['optional']()['describe']('Network\x20of\x20the\x20visit;\x20resolved\x20to\x20the\x20config\x20default\x20when\x20omitted'),'ts':z['number']()['int']()['describe']('Visit\x20timestamp\x20(ms\x20epoch)')})['strict']()['describe']('One\x20history\x20visit\x20(identity-only;\x20display\x20names\x20are\x20resolved\x20live)');export const LocalHistoryOperationSchema=z['object']({'add':z['object']({'op':z['literal']('add')['describe']('Operation\x20type:\x20add\x20history\x20visits'),'data':z['array'](HistoryVisitDataSchema)['min'](0x1)['describe']('Array\x20of\x20visits\x20to\x20record\x20(at\x20least\x201\x20item)')})['strict']()['optional']()['describe']('Record\x20one\x20or\x20more\x20object\x20visits\x20(upsert\x20by\x20key)'),'remove':z['object']({'op':z['literal']('remove')['describe']('Operation\x20type:\x20remove\x20history\x20entries'),'keys':z['array'](z['string']())['min'](0x1)['describe']('Array\x20of\x20history\x20entry\x20keys\x20to\x20remove')})['strict']()['optional']()['describe']('Remove\x20history\x20entries\x20by\x20key'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20all\x20history')})['strict']()['optional']()['describe']('Remove\x20all\x20history\x20entries')})['strict']()['describe']('Local\x20visit-history\x20operations.\x20At\x20most\x20one\x20operation\x20field\x20(add/remove/clear)\x20is\x20specified\x20as\x20a\x20NESTED\x20field;\x20'+'omit\x20ALL\x20fields\x20(pass\x20{})\x20to\x20LIST\x20stored\x20history\x20(newest\x20first).\x20'+'Example:\x20{add:\x20{op:\x27add\x27,\x20data:[...]}}\x20—\x20NOT\x20flat\x20{op:\x27add\x27,\x20data:[...]}\x20(flat\x20form\x20is\x20rejected\x20as\x20unknown\x20fields).');export const HistoryEntryDataSchema=z['object']({'key':z['string']()['describe']('Stable\x20identity\x20key\x20of\x20the\x20visited\x20object'),'objType':z['string']()['optional']()['describe']('Object\x20type\x20tag\x20for\x20detail\x20visits'),'address':z['string']()['describe']('Canonical\x200x\x20address\x20of\x20the\x20visited\x20object'),'network':z['string']()['describe']('Network\x20of\x20the\x20visit'),'ts':z['number']()['int']()['describe']('Visit\x20timestamp\x20(ms\x20epoch)')})['strict']()['describe']('Stored\x20history\x20entry');export const LocalHistoryOperationResultSchema=z['object']({'list':z['array'](HistoryEntryDataSchema)['optional']()['describe']('History\x20entries\x20(newest\x20first);\x20present\x20when\x20no\x20op\x20was\x20given'),'add':z['array'](HistoryEntryDataSchema)['optional']()['describe']('List\x20of\x20upserted\x20history\x20entries'),'remove':z['array'](HistoryEntryDataSchema)['optional']()['describe']('List\x20of\x20removed\x20history\x20entries'),'clear':z['boolean']()['optional']()['describe']('Whether\x20all\x20history\x20entries\x20were\x20removed')})['describe']('Results\x20of\x20local\x20history\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}),z['object']({'status':z['literal']('pending_confirmation'),'operation':z['string']()['describe']('Operation\x20that\x20was\x20blocked\x20(e.g.\x20\x27account_transfer\x27)'),'message':z['string']()['describe']('Human-readable\x20confirmation\x20message\x20(amount,\x20token\x20full\x20type,\x20decimals,\x20recipient,\x20warnings)'),'rule_id':z['string']()['describe']('Id\x20of\x20the\x20confirmation\x20rule\x20that\x20matched')})['describe']('Pending\x20confirmation\x20—\x20the\x20on-chain\x20fund\x20movement\x20(transfer\x20or\x20get)\x20was\x20NOT\x20executed.\x20Read\x20message\x20first;\x20if\x20the\x20user\x20consents,\x20re-invoke\x20the\x20SAME\x20call\x20with\x20transfer.confirmed=true\x20or\x20get.confirmed=true.')])['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 const LocalHistoryOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalHistoryOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20history\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalHistoryOperationOutputWrappedSchema=z['object']({'result':LocalHistoryOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20history\x20operation')})['describe']('Local\x20history\x20operation\x20output\x20wrapped\x20schema');export const LocalCachePrefixValues=['objectv2','sharedobject','servicelist','demandlist','arbitlist','table','event','tx','entity','config','token','personal','mark','info','history'];export const LocalCacheOperationSchema=z['object']({'status':z['object']({'op':z['literal']('status')['describe']('Operation\x20type:\x20report\x20cache\x20diagnostics')})['strict']()['optional']()['describe']('Report\x20cache\x20diagnostics:\x20active\x20chain\x20identity,\x20in-memory\x20entry\x20count,\x20persisted\x20row\x20count.\x20Read-only\x20—\x20changes\x20nothing.'),'clear_prefix':z['object']({'op':z['literal']('clear_prefix')['describe']('Operation\x20type:\x20clear\x20one\x20cache\x20prefix'),'prefix':z['enum'](LocalCachePrefixValues)['describe']('Cache\x20prefix\x20to\x20clear\x20(e.g.\x20\x27objectv2\x27\x20for\x20on-chain\x20objects)')})['strict']()['optional']()['describe']('Clear\x20every\x20cached\x20row\x20under\x20ONE\x20prefix,\x20in\x20memory\x20and\x20on\x20disk.\x20Choose\x20\x27objectv2\x27\x20to\x20force\x20a\x20full\x20re-read\x20of\x20on-chain\x20objects.'),'clear':z['object']({'op':z['literal']('clear')['describe']('Operation\x20type:\x20clear\x20the\x20entire\x20read\x20cache')})['strict']()['optional']()['describe']('Clear\x20the\x20ENTIRE\x20read\x20cache\x20(every\x20prefix,\x20every\x20network,\x20memory\x20and\x20disk).\x20Accounts,\x20marks,\x20info\x20and\x20history\x20are\x20NOT\x20affected.'),'refresh_chain_scope':z['object']({'op':z['literal']('refresh_chain_scope')['describe']('Operation\x20type:\x20re-detect\x20the\x20chain\x20identity\x20and\x20re-scope\x20the\x20cache'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20re-detect;\x20defaults\x20to\x20the\x20configured\x20network')})['strict']()['optional']()['describe']('Re-fetch\x20the\x20chain\x20identity\x20(w_getChainIdentifier)\x20and\x20install\x20it\x20as\x20the\x20cache\x20scope.\x20If\x20the\x20chain\x20was\x20reset,\x20every\x20previously\x20written\x20row\x20becomes\x20UNREACHABLE\x20automatically\x20and\x20is\x20re-fetched\x20on\x20next\x20read\x20—\x20the\x20automatic\x20half\x20of\x20the\x20reset-recovery\x20fix.')})['strict']()['refine'](a=>Object['values'](a)['some'](b=>b!==undefined),{'message':'Exactly\x20one\x20operation\x20field\x20(status/clear_prefix/clear/refresh_chain_scope)\x20must\x20be\x20specified\x20as\x20a\x20NESTED\x20field.\x20'+'Example:\x20{clear_prefix:\x20{op:\x20\x27clear_prefix\x27,\x20prefix:\x20\x27objectv2\x27}}\x20—\x20NOT\x20flat\x20{op:\x20\x27clear_prefix\x27,\x20prefix:\x20\x27objectv2\x27}.'})['describe']('LOCAL\x20ONLY,\x20NEVER\x20ON-CHAIN:\x20inspect\x20and\x20clear\x20this\x20device\x27s\x20WoWok\x20SDK\x20read\x20cache.\x20'+'Use\x20{status:\x20{op:\x27status\x27}}\x20to\x20diagnose\x20a\x20stale\x20cache,\x20{refresh_chain_scope:\x20{op:\x27refresh_chain_scope\x27}}\x20after\x20the\x20chain\x20node\x20was\x20reset\x20or\x20restarted\x20(this\x20alone\x20fixes\x20\x27object\x200x…\x20version\x200x…\x20is\x20unavailable\x27),\x20{clear_prefix:\x20{...}}\x20to\x20drop\x20one\x20cache\x20family\x20such\x20as\x20on-chain\x20objects,\x20or\x20{clear:\x20{op:\x27clear\x27}}\x20to\x20drop\x20everything.\x20'+'Does\x20NOT\x20touch\x20accounts,\x20marks,\x20info\x20or\x20history\x20—\x20those\x20hold\x20user\x20data\x20and\x20have\x20their\x20own\x20tools.');export const LocalCacheOperationResultSchema=z['discriminatedUnion']('op',[z['object']({'op':z['literal']('status'),'chain_identity':z['string']()['nullable']()['describe']('Active\x20chain\x20identity\x20scoping\x20the\x20cache\x20(genesis\x20checkpoint\x20digest),\x20or\x20null\x20when\x20UNSCOPED.\x20Null\x20means\x20the\x20identity\x20could\x20not\x20be\x20fetched\x20(node\x20unreachable\x20at\x20startup)\x20—\x20the\x20cache\x20is\x20then\x20keyed\x20by\x20network\x20name\x20only\x20and\x20is\x20NOT\x20reset-safe.'),'storage_attached':z['boolean']()['describe']('Whether\x20a\x20persistent\x20cache\x20backend\x20is\x20attached\x20(false\x20=\x20memory-only,\x20nothing\x20survives\x20restart)'),'memory_entries':z['number']()['int']()['describe']('Number\x20of\x20rows\x20currently\x20held\x20in\x20the\x20in-process\x20memory\x20cache'),'storage_rows':z['number']()['int']()['nullable']()['describe']('Number\x20of\x20rows\x20persisted\x20on\x20disk,\x20or\x20null\x20when\x20the\x20backend\x20does\x20not\x20report\x20stats'),'storage_bytes':z['number']()['int']()['nullable']()['describe']('Total\x20bytes\x20persisted\x20on\x20disk,\x20or\x20null\x20when\x20the\x20backend\x20does\x20not\x20report\x20stats')})['strict']()['describe']('Cache\x20diagnostics'),z['object']({'op':z['literal']('clear_prefix'),'prefix':z['string']()['describe']('Prefix\x20that\x20was\x20cleared'),'chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20still\x20in\x20effect\x20after\x20the\x20clear')})['strict']()['describe']('Result\x20of\x20clearing\x20one\x20cache\x20prefix'),z['object']({'op':z['literal']('clear'),'cleared':z['boolean']()['describe']('True\x20when\x20both\x20the\x20memory\x20and\x20disk\x20caches\x20were\x20cleared'),'chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20still\x20in\x20effect\x20after\x20the\x20clear')})['strict']()['describe']('Result\x20of\x20clearing\x20the\x20entire\x20read\x20cache'),z['object']({'op':z['literal']('refresh_chain_scope'),'previous_chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20in\x20effect\x20before\x20re-detection'),'chain_identity':z['string']()['nullable']()['describe']('Chain\x20identity\x20in\x20effect\x20after\x20re-detection,\x20or\x20null\x20when\x20the\x20node\x20did\x20not\x20answer'),'changed':z['boolean']()['describe']('True\x20when\x20the\x20identity\x20CHANGED.\x20True\x20means\x20the\x20chain\x20was\x20replaced\x20and\x20every\x20previously\x20written\x20row\x20is\x20now\x20unreachable\x20(orphaned)\x20rather\x20than\x20served\x20—\x20this\x20is\x20the\x20reset-recovery\x20signal.\x20False\x20with\x20a\x20null\x20identity\x20means\x20the\x20node\x20did\x20not\x20answer\x20and\x20the\x20cache\x20remains\x20unscoped.'),'resolved':z['boolean']()['describe']('True\x20when\x20a\x20chain\x20identity\x20was\x20obtained\x20from\x20the\x20node')})['strict']()['describe']('Result\x20of\x20re-detecting\x20the\x20chain\x20identity')]);export const LocalCacheOperationOutputSchema=z['discriminatedUnion']('status',[z['object']({'status':z['literal']('success'),'data':LocalCacheOperationResultSchema['describe']('Success\x20result\x20data')}),z['object']({'status':z['literal']('error'),'error':z['string']()['describe']('Error\x20message'),...LocalOperationErrorFields})])['describe']('Local\x20cache\x20operation\x20output\x20schema\x20with\x20discriminator');export const LocalCacheOperationOutputWrappedSchema=z['object']({'result':LocalCacheOperationOutputSchema,'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20local\x20cache\x20operation')})['describe']('Local\x20cache\x20operation\x20output\x20wrapped\x20schema');export*from'./wip.js';
|