@wowok/agent-mcp 2.3.18 → 2.4.3

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 (121) hide show
  1. package/dist/customer/industry-risks.js +31 -31
  2. package/dist/customer/order-monitor.js +57 -57
  3. package/dist/customer/order-strategy.js +89 -89
  4. package/dist/customer/post-purchase.js +97 -97
  5. package/dist/customer/reminder-system.js +26 -26
  6. package/dist/customer/risk-assessment.js +46 -46
  7. package/dist/customer/types.d.ts +4 -4
  8. package/dist/customer/types.js +4 -4
  9. package/dist/customer/user-preferences.js +50 -50
  10. package/dist/experience/intent-distill.js +6 -6
  11. package/dist/index.d.ts +2 -2
  12. package/dist/index.js +11 -1624
  13. package/dist/knowledge/acquisition-flywheel.js +64 -64
  14. package/dist/knowledge/arbitration-trust.js +10 -10
  15. package/dist/knowledge/demand-matching.js +8 -8
  16. package/dist/knowledge/dynamic-pricing.js +18 -18
  17. package/dist/knowledge/flywheel-loop.js +11 -11
  18. package/dist/knowledge/glossary.js +22 -22
  19. package/dist/knowledge/guard-ledger.d.ts +1 -1
  20. package/dist/knowledge/guard-ledger.js +145 -104
  21. package/dist/knowledge/guard-lint.d.ts +77 -0
  22. package/dist/knowledge/guard-lint.js +670 -0
  23. package/dist/knowledge/guard-migration.d.ts +48 -0
  24. package/dist/knowledge/guard-migration.js +228 -0
  25. package/dist/knowledge/guard-puzzle.d.ts +109 -14
  26. package/dist/knowledge/guard-puzzle.js +627 -101
  27. package/dist/knowledge/guard-risk.d.ts +10 -1
  28. package/dist/knowledge/guard-risk.js +1634 -292
  29. package/dist/knowledge/guard-templates.d.ts +38 -0
  30. package/dist/knowledge/guard-templates.js +605 -0
  31. package/dist/knowledge/guard-translation.d.ts +14 -2
  32. package/dist/knowledge/guard-translation.js +825 -194
  33. package/dist/knowledge/index.d.ts +8 -4
  34. package/dist/knowledge/index.js +9 -5
  35. package/dist/knowledge/industry-evolution.js +29 -29
  36. package/dist/knowledge/industry-generalizer.js +52 -52
  37. package/dist/knowledge/industry-registry.js +20 -33
  38. package/dist/knowledge/intent-metrics.js +67 -67
  39. package/dist/knowledge/process-model.js +80 -80
  40. package/dist/knowledge/reputation-rules.js +9 -9
  41. package/dist/knowledge/reward-templates.js +51 -51
  42. package/dist/knowledge/safety-rules.js +3 -3
  43. package/dist/knowledge/tool-constraints.js +20 -4
  44. package/dist/knowledge/trust-metrics.js +26 -26
  45. package/dist/project/graph.d.ts +1 -0
  46. package/dist/project/graph.js +27 -1
  47. package/dist/project/index.d.ts +1 -0
  48. package/dist/project/index.js +39 -2
  49. package/dist/project/namespace.d.ts +11 -1
  50. package/dist/project/namespace.js +27 -2
  51. package/dist/project/query.d.ts +2 -0
  52. package/dist/project/query.js +56 -15
  53. package/dist/rules.d.ts +12 -0
  54. package/dist/rules.js +9 -0
  55. package/dist/schema/call/allocation.d.ts +10 -10
  56. package/dist/schema/call/base.js +19 -19
  57. package/dist/schema/call/bridge.d.ts +32 -32
  58. package/dist/schema/call/demand.d.ts +84 -84
  59. package/dist/schema/call/guard.d.ts +153 -0
  60. package/dist/schema/call/guard.js +50 -0
  61. package/dist/schema/call/machine.d.ts +38 -38
  62. package/dist/schema/call/permission.d.ts +78 -78
  63. package/dist/schema/call/repository.d.ts +22 -22
  64. package/dist/schema/call/semantic.js +229 -25
  65. package/dist/schema/call/service.d.ts +7 -7
  66. package/dist/schema/local/wip.d.ts +39 -19
  67. package/dist/schema/local/wip.js +5 -5
  68. package/dist/schema/messenger/index.d.ts +26 -26
  69. package/dist/schema/messenger/index.js +2 -2
  70. package/dist/schema/operations.d.ts +270 -192
  71. package/dist/schema/query/index.d.ts +184 -184
  72. package/dist/schema/query/index.js +15 -9
  73. package/dist/schema/trust/index.d.ts +4 -4
  74. package/dist/schema/utils/guard-parser.js +4 -4
  75. package/dist/schema/utils/guard-query-utils.d.ts +7 -0
  76. package/dist/schema/utils/guard-query-utils.js +14 -1
  77. package/dist/schema/utils/node-parser.js +14 -14
  78. package/dist/schemas/bridge_operation.output.json +15 -15
  79. package/dist/schemas/index.json +1 -1
  80. package/dist/schemas/messenger_operation.output.json +18 -16
  81. package/dist/schemas/onchain_events.output.json +15 -15
  82. package/dist/schemas/onchain_operations.output.json +16 -16
  83. package/dist/schemas/onchain_operations.schema.json +11 -20
  84. package/dist/schemas/onchain_operations_allocation.schema.json +7 -10
  85. package/dist/schemas/onchain_operations_machine.schema.json +2 -5
  86. package/dist/schemas/onchain_operations_service.schema.json +2 -5
  87. package/dist/schemas/onchain_table_data.output.json +20 -26
  88. package/dist/schemas/wip_file.output.json +24 -1
  89. package/dist/tools/handlers/bridge.d.ts +1 -0
  90. package/dist/tools/handlers/bridge.js +1 -0
  91. package/dist/tools/handlers/config.d.ts +2 -0
  92. package/dist/tools/handlers/config.js +71 -0
  93. package/dist/tools/handlers/file-export.d.ts +3 -0
  94. package/dist/tools/handlers/file-export.js +90 -0
  95. package/dist/tools/handlers/local.d.ts +30 -0
  96. package/dist/tools/handlers/local.js +27 -0
  97. package/dist/tools/handlers/messenger.d.ts +16 -0
  98. package/dist/tools/handlers/messenger.js +187 -0
  99. package/dist/tools/handlers/onchain.d.ts +2 -0
  100. package/dist/tools/handlers/onchain.js +246 -0
  101. package/dist/tools/handlers/project.d.ts +2 -0
  102. package/dist/tools/handlers/project.js +53 -0
  103. package/dist/tools/handlers/query.d.ts +5 -0
  104. package/dist/tools/handlers/query.js +256 -0
  105. package/dist/tools/handlers/schema-query.d.ts +2 -0
  106. package/dist/tools/handlers/schema-query.js +92 -0
  107. package/dist/tools/handlers/trust.d.ts +2 -0
  108. package/dist/tools/handlers/trust.js +194 -0
  109. package/dist/tools/handlers/wip.d.ts +2 -0
  110. package/dist/tools/handlers/wip.js +44 -0
  111. package/dist/tools/index.d.ts +13 -0
  112. package/dist/tools/index.js +479 -0
  113. package/dist/tools/rules-hook.d.ts +2 -0
  114. package/dist/tools/rules-hook.js +22 -0
  115. package/dist/tools/shared.d.ts +29 -0
  116. package/dist/tools/shared.js +130 -0
  117. package/dist/tools/types.d.ts +35 -0
  118. package/dist/tools/types.js +1 -0
  119. package/dist/tools/wrap.d.ts +6 -0
  120. package/dist/tools/wrap.js +55 -0
  121. package/package.json +19 -5
