@wowok/agent-mcp 2.7.2 → 2.7.4

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 (383) hide show
  1. package/dist/config/runtime.js +1 -1
  2. package/dist/customer/account-events.d.ts +32 -0
  3. package/dist/customer/account-events.js +1 -0
  4. package/dist/customer/customer-advice.d.ts +1 -0
  5. package/dist/customer/customer-advice.js +1 -1
  6. package/dist/customer/info-puzzle.js +1 -1
  7. package/dist/customer/order-strategy.d.ts +1 -1
  8. package/dist/customer/reminder-system.d.ts +2 -0
  9. package/dist/customer/reminder-system.js +1 -1
  10. package/dist/customer/risk-assessment.d.ts +1 -0
  11. package/dist/customer/risk-assessment.js +1 -1
  12. package/dist/customer/types.d.ts +2 -0
  13. package/dist/evaluation/builtins/arbitration-score.d.ts +41 -0
  14. package/dist/evaluation/builtins/arbitration-score.js +1 -0
  15. package/dist/evaluation/builtins/index.d.ts +1 -0
  16. package/dist/evaluation/builtins/index.js +1 -1
  17. package/dist/evaluation/category-match-rules.d.ts +30 -0
  18. package/dist/evaluation/category-match-rules.js +1 -0
  19. package/dist/evaluation/engine.js +1 -1
  20. package/dist/evaluation/extract.js +1 -1
  21. package/dist/evaluation/index.d.ts +1 -0
  22. package/dist/evaluation/index.js +1 -1
  23. package/dist/evaluation/location-match.d.ts +42 -0
  24. package/dist/evaluation/location-match.js +1 -0
  25. package/dist/evaluation/path-reasoning.d.ts +35 -0
  26. package/dist/evaluation/path-reasoning.js +1 -0
  27. package/dist/evaluation/region.d.ts +6 -0
  28. package/dist/evaluation/region.js +1 -1
  29. package/dist/evaluation/types.d.ts +17 -0
  30. package/dist/experience/realtime-feedback.js +1 -1
  31. package/dist/experience/user-profile.d.ts +1 -1
  32. package/dist/extensions/index.d.ts +6 -0
  33. package/dist/extensions/index.js +1 -1
  34. package/dist/extensions/industry-layers.d.ts +75 -0
  35. package/dist/extensions/industry-layers.js +1 -0
  36. package/dist/extensions/industry-pack.d.ts +105 -0
  37. package/dist/extensions/industry-pack.js +1 -0
  38. package/dist/extensions/metric-registry.js +1 -1
  39. package/dist/extensions/mode-evaluator.d.ts +1 -1
  40. package/dist/extensions/registry.d.ts +1 -0
  41. package/dist/extensions/registry.js +1 -1
  42. package/dist/graph/base.d.ts +8 -0
  43. package/dist/graph/base.js +1 -0
  44. package/dist/harness/index.d.ts +1 -0
  45. package/dist/harness/index.js +1 -1
  46. package/dist/harness/plan.d.ts +2 -0
  47. package/dist/harness/plan.js +1 -1
  48. package/dist/harness/recover.d.ts +1 -1
  49. package/dist/harness/types.d.ts +2 -3
  50. package/dist/index.js +1 -1
  51. package/dist/knowledge/allocation-confirm.js +1 -1
  52. package/dist/knowledge/anti-cheat.d.ts +37 -0
  53. package/dist/knowledge/anti-cheat.js +1 -0
  54. package/dist/knowledge/arb-confirm.d.ts +28 -0
  55. package/dist/knowledge/arb-confirm.js +1 -0
  56. package/dist/knowledge/arb-translation.d.ts +48 -0
  57. package/dist/knowledge/arb-translation.js +1 -0
  58. package/dist/knowledge/arbitration-context.js +1 -1
  59. package/dist/knowledge/arbitration-ledger.js +1 -1
  60. package/dist/knowledge/bridge-confirm.d.ts +26 -0
  61. package/dist/knowledge/bridge-confirm.js +1 -0
  62. package/dist/knowledge/bridge-translation.d.ts +37 -0
  63. package/dist/knowledge/bridge-translation.js +1 -0
  64. package/dist/knowledge/contact-confirm.d.ts +27 -0
  65. package/dist/knowledge/contact-confirm.js +1 -0
  66. package/dist/knowledge/contact-translation.d.ts +39 -0
  67. package/dist/knowledge/contact-translation.js +1 -0
  68. package/dist/knowledge/demand-confirm.js +1 -1
  69. package/dist/knowledge/demand-context.d.ts +17 -0
  70. package/dist/knowledge/demand-context.js +1 -0
  71. package/dist/knowledge/demand-ledger.d.ts +26 -0
  72. package/dist/knowledge/demand-ledger.js +1 -0
  73. package/dist/knowledge/demand-puzzle.d.ts +29 -0
  74. package/dist/knowledge/demand-puzzle.js +1 -0
  75. package/dist/knowledge/demand-risk.js +1 -1
  76. package/dist/knowledge/demand-templates.d.ts +12 -0
  77. package/dist/knowledge/demand-templates.js +1 -0
  78. package/dist/knowledge/demand-translation.js +1 -1
  79. package/dist/knowledge/deployment-scanner.js +1 -1
  80. package/dist/knowledge/evidence-review.d.ts +12 -0
  81. package/dist/knowledge/evidence-review.js +1 -0
  82. package/dist/knowledge/examples-scanner-cli.js +1 -1
  83. package/dist/knowledge/examples-scanner.js +1 -1
  84. package/dist/knowledge/flywheel-loop.d.ts +0 -1
  85. package/dist/knowledge/flywheel-loop.js +1 -1
  86. package/dist/knowledge/guard-design-patterns.js +1 -1
  87. package/dist/knowledge/guard-migration.d.ts +1 -1
  88. package/dist/knowledge/index.d.ts +71 -3
  89. package/dist/knowledge/index.js +1 -1
  90. package/dist/knowledge/industry-registry.js +1 -1
  91. package/dist/knowledge/machine-render.js +1 -1
  92. package/dist/knowledge/market-metrics.d.ts +12 -0
  93. package/dist/knowledge/market-metrics.js +1 -0
  94. package/dist/knowledge/market-operations.d.ts +46 -0
  95. package/dist/knowledge/market-operations.js +1 -0
  96. package/dist/knowledge/mcp-schema-audit-cli.js +1 -1
  97. package/dist/knowledge/mcp-schema-audit.d.ts +22 -22
  98. package/dist/knowledge/mcp-schema-audit.js +1 -1
  99. package/dist/knowledge/onchain-constants.d.ts +2 -2
  100. package/dist/knowledge/onchain-constants.js +1 -1
  101. package/dist/knowledge/payment-confirm.d.ts +26 -0
  102. package/dist/knowledge/payment-confirm.js +1 -0
  103. package/dist/knowledge/payment-risk.js +1 -1
  104. package/dist/knowledge/payment-translation.d.ts +37 -0
  105. package/dist/knowledge/payment-translation.js +1 -0
  106. package/dist/knowledge/permission-context.d.ts +11 -0
  107. package/dist/knowledge/permission-context.js +1 -1
  108. package/dist/knowledge/permission-ledger.d.ts +11 -0
  109. package/dist/knowledge/permission-ledger.js +1 -1
  110. package/dist/knowledge/personal-confirm.d.ts +29 -0
  111. package/dist/knowledge/personal-confirm.js +1 -0
  112. package/dist/knowledge/personal-risk.js +1 -1
  113. package/dist/knowledge/personal-translation.d.ts +37 -0
  114. package/dist/knowledge/personal-translation.js +1 -0
  115. package/dist/knowledge/process-model.d.ts +1 -11
  116. package/dist/knowledge/process-model.js +1 -1
  117. package/dist/knowledge/progress-ledger.js +1 -1
  118. package/dist/knowledge/progress-risk.js +1 -1
  119. package/dist/knowledge/progress-templates.js +1 -1
  120. package/dist/knowledge/progress-translation.js +1 -1
  121. package/dist/knowledge/proof-context.d.ts +17 -0
  122. package/dist/knowledge/proof-context.js +1 -0
  123. package/dist/knowledge/proof-ledger.d.ts +34 -0
  124. package/dist/knowledge/proof-ledger.js +1 -0
  125. package/dist/knowledge/proof-puzzle.d.ts +35 -0
  126. package/dist/knowledge/proof-puzzle.js +1 -0
  127. package/dist/knowledge/proof-templates.d.ts +22 -0
  128. package/dist/knowledge/proof-templates.js +1 -0
  129. package/dist/knowledge/registrar-confirm.d.ts +26 -0
  130. package/dist/knowledge/registrar-confirm.js +1 -0
  131. package/dist/knowledge/registrar-risk.js +1 -1
  132. package/dist/knowledge/registrar-translation.d.ts +37 -0
  133. package/dist/knowledge/registrar-translation.js +1 -0
  134. package/dist/knowledge/repository-context.d.ts +12 -0
  135. package/dist/knowledge/repository-context.js +1 -0
  136. package/dist/knowledge/repository-ledger.d.ts +25 -0
  137. package/dist/knowledge/repository-ledger.js +1 -0
  138. package/dist/knowledge/repository-puzzle.d.ts +30 -0
  139. package/dist/knowledge/repository-puzzle.js +1 -0
  140. package/dist/knowledge/repository-templates.d.ts +14 -0
  141. package/dist/knowledge/repository-templates.js +1 -0
  142. package/dist/knowledge/resource-confirm.d.ts +25 -0
  143. package/dist/knowledge/resource-confirm.js +1 -0
  144. package/dist/knowledge/resource-translation.d.ts +37 -0
  145. package/dist/knowledge/resource-translation.js +1 -0
  146. package/dist/knowledge/reward-context.d.ts +2 -2
  147. package/dist/knowledge/reward-ledger.js +1 -1
  148. package/dist/knowledge/reward-translation.js +1 -1
  149. package/dist/knowledge/safety-rules.d.ts +1 -0
  150. package/dist/knowledge/safety-rules.js +1 -1
  151. package/dist/knowledge/service-risk.d.ts +1 -1
  152. package/dist/knowledge/service-risk.js +1 -1
  153. package/dist/knowledge/template-registry.js +1 -1
  154. package/dist/knowledge/tools-reference.js +1 -1
  155. package/dist/knowledge/treasury-context.d.ts +1 -1
  156. package/dist/knowledge/treasury-context.js +1 -1
  157. package/dist/knowledge/treasury-ledger.js +1 -1
  158. package/dist/knowledge/treasury-risk.js +1 -1
  159. package/dist/knowledge/universal-template.d.ts +22 -0
  160. package/dist/knowledge/universal-template.js +1 -0
  161. package/dist/knowledge/util-confirm.d.ts +24 -0
  162. package/dist/knowledge/util-confirm.js +1 -0
  163. package/dist/knowledge/util-risk.js +1 -1
  164. package/dist/knowledge/util-translation.d.ts +39 -0
  165. package/dist/knowledge/util-translation.js +1 -0
  166. package/dist/knowledge/workflow-guidance.d.ts +180 -0
  167. package/dist/knowledge/workflow-guidance.js +1 -0
  168. package/dist/participation/employee-kpi.d.ts +25 -0
  169. package/dist/participation/employee-kpi.js +1 -0
  170. package/dist/participation/employee-store.d.ts +16 -0
  171. package/dist/participation/employee-store.js +1 -0
  172. package/dist/participation/index.d.ts +2 -0
  173. package/dist/participation/index.js +1 -0
  174. package/dist/persona/defaults.js +1 -1
  175. package/dist/persona/index.d.ts +9 -2
  176. package/dist/persona/index.js +1 -1
  177. package/dist/persona/local-region.d.ts +20 -0
  178. package/dist/persona/local-region.js +1 -0
  179. package/dist/persona/model.js +1 -1
  180. package/dist/persona/overrides.d.ts +10 -0
  181. package/dist/persona/overrides.js +1 -0
  182. package/dist/persona/pack-personae.d.ts +11 -0
  183. package/dist/persona/pack-personae.js +1 -0
  184. package/dist/persona/strategy-intent.d.ts +20 -0
  185. package/dist/persona/strategy-intent.js +1 -0
  186. package/dist/persona/types.d.ts +3 -1
  187. package/dist/project/business-puzzle.d.ts +1 -1
  188. package/dist/project/business-puzzle.js +1 -1
  189. package/dist/project/deployment-doc.js +1 -1
  190. package/dist/project/edit-planner.js +1 -1
  191. package/dist/project/evaluation.d.ts +37 -1
  192. package/dist/project/evaluation.js +1 -1
  193. package/dist/project/graph-builder.d.ts +2 -2
  194. package/dist/project/graph-builder.js +1 -1
  195. package/dist/project/graph.d.ts +3 -6
  196. package/dist/project/handlers.d.ts +33 -2
  197. package/dist/project/handlers.js +1 -1
  198. package/dist/project/index.d.ts +1 -0
  199. package/dist/project/index.js +1 -1
  200. package/dist/project/merchant-guide.d.ts +19 -0
  201. package/dist/project/merchant-guide.js +1 -1
  202. package/dist/project/mode-actions.js +1 -1
  203. package/dist/project/rollback-policy.js +1 -1
  204. package/dist/project/semantic-assembler.d.ts +2 -2
  205. package/dist/project/semantic-assembler.js +1 -1
  206. package/dist/project/semantic-graph.d.ts +3 -5
  207. package/dist/project/workflow-design-assessment.d.ts +24 -0
  208. package/dist/project/workflow-design-assessment.js +1 -0
  209. package/dist/safety/confirm-gate.d.ts +1 -1
  210. package/dist/safety/confirm-gate.js +1 -1
  211. package/dist/schema/call/allocation.d.ts +186 -1385
  212. package/dist/schema/call/arbitration.d.ts +272 -1871
  213. package/dist/schema/call/base.d.ts +1831 -9076
  214. package/dist/schema/call/base.js +1 -1
  215. package/dist/schema/call/bridge.d.ts +911 -3171
  216. package/dist/schema/call/contact.d.ts +135 -931
  217. package/dist/schema/call/demand.d.ts +164 -1194
  218. package/dist/schema/call/guard.d.ts +298 -1140
  219. package/dist/schema/call/guard.js +1 -1
  220. package/dist/schema/call/machine.d.ts +459 -5403
  221. package/dist/schema/call/machine.js +1 -1
  222. package/dist/schema/call/order.d.ts +137 -844
  223. package/dist/schema/call/payment.d.ts +74 -561
  224. package/dist/schema/call/permission.d.ts +335 -2791
  225. package/dist/schema/call/personal.d.ts +227 -1814
  226. package/dist/schema/call/progress.d.ts +140 -843
  227. package/dist/schema/call/proof.d.ts +42 -258
  228. package/dist/schema/call/repository.d.ts +324 -2222
  229. package/dist/schema/call/reward.d.ts +153 -1183
  230. package/dist/schema/call/semantic.js +1 -1
  231. package/dist/schema/call/service.d.ts +376 -3431
  232. package/dist/schema/call/treasury.d.ts +252 -2158
  233. package/dist/schema/common/index.d.ts +222 -697
  234. package/dist/schema/common/index.js +1 -1
  235. package/dist/schema/config/index.d.ts +18 -161
  236. package/dist/schema/employee/index.d.ts +99 -0
  237. package/dist/schema/employee/index.js +1 -0
  238. package/dist/schema/evaluation/index.d.ts +1035 -3918
  239. package/dist/schema/evaluation/index.js +1 -1
  240. package/dist/schema/index.d.ts +5 -0
  241. package/dist/schema/index.js +1 -1
  242. package/dist/schema/industry-pack/index.d.ts +132 -0
  243. package/dist/schema/industry-pack/index.js +1 -0
  244. package/dist/schema/intent-radar/index.d.ts +92 -245
  245. package/dist/schema/intent-radar/index.js +1 -1
  246. package/dist/schema/local/index.d.ts +2045 -18080
  247. package/dist/schema/local/index.js +1 -1
  248. package/dist/schema/local/wip.d.ts +61 -651
  249. package/dist/schema/local/wip.js +1 -1
  250. package/dist/schema/messenger/index.d.ts +949 -5557
  251. package/dist/schema/messenger/index.js +1 -1
  252. package/dist/schema/operations.d.ts +3168 -26468
  253. package/dist/schema/operations.js +1 -1
  254. package/dist/schema/permission/index.d.ts +121 -0
  255. package/dist/schema/permission/index.js +1 -0
  256. package/dist/schema/persona/index.d.ts +469 -1820
  257. package/dist/schema/persona/index.js +1 -1
  258. package/dist/schema/project/index.d.ts +1023 -8450
  259. package/dist/schema/project/index.js +1 -1
  260. package/dist/schema/query/index.d.ts +12121 -75556
  261. package/dist/schema/query/index.js +1 -1
  262. package/dist/schema/schema-query/index.d.ts +35 -98
  263. package/dist/schema/schema-query/index.js +1 -1
  264. package/dist/schema/schema-version.js +1 -1
  265. package/dist/schema/task-status.d.ts +26 -132
  266. package/dist/schema/trust/index.d.ts +194 -1290
  267. package/dist/schema/utils/guard-parser.js +1 -1
  268. package/dist/schema/utils/node-parser.js +1 -1
  269. package/dist/schema/utils/skills-recommendation.d.ts +1 -0
  270. package/dist/schema/utils/skills-recommendation.js +1 -1
  271. package/dist/schema/workflow/index.d.ts +161 -0
  272. package/dist/schema/workflow/index.js +1 -0
  273. package/dist/schema/workspace/index.d.ts +69 -0
  274. package/dist/schema/workspace/index.js +1 -0
  275. package/dist/{schema-query → schema-query-impl}/index.js +1 -1
  276. package/dist/schemas/account_operation.output.json +3147 -1655
  277. package/dist/schemas/account_operation.schema.json +225 -218
  278. package/dist/schemas/bridge_operation.output.json +1168 -653
  279. package/dist/schemas/bridge_operation.schema.json +736 -504
  280. package/dist/schemas/config_operation.output.json +185 -179
  281. package/dist/schemas/config_operation.schema.json +21 -26
  282. package/dist/schemas/employee_operation.output.json +207 -0
  283. package/dist/schemas/employee_operation.schema.json +176 -0
  284. package/dist/schemas/evaluation_operation.output.json +2268 -601
  285. package/dist/schemas/evaluation_operation.schema.json +2919 -787
  286. package/dist/schemas/guard2file.output.json +58 -64
  287. package/dist/schemas/guard2file.schema.json +79 -81
  288. package/dist/schemas/index.json +41 -11
  289. package/dist/schemas/industry_pack_operation.output.json +594 -0
  290. package/dist/schemas/industry_pack_operation.schema.json +55 -0
  291. package/dist/schemas/intent_radar.output.json +275 -203
  292. package/dist/schemas/intent_radar.schema.json +124 -126
  293. package/dist/schemas/local_info_operation.output.json +1174 -660
  294. package/dist/schemas/local_info_operation.schema.json +119 -125
  295. package/dist/schemas/local_mark_operation.output.json +1239 -692
  296. package/dist/schemas/local_mark_operation.schema.json +91 -96
  297. package/dist/schemas/machineNode2file.output.json +63 -69
  298. package/dist/schemas/machineNode2file.schema.json +79 -81
  299. package/dist/schemas/messenger_operation.output.json +2722 -1531
  300. package/dist/schemas/messenger_operation.schema.json +1482 -1264
  301. package/dist/schemas/onchain_events.output.json +2590 -978
  302. package/dist/schemas/onchain_events.schema.json +117 -99
  303. package/dist/schemas/onchain_operations.output.json +3957 -2312
  304. package/dist/schemas/onchain_operations.schema.json +20799 -9285
  305. package/dist/schemas/onchain_operations_allocation.schema.json +171 -107
  306. package/dist/schemas/onchain_operations_arbitration.schema.json +233 -146
  307. package/dist/schemas/onchain_operations_contact.schema.json +129 -90
  308. package/dist/schemas/onchain_operations_demand.schema.json +170 -112
  309. package/dist/schemas/onchain_operations_gen_passport.schema.json +61 -646
  310. package/dist/schemas/onchain_operations_gen_proof.schema.json +40 -172
  311. package/dist/schemas/onchain_operations_guard.schema.json +3765 -294
  312. package/dist/schemas/onchain_operations_machine.schema.json +536 -163
  313. package/dist/schemas/onchain_operations_order.schema.json +126 -96
  314. package/dist/schemas/onchain_operations_payment.schema.json +82 -67
  315. package/dist/schemas/onchain_operations_permission.schema.json +331 -93
  316. package/dist/schemas/onchain_operations_personal.schema.json +636 -96
  317. package/dist/schemas/onchain_operations_progress.schema.json +125 -92
  318. package/dist/schemas/onchain_operations_proof.schema.json +76 -69
  319. package/dist/schemas/onchain_operations_repository.schema.json +636 -249
  320. package/dist/schemas/onchain_operations_reward.schema.json +218 -108
  321. package/dist/schemas/onchain_operations_service.schema.json +678 -220
  322. package/dist/schemas/onchain_operations_treasury.schema.json +401 -135
  323. package/dist/schemas/onchain_table_data.output.json +6833 -2432
  324. package/dist/schemas/onchain_table_data.schema.json +684 -417
  325. package/dist/schemas/permission_operation.output.json +173 -0
  326. package/dist/schemas/permission_operation.schema.json +39 -0
  327. package/dist/schemas/persona_operation.output.json +1568 -268
  328. package/dist/schemas/persona_operation.schema.json +346 -205
  329. package/dist/schemas/project_operation.output.json +6922 -5132
  330. package/dist/schemas/project_operation.schema.json +1050 -1020
  331. package/dist/schemas/query_task_status.output.json +195 -99
  332. package/dist/schemas/query_task_status.schema.json +12 -18
  333. package/dist/schemas/query_toolkit.output.json +18862 -14561
  334. package/dist/schemas/query_toolkit.schema.json +614 -522
  335. package/dist/schemas/schema_query.output.json +127 -129
  336. package/dist/schemas/schema_query.schema.json +64 -69
  337. package/dist/schemas/trust_score.output.json +678 -587
  338. package/dist/schemas/trust_score.schema.json +289 -277
  339. package/dist/schemas/wip_file.output.json +116 -124
  340. package/dist/schemas/wip_file.schema.json +142 -143
  341. package/dist/schemas/workflow_operation.output.json +164 -0
  342. package/dist/schemas/workflow_operation.schema.json +116 -0
  343. package/dist/schemas/workspace_operation.output.json +277 -0
  344. package/dist/schemas/workspace_operation.schema.json +45 -0
  345. package/dist/schemas/wowok_buildin_info.output.json +1682 -844
  346. package/dist/schemas/wowok_buildin_info.schema.json +576 -526
  347. package/dist/tools/handlers/bridge.d.ts +8 -1
  348. package/dist/tools/handlers/bridge.js +1 -1
  349. package/dist/tools/handlers/config.js +1 -1
  350. package/dist/tools/handlers/employee.d.ts +2 -0
  351. package/dist/tools/handlers/employee.js +1 -0
  352. package/dist/tools/handlers/evaluation.js +1 -1
  353. package/dist/tools/handlers/file-export.js +1 -1
  354. package/dist/tools/handlers/industry-pack.d.ts +2 -0
  355. package/dist/tools/handlers/industry-pack.js +1 -0
  356. package/dist/tools/handlers/onchain.js +1 -1
  357. package/dist/tools/handlers/permission.d.ts +2 -0
  358. package/dist/tools/handlers/permission.js +1 -0
  359. package/dist/tools/handlers/persona.js +1 -1
  360. package/dist/tools/handlers/project.js +1 -1
  361. package/dist/tools/handlers/query.js +1 -1
  362. package/dist/tools/handlers/schema-query.js +1 -1
  363. package/dist/tools/handlers/trust.js +1 -1
  364. package/dist/tools/handlers/wip.js +1 -1
  365. package/dist/tools/handlers/workflow.d.ts +2 -0
  366. package/dist/tools/handlers/workflow.js +1 -0
  367. package/dist/tools/handlers/workspace.d.ts +4 -0
  368. package/dist/tools/handlers/workspace.js +1 -0
  369. package/dist/tools/index.d.ts +2 -1
  370. package/dist/tools/index.js +1 -1
  371. package/dist/tools/rules-hook.d.ts +1 -1
  372. package/dist/tools/rules-hook.js +1 -1
  373. package/dist/tools/shared.d.ts +1 -1
  374. package/dist/tools/shared.js +1 -1
  375. package/dist/tools/types.d.ts +2 -1
  376. package/package.json +4 -5
  377. package/dist/knowledge/arbitration-trust.d.ts +0 -24
  378. package/dist/knowledge/arbitration-trust.js +0 -1
  379. package/dist/schema/call/bridge-handler.d.ts +0 -8
  380. package/dist/schema/call/bridge-handler.js +0 -1
  381. package/dist/schema/sync-layer4.d.ts +0 -21
  382. package/dist/schema/sync-layer4.js +0 -1
  383. /package/dist/{schema-query → schema-query-impl}/index.d.ts +0 -0
