@wowok/agent-mcp 2.3.13 → 2.3.16

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 (194) hide show
  1. package/dist/config/index.d.ts +1 -0
  2. package/dist/config/index.js +1 -0
  3. package/dist/config/runtime.d.ts +26 -0
  4. package/dist/config/runtime.js +217 -0
  5. package/dist/customer/industry-risks.d.ts +36 -0
  6. package/dist/customer/industry-risks.js +424 -0
  7. package/dist/customer/info-puzzle.d.ts +102 -0
  8. package/dist/customer/info-puzzle.js +312 -0
  9. package/dist/customer/order-monitor.d.ts +75 -0
  10. package/dist/customer/order-monitor.js +327 -0
  11. package/dist/customer/order-strategy.d.ts +36 -0
  12. package/dist/customer/order-strategy.js +373 -0
  13. package/dist/customer/post-purchase.d.ts +42 -0
  14. package/dist/customer/post-purchase.js +350 -0
  15. package/dist/customer/reminder-system.d.ts +42 -0
  16. package/dist/customer/reminder-system.js +295 -0
  17. package/dist/customer/risk-assessment.d.ts +8 -0
  18. package/dist/customer/risk-assessment.js +337 -0
  19. package/dist/customer/types.d.ts +193 -0
  20. package/dist/customer/types.js +13 -0
  21. package/dist/customer/user-preferences.d.ts +67 -0
  22. package/dist/customer/user-preferences.js +451 -0
  23. package/dist/experience/experience-reuse.d.ts +10 -0
  24. package/dist/experience/experience-reuse.js +103 -0
  25. package/dist/experience/index.d.ts +6 -0
  26. package/dist/experience/index.js +5 -0
  27. package/dist/experience/intent-distill.d.ts +3 -0
  28. package/dist/experience/intent-distill.js +83 -0
  29. package/dist/experience/realtime-feedback.d.ts +5 -0
  30. package/dist/experience/realtime-feedback.js +77 -0
  31. package/dist/experience/types.d.ts +50 -0
  32. package/dist/experience/types.js +1 -0
  33. package/dist/experience/user-profile.d.ts +25 -0
  34. package/dist/experience/user-profile.js +171 -0
  35. package/dist/harness/checkpoint.d.ts +8 -0
  36. package/dist/harness/checkpoint.js +129 -0
  37. package/dist/harness/index.d.ts +33 -0
  38. package/dist/harness/index.js +75 -0
  39. package/dist/harness/plan.d.ts +18 -0
  40. package/dist/harness/plan.js +252 -0
  41. package/dist/harness/recover.d.ts +17 -0
  42. package/dist/harness/recover.js +139 -0
  43. package/dist/harness/types.d.ts +137 -0
  44. package/dist/harness/types.js +1 -0
  45. package/dist/harness/verify.d.ts +42 -0
  46. package/dist/harness/verify.js +237 -0
  47. package/dist/index.js +667 -201
  48. package/dist/knowledge/acquisition-flywheel.d.ts +50 -0
  49. package/dist/knowledge/acquisition-flywheel.js +183 -0
  50. package/dist/knowledge/arbitration-trust.d.ts +24 -0
  51. package/dist/knowledge/arbitration-trust.js +117 -0
  52. package/dist/knowledge/audit-rules.d.ts +28 -0
  53. package/dist/knowledge/audit-rules.js +141 -0
  54. package/dist/knowledge/demand-matching.d.ts +29 -0
  55. package/dist/knowledge/demand-matching.js +132 -0
  56. package/dist/knowledge/dynamic-pricing.d.ts +31 -0
  57. package/dist/knowledge/dynamic-pricing.js +87 -0
  58. package/dist/knowledge/flywheel-loop.d.ts +87 -0
  59. package/dist/knowledge/flywheel-loop.js +378 -0
  60. package/dist/knowledge/glossary.d.ts +18 -0
  61. package/dist/knowledge/glossary.js +209 -0
  62. package/dist/knowledge/index.d.ts +64 -0
  63. package/dist/knowledge/index.js +66 -0
  64. package/dist/knowledge/industry-evolution.d.ts +82 -0
  65. package/dist/knowledge/industry-evolution.js +323 -0
  66. package/dist/knowledge/industry-generalizer.d.ts +17 -0
  67. package/dist/knowledge/industry-generalizer.js +381 -0
  68. package/dist/knowledge/industry-registry.d.ts +49 -0
  69. package/dist/knowledge/industry-registry.js +167 -0
  70. package/dist/knowledge/intent-metrics.d.ts +42 -0
  71. package/dist/knowledge/intent-metrics.js +566 -0
  72. package/dist/knowledge/process-model.d.ts +24 -0
  73. package/dist/knowledge/process-model.js +160 -0
  74. package/dist/knowledge/reputation-rules.d.ts +42 -0
  75. package/dist/knowledge/reputation-rules.js +99 -0
  76. package/dist/knowledge/reward-templates.d.ts +25 -0
  77. package/dist/knowledge/reward-templates.js +125 -0
  78. package/dist/knowledge/safety-rules.d.ts +36 -0
  79. package/dist/knowledge/safety-rules.js +171 -0
  80. package/dist/knowledge/tool-constraints.d.ts +30 -0
  81. package/dist/knowledge/tool-constraints.js +185 -0
  82. package/dist/knowledge/trust-metrics.d.ts +37 -0
  83. package/dist/knowledge/trust-metrics.js +138 -0
  84. package/dist/loop-engineering/aggregate.d.ts +50 -0
  85. package/dist/loop-engineering/aggregate.js +132 -0
  86. package/dist/loop-engineering/diagnose.d.ts +22 -0
  87. package/dist/loop-engineering/diagnose.js +273 -0
  88. package/dist/loop-engineering/improve.d.ts +26 -0
  89. package/dist/loop-engineering/improve.js +229 -0
  90. package/dist/loop-engineering/index.d.ts +4 -0
  91. package/dist/loop-engineering/index.js +4 -0
  92. package/dist/loop-engineering/pipeline.d.ts +17 -0
  93. package/dist/loop-engineering/pipeline.js +56 -0
  94. package/dist/mode-market/index.d.ts +3 -0
  95. package/dist/mode-market/index.js +3 -0
  96. package/dist/mode-market/registry.d.ts +53 -0
  97. package/dist/mode-market/registry.js +124 -0
  98. package/dist/mode-market/review.d.ts +27 -0
  99. package/dist/mode-market/review.js +214 -0
  100. package/dist/mode-market/submission.d.ts +25 -0
  101. package/dist/mode-market/submission.js +85 -0
  102. package/dist/project/graph.d.ts +71 -0
  103. package/dist/project/graph.js +314 -0
  104. package/dist/project/index.d.ts +62 -0
  105. package/dist/project/index.js +167 -0
  106. package/dist/project/namespace.d.ts +62 -0
  107. package/dist/project/namespace.js +181 -0
  108. package/dist/project/query.d.ts +40 -0
  109. package/dist/project/query.js +110 -0
  110. package/dist/safety/confirm-gate.d.ts +15 -0
  111. package/dist/safety/confirm-gate.js +44 -0
  112. package/dist/safety/index.d.ts +3 -0
  113. package/dist/safety/index.js +3 -0
  114. package/dist/safety/preview.d.ts +2 -0
  115. package/dist/safety/preview.js +36 -0
  116. package/dist/schema/call/allocation.d.ts +55 -40
  117. package/dist/schema/call/arbitration.d.ts +201 -186
  118. package/dist/schema/call/base.d.ts +2104 -24
  119. package/dist/schema/call/base.js +168 -22
  120. package/dist/schema/call/bridge-handler.js +36 -18
  121. package/dist/schema/call/bridge.d.ts +777 -120
  122. package/dist/schema/call/bridge.js +13 -2
  123. package/dist/schema/call/contact.d.ts +15 -0
  124. package/dist/schema/call/demand.d.ts +69 -54
  125. package/dist/schema/call/guard.d.ts +125 -80
  126. package/dist/schema/call/handler.d.ts +5 -1
  127. package/dist/schema/call/handler.js +108 -3
  128. package/dist/schema/call/index.d.ts +1 -0
  129. package/dist/schema/call/index.js +1 -0
  130. package/dist/schema/call/machine.d.ts +830 -800
  131. package/dist/schema/call/order.d.ts +27 -12
  132. package/dist/schema/call/payment.d.ts +15 -0
  133. package/dist/schema/call/permission.d.ts +15 -0
  134. package/dist/schema/call/personal.d.ts +15 -0
  135. package/dist/schema/call/progress.d.ts +21 -6
  136. package/dist/schema/call/proof.d.ts +42 -12
  137. package/dist/schema/call/proof.js +3 -3
  138. package/dist/schema/call/repository.d.ts +91 -76
  139. package/dist/schema/call/reward.d.ts +51 -36
  140. package/dist/schema/call/semantic.d.ts +24 -0
  141. package/dist/schema/call/semantic.js +981 -0
  142. package/dist/schema/call/service.d.ts +444 -429
  143. package/dist/schema/call/treasury.d.ts +219 -204
  144. package/dist/schema/common/index.js +3 -3
  145. package/dist/schema/local/index.d.ts +341 -74
  146. package/dist/schema/local/index.js +44 -7
  147. package/dist/schema/messenger/index.d.ts +1034 -92
  148. package/dist/schema/messenger/index.js +18 -0
  149. package/dist/schema/operations.d.ts +2634 -1817
  150. package/dist/schema/operations.js +16 -5
  151. package/dist/schema/query/index.d.ts +2293 -2289
  152. package/dist/schema/query/index.js +34 -28
  153. package/dist/schemas/account_operation.output.json +28 -16
  154. package/dist/schemas/account_operation.schema.json +2 -2
  155. package/dist/schemas/bridge_operation.output.json +520 -0
  156. package/dist/schemas/bridge_operation.schema.json +15 -0
  157. package/dist/schemas/guard2file.schema.json +15 -0
  158. package/dist/schemas/index.json +1 -1
  159. package/dist/schemas/local_info_operation.output.json +26 -0
  160. package/dist/schemas/local_info_operation.schema.json +1 -1
  161. package/dist/schemas/local_mark_operation.output.json +27 -1
  162. package/dist/schemas/local_mark_operation.schema.json +4 -4
  163. package/dist/schemas/machineNode2file.schema.json +15 -0
  164. package/dist/schemas/messenger_operation.output.json +549 -0
  165. package/dist/schemas/messenger_operation.schema.json +21 -0
  166. package/dist/schemas/onchain_events.output.json +3 -0
  167. package/dist/schemas/onchain_operations.output.json +814 -37
  168. package/dist/schemas/onchain_operations.schema.json +117 -40
  169. package/dist/schemas/onchain_operations_allocation.schema.json +26 -9
  170. package/dist/schemas/onchain_operations_arbitration.schema.json +26 -9
  171. package/dist/schemas/onchain_operations_contact.schema.json +26 -9
  172. package/dist/schemas/onchain_operations_demand.schema.json +26 -9
  173. package/dist/schemas/onchain_operations_gen_passport.schema.json +51 -17
  174. package/dist/schemas/onchain_operations_guard.schema.json +26 -9
  175. package/dist/schemas/onchain_operations_machine.schema.json +92 -32
  176. package/dist/schemas/onchain_operations_order.schema.json +26 -9
  177. package/dist/schemas/onchain_operations_payment.schema.json +26 -9
  178. package/dist/schemas/onchain_operations_permission.schema.json +26 -9
  179. package/dist/schemas/onchain_operations_personal.schema.json +26 -9
  180. package/dist/schemas/onchain_operations_progress.schema.json +26 -9
  181. package/dist/schemas/onchain_operations_repository.schema.json +26 -9
  182. package/dist/schemas/onchain_operations_reward.schema.json +26 -9
  183. package/dist/schemas/onchain_operations_service.schema.json +26 -9
  184. package/dist/schemas/onchain_operations_treasury.schema.json +26 -9
  185. package/dist/schemas/onchain_table_data.output.json +224 -69
  186. package/dist/schemas/onchain_table_data.schema.json +2 -2
  187. package/dist/schemas/query_toolkit.schema.json +5 -1
  188. package/dist/telemetry/index.d.ts +19 -0
  189. package/dist/telemetry/index.js +112 -0
  190. package/dist/telemetry/redact.d.ts +2 -0
  191. package/dist/telemetry/redact.js +23 -0
  192. package/dist/telemetry/storage.d.ts +8 -0
  193. package/dist/telemetry/storage.js +80 -0
  194. package/package.json +6 -3