@@ -783,7 +783,7 @@
783
783
  }
784
784
  },
785
785
  "additionalProperties": false,
786
- "description": "Experience layer feedback from past operations (Phase 2 议题 2)"
786
+ "description": "Experience layer feedback from past operations (Phase 2 Topic 2)"
787
787
  },
788
788
  "service_status": {
789
789
  "type": "object",
@@ -833,7 +833,7 @@
833
833
  "items": {
834
834
  "type": "string"
835
835
  },
836
- "description": "Actionable recommendations for the buyer. Example: ['要求商家配置仲裁','通过 Messenger 协商退款条款']"
836
+ "description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
837
837
  },
838
838
  "reminders": {
839
839
  "type": "array",
@@ -868,7 +868,7 @@
868
868
  },
869
869
  "message": {
870
870
  "type": "string",
871
- "description": "Human-readable reminder message. Example: '🔴 综合风险分 25/100,强烈建议不购买'"
871
+ "description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
872
872
  },
873
873
  "action": {
874
874
  "type": "string",
@@ -884,7 +884,7 @@
884
884
  "additionalProperties": false,
885
885
  "description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
886
886
  },
887
- "description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'🔴 模糊 Guard 必须人工审查'}]"
887
+ "description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
888
888
  },
889
889
  "preference_match": {
890
890
  "type": "object",
@@ -900,14 +900,14 @@
900
900
  "items": {
901
901
  "type": "string"
902
902
  },
903
- "description": "Aspects that match user preferences. Example: ['价格低于均价 10%','有仲裁']"
903
+ "description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
904
904
  },
