@wowok/agent-mcp 2.6.3 → 2.6.6
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/README.md +13 -9
- package/dist/customer/customer-advice.d.ts +31 -0
- package/dist/customer/customer-advice.js +129 -0
- package/dist/customer/index.d.ts +2 -0
- package/dist/customer/index.js +2 -0
- package/dist/customer/info-puzzle.d.ts +8 -1
- package/dist/customer/info-puzzle.js +30 -5
- package/dist/customer/order-monitor.d.ts +2 -0
- package/dist/customer/order-monitor.js +3 -2
- package/dist/customer/post-purchase.d.ts +2 -0
- package/dist/customer/post-purchase.js +6 -5
- package/dist/customer/preorder-compare.d.ts +24 -0
- package/dist/customer/preorder-compare.js +34 -0
- package/dist/customer/reminder-system.d.ts +2 -0
- package/dist/customer/reminder-system.js +2 -1
- package/dist/customer/risk-assessment.js +4 -3
- package/dist/customer/types.d.ts +5 -0
- package/dist/examples/arbitration-dispute-create.json +41 -0
- package/dist/examples/arbitration-vote-weighted.json +35 -0
- package/dist/examples/arbitration-voting-guard-add.json +38 -0
- package/dist/examples/demand-present-service.json +33 -0
- package/dist/examples/gen-passport-verify-guard.json +48 -0
- package/dist/examples/guard-template-balance-check.json +36 -15
- package/dist/examples/guard-template-time-lock.json +33 -12
- package/dist/examples/insurance-guard-claim-timelock.json +75 -0
- package/dist/examples/insurance-guard-withdraw-allocation.json +96 -0
- package/dist/examples/insurance-machine-create-publish.json +75 -0
- package/dist/examples/insurance-service-allocators-publish.json +56 -0
- package/dist/examples/machine-multisig-threshold.json +86 -0
- package/dist/examples/machine-template-7node-rental.json +99 -94
- package/dist/examples/payment-scenario-bound.json +45 -0
- package/dist/examples/rental-ziroom-machine-create.json +126 -114
- package/dist/examples/rental-ziroom-permission-create.json +10 -3
- package/dist/examples/rental-ziroom-service-create.json +27 -18
- package/dist/examples/retail-adv-guard-customer-win-create.json +80 -0
- package/dist/examples/retail-adv-guard-messenger-proof-create.json +65 -0
- package/dist/examples/retail-adv-guard-reward-timeout-create.json +92 -0
- package/dist/examples/retail-adv-reward-guard-add.json +51 -0
- package/dist/examples/retail-myshop-allocation-activate.json +55 -0
- package/dist/examples/retail-myshop-arbitration-create.json +40 -0
- package/dist/examples/retail-myshop-contact-create.json +43 -0
- package/dist/examples/retail-myshop-order-create.json +56 -0
- package/dist/examples/retail-myshop-progress-operate.json +38 -0
- package/dist/examples/retail-myshop-reward-create.json +35 -0
- package/dist/examples/service-discount-issue.json +46 -0
- package/dist/examples/threebody-guard-create.json +56 -0
- package/dist/examples/threebody-machine-create.json +72 -0
- package/dist/examples/threebody-permission-create.json +38 -0
- package/dist/examples/threebody-service-allocators.json +49 -0
- package/dist/examples/travel-guard-time-lock.json +69 -0
- package/dist/examples/travel-guard-weather-oracle.json +70 -0
- package/dist/examples/travel-machine-create.json +136 -0
- package/dist/examples/travel-repository-create.json +47 -0
- package/dist/examples/travel-service-create.json +102 -0
- package/dist/examples/travel-treasury-create.json +34 -0
- package/dist/examples/treasury-deposit.json +37 -0
- package/dist/examples/treasury-withdraw.json +38 -0
- package/dist/extensions/business-modules.d.ts +49 -0
- package/dist/extensions/business-modules.js +287 -0
- package/dist/extensions/capability-manifest.js +192 -5
- package/dist/extensions/constraint-registry.js +3 -1
- package/dist/extensions/modes.js +10 -4
- package/dist/extensions/registry.d.ts +14 -9
- package/dist/extensions/registry.js +69 -14
- package/dist/extensions/types.d.ts +1 -0
- package/dist/knowledge/fund-layer.d.ts +67 -1
- package/dist/knowledge/fund-layer.js +561 -12
- package/dist/knowledge/guard-templates.d.ts +10 -0
- package/dist/knowledge/guard-templates.js +50 -0
- package/dist/knowledge/index.d.ts +2 -2
- package/dist/knowledge/index.js +2 -2
- package/dist/knowledge/machine-risk.js +4 -1
- package/dist/knowledge/progress-context.js +1 -1
- package/dist/knowledge/progress-ledger.js +3 -3
- package/dist/knowledge/progress-templates.js +1 -1
- package/dist/knowledge/progress-translation.js +1 -1
- package/dist/knowledge/safety-rules.d.ts +83 -1
- package/dist/knowledge/safety-rules.js +166 -2
- package/dist/knowledge/scenario-modes.d.ts +1 -1
- package/dist/knowledge/scenario-modes.js +13 -11
- package/dist/knowledge/template-registry.d.ts +48 -0
- package/dist/knowledge/template-registry.js +341 -0
- package/dist/knowledge/tool-constraints.js +6 -6
- package/dist/knowledge/tools-reference.js +11 -8
- package/dist/participation/merchant-interest.d.ts +32 -0
- package/dist/participation/merchant-interest.js +100 -0
- package/dist/participation/radar-core.d.ts +104 -0
- package/dist/participation/radar-core.js +269 -0
- package/dist/project/context-assembly.js +8 -0
- package/dist/project/edit-planner.js +27 -56
- package/dist/project/evaluation.d.ts +36 -0
- package/dist/project/evaluation.js +422 -56
- package/dist/project/game-theory.d.ts +43 -0
- package/dist/project/game-theory.js +177 -0
- package/dist/project/graph-builder.js +1 -0
- package/dist/project/handlers.d.ts +38 -0
- package/dist/project/handlers.js +65 -35
- package/dist/project/intent-analyzer.d.ts +71 -0
- package/dist/project/intent-analyzer.js +149 -0
- package/dist/project/machine-nodes.d.ts +2 -0
- package/dist/project/machine-nodes.js +36 -0
- package/dist/project/merchant-guide.d.ts +165 -0
- package/dist/project/merchant-guide.js +264 -0
- package/dist/project/mode-actions.d.ts +199 -0
- package/dist/project/mode-actions.js +309 -0
- package/dist/project/participation-radar.d.ts +18 -0
- package/dist/project/participation-radar.js +428 -0
- package/dist/project/pipeline-actions.d.ts +101 -0
- package/dist/project/pipeline-actions.js +109 -0
- package/dist/project/semantic-graph.d.ts +95 -0
- package/dist/project/semantic-graph.js +245 -0
- package/dist/schema/call/allocation.d.ts +11 -11
- package/dist/schema/call/allocation.js +11 -1
- package/dist/schema/call/arbitration.d.ts +21 -21
- package/dist/schema/call/arbitration.js +17 -9
- package/dist/schema/call/base.d.ts +2 -2
- package/dist/schema/call/base.js +1 -1
- package/dist/schema/call/bridge.d.ts +127 -127
- package/dist/schema/call/bridge.js +12 -12
- package/dist/schema/call/contact.d.ts +3 -3
- package/dist/schema/call/demand.d.ts +3 -3
- package/dist/schema/call/guard.d.ts +11 -11
- package/dist/schema/call/guard.js +1 -1
- package/dist/schema/call/machine.d.ts +216 -21
- package/dist/schema/call/machine.js +1 -1
- package/dist/schema/call/order.d.ts +7 -7
- package/dist/schema/call/payment.d.ts +3 -3
- package/dist/schema/call/permission.d.ts +3 -3
- package/dist/schema/call/personal.d.ts +337 -3
- package/dist/schema/call/personal.js +10 -0
- package/dist/schema/call/progress.d.ts +177 -9
- package/dist/schema/call/progress.js +7 -3
- package/dist/schema/call/proof.d.ts +6 -6
- package/dist/schema/call/repository.d.ts +3 -3
- package/dist/schema/call/reward.d.ts +57 -57
- package/dist/schema/call/semantic.js +41 -1
- package/dist/schema/call/service.d.ts +114 -114
- package/dist/schema/call/service.js +11 -2
- package/dist/schema/call/treasury.d.ts +57 -57
- package/dist/schema/messenger/index.js +4 -1
- package/dist/schema/operations.d.ts +713 -291
- package/dist/schema/operations.js +33 -0
- package/dist/schema/project/index.d.ts +4635 -100
- package/dist/schema/project/index.js +868 -1
- package/dist/schema/query/index.d.ts +363 -19
- package/dist/schema/query/index.js +25 -3
- package/dist/schema/schema-query/index.d.ts +13 -7
- package/dist/schema/schema-query/index.js +29 -5
- package/dist/schema/trust/index.d.ts +1012 -6
- package/dist/schema/trust/index.js +212 -11
- package/dist/schema/utils/skills-recommendation.js +1 -0
- package/dist/schema-query/index.d.ts +4 -1
- package/dist/schema-query/index.js +255 -1
- package/dist/schemas/bridge_operation.schema.json +14 -7
- package/dist/schemas/guard2file.schema.json +2 -0
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/machineNode2file.schema.json +2 -0
- package/dist/schemas/messenger_operation.schema.json +1 -1
- package/dist/schemas/onchain_operations.schema.json +143 -15
- package/dist/schemas/onchain_operations_allocation.schema.json +2 -1
- package/dist/schemas/onchain_operations_arbitration.schema.json +7 -5
- package/dist/schemas/onchain_operations_contact.schema.json +1 -0
- package/dist/schemas/onchain_operations_demand.schema.json +1 -0
- package/dist/schemas/onchain_operations_gen_passport.schema.json +2 -0
- package/dist/schemas/onchain_operations_gen_proof.schema.json +2 -0
- package/dist/schemas/onchain_operations_guard.schema.json +578 -0
- package/dist/schemas/onchain_operations_machine.schema.json +1 -0
- package/dist/schemas/onchain_operations_order.schema.json +4 -3
- package/dist/schemas/onchain_operations_payment.schema.json +1 -0
- package/dist/schemas/onchain_operations_permission.schema.json +1 -0
- package/dist/schemas/onchain_operations_personal.schema.json +37 -0
- package/dist/schemas/onchain_operations_progress.schema.json +90 -3
- package/dist/schemas/onchain_operations_proof.schema.json +1 -0
- package/dist/schemas/onchain_operations_repository.schema.json +1 -0
- package/dist/schemas/onchain_operations_reward.schema.json +1 -0
- package/dist/schemas/onchain_operations_service.schema.json +4 -3
- package/dist/schemas/onchain_operations_treasury.schema.json +1 -0
- package/dist/schemas/project_operation.output.json +2243 -1
- package/dist/schemas/project_operation.schema.json +683 -1
- package/dist/schemas/query_toolkit.output.json +1 -1
- package/dist/schemas/query_toolkit.schema.json +37 -0
- package/dist/schemas/schema_query.output.json +1 -1
- package/dist/schemas/schema_query.schema.json +30 -5
- package/dist/schemas/trust_score.output.json +392 -1
- package/dist/schemas/trust_score.schema.json +275 -1
- package/dist/tools/handlers/onchain.js +73 -8
- package/dist/tools/handlers/project.js +46 -0
- package/dist/tools/handlers/query.js +117 -2
- package/dist/tools/handlers/schema-query.js +41 -0
- package/dist/tools/handlers/trust.js +192 -6
- package/dist/tools/index.js +52 -9
- package/dist/tools/wrap.js +194 -15
- package/package.json +2 -2
|
@@ -3,20 +3,311 @@ export declare const TrustScoreInputSchema: z.ZodObject<{
|
|
|
3
3
|
service: z.ZodEffects<z.ZodString, string, string>;
|
|
4
4
|
order_amount: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
5
5
|
depth: z.ZodOptional<z.ZodEnum<["browse", "evaluate", "preorder"]>>;
|
|
6
|
+
industry: z.ZodOptional<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>>;
|
|
7
|
+
preferences: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
price_sensitivity: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
|
|
9
|
+
budget_range: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
min: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
11
|
+
max: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
min: string | number;
|
|
14
|
+
max: string | number;
|
|
15
|
+
}, {
|
|
16
|
+
min: string | number;
|
|
17
|
+
max: string | number;
|
|
18
|
+
}>>;
|
|
19
|
+
value_orientation: z.ZodOptional<z.ZodEnum<["quality", "balanced", "budget"]>>;
|
|
20
|
+
discount_sensitivity: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
delivery_speed_priority: z.ZodOptional<z.ZodEnum<["urgent", "normal", "flexible"]>>;
|
|
22
|
+
max_acceptable_cycle: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
response_time_expectation: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
merchant_preference: z.ZodOptional<z.ZodEnum<["established", "emerging", "neutral"]>>;
|
|
25
|
+
min_order_history: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
bargain_hunting: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
reward_seeking: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
referral_participation: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
communication_style: z.ZodOptional<z.ZodEnum<["formal", "casual", "friendly"]>>;
|
|
30
|
+
transparency_demand: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
after_sales_expectation: z.ZodOptional<z.ZodEnum<["full", "basic", "minimal"]>>;
|
|
32
|
+
risk_appetite: z.ZodOptional<z.ZodEnum<["conservative", "balanced", "aggressive"]>>;
|
|
33
|
+
min_trust_score: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
require_arbitration: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
require_compensation_fund: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
preferred_industries: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
37
|
+
preferred_tokens: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
38
|
+
preferred_merchants: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
39
|
+
}, "strict", z.ZodTypeAny, {
|
|
40
|
+
risk_appetite?: "balanced" | "conservative" | "aggressive" | undefined;
|
|
41
|
+
delivery_speed_priority?: "urgent" | "normal" | "flexible" | undefined;
|
|
42
|
+
after_sales_expectation?: "full" | "basic" | "minimal" | undefined;
|
|
43
|
+
price_sensitivity?: "low" | "high" | "medium" | undefined;
|
|
44
|
+
budget_range?: {
|
|
45
|
+
min: string | number;
|
|
46
|
+
max: string | number;
|
|
47
|
+
} | undefined;
|
|
48
|
+
value_orientation?: "budget" | "quality" | "balanced" | undefined;
|
|
49
|
+
discount_sensitivity?: number | undefined;
|
|
50
|
+
max_acceptable_cycle?: number | undefined;
|
|
51
|
+
response_time_expectation?: number | undefined;
|
|
52
|
+
merchant_preference?: "established" | "emerging" | "neutral" | undefined;
|
|
53
|
+
min_order_history?: number | undefined;
|
|
54
|
+
bargain_hunting?: number | undefined;
|
|
55
|
+
reward_seeking?: boolean | undefined;
|
|
56
|
+
referral_participation?: boolean | undefined;
|
|
57
|
+
communication_style?: "formal" | "casual" | "friendly" | undefined;
|
|
58
|
+
transparency_demand?: number | undefined;
|
|
59
|
+
min_trust_score?: number | undefined;
|
|
60
|
+
require_arbitration?: boolean | undefined;
|
|
61
|
+
require_compensation_fund?: boolean | undefined;
|
|
62
|
+
preferred_industries?: string[] | undefined;
|
|
63
|
+
preferred_tokens?: string[] | undefined;
|
|
64
|
+
preferred_merchants?: string[] | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
risk_appetite?: "balanced" | "conservative" | "aggressive" | undefined;
|
|
67
|
+
delivery_speed_priority?: "urgent" | "normal" | "flexible" | undefined;
|
|
68
|
+
after_sales_expectation?: "full" | "basic" | "minimal" | undefined;
|
|
69
|
+
price_sensitivity?: "low" | "high" | "medium" | undefined;
|
|
70
|
+
budget_range?: {
|
|
71
|
+
min: string | number;
|
|
72
|
+
max: string | number;
|
|
73
|
+
} | undefined;
|
|
74
|
+
value_orientation?: "budget" | "quality" | "balanced" | undefined;
|
|
75
|
+
discount_sensitivity?: number | undefined;
|
|
76
|
+
max_acceptable_cycle?: number | undefined;
|
|
77
|
+
response_time_expectation?: number | undefined;
|
|
78
|
+
merchant_preference?: "established" | "emerging" | "neutral" | undefined;
|
|
79
|
+
min_order_history?: number | undefined;
|
|
80
|
+
bargain_hunting?: number | undefined;
|
|
81
|
+
reward_seeking?: boolean | undefined;
|
|
82
|
+
referral_participation?: boolean | undefined;
|
|
83
|
+
communication_style?: "formal" | "casual" | "friendly" | undefined;
|
|
84
|
+
transparency_demand?: number | undefined;
|
|
85
|
+
min_trust_score?: number | undefined;
|
|
86
|
+
require_arbitration?: boolean | undefined;
|
|
87
|
+
require_compensation_fund?: boolean | undefined;
|
|
88
|
+
preferred_industries?: string[] | undefined;
|
|
89
|
+
preferred_tokens?: string[] | undefined;
|
|
90
|
+
preferred_merchants?: string[] | undefined;
|
|
91
|
+
}>>;
|
|
92
|
+
user_metrics: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
label: z.ZodString;
|
|
96
|
+
evaluator: z.ZodEnum<["threshold", "ratio", "boolean", "presence", "regex_match", "custom_query"]>;
|
|
97
|
+
params: z.ZodObject<{
|
|
98
|
+
path: z.ZodOptional<z.ZodString>;
|
|
99
|
+
threshold: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
100
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
102
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
104
|
+
query_key: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, "strict", z.ZodTypeAny, {
|
|
106
|
+
path?: string | undefined;
|
|
107
|
+
min?: number | undefined;
|
|
108
|
+
max?: number | undefined;
|
|
109
|
+
threshold?: string | number | undefined;
|
|
110
|
+
invert?: boolean | undefined;
|
|
111
|
+
pattern?: string | undefined;
|
|
112
|
+
query_key?: string | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
path?: string | undefined;
|
|
115
|
+
min?: number | undefined;
|
|
116
|
+
max?: number | undefined;
|
|
117
|
+
threshold?: string | number | undefined;
|
|
118
|
+
invert?: boolean | undefined;
|
|
119
|
+
pattern?: string | undefined;
|
|
120
|
+
query_key?: string | undefined;
|
|
121
|
+
}>;
|
|
122
|
+
weight: z.ZodNumber;
|
|
123
|
+
advice_on_fail: z.ZodOptional<z.ZodString>;
|
|
124
|
+
advice_on_pass: z.ZodOptional<z.ZodString>;
|
|
125
|
+
}, "strict", z.ZodTypeAny, {
|
|
126
|
+
params: {
|
|
127
|
+
path?: string | undefined;
|
|
128
|
+
min?: number | undefined;
|
|
129
|
+
max?: number | undefined;
|
|
130
|
+
threshold?: string | number | undefined;
|
|
131
|
+
invert?: boolean | undefined;
|
|
132
|
+
pattern?: string | undefined;
|
|
133
|
+
query_key?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
name: string;
|
|
136
|
+
label: string;
|
|
137
|
+
weight: number;
|
|
138
|
+
evaluator: "boolean" | "threshold" | "ratio" | "presence" | "regex_match" | "custom_query";
|
|
139
|
+
advice_on_fail?: string | undefined;
|
|
140
|
+
advice_on_pass?: string | undefined;
|
|
141
|
+
}, {
|
|
142
|
+
params: {
|
|
143
|
+
path?: string | undefined;
|
|
144
|
+
min?: number | undefined;
|
|
145
|
+
max?: number | undefined;
|
|
146
|
+
threshold?: string | number | undefined;
|
|
147
|
+
invert?: boolean | undefined;
|
|
148
|
+
pattern?: string | undefined;
|
|
149
|
+
query_key?: string | undefined;
|
|
150
|
+
};
|
|
151
|
+
name: string;
|
|
152
|
+
label: string;
|
|
153
|
+
weight: number;
|
|
154
|
+
evaluator: "boolean" | "threshold" | "ratio" | "presence" | "regex_match" | "custom_query";
|
|
155
|
+
advice_on_fail?: string | undefined;
|
|
156
|
+
advice_on_pass?: string | undefined;
|
|
157
|
+
}>, "many">;
|
|
158
|
+
adjustment_cap: z.ZodOptional<z.ZodNumber>;
|
|
159
|
+
}, "strict", z.ZodTypeAny, {
|
|
160
|
+
metrics: {
|
|
161
|
+
params: {
|
|
162
|
+
path?: string | undefined;
|
|
163
|
+
min?: number | undefined;
|
|
164
|
+
max?: number | undefined;
|
|
165
|
+
threshold?: string | number | undefined;
|
|
166
|
+
invert?: boolean | undefined;
|
|
167
|
+
pattern?: string | undefined;
|
|
168
|
+
query_key?: string | undefined;
|
|
169
|
+
};
|
|
170
|
+
name: string;
|
|
171
|
+
label: string;
|
|
172
|
+
weight: number;
|
|
173
|
+
evaluator: "boolean" | "threshold" | "ratio" | "presence" | "regex_match" | "custom_query";
|
|
174
|
+
advice_on_fail?: string | undefined;
|
|
175
|
+
advice_on_pass?: string | undefined;
|
|
176
|
+
}[];
|
|
177
|
+
adjustment_cap?: number | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
metrics: {
|
|
180
|
+
params: {
|
|
181
|
+
path?: string | undefined;
|
|
182
|
+
min?: number | undefined;
|
|
183
|
+
max?: number | undefined;
|
|
184
|
+
threshold?: string | number | undefined;
|
|
185
|
+
invert?: boolean | undefined;
|
|
186
|
+
pattern?: string | undefined;
|
|
187
|
+
query_key?: string | undefined;
|
|
188
|
+
};
|
|
189
|
+
name: string;
|
|
190
|
+
label: string;
|
|
191
|
+
weight: number;
|
|
192
|
+
evaluator: "boolean" | "threshold" | "ratio" | "presence" | "regex_match" | "custom_query";
|
|
193
|
+
advice_on_fail?: string | undefined;
|
|
194
|
+
advice_on_pass?: string | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
adjustment_cap?: number | undefined;
|
|
197
|
+
}>>;
|
|
6
198
|
network: z.ZodOptional<z.ZodString>;
|
|
7
199
|
no_cache: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
compare_with: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
201
|
}, "strict", z.ZodTypeAny, {
|
|
9
202
|
service: string;
|
|
10
203
|
no_cache?: boolean | undefined;
|
|
11
204
|
network?: string | undefined;
|
|
205
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
12
206
|
depth?: "browse" | "evaluate" | "preorder" | undefined;
|
|
13
207
|
order_amount?: string | number | undefined;
|
|
208
|
+
preferences?: {
|
|
209
|
+
risk_appetite?: "balanced" | "conservative" | "aggressive" | undefined;
|
|
210
|
+
delivery_speed_priority?: "urgent" | "normal" | "flexible" | undefined;
|
|
211
|
+
after_sales_expectation?: "full" | "basic" | "minimal" | undefined;
|
|
212
|
+
price_sensitivity?: "low" | "high" | "medium" | undefined;
|
|
213
|
+
budget_range?: {
|
|
214
|
+
min: string | number;
|
|
215
|
+
max: string | number;
|
|
216
|
+
} | undefined;
|
|
217
|
+
value_orientation?: "budget" | "quality" | "balanced" | undefined;
|
|
218
|
+
discount_sensitivity?: number | undefined;
|
|
219
|
+
max_acceptable_cycle?: number | undefined;
|
|
220
|
+
response_time_expectation?: number | undefined;
|
|
221
|
+
merchant_preference?: "established" | "emerging" | "neutral" | undefined;
|
|
222
|
+
min_order_history?: number | undefined;
|
|
223
|
+
bargain_hunting?: number | undefined;
|
|
224
|
+
reward_seeking?: boolean | undefined;
|
|
225
|
+
referral_participation?: boolean | undefined;
|
|
226
|
+
communication_style?: "formal" | "casual" | "friendly" | undefined;
|
|
227
|
+
transparency_demand?: number | undefined;
|
|
228
|
+
min_trust_score?: number | undefined;
|
|
229
|
+
require_arbitration?: boolean | undefined;
|
|
230
|
+
require_compensation_fund?: boolean | undefined;
|
|
231
|
+
preferred_industries?: string[] | undefined;
|
|
232
|
+
preferred_tokens?: string[] | undefined;
|
|
233
|
+
preferred_merchants?: string[] | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
user_metrics?: {
|
|
236
|
+
metrics: {
|
|
237
|
+
params: {
|
|
238
|
+
path?: string | undefined;
|
|
239
|
+
min?: number | undefined;
|
|
240
|
+
max?: number | undefined;
|
|
241
|
+
threshold?: string | number | undefined;
|
|
242
|
+
invert?: boolean | undefined;
|
|
243
|
+
pattern?: string | undefined;
|
|
244
|
+
query_key?: string | undefined;
|
|
245
|
+
};
|
|
246
|
+
name: string;
|
|
247
|
+
label: string;
|
|
248
|
+
weight: number;
|
|
249
|
+
evaluator: "boolean" | "threshold" | "ratio" | "presence" | "regex_match" | "custom_query";
|
|
250
|
+
advice_on_fail?: string | undefined;
|
|
251
|
+
advice_on_pass?: string | undefined;
|
|
252
|
+
}[];
|
|
253
|
+
adjustment_cap?: number | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
compare_with?: string[] | undefined;
|
|
14
256
|
}, {
|
|
15
257
|
service: string;
|
|
16
258
|
no_cache?: boolean | undefined;
|
|
17
259
|
network?: string | undefined;
|
|
260
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
18
261
|
depth?: "browse" | "evaluate" | "preorder" | undefined;
|
|
19
262
|
order_amount?: string | number | undefined;
|
|
263
|
+
preferences?: {
|
|
264
|
+
risk_appetite?: "balanced" | "conservative" | "aggressive" | undefined;
|
|
265
|
+
delivery_speed_priority?: "urgent" | "normal" | "flexible" | undefined;
|
|
266
|
+
after_sales_expectation?: "full" | "basic" | "minimal" | undefined;
|
|
267
|
+
price_sensitivity?: "low" | "high" | "medium" | undefined;
|
|
268
|
+
budget_range?: {
|
|
269
|
+
min: string | number;
|
|
270
|
+
max: string | number;
|
|
271
|
+
} | undefined;
|
|
272
|
+
value_orientation?: "budget" | "quality" | "balanced" | undefined;
|
|
273
|
+
discount_sensitivity?: number | undefined;
|
|
274
|
+
max_acceptable_cycle?: number | undefined;
|
|
275
|
+
response_time_expectation?: number | undefined;
|
|
276
|
+
merchant_preference?: "established" | "emerging" | "neutral" | undefined;
|
|
277
|
+
min_order_history?: number | undefined;
|
|
278
|
+
bargain_hunting?: number | undefined;
|
|
279
|
+
reward_seeking?: boolean | undefined;
|
|
280
|
+
referral_participation?: boolean | undefined;
|
|
281
|
+
communication_style?: "formal" | "casual" | "friendly" | undefined;
|
|
282
|
+
transparency_demand?: number | undefined;
|
|
283
|
+
min_trust_score?: number | undefined;
|
|
284
|
+
require_arbitration?: boolean | undefined;
|
|
285
|
+
require_compensation_fund?: boolean | undefined;
|
|
286
|
+
preferred_industries?: string[] | undefined;
|
|
287
|
+
preferred_tokens?: string[] | undefined;
|
|
288
|
+
preferred_merchants?: string[] | undefined;
|
|
289
|
+
} | undefined;
|
|
290
|
+
user_metrics?: {
|
|
291
|
+
metrics: {
|
|
292
|
+
params: {
|
|
293
|
+
path?: string | undefined;
|
|
294
|
+
min?: number | undefined;
|
|
295
|
+
max?: number | undefined;
|
|
296
|
+
threshold?: string | number | undefined;
|
|
297
|
+
invert?: boolean | undefined;
|
|
298
|
+
pattern?: string | undefined;
|
|
299
|
+
query_key?: string | undefined;
|
|
300
|
+
};
|
|
301
|
+
name: string;
|
|
302
|
+
label: string;
|
|
303
|
+
weight: number;
|
|
304
|
+
evaluator: "boolean" | "threshold" | "ratio" | "presence" | "regex_match" | "custom_query";
|
|
305
|
+
advice_on_fail?: string | undefined;
|
|
306
|
+
advice_on_pass?: string | undefined;
|
|
307
|
+
}[];
|
|
308
|
+
adjustment_cap?: number | undefined;
|
|
309
|
+
} | undefined;
|
|
310
|
+
compare_with?: string[] | undefined;
|
|
20
311
|
}>;
|
|
21
312
|
export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
22
313
|
result: z.ZodObject<{
|
|
@@ -152,6 +443,7 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
152
443
|
}, "strip", z.ZodTypeAny, {
|
|
153
444
|
advice: string[];
|
|
154
445
|
level: "low" | "medium_low" | "medium_high" | "high";
|
|
446
|
+
total: number;
|
|
155
447
|
dimensions: {
|
|
156
448
|
name: "fund" | "workflow" | "trust" | "behavior";
|
|
157
449
|
score: number;
|
|
@@ -165,11 +457,11 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
165
457
|
}[];
|
|
166
458
|
max_score: number;
|
|
167
459
|
}[];
|
|
168
|
-
total: number;
|
|
169
460
|
red_flags: string[];
|
|
170
461
|
}, {
|
|
171
462
|
advice: string[];
|
|
172
463
|
level: "low" | "medium_low" | "medium_high" | "high";
|
|
464
|
+
total: number;
|
|
173
465
|
dimensions: {
|
|
174
466
|
name: "fund" | "workflow" | "trust" | "behavior";
|
|
175
467
|
score: number;
|
|
@@ -183,7 +475,6 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
183
475
|
}[];
|
|
184
476
|
max_score: number;
|
|
185
477
|
}[];
|
|
186
|
-
total: number;
|
|
187
478
|
red_flags: string[];
|
|
188
479
|
}>>;
|
|
189
480
|
info_puzzle: z.ZodOptional<z.ZodObject<{
|
|
@@ -199,6 +490,397 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
199
490
|
gaps: string[];
|
|
200
491
|
assembled_at: number;
|
|
201
492
|
}>>;
|
|
493
|
+
preorder_advice: z.ZodOptional<z.ZodObject<{
|
|
494
|
+
confidence: z.ZodObject<{
|
|
495
|
+
score: z.ZodNumber;
|
|
496
|
+
base: z.ZodNumber;
|
|
497
|
+
user_adjustment: z.ZodNumber;
|
|
498
|
+
preference_nudge: z.ZodNumber;
|
|
499
|
+
explanation: z.ZodString;
|
|
500
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
score: number;
|
|
502
|
+
base: number;
|
|
503
|
+
user_adjustment: number;
|
|
504
|
+
preference_nudge: number;
|
|
505
|
+
explanation: string;
|
|
506
|
+
}, {
|
|
507
|
+
score: number;
|
|
508
|
+
base: number;
|
|
509
|
+
user_adjustment: number;
|
|
510
|
+
preference_nudge: number;
|
|
511
|
+
explanation: string;
|
|
512
|
+
}>;
|
|
513
|
+
industry: z.ZodOptional<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>>;
|
|
514
|
+
strategies: z.ZodArray<z.ZodObject<{
|
|
515
|
+
scenario: z.ZodEnum<["info_asymmetry", "fund_safety", "refund_dispute", "arbitration_fairness", "pricing", "delivery_sla", "quality_verification", "after_sales"]>;
|
|
516
|
+
merchant_tactic: z.ZodString;
|
|
517
|
+
user_strategy: z.ZodString;
|
|
518
|
+
nash_equilibrium: z.ZodString;
|
|
519
|
+
confidence: z.ZodNumber;
|
|
520
|
+
fallback: z.ZodOptional<z.ZodString>;
|
|
521
|
+
rationale: z.ZodString;
|
|
522
|
+
}, "strip", z.ZodTypeAny, {
|
|
523
|
+
confidence: number;
|
|
524
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
525
|
+
rationale: string;
|
|
526
|
+
merchant_tactic: string;
|
|
527
|
+
user_strategy: string;
|
|
528
|
+
nash_equilibrium: string;
|
|
529
|
+
fallback?: string | undefined;
|
|
530
|
+
}, {
|
|
531
|
+
confidence: number;
|
|
532
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
533
|
+
rationale: string;
|
|
534
|
+
merchant_tactic: string;
|
|
535
|
+
user_strategy: string;
|
|
536
|
+
nash_equilibrium: string;
|
|
537
|
+
fallback?: string | undefined;
|
|
538
|
+
}>, "many">;
|
|
539
|
+
preference_match: z.ZodOptional<z.ZodObject<{
|
|
540
|
+
score: z.ZodNumber;
|
|
541
|
+
matches: z.ZodArray<z.ZodString, "many">;
|
|
542
|
+
mismatches: z.ZodArray<z.ZodString, "many">;
|
|
543
|
+
warnings: z.ZodArray<z.ZodString, "many">;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
warnings: string[];
|
|
546
|
+
score: number;
|
|
547
|
+
matches: string[];
|
|
548
|
+
mismatches: string[];
|
|
549
|
+
}, {
|
|
550
|
+
warnings: string[];
|
|
551
|
+
score: number;
|
|
552
|
+
matches: string[];
|
|
553
|
+
mismatches: string[];
|
|
554
|
+
}>>;
|
|
555
|
+
preference_issues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
556
|
+
industry_risks: z.ZodOptional<z.ZodObject<{
|
|
557
|
+
score_adjustment: z.ZodNumber;
|
|
558
|
+
summary: z.ZodString;
|
|
559
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
560
|
+
id: z.ZodString;
|
|
561
|
+
dimension: z.ZodEnum<["workflow", "fund", "trust", "behavior"]>;
|
|
562
|
+
description: z.ZodString;
|
|
563
|
+
weight: z.ZodNumber;
|
|
564
|
+
passed: z.ZodBoolean;
|
|
565
|
+
advice: z.ZodOptional<z.ZodString>;
|
|
566
|
+
}, "strip", z.ZodTypeAny, {
|
|
567
|
+
description: string;
|
|
568
|
+
id: string;
|
|
569
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
570
|
+
passed: boolean;
|
|
571
|
+
weight: number;
|
|
572
|
+
advice?: string | undefined;
|
|
573
|
+
}, {
|
|
574
|
+
description: string;
|
|
575
|
+
id: string;
|
|
576
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
577
|
+
passed: boolean;
|
|
578
|
+
weight: number;
|
|
579
|
+
advice?: string | undefined;
|
|
580
|
+
}>, "many">;
|
|
581
|
+
unmet_needs: z.ZodArray<z.ZodObject<{
|
|
582
|
+
id: z.ZodString;
|
|
583
|
+
tier: z.ZodEnum<["common", "personalized", "advanced"]>;
|
|
584
|
+
description: z.ZodString;
|
|
585
|
+
advice: z.ZodOptional<z.ZodString>;
|
|
586
|
+
}, "strip", z.ZodTypeAny, {
|
|
587
|
+
description: string;
|
|
588
|
+
id: string;
|
|
589
|
+
tier: "common" | "personalized" | "advanced";
|
|
590
|
+
advice?: string | undefined;
|
|
591
|
+
}, {
|
|
592
|
+
description: string;
|
|
593
|
+
id: string;
|
|
594
|
+
tier: "common" | "personalized" | "advanced";
|
|
595
|
+
advice?: string | undefined;
|
|
596
|
+
}>, "many">;
|
|
597
|
+
}, "strip", z.ZodTypeAny, {
|
|
598
|
+
summary: string;
|
|
599
|
+
checks: {
|
|
600
|
+
description: string;
|
|
601
|
+
id: string;
|
|
602
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
603
|
+
passed: boolean;
|
|
604
|
+
weight: number;
|
|
605
|
+
advice?: string | undefined;
|
|
606
|
+
}[];
|
|
607
|
+
score_adjustment: number;
|
|
608
|
+
unmet_needs: {
|
|
609
|
+
description: string;
|
|
610
|
+
id: string;
|
|
611
|
+
tier: "common" | "personalized" | "advanced";
|
|
612
|
+
advice?: string | undefined;
|
|
613
|
+
}[];
|
|
614
|
+
}, {
|
|
615
|
+
summary: string;
|
|
616
|
+
checks: {
|
|
617
|
+
description: string;
|
|
618
|
+
id: string;
|
|
619
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
620
|
+
passed: boolean;
|
|
621
|
+
weight: number;
|
|
622
|
+
advice?: string | undefined;
|
|
623
|
+
}[];
|
|
624
|
+
score_adjustment: number;
|
|
625
|
+
unmet_needs: {
|
|
626
|
+
description: string;
|
|
627
|
+
id: string;
|
|
628
|
+
tier: "common" | "personalized" | "advanced";
|
|
629
|
+
advice?: string | undefined;
|
|
630
|
+
}[];
|
|
631
|
+
}>>;
|
|
632
|
+
reminders: z.ZodArray<z.ZodObject<{
|
|
633
|
+
id: z.ZodString;
|
|
634
|
+
stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
|
|
635
|
+
priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
|
|
636
|
+
message: z.ZodString;
|
|
637
|
+
action: z.ZodOptional<z.ZodString>;
|
|
638
|
+
}, "strip", z.ZodTypeAny, {
|
|
639
|
+
message: string;
|
|
640
|
+
id: string;
|
|
641
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
642
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
643
|
+
action?: string | undefined;
|
|
644
|
+
}, {
|
|
645
|
+
message: string;
|
|
646
|
+
id: string;
|
|
647
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
648
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
649
|
+
action?: string | undefined;
|
|
650
|
+
}>, "many">;
|
|
651
|
+
blocking_reminders: z.ZodArray<z.ZodObject<{
|
|
652
|
+
id: z.ZodString;
|
|
653
|
+
stage: z.ZodEnum<["browse", "evaluate", "preorder", "in_progress", "complete", "after_sale"]>;
|
|
654
|
+
priority: z.ZodEnum<["required", "recommended", "info", "reminder"]>;
|
|
655
|
+
message: z.ZodString;
|
|
656
|
+
action: z.ZodOptional<z.ZodString>;
|
|
657
|
+
}, "strip", z.ZodTypeAny, {
|
|
658
|
+
message: string;
|
|
659
|
+
id: string;
|
|
660
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
661
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
662
|
+
action?: string | undefined;
|
|
663
|
+
}, {
|
|
664
|
+
message: string;
|
|
665
|
+
id: string;
|
|
666
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
667
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
668
|
+
action?: string | undefined;
|
|
669
|
+
}>, "many">;
|
|
670
|
+
summary: z.ZodString;
|
|
671
|
+
}, "strip", z.ZodTypeAny, {
|
|
672
|
+
summary: string;
|
|
673
|
+
reminders: {
|
|
674
|
+
message: string;
|
|
675
|
+
id: string;
|
|
676
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
677
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
678
|
+
action?: string | undefined;
|
|
679
|
+
}[];
|
|
680
|
+
confidence: {
|
|
681
|
+
score: number;
|
|
682
|
+
base: number;
|
|
683
|
+
user_adjustment: number;
|
|
684
|
+
preference_nudge: number;
|
|
685
|
+
explanation: string;
|
|
686
|
+
};
|
|
687
|
+
strategies: {
|
|
688
|
+
confidence: number;
|
|
689
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
690
|
+
rationale: string;
|
|
691
|
+
merchant_tactic: string;
|
|
692
|
+
user_strategy: string;
|
|
693
|
+
nash_equilibrium: string;
|
|
694
|
+
fallback?: string | undefined;
|
|
695
|
+
}[];
|
|
696
|
+
blocking_reminders: {
|
|
697
|
+
message: string;
|
|
698
|
+
id: string;
|
|
699
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
700
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
701
|
+
action?: string | undefined;
|
|
702
|
+
}[];
|
|
703
|
+
preference_match?: {
|
|
704
|
+
warnings: string[];
|
|
705
|
+
score: number;
|
|
706
|
+
matches: string[];
|
|
707
|
+
mismatches: string[];
|
|
708
|
+
} | undefined;
|
|
709
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
710
|
+
preference_issues?: string[] | undefined;
|
|
711
|
+
industry_risks?: {
|
|
712
|
+
summary: string;
|
|
713
|
+
checks: {
|
|
714
|
+
description: string;
|
|
715
|
+
id: string;
|
|
716
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
717
|
+
passed: boolean;
|
|
718
|
+
weight: number;
|
|
719
|
+
advice?: string | undefined;
|
|
720
|
+
}[];
|
|
721
|
+
score_adjustment: number;
|
|
722
|
+
unmet_needs: {
|
|
723
|
+
description: string;
|
|
724
|
+
id: string;
|
|
725
|
+
tier: "common" | "personalized" | "advanced";
|
|
726
|
+
advice?: string | undefined;
|
|
727
|
+
}[];
|
|
728
|
+
} | undefined;
|
|
729
|
+
}, {
|
|
730
|
+
summary: string;
|
|
731
|
+
reminders: {
|
|
732
|
+
message: string;
|
|
733
|
+
id: string;
|
|
734
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
735
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
736
|
+
action?: string | undefined;
|
|
737
|
+
}[];
|
|
738
|
+
confidence: {
|
|
739
|
+
score: number;
|
|
740
|
+
base: number;
|
|
741
|
+
user_adjustment: number;
|
|
742
|
+
preference_nudge: number;
|
|
743
|
+
explanation: string;
|
|
744
|
+
};
|
|
745
|
+
strategies: {
|
|
746
|
+
confidence: number;
|
|
747
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
748
|
+
rationale: string;
|
|
749
|
+
merchant_tactic: string;
|
|
750
|
+
user_strategy: string;
|
|
751
|
+
nash_equilibrium: string;
|
|
752
|
+
fallback?: string | undefined;
|
|
753
|
+
}[];
|
|
754
|
+
blocking_reminders: {
|
|
755
|
+
message: string;
|
|
756
|
+
id: string;
|
|
757
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
758
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
759
|
+
action?: string | undefined;
|
|
760
|
+
}[];
|
|
761
|
+
preference_match?: {
|
|
762
|
+
warnings: string[];
|
|
763
|
+
score: number;
|
|
764
|
+
matches: string[];
|
|
765
|
+
mismatches: string[];
|
|
766
|
+
} | undefined;
|
|
767
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
768
|
+
preference_issues?: string[] | undefined;
|
|
769
|
+
industry_risks?: {
|
|
770
|
+
summary: string;
|
|
771
|
+
checks: {
|
|
772
|
+
description: string;
|
|
773
|
+
id: string;
|
|
774
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
775
|
+
passed: boolean;
|
|
776
|
+
weight: number;
|
|
777
|
+
advice?: string | undefined;
|
|
778
|
+
}[];
|
|
779
|
+
score_adjustment: number;
|
|
780
|
+
unmet_needs: {
|
|
781
|
+
description: string;
|
|
782
|
+
id: string;
|
|
783
|
+
tier: "common" | "personalized" | "advanced";
|
|
784
|
+
advice?: string | undefined;
|
|
785
|
+
}[];
|
|
786
|
+
} | undefined;
|
|
787
|
+
}>>;
|
|
788
|
+
comparison: z.ZodOptional<z.ZodObject<{
|
|
789
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
790
|
+
service_id: z.ZodString;
|
|
791
|
+
service_name: z.ZodString;
|
|
792
|
+
error: z.ZodOptional<z.ZodString>;
|
|
793
|
+
industry: z.ZodOptional<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>>;
|
|
794
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
795
|
+
risk_total: z.ZodOptional<z.ZodNumber>;
|
|
796
|
+
risk_level: z.ZodOptional<z.ZodString>;
|
|
797
|
+
trust_score: z.ZodOptional<z.ZodNumber>;
|
|
798
|
+
trust_level: z.ZodOptional<z.ZodString>;
|
|
799
|
+
preference_match: z.ZodOptional<z.ZodNumber>;
|
|
800
|
+
reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
|
|
801
|
+
reputation_votes: z.ZodOptional<z.ZodNumber>;
|
|
802
|
+
red_flags_count: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
blocking_reminders_count: z.ZodOptional<z.ZodNumber>;
|
|
804
|
+
info_gaps_count: z.ZodOptional<z.ZodNumber>;
|
|
805
|
+
}, "strict", z.ZodTypeAny, {
|
|
806
|
+
service_id: string;
|
|
807
|
+
service_name: string;
|
|
808
|
+
error?: string | undefined;
|
|
809
|
+
risk_level?: string | undefined;
|
|
810
|
+
preference_match?: number | undefined;
|
|
811
|
+
confidence?: number | undefined;
|
|
812
|
+
trust_score?: number | undefined;
|
|
813
|
+
trust_level?: string | undefined;
|
|
814
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
815
|
+
risk_total?: number | undefined;
|
|
816
|
+
reputation_like_ratio?: number | undefined;
|
|
817
|
+
reputation_votes?: number | undefined;
|
|
818
|
+
red_flags_count?: number | undefined;
|
|
819
|
+
blocking_reminders_count?: number | undefined;
|
|
820
|
+
info_gaps_count?: number | undefined;
|
|
821
|
+
}, {
|
|
822
|
+
service_id: string;
|
|
823
|
+
service_name: string;
|
|
824
|
+
error?: string | undefined;
|
|
825
|
+
risk_level?: string | undefined;
|
|
826
|
+
preference_match?: number | undefined;
|
|
827
|
+
confidence?: number | undefined;
|
|
828
|
+
trust_score?: number | undefined;
|
|
829
|
+
trust_level?: string | undefined;
|
|
830
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
831
|
+
risk_total?: number | undefined;
|
|
832
|
+
reputation_like_ratio?: number | undefined;
|
|
833
|
+
reputation_votes?: number | undefined;
|
|
834
|
+
red_flags_count?: number | undefined;
|
|
835
|
+
blocking_reminders_count?: number | undefined;
|
|
836
|
+
info_gaps_count?: number | undefined;
|
|
837
|
+
}>, "many">;
|
|
838
|
+
best_per_metric: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
|
|
839
|
+
evaluated_metrics: z.ZodArray<z.ZodString, "many">;
|
|
840
|
+
note: z.ZodString;
|
|
841
|
+
}, "strict", z.ZodTypeAny, {
|
|
842
|
+
note: string;
|
|
843
|
+
rows: {
|
|
844
|
+
service_id: string;
|
|
845
|
+
service_name: string;
|
|
846
|
+
error?: string | undefined;
|
|
847
|
+
risk_level?: string | undefined;
|
|
848
|
+
preference_match?: number | undefined;
|
|
849
|
+
confidence?: number | undefined;
|
|
850
|
+
trust_score?: number | undefined;
|
|
851
|
+
trust_level?: string | undefined;
|
|
852
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
853
|
+
risk_total?: number | undefined;
|
|
854
|
+
reputation_like_ratio?: number | undefined;
|
|
855
|
+
reputation_votes?: number | undefined;
|
|
856
|
+
red_flags_count?: number | undefined;
|
|
857
|
+
blocking_reminders_count?: number | undefined;
|
|
858
|
+
info_gaps_count?: number | undefined;
|
|
859
|
+
}[];
|
|
860
|
+
best_per_metric: Record<string, string[]>;
|
|
861
|
+
evaluated_metrics: string[];
|
|
862
|
+
}, {
|
|
863
|
+
note: string;
|
|
864
|
+
rows: {
|
|
865
|
+
service_id: string;
|
|
866
|
+
service_name: string;
|
|
867
|
+
error?: string | undefined;
|
|
868
|
+
risk_level?: string | undefined;
|
|
869
|
+
preference_match?: number | undefined;
|
|
870
|
+
confidence?: number | undefined;
|
|
871
|
+
trust_score?: number | undefined;
|
|
872
|
+
trust_level?: string | undefined;
|
|
873
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
874
|
+
risk_total?: number | undefined;
|
|
875
|
+
reputation_like_ratio?: number | undefined;
|
|
876
|
+
reputation_votes?: number | undefined;
|
|
877
|
+
red_flags_count?: number | undefined;
|
|
878
|
+
blocking_reminders_count?: number | undefined;
|
|
879
|
+
info_gaps_count?: number | undefined;
|
|
880
|
+
}[];
|
|
881
|
+
best_per_metric: Record<string, string[]>;
|
|
882
|
+
evaluated_metrics: string[];
|
|
883
|
+
}>>;
|
|
202
884
|
}, "strip", z.ZodTypeAny, {
|
|
203
885
|
trust_score: {
|
|
204
886
|
summary: string;
|
|
@@ -228,6 +910,7 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
228
910
|
risk_score?: {
|
|
229
911
|
advice: string[];
|
|
230
912
|
level: "low" | "medium_low" | "medium_high" | "high";
|
|
913
|
+
total: number;
|
|
231
914
|
dimensions: {
|
|
232
915
|
name: "fund" | "workflow" | "trust" | "behavior";
|
|
233
916
|
score: number;
|
|
@@ -241,7 +924,6 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
241
924
|
}[];
|
|
242
925
|
max_score: number;
|
|
243
926
|
}[];
|
|
244
|
-
total: number;
|
|
245
927
|
red_flags: string[];
|
|
246
928
|
} | undefined;
|
|
247
929
|
info_puzzle?: {
|
|
@@ -249,6 +931,87 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
249
931
|
gaps: string[];
|
|
250
932
|
assembled_at: number;
|
|
251
933
|
} | undefined;
|
|
934
|
+
preorder_advice?: {
|
|
935
|
+
summary: string;
|
|
936
|
+
reminders: {
|
|
937
|
+
message: string;
|
|
938
|
+
id: string;
|
|
939
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
940
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
941
|
+
action?: string | undefined;
|
|
942
|
+
}[];
|
|
943
|
+
confidence: {
|
|
944
|
+
score: number;
|
|
945
|
+
base: number;
|
|
946
|
+
user_adjustment: number;
|
|
947
|
+
preference_nudge: number;
|
|
948
|
+
explanation: string;
|
|
949
|
+
};
|
|
950
|
+
strategies: {
|
|
951
|
+
confidence: number;
|
|
952
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
953
|
+
rationale: string;
|
|
954
|
+
merchant_tactic: string;
|
|
955
|
+
user_strategy: string;
|
|
956
|
+
nash_equilibrium: string;
|
|
957
|
+
fallback?: string | undefined;
|
|
958
|
+
}[];
|
|
959
|
+
blocking_reminders: {
|
|
960
|
+
message: string;
|
|
961
|
+
id: string;
|
|
962
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
963
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
964
|
+
action?: string | undefined;
|
|
965
|
+
}[];
|
|
966
|
+
preference_match?: {
|
|
967
|
+
warnings: string[];
|
|
968
|
+
score: number;
|
|
969
|
+
matches: string[];
|
|
970
|
+
mismatches: string[];
|
|
971
|
+
} | undefined;
|
|
972
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
973
|
+
preference_issues?: string[] | undefined;
|
|
974
|
+
industry_risks?: {
|
|
975
|
+
summary: string;
|
|
976
|
+
checks: {
|
|
977
|
+
description: string;
|
|
978
|
+
id: string;
|
|
979
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
980
|
+
passed: boolean;
|
|
981
|
+
weight: number;
|
|
982
|
+
advice?: string | undefined;
|
|
983
|
+
}[];
|
|
984
|
+
score_adjustment: number;
|
|
985
|
+
unmet_needs: {
|
|
986
|
+
description: string;
|
|
987
|
+
id: string;
|
|
988
|
+
tier: "common" | "personalized" | "advanced";
|
|
989
|
+
advice?: string | undefined;
|
|
990
|
+
}[];
|
|
991
|
+
} | undefined;
|
|
992
|
+
} | undefined;
|
|
993
|
+
comparison?: {
|
|
994
|
+
note: string;
|
|
995
|
+
rows: {
|
|
996
|
+
service_id: string;
|
|
997
|
+
service_name: string;
|
|
998
|
+
error?: string | undefined;
|
|
999
|
+
risk_level?: string | undefined;
|
|
1000
|
+
preference_match?: number | undefined;
|
|
1001
|
+
confidence?: number | undefined;
|
|
1002
|
+
trust_score?: number | undefined;
|
|
1003
|
+
trust_level?: string | undefined;
|
|
1004
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1005
|
+
risk_total?: number | undefined;
|
|
1006
|
+
reputation_like_ratio?: number | undefined;
|
|
1007
|
+
reputation_votes?: number | undefined;
|
|
1008
|
+
red_flags_count?: number | undefined;
|
|
1009
|
+
blocking_reminders_count?: number | undefined;
|
|
1010
|
+
info_gaps_count?: number | undefined;
|
|
1011
|
+
}[];
|
|
1012
|
+
best_per_metric: Record<string, string[]>;
|
|
1013
|
+
evaluated_metrics: string[];
|
|
1014
|
+
} | undefined;
|
|
252
1015
|
}, {
|
|
253
1016
|
trust_score: {
|
|
254
1017
|
summary: string;
|
|
@@ -278,6 +1041,7 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
278
1041
|
risk_score?: {
|
|
279
1042
|
advice: string[];
|
|
280
1043
|
level: "low" | "medium_low" | "medium_high" | "high";
|
|
1044
|
+
total: number;
|
|
281
1045
|
dimensions: {
|
|
282
1046
|
name: "fund" | "workflow" | "trust" | "behavior";
|
|
283
1047
|
score: number;
|
|
@@ -291,7 +1055,6 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
291
1055
|
}[];
|
|
292
1056
|
max_score: number;
|
|
293
1057
|
}[];
|
|
294
|
-
total: number;
|
|
295
1058
|
red_flags: string[];
|
|
296
1059
|
} | undefined;
|
|
297
1060
|
info_puzzle?: {
|
|
@@ -299,6 +1062,87 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
299
1062
|
gaps: string[];
|
|
300
1063
|
assembled_at: number;
|
|
301
1064
|
} | undefined;
|
|
1065
|
+
preorder_advice?: {
|
|
1066
|
+
summary: string;
|
|
1067
|
+
reminders: {
|
|
1068
|
+
message: string;
|
|
1069
|
+
id: string;
|
|
1070
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
1071
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
1072
|
+
action?: string | undefined;
|
|
1073
|
+
}[];
|
|
1074
|
+
confidence: {
|
|
1075
|
+
score: number;
|
|
1076
|
+
base: number;
|
|
1077
|
+
user_adjustment: number;
|
|
1078
|
+
preference_nudge: number;
|
|
1079
|
+
explanation: string;
|
|
1080
|
+
};
|
|
1081
|
+
strategies: {
|
|
1082
|
+
confidence: number;
|
|
1083
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
1084
|
+
rationale: string;
|
|
1085
|
+
merchant_tactic: string;
|
|
1086
|
+
user_strategy: string;
|
|
1087
|
+
nash_equilibrium: string;
|
|
1088
|
+
fallback?: string | undefined;
|
|
1089
|
+
}[];
|
|
1090
|
+
blocking_reminders: {
|
|
1091
|
+
message: string;
|
|
1092
|
+
id: string;
|
|
1093
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
1094
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
1095
|
+
action?: string | undefined;
|
|
1096
|
+
}[];
|
|
1097
|
+
preference_match?: {
|
|
1098
|
+
warnings: string[];
|
|
1099
|
+
score: number;
|
|
1100
|
+
matches: string[];
|
|
1101
|
+
mismatches: string[];
|
|
1102
|
+
} | undefined;
|
|
1103
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1104
|
+
preference_issues?: string[] | undefined;
|
|
1105
|
+
industry_risks?: {
|
|
1106
|
+
summary: string;
|
|
1107
|
+
checks: {
|
|
1108
|
+
description: string;
|
|
1109
|
+
id: string;
|
|
1110
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
1111
|
+
passed: boolean;
|
|
1112
|
+
weight: number;
|
|
1113
|
+
advice?: string | undefined;
|
|
1114
|
+
}[];
|
|
1115
|
+
score_adjustment: number;
|
|
1116
|
+
unmet_needs: {
|
|
1117
|
+
description: string;
|
|
1118
|
+
id: string;
|
|
1119
|
+
tier: "common" | "personalized" | "advanced";
|
|
1120
|
+
advice?: string | undefined;
|
|
1121
|
+
}[];
|
|
1122
|
+
} | undefined;
|
|
1123
|
+
} | undefined;
|
|
1124
|
+
comparison?: {
|
|
1125
|
+
note: string;
|
|
1126
|
+
rows: {
|
|
1127
|
+
service_id: string;
|
|
1128
|
+
service_name: string;
|
|
1129
|
+
error?: string | undefined;
|
|
1130
|
+
risk_level?: string | undefined;
|
|
1131
|
+
preference_match?: number | undefined;
|
|
1132
|
+
confidence?: number | undefined;
|
|
1133
|
+
trust_score?: number | undefined;
|
|
1134
|
+
trust_level?: string | undefined;
|
|
1135
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1136
|
+
risk_total?: number | undefined;
|
|
1137
|
+
reputation_like_ratio?: number | undefined;
|
|
1138
|
+
reputation_votes?: number | undefined;
|
|
1139
|
+
red_flags_count?: number | undefined;
|
|
1140
|
+
blocking_reminders_count?: number | undefined;
|
|
1141
|
+
info_gaps_count?: number | undefined;
|
|
1142
|
+
}[];
|
|
1143
|
+
best_per_metric: Record<string, string[]>;
|
|
1144
|
+
evaluated_metrics: string[];
|
|
1145
|
+
} | undefined;
|
|
302
1146
|
}>;
|
|
303
1147
|
}, "strip", z.ZodTypeAny, {
|
|
304
1148
|
result: {
|
|
@@ -330,6 +1174,7 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
330
1174
|
risk_score?: {
|
|
331
1175
|
advice: string[];
|
|
332
1176
|
level: "low" | "medium_low" | "medium_high" | "high";
|
|
1177
|
+
total: number;
|
|
333
1178
|
dimensions: {
|
|
334
1179
|
name: "fund" | "workflow" | "trust" | "behavior";
|
|
335
1180
|
score: number;
|
|
@@ -343,7 +1188,6 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
343
1188
|
}[];
|
|
344
1189
|
max_score: number;
|
|
345
1190
|
}[];
|
|
346
|
-
total: number;
|
|
347
1191
|
red_flags: string[];
|
|
348
1192
|
} | undefined;
|
|
349
1193
|
info_puzzle?: {
|
|
@@ -351,6 +1195,87 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
351
1195
|
gaps: string[];
|
|
352
1196
|
assembled_at: number;
|
|
353
1197
|
} | undefined;
|
|
1198
|
+
preorder_advice?: {
|
|
1199
|
+
summary: string;
|
|
1200
|
+
reminders: {
|
|
1201
|
+
message: string;
|
|
1202
|
+
id: string;
|
|
1203
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
1204
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
1205
|
+
action?: string | undefined;
|
|
1206
|
+
}[];
|
|
1207
|
+
confidence: {
|
|
1208
|
+
score: number;
|
|
1209
|
+
base: number;
|
|
1210
|
+
user_adjustment: number;
|
|
1211
|
+
preference_nudge: number;
|
|
1212
|
+
explanation: string;
|
|
1213
|
+
};
|
|
1214
|
+
strategies: {
|
|
1215
|
+
confidence: number;
|
|
1216
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
1217
|
+
rationale: string;
|
|
1218
|
+
merchant_tactic: string;
|
|
1219
|
+
user_strategy: string;
|
|
1220
|
+
nash_equilibrium: string;
|
|
1221
|
+
fallback?: string | undefined;
|
|
1222
|
+
}[];
|
|
1223
|
+
blocking_reminders: {
|
|
1224
|
+
message: string;
|
|
1225
|
+
id: string;
|
|
1226
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
1227
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
1228
|
+
action?: string | undefined;
|
|
1229
|
+
}[];
|
|
1230
|
+
preference_match?: {
|
|
1231
|
+
warnings: string[];
|
|
1232
|
+
score: number;
|
|
1233
|
+
matches: string[];
|
|
1234
|
+
mismatches: string[];
|
|
1235
|
+
} | undefined;
|
|
1236
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1237
|
+
preference_issues?: string[] | undefined;
|
|
1238
|
+
industry_risks?: {
|
|
1239
|
+
summary: string;
|
|
1240
|
+
checks: {
|
|
1241
|
+
description: string;
|
|
1242
|
+
id: string;
|
|
1243
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
1244
|
+
passed: boolean;
|
|
1245
|
+
weight: number;
|
|
1246
|
+
advice?: string | undefined;
|
|
1247
|
+
}[];
|
|
1248
|
+
score_adjustment: number;
|
|
1249
|
+
unmet_needs: {
|
|
1250
|
+
description: string;
|
|
1251
|
+
id: string;
|
|
1252
|
+
tier: "common" | "personalized" | "advanced";
|
|
1253
|
+
advice?: string | undefined;
|
|
1254
|
+
}[];
|
|
1255
|
+
} | undefined;
|
|
1256
|
+
} | undefined;
|
|
1257
|
+
comparison?: {
|
|
1258
|
+
note: string;
|
|
1259
|
+
rows: {
|
|
1260
|
+
service_id: string;
|
|
1261
|
+
service_name: string;
|
|
1262
|
+
error?: string | undefined;
|
|
1263
|
+
risk_level?: string | undefined;
|
|
1264
|
+
preference_match?: number | undefined;
|
|
1265
|
+
confidence?: number | undefined;
|
|
1266
|
+
trust_score?: number | undefined;
|
|
1267
|
+
trust_level?: string | undefined;
|
|
1268
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1269
|
+
risk_total?: number | undefined;
|
|
1270
|
+
reputation_like_ratio?: number | undefined;
|
|
1271
|
+
reputation_votes?: number | undefined;
|
|
1272
|
+
red_flags_count?: number | undefined;
|
|
1273
|
+
blocking_reminders_count?: number | undefined;
|
|
1274
|
+
info_gaps_count?: number | undefined;
|
|
1275
|
+
}[];
|
|
1276
|
+
best_per_metric: Record<string, string[]>;
|
|
1277
|
+
evaluated_metrics: string[];
|
|
1278
|
+
} | undefined;
|
|
354
1279
|
};
|
|
355
1280
|
}, {
|
|
356
1281
|
result: {
|
|
@@ -382,6 +1307,7 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
382
1307
|
risk_score?: {
|
|
383
1308
|
advice: string[];
|
|
384
1309
|
level: "low" | "medium_low" | "medium_high" | "high";
|
|
1310
|
+
total: number;
|
|
385
1311
|
dimensions: {
|
|
386
1312
|
name: "fund" | "workflow" | "trust" | "behavior";
|
|
387
1313
|
score: number;
|
|
@@ -395,7 +1321,6 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
395
1321
|
}[];
|
|
396
1322
|
max_score: number;
|
|
397
1323
|
}[];
|
|
398
|
-
total: number;
|
|
399
1324
|
red_flags: string[];
|
|
400
1325
|
} | undefined;
|
|
401
1326
|
info_puzzle?: {
|
|
@@ -403,5 +1328,86 @@ export declare const TrustScoreOutputSchema: z.ZodObject<{
|
|
|
403
1328
|
gaps: string[];
|
|
404
1329
|
assembled_at: number;
|
|
405
1330
|
} | undefined;
|
|
1331
|
+
preorder_advice?: {
|
|
1332
|
+
summary: string;
|
|
1333
|
+
reminders: {
|
|
1334
|
+
message: string;
|
|
1335
|
+
id: string;
|
|
1336
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
1337
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
1338
|
+
action?: string | undefined;
|
|
1339
|
+
}[];
|
|
1340
|
+
confidence: {
|
|
1341
|
+
score: number;
|
|
1342
|
+
base: number;
|
|
1343
|
+
user_adjustment: number;
|
|
1344
|
+
preference_nudge: number;
|
|
1345
|
+
explanation: string;
|
|
1346
|
+
};
|
|
1347
|
+
strategies: {
|
|
1348
|
+
confidence: number;
|
|
1349
|
+
scenario: "fund_safety" | "info_asymmetry" | "refund_dispute" | "arbitration_fairness" | "pricing" | "delivery_sla" | "quality_verification" | "after_sales";
|
|
1350
|
+
rationale: string;
|
|
1351
|
+
merchant_tactic: string;
|
|
1352
|
+
user_strategy: string;
|
|
1353
|
+
nash_equilibrium: string;
|
|
1354
|
+
fallback?: string | undefined;
|
|
1355
|
+
}[];
|
|
1356
|
+
blocking_reminders: {
|
|
1357
|
+
message: string;
|
|
1358
|
+
id: string;
|
|
1359
|
+
priority: "required" | "recommended" | "info" | "reminder";
|
|
1360
|
+
stage: "browse" | "evaluate" | "preorder" | "in_progress" | "complete" | "after_sale";
|
|
1361
|
+
action?: string | undefined;
|
|
1362
|
+
}[];
|
|
1363
|
+
preference_match?: {
|
|
1364
|
+
warnings: string[];
|
|
1365
|
+
score: number;
|
|
1366
|
+
matches: string[];
|
|
1367
|
+
mismatches: string[];
|
|
1368
|
+
} | undefined;
|
|
1369
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1370
|
+
preference_issues?: string[] | undefined;
|
|
1371
|
+
industry_risks?: {
|
|
1372
|
+
summary: string;
|
|
1373
|
+
checks: {
|
|
1374
|
+
description: string;
|
|
1375
|
+
id: string;
|
|
1376
|
+
dimension: "fund" | "workflow" | "trust" | "behavior";
|
|
1377
|
+
passed: boolean;
|
|
1378
|
+
weight: number;
|
|
1379
|
+
advice?: string | undefined;
|
|
1380
|
+
}[];
|
|
1381
|
+
score_adjustment: number;
|
|
1382
|
+
unmet_needs: {
|
|
1383
|
+
description: string;
|
|
1384
|
+
id: string;
|
|
1385
|
+
tier: "common" | "personalized" | "advanced";
|
|
1386
|
+
advice?: string | undefined;
|
|
1387
|
+
}[];
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
} | undefined;
|
|
1390
|
+
comparison?: {
|
|
1391
|
+
note: string;
|
|
1392
|
+
rows: {
|
|
1393
|
+
service_id: string;
|
|
1394
|
+
service_name: string;
|
|
1395
|
+
error?: string | undefined;
|
|
1396
|
+
risk_level?: string | undefined;
|
|
1397
|
+
preference_match?: number | undefined;
|
|
1398
|
+
confidence?: number | undefined;
|
|
1399
|
+
trust_score?: number | undefined;
|
|
1400
|
+
trust_level?: string | undefined;
|
|
1401
|
+
industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
|
|
1402
|
+
risk_total?: number | undefined;
|
|
1403
|
+
reputation_like_ratio?: number | undefined;
|
|
1404
|
+
reputation_votes?: number | undefined;
|
|
1405
|
+
red_flags_count?: number | undefined;
|
|
1406
|
+
blocking_reminders_count?: number | undefined;
|
|
1407
|
+
info_gaps_count?: number | undefined;
|
|
1408
|
+
}[];
|
|
1409
|
+
best_per_metric: Record<string, string[]>;
|
|
1410
|
+
evaluated_metrics: string[];
|
|
1411
|
+
} | undefined;
|
|
406
1412
|
};
|
|
407
1413
|
}>;
|