@@ -468,6 +468,21 @@
468
468
  "referrer": {
469
469
  "$ref": "#/definitions/env/properties/account",
470
470
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
471
+ },
472
+ "confirmed": {
473
+ "type": "boolean",
474
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
475
+ },
476
+ "user_intent_phrases": {
477
+ "type": "array",
478
+ "items": {
479
+ "type": "string"
480
+ },
481
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
482
+ },
483
+ "project": {
484
+ "type": "string",
485
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
471
486
  }
472
487
  },
473
488
  "additionalProperties": false,
@@ -479,7 +494,7 @@
479
494
  "type": {
480
495
  "type": "string",
481
496
  "const": "submission",
482
- "description": "Type of call response: submission"
497
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
483
498
  },
484
499
  "guard": {
485
500
  "type": "array",
@@ -488,11 +503,11 @@
488
503
  "properties": {
489
504
  "object": {
490
505
  "type": "string",
491
- "description": "Guard object name or ID."
506
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
492
507
  },
493
508
  "impack": {
494
509
  "type": "boolean",
495
- "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
510
+ "description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
496
511
  }
497
512
  },
498
513
  "required": [
@@ -500,7 +515,8 @@
500
515
  "impack"
501
516
  ],
502
517
  "additionalProperties": false
503
- }
518
+ },
519
+ "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
504
520
  },