905
905
  "mismatches": {
906
906
  "type": "array",
907
907
  "items": {
908
908
  "type": "string"
909
909
  },
910
- "description": "Aspects that mismatch user preferences. Example: ['交付周期超出期望']"
910
+ "description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
911
911
  }
912
912
  },
913
913
  "required": [
@@ -931,11 +931,11 @@
931
931
  "properties": {
932
932
  "industry_signal": {
933
933
  "type": "string",
934
- "description": "Industry evolution signal summary. Example: '行业健康度 82/100healthy);累积 25 个行业信号'"
934
+ "description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'"
935
935
  },
936
936
  "evolution_advice": {
937
937
  "type": "string",
938
- "description": "Evolution advice for the current operation. Example: '建议强制配置仲裁 + 赔偿金 + 交付 Guard'"
938
+ "description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'"
939
939
  },
940
940
  "confidence": {
941
941
  "type": "number",
@@ -972,7 +972,7 @@
972
972
  "items": {
973
973
  "type": "string"
974
974
  },
975
- "description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['强化忠诚度飞轮','优化首单转化']"
975
+ "description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']"
976
976
  },
977
977
  "role": {
978
978
  "type": "string",
@@ -1054,21 +1054,21 @@
1054
1054
  },
1055
1055
  "scene_description": {
1056
1056
  "type": "string",
1057
- "description": "Human-readable scene description. Example: '工作流节点推进验证(Forward.guard'"
1057
+ "description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'"
1058
1058
  },
1059
1059
  "scene_constraints": {
1060
1060
  "type": "array",
1061
1061
  "items": {
1062
1062
  "type": "string"
1063
1063
  },
1064
- "description": "Special constraints for the matched scene. Example: ['Machine 发布后 Forward.guard 不可修改']"
1064
+ "description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']"
1065
1065
  },
1066
1066
  "suggested_patterns": {
1067
1067
  "type": "array",
1068
1068
  "items": {
1069
1069
  "type": "string"
1070
1070
  },
1071
- "description": "Suggested Guard patterns based on user intent. Example: ['时间锁','进度状态检查']"
1071
+ "description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']"
1072
1072
  },
1073
1073
  "available_queries": {
1074
1074
  "type": "array",
@@ -1081,7 +1081,7 @@
1081
1081
  },
1082
1082
  "name": {
1083
1083
  "type": "string",
1084
- "description": "Query instruction name. Example: 'progress.current_node_name'"
1084
+ "description": "Query instruction name. Example: 'progress.current'"
1085
1085
  },
1086
1086
  "objectType": {
1087
1087
  "type": "string",
@@ -1112,14 +1112,14 @@
1112
1112
  "items": {
1113
1113
  "type": "string"
1114
1114
  },
1115
- "description": "Risk warnings for the current Guard design. Example: ['Guard 创建后不可修改','时间锁测试用 1000ms']"
1115
+ "description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']"
1116
1116
  },
1117
1117
  "pending_questions": {
1118
1118
  "type": "array",
1119
1119
  "items": {
1120
1120
  "type": "string"
1121
1121
  },
1122
- "description": "Questions for the user to complete the puzzle. Example: ['Guard 将绑定到哪个 Host Object']"
1122
+ "description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']"
1123
1123
  },
1124
1124
  "confirmation_text": {
1125
1125
  "type": "string",
@@ -2177,7 +2177,7 @@
2177
2177
  }
2178
2178
  },
2179
2179
  "additionalProperties": false,
2180
- "description": "Experience layer feedback from past operations (Phase 2 议题 2)"
2180
+ "description": "Experience layer feedback from past operations (Phase 2 Topic 2)"
2181
2181
  },