@@ -1,1985 +1,634 @@
1
1
  import { z } from "zod";
2
- export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
2
+ export declare const PersonaOperationInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
3
  action: z.ZodLiteral<"get">;
4
4
  account: z.ZodOptional<z.ZodString>;
5
- industry: z.ZodOptional<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>>;
6
- role: z.ZodOptional<z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>>;
7
- }, "strict", z.ZodTypeAny, {
8
- action: "get";
9
- account?: string | undefined;
10
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
11
- industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
12
- }, {
13
- action: "get";
14
- account?: string | undefined;
15
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
16
- industry?: "freelance" | "rental" | "education" | "travel" | "subscription" | "retail" | undefined;
17
- }>, z.ZodObject<{
5
+ industry: z.ZodOptional<z.ZodEnum<{
6
+ freelance: "freelance";
7
+ rental: "rental";
8
+ education: "education";
9
+ travel: "travel";
10
+ subscription: "subscription";
11
+ retail: "retail";
12
+ }>>;
13
+ role: z.ZodOptional<z.ZodEnum<{
14
+ merchant: "merchant";
15
+ customer: "customer";
16
+ prospect: "prospect";
17
+ supplier: "supplier";
18
+ collaborator: "collaborator";
19
+ arbitrator: "arbitrator";
20
+ }>>;
21
+ }, z.core.$strict>, z.ZodObject<{
18
22
  action: z.ZodLiteral<"list">;
19
- }, "strict", z.ZodTypeAny, {
20
- action: "list";
21
- }, {
22
- action: "list";
23
- }>, z.ZodObject<{
23
+ }, z.core.$strict>, z.ZodObject<{
24
24
  action: z.ZodLiteral<"set">;
25
- scope: z.ZodEnum<["system", "account"]>;
25
+ scope: z.ZodEnum<{
26
+ account: "account";
27
+ system: "system";
28
+ }>;
26
29
  account: z.ZodOptional<z.ZodString>;
27
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
28
- industries: z.ZodDefault<z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">>;
30
+ role: z.ZodEnum<{
31
+ merchant: "merchant";
32
+ customer: "customer";
33
+ prospect: "prospect";
34
+ supplier: "supplier";
35
+ collaborator: "collaborator";
36
+ arbitrator: "arbitrator";
37
+ }>;
38
+ industries: z.ZodDefault<z.ZodArray<z.ZodEnum<{
39
+ freelance: "freelance";
40
+ rental: "rental";
41
+ education: "education";
42
+ travel: "travel";
43
+ subscription: "subscription";
44
+ retail: "retail";
45
+ }>>>;
29
46
  long_term: z.ZodOptional<z.ZodObject<{
30
47
  identity: z.ZodOptional<z.ZodObject<{
31
48
  region: z.ZodOptional<z.ZodString>;
32
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
49
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
33
50
  self_description: z.ZodOptional<z.ZodString>;
34
- }, "strict", z.ZodTypeAny, {
35
- region?: string | undefined;
36
- languages?: string[] | undefined;
37
- self_description?: string | undefined;
38
- }, {
39
- region?: string | undefined;
40
- languages?: string[] | undefined;
41
- self_description?: string | undefined;
42
- }>>;
51
+ }, z.core.$strict>>;
43
52
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
44
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
46
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
54
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
55
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
56
  spec: z.ZodOptional<z.ZodString>;
48
- }, "strict", z.ZodTypeAny, {
49
- strategy?: string[] | undefined;
50
- identity?: {
51
- region?: string | undefined;
52
- languages?: string[] | undefined;
53
- self_description?: string | undefined;
54
- } | undefined;
55
- rules?: string[] | undefined;
56
- preferences?: Record<string, unknown> | undefined;
57
- requirements?: string[] | undefined;
58
- spec?: string | undefined;
59
- }, {
60
- strategy?: string[] | undefined;
61
- identity?: {
62
- region?: string | undefined;
63
- languages?: string[] | undefined;
64
- self_description?: string | undefined;
65
- } | undefined;
66
- rules?: string[] | undefined;
67
- preferences?: Record<string, unknown> | undefined;
68
- requirements?: string[] | undefined;
69
- spec?: string | undefined;
70
- }>>;
57
+ }, z.core.$strict>>;
71
58
  current: z.ZodOptional<z.ZodObject<{
72
59
  identity: z.ZodOptional<z.ZodObject<{
73
60
  region: z.ZodOptional<z.ZodString>;
74
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
75
62
  self_description: z.ZodOptional<z.ZodString>;
76
- }, "strict", z.ZodTypeAny, {
77
- region?: string | undefined;
78
- languages?: string[] | undefined;
79
- self_description?: string | undefined;
80
- }, {
81
- region?: string | undefined;
82
- languages?: string[] | undefined;
83
- self_description?: string | undefined;
84
- }>>;
63
+ }, z.core.$strict>>;
85
64
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
86
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
88
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
68
  spec: z.ZodOptional<z.ZodString>;