505
521
  "submission": {
506
522
  "type": "array",
@@ -509,7 +525,7 @@
509
525
  "properties": {
510
526
  "guard": {
511
527
  "$ref": "#/definitions/submission/properties/guard/items/properties/object",
512
- "description": "Guard object name or ID."
528
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
513
529
  },
514
530
  "submission": {
515
531
  "type": "array",
@@ -961,7 +977,7 @@
961
977
  "additionalProperties": false,
962
978
  "description": "Guard table item"
963
979
  },
964
- "description": "User-submitted data required for Guard verification."
980
+ "description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
965
981
  }
966
982
  },
967
983
  "required": [
@@ -969,8 +985,9 @@
969
985
  "submission"
970
986
  ],
971
987
  "additionalProperties": false,
972
- "description": "Permission guard submission data."
973
- }
988
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
989
+ },
990
+ "description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission."
974
991
  }
975
992
  },
976
993
  "required": [
@@ -979,7 +996,7 @@
979
996
  "submission"
980
997
  ],
981
998
  "additionalProperties": false,
982
- "description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
999
+ "description": "Guard verification required. The operation was blocked because one or more Guards require user-submitted data. Fill the submission array and resubmit. Semantic status is 'pending_input'."
983
1000
  }
984
1001
  }
985
1002
  }
