@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,481 @@
1
+ import { JSONSchema, ToolDefinition } from "@llumiverse/common";
2
+ import { CatalogInteractionRef } from "./interaction.js";
3
+ import { InCodeTypeDefinition } from "./store/index.js";
4
+ /**
5
+ * Additional navigation item for an app's UI configuration.
6
+ * Used in AppUIConfig.navigation to define sidebar navigation entries in CompositeApp shell contexts.
7
+ * Icon values are Lucide icon component names or SVG content strings.
8
+ */
9
+ export interface AppUINavItem {
10
+ /** Display label */
11
+ label: string;
12
+ /** Lucide icon name or SVG content string */
13
+ icon: string;
14
+ /** Route path relative to app base */
15
+ route: string;
16
+ }
17
+ export interface AppUIConfig {
18
+ /**
19
+ * The source URL of the app. The src can be a template which contain
20
+ * a variable named `buildId` which will be replaced with the current build id.
21
+ * For example: `/plugins/vertesia-review-center-${buildId}`
22
+ */
23
+ src: string;
24
+ /**
25
+ * The isolation strategy. If not specified it defaults to shadow
26
+ * - shadow - use Shadow DOM to fully isolate the plugin from the host.
27
+ * - css - use CSS processing (like prefixing or other isolation techniques). Ligther but plugins may conflict with the host
28
+ */
29
+ isolation?: "shadow" | "css";
30
+ /**
31
+ * Navigation items for the app's sidebar UI.
32
+ * Only applicable for apps with UI capability in shell contexts (ie. CompositeApp shell).
33
+ */
34
+ navigation?: AppUINavItem[];
35
+ /**
36
+ * Where this app's UI can be displayed.
37
+ * - 'app_portal': Available in the main app portal (standalone)
38
+ * - 'composite_app': Available within a CompositeApp shell
39
+ * Defaults to ['app_portal', 'composite_app'] for new apps.
40
+ */
41
+ available_in?: AppAvailableIn[];
42
+ }
43
+ /**
44
+ * Authentication type for tool collections
45
+ */
46
+ export type ToolCollectionAuthType = "oauth" | "other";
47
+ /**
48
+ * Tool collection type
49
+ */
50
+ export type ToolCollectionType = "mcp" | "vertesia_sdk";
51
+ /**
52
+ * Base tool collection configuration
53
+ */
54
+ interface BaseToolCollectionObject {
55
+ /**
56
+ * The URL endpoint for the tool collection
57
+ */
58
+ url: string;
59
+ /**
60
+ * Optional authentication type required for this tool collection
61
+ */
62
+ auth?: ToolCollectionAuthType;
63
+ }
64
+ /**
65
+ * MCP tool collection configuration (requires name, description, and namespace)
66
+ */
67
+ export interface MCPToolCollectionObject extends BaseToolCollectionObject {
68
+ type: "mcp";
69
+ /**
70
+ * Name for the tool collection.
71
+ * Used as an identifier for the collection (e.g., for OAuth authentication).
72
+ */
73
+ name: string;
74
+ /**
75
+ * Description for the tool collection.
76
+ * Helps users understand what tools this collection provides.
77
+ */
78
+ description: string;
79
+ /**
80
+ * Prefix to use for tool names from this collection.
81
+ * Provides clean, readable tool names (e.g., "jira" instead of "https://mcp.atlassian.com/v1/mcp")
82
+ */
83
+ namespace: string;
84
+ }
85
+ /**
86
+ * Vertesia SDK tool collection configuration
87
+ */
88
+ export interface VertesiaSDKToolCollectionObject extends BaseToolCollectionObject {
89
+ type: "vertesia_sdk";
90
+ /**
91
+ * Optional namespace to use for tool names from this collection.
92
+ * If not provided, the tool server default will be used.
93
+ */
94
+ namespace?: string;
95
+ /**
96
+ * Optional name for the tool collection.
97
+ * If not provided, the tool server default will be used.
98
+ */
99
+ name?: string;
100
+ /**
101
+ * Optional description for the tool collection.
102
+ * If not provided, the tool server default will be used.
103
+ */
104
+ description?: string;
105
+ }
106
+ /**
107
+ * Tool collection configuration (object format)
108
+ */
109
+ export type ToolCollectionObject = MCPToolCollectionObject | VertesiaSDKToolCollectionObject;
110
+ /**
111
+ * Tool collection can be either:
112
+ * - A string URL (legacy format, with "mcp:" prefix for MCP servers)
113
+ * - An object with url, type, and optional auth (new format)
114
+ */
115
+ export type ToolCollection = string | ToolCollectionObject;
116
+ /**
117
+ * Normalizes a tool collection to the object format.
118
+ * Handles backward compatibility with string URLs.
119
+ *
120
+ * @param collection - String URL or ToolCollectionObject
121
+ * @returns Normalized ToolCollectionObject
122
+ */
123
+ export declare function normalizeToolCollection(collection: ToolCollection): ToolCollectionObject;
124
+ /**
125
+ * Tool definition with optional activation control for agent exposure.
126
+ */
127
+ export interface AgentToolDefinition extends ToolDefinition {
128
+ /**
129
+ * The tool execution URL. It can be an absolute URL or a path in which case the URL is obtained
130
+ * using the base URL of the tool server API. Ex: http://tool-server.com/api/
131
+ * Example of relative URLs: "tools/my-tool-collection" or "/api/tools/my-tool-collection"
132
+ */
133
+ url?: string;
134
+ /**
135
+ * The tool category if any - for UI purposes.
136
+ */
137
+ category?: string;
138
+ /**
139
+ * Whether this tool is available by default.
140
+ * - true/undefined: Tool is always available to agents
141
+ * - false: Tool is only available when activated by a skill's related_tools
142
+ */
143
+ default?: boolean;
144
+ /**
145
+ * For skill tools (learn_*): list of related tool names that become available
146
+ * when this skill is called. Used for dynamic tool discovery.
147
+ */
148
+ related_tools?: string[];
149
+ }
150
+ export type AppCapabilities = 'ui' | 'tools' | 'interactions' | 'types' | 'templates';
151
+ export type AppAvailableIn = 'app_portal' | 'composite_app';
152
+ export interface AppManifestData {
153
+ /**
154
+ * The name of the app, used as the id in the system.
155
+ * Must be in kebab case (e.g. my-app).
156
+ */
157
+ name: string;
158
+ /**
159
+ * Visibility level of the app:
160
+ * - "public": visible to all accounts
161
+ * - "private": visible only to the owning account
162
+ * - "vertesia": visible only to Vertesia team members (any project)
163
+ */
164
+ visibility: "public" | "private" | "vertesia";
165
+ title: string;
166
+ description: string;
167
+ publisher: string;
168
+ /**
169
+ * A svg icon for the app.
170
+ */
171
+ icon?: string;
172
+ /**
173
+ * A color name to be used as the color of the app card (e.g. blue, red, green, etc.)
174
+ * If not specified a random color will be picked.
175
+ */
176
+ color?: string;
177
+ status: "beta" | "stable" | "deprecated";
178
+ /**
179
+ * The UI configuration of the app. If not specified and the app "ui" is in the app capabilities
180
+ * then the ui configuration will be fetched from the endpoint property.
181
+ */
182
+ ui?: AppUIConfig;
183
+ /**
184
+ * A list of tool collections endpoints to be used by this app.
185
+ * A tools collection endpoint is an URL which may end with a `?import` query string.
186
+ * If the `?import` query string is used the tool will be imported as a javascript module and not executed through a POST on the collections endpoint.
187
+ * This feature is for advanced composition of tools. Prefer using endpoint.
188
+ */
189
+ tool_collections?: ToolCollection[];
190
+ /**
191
+ * An URL providing interactions definitions in JSON format.
192
+ * The URL must provide 2 endpoints:
193
+ * 1. GET URL - must return a JSON array with the list of interactions (as AppInteractionRef[])
194
+ * 2. GET URL/{interaction_name} - must return the full interaction definition for the specified interaction.
195
+ * This feature is for advanced composition of interactions. Prefer using endpoint.
196
+ */
197
+ interactions?: string;
198
+ /**
199
+ * A JSON chema for the app installation settings.
200
+ * @deprecated Use endpoint to provide settings_schema instead
201
+ */
202
+ settings_schema?: JSONSchema;
203
+ /** The following API is part of the second version of the manifest and deprectaes similar properties included directly in the manifest */
204
+ /**
205
+ * Describe the capabiltities of this app - which kind of contributions it provides.
206
+ */
207
+ capabilities?: AppCapabilities[];
208
+ /**
209
+ * The app endpoint URL
210
+ * This URL should return a JSON object describing the contributions provided by the app.
211
+ * The object shape must satisfies AppPackage interface.
212
+ * The endpoint must support GET method and a `scope` parameter to filter which resources are included in the returned AppPackage:
213
+ * The supported scope values are:
214
+ * - ui
215
+ * - tools
216
+ * - interactions
217
+ * - types
218
+ * - settings
219
+ * - all (the default if no scope is provided)
220
+ * You can also use comma-separated values to combine scopes (e.g. "ui,tools").
221
+ *
222
+ * Example:
223
+ * - ?scope=ui,tools - returns only the UI configuration
224
+ */
225
+ endpoint?: string;
226
+ }
227
+ export type AppPackageScope = 'ui' | 'tools' | 'interactions' | 'types' | 'templates' | 'settings' | 'widgets' | 'all';
228
+ export interface AppPackage {
229
+ /**
230
+ * The UI configuration of the app
231
+ */
232
+ ui?: AppUIConfig;
233
+ /**
234
+ * A list of tools exposed by the app.
235
+ */
236
+ tools?: AgentToolDefinition[];
237
+ /**
238
+ * A list of interactions exposed by the app
239
+ */
240
+ interactions?: CatalogInteractionRef[];
241
+ /**
242
+ * A list of types.
243
+ */
244
+ types?: InCodeTypeDefinition[];
245
+ /**
246
+ * Templates provided by the app.
247
+ */
248
+ templates?: RenderingTemplateDefinitionRef[];
249
+ /**
250
+ * Widgets provided by the app.
251
+ */
252
+ widgets?: Record<string, AppWidgetInfo>;
253
+ /**
254
+ * A JSON chema for the app installation settings.
255
+ */
256
+ settings_schema?: JSONSchema;
257
+ }
258
+ export interface AppWidgetInfo {
259
+ collection: string;
260
+ skill: string;
261
+ url: string;
262
+ }
263
+ export interface RenderingTemplateDefinition {
264
+ /** Unique template id: "collection:name" */
265
+ id: string;
266
+ /** Unique template name (kebab-case) */
267
+ name: string;
268
+ /** Display title */
269
+ title?: string;
270
+ /** Short description */
271
+ description: string;
272
+ /** Template type */
273
+ type: 'presentation' | 'document';
274
+ /** Tags for categorization */
275
+ tags?: string[];
276
+ /** Absolute paths to asset files */
277
+ assets: string[];
278
+ /** The template instructions (markdown) */
279
+ instructions: string;
280
+ }
281
+ export type RenderingTemplateDefinitionRef = Omit<RenderingTemplateDefinition, 'instructions'> & {
282
+ /** Absolute API path to fetch the full template definition */
283
+ path: string;
284
+ };
285
+ export interface AppManifest extends AppManifestData {
286
+ id: string;
287
+ account: string;
288
+ created_at: string;
289
+ updated_at: string;
290
+ }
291
+ export interface AppInstallation {
292
+ id: string;
293
+ project: string;
294
+ manifest: string;
295
+ settings?: Record<string, any>;
296
+ created_at: string;
297
+ updated_at: string;
298
+ }
299
+ export interface AppInstallationWithManifest extends Omit<AppInstallation, 'manifest'> {
300
+ manifest: AppManifest;
301
+ }
302
+ export interface AppInstallationPayload {
303
+ app_id: string;
304
+ settings?: Record<string, any>;
305
+ }
306
+ export type AppInstallationKind = 'ui' | 'tools' | 'all';
307
+ /**
308
+ * A description of the tools provided by an app
309
+ */
310
+ export interface AppToolCollection {
311
+ /**
312
+ * The collection name
313
+ */
314
+ name: string;
315
+ /**
316
+ * Optional collection description
317
+ */
318
+ description?: string;
319
+ /**
320
+ * the tools provided by this collection
321
+ */
322
+ tools: {
323
+ name: string;
324
+ description?: string;
325
+ }[];
326
+ }
327
+ /**
328
+ * Information about a tool and its associated app installation.
329
+ * Used to look up which app provides a specific tool.
330
+ */
331
+ export interface ProjectToolInfo {
332
+ /**
333
+ * The tool name
334
+ */
335
+ tool_name: string;
336
+ /**
337
+ * Optional tool description
338
+ */
339
+ tool_description?: string;
340
+ /**
341
+ * The app name that provides this tool
342
+ */
343
+ app_name: string;
344
+ /**
345
+ * The app installation ID
346
+ */
347
+ app_install_id: string;
348
+ /**
349
+ * The app installation settings.
350
+ * Only included for agent tokens, not user tokens (security: may contain API keys).
351
+ */
352
+ settings?: Record<string, any>;
353
+ }
354
+ /**
355
+ * OAuth authentication status for an MCP tool collection
356
+ */
357
+ export interface OAuthAuthStatus {
358
+ collection_name: string;
359
+ authenticated: boolean;
360
+ mcp_server_url: string;
361
+ expires_at?: string;
362
+ scope?: string;
363
+ }
364
+ /**
365
+ * Response from OAuth authorization endpoint
366
+ */
367
+ export interface OAuthAuthorizeResponse {
368
+ authorization_url: string;
369
+ state: string;
370
+ }
371
+ /**
372
+ * Response from OAuth metadata endpoint
373
+ */
374
+ export interface OAuthMetadataResponse {
375
+ collection_name: string;
376
+ mcp_server_url: string;
377
+ metadata: any;
378
+ }
379
+ /**
380
+ * App navigation item display overrides.
381
+ * Allows customizing individual nav items for an app installation within the CompositeApp shell.
382
+ */
383
+ export interface CompositeAppNavItemOverride {
384
+ /** Used as identifier to match the nav item to override -- does not change route path */
385
+ route: string;
386
+ /** Hide this nav item from the sidebar */
387
+ hidden?: boolean;
388
+ /** Override the displayed nav item label */
389
+ label?: string;
390
+ /** Override the displayed nav item icon (Lucide icon name or SVG content string) */
391
+ icon?: string;
392
+ }
393
+ /**
394
+ * Configuration entry for an individual app in the CompositeApp shell.
395
+ * References an app installation by name and allows customizing its appearance.
396
+ */
397
+ export interface CompositeAppEntry {
398
+ /** App installation name (must match an installed app) */
399
+ appName: string;
400
+ /** Override the label displayed for the app */
401
+ labelOverride?: string;
402
+ /** Override the icon displayed for the app (Lucide icon name or SVG content string) */
403
+ iconOverride?: string;
404
+ /** Overrides for navigation items provided by the app */
405
+ navigationOverrides?: CompositeAppNavItemOverride[];
406
+ }
407
+ /**
408
+ * Logo overrides for the CompositeApp shell header.
409
+ * When provided, these URLs replace the default Vertesia logo.
410
+ */
411
+ export interface CompositeAppLogoOverrides {
412
+ /** URL for light mode logo (overrides default Vertesia logo) */
413
+ lightModeUrl?: string;
414
+ /** URL for dark mode logo (overrides default Vertesia logo) */
415
+ darkModeUrl?: string;
416
+ }
417
+ /**
418
+ * Message banner overrides for the shell header.
419
+ */
420
+ export type CompositeAppMessageStyle = 'foreground' | 'info' | 'success' | 'attention' | 'destructive';
421
+ export interface CompositeAppMessageOverrides {
422
+ /** Message text to display */
423
+ text?: string;
424
+ /** Whether the message is visible (defaults to true) */
425
+ visible?: boolean;
426
+ /** Text color style. Uses semantic colors */
427
+ style?: CompositeAppMessageStyle;
428
+ }
429
+ /**
430
+ * Switcher visibility overrides for the CompositeApp header.
431
+ */
432
+ export interface CompositeAppSwitchersOverrides {
433
+ /** Whether to show the organization switcher (defaults to true) */
434
+ showOrganization?: boolean;
435
+ /** Whether to show the project switcher (defaults to true) */
436
+ showProject?: boolean;
437
+ }
438
+ /**
439
+ * Card display overrides for the CompositeApp in the App Portal.
440
+ * Similar to AppManifest display properties, but specific to the CompositeApp card.
441
+ * Allows customers to customize the app portal card (not otherwise possible if using a
442
+ * shared, Vertesia-managed manifest across accounts).
443
+ */
444
+ export interface CompositeAppCardOverrides {
445
+ /** Whether to show the CompositeApp card in App Portal (default: false) */
446
+ visible?: boolean;
447
+ /** Override the card label (default: "Composite App") */
448
+ label?: string;
449
+ /** Override the card description */
450
+ description?: string;
451
+ /** Override the card icon (Lucide icon name or SVG content string) */
452
+ icon?: string;
453
+ /** Override the card color (e.g., "blue", "red", "purple") */
454
+ color?: string;
455
+ }
456
+ /**
457
+ * CompositeApp shell configuration.
458
+ * This is the main configuration interface for storing CompositeApp settings.
459
+ * Used as the MongoDB model for persisting CompositeApp configurations.
460
+ */
461
+ export interface CompositeAppConfig {
462
+ /**
463
+ * The unique identifier for this CompositeApp configuration
464
+ * Undefined if the configuration doesn't exists yet.
465
+ */
466
+ id?: string;
467
+ /** The project this CompositeApp belongs to */
468
+ project: string;
469
+ /** Card display overrides (includes visibility) */
470
+ card?: CompositeAppCardOverrides;
471
+ /** Optional logo overrides (replaces default Vertesia logo) */
472
+ logo?: CompositeAppLogoOverrides;
473
+ /** Optional message banner overrides */
474
+ message?: CompositeAppMessageOverrides;
475
+ /** Optional switcher visibility overrides */
476
+ switchers?: CompositeAppSwitchersOverrides;
477
+ /** List of apps to include in the CompositeApp */
478
+ apps: CompositeAppEntry[];
479
+ }
480
+ export type CompositeAppConfigPayload = Partial<Omit<CompositeAppConfig, 'id' | 'project'>>;
481
+ export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/apps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAExD;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,cAAc,CAAC;AAExD;;GAEG;AACH,UAAU,wBAAwB;IAC9B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,sBAAsB,CAAC;CACjC;AAED;;GAEG;AACH,M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;CAClB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;MAGE;IACF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,+DAA+D;IAC/D,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,wCAAwC;IACxC,OAAO,CAAC,EAAE,4BAA4B,CAAC;IACvC,6CAA6C;IAC7C,SAAS,CAAC,EAAE,8BAA8B,CAAC;IAC3C,kDAAkD;IAClD,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,MAAM,MAAM,yBAAyB,GAAG,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Types for ask_user tool UX configuration.
3
+ * These types enable the model to transmit structured UX parameters
4
+ * that render as interactive widgets instead of plain text.
5
+ */
6
+ /** Option for user selection in ask_user widget */
7
+ export interface AskUserOption {
8
+ /** Unique identifier returned when this option is selected */
9
+ id: string;
10
+ /** Display text for the option */
11
+ label: string;
12
+ /** Optional tooltip/description shown on hover */
13
+ description?: string;
14
+ }
15
+ /** UX configuration for ask_user messages */
16
+ export interface AskUserUxConfig {
17
+ /** Predefined options for the user to select from */
18
+ options?: AskUserOption[];
19
+ /** Visual style variant */
20
+ variant?: 'default' | 'warning' | 'info' | 'success';
21
+ /** Allow selecting multiple options (renders checkboxes instead of buttons) */
22
+ multiSelect?: boolean;
23
+ /** Show text input for free-form response */
24
+ allowFreeResponse?: boolean;
25
+ /** Placeholder text for free-form input */
26
+ placeholder?: string;
27
+ }
28
+ /** Message details structure for REQUEST_INPUT messages with UX config */
29
+ export interface AskUserMessageDetails {
30
+ /** UX configuration for rendering the ask_user widget */
31
+ ux?: AskUserUxConfig;
32
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ask-user.d.ts","sourceRoot":"","sources":["../../src/ask-user.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,mDAAmD;AACnD,MAAM,WAAW,aAAa;IAC1B,8DAA8D;IAC9D,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC5B,qDAAqD;IACrD,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,2BAA2B;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;IACrD,+EAA+E;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6CAA6C;IAC7C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,0EAA0E;AAC1E,MAAM,WAAW,qBAAqB;IAClC,yDAAyD;IACzD,EAAE,CAAC,EAAE,eAAe,CAAC;CACxB"}
@@ -0,0 +1,49 @@
1
+ export type AuditAction = 'create' | 'update' | 'delete' | 'bulk_update' | 'bulk_delete' | 'attach' | 'detach' | 'publish' | 'unpublish';
2
+ export interface AuditTrailEvent {
3
+ event_type: 'audit';
4
+ action: AuditAction;
5
+ resource_type: string;
6
+ resource_id: string;
7
+ timestamp: string;
8
+ request_id: string;
9
+ status: number;
10
+ success: boolean;
11
+ principal_id: string | null;
12
+ principal_type: string | null;
13
+ principal_user_id: string | null;
14
+ roles: string[];
15
+ account_id: string | null;
16
+ project_id: string | null;
17
+ tenant_id: string | null;
18
+ account_name: string | null;
19
+ project_name: string | null;
20
+ }
21
+ export interface AuditTrailQuery {
22
+ /** Filter by action types */
23
+ actions?: AuditAction[];
24
+ /** Filter by resource types */
25
+ resourceTypes?: string[];
26
+ /** Filter by resource ID */
27
+ resourceId?: string;
28
+ /** Filter by principal ID (matches principal_id column — API keys, service accounts) */
29
+ principalId?: string;
30
+ /** Filter by principal user ID (matches principal_user_id column — human users) */
31
+ principalUserId?: string;
32
+ /** Filter by project ID */
33
+ projectId?: string;
34
+ /** Start time (ISO string) */
35
+ from?: string;
36
+ /** End time (ISO string) */
37
+ to?: string;
38
+ /** Pagination: number of items to return (default 50, max 200) */
39
+ limit?: number;
40
+ /** Pagination: offset */
41
+ offset?: number;
42
+ }
43
+ export interface AuditTrailResponse {
44
+ events: AuditTrailEvent[];
45
+ /** Whether there are more events after this page */
46
+ hasNext: boolean;
47
+ limit: number;
48
+ offset: number;
49
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audit-trail.d.ts","sourceRoot":"","sources":["../../src/audit-trail.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GACjB,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,aAAa,GACb,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B;AAED,MAAM,WAAW,eAAe;IAC5B,6BAA6B;IAC7B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,+BAA+B;IAC/B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wFAAwF;IACxF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IAC/B,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,oDAAoD;IACpD,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,21 @@
1
+ import { EmailChannel, UserChannel } from "./interaction.js";
2
+ /**
3
+ * Find the email channel from a list of channels.
4
+ * @returns The email channel if found, undefined otherwise
5
+ */
6
+ export declare function findEmailChannel(channels?: UserChannel[]): EmailChannel | undefined;
7
+ /**
8
+ * Check if email channel is enabled in the channels list.
9
+ */
10
+ export declare function hasEmailChannel(channels?: UserChannel[]): boolean;
11
+ /**
12
+ * Update the email channel in a channels array (immutable).
13
+ * Returns a new array with the updated channel.
14
+ * If no email channel exists and to_email is provided, creates one.
15
+ */
16
+ export declare function updateEmailChannel(channels: UserChannel[] | undefined, updates: Partial<Omit<EmailChannel, "type">>): UserChannel[];
17
+ /**
18
+ * Update email threading info after sending or receiving an email.
19
+ * Adds the new messageId to references and updates in_reply_to.
20
+ */
21
+ export declare function updateEmailThreading(channels: UserChannel[] | undefined, messageId: string, subject?: string): UserChannel[];
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/channels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAkB,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE7E;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,GAAG,YAAY,GAAG,SAAS,CAEnF;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,GAAG,OAAO,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAC9B,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EACnC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,GAC7C,WAAW,EAAE,CAoBf;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAChC,QAAQ,EAAE,WAAW,EAAE,GAAG,SAAS,EACnC,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACjB,WAAW,EAAE,CAcf"}
@@ -0,0 +1,31 @@
1
+ export interface FindPayload {
2
+ query: Record<string, any>;
3
+ offset?: number;
4
+ limit?: number;
5
+ select?: string;
6
+ all_revisions?: boolean;
7
+ from_root?: string;
8
+ }
9
+ export interface GenericCommandResponse {
10
+ status: string;
11
+ message: string;
12
+ err?: any;
13
+ details?: any;
14
+ }
15
+ export interface BulkOperationPayload {
16
+ /**
17
+ * The operation name
18
+ */
19
+ name: "change_type" | "delete" | "start_workflow" | "update";
20
+ /**
21
+ * The IDs of the objects to operate on
22
+ */
23
+ ids: string[];
24
+ /**
25
+ * The operation parameters.
26
+ */
27
+ params: Record<string, any>;
28
+ }
29
+ export interface BulkOperationResult {
30
+ status: "in_progress" | "completed" | "failed";
31
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAGD,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,OAAO,CAAC,EAAE,GAAG,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,IAAI,EAAE,aAAa,GAAG,QAAQ,GAAG,gBAAgB,GAAG,QAAQ,CAAC;IAE7D;;OAEG;IACH,GAAG,EAAE,MAAM,EAAE,CAAC;IAEd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAChC,MAAM,EAAE,aAAa,GAAG,WAAW,GAAG,QAAQ,CAAC;CAClD"}