@wowok/agent-mcp 2.7.7 → 2.7.8

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 (239) hide show
  1. package/dist/customer/index.d.ts +3 -4
  2. package/dist/customer/index.js +1 -1
  3. package/dist/customer/info-puzzle.js +1 -1
  4. package/dist/customer/order-monitor.d.ts +0 -9
  5. package/dist/customer/order-monitor.js +1 -1
  6. package/dist/customer/order-strategy.d.ts +0 -19
  7. package/dist/customer/order-strategy.js +1 -1
  8. package/dist/customer/reminder-system.d.ts +0 -5
  9. package/dist/customer/reminder-system.js +1 -1
  10. package/dist/evaluation/game-strategy.js +1 -1
  11. package/dist/evaluation/injection.d.ts +6 -0
  12. package/dist/evaluation/injection.js +1 -0
  13. package/dist/evaluation/node-game.js +1 -1
  14. package/dist/examples/machine-multisig-threshold.json +1 -0
  15. package/dist/harness/recover.js +1 -1
  16. package/dist/harness/types.d.ts +1 -1
  17. package/dist/harness/verify.js +1 -1
  18. package/dist/intent/enrich.js +1 -1
  19. package/dist/intent/matcher.js +1 -1
  20. package/dist/intent/types.d.ts +1 -1
  21. package/dist/intent/types.js +1 -1
  22. package/dist/knowledge/arbitration-ledger.js +1 -1
  23. package/dist/knowledge/contract-invariants.d.ts +53 -0
  24. package/dist/knowledge/contract-invariants.js +1 -0
  25. package/dist/knowledge/deployment-scanner.js +1 -1
  26. package/dist/knowledge/dynamic-pricing.d.ts +0 -2
  27. package/dist/knowledge/dynamic-pricing.js +1 -1
  28. package/dist/knowledge/event-semantics.d.ts +20 -0
  29. package/dist/knowledge/event-semantics.js +1 -0
  30. package/dist/knowledge/examples-scanner-cli.js +1 -1
  31. package/dist/knowledge/examples-scanner.js +1 -1
  32. package/dist/knowledge/glossary.js +1 -1
  33. package/dist/knowledge/guard-submission-prompt.js +1 -1
  34. package/dist/knowledge/immutability.d.ts +11 -0
  35. package/dist/knowledge/immutability.js +1 -0
  36. package/dist/knowledge/index.d.ts +12 -6
  37. package/dist/knowledge/index.js +1 -1
  38. package/dist/knowledge/industry-registry.js +1 -1
  39. package/dist/knowledge/intent-metrics.d.ts +1 -1
  40. package/dist/knowledge/jsonrpc-enum.d.ts +37 -0
  41. package/dist/knowledge/jsonrpc-enum.js +1 -0
  42. package/dist/knowledge/machine-confirm.js +1 -1
  43. package/dist/knowledge/machine-risk.js +1 -1
  44. package/dist/knowledge/machine-topology.d.ts +11 -0
  45. package/dist/knowledge/machine-topology.js +1 -1
  46. package/dist/knowledge/machine-translation.js +1 -1
  47. package/dist/knowledge/market-metrics.d.ts +11 -0
  48. package/dist/knowledge/market-metrics.js +1 -1
  49. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  50. package/dist/knowledge/mcp-schema-audit.d.ts +1 -0
  51. package/dist/knowledge/mcp-schema-audit.js +1 -1
  52. package/dist/knowledge/messenger-guard-guidance.d.ts +17 -0
  53. package/dist/knowledge/messenger-guard-guidance.js +1 -0
  54. package/dist/knowledge/operation-dictionary.d.ts +18 -0
  55. package/dist/knowledge/operation-dictionary.js +1 -0
  56. package/dist/knowledge/service-ledger.js +1 -1
  57. package/dist/knowledge/service-risk.js +1 -1
  58. package/dist/knowledge/service-translation.js +1 -1
  59. package/dist/knowledge/supply-chain.d.ts +24 -0
  60. package/dist/knowledge/supply-chain.js +1 -0
  61. package/dist/knowledge/template-registry.js +1 -1
  62. package/dist/knowledge/tools-reference.js +1 -1
  63. package/dist/knowledge/trust-metrics.d.ts +27 -2
  64. package/dist/knowledge/trust-metrics.js +1 -1
  65. package/dist/knowledge/workflow-guidance.d.ts +22 -1
  66. package/dist/knowledge/workflow-guidance.js +1 -1
  67. package/dist/monitor/EventStore.d.ts +78 -0
  68. package/dist/monitor/EventStore.js +1 -0
  69. package/dist/participation/radar-core.d.ts +0 -1
  70. package/dist/participation/radar-core.js +1 -1
  71. package/dist/persona/address-format.d.ts +6 -0
  72. package/dist/persona/address-format.js +1 -0
  73. package/dist/persona/analyzer.js +1 -1
  74. package/dist/persona/index.d.ts +3 -0
  75. package/dist/persona/index.js +1 -1
  76. package/dist/persona/types.d.ts +1 -1
  77. package/dist/persona/types.js +1 -1
  78. package/dist/project/business-puzzle.js +1 -1
  79. package/dist/project/edit-planner.js +1 -1
  80. package/dist/project/evaluation.js +1 -1
  81. package/dist/project/graph-builder.js +1 -1
  82. package/dist/project/handlers.d.ts +2 -18
  83. package/dist/project/handlers.js +1 -1
  84. package/dist/project/index.js +1 -1
  85. package/dist/project/machine-nodes.d.ts +23 -0
  86. package/dist/project/machine-nodes.js +1 -1
  87. package/dist/project/machine-panorama.d.ts +41 -0
  88. package/dist/project/machine-panorama.js +1 -0
  89. package/dist/project/object-panorama.d.ts +179 -0
  90. package/dist/project/object-panorama.js +1 -0
  91. package/dist/project/object-type.d.ts +1 -0
  92. package/dist/project/object-type.js +1 -0
  93. package/dist/project/participation-radar.js +1 -1
  94. package/dist/project/semantic-assembler.js +1 -1
  95. package/dist/project/service-panorama.d.ts +180 -0
  96. package/dist/project/service-panorama.js +1 -0
  97. package/dist/project/stage-gate.d.ts +0 -1
  98. package/dist/project/stage-gate.js +1 -1
  99. package/dist/project/task-tracker.d.ts +4 -0
  100. package/dist/project/task-tracker.js +1 -1
  101. package/dist/role/derivation.d.ts +19 -2
  102. package/dist/role/derivation.js +1 -1
  103. package/dist/role/index.d.ts +2 -2
  104. package/dist/role/index.js +1 -1
  105. package/dist/role/model.js +1 -1
  106. package/dist/role/resolution.d.ts +16 -0
  107. package/dist/role/resolution.js +1 -1
  108. package/dist/role/types.d.ts +1 -1
  109. package/dist/role/types.js +1 -1
  110. package/dist/safety/confirm-gate.js +1 -1
  111. package/dist/schema/call/allocation.d.ts +1 -0
  112. package/dist/schema/call/arbitration.d.ts +4 -3
  113. package/dist/schema/call/arbitration.js +1 -1
  114. package/dist/schema/call/base.d.ts +16 -0
  115. package/dist/schema/call/base.js +1 -1
  116. package/dist/schema/call/bridge.d.ts +7 -0
  117. package/dist/schema/call/contact.d.ts +1 -0
  118. package/dist/schema/call/demand.d.ts +1 -0
  119. package/dist/schema/call/guard.d.ts +3 -0
  120. package/dist/schema/call/handler.js +1 -1
  121. package/dist/schema/call/machine.d.ts +2 -0
  122. package/dist/schema/call/machine.js +1 -1
  123. package/dist/schema/call/order.d.ts +1 -0
  124. package/dist/schema/call/payment.d.ts +1 -0
  125. package/dist/schema/call/permission.d.ts +1 -0
  126. package/dist/schema/call/personal.d.ts +38 -0
  127. package/dist/schema/call/personal.js +1 -1
  128. package/dist/schema/call/progress.d.ts +1 -0
  129. package/dist/schema/call/proof.d.ts +2 -0
  130. package/dist/schema/call/repository.d.ts +5 -4
  131. package/dist/schema/call/reward.d.ts +1 -12
  132. package/dist/schema/call/reward.js +1 -1
  133. package/dist/schema/call/semantic.d.ts +3 -2
  134. package/dist/schema/call/semantic.js +1 -1
  135. package/dist/schema/call/service.d.ts +1 -0
  136. package/dist/schema/call/service.js +1 -1
  137. package/dist/schema/call/treasury.d.ts +1 -0
  138. package/dist/schema/common/index.js +1 -1
  139. package/dist/schema/evaluation/index.d.ts +146 -0
  140. package/dist/schema/evaluation/index.js +1 -1
  141. package/dist/schema/index.d.ts +1 -0
  142. package/dist/schema/index.js +1 -1
  143. package/dist/schema/intent-radar/index.d.ts +30 -3
  144. package/dist/schema/intent-radar/index.js +1 -1
  145. package/dist/schema/local/index.d.ts +9 -0
  146. package/dist/schema/local/index.js +1 -1
  147. package/dist/schema/messenger/index.d.ts +54 -0
  148. package/dist/schema/messenger/index.js +1 -1
  149. package/dist/schema/operations.d.ts +864 -8
  150. package/dist/schema/operations.js +1 -1
  151. package/dist/schema/permission/index.d.ts +17 -0
  152. package/dist/schema/permission/index.js +1 -1
  153. package/dist/schema/project/index.d.ts +6 -0
  154. package/dist/schema/project/index.js +1 -1
  155. package/dist/schema/query/index.d.ts +658 -56
  156. package/dist/schema/query/index.js +1 -1
  157. package/dist/schema/schema-version.js +1 -1
  158. package/dist/schema/trust/index.d.ts +17 -0
  159. package/dist/schema/trust/index.js +1 -1
  160. package/dist/schema/watch/index.d.ts +204 -0
  161. package/dist/schema/watch/index.js +1 -0
  162. package/dist/schema/workflow/index.d.ts +301 -0
  163. package/dist/schema/workflow/index.js +1 -1
  164. package/dist/schema-query-impl/index.js +1 -1
  165. package/dist/schemas/account_operation.output.json +5 -2
  166. package/dist/schemas/bridge_operation.output.json +5 -2
  167. package/dist/schemas/bridge_operation.schema.json +25 -9
  168. package/dist/schemas/evaluation_operation.output.json +276 -1
  169. package/dist/schemas/evaluation_operation.schema.json +307 -0
  170. package/dist/schemas/guard2file.schema.json +6 -2
  171. package/dist/schemas/index.json +13 -1
  172. package/dist/schemas/intent_radar.output.json +20 -2
  173. package/dist/schemas/intent_radar.schema.json +10 -1
  174. package/dist/schemas/local_info_operation.output.json +5 -2
  175. package/dist/schemas/local_mark_operation.output.json +5 -2
  176. package/dist/schemas/machineNode2file.schema.json +6 -2
  177. package/dist/schemas/messenger_operation.output.json +105 -2
  178. package/dist/schemas/messenger_operation.schema.json +98 -0
  179. package/dist/schemas/monitor_events.output.json +1360 -0
  180. package/dist/schemas/monitor_events.schema.json +62 -0
  181. package/dist/schemas/onchain_events.output.json +237 -14
  182. package/dist/schemas/onchain_events.schema.json +20 -0
  183. package/dist/schemas/onchain_operations.output.json +10 -5
  184. package/dist/schemas/onchain_operations.schema.json +511 -419
  185. package/dist/schemas/onchain_operations_allocation.schema.json +11 -7
  186. package/dist/schemas/onchain_operations_arbitration.schema.json +14 -9
  187. package/dist/schemas/onchain_operations_contact.schema.json +9 -5
  188. package/dist/schemas/onchain_operations_demand.schema.json +9 -5
  189. package/dist/schemas/onchain_operations_gen_passport.schema.json +6 -2
  190. package/dist/schemas/onchain_operations_gen_proof.schema.json +6 -2
  191. package/dist/schemas/onchain_operations_guard.schema.json +6 -2
  192. package/dist/schemas/onchain_operations_machine.schema.json +14 -10
  193. package/dist/schemas/onchain_operations_order.schema.json +9 -5
  194. package/dist/schemas/onchain_operations_payment.schema.json +7 -3
  195. package/dist/schemas/onchain_operations_permission.schema.json +9 -5
  196. package/dist/schemas/onchain_operations_personal.schema.json +44 -2
  197. package/dist/schemas/onchain_operations_progress.schema.json +9 -5
  198. package/dist/schemas/onchain_operations_proof.schema.json +6 -2
  199. package/dist/schemas/onchain_operations_repository.schema.json +290 -305
  200. package/dist/schemas/onchain_operations_reward.schema.json +14 -10
  201. package/dist/schemas/onchain_operations_service.schema.json +17 -13
  202. package/dist/schemas/onchain_operations_treasury.schema.json +14 -10
  203. package/dist/schemas/onchain_table_data.output.json +3750 -208
  204. package/dist/schemas/onchain_table_data.schema.json +311 -0
  205. package/dist/schemas/permission_operation.output.json +32 -0
  206. package/dist/schemas/project_operation.schema.json +14 -8
  207. package/dist/schemas/query_toolkit.output.json +405 -320
  208. package/dist/schemas/query_toolkit.schema.json +139 -1
  209. package/dist/schemas/trust_score.output.json +38 -0
  210. package/dist/schemas/trust_score.schema.json +32 -0
  211. package/dist/schemas/watch_operation.output.json +827 -0
  212. package/dist/schemas/watch_operation.schema.json +145 -0
  213. package/dist/schemas/workflow_operation.output.json +263 -5
  214. package/dist/schemas/workflow_operation.schema.json +597 -2
  215. package/dist/tools/handlers/config.js +1 -1
  216. package/dist/tools/handlers/evaluation.js +1 -1
  217. package/dist/tools/handlers/intent-radar.js +1 -1
  218. package/dist/tools/handlers/messenger.js +1 -1
  219. package/dist/tools/handlers/monitor.d.ts +2 -0
  220. package/dist/tools/handlers/monitor.js +1 -0
  221. package/dist/tools/handlers/onchain.js +1 -1
  222. package/dist/tools/handlers/permission.js +1 -1
  223. package/dist/tools/handlers/project.js +1 -1
  224. package/dist/tools/handlers/query.js +1 -1
  225. package/dist/tools/handlers/trust.d.ts +14 -0
  226. package/dist/tools/handlers/trust.js +1 -1
  227. package/dist/tools/handlers/watch.d.ts +2 -0
  228. package/dist/tools/handlers/watch.js +1 -0
  229. package/dist/tools/handlers/workflow.js +1 -1
  230. package/dist/tools/index.d.ts +2 -0
  231. package/dist/tools/index.js +1 -1
  232. package/dist/tools/shared.js +1 -1
  233. package/package.json +2 -2
  234. package/dist/customer/post-purchase.d.ts +0 -44
  235. package/dist/customer/post-purchase.js +0 -1
  236. package/dist/project/migration.d.ts +0 -22
  237. package/dist/project/migration.js +0 -1
  238. package/dist/project/rollback-policy.d.ts +0 -45
  239. package/dist/project/rollback-policy.js +0 -1