2182
2182
  "service_status": {
2183
2183
  "type": "object",
@@ -2227,7 +2227,7 @@
2227
2227
  "items": {
2228
2228
  "type": "string"
2229
2229
  },
2230
- "description": "Actionable recommendations for the buyer. Example: ['要求商家配置仲裁','通过 Messenger 协商退款条款']"
2230
+ "description": "Actionable recommendations for the buyer. Example: ['Require merchant to configure arbitration','Negotiate refund terms via Messenger']"
2231
2231
  },
2232
2232
  "reminders": {
2233
2233
  "type": "array",
@@ -2262,7 +2262,7 @@
2262
2262
  },
2263
2263
  "message": {
2264
2264
  "type": "string",
2265
- "description": "Human-readable reminder message. Example: '🔴 综合风险分 25/100,强烈建议不购买'"
2265
+ "description": "Human-readable reminder message. Example: 'Composite risk score 25/100, strongly discourage purchase'"
2266
2266
  },
2267
2267
  "action": {
2268
2268
  "type": "string",
@@ -2278,7 +2278,7 @@
2278
2278
  "additionalProperties": false,
2279
2279
  "description": "A buyer-side reminder triggered at a specific order lifecycle stage (Phase 3 C-3)."
2280
2280
  },
2281
- "description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'🔴 模糊 Guard 必须人工审查'}]"
2281
+ "description": "Stage-specific reminders (deduped, sorted by priority, capped to 3 high-risk). Example: [{priority:'required', message:'Ambiguous Guard must be human-reviewed'}]"
2282
2282
  },
2283
2283
  "preference_match": {
2284
2284
  "type": "object",
@@ -2294,14 +2294,14 @@
2294
2294
  "items": {
2295
2295
  "type": "string"
2296
2296
  },
2297
- "description": "Aspects that match user preferences. Example: ['价格低于均价 10%','有仲裁']"
2297
+ "description": "Aspects that match user preferences. Example: ['Price 10% below average','Has arbitration']"
2298
2298
  },
2299
2299
  "mismatches": {
2300
2300
  "type": "array",
2301
2301
  "items": {
2302
2302
  "type": "string"
2303
2303
  },
2304
- "description": "Aspects that mismatch user preferences. Example: ['交付周期超出期望']"
2304
+ "description": "Aspects that mismatch user preferences. Example: ['Delivery cycle exceeds expectation']"
2305
2305
  }
2306
2306
  },