@@ -50,7 +50,7 @@
50
50
  "type": {
51
51
  "type": "string",
52
52
  "const": "submission",
53
- "description": "Type of call response: submission"
53
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
54
54
  },
55
55
  "guard": {
56
56
  "type": "array",
@@ -59,11 +59,11 @@
59
59
  "properties": {
60
60
  "object": {
61
61
  "$ref": "#/definitions/data/properties/guard/anyOf/0",
62
- "description": "Guard object name or ID."
62
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
63
63
  },
64
64
  "impack": {
65
65
  "type": "boolean",
66
- "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
66
+ "description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
67
67
  }
68
68
  },
69
69
  "required": [
@@ -71,7 +71,8 @@
71
71
  "impack"
72
72
  ],
73
73
  "additionalProperties": false
74
- }
74
+ },
75
+ "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
75
76
  },
76
77
  "submission": {
77
78
  "type": "array",
@@ -80,7 +81,7 @@
80
81
  "properties": {
81
82
  "guard": {
82
83
  "$ref": "#/definitions/data/properties/guard/anyOf/0",
83
- "description": "Guard object name or ID."
84
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
84
85
  },
85
86
  "submission": {
86
87
  "type": "array",
@@ -532,7 +533,7 @@
532
533
  "additionalProperties": false,
533
534
  "description": "Guard table item"
534
535
  },
535
- "description": "User-submitted data required for Guard verification."
536
+ "description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
536
537
  }
537
538
  },
538
539
  "required": [
@@ -540,8 +541,9 @@
540
541
  "submission"
541
542
  ],
542
543
  "additionalProperties": false,
543
- "description": "Permission guard submission data."
544
- }
544
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
545
+ },
546
+ "description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission."
545
547
  }
546
548
  },
547
549
  "required": [
@@ -583,6 +585,21 @@
583
585
  "referrer": {
584
586
  "$ref": "#/definitions/data/properties/guard/anyOf/0",
585
587
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
588
+ },
589
+ "confirmed": {
590
+ "type": "boolean",
591
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
592
+ },
593
+ "user_intent_phrases": {
594
+ "type": "array",
595
+ "items": {
596
+ "type": "string"
597
+ },
598
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
599
+ },
600
+ "project": {
601
+ "type": "string",
602
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
586
603
  }
587
604
  },
