@wowok/agent-mcp 2.7.2 → 2.7.4
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/runtime.js +1 -1
- package/dist/customer/account-events.d.ts +32 -0
- package/dist/customer/account-events.js +1 -0
- package/dist/customer/customer-advice.d.ts +1 -0
- package/dist/customer/customer-advice.js +1 -1
- package/dist/customer/info-puzzle.js +1 -1
- package/dist/customer/order-strategy.d.ts +1 -1
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +1 -1
- package/dist/customer/risk-assessment.d.ts +1 -0
- package/dist/customer/risk-assessment.js +1 -1
- package/dist/customer/types.d.ts +2 -0
- package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
- package/dist/evaluation/builtins/arbitration-score.js +1 -0
- package/dist/evaluation/builtins/index.d.ts +1 -0
- package/dist/evaluation/builtins/index.js +1 -1
- package/dist/evaluation/category-match-rules.d.ts +30 -0
- package/dist/evaluation/category-match-rules.js +1 -0
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/index.js +1 -1
- package/dist/evaluation/location-match.d.ts +42 -0
- package/dist/evaluation/location-match.js +1 -0
- package/dist/evaluation/path-reasoning.d.ts +35 -0
- package/dist/evaluation/path-reasoning.js +1 -0
- package/dist/evaluation/region.d.ts +6 -0
- package/dist/evaluation/region.js +1 -1
- package/dist/evaluation/types.d.ts +17 -0
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/experience/user-profile.d.ts +1 -1
- package/dist/extensions/index.d.ts +6 -0
- package/dist/extensions/index.js +1 -1
- package/dist/extensions/industry-layers.d.ts +75 -0
- package/dist/extensions/industry-layers.js +1 -0
- package/dist/extensions/industry-pack.d.ts +105 -0
- package/dist/extensions/industry-pack.js +1 -0
- package/dist/extensions/metric-registry.js +1 -1
- package/dist/extensions/mode-evaluator.d.ts +1 -1
- package/dist/extensions/registry.d.ts +1 -0
- package/dist/extensions/registry.js +1 -1
- package/dist/graph/base.d.ts +8 -0
- package/dist/graph/base.js +1 -0
- package/dist/harness/index.d.ts +1 -0
- package/dist/harness/index.js +1 -1
- package/dist/harness/plan.d.ts +2 -0
- package/dist/harness/plan.js +1 -1
- package/dist/harness/recover.d.ts +1 -1
- package/dist/harness/types.d.ts +2 -3
- package/dist/index.js +1 -1
- package/dist/knowledge/allocation-confirm.js +1 -1
- package/dist/knowledge/anti-cheat.d.ts +37 -0
- package/dist/knowledge/anti-cheat.js +1 -0
- package/dist/knowledge/arb-confirm.d.ts +28 -0
- package/dist/knowledge/arb-confirm.js +1 -0
- package/dist/knowledge/arb-translation.d.ts +48 -0
- package/dist/knowledge/arb-translation.js +1 -0
- package/dist/knowledge/arbitration-context.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/bridge-confirm.d.ts +26 -0
- package/dist/knowledge/bridge-confirm.js +1 -0
- package/dist/knowledge/bridge-translation.d.ts +37 -0
- package/dist/knowledge/bridge-translation.js +1 -0
- package/dist/knowledge/contact-confirm.d.ts +27 -0
- package/dist/knowledge/contact-confirm.js +1 -0
- package/dist/knowledge/contact-translation.d.ts +39 -0
- package/dist/knowledge/contact-translation.js +1 -0
- package/dist/knowledge/demand-confirm.js +1 -1
- package/dist/knowledge/demand-context.d.ts +17 -0
- package/dist/knowledge/demand-context.js +1 -0
- package/dist/knowledge/demand-ledger.d.ts +26 -0
- package/dist/knowledge/demand-ledger.js +1 -0
- package/dist/knowledge/demand-puzzle.d.ts +29 -0
- package/dist/knowledge/demand-puzzle.js +1 -0
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/demand-templates.d.ts +12 -0
- package/dist/knowledge/demand-templates.js +1 -0
- package/dist/knowledge/demand-translation.js +1 -1
- package/dist/knowledge/deployment-scanner.js +1 -1
- package/dist/knowledge/evidence-review.d.ts +12 -0
- package/dist/knowledge/evidence-review.js +1 -0
- package/dist/knowledge/examples-scanner-cli.js +1 -1
- package/dist/knowledge/examples-scanner.js +1 -1
- package/dist/knowledge/flywheel-loop.d.ts +0 -1
- package/dist/knowledge/flywheel-loop.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-migration.d.ts +1 -1
- package/dist/knowledge/index.d.ts +71 -3
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/machine-render.js +1 -1
- package/dist/knowledge/market-metrics.d.ts +12 -0
- package/dist/knowledge/market-metrics.js +1 -0
- package/dist/knowledge/market-operations.d.ts +46 -0
- package/dist/knowledge/market-operations.js +1 -0
- package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
- package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
- package/dist/knowledge/mcp-schema-audit.js +1 -1
- package/dist/knowledge/onchain-constants.d.ts +2 -2
- package/dist/knowledge/onchain-constants.js +1 -1
- package/dist/knowledge/payment-confirm.d.ts +26 -0
- package/dist/knowledge/payment-confirm.js +1 -0
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-translation.d.ts +37 -0
- package/dist/knowledge/payment-translation.js +1 -0
- package/dist/knowledge/permission-context.d.ts +11 -0
- package/dist/knowledge/permission-context.js +1 -1
- package/dist/knowledge/permission-ledger.d.ts +11 -0
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/personal-confirm.d.ts +29 -0
- package/dist/knowledge/personal-confirm.js +1 -0
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/personal-translation.d.ts +37 -0
- package/dist/knowledge/personal-translation.js +1 -0
- package/dist/knowledge/process-model.d.ts +1 -11
- package/dist/knowledge/process-model.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/proof-context.d.ts +17 -0
- package/dist/knowledge/proof-context.js +1 -0
- package/dist/knowledge/proof-ledger.d.ts +34 -0
- package/dist/knowledge/proof-ledger.js +1 -0
- package/dist/knowledge/proof-puzzle.d.ts +35 -0
- package/dist/knowledge/proof-puzzle.js +1 -0
- package/dist/knowledge/proof-templates.d.ts +22 -0
- package/dist/knowledge/proof-templates.js +1 -0
- package/dist/knowledge/registrar-confirm.d.ts +26 -0
- package/dist/knowledge/registrar-confirm.js +1 -0
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/registrar-translation.d.ts +37 -0
- package/dist/knowledge/registrar-translation.js +1 -0
- package/dist/knowledge/repository-context.d.ts +12 -0
- package/dist/knowledge/repository-context.js +1 -0
- package/dist/knowledge/repository-ledger.d.ts +25 -0
- package/dist/knowledge/repository-ledger.js +1 -0
- package/dist/knowledge/repository-puzzle.d.ts +30 -0
- package/dist/knowledge/repository-puzzle.js +1 -0
- package/dist/knowledge/repository-templates.d.ts +14 -0
- package/dist/knowledge/repository-templates.js +1 -0
- package/dist/knowledge/resource-confirm.d.ts +25 -0
- package/dist/knowledge/resource-confirm.js +1 -0
- package/dist/knowledge/resource-translation.d.ts +37 -0
- package/dist/knowledge/resource-translation.js +1 -0
- package/dist/knowledge/reward-context.d.ts +2 -2
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-translation.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +1 -0
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/service-risk.d.ts +1 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-context.d.ts +1 -1
- package/dist/knowledge/treasury-context.js +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/universal-template.d.ts +22 -0
- package/dist/knowledge/universal-template.js +1 -0
- package/dist/knowledge/util-confirm.d.ts +24 -0
- package/dist/knowledge/util-confirm.js +1 -0
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/util-translation.d.ts +39 -0
- package/dist/knowledge/util-translation.js +1 -0
- package/dist/knowledge/workflow-guidance.d.ts +180 -0
- package/dist/knowledge/workflow-guidance.js +1 -0
- package/dist/participation/employee-kpi.d.ts +25 -0
- package/dist/participation/employee-kpi.js +1 -0
- package/dist/participation/employee-store.d.ts +16 -0
- package/dist/participation/employee-store.js +1 -0
- package/dist/participation/index.d.ts +2 -0
- package/dist/participation/index.js +1 -0
- package/dist/persona/defaults.js +1 -1
- package/dist/persona/index.d.ts +9 -2
- package/dist/persona/index.js +1 -1
- package/dist/persona/local-region.d.ts +20 -0
- package/dist/persona/local-region.js +1 -0
- package/dist/persona/model.js +1 -1
- package/dist/persona/overrides.d.ts +10 -0
- package/dist/persona/overrides.js +1 -0
- package/dist/persona/pack-personae.d.ts +11 -0
- package/dist/persona/pack-personae.js +1 -0
- package/dist/persona/strategy-intent.d.ts +20 -0
- package/dist/persona/strategy-intent.js +1 -0
- package/dist/persona/types.d.ts +3 -1
- package/dist/project/business-puzzle.d.ts +1 -1
- package/dist/project/business-puzzle.js +1 -1
- package/dist/project/deployment-doc.js +1 -1
- package/dist/project/edit-planner.js +1 -1
- package/dist/project/evaluation.d.ts +37 -1
- package/dist/project/evaluation.js +1 -1
- package/dist/project/graph-builder.d.ts +2 -2
- package/dist/project/graph-builder.js +1 -1
- package/dist/project/graph.d.ts +3 -6
- package/dist/project/handlers.d.ts +33 -2
- package/dist/project/handlers.js +1 -1
- package/dist/project/index.d.ts +1 -0
- package/dist/project/index.js +1 -1
- package/dist/project/merchant-guide.d.ts +19 -0
- package/dist/project/merchant-guide.js +1 -1
- package/dist/project/mode-actions.js +1 -1
- package/dist/project/rollback-policy.js +1 -1
- package/dist/project/semantic-assembler.d.ts +2 -2
- package/dist/project/semantic-assembler.js +1 -1
- package/dist/project/semantic-graph.d.ts +3 -5
- package/dist/project/workflow-design-assessment.d.ts +24 -0
- package/dist/project/workflow-design-assessment.js +1 -0
- package/dist/safety/confirm-gate.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/call/allocation.d.ts +186 -1385
- package/dist/schema/call/arbitration.d.ts +272 -1871
- package/dist/schema/call/base.d.ts +1831 -9076
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +911 -3171
- package/dist/schema/call/contact.d.ts +135 -931
- package/dist/schema/call/demand.d.ts +164 -1194
- package/dist/schema/call/guard.d.ts +298 -1140
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +459 -5403
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +137 -844
- package/dist/schema/call/payment.d.ts +74 -561
- package/dist/schema/call/permission.d.ts +335 -2791
- package/dist/schema/call/personal.d.ts +227 -1814
- package/dist/schema/call/progress.d.ts +140 -843
- package/dist/schema/call/proof.d.ts +42 -258
- package/dist/schema/call/repository.d.ts +324 -2222
- package/dist/schema/call/reward.d.ts +153 -1183
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +376 -3431
- package/dist/schema/call/treasury.d.ts +252 -2158
- package/dist/schema/common/index.d.ts +222 -697
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +18 -161
- package/dist/schema/employee/index.d.ts +99 -0
- package/dist/schema/employee/index.js +1 -0
- package/dist/schema/evaluation/index.d.ts +1035 -3918
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/industry-pack/index.d.ts +132 -0
- package/dist/schema/industry-pack/index.js +1 -0
- package/dist/schema/intent-radar/index.d.ts +92 -245
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/local/index.d.ts +2045 -18080
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/local/wip.d.ts +61 -651
- package/dist/schema/local/wip.js +1 -1
- package/dist/schema/messenger/index.d.ts +949 -5557
- package/dist/schema/messenger/index.js +1 -1
- package/dist/schema/operations.d.ts +3168 -26468
- package/dist/schema/operations.js +1 -1
- package/dist/schema/permission/index.d.ts +121 -0
- package/dist/schema/permission/index.js +1 -0
- package/dist/schema/persona/index.d.ts +469 -1820
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/project/index.d.ts +1023 -8450
- package/dist/schema/project/index.js +1 -1
- package/dist/schema/query/index.d.ts +12121 -75556
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +35 -98
- package/dist/schema/schema-query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/task-status.d.ts +26 -132
- package/dist/schema/trust/index.d.ts +194 -1290
- package/dist/schema/utils/guard-parser.js +1 -1
- package/dist/schema/utils/node-parser.js +1 -1
- package/dist/schema/utils/skills-recommendation.d.ts +1 -0
- package/dist/schema/utils/skills-recommendation.js +1 -1
- package/dist/schema/workflow/index.d.ts +161 -0
- package/dist/schema/workflow/index.js +1 -0
- package/dist/schema/workspace/index.d.ts +69 -0
- package/dist/schema/workspace/index.js +1 -0
- package/dist/{schema-query → schema-query-impl}/index.js +1 -1
- package/dist/schemas/account_operation.output.json +3147 -1655
- package/dist/schemas/account_operation.schema.json +225 -218
- package/dist/schemas/bridge_operation.output.json +1168 -653
- package/dist/schemas/bridge_operation.schema.json +736 -504
- package/dist/schemas/config_operation.output.json +185 -179
- package/dist/schemas/config_operation.schema.json +21 -26
- package/dist/schemas/employee_operation.output.json +207 -0
- package/dist/schemas/employee_operation.schema.json +176 -0
- package/dist/schemas/evaluation_operation.output.json +2268 -601
- package/dist/schemas/evaluation_operation.schema.json +2919 -787
- package/dist/schemas/guard2file.output.json +58 -64
- package/dist/schemas/guard2file.schema.json +79 -81
- package/dist/schemas/index.json +41 -11
- package/dist/schemas/industry_pack_operation.output.json +594 -0
- package/dist/schemas/industry_pack_operation.schema.json +55 -0
- package/dist/schemas/intent_radar.output.json +275 -203
- package/dist/schemas/intent_radar.schema.json +124 -126
- package/dist/schemas/local_info_operation.output.json +1174 -660
- package/dist/schemas/local_info_operation.schema.json +119 -125
- package/dist/schemas/local_mark_operation.output.json +1239 -692
- package/dist/schemas/local_mark_operation.schema.json +91 -96
- package/dist/schemas/machineNode2file.output.json +63 -69
- package/dist/schemas/machineNode2file.schema.json +79 -81
- package/dist/schemas/messenger_operation.output.json +2722 -1531
- package/dist/schemas/messenger_operation.schema.json +1482 -1264
- package/dist/schemas/onchain_events.output.json +2590 -978
- package/dist/schemas/onchain_events.schema.json +117 -99
- package/dist/schemas/onchain_operations.output.json +3957 -2312
- package/dist/schemas/onchain_operations.schema.json +20799 -9285
- package/dist/schemas/onchain_operations_allocation.schema.json +171 -107
- package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
- package/dist/schemas/onchain_operations_contact.schema.json +129 -90
- package/dist/schemas/onchain_operations_demand.schema.json +170 -112
- package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
- package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
- package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
- package/dist/schemas/onchain_operations_machine.schema.json +536 -163
- package/dist/schemas/onchain_operations_order.schema.json +126 -96
- package/dist/schemas/onchain_operations_payment.schema.json +82 -67
- package/dist/schemas/onchain_operations_permission.schema.json +331 -93
- package/dist/schemas/onchain_operations_personal.schema.json +636 -96
- package/dist/schemas/onchain_operations_progress.schema.json +125 -92
- package/dist/schemas/onchain_operations_proof.schema.json +76 -69
- package/dist/schemas/onchain_operations_repository.schema.json +636 -249
- package/dist/schemas/onchain_operations_reward.schema.json +218 -108
- package/dist/schemas/onchain_operations_service.schema.json +678 -220
- package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
- package/dist/schemas/onchain_table_data.output.json +6833 -2432
- package/dist/schemas/onchain_table_data.schema.json +684 -417
- package/dist/schemas/permission_operation.output.json +173 -0
- package/dist/schemas/permission_operation.schema.json +39 -0
- package/dist/schemas/persona_operation.output.json +1568 -268
- package/dist/schemas/persona_operation.schema.json +346 -205
- package/dist/schemas/project_operation.output.json +6922 -5132
- package/dist/schemas/project_operation.schema.json +1050 -1020
- package/dist/schemas/query_task_status.output.json +195 -99
- package/dist/schemas/query_task_status.schema.json +12 -18
- package/dist/schemas/query_toolkit.output.json +18862 -14561
- package/dist/schemas/query_toolkit.schema.json +614 -522
- package/dist/schemas/schema_query.output.json +127 -129
- package/dist/schemas/schema_query.schema.json +64 -69
- package/dist/schemas/trust_score.output.json +678 -587
- package/dist/schemas/trust_score.schema.json +289 -277
- package/dist/schemas/wip_file.output.json +116 -124
- package/dist/schemas/wip_file.schema.json +142 -143
- package/dist/schemas/workflow_operation.output.json +164 -0
- package/dist/schemas/workflow_operation.schema.json +116 -0
- package/dist/schemas/workspace_operation.output.json +277 -0
- package/dist/schemas/workspace_operation.schema.json +45 -0
- package/dist/schemas/wowok_buildin_info.output.json +1682 -844
- package/dist/schemas/wowok_buildin_info.schema.json +576 -526
- package/dist/tools/handlers/bridge.d.ts +8 -1
- package/dist/tools/handlers/bridge.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/employee.d.ts +2 -0
- package/dist/tools/handlers/employee.js +1 -0
- package/dist/tools/handlers/evaluation.js +1 -1
- package/dist/tools/handlers/file-export.js +1 -1
- package/dist/tools/handlers/industry-pack.d.ts +2 -0
- package/dist/tools/handlers/industry-pack.js +1 -0
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/permission.d.ts +2 -0
- package/dist/tools/handlers/permission.js +1 -0
- package/dist/tools/handlers/persona.js +1 -1
- package/dist/tools/handlers/project.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/handlers/trust.js +1 -1
- package/dist/tools/handlers/wip.js +1 -1
- package/dist/tools/handlers/workflow.d.ts +2 -0
- package/dist/tools/handlers/workflow.js +1 -0
- package/dist/tools/handlers/workspace.d.ts +4 -0
- package/dist/tools/handlers/workspace.js +1 -0
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/rules-hook.d.ts +1 -1
- package/dist/tools/rules-hook.js +1 -1
- package/dist/tools/shared.d.ts +1 -1
- package/dist/tools/shared.js +1 -1
- package/dist/tools/types.d.ts +2 -1
- package/package.json +4 -5
- package/dist/knowledge/arbitration-trust.d.ts +0 -24
- package/dist/knowledge/arbitration-trust.js +0 -1
- package/dist/schema/call/bridge-handler.d.ts +0 -8
- package/dist/schema/call/bridge-handler.js +0 -1
- package/dist/schema/sync-layer4.d.ts +0 -21
- package/dist/schema/sync-layer4.js +0 -1
- /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';import{CallService_DataSchema,CallMachine_DataSchema,CallProgress_DataSchema,CallRepository_DataSchema,CallArbitration_DataSchema,CallContact_DataSchema,CallTreasury_DataSchema,CallReward_DataSchema,CallAllocation_DataSchema,CallPermission_DataSchema,CallGuard_DataSchema,CallPersonal_DataSchema,CallPayment_DataSchema,CallDemand_DataSchema,CallOrder_DataSchema,CallProof_DataSchema,CallGenProof_InputSchema,CallEnvSchema,SubmissionCallSchema,SemanticSummarySchema}from'./call/index.js';import{WipGenerationOptionsSchema,WipToHtmlOptionsSchema,LocalMarkFilterSchema,AccountFilterSchema,LocalInfoFilterSchema,TokenDataFilterSchema}from'./local/index.js';import{NameOrAddressSchema,AccountOrMark_AddressSchema,AccountOrMark_AddressAISchema,EntrypointSchema,TokenTypeSchema,ObjectBaseSchema}from'./common/index.js';import{TableAnswerSchema,TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema}from'./query/index.js';export const OnchainOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['operation_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['operation_type'])return c;}catch{}if(typeof b['data']==='string')try{b['data']=JSON['parse'](b['data']);}catch{}if(typeof b['env']==='string')try{b['env']=JSON['parse'](b['env']);}catch{}if(typeof b['submission']==='string')try{b['submission']=JSON['parse'](b['submission']);}catch{}if(typeof b['info']==='string')try{b['info']=JSON['parse'](b['info']);}catch{}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const e=b['data'];e['data']&&typeof e['data']==='object'&&!e['operation_type']&&(e['env']!==undefined&&b['env']===undefined&&(b['env']=e['env']),e['submission']!==undefined&&b['submission']===undefined&&(b['submission']=e['submission']),b['data']=e['data']);if(typeof e['description']==='string'&&!e['operation_type'])try{const f=JSON['parse'](e['description']);f&&typeof f==='object'&&(b['data']=f);}catch{}}if(b['operation_type']==='guard'&&b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const g=b['data'];g['object']&&!g['namedNew']&&(g['namedNew']=g['object'],delete g['object']);if(Array['isArray'](g['table']))for(const h of g['table']){h&&typeof h==='object'&&!Array['isArray'](h)&&'object_type'in h&&delete h['object_type'];}}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const i=b['data'];i['submission']!==undefined&&b['submission']===undefined&&(b['submission']=i['submission'],delete i['submission']);}return b;}return a;},z['discriminatedUnion']('operation_type',[z['object']({'operation_type':z['literal']('service'),'data':CallService_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🏪\x20Service\x20Object:\x20Create\x20and\x20manage\x20product/service\x20listings\x20with\x20transparent\x20promises,\x20bind\x20workflow\x20templates\x20to\x20order\x20processing,\x20set\x20pricing,\x20issue\x20discount\x20coupons\x20to\x20customers,\x20and\x20establish\x20quality\x20standards,\x20etc..'),z['object']({'operation_type':z['literal']('machine'),'data':CallMachine_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('⚙️\x20Machine\x20Object:\x20Design\x20and\x20deploy\x20automated\x20workflow\x20templates\x20(Machines)\x20that\x20define\x20how\x20services\x20are\x20delivered,\x20etc..'),z['object']({'operation_type':z['literal']('progress'),'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📊\x20Progress\x20Object:\x20Track\x20and\x20manage\x20active\x20workflows\x20in\x20real-time.'),z['object']({'operation_type':z['literal']('repository'),'data':CallRepository_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📦\x20Repository\x20Object:\x20Read/write\x20database\x20with\x20consensus\x20field\x20+\x20address\x20as\x20key,\x20strongly-typed\x20data\x20as\x20value.'),z['object']({'operation_type':z['literal']('arbitration'),'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('⚖️\x20Arbitration\x20Object:\x20Access\x20a\x20transparent\x20on-chain\x20arbitration\x20system\x20for\x20resolving\x20order\x20conflicts.'),z['object']({'operation_type':z['literal']('contact'),'data':CallContact_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('💬\x20Contact\x20Object:\x20Manage\x20on-chain\x20instant\x20messaging\x20contact\x20profiles.'),z['object']({'operation_type':z['literal']('treasury'),'data':CallTreasury_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('💰\x20Treasury\x20Object:\x20Create\x20and\x20manage\x20treasury\x20for\x20team\x20funds\x20with\x20deposit/withdrawal\x20rules,\x20etc..'),z['object']({'operation_type':z['literal']('reward'),'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎁\x20Reward\x20Object:\x20Create\x20reward\x20pools\x20and\x20set\x20claim\x20conditions\x20by\x20Guard\x20verification.'),z['object']({'operation_type':z['literal']('allocation'),'data':CallAllocation_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📤\x20Allocation\x20Object:\x20Create\x20distribution\x20plans\x20to\x20auto-distribute\x20funds\x20to\x20multiple\x20recipients.'),z['object']({'operation_type':z['literal']('permission'),'data':CallPermission_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('🔐\x20Permission\x20Object:\x20Define\x20who\x20can\x20perform\x20which\x20operations\x20on\x20WoWok\x20objects.\x20Important\x20Note:\x20If\x20needed,\x20you\x20should\x20first\x20query\x20\x27guard\x20instructions\x27\x20through\x20the\x20\x27wowok_buildin_info\x27\x20tool.'),z['object']({'operation_type':z['literal']('guard'),'data':CallGuard_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('🛡️\x20Guard\x20Object:\x20Create\x20immutable\x20programmable\x20validation\x20rules\x20that\x20return\x20boolean\x20results.\x20Set\x20\x27namedNew\x27\x20to\x20name\x20the\x20new\x20Guard\x20(you\x20may\x20also\x20use\x20\x27object\x27\x20as\x20an\x20alias\x20—\x20both\x20work).\x20Use\x20root.type=\x27node\x27\x20for\x20direct\x20node\x20tree\x20or\x20root.type=\x27file\x27\x20to\x20load\x20from\x20file.\x20Use\x20\x27wowok_buildin_info\x27\x20tool\x20with\x20query=\x27guard\x20instructions\x27\x20for\x20all\x20available\x20operations.\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Add\x20system\x20addresses\x20to\x20the\x20Guard\x20table\x20-\x20ENTITY_LINKER_ADDRESS\x20(0xaaa)\x20for\x20EntityLinker,\x20ENTITY_REGISTRAR_ADDRESS\x20(0xaab)\x20for\x20EntityRegistrar.'),z['object']({'operation_type':z['literal']('personal'),'data':CallPersonal_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('🆔\x20Public\x20Identity\x20Profile:\x20Establish\x20and\x20manage\x20your\x20on-chain\x20public\x20identity.\x20⚠️\x20CRITICAL:\x20Everything\x20here\x20is\x20PERMANENTLY\x20PUBLIC\x20on\x20the\x20blockchain!'),z['object']({'operation_type':z['literal']('payment'),'data':CallPayment_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('💰\x20Payment\x20Object:\x20Send\x20instant,\x20irreversible\x20coin\x20transfers\x20to\x20any\x20wallet\x20address.'),z['object']({'operation_type':z['literal']('demand'),'data':CallDemand_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎯\x20Demand\x20Object:\x20Post\x20service\x20requests\x20with\x20reward\x20pools\x20on-chain.'),z['object']({'operation_type':z['literal']('order'),'data':CallOrder_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📦\x20Order\x20Object:\x20Manage\x20the\x20order\x20lifecycle,\x20Including\x20operating\x20order\x20arbitration\x20(Arb\x20Object\x20associated\x20with\x20the\x20order),\x20advancing\x20progress\x20(Progress\x20Object\x20associated\x20with\x20the\x20order),\x20extracting\x20order\x20refunds/payments,\x20setting\x20agents,\x20etc.'),z['object']({'operation_type':z['literal']('gen_passport'),'guard':z['union']([z['string'](),z['array'](z['string']())])['describe']('Guard\x20object\x20ID(s)\x20to\x20verify\x20and\x20generate\x20passport\x20from.\x20Can\x20be\x20a\x20single\x20guard\x20(string)\x20or\x20multiple\x20guards\x20(array\x20of\x20strings).\x20Supports\x20guard\x20names\x20or\x20addresses.'),'info':SubmissionCallSchema['optional']()['describe']('Optional\x20submission\x20data.\x20If\x20not\x20provided,\x20will\x20attempt\x20to\x20get\x20existing\x20submissions\x20from\x20the\x20guard.'),'env':CallEnvSchema['optional']()})['strict']()['describe']('🛂\x20Generate\x20Verified\x20Passport\x20Object:\x20Create\x20immutable\x20verified\x20credentials\x20after\x20Guard\x20validation\x20passes.\x20Supports\x20verifying\x20multiple\x20guards\x20at\x20once.'),z['object']({'operation_type':z['literal']('proof'),'data':CallProof_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📜\x20Proof\x20Object:\x20Create\x20immutable\x20on-chain\x20proof\x20objects\x20with\x20server\x20signatures.\x20Used\x20for\x20timestamped\x20message\x20proofs,\x20Merkle\x20tree\x20root\x20proofs,\x20etc.\x20Set\x20\x27namedNew\x27\x20in\x20data\x20to\x20name\x20the\x20new\x20Proof.'),CallGenProof_InputSchema['extend']({'operation_type':z['literal']('gen_proof')})['strict']()['describe']('⚡\x20Generate\x20Proof\x20(shortcut):\x20Create\x20a\x20new\x20on-chain\x20Proof\x20object\x20WITHOUT\x20the\x20namedNew\x20wrapper\x20(no\x20custom\x20name).\x20Prefer\x20`proof`\x20(operation_type=\x27proof\x27)\x20when\x20you\x20need\x20a\x20NAMED\x20Proof\x20that\x20other\x20objects\x20can\x20reference\x20by\x20name;\x20use\x20gen_proof\x20only\x20for\x20a\x20quick\x20unnamed\x20Proof.')]));export const WipOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['type'])return c;}catch{}if(typeof b['options']==='string')try{b['options']=JSON['parse'](b['options']);}catch{}return b;}return a;},z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20file\x20exists,\x20it\x20will\x20be\x20overwritten')})['strict']()['describe']('Generate\x20WIP\x20file\x20from\x20markdown\x20text\x20and\x20optional\x20images'),z['object']({'type':z['literal']('verify'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['strict']()['describe']('Verify\x20WIP\x20file\x20integrity\x20and\x20signatures'),z['object']({'type':z['literal']('sign'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['strict']()['describe']('Sign\x20WIP\x20file\x20with\x20account'),z['object']({'type':z['literal']('wip2html'),'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict']()['describe']('Convert\x20WIP\x20file\x20to\x20HTML\x20format')]));export const OnchainTableDataSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null&&!Array['isArray'](a)){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}if(b['cursor']==='')b['cursor']=null;if(b['limit']==='')b['limit']=null;return b;}return a;},z['union']([z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20fields\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20nextCursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20items\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Paginated\x20query\x20of\x20an\x20on-chain\x20object\x27s\x20dynamic\x20fields\x20table\x20—\x20returns\x20items\x20with\x20keys,\x20types,\x20and\x20object\x20IDs.\x20Use\x20to\x20explore\x20all\x20entries\x20(e.g.,\x20all\x20orders\x20in\x20a\x20Service,\x20all\x20records\x20in\x20a\x20Repository).\x20Returns:\x20TableAnswer\x20|\x20undefined\x20(items[],\x20nextCursor,\x20hasNextPage)'),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'parent':NameOrAddressSchema['describe']('Parent\x20Repository\x20object\x20ID'),'name':z['string']()['describe']('Name/key\x20of\x20the\x20record\x20to\x20retrieve\x20from\x20the\x20repository'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('Entity\x20ID\x20or\x20address\x20that\x20owns/identifies\x20the\x20record'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20specific\x20record\x20from\x20a\x20Repository\x27s\x20on-chain\x20key-value\x20database\x20by\x20name\x20and\x20entity.\x20Use\x20to\x20read\x20stored\x20data\x20records.\x20Returns:\x20TableItem_RepositoryData\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'parent':NameOrAddressSchema['describe']('Parent\x20Permission\x20object\x20ID'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20or\x20Guard\x20ID\x20whose\x20permissions\x20to\x20check.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20permission\x20entry\x20from\x20a\x20Permission\x20object\x27s\x20perm\x20table\x20—\x20checks\x20what\x20operations\x20a\x20user/guard\x20is\x20allowed\x20to\x20perform.\x20Use\x20to\x20verify\x20access\x20rights.\x20Returns:\x20TableItem_PermissionPerm\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20to\x20look\x20up\x20in\x20the\x20global\x20EntityRegistrar.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20entity\x27s\x20registration\x20record\x20from\x20the\x20global\x20EntityRegistrar\x20—\x20verifies\x20if\x20an\x20address\x20is\x20registered\x20on\x20the\x20blockchain.\x20Use\x20to\x20check\x20registration\x20status\x20and\x20details.\x20Returns:\x20TableItem_EntityRegistrar\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20community\x20votes/endorsements\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20community\x20votes/endorsements\x20for\x20an\x20entity\x20from\x20the\x20global\x20EntityLinker\x20—\x20shows\x20how\x20others\x20have\x20voted\x20on\x20this\x20entity.\x20Use\x20to\x20check\x20reputation\x20and\x20community\x20trust.\x20Returns:\x20TableItem_EntityLinker\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'parent':NameOrAddressSchema['describe']('Parent\x20Reward\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('User\x20address\x20that\x20claimed\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20reward\x20claim\x20record\x20from\x20a\x20Reward\x20object\x27s\x20table\x20—\x20checks\x20if\x20a\x20user\x20has\x20claimed\x20a\x20specific\x20incentive.\x20Use\x20to\x20verify\x20reward\x20distribution\x20status.\x20Returns:\x20TableItem_RewardRecord\x20|\x20undefined')]),z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'parent':NameOrAddressSchema['describe']('Parent\x20Demand\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Presenter\x20address\x20that\x20submitted\x20the\x20demand'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20demand\x20submission\x20from\x20a\x20Demand\x20object\x27s\x20table\x20—\x20Demands\x20are\x20service\x20requests\x20submitted\x20by\x20users.\x20Use\x20to\x20check\x20a\x20specific\x20demand\x27s\x20details.\x20Returns:\x20TableItem_DemandPresenter\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Treasury\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Payment\x20ID\x20whose\x20treasury\x20record\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20payment\x20record\x20from\x20a\x20Treasury\x27s\x20history\x20table\x20by\x20payment\x20ID\x20—\x20Treasury\x20manages\x20funds\x20and\x20payment\x20tracking.\x20Use\x20to\x20look\x20up\x20payment\x20details\x20and\x20status.\x20Returns:\x20TableItem_TreasuryHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'parent':NameOrAddressSchema['describe']('Parent\x20Machine\x20object\x20ID'),'key':z['string']()['describe']('Node\x20name\x20(string\x20key)\x20to\x20query\x20in\x20the\x20Machine\x27s\x20workflow\x20definition'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20workflow\x20node\x20definition\x20from\x20a\x20Machine\x20object\x27s\x20table\x20by\x20node\x20name\x20—\x20Machines\x20define\x20workflow\x20templates.\x20Use\x20to\x20inspect\x20a\x20specific\x20node\x27s\x20configuration\x20and\x20logic.\x20Returns:\x20TableItem_MachineNode\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Progress\x20object\x20ID'),'u64':z['union']([z['number'](),z['string']()])['describe']('Sequence\x20number\x20(u64)\x20of\x20the\x20progress\x20step\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20progress\x20step\x20record\x20from\x20a\x20Progress\x20object\x27s\x20table\x20by\x20sequence\x20number\x20—\x20Progress\x20tracks\x20order/workflow\x20execution.\x20Use\x20to\x20check\x20the\x20status\x20of\x20a\x20specific\x20execution\x20step.\x20Returns:\x20TableItem_ProgressHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'parent':NameOrAddressSchema['describe']('Parent\x20AddressMark\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Address\x20whose\x20PUBLIC\x20on-chain\x20name/tags\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20PUBLIC\x20on-chain\x20name/tag\x20mark\x20for\x20an\x20address\x20—\x20unlike\x20local\x20marks,\x20these\x20are\x20published\x20on-chain.\x20Use\x20to\x20look\x20up\x20public\x20labels\x20attached\x20to\x20any\x20address.\x20Returns:\x20TableItem_AddressMark\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_generic'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20field\x20to\x20query'),'key_type':z['string']()['describe']('FULL\x20Move\x20type\x20of\x20the\x20key\x20(e.g.,\x20\x270x1::string::String\x27,\x20\x270x2::object::ID\x27,\x20\x270x1::address::Address\x27,\x20\x270x1::u64::U64\x27).\x20MUST\x20be\x20the\x20complete\x20type\x20string\x20with\x20address::module::struct\x20format.'),'key_value':z['union']([z['string']()['describe']('String\x20key\x20(for\x200x1::string::String)'),z['number']()['describe']('Numeric\x20key\x20(for\x200x1::u64::U64,\x200x1::u32::U32,\x20etc.)'),z['boolean']()['describe']('Boolean\x20key\x20(for\x200x1::bool::Bool)'),z['array'](z['union']([z['string'](),z['number'](),z['boolean']()]))['describe']('Vector\x20key\x20(for\x200x1::vector::*\x20types)'),z['record'](z['unknown']())['describe']('Struct/object\x20key\x20(for\x20complex\x20Move\x20struct\x20types)')])['describe']('Value\x20of\x20the\x20key.\x20Must\x20match\x20the\x20key_type\x20format\x20(e.g.,\x20string\x20for\x20\x270x1::string::String\x27,\x20address\x20for\x20\x270x1::address::Address\x27,\x20number\x20for\x20\x270x1::u64::U64\x27)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20generic\x20table\x20item\x20from\x20ANY\x20object\x27s\x20dynamic\x20fields\x20—\x20supports\x20arbitrary\x20key\x20types\x20and\x20values\x20for\x20non-WoWok\x20objects.\x20Use\x20for\x20custom\x20objects\x20and\x20general-purpose\x20table\x20lookups.\x20Returns:\x20ObjectBase\x20|\x20undefined')])]));export const WatchQueryOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}for(const d of['filter','objects','env','token_type']){if(typeof b[d]==='string')try{b[d]=JSON['parse'](b[d]);}catch{}}if(b['query_type']==='account_balance'&&b['filter']&&typeof b['filter']==='object'){const e=b['filter'];if(!b['name_or_address']){if(typeof e['name_or_address']==='string')b['name_or_address']=e['name_or_address'];else{if(typeof e['name']==='string')b['name_or_address']=e['name'];else typeof e['address']==='string'&&(b['name_or_address']=e['address']);}}!b['token_type']&&typeof e['token_type']==='string'&&(b['token_type']=e['token_type']),delete b['filter'];}return b;}return a;},z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('local_mark_list'),'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20address\x20book\x20—\x20maps\x20human-readable\x20names\x20to\x20blockchain\x20addresses\x20with\x20optional\x20tags.\x20Use\x20to\x20resolve\x20names→addresses\x20or\x20find\x20addresses\x20by\x20tag.\x20Returns:\x20MarkData[]\x20(name,\x20address,\x20tags,\x20timestamps)'),z['object']({'query_type':z['literal']('account_list'),'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20accounts\x20—\x20view\x20all\x20accounts\x20stored\x20on\x20this\x20device\x20(addresses,\x20messenger\x20status,\x20suspension\x20state).\x20Use\x20filter.includePubkey=true\x20to\x20also\x20include\x20public\x20keys\x20(~900\x20bytes\x20each,\x20omitted\x20by\x20default).\x20Returns:\x20AccountData[]\x20(name,\x20address,\x20pubkey?,\x20suspended,\x20messenger,\x20timestamps)'),z['object']({'query_type':z['literal']('local_info_list'),'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20private\x20info\x20—\x20sensitive\x20data\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20contacts\x20stored\x20ONLY\x20on\x20this\x20device.\x20Use\x20to\x20retrieve\x20saved\x20contact/delivery\x20details.\x20Returns:\x20InfoData[]\x20(name,\x20default\x20value,\x20contents,\x20timestamps)'),z['object']({'query_type':z['literal']('token_list'),'filter':TokenDataFilterSchema['optional']()})['strict']()['describe']('Query\x20cached\x20token\x20metadata\x20—\x20symbol,\x20decimals,\x20icon\x20URL,\x20description\x20for\x20tokens\x20previously\x20fetched\x20from\x20chain.\x20Use\x20to\x20look\x20up\x20token\x20info\x20without\x20an\x20on-chain\x20query.\x20Returns:\x20TokenTypeInfo[]\x20(type,\x20alias,\x20name,\x20symbol,\x20decimals,\x20iconUrl)'),z['object']({'query_type':z['literal']('account_balance'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query.\x20'+'Examples:\x20\x22my_account\x22,\x20\x220xabc123...\x22,\x20or\x20\x22\x22\x20for\x20the\x20default\x20account.\x20'+'NOTE:\x20This\x20field\x20is\x20NOT\x20named\x20\x27filter\x27\x20—\x20use\x20\x27name_or_address\x27\x20directly.\x20'+'Defaults\x20to\x20\x27\x27\x20(default\x20account)\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20query\x20total\x20balance\x20amount\x20for\x20the\x20token\x20type'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20for\x20listing\x20coin\x20objects'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20coin\x20objects\x20per\x20page')})['strict']()['optional']()['describe']('Set\x20to\x20query\x20paginated\x20coin\x20objects\x20instead\x20of\x20balance.\x20Use\x20cursor/limit\x20for\x20pagination.'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(default,\x209\x20decimals),\x20\x220x2::sui::SUI\x22\x20(9\x20decimals).\x20'+'For\x20custom\x20tokens,\x20use\x20the\x20full\x20type\x20string\x20from\x20the\x20token\x27s\x20coin\x20metadata.\x20'+'The\x20Fund\x20Processing\x20Layer\x20resolves\x20precision\x20from\x20the\x20official\x20registry\x20→\x20cache\x20→\x20on-chain.'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20account\x27s\x20coin\x20balance\x20OR\x20paginated\x20coin\x20objects.\x20'+'PARAMETERS:\x20Use\x20\x27name_or_address\x27\x20to\x20specify\x20the\x20account\x20(NOT\x20\x27filter\x27).\x20'+'Use\x20balance=true\x20for\x20total\x20amount,\x20or\x20coin={cursor,limit}\x20to\x20list\x20individual\x20coin\x20objects.\x20'+'Use\x20token_type\x20to\x20query\x20non-default\x20tokens\x20(format:\x200x<package>::<module>::<struct>).\x20'+'Returns:\x20{\x20address,\x20balance?\x20|\x20coin?\x20}'),z['object']({'query_type':z['literal']('local_names'),'addresses':z['array'](z['string']())['describe']('Array\x20of\x20addresses\x20to\x20look\x20up\x20local\x20names\x20for')})['strict']()['describe']('Query\x20local\x20names\x20(account\x20name\x20and\x20local\x20mark\x20name)\x20for\x20a\x20list\x20of\x20addresses.\x20Returns\x20array\x20of:\x20{\x20account?:\x20string,\x20local_mark?:\x20string,\x20address:\x20string\x20}'),z['object']({'query_type':z['literal']('onchain_personal_profile'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20any\x20user\x27s\x20PUBLIC\x20on-chain\x20profile\x20—\x20social\x20links,\x20reputation\x20(likes/dislikes),\x20personal\x20info\x20records,\x20voting\x20history,\x20referrer.\x20Use\x20to\x20look\x20up\x20a\x20user\x27s\x20public\x20identity\x20and\x20reputation.\x20Returns:\x20ObjectPersonal\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_objects'),'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20(names\x20or\x20addresses)\x20to\x20query\x20in\x20batch'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Batch\x20query\x20on-chain\x20WOWOK\x20objects\x20by\x20ID\x20or\x20name\x20—\x20supports\x20Service,\x20Machine,\x20Order,\x20Treasury,\x20Reward,\x20Arb,\x20Personal,\x20Contact,\x20and\x20more.\x20Use\x20to\x20inspect\x20one\x20or\x20more\x20objects\x20in\x20a\x20single\x20call.\x20Returns:\x20{\x20objects:\x20ObjectBase[]\x20}'),z['object']({'query_type':z['literal']('onchain_received'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Name\x20or\x20address\x20of\x20the\x20object\x20that\x20received\x20payments/items\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'type':z['union']([z['string'](),z['literal']('CoinWrapper'),z['null']()])['optional']()['describe']('Type\x20filter\x20for\x20querying\x20received\x20objects.\x20'+'-\x20If\x20undefined\x20or\x20null:\x20query\x20all\x20types\x20(equivalent\x20to\x20the\x20old\x20all_type=true).\x20'+'-\x20If\x20\x27CoinWrapper\x27:\x20query\x20CoinWrapper\x20type\x20for\x20the\x20object\x27s\x20token\x20(equivalent\x20to\x20the\x20old\x20all_type=false).\x20'+'-\x20If\x20string:\x20query\x20specific\x20StructType\x20(e.g.,\x20\x270x2::payment::CoinWrapper<0x2::wow::WOW>\x27).'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20records\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20objects\x20(Payments,\x20Tokens,\x20NFTs)\x20received\x20by\x20a\x20specific\x20object.\x20Use\x20to\x20track\x20incoming\x20payments\x20or\x20items\x20sent\x20to\x20an\x20on-chain\x20object.\x20Supports\x20pagination\x20and\x20type\x20filter.\x20Returns:\x20ReceivedBalance\x20|\x20ReceivedNormal[]'),z['object']({'query_type':z['literal']('onchain_transaction'),'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)\x20to\x20verify.\x20Use\x20after\x20any\x20on-chain\x20operation\x20to\x20confirm\x20what\x20actually\x20happened\x20on-chain\x20—\x20object\x20changes,\x20balance\x20changes,\x20gas\x20used,\x20success/failure\x20status.\x20This\x20is\x20the\x20\x27OperationProof\x27\x20primitive\x20for\x20the\x20Verify\x20step.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Verify\x20what\x20a\x20specific\x20transaction\x20did\x20on-chain\x20—\x20the\x20\x27OperationProof\x27\x20primitive.\x20After\x20executing\x20any\x20operation,\x20call\x20this\x20with\x20the\x20returned\x20digest\x20to\x20confirm:\x20status\x20(success/failed),\x20object\x20changes\x20(created/mutated/deleted),\x20balance\x20changes,\x20gas\x20used,\x20and\x20events.\x20Essential\x20for\x20the\x205-step\x20loop\x27s\x20Verify\x20step.\x20Returns:\x20TransactionDetail\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_object_history'),'object':NameOrAddressSchema['describe']('Object\x20ID\x20(0x...)\x20or\x20LocalMark\x20name.\x20Query\x20the\x20provenance\x20chain\x20—\x20every\x20transaction\x20that\x20created,\x20mutated,\x20or\x20deleted\x20this\x20object.\x20Use\x20to\x20trace\x20how\x20an\x20object\x20reached\x20its\x20current\x20state.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20—\x20query\x20all\x20transactions\x20that\x20touched\x20an\x20object.\x20WARNING:\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries\x20(each\x20tx\x20touches\x20more\x20objects\x20with\x20their\x20own\x20history).\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20instead\x20—\x20it\x20extracts\x20embedded\x20history\x20from\x20object\x20states\x20(ProgressSession.forwards,\x20etc.)\x20without\x20infinite\x20recursion.\x20This\x20tool\x20is\x20for\x20auditing/forensics\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_address_activity'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Address\x20(0x...)\x20or\x20account\x20name.\x20Query\x20all\x20on-chain\x20activity\x20by\x20this\x20actor\x20—\x20every\x20transaction\x20they\x20sent.\x20Use\x20to\x20build\x20a\x20user\x27s\x20on-chain\x20activity\x20profile\x20or\x20verify\x20an\x20actor\x27s\x20history.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20—\x20query\x20all\x20transactions\x20sent\x20by\x20an\x20address.\x20WARNING:\x20like\x20onchain_object_history,\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries.\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20(extracts\x20embedded\x20history)\x20or\x20query_events\x20(real-time\x20transitions)\x20instead.\x20This\x20tool\x20is\x20for\x20auditing/user-activity\x20profiling\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('token_value_convert'),'token_type':TokenTypeSchema['describe']('Full\x20token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(9\x20decimals).\x20The\x20token\x27s\x20decimals\x20drive\x20the\x20conversion\x20—\x20'+'resolved\x20from\x20official\x20registry\x20→\x20local\x20cache\x20→\x20on-chain\x20coin\x20metadata.'),'raw':z['union']([z['string'](),z['number']()])['optional']()['describe']('Raw\x20smallest-unit\x20value\x20(u64,\x20e.g.\x20\x222200000000\x22)\x20to\x20convert\x20TO\x20a\x20human\x20unit\x20value.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.'),'unit':z['union']([z['string'](),z['number']()])['optional']()['describe']('Human\x20unit\x20value\x20(e.g.\x20\x222.2\x22)\x20to\x20convert\x20TO\x20raw\x20smallest\x20units\x20(u64).\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.\x20Conversion\x20is\x20REFUSED\x20when\x20the\x20token\x27s\x20'+'decimals\x20cannot\x20be\x20resolved\x20(guessing\x20would\x20forge\x20wrong\x20on-chain\x20values).'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Convert\x20between\x20raw\x20on-chain\x20smallest\x20units\x20(u64)\x20and\x20human\x20unit\x20values,\x20in\x20EITHER\x20direction.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit\x20(handler-validated).\x20'+'raw\x20→\x20unit:\x20\x222200000000\x22\x20→\x20\x222.2\x22\x20(pass-through\x20when\x20precision\x20unknown).\x20'+'unit\x20→\x20raw:\x20\x222.2\x22\x20→\x20\x222200000000\x22\x20(REFUSED\x20when\x20precision\x20unknown\x20—\x20never\x20guesses\x20decimals).\x20'+'Use\x20this\x20before\x20displaying\x20chain\x20values\x20to\x20users,\x20and\x20before\x20entering\x20amounts\x20for\x20on-chain\x20operations.\x20'+'Returns:\x20{\x20token_type,\x20symbol?,\x20decimals?,\x20precision_known,\x20direction,\x20input,\x20output,\x20error?,\x20text\x20}')]));export const OnchainTableDataResultSchema=z['object']({'result':z['union']([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']()])}),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_table_item_generic'),'result':z['union']([ObjectBaseSchema,z['undefined']()])})]),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20table\x20data\x20query')});
|
|
1
|
+
import{z}from'zod';import{CallService_DataSchema,CallMachine_DataSchema,CallProgress_DataSchema,CallRepository_DataSchema,CallArbitration_DataSchema,CallContact_DataSchema,CallTreasury_DataSchema,CallReward_DataSchema,CallAllocation_DataSchema,CallPermission_DataSchema,CallGuard_DataSchema,CallPersonal_DataSchema,CallPayment_DataSchema,CallDemand_DataSchema,CallOrder_DataSchema,CallProof_DataSchema,CallGenProof_InputSchema,CallEnvSchema,SubmissionCallSchema,SemanticSummarySchema}from'./call/index.js';import{WipGenerationOptionsSchema,WipToHtmlOptionsSchema,LocalMarkFilterSchema,AccountFilterSchema,LocalInfoFilterSchema,TokenDataFilterSchema}from'./local/index.js';import{NameOrAddressSchema,AccountOrMark_AddressSchema,AccountOrMark_AddressAISchema,EntrypointSchema,TokenTypeSchema,ObjectBaseSchema}from'./common/index.js';import{TableAnswerSchema,TableItem_RepositoryDataSchema,TableItem_PermissionPermSchema,TableItem_EntityRegistrarSchema,TableItem_EntityLinkerSchema,TableItem_EntityContactSchema,TableItem_ObjectLinkerCoreSchema,TableItem_ObjectLinkerTxSchema,TableItem_RewardRecordSchema,TableItem_DemandPresenterSchema,TableItem_TreasuryHistorySchema,TableItem_MachineNodeSchema,TableItem_ProgressHistorySchema,TableItem_AddressMarkSchema}from'./query/index.js';export const OnchainOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['operation_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['operation_type'])return c;}catch{}if(typeof b['data']==='string')try{b['data']=JSON['parse'](b['data']);}catch{}if(typeof b['env']==='string')try{b['env']=JSON['parse'](b['env']);}catch{}if(typeof b['submission']==='string')try{b['submission']=JSON['parse'](b['submission']);}catch{}if(typeof b['info']==='string')try{b['info']=JSON['parse'](b['info']);}catch{}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const e=b['data'];e['data']&&typeof e['data']==='object'&&!e['operation_type']&&(e['env']!==undefined&&b['env']===undefined&&(b['env']=e['env']),e['submission']!==undefined&&b['submission']===undefined&&(b['submission']=e['submission']),b['data']=e['data']);if(typeof e['description']==='string'&&!e['operation_type'])try{const f=JSON['parse'](e['description']);f&&typeof f==='object'&&(b['data']=f);}catch{}}if(b['operation_type']==='guard'&&b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const g=b['data'];g['object']&&!g['namedNew']&&(g['namedNew']=g['object'],delete g['object']);if(Array['isArray'](g['table']))for(const h of g['table']){h&&typeof h==='object'&&!Array['isArray'](h)&&'object_type'in h&&delete h['object_type'];}}if(b['data']&&typeof b['data']==='object'&&!Array['isArray'](b['data'])){const i=b['data'];i['submission']!==undefined&&b['submission']===undefined&&(b['submission']=i['submission'],delete i['submission']);}return b;}return a;},z['discriminatedUnion']('operation_type',[z['object']({'operation_type':z['literal']('service'),'data':CallService_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🏪\x20Service\x20Object:\x20Create\x20and\x20manage\x20product/service\x20listings\x20with\x20transparent\x20promises,\x20bind\x20workflow\x20templates\x20to\x20order\x20processing,\x20set\x20pricing,\x20issue\x20discount\x20coupons\x20to\x20customers,\x20and\x20establish\x20quality\x20standards,\x20etc..'),z['object']({'operation_type':z['literal']('machine'),'data':CallMachine_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('⚙️\x20Machine\x20Object:\x20Design\x20and\x20deploy\x20automated\x20workflow\x20templates\x20(Machines)\x20that\x20define\x20how\x20services\x20are\x20delivered,\x20etc..'),z['object']({'operation_type':z['literal']('progress'),'data':CallProgress_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📊\x20Progress\x20Object:\x20Track\x20and\x20manage\x20active\x20workflows\x20in\x20real-time.'),z['object']({'operation_type':z['literal']('repository'),'data':CallRepository_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📦\x20Repository\x20Object:\x20Read/write\x20database\x20with\x20consensus\x20field\x20+\x20address\x20as\x20key,\x20strongly-typed\x20data\x20as\x20value.'),z['object']({'operation_type':z['literal']('arbitration'),'data':CallArbitration_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('⚖️\x20Arbitration\x20Object:\x20Access\x20a\x20transparent\x20on-chain\x20arbitration\x20system\x20for\x20resolving\x20order\x20conflicts.'),z['object']({'operation_type':z['literal']('contact'),'data':CallContact_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('💬\x20Contact\x20Object:\x20Manage\x20on-chain\x20instant\x20messaging\x20contact\x20profiles.'),z['object']({'operation_type':z['literal']('treasury'),'data':CallTreasury_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('💰\x20Treasury\x20Object:\x20Create\x20and\x20manage\x20treasury\x20for\x20team\x20funds\x20with\x20deposit/withdrawal\x20rules,\x20etc..'),z['object']({'operation_type':z['literal']('reward'),'data':CallReward_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎁\x20Reward\x20Object:\x20Create\x20reward\x20pools\x20and\x20set\x20claim\x20conditions\x20by\x20Guard\x20verification.'),z['object']({'operation_type':z['literal']('allocation'),'data':CallAllocation_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📤\x20Allocation\x20Object:\x20Create\x20distribution\x20plans\x20to\x20auto-distribute\x20funds\x20to\x20multiple\x20recipients.'),z['object']({'operation_type':z['literal']('permission'),'data':CallPermission_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('🔐\x20Permission\x20Object:\x20Define\x20who\x20can\x20perform\x20which\x20operations\x20on\x20WoWok\x20objects.\x20Important\x20Note:\x20If\x20needed,\x20you\x20should\x20first\x20query\x20\x27guard\x20instructions\x27\x20through\x20the\x20\x27wowok_buildin_info\x27\x20tool.'),z['object']({'operation_type':z['literal']('guard'),'data':CallGuard_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('🛡️\x20Guard\x20Object:\x20Create\x20immutable\x20programmable\x20validation\x20rules\x20that\x20return\x20boolean\x20results.\x20Set\x20\x27namedNew\x27\x20to\x20name\x20the\x20new\x20Guard\x20(you\x20may\x20also\x20use\x20\x27object\x27\x20as\x20an\x20alias\x20—\x20both\x20work).\x20Use\x20root.type=\x27node\x27\x20for\x20direct\x20node\x20tree\x20or\x20root.type=\x27file\x27\x20to\x20load\x20from\x20file.\x20Use\x20\x27wowok_buildin_info\x27\x20tool\x20with\x20query=\x27guard\x20instructions\x27\x20for\x20all\x20available\x20operations.\x20NOTE\x20for\x20EntityLinker/EntityRegistrar\x20queries:\x20Add\x20system\x20addresses\x20to\x20the\x20Guard\x20table\x20-\x20ENTITY_LINKER_ADDRESS\x20(0xaaa)\x20for\x20EntityLinker,\x20ENTITY_REGISTRAR_ADDRESS\x20(0xaab)\x20for\x20EntityRegistrar.'),z['object']({'operation_type':z['literal']('personal'),'data':CallPersonal_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('🆔\x20Public\x20Identity\x20Profile:\x20Establish\x20and\x20manage\x20your\x20on-chain\x20public\x20identity.\x20⚠️\x20CRITICAL:\x20Everything\x20here\x20is\x20PERMANENTLY\x20PUBLIC\x20on\x20the\x20blockchain!'),z['object']({'operation_type':z['literal']('payment'),'data':CallPayment_DataSchema,'env':CallEnvSchema['optional']()})['strict']()['describe']('💰\x20Payment\x20Object:\x20Send\x20instant,\x20irreversible\x20coin\x20transfers\x20to\x20any\x20wallet\x20address.'),z['object']({'operation_type':z['literal']('demand'),'data':CallDemand_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('🎯\x20Demand\x20Object:\x20Post\x20service\x20requests\x20with\x20reward\x20pools\x20on-chain.'),z['object']({'operation_type':z['literal']('order'),'data':CallOrder_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📦\x20Order\x20Object:\x20Manage\x20the\x20order\x20lifecycle,\x20Including\x20operating\x20order\x20arbitration\x20(Arb\x20Object\x20associated\x20with\x20the\x20order),\x20advancing\x20progress\x20(Progress\x20Object\x20associated\x20with\x20the\x20order),\x20extracting\x20order\x20refunds/payments,\x20setting\x20agents,\x20etc.'),z['object']({'operation_type':z['literal']('gen_passport'),'guard':z['union']([z['string'](),z['array'](z['string']())])['describe']('Guard\x20object\x20ID(s)\x20to\x20verify\x20and\x20generate\x20passport\x20from.\x20Can\x20be\x20a\x20single\x20guard\x20(string)\x20or\x20multiple\x20guards\x20(array\x20of\x20strings).\x20Supports\x20guard\x20names\x20or\x20addresses.'),'info':SubmissionCallSchema['optional']()['describe']('Optional\x20submission\x20data.\x20If\x20not\x20provided,\x20will\x20attempt\x20to\x20get\x20existing\x20submissions\x20from\x20the\x20guard.'),'env':CallEnvSchema['optional']()})['strict']()['describe']('🛂\x20Generate\x20Verified\x20Passport\x20Object:\x20Create\x20immutable\x20verified\x20credentials\x20after\x20Guard\x20validation\x20passes.\x20Supports\x20verifying\x20multiple\x20guards\x20at\x20once.'),z['object']({'operation_type':z['literal']('proof'),'data':CallProof_DataSchema,'env':CallEnvSchema['optional'](),'submission':SubmissionCallSchema['optional']()})['strict']()['describe']('📜\x20Proof\x20Object:\x20Create\x20immutable\x20on-chain\x20proof\x20objects\x20with\x20server\x20signatures.\x20Used\x20for\x20timestamped\x20message\x20proofs,\x20Merkle\x20tree\x20root\x20proofs,\x20etc.\x20Set\x20\x27namedNew\x27\x20in\x20data\x20to\x20name\x20the\x20new\x20Proof.'),CallGenProof_InputSchema['extend']({'operation_type':z['literal']('gen_proof')})['strict']()['describe']('⚡\x20Generate\x20Proof\x20(shortcut):\x20Create\x20a\x20new\x20on-chain\x20Proof\x20object\x20WITHOUT\x20the\x20namedNew\x20wrapper\x20(no\x20custom\x20name).\x20Prefer\x20`proof`\x20(operation_type=\x27proof\x27)\x20when\x20you\x20need\x20a\x20NAMED\x20Proof\x20that\x20other\x20objects\x20can\x20reference\x20by\x20name;\x20use\x20gen_proof\x20only\x20for\x20a\x20quick\x20unnamed\x20Proof.')]));export const WipOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['type'])return c;}catch{}if(typeof b['options']==='string')try{b['options']=JSON['parse'](b['options']);}catch{}return b;}return a;},z['discriminatedUnion']('type',[z['object']({'type':z['literal']('generate'),'options':WipGenerationOptionsSchema['describe']('WIP\x20generation\x20options'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path\x20(.wip\x20file).\x20If\x20not\x20specified,\x20defaults\x20to\x20the\x20workspace\x20directory')})['strict']()['describe']('Generate\x20WIP\x20file\x20from\x20markdown\x20text\x20and\x20optional\x20images'),z['object']({'type':z['literal']('verify'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20verify.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27,\x20\x27C:\x5cUsers\x5cname\x5cdoc.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27,\x20\x27http://site.com/file.wip\x27),\x203)\x20Data\x20URL\x20(e.g.,\x20\x27data:application/json;base64,eyJ3aXAiOi...\x27)'),'hash_equal':z['string']()['optional']()['describe']('Optional\x20expected\x20hash\x20value.\x20If\x20provided,\x20the\x20function\x20will\x20first\x20verify\x20if\x20the\x20file\x27s\x20hash\x20matches\x20this\x20value.\x20If\x20not\x20matched,\x20returns\x20hash\x20mismatch\x20error.'),'requireSignature':z['boolean']()['optional']()['describe']('Optional\x20flag\x20to\x20require\x20digital\x20signature.\x20If\x20true,\x20verification\x20will\x20fail\x20if\x20WIP\x20file\x20has\x20no\x20signature')})['strict']()['describe']('Verify\x20WIP\x20file\x20integrity\x20and\x20signatures'),z['object']({'type':z['literal']('sign'),'wipFilePath':z['string']()['describe']('WIP\x20file\x20path\x20to\x20sign.\x20Supports:\x201)\x20Local\x20file\x20path\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20The\x20file\x20will\x20be\x20loaded,\x20validated,\x20and\x20signed'),'account':z['string']()['optional']()['describe']('Signing\x20account\x20(account\x20name\x20or\x20address).\x20If\x20not\x20specified,\x20uses\x20default\x20account'),'outputPath':z['string']()['optional']()['describe']('Output\x20file\x20path.\x20If\x20not\x20specified,\x20adds\x20\x27signed_\x27\x20prefix\x20to\x20original\x20file\x20name\x20(e.g.,\x20\x27doc.wip\x27\x20becomes\x20\x27signed_doc.wip\x27)')})['strict']()['describe']('Sign\x20WIP\x20file\x20with\x20account'),z['object']({'type':z['literal']('wip2html'),'wipPath':z['string']()['describe']('WIP\x20file\x20path\x20or\x20directory\x20path.\x20Supports:\x201)\x20Single\x20WIP\x20file\x20(e.g.,\x20\x27/path/to/file.wip\x27),\x202)\x20Directory\x20containing\x20.wip\x20files\x20(e.g.,\x20\x27/path/to/wips/\x27),\x203)\x20Network\x20URL\x20(e.g.,\x20\x27https://example.com/doc.wip\x27).\x20When\x20directory\x20is\x20provided,\x20all\x20.wip\x20files\x20in\x20the\x20directory\x20will\x20be\x20converted\x20to\x20HTML'),'options':WipToHtmlOptionsSchema['optional']()['describe']('Conversion\x20options')})['strict']()['describe']('Convert\x20WIP\x20file\x20to\x20HTML\x20format')]));export const OnchainTableDataSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null&&!Array['isArray'](a)){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}if(b['cursor']==='')b['cursor']=null;if(b['limit']==='')b['limit']=null;return b;}return a;},z['union']([z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20fields\x20table\x20to\x20query'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20nextCursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20items\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Paginated\x20query\x20of\x20an\x20on-chain\x20object\x27s\x20dynamic\x20fields\x20table\x20—\x20returns\x20items\x20with\x20keys,\x20types,\x20and\x20object\x20IDs.\x20Use\x20to\x20explore\x20all\x20entries\x20(e.g.,\x20all\x20orders\x20in\x20a\x20Service,\x20all\x20records\x20in\x20a\x20Repository).\x20Returns:\x20TableAnswer\x20|\x20undefined\x20(items[],\x20nextCursor,\x20hasNextPage)'),z['object']({'query_type':z['literal']('onchain_table_item_repository_data'),'parent':NameOrAddressSchema['describe']('Parent\x20Repository\x20object\x20ID'),'name':z['string']()['describe']('Name/key\x20of\x20the\x20record\x20to\x20retrieve\x20from\x20the\x20repository'),'entity':z['union']([AccountOrMark_AddressSchema,z['number']()])['describe']('Entity\x20ID\x20or\x20address\x20that\x20owns/identifies\x20the\x20record'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20specific\x20record\x20from\x20a\x20Repository\x27s\x20on-chain\x20key-value\x20database\x20by\x20name\x20and\x20entity.\x20Use\x20to\x20read\x20stored\x20data\x20records.\x20Returns:\x20TableItem_RepositoryData\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_permission_perm'),'parent':NameOrAddressSchema['describe']('Parent\x20Permission\x20object\x20ID'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20or\x20Guard\x20ID\x20whose\x20permissions\x20to\x20check.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20permission\x20entry\x20from\x20a\x20Permission\x20object\x27s\x20perm\x20table\x20—\x20checks\x20what\x20operations\x20a\x20user/guard\x20is\x20allowed\x20to\x20perform.\x20Use\x20to\x20verify\x20access\x20rights.\x20Returns:\x20TableItem_PermissionPerm\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_registrar'),'address':AccountOrMark_AddressAISchema['describe']('User\x20address\x20to\x20look\x20up\x20in\x20the\x20global\x20EntityRegistrar.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20entity\x27s\x20registration\x20record\x20from\x20the\x20global\x20EntityRegistrar\x20—\x20verifies\x20if\x20an\x20address\x20is\x20registered\x20on\x20the\x20blockchain.\x20Use\x20to\x20check\x20registration\x20status\x20and\x20details.\x20Returns:\x20TableItem_EntityRegistrar\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_linker'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20community\x20votes/endorsements\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20community\x20votes/endorsements\x20(likes/dislikes/favor)\x20for\x20an\x20entity\x20from\x20the\x20global\x20EntityLinker\x20—\x20shows\x20how\x20others\x20have\x20voted\x20on\x20this\x20entity.\x20Use\x20to\x20check\x20reputation\x20and\x20community\x20trust.\x20Returns:\x20TableItem_EntityLinker\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_entity_contact'),'address':AccountOrMark_AddressAISchema['describe']('Entity\x20address\x20whose\x20contact\x20memberships\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20customer-service\x20Contacts\x20an\x20entity\x20is\x20a\x20member\x20of,\x20from\x20the\x20global\x20EntityContact\x20reverse\x20index\x20(0xaa9).\x20Use\x20to\x20check\x20an\x20address\x27s\x20Contact\x20memberships.\x20Returns:\x20TableItem_EntityContact\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_core'),'address':AccountOrMark_AddressAISchema['describe']('Target\x20object\x20address\x20whose\x20core-object\x20bindings\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20bounded\x20core\x20objects\x20(Service/Machine/Treasury/Reward/Demand/Arbitration/Arb/Contact)\x20bind\x20to\x20a\x20target,\x20from\x20the\x20ObjectLinkerCore\x20reverse\x20index\x20(0xaae).\x20Lossless\x20fixed.\x20Use\x20for\x20default\x20reverse\x20lookups.\x20Returns:\x20TableItem_ObjectLinkerCore\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_tx'),'address':AccountOrMark_AddressAISchema['describe']('Target\x20object\x20address\x20whose\x20tx-object\x20bindings\x20to\x20query.\x20Supports\x20string\x20(name/address)\x20or\x20object\x20form.\x20LocalMark\x20names\x20are\x20resolved\x20automatically.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20which\x20operational\x20objects\x20(Order/Progress/Payment/Allocation/Guard/Permission)\x20bind\x20to\x20a\x20target,\x20from\x20the\x20ObjectLinkerTx\x20reverse\x20index\x20(0xaaf).\x20Lossy\x20FIFO\x20(recent\x20only).\x20Use\x20for\x20order/progress/operational\x20reverse\x20lookups.\x20Returns:\x20TableItem_ObjectLinkerTx\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_reward_record'),'parent':NameOrAddressSchema['describe']('Parent\x20Reward\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('User\x20address\x20that\x20claimed\x20the\x20reward'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20reward\x20claim\x20record\x20from\x20a\x20Reward\x20object\x27s\x20table\x20—\x20checks\x20if\x20a\x20user\x20has\x20claimed\x20a\x20specific\x20incentive.\x20Use\x20to\x20verify\x20reward\x20distribution\x20status.\x20Returns:\x20TableItem_RewardRecord\x20|\x20undefined')]),z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('onchain_table_item_demand_presenter'),'parent':NameOrAddressSchema['describe']('Parent\x20Demand\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Presenter\x20address\x20that\x20submitted\x20the\x20demand'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20demand\x20submission\x20from\x20a\x20Demand\x20object\x27s\x20table\x20—\x20Demands\x20are\x20service\x20requests\x20submitted\x20by\x20users.\x20Use\x20to\x20check\x20a\x20specific\x20demand\x27s\x20details.\x20Returns:\x20TableItem_DemandPresenter\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_treasury_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Treasury\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Payment\x20ID\x20whose\x20treasury\x20record\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20payment\x20record\x20from\x20a\x20Treasury\x27s\x20history\x20table\x20by\x20payment\x20ID\x20—\x20Treasury\x20manages\x20funds\x20and\x20payment\x20tracking.\x20Use\x20to\x20look\x20up\x20payment\x20details\x20and\x20status.\x20Returns:\x20TableItem_TreasuryHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_machine_node'),'parent':NameOrAddressSchema['describe']('Parent\x20Machine\x20object\x20ID'),'key':z['string']()['describe']('Node\x20name\x20(string\x20key)\x20to\x20query\x20in\x20the\x20Machine\x27s\x20workflow\x20definition'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20workflow\x20node\x20definition\x20from\x20a\x20Machine\x20object\x27s\x20table\x20by\x20node\x20name\x20—\x20Machines\x20define\x20workflow\x20templates.\x20Use\x20to\x20inspect\x20a\x20specific\x20node\x27s\x20configuration\x20and\x20logic.\x20Returns:\x20TableItem_MachineNode\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_progress_history'),'parent':NameOrAddressSchema['describe']('Parent\x20Progress\x20object\x20ID'),'u64':z['union']([z['number'](),z['string']()])['describe']('Sequence\x20number\x20(u64)\x20of\x20the\x20progress\x20step\x20to\x20query'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20progress\x20step\x20record\x20from\x20a\x20Progress\x20object\x27s\x20table\x20by\x20sequence\x20number\x20—\x20Progress\x20tracks\x20order/workflow\x20execution.\x20Use\x20to\x20check\x20the\x20status\x20of\x20a\x20specific\x20execution\x20step.\x20Returns:\x20TableItem_ProgressHistory\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_address_mark'),'parent':NameOrAddressSchema['describe']('Parent\x20AddressMark\x20object\x20ID'),'address':AccountOrMark_AddressSchema['describe']('Address\x20whose\x20PUBLIC\x20on-chain\x20name/tags\x20to\x20look\x20up'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20PUBLIC\x20on-chain\x20name/tag\x20mark\x20for\x20an\x20address\x20—\x20unlike\x20local\x20marks,\x20these\x20are\x20published\x20on-chain.\x20Use\x20to\x20look\x20up\x20public\x20labels\x20attached\x20to\x20any\x20address.\x20Returns:\x20TableItem_AddressMark\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_table_item_generic'),'parent':NameOrAddressSchema['describe']('Parent\x20object\x20ID\x20whose\x20dynamic\x20field\x20to\x20query'),'key_type':z['string']()['describe']('FULL\x20Move\x20type\x20of\x20the\x20key\x20(e.g.,\x20\x270x1::string::String\x27,\x20\x270x2::object::ID\x27,\x20\x270x1::address::Address\x27,\x20\x270x1::u64::U64\x27).\x20MUST\x20be\x20the\x20complete\x20type\x20string\x20with\x20address::module::struct\x20format.'),'key_value':z['union']([z['string']()['describe']('String\x20key\x20(for\x200x1::string::String)'),z['number']()['describe']('Numeric\x20key\x20(for\x200x1::u64::U64,\x200x1::u32::U32,\x20etc.)'),z['boolean']()['describe']('Boolean\x20key\x20(for\x200x1::bool::Bool)'),z['array'](z['union']([z['string'](),z['number'](),z['boolean']()]))['describe']('Vector\x20key\x20(for\x200x1::vector::*\x20types)'),z['record'](z['string'](),z['unknown']())['describe']('Struct/object\x20key\x20(for\x20complex\x20Move\x20struct\x20types)')])['describe']('Value\x20of\x20the\x20key.\x20Must\x20match\x20the\x20key_type\x20format\x20(e.g.,\x20string\x20for\x20\x270x1::string::String\x27,\x20address\x20for\x20\x270x1::address::Address\x27,\x20number\x20for\x20\x270x1::u64::U64\x27)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20a\x20generic\x20table\x20item\x20from\x20ANY\x20object\x27s\x20dynamic\x20fields\x20—\x20supports\x20arbitrary\x20key\x20types\x20and\x20values\x20for\x20non-WoWok\x20objects.\x20Use\x20for\x20custom\x20objects\x20and\x20general-purpose\x20table\x20lookups.\x20Returns:\x20ObjectBase\x20|\x20undefined')])]));export const WatchQueryOperationsSchema=z['preprocess'](a=>{if(typeof a==='object'&&a!==null){const b={...a};if(typeof b['description']==='string'&&!b['query_type'])try{const c=JSON['parse'](b['description']);if(c&&typeof c==='object'&&c['query_type'])return c;}catch{}for(const d of['filter','objects','env','token_type']){if(typeof b[d]==='string')try{b[d]=JSON['parse'](b[d]);}catch{}}if(b['query_type']==='account_balance'&&b['filter']&&typeof b['filter']==='object'){const e=b['filter'];if(!b['name_or_address']){if(typeof e['name_or_address']==='string')b['name_or_address']=e['name_or_address'];else{if(typeof e['name']==='string')b['name_or_address']=e['name'];else typeof e['address']==='string'&&(b['name_or_address']=e['address']);}}!b['token_type']&&typeof e['token_type']==='string'&&(b['token_type']=e['token_type']),delete b['filter'];}return b;}return a;},z['discriminatedUnion']('query_type',[z['object']({'query_type':z['literal']('local_mark_list'),'filter':LocalMarkFilterSchema['optional']()['describe']('Local\x20mark\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20address\x20book\x20—\x20maps\x20human-readable\x20names\x20to\x20blockchain\x20addresses\x20with\x20optional\x20tags.\x20Use\x20to\x20resolve\x20names→addresses\x20or\x20find\x20addresses\x20by\x20tag.\x20Returns:\x20MarkData[]\x20(name,\x20address,\x20tags,\x20timestamps)'),z['object']({'query_type':z['literal']('account_list'),'filter':AccountFilterSchema['optional']()['describe']('Account\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20accounts\x20—\x20view\x20all\x20accounts\x20stored\x20on\x20this\x20device\x20(addresses,\x20messenger\x20status,\x20suspension\x20state).\x20Use\x20filter.includePubkey=true\x20to\x20also\x20include\x20public\x20keys\x20(~900\x20bytes\x20each,\x20omitted\x20by\x20default).\x20Returns:\x20AccountData[]\x20(name,\x20address,\x20pubkey?,\x20suspended,\x20messenger,\x20timestamps)'),z['object']({'query_type':z['literal']('local_info_list'),'filter':LocalInfoFilterSchema['optional']()['describe']('Local\x20info\x20filter')})['strict']()['describe']('Query\x20your\x20LOCAL\x20private\x20info\x20—\x20sensitive\x20data\x20like\x20delivery\x20addresses,\x20phone\x20numbers,\x20contacts\x20stored\x20ONLY\x20on\x20this\x20device.\x20Use\x20to\x20retrieve\x20saved\x20contact/delivery\x20details.\x20Returns:\x20InfoData[]\x20(name,\x20default\x20value,\x20contents,\x20timestamps)'),z['object']({'query_type':z['literal']('token_list'),'filter':TokenDataFilterSchema['optional']()})['strict']()['describe']('Query\x20cached\x20token\x20metadata\x20—\x20symbol,\x20decimals,\x20icon\x20URL,\x20description\x20for\x20tokens\x20previously\x20fetched\x20from\x20chain.\x20Use\x20to\x20look\x20up\x20token\x20info\x20without\x20an\x20on-chain\x20query.\x20Returns:\x20TokenTypeInfo[]\x20(type,\x20alias,\x20name,\x20symbol,\x20decimals,\x20iconUrl)'),z['object']({'query_type':z['literal']('account_balance'),'name_or_address':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20address\x20to\x20query.\x20'+'Examples:\x20\x22my_account\x22,\x20\x220xabc123...\x22,\x20or\x20\x22\x22\x20for\x20the\x20default\x20account.\x20'+'NOTE:\x20This\x20field\x20is\x20NOT\x20named\x20\x27filter\x27\x20—\x20use\x20\x27name_or_address\x27\x20directly.\x20'+'Defaults\x20to\x20\x27\x27\x20(default\x20account)\x20if\x20omitted.'),'balance':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20query\x20total\x20balance\x20amount\x20for\x20the\x20token\x20type'),'coin':z['object']({'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20for\x20listing\x20coin\x20objects'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20coin\x20objects\x20per\x20page')})['strict']()['optional']()['describe']('Set\x20to\x20query\x20paginated\x20coin\x20objects\x20instead\x20of\x20balance.\x20Use\x20cursor/limit\x20for\x20pagination.'),'token_type':TokenTypeSchema['optional']()['describe']('Token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(default,\x209\x20decimals),\x20\x220x2::sui::SUI\x22\x20(9\x20decimals).\x20'+'For\x20custom\x20tokens,\x20use\x20the\x20full\x20type\x20string\x20from\x20the\x20token\x27s\x20coin\x20metadata.\x20'+'The\x20Fund\x20Processing\x20Layer\x20resolves\x20precision\x20from\x20the\x20official\x20registry\x20→\x20cache\x20→\x20on-chain.'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20an\x20account\x27s\x20coin\x20balance\x20OR\x20paginated\x20coin\x20objects.\x20'+'PARAMETERS:\x20Use\x20\x27name_or_address\x27\x20to\x20specify\x20the\x20account\x20(NOT\x20\x27filter\x27).\x20'+'Use\x20balance=true\x20for\x20total\x20amount,\x20or\x20coin={cursor,limit}\x20to\x20list\x20individual\x20coin\x20objects.\x20'+'Use\x20token_type\x20to\x20query\x20non-default\x20tokens\x20(format:\x200x<package>::<module>::<struct>).\x20'+'Returns:\x20{\x20address,\x20balance?\x20|\x20coin?\x20}'),z['object']({'query_type':z['literal']('local_names'),'addresses':z['array'](z['string']())['describe']('Array\x20of\x20addresses\x20to\x20look\x20up\x20local\x20names\x20for')})['strict']()['describe']('Query\x20local\x20names\x20(account\x20name\x20and\x20local\x20mark\x20name)\x20for\x20a\x20list\x20of\x20addresses.\x20Returns\x20array\x20of:\x20{\x20account?:\x20string,\x20local_mark?:\x20string,\x20address:\x20string\x20}'),z['object']({'query_type':z['literal']('onchain_personal_profile'),'account':NameOrAddressSchema['optional']()['describe']('Account\x20name\x20or\x20ID\x20to\x20query.\x20Use\x20empty\x20string\x20\x27\x27\x20for\x20the\x20default\x20account.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20any\x20user\x27s\x20PUBLIC\x20on-chain\x20profile\x20—\x20social\x20links,\x20reputation\x20(likes/dislikes),\x20personal\x20info\x20records,\x20voting\x20history,\x20referrer.\x20Use\x20to\x20look\x20up\x20a\x20user\x27s\x20public\x20identity\x20and\x20reputation.\x20Returns:\x20ObjectPersonal\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_objects'),'objects':z['array'](NameOrAddressSchema)['describe']('List\x20of\x20object\x20IDs\x20(names\x20or\x20addresses)\x20to\x20query\x20in\x20batch'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Batch\x20query\x20on-chain\x20WOWOK\x20objects\x20by\x20ID\x20or\x20name\x20—\x20supports\x20Service,\x20Machine,\x20Order,\x20Treasury,\x20Reward,\x20Arb,\x20Personal,\x20Contact,\x20and\x20more.\x20Use\x20to\x20inspect\x20one\x20or\x20more\x20objects\x20in\x20a\x20single\x20call.\x20Returns:\x20{\x20objects:\x20ObjectBase[]\x20}'),z['object']({'query_type':z['literal']('onchain_received'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Name\x20or\x20address\x20of\x20the\x20object\x20that\x20received\x20payments/items\x20-\x20can\x20be\x20a\x20string\x20(name/address)\x20or\x20full\x20object'),'type':z['union']([z['string'](),z['literal']('CoinWrapper'),z['null']()])['optional']()['describe']('Type\x20filter\x20for\x20querying\x20received\x20objects.\x20'+'-\x20If\x20undefined\x20or\x20null:\x20query\x20all\x20types\x20(equivalent\x20to\x20the\x20old\x20all_type=true).\x20'+'-\x20If\x20\x27CoinWrapper\x27:\x20query\x20CoinWrapper\x20type\x20for\x20the\x20object\x27s\x20token\x20(equivalent\x20to\x20the\x20old\x20all_type=false).\x20'+'-\x20If\x20string:\x20query\x20specific\x20StructType\x20(e.g.,\x20\x270x2::payment::CoinWrapper<0x2::wow::WOW>\x27).'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20records\x20per\x20page'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Query\x20objects\x20(Payments,\x20Tokens,\x20NFTs)\x20received\x20by\x20a\x20specific\x20object.\x20Use\x20to\x20track\x20incoming\x20payments\x20or\x20items\x20sent\x20to\x20an\x20on-chain\x20object.\x20Supports\x20pagination\x20and\x20type\x20filter.\x20Returns:\x20ReceivedBalance\x20|\x20ReceivedNormal[]'),z['object']({'query_type':z['literal']('onchain_transaction'),'digest':z['string']()['describe']('Transaction\x20digest\x20(0x...)\x20to\x20verify.\x20Use\x20after\x20any\x20on-chain\x20operation\x20to\x20confirm\x20what\x20actually\x20happened\x20on-chain\x20—\x20object\x20changes,\x20balance\x20changes,\x20gas\x20used,\x20success/failure\x20status.\x20This\x20is\x20the\x20\x27OperationProof\x27\x20primitive\x20for\x20the\x20Verify\x20step.'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Verify\x20what\x20a\x20specific\x20transaction\x20did\x20on-chain\x20—\x20the\x20\x27OperationProof\x27\x20primitive.\x20After\x20executing\x20any\x20operation,\x20call\x20this\x20with\x20the\x20returned\x20digest\x20to\x20confirm:\x20status\x20(success/failed),\x20object\x20changes\x20(created/mutated/deleted),\x20balance\x20changes,\x20gas\x20used,\x20and\x20events.\x20Essential\x20for\x20the\x205-step\x20loop\x27s\x20Verify\x20step.\x20Returns:\x20TransactionDetail\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_object_history'),'object':NameOrAddressSchema['describe']('Object\x20ID\x20(0x...)\x20or\x20LocalMark\x20name.\x20Query\x20the\x20provenance\x20chain\x20—\x20every\x20transaction\x20that\x20created,\x20mutated,\x20or\x20deleted\x20this\x20object.\x20Use\x20to\x20trace\x20how\x20an\x20object\x20reached\x20its\x20current\x20state.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20—\x20query\x20all\x20transactions\x20that\x20touched\x20an\x20object.\x20WARNING:\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries\x20(each\x20tx\x20touches\x20more\x20objects\x20with\x20their\x20own\x20history).\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20instead\x20—\x20it\x20extracts\x20embedded\x20history\x20from\x20object\x20states\x20(ProgressSession.forwards,\x20etc.)\x20without\x20infinite\x20recursion.\x20This\x20tool\x20is\x20for\x20auditing/forensics\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('onchain_address_activity'),'name_or_address':AccountOrMark_AddressAISchema['describe']('Address\x20(0x...)\x20or\x20account\x20name.\x20Query\x20all\x20on-chain\x20activity\x20by\x20this\x20actor\x20—\x20every\x20transaction\x20they\x20sent.\x20Use\x20to\x20build\x20a\x20user\x27s\x20on-chain\x20activity\x20profile\x20or\x20verify\x20an\x20actor\x27s\x20history.'),'cursor':z['union']([z['string'](),z['null']()])['optional']()['describe']('Pagination\x20cursor\x20from\x20previous\x20page\x27s\x20next_cursor'),'limit':z['union']([z['number'](),z['null']()])['optional']()['describe']('Max\x20results\x20per\x20page\x20(default\x2020,\x20max\x2050)'),'order':z['union']([z['literal']('ascending'),z['literal']('descending')])['optional']()['describe']('Sort\x20order:\x20ascending=oldest\x20first,\x20descending=newest\x20first\x20(default)'),'no_cache':z['boolean']()['optional']()['describe']('Set\x20to\x20true\x20to\x20bypass\x20cache\x20and\x20fetch\x20fresh\x20on-chain\x20data'),'network':EntrypointSchema['optional']()})['strict']()['describe']('FORENSICS\x20TOOL\x20—\x20query\x20all\x20transactions\x20sent\x20by\x20an\x20address.\x20WARNING:\x20like\x20onchain_object_history,\x20this\x20can\x20lead\x20to\x20non-convergent\x20queries.\x20For\x20AI\x20context\x20building,\x20use\x20assemble_context\x20(extracts\x20embedded\x20history)\x20or\x20query_events\x20(real-time\x20transitions)\x20instead.\x20This\x20tool\x20is\x20for\x20auditing/user-activity\x20profiling\x20only.\x20Returns:\x20TransactionHistoryAnswer\x20|\x20undefined'),z['object']({'query_type':z['literal']('token_value_convert'),'token_type':TokenTypeSchema['describe']('Full\x20token\x20type\x20in\x20Move\x20format:\x200x<package>::<module>::<struct>.\x20'+'Examples:\x20\x220x2::wow::WOW\x22\x20(9\x20decimals).\x20The\x20token\x27s\x20decimals\x20drive\x20the\x20conversion\x20—\x20'+'resolved\x20from\x20official\x20registry\x20→\x20local\x20cache\x20→\x20on-chain\x20coin\x20metadata.'),'raw':z['union']([z['string'](),z['number']()])['optional']()['describe']('Raw\x20smallest-unit\x20value\x20(u64,\x20e.g.\x20\x222200000000\x22)\x20to\x20convert\x20TO\x20a\x20human\x20unit\x20value.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.'),'unit':z['union']([z['string'](),z['number']()])['optional']()['describe']('Human\x20unit\x20value\x20(e.g.\x20\x222.2\x22)\x20to\x20convert\x20TO\x20raw\x20smallest\x20units\x20(u64).\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit.\x20Conversion\x20is\x20REFUSED\x20when\x20the\x20token\x27s\x20'+'decimals\x20cannot\x20be\x20resolved\x20(guessing\x20would\x20forge\x20wrong\x20on-chain\x20values).'),'network':EntrypointSchema['optional']()})['strict']()['describe']('Convert\x20between\x20raw\x20on-chain\x20smallest\x20units\x20(u64)\x20and\x20human\x20unit\x20values,\x20in\x20EITHER\x20direction.\x20'+'Provide\x20EXACTLY\x20ONE\x20of\x20raw\x20/\x20unit\x20(handler-validated).\x20'+'raw\x20→\x20unit:\x20\x222200000000\x22\x20→\x20\x222.2\x22\x20(pass-through\x20when\x20precision\x20unknown).\x20'+'unit\x20→\x20raw:\x20\x222.2\x22\x20→\x20\x222200000000\x22\x20(REFUSED\x20when\x20precision\x20unknown\x20—\x20never\x20guesses\x20decimals).\x20'+'Use\x20this\x20before\x20displaying\x20chain\x20values\x20to\x20users,\x20and\x20before\x20entering\x20amounts\x20for\x20on-chain\x20operations.\x20'+'Returns:\x20{\x20token_type,\x20symbol?,\x20decimals?,\x20precision_known,\x20direction,\x20input,\x20output,\x20error?,\x20text\x20}')]));export const OnchainTableDataResultSchema=z['object']({'result':z['union']([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']()])}),z['object']({'query_type':z['literal']('onchain_table_item_entity_contact'),'result':z['union']([TableItem_EntityContactSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_core'),'result':z['union']([TableItem_ObjectLinkerCoreSchema,z['undefined']()])}),z['object']({'query_type':z['literal']('onchain_table_item_object_linker_tx'),'result':z['union']([TableItem_ObjectLinkerTxSchema,z['undefined']()])}),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_table_item_generic'),'result':z['union']([ObjectBaseSchema,z['undefined']()])})]),'semantic':SemanticSummarySchema['optional']()['describe']('Business\x20semantic\x20summary\x20for\x20the\x20table\x20data\x20query')});
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PermissionAccountRoleSchema: z.ZodObject<{
|
|
3
|
+
account: z.ZodString;
|
|
4
|
+
name: z.ZodOptional<z.ZodString>;
|
|
5
|
+
role: z.ZodNumber;
|
|
6
|
+
time: z.ZodNumber;
|
|
7
|
+
is_owner: z.ZodBoolean;
|
|
8
|
+
is_admin: z.ZodBoolean;
|
|
9
|
+
is_entity: z.ZodBoolean;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const PermissionRelatedAccountsSchema: z.ZodObject<{
|
|
12
|
+
owner: z.ZodNumber;
|
|
13
|
+
admin: z.ZodNumber;
|
|
14
|
+
entity: z.ZodNumber;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export declare const PermissionRelatedObjectGroupSchema: z.ZodObject<{
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
count: z.ZodNumber;
|
|
19
|
+
objects: z.ZodArray<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const PermissionRowSchema: z.ZodObject<{
|
|
22
|
+
permission: z.ZodString;
|
|
23
|
+
description: z.ZodString;
|
|
24
|
+
owner: z.ZodString;
|
|
25
|
+
updated_timestamp_ms: z.ZodOptional<z.ZodString>;
|
|
26
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
27
|
+
account: z.ZodString;
|
|
28
|
+
name: z.ZodOptional<z.ZodString>;
|
|
29
|
+
role: z.ZodNumber;
|
|
30
|
+
time: z.ZodNumber;
|
|
31
|
+
is_owner: z.ZodBoolean;
|
|
32
|
+
is_admin: z.ZodBoolean;
|
|
33
|
+
is_entity: z.ZodBoolean;
|
|
34
|
+
}, z.core.$strip>>;
|
|
35
|
+
related_accounts: z.ZodObject<{
|
|
36
|
+
owner: z.ZodNumber;
|
|
37
|
+
admin: z.ZodNumber;
|
|
38
|
+
entity: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
related_objects: z.ZodArray<z.ZodObject<{
|
|
41
|
+
type: z.ZodString;
|
|
42
|
+
count: z.ZodNumber;
|
|
43
|
+
objects: z.ZodArray<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
related_object_count: z.ZodNumber;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const PermissionOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
48
|
+
action: z.ZodLiteral<"list">;
|
|
49
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
50
|
+
network: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
testnet: import("@wowok/wowok").ENTRYPOINT.Testnet;
|
|
52
|
+
localnet: import("@wowok/wowok").ENTRYPOINT.Localnet;
|
|
53
|
+
mainnet: import("@wowok/wowok").ENTRYPOINT.Mainnet;
|
|
54
|
+
}>>;
|
|
55
|
+
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, z.core.$strip>], "action">;
|
|
57
|
+
export declare const PermissionOperationResultSchema: z.ZodObject<{
|
|
58
|
+
action: z.ZodLiteral<"list">;
|
|
59
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
60
|
+
permission: z.ZodString;
|
|
61
|
+
description: z.ZodString;
|
|
62
|
+
owner: z.ZodString;
|
|
63
|
+
updated_timestamp_ms: z.ZodOptional<z.ZodString>;
|
|
64
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
65
|
+
account: z.ZodString;
|
|
66
|
+
name: z.ZodOptional<z.ZodString>;
|
|
67
|
+
role: z.ZodNumber;
|
|
68
|
+
time: z.ZodNumber;
|
|
69
|
+
is_owner: z.ZodBoolean;
|
|
70
|
+
is_admin: z.ZodBoolean;
|
|
71
|
+
is_entity: z.ZodBoolean;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
related_accounts: z.ZodObject<{
|
|
74
|
+
owner: z.ZodNumber;
|
|
75
|
+
admin: z.ZodNumber;
|
|
76
|
+
entity: z.ZodNumber;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
related_objects: z.ZodArray<z.ZodObject<{
|
|
79
|
+
type: z.ZodString;
|
|
80
|
+
count: z.ZodNumber;
|
|
81
|
+
objects: z.ZodArray<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
related_object_count: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
note: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export declare const PermissionOperationOutputSchema: z.ZodObject<{
|
|
88
|
+
result: z.ZodObject<{
|
|
89
|
+
action: z.ZodLiteral<"list">;
|
|
90
|
+
permissions: z.ZodArray<z.ZodObject<{
|
|
91
|
+
permission: z.ZodString;
|
|
92
|
+
description: z.ZodString;
|
|
93
|
+
owner: z.ZodString;
|
|
94
|
+
updated_timestamp_ms: z.ZodOptional<z.ZodString>;
|
|
95
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
96
|
+
account: z.ZodString;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
role: z.ZodNumber;
|
|
99
|
+
time: z.ZodNumber;
|
|
100
|
+
is_owner: z.ZodBoolean;
|
|
101
|
+
is_admin: z.ZodBoolean;
|
|
102
|
+
is_entity: z.ZodBoolean;
|
|
103
|
+
}, z.core.$strip>>;
|
|
104
|
+
related_accounts: z.ZodObject<{
|
|
105
|
+
owner: z.ZodNumber;
|
|
106
|
+
admin: z.ZodNumber;
|
|
107
|
+
entity: z.ZodNumber;
|
|
108
|
+
}, z.core.$strip>;
|
|
109
|
+
related_objects: z.ZodArray<z.ZodObject<{
|
|
110
|
+
type: z.ZodString;
|
|
111
|
+
count: z.ZodNumber;
|
|
112
|
+
objects: z.ZodArray<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
related_object_count: z.ZodNumber;
|
|
115
|
+
}, z.core.$strip>>;
|
|
116
|
+
note: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type PermissionOperationInput = z.infer<typeof PermissionOperationInputSchema>;
|
|
120
|
+
export type PermissionRow = z.infer<typeof PermissionRowSchema>;
|
|
121
|
+
export type PermissionAccountRole = z.infer<typeof PermissionAccountRoleSchema>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z}from'zod';import{EntrypointSchema}from'../common/index.js';export const PermissionAccountRoleSchema=z['object']({'account':z['string']()['describe']('Local\x20account\x20address'),'name':z['string']()['optional']()['describe']('Local\x20account\x20name\x20(if\x20any)'),'role':z['number']()['describe']('Role\x20bitmask:\x201=owner,\x202=admin,\x204=entity'),'time':z['number']()['describe']('Unix\x20ms\x20when\x20the\x20account\x27s\x20role\x20in\x20this\x20permission\x20was\x20last\x20modified\x20(entity_permission\x20clock)'),'is_owner':z['boolean']()['describe']('Account\x20holds\x20the\x20owner\x20role'),'is_admin':z['boolean']()['describe']('Account\x20holds\x20the\x20admin\x20role'),'is_entity':z['boolean']()['describe']('Account\x20holds\x20the\x20entity\x20(member)\x20role')})['describe']('A\x20local\x20account\x20and\x20its\x20role(s)\x20in\x20the\x20permission');export const PermissionRelatedAccountsSchema=z['object']({'owner':z['number']()['describe']('Number\x20of\x20owner\x20accounts\x20(0\x20or\x201)'),'admin':z['number']()['describe']('Number\x20of\x20admin\x20accounts'),'entity':z['number']()['describe']('Number\x20of\x20entity\x20(member)\x20accounts')})['describe']('Total\x20related\x20accounts,\x20broken\x20down\x20by\x20role');export const PermissionRelatedObjectGroupSchema=z['object']({'type':z['string']()['describe']('Object\x20type\x20name\x20(from\x20address\x20first-byte\x20tag)'),'count':z['number']()['describe']('Number\x20of\x20objects\x20of\x20this\x20type'),'objects':z['array'](z['string']())['describe']('Object\x20addresses\x20of\x20this\x20type')})['describe']('A\x20group\x20of\x20related\x20objects\x20of\x20the\x20same\x20type');export const PermissionRowSchema=z['object']({'permission':z['string']()['describe']('Permission\x20object\x20address'),'description':z['string']()['describe']('Permission\x20description'),'owner':z['string']()['describe']('Owner\x20address'),'updated_timestamp_ms':z['string']()['optional']()['describe']('Unix\x20ms\x20of\x20the\x20latest\x20transaction\x20touching\x20this\x20Permission\x20(via\x20previousTransaction)'),'accounts':z['array'](PermissionAccountRoleSchema)['describe']('LOCAL\x20accounts\x20related\x20to\x20this\x20permission\x20+\x20their\x20roles'),'related_accounts':PermissionRelatedAccountsSchema['describe']('Total\x20related\x20accounts\x20by\x20role'),'related_objects':z['array'](PermissionRelatedObjectGroupSchema)['describe']('Related\x20objects\x20grouped\x20by\x20type\x20(via\x20object\x20linker\x20core/tx)'),'related_object_count':z['number']()['describe']('Total\x20related\x20object\x20count')})['describe']('A\x20Permission\x20object\x20with\x20metadata\x20+\x20related\x20accounts\x20+\x20related\x20objects');export const PermissionOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('list'),'limit':z['number']()['int']()['min'](0x1)['max'](0xc8)['optional']()['describe']('Max\x20number\x20of\x20permissions\x20to\x20return\x20(default\x20100)'),'network':EntrypointSchema['optional'](),'no_cache':z['boolean']()['optional']()})])['describe']('permission_operation\x20input.\x20action=\x27list\x27\x20enumerates\x20Permissions\x20related\x20to\x20local\x20accounts.');export const PermissionOperationResultSchema=z['object']({'action':z['literal']('list'),'permissions':z['array'](PermissionRowSchema)['describe']('Deduplicated\x20permissions\x20related\x20to\x20local\x20accounts'),'note':z['string']()['optional']()})['describe']('permission_operation\x20result');export const PermissionOperationOutputSchema=z['object']({'result':PermissionOperationResultSchema})['describe']('permission_operation\x20output\x20envelope');
|