@vertesia/common 1.0.0-dev.20260203.130115Z → 1.0.0-dev.20260227.104700Z

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 (366) hide show
  1. package/lib/cjs/Progress.js +61 -0
  2. package/lib/cjs/Progress.js.map +1 -0
  3. package/lib/cjs/access-control.js +56 -0
  4. package/lib/cjs/access-control.js.map +1 -0
  5. package/lib/cjs/analytics.js +3 -0
  6. package/lib/cjs/analytics.js.map +1 -0
  7. package/lib/cjs/apikey.js +17 -0
  8. package/lib/cjs/apikey.js.map +1 -0
  9. package/lib/cjs/apps.js +35 -0
  10. package/lib/cjs/apps.js.map +1 -0
  11. package/lib/cjs/ask-user.js +8 -0
  12. package/lib/cjs/ask-user.js.map +1 -0
  13. package/lib/cjs/audit-trail.js +3 -0
  14. package/lib/cjs/audit-trail.js.map +1 -0
  15. package/lib/cjs/channels.js +63 -0
  16. package/lib/cjs/channels.js.map +1 -0
  17. package/lib/cjs/common.js +3 -0
  18. package/lib/cjs/common.js.map +1 -0
  19. package/lib/cjs/data-platform.js +127 -0
  20. package/lib/cjs/data-platform.js.map +1 -0
  21. package/lib/cjs/email.js +20 -0
  22. package/lib/cjs/email.js.map +1 -0
  23. package/lib/cjs/environment.js +44 -0
  24. package/lib/cjs/environment.js.map +1 -0
  25. package/lib/cjs/facets.js +3 -0
  26. package/lib/cjs/facets.js.map +1 -0
  27. package/lib/cjs/group.js +5 -0
  28. package/lib/cjs/group.js.map +1 -0
  29. package/lib/cjs/index.js +56 -0
  30. package/lib/cjs/index.js.map +1 -0
  31. package/lib/cjs/integrations.js +16 -0
  32. package/lib/cjs/integrations.js.map +1 -0
  33. package/lib/cjs/interaction.js +97 -0
  34. package/lib/cjs/interaction.js.map +1 -0
  35. package/lib/cjs/json-schema.js +3 -0
  36. package/lib/cjs/json-schema.js.map +1 -0
  37. package/lib/cjs/json.js +3 -0
  38. package/lib/cjs/json.js.map +1 -0
  39. package/lib/cjs/meters.js +13 -0
  40. package/lib/cjs/meters.js.map +1 -0
  41. package/lib/cjs/model_utility.js +6 -0
  42. package/lib/cjs/model_utility.js.map +1 -0
  43. package/lib/cjs/package.json +3 -0
  44. package/lib/cjs/payload.js +3 -0
  45. package/lib/cjs/payload.js.map +1 -0
  46. package/lib/cjs/pending-asks.js +7 -0
  47. package/lib/cjs/pending-asks.js.map +1 -0
  48. package/lib/cjs/project.js +143 -0
  49. package/lib/cjs/project.js.map +1 -0
  50. package/lib/cjs/prompt.js +21 -0
  51. package/lib/cjs/prompt.js.map +1 -0
  52. package/lib/cjs/query.js +3 -0
  53. package/lib/cjs/query.js.map +1 -0
  54. package/lib/cjs/rate-limiter.js +6 -0
  55. package/lib/cjs/rate-limiter.js.map +1 -0
  56. package/lib/cjs/refs.js +14 -0
  57. package/lib/cjs/refs.js.map +1 -0
  58. package/lib/cjs/runs.js +3 -0
  59. package/lib/cjs/runs.js.map +1 -0
  60. package/lib/cjs/skill.js +14 -0
  61. package/lib/cjs/skill.js.map +1 -0
  62. package/lib/cjs/store/activity-catalog.js +3 -0
  63. package/lib/cjs/store/activity-catalog.js.map +1 -0
  64. package/lib/cjs/store/collections.js +9 -0
  65. package/lib/cjs/store/collections.js.map +1 -0
  66. package/lib/cjs/store/common.js +3 -0
  67. package/lib/cjs/store/common.js.map +1 -0
  68. package/lib/cjs/store/conversation-state.js +3 -0
  69. package/lib/cjs/store/conversation-state.js.map +1 -0
  70. package/lib/cjs/store/doc-analyzer.js +3 -0
  71. package/lib/cjs/store/doc-analyzer.js.map +1 -0
  72. package/lib/cjs/store/dsl-workflow.js +5 -0
  73. package/lib/cjs/store/dsl-workflow.js.map +1 -0
  74. package/lib/cjs/store/hive-memory.js +3 -0
  75. package/lib/cjs/store/hive-memory.js.map +1 -0
  76. package/lib/cjs/store/index.js +32 -0
  77. package/lib/cjs/store/index.js.map +1 -0
  78. package/lib/cjs/store/object-types.js +98 -0
  79. package/lib/cjs/store/object-types.js.map +1 -0
  80. package/lib/cjs/store/rendering.js +22 -0
  81. package/lib/cjs/store/rendering.js.map +1 -0
  82. package/lib/cjs/store/schedule.js +32 -0
  83. package/lib/cjs/store/schedule.js.map +1 -0
  84. package/lib/cjs/store/signals.js +3 -0
  85. package/lib/cjs/store/signals.js.map +1 -0
  86. package/lib/cjs/store/store.js +179 -0
  87. package/lib/cjs/store/store.js.map +1 -0
  88. package/lib/cjs/store/temporalio.js +44 -0
  89. package/lib/cjs/store/temporalio.js.map +1 -0
  90. package/lib/cjs/store/worker.js +3 -0
  91. package/lib/cjs/store/worker.js.map +1 -0
  92. package/lib/cjs/store/workflow.js +305 -0
  93. package/lib/cjs/store/workflow.js.map +1 -0
  94. package/lib/cjs/sts-token-types.js +32 -0
  95. package/lib/cjs/sts-token-types.js.map +1 -0
  96. package/lib/cjs/tenant.js +3 -0
  97. package/lib/cjs/tenant.js.map +1 -0
  98. package/lib/cjs/tool-execution.js +6 -0
  99. package/lib/cjs/tool-execution.js.map +1 -0
  100. package/lib/cjs/training.js +14 -0
  101. package/lib/cjs/training.js.map +1 -0
  102. package/lib/cjs/transient-tokens.js +9 -0
  103. package/lib/cjs/transient-tokens.js.map +1 -0
  104. package/lib/cjs/user.js +25 -0
  105. package/lib/cjs/user.js.map +1 -0
  106. package/lib/cjs/utils/auth.js +15 -0
  107. package/lib/cjs/utils/auth.js.map +1 -0
  108. package/lib/cjs/utils/schemas.js +138 -0
  109. package/lib/cjs/utils/schemas.js.map +1 -0
  110. package/lib/cjs/utils/type-helpers.js +3 -0
  111. package/lib/cjs/utils/type-helpers.js.map +1 -0
  112. package/lib/cjs/versions.js +9 -0
  113. package/lib/cjs/versions.js.map +1 -0
  114. package/lib/cjs/workflow-analytics.js +52 -0
  115. package/lib/cjs/workflow-analytics.js.map +1 -0
  116. package/lib/esm/Progress.js +57 -0
  117. package/lib/esm/Progress.js.map +1 -0
  118. package/lib/esm/access-control.js +53 -0
  119. package/lib/esm/access-control.js.map +1 -0
  120. package/lib/esm/analytics.js +2 -0
  121. package/lib/esm/analytics.js.map +1 -0
  122. package/lib/esm/apikey.js +14 -0
  123. package/lib/esm/apikey.js.map +1 -0
  124. package/lib/esm/apps.js +32 -0
  125. package/lib/esm/apps.js.map +1 -0
  126. package/lib/esm/ask-user.js +7 -0
  127. package/lib/esm/ask-user.js.map +1 -0
  128. package/lib/esm/audit-trail.js +2 -0
  129. package/lib/esm/audit-trail.js.map +1 -0
  130. package/lib/esm/channels.js +57 -0
  131. package/lib/esm/channels.js.map +1 -0
  132. package/lib/esm/common.js +2 -0
  133. package/lib/esm/common.js.map +1 -0
  134. package/lib/esm/data-platform.js +124 -0
  135. package/lib/esm/data-platform.js.map +1 -0
  136. package/lib/esm/email.js +16 -0
  137. package/lib/esm/email.js.map +1 -0
  138. package/lib/esm/environment.js +41 -0
  139. package/lib/esm/environment.js.map +1 -0
  140. package/lib/esm/facets.js +2 -0
  141. package/lib/esm/facets.js.map +1 -0
  142. package/lib/esm/group.js +2 -0
  143. package/lib/esm/group.js.map +1 -0
  144. package/lib/esm/index.js +40 -0
  145. package/lib/esm/index.js.map +1 -0
  146. package/lib/esm/integrations.js +13 -0
  147. package/lib/esm/integrations.js.map +1 -0
  148. package/lib/esm/interaction.js +92 -0
  149. package/lib/esm/interaction.js.map +1 -0
  150. package/lib/esm/json-schema.js +2 -0
  151. package/lib/esm/json-schema.js.map +1 -0
  152. package/lib/esm/json.js +2 -0
  153. package/lib/esm/json.js.map +1 -0
  154. package/lib/esm/meters.js +10 -0
  155. package/lib/esm/meters.js.map +1 -0
  156. package/lib/esm/model_utility.js +2 -0
  157. package/lib/esm/model_utility.js.map +1 -0
  158. package/lib/esm/payload.js +2 -0
  159. package/lib/esm/payload.js.map +1 -0
  160. package/lib/esm/pending-asks.js +6 -0
  161. package/lib/esm/pending-asks.js.map +1 -0
  162. package/lib/esm/project.js +138 -0
  163. package/lib/esm/project.js.map +1 -0
  164. package/lib/esm/prompt.js +18 -0
  165. package/lib/esm/prompt.js.map +1 -0
  166. package/lib/esm/query.js +2 -0
  167. package/lib/esm/query.js.map +1 -0
  168. package/lib/esm/rate-limiter.js +5 -0
  169. package/lib/esm/rate-limiter.js.map +1 -0
  170. package/lib/esm/refs.js +11 -0
  171. package/lib/esm/refs.js.map +1 -0
  172. package/lib/esm/runs.js +2 -0
  173. package/lib/esm/runs.js.map +1 -0
  174. package/lib/esm/skill.js +13 -0
  175. package/lib/esm/skill.js.map +1 -0
  176. package/lib/esm/store/activity-catalog.js +2 -0
  177. package/lib/esm/store/activity-catalog.js.map +1 -0
  178. package/lib/esm/store/collections.js +6 -0
  179. package/lib/esm/store/collections.js.map +1 -0
  180. package/lib/esm/store/common.js +2 -0
  181. package/lib/esm/store/common.js.map +1 -0
  182. package/lib/esm/store/conversation-state.js +2 -0
  183. package/lib/esm/store/conversation-state.js.map +1 -0
  184. package/lib/esm/store/doc-analyzer.js +2 -0
  185. package/lib/esm/store/doc-analyzer.js.map +1 -0
  186. package/lib/esm/store/dsl-workflow.js +2 -0
  187. package/lib/esm/store/dsl-workflow.js.map +1 -0
  188. package/lib/esm/store/hive-memory.js +2 -0
  189. package/lib/esm/store/hive-memory.js.map +1 -0
  190. package/lib/esm/store/index.js +16 -0
  191. package/lib/esm/store/index.js.map +1 -0
  192. package/lib/esm/store/object-types.js +95 -0
  193. package/lib/esm/store/object-types.js.map +1 -0
  194. package/lib/esm/store/rendering.js +18 -0
  195. package/lib/esm/store/rendering.js.map +1 -0
  196. package/lib/esm/store/schedule.js +29 -0
  197. package/lib/esm/store/schedule.js.map +1 -0
  198. package/lib/esm/store/signals.js +2 -0
  199. package/lib/esm/store/signals.js.map +1 -0
  200. package/lib/esm/store/store.js +171 -0
  201. package/lib/esm/store/store.js.map +1 -0
  202. package/lib/esm/store/temporalio.js +41 -0
  203. package/lib/esm/store/temporalio.js.map +1 -0
  204. package/lib/esm/store/worker.js +2 -0
  205. package/lib/esm/store/worker.js.map +1 -0
  206. package/lib/esm/store/workflow.js +287 -0
  207. package/lib/esm/store/workflow.js.map +1 -0
  208. package/lib/esm/sts-token-types.js +24 -0
  209. package/lib/esm/sts-token-types.js.map +1 -0
  210. package/lib/esm/tenant.js +2 -0
  211. package/lib/esm/tenant.js.map +1 -0
  212. package/lib/esm/tool-execution.js +5 -0
  213. package/lib/esm/tool-execution.js.map +1 -0
  214. package/lib/esm/training.js +11 -0
  215. package/lib/esm/training.js.map +1 -0
  216. package/lib/esm/transient-tokens.js +6 -0
  217. package/lib/esm/transient-tokens.js.map +1 -0
  218. package/lib/esm/user.js +22 -0
  219. package/lib/esm/user.js.map +1 -0
  220. package/lib/esm/utils/auth.js +11 -0
  221. package/lib/esm/utils/auth.js.map +1 -0
  222. package/lib/esm/utils/schemas.js +129 -0
  223. package/lib/esm/utils/schemas.js.map +1 -0
  224. package/lib/esm/utils/type-helpers.js +2 -0
  225. package/lib/esm/utils/type-helpers.js.map +1 -0
  226. package/lib/esm/versions.js +6 -0
  227. package/lib/esm/versions.js.map +1 -0
  228. package/lib/esm/workflow-analytics.js +49 -0
  229. package/lib/esm/workflow-analytics.js.map +1 -0
  230. package/lib/tsconfig.tsbuildinfo +1 -0
  231. package/lib/types/Progress.d.ts +21 -0
  232. package/lib/types/Progress.d.ts.map +1 -0
  233. package/lib/types/access-control.d.ts +73 -0
  234. package/lib/types/access-control.d.ts.map +1 -0
  235. package/lib/types/analytics.d.ts +87 -0
  236. package/lib/types/analytics.d.ts.map +1 -0
  237. package/lib/types/apikey.d.ts +99 -0
  238. package/lib/types/apikey.d.ts.map +1 -0
  239. package/lib/types/apps.d.ts +481 -0
  240. package/lib/types/apps.d.ts.map +1 -0
  241. package/lib/types/ask-user.d.ts +32 -0
  242. package/lib/types/ask-user.d.ts.map +1 -0
  243. package/lib/types/audit-trail.d.ts +49 -0
  244. package/lib/types/audit-trail.d.ts.map +1 -0
  245. package/lib/types/channels.d.ts +21 -0
  246. package/lib/types/channels.d.ts.map +1 -0
  247. package/lib/types/common.d.ts +31 -0
  248. package/lib/types/common.d.ts.map +1 -0
  249. package/lib/types/data-platform.d.ts +860 -0
  250. package/lib/types/data-platform.d.ts.map +1 -0
  251. package/lib/types/email.d.ts +66 -0
  252. package/lib/types/email.d.ts.map +1 -0
  253. package/lib/types/environment.d.ts +106 -0
  254. package/lib/types/environment.d.ts.map +1 -0
  255. package/lib/types/facets.d.ts +34 -0
  256. package/lib/types/facets.d.ts.map +1 -0
  257. package/lib/types/group.d.ts +21 -0
  258. package/lib/types/group.d.ts.map +1 -0
  259. package/lib/types/index.d.ts +40 -0
  260. package/lib/types/index.d.ts.map +1 -0
  261. package/lib/types/integrations.d.ts +68 -0
  262. package/lib/types/integrations.d.ts.map +1 -0
  263. package/lib/types/interaction.d.ts +965 -0
  264. package/lib/types/interaction.d.ts.map +1 -0
  265. package/lib/types/json-schema.d.ts +1 -0
  266. package/lib/types/json-schema.d.ts.map +1 -0
  267. package/lib/types/json.d.ts +1 -0
  268. package/lib/types/json.d.ts.map +1 -0
  269. package/lib/types/meters.d.ts +23 -0
  270. package/lib/types/meters.d.ts.map +1 -0
  271. package/lib/types/model_utility.d.ts +1 -0
  272. package/lib/types/model_utility.d.ts.map +1 -0
  273. package/lib/types/payload.d.ts +60 -0
  274. package/lib/types/payload.d.ts.map +1 -0
  275. package/lib/types/pending-asks.d.ts +93 -0
  276. package/lib/types/pending-asks.d.ts.map +1 -0
  277. package/lib/types/project.d.ts +434 -0
  278. package/lib/types/project.d.ts.map +1 -0
  279. package/lib/types/prompt.d.ts +77 -0
  280. package/lib/types/prompt.d.ts.map +1 -0
  281. package/lib/types/query.d.ts +118 -0
  282. package/lib/types/query.d.ts.map +1 -0
  283. package/lib/types/rate-limiter.d.ts +28 -0
  284. package/lib/types/rate-limiter.d.ts.map +1 -0
  285. package/lib/types/refs.d.ts +22 -0
  286. package/lib/types/refs.d.ts.map +1 -0
  287. package/lib/types/runs.d.ts +32 -0
  288. package/lib/types/runs.d.ts.map +1 -0
  289. package/lib/types/skill.d.ts +78 -0
  290. package/lib/types/skill.d.ts.map +1 -0
  291. package/lib/types/store/activity-catalog.d.ts +26 -0
  292. package/lib/types/store/activity-catalog.d.ts.map +1 -0
  293. package/lib/types/store/collections.d.ts +78 -0
  294. package/lib/types/store/collections.d.ts.map +1 -0
  295. package/lib/types/store/common.d.ts +22 -0
  296. package/lib/types/store/common.d.ts.map +1 -0
  297. package/lib/types/store/conversation-state.d.ts +132 -0
  298. package/lib/types/store/conversation-state.d.ts.map +1 -0
  299. package/lib/types/store/doc-analyzer.d.ts +140 -0
  300. package/lib/types/store/doc-analyzer.d.ts.map +1 -0
  301. package/lib/types/store/dsl-workflow.d.ts +272 -0
  302. package/lib/types/store/dsl-workflow.d.ts.map +1 -0
  303. package/lib/types/store/hive-memory.d.ts +116 -0
  304. package/lib/types/store/hive-memory.d.ts.map +1 -0
  305. package/lib/types/store/index.d.ts +15 -0
  306. package/lib/types/store/index.d.ts.map +1 -0
  307. package/lib/types/store/object-types.d.ts +23 -0
  308. package/lib/types/store/object-types.d.ts.map +1 -0
  309. package/lib/types/store/rendering.d.ts +193 -0
  310. package/lib/types/store/rendering.d.ts.map +1 -0
  311. package/lib/types/store/schedule.d.ts +184 -0
  312. package/lib/types/store/schedule.d.ts.map +1 -0
  313. package/lib/types/store/signals.d.ts +24 -0
  314. package/lib/types/store/signals.d.ts.map +1 -0
  315. package/lib/types/store/store.d.ts +436 -0
  316. package/lib/types/store/store.d.ts.map +1 -0
  317. package/lib/types/store/temporalio.d.ts +16 -0
  318. package/lib/types/store/temporalio.d.ts.map +1 -0
  319. package/lib/types/store/worker.d.ts +18 -0
  320. package/lib/types/store/worker.d.ts.map +1 -0
  321. package/lib/types/store/workflow.d.ts +948 -0
  322. package/lib/types/store/workflow.d.ts.map +1 -0
  323. package/lib/types/sts-token-types.d.ts +72 -0
  324. package/lib/types/sts-token-types.d.ts.map +1 -0
  325. package/lib/types/tenant.d.ts +10 -0
  326. package/lib/types/tenant.d.ts.map +1 -0
  327. package/lib/types/tool-execution.d.ts +45 -0
  328. package/lib/types/tool-execution.d.ts.map +1 -0
  329. package/lib/types/training.d.ts +38 -0
  330. package/lib/types/training.d.ts.map +1 -0
  331. package/lib/types/transient-tokens.d.ts +24 -0
  332. package/lib/types/transient-tokens.d.ts.map +1 -0
  333. package/lib/types/user.d.ts +125 -0
  334. package/lib/types/user.d.ts.map +1 -0
  335. package/lib/types/utils/auth.d.ts +3 -0
  336. package/lib/types/utils/auth.d.ts.map +1 -0
  337. package/lib/types/utils/schemas.d.ts +18 -0
  338. package/lib/types/utils/schemas.d.ts.map +1 -0
  339. package/lib/types/utils/type-helpers.d.ts +3 -0
  340. package/lib/types/utils/type-helpers.d.ts.map +1 -0
  341. package/lib/types/versions.d.ts +4 -0
  342. package/lib/types/versions.d.ts.map +1 -0
  343. package/lib/types/workflow-analytics.d.ts +777 -0
  344. package/lib/types/workflow-analytics.d.ts.map +1 -0
  345. package/lib/vertesia-common.js +2 -0
  346. package/lib/vertesia-common.js.map +1 -0
  347. package/package.json +4 -6
  348. package/src/apikey.ts +1 -0
  349. package/src/apps.ts +193 -2
  350. package/src/audit-trail.ts +61 -0
  351. package/src/index.ts +1 -0
  352. package/src/integrations.ts +10 -0
  353. package/src/interaction.ts +12 -12
  354. package/src/project.ts +226 -0
  355. package/src/prompt.ts +3 -4
  356. package/src/store/conversation-state.ts +9 -0
  357. package/src/store/doc-analyzer.ts +1 -1
  358. package/src/store/dsl-workflow.ts +20 -0
  359. package/src/store/index.ts +1 -0
  360. package/src/store/rendering.ts +233 -0
  361. package/src/store/schedule.ts +3 -0
  362. package/src/store/store.ts +40 -5
  363. package/src/store/workflow.ts +184 -7
  364. package/src/user.ts +11 -0
  365. package/src/utils/schemas.ts +33 -11
  366. package/src/versions.ts +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hive-memory.d.ts","sourceRoot":"","sources":["../../../src/store/hive-memory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;GAE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AE,eAAe,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,aAAa,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACpD,UAAU,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,15 @@
1
+ export * from "./activity-catalog.js";
2
+ export * from "./collections.js";
3
+ export * from "./common.js";
4
+ export * from "./conversation-state.js";
5
+ export * from "./doc-analyzer.js";
6
+ export * from "./dsl-workflow.js";
7
+ export * from "./hive-memory.js";
8
+ export * from "./object-types.js";
9
+ export * from "./schedule.js";
10
+ export * from "./signals.js";
11
+ export * from "./store.js";
12
+ export * from "./rendering.js";
13
+ export * from "./temporalio.js";
14
+ export * from "./worker.js";
15
+ export * from "./workflow.js";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/store/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { JSONSchemaType } from "ajv";
2
+ export interface RenditionProperties {
3
+ mime_type: string;
4
+ source_etag?: string;
5
+ height?: number;
6
+ width?: number;
7
+ multipart?: boolean;
8
+ total_parts?: number;
9
+ }
10
+ export declare const RenditionSchema: JSONSchemaType<RenditionProperties>;
11
+ export interface DocumentPartProperties {
12
+ source_etag?: string;
13
+ part_number: number;
14
+ title?: string;
15
+ source_line_start?: number;
16
+ source_line_end?: number;
17
+ type?: 'text' | 'image' | 'table' | 'chart' | 'diagram' | 'code' | 'other';
18
+ page_number?: number;
19
+ description?: string;
20
+ height?: number;
21
+ width?: number;
22
+ }
23
+ export declare const DocumentPartSchema: JSONSchemaType<DocumentPartProperties>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"object-types.d.ts","sourceRoot":"","sources":["../../../src/store/object-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AAIzC,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,EAAE,cAAc,CAAC,mBAAmB,CAqC/D,CAAA;AAID,MAAM,WAAW,sBAAsB;IAEnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC3E,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAElB;AAGD,eAAO,MAAM,kBAAkB,EAAE,cAAc,CAAC,sBAAsB,CAwDrE,CAAA"}
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Rendering API types
3
+ *
4
+ * Types for rendering content to various formats (PDF, DOCX, images)
5
+ */
6
+ import { ImageRenditionFormat, MarkdownRenditionFormat } from "./store.js";
7
+ import { WorkflowExecutionStatus, WorkflowRunStatus } from "./workflow.js";
8
+ /** Base vars shared by all rendition types */
9
+ interface BaseRenditionVars {
10
+ mime_type?: string;
11
+ /** Custom upload path — overrides the default renditions/{etag}/{name} path */
12
+ outputPath?: string;
13
+ }
14
+ /** Workflow vars for image renditions (jpeg, png, webp) */
15
+ export interface ImageRenditionVars extends BaseRenditionVars {
16
+ format?: ImageRenditionFormat;
17
+ max_hw?: number;
18
+ max_pages?: number;
19
+ }
20
+ /** Metadata for PDF rendering (displayed in header/footer) */
21
+ export interface PdfRenderingMetadata {
22
+ /** Document ID to display in footer */
23
+ document_id?: string;
24
+ /** Agent name that generated the document */
25
+ agent_name?: string;
26
+ /** Agent run ID to display in footer */
27
+ agent_run_id?: string;
28
+ /** Document subtitle */
29
+ subtitle?: string;
30
+ /** Document author(s) */
31
+ author?: string | string[];
32
+ /** Document date (displayed in header and title page; defaults to today if omitted) */
33
+ date?: string;
34
+ }
35
+ /** Workflow vars for markdown renditions (pdf, docx) */
36
+ export interface MarkdownRenditionVars extends BaseRenditionVars {
37
+ format: MarkdownRenditionFormat;
38
+ /** Inline markdown content (mutually exclusive with objectId) */
39
+ content?: string;
40
+ /** Blob store path to fetch markdown from (mutually exclusive with content/objectId) */
41
+ artifactPath?: string;
42
+ /** Document title for inline content */
43
+ title?: string;
44
+ /** URL to template file (LaTeX for PDF, reference doc for DOCX) */
45
+ templateUrl?: string;
46
+ /** Optional logo URL for template variable `logo-path` (studio-hosted URL) */
47
+ templateLogoUrl?: string;
48
+ /** Template file via artifact:/store: protocol (takes precedence over templateUrl) */
49
+ templatePath?: string;
50
+ /** Logo file via artifact:/store: protocol (takes precedence over templateLogoUrl) */
51
+ logoPath?: string;
52
+ /** Use Vertesia default template if no templateUrl provided (default: true for pdf) */
53
+ useDefaultTemplate?: boolean;
54
+ /** Additional pandoc command-line options */
55
+ pandocOptions?: string[];
56
+ /** Run ID for resolving artifact: URLs in markdown */
57
+ artifactRunId?: string;
58
+ /** Document metadata for PDF footer/header */
59
+ metadata?: PdfRenderingMetadata;
60
+ /** Source reference for auto-wired template data: `store:<objectId>` or `artifact:<path-to-json>` */
61
+ templateDataSource?: string;
62
+ }
63
+ /** Discriminated union of all rendition workflow vars */
64
+ export type GenerateRenditionVars = ImageRenditionVars | MarkdownRenditionVars;
65
+ /** Type guard for markdown rendition vars */
66
+ export declare function isMarkdownRenditionVars(vars: GenerateRenditionVars): vars is MarkdownRenditionVars;
67
+ /**
68
+ * Payload for rendering markdown to PDF or DOCX.
69
+ * Either object_id OR content must be provided.
70
+ */
71
+ export interface RenderMarkdownPayload {
72
+ /** Output format */
73
+ format: MarkdownRenditionFormat;
74
+ /** Object ID to render (mutually exclusive with content) */
75
+ object_id?: string;
76
+ /** Inline markdown content to render (mutually exclusive with object_id) */
77
+ content?: string;
78
+ /** Document title (used for filename when using inline content) */
79
+ title?: string;
80
+ /** URL to a template file for pandoc (DOCX reference doc or LaTeX template) */
81
+ template_url?: string;
82
+ /** Optional logo URL for template variable `logo-path` (studio-hosted URL) */
83
+ template_logo_url?: string;
84
+ /** Template file via artifact:/store: protocol (takes precedence over template_url) */
85
+ template_path?: string;
86
+ /** Logo file via artifact:/store: protocol (takes precedence over template_logo_url) */
87
+ logo_path?: string;
88
+ /** Use Vertesia default template if no template_url provided (default: true for pdf) */
89
+ use_default_template?: boolean;
90
+ /** Additional pandoc command-line options */
91
+ pandoc_options?: string[];
92
+ /** Run ID for resolving artifact: and image: URLs */
93
+ artifact_run_id?: string;
94
+ /** Document metadata for PDF footer/header */
95
+ metadata?: PdfRenderingMetadata;
96
+ /** Source reference for auto-wired template data: `store:<objectId>` or `artifact:<path-to-json>` */
97
+ template_data_source?: string;
98
+ /** Custom upload path for the rendered output */
99
+ output_path?: string;
100
+ }
101
+ /**
102
+ * Initial response when starting a markdown rendering workflow.
103
+ * Clients should poll status using workflow_id/workflow_run_id.
104
+ */
105
+ export interface RenderMarkdownStartResponse extends WorkflowRunStatus {
106
+ /** Requested output format */
107
+ format: MarkdownRenditionFormat;
108
+ }
109
+ /**
110
+ * Polled status response for markdown rendering workflow.
111
+ */
112
+ export interface RenderMarkdownStatusResponse extends WorkflowRunStatus {
113
+ /** Requested output format (if known) */
114
+ format?: MarkdownRenditionFormat;
115
+ /** Download URL for completed output */
116
+ download_url?: string;
117
+ /** File URI in storage for completed output */
118
+ file_uri?: string;
119
+ /** Error details for failed/terminated runs */
120
+ error?: string;
121
+ }
122
+ /**
123
+ * Client-side polling options for markdown rendering.
124
+ */
125
+ export interface RenderMarkdownPollOptions {
126
+ /** Maximum time to wait in milliseconds (default: 10 minutes) */
127
+ timeoutMs?: number;
128
+ /** Polling interval in milliseconds (default: 1500ms) */
129
+ pollIntervalMs?: number;
130
+ }
131
+ /**
132
+ * Result from the GenerateRenditions workflow.
133
+ * Shared between zeno-server (consumer) and workflows (producer).
134
+ */
135
+ export interface GenerateRenditionsResult {
136
+ uploads: string[];
137
+ format: string;
138
+ status: string;
139
+ fileUri?: string;
140
+ /** Warnings about rich content blocks that failed to render (document was still produced) */
141
+ warnings?: string[];
142
+ }
143
+ /**
144
+ * Response from the rendering API.
145
+ */
146
+ export interface RenderMarkdownResponse {
147
+ /** Rendering status */
148
+ status: "success";
149
+ /** Output format */
150
+ format: MarkdownRenditionFormat;
151
+ /** Download URL for the rendered document */
152
+ download_url?: string;
153
+ /** File URI in storage */
154
+ file_uri?: string;
155
+ }
156
+ /** A slide rendered from a named SVG template with structured content */
157
+ export interface TemplateSlide {
158
+ type: 'template';
159
+ /** Template name: 'title' | 'section' | 'bullets' | 'two-column' | 'image-text' */
160
+ template: string;
161
+ /** Key-value content for the template (values can be strings or string arrays) */
162
+ content: Record<string, string | string[]>;
163
+ }
164
+ /** A slide with raw SVG markup */
165
+ export interface RawSvgSlide {
166
+ type: 'svg';
167
+ /** Complete SVG markup (should use 1920x1080 viewBox) */
168
+ svg: string;
169
+ }
170
+ /** A single slide specification — either template-based or raw SVG */
171
+ export type SlideSpec = TemplateSlide | RawSvgSlide;
172
+ /** Options for rendering a slide deck to PDF */
173
+ export interface RenderSlidesDeckOptions {
174
+ /** Canvas scale factor for higher resolution (default: 2) */
175
+ scale?: number;
176
+ /** Background color for each slide (default: '#ffffff') */
177
+ backgroundColor?: string;
178
+ /** Slide theme — replaces default colors in SVG templates */
179
+ theme?: Record<string, string>;
180
+ }
181
+ /** Result of rendering a slide deck to PDF */
182
+ export interface RenderSlidesDeckResult {
183
+ /** PDF file as a Uint8Array (use Buffer.from() in Node.js) */
184
+ buffer: Uint8Array;
185
+ /** Number of slides rendered */
186
+ slideCount: number;
187
+ /** PDF page width in points (720 = 10") */
188
+ pageWidth: number;
189
+ /** PDF page height in points (540 = 7.5") */
190
+ pageHeight: number;
191
+ }
192
+ export declare function isWorkflowTerminalStatus(status: WorkflowExecutionStatus): boolean;
193
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rendering.d.ts","sourceRoot":"","sources":["../../../src/store/rendering.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;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ACZ,yDAAyD;IACzD,GAAG,EAAE,MAAM,CAAC;CACf;AAED,sEAAsE;AACtE,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,CAAC;AAEpD,gDAAgD;AAChD,MAAM,WAAW,uBAAuB;IACpC,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2DAA2D;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED,8CAA8C;AAC9C,MAAM,WAAW,sBAAsB;IACnC,8DAA8D;IAC9D,MAAM,EAAE,UAAU,CAAC;IACnB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAMjF"}
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Agent Schedule Types
3
+ *
4
+ * Defines types for scheduling agents to run on a recurring basis using cron expressions.
5
+ * Schedules are stored in MongoDB with execution handled by Temporal.
6
+ */
7
+ /**
8
+ * Represents a scheduled agent execution configuration.
9
+ */
10
+ export interface AgentSchedule {
11
+ /** Unique identifier for the schedule */
12
+ id: string;
13
+ /** Human-readable name for the schedule */
14
+ name: string;
15
+ /** Optional description of what the schedule does */
16
+ description?: string;
17
+ /** Project ID this schedule belongs to */
18
+ project: string;
19
+ /** Account ID this schedule belongs to */
20
+ account: string;
21
+ /** Interaction ID or endpoint name to execute (e.g., "MyAgent" or ObjectId) */
22
+ interaction: string;
23
+ /** Cached interaction name for display purposes */
24
+ interaction_name?: string;
25
+ /**
26
+ * Cron expression defining when to run.
27
+ * Standard 5-field format: minute hour day-of-month month day-of-week
28
+ * Examples:
29
+ * - "0 0 * * MON" - Every Monday at midnight
30
+ * - "0 9 * * *" - Daily at 9am
31
+ * - "0 * * * *" - Every hour
32
+ */
33
+ cron_expression: string;
34
+ /** Timezone for the cron expression (defaults to "UTC") */
35
+ timezone?: string;
36
+ /** Variables to pass to the agent workflow */
37
+ vars?: Record<string, any>;
38
+ /** Optional task queue override for the workflow */
39
+ task_queue?: string;
40
+ /** Whether the schedule is enabled (can be paused/resumed) */
41
+ enabled: boolean;
42
+ /** Temporal schedule ID once created (format: schedule:{accountId}:{projectId}:{scheduleId}) */
43
+ temporal_schedule_id?: string;
44
+ /** User or service that created this schedule */
45
+ created_by: string;
46
+ /** User or service that last updated this schedule */
47
+ updated_by?: string;
48
+ /** Timestamp when the schedule was created */
49
+ created_at: Date;
50
+ /** Timestamp when the schedule was last updated */
51
+ updated_at: Date;
52
+ /** Timestamp of the last successful execution */
53
+ last_run_at?: Date;
54
+ /** Timestamp of the next scheduled execution */
55
+ next_run_at?: Date;
56
+ /** Total number of times this schedule has executed */
57
+ run_count?: number;
58
+ }
59
+ /**
60
+ * Payload for creating a new schedule.
61
+ */
62
+ export interface CreateSchedulePayload {
63
+ /** Human-readable name for the schedule */
64
+ name: string;
65
+ /** Optional description of what the schedule does */
66
+ description?: string;
67
+ /** Interaction ID or endpoint name to execute */
68
+ interaction: string;
69
+ /**
70
+ * Cron expression defining when to run.
71
+ * Standard 5-field format: minute hour day-of-month month day-of-week
72
+ */
73
+ cron_expression: string;
74
+ /** Timezone for the cron expression (defaults to "UTC") */
75
+ timezone?: string;
76
+ /** Variables to pass to the agent workflow */
77
+ vars?: Record<string, any>;
78
+ /** Optional task queue override */
79
+ task_queue?: string;
80
+ /** Whether the schedule should be enabled immediately (defaults to true) */
81
+ enabled?: boolean;
82
+ /** Visibility of the conversation (defaults to "project") */
83
+ visibility?: 'project' | 'private';
84
+ }
85
+ /**
86
+ * Payload for updating an existing schedule.
87
+ */
88
+ export interface UpdateSchedulePayload {
89
+ /** Updated name */
90
+ name?: string;
91
+ /** Updated description */
92
+ description?: string;
93
+ /** Updated cron expression */
94
+ cron_expression?: string;
95
+ /** Updated timezone */
96
+ timezone?: string;
97
+ /** Updated variables */
98
+ vars?: Record<string, any>;
99
+ /** Updated task queue */
100
+ task_queue?: string;
101
+ /** Enable or disable the schedule */
102
+ enabled?: boolean;
103
+ }
104
+ /**
105
+ * Summary information for listing schedules.
106
+ */
107
+ export interface ScheduleListItem {
108
+ id: string;
109
+ name: string;
110
+ description?: string;
111
+ interaction: string;
112
+ interaction_name?: string;
113
+ cron_expression: string;
114
+ timezone?: string;
115
+ enabled: boolean;
116
+ last_run_at?: Date;
117
+ next_run_at?: Date;
118
+ run_count?: number;
119
+ created_by: string;
120
+ updated_at: Date;
121
+ }
122
+ /**
123
+ * Information about a schedule's recent and upcoming runs.
124
+ */
125
+ export interface ScheduleRunInfo {
126
+ /** The schedule ID */
127
+ schedule_id: string;
128
+ /** Recent workflow executions from this schedule */
129
+ recent_runs: Array<{
130
+ workflow_id: string;
131
+ run_id: string;
132
+ started_at: Date;
133
+ status: string;
134
+ }>;
135
+ /** Upcoming scheduled execution times */
136
+ upcoming_runs: Date[];
137
+ }
138
+ /**
139
+ * Extended schedule information including Temporal execution details.
140
+ */
141
+ export interface AgentScheduleWithTemporalInfo extends AgentSchedule {
142
+ /** Information from Temporal about the schedule execution */
143
+ temporal_info?: {
144
+ /** Number of actions (workflow starts) executed */
145
+ num_actions_taken: number;
146
+ /** Number of actions missed due to catchup window */
147
+ num_actions_missed: number;
148
+ /** Number of actions skipped due to overlap policy */
149
+ num_actions_skipped: number;
150
+ /** Currently running workflows started by this schedule */
151
+ running_actions: Array<{
152
+ workflow_id: string;
153
+ run_id: string;
154
+ }>;
155
+ /** Recent actions taken by the schedule */
156
+ recent_actions: Array<{
157
+ scheduled_at: Date;
158
+ taken_at: Date;
159
+ workflow_id: string;
160
+ run_id: string;
161
+ }>;
162
+ /** Next scheduled action times */
163
+ next_action_times: Date[];
164
+ /** Whether the schedule is currently paused in Temporal */
165
+ paused: boolean;
166
+ /** Optional note about why the schedule is paused */
167
+ pause_note?: string;
168
+ };
169
+ }
170
+ /**
171
+ * Common cron expression presets for UI convenience.
172
+ */
173
+ export declare const CRON_PRESETS: {
174
+ readonly EVERY_HOUR: "0 * * * *";
175
+ readonly EVERY_DAY_MIDNIGHT: "0 0 * * *";
176
+ readonly EVERY_DAY_9AM: "0 9 * * *";
177
+ readonly EVERY_MONDAY_MIDNIGHT: "0 0 * * MON";
178
+ readonly EVERY_WEEKDAY_9AM: "0 9 * * MON-FRI";
179
+ readonly FIRST_OF_MONTH: "0 0 1 * *";
180
+ };
181
+ /**
182
+ * Human-readable descriptions for cron presets.
183
+ */
184
+ export declare const CRON_PRESET_LABELS: Record<keyof typeof CRON_PRESETS, string>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schedule.d.ts","sourceRoot":"","sources":["../../../src/store/schedule.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC1B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IAEX,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IAEb,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAEhB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAEhB,+EAA+E;IAC/E,WAAW,EAAE,MAAM,CAAC;IAEpB,mDAAmD;IACnD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;OAOG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE3B,oDAAoD;IACpD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,8DAA8D;IAC9D,OAAO,EAAE,OAAO,CAAC;IAEjB,gG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;YACpB,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC,CAAC;QAEH,2CAA2C;QAC3C,cAAc,EAAE,KAAK,CAAC;YAClB,YAAY,EAAE,IAAI,CAAC;YACnB,QAAQ,EAAE,IAAI,CAAC;YACf,WAAW,EAAE,MAAM,CAAC;YACpB,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC,CAAC;QAEH,kCAAkC;QAClC,iBAAiB,EAAE,IAAI,EAAE,CAAC;QAE1B,2DAA2D;QAC3D,MAAM,EAAE,OAAO,CAAC;QAEhB,qDAAqD;QACrD,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;CACL;AAED;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,OAAO,YAAY,EAAE,MAAM,CAOxE,CAAC"}
@@ -0,0 +1,24 @@
1
+ export interface UserInputSignal {
2
+ message: string;
3
+ metadata?: Record<string, any>;
4
+ auth_token?: string;
5
+ /**
6
+ * Email attachments to be processed as store objects.
7
+ * These will be downloaded, uploaded to store, and processed for text extraction
8
+ * before the conversation continues.
9
+ */
10
+ attachments?: EmailAttachment[];
11
+ }
12
+ /**
13
+ * Email attachment metadata for processing in conversation workflows.
14
+ */
15
+ export interface EmailAttachment {
16
+ /** Original filename */
17
+ filename: string;
18
+ /** MIME content type */
19
+ content_type: string;
20
+ /** Size in bytes */
21
+ size: number;
22
+ /** Resend download URL (temporary, expires) */
23
+ download_url: string;
24
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signals.d.ts","sourceRoot":"","sources":["../../../src/store/signals.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,eAAe,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,wBAAwB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;CACxB"}