@wowok/agent-mcp 2.6.9 → 2.7.1

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.
Files changed (139) hide show
  1. package/README.md +0 -2
  2. package/dist/customer/risk-assessment.d.ts +5 -1
  3. package/dist/customer/risk-assessment.js +4 -4
  4. package/dist/evaluation/arbitration-game.d.ts +16 -0
  5. package/dist/evaluation/arbitration-game.js +48 -0
  6. package/dist/evaluation/builtins/demand-match.d.ts +15 -0
  7. package/dist/evaluation/builtins/demand-match.js +153 -0
  8. package/dist/evaluation/builtins/index.d.ts +3 -0
  9. package/dist/evaluation/builtins/index.js +10 -0
  10. package/dist/evaluation/builtins/service-risk.d.ts +6 -0
  11. package/dist/evaluation/builtins/service-risk.js +55 -0
  12. package/dist/evaluation/capability.d.ts +50 -0
  13. package/dist/evaluation/capability.js +13 -0
  14. package/dist/evaluation/composer.d.ts +13 -0
  15. package/dist/evaluation/composer.js +40 -0
  16. package/dist/evaluation/engine.d.ts +18 -0
  17. package/dist/evaluation/engine.js +175 -0
  18. package/dist/evaluation/extract.d.ts +30 -0
  19. package/dist/evaluation/extract.js +115 -0
  20. package/dist/evaluation/gap.d.ts +2 -0
  21. package/dist/evaluation/gap.js +100 -0
  22. package/dist/evaluation/index.d.ts +11 -0
  23. package/dist/evaluation/index.js +11 -0
  24. package/dist/evaluation/node-game.d.ts +34 -0
  25. package/dist/evaluation/node-game.js +57 -0
  26. package/dist/evaluation/region.d.ts +10 -0
  27. package/dist/evaluation/region.js +36 -0
  28. package/dist/evaluation/types.d.ts +76 -0
  29. package/dist/evaluation/types.js +1 -0
  30. package/dist/evaluation/user-injection.d.ts +6 -0
  31. package/dist/evaluation/user-injection.js +27 -0
  32. package/dist/examples/education-contact-create.json +40 -0
  33. package/dist/examples/freelance-contact-create.json +40 -0
  34. package/dist/examples/insurance-machine-create.json +1 -1
  35. package/dist/examples/insurance-service-allocators.json +1 -1
  36. package/dist/examples/machine-publish.json +1 -1
  37. package/dist/examples/rental-ziroom-service-create.json +1 -1
  38. package/dist/examples/retail-adv-guard-messenger-proof-create.json +1 -1
  39. package/dist/examples/retail-myshop-service-create.json +1 -1
  40. package/dist/examples/retail-myshop-service-customer-required.json +1 -1
  41. package/dist/examples/subscription-contact-create.json +40 -0
  42. package/dist/examples/threebody-machine-create.json +1 -1
  43. package/dist/examples/travel-machine-create.json +1 -1
  44. package/dist/examples/travel-service-create.json +1 -1
  45. package/dist/harness/plan.js +42 -3
  46. package/dist/intent/enrich.d.ts +1 -0
  47. package/dist/intent/enrich.js +67 -0
  48. package/dist/intent/index.d.ts +23 -0
  49. package/dist/intent/index.js +60 -0
  50. package/dist/intent/matcher.d.ts +2 -0
  51. package/dist/intent/matcher.js +81 -0
  52. package/dist/intent/store.d.ts +19 -0
  53. package/dist/intent/store.js +55 -0
  54. package/dist/intent/types.d.ts +33 -0
  55. package/dist/intent/types.js +10 -0
  56. package/dist/knowledge/arbitration-risk.js +1 -11
  57. package/dist/knowledge/contact-templates.d.ts +27 -0
  58. package/dist/knowledge/contact-templates.js +60 -0
  59. package/dist/knowledge/examples-scanner.js +21 -3
  60. package/dist/knowledge/fund-layer.js +8 -4
  61. package/dist/knowledge/industry-generalizer.js +21 -21
  62. package/dist/knowledge/machine-risk.js +0 -1
  63. package/dist/knowledge/mcp-schema-audit.d.ts +1 -1
  64. package/dist/knowledge/mcp-schema-audit.js +8 -4
  65. package/dist/knowledge/service-risk.js +38 -2
  66. package/dist/knowledge/service-templates.js +1 -1
  67. package/dist/knowledge/service-translation.js +2 -2
  68. package/dist/knowledge/template-registry.d.ts +1 -1
  69. package/dist/knowledge/template-registry.js +13 -1
  70. package/dist/knowledge/tools-reference.js +23 -0
  71. package/dist/persona/analyzer.d.ts +16 -0
  72. package/dist/persona/analyzer.js +66 -0
  73. package/dist/persona/bridge.d.ts +5 -0
  74. package/dist/persona/bridge.js +86 -0
  75. package/dist/persona/defaults.d.ts +4 -0
  76. package/dist/persona/defaults.js +195 -0
  77. package/dist/persona/experience-bridge.d.ts +3 -0
  78. package/dist/persona/experience-bridge.js +23 -0
  79. package/dist/persona/index.d.ts +18 -0
  80. package/dist/persona/index.js +71 -0
  81. package/dist/persona/model.d.ts +7 -0
  82. package/dist/persona/model.js +111 -0
  83. package/dist/persona/store.d.ts +19 -0
  84. package/dist/persona/store.js +62 -0
  85. package/dist/persona/types.d.ts +43 -0
  86. package/dist/persona/types.js +5 -0
  87. package/dist/project/handlers.d.ts +5 -0
  88. package/dist/project/handlers.js +23 -1
  89. package/dist/project/semantic-graph.js +47 -0
  90. package/dist/rules.d.ts +2 -0
  91. package/dist/rules.js +43 -0
  92. package/dist/schema/call/semantic.js +23 -1
  93. package/dist/schema/call/service.js +7 -1
  94. package/dist/schema/evaluation/index.d.ts +4239 -0
  95. package/dist/schema/evaluation/index.js +356 -0
  96. package/dist/schema/index.d.ts +4 -0
  97. package/dist/schema/index.js +4 -0
  98. package/dist/schema/intent-radar/index.d.ts +284 -0
  99. package/dist/schema/intent-radar/index.js +89 -0
  100. package/dist/schema/messenger/index.d.ts +171 -0
  101. package/dist/schema/messenger/index.js +5 -0
  102. package/dist/schema/operations.js +1 -1
  103. package/dist/schema/persona/index.d.ts +1985 -0
  104. package/dist/schema/persona/index.js +148 -0
  105. package/dist/schema/project/index.d.ts +2 -2
  106. package/dist/schema/query/index.js +6 -0
  107. package/dist/schema/sync-layer4.d.ts +1 -1
  108. package/dist/schema/sync-layer4.js +9 -5
  109. package/dist/schema/task-status.d.ts +168 -0
  110. package/dist/schema/task-status.js +36 -0
  111. package/dist/schema/trust/index.js +1 -1
  112. package/dist/schemas/evaluation_operation.output.json +677 -0
  113. package/dist/schemas/evaluation_operation.schema.json +903 -0
  114. package/dist/schemas/index.json +25 -1
  115. package/dist/schemas/intent_radar.output.json +229 -0
  116. package/dist/schemas/intent_radar.schema.json +135 -0
  117. package/dist/schemas/messenger_operation.output.json +14 -0
  118. package/dist/schemas/messenger_operation.schema.json +18 -0
  119. package/dist/schemas/onchain_operations.schema.json +2 -2
  120. package/dist/schemas/onchain_operations_service.schema.json +2 -2
  121. package/dist/schemas/persona_operation.output.json +389 -0
  122. package/dist/schemas/persona_operation.schema.json +247 -0
  123. package/dist/schemas/query_task_status.output.json +115 -0
  124. package/dist/schemas/query_task_status.schema.json +24 -0
  125. package/dist/schemas/query_toolkit.output.json +1 -1
  126. package/dist/schemas/trust_score.schema.json +1 -1
  127. package/dist/tools/handlers/evaluation.d.ts +2 -0
  128. package/dist/tools/handlers/evaluation.js +123 -0
  129. package/dist/tools/handlers/intent-radar.d.ts +2 -0
  130. package/dist/tools/handlers/intent-radar.js +76 -0
  131. package/dist/tools/handlers/onchain.js +98 -0
  132. package/dist/tools/handlers/persona.d.ts +4 -0
  133. package/dist/tools/handlers/persona.js +89 -0
  134. package/dist/tools/handlers/task-status.d.ts +0 -168
  135. package/dist/tools/handlers/task-status.js +0 -29
  136. package/dist/tools/index.js +83 -7
  137. package/dist/tools/wip-deploy-assist.d.ts +1 -1
  138. package/dist/tools/wip-deploy-assist.js +33 -5
  139. package/package.json +2 -2