@@ -369,11 +369,13 @@
369
369
  "lifecycle",
370
370
  "state_change",
371
371
  "fund_flow",
372
+ "market_opportunity",
373
+ "reputation",
372
374
  "permission",
373
375
  "guard",
374
376
  "other"
375
377
  ],
376
- "description": "Business category. Constraint: enum of 6 values. Example: 'lifecycle'"
378
+ "description": "Business category. Constraint: enum of 8 values. 'market_opportunity' = supply/demand discovery signal (ServiceEvent/DemandChangedEvent/DemandPresentEvent, K3 13 §6.7); 'reputation' = trust-affecting signal (DemandFeedbackEvent). Example: 'fund_flow'"
377
379
  },
378
380
  "related_object": {
379
381
  "description": "Object ID the event relates to, if extractable. Example: '0x123...'",
@@ -654,7 +656,7 @@
654
656
  ]
655
657
  },
656
658
  "role_advice": {
657
- "description": "Phase 4 P4-6.C: Role-targeted advice strings (merchant/customer/prospect/supplier/collaborator/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']",
659
+ "description": "Phase 4 P4-6.C: Role-targeted advice strings (merchant/customer/demander/prospect/supplier/collaborator/arbitrator). Example: ['Strengthen loyalty flywheel','Optimize first-order conversion']",
658
660
  "type": "array",
659
661
  "items": {
660
662
  "type": "string"
@@ -666,6 +668,7 @@
666
668
  "enum": [
667
669
  "merchant",
668
670
  "customer",
671
+ "demander",
669
672
  "prospect",
670
673
  "supplier",
671
674
  "collaborator",
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://wowok.net/schemas/bridge_operation.json",
4
4
  "title": "Bridge - Cross-Chain Operations",
5
- "description": "Simplified cross-chain bridge between WOW and EVM (Ethereum mainnet). Operations: cross_chain_wow_to_evm, cross_chain_evm_to_wow, withdraw, query_active_evm_account, query_supported_evm_chains, query_supported_tokens, query_transfer_list, query_transfer_status, manage_evm_rpc. Global single activeEvmAccount auto-generated on first use. Use schema_query (name='bridge_operation') for exact field structures.",
5
+ "description": "Simplified cross-chain bridge between WOW and EVM (Ethereum mainnet). WOW→EVM is TWO steps: step1 cross_chain_wow_to_evm (deposit/lock, returns transferId) → poll query_transfer_status until latestState.step='signatures_ready' (~1-5 min) → step2 claim_wow_to_evm (claim on EVM, needs EVM gas). Assets arrive ONLY after step2. EVM→WOW is ONE step (auto-claim on WOW, ~10-20 min). Operations: cross_chain_wow_to_evm, claim_wow_to_evm, cross_chain_evm_to_wow, resume_transfer, withdraw, query_active_evm_account, query_supported_evm_chains, query_supported_tokens, query_transfer_list, query_transfer_status, manage_evm_rpc. Global single activeEvmAccount auto-generated on first use. Use schema_query (name='bridge_operation') for exact field structures.",
6
6
  "oneOf": [
7
7
  {
8
8
  "type": "object",
@@ -81,9 +81,13 @@
81
81
  "description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
82
82
  },
83
83
  "referrer": {
84
- "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded.",
84
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded (also applied when the SDK auto-registers the sender in the global Entity table).",
85
85
  "type": "string"
86
86
  },
87
+ "no_auto_register": {
88
+ "description": "Opt-out of SDK-level Entity auto-registration. By default, a business transaction whose sender has no entry in the global Entity table automatically appends entity_register: the sender gets registered and receives an owned Resource object (their on-chain mark book) in the wallet. Set true ONLY when the user explicitly cancelled their entity registration (entity_cancel) or demands that the transaction not touch the Entity table.",
89
+ "type": "boolean"
90
+ },
87
91
  "confirmed": {
88
92
  "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.",
89
93
  "type": "boolean"
@@ -118,7 +122,7 @@
118
122
  "schema_strict_mode"
119
123
  ],
120
124
  "additionalProperties": false,
121
- "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
125
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used. NOTE: by default the SDK auto-registers the sender in the global Entity table when absent (first business transaction; the account receives an owned Resource object). Set no_auto_register=true only on explicit user request."
122
126
  }
123
127
  },
124
128
  "required": [
@@ -204,9 +208,13 @@
204
208
  "description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
205
209
  },
206
210
  "referrer": {
207
- "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded.",
211
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded (also applied when the SDK auto-registers the sender in the global Entity table).",
208
212
  "type": "string"
209
213
  },
214
+ "no_auto_register": {
215
+ "description": "Opt-out of SDK-level Entity auto-registration. By default, a business transaction whose sender has no entry in the global Entity table automatically appends entity_register: the sender gets registered and receives an owned Resource object (their on-chain mark book) in the wallet. Set true ONLY when the user explicitly cancelled their entity registration (entity_cancel) or demands that the transaction not touch the Entity table.",
216
+ "type": "boolean"
217
+ },
210
218
  "confirmed": {
211
219
  "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.",
212
220
  "type": "boolean"
@@ -241,7 +249,7 @@
241
249
  "schema_strict_mode"
242
250
  ],
243
251
  "additionalProperties": false,
244
- "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
252
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used. NOTE: by default the SDK auto-registers the sender in the global Entity table when absent (first business transaction; the account receives an owned Resource object). Set no_auto_register=true only on explicit user request."
245
253
  }
246
254
  },