588
605
  "additionalProperties": false,
@@ -626,6 +643,21 @@
626
643
  "referrer": {
627
644
  "$ref": "#/definitions/env/properties/account",
628
645
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
646
+ },
647
+ "confirmed": {
648
+ "type": "boolean",
649
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
650
+ },
651
+ "user_intent_phrases": {
652
+ "type": "array",
653
+ "items": {
654
+ "type": "string"
655
+ },
656
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
657
+ },
658
+ "project": {
659
+ "type": "string",
660
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
629
661
  }
630
662
  },
631
663
  "additionalProperties": false,
@@ -637,7 +669,7 @@
637
669
  "type": {
638
670
  "type": "string",
639
671
  "const": "submission",
640
- "description": "Type of call response: submission"
672
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
641
673
  },
642
674
  "guard": {
643
675
  "type": "array",
@@ -646,11 +678,11 @@
646
678
  "properties": {
647
679
  "object": {
648
680
  "type": "string",
649
- "description": "Guard object name or ID."
681
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
650
682
  },
651
683
  "impack": {
652
684
  "type": "boolean",
653
- "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
685
+ "description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
654
686
  }
655
687
  },
656
688
  "required": [
@@ -658,7 +690,8 @@
658
690
  "impack"
659
691
  ],
660
692
  "additionalProperties": false
661
- }
693
+ },
694
+ "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
662
695
  },
663
696
  "submission": {
664
697
  "type": "array",
@@ -667,7 +700,7 @@
667
700
  "properties": {
668
701
  "guard": {
669
702
  "$ref": "#/definitions/submission/properties/guard/items/properties/object",
670
- "description": "Guard object name or ID."
703
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
671
704
  },
672
705
  "submission": {
673
706
  "type": "array",
@@ -1119,7 +1152,7 @@
1119
1152
  "additionalProperties": false,
1120
1153
  "description": "Guard table item"
1121
1154
  },
1122
- "description": "User-submitted data required for Guard verification."
1155
+ "description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
1123
1156
  }
1124
1157
  },
1125
1158
  "required": [
@@ -1127,8 +1160,9 @@
1127
1160
  "submission"
1128
1161
  ],
1129
1162
  "additionalProperties": false,
1130
- "description": "Permission guard submission data."
1131
- }
1163
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
1164
+ },
1165
+ "description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission."
1132
1166
  }
1133
1167
  },
1134
1168
  "required": [
@@ -1137,7 +1171,7 @@
1137
1171
  "submission"
1138
1172
  ],
1139
1173
  "additionalProperties": false,
1140
- "description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
1174
+ "description": "Guard verification required. The operation was blocked because one or more Guards require user-submitted data. Fill the submission array and resubmit. Semantic status is 'pending_input'."
1141
1175
  }
1142
1176
  }
1143
1177
  }
@@ -195,6 +195,21 @@
195
195
  "referrer": {
196
196
  "$ref": "#/definitions/env/properties/account",
197
197
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
198
+ },
199
+ "confirmed": {
200
+ "type": "boolean",
201
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
202
+ },
203
+ "user_intent_phrases": {
204
+ "type": "array",
205
+ "items": {
206
+ "type": "string"
207
+ },
208
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
209
+ },
210
+ "project": {
211
+ "type": "string",
212
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
198
213
  }
199
214
  },
200
215
  "additionalProperties": false,
@@ -206,7 +221,7 @@
206
221
  "type": {
207
222
  "type": "string",
208
223
  "const": "submission",
209
- "description": "Type of call response: submission"
224
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
210
225
  },
211
226
  "guard": {
212
227
  "type": "array",
@@ -215,11 +230,11 @@
215
230
  "properties": {
216
231
  "object": {
217
232
  "type": "string",
218
- "description": "Guard object name or ID."
233
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
219
234
  },
220
235
  "impack": {
221
236
  "type": "boolean",
222
- "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
237
+ "description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
223
238
  }
224
239
  },
225
240
  "required": [
@@ -227,7 +242,8 @@
227
242
  "impack"
228
243
  ],
229
244
  "additionalProperties": false
230
- }
245
+ },
246
+ "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
231
247
  },