2307
2307
  "required": [
@@ -2325,11 +2325,11 @@
2325
2325
  "properties": {
2326
2326
  "industry_signal": {
2327
2327
  "type": "string",
2328
- "description": "Industry evolution signal summary. Example: '行业健康度 82/100healthy);累积 25 个行业信号'"
2328
+ "description": "Industry evolution signal summary. Example: 'Industry health 82/100 (healthy); 25 cumulative industry signals'"
2329
2329
  },
2330
2330
  "evolution_advice": {
2331
2331
  "type": "string",
2332
- "description": "Evolution advice for the current operation. Example: '建议强制配置仲裁 + 赔偿金 + 交付 Guard'"
2332
+ "description": "Evolution advice for the current operation. Example: 'Recommend mandatory arbitration + compensation fund + delivery Guard'"
2333
2333
  },
2334
2334
  "confidence": {
2335
2335
  "type": "number",
@@ -2366,7 +2366,7 @@
2366
2366
  "items": {
2367
2367
  "type": "string"
2368
2368
  },
2369
- "description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['强化忠诚度飞轮','优化首单转化']"
2369
+ "description": "Phase 4 P4-6.C: Role-targeted advice strings (user/merchant/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']"
2370
2370
  },
2371
2371
  "role": {
2372
2372
  "type": "string",
@@ -2448,21 +2448,21 @@
2448
2448
  },
2449
2449
  "scene_description": {
2450
2450
  "type": "string",
2451
- "description": "Human-readable scene description. Example: '工作流节点推进验证(Forward.guard'"
2451
+ "description": "Human-readable scene description. Example: 'Workflow node forward validation (Forward.guard)'"
2452
2452
  },
2453
2453
  "scene_constraints": {
2454
2454
  "type": "array",
2455
2455
  "items": {
2456
2456
  "type": "string"
2457
2457
  },
2458
- "description": "Special constraints for the matched scene. Example: ['Machine 发布后 Forward.guard 不可修改']"
2458
+ "description": "Special constraints for the matched scene. Example: ['Forward.guard cannot be modified after Machine is published']"
2459
2459
  },
2460
2460
  "suggested_patterns": {
2461
2461
  "type": "array",
2462
2462
  "items": {
2463
2463
  "type": "string"
2464
2464
  },
2465
- "description": "Suggested Guard patterns based on user intent. Example: ['时间锁','进度状态检查']"
2465
+ "description": "Suggested Guard patterns based on user intent. Example: ['time lock','progress status check']"
2466
2466
  },
2467
2467
  "available_queries": {
2468
2468
  "type": "array",
@@ -2475,7 +2475,7 @@
2475
2475
  },
2476
2476
  "name": {
2477
2477
  "type": "string",
2478
- "description": "Query instruction name. Example: 'progress.current_node_name'"
2478
+ "description": "Query instruction name. Example: 'progress.current'"
2479
2479
  },
2480
2480
  "objectType": {
2481
2481
  "type": "string",
@@ -2506,14 +2506,14 @@
2506
2506
  "items": {
2507
2507
  "type": "string"
2508
2508
  },
2509
- "description": "Risk warnings for the current Guard design. Example: ['Guard 创建后不可修改','时间锁测试用 1000ms']"
2509
+ "description": "Risk warnings for the current Guard design. Example: ['Guard cannot be modified after creation','Time lock test uses 1000ms']"
2510
2510
  },
2511
2511
  "pending_questions": {
2512
2512
  "type": "array",
2513
2513
  "items": {
2514
2514
  "type": "string"
2515
2515
  },
2516
- "description": "Questions for the user to complete the puzzle. Example: ['Guard 将绑定到哪个 Host Object']"
2516
+ "description": "Questions for the user to complete the puzzle. Example: ['Which Host Object will the Guard bind to?']"
2517
2517
  },
2518
2518
  "confirmation_text": {
2519
2519
  "type": "string",
@@ -2812,7 +2812,7 @@
2812
2812
  "result"
2813
2813
  ],
2814
2814
  "additionalProperties": false,
2815
- "description": "Unified MCP tool output. result.type discriminates 5 outcomes: 'transaction' (raw Sui response), 'submission' (needs Guard data), 'error' (failed with error_code), 'data' (query result), 'null' (no-op). When semantic is present, prefer it over raw result parsing. When harness_report is present, check verify.status first and follow recovery.strategy if status is 'fail'."
2815
+ "description": "Unified MCP tool output. result.type discriminates 5 outcomes: 'transaction' (raw Wow response), 'submission' (needs Guard data), 'error' (failed with error_code), 'data' (query result), 'null' (no-op). When semantic is present, prefer it over raw result parsing. When harness_report is present, check verify.status first and follow recovery.strategy if status is 'fail'."
2816
2816
  }
2817
2817
  }