@@ -0,0 +1,4239 @@
1
+ import { z } from "zod";
2
+ export declare const CapabilityVectorSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ kind: z.ZodEnum<["service", "demand"]>;
5
+ owner: z.ZodOptional<z.ZodString>;
6
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
7
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
8
+ region: z.ZodObject<{
9
+ mode: z.ZodEnum<["remote", "physical"]>;
10
+ country: z.ZodOptional<z.ZodString>;
11
+ province: z.ZodOptional<z.ZodString>;
12
+ city: z.ZodOptional<z.ZodString>;
13
+ raw: z.ZodString;
14
+ }, "strict", z.ZodTypeAny, {
15
+ raw: string;
16
+ mode: "physical" | "remote";
17
+ country?: string | undefined;
18
+ province?: string | undefined;
19
+ city?: string | undefined;
20
+ }, {
21
+ raw: string;
22
+ mode: "physical" | "remote";
23
+ country?: string | undefined;
24
+ province?: string | undefined;
25
+ city?: string | undefined;
26
+ }>;
27
+ price_min: z.ZodOptional<z.ZodString>;
28
+ price_max: z.ZodOptional<z.ZodString>;
29
+ token_type: z.ZodOptional<z.ZodString>;
30
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
31
+ trust_score: z.ZodOptional<z.ZodNumber>;
32
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
33
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
34
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
35
+ capabilities: z.ZodObject<{
36
+ has_arbitration: z.ZodBoolean;
37
+ has_refund_path: z.ZodBoolean;
38
+ has_milestone_nodes: z.ZodBoolean;
39
+ has_compensation_fund: z.ZodBoolean;
40
+ has_wip_verification: z.ZodBoolean;
41
+ has_messenger: z.ZodBoolean;
42
+ has_buy_guard: z.ZodBoolean;
43
+ has_dynamic_pricing: z.ZodBoolean;
44
+ is_published: z.ZodBoolean;
45
+ is_paused: z.ZodBoolean;
46
+ }, "strict", z.ZodTypeAny, {
47
+ has_refund_path: boolean;
48
+ has_arbitration: boolean;
49
+ has_messenger: boolean;
50
+ has_compensation_fund: boolean;
51
+ has_buy_guard: boolean;
52
+ has_milestone_nodes: boolean;
53
+ has_wip_verification: boolean;
54
+ has_dynamic_pricing: boolean;
55
+ is_published: boolean;
56
+ is_paused: boolean;
57
+ }, {
58
+ has_refund_path: boolean;
59
+ has_arbitration: boolean;
60
+ has_messenger: boolean;
61
+ has_compensation_fund: boolean;
62
+ has_buy_guard: boolean;
63
+ has_milestone_nodes: boolean;
64
+ has_wip_verification: boolean;
65
+ has_dynamic_pricing: boolean;
66
+ is_published: boolean;
67
+ is_paused: boolean;
68
+ }>;
69
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
70
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
71
+ }, "strict", z.ZodTypeAny, {
72
+ id: string;
73
+ kind: "service" | "demand";
74
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
75
+ region: {
76
+ raw: string;
77
+ mode: "physical" | "remote";
78
+ country?: string | undefined;
79
+ province?: string | undefined;
80
+ city?: string | undefined;
81
+ };
82
+ capabilities: {
83
+ has_refund_path: boolean;
84
+ has_arbitration: boolean;
85
+ has_messenger: boolean;
86
+ has_compensation_fund: boolean;
87
+ has_buy_guard: boolean;
88
+ has_milestone_nodes: boolean;
89
+ has_wip_verification: boolean;
90
+ has_dynamic_pricing: boolean;
91
+ is_published: boolean;
92
+ is_paused: boolean;
93
+ };
94
+ owner?: string | undefined;
95
+ token_type?: string | undefined;
96
+ tags?: string[] | undefined;
97
+ trust_score?: number | undefined;
98
+ arbitration_independent?: boolean | undefined;
99
+ reputation_like_ratio?: number | undefined;
100
+ keywords?: string[] | undefined;
101
+ industry_confidence?: number | undefined;
102
+ price_min?: string | undefined;
103
+ price_max?: string | undefined;
104
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
105
+ merchant_history_count?: number | undefined;
106
+ }, {
107
+ id: string;
108
+ kind: "service" | "demand";
109
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
110
+ region: {
111
+ raw: string;
112
+ mode: "physical" | "remote";
113
+ country?: string | undefined;
114
+ province?: string | undefined;
115
+ city?: string | undefined;
116
+ };
117
+ capabilities: {
118
+ has_refund_path: boolean;
119
+ has_arbitration: boolean;
120
+ has_messenger: boolean;
121
+ has_compensation_fund: boolean;
122
+ has_buy_guard: boolean;
123
+ has_milestone_nodes: boolean;
124
+ has_wip_verification: boolean;
125
+ has_dynamic_pricing: boolean;
126
+ is_published: boolean;
127
+ is_paused: boolean;
128
+ };
129
+ owner?: string | undefined;
130
+ token_type?: string | undefined;
131
+ tags?: string[] | undefined;
132
+ trust_score?: number | undefined;
133
+ arbitration_independent?: boolean | undefined;
134
+ reputation_like_ratio?: number | undefined;
135
+ keywords?: string[] | undefined;
136
+ industry_confidence?: number | undefined;
137
+ price_min?: string | undefined;
138
+ price_max?: string | undefined;
139
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
140
+ merchant_history_count?: number | undefined;
141
+ }>;
142
+ export declare const PuzzleRawDataSchema: z.ZodObject<{
143
+ service: z.ZodObject<{
144
+ name: z.ZodOptional<z.ZodString>;
145
+ bPublished: z.ZodOptional<z.ZodBoolean>;
146
+ bPaused: z.ZodOptional<z.ZodBoolean>;
147
+ price: z.ZodOptional<z.ZodString>;
148
+ priceRaw: z.ZodOptional<z.ZodString>;
149
+ token_type: z.ZodOptional<z.ZodString>;
150
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
151
+ suspension: z.ZodOptional<z.ZodBoolean>;
152
+ wip_url: z.ZodOptional<z.ZodString>;
153
+ wip_hash: z.ZodOptional<z.ZodString>;
154
+ }, "strict", z.ZodTypeAny, {
155
+ wip_hash?: string | undefined;
156
+ suspension?: boolean | undefined;
157
+ wip_url?: string | undefined;
158
+ }, {
159
+ wip_hash?: string | undefined;
160
+ suspension?: boolean | undefined;
161
+ wip_url?: string | undefined;
162
+ }>, "many">>;
163
+ machine: z.ZodOptional<z.ZodString>;
164
+ buy_guard: z.ZodOptional<z.ZodString>;
165
+ customer_required: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
166
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
167
+ compensation_fund: z.ZodOptional<z.ZodObject<{
168
+ balance: z.ZodOptional<z.ZodString>;
169
+ }, "strict", z.ZodTypeAny, {
170
+ balance?: string | undefined;
171
+ }, {
172
+ balance?: string | undefined;
173
+ }>>;
174
+ compensation_lock_duration: z.ZodOptional<z.ZodNumber>;
175
+ um: z.ZodOptional<z.ZodString>;
176
+ }, "strict", z.ZodTypeAny, {
177
+ name?: string | undefined;
178
+ token_type?: string | undefined;
179
+ price?: string | undefined;
180
+ compensation_fund?: {
181
+ balance?: string | undefined;
182
+ } | undefined;
183
+ buy_guard?: string | undefined;
184
+ machine?: string | undefined;
185
+ arbitrations?: string[] | undefined;
186
+ sales?: {
187
+ wip_hash?: string | undefined;
188
+ suspension?: boolean | undefined;
189
+ wip_url?: string | undefined;
190
+ }[] | undefined;
191
+ customer_required?: unknown[] | undefined;
192
+ um?: string | undefined;
193
+ bPublished?: boolean | undefined;
194
+ bPaused?: boolean | undefined;
195
+ priceRaw?: string | undefined;
196
+ compensation_lock_duration?: number | undefined;
197
+ }, {
198
+ name?: string | undefined;
199
+ token_type?: string | undefined;
200
+ price?: string | undefined;
201
+ compensation_fund?: {
202
+ balance?: string | undefined;
203
+ } | undefined;
204
+ buy_guard?: string | undefined;
205
+ machine?: string | undefined;
206
+ arbitrations?: string[] | undefined;
207
+ sales?: {
208
+ wip_hash?: string | undefined;
209
+ suspension?: boolean | undefined;
210
+ wip_url?: string | undefined;
211
+ }[] | undefined;
212
+ customer_required?: unknown[] | undefined;
213
+ um?: string | undefined;
214
+ bPublished?: boolean | undefined;
215
+ bPaused?: boolean | undefined;
216
+ priceRaw?: string | undefined;
217
+ compensation_lock_duration?: number | undefined;
218
+ }>;
219
+ machine_nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
220
+ name: z.ZodString;
221
+ forwards: z.ZodOptional<z.ZodArray<z.ZodObject<{
222
+ name: z.ZodOptional<z.ZodString>;
223
+ weight: z.ZodOptional<z.ZodNumber>;
224
+ namedOperator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ to: z.ZodOptional<z.ZodString>;
227
+ }, "strict", z.ZodTypeAny, {
228
+ name?: string | undefined;
229
+ to?: string | undefined;
230
+ guard?: string | null | undefined;
231
+ weight?: number | undefined;
232
+ namedOperator?: string | null | undefined;
233
+ }, {
234
+ name?: string | undefined;
235
+ to?: string | undefined;
236
+ guard?: string | null | undefined;
237
+ weight?: number | undefined;
238
+ namedOperator?: string | null | undefined;
239
+ }>, "many">>;
240
+ is_pair_done: z.ZodOptional<z.ZodBoolean>;
241
+ }, "strict", z.ZodTypeAny, {
242
+ name: string;
243
+ forwards?: {
244
+ name?: string | undefined;
245
+ to?: string | undefined;
246
+ guard?: string | null | undefined;
247
+ weight?: number | undefined;
248
+ namedOperator?: string | null | undefined;
249
+ }[] | undefined;
250
+ is_pair_done?: boolean | undefined;
251
+ }, {
252
+ name: string;
253
+ forwards?: {
254
+ name?: string | undefined;
255
+ to?: string | undefined;
256
+ guard?: string | null | undefined;
257
+ weight?: number | undefined;
258
+ namedOperator?: string | null | undefined;
259
+ }[] | undefined;
260
+ is_pair_done?: boolean | undefined;
261
+ }>, "many">>;
262
+ machine_published: z.ZodOptional<z.ZodBoolean>;
263
+ machine_paused: z.ZodOptional<z.ZodBoolean>;
264
+ reviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
265
+ rating: z.ZodOptional<z.ZodString>;
266
+ reviewer: z.ZodOptional<z.ZodString>;
267
+ verified: z.ZodOptional<z.ZodBoolean>;
268
+ has_evidence: z.ZodOptional<z.ZodBoolean>;
269
+ timestamp: z.ZodOptional<z.ZodNumber>;
270
+ }, "strict", z.ZodTypeAny, {
271
+ timestamp?: number | undefined;
272
+ verified?: boolean | undefined;
273
+ rating?: string | undefined;
274
+ reviewer?: string | undefined;
275
+ has_evidence?: boolean | undefined;
276
+ }, {
277
+ timestamp?: number | undefined;
278
+ verified?: boolean | undefined;
279
+ rating?: string | undefined;
280
+ reviewer?: string | undefined;
281
+ has_evidence?: boolean | undefined;
282
+ }>, "many">>;
283
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
284
+ type: z.ZodString;
285
+ timestamp: z.ZodOptional<z.ZodNumber>;
286
+ address: z.ZodOptional<z.ZodString>;
287
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
288
+ }, "strict", z.ZodTypeAny, {
289
+ type: string;
290
+ address?: string | undefined;
291
+ data?: Record<string, unknown> | undefined;
292
+ timestamp?: number | undefined;
293
+ }, {
294
+ type: string;
295
+ address?: string | undefined;
296
+ data?: Record<string, unknown> | undefined;
297
+ timestamp?: number | undefined;
298
+ }>, "many">>;
299
+ similar_services: z.ZodOptional<z.ZodArray<z.ZodObject<{
300
+ price: z.ZodString;
301
+ }, "strict", z.ZodTypeAny, {
302
+ price: string;
303
+ }, {
304
+ price: string;
305
+ }>, "many">>;
306
+ order_amount: z.ZodOptional<z.ZodString>;
307
+ trust_score: z.ZodOptional<z.ZodObject<{
308
+ score: z.ZodNumber;
309
+ level: z.ZodString;
310
+ }, "strict", z.ZodTypeAny, {
311
+ score: number;
312
+ level: string;
313
+ }, {
314
+ score: number;
315
+ level: string;
316
+ }>>;
317
+ arbitration_owner: z.ZodOptional<z.ZodString>;
318
+ service_owner: z.ZodOptional<z.ZodString>;
319
+ wip_verified: z.ZodOptional<z.ZodBoolean>;
320
+ order_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
321
+ status: z.ZodString;
322
+ has_dispute: z.ZodBoolean;
323
+ is_repeat: z.ZodBoolean;
324
+ }, "strict", z.ZodTypeAny, {
325
+ status: string;
326
+ has_dispute: boolean;
327
+ is_repeat: boolean;
328
+ }, {
329
+ status: string;
330
+ has_dispute: boolean;
331
+ is_repeat: boolean;
332
+ }>, "many">>;
333
+ merchant_reputation: z.ZodOptional<z.ZodObject<{
334
+ likes: z.ZodNumber;
335
+ dislikes: z.ZodNumber;
336
+ }, "strict", z.ZodTypeAny, {
337
+ likes: number;
338
+ dislikes: number;
339
+ }, {
340
+ likes: number;
341
+ dislikes: number;
342
+ }>>;
343
+ }, "strict", z.ZodTypeAny, {
344
+ service: {
345
+ name?: string | undefined;
346
+ token_type?: string | undefined;
347
+ price?: string | undefined;
348
+ compensation_fund?: {
349
+ balance?: string | undefined;
350
+ } | undefined;
351
+ buy_guard?: string | undefined;
352
+ machine?: string | undefined;
353
+ arbitrations?: string[] | undefined;
354
+ sales?: {
355
+ wip_hash?: string | undefined;
356
+ suspension?: boolean | undefined;
357
+ wip_url?: string | undefined;
358
+ }[] | undefined;
359
+ customer_required?: unknown[] | undefined;
360
+ um?: string | undefined;
361
+ bPublished?: boolean | undefined;
362
+ bPaused?: boolean | undefined;
363
+ priceRaw?: string | undefined;
364
+ compensation_lock_duration?: number | undefined;
365
+ };
366
+ events?: {
367
+ type: string;
368
+ address?: string | undefined;
369
+ data?: Record<string, unknown> | undefined;
370
+ timestamp?: number | undefined;
371
+ }[] | undefined;
372
+ trust_score?: {
373
+ score: number;
374
+ level: string;
375
+ } | undefined;
376
+ reviews?: {
377
+ timestamp?: number | undefined;
378
+ verified?: boolean | undefined;
379
+ rating?: string | undefined;
380
+ reviewer?: string | undefined;
381
+ has_evidence?: boolean | undefined;
382
+ }[] | undefined;
383
+ machine_published?: boolean | undefined;
384
+ machine_paused?: boolean | undefined;
385
+ machine_nodes?: {
386
+ name: string;
387
+ forwards?: {
388
+ name?: string | undefined;
389
+ to?: string | undefined;
390
+ guard?: string | null | undefined;
391
+ weight?: number | undefined;
392
+ namedOperator?: string | null | undefined;
393
+ }[] | undefined;
394
+ is_pair_done?: boolean | undefined;
395
+ }[] | undefined;
396
+ order_amount?: string | undefined;
397
+ similar_services?: {
398
+ price: string;
399
+ }[] | undefined;
400
+ arbitration_owner?: string | undefined;
401
+ service_owner?: string | undefined;
402
+ wip_verified?: boolean | undefined;
403
+ order_history?: {
404
+ status: string;
405
+ has_dispute: boolean;
406
+ is_repeat: boolean;
407
+ }[] | undefined;
408
+ merchant_reputation?: {
409
+ likes: number;
410
+ dislikes: number;
411
+ } | undefined;
412
+ }, {
413
+ service: {
414
+ name?: string | undefined;
415
+ token_type?: string | undefined;
416
+ price?: string | undefined;
417
+ compensation_fund?: {
418
+ balance?: string | undefined;
419
+ } | undefined;
420
+ buy_guard?: string | undefined;
421
+ machine?: string | undefined;
422
+ arbitrations?: string[] | undefined;
423
+ sales?: {
424
+ wip_hash?: string | undefined;
425
+ suspension?: boolean | undefined;
426
+ wip_url?: string | undefined;
427
+ }[] | undefined;
428
+ customer_required?: unknown[] | undefined;
429
+ um?: string | undefined;
430
+ bPublished?: boolean | undefined;
431
+ bPaused?: boolean | undefined;
432
+ priceRaw?: string | undefined;
433
+ compensation_lock_duration?: number | undefined;
434
+ };
435
+ events?: {
436
+ type: string;
437
+ address?: string | undefined;
438
+ data?: Record<string, unknown> | undefined;
439
+ timestamp?: number | undefined;
440
+ }[] | undefined;
441
+ trust_score?: {
442
+ score: number;
443
+ level: string;
444
+ } | undefined;
445
+ reviews?: {
446
+ timestamp?: number | undefined;
447
+ verified?: boolean | undefined;
448
+ rating?: string | undefined;
449
+ reviewer?: string | undefined;
450
+ has_evidence?: boolean | undefined;
451
+ }[] | undefined;
452
+ machine_published?: boolean | undefined;
453
+ machine_paused?: boolean | undefined;
454
+ machine_nodes?: {
455
+ name: string;
456
+ forwards?: {
457
+ name?: string | undefined;
458
+ to?: string | undefined;
459
+ guard?: string | null | undefined;
460
+ weight?: number | undefined;
461
+ namedOperator?: string | null | undefined;
462
+ }[] | undefined;
463
+ is_pair_done?: boolean | undefined;
464
+ }[] | undefined;
465
+ order_amount?: string | undefined;
466
+ similar_services?: {
467
+ price: string;
468
+ }[] | undefined;
469
+ arbitration_owner?: string | undefined;
470
+ service_owner?: string | undefined;
471
+ wip_verified?: boolean | undefined;
472
+ order_history?: {
473
+ status: string;
474
+ has_dispute: boolean;
475
+ is_repeat: boolean;
476
+ }[] | undefined;
477
+ merchant_reputation?: {
478
+ likes: number;
479
+ dislikes: number;
480
+ } | undefined;
481
+ }>;
482
+ export declare const EvaluationOperationInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
483
+ action: z.ZodLiteral<"arb_game">;
484
+ status: z.ZodEnum<["Principal_confirming", "Arbitrator_confirming", "Voting", "Arbitrated", "Objectionable", "Finished", "Withdrawn"]>;
485
+ perspective: z.ZodEnum<["disputant", "arbitrator", "voter", "both"]>;
486
+ }, "strict", z.ZodTypeAny, {
487
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
488
+ action: "arb_game";
489
+ perspective: "arbitrator" | "voter" | "disputant" | "both";
490
+ }, {
491
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
492
+ action: "arb_game";
493
+ perspective: "arbitrator" | "voter" | "disputant" | "both";
494
+ }>, z.ZodObject<{
495
+ action: z.ZodLiteral<"node_game">;
496
+ current_node: z.ZodString;
497
+ perspective: z.ZodEnum<["customer", "operator", "observer"]>;
498
+ operable: z.ZodArray<z.ZodObject<{
499
+ name: z.ZodString;
500
+ to_node: z.ZodString;
501
+ execution_path: z.ZodEnum<["order_holder", "permission", "named_operator", "not_available"]>;
502
+ guard: z.ZodOptional<z.ZodString>;
503
+ consequence: z.ZodOptional<z.ZodString>;
504
+ }, "strict", z.ZodTypeAny, {
505
+ name: string;
506
+ to_node: string;
507
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
508
+ guard?: string | undefined;
509
+ consequence?: string | undefined;
510
+ }, {
511
+ name: string;
512
+ to_node: string;
513
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
514
+ guard?: string | undefined;
515
+ consequence?: string | undefined;
516
+ }>, "many">;
517
+ waiting_on: z.ZodOptional<z.ZodArray<z.ZodObject<{
518
+ role: z.ZodString;
519
+ forwards: z.ZodArray<z.ZodString, "many">;
520
+ }, "strict", z.ZodTypeAny, {
521
+ role: string;
522
+ forwards: string[];
523
+ }, {
524
+ role: string;
525
+ forwards: string[];
526
+ }>, "many">>;
527
+ }, "strict", z.ZodTypeAny, {
528
+ action: "node_game";
529
+ current_node: string;
530
+ perspective: "operator" | "customer" | "observer";
531
+ operable: {
532
+ name: string;
533
+ to_node: string;
534
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
535
+ guard?: string | undefined;
536
+ consequence?: string | undefined;
537
+ }[];
538
+ waiting_on?: {
539
+ role: string;
540
+ forwards: string[];
541
+ }[] | undefined;
542
+ }, {
543
+ action: "node_game";
544
+ current_node: string;
545
+ perspective: "operator" | "customer" | "observer";
546
+ operable: {
547
+ name: string;
548
+ to_node: string;
549
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
550
+ guard?: string | undefined;
551
+ consequence?: string | undefined;
552
+ }[];
553
+ waiting_on?: {
554
+ role: string;
555
+ forwards: string[];
556
+ }[] | undefined;
557
+ }>, z.ZodObject<{
558
+ action: z.ZodLiteral<"capability_gap">;
559
+ demand: z.ZodObject<{
560
+ id: z.ZodString;
561
+ kind: z.ZodEnum<["service", "demand"]>;
562
+ owner: z.ZodOptional<z.ZodString>;
563
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
564
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
565
+ region: z.ZodObject<{
566
+ mode: z.ZodEnum<["remote", "physical"]>;
567
+ country: z.ZodOptional<z.ZodString>;
568
+ province: z.ZodOptional<z.ZodString>;
569
+ city: z.ZodOptional<z.ZodString>;
570
+ raw: z.ZodString;
571
+ }, "strict", z.ZodTypeAny, {
572
+ raw: string;
573
+ mode: "physical" | "remote";
574
+ country?: string | undefined;
575
+ province?: string | undefined;
576
+ city?: string | undefined;
577
+ }, {
578
+ raw: string;
579
+ mode: "physical" | "remote";
580
+ country?: string | undefined;
581
+ province?: string | undefined;
582
+ city?: string | undefined;
583
+ }>;
584
+ price_min: z.ZodOptional<z.ZodString>;
585
+ price_max: z.ZodOptional<z.ZodString>;
586
+ token_type: z.ZodOptional<z.ZodString>;
587
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
588
+ trust_score: z.ZodOptional<z.ZodNumber>;
589
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
590
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
591
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
592
+ capabilities: z.ZodObject<{
593
+ has_arbitration: z.ZodBoolean;
594
+ has_refund_path: z.ZodBoolean;
595
+ has_milestone_nodes: z.ZodBoolean;
596
+ has_compensation_fund: z.ZodBoolean;
597
+ has_wip_verification: z.ZodBoolean;
598
+ has_messenger: z.ZodBoolean;
599
+ has_buy_guard: z.ZodBoolean;
600
+ has_dynamic_pricing: z.ZodBoolean;
601
+ is_published: z.ZodBoolean;
602
+ is_paused: z.ZodBoolean;
603
+ }, "strict", z.ZodTypeAny, {
604
+ has_refund_path: boolean;
605
+ has_arbitration: boolean;
606
+ has_messenger: boolean;
607
+ has_compensation_fund: boolean;
608
+ has_buy_guard: boolean;
609
+ has_milestone_nodes: boolean;
610
+ has_wip_verification: boolean;
611
+ has_dynamic_pricing: boolean;
612
+ is_published: boolean;
613
+ is_paused: boolean;
614
+ }, {
615
+ has_refund_path: boolean;
616
+ has_arbitration: boolean;
617
+ has_messenger: boolean;
618
+ has_compensation_fund: boolean;
619
+ has_buy_guard: boolean;
620
+ has_milestone_nodes: boolean;
621
+ has_wip_verification: boolean;
622
+ has_dynamic_pricing: boolean;
623
+ is_published: boolean;
624
+ is_paused: boolean;
625
+ }>;
626
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
627
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
628
+ }, "strict", z.ZodTypeAny, {
629
+ id: string;
630
+ kind: "service" | "demand";
631
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
632
+ region: {
633
+ raw: string;
634
+ mode: "physical" | "remote";
635
+ country?: string | undefined;
636
+ province?: string | undefined;
637
+ city?: string | undefined;
638
+ };
639
+ capabilities: {
640
+ has_refund_path: boolean;
641
+ has_arbitration: boolean;
642
+ has_messenger: boolean;
643
+ has_compensation_fund: boolean;
644
+ has_buy_guard: boolean;
645
+ has_milestone_nodes: boolean;
646
+ has_wip_verification: boolean;
647
+ has_dynamic_pricing: boolean;
648
+ is_published: boolean;
649
+ is_paused: boolean;
650
+ };
651
+ owner?: string | undefined;
652
+ token_type?: string | undefined;
653
+ tags?: string[] | undefined;
654
+ trust_score?: number | undefined;
655
+ arbitration_independent?: boolean | undefined;
656
+ reputation_like_ratio?: number | undefined;
657
+ keywords?: string[] | undefined;
658
+ industry_confidence?: number | undefined;
659
+ price_min?: string | undefined;
660
+ price_max?: string | undefined;
661
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
662
+ merchant_history_count?: number | undefined;
663
+ }, {
664
+ id: string;
665
+ kind: "service" | "demand";
666
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
667
+ region: {
668
+ raw: string;
669
+ mode: "physical" | "remote";
670
+ country?: string | undefined;
671
+ province?: string | undefined;
672
+ city?: string | undefined;
673
+ };
674
+ capabilities: {
675
+ has_refund_path: boolean;
676
+ has_arbitration: boolean;
677
+ has_messenger: boolean;
678
+ has_compensation_fund: boolean;
679
+ has_buy_guard: boolean;
680
+ has_milestone_nodes: boolean;
681
+ has_wip_verification: boolean;
682
+ has_dynamic_pricing: boolean;
683
+ is_published: boolean;
684
+ is_paused: boolean;
685
+ };
686
+ owner?: string | undefined;
687
+ token_type?: string | undefined;
688
+ tags?: string[] | undefined;
689
+ trust_score?: number | undefined;
690
+ arbitration_independent?: boolean | undefined;
691
+ reputation_like_ratio?: number | undefined;
692
+ keywords?: string[] | undefined;
693
+ industry_confidence?: number | undefined;
694
+ price_min?: string | undefined;
695
+ price_max?: string | undefined;
696
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
697
+ merchant_history_count?: number | undefined;
698
+ }>;
699
+ service: z.ZodObject<{
700
+ id: z.ZodString;
701
+ kind: z.ZodEnum<["service", "demand"]>;
702
+ owner: z.ZodOptional<z.ZodString>;
703
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
704
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
705
+ region: z.ZodObject<{
706
+ mode: z.ZodEnum<["remote", "physical"]>;
707
+ country: z.ZodOptional<z.ZodString>;
708
+ province: z.ZodOptional<z.ZodString>;
709
+ city: z.ZodOptional<z.ZodString>;
710
+ raw: z.ZodString;
711
+ }, "strict", z.ZodTypeAny, {
712
+ raw: string;
713
+ mode: "physical" | "remote";
714
+ country?: string | undefined;
715
+ province?: string | undefined;
716
+ city?: string | undefined;
717
+ }, {
718
+ raw: string;
719
+ mode: "physical" | "remote";
720
+ country?: string | undefined;
721
+ province?: string | undefined;
722
+ city?: string | undefined;
723
+ }>;
724
+ price_min: z.ZodOptional<z.ZodString>;
725
+ price_max: z.ZodOptional<z.ZodString>;
726
+ token_type: z.ZodOptional<z.ZodString>;
727
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
728
+ trust_score: z.ZodOptional<z.ZodNumber>;
729
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
730
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
731
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
732
+ capabilities: z.ZodObject<{
733
+ has_arbitration: z.ZodBoolean;
734
+ has_refund_path: z.ZodBoolean;
735
+ has_milestone_nodes: z.ZodBoolean;
736
+ has_compensation_fund: z.ZodBoolean;
737
+ has_wip_verification: z.ZodBoolean;
738
+ has_messenger: z.ZodBoolean;
739
+ has_buy_guard: z.ZodBoolean;
740
+ has_dynamic_pricing: z.ZodBoolean;
741
+ is_published: z.ZodBoolean;
742
+ is_paused: z.ZodBoolean;
743
+ }, "strict", z.ZodTypeAny, {
744
+ has_refund_path: boolean;
745
+ has_arbitration: boolean;
746
+ has_messenger: boolean;
747
+ has_compensation_fund: boolean;
748
+ has_buy_guard: boolean;
749
+ has_milestone_nodes: boolean;
750
+ has_wip_verification: boolean;
751
+ has_dynamic_pricing: boolean;
752
+ is_published: boolean;
753
+ is_paused: boolean;
754
+ }, {
755
+ has_refund_path: boolean;
756
+ has_arbitration: boolean;
757
+ has_messenger: boolean;
758
+ has_compensation_fund: boolean;
759
+ has_buy_guard: boolean;
760
+ has_milestone_nodes: boolean;
761
+ has_wip_verification: boolean;
762
+ has_dynamic_pricing: boolean;
763
+ is_published: boolean;
764
+ is_paused: boolean;
765
+ }>;
766
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
767
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
768
+ }, "strict", z.ZodTypeAny, {
769
+ id: string;
770
+ kind: "service" | "demand";
771
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
772
+ region: {
773
+ raw: string;
774
+ mode: "physical" | "remote";
775
+ country?: string | undefined;
776
+ province?: string | undefined;
777
+ city?: string | undefined;
778
+ };
779
+ capabilities: {
780
+ has_refund_path: boolean;
781
+ has_arbitration: boolean;
782
+ has_messenger: boolean;
783
+ has_compensation_fund: boolean;
784
+ has_buy_guard: boolean;
785
+ has_milestone_nodes: boolean;
786
+ has_wip_verification: boolean;
787
+ has_dynamic_pricing: boolean;
788
+ is_published: boolean;
789
+ is_paused: boolean;
790
+ };
791
+ owner?: string | undefined;
792
+ token_type?: string | undefined;
793
+ tags?: string[] | undefined;
794
+ trust_score?: number | undefined;
795
+ arbitration_independent?: boolean | undefined;
796
+ reputation_like_ratio?: number | undefined;
797
+ keywords?: string[] | undefined;
798
+ industry_confidence?: number | undefined;
799
+ price_min?: string | undefined;
800
+ price_max?: string | undefined;
801
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
802
+ merchant_history_count?: number | undefined;
803
+ }, {
804
+ id: string;
805
+ kind: "service" | "demand";
806
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
807
+ region: {
808
+ raw: string;
809
+ mode: "physical" | "remote";
810
+ country?: string | undefined;
811
+ province?: string | undefined;
812
+ city?: string | undefined;
813
+ };
814
+ capabilities: {
815
+ has_refund_path: boolean;
816
+ has_arbitration: boolean;
817
+ has_messenger: boolean;
818
+ has_compensation_fund: boolean;
819
+ has_buy_guard: boolean;
820
+ has_milestone_nodes: boolean;
821
+ has_wip_verification: boolean;
822
+ has_dynamic_pricing: boolean;
823
+ is_published: boolean;
824
+ is_paused: boolean;
825
+ };
826
+ owner?: string | undefined;
827
+ token_type?: string | undefined;
828
+ tags?: string[] | undefined;
829
+ trust_score?: number | undefined;
830
+ arbitration_independent?: boolean | undefined;
831
+ reputation_like_ratio?: number | undefined;
832
+ keywords?: string[] | undefined;
833
+ industry_confidence?: number | undefined;
834
+ price_min?: string | undefined;
835
+ price_max?: string | undefined;
836
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
837
+ merchant_history_count?: number | undefined;
838
+ }>;
839
+ }, "strict", z.ZodTypeAny, {
840
+ action: "capability_gap";
841
+ service: {
842
+ id: string;
843
+ kind: "service" | "demand";
844
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
845
+ region: {
846
+ raw: string;
847
+ mode: "physical" | "remote";
848
+ country?: string | undefined;
849
+ province?: string | undefined;
850
+ city?: string | undefined;
851
+ };
852
+ capabilities: {
853
+ has_refund_path: boolean;
854
+ has_arbitration: boolean;
855
+ has_messenger: boolean;
856
+ has_compensation_fund: boolean;
857
+ has_buy_guard: boolean;
858
+ has_milestone_nodes: boolean;
859
+ has_wip_verification: boolean;
860
+ has_dynamic_pricing: boolean;
861
+ is_published: boolean;
862
+ is_paused: boolean;
863
+ };
864
+ owner?: string | undefined;
865
+ token_type?: string | undefined;
866
+ tags?: string[] | undefined;
867
+ trust_score?: number | undefined;
868
+ arbitration_independent?: boolean | undefined;
869
+ reputation_like_ratio?: number | undefined;
870
+ keywords?: string[] | undefined;
871
+ industry_confidence?: number | undefined;
872
+ price_min?: string | undefined;
873
+ price_max?: string | undefined;
874
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
875
+ merchant_history_count?: number | undefined;
876
+ };
877
+ demand: {
878
+ id: string;
879
+ kind: "service" | "demand";
880
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
881
+ region: {
882
+ raw: string;
883
+ mode: "physical" | "remote";
884
+ country?: string | undefined;
885
+ province?: string | undefined;
886
+ city?: string | undefined;
887
+ };
888
+ capabilities: {
889
+ has_refund_path: boolean;
890
+ has_arbitration: boolean;
891
+ has_messenger: boolean;
892
+ has_compensation_fund: boolean;
893
+ has_buy_guard: boolean;
894
+ has_milestone_nodes: boolean;
895
+ has_wip_verification: boolean;
896
+ has_dynamic_pricing: boolean;
897
+ is_published: boolean;
898
+ is_paused: boolean;
899
+ };
900
+ owner?: string | undefined;
901
+ token_type?: string | undefined;
902
+ tags?: string[] | undefined;
903
+ trust_score?: number | undefined;
904
+ arbitration_independent?: boolean | undefined;
905
+ reputation_like_ratio?: number | undefined;
906
+ keywords?: string[] | undefined;
907
+ industry_confidence?: number | undefined;
908
+ price_min?: string | undefined;
909
+ price_max?: string | undefined;
910
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
911
+ merchant_history_count?: number | undefined;
912
+ };
913
+ }, {
914
+ action: "capability_gap";
915
+ service: {
916
+ id: string;
917
+ kind: "service" | "demand";
918
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
919
+ region: {
920
+ raw: string;
921
+ mode: "physical" | "remote";
922
+ country?: string | undefined;
923
+ province?: string | undefined;
924
+ city?: string | undefined;
925
+ };
926
+ capabilities: {
927
+ has_refund_path: boolean;
928
+ has_arbitration: boolean;
929
+ has_messenger: boolean;
930
+ has_compensation_fund: boolean;
931
+ has_buy_guard: boolean;
932
+ has_milestone_nodes: boolean;
933
+ has_wip_verification: boolean;
934
+ has_dynamic_pricing: boolean;
935
+ is_published: boolean;
936
+ is_paused: boolean;
937
+ };
938
+ owner?: string | undefined;
939
+ token_type?: string | undefined;
940
+ tags?: string[] | undefined;
941
+ trust_score?: number | undefined;
942
+ arbitration_independent?: boolean | undefined;
943
+ reputation_like_ratio?: number | undefined;
944
+ keywords?: string[] | undefined;
945
+ industry_confidence?: number | undefined;
946
+ price_min?: string | undefined;
947
+ price_max?: string | undefined;
948
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
949
+ merchant_history_count?: number | undefined;
950
+ };
951
+ demand: {
952
+ id: string;
953
+ kind: "service" | "demand";
954
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
955
+ region: {
956
+ raw: string;
957
+ mode: "physical" | "remote";
958
+ country?: string | undefined;
959
+ province?: string | undefined;
960
+ city?: string | undefined;
961
+ };
962
+ capabilities: {
963
+ has_refund_path: boolean;
964
+ has_arbitration: boolean;
965
+ has_messenger: boolean;
966
+ has_compensation_fund: boolean;
967
+ has_buy_guard: boolean;
968
+ has_milestone_nodes: boolean;
969
+ has_wip_verification: boolean;
970
+ has_dynamic_pricing: boolean;
971
+ is_published: boolean;
972
+ is_paused: boolean;
973
+ };
974
+ owner?: string | undefined;
975
+ token_type?: string | undefined;
976
+ tags?: string[] | undefined;
977
+ trust_score?: number | undefined;
978
+ arbitration_independent?: boolean | undefined;
979
+ reputation_like_ratio?: number | undefined;
980
+ keywords?: string[] | undefined;
981
+ industry_confidence?: number | undefined;
982
+ price_min?: string | undefined;
983
+ price_max?: string | undefined;
984
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
985
+ merchant_history_count?: number | undefined;
986
+ };
987
+ }>, z.ZodObject<{
988
+ action: z.ZodLiteral<"compose_service">;
989
+ demand: z.ZodObject<{
990
+ id: z.ZodString;
991
+ kind: z.ZodEnum<["service", "demand"]>;
992
+ owner: z.ZodOptional<z.ZodString>;
993
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
994
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
995
+ region: z.ZodObject<{
996
+ mode: z.ZodEnum<["remote", "physical"]>;
997
+ country: z.ZodOptional<z.ZodString>;
998
+ province: z.ZodOptional<z.ZodString>;
999
+ city: z.ZodOptional<z.ZodString>;
1000
+ raw: z.ZodString;
1001
+ }, "strict", z.ZodTypeAny, {
1002
+ raw: string;
1003
+ mode: "physical" | "remote";
1004
+ country?: string | undefined;
1005
+ province?: string | undefined;
1006
+ city?: string | undefined;
1007
+ }, {
1008
+ raw: string;
1009
+ mode: "physical" | "remote";
1010
+ country?: string | undefined;
1011
+ province?: string | undefined;
1012
+ city?: string | undefined;
1013
+ }>;
1014
+ price_min: z.ZodOptional<z.ZodString>;
1015
+ price_max: z.ZodOptional<z.ZodString>;
1016
+ token_type: z.ZodOptional<z.ZodString>;
1017
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1018
+ trust_score: z.ZodOptional<z.ZodNumber>;
1019
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1020
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1021
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1022
+ capabilities: z.ZodObject<{
1023
+ has_arbitration: z.ZodBoolean;
1024
+ has_refund_path: z.ZodBoolean;
1025
+ has_milestone_nodes: z.ZodBoolean;
1026
+ has_compensation_fund: z.ZodBoolean;
1027
+ has_wip_verification: z.ZodBoolean;
1028
+ has_messenger: z.ZodBoolean;
1029
+ has_buy_guard: z.ZodBoolean;
1030
+ has_dynamic_pricing: z.ZodBoolean;
1031
+ is_published: z.ZodBoolean;
1032
+ is_paused: z.ZodBoolean;
1033
+ }, "strict", z.ZodTypeAny, {
1034
+ has_refund_path: boolean;
1035
+ has_arbitration: boolean;
1036
+ has_messenger: boolean;
1037
+ has_compensation_fund: boolean;
1038
+ has_buy_guard: boolean;
1039
+ has_milestone_nodes: boolean;
1040
+ has_wip_verification: boolean;
1041
+ has_dynamic_pricing: boolean;
1042
+ is_published: boolean;
1043
+ is_paused: boolean;
1044
+ }, {
1045
+ has_refund_path: boolean;
1046
+ has_arbitration: boolean;
1047
+ has_messenger: boolean;
1048
+ has_compensation_fund: boolean;
1049
+ has_buy_guard: boolean;
1050
+ has_milestone_nodes: boolean;
1051
+ has_wip_verification: boolean;
1052
+ has_dynamic_pricing: boolean;
1053
+ is_published: boolean;
1054
+ is_paused: boolean;
1055
+ }>;
1056
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1057
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1058
+ }, "strict", z.ZodTypeAny, {
1059
+ id: string;
1060
+ kind: "service" | "demand";
1061
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1062
+ region: {
1063
+ raw: string;
1064
+ mode: "physical" | "remote";
1065
+ country?: string | undefined;
1066
+ province?: string | undefined;
1067
+ city?: string | undefined;
1068
+ };
1069
+ capabilities: {
1070
+ has_refund_path: boolean;
1071
+ has_arbitration: boolean;
1072
+ has_messenger: boolean;
1073
+ has_compensation_fund: boolean;
1074
+ has_buy_guard: boolean;
1075
+ has_milestone_nodes: boolean;
1076
+ has_wip_verification: boolean;
1077
+ has_dynamic_pricing: boolean;
1078
+ is_published: boolean;
1079
+ is_paused: boolean;
1080
+ };
1081
+ owner?: string | undefined;
1082
+ token_type?: string | undefined;
1083
+ tags?: string[] | undefined;
1084
+ trust_score?: number | undefined;
1085
+ arbitration_independent?: boolean | undefined;
1086
+ reputation_like_ratio?: number | undefined;
1087
+ keywords?: string[] | undefined;
1088
+ industry_confidence?: number | undefined;
1089
+ price_min?: string | undefined;
1090
+ price_max?: string | undefined;
1091
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1092
+ merchant_history_count?: number | undefined;
1093
+ }, {
1094
+ id: string;
1095
+ kind: "service" | "demand";
1096
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1097
+ region: {
1098
+ raw: string;
1099
+ mode: "physical" | "remote";
1100
+ country?: string | undefined;
1101
+ province?: string | undefined;
1102
+ city?: string | undefined;
1103
+ };
1104
+ capabilities: {
1105
+ has_refund_path: boolean;
1106
+ has_arbitration: boolean;
1107
+ has_messenger: boolean;
1108
+ has_compensation_fund: boolean;
1109
+ has_buy_guard: boolean;
1110
+ has_milestone_nodes: boolean;
1111
+ has_wip_verification: boolean;
1112
+ has_dynamic_pricing: boolean;
1113
+ is_published: boolean;
1114
+ is_paused: boolean;
1115
+ };
1116
+ owner?: string | undefined;
1117
+ token_type?: string | undefined;
1118
+ tags?: string[] | undefined;
1119
+ trust_score?: number | undefined;
1120
+ arbitration_independent?: boolean | undefined;
1121
+ reputation_like_ratio?: number | undefined;
1122
+ keywords?: string[] | undefined;
1123
+ industry_confidence?: number | undefined;
1124
+ price_min?: string | undefined;
1125
+ price_max?: string | undefined;
1126
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1127
+ merchant_history_count?: number | undefined;
1128
+ }>;
1129
+ services: z.ZodArray<z.ZodObject<{
1130
+ id: z.ZodString;
1131
+ kind: z.ZodEnum<["service", "demand"]>;
1132
+ owner: z.ZodOptional<z.ZodString>;
1133
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1134
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1135
+ region: z.ZodObject<{
1136
+ mode: z.ZodEnum<["remote", "physical"]>;
1137
+ country: z.ZodOptional<z.ZodString>;
1138
+ province: z.ZodOptional<z.ZodString>;
1139
+ city: z.ZodOptional<z.ZodString>;
1140
+ raw: z.ZodString;
1141
+ }, "strict", z.ZodTypeAny, {
1142
+ raw: string;
1143
+ mode: "physical" | "remote";
1144
+ country?: string | undefined;
1145
+ province?: string | undefined;
1146
+ city?: string | undefined;
1147
+ }, {
1148
+ raw: string;
1149
+ mode: "physical" | "remote";
1150
+ country?: string | undefined;
1151
+ province?: string | undefined;
1152
+ city?: string | undefined;
1153
+ }>;
1154
+ price_min: z.ZodOptional<z.ZodString>;
1155
+ price_max: z.ZodOptional<z.ZodString>;
1156
+ token_type: z.ZodOptional<z.ZodString>;
1157
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1158
+ trust_score: z.ZodOptional<z.ZodNumber>;
1159
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1160
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1161
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1162
+ capabilities: z.ZodObject<{
1163
+ has_arbitration: z.ZodBoolean;
1164
+ has_refund_path: z.ZodBoolean;
1165
+ has_milestone_nodes: z.ZodBoolean;
1166
+ has_compensation_fund: z.ZodBoolean;
1167
+ has_wip_verification: z.ZodBoolean;
1168
+ has_messenger: z.ZodBoolean;
1169
+ has_buy_guard: z.ZodBoolean;
1170
+ has_dynamic_pricing: z.ZodBoolean;
1171
+ is_published: z.ZodBoolean;
1172
+ is_paused: z.ZodBoolean;
1173
+ }, "strict", z.ZodTypeAny, {
1174
+ has_refund_path: boolean;
1175
+ has_arbitration: boolean;
1176
+ has_messenger: boolean;
1177
+ has_compensation_fund: boolean;
1178
+ has_buy_guard: boolean;
1179
+ has_milestone_nodes: boolean;
1180
+ has_wip_verification: boolean;
1181
+ has_dynamic_pricing: boolean;
1182
+ is_published: boolean;
1183
+ is_paused: boolean;
1184
+ }, {
1185
+ has_refund_path: boolean;
1186
+ has_arbitration: boolean;
1187
+ has_messenger: boolean;
1188
+ has_compensation_fund: boolean;
1189
+ has_buy_guard: boolean;
1190
+ has_milestone_nodes: boolean;
1191
+ has_wip_verification: boolean;
1192
+ has_dynamic_pricing: boolean;
1193
+ is_published: boolean;
1194
+ is_paused: boolean;
1195
+ }>;
1196
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1197
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1198
+ }, "strict", z.ZodTypeAny, {
1199
+ id: string;
1200
+ kind: "service" | "demand";
1201
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1202
+ region: {
1203
+ raw: string;
1204
+ mode: "physical" | "remote";
1205
+ country?: string | undefined;
1206
+ province?: string | undefined;
1207
+ city?: string | undefined;
1208
+ };
1209
+ capabilities: {
1210
+ has_refund_path: boolean;
1211
+ has_arbitration: boolean;
1212
+ has_messenger: boolean;
1213
+ has_compensation_fund: boolean;
1214
+ has_buy_guard: boolean;
1215
+ has_milestone_nodes: boolean;
1216
+ has_wip_verification: boolean;
1217
+ has_dynamic_pricing: boolean;
1218
+ is_published: boolean;
1219
+ is_paused: boolean;
1220
+ };
1221
+ owner?: string | undefined;
1222
+ token_type?: string | undefined;
1223
+ tags?: string[] | undefined;
1224
+ trust_score?: number | undefined;
1225
+ arbitration_independent?: boolean | undefined;
1226
+ reputation_like_ratio?: number | undefined;
1227
+ keywords?: string[] | undefined;
1228
+ industry_confidence?: number | undefined;
1229
+ price_min?: string | undefined;
1230
+ price_max?: string | undefined;
1231
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1232
+ merchant_history_count?: number | undefined;
1233
+ }, {
1234
+ id: string;
1235
+ kind: "service" | "demand";
1236
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1237
+ region: {
1238
+ raw: string;
1239
+ mode: "physical" | "remote";
1240
+ country?: string | undefined;
1241
+ province?: string | undefined;
1242
+ city?: string | undefined;
1243
+ };
1244
+ capabilities: {
1245
+ has_refund_path: boolean;
1246
+ has_arbitration: boolean;
1247
+ has_messenger: boolean;
1248
+ has_compensation_fund: boolean;
1249
+ has_buy_guard: boolean;
1250
+ has_milestone_nodes: boolean;
1251
+ has_wip_verification: boolean;
1252
+ has_dynamic_pricing: boolean;
1253
+ is_published: boolean;
1254
+ is_paused: boolean;
1255
+ };
1256
+ owner?: string | undefined;
1257
+ token_type?: string | undefined;
1258
+ tags?: string[] | undefined;
1259
+ trust_score?: number | undefined;
1260
+ arbitration_independent?: boolean | undefined;
1261
+ reputation_like_ratio?: number | undefined;
1262
+ keywords?: string[] | undefined;
1263
+ industry_confidence?: number | undefined;
1264
+ price_min?: string | undefined;
1265
+ price_max?: string | undefined;
1266
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1267
+ merchant_history_count?: number | undefined;
1268
+ }>, "many">;
1269
+ }, "strict", z.ZodTypeAny, {
1270
+ action: "compose_service";
1271
+ demand: {
1272
+ id: string;
1273
+ kind: "service" | "demand";
1274
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1275
+ region: {
1276
+ raw: string;
1277
+ mode: "physical" | "remote";
1278
+ country?: string | undefined;
1279
+ province?: string | undefined;
1280
+ city?: string | undefined;
1281
+ };
1282
+ capabilities: {
1283
+ has_refund_path: boolean;
1284
+ has_arbitration: boolean;
1285
+ has_messenger: boolean;
1286
+ has_compensation_fund: boolean;
1287
+ has_buy_guard: boolean;
1288
+ has_milestone_nodes: boolean;
1289
+ has_wip_verification: boolean;
1290
+ has_dynamic_pricing: boolean;
1291
+ is_published: boolean;
1292
+ is_paused: boolean;
1293
+ };
1294
+ owner?: string | undefined;
1295
+ token_type?: string | undefined;
1296
+ tags?: string[] | undefined;
1297
+ trust_score?: number | undefined;
1298
+ arbitration_independent?: boolean | undefined;
1299
+ reputation_like_ratio?: number | undefined;
1300
+ keywords?: string[] | undefined;
1301
+ industry_confidence?: number | undefined;
1302
+ price_min?: string | undefined;
1303
+ price_max?: string | undefined;
1304
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1305
+ merchant_history_count?: number | undefined;
1306
+ };
1307
+ services: {
1308
+ id: string;
1309
+ kind: "service" | "demand";
1310
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1311
+ region: {
1312
+ raw: string;
1313
+ mode: "physical" | "remote";
1314
+ country?: string | undefined;
1315
+ province?: string | undefined;
1316
+ city?: string | undefined;
1317
+ };
1318
+ capabilities: {
1319
+ has_refund_path: boolean;
1320
+ has_arbitration: boolean;
1321
+ has_messenger: boolean;
1322
+ has_compensation_fund: boolean;
1323
+ has_buy_guard: boolean;
1324
+ has_milestone_nodes: boolean;
1325
+ has_wip_verification: boolean;
1326
+ has_dynamic_pricing: boolean;
1327
+ is_published: boolean;
1328
+ is_paused: boolean;
1329
+ };
1330
+ owner?: string | undefined;
1331
+ token_type?: string | undefined;
1332
+ tags?: string[] | undefined;
1333
+ trust_score?: number | undefined;
1334
+ arbitration_independent?: boolean | undefined;
1335
+ reputation_like_ratio?: number | undefined;
1336
+ keywords?: string[] | undefined;
1337
+ industry_confidence?: number | undefined;
1338
+ price_min?: string | undefined;
1339
+ price_max?: string | undefined;
1340
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1341
+ merchant_history_count?: number | undefined;
1342
+ }[];
1343
+ }, {
1344
+ action: "compose_service";
1345
+ demand: {
1346
+ id: string;
1347
+ kind: "service" | "demand";
1348
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1349
+ region: {
1350
+ raw: string;
1351
+ mode: "physical" | "remote";
1352
+ country?: string | undefined;
1353
+ province?: string | undefined;
1354
+ city?: string | undefined;
1355
+ };
1356
+ capabilities: {
1357
+ has_refund_path: boolean;
1358
+ has_arbitration: boolean;
1359
+ has_messenger: boolean;
1360
+ has_compensation_fund: boolean;
1361
+ has_buy_guard: boolean;
1362
+ has_milestone_nodes: boolean;
1363
+ has_wip_verification: boolean;
1364
+ has_dynamic_pricing: boolean;
1365
+ is_published: boolean;
1366
+ is_paused: boolean;
1367
+ };
1368
+ owner?: string | undefined;
1369
+ token_type?: string | undefined;
1370
+ tags?: string[] | undefined;
1371
+ trust_score?: number | undefined;
1372
+ arbitration_independent?: boolean | undefined;
1373
+ reputation_like_ratio?: number | undefined;
1374
+ keywords?: string[] | undefined;
1375
+ industry_confidence?: number | undefined;
1376
+ price_min?: string | undefined;
1377
+ price_max?: string | undefined;
1378
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1379
+ merchant_history_count?: number | undefined;
1380
+ };
1381
+ services: {
1382
+ id: string;
1383
+ kind: "service" | "demand";
1384
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1385
+ region: {
1386
+ raw: string;
1387
+ mode: "physical" | "remote";
1388
+ country?: string | undefined;
1389
+ province?: string | undefined;
1390
+ city?: string | undefined;
1391
+ };
1392
+ capabilities: {
1393
+ has_refund_path: boolean;
1394
+ has_arbitration: boolean;
1395
+ has_messenger: boolean;
1396
+ has_compensation_fund: boolean;
1397
+ has_buy_guard: boolean;
1398
+ has_milestone_nodes: boolean;
1399
+ has_wip_verification: boolean;
1400
+ has_dynamic_pricing: boolean;
1401
+ is_published: boolean;
1402
+ is_paused: boolean;
1403
+ };
1404
+ owner?: string | undefined;
1405
+ token_type?: string | undefined;
1406
+ tags?: string[] | undefined;
1407
+ trust_score?: number | undefined;
1408
+ arbitration_independent?: boolean | undefined;
1409
+ reputation_like_ratio?: number | undefined;
1410
+ keywords?: string[] | undefined;
1411
+ industry_confidence?: number | undefined;
1412
+ price_min?: string | undefined;
1413
+ price_max?: string | undefined;
1414
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1415
+ merchant_history_count?: number | undefined;
1416
+ }[];
1417
+ }>, z.ZodObject<{
1418
+ action: z.ZodLiteral<"demand_match">;
1419
+ demand_cap: z.ZodObject<{
1420
+ id: z.ZodString;
1421
+ kind: z.ZodEnum<["service", "demand"]>;
1422
+ owner: z.ZodOptional<z.ZodString>;
1423
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1424
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1425
+ region: z.ZodObject<{
1426
+ mode: z.ZodEnum<["remote", "physical"]>;
1427
+ country: z.ZodOptional<z.ZodString>;
1428
+ province: z.ZodOptional<z.ZodString>;
1429
+ city: z.ZodOptional<z.ZodString>;
1430
+ raw: z.ZodString;
1431
+ }, "strict", z.ZodTypeAny, {
1432
+ raw: string;
1433
+ mode: "physical" | "remote";
1434
+ country?: string | undefined;
1435
+ province?: string | undefined;
1436
+ city?: string | undefined;
1437
+ }, {
1438
+ raw: string;
1439
+ mode: "physical" | "remote";
1440
+ country?: string | undefined;
1441
+ province?: string | undefined;
1442
+ city?: string | undefined;
1443
+ }>;
1444
+ price_min: z.ZodOptional<z.ZodString>;
1445
+ price_max: z.ZodOptional<z.ZodString>;
1446
+ token_type: z.ZodOptional<z.ZodString>;
1447
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1448
+ trust_score: z.ZodOptional<z.ZodNumber>;
1449
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1450
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1451
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1452
+ capabilities: z.ZodObject<{
1453
+ has_arbitration: z.ZodBoolean;
1454
+ has_refund_path: z.ZodBoolean;
1455
+ has_milestone_nodes: z.ZodBoolean;
1456
+ has_compensation_fund: z.ZodBoolean;
1457
+ has_wip_verification: z.ZodBoolean;
1458
+ has_messenger: z.ZodBoolean;
1459
+ has_buy_guard: z.ZodBoolean;
1460
+ has_dynamic_pricing: z.ZodBoolean;
1461
+ is_published: z.ZodBoolean;
1462
+ is_paused: z.ZodBoolean;
1463
+ }, "strict", z.ZodTypeAny, {
1464
+ has_refund_path: boolean;
1465
+ has_arbitration: boolean;
1466
+ has_messenger: boolean;
1467
+ has_compensation_fund: boolean;
1468
+ has_buy_guard: boolean;
1469
+ has_milestone_nodes: boolean;
1470
+ has_wip_verification: boolean;
1471
+ has_dynamic_pricing: boolean;
1472
+ is_published: boolean;
1473
+ is_paused: boolean;
1474
+ }, {
1475
+ has_refund_path: boolean;
1476
+ has_arbitration: boolean;
1477
+ has_messenger: boolean;
1478
+ has_compensation_fund: boolean;
1479
+ has_buy_guard: boolean;
1480
+ has_milestone_nodes: boolean;
1481
+ has_wip_verification: boolean;
1482
+ has_dynamic_pricing: boolean;
1483
+ is_published: boolean;
1484
+ is_paused: boolean;
1485
+ }>;
1486
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1487
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1488
+ }, "strict", z.ZodTypeAny, {
1489
+ id: string;
1490
+ kind: "service" | "demand";
1491
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1492
+ region: {
1493
+ raw: string;
1494
+ mode: "physical" | "remote";
1495
+ country?: string | undefined;
1496
+ province?: string | undefined;
1497
+ city?: string | undefined;
1498
+ };
1499
+ capabilities: {
1500
+ has_refund_path: boolean;
1501
+ has_arbitration: boolean;
1502
+ has_messenger: boolean;
1503
+ has_compensation_fund: boolean;
1504
+ has_buy_guard: boolean;
1505
+ has_milestone_nodes: boolean;
1506
+ has_wip_verification: boolean;
1507
+ has_dynamic_pricing: boolean;
1508
+ is_published: boolean;
1509
+ is_paused: boolean;
1510
+ };
1511
+ owner?: string | undefined;
1512
+ token_type?: string | undefined;
1513
+ tags?: string[] | undefined;
1514
+ trust_score?: number | undefined;
1515
+ arbitration_independent?: boolean | undefined;
1516
+ reputation_like_ratio?: number | undefined;
1517
+ keywords?: string[] | undefined;
1518
+ industry_confidence?: number | undefined;
1519
+ price_min?: string | undefined;
1520
+ price_max?: string | undefined;
1521
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1522
+ merchant_history_count?: number | undefined;
1523
+ }, {
1524
+ id: string;
1525
+ kind: "service" | "demand";
1526
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1527
+ region: {
1528
+ raw: string;
1529
+ mode: "physical" | "remote";
1530
+ country?: string | undefined;
1531
+ province?: string | undefined;
1532
+ city?: string | undefined;
1533
+ };
1534
+ capabilities: {
1535
+ has_refund_path: boolean;
1536
+ has_arbitration: boolean;
1537
+ has_messenger: boolean;
1538
+ has_compensation_fund: boolean;
1539
+ has_buy_guard: boolean;
1540
+ has_milestone_nodes: boolean;
1541
+ has_wip_verification: boolean;
1542
+ has_dynamic_pricing: boolean;
1543
+ is_published: boolean;
1544
+ is_paused: boolean;
1545
+ };
1546
+ owner?: string | undefined;
1547
+ token_type?: string | undefined;
1548
+ tags?: string[] | undefined;
1549
+ trust_score?: number | undefined;
1550
+ arbitration_independent?: boolean | undefined;
1551
+ reputation_like_ratio?: number | undefined;
1552
+ keywords?: string[] | undefined;
1553
+ industry_confidence?: number | undefined;
1554
+ price_min?: string | undefined;
1555
+ price_max?: string | undefined;
1556
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1557
+ merchant_history_count?: number | undefined;
1558
+ }>;
1559
+ services: z.ZodArray<z.ZodObject<{
1560
+ object: z.ZodString;
1561
+ description: z.ZodString;
1562
+ location: z.ZodString;
1563
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
1564
+ name: z.ZodOptional<z.ZodString>;
1565
+ price: z.ZodString;
1566
+ wip_hash: z.ZodOptional<z.ZodString>;
1567
+ }, "strict", z.ZodTypeAny, {
1568
+ price: string;
1569
+ name?: string | undefined;
1570
+ wip_hash?: string | undefined;
1571
+ }, {
1572
+ price: string;
1573
+ name?: string | undefined;
1574
+ wip_hash?: string | undefined;
1575
+ }>, "many">>;
1576
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1577
+ compensation_fund: z.ZodOptional<z.ZodString>;
1578
+ buy_guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1579
+ machine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1580
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1581
+ bPublished: z.ZodOptional<z.ZodBoolean>;
1582
+ bPaused: z.ZodOptional<z.ZodBoolean>;
1583
+ owner: z.ZodOptional<z.ZodString>;
1584
+ }, "strict", z.ZodTypeAny, {
1585
+ object: string;
1586
+ description: string;
1587
+ location: string;
1588
+ owner?: string | undefined;
1589
+ compensation_fund?: string | undefined;
1590
+ buy_guard?: string | null | undefined;
1591
+ machine?: string | null | undefined;
1592
+ arbitrations?: string[] | undefined;
1593
+ sales?: {
1594
+ price: string;
1595
+ name?: string | undefined;
1596
+ wip_hash?: string | undefined;
1597
+ }[] | undefined;
1598
+ um?: string | null | undefined;
1599
+ bPublished?: boolean | undefined;
1600
+ bPaused?: boolean | undefined;
1601
+ }, {
1602
+ object: string;
1603
+ description: string;
1604
+ location: string;
1605
+ owner?: string | undefined;
1606
+ compensation_fund?: string | undefined;
1607
+ buy_guard?: string | null | undefined;
1608
+ machine?: string | null | undefined;
1609
+ arbitrations?: string[] | undefined;
1610
+ sales?: {
1611
+ price: string;
1612
+ name?: string | undefined;
1613
+ wip_hash?: string | undefined;
1614
+ }[] | undefined;
1615
+ um?: string | null | undefined;
1616
+ bPublished?: boolean | undefined;
1617
+ bPaused?: boolean | undefined;
1618
+ }>, "many">;
1619
+ injection: z.ZodOptional<z.ZodObject<{
1620
+ intent: z.ZodOptional<z.ZodString>;
1621
+ preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1622
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1623
+ rule_id: z.ZodString;
1624
+ condition: z.ZodEnum<["require", "forbid"]>;
1625
+ note: z.ZodOptional<z.ZodString>;
1626
+ }, "strict", z.ZodTypeAny, {
1627
+ rule_id: string;
1628
+ condition: "require" | "forbid";
1629
+ note?: string | undefined;
1630
+ }, {
1631
+ rule_id: string;
1632
+ condition: "require" | "forbid";
1633
+ note?: string | undefined;
1634
+ }>, "many">>;
1635
+ overrides: z.ZodOptional<z.ZodObject<{
1636
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1637
+ enabled: z.ZodOptional<z.ZodBoolean>;
1638
+ weight: z.ZodOptional<z.ZodNumber>;
1639
+ }, "strict", z.ZodTypeAny, {
1640
+ enabled?: boolean | undefined;
1641
+ weight?: number | undefined;
1642
+ }, {
1643
+ enabled?: boolean | undefined;
1644
+ weight?: number | undefined;
1645
+ }>>>;
1646
+ data_sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1647
+ enabled: z.ZodOptional<z.ZodBoolean>;
1648
+ }, "strict", z.ZodTypeAny, {
1649
+ enabled?: boolean | undefined;
1650
+ }, {
1651
+ enabled?: boolean | undefined;
1652
+ }>>>;
1653
+ }, "strict", z.ZodTypeAny, {
1654
+ data_sources?: Record<string, {
1655
+ enabled?: boolean | undefined;
1656
+ }> | undefined;
1657
+ rules?: Record<string, {
1658
+ enabled?: boolean | undefined;
1659
+ weight?: number | undefined;
1660
+ }> | undefined;
1661
+ }, {
1662
+ data_sources?: Record<string, {
1663
+ enabled?: boolean | undefined;
1664
+ }> | undefined;
1665
+ rules?: Record<string, {
1666
+ enabled?: boolean | undefined;
1667
+ weight?: number | undefined;
1668
+ }> | undefined;
1669
+ }>>;
1670
+ }, "strict", z.ZodTypeAny, {
1671
+ intent?: string | undefined;
1672
+ overrides?: {
1673
+ data_sources?: Record<string, {
1674
+ enabled?: boolean | undefined;
1675
+ }> | undefined;
1676
+ rules?: Record<string, {
1677
+ enabled?: boolean | undefined;
1678
+ weight?: number | undefined;
1679
+ }> | undefined;
1680
+ } | undefined;
1681
+ preferences?: Record<string, unknown> | undefined;
1682
+ requirements?: {
1683
+ rule_id: string;
1684
+ condition: "require" | "forbid";
1685
+ note?: string | undefined;
1686
+ }[] | undefined;
1687
+ }, {
1688
+ intent?: string | undefined;
1689
+ overrides?: {
1690
+ data_sources?: Record<string, {
1691
+ enabled?: boolean | undefined;
1692
+ }> | undefined;
1693
+ rules?: Record<string, {
1694
+ enabled?: boolean | undefined;
1695
+ weight?: number | undefined;
1696
+ }> | undefined;
1697
+ } | undefined;
1698
+ preferences?: Record<string, unknown> | undefined;
1699
+ requirements?: {
1700
+ rule_id: string;
1701
+ condition: "require" | "forbid";
1702
+ note?: string | undefined;
1703
+ }[] | undefined;
1704
+ }>>;
1705
+ account: z.ZodOptional<z.ZodString>;
1706
+ }, "strict", z.ZodTypeAny, {
1707
+ action: "demand_match";
1708
+ services: {
1709
+ object: string;
1710
+ description: string;
1711
+ location: string;
1712
+ owner?: string | undefined;
1713
+ compensation_fund?: string | undefined;
1714
+ buy_guard?: string | null | undefined;
1715
+ machine?: string | null | undefined;
1716
+ arbitrations?: string[] | undefined;
1717
+ sales?: {
1718
+ price: string;
1719
+ name?: string | undefined;
1720
+ wip_hash?: string | undefined;
1721
+ }[] | undefined;
1722
+ um?: string | null | undefined;
1723
+ bPublished?: boolean | undefined;
1724
+ bPaused?: boolean | undefined;
1725
+ }[];
1726
+ demand_cap: {
1727
+ id: string;
1728
+ kind: "service" | "demand";
1729
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1730
+ region: {
1731
+ raw: string;
1732
+ mode: "physical" | "remote";
1733
+ country?: string | undefined;
1734
+ province?: string | undefined;
1735
+ city?: string | undefined;
1736
+ };
1737
+ capabilities: {
1738
+ has_refund_path: boolean;
1739
+ has_arbitration: boolean;
1740
+ has_messenger: boolean;
1741
+ has_compensation_fund: boolean;
1742
+ has_buy_guard: boolean;
1743
+ has_milestone_nodes: boolean;
1744
+ has_wip_verification: boolean;
1745
+ has_dynamic_pricing: boolean;
1746
+ is_published: boolean;
1747
+ is_paused: boolean;
1748
+ };
1749
+ owner?: string | undefined;
1750
+ token_type?: string | undefined;
1751
+ tags?: string[] | undefined;
1752
+ trust_score?: number | undefined;
1753
+ arbitration_independent?: boolean | undefined;
1754
+ reputation_like_ratio?: number | undefined;
1755
+ keywords?: string[] | undefined;
1756
+ industry_confidence?: number | undefined;
1757
+ price_min?: string | undefined;
1758
+ price_max?: string | undefined;
1759
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1760
+ merchant_history_count?: number | undefined;
1761
+ };
1762
+ account?: string | undefined;
1763
+ injection?: {
1764
+ intent?: string | undefined;
1765
+ overrides?: {
1766
+ data_sources?: Record<string, {
1767
+ enabled?: boolean | undefined;
1768
+ }> | undefined;
1769
+ rules?: Record<string, {
1770
+ enabled?: boolean | undefined;
1771
+ weight?: number | undefined;
1772
+ }> | undefined;
1773
+ } | undefined;
1774
+ preferences?: Record<string, unknown> | undefined;
1775
+ requirements?: {
1776
+ rule_id: string;
1777
+ condition: "require" | "forbid";
1778
+ note?: string | undefined;
1779
+ }[] | undefined;
1780
+ } | undefined;
1781
+ }, {
1782
+ action: "demand_match";
1783
+ services: {
1784
+ object: string;
1785
+ description: string;
1786
+ location: string;
1787
+ owner?: string | undefined;
1788
+ compensation_fund?: string | undefined;
1789
+ buy_guard?: string | null | undefined;
1790
+ machine?: string | null | undefined;
1791
+ arbitrations?: string[] | undefined;
1792
+ sales?: {
1793
+ price: string;
1794
+ name?: string | undefined;
1795
+ wip_hash?: string | undefined;
1796
+ }[] | undefined;
1797
+ um?: string | null | undefined;
1798
+ bPublished?: boolean | undefined;
1799
+ bPaused?: boolean | undefined;
1800
+ }[];
1801
+ demand_cap: {
1802
+ id: string;
1803
+ kind: "service" | "demand";
1804
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1805
+ region: {
1806
+ raw: string;
1807
+ mode: "physical" | "remote";
1808
+ country?: string | undefined;
1809
+ province?: string | undefined;
1810
+ city?: string | undefined;
1811
+ };
1812
+ capabilities: {
1813
+ has_refund_path: boolean;
1814
+ has_arbitration: boolean;
1815
+ has_messenger: boolean;
1816
+ has_compensation_fund: boolean;
1817
+ has_buy_guard: boolean;
1818
+ has_milestone_nodes: boolean;
1819
+ has_wip_verification: boolean;
1820
+ has_dynamic_pricing: boolean;
1821
+ is_published: boolean;
1822
+ is_paused: boolean;
1823
+ };
1824
+ owner?: string | undefined;
1825
+ token_type?: string | undefined;
1826
+ tags?: string[] | undefined;
1827
+ trust_score?: number | undefined;
1828
+ arbitration_independent?: boolean | undefined;
1829
+ reputation_like_ratio?: number | undefined;
1830
+ keywords?: string[] | undefined;
1831
+ industry_confidence?: number | undefined;
1832
+ price_min?: string | undefined;
1833
+ price_max?: string | undefined;
1834
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1835
+ merchant_history_count?: number | undefined;
1836
+ };
1837
+ account?: string | undefined;
1838
+ injection?: {
1839
+ intent?: string | undefined;
1840
+ overrides?: {
1841
+ data_sources?: Record<string, {
1842
+ enabled?: boolean | undefined;
1843
+ }> | undefined;
1844
+ rules?: Record<string, {
1845
+ enabled?: boolean | undefined;
1846
+ weight?: number | undefined;
1847
+ }> | undefined;
1848
+ } | undefined;
1849
+ preferences?: Record<string, unknown> | undefined;
1850
+ requirements?: {
1851
+ rule_id: string;
1852
+ condition: "require" | "forbid";
1853
+ note?: string | undefined;
1854
+ }[] | undefined;
1855
+ } | undefined;
1856
+ }>, z.ZodObject<{
1857
+ action: z.ZodLiteral<"service_match">;
1858
+ service_cap: z.ZodObject<{
1859
+ id: z.ZodString;
1860
+ kind: z.ZodEnum<["service", "demand"]>;
1861
+ owner: z.ZodOptional<z.ZodString>;
1862
+ industry: z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail", "general", "custom"]>;
1863
+ industry_confidence: z.ZodOptional<z.ZodNumber>;
1864
+ region: z.ZodObject<{
1865
+ mode: z.ZodEnum<["remote", "physical"]>;
1866
+ country: z.ZodOptional<z.ZodString>;
1867
+ province: z.ZodOptional<z.ZodString>;
1868
+ city: z.ZodOptional<z.ZodString>;
1869
+ raw: z.ZodString;
1870
+ }, "strict", z.ZodTypeAny, {
1871
+ raw: string;
1872
+ mode: "physical" | "remote";
1873
+ country?: string | undefined;
1874
+ province?: string | undefined;
1875
+ city?: string | undefined;
1876
+ }, {
1877
+ raw: string;
1878
+ mode: "physical" | "remote";
1879
+ country?: string | undefined;
1880
+ province?: string | undefined;
1881
+ city?: string | undefined;
1882
+ }>;
1883
+ price_min: z.ZodOptional<z.ZodString>;
1884
+ price_max: z.ZodOptional<z.ZodString>;
1885
+ token_type: z.ZodOptional<z.ZodString>;
1886
+ ticket_size: z.ZodOptional<z.ZodEnum<["micro", "small", "medium", "large"]>>;
1887
+ trust_score: z.ZodOptional<z.ZodNumber>;
1888
+ reputation_like_ratio: z.ZodOptional<z.ZodNumber>;
1889
+ arbitration_independent: z.ZodOptional<z.ZodBoolean>;
1890
+ merchant_history_count: z.ZodOptional<z.ZodNumber>;
1891
+ capabilities: z.ZodObject<{
1892
+ has_arbitration: z.ZodBoolean;
1893
+ has_refund_path: z.ZodBoolean;
1894
+ has_milestone_nodes: z.ZodBoolean;
1895
+ has_compensation_fund: z.ZodBoolean;
1896
+ has_wip_verification: z.ZodBoolean;
1897
+ has_messenger: z.ZodBoolean;
1898
+ has_buy_guard: z.ZodBoolean;
1899
+ has_dynamic_pricing: z.ZodBoolean;
1900
+ is_published: z.ZodBoolean;
1901
+ is_paused: z.ZodBoolean;
1902
+ }, "strict", z.ZodTypeAny, {
1903
+ has_refund_path: boolean;
1904
+ has_arbitration: boolean;
1905
+ has_messenger: boolean;
1906
+ has_compensation_fund: boolean;
1907
+ has_buy_guard: boolean;
1908
+ has_milestone_nodes: boolean;
1909
+ has_wip_verification: boolean;
1910
+ has_dynamic_pricing: boolean;
1911
+ is_published: boolean;
1912
+ is_paused: boolean;
1913
+ }, {
1914
+ has_refund_path: boolean;
1915
+ has_arbitration: boolean;
1916
+ has_messenger: boolean;
1917
+ has_compensation_fund: boolean;
1918
+ has_buy_guard: boolean;
1919
+ has_milestone_nodes: boolean;
1920
+ has_wip_verification: boolean;
1921
+ has_dynamic_pricing: boolean;
1922
+ is_published: boolean;
1923
+ is_paused: boolean;
1924
+ }>;
1925
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1926
+ keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1927
+ }, "strict", z.ZodTypeAny, {
1928
+ id: string;
1929
+ kind: "service" | "demand";
1930
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1931
+ region: {
1932
+ raw: string;
1933
+ mode: "physical" | "remote";
1934
+ country?: string | undefined;
1935
+ province?: string | undefined;
1936
+ city?: string | undefined;
1937
+ };
1938
+ capabilities: {
1939
+ has_refund_path: boolean;
1940
+ has_arbitration: boolean;
1941
+ has_messenger: boolean;
1942
+ has_compensation_fund: boolean;
1943
+ has_buy_guard: boolean;
1944
+ has_milestone_nodes: boolean;
1945
+ has_wip_verification: boolean;
1946
+ has_dynamic_pricing: boolean;
1947
+ is_published: boolean;
1948
+ is_paused: boolean;
1949
+ };
1950
+ owner?: string | undefined;
1951
+ token_type?: string | undefined;
1952
+ tags?: string[] | undefined;
1953
+ trust_score?: number | undefined;
1954
+ arbitration_independent?: boolean | undefined;
1955
+ reputation_like_ratio?: number | undefined;
1956
+ keywords?: string[] | undefined;
1957
+ industry_confidence?: number | undefined;
1958
+ price_min?: string | undefined;
1959
+ price_max?: string | undefined;
1960
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1961
+ merchant_history_count?: number | undefined;
1962
+ }, {
1963
+ id: string;
1964
+ kind: "service" | "demand";
1965
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
1966
+ region: {
1967
+ raw: string;
1968
+ mode: "physical" | "remote";
1969
+ country?: string | undefined;
1970
+ province?: string | undefined;
1971
+ city?: string | undefined;
1972
+ };
1973
+ capabilities: {
1974
+ has_refund_path: boolean;
1975
+ has_arbitration: boolean;
1976
+ has_messenger: boolean;
1977
+ has_compensation_fund: boolean;
1978
+ has_buy_guard: boolean;
1979
+ has_milestone_nodes: boolean;
1980
+ has_wip_verification: boolean;
1981
+ has_dynamic_pricing: boolean;
1982
+ is_published: boolean;
1983
+ is_paused: boolean;
1984
+ };
1985
+ owner?: string | undefined;
1986
+ token_type?: string | undefined;
1987
+ tags?: string[] | undefined;
1988
+ trust_score?: number | undefined;
1989
+ arbitration_independent?: boolean | undefined;
1990
+ reputation_like_ratio?: number | undefined;
1991
+ keywords?: string[] | undefined;
1992
+ industry_confidence?: number | undefined;
1993
+ price_min?: string | undefined;
1994
+ price_max?: string | undefined;
1995
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
1996
+ merchant_history_count?: number | undefined;
1997
+ }>;
1998
+ demands: z.ZodArray<z.ZodObject<{
1999
+ object: z.ZodString;
2000
+ description: z.ZodString;
2001
+ location: z.ZodString;
2002
+ rewards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2003
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2004
+ owner: z.ZodOptional<z.ZodString>;
2005
+ }, "strict", z.ZodTypeAny, {
2006
+ object: string;
2007
+ description: string;
2008
+ location: string;
2009
+ owner?: string | undefined;
2010
+ rewards?: string[] | undefined;
2011
+ um?: string | null | undefined;
2012
+ }, {
2013
+ object: string;
2014
+ description: string;
2015
+ location: string;
2016
+ owner?: string | undefined;
2017
+ rewards?: string[] | undefined;
2018
+ um?: string | null | undefined;
2019
+ }>, "many">;
2020
+ injection: z.ZodOptional<z.ZodObject<{
2021
+ intent: z.ZodOptional<z.ZodString>;
2022
+ preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2023
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
2024
+ rule_id: z.ZodString;
2025
+ condition: z.ZodEnum<["require", "forbid"]>;
2026
+ note: z.ZodOptional<z.ZodString>;
2027
+ }, "strict", z.ZodTypeAny, {
2028
+ rule_id: string;
2029
+ condition: "require" | "forbid";
2030
+ note?: string | undefined;
2031
+ }, {
2032
+ rule_id: string;
2033
+ condition: "require" | "forbid";
2034
+ note?: string | undefined;
2035
+ }>, "many">>;
2036
+ overrides: z.ZodOptional<z.ZodObject<{
2037
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2038
+ enabled: z.ZodOptional<z.ZodBoolean>;
2039
+ weight: z.ZodOptional<z.ZodNumber>;
2040
+ }, "strict", z.ZodTypeAny, {
2041
+ enabled?: boolean | undefined;
2042
+ weight?: number | undefined;
2043
+ }, {
2044
+ enabled?: boolean | undefined;
2045
+ weight?: number | undefined;
2046
+ }>>>;
2047
+ data_sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2048
+ enabled: z.ZodOptional<z.ZodBoolean>;
2049
+ }, "strict", z.ZodTypeAny, {
2050
+ enabled?: boolean | undefined;
2051
+ }, {
2052
+ enabled?: boolean | undefined;
2053
+ }>>>;
2054
+ }, "strict", z.ZodTypeAny, {
2055
+ data_sources?: Record<string, {
2056
+ enabled?: boolean | undefined;
2057
+ }> | undefined;
2058
+ rules?: Record<string, {
2059
+ enabled?: boolean | undefined;
2060
+ weight?: number | undefined;
2061
+ }> | undefined;
2062
+ }, {
2063
+ data_sources?: Record<string, {
2064
+ enabled?: boolean | undefined;
2065
+ }> | undefined;
2066
+ rules?: Record<string, {
2067
+ enabled?: boolean | undefined;
2068
+ weight?: number | undefined;
2069
+ }> | undefined;
2070
+ }>>;
2071
+ }, "strict", z.ZodTypeAny, {
2072
+ intent?: string | undefined;
2073
+ overrides?: {
2074
+ data_sources?: Record<string, {
2075
+ enabled?: boolean | undefined;
2076
+ }> | undefined;
2077
+ rules?: Record<string, {
2078
+ enabled?: boolean | undefined;
2079
+ weight?: number | undefined;
2080
+ }> | undefined;
2081
+ } | undefined;
2082
+ preferences?: Record<string, unknown> | undefined;
2083
+ requirements?: {
2084
+ rule_id: string;
2085
+ condition: "require" | "forbid";
2086
+ note?: string | undefined;
2087
+ }[] | undefined;
2088
+ }, {
2089
+ intent?: string | undefined;
2090
+ overrides?: {
2091
+ data_sources?: Record<string, {
2092
+ enabled?: boolean | undefined;
2093
+ }> | undefined;
2094
+ rules?: Record<string, {
2095
+ enabled?: boolean | undefined;
2096
+ weight?: number | undefined;
2097
+ }> | undefined;
2098
+ } | undefined;
2099
+ preferences?: Record<string, unknown> | undefined;
2100
+ requirements?: {
2101
+ rule_id: string;
2102
+ condition: "require" | "forbid";
2103
+ note?: string | undefined;
2104
+ }[] | undefined;
2105
+ }>>;
2106
+ account: z.ZodOptional<z.ZodString>;
2107
+ }, "strict", z.ZodTypeAny, {
2108
+ action: "service_match";
2109
+ service_cap: {
2110
+ id: string;
2111
+ kind: "service" | "demand";
2112
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
2113
+ region: {
2114
+ raw: string;
2115
+ mode: "physical" | "remote";
2116
+ country?: string | undefined;
2117
+ province?: string | undefined;
2118
+ city?: string | undefined;
2119
+ };
2120
+ capabilities: {
2121
+ has_refund_path: boolean;
2122
+ has_arbitration: boolean;
2123
+ has_messenger: boolean;
2124
+ has_compensation_fund: boolean;
2125
+ has_buy_guard: boolean;
2126
+ has_milestone_nodes: boolean;
2127
+ has_wip_verification: boolean;
2128
+ has_dynamic_pricing: boolean;
2129
+ is_published: boolean;
2130
+ is_paused: boolean;
2131
+ };
2132
+ owner?: string | undefined;
2133
+ token_type?: string | undefined;
2134
+ tags?: string[] | undefined;
2135
+ trust_score?: number | undefined;
2136
+ arbitration_independent?: boolean | undefined;
2137
+ reputation_like_ratio?: number | undefined;
2138
+ keywords?: string[] | undefined;
2139
+ industry_confidence?: number | undefined;
2140
+ price_min?: string | undefined;
2141
+ price_max?: string | undefined;
2142
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
2143
+ merchant_history_count?: number | undefined;
2144
+ };
2145
+ demands: {
2146
+ object: string;
2147
+ description: string;
2148
+ location: string;
2149
+ owner?: string | undefined;
2150
+ rewards?: string[] | undefined;
2151
+ um?: string | null | undefined;
2152
+ }[];
2153
+ account?: string | undefined;
2154
+ injection?: {
2155
+ intent?: string | undefined;
2156
+ overrides?: {
2157
+ data_sources?: Record<string, {
2158
+ enabled?: boolean | undefined;
2159
+ }> | undefined;
2160
+ rules?: Record<string, {
2161
+ enabled?: boolean | undefined;
2162
+ weight?: number | undefined;
2163
+ }> | undefined;
2164
+ } | undefined;
2165
+ preferences?: Record<string, unknown> | undefined;
2166
+ requirements?: {
2167
+ rule_id: string;
2168
+ condition: "require" | "forbid";
2169
+ note?: string | undefined;
2170
+ }[] | undefined;
2171
+ } | undefined;
2172
+ }, {
2173
+ action: "service_match";
2174
+ service_cap: {
2175
+ id: string;
2176
+ kind: "service" | "demand";
2177
+ industry: "custom" | "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | "general";
2178
+ region: {
2179
+ raw: string;
2180
+ mode: "physical" | "remote";
2181
+ country?: string | undefined;
2182
+ province?: string | undefined;
2183
+ city?: string | undefined;
2184
+ };
2185
+ capabilities: {
2186
+ has_refund_path: boolean;
2187
+ has_arbitration: boolean;
2188
+ has_messenger: boolean;
2189
+ has_compensation_fund: boolean;
2190
+ has_buy_guard: boolean;
2191
+ has_milestone_nodes: boolean;
2192
+ has_wip_verification: boolean;
2193
+ has_dynamic_pricing: boolean;
2194
+ is_published: boolean;
2195
+ is_paused: boolean;
2196
+ };
2197
+ owner?: string | undefined;
2198
+ token_type?: string | undefined;
2199
+ tags?: string[] | undefined;
2200
+ trust_score?: number | undefined;
2201
+ arbitration_independent?: boolean | undefined;
2202
+ reputation_like_ratio?: number | undefined;
2203
+ keywords?: string[] | undefined;
2204
+ industry_confidence?: number | undefined;
2205
+ price_min?: string | undefined;
2206
+ price_max?: string | undefined;
2207
+ ticket_size?: "medium" | "micro" | "small" | "large" | undefined;
2208
+ merchant_history_count?: number | undefined;
2209
+ };
2210
+ demands: {
2211
+ object: string;
2212
+ description: string;
2213
+ location: string;
2214
+ owner?: string | undefined;
2215
+ rewards?: string[] | undefined;
2216
+ um?: string | null | undefined;
2217
+ }[];
2218
+ account?: string | undefined;
2219
+ injection?: {
2220
+ intent?: string | undefined;
2221
+ overrides?: {
2222
+ data_sources?: Record<string, {
2223
+ enabled?: boolean | undefined;
2224
+ }> | undefined;
2225
+ rules?: Record<string, {
2226
+ enabled?: boolean | undefined;
2227
+ weight?: number | undefined;
2228
+ }> | undefined;
2229
+ } | undefined;
2230
+ preferences?: Record<string, unknown> | undefined;
2231
+ requirements?: {
2232
+ rule_id: string;
2233
+ condition: "require" | "forbid";
2234
+ note?: string | undefined;
2235
+ }[] | undefined;
2236
+ } | undefined;
2237
+ }>, z.ZodObject<{
2238
+ action: z.ZodLiteral<"service_risk">;
2239
+ service_id: z.ZodString;
2240
+ puzzle_raw: z.ZodObject<{
2241
+ service: z.ZodObject<{
2242
+ name: z.ZodOptional<z.ZodString>;
2243
+ bPublished: z.ZodOptional<z.ZodBoolean>;
2244
+ bPaused: z.ZodOptional<z.ZodBoolean>;
2245
+ price: z.ZodOptional<z.ZodString>;
2246
+ priceRaw: z.ZodOptional<z.ZodString>;
2247
+ token_type: z.ZodOptional<z.ZodString>;
2248
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
2249
+ suspension: z.ZodOptional<z.ZodBoolean>;
2250
+ wip_url: z.ZodOptional<z.ZodString>;
2251
+ wip_hash: z.ZodOptional<z.ZodString>;
2252
+ }, "strict", z.ZodTypeAny, {
2253
+ wip_hash?: string | undefined;
2254
+ suspension?: boolean | undefined;
2255
+ wip_url?: string | undefined;
2256
+ }, {
2257
+ wip_hash?: string | undefined;
2258
+ suspension?: boolean | undefined;
2259
+ wip_url?: string | undefined;
2260
+ }>, "many">>;
2261
+ machine: z.ZodOptional<z.ZodString>;
2262
+ buy_guard: z.ZodOptional<z.ZodString>;
2263
+ customer_required: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
2264
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2265
+ compensation_fund: z.ZodOptional<z.ZodObject<{
2266
+ balance: z.ZodOptional<z.ZodString>;
2267
+ }, "strict", z.ZodTypeAny, {
2268
+ balance?: string | undefined;
2269
+ }, {
2270
+ balance?: string | undefined;
2271
+ }>>;
2272
+ compensation_lock_duration: z.ZodOptional<z.ZodNumber>;
2273
+ um: z.ZodOptional<z.ZodString>;
2274
+ }, "strict", z.ZodTypeAny, {
2275
+ name?: string | undefined;
2276
+ token_type?: string | undefined;
2277
+ price?: string | undefined;
2278
+ compensation_fund?: {
2279
+ balance?: string | undefined;
2280
+ } | undefined;
2281
+ buy_guard?: string | undefined;
2282
+ machine?: string | undefined;
2283
+ arbitrations?: string[] | undefined;
2284
+ sales?: {
2285
+ wip_hash?: string | undefined;
2286
+ suspension?: boolean | undefined;
2287
+ wip_url?: string | undefined;
2288
+ }[] | undefined;
2289
+ customer_required?: unknown[] | undefined;
2290
+ um?: string | undefined;
2291
+ bPublished?: boolean | undefined;
2292
+ bPaused?: boolean | undefined;
2293
+ priceRaw?: string | undefined;
2294
+ compensation_lock_duration?: number | undefined;
2295
+ }, {
2296
+ name?: string | undefined;
2297
+ token_type?: string | undefined;
2298
+ price?: string | undefined;
2299
+ compensation_fund?: {
2300
+ balance?: string | undefined;
2301
+ } | undefined;
2302
+ buy_guard?: string | undefined;
2303
+ machine?: string | undefined;
2304
+ arbitrations?: string[] | undefined;
2305
+ sales?: {
2306
+ wip_hash?: string | undefined;
2307
+ suspension?: boolean | undefined;
2308
+ wip_url?: string | undefined;
2309
+ }[] | undefined;
2310
+ customer_required?: unknown[] | undefined;
2311
+ um?: string | undefined;
2312
+ bPublished?: boolean | undefined;
2313
+ bPaused?: boolean | undefined;
2314
+ priceRaw?: string | undefined;
2315
+ compensation_lock_duration?: number | undefined;
2316
+ }>;
2317
+ machine_nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2318
+ name: z.ZodString;
2319
+ forwards: z.ZodOptional<z.ZodArray<z.ZodObject<{
2320
+ name: z.ZodOptional<z.ZodString>;
2321
+ weight: z.ZodOptional<z.ZodNumber>;
2322
+ namedOperator: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2323
+ guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2324
+ to: z.ZodOptional<z.ZodString>;
2325
+ }, "strict", z.ZodTypeAny, {
2326
+ name?: string | undefined;
2327
+ to?: string | undefined;
2328
+ guard?: string | null | undefined;
2329
+ weight?: number | undefined;
2330
+ namedOperator?: string | null | undefined;
2331
+ }, {
2332
+ name?: string | undefined;
2333
+ to?: string | undefined;
2334
+ guard?: string | null | undefined;
2335
+ weight?: number | undefined;
2336
+ namedOperator?: string | null | undefined;
2337
+ }>, "many">>;
2338
+ is_pair_done: z.ZodOptional<z.ZodBoolean>;
2339
+ }, "strict", z.ZodTypeAny, {
2340
+ name: string;
2341
+ forwards?: {
2342
+ name?: string | undefined;
2343
+ to?: string | undefined;
2344
+ guard?: string | null | undefined;
2345
+ weight?: number | undefined;
2346
+ namedOperator?: string | null | undefined;
2347
+ }[] | undefined;
2348
+ is_pair_done?: boolean | undefined;
2349
+ }, {
2350
+ name: string;
2351
+ forwards?: {
2352
+ name?: string | undefined;
2353
+ to?: string | undefined;
2354
+ guard?: string | null | undefined;
2355
+ weight?: number | undefined;
2356
+ namedOperator?: string | null | undefined;
2357
+ }[] | undefined;
2358
+ is_pair_done?: boolean | undefined;
2359
+ }>, "many">>;
2360
+ machine_published: z.ZodOptional<z.ZodBoolean>;
2361
+ machine_paused: z.ZodOptional<z.ZodBoolean>;
2362
+ reviews: z.ZodOptional<z.ZodArray<z.ZodObject<{
2363
+ rating: z.ZodOptional<z.ZodString>;
2364
+ reviewer: z.ZodOptional<z.ZodString>;
2365
+ verified: z.ZodOptional<z.ZodBoolean>;
2366
+ has_evidence: z.ZodOptional<z.ZodBoolean>;
2367
+ timestamp: z.ZodOptional<z.ZodNumber>;
2368
+ }, "strict", z.ZodTypeAny, {
2369
+ timestamp?: number | undefined;
2370
+ verified?: boolean | undefined;
2371
+ rating?: string | undefined;
2372
+ reviewer?: string | undefined;
2373
+ has_evidence?: boolean | undefined;
2374
+ }, {
2375
+ timestamp?: number | undefined;
2376
+ verified?: boolean | undefined;
2377
+ rating?: string | undefined;
2378
+ reviewer?: string | undefined;
2379
+ has_evidence?: boolean | undefined;
2380
+ }>, "many">>;
2381
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
2382
+ type: z.ZodString;
2383
+ timestamp: z.ZodOptional<z.ZodNumber>;
2384
+ address: z.ZodOptional<z.ZodString>;
2385
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2386
+ }, "strict", z.ZodTypeAny, {
2387
+ type: string;
2388
+ address?: string | undefined;
2389
+ data?: Record<string, unknown> | undefined;
2390
+ timestamp?: number | undefined;
2391
+ }, {
2392
+ type: string;
2393
+ address?: string | undefined;
2394
+ data?: Record<string, unknown> | undefined;
2395
+ timestamp?: number | undefined;
2396
+ }>, "many">>;
2397
+ similar_services: z.ZodOptional<z.ZodArray<z.ZodObject<{
2398
+ price: z.ZodString;
2399
+ }, "strict", z.ZodTypeAny, {
2400
+ price: string;
2401
+ }, {
2402
+ price: string;
2403
+ }>, "many">>;
2404
+ order_amount: z.ZodOptional<z.ZodString>;
2405
+ trust_score: z.ZodOptional<z.ZodObject<{
2406
+ score: z.ZodNumber;
2407
+ level: z.ZodString;
2408
+ }, "strict", z.ZodTypeAny, {
2409
+ score: number;
2410
+ level: string;
2411
+ }, {
2412
+ score: number;
2413
+ level: string;
2414
+ }>>;
2415
+ arbitration_owner: z.ZodOptional<z.ZodString>;
2416
+ service_owner: z.ZodOptional<z.ZodString>;
2417
+ wip_verified: z.ZodOptional<z.ZodBoolean>;
2418
+ order_history: z.ZodOptional<z.ZodArray<z.ZodObject<{
2419
+ status: z.ZodString;
2420
+ has_dispute: z.ZodBoolean;
2421
+ is_repeat: z.ZodBoolean;
2422
+ }, "strict", z.ZodTypeAny, {
2423
+ status: string;
2424
+ has_dispute: boolean;
2425
+ is_repeat: boolean;
2426
+ }, {
2427
+ status: string;
2428
+ has_dispute: boolean;
2429
+ is_repeat: boolean;
2430
+ }>, "many">>;
2431
+ merchant_reputation: z.ZodOptional<z.ZodObject<{
2432
+ likes: z.ZodNumber;
2433
+ dislikes: z.ZodNumber;
2434
+ }, "strict", z.ZodTypeAny, {
2435
+ likes: number;
2436
+ dislikes: number;
2437
+ }, {
2438
+ likes: number;
2439
+ dislikes: number;
2440
+ }>>;
2441
+ }, "strict", z.ZodTypeAny, {
2442
+ service: {
2443
+ name?: string | undefined;
2444
+ token_type?: string | undefined;
2445
+ price?: string | undefined;
2446
+ compensation_fund?: {
2447
+ balance?: string | undefined;
2448
+ } | undefined;
2449
+ buy_guard?: string | undefined;
2450
+ machine?: string | undefined;
2451
+ arbitrations?: string[] | undefined;
2452
+ sales?: {
2453
+ wip_hash?: string | undefined;
2454
+ suspension?: boolean | undefined;
2455
+ wip_url?: string | undefined;
2456
+ }[] | undefined;
2457
+ customer_required?: unknown[] | undefined;
2458
+ um?: string | undefined;
2459
+ bPublished?: boolean | undefined;
2460
+ bPaused?: boolean | undefined;
2461
+ priceRaw?: string | undefined;
2462
+ compensation_lock_duration?: number | undefined;
2463
+ };
2464
+ events?: {
2465
+ type: string;
2466
+ address?: string | undefined;
2467
+ data?: Record<string, unknown> | undefined;
2468
+ timestamp?: number | undefined;
2469
+ }[] | undefined;
2470
+ trust_score?: {
2471
+ score: number;
2472
+ level: string;
2473
+ } | undefined;
2474
+ reviews?: {
2475
+ timestamp?: number | undefined;
2476
+ verified?: boolean | undefined;
2477
+ rating?: string | undefined;
2478
+ reviewer?: string | undefined;
2479
+ has_evidence?: boolean | undefined;
2480
+ }[] | undefined;
2481
+ machine_published?: boolean | undefined;
2482
+ machine_paused?: boolean | undefined;
2483
+ machine_nodes?: {
2484
+ name: string;
2485
+ forwards?: {
2486
+ name?: string | undefined;
2487
+ to?: string | undefined;
2488
+ guard?: string | null | undefined;
2489
+ weight?: number | undefined;
2490
+ namedOperator?: string | null | undefined;
2491
+ }[] | undefined;
2492
+ is_pair_done?: boolean | undefined;
2493
+ }[] | undefined;
2494
+ order_amount?: string | undefined;
2495
+ similar_services?: {
2496
+ price: string;
2497
+ }[] | undefined;
2498
+ arbitration_owner?: string | undefined;
2499
+ service_owner?: string | undefined;
2500
+ wip_verified?: boolean | undefined;
2501
+ order_history?: {
2502
+ status: string;
2503
+ has_dispute: boolean;
2504
+ is_repeat: boolean;
2505
+ }[] | undefined;
2506
+ merchant_reputation?: {
2507
+ likes: number;
2508
+ dislikes: number;
2509
+ } | undefined;
2510
+ }, {
2511
+ service: {
2512
+ name?: string | undefined;
2513
+ token_type?: string | undefined;
2514
+ price?: string | undefined;
2515
+ compensation_fund?: {
2516
+ balance?: string | undefined;
2517
+ } | undefined;
2518
+ buy_guard?: string | undefined;
2519
+ machine?: string | undefined;
2520
+ arbitrations?: string[] | undefined;
2521
+ sales?: {
2522
+ wip_hash?: string | undefined;
2523
+ suspension?: boolean | undefined;
2524
+ wip_url?: string | undefined;
2525
+ }[] | undefined;
2526
+ customer_required?: unknown[] | undefined;
2527
+ um?: string | undefined;
2528
+ bPublished?: boolean | undefined;
2529
+ bPaused?: boolean | undefined;
2530
+ priceRaw?: string | undefined;
2531
+ compensation_lock_duration?: number | undefined;
2532
+ };
2533
+ events?: {
2534
+ type: string;
2535
+ address?: string | undefined;
2536
+ data?: Record<string, unknown> | undefined;
2537
+ timestamp?: number | undefined;
2538
+ }[] | undefined;
2539
+ trust_score?: {
2540
+ score: number;
2541
+ level: string;
2542
+ } | undefined;
2543
+ reviews?: {
2544
+ timestamp?: number | undefined;
2545
+ verified?: boolean | undefined;
2546
+ rating?: string | undefined;
2547
+ reviewer?: string | undefined;
2548
+ has_evidence?: boolean | undefined;
2549
+ }[] | undefined;
2550
+ machine_published?: boolean | undefined;
2551
+ machine_paused?: boolean | undefined;
2552
+ machine_nodes?: {
2553
+ name: string;
2554
+ forwards?: {
2555
+ name?: string | undefined;
2556
+ to?: string | undefined;
2557
+ guard?: string | null | undefined;
2558
+ weight?: number | undefined;
2559
+ namedOperator?: string | null | undefined;
2560
+ }[] | undefined;
2561
+ is_pair_done?: boolean | undefined;
2562
+ }[] | undefined;
2563
+ order_amount?: string | undefined;
2564
+ similar_services?: {
2565
+ price: string;
2566
+ }[] | undefined;
2567
+ arbitration_owner?: string | undefined;
2568
+ service_owner?: string | undefined;
2569
+ wip_verified?: boolean | undefined;
2570
+ order_history?: {
2571
+ status: string;
2572
+ has_dispute: boolean;
2573
+ is_repeat: boolean;
2574
+ }[] | undefined;
2575
+ merchant_reputation?: {
2576
+ likes: number;
2577
+ dislikes: number;
2578
+ } | undefined;
2579
+ }>;
2580
+ injection: z.ZodOptional<z.ZodObject<{
2581
+ intent: z.ZodOptional<z.ZodString>;
2582
+ preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2583
+ requirements: z.ZodOptional<z.ZodArray<z.ZodObject<{
2584
+ rule_id: z.ZodString;
2585
+ condition: z.ZodEnum<["require", "forbid"]>;
2586
+ note: z.ZodOptional<z.ZodString>;
2587
+ }, "strict", z.ZodTypeAny, {
2588
+ rule_id: string;
2589
+ condition: "require" | "forbid";
2590
+ note?: string | undefined;
2591
+ }, {
2592
+ rule_id: string;
2593
+ condition: "require" | "forbid";
2594
+ note?: string | undefined;
2595
+ }>, "many">>;
2596
+ overrides: z.ZodOptional<z.ZodObject<{
2597
+ rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2598
+ enabled: z.ZodOptional<z.ZodBoolean>;
2599
+ weight: z.ZodOptional<z.ZodNumber>;
2600
+ }, "strict", z.ZodTypeAny, {
2601
+ enabled?: boolean | undefined;
2602
+ weight?: number | undefined;
2603
+ }, {
2604
+ enabled?: boolean | undefined;
2605
+ weight?: number | undefined;
2606
+ }>>>;
2607
+ data_sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2608
+ enabled: z.ZodOptional<z.ZodBoolean>;
2609
+ }, "strict", z.ZodTypeAny, {
2610
+ enabled?: boolean | undefined;
2611
+ }, {
2612
+ enabled?: boolean | undefined;
2613
+ }>>>;
2614
+ }, "strict", z.ZodTypeAny, {
2615
+ data_sources?: Record<string, {
2616
+ enabled?: boolean | undefined;
2617
+ }> | undefined;
2618
+ rules?: Record<string, {
2619
+ enabled?: boolean | undefined;
2620
+ weight?: number | undefined;
2621
+ }> | undefined;
2622
+ }, {
2623
+ data_sources?: Record<string, {
2624
+ enabled?: boolean | undefined;
2625
+ }> | undefined;
2626
+ rules?: Record<string, {
2627
+ enabled?: boolean | undefined;
2628
+ weight?: number | undefined;
2629
+ }> | undefined;
2630
+ }>>;
2631
+ }, "strict", z.ZodTypeAny, {
2632
+ intent?: string | undefined;
2633
+ overrides?: {
2634
+ data_sources?: Record<string, {
2635
+ enabled?: boolean | undefined;
2636
+ }> | undefined;
2637
+ rules?: Record<string, {
2638
+ enabled?: boolean | undefined;
2639
+ weight?: number | undefined;
2640
+ }> | undefined;
2641
+ } | undefined;
2642
+ preferences?: Record<string, unknown> | undefined;
2643
+ requirements?: {
2644
+ rule_id: string;
2645
+ condition: "require" | "forbid";
2646
+ note?: string | undefined;
2647
+ }[] | undefined;
2648
+ }, {
2649
+ intent?: string | undefined;
2650
+ overrides?: {
2651
+ data_sources?: Record<string, {
2652
+ enabled?: boolean | undefined;
2653
+ }> | undefined;
2654
+ rules?: Record<string, {
2655
+ enabled?: boolean | undefined;
2656
+ weight?: number | undefined;
2657
+ }> | undefined;
2658
+ } | undefined;
2659
+ preferences?: Record<string, unknown> | undefined;
2660
+ requirements?: {
2661
+ rule_id: string;
2662
+ condition: "require" | "forbid";
2663
+ note?: string | undefined;
2664
+ }[] | undefined;
2665
+ }>>;
2666
+ depth: z.ZodOptional<z.ZodEnum<["browse", "evaluate", "preorder", "monitor"]>>;
2667
+ account: z.ZodOptional<z.ZodString>;
2668
+ }, "strict", z.ZodTypeAny, {
2669
+ action: "service_risk";
2670
+ service_id: string;
2671
+ puzzle_raw: {
2672
+ service: {
2673
+ name?: string | undefined;
2674
+ token_type?: string | undefined;
2675
+ price?: string | undefined;
2676
+ compensation_fund?: {
2677
+ balance?: string | undefined;
2678
+ } | undefined;
2679
+ buy_guard?: string | undefined;
2680
+ machine?: string | undefined;
2681
+ arbitrations?: string[] | undefined;
2682
+ sales?: {
2683
+ wip_hash?: string | undefined;
2684
+ suspension?: boolean | undefined;
2685
+ wip_url?: string | undefined;
2686
+ }[] | undefined;
2687
+ customer_required?: unknown[] | undefined;
2688
+ um?: string | undefined;
2689
+ bPublished?: boolean | undefined;
2690
+ bPaused?: boolean | undefined;
2691
+ priceRaw?: string | undefined;
2692
+ compensation_lock_duration?: number | undefined;
2693
+ };
2694
+ events?: {
2695
+ type: string;
2696
+ address?: string | undefined;
2697
+ data?: Record<string, unknown> | undefined;
2698
+ timestamp?: number | undefined;
2699
+ }[] | undefined;
2700
+ trust_score?: {
2701
+ score: number;
2702
+ level: string;
2703
+ } | undefined;
2704
+ reviews?: {
2705
+ timestamp?: number | undefined;
2706
+ verified?: boolean | undefined;
2707
+ rating?: string | undefined;
2708
+ reviewer?: string | undefined;
2709
+ has_evidence?: boolean | undefined;
2710
+ }[] | undefined;
2711
+ machine_published?: boolean | undefined;
2712
+ machine_paused?: boolean | undefined;
2713
+ machine_nodes?: {
2714
+ name: string;
2715
+ forwards?: {
2716
+ name?: string | undefined;
2717
+ to?: string | undefined;
2718
+ guard?: string | null | undefined;
2719
+ weight?: number | undefined;
2720
+ namedOperator?: string | null | undefined;
2721
+ }[] | undefined;
2722
+ is_pair_done?: boolean | undefined;
2723
+ }[] | undefined;
2724
+ order_amount?: string | undefined;
2725
+ similar_services?: {
2726
+ price: string;
2727
+ }[] | undefined;
2728
+ arbitration_owner?: string | undefined;
2729
+ service_owner?: string | undefined;
2730
+ wip_verified?: boolean | undefined;
2731
+ order_history?: {
2732
+ status: string;
2733
+ has_dispute: boolean;
2734
+ is_repeat: boolean;
2735
+ }[] | undefined;
2736
+ merchant_reputation?: {
2737
+ likes: number;
2738
+ dislikes: number;
2739
+ } | undefined;
2740
+ };
2741
+ account?: string | undefined;
2742
+ depth?: "browse" | "evaluate" | "preorder" | "monitor" | undefined;
2743
+ injection?: {
2744
+ intent?: string | undefined;
2745
+ overrides?: {
2746
+ data_sources?: Record<string, {
2747
+ enabled?: boolean | undefined;
2748
+ }> | undefined;
2749
+ rules?: Record<string, {
2750
+ enabled?: boolean | undefined;
2751
+ weight?: number | undefined;
2752
+ }> | undefined;
2753
+ } | undefined;
2754
+ preferences?: Record<string, unknown> | undefined;
2755
+ requirements?: {
2756
+ rule_id: string;
2757
+ condition: "require" | "forbid";
2758
+ note?: string | undefined;
2759
+ }[] | undefined;
2760
+ } | undefined;
2761
+ }, {
2762
+ action: "service_risk";
2763
+ service_id: string;
2764
+ puzzle_raw: {
2765
+ service: {
2766
+ name?: string | undefined;
2767
+ token_type?: string | undefined;
2768
+ price?: string | undefined;
2769
+ compensation_fund?: {
2770
+ balance?: string | undefined;
2771
+ } | undefined;
2772
+ buy_guard?: string | undefined;
2773
+ machine?: string | undefined;
2774
+ arbitrations?: string[] | undefined;
2775
+ sales?: {
2776
+ wip_hash?: string | undefined;
2777
+ suspension?: boolean | undefined;
2778
+ wip_url?: string | undefined;
2779
+ }[] | undefined;
2780
+ customer_required?: unknown[] | undefined;
2781
+ um?: string | undefined;
2782
+ bPublished?: boolean | undefined;
2783
+ bPaused?: boolean | undefined;
2784
+ priceRaw?: string | undefined;
2785
+ compensation_lock_duration?: number | undefined;
2786
+ };
2787
+ events?: {
2788
+ type: string;
2789
+ address?: string | undefined;
2790
+ data?: Record<string, unknown> | undefined;
2791
+ timestamp?: number | undefined;
2792
+ }[] | undefined;
2793
+ trust_score?: {
2794
+ score: number;
2795
+ level: string;
2796
+ } | undefined;
2797
+ reviews?: {
2798
+ timestamp?: number | undefined;
2799
+ verified?: boolean | undefined;
2800
+ rating?: string | undefined;
2801
+ reviewer?: string | undefined;
2802
+ has_evidence?: boolean | undefined;
2803
+ }[] | undefined;
2804
+ machine_published?: boolean | undefined;
2805
+ machine_paused?: boolean | undefined;
2806
+ machine_nodes?: {
2807
+ name: string;
2808
+ forwards?: {
2809
+ name?: string | undefined;
2810
+ to?: string | undefined;
2811
+ guard?: string | null | undefined;
2812
+ weight?: number | undefined;
2813
+ namedOperator?: string | null | undefined;
2814
+ }[] | undefined;
2815
+ is_pair_done?: boolean | undefined;
2816
+ }[] | undefined;
2817
+ order_amount?: string | undefined;
2818
+ similar_services?: {
2819
+ price: string;
2820
+ }[] | undefined;
2821
+ arbitration_owner?: string | undefined;
2822
+ service_owner?: string | undefined;
2823
+ wip_verified?: boolean | undefined;
2824
+ order_history?: {
2825
+ status: string;
2826
+ has_dispute: boolean;
2827
+ is_repeat: boolean;
2828
+ }[] | undefined;
2829
+ merchant_reputation?: {
2830
+ likes: number;
2831
+ dislikes: number;
2832
+ } | undefined;
2833
+ };
2834
+ account?: string | undefined;
2835
+ depth?: "browse" | "evaluate" | "preorder" | "monitor" | undefined;
2836
+ injection?: {
2837
+ intent?: string | undefined;
2838
+ overrides?: {
2839
+ data_sources?: Record<string, {
2840
+ enabled?: boolean | undefined;
2841
+ }> | undefined;
2842
+ rules?: Record<string, {
2843
+ enabled?: boolean | undefined;
2844
+ weight?: number | undefined;
2845
+ }> | undefined;
2846
+ } | undefined;
2847
+ preferences?: Record<string, unknown> | undefined;
2848
+ requirements?: {
2849
+ rule_id: string;
2850
+ condition: "require" | "forbid";
2851
+ note?: string | undefined;
2852
+ }[] | undefined;
2853
+ } | undefined;
2854
+ }>]>;
2855
+ export declare const EvaluationOperationOutputSchema: z.ZodObject<{
2856
+ result: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
2857
+ action: z.ZodLiteral<"arb_game">;
2858
+ status: z.ZodEnum<["Principal_confirming", "Arbitrator_confirming", "Voting", "Arbitrated", "Objectionable", "Finished", "Withdrawn"]>;
2859
+ perspective: z.ZodEnum<["disputant", "arbitrator", "voter", "both"]>;
2860
+ actions: z.ZodArray<z.ZodObject<{
2861
+ action: z.ZodString;
2862
+ favorability: z.ZodNumber;
2863
+ is_optimal: z.ZodBoolean;
2864
+ payoff_note: z.ZodString;
2865
+ risk: z.ZodEnum<["low", "medium", "high"]>;
2866
+ }, "strict", z.ZodTypeAny, {
2867
+ action: string;
2868
+ risk: "low" | "high" | "medium";
2869
+ favorability: number;
2870
+ is_optimal: boolean;
2871
+ payoff_note: string;
2872
+ }, {
2873
+ action: string;
2874
+ risk: "low" | "high" | "medium";
2875
+ favorability: number;
2876
+ is_optimal: boolean;
2877
+ payoff_note: string;
2878
+ }>, "many">;
2879
+ summary: z.ZodString;
2880
+ }, "strict", z.ZodTypeAny, {
2881
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
2882
+ summary: string;
2883
+ action: "arb_game";
2884
+ actions: {
2885
+ action: string;
2886
+ risk: "low" | "high" | "medium";
2887
+ favorability: number;
2888
+ is_optimal: boolean;
2889
+ payoff_note: string;
2890
+ }[];
2891
+ perspective: "arbitrator" | "voter" | "disputant" | "both";
2892
+ }, {
2893
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
2894
+ summary: string;
2895
+ action: "arb_game";
2896
+ actions: {
2897
+ action: string;
2898
+ risk: "low" | "high" | "medium";
2899
+ favorability: number;
2900
+ is_optimal: boolean;
2901
+ payoff_note: string;
2902
+ }[];
2903
+ perspective: "arbitrator" | "voter" | "disputant" | "both";
2904
+ }>, z.ZodObject<{
2905
+ action: z.ZodLiteral<"node_game">;
2906
+ current_node: z.ZodString;
2907
+ perspective: z.ZodEnum<["customer", "operator", "observer"]>;
2908
+ actions: z.ZodArray<z.ZodObject<{
2909
+ forward: z.ZodString;
2910
+ to_node: z.ZodString;
2911
+ execution_path: z.ZodEnum<["order_holder", "permission", "named_operator", "not_available"]>;
2912
+ guard: z.ZodOptional<z.ZodString>;
2913
+ favorability: z.ZodNumber;
2914
+ is_optimal: z.ZodBoolean;
2915
+ payoff_note: z.ZodString;
2916
+ risk: z.ZodEnum<["low", "medium", "high"]>;
2917
+ }, "strict", z.ZodTypeAny, {
2918
+ forward: string;
2919
+ risk: "low" | "high" | "medium";
2920
+ to_node: string;
2921
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
2922
+ favorability: number;
2923
+ is_optimal: boolean;
2924
+ payoff_note: string;
2925
+ guard?: string | undefined;
2926
+ }, {
2927
+ forward: string;
2928
+ risk: "low" | "high" | "medium";
2929
+ to_node: string;
2930
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
2931
+ favorability: number;
2932
+ is_optimal: boolean;
2933
+ payoff_note: string;
2934
+ guard?: string | undefined;
2935
+ }>, "many">;
2936
+ summary: z.ZodString;
2937
+ }, "strict", z.ZodTypeAny, {
2938
+ summary: string;
2939
+ action: "node_game";
2940
+ current_node: string;
2941
+ actions: {
2942
+ forward: string;
2943
+ risk: "low" | "high" | "medium";
2944
+ to_node: string;
2945
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
2946
+ favorability: number;
2947
+ is_optimal: boolean;
2948
+ payoff_note: string;
2949
+ guard?: string | undefined;
2950
+ }[];
2951
+ perspective: "operator" | "customer" | "observer";
2952
+ }, {
2953
+ summary: string;
2954
+ action: "node_game";
2955
+ current_node: string;
2956
+ actions: {
2957
+ forward: string;
2958
+ risk: "low" | "high" | "medium";
2959
+ to_node: string;
2960
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
2961
+ favorability: number;
2962
+ is_optimal: boolean;
2963
+ payoff_note: string;
2964
+ guard?: string | undefined;
2965
+ }[];
2966
+ perspective: "operator" | "customer" | "observer";
2967
+ }>, z.ZodObject<{
2968
+ action: z.ZodLiteral<"capability_gap">;
2969
+ report: z.ZodObject<{
2970
+ entity_id: z.ZodString;
2971
+ satisfied: z.ZodArray<z.ZodObject<{
2972
+ dimension: z.ZodString;
2973
+ requirement: z.ZodString;
2974
+ provided: z.ZodString;
2975
+ status: z.ZodEnum<["satisfied", "partial", "missing"]>;
2976
+ impact: z.ZodEnum<["critical", "major", "minor"]>;
2977
+ suggestion: z.ZodString;
2978
+ }, "strict", z.ZodTypeAny, {
2979
+ status: "partial" | "satisfied" | "missing";
2980
+ dimension: string;
2981
+ requirement: string;
2982
+ suggestion: string;
2983
+ impact: "critical" | "major" | "minor";
2984
+ provided: string;
2985
+ }, {
2986
+ status: "partial" | "satisfied" | "missing";
2987
+ dimension: string;
2988
+ requirement: string;
2989
+ suggestion: string;
2990
+ impact: "critical" | "major" | "minor";
2991
+ provided: string;
2992
+ }>, "many">;
2993
+ missing: z.ZodArray<z.ZodObject<{
2994
+ dimension: z.ZodString;
2995
+ requirement: z.ZodString;
2996
+ provided: z.ZodString;
2997
+ status: z.ZodEnum<["satisfied", "partial", "missing"]>;
2998
+ impact: z.ZodEnum<["critical", "major", "minor"]>;
2999
+ suggestion: z.ZodString;
3000
+ }, "strict", z.ZodTypeAny, {
3001
+ status: "partial" | "satisfied" | "missing";
3002
+ dimension: string;
3003
+ requirement: string;
3004
+ suggestion: string;
3005
+ impact: "critical" | "major" | "minor";
3006
+ provided: string;
3007
+ }, {
3008
+ status: "partial" | "satisfied" | "missing";
3009
+ dimension: string;
3010
+ requirement: string;
3011
+ suggestion: string;
3012
+ impact: "critical" | "major" | "minor";
3013
+ provided: string;
3014
+ }>, "many">;
3015
+ coverage_score: z.ZodNumber;
3016
+ summary: z.ZodString;
3017
+ }, "strict", z.ZodTypeAny, {
3018
+ summary: string;
3019
+ satisfied: {
3020
+ status: "partial" | "satisfied" | "missing";
3021
+ dimension: string;
3022
+ requirement: string;
3023
+ suggestion: string;
3024
+ impact: "critical" | "major" | "minor";
3025
+ provided: string;
3026
+ }[];
3027
+ missing: {
3028
+ status: "partial" | "satisfied" | "missing";
3029
+ dimension: string;
3030
+ requirement: string;
3031
+ suggestion: string;
3032
+ impact: "critical" | "major" | "minor";
3033
+ provided: string;
3034
+ }[];
3035
+ entity_id: string;
3036
+ coverage_score: number;
3037
+ }, {
3038
+ summary: string;
3039
+ satisfied: {
3040
+ status: "partial" | "satisfied" | "missing";
3041
+ dimension: string;
3042
+ requirement: string;
3043
+ suggestion: string;
3044
+ impact: "critical" | "major" | "minor";
3045
+ provided: string;
3046
+ }[];
3047
+ missing: {
3048
+ status: "partial" | "satisfied" | "missing";
3049
+ dimension: string;
3050
+ requirement: string;
3051
+ suggestion: string;
3052
+ impact: "critical" | "major" | "minor";
3053
+ provided: string;
3054
+ }[];
3055
+ entity_id: string;
3056
+ coverage_score: number;
3057
+ }>;
3058
+ }, "strict", z.ZodTypeAny, {
3059
+ action: "capability_gap";
3060
+ report: {
3061
+ summary: string;
3062
+ satisfied: {
3063
+ status: "partial" | "satisfied" | "missing";
3064
+ dimension: string;
3065
+ requirement: string;
3066
+ suggestion: string;
3067
+ impact: "critical" | "major" | "minor";
3068
+ provided: string;
3069
+ }[];
3070
+ missing: {
3071
+ status: "partial" | "satisfied" | "missing";
3072
+ dimension: string;
3073
+ requirement: string;
3074
+ suggestion: string;
3075
+ impact: "critical" | "major" | "minor";
3076
+ provided: string;
3077
+ }[];
3078
+ entity_id: string;
3079
+ coverage_score: number;
3080
+ };
3081
+ }, {
3082
+ action: "capability_gap";
3083
+ report: {
3084
+ summary: string;
3085
+ satisfied: {
3086
+ status: "partial" | "satisfied" | "missing";
3087
+ dimension: string;
3088
+ requirement: string;
3089
+ suggestion: string;
3090
+ impact: "critical" | "major" | "minor";
3091
+ provided: string;
3092
+ }[];
3093
+ missing: {
3094
+ status: "partial" | "satisfied" | "missing";
3095
+ dimension: string;
3096
+ requirement: string;
3097
+ suggestion: string;
3098
+ impact: "critical" | "major" | "minor";
3099
+ provided: string;
3100
+ }[];
3101
+ entity_id: string;
3102
+ coverage_score: number;
3103
+ };
3104
+ }>, z.ZodObject<{
3105
+ action: z.ZodLiteral<"compose_service">;
3106
+ plan: z.ZodObject<{
3107
+ demand: z.ZodString;
3108
+ services: z.ZodArray<z.ZodObject<{
3109
+ id: z.ZodString;
3110
+ covered: z.ZodArray<z.ZodString, "many">;
3111
+ }, "strict", z.ZodTypeAny, {
3112
+ id: string;
3113
+ covered: string[];
3114
+ }, {
3115
+ id: string;
3116
+ covered: string[];
3117
+ }>, "many">;
3118
+ coverage_score: z.ZodNumber;
3119
+ remaining_missing: z.ZodArray<z.ZodString, "many">;
3120
+ feasibility: z.ZodEnum<["ready", "needs_supply_chain", "infeasible"]>;
3121
+ summary: z.ZodString;
3122
+ }, "strict", z.ZodTypeAny, {
3123
+ summary: string;
3124
+ demand: string;
3125
+ services: {
3126
+ id: string;
3127
+ covered: string[];
3128
+ }[];
3129
+ coverage_score: number;
3130
+ remaining_missing: string[];
3131
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3132
+ }, {
3133
+ summary: string;
3134
+ demand: string;
3135
+ services: {
3136
+ id: string;
3137
+ covered: string[];
3138
+ }[];
3139
+ coverage_score: number;
3140
+ remaining_missing: string[];
3141
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3142
+ }>;
3143
+ }, "strict", z.ZodTypeAny, {
3144
+ action: "compose_service";
3145
+ plan: {
3146
+ summary: string;
3147
+ demand: string;
3148
+ services: {
3149
+ id: string;
3150
+ covered: string[];
3151
+ }[];
3152
+ coverage_score: number;
3153
+ remaining_missing: string[];
3154
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3155
+ };
3156
+ }, {
3157
+ action: "compose_service";
3158
+ plan: {
3159
+ summary: string;
3160
+ demand: string;
3161
+ services: {
3162
+ id: string;
3163
+ covered: string[];
3164
+ }[];
3165
+ coverage_score: number;
3166
+ remaining_missing: string[];
3167
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3168
+ };
3169
+ }>, z.ZodObject<{
3170
+ action: z.ZodLiteral<"demand_match">;
3171
+ matches: z.ZodArray<z.ZodObject<{
3172
+ service: z.ZodObject<{
3173
+ object: z.ZodString;
3174
+ description: z.ZodString;
3175
+ location: z.ZodString;
3176
+ sales: z.ZodOptional<z.ZodArray<z.ZodObject<{
3177
+ name: z.ZodOptional<z.ZodString>;
3178
+ price: z.ZodString;
3179
+ wip_hash: z.ZodOptional<z.ZodString>;
3180
+ }, "strict", z.ZodTypeAny, {
3181
+ price: string;
3182
+ name?: string | undefined;
3183
+ wip_hash?: string | undefined;
3184
+ }, {
3185
+ price: string;
3186
+ name?: string | undefined;
3187
+ wip_hash?: string | undefined;
3188
+ }>, "many">>;
3189
+ arbitrations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3190
+ compensation_fund: z.ZodOptional<z.ZodString>;
3191
+ buy_guard: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3192
+ machine: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3193
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3194
+ bPublished: z.ZodOptional<z.ZodBoolean>;
3195
+ bPaused: z.ZodOptional<z.ZodBoolean>;
3196
+ owner: z.ZodOptional<z.ZodString>;
3197
+ }, "strict", z.ZodTypeAny, {
3198
+ object: string;
3199
+ description: string;
3200
+ location: string;
3201
+ owner?: string | undefined;
3202
+ compensation_fund?: string | undefined;
3203
+ buy_guard?: string | null | undefined;
3204
+ machine?: string | null | undefined;
3205
+ arbitrations?: string[] | undefined;
3206
+ sales?: {
3207
+ price: string;
3208
+ name?: string | undefined;
3209
+ wip_hash?: string | undefined;
3210
+ }[] | undefined;
3211
+ um?: string | null | undefined;
3212
+ bPublished?: boolean | undefined;
3213
+ bPaused?: boolean | undefined;
3214
+ }, {
3215
+ object: string;
3216
+ description: string;
3217
+ location: string;
3218
+ owner?: string | undefined;
3219
+ compensation_fund?: string | undefined;
3220
+ buy_guard?: string | null | undefined;
3221
+ machine?: string | null | undefined;
3222
+ arbitrations?: string[] | undefined;
3223
+ sales?: {
3224
+ price: string;
3225
+ name?: string | undefined;
3226
+ wip_hash?: string | undefined;
3227
+ }[] | undefined;
3228
+ um?: string | null | undefined;
3229
+ bPublished?: boolean | undefined;
3230
+ bPaused?: boolean | undefined;
3231
+ }>;
3232
+ result: z.ZodObject<{
3233
+ evaluation_id: z.ZodString;
3234
+ total: z.ZodNumber;
3235
+ level: z.ZodEnum<["low", "medium_low", "medium_high", "high"]>;
3236
+ breakdown: z.ZodArray<z.ZodObject<{
3237
+ rule_id: z.ZodString;
3238
+ dimension: z.ZodString;
3239
+ score: z.ZodNumber;
3240
+ weight: z.ZodNumber;
3241
+ reason: z.ZodOptional<z.ZodString>;
3242
+ matched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3243
+ mismatched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3244
+ red_flag: z.ZodOptional<z.ZodBoolean>;
3245
+ }, "strict", z.ZodTypeAny, {
3246
+ score: number;
3247
+ rule_id: string;
3248
+ dimension: string;
3249
+ weight: number;
3250
+ reason?: string | undefined;
3251
+ matched?: string[] | undefined;
3252
+ mismatched?: string[] | undefined;
3253
+ red_flag?: boolean | undefined;
3254
+ }, {
3255
+ score: number;
3256
+ rule_id: string;
3257
+ dimension: string;
3258
+ weight: number;
3259
+ reason?: string | undefined;
3260
+ matched?: string[] | undefined;
3261
+ mismatched?: string[] | undefined;
3262
+ red_flag?: boolean | undefined;
3263
+ }>, "many">;
3264
+ red_flags: z.ZodArray<z.ZodString, "many">;
3265
+ blocked: z.ZodBoolean;
3266
+ trace: z.ZodArray<z.ZodObject<{
3267
+ kind: z.ZodEnum<["data_source", "rule", "override"]>;
3268
+ id: z.ZodString;
3269
+ detail: z.ZodString;
3270
+ }, "strict", z.ZodTypeAny, {
3271
+ id: string;
3272
+ kind: "rule" | "data_source" | "override";
3273
+ detail: string;
3274
+ }, {
3275
+ id: string;
3276
+ kind: "rule" | "data_source" | "override";
3277
+ detail: string;
3278
+ }>, "many">;
3279
+ summary: z.ZodString;
3280
+ }, "strict", z.ZodTypeAny, {
3281
+ summary: string;
3282
+ level: "low" | "medium_low" | "medium_high" | "high";
3283
+ total: number;
3284
+ blocked: boolean;
3285
+ breakdown: {
3286
+ score: number;
3287
+ rule_id: string;
3288
+ dimension: string;
3289
+ weight: number;
3290
+ reason?: string | undefined;
3291
+ matched?: string[] | undefined;
3292
+ mismatched?: string[] | undefined;
3293
+ red_flag?: boolean | undefined;
3294
+ }[];
3295
+ red_flags: string[];
3296
+ evaluation_id: string;
3297
+ trace: {
3298
+ id: string;
3299
+ kind: "rule" | "data_source" | "override";
3300
+ detail: string;
3301
+ }[];
3302
+ }, {
3303
+ summary: string;
3304
+ level: "low" | "medium_low" | "medium_high" | "high";
3305
+ total: number;
3306
+ blocked: boolean;
3307
+ breakdown: {
3308
+ score: number;
3309
+ rule_id: string;
3310
+ dimension: string;
3311
+ weight: number;
3312
+ reason?: string | undefined;
3313
+ matched?: string[] | undefined;
3314
+ mismatched?: string[] | undefined;
3315
+ red_flag?: boolean | undefined;
3316
+ }[];
3317
+ red_flags: string[];
3318
+ evaluation_id: string;
3319
+ trace: {
3320
+ id: string;
3321
+ kind: "rule" | "data_source" | "override";
3322
+ detail: string;
3323
+ }[];
3324
+ }>;
3325
+ }, "strict", z.ZodTypeAny, {
3326
+ result: {
3327
+ summary: string;
3328
+ level: "low" | "medium_low" | "medium_high" | "high";
3329
+ total: number;
3330
+ blocked: boolean;
3331
+ breakdown: {
3332
+ score: number;
3333
+ rule_id: string;
3334
+ dimension: string;
3335
+ weight: number;
3336
+ reason?: string | undefined;
3337
+ matched?: string[] | undefined;
3338
+ mismatched?: string[] | undefined;
3339
+ red_flag?: boolean | undefined;
3340
+ }[];
3341
+ red_flags: string[];
3342
+ evaluation_id: string;
3343
+ trace: {
3344
+ id: string;
3345
+ kind: "rule" | "data_source" | "override";
3346
+ detail: string;
3347
+ }[];
3348
+ };
3349
+ service: {
3350
+ object: string;
3351
+ description: string;
3352
+ location: string;
3353
+ owner?: string | undefined;
3354
+ compensation_fund?: string | undefined;
3355
+ buy_guard?: string | null | undefined;
3356
+ machine?: string | null | undefined;
3357
+ arbitrations?: string[] | undefined;
3358
+ sales?: {
3359
+ price: string;
3360
+ name?: string | undefined;
3361
+ wip_hash?: string | undefined;
3362
+ }[] | undefined;
3363
+ um?: string | null | undefined;
3364
+ bPublished?: boolean | undefined;
3365
+ bPaused?: boolean | undefined;
3366
+ };
3367
+ }, {
3368
+ result: {
3369
+ summary: string;
3370
+ level: "low" | "medium_low" | "medium_high" | "high";
3371
+ total: number;
3372
+ blocked: boolean;
3373
+ breakdown: {
3374
+ score: number;
3375
+ rule_id: string;
3376
+ dimension: string;
3377
+ weight: number;
3378
+ reason?: string | undefined;
3379
+ matched?: string[] | undefined;
3380
+ mismatched?: string[] | undefined;
3381
+ red_flag?: boolean | undefined;
3382
+ }[];
3383
+ red_flags: string[];
3384
+ evaluation_id: string;
3385
+ trace: {
3386
+ id: string;
3387
+ kind: "rule" | "data_source" | "override";
3388
+ detail: string;
3389
+ }[];
3390
+ };
3391
+ service: {
3392
+ object: string;
3393
+ description: string;
3394
+ location: string;
3395
+ owner?: string | undefined;
3396
+ compensation_fund?: string | undefined;
3397
+ buy_guard?: string | null | undefined;
3398
+ machine?: string | null | undefined;
3399
+ arbitrations?: string[] | undefined;
3400
+ sales?: {
3401
+ price: string;
3402
+ name?: string | undefined;
3403
+ wip_hash?: string | undefined;
3404
+ }[] | undefined;
3405
+ um?: string | null | undefined;
3406
+ bPublished?: boolean | undefined;
3407
+ bPaused?: boolean | undefined;
3408
+ };
3409
+ }>, "many">;
3410
+ }, "strict", z.ZodTypeAny, {
3411
+ action: "demand_match";
3412
+ matches: {
3413
+ result: {
3414
+ summary: string;
3415
+ level: "low" | "medium_low" | "medium_high" | "high";
3416
+ total: number;
3417
+ blocked: boolean;
3418
+ breakdown: {
3419
+ score: number;
3420
+ rule_id: string;
3421
+ dimension: string;
3422
+ weight: number;
3423
+ reason?: string | undefined;
3424
+ matched?: string[] | undefined;
3425
+ mismatched?: string[] | undefined;
3426
+ red_flag?: boolean | undefined;
3427
+ }[];
3428
+ red_flags: string[];
3429
+ evaluation_id: string;
3430
+ trace: {
3431
+ id: string;
3432
+ kind: "rule" | "data_source" | "override";
3433
+ detail: string;
3434
+ }[];
3435
+ };
3436
+ service: {
3437
+ object: string;
3438
+ description: string;
3439
+ location: string;
3440
+ owner?: string | undefined;
3441
+ compensation_fund?: string | undefined;
3442
+ buy_guard?: string | null | undefined;
3443
+ machine?: string | null | undefined;
3444
+ arbitrations?: string[] | undefined;
3445
+ sales?: {
3446
+ price: string;
3447
+ name?: string | undefined;
3448
+ wip_hash?: string | undefined;
3449
+ }[] | undefined;
3450
+ um?: string | null | undefined;
3451
+ bPublished?: boolean | undefined;
3452
+ bPaused?: boolean | undefined;
3453
+ };
3454
+ }[];
3455
+ }, {
3456
+ action: "demand_match";
3457
+ matches: {
3458
+ result: {
3459
+ summary: string;
3460
+ level: "low" | "medium_low" | "medium_high" | "high";
3461
+ total: number;
3462
+ blocked: boolean;
3463
+ breakdown: {
3464
+ score: number;
3465
+ rule_id: string;
3466
+ dimension: string;
3467
+ weight: number;
3468
+ reason?: string | undefined;
3469
+ matched?: string[] | undefined;
3470
+ mismatched?: string[] | undefined;
3471
+ red_flag?: boolean | undefined;
3472
+ }[];
3473
+ red_flags: string[];
3474
+ evaluation_id: string;
3475
+ trace: {
3476
+ id: string;
3477
+ kind: "rule" | "data_source" | "override";
3478
+ detail: string;
3479
+ }[];
3480
+ };
3481
+ service: {
3482
+ object: string;
3483
+ description: string;
3484
+ location: string;
3485
+ owner?: string | undefined;
3486
+ compensation_fund?: string | undefined;
3487
+ buy_guard?: string | null | undefined;
3488
+ machine?: string | null | undefined;
3489
+ arbitrations?: string[] | undefined;
3490
+ sales?: {
3491
+ price: string;
3492
+ name?: string | undefined;
3493
+ wip_hash?: string | undefined;
3494
+ }[] | undefined;
3495
+ um?: string | null | undefined;
3496
+ bPublished?: boolean | undefined;
3497
+ bPaused?: boolean | undefined;
3498
+ };
3499
+ }[];
3500
+ }>, z.ZodObject<{
3501
+ action: z.ZodLiteral<"service_match">;
3502
+ matches: z.ZodArray<z.ZodObject<{
3503
+ demand: z.ZodObject<{
3504
+ object: z.ZodString;
3505
+ description: z.ZodString;
3506
+ location: z.ZodString;
3507
+ rewards: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3508
+ um: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3509
+ owner: z.ZodOptional<z.ZodString>;
3510
+ }, "strict", z.ZodTypeAny, {
3511
+ object: string;
3512
+ description: string;
3513
+ location: string;
3514
+ owner?: string | undefined;
3515
+ rewards?: string[] | undefined;
3516
+ um?: string | null | undefined;
3517
+ }, {
3518
+ object: string;
3519
+ description: string;
3520
+ location: string;
3521
+ owner?: string | undefined;
3522
+ rewards?: string[] | undefined;
3523
+ um?: string | null | undefined;
3524
+ }>;
3525
+ result: z.ZodObject<{
3526
+ evaluation_id: z.ZodString;
3527
+ total: z.ZodNumber;
3528
+ level: z.ZodEnum<["low", "medium_low", "medium_high", "high"]>;
3529
+ breakdown: z.ZodArray<z.ZodObject<{
3530
+ rule_id: z.ZodString;
3531
+ dimension: z.ZodString;
3532
+ score: z.ZodNumber;
3533
+ weight: z.ZodNumber;
3534
+ reason: z.ZodOptional<z.ZodString>;
3535
+ matched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3536
+ mismatched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3537
+ red_flag: z.ZodOptional<z.ZodBoolean>;
3538
+ }, "strict", z.ZodTypeAny, {
3539
+ score: number;
3540
+ rule_id: string;
3541
+ dimension: string;
3542
+ weight: number;
3543
+ reason?: string | undefined;
3544
+ matched?: string[] | undefined;
3545
+ mismatched?: string[] | undefined;
3546
+ red_flag?: boolean | undefined;
3547
+ }, {
3548
+ score: number;
3549
+ rule_id: string;
3550
+ dimension: string;
3551
+ weight: number;
3552
+ reason?: string | undefined;
3553
+ matched?: string[] | undefined;
3554
+ mismatched?: string[] | undefined;
3555
+ red_flag?: boolean | undefined;
3556
+ }>, "many">;
3557
+ red_flags: z.ZodArray<z.ZodString, "many">;
3558
+ blocked: z.ZodBoolean;
3559
+ trace: z.ZodArray<z.ZodObject<{
3560
+ kind: z.ZodEnum<["data_source", "rule", "override"]>;
3561
+ id: z.ZodString;
3562
+ detail: z.ZodString;
3563
+ }, "strict", z.ZodTypeAny, {
3564
+ id: string;
3565
+ kind: "rule" | "data_source" | "override";
3566
+ detail: string;
3567
+ }, {
3568
+ id: string;
3569
+ kind: "rule" | "data_source" | "override";
3570
+ detail: string;
3571
+ }>, "many">;
3572
+ summary: z.ZodString;
3573
+ }, "strict", z.ZodTypeAny, {
3574
+ summary: string;
3575
+ level: "low" | "medium_low" | "medium_high" | "high";
3576
+ total: number;
3577
+ blocked: boolean;
3578
+ breakdown: {
3579
+ score: number;
3580
+ rule_id: string;
3581
+ dimension: string;
3582
+ weight: number;
3583
+ reason?: string | undefined;
3584
+ matched?: string[] | undefined;
3585
+ mismatched?: string[] | undefined;
3586
+ red_flag?: boolean | undefined;
3587
+ }[];
3588
+ red_flags: string[];
3589
+ evaluation_id: string;
3590
+ trace: {
3591
+ id: string;
3592
+ kind: "rule" | "data_source" | "override";
3593
+ detail: string;
3594
+ }[];
3595
+ }, {
3596
+ summary: string;
3597
+ level: "low" | "medium_low" | "medium_high" | "high";
3598
+ total: number;
3599
+ blocked: boolean;
3600
+ breakdown: {
3601
+ score: number;
3602
+ rule_id: string;
3603
+ dimension: string;
3604
+ weight: number;
3605
+ reason?: string | undefined;
3606
+ matched?: string[] | undefined;
3607
+ mismatched?: string[] | undefined;
3608
+ red_flag?: boolean | undefined;
3609
+ }[];
3610
+ red_flags: string[];
3611
+ evaluation_id: string;
3612
+ trace: {
3613
+ id: string;
3614
+ kind: "rule" | "data_source" | "override";
3615
+ detail: string;
3616
+ }[];
3617
+ }>;
3618
+ }, "strict", z.ZodTypeAny, {
3619
+ result: {
3620
+ summary: string;
3621
+ level: "low" | "medium_low" | "medium_high" | "high";
3622
+ total: number;
3623
+ blocked: boolean;
3624
+ breakdown: {
3625
+ score: number;
3626
+ rule_id: string;
3627
+ dimension: string;
3628
+ weight: number;
3629
+ reason?: string | undefined;
3630
+ matched?: string[] | undefined;
3631
+ mismatched?: string[] | undefined;
3632
+ red_flag?: boolean | undefined;
3633
+ }[];
3634
+ red_flags: string[];
3635
+ evaluation_id: string;
3636
+ trace: {
3637
+ id: string;
3638
+ kind: "rule" | "data_source" | "override";
3639
+ detail: string;
3640
+ }[];
3641
+ };
3642
+ demand: {
3643
+ object: string;
3644
+ description: string;
3645
+ location: string;
3646
+ owner?: string | undefined;
3647
+ rewards?: string[] | undefined;
3648
+ um?: string | null | undefined;
3649
+ };
3650
+ }, {
3651
+ result: {
3652
+ summary: string;
3653
+ level: "low" | "medium_low" | "medium_high" | "high";
3654
+ total: number;
3655
+ blocked: boolean;
3656
+ breakdown: {
3657
+ score: number;
3658
+ rule_id: string;
3659
+ dimension: string;
3660
+ weight: number;
3661
+ reason?: string | undefined;
3662
+ matched?: string[] | undefined;
3663
+ mismatched?: string[] | undefined;
3664
+ red_flag?: boolean | undefined;
3665
+ }[];
3666
+ red_flags: string[];
3667
+ evaluation_id: string;
3668
+ trace: {
3669
+ id: string;
3670
+ kind: "rule" | "data_source" | "override";
3671
+ detail: string;
3672
+ }[];
3673
+ };
3674
+ demand: {
3675
+ object: string;
3676
+ description: string;
3677
+ location: string;
3678
+ owner?: string | undefined;
3679
+ rewards?: string[] | undefined;
3680
+ um?: string | null | undefined;
3681
+ };
3682
+ }>, "many">;
3683
+ }, "strict", z.ZodTypeAny, {
3684
+ action: "service_match";
3685
+ matches: {
3686
+ result: {
3687
+ summary: string;
3688
+ level: "low" | "medium_low" | "medium_high" | "high";
3689
+ total: number;
3690
+ blocked: boolean;
3691
+ breakdown: {
3692
+ score: number;
3693
+ rule_id: string;
3694
+ dimension: string;
3695
+ weight: number;
3696
+ reason?: string | undefined;
3697
+ matched?: string[] | undefined;
3698
+ mismatched?: string[] | undefined;
3699
+ red_flag?: boolean | undefined;
3700
+ }[];
3701
+ red_flags: string[];
3702
+ evaluation_id: string;
3703
+ trace: {
3704
+ id: string;
3705
+ kind: "rule" | "data_source" | "override";
3706
+ detail: string;
3707
+ }[];
3708
+ };
3709
+ demand: {
3710
+ object: string;
3711
+ description: string;
3712
+ location: string;
3713
+ owner?: string | undefined;
3714
+ rewards?: string[] | undefined;
3715
+ um?: string | null | undefined;
3716
+ };
3717
+ }[];
3718
+ }, {
3719
+ action: "service_match";
3720
+ matches: {
3721
+ result: {
3722
+ summary: string;
3723
+ level: "low" | "medium_low" | "medium_high" | "high";
3724
+ total: number;
3725
+ blocked: boolean;
3726
+ breakdown: {
3727
+ score: number;
3728
+ rule_id: string;
3729
+ dimension: string;
3730
+ weight: number;
3731
+ reason?: string | undefined;
3732
+ matched?: string[] | undefined;
3733
+ mismatched?: string[] | undefined;
3734
+ red_flag?: boolean | undefined;
3735
+ }[];
3736
+ red_flags: string[];
3737
+ evaluation_id: string;
3738
+ trace: {
3739
+ id: string;
3740
+ kind: "rule" | "data_source" | "override";
3741
+ detail: string;
3742
+ }[];
3743
+ };
3744
+ demand: {
3745
+ object: string;
3746
+ description: string;
3747
+ location: string;
3748
+ owner?: string | undefined;
3749
+ rewards?: string[] | undefined;
3750
+ um?: string | null | undefined;
3751
+ };
3752
+ }[];
3753
+ }>, z.ZodObject<{
3754
+ action: z.ZodLiteral<"service_risk">;
3755
+ result: z.ZodObject<{
3756
+ evaluation_id: z.ZodString;
3757
+ total: z.ZodNumber;
3758
+ level: z.ZodEnum<["low", "medium_low", "medium_high", "high"]>;
3759
+ breakdown: z.ZodArray<z.ZodObject<{
3760
+ rule_id: z.ZodString;
3761
+ dimension: z.ZodString;
3762
+ score: z.ZodNumber;
3763
+ weight: z.ZodNumber;
3764
+ reason: z.ZodOptional<z.ZodString>;
3765
+ matched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3766
+ mismatched: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3767
+ red_flag: z.ZodOptional<z.ZodBoolean>;
3768
+ }, "strict", z.ZodTypeAny, {
3769
+ score: number;
3770
+ rule_id: string;
3771
+ dimension: string;
3772
+ weight: number;
3773
+ reason?: string | undefined;
3774
+ matched?: string[] | undefined;
3775
+ mismatched?: string[] | undefined;
3776
+ red_flag?: boolean | undefined;
3777
+ }, {
3778
+ score: number;
3779
+ rule_id: string;
3780
+ dimension: string;
3781
+ weight: number;
3782
+ reason?: string | undefined;
3783
+ matched?: string[] | undefined;
3784
+ mismatched?: string[] | undefined;
3785
+ red_flag?: boolean | undefined;
3786
+ }>, "many">;
3787
+ red_flags: z.ZodArray<z.ZodString, "many">;
3788
+ blocked: z.ZodBoolean;
3789
+ trace: z.ZodArray<z.ZodObject<{
3790
+ kind: z.ZodEnum<["data_source", "rule", "override"]>;
3791
+ id: z.ZodString;
3792
+ detail: z.ZodString;
3793
+ }, "strict", z.ZodTypeAny, {
3794
+ id: string;
3795
+ kind: "rule" | "data_source" | "override";
3796
+ detail: string;
3797
+ }, {
3798
+ id: string;
3799
+ kind: "rule" | "data_source" | "override";
3800
+ detail: string;
3801
+ }>, "many">;
3802
+ summary: z.ZodString;
3803
+ }, "strict", z.ZodTypeAny, {
3804
+ summary: string;
3805
+ level: "low" | "medium_low" | "medium_high" | "high";
3806
+ total: number;
3807
+ blocked: boolean;
3808
+ breakdown: {
3809
+ score: number;
3810
+ rule_id: string;
3811
+ dimension: string;
3812
+ weight: number;
3813
+ reason?: string | undefined;
3814
+ matched?: string[] | undefined;
3815
+ mismatched?: string[] | undefined;
3816
+ red_flag?: boolean | undefined;
3817
+ }[];
3818
+ red_flags: string[];
3819
+ evaluation_id: string;
3820
+ trace: {
3821
+ id: string;
3822
+ kind: "rule" | "data_source" | "override";
3823
+ detail: string;
3824
+ }[];
3825
+ }, {
3826
+ summary: string;
3827
+ level: "low" | "medium_low" | "medium_high" | "high";
3828
+ total: number;
3829
+ blocked: boolean;
3830
+ breakdown: {
3831
+ score: number;
3832
+ rule_id: string;
3833
+ dimension: string;
3834
+ weight: number;
3835
+ reason?: string | undefined;
3836
+ matched?: string[] | undefined;
3837
+ mismatched?: string[] | undefined;
3838
+ red_flag?: boolean | undefined;
3839
+ }[];
3840
+ red_flags: string[];
3841
+ evaluation_id: string;
3842
+ trace: {
3843
+ id: string;
3844
+ kind: "rule" | "data_source" | "override";
3845
+ detail: string;
3846
+ }[];
3847
+ }>;
3848
+ }, "strict", z.ZodTypeAny, {
3849
+ result: {
3850
+ summary: string;
3851
+ level: "low" | "medium_low" | "medium_high" | "high";
3852
+ total: number;
3853
+ blocked: boolean;
3854
+ breakdown: {
3855
+ score: number;
3856
+ rule_id: string;
3857
+ dimension: string;
3858
+ weight: number;
3859
+ reason?: string | undefined;
3860
+ matched?: string[] | undefined;
3861
+ mismatched?: string[] | undefined;
3862
+ red_flag?: boolean | undefined;
3863
+ }[];
3864
+ red_flags: string[];
3865
+ evaluation_id: string;
3866
+ trace: {
3867
+ id: string;
3868
+ kind: "rule" | "data_source" | "override";
3869
+ detail: string;
3870
+ }[];
3871
+ };
3872
+ action: "service_risk";
3873
+ }, {
3874
+ result: {
3875
+ summary: string;
3876
+ level: "low" | "medium_low" | "medium_high" | "high";
3877
+ total: number;
3878
+ blocked: boolean;
3879
+ breakdown: {
3880
+ score: number;
3881
+ rule_id: string;
3882
+ dimension: string;
3883
+ weight: number;
3884
+ reason?: string | undefined;
3885
+ matched?: string[] | undefined;
3886
+ mismatched?: string[] | undefined;
3887
+ red_flag?: boolean | undefined;
3888
+ }[];
3889
+ red_flags: string[];
3890
+ evaluation_id: string;
3891
+ trace: {
3892
+ id: string;
3893
+ kind: "rule" | "data_source" | "override";
3894
+ detail: string;
3895
+ }[];
3896
+ };
3897
+ action: "service_risk";
3898
+ }>]>;
3899
+ }, "strict", z.ZodTypeAny, {
3900
+ result: {
3901
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
3902
+ summary: string;
3903
+ action: "arb_game";
3904
+ actions: {
3905
+ action: string;
3906
+ risk: "low" | "high" | "medium";
3907
+ favorability: number;
3908
+ is_optimal: boolean;
3909
+ payoff_note: string;
3910
+ }[];
3911
+ perspective: "arbitrator" | "voter" | "disputant" | "both";
3912
+ } | {
3913
+ summary: string;
3914
+ action: "node_game";
3915
+ current_node: string;
3916
+ actions: {
3917
+ forward: string;
3918
+ risk: "low" | "high" | "medium";
3919
+ to_node: string;
3920
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
3921
+ favorability: number;
3922
+ is_optimal: boolean;
3923
+ payoff_note: string;
3924
+ guard?: string | undefined;
3925
+ }[];
3926
+ perspective: "operator" | "customer" | "observer";
3927
+ } | {
3928
+ action: "capability_gap";
3929
+ report: {
3930
+ summary: string;
3931
+ satisfied: {
3932
+ status: "partial" | "satisfied" | "missing";
3933
+ dimension: string;
3934
+ requirement: string;
3935
+ suggestion: string;
3936
+ impact: "critical" | "major" | "minor";
3937
+ provided: string;
3938
+ }[];
3939
+ missing: {
3940
+ status: "partial" | "satisfied" | "missing";
3941
+ dimension: string;
3942
+ requirement: string;
3943
+ suggestion: string;
3944
+ impact: "critical" | "major" | "minor";
3945
+ provided: string;
3946
+ }[];
3947
+ entity_id: string;
3948
+ coverage_score: number;
3949
+ };
3950
+ } | {
3951
+ action: "compose_service";
3952
+ plan: {
3953
+ summary: string;
3954
+ demand: string;
3955
+ services: {
3956
+ id: string;
3957
+ covered: string[];
3958
+ }[];
3959
+ coverage_score: number;
3960
+ remaining_missing: string[];
3961
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
3962
+ };
3963
+ } | {
3964
+ action: "demand_match";
3965
+ matches: {
3966
+ result: {
3967
+ summary: string;
3968
+ level: "low" | "medium_low" | "medium_high" | "high";
3969
+ total: number;
3970
+ blocked: boolean;
3971
+ breakdown: {
3972
+ score: number;
3973
+ rule_id: string;
3974
+ dimension: string;
3975
+ weight: number;
3976
+ reason?: string | undefined;
3977
+ matched?: string[] | undefined;
3978
+ mismatched?: string[] | undefined;
3979
+ red_flag?: boolean | undefined;
3980
+ }[];
3981
+ red_flags: string[];
3982
+ evaluation_id: string;
3983
+ trace: {
3984
+ id: string;
3985
+ kind: "rule" | "data_source" | "override";
3986
+ detail: string;
3987
+ }[];
3988
+ };
3989
+ service: {
3990
+ object: string;
3991
+ description: string;
3992
+ location: string;
3993
+ owner?: string | undefined;
3994
+ compensation_fund?: string | undefined;
3995
+ buy_guard?: string | null | undefined;
3996
+ machine?: string | null | undefined;
3997
+ arbitrations?: string[] | undefined;
3998
+ sales?: {
3999
+ price: string;
4000
+ name?: string | undefined;
4001
+ wip_hash?: string | undefined;
4002
+ }[] | undefined;
4003
+ um?: string | null | undefined;
4004
+ bPublished?: boolean | undefined;
4005
+ bPaused?: boolean | undefined;
4006
+ };
4007
+ }[];
4008
+ } | {
4009
+ action: "service_match";
4010
+ matches: {
4011
+ result: {
4012
+ summary: string;
4013
+ level: "low" | "medium_low" | "medium_high" | "high";
4014
+ total: number;
4015
+ blocked: boolean;
4016
+ breakdown: {
4017
+ score: number;
4018
+ rule_id: string;
4019
+ dimension: string;
4020
+ weight: number;
4021
+ reason?: string | undefined;
4022
+ matched?: string[] | undefined;
4023
+ mismatched?: string[] | undefined;
4024
+ red_flag?: boolean | undefined;
4025
+ }[];
4026
+ red_flags: string[];
4027
+ evaluation_id: string;
4028
+ trace: {
4029
+ id: string;
4030
+ kind: "rule" | "data_source" | "override";
4031
+ detail: string;
4032
+ }[];
4033
+ };
4034
+ demand: {
4035
+ object: string;
4036
+ description: string;
4037
+ location: string;
4038
+ owner?: string | undefined;
4039
+ rewards?: string[] | undefined;
4040
+ um?: string | null | undefined;
4041
+ };
4042
+ }[];
4043
+ } | {
4044
+ result: {
4045
+ summary: string;
4046
+ level: "low" | "medium_low" | "medium_high" | "high";
4047
+ total: number;
4048
+ blocked: boolean;
4049
+ breakdown: {
4050
+ score: number;
4051
+ rule_id: string;
4052
+ dimension: string;
4053
+ weight: number;
4054
+ reason?: string | undefined;
4055
+ matched?: string[] | undefined;
4056
+ mismatched?: string[] | undefined;
4057
+ red_flag?: boolean | undefined;
4058
+ }[];
4059
+ red_flags: string[];
4060
+ evaluation_id: string;
4061
+ trace: {
4062
+ id: string;
4063
+ kind: "rule" | "data_source" | "override";
4064
+ detail: string;
4065
+ }[];
4066
+ };
4067
+ action: "service_risk";
4068
+ };
4069
+ }, {
4070
+ result: {
4071
+ status: "Voting" | "Principal_confirming" | "Arbitrator_confirming" | "Arbitrated" | "Objectionable" | "Finished" | "Withdrawn";
4072
+ summary: string;
4073
+ action: "arb_game";
4074
+ actions: {
4075
+ action: string;
4076
+ risk: "low" | "high" | "medium";
4077
+ favorability: number;
4078
+ is_optimal: boolean;
4079
+ payoff_note: string;
4080
+ }[];
4081
+ perspective: "arbitrator" | "voter" | "disputant" | "both";
4082
+ } | {
4083
+ summary: string;
4084
+ action: "node_game";
4085
+ current_node: string;
4086
+ actions: {
4087
+ forward: string;
4088
+ risk: "low" | "high" | "medium";
4089
+ to_node: string;
4090
+ execution_path: "permission" | "order_holder" | "named_operator" | "not_available";
4091
+ favorability: number;
4092
+ is_optimal: boolean;
4093
+ payoff_note: string;
4094
+ guard?: string | undefined;
4095
+ }[];
4096
+ perspective: "operator" | "customer" | "observer";
4097
+ } | {
4098
+ action: "capability_gap";
4099
+ report: {
4100
+ summary: string;
4101
+ satisfied: {
4102
+ status: "partial" | "satisfied" | "missing";
4103
+ dimension: string;
4104
+ requirement: string;
4105
+ suggestion: string;
4106
+ impact: "critical" | "major" | "minor";
4107
+ provided: string;
4108
+ }[];
4109
+ missing: {
4110
+ status: "partial" | "satisfied" | "missing";
4111
+ dimension: string;
4112
+ requirement: string;
4113
+ suggestion: string;
4114
+ impact: "critical" | "major" | "minor";
4115
+ provided: string;
4116
+ }[];
4117
+ entity_id: string;
4118
+ coverage_score: number;
4119
+ };
4120
+ } | {
4121
+ action: "compose_service";
4122
+ plan: {
4123
+ summary: string;
4124
+ demand: string;
4125
+ services: {
4126
+ id: string;
4127
+ covered: string[];
4128
+ }[];
4129
+ coverage_score: number;
4130
+ remaining_missing: string[];
4131
+ feasibility: "ready" | "needs_supply_chain" | "infeasible";
4132
+ };
4133
+ } | {
4134
+ action: "demand_match";
4135
+ matches: {
4136
+ result: {
4137
+ summary: string;
4138
+ level: "low" | "medium_low" | "medium_high" | "high";
4139
+ total: number;
4140
+ blocked: boolean;
4141
+ breakdown: {
4142
+ score: number;
4143
+ rule_id: string;
4144
+ dimension: string;
4145
+ weight: number;
4146
+ reason?: string | undefined;
4147
+ matched?: string[] | undefined;
4148
+ mismatched?: string[] | undefined;
4149
+ red_flag?: boolean | undefined;
4150
+ }[];
4151
+ red_flags: string[];
4152
+ evaluation_id: string;
4153
+ trace: {
4154
+ id: string;
4155
+ kind: "rule" | "data_source" | "override";
4156
+ detail: string;
4157
+ }[];
4158
+ };
4159
+ service: {
4160
+ object: string;
4161
+ description: string;
4162
+ location: string;
4163
+ owner?: string | undefined;
4164
+ compensation_fund?: string | undefined;
4165
+ buy_guard?: string | null | undefined;
4166
+ machine?: string | null | undefined;
4167
+ arbitrations?: string[] | undefined;
4168
+ sales?: {
4169
+ price: string;
4170
+ name?: string | undefined;
4171
+ wip_hash?: string | undefined;
4172
+ }[] | undefined;
4173
+ um?: string | null | undefined;
4174
+ bPublished?: boolean | undefined;
4175
+ bPaused?: boolean | undefined;
4176
+ };
4177
+ }[];
4178
+ } | {
4179
+ action: "service_match";
4180
+ matches: {
4181
+ result: {
4182
+ summary: string;
4183
+ level: "low" | "medium_low" | "medium_high" | "high";
4184
+ total: number;
4185
+ blocked: boolean;
4186
+ breakdown: {
4187
+ score: number;
4188
+ rule_id: string;
4189
+ dimension: string;
4190
+ weight: number;
4191
+ reason?: string | undefined;
4192
+ matched?: string[] | undefined;
4193
+ mismatched?: string[] | undefined;
4194
+ red_flag?: boolean | undefined;
4195
+ }[];
4196
+ red_flags: string[];
4197
+ evaluation_id: string;
4198
+ trace: {
4199
+ id: string;
4200
+ kind: "rule" | "data_source" | "override";
4201
+ detail: string;
4202
+ }[];
4203
+ };
4204
+ demand: {
4205
+ object: string;
4206
+ description: string;
4207
+ location: string;
4208
+ owner?: string | undefined;
4209
+ rewards?: string[] | undefined;
4210
+ um?: string | null | undefined;
4211
+ };
4212
+ }[];
4213
+ } | {
4214
+ result: {
4215
+ summary: string;
4216
+ level: "low" | "medium_low" | "medium_high" | "high";
4217
+ total: number;
4218
+ blocked: boolean;
4219
+ breakdown: {
4220
+ score: number;
4221
+ rule_id: string;
4222
+ dimension: string;
4223
+ weight: number;
4224
+ reason?: string | undefined;
4225
+ matched?: string[] | undefined;
4226
+ mismatched?: string[] | undefined;
4227
+ red_flag?: boolean | undefined;
4228
+ }[];
4229
+ red_flags: string[];
4230
+ evaluation_id: string;
4231
+ trace: {
4232
+ id: string;
4233
+ kind: "rule" | "data_source" | "override";
4234
+ detail: string;
4235
+ }[];
4236
+ };
4237
+ action: "service_risk";
4238
+ };
4239
+ }>;