247
255
  "required": [
@@ -301,9 +309,13 @@
301
309
  "description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
302
310
  },
303
311
  "referrer": {
304
- "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded.",
312
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded (also applied when the SDK auto-registers the sender in the global Entity table).",
305
313
  "type": "string"
306
314
  },
315
+ "no_auto_register": {
316
+ "description": "Opt-out of SDK-level Entity auto-registration. By default, a business transaction whose sender has no entry in the global Entity table automatically appends entity_register: the sender gets registered and receives an owned Resource object (their on-chain mark book) in the wallet. Set true ONLY when the user explicitly cancelled their entity registration (entity_cancel) or demands that the transaction not touch the Entity table.",
317
+ "type": "boolean"
318
+ },
307
319
  "confirmed": {
308
320
  "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.",
309
321
  "type": "boolean"
@@ -338,7 +350,7 @@
338
350
  "schema_strict_mode"
339
351
  ],
340
352
  "additionalProperties": false,
341
- "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
353
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used. NOTE: by default the SDK auto-registers the sender in the global Entity table when absent (first business transaction; the account receives an owned Resource object). Set no_auto_register=true only on explicit user request."
342
354
  }
343
355
  },
344
356
  "required": [
@@ -398,9 +410,13 @@
398
410
  "description": "Network entrypoint: Specifies which network the operation occurs on. FIX-010 cross-network note: LocalMark names are scoped per network (testnet marks are invisible on mainnet and vice versa). When migrating from testnet to mainnet, recreate all objects on mainnet and re-register LocalMark names with the SAME names to keep name-based references working across networks. Use project_operation action='clone_project_to_network' to clone the project blueprint to the target network, then re-run onchain_operations with env.network=target_network to deploy."
399
411
  },