2818
2818
  }
@@ -1676,10 +1676,8 @@
1676
1676
  "description": "Description of fund allocator list"
1677
1677
  },
1678
1678
  "threshold": {
1679
- "type": [
1680
- "number",
1681
- "string"
1682
- ],
1679
+ "$ref": "#/definitions/data_service/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance",
1680
+ "default": 0,
1683
1681
  "description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
1684
1682
  },
1685
1683
  "allocators": {
@@ -1799,7 +1797,6 @@
1799
1797
  },
1800
1798
  "required": [
1801
1799
  "description",
1802
- "threshold",
1803
1800
  "allocators"
1804
1801
  ],
1805
1802
  "additionalProperties": false,
@@ -2226,6 +2223,7 @@
2226
2223
  "number",
2227
2224
  "string"
2228
2225
  ],
2226
+ "default": 0,
2229
2227
  "description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
2230
2228
  },
2231
2229
  "forwards": {
@@ -2289,10 +2287,7 @@
2289
2287
  {
2290
2288
  "type": "array",
2291
2289
  "items": {
2292
- "type": [
2293
- "number",
2294
- "string"
2295
- ]
2290
+ "$ref": "#/definitions/data_machine/properties/node/anyOf/0/anyOf/0/properties/nodes/items/properties/pairs/items/properties/threshold"
2296
2291
  }
2297
2292
  },
2298
2293
  {
@@ -2327,7 +2322,6 @@
2327
2322
  },
2328
2323
  "required": [
2329
2324
  "prev_node",
2330
- "threshold",
2331
2325
  "forwards"
2332
2326
  ],
2333
2327
  "additionalProperties": false,
@@ -5804,7 +5798,8 @@
5804
5798
  "number",
5805
5799
  "string"
5806
5800
  ],
5807
- "description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
5801
+ "description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold.",
5802
+ "default": 0
5808
5803
  },
5809
5804
  "allocators": {
5810
5805
  "type": "array",
@@ -5908,16 +5903,13 @@
5908
5903
  "description": "Fund allocation item list. Each item represents a recipient and their corresponding reward allocation value."
5909
5904
  },
5910
5905
  "fix": {
5911
- "type": [
5912
- "number",
5913
- "string"
5914
- ],
5906
+ "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold",
5915
5907
  "description": "Fixed allocation amount. If specified, all recipients will receive the fixed allocation amount."
5916
5908
  },