90
- }, "strict", z.ZodTypeAny, {
91
- strategy?: string[] | undefined;
92
- identity?: {
93
- region?: string | undefined;
94
- languages?: string[] | undefined;
95
- self_description?: string | undefined;
96
- } | undefined;
97
- rules?: string[] | undefined;
98
- preferences?: Record<string, unknown> | undefined;
99
- requirements?: string[] | undefined;
100
- spec?: string | undefined;
101
- }, {
102
- strategy?: string[] | undefined;
103
- identity?: {
104
- region?: string | undefined;
105
- languages?: string[] | undefined;
106
- self_description?: string | undefined;
107
- } | undefined;
108
- rules?: string[] | undefined;
109
- preferences?: Record<string, unknown> | undefined;
110
- requirements?: string[] | undefined;
111
- spec?: string | undefined;
112
- }>>;
113
- }, "strict", z.ZodTypeAny, {
114
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
115
- action: "set";
116
- scope: "account" | "system";
117
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
118
- account?: string | undefined;
119
- current?: {
120
- strategy?: string[] | undefined;
121
- identity?: {
122
- region?: string | undefined;
123
- languages?: string[] | undefined;
124
- self_description?: string | undefined;
125
- } | undefined;
126
- rules?: string[] | undefined;
127
- preferences?: Record<string, unknown> | undefined;
128
- requirements?: string[] | undefined;
129
- spec?: string | undefined;
130
- } | undefined;
131
- long_term?: {
132
- strategy?: string[] | undefined;
133
- identity?: {
134
- region?: string | undefined;
135
- languages?: string[] | undefined;
136
- self_description?: string | undefined;
137
- } | undefined;
138
- rules?: string[] | undefined;
139
- preferences?: Record<string, unknown> | undefined;
140
- requirements?: string[] | undefined;
141
- spec?: string | undefined;
142
- } | undefined;
143
- }, {
144
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
145
- action: "set";
146
- scope: "account" | "system";
147
- account?: string | undefined;
148
- current?: {
149
- strategy?: string[] | undefined;
150
- identity?: {
151
- region?: string | undefined;
152
- languages?: string[] | undefined;
153
- self_description?: string | undefined;
154
- } | undefined;
155
- rules?: string[] | undefined;
156
- preferences?: Record<string, unknown> | undefined;
157
- requirements?: string[] | undefined;
158
- spec?: string | undefined;
159
- } | undefined;
160
- industries?: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[] | undefined;
161
- long_term?: {
162
- strategy?: string[] | undefined;
163
- identity?: {
164
- region?: string | undefined;
165
- languages?: string[] | undefined;
166
- self_description?: string | undefined;
167
- } | undefined;
168
- rules?: string[] | undefined;
169
- preferences?: Record<string, unknown> | undefined;
170
- requirements?: string[] | undefined;
171
- spec?: string | undefined;
172
- } | undefined;
173
- }>, z.ZodObject<{
69
+ }, z.core.$strict>>;
70
+ }, z.core.$strict>, z.ZodObject<{
174
71
  action: z.ZodLiteral<"analyze">;
175
72
  context: z.ZodString;
176
- }, "strict", z.ZodTypeAny, {
177
- action: "analyze";
178
- context: string;
179
- }, {
180
- action: "analyze";
181
- context: string;
182
- }>, z.ZodObject<{
73
+ }, z.core.$strict>, z.ZodObject<{
183
74
  action: z.ZodLiteral<"apply">;
184
75
  context: z.ZodString;
185
- scope: z.ZodEnum<["system", "account"]>;
76
+ scope: z.ZodEnum<{
77
+ account: "account";
78
+ system: "system";
79
+ }>;
186
80
  account: z.ZodOptional<z.ZodString>;
187
- role: z.ZodOptional<z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>>;
188
- industries: z.ZodOptional<z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">>;
189
- mode: z.ZodOptional<z.ZodEnum<["merge", "replace"]>>;
190
- }, "strict", z.ZodTypeAny, {
191
- action: "apply";
192
- context: string;
193
- scope: "account" | "system";
194
- account?: string | undefined;
195
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
196
- mode?: "replace" | "merge" | undefined;
197
- industries?: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[] | undefined;
198
- }, {
199
- action: "apply";
200
- context: string;
201
- scope: "account" | "system";
202
- account?: string | undefined;
203
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
204
- mode?: "replace" | "merge" | undefined;
205
- industries?: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[] | undefined;
206
- }>, z.ZodObject<{
81
+ role: z.ZodOptional<z.ZodEnum<{
82
+ merchant: "merchant";
83
+ customer: "customer";
84
+ prospect: "prospect";
85
+ supplier: "supplier";
86
+ collaborator: "collaborator";
87
+ arbitrator: "arbitrator";
88
+ }>>;
89
+ industries: z.ZodOptional<z.ZodArray<z.ZodEnum<{
90
+ freelance: "freelance";
91
+ rental: "rental";
92
+ education: "education";
93
+ travel: "travel";
94
+ subscription: "subscription";
95
+ retail: "retail";
96
+ }>>>;
97
+ mode: z.ZodOptional<z.ZodEnum<{
98
+ replace: "replace";
99
+ merge: "merge";
100
+ }>>;
101
+ }, z.core.$strict>, z.ZodObject<{
207
102
  action: z.ZodLiteral<"sync">;
208
103
  account: z.ZodOptional<z.ZodString>;
209
- }, "strict", z.ZodTypeAny, {
210
- action: "sync";
211
- account?: string | undefined;
212
- }, {
213
- action: "sync";
214
- account?: string | undefined;
215
- }>, z.ZodObject<{
104
+ }, z.core.$strict>, z.ZodObject<{
216
105
  action: z.ZodLiteral<"remove">;
217
- scope: z.ZodEnum<["system", "account"]>;
106
+ scope: z.ZodEnum<{
107
+ account: "account";
108
+ system: "system";
109
+ }>;
110
+ account: z.ZodOptional<z.ZodString>;
111
+ }, z.core.$strict>, z.ZodObject<{
112
+ action: z.ZodLiteral<"strategy">;
218
113
  account: z.ZodOptional<z.ZodString>;
219
- }, "strict", z.ZodTypeAny, {
220
- action: "remove";
221
- scope: "account" | "system";
222
- account?: string | undefined;
223
- }, {
224
- action: "remove";
225
- scope: "account" | "system";
226
- account?: string | undefined;
227
- }>]>;
228
- export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
114
+ role: z.ZodOptional<z.ZodEnum<{
115
+ merchant: "merchant";
116
+ customer: "customer";
117
+ prospect: "prospect";
118
+ supplier: "supplier";
119
+ collaborator: "collaborator";
120
+ arbitrator: "arbitrator";
121
+ }>>;
122
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ action: z.ZodLiteral<"region_hint">;
125
+ propose: z.ZodOptional<z.ZodString>;
126
+ }, z.core.$strict>], "action">;
127
+ export declare const PersonaOperationOutputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
229
128
  action: z.ZodLiteral<"get">;
230
129
  effective: z.ZodObject<{
231
- scope: z.ZodEnum<["system", "account"]>;
130
+ scope: z.ZodEnum<{
131
+ account: "account";
132
+ system: "system";
133
+ }>;
232
134
  account: z.ZodOptional<z.ZodString>;
233
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
234
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
135
+ role: z.ZodEnum<{
136
+ merchant: "merchant";
137
+ customer: "customer";
138
+ prospect: "prospect";
139
+ supplier: "supplier";
140
+ collaborator: "collaborator";
141
+ arbitrator: "arbitrator";
142
+ }>;
143
+ industries: z.ZodArray<z.ZodEnum<{
144
+ freelance: "freelance";
145
+ rental: "rental";
146
+ education: "education";
147
+ travel: "travel";
148
+ subscription: "subscription";
149
+ retail: "retail";
150
+ }>>;
235
151
  layer: z.ZodObject<{
236
152
  identity: z.ZodOptional<z.ZodObject<{
237
153
  region: z.ZodOptional<z.ZodString>;
238
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
239
155
  self_description: z.ZodOptional<z.ZodString>;
240
- }, "strict", z.ZodTypeAny, {
241
- region?: string | undefined;
242
- languages?: string[] | undefined;
243
- self_description?: string | undefined;
244
- }, {
245
- region?: string | undefined;
246
- languages?: string[] | undefined;
247
- self_description?: string | undefined;
248
- }>>;
156
+ }, z.core.$strict>>;
249
157
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
250
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
251
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
158
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
253
161
  spec: z.ZodOptional<z.ZodString>;
254
- }, "strict", z.ZodTypeAny, {
255
- strategy?: string[] | undefined;
256
- identity?: {
257
- region?: string | undefined;
258
- languages?: string[] | undefined;
259
- self_description?: string | undefined;
260
- } | undefined;
261
- rules?: string[] | undefined;
262
- preferences?: Record<string, unknown> | undefined;
263
- requirements?: string[] | undefined;
264
- spec?: string | undefined;
265
- }, {
266
- strategy?: string[] | undefined;
267
- identity?: {
268
- region?: string | undefined;
269
- languages?: string[] | undefined;
270
- self_description?: string | undefined;
271
- } | undefined;
272
- rules?: string[] | undefined;
273
- preferences?: Record<string, unknown> | undefined;
274
- requirements?: string[] | undefined;
275
- spec?: string | undefined;
276
- }>;
162
+ }, z.core.$strict>;
277
163
  sources: z.ZodArray<z.ZodObject<{
278
- scope: z.ZodEnum<["system", "account"]>;
164
+ scope: z.ZodEnum<{
165
+ account: "account";
166
+ system: "system";
167
+ }>;
279
168
  account: z.ZodOptional<z.ZodString>;
280
- part: z.ZodEnum<["long_term", "current"]>;
281
- }, "strict", z.ZodTypeAny, {
282
- scope: "account" | "system";
283
- part: "current" | "long_term";
284
- account?: string | undefined;
285
- }, {
286
- scope: "account" | "system";
287
- part: "current" | "long_term";
288
- account?: string | undefined;
289
- }>, "many">;
290
- }, "strict", z.ZodTypeAny, {
291
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
292
- scope: "account" | "system";
293
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
294
- layer: {
295
- strategy?: string[] | undefined;
296
- identity?: {
297
- region?: string | undefined;
298
- languages?: string[] | undefined;
299
- self_description?: string | undefined;
300
- } | undefined;
301
- rules?: string[] | undefined;
302
- preferences?: Record<string, unknown> | undefined;
303
- requirements?: string[] | undefined;
304
- spec?: string | undefined;
305
- };
306
- sources: {
307
- scope: "account" | "system";
308
- part: "current" | "long_term";
309
- account?: string | undefined;
310
- }[];
311
- account?: string | undefined;
312
- }, {
313
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
314
- scope: "account" | "system";
315
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
316
- layer: {
317
- strategy?: string[] | undefined;
318
- identity?: {
319
- region?: string | undefined;
320
- languages?: string[] | undefined;
321
- self_description?: string | undefined;
322
- } | undefined;
323
- rules?: string[] | undefined;
324
- preferences?: Record<string, unknown> | undefined;
325
- requirements?: string[] | undefined;
326
- spec?: string | undefined;
327
- };
328
- sources: {
329
- scope: "account" | "system";
330
- part: "current" | "long_term";
331
- account?: string | undefined;
332
- }[];
333
- account?: string | undefined;
334
- }>;
169
+ part: z.ZodEnum<{
170
+ current: "current";
171
+ long_term: "long_term";
172
+ }>;
173
+ }, z.core.$strict>>;
174
+ }, z.core.$strict>;
335
175
  context_text: z.ZodString;