232
248
  "submission": {
233
249
  "type": "array",
@@ -236,7 +252,7 @@
236
252
  "properties": {
237
253
  "guard": {
238
254
  "$ref": "#/definitions/submission/properties/guard/items/properties/object",
239
- "description": "Guard object name or ID."
255
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
240
256
  },
241
257
  "submission": {
242
258
  "type": "array",
@@ -688,7 +704,7 @@
688
704
  "additionalProperties": false,
689
705
  "description": "Guard table item"
690
706
  },
691
- "description": "User-submitted data required for Guard verification."
707
+ "description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
692
708
  }
693
709
  },
694
710
  "required": [
@@ -696,8 +712,9 @@
696
712
  "submission"
697
713
  ],
698
714
  "additionalProperties": false,
699
- "description": "Permission guard submission data."
700
- }
715
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
716
+ },
717
+ "description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission."
701
718
  }
702
719
  },
703
720
  "required": [
@@ -706,7 +723,7 @@
706
723
  "submission"
707
724
  ],
708
725
  "additionalProperties": false,
709
- "description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
726
+ "description": "Guard verification required. The operation was blocked because one or more Guards require user-submitted data. Fill the submission array and resubmit. Semantic status is 'pending_input'."
710
727
  }
711
728
  }
712
729
  }
@@ -291,9 +291,10 @@
291
291
  "description": "Previous node name"
292
292
  },
293
293
  "threshold": {
294
- "type": "integer",
295
- "minimum": 0,
296
- "maximum": 4294967295,
294
+ "type": [
295
+ "number",
296
+ "string"
297
+ ],
297
298
  "description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
298
299
  },
299
300
  "forwards": {
@@ -306,38 +307,80 @@
306
307
  "description": "Forward name"
307
308
  },
308
309
  "namedOperator": {
309
- "type": "string",
310
+ "anyOf": [
311
+ {
312
+ "type": "string"
313
+ },
314
+ {
315
+ "type": "null"
316
+ },
317
+ {
318
+ "not": {}
319
+ }
320
+ ],
310
321
  "description": "Forward operation permission 1: Namespace (one of the two must be specified); recommended if Progress object operators are different (e.g., different delivery personnel for different orders)."
311
322
  },
312
323
  "permissionIndex": {
313
- "type": "integer",
324
+ "anyOf": [
325
+ {
326
+ "type": "number"
327
+ },
328
+ {
329
+ "type": "string"
330
+ },
331
+ {
332
+ "type": "null"
333
+ },
334
+ {
335
+ "not": {}
336
+ }
337
+ ],
314
338
  "description": "Forward operation permission 2: Permission index (one of the two must be specified); recommended if all Progress object operators are the same (e.g., same reward reviewers for all orders)."
315
339
  },
316
340
  "weight": {
317
- "type": "integer",
318
- "minimum": 0,
319
- "maximum": 65535,
341
+ "type": [
342
+ "number",
343
+ "string"
344
+ ],
320
345
  "description": "Forward weight"
321
346
  },