5917
5909
  "max": {
5918
5910
  "anyOf": [
5919
5911
  {
5920
- "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
5912
+ "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
5921
5913
  },
5922
5914
  {
5923
5915
  "type": "null"
@@ -5938,7 +5930,6 @@
5938
5930
  },
5939
5931
  "required": [
5940
5932
  "description",
5941
- "threshold",
5942
5933
  "allocators"
5943
5934
  ],
5944
5935
  "additionalProperties": false,
@@ -5950,7 +5941,7 @@
5950
5941
  "type": "object",
5951
5942
  "properties": {
5952
5943
  "balance": {
5953
- "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
5944
+ "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
5954
5945
  }
5955
5946
  },
5956
5947
  "required": [
@@ -6034,7 +6025,7 @@
6034
6025
  "type": "object",
6035
6026
  "properties": {
6036
6027
  "balance": {
6037
- "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
6028
+ "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
6038
6029
  },
6039
6030
  "token_type": {
6040
6031
  "type": "string",
@@ -6050,7 +6041,7 @@
6050
6041
  "description": "Received CoinWrapper object ID"
6051
6042
  },
6052
6043
  "balance": {
6053
- "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
6044
+ "$ref": "#/definitions/data_allocation/anyOf/0/properties/allocators/properties/threshold"
6054
6045
  },
6055
6046
  "payment": {
6056
6047
  "type": "string",
@@ -74,7 +74,8 @@
74
74
  "number",
75
75
  "string"
76
76
  ],
77
- "description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
77
+ "description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold.",
78
+ "default": 0
78
79
  },
79
80
  "allocators": {
80
81
  "type": "array",
@@ -178,16 +179,13 @@
178
179
  "description": "Fund allocation item list. Each item represents a recipient and their corresponding reward allocation value."
179
180
  },
180
181
  "fix": {
181
- "type": [
182
- "number",
183
- "string"
184
- ],
182
+ "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/threshold",
185
183
  "description": "Fixed allocation amount. If specified, all recipients will receive the fixed allocation amount."
186
184
  },
187
185
  "max": {
188
186
  "anyOf": [
189
187
  {
190
- "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
188
+ "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/threshold"
191
189
  },
192
190
  {
193
191
  "type": "null"
@@ -208,7 +206,6 @@
208
206
  },
209
207
  "required": [
210
208
  "description",
211
- "threshold",
212
209
  "allocators"
213
210
  ],
214
211
  "additionalProperties": false,
@@ -220,7 +217,7 @@
220
217
  "type": "object",
221
218
  "properties": {
222
219
  "balance": {
223
- "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
220
+ "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/threshold"
224
221
  }
225
222
  },
226
223
  "required": [
@@ -304,7 +301,7 @@
304
301
  "type": "object",
305
302
  "properties": {
306
303
  "balance": {
307
- "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
304
+ "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/threshold"
308
305
  },
309
306
  "token_type": {
310
307
  "type": "string",
@@ -320,7 +317,7 @@
320
317
  "description": "Received CoinWrapper object ID"
321
318
  },
322
319
  "balance": {
323
- "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/allocators/items/properties/fix"
320
+ "$ref": "#/definitions/data/anyOf/0/properties/allocators/properties/threshold"
324
321
  },
325
322
  "payment": {
326
323
  "type": "string",
@@ -295,6 +295,7 @@
295
295
  "number",
296
296
  "string"
297
297
  ],
298
+ "default": 0,
298
299
  "description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
299
300
  },
300
301
  "forwards": {
@@ -358,10 +359,7 @@
358
359
  {
359
360
  "type": "array",
360
361
  "items": {
361
- "type": [
362
- "number",
363
- "string"
364
- ]
362
+ "$ref": "#/definitions/data/properties/node/anyOf/0/anyOf/0/properties/nodes/items/properties/pairs/items/properties/threshold"
365
363
  }
366
364
  },
367
365
  {
@@ -396,7 +394,6 @@
396
394
  },
397
395
  "required": [
398
396
  "prev_node",
399
- "threshold",
400
397
  "forwards"
401
398
  ],
402
399
  "additionalProperties": false,
@@ -586,10 +586,8 @@
586
586
  "description": "Description of fund allocator list"
587
587
  },
588
588
  "threshold": {
589
- "type": [
590
- "number",
591
- "string"
592
- ],
589
+ "$ref": "#/definitions/data/properties/order_new/properties/buy/properties/total_pay/anyOf/0/properties/balance",
590
+ "default": 0,
593
591
  "description": "Threshold. If defined, fund allocation will be triggered when amount in Allocation object reaches this threshold."
594
592
  },
595
593
  "allocators": {
@@ -709,7 +707,6 @@
709
707
  },
710
708
  "required": [
711
709
  "description",
712
- "threshold",
713
710
  "allocators"
714
711
  ],
715
712
  "additionalProperties": false,