336
176
  injection: z.ZodRecord<z.ZodString, z.ZodUnknown>;
337
- }, "strict", z.ZodTypeAny, {
338
- action: "get";
339
- injection: Record<string, unknown>;
340
- effective: {
341
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
342
- scope: "account" | "system";
343
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
344
- layer: {
345
- strategy?: string[] | undefined;
346
- identity?: {
347
- region?: string | undefined;
348
- languages?: string[] | undefined;
349
- self_description?: string | undefined;
350
- } | undefined;
351
- rules?: string[] | undefined;
352
- preferences?: Record<string, unknown> | undefined;
353
- requirements?: string[] | undefined;
354
- spec?: string | undefined;
355
- };
356
- sources: {
357
- scope: "account" | "system";
358
- part: "current" | "long_term";
359
- account?: string | undefined;
360
- }[];
361
- account?: string | undefined;
362
- };
363
- context_text: string;
364
- }, {
365
- action: "get";
366
- injection: Record<string, unknown>;
367
- effective: {
368
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
369
- scope: "account" | "system";
370
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
371
- layer: {
372
- strategy?: string[] | undefined;
373
- identity?: {
374
- region?: string | undefined;
375
- languages?: string[] | undefined;
376
- self_description?: string | undefined;
377
- } | undefined;
378
- rules?: string[] | undefined;
379
- preferences?: Record<string, unknown> | undefined;
380
- requirements?: string[] | undefined;
381
- spec?: string | undefined;
382
- };
383
- sources: {
384
- scope: "account" | "system";
385
- part: "current" | "long_term";
386
- account?: string | undefined;
387
- }[];
388
- account?: string | undefined;
389
- };
390
- context_text: string;
391
- }>, z.ZodObject<{
177
+ }, z.core.$strict>, z.ZodObject<{
392
178
  action: z.ZodLiteral<"list">;
393
179
  personas: z.ZodArray<z.ZodObject<{
394
180
  version: z.ZodNumber;
395
- scope: z.ZodEnum<["system", "account"]>;
181
+ scope: z.ZodEnum<{
182
+ account: "account";
183
+ system: "system";
184
+ }>;
396
185
  account: z.ZodOptional<z.ZodString>;
397
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
398
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
186
+ role: z.ZodEnum<{
187
+ merchant: "merchant";
188
+ customer: "customer";
189
+ prospect: "prospect";
190
+ supplier: "supplier";
191
+ collaborator: "collaborator";
192
+ arbitrator: "arbitrator";
193
+ }>;
194
+ industries: z.ZodArray<z.ZodEnum<{
195
+ freelance: "freelance";
196
+ rental: "rental";
197
+ education: "education";
198
+ travel: "travel";
199
+ subscription: "subscription";
200
+ retail: "retail";
201
+ }>>;
399
202
  long_term: z.ZodObject<{
400
203
  identity: z.ZodOptional<z.ZodObject<{
401
204
  region: z.ZodOptional<z.ZodString>;
402
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
205
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
206
  self_description: z.ZodOptional<z.ZodString>;
404
- }, "strict", z.ZodTypeAny, {
405
- region?: string | undefined;
406
- languages?: string[] | undefined;
407
- self_description?: string | undefined;
408
- }, {
409
- region?: string | undefined;
410
- languages?: string[] | undefined;
411
- self_description?: string | undefined;
412
- }>>;
207
+ }, z.core.$strict>>;
413
208
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
414
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
209
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
210
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
211
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
417
212
  spec: z.ZodOptional<z.ZodString>;
418
- }, "strict", z.ZodTypeAny, {
419
- strategy?: string[] | undefined;
420
- identity?: {
421
- region?: string | undefined;
422
- languages?: string[] | undefined;
423
- self_description?: string | undefined;
424
- } | undefined;
425
- rules?: string[] | undefined;
426
- preferences?: Record<string, unknown> | undefined;
427
- requirements?: string[] | undefined;
428
- spec?: string | undefined;
429
- }, {
430
- strategy?: string[] | undefined;
431
- identity?: {
432
- region?: string | undefined;
433
- languages?: string[] | undefined;
434
- self_description?: string | undefined;
435
- } | undefined;
436
- rules?: string[] | undefined;
437
- preferences?: Record<string, unknown> | undefined;
438
- requirements?: string[] | undefined;
439
- spec?: string | undefined;
440
- }>;
213
+ }, z.core.$strict>;
441
214
  current: z.ZodObject<{
442
215
  identity: z.ZodOptional<z.ZodObject<{
443
216
  region: z.ZodOptional<z.ZodString>;
444
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
445
218
  self_description: z.ZodOptional<z.ZodString>;
446
- }, "strict", z.ZodTypeAny, {
447
- region?: string | undefined;
448
- languages?: string[] | undefined;
449
- self_description?: string | undefined;
450
- }, {
451
- region?: string | undefined;
452
- languages?: string[] | undefined;
453
- self_description?: string | undefined;
454
- }>>;
219
+ }, z.core.$strict>>;
455
220
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
456
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
457
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
458
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
222
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
223
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
459
224
  spec: z.ZodOptional<z.ZodString>;
460
- }, "strict", z.ZodTypeAny, {
461
- strategy?: string[] | undefined;
462
- identity?: {
463
- region?: string | undefined;
464
- languages?: string[] | undefined;
465
- self_description?: string | undefined;
466
- } | undefined;
467
- rules?: string[] | undefined;
468
- preferences?: Record<string, unknown> | undefined;
469
- requirements?: string[] | undefined;
470
- spec?: string | undefined;
471
- }, {
472
- strategy?: string[] | undefined;
473
- identity?: {
474
- region?: string | undefined;
475
- languages?: string[] | undefined;
476
- self_description?: string | undefined;
477
- } | undefined;
478
- rules?: string[] | undefined;
479
- preferences?: Record<string, unknown> | undefined;
480
- requirements?: string[] | undefined;
481
- spec?: string | undefined;
482
- }>;
225
+ }, z.core.$strict>;
483
226
  updated_at: z.ZodNumber;
484
- }, "strict", z.ZodTypeAny, {
485
- version: number;
486
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
487
- current: {
488
- strategy?: string[] | undefined;
489
- identity?: {
490
- region?: string | undefined;
491
- languages?: string[] | undefined;
492
- self_description?: string | undefined;
493
- } | undefined;
494
- rules?: string[] | undefined;
495
- preferences?: Record<string, unknown> | undefined;
496
- requirements?: string[] | undefined;
497
- spec?: string | undefined;
498
- };
499
- scope: "account" | "system";
500
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
501
- long_term: {
502
- strategy?: string[] | undefined;
503
- identity?: {
504
- region?: string | undefined;
505
- languages?: string[] | undefined;
506
- self_description?: string | undefined;
507
- } | undefined;
508
- rules?: string[] | undefined;
509
- preferences?: Record<string, unknown> | undefined;
510
- requirements?: string[] | undefined;
511
- spec?: string | undefined;
512
- };
513
- updated_at: number;
514
- account?: string | undefined;
515
- }, {
516
- version: number;
517
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
518
- current: {
519
- strategy?: string[] | undefined;
520
- identity?: {
521
- region?: string | undefined;
522
- languages?: string[] | undefined;
523
- self_description?: string | undefined;
524
- } | undefined;
525
- rules?: string[] | undefined;
526
- preferences?: Record<string, unknown> | undefined;
527
- requirements?: string[] | undefined;
528
- spec?: string | undefined;
529
- };
530
- scope: "account" | "system";
531
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
532
- long_term: {
533
- strategy?: string[] | undefined;
534
- identity?: {
535
- region?: string | undefined;
536
- languages?: string[] | undefined;
537
- self_description?: string | undefined;
538
- } | undefined;
539
- rules?: string[] | undefined;
540
- preferences?: Record<string, unknown> | undefined;
541
- requirements?: string[] | undefined;
542
- spec?: string | undefined;
543
- };
544
- updated_at: number;
545
- account?: string | undefined;
546
- }>, "many">;
227
+ }, z.core.$strict>>;
547
228
  defaults: z.ZodArray<z.ZodObject<{
548
229
  version: z.ZodNumber;
549
- scope: z.ZodEnum<["system", "account"]>;
230
+ scope: z.ZodEnum<{
231
+ account: "account";
232
+ system: "system";
233
+ }>;
550
234
  account: z.ZodOptional<z.ZodString>;
551
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
552
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
235
+ role: z.ZodEnum<{
236
+ merchant: "merchant";
237
+ customer: "customer";
238
+ prospect: "prospect";
239
+ supplier: "supplier";
240
+ collaborator: "collaborator";
241
+ arbitrator: "arbitrator";
242
+ }>;
243
+ industries: z.ZodArray<z.ZodEnum<{
244
+ freelance: "freelance";
245
+ rental: "rental";
246
+ education: "education";
247
+ travel: "travel";
248
+ subscription: "subscription";
249
+ retail: "retail";
250
+ }>>;
553
251
  long_term: z.ZodObject<{
554
252
  identity: z.ZodOptional<z.ZodObject<{
555
253
  region: z.ZodOptional<z.ZodString>;
556
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
254
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
557
255
  self_description: z.ZodOptional<z.ZodString>;
558
- }, "strict", z.ZodTypeAny, {
559
- region?: string | undefined;
560
- languages?: string[] | undefined;
561
- self_description?: string | undefined;
562
- }, {
563
- region?: string | undefined;
564
- languages?: string[] | undefined;
565
- self_description?: string | undefined;
566
- }>>;
256
+ }, z.core.$strict>>;
567
257
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
568
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
569
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
570
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
258
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
260
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
571
261
  spec: z.ZodOptional<z.ZodString>;
572
- }, "strict", z.ZodTypeAny, {
573
- strategy?: string[] | undefined;
574
- identity?: {
575
- region?: string | undefined;
576
- languages?: string[] | undefined;
577
- self_description?: string | undefined;
578
- } | undefined;
579
- rules?: string[] | undefined;
580
- preferences?: Record<string, unknown> | undefined;
581
- requirements?: string[] | undefined;
582
- spec?: string | undefined;
583
- }, {
584
- strategy?: string[] | undefined;
585
- identity?: {
586
- region?: string | undefined;
587
- languages?: string[] | undefined;
588
- self_description?: string | undefined;
589
- } | undefined;
590
- rules?: string[] | undefined;
591
- preferences?: Record<string, unknown> | undefined;
592
- requirements?: string[] | undefined;
593
- spec?: string | undefined;
594
- }>;
262
+ }, z.core.$strict>;
595
263
  current: z.ZodObject<{
596
264
  identity: z.ZodOptional<z.ZodObject<{
597
265
  region: z.ZodOptional<z.ZodString>;
598
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
599
267
  self_description: z.ZodOptional<z.ZodString>;
600
- }, "strict", z.ZodTypeAny, {
601
- region?: string | undefined;
602
- languages?: string[] | undefined;
603
- self_description?: string | undefined;
604
- }, {
605
- region?: string | undefined;
606
- languages?: string[] | undefined;
607
- self_description?: string | undefined;
608
- }>>;
268
+ }, z.core.$strict>>;
609
269
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
610
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
611
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
612
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
270
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
271
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
272
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
613
273
  spec: z.ZodOptional<z.ZodString>;
614
- }, "strict", z.ZodTypeAny, {
615
- strategy?: string[] | undefined;
616
- identity?: {
617
- region?: string | undefined;
618
- languages?: string[] | undefined;
619
- self_description?: string | undefined;
620
- } | undefined;
621
- rules?: string[] | undefined;
622
- preferences?: Record<string, unknown> | undefined;
623
- requirements?: string[] | undefined;
624
- spec?: string | undefined;
625
- }, {
626
- strategy?: string[] | undefined;
627
- identity?: {
628
- region?: string | undefined;
629
- languages?: string[] | undefined;
630
- self_description?: string | undefined;
631
- } | undefined;
632
- rules?: string[] | undefined;
633
- preferences?: Record<string, unknown> | undefined;
634
- requirements?: string[] | undefined;
635
- spec?: string | undefined;
636
- }>;
274
+ }, z.core.$strict>;
637
275
  updated_at: z.ZodNumber;