400
412
  "referrer": {
401
- "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded.",
413
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded (also applied when the SDK auto-registers the sender in the global Entity table).",
402
414
  "type": "string"
403
415
  },
416
+ "no_auto_register": {
417
+ "description": "Opt-out of SDK-level Entity auto-registration. By default, a business transaction whose sender has no entry in the global Entity table automatically appends entity_register: the sender gets registered and receives an owned Resource object (their on-chain mark book) in the wallet. Set true ONLY when the user explicitly cancelled their entity registration (entity_cancel) or demands that the transaction not touch the Entity table.",
418
+ "type": "boolean"
419
+ },
404
420
  "confirmed": {
405
421
  "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.",
406
422
  "type": "boolean"
@@ -435,7 +451,7 @@
435
451
  "schema_strict_mode"
436
452
  ],
437
453
  "additionalProperties": false,
438
- "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
454
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used. NOTE: by default the SDK auto-registers the sender in the global Entity table when absent (first business transaction; the account receives an owned Resource object). Set no_auto_register=true only on explicit user request."
439
455
  }
440
456
  },
441
457
  "required": [
@@ -1476,6 +1476,223 @@
1476
1476
  ],
1477
1477
  "additionalProperties": false
1478
1478
  },
1479
+ {
1480
+ "type": "object",
1481
+ "properties": {
1482
+ "action": {
1483
+ "type": "string",
1484
+ "const": "demand_present"
1485
+ },
1486
+ "matches": {
1487
+ "type": "array",
1488
+ "items": {
1489
+ "type": "object",
1490
+ "properties": {
1491
+ "demand": {
1492
+ "type": "object",
1493
+ "properties": {
1494
+ "object": {
1495
+ "type": "string",
1496
+ "description": "Demand object address."
1497
+ },
1498
+ "description": {
1499
+ "type": "string"
1500
+ },
1501
+ "location": {
1502
+ "type": "string"
1503
+ },
1504
+ "rewards": {
1505
+ "type": "array",
1506
+ "items": {
1507
+ "type": "string"
1508
+ }
1509
+ },
1510
+ "um": {
1511
+ "anyOf": [
1512
+ {
1513
+ "type": "string"
1514
+ },
1515
+ {
1516
+ "type": "null"
1517
+ }
1518
+ ]
1519
+ },
1520
+ "owner": {
1521
+ "type": "string"
1522
+ }
1523
+ },
1524
+ "required": [
1525
+ "object",
1526
+ "description",
1527
+ "location"
1528
+ ],
1529
+ "additionalProperties": false
1530
+ },
1531
+ "result": {
1532
+ "type": "object",
1533
+ "properties": {
1534
+ "evaluation_id": {
1535
+ "type": "string"
1536
+ },
1537
+ "total": {
1538
+ "type": "integer",
1539
+ "minimum": 0,
1540
+ "maximum": 100
1541
+ },
1542
+ "level": {
1543
+ "type": "string",
1544
+ "enum": [
1545
+ "low",
1546
+ "medium_low",
1547
+ "medium_high",
1548
+ "high"
1549
+ ]
1550
+ },
1551
+ "breakdown": {
1552
+ "type": "array",
1553
+ "items": {
1554
+ "type": "object",
1555
+ "properties": {
1556
+ "rule_id": {
1557
+ "type": "string"
1558
+ },
1559
+ "dimension": {
1560
+ "type": "string"
1561
+ },
1562
+ "score": {
1563
+ "type": "number"
1564
+ },
1565
+ "weight": {
1566
+ "type": "number"
1567
+ },
1568
+ "reason": {
1569
+ "type": "string"
1570
+ },
1571
+ "matched": {
1572
+ "type": "array",
1573
+ "items": {
1574
+ "type": "string"
1575
+ }
1576
+ },
1577
+ "mismatched": {
1578
+ "type": "array",
1579
+ "items": {
1580
+ "type": "string"
1581
+ }
1582
+ },
1583
+ "red_flag": {
1584
+ "type": "boolean"
1585
+ }
1586
+ },
1587
+ "required": [
1588
+ "rule_id",
1589
+ "dimension",
1590
+ "score",
1591
+ "weight"
1592
+ ],
1593
+ "additionalProperties": false
1594
+ }
1595
+ },
1596
+ "red_flags": {
1597
+ "type": "array",
1598
+ "items": {
1599
+ "type": "string"
1600
+ }
1601
+ },
1602
+ "blocked": {
1603
+ "type": "boolean"
1604
+ },
1605
+ "trace": {
1606
+ "type": "array",
1607
+ "items": {
1608
+ "type": "object",
1609
+ "properties": {
1610
+ "kind": {
1611
+ "type": "string",
1612
+ "enum": [
1613
+ "data_source",
1614
+ "rule",
1615
+ "override"
1616
+ ]
1617
+ },
1618
+ "id": {
1619
+ "type": "string"
1620
+ },
1621
+ "detail": {
1622
+ "type": "string"
1623
+ }
1624
+ },
1625
+ "required": [
1626
+ "kind",
1627
+ "id",
1628
+ "detail"
1629
+ ],
1630
+ "additionalProperties": false
1631
+ }
1632
+ },
1633
+ "summary": {
1634
+ "type": "string"
1635
+ }
1636
+ },
1637
+ "required": [
1638
+ "evaluation_id",
1639
+ "total",
1640
+ "level",
1641
+ "breakdown",
1642
+ "red_flags",
1643
+ "blocked",
1644
+ "trace",
1645
+ "summary"
1646
+ ],
1647
+ "additionalProperties": false
1648
+ },
1649
+ "present": {
1650
+ "type": "object",
1651
+ "properties": {
1652
+ "operation": {
1653
+ "type": "string",
1654
+ "description": "Move entry to present: demand.present_service (no guard) or demand.present_service_with_passport (guarded)."
1655
+ },
1656
+ "guard_required": {
1657
+ "type": "boolean",
1658
+ "description": "True = the demand has presentation guards; a verified passport is required."
1659
+ }
1660
+ },
1661
+ "required": [
1662
+ "operation",
1663
+ "guard_required"
1664
+ ],
1665
+ "additionalProperties": false
1666
+ }
1667
+ },
1668
+ "required": [
1669
+ "demand",
1670
+ "result",
1671
+ "present"
1672
+ ],
1673
+ "additionalProperties": false
1674
+ },
1675
+ "description": "Demands matched to the service (score desc), each with its present path."
1676
+ },
1677
+ "total_enumerated": {
1678
+ "type": "integer",
1679
+ "minimum": 0,
1680
+ "maximum": 9007199254740991,
1681
+ "description": "Shared Demands enumerated on-chain before filtering."
1682
+ },
1683
+ "has_more": {
1684
+ "type": "boolean",
1685
+ "description": "True = enumeration truncated at max_objects (partial universe)."
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "action",
1690
+ "matches",
1691
+ "total_enumerated",
1692
+ "has_more"
1693
+ ],
1694
+ "additionalProperties": false
1695
+ },
1479
1696
  {
1480
1697
  "type": "object",
1481
1698
  "properties": {
@@ -1729,6 +1946,63 @@
1729
1946
  "computed_at": {
1730
1947
  "type": "number",
1731
1948
  "description": "Unix ms when computed."
1949
+ },
1950
+ "order_flow": {
1951
+ "type": "object",
1952
+ "properties": {
1953
+ "order_count": {
1954
+ "type": "integer",
1955
+ "minimum": 0,
1956
+ "maximum": 9007199254740991,
1957
+ "description": "Recent order count (finite window)."
1958
+ },
1959
+ "gmv": {
1960
+ "type": "string",
1961
+ "description": "Recent GMV — sum of order amounts in smallest-unit (bigint as string)."
1962
+ },
1963
+ "top_services": {
1964
+ "type": "array",
1965
+ "items": {
1966
+ "type": "object",
1967
+ "properties": {
1968
+ "service": {
1969
+ "type": "string",
1970
+ "description": "Service address."
1971
+ },
1972
+ "orders": {
1973
+ "type": "integer",
1974
+ "minimum": 0,
1975
+ "maximum": 9007199254740991,
1976
+ "description": "Order count for this service in the window."
1977
+ }
1978
+ },
1979
+ "required": [
1980
+ "service",
1981
+ "orders"
1982
+ ],
1983
+ "additionalProperties": false
1984
+ },
1985
+ "description": "Per-service order count, top-N by volume."
1986
+ },
1987
+ "window": {
1988
+ "type": "string",
1989
+ "const": "recent",
1990
+ "description": "Honest window label: events are paged, not full-history."
1991
+ },
1992
+ "computed_at": {
1993
+ "type": "number",
1994
+ "description": "Unix ms when computed."
1995
+ }
1996
+ },
1997
+ "required": [
1998
+ "order_count",
1999
+ "gmv",
2000
+ "top_services",
2001
+ "window",
2002
+ "computed_at"
2003
+ ],
2004
+ "additionalProperties": false,
2005
+ "description": "Recent order-flow scale metrics (finite window; full history requires indexer)."
1732
2006
  }
1733
2007
  },
1734
2008
  "required": [
@@ -1740,7 +2014,8 @@
1740
2014
  "total_arbs",
1741
2015
  "open_arbs",
1742
2016
  "supply_demand_ratio",
1743
- "computed_at"
2017
+ "computed_at",
2018
+ "order_flow"
1744
2019
  ],
1745
2020
  "additionalProperties": false
1746
2021
  },