@wowok/agent-mcp 3.4.1 → 3.4.3
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/.build-stamp.json +5 -0
- package/dist/chain-semantics/composition-truth.js +1 -1
- package/dist/chain-semantics/eval-order.js +1 -1
- package/dist/chain-semantics/field-capability.js +1 -1
- package/dist/chain-semantics/freeze-map.js +1 -1
- package/dist/chain-semantics/fund-flow.js +1 -1
- package/dist/chain-semantics/guard-verbs.js +1 -1
- package/dist/chain-semantics/object-graph.js +1 -1
- package/dist/composition/audit.js +1 -1
- package/dist/composition/compile.d.ts +10 -3
- package/dist/composition/compile.js +1 -1
- package/dist/composition/emit-phases.d.ts +30 -2
- package/dist/composition/emit-phases.js +1 -1
- package/dist/composition/guard-fill.d.ts +8 -0
- package/dist/composition/guard-fill.js +1 -1
- package/dist/composition/inflight.js +1 -1
- package/dist/composition/input-normalize.js +1 -1
- package/dist/composition/materialize.d.ts +2 -0
- package/dist/composition/materialize.js +1 -1
- package/dist/composition/mode-gates.js +1 -1
- package/dist/composition/param-disclosure.js +1 -1
- package/dist/composition/plan-retry-ledger.d.ts +16 -0
- package/dist/composition/plan-retry-ledger.js +1 -1
- package/dist/composition/plan.d.ts +15 -1
- package/dist/composition/plan.js +1 -1
- package/dist/config/config-audit.spec.js +1 -1
- package/dist/config/judgment.d.ts +5 -0
- package/dist/config/judgment.js +1 -1
- package/dist/evaluation/builtins/arbitration-score.d.ts +1 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.d.ts +8 -0
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/capability.d.ts +9 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.d.ts +9 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/match-policy.d.ts +5 -3
- package/dist/evaluation/match-policy.js +1 -1
- package/dist/evaluation/standards.d.ts +1 -0
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/structured-lines.js +1 -1
- package/dist/evaluation/types.d.ts +1 -0
- package/dist/extensions/capability.js +1 -1
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/index.js +1 -1
- package/dist/intent/types.d.ts +1 -1
- package/dist/intent/types.js +1 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocator-rail-verifier.d.ts +17 -1
- package/dist/knowledge/allocator-rail-verifier.js +1 -1
- package/dist/knowledge/arb-fund-facts.d.ts +7 -0
- package/dist/knowledge/arb-fund-facts.js +1 -1
- package/dist/knowledge/arbitration-rail-verifier.d.ts +35 -0
- package/dist/knowledge/arbitration-rail-verifier.js +1 -0
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +13 -1
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +1 -0
- package/dist/knowledge/baselines/rules/guard.json +7 -6
- package/dist/knowledge/baselines/rules/progress.json +4 -4
- package/dist/knowledge/baselines/rules/reward.json +118 -3
- package/dist/knowledge/builtin-templates.d.ts +19 -2
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/chain-query-registry.d.ts +14 -0
- package/dist/knowledge/chain-query-registry.js +1 -0
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/fee-param-bindings.d.ts +2 -0
- package/dist/knowledge/fee-param-bindings.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-binding-table.js +1 -1
- package/dist/knowledge/guard-binding-verifier.d.ts +7 -0
- package/dist/knowledge/guard-binding-verifier.js +1 -1
- package/dist/knowledge/guard-bindings.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-host-context.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-node-gates.d.ts +3 -1
- package/dist/knowledge/guard-node-gates.js +1 -1
- package/dist/knowledge/guard-puzzle.js +1 -1
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +2 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +2 -0
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/knob-docs.js +1 -1
- package/dist/knowledge/param-schema.d.ts +1 -1
- package/dist/knowledge/param-schema.js +1 -1
- package/dist/knowledge/param-tiers.d.ts +2 -0
- package/dist/knowledge/param-tiers.js +1 -1
- package/dist/knowledge/path-oracle/products/food-delivery.js +1 -1
- package/dist/knowledge/pattern-resolutions.d.ts +2 -0
- package/dist/knowledge/pattern-resolutions.js +1 -1
- package/dist/knowledge/product-detail-source.d.ts +37 -0
- package/dist/knowledge/product-detail-source.js +1 -0
- package/dist/knowledge/product-doc-b5.d.ts +16 -0
- package/dist/knowledge/product-doc-b5.js +1 -0
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/projection.spec.js +1 -1
- package/dist/knowledge/publish-gate.d.ts +20 -0
- package/dist/knowledge/publish-gate.js +1 -0
- package/dist/knowledge/publish-readiness.d.ts +25 -0
- package/dist/knowledge/publish-readiness.js +1 -0
- package/dist/knowledge/publish-surface-contract.d.ts +16 -0
- package/dist/knowledge/publish-surface-contract.js +1 -0
- package/dist/knowledge/rail-exit-satisfiability.d.ts +25 -0
- package/dist/knowledge/rail-exit-satisfiability.js +1 -0
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +1 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/service-ledger.d.ts +3 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/template-loader.d.ts +41 -2
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/template-test-profiles.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/monitor/normalize.d.ts +1 -1
- package/dist/monitor/normalize.js +1 -1
- package/dist/monitor/types.js +1 -1
- package/dist/participation/customer-interest.d.ts +4 -0
- package/dist/participation/customer-interest.js +1 -1
- package/dist/participation/game-context.js +1 -1
- package/dist/participation/node-action-advisor.d.ts +4 -0
- package/dist/participation/node-action-advisor.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/participation/time-window.d.ts +11 -0
- package/dist/participation/time-window.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +28 -3
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/object-panorama.d.ts +4 -0
- 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/service-panorama.js +1 -1
- package/dist/playbooks/service-build/service-quote.js +1 -1
- package/dist/review/index.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +24 -0
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +11 -7
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +4 -0
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +28 -0
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +21 -0
- package/dist/schema/call/contact.d.ts +4 -0
- package/dist/schema/call/demand.d.ts +4 -0
- package/dist/schema/call/guard.d.ts +12 -0
- package/dist/schema/call/handler.d.ts +1 -0
- package/dist/schema/call/handler.js +1 -1
- package/dist/schema/call/machine.d.ts +16 -8
- package/dist/schema/call/normalize-error.d.ts +1 -0
- package/dist/schema/call/normalize-error.js +1 -0
- package/dist/schema/call/order.d.ts +7 -3
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.d.ts +7 -3
- package/dist/schema/call/permission.d.ts +4 -0
- package/dist/schema/call/personal.d.ts +4 -0
- package/dist/schema/call/progress.d.ts +4 -0
- package/dist/schema/call/progress.js +1 -1
- package/dist/schema/call/proof.d.ts +8 -0
- package/dist/schema/call/proof.js +1 -1
- package/dist/schema/call/receipt.js +1 -1
- package/dist/schema/call/repository.d.ts +4 -0
- package/dist/schema/call/reward.d.ts +6 -2
- package/dist/schema/call/reward.js +1 -1
- package/dist/schema/call/semantic.d.ts +2 -2
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +21 -7
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +10 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/envelope-unify.d.ts +1 -0
- package/dist/schema/envelope-unify.js +1 -1
- package/dist/schema/evaluation/index.d.ts +43 -0
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +14 -2
- package/dist/schema/goal/planning.d.ts +18 -0
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +12 -0
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/keeper/index.d.ts +1 -0
- package/dist/schema/local/index.d.ts +10 -0
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +1 -0
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +98 -13
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +22 -0
- package/dist/schema/query/bi.d.ts +28 -2
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +67 -61
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -1
- package/dist/schemas/benchmark_migration_operation.output.json +74 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +33 -1
- package/dist/schemas/bridge_operation.output.json +2 -1
- package/dist/schemas/bridge_operation.schema.json +40 -0
- package/dist/schemas/evaluation_operation.output.json +96 -0
- package/dist/schemas/evaluation_operation.schema.json +39 -0
- package/dist/schemas/goal_operation.schema.json +32 -0
- package/dist/schemas/guard2file.schema.json +8 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/intent_radar.output.json +10 -2
- package/dist/schemas/intent_radar.schema.json +5 -1
- package/dist/schemas/keeper_operation.output.json +2 -1
- package/dist/schemas/local_cache_operation.output.json +2 -1
- package/dist/schemas/local_history_operation.output.json +2 -1
- package/dist/schemas/local_info_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.output.json +2 -1
- package/dist/schemas/local_mark_operation.schema.json +10 -1
- package/dist/schemas/machineNode2file.schema.json +8 -0
- package/dist/schemas/messenger_operation.output.json +2 -1
- package/dist/schemas/messenger_operation.schema.json +2 -1
- package/dist/schemas/monitor_events.output.json +2 -1
- package/dist/schemas/monitor_subscription.output.json +2 -1
- package/dist/schemas/onchain_events.output.json +206 -13
- package/dist/schemas/onchain_events.schema.json +16 -0
- package/dist/schemas/onchain_operations.output.json +22 -3
- package/dist/schemas/onchain_operations.schema.json +982 -327
- package/dist/schemas/onchain_operations_allocation.schema.json +20 -13
- package/dist/schemas/onchain_operations_arbitration.schema.json +9 -1
- package/dist/schemas/onchain_operations_contact.schema.json +8 -0
- package/dist/schemas/onchain_operations_demand.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +8 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +8 -0
- package/dist/schemas/onchain_operations_guard.schema.json +655 -115
- package/dist/schemas/onchain_operations_machine.schema.json +11 -3
- package/dist/schemas/onchain_operations_order.schema.json +14 -11
- package/dist/schemas/onchain_operations_payment.schema.json +12 -9
- package/dist/schemas/onchain_operations_permission.schema.json +8 -0
- package/dist/schemas/onchain_operations_personal.schema.json +8 -0
- package/dist/schemas/onchain_operations_progress.schema.json +9 -1
- package/dist/schemas/onchain_operations_proof.schema.json +9 -1
- package/dist/schemas/onchain_operations_repository.schema.json +8 -0
- package/dist/schemas/onchain_operations_reward.schema.json +14 -11
- package/dist/schemas/onchain_operations_service.schema.json +25 -12
- package/dist/schemas/onchain_operations_treasury.schema.json +17 -19
- package/dist/schemas/onchain_table_data.output.json +52 -10
- package/dist/schemas/persona_operation.output.json +57 -0
- package/dist/schemas/persona_operation.schema.json +9 -0
- package/dist/schemas/query_toolkit.output.json +326 -23
- package/dist/schemas/query_toolkit.schema.json +18 -5
- package/dist/schemas/wip_file.output.json +2 -2
- package/dist/schemas/wip_file.schema.json +2 -2
- package/dist/schemas/workflow_operation.schema.json +1 -1
- package/dist/tools/error-catalog.d.ts +17 -0
- package/dist/tools/error-catalog.js +1 -0
- package/dist/tools/handlers/benchmark-migration.d.ts +29 -8
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/entry-edge-recipe.d.ts +101 -0
- package/dist/tools/handlers/entry-edge-recipe.js +1 -0
- package/dist/tools/handlers/escrow-deficit.d.ts +10 -0
- package/dist/tools/handlers/escrow-deficit.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/fund-rail-recipe.d.ts +10 -0
- package/dist/tools/handlers/fund-rail-recipe.js +1 -0
- package/dist/tools/handlers/intent-radar.js +1 -1
- package/dist/tools/handlers/local.js +1 -1
- package/dist/tools/handlers/mark-namespace.d.ts +30 -0
- package/dist/tools/handlers/mark-namespace.js +1 -0
- package/dist/tools/handlers/messenger.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.d.ts +1 -0
- package/dist/tools/handlers/onchain-name-registration.js +1 -1
- package/dist/tools/handlers/onchain-name-registration.spec.js +1 -1
- package/dist/tools/handlers/onchain.d.ts +40 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/publish-binding-echo.d.ts +22 -0
- package/dist/tools/handlers/publish-binding-echo.js +1 -0
- package/dist/tools/handlers/query.d.ts +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/review-chain.d.ts +1 -0
- package/dist/tools/handlers/review-chain.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/stale-build-check.d.ts +9 -0
- package/dist/tools/handlers/stale-build-check.js +1 -0
- package/dist/tools/handlers/submission-assembly.d.ts +55 -0
- package/dist/tools/handlers/submission-assembly.js +1 -0
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.js +1 -1
- package/dist/tools/publish-gate-state.d.ts +5 -0
- package/dist/tools/publish-gate-state.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/registry/query.js +1 -1
- package/dist/tools/retry.js +1 -1
- package/dist/tools/runtime-health.js +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/upgrade-check.d.ts +1 -0
- package/dist/tools/upgrade-check.js +1 -1
- package/dist/tools/wip-verify-ledger.d.ts +2 -0
- package/dist/tools/wip-verify-ledger.js +1 -1
- package/dist/tools/wrap.d.ts +15 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +5 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{EntrypointSchema,ObjectOwnerSchema,NameOrAddressSchema,NameSchema,WowAddressSchema,TokenTypeSchema,FaucetNetworkSchema}from'../common/index.js';import{z}from'zod';import{SemanticSummarySchema as a505a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a505a);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'),'_balance_scope_note':z['string']()['optional']()['describe']('Semantic\x20scope\x20note\x20for\x20the\x20balance\x20figure:\x20the\x20total\x20is\x20aggregation-only;\x20independently\x20owned\x20Coin\x20objects\x20'+'may\x20exist\x20outside\x20it.\x20Follow\x20the\x20note\x20(transaction\x20digest\x20or\x20coin-objects\x20query)\x20before\x20concluding\x20funds\x20arrived.'),'_balance_read_freshness':z['object']({'source':z['literal']('live')['describe']('Always\x20\x27live\x27\x20—\x20the\x20balance\x20path\x20has\x20no\x20MCP/SDK\x20cache.'),'cached':z['boolean']()['describe']('Always\x20false\x20—\x20present\x20so\x20a\x20caller\x20can\x20audit\x20freshness\x20without\x20inferring\x20from\x20absence.'),'network':z['string']()['describe']('Resolved\x20network\x20the\x20figures\x20were\x20read\x20from.'),'fetched_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20read\x20—\x20compare\x20across\x20re-reads\x20to\x20resolve\x20discrepancies.'),'note':z['string']()['describe']('Why\x20figures\x20can\x20differ\x20between\x20reads\x20moments\x20apart\x20(F-RQ-12)\x20+\x20the\x20reconciliation\x20path\x20(re-read/fetched_at,\x20coin\x20objects,\x20transaction\x20digest).')})['optional']()['describe']('Freshness\x20provenance\x20for\x20the\x20balance/coin\x20figures:\x20always\x20a\x20LIVE\x20indexer\x20read\x20stamped\x20with\x20fetched_at\x20and\x20'+'the\x20resolved\x20network.\x20Figures\x20can\x20differ\x20between\x20reads\x20moments\x20apart\x20—\x20reconcile\x20via\x20the\x20note\x27s\x20path,\x20never\x20'+'treat\x20one\x20read\x20as\x20settled\x20state.')})['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.\x20NOT\x20allowed\x20on\x20the\x20default\x20account\x20(client-only:\x20ask\x20the\x20user\x20to\x20do\x20it\x20in\x20the\x20client\x27s\x20Wallet\x20tab).'),'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.\x20NOT\x20allowed\x20on\x20the\x20default\x20account\x20(client-only:\x20ask\x20the\x20user\x20to\x20do\x20it\x20in\x20the\x20client\x27s\x20Wallet\x20tab).'),'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.\x20NOT\x20allowed\x20when\x20either\x20end\x20is\x20the\x20default\x20account\x20(empty/omitted\x20name)\x20—\x20client-only:\x20ask\x20the\x20user\x20to\x20manage\x20it\x20in\x20the\x20client\x27s\x20Wallet\x20tab.\x20Swap\x20two\x20named\x20(non-default)\x20accounts\x20instead.'),'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.\x20⚠️\x20The\x20numeric\x20part\x20of\x20a\x20suffixed\x20string\x20counts\x20WHOLE\x20tokens,\x20never\x20raw\x20units:\x20\x22320000000WOW\x22\x20=\x20320\x20million\x20WOW\x20(raw\x20320000000000000000\x20at\x20decimals\x209)\x20—\x20to\x20send\x200.32\x20WOW\x20write\x20\x220.32WOW\x22;\x20to\x20pass\x20raw\x20smallest\x20units\x20use\x20the\x20bare\x20integer\x20string\x20\x22320000000\x22\x20(no\x20symbol).\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.\x20NOT\x20a\x20balance\x20query\x20—\x20the\x20returned\x20`balance`\x20is\x20the\x20produced\x20coin\x27s\x20amount,\x20never\x20the\x20account\x27s\x20total;\x20to\x20CHECK\x20an\x20account\x27s\x20balance\x20use\x20the\x20balance\x20query\x20surface\x20(query_toolkit)\x20instead.\x20balance_required\x20must\x20be\x20>\x200\x20—\x20a\x20zero\x20request\x20is\x20rejected.\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['extend']({'network':EntrypointSchema['optional']()['describe']('Chain\x20the\x20transfer\x20transaction\x20executed\x20on,\x20echoed\x20back\x20by\x20the\x20MCP\x20layer\x20so\x20a\x20same-session\x20caller\x20can\x20detect\x20a\x20silently\x20wrong\x20chain\x20(the\x20session\x20default\x20network\x20can\x20change\x20between\x20calls).'),'network_source':z['enum'](['request','session_default'])['optional']()['describe']('Where\x20the\x20echoed\x20network\x20came\x20from:\x20\x27request\x27\x20=\x20the\x20call\x27s\x20explicit\x20transfer.network\x20input;\x20\x27session_default\x27\x20=\x20the\x20SDK\x20session\x20default\x20was\x20used\x20(no\x20transfer.network\x20in\x20the\x20request).')})['optional']()['describe']('Result\x20of\x20token\x20transfer\x20transaction,\x20annotated\x20with\x20the\x20network\x20it\x20executed\x20on\x20and\x20where\x20that\x20network\x20came\x20from'),'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']()['describe']('Chain\x20the\x20coin-production\x20transaction\x20executed\x20on,\x20annotated\x20by\x20the\x20MCP\x20layer\x20with\x20the\x20RESOLVED\x20network\x20so\x20a\x20same-session\x20caller\x20can\x20detect\x20a\x20silently\x20wrong\x20chain\x20(the\x20SDK\x20alone\x20echoes\x20only\x20the\x20raw\x20input,\x20which\x20is\x20undefined\x20when\x20omitted).'),'network_source':z['enum'](['request','session_default'])['optional']()['describe']('Where\x20the\x20echoed\x20network\x20came\x20from:\x20\x27request\x27\x20=\x20the\x20call\x27s\x20explicit\x20get.network\x20input;\x20\x27session_default\x27\x20=\x20the\x20SDK\x20session\x20default\x20was\x20used\x20(no\x20get.network\x20in\x20the\x20request).')})['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'),'account':z['string']()['optional']()['describe']('Account\x20partition\x20for\x20this\x20operation.\x20Local\x20info\x20is\x20isolated\x20per\x20account;\x20'+'omit\x20it\x20to\x20target\x20the\x20process\x20default\x20account\x27s\x20partition.\x20Accepts\x20an\x20account\x20name\x20or\x20address;\x20'+'a\x20ref\x20that\x20does\x20not\x20resolve\x20to\x20a\x20registered\x20account\x20FAILS\x20the\x20call\x20(no\x20silent\x20fallback\x20to\x20the\x20default\x20partition).')})['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:[...]}.\x20'+'Optional\x20top-level\x20\x27account\x27\x20scopes\x20the\x20operation\x20to\x20one\x20account\x27s\x20info\x20partition\x20(ESD-A5).');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.'),'clear_inflight':z['object']({'op':z['literal']('clear_inflight')['describe']('Operation\x20type:\x20clear\x20in-flight\x20operation\x20markers')})['strict']()['optional']()['describe']('F-M10\x20(gfm\x20F-25):\x20drop\x20EVERY\x20in-flight\x20operation\x20marker\x20and\x20landed\x20tombstone\x20held\x20by\x20this\x20process.\x20'+'In-flight\x20markers\x20park\x20the\x20signature\x20of\x20a\x20fund-moving\x20call\x20whose\x20outcome\x20was\x20never\x20observed\x20'+'(transport\x20drop\x20after\x20submit)\x20and\x20hold\x20an\x20identical\x20resend\x20for\x20a\x20120s\x20verify-first\x20window;\x20if\x20a\x20'+'stale\x20marker\x20is\x20blocking\x20a\x20deliberate\x20re-run\x20past\x20on-chain\x20verification,\x20this\x20clears\x20it\x20immediately\x20'+'instead\x20of\x20waiting\x20out\x20the\x20window.\x20Device-local\x20only\x20—\x20never\x20on-chain.')})['strict']()['refine'](a=>Object['values'](a)['some'](b=>b!==undefined),{'message':'Exactly\x20one\x20operation\x20field\x20(status/clear_prefix/clear/refresh_chain_scope/clear_inflight)\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,\x20{clear:\x20{op:\x27clear\x27}}\x20to\x20drop\x20everything,\x20or\x20{clear_inflight:\x20{op:\x27clear_inflight\x27}}\x20to\x20release\x20parked\x20in-flight\x20operation\x20markers.\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'),z['object']({'op':z['literal']('clear_inflight'),'cleared':z['number']()['int']()['describe']('Number\x20of\x20in-flight\x20markers\x20plus\x20landed\x20tombstones\x20removed')})['strict']()['describe']('Result\x20of\x20clearing\x20in-flight\x20operation\x20markers')]);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 a514a}from'../call/index.js';const SemanticSummarySchema=z['lazy'](()=>a514a);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'),'_balance_scope_note':z['string']()['optional']()['describe']('Semantic\x20scope\x20note\x20for\x20the\x20balance\x20figure:\x20the\x20total\x20is\x20aggregation-only;\x20independently\x20owned\x20Coin\x20objects\x20'+'may\x20exist\x20outside\x20it.\x20Follow\x20the\x20note\x20(transaction\x20digest\x20or\x20coin-objects\x20query)\x20before\x20concluding\x20funds\x20arrived.'),'_balance_read_freshness':z['object']({'source':z['literal']('live')['describe']('Always\x20\x27live\x27\x20—\x20the\x20balance\x20path\x20has\x20no\x20MCP/SDK\x20cache.'),'cached':z['boolean']()['describe']('Always\x20false\x20—\x20present\x20so\x20a\x20caller\x20can\x20audit\x20freshness\x20without\x20inferring\x20from\x20absence.'),'network':z['string']()['describe']('Resolved\x20network\x20the\x20figures\x20were\x20read\x20from.'),'fetched_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20read\x20—\x20compare\x20across\x20re-reads\x20to\x20resolve\x20discrepancies.'),'note':z['string']()['describe']('Why\x20figures\x20can\x20differ\x20between\x20reads\x20moments\x20apart\x20(F-RQ-12)\x20+\x20the\x20reconciliation\x20path\x20(re-read/fetched_at,\x20coin\x20objects,\x20transaction\x20digest).')})['optional']()['describe']('Freshness\x20provenance\x20for\x20the\x20balance/coin\x20figures:\x20always\x20a\x20LIVE\x20indexer\x20read\x20stamped\x20with\x20fetched_at\x20and\x20'+'the\x20resolved\x20network.\x20Figures\x20can\x20differ\x20between\x20reads\x20moments\x20apart\x20—\x20reconcile\x20via\x20the\x20note\x27s\x20path,\x20never\x20'+'treat\x20one\x20read\x20as\x20settled\x20state.')})['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.\x20NOT\x20allowed\x20on\x20the\x20default\x20account\x20(client-only:\x20ask\x20the\x20user\x20to\x20do\x20it\x20in\x20the\x20client\x27s\x20Wallet\x20tab).'),'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.\x20NOT\x20allowed\x20on\x20the\x20default\x20account\x20(client-only:\x20ask\x20the\x20user\x20to\x20do\x20it\x20in\x20the\x20client\x27s\x20Wallet\x20tab).'),'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.\x20NOT\x20allowed\x20when\x20either\x20end\x20is\x20the\x20default\x20account\x20(empty/omitted\x20name)\x20—\x20client-only:\x20ask\x20the\x20user\x20to\x20manage\x20it\x20in\x20the\x20client\x27s\x20Wallet\x20tab.\x20Swap\x20two\x20named\x20(non-default)\x20accounts\x20instead.'),'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.\x20⚠️\x20The\x20numeric\x20part\x20of\x20a\x20suffixed\x20string\x20counts\x20WHOLE\x20tokens,\x20never\x20raw\x20units:\x20\x22320000000WOW\x22\x20=\x20320\x20million\x20WOW\x20(raw\x20320000000000000000\x20at\x20decimals\x209)\x20—\x20to\x20send\x200.32\x20WOW\x20write\x20\x220.32WOW\x22;\x20to\x20pass\x20raw\x20smallest\x20units\x20use\x20the\x20bare\x20integer\x20string\x20\x22320000000\x22\x20(no\x20symbol).\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.\x20NOT\x20a\x20balance\x20query\x20—\x20the\x20returned\x20`balance`\x20is\x20the\x20produced\x20coin\x27s\x20amount,\x20never\x20the\x20account\x27s\x20total;\x20to\x20CHECK\x20an\x20account\x27s\x20balance\x20use\x20the\x20balance\x20query\x20surface\x20(query_toolkit)\x20instead.\x20balance_required\x20must\x20be\x20>\x200\x20—\x20a\x20zero\x20request\x20is\x20rejected.\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['extend']({'network':EntrypointSchema['optional']()['describe']('Chain\x20the\x20transfer\x20transaction\x20executed\x20on,\x20echoed\x20back\x20by\x20the\x20MCP\x20layer\x20so\x20a\x20same-session\x20caller\x20can\x20detect\x20a\x20silently\x20wrong\x20chain\x20(the\x20session\x20default\x20network\x20can\x20change\x20between\x20calls).'),'network_source':z['enum'](['request','session_default'])['optional']()['describe']('Where\x20the\x20echoed\x20network\x20came\x20from:\x20\x27request\x27\x20=\x20the\x20call\x27s\x20explicit\x20transfer.network\x20input;\x20\x27session_default\x27\x20=\x20the\x20SDK\x20session\x20default\x20was\x20used\x20(no\x20transfer.network\x20in\x20the\x20request).')})['optional']()['describe']('Result\x20of\x20token\x20transfer\x20transaction,\x20annotated\x20with\x20the\x20network\x20it\x20executed\x20on\x20and\x20where\x20that\x20network\x20came\x20from'),'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']()['describe']('Chain\x20the\x20coin-production\x20transaction\x20executed\x20on,\x20annotated\x20by\x20the\x20MCP\x20layer\x20with\x20the\x20RESOLVED\x20network\x20so\x20a\x20same-session\x20caller\x20can\x20detect\x20a\x20silently\x20wrong\x20chain\x20(the\x20SDK\x20alone\x20echoes\x20only\x20the\x20raw\x20input,\x20which\x20is\x20undefined\x20when\x20omitted).'),'network_source':z['enum'](['request','session_default'])['optional']()['describe']('Where\x20the\x20echoed\x20network\x20came\x20from:\x20\x27request\x27\x20=\x20the\x20call\x27s\x20explicit\x20get.network\x20input;\x20\x27session_default\x27\x20=\x20the\x20SDK\x20session\x20default\x20was\x20used\x20(no\x20get.network\x20in\x20the\x20request).')})['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']({'network':z['enum'](['testnet','mainnet','localnet'])['optional']()['describe']('Network\x20partition\x20for\x20EVERY\x20sub-operation\x20of\x20this\x20call\x20(F-P6-02).\x20'+'Marks\x20are\x20partition-scoped:\x20a\x20mark\x20registered\x20without\x20this\x20field\x20lands\x20on\x20the\x20process-default\x20'+'partition\x20and\x20is\x20INVISIBLE\x20to\x20plan_execute\x20pre-checks\x20that\x20run\x20against\x20env.network=\x27mainnet\x27.\x20'+'Pass\x20the\x20same\x20network\x20the\x20downstream\x20plan_execute\x20will\x20use.'),'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:[...]}.\x20'+'OPTIONALLY\x20pass\x20network\x20(F-P6-02):\x20marks\x20are\x20partition-scoped;\x20a\x20mark\x20written\x20without\x20network\x20lands\x20on\x20the\x20'+'process-default\x20partition\x20and\x20plan_execute\x20pre-checks\x20running\x20against\x20env.network\x20will\x20NOT\x20see\x20it.');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'),'account':z['string']()['optional']()['describe']('Account\x20partition\x20for\x20this\x20operation.\x20Local\x20info\x20is\x20isolated\x20per\x20account;\x20'+'omit\x20it\x20to\x20target\x20the\x20process\x20default\x20account\x27s\x20partition.\x20Accepts\x20an\x20account\x20name\x20or\x20address;\x20'+'a\x20ref\x20that\x20does\x20not\x20resolve\x20to\x20a\x20registered\x20account\x20FAILS\x20the\x20call\x20(no\x20silent\x20fallback\x20to\x20the\x20default\x20partition).')})['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:[...]}.\x20'+'Optional\x20top-level\x20\x27account\x27\x20scopes\x20the\x20operation\x20to\x20one\x20account\x27s\x20info\x20partition\x20(ESD-A5).');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.'),'clear_inflight':z['object']({'op':z['literal']('clear_inflight')['describe']('Operation\x20type:\x20clear\x20in-flight\x20operation\x20markers')})['strict']()['optional']()['describe']('F-M10\x20(gfm\x20F-25):\x20drop\x20EVERY\x20in-flight\x20operation\x20marker\x20and\x20landed\x20tombstone\x20held\x20by\x20this\x20process.\x20'+'In-flight\x20markers\x20park\x20the\x20signature\x20of\x20a\x20fund-moving\x20call\x20whose\x20outcome\x20was\x20never\x20observed\x20'+'(transport\x20drop\x20after\x20submit)\x20and\x20hold\x20an\x20identical\x20resend\x20for\x20a\x20120s\x20verify-first\x20window;\x20if\x20a\x20'+'stale\x20marker\x20is\x20blocking\x20a\x20deliberate\x20re-run\x20past\x20on-chain\x20verification,\x20this\x20clears\x20it\x20immediately\x20'+'instead\x20of\x20waiting\x20out\x20the\x20window.\x20Device-local\x20only\x20—\x20never\x20on-chain.')})['strict']()['refine'](a=>Object['values'](a)['some'](b=>b!==undefined),{'message':'Exactly\x20one\x20operation\x20field\x20(status/clear_prefix/clear/refresh_chain_scope/clear_inflight)\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,\x20{clear:\x20{op:\x27clear\x27}}\x20to\x20drop\x20everything,\x20or\x20{clear_inflight:\x20{op:\x27clear_inflight\x27}}\x20to\x20release\x20parked\x20in-flight\x20operation\x20markers.\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'),z['object']({'op':z['literal']('clear_inflight'),'cleared':z['number']()['int']()['describe']('Number\x20of\x20in-flight\x20markers\x20plus\x20landed\x20tombstones\x20removed')})['strict']()['describe']('Result\x20of\x20clearing\x20in-flight\x20operation\x20markers')]);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';
|
package/dist/schema/local/wip.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';export const WipConstraints={'maxImageSize':0x2*0x400*0x400,'maxTotalSize':0xa*0x400*0x400,'maxImageCount':0xa,'maxTextLength':0x2710,'schemaUrl':'https://schema.wip.wowok.net/v1','version':'1.0.0'};export const TextFormatSchema=z['union']([z['literal']('plain')['describe']('Plain\x20text\x20format'),z['literal']('markdown')['describe']('Markdown\x20format'),z['literal']('html')['describe']('HTML\x20format')])['describe']('Text\x20content\x20format');export const ImageMimeTypeSchema=z['union']([z['literal']('image/png')['describe']('PNG\x20image'),z['literal']('image/jpeg')['describe']('JPEG\x20image'),z['literal']('image/gif')['describe']('GIF\x20image'),z['literal']('image/webp')['describe']('WebP\x20image')])['describe']('Image\x20MIME\x20type');export const HashAlgorithmSchema=z['literal']('sha256')['describe']('Hash\x20algorithm,\x20fixed\x20as\x20sha256');export const SignatureAlgorithmSchema=z['literal']('Falcon512')['describe']('Signature\x20algorithm,\x20fixed\x20as\x20Falcon512');export const WipContentSchema=z['object']({'text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Text\x20content'),'format':TextFormatSchema['describe']('Text\x20format')})['describe']('WIP\x20content');export const WipMediaSchema=z['object']({'id':z['string']()['describe']('Unique\x20media\x20file\x20identifier'),'type':ImageMimeTypeSchema['describe']('Media\x20file\x20MIME\x20type'),'data':z['string']()['describe']('Base64\x20encoded\x20file\x20data'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name')})['describe']('WIP\x20media\x20file');export const WipPayloadSchema=z['object']({'content':WipContentSchema['describe']('Text\x20content'),'media':z['array'](WipMediaSchema)['max'](WipConstraints['maxImageCount'])['describe']('Media\x20file\x20array')})['describe']('WIP\x20content\x20payload');export const WipSignatureSchema=z['object']({'value':z['string']()['describe']('Base64\x20encoded\x20signature\x20value'),'publicKey':z['string']()['describe']('Verification\x20public\x20key\x20(Base64\x20encoded,\x20897\x20bytes\x20for\x20Falcon-512)'),'algorithm':SignatureAlgorithmSchema['describe']('Signature\x20algorithm'),'address':z['string']()['optional']()['describe']('Signer\x20address')})['describe']('WIP\x20digital\x20signature');export const WipSignatureArraySchema=z['union']([WipSignatureSchema,z['array'](WipSignatureSchema)])['describe']('Single\x20signature\x20or\x20signature\x20array\x20(supports\x20multi-signature)');export const WipMetaSchema=z['object']({'type':z['literal']('wip')['describe']('File\x20type\x20identifier,\x20fixed\x20as\x20wip'),'version':z['string']()['describe']('Format\x20version\x20number'),'created':z['string']()['describe']('Creation\x20time\x20in\x20ISO\x208601\x20format'),'hash':z['string']()['describe']('CANONICAL\x20commitment\x20hash:\x20sha256\x20over\x20key-sorted,\x20whitespace-free\x20JSON\x20of\x20{\x20wip,\x20payload\x20}\x20(meta\x20excluded),\x20lowercase\x20hex,\x20no\x20prefix.\x20NOT\x20the\x20sha256\x20of\x20the\x20raw\x20file\x20bytes\x20—\x20audits\x20must\x20use\x20the\x20verify\x20result\x27s\x20content_sha256\x20for\x20byte-level\x20checks'),'algorithm':HashAlgorithmSchema['describe']('Hash\x20algorithm\x20identifier'),'signature':WipSignatureArraySchema['optional']()['describe']('Optional\x20digital\x20signature')})['describe']('WIP\x20metadata');export const WipFileSchema=z['object']({'wip':z['string']()['describe']('Root\x20identifier,\x20value\x20is\x20schema\x20URL'),'payload':WipPayloadSchema['describe']('Content\x20payload'),'meta':WipMetaSchema['describe']('Metadata')})['describe']('Complete\x20WIP\x20file\x20structure');export const ImageSourceSchema=z['object']({'source':z['string']()['describe']('Image\x20source\x20path\x20or\x20URL.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/image.png\x27,\x20\x27C:\x5cUsers\x5cname\x5cimage.jpg\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/image.png\x27,\x20\x27http://site.com/photo.jpg\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:image/png;base64,iVBORw0K...\x27)'),'id':z['string']()['optional']()['describe']('Optional\x20image\x20ID\x20for\x20reference\x20in\x20the\x20WIP\x20content.\x20If\x20not\x20provided,\x20an\x20ID\x20will\x20be\x20auto-generated\x20based\x20on\x20index\x20(e.g.,\x20\x27image_0\x27,\x20\x27image_1\x27)'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name.\x20If\x20not\x20provided,\x20will\x20be\x20extracted\x20from\x20URL\x20path\x20or\x20local\x20file\x20name')})['describe']('Image\x20source\x20for\x20WIP\x20generation');export const WipGenerationOptionsSchema=z['object']({'markdown_text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Markdown\x20formatted\x20text\x20content'),'images':z['array'](ImageSourceSchema)['max'](WipConstraints['maxImageCount'])['optional']()['describe']('Optional\x20image\x20list'),'account':z['string']()['optional']()['describe']('Optional\x20signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20specified,\x20uses\x20Account\x20module\x20for\x20signing')})['required']({'markdown_text':!![]})['describe']('WIP\x20generation\x20options');export const WipSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signature\x20public\x20key'),'address':z['string']()['optional']()['describe']('Address\x20derived\x20from\x20public\x20key'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('Single\x20signature\x20verification\x20result');export const WipVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20passed'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(when\x20verification\x20fails)'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20verification\x20passed'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20verification\x20passed\x20(when\x20signature\x20exists)'),'hasSignature':z['boolean']()['describe']('Whether\x20signature\x20exists'),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details\x20list'),'content_sha256':z['string']()['optional']()['describe']('sha256\x20of\x20the\x20RAW\x20.wip\x20file\x20bytes\x20exactly\x20as\x20fetched.\x20'+'This\x20intentionally\x20DIFFERS\x20from\x20meta.hash\x20/\x20the\x20on-chain\x20wip_hash:\x20meta.hash\x20is\x20the\x20CANONICAL\x20commitment\x20'+'(sha256\x20over\x20key-sorted,\x20whitespace-free\x20{wip,\x20payload}\x20JSON,\x20meta\x20excluded).\x20Never\x20compare\x20a\x20hash\x20of\x20the\x20'+'downloaded\x20file\x20against\x20the\x20on-chain\x20wip_hash\x20—\x20that\x20audit\x20always\x20false-negatives\x20(ddmc4\x20B-23).\x20For\x20'+'byte-level\x20tamper\x20evidence\x20compare\x20content_sha256\x20across\x20re-downloads\x20of\x20the\x20same\x20URL.'),'offline_verification':z['string']()['optional']()['describe']('Offline\x20three-step\x20verification\x20recipe:\x20raw-byte\x20digest,\x20'+'canonical\x20commitment\x20(hash_equal),\x20and\x20signature\x20verification')})['catchall'](z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()])))['describe']('WIP\x20verification\x20result');export const WipToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20page\x20title'),'theme':z['union']([z['literal']('light'),z['literal']('dark')])['optional']()['describe']('Theme\x20style'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(if\x20specified,\x20saves\x20to\x20file).\x20For\x20single\x20file:\x20saves\x20HTML\x20to\x20this\x20path.\x20For\x20directory:\x20saves\x20all\x20converted\x20HTML\x20files\x20to\x20this\x20directory')})['describe']('WIP\x20to\x20HTML\x20conversion\x20options');export const GenerateWip_InputSchema=z['object']({'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['describe']('Generate\x20WIP\x20file\x20tool\x20input\x20parameters');export const VerifyWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20COMMITMENT\x20hash.\x20Compared\x20against\x20the\x20file\x27s\x20meta.hash\x20—\x20'+'the\x20CANONICAL\x20commitment\x20hash\x20(sha256\x20over\x20key-sorted,\x20whitespace-free\x20{wip,\x20payload},\x20meta\x20excluded),\x20which\x20is\x20what\x20'+'the\x20Service\x20anchors\x20on-chain\x20as\x20wip_hash.\x20This\x20is\x20NOT\x20the\x20sha256\x20of\x20the\x20raw\x20downloaded\x20file\x20bytes\x20(see\x20content_sha256\x20in\x20'+'the\x20result).\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['describe']('Verify\x20WIP\x20file\x20tool\x20input\x20parameters');export const SignWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['describe']('Sign\x20WIP\x20file\x20tool\x20input\x20parameters');export const Wip2Html_InputSchema=z['object']({'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['describe']('WIP\x20to\x20HTML\x20tool\x20input\x20parameters');export const WipStorageKindSchema=z['union']([z['literal']('store')['describe']('Official\x20free\x20wip.store.wowok.net\x20storage\x20(zero\x20setup,\x20max\x2010\x20files\x20per\x20account,\x20files\x20retained\x206\x20months).\x20Declaration:\x20free\x20best-effort\x20service\x20—\x20availability\x20and\x20data\x20survival\x20are\x20not\x20guaranteed\x20(force\x20majeure\x20excepted);\x20expired\x20files\x20are\x20deleted\x20ONLY\x20by\x20a\x20manual\x20administrator\x20purge,\x20never\x20automatically'),z['literal']('custom')['describe']('Your\x20own\x20or\x20a\x20third-party\x20wip\x20storage\x20service\x20(recommended:\x20no\x20store\x20quota,\x20full\x20control,\x20permanent\x20self-managed\x20hosting)')])['describe']('Storage\x20backend\x20selection.\x20WIP\x20files\x20are\x20off-chain\x20and\x20network-independent:\x20the\x20same\x20URL\x20and\x20stored\x20files\x20work\x20on\x20both\x20testnet\x20and\x20mainnet');export const WipStoredFileSchema=z['object']({'hash':z['string']()['describe']('WIP\x20file\x20hash\x20(meta.hash)'),'name':z['string']()['optional']()['describe']('Optional\x20display\x20name'),'size':z['number']()['optional']()['describe']('File\x20size\x20in\x20bytes'),'created_at':z['number']()['optional']()['describe']('Upload\x20time\x20(ms\x20epoch)'),'url':z['string']()['optional']()['describe']('Public\x20download\x20URL')})['describe']('A\x20WIP\x20file\x20stored\x20on\x20a\x20wip\x20storage\x20service');export const WipStoredFileListSchema=z['array'](WipStoredFileSchema)['describe']('Stored\x20WIP\x20file\x20list');export const UploadWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20to\x20upload.\x20Supports:\x201)\x20Local\x20file\x20path,\x202)\x20Network\x20URL,\x203)\x20Data\x20URL'),'account':z['string']()['optional']()['describe']('Account\x20used\x20to\x20sign\x20the\x20upload\x20(name\x20or\x20address).\x20If\x20omitted,\x20uses\x20the\x20default\x20account'),'storage':WipStorageKindSchema['optional'](),'customBaseUrl':z['string']()['optional']()['describe']('Base\x20URL\x20of\x20your\x20own\x20or\x20a\x20third-party\x20wip\x20storage\x20service\x20(required\x20when\x20storage=\x27custom\x27),\x20e.g.\x20\x27https://wip.example.com\x27'),'name':z['string']()['optional']()['describe']('Optional\x20display\x20name\x20recorded\x20with\x20the\x20stored\x20file')})['describe']('Upload\x20WIP\x20file\x20to\x20a\x20wip\x20storage\x20service\x20tool\x20input\x20parameters');export const GenerateWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Generated\x20WIP\x20file\x20path')})['describe']('Generate\x20WIP\x20file\x20tool\x20output\x20result');export const VerifyWip_OutputSchema=WipVerificationResultSchema['describe']('Verify\x20WIP\x20file\x20tool\x20output\x20result');export const SignWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Signed\x20WIP\x20file\x20path')})['describe']('Sign\x20WIP\x20file\x20tool\x20output\x20result');export const Wip2Html_OutputSchema=z['object']({'filePath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(single\x20file;\x20defaults\x20to\x20workspace)'),'files':z['array'](z['string']())['optional']()['describe']('Converted\x20file\x20path\x20array\x20(when\x20processing\x20directory)')})['describe']('WIP\x20to\x20HTML\x20tool\x20output\x20result\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)');export const WipOperationOutputSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'filePath':z['string']()}),z['object']({'type':z['literal']('verify'),'valid':z['boolean'](),'error':z['string']()['optional'](),'hashValid':z['boolean'](),'signatureValid':z['boolean']()['optional'](),'hasSignature':z['boolean'](),'signatures':z['array'](WipSignatureVerificationSchema)['optional'](),'content_sha256':z['string']()['optional']()['describe']('sha256\x20of\x20the\x20RAW\x20.wip\x20file\x20bytes\x20as\x20fetched\x20—\x20distinct\x20from\x20the\x20canonical\x20commitment\x20meta.hash\x20(ddmc4\x20B-23\x20dual\x20semantics)'),'offline_verification':z['string']()['optional']()['describe']('Offline\x20three-step\x20verification\x20recipe')}),z['object']({'type':z['literal']('sign'),'filePath':z['string']()}),z['object']({'type':z['literal']('wip2html'),'filePath':z['string']()['optional'](),'files':z['array'](z['string']())['optional']()}),z['object']({'type':z['literal']('upload'),'storage':z['string'](),'base_url':z['string']()['describe']('Storage\x20service\x20base\x20URL'),'address':z['string']()['optional']()['describe']('Signing\x20account\x20address'),'hash':z['string']()['optional']()['describe']('Stored\x20file\x20hash\x20(meta.hash)'),'url':z['string']()['optional']()['describe']('Public\x20download\x20URL'),'size':z['number']()['optional'](),'name':z['string']()['optional'](),'signed':z['boolean']()['optional']()['describe']('Whether\x20the\x20WIP\x20file\x20carries\x20embedded\x20signatures'),'deduplicated':z['boolean']()['optional']()['describe']('True\x20when\x20the\x20same\x20account\x20had\x20already\x20stored\x20this\x20hash'),'error':z['string']()['optional']()['describe']('Error\x20code\x20(e.g.\x20QUOTA_EXCEEDED\x20when\x20the\x20store\x20account\x20file\x20limit\x20is\x20reached)'),'message':z['string']()['optional'](),'count':z['number']()['optional']()['describe']('Files\x20currently\x20stored\x20by\x20the\x20account'),'limit':z['number']()['optional']()['describe']('Per-account\x20file\x20limit\x20on\x20the\x20storage\x20service'),'files':WipStoredFileListSchema['optional']()['describe']('Current\x20stored\x20files\x20(provided\x20on\x20QUOTA_EXCEEDED\x20for\x20deletion)'),'guidance':z['string']()['optional']()['describe']('Actionable\x20guidance\x20(delete\x20files\x20or\x20switch\x20to\x20self-hosted\x20storage)'),'network_advisory':z['string']()['optional']()['describe']('Generic\x20advisory\x20for\x20large,\x20network-sensitive\x20WIP\x20files\x20(size\x20reduction,\x20retry,\x20reachability\x20check)'),'retention_notice':z['string']()['optional']()['describe']('Free-store\x20terms\x20(storage=\x27store\x27\x20only):\x206-month\x20retention,\x20best-effort/force-majeure\x20disclaimer,\x20no\x20automatic\x20deletion')}),z['object']({'type':z['literal']('storage_list'),'storage':z['string'](),'base_url':z['string'](),'address':z['string']()['optional'](),'count':z['number']()['optional'](),'limit':z['number']()['optional'](),'files':WipStoredFileListSchema['optional'](),'error':z['string']()['optional'](),'message':z['string']()['optional'](),'retention_notice':z['string']()['optional']()['describe']('Free-store\x20terms\x20(storage=\x27store\x27\x20only):\x206-month\x20retention,\x20best-effort/force-majeure\x20disclaimer,\x20no\x20automatic\x20deletion')}),z['object']({'type':z['literal']('storage_delete'),'storage':z['string'](),'base_url':z['string'](),'address':z['string']()['optional'](),'deleted':z['string']()['optional']()['describe']('Hash\x20of\x20the\x20deleted\x20file'),'remaining':z['number']()['optional']()['describe']('Files\x20remaining\x20for\x20the\x20account\x20after\x20deletion'),'error':z['string']()['optional'](),'message':z['string']()['optional']()})])['describe']('WIP\x20operation\x20output\x20schema\x20with\x20discriminator');
|
|
1
|
+
import{z}from'zod';export const WipConstraints={'maxImageSize':0x2*0x400*0x400,'maxTotalSize':0xa*0x400*0x400,'maxImageCount':0xa,'maxTextLength':0x2710,'schemaUrl':'https://schema.wip.wowok.net/v1','version':'1.0.0'};export const TextFormatSchema=z['union']([z['literal']('plain')['describe']('Plain\x20text\x20format'),z['literal']('markdown')['describe']('Markdown\x20format'),z['literal']('html')['describe']('HTML\x20format')])['describe']('Text\x20content\x20format');export const ImageMimeTypeSchema=z['union']([z['literal']('image/png')['describe']('PNG\x20image'),z['literal']('image/jpeg')['describe']('JPEG\x20image'),z['literal']('image/gif')['describe']('GIF\x20image'),z['literal']('image/webp')['describe']('WebP\x20image')])['describe']('Image\x20MIME\x20type');export const HashAlgorithmSchema=z['literal']('sha256')['describe']('Hash\x20algorithm,\x20fixed\x20as\x20sha256');export const SignatureAlgorithmSchema=z['literal']('Falcon512')['describe']('Signature\x20algorithm,\x20fixed\x20as\x20Falcon512');export const WipContentSchema=z['object']({'text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Text\x20content'),'format':TextFormatSchema['describe']('Text\x20format')})['describe']('WIP\x20content');export const WipMediaSchema=z['object']({'id':z['string']()['describe']('Unique\x20media\x20file\x20identifier'),'type':ImageMimeTypeSchema['describe']('Media\x20file\x20MIME\x20type'),'data':z['string']()['describe']('Base64\x20encoded\x20file\x20data'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name')})['describe']('WIP\x20media\x20file');export const WipPayloadSchema=z['object']({'content':WipContentSchema['describe']('Text\x20content'),'media':z['array'](WipMediaSchema)['max'](WipConstraints['maxImageCount'])['describe']('Media\x20file\x20array')})['describe']('WIP\x20content\x20payload');export const WipSignatureSchema=z['object']({'value':z['string']()['describe']('Base64\x20encoded\x20signature\x20value'),'publicKey':z['string']()['describe']('Verification\x20public\x20key\x20(Base64\x20encoded,\x20897\x20bytes\x20for\x20Falcon-512)'),'algorithm':SignatureAlgorithmSchema['describe']('Signature\x20algorithm'),'address':z['string']()['optional']()['describe']('Signer\x20address')})['describe']('WIP\x20digital\x20signature');export const WipSignatureArraySchema=z['union']([WipSignatureSchema,z['array'](WipSignatureSchema)])['describe']('Single\x20signature\x20or\x20signature\x20array\x20(supports\x20multi-signature)');export const WipMetaSchema=z['object']({'type':z['literal']('wip')['describe']('File\x20type\x20identifier,\x20fixed\x20as\x20wip'),'version':z['string']()['describe']('Format\x20version\x20number'),'created':z['string']()['describe']('Creation\x20time\x20in\x20ISO\x208601\x20format'),'hash':z['string']()['describe']('CANONICAL\x20commitment\x20hash:\x20sha256\x20over\x20key-sorted,\x20whitespace-free\x20JSON\x20of\x20{\x20wip,\x20payload\x20}\x20(meta\x20excluded),\x20lowercase\x20hex,\x20no\x20prefix.\x20NOT\x20the\x20sha256\x20of\x20the\x20raw\x20file\x20bytes\x20—\x20audits\x20must\x20use\x20the\x20verify\x20result\x27s\x20content_sha256\x20for\x20byte-level\x20checks'),'algorithm':HashAlgorithmSchema['describe']('Hash\x20algorithm\x20identifier'),'signature':WipSignatureArraySchema['optional']()['describe']('Optional\x20digital\x20signature')})['describe']('WIP\x20metadata');export const WipFileSchema=z['object']({'wip':z['string']()['describe']('Root\x20identifier,\x20value\x20is\x20schema\x20URL'),'payload':WipPayloadSchema['describe']('Content\x20payload'),'meta':WipMetaSchema['describe']('Metadata')})['describe']('Complete\x20WIP\x20file\x20structure');export const ImageSourceSchema=z['object']({'source':z['string']()['describe']('Image\x20source\x20path\x20or\x20URL.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/image.png\x27,\x20\x27C:\x5cUsers\x5cname\x5cimage.jpg\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/image.png\x27,\x20\x27http://site.com/photo.jpg\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:image/png;base64,iVBORw0K...\x27)'),'id':z['string']()['optional']()['describe']('Optional\x20image\x20ID\x20for\x20reference\x20in\x20the\x20WIP\x20content.\x20If\x20not\x20provided,\x20an\x20ID\x20will\x20be\x20auto-generated\x20based\x20on\x20index\x20(e.g.,\x20\x27image_0\x27,\x20\x27image_1\x27)'),'filename':z['string']()['optional']()['describe']('Optional\x20file\x20name.\x20If\x20not\x20provided,\x20will\x20be\x20extracted\x20from\x20URL\x20path\x20or\x20local\x20file\x20name')})['describe']('Image\x20source\x20for\x20WIP\x20generation');export const WipGenerationOptionsSchema=z['object']({'markdown_text':z['string']()['max'](WipConstraints['maxTextLength'])['describe']('Markdown\x20formatted\x20text\x20content'),'images':z['array'](ImageSourceSchema)['max'](WipConstraints['maxImageCount'])['optional']()['describe']('Optional\x20image\x20list'),'account':z['string']()['optional']()['describe']('Optional\x20signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20specified,\x20uses\x20Account\x20module\x20for\x20signing')})['required']({'markdown_text':!![]})['describe']('WIP\x20generation\x20options');export const WipSignatureVerificationSchema=z['object']({'publicKey':z['string']()['describe']('Signature\x20public\x20key'),'address':z['string']()['optional']()['describe']('Address\x20derived\x20from\x20public\x20key'),'valid':z['boolean']()['describe']('Whether\x20signature\x20is\x20valid')})['describe']('Single\x20signature\x20verification\x20result');export const WipVerificationResultSchema=z['object']({'valid':z['boolean']()['describe']('Whether\x20verification\x20passed'),'error':z['string']()['optional']()['describe']('Error\x20message\x20(when\x20verification\x20fails)'),'hashValid':z['boolean']()['describe']('Whether\x20hash\x20verification\x20passed'),'signatureValid':z['boolean']()['optional']()['describe']('Whether\x20signature\x20verification\x20passed\x20(when\x20signature\x20exists)'),'hasSignature':z['boolean']()['describe']('Whether\x20signature\x20exists'),'signatures':z['array'](WipSignatureVerificationSchema)['optional']()['describe']('Signature\x20verification\x20details\x20list'),'content_sha256':z['string']()['optional']()['describe']('sha256\x20of\x20the\x20RAW\x20.wip\x20file\x20bytes\x20exactly\x20as\x20fetched.\x20'+'This\x20intentionally\x20DIFFERS\x20from\x20meta.hash\x20/\x20the\x20on-chain\x20wip_hash:\x20meta.hash\x20is\x20the\x20CANONICAL\x20commitment\x20'+'(sha256\x20over\x20key-sorted,\x20whitespace-free\x20{wip,\x20payload}\x20JSON,\x20meta\x20excluded).\x20Never\x20compare\x20a\x20hash\x20of\x20the\x20'+'downloaded\x20file\x20against\x20the\x20on-chain\x20wip_hash\x20—\x20that\x20audit\x20always\x20false-negatives\x20(ddmc4\x20B-23).\x20For\x20'+'byte-level\x20tamper\x20evidence\x20compare\x20content_sha256\x20across\x20re-downloads\x20of\x20the\x20same\x20URL.'),'offline_verification':z['string']()['optional']()['describe']('Offline\x20three-step\x20verification\x20recipe:\x20raw-byte\x20digest,\x20'+'canonical\x20commitment\x20(hash_equal),\x20and\x20signature\x20verification')})['catchall'](z['record'](z['string'](),z['union']([z['string'](),z['number'](),z['boolean']()])))['describe']('WIP\x20verification\x20result');export const WipToHtmlOptionsSchema=z['object']({'title':z['string']()['optional']()['describe']('HTML\x20page\x20title'),'theme':z['union']([z['literal']('light'),z['literal']('dark')])['optional']()['describe']('Theme\x20style'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(if\x20specified,\x20saves\x20to\x20file).\x20For\x20single\x20file:\x20saves\x20HTML\x20to\x20this\x20path.\x20For\x20directory:\x20saves\x20all\x20converted\x20HTML\x20files\x20to\x20this\x20directory')})['describe']('WIP\x20to\x20HTML\x20conversion\x20options');export const GenerateWip_InputSchema=z['object']({'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['describe']('Generate\x20WIP\x20file\x20tool\x20input\x20parameters');export const VerifyWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20COMMITMENT\x20hash.\x20Compared\x20against\x20the\x20file\x27s\x20meta.hash\x20—\x20'+'the\x20CANONICAL\x20commitment\x20hash\x20(sha256\x20over\x20key-sorted,\x20whitespace-free\x20{wip,\x20payload},\x20meta\x20excluded),\x20which\x20is\x20what\x20'+'the\x20Service\x20anchors\x20on-chain\x20as\x20wip_hash.\x20This\x20is\x20NOT\x20the\x20sha256\x20of\x20the\x20raw\x20downloaded\x20file\x20bytes\x20(see\x20content_sha256\x20in\x20'+'the\x20result).\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['describe']('Verify\x20WIP\x20file\x20tool\x20input\x20parameters');export const SignWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['describe']('Sign\x20WIP\x20file\x20tool\x20input\x20parameters');export const Wip2Html_InputSchema=z['object']({'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['describe']('WIP\x20to\x20HTML\x20tool\x20input\x20parameters');export const WipStorageKindSchema=z['union']([z['literal']('store')['describe']('Official\x20free\x20wip.store.wowok.net\x20storage\x20(zero\x20setup,\x20max\x2010\x20files\x20per\x20account,\x20files\x20retained\x206\x20months).\x20Declaration:\x20free\x20best-effort\x20service\x20—\x20availability\x20and\x20data\x20survival\x20are\x20not\x20guaranteed\x20(force\x20majeure\x20excepted);\x20expired\x20files\x20are\x20deleted\x20ONLY\x20by\x20a\x20manual\x20administrator\x20purge,\x20never\x20automatically'),z['literal']('custom')['describe']('Your\x20own\x20or\x20a\x20third-party\x20wip\x20storage\x20service\x20(recommended:\x20no\x20store\x20quota,\x20full\x20control,\x20permanent\x20self-managed\x20hosting)')])['describe']('Storage\x20backend\x20selection.\x20WIP\x20files\x20are\x20off-chain\x20and\x20network-independent:\x20the\x20same\x20URL\x20and\x20stored\x20files\x20work\x20on\x20both\x20testnet\x20and\x20mainnet');export const WipStoredFileSchema=z['object']({'hash':z['string']()['describe']('WIP\x20file\x20hash\x20=\x20meta.hash,\x20the\x20CANONICAL\x20commitment\x20hash\x20(sha256\x20over\x20key-sorted,\x20whitespace-free\x20{wip,\x20payload}\x20JSON,\x20meta\x20excluded)\x20—\x20the\x20same\x20value\x20the\x20Service\x20anchors\x20on-chain\x20as\x20wip_hash,\x20and\x20the\x20key\x20the\x20file\x20is\x20stored/deleted\x20under.\x20NOT\x20the\x20sha256\x20of\x20the\x20raw\x20file\x20bytes'),'name':z['string']()['optional']()['describe']('Optional\x20display\x20name'),'size':z['number']()['optional']()['describe']('File\x20size\x20in\x20bytes'),'created_at':z['number']()['optional']()['describe']('Upload\x20time\x20(ms\x20epoch)'),'url':z['string']()['optional']()['describe']('Public\x20download\x20URL')})['describe']('A\x20WIP\x20file\x20stored\x20on\x20a\x20wip\x20storage\x20service');export const WipStoredFileListSchema=z['array'](WipStoredFileSchema)['describe']('Stored\x20WIP\x20file\x20list');export const UploadWip_InputSchema=z['object']({'wipFilePath':z['string']()['describe']('WIP\x20file\x20to\x20upload.\x20Supports:\x201)\x20Local\x20file\x20path,\x202)\x20Network\x20URL,\x203)\x20Data\x20URL'),'account':z['string']()['optional']()['describe']('Account\x20used\x20to\x20sign\x20the\x20upload\x20(name\x20or\x20address).\x20If\x20omitted,\x20uses\x20the\x20default\x20account'),'storage':WipStorageKindSchema['optional'](),'customBaseUrl':z['string']()['optional']()['describe']('Base\x20URL\x20of\x20your\x20own\x20or\x20a\x20third-party\x20wip\x20storage\x20service\x20(required\x20when\x20storage=\x27custom\x27),\x20e.g.\x20\x27https://wip.example.com\x27'),'name':z['string']()['optional']()['describe']('Optional\x20display\x20name\x20recorded\x20with\x20the\x20stored\x20file')})['describe']('Upload\x20WIP\x20file\x20to\x20a\x20wip\x20storage\x20service\x20tool\x20input\x20parameters');export const GenerateWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Generated\x20WIP\x20file\x20path')})['describe']('Generate\x20WIP\x20file\x20tool\x20output\x20result');export const VerifyWip_OutputSchema=WipVerificationResultSchema['describe']('Verify\x20WIP\x20file\x20tool\x20output\x20result');export const SignWip_OutputSchema=z['object']({'filePath':z['string']()['describe']('Signed\x20WIP\x20file\x20path')})['describe']('Sign\x20WIP\x20file\x20tool\x20output\x20result');export const Wip2Html_OutputSchema=z['object']({'filePath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(single\x20file;\x20defaults\x20to\x20workspace)'),'files':z['array'](z['string']())['optional']()['describe']('Converted\x20file\x20path\x20array\x20(when\x20processing\x20directory)')})['describe']('WIP\x20to\x20HTML\x20tool\x20output\x20result\x20(always\x20writes\x20files;\x20never\x20returns\x20raw\x20HTML)');export const WipOperationOutputSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'filePath':z['string']()}),z['object']({'type':z['literal']('verify'),'valid':z['boolean'](),'error':z['string']()['optional'](),'hashValid':z['boolean'](),'signatureValid':z['boolean']()['optional'](),'hasSignature':z['boolean'](),'signatures':z['array'](WipSignatureVerificationSchema)['optional'](),'content_sha256':z['string']()['optional']()['describe']('sha256\x20of\x20the\x20RAW\x20.wip\x20file\x20bytes\x20as\x20fetched\x20—\x20distinct\x20from\x20the\x20canonical\x20commitment\x20meta.hash\x20(ddmc4\x20B-23\x20dual\x20semantics)'),'offline_verification':z['string']()['optional']()['describe']('Offline\x20three-step\x20verification\x20recipe')}),z['object']({'type':z['literal']('sign'),'filePath':z['string']()}),z['object']({'type':z['literal']('wip2html'),'filePath':z['string']()['optional'](),'files':z['array'](z['string']())['optional']()}),z['object']({'type':z['literal']('upload'),'storage':z['string'](),'base_url':z['string']()['describe']('Storage\x20service\x20base\x20URL'),'address':z['string']()['optional']()['describe']('Signing\x20account\x20address'),'hash':z['string']()['optional']()['describe']('Stored\x20file\x20hash\x20(meta.hash)'),'url':z['string']()['optional']()['describe']('Public\x20download\x20URL'),'size':z['number']()['optional'](),'name':z['string']()['optional'](),'signed':z['boolean']()['optional']()['describe']('Whether\x20the\x20WIP\x20file\x20carries\x20embedded\x20signatures'),'deduplicated':z['boolean']()['optional']()['describe']('True\x20when\x20the\x20same\x20account\x20had\x20already\x20stored\x20this\x20hash'),'error':z['string']()['optional']()['describe']('Error\x20code\x20(e.g.\x20QUOTA_EXCEEDED\x20when\x20the\x20store\x20account\x20file\x20limit\x20is\x20reached)'),'message':z['string']()['optional'](),'count':z['number']()['optional']()['describe']('Files\x20currently\x20stored\x20by\x20the\x20account'),'limit':z['number']()['optional']()['describe']('Per-account\x20file\x20limit\x20on\x20the\x20storage\x20service'),'files':WipStoredFileListSchema['optional']()['describe']('Current\x20stored\x20files\x20(provided\x20on\x20QUOTA_EXCEEDED\x20for\x20deletion)'),'guidance':z['string']()['optional']()['describe']('Actionable\x20guidance\x20(delete\x20files\x20or\x20switch\x20to\x20self-hosted\x20storage)'),'network_advisory':z['string']()['optional']()['describe']('Generic\x20advisory\x20for\x20large,\x20network-sensitive\x20WIP\x20files\x20(size\x20reduction,\x20retry,\x20reachability\x20check)'),'retention_notice':z['string']()['optional']()['describe']('Free-store\x20terms\x20(storage=\x27store\x27\x20only):\x206-month\x20retention,\x20best-effort/force-majeure\x20disclaimer,\x20no\x20automatic\x20deletion')}),z['object']({'type':z['literal']('storage_list'),'storage':z['string'](),'base_url':z['string'](),'address':z['string']()['optional'](),'count':z['number']()['optional'](),'limit':z['number']()['optional'](),'files':WipStoredFileListSchema['optional'](),'error':z['string']()['optional'](),'message':z['string']()['optional'](),'retention_notice':z['string']()['optional']()['describe']('Free-store\x20terms\x20(storage=\x27store\x27\x20only):\x206-month\x20retention,\x20best-effort/force-majeure\x20disclaimer,\x20no\x20automatic\x20deletion')}),z['object']({'type':z['literal']('storage_delete'),'storage':z['string'](),'base_url':z['string'](),'address':z['string']()['optional'](),'deleted':z['string']()['optional']()['describe']('Hash\x20of\x20the\x20deleted\x20file'),'remaining':z['number']()['optional']()['describe']('Files\x20remaining\x20for\x20the\x20account\x20after\x20deletion'),'error':z['string']()['optional'](),'message':z['string']()['optional']()})])['describe']('WIP\x20operation\x20output\x20schema\x20with\x20discriminator');
|
|
@@ -2594,6 +2594,7 @@ export declare const MessengerOperationOutputSchema: z.ZodObject<{
|
|
|
2594
2594
|
review_steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2595
2595
|
step: z.ZodEnum<{
|
|
2596
2596
|
repository_write: "repository_write";
|
|
2597
|
+
rating_write: "rating_write";
|
|
2597
2598
|
reward_claim: "reward_claim";
|
|
2598
2599
|
}>;
|
|
2599
2600
|
status: z.ZodEnum<{
|