@wowok/agent-mcp 3.1.3 → 3.1.5
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/config/config-audit.spec.d.ts +1 -0
- package/dist/config/config-audit.spec.js +1 -0
- package/dist/config/exposure.d.ts +108 -0
- package/dist/config/exposure.js +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +1 -1
- package/dist/config/judgment.d.ts +1228 -0
- package/dist/config/judgment.js +1 -0
- package/dist/config/judgment.spec.d.ts +1 -0
- package/dist/config/judgment.spec.js +1 -0
- package/dist/config/rule-engine.d.ts +299 -0
- package/dist/config/rule-engine.js +1 -0
- package/dist/config/rule-engine.spec.d.ts +1 -0
- package/dist/config/rule-engine.spec.js +1 -0
- package/dist/config/severity.d.ts +7 -0
- package/dist/config/severity.js +1 -0
- package/dist/customer/order-monitor.d.ts +3 -1
- package/dist/customer/order-monitor.js +1 -1
- package/dist/evaluation/acceptance.d.ts +1 -0
- package/dist/evaluation/acceptance.js +1 -1
- package/dist/evaluation/arbitration-game.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/game-strategy.d.ts +2 -2
- package/dist/evaluation/game-strategy.js +1 -1
- package/dist/evaluation/match-operation.d.ts +2 -2
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/standards.d.ts +3 -25
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/types.d.ts +2 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/business-modules.js +1 -1
- package/dist/extensions/custom-registry-file.js +1 -1
- package/dist/extensions/industry-audit.spec.d.ts +1 -0
- package/dist/extensions/industry-audit.spec.js +1 -0
- package/dist/extensions/industry-layers.d.ts +8 -0
- package/dist/extensions/industry-layers.js +1 -1
- package/dist/extensions/industry-pack.d.ts +2 -0
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/graph/onchain/analyze.d.ts +3 -1
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/analyze.spec.js +1 -1
- package/dist/graph/onchain/edge-schema.d.ts +1 -0
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exploration.d.ts +28 -0
- package/dist/graph/onchain/exploration.js +1 -0
- package/dist/graph/onchain/exploration.spec.d.ts +1 -0
- package/dist/graph/onchain/exploration.spec.js +1 -0
- package/dist/graph/onchain/exposure.d.ts +18 -0
- package/dist/graph/onchain/exposure.js +1 -0
- package/dist/graph/onchain/exposure.spec.d.ts +1 -0
- package/dist/graph/onchain/exposure.spec.js +1 -0
- package/dist/graph/onchain/graph-policy.spec.d.ts +1 -0
- package/dist/graph/onchain/graph-policy.spec.js +1 -0
- package/dist/graph/onchain/index.d.ts +6 -0
- package/dist/graph/onchain/index.js +1 -1
- package/dist/graph/onchain/interest.js +1 -1
- package/dist/graph/onchain/interest.spec.js +1 -1
- package/dist/graph/onchain/names.js +1 -1
- package/dist/graph/onchain/names.spec.js +1 -1
- package/dist/graph/onchain/policy.d.ts +8 -0
- package/dist/graph/onchain/policy.js +1 -0
- package/dist/graph/onchain/proposal-graph.js +1 -1
- package/dist/graph/onchain/proposal-graph.spec.js +1 -1
- package/dist/graph/onchain/synthesis.d.ts +20 -0
- package/dist/graph/onchain/synthesis.js +1 -0
- package/dist/graph/onchain/synthesis.spec.d.ts +1 -0
- package/dist/graph/onchain/synthesis.spec.js +1 -0
- package/dist/graph/onchain/types.d.ts +11 -1
- package/dist/keeper/keeper.spec.js +1 -1
- package/dist/knowledge/alloc-audit-policy.spec.d.ts +1 -0
- package/dist/knowledge/alloc-audit-policy.spec.js +1 -0
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +1 -1
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +4 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +6 -5
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-ledger.d.ts +4 -4
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/arbitration-puzzle.d.ts +1 -1
- package/dist/knowledge/arbitration-puzzle.js +1 -1
- package/dist/knowledge/arbitration-risk.d.ts +4 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +289 -0
- package/dist/knowledge/baselines/risk-baselines.spec.js +1 -1
- package/dist/knowledge/baselines/rules/alloc_audit.json +290 -0
- package/dist/knowledge/baselines/rules/allocation.json +492 -0
- package/dist/knowledge/baselines/rules/arb.json +155 -0
- package/dist/knowledge/baselines/rules/arbitration.json +366 -0
- package/dist/knowledge/baselines/rules/bridge.json +197 -0
- package/dist/knowledge/baselines/rules/contact.json +152 -0
- package/dist/knowledge/baselines/rules/demand.json +158 -0
- package/dist/knowledge/baselines/rules/graph.json +453 -0
- package/dist/knowledge/baselines/rules/guard.json +981 -0
- package/dist/knowledge/baselines/rules/machine.json +706 -0
- package/dist/knowledge/baselines/rules/order.json +549 -0
- package/dist/knowledge/baselines/rules/payment.json +205 -0
- package/dist/knowledge/baselines/rules/permission.json +330 -0
- package/dist/knowledge/baselines/rules/personal.json +139 -0
- package/dist/knowledge/baselines/rules/progress.json +346 -0
- package/dist/knowledge/baselines/rules/proof.json +158 -0
- package/dist/knowledge/baselines/rules/registrar.json +159 -0
- package/dist/knowledge/baselines/rules/repository.json +244 -0
- package/dist/knowledge/baselines/rules/resource.json +117 -0
- package/dist/knowledge/baselines/rules/reward.json +471 -0
- package/dist/knowledge/baselines/rules/service.json +595 -0
- package/dist/knowledge/baselines/rules/treasury.json +440 -0
- package/dist/knowledge/baselines/rules/util.json +101 -0
- package/dist/knowledge/bridge-risk.d.ts +6 -5
- package/dist/knowledge/bridge-risk.js +1 -1
- package/dist/knowledge/builtin-templates.d.ts +26 -0
- package/dist/knowledge/builtin-templates.js +1 -0
- package/dist/knowledge/contact-risk.d.ts +6 -5
- package/dist/knowledge/contact-risk.js +1 -1
- package/dist/knowledge/demand-risk.d.ts +6 -5
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/facts-sync.spec.d.ts +1 -0
- package/dist/knowledge/facts-sync.spec.js +1 -0
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-field-cognition.d.ts +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-risk.d.ts +4 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +10 -2
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/industry-strategy.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-risk.d.ts +4 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-templates.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/migration-preflight.js +1 -1
- package/dist/knowledge/operation-dictionary.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-puzzle.d.ts +3 -3
- package/dist/knowledge/order-puzzle.js +1 -1
- package/dist/knowledge/order-risk.d.ts +6 -3
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/passport-ledger.js +1 -1
- package/dist/knowledge/passport-templates.js +1 -1
- package/dist/knowledge/payment-risk.d.ts +8 -6
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-tracker.js +1 -1
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/permission-puzzle.d.ts +12 -12
- package/dist/knowledge/permission-puzzle.js +1 -1
- package/dist/knowledge/permission-risk.d.ts +4 -7
- package/dist/knowledge/permission-risk.js +1 -1
- package/dist/knowledge/permission-templates.js +1 -1
- package/dist/knowledge/personal-risk.d.ts +6 -5
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-puzzle.d.ts +2 -2
- package/dist/knowledge/progress-puzzle.js +1 -1
- package/dist/knowledge/progress-risk.d.ts +4 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/proof-risk.d.ts +6 -5
- package/dist/knowledge/proof-risk.js +1 -1
- package/dist/knowledge/puzzle-projections.js +1 -1
- package/dist/knowledge/recipient-constraint.d.ts +20 -1
- package/dist/knowledge/recipient-constraint.js +1 -1
- package/dist/knowledge/registrar-risk.d.ts +6 -5
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/repository-risk.d.ts +7 -6
- package/dist/knowledge/repository-risk.js +1 -1
- package/dist/knowledge/resource-risk.d.ts +6 -5
- package/dist/knowledge/resource-risk.js +1 -1
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-puzzle.d.ts +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +4 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/rule-node-analyzers.spec.js +1 -1
- package/dist/knowledge/rule-outcome.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +2 -2
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/scenario-topology.js +1 -1
- package/dist/knowledge/service-allocator-audit-node.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-puzzle.d.ts +2 -2
- package/dist/knowledge/service-puzzle.js +1 -1
- package/dist/knowledge/service-risk-node.js +1 -1
- package/dist/knowledge/service-risk.d.ts +4 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/service-templates.js +1 -1
- package/dist/knowledge/strategy-manuals.d.ts +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +84 -0
- package/dist/knowledge/template-loader.js +1 -0
- package/dist/knowledge/template-loader.spec.d.ts +1 -0
- package/dist/knowledge/template-loader.spec.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -0
- package/dist/knowledge/template-scanner.spec.d.ts +1 -0
- package/dist/knowledge/template-scanner.spec.js +1 -0
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-ledger.d.ts +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-puzzle.d.ts +3 -3
- package/dist/knowledge/treasury-puzzle.js +1 -1
- package/dist/knowledge/treasury-risk.d.ts +4 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/treasury-templates.js +1 -1
- package/dist/knowledge/util-risk.d.ts +6 -5
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/analyzer.js +1 -1
- package/dist/persona/index.js +1 -1
- package/dist/persona/model.js +1 -1
- package/dist/persona/persona-audit.spec.d.ts +1 -0
- package/dist/persona/persona-audit.spec.js +1 -0
- package/dist/persona/types.d.ts +2 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/facet-money.d.ts +11 -0
- package/dist/playbooks/service-build/facet-money.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.d.ts +17 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +2 -2
- package/dist/playbooks/service-build/migration-planner.d.ts +43 -0
- package/dist/playbooks/service-build/migration-planner.js +1 -0
- package/dist/playbooks/service-build/object-panorama.d.ts +42 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/pipeline-actions.d.ts +1 -1
- package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/risk-aggregator.d.ts +2 -1
- package/dist/playbooks/service-build/risk-aggregator.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.d.ts +53 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/topology-evaluation.spec.js +1 -1
- package/dist/playbooks/service-build/topology-query.js +1 -1
- package/dist/playbooks/service-build/workflow-design-assessment.d.ts +2 -2
- package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
- package/dist/relationship/registry.js +1 -1
- package/dist/review/machine.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/review/service.js +1 -1
- package/dist/review/types.d.ts +7 -0
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +207 -0
- package/dist/schema/benchmark-migration/index.js +1 -0
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +5 -5
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/machine.d.ts +5 -5
- package/dist/schema/call/order.d.ts +3 -3
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission-handler.d.ts +1 -1
- package/dist/schema/call/permission-handler.js +1 -1
- package/dist/schema/call/permission.d.ts +16 -16
- package/dist/schema/call/permission.js +1 -1
- package/dist/schema/call/personal.d.ts +8 -8
- package/dist/schema/call/personal.js +1 -1
- package/dist/schema/call/progress.d.ts +3 -3
- package/dist/schema/call/repository.d.ts +11 -11
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +7 -7
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.d.ts +6 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +50 -1
- package/dist/schema/config/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +27 -11
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +5 -5
- package/dist/schema/goal/planning.d.ts +15 -15
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/interaction/index.d.ts +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +26 -26
- package/dist/schema/operations.d.ts +33 -33
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +4708 -0
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +232 -25
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +35 -35
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.d.ts +1 -1
- package/dist/schema/workspace/index.d.ts +53 -0
- package/dist/schema/workspace/index.js +1 -1
- package/dist/schema-query-impl/index.d.ts +9 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/benchmark_migration_operation.output.json +793 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +83 -0
- package/dist/schemas/bridge_operation.schema.json +5 -5
- package/dist/schemas/config_operation.output.json +252 -0
- package/dist/schemas/config_operation.schema.json +21 -1
- package/dist/schemas/evaluation_operation.output.json +22 -10
- package/dist/schemas/goal_operation.schema.json +8 -8
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +24 -12
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +4 -2
- package/dist/schemas/onchain_operations.schema.json +189 -139
- package/dist/schemas/onchain_operations_allocation.schema.json +13 -11
- package/dist/schemas/onchain_operations_arbitration.schema.json +10 -8
- package/dist/schemas/onchain_operations_contact.schema.json +7 -5
- package/dist/schemas/onchain_operations_demand.schema.json +7 -5
- package/dist/schemas/onchain_operations_gen_passport.schema.json +5 -3
- package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +5 -3
- package/dist/schemas/onchain_operations_machine.schema.json +22 -18
- package/dist/schemas/onchain_operations_order.schema.json +11 -7
- package/dist/schemas/onchain_operations_payment.schema.json +3 -3
- package/dist/schemas/onchain_operations_permission.schema.json +19 -11
- package/dist/schemas/onchain_operations_personal.schema.json +16 -10
- package/dist/schemas/onchain_operations_progress.schema.json +11 -7
- package/dist/schemas/onchain_operations_proof.schema.json +5 -3
- package/dist/schemas/onchain_operations_repository.schema.json +12 -8
- package/dist/schemas/onchain_operations_reward.schema.json +11 -9
- package/dist/schemas/onchain_operations_service.schema.json +28 -22
- package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
- package/dist/schemas/onchain_table_data.output.json +27 -17
- package/dist/schemas/persona_operation.output.json +15875 -1
- package/dist/schemas/persona_operation.schema.json +3056 -478
- package/dist/schemas/query_toolkit.output.json +343 -63
- package/dist/schemas/query_toolkit.schema.json +1 -1
- package/dist/schemas/workflow_operation.schema.json +4 -2
- package/dist/schemas/workspace_operation.output.json +181 -1
- package/dist/schemas/workspace_operation.schema.json +61 -2
- package/dist/strategy/scorecard.js +1 -1
- package/dist/tools/handlers/benchmark-migration.d.ts +2 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/workspace.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.d.ts +3 -0
- package/dist/tools/move-fn-index.gen.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/config.js +1 -1
- package/dist/tools/registry/evaluation.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/sanitize-output.d.ts +3 -0
- package/dist/tools/sanitize-output.js +1 -0
- package/dist/tools/sanitize-output.spec.d.ts +1 -0
- package/dist/tools/sanitize-output.spec.js +1 -0
- package/package.json +9 -4
- package/dist/knowledge/baselines/evaluation-baselines.json +0 -79
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{TokenTypeInfoSchema,QueryLocalMarkListResultSchema,QueryAccountListResultSchema,QueryLocalInfoListResultSchema,QueryLocalTokenListResultSchema,QueryAccountResultSchema}from'../local/index.js';import{AccountOrMark_AddressSchema,BalanceTypeSchema,CacheExpireTypeSchema,EntrypointSchema,GuardIdentifierSchema,GuardTableItemSchema,NameOrAddressSchema,ObjectBaseSchema,ObjectTypeSchema,QueryIdSchema,SupportedValueSchema,ValueTypeSchema,ValueTypeUserSchema,QueryReceivedResultSchema,LongNameSchema,DescriptionSchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/index.js';import{BI_QUERY_RESULT_MEMBERS}from'./bi.js';import{isValidPermissionIndex}from'../utils/permission-index-utils.js';import{isValidGuardQueryId,isValidGuardQueryIdOrName,isValidWitnessType}from'../utils/guard-query-utils.js';import{ENTITY_LINKER_ADDRESS,ENTITY_REGISTRAR_ADDRESS,isWitnessType}from'@wowok/wowok';import{QueryEnvSchema}from'../common/index.js';const MAX_MULTI_OPERANDS=0x8,VALUE_TYPE_DESCRIPTION='Value\x20type:\x20can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27U64\x27,\x20\x27Address\x27,\x20\x27String\x27)\x20or\x20a\x20number\x20(0-18).\x20Supported\x20types:\x20Bool=0/\x27Bool\x27,\x20Address=1/\x27Address\x27,\x20String=2/\x27String\x27,\x20U8=3/\x27U8\x27,\x20U16=4/\x27U16\x27,\x20U32=5/\x27U32\x27,\x20U64=6/\x27U64\x27,\x20U128=7/\x27U128\x27,\x20U256=8/\x27U256\x27,\x20VecBool=9/\x27VecBool\x27,\x20VecAddress=10/\x27VecAddress\x27,\x20VecString=11/\x27VecString\x27,\x20VecU8=12/\x27VecU8\x27,\x20VecU16=13/\x27VecU16\x27,\x20VecU32=14/\x27VecU32\x27,\x20VecU64=15/\x27VecU64\x27,\x20VecU128=16/\x27VecU128\x27,\x20VecU256=17/\x27VecU256\x27,\x20VecVecU8=18/\x27VecVecU8\x27.\x20Note:\x20Value=19\x20is\x20an\x20INTERNAL\x20type\x20for\x20wowok\x20system\x20use\x20only\x20and\x20should\x20NOT\x20be\x20used\x20directly\x20by\x20users.\x20String\x20format\x20is\x20recommended\x20for\x20better\x20readability.',tolerantNumber=z['union']([z['number'](),z['string']()]),tolerantStringNullable=z['union']([z['string'](),z['null']()])['optional'](),tolerantNumberNullable=z['union']([z['number'](),z['string'](),z['null']()])['optional']();export const AmountTypeSchema=z['union']([z['enum'](['GuardU64Identifier','Fixed']),z['number']()['int']()['min'](0x0)['max'](0x1)['transform'](a=>a===0x0?'GuardU64Identifier':a===0x1?'Fixed':'GuardU64Identifier')])['describe']('Amount\x20type\x20—\x20determines\x20how\x20a\x20payment\x20amount\x20is\x20resolved.\x20'+'Accepts\x20string\x20(\x27GuardU64Identifier\x27\x20or\x20\x27Fixed\x27)\x20or\x20number\x20(0=\x27GuardU64Identifier\x27,\x201=\x27Fixed\x27).\x20String\x20form\x20is\x20recommended\x20for\x20readability.\x20'+'•\x20\x27GuardU64Identifier\x27\x20(0):\x20the\x20amount\x20is\x20NOT\x20fixed\x20—\x20it\x20is\x20dynamically\x20read\x20from\x20a\x20U64\x20value\x20stored\x20in\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20Identifier\x20index.\x20Use\x20this\x20when\x20the\x20amount\x20varies\x20per\x20order\x20(e.g.\x20milestone-based\x20pricing,\x20negotiated\x20price).\x20The\x20Guard\x20must\x20have\x20a\x20matching\x20U64\x20entry.\x20'+'•\x20\x27Fixed\x27\x20(1):\x20the\x20amount\x20is\x20a\x20fixed\x20value\x20set\x20in\x20the\x20sale/price\x20field.\x20Use\x20this\x20for\x20products\x20with\x20a\x20static\x20price\x20(e.g.\x20service\x20fee\x20=\x2050\x20WOW).\x20'+'Example:\x20{price:\x2050000000000,\x20stock:\x20100,\x20amount_type:\x20\x27Fixed\x27}\x20→\x20fixed\x2050\x20WOW\x20price.\x20'+'Example:\x20{price:\x200,\x20stock:\x20100,\x20amount_type:\x20\x27GuardU64Identifier\x27}\x20→\x20price\x20read\x20from\x20Guard\x20table\x20U64\x20entry.');export const GuardQuerySchema=z['object']({'id':QueryIdSchema,'name':z['string']()['describe']('Name\x20of\x20the\x20query\x20instruction.'),'objectType':ObjectTypeSchema['describe']('Type\x20of\x20the\x20Object\x20that\x20the\x20query\x20instruction\x20operates\x20on.'),'parameters':z['array'](ValueTypeSchema)['describe']('List\x20of\x20parameter\x20types\x20for\x20the\x20query\x20instruction.'),'return':ValueTypeSchema['describe']('Return\x20value\x20type\x20of\x20the\x20query\x20instruction.'),'description':z['string']()['describe']('Detailed\x20description\x20of\x20the\x20query\x20instruction.'),'parameters_description':z['array'](z['string']())['describe']('Detailed\x20descriptions\x20of\x20the\x20query\x20instruction\x20parameters.')});export const GuardSubmissionSchema=z['object']({'identifier':GuardIdentifierSchema['describe']('Identifier'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Guard\x20submission');export const RecipientSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Guard\x20verified\x20recipient\x20ID.\x20Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.'),z['object']({'Entity':AccountOrMark_AddressSchema})['describe']('Static\x20address\x20resolved\x20via\x20LocalMark.\x20'+'Format:\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20—\x20NOTE:\x20Entity\x20is\x20an\x20OBJECT\x20with\x20name_or_address\x20field,\x20NOT\x20a\x20bare\x20string.'),z['object']({'Signer':z['literal']('signer')})['describe']('Current\x20transaction\x20signer\x20(tx_context::sender)\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call.\x20'+'For\x20refunds,\x20the\x20Order\x20owner\x20must\x20call\x20alloc_by_guard\x20themselves\x20to\x20receive\x20the\x20funds.')])['describe']('Recipient\x20ID.\x20Three\x20forms:\x0a'+'\x20\x20-\x20{GuardIdentifier:\x20u8}\x20\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x0a'+'\x20\x20-\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20\x20—\x20FIXED\x20static\x20address\x20via\x20LocalMark\x20(recommended)\x0a'+'\x20\x20-\x20{Signer:\x20\x27signer\x27}\x20\x20—\x20transaction\x20sender\x20at\x20alloc()\x20time\x20(e.g.\x20self-refund;\x20customer\x20must\x20call\x20alloc_by_guard\x20themselves)');export const RecordsInEntitySchema=z['object']({'name':z['string']()['describe']('Record\x20name'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Information\x20record');export const PermissionIndexTypeSchema=z['number']()['int']()['refine'](a=>{return isValidPermissionIndex(a);},{'message':'Permission\x20index\x20must\x20be\x20a\x20valid\x20BuiltinPermissionIndex\x20value\x20or\x20user\x20defined\x20between\x201000\x20and\x2065535'})['describe']('Permission\x20index\x20type');export const VoteInEntityLinkerSchema=z['object']({'who':z['string']()['describe']('Voter\x20address'),'like':z['boolean']()['optional']()['describe']('Whether\x20liked'),'dislike':z['boolean']()['optional']()['describe']('Whether\x20disliked'),'favor':z['boolean']()['optional']()['describe']('Whether\x20favorited'),'time':tolerantNumber['describe']('Time')})['describe']('Follow\x20record');export const ObjectEntityRegistrarSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20registrar\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityRegistrar\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20registrar');export const ObjectEntityLinkerSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20linker\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20linker');export const ObjectResourceSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20address\x20mark\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27AddressMark\x27\x20table\x20items.')})['describe']('On-chain\x20address\x20tag\x20manager');export const TableItem_EntityLinkerSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Followed\x20ID'),'pos':tolerantNumber['describe']('Current\x20follow\x20information\x20position'),'count':tolerantNumber['describe']('Follower\x20count.\x20Number\x20of\x20entities\x20who\x20have\x20been\x20followed\x20others.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.'),'votes':z['array'](VoteInEntityLinkerSchema)['describe']('Follow\x20records')})['describe']('On-chain\x20followed\x20object\x20data');export const TableItem_EntityContactSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'contact':z['string']()['describe']('Contact\x20(customer-service\x20book)\x20address\x20the\x20entity\x20is\x20a\x20member\x20of'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20membership\x20was\x20last\x20modified')}))['describe']('Contacts\x20the\x20entity\x20is\x20a\x20member\x20of')})['describe']('Entity\x20contact\x20membership\x20reverse\x20index\x20item');export const TableItem_EntityOrderSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'role':tolerantNumber['describe']('Role\x20bitmask\x20(1=owner,\x202=agent)\x20of\x20the\x20entity\x20in\x20the\x20order'),'order':z['string']()['describe']('Order\x20address\x20the\x20entity\x20participates\x20in'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified')}))['describe']('Orders\x20the\x20entity\x20participates\x20in')})['describe']('Entity\x20order\x20reverse\x20index\x20item');export const UserOrderViewSchema=z['object']({'role':tolerantNumber['describe']('Role\x20bitmask\x20(1=owner,\x202=agent)'),'is_owner':z['boolean']()['describe']('Whether\x20the\x20user\x20is\x20the\x20owner\x20of\x20the\x20order'),'is_agent':z['boolean']()['describe']('Whether\x20the\x20user\x20is\x20an\x20agent\x20of\x20the\x20order'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified'),'order':z['any']()['describe']('Full\x20on-chain\x20Order\x20object')})['describe']('One\x20order\x20membership\x20of\x20a\x20user,\x20resolved\x20with\x20the\x20full\x20order');export const EnrichedOrderRoleSchema=z['object']({'account':z['string']()['describe']('Local\x20account\x20address\x20participating\x20in\x20the\x20order'),'is_owner':z['boolean']()['describe']('Whether\x20this\x20account\x20is\x20the\x20order\x20owner\x20(buyer)'),'is_agent':z['boolean']()['describe']('Whether\x20this\x20account\x20is\x20an\x20operator\x20(agent)\x20of\x20the\x20order'),'time':tolerantNumber['optional']()['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified')})['describe']('One\x20local\x20account\x27s\x20role\x20in\x20the\x20order');export const EnrichedOrderItemSchema=z['object']({'name':z['string']()['describe']('Purchased\x20item\x20name'),'price':z['string']()['describe']('Raw\x20smallest-unit\x20price\x20(u64)'),'price_display':z['string']()['describe']('Human\x20price\x20with\x20token\x20symbol,\x20e.g.\x20\x220.1\x20WOW\x22\x20(raw\x20value\x20when\x20the\x20token\x20cannot\x20be\x20resolved)'),'quantity':z['string']()['describe']('Purchased\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20proof\x20hash\x20(empty\x20when\x20not\x20set)')})['describe']('One\x20purchased\x20SaleItem\x20of\x20the\x20order');export const EnrichedOrderRowSchema=z['object']({'order':z['string']()['describe']('Order\x20object\x20address'),'roles':z['array'](EnrichedOrderRoleSchema)['describe']('Per-account\x20roles\x20merged\x20across\x20the\x20queried\x20accounts\x20(deduped\x20by\x20order\x20address)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20order\x20was\x20created'),'updated_ms':z['number']()['nullable']()['describe']('Last\x20on-chain\x20transaction\x20touching\x20the\x20order\x20(ms);\x20null\x20when\x20unavailable.\x20Distinct\x20from\x20`time`\x20(creation)'),'amount':z['string']()['describe']('Raw\x20smallest-unit\x20order\x20amount\x20(u64);\x20empty\x20when\x20unreadable'),'amount_display':z['string']()['describe']('Human\x20amount\x20with\x20token\x20symbol,\x20e.g.\x20\x220.1\x20WOW\x22\x20(raw\x20value\x20when\x20the\x20token\x20cannot\x20be\x20resolved)'),'amount_tip':z['string']()['describe']('Long-form\x20amount\x20explanation\x20for\x20tooltips'),'service':z['string']()['nullable']()['describe']('Service\x20the\x20order\x20was\x20placed\x20under'),'machine':z['string']()['nullable']()['describe']('Machine\x20driving\x20the\x20order\x27s\x20fulfillment'),'progress':z['string']()['nullable']()['describe']('Progress\x20object\x20tracking\x20the\x20order\x27s\x20workflow'),'allocation':z['string']()['nullable']()['describe']('Allocation\x20(compensation\x20fund)\x20object\x20bound\x20to\x20the\x20order'),'owner':z['string']()['nullable']()['describe']('The\x20account\x20that\x20created\x20(bought)\x20the\x20order\x20(order.owner)'),'claimed_by':z['string']()['nullable']()['describe']('Compensation\x20claimant\x20(Arbitration)\x20when\x20the\x20order\x20was\x20claimed;\x20null\x20while\x20unclaimed'),'required_info':z['string']()['nullable']()['describe']('Buyer-submitted\x20Contact\x20object\x20or\x20WTS\x20proof\x20id\x20(order.required_info);\x20null\x20when\x20not\x20submitted'),'progress_next':z['string']()['nullable']()['describe']('Latest\x20machine\x20node\x20name\x20(Progress.current);\x20null\x20when\x20unavailable'),'progress_since':z['number']()['nullable']()['describe']('When\x20the\x20current\x20node\x20was\x20entered\x20(Progress.current_time,\x20ms);\x20null\x20when\x20unavailable'),'allocation_state':z['enum'](['none','pending','allocated'])['describe']('Compensation\x20fund\x20state:\x20none\x20=\x20no\x20Allocation\x20bound;\x20pending\x20=\x20fund\x20not\x20fully\x20allocated;\x20allocated\x20=\x20balance\x200\x20(fully\x20allocated)'),'disputes':z['array'](z['string']())['describe']('Arbitration\x20addresses\x20that\x20opened\x20a\x20dispute\x20on\x20this\x20order'),'agents':z['array'](z['string']())['describe']('Operator\x20accounts\x20(order.agent)\x20besides\x20the\x20owner'),'items':z['array'](EnrichedOrderItemSchema)['describe']('Purchased\x20items\x20(order.items:\x20vector<SaleItem>)'),'account_errors':z['array'](z['string']())['optional']()['describe']('Per-account\x20query\x20failures\x20(non-blocking)\x20—\x20the\x20other\x20accounts\x27\x20orders\x20still\x20resolve')})['describe']('One\x20enriched\x20order\x20row:\x20raw\x20on-chain\x20fields\x20+\x20server-resolved\x20display/progress/allocation\x20enrichment');export const TableItem_ObjectLinkerCoreSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Core\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(lossless\x20fixed)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20core\x20object\x20bound')}))['describe']('Core\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20core\x20reverse\x20index\x20item');export const TableItem_ObjectLinkerTxSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Tx\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(FIFO\x20window)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20tx\x20object\x20bound')}))['describe']('Recent\x20tx\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20tx\x20reverse\x20index\x20item');export const AffiliationEntrySchema=z['object']({'table':z['enum'](['object_linker_core','object_linker_tx','entity_order','entity_permission','entity_contact','registrar','entity'])['describe']('Source\x20global\x20table\x20(0xaae\x20core\x20/\x200xaaf\x20tx\x20/\x200xaa8\x20order\x20/\x200xaad\x20permission\x20/\x200xaa9\x20contact\x20/\x200xaaa\x20registrar\x20/\x200xaab\x20entity)'),'who':z['string']()['describe']('Linked\x20object\x20or\x20counterparty\x20address\x20recorded\x20under\x20the\x20queried\x20key'),'time':tolerantNumber['optional']()['describe']('On-chain\x20clock\x20(ms)\x20of\x20the\x20last\x20registration/update'),'role':tolerantNumber['optional']()['describe']('Role\x20bitmask:\x20entity_order\x201=owner,2=agent;\x20entity_permission\x201=owner,2=admin,4=entity')})['describe']('One\x20normalized\x20global-table\x20affiliation\x20entry');export const AffiliationAnswerSchema=z['object']({'address':z['string']()['describe']('Queried\x20key\x20address'),'object_type':z['string']()['nullable']()['describe']('Resolved\x20on-chain\x20object\x20type\x20of\x20the\x20key\x20(null\x20=\x20user\x20account)'),'tables_queried':z['array'](z['string']())['describe']('Global\x20tables\x20queried\x20for\x20this\x20key\x20(type-driven\x20static\x20map;\x20single\x20targeted\x20read\x20each,\x20never\x20a\x20full\x20scan)'),'entries':z['array'](AffiliationEntrySchema)['describe']('All\x20global-table\x20records\x20where\x20this\x20address\x20is\x20the\x20key'),'raw':z['any']()['describe']('Raw\x20per-table\x20views\x20(reverse_core\x20/\x20reverse_tx\x20/\x20order_membership\x20/\x20permission_membership\x20/\x20contact_membership\x20/\x20registrar\x20/\x20entity)')})['describe']('Type-driven\x20aggregation\x20over\x20every\x20global\x20table\x20the\x20address\x20can\x20be\x20recorded\x20in');export const TableItem_EntityRegistrarSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20ID'),'description':z['string']()['describe']('Entity\x20description'),'time':tolerantNumber['describe']('On-chain\x20registration\x20time'),'referrer':tolerantStringNullable['describe']('Referrer'),'mark_object':tolerantStringNullable['describe']('Your\x20on-chain\x20address\x20mark\x20object\x20by\x20entity\x20ID'),'records':z['array'](RecordsInEntitySchema)['describe']('Information\x20records\x20on-chain')})['describe']('On-chain\x20entity\x20data');export const TableItem_AddressMarkSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Entity\x20ID'),'name':z['string']()['describe']('Tag\x20name'),'tags':z['array'](z['string']())['describe']('Tag\x20list')})['describe']('On-chain\x20ID\x20mark\x20data');export const ServiceGuardSchema=z['object']({'guard':z['string']()['describe']('Service\x20guard'),'service_identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Service\x20identifier.\x20Used\x20to\x20determine\x20the\x20service\x20verified\x20in\x20Guard')})['describe']('Service\x20guard');export const ObjectDemandSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Demand\x20description'),'location':z['string']()['describe']('The\x20area\x20or\x20scope\x20where\x20the\x20services\x20required\x20by\x20the\x20demand\x20are\x20located'),'rewards':z['array'](z['string']())['describe']('Reward\x20list.\x20Used\x20to\x20incentivize\x20qualified\x20Presenters\x20to\x20claim\x20rewards'),'guards':z['array'](ServiceGuardSchema)['describe']('Service\x20Guard\x20list'),'presenters_count':z['number']()['describe']('Presenter\x20count.\x20Number\x20of\x20Presenters\x20who\x20have\x20submitted\x20their\x20demand.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27DemandPresenter\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission')})['describe']('Demand\x20object');export const ObjectMachineSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Machine\x20description'),'node_count':z['number']()['describe']('Node\x20count.\x20Nodes\x20are\x20used\x20to\x20determine\x20each\x20step\x20and\x20state\x20of\x20Machine\x20operation.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27MachineNode\x27\x20table\x20items.'),'consensus_repositories':z['array'](z['string']())['describe']('Consensus\x20repository\x20list.\x20Used\x20to\x20determine\x20consensus\x20data\x20storage\x20during\x20Machine\x20operation.'),'bPaused':z['boolean']()['describe']('Whether\x20paused'),'bPublished':z['boolean']()['describe']('Whether\x20published'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID.\x20Used\x20to\x20modify\x20operation\x20permission\x20settings\x20for\x20Machine\x20settings.')})['describe']('Machine\x20object');export const ServiceSaleSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20for\x20sale'),'price':BalanceTypeSchema['describe']('Price\x20of\x20the\x20product\x20or\x20service'),'stock':BalanceTypeSchema['describe']('Stock\x20of\x20the\x20product\x20or\x20service'),'suspension':z['boolean']()['describe']('Whether\x20sale\x20is\x20suspended'),'wip':z['string']()['describe']('WIP\x20file\x20URL.\x20EMPTY\x20string\x20\x22\x22\x20skips\x20verification\x20(TESTING\x20ONLY).\x20'+'Production\x20MUST\x20use\x20a\x20real\x20HTTP\x20URL\x20pointing\x20to\x20a\x20.wip\x20file\x20generated\x20by\x20the\x20wip_file\x20tool.\x20'+'⚠️\x20NETWORK\x20DEPLOYMENT\x20REQUIRED:\x20the\x20URL\x20is\x20stored\x20ON-CHAIN\x20and\x20every\x20customer\x20fetches\x20it\x20'+'when\x20placing\x20an\x20order.\x20A\x20local\x20file\x20path\x20(C:\x5c...,\x20/path/file.wip),\x20a\x20localhost/loopback\x20URL\x20'+'or\x20a\x20LAN\x20private-IP\x20URL\x20is\x20unreachable\x20by\x20customers\x20on\x20other\x20machines\x20—\x20it\x20passes\x20the\x20'+'merchant-side\x20set-time\x20verification\x20but\x20makes\x20order_new\x20abort\x20100%\x20for\x20customers.\x20'+'Either\x20deploy\x20the\x20.wip\x20file\x20to\x20a\x20public\x20endpoint\x20(GitHub\x20Pages\x20/\x20IPFS\x20/\x20your\x20own\x20website)\x20'+'and\x20set\x20this\x20to\x20the\x20public\x20URL,\x20or\x20leave\x20it\x20empty\x20(\x22\x22)\x20to\x20skip\x20WIP\x20verification\x20(TESTING\x20ONLY).\x20'+'Example:\x20\x22https://cdn.example.com/products/phone_v1.wip\x22'),'wip_hash':z['string']()['describe']('SHA-256\x20hash\x20(hex\x20string)\x20of\x20the\x20sale\x27s\x20WIP\x20file,\x20committed\x20on-chain\x20by\x20the\x20merchant.\x20'+'BUY\x20RULE:\x20if\x20this\x20is\x20NON-EMPTY,\x20the\x20buyer\x20MUST\x20pass\x20this\x20exact\x20value\x20as\x20wip_hash\x20when\x20creating\x20an\x20order\x20'+'(ServiceBuyItem.wip_hash)\x20—\x20NEVER\x20use\x20\x22\x22.\x20Pinning\x20the\x20on-chain\x20hash\x20prevents\x20the\x20merchant\x20from\x20replacing\x20'+'the\x20WIP\x20file\x20(a\x20legitimate\x20update)\x20between\x20the\x20buyer\x27s\x20view\x20and\x20order\x20placement,\x20ensuring\x20\x27what\x20you\x20see\x20is\x20'+'what\x20you\x20get\x27.\x20EMPTY\x20means\x20no\x20hash\x20was\x20committed\x20(TESTING\x20ONLY,\x20no\x20delivery-integrity\x20guarantee).')})['describe']('Service\x20sale');export const PurchasedItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service'),'price':BalanceTypeSchema['describe']('Service\x20price'),'quantity':BalanceTypeSchema['describe']('Service\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')});export const ObjectOrderSchema=ObjectBaseSchema['extend']({'items':z['array'](PurchasedItemSchema)['describe']('Purchased\x20service\x20list'),'discount':z['union']([z['string'](),z['null']()])['describe']('Used\x20discount\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['describe']('Order\x20progress\x20object\x20ID'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20ID\x20that\x20progress\x20belongs\x20to'),'amount':BalanceTypeSchema['describe']('Order\x20amount'),'builder':z['string']()['describe']('Purchaser\x20ID'),'service':z['string']()['describe']('Service\x20ID'),'dispute':z['array'](z['string']())['describe']('Arb\x20object\x20ID\x20list.\x20When\x20unsatisfied\x20with\x20order\x20delivery,\x20dispute\x20objects\x20can\x20be\x20created.'),'agent':z['array'](z['string']())['describe']('Agent\x20ID\x20list.\x20Agents\x20handle\x20all\x20order\x20operations\x20except\x20payment\x20collection.'),'allocation':z['union']([z['string'](),z['null']()])['describe']('Order\x20amount\x20allocation\x20object\x20ID'),'claimed_by':z['union']([z['string'](),z['null']()])['describe']('Order\x20dispute\x20object\x20ID\x20that\x20has\x20claimed\x20order\x20arbitration\x20amount.'),'required_info':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object\x20ID\x20(recipient)\x20or\x20WTS\x20Proof\x20object\x20(delivery\x20proof)\x20that\x20information\x20has\x20been\x20delivered\x20via\x20Wowok\x20Messenger.'),'time':z['union']([z['string'](),z['number']()])['describe']('Order\x20creation\x20time')});export const NamedOperatorSchema=z['object']({'name':z['string']()['describe']('Namespace\x20name'),'operators':z['array'](z['string']())['describe']('Operator\x20ID\x20list')})['describe']('Namespace\x20operator.\x20Namespace\x20is\x20a\x20permission\x20identifier\x20defined\x20in\x20Machine,\x20allowing\x20different\x20Progress\x20to\x20bind\x20different\x20operators\x20to\x20exercise\x20unified\x20permission\x20definitions.');export const ProgressSessionHolderSchema=z['object']({'forward':z['string']()['describe']('An\x20operation\x20name'),'who':z['union']([z['string'](),z['null']()])['describe']('Operator\x20ID'),'retained_submission':z['array'](GuardSubmissionSchema)['describe']('Values\x20persisted\x20into\x20the\x20Progress\x20history\x20when\x20this\x20forward\x20was\x20accomplished.\x20PROVENANCE:\x20when\x20the\x20Machine\x20forward\x20lists\x20retained_submission\x20identifiers,\x20the\x20Guard\x20is\x20STILL\x20fully\x20verified\x20first\x20—\x20the\x20forward\x20cannot\x20complete\x20without\x20a\x20passing\x20Guard\x20result.\x20After\x20verification,\x20exactly\x20the\x20caller\x27s\x20submissions\x20for\x20the\x20listed\x20identifiers\x20are\x20copied\x20here\x20as\x20Guard-verified\x20facts\x20(see\x20MachineForwardGuardSchema).'),'msg':z['string']()['describe']('Information\x20submitted\x20to\x20complete\x20operation'),'accomplished':z['boolean']()['describe']('Whether\x20completed'),'time':tolerantNumber['describe']('Session\x20creation\x20time')})['describe']('An\x20operation\x20in\x20Progress\x20session');export const ProgressSessionSchema=z['object']({'next_node':z['string']()['describe']('Next\x20node\x20ID'),'forwards':z['array'](ProgressSessionHolderSchema)['describe']('Operation\x20list\x20in\x20Progress\x20session'),'weights':tolerantNumber['describe']('Total\x20operation\x20weight'),'threshold':tolerantNumber['default'](0x0)['describe']('Operation\x20threshold.\x20When\x20total\x20operation\x20weight\x20exceeds\x20threshold,\x20session\x20is\x20considered\x20completed\x20and\x20Progress\x20moves\x20from\x20current\x20node\x20to\x20next\x20node.')})['describe']('Progress\x20session');export const ObjectProgressSchema=ObjectBaseSchema['extend']({'machine':z['string']()['describe']('Machine\x20ID\x20that\x20Progress\x20object\x20belongs\x20to'),'context_repositories':z['array'](z['string']())['describe']('Context\x20repository\x20list.\x20Used\x20to\x20store\x20context\x20data\x20during\x20Progress\x20operation.'),'current':z['string']()['describe']('Current\x20node\x20name'),'task':z['union']([z['string'](),z['null']()])['describe']('Target\x20task\x20ID\x20executed\x20by\x20Progress\x20(e.g.,\x20Order\x20ID)'),'namedOperator':z['array'](NamedOperatorSchema)['describe']('Namespace\x20operator\x20list.\x20Each\x20process\x20can\x20independently\x20maintain\x20operators\x20for\x20permissions\x20represented\x20by\x20its\x20namespace.'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'history_count':z['number']()['describe']('Number\x20of\x20historical\x20sessions\x20for\x20completed\x20nodes\x20in\x20Progress.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27ProgressHistory\x27\x20table\x20items.'),'current_time':z['number']()['describe']('Current\x20node\x20entry\x20timestamp')})['describe']('Progress\x20object');export const AmountSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('GuardU64Identifier'),'value':GuardIdentifierSchema})['describe']('Guard\x20verified\x20amount.\x20Get\x20amount\x20value\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20value\x20type\x20must\x20be\x20u64.'),z['object']({'type':z['literal']('Fixed'),'value':BalanceTypeSchema})['describe']('Fixed\x20amount')])['describe']('Amount');export const RewardGuardSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.'),'recipient':RecipientSchema,'amount':AmountSchema['describe']('Reward\x20amount'),'expiration_time':z['number']()['optional']()['describe']('Reward\x20Guard\x20expiration\x20time.\x20If\x20set,\x20the\x20reward\x20cannot\x20be\x20claimed\x20by\x20this\x20guard\x20after\x20the\x20expiration\x20time.\x20If\x20not\x20specified,\x20Reward\x20Guard\x20is\x20permanently\x20valid.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Reward\x20Guard\x20type');export const ObjectRewardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Reward\x20object\x20description'),'guards':z['array'](RewardGuardSchema)['describe']('Reward\x20claim\x20Guards\x20(reward.move\x20guards:\x20vector<RewardGuard>).\x20Count\x20=\x20number\x20of\x20claim\x20paths:\x20each\x20Guard\x20defines\x20who\x20may\x20claim\x20and\x20how\x20much,\x20and\x20a\x20claim\x20pays\x20out\x20when\x20one\x20of\x20the\x20Guards\x20verifies\x20successfully.'),'balance':BalanceTypeSchema['describe']('Current\x20claimable\x20funds\x20left\x20in\x20the\x20Reward\x20pool\x20(reward.move\x20balance:\x20Balance<T>)\x20—\x20every\x20payout\x20is\x20denominated\x20in\x20the\x20Reward\x27s\x20token\x20T.\x20Also\x20names\x20the\x20title\x20amount\x20badge\x20on\x20Reward\x20cards\x20(\x27N\x20SYMBOL\x27).'),'guard_not_added_expiration_time':z['union']([z['string'](),z['number'](),z['null']()])['describe']('Used\x20to\x20lock\x20whether\x20new\x20Reward\x20Guards\x20can\x20be\x20added.\x20If\x20not\x20specified,\x20new\x20Reward\x20Guards\x20can\x20be\x20added\x20at\x20any\x20time;\x20if\x20expiration\x20time\x20is\x20specified,\x20new\x20Reward\x20Guards\x20cannot\x20be\x20added\x20before\x20expiration.'),'record_count':z['number']()['describe']('Number\x20of\x20unique\x20addresses\x20that\x20have\x20claimed\x20from\x20this\x20Reward\x20(reward.move\x20record:\x20ParentTable<address,\x20RecipientRecord>\x20—\x20one\x20entry\x20per\x20claimer).\x20Displayed\x20as\x20the\x20\x27Claimed\x20by\x27\x20count.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Reward\x20object');export const AllocationModeSchema=z['union']([z['enum'](['Amount','Rate','Surplus']),z['number']()['int']()['min'](0x0)['max'](0x2)['transform'](a=>a===0x0?'Amount':a===0x1?'Rate':a===0x2?'Surplus':'Amount')])['describe']('Allocation\x20mode\x20—\x20determines\x20how\x20the\x20`sharing`\x20field\x20is\x20interpreted.\x20'+'Three\x20modes\x20can\x20be\x20used\x20individually\x20OR\x20combined\x20within\x20a\x20single\x20Allocator;\x20'+'when\x20combined,\x20allocation\x20order\x20is\x20strictly:\x20Amount\x20first,\x20then\x20Rate,\x20then\x20Surplus.\x20'+'Understanding\x20these\x20modes\x20allows\x20modeling\x20almost\x20any\x20fund\x20distribution\x20pattern.\x0a'+'•\x20Amount\x20(0):\x20`sharing`\x20is\x20a\x20FIXED\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20=\x200.75\x20WOW).\x20'+'Allocated\x20FIRST;\x20sum\x20of\x20all\x20Amount\x20items\x20is\x20cached\x20as\x20`fix`\x20by\x20the\x20contract.\x20'+'Validation:\x20when\x20no\x20Rate\x20and\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20allocators.threshold\x20(EAMOUNT_BELOW_THRESHOLD=12);\x20'+'when\x20`max`\x20is\x20set,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13).\x0a'+'•\x20Rate\x20(1):\x20`sharing`\x20is\x20a\x20basis-points\x20rate\x20(10000\x20=\x20100%).\x20'+'Allocated\x20AFTER\x20Amount;\x20formula:\x20allocated\x20=\x20(sharing\x20×\x20total_rates)\x20/\x2010000,\x20'+'where\x20total_rates\x20=\x20balance\x20-\x20fix\x20(or\x20max\x20-\x20fix\x20if\x20`max`\x20is\x20set).\x20'+'Validation:\x20when\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20EXACTLY\x2010000\x20(ERATE_NOT_10000=4);\x20'+'when\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20<=\x2010000\x20(ERATE_EXCEEDS_10000=6).\x0a'+'•\x20Surplus\x20(2):\x20`sharing`\x20is\x20IGNORED\x20(contract\x20forces\x20it\x20to\x200).\x20'+'Allocated\x20LAST;\x20receives\x20the\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x20'+'Validation:\x20MAX\x20ONE\x20Surplus\x20item\x20per\x20Allocator\x20(EMULTIPLE_SURPLUS=5).\x20'+'When\x20Surplus\x20exists,\x20Rate\x20sum\x20constraint\x20relaxes\x20from\x20==\x2010000\x20to\x20<=\x2010000.\x0a'+'ALLOCATION\x20ORDER\x20(strict):\x20Amount\x20items\x20(fixed,\x20cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance-fix)\x20→\x20Surplus\x20item\x20(remaining).\x0a'+'RECOMMENDATION:\x20Use\x20Amount\x20mode\x20for\x20known\x20fixed\x20amounts\x20(clearer,\x20no\x20sum\x20constraint).\x20'+'Use\x20Rate\x20mode\x20for\x20proportional\x20splits\x20(requires\x20sum\x20==\x2010000\x20unless\x20Surplus\x20present).\x20'+'Use\x20Surplus\x20to\x20capture\x20remainder\x20(e.g.,\x20platform\x20fee\x20+\x20host\x20gets\x20rest).\x20'+'Accepts\x20string\x20(\x27Amount\x27/\x27Rate\x27/\x27Surplus\x27,\x20recommended)\x20or\x20number\x20(0/1/2).');export const AllocationSharingSchema=z['object']({'who':RecipientSchema['describe']('Recipient\x20of\x20this\x20allocation.\x20Three\x20forms\x20—\x20each\x20resolves\x20the\x20address\x20at\x20a\x20DIFFERENT\x20time:\x0a'+'•\x20{\x20GuardIdentifier:\x20u8\x20}\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x20(contract\x20calls\x20passport::submission_get).\x20'+'Use\x200\x20for\x20Order\x20owner\x20in\x20Service-integrated\x20mode\x20(Customer\x20who\x20created\x20the\x20Order).\x20'+'The\x20identifier\x20must\x20match\x20a\x20Guard\x20table\x20entry\x20with\x20b_submission=true.\x20'+'If\x20Passport\x20has\x20no\x20matching\x20submission,\x20contract\x20aborts\x20with\x20E_VERIFY_FAILED.\x20'+'Use\x20when\x20the\x20recipient\x20address\x20is\x20not\x20known\x20at\x20config\x20time\x20and\x20must\x20be\x20supplied\x20via\x20Guard\x20submission\x20data.\x0a'+'•\x20{\x20Entity:\x20{\x20name_or_address:\x20\x27...\x27\x20}\x20}\x20—\x20FIXED\x20address\x20resolved\x20via\x20LocalMark\x20at\x20SDK\x20build\x20time\x20(passed\x20to\x20contract\x20as\x20a\x20literal\x20address).\x20'+'Use\x20for\x20known\x20recipients\x20(e.g.,\x20\x27turo_host\x27,\x20or\x20a\x20Treasury\x20object\x20address).\x20'+'Use\x20when\x20the\x20recipient\x20is\x20a\x20stable,\x20known\x20address\x20(e.g.,\x20operator\x20receives\x20rent,\x20platform\x20fee\x20to\x20treasury).\x0a'+'•\x20\x27Signer\x27\x20—\x20the\x20transaction\x20sender\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call\x20(tx_context::sender).\x20'+'RESOLVED\x20AT\x20EXECUTION\x20TIME,\x20not\x20at\x20config\x20time.\x20'+'For\x20refunds:\x20the\x20customer\x20(Order\x20owner)\x20must\x20call\x20alloc_by_guard\x20THEMSELVES\x20so\x20that\x20tx_context::sender\x20resolves\x20to\x20THEIR\x20address\x20—\x20'+'if\x20the\x20operator\x20calls\x20alloc_by_guard,\x20the\x20operator\x20becomes\x20the\x20recipient\x20(Signer\x20=\x20operator),\x20NOT\x20the\x20customer.\x20'+'Use\x20when\x20the\x20recipient\x20is\x20whoever\x20submits\x20the\x20allocation\x20transaction\x20(e.g.,\x20customer\x20receives\x20refund).'),'sharing':BalanceTypeSchema['describe']('Allocation\x20value.\x20SEMANTICS\x20DEPEND\x20ON\x20`mode`:\x0a'+'•\x20mode=\x27Amount\x27:\x20absolute\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20for\x200.75\x20WOW,\x20\x27250000000\x27\x20for\x200.25\x20WOW).\x20'+'Allocated\x20first;\x20sum\x20of\x20Amount\x20items\x20cached\x20as\x20`fix`.\x0a'+'•\x20mode=\x27Rate\x27:\x20basis-points\x20rate,\x2010000\x20=\x20100%\x20(e.g.,\x20\x277500\x27\x20for\x2075%,\x20\x272500\x27\x20for\x2025%).\x20'+'When\x20no\x20Surplus\x20in\x20same\x20Allocator,\x20sum\x20MUST\x20==\x2010000;\x20when\x20Surplus\x20present,\x20sum\x20MUST\x20<=\x2010000.\x0a'+'•\x20mode=\x27Surplus\x27:\x20IGNORED\x20(contract\x20forces\x20to\x200).\x20Set\x20to\x20\x270\x27\x20for\x20clarity.\x20'+'Receives\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-2):\x20the\x20value\x20is\x20PRE-CONFIGURED\x20and\x20STATIC.\x20A\x20continuous/conditional\x20amount\x20'+'(e.g.\x20\x27pay\x20exactly\x20the\x20assessed\x20loss\x20amount\x27)\x20CANNOT\x20be\x20expressed\x20—\x20there\x20is\x20no\x20runtime\x20formula\x20field.\x20'+'Model\x20variable\x20payouts\x20as\x20(a)\x20a\x20fixed-tier\x20Allocator\x20list\x20guarded\x20by\x20distinct\x20Guards,\x20or\x20(b)\x20an\x20Amount\x20'+'with\x20a\x20`max`\x20cap\x20—\x20both\x20are\x20finite\x20configurations,\x20not\x20free-form\x20formulas.'),'mode':AllocationModeSchema})['describe']('Fund\x20allocation\x20item\x20—\x20one\x20recipient\x27s\x20share\x20of\x20the\x20Allocation\x20balance.\x20'+'The\x20`sharing`\x20value\x27s\x20meaning\x20depends\x20on\x20`mode`\x20(see\x20AllocationModeSchema).\x20'+'Multiple\x20items\x20in\x20the\x20same\x20Allocator\x20are\x20evaluated\x20together:\x20Amount\x20items\x20first,\x20Rate\x20items\x20second,\x20Surplus\x20last.');export const AllocatorSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.\x20If\x20Guard\x20verification\x20passes\x20(via\x20Passport),\x20fund\x20allocation\x20for\x20THIS\x20Allocator\x20fires.\x20'+'Each\x20Allocator\x20in\x20an\x20Allocators\x20list\x20can\x20have\x20a\x20different\x20Guard\x20—\x20the\x20first\x20Allocator\x20whose\x20Guard\x20returns\x20true\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x20refund\x20Guard\x20on\x20\x27return_approved\x27\x20node\x20vs\x20damage\x20Guard\x20on\x20\x27damage_confirmed\x27\x20node).'),'sharing':z['array'](AllocationSharingSchema)['describe']('Fund\x20allocation\x20item\x20list.\x20Each\x20item\x20specifies\x20a\x20recipient\x20(who),\x20a\x20value\x20(sharing),\x20and\x20a\x20mode.\x20'+'Items\x20can\x20mix\x20modes\x20(Amount\x20+\x20Rate\x20+\x20Surplus)\x20within\x20the\x20same\x20Allocator.\x20'+'RECIPIENT\x20SEMANTICS:\x20the\x20Guard\x20constrains\x20what\x20each\x20submission\x20slot\x20may\x20be;\x20a\x20recipient\x27s\x20safety\x20follows\x20from\x20the\x20sufficiency\x20of\x20those\x20constraints\x20'+'(run\x20the\x20recipient\x20constraint\x20audit).\x20Canonical\x20order\x20pattern:\x20recipient\x20=\x20the\x20single\x20submitted\x20Order\x20—\x20funds\x20land\x20at\x20that\x20object\x20and\x20are\x20receivable\x20only\x20by\x20its\x20owner.\x20'+'ALLOCATION\x20ORDER:\x20Amount\x20items\x20first\x20(cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance\x20-\x20fix)\x20→\x20Surplus\x20item\x20(remaining).\x20'+'CONSTRAINTS:\x20max\x20ONE\x20Surplus\x20item\x20per\x20Allocator;\x20Rate\x20sum\x20must\x20==\x2010000\x20(no\x20Surplus)\x20or\x20<=\x2010000\x20(with\x20Surplus);\x20'+'Amount\x20sum\x20must\x20>=\x20threshold\x20(no\x20Rate\x20and\x20no\x20Surplus)\x20and\x20<=\x20max\x20(if\x20max\x20set).'),'fix':BalanceTypeSchema['optional']()['describe']('OUTPUT-ONLY\x20(query\x20result).\x20Cached\x20sum\x20of\x20all\x20Amount-mode\x20`sharing`\x20values\x20in\x20this\x20Allocator.\x20'+'Computed\x20by\x20the\x20contract\x20during\x20`allocator_add`\x20—\x20DO\x20NOT\x20set\x20this\x20field\x20at\x20creation.\x20'+'Used\x20internally\x20to\x20compute\x20`total_rates\x20=\x20balance\x20-\x20fix`\x20for\x20Rate\x20allocation.'),'max':z['union']([BalanceTypeSchema,z['null']()])['optional']()['describe']('Maximum\x20allocation\x20cap\x20(OPTIONAL\x20—\x20omit\x20the\x20field\x20or\x20set\x20to\x20null\x20to\x20disable\x20the\x20cap;\x20do\x20NOT\x20set\x20to\x200\x20as\x20that\x20means\x20a\x20cap\x20of\x20zero).\x20'+'Passed\x20through\x20to\x20the\x20contract\x20as\x20Option<u64>\x20via\x20allocator_add():\x20when\x20null/omitted\x20the\x20contract\x20treats\x20it\x20as\x20`none`\x20(no\x20cap);\x20'+'when\x20set,\x20the\x20contract\x20enforces\x20it.\x20Has\x20THREE\x20effects\x20when\x20set:\x0a'+'1.\x20Construction:\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13)\x0a'+'2.\x20Rate\x20execution:\x20total_rates\x20=\x20max\x20-\x20fix\x20(instead\x20of\x20balance\x20-\x20fix)\x0a'+'3.\x20Surplus\x20execution:\x20surplus_amount\x20=\x20max\x20-\x20alloced_amount\x20(instead\x20of\x20balance\x20-\x20alloced_amount)\x0a'+'Use\x20when\x20you\x20want\x20to\x20cap\x20total\x20allocation\x20regardless\x20of\x20Order\x20balance\x20(e.g.,\x20cap\x20payout\x20to\x20declared\x20amount).\x20'+'SDK\x20pre-validates\x20Amount\x20sum\x20<=\x20max\x20at\x20build\x20time\x20to\x20give\x20actionable\x20error\x20messages\x20before\x20on-chain\x20abort.')})['describe']('Fund\x20allocator\x20—\x20a\x20complete\x20allocation\x20strategy\x20triggered\x20by\x20a\x20Guard.\x20'+'Contains\x20a\x20sharing[]\x20array\x20where\x20items\x20can\x20mix\x20Amount/Rate/Surplus\x20modes.\x20'+'When\x20the\x20Guard\x20passes,\x20the\x20contract\x20allocates\x20funds\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.');export const AllocatorsSchema=z['object']({'description':DescriptionSchema['describe']('Description\x20of\x20fund\x20allocator\x20list'),'threshold':BalanceTypeSchema['default'](0x0)['describe']('Minimum\x20balance\x20required\x20for\x20allocation\x20to\x20fire.\x20'+'When\x20the\x20Allocation\x20object\x27s\x20balance\x20<\x20threshold,\x20allocation\x20aborts\x20with\x20EINSUFFICIENT_BALANCE=7.\x20'+'Also:\x20when\x20an\x20Allocator\x20has\x20only\x20Amount\x20items\x20(no\x20Rate,\x20no\x20Surplus),\x20the\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20threshold\x20(EAMOUNT_BELOW_THRESHOLD=12).\x20'+'Set\x20to\x200\x20(default)\x20to\x20allow\x20any\x20balance.'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocator\x20list.\x20Each\x20allocator\x20is\x20evaluated\x20in\x20order;\x20the\x20FIRST\x20allocator\x20whose\x20Guard\x20passes\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x203\x20allocators\x20for\x203\x20forward\x20paths:\x20refund\x20/\x20damage-deduct\x20/\x20arbitrate).')})['describe']('Fund\x20allocator\x20list\x20—\x20the\x20top-level\x20allocation\x20configuration\x20attached\x20to\x20an\x20Order.\x20'+'Contains\x20a\x20threshold\x20and\x20a\x20list\x20of\x20Allocators.\x20When\x20funds\x20arrive\x20at\x20the\x20Order,\x20'+'the\x20first\x20Allocator\x20whose\x20Guard\x20passes\x20executes\x20its\x20sharing[]\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.\x20'+'MULTI-TIER\x20ALLOCATION\x20(DOC-04):\x20Each\x20Order\x20binds\x20ONE\x20Allocators\x20template\x20(set\x20on\x20Service.order_allocators\x20before\x20publish).\x20'+'For\x20multi-tier\x20distribution\x20(e.g.,\x20customer→agency→suppliers),\x20use\x20a\x20two-phase\x20approach:\x20'+'(1)\x20Tier-1\x20Allocators\x20on\x20the\x20customer\x27s\x20Order\x20(allocates\x20to\x20agency\x20+\x20refund\x20fund);\x20'+'(2)\x20Tier-2\x20Allocators\x20on\x20a\x20NEW\x20Order\x20created\x20by\x20the\x20agency\x20(allocates\x20agency\x27s\x20received\x20funds\x20to\x20suppliers).\x20'+'Each\x20tier\x27s\x20Rate-mode\x20sharing[]\x20must\x20independently\x20sum\x20to\x2010000\x20(or\x20<=\x2010000\x20with\x20Surplus).');export const ObjectServiceSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Service\x20object\x20description'),'location':z['string']()['describe']('The\x20service\x20area\x20and\x20scope\x20as\x20stated\x20by\x20the\x20merchant.'),'sales':z['array'](ServiceSaleSchema)['describe']('Service\x20sale\x20list.'),'repositories':z['array'](z['string']())['describe']('Repository\x20object\x20list\x20for\x20service\x20object\x27s\x20shared\x20data'),'buy_guard':z['union']([z['string'](),z['null']()])['describe']('Purchase\x20Guard\x20object\x20ID.\x20If\x20defined,\x20service\x20can\x20only\x20be\x20purchased\x20if\x20Guard\x20verification\x20passes.'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20object\x20ID\x20for\x20each\x20order\x27s\x20processing\x20flow.\x20The\x20Machine\x20must\x20be\x20in\x20published\x20state.'),'bPublished':z['boolean']()['describe']('Whether\x20service\x20is\x20published.\x20If\x20service\x20is\x20published,\x20customers\x20can\x20purchase\x20it;\x20and\x20related\x20settings\x20like\x20Machine,\x20arbitrations,\x20order_allocators\x20will\x20be\x20immutable.'),'bPaused':z['boolean']()['describe']('Whether\x20service\x20purchase\x20is\x20paused.\x20SPECIAL\x20CASE:\x20publish\x20auto-sets\x20bPaused=false\x20—\x20no\x20separate\x20unpause\x20call\x20needed\x20after\x20publish.'),'customer_required':z['array'](z['string']())['describe']('Information\x20required\x20from\x20customer.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'arbitrations':z['array'](z['string']())['describe']('List\x20of\x20Arbitration\x20objects\x20supported\x20by\x20service.\x20When\x20order\x20user\x20needs\x20arbitration,\x20they\x20can\x20apply\x20for\x20arbitration\x20with\x20any\x20Arbitration\x20object\x20in\x20the\x20list.'),'compensation_fund':BalanceTypeSchema['describe']('Compensation\x20fund\x20BALANCE\x20(NOT\x20a\x20Treasury\x20address).\x20'+'This\x20field\x20reports\x20the\x20total\x20amount\x20of\x20funds\x20currently\x20held\x20in\x20the\x20Service\x27s\x20compensation\x20pool.\x20'+'To\x20ADD\x20funds,\x20use\x20`service.compensation_fund_add`.\x20To\x20RECEIVE\x20funds\x20(as\x20order\x20owner\x20after\x20arbitration),\x20use\x20`service.compensation_fund_receive`.\x20'+'P2-03\x20clarification:\x20this\x20is\x20a\x20balance\x20value\x20(e.g.\x20{balance:\x20\x271000000000\x27,\x20token_type:\x20\x270x2::wow::WOW\x27}),\x20NOT\x20the\x20Treasury\x20object\x20address.\x20'+'The\x20Treasury\x20address\x20(if\x20bound)\x20is\x20queried\x20separately\x20via\x20the\x20Service\x27s\x20`repositories`\x20or\x20`order_allocators`\x20configuration.'),'paused_time':z['union']([z['number'](),z['null']()])['describe']('Service\x20purchase\x20pause\x20time.\x20If\x20not\x20paused,\x20it\x20is\x20null.'),'setting_lock_duration':z['union']([z['string'](),z['number'](),z['bigint']()])['describe']('Lock\x20duration\x20for\x20critical\x20operations.\x20Anchored\x20to\x20the\x20\x27paused_time\x27\x20timestamp.\x20'+'After\x20Service\x20is\x20published,\x20only\x20the\x20following\x20operations\x20are\x20gated\x20by\x20this\x20lock:\x20'+'(1)\x20compensation_fund_withdraw,\x20(2)\x20rewards\x20remove/clear,\x20(3)\x20arbitrations\x20remove/clear.\x20'+'All\x20require\x20the\x20Service\x20to\x20be\x20paused\x20AND\x20paused_time\x20+\x20setting_lock_duration\x20<=\x20current\x20clock.\x20'+'Adding\x20rewards/arbitrations,\x20modifying\x20sales/description/location/buy_guard/customer_required/um,\x20'+'and\x20depositing\x20to\x20compensation_fund\x20are\x20NOT\x20gated\x20by\x20this\x20lock.\x20'+'order_allocators\x20and\x20machine\x20are\x20permanently\x20immutable\x20after\x20publish\x20(not\x20related\x20to\x20this\x20lock).'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['describe']('Order\x20fund\x20allocator\x20list.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Service\x20object');export const ArbVotedSchema=z['object']({'voter':z['string']()['describe']('Voter\x20ID'),'agrees':z['array'](z['number']()['min'](0x0)['max'](0xff))['describe']('List\x20of\x20supported\x20Proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight'),'time':z['number']()['describe']('Voting\x20time')})['describe']('Voting\x20record');export const ArbPropositionSchema=z['object']({'name':z['string']()['describe']('Proposal\x20name'),'votes':z['number']()['describe']('Number\x20of\x20votes\x20supporting\x20this\x20proposal')})['describe']('Proposal');export const ArbIndemnitySchema=z['object']({'amount':BalanceTypeSchema['describe']('Compensation\x20amount'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arbitration\x20compensation');export const ArbStatusSchema=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn'])['describe']('Arb\x20object\x20status');export const ObjectArbSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arb\x20object\x20statement'),'arbitration':z['string']()['describe']('Parent\x20arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'voted':z['array'](ArbVotedSchema)['describe']('Voting\x20record\x20list'),'proposition':z['array'](ArbPropositionSchema)['describe']('Claim/proposal\x20list'),'fee':BalanceTypeSchema['describe']('Arbitration\x20fee'),'feedback':z['string']()['describe']('Arbitration\x20feedback'),'indemnity':z['union']([ArbIndemnitySchema,z['null']()])['optional']()['describe']('Arbitration\x20compensation'),'voting_deadline':z['union']([z['number'](),z['string']()])['optional']()['describe']('Voting\x20deadline'),'objection':z['string']()['describe']('Arbitration\x20objection'),'status':ArbStatusSchema,'compensation_time':z['union']([z['number'](),z['null']()])['describe']('Compensation\x20claim\x20time'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arb\x20object');export const DiscountTypeSchema=z['union']([z['number']()['int']()['min'](0x0)['max'](0x1),z['enum'](['RATES','FIXED'])['transform'](a=>a==='RATES'?0x0:0x1)])['describe']('Discount\x20type\x20—\x200=RATES\x20(proportional\x20off,\x20per-10000:\x20e.g.\x201000\x20means\x2010%\x20off),\x201=FIXED\x20(fixed\x20deduction\x20of\x20the\x20product\x20amount,\x20base\x20units:\x20e.g.\x20100\x20means\x20100\x20deducted).\x20Accepts\x20the\x20number\x20(0/1)\x20or\x20the\x20string\x20(\x27RATES\x27/\x27FIXED\x27);\x20the\x20value\x20is\x20always\x20stored\x20as\x20the\x20number\x20on-chain.');export const ObjectDiscountSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type.\x20If\x20rate(0),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).'),'benchmark':z['union']([BalanceTypeSchema,z['null']()])['describe']('Discount\x20benchmark\x20amount.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20this\x20amount;\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20this\x20amount.'),'off':BalanceTypeSchema['describe']('Discount\x20value.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20maximum\x20100\x20yuan\x20discount).'),'time_start':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20start\x20time'),'time_end':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20end\x20time'),'service':z['string']()['describe']('Parent\x20service\x20object\x20ID'),'transferable':z['boolean']()['describe']('Whether\x20discount\x20is\x20transferable\x20to\x20other\x20users')})['describe']('Discount\x20object');export const AmountFromDepositGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20storable\x20amount.\x20If\x20null,\x20deposit\x20amount\x20is\x20unlimited.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20deposit');export const AmountFromWithdrawGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['number']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20withdrawable\x20amount.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20withdrawal');export const ObjectTreasurySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Treasury\x20object\x20description'),'balance':BalanceTypeSchema['describe']('Current\x20funds\x20held\x20in\x20the\x20Treasury\x20pool\x20(treasury.move\x20balance:\x20Balance<T>),\x20denominated\x20in\x20the\x20Treasury\x27s\x20token\x20T.'),'history_count':z['number']()['describe']('Number\x20of\x20transaction\x20records\x20in\x20the\x20Treasury\x27s\x20history\x20(treasury.move\x20history:\x20ParentTable<address,\x20Record>\x20—\x20one\x20entry\x20per\x20payment).\x20Displayed\x20as\x20the\x20\x27Transactions\x27\x20count.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20list\x20individual\x20TreasuryRecord\x20items.'),'external_deposit_guard':z['array'](AmountFromDepositGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20deposit'),'external_withdraw_guard':z['array'](AmountFromWithdrawGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20withdrawal'),'inflow':BalanceTypeSchema['describe']('Total\x20funds\x20received\x20by\x20this\x20Treasury\x20across\x20its\x20lifetime,\x20denominated\x20in\x20the\x20Treasury\x27s\x20token\x20(sum\x20of\x20every\x20deposit).'),'outflow':BalanceTypeSchema['describe']('Total\x20funds\x20paid\x20out\x20by\x20this\x20Treasury\x20across\x20its\x20lifetime,\x20denominated\x20in\x20the\x20Treasury\x27s\x20token\x20(sum\x20of\x20every\x20withdrawal).'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Treasury\x20object');export const TreasuryOpSchema=z['enum'](['Withdraw','Deposit','Receive'])['describe']('Treasury\x20object\x20operation\x20type');export const TreasuryRecordSchema=z['object']({'op':TreasuryOpSchema['describe']('Treasury\x20object\x20operation\x20type'),'signer':z['string']()['describe']('Operator\x20user\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('External\x20Guard\x20object\x20ID.\x20If\x20null,\x20operation\x20was\x20completed\x20through\x20Permission\x20object\x20permissions.'),'amount':BalanceTypeSchema['describe']('Operation\x20amount'),'time':z['union']([z['number'](),z['string']()])['describe']('Operation\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Treasury\x20object\x20transaction\x20record');export const PolicyWriteGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'id_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20(or\x20address)\x20is\x20the\x20ID\x20of\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20ID\x20separately.'),'data_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20data\x20separately.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20when\x20writing\x20policy');export const IdFromSchema=z['union']([z['literal'](0x0)['describe']('None\x20(0)'),z['literal'](0x1)['describe']('Clock\x20(1)'),z['literal'](0x2)['describe']('Signer\x20(2)'),z['literal']('None')['describe']('None'),z['literal']('Clock')['describe']('Clock'),z['literal']('Signer')['describe']('Signer'),z['literal']('none')['describe']('none'),z['literal']('clock')['describe']('clock'),z['literal']('signer')['describe']('signer')])['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20Can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27Clock\x27,\x20\x27clock\x27,\x20\x27Signer\x27,\x20\x27signer\x27)\x20or\x20a\x20number\x20(0-2).\x20Supported\x20values:\x20None=0/\x27None\x27/\x27none\x27,\x20Clock=1/\x27Clock\x27/\x27clock\x27,\x20Signer=2/\x27Signer\x27/\x27signer\x27.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.');export const PolicyRuleSchema=z['object']({'name':z['string']()['describe']('Policy\x20rule\x20name'),'description':z['string']()['describe']('Policy\x20rule\x20description'),'write_guard':z['array'](PolicyWriteGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20when\x20writing\x20data.\x20REQUIRED\x20(non-empty)\x20when\x20id_from\x20is\x200/None\x20(chain\x20abort\x2022);\x20optional\x20when\x20id_from\x20is\x20Clock/Signer.'),'quote_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20referencing\x20this\x20policy\x20data\x20on-chain\x20(e.g.,\x20verifying\x20if\x20user\x20has\x20paid\x20subscription).\x20If\x20null,\x20no\x20verification\x20is\x20needed\x20for\x20on-chain\x20references.\x20The\x20Guard\x20must\x20have\x20empty\x20\x27relies\x27\x20field\x20and\x20\x27rep\x27\x20field\x20true.'),'id_from':IdFromSchema['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.'),'value_type':ValueTypeUserSchema['describe']('Type\x20of\x20data\x20value\x20when\x20writing\x20data.\x20Note:\x2019\x20(Value)\x20is\x20an\x20internal\x20dynamic\x20type\x20for\x20guard\x20expressions\x20and\x20is\x20NOT\x20accepted\x20here.')})['superRefine']((a,b)=>{const c=a['id_from']===0x0||a['id_from']==='None'||a['id_from']==='none';c?(!Array['isArray'](a['write_guard'])||a['write_guard']['length']===0x0)&&b['addIssue']({'code':z['ZodIssueCode']['custom'],'path':['write_guard'],'message':'write_guard\x20must\x20be\x20a\x20non-empty\x20array\x20when\x20id_from\x20is\x20None(0):\x20without\x20a\x20write\x20guard\x20anyone\x20could\x20mutate\x20the\x20data,\x20and\x20repository.move\x20aborts\x20with\x2022\x20(E_POLICY_WRITE_GUARD_REQUIRED).'}):a['write_guard']['forEach']((d,e)=>{d['id_from_submission']!==undefined&&d['id_from_submission']!==null&&b['addIssue']({'code':z['ZodIssueCode']['custom'],'path':['write_guard',e,'id_from_submission'],'message':'id_from_submission\x20is\x20forbidden\x20when\x20id_from\x20is\x20Clock/Signer:\x20the\x20data\x20ID\x20is\x20auto-generated\x20from\x20the\x20clock/signer,\x20so\x20a\x20submission-derived\x20ID\x20conflicts\x20(repository.move\x20aborts\x20with\x2023\x20E_POLICY_ID_FROM_SUBMISSION_FORBIDDEN).'});});});export const TableItem_RepositoryDataSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Object\x20or\x20user\x20ID'),'name':z['string']()['describe']('Data\x20item\x20name\x20(Policy\x20Name)'),'value':z['array'](z['number']())['describe']('Raw\x20data\x20value\x20(first\x20byte\x20is\x20value\x20type,\x20remaining\x20bytes\x20are\x20Bcs\x20formatted\x20value)'),'data':z['object']({'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value.'),'value':SupportedValueSchema['describe']('Data\x20value.')})})['describe']('Storage\x20data\x20item\x20owned\x20by\x20Repository\x20object');export const TableItem_RewardRecordSchema=ObjectBaseSchema['extend']({'recipient':z['string']()['describe']('Reward\x20recipient\x20ID'),'guard':z['string']()['nullable']()['optional']()['describe']('Guard\x20object\x20ID\x20(RecipientRecord\x20carries\x20none\x20—\x20the\x20per-claim\x20Record.guard\x20is\x20the\x20verified\x20guard)'),'total':BalanceTypeSchema['describe']('Total\x20reward\x20amount'),'record':z['array'](z['object']({'guard':tolerantStringNullable['describe']('Guard\x20that\x20verified\x20this\x20claim\x20(reward.move\x20Record.guard)'),'amount':BalanceTypeSchema['describe']('Reward\x20amount'),'time':tolerantNumber['describe']('Reward\x20time'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')}))['describe']('Reward\x20record\x20list')})['describe']('Reward\x20object\x27s\x20reward\x20record');export const ObjectRepositorySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Repository\x20object\x20description'),'policies':z['array'](PolicyRuleSchema)['describe']('Repository\x20object\x20policy\x20rule\x20list'),'data_count':z['number']()['describe']('Number\x20of\x20data\x20items\x20stored\x20in\x20Repository\x20object.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RepositoryData\x27\x20table\x20items.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Repository\x20object');export const ImSchema=z['object']({'at':z['string']()['describe']('Contact\x27s\x20account\x20address\x20for\x20instant\x20messaging'),'status':z['string']()['describe']('Contact\x27s\x20current\x20status\x20message'),'join_time':z['number']()['describe']('Timestamp\x20when\x20contact\x20joined\x20(milliseconds\x20since\x20epoch)'),'description':z['string']()['describe']('Description\x20or\x20note\x20about\x20this\x20contact')})['describe']('Instant\x20Messaging\x20contact\x20entry\x20with\x20address,\x20status,\x20and\x20metadata');export const ObjectContactSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Contact\x20object\x20description\x20or\x20public\x20information'),'permission':z['string']()['describe']('Permission\x20object\x20ID\x20that\x20controls\x20who\x20can\x20modify\x20this\x20contact'),'location':z['string']()['describe']('Physical\x20contact\x20address\x20(NOT\x20a\x20service\x20area)'),'ims':z['array'](ImSchema)['describe']('List\x20of\x20instant\x20messaging\x20contacts.\x20Each\x20entry\x20contains\x20an\x20address\x20for\x20encrypted\x20real-time\x20communication\x20via\x20Wowok\x20Messenger')})['describe']('Contact\x20object\x20storing\x20on-chain\x20instant\x20messaging\x20addresses\x20for\x20real-time\x20encrypted\x20communication\x20between\x20object\x20managers\x20and\x20users');export const ObjectPersonalSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x27s\x20address'),'like':z['number']()['describe']('User\x27s\x20received\x20like\x20count'),'dislike':z['number']()['describe']('User\x27s\x20received\x20dislike\x20count'),'favor':z['number']()['describe']('User\x27s\x20received\x20favor\x20count'),'info':z['array'](RecordsInEntitySchema)['describe']('User\x27s\x20personal\x20information\x20record\x20list'),'description':z['string']()['describe']('User\x27s\x20personal\x20description'),'referrer':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20referrer\x20ID'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('On-chain\x20address\x20mark\x20object\x20ID'),'details':z['array'](VoteInEntityLinkerSchema)['describe']('User\x27s\x20voting\x20record\x20list\x20in\x20EntityLinker'),'active_tx':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20recent\x20active\x20transaction\x20ID'),'passive_tx':z['union']([z['string'](),z['null']()])['describe']('Recent\x20transaction\x20ID\x20interacting\x20with\x20user'),'time':z['number']()['describe']('User\x20object\x20creation\x20time')})['describe']('Personal\x20object');export const ObjectProofSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Proof\x20description'),'proof':z['string']()['describe']('Proof\x20content.\x20e.g.,\x20merkle\x20tree\x20root'),'server_pubkey':z['string']()['describe']('Server\x20public\x20key'),'server_signature':z['string']()['describe']('Server\x20signature'),'proof_type':z['union']([z['number'](),z['string']()])['describe']('Proof\x20type.\x201:\x20WTS\x20proof;\x201-100\x20reserved.'),'item_count':z['union']([z['number'](),z['string'](),z['null']()])['describe']('Item\x20count.\x20e.g.,\x20number\x20of\x20items\x20in\x20the\x20merkle\x20tree'),'about_address':z['union']([z['string'](),z['null']()])['describe']('About\x20address.\x20e.g.,\x20address\x20of\x20the\x20entity\x20being\x20proved'),'signer':z['string']()['describe']('Signer\x20address'),'time':z['number']()['describe']('Proof\x20creation\x20time')})['describe']('Proof\x20object');export const WReceivedObjectSchema=ObjectBaseSchema['extend']({'balance':BalanceTypeSchema['describe']('Amount\x20contained\x20in\x20object'),'payment':z['string']()['describe']('Payment\x20object\x20ID')})['describe']('Amount\x20object\x20received\x20by\x20on-chain\x20object');export const ObjectPermissionSchema=ObjectBaseSchema['extend']({'builder':z['string']()['describe']('Permission\x20object\x20owner\x20ID\x20(highest\x20permission\x20user)'),'admin':z['array'](z['string']())['describe']('Admin\x20user\x20ID\x20list'),'description':z['string']()['describe']('Permission\x20object\x20description'),'entity_count':z['number']()['describe']('Number\x20of\x20user\x20IDs\x20and\x20Guard\x20IDs\x20granted\x20permissions.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27PermissionPerm\x27\x20table\x20items.'),'perm_remark':z['array'](z['object']({'index':PermissionIndexTypeSchema,'remark':z['string']()['describe']('Permission\x20item\x20remark')}))['describe']('Permission\x20item\x20remark\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object')})['describe']('Permission\x20object');export const WitnessTypeSchema=z['union']([z['number']()['int']()['refine'](isWitnessType,{'message':'Invalid\x20WitnessType\x20numeric\x20value.\x20Valid\x20range:\x20100-108.'}),z['string']()['refine'](a=>isValidWitnessType(a),{'message':'Invalid\x20WitnessType\x20string\x20name.\x20Valid\x20names:\x20OrderProgress\x20(100),\x20OrderMachine\x20(101),\x20OrderService\x20(102),\x20ProgressMachine\x20(103),\x20ArbOrder\x20(104),\x20ArbArbitration\x20(105),\x20ArbProgress\x20(106),\x20ArbMachine\x20(107),\x20ArbService\x20(108).\x20Case-insensitive;\x20\x22Type\x22\x20prefix\x20is\x20optional.'})])['describe']('When\x20specified,\x20the\x20query\x20retrieves\x20data\x20from\x20the\x20associated\x20(witness)\x20object\x20instead\x20of\x20the\x20queried\x20object\x20itself.\x20This\x20enables\x20cross-object\x20queries\x20within\x20Guard\x20validation\x20logic.\x20Can\x20be\x20a\x20numeric\x20ID\x20(100-108)\x20or\x20a\x20string\x20name\x20(case-insensitive,\x20with\x20or\x20without\x20the\x20\x27Type\x27\x20prefix).\x20String\x20format\x20is\x20recommended\x20for\x20readability.\x0a\x0aAvailable\x20WitnessTypes:\x0a-\x20OrderProgress\x20/\x20TypeOrderProgress\x20(100):\x20Query\x20an\x20Order\x27s\x20associated\x20Progress\x20object.\x20Use\x20case:\x20Check\x20if\x20order\x20has\x20reached\x20a\x20specific\x20workflow\x20node\x20(e.g.,\x20\x27complete\x27)\x20before\x20allowing\x20reward\x20claims.\x0a-\x20OrderMachine\x20/\x20TypeOrderMachine\x20(101):\x20Query\x20an\x20Order\x27s\x20associated\x20Machine\x20(workflow\x20definition).\x20Use\x20case:\x20Verify\x20the\x20workflow\x20structure\x20or\x20check\x20node\x20configurations.\x0a-\x20OrderService\x20/\x20TypeOrderService\x20(102):\x20Query\x20an\x20Order\x27s\x20parent\x20Service\x20object.\x20Use\x20case:\x20Validate\x20the\x20service\x20offering\x20details\x20or\x20check\x20service-level\x20configurations.\x0a-\x20ProgressMachine\x20/\x20TypeProgressMachine\x20(103):\x20Query\x20a\x20Progress\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20from\x20a\x20Progress\x20context.\x0a-\x20ArbOrder\x20/\x20TypeArbOrder\x20(104):\x20Query\x20an\x20Arb\x27s\x20associated\x20Order.\x20Use\x20case:\x20In\x20arbitration\x20voting\x20guards,\x20verify\x20order\x20details\x20like\x20payment\x20amount\x20or\x20service\x20ID.\x0a-\x20ArbArbitration\x20/\x20TypeArbArbitration\x20(105):\x20Query\x20an\x20Arb\x27s\x20parent\x20Arbitration\x20service.\x20Use\x20case:\x20Access\x20arbitration\x20configuration\x20or\x20fee\x20settings\x20from\x20within\x20an\x20Arb\x20case.\x0a-\x20ArbProgress\x20/\x20TypeArbProgress\x20(106):\x20Query\x20an\x20Arb\x27s\x20associated\x20Progress.\x20Use\x20case:\x20Check\x20order\x20workflow\x20state\x20during\x20arbitration\x20validation.\x0a-\x20ArbMachine\x20/\x20TypeArbMachine\x20(107):\x20Query\x20an\x20Arb\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20for\x20dispute\x20context\x20analysis.\x0a-\x20ArbService\x20/\x20TypeArbService\x20(108):\x20Query\x20an\x20Arb\x27s\x20associated\x20Service.\x20Use\x20case:\x20Verify\x20service\x20terms\x20or\x20compensation\x20fund\x20status\x20during\x20arbitration.\x0a\x0aExample:\x20To\x20validate\x20that\x20an\x20order\x20has\x20reached\x20the\x20\x27complete\x27\x20node,\x20query\x20the\x20Order\x20with\x20convert_witness=\x27OrderProgress\x27\x20and\x20check\x20the\x20Progress\x27s\x20current_node\x20field.');export const GuardQueryIdSchema=z['number']()['int']()['min'](0x0)['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'})['describe']('ID\x20of\x20the\x20data\x20query\x20instruction\x20for\x20the\x20Object.');export const GuardNodeSchema=z['lazy'](()=>z['discriminatedUnion']('type',[z['object']({'type':z['literal']('identifier'),'identifier':GuardIdentifierSchema})['strict']()['describe']('Returns\x20the\x20constant\x20value\x20stored\x20at\x20the\x20specified\x20identifier\x20in\x20the\x20Guard\x20table.'),z['object']({'type':z['literal']('query'),'query':z['union']([z['number']()['int']()['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'}),z['string']()['refine'](a=>isValidGuardQueryIdOrName(a),{'message':'Invalid\x20guard\x20query\x20name.\x20Name\x20not\x20found\x20in\x20GUARDQUERY\x20array\x20(case-insensitive).'})])['describe']('ID\x20or\x20name\x20of\x20the\x20wowok\x20object\x20data\x20query\x20instruction.\x20Can\x20be\x20a\x20numeric\x20ID\x20(e.g.,\x201001)\x20or\x20a\x20name\x20string\x20(e.g.,\x20\x27permission.description\x27).\x20Name\x20matching\x20is\x20case-insensitive.'),'object':z['object']({'identifier':GuardIdentifierSchema,'convert_witness':WitnessTypeSchema['optional']()})['strict']()['describe']('The\x20object\x20to\x20query\x20from\x20the\x20Guard\x20table.'),'parameters':z['array'](GuardNodeSchema)['optional']()['describe']('Parameters\x20required\x20by\x20the\x20query.\x20Optional\x20—\x20defaults\x20to\x20empty\x20array\x20[].\x20Many\x20queries\x20(e.g.\x20progress.current,\x20order.service)\x20take\x20no\x20parameters;\x20for\x20those,\x20this\x20field\x20can\x20be\x20omitted.')})['strict']()['describe']('Returns\x20the\x20result\x20of\x20executing\x20a\x20data\x20query\x20instruction\x20on\x20the\x20specified\x20object.\x20The\x20return\x20type\x20depends\x20on\x20the\x20query\x20being\x20executed.\x20SPECIAL\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Use\x20system\x20addresses\x20in\x20the\x20Guard\x20table\x20-'+ENTITY_LINKER_ADDRESS+'\x20for\x20EntityLinker\x20queries,\x20'+ENTITY_REGISTRAR_ADDRESS+'\x20for\x20EntityRegistrar\x20queries.'),z['object']({'type':z['literal']('logic_as_u256_greater_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_greater'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20equals\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20nodes\x20of\x20any\x20type.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20in\x20both\x20type\x20and\x20value.\x20Returns\x20true\x20if\x20type\x20and\x20value\x20match\x20for\x20all,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_not'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20inverting\x20the\x20boolean\x20value\x20of\x20the\x20child\x20node\x20(true\x20->\x20false,\x20false\x20->\x20true).'),z['object']({'type':z['literal']('logic_and'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_and\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_and.')['max'](MAX_MULTI_OPERANDS,'logic_and\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20AND\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ALL\x20are\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_or'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_or\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_or.')['max'](MAX_MULTI_OPERANDS,'logic_or\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20OR\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ANY\x20is\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('logic_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('logic_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_number_add'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20adding\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20+\x20second\x20+\x20third\x20+\x20...).'),z['object']({'type':z['literal']('calc_number_multiply'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20multiplying\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20*\x20second\x20*\x20third\x20*\x20...).'),z['object']({'type':z['literal']('calc_number_subtract'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20subtracting\x20the\x20second\x20node\x20value\x20from\x20the\x20first\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20(first\x20-\x20second\x20-\x20third\x20-\x20...).'),z['object']({'type':z['literal']('calc_number_divide'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20/\x20second)\x20/\x20third\x20/\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_number_mod'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20taking\x20the\x20remainder\x20of\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20%\x20second)\x20%\x20third\x20%\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_string_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20(number\x20of\x20UTF-8\x20bytes)\x20of\x20the\x20child\x20node\x20value.'),z['object']({'type':z['literal']('calc_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('calc_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('calc_string_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack).\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('calc_string_nocase_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack),\x20ignoring\x20case.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('convert_number_address'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Address.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20Address\x20type.'),z['object']({'type':z['literal']('convert_address_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20Address\x20type\x20to\x20number\x20type.'),z['object']({'type':z['literal']('convert_number_string'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20String.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20string\x20type.'),z['object']({'type':z['literal']('convert_string_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20parsing\x20the\x20child\x20node\x20value\x20as\x20a\x20number.\x20Throws\x20exception\x20if\x20the\x20string\x20is\x20not\x20a\x20valid\x20number.'),z['object']({'type':z['literal']('convert_safe_u8'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U8.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U8\x20range\x20(0-255).'),z['object']({'type':z['literal']('convert_safe_u16'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U16.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U16.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U16\x20range\x20(0-65535).'),z['object']({'type':z['literal']('convert_safe_u32'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U32.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U32.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U32\x20range.'),z['object']({'type':z['literal']('convert_safe_u64'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U64.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U64\x20range.'),z['object']({'type':z['literal']('convert_safe_u128'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U128.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U128.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U128\x20range.'),z['object']({'type':z['literal']('convert_safe_u256'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U256.'),z['object']({'type':z['literal']('value_type'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20getting\x20the\x20type\x20identifier\x20(ValueType)\x20of\x20the\x20child\x20node\x20value.\x20'+VALUE_TYPE_DESCRIPTION),z['object']({'type':z['literal']('vec_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20of\x20the\x20vector\x20in\x20the\x20child\x20node\x20value.\x20Child\x20node\x20must\x20be\x20one\x20of\x20Vec\x20types:\x20VecBool=9,\x20VecAddress=10,\x20VecString=11,\x20VecU8=12,\x20VecU16=13,\x20VecU32=14,\x20VecU64=15,\x20VecU128=16,\x20VecU256=17,\x20VecVecU8=18,\x20Value=19.'),z['object']({'type':z['literal']('vec_contains_bool'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_bool\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_bool\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20boolean\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_address'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_address\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_address\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20address\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_string\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_string\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string_nocase'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_string_nocase\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_string_nocase\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes),\x20using\x20case-insensitive\x20comparison.'),z['object']({'type':z['literal']('vec_contains_number'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_number\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_number\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20number\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_indexof_bool'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_address'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string_nocase'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node),\x20using\x20case-insensitive\x20comparison.\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_number'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('context'),'context':z['enum'](['Signer','Clock','Guard'])['describe']('System\x20context\x20type:\x20Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')})['strict']()['describe']('Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).'),z['object']({'type':z['literal']('query_reward_record_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20record,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20record.'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20reward\x20record\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20Returns\x20the\x20record\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20record\x20is\x20found\x20(Guard\x20validation\x20fails).\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20count\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20reward\x20records\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_exists'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20existence\x20query.')})['strict']()['describe']('Returns\x20Bool.\x20Returns\x20true\x20if\x20at\x20least\x20one\x20reward\x20record\x20exists\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions,\x20otherwise\x20false.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_progress_history_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'where':z['object']({'node':z['string']()['optional']()['describe']('Optional\x20filter:\x20node\x20name\x20string\x20to\x20match.'),'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20history\x20entry,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20history\x20entry.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20history\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20entry\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20search\x20within.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20session,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20session.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20session\x20within\x20the\x20specified\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20session\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20session\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_forward_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'who':z['string']()['optional']()['describe']('Optional\x20filter:\x20operator\x20address\x20string\x20to\x20match.'),'operation':z['string']()['optional']()['describe']('Optional\x20filter:\x20operation\x20name\x20string\x20to\x20match.'),'accomplished':z['boolean']()['optional']()['describe']('Optional\x20filter:\x20whether\x20the\x20forward\x20operation\x20was\x20accomplished.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20forward\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20forward\x20operation,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20forward\x20operation.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20forward\x20operation\x20within\x20the\x20specified\x20history\x20session\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20forward\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20forward\x20operation\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20count\x20sessions\x20for.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20sessions\x20within\x20the\x20specified\x20history\x20entry.'),z['object']({'type':z['literal']('query_progress_history_session_forward_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20forward\x20operations\x20within\x20the\x20specified\x20history\x20session.'),z['object']({'type':z['literal']('query_progress_history_session_forward_retained_submission_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'forwardIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20forward\x20operation\x20index\x20(U64\x20type)\x20within\x20the\x20session.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20retained\x20submissions\x20within\x20the\x20specified\x20forward\x20operation.')]))['describe']('Guard\x20node:\x20represents\x20an\x20operation\x20instruction\x20in\x20Guard.\x20Each\x20node\x20returns\x20a\x20value\x20of\x20a\x20specific\x20type,\x20computed\x20from\x20its\x20child\x20nodes\x20or\x20context.');export const ObjectGuardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Guard\x20object\x20description'),'table':z['array'](GuardTableItemSchema)['describe']('Guard\x20object\x20table\x20item\x20list'),'input':z['array'](z['number']())['describe']('Guard\x20object\x20instruction\x20sequence'),'root':GuardNodeSchema['describe']('Guard\x20object\x20root\x20node'),'rep_quote':z['record'](z['string']()['describe']('Repository\x20object\x20ID'),z['array'](z['string']())['describe']('Repository\x20policy\x20list'))['describe']('Depends\x20on\x20Repository\x20policy\x20quote'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'rep':z['boolean']()['describe']('If\x20false,\x20has\x20complex\x20Repository\x20quote\x20dependencies\x20and\x20cannot\x20be\x20used\x20as\x20an\x20independent\x20Guard')})['describe']('Guard\x20object');export const PaymentInfoSchema=z['object']({'for_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Binding\x20anchor\x20for\x20this\x20distribution.\x20On\x20an\x20Allocation\x20a\x20SET\x20for_object\x20is\x20ENFORCED\x20at\x20alloc():\x20every\x20GuardIdentifier\x20recipient\x20submission\x20must\x20equal\x20this\x20address\x20or\x20the\x20whole\x20tx\x20aborts\x20(ERECIPIENT_NOT_FOR_OBJECT,\x20code\x2015)\x20—\x20verify\x20the\x20anchor\x20matches\x20the\x20intended\x20recipient\x20flow\x20BEFORE\x20create;\x20payment_info\x20is\x20immutable\x20afterwards.\x20NULL/omitted\x20=\x20no\x20anchor:\x20nothing\x20is\x20enforced\x20on-chain,\x20recipient\x20routing\x20is\x20entirely\x20the\x20creator\x27s\x20design.\x20Also\x20recorded\x20at\x20creation\x20for\x20auditors\x20to\x20query\x20the\x20distribution\x27s\x20business\x20context.'),'for_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20to\x20satisfy\x20verification\x20of\x20a\x20Guard\x20object'),'remark':z['string']()['describe']('Payment\x20record\x20remark'),'index':z['union']([z['number'](),z['string']()])['describe']('Payment\x20record\x20index')})['describe']('Payment\x20information');export const ObjectPaymentSchema=ObjectBaseSchema['extend']({'record':z['array'](z['object']({'recipient':RecipientSchema,'amount':BalanceTypeSchema}))['describe']('Payment\x20record\x20list'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['union']([z['string'](),z['number']()])['describe']('Payment\x20time'),'from_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20source\x20object\x20ID'),'signer':z['string']()['describe']('Payment\x20signer\x20ID'),'info':PaymentInfoSchema})['describe']('Payment\x20object');export const ObjectAllocationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Fund\x20allocation\x20object\x20description'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocation\x20object\x20allocator\x20list'),'balance':BalanceTypeSchema['describe']('Fund\x20allocation\x20object\x20balance'),'payment_info':PaymentInfoSchema['optional']()['describe']('Payment\x20information'),'payment':z['array'](z['string']())['describe']('Payment\x20object\x20ID\x20list.\x20Each\x20fund\x20allocation\x20automatically\x20generates\x20a\x20payment\x20object\x20to\x20record\x20fund\x20flow')})['describe']('Fund\x20allocation\x20object');export const VoteWeightSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Use\x20value\x20corresponding\x20to\x20Guard\x20object\x27s\x20Table\x20index\x20as\x20voting\x20weight'),z['object']({'FixedValue':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Fixed\x20voting\x20weight\x20value')})['describe']('Fixed\x20voting\x20weight')])['describe']('Voting\x20weight');export const VotingGuardSchema=z['object']({'guard':z['string']()['describe']('Voting\x20Guard\x20object\x20ID'),'vote_weight':VoteWeightSchema})['describe']('Voting\x20Guard\x20object');export const ObjectArbitrationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arbitration\x20object\x20description'),'location':z['string']()['describe']('The\x20area\x20or\x20scope\x20where\x20the\x20arbitration\x20is\x20located'),'voting_guard':z['array'](VotingGuardSchema)['describe']('Voting\x20Guard\x20object\x20list'),'usage_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20submitting\x20arbitration'),'fee':BalanceTypeSchema['describe']('Single\x20arbitration\x20fee'),'balance':BalanceTypeSchema['describe']('Arbitration\x20object\x20balance'),'bPaused':z['boolean']()['describe']('Whether\x20arbitration\x20object\x20is\x20paused'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Arbitration\x20object\x20permission')})['describe']('Arbitration\x20object');export const GuardInPassportSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'result':z['boolean']()['describe']('Guard\x20object\x20verification\x20result'),'impack':z['boolean']()['describe']('Whether\x20Guard\x20object\x20verification\x20result\x20participates\x20in\x20final\x20result\x20determination\x20(AND\x20logic)'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'submission':GuardSubmissionSchema['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20Passport\x20object');export const ObjectPassportSchema=ObjectBaseSchema['extend']({'info':z['array'](GuardInPassportSchema)['describe']('List\x20of\x20Guard\x20object\x20records\x20in\x20Passport\x20object'),'result':z['boolean']()['describe']('Passport\x20object\x20final\x20verification\x20result'),'tx_hash':z['string']()['describe']('Transaction\x20hash\x20where\x20verification\x20occurred'),'impack_guard':z['array'](z['string']())['describe']('List\x20of\x20Guard\x20object\x20IDs\x20participating\x20in\x20final\x20result\x20determination'),'time':z['number']()['describe']('Creation\x20time\x20of\x20the\x20Passport\x20object'),'signer':z['string']()['describe']('Signer\x20address\x20of\x20the\x20Passport\x20object'),'has_verified':z['boolean']()['describe']('Whether\x20the\x20Passport\x20object\x20has\x20been\x20verified')})['describe']('Passport\x20object');export const TableItem_PermissionPermSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID\x20or\x20Guard\x20ID'),'perm':z['array'](PermissionIndexTypeSchema['nullable']()['or'](z['number']()))['describe']('Permission\x20list\x20obtained\x20after\x20user\x20or\x20Guard\x20object\x20verification')})['describe']('Permission\x20object\x27s\x20permission\x20record');export const TableItem_DemandPresenterSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Referrer\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter'),'service':tolerantStringNullable['describe']('Recommended\x20service\x20object\x20ID'),'update_time':tolerantNumber['describe']('Last\x20update\x20time'),'acceptance_score':tolerantNumberNullable['describe']('Demand\x20object\x20feedback\x20score'),'feedback':z['string']()['describe']('Demand\x20object\x20feedback\x20information'),'feedback_time':tolerantNumber['describe']('Demand\x20object\x20feedback\x20time')})['describe']('Demand\x20object\x27s\x20Service\x20recommendation\x20record');export const MachineForwardGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20name\x20or\x20address\x20(string).\x20Example:\x20\x27my_attendance_guard\x27\x20or\x20\x270x1234...\x27'),'retained_submission':z['array'](tolerantNumber)['nullable']()['optional']()['describe']('Guard\x20table\x20identifiers\x20whose\x20verified\x20values\x20are\x20persisted\x20into\x20the\x20Progress\x20history\x20when\x20the\x20forward\x20is\x20accomplished.\x20'+'The\x20Guard\x20is\x20ALWAYS\x20fully\x20verified\x20first\x20(regardless\x20of\x20this\x20list):\x20the\x20forward\x20cannot\x20complete\x20unless\x20the\x20Passport\x20carries\x20a\x20passing\x20result\x20for\x20it.\x20'+'After\x20verification,\x20exactly\x20the\x20caller\x27s\x20submissions\x20for\x20the\x20listed\x20identifiers\x20are\x20copied\x20into\x20history\x20(passport::submissions_get)\x20as\x20Guard-verified\x20facts;\x20'+'empty\x20array\x20(default)\x20records\x20nothing.\x20Use\x20it\x20for\x20audit\x20and\x20downstream\x20queries,\x20never\x20as\x20a\x20way\x20to\x20relax\x20Guard\x20conditions.')})['strict']()['describe']('Record\x20of\x20Guard\x20object\x20in\x20MachineForwardGuard\x20object.\x20ALWAYS\x20an\x20OBJECT\x20{guard:\x20string,\x20retained_submission?:\x20number[]}\x20—\x20never\x20a\x20plain\x20string.\x20The\x20inner\x20\x27guard\x27\x20field\x20is\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20string.');export const MachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name'),'namedOperator':tolerantStringNullable['describe']('Forward\x20operation\x20permission\x201:\x20Namespace\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20Progress\x20object\x20operators\x20are\x20different\x20(e.g.,\x20different\x20delivery\x20personnel\x20for\x20different\x20orders).'),'permissionIndex':tolerantNumberNullable['describe']('Forward\x20operation\x20permission\x202:\x20Permission\x20index\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20all\x20Progress\x20object\x20operators\x20are\x20the\x20same\x20(e.g.,\x20same\x20reward\x20reviewers\x20for\x20all\x20orders).'),'weight':tolerantNumber['describe']('Forward\x20weight\x20—\x20the\x20contribution\x20this\x20forward\x20makes\x20toward\x20its\x20Pair\x27s\x20threshold.\x20'+'⚠️\x20SINGLE-OPERATOR\x20LOCK:\x20a\x20forward\x20contributes\x20its\x20weight\x20AT\x20MOST\x20ONCE.\x20It\x20is\x20locked\x20by\x20'+'the\x20first\x20operator\x20that\x20accomplishes\x20it\x20(progress.move\x20session_accomplish_imp);\x20a\x20second\x20'+'operator\x20re-executing\x20the\x20same\x20accomplished\x20forward\x20aborts\x20E_NOT_THE_HOLDER.\x20Therefore\x20'+'multi-operator\x20cooperation\x20(threshold\x20>\x201)\x20needs\x20one\x20DISTINCT\x20forward\x20per\x20contributing\x20'+'operator\x20(e.g.\x20threshold\x202\x20→\x20begin_a\x20+\x20begin_b,\x20each\x20weight\x201)\x20—\x20never\x20reuse\x20one\x20forward.'),'guard':z['preprocess'](a=>{if(typeof a==='string')return{'guard':a};return a;},z['union']([MachineForwardGuardSchema['describe']('OBJECT\x20form:\x20{guard:\x20\x27<guard_name_or_address>\x27,\x20retained_submission?:\x20number[]}.\x20'+'Use\x20this\x20form\x20when\x20you\x20need\x20to\x20pass\x20retained_submission\x20data\x20alongside\x20the\x20Guard\x20reference.'),z['string']()['describe']('STRING\x20form\x20(shorthand):\x20the\x20Guard\x20object\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x20'+'Auto-wrapped\x20to\x20{guard:\x20<string>}\x20at\x20runtime.\x20Use\x20this\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20without\x20retained_submission.')])['nullable']()['optional']())['describe']('Guard\x20reference\x20for\x20this\x20forward.\x20Accepts\x20TWO\x20formats:\x0a'+'•\x20STRING\x20(preferred):\x20\x22my_guard_name\x22\x20—\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x0a'+'•\x20OBJECT\x20(only\x20when\x20retained_submission\x20is\x20needed):\x20{guard:\x20\x22my_guard_name\x22,\x20retained_submission:\x20[1,2,3]}.\x0a'+'FOLLOW\x20THE\x20SCHEMA\x20FIELD\x20STRUCTURE:\x20A\x20Guard\x20reference\x20is\x20fundamentally\x20a\x20STRING\x20(the\x20Guard\x20object\x27s\x20name\x20or\x20address).\x20'+'Provide\x20a\x20string\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20—\x20do\x20NOT\x20wrap\x20a\x20bare\x20string\x20in\x20an\x20object\x20structure.\x20'+'The\x20OBJECT\x20form\x20{guard:\x20\x22...\x22,\x20retained_submission:\x20[...]}\x20exists\x20ONLY\x20to\x20carry\x20additional\x20`retained_submission`\x20data\x20'+'alongside\x20the\x20string\x20reference;\x20inside\x20the\x20object,\x20the\x20`guard`\x20field\x20is\x20STILL\x20a\x20string.\x20'+'In\x20short:\x20string-in\x20for\x20a\x20string\x20reference,\x20object-in\x20only\x20when\x20you\x20need\x20to\x20pass\x20extra\x20data.\x0a'+'COGNITIVE\x20PRINCIPLE:\x20Guard\x20validation\x20ALWAYS\x20occurs\x20BEFORE\x20the\x20forward\x20operation.\x20'+'A\x20Guard\x20that\x20queries\x20state\x20of\x20the\x20SAME\x20Progress\x20object\x20this\x20forward\x20operates\x20on\x20'+'(e.g.\x20progress.current)\x20will\x20see\x20the\x20PRE-transition\x20value\x20(source\x20node),\x20NOT\x20the\x20target\x20node.\x20'+'If\x20the\x20Guard\x20checks\x20progress.current\x20==\x20target_node,\x20it\x20will\x20ALWAYS\x20FAIL.\x20'+'Querying\x20a\x20DIFFERENT\x20Progress\x20object\x20(cross-machine)\x20is\x20safe\x20and\x20reasonable\x20—\x20'+'that\x20progress\x20is\x20not\x20modified\x20by\x20this\x20forward.\x20'+'For\x20target-node\x20verification\x20after\x20transition,\x20bind\x20the\x20Guard\x20to\x20the\x20Allocator\x20instead\x20'+'(allocation.alloc\x20runs\x20AFTER\x20the\x20state\x20transition\x20completes).\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-3):\x20WoWok\x20has\x20NO\x20on-chain\x20cron.\x20A\x20business\x20phrase\x20like\x20\x27after\x20N\x20days,\x20auto-X\x27\x20'+'is\x20NOT\x20an\x20automatic\x20trigger\x20—\x20it\x20decomposes\x20into\x20(1)\x20a\x20time_guard\x20that\x20checks\x20elapsed\x20time,\x20and\x20'+'(2)\x20an\x20OFF-CHAIN\x20keeper\x20that\x20must\x20submit\x20the\x20forward\x20when\x20the\x20guard\x20passes.\x20'+'Configuring\x20a\x20time_guard\x20WITHOUT\x20a\x20keeper\x20means\x20nothing\x20ever\x20fires.\x0a'+'RETAINED_SUBMISSION:\x20a\x20non-empty\x20retained_submission\x20does\x20NOT\x20relax\x20Guard\x20verification\x20—\x20the\x20forward\x27s\x20Guard\x20is\x20always\x20validated\x20first.\x20'+'The\x20list\x20only\x20selects\x20which\x20of\x20the\x20caller\x27s\x20already-verified\x20submissions\x20are\x20persisted\x20into\x20the\x20Progress\x20history\x20(see\x20the\x20guard\x20field\x20above).')})['strict']()['refine'](a=>a['namedOperator']!==null&&a['namedOperator']!==undefined||a['permissionIndex']!==null&&a['permissionIndex']!==undefined,{'message':'One\x20of\x20\x27namedOperator\x27\x20or\x20\x27permissionIndex\x27\x20must\x20be\x20provided\x20for\x20each\x20forward.\x20'+'Use\x20namedOperator:\x27\x27\x20(empty\x20string)\x20when\x20the\x20ORDER\x20OWNER\x20operates\x20this\x20forward;\x20'+'use\x20a\x20permissionIndex\x20(e.g.\x201000)\x20when\x20the\x20same\x20operator\x20acts\x20for\x20all\x20orders.'})['describe']('Forward\x20in\x20Machine\x20object');export const MachineNodePairSchema=z['object']({'prev_node':z['string']()['describe']('Previous\x20node\x20name.\x20Empty\x20string\x20\x27\x27\x20means\x20initial\x20entry\x20node\x20(the\x20first\x20node\x20in\x20the\x20workflow).'),'threshold':tolerantNumber['default'](0x0)['describe']('Threshold\x20to\x20trigger\x20node\x20advancement.\x20If\x20total\x20Forward\x20weight\x20is\x20greater\x20than\x20or\x20equal\x20to\x20threshold,\x20node\x20advancement\x20is\x20triggered.\x20'+'⚠️\x20SINGLE-OPERATOR\x20LOCK:\x20each\x20forward\x20contributes\x20its\x20weight\x20AT\x20MOST\x20ONCE\x20(locked\x20by\x20its\x20first\x20operator\x20—\x20progress.move\x20session_accomplish_imp;\x20'+'re-execution\x20by\x20others\x20aborts\x20E_NOT_THE_HOLDER).\x20The\x20maximum\x20achievable\x20weight\x20of\x20this\x20Pair\x20is\x20the\x20sum\x20of\x20its\x20DISTINCT\x20forward\x20weights\x20—\x20'+'if\x20that\x20sum\x20<\x20threshold\x20the\x20transition\x20can\x20NEVER\x20migrate.\x20Multi-operator\x20cooperation\x20(threshold\x20>\x201)\x20needs\x20one\x20DISTINCT\x20forward\x20per\x20'+'contributing\x20operator\x20(e.g.\x20threshold\x202\x20→\x20begin_a\x20+\x20begin_b,\x20each\x20weight\x201),\x20never\x20one\x20forward\x20reused\x20by\x20several\x20people.'),'forwards':z['array'](MachineForwardSchema)['describe']('Forward\x20list\x20—\x20operations\x20to\x20ENTER\x20THIS\x20NODE\x20from\x20prev_node.\x20'+'SEMANTIC\x20CLARIFICATION:\x20forwards\x20describe\x20INCOMING\x20transitions\x20(how\x20to\x20ARRIVE\x20at\x20this\x20node),\x20'+'NOT\x20outgoing\x20transitions.\x20Think\x20of\x20each\x20forward\x20as\x20an\x20\x27entry\x20door\x27\x20to\x20this\x20node.\x20'+'Example:\x20pair\x20{prev_node:\x27A\x27,\x20forwards:[{name:\x27Go\x27}]}\x20means\x20\x27use\x20Go\x20to\x20advance\x20FROM\x20A\x20TO\x20THIS\x20NODE\x27.\x20'+'For\x20initial\x20node\x20(prev_node=\x27\x27),\x20forwards\x20are\x20operations\x20to\x20enter\x20this\x20node\x20from\x20the\x20start\x20state.\x20'+'DIAGRAM:\x20A\x20--[Go]-->\x20B\x20means\x20the\x20pair\x20belongs\x20to\x20node\x20B\x20(destination),\x20with\x20prev_node=\x27A\x27.\x20'+'WARNING:\x20forwards\x20belong\x20to\x20the\x20DESTINATION\x20node\x27s\x20pair,\x20NOT\x20the\x20source\x20node.\x20'+'Placing\x20a\x20forward\x20on\x20the\x20wrong\x20pair\x20will\x20cause\x20Progress\x20to\x20get\x20stuck.')})['strict']()['describe']('Node\x20pair\x20in\x20Machine\x20object')['refine'](a=>{if(a['prev_node']===''&&a['forwards']['length']===0x0)return![];return!![];},{'message':'Initial\x20node\x20(prev_node=\x27\x27)\x20must\x20have\x20at\x20least\x20one\x20forward.\x20Without\x20a\x20forward,\x20Progress\x20cannot\x20advance\x20from\x20\x27\x27\x20to\x20this\x20node,\x20causing\x20the\x20order\x20workflow\x20to\x20be\x20permanently\x20stuck.'});export const MachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.\x20⚠️\x20T1\x20LOSSY\x20POINT\x20(B-1):\x20do\x20NOT\x20name\x20a\x20node\x20\x27refund\x27/\x27refunded\x27/\x27deposit_refunded\x27/\x27deposit_deducted\x27/\x27disputed\x27/\x27cancelled\x27\x20'+'to\x20model\x20fund\x20return\x20or\x20dispute\x20—\x20funds\x20MUST\x20move\x20through\x20the\x20Allocation\x20waterfall\x20(order_allocators),\x20'+'NOT\x20through\x20Machine\x20terminal\x20nodes\x20(R-M1-11).\x20A\x20node\x20named\x20\x27refund\x27\x20is\x20a\x20semantic\x20lie:\x20reaching\x20it\x20does\x20'+'not\x20move\x20funds\x20by\x20itself.\x20Model\x20refund\x20as\x20a\x20refund-to-Order\x20Allocator\x20slot\x20(a\x20{\x20Signer\x20}\x20or\x20Order-owner\x20'+'recipient),\x20and\x20model\x20dispute\x20as\x20the\x20bound\x20Arbitration,\x20not\x20a\x20Machine\x20node.'),'pairs':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['strict']()['describe']('Node\x20in\x20Machine\x20object');export const TableItem_MachineNodeSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Node\x20name'),'value':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20record\x20in\x20Machine\x20object');export const TableItem_ProgressHistorySchema=ObjectBaseSchema['extend']({'index':tolerantNumber['describe']('Progress\x20record\x20index\x20(starting\x20from\x200)'),'node':z['string']()['describe']('Previous\x20node\x20name'),'next_node':z['string']()['describe']('Next\x20node\x20name'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'time':tolerantNumberNullable['describe']('Progress\x20record\x20completion\x20time\x20(Unix\x20timestamp)')})['describe']('Completed\x20progress\x20record\x20in\x20Progress\x20object');export const TableItem_TreasuryHistorySchema=ObjectBaseSchema['extend']({'payment':NameOrAddressSchema['describe']('Payment\x20object\x20ID'),'op':TreasuryOpSchema['describe']('Operation\x20type'),'signer':z['string']()['describe']('Operator\x20ID'),'external_guard':tolerantStringNullable['describe']('Guard\x20object\x20ID\x20verified\x20during\x20operation\x20(none\x20if\x20operated\x20through\x20Permission)'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':tolerantNumber['describe']('Payment\x20time\x20(Unix\x20timestamp)'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Payment\x20record\x20in\x20Treasury\x20object');export const ObjectsQuerySchema=QueryEnvSchema['extend']({'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20objects');export const ObjectUnionSchema=z['union']([ObjectTreasurySchema,ObjectPermissionSchema,ObjectMachineSchema,ObjectServiceSchema,ObjectOrderSchema,ObjectProgressSchema,ObjectDemandSchema,ObjectArbitrationSchema,ObjectAllocationSchema,ObjectRewardSchema,ObjectRepositorySchema,ObjectGuardSchema,ObjectPaymentSchema,ObjectPassportSchema,ObjectEntityRegistrarSchema,ObjectEntityLinkerSchema,ObjectResourceSchema,ObjectArbSchema,ObjectDiscountSchema,ObjectContactSchema,ObjectPersonalSchema,ObjectBaseSchema,ObjectProofSchema])['describe']('Union\x20of\x20all\x20wowok\x20on-chain\x20object\x20types');export const ObjectsAnswerSchema=z['object']({'objects':z['array'](ObjectUnionSchema)['optional']()['describe']('List\x20of\x20queried\x20objects')})['describe']('Response\x20for\x20querying\x20objects');export const PersonalQuerySchema=QueryEnvSchema['extend']({'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20')})['describe']('Query\x20PUBLIC\x20on-chain\x20personal\x20profile\x20for\x20any\x20account.\x20Returns\x20publicly\x20published\x20information\x20(social\x20accounts,\x20websites,\x20professional\x20info)\x20that\x20users\x20have\x20intentionally\x20shared\x20on\x20the\x20blockchain.');export const TableQuerySchema=QueryEnvSchema['extend']({'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Number\x20of\x20records\x20returned\x20per\x20page')})['describe']('Request\x20parameters\x20for\x20querying\x20object\x27s\x20data\x20table');export const TableAnswerItemSchema=z['object']({'key':z['object']({'type':z['string']()['describe']('Key\x20type'),'value':z['union']([z['string'](),z['number']()])['describe']('Key\x20value')})['describe']('Query\x20key\x20and\x20its\x20type'),'type':z['string']()['describe']('Table\x20item\x20object\x20type'),'object':z['string']()['describe']('Table\x20item\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Table\x20item\x20object\x20version')})['describe']('Result\x20item\x20of\x20object\x27s\x20data\x20table\x20query');export const TableAnswerSchema=z['object']({'items':z['array'](TableAnswerItemSchema),'nextCursor':z['union']([z['string'](),z['null']()]),'hasNextPage':z['boolean'](),'cache_expire':CacheExpireTypeSchema['optional']()});export const QueryTableItem_byAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byU64Schema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20U64\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byStringSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20string\x20key\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byNameAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20name\x20and\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_Registrar_EntitySchema=QueryEnvSchema['extend']({'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20Registrar\x20object\x27s\x20data\x20table');export const EventTypeSchema=z['union']([z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent'),z['literal']('ServiceEvent'),z['literal']('ArbitrationEvent'),z['literal']('DemandChangedEvent'),z['literal']('VoteEvent'),z['literal']('FeedbackEvent'),z['literal']('AllocationEvent'),z['literal']('TreasuryEvent'),z['literal']('RewardClaimEvent'),z['literal']('RewardFundEvent'),z['literal']('NewPaymentEvent'),z['string']()])['describe']('Event\x20type.\x20Supports\x20Wowok\x20built-in\x20types\x20(ArbEvent,\x20NewOrderEvent,\x20ProgressEvent,\x20DemandPresentEvent,\x20DemandFeedbackEvent,\x20NewEntityEvent,\x20ServiceEvent,\x20ArbitrationEvent,\x20DemandChangedEvent,\x20VoteEvent,\x20FeedbackEvent,\x20AllocationEvent,\x20TreasuryEvent,\x20RewardClaimEvent,\x20RewardFundEvent,\x20NewPaymentEvent)\x20or\x20any\x20string\x20for\x20generic\x20MoveEventType\x20(e.g.,\x20\x270x2::coin::CoinEvent\x27).\x20See\x20the\x20Event\x20Semantics\x20Registry\x20(knowledge/event-semantics.ts)\x20for\x20every\x20event\x27s\x20trigger\x20logic,\x20parameter\x20meanings,\x20and\x20business\x20semantics\x20—\x20especially\x20NewPaymentEvent\x20(the\x20universal\x20fund-flow\x20receipt:\x20from_object\x20is\x20the\x20internal-only\x20funding-source\x20object\x20—\x20Treasury/Allocation/Service\x20—\x20set\x20by\x20the\x20framework,\x20never\x20by\x20user\x20code).');export const EventCursorSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20cursor');export const EventBaseSchema=z['object']({'id':EventCursorSchema,'sender':z['string']()['describe']('Event\x20sender\x20ID'),'type':EventTypeSchema,'type_raw':z['string']()['describe']('Raw\x20event\x20type'),'time':z['union']([z['string'](),z['number']()])['describe']('Event\x20occurrence\x20time'),'parsedJson_raw':z['any']()['optional']()['describe']('Raw\x20parsed\x20JSON\x20data\x20from\x20the\x20event')})['describe']('Event\x20base\x20information');export const ArbEventSchema=EventBaseSchema['extend']({'arb':z['string']()['describe']('Arbitration\x20object\x20ID'),'arbitration':z['string']()['describe']('Arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'status':ArbStatusSchema,'indemnity_amount':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Compensation\x20awarded\x20(smallest-unit,\x20when\x20the\x20transition\x20rules\x20indemnity).'),'compensation_time':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Claim-ready\x20time\x20(when\x20the\x20transition\x20finishes\x20indemnity).')})['describe']('Arbitration\x20event');export const NewOrderEventSchema=EventBaseSchema['extend']({'order':z['string']()['describe']('Order\x20object\x20ID'),'service':z['string']()['describe']('Service\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['optional']()['describe']('Progress\x20object\x20ID'),'discount':z['union']([z['string'](),z['null']()])['optional']()['describe']('Discount\x20object\x20ID'),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20ID'),'amount':BalanceTypeSchema})['describe']('New\x20order\x20event');export const ProgressEventSchema=EventBaseSchema['extend']({'progress':z['string']()['describe']('Progress\x20object\x20ID'),'machine':z['string']()['describe']('Machine\x20object\x20ID'),'task':z['union']([z['string'](),z['null']()])['optional']()['describe']('Task\x20object\x20ID'),'node':z['string']()['describe']('Current\x20node\x20name'),'forward':z['union']([z['string'](),z['null']()])['optional']()['describe']('Forward\x20operation\x20name'),'hold':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Whether\x20it\x20is\x20a\x20hold\x20operation')})['describe']('Progress\x20event');export const DemandPresentEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter')})['describe']('Event\x20of\x20recommending\x20service\x20to\x20Demand\x20object');export const DemandFeedbackEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content'),'acceptance_score':z['union']([z['number'](),z['null']()])['optional']()['describe']('Acceptance\x20score')})['describe']('Event\x20of\x20Demand\x20object\x20feedback\x20to\x20referrer');export const NewEntityEventSchema=EventBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID'),'resource':z['string']()['describe']('ID\x20mark\x20object\x20ID\x20owned\x20by\x20user'),'referrer':z['union']([z['string'](),z['null']()])['optional']()['describe']('Referrer\x20ID')})['describe']('New\x20user\x20event');export const ServiceEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Service\x20object\x20ID'),'location':z['string']()['describe']('The\x20service\x20area\x20and\x20scope\x20as\x20stated\x20by\x20the\x20merchant.'),'description':z['string']()['describe']('Full\x20Service\x20description\x20as\x20carried\x20on-chain\x20(input\x20creation\x20still\x20caps\x20at\x204000\x20UTF-8\x20chars).')})['describe']('Service\x20market-opportunity\x20event');export const DemandChangedEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Demand\x20object\x20ID'),'location':z['string']()['describe']('The\x20area\x20or\x20scope\x20where\x20the\x20services\x20required\x20by\x20the\x20demand\x20are\x20located.'),'description':z['string']()['describe']('Full\x20Demand\x20description\x20as\x20carried\x20on-chain\x20(input\x20creation\x20still\x20caps\x20at\x204000\x20UTF-8\x20chars).'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20addresses\x20(amounts\x20read\x20from\x20Reward\x20objects).')})['describe']('Demand\x20market-opportunity\x20event');export const VoteEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'voter':z['string']()['describe']('Voter\x20address'),'agrees':z['array'](z['number']())['describe']('Supported\x20proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight')})['describe']('Arbitration\x20vote\x20event');export const FeedbackEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content')})['describe']('Arbitration\x20feedback\x20event');export const EventAnswerSchema=z['object']({'data':z['array'](z['union']([EventBaseSchema,ArbEventSchema,NewOrderEventSchema,ProgressEventSchema,DemandPresentEventSchema,DemandFeedbackEventSchema,NewEntityEventSchema,ServiceEventSchema,DemandChangedEventSchema,VoteEventSchema,FeedbackEventSchema]))['describe']('Event\x20object\x20data'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Next\x20page\x20cursor'),'cache_expire':CacheExpireTypeSchema['optional']()['describe']('Cache\x20expiration\x20time')})['describe']('Event\x20query\x20result');export const EventQuerySchema=QueryEnvSchema['extend']({'type':EventTypeSchema['describe']('Event\x20type'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Event\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Query\x20count\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order')})['describe']('Event\x20query\x20parameters');export const OnchainEventsInputSchema=z['object']({'type':EventTypeSchema['describe']('Event\x20type\x20to\x20query.\x20Supported\x20types\x20(all\x2016\x20built-in\x20framework\x20events):\x20ArbEvent\x20(arbitration\x20events),\x20NewOrderEvent\x20(new\x20order\x20events),\x20ProgressEvent\x20(progress\x20events),\x20DemandPresentEvent\x20(demand\x20presentation\x20events),\x20DemandFeedbackEvent\x20(demand\x20feedback\x20events),\x20NewEntityEvent\x20(new\x20entity\x20registration\x20events),\x20ServiceEvent\x20(service\x20lifecycle\x20events),\x20ArbitrationEvent\x20(arbitration\x20creation\x20events),\x20DemandChangedEvent\x20(demand\x20update\x20events),\x20VoteEvent\x20(voting\x20events),\x20FeedbackEvent\x20(feedback\x20events),\x20AllocationEvent\x20(allocation\x20distribution\x20events),\x20TreasuryEvent\x20(treasury\x20deposit/withdraw\x20events),\x20RewardClaimEvent\x20(reward\x20claim\x20events),\x20RewardFundEvent\x20(reward\x20funding\x20events),\x20NewPaymentEvent\x20(universal\x20fund-flow\x20receipt\x20events).\x20Any\x20other\x20string\x20is\x20accepted\x20as\x20a\x20generic\x20MoveEventType\x20(e.g.\x20\x270x2::coin::CoinEvent\x27)'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Optional\x20pagination\x20cursor\x20for\x20fetching\x20next\x20page\x20of\x20results.\x20Use\x20null\x20for\x20first\x20query,\x20then\x20use\x20nextCursor\x20from\x20response\x20for\x20subsequent\x20queries'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20events\x20to\x20return\x20per\x20query.\x20Use\x20null\x20for\x20default\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order\x20for\x20results:\x20\x27ascending\x27\x20(oldest\x20first)\x20or\x20\x27descending\x27\x20(newest\x20first).\x20Use\x20null\x20for\x20default\x20order'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20the\x20blockchain'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20querying\x20on-chain\x20WOWOK\x20events');export const OnchainEventsResultSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20query\x20result\x20containing\x20list\x20of\x20events\x20and\x20pagination\x20info,\x20or\x20null\x20if\x20no\x20data\x20found'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20event\x20query')})['describe']('Result\x20of\x20on-chain\x20events\x20query');export const MonitorEventModuleSchema=z['enum'](['order','arb','demand','progress','treasury','reward','service','entity','payment'])['describe']('Monitor\x20module\x20(9\x20total):\x20\x27order\x27\x20(NewOrderEvent),\x20\x27arb\x27\x20(ArbEvent/VoteEvent/FeedbackEvent),\x20\x27demand\x27\x20(DemandPresentEvent/DemandFeedbackEvent/DemandChangedEvent),\x20\x27progress\x27\x20(ProgressEvent),\x20\x27treasury\x27\x20(AllocationEvent/TreasuryEvent),\x20\x27reward\x27\x20(RewardClaimEvent/RewardFundEvent),\x20\x27service\x27\x20(ServiceEvent),\x20\x27entity\x27\x20(NewEntityEvent),\x20\x27payment\x27\x20(NewPaymentEvent\x20—\x20captured\x20only\x20when\x20enabled\x20via\x20monitor_subscription)');export const MonitorEventsInputSchema=z['object']({'action':z['enum'](['query','mark_read','mark_all_read'])['describe']('\x27query\x27\x20—\x20paginated\x20read\x20of\x20the\x20persistent\x20per-event\x20store\x20(append-only,\x20survives\x20restarts);\x20'+'\x27mark_read\x27\x20—\x20mark\x20the\x20given\x20event_ids\x20as\x20read;\x20'+'\x27mark_all_read\x27\x20—\x20mark\x20every\x20stored\x20event\x20as\x20read\x20(optionally\x20scoped\x20to\x20one\x20module)'),'module':MonitorEventModuleSchema['optional']()['describe']('Optional\x20module\x20filter\x20(query\x20/\x20mark_all_read).\x20Omit\x20to\x20span\x20all\x20modules'),'limit':z['number']()['int']()['positive']()['max'](0x1f4)['optional']()['describe']('Page\x20size\x20for\x20action=\x27query\x27\x20(default\x2050,\x20max\x20500)'),'offset':z['number']()['int']()['min'](0x0)['optional']()['describe']('Pagination\x20offset\x20for\x20action=\x27query\x27\x20(default\x200)'),'relevant_only':z['boolean']()['optional']()['describe']('action=\x27query\x27\x20—\x20paginate\x20only\x20events\x20with\x20a\x20relevance-annotation\x20hit\x20(scope\x20closure\x20/\x20focus\x20/\x20filter).\x20DEFAULT\x20TRUE\x20—\x20the\x20agent\x20todo\x20stream\x20is\x20de-noised\x20by\x20default;\x20pass\x20false\x20for\x20the\x20legacy\x20full\x20firehose'),'with_reason':z['boolean']()['optional']()['describe']('action=\x27query\x27\x20—\x20attach\x20each\x20event\x27s\x20stored\x20relevance\x20annotation\x20(\x27relevance\x27:\x20rules\x20with\x20human-readable\x20detail,\x20focus_hit,\x20matched_filters,\x20scope_version)\x20plus\x20a\x20computed\x20\x27delivered\x27\x20flag\x20(would\x20the\x20todo\x20stream\x20surface\x20it)'),'event_type':z['string']()['optional']()['describe']('action=\x27query\x27\x20—\x20filter\x20by\x20short\x20event\x20type,\x20cross-module\x20(e.g.\x20\x27NewPaymentEvent\x27,\x20\x27NewOrderEvent\x27)'),'since':z['number']()['optional']()['describe']('action=\x27query\x27\x20—\x20only\x20events\x20at/after\x20this\x20ms-epoch\x20timestamp'),'until':z['number']()['optional']()['describe']('action=\x27query\x27\x20—\x20only\x20events\x20at/before\x20this\x20ms-epoch\x20timestamp'),'event_ids':z['array'](z['string']())['optional']()['describe']('Event\x20ids\x20to\x20mark\x20read\x20for\x20action=\x27mark_read\x27\x20(format\x20\x27<eventSeq>:<txDigest>\x27)'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20the\x20persistent\x20monitor\x20event\x20store\x20(query\x20+\x20read-state\x20management)');export const MonitorRuleHitSchema=z['object']({'rule':z['string']()['describe']('Scope-closure\x20rule\x20that\x20claimed\x20the\x20event:\x20managed_objects\x20|\x20merchant_orders\x20|\x20my_orders\x20|\x20order_children\x20|\x20focus'),'object':z['string']()['describe']('The\x20closure\x20object\x20that\x20matched\x20(e.g.\x20the\x20order\x20/\x20treasury\x20address)'),'detail':z['string']()['describe']('Human-readable\x20reason\x20(e.g.\x20\x27order\x2010EF-A11\x20(buyer)\x27)\x20—\x20the\x20why-chip\x20source')})['describe']('One\x20scope-closure\x20rule\x20hit\x20on\x20an\x20event');export const MonitorRelevanceSchema=z['object']({'event_id':z['string']()['describe']('Canonical\x20event\x20id\x20(\x27<eventSeq>:<txDigest>\x27)'),'event_type':z['string']()['describe']('Short\x20event\x20type\x20at\x20annotation\x20time'),'rules':z['array'](MonitorRuleHitSchema)['describe']('Every\x20closure\x20rule\x20that\x20hit\x20(an\x20event\x20may\x20hit\x20several)'),'focus_hit':z['boolean']()['describe']('True\x20when\x20any\x20hit\x20came\x20from\x20the\x20focus\x20closure'),'matched_filters':z['array'](z['string']())['describe']('Ids\x20of\x20the\x20enabled\x20EventFilters\x20that\x20matched'),'scope_version':z['number']()['describe']('ScopeSnapshot\x20version\x20this\x20annotation\x20was\x20computed\x20against'),'annotated_at':z['number']()['describe']('Annotation\x20time\x20(ms\x20epoch)')})['describe']('Derived\x20relevance\x20annotation\x20for\x20an\x20event\x20(annotate-never-discard:\x20stored\x20separately\x20from\x20the\x20immutable\x20event)');export const MonitorEventItemSchema=z['object']({'id':z['string']()['describe']('Event\x20id\x20(\x27<eventSeq>:<txDigest>\x27)'),'module':z['string']()['describe']('Monitor\x20module\x20the\x20event\x20belongs\x20to'),'type':z['string']()['describe']('Short\x20event\x20type\x20(e.g.\x20\x27NewOrderEvent\x27)'),'time':z['number']()['describe']('Event\x20timestamp\x20in\x20milliseconds'),'seen':z['boolean']()['describe']('Read\x20flag\x20—\x20true\x20when\x20the\x20event\x20has\x20been\x20marked\x20read'),'event':z['union']([z['record'](z['string'](),z['any']()),z['null']()])['describe']('Full\x20normalized\x20event\x20payload'),'relevance':MonitorRelevanceSchema['optional']()['describe']('Relevance\x20annotation\x20—\x20attached\x20only\x20when\x20with_reason=true\x20and\x20the\x20event\x20has\x20one'),'delivered':z['boolean']()['optional']()['describe']('Todo-stream\x20arbitration\x20result\x20(shouldDeliver)\x20—\x20attached\x20only\x20when\x20relevance\x20is\x20present:\x20true\x20=\x20the\x20agent\x20todo\x20stream\x20surfaces\x20this\x20event')})['describe']('One\x20stored\x20monitor\x20event\x20with\x20its\x20read\x20flag\x20(and\x20optional\x20relevance)');export const MonitorEventsResultSchema=z['object']({'result':z['object']({'action':z['string']()['describe']('Echo\x20of\x20the\x20requested\x20action'),'events':z['array'](MonitorEventItemSchema)['optional']()['describe']('Page\x20of\x20events\x20(action=\x27query\x27)'),'total':z['number']()['optional']()['describe']('Total\x20events\x20in\x20the\x20queried\x20pool\x20(action=\x27query\x27)'),'module_counts':z['record'](z['string'](),z['number']())['optional']()['describe']('Stored\x20event\x20count\x20per\x20module\x20(action=\x27query\x27)'),'unread_by_module':z['record'](z['string'](),z['number']())['optional']()['describe']('Unread\x20count\x20per\x20module\x20(action=\x27query\x27)'),'total_unread':z['number']()['describe']('Total\x20unread\x20events\x20after\x20the\x20operation'),'marked':z['number']()['optional']()['describe']('How\x20many\x20events\x20flipped\x20to\x20read\x20(mark\x20actions)')}),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary')})['describe']('Result\x20of\x20the\x20monitor_events\x20tool');export const MonitorFocusEntrySchema=z['object']({'object':z['string']()['describe']('Object\x20address\x20to\x20focus\x20on'),'added_at':z['number']()['describe']('When\x20the\x20focus\x20was\x20added\x20(ms\x20epoch)'),'reason':z['enum'](['favor','manual','radar','goal'])['describe']('Why\x20this\x20object\x20is\x20focused:\x20favor\x20(auto\x20from\x20my\x20on-chain\x20favor\x20feedback)\x20|\x20manual\x20|\x20radar\x20|\x20goal'),'note':z['string']()['optional']()['describe']('Optional\x20human-readable\x20note'),'closure':z['boolean']()['describe']('true\x20→\x20also\x20derive\x20the\x20closure\x20(focused\x20service\x20→\x20its\x20orders;\x20focused\x20order\x20→\x20its\x20arb/progress/allocation\x20children)'),'goal_id':z['string']()['optional']()['describe']('Goal\x20id\x20when\x20reason=\x27goal\x27\x20(K3\x2024)\x20—\x20the\x20GoalEngine\x20expires\x20exactly\x20this\x20goal\x27s\x20focus\x20entries\x20on\x20completion/abandonment')})['describe']('An\x20explicitly\x20focused\x20object\x20(focus\x20closure\x20member)');export const MonitorEventFilterSchema=z['object']({'id':z['string']()['describe']('Stable\x20filter\x20id\x20(unique\x20within\x20the\x20config)'),'enabled':z['boolean']()['describe']('false\x20keeps\x20the\x20filter\x20in\x20config\x20without\x20applying\x20it'),'event':z['string']()['optional']()['describe']('Short\x20event\x20type\x20to\x20restrict\x20to\x20(e.g.\x20\x27NewPaymentEvent\x27);\x20omitted\x20=\x20all\x20captured\x20types'),'field':z['string']()['describe']('Event\x20field\x20path:\x20dot\x20notation\x20(\x27info.for_object\x27)\x20with\x20\x27[]\x27\x20array-walk\x20(\x27record[].recipient\x27\x20—\x20any\x20element\x20matches)'),'op':z['enum'](['eq','neq','contains','gte','lte','in'])['describe']('Comparison\x20op;\x20gte/lte\x20compare\x20integer-safe\x20(BigInt)\x20when\x20both\x20sides\x20are\x20base-10\x20integers'),'value':z['union']([z['string'](),z['number'](),z['array'](z['string']())])['describe']('Comparison\x20value\x20(string\x20list\x20for\x20op=\x27in\x27)')})['describe']('Conditional\x20delivery\x20filter\x20over\x20event\x20fields\x20(dry-run\x20it\x20with\x20action=\x27test_filter\x27\x20before\x20saving)');export const MonitorSubscriptionConfigInputSchema=z['object']({'enabled':z['boolean']()['optional']()['describe']('Master\x20switch\x20—\x20false\x20stops\x20the\x20todo\x20stream;\x20event\x20capture\x20continues'),'scope':z['object']({'accounts':z['union']([z['literal']('local-all'),z['array'](z['string']())])['optional']()['describe']('Anchor\x20accounts:\x20\x27local-all\x27\x20(every\x20local\x20account)\x20or\x20an\x20explicit\x20address\x20list'),'rules':z['object']({'managed_objects':z['boolean']()['optional']()['describe']('Events\x20from\x20objects\x20managed\x20by\x20my\x20permissions'),'merchant_orders':z['boolean']()['optional']()['describe']('Events\x20from\x20orders\x20of\x20MY\x20services\x20(merchant\x20side)'),'my_orders':z['boolean']()['optional']()['describe']('Events\x20from\x20orders\x20where\x20I\x20am\x20builder/agent\x20(buyer\x20side)'),'order_children':z['boolean']()['optional']()['describe']('Events\x20from\x20each\x20in-scope\x20order\x27s\x20dispute/progress/allocation\x20children'),'favor_objects':z['boolean']()['optional']()['describe']('Auto-focus\x20objects\x20I\x20recently\x20gave\x20on-chain\x20favor\x20feedback\x20to')})['optional']()['describe']('Scope-closure\x20rule\x20switches\x20(merged\x20field-wise\x20on\x20save)'),'focus_objects':z['array'](MonitorFocusEntrySchema)['optional']()['describe']('Explicit\x20focus\x20objects\x20(REPLACED\x20wholesale\x20on\x20save)')})['optional'](),'events':z['record'](z['string'](),z['boolean']())['optional']()['describe']('Per-event-type\x20delivery\x20switches\x20for\x20the\x20todo\x20stream\x20(merged\x20on\x20save).\x20Capture\x20set\x20is\x20unaffected\x20EXCEPT\x20NewPaymentEvent,\x20which\x20is\x20captured\x20only\x20when\x20switched\x20ON\x20here'),'filters':z['array'](MonitorEventFilterSchema)['optional']()['describe']('Conditional\x20delivery\x20filters\x20(REPLACED\x20wholesale\x20on\x20save)'),'loop':z['object']({'poll_interval_ms':z['number']()['int']()['positive']()['optional']()['describe']('Capture\x20tick\x20interval\x20(default\x2015000,\x20min\x205000)'),'scope_refresh_ms':z['number']()['int']()['positive']()['optional']()['describe']('Scope\x20re-resolve\x20interval\x20(default\x20300000,\x20min\x2060000)'),'backfill_days':z['number']()['int']()['min'](0x0)['optional']()['describe']('Re-annotation\x20window\x20after\x20a\x20scope\x20change\x20(default\x207\x20days,\x20min\x200)')})['optional']()['describe']('Loop\x20tuning\x20(merged\x20on\x20save,\x20clamped\x20to\x20safe\x20bounds)')})['describe']('Partial\x20SubscriptionConfig\x20for\x20action=\x27save\x27\x20—\x20omitted\x20fields\x20keep\x20their\x20current\x20values');export const MonitorSubscriptionInputSchema=z['object']({'action':z['enum'](['get','save','reset','scope_preview','test_filter'])['describe']('\x27get\x27\x20—\x20effective\x20config\x20+\x20resolved\x20scope\x20summary\x20+\x20loop\x20status;\x20'+'\x27save\x27\x20—\x20merge\x20a\x20partial\x20config\x20(loop\x20params\x20clamped\x20to\x20safe\x20bounds)\x20and\x20trigger\x20an\x20immediate\x20scope\x20re-resolve;\x20'+'\x27reset\x27\x20—\x20restore\x20defaults\x20and\x20re-resolve;\x20'+'\x27scope_preview\x27\x20—\x20current\x20scope\x20closure\x20grouped\x20by\x20layer\x20(inspect\x20BEFORE\x20tuning\x20switches);\x20'+'\x27test_filter\x27\x20—\x20dry-run\x20a\x20filter\x20over\x20recently\x20captured\x20events\x20(pre-save\x20preview)'),'config':MonitorSubscriptionConfigInputSchema['optional']()['describe']('Partial\x20config\x20for\x20action=\x27save\x27'),'rule':z['enum'](['accounts','permissions','managed_objects','services','orders','order_children','focus'])['optional']()['describe']('action=\x27scope_preview\x27\x20—\x20restrict\x20to\x20one\x20scope\x20layer;\x20omit\x20for\x20all\x20layers'),'filter':MonitorEventFilterSchema['optional']()['describe']('Filter\x20to\x20dry-run\x20for\x20action=\x27test_filter\x27'),'sample':z['number']()['int']()['positive']()['max'](0x3e8)['optional']()['describe']('action=\x27test_filter\x27\x20—\x20how\x20many\x20recent\x20captured\x20events\x20to\x20scan\x20(default\x20200,\x20max\x201000)'),'limit':z['number']()['int']()['positive']()['max'](0x1f4)['optional']()['describe']('action=\x27scope_preview\x27\x20—\x20page\x20size\x20per\x20group\x20(default\x2050,\x20max\x20500)'),'offset':z['number']()['int']()['min'](0x0)['optional']()['describe']('action=\x27scope_preview\x27\x20—\x20pagination\x20offset\x20within\x20each\x20group\x20(default\x200)'),'network':EntrypointSchema['optional']()['describe']('Network:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20monitor\x20subscription\x20configuration\x20(scope,\x20filters,\x20todo-stream\x20switches)');export const MonitorLoopStatusSchema=z['object']({'running':z['boolean']()['describe']('True\x20when\x20this\x20process\x27s\x20MonitorLoop\x20is\x20started\x20AND\x20holds\x20the\x20single-writer\x20lease'),'lease_holder':z['union']([z['string'](),z['null']()])['describe']('Current\x20lease\x20holder\x20(\x27<pid>:<boot_id>\x27)\x20or\x20null\x20when\x20no\x20lease\x20row\x20exists'),'last_tick_at':z['number']()['describe']('Last\x20successful\x20capture\x20tick\x20(ms\x20epoch;\x200\x20=\x20never)'),'last_new_count':z['number']()['describe']('Newly\x20captured\x20events\x20on\x20the\x20last\x20tick'),'scope_version':z['number']()['describe']('In-memory\x20ScopeSnapshot\x20version\x20(0\x20=\x20none\x20resolved\x20yet)'),'backoff_ms':z['number']()['describe']('Active\x20error\x20backoff\x20in\x20ms\x20(0\x20=\x20none)')})['describe']('MonitorLoop\x20runtime\x20status\x20for\x20this\x20process');export const MonitorSubscriptionResolvedSchema=z['object']({'scope_version':z['number']()['describe']('Current\x20ScopeSnapshot\x20version\x20(0\x20=\x20not\x20resolved\x20yet)'),'counts':z['object']({'accounts':z['number'](),'permissions':z['number'](),'managed':z['number'](),'services':z['number'](),'orders':z['number'](),'order_children':z['number'](),'focus':z['number']()})['describe']('Scope-closure\x20size\x20per\x20derivation\x20layer'),'capture_types':z['array'](z['string']())['describe']('Event\x20types\x20the\x20MonitorLoop\x20captures\x20with\x20this\x20config\x20(14\x20always-on\x20+\x20NewPaymentEvent\x20when\x20enabled)'),'last_poll_at':z['number']()['describe']('Last\x20persisted\x20capture\x20time\x20(ms\x20epoch;\x20cross-process\x20—\x20written\x20by\x20whichever\x20process\x20holds\x20the\x20lease)'),'loop':MonitorLoopStatusSchema['describe']('This\x20process\x27s\x20MonitorLoop\x20status'),'backfill':z['string']()['optional']()['describe']('save/reset\x20only:\x20\x27scheduled\x27\x20when\x20a\x20scope\x20change\x20triggered\x20a\x20non-blocking\x20re-annotation\x20backfill,\x20\x27not_needed\x27\x20otherwise')})['describe']('Resolved\x20subscription\x20state\x20—\x20effective\x20scope\x20summary\x20+\x20capture\x20set\x20+\x20loop\x20status');export const MonitorScopePreviewGroupSchema=z['object']({'total':z['number']()['describe']('Total\x20items\x20in\x20this\x20group'),'items':z['array'](z['record'](z['string'](),z['any']()))['describe']('Page\x20of\x20items;\x20each\x20has\x20\x27object\x27\x20(or\x20\x27address\x27\x20for\x20accounts)\x20plus\x20type\x20/\x20role\x20/\x20detail\x20when\x20applicable')})['describe']('One\x20scope-preview\x20group\x20(paginated)');export const MonitorSubscriptionResultSchema=z['object']({'result':z['object']({'action':z['string']()['describe']('Echo\x20of\x20the\x20requested\x20action'),'config':z['record'](z['string'](),z['any']())['optional']()['describe']('Effective\x20SubscriptionConfig\x20(get/save/reset)'),'resolved':MonitorSubscriptionResolvedSchema['optional']()['describe']('Resolved\x20scope\x20+\x20loop\x20summary\x20(get/save/reset)'),'groups':z['record'](z['string'](),MonitorScopePreviewGroupSchema)['optional']()['describe']('Scope\x20preview\x20groups\x20keyed\x20by\x20layer\x20(scope_preview)'),'matched':z['number']()['optional']()['describe']('test_filter:\x20how\x20many\x20scanned\x20events\x20the\x20filter\x20matched'),'scanned':z['number']()['optional']()['describe']('test_filter:\x20how\x20many\x20recent\x20events\x20were\x20scanned'),'samples':z['array'](z['object']({'event_id':z['string'](),'type':z['string'](),'time':z['number']()}))['optional']()['describe']('test_filter:\x20up\x20to\x205\x20matched\x20sample\x20events')}),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary')})['describe']('Result\x20of\x20the\x20monitor_subscription\x20tool');export const TableItem_RepositoryDataOrUndefinedSchema=z['union']([TableItem_RepositoryDataSchema,z['null']()])['describe']('Repository\x20data\x20item\x20or\x20null');export const TableItem_PermissionPermOrUndefinedSchema=z['union']([TableItem_PermissionPermSchema,z['null']()])['describe']('Permission\x20permission\x20item\x20or\x20null');export const TableItem_EntityRegistrarOrUndefinedSchema=z['union']([TableItem_EntityRegistrarSchema,z['null']()])['describe']('Entity\x20registrar\x20item\x20or\x20null');export const TableItem_EntityLinkerOrUndefinedSchema=z['union']([TableItem_EntityLinkerSchema,z['null']()])['describe']('Entity\x20linker\x20item\x20or\x20null');export const TableItem_RewardRecordOrUndefinedSchema=z['union']([TableItem_RewardRecordSchema,z['null']()])['describe']('Reward\x20record\x20item\x20or\x20null');export const TableItem_DemandPresenterOrUndefinedSchema=z['union']([TableItem_DemandPresenterSchema,z['null']()])['describe']('Demand\x20presenter\x20item\x20or\x20null');export const TableItem_TreasuryHistoryOrUndefinedSchema=z['union']([TableItem_TreasuryHistorySchema,z['null']()])['describe']('Treasury\x20history\x20item\x20or\x20null');export const TableItem_MachineNodeOrUndefinedSchema=z['union']([TableItem_MachineNodeSchema,z['null']()])['describe']('Machine\x20node\x20item\x20or\x20null');export const TableItem_ProgressHistoryOrUndefinedSchema=z['union']([TableItem_ProgressHistorySchema,z['null']()])['describe']('Progress\x20history\x20item\x20or\x20null');export const TableItem_AddressMarkOrUndefinedSchema=z['union']([TableItem_AddressMarkSchema,z['null']()])['describe']('Address\x20mark\x20item\x20or\x20null');export const ObjectPersonalOrUndefinedSchema=z['object']({'result':z['union']([ObjectPersonalSchema,z['null']()])['describe']('Personal\x20object\x20or\x20null')})['describe']('Personal\x20object\x20or\x20null');export const TokenTypeInfoOrUndefinedSchema=z['object']({'result':z['union']([TokenTypeInfoSchema,z['null']()])['describe']('Token\x20type\x20info\x20or\x20null')})['describe']('Token\x20type\x20info\x20or\x20null');export const EventAnswerOrUndefinedSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20answer\x20or\x20null')})['describe']('Event\x20answer\x20or\x20null');export const TableAnswerOrUndefinedSchema=z['object']({'result':z['union']([TableAnswerSchema,z['null']()])['describe']('Table\x20answer\x20or\x20null')})['describe']('Table\x20answer\x20or\x20null');export const QueryTableItemSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('RepositoryData'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20or\x20address\x20of\x20the\x20entity;\x20or\x20address\x20that\x20number\x20is\x20casted\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20repository\x20data\x20table\x20item'),z['object']({'type':z['literal']('PermissionPerm'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('User\x20ID\x20or\x20address,\x20or\x20Guard\x20ID\x20in\x20the\x20permission\x20perm\x20table'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20permission\x20perm\x20table\x20item'),z['object']({'type':z['literal']('EntityRegistrar'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20entity'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20registrar\x20table\x20item'),z['object']({'type':z['literal']('EntityLinker'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20or\x20address\x20that\x20the\x20registrar\x20votes\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20linker\x20table\x20item'),z['object']({'type':z['literal']('RewardRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20that\x20claims\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20reward\x20record\x20table\x20item'),z['object']({'type':z['literal']('DemandPresenter'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20Demand\x20presenter'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20demand\x20presenter\x20table\x20item'),z['object']({'type':z['literal']('TreasuryRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20of\x20the\x20payment\x20that\x20the\x20treasury\x20record\x20is\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20treasury\x20record\x20table\x20item'),z['object']({'type':z['literal']('MachineNode'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20node\x20name\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20machine\x20node\x20table\x20item'),z['object']({'type':z['literal']('ProgressHistory'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20progress\x20history\x20table\x20item'),z['object']({'type':z['literal']('AddressMark'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20or\x20address\x20that\x20the\x20mark\x20name\x20and\x20tags\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20address\x20mark\x20table\x20item')])['describe']('Request\x20parameters\x20for\x20querying\x20table\x20items');export const TableItemUnionOrUndefinedSchema=z['object']({'result':z['union']([TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema,z['null']()])['describe']('Table\x20item\x20or\x20null')})['describe']('Table\x20item\x20or\x20null');export const ConstantItemSchema=z['object']({'name':z['string']()['describe']('Name'),'value':z['union']([z['string'](),z['number']()])['describe']('Value'),'description':z['string']()['describe']('Description')})['describe']('Constant\x20item');export const PermissionInfoTypeSchema=z['object']({'index':z['number']()['describe']('Permission\x20index\x20(e.g.\x20315\x20for\x20service.compensation_fund_deposit)'),'name':z['string']()['describe']('Permission\x20name\x20(e.g.\x20\x22service.compensation_fund_deposit\x22)'),'description':z['string']()['describe']('Description\x20of\x20what\x20this\x20permission\x20allows'),'object_type':z['string']()['describe']('Object\x20type\x20this\x20permission\x20belongs\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['optional'](z['string']())['describe']('The\x20SDK/MCP\x20operation\x20field\x20name\x20that\x20triggers\x20this\x20permission\x20check\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22publish\x22,\x20\x22pause\x22).\x20Undefined\x20for\x20permissions\x20with\x20no\x20direct\x20Call*_Data\x20field\x20(e.g.\x20\x22*.new\x22\x20permissions).\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20by\x20filtering\x20with\x20{operation:\x20\x22compensation_fund_add\x22}.')})['describe']('Permission\x20info\x20type\x20—\x20includes\x20the\x20operation\x20field\x20name\x20that\x20maps\x20to\x20this\x20permission,\x20so\x20AI\x20can\x20look\x20up\x20required\x20permissions\x20by\x20operation\x20name.');export const GuardInstructSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction'),'id':z['number']()['int']()['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(node\x20opcode:\x2040=query\x20node,\x2045=Signer,\x2046=Clock,\x2047=Guard,\x2048=table-constant/identifier;\x20other\x20opcodes\x20are\x20operators)'),'description':z['string']()['describe']('Description\x20of\x20the\x20guard\x20instruction'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20of\x20the\x20guard\x20instruction'),'node':z['optional'](z['string']())['describe']('Exact\x20root-node\x20JSON\x20for\x20entries\x20whose\x20catalog\x20name\x20is\x20not\x20itself\x20a\x20root\x20node\x20type\x20(identifier\x20/\x20query_wowok_object\x20/\x20context_*).\x20For\x20all\x20other\x20entries\x20the\x20root\x20node\x20is\x20{\x22type\x22:\x20name,\x20...}'),'kind':z['optional'](z['enum'](['node','query']))['describe']('\x22node\x22\x20=\x20builds\x20a\x20Guard\x20root\x20node;\x20\x22query\x22\x20=\x20a\x20query-id\x20usable\x20only\x20as\x20the\x20`query`\x20selector\x20INSIDE\x20a\x20{\x22type\x22:\x22query\x22}\x20node,\x20never\x20as\x20a\x20root\x20node\x20type')})['describe']('Guard\x20instruction\x20info');export const GuardItemSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'id':z['union']([z['number']()['int'](),QueryIdSchema])['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(node\x20opcode)\x20or\x20object\x20query\x20selector\x20(1000-2255\x20U16,\x20used\x20only\x20inside\x20a\x20query\x20node)'),'description':z['string']()['describe']('Description'),'kind':z['optional'](z['enum'](['node','query']))['describe']('\x22node\x22\x20=\x20builds\x20a\x20Guard\x20root\x20node;\x20\x22query\x22\x20=\x20query-id\x20usable\x20only\x20inside\x20a\x20{\x22type\x22:\x22query\x22}\x20node'),'node':z['optional'](z['string']())['describe']('Exact\x20root-node\x20JSON\x20for\x20special\x20entries\x20(identifier\x20/\x20query_wowok_object\x20/\x20context_*)\x20whose\x20catalog\x20name\x20is\x20not\x20itself\x20a\x20root\x20node\x20type'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20instruction'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20for\x20guard\x20query'),'parameters':z['optional'](z['array'](ValueTypeSchema))['describe']('Parameters\x20for\x20guard\x20query'),'return':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20query'),'parameters_description':z['optional'](z['array'](z['string']()))['describe']('Parameter\x20descriptions\x20for\x20guard\x20query')})['describe']('Guard\x20item\x20-\x20either\x20a\x20guard\x20instruction\x20(kind=\x22node\x22:\x20build\x20a\x20root\x20node)\x20or\x20a\x20guard\x20query\x20(kind=\x22query\x22:\x20use\x20its\x20id\x20inside\x20a\x20query\x20node)');export const GuardInstructFilterOptionsSchema=z['object']({'name':z['optional'](z['string']())['describe']('Name\x20filter\x20(case-insensitive\x20partial\x20match)'),'id':z['optional'](z['array'](z['number']()['int']()))['describe']('ID\x20array\x20filter\x20(OperatorType\x20|\x20ContextType\x20|\x20number)'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20filter'),'paramCount':z['optional'](z['number']()['int']())['describe']('Parameter\x20count\x20filter'),'scope':z['optional'](z['enum'](['instruct','object\x20query','all']))['describe']('Scope\x20filter:\x20instruct,\x20object\x20query,\x20or\x20all')['default']('all'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter\x20(only\x20for\x20object\x20query\x20scope)')})['describe']('Guard\x20instruction\x20filter\x20options');export const PermissionFilterSchema=z['object']({'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter'),'name':z['optional'](z['string']())['describe']('Name\x20filter'),'index':z['optional'](PermissionIndexTypeSchema)['describe']('Index\x20filter'),'description':z['optional'](z['string']())['describe']('Description\x20filter'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20SDK/MCP\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22).\x20Returns\x20only\x20permissions\x20triggered\x20by\x20this\x20operation.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22')})['describe']('Permission\x20filter');export const CommonMistakeInfoSchema=z['object']({'object_type':z['string']()['describe']('The\x20object\x20type\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['string']()['describe']('The\x20operation\x20field\x20name\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22voting_deadline\x22)'),'category':z['enum'](['field_name','unit','value_range','workflow','timing'])['describe']('Category\x20of\x20the\x20mistake:\x20field_name\x20(wrong\x20field\x20name),\x20unit\x20(wrong\x20unit\x20like\x20seconds\x20vs\x20ms),\x20value_range\x20(wrong\x20expected\x20value),\x20workflow\x20(wrong\x20operation\x20order),\x20timing\x20(wrong\x20time\x20constraint)'),'mistake':z['string']()['describe']('Short\x20description\x20of\x20the\x20mistake'),'correct_usage':z['string']()['describe']('The\x20correct\x20usage\x20pattern'),'wrong_example':z['string']()['describe']('Example\x20of\x20the\x20wrong\x20usage'),'correct_example':z['string']()['describe']('Example\x20of\x20the\x20correct\x20usage')})['describe']('A\x20known\x20common\x20mistake\x20for\x20an\x20on-chain\x20operation.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20they\x20submit\x20a\x20transaction.');export const CommonMistakeFilterSchema=z['object']({'object_type':z['optional'](z['string']())['describe']('Filter\x20by\x20object\x20type\x20(e.g.\x20\x22Service\x22)'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22)'),'category':z['optional'](z['enum'](['field_name','unit','value_range','workflow','timing']))['describe']('Filter\x20by\x20category\x20(e.g.\x20\x22field_name\x22\x20for\x20field-name\x20mistakes,\x20\x22unit\x22\x20for\x20unit\x20mistakes)')})['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation.');export const BridgeTokenInfoSchema=z['object']({'tokenId':z['number']()['describe']('On-chain\x20token\x20ID\x20(mainnet:\x20WBTC=1,\x20ETH/WETH=2,\x20USDC=3,\x20USDT=4)'),'symbol':z['string']()['describe']('Token\x20symbol/abbreviation\x20(ETH,\x20WETH,\x20WBTC,\x20USDC,\x20USDT)'),'wowTypeTag':z['string']()['describe']('WOW-side\x20token\x20type\x20tag\x20(format:\x20{address}::{module}::{struct},\x20e.g.\x20\x220x2::wow::WOW\x22,\x20\x220x...::usdt::USDT\x22).\x20IMPORTANT:\x20This\x20value\x20can\x20be\x20used\x20directly\x20as\x20the\x20`type_parameter`\x20for\x20Service\x20/\x20Treasury\x20/\x20Reward\x20/\x20Allocation\x20objects\x20to\x20set\x20their\x20payment\x20token.\x20e.g.\x20use\x20USDT\x27s\x20wowTypeTag\x20to\x20create\x20a\x20Service\x20that\x20accepts\x20USDT\x20payments.\x20To\x20discover\x20all\x20available\x20tokens,\x20query\x20this\x20info\x20type.'),'evmAddress':z['string']()['describe']('EVM-side\x20contract\x20address\x20(0x000...000\x20for\x20native\x20ETH;\x20ERC20\x20contract\x20address\x20otherwise)'),'evmDecimals':z['number']()['describe']('EVM-side\x20decimals\x20(ETH/WETH=18,\x20WBTC=8,\x20USDC/USDT=6)'),'wowDecimals':z['number']()['describe']('WOW-side\x20decimals\x20(ETH/WBTC=8,\x20USDC/USDT=6)'),'evmChains':z['array'](z['number']())['optional']()['describe']('Bridge\x20protocol\x20chain\x20IDs\x20where\x20this\x20token\x20is\x20available\x20(e.g.\x2010\x20=\x20ETH\x20mainnet)'),'description':z['string']()['optional']()['describe']('Token\x20description')})['describe']('Mainnet\x20Bridge\x20token\x20info');export const FundingGuidanceSchema=z['object']({'overview':z['string']()['describe']('Overview\x20of\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens'),'testnet':z['object']({'token':z['string']()['describe']('Testnet\x20token\x20(WOW)'),'method':z['literal']('faucet')['describe']('Testnet\x20funding\x20method\x20(faucet)'),'faucet_url':z['string']()['describe']('Testnet\x20faucet\x20URL'),'note':z['string']()['describe']('Testnet\x20funding\x20note:\x20all\x20merchant/order\x20testing\x20can\x20use\x20WOW')}),'mainnet':z['object']({'method':z['literal']('eth_bridge')['describe']('Mainnet\x20funding\x20method\x20(ETH\x20mainnet\x20cross-chain\x20bridge)'),'supported_tokens':z['array'](z['string']())['describe']('Tokens\x20supported\x20by\x20the\x20mainnet\x20bridge\x20(ETH/USDT/USDC/WBTC)'),'steps':z['array'](z['string']())['describe']('Step-by-step\x20mainnet\x20funding\x20flow:\x20query\x20active\x20EVM\x20account\x20→\x20transfer\x20from\x20external\x20wallet\x20→\x20confirm\x20balance\x20→\x20cross-chain\x20to\x20WOW')}),'airdrop':z['object']({'url':z['string']()['describe']('WOW\x20airdrop\x20page\x20—\x20single\x20source\x20of\x20truth\x20for\x20the\x20CURRENT\x20round\x20(status,\x20pool,\x20dates,\x20eligibility).\x20Fetch/open\x20it\x20for\x20live\x20details;\x20do\x20not\x20rely\x20on\x20embedded\x20constants\x20because\x20the\x20facts\x20change\x20between\x20rounds.'),'refer_url':z['string']()['describe']('WOW\x20airdrop\x20referral-program\x20page'),'note':z['string']()['describe']('Instruction:\x20live\x20round\x20details\x20are\x20published\x20only\x20on\x20the\x20airdrop\x20page\x20and\x20intentionally\x20not\x20hardcoded;\x20if\x20the\x20user\x20needs\x20detail\x20beyond\x20the\x20link,\x20fetch\x20the\x20page\x20and\x20summarize\x20it.')}),'payment_token':z['object']({'testnet_default':z['string']()['describe']('Default\x20testnet\x20payment\x20token\x20(WOW)'),'mainnet_option':z['string']()['describe']('Mainnet\x20payment\x20token\x20option\x20(USDT\x20and\x20other\x20stablecoins)'),'migration_note':z['string']()['describe']('Guidance:\x20ask\x20whether\x20to\x20switch\x20payment\x20token\x20when\x20migrating\x20testnet\x20→\x20mainnet')})})['describe']('Funding\x20guidance\x20—\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens\x20(testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop).\x20This\x20is\x20the\x20first-step\x20guidance\x20for\x20new\x20users.');export const UniversalTemplateSchema=z['object']({'template':z['literal']('universal')['describe']('Template\x20kind'),'version':z['string']()['describe']('Template\x20version'),'anti_cheat_baseline':z['object']({'fake_orders':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'fake_reviews':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'shell_merchant':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'reputation_trade':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())})})['describe']('Anti-cheat\x20detector\x20baselines'),'pricing_redlines':z['array'](z['string']())['describe']('Forbidden\x20dynamic-pricing\x20mode\x20names'),'governance_redlines':z['array'](z['string']())['describe']('Governance\x20red\x20lines'),'quality_signals':z['array'](z['string']())['describe']('Quality\x20signal\x20identifiers'),'consumer_journey':z['array'](z['string']())['describe']('Consumer\x20journey\x20stages'),'north_star_metric':z['string']()['describe']('North-star\x20metric\x20id'),'revenue_boundary':z['string']()['describe']('Sustainable\x20revenue\x20boundary')})['describe']('Universal\x20Template\x20—\x20cross-industry\x20baselines\x20and\x20red\x20lines');export const GettingStartedSchema=z['object']({'skills':z['object']({'what':z['string']()['describe']('What\x20the\x20WoWok\x20Skills\x20are\x20and\x20how\x20they\x20relate\x20to\x20this\x20MCP\x20server'),'package':z['string']()['describe']('npm\x20package\x20name\x20of\x20the\x20companion\x20skills'),'recommended':z['boolean']()['describe']('Whether\x20installing\x20the\x20skills\x20is\x20recommended\x20by\x20the\x20project'),'install_command':z['string']()['describe']('Command\x20that\x20installs\x20skills\x20into\x20every\x20detected\x20AI\x20client\x20AND\x20registers\x20this\x20MCP\x20server\x20(postinstall\x20is\x20idempotent)'),'doctor_command':z['string']()['describe']('Authoritative\x20per-client\x20install\x20+\x20MCP\x20registration\x20check'),'repair_command':z['string']()['describe']('Command\x20that\x20rewrites\x20every\x20install\x20target\x20(use\x20after\x20old/broken\x20installs)'),'detection':z['object']({'status':z['enum'](['detected','not_detected'])['describe']('Best-effort\x20scan\x20of\x20standard\x20client\x20skill\x20roots\x20on\x20THIS\x20machine'),'detected_roots':z['array'](z['string']())['describe']('Skill\x20roots\x20that\x20contained\x20a\x20wowok-*\x20skill\x20directory\x20or\x20the\x20.wowok-skills.json\x20manifest')})['describe']('Best-effort\x20local\x20skills\x20detection'),'detection_note':z['string']()['describe']('Why\x20detection\x20is\x20best-effort\x20and\x20when\x20to\x20trust\x20doctor\x20instead'),'roles':z['array'](z['string']())['describe']('Role-based\x20skill\x20names\x20the\x20package\x20installs')})['describe']('Companion\x20Skills\x20layer\x20orientation'),'cold_start':z['object']({'ready_seconds':z['number']()['describe']('Approximate\x20upper\x20bound\x20of\x20first-call\x20startup\x20latency'),'note':z['string']()['describe']('Why\x20the\x20first\x20call\x20after\x20boot\x20is\x20slow\x20and\x20why\x20it\x20is\x20not\x20a\x20failure')})['describe']('Cold-start\x20readiness\x20window'),'common_goals':z['array'](z['object']({'goal':z['string']()['describe']('A\x20common\x20user\x20goal'),'skills':z['array'](z['string']())['describe']('Role\x20skills\x20carrying\x20the\x20playbook\x20for\x20this\x20goal'),'tools':z['array'](z['string']())['describe']('MCP\x20sub-tools\x20most\x20often\x20used\x20for\x20this\x20goal')}))['describe']('Which\x20sub-tools\x20and\x20skills\x20matter\x20for\x20common\x20goals'),'first_calls':z['array'](z['string']())['describe']('Suggested\x20orientation\x20calls\x20for\x20a\x20freshly\x20connected\x20agent')})['describe']('Getting\x20started\x20orientation\x20for\x20agents\x20connecting\x20to\x20the\x20WoWok\x20MCP\x20server');export const ProtocolInfoQuerySchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants')})['strict']()['describe']('Constants\x20query'),z['object']({'info':z['literal']('built-in\x20permissions'),'filter':z['optional'](PermissionFilterSchema)['describe']('Filter\x20for\x20built-in\x20permissions.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20which\x20permission\x20a\x20specific\x20operation\x20requires.')})['strict']()['describe']('Built-in\x20permissions\x20query.\x20Each\x20permission\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20that\x20maps\x20to\x20the\x20SDK/MCP\x20Call*_Data\x20field\x20name\x20triggering\x20it.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20—\x20e.g.\x20filter\x20operation:\x22compensation_fund_add\x22\x20returns\x20permission\x20index\x20315\x20(service.compensation_fund_deposit).'),z['object']({'info':z['literal']('common\x20mistakes'),'filter':z['optional'](CommonMistakeFilterSchema)['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation,\x20or\x20category:\x22field_name\x22\x20for\x20all\x20field-name\x20mistakes.')})['strict']()['describe']('Common\x20mistakes\x20query.\x20Returns\x20known\x20field-name,\x20unit,\x20value-range,\x20workflow,\x20and\x20timing\x20pitfalls\x20for\x20on-chain\x20operations.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20submitting\x20a\x20transaction.\x20Example:\x20query\x20operation:\x22compensation_fund_add\x22\x20to\x20learn\x20about\x20the\x20{amount}\x20vs\x20{balance}\x20field\x20name\x20mistake.'),z['object']({'info':z['literal']('guard\x20instructions'),'filter':z['optional'](GuardInstructFilterOptionsSchema)['describe']('Filter\x20for\x20guard\x20instructions')})['strict']()['describe']('Guard\x20instructions\x20and\x20wowok\x20object\x20queries'),z['object']({'info':z['literal']('current\x20network')})['strict']()['describe']('Current\x20network\x20entrypoint'),z['object']({'info':z['literal']('value\x20types')})['strict']()['describe']('Value\x20types\x20query\x20-\x20returns\x20all\x20supported\x20value\x20types\x20with\x20their\x20numeric\x20and\x20string\x20representations'),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens')})['strict']()['describe']('Mainnet\x20Bridge\x20tokens\x20query\x20-\x20returns\x20all\x20tokens\x20deployed\x20on\x20the\x20mainnet\x20bridge\x20with\x20their\x20symbol,\x20WOW-side\x20type\x20tag,\x20EVM\x20address,\x20decimals,\x20and\x20description'),z['object']({'info':z['literal']('funding\x20guidance')})['strict']()['describe']('Funding\x20guidance\x20query\x20-\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens.\x20Returns\x20testnet\x20faucet\x20info,\x20mainnet\x20ETH\x20cross-chain\x20bridge\x20flow,\x20and\x20the\x20WOW\x20mainnet\x20airdrop\x20link.\x20Use\x20this\x20when\x20a\x20user\x20asks\x20how\x20to\x20obtain\x20tokens/gas/funds,\x20or\x20as\x20a\x20proactive\x20first-use\x20reminder.'),z['object']({'info':z['literal']('upgrade_check')})['strict']()['describe']('Upgrade\x20check\x20-\x20returns\x20current\x20vs\x20latest\x20npm\x20versions\x20of\x20the\x20WoWok\x20MCP\x20server\x20and\x20SDK,\x20whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed,\x20and\x20whether\x20an\x20upgrade/install\x20reminder\x20is\x20due.\x20Call\x20at\x20the\x20start\x20of\x20a\x20conversation\x20to\x20decide\x20whether\x20to\x20remind\x20the\x20user\x20to\x20upgrade\x20or\x20install\x20the\x20client.'),z['object']({'info':z['literal']('universal_template')})['strict']()['describe']('Universal\x20Template\x20query\x20-\x20returns\x20cross-industry\x20baselines\x20and\x20red\x20lines\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)\x20that\x20hold\x20across\x20ALL\x20industries\x20(K3\x2017\x20§2).'),z['object']({'info':z['literal']('getting\x20started')})['strict']()['describe']('Getting-started\x20orientation\x20for\x20a\x20freshly\x20connected\x20agent\x20-\x20what\x20the\x20companion\x20WoWok\x20Skills\x20are,\x20install/doctor/repair\x20commands,\x20best-effort\x20local\x20detection\x20of\x20installed\x20skills,\x20the\x20~20s\x20cold-start\x20window,\x20and\x20which\x20sub-tools\x20matter\x20for\x20common\x20goals.\x20Call\x20this\x20at\x20conversation\x20start\x20when\x20no\x20skill\x20guidance\x20is\x20loaded.')])['describe']('WoWok\x20Build-in\x20infomation\x20query');export const BuiltinPermissionSchema=z['object']({'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')})['describe']('Built-in\x20permissions\x20query\x20result');export const UpgradeCheckComponentSchema=z['object']({'current':z['string']()['nullable']()['describe']('Currently\x20installed/running\x20version'),'latest':z['string']()['nullable']()['describe']('Latest\x20published\x20npm\x20version\x20(null\x20when\x20offline/unreachable)'),'outdated':z['boolean']()['describe']('true\x20when\x20a\x20newer\x20version\x20is\x20available')})['describe']('A\x20component\x20version\x20comparison');export const UpgradeCheckResultSchema=z['object']({'mcp':UpgradeCheckComponentSchema['describe']('WoWok\x20MCP\x20server\x20version\x20comparison'),'sdk':UpgradeCheckComponentSchema['describe']('WoWok\x20SDK\x20version\x20comparison'),'client_installed':z['boolean']()['describe']('Whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed'),'client_install_hint':z['string']()['nullable']()['describe']('Where\x20to\x20get\x20the\x20desktop\x20client\x20(e.g.\x20download\x20URL)'),'upgrade_available':z['boolean']()['describe']('true\x20when\x20any\x20component\x20is\x20outdated'),'reminder':z['object']({'type':z['enum'](['upgrade','install_client','none'])['describe']('Reminder\x20kind'),'due':z['boolean']()['describe']('Whether\x20to\x20surface\x20the\x20reminder\x20in\x20this\x20conversation'),'message':z['string']()['nullable']()['describe']('Ready-to-use,\x20benefit-focused\x20reminder\x20message;\x20null\x20when\x20not\x20due')})['describe']('Reminder\x20decision'),'checked_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20check')})['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result');export const ProtocolInfoResultWrappedSchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants'),'result':z['array'](ConstantItemSchema)['describe']('Constants\x20result')}),z['object']({'info':z['literal']('built-in\x20permissions'),'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result.\x20Each\x20item\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20mapping\x20to\x20the\x20SDK/MCP\x20field\x20name\x20that\x20triggers\x20this\x20permission.')}),z['object']({'info':z['literal']('common\x20mistakes'),'result':z['array'](CommonMistakeInfoSchema)['describe']('Common\x20mistakes\x20result.\x20Each\x20item\x20documents\x20a\x20known\x20pitfall\x20(wrong\x20field\x20name,\x20wrong\x20unit,\x20wrong\x20workflow\x20order,\x20etc.)\x20with\x20wrong/correct\x20examples.')}),z['object']({'info':z['literal']('guard\x20instructions'),'result':z['array'](GuardItemSchema)['describe']('Guard\x20instructions\x20result')}),z['object']({'info':z['literal']('current\x20network'),'result':EntrypointSchema['describe']('Current\x20network\x20entrypoint')}),z['object']({'info':z['literal']('value\x20types'),'result':z['array'](ConstantItemSchema)['describe']('Value\x20types\x20result\x20-\x20each\x20item\x20contains\x20name\x20(string),\x20value\x20(string),\x20and\x20description\x20showing\x20the\x20numeric\x20mapping')}),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens'),'result':z['array'](BridgeTokenInfoSchema)['describe']('Mainnet\x20Bridge\x20tokens\x20result\x20-\x20each\x20item\x20contains\x20tokenId,\x20symbol,\x20wowTypeTag,\x20evmAddress,\x20evmDecimals,\x20wowDecimals,\x20evmChains,\x20and\x20description')}),z['object']({'info':z['literal']('funding\x20guidance'),'result':FundingGuidanceSchema['describe']('Funding\x20guidance\x20result\x20-\x20testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop\x20/\x20payment-token\x20guidance')}),z['object']({'info':z['literal']('upgrade_check'),'result':UpgradeCheckResultSchema['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result')}),z['object']({'info':z['literal']('universal_template'),'result':UniversalTemplateSchema['describe']('Universal\x20Template\x20data\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)')}),z['object']({'info':z['literal']('getting\x20started'),'result':GettingStartedSchema['describe']('Getting-started\x20orientation\x20(companion\x20Skills,\x20install/doctor\x20commands,\x20local\x20detection,\x20cold-start\x20window,\x20common-goal\x20tool\x20map)')})])['describe']('Protocol\x20info\x20result');export const ProtocolInfoResultSchema=z['object']({'result':ProtocolInfoResultWrappedSchema})['describe']('Protocol\x20info\x20result');export const LocalQueryResultSchema=z['union']([z['object']({'query_type':z['literal']('local_mark_list'),'result':QueryLocalMarkListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_list'),'result':QueryAccountListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('local_info_list'),'result':QueryLocalInfoListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('token_list'),'result':QueryLocalTokenListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_balance'),'result':QueryAccountResultSchema})]);export const TxObjectChangeSchema=z['object']({'id':z['string']()['describe']('Object\x20ID\x20affected\x20by\x20the\x20transaction'),'type':z['enum'](['created','mutated','deleted','wrapped','unwrapped'])['describe']('Type\x20of\x20object\x20change'),'object_type':z['string']()['optional']()['describe']('Full\x20Move\x20type\x20of\x20the\x20object'),'sender':z['string']()['optional']()['describe']('Sender\x20who\x20caused\x20this\x20object\x20change'),'version':z['string']()['optional']()['describe']('Object\x20version\x20after\x20the\x20change'),'previous_version':z['string']()['optional']()['describe']('Previous\x20object\x20version\x20(for\x20mutations)'),'digest':z['string']()['optional']()['describe']('Transaction\x20digest\x20that\x20caused\x20this\x20change')})['strict']()['describe']('Object\x20change\x20within\x20a\x20transaction');export const TxBalanceChangeSchema=z['object']({'owner':z['string']()['describe']('Owner\x20address\x20of\x20the\x20balance\x20change'),'coin_type':z['string']()['describe']('Coin\x20type\x20(e.g.\x200x2::wow::WOW)'),'amount':z['string']()['describe']('Amount\x20changed\x20(signed\x20string,\x20positive=incoming,\x20negative=outgoing)')})['strict']()['describe']('Balance\x20change\x20within\x20a\x20transaction');export const TxEventSchema=z['object']({'type':z['string']()['describe']('Fully-qualified\x20event\x20type\x20(e.g.\x200x2::progress::ProgressEvent)'),'package_id':z['string']()['optional']()['describe']('Package\x20that\x20declared\x20the\x20event\x20module'),'module':z['string']()['optional']()['describe']('Module\x20name\x20that\x20emitted\x20the\x20event'),'sender':z['string']()['optional']()['describe']('Sender\x20of\x20the\x20emitting\x20transaction'),'parsed_json':z['unknown']()['optional']()['describe']('Parsed\x20JSON\x20payload\x20of\x20the\x20event\x20(Move\x20struct\x20fields)'),'bcs':z['string']()['optional']()['describe']('Raw\x20BCS\x20bytes\x20of\x20the\x20event\x20(base64)')})['strict']()['describe']('Event\x20emitted\x20by\x20a\x20transaction');export const TransactionDetailSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20the\x20transaction\x20failed'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds\x20(string)'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'gas_used':z['string']()['optional']()['describe']('Total\x20gas\x20used\x20(string,\x20BigInt)'),'gas_budget':z['string']()['optional']()['describe']('Gas\x20budget\x20set\x20by\x20the\x20sender\x20(string)'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind\x20(e.g.\x20ProgrammableTransaction)'),'object_changes':z['array'](TxObjectChangeSchema)['describe']('Object\x20changes\x20(created/mutated/deleted)'),'balance_changes':z['array'](TxBalanceChangeSchema)['describe']('Balance\x20changes\x20for\x20all\x20involved\x20owners'),'event_count':z['number']()['describe']('Number\x20of\x20events\x20emitted\x20by\x20this\x20transaction'),'events':z['array'](TxEventSchema)['describe']('Events\x20emitted\x20by\x20the\x20transaction.\x20Always\x20populated\x20by\x20query_transaction\x20(showEvents=true).\x20'+'Each\x20event\x20carries\x20its\x20Move\x20struct\x20payload\x20(parsed_json)\x20so\x20callers\x20can\x20inspect\x20'+'ProgressEvent,\x20NewOrderEvent,\x20ArbEvent,\x20etc.\x20without\x20an\x20extra\x20query.'),'epoch':z['string']()['optional']()['describe']('Epoch\x20number\x20when\x20the\x20transaction\x20was\x20executed'),'is_system_tx':z['boolean']()['optional']()['describe']('Whether\x20this\x20was\x20a\x20system\x20transaction'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Full\x20transaction\x20detail\x20—\x20verifiable\x20proof\x20of\x20an\x20on-chain\x20operation');export const TransactionHistoryItemSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds'),'checkpoint':z['string']()['optional']()['describe']('Checkpoint\x20sequence\x20containing\x20this\x20transaction\x20—\x20the\x20global\x20total\x20order.\x20'+'Use\x20it\x20to\x20order/compare\x20across\x20pages\x20instead\x20of\x20timestamp_ms\x20(which\x20is\x20the\x20fullnode\x27s\x20ms\x20clock).'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind'),'gas_used':z['string']()['optional']()['describe']('Gas\x20used\x20(string)'),'objects_touched':z['array'](z['string']())['describe']('Object\x20IDs\x20touched\x20by\x20this\x20transaction'),'has_object_changes':z['boolean']()['describe']('Whether\x20this\x20tx\x20created/mutated/deleted\x20objects')})['strict']()['describe']('Transaction\x20history\x20summary\x20item');export const TransactionHistoryAnswerSchema=z['object']({'transactions':z['array'](TransactionHistoryItemSchema)['describe']('Transaction\x20history\x20items'),'next_cursor':z['union']([z['string'](),z['null']()])['describe']('Cursor\x20for\x20the\x20next\x20page\x20(null\x20if\x20no\x20more\x20pages)'),'has_next_page':z['boolean']()['describe']('Whether\x20more\x20pages\x20are\x20available'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Paginated\x20transaction\x20history\x20answer');export const OnchainQueryResultSchema_Part1=z['union']([z['object']({'query_type':z['literal']('onchain_personal_profile'),'result':z['union']([ObjectPersonalSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_objects'),'result':ObjectsAnswerSchema}),z['object']({'query_type':z['literal']('onchain_table'),'result':z['union']([TableAnswerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'result':z['union']([TableItem_RepositoryDataSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'result':z['union']([TableItem_PermissionPermSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'result':z['union']([TableItem_EntityRegistrarSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'result':z['union']([TableItem_EntityLinkerSchema,z['undefined']()])})]);export const OnchainQueryResultSchema_Part2=z['union']([z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'result':z['union']([TableItem_RewardRecordSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'result':z['union']([TableItem_DemandPresenterSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'result':z['union']([TableItem_TreasuryHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'result':z['union']([TableItem_MachineNodeSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'result':z['union']([TableItem_ProgressHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'result':z['union']([TableItem_AddressMarkSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_received'),'result':QueryReceivedResultSchema['shape']['result']})]);export const OnchainQueryResultSchema_Part3=z['union']([z['object']({'query_type':z['literal']('onchain_transaction'),'result':z['union']([TransactionDetailSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_block'),'result':z['union']([z['record'](z['string'](),z['any']())['describe']('RAW\x20fullnode\x20checkpoint\x20summary,\x20verbatim\x20(no\x20semantic\x20shaping)'),z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_object_history'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_address_activity'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('token_value_convert'),'result':z['object']({'token_type':z['string']()['describe']('Full\x20token\x20type\x20used\x20for\x20conversion'),'symbol':z['string']()['optional']()['describe']('Resolved\x20token\x20symbol'),'decimals':z['number']()['optional']()['describe']('Resolved\x20decimals\x20N\x20—\x20the\x20precision\x20reminder'),'precision_known':z['boolean']()['describe']('false\x20→\x20precision\x20unavailable;\x20conversion\x20may\x20have\x20been\x20impossible'),'direction':z['union']([z['literal']('raw_to_unit'),z['literal']('unit_to_raw')]),'input':z['string']()['describe']('Input\x20value\x20as\x20provided'),'output':z['string']()['describe']('Converted\x20value\x20(empty\x20string\x20when\x20conversion\x20was\x20impossible)'),'error':z['string']()['optional']()['describe']('Hard\x20failure\x20reason\x20(e.g.\x20unit→raw\x20without\x20known\x20precision)'),'text':z['string']()['describe']('One-line\x20human\x20text\x20with\x20the\x20decimals\x20reminder')})['strict']()['describe']('Bidirectional\x20token\x20value\x20conversion\x20result\x20—\x20see\x20Fund\x20Processing\x20Layer')})['strict'](),z['object']({'query_type':z['literal']('onchain_last_updated'),'result':z['object']({'items':z['array'](z['object']({'object':z['string']()['describe']('Queried\x20object\x20address'),'timestamp_ms':z['union']([z['string'](),z['null']()])['describe']('Unix\x20ms\x20of\x20the\x20last\x20transaction\x20touching\x20the\x20object\x20(null\x20when\x20unavailable)'),'digest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20that\x20transaction'),'sender':z['union']([z['string'](),z['null']()])['optional']()['describe']('Sender\x20of\x20that\x20transaction')}))['describe']('One\x20entry\x20per\x20queried\x20object,\x20same\x20order\x20as\x20the\x20request')})['strict']()})['strict'](),z['object']({'query_type':z['literal']('address_profiles'),'result':z['array'](z['record'](z['string'](),z['any']())['nullable']())['describe']('One\x20entry\x20per\x20requested\x20address,\x20SAME\x20order\x20as\x20the\x20request\x20(null\x20on\x20per-address\x20failure).\x20Each\x20non-null\x20entry\x20carries\x20the\x20full\x20AddressProfile\x20shape:\x20classification\x20(kind),\x20identity,\x20reputation\x20(like/dislike/favor\x20votes),\x20order/contact/permission\x20memberships,\x20core/tx\x20reverse\x20bindings,\x20the\x20object\x20itself,\x20activity\x20+\x20role\x20evidence\x20—\x20plus\x20the\x20merged\x20service_analysis\x20block\x20for\x20Service\x20addresses\x20(description\x20/\x20payment\x20token\x20/\x20shelf\x20split\x20/\x20location\x20/\x20trust-risk\x20/\x20on-chain\x20last\x20update).')})['strict']()]);export const AllQueryResultsSchema=z['union']([LocalQueryResultSchema,OnchainQueryResultSchema_Part1,OnchainQueryResultSchema_Part2,OnchainQueryResultSchema_Part3,...BI_QUERY_RESULT_MEMBERS]);export const WatchQueryOperationsResultSchema=z['object']({'result':AllQueryResultsSchema,'network':EntrypointSchema['optional']()['describe']('Network\x20the\x20data\x20was\x20READ\x20from\x20for\x20single-network\x20on-chain\x20query\x20types\x20(e.g.\x20account_balance,\x20onchain_objects,\x20onchain_transaction,\x20panoramas).\x20Omitted\x20for\x20purely-local\x20queries\x20(local_*),\x20static\x20cross-chain\x20data\x20(scenario_topology),\x20and\x20two-network\x20results\x20(migration_preflight).\x20When\x20network_source=\x27default\x27\x20the\x20input\x20omitted\x20the\x20network\x20and\x20the\x20SDK\x27s\x20current\x20default\x20network\x20was\x20used.'),'network_source':z['enum'](['explicit','default'])['optional']()['describe']('How\x20the\x20response\x20network\x20was\x20chosen:\x20\x27explicit\x27\x20=\x20the\x20call\x20supplied\x20the\x20network\x20parameter;\x20\x27default\x27\x20=\x20resolved\x20through\x20the\x20SDK\x20default\x20network.\x20Present\x20only\x20when\x20\x27network\x27\x20is\x20present.'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20query\x20operation')})['describe']('Watch\x20query\x20operations\x20result\x20schema');
|
|
1
|
+
import{z}from'zod';import{TokenTypeInfoSchema,QueryLocalMarkListResultSchema,QueryAccountListResultSchema,QueryLocalInfoListResultSchema,QueryLocalTokenListResultSchema,QueryAccountResultSchema}from'../local/index.js';import{AccountOrMark_AddressSchema,BalanceTypeSchema,CacheExpireTypeSchema,EntrypointSchema,GuardIdentifierSchema,GuardTableItemSchema,NameOrAddressSchema,ObjectBaseSchema,ObjectTypeSchema,QueryIdSchema,SupportedValueSchema,ValueTypeSchema,ValueTypeUserSchema,QueryReceivedResultSchema,LongNameSchema,DescriptionSchema}from'../common/index.js';import{SemanticSummarySchema}from'../call/index.js';import{BI_QUERY_RESULT_MEMBERS}from'./bi.js';import{isValidPermissionIndex}from'../utils/permission-index-utils.js';import{isValidGuardQueryId,isValidGuardQueryIdOrName,isValidWitnessType}from'../utils/guard-query-utils.js';import{ENTITY_LINKER_ADDRESS,ENTITY_REGISTRAR_ADDRESS,isWitnessType}from'@wowok/wowok';import{QueryEnvSchema}from'../common/index.js';const MAX_MULTI_OPERANDS=0x8,VALUE_TYPE_DESCRIPTION='Value\x20type:\x20can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27U64\x27,\x20\x27Address\x27,\x20\x27String\x27)\x20or\x20a\x20number\x20(0-18).\x20Supported\x20types:\x20Bool=0/\x27Bool\x27,\x20Address=1/\x27Address\x27,\x20String=2/\x27String\x27,\x20U8=3/\x27U8\x27,\x20U16=4/\x27U16\x27,\x20U32=5/\x27U32\x27,\x20U64=6/\x27U64\x27,\x20U128=7/\x27U128\x27,\x20U256=8/\x27U256\x27,\x20VecBool=9/\x27VecBool\x27,\x20VecAddress=10/\x27VecAddress\x27,\x20VecString=11/\x27VecString\x27,\x20VecU8=12/\x27VecU8\x27,\x20VecU16=13/\x27VecU16\x27,\x20VecU32=14/\x27VecU32\x27,\x20VecU64=15/\x27VecU64\x27,\x20VecU128=16/\x27VecU128\x27,\x20VecU256=17/\x27VecU256\x27,\x20VecVecU8=18/\x27VecVecU8\x27.\x20Note:\x20Value=19\x20is\x20an\x20INTERNAL\x20type\x20for\x20wowok\x20system\x20use\x20only\x20and\x20should\x20NOT\x20be\x20used\x20directly\x20by\x20users.\x20String\x20format\x20is\x20recommended\x20for\x20better\x20readability.',tolerantNumber=z['union']([z['number'](),z['string']()]),tolerantStringNullable=z['union']([z['string'](),z['null']()])['optional'](),tolerantNumberNullable=z['union']([z['number'](),z['string'](),z['null']()])['optional']();export const AmountTypeSchema=z['union']([z['enum'](['GuardU64Identifier','Fixed']),z['number']()['int']()['min'](0x0)['max'](0x1)['transform'](a=>a===0x0?'GuardU64Identifier':a===0x1?'Fixed':'GuardU64Identifier')])['describe']('Amount\x20type\x20—\x20determines\x20how\x20a\x20payment\x20amount\x20is\x20resolved.\x20'+'Accepts\x20string\x20(\x27GuardU64Identifier\x27\x20or\x20\x27Fixed\x27)\x20or\x20number\x20(0=\x27GuardU64Identifier\x27,\x201=\x27Fixed\x27).\x20String\x20form\x20is\x20recommended\x20for\x20readability.\x20'+'•\x20\x27GuardU64Identifier\x27\x20(0):\x20the\x20amount\x20is\x20NOT\x20fixed\x20—\x20it\x20is\x20dynamically\x20read\x20from\x20a\x20U64\x20value\x20stored\x20in\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20Identifier\x20index.\x20Use\x20this\x20when\x20the\x20amount\x20varies\x20per\x20order\x20(e.g.\x20milestone-based\x20pricing,\x20negotiated\x20price).\x20The\x20Guard\x20must\x20have\x20a\x20matching\x20U64\x20entry.\x20'+'•\x20\x27Fixed\x27\x20(1):\x20the\x20amount\x20is\x20a\x20fixed\x20value\x20set\x20in\x20the\x20sale/price\x20field.\x20Use\x20this\x20for\x20products\x20with\x20a\x20static\x20price\x20(e.g.\x20service\x20fee\x20=\x2050\x20WOW).\x20'+'Example:\x20{price:\x2050000000000,\x20stock:\x20100,\x20amount_type:\x20\x27Fixed\x27}\x20→\x20fixed\x2050\x20WOW\x20price.\x20'+'Example:\x20{price:\x200,\x20stock:\x20100,\x20amount_type:\x20\x27GuardU64Identifier\x27}\x20→\x20price\x20read\x20from\x20Guard\x20table\x20U64\x20entry.');export const GuardQuerySchema=z['object']({'id':QueryIdSchema,'name':z['string']()['describe']('Name\x20of\x20the\x20query\x20instruction.'),'objectType':ObjectTypeSchema['describe']('Type\x20of\x20the\x20Object\x20that\x20the\x20query\x20instruction\x20operates\x20on.'),'parameters':z['array'](ValueTypeSchema)['describe']('List\x20of\x20parameter\x20types\x20for\x20the\x20query\x20instruction.'),'return':ValueTypeSchema['describe']('Return\x20value\x20type\x20of\x20the\x20query\x20instruction.'),'description':z['string']()['describe']('Detailed\x20description\x20of\x20the\x20query\x20instruction.'),'parameters_description':z['array'](z['string']())['describe']('Detailed\x20descriptions\x20of\x20the\x20query\x20instruction\x20parameters.')});export const GuardSubmissionSchema=z['object']({'identifier':GuardIdentifierSchema['describe']('Identifier'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Guard\x20submission');export const RecipientSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Guard\x20verified\x20recipient\x20ID.\x20Get\x20recipient\x20ID\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20ID\x20must\x20be\x20of\x20address\x20type.'),z['object']({'Entity':AccountOrMark_AddressSchema})['describe']('Static\x20address\x20resolved\x20via\x20LocalMark.\x20'+'Format:\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20—\x20NOTE:\x20Entity\x20is\x20an\x20OBJECT\x20with\x20name_or_address\x20field,\x20NOT\x20a\x20bare\x20string.'),z['object']({'Signer':z['literal']('signer')})['describe']('Current\x20transaction\x20signer\x20(tx_context::sender)\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call.\x20'+'For\x20refunds,\x20the\x20Order\x20owner\x20must\x20call\x20alloc_by_guard\x20themselves\x20to\x20receive\x20the\x20funds.')])['describe']('Recipient\x20ID.\x20Three\x20forms:\x0a'+'\x20\x20-\x20{GuardIdentifier:\x20u8}\x20\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x0a'+'\x20\x20-\x20{Entity:\x20{name_or_address:\x20\x27mark_name\x27}}\x20\x20—\x20FIXED\x20static\x20address\x20via\x20LocalMark\x20(recommended)\x0a'+'\x20\x20-\x20{Signer:\x20\x27signer\x27}\x20\x20—\x20transaction\x20sender\x20at\x20alloc()\x20time\x20(e.g.\x20self-refund;\x20customer\x20must\x20call\x20alloc_by_guard\x20themselves)');export const RecordsInEntitySchema=z['object']({'name':z['string']()['describe']('Record\x20name'),'value_type':ValueTypeSchema['describe']('Value\x20type'),'value':SupportedValueSchema['describe']('Value')})['describe']('Information\x20record');export const PermissionIndexTypeSchema=z['number']()['int']()['refine'](a=>{return isValidPermissionIndex(a);},{'message':'Permission\x20index\x20must\x20be\x20a\x20valid\x20BuiltinPermissionIndex\x20value\x20or\x20user\x20defined\x20between\x201000\x20and\x2065535'})['describe']('Permission\x20index\x20type');export const VoteInEntityLinkerSchema=z['object']({'who':z['string']()['describe']('Voter\x20address'),'like':z['boolean']()['optional']()['describe']('Whether\x20liked'),'dislike':z['boolean']()['optional']()['describe']('Whether\x20disliked'),'favor':z['boolean']()['optional']()['describe']('Whether\x20favorited'),'time':tolerantNumber['describe']('Time')})['describe']('Follow\x20record');export const ObjectEntityRegistrarSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20registrar\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityRegistrar\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20registrar');export const ObjectEntityLinkerSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20entity\x20linker\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.')})['describe']('On-chain\x20entity\x20linker');export const ObjectResourceSchema=ObjectBaseSchema['extend']({'entity_count':z['number']()['describe']('Entity\x20count.\x20Number\x20of\x20entities\x20registered\x20in\x20the\x20address\x20mark\x20table.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27AddressMark\x27\x20table\x20items.')})['describe']('On-chain\x20address\x20tag\x20manager');export const TableItem_EntityLinkerSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Followed\x20ID'),'pos':tolerantNumber['describe']('Current\x20follow\x20information\x20position'),'count':tolerantNumber['describe']('Follower\x20count.\x20Number\x20of\x20entities\x20who\x20have\x20been\x20followed\x20others.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27EntityLinker\x27\x20table\x20items.'),'votes':z['array'](VoteInEntityLinkerSchema)['describe']('Follow\x20records')})['describe']('On-chain\x20followed\x20object\x20data');export const TableItem_EntityContactSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'contact':z['string']()['describe']('Contact\x20(customer-service\x20book)\x20address\x20the\x20entity\x20is\x20a\x20member\x20of'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20membership\x20was\x20last\x20modified')}))['describe']('Contacts\x20the\x20entity\x20is\x20a\x20member\x20of')})['describe']('Entity\x20contact\x20membership\x20reverse\x20index\x20item');export const TableItem_EntityOrderSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20address'),'items':z['array'](z['object']({'role':tolerantNumber['describe']('Role\x20bitmask\x20(1=owner,\x202=agent)\x20of\x20the\x20entity\x20in\x20the\x20order'),'order':z['string']()['describe']('Order\x20address\x20the\x20entity\x20participates\x20in'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified')}))['describe']('Orders\x20the\x20entity\x20participates\x20in')})['describe']('Entity\x20order\x20reverse\x20index\x20item');export const UserOrderViewSchema=z['object']({'role':tolerantNumber['describe']('Role\x20bitmask\x20(1=owner,\x202=agent)'),'is_owner':z['boolean']()['describe']('Whether\x20the\x20user\x20is\x20the\x20owner\x20of\x20the\x20order'),'is_agent':z['boolean']()['describe']('Whether\x20the\x20user\x20is\x20an\x20agent\x20of\x20the\x20order'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified'),'order':z['any']()['describe']('Full\x20on-chain\x20Order\x20object')})['describe']('One\x20order\x20membership\x20of\x20a\x20user,\x20resolved\x20with\x20the\x20full\x20order');export const EnrichedOrderRoleSchema=z['object']({'account':z['string']()['describe']('Local\x20account\x20address\x20participating\x20in\x20the\x20order'),'is_owner':z['boolean']()['describe']('Whether\x20this\x20account\x20is\x20the\x20order\x20owner\x20(buyer)'),'is_agent':z['boolean']()['describe']('Whether\x20this\x20account\x20is\x20an\x20operator\x20(agent)\x20of\x20the\x20order'),'time':tolerantNumber['optional']()['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20role\x20was\x20last\x20modified')})['describe']('One\x20local\x20account\x27s\x20role\x20in\x20the\x20order');export const EnrichedOrderItemSchema=z['object']({'name':z['string']()['describe']('Purchased\x20item\x20name'),'price':z['string']()['describe']('Raw\x20smallest-unit\x20price\x20(u64)'),'price_display':z['string']()['describe']('Human\x20price\x20with\x20token\x20symbol,\x20e.g.\x20\x220.1\x20WOW\x22\x20(raw\x20value\x20when\x20the\x20token\x20cannot\x20be\x20resolved)'),'quantity':z['string']()['describe']('Purchased\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20proof\x20hash\x20(empty\x20when\x20not\x20set)')})['describe']('One\x20purchased\x20SaleItem\x20of\x20the\x20order');export const EnrichedOrderRowSchema=z['object']({'order':z['string']()['describe']('Order\x20object\x20address'),'roles':z['array'](EnrichedOrderRoleSchema)['describe']('Per-account\x20roles\x20merged\x20across\x20the\x20queried\x20accounts\x20(deduped\x20by\x20order\x20address)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20order\x20was\x20created'),'updated_ms':z['number']()['nullable']()['describe']('Last\x20on-chain\x20transaction\x20touching\x20the\x20order\x20(ms);\x20null\x20when\x20unavailable.\x20Distinct\x20from\x20`time`\x20(creation)'),'amount':z['string']()['describe']('Raw\x20smallest-unit\x20order\x20amount\x20(u64);\x20empty\x20when\x20unreadable'),'amount_display':z['string']()['describe']('Human\x20amount\x20with\x20token\x20symbol,\x20e.g.\x20\x220.1\x20WOW\x22\x20(raw\x20value\x20when\x20the\x20token\x20cannot\x20be\x20resolved)'),'amount_tip':z['string']()['describe']('Long-form\x20amount\x20explanation\x20for\x20tooltips'),'service':z['string']()['nullable']()['describe']('Service\x20the\x20order\x20was\x20placed\x20under'),'machine':z['string']()['nullable']()['describe']('Machine\x20driving\x20the\x20order\x27s\x20fulfillment'),'progress':z['string']()['nullable']()['describe']('Progress\x20object\x20tracking\x20the\x20order\x27s\x20workflow'),'allocation':z['string']()['nullable']()['describe']('Allocation\x20(compensation\x20fund)\x20object\x20bound\x20to\x20the\x20order'),'owner':z['string']()['nullable']()['describe']('The\x20account\x20that\x20created\x20(bought)\x20the\x20order\x20(order.owner)'),'claimed_by':z['string']()['nullable']()['describe']('Compensation\x20claimant\x20(Arbitration)\x20when\x20the\x20order\x20was\x20claimed;\x20null\x20while\x20unclaimed'),'required_info':z['string']()['nullable']()['describe']('Buyer-submitted\x20Contact\x20object\x20or\x20WTS\x20proof\x20id\x20(order.required_info);\x20null\x20when\x20not\x20submitted'),'progress_next':z['string']()['nullable']()['describe']('Latest\x20machine\x20node\x20name\x20(Progress.current);\x20null\x20when\x20unavailable'),'progress_since':z['number']()['nullable']()['describe']('When\x20the\x20current\x20node\x20was\x20entered\x20(Progress.current_time,\x20ms);\x20null\x20when\x20unavailable'),'allocation_state':z['enum'](['none','pending','allocated'])['describe']('Compensation\x20fund\x20state:\x20none\x20=\x20no\x20Allocation\x20bound;\x20pending\x20=\x20fund\x20not\x20fully\x20allocated;\x20allocated\x20=\x20balance\x200\x20(fully\x20allocated)'),'disputes':z['array'](z['string']())['describe']('Arbitration\x20addresses\x20that\x20opened\x20a\x20dispute\x20on\x20this\x20order'),'agents':z['array'](z['string']())['describe']('Operator\x20accounts\x20(order.agent)\x20besides\x20the\x20owner'),'items':z['array'](EnrichedOrderItemSchema)['describe']('Purchased\x20items\x20(order.items:\x20vector<SaleItem>)'),'account_errors':z['array'](z['string']())['optional']()['describe']('Per-account\x20query\x20failures\x20(non-blocking)\x20—\x20the\x20other\x20accounts\x27\x20orders\x20still\x20resolve')})['describe']('One\x20enriched\x20order\x20row:\x20raw\x20on-chain\x20fields\x20+\x20server-resolved\x20display/progress/allocation\x20enrichment');export const TableItem_ObjectLinkerCoreSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Core\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(lossless\x20fixed)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20core\x20object\x20bound')}))['describe']('Core\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20core\x20reverse\x20index\x20item');export const TableItem_ObjectLinkerTxSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Target\x20object\x20address'),'items':z['array'](z['object']({'who':z['string']()['describe']('Tx\x20object\x20address\x20that\x20binds\x20to\x20the\x20target\x20(FIFO\x20window)'),'time':tolerantNumber['describe']('On-chain\x20clock\x20(ms)\x20when\x20the\x20tx\x20object\x20bound')}))['describe']('Recent\x20tx\x20objects\x20binding\x20to\x20the\x20target')})['describe']('Object-linker\x20tx\x20reverse\x20index\x20item');export const AffiliationEntrySchema=z['object']({'table':z['enum'](['object_linker_core','object_linker_tx','entity_order','entity_permission','entity_contact','registrar','entity'])['describe']('Source\x20global\x20table\x20(0xaae\x20core\x20/\x200xaaf\x20tx\x20/\x200xaa8\x20order\x20/\x200xaad\x20permission\x20/\x200xaa9\x20contact\x20/\x200xaaa\x20registrar\x20/\x200xaab\x20entity)'),'who':z['string']()['describe']('Linked\x20object\x20or\x20counterparty\x20address\x20recorded\x20under\x20the\x20queried\x20key'),'time':tolerantNumber['optional']()['describe']('On-chain\x20clock\x20(ms)\x20of\x20the\x20last\x20registration/update'),'role':tolerantNumber['optional']()['describe']('Role\x20bitmask:\x20entity_order\x201=owner,2=agent;\x20entity_permission\x201=owner,2=admin,4=entity')})['describe']('One\x20normalized\x20global-table\x20affiliation\x20entry');export const AffiliationAnswerSchema=z['object']({'address':z['string']()['describe']('Queried\x20key\x20address'),'object_type':z['string']()['nullable']()['describe']('Resolved\x20on-chain\x20object\x20type\x20of\x20the\x20key\x20(null\x20=\x20user\x20account)'),'tables_queried':z['array'](z['string']())['describe']('Global\x20tables\x20queried\x20for\x20this\x20key\x20(type-driven\x20static\x20map;\x20single\x20targeted\x20read\x20each,\x20never\x20a\x20full\x20scan)'),'entries':z['array'](AffiliationEntrySchema)['describe']('All\x20global-table\x20records\x20where\x20this\x20address\x20is\x20the\x20key'),'raw':z['any']()['describe']('Raw\x20per-table\x20views\x20(reverse_core\x20/\x20reverse_tx\x20/\x20order_membership\x20/\x20permission_membership\x20/\x20contact_membership\x20/\x20registrar\x20/\x20entity)')})['describe']('Type-driven\x20aggregation\x20over\x20every\x20global\x20table\x20the\x20address\x20can\x20be\x20recorded\x20in');export const TableItem_EntityRegistrarSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Entity\x20ID'),'description':z['string']()['describe']('Entity\x20description'),'time':tolerantNumber['describe']('On-chain\x20registration\x20time'),'referrer':tolerantStringNullable['describe']('Referrer'),'mark_object':tolerantStringNullable['describe']('Your\x20on-chain\x20address\x20mark\x20object\x20by\x20entity\x20ID'),'records':z['array'](RecordsInEntitySchema)['describe']('Information\x20records\x20on-chain')})['describe']('On-chain\x20entity\x20data');export const TableItem_AddressMarkSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Entity\x20ID'),'name':z['string']()['describe']('Tag\x20name'),'tags':z['array'](z['string']())['describe']('Tag\x20list')})['describe']('On-chain\x20ID\x20mark\x20data');export const ServiceGuardSchema=z['object']({'guard':z['string']()['describe']('Service\x20guard'),'service_identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Service\x20identifier.\x20Used\x20to\x20determine\x20the\x20service\x20verified\x20in\x20Guard')})['describe']('Service\x20guard');export const ObjectDemandSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Demand\x20description'),'location':z['string']()['describe']('The\x20area\x20or\x20scope\x20where\x20the\x20services\x20required\x20by\x20the\x20demand\x20are\x20located'),'rewards':z['array'](z['string']())['describe']('Reward\x20list.\x20Used\x20to\x20incentivize\x20qualified\x20Presenters\x20to\x20claim\x20rewards'),'guards':z['array'](ServiceGuardSchema)['describe']('Service\x20Guard\x20list'),'presenters_count':z['number']()['describe']('Presenter\x20count.\x20Number\x20of\x20Presenters\x20who\x20have\x20submitted\x20their\x20demand.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27DemandPresenter\x27\x20table\x20items.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission')})['describe']('Demand\x20object');export const ObjectMachineSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Machine\x20description'),'node_count':z['number']()['describe']('Node\x20count.\x20Nodes\x20are\x20used\x20to\x20determine\x20each\x20step\x20and\x20state\x20of\x20Machine\x20operation.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27MachineNode\x27\x20table\x20items.'),'consensus_repositories':z['array'](z['string']())['describe']('Consensus\x20repository\x20list.\x20Used\x20to\x20determine\x20consensus\x20data\x20storage\x20during\x20Machine\x20operation.'),'bPaused':z['boolean']()['describe']('Whether\x20paused'),'bPublished':z['boolean']()['describe']('Whether\x20published'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID.\x20Used\x20to\x20modify\x20operation\x20permission\x20settings\x20for\x20Machine\x20settings.')})['describe']('Machine\x20object');export const ServiceSaleSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service\x20for\x20sale'),'price':BalanceTypeSchema['describe']('Price\x20of\x20the\x20product\x20or\x20service'),'stock':BalanceTypeSchema['describe']('Stock\x20of\x20the\x20product\x20or\x20service'),'suspension':z['boolean']()['describe']('Whether\x20sale\x20is\x20suspended'),'wip':z['string']()['describe']('WIP\x20file\x20URL.\x20EMPTY\x20string\x20\x22\x22\x20skips\x20verification\x20(TESTING\x20ONLY).\x20'+'Production\x20MUST\x20use\x20a\x20real\x20HTTP\x20URL\x20pointing\x20to\x20a\x20.wip\x20file\x20generated\x20by\x20the\x20wip_file\x20tool.\x20'+'⚠️\x20NETWORK\x20DEPLOYMENT\x20REQUIRED:\x20the\x20URL\x20is\x20stored\x20ON-CHAIN\x20and\x20every\x20customer\x20fetches\x20it\x20'+'when\x20placing\x20an\x20order.\x20A\x20local\x20file\x20path\x20(C:\x5c...,\x20/path/file.wip),\x20a\x20localhost/loopback\x20URL\x20'+'or\x20a\x20LAN\x20private-IP\x20URL\x20is\x20unreachable\x20by\x20customers\x20on\x20other\x20machines\x20—\x20it\x20passes\x20the\x20'+'merchant-side\x20set-time\x20verification\x20but\x20makes\x20order_new\x20abort\x20100%\x20for\x20customers.\x20'+'Either\x20deploy\x20the\x20.wip\x20file\x20to\x20a\x20public\x20endpoint\x20(GitHub\x20Pages\x20/\x20IPFS\x20/\x20your\x20own\x20website)\x20'+'and\x20set\x20this\x20to\x20the\x20public\x20URL,\x20or\x20leave\x20it\x20empty\x20(\x22\x22)\x20to\x20skip\x20WIP\x20verification\x20(TESTING\x20ONLY).\x20'+'Example:\x20\x22https://cdn.example.com/products/phone_v1.wip\x22'),'wip_hash':z['string']()['describe']('SHA-256\x20hash\x20(hex\x20string)\x20of\x20the\x20sale\x27s\x20WIP\x20file,\x20committed\x20on-chain\x20by\x20the\x20merchant.\x20'+'BUY\x20RULE:\x20if\x20this\x20is\x20NON-EMPTY,\x20the\x20buyer\x20MUST\x20pass\x20this\x20exact\x20value\x20as\x20wip_hash\x20when\x20creating\x20an\x20order\x20'+'(ServiceBuyItem.wip_hash)\x20—\x20NEVER\x20use\x20\x22\x22.\x20Pinning\x20the\x20on-chain\x20hash\x20prevents\x20the\x20merchant\x20from\x20replacing\x20'+'the\x20WIP\x20file\x20(a\x20legitimate\x20update)\x20between\x20the\x20buyer\x27s\x20view\x20and\x20order\x20placement,\x20ensuring\x20\x27what\x20you\x20see\x20is\x20'+'what\x20you\x20get\x27.\x20EMPTY\x20means\x20no\x20hash\x20was\x20committed\x20(TESTING\x20ONLY,\x20no\x20delivery-integrity\x20guarantee).')})['describe']('Service\x20sale');export const PurchasedItemSchema=z['object']({'name':LongNameSchema['describe']('Name\x20of\x20the\x20product\x20or\x20service'),'price':BalanceTypeSchema['describe']('Service\x20price'),'quantity':BalanceTypeSchema['describe']('Service\x20quantity'),'wip_hash':z['string']()['describe']('WIP\x20file\x20hash\x20of\x20the\x20item')});export const ObjectOrderSchema=ObjectBaseSchema['extend']({'items':z['array'](PurchasedItemSchema)['describe']('Purchased\x20service\x20list'),'discount':z['union']([z['string'](),z['null']()])['describe']('Used\x20discount\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['describe']('Order\x20progress\x20object\x20ID'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20ID\x20that\x20progress\x20belongs\x20to'),'amount':BalanceTypeSchema['describe']('Order\x20amount'),'builder':z['string']()['describe']('Purchaser\x20ID'),'service':z['string']()['describe']('Service\x20ID'),'dispute':z['array'](z['string']())['describe']('Arb\x20object\x20ID\x20list.\x20When\x20unsatisfied\x20with\x20order\x20delivery,\x20dispute\x20objects\x20can\x20be\x20created.'),'agent':z['array'](z['string']())['describe']('Agent\x20ID\x20list.\x20Agents\x20handle\x20all\x20order\x20operations\x20except\x20payment\x20collection.'),'allocation':z['union']([z['string'](),z['null']()])['describe']('Order\x20amount\x20allocation\x20object\x20ID'),'claimed_by':z['union']([z['string'](),z['null']()])['describe']('Order\x20dispute\x20object\x20ID\x20that\x20has\x20claimed\x20order\x20arbitration\x20amount.'),'required_info':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object\x20ID\x20(recipient)\x20or\x20WTS\x20Proof\x20object\x20(delivery\x20proof)\x20that\x20information\x20has\x20been\x20delivered\x20via\x20Wowok\x20Messenger.'),'time':z['union']([z['string'](),z['number']()])['describe']('Order\x20creation\x20time')});export const NamedOperatorSchema=z['object']({'name':z['string']()['describe']('Namespace\x20name'),'operators':z['array'](z['string']())['describe']('Operator\x20ID\x20list')})['describe']('Namespace\x20operator.\x20Namespace\x20is\x20a\x20permission\x20identifier\x20defined\x20in\x20Machine,\x20allowing\x20different\x20Progress\x20to\x20bind\x20different\x20operators\x20to\x20exercise\x20unified\x20permission\x20definitions.');export const ProgressSessionHolderSchema=z['object']({'forward':z['string']()['describe']('An\x20operation\x20name'),'who':z['union']([z['string'](),z['null']()])['describe']('Operator\x20ID'),'retained_submission':z['array'](GuardSubmissionSchema)['describe']('Values\x20persisted\x20into\x20the\x20Progress\x20history\x20when\x20this\x20forward\x20was\x20accomplished.\x20PROVENANCE:\x20when\x20the\x20Machine\x20forward\x20lists\x20retained_submission\x20identifiers,\x20the\x20Guard\x20is\x20STILL\x20fully\x20verified\x20first\x20—\x20the\x20forward\x20cannot\x20complete\x20without\x20a\x20passing\x20Guard\x20result.\x20After\x20verification,\x20exactly\x20the\x20caller\x27s\x20submissions\x20for\x20the\x20listed\x20identifiers\x20are\x20copied\x20here\x20as\x20Guard-verified\x20facts\x20(see\x20MachineForwardGuardSchema).'),'msg':z['string']()['describe']('Information\x20submitted\x20to\x20complete\x20operation'),'accomplished':z['boolean']()['describe']('Whether\x20completed'),'time':tolerantNumber['describe']('Session\x20creation\x20time')})['describe']('An\x20operation\x20in\x20Progress\x20session');export const ProgressSessionSchema=z['object']({'next_node':z['string']()['describe']('Next\x20node\x20ID'),'forwards':z['array'](ProgressSessionHolderSchema)['describe']('Operation\x20list\x20in\x20Progress\x20session'),'weights':tolerantNumber['describe']('Total\x20operation\x20weight'),'threshold':tolerantNumber['default'](0x0)['describe']('Operation\x20threshold.\x20When\x20total\x20operation\x20weight\x20exceeds\x20threshold,\x20session\x20is\x20considered\x20completed\x20and\x20Progress\x20moves\x20from\x20current\x20node\x20to\x20next\x20node.')})['describe']('Progress\x20session');export const ObjectProgressSchema=ObjectBaseSchema['extend']({'machine':z['string']()['describe']('Machine\x20ID\x20that\x20Progress\x20object\x20belongs\x20to'),'context_repositories':z['array'](z['string']())['describe']('Context\x20repository\x20list.\x20Used\x20to\x20store\x20context\x20data\x20during\x20Progress\x20operation.'),'current':z['string']()['describe']('Current\x20node\x20name'),'task':z['union']([z['string'](),z['null']()])['describe']('Target\x20task\x20ID\x20executed\x20by\x20Progress\x20(e.g.,\x20Order\x20ID)'),'namedOperator':z['array'](NamedOperatorSchema)['describe']('Namespace\x20operator\x20list.\x20Each\x20process\x20can\x20independently\x20maintain\x20operators\x20for\x20permissions\x20represented\x20by\x20its\x20namespace.'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'history_count':z['number']()['describe']('Number\x20of\x20historical\x20sessions\x20for\x20completed\x20nodes\x20in\x20Progress.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27ProgressHistory\x27\x20table\x20items.'),'current_time':z['number']()['describe']('Current\x20node\x20entry\x20timestamp')})['describe']('Progress\x20object');export const AmountSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('GuardU64Identifier'),'value':GuardIdentifierSchema})['describe']('Guard\x20verified\x20amount.\x20Get\x20amount\x20value\x20from\x20specified\x20data\x20index\x20in\x20Guard\x20table.\x20The\x20value\x20type\x20must\x20be\x20u64.'),z['object']({'type':z['literal']('Fixed'),'value':BalanceTypeSchema})['describe']('Fixed\x20amount')])['describe']('Amount');export const RewardGuardSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.'),'recipient':RecipientSchema,'amount':AmountSchema['describe']('Reward\x20amount'),'expiration_time':z['number']()['optional']()['describe']('Reward\x20Guard\x20expiration\x20time.\x20If\x20set,\x20the\x20reward\x20cannot\x20be\x20claimed\x20by\x20this\x20guard\x20after\x20the\x20expiration\x20time.\x20If\x20not\x20specified,\x20Reward\x20Guard\x20is\x20permanently\x20valid.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Reward\x20Guard\x20type');export const ObjectRewardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Reward\x20object\x20description'),'guards':z['array'](RewardGuardSchema)['describe']('Reward\x20claim\x20Guards\x20(guards:\x20vector<RewardGuard>).\x20Count\x20=\x20number\x20of\x20claim\x20paths:\x20each\x20Guard\x20defines\x20who\x20may\x20claim\x20and\x20how\x20much,\x20and\x20a\x20claim\x20pays\x20out\x20when\x20one\x20of\x20the\x20Guards\x20verifies\x20successfully.'),'balance':BalanceTypeSchema['describe']('Current\x20claimable\x20funds\x20left\x20in\x20the\x20Reward\x20pool\x20(balance:\x20Balance<T>)\x20—\x20every\x20payout\x20is\x20denominated\x20in\x20the\x20Reward\x27s\x20token\x20T.\x20Also\x20names\x20the\x20title\x20amount\x20badge\x20on\x20Reward\x20cards\x20(\x27N\x20SYMBOL\x27).'),'guard_not_added_expiration_time':z['union']([z['string'](),z['number'](),z['null']()])['describe']('Used\x20to\x20lock\x20whether\x20new\x20Reward\x20Guards\x20can\x20be\x20added.\x20If\x20not\x20specified,\x20new\x20Reward\x20Guards\x20can\x20be\x20added\x20at\x20any\x20time;\x20if\x20expiration\x20time\x20is\x20specified,\x20new\x20Reward\x20Guards\x20cannot\x20be\x20added\x20before\x20expiration.'),'record_count':z['number']()['describe']('Number\x20of\x20unique\x20addresses\x20that\x20have\x20claimed\x20from\x20this\x20Reward\x20(record:\x20ParentTable<address,\x20RecipientRecord>\x20—\x20one\x20entry\x20per\x20claimer).\x20Displayed\x20as\x20the\x20\x27Claimed\x20by\x27\x20count.'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Reward\x20object');export const AllocationModeSchema=z['union']([z['enum'](['Amount','Rate','Surplus']),z['number']()['int']()['min'](0x0)['max'](0x2)['transform'](a=>a===0x0?'Amount':a===0x1?'Rate':a===0x2?'Surplus':'Amount')])['describe']('Allocation\x20mode\x20—\x20determines\x20how\x20the\x20`sharing`\x20field\x20is\x20interpreted.\x20'+'Three\x20modes\x20can\x20be\x20used\x20individually\x20OR\x20combined\x20within\x20a\x20single\x20Allocator;\x20'+'when\x20combined,\x20allocation\x20order\x20is\x20strictly:\x20Amount\x20first,\x20then\x20Rate,\x20then\x20Surplus.\x20'+'Understanding\x20these\x20modes\x20allows\x20modeling\x20almost\x20any\x20fund\x20distribution\x20pattern.\x0a'+'•\x20Amount\x20(0):\x20`sharing`\x20is\x20a\x20FIXED\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20=\x200.75\x20WOW).\x20'+'Allocated\x20FIRST;\x20sum\x20of\x20all\x20Amount\x20items\x20is\x20cached\x20as\x20`fix`\x20by\x20the\x20contract.\x20'+'Validation:\x20when\x20no\x20Rate\x20and\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20allocators.threshold\x20(EAMOUNT_BELOW_THRESHOLD=12);\x20'+'when\x20`max`\x20is\x20set,\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13).\x0a'+'•\x20Rate\x20(1):\x20`sharing`\x20is\x20a\x20basis-points\x20rate\x20(10000\x20=\x20100%).\x20'+'Allocated\x20AFTER\x20Amount;\x20formula:\x20allocated\x20=\x20(sharing\x20×\x20total_rates)\x20/\x2010000,\x20'+'where\x20total_rates\x20=\x20balance\x20-\x20fix\x20(or\x20max\x20-\x20fix\x20if\x20`max`\x20is\x20set).\x20'+'Validation:\x20when\x20no\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20EXACTLY\x2010000\x20(ERATE_NOT_10000=4);\x20'+'when\x20Surplus\x20items\x20exist,\x20sum\x20of\x20all\x20Rate\x20items\x20must\x20be\x20<=\x2010000\x20(ERATE_EXCEEDS_10000=6).\x0a'+'•\x20Surplus\x20(2):\x20`sharing`\x20is\x20IGNORED\x20(contract\x20forces\x20it\x20to\x200).\x20'+'Allocated\x20LAST;\x20receives\x20the\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x20'+'Validation:\x20MAX\x20ONE\x20Surplus\x20item\x20per\x20Allocator\x20(EMULTIPLE_SURPLUS=5).\x20'+'When\x20Surplus\x20exists,\x20Rate\x20sum\x20constraint\x20relaxes\x20from\x20==\x2010000\x20to\x20<=\x2010000.\x0a'+'ALLOCATION\x20ORDER\x20(strict):\x20Amount\x20items\x20(fixed,\x20cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance-fix)\x20→\x20Surplus\x20item\x20(remaining).\x0a'+'RECOMMENDATION:\x20Use\x20Amount\x20mode\x20for\x20known\x20fixed\x20amounts\x20(clearer,\x20no\x20sum\x20constraint).\x20'+'Use\x20Rate\x20mode\x20for\x20proportional\x20splits\x20(requires\x20sum\x20==\x2010000\x20unless\x20Surplus\x20present).\x20'+'Use\x20Surplus\x20to\x20capture\x20remainder\x20(e.g.,\x20platform\x20fee\x20+\x20host\x20gets\x20rest).\x20'+'Accepts\x20string\x20(\x27Amount\x27/\x27Rate\x27/\x27Surplus\x27,\x20recommended)\x20or\x20number\x20(0/1/2).');export const AllocationSharingSchema=z['object']({'who':RecipientSchema['describe']('Recipient\x20of\x20this\x20allocation.\x20Three\x20forms\x20—\x20each\x20resolves\x20the\x20address\x20at\x20a\x20DIFFERENT\x20time:\x0a'+'•\x20{\x20GuardIdentifier:\x20u8\x20}\x20—\x20DYNAMIC\x20address\x20resolved\x20from\x20Passport\x20at\x20alloc()\x20time\x20(from\x20the\x20passport\x27s\x20submission\x20record).\x20'+'Use\x200\x20for\x20Order\x20owner\x20in\x20Service-integrated\x20mode\x20(Customer\x20who\x20created\x20the\x20Order).\x20'+'The\x20identifier\x20must\x20match\x20a\x20Guard\x20table\x20entry\x20with\x20b_submission=true.\x20'+'If\x20Passport\x20has\x20no\x20matching\x20submission,\x20contract\x20aborts\x20with\x20E_VERIFY_FAILED.\x20'+'Use\x20when\x20the\x20recipient\x20address\x20is\x20not\x20known\x20at\x20config\x20time\x20and\x20must\x20be\x20supplied\x20via\x20Guard\x20submission\x20data.\x0a'+'•\x20{\x20Entity:\x20{\x20name_or_address:\x20\x27...\x27\x20}\x20}\x20—\x20FIXED\x20address\x20resolved\x20via\x20LocalMark\x20at\x20SDK\x20build\x20time\x20(passed\x20to\x20contract\x20as\x20a\x20literal\x20address).\x20'+'Use\x20for\x20known\x20recipients\x20(e.g.,\x20\x27turo_host\x27,\x20or\x20a\x20Treasury\x20object\x20address).\x20'+'Use\x20when\x20the\x20recipient\x20is\x20a\x20stable,\x20known\x20address\x20(e.g.,\x20operator\x20receives\x20rent,\x20platform\x20fee\x20to\x20treasury).\x0a'+'•\x20\x27Signer\x27\x20—\x20the\x20transaction\x20sender\x20at\x20the\x20time\x20of\x20the\x20alloc()\x20call\x20(tx_context::sender).\x20'+'RESOLVED\x20AT\x20EXECUTION\x20TIME,\x20not\x20at\x20config\x20time.\x20'+'For\x20refunds:\x20the\x20customer\x20(Order\x20owner)\x20must\x20call\x20alloc_by_guard\x20THEMSELVES\x20so\x20that\x20tx_context::sender\x20resolves\x20to\x20THEIR\x20address\x20—\x20'+'if\x20the\x20operator\x20calls\x20alloc_by_guard,\x20the\x20operator\x20becomes\x20the\x20recipient\x20(Signer\x20=\x20operator),\x20NOT\x20the\x20customer.\x20'+'Use\x20when\x20the\x20recipient\x20is\x20whoever\x20submits\x20the\x20allocation\x20transaction\x20(e.g.,\x20customer\x20receives\x20refund).'),'sharing':BalanceTypeSchema['describe']('Allocation\x20value.\x20SEMANTICS\x20DEPEND\x20ON\x20`mode`:\x0a'+'•\x20mode=\x27Amount\x27:\x20absolute\x20amount\x20in\x20smallest\x20unit\x20(e.g.,\x20\x27750000000\x27\x20for\x200.75\x20WOW,\x20\x27250000000\x27\x20for\x200.25\x20WOW).\x20'+'Allocated\x20first;\x20sum\x20of\x20Amount\x20items\x20cached\x20as\x20`fix`.\x0a'+'•\x20mode=\x27Rate\x27:\x20basis-points\x20rate,\x2010000\x20=\x20100%\x20(e.g.,\x20\x277500\x27\x20for\x2075%,\x20\x272500\x27\x20for\x2025%).\x20'+'When\x20no\x20Surplus\x20in\x20same\x20Allocator,\x20sum\x20MUST\x20==\x2010000;\x20when\x20Surplus\x20present,\x20sum\x20MUST\x20<=\x2010000.\x0a'+'•\x20mode=\x27Surplus\x27:\x20IGNORED\x20(contract\x20forces\x20to\x200).\x20Set\x20to\x20\x270\x27\x20for\x20clarity.\x20'+'Receives\x20remaining\x20balance\x20after\x20Amount\x20+\x20Rate\x20allocations.\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-2):\x20the\x20value\x20is\x20PRE-CONFIGURED\x20and\x20STATIC.\x20A\x20continuous/conditional\x20amount\x20'+'(e.g.\x20\x27pay\x20exactly\x20the\x20assessed\x20loss\x20amount\x27)\x20CANNOT\x20be\x20expressed\x20—\x20there\x20is\x20no\x20runtime\x20formula\x20field.\x20'+'Model\x20variable\x20payouts\x20as\x20(a)\x20a\x20fixed-tier\x20Allocator\x20list\x20guarded\x20by\x20distinct\x20Guards,\x20or\x20(b)\x20an\x20Amount\x20'+'with\x20a\x20`max`\x20cap\x20—\x20both\x20are\x20finite\x20configurations,\x20not\x20free-form\x20formulas.'),'mode':AllocationModeSchema})['describe']('Fund\x20allocation\x20item\x20—\x20one\x20recipient\x27s\x20share\x20of\x20the\x20Allocation\x20balance.\x20'+'The\x20`sharing`\x20value\x27s\x20meaning\x20depends\x20on\x20`mode`\x20(see\x20AllocationModeSchema).\x20'+'Multiple\x20items\x20in\x20the\x20same\x20Allocator\x20are\x20evaluated\x20together:\x20Amount\x20items\x20first,\x20Rate\x20items\x20second,\x20Surplus\x20last.');export const AllocatorSchema=z['object']({'guard':NameOrAddressSchema['describe']('Guard\x20object\x20ID\x20or\x20name.\x20If\x20Guard\x20verification\x20passes\x20(via\x20Passport),\x20fund\x20allocation\x20for\x20THIS\x20Allocator\x20fires.\x20'+'Each\x20Allocator\x20in\x20an\x20Allocators\x20list\x20can\x20have\x20a\x20different\x20Guard\x20—\x20the\x20first\x20Allocator\x20whose\x20Guard\x20returns\x20true\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x20refund\x20Guard\x20on\x20\x27return_approved\x27\x20node\x20vs\x20damage\x20Guard\x20on\x20\x27damage_confirmed\x27\x20node).'),'sharing':z['array'](AllocationSharingSchema)['describe']('Fund\x20allocation\x20item\x20list.\x20Each\x20item\x20specifies\x20a\x20recipient\x20(who),\x20a\x20value\x20(sharing),\x20and\x20a\x20mode.\x20'+'Items\x20can\x20mix\x20modes\x20(Amount\x20+\x20Rate\x20+\x20Surplus)\x20within\x20the\x20same\x20Allocator.\x20'+'RECIPIENT\x20SEMANTICS:\x20the\x20Guard\x20constrains\x20what\x20each\x20submission\x20slot\x20may\x20be;\x20a\x20recipient\x27s\x20safety\x20follows\x20from\x20the\x20sufficiency\x20of\x20those\x20constraints\x20'+'(run\x20the\x20recipient\x20constraint\x20audit).\x20Canonical\x20order\x20pattern:\x20recipient\x20=\x20the\x20single\x20submitted\x20Order\x20—\x20funds\x20land\x20at\x20that\x20object\x20and\x20are\x20receivable\x20only\x20by\x20its\x20owner.\x20'+'ALLOCATION\x20ORDER:\x20Amount\x20items\x20first\x20(cached\x20as\x20fix)\x20→\x20Rate\x20items\x20(proportional\x20to\x20balance\x20-\x20fix)\x20→\x20Surplus\x20item\x20(remaining).\x20'+'CONSTRAINTS:\x20max\x20ONE\x20Surplus\x20item\x20per\x20Allocator;\x20Rate\x20sum\x20must\x20==\x2010000\x20(no\x20Surplus)\x20or\x20<=\x2010000\x20(with\x20Surplus);\x20'+'Amount\x20sum\x20must\x20>=\x20threshold\x20(no\x20Rate\x20and\x20no\x20Surplus)\x20and\x20<=\x20max\x20(if\x20max\x20set).'),'fix':BalanceTypeSchema['optional']()['describe']('OUTPUT-ONLY\x20(query\x20result).\x20Cached\x20sum\x20of\x20all\x20Amount-mode\x20`sharing`\x20values\x20in\x20this\x20Allocator.\x20'+'Computed\x20by\x20the\x20contract\x20when\x20the\x20allocator\x20is\x20added\x20—\x20DO\x20NOT\x20set\x20this\x20field\x20at\x20creation.\x20'+'Used\x20internally\x20to\x20compute\x20`total_rates\x20=\x20balance\x20-\x20fix`\x20for\x20Rate\x20allocation.'),'max':z['union']([BalanceTypeSchema,z['null']()])['optional']()['describe']('Maximum\x20allocation\x20cap\x20(OPTIONAL\x20—\x20omit\x20the\x20field\x20or\x20set\x20to\x20null\x20to\x20disable\x20the\x20cap;\x20do\x20NOT\x20set\x20to\x200\x20as\x20that\x20means\x20a\x20cap\x20of\x20zero).\x20'+'Passed\x20through\x20to\x20the\x20contract\x20as\x20Option<u64>\x20when\x20the\x20allocator\x20is\x20added:\x20when\x20null/omitted\x20the\x20contract\x20treats\x20it\x20as\x20`none`\x20(no\x20cap);\x20'+'when\x20set,\x20the\x20contract\x20enforces\x20it.\x20Has\x20THREE\x20effects\x20when\x20set:\x0a'+'1.\x20Construction:\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20<=\x20max\x20(EAMOUNT_EXCEEDS_MAX=13)\x0a'+'2.\x20Rate\x20execution:\x20total_rates\x20=\x20max\x20-\x20fix\x20(instead\x20of\x20balance\x20-\x20fix)\x0a'+'3.\x20Surplus\x20execution:\x20surplus_amount\x20=\x20max\x20-\x20alloced_amount\x20(instead\x20of\x20balance\x20-\x20alloced_amount)\x0a'+'Use\x20when\x20you\x20want\x20to\x20cap\x20total\x20allocation\x20regardless\x20of\x20Order\x20balance\x20(e.g.,\x20cap\x20payout\x20to\x20declared\x20amount).\x20'+'SDK\x20pre-validates\x20Amount\x20sum\x20<=\x20max\x20at\x20build\x20time\x20to\x20give\x20actionable\x20error\x20messages\x20before\x20on-chain\x20abort.')})['describe']('Fund\x20allocator\x20—\x20a\x20complete\x20allocation\x20strategy\x20triggered\x20by\x20a\x20Guard.\x20'+'Contains\x20a\x20sharing[]\x20array\x20where\x20items\x20can\x20mix\x20Amount/Rate/Surplus\x20modes.\x20'+'When\x20the\x20Guard\x20passes,\x20the\x20contract\x20allocates\x20funds\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.');export const AllocatorsSchema=z['object']({'description':DescriptionSchema['describe']('Description\x20of\x20fund\x20allocator\x20list'),'threshold':BalanceTypeSchema['default'](0x0)['describe']('Minimum\x20balance\x20required\x20for\x20allocation\x20to\x20fire.\x20'+'When\x20the\x20Allocation\x20object\x27s\x20balance\x20<\x20threshold,\x20allocation\x20aborts\x20with\x20EINSUFFICIENT_BALANCE=7.\x20'+'Also:\x20when\x20an\x20Allocator\x20has\x20only\x20Amount\x20items\x20(no\x20Rate,\x20no\x20Surplus),\x20the\x20sum\x20of\x20Amount\x20items\x20must\x20be\x20>=\x20threshold\x20(EAMOUNT_BELOW_THRESHOLD=12).\x20'+'Set\x20to\x200\x20(default)\x20to\x20allow\x20any\x20balance.'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocator\x20list.\x20Each\x20allocator\x20is\x20evaluated\x20in\x20order;\x20the\x20FIRST\x20allocator\x20whose\x20Guard\x20passes\x20wins.\x20'+'This\x20enables\x20mutually\x20exclusive\x20allocation\x20paths\x20(e.g.,\x203\x20allocators\x20for\x203\x20forward\x20paths:\x20refund\x20/\x20damage-deduct\x20/\x20arbitrate).')})['describe']('Fund\x20allocator\x20list\x20—\x20the\x20top-level\x20allocation\x20configuration\x20attached\x20to\x20an\x20Order.\x20'+'Contains\x20a\x20threshold\x20and\x20a\x20list\x20of\x20Allocators.\x20When\x20funds\x20arrive\x20at\x20the\x20Order,\x20'+'the\x20first\x20Allocator\x20whose\x20Guard\x20passes\x20executes\x20its\x20sharing[]\x20in\x20strict\x20order:\x20Amount\x20→\x20Rate\x20→\x20Surplus.\x20'+'MULTI-TIER\x20ALLOCATION\x20(DOC-04):\x20Each\x20Order\x20binds\x20ONE\x20Allocators\x20template\x20(set\x20on\x20Service.order_allocators\x20before\x20publish).\x20'+'For\x20multi-tier\x20distribution\x20(e.g.,\x20customer→agency→suppliers),\x20use\x20a\x20two-phase\x20approach:\x20'+'(1)\x20Tier-1\x20Allocators\x20on\x20the\x20customer\x27s\x20Order\x20(allocates\x20to\x20agency\x20+\x20refund\x20fund);\x20'+'(2)\x20Tier-2\x20Allocators\x20on\x20a\x20NEW\x20Order\x20created\x20by\x20the\x20agency\x20(allocates\x20agency\x27s\x20received\x20funds\x20to\x20suppliers).\x20'+'Each\x20tier\x27s\x20Rate-mode\x20sharing[]\x20must\x20independently\x20sum\x20to\x2010000\x20(or\x20<=\x2010000\x20with\x20Surplus).');export const ObjectServiceSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Service\x20object\x20description'),'location':z['string']()['describe']('The\x20service\x20area\x20and\x20scope\x20as\x20stated\x20by\x20the\x20merchant.'),'sales':z['array'](ServiceSaleSchema)['describe']('Service\x20sale\x20list.'),'repositories':z['array'](z['string']())['describe']('Repository\x20object\x20list\x20for\x20service\x20object\x27s\x20shared\x20data'),'buy_guard':z['union']([z['string'](),z['null']()])['describe']('Purchase\x20Guard\x20object\x20ID.\x20If\x20defined,\x20service\x20can\x20only\x20be\x20purchased\x20if\x20Guard\x20verification\x20passes.'),'machine':z['union']([z['string'](),z['null']()])['describe']('Machine\x20object\x20ID\x20for\x20each\x20order\x27s\x20processing\x20flow.\x20The\x20Machine\x20must\x20be\x20in\x20published\x20state.'),'bPublished':z['boolean']()['describe']('Whether\x20service\x20is\x20published.\x20If\x20service\x20is\x20published,\x20customers\x20can\x20purchase\x20it;\x20and\x20related\x20settings\x20like\x20Machine,\x20arbitrations,\x20order_allocators\x20will\x20be\x20immutable.'),'bPaused':z['boolean']()['describe']('Whether\x20service\x20purchase\x20is\x20paused.\x20SPECIAL\x20CASE:\x20publish\x20auto-sets\x20bPaused=false\x20—\x20no\x20separate\x20unpause\x20call\x20needed\x20after\x20publish.'),'customer_required':z['array'](z['string']())['describe']('Information\x20required\x20from\x20customer.\x20Such\x20as\x20phone,\x20email,\x20etc.'),'arbitrations':z['array'](z['string']())['describe']('List\x20of\x20Arbitration\x20objects\x20supported\x20by\x20service.\x20When\x20order\x20user\x20needs\x20arbitration,\x20they\x20can\x20apply\x20for\x20arbitration\x20with\x20any\x20Arbitration\x20object\x20in\x20the\x20list.'),'compensation_fund':BalanceTypeSchema['describe']('Compensation\x20fund\x20BALANCE\x20(NOT\x20a\x20Treasury\x20address).\x20'+'This\x20field\x20reports\x20the\x20total\x20amount\x20of\x20funds\x20currently\x20held\x20in\x20the\x20Service\x27s\x20compensation\x20pool.\x20'+'To\x20ADD\x20funds,\x20use\x20`service.compensation_fund_add`.\x20To\x20RECEIVE\x20funds\x20(as\x20order\x20owner\x20after\x20arbitration),\x20use\x20`service.compensation_fund_receive`.\x20'+'P2-03\x20clarification:\x20this\x20is\x20a\x20balance\x20value\x20(e.g.\x20{balance:\x20\x271000000000\x27,\x20token_type:\x20\x270x2::wow::WOW\x27}),\x20NOT\x20the\x20Treasury\x20object\x20address.\x20'+'The\x20Treasury\x20address\x20(if\x20bound)\x20is\x20queried\x20separately\x20via\x20the\x20Service\x27s\x20`repositories`\x20or\x20`order_allocators`\x20configuration.'),'paused_time':z['union']([z['number'](),z['null']()])['describe']('Service\x20purchase\x20pause\x20time.\x20If\x20not\x20paused,\x20it\x20is\x20null.'),'setting_lock_duration':z['union']([z['string'](),z['number'](),z['bigint']()])['describe']('Lock\x20duration\x20for\x20critical\x20operations.\x20Anchored\x20to\x20the\x20\x27paused_time\x27\x20timestamp.\x20'+'After\x20Service\x20is\x20published,\x20only\x20the\x20following\x20operations\x20are\x20gated\x20by\x20this\x20lock:\x20'+'(1)\x20compensation_fund_withdraw,\x20(2)\x20rewards\x20remove/clear,\x20(3)\x20arbitrations\x20remove/clear.\x20'+'All\x20require\x20the\x20Service\x20to\x20be\x20paused\x20AND\x20paused_time\x20+\x20setting_lock_duration\x20<=\x20current\x20clock.\x20'+'Adding\x20rewards/arbitrations,\x20modifying\x20sales/description/location/buy_guard/customer_required/um,\x20'+'and\x20depositing\x20to\x20compensation_fund\x20are\x20NOT\x20gated\x20by\x20this\x20lock.\x20'+'order_allocators\x20and\x20machine\x20are\x20permanently\x20immutable\x20after\x20publish\x20(not\x20related\x20to\x20this\x20lock).'),'order_allocators':z['union']([AllocatorsSchema,z['null']()])['describe']('Order\x20fund\x20allocator\x20list.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Service\x20object');export const ArbVotedSchema=z['object']({'voter':z['string']()['describe']('Voter\x20ID'),'agrees':z['array'](z['number']()['min'](0x0)['max'](0xff))['describe']('List\x20of\x20supported\x20Proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight'),'time':z['number']()['describe']('Voting\x20time')})['describe']('Voting\x20record');export const ArbPropositionSchema=z['object']({'name':z['string']()['describe']('Proposal\x20name'),'votes':z['number']()['describe']('Number\x20of\x20votes\x20supporting\x20this\x20proposal')})['describe']('Proposal');export const ArbIndemnitySchema=z['object']({'amount':BalanceTypeSchema['describe']('Compensation\x20amount'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arbitration\x20compensation');export const ArbStatusSchema=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn'])['describe']('Arb\x20object\x20status');export const ObjectArbSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arb\x20object\x20statement'),'arbitration':z['string']()['describe']('Parent\x20arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'voted':z['array'](ArbVotedSchema)['describe']('Voting\x20record\x20list'),'proposition':z['array'](ArbPropositionSchema)['describe']('Claim/proposal\x20list'),'fee':BalanceTypeSchema['describe']('Arbitration\x20fee'),'feedback':z['string']()['describe']('Arbitration\x20feedback'),'indemnity':z['union']([ArbIndemnitySchema,z['null']()])['optional']()['describe']('Arbitration\x20compensation'),'voting_deadline':z['union']([z['number'](),z['string']()])['optional']()['describe']('Voting\x20deadline'),'objection':z['string']()['describe']('Arbitration\x20objection'),'status':ArbStatusSchema,'compensation_time':z['union']([z['number'](),z['null']()])['describe']('Compensation\x20claim\x20time'),'time':z['number']()['describe']('Arbitration\x20time')})['describe']('Arb\x20object');export const DiscountTypeSchema=z['union']([z['number']()['int']()['min'](0x0)['max'](0x1),z['enum'](['RATES','FIXED'])['transform'](a=>a==='RATES'?0x0:0x1)])['describe']('Discount\x20type\x20—\x200=RATES\x20(proportional\x20off,\x20per-10000:\x20e.g.\x201000\x20means\x2010%\x20off),\x201=FIXED\x20(fixed\x20deduction\x20of\x20the\x20product\x20amount,\x20base\x20units:\x20e.g.\x20100\x20means\x20100\x20deducted).\x20Accepts\x20the\x20number\x20(0/1)\x20or\x20the\x20string\x20(\x27RATES\x27/\x27FIXED\x27);\x20the\x20value\x20is\x20always\x20stored\x20as\x20the\x20number\x20on-chain.');export const ObjectDiscountSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Discount\x20name'),'discount_type':DiscountTypeSchema['describe']('Discount\x20type.\x20If\x20rate(0),\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20fixed(1),\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20100\x20yuan\x20discount).'),'benchmark':z['union']([BalanceTypeSchema,z['null']()])['describe']('Discount\x20benchmark\x20amount.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20this\x20amount;\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20this\x20amount.'),'off':BalanceTypeSchema['describe']('Discount\x20value.\x20If\x20RATES,\x20discount\x20is\x20based\x20on\x20proportion\x20of\x20product\x20amount\x20(e.g.,\x201000\x20means\x2010%\x20discount);\x20if\x20MINUS,\x20discount\x20is\x20based\x20on\x20fixed\x20value\x20of\x20product\x20amount\x20(e.g.,\x20100\x20means\x20maximum\x20100\x20yuan\x20discount).'),'time_start':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20start\x20time'),'time_end':z['union']([z['string'](),z['number']()])['describe']('Discount\x20effective\x20end\x20time'),'service':z['string']()['describe']('Parent\x20service\x20object\x20ID'),'transferable':z['boolean']()['describe']('Whether\x20discount\x20is\x20transferable\x20to\x20other\x20users')})['describe']('Discount\x20object');export const AmountFromDepositGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20storable\x20amount.\x20If\x20null,\x20deposit\x20amount\x20is\x20unlimited.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20deposit');export const AmountFromWithdrawGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID\x20or\x20name'),'identifier':z['number']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20withdrawable\x20amount.'),'store_from_id':z['union']([GuardIdentifierSchema,z['null']()])['optional']()['describe']('Guard\x20table\x20data\x20index\x20for\x20record\x20storage.\x20The\x20value\x20at\x20this\x20index\x20(address\x20or\x20number,\x20including\x20submitted\x20values)\x20will\x20be\x20stored\x20in\x20the\x20record\x20for\x20Guard\x20verification\x20purposes,\x20such\x20as\x20controlling\x20operation\x20frequency.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20during\x20withdrawal');export const ObjectTreasurySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Treasury\x20object\x20description'),'balance':BalanceTypeSchema['describe']('Current\x20funds\x20held\x20in\x20the\x20Treasury\x20pool\x20(balance:\x20Balance<T>),\x20denominated\x20in\x20the\x20Treasury\x27s\x20token\x20T.'),'history_count':z['number']()['describe']('Number\x20of\x20transaction\x20records\x20in\x20the\x20Treasury\x27s\x20history\x20(history:\x20ParentTable<address,\x20Record>\x20—\x20one\x20entry\x20per\x20payment).\x20Displayed\x20as\x20the\x20\x27Transactions\x27\x20count.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20list\x20individual\x20TreasuryRecord\x20items.'),'external_deposit_guard':z['array'](AmountFromDepositGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20deposit'),'external_withdraw_guard':z['array'](AmountFromWithdrawGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20for\x20non-permissioned\x20users\x20during\x20withdrawal'),'inflow':BalanceTypeSchema['describe']('Total\x20funds\x20received\x20by\x20this\x20Treasury\x20across\x20its\x20lifetime,\x20denominated\x20in\x20the\x20Treasury\x27s\x20token\x20(sum\x20of\x20every\x20deposit).'),'outflow':BalanceTypeSchema['describe']('Total\x20funds\x20paid\x20out\x20by\x20this\x20Treasury\x20across\x20its\x20lifetime,\x20denominated\x20in\x20the\x20Treasury\x27s\x20token\x20(sum\x20of\x20every\x20withdrawal).'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Treasury\x20object');export const TreasuryOpSchema=z['enum'](['Withdraw','Deposit','Receive'])['describe']('Treasury\x20object\x20operation\x20type');export const TreasuryRecordSchema=z['object']({'op':TreasuryOpSchema['describe']('Treasury\x20object\x20operation\x20type'),'signer':z['string']()['describe']('Operator\x20user\x20ID'),'external_guard':z['union']([z['string'](),z['null']()])['describe']('External\x20Guard\x20object\x20ID.\x20If\x20null,\x20operation\x20was\x20completed\x20through\x20Permission\x20object\x20permissions.'),'amount':BalanceTypeSchema['describe']('Operation\x20amount'),'time':z['union']([z['number'](),z['string']()])['describe']('Operation\x20time'),'store_from_id':z['union']([z['string'](),z['null']()])['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Treasury\x20object\x20transaction\x20record');export const PolicyWriteGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'id_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20(or\x20address)\x20is\x20the\x20ID\x20of\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20ID\x20separately.'),'data_from_submission':GuardIdentifierSchema['optional']()['describe']('Guard\x20Table\x20data\x20index,\x20whose\x20corresponding\x20value\x20is\x20the\x20data\x20to\x20be\x20written.\x20If\x20null,\x20user\x20must\x20specify\x20the\x20data\x20separately.')})['describe']('Guard\x20object\x20that\x20needs\x20verification\x20when\x20writing\x20policy');export const IdFromSchema=z['union']([z['literal'](0x0)['describe']('None\x20(0)'),z['literal'](0x1)['describe']('Clock\x20(1)'),z['literal'](0x2)['describe']('Signer\x20(2)'),z['literal']('None')['describe']('None'),z['literal']('Clock')['describe']('Clock'),z['literal']('Signer')['describe']('Signer'),z['literal']('none')['describe']('none'),z['literal']('clock')['describe']('clock'),z['literal']('signer')['describe']('signer')])['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20Can\x20be\x20specified\x20as\x20a\x20string\x20name\x20(e.g.,\x20\x27Clock\x27,\x20\x27clock\x27,\x20\x27Signer\x27,\x20\x27signer\x27)\x20or\x20a\x20number\x20(0-2).\x20Supported\x20values:\x20None=0/\x27None\x27/\x27none\x27,\x20Clock=1/\x27Clock\x27/\x27clock\x27,\x20Signer=2/\x27Signer\x27/\x27signer\x27.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.');export const PolicyRuleSchema=z['object']({'name':z['string']()['describe']('Policy\x20rule\x20name'),'description':z['string']()['describe']('Policy\x20rule\x20description'),'write_guard':z['array'](PolicyWriteGuardSchema)['describe']('Guard\x20object\x20list\x20that\x20can\x20be\x20verified\x20when\x20writing\x20data.\x20REQUIRED\x20(non-empty)\x20when\x20id_from\x20is\x200/None\x20(chain\x20abort\x2022);\x20optional\x20when\x20id_from\x20is\x20Clock/Signer.'),'quote_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20referencing\x20this\x20policy\x20data\x20on-chain\x20(e.g.,\x20verifying\x20if\x20user\x20has\x20paid\x20subscription).\x20If\x20null,\x20no\x20verification\x20is\x20needed\x20for\x20on-chain\x20references.\x20The\x20Guard\x20must\x20have\x20empty\x20\x27relies\x27\x20field\x20and\x20\x27rep\x27\x20field\x20true.'),'id_from':IdFromSchema['describe']('Source\x20of\x20data\x20ID\x20when\x20writing\x20data.\x20If\x20None,\x20user\x20must\x20specify\x20the\x20ID\x20separately;\x20if\x20Clock,\x20data\x20ID\x20is\x20current\x20timestamp;\x20if\x20Signer,\x20data\x20ID\x20is\x20user\x20ID.'),'value_type':ValueTypeUserSchema['describe']('Type\x20of\x20data\x20value\x20when\x20writing\x20data.\x20Note:\x2019\x20(Value)\x20is\x20an\x20internal\x20dynamic\x20type\x20for\x20guard\x20expressions\x20and\x20is\x20NOT\x20accepted\x20here.')})['superRefine']((a,b)=>{const c=a['id_from']===0x0||a['id_from']==='None'||a['id_from']==='none';c?(!Array['isArray'](a['write_guard'])||a['write_guard']['length']===0x0)&&b['addIssue']({'code':z['ZodIssueCode']['custom'],'path':['write_guard'],'message':'write_guard\x20must\x20be\x20a\x20non-empty\x20array\x20when\x20id_from\x20is\x20None(0):\x20without\x20a\x20write\x20guard\x20anyone\x20could\x20mutate\x20the\x20data,\x20and\x20the\x20repository\x20aborts\x20with\x2022\x20(E_POLICY_WRITE_GUARD_REQUIRED).'}):a['write_guard']['forEach']((d,e)=>{d['id_from_submission']!==undefined&&d['id_from_submission']!==null&&b['addIssue']({'code':z['ZodIssueCode']['custom'],'path':['write_guard',e,'id_from_submission'],'message':'id_from_submission\x20is\x20forbidden\x20when\x20id_from\x20is\x20Clock/Signer:\x20the\x20data\x20ID\x20is\x20auto-generated\x20from\x20the\x20clock/signer,\x20so\x20a\x20submission-derived\x20ID\x20conflicts\x20(repository\x20aborts\x20with\x2023\x20E_POLICY_ID_FROM_SUBMISSION_FORBIDDEN).'});});});export const TableItem_RepositoryDataSchema=ObjectBaseSchema['extend']({'entity':z['string']()['describe']('Object\x20or\x20user\x20ID'),'name':z['string']()['describe']('Data\x20item\x20name\x20(Policy\x20Name)'),'value':z['array'](z['number']())['describe']('Raw\x20data\x20value\x20(first\x20byte\x20is\x20value\x20type,\x20remaining\x20bytes\x20are\x20Bcs\x20formatted\x20value)'),'data':z['object']({'value_type':ValueTypeSchema['describe']('Type\x20of\x20data\x20value.'),'value':SupportedValueSchema['describe']('Data\x20value.')})})['describe']('Storage\x20data\x20item\x20owned\x20by\x20Repository\x20object');export const TableItem_RewardRecordSchema=ObjectBaseSchema['extend']({'recipient':z['string']()['describe']('Reward\x20recipient\x20ID'),'guard':z['string']()['nullable']()['optional']()['describe']('Guard\x20object\x20ID\x20(RecipientRecord\x20carries\x20none\x20—\x20the\x20per-claim\x20Record.guard\x20is\x20the\x20verified\x20guard)'),'total':BalanceTypeSchema['describe']('Total\x20reward\x20amount'),'record':z['array'](z['object']({'guard':tolerantStringNullable['describe']('Guard\x20that\x20verified\x20this\x20claim\x20(Record.guard)'),'amount':BalanceTypeSchema['describe']('Reward\x20amount'),'time':tolerantNumber['describe']('Reward\x20time'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')}))['describe']('Reward\x20record\x20list')})['describe']('Reward\x20object\x27s\x20reward\x20record');export const ObjectRepositorySchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Repository\x20object\x20description'),'policies':z['array'](PolicyRuleSchema)['describe']('Repository\x20object\x20policy\x20rule\x20list'),'data_count':z['number']()['describe']('Number\x20of\x20data\x20items\x20stored\x20in\x20Repository\x20object.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27RepositoryData\x27\x20table\x20items.'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Permission\x20object\x20ID')})['describe']('Repository\x20object');export const ImSchema=z['object']({'at':z['string']()['describe']('Contact\x27s\x20account\x20address\x20for\x20instant\x20messaging'),'status':z['string']()['describe']('Contact\x27s\x20current\x20status\x20message'),'join_time':z['number']()['describe']('Timestamp\x20when\x20contact\x20joined\x20(milliseconds\x20since\x20epoch)'),'description':z['string']()['describe']('Description\x20or\x20note\x20about\x20this\x20contact')})['describe']('Instant\x20Messaging\x20contact\x20entry\x20with\x20address,\x20status,\x20and\x20metadata');export const ObjectContactSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Contact\x20object\x20description\x20or\x20public\x20information'),'permission':z['string']()['describe']('Permission\x20object\x20ID\x20that\x20controls\x20who\x20can\x20modify\x20this\x20contact'),'location':z['string']()['describe']('Physical\x20contact\x20address\x20(NOT\x20a\x20service\x20area)'),'ims':z['array'](ImSchema)['describe']('List\x20of\x20instant\x20messaging\x20contacts.\x20Each\x20entry\x20contains\x20an\x20address\x20for\x20encrypted\x20real-time\x20communication\x20via\x20Wowok\x20Messenger')})['describe']('Contact\x20object\x20storing\x20on-chain\x20instant\x20messaging\x20addresses\x20for\x20real-time\x20encrypted\x20communication\x20between\x20object\x20managers\x20and\x20users');export const ObjectPersonalSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x27s\x20address'),'like':z['number']()['describe']('User\x27s\x20received\x20like\x20count'),'dislike':z['number']()['describe']('User\x27s\x20received\x20dislike\x20count'),'favor':z['number']()['describe']('User\x27s\x20received\x20favor\x20count'),'info':z['array'](RecordsInEntitySchema)['describe']('User\x27s\x20personal\x20information\x20record\x20list'),'description':z['string']()['describe']('User\x27s\x20personal\x20description'),'referrer':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20referrer\x20ID'),'mark_object':z['union']([z['string'](),z['null']()])['describe']('On-chain\x20address\x20mark\x20object\x20ID'),'details':z['array'](VoteInEntityLinkerSchema)['describe']('User\x27s\x20voting\x20record\x20list\x20in\x20EntityLinker'),'active_tx':z['union']([z['string'](),z['null']()])['describe']('User\x27s\x20recent\x20active\x20transaction\x20ID'),'passive_tx':z['union']([z['string'](),z['null']()])['describe']('Recent\x20transaction\x20ID\x20interacting\x20with\x20user'),'time':z['number']()['describe']('User\x20object\x20creation\x20time')})['describe']('Personal\x20object');export const ObjectProofSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Proof\x20description'),'proof':z['string']()['describe']('Proof\x20content.\x20e.g.,\x20merkle\x20tree\x20root'),'server_pubkey':z['string']()['describe']('Server\x20public\x20key'),'server_signature':z['string']()['describe']('Server\x20signature'),'proof_type':z['union']([z['number'](),z['string']()])['describe']('Proof\x20type.\x201:\x20WTS\x20proof;\x201-100\x20reserved.'),'item_count':z['union']([z['number'](),z['string'](),z['null']()])['describe']('Item\x20count.\x20e.g.,\x20number\x20of\x20items\x20in\x20the\x20merkle\x20tree'),'about_address':z['union']([z['string'](),z['null']()])['describe']('About\x20address.\x20e.g.,\x20address\x20of\x20the\x20entity\x20being\x20proved'),'signer':z['string']()['describe']('Signer\x20address'),'time':z['number']()['describe']('Proof\x20creation\x20time')})['describe']('Proof\x20object');export const WReceivedObjectSchema=ObjectBaseSchema['extend']({'balance':BalanceTypeSchema['describe']('Amount\x20contained\x20in\x20object'),'payment':z['string']()['describe']('Payment\x20object\x20ID')})['describe']('Amount\x20object\x20received\x20by\x20on-chain\x20object');export const ObjectPermissionSchema=ObjectBaseSchema['extend']({'builder':z['string']()['describe']('Permission\x20object\x20owner\x20ID\x20(highest\x20permission\x20user)'),'admin':z['array'](z['string']())['describe']('Admin\x20user\x20ID\x20list'),'description':z['string']()['describe']('Permission\x20object\x20description'),'entity_count':z['number']()['describe']('Number\x20of\x20user\x20IDs\x20and\x20Guard\x20IDs\x20granted\x20permissions.\x20Use\x20\x27query_table\x27\x20or\x20\x27query_table_item\x27\x20to\x20get\x20\x27PermissionPerm\x27\x20table\x20items.'),'perm_remark':z['array'](z['object']({'index':PermissionIndexTypeSchema,'remark':z['string']()['describe']('Permission\x20item\x20remark')}))['describe']('Permission\x20item\x20remark\x20list'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object')})['describe']('Permission\x20object');export const WitnessTypeSchema=z['union']([z['number']()['int']()['refine'](isWitnessType,{'message':'Invalid\x20WitnessType\x20numeric\x20value.\x20Valid\x20range:\x20100-108.'}),z['string']()['refine'](a=>isValidWitnessType(a),{'message':'Invalid\x20WitnessType\x20string\x20name.\x20Valid\x20names:\x20OrderProgress\x20(100),\x20OrderMachine\x20(101),\x20OrderService\x20(102),\x20ProgressMachine\x20(103),\x20ArbOrder\x20(104),\x20ArbArbitration\x20(105),\x20ArbProgress\x20(106),\x20ArbMachine\x20(107),\x20ArbService\x20(108).\x20Case-insensitive;\x20\x22Type\x22\x20prefix\x20is\x20optional.'})])['describe']('When\x20specified,\x20the\x20query\x20retrieves\x20data\x20from\x20the\x20associated\x20(witness)\x20object\x20instead\x20of\x20the\x20queried\x20object\x20itself.\x20This\x20enables\x20cross-object\x20queries\x20within\x20Guard\x20validation\x20logic.\x20Can\x20be\x20a\x20numeric\x20ID\x20(100-108)\x20or\x20a\x20string\x20name\x20(case-insensitive,\x20with\x20or\x20without\x20the\x20\x27Type\x27\x20prefix).\x20String\x20format\x20is\x20recommended\x20for\x20readability.\x0a\x0aAvailable\x20WitnessTypes:\x0a-\x20OrderProgress\x20/\x20TypeOrderProgress\x20(100):\x20Query\x20an\x20Order\x27s\x20associated\x20Progress\x20object.\x20Use\x20case:\x20Check\x20if\x20order\x20has\x20reached\x20a\x20specific\x20workflow\x20node\x20(e.g.,\x20\x27complete\x27)\x20before\x20allowing\x20reward\x20claims.\x0a-\x20OrderMachine\x20/\x20TypeOrderMachine\x20(101):\x20Query\x20an\x20Order\x27s\x20associated\x20Machine\x20(workflow\x20definition).\x20Use\x20case:\x20Verify\x20the\x20workflow\x20structure\x20or\x20check\x20node\x20configurations.\x0a-\x20OrderService\x20/\x20TypeOrderService\x20(102):\x20Query\x20an\x20Order\x27s\x20parent\x20Service\x20object.\x20Use\x20case:\x20Validate\x20the\x20service\x20offering\x20details\x20or\x20check\x20service-level\x20configurations.\x0a-\x20ProgressMachine\x20/\x20TypeProgressMachine\x20(103):\x20Query\x20a\x20Progress\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20from\x20a\x20Progress\x20context.\x0a-\x20ArbOrder\x20/\x20TypeArbOrder\x20(104):\x20Query\x20an\x20Arb\x27s\x20associated\x20Order.\x20Use\x20case:\x20In\x20arbitration\x20voting\x20guards,\x20verify\x20order\x20details\x20like\x20payment\x20amount\x20or\x20service\x20ID.\x0a-\x20ArbArbitration\x20/\x20TypeArbArbitration\x20(105):\x20Query\x20an\x20Arb\x27s\x20parent\x20Arbitration\x20service.\x20Use\x20case:\x20Access\x20arbitration\x20configuration\x20or\x20fee\x20settings\x20from\x20within\x20an\x20Arb\x20case.\x0a-\x20ArbProgress\x20/\x20TypeArbProgress\x20(106):\x20Query\x20an\x20Arb\x27s\x20associated\x20Progress.\x20Use\x20case:\x20Check\x20order\x20workflow\x20state\x20during\x20arbitration\x20validation.\x0a-\x20ArbMachine\x20/\x20TypeArbMachine\x20(107):\x20Query\x20an\x20Arb\x27s\x20associated\x20Machine.\x20Use\x20case:\x20Access\x20workflow\x20definition\x20for\x20dispute\x20context\x20analysis.\x0a-\x20ArbService\x20/\x20TypeArbService\x20(108):\x20Query\x20an\x20Arb\x27s\x20associated\x20Service.\x20Use\x20case:\x20Verify\x20service\x20terms\x20or\x20compensation\x20fund\x20status\x20during\x20arbitration.\x0a\x0aExample:\x20To\x20validate\x20that\x20an\x20order\x20has\x20reached\x20the\x20\x27complete\x27\x20node,\x20query\x20the\x20Order\x20with\x20convert_witness=\x27OrderProgress\x27\x20and\x20check\x20the\x20Progress\x27s\x20current_node\x20field.');export const GuardQueryIdSchema=z['number']()['int']()['min'](0x0)['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'})['describe']('ID\x20of\x20the\x20data\x20query\x20instruction\x20for\x20the\x20Object.');export const GuardNodeSchema=z['lazy'](()=>z['discriminatedUnion']('type',[z['object']({'type':z['literal']('identifier'),'identifier':GuardIdentifierSchema})['strict']()['describe']('Returns\x20the\x20constant\x20value\x20stored\x20at\x20the\x20specified\x20identifier\x20in\x20the\x20Guard\x20table.'),z['object']({'type':z['literal']('query'),'query':z['union']([z['number']()['int']()['refine'](a=>isValidGuardQueryId(a),{'message':'Invalid\x20guard\x20query\x20ID.\x20ID\x20not\x20found\x20in\x20GUARDQUERY\x20array.'}),z['string']()['refine'](a=>isValidGuardQueryIdOrName(a),{'message':'Invalid\x20guard\x20query\x20name.\x20Name\x20not\x20found\x20in\x20GUARDQUERY\x20array\x20(case-insensitive).'})])['describe']('ID\x20or\x20name\x20of\x20the\x20wowok\x20object\x20data\x20query\x20instruction.\x20Can\x20be\x20a\x20numeric\x20ID\x20(e.g.,\x201001)\x20or\x20a\x20name\x20string\x20(e.g.,\x20\x27permission.description\x27).\x20Name\x20matching\x20is\x20case-insensitive.'),'object':z['object']({'identifier':GuardIdentifierSchema,'convert_witness':WitnessTypeSchema['optional']()})['strict']()['describe']('The\x20object\x20to\x20query\x20from\x20the\x20Guard\x20table.'),'parameters':z['array'](GuardNodeSchema)['optional']()['describe']('Parameters\x20required\x20by\x20the\x20query.\x20Optional\x20—\x20defaults\x20to\x20empty\x20array\x20[].\x20Many\x20queries\x20(e.g.\x20progress.current,\x20order.service)\x20take\x20no\x20parameters;\x20for\x20those,\x20this\x20field\x20can\x20be\x20omitted.')})['strict']()['describe']('Returns\x20the\x20result\x20of\x20executing\x20a\x20data\x20query\x20instruction\x20on\x20the\x20specified\x20object.\x20The\x20return\x20type\x20depends\x20on\x20the\x20query\x20being\x20executed.\x20SPECIAL\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Use\x20system\x20addresses\x20in\x20the\x20Guard\x20table\x20-'+ENTITY_LINKER_ADDRESS+'\x20for\x20EntityLinker\x20queries,\x20'+ENTITY_REGISTRAR_ADDRESS+'\x20for\x20EntityRegistrar\x20queries.'),z['object']({'type':z['literal']('logic_as_u256_greater_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser_or_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<=\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_greater'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20>\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_lesser'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20<\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_as_u256_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values.\x20Returns\x20true\x20if\x20first\x20equals\x20all\x20others,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20nodes\x20of\x20any\x20type.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20in\x20both\x20type\x20and\x20value.\x20Returns\x20true\x20if\x20type\x20and\x20value\x20match\x20for\x20all,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_not'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20inverting\x20the\x20boolean\x20value\x20of\x20the\x20child\x20node\x20(true\x20->\x20false,\x20false\x20->\x20true).'),z['object']({'type':z['literal']('logic_and'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_and\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_and.')['max'](MAX_MULTI_OPERANDS,'logic_and\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20AND\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ALL\x20are\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_or'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'logic_or\x20requires\x20at\x20least\x202\x20child\x20nodes.\x20For\x20a\x20single\x20condition,\x20use\x20the\x20comparison\x20node\x20directly\x20as\x20root\x20(e.g.\x20logic_equal),\x20do\x20NOT\x20wrap\x20with\x20logic_or.')['max'](MAX_MULTI_OPERANDS,'logic_or\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20child\x20nodes.')})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20boolean\x20nodes.\x20Computed\x20by\x20performing\x20logical\x20OR\x20on\x20all\x20child\x20node\x20values.\x20Returns\x20true\x20if\x20ANY\x20is\x20true,\x20otherwise\x20false.'),z['object']({'type':z['literal']('logic_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('logic_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('logic_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_number_add'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20adding\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20+\x20second\x20+\x20third\x20+\x20...).'),z['object']({'type':z['literal']('calc_number_multiply'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20multiplying\x20the\x20first\x20node\x20value\x20with\x20all\x20subsequent\x20node\x20values\x20in\x20sequence\x20(first\x20*\x20second\x20*\x20third\x20*\x20...).'),z['object']({'type':z['literal']('calc_number_subtract'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20subtracting\x20the\x20second\x20node\x20value\x20from\x20the\x20first\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20(first\x20-\x20second\x20-\x20third\x20-\x20...).'),z['object']({'type':z['literal']('calc_number_divide'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20/\x20second)\x20/\x20third\x20/\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_number_mod'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20U256.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20numeric\x20nodes\x20(U8,\x20U16,\x20U32,\x20U64,\x20U128,\x20U256).\x20Computed\x20by\x20taking\x20the\x20remainder\x20of\x20dividing\x20the\x20first\x20node\x20value\x20by\x20the\x20second\x20node\x20value\x20in\x20sequence,\x20then\x20continuing\x20with\x20each\x20subsequent\x20node\x20((first\x20%\x20second)\x20%\x20third\x20%\x20...).\x20Throws\x20exception\x20if\x20any\x20divisor\x20is\x20zero.'),z['object']({'type':z['literal']('calc_string_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20(number\x20of\x20UTF-8\x20bytes)\x20of\x20the\x20child\x20node\x20value.'),z['object']({'type':z['literal']('calc_string_nocase_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-insensitive.'),z['object']({'type':z['literal']('calc_string_nocase_equal'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20Computed\x20by\x20comparing\x20the\x20first\x20node\x20with\x20all\x20subsequent\x20nodes\x20as\x20strings,\x20ignoring\x20case.\x20Returns\x20true\x20if\x20all\x20are\x20equal,\x20otherwise\x20false.'),z['object']({'type':z['literal']('calc_string_contains'),'nodes':z['array'](GuardNodeSchema)})['strict']()['describe']('Returns\x20Bool.\x20Requires\x202-'+MAX_MULTI_OPERANDS+'\x20string\x20nodes.\x20The\x20first\x20node\x20is\x20the\x20haystack,\x20all\x20subsequent\x20nodes\x20are\x20needles.\x20Returns\x20true\x20if\x20all\x20needles\x20are\x20substrings\x20of\x20the\x20haystack,\x20otherwise\x20false.\x20Case-sensitive.'),z['object']({'type':z['literal']('calc_string_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack).\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('calc_string_nocase_indexof'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20start\x20to\x20end,\x20\x27backward\x27\x20searches\x20from\x20end\x20to\x20start.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20(needle)\x20in\x20the\x20first\x20node\x20(haystack),\x20ignoring\x20case.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('convert_number_address'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20Address.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20Address\x20type.'),z['object']({'type':z['literal']('convert_address_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20Address\x20type\x20to\x20number\x20type.'),z['object']({'type':z['literal']('convert_number_string'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20String.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20from\x20number\x20type\x20to\x20string\x20type.'),z['object']({'type':z['literal']('convert_string_number'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20parsing\x20the\x20child\x20node\x20value\x20as\x20a\x20number.\x20Throws\x20exception\x20if\x20the\x20string\x20is\x20not\x20a\x20valid\x20number.'),z['object']({'type':z['literal']('convert_safe_u8'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U8.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U8\x20range\x20(0-255).'),z['object']({'type':z['literal']('convert_safe_u16'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U16.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U16.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U16\x20range\x20(0-65535).'),z['object']({'type':z['literal']('convert_safe_u32'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U32.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U32.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U32\x20range.'),z['object']({'type':z['literal']('convert_safe_u64'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U64.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U64\x20range.'),z['object']({'type':z['literal']('convert_safe_u128'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U128.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U128.\x20Throws\x20exception\x20if\x20value\x20is\x20out\x20of\x20U128\x20range.'),z['object']({'type':z['literal']('convert_safe_u256'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U256.\x20Computed\x20by\x20converting\x20the\x20child\x20node\x20value\x20to\x20U256.'),z['object']({'type':z['literal']('value_type'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U8.\x20Computed\x20by\x20getting\x20the\x20type\x20identifier\x20(ValueType)\x20of\x20the\x20child\x20node\x20value.\x20'+VALUE_TYPE_DESCRIPTION),z['object']({'type':z['literal']('vec_length'),'node':GuardNodeSchema})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20getting\x20the\x20length\x20of\x20the\x20vector\x20in\x20the\x20child\x20node\x20value.\x20Child\x20node\x20must\x20be\x20one\x20of\x20Vec\x20types:\x20VecBool=9,\x20VecAddress=10,\x20VecString=11,\x20VecU8=12,\x20VecU16=13,\x20VecU32=14,\x20VecU64=15,\x20VecU128=16,\x20VecU256=17,\x20VecVecU8=18,\x20Value=19.'),z['object']({'type':z['literal']('vec_contains_bool'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_bool\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_bool\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20boolean\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_address'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_address\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_address\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20address\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_string\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_string\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_contains_string_nocase'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_string_nocase\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_string_nocase\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20string\x20values\x20(subsequent\x20nodes),\x20using\x20case-insensitive\x20comparison.'),z['object']({'type':z['literal']('vec_contains_number'),'nodes':z['array'](GuardNodeSchema)['min'](0x2,'vec_contains_number\x20requires\x20at\x20least\x202\x20nodes\x20(vector\x20+\x20values).')['max'](MAX_MULTI_OPERANDS,'vec_contains_number\x20allows\x20at\x20most\x20'+MAX_MULTI_OPERANDS+'\x20nodes.')['describe']('First\x20node\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19),\x20remaining\x20nodes\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19).')})['strict']()['describe']('Returns\x20Bool.\x20Computed\x20by\x20checking\x20if\x20the\x20vector\x20(first\x20node)\x20contains\x20ALL\x20number\x20values\x20(subsequent\x20nodes).'),z['object']({'type':z['literal']('vec_indexof_bool'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecBool\x20(ValueType=9)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Bool\x20(ValueType=0)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_address'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecAddress\x20(ValueType=10)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20Address\x20(ValueType=1)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_string_nocase'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node),\x20using\x20case-insensitive\x20comparison.\x20nodeLeft\x20must\x20be\x20VecString\x20(ValueType=11)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20String\x20(ValueType=2)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('vec_indexof_number'),'nodeLeft':GuardNodeSchema,'nodeRight':GuardNodeSchema,'order':z['enum'](['forward','backward'])['describe']('\x27forward\x27\x20searches\x20from\x20index\x200,\x20\x27backward\x27\x20searches\x20from\x20last\x20index.')})['strict']()['describe']('Returns\x20U64.\x20Computed\x20by\x20searching\x20for\x20the\x20second\x20node\x20value\x20in\x20the\x20vector\x20(first\x20node).\x20nodeLeft\x20must\x20be\x20VecU8\x20(12),\x20VecU16\x20(13),\x20VecU32\x20(14),\x20VecU64\x20(15),\x20VecU128\x20(16),\x20VecU256\x20(17)\x20or\x20Value\x20(ValueType=19)\x20type,\x20nodeRight\x20must\x20be\x20U8\x20(3),\x20U16\x20(4),\x20U32\x20(5),\x20U64\x20(6),\x20U128\x20(7),\x20U256\x20(8)\x20or\x20Value\x20(ValueType=19)\x20type.\x20Returns\x20index\x20of\x20first\x20occurrence\x20in\x20the\x20specified\x20direction.\x20If\x20not\x20found,\x20returns\x20u64::MAX\x20(18446744073709551615).'),z['object']({'type':z['literal']('context'),'context':z['enum'](['Signer','Clock','Guard'])['describe']('System\x20context\x20type:\x20Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).')})['strict']()['describe']('Signer\x20returns\x20transaction\x20sender\x20address\x20(Address),\x20Clock\x20returns\x20current\x20on-chain\x20timestamp\x20(U64),\x20Guard\x20returns\x20current\x20Guard\x20object\x20ID\x20(Address).'),z['object']({'type':z['literal']('query_reward_record_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20record,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20record.'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20reward\x20record\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20Returns\x20the\x20record\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20record\x20is\x20found\x20(Guard\x20validation\x20fails).\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20count\x20query.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20reward\x20records\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_reward_record_exists'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Reward\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'recipient':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional:\x20Identifier\x20reference\x20to\x20the\x20recipient\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),'where':z['object']({'guard':z['string']()['optional']()['describe']('Optional\x20filter:\x20Guard\x20object\x20address\x20constant\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20record\x20creation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'amountMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20reward\x20amount\x20(inclusive).\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'storeFromId':z['object']({'identifier':GuardIdentifierSchema})['strict']()['optional']()['describe']('Optional\x20filter:\x20identifier\x20reference\x20to\x20the\x20store_from_id\x20address\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).\x20If\x20not\x20specified,\x20the\x20store_from_id\x20field\x20is\x20ignored\x20during\x20matching.\x20The\x20server\x20resolves\x20this\x20identifier\x20to\x20the\x20actual\x20address\x20from\x20the\x20Guard\x20table\x20constants.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20reward\x20record\x20existence\x20query.')})['strict']()['describe']('Returns\x20Bool.\x20Returns\x20true\x20if\x20at\x20least\x20one\x20reward\x20record\x20exists\x20matching\x20the\x20specified\x20recipient\x20and\x20filter\x20conditions,\x20otherwise\x20false.\x20If\x20recipient\x20is\x20not\x20specified,\x20uses\x20the\x20transaction\x20signer\x20address.'),z['object']({'type':z['literal']('query_progress_history_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'where':z['object']({'node':z['string']()['optional']()['describe']('Optional\x20filter:\x20node\x20name\x20string\x20to\x20match.'),'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20history\x20entry\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'indexMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20history\x20index\x20(inclusive)\x20to\x20search\x20within.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20history\x20entry,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20history\x20entry.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20history\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20entry\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20search\x20within.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'nextNode':z['string']()['optional']()['describe']('Optional\x20filter:\x20next\x20node\x20name\x20string\x20to\x20match.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20session,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20session.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20session\x20within\x20the\x20specified\x20history\x20entry\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20session\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20session\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_forward_find'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'where':z['object']({'who':z['string']()['optional']()['describe']('Optional\x20filter:\x20operator\x20address\x20string\x20to\x20match.'),'operation':z['string']()['optional']()['describe']('Optional\x20filter:\x20operation\x20name\x20string\x20to\x20match.'),'accomplished':z['boolean']()['optional']()['describe']('Optional\x20filter:\x20whether\x20the\x20forward\x20operation\x20was\x20accomplished.'),'timeMin':z['string']()['optional']()['describe']('Optional\x20filter:\x20minimum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.'),'timeMax':z['string']()['optional']()['describe']('Optional\x20filter:\x20maximum\x20timestamp\x20(inclusive)\x20for\x20forward\x20operation\x20time.\x20Use\x20string\x20to\x20represent\x20U64\x20value.')})['strict']()['describe']('Filter\x20conditions\x20for\x20the\x20progress\x20history\x20session\x20forward\x20query.'),'find':z['enum'](['first','last'])['describe']('\x27first\x27\x20finds\x20the\x20earliest\x20matching\x20forward\x20operation,\x20\x27last\x27\x20finds\x20the\x20most\x20recent\x20matching\x20forward\x20operation.')})['strict']()['describe']('Returns\x20U64.\x20Finds\x20the\x20index\x20of\x20the\x20first\x20or\x20last\x20forward\x20operation\x20within\x20the\x20specified\x20history\x20session\x20matching\x20the\x20filter\x20conditions.\x20Returns\x20the\x20forward\x20index\x20(U64)\x20if\x20found.\x20Throws\x20error\x20if\x20no\x20matching\x20forward\x20operation\x20is\x20found\x20(Guard\x20validation\x20fails).'),z['object']({'type':z['literal']('query_progress_history_session_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type)\x20to\x20count\x20sessions\x20for.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20sessions\x20within\x20the\x20specified\x20history\x20entry.'),z['object']({'type':z['literal']('query_progress_history_session_forward_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20forward\x20operations\x20within\x20the\x20specified\x20history\x20session.'),z['object']({'type':z['literal']('query_progress_history_session_forward_retained_submission_count'),'object':z['object']({'identifier':GuardIdentifierSchema})['strict']()['describe']('Reference\x20to\x20the\x20Progress\x20object\x20in\x20the\x20Guard\x20table\x20(must\x20be\x20Address\x20type).'),'historyIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20history\x20index\x20(U64\x20type).\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'sessionIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20session\x20index\x20(U64\x20type)\x20within\x20the\x20history\x20entry.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.'),'forwardIdx':GuardNodeSchema['describe']('GuardNode\x20that\x20returns\x20the\x20forward\x20operation\x20index\x20(U64\x20type)\x20within\x20the\x20session.\x20Typically\x20an\x20\x27identifier\x27\x20node\x20referencing\x20a\x20U64\x20value\x20from\x20the\x20Guard\x20table.')})['strict']()['describe']('Returns\x20U64.\x20Counts\x20the\x20number\x20of\x20retained\x20submissions\x20within\x20the\x20specified\x20forward\x20operation.')]))['describe']('Guard\x20node:\x20represents\x20an\x20operation\x20instruction\x20in\x20Guard.\x20Each\x20node\x20returns\x20a\x20value\x20of\x20a\x20specific\x20type,\x20computed\x20from\x20its\x20child\x20nodes\x20or\x20context.');export const ObjectGuardSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Guard\x20object\x20description'),'table':z['array'](GuardTableItemSchema)['describe']('Guard\x20object\x20table\x20item\x20list'),'input':z['array'](z['number']())['describe']('Guard\x20object\x20instruction\x20sequence'),'root':GuardNodeSchema['describe']('Guard\x20object\x20root\x20node'),'rep_quote':z['record'](z['string']()['describe']('Repository\x20object\x20ID'),z['array'](z['string']())['describe']('Repository\x20policy\x20list'))['describe']('Depends\x20on\x20Repository\x20policy\x20quote'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'rep':z['boolean']()['describe']('If\x20false,\x20has\x20complex\x20Repository\x20quote\x20dependencies\x20and\x20cannot\x20be\x20used\x20as\x20an\x20independent\x20Guard')})['describe']('Guard\x20object');export const PaymentInfoSchema=z['object']({'for_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Binding\x20anchor\x20for\x20this\x20distribution.\x20On\x20an\x20Allocation\x20a\x20SET\x20for_object\x20is\x20ENFORCED\x20at\x20alloc():\x20every\x20GuardIdentifier\x20recipient\x20submission\x20must\x20equal\x20this\x20address\x20or\x20the\x20whole\x20tx\x20aborts\x20(ERECIPIENT_NOT_FOR_OBJECT,\x20code\x2015)\x20—\x20verify\x20the\x20anchor\x20matches\x20the\x20intended\x20recipient\x20flow\x20BEFORE\x20create;\x20payment_info\x20is\x20immutable\x20afterwards.\x20NULL/omitted\x20=\x20no\x20anchor:\x20nothing\x20is\x20enforced\x20on-chain,\x20recipient\x20routing\x20is\x20entirely\x20the\x20creator\x27s\x20design.\x20Also\x20recorded\x20at\x20creation\x20for\x20auditors\x20to\x20query\x20the\x20distribution\x27s\x20business\x20context.'),'for_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20to\x20satisfy\x20verification\x20of\x20a\x20Guard\x20object'),'remark':z['string']()['describe']('Payment\x20record\x20remark'),'index':z['union']([z['number'](),z['string']()])['describe']('Payment\x20record\x20index')})['describe']('Payment\x20information');export const ObjectPaymentSchema=ObjectBaseSchema['extend']({'record':z['array'](z['object']({'recipient':RecipientSchema,'amount':BalanceTypeSchema}))['describe']('Payment\x20record\x20list'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':z['union']([z['string'](),z['number']()])['describe']('Payment\x20time'),'from_object':z['union']([z['string'](),z['null']()])['optional']()['describe']('Payment\x20source\x20object\x20ID'),'signer':z['string']()['describe']('Payment\x20signer\x20ID'),'info':PaymentInfoSchema})['describe']('Payment\x20object');export const ObjectAllocationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Fund\x20allocation\x20object\x20description'),'allocators':z['array'](AllocatorSchema)['describe']('Fund\x20allocation\x20object\x20allocator\x20list'),'balance':BalanceTypeSchema['describe']('Fund\x20allocation\x20object\x20balance'),'payment_info':PaymentInfoSchema['optional']()['describe']('Payment\x20information'),'payment':z['array'](z['string']())['describe']('Payment\x20object\x20ID\x20list.\x20Each\x20fund\x20allocation\x20automatically\x20generates\x20a\x20payment\x20object\x20to\x20record\x20fund\x20flow')})['describe']('Fund\x20allocation\x20object');export const VoteWeightSchema=z['union']([z['object']({'GuardIdentifier':GuardIdentifierSchema})['describe']('Use\x20value\x20corresponding\x20to\x20Guard\x20object\x27s\x20Table\x20index\x20as\x20voting\x20weight'),z['object']({'FixedValue':z['number']()['int']()['min'](0x0)['max'](0xffff)['describe']('Fixed\x20voting\x20weight\x20value')})['describe']('Fixed\x20voting\x20weight')])['describe']('Voting\x20weight');export const VotingGuardSchema=z['object']({'guard':z['string']()['describe']('Voting\x20Guard\x20object\x20ID'),'vote_weight':VoteWeightSchema})['describe']('Voting\x20Guard\x20object');export const ObjectArbitrationSchema=ObjectBaseSchema['extend']({'description':z['string']()['describe']('Arbitration\x20object\x20description'),'location':z['string']()['describe']('The\x20area\x20or\x20scope\x20where\x20the\x20arbitration\x20is\x20located'),'voting_guard':z['array'](VotingGuardSchema)['describe']('Voting\x20Guard\x20object\x20list'),'usage_guard':z['union']([z['string'](),z['null']()])['optional']()['describe']('Guard\x20object\x20ID\x20that\x20needs\x20verification\x20when\x20submitting\x20arbitration'),'fee':BalanceTypeSchema['describe']('Single\x20arbitration\x20fee'),'balance':BalanceTypeSchema['describe']('Arbitration\x20object\x20balance'),'bPaused':z['boolean']()['describe']('Whether\x20arbitration\x20object\x20is\x20paused'),'um':z['union']([z['string'](),z['null']()])['describe']('Contact\x20object'),'permission':z['string']()['describe']('Arbitration\x20object\x20permission')})['describe']('Arbitration\x20object');export const GuardInPassportSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20ID'),'result':z['boolean']()['describe']('Guard\x20object\x20verification\x20result'),'impack':z['boolean']()['describe']('Whether\x20Guard\x20object\x20verification\x20result\x20participates\x20in\x20final\x20result\x20determination\x20(AND\x20logic)'),'relies':z['array'](z['string']())['describe']('List\x20of\x20other\x20Guard\x20object\x20IDs\x20that\x20this\x20Guard\x20object\x20depends\x20on'),'relies_logic_and':z['boolean']()['describe']('Whether\x20the\x20logical\x20relationship\x20between\x20this\x20Guard\x20object\x20and\x20its\x20dependencies\x20is\x20AND;\x20if\x20true,\x20validation\x20result\x20is\x20AND\x20of\x20this\x20Guard\x20and\x20all\x20dependencies,\x20if\x20false,\x20it\x27s\x20OR'),'submission':GuardSubmissionSchema['describe']('Data\x20submitted\x20by\x20user\x20during\x20Guard\x20object\x20verification')})['describe']('Record\x20of\x20Guard\x20object\x20in\x20Passport\x20object');export const ObjectPassportSchema=ObjectBaseSchema['extend']({'info':z['array'](GuardInPassportSchema)['describe']('List\x20of\x20Guard\x20object\x20records\x20in\x20Passport\x20object'),'result':z['boolean']()['describe']('Passport\x20object\x20final\x20verification\x20result'),'tx_hash':z['string']()['describe']('Transaction\x20hash\x20where\x20verification\x20occurred'),'impack_guard':z['array'](z['string']())['describe']('List\x20of\x20Guard\x20object\x20IDs\x20participating\x20in\x20final\x20result\x20determination'),'time':z['number']()['describe']('Creation\x20time\x20of\x20the\x20Passport\x20object'),'signer':z['string']()['describe']('Signer\x20address\x20of\x20the\x20Passport\x20object'),'has_verified':z['boolean']()['describe']('Whether\x20the\x20Passport\x20object\x20has\x20been\x20verified')})['describe']('Passport\x20object');export const TableItem_PermissionPermSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID\x20or\x20Guard\x20ID'),'perm':z['array'](PermissionIndexTypeSchema['nullable']()['or'](z['number']()))['describe']('Permission\x20list\x20obtained\x20after\x20user\x20or\x20Guard\x20object\x20verification')})['describe']('Permission\x20object\x27s\x20permission\x20record');export const TableItem_DemandPresenterSchema=ObjectBaseSchema['extend']({'address':z['string']()['describe']('Referrer\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter'),'service':tolerantStringNullable['describe']('Recommended\x20service\x20object\x20ID'),'update_time':tolerantNumber['describe']('Last\x20update\x20time'),'acceptance_score':tolerantNumberNullable['describe']('Demand\x20object\x20feedback\x20score'),'feedback':z['string']()['describe']('Demand\x20object\x20feedback\x20information'),'feedback_time':tolerantNumber['describe']('Demand\x20object\x20feedback\x20time')})['describe']('Demand\x20object\x27s\x20Service\x20recommendation\x20record');export const MachineForwardGuardSchema=z['object']({'guard':z['string']()['describe']('Guard\x20object\x20name\x20or\x20address\x20(string).\x20Example:\x20\x27my_attendance_guard\x27\x20or\x20\x270x1234...\x27'),'retained_submission':z['array'](tolerantNumber)['nullable']()['optional']()['describe']('Guard\x20table\x20identifiers\x20whose\x20verified\x20values\x20are\x20persisted\x20into\x20the\x20Progress\x20history\x20when\x20the\x20forward\x20is\x20accomplished.\x20'+'The\x20Guard\x20is\x20ALWAYS\x20fully\x20verified\x20first\x20(regardless\x20of\x20this\x20list):\x20the\x20forward\x20cannot\x20complete\x20unless\x20the\x20Passport\x20carries\x20a\x20passing\x20result\x20for\x20it.\x20'+'After\x20verification,\x20exactly\x20the\x20caller\x27s\x20submissions\x20for\x20the\x20listed\x20identifiers\x20are\x20copied\x20into\x20history\x20(from\x20the\x20passport\x27s\x20submission\x20records)\x20as\x20Guard-verified\x20facts;\x20'+'empty\x20array\x20(default)\x20records\x20nothing.\x20Use\x20it\x20for\x20audit\x20and\x20downstream\x20queries,\x20never\x20as\x20a\x20way\x20to\x20relax\x20Guard\x20conditions.')})['strict']()['describe']('Record\x20of\x20Guard\x20object\x20in\x20MachineForwardGuard\x20object.\x20ALWAYS\x20an\x20OBJECT\x20{guard:\x20string,\x20retained_submission?:\x20number[]}\x20—\x20never\x20a\x20plain\x20string.\x20The\x20inner\x20\x27guard\x27\x20field\x20is\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20string.');export const MachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20name'),'namedOperator':tolerantStringNullable['describe']('Forward\x20operation\x20permission\x201:\x20Namespace\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20Progress\x20object\x20operators\x20are\x20different\x20(e.g.,\x20different\x20delivery\x20personnel\x20for\x20different\x20orders).'),'permissionIndex':tolerantNumberNullable['describe']('Forward\x20operation\x20permission\x202:\x20Permission\x20index\x20(one\x20of\x20the\x20two\x20must\x20be\x20specified);\x20recommended\x20if\x20all\x20Progress\x20object\x20operators\x20are\x20the\x20same\x20(e.g.,\x20same\x20reward\x20reviewers\x20for\x20all\x20orders).\x20RANGE:\x20use\x20a\x20USER_DEFINED\x20index\x20≥1000\x20(0–999\x20are\x20builtin/reserved)\x20—\x20a\x20USER_DEFINED\x20index\x20works\x20for\x20the\x20Permission\x27s\x20admin\x20immediately\x20without\x20any\x20grant;\x20a\x20builtin\x20index\x20(<1000)\x20aborts\x20with\x20MoveAbort\x207\x20unless\x20it\x20was\x20explicitly\x20granted\x20to\x20the\x20operators\x20first.'),'weight':tolerantNumber['describe']('Forward\x20weight\x20—\x20the\x20contribution\x20this\x20forward\x20makes\x20toward\x20its\x20Pair\x27s\x20threshold.\x20'+'⚠️\x20SINGLE-OPERATOR\x20LOCK:\x20a\x20forward\x20contributes\x20its\x20weight\x20AT\x20MOST\x20ONCE.\x20It\x20is\x20locked\x20by\x20'+'the\x20first\x20operator\x20that\x20accomplishes\x20it;\x20a\x20second\x20'+'operator\x20re-executing\x20the\x20same\x20accomplished\x20forward\x20aborts\x20E_NOT_THE_HOLDER.\x20Therefore\x20'+'multi-operator\x20cooperation\x20(threshold\x20>\x201)\x20needs\x20one\x20DISTINCT\x20forward\x20per\x20contributing\x20'+'operator\x20(e.g.\x20threshold\x202\x20→\x20begin_a\x20+\x20begin_b,\x20each\x20weight\x201)\x20—\x20never\x20reuse\x20one\x20forward.'),'guard':z['preprocess'](a=>{if(typeof a==='string')return{'guard':a};return a;},z['union']([MachineForwardGuardSchema['describe']('OBJECT\x20form:\x20{guard:\x20\x27<guard_name_or_address>\x27,\x20retained_submission?:\x20number[]}.\x20'+'Use\x20this\x20form\x20when\x20you\x20need\x20to\x20pass\x20retained_submission\x20data\x20alongside\x20the\x20Guard\x20reference.'),z['string']()['describe']('STRING\x20form\x20(shorthand):\x20the\x20Guard\x20object\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x20'+'Auto-wrapped\x20to\x20{guard:\x20<string>}\x20at\x20runtime.\x20Use\x20this\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20without\x20retained_submission.')])['nullable']()['optional']())['describe']('Guard\x20reference\x20for\x20this\x20forward.\x20Accepts\x20TWO\x20formats:\x0a'+'•\x20STRING\x20(preferred):\x20\x22my_guard_name\x22\x20—\x20the\x20Guard\x27s\x20name\x20or\x20address\x20as\x20a\x20plain\x20string.\x0a'+'•\x20OBJECT\x20(only\x20when\x20retained_submission\x20is\x20needed):\x20{guard:\x20\x22my_guard_name\x22,\x20retained_submission:\x20[1,2,3]}.\x0a'+'FOLLOW\x20THE\x20SCHEMA\x20FIELD\x20STRUCTURE:\x20A\x20Guard\x20reference\x20is\x20fundamentally\x20a\x20STRING\x20(the\x20Guard\x20object\x27s\x20name\x20or\x20address).\x20'+'Provide\x20a\x20string\x20when\x20you\x20only\x20need\x20to\x20reference\x20a\x20Guard\x20—\x20do\x20NOT\x20wrap\x20a\x20bare\x20string\x20in\x20an\x20object\x20structure.\x20'+'The\x20OBJECT\x20form\x20{guard:\x20\x22...\x22,\x20retained_submission:\x20[...]}\x20exists\x20ONLY\x20to\x20carry\x20additional\x20`retained_submission`\x20data\x20'+'alongside\x20the\x20string\x20reference;\x20inside\x20the\x20object,\x20the\x20`guard`\x20field\x20is\x20STILL\x20a\x20string.\x20'+'In\x20short:\x20string-in\x20for\x20a\x20string\x20reference,\x20object-in\x20only\x20when\x20you\x20need\x20to\x20pass\x20extra\x20data.\x0a'+'COGNITIVE\x20PRINCIPLE:\x20Guard\x20validation\x20ALWAYS\x20occurs\x20BEFORE\x20the\x20forward\x20operation.\x20'+'A\x20Guard\x20that\x20queries\x20state\x20of\x20the\x20SAME\x20Progress\x20object\x20this\x20forward\x20operates\x20on\x20'+'(e.g.\x20progress.current)\x20will\x20see\x20the\x20PRE-transition\x20value\x20(source\x20node),\x20NOT\x20the\x20target\x20node.\x20'+'If\x20the\x20Guard\x20checks\x20progress.current\x20==\x20target_node,\x20it\x20will\x20ALWAYS\x20FAIL.\x20'+'Querying\x20a\x20DIFFERENT\x20Progress\x20object\x20(cross-machine)\x20is\x20safe\x20and\x20reasonable\x20—\x20'+'that\x20progress\x20is\x20not\x20modified\x20by\x20this\x20forward.\x20'+'For\x20target-node\x20verification\x20after\x20transition,\x20bind\x20the\x20Guard\x20to\x20the\x20Allocator\x20instead\x20'+'(allocation.alloc\x20runs\x20AFTER\x20the\x20state\x20transition\x20completes).\x0a'+'⚠️\x20T1\x20LOSSY\x20POINT\x20(B-3):\x20WoWok\x20has\x20NO\x20on-chain\x20cron.\x20A\x20business\x20phrase\x20like\x20\x27after\x20N\x20days,\x20auto-X\x27\x20'+'is\x20NOT\x20an\x20automatic\x20trigger\x20—\x20it\x20decomposes\x20into\x20(1)\x20a\x20time_guard\x20that\x20checks\x20elapsed\x20time,\x20and\x20'+'(2)\x20an\x20OFF-CHAIN\x20keeper\x20that\x20must\x20submit\x20the\x20forward\x20when\x20the\x20guard\x20passes.\x20'+'Configuring\x20a\x20time_guard\x20WITHOUT\x20a\x20keeper\x20means\x20nothing\x20ever\x20fires.\x0a'+'RETAINED_SUBMISSION:\x20a\x20non-empty\x20retained_submission\x20does\x20NOT\x20relax\x20Guard\x20verification\x20—\x20the\x20forward\x27s\x20Guard\x20is\x20always\x20validated\x20first.\x20'+'The\x20list\x20only\x20selects\x20which\x20of\x20the\x20caller\x27s\x20already-verified\x20submissions\x20are\x20persisted\x20into\x20the\x20Progress\x20history\x20(see\x20the\x20guard\x20field\x20above).')})['strict']()['refine'](a=>a['namedOperator']!==null&&a['namedOperator']!==undefined||a['permissionIndex']!==null&&a['permissionIndex']!==undefined,{'message':'One\x20of\x20\x27namedOperator\x27\x20or\x20\x27permissionIndex\x27\x20must\x20be\x20provided\x20for\x20each\x20forward.\x20'+'Use\x20namedOperator:\x27\x27\x20(empty\x20string)\x20when\x20the\x20ORDER\x20OWNER\x20operates\x20this\x20forward;\x20'+'use\x20a\x20permissionIndex\x20(e.g.\x201000)\x20when\x20the\x20same\x20operator\x20acts\x20for\x20all\x20orders.'})['describe']('Forward\x20in\x20Machine\x20object');export const MachineNodePairSchema=z['object']({'prev_node':z['string']()['describe']('Previous\x20node\x20name.\x20Empty\x20string\x20\x27\x27\x20means\x20initial\x20entry\x20node\x20(the\x20first\x20node\x20in\x20the\x20workflow).'),'threshold':tolerantNumber['default'](0x0)['describe']('Threshold\x20to\x20trigger\x20node\x20advancement.\x20If\x20total\x20Forward\x20weight\x20is\x20greater\x20than\x20or\x20equal\x20to\x20threshold,\x20node\x20advancement\x20is\x20triggered.\x20'+'⚠️\x20SINGLE-OPERATOR\x20LOCK:\x20each\x20forward\x20contributes\x20its\x20weight\x20AT\x20MOST\x20ONCE\x20(locked\x20by\x20its\x20first\x20operator;\x20'+'re-execution\x20by\x20others\x20aborts\x20E_NOT_THE_HOLDER).\x20The\x20maximum\x20achievable\x20weight\x20of\x20this\x20Pair\x20is\x20the\x20sum\x20of\x20its\x20DISTINCT\x20forward\x20weights\x20—\x20'+'if\x20that\x20sum\x20<\x20threshold\x20the\x20transition\x20can\x20NEVER\x20migrate.\x20Multi-operator\x20cooperation\x20(threshold\x20>\x201)\x20needs\x20one\x20DISTINCT\x20forward\x20per\x20'+'contributing\x20operator\x20(e.g.\x20threshold\x202\x20→\x20begin_a\x20+\x20begin_b,\x20each\x20weight\x201),\x20never\x20one\x20forward\x20reused\x20by\x20several\x20people.'),'forwards':z['array'](MachineForwardSchema)['describe']('Forward\x20list\x20—\x20operations\x20to\x20ENTER\x20THIS\x20NODE\x20from\x20prev_node.\x20'+'SEMANTIC\x20CLARIFICATION:\x20forwards\x20describe\x20INCOMING\x20transitions\x20(how\x20to\x20ARRIVE\x20at\x20this\x20node),\x20'+'NOT\x20outgoing\x20transitions.\x20Think\x20of\x20each\x20forward\x20as\x20an\x20\x27entry\x20door\x27\x20to\x20this\x20node.\x20'+'Example:\x20pair\x20{prev_node:\x27A\x27,\x20forwards:[{name:\x27Go\x27}]}\x20means\x20\x27use\x20Go\x20to\x20advance\x20FROM\x20A\x20TO\x20THIS\x20NODE\x27.\x20'+'For\x20initial\x20node\x20(prev_node=\x27\x27),\x20forwards\x20are\x20operations\x20to\x20enter\x20this\x20node\x20from\x20the\x20start\x20state.\x20'+'DIAGRAM:\x20A\x20--[Go]-->\x20B\x20means\x20the\x20pair\x20belongs\x20to\x20node\x20B\x20(destination),\x20with\x20prev_node=\x27A\x27.\x20'+'WARNING:\x20forwards\x20belong\x20to\x20the\x20DESTINATION\x20node\x27s\x20pair,\x20NOT\x20the\x20source\x20node.\x20'+'Placing\x20a\x20forward\x20on\x20the\x20wrong\x20pair\x20will\x20cause\x20Progress\x20to\x20get\x20stuck.')})['strict']()['describe']('Node\x20pair\x20in\x20Machine\x20object')['refine'](a=>{if(a['prev_node']===''&&a['forwards']['length']===0x0)return![];return!![];},{'message':'Initial\x20node\x20(prev_node=\x27\x27)\x20must\x20have\x20at\x20least\x20one\x20forward.\x20Without\x20a\x20forward,\x20Progress\x20cannot\x20advance\x20from\x20\x27\x27\x20to\x20this\x20node,\x20causing\x20the\x20order\x20workflow\x20to\x20be\x20permanently\x20stuck.'});export const MachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.\x20⚠️\x20T1\x20LOSSY\x20POINT\x20(B-1):\x20do\x20NOT\x20name\x20a\x20node\x20\x27refund\x27/\x27refunded\x27/\x27deposit_refunded\x27/\x27deposit_deducted\x27/\x27disputed\x27/\x27cancelled\x27\x20'+'to\x20model\x20fund\x20return\x20or\x20dispute\x20—\x20funds\x20MUST\x20move\x20through\x20the\x20Allocation\x20waterfall\x20(order_allocators),\x20'+'NOT\x20through\x20Machine\x20terminal\x20nodes\x20(R-M1-11).\x20A\x20node\x20named\x20\x27refund\x27\x20is\x20a\x20semantic\x20lie:\x20reaching\x20it\x20does\x20'+'not\x20move\x20funds\x20by\x20itself.\x20Model\x20refund\x20as\x20a\x20refund-to-Order\x20Allocator\x20slot\x20(a\x20{\x20Signer\x20}\x20or\x20Order-owner\x20'+'recipient),\x20and\x20model\x20dispute\x20as\x20the\x20bound\x20Arbitration,\x20not\x20a\x20Machine\x20node.'),'pairs':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['strict']()['describe']('Node\x20in\x20Machine\x20object');export const TableItem_MachineNodeSchema=ObjectBaseSchema['extend']({'name':z['string']()['describe']('Node\x20name'),'value':z['array'](MachineNodePairSchema)['describe']('Node\x20pair\x20list')})['describe']('Node\x20record\x20in\x20Machine\x20object');export const TableItem_ProgressHistorySchema=ObjectBaseSchema['extend']({'index':tolerantNumber['describe']('Progress\x20record\x20index\x20(starting\x20from\x200)'),'node':z['string']()['describe']('Previous\x20node\x20name'),'next_node':z['string']()['describe']('Next\x20node\x20name'),'session':z['array'](ProgressSessionSchema)['describe']('Progress\x20session\x20list'),'time':tolerantNumberNullable['describe']('Progress\x20record\x20completion\x20time\x20(Unix\x20timestamp)')})['describe']('Completed\x20progress\x20record\x20in\x20Progress\x20object');export const TableItem_TreasuryHistorySchema=ObjectBaseSchema['extend']({'payment':NameOrAddressSchema['describe']('Payment\x20object\x20ID'),'op':TreasuryOpSchema['describe']('Operation\x20type'),'signer':z['string']()['describe']('Operator\x20ID'),'external_guard':tolerantStringNullable['describe']('Guard\x20object\x20ID\x20verified\x20during\x20operation\x20(none\x20if\x20operated\x20through\x20Permission)'),'amount':BalanceTypeSchema['describe']('Payment\x20amount'),'time':tolerantNumber['describe']('Payment\x20time\x20(Unix\x20timestamp)'),'store_from_id':tolerantStringNullable['describe']('Stored\x20value\x20from\x20Guard\x20table.\x20This\x20stores\x20the\x20value\x20(address\x20or\x20number\x20converted\x20to\x20address,\x20including\x20submitted\x20values)\x20from\x20the\x20Guard\x20table\x20at\x20the\x20specified\x20index\x20for\x20Guard\x20verification\x20purposes.')})['describe']('Payment\x20record\x20in\x20Treasury\x20object');export const ObjectsQuerySchema=QueryEnvSchema['extend']({'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20objects');export const ObjectUnionSchema=z['union']([ObjectTreasurySchema,ObjectPermissionSchema,ObjectMachineSchema,ObjectServiceSchema,ObjectOrderSchema,ObjectProgressSchema,ObjectDemandSchema,ObjectArbitrationSchema,ObjectAllocationSchema,ObjectRewardSchema,ObjectRepositorySchema,ObjectGuardSchema,ObjectPaymentSchema,ObjectPassportSchema,ObjectEntityRegistrarSchema,ObjectEntityLinkerSchema,ObjectResourceSchema,ObjectArbSchema,ObjectDiscountSchema,ObjectContactSchema,ObjectPersonalSchema,ObjectBaseSchema,ObjectProofSchema])['describe']('Union\x20of\x20all\x20wowok\x20on-chain\x20object\x20types');export const ObjectsAnswerSchema=z['object']({'objects':z['array'](ObjectUnionSchema)['optional']()['describe']('List\x20of\x20queried\x20objects')})['describe']('Response\x20for\x20querying\x20objects');export const PersonalQuerySchema=QueryEnvSchema['extend']({'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.\x20')})['describe']('Query\x20PUBLIC\x20on-chain\x20personal\x20profile\x20for\x20any\x20account.\x20Returns\x20publicly\x20published\x20information\x20(social\x20accounts,\x20websites,\x20professional\x20info)\x20that\x20users\x20have\x20intentionally\x20shared\x20on\x20the\x20blockchain.');export const TableQuerySchema=QueryEnvSchema['extend']({'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Number\x20of\x20records\x20returned\x20per\x20page')})['describe']('Request\x20parameters\x20for\x20querying\x20object\x27s\x20data\x20table');export const TableAnswerItemSchema=z['object']({'key':z['object']({'type':z['string']()['describe']('Key\x20type'),'value':z['union']([z['string'](),z['number']()])['describe']('Key\x20value')})['describe']('Query\x20key\x20and\x20its\x20type'),'type':z['string']()['describe']('Table\x20item\x20object\x20type'),'object':z['string']()['describe']('Table\x20item\x20object\x20ID'),'version':z['union']([z['string'](),z['number']()])['describe']('Table\x20item\x20object\x20version')})['describe']('Result\x20item\x20of\x20object\x27s\x20data\x20table\x20query');export const TableAnswerSchema=z['object']({'items':z['array'](TableAnswerItemSchema),'nextCursor':z['union']([z['string'](),z['null']()]),'hasNextPage':z['boolean'](),'cache_expire':CacheExpireTypeSchema['optional']()});export const QueryTableItem_byAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byU64Schema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20U64\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byStringSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20string\x20key\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_byNameAddressSchema=QueryEnvSchema['extend']({'parent':z['string']()['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20name\x20and\x20ID\x20in\x20object\x27s\x20data\x20table');export const QueryTableItem_Registrar_EntitySchema=QueryEnvSchema['extend']({'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20of\x20the\x20record\x20to\x20query')})['describe']('Request\x20parameters\x20for\x20querying\x20records\x20by\x20ID\x20in\x20Registrar\x20object\x27s\x20data\x20table');export const EventTypeSchema=z['union']([z['literal']('ArbEvent'),z['literal']('NewOrderEvent'),z['literal']('ProgressEvent'),z['literal']('DemandPresentEvent'),z['literal']('DemandFeedbackEvent'),z['literal']('NewEntityEvent'),z['literal']('ServiceEvent'),z['literal']('ArbitrationEvent'),z['literal']('DemandChangedEvent'),z['literal']('VoteEvent'),z['literal']('FeedbackEvent'),z['literal']('AllocationEvent'),z['literal']('TreasuryEvent'),z['literal']('RewardClaimEvent'),z['literal']('RewardFundEvent'),z['literal']('NewPaymentEvent'),z['string']()])['describe']('Event\x20type.\x20Supports\x20Wowok\x20built-in\x20types\x20(ArbEvent,\x20NewOrderEvent,\x20ProgressEvent,\x20DemandPresentEvent,\x20DemandFeedbackEvent,\x20NewEntityEvent,\x20ServiceEvent,\x20ArbitrationEvent,\x20DemandChangedEvent,\x20VoteEvent,\x20FeedbackEvent,\x20AllocationEvent,\x20TreasuryEvent,\x20RewardClaimEvent,\x20RewardFundEvent,\x20NewPaymentEvent)\x20or\x20any\x20string\x20for\x20generic\x20MoveEventType\x20(e.g.,\x20\x270x2::coin::CoinEvent\x27).\x20See\x20the\x20Event\x20Semantics\x20Registry\x20(knowledge/event-semantics.ts)\x20for\x20every\x20event\x27s\x20trigger\x20logic,\x20parameter\x20meanings,\x20and\x20business\x20semantics\x20—\x20especially\x20NewPaymentEvent\x20(the\x20universal\x20fund-flow\x20receipt:\x20from_object\x20is\x20the\x20internal-only\x20funding-source\x20object\x20—\x20Treasury/Allocation/Service\x20—\x20set\x20by\x20the\x20framework,\x20never\x20by\x20user\x20code).');export const EventCursorSchema=z['object']({'eventSeq':z['union']([z['string'](),z['number']()])['describe']('Event\x20sequence\x20number'),'txDigest':z['string']()['describe']('Transaction\x20digest')})['describe']('Event\x20cursor');export const EventBaseSchema=z['object']({'id':EventCursorSchema,'sender':z['string']()['describe']('Event\x20sender\x20ID'),'type':EventTypeSchema,'type_raw':z['string']()['describe']('Raw\x20event\x20type'),'time':z['union']([z['string'](),z['number']()])['describe']('Event\x20occurrence\x20time'),'parsedJson_raw':z['any']()['optional']()['describe']('Raw\x20parsed\x20JSON\x20data\x20from\x20the\x20event')})['describe']('Event\x20base\x20information');export const ArbEventSchema=EventBaseSchema['extend']({'arb':z['string']()['describe']('Arbitration\x20object\x20ID'),'arbitration':z['string']()['describe']('Arbitration\x20object\x20ID'),'order':z['string']()['describe']('Order\x20object\x20ID'),'status':ArbStatusSchema,'indemnity_amount':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Compensation\x20awarded\x20(smallest-unit,\x20when\x20the\x20transition\x20rules\x20indemnity).'),'compensation_time':z['union']([z['string'](),z['number'](),z['null']()])['optional']()['describe']('Claim-ready\x20time\x20(when\x20the\x20transition\x20finishes\x20indemnity).')})['describe']('Arbitration\x20event');export const NewOrderEventSchema=EventBaseSchema['extend']({'order':z['string']()['describe']('Order\x20object\x20ID'),'service':z['string']()['describe']('Service\x20object\x20ID'),'progress':z['union']([z['string'](),z['null']()])['optional']()['describe']('Progress\x20object\x20ID'),'discount':z['union']([z['string'](),z['null']()])['optional']()['describe']('Discount\x20object\x20ID'),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20ID'),'amount':BalanceTypeSchema})['describe']('New\x20order\x20event');export const ProgressEventSchema=EventBaseSchema['extend']({'progress':z['string']()['describe']('Progress\x20object\x20ID'),'machine':z['string']()['describe']('Machine\x20object\x20ID'),'task':z['union']([z['string'](),z['null']()])['optional']()['describe']('Task\x20object\x20ID'),'node':z['string']()['describe']('Current\x20node\x20name'),'forward':z['union']([z['string'](),z['null']()])['optional']()['describe']('Forward\x20operation\x20name'),'hold':z['union']([z['boolean'](),z['null']()])['optional']()['describe']('Whether\x20it\x20is\x20a\x20hold\x20operation')})['describe']('Progress\x20event');export const DemandPresentEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'recommend':z['string']()['describe']('Recommendation\x20letter')})['describe']('Event\x20of\x20recommending\x20service\x20to\x20Demand\x20object');export const DemandFeedbackEventSchema=EventBaseSchema['extend']({'demand':z['string']()['describe']('Demand\x20object\x20ID'),'service':z['union']([z['string'](),z['null']()])['optional']()['describe']('Service\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content'),'acceptance_score':z['union']([z['number'](),z['null']()])['optional']()['describe']('Acceptance\x20score')})['describe']('Event\x20of\x20Demand\x20object\x20feedback\x20to\x20referrer');export const NewEntityEventSchema=EventBaseSchema['extend']({'address':z['string']()['describe']('User\x20ID'),'resource':z['string']()['describe']('ID\x20mark\x20object\x20ID\x20owned\x20by\x20user'),'referrer':z['union']([z['string'](),z['null']()])['optional']()['describe']('Referrer\x20ID')})['describe']('New\x20user\x20event');export const ServiceEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Service\x20object\x20ID'),'location':z['string']()['describe']('The\x20service\x20area\x20and\x20scope\x20as\x20stated\x20by\x20the\x20merchant.'),'description':z['string']()['describe']('Full\x20Service\x20description\x20as\x20carried\x20on-chain\x20(input\x20creation\x20still\x20caps\x20at\x204000\x20UTF-8\x20chars).')})['describe']('Service\x20market-opportunity\x20event');export const DemandChangedEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Demand\x20object\x20ID'),'location':z['string']()['describe']('The\x20area\x20or\x20scope\x20where\x20the\x20services\x20required\x20by\x20the\x20demand\x20are\x20located.'),'description':z['string']()['describe']('Full\x20Demand\x20description\x20as\x20carried\x20on-chain\x20(input\x20creation\x20still\x20caps\x20at\x204000\x20UTF-8\x20chars).'),'rewards':z['array'](z['string']())['describe']('Reward\x20object\x20addresses\x20(amounts\x20read\x20from\x20Reward\x20objects).')})['describe']('Demand\x20market-opportunity\x20event');export const VoteEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'voter':z['string']()['describe']('Voter\x20address'),'agrees':z['array'](z['number']())['describe']('Supported\x20proposition\x20indices'),'weight':z['number']()['describe']('Voting\x20weight')})['describe']('Arbitration\x20vote\x20event');export const FeedbackEventSchema=EventBaseSchema['extend']({'object':z['string']()['describe']('Arb\x20object\x20ID'),'feedback':z['string']()['describe']('Feedback\x20content')})['describe']('Arbitration\x20feedback\x20event');export const EventAnswerSchema=z['object']({'data':z['array'](z['union']([EventBaseSchema,ArbEventSchema,NewOrderEventSchema,ProgressEventSchema,DemandPresentEventSchema,DemandFeedbackEventSchema,NewEntityEventSchema,ServiceEventSchema,DemandChangedEventSchema,VoteEventSchema,FeedbackEventSchema]))['describe']('Event\x20object\x20data'),'hasNextPage':z['boolean']()['describe']('Whether\x20there\x20is\x20a\x20next\x20page'),'nextCursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Next\x20page\x20cursor'),'cache_expire':CacheExpireTypeSchema['optional']()['describe']('Cache\x20expiration\x20time')})['describe']('Event\x20query\x20result');export const EventQuerySchema=QueryEnvSchema['extend']({'type':EventTypeSchema['describe']('Event\x20type'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Event\x20cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Query\x20count\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order')})['describe']('Event\x20query\x20parameters');export const OnchainEventsInputSchema=z['object']({'type':EventTypeSchema['describe']('Event\x20type\x20to\x20query.\x20Supported\x20types\x20(all\x2016\x20built-in\x20framework\x20events):\x20ArbEvent\x20(arbitration\x20events),\x20NewOrderEvent\x20(new\x20order\x20events),\x20ProgressEvent\x20(progress\x20events),\x20DemandPresentEvent\x20(demand\x20presentation\x20events),\x20DemandFeedbackEvent\x20(demand\x20feedback\x20events),\x20NewEntityEvent\x20(new\x20entity\x20registration\x20events),\x20ServiceEvent\x20(service\x20lifecycle\x20events),\x20ArbitrationEvent\x20(arbitration\x20creation\x20events),\x20DemandChangedEvent\x20(demand\x20update\x20events),\x20VoteEvent\x20(voting\x20events),\x20FeedbackEvent\x20(feedback\x20events),\x20AllocationEvent\x20(allocation\x20distribution\x20events),\x20TreasuryEvent\x20(treasury\x20deposit/withdraw\x20events),\x20RewardClaimEvent\x20(reward\x20claim\x20events),\x20RewardFundEvent\x20(reward\x20funding\x20events),\x20NewPaymentEvent\x20(universal\x20fund-flow\x20receipt\x20events).\x20Any\x20other\x20string\x20is\x20accepted\x20as\x20a\x20generic\x20MoveEventType\x20(e.g.\x20\x270x2::coin::CoinEvent\x27)'),'cursor':z['union']([EventCursorSchema,z['null']()])['optional']()['describe']('Optional\x20pagination\x20cursor\x20for\x20fetching\x20next\x20page\x20of\x20results.\x20Use\x20null\x20for\x20first\x20query,\x20then\x20use\x20nextCursor\x20from\x20response\x20for\x20subsequent\x20queries'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Maximum\x20number\x20of\x20events\x20to\x20return\x20per\x20query.\x20Use\x20null\x20for\x20default\x20limit'),'order':z['union']([z['literal']('ascending'),z['literal']('descending'),z['null']()])['optional']()['describe']('Sort\x20order\x20for\x20results:\x20\x27ascending\x27\x20(oldest\x20first)\x20or\x20\x27descending\x27\x20(newest\x20first).\x20Use\x20null\x20for\x20default\x20order'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20data\x20from\x20the\x20blockchain'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20querying\x20on-chain\x20WOWOK\x20events');export const OnchainEventsResultSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20query\x20result\x20containing\x20list\x20of\x20events\x20and\x20pagination\x20info,\x20or\x20null\x20if\x20no\x20data\x20found'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20event\x20query')})['describe']('Result\x20of\x20on-chain\x20events\x20query');export const MonitorEventModuleSchema=z['enum'](['order','arb','demand','progress','treasury','reward','service','entity','payment'])['describe']('Monitor\x20module\x20(9\x20total):\x20\x27order\x27\x20(NewOrderEvent),\x20\x27arb\x27\x20(ArbEvent/VoteEvent/FeedbackEvent),\x20\x27demand\x27\x20(DemandPresentEvent/DemandFeedbackEvent/DemandChangedEvent),\x20\x27progress\x27\x20(ProgressEvent),\x20\x27treasury\x27\x20(AllocationEvent/TreasuryEvent),\x20\x27reward\x27\x20(RewardClaimEvent/RewardFundEvent),\x20\x27service\x27\x20(ServiceEvent),\x20\x27entity\x27\x20(NewEntityEvent),\x20\x27payment\x27\x20(NewPaymentEvent\x20—\x20captured\x20only\x20when\x20enabled\x20via\x20monitor_subscription)');export const MonitorEventsInputSchema=z['object']({'action':z['enum'](['query','mark_read','mark_all_read'])['describe']('\x27query\x27\x20—\x20paginated\x20read\x20of\x20the\x20persistent\x20per-event\x20store\x20(append-only,\x20survives\x20restarts);\x20'+'\x27mark_read\x27\x20—\x20mark\x20the\x20given\x20event_ids\x20as\x20read;\x20'+'\x27mark_all_read\x27\x20—\x20mark\x20every\x20stored\x20event\x20as\x20read\x20(optionally\x20scoped\x20to\x20one\x20module)'),'module':MonitorEventModuleSchema['optional']()['describe']('Optional\x20module\x20filter\x20(query\x20/\x20mark_all_read).\x20Omit\x20to\x20span\x20all\x20modules'),'limit':z['number']()['int']()['positive']()['max'](0x1f4)['optional']()['describe']('Page\x20size\x20for\x20action=\x27query\x27\x20(default\x2050,\x20max\x20500)'),'offset':z['number']()['int']()['min'](0x0)['optional']()['describe']('Pagination\x20offset\x20for\x20action=\x27query\x27\x20(default\x200)'),'relevant_only':z['boolean']()['optional']()['describe']('action=\x27query\x27\x20—\x20paginate\x20only\x20events\x20with\x20a\x20relevance-annotation\x20hit\x20(scope\x20closure\x20/\x20focus\x20/\x20filter).\x20DEFAULT\x20TRUE\x20—\x20the\x20agent\x20todo\x20stream\x20is\x20de-noised\x20by\x20default;\x20pass\x20false\x20for\x20the\x20legacy\x20full\x20firehose'),'with_reason':z['boolean']()['optional']()['describe']('action=\x27query\x27\x20—\x20attach\x20each\x20event\x27s\x20stored\x20relevance\x20annotation\x20(\x27relevance\x27:\x20rules\x20with\x20human-readable\x20detail,\x20focus_hit,\x20matched_filters,\x20scope_version)\x20plus\x20a\x20computed\x20\x27delivered\x27\x20flag\x20(would\x20the\x20todo\x20stream\x20surface\x20it)'),'event_type':z['string']()['optional']()['describe']('action=\x27query\x27\x20—\x20filter\x20by\x20short\x20event\x20type,\x20cross-module\x20(e.g.\x20\x27NewPaymentEvent\x27,\x20\x27NewOrderEvent\x27)'),'since':z['number']()['optional']()['describe']('action=\x27query\x27\x20—\x20only\x20events\x20at/after\x20this\x20ms-epoch\x20timestamp'),'until':z['number']()['optional']()['describe']('action=\x27query\x27\x20—\x20only\x20events\x20at/before\x20this\x20ms-epoch\x20timestamp'),'event_ids':z['array'](z['string']())['optional']()['describe']('Event\x20ids\x20to\x20mark\x20read\x20for\x20action=\x27mark_read\x27\x20(format\x20\x27<eventSeq>:<txDigest>\x27)'),'network':EntrypointSchema['optional']()['describe']('Network\x20to\x20query:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20the\x20persistent\x20monitor\x20event\x20store\x20(query\x20+\x20read-state\x20management)');export const MonitorRuleHitSchema=z['object']({'rule':z['string']()['describe']('Scope-closure\x20rule\x20that\x20claimed\x20the\x20event:\x20managed_objects\x20|\x20merchant_orders\x20|\x20my_orders\x20|\x20order_children\x20|\x20focus'),'object':z['string']()['describe']('The\x20closure\x20object\x20that\x20matched\x20(e.g.\x20the\x20order\x20/\x20treasury\x20address)'),'detail':z['string']()['describe']('Human-readable\x20reason\x20(e.g.\x20\x27order\x2010EF-A11\x20(buyer)\x27)\x20—\x20the\x20why-chip\x20source')})['describe']('One\x20scope-closure\x20rule\x20hit\x20on\x20an\x20event');export const MonitorRelevanceSchema=z['object']({'event_id':z['string']()['describe']('Canonical\x20event\x20id\x20(\x27<eventSeq>:<txDigest>\x27)'),'event_type':z['string']()['describe']('Short\x20event\x20type\x20at\x20annotation\x20time'),'rules':z['array'](MonitorRuleHitSchema)['describe']('Every\x20closure\x20rule\x20that\x20hit\x20(an\x20event\x20may\x20hit\x20several)'),'focus_hit':z['boolean']()['describe']('True\x20when\x20any\x20hit\x20came\x20from\x20the\x20focus\x20closure'),'matched_filters':z['array'](z['string']())['describe']('Ids\x20of\x20the\x20enabled\x20EventFilters\x20that\x20matched'),'scope_version':z['number']()['describe']('ScopeSnapshot\x20version\x20this\x20annotation\x20was\x20computed\x20against'),'annotated_at':z['number']()['describe']('Annotation\x20time\x20(ms\x20epoch)')})['describe']('Derived\x20relevance\x20annotation\x20for\x20an\x20event\x20(annotate-never-discard:\x20stored\x20separately\x20from\x20the\x20immutable\x20event)');export const MonitorEventItemSchema=z['object']({'id':z['string']()['describe']('Event\x20id\x20(\x27<eventSeq>:<txDigest>\x27)'),'module':z['string']()['describe']('Monitor\x20module\x20the\x20event\x20belongs\x20to'),'type':z['string']()['describe']('Short\x20event\x20type\x20(e.g.\x20\x27NewOrderEvent\x27)'),'time':z['number']()['describe']('Event\x20timestamp\x20in\x20milliseconds'),'seen':z['boolean']()['describe']('Read\x20flag\x20—\x20true\x20when\x20the\x20event\x20has\x20been\x20marked\x20read'),'event':z['union']([z['record'](z['string'](),z['any']()),z['null']()])['describe']('Full\x20normalized\x20event\x20payload'),'relevance':MonitorRelevanceSchema['optional']()['describe']('Relevance\x20annotation\x20—\x20attached\x20only\x20when\x20with_reason=true\x20and\x20the\x20event\x20has\x20one'),'delivered':z['boolean']()['optional']()['describe']('Todo-stream\x20arbitration\x20result\x20(shouldDeliver)\x20—\x20attached\x20only\x20when\x20relevance\x20is\x20present:\x20true\x20=\x20the\x20agent\x20todo\x20stream\x20surfaces\x20this\x20event')})['describe']('One\x20stored\x20monitor\x20event\x20with\x20its\x20read\x20flag\x20(and\x20optional\x20relevance)');export const MonitorEventsResultSchema=z['object']({'result':z['object']({'action':z['string']()['describe']('Echo\x20of\x20the\x20requested\x20action'),'events':z['array'](MonitorEventItemSchema)['optional']()['describe']('Page\x20of\x20events\x20(action=\x27query\x27)'),'total':z['number']()['optional']()['describe']('Total\x20events\x20in\x20the\x20queried\x20pool\x20(action=\x27query\x27)'),'module_counts':z['record'](z['string'](),z['number']())['optional']()['describe']('Stored\x20event\x20count\x20per\x20module\x20(action=\x27query\x27)'),'unread_by_module':z['record'](z['string'](),z['number']())['optional']()['describe']('Unread\x20count\x20per\x20module\x20(action=\x27query\x27)'),'total_unread':z['number']()['describe']('Total\x20unread\x20events\x20after\x20the\x20operation'),'marked':z['number']()['optional']()['describe']('How\x20many\x20events\x20flipped\x20to\x20read\x20(mark\x20actions)')}),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary')})['describe']('Result\x20of\x20the\x20monitor_events\x20tool');export const MonitorFocusEntrySchema=z['object']({'object':z['string']()['describe']('Object\x20address\x20to\x20focus\x20on'),'added_at':z['number']()['describe']('When\x20the\x20focus\x20was\x20added\x20(ms\x20epoch)'),'reason':z['enum'](['favor','manual','radar','goal'])['describe']('Why\x20this\x20object\x20is\x20focused:\x20favor\x20(auto\x20from\x20my\x20on-chain\x20favor\x20feedback)\x20|\x20manual\x20|\x20radar\x20|\x20goal'),'note':z['string']()['optional']()['describe']('Optional\x20human-readable\x20note'),'closure':z['boolean']()['describe']('true\x20→\x20also\x20derive\x20the\x20closure\x20(focused\x20service\x20→\x20its\x20orders;\x20focused\x20order\x20→\x20its\x20arb/progress/allocation\x20children)'),'goal_id':z['string']()['optional']()['describe']('Goal\x20id\x20when\x20reason=\x27goal\x27\x20(K3\x2024)\x20—\x20the\x20GoalEngine\x20expires\x20exactly\x20this\x20goal\x27s\x20focus\x20entries\x20on\x20completion/abandonment')})['describe']('An\x20explicitly\x20focused\x20object\x20(focus\x20closure\x20member)');export const MonitorEventFilterSchema=z['object']({'id':z['string']()['describe']('Stable\x20filter\x20id\x20(unique\x20within\x20the\x20config)'),'enabled':z['boolean']()['describe']('false\x20keeps\x20the\x20filter\x20in\x20config\x20without\x20applying\x20it'),'event':z['string']()['optional']()['describe']('Short\x20event\x20type\x20to\x20restrict\x20to\x20(e.g.\x20\x27NewPaymentEvent\x27);\x20omitted\x20=\x20all\x20captured\x20types'),'field':z['string']()['describe']('Event\x20field\x20path:\x20dot\x20notation\x20(\x27info.for_object\x27)\x20with\x20\x27[]\x27\x20array-walk\x20(\x27record[].recipient\x27\x20—\x20any\x20element\x20matches)'),'op':z['enum'](['eq','neq','contains','gte','lte','in'])['describe']('Comparison\x20op;\x20gte/lte\x20compare\x20integer-safe\x20(BigInt)\x20when\x20both\x20sides\x20are\x20base-10\x20integers'),'value':z['union']([z['string'](),z['number'](),z['array'](z['string']())])['describe']('Comparison\x20value\x20(string\x20list\x20for\x20op=\x27in\x27)')})['describe']('Conditional\x20delivery\x20filter\x20over\x20event\x20fields\x20(dry-run\x20it\x20with\x20action=\x27test_filter\x27\x20before\x20saving)');export const MonitorSubscriptionConfigInputSchema=z['object']({'enabled':z['boolean']()['optional']()['describe']('Master\x20switch\x20—\x20false\x20stops\x20the\x20todo\x20stream;\x20event\x20capture\x20continues'),'scope':z['object']({'accounts':z['union']([z['literal']('local-all'),z['array'](z['string']())])['optional']()['describe']('Anchor\x20accounts:\x20\x27local-all\x27\x20(every\x20local\x20account)\x20or\x20an\x20explicit\x20address\x20list'),'rules':z['object']({'managed_objects':z['boolean']()['optional']()['describe']('Events\x20from\x20objects\x20managed\x20by\x20my\x20permissions'),'merchant_orders':z['boolean']()['optional']()['describe']('Events\x20from\x20orders\x20of\x20MY\x20services\x20(merchant\x20side)'),'my_orders':z['boolean']()['optional']()['describe']('Events\x20from\x20orders\x20where\x20I\x20am\x20builder/agent\x20(buyer\x20side)'),'order_children':z['boolean']()['optional']()['describe']('Events\x20from\x20each\x20in-scope\x20order\x27s\x20dispute/progress/allocation\x20children'),'favor_objects':z['boolean']()['optional']()['describe']('Auto-focus\x20objects\x20I\x20recently\x20gave\x20on-chain\x20favor\x20feedback\x20to')})['optional']()['describe']('Scope-closure\x20rule\x20switches\x20(merged\x20field-wise\x20on\x20save)'),'focus_objects':z['array'](MonitorFocusEntrySchema)['optional']()['describe']('Explicit\x20focus\x20objects\x20(REPLACED\x20wholesale\x20on\x20save)')})['optional'](),'events':z['record'](z['string'](),z['boolean']())['optional']()['describe']('Per-event-type\x20delivery\x20switches\x20for\x20the\x20todo\x20stream\x20(merged\x20on\x20save).\x20Capture\x20set\x20is\x20unaffected\x20EXCEPT\x20NewPaymentEvent,\x20which\x20is\x20captured\x20only\x20when\x20switched\x20ON\x20here'),'filters':z['array'](MonitorEventFilterSchema)['optional']()['describe']('Conditional\x20delivery\x20filters\x20(REPLACED\x20wholesale\x20on\x20save)'),'loop':z['object']({'poll_interval_ms':z['number']()['int']()['positive']()['optional']()['describe']('Capture\x20tick\x20interval\x20(default\x2015000,\x20min\x205000)'),'scope_refresh_ms':z['number']()['int']()['positive']()['optional']()['describe']('Scope\x20re-resolve\x20interval\x20(default\x20300000,\x20min\x2060000)'),'backfill_days':z['number']()['int']()['min'](0x0)['optional']()['describe']('Re-annotation\x20window\x20after\x20a\x20scope\x20change\x20(default\x207\x20days,\x20min\x200)')})['optional']()['describe']('Loop\x20tuning\x20(merged\x20on\x20save,\x20clamped\x20to\x20safe\x20bounds)')})['describe']('Partial\x20SubscriptionConfig\x20for\x20action=\x27save\x27\x20—\x20omitted\x20fields\x20keep\x20their\x20current\x20values');export const MonitorSubscriptionInputSchema=z['object']({'action':z['enum'](['get','save','reset','scope_preview','test_filter'])['describe']('\x27get\x27\x20—\x20effective\x20config\x20+\x20resolved\x20scope\x20summary\x20+\x20loop\x20status;\x20'+'\x27save\x27\x20—\x20merge\x20a\x20partial\x20config\x20(loop\x20params\x20clamped\x20to\x20safe\x20bounds)\x20and\x20trigger\x20an\x20immediate\x20scope\x20re-resolve;\x20'+'\x27reset\x27\x20—\x20restore\x20defaults\x20and\x20re-resolve;\x20'+'\x27scope_preview\x27\x20—\x20current\x20scope\x20closure\x20grouped\x20by\x20layer\x20(inspect\x20BEFORE\x20tuning\x20switches);\x20'+'\x27test_filter\x27\x20—\x20dry-run\x20a\x20filter\x20over\x20recently\x20captured\x20events\x20(pre-save\x20preview)'),'config':MonitorSubscriptionConfigInputSchema['optional']()['describe']('Partial\x20config\x20for\x20action=\x27save\x27'),'rule':z['enum'](['accounts','permissions','managed_objects','services','orders','order_children','focus'])['optional']()['describe']('action=\x27scope_preview\x27\x20—\x20restrict\x20to\x20one\x20scope\x20layer;\x20omit\x20for\x20all\x20layers'),'filter':MonitorEventFilterSchema['optional']()['describe']('Filter\x20to\x20dry-run\x20for\x20action=\x27test_filter\x27'),'sample':z['number']()['int']()['positive']()['max'](0x3e8)['optional']()['describe']('action=\x27test_filter\x27\x20—\x20how\x20many\x20recent\x20captured\x20events\x20to\x20scan\x20(default\x20200,\x20max\x201000)'),'limit':z['number']()['int']()['positive']()['max'](0x1f4)['optional']()['describe']('action=\x27scope_preview\x27\x20—\x20page\x20size\x20per\x20group\x20(default\x2050,\x20max\x20500)'),'offset':z['number']()['int']()['min'](0x0)['optional']()['describe']('action=\x27scope_preview\x27\x20—\x20pagination\x20offset\x20within\x20each\x20group\x20(default\x200)'),'network':EntrypointSchema['optional']()['describe']('Network:\x20\x27mainnet\x27\x20or\x20\x27testnet\x27.\x20Uses\x20default\x20network\x20if\x20not\x20specified')})['strict']()['describe']('Input\x20parameters\x20for\x20monitor\x20subscription\x20configuration\x20(scope,\x20filters,\x20todo-stream\x20switches)');export const MonitorLoopStatusSchema=z['object']({'running':z['boolean']()['describe']('True\x20when\x20this\x20process\x27s\x20MonitorLoop\x20is\x20started\x20AND\x20holds\x20the\x20single-writer\x20lease'),'lease_holder':z['union']([z['string'](),z['null']()])['describe']('Current\x20lease\x20holder\x20(\x27<pid>:<boot_id>\x27)\x20or\x20null\x20when\x20no\x20lease\x20row\x20exists'),'last_tick_at':z['number']()['describe']('Last\x20successful\x20capture\x20tick\x20(ms\x20epoch;\x200\x20=\x20never)'),'last_new_count':z['number']()['describe']('Newly\x20captured\x20events\x20on\x20the\x20last\x20tick'),'scope_version':z['number']()['describe']('In-memory\x20ScopeSnapshot\x20version\x20(0\x20=\x20none\x20resolved\x20yet)'),'backoff_ms':z['number']()['describe']('Active\x20error\x20backoff\x20in\x20ms\x20(0\x20=\x20none)')})['describe']('MonitorLoop\x20runtime\x20status\x20for\x20this\x20process');export const MonitorSubscriptionResolvedSchema=z['object']({'scope_version':z['number']()['describe']('Current\x20ScopeSnapshot\x20version\x20(0\x20=\x20not\x20resolved\x20yet)'),'counts':z['object']({'accounts':z['number'](),'permissions':z['number'](),'managed':z['number'](),'services':z['number'](),'orders':z['number'](),'order_children':z['number'](),'focus':z['number']()})['describe']('Scope-closure\x20size\x20per\x20derivation\x20layer'),'capture_types':z['array'](z['string']())['describe']('Event\x20types\x20the\x20MonitorLoop\x20captures\x20with\x20this\x20config\x20(14\x20always-on\x20+\x20NewPaymentEvent\x20when\x20enabled)'),'last_poll_at':z['number']()['describe']('Last\x20persisted\x20capture\x20time\x20(ms\x20epoch;\x20cross-process\x20—\x20written\x20by\x20whichever\x20process\x20holds\x20the\x20lease)'),'loop':MonitorLoopStatusSchema['describe']('This\x20process\x27s\x20MonitorLoop\x20status'),'backfill':z['string']()['optional']()['describe']('save/reset\x20only:\x20\x27scheduled\x27\x20when\x20a\x20scope\x20change\x20triggered\x20a\x20non-blocking\x20re-annotation\x20backfill,\x20\x27not_needed\x27\x20otherwise')})['describe']('Resolved\x20subscription\x20state\x20—\x20effective\x20scope\x20summary\x20+\x20capture\x20set\x20+\x20loop\x20status');export const MonitorScopePreviewGroupSchema=z['object']({'total':z['number']()['describe']('Total\x20items\x20in\x20this\x20group'),'items':z['array'](z['record'](z['string'](),z['any']()))['describe']('Page\x20of\x20items;\x20each\x20has\x20\x27object\x27\x20(or\x20\x27address\x27\x20for\x20accounts)\x20plus\x20type\x20/\x20role\x20/\x20detail\x20when\x20applicable')})['describe']('One\x20scope-preview\x20group\x20(paginated)');export const MonitorSubscriptionResultSchema=z['object']({'result':z['object']({'action':z['string']()['describe']('Echo\x20of\x20the\x20requested\x20action'),'config':z['record'](z['string'](),z['any']())['optional']()['describe']('Effective\x20SubscriptionConfig\x20(get/save/reset)'),'resolved':MonitorSubscriptionResolvedSchema['optional']()['describe']('Resolved\x20scope\x20+\x20loop\x20summary\x20(get/save/reset)'),'groups':z['record'](z['string'](),MonitorScopePreviewGroupSchema)['optional']()['describe']('Scope\x20preview\x20groups\x20keyed\x20by\x20layer\x20(scope_preview)'),'matched':z['number']()['optional']()['describe']('test_filter:\x20how\x20many\x20scanned\x20events\x20the\x20filter\x20matched'),'scanned':z['number']()['optional']()['describe']('test_filter:\x20how\x20many\x20recent\x20events\x20were\x20scanned'),'samples':z['array'](z['object']({'event_id':z['string'](),'type':z['string'](),'time':z['number']()}))['optional']()['describe']('test_filter:\x20up\x20to\x205\x20matched\x20sample\x20events')}),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary')})['describe']('Result\x20of\x20the\x20monitor_subscription\x20tool');export const TableItem_RepositoryDataOrUndefinedSchema=z['union']([TableItem_RepositoryDataSchema,z['null']()])['describe']('Repository\x20data\x20item\x20or\x20null');export const TableItem_PermissionPermOrUndefinedSchema=z['union']([TableItem_PermissionPermSchema,z['null']()])['describe']('Permission\x20permission\x20item\x20or\x20null');export const TableItem_EntityRegistrarOrUndefinedSchema=z['union']([TableItem_EntityRegistrarSchema,z['null']()])['describe']('Entity\x20registrar\x20item\x20or\x20null');export const TableItem_EntityLinkerOrUndefinedSchema=z['union']([TableItem_EntityLinkerSchema,z['null']()])['describe']('Entity\x20linker\x20item\x20or\x20null');export const TableItem_RewardRecordOrUndefinedSchema=z['union']([TableItem_RewardRecordSchema,z['null']()])['describe']('Reward\x20record\x20item\x20or\x20null');export const TableItem_DemandPresenterOrUndefinedSchema=z['union']([TableItem_DemandPresenterSchema,z['null']()])['describe']('Demand\x20presenter\x20item\x20or\x20null');export const TableItem_TreasuryHistoryOrUndefinedSchema=z['union']([TableItem_TreasuryHistorySchema,z['null']()])['describe']('Treasury\x20history\x20item\x20or\x20null');export const TableItem_MachineNodeOrUndefinedSchema=z['union']([TableItem_MachineNodeSchema,z['null']()])['describe']('Machine\x20node\x20item\x20or\x20null');export const TableItem_ProgressHistoryOrUndefinedSchema=z['union']([TableItem_ProgressHistorySchema,z['null']()])['describe']('Progress\x20history\x20item\x20or\x20null');export const TableItem_AddressMarkOrUndefinedSchema=z['union']([TableItem_AddressMarkSchema,z['null']()])['describe']('Address\x20mark\x20item\x20or\x20null');export const ObjectPersonalOrUndefinedSchema=z['object']({'result':z['union']([ObjectPersonalSchema,z['null']()])['describe']('Personal\x20object\x20or\x20null')})['describe']('Personal\x20object\x20or\x20null');export const TokenTypeInfoOrUndefinedSchema=z['object']({'result':z['union']([TokenTypeInfoSchema,z['null']()])['describe']('Token\x20type\x20info\x20or\x20null')})['describe']('Token\x20type\x20info\x20or\x20null');export const EventAnswerOrUndefinedSchema=z['object']({'result':z['union']([EventAnswerSchema,z['null']()])['describe']('Event\x20answer\x20or\x20null')})['describe']('Event\x20answer\x20or\x20null');export const TableAnswerOrUndefinedSchema=z['object']({'result':z['union']([TableAnswerSchema,z['null']()])['describe']('Table\x20answer\x20or\x20null')})['describe']('Table\x20answer\x20or\x20null');export const QueryTableItemSchema=z['discriminatedUnion']('type',[z['object']({'type':z['literal']('RepositoryData'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'name':z['string']()['describe']('Name\x20of\x20the\x20record\x20to\x20query'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('ID\x20or\x20address\x20of\x20the\x20entity;\x20or\x20address\x20that\x20number\x20is\x20casted\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20repository\x20data\x20table\x20item'),z['object']({'type':z['literal']('PermissionPerm'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('User\x20ID\x20or\x20address,\x20or\x20Guard\x20ID\x20in\x20the\x20permission\x20perm\x20table'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20permission\x20perm\x20table\x20item'),z['object']({'type':z['literal']('EntityRegistrar'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20entity'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20registrar\x20table\x20item'),z['object']({'type':z['literal']('EntityLinker'),'address':z['union']([AccountOrMark_AddressSchema,z['string']()])['describe']('ID\x20or\x20address\x20that\x20the\x20registrar\x20votes\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20entity\x20linker\x20table\x20item'),z['object']({'type':z['literal']('RewardRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20that\x20claims\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20reward\x20record\x20table\x20item'),z['object']({'type':z['literal']('DemandPresenter'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('User\x20ID\x20or\x20address\x20of\x20the\x20Demand\x20presenter'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20demand\x20presenter\x20table\x20item'),z['object']({'type':z['literal']('TreasuryRecord'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20of\x20the\x20payment\x20that\x20the\x20treasury\x20record\x20is\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20treasury\x20record\x20table\x20item'),z['object']({'type':z['literal']('MachineNode'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'key':z['string']()['describe']('String\x20key\x20of\x20the\x20node\x20name\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20machine\x20node\x20table\x20item'),z['object']({'type':z['literal']('ProgressHistory'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'u64':z['union']([z['number'](),z['string']()])['describe']('U64\x20value\x20of\x20the\x20record\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20progress\x20history\x20table\x20item'),z['object']({'type':z['literal']('AddressMark'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20of\x20the\x20data\x20table\x20to\x20query'),'address':AccountOrMark_AddressSchema['describe']('ID\x20or\x20address\x20that\x20the\x20mark\x20name\x20and\x20tags\x20are\x20attached\x20to'),'no_cache':z['boolean']()['optional']()['describe']('Whether\x20to\x20disable\x20cache'),'network':EntrypointSchema['optional']()})['describe']('Request\x20parameters\x20for\x20querying\x20address\x20mark\x20table\x20item')])['describe']('Request\x20parameters\x20for\x20querying\x20table\x20items');export const TableItemUnionOrUndefinedSchema=z['object']({'result':z['union']([TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema,z['null']()])['describe']('Table\x20item\x20or\x20null')})['describe']('Table\x20item\x20or\x20null');export const ConstantItemSchema=z['object']({'name':z['string']()['describe']('Name'),'value':z['union']([z['string'](),z['number']()])['describe']('Value'),'description':z['string']()['describe']('Description')})['describe']('Constant\x20item');export const PermissionInfoTypeSchema=z['object']({'index':z['number']()['describe']('Permission\x20index\x20(e.g.\x20315\x20for\x20service.compensation_fund_deposit)'),'name':z['string']()['describe']('Permission\x20name\x20(e.g.\x20\x22service.compensation_fund_deposit\x22)'),'description':z['string']()['describe']('Description\x20of\x20what\x20this\x20permission\x20allows'),'object_type':z['string']()['describe']('Object\x20type\x20this\x20permission\x20belongs\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['optional'](z['string']())['describe']('The\x20SDK/MCP\x20operation\x20field\x20name\x20that\x20triggers\x20this\x20permission\x20check\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22publish\x22,\x20\x22pause\x22).\x20Undefined\x20for\x20permissions\x20with\x20no\x20direct\x20Call*_Data\x20field\x20(e.g.\x20\x22*.new\x22\x20permissions).\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20by\x20filtering\x20with\x20{operation:\x20\x22compensation_fund_add\x22}.')})['describe']('Permission\x20info\x20type\x20—\x20includes\x20the\x20operation\x20field\x20name\x20that\x20maps\x20to\x20this\x20permission,\x20so\x20AI\x20can\x20look\x20up\x20required\x20permissions\x20by\x20operation\x20name.');export const GuardInstructSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction'),'id':z['number']()['int']()['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(node\x20opcode:\x2040=query\x20node,\x2045=Signer,\x2046=Clock,\x2047=Guard,\x2048=table-constant/identifier;\x20other\x20opcodes\x20are\x20operators)'),'description':z['string']()['describe']('Description\x20of\x20the\x20guard\x20instruction'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20of\x20the\x20guard\x20instruction'),'node':z['optional'](z['string']())['describe']('Exact\x20root-node\x20JSON\x20for\x20entries\x20whose\x20catalog\x20name\x20is\x20not\x20itself\x20a\x20root\x20node\x20type\x20(identifier\x20/\x20query_wowok_object\x20/\x20context_*).\x20For\x20all\x20other\x20entries\x20the\x20root\x20node\x20is\x20{\x22type\x22:\x20name,\x20...}'),'kind':z['optional'](z['enum'](['node','query']))['describe']('\x22node\x22\x20=\x20builds\x20a\x20Guard\x20root\x20node;\x20\x22query\x22\x20=\x20a\x20query-id\x20usable\x20only\x20as\x20the\x20`query`\x20selector\x20INSIDE\x20a\x20{\x22type\x22:\x22query\x22}\x20node,\x20never\x20as\x20a\x20root\x20node\x20type')})['describe']('Guard\x20instruction\x20info');export const GuardItemSchema=z['object']({'name':z['string']()['describe']('Name\x20of\x20the\x20guard\x20instruction\x20or\x20query'),'id':z['union']([z['number']()['int'](),QueryIdSchema])['describe']('ID\x20of\x20the\x20guard\x20instruction\x20(node\x20opcode)\x20or\x20object\x20query\x20selector\x20(1000-2255\x20U16,\x20used\x20only\x20inside\x20a\x20query\x20node)'),'description':z['string']()['describe']('Description'),'kind':z['optional'](z['enum'](['node','query']))['describe']('\x22node\x22\x20=\x20builds\x20a\x20Guard\x20root\x20node;\x20\x22query\x22\x20=\x20query-id\x20usable\x20only\x20inside\x20a\x20{\x22type\x22:\x22query\x22}\x20node'),'node':z['optional'](z['string']())['describe']('Exact\x20root-node\x20JSON\x20for\x20special\x20entries\x20(identifier\x20/\x20query_wowok_object\x20/\x20context_*)\x20whose\x20catalog\x20name\x20is\x20not\x20itself\x20a\x20root\x20node\x20type'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20instruction'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20for\x20guard\x20query'),'parameters':z['optional'](z['array'](ValueTypeSchema))['describe']('Parameters\x20for\x20guard\x20query'),'return':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20for\x20guard\x20query'),'parameters_description':z['optional'](z['array'](z['string']()))['describe']('Parameter\x20descriptions\x20for\x20guard\x20query')})['describe']('Guard\x20item\x20-\x20either\x20a\x20guard\x20instruction\x20(kind=\x22node\x22:\x20build\x20a\x20root\x20node)\x20or\x20a\x20guard\x20query\x20(kind=\x22query\x22:\x20use\x20its\x20id\x20inside\x20a\x20query\x20node)');export const GuardInstructFilterOptionsSchema=z['object']({'name':z['optional'](z['string']())['describe']('Name\x20filter\x20(case-insensitive\x20partial\x20match)'),'id':z['optional'](z['array'](z['number']()['int']()))['describe']('ID\x20array\x20filter\x20(OperatorType\x20|\x20ContextType\x20|\x20number)'),'returnType':z['optional'](ValueTypeSchema)['describe']('Return\x20type\x20filter'),'paramCount':z['optional'](z['number']()['int']())['describe']('Parameter\x20count\x20filter'),'scope':z['optional'](z['enum'](['instruct','object\x20query','all']))['describe']('Scope\x20filter:\x20instruct,\x20object\x20query,\x20or\x20all')['default']('all'),'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter\x20(only\x20for\x20object\x20query\x20scope)')})['describe']('Guard\x20instruction\x20filter\x20options');export const PermissionFilterSchema=z['object']({'objectType':z['optional'](ObjectTypeSchema)['describe']('Object\x20type\x20filter'),'name':z['optional'](z['string']())['describe']('Name\x20filter'),'index':z['optional'](PermissionIndexTypeSchema)['describe']('Index\x20filter'),'description':z['optional'](z['string']())['describe']('Description\x20filter'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20SDK/MCP\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22).\x20Returns\x20only\x20permissions\x20triggered\x20by\x20this\x20operation.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22')})['describe']('Permission\x20filter');export const CommonMistakeInfoSchema=z['object']({'object_type':z['string']()['describe']('The\x20object\x20type\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22Service\x22,\x20\x22Arbitration\x22)'),'operation':z['string']()['describe']('The\x20operation\x20field\x20name\x20this\x20mistake\x20applies\x20to\x20(e.g.\x20\x22compensation_fund_add\x22,\x20\x22voting_deadline\x22)'),'category':z['enum'](['field_name','unit','value_range','workflow','timing'])['describe']('Category\x20of\x20the\x20mistake:\x20field_name\x20(wrong\x20field\x20name),\x20unit\x20(wrong\x20unit\x20like\x20seconds\x20vs\x20ms),\x20value_range\x20(wrong\x20expected\x20value),\x20workflow\x20(wrong\x20operation\x20order),\x20timing\x20(wrong\x20time\x20constraint)'),'mistake':z['string']()['describe']('Short\x20description\x20of\x20the\x20mistake'),'correct_usage':z['string']()['describe']('The\x20correct\x20usage\x20pattern'),'wrong_example':z['string']()['describe']('Example\x20of\x20the\x20wrong\x20usage'),'correct_example':z['string']()['describe']('Example\x20of\x20the\x20correct\x20usage')})['describe']('A\x20known\x20common\x20mistake\x20for\x20an\x20on-chain\x20operation.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20they\x20submit\x20a\x20transaction.');export const CommonMistakeFilterSchema=z['object']({'object_type':z['optional'](z['string']())['describe']('Filter\x20by\x20object\x20type\x20(e.g.\x20\x22Service\x22)'),'operation':z['optional'](z['string']())['describe']('Filter\x20by\x20operation\x20field\x20name\x20(e.g.\x20\x22compensation_fund_add\x22)'),'category':z['optional'](z['enum'](['field_name','unit','value_range','workflow','timing']))['describe']('Filter\x20by\x20category\x20(e.g.\x20\x22field_name\x22\x20for\x20field-name\x20mistakes,\x20\x22unit\x22\x20for\x20unit\x20mistakes)')})['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation.');export const BridgeTokenInfoSchema=z['object']({'tokenId':z['number']()['describe']('On-chain\x20token\x20ID\x20(mainnet:\x20WBTC=1,\x20ETH/WETH=2,\x20USDC=3,\x20USDT=4)'),'symbol':z['string']()['describe']('Token\x20symbol/abbreviation\x20(ETH,\x20WETH,\x20WBTC,\x20USDC,\x20USDT)'),'wowTypeTag':z['string']()['describe']('WOW-side\x20token\x20type\x20tag\x20(format:\x20{address}::{module}::{struct},\x20e.g.\x20\x220x2::wow::WOW\x22,\x20\x220x...::usdt::USDT\x22).\x20IMPORTANT:\x20This\x20value\x20can\x20be\x20used\x20directly\x20as\x20the\x20`type_parameter`\x20for\x20Service\x20/\x20Treasury\x20/\x20Reward\x20/\x20Allocation\x20objects\x20to\x20set\x20their\x20payment\x20token.\x20e.g.\x20use\x20USDT\x27s\x20wowTypeTag\x20to\x20create\x20a\x20Service\x20that\x20accepts\x20USDT\x20payments.\x20To\x20discover\x20all\x20available\x20tokens,\x20query\x20this\x20info\x20type.'),'evmAddress':z['string']()['describe']('EVM-side\x20contract\x20address\x20(0x000...000\x20for\x20native\x20ETH;\x20ERC20\x20contract\x20address\x20otherwise)'),'evmDecimals':z['number']()['describe']('EVM-side\x20decimals\x20(ETH/WETH=18,\x20WBTC=8,\x20USDC/USDT=6)'),'wowDecimals':z['number']()['describe']('WOW-side\x20decimals\x20(ETH/WBTC=8,\x20USDC/USDT=6)'),'evmChains':z['array'](z['number']())['optional']()['describe']('Bridge\x20protocol\x20chain\x20IDs\x20where\x20this\x20token\x20is\x20available\x20(e.g.\x2010\x20=\x20ETH\x20mainnet)'),'description':z['string']()['optional']()['describe']('Token\x20description')})['describe']('Mainnet\x20Bridge\x20token\x20info');export const FundingGuidanceSchema=z['object']({'overview':z['string']()['describe']('Overview\x20of\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens'),'testnet':z['object']({'token':z['string']()['describe']('Testnet\x20token\x20(WOW)'),'method':z['literal']('faucet')['describe']('Testnet\x20funding\x20method\x20(faucet)'),'faucet_url':z['string']()['describe']('Testnet\x20faucet\x20URL'),'note':z['string']()['describe']('Testnet\x20funding\x20note:\x20all\x20merchant/order\x20testing\x20can\x20use\x20WOW')}),'mainnet':z['object']({'method':z['literal']('eth_bridge')['describe']('Mainnet\x20funding\x20method\x20(ETH\x20mainnet\x20cross-chain\x20bridge)'),'supported_tokens':z['array'](z['string']())['describe']('Tokens\x20supported\x20by\x20the\x20mainnet\x20bridge\x20(ETH/USDT/USDC/WBTC)'),'steps':z['array'](z['string']())['describe']('Step-by-step\x20mainnet\x20funding\x20flow:\x20query\x20active\x20EVM\x20account\x20→\x20transfer\x20from\x20external\x20wallet\x20→\x20confirm\x20balance\x20→\x20cross-chain\x20to\x20WOW')}),'airdrop':z['object']({'url':z['string']()['describe']('WOW\x20airdrop\x20page\x20—\x20single\x20source\x20of\x20truth\x20for\x20the\x20CURRENT\x20round\x20(status,\x20pool,\x20dates,\x20eligibility).\x20Fetch/open\x20it\x20for\x20live\x20details;\x20do\x20not\x20rely\x20on\x20embedded\x20constants\x20because\x20the\x20facts\x20change\x20between\x20rounds.'),'refer_url':z['string']()['describe']('WOW\x20airdrop\x20referral-program\x20page'),'note':z['string']()['describe']('Instruction:\x20live\x20round\x20details\x20are\x20published\x20only\x20on\x20the\x20airdrop\x20page\x20and\x20intentionally\x20not\x20hardcoded;\x20if\x20the\x20user\x20needs\x20detail\x20beyond\x20the\x20link,\x20fetch\x20the\x20page\x20and\x20summarize\x20it.')}),'payment_token':z['object']({'testnet_default':z['string']()['describe']('Default\x20testnet\x20payment\x20token\x20(WOW)'),'mainnet_option':z['string']()['describe']('Mainnet\x20payment\x20token\x20option\x20(USDT\x20and\x20other\x20stablecoins)'),'migration_note':z['string']()['describe']('Guidance:\x20ask\x20whether\x20to\x20switch\x20payment\x20token\x20when\x20migrating\x20testnet\x20→\x20mainnet')})})['describe']('Funding\x20guidance\x20—\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens\x20(testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop).\x20This\x20is\x20the\x20first-step\x20guidance\x20for\x20new\x20users.');export const UniversalTemplateSchema=z['object']({'template':z['literal']('universal')['describe']('Template\x20kind'),'version':z['string']()['describe']('Template\x20version'),'anti_cheat_baseline':z['object']({'fake_orders':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'fake_reviews':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'shell_merchant':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())}),'reputation_trade':z['object']({'enabled':z['boolean'](),'rules':z['array'](z['string']())})})['describe']('Anti-cheat\x20detector\x20baselines'),'pricing_redlines':z['array'](z['string']())['describe']('Forbidden\x20dynamic-pricing\x20mode\x20names'),'governance_redlines':z['array'](z['string']())['describe']('Governance\x20red\x20lines'),'quality_signals':z['array'](z['string']())['describe']('Quality\x20signal\x20identifiers'),'consumer_journey':z['array'](z['string']())['describe']('Consumer\x20journey\x20stages'),'north_star_metric':z['string']()['describe']('North-star\x20metric\x20id'),'revenue_boundary':z['string']()['describe']('Sustainable\x20revenue\x20boundary')})['describe']('Universal\x20Template\x20—\x20cross-industry\x20baselines\x20and\x20red\x20lines');export const GettingStartedSchema=z['object']({'skills':z['object']({'what':z['string']()['describe']('What\x20the\x20WoWok\x20Skills\x20are\x20and\x20how\x20they\x20relate\x20to\x20this\x20MCP\x20server'),'package':z['string']()['describe']('npm\x20package\x20name\x20of\x20the\x20companion\x20skills'),'recommended':z['boolean']()['describe']('Whether\x20installing\x20the\x20skills\x20is\x20recommended\x20by\x20the\x20project'),'install_command':z['string']()['describe']('Command\x20that\x20installs\x20skills\x20into\x20every\x20detected\x20AI\x20client\x20AND\x20registers\x20this\x20MCP\x20server\x20(postinstall\x20is\x20idempotent)'),'doctor_command':z['string']()['describe']('Authoritative\x20per-client\x20install\x20+\x20MCP\x20registration\x20check'),'repair_command':z['string']()['describe']('Command\x20that\x20rewrites\x20every\x20install\x20target\x20(use\x20after\x20old/broken\x20installs)'),'detection':z['object']({'status':z['enum'](['detected','not_detected'])['describe']('Best-effort\x20scan\x20of\x20standard\x20client\x20skill\x20roots\x20on\x20THIS\x20machine'),'detected_roots':z['array'](z['string']())['describe']('Skill\x20roots\x20that\x20contained\x20a\x20wowok-*\x20skill\x20directory\x20or\x20the\x20.wowok-skills.json\x20manifest')})['describe']('Best-effort\x20local\x20skills\x20detection'),'detection_note':z['string']()['describe']('Why\x20detection\x20is\x20best-effort\x20and\x20when\x20to\x20trust\x20doctor\x20instead'),'roles':z['array'](z['string']())['describe']('Role-based\x20skill\x20names\x20the\x20package\x20installs')})['describe']('Companion\x20Skills\x20layer\x20orientation'),'cold_start':z['object']({'ready_seconds':z['number']()['describe']('Approximate\x20upper\x20bound\x20of\x20first-call\x20startup\x20latency'),'note':z['string']()['describe']('Why\x20the\x20first\x20call\x20after\x20boot\x20is\x20slow\x20and\x20why\x20it\x20is\x20not\x20a\x20failure')})['describe']('Cold-start\x20readiness\x20window'),'common_goals':z['array'](z['object']({'goal':z['string']()['describe']('A\x20common\x20user\x20goal'),'skills':z['array'](z['string']())['describe']('Role\x20skills\x20carrying\x20the\x20playbook\x20for\x20this\x20goal'),'tools':z['array'](z['string']())['describe']('MCP\x20sub-tools\x20most\x20often\x20used\x20for\x20this\x20goal')}))['describe']('Which\x20sub-tools\x20and\x20skills\x20matter\x20for\x20common\x20goals'),'first_calls':z['array'](z['string']())['describe']('Suggested\x20orientation\x20calls\x20for\x20a\x20freshly\x20connected\x20agent')})['describe']('Getting\x20started\x20orientation\x20for\x20agents\x20connecting\x20to\x20the\x20WoWok\x20MCP\x20server');export const ProtocolInfoQuerySchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants')})['strict']()['describe']('Constants\x20query'),z['object']({'info':z['literal']('built-in\x20permissions'),'filter':z['optional'](PermissionFilterSchema)['describe']('Filter\x20for\x20built-in\x20permissions.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20which\x20permission\x20a\x20specific\x20operation\x20requires.')})['strict']()['describe']('Built-in\x20permissions\x20query.\x20Each\x20permission\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20that\x20maps\x20to\x20the\x20SDK/MCP\x20Call*_Data\x20field\x20name\x20triggering\x20it.\x20Use\x20this\x20to\x20answer:\x20\x22What\x20permission\x20does\x20operation\x20X\x20require?\x22\x20—\x20e.g.\x20filter\x20operation:\x22compensation_fund_add\x22\x20returns\x20permission\x20index\x20315\x20(service.compensation_fund_deposit).'),z['object']({'info':z['literal']('common\x20mistakes'),'filter':z['optional'](CommonMistakeFilterSchema)['describe']('Filter\x20for\x20common\x20mistakes.\x20Use\x20operation:\x22compensation_fund_add\x22\x20to\x20find\x20mistakes\x20for\x20a\x20specific\x20operation,\x20or\x20category:\x22field_name\x22\x20for\x20all\x20field-name\x20mistakes.')})['strict']()['describe']('Common\x20mistakes\x20query.\x20Returns\x20known\x20field-name,\x20unit,\x20value-range,\x20workflow,\x20and\x20timing\x20pitfalls\x20for\x20on-chain\x20operations.\x20Use\x20this\x20to\x20proactively\x20warn\x20users\x20before\x20submitting\x20a\x20transaction.\x20Example:\x20query\x20operation:\x22compensation_fund_add\x22\x20to\x20learn\x20about\x20the\x20{amount}\x20vs\x20{balance}\x20field\x20name\x20mistake.'),z['object']({'info':z['literal']('guard\x20instructions'),'filter':z['optional'](GuardInstructFilterOptionsSchema)['describe']('Filter\x20for\x20guard\x20instructions')})['strict']()['describe']('Guard\x20instructions\x20and\x20wowok\x20object\x20queries'),z['object']({'info':z['literal']('current\x20network')})['strict']()['describe']('Current\x20network\x20entrypoint'),z['object']({'info':z['literal']('value\x20types')})['strict']()['describe']('Value\x20types\x20query\x20-\x20returns\x20all\x20supported\x20value\x20types\x20with\x20their\x20numeric\x20and\x20string\x20representations'),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens')})['strict']()['describe']('Mainnet\x20Bridge\x20tokens\x20query\x20-\x20returns\x20all\x20tokens\x20deployed\x20on\x20the\x20mainnet\x20bridge\x20with\x20their\x20symbol,\x20WOW-side\x20type\x20tag,\x20EVM\x20address,\x20decimals,\x20and\x20description'),z['object']({'info':z['literal']('funding\x20guidance')})['strict']()['describe']('Funding\x20guidance\x20query\x20-\x20how\x20to\x20obtain\x20WOW\x20gas\x20and\x20payment\x20tokens.\x20Returns\x20testnet\x20faucet\x20info,\x20mainnet\x20ETH\x20cross-chain\x20bridge\x20flow,\x20and\x20the\x20WOW\x20mainnet\x20airdrop\x20link.\x20Use\x20this\x20when\x20a\x20user\x20asks\x20how\x20to\x20obtain\x20tokens/gas/funds,\x20or\x20as\x20a\x20proactive\x20first-use\x20reminder.'),z['object']({'info':z['literal']('upgrade_check')})['strict']()['describe']('Upgrade\x20check\x20-\x20returns\x20current\x20vs\x20latest\x20npm\x20versions\x20of\x20the\x20WoWok\x20MCP\x20server\x20and\x20SDK,\x20whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed,\x20and\x20whether\x20an\x20upgrade/install\x20reminder\x20is\x20due.\x20Call\x20at\x20the\x20start\x20of\x20a\x20conversation\x20to\x20decide\x20whether\x20to\x20remind\x20the\x20user\x20to\x20upgrade\x20or\x20install\x20the\x20client.'),z['object']({'info':z['literal']('universal_template')})['strict']()['describe']('Universal\x20Template\x20query\x20-\x20returns\x20cross-industry\x20baselines\x20and\x20red\x20lines\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)\x20that\x20hold\x20across\x20ALL\x20industries\x20(K3\x2017\x20§2).'),z['object']({'info':z['literal']('getting\x20started')})['strict']()['describe']('Getting-started\x20orientation\x20for\x20a\x20freshly\x20connected\x20agent\x20-\x20what\x20the\x20companion\x20WoWok\x20Skills\x20are,\x20install/doctor/repair\x20commands,\x20best-effort\x20local\x20detection\x20of\x20installed\x20skills,\x20the\x20~20s\x20cold-start\x20window,\x20and\x20which\x20sub-tools\x20matter\x20for\x20common\x20goals.\x20Call\x20this\x20at\x20conversation\x20start\x20when\x20no\x20skill\x20guidance\x20is\x20loaded.')])['describe']('WoWok\x20Build-in\x20infomation\x20query');export const BuiltinPermissionSchema=z['object']({'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result')})['describe']('Built-in\x20permissions\x20query\x20result');export const UpgradeCheckComponentSchema=z['object']({'current':z['string']()['nullable']()['describe']('Currently\x20installed/running\x20version'),'latest':z['string']()['nullable']()['describe']('Latest\x20published\x20npm\x20version\x20(null\x20when\x20offline/unreachable)'),'outdated':z['boolean']()['describe']('true\x20when\x20a\x20newer\x20version\x20is\x20available')})['describe']('A\x20component\x20version\x20comparison');export const UpgradeCheckResultSchema=z['object']({'mcp':UpgradeCheckComponentSchema['describe']('WoWok\x20MCP\x20server\x20version\x20comparison'),'sdk':UpgradeCheckComponentSchema['describe']('WoWok\x20SDK\x20version\x20comparison'),'client_installed':z['boolean']()['describe']('Whether\x20the\x20WoWok\x20desktop\x20client\x20is\x20installed'),'client_install_hint':z['string']()['nullable']()['describe']('Where\x20to\x20get\x20the\x20desktop\x20client\x20(e.g.\x20download\x20URL)'),'upgrade_available':z['boolean']()['describe']('true\x20when\x20any\x20component\x20is\x20outdated'),'reminder':z['object']({'type':z['enum'](['upgrade','install_client','none'])['describe']('Reminder\x20kind'),'due':z['boolean']()['describe']('Whether\x20to\x20surface\x20the\x20reminder\x20in\x20this\x20conversation'),'message':z['string']()['nullable']()['describe']('Ready-to-use,\x20benefit-focused\x20reminder\x20message;\x20null\x20when\x20not\x20due')})['describe']('Reminder\x20decision'),'checked_at':z['string']()['describe']('ISO\x20timestamp\x20of\x20the\x20check')})['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result');export const ProtocolInfoResultWrappedSchema=z['discriminatedUnion']('info',[z['object']({'info':z['literal']('constants'),'result':z['array'](ConstantItemSchema)['describe']('Constants\x20result')}),z['object']({'info':z['literal']('built-in\x20permissions'),'result':z['array'](PermissionInfoTypeSchema)['describe']('Built-in\x20permissions\x20result.\x20Each\x20item\x20includes\x20an\x20optional\x20\x22operation\x22\x20field\x20mapping\x20to\x20the\x20SDK/MCP\x20field\x20name\x20that\x20triggers\x20this\x20permission.')}),z['object']({'info':z['literal']('common\x20mistakes'),'result':z['array'](CommonMistakeInfoSchema)['describe']('Common\x20mistakes\x20result.\x20Each\x20item\x20documents\x20a\x20known\x20pitfall\x20(wrong\x20field\x20name,\x20wrong\x20unit,\x20wrong\x20workflow\x20order,\x20etc.)\x20with\x20wrong/correct\x20examples.')}),z['object']({'info':z['literal']('guard\x20instructions'),'result':z['array'](GuardItemSchema)['describe']('Guard\x20instructions\x20result')}),z['object']({'info':z['literal']('current\x20network'),'result':EntrypointSchema['describe']('Current\x20network\x20entrypoint')}),z['object']({'info':z['literal']('value\x20types'),'result':z['array'](ConstantItemSchema)['describe']('Value\x20types\x20result\x20-\x20each\x20item\x20contains\x20name\x20(string),\x20value\x20(string),\x20and\x20description\x20showing\x20the\x20numeric\x20mapping')}),z['object']({'info':z['literal']('mainnet\x20bridge\x20tokens'),'result':z['array'](BridgeTokenInfoSchema)['describe']('Mainnet\x20Bridge\x20tokens\x20result\x20-\x20each\x20item\x20contains\x20tokenId,\x20symbol,\x20wowTypeTag,\x20evmAddress,\x20evmDecimals,\x20wowDecimals,\x20evmChains,\x20and\x20description')}),z['object']({'info':z['literal']('funding\x20guidance'),'result':FundingGuidanceSchema['describe']('Funding\x20guidance\x20result\x20-\x20testnet\x20faucet\x20/\x20mainnet\x20bridge\x20/\x20airdrop\x20/\x20payment-token\x20guidance')}),z['object']({'info':z['literal']('upgrade_check'),'result':UpgradeCheckResultSchema['describe']('Upgrade\x20&\x20client-install\x20reminder\x20check\x20result')}),z['object']({'info':z['literal']('universal_template'),'result':UniversalTemplateSchema['describe']('Universal\x20Template\x20data\x20(anti-cheat\x20baseline,\x20pricing/governance\x20red\x20lines,\x20quality\x20signals,\x20consumer\x20journey,\x20north-star\x20metric)')}),z['object']({'info':z['literal']('getting\x20started'),'result':GettingStartedSchema['describe']('Getting-started\x20orientation\x20(companion\x20Skills,\x20install/doctor\x20commands,\x20local\x20detection,\x20cold-start\x20window,\x20common-goal\x20tool\x20map)')})])['describe']('Protocol\x20info\x20result');export const ProtocolInfoResultSchema=z['object']({'result':ProtocolInfoResultWrappedSchema})['describe']('Protocol\x20info\x20result');export const LocalQueryResultSchema=z['union']([z['object']({'query_type':z['literal']('local_mark_list'),'result':QueryLocalMarkListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_list'),'result':QueryAccountListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('local_info_list'),'result':QueryLocalInfoListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('token_list'),'result':QueryLocalTokenListResultSchema['shape']['result']}),z['object']({'query_type':z['literal']('account_balance'),'result':QueryAccountResultSchema})]);export const TxObjectChangeSchema=z['object']({'id':z['string']()['describe']('Object\x20ID\x20affected\x20by\x20the\x20transaction'),'type':z['enum'](['created','mutated','deleted','wrapped','unwrapped'])['describe']('Type\x20of\x20object\x20change'),'object_type':z['string']()['optional']()['describe']('Full\x20Move\x20type\x20of\x20the\x20object'),'sender':z['string']()['optional']()['describe']('Sender\x20who\x20caused\x20this\x20object\x20change'),'version':z['string']()['optional']()['describe']('Object\x20version\x20after\x20the\x20change'),'previous_version':z['string']()['optional']()['describe']('Previous\x20object\x20version\x20(for\x20mutations)'),'digest':z['string']()['optional']()['describe']('Transaction\x20digest\x20that\x20caused\x20this\x20change')})['strict']()['describe']('Object\x20change\x20within\x20a\x20transaction');export const TxBalanceChangeSchema=z['object']({'owner':z['string']()['describe']('Owner\x20address\x20of\x20the\x20balance\x20change'),'coin_type':z['string']()['describe']('Coin\x20type\x20(e.g.\x200x2::wow::WOW)'),'amount':z['string']()['describe']('Amount\x20changed\x20(signed\x20string,\x20positive=incoming,\x20negative=outgoing)')})['strict']()['describe']('Balance\x20change\x20within\x20a\x20transaction');export const TxEventSchema=z['object']({'type':z['string']()['describe']('Fully-qualified\x20event\x20type\x20(e.g.\x200x2::progress::ProgressEvent)'),'package_id':z['string']()['optional']()['describe']('Package\x20that\x20declared\x20the\x20event\x20module'),'module':z['string']()['optional']()['describe']('Module\x20name\x20that\x20emitted\x20the\x20event'),'sender':z['string']()['optional']()['describe']('Sender\x20of\x20the\x20emitting\x20transaction'),'parsed_json':z['unknown']()['optional']()['describe']('Parsed\x20JSON\x20payload\x20of\x20the\x20event\x20(Move\x20struct\x20fields)'),'bcs':z['string']()['optional']()['describe']('Raw\x20BCS\x20bytes\x20of\x20the\x20event\x20(base64)')})['strict']()['describe']('Event\x20emitted\x20by\x20a\x20transaction');export const TransactionDetailSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'error':z['string']()['optional']()['describe']('Error\x20message\x20if\x20the\x20transaction\x20failed'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds\x20(string)'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'gas_used':z['string']()['optional']()['describe']('Total\x20gas\x20used\x20(string,\x20BigInt)'),'gas_budget':z['string']()['optional']()['describe']('Gas\x20budget\x20set\x20by\x20the\x20sender\x20(string)'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind\x20(e.g.\x20ProgrammableTransaction)'),'object_changes':z['array'](TxObjectChangeSchema)['describe']('Object\x20changes\x20(created/mutated/deleted)'),'balance_changes':z['array'](TxBalanceChangeSchema)['describe']('Balance\x20changes\x20for\x20all\x20involved\x20owners'),'event_count':z['number']()['describe']('Number\x20of\x20events\x20emitted\x20by\x20this\x20transaction'),'events':z['array'](TxEventSchema)['describe']('Events\x20emitted\x20by\x20the\x20transaction.\x20Always\x20populated\x20by\x20query_transaction\x20(showEvents=true).\x20'+'Each\x20event\x20carries\x20its\x20Move\x20struct\x20payload\x20(parsed_json)\x20so\x20callers\x20can\x20inspect\x20'+'ProgressEvent,\x20NewOrderEvent,\x20ArbEvent,\x20etc.\x20without\x20an\x20extra\x20query.'),'epoch':z['string']()['optional']()['describe']('Epoch\x20number\x20when\x20the\x20transaction\x20was\x20executed'),'is_system_tx':z['boolean']()['optional']()['describe']('Whether\x20this\x20was\x20a\x20system\x20transaction'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Full\x20transaction\x20detail\x20—\x20verifiable\x20proof\x20of\x20an\x20on-chain\x20operation');export const TransactionHistoryItemSchema=z['object']({'digest':z['string']()['describe']('Transaction\x20digest'),'status':z['enum'](['success','failed'])['describe']('Transaction\x20execution\x20status'),'timestamp_ms':z['string']()['optional']()['describe']('Unix\x20timestamp\x20in\x20milliseconds'),'checkpoint':z['string']()['optional']()['describe']('Checkpoint\x20sequence\x20containing\x20this\x20transaction\x20—\x20the\x20global\x20total\x20order.\x20'+'Use\x20it\x20to\x20order/compare\x20across\x20pages\x20instead\x20of\x20timestamp_ms\x20(which\x20is\x20the\x20fullnode\x27s\x20ms\x20clock).'),'sender':z['string']()['optional']()['describe']('Transaction\x20sender\x20address'),'kind':z['string']()['optional']()['describe']('Transaction\x20kind'),'gas_used':z['string']()['optional']()['describe']('Gas\x20used\x20(string)'),'objects_touched':z['array'](z['string']())['describe']('Object\x20IDs\x20touched\x20by\x20this\x20transaction'),'has_object_changes':z['boolean']()['describe']('Whether\x20this\x20tx\x20created/mutated/deleted\x20objects')})['strict']()['describe']('Transaction\x20history\x20summary\x20item');export const TransactionHistoryAnswerSchema=z['object']({'transactions':z['array'](TransactionHistoryItemSchema)['describe']('Transaction\x20history\x20items'),'next_cursor':z['union']([z['string'](),z['null']()])['describe']('Cursor\x20for\x20the\x20next\x20page\x20(null\x20if\x20no\x20more\x20pages)'),'has_next_page':z['boolean']()['describe']('Whether\x20more\x20pages\x20are\x20available'),'cache_expire':z['union']([z['number'](),z['literal']('INFINITE')])['optional']()['describe']('Cache\x20expiration\x20timestamp')})['strict']()['describe']('Paginated\x20transaction\x20history\x20answer');export const OnchainQueryResultSchema_Part1=z['union']([z['object']({'query_type':z['literal']('onchain_personal_profile'),'result':z['union']([ObjectPersonalSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_objects'),'result':ObjectsAnswerSchema}),z['object']({'query_type':z['literal']('onchain_table'),'result':z['union']([TableAnswerSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'result':z['union']([TableItem_RepositoryDataSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'result':z['union']([TableItem_PermissionPermSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'result':z['union']([TableItem_EntityRegistrarSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'result':z['union']([TableItem_EntityLinkerSchema,z['undefined']()])})]);export const OnchainQueryResultSchema_Part2=z['union']([z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'result':z['union']([TableItem_RewardRecordSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'result':z['union']([TableItem_DemandPresenterSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'result':z['union']([TableItem_TreasuryHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'result':z['union']([TableItem_MachineNodeSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'result':z['union']([TableItem_ProgressHistorySchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'result':z['union']([TableItem_AddressMarkSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_received'),'result':QueryReceivedResultSchema['shape']['result']})]);export const OnchainQueryResultSchema_Part3=z['union']([z['object']({'query_type':z['literal']('onchain_transaction'),'result':z['union']([TransactionDetailSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_block'),'result':z['union']([z['record'](z['string'](),z['any']())['describe']('RAW\x20fullnode\x20checkpoint\x20summary,\x20verbatim\x20(no\x20semantic\x20shaping)'),z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_object_history'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('onchain_address_activity'),'result':z['union']([TransactionHistoryAnswerSchema,z['undefined']()])})['strict'](),z['object']({'query_type':z['literal']('token_value_convert'),'result':z['object']({'token_type':z['string']()['describe']('Full\x20token\x20type\x20used\x20for\x20conversion'),'symbol':z['string']()['optional']()['describe']('Resolved\x20token\x20symbol'),'decimals':z['number']()['optional']()['describe']('Resolved\x20decimals\x20N\x20—\x20the\x20precision\x20reminder'),'precision_known':z['boolean']()['describe']('false\x20→\x20precision\x20unavailable;\x20conversion\x20may\x20have\x20been\x20impossible'),'direction':z['union']([z['literal']('raw_to_unit'),z['literal']('unit_to_raw')]),'input':z['string']()['describe']('Input\x20value\x20as\x20provided'),'output':z['string']()['describe']('Converted\x20value\x20(empty\x20string\x20when\x20conversion\x20was\x20impossible)'),'error':z['string']()['optional']()['describe']('Hard\x20failure\x20reason\x20(e.g.\x20unit→raw\x20without\x20known\x20precision)'),'text':z['string']()['describe']('One-line\x20human\x20text\x20with\x20the\x20decimals\x20reminder')})['strict']()['describe']('Bidirectional\x20token\x20value\x20conversion\x20result\x20—\x20see\x20Fund\x20Processing\x20Layer')})['strict'](),z['object']({'query_type':z['literal']('onchain_last_updated'),'result':z['object']({'items':z['array'](z['object']({'object':z['string']()['describe']('Queried\x20object\x20address'),'timestamp_ms':z['union']([z['string'](),z['null']()])['describe']('Unix\x20ms\x20of\x20the\x20last\x20transaction\x20touching\x20the\x20object\x20(null\x20when\x20unavailable)'),'digest':z['union']([z['string'](),z['null']()])['optional']()['describe']('Digest\x20of\x20that\x20transaction'),'sender':z['union']([z['string'](),z['null']()])['optional']()['describe']('Sender\x20of\x20that\x20transaction')}))['describe']('One\x20entry\x20per\x20queried\x20object,\x20same\x20order\x20as\x20the\x20request')})['strict']()})['strict'](),z['object']({'query_type':z['literal']('address_profiles'),'result':z['array'](z['record'](z['string'](),z['any']())['nullable']())['describe']('One\x20entry\x20per\x20requested\x20address,\x20SAME\x20order\x20as\x20the\x20request\x20(null\x20on\x20per-address\x20failure).\x20Each\x20non-null\x20entry\x20carries\x20the\x20full\x20AddressProfile\x20shape:\x20classification\x20(kind),\x20identity,\x20reputation\x20(like/dislike/favor\x20votes),\x20order/contact/permission\x20memberships,\x20core/tx\x20reverse\x20bindings,\x20the\x20object\x20itself,\x20activity\x20+\x20role\x20evidence\x20—\x20plus\x20the\x20merged\x20service_analysis\x20block\x20for\x20Service\x20addresses\x20(description\x20/\x20payment\x20token\x20/\x20shelf\x20split\x20/\x20location\x20/\x20trust-risk\x20/\x20on-chain\x20last\x20update).')})['strict']()]);export const AllQueryResultsSchema=z['union']([LocalQueryResultSchema,OnchainQueryResultSchema_Part1,OnchainQueryResultSchema_Part2,OnchainQueryResultSchema_Part3,...BI_QUERY_RESULT_MEMBERS]);export const WatchQueryOperationsResultSchema=z['object']({'result':AllQueryResultsSchema,'network':EntrypointSchema['optional']()['describe']('Network\x20the\x20data\x20was\x20READ\x20from\x20for\x20single-network\x20on-chain\x20query\x20types\x20(e.g.\x20account_balance,\x20onchain_objects,\x20onchain_transaction,\x20panoramas).\x20Omitted\x20for\x20purely-local\x20queries\x20(local_*),\x20static\x20cross-chain\x20data\x20(scenario_topology),\x20and\x20two-network\x20results\x20(migration_preflight).\x20When\x20network_source=\x27default\x27\x20the\x20input\x20omitted\x20the\x20network\x20and\x20the\x20SDK\x27s\x20current\x20default\x20network\x20was\x20used.'),'network_source':z['enum'](['explicit','default'])['optional']()['describe']('How\x20the\x20response\x20network\x20was\x20chosen:\x20\x27explicit\x27\x20=\x20the\x20call\x20supplied\x20the\x20network\x20parameter;\x20\x27default\x27\x20=\x20resolved\x20through\x20the\x20SDK\x20default\x20network.\x20Present\x20only\x20when\x20\x27network\x27\x20is\x20present.'),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20query\x20operation')})['describe']('Watch\x20query\x20operations\x20result\x20schema');
|