@wowok/agent-mcp 3.1.3 → 3.1.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/config-audit.spec.d.ts +1 -0
- package/dist/config/config-audit.spec.js +1 -0
- package/dist/config/exposure.d.ts +108 -0
- package/dist/config/exposure.js +1 -0
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +1 -1
- package/dist/config/judgment.d.ts +1228 -0
- package/dist/config/judgment.js +1 -0
- package/dist/config/judgment.spec.d.ts +1 -0
- package/dist/config/judgment.spec.js +1 -0
- package/dist/config/rule-engine.d.ts +299 -0
- package/dist/config/rule-engine.js +1 -0
- package/dist/config/rule-engine.spec.d.ts +1 -0
- package/dist/config/rule-engine.spec.js +1 -0
- package/dist/config/severity.d.ts +7 -0
- package/dist/config/severity.js +1 -0
- package/dist/customer/order-monitor.d.ts +3 -1
- package/dist/customer/order-monitor.js +1 -1
- package/dist/evaluation/acceptance.d.ts +1 -0
- package/dist/evaluation/acceptance.js +1 -1
- package/dist/evaluation/arbitration-game.js +1 -1
- package/dist/evaluation/builtins/demand-match.js +1 -1
- package/dist/evaluation/builtins/graph-service.js +1 -1
- package/dist/evaluation/builtins/graph-service.spec.js +1 -1
- package/dist/evaluation/engine.js +1 -1
- package/dist/evaluation/game-strategy.d.ts +2 -2
- package/dist/evaluation/game-strategy.js +1 -1
- package/dist/evaluation/match-operation.d.ts +2 -2
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/evaluation/standards.d.ts +3 -25
- package/dist/evaluation/standards.js +1 -1
- package/dist/evaluation/types.d.ts +2 -1
- package/dist/experience/realtime-feedback.js +1 -1
- package/dist/extensions/business-modules.js +1 -1
- package/dist/extensions/custom-registry-file.js +1 -1
- package/dist/extensions/industry-audit.spec.d.ts +1 -0
- package/dist/extensions/industry-audit.spec.js +1 -0
- package/dist/extensions/industry-layers.d.ts +8 -0
- package/dist/extensions/industry-layers.js +1 -1
- package/dist/extensions/industry-pack.d.ts +2 -0
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/mode-evaluator.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/graph/onchain/analyze.d.ts +3 -1
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/analyze.spec.js +1 -1
- package/dist/graph/onchain/edge-schema.d.ts +1 -0
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/expand.js +1 -1
- package/dist/graph/onchain/exploration.d.ts +28 -0
- package/dist/graph/onchain/exploration.js +1 -0
- package/dist/graph/onchain/exploration.spec.d.ts +1 -0
- package/dist/graph/onchain/exploration.spec.js +1 -0
- package/dist/graph/onchain/exposure.d.ts +18 -0
- package/dist/graph/onchain/exposure.js +1 -0
- package/dist/graph/onchain/exposure.spec.d.ts +1 -0
- package/dist/graph/onchain/exposure.spec.js +1 -0
- package/dist/graph/onchain/graph-policy.spec.d.ts +1 -0
- package/dist/graph/onchain/graph-policy.spec.js +1 -0
- package/dist/graph/onchain/index.d.ts +6 -0
- package/dist/graph/onchain/index.js +1 -1
- package/dist/graph/onchain/interest.js +1 -1
- package/dist/graph/onchain/interest.spec.js +1 -1
- package/dist/graph/onchain/names.js +1 -1
- package/dist/graph/onchain/names.spec.js +1 -1
- package/dist/graph/onchain/policy.d.ts +8 -0
- package/dist/graph/onchain/policy.js +1 -0
- package/dist/graph/onchain/proposal-graph.js +1 -1
- package/dist/graph/onchain/proposal-graph.spec.js +1 -1
- package/dist/graph/onchain/synthesis.d.ts +20 -0
- package/dist/graph/onchain/synthesis.js +1 -0
- package/dist/graph/onchain/synthesis.spec.d.ts +1 -0
- package/dist/graph/onchain/synthesis.spec.js +1 -0
- package/dist/graph/onchain/types.d.ts +11 -1
- package/dist/keeper/keeper.spec.js +1 -1
- package/dist/knowledge/alloc-audit-policy.spec.d.ts +1 -0
- package/dist/knowledge/alloc-audit-policy.spec.js +1 -0
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +1 -1
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +4 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/allocation-templates.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +6 -5
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-ledger.d.ts +4 -4
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/arbitration-puzzle.d.ts +1 -1
- package/dist/knowledge/arbitration-puzzle.js +1 -1
- package/dist/knowledge/arbitration-risk.d.ts +4 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/baselines/judgment-baselines.json +289 -0
- package/dist/knowledge/baselines/risk-baselines.spec.js +1 -1
- package/dist/knowledge/baselines/rules/alloc_audit.json +290 -0
- package/dist/knowledge/baselines/rules/allocation.json +492 -0
- package/dist/knowledge/baselines/rules/arb.json +155 -0
- package/dist/knowledge/baselines/rules/arbitration.json +366 -0
- package/dist/knowledge/baselines/rules/bridge.json +197 -0
- package/dist/knowledge/baselines/rules/contact.json +152 -0
- package/dist/knowledge/baselines/rules/demand.json +158 -0
- package/dist/knowledge/baselines/rules/graph.json +453 -0
- package/dist/knowledge/baselines/rules/guard.json +981 -0
- package/dist/knowledge/baselines/rules/machine.json +706 -0
- package/dist/knowledge/baselines/rules/order.json +549 -0
- package/dist/knowledge/baselines/rules/payment.json +205 -0
- package/dist/knowledge/baselines/rules/permission.json +330 -0
- package/dist/knowledge/baselines/rules/personal.json +139 -0
- package/dist/knowledge/baselines/rules/progress.json +346 -0
- package/dist/knowledge/baselines/rules/proof.json +158 -0
- package/dist/knowledge/baselines/rules/registrar.json +159 -0
- package/dist/knowledge/baselines/rules/repository.json +244 -0
- package/dist/knowledge/baselines/rules/resource.json +117 -0
- package/dist/knowledge/baselines/rules/reward.json +471 -0
- package/dist/knowledge/baselines/rules/service.json +595 -0
- package/dist/knowledge/baselines/rules/treasury.json +440 -0
- package/dist/knowledge/baselines/rules/util.json +101 -0
- package/dist/knowledge/bridge-risk.d.ts +6 -5
- package/dist/knowledge/bridge-risk.js +1 -1
- package/dist/knowledge/builtin-templates.d.ts +26 -0
- package/dist/knowledge/builtin-templates.js +1 -0
- package/dist/knowledge/contact-risk.d.ts +6 -5
- package/dist/knowledge/contact-risk.js +1 -1
- package/dist/knowledge/demand-risk.d.ts +6 -5
- package/dist/knowledge/demand-risk.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/facts-sync.spec.d.ts +1 -0
- package/dist/knowledge/facts-sync.spec.js +1 -0
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-field-cognition.d.ts +1 -1
- package/dist/knowledge/guard-field-cognition.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-risk.d.ts +4 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/guard-translation.js +1 -1
- package/dist/knowledge/index.d.ts +10 -2
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/industry-strategy.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-risk.d.ts +4 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-templates.js +1 -1
- package/dist/knowledge/machine-translation.js +1 -1
- package/dist/knowledge/migration-preflight.js +1 -1
- package/dist/knowledge/operation-dictionary.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-puzzle.d.ts +3 -3
- package/dist/knowledge/order-puzzle.js +1 -1
- package/dist/knowledge/order-risk.d.ts +6 -3
- package/dist/knowledge/order-risk.js +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/passport-ledger.js +1 -1
- package/dist/knowledge/passport-templates.js +1 -1
- package/dist/knowledge/payment-risk.d.ts +8 -6
- package/dist/knowledge/payment-risk.js +1 -1
- package/dist/knowledge/payment-tracker.js +1 -1
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/permission-puzzle.d.ts +12 -12
- package/dist/knowledge/permission-puzzle.js +1 -1
- package/dist/knowledge/permission-risk.d.ts +4 -7
- package/dist/knowledge/permission-risk.js +1 -1
- package/dist/knowledge/permission-templates.js +1 -1
- package/dist/knowledge/personal-risk.d.ts +6 -5
- package/dist/knowledge/personal-risk.js +1 -1
- package/dist/knowledge/progress-ledger.js +1 -1
- package/dist/knowledge/progress-puzzle.d.ts +2 -2
- package/dist/knowledge/progress-puzzle.js +1 -1
- package/dist/knowledge/progress-risk.d.ts +4 -1
- package/dist/knowledge/progress-risk.js +1 -1
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/proof-risk.d.ts +6 -5
- package/dist/knowledge/proof-risk.js +1 -1
- package/dist/knowledge/puzzle-projections.js +1 -1
- package/dist/knowledge/recipient-constraint.d.ts +20 -1
- package/dist/knowledge/recipient-constraint.js +1 -1
- package/dist/knowledge/registrar-risk.d.ts +6 -5
- package/dist/knowledge/registrar-risk.js +1 -1
- package/dist/knowledge/repository-risk.d.ts +7 -6
- package/dist/knowledge/repository-risk.js +1 -1
- package/dist/knowledge/resource-risk.d.ts +6 -5
- package/dist/knowledge/resource-risk.js +1 -1
- package/dist/knowledge/reward-ledger.d.ts +1 -1
- package/dist/knowledge/reward-ledger.js +1 -1
- package/dist/knowledge/reward-puzzle.d.ts +2 -2
- package/dist/knowledge/reward-puzzle.js +1 -1
- package/dist/knowledge/reward-risk.d.ts +4 -1
- package/dist/knowledge/reward-risk.js +1 -1
- package/dist/knowledge/rule-node-analyzers.spec.js +1 -1
- package/dist/knowledge/rule-outcome.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +2 -2
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/scenario-topology.js +1 -1
- package/dist/knowledge/service-allocator-audit-node.js +1 -1
- package/dist/knowledge/service-ledger.js +1 -1
- package/dist/knowledge/service-puzzle.d.ts +2 -2
- package/dist/knowledge/service-puzzle.js +1 -1
- package/dist/knowledge/service-risk-node.js +1 -1
- package/dist/knowledge/service-risk.d.ts +4 -1
- package/dist/knowledge/service-risk.js +1 -1
- package/dist/knowledge/service-templates.js +1 -1
- package/dist/knowledge/strategy-manuals.d.ts +1 -1
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +84 -0
- package/dist/knowledge/template-loader.js +1 -0
- package/dist/knowledge/template-loader.spec.d.ts +1 -0
- package/dist/knowledge/template-loader.spec.js +1 -0
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.d.ts +17 -0
- package/dist/knowledge/template-scanner.js +1 -0
- package/dist/knowledge/template-scanner.spec.d.ts +1 -0
- package/dist/knowledge/template-scanner.spec.js +1 -0
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/treasury-ledger.d.ts +1 -1
- package/dist/knowledge/treasury-ledger.js +1 -1
- package/dist/knowledge/treasury-puzzle.d.ts +3 -3
- package/dist/knowledge/treasury-puzzle.js +1 -1
- package/dist/knowledge/treasury-risk.d.ts +4 -1
- package/dist/knowledge/treasury-risk.js +1 -1
- package/dist/knowledge/treasury-templates.js +1 -1
- package/dist/knowledge/util-risk.d.ts +6 -5
- package/dist/knowledge/util-risk.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +4 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/knowledge/workspace-lists.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/arbitrator-interest.js +1 -1
- package/dist/participation/radar-core.js +1 -1
- package/dist/persona/analyzer.js +1 -1
- package/dist/persona/index.js +1 -1
- package/dist/persona/model.js +1 -1
- package/dist/persona/persona-audit.spec.d.ts +1 -0
- package/dist/persona/persona-audit.spec.js +1 -0
- package/dist/persona/types.d.ts +2 -0
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/facet-money.d.ts +11 -0
- package/dist/playbooks/service-build/facet-money.js +1 -1
- package/dist/playbooks/service-build/machine-panorama.d.ts +17 -0
- package/dist/playbooks/service-build/machine-panorama.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +2 -2
- package/dist/playbooks/service-build/migration-planner.d.ts +43 -0
- package/dist/playbooks/service-build/migration-planner.js +1 -0
- package/dist/playbooks/service-build/object-panorama.d.ts +42 -1
- package/dist/playbooks/service-build/object-panorama.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/pipeline-actions.d.ts +1 -1
- package/dist/playbooks/service-build/reverse-mapping.d.ts +1 -0
- package/dist/playbooks/service-build/reverse-mapping.js +1 -1
- package/dist/playbooks/service-build/risk-aggregator.d.ts +2 -1
- package/dist/playbooks/service-build/risk-aggregator.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-panorama.d.ts +53 -1
- package/dist/playbooks/service-build/service-panorama.js +1 -1
- package/dist/playbooks/service-build/topology-evaluation.spec.js +1 -1
- package/dist/playbooks/service-build/topology-query.js +1 -1
- package/dist/playbooks/service-build/workflow-design-assessment.d.ts +2 -2
- package/dist/playbooks/service-build/workflow-design-assessment.js +1 -1
- package/dist/relationship/registry.js +1 -1
- package/dist/review/machine.js +1 -1
- package/dist/review/order.js +1 -1
- package/dist/review/service.js +1 -1
- package/dist/review/types.d.ts +7 -0
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +207 -0
- package/dist/schema/benchmark-migration/index.js +1 -0
- package/dist/schema/call/allocation.d.ts +1 -1
- package/dist/schema/call/allocation.js +1 -1
- package/dist/schema/call/arbitration.d.ts +1 -1
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.d.ts +5 -5
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/contact.d.ts +1 -1
- package/dist/schema/call/demand.d.ts +1 -1
- package/dist/schema/call/guard.d.ts +3 -3
- package/dist/schema/call/machine.d.ts +5 -5
- package/dist/schema/call/order.d.ts +3 -3
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/permission-handler.d.ts +1 -1
- package/dist/schema/call/permission-handler.js +1 -1
- package/dist/schema/call/permission.d.ts +16 -16
- package/dist/schema/call/permission.js +1 -1
- package/dist/schema/call/personal.d.ts +8 -8
- package/dist/schema/call/personal.js +1 -1
- package/dist/schema/call/progress.d.ts +3 -3
- package/dist/schema/call/repository.d.ts +11 -11
- package/dist/schema/call/repository.js +1 -1
- package/dist/schema/call/reward.d.ts +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +7 -7
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/call/treasury.d.ts +1 -1
- package/dist/schema/common/index.d.ts +6 -6
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/config/index.d.ts +50 -1
- package/dist/schema/config/index.js +1 -1
- package/dist/schema/evaluation/index.d.ts +27 -11
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +5 -5
- package/dist/schema/goal/planning.d.ts +15 -15
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/index.d.ts +1 -0
- package/dist/schema/index.js +1 -1
- package/dist/schema/interaction/index.d.ts +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/messenger/index.d.ts +26 -26
- package/dist/schema/operations.d.ts +33 -33
- package/dist/schema/operations.js +1 -1
- package/dist/schema/persona/index.d.ts +4708 -0
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +232 -25
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +35 -35
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/workflow/index.d.ts +1 -1
- package/dist/schema-query-impl/index.d.ts +9 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/benchmark_migration_operation.output.json +793 -0
- package/dist/schemas/benchmark_migration_operation.schema.json +83 -0
- package/dist/schemas/bridge_operation.schema.json +5 -5
- package/dist/schemas/config_operation.output.json +252 -0
- package/dist/schemas/config_operation.schema.json +21 -1
- package/dist/schemas/evaluation_operation.output.json +22 -10
- package/dist/schemas/goal_operation.schema.json +8 -8
- package/dist/schemas/guard2file.schema.json +1 -1
- package/dist/schemas/index.json +7 -1
- package/dist/schemas/machineNode2file.schema.json +1 -1
- package/dist/schemas/messenger_operation.schema.json +24 -12
- package/dist/schemas/onchain_events.output.json +1 -1
- package/dist/schemas/onchain_operations.output.json +4 -2
- package/dist/schemas/onchain_operations.schema.json +189 -139
- package/dist/schemas/onchain_operations_allocation.schema.json +13 -11
- package/dist/schemas/onchain_operations_arbitration.schema.json +10 -8
- package/dist/schemas/onchain_operations_contact.schema.json +7 -5
- package/dist/schemas/onchain_operations_demand.schema.json +7 -5
- package/dist/schemas/onchain_operations_gen_passport.schema.json +5 -3
- package/dist/schemas/onchain_operations_gen_proof.schema.json +1 -1
- package/dist/schemas/onchain_operations_guard.schema.json +5 -3
- package/dist/schemas/onchain_operations_machine.schema.json +22 -18
- package/dist/schemas/onchain_operations_order.schema.json +11 -7
- package/dist/schemas/onchain_operations_payment.schema.json +3 -3
- package/dist/schemas/onchain_operations_permission.schema.json +19 -11
- package/dist/schemas/onchain_operations_personal.schema.json +16 -10
- package/dist/schemas/onchain_operations_progress.schema.json +11 -7
- package/dist/schemas/onchain_operations_proof.schema.json +5 -3
- package/dist/schemas/onchain_operations_repository.schema.json +12 -8
- package/dist/schemas/onchain_operations_reward.schema.json +11 -9
- package/dist/schemas/onchain_operations_service.schema.json +28 -22
- package/dist/schemas/onchain_operations_treasury.schema.json +11 -9
- package/dist/schemas/onchain_table_data.output.json +27 -17
- package/dist/schemas/persona_operation.output.json +15875 -1
- package/dist/schemas/persona_operation.schema.json +3056 -478
- package/dist/schemas/query_toolkit.output.json +343 -63
- package/dist/schemas/query_toolkit.schema.json +1 -1
- package/dist/schemas/workflow_operation.schema.json +4 -2
- package/dist/strategy/scorecard.js +1 -1
- package/dist/tools/handlers/benchmark-migration.d.ts +2 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -0
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/industry-pack.js +1 -1
- package/dist/tools/handlers/onchain.js +1 -1
- package/dist/tools/handlers/query.js +1 -1
- package/dist/tools/handlers/schema-query.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/move-fn-index.gen.d.ts +3 -0
- package/dist/tools/move-fn-index.gen.js +1 -0
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/registry/config.js +1 -1
- package/dist/tools/registry/evaluation.js +1 -1
- package/dist/tools/registry/onchain.js +1 -1
- package/dist/tools/sanitize-output.d.ts +3 -0
- package/dist/tools/sanitize-output.js +1 -0
- package/dist/tools/sanitize-output.spec.d.ts +1 -0
- package/dist/tools/sanitize-output.spec.js +1 -0
- package/package.json +9 -4
- package/dist/knowledge/baselines/evaluation-baselines.json +0 -79
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';const IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail']),RoleEnum=z['enum'](['merchant','customer','demander','prospect','supplier','collaborator','arbitrator']),ScopeEnum=z['enum'](['system','account']),PersonaIdentitySchema=z['object']({'region':z['string']()['optional'](),'languages':z['array'](z['string']())['optional'](),'self_description':z['string']()['optional']()})['strict'](),OverrideValueEnum=z['enum'](['auto','prompt','block','warn']),PersonaPolicySchema=z['object']({'confirm':z['object']({'mode':z['enum'](['full','streamlined','quiet'])['optional'](),'batch_standard':z['boolean']()['optional'](),'session_remember':z['array'](z['string']())['optional'](),'intent_bypass':z['boolean']()['optional']()})['strict']()['optional'](),'budget':z['object']({'daily_wow':z['string']()['nullable']()['optional']()})['strict']()['optional'](),'allowlist':z['array'](z['string']())['optional'](),'audit':z['boolean']()['optional']()})['strict'](),TasteProfileSchema=z['object']({'materials':z['array'](z['string']())['optional'](),'colors':z['array'](z['string']())['optional'](),'styles':z['array'](z['string']())['optional'](),'tags':z['array'](z['string']())['optional'](),'brands':z['array'](z['string']())['optional'](),'avoid':z['array'](z['string']())['optional']()})['strict'](),ConsumptionProfileSchema=z['object']({'frequency':z['enum'](['rare','occasional','regular','frequent'])['optional'](),'price_band':z['enum'](['budget','mid','premium','luxury'])['optional'](),'decision_speed':z['enum'](['fast','deliberate','slow'])['optional'](),'channels':z['array'](z['string']())['optional'](),'repeat_orientation':z['enum'](['novelty','balanced','loyal'])['optional'](),'avg_order_range':z['string']()['optional'](),'notes':z['array'](z['string']())['optional']()})['strict'](),MerchantRoleStyleSchema=z['object']({'posture':z['enum'](['volume','balanced','margin'])['optional'](),'pricing_style':z['enum'](['competitive','value','premium','custom_quote'])['optional'](),'service_style':z['array'](z['string']())['optional'](),'communication':z['string']()['optional'](),'growth_focus':z['array'](z['string']())['optional']()})['strict'](),SupplierRoleStyleSchema=z['object']({'min_order':z['string']()['optional'](),'lead_time':z['string']()['optional'](),'settlement_terms':z['array'](z['string']())['optional'](),'categories':z['array'](z['string']())['optional'](),'capacity':z['string']()['optional']()})['strict'](),CollaboratorRoleStyleSchema=z['object']({'scope_discipline':z['enum'](['strict','balanced','flexible'])['optional'](),'notifications':z['enum'](['minimal','digest','realtime'])['optional'](),'working_hours':z['string']()['optional'](),'advance_style':z['array'](z['string']())['optional']()})['strict'](),ArbitratorRoleStyleSchema=z['object']({'case_types':z['array'](z['string']())['optional'](),'response_speed':z['enum'](['fast','standard','thorough'])['optional'](),'ruling_style':z['enum'](['concise','detailed'])['optional']()})['strict'](),DemanderRoleStyleSchema=z['object']({'award_weights':z['record'](z['string'](),z['number']())['optional'](),'pilot_budget':z['string']()['optional'](),'rfp_openness':z['enum'](['open','passport_gated','invite_only'])['optional'](),'decision_basis':z['array'](z['string']())['optional']()})['strict'](),RoleProfileSchema=z['object']({'tastes':TasteProfileSchema['optional'](),'consumption':ConsumptionProfileSchema['optional'](),'merchant':MerchantRoleStyleSchema['optional'](),'supplier':SupplierRoleStyleSchema['optional'](),'collaborator':CollaboratorRoleStyleSchema['optional'](),'arbitrator':ArbitratorRoleStyleSchema['optional'](),'demander':DemanderRoleStyleSchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional']()})['strict'](),RoleProfileMapSchema=z['object'](Object['fromEntries'](RoleEnum['options']['map'](a=>[a,RoleProfileSchema['optional']()])))['strict'](),PersonaLayerSchema=z['object']({'identity':PersonaIdentitySchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'strategy':z['array'](z['string']())['optional'](),'rules':z['array'](z['string']())['optional'](),'requirements':z['array'](z['string']())['optional'](),'spec':z['string']()['optional'](),'overrides':z['record'](z['string'](),OverrideValueEnum)['optional'](),'policy':PersonaPolicySchema['optional'](),'profiles':RoleProfileMapSchema['optional'](),'analyze':z['object']({'key_questions':z['array'](z['string']())['max'](0x4)['describe']('The\x20user\x27s\x20key\x20follow-up\x20questions\x20for\x20the\x20Analyze\x20dossier\x20(up\x20to\x204\x20stored,\x202\x20effective\x20after\x20merge).')})['strict']()['optional']()})['strict'](),PersonaControlsSchema=z['object']({'confirm_modes':z['array'](z['string']()),'overrides':z['array'](z['object']({'id':z['string'](),'default':OverrideValueEnum,'allowed':z['array'](OverrideValueEnum),'surface':z['enum'](['gate','client'])['optional']()})['strict']()),'locked_rules':z['array'](z['object']({'id':z['string'](),'level':z['string']()})['strict']()),'policy_keys':z['array'](z['string']())})['strict'](),PersonaSchema=z['object']({'version':z['number'](),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'long_term':PersonaLayerSchema,'current':PersonaLayerSchema,'updated_at':z['number']()})['strict'](),PersonaSourceSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'part':z['enum'](['long_term','current'])})['strict'](),EffectivePersonaSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'layer':PersonaLayerSchema,'sources':z['array'](PersonaSourceSchema)})['strict'](),PersonaAnalysisSuggestionSchema=z['object']({'field':z['string'](),'value':z['unknown'](),'reason':z['string']()})['strict'](),PersonaAnalysisSchema=z['object']({'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum),'preferences':z['record'](z['string'](),z['unknown']()),'requirements':z['array'](z['string']()),'rules':z['array'](z['string']()),'suggestions':z['array'](PersonaAnalysisSuggestionSchema),'confidence':z['number']()})['strict'](),GoalSummarySchema=z['object']({'id':z['string'](),'title':z['string'](),'outcome_success':z['boolean']()['optional']()})['strict']();export const PersonaOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'industry':IndustryEnum['optional'](),'role':RoleEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list')})['strict'](),z['object']({'action':z['literal']('set'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum,'industries':z['array'](IndustryEnum)['default']([]),'long_term':PersonaLayerSchema['optional'](),'current':PersonaLayerSchema['optional']()})['strict'](),z['object']({'action':z['literal']('analyze'),'context':z['string']()['describe']('Free-form\x20context:\x20website\x20URL,\x20experience\x20summary,\x20self\x20description,\x20goal.')})['strict'](),z['object']({'action':z['literal']('apply'),'context':z['string']()['describe']('Free-form\x20context\x20whose\x20extracted\x20signals\x20feed\x20the\x20CURRENT\x20layer.'),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'mode':z['enum'](['merge','replace'])['optional']()['describe']('merge\x20(default)\x20unions\x20strategy/rules/requirements\x20into\x20current;\x20replace\x20discards\x20the\x20existing\x20current\x20layer.')})['strict'](),z['object']({'action':z['literal']('sync'),'account':z['string']()['optional']()['describe']('Account\x20whose\x20behavior\x20(experience\x20layer)\x20is\x20merged\x20into\x20its\x20CURRENT\x20layer.\x20Omit\x20=\x20system\x20persona.')})['strict'](),z['object']({'action':z['literal']('apply_delta'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'delta':PersonaLayerSchema['describe']('Structured\x20CURRENT-layer\x20delta\x20to\x20merge\x20(e.g.\x20a\x20confirmed\x20strategy-review\x20proposal).\x20'+'Server-guarded:\x20policy/overrides\x20are\x20rejected;\x20long_term\x20is\x20never\x20written;\x20arrays\x20union\x20with\x20existing\x20current\x20values.')})['strict'](),z['object']({'action':z['literal']('remove'),'scope':ScopeEnum,'account':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('strategy'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'role':RoleEnum['optional']()['describe']('Role\x20override;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20role.'),'strategy':z['array'](z['string']())['optional']()['describe']('Explicit\x20strategy\x20statements;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20strategy[].')})['strict'](),z['object']({'action':z['literal']('region_hint'),'propose':z['string']()['optional']()['describe']('An\x20address\x20string\x20to\x20PROPOSE\x20storing\x20as\x20the\x20local\x20delivery\x20address.\x20Returns\x20a\x20consent-gated\x20save\x20proposal\x20—\x20NEVER\x20auto-writes;\x20the\x20user\x20must\x20confirm\x20via\x20local_info_operation.')})['strict'](),z['object']({'action':z['literal']('distill'),'goal_id':z['string']()['describe']('Goal\x20id\x20(goal_…)\x20whose\x20memory\x20(outcome,\x20problems,\x20feedback,\x20objects)\x20is\x20distilled\x20into\x20a\x20CURRENT-layer\x20proposal.'),'network':z['enum'](['mainnet','testnet'])['optional']()['describe']('Network\x20the\x20goal\x20was\x20created\x20under.')})['strict']()]);export const PersonaOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'target_account':z['string']()['optional']()['describe']('The\x20account\x20the\x20persona\x20was\x20resolved\x20for\x20(explicit\x20account,\x20or\x20the\x20on-chain\x20default\x20account\x20when\x20omitted).'),'effective':EffectivePersonaSchema,'analyze_questions':z['array'](z['string']())['optional']()['describe']('Analyze-flow\x20defaults\x20(client\x20address\x20popover\x20\x22Analyze\x22\x20→\x20AI\x20dossier):\x20the\x20user\x27s\x20effective\x20key\x20follow-up\x20questions,\x20capped\x20at\x202\x20(higher-priority\x20persona\x20layer\x20first).\x20When\x20present,\x20these\x20REPLACE\x20the\x20generic\x20Analyze\x20follow-up\x20guidance.\x20Sourced\x20from\x20persona\x20layers\x27\x20analyze.key_questions;\x20industry\x20needs\x20still\x20provide\x20thematic\x20context.'),'context_text':z['string'](),'injection':z['record'](z['string'](),z['unknown']()),'controls':PersonaControlsSchema['optional']()['describe']('Static\x20catalog\x20of\x20editable\x20safety\x20controls:\x20overridable\x20rule\x20ids\x20(defaults/allowed),\x20hard-floor\x20locked\x20rules,\x20confirm\x20modes,\x20and\x20policy\x20key\x20paths.')})['strict'](),z['object']({'action':z['literal']('list'),'personas':z['array'](PersonaSchema),'defaults':z['array'](PersonaSchema)})['strict'](),z['object']({'action':z['literal']('set'),'persona':PersonaSchema,'line_count':z['number']()})['strict'](),z['object']({'action':z['literal']('analyze'),'analysis':PersonaAnalysisSchema})['strict'](),z['object']({'action':z['literal']('apply'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':z['array'](PersonaAnalysisSuggestionSchema)})['strict'](),z['object']({'action':z['literal']('sync'),'persona':PersonaSchema,'applied':PersonaLayerSchema,'effective':EffectivePersonaSchema})['strict'](),z['object']({'action':z['literal']('apply_delta'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':PersonaLayerSchema})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict'](),z['object']({'action':z['literal']('strategy'),'role':RoleEnum,'intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']()),'suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string'](),'target':z['string']()})['strict']()),'note':z['string']()['describe']('Empty\x20for\x20merchant;\x20explains\x20why\x20mapping\x20is\x20producer-only\x20for\x20other\x20roles.')})['strict'](),z['object']({'action':z['literal']('region_hint'),'hint':z['object']({'region':z['record'](z['string'](),z['unknown']())['describe']('Deterministic\x20region\x20skeleton\x20(mode/raw;\x20country/province/city\x20stay\x20AI-enriched).'),'source':z['literal']('local_info'),'raw':z['string']()})['strict']()['optional']()['describe']('Present\x20when\x20a\x20locally-stored\x20delivery\x20address\x20exists.'),'proposal':z['object']({'requires_user_consent':z['literal'](!![]),'raw':z['string'](),'region':z['record'](z['string'](),z['unknown']()),'review':z['string'](),'store_via':z['literal']('local_info_operation'),'info':z['object']({'name':z['string'](),'default':z['string']()})['strict']()})['strict']()['optional']()['describe']('Present\x20when\x20`propose`\x20was\x20given\x20—\x20a\x20consent-gated\x20save\x20proposal\x20(never\x20auto-written).'),'note':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('distill'),'summary':z['string']()['describe']('Human-readable\x20distillation\x20of\x20what\x20the\x20goal\x27s\x20memory\x20shows.'),'current_delta':PersonaLayerSchema['describe']('PROPOSED\x20current-layer\x20delta\x20(rules/preferences).\x20Never\x20auto-written.'),'evidence':z['object']({'goal_type':z['string'](),'stage':z['string'](),'outcome_success':z['boolean']()['optional'](),'objects_count':z['number'](),'problems_open':z['number'](),'problems_resolved':z['number'](),'feedback_positive':z['number'](),'feedback_negative':z['number'](),'duration_days':z['number']()['optional']()})['strict'](),'apply_via':z['string']()['describe']('The\x20exact\x20user-driven\x20write\x20path\x20(persona_operation\x20set/apply)\x20that\x20persists\x20the\x20delta\x20after\x20user\x20confirmation.'),'goal':GoalSummarySchema['describe']('The\x20distilled\x20goal\x27s\x20id/title/outcome\x20for\x20display.')})['strict']()]);
|
|
1
|
+
import{z}from'zod';import{JudgmentFragmentSchema}from'../../config/judgment.js';const IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail']),RoleEnum=z['enum'](['merchant','customer','demander','prospect','supplier','collaborator','arbitrator']),ScopeEnum=z['enum'](['system','account']),PersonaIdentitySchema=z['object']({'region':z['string']()['optional'](),'languages':z['array'](z['string']())['optional'](),'self_description':z['string']()['optional']()})['strict'](),OverrideValueEnum=z['enum'](['auto','prompt','block','warn']),PersonaPolicySchema=z['object']({'confirm':z['object']({'mode':z['enum'](['full','streamlined','quiet'])['optional'](),'batch_standard':z['boolean']()['optional'](),'session_remember':z['array'](z['string']())['optional'](),'intent_bypass':z['boolean']()['optional']()})['strict']()['optional'](),'budget':z['object']({'daily_wow':z['string']()['nullable']()['optional']()})['strict']()['optional'](),'allowlist':z['array'](z['string']())['optional'](),'audit':z['boolean']()['optional']()})['strict'](),TasteProfileSchema=z['object']({'materials':z['array'](z['string']())['optional'](),'colors':z['array'](z['string']())['optional'](),'styles':z['array'](z['string']())['optional'](),'tags':z['array'](z['string']())['optional'](),'brands':z['array'](z['string']())['optional'](),'avoid':z['array'](z['string']())['optional']()})['strict'](),ConsumptionProfileSchema=z['object']({'frequency':z['enum'](['rare','occasional','regular','frequent'])['optional'](),'price_band':z['enum'](['budget','mid','premium','luxury'])['optional'](),'decision_speed':z['enum'](['fast','deliberate','slow'])['optional'](),'channels':z['array'](z['string']())['optional'](),'repeat_orientation':z['enum'](['novelty','balanced','loyal'])['optional'](),'avg_order_range':z['string']()['optional'](),'notes':z['array'](z['string']())['optional']()})['strict'](),MerchantRoleStyleSchema=z['object']({'posture':z['enum'](['volume','balanced','margin'])['optional'](),'pricing_style':z['enum'](['competitive','value','premium','custom_quote'])['optional'](),'service_style':z['array'](z['string']())['optional'](),'communication':z['string']()['optional'](),'growth_focus':z['array'](z['string']())['optional']()})['strict'](),SupplierRoleStyleSchema=z['object']({'min_order':z['string']()['optional'](),'lead_time':z['string']()['optional'](),'settlement_terms':z['array'](z['string']())['optional'](),'categories':z['array'](z['string']())['optional'](),'capacity':z['string']()['optional']()})['strict'](),CollaboratorRoleStyleSchema=z['object']({'scope_discipline':z['enum'](['strict','balanced','flexible'])['optional'](),'notifications':z['enum'](['minimal','digest','realtime'])['optional'](),'working_hours':z['string']()['optional'](),'advance_style':z['array'](z['string']())['optional']()})['strict'](),ArbitratorRoleStyleSchema=z['object']({'case_types':z['array'](z['string']())['optional'](),'response_speed':z['enum'](['fast','standard','thorough'])['optional'](),'ruling_style':z['enum'](['concise','detailed'])['optional']()})['strict'](),DemanderRoleStyleSchema=z['object']({'award_weights':z['record'](z['string'](),z['number']())['optional'](),'pilot_budget':z['string']()['optional'](),'rfp_openness':z['enum'](['open','passport_gated','invite_only'])['optional'](),'decision_basis':z['array'](z['string']())['optional']()})['strict'](),RoleProfileSchema=z['object']({'tastes':TasteProfileSchema['optional'](),'consumption':ConsumptionProfileSchema['optional'](),'merchant':MerchantRoleStyleSchema['optional'](),'supplier':SupplierRoleStyleSchema['optional'](),'collaborator':CollaboratorRoleStyleSchema['optional'](),'arbitrator':ArbitratorRoleStyleSchema['optional'](),'demander':DemanderRoleStyleSchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional']()})['strict'](),RoleProfileMapSchema=z['object'](Object['fromEntries'](RoleEnum['options']['map'](a=>[a,RoleProfileSchema['optional']()])))['strict'](),PersonaLayerSchema=z['object']({'identity':PersonaIdentitySchema['optional'](),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'strategy':z['array'](z['string']())['optional'](),'rules':z['array'](z['string']())['optional'](),'requirements':z['array'](z['string']())['optional'](),'spec':z['string']()['optional'](),'overrides':z['record'](z['string'](),OverrideValueEnum)['optional'](),'policy':PersonaPolicySchema['optional'](),'profiles':RoleProfileMapSchema['optional'](),'analyze':z['object']({'key_questions':z['array'](z['string']())['max'](0x4)['describe']('The\x20user\x27s\x20key\x20follow-up\x20questions\x20for\x20the\x20Analyze\x20dossier\x20(up\x20to\x204\x20stored,\x202\x20effective\x20after\x20merge).')})['strict']()['optional'](),'judgment':JudgmentFragmentSchema['optional']()})['strict'](),PersonaControlsSchema=z['object']({'confirm_modes':z['array'](z['string']()),'overrides':z['array'](z['object']({'id':z['string'](),'default':OverrideValueEnum,'allowed':z['array'](OverrideValueEnum),'surface':z['enum'](['gate','client'])['optional']()})['strict']()),'locked_rules':z['array'](z['object']({'id':z['string'](),'level':z['string']()})['strict']()),'policy_keys':z['array'](z['string']())})['strict'](),PersonaSchema=z['object']({'version':z['number'](),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'long_term':PersonaLayerSchema,'current':PersonaLayerSchema,'updated_at':z['number']()})['strict'](),PersonaSourceSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'part':z['enum'](['long_term','current'])})['strict'](),EffectivePersonaSchema=z['object']({'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum,'industries':z['array'](IndustryEnum),'layer':PersonaLayerSchema,'sources':z['array'](PersonaSourceSchema)})['strict'](),PersonaAnalysisSuggestionSchema=z['object']({'field':z['string'](),'value':z['unknown'](),'reason':z['string']()})['strict'](),PersonaAnalysisSchema=z['object']({'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum),'preferences':z['record'](z['string'](),z['unknown']()),'requirements':z['array'](z['string']()),'rules':z['array'](z['string']()),'suggestions':z['array'](PersonaAnalysisSuggestionSchema),'confidence':z['number']()})['strict'](),GoalSummarySchema=z['object']({'id':z['string'](),'title':z['string'](),'outcome_success':z['boolean']()['optional']()})['strict']();export const PersonaOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'industry':IndustryEnum['optional'](),'role':RoleEnum['optional']()})['strict'](),z['object']({'action':z['literal']('list')})['strict'](),z['object']({'action':z['literal']('set'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum,'industries':z['array'](IndustryEnum)['default']([]),'long_term':PersonaLayerSchema['optional'](),'current':PersonaLayerSchema['optional']()})['strict'](),z['object']({'action':z['literal']('analyze'),'context':z['string']()['describe']('Free-form\x20context:\x20website\x20URL,\x20experience\x20summary,\x20self\x20description,\x20goal.')})['strict'](),z['object']({'action':z['literal']('apply'),'context':z['string']()['describe']('Free-form\x20context\x20whose\x20extracted\x20signals\x20feed\x20the\x20CURRENT\x20layer.'),'scope':ScopeEnum,'account':z['string']()['optional'](),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'mode':z['enum'](['merge','replace'])['optional']()['describe']('merge\x20(default)\x20unions\x20strategy/rules/requirements\x20into\x20current;\x20replace\x20discards\x20the\x20existing\x20current\x20layer.')})['strict'](),z['object']({'action':z['literal']('sync'),'account':z['string']()['optional']()['describe']('Account\x20whose\x20behavior\x20(experience\x20layer)\x20is\x20merged\x20into\x20its\x20CURRENT\x20layer.\x20Omit\x20=\x20system\x20persona.')})['strict'](),z['object']({'action':z['literal']('apply_delta'),'scope':ScopeEnum,'account':z['string']()['optional']()['describe']('Required\x20when\x20scope=account.'),'role':RoleEnum['optional'](),'industries':z['array'](IndustryEnum)['optional'](),'delta':PersonaLayerSchema['describe']('Structured\x20CURRENT-layer\x20delta\x20to\x20merge\x20(e.g.\x20a\x20confirmed\x20strategy-review\x20proposal).\x20'+'Server-guarded:\x20policy/overrides\x20are\x20rejected;\x20long_term\x20is\x20never\x20written;\x20arrays\x20union\x20with\x20existing\x20current\x20values.')})['strict'](),z['object']({'action':z['literal']('remove'),'scope':ScopeEnum,'account':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('strategy'),'account':z['string']()['optional']()['describe']('Chain\x20account\x20address;\x20omitted\x20=\x20the\x20on-chain\x20DEFAULT\x20account\x20(name=\x27\x27),\x20falling\x20back\x20to\x20the\x20system\x20persona\x20when\x20no\x20default\x20account\x20exists.'),'role':RoleEnum['optional']()['describe']('Role\x20override;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20role.'),'strategy':z['array'](z['string']())['optional']()['describe']('Explicit\x20strategy\x20statements;\x20defaults\x20to\x20the\x20effective\x20persona\x27s\x20strategy[].')})['strict'](),z['object']({'action':z['literal']('region_hint'),'propose':z['string']()['optional']()['describe']('An\x20address\x20string\x20to\x20PROPOSE\x20storing\x20as\x20the\x20local\x20delivery\x20address.\x20Returns\x20a\x20consent-gated\x20save\x20proposal\x20—\x20NEVER\x20auto-writes;\x20the\x20user\x20must\x20confirm\x20via\x20local_info_operation.')})['strict'](),z['object']({'action':z['literal']('distill'),'goal_id':z['string']()['describe']('Goal\x20id\x20(goal_…)\x20whose\x20memory\x20(outcome,\x20problems,\x20feedback,\x20objects)\x20is\x20distilled\x20into\x20a\x20CURRENT-layer\x20proposal.'),'network':z['enum'](['mainnet','testnet'])['optional']()['describe']('Network\x20the\x20goal\x20was\x20created\x20under.')})['strict']()]);export const PersonaOperationOutputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('get'),'target_account':z['string']()['optional']()['describe']('The\x20account\x20the\x20persona\x20was\x20resolved\x20for\x20(explicit\x20account,\x20or\x20the\x20on-chain\x20default\x20account\x20when\x20omitted).'),'effective':EffectivePersonaSchema,'analyze_questions':z['array'](z['string']())['optional']()['describe']('Analyze-flow\x20defaults\x20(client\x20address\x20popover\x20\x22Analyze\x22\x20→\x20AI\x20dossier):\x20the\x20user\x27s\x20effective\x20key\x20follow-up\x20questions,\x20capped\x20at\x202\x20(higher-priority\x20persona\x20layer\x20first).\x20When\x20present,\x20these\x20REPLACE\x20the\x20generic\x20Analyze\x20follow-up\x20guidance.\x20Sourced\x20from\x20persona\x20layers\x27\x20analyze.key_questions;\x20industry\x20needs\x20still\x20provide\x20thematic\x20context.'),'context_text':z['string'](),'injection':z['record'](z['string'](),z['unknown']()),'controls':PersonaControlsSchema['optional']()['describe']('Static\x20catalog\x20of\x20editable\x20safety\x20controls:\x20overridable\x20rule\x20ids\x20(defaults/allowed),\x20hard-floor\x20locked\x20rules,\x20confirm\x20modes,\x20and\x20policy\x20key\x20paths.')})['strict'](),z['object']({'action':z['literal']('list'),'personas':z['array'](PersonaSchema),'defaults':z['array'](PersonaSchema)})['strict'](),z['object']({'action':z['literal']('set'),'persona':PersonaSchema,'line_count':z['number']()})['strict'](),z['object']({'action':z['literal']('analyze'),'analysis':PersonaAnalysisSchema})['strict'](),z['object']({'action':z['literal']('apply'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':z['array'](PersonaAnalysisSuggestionSchema)})['strict'](),z['object']({'action':z['literal']('sync'),'persona':PersonaSchema,'applied':PersonaLayerSchema,'effective':EffectivePersonaSchema})['strict'](),z['object']({'action':z['literal']('apply_delta'),'persona':PersonaSchema,'effective':EffectivePersonaSchema,'applied':PersonaLayerSchema})['strict'](),z['object']({'action':z['literal']('remove'),'removed':z['boolean']()})['strict'](),z['object']({'action':z['literal']('strategy'),'role':RoleEnum,'intents':z['array'](z['object']({'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'metrics':z['array'](z['string']()),'levers':z['array'](z['enum'](['discount','reward','buy_guard','machine_design'])),'target':z['string']()})['strict']()),'suggestions':z['array'](z['object']({'lever':z['enum'](['discount','reward','buy_guard','machine_design']),'objective':z['enum'](['sales_priority','profit_priority','buyer_screening','gross_margin_control']),'action':z['string'](),'target':z['string']()})['strict']()),'note':z['string']()['describe']('Empty\x20for\x20merchant;\x20explains\x20why\x20mapping\x20is\x20producer-only\x20for\x20other\x20roles.')})['strict'](),z['object']({'action':z['literal']('region_hint'),'hint':z['object']({'region':z['record'](z['string'](),z['unknown']())['describe']('Deterministic\x20region\x20skeleton\x20(mode/raw;\x20country/province/city\x20stay\x20AI-enriched).'),'source':z['literal']('local_info'),'raw':z['string']()})['strict']()['optional']()['describe']('Present\x20when\x20a\x20locally-stored\x20delivery\x20address\x20exists.'),'proposal':z['object']({'requires_user_consent':z['literal'](!![]),'raw':z['string'](),'region':z['record'](z['string'](),z['unknown']()),'review':z['string'](),'store_via':z['literal']('local_info_operation'),'info':z['object']({'name':z['string'](),'default':z['string']()})['strict']()})['strict']()['optional']()['describe']('Present\x20when\x20`propose`\x20was\x20given\x20—\x20a\x20consent-gated\x20save\x20proposal\x20(never\x20auto-written).'),'note':z['string']()['optional']()})['strict'](),z['object']({'action':z['literal']('distill'),'summary':z['string']()['describe']('Human-readable\x20distillation\x20of\x20what\x20the\x20goal\x27s\x20memory\x20shows.'),'current_delta':PersonaLayerSchema['describe']('PROPOSED\x20current-layer\x20delta\x20(rules/preferences).\x20Never\x20auto-written.'),'evidence':z['object']({'goal_type':z['string'](),'stage':z['string'](),'outcome_success':z['boolean']()['optional'](),'objects_count':z['number'](),'problems_open':z['number'](),'problems_resolved':z['number'](),'feedback_positive':z['number'](),'feedback_negative':z['number'](),'duration_days':z['number']()['optional']()})['strict'](),'apply_via':z['string']()['describe']('The\x20exact\x20user-driven\x20write\x20path\x20(persona_operation\x20set/apply)\x20that\x20persists\x20the\x20delta\x20after\x20user\x20confirmation.'),'goal':GoalSummarySchema['describe']('The\x20distilled\x20goal\x27s\x20id/title/outcome\x20for\x20display.')})['strict']()]);
|
|
@@ -192,10 +192,10 @@ export declare const OnchainTopologyQuerySchema: z.ZodObject<{
|
|
|
192
192
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
193
193
|
analyze: z.ZodOptional<z.ZodBoolean>;
|
|
194
194
|
analyzer_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
195
|
+
game: "game";
|
|
195
196
|
risk: "risk";
|
|
196
197
|
arbitrage: "arbitrage";
|
|
197
198
|
opportunity: "opportunity";
|
|
198
|
-
game: "game";
|
|
199
199
|
}>>>;
|
|
200
200
|
only_analyzers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
201
201
|
include_raw: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -398,10 +398,10 @@ export declare const BI_QUERY_OPERATIONS: readonly [z.ZodObject<{
|
|
|
398
398
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
399
399
|
analyze: z.ZodOptional<z.ZodBoolean>;
|
|
400
400
|
analyzer_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
401
|
+
game: "game";
|
|
401
402
|
risk: "risk";
|
|
402
403
|
arbitrage: "arbitrage";
|
|
403
404
|
opportunity: "opportunity";
|
|
404
|
-
game: "game";
|
|
405
405
|
}>>>;
|
|
406
406
|
only_analyzers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
407
407
|
include_raw: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -464,6 +464,7 @@ export declare const ReverseMapResultSchema: z.ZodObject<{
|
|
|
464
464
|
keyRisks: z.ZodArray<z.ZodString>;
|
|
465
465
|
protections: z.ZodArray<z.ZodString>;
|
|
466
466
|
missingProtections: z.ZodArray<z.ZodString>;
|
|
467
|
+
notices: z.ZodArray<z.ZodString>;
|
|
467
468
|
}, z.core.$strict>;
|
|
468
469
|
gameTheoryAnalysis: z.ZodObject<{
|
|
469
470
|
merchantIncentives: z.ZodArray<z.ZodString>;
|
|
@@ -569,9 +570,9 @@ export declare const ParticipationRadarResultSchema: z.ZodObject<{
|
|
|
569
570
|
anomaly: "anomaly";
|
|
570
571
|
}>;
|
|
571
572
|
severity: z.ZodEnum<{
|
|
573
|
+
high: "high";
|
|
572
574
|
info: "info";
|
|
573
575
|
critical: "critical";
|
|
574
|
-
warning: "warning";
|
|
575
576
|
}>;
|
|
576
577
|
title: z.ZodString;
|
|
577
578
|
message: z.ZodString;
|
|
@@ -680,9 +681,9 @@ export declare const ParticipationRadarResultSchema: z.ZodObject<{
|
|
|
680
681
|
anomaly: "anomaly";
|
|
681
682
|
}>;
|
|
682
683
|
severity: z.ZodEnum<{
|
|
684
|
+
high: "high";
|
|
683
685
|
info: "info";
|
|
684
686
|
critical: "critical";
|
|
685
|
-
warning: "warning";
|
|
686
687
|
}>;
|
|
687
688
|
title: z.ZodString;
|
|
688
689
|
message: z.ZodString;
|
|
@@ -852,8 +853,8 @@ export declare const FacetSignalSchema: z.ZodObject<{
|
|
|
852
853
|
}, z.core.$strict>;
|
|
853
854
|
export declare const FacetScoreRefSchema: z.ZodObject<{
|
|
854
855
|
evaluation: z.ZodEnum<{
|
|
855
|
-
risk: "risk";
|
|
856
856
|
trust: "trust";
|
|
857
|
+
risk: "risk";
|
|
857
858
|
}>;
|
|
858
859
|
rule_id: z.ZodString;
|
|
859
860
|
}, z.core.$strict>;
|
|
@@ -882,14 +883,14 @@ export declare const FacetResultSchema: z.ZodObject<{
|
|
|
882
883
|
label: z.ZodString;
|
|
883
884
|
question: z.ZodString;
|
|
884
885
|
state: z.ZodEnum<{
|
|
885
|
-
empty: "empty";
|
|
886
886
|
present: "present";
|
|
887
|
+
empty: "empty";
|
|
887
888
|
gap: "gap";
|
|
888
889
|
}>;
|
|
889
890
|
scores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
890
891
|
evaluation: z.ZodEnum<{
|
|
891
|
-
risk: "risk";
|
|
892
892
|
trust: "trust";
|
|
893
|
+
risk: "risk";
|
|
893
894
|
}>;
|
|
894
895
|
rule_id: z.ZodString;
|
|
895
896
|
}, z.core.$strict>>>;
|
|
@@ -947,14 +948,14 @@ export declare const FacetsBlockSchema: z.ZodObject<{
|
|
|
947
948
|
label: z.ZodString;
|
|
948
949
|
question: z.ZodString;
|
|
949
950
|
state: z.ZodEnum<{
|
|
950
|
-
empty: "empty";
|
|
951
951
|
present: "present";
|
|
952
|
+
empty: "empty";
|
|
952
953
|
gap: "gap";
|
|
953
954
|
}>;
|
|
954
955
|
scores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
955
956
|
evaluation: z.ZodEnum<{
|
|
956
|
-
risk: "risk";
|
|
957
957
|
trust: "trust";
|
|
958
|
+
risk: "risk";
|
|
958
959
|
}>;
|
|
959
960
|
rule_id: z.ZodString;
|
|
960
961
|
}, z.core.$strict>>>;
|
|
@@ -1001,6 +1002,67 @@ export declare const FacetsBlockSchema: z.ZodObject<{
|
|
|
1001
1002
|
threshold: z.ZodOptional<z.ZodNumber>;
|
|
1002
1003
|
}, z.core.$strict>>;
|
|
1003
1004
|
}, z.core.$strict>;
|
|
1005
|
+
export declare const ExplorationQuestionSchema: z.ZodObject<{
|
|
1006
|
+
id: z.ZodString;
|
|
1007
|
+
kind: z.ZodEnum<{
|
|
1008
|
+
verification: "verification";
|
|
1009
|
+
data_gap: "data_gap";
|
|
1010
|
+
coverage: "coverage";
|
|
1011
|
+
}>;
|
|
1012
|
+
question: z.ZodString;
|
|
1013
|
+
resolves_with: z.ZodArray<z.ZodString>;
|
|
1014
|
+
source: z.ZodString;
|
|
1015
|
+
}, z.core.$strict>;
|
|
1016
|
+
export declare const ExplorationBlockSchema: z.ZodObject<{
|
|
1017
|
+
open_questions: z.ZodArray<z.ZodObject<{
|
|
1018
|
+
id: z.ZodString;
|
|
1019
|
+
kind: z.ZodEnum<{
|
|
1020
|
+
verification: "verification";
|
|
1021
|
+
data_gap: "data_gap";
|
|
1022
|
+
coverage: "coverage";
|
|
1023
|
+
}>;
|
|
1024
|
+
question: z.ZodString;
|
|
1025
|
+
resolves_with: z.ZodArray<z.ZodString>;
|
|
1026
|
+
source: z.ZodString;
|
|
1027
|
+
}, z.core.$strict>>;
|
|
1028
|
+
}, z.core.$strict>;
|
|
1029
|
+
export declare const SynthesisRoleVerdictSchema: z.ZodObject<{
|
|
1030
|
+
role: z.ZodString;
|
|
1031
|
+
level: z.ZodEnum<{
|
|
1032
|
+
low: "low";
|
|
1033
|
+
high: "high";
|
|
1034
|
+
info: "info";
|
|
1035
|
+
critical: "critical";
|
|
1036
|
+
medium: "medium";
|
|
1037
|
+
}>;
|
|
1038
|
+
drivers: z.ZodArray<z.ZodString>;
|
|
1039
|
+
open_questions: z.ZodArray<z.ZodString>;
|
|
1040
|
+
posture: z.ZodEnum<{
|
|
1041
|
+
avoid: "avoid";
|
|
1042
|
+
neutral: "neutral";
|
|
1043
|
+
prefer: "prefer";
|
|
1044
|
+
}>;
|
|
1045
|
+
}, z.core.$strict>;
|
|
1046
|
+
export declare const SynthesisBlockSchema: z.ZodObject<{
|
|
1047
|
+
per_role: z.ZodArray<z.ZodObject<{
|
|
1048
|
+
role: z.ZodString;
|
|
1049
|
+
level: z.ZodEnum<{
|
|
1050
|
+
low: "low";
|
|
1051
|
+
high: "high";
|
|
1052
|
+
info: "info";
|
|
1053
|
+
critical: "critical";
|
|
1054
|
+
medium: "medium";
|
|
1055
|
+
}>;
|
|
1056
|
+
drivers: z.ZodArray<z.ZodString>;
|
|
1057
|
+
open_questions: z.ZodArray<z.ZodString>;
|
|
1058
|
+
posture: z.ZodEnum<{
|
|
1059
|
+
avoid: "avoid";
|
|
1060
|
+
neutral: "neutral";
|
|
1061
|
+
prefer: "prefer";
|
|
1062
|
+
}>;
|
|
1063
|
+
}, z.core.$strict>>;
|
|
1064
|
+
basis: z.ZodString;
|
|
1065
|
+
}, z.core.$strict>;
|
|
1004
1066
|
export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
1005
1067
|
action: z.ZodLiteral<"onchain_topology">;
|
|
1006
1068
|
seed: z.ZodString;
|
|
@@ -1080,7 +1142,6 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1080
1142
|
event_full: "event_full";
|
|
1081
1143
|
event_degraded: "event_degraded";
|
|
1082
1144
|
}>;
|
|
1083
|
-
evidence: z.ZodString;
|
|
1084
1145
|
key: z.ZodOptional<z.ZodString>;
|
|
1085
1146
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
1086
1147
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -1119,10 +1180,10 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1119
1180
|
findings: z.ZodArray<z.ZodObject<{
|
|
1120
1181
|
id: z.ZodString;
|
|
1121
1182
|
kind: z.ZodEnum<{
|
|
1183
|
+
game: "game";
|
|
1122
1184
|
risk: "risk";
|
|
1123
1185
|
arbitrage: "arbitrage";
|
|
1124
1186
|
opportunity: "opportunity";
|
|
1125
|
-
game: "game";
|
|
1126
1187
|
}>;
|
|
1127
1188
|
severity: z.ZodEnum<{
|
|
1128
1189
|
low: "low";
|
|
@@ -1146,6 +1207,42 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1146
1207
|
roles: z.ZodArray<z.ZodString>;
|
|
1147
1208
|
detail: z.ZodString;
|
|
1148
1209
|
suggestion: z.ZodString;
|
|
1210
|
+
amounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1211
|
+
key: z.ZodString;
|
|
1212
|
+
label: z.ZodString;
|
|
1213
|
+
raw: z.ZodString;
|
|
1214
|
+
coin_type: z.ZodOptional<z.ZodString>;
|
|
1215
|
+
}, z.core.$strict>>>;
|
|
1216
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1217
|
+
exposure: z.ZodOptional<z.ZodObject<{
|
|
1218
|
+
lossParties: z.ZodArray<z.ZodObject<{
|
|
1219
|
+
role: z.ZodString;
|
|
1220
|
+
basis: z.ZodString;
|
|
1221
|
+
}, z.core.$strict>>;
|
|
1222
|
+
gainPaths: z.ZodArray<z.ZodObject<{
|
|
1223
|
+
role: z.ZodString;
|
|
1224
|
+
path: z.ZodString;
|
|
1225
|
+
viability: z.ZodEnum<{
|
|
1226
|
+
conditional: "conditional";
|
|
1227
|
+
viable: "viable";
|
|
1228
|
+
blocked: "blocked";
|
|
1229
|
+
unverifiable: "unverifiable";
|
|
1230
|
+
}>;
|
|
1231
|
+
gate: z.ZodString;
|
|
1232
|
+
}, z.core.$strict>>;
|
|
1233
|
+
verdict: z.ZodEnum<{
|
|
1234
|
+
confirmed: "confirmed";
|
|
1235
|
+
downgraded: "downgraded";
|
|
1236
|
+
"pending-disclosure": "pending-disclosure";
|
|
1237
|
+
}>;
|
|
1238
|
+
baseSeverity: z.ZodOptional<z.ZodEnum<{
|
|
1239
|
+
low: "low";
|
|
1240
|
+
high: "high";
|
|
1241
|
+
info: "info";
|
|
1242
|
+
critical: "critical";
|
|
1243
|
+
medium: "medium";
|
|
1244
|
+
}>>;
|
|
1245
|
+
}, z.core.$strict>>;
|
|
1149
1246
|
interest: z.ZodOptional<z.ZodObject<{
|
|
1150
1247
|
role: z.ZodString;
|
|
1151
1248
|
observer: z.ZodString;
|
|
@@ -1292,9 +1389,11 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1292
1389
|
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1293
1390
|
criterion: z.ZodString;
|
|
1294
1391
|
severity: z.ZodEnum<{
|
|
1392
|
+
low: "low";
|
|
1393
|
+
high: "high";
|
|
1295
1394
|
info: "info";
|
|
1296
1395
|
critical: "critical";
|
|
1297
|
-
|
|
1396
|
+
medium: "medium";
|
|
1298
1397
|
}>;
|
|
1299
1398
|
message: z.ZodString;
|
|
1300
1399
|
deduction: z.ZodNumber;
|
|
@@ -1349,9 +1448,11 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1349
1448
|
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1350
1449
|
criterion: z.ZodString;
|
|
1351
1450
|
severity: z.ZodEnum<{
|
|
1451
|
+
low: "low";
|
|
1452
|
+
high: "high";
|
|
1352
1453
|
info: "info";
|
|
1353
1454
|
critical: "critical";
|
|
1354
|
-
|
|
1455
|
+
medium: "medium";
|
|
1355
1456
|
}>;
|
|
1356
1457
|
message: z.ZodString;
|
|
1357
1458
|
deduction: z.ZodNumber;
|
|
@@ -1367,8 +1468,8 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1367
1468
|
gloss: z.ZodString;
|
|
1368
1469
|
required: z.ZodBoolean;
|
|
1369
1470
|
state: z.ZodEnum<{
|
|
1370
|
-
empty: "empty";
|
|
1371
1471
|
present: "present";
|
|
1472
|
+
empty: "empty";
|
|
1372
1473
|
gap: "gap";
|
|
1373
1474
|
}>;
|
|
1374
1475
|
facts: z.ZodArray<z.ZodString>;
|
|
@@ -1394,14 +1495,14 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1394
1495
|
label: z.ZodString;
|
|
1395
1496
|
question: z.ZodString;
|
|
1396
1497
|
state: z.ZodEnum<{
|
|
1397
|
-
empty: "empty";
|
|
1398
1498
|
present: "present";
|
|
1499
|
+
empty: "empty";
|
|
1399
1500
|
gap: "gap";
|
|
1400
1501
|
}>;
|
|
1401
1502
|
scores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1402
1503
|
evaluation: z.ZodEnum<{
|
|
1403
|
-
risk: "risk";
|
|
1404
1504
|
trust: "trust";
|
|
1505
|
+
risk: "risk";
|
|
1405
1506
|
}>;
|
|
1406
1507
|
rule_id: z.ZodString;
|
|
1407
1508
|
}, z.core.$strict>>>;
|
|
@@ -1558,6 +1659,39 @@ export declare const OnchainTopologyResultSchema: z.ZodObject<{
|
|
|
1558
1659
|
event_pages: z.ZodOptional<z.ZodBoolean>;
|
|
1559
1660
|
}, z.core.$strict>;
|
|
1560
1661
|
data_gaps: z.ZodArray<z.ZodString>;
|
|
1662
|
+
exploration: z.ZodOptional<z.ZodObject<{
|
|
1663
|
+
open_questions: z.ZodArray<z.ZodObject<{
|
|
1664
|
+
id: z.ZodString;
|
|
1665
|
+
kind: z.ZodEnum<{
|
|
1666
|
+
verification: "verification";
|
|
1667
|
+
data_gap: "data_gap";
|
|
1668
|
+
coverage: "coverage";
|
|
1669
|
+
}>;
|
|
1670
|
+
question: z.ZodString;
|
|
1671
|
+
resolves_with: z.ZodArray<z.ZodString>;
|
|
1672
|
+
source: z.ZodString;
|
|
1673
|
+
}, z.core.$strict>>;
|
|
1674
|
+
}, z.core.$strict>>;
|
|
1675
|
+
synthesis: z.ZodOptional<z.ZodObject<{
|
|
1676
|
+
per_role: z.ZodArray<z.ZodObject<{
|
|
1677
|
+
role: z.ZodString;
|
|
1678
|
+
level: z.ZodEnum<{
|
|
1679
|
+
low: "low";
|
|
1680
|
+
high: "high";
|
|
1681
|
+
info: "info";
|
|
1682
|
+
critical: "critical";
|
|
1683
|
+
medium: "medium";
|
|
1684
|
+
}>;
|
|
1685
|
+
drivers: z.ZodArray<z.ZodString>;
|
|
1686
|
+
open_questions: z.ZodArray<z.ZodString>;
|
|
1687
|
+
posture: z.ZodEnum<{
|
|
1688
|
+
avoid: "avoid";
|
|
1689
|
+
neutral: "neutral";
|
|
1690
|
+
prefer: "prefer";
|
|
1691
|
+
}>;
|
|
1692
|
+
}, z.core.$strict>>;
|
|
1693
|
+
basis: z.ZodString;
|
|
1694
|
+
}, z.core.$strict>>;
|
|
1561
1695
|
summary: z.ZodString;
|
|
1562
1696
|
}, z.core.$strict>;
|
|
1563
1697
|
export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
@@ -1617,6 +1751,7 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
1617
1751
|
keyRisks: z.ZodArray<z.ZodString>;
|
|
1618
1752
|
protections: z.ZodArray<z.ZodString>;
|
|
1619
1753
|
missingProtections: z.ZodArray<z.ZodString>;
|
|
1754
|
+
notices: z.ZodArray<z.ZodString>;
|
|
1620
1755
|
}, z.core.$strict>;
|
|
1621
1756
|
gameTheoryAnalysis: z.ZodObject<{
|
|
1622
1757
|
merchantIncentives: z.ZodArray<z.ZodString>;
|
|
@@ -1724,9 +1859,9 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
1724
1859
|
anomaly: "anomaly";
|
|
1725
1860
|
}>;
|
|
1726
1861
|
severity: z.ZodEnum<{
|
|
1862
|
+
high: "high";
|
|
1727
1863
|
info: "info";
|
|
1728
1864
|
critical: "critical";
|
|
1729
|
-
warning: "warning";
|
|
1730
1865
|
}>;
|
|
1731
1866
|
title: z.ZodString;
|
|
1732
1867
|
message: z.ZodString;
|
|
@@ -1835,9 +1970,9 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
1835
1970
|
anomaly: "anomaly";
|
|
1836
1971
|
}>;
|
|
1837
1972
|
severity: z.ZodEnum<{
|
|
1973
|
+
high: "high";
|
|
1838
1974
|
info: "info";
|
|
1839
1975
|
critical: "critical";
|
|
1840
|
-
warning: "warning";
|
|
1841
1976
|
}>;
|
|
1842
1977
|
title: z.ZodString;
|
|
1843
1978
|
message: z.ZodString;
|
|
@@ -2078,7 +2213,6 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2078
2213
|
event_full: "event_full";
|
|
2079
2214
|
event_degraded: "event_degraded";
|
|
2080
2215
|
}>;
|
|
2081
|
-
evidence: z.ZodString;
|
|
2082
2216
|
key: z.ZodOptional<z.ZodString>;
|
|
2083
2217
|
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
2084
2218
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -2117,10 +2251,10 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2117
2251
|
findings: z.ZodArray<z.ZodObject<{
|
|
2118
2252
|
id: z.ZodString;
|
|
2119
2253
|
kind: z.ZodEnum<{
|
|
2254
|
+
game: "game";
|
|
2120
2255
|
risk: "risk";
|
|
2121
2256
|
arbitrage: "arbitrage";
|
|
2122
2257
|
opportunity: "opportunity";
|
|
2123
|
-
game: "game";
|
|
2124
2258
|
}>;
|
|
2125
2259
|
severity: z.ZodEnum<{
|
|
2126
2260
|
low: "low";
|
|
@@ -2144,6 +2278,42 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2144
2278
|
roles: z.ZodArray<z.ZodString>;
|
|
2145
2279
|
detail: z.ZodString;
|
|
2146
2280
|
suggestion: z.ZodString;
|
|
2281
|
+
amounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2282
|
+
key: z.ZodString;
|
|
2283
|
+
label: z.ZodString;
|
|
2284
|
+
raw: z.ZodString;
|
|
2285
|
+
coin_type: z.ZodOptional<z.ZodString>;
|
|
2286
|
+
}, z.core.$strict>>>;
|
|
2287
|
+
objects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2288
|
+
exposure: z.ZodOptional<z.ZodObject<{
|
|
2289
|
+
lossParties: z.ZodArray<z.ZodObject<{
|
|
2290
|
+
role: z.ZodString;
|
|
2291
|
+
basis: z.ZodString;
|
|
2292
|
+
}, z.core.$strict>>;
|
|
2293
|
+
gainPaths: z.ZodArray<z.ZodObject<{
|
|
2294
|
+
role: z.ZodString;
|
|
2295
|
+
path: z.ZodString;
|
|
2296
|
+
viability: z.ZodEnum<{
|
|
2297
|
+
conditional: "conditional";
|
|
2298
|
+
viable: "viable";
|
|
2299
|
+
blocked: "blocked";
|
|
2300
|
+
unverifiable: "unverifiable";
|
|
2301
|
+
}>;
|
|
2302
|
+
gate: z.ZodString;
|
|
2303
|
+
}, z.core.$strict>>;
|
|
2304
|
+
verdict: z.ZodEnum<{
|
|
2305
|
+
confirmed: "confirmed";
|
|
2306
|
+
downgraded: "downgraded";
|
|
2307
|
+
"pending-disclosure": "pending-disclosure";
|
|
2308
|
+
}>;
|
|
2309
|
+
baseSeverity: z.ZodOptional<z.ZodEnum<{
|
|
2310
|
+
low: "low";
|
|
2311
|
+
high: "high";
|
|
2312
|
+
info: "info";
|
|
2313
|
+
critical: "critical";
|
|
2314
|
+
medium: "medium";
|
|
2315
|
+
}>>;
|
|
2316
|
+
}, z.core.$strict>>;
|
|
2147
2317
|
interest: z.ZodOptional<z.ZodObject<{
|
|
2148
2318
|
role: z.ZodString;
|
|
2149
2319
|
observer: z.ZodString;
|
|
@@ -2290,9 +2460,11 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2290
2460
|
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2291
2461
|
criterion: z.ZodString;
|
|
2292
2462
|
severity: z.ZodEnum<{
|
|
2463
|
+
low: "low";
|
|
2464
|
+
high: "high";
|
|
2293
2465
|
info: "info";
|
|
2294
2466
|
critical: "critical";
|
|
2295
|
-
|
|
2467
|
+
medium: "medium";
|
|
2296
2468
|
}>;
|
|
2297
2469
|
message: z.ZodString;
|
|
2298
2470
|
deduction: z.ZodNumber;
|
|
@@ -2347,9 +2519,11 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2347
2519
|
findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2348
2520
|
criterion: z.ZodString;
|
|
2349
2521
|
severity: z.ZodEnum<{
|
|
2522
|
+
low: "low";
|
|
2523
|
+
high: "high";
|
|
2350
2524
|
info: "info";
|
|
2351
2525
|
critical: "critical";
|
|
2352
|
-
|
|
2526
|
+
medium: "medium";
|
|
2353
2527
|
}>;
|
|
2354
2528
|
message: z.ZodString;
|
|
2355
2529
|
deduction: z.ZodNumber;
|
|
@@ -2365,8 +2539,8 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2365
2539
|
gloss: z.ZodString;
|
|
2366
2540
|
required: z.ZodBoolean;
|
|
2367
2541
|
state: z.ZodEnum<{
|
|
2368
|
-
empty: "empty";
|
|
2369
2542
|
present: "present";
|
|
2543
|
+
empty: "empty";
|
|
2370
2544
|
gap: "gap";
|
|
2371
2545
|
}>;
|
|
2372
2546
|
facts: z.ZodArray<z.ZodString>;
|
|
@@ -2392,14 +2566,14 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2392
2566
|
label: z.ZodString;
|
|
2393
2567
|
question: z.ZodString;
|
|
2394
2568
|
state: z.ZodEnum<{
|
|
2395
|
-
empty: "empty";
|
|
2396
2569
|
present: "present";
|
|
2570
|
+
empty: "empty";
|
|
2397
2571
|
gap: "gap";
|
|
2398
2572
|
}>;
|
|
2399
2573
|
scores: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2400
2574
|
evaluation: z.ZodEnum<{
|
|
2401
|
-
risk: "risk";
|
|
2402
2575
|
trust: "trust";
|
|
2576
|
+
risk: "risk";
|
|
2403
2577
|
}>;
|
|
2404
2578
|
rule_id: z.ZodString;
|
|
2405
2579
|
}, z.core.$strict>>>;
|
|
@@ -2556,6 +2730,39 @@ export declare const BI_QUERY_RESULT_MEMBERS: readonly [z.ZodObject<{
|
|
|
2556
2730
|
event_pages: z.ZodOptional<z.ZodBoolean>;
|
|
2557
2731
|
}, z.core.$strict>;
|
|
2558
2732
|
data_gaps: z.ZodArray<z.ZodString>;
|
|
2733
|
+
exploration: z.ZodOptional<z.ZodObject<{
|
|
2734
|
+
open_questions: z.ZodArray<z.ZodObject<{
|
|
2735
|
+
id: z.ZodString;
|
|
2736
|
+
kind: z.ZodEnum<{
|
|
2737
|
+
verification: "verification";
|
|
2738
|
+
data_gap: "data_gap";
|
|
2739
|
+
coverage: "coverage";
|
|
2740
|
+
}>;
|
|
2741
|
+
question: z.ZodString;
|
|
2742
|
+
resolves_with: z.ZodArray<z.ZodString>;
|
|
2743
|
+
source: z.ZodString;
|
|
2744
|
+
}, z.core.$strict>>;
|
|
2745
|
+
}, z.core.$strict>>;
|
|
2746
|
+
synthesis: z.ZodOptional<z.ZodObject<{
|
|
2747
|
+
per_role: z.ZodArray<z.ZodObject<{
|
|
2748
|
+
role: z.ZodString;
|
|
2749
|
+
level: z.ZodEnum<{
|
|
2750
|
+
low: "low";
|
|
2751
|
+
high: "high";
|
|
2752
|
+
info: "info";
|
|
2753
|
+
critical: "critical";
|
|
2754
|
+
medium: "medium";
|
|
2755
|
+
}>;
|
|
2756
|
+
drivers: z.ZodArray<z.ZodString>;
|
|
2757
|
+
open_questions: z.ZodArray<z.ZodString>;
|
|
2758
|
+
posture: z.ZodEnum<{
|
|
2759
|
+
avoid: "avoid";
|
|
2760
|
+
neutral: "neutral";
|
|
2761
|
+
prefer: "prefer";
|
|
2762
|
+
}>;
|
|
2763
|
+
}, z.core.$strict>>;
|
|
2764
|
+
basis: z.ZodString;
|
|
2765
|
+
}, z.core.$strict>>;
|
|
2559
2766
|
summary: z.ZodString;
|
|
2560
2767
|
}, z.core.$strict>;
|
|
2561
2768
|
}, z.core.$strip>];
|