322
347
  "guard": {
323
- "type": "object",
324
- "properties": {
325
- "guard": {
326
- "type": "string",
327
- "description": "Guard object ID"
328
- },
329
- "retained_submission": {
330
- "type": "array",
331
- "items": {
332
- "type": "number"
348
+ "anyOf": [
349
+ {
350
+ "type": "object",
351
+ "properties": {
352
+ "guard": {
353
+ "type": "string",
354
+ "description": "Guard object ID"
355
+ },
356
+ "retained_submission": {
357
+ "anyOf": [
358
+ {
359
+ "type": "array",
360
+ "items": {
361
+ "type": [
362
+ "number",
363
+ "string"
364
+ ]
365
+ }
366
+ },
367
+ {
368
+ "type": "null"
369
+ }
370
+ ],
371
+ "description": "Data submitted by user during Guard object verification"
372
+ }
333
373
  },
334
- "description": "Data submitted by user during Guard object verification"
374
+ "required": [
375
+ "guard"
376
+ ],
377
+ "additionalProperties": false,
378
+ "description": "Record of Guard object in MachineForwardGuard object"
379
+ },
380
+ {
381
+ "type": "null"
335
382
  }
336
- },
337
- "required": [
338
- "guard"
339
383
  ],
340
- "additionalProperties": false,
341
384
  "description": "Guard object ID, if defined, Guard verification must also pass to complete Forward (e.g., completed promised supply chain sub-order)."
342
385
  }
343
386
  },
@@ -796,6 +839,21 @@
796
839
  "referrer": {
797
840
  "$ref": "#/definitions/env/properties/account",
798
841
  "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
842
+ },
843
+ "confirmed": {
844
+ "type": "boolean",
845
+ "description": "Phase 2 ConfirmGate: set to true to proceed after a 'pending_confirmation' result. The operation is NOT executed until you re-call with confirmed=true after user consent."
846
+ },
847
+ "user_intent_phrases": {
848
+ "type": "array",
849
+ "items": {
850
+ "type": "string"
851
+ },
852
+ "description": "Phase 2 ConfirmGate: explicit user intent phrases collected from conversation context (e.g. 'use default account', 'force publish'). Used to bypass confirmation rules whose bypass_on_explicit_intent matches."
853
+ },
854
+ "project": {
855
+ "type": "string",
856
+ "description": "Phase 2 ProjectService: explicit project prefix to assign this object to (e.g. 'myshop'). When set, the object is tagged with 'project:<prefix>' automatically. Overrides the prefix parsed from the object name."
799
857
  }
800
858
  },
801
859
  "additionalProperties": false,
@@ -807,7 +865,7 @@
807
865
  "type": {
808
866
  "type": "string",
809
867
  "const": "submission",
810
- "description": "Type of call response: submission"
868
+ "description": "Discriminator for this result variant. Constraint: always 'submission'. Example: 'submission'"
811
869
  },
812
870
  "guard": {
813
871
  "type": "array",
@@ -816,11 +874,11 @@
816
874
  "properties": {
817
875
  "object": {
818
876
  "type": "string",
819
- "description": "Guard object name or ID."
877
+ "description": "Guard object name or ID to verify against. Example: 'my-delivery-guard' or '0x123...'"
820
878
  },
821
879
  "impack": {
822
880
  "type": "boolean",
823
- "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
881
+ "description": "Whether this Guard's verification result participates in the final logic. Constraint: if false, the Guard is checked but does not block the operation. Example: true"
824
882
  }
825
883
  },
826
884
  "required": [
@@ -828,7 +886,8 @@
828
886
  "impack"
829
887
  ],
830
888
  "additionalProperties": false
831
- }
889
+ },
890
+ "description": "Array of Guard objects to verify. Relation: each entry corresponds to a Guard bound to the operation."
832
891
  },
833
892
  "submission": {
834
893
  "type": "array",
@@ -837,7 +896,7 @@
837
896
  "properties": {
838
897
  "guard": {
839
898
  "$ref": "#/definitions/submission/properties/guard/items/properties/object",
840
- "description": "Guard object name or ID."
899
+ "description": "Guard object name or ID that requires submission data. Example: 'my-delivery-guard'"
841
900
  },
842
901
  "submission": {
843
902
  "type": "array",
@@ -1289,7 +1348,7 @@
1289
1348
  "additionalProperties": false,
1290
1349
  "description": "Guard table item"
1291
1350
  },
1292
- "description": "User-submitted data required for Guard verification."
1351
+ "description": "User-submitted data matching the Guard's required fields. Relation: structure must match the Guard table's column definitions. Example: [{field:'delivery_proof', value:'Qm...'}]"
1293
1352
  }
1294
1353
  },
1295
1354
  "required": [
@@ -1297,8 +1356,9 @@
1297
1356
  "submission"
1298
1357
  ],
1299
1358
  "additionalProperties": false,
1300
- "description": "Permission guard submission data."
1301
- }
1359
+ "description": "One Guard's submission data: the Guard to verify plus the user-provided data that satisfies its requirements."
1360
+ },
1361
+ "description": "User-submitted data for each Guard. Relation: one entry per Guard in the guard array; fill submission fields and resubmit via call_with_submission."
1302
1362
  }
1303
1363
  },
1304
1364
  "required": [
@@ -1307,7 +1367,7 @@
1307
1367
  "submission"
1308
1368
  ],
1309
1369
  "additionalProperties": false,
1310
- "description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
1370
+ "description": "Guard verification required. The operation was blocked because one or more Guards require user-submitted data. Fill the submission array and resubmit. Semantic status is 'pending_input'."
1311
1371
  }
1312
1372
  }
1313
1373
  }