638
- }, "strict", z.ZodTypeAny, {
639
- version: number;
640
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
641
- current: {
642
- strategy?: string[] | undefined;
643
- identity?: {
644
- region?: string | undefined;
645
- languages?: string[] | undefined;
646
- self_description?: string | undefined;
647
- } | undefined;
648
- rules?: string[] | undefined;
649
- preferences?: Record<string, unknown> | undefined;
650
- requirements?: string[] | undefined;
651
- spec?: string | undefined;
652
- };
653
- scope: "account" | "system";
654
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
655
- long_term: {
656
- strategy?: string[] | undefined;
657
- identity?: {
658
- region?: string | undefined;
659
- languages?: string[] | undefined;
660
- self_description?: string | undefined;
661
- } | undefined;
662
- rules?: string[] | undefined;
663
- preferences?: Record<string, unknown> | undefined;
664
- requirements?: string[] | undefined;
665
- spec?: string | undefined;
666
- };
667
- updated_at: number;
668
- account?: string | undefined;
669
- }, {
670
- version: number;
671
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
672
- current: {
673
- strategy?: string[] | undefined;
674
- identity?: {
675
- region?: string | undefined;
676
- languages?: string[] | undefined;
677
- self_description?: string | undefined;
678
- } | undefined;
679
- rules?: string[] | undefined;
680
- preferences?: Record<string, unknown> | undefined;
681
- requirements?: string[] | undefined;
682
- spec?: string | undefined;
683
- };
684
- scope: "account" | "system";
685
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
686
- long_term: {
687
- strategy?: string[] | undefined;
688
- identity?: {
689
- region?: string | undefined;
690
- languages?: string[] | undefined;
691
- self_description?: string | undefined;
692
- } | undefined;
693
- rules?: string[] | undefined;
694
- preferences?: Record<string, unknown> | undefined;
695
- requirements?: string[] | undefined;
696
- spec?: string | undefined;
697
- };
698
- updated_at: number;
699
- account?: string | undefined;
700
- }>, "many">;
701
- }, "strict", z.ZodTypeAny, {
702
- action: "list";
703
- personas: {
704
- version: number;
705
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
706
- current: {
707
- strategy?: string[] | undefined;
708
- identity?: {
709
- region?: string | undefined;
710
- languages?: string[] | undefined;
711
- self_description?: string | undefined;
712
- } | undefined;
713
- rules?: string[] | undefined;
714
- preferences?: Record<string, unknown> | undefined;
715
- requirements?: string[] | undefined;
716
- spec?: string | undefined;
717
- };
718
- scope: "account" | "system";
719
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
720
- long_term: {
721
- strategy?: string[] | undefined;
722
- identity?: {
723
- region?: string | undefined;
724
- languages?: string[] | undefined;
725
- self_description?: string | undefined;
726
- } | undefined;
727
- rules?: string[] | undefined;
728
- preferences?: Record<string, unknown> | undefined;
729
- requirements?: string[] | undefined;
730
- spec?: string | undefined;
731
- };
732
- updated_at: number;
733
- account?: string | undefined;
734
- }[];
735
- defaults: {
736
- version: number;
737
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
738
- current: {
739
- strategy?: string[] | undefined;
740
- identity?: {
741
- region?: string | undefined;
742
- languages?: string[] | undefined;
743
- self_description?: string | undefined;
744
- } | undefined;
745
- rules?: string[] | undefined;
746
- preferences?: Record<string, unknown> | undefined;
747
- requirements?: string[] | undefined;
748
- spec?: string | undefined;
749
- };
750
- scope: "account" | "system";
751
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
752
- long_term: {
753
- strategy?: string[] | undefined;
754
- identity?: {
755
- region?: string | undefined;
756
- languages?: string[] | undefined;
757
- self_description?: string | undefined;
758
- } | undefined;
759
- rules?: string[] | undefined;
760
- preferences?: Record<string, unknown> | undefined;
761
- requirements?: string[] | undefined;
762
- spec?: string | undefined;
763
- };
764
- updated_at: number;
765
- account?: string | undefined;
766
- }[];
767
- }, {
768
- action: "list";
769
- personas: {
770
- version: number;
771
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
772
- current: {
773
- strategy?: string[] | undefined;
774
- identity?: {
775
- region?: string | undefined;
776
- languages?: string[] | undefined;
777
- self_description?: string | undefined;
778
- } | undefined;
779
- rules?: string[] | undefined;
780
- preferences?: Record<string, unknown> | undefined;
781
- requirements?: string[] | undefined;
782
- spec?: string | undefined;
783
- };
784
- scope: "account" | "system";
785
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
786
- long_term: {
787
- strategy?: string[] | undefined;
788
- identity?: {
789
- region?: string | undefined;
790
- languages?: string[] | undefined;
791
- self_description?: string | undefined;
792
- } | undefined;
793
- rules?: string[] | undefined;
794
- preferences?: Record<string, unknown> | undefined;
795
- requirements?: string[] | undefined;
796
- spec?: string | undefined;
797
- };
798
- updated_at: number;
799
- account?: string | undefined;
800
- }[];
801
- defaults: {
802
- version: number;
803
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
804
- current: {
805
- strategy?: string[] | undefined;
806
- identity?: {
807
- region?: string | undefined;
808
- languages?: string[] | undefined;
809
- self_description?: string | undefined;
810
- } | undefined;
811
- rules?: string[] | undefined;
812
- preferences?: Record<string, unknown> | undefined;
813
- requirements?: string[] | undefined;
814
- spec?: string | undefined;
815
- };
816
- scope: "account" | "system";
817
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
818
- long_term: {
819
- strategy?: string[] | undefined;
820
- identity?: {
821
- region?: string | undefined;
822
- languages?: string[] | undefined;
823
- self_description?: string | undefined;
824
- } | undefined;
825
- rules?: string[] | undefined;
826
- preferences?: Record<string, unknown> | undefined;
827
- requirements?: string[] | undefined;
828
- spec?: string | undefined;
829
- };
830
- updated_at: number;
831
- account?: string | undefined;
832
- }[];
833
- }>, z.ZodObject<{
276
+ }, z.core.$strict>>;
277
+ }, z.core.$strict>, z.ZodObject<{
834
278
  action: z.ZodLiteral<"set">;
835
279
  persona: z.ZodObject<{
836
280
  version: z.ZodNumber;
837
- scope: z.ZodEnum<["system", "account"]>;
281
+ scope: z.ZodEnum<{
282
+ account: "account";
283
+ system: "system";
284
+ }>;
838
285
  account: z.ZodOptional<z.ZodString>;
839
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
840
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
286
+ role: z.ZodEnum<{
287
+ merchant: "merchant";
288
+ customer: "customer";
289
+ prospect: "prospect";
290
+ supplier: "supplier";
291
+ collaborator: "collaborator";
292
+ arbitrator: "arbitrator";
293
+ }>;
294
+ industries: z.ZodArray<z.ZodEnum<{
295
+ freelance: "freelance";
296
+ rental: "rental";
297
+ education: "education";
298
+ travel: "travel";
299
+ subscription: "subscription";
300
+ retail: "retail";
301
+ }>>;
841
302
  long_term: z.ZodObject<{
842
303
  identity: z.ZodOptional<z.ZodObject<{
843
304
  region: z.ZodOptional<z.ZodString>;
844
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
305
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
845
306
  self_description: z.ZodOptional<z.ZodString>;
846
- }, "strict", z.ZodTypeAny, {
847
- region?: string | undefined;
848
- languages?: string[] | undefined;
849
- self_description?: string | undefined;
850
- }, {
851
- region?: string | undefined;
852
- languages?: string[] | undefined;
853
- self_description?: string | undefined;
854
- }>>;
307
+ }, z.core.$strict>>;
855
308
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
856
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
857
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
858
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
309
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
311
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
859
312
  spec: z.ZodOptional<z.ZodString>;
860
- }, "strict", z.ZodTypeAny, {
861
- strategy?: string[] | undefined;
862
- identity?: {
863
- region?: string | undefined;
864
- languages?: string[] | undefined;
865
- self_description?: string | undefined;
866
- } | undefined;
867
- rules?: string[] | undefined;
868
- preferences?: Record<string, unknown> | undefined;
869
- requirements?: string[] | undefined;
870
- spec?: string | undefined;
871
- }, {
872
- strategy?: string[] | undefined;
873
- identity?: {
874
- region?: string | undefined;
875
- languages?: string[] | undefined;
876
- self_description?: string | undefined;
877
- } | undefined;
878
- rules?: string[] | undefined;
879
- preferences?: Record<string, unknown> | undefined;
880
- requirements?: string[] | undefined;
881
- spec?: string | undefined;
882
- }>;
313
+ }, z.core.$strict>;
883
314
  current: z.ZodObject<{
884
315
  identity: z.ZodOptional<z.ZodObject<{
885
316
  region: z.ZodOptional<z.ZodString>;
886
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
317
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
887
318
  self_description: z.ZodOptional<z.ZodString>;
888
- }, "strict", z.ZodTypeAny, {
889
- region?: string | undefined;
890
- languages?: string[] | undefined;
891
- self_description?: string | undefined;
892
- }, {
893
- region?: string | undefined;
894
- languages?: string[] | undefined;
895
- self_description?: string | undefined;
896
- }>>;
319
+ }, z.core.$strict>>;
897
320
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
898
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
899
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
900
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
322
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
323
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
901
324
  spec: z.ZodOptional<z.ZodString>;
902
- }, "strict", z.ZodTypeAny, {
903
- strategy?: string[] | undefined;
904
- identity?: {
905
- region?: string | undefined;
906
- languages?: string[] | undefined;
907
- self_description?: string | undefined;
908
- } | undefined;
909
- rules?: string[] | undefined;
910
- preferences?: Record<string, unknown> | undefined;
911
- requirements?: string[] | undefined;
912
- spec?: string | undefined;
913
- }, {
914
- strategy?: string[] | undefined;
915
- identity?: {
916
- region?: string | undefined;
917
- languages?: string[] | undefined;
918
- self_description?: string | undefined;
919
- } | undefined;
920
- rules?: string[] | undefined;
921
- preferences?: Record<string, unknown> | undefined;
922
- requirements?: string[] | undefined;
923
- spec?: string | undefined;
924
- }>;
325
+ }, z.core.$strict>;
925
326
  updated_at: z.ZodNumber;
926
- }, "strict", z.ZodTypeAny, {
927
- version: number;
928
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
929
- current: {
930
- strategy?: string[] | undefined;
931
- identity?: {
932
- region?: string | undefined;
933
- languages?: string[] | undefined;
934
- self_description?: string | undefined;
935
- } | undefined;
936
- rules?: string[] | undefined;
937
- preferences?: Record<string, unknown> | undefined;
938
- requirements?: string[] | undefined;
939
- spec?: string | undefined;
940
- };
941
- scope: "account" | "system";
942
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
943
- long_term: {
944
- strategy?: string[] | undefined;
945
- identity?: {
946
- region?: string | undefined;
947
- languages?: string[] | undefined;
948
- self_description?: string | undefined;
949
- } | undefined;
950
- rules?: string[] | undefined;
951
- preferences?: Record<string, unknown> | undefined;
952
- requirements?: string[] | undefined;
953
- spec?: string | undefined;
954
- };
955
- updated_at: number;
956
- account?: string | undefined;
957
- }, {
958
- version: number;
959
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
960
- current: {
961
- strategy?: string[] | undefined;
962
- identity?: {
963
- region?: string | undefined;
964
- languages?: string[] | undefined;
965
- self_description?: string | undefined;
966
- } | undefined;
967
- rules?: string[] | undefined;
968
- preferences?: Record<string, unknown> | undefined;
969
- requirements?: string[] | undefined;
970
- spec?: string | undefined;
971
- };
972
- scope: "account" | "system";
973
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
974
- long_term: {
975
- strategy?: string[] | undefined;
976
- identity?: {
977
- region?: string | undefined;
978
- languages?: string[] | undefined;
979
- self_description?: string | undefined;
980
- } | undefined;
981
- rules?: string[] | undefined;
982
- preferences?: Record<string, unknown> | undefined;
983
- requirements?: string[] | undefined;
984
- spec?: string | undefined;
985
- };
986
- updated_at: number;
987
- account?: string | undefined;
988
- }>;
327
+ }, z.core.$strict>;
989
328
  line_count: z.ZodNumber;
990
- }, "strict", z.ZodTypeAny, {
991
- action: "set";
992
- persona: {
993
- version: number;
994
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
995
- current: {
996
- strategy?: string[] | undefined;
997
- identity?: {
998
- region?: string | undefined;
999
- languages?: string[] | undefined;
1000
- self_description?: string | undefined;
1001
- } | undefined;
1002
- rules?: string[] | undefined;
1003
- preferences?: Record<string, unknown> | undefined;
1004
- requirements?: string[] | undefined;
1005
- spec?: string | undefined;
1006
- };
1007
- scope: "account" | "system";
1008
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1009
- long_term: {
1010
- strategy?: string[] | undefined;
1011
- identity?: {
1012
- region?: string | undefined;
1013
- languages?: string[] | undefined;
1014
- self_description?: string | undefined;
1015
- } | undefined;
1016
- rules?: string[] | undefined;
1017
- preferences?: Record<string, unknown> | undefined;
1018
- requirements?: string[] | undefined;
1019
- spec?: string | undefined;
1020
- };
1021
- updated_at: number;
1022
- account?: string | undefined;
1023
- };
1024
- line_count: number;
1025
- }, {
1026
- action: "set";
1027
- persona: {
1028
- version: number;
1029
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1030
- current: {
1031
- strategy?: string[] | undefined;
1032
- identity?: {
1033
- region?: string | undefined;
1034
- languages?: string[] | undefined;
1035
- self_description?: string | undefined;
1036
- } | undefined;
1037
- rules?: string[] | undefined;
1038
- preferences?: Record<string, unknown> | undefined;
1039
- requirements?: string[] | undefined;
1040
- spec?: string | undefined;
1041
- };
1042
- scope: "account" | "system";
1043
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1044
- long_term: {
1045
- strategy?: string[] | undefined;
1046
- identity?: {
1047
- region?: string | undefined;
1048
- languages?: string[] | undefined;
1049
- self_description?: string | undefined;
1050
- } | undefined;
1051
- rules?: string[] | undefined;
1052
- preferences?: Record<string, unknown> | undefined;
1053
- requirements?: string[] | undefined;
1054
- spec?: string | undefined;
1055
- };
1056
- updated_at: number;
1057
- account?: string | undefined;
1058
- };
1059
- line_count: number;
1060
- }>, z.ZodObject<{
329
+ }, z.core.$strict>, z.ZodObject<{
1061
330
  action: z.ZodLiteral<"analyze">;
1062
331
  analysis: z.ZodObject<{
1063
- role: z.ZodOptional<z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>>;
1064
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
332
+ role: z.ZodOptional<z.ZodEnum<{
333
+ merchant: "merchant";
334
+ customer: "customer";
335
+ prospect: "prospect";
336
+ supplier: "supplier";
337
+ collaborator: "collaborator";
338
+ arbitrator: "arbitrator";
339
+ }>>;
340
+ industries: z.ZodArray<z.ZodEnum<{
341
+ freelance: "freelance";
342
+ rental: "rental";
343
+ education: "education";
344
+ travel: "travel";
345
+ subscription: "subscription";
346
+ retail: "retail";
347
+ }>>;
1065
348
  preferences: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1066
- requirements: z.ZodArray<z.ZodString, "many">;
1067
- rules: z.ZodArray<z.ZodString, "many">;
349
+ requirements: z.ZodArray<z.ZodString>;
350
+ rules: z.ZodArray<z.ZodString>;
1068
351
  suggestions: z.ZodArray<z.ZodObject<{
1069
352
  field: z.ZodString;
1070
353
  value: z.ZodUnknown;
1071
354
  reason: z.ZodString;
1072
- }, "strict", z.ZodTypeAny, {
1073
- reason: string;
1074
- field: string;
1075
- value?: unknown;
1076
- }, {
1077
- reason: string;
1078
- field: string;
1079
- value?: unknown;
1080
- }>, "many">;
355
+ }, z.core.$strict>>;
1081
356
  confidence: z.ZodNumber;
1082
- }, "strict", z.ZodTypeAny, {
1083
- confidence: number;
1084
- rules: string[];
1085
- suggestions: {
1086
- reason: string;
1087
- field: string;
1088
- value?: unknown;
1089
- }[];
1090
- preferences: Record<string, unknown>;
1091
- requirements: string[];
1092
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1093
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
1094
- }, {
1095
- confidence: number;
1096
- rules: string[];
1097
- suggestions: {
1098
- reason: string;
1099
- field: string;
1100
- value?: unknown;
1101
- }[];
1102
- preferences: Record<string, unknown>;
1103
- requirements: string[];
1104
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1105
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
1106
- }>;
1107
- }, "strict", z.ZodTypeAny, {
1108
- action: "analyze";
1109
- analysis: {
1110
- confidence: number;
1111
- rules: string[];
1112
- suggestions: {
1113
- reason: string;
1114
- field: string;
1115
- value?: unknown;
1116
- }[];
1117
- preferences: Record<string, unknown>;
1118
- requirements: string[];
1119
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1120
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
1121
- };
1122
- }, {
1123
- action: "analyze";
1124
- analysis: {
1125
- confidence: number;
1126
- rules: string[];
1127
- suggestions: {
1128
- reason: string;
1129
- field: string;
1130
- value?: unknown;
1131
- }[];
1132
- preferences: Record<string, unknown>;
1133
- requirements: string[];
1134
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1135
- role?: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator" | undefined;
1136
- };
1137
- }>, z.ZodObject<{
357
+ }, z.core.$strict>;
358
+ }, z.core.$strict>, z.ZodObject<{
1138
359
  action: z.ZodLiteral<"apply">;
1139
360
  persona: z.ZodObject<{
1140
361
  version: z.ZodNumber;
1141
- scope: z.ZodEnum<["system", "account"]>;
362
+ scope: z.ZodEnum<{
363
+ account: "account";
364
+ system: "system";
365
+ }>;
1142
366
  account: z.ZodOptional<z.ZodString>;
1143
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
1144
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
367
+ role: z.ZodEnum<{
368
+ merchant: "merchant";
369
+ customer: "customer";
370
+ prospect: "prospect";
371
+ supplier: "supplier";
372
+ collaborator: "collaborator";
373
+ arbitrator: "arbitrator";
374
+ }>;
375
+ industries: z.ZodArray<z.ZodEnum<{
376
+ freelance: "freelance";
377
+ rental: "rental";
378
+ education: "education";
379
+ travel: "travel";
380
+ subscription: "subscription";
381
+ retail: "retail";
382
+ }>>;
1145
383
  long_term: z.ZodObject<{
1146
384
  identity: z.ZodOptional<z.ZodObject<{
1147
385
  region: z.ZodOptional<z.ZodString>;
1148
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
386
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1149
387
  self_description: z.ZodOptional<z.ZodString>;
1150
- }, "strict", z.ZodTypeAny, {
1151
- region?: string | undefined;
1152
- languages?: string[] | undefined;
1153
- self_description?: string | undefined;
1154
- }, {
1155
- region?: string | undefined;
1156
- languages?: string[] | undefined;
1157
- self_description?: string | undefined;
1158
- }>>;
388
+ }, z.core.$strict>>;
1159
389
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1160
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1161
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1162
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
390
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
391
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
392
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1163
393
  spec: z.ZodOptional<z.ZodString>;
1164
- }, "strict", z.ZodTypeAny, {
1165
- strategy?: string[] | undefined;
1166
- identity?: {
1167
- region?: string | undefined;
1168
- languages?: string[] | undefined;
1169
- self_description?: string | undefined;
1170
- } | undefined;
1171
- rules?: string[] | undefined;
1172
- preferences?: Record<string, unknown> | undefined;
1173
- requirements?: string[] | undefined;
1174
- spec?: string | undefined;
1175
- }, {
1176
- strategy?: string[] | undefined;
1177
- identity?: {
1178
- region?: string | undefined;
1179
- languages?: string[] | undefined;
1180
- self_description?: string | undefined;
1181
- } | undefined;
1182
- rules?: string[] | undefined;
1183
- preferences?: Record<string, unknown> | undefined;
1184
- requirements?: string[] | undefined;
1185
- spec?: string | undefined;
1186
- }>;
394
+ }, z.core.$strict>;
1187
395
  current: z.ZodObject<{
1188
396
  identity: z.ZodOptional<z.ZodObject<{
1189
397
  region: z.ZodOptional<z.ZodString>;
1190
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
398
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1191
399
  self_description: z.ZodOptional<z.ZodString>;
1192
- }, "strict", z.ZodTypeAny, {
1193
- region?: string | undefined;
1194
- languages?: string[] | undefined;
1195
- self_description?: string | undefined;
1196
- }, {
1197
- region?: string | undefined;
1198
- languages?: string[] | undefined;
1199
- self_description?: string | undefined;
1200
- }>>;
400
+ }, z.core.$strict>>;
1201
401
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1202
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1203
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1204
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
402
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
403
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
404
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1205
405
  spec: z.ZodOptional<z.ZodString>;
1206
- }, "strict", z.ZodTypeAny, {
1207
- strategy?: string[] | undefined;
1208
- identity?: {
1209
- region?: string | undefined;
1210
- languages?: string[] | undefined;
1211
- self_description?: string | undefined;
1212
- } | undefined;
1213
- rules?: string[] | undefined;
1214
- preferences?: Record<string, unknown> | undefined;
1215
- requirements?: string[] | undefined;
1216
- spec?: string | undefined;
1217
- }, {
1218
- strategy?: string[] | undefined;
1219
- identity?: {
1220
- region?: string | undefined;
1221
- languages?: string[] | undefined;
1222
- self_description?: string | undefined;
1223
- } | undefined;
1224
- rules?: string[] | undefined;
1225
- preferences?: Record<string, unknown> | undefined;
1226
- requirements?: string[] | undefined;
1227
- spec?: string | undefined;
1228
- }>;
406
+ }, z.core.$strict>;
1229
407
  updated_at: z.ZodNumber;
1230
- }, "strict", z.ZodTypeAny, {
1231
- version: number;
1232
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1233
- current: {
1234
- strategy?: string[] | undefined;
1235
- identity?: {
1236
- region?: string | undefined;
1237
- languages?: string[] | undefined;
1238
- self_description?: string | undefined;
1239
- } | undefined;
1240
- rules?: string[] | undefined;
1241
- preferences?: Record<string, unknown> | undefined;
1242
- requirements?: string[] | undefined;
1243
- spec?: string | undefined;
1244
- };
1245
- scope: "account" | "system";
1246
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1247
- long_term: {
1248
- strategy?: string[] | undefined;
1249
- identity?: {
1250
- region?: string | undefined;
1251
- languages?: string[] | undefined;
1252
- self_description?: string | undefined;
1253
- } | undefined;
1254
- rules?: string[] | undefined;
1255
- preferences?: Record<string, unknown> | undefined;
1256
- requirements?: string[] | undefined;
1257
- spec?: string | undefined;
1258
- };
1259
- updated_at: number;
1260
- account?: string | undefined;
1261
- }, {
1262
- version: number;
1263
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1264
- current: {
1265
- strategy?: string[] | undefined;
1266
- identity?: {
1267
- region?: string | undefined;
1268
- languages?: string[] | undefined;
1269
- self_description?: string | undefined;
1270
- } | undefined;
1271
- rules?: string[] | undefined;
1272
- preferences?: Record<string, unknown> | undefined;
1273
- requirements?: string[] | undefined;
1274
- spec?: string | undefined;
1275
- };
1276
- scope: "account" | "system";
1277
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1278
- long_term: {
1279
- strategy?: string[] | undefined;
1280
- identity?: {
1281
- region?: string | undefined;
1282
- languages?: string[] | undefined;
1283
- self_description?: string | undefined;
1284
- } | undefined;
1285
- rules?: string[] | undefined;
1286
- preferences?: Record<string, unknown> | undefined;
1287
- requirements?: string[] | undefined;
1288
- spec?: string | undefined;
1289
- };
1290
- updated_at: number;
1291
- account?: string | undefined;
1292
- }>;
408
+ }, z.core.$strict>;
1293
409
  effective: z.ZodObject<{
1294
- scope: z.ZodEnum<["system", "account"]>;
410
+ scope: z.ZodEnum<{
411
+ account: "account";
412
+ system: "system";
413
+ }>;
1295
414
  account: z.ZodOptional<z.ZodString>;
1296
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
1297
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
415
+ role: z.ZodEnum<{
416
+ merchant: "merchant";
417
+ customer: "customer";
418
+ prospect: "prospect";
419
+ supplier: "supplier";
420
+ collaborator: "collaborator";
421
+ arbitrator: "arbitrator";
422
+ }>;
423
+ industries: z.ZodArray<z.ZodEnum<{
424
+ freelance: "freelance";
425
+ rental: "rental";
426
+ education: "education";
427
+ travel: "travel";
428
+ subscription: "subscription";
429
+ retail: "retail";
430
+ }>>;
1298
431
  layer: z.ZodObject<{
1299
432
  identity: z.ZodOptional<z.ZodObject<{
1300
433
  region: z.ZodOptional<z.ZodString>;
1301
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
434
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1302
435
  self_description: z.ZodOptional<z.ZodString>;
1303
- }, "strict", z.ZodTypeAny, {
1304
- region?: string | undefined;
1305
- languages?: string[] | undefined;
1306
- self_description?: string | undefined;
1307
- }, {
1308
- region?: string | undefined;
1309
- languages?: string[] | undefined;
1310
- self_description?: string | undefined;
1311
- }>>;
436
+ }, z.core.$strict>>;
1312
437
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1313
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1314
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1315
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
438
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
439
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
440
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1316
441
  spec: z.ZodOptional<z.ZodString>;
1317
- }, "strict", z.ZodTypeAny, {
1318
- strategy?: string[] | undefined;
1319
- identity?: {
1320
- region?: string | undefined;
1321
- languages?: string[] | undefined;
1322
- self_description?: string | undefined;
1323
- } | undefined;
1324
- rules?: string[] | undefined;
1325
- preferences?: Record<string, unknown> | undefined;
1326
- requirements?: string[] | undefined;
1327
- spec?: string | undefined;
1328
- }, {
1329
- strategy?: string[] | undefined;
1330
- identity?: {
1331
- region?: string | undefined;
1332
- languages?: string[] | undefined;
1333
- self_description?: string | undefined;
1334
- } | undefined;
1335
- rules?: string[] | undefined;
1336
- preferences?: Record<string, unknown> | undefined;
1337
- requirements?: string[] | undefined;
1338
- spec?: string | undefined;
1339
- }>;
442
+ }, z.core.$strict>;
1340
443
  sources: z.ZodArray<z.ZodObject<{
1341
- scope: z.ZodEnum<["system", "account"]>;
444
+ scope: z.ZodEnum<{
445
+ account: "account";
446
+ system: "system";
447
+ }>;
1342
448
  account: z.ZodOptional<z.ZodString>;
1343
- part: z.ZodEnum<["long_term", "current"]>;
1344
- }, "strict", z.ZodTypeAny, {
1345
- scope: "account" | "system";
1346
- part: "current" | "long_term";
1347
- account?: string | undefined;
1348
- }, {
1349
- scope: "account" | "system";
1350
- part: "current" | "long_term";
1351
- account?: string | undefined;
1352
- }>, "many">;
1353
- }, "strict", z.ZodTypeAny, {
1354
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1355
- scope: "account" | "system";
1356
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1357
- layer: {
1358
- strategy?: string[] | undefined;
1359
- identity?: {
1360
- region?: string | undefined;
1361
- languages?: string[] | undefined;
1362
- self_description?: string | undefined;
1363
- } | undefined;
1364
- rules?: string[] | undefined;
1365
- preferences?: Record<string, unknown> | undefined;
1366
- requirements?: string[] | undefined;
1367
- spec?: string | undefined;
1368
- };
1369
- sources: {
1370
- scope: "account" | "system";
1371
- part: "current" | "long_term";
1372
- account?: string | undefined;
1373
- }[];
1374
- account?: string | undefined;
1375
- }, {
1376
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1377
- scope: "account" | "system";
1378
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1379
- layer: {
1380
- strategy?: string[] | undefined;
1381
- identity?: {
1382
- region?: string | undefined;
1383
- languages?: string[] | undefined;
1384
- self_description?: string | undefined;
1385
- } | undefined;
1386
- rules?: string[] | undefined;
1387
- preferences?: Record<string, unknown> | undefined;
1388
- requirements?: string[] | undefined;
1389
- spec?: string | undefined;
1390
- };
1391
- sources: {
1392
- scope: "account" | "system";
1393
- part: "current" | "long_term";
1394
- account?: string | undefined;
1395
- }[];
1396
- account?: string | undefined;
1397
- }>;
449
+ part: z.ZodEnum<{
450
+ current: "current";
451
+ long_term: "long_term";
452
+ }>;
453
+ }, z.core.$strict>>;
454
+ }, z.core.$strict>;
1398
455
  applied: z.ZodArray<z.ZodObject<{
1399
456
  field: z.ZodString;
1400
457
  value: z.ZodUnknown;
1401
458
  reason: z.ZodString;
1402
- }, "strict", z.ZodTypeAny, {
1403
- reason: string;
1404
- field: string;
1405
- value?: unknown;
1406
- }, {
1407
- reason: string;
1408
- field: string;
1409
- value?: unknown;
1410
- }>, "many">;
1411
- }, "strict", z.ZodTypeAny, {
1412
- action: "apply";
1413
- applied: {
1414
- reason: string;
1415
- field: string;
1416
- value?: unknown;
1417
- }[];
1418
- effective: {
1419
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1420
- scope: "account" | "system";
1421
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1422
- layer: {
1423
- strategy?: string[] | undefined;
1424
- identity?: {
1425
- region?: string | undefined;
1426
- languages?: string[] | undefined;
1427
- self_description?: string | undefined;
1428
- } | undefined;
1429
- rules?: string[] | undefined;
1430
- preferences?: Record<string, unknown> | undefined;
1431
- requirements?: string[] | undefined;
1432
- spec?: string | undefined;
1433
- };
1434
- sources: {
1435
- scope: "account" | "system";
1436
- part: "current" | "long_term";
1437
- account?: string | undefined;
1438
- }[];
1439
- account?: string | undefined;
1440
- };
1441
- persona: {
1442
- version: number;
1443
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1444
- current: {
1445
- strategy?: string[] | undefined;
1446
- identity?: {
1447
- region?: string | undefined;
1448
- languages?: string[] | undefined;
1449
- self_description?: string | undefined;
1450
- } | undefined;
1451
- rules?: string[] | undefined;
1452
- preferences?: Record<string, unknown> | undefined;
1453
- requirements?: string[] | undefined;
1454
- spec?: string | undefined;
1455
- };
1456
- scope: "account" | "system";
1457
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1458
- long_term: {
1459
- strategy?: string[] | undefined;
1460
- identity?: {
1461
- region?: string | undefined;
1462
- languages?: string[] | undefined;
1463
- self_description?: string | undefined;
1464
- } | undefined;
1465
- rules?: string[] | undefined;
1466
- preferences?: Record<string, unknown> | undefined;
1467
- requirements?: string[] | undefined;
1468
- spec?: string | undefined;
1469
- };
1470
- updated_at: number;
1471
- account?: string | undefined;
1472
- };
1473
- }, {
1474
- action: "apply";
1475
- applied: {
1476
- reason: string;
1477
- field: string;
1478
- value?: unknown;
1479
- }[];
1480
- effective: {
1481
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1482
- scope: "account" | "system";
1483
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1484
- layer: {
1485
- strategy?: string[] | undefined;
1486
- identity?: {
1487
- region?: string | undefined;
1488
- languages?: string[] | undefined;
1489
- self_description?: string | undefined;
1490
- } | undefined;
1491
- rules?: string[] | undefined;
1492
- preferences?: Record<string, unknown> | undefined;
1493
- requirements?: string[] | undefined;
1494
- spec?: string | undefined;
1495
- };
1496
- sources: {
1497
- scope: "account" | "system";
1498
- part: "current" | "long_term";
1499
- account?: string | undefined;
1500
- }[];
1501
- account?: string | undefined;
1502
- };
1503
- persona: {
1504
- version: number;
1505
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1506
- current: {
1507
- strategy?: string[] | undefined;
1508
- identity?: {
1509
- region?: string | undefined;
1510
- languages?: string[] | undefined;
1511
- self_description?: string | undefined;
1512
- } | undefined;
1513
- rules?: string[] | undefined;
1514
- preferences?: Record<string, unknown> | undefined;
1515
- requirements?: string[] | undefined;
1516
- spec?: string | undefined;
1517
- };
1518
- scope: "account" | "system";
1519
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1520
- long_term: {
1521
- strategy?: string[] | undefined;
1522
- identity?: {
1523
- region?: string | undefined;
1524
- languages?: string[] | undefined;
1525
- self_description?: string | undefined;
1526
- } | undefined;
1527
- rules?: string[] | undefined;
1528
- preferences?: Record<string, unknown> | undefined;
1529
- requirements?: string[] | undefined;
1530
- spec?: string | undefined;
1531
- };
1532
- updated_at: number;
1533
- account?: string | undefined;
1534
- };
1535
- }>, z.ZodObject<{
459
+ }, z.core.$strict>>;
460
+ }, z.core.$strict>, z.ZodObject<{
1536
461
  action: z.ZodLiteral<"sync">;
1537
462
  persona: z.ZodObject<{
1538
463
  version: z.ZodNumber;
1539
- scope: z.ZodEnum<["system", "account"]>;
464
+ scope: z.ZodEnum<{
465
+ account: "account";
466
+ system: "system";
467
+ }>;
1540
468
  account: z.ZodOptional<z.ZodString>;
1541
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
1542
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
469
+ role: z.ZodEnum<{
470
+ merchant: "merchant";
471
+ customer: "customer";
472
+ prospect: "prospect";
473
+ supplier: "supplier";
474
+ collaborator: "collaborator";
475
+ arbitrator: "arbitrator";
476
+ }>;
477
+ industries: z.ZodArray<z.ZodEnum<{
478
+ freelance: "freelance";
479
+ rental: "rental";
480
+ education: "education";
481
+ travel: "travel";
482
+ subscription: "subscription";
483
+ retail: "retail";
484
+ }>>;
1543
485
  long_term: z.ZodObject<{
1544
486
  identity: z.ZodOptional<z.ZodObject<{
1545
487
  region: z.ZodOptional<z.ZodString>;
1546
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
488
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1547
489
  self_description: z.ZodOptional<z.ZodString>;
1548
- }, "strict", z.ZodTypeAny, {
1549
- region?: string | undefined;
1550
- languages?: string[] | undefined;
1551
- self_description?: string | undefined;
1552
- }, {
1553
- region?: string | undefined;
1554
- languages?: string[] | undefined;
1555
- self_description?: string | undefined;
1556
- }>>;
490
+ }, z.core.$strict>>;
1557
491
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1558
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1559
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1560
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
492
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
493
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
494
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1561
495
  spec: z.ZodOptional<z.ZodString>;
1562
- }, "strict", z.ZodTypeAny, {
1563
- strategy?: string[] | undefined;
1564
- identity?: {
1565
- region?: string | undefined;
1566
- languages?: string[] | undefined;
1567
- self_description?: string | undefined;
1568
- } | undefined;
1569
- rules?: string[] | undefined;
1570
- preferences?: Record<string, unknown> | undefined;
1571
- requirements?: string[] | undefined;
1572
- spec?: string | undefined;
1573
- }, {
1574
- strategy?: string[] | undefined;
1575
- identity?: {
1576
- region?: string | undefined;
1577
- languages?: string[] | undefined;
1578
- self_description?: string | undefined;
1579
- } | undefined;
1580
- rules?: string[] | undefined;
1581
- preferences?: Record<string, unknown> | undefined;
1582
- requirements?: string[] | undefined;
1583
- spec?: string | undefined;
1584
- }>;
496
+ }, z.core.$strict>;
1585
497
  current: z.ZodObject<{
1586
498
  identity: z.ZodOptional<z.ZodObject<{
1587
499
  region: z.ZodOptional<z.ZodString>;
1588
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
500
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1589
501
  self_description: z.ZodOptional<z.ZodString>;
1590
- }, "strict", z.ZodTypeAny, {
1591
- region?: string | undefined;
1592
- languages?: string[] | undefined;
1593
- self_description?: string | undefined;
1594
- }, {
1595
- region?: string | undefined;
1596
- languages?: string[] | undefined;
1597
- self_description?: string | undefined;
1598
- }>>;
502
+ }, z.core.$strict>>;
1599
503
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1600
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1601
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1602
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
505
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
506
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1603
507
  spec: z.ZodOptional<z.ZodString>;
1604
- }, "strict", z.ZodTypeAny, {
1605
- strategy?: string[] | undefined;
1606
- identity?: {
1607
- region?: string | undefined;
1608
- languages?: string[] | undefined;
1609
- self_description?: string | undefined;
1610
- } | undefined;
1611
- rules?: string[] | undefined;
1612
- preferences?: Record<string, unknown> | undefined;
1613
- requirements?: string[] | undefined;
1614
- spec?: string | undefined;
1615
- }, {
1616
- strategy?: string[] | undefined;
1617
- identity?: {
1618
- region?: string | undefined;
1619
- languages?: string[] | undefined;
1620
- self_description?: string | undefined;
1621
- } | undefined;
1622
- rules?: string[] | undefined;
1623
- preferences?: Record<string, unknown> | undefined;
1624
- requirements?: string[] | undefined;
1625
- spec?: string | undefined;
1626
- }>;
508
+ }, z.core.$strict>;
1627
509
  updated_at: z.ZodNumber;
1628
- }, "strict", z.ZodTypeAny, {
1629
- version: number;
1630
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1631
- current: {
1632
- strategy?: string[] | undefined;
1633
- identity?: {
1634
- region?: string | undefined;
1635
- languages?: string[] | undefined;
1636
- self_description?: string | undefined;
1637
- } | undefined;
1638
- rules?: string[] | undefined;
1639
- preferences?: Record<string, unknown> | undefined;
1640
- requirements?: string[] | undefined;
1641
- spec?: string | undefined;
1642
- };
1643
- scope: "account" | "system";
1644
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1645
- long_term: {
1646
- strategy?: string[] | undefined;
1647
- identity?: {
1648
- region?: string | undefined;
1649
- languages?: string[] | undefined;
1650
- self_description?: string | undefined;
1651
- } | undefined;
1652
- rules?: string[] | undefined;
1653
- preferences?: Record<string, unknown> | undefined;
1654
- requirements?: string[] | undefined;
1655
- spec?: string | undefined;
1656
- };
1657
- updated_at: number;
1658
- account?: string | undefined;
1659
- }, {
1660
- version: number;
1661
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1662
- current: {
1663
- strategy?: string[] | undefined;
1664
- identity?: {
1665
- region?: string | undefined;
1666
- languages?: string[] | undefined;
1667
- self_description?: string | undefined;
1668
- } | undefined;
1669
- rules?: string[] | undefined;
1670
- preferences?: Record<string, unknown> | undefined;
1671
- requirements?: string[] | undefined;
1672
- spec?: string | undefined;
1673
- };
1674
- scope: "account" | "system";
1675
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1676
- long_term: {
1677
- strategy?: string[] | undefined;
1678
- identity?: {
1679
- region?: string | undefined;
1680
- languages?: string[] | undefined;
1681
- self_description?: string | undefined;
1682
- } | undefined;
1683
- rules?: string[] | undefined;
1684
- preferences?: Record<string, unknown> | undefined;
1685
- requirements?: string[] | undefined;
1686
- spec?: string | undefined;
1687
- };
1688
- updated_at: number;
1689
- account?: string | undefined;
1690
- }>;
510
+ }, z.core.$strict>;
1691
511
  applied: z.ZodObject<{
1692
512
  identity: z.ZodOptional<z.ZodObject<{
1693
513
  region: z.ZodOptional<z.ZodString>;
1694
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
514
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1695
515
  self_description: z.ZodOptional<z.ZodString>;
1696
- }, "strict", z.ZodTypeAny, {
1697
- region?: string | undefined;
1698
- languages?: string[] | undefined;
1699
- self_description?: string | undefined;
1700
- }, {
1701
- region?: string | undefined;
1702
- languages?: string[] | undefined;
1703
- self_description?: string | undefined;
1704
- }>>;
516
+ }, z.core.$strict>>;
1705
517
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1706
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1707
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1708
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
518
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
519
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
520
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1709
521
  spec: z.ZodOptional<z.ZodString>;
1710
- }, "strict", z.ZodTypeAny, {
1711
- strategy?: string[] | undefined;
1712
- identity?: {
1713
- region?: string | undefined;
1714
- languages?: string[] | undefined;
1715
- self_description?: string | undefined;
1716
- } | undefined;
1717
- rules?: string[] | undefined;
1718
- preferences?: Record<string, unknown> | undefined;
1719
- requirements?: string[] | undefined;
1720
- spec?: string | undefined;
1721
- }, {
1722
- strategy?: string[] | undefined;
1723
- identity?: {
1724
- region?: string | undefined;
1725
- languages?: string[] | undefined;
1726
- self_description?: string | undefined;
1727
- } | undefined;
1728
- rules?: string[] | undefined;
1729
- preferences?: Record<string, unknown> | undefined;
1730
- requirements?: string[] | undefined;
1731
- spec?: string | undefined;
1732
- }>;
522
+ }, z.core.$strict>;
1733
523
  effective: z.ZodObject<{
1734
- scope: z.ZodEnum<["system", "account"]>;
524
+ scope: z.ZodEnum<{
525
+ account: "account";
526
+ system: "system";
527
+ }>;
1735
528
  account: z.ZodOptional<z.ZodString>;
1736
- role: z.ZodEnum<["merchant", "customer", "prospect", "supplier", "collaborator", "arbitrator"]>;
1737
- industries: z.ZodArray<z.ZodEnum<["freelance", "rental", "education", "travel", "subscription", "retail"]>, "many">;
529
+ role: z.ZodEnum<{
530
+ merchant: "merchant";
531
+ customer: "customer";
532
+ prospect: "prospect";
533
+ supplier: "supplier";
534
+ collaborator: "collaborator";
535
+ arbitrator: "arbitrator";
536
+ }>;
537
+ industries: z.ZodArray<z.ZodEnum<{
538
+ freelance: "freelance";
539
+ rental: "rental";
540
+ education: "education";
541
+ travel: "travel";
542
+ subscription: "subscription";
543
+ retail: "retail";
544
+ }>>;
1738
545
  layer: z.ZodObject<{
1739
546
  identity: z.ZodOptional<z.ZodObject<{
1740
547
  region: z.ZodOptional<z.ZodString>;
1741
- languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
548
+ languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
1742
549
  self_description: z.ZodOptional<z.ZodString>;
1743
- }, "strict", z.ZodTypeAny, {
1744
- region?: string | undefined;
1745
- languages?: string[] | undefined;
1746
- self_description?: string | undefined;
1747
- }, {
1748
- region?: string | undefined;
1749
- languages?: string[] | undefined;
1750
- self_description?: string | undefined;
1751
- }>>;
550
+ }, z.core.$strict>>;
1752
551
  preferences: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1753
- strategy: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1754
- rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1755
- requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
552
+ strategy: z.ZodOptional<z.ZodArray<z.ZodString>>;
553
+ rules: z.ZodOptional<z.ZodArray<z.ZodString>>;
554
+ requirements: z.ZodOptional<z.ZodArray<z.ZodString>>;
1756
555
  spec: z.ZodOptional<z.ZodString>;
1757
- }, "strict", z.ZodTypeAny, {
1758
- strategy?: string[] | undefined;
1759
- identity?: {
1760
- region?: string | undefined;
1761
- languages?: string[] | undefined;
1762
- self_description?: string | undefined;
1763
- } | undefined;
1764
- rules?: string[] | undefined;
1765
- preferences?: Record<string, unknown> | undefined;
1766
- requirements?: string[] | undefined;
1767
- spec?: string | undefined;
1768
- }, {
1769
- strategy?: string[] | undefined;
1770
- identity?: {
1771
- region?: string | undefined;
1772
- languages?: string[] | undefined;
1773
- self_description?: string | undefined;
1774
- } | undefined;
1775
- rules?: string[] | undefined;
1776
- preferences?: Record<string, unknown> | undefined;
1777
- requirements?: string[] | undefined;
1778
- spec?: string | undefined;
1779
- }>;
556
+ }, z.core.$strict>;
1780
557
  sources: z.ZodArray<z.ZodObject<{
1781
- scope: z.ZodEnum<["system", "account"]>;
558
+ scope: z.ZodEnum<{
559
+ account: "account";
560
+ system: "system";
561
+ }>;
1782
562
  account: z.ZodOptional<z.ZodString>;
1783
- part: z.ZodEnum<["long_term", "current"]>;
1784
- }, "strict", z.ZodTypeAny, {
1785
- scope: "account" | "system";
1786
- part: "current" | "long_term";
1787
- account?: string | undefined;
1788
- }, {
1789
- scope: "account" | "system";
1790
- part: "current" | "long_term";
1791
- account?: string | undefined;
1792
- }>, "many">;
1793
- }, "strict", z.ZodTypeAny, {
1794
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1795
- scope: "account" | "system";
1796
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1797
- layer: {
1798
- strategy?: string[] | undefined;
1799
- identity?: {
1800
- region?: string | undefined;
1801
- languages?: string[] | undefined;
1802
- self_description?: string | undefined;
1803
- } | undefined;
1804
- rules?: string[] | undefined;
1805
- preferences?: Record<string, unknown> | undefined;
1806
- requirements?: string[] | undefined;
1807
- spec?: string | undefined;
1808
- };
1809
- sources: {
1810
- scope: "account" | "system";
1811
- part: "current" | "long_term";
1812
- account?: string | undefined;
1813
- }[];
1814
- account?: string | undefined;
1815
- }, {
1816
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1817
- scope: "account" | "system";
1818
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1819
- layer: {
1820
- strategy?: string[] | undefined;
1821
- identity?: {
1822
- region?: string | undefined;
1823
- languages?: string[] | undefined;
1824
- self_description?: string | undefined;
1825
- } | undefined;
1826
- rules?: string[] | undefined;
1827
- preferences?: Record<string, unknown> | undefined;
1828
- requirements?: string[] | undefined;
1829
- spec?: string | undefined;
1830
- };
1831
- sources: {
1832
- scope: "account" | "system";
1833
- part: "current" | "long_term";
1834
- account?: string | undefined;
1835
- }[];
1836
- account?: string | undefined;
1837
- }>;
1838
- }, "strict", z.ZodTypeAny, {
1839
- action: "sync";
1840
- applied: {
1841
- strategy?: string[] | undefined;
1842
- identity?: {
1843
- region?: string | undefined;
1844
- languages?: string[] | undefined;
1845
- self_description?: string | undefined;
1846
- } | undefined;
1847
- rules?: string[] | undefined;
1848
- preferences?: Record<string, unknown> | undefined;
1849
- requirements?: string[] | undefined;
1850
- spec?: string | undefined;
1851
- };
1852
- effective: {
1853
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1854
- scope: "account" | "system";
1855
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1856
- layer: {
1857
- strategy?: string[] | undefined;
1858
- identity?: {
1859
- region?: string | undefined;
1860
- languages?: string[] | undefined;
1861
- self_description?: string | undefined;
1862
- } | undefined;
1863
- rules?: string[] | undefined;
1864
- preferences?: Record<string, unknown> | undefined;
1865
- requirements?: string[] | undefined;
1866
- spec?: string | undefined;
1867
- };
1868
- sources: {
1869
- scope: "account" | "system";
1870
- part: "current" | "long_term";
1871
- account?: string | undefined;
1872
- }[];
1873
- account?: string | undefined;
1874
- };
1875
- persona: {
1876
- version: number;
1877
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1878
- current: {
1879
- strategy?: string[] | undefined;
1880
- identity?: {
1881
- region?: string | undefined;
1882
- languages?: string[] | undefined;
1883
- self_description?: string | undefined;
1884
- } | undefined;
1885
- rules?: string[] | undefined;
1886
- preferences?: Record<string, unknown> | undefined;
1887
- requirements?: string[] | undefined;
1888
- spec?: string | undefined;
1889
- };
1890
- scope: "account" | "system";
1891
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1892
- long_term: {
1893
- strategy?: string[] | undefined;
1894
- identity?: {
1895
- region?: string | undefined;
1896
- languages?: string[] | undefined;
1897
- self_description?: string | undefined;
1898
- } | undefined;
1899
- rules?: string[] | undefined;
1900
- preferences?: Record<string, unknown> | undefined;
1901
- requirements?: string[] | undefined;
1902
- spec?: string | undefined;
1903
- };
1904
- updated_at: number;
1905
- account?: string | undefined;
1906
- };
1907
- }, {
1908
- action: "sync";
1909
- applied: {
1910
- strategy?: string[] | undefined;
1911
- identity?: {
1912
- region?: string | undefined;
1913
- languages?: string[] | undefined;
1914
- self_description?: string | undefined;
1915
- } | undefined;
1916
- rules?: string[] | undefined;
1917
- preferences?: Record<string, unknown> | undefined;
1918
- requirements?: string[] | undefined;
1919
- spec?: string | undefined;
1920
- };
1921
- effective: {
1922
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1923
- scope: "account" | "system";
1924
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1925
- layer: {
1926
- strategy?: string[] | undefined;
1927
- identity?: {
1928
- region?: string | undefined;
1929
- languages?: string[] | undefined;
1930
- self_description?: string | undefined;
1931
- } | undefined;
1932
- rules?: string[] | undefined;
1933
- preferences?: Record<string, unknown> | undefined;
1934
- requirements?: string[] | undefined;
1935
- spec?: string | undefined;
1936
- };
1937
- sources: {
1938
- scope: "account" | "system";
1939
- part: "current" | "long_term";
1940
- account?: string | undefined;
1941
- }[];
1942
- account?: string | undefined;
1943
- };
1944
- persona: {
1945
- version: number;
1946
- role: "merchant" | "customer" | "prospect" | "supplier" | "collaborator" | "arbitrator";
1947
- current: {
1948
- strategy?: string[] | undefined;
1949
- identity?: {
1950
- region?: string | undefined;
1951
- languages?: string[] | undefined;
1952
- self_description?: string | undefined;
1953
- } | undefined;
1954
- rules?: string[] | undefined;
1955
- preferences?: Record<string, unknown> | undefined;
1956
- requirements?: string[] | undefined;
1957
- spec?: string | undefined;
1958
- };
1959
- scope: "account" | "system";
1960
- industries: ("freelance" | "rental" | "education" | "travel" | "subscription" | "retail")[];
1961
- long_term: {
1962
- strategy?: string[] | undefined;
1963
- identity?: {
1964
- region?: string | undefined;
1965
- languages?: string[] | undefined;
1966
- self_description?: string | undefined;
1967
- } | undefined;
1968
- rules?: string[] | undefined;
1969
- preferences?: Record<string, unknown> | undefined;
1970
- requirements?: string[] | undefined;
1971
- spec?: string | undefined;
1972
- };
1973
- updated_at: number;
1974
- account?: string | undefined;
1975
- };
1976
- }>, z.ZodObject<{
563
+ part: z.ZodEnum<{
564
+ current: "current";
565
+ long_term: "long_term";
566
+ }>;
567
+ }, z.core.$strict>>;
568
+ }, z.core.$strict>;
569
+ }, z.core.$strict>, z.ZodObject<{
1977
570
  action: z.ZodLiteral<"remove">;
1978
571
  removed: z.ZodBoolean;
1979
- }, "strict", z.ZodTypeAny, {
1980
- action: "remove";
1981
- removed: boolean;
1982
- }, {
1983
- action: "remove";
1984
- removed: boolean;
1985
- }>]>;
572
+ }, z.core.$strict>, z.ZodObject<{
573
+ action: z.ZodLiteral<"strategy">;
574
+ role: z.ZodEnum<{
575
+ merchant: "merchant";
576
+ customer: "customer";
577
+ prospect: "prospect";
578
+ supplier: "supplier";
579
+ collaborator: "collaborator";
580
+ arbitrator: "arbitrator";
581
+ }>;
582
+ intents: z.ZodArray<z.ZodObject<{
583
+ objective: z.ZodEnum<{
584
+ sales_priority: "sales_priority";
585
+ profit_priority: "profit_priority";
586
+ buyer_screening: "buyer_screening";
587
+ gross_margin_control: "gross_margin_control";
588
+ }>;
589
+ metrics: z.ZodArray<z.ZodString>;
590
+ levers: z.ZodArray<z.ZodEnum<{
591
+ reward: "reward";
592
+ buy_guard: "buy_guard";
593
+ discount: "discount";
594
+ machine_design: "machine_design";
595
+ }>>;
596
+ target: z.ZodString;
597
+ }, z.core.$strict>>;
598
+ suggestions: z.ZodArray<z.ZodObject<{
599
+ lever: z.ZodEnum<{
600
+ reward: "reward";
601
+ buy_guard: "buy_guard";
602
+ discount: "discount";
603
+ machine_design: "machine_design";
604
+ }>;
605
+ objective: z.ZodEnum<{
606
+ sales_priority: "sales_priority";
607
+ profit_priority: "profit_priority";
608
+ buyer_screening: "buyer_screening";
609
+ gross_margin_control: "gross_margin_control";
610
+ }>;
611
+ action: z.ZodString;
612
+ target: z.ZodString;
613
+ }, z.core.$strict>>;
614
+ note: z.ZodString;
615
+ }, z.core.$strict>, z.ZodObject<{
616
+ action: z.ZodLiteral<"region_hint">;
617
+ hint: z.ZodOptional<z.ZodObject<{
618
+ region: z.ZodRecord<z.ZodString, z.ZodUnknown>;
619
+ source: z.ZodLiteral<"local_info">;
620
+ raw: z.ZodString;
621
+ }, z.core.$strict>>;
622
+ proposal: z.ZodOptional<z.ZodObject<{
623
+ requires_user_consent: z.ZodLiteral<true>;
624
+ raw: z.ZodString;
625
+ region: z.ZodRecord<z.ZodString, z.ZodUnknown>;
626
+ review: z.ZodString;
627
+ store_via: z.ZodLiteral<"local_info_operation">;
628
+ info: z.ZodObject<{
629
+ name: z.ZodString;
630
+ default: z.ZodString;
631
+ }, z.core.$strict>;
632
+ }, z.core.$strict>>;
633
+ note: z.ZodOptional<z.ZodString>;
634
+ }, z.core.$strict>], "action">;