@wowok/agent-mcp 3.1.7 → 3.2.0
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/exposure.d.ts +10 -10
- package/dist/config/judgment.d.ts +25 -25
- package/dist/config/rule-engine.d.ts +25 -25
- package/dist/customer/user-preferences.d.ts +2 -2
- package/dist/evaluation/arbitration-game.js +1 -1
- package/dist/evaluation/capability.d.ts +1 -1
- package/dist/evaluation/extract.js +1 -1
- package/dist/evaluation/match-operation.js +1 -1
- package/dist/extensions/industry-pack.d.ts +3 -2
- package/dist/extensions/industry-pack.js +1 -1
- package/dist/extensions/modes.js +1 -1
- package/dist/extensions/registry.js +1 -1
- package/dist/extensions/types.d.ts +1 -0
- package/dist/graph/onchain/analyze.js +1 -1
- package/dist/graph/onchain/analyze.spec.js +1 -1
- package/dist/graph/onchain/edge-schema.js +1 -1
- package/dist/graph/onchain/extract.js +1 -1
- package/dist/graph/onchain/field-manifest.js +1 -1
- package/dist/graph/onchain/project-relationship.js +1 -1
- package/dist/graph/onchain/types.d.ts +1 -1
- package/dist/harness/recover.js +1 -1
- package/dist/keeper/KeeperScan.d.ts +2 -1
- package/dist/keeper/KeeperScan.js +1 -1
- package/dist/keeper/detectors.d.ts +9 -0
- package/dist/keeper/detectors.js +1 -1
- package/dist/keeper/keeper.spec.js +1 -1
- package/dist/keeper/types.d.ts +1 -1
- package/dist/keeper/types.js +1 -1
- package/dist/knowledge/allocation-ledger.d.ts +4 -1
- package/dist/knowledge/allocation-ledger.js +1 -1
- package/dist/knowledge/allocation-puzzle.d.ts +2 -0
- package/dist/knowledge/allocation-puzzle.js +1 -1
- package/dist/knowledge/allocation-risk.d.ts +1 -1
- package/dist/knowledge/allocation-risk.js +1 -1
- package/dist/knowledge/arb-risk.d.ts +3 -1
- package/dist/knowledge/arb-risk.js +1 -1
- package/dist/knowledge/arbitration-ledger.js +1 -1
- package/dist/knowledge/arbitration-risk.js +1 -1
- package/dist/knowledge/arbitration-templates.d.ts +1 -0
- package/dist/knowledge/arbitration-templates.js +1 -1
- package/dist/knowledge/audit-rules.d.ts +13 -2
- package/dist/knowledge/audit-rules.js +1 -1
- package/dist/knowledge/baselines/rules/allocation.json +50 -1
- package/dist/knowledge/baselines/rules/arb.json +20 -1
- package/dist/knowledge/baselines/rules/arbitration.json +27 -0
- package/dist/knowledge/baselines/rules/guard.json +75 -2
- package/dist/knowledge/baselines/rules/machine.json +38 -13
- package/dist/knowledge/baselines/rules/order.json +2 -2
- package/dist/knowledge/builtin-templates.d.ts +3 -1
- package/dist/knowledge/builtin-templates.js +1 -1
- package/dist/knowledge/event-semantics.js +1 -1
- package/dist/knowledge/fund-layer.js +1 -1
- package/dist/knowledge/getting-started.js +1 -1
- package/dist/knowledge/guard-anchor-reach.d.ts +19 -0
- package/dist/knowledge/guard-anchor-reach.js +1 -0
- package/dist/knowledge/guard-bindings.js +1 -1
- package/dist/knowledge/guard-design-patterns.d.ts +1 -1
- package/dist/knowledge/guard-design-patterns.js +1 -1
- package/dist/knowledge/guard-ledger.js +1 -1
- package/dist/knowledge/guard-lint.js +1 -1
- package/dist/knowledge/guard-render.d.ts +6 -0
- package/dist/knowledge/guard-render.js +1 -1
- package/dist/knowledge/guard-risk.js +1 -1
- package/dist/knowledge/guard-submission-prompt.d.ts +6 -0
- package/dist/knowledge/guard-submission-prompt.js +1 -1
- package/dist/knowledge/guard-templates.d.ts +1 -1
- package/dist/knowledge/guard-templates.js +1 -1
- package/dist/knowledge/index.d.ts +4 -4
- package/dist/knowledge/index.js +1 -1
- package/dist/knowledge/industry-generalizer.js +1 -1
- package/dist/knowledge/industry-registry.d.ts +1 -1
- package/dist/knowledge/industry-registry.js +1 -1
- package/dist/knowledge/jsonrpc-enum.js +1 -1
- package/dist/knowledge/machine-ledger.js +1 -1
- package/dist/knowledge/machine-risk.js +1 -1
- package/dist/knowledge/machine-templates.js +1 -1
- package/dist/knowledge/order-ledger.js +1 -1
- package/dist/knowledge/order-templates.js +1 -1
- package/dist/knowledge/permission-ledger.js +1 -1
- package/dist/knowledge/release-sentinel.d.ts +12 -0
- package/dist/knowledge/release-sentinel.js +1 -0
- package/dist/knowledge/repository-write-semantics.d.ts +27 -0
- package/dist/knowledge/repository-write-semantics.js +1 -0
- package/dist/knowledge/rule-node-analyzers.d.ts +6 -0
- package/dist/knowledge/rule-node-analyzers.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +5 -1
- package/dist/knowledge/safety-rules.js +1 -1
- package/dist/knowledge/scenario-modes.d.ts +10 -1
- package/dist/knowledge/scenario-modes.js +1 -1
- package/dist/knowledge/service-allocation-semantics.d.ts +36 -0
- package/dist/knowledge/service-allocation-semantics.js +1 -0
- package/dist/knowledge/strategy-manuals.d.ts +3 -5
- package/dist/knowledge/strategy-manuals.js +1 -1
- package/dist/knowledge/template-loader.d.ts +28 -12
- package/dist/knowledge/template-loader.js +1 -1
- package/dist/knowledge/template-registry.js +1 -1
- package/dist/knowledge/template-scanner.js +1 -1
- package/dist/knowledge/tools-reference.js +1 -1
- package/dist/knowledge/workflow-guidance.d.ts +26 -0
- package/dist/knowledge/workflow-guidance.js +1 -1
- package/dist/monitor/MonitorLoop.js +1 -1
- package/dist/participation/allocation-advice.d.ts +38 -0
- package/dist/participation/allocation-advice.js +1 -0
- package/dist/participation/radar-core.d.ts +2 -0
- package/dist/persona/types.d.ts +3 -2
- package/dist/persona/types.js +1 -1
- package/dist/playbooks/service-build/business-puzzle.js +1 -1
- package/dist/playbooks/service-build/intent-analyzer.js +1 -1
- package/dist/playbooks/service-build/merchant-guide.d.ts +70 -63
- package/dist/playbooks/service-build/merchant-guide.js +1 -1
- package/dist/playbooks/service-build/migration-planner.js +1 -1
- package/dist/playbooks/service-build/mode-actions.d.ts +5 -0
- package/dist/playbooks/service-build/mode-actions.js +1 -1
- package/dist/playbooks/service-build/participation-radar.js +1 -1
- package/dist/playbooks/service-build/semantic-graph.d.ts +1 -0
- package/dist/playbooks/service-build/semantic-graph.js +1 -1
- package/dist/playbooks/service-build/service-quote.d.ts +2 -0
- package/dist/playbooks/service-build/service-quote.js +1 -0
- package/dist/relationship/derivation.d.ts +1 -1
- package/dist/safety/confirm-gate.js +1 -1
- package/dist/schema/benchmark-migration/index.d.ts +30 -8
- package/dist/schema/benchmark-migration/index.js +1 -1
- package/dist/schema/call/allocation.d.ts +6 -3
- package/dist/schema/call/arbitration.js +1 -1
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/guard.d.ts +8 -8
- package/dist/schema/call/machine.d.ts +56 -0
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.js +1 -1
- package/dist/schema/call/payment.js +1 -1
- package/dist/schema/call/semantic.js +1 -1
- package/dist/schema/call/service.d.ts +84 -22
- package/dist/schema/call/service.js +1 -1
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/common/tokentype-short-probe.spec.js +1 -0
- package/dist/schema/evaluation/index.d.ts +8 -80
- package/dist/schema/evaluation/index.js +1 -1
- package/dist/schema/goal/index.d.ts +9 -42
- package/dist/schema/goal/planning.d.ts +25 -60
- package/dist/schema/goal/planning.js +1 -1
- package/dist/schema/intent-radar/index.d.ts +2 -20
- package/dist/schema/intent-radar/index.js +1 -1
- package/dist/schema/interaction/index.d.ts +1 -1
- package/dist/schema/keeper/index.d.ts +3 -0
- package/dist/schema/keeper/index.js +1 -1
- package/dist/schema/local/index.js +1 -1
- package/dist/schema/operations.d.ts +74 -14
- package/dist/schema/persona/index.d.ts +279 -384
- package/dist/schema/persona/index.js +1 -1
- package/dist/schema/query/bi.d.ts +149 -10
- package/dist/schema/query/bi.js +1 -1
- package/dist/schema/query/index.d.ts +35 -16
- package/dist/schema/query/index.js +1 -1
- package/dist/schema/schema-query/index.d.ts +4 -4
- package/dist/schema/schema-version.js +1 -1
- package/dist/schema/watch/index.d.ts +2 -2
- package/dist/schema-query-impl/index.d.ts +1 -0
- package/dist/schema-query-impl/index.js +1 -1
- package/dist/schemas/account_operation.output.json +2 -2
- package/dist/schemas/benchmark_migration_operation.output.json +116 -2
- package/dist/schemas/benchmark_migration_operation.schema.json +2 -10
- package/dist/schemas/bridge_operation.output.json +2 -2
- package/dist/schemas/evaluation_operation.schema.json +7 -70
- package/dist/schemas/goal_operation.schema.json +6 -39
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/intent_radar.output.json +4 -20
- package/dist/schemas/keeper_operation.output.json +2 -2
- package/dist/schemas/keeper_operation.schema.json +9 -4
- package/dist/schemas/local_history_operation.output.json +2 -2
- package/dist/schemas/local_info_operation.output.json +2 -2
- package/dist/schemas/local_mark_operation.output.json +2 -2
- package/dist/schemas/messenger_operation.output.json +2 -2
- package/dist/schemas/monitor_events.output.json +2 -2
- package/dist/schemas/monitor_subscription.output.json +2 -2
- package/dist/schemas/onchain_events.output.json +2 -2
- package/dist/schemas/onchain_operations.output.json +6 -6
- package/dist/schemas/onchain_operations.schema.json +227 -54
- package/dist/schemas/onchain_operations_allocation.schema.json +11 -10
- package/dist/schemas/onchain_operations_arbitration.schema.json +13 -13
- package/dist/schemas/onchain_operations_machine.schema.json +27 -5
- package/dist/schemas/onchain_operations_order.schema.json +1 -1
- package/dist/schemas/onchain_operations_payment.schema.json +2 -2
- package/dist/schemas/onchain_operations_reward.schema.json +1 -1
- package/dist/schemas/onchain_operations_service.schema.json +171 -21
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -1
- package/dist/schemas/onchain_table_data.output.json +57 -4
- package/dist/schemas/persona_operation.output.json +11 -88
- package/dist/schemas/persona_operation.schema.json +4 -32
- package/dist/schemas/query_toolkit.output.json +320 -22
- package/dist/schemas/query_toolkit.schema.json +53 -0
- package/dist/tools/handlers/benchmark-migration.js +1 -1
- package/dist/tools/handlers/config.js +1 -1
- package/dist/tools/handlers/dispatch-expectations.spec.js +1 -1
- package/dist/tools/handlers/keeper.d.ts +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.js +1 -1
- package/dist/tools/registry/business.js +1 -1
- package/dist/tools/wrap.js +1 -1
- package/package.json +2 -2
- package/dist/knowledge/alloc-audit-policy.spec.js +0 -1
- package/dist/knowledge/event-semantics.spec.d.ts +0 -1
- package/dist/knowledge/event-semantics.spec.js +0 -1
- package/dist/knowledge/facts-sync.spec.d.ts +0 -1
- package/dist/knowledge/facts-sync.spec.js +0 -1
- package/dist/knowledge/guard-design-patterns.spec.d.ts +0 -1
- package/dist/knowledge/guard-design-patterns.spec.js +0 -1
- package/dist/knowledge/guard-eval.spec.d.ts +0 -1
- package/dist/knowledge/guard-eval.spec.js +0 -1
- package/dist/knowledge/rule-node-analyzers.spec.d.ts +0 -1
- package/dist/knowledge/rule-node-analyzers.spec.js +0 -1
- package/dist/knowledge/safety-rules.extract-amount.spec.d.ts +0 -1
- package/dist/knowledge/safety-rules.extract-amount.spec.js +0 -1
- package/dist/knowledge/template-loader.spec.d.ts +0 -1
- package/dist/knowledge/template-loader.spec.js +0 -1
- package/dist/knowledge/template-scanner.spec.d.ts +0 -1
- package/dist/knowledge/template-scanner.spec.js +0 -1
- /package/dist/{knowledge/alloc-audit-policy.spec.d.ts → schema/common/tokentype-short-probe.spec.d.ts} +0 -0
|
@@ -6,16 +6,7 @@ export declare const CapabilityVectorSchema: z.ZodObject<{
|
|
|
6
6
|
demand: "demand";
|
|
7
7
|
}>;
|
|
8
8
|
owner: z.ZodOptional<z.ZodString>;
|
|
9
|
-
industry: z.
|
|
10
|
-
custom: "custom";
|
|
11
|
-
freelance: "freelance";
|
|
12
|
-
rental: "rental";
|
|
13
|
-
education: "education";
|
|
14
|
-
travel: "travel";
|
|
15
|
-
subscription: "subscription";
|
|
16
|
-
retail: "retail";
|
|
17
|
-
general: "general";
|
|
18
|
-
}>;
|
|
9
|
+
industry: z.ZodString;
|
|
19
10
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
20
11
|
region: z.ZodObject<{
|
|
21
12
|
mode: z.ZodEnum<{
|
|
@@ -273,16 +264,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
273
264
|
demand: "demand";
|
|
274
265
|
}>;
|
|
275
266
|
owner: z.ZodOptional<z.ZodString>;
|
|
276
|
-
industry: z.
|
|
277
|
-
custom: "custom";
|
|
278
|
-
freelance: "freelance";
|
|
279
|
-
rental: "rental";
|
|
280
|
-
education: "education";
|
|
281
|
-
travel: "travel";
|
|
282
|
-
subscription: "subscription";
|
|
283
|
-
retail: "retail";
|
|
284
|
-
general: "general";
|
|
285
|
-
}>;
|
|
267
|
+
industry: z.ZodString;
|
|
286
268
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
287
269
|
region: z.ZodObject<{
|
|
288
270
|
mode: z.ZodEnum<{
|
|
@@ -329,16 +311,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
329
311
|
demand: "demand";
|
|
330
312
|
}>;
|
|
331
313
|
owner: z.ZodOptional<z.ZodString>;
|
|
332
|
-
industry: z.
|
|
333
|
-
custom: "custom";
|
|
334
|
-
freelance: "freelance";
|
|
335
|
-
rental: "rental";
|
|
336
|
-
education: "education";
|
|
337
|
-
travel: "travel";
|
|
338
|
-
subscription: "subscription";
|
|
339
|
-
retail: "retail";
|
|
340
|
-
general: "general";
|
|
341
|
-
}>;
|
|
314
|
+
industry: z.ZodString;
|
|
342
315
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
343
316
|
region: z.ZodObject<{
|
|
344
317
|
mode: z.ZodEnum<{
|
|
@@ -387,16 +360,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
387
360
|
demand: "demand";
|
|
388
361
|
}>;
|
|
389
362
|
owner: z.ZodOptional<z.ZodString>;
|
|
390
|
-
industry: z.
|
|
391
|
-
custom: "custom";
|
|
392
|
-
freelance: "freelance";
|
|
393
|
-
rental: "rental";
|
|
394
|
-
education: "education";
|
|
395
|
-
travel: "travel";
|
|
396
|
-
subscription: "subscription";
|
|
397
|
-
retail: "retail";
|
|
398
|
-
general: "general";
|
|
399
|
-
}>;
|
|
363
|
+
industry: z.ZodString;
|
|
400
364
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
401
365
|
region: z.ZodObject<{
|
|
402
366
|
mode: z.ZodEnum<{
|
|
@@ -443,16 +407,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
443
407
|
demand: "demand";
|
|
444
408
|
}>;
|
|
445
409
|
owner: z.ZodOptional<z.ZodString>;
|
|
446
|
-
industry: z.
|
|
447
|
-
custom: "custom";
|
|
448
|
-
freelance: "freelance";
|
|
449
|
-
rental: "rental";
|
|
450
|
-
education: "education";
|
|
451
|
-
travel: "travel";
|
|
452
|
-
subscription: "subscription";
|
|
453
|
-
retail: "retail";
|
|
454
|
-
general: "general";
|
|
455
|
-
}>;
|
|
410
|
+
industry: z.ZodString;
|
|
456
411
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
457
412
|
region: z.ZodObject<{
|
|
458
413
|
mode: z.ZodEnum<{
|
|
@@ -501,16 +456,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
501
456
|
demand: "demand";
|
|
502
457
|
}>;
|
|
503
458
|
owner: z.ZodOptional<z.ZodString>;
|
|
504
|
-
industry: z.
|
|
505
|
-
custom: "custom";
|
|
506
|
-
freelance: "freelance";
|
|
507
|
-
rental: "rental";
|
|
508
|
-
education: "education";
|
|
509
|
-
travel: "travel";
|
|
510
|
-
subscription: "subscription";
|
|
511
|
-
retail: "retail";
|
|
512
|
-
general: "general";
|
|
513
|
-
}>;
|
|
459
|
+
industry: z.ZodString;
|
|
514
460
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
515
461
|
region: z.ZodObject<{
|
|
516
462
|
mode: z.ZodEnum<{
|
|
@@ -604,16 +550,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
604
550
|
demand: "demand";
|
|
605
551
|
}>;
|
|
606
552
|
owner: z.ZodOptional<z.ZodString>;
|
|
607
|
-
industry: z.
|
|
608
|
-
custom: "custom";
|
|
609
|
-
freelance: "freelance";
|
|
610
|
-
rental: "rental";
|
|
611
|
-
education: "education";
|
|
612
|
-
travel: "travel";
|
|
613
|
-
subscription: "subscription";
|
|
614
|
-
retail: "retail";
|
|
615
|
-
general: "general";
|
|
616
|
-
}>;
|
|
553
|
+
industry: z.ZodString;
|
|
617
554
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
618
555
|
region: z.ZodObject<{
|
|
619
556
|
mode: z.ZodEnum<{
|
|
@@ -784,16 +721,7 @@ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
784
721
|
demand: "demand";
|
|
785
722
|
}>;
|
|
786
723
|
owner: z.ZodOptional<z.ZodString>;
|
|
787
|
-
industry: z.
|
|
788
|
-
custom: "custom";
|
|
789
|
-
freelance: "freelance";
|
|
790
|
-
rental: "rental";
|
|
791
|
-
education: "education";
|
|
792
|
-
travel: "travel";
|
|
793
|
-
subscription: "subscription";
|
|
794
|
-
retail: "retail";
|
|
795
|
-
general: "general";
|
|
796
|
-
}>;
|
|
724
|
+
industry: z.ZodString;
|
|
797
725
|
industry_confidence: z.ZodOptional<z.ZodNumber>;
|
|
798
726
|
region: z.ZodObject<{
|
|
799
727
|
mode: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{z}from'zod';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),PerspectiveEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['enum'](['freelance','rental','education','travel','subscription','retail','general','custom']),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present\x20|\x20demand.present_guarded\x20|\x20demand.publish\x20|\x20service.order_new.'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances.'),'allocation_note':z['string']()['optional']()['describe']('Human-readable\x20allocation\x20note.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),CriterionScoreSchema=z['object']({'name':z['string'](),'score':z['number'](),'weight':z['number'](),'rationale':z['string']()})['strict'](),EvaluationFindingSchema=z['object']({'criterion':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'deduction':z['number']()})['strict'](),FindingRefSchema=z['object']({'id':z['string']()['describe']('Stable\x20finding\x20registry\x20id\x20(e.g.\x20R4:<machine>:<pair>).'),'title':z['string']()['describe']('Human\x20finding\x20title.'),'severity':z['string']()['describe']('Analyzer\x20severity\x20(critical/high/medium/low).')})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'finding_refs':z['array'](FindingRefSchema)['optional']()['describe']('Structural\x20findings\x20this\x20risk\x20dimension\x20deducted\x20for\x20—\x20resolve\x20graph-aware\x20where-lines\x20from\x20these\x20ids.'),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string'](),'unverified':z['array'](z['string']())['optional']()['describe']('Dimension\x20rule\x20ids\x20excluded\x20from\x20the\x20weighted\x20aggregation\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'criterionScores':z['array'](CriterionScoreSchema)['optional']()['describe']('Per-criterion\x20weighted\x20breakdown\x20(producer/consumer\x20perspective-aware\x20kernel\x20union).'),'findings':z['array'](EvaluationFindingSchema)['optional']()['describe']('Negative-evidence\x20findings\x20(richer\x20than\x20red_flags\x20strings).'),'strengths':z['array'](z['string']())['optional']()['describe']('Positive-evidence\x20strengths.'),'needsLlm':z['boolean']()['optional']()['describe']('True\x20when\x20this\x20evaluation\x20requires\x20LLM\x20processing\x20(worth_buying/value).'),'llmPrompt':z['string']()['optional']()['describe']('When\x20needsLlm=true,\x20the\x20prompt\x20to\x20hand\x20to\x20the\x20caller\x20LLM.')})['strict'](),CoverageSlotSchema=z['object']({'slot':z['string']()['describe']('Slot\x20key\x20(e.g.\x20arbitration\x20/\x20reviews).'),'label':z['string']()['describe']('Human-readable\x20slot\x20name.'),'gloss':z['string']()['describe']('One-sentence\x20plain\x20explanation\x20of\x20the\x20evidence\x20this\x20slot\x20covers.'),'required':z['boolean']()['describe']('Whether\x20this\x20slot\x20is\x20required\x20for\x20a\x20material\x20evaluation.'),'state':z['enum'](['present','empty','gap'])['describe']('present\x20=\x20scored\x20material;\x20empty\x20=\x20verified\x20absence;\x20gap\x20=\x20unverifiable.'),'facts':z['array'](z['string']())['describe']('Fact\x20keys\x20answering\x20this\x20slot\x20(empty\x20for\x20the\x20root\x20snapshot\x20slot).')})['strict'](),CoverageVocabularySchema=z['object']({'present':z['string'](),'empty':z['string'](),'gap':z['string'](),'unverified':z['string'](),'completeness':z['string']()})['strict']();export const GraphServiceEvaluationSchema=z['object']({'target':z['string']()['describe']('Evaluated\x20service\x20address\x20(resolved\x20from\x20service_id).'),'trust':EvaluationResultSchema['describe']('Trust\x20evaluation\x20over\x20the\x20graph\x20facts\x20(arbitration/reviews/fulfillment/fund_safety/transparency).'),'risk':EvaluationResultSchema['describe']('Risk\x20evaluation\x20over\x20the\x20graph\x20facts\x20(workflow/fund/trust/behavior).'),'completeness':z['number']()['describe']('Material\x20coverage\x20of\x20the\x20required\x20fact\x20slots\x20(0-100).'),'coverage':z['array'](CoverageSlotSchema)['describe']('Per-slot\x20coverage\x20of\x20the\x20facts\x20projection.'),'unverified':z['array'](z['string']())['describe']('Dimension\x20rule\x20ids\x20excluded\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'vocabulary':CoverageVocabularySchema['describe']('One-sentence\x20canonical\x20glosses\x20of\x20the\x20coverage\x20vocabulary\x20to\x20quote\x20verbatim.')})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(quantified).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity.')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'code':z['enum'](['self_buy','reciprocal_loop','no_allocation','reviews_unverified','reviewer_duplicate','review_time_burst','shell_no_arbitration','shell_funded_no_arbitration','shell_no_machine','reputation_bound'])['describe']('Stable\x20machine-readable\x20signal\x20discriminator.'),'severity':z['enum'](['high','medium','low']),'description':z['string'](),'refs':z['array'](z['string']())['optional']()['describe']('Object\x20addresses\x20backing\x20the\x20signal\x20(orders/services).')})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict']()})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
|
|
1
|
+
import{z}from'zod';const RiskLevelEnum=z['enum'](['low','medium','high']),RiskAppetiteEnum=z['enum'](['conservative','balanced','aggressive']),PerspectiveEnum=z['enum'](['merchant','customer','prospect','supplier','collaborator','arbitrator']),ArbStatusEnum=z['enum'](['Principal_confirming','Arbitrator_confirming','Voting','Arbitrated','Objectionable','Finished','Withdrawn']),ArbPerspectiveEnum=z['enum'](['customer','merchant','arbitrator']),ExecutionPathEnum=z['enum'](['order_holder','permission','named_operator','not_available']),EvaluationLevelEnum=z['enum'](['low','medium_low','medium_high','high']),IndustryEnum=z['string']()['regex'](/^[a-z][a-z0-9_]*$/,'industry\x20must\x20be\x20lowercase\x20snake_case')['describe']('Industry\x20scenario.\x20Builtin:\x20freelance,\x20rental,\x20education,\x20travel,\x20subscription,\x20retail,\x20general,\x20custom\x20—\x20plus\x20any\x20registered\x20custom\x20industry.'),RegionSchema=z['object']({'mode':z['enum'](['remote','physical']),'country':z['string']()['optional'](),'province':z['string']()['optional'](),'city':z['string']()['optional'](),'raw':z['string']()['describe']('Original\x20location\x20string\x20(for\x20traceability).')})['strict'](),WorkflowCapabilitiesSchema=z['object']({'has_arbitration':z['boolean'](),'has_refund_path':z['boolean'](),'has_milestone_nodes':z['boolean'](),'has_compensation_fund':z['boolean'](),'has_wip_verification':z['boolean'](),'has_messenger':z['boolean'](),'has_buy_guard':z['boolean'](),'has_dynamic_pricing':z['boolean'](),'is_published':z['boolean'](),'is_paused':z['boolean']()})['strict']();export const CapabilityVectorSchema=z['object']({'id':z['string']()['describe']('Service/Demand\x20address.'),'kind':z['enum'](['service','demand'])['describe']('Whether\x20this\x20is\x20a\x20service\x20or\x20demand.'),'owner':z['string']()['optional'](),'industry':IndustryEnum['describe']('Industry\x20scenario.'),'industry_confidence':z['number']()['min'](0x0)['max'](0x1)['optional'](),'region':RegionSchema,'price_min':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'price_max':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string\x20to\x20avoid\x20JSON\x20bigint\x20loss).'),'token_type':z['string']()['optional'](),'ticket_size':z['enum'](['micro','small','medium','large'])['optional'](),'trust_score':z['number']()['min'](0x0)['max'](0x64)['optional'](),'reputation_like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional'](),'arbitration_independent':z['boolean']()['optional'](),'merchant_history_count':z['number']()['int']()['min'](0x0)['optional'](),'capabilities':WorkflowCapabilitiesSchema,'tags':z['array'](z['string']())['optional'](),'keywords':z['array'](z['string']())['optional']()})['strict']();const ServiceExtractInputSchema=z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'sales':z['array'](z['object']({'name':z['string']()['optional'](),'price':z['string']()['describe']('Smallest-unit\x20amount\x20(string).'),'wip_hash':z['string']()['optional']()})['strict']())['optional'](),'arbitrations':z['array'](z['string']())['optional'](),'compensation_fund':z['string']()['optional']()['describe']('Smallest-unit\x20amount\x20(string).'),'buy_guard':z['string']()['nullable']()['optional'](),'machine':z['string']()['nullable']()['optional'](),'um':z['string']()['nullable']()['optional'](),'bPublished':z['boolean']()['optional'](),'bPaused':z['boolean']()['optional'](),'owner':z['string']()['optional']()})['strict'](),DemandExtractInputSchema=z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string'](),'location':z['string'](),'rewards':z['array'](z['string']())['optional'](),'um':z['string']()['nullable']()['optional'](),'owner':z['string']()['optional']()})['strict'](),PresenterHistorySchema=z['array'](z['object']({'demand_id':z['string']()['optional']()['describe']('Demand\x20object\x20that\x20received\x20the\x20presentation.'),'acceptance_score':z['number']()['nullable']()['describe']('Demand\x20owner\x27s\x20acceptance\x20score\x20(u8\x20on-chain,\x200-100\x20scale).\x20null\x20=\x20not\x20yet\x20rated.'),'feedback_time':z['number']()['optional']()['describe']('Feedback\x20timestamp\x20(ms\x20or\x20s,\x20informational\x20only).')})['strict']())['describe']('P2-2:\x20presenter\x20acceptance\x20history\x20(demand-side\x20acceptance_score\x20backflow)\x20for\x20the\x20SINGLE\x20party\x20being\x20evaluated\x20'+'(e.g.\x20the\x20merchant\x20behind\x20the\x20candidate\x20service\x20set,\x20or\x20the\x20demand\x20owner\x20being\x20matched).\x20Collect\x20via\x20'+'onchain_table_item_demand_presenter\x20across\x20that\x20party\x27s\x20Demand\x20presenter\x20tables.\x20When\x20the\x20candidate\x20set\x20spans\x20'+'multiple\x20unrelated\x20parties,\x20evaluate\x20per-party\x20or\x20omit\x20—\x20the\x20acceptance\x20rule\x20scores\x20neutral\x20without\x20history.'),UserInjectionSchema=z['object']({'intent':z['string']()['optional']()['describe']('Free-text\x20intent.'),'preferences':z['record'](z['string'](),z['unknown']())['optional'](),'requirements':z['array'](z['object']({'rule_id':z['string'](),'condition':z['enum'](['require','forbid']),'note':z['string']()['optional']()})['strict']())['optional']()['describe']('Hard\x20red\x20lines\x20(block\x20when\x20violated).'),'overrides':z['object']({'rules':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional'](),'weight':z['number']()['optional']()})['strict']())['optional'](),'data_sources':z['record'](z['string'](),z['object']({'enabled':z['boolean']()['optional']()})['strict']())['optional']()})['strict']()['optional']()['describe']('Enable/disable/reweight\x20rules\x20and\x20data\x20sources.')})['strict'](),OperationBridgeSchema=z['object']({'operation':z['string']()['describe']('Next\x20on-chain\x20operation\x20label:\x20demand.present\x20|\x20demand.present_guarded\x20|\x20demand.publish\x20|\x20service.order_new.'),'operation_type':z['enum'](['demand','service'])['describe']('The\x20onchain_operations\x20operation_type\x20to\x20use.'),'preconditions':z['array'](z['string']())['describe']('Precondition\x20checklist\x20to\x20verify\x20(query/watch)\x20before\x20writing.'),'rationale':z['string']()['describe']('Stable\x20guidance\x20describing\x20the\x20order-formation\x20path.')})['strict'](),ArbGameActionSchema=z['object']({'action':z['string']()['describe']('Recommended\x20move\x20(e.g.\x20\x27confirm\x27,\x20\x27vote\x27,\x20\x27objection\x27,\x20\x27arb_withdraw\x27).'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Favorability\x200-100\x20for\x20the\x20perspective.'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),NodeForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'consequence':z['string']()['optional']()['describe']('Consequence\x20hint\x20(completion/refund\x20path).'),'weight':z['number']()['optional']()['describe']('Forward\x20weight\x20(accumulates\x20toward\x20the\x20pair\x27s\x20threshold).')})['strict'](),NodeGameActionSchema=z['object']({'forward':z['string']()['describe']('Forward\x20(operation)\x20name.'),'to_node':z['string']()['describe']('Target\x20node\x20after\x20execution.'),'execution_path':ExecutionPathEnum['describe']('How\x20the\x20account\x20may\x20execute\x20it.'),'guard':z['string']()['optional']()['describe']('Guard\x20address\x20gating\x20this\x20forward.'),'favorability':z['number']()['int']()['min'](0x0)['max'](0x64)['describe']('Net\x20favorability\x200-100\x20for\x20the\x20perspective\x20(gain\x20−\x20risk).'),'gain_score':z['number']()['int']()['min'](0x0)['describe']('Gain\x20points.'),'risk_score':z['number']()['int']()['min'](0x0)['describe']('Risk\x20points\x20(appetite-adjusted).'),'is_optimal':z['boolean']()['describe']('True\x20when\x20this\x20is\x20the\x20top\x20recommended\x20move.'),'payoff_note':z['string']()['describe']('What\x20the\x20move\x20achieves.'),'risk':RiskLevelEnum['describe']('Risk\x20of\x20the\x20move.')})['strict'](),PathMachineForwardSchema=z['object']({'name':z['string']()['describe']('Forward\x20(operation)\x20name.'),'permissionIndex':z['number']()['nullable']()['optional'](),'namedOperator':z['string']()['nullable']()['optional'](),'guard':z['string']()['nullable']()['optional'](),'weight':z['number']()['nullable']()['optional']()})['strict'](),PathMachineNodeSchema=z['object']({'name':z['string']()['describe']('Node\x20name.'),'pairs':z['array'](z['object']({'prev_node':z['string'](),'threshold':z['number']()['optional'](),'forwards':z['array'](PathMachineForwardSchema)['optional']()})['strict']())['optional']()})['strict'](),NodeAnnotationsSchema=z['object']({'completed':z['array'](z['string']())['optional'](),'refunded':z['array'](z['string']())['optional']()})['strict'](),PathOutputSchema=z['object']({'id':z['string'](),'nodes':z['array'](z['string']()),'forwards':z['array'](z['string']()),'terminal':z['enum'](['completed','refunded','open']),'guard_gates':z['number']()['int']()['min'](0x0),'length':z['number']()['int']()['min'](0x0),'terminal_value':z['number']()['int']()['min'](0x0)['max'](0x64),'gain_score':z['number']()['int']()['min'](0x0),'risk_score':z['number']()['int']()['min'](0x0),'score':z['number']()['int']()['min'](0x0)['max'](0x64),'rationale':z['string']()})['strict'](),AllocationSummarySchema=z['object']({'recipient_slots':z['number']()['int']()['min'](0x0)['describe']('Total\x20recipient\x20slots\x20across\x20allocators.'),'guard_gated_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20resolved\x20at\x20settlement\x20by\x20a\x20Guard.'),'direct_to_me_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20paying\x20directly\x20to\x20this\x20role.'),'to_payer_slots':z['number']()['int']()['min'](0x0)['describe']('Slots\x20routing\x20back\x20to\x20the\x20payer\x20(refund-oriented).')})['strict'](),CooperationInfoSchema=z['object']({'threshold':z['number']()['int']()['min'](0x1)['describe']('Pair\x20threshold\x20(accumulated\x20forward\x20weights\x20to\x20advance).'),'my_weight':z['number']()['int']()['min'](0x0)['describe']('Weight\x20THIS\x20role\x20can\x20contribute.'),'needed_from_others':z['number']()['int']()['min'](0x0)['describe']('Weight\x20still\x20needed\x20from\x20other\x20roles\x20(0\x20=\x20can\x20advance\x20alone).'),'collaborators':z['array'](z['string']())['describe']('Roles\x20that\x20must\x20cooperate\x20to\x20reach\x20the\x20threshold.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20once\x20the\x20node\x20advances.'),'allocation_note':z['string']()['optional']()['describe']('Human-readable\x20allocation\x20note.')})['strict'](),CapabilityGapSchema=z['object']({'dimension':z['string']()['describe']('Capability\x20dimension\x20(has_arbitration\x20/\x20region\x20/\x20price\x20/\x20...).'),'requirement':z['string']()['describe']('What\x20the\x20demand\x20requires.'),'provided':z['string']()['describe']('What\x20the\x20service\x20provides.'),'status':z['enum'](['satisfied','partial','missing']),'impact':z['enum'](['critical','major','minor']),'suggestion':z['string']()['describe']('Actionable\x20suggestion.')})['strict'](),CapabilityGapReportSchema=z['object']({'entity_id':z['string'](),'satisfied':z['array'](CapabilityGapSchema),'missing':z['array'](CapabilityGapSchema),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),CompositePlanSchema=z['object']({'demand':z['string'](),'services':z['array'](z['object']({'id':z['string'](),'covered':z['array'](z['string']())})['strict']()),'coverage_score':z['number']()['int']()['min'](0x0)['max'](0x64),'remaining_missing':z['array'](z['string']()),'feasibility':z['enum'](['ready','needs_supply_chain','infeasible']),'summary':z['string']()})['strict'](),CriterionScoreSchema=z['object']({'name':z['string'](),'score':z['number'](),'weight':z['number'](),'rationale':z['string']()})['strict'](),EvaluationFindingSchema=z['object']({'criterion':z['string'](),'severity':z['enum'](['critical','high','medium','low','info']),'message':z['string'](),'deduction':z['number']()})['strict'](),FindingRefSchema=z['object']({'id':z['string']()['describe']('Stable\x20finding\x20registry\x20id\x20(e.g.\x20R4:<machine>:<pair>).'),'title':z['string']()['describe']('Human\x20finding\x20title.'),'severity':z['string']()['describe']('Analyzer\x20severity\x20(critical/high/medium/low).')})['strict'](),EvaluationResultSchema=z['object']({'evaluation_id':z['string'](),'total':z['number']()['int']()['min'](0x0)['max'](0x64),'level':EvaluationLevelEnum,'breakdown':z['array'](z['object']({'rule_id':z['string'](),'dimension':z['string'](),'score':z['number'](),'weight':z['number'](),'reason':z['string']()['optional'](),'matched':z['array'](z['string']())['optional'](),'mismatched':z['array'](z['string']())['optional'](),'finding_refs':z['array'](FindingRefSchema)['optional']()['describe']('Structural\x20findings\x20this\x20risk\x20dimension\x20deducted\x20for\x20—\x20resolve\x20graph-aware\x20where-lines\x20from\x20these\x20ids.'),'red_flag':z['boolean']()['optional']()})['strict']()),'red_flags':z['array'](z['string']()),'blocked':z['boolean'](),'trace':z['array'](z['object']({'kind':z['enum'](['data_source','rule','override']),'id':z['string'](),'detail':z['string']()})['strict']()),'summary':z['string'](),'unverified':z['array'](z['string']())['optional']()['describe']('Dimension\x20rule\x20ids\x20excluded\x20from\x20the\x20weighted\x20aggregation\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'criterionScores':z['array'](CriterionScoreSchema)['optional']()['describe']('Per-criterion\x20weighted\x20breakdown\x20(producer/consumer\x20perspective-aware\x20kernel\x20union).'),'findings':z['array'](EvaluationFindingSchema)['optional']()['describe']('Negative-evidence\x20findings\x20(richer\x20than\x20red_flags\x20strings).'),'strengths':z['array'](z['string']())['optional']()['describe']('Positive-evidence\x20strengths.'),'needsLlm':z['boolean']()['optional']()['describe']('True\x20when\x20this\x20evaluation\x20requires\x20LLM\x20processing\x20(worth_buying/value).'),'llmPrompt':z['string']()['optional']()['describe']('When\x20needsLlm=true,\x20the\x20prompt\x20to\x20hand\x20to\x20the\x20caller\x20LLM.')})['strict'](),CoverageSlotSchema=z['object']({'slot':z['string']()['describe']('Slot\x20key\x20(e.g.\x20arbitration\x20/\x20reviews).'),'label':z['string']()['describe']('Human-readable\x20slot\x20name.'),'gloss':z['string']()['describe']('One-sentence\x20plain\x20explanation\x20of\x20the\x20evidence\x20this\x20slot\x20covers.'),'required':z['boolean']()['describe']('Whether\x20this\x20slot\x20is\x20required\x20for\x20a\x20material\x20evaluation.'),'state':z['enum'](['present','empty','gap'])['describe']('present\x20=\x20scored\x20material;\x20empty\x20=\x20verified\x20absence;\x20gap\x20=\x20unverifiable.'),'facts':z['array'](z['string']())['describe']('Fact\x20keys\x20answering\x20this\x20slot\x20(empty\x20for\x20the\x20root\x20snapshot\x20slot).')})['strict'](),CoverageVocabularySchema=z['object']({'present':z['string'](),'empty':z['string'](),'gap':z['string'](),'unverified':z['string'](),'completeness':z['string']()})['strict']();export const GraphServiceEvaluationSchema=z['object']({'target':z['string']()['describe']('Evaluated\x20service\x20address\x20(resolved\x20from\x20service_id).'),'trust':EvaluationResultSchema['describe']('Trust\x20evaluation\x20over\x20the\x20graph\x20facts\x20(arbitration/reviews/fulfillment/fund_safety/transparency).'),'risk':EvaluationResultSchema['describe']('Risk\x20evaluation\x20over\x20the\x20graph\x20facts\x20(workflow/fund/trust/behavior).'),'completeness':z['number']()['describe']('Material\x20coverage\x20of\x20the\x20required\x20fact\x20slots\x20(0-100).'),'coverage':z['array'](CoverageSlotSchema)['describe']('Per-slot\x20coverage\x20of\x20the\x20facts\x20projection.'),'unverified':z['array'](z['string']())['describe']('Dimension\x20rule\x20ids\x20excluded\x20as\x20unverifiable\x20(data\x20gaps)\x20—\x20never\x20scored\x20as\x20default-low.'),'vocabulary':CoverageVocabularySchema['describe']('One-sentence\x20canonical\x20glosses\x20of\x20the\x20coverage\x20vocabulary\x20to\x20quote\x20verbatim.')})['strict']();export const EvaluationOperationInputSchema=z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).')})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'appetite':RiskAppetiteEnum['optional']()['describe']('Risk\x20appetite\x20—\x20adjusts\x20risk\x20sensitivity\x20(conservative\x20amplifies\x20risk).'),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'threshold':z['number']()['int']()['min'](0x1)['optional']()['describe']('Pair\x20threshold\x20—\x20when\x20>\x201,\x20multi-role\x20cooperation\x20is\x20needed\x20to\x20advance.'),'allocation':AllocationSummarySchema['optional']()['describe']('Allocation\x20waterfall\x20—\x20how\x20funds\x20split\x20after\x20the\x20node\x20advances.'),'requirements':z['array'](z['string']())['optional']()['describe']('Persona\x20red\x20lines\x20that\x20re-anchor\x20the\x20role\x27s\x20prefer/avoid\x20(persona\x20drivers).'),'order_amount':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20stake\x20at\x20this\x20node\x20(quantified).'),'compensation_fund':z['string']()['optional']()['describe']('Merchant\x20compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'operable':z['array'](NodeForwardSchema),'waiting_on':z['array'](z['object']({'role':z['string'](),'forwards':z['array'](z['string']())})['strict']())['optional']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'demand':CapabilityVectorSchema,'service':CapabilityVectorSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'demand':CapabilityVectorSchema,'services':z['array'](CapabilityVectorSchema)})['strict'](),z['object']({'action':z['literal']('demand_match'),'demand_cap':CapabilityVectorSchema,'services':z['array'](ServiceExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection\x20(explicit\x20injection\x20overrides).')})['strict'](),z['object']({'action':z['literal']('service_match'),'service_cap':CapabilityVectorSchema,'demands':z['array'](DemandExtractInputSchema),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'machine_nodes':z['array'](PathMachineNodeSchema),'node_annotations':NodeAnnotationsSchema['optional'](),'appetite':RiskAppetiteEnum['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x27s\x20risk_appetite\x20is\x20used\x20as\x20the\x20default\x20appetite.'),'requirements':z['array'](z['string']())['optional'](),'order_amount':z['string']()['optional'](),'max_depth':z['number']()['int']()['min'](0x1)['optional']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data'])['optional']()['describe']('Off-chain\x20evidence\x20kind\x20entering\x20the\x20closure\x20workflow\x20(single-item\x20mode;\x20omit\x20when\x20`items`\x20is\x20given).'),'hash_committed':z['boolean']()['optional']()['describe']('Whether\x20the\x20evidence\x20hash\x20is\x20committed\x20on-chain\x20(authenticity\x20anchor;\x20single-item\x20mode).'),'digital_check_passed':z['boolean']()['optional']()['describe']('OCR\x20/\x20machine\x20check\x20passed\x20(e.g.\x20signature\x20recognized,\x20waybill\x20matched).'),'contradiction':z['boolean']()['optional']()['describe']('A\x20contradicting\x20signal\x20detected\x20(e.g.\x20waybill\x20number\x20mismatch).'),'items':z['array'](z['object']({'id':z['string']()['min'](0x1)['describe']('Caller-side\x20identifier\x20(file\x20name,\x20Proof\x20object\x20id,\x20repository\x20ref...).'),'kind':z['enum'](['signature_photo','voice_recording','delivery_proof','weather_data']),'hash_committed':z['boolean'](),'digital_check_passed':z['boolean']()['optional'](),'contradiction':z['boolean']()['optional'](),'proof_ref':z['string']()['optional']()['describe']('On-chain\x20Proof\x20object\x20reference\x20(WTS\x20proof)\x20when\x20already\x20anchored.')})['strict']())['min'](0x1)['optional']()['describe']('P2-3\x20list\x20mode:\x20review\x20a\x20COLLECTION\x20of\x20evidence\x20items\x20together\x20→\x20structured\x20usable/manual/rejected\x20list\x20plus\x20'+'`proof_candidates`\x20(auto-passed\x20items\x20with\x20their\x20Proof\x20refs)\x20the\x20dispute\x20initiator\x20may\x20reference\x20in\x20the\x20dispute\x20'+'description\x20(human\x20confirms\x20the\x20final\x20selection\x20—\x20never\x20auto-attached).\x20When\x20omitted,\x20single-item\x20mode\x20requires\x20`kind`\x20+\x20`hash_committed`.')})['strict']()['refine'](a=>a['items']!==undefined&&a['items']['length']>0x0||a['kind']!==undefined&&a['hash_committed']!==undefined,{'message':'evidence_review\x20requires\x20either\x20`items`\x20(list\x20mode)\x20or\x20`kind`\x20+\x20`hash_committed`\x20(single-item\x20mode).'}),z['object']({'action':z['literal']('discover_services'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`\x20(from\x20public\x20web\x20data).\x20Enrichment\x20makes\x20same-province\x20neighboring\x20cities\x20detectable;\x20without\x20it\x20only\x20exact/contains/remote\x20relations\x20are\x20deterministically\x20reachable.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness:\x20strict=100%\x20city\x20match\x20(on-site\x20consumption);\x20near=accept\x20neighboring\x20cities;\x20logistics=region\x20representation,\x20soft\x20signal.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'description':z['string']()['optional']()['describe']('Demand\x20description\x20—\x20used\x20to\x20infer\x20sensitivity\x20when\x20omitted\x20(hotel→strict,\x20parcel→logistics).'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('discover_demands'),'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'service_cap':CapabilityVectorSchema,'location':z['string']()['optional']()['describe']('Client-side\x20substring\x20filter\x20on\x20demand.location\x20(omit\x20=\x20all\x20demands).'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'limit':z['number']()['int']()['min'](0x1)['max'](0x32)['optional']()['describe']('Top-N\x20matched\x20demands\x20to\x20return\x20(default\x205).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('market_metrics'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration.'),'limit':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Max\x20recent\x20NewOrderEvent\x20events\x20to\x20aggregate\x20for\x20the\x20order-flow\x20(GMV/top-services)\x20window\x20(default\x20100).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'op':z['enum'](['journey_funnel','referral_attribution','customer_relationship','dynamic_pricing'])['describe']('Which\x20operational\x20aggregation\x20to\x20run.'),'due_diligence':z['number']()['int']()['min'](0x0)['optional'](),'orders':z['number']()['int']()['min'](0x0)['optional'](),'completed':z['number']()['int']()['min'](0x0)['optional'](),'reviews':z['number']()['int']()['min'](0x0)['optional'](),'referral_orders':z['array'](z['object']({'id':z['string'](),'referrer':z['string'](),'amount':z['string'](),'closed':z['boolean']()})['strict']())['optional'](),'customer_orders':z['array'](z['object']({'id':z['string'](),'customer':z['string'](),'time':z['number'](),'disputed':z['boolean']()})['strict']())['optional'](),'market_signals':z['object']({'supplyCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20similar\x20Services.'),'demandCount':z['number']()['int']()['min'](0x0)['describe']('Number\x20of\x20related\x20Demands.'),'avgPrice':z['string']()['optional']()['describe']('Market\x20average\x20price\x20(smallest-unit\x20string).'),'myPrice':z['string']()['optional']()['describe']('Current\x20price\x20(smallest-unit\x20string).'),'competitorPrices':z['array'](z['string']())['optional']()['describe']('Competitor\x20price\x20list\x20(smallest-unit\x20strings).'),'recentOrderCount':z['number']()['int']()['min'](0x0)['optional']()['describe']('Recent\x20order\x20count.'),'repeatCustomerRate':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('Repeat\x20customer\x20rate\x200-1.')})['strict']()['optional']()['describe']('Market\x20signals\x20for\x20the\x20dynamic_pricing\x20op\x20(non-mandatory\x20merchant\x20pricing\x20suggestion).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'service':z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'arbitrations':z['array'](z['string']())['describe']('Bound\x20Arbitration\x20object\x20addresses.'),'compensation_fund':z['string']()['describe']('Compensation\x20fund\x20balance\x20(smallest-unit\x20string).'),'machine':z['union']([z['string'](),z['null']()])['describe']('Bound\x20Machine\x20address\x20(null\x20=\x20none).'),'bPublished':z['boolean']()['describe']('Whether\x20published.')})['strict'](),'orders':z['array'](z['object']({'id':z['string'](),'buyer':z['string'](),'seller':z['string'](),'amount':z['string'](),'status':z['string'](),'allocation':z['union']([z['string'](),z['null']()])['optional']()['describe']('Allocation\x20object\x20(fund-closure\x20evidence).')})['strict']())['describe']('Order\x20history\x20evidence.'),'reviews':z['array'](z['object']({'reviewer':z['string'](),'rating':z['enum'](['like','dislike']),'orderRef':z['string']()['optional'](),'verified':z['boolean']()['optional'](),'timestamp':z['number']()['optional']()})['strict']())['describe']('Review\x20evidence.')})['strict'](),z['object']({'action':z['literal']('match_discover'),'description':z['string']()['describe']('Demand\x20description\x20—\x20drives\x20sensitivity\x20inference\x20+\x20demand\x20capability\x20extraction.'),'location':z['string']()['describe']('Demand-side\x20location\x20(city/region\x20raw\x20text,\x20or\x20\x27remote\x27).'),'region':z['object']({'country':z['string']()['optional'](),'province':z['string']()['optional']()['describe']('Province/state\x20—\x20enables\x20neighboring-city\x20(overlap)\x20matching\x20under\x20\x27near\x27.'),'city':z['string']()['optional']()})['strict']()['optional']()['describe']('AI-enriched\x20geographic\x20slots\x20for\x20`location`.'),'sensitivity':z['enum'](['strict','near','logistics'])['optional']()['describe']('Location\x20gate\x20hardness.\x20Omitted\x20→\x20inferred\x20from\x20description.'),'budget':z['string']()['optional']()['describe']('Demand\x20price\x20ceiling\x20(smallest-unit\x20string)\x20—\x20price\x20dimension\x20gate.'),'required_capabilities':z['array'](z['string']())['optional']()['describe']('Workflow\x20capabilities\x20the\x20demand\x20REQUIRES\x20(e.g.\x20has_arbitration,\x20has_compensation_fund,\x20has_milestone_nodes,\x20has_refund_path,\x20has_wip_verification,\x20has_messenger,\x20has_buy_guard).'),'category':z['string']()['optional']()['describe']('Category\x20match\x20rules\x20key\x20(e.g.\x20\x27life_service\x27,\x20\x27retail\x27)\x20—\x20applies\x20hard-constraint\x20filtering\x20+\x20re-anchors\x20the\x20six-dimension\x20weights\x20(15\x20§3).\x20Omit\x20=\x20generic\x20six-dimension\x20scoring.'),'coin_type':z['string']()['optional']()['describe']('Exact\x20coin\x20instantiation,\x20e.g.\x20\x270x2::wow::WOW\x27;\x20omit\x20=\x20ALL\x20Service<T>\x20generics.'),'name_contains':z['string']()['optional']()['describe']('Case-insensitive\x20substring\x20filter\x20on\x20service\x20name.'),'max_objects':z['number']()['int']()['min'](0x1)['max'](0x1f4)['optional']()['describe']('Enumeration\x20cap\x20before\x20filtering\x20(default\x20200).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).'),'no_cache':z['boolean']()['optional']()['describe']('Force\x20fresh\x20on-chain\x20enumeration\x20(bypass\x20the\x20120s\x20local\x20list\x20cache).'),'presenter_history':PresenterHistorySchema['optional'](),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.')})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'arbitration':z['object']({'object':z['string']()['optional']()['describe']('Arbitration\x20object\x20address.'),'fee':z['string']()['optional']()['describe']('Arbitration\x20fee\x20(smallest-unit\x20string).'),'balance':z['string']()['optional']()['describe']('Capital\x20pool\x20(smallest-unit\x20string).'),'voting_guard_count':z['number']()['int']()['min'](0x0)['optional']()['describe']('Number\x20of\x20voting\x20guards\x20(governance\x20distribution\x20proxy).'),'bPaused':z['boolean']()['optional'](),'location':z['string']()['optional'](),'has_verified_identity':z['boolean']()['optional']()['describe']('A7:\x20whether\x20the\x20arbitrator\x20has\x20a\x20verified\x20on-chain\x20Personal\x20identity\x20(unknown\x20when\x20omitted\x20→\x20neutral).')})['strict'](),'history':z['array'](z['object']({'status':z['string']()['optional']()['describe']('Arb\x20status\x20(e.g.\x20\x27Arbitrated\x27,\x20\x27Finished\x27,\x20\x27Objectionable\x27).'),'time':z['number']()['optional']()['describe']('Dispute\x20creation\x20time\x20(ms\x20epoch).'),'resolved_time':z['number']()['optional']()['describe']('Resolution\x20time\x20(ms\x20epoch).'),'indemnity_amount':z['string']()['optional']()['describe']('Compensation\x20paid\x20(smallest-unit\x20string;\x20\x270\x27/absent\x20=\x20none).'),'feedback_positive':z['boolean']()['optional'](),'objected':z['boolean']()['optional']()})['strict']())['optional']()['describe']('Historical\x20Arb\x20cases\x20(pre-aggregated;\x20the\x20on-chain\x20reverse\x20index\x20is\x20a\x20wow\x20data\x20layer\x20deliverable).'),'entity_votes':z['object']({'like_ratio':z['number']()['min'](0x0)['max'](0x1)['optional']()['describe']('0-1\x20community\x20like\x20ratio.'),'favor':z['boolean']()['optional']()['describe']('Whether\x20peers\x20favorited\x20this\x20entity.')})['strict']()['optional'](),'fee_median':z['string']()['optional']()['describe']('Market\x20fee\x20median\x20(smallest-unit\x20string)\x20for\x20the\x20fee-reasonableness\x20rule.'),'injection':UserInjectionSchema['optional'](),'account':z['string']()['optional']()['describe']('Account\x20address;\x20its\x20persona\x20is\x20auto-applied\x20as\x20the\x20base\x20injection.'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).\x20Used\x20to\x20auto-fetch\x20real\x20Arb\x20history\x20when\x20`history`\x20is\x20omitted.')})['strict'](),z['object']({'action':z['literal']('account_events'),'account':z['string']()['optional']()['describe']('Account\x20address\x20to\x20watch\x20for\x20(default\x20account\x20when\x20omitted).'),'categories':z['array'](z['string']())['optional']()['describe']('Watcher\x20ids\x20to\x20run\x20(omit\x20=\x20all\x20registered\x20watchers).'),'reviews':z['array'](z['object']({'reviewer':z['string']()['describe']('Reviewer\x20address.'),'rating':z['enum'](['like','dislike']),'tags':z['array'](z['string']())['optional'](),'comment':z['string']()['optional'](),'orderRef':z['string']()['optional']()['describe']('Associated\x20order\x20id\x20—\x20the\x20credential\x20for\x20no-order-no-review\x20verification.'),'timestamp':z['number']()['optional']()['describe']('Submission\x20time\x20(ms\x20epoch).'),'verified':z['boolean']()['optional']()['describe']('Whether\x20the\x20review\x20carries\x20a\x20completed-order\x20credential;\x20recomputed\x20when\x20order_history\x20is\x20supplied.')})['strict']())['optional']()['describe']('Review\x20rows\x20(from\x20a\x20Service\x27s\x20ReviewRepository,\x20via\x20onchain_table_data)\x20—\x20enables\x20the\x20reputation_integrity\x20watcher\x20(verification,\x20stats,\x20manipulation\x20detection).'),'order_history':z['array'](z['object']({'id':z['string']()['describe']('Order\x20object\x20id.'),'status':z['string']()['describe']('Order\x20status\x20(e.g.\x20\x27completed\x27,\x20\x27success\x27).')})['strict']())['optional']()['describe']('Order\x20history\x20used\x20to\x20re-derive\x20review\x20credentials\x20(no-order-no-review).'),'context_network':z['string']()['optional']()['describe']('Network\x20(defaults\x20to\x20the\x20user\x27s\x20current\x20network\x20when\x20omitted).')})['strict']()]);export const EvaluationOperationOutputSchema=z['object']({'result':z['discriminatedUnion']('action',[z['object']({'action':z['literal']('arb_game'),'status':ArbStatusEnum,'perspective':ArbPerspectiveEnum,'actions':z['array'](ArbGameActionSchema),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('node_game'),'current_node':z['string'](),'perspective':PerspectiveEnum,'actions':z['array'](NodeGameActionSchema),'cooperation':CooperationInfoSchema['optional'](),'value_at_stake':z['string']()['optional']()['describe']('Escrowed\x20order\x20amount\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20value\x20at\x20stake.'),'risk_exposure':z['string']()['optional']()['describe']('Compensation_fund\x20(smallest-unit\x20string)\x20—\x20the\x20monetary\x20risk\x20exposure\x20backing\x20indemnity.'),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('capability_gap'),'report':CapabilityGapReportSchema})['strict'](),z['object']({'action':z['literal']('compose_service'),'plan':CompositePlanSchema})['strict'](),z['object']({'action':z['literal']('demand_match'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema,'order':OperationBridgeSchema['describe']('Transaction-formation\x20bridge:\x20create\x20the\x20Order\x20on\x20this\x20service\x20(service.order_new)\x20once\x20selected.')})['strict']())})['strict'](),z['object']({'action':z['literal']('service_match'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())})['strict'](),z['object']({'action':z['literal']('path_reasoning'),'current_node':z['string'](),'perspective':PerspectiveEnum,'ranked_paths':z['array'](PathOutputSchema),'optimal_path':PathOutputSchema['optional'](),'foregone_terminals':z['array'](z['string']()),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('evidence_review'),'review':z['object']({'status':z['enum'](['auto_pass','auto_reject','manual_review'])['describe']('Review\x20gate\x20verdict.'),'reason':z['string']()['describe']('Deterministic\x20reason\x20for\x20the\x20verdict.')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_services'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'services':z['array'](z['object']({'object':z['string']()['describe']('Service\x20object\x20address.'),'name':z['string']()['optional'](),'location':z['string']()['optional']()['describe']('Service.location\x20raw\x20string;\x20absent\x20=\x20merchant\x20location\x20hygiene\x20issue.'),'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict']())['describe']('Services\x20ranked\x20by\x20location\x20fit\x20(satisfied\x20first,\x20score\x20desc).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']())['describe']('Terms\x20to\x20widen\x20enumeration\x20with\x20(location_any).'),'ai_enrichment_note':z['string']()['describe']('How\x20the\x20AI\x20should\x20expand\x20scope\x20(public\x20web\x20data,\x20consent-gated).')})['strict']()})['strict'](),z['object']({'action':z['literal']('discover_demands'),'demands':z['array'](z['object']({'object':z['string']()['describe']('Demand\x20object\x20address.'),'description':z['string']()['describe']('Demand\x20description.'),'location':z['string']()['describe']('Demand\x20location.'),'presenters_count':z['number']()['describe']('Number\x20of\x20merchants\x20who\x20already\x20presented\x20to\x20this\x20demand.'),'permission':z['string']()['describe']('Demand\x20owner\x20permission\x20object.')})['strict']())['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20(client-side\x20location\x20filtered).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('demand_present'),'matches':z['array'](z['object']({'demand':DemandExtractInputSchema,'result':EvaluationResultSchema,'next':OperationBridgeSchema})['strict']())['describe']('Demands\x20matched\x20to\x20the\x20service\x20(score\x20desc),\x20each\x20with\x20its\x20present\x20path.'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Demands\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).')})['strict'](),z['object']({'action':z['literal']('market_operations'),'result':z['union']([z['object']({'due_diligence':z['number']()['int']()['min'](0x0),'orders':z['number']()['int']()['min'](0x0),'completed':z['number']()['int']()['min'](0x0),'reviews':z['number']()['int']()['min'](0x0),'dd_to_order_rate':z['number'](),'order_completion_rate':z['number'](),'completion_to_review_rate':z['number']()})['strict'](),z['object']({'referrals':z['number']()['int']()['min'](0x0),'closed_referrals':z['number']()['int']()['min'](0x0),'gmv':z['string'](),'by_referrer':z['array'](z['object']({'referrer':z['string'](),'referrals':z['number']()['int']()['min'](0x0),'gmv':z['string']()})['strict']())})['strict'](),z['array'](z['object']({'customer':z['string'](),'order_count':z['number']()['int']()['min'](0x0),'last_order_time':z['number']()['nullable'](),'dispute_count':z['number']()['int']()['min'](0x0)})['strict']()),z['object']({'action':z['enum'](['increase','decrease','maintain']),'suggestedRange':z['object']({'min':z['string'](),'max':z['string']()})['strict']()['optional'](),'reason':z['string'](),'confidence':z['number']()['min'](0x0)['max'](0x1),'adjustmentPercent':z['number']()['optional']()})['strict']()])})['strict'](),z['object']({'action':z['literal']('market_metrics'),'total_services':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Service\x20objects\x20enumerated.'),'active_services':z['number']()['int']()['min'](0x0)['describe']('Published\x20and\x20not\x20paused\x20Service\x20objects.'),'total_demands':z['number']()['int']()['min'](0x0)['describe']('All\x20shared\x20Demand\x20objects\x20enumerated.'),'open_demands':z['number']()['int']()['min'](0x0)['describe']('Demands\x20with\x20no\x20presenter\x20yet.'),'total_arbs':z['number']()['int']()['min'](0x0)['describe']('All\x20Arb\x20dispute\x20cases\x20enumerated.'),'open_arbs':z['number']()['int']()['min'](0x0)['describe']('Arb\x20cases\x20not\x20yet\x20Finished/Withdrawn.'),'supply_demand_ratio':z['number']()['nullable']()['describe']('open_demands\x20/\x20active_services\x20(null\x20when\x20no\x20active\x20supply).'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.'),'order_flow':z['object']({'order_count':z['number']()['int']()['min'](0x0)['describe']('Recent\x20order\x20count\x20(finite\x20window).'),'gmv':z['string']()['describe']('Recent\x20GMV\x20—\x20sum\x20of\x20order\x20amounts\x20in\x20smallest-unit\x20(bigint\x20as\x20string).'),'top_services':z['array'](z['object']({'service':z['string']()['describe']('Service\x20address.'),'orders':z['number']()['int']()['min'](0x0)['describe']('Order\x20count\x20for\x20this\x20service\x20in\x20the\x20window.')})['strict']())['describe']('Per-service\x20order\x20count,\x20top-N\x20by\x20volume.'),'window':z['literal']('recent')['describe']('Honest\x20window\x20label:\x20events\x20are\x20paged,\x20not\x20full-history.'),'computed_at':z['number']()['describe']('Unix\x20ms\x20when\x20computed.')})['strict']()['describe']('Recent\x20order-flow\x20scale\x20metrics\x20(finite\x20window;\x20full\x20history\x20requires\x20indexer).')})['strict'](),z['object']({'action':z['literal']('anti_cheat'),'signals':z['array'](z['object']({'kind':z['enum'](['fake_order','fake_review','shell_merchant','reputation_trade']),'code':z['enum'](['self_buy','reciprocal_loop','no_allocation','reviews_unverified','reviewer_duplicate','review_time_burst','shell_no_arbitration','shell_funded_no_arbitration','shell_no_machine','reputation_bound'])['describe']('Stable\x20machine-readable\x20signal\x20discriminator.'),'severity':z['enum'](['high','medium','low']),'description':z['string'](),'refs':z['array'](z['string']())['optional']()['describe']('Object\x20addresses\x20backing\x20the\x20signal\x20(orders/services).')})['strict']())['describe']('Detected\x20anti-cheat\x20signals\x20(pluggable\x20negative\x20factors).')})['strict'](),z['object']({'action':z['literal']('match_discover'),'sensitivity':z['enum'](['strict','near','logistics'])['describe']('Sensitivity\x20in\x20effect\x20(explicit\x20or\x20inferred).'),'inference_signals':z['array'](z['string']())['describe']('Keyword\x20signals\x20that\x20drove\x20sensitivity\x20inference\x20(empty\x20when\x20explicit).'),'matches':z['array'](z['object']({'service':ServiceExtractInputSchema,'location':z['object']({'relation':z['enum'](['exact','contains','overlap','compatible','mismatch']),'satisfied':z['boolean']()['describe']('Passed\x20the\x20location\x20gate\x20under\x20the\x20sensitivity.'),'score':z['number']()['min'](0x0)['max'](0x1),'reason':z['string']()})['strict'](),'result':EvaluationResultSchema})['strict']())['describe']('Location-gated\x20services\x20with\x20their\x206-dimension\x20match\x20result\x20(scored\x20only\x20when\x20the\x20location\x20gate\x20passed).'),'total_enumerated':z['number']()['int']()['min'](0x0)['describe']('Shared\x20Services\x20enumerated\x20on-chain\x20before\x20filtering.'),'has_more':z['boolean']()['describe']('True\x20=\x20enumeration\x20truncated\x20at\x20max_objects\x20(partial\x20universe).'),'scope_advice':z['object']({'search_terms':z['array'](z['string']()),'ai_enrichment_note':z['string']()})['strict']()})['strict'](),z['object']({'action':z['literal']('arbitration_score'),'trust':EvaluationResultSchema,'fairness':EvaluationResultSchema,'combined':z['number']()['int']()['min'](0x0)['max'](0x64),'summary':z['string']()})['strict'](),z['object']({'action':z['literal']('account_events'),'events':z['array'](z['object']({'id':z['string'](),'category':z['string'](),'priority':z['enum'](['required','recommended','info','reminder']),'title':z['string'](),'message':z['string'](),'action':z['string']()['optional'](),'object_ref':z['string']()['optional'](),'timestamp':z['number']()})['strict']())})['strict']()])['describe']('Evaluation\x20result\x20—\x20shape\x20depends\x20on\x20action')})['strict']();
|
|
@@ -186,18 +186,7 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
186
186
|
intent: z.ZodOptional<z.ZodString>;
|
|
187
187
|
project_name: z.ZodOptional<z.ZodString>;
|
|
188
188
|
project_description: z.ZodOptional<z.ZodString>;
|
|
189
|
-
project_industry: z.ZodOptional<z.
|
|
190
|
-
custom: "custom";
|
|
191
|
-
service: "service";
|
|
192
|
-
freelance: "freelance";
|
|
193
|
-
rental: "rental";
|
|
194
|
-
education: "education";
|
|
195
|
-
travel: "travel";
|
|
196
|
-
subscription: "subscription";
|
|
197
|
-
retail: "retail";
|
|
198
|
-
general: "general";
|
|
199
|
-
retail_d2c: "retail_d2c";
|
|
200
|
-
}>>;
|
|
189
|
+
project_industry: z.ZodOptional<z.ZodString>;
|
|
201
190
|
action: z.ZodLiteral<"analyze_intent">;
|
|
202
191
|
}, z.core.$strict>, z.ZodObject<{
|
|
203
192
|
severity_threshold: z.ZodOptional<z.ZodEnum<{
|
|
@@ -228,18 +217,7 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
228
217
|
intent: z.ZodOptional<z.ZodString>;
|
|
229
218
|
project_name: z.ZodOptional<z.ZodString>;
|
|
230
219
|
project_description: z.ZodOptional<z.ZodString>;
|
|
231
|
-
project_industry: z.ZodOptional<z.
|
|
232
|
-
custom: "custom";
|
|
233
|
-
service: "service";
|
|
234
|
-
freelance: "freelance";
|
|
235
|
-
rental: "rental";
|
|
236
|
-
education: "education";
|
|
237
|
-
travel: "travel";
|
|
238
|
-
subscription: "subscription";
|
|
239
|
-
retail: "retail";
|
|
240
|
-
general: "general";
|
|
241
|
-
retail_d2c: "retail_d2c";
|
|
242
|
-
}>>;
|
|
220
|
+
project_industry: z.ZodOptional<z.ZodString>;
|
|
243
221
|
action: z.ZodLiteral<"aggregate_risks">;
|
|
244
222
|
project: z.ZodOptional<z.ZodString>;
|
|
245
223
|
version: z.ZodOptional<z.ZodString>;
|
|
@@ -260,17 +238,17 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
260
238
|
reward: "reward";
|
|
261
239
|
permission: "permission";
|
|
262
240
|
guard: "guard";
|
|
263
|
-
order: "order";
|
|
264
241
|
service: "service";
|
|
265
|
-
|
|
242
|
+
allocation: "allocation";
|
|
266
243
|
treasury: "treasury";
|
|
267
|
-
|
|
244
|
+
order: "order";
|
|
245
|
+
machine: "machine";
|
|
268
246
|
progress: "progress";
|
|
269
|
-
|
|
247
|
+
repository: "repository";
|
|
248
|
+
personal: "personal";
|
|
270
249
|
contact: "contact";
|
|
271
|
-
|
|
250
|
+
demand: "demand";
|
|
272
251
|
arb: "arb";
|
|
273
|
-
personal: "personal";
|
|
274
252
|
proof: "proof";
|
|
275
253
|
}>;
|
|
276
254
|
entry_id: z.ZodString;
|
|
@@ -342,18 +320,7 @@ export declare const GoalOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
342
320
|
intent: z.ZodOptional<z.ZodString>;
|
|
343
321
|
project_name: z.ZodOptional<z.ZodString>;
|
|
344
322
|
project_description: z.ZodOptional<z.ZodString>;
|
|
345
|
-
project_industry: z.ZodOptional<z.
|
|
346
|
-
custom: "custom";
|
|
347
|
-
service: "service";
|
|
348
|
-
freelance: "freelance";
|
|
349
|
-
rental: "rental";
|
|
350
|
-
education: "education";
|
|
351
|
-
travel: "travel";
|
|
352
|
-
subscription: "subscription";
|
|
353
|
-
retail: "retail";
|
|
354
|
-
general: "general";
|
|
355
|
-
retail_d2c: "retail_d2c";
|
|
356
|
-
}>>;
|
|
323
|
+
project_industry: z.ZodOptional<z.ZodString>;
|
|
357
324
|
action: z.ZodLiteral<"merchant_guide">;
|
|
358
325
|
}, z.core.$strict>], "action">;
|
|
359
326
|
export type GoalOperationInput = z.infer<typeof GoalOperationInputSchema>;
|