@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,903 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/evaluation_operation.json",
4
+ "title": "Evaluation - Pluggable Business Intelligence",
5
+ "description": "Run pluggable business evaluations (data sources + rules + user injection). Actions: arb_game (Arb 7-state best-move), node_game (Progress node best-move), capability_gap (demand-vs-service capability gaps), compose_service (combine services to cover a demand), demand_match (rank services for a demand), service_match (rank demands for a service). Read-only — returns ranked recommendations / scores with reasoning.",
6
+ "$ref": "#/definitions/evaluation_operation",
7
+ "definitions": {
8
+ "evaluation_operation": {
9
+ "anyOf": [
10
+ {
11
+ "type": "object",
12
+ "properties": {
13
+ "action": {
14
+ "type": "string",
15
+ "const": "arb_game"
16
+ },
17
+ "status": {
18
+ "type": "string",
19
+ "enum": [
20
+ "Principal_confirming",
21
+ "Arbitrator_confirming",
22
+ "Voting",
23
+ "Arbitrated",
24
+ "Objectionable",
25
+ "Finished",
26
+ "Withdrawn"
27
+ ]
28
+ },
29
+ "perspective": {
30
+ "type": "string",
31
+ "enum": [
32
+ "disputant",
33
+ "arbitrator",
34
+ "voter",
35
+ "both"
36
+ ]
37
+ }
38
+ },
39
+ "required": [
40
+ "action",
41
+ "status",
42
+ "perspective"
43
+ ],
44
+ "additionalProperties": false
45
+ },
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "action": {
50
+ "type": "string",
51
+ "const": "node_game"
52
+ },
53
+ "current_node": {
54
+ "type": "string"
55
+ },
56
+ "perspective": {
57
+ "type": "string",
58
+ "enum": [
59
+ "customer",
60
+ "operator",
61
+ "observer"
62
+ ]
63
+ },
64
+ "operable": {
65
+ "type": "array",
66
+ "items": {
67
+ "type": "object",
68
+ "properties": {
69
+ "name": {
70
+ "type": "string",
71
+ "description": "Forward (operation) name."
72
+ },
73
+ "to_node": {
74
+ "type": "string",
75
+ "description": "Target node after execution."
76
+ },
77
+ "execution_path": {
78
+ "type": "string",
79
+ "enum": [
80
+ "order_holder",
81
+ "permission",
82
+ "named_operator",
83
+ "not_available"
84
+ ],
85
+ "description": "How the account may execute it."
86
+ },
87
+ "guard": {
88
+ "type": "string",
89
+ "description": "Guard address gating this forward."
90
+ },
91
+ "consequence": {
92
+ "type": "string",
93
+ "description": "Consequence hint (completion/refund path)."
94
+ }
95
+ },
96
+ "required": [
97
+ "name",
98
+ "to_node",
99
+ "execution_path"
100
+ ],
101
+ "additionalProperties": false
102
+ }
103
+ },
104
+ "waiting_on": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "object",
108
+ "properties": {
109
+ "role": {
110
+ "type": "string"
111
+ },
112
+ "forwards": {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "string"
116
+ }
117
+ }
118
+ },
119
+ "required": [
120
+ "role",
121
+ "forwards"
122
+ ],
123
+ "additionalProperties": false
124
+ }
125
+ }
126
+ },
127
+ "required": [
128
+ "action",
129
+ "current_node",
130
+ "perspective",
131
+ "operable"
132
+ ],
133
+ "additionalProperties": false
134
+ },
135
+ {
136
+ "type": "object",
137
+ "properties": {
138
+ "action": {
139
+ "type": "string",
140
+ "const": "capability_gap"
141
+ },
142
+ "demand": {
143
+ "type": "object",
144
+ "properties": {
145
+ "id": {
146
+ "type": "string",
147
+ "description": "Service/Demand address."
148
+ },
149
+ "kind": {
150
+ "type": "string",
151
+ "enum": [
152
+ "service",
153
+ "demand"
154
+ ],
155
+ "description": "Whether this is a service or demand."
156
+ },
157
+ "owner": {
158
+ "type": "string"
159
+ },
160
+ "industry": {
161
+ "type": "string",
162
+ "enum": [
163
+ "freelance",
164
+ "rental",
165
+ "education",
166
+ "travel",
167
+ "subscription",
168
+ "retail",
169
+ "general",
170
+ "custom"
171
+ ],
172
+ "description": "Industry scenario."
173
+ },
174
+ "industry_confidence": {
175
+ "type": "number",
176
+ "minimum": 0,
177
+ "maximum": 1
178
+ },
179
+ "region": {
180
+ "type": "object",
181
+ "properties": {
182
+ "mode": {
183
+ "type": "string",
184
+ "enum": [
185
+ "remote",
186
+ "physical"
187
+ ]
188
+ },
189
+ "country": {
190
+ "type": "string"
191
+ },
192
+ "province": {
193
+ "type": "string"
194
+ },
195
+ "city": {
196
+ "type": "string"
197
+ },
198
+ "raw": {
199
+ "type": "string",
200
+ "description": "Original location string (for traceability)."
201
+ }
202
+ },
203
+ "required": [
204
+ "mode",
205
+ "raw"
206
+ ],
207
+ "additionalProperties": false
208
+ },
209
+ "price_min": {
210
+ "type": "string",
211
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss)."
212
+ },
213
+ "price_max": {
214
+ "type": "string",
215
+ "description": "Smallest-unit amount (string to avoid JSON bigint loss)."
216
+ },
217
+ "token_type": {
218
+ "type": "string"
219
+ },
220
+ "ticket_size": {
221
+ "type": "string",
222
+ "enum": [
223
+ "micro",
224
+ "small",
225
+ "medium",
226
+ "large"
227
+ ]
228
+ },
229
+ "trust_score": {
230
+ "type": "number",
231
+ "minimum": 0,
232
+ "maximum": 100
233
+ },
234
+ "reputation_like_ratio": {
235
+ "type": "number",
236
+ "minimum": 0,
237
+ "maximum": 1
238
+ },
239
+ "arbitration_independent": {
240
+ "type": "boolean"
241
+ },
242
+ "merchant_history_count": {
243
+ "type": "integer",
244
+ "minimum": 0
245
+ },
246
+ "capabilities": {
247
+ "type": "object",
248
+ "properties": {
249
+ "has_arbitration": {
250
+ "type": "boolean"
251
+ },
252
+ "has_refund_path": {
253
+ "type": "boolean"
254
+ },
255
+ "has_milestone_nodes": {
256
+ "type": "boolean"
257
+ },
258
+ "has_compensation_fund": {
259
+ "type": "boolean"
260
+ },
261
+ "has_wip_verification": {
262
+ "type": "boolean"
263
+ },
264
+ "has_messenger": {
265
+ "type": "boolean"
266
+ },
267
+ "has_buy_guard": {
268
+ "type": "boolean"
269
+ },
270
+ "has_dynamic_pricing": {
271
+ "type": "boolean"
272
+ },
273
+ "is_published": {
274
+ "type": "boolean"
275
+ },
276
+ "is_paused": {
277
+ "type": "boolean"
278
+ }
279
+ },
280
+ "required": [
281
+ "has_arbitration",
282
+ "has_refund_path",
283
+ "has_milestone_nodes",
284
+ "has_compensation_fund",
285
+ "has_wip_verification",
286
+ "has_messenger",
287
+ "has_buy_guard",
288
+ "has_dynamic_pricing",
289
+ "is_published",
290
+ "is_paused"
291
+ ],
292
+ "additionalProperties": false
293
+ },
294
+ "tags": {
295
+ "type": "array",
296
+ "items": {
297
+ "type": "string"
298
+ }
299
+ },
300
+ "keywords": {
301
+ "type": "array",
302
+ "items": {
303
+ "type": "string"
304
+ }
305
+ }
306
+ },
307
+ "required": [
308
+ "id",
309
+ "kind",
310
+ "industry",
311
+ "region",
312
+ "capabilities"
313
+ ],
314
+ "additionalProperties": false
315
+ },
316
+ "service": {
317
+ "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
318
+ }
319
+ },
320
+ "required": [
321
+ "action",
322
+ "demand",
323
+ "service"
324
+ ],
325
+ "additionalProperties": false
326
+ },
327
+ {
328
+ "type": "object",
329
+ "properties": {
330
+ "action": {
331
+ "type": "string",
332
+ "const": "compose_service"
333
+ },
334
+ "demand": {
335
+ "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
336
+ },
337
+ "services": {
338
+ "type": "array",
339
+ "items": {
340
+ "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
341
+ }
342
+ }
343
+ },
344
+ "required": [
345
+ "action",
346
+ "demand",
347
+ "services"
348
+ ],
349
+ "additionalProperties": false
350
+ },
351
+ {
352
+ "type": "object",
353
+ "properties": {
354
+ "action": {
355
+ "type": "string",
356
+ "const": "demand_match"
357
+ },
358
+ "demand_cap": {
359
+ "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
360
+ },
361
+ "services": {
362
+ "type": "array",
363
+ "items": {
364
+ "type": "object",
365
+ "properties": {
366
+ "object": {
367
+ "type": "string",
368
+ "description": "Service object address."
369
+ },
370
+ "description": {
371
+ "type": "string"
372
+ },
373
+ "location": {
374
+ "type": "string"
375
+ },
376
+ "sales": {
377
+ "type": "array",
378
+ "items": {
379
+ "type": "object",
380
+ "properties": {
381
+ "name": {
382
+ "type": "string"
383
+ },
384
+ "price": {
385
+ "type": "string",
386
+ "description": "Smallest-unit amount (string)."
387
+ },
388
+ "wip_hash": {
389
+ "type": "string"
390
+ }
391
+ },
392
+ "required": [
393
+ "price"
394
+ ],
395
+ "additionalProperties": false
396
+ }
397
+ },
398
+ "arbitrations": {
399
+ "type": "array",
400
+ "items": {
401
+ "type": "string"
402
+ }
403
+ },
404
+ "compensation_fund": {
405
+ "type": "string",
406
+ "description": "Smallest-unit amount (string)."
407
+ },
408
+ "buy_guard": {
409
+ "type": [
410
+ "string",
411
+ "null"
412
+ ]
413
+ },
414
+ "machine": {
415
+ "type": [
416
+ "string",
417
+ "null"
418
+ ]
419
+ },
420
+ "um": {
421
+ "type": [
422
+ "string",
423
+ "null"
424
+ ]
425
+ },
426
+ "bPublished": {
427
+ "type": "boolean"
428
+ },
429
+ "bPaused": {
430
+ "type": "boolean"
431
+ },
432
+ "owner": {
433
+ "type": "string"
434
+ }
435
+ },
436
+ "required": [
437
+ "object",
438
+ "description",
439
+ "location"
440
+ ],
441
+ "additionalProperties": false
442
+ }
443
+ },
444
+ "injection": {
445
+ "type": "object",
446
+ "properties": {
447
+ "intent": {
448
+ "type": "string",
449
+ "description": "Free-text intent."
450
+ },
451
+ "preferences": {
452
+ "type": "object",
453
+ "additionalProperties": {}
454
+ },
455
+ "requirements": {
456
+ "type": "array",
457
+ "items": {
458
+ "type": "object",
459
+ "properties": {
460
+ "rule_id": {
461
+ "type": "string"
462
+ },
463
+ "condition": {
464
+ "type": "string",
465
+ "enum": [
466
+ "require",
467
+ "forbid"
468
+ ]
469
+ },
470
+ "note": {
471
+ "type": "string"
472
+ }
473
+ },
474
+ "required": [
475
+ "rule_id",
476
+ "condition"
477
+ ],
478
+ "additionalProperties": false
479
+ },
480
+ "description": "Hard red lines (block when violated)."
481
+ },
482
+ "overrides": {
483
+ "type": "object",
484
+ "properties": {
485
+ "rules": {
486
+ "type": "object",
487
+ "additionalProperties": {
488
+ "type": "object",
489
+ "properties": {
490
+ "enabled": {
491
+ "type": "boolean"
492
+ },
493
+ "weight": {
494
+ "type": "number"
495
+ }
496
+ },
497
+ "additionalProperties": false
498
+ }
499
+ },
500
+ "data_sources": {
501
+ "type": "object",
502
+ "additionalProperties": {
503
+ "type": "object",
504
+ "properties": {
505
+ "enabled": {
506
+ "type": "boolean"
507
+ }
508
+ },
509
+ "additionalProperties": false
510
+ }
511
+ }
512
+ },
513
+ "additionalProperties": false,
514
+ "description": "Enable/disable/reweight rules and data sources."
515
+ }
516
+ },
517
+ "additionalProperties": false
518
+ },
519
+ "account": {
520
+ "type": "string",
521
+ "description": "Account address; its persona is auto-applied as the base injection (explicit injection overrides)."
522
+ }
523
+ },
524
+ "required": [
525
+ "action",
526
+ "demand_cap",
527
+ "services"
528
+ ],
529
+ "additionalProperties": false
530
+ },
531
+ {
532
+ "type": "object",
533
+ "properties": {
534
+ "action": {
535
+ "type": "string",
536
+ "const": "service_match"
537
+ },
538
+ "service_cap": {
539
+ "$ref": "#/definitions/evaluation_operation/anyOf/2/properties/demand"
540
+ },
541
+ "demands": {
542
+ "type": "array",
543
+ "items": {
544
+ "type": "object",
545
+ "properties": {
546
+ "object": {
547
+ "type": "string",
548
+ "description": "Demand object address."
549
+ },
550
+ "description": {
551
+ "type": "string"
552
+ },
553
+ "location": {
554
+ "type": "string"
555
+ },
556
+ "rewards": {
557
+ "type": "array",
558
+ "items": {
559
+ "type": "string"
560
+ }
561
+ },
562
+ "um": {
563
+ "type": [
564
+ "string",
565
+ "null"
566
+ ]
567
+ },
568
+ "owner": {
569
+ "type": "string"
570
+ }
571
+ },
572
+ "required": [
573
+ "object",
574
+ "description",
575
+ "location"
576
+ ],
577
+ "additionalProperties": false
578
+ }
579
+ },
580
+ "injection": {
581
+ "$ref": "#/definitions/evaluation_operation/anyOf/4/properties/injection"
582
+ },
583
+ "account": {
584
+ "type": "string",
585
+ "description": "Account address; its persona is auto-applied as the base injection."
586
+ }
587
+ },
588
+ "required": [
589
+ "action",
590
+ "service_cap",
591
+ "demands"
592
+ ],
593
+ "additionalProperties": false
594
+ },
595
+ {
596
+ "type": "object",
597
+ "properties": {
598
+ "action": {
599
+ "type": "string",
600
+ "const": "service_risk"
601
+ },
602
+ "service_id": {
603
+ "type": "string",
604
+ "description": "Service object address or LocalMark name."
605
+ },
606
+ "puzzle_raw": {
607
+ "type": "object",
608
+ "properties": {
609
+ "service": {
610
+ "type": "object",
611
+ "properties": {
612
+ "name": {
613
+ "type": "string"
614
+ },
615
+ "bPublished": {
616
+ "type": "boolean"
617
+ },
618
+ "bPaused": {
619
+ "type": "boolean"
620
+ },
621
+ "price": {
622
+ "type": "string"
623
+ },
624
+ "priceRaw": {
625
+ "type": "string",
626
+ "description": "Smallest-unit amount (string)."
627
+ },
628
+ "token_type": {
629
+ "type": "string"
630
+ },
631
+ "sales": {
632
+ "type": "array",
633
+ "items": {
634
+ "type": "object",
635
+ "properties": {
636
+ "suspension": {
637
+ "type": "boolean"
638
+ },
639
+ "wip_url": {
640
+ "type": "string"
641
+ },
642
+ "wip_hash": {
643
+ "type": "string"
644
+ }
645
+ },
646
+ "additionalProperties": false
647
+ }
648
+ },
649
+ "machine": {
650
+ "type": "string"
651
+ },
652
+ "buy_guard": {
653
+ "type": "string"
654
+ },
655
+ "customer_required": {
656
+ "type": "array",
657
+ "items": {}
658
+ },
659
+ "arbitrations": {
660
+ "type": "array",
661
+ "items": {
662
+ "type": "string"
663
+ }
664
+ },
665
+ "compensation_fund": {
666
+ "type": "object",
667
+ "properties": {
668
+ "balance": {
669
+ "type": "string",
670
+ "description": "Smallest-unit amount (string)."
671
+ }
672
+ },
673
+ "additionalProperties": false
674
+ },
675
+ "compensation_lock_duration": {
676
+ "type": "number"
677
+ },
678
+ "um": {
679
+ "type": "string"
680
+ }
681
+ },
682
+ "additionalProperties": false
683
+ },
684
+ "machine_nodes": {
685
+ "type": "array",
686
+ "items": {
687
+ "type": "object",
688
+ "properties": {
689
+ "name": {
690
+ "type": "string"
691
+ },
692
+ "forwards": {
693
+ "type": "array",
694
+ "items": {
695
+ "type": "object",
696
+ "properties": {
697
+ "name": {
698
+ "type": "string"
699
+ },
700
+ "weight": {
701
+ "type": "number"
702
+ },
703
+ "namedOperator": {
704
+ "type": [
705
+ "string",
706
+ "null"
707
+ ]
708
+ },
709
+ "guard": {
710
+ "type": [
711
+ "string",
712
+ "null"
713
+ ]
714
+ },
715
+ "to": {
716
+ "type": "string"
717
+ }
718
+ },
719
+ "additionalProperties": false
720
+ }
721
+ },
722
+ "is_pair_done": {
723
+ "type": "boolean"
724
+ }
725
+ },
726
+ "required": [
727
+ "name"
728
+ ],
729
+ "additionalProperties": false
730
+ }
731
+ },
732
+ "machine_published": {
733
+ "type": "boolean"
734
+ },
735
+ "machine_paused": {
736
+ "type": "boolean"
737
+ },
738
+ "reviews": {
739
+ "type": "array",
740
+ "items": {
741
+ "type": "object",
742
+ "properties": {
743
+ "rating": {
744
+ "type": "string"
745
+ },
746
+ "reviewer": {
747
+ "type": "string"
748
+ },
749
+ "verified": {
750
+ "type": "boolean"
751
+ },
752
+ "has_evidence": {
753
+ "type": "boolean"
754
+ },
755
+ "timestamp": {
756
+ "type": "number"
757
+ }
758
+ },
759
+ "additionalProperties": false
760
+ }
761
+ },
762
+ "events": {
763
+ "type": "array",
764
+ "items": {
765
+ "type": "object",
766
+ "properties": {
767
+ "type": {
768
+ "type": "string"
769
+ },
770
+ "timestamp": {
771
+ "type": "number"
772
+ },
773
+ "address": {
774
+ "type": "string"
775
+ },
776
+ "data": {
777
+ "type": "object",
778
+ "additionalProperties": {}
779
+ }
780
+ },
781
+ "required": [
782
+ "type"
783
+ ],
784
+ "additionalProperties": false
785
+ }
786
+ },
787
+ "similar_services": {
788
+ "type": "array",
789
+ "items": {
790
+ "type": "object",
791
+ "properties": {
792
+ "price": {
793
+ "type": "string"
794
+ }
795
+ },
796
+ "required": [
797
+ "price"
798
+ ],
799
+ "additionalProperties": false
800
+ }
801
+ },
802
+ "order_amount": {
803
+ "type": "string",
804
+ "description": "Smallest-unit amount (string)."
805
+ },
806
+ "trust_score": {
807
+ "type": "object",
808
+ "properties": {
809
+ "score": {
810
+ "type": "number"
811
+ },
812
+ "level": {
813
+ "type": "string"
814
+ }
815
+ },
816
+ "required": [
817
+ "score",
818
+ "level"
819
+ ],
820
+ "additionalProperties": false
821
+ },
822
+ "arbitration_owner": {
823
+ "type": "string"
824
+ },
825
+ "service_owner": {
826
+ "type": "string"
827
+ },
828
+ "wip_verified": {
829
+ "type": "boolean"
830
+ },
831
+ "order_history": {
832
+ "type": "array",
833
+ "items": {
834
+ "type": "object",
835
+ "properties": {
836
+ "status": {
837
+ "type": "string"
838
+ },
839
+ "has_dispute": {
840
+ "type": "boolean"
841
+ },
842
+ "is_repeat": {
843
+ "type": "boolean"
844
+ }
845
+ },
846
+ "required": [
847
+ "status",
848
+ "has_dispute",
849
+ "is_repeat"
850
+ ],
851
+ "additionalProperties": false
852
+ }
853
+ },
854
+ "merchant_reputation": {
855
+ "type": "object",
856
+ "properties": {
857
+ "likes": {
858
+ "type": "number"
859
+ },
860
+ "dislikes": {
861
+ "type": "number"
862
+ }
863
+ },
864
+ "required": [
865
+ "likes",
866
+ "dislikes"
867
+ ],
868
+ "additionalProperties": false
869
+ }
870
+ },
871
+ "required": [
872
+ "service"
873
+ ],
874
+ "additionalProperties": false
875
+ },
876
+ "injection": {
877
+ "$ref": "#/definitions/evaluation_operation/anyOf/4/properties/injection"
878
+ },
879
+ "depth": {
880
+ "type": "string",
881
+ "enum": [
882
+ "browse",
883
+ "evaluate",
884
+ "preorder",
885
+ "monitor"
886
+ ]
887
+ },
888
+ "account": {
889
+ "type": "string",
890
+ "description": "Account address; its persona is auto-applied as the base injection."
891
+ }
892
+ },
893
+ "required": [
894
+ "action",
895
+ "service_id",
896
+ "puzzle_raw"
897
+ ],
898
+ "additionalProperties": false
899
+ }
900
+ ]
901
+ }
902
+ }
903
+ }