@vertesia/common 1.5.0-dev.20260806.125520Z → 1.5.0-dev.20260826.064249Z

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 (458) hide show
  1. package/lib/access-control.d.ts +0 -14
  2. package/lib/access-control.d.ts.map +1 -1
  3. package/lib/access-control.js +0 -23
  4. package/lib/access-control.js.map +1 -1
  5. package/lib/account-values.d.ts +0 -10
  6. package/lib/account-values.d.ts.map +1 -1
  7. package/lib/account-values.js +0 -44
  8. package/lib/account-values.js.map +1 -1
  9. package/lib/api-contract/components.generated.json +40303 -0
  10. package/lib/api-contract/index.d.ts +186 -0
  11. package/lib/api-contract/index.d.ts.map +1 -0
  12. package/lib/api-contract/index.js +554 -0
  13. package/lib/api-contract/index.js.map +1 -0
  14. package/lib/api-schemas/adapter.d.ts +1 -0
  15. package/lib/api-schemas/adapter.d.ts.map +1 -1
  16. package/lib/api-schemas/adapter.js +1 -1
  17. package/lib/api-schemas/adapter.js.map +1 -1
  18. package/lib/api-schemas/agent-communication.d.ts +199 -0
  19. package/lib/api-schemas/agent-communication.d.ts.map +1 -0
  20. package/lib/api-schemas/agent-communication.js +150 -0
  21. package/lib/api-schemas/agent-communication.js.map +1 -0
  22. package/lib/api-schemas/agent-runs.d.ts +723 -0
  23. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  24. package/lib/api-schemas/agent-runs.js +44 -2
  25. package/lib/api-schemas/agent-runs.js.map +1 -1
  26. package/lib/api-schemas/app-lifecycle.d.ts +19 -0
  27. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  28. package/lib/api-schemas/app-lifecycle.js +34 -4
  29. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  30. package/lib/api-schemas/app-runtime.d.ts +9946 -8884
  31. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  32. package/lib/api-schemas/app-runtime.js +7 -0
  33. package/lib/api-schemas/app-runtime.js.map +1 -1
  34. package/lib/api-schemas/apps.d.ts +1 -0
  35. package/lib/api-schemas/apps.d.ts.map +1 -1
  36. package/lib/api-schemas/apps.js +4 -3
  37. package/lib/api-schemas/apps.js.map +1 -1
  38. package/lib/api-schemas/content-query.d.ts +39 -0
  39. package/lib/api-schemas/content-query.d.ts.map +1 -0
  40. package/lib/api-schemas/content-query.js +30 -0
  41. package/lib/api-schemas/content-query.js.map +1 -0
  42. package/lib/api-schemas/content.d.ts +966 -30
  43. package/lib/api-schemas/content.d.ts.map +1 -1
  44. package/lib/api-schemas/content.js +82 -15
  45. package/lib/api-schemas/content.js.map +1 -1
  46. package/lib/api-schemas/dashboard.d.ts +4 -0
  47. package/lib/api-schemas/dashboard.d.ts.map +1 -1
  48. package/lib/api-schemas/dashboard.js +3 -0
  49. package/lib/api-schemas/dashboard.js.map +1 -1
  50. package/lib/api-schemas/document-processing.d.ts +411 -0
  51. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  52. package/lib/api-schemas/environment.d.ts +2 -0
  53. package/lib/api-schemas/environment.d.ts.map +1 -1
  54. package/lib/api-schemas/events.d.ts +1245 -8
  55. package/lib/api-schemas/events.d.ts.map +1 -1
  56. package/lib/api-schemas/events.js +4 -1
  57. package/lib/api-schemas/events.js.map +1 -1
  58. package/lib/api-schemas/files.d.ts +17 -0
  59. package/lib/api-schemas/files.d.ts.map +1 -1
  60. package/lib/api-schemas/files.js +23 -0
  61. package/lib/api-schemas/files.js.map +1 -1
  62. package/lib/api-schemas/group.d.ts +7 -0
  63. package/lib/api-schemas/group.d.ts.map +1 -1
  64. package/lib/api-schemas/group.js +9 -0
  65. package/lib/api-schemas/group.js.map +1 -1
  66. package/lib/api-schemas/index.d.ts +4 -0
  67. package/lib/api-schemas/index.d.ts.map +1 -1
  68. package/lib/api-schemas/index.js +4 -0
  69. package/lib/api-schemas/index.js.map +1 -1
  70. package/lib/api-schemas/integrations.d.ts +5 -5
  71. package/lib/api-schemas/integrations.d.ts.map +1 -1
  72. package/lib/api-schemas/integrations.js +15 -2
  73. package/lib/api-schemas/integrations.js.map +1 -1
  74. package/lib/api-schemas/interaction.d.ts +9469 -1092
  75. package/lib/api-schemas/interaction.d.ts.map +1 -1
  76. package/lib/api-schemas/interaction.js +161 -9
  77. package/lib/api-schemas/interaction.js.map +1 -1
  78. package/lib/api-schemas/oauth-server.d.ts +131 -3
  79. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  80. package/lib/api-schemas/oauth-server.js +137 -3
  81. package/lib/api-schemas/oauth-server.js.map +1 -1
  82. package/lib/api-schemas/process.d.ts +1295 -0
  83. package/lib/api-schemas/process.d.ts.map +1 -1
  84. package/lib/api-schemas/process.js +309 -1
  85. package/lib/api-schemas/process.js.map +1 -1
  86. package/lib/api-schemas/project-configuration.d.ts +1388 -11
  87. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  88. package/lib/api-schemas/project-configuration.js +6 -2
  89. package/lib/api-schemas/project-configuration.js.map +1 -1
  90. package/lib/api-schemas/project.d.ts +2094 -30
  91. package/lib/api-schemas/project.d.ts.map +1 -1
  92. package/lib/api-schemas/registry.d.ts +88965 -66382
  93. package/lib/api-schemas/registry.d.ts.map +1 -1
  94. package/lib/api-schemas/registry.js +234 -281
  95. package/lib/api-schemas/registry.js.map +1 -1
  96. package/lib/api-schemas/schema-primitives.d.ts +4 -0
  97. package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
  98. package/lib/api-schemas/schema-primitives.js +10 -0
  99. package/lib/api-schemas/schema-primitives.js.map +1 -1
  100. package/lib/api-schemas/store.d.ts +6899 -40
  101. package/lib/api-schemas/store.d.ts.map +1 -1
  102. package/lib/api-schemas/store.js +53 -8
  103. package/lib/api-schemas/store.js.map +1 -1
  104. package/lib/api-schemas/tools.d.ts +115 -0
  105. package/lib/api-schemas/tools.d.ts.map +1 -1
  106. package/lib/api-schemas/tools.js +55 -0
  107. package/lib/api-schemas/tools.js.map +1 -1
  108. package/lib/api-schemas/view-execution.d.ts +330 -798
  109. package/lib/api-schemas/view-execution.d.ts.map +1 -1
  110. package/lib/api-schemas/view-execution.js +26 -2
  111. package/lib/api-schemas/view-execution.js.map +1 -1
  112. package/lib/api-schemas/views.d.ts +452 -2394
  113. package/lib/api-schemas/views.d.ts.map +1 -1
  114. package/lib/api-schemas/views.js +119 -3
  115. package/lib/api-schemas/views.js.map +1 -1
  116. package/lib/api-schemas/workflow-runs.d.ts +396 -5
  117. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  118. package/lib/api-schemas/workflow-runs.js +9 -7
  119. package/lib/api-schemas/workflow-runs.js.map +1 -1
  120. package/lib/apps.d.ts +8 -145
  121. package/lib/apps.d.ts.map +1 -1
  122. package/lib/apps.js +1 -54
  123. package/lib/apps.js.map +1 -1
  124. package/lib/ask-user.d.ts +2 -1
  125. package/lib/ask-user.d.ts.map +1 -1
  126. package/lib/audit-trail.d.ts +2 -2
  127. package/lib/audit-trail.d.ts.map +1 -1
  128. package/lib/audit-trail.js +2 -2
  129. package/lib/audit-trail.js.map +1 -1
  130. package/lib/browser-credentials.d.ts +2 -7
  131. package/lib/browser-credentials.d.ts.map +1 -1
  132. package/lib/common.d.ts +4 -1
  133. package/lib/common.d.ts.map +1 -1
  134. package/lib/content-query.d.ts +5 -0
  135. package/lib/content-query.d.ts.map +1 -0
  136. package/lib/content-query.js +2 -0
  137. package/lib/content-query.js.map +1 -0
  138. package/lib/data-platform.d.ts +4 -46
  139. package/lib/data-platform.d.ts.map +1 -1
  140. package/lib/data-platform.js.map +1 -1
  141. package/lib/email.d.ts +12 -18
  142. package/lib/email.d.ts.map +1 -1
  143. package/lib/email.js.map +1 -1
  144. package/lib/environment.d.ts +0 -10
  145. package/lib/environment.d.ts.map +1 -1
  146. package/lib/environment.js +1 -12
  147. package/lib/environment.js.map +1 -1
  148. package/lib/facets.d.ts +0 -4
  149. package/lib/facets.d.ts.map +1 -1
  150. package/lib/group.d.ts +2 -12
  151. package/lib/group.d.ts.map +1 -1
  152. package/lib/group.js.map +1 -1
  153. package/lib/index.d.ts +3 -10
  154. package/lib/index.d.ts.map +1 -1
  155. package/lib/index.js +2 -10
  156. package/lib/index.js.map +1 -1
  157. package/lib/integrations.d.ts +0 -26
  158. package/lib/integrations.d.ts.map +1 -1
  159. package/lib/integrations.js +0 -6
  160. package/lib/integrations.js.map +1 -1
  161. package/lib/interaction.d.ts +10 -222
  162. package/lib/interaction.d.ts.map +1 -1
  163. package/lib/interaction.js +0 -31
  164. package/lib/interaction.js.map +1 -1
  165. package/lib/meters.d.ts +5 -10
  166. package/lib/meters.d.ts.map +1 -1
  167. package/lib/meters.js +1 -9
  168. package/lib/meters.js.map +1 -1
  169. package/lib/oauth-scopes.d.ts +2 -16
  170. package/lib/oauth-scopes.d.ts.map +1 -1
  171. package/lib/oauth-scopes.js +9 -49
  172. package/lib/oauth-scopes.js.map +1 -1
  173. package/lib/oauth-server.d.ts +16 -195
  174. package/lib/oauth-server.d.ts.map +1 -1
  175. package/lib/payload.d.ts +2 -5
  176. package/lib/payload.d.ts.map +1 -1
  177. package/lib/pending-asks.d.ts +9 -41
  178. package/lib/pending-asks.d.ts.map +1 -1
  179. package/lib/platform-event.d.ts +4 -142
  180. package/lib/platform-event.d.ts.map +1 -1
  181. package/lib/platform-event.js.map +1 -1
  182. package/lib/project.d.ts +7 -46
  183. package/lib/project.d.ts.map +1 -1
  184. package/lib/project.js +2 -132
  185. package/lib/project.js.map +1 -1
  186. package/lib/prompt.d.ts +4 -7
  187. package/lib/prompt.d.ts.map +1 -1
  188. package/lib/prompt.js.map +1 -1
  189. package/lib/query.d.ts +0 -8
  190. package/lib/query.d.ts.map +1 -1
  191. package/lib/rate-limiter.d.ts +4 -3
  192. package/lib/rate-limiter.d.ts.map +1 -1
  193. package/lib/runs.d.ts +5 -1
  194. package/lib/runs.d.ts.map +1 -1
  195. package/lib/schema-for-extraction.d.ts +0 -1
  196. package/lib/schema-for-extraction.d.ts.map +1 -1
  197. package/lib/schema-for-extraction.js +1 -1
  198. package/lib/schema-for-extraction.js.map +1 -1
  199. package/lib/secrets.d.ts +2 -1
  200. package/lib/secrets.d.ts.map +1 -1
  201. package/lib/skill.d.ts +0 -13
  202. package/lib/skill.d.ts.map +1 -1
  203. package/lib/store/activity-catalog.d.ts +2 -0
  204. package/lib/store/activity-catalog.d.ts.map +1 -1
  205. package/lib/store/agent-approval.d.ts +0 -1
  206. package/lib/store/agent-approval.d.ts.map +1 -1
  207. package/lib/store/agent-approval.js +0 -3
  208. package/lib/store/agent-approval.js.map +1 -1
  209. package/lib/store/agent-run.d.ts +32 -69
  210. package/lib/store/agent-run.d.ts.map +1 -1
  211. package/lib/store/collections.d.ts +2 -6
  212. package/lib/store/collections.d.ts.map +1 -1
  213. package/lib/store/collections.js.map +1 -1
  214. package/lib/store/conversation-state.d.ts +11 -12
  215. package/lib/store/conversation-state.d.ts.map +1 -1
  216. package/lib/store/conversation-state.js +0 -18
  217. package/lib/store/conversation-state.js.map +1 -1
  218. package/lib/store/doc-analyzer.d.ts +0 -22
  219. package/lib/store/doc-analyzer.d.ts.map +1 -1
  220. package/lib/store/dsl-workflow.d.ts +18 -5
  221. package/lib/store/dsl-workflow.d.ts.map +1 -1
  222. package/lib/store/dsl-workflow.js.map +1 -1
  223. package/lib/store/grounded-extraction.d.ts +0 -14
  224. package/lib/store/grounded-extraction.d.ts.map +1 -1
  225. package/lib/store/grounded-extraction.js +1 -7
  226. package/lib/store/grounded-extraction.js.map +1 -1
  227. package/lib/store/index.d.ts +0 -5
  228. package/lib/store/index.d.ts.map +1 -1
  229. package/lib/store/index.js +0 -6
  230. package/lib/store/index.js.map +1 -1
  231. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  232. package/lib/store/intake-policy-schema.generated.js +305 -1
  233. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  234. package/lib/store/process.d.ts +43 -1
  235. package/lib/store/process.d.ts.map +1 -1
  236. package/lib/store/process.js.map +1 -1
  237. package/lib/store/rendering.d.ts +3 -5
  238. package/lib/store/rendering.d.ts.map +1 -1
  239. package/lib/store/rendering.js +0 -4
  240. package/lib/store/rendering.js.map +1 -1
  241. package/lib/store/schedule.d.ts +0 -16
  242. package/lib/store/schedule.d.ts.map +1 -1
  243. package/lib/store/schedule.js.map +1 -1
  244. package/lib/store/signals.d.ts +12 -0
  245. package/lib/store/signals.d.ts.map +1 -1
  246. package/lib/store/store.d.ts +80 -94
  247. package/lib/store/store.d.ts.map +1 -1
  248. package/lib/store/store.js +5 -25
  249. package/lib/store/store.js.map +1 -1
  250. package/lib/store/workflow.d.ts +35 -86
  251. package/lib/store/workflow.d.ts.map +1 -1
  252. package/lib/store/workflow.js +0 -47
  253. package/lib/store/workflow.js.map +1 -1
  254. package/lib/sts-errors.d.ts +0 -1
  255. package/lib/sts-errors.d.ts.map +1 -1
  256. package/lib/sts-token-types.d.ts +2 -8
  257. package/lib/sts-token-types.d.ts.map +1 -1
  258. package/lib/sts-token-types.js +1 -19
  259. package/lib/sts-token-types.js.map +1 -1
  260. package/lib/tools.d.ts +6 -1
  261. package/lib/tools.d.ts.map +1 -1
  262. package/lib/transient-tokens.d.ts +0 -2
  263. package/lib/transient-tokens.d.ts.map +1 -1
  264. package/lib/user.d.ts +0 -17
  265. package/lib/user.d.ts.map +1 -1
  266. package/lib/user.js.map +1 -1
  267. package/lib/utils/schemas.d.ts +2 -24
  268. package/lib/utils/schemas.d.ts.map +1 -1
  269. package/lib/utils/schemas.js +0 -151
  270. package/lib/utils/schemas.js.map +1 -1
  271. package/lib/vertesia-common.js +3 -4
  272. package/lib/vertesia-common.js.map +1 -1
  273. package/lib/views.d.ts +23 -27
  274. package/lib/views.d.ts.map +1 -1
  275. package/lib/views.js +5 -26
  276. package/lib/views.js.map +1 -1
  277. package/lib/workflow-analytics.d.ts +12 -34
  278. package/lib/workflow-analytics.d.ts.map +1 -1
  279. package/package.json +12 -6
  280. package/src/access-control.ts +0 -26
  281. package/src/account-values.ts +0 -49
  282. package/src/agent-resources.test.ts +1 -12
  283. package/src/api-contract/components.contract.test.ts +99 -0
  284. package/src/api-contract/components.generated.json +40303 -0
  285. package/src/api-contract/index.ts +664 -0
  286. package/src/api-schemas/adapter.ts +1 -1
  287. package/src/api-schemas/agent-communication.contract.test.ts +90 -0
  288. package/src/api-schemas/agent-communication.ts +169 -0
  289. package/src/api-schemas/agent-runs.ts +46 -1
  290. package/src/api-schemas/api-discriminators.test.ts +185 -0
  291. package/src/api-schemas/app-lifecycle.ts +39 -4
  292. package/src/api-schemas/app-runtime.ts +8 -0
  293. package/src/api-schemas/apps.ts +4 -3
  294. package/src/api-schemas/content-query.ts +31 -0
  295. package/src/api-schemas/content.ts +88 -15
  296. package/src/api-schemas/dashboard.contract.test.ts +16 -5
  297. package/src/api-schemas/dashboard.ts +3 -0
  298. package/src/api-schemas/events.ts +9 -1
  299. package/src/api-schemas/files.ts +27 -0
  300. package/src/api-schemas/group.ts +10 -0
  301. package/src/api-schemas/index.ts +4 -0
  302. package/src/api-schemas/integrations.ts +15 -2
  303. package/src/api-schemas/interaction.contract.test.ts +204 -1
  304. package/src/api-schemas/interaction.ts +176 -8
  305. package/src/api-schemas/llumiverse.contract.test.ts +18 -2
  306. package/src/api-schemas/oauth-server.ts +152 -3
  307. package/src/api-schemas/oauth.contract.test.ts +64 -1
  308. package/src/api-schemas/process.ts +343 -1
  309. package/src/api-schemas/project-configuration.ts +11 -7
  310. package/src/api-schemas/project.contract.test.ts +64 -6
  311. package/src/api-schemas/registry.ts +290 -300
  312. package/src/api-schemas/schema-primitives.ts +13 -0
  313. package/src/api-schemas/store.contract.test.ts +30 -1
  314. package/src/api-schemas/store.ts +58 -11
  315. package/src/api-schemas/tools.ts +62 -0
  316. package/src/api-schemas/view-execution.ts +28 -2
  317. package/src/api-schemas/views.contract.test.ts +119 -0
  318. package/src/api-schemas/views.ts +142 -3
  319. package/src/api-schemas/workflow-runs.ts +9 -7
  320. package/src/api-schemas/zeno-response-contracts.test.ts +320 -0
  321. package/src/apps.test.ts +2 -40
  322. package/src/apps.ts +14 -181
  323. package/src/ask-user.ts +1 -1
  324. package/src/audit-trail.ts +3 -3
  325. package/src/browser-credentials.ts +3 -7
  326. package/src/common.ts +13 -1
  327. package/src/content-query.ts +5 -0
  328. package/src/data-platform.ts +4 -51
  329. package/src/email.ts +24 -18
  330. package/src/environment.ts +1 -14
  331. package/src/facets.ts +0 -6
  332. package/src/group.ts +2 -12
  333. package/src/index.ts +3 -15
  334. package/src/integrations.ts +0 -51
  335. package/src/interaction.ts +12 -271
  336. package/src/meters.ts +10 -11
  337. package/src/oauth-scopes.test.ts +15 -0
  338. package/src/oauth-scopes.ts +10 -64
  339. package/src/oauth-server.ts +28 -215
  340. package/src/payload.ts +1 -6
  341. package/src/pending-asks.ts +17 -42
  342. package/src/platform-event.ts +3 -156
  343. package/src/project.ts +12 -160
  344. package/src/prompt.ts +9 -8
  345. package/src/query.ts +0 -9
  346. package/src/rate-limiter.ts +3 -3
  347. package/src/runs.ts +8 -0
  348. package/src/schema-for-extraction.ts +1 -1
  349. package/src/secrets.ts +3 -0
  350. package/src/skill.ts +0 -15
  351. package/src/store/activity-catalog.ts +3 -0
  352. package/src/store/agent-approval.ts +0 -4
  353. package/src/store/agent-run.ts +39 -93
  354. package/src/store/collections.ts +3 -6
  355. package/src/store/conversation-state.ts +12 -25
  356. package/src/store/doc-analyzer.ts +0 -26
  357. package/src/store/dsl-workflow.ts +24 -5
  358. package/src/store/grounded-extraction.ts +0 -18
  359. package/src/store/index.ts +0 -6
  360. package/src/store/intake-policy-schema.generated.ts +319 -1
  361. package/src/store/process.ts +84 -0
  362. package/src/store/rendering.ts +3 -8
  363. package/src/store/schedule.ts +0 -19
  364. package/src/store/signals.ts +14 -0
  365. package/src/store/store.ts +118 -127
  366. package/src/store/workflow.ts +32 -120
  367. package/src/sts-errors.ts +0 -2
  368. package/src/sts-token-types.ts +3 -28
  369. package/src/tools.ts +15 -0
  370. package/src/transient-tokens.ts +0 -2
  371. package/src/user.ts +0 -20
  372. package/src/utils/schemas.ts +2 -159
  373. package/src/views.ts +50 -47
  374. package/src/workflow-analytics.ts +12 -40
  375. package/tsconfig.dist.json +4 -1
  376. package/lib/Progress.d.ts +0 -22
  377. package/lib/Progress.d.ts.map +0 -1
  378. package/lib/Progress.js +0 -57
  379. package/lib/Progress.js.map +0 -1
  380. package/lib/agent-request-template.d.ts +0 -4
  381. package/lib/agent-request-template.d.ts.map +0 -1
  382. package/lib/agent-request-template.js +0 -46
  383. package/lib/agent-request-template.js.map +0 -1
  384. package/lib/channels.d.ts +0 -22
  385. package/lib/channels.d.ts.map +0 -1
  386. package/lib/channels.js +0 -57
  387. package/lib/channels.js.map +0 -1
  388. package/lib/host-utils.d.ts +0 -8
  389. package/lib/host-utils.d.ts.map +0 -1
  390. package/lib/host-utils.js +0 -84
  391. package/lib/host-utils.js.map +0 -1
  392. package/lib/platform-event-validation.d.ts +0 -45
  393. package/lib/platform-event-validation.d.ts.map +0 -1
  394. package/lib/platform-event-validation.js +0 -336
  395. package/lib/platform-event-validation.js.map +0 -1
  396. package/lib/store/hive-memory.d.ts +0 -117
  397. package/lib/store/hive-memory.d.ts.map +0 -1
  398. package/lib/store/hive-memory.js +0 -2
  399. package/lib/store/hive-memory.js.map +0 -1
  400. package/lib/store/object-types.d.ts +0 -24
  401. package/lib/store/object-types.d.ts.map +0 -1
  402. package/lib/store/object-types.js +0 -95
  403. package/lib/store/object-types.js.map +0 -1
  404. package/lib/store/process-schema.d.ts +0 -561
  405. package/lib/store/process-schema.d.ts.map +0 -1
  406. package/lib/store/process-schema.js +0 -561
  407. package/lib/store/process-schema.js.map +0 -1
  408. package/lib/store/process-validation.d.ts +0 -17
  409. package/lib/store/process-validation.d.ts.map +0 -1
  410. package/lib/store/process-validation.js +0 -515
  411. package/lib/store/process-validation.js.map +0 -1
  412. package/lib/store/temporalio.d.ts +0 -17
  413. package/lib/store/temporalio.d.ts.map +0 -1
  414. package/lib/store/temporalio.js +0 -41
  415. package/lib/store/temporalio.js.map +0 -1
  416. package/lib/view-configuration-validation.d.ts +0 -15
  417. package/lib/view-configuration-validation.d.ts.map +0 -1
  418. package/lib/view-configuration-validation.js +0 -63
  419. package/lib/view-configuration-validation.js.map +0 -1
  420. package/lib/view-query-validation.d.ts +0 -13
  421. package/lib/view-query-validation.d.ts.map +0 -1
  422. package/lib/view-query-validation.js +0 -266
  423. package/lib/view-query-validation.js.map +0 -1
  424. package/lib/view-validation-helpers.d.ts +0 -15
  425. package/lib/view-validation-helpers.d.ts.map +0 -1
  426. package/lib/view-validation-helpers.js +0 -25
  427. package/lib/view-validation-helpers.js.map +0 -1
  428. package/lib/views-schema.d.ts +0 -1992
  429. package/lib/views-schema.d.ts.map +0 -1
  430. package/lib/views-schema.js +0 -674
  431. package/lib/views-schema.js.map +0 -1
  432. package/lib/views-validation.d.ts +0 -21
  433. package/lib/views-validation.d.ts.map +0 -1
  434. package/lib/views-validation.js +0 -164
  435. package/lib/views-validation.js.map +0 -1
  436. package/src/Progress.ts +0 -59
  437. package/src/agent-request-template.test.ts +0 -40
  438. package/src/agent-request-template.ts +0 -45
  439. package/src/channels.ts +0 -70
  440. package/src/host-utils.test.ts +0 -61
  441. package/src/host-utils.ts +0 -93
  442. package/src/platform-event-validation.test.ts +0 -251
  443. package/src/platform-event-validation.ts +0 -372
  444. package/src/project.test.ts +0 -44
  445. package/src/store/hive-memory.ts +0 -167
  446. package/src/store/object-types.ts +0 -123
  447. package/src/store/process-schema.test.ts +0 -149
  448. package/src/store/process-schema.ts +0 -564
  449. package/src/store/process-validation.test.ts +0 -635
  450. package/src/store/process-validation.ts +0 -646
  451. package/src/store/temporalio.ts +0 -54
  452. package/src/view-configuration-validation.ts +0 -74
  453. package/src/view-query-validation.test.ts +0 -21
  454. package/src/view-query-validation.ts +0 -319
  455. package/src/view-validation-helpers.ts +0 -28
  456. package/src/views-schema.test.ts +0 -372
  457. package/src/views-schema.ts +0 -689
  458. package/src/views-validation.ts +0 -234
@@ -10,14 +10,12 @@ import type {
10
10
  IssueTokenForbiddenResponseSchema,
11
11
  IssueTokenRequestSchema,
12
12
  IssueTokenResponseSchema,
13
+ IssueTokenUnavailableResponseSchema,
13
14
  ProjectTokenRequestSchema,
14
15
  ServiceAccountTokenRequestSchema,
15
16
  SigningAlgorithmSchema,
16
- TokenTypeSchema,
17
17
  UserTokenRequestSchema,
18
18
  } from './api-schemas/sts.js';
19
-
20
- export type TokenType = z.infer<typeof TokenTypeSchema>;
21
19
  export type SigningAlgorithm = z.infer<typeof SigningAlgorithmSchema>;
22
20
 
23
21
  // API key doesn't need account/project as it's determined from the key
@@ -59,31 +57,6 @@ export interface RevokeTokenRequest {
59
57
  token: string;
60
58
  }
61
59
 
62
- // Helper type guards for type narrowing
63
- export function isApiKeyRequest(req: IssueTokenRequest): req is ApiKeyTokenRequest {
64
- return req.type === 'apikey';
65
- }
66
-
67
- export function isUserRequest(req: IssueTokenRequest): req is UserTokenRequest {
68
- return req.type === 'user';
69
- }
70
-
71
- export function isProjectRequest(req: IssueTokenRequest): req is ProjectTokenRequest {
72
- return req.type === 'project';
73
- }
74
-
75
- export function isEnvironmentRequest(req: IssueTokenRequest): req is EnvironmentTokenRequest {
76
- return req.type === 'environment';
77
- }
78
-
79
- export function isAgentRequest(req: IssueTokenRequest): req is AgentTokenRequest {
80
- return req.type === 'agent';
81
- }
82
-
83
- export function isServiceAccountRequest(req: IssueTokenRequest): req is ServiceAccountTokenRequest {
84
- return req.type === 'service_account';
85
- }
86
-
87
60
  // Response types
88
61
  export interface TokenResponse {
89
62
  token: string;
@@ -99,3 +72,5 @@ export interface ValidateTokenResponse {
99
72
  payload?: unknown;
100
73
  error?: string;
101
74
  }
75
+
76
+ export type IssueTokenUnavailableResponse = z.infer<typeof IssueTokenUnavailableResponseSchema>;
package/src/tools.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import type { z } from 'zod';
2
2
  import type {
3
3
  AggregatedToolSchema,
4
+ InspectProjectToolQuerySchema,
4
5
  ListProjectToolsQuerySchema,
6
+ ProcessToolCompatibilityReasonSchema,
7
+ ProcessToolCompatibilitySchema,
8
+ ToolInspectionSchema,
9
+ ToolRuntimeContextSchema,
5
10
  ToolSourceSchema,
6
11
  ToolValidationResultSchema,
7
12
  ValidateToolNamesPayloadSchema,
@@ -15,6 +20,16 @@ export type ToolSource = z.infer<typeof ToolSourceSchema>;
15
20
 
16
21
  export type AggregatedTool = z.infer<typeof AggregatedToolSchema>;
17
22
 
23
+ export type ToolRuntimeContext = z.infer<typeof ToolRuntimeContextSchema>;
24
+
25
+ export type ProcessToolCompatibilityReason = z.infer<typeof ProcessToolCompatibilityReasonSchema>;
26
+
27
+ export type ProcessToolCompatibility = z.infer<typeof ProcessToolCompatibilitySchema>;
28
+
29
+ export type InspectProjectToolQuery = z.infer<typeof InspectProjectToolQuerySchema>;
30
+
31
+ export type ToolInspection = z.infer<typeof ToolInspectionSchema>;
32
+
18
33
  export type ListProjectToolsQuery = z.infer<typeof ListProjectToolsQuerySchema>;
19
34
 
20
35
  export type ToolValidationResult = z.infer<typeof ToolValidationResultSchema>;
@@ -18,8 +18,6 @@ export interface TransientToken<T> {
18
18
  updated_at: Date;
19
19
  }
20
20
 
21
- export interface CreateOrUpdateTransientTokenPayload<T> extends Partial<TransientToken<T>> {}
22
-
23
21
  /**
24
22
  * The invite payload as it crosses the wire, inferred from `./api-schemas/invites.js`. Every
25
23
  * reference is populated by the handlers before the response is built.
package/src/user.ts CHANGED
@@ -16,14 +16,9 @@ import type {
16
16
  UserRefSchema,
17
17
  UserSchema,
18
18
  } from './api-schemas/user.js';
19
- import type { ApiKey } from './apikey.js';
20
19
 
21
20
  export * from './account-values.js';
22
21
 
23
- export interface UserWithAccounts extends User {
24
- accounts: AccountRef[];
25
- }
26
-
27
22
  /**
28
23
  * The user and its update payload as they cross the wire.
29
24
  *
@@ -98,21 +93,6 @@ export type InviteAcceptanceResponse = z.infer<typeof InviteAcceptanceResponseSc
98
93
  export type InviteDeclineResponse = z.infer<typeof InviteDeclineResponseSchema>;
99
94
  export type AccountProjectsResponse = z.infer<typeof AccountProjectsResponseSchema>;
100
95
 
101
- type UserOrApiKey<T extends User | ApiKey> = T extends User ? User : ApiKey;
102
- type SessionType<T extends User | ApiKey> = T extends User ? 'user' : 'apikey';
103
- export interface SessionInfo<T extends User | ApiKey> {
104
- isNew?: boolean;
105
- type: SessionType<T>;
106
- subject: UserOrApiKey<T>;
107
- //User | ApiKey; // no user if using an apikey
108
- current_account: Account;
109
- //role: string; // TODO the role on the selected account
110
- accounts: AccountRef[];
111
- }
112
-
113
- export interface UserSessionInfo extends SessionInfo<User> {}
114
- export interface ApiKeySessionInfo extends SessionInfo<ApiKey> {}
115
-
116
96
  export type OnboardingProgress = z.infer<typeof OnboardingProgressSchema>;
117
97
 
118
98
  /**
@@ -1,162 +1,5 @@
1
- import type { JSONSchema, ToolDefinition } from '@llumiverse/common';
2
- import { PromptRole } from '@llumiverse/common';
3
- import type { InCodePrompt, InteractionRefWithSchema, PopulatedInteraction } from '../interaction.js';
4
- import { type ExecutablePromptSegmentDef, PromptSegmentDefType } from '../prompt.js';
5
-
6
- /**
7
- * Sanitize a tool definition to only include fields expected by LLM APIs.
8
- * Removes extra fields like 'category', 'default', 'tools' that are
9
- * used internally but should not be sent to the LLM.
10
- */
11
- export function sanitizeToolDefinition(tool: ToolDefinition): ToolDefinition {
12
- return {
13
- name: tool.name,
14
- description: tool.description,
15
- input_schema: tool.input_schema,
16
- };
17
- }
18
-
19
- /**
20
- * Sanitize an array of tool definitions.
21
- */
22
- export function sanitizeToolDefinitions(tools: ToolDefinition[] | undefined): ToolDefinition[] | undefined {
23
- if (!tools) return tools;
24
- return tools.map(sanitizeToolDefinition);
25
- }
26
-
27
- // Remove custom properties from the JSON before sending further down execution pipeline.
28
- // Before stripping UI-only fields (editor, format), translate them into LLM-friendly
29
- // schema hints so the model knows the expected value format.
30
- export function removeExtraProperties<T>(schema: T): T {
31
- if (!schema) return schema;
32
- if (Array.isArray(schema)) {
33
- for (const item of schema) {
34
- removeExtraProperties(item);
35
- }
36
- } else if (typeof schema === 'object') {
37
- const obj = schema as Record<string, unknown>;
38
-
39
- // If this looks like a property definition (has editor/format for document/media),
40
- // enrich it with type and description hints before stripping.
41
- if (isDocumentProperty(obj)) {
42
- enrichDocumentProperty(obj);
43
- }
44
-
45
- for (const [key, value] of Object.entries(obj)) {
46
- if (key === 'editor' && (value === 'textarea' || value === 'document' || value === 'media')) {
47
- delete obj[key];
48
- } else if (key === 'format' && (value === 'textarea' || value === 'document' || value === 'media')) {
49
- delete obj[key];
50
- } else if (typeof value === 'object') {
51
- removeExtraProperties(value);
52
- }
53
- }
54
- }
55
- return schema;
56
- }
57
-
58
- /**
59
- * Returns true if the schema property represents a document reference
60
- * (identified by editor: "document" or format: "document" / "media").
61
- */
62
- function isDocumentProperty(obj: Record<string, unknown>): boolean {
63
- return obj.editor === 'document' || obj.format === 'document' || obj.format === 'media';
64
- }
65
-
66
- /**
67
- * Canonical hint string appended to document property descriptions.
68
- * Used by ensureDocumentStorePrefix (in @dglabs/workflows) to detect document
69
- * properties after serialization, when editor/format fields have been stripped.
70
- * Exported so both packages use the exact same string — do NOT duplicate.
71
- */
72
- export const DOCUMENT_STORE_HINT = "Use 'store:<document_id>' format to reference a document from the content store.";
73
-
74
- /**
75
- * Enriches a document property schema with LLM-friendly hints:
76
- * - Sets type to "string" if not already set
77
- * - Appends a store: prefix hint to the description
78
- */
79
- function enrichDocumentProperty(obj: Record<string, unknown>): void {
80
- // Set type to string if missing (document references are string IDs)
81
- if (!obj.type) {
82
- obj.type = 'string';
83
- }
84
-
85
- // Always ensure the canonical hint is present in the description.
86
- // Check for the exact hint string (not just 'store:') to avoid missing detection
87
- // after serialization when only the description survives.
88
- if (!obj.description) {
89
- obj.description = DOCUMENT_STORE_HINT;
90
- } else if (typeof obj.description === 'string' && !obj.description.includes(DOCUMENT_STORE_HINT)) {
91
- obj.description = `${obj.description} ${DOCUMENT_STORE_HINT}`;
92
- }
93
- }
94
-
95
- export function mergeJSONSchemas(schemas: JSONSchema[]) {
96
- const props: Record<string, JSONSchema> = {};
97
- const required: string[] = [];
98
- for (const schema of schemas) {
99
- if (schema.properties) {
100
- if (schema.required) {
101
- for (const prop of schema.required as string[]) {
102
- if (!required.includes(prop)) required.push(prop);
103
- }
104
- }
105
- Object.assign(props, schema.properties);
106
- }
107
- }
108
- const schema: JSONSchema | null =
109
- Object.keys(props).length > 0 ? { properties: props, required, type: 'object' } : null;
110
- return schema;
111
- }
112
-
113
- export function _mergePromptsSchema(prompts: ExecutablePromptSegmentDef[]) {
114
- const props: Record<string, JSONSchema> = {};
115
- const required = new Set<string>();
116
- for (const prompt of prompts) {
117
- if (prompt.template?.inputSchema?.properties) {
118
- const schema = prompt.template?.inputSchema;
119
- if (schema.required) {
120
- for (const prop of schema.required as string[]) {
121
- required.add(prop);
122
- }
123
- }
124
- Object.assign(props, schema.properties);
125
- } else if (prompt.type === PromptSegmentDefType.chat) {
126
- Object.assign(props, {
127
- chat: {
128
- type: 'array',
129
- items: {
130
- type: 'object',
131
- properties: {
132
- role: {
133
- type: 'string',
134
- enum: [PromptRole.assistant, PromptRole.user],
135
- },
136
- content: { type: 'string' },
137
- },
138
- required: ['role', 'content'],
139
- },
140
- },
141
- });
142
- required.add('chat');
143
- }
144
- }
145
-
146
- const schema: JSONSchema | null =
147
- Object.keys(props).length > 0
148
- ? {
149
- properties: props,
150
- required: Array.from(required),
151
- }
152
- : null;
153
- return schema;
154
- }
155
-
156
- export function mergePromptsSchema(interaction: InteractionRefWithSchema | PopulatedInteraction) {
157
- if (!interaction.prompts) return null;
158
- return _mergePromptsSchema(interaction.prompts as ExecutablePromptSegmentDef[]);
159
- }
1
+ import type { JSONSchema } from '@llumiverse/common';
2
+ import type { InCodePrompt } from '../interaction.js';
160
3
 
161
4
  export function mergeInCodePromptSchemas(prompts: InCodePrompt[]) {
162
5
  const props: Record<string, JSONSchema> = {};
package/src/views.ts CHANGED
@@ -5,6 +5,7 @@ import type {
5
5
  PreviewViewExperienceRequestSchema,
6
6
  ViewExecutionDefinitionSchema,
7
7
  ViewExecutionQueryPlanSchema,
8
+ ViewExecutionRerankResultSchema,
8
9
  ViewExecutionResultSchema,
9
10
  ViewExecutionSearchConfigurationSchema,
10
11
  ViewExecutionSearchResultSchema,
@@ -13,17 +14,25 @@ import type {
13
14
  ViewHitAnnotationSchema,
14
15
  ViewHitSchema,
15
16
  ViewQueryPlanningFailureCodeSchema,
17
+ ViewRerankFailureCodeSchema,
16
18
  } from './api-schemas/view-execution.js';
17
19
  import type {
20
+ AgenticViewRerankConfigurationSchema,
18
21
  AgenticViewSearchConfigurationSchema,
19
22
  CreateViewExperienceRequestSchema,
20
23
  UpdateViewExperienceRequestSchema,
24
+ ViewActionConfigurationSchema,
25
+ ViewActionPlacementSchema,
26
+ ViewActionSelectionRequirementSchema,
27
+ ViewActionsConfigurationSchema,
28
+ ViewAgenticExecutionConfigurationSchema,
21
29
  ViewBoardCardConfigurationSchema,
22
30
  ViewBoardColumnSchema,
23
31
  ViewBoardDisplaySchema,
24
32
  ViewCardsDisplaySchema,
25
33
  ViewCollectionNavigationSchema,
26
34
  ViewDisplayConfigurationSchema,
35
+ ViewDropConfigurationSchema,
27
36
  ViewElasticsearchQuerySchema,
28
37
  ViewExperienceLayoutSchema,
29
38
  ViewExperienceListQuerySchema,
@@ -45,18 +54,21 @@ import type {
45
54
  ViewSearchConfigurationSchema,
46
55
  ViewSearchFieldDefinitionSchema,
47
56
  ViewSearchFieldTypeSchema,
57
+ ViewSelectionConfigurationSchema,
58
+ ViewSelectionModeSchema,
48
59
  ViewSortClauseSchema,
49
60
  ViewSortOptionSchema,
50
61
  ViewTableColumnSchema,
51
62
  ViewTableDisplaySchema,
52
63
  ViewTermsNavigationSchema,
64
+ ViewUploadDropParametersSchema,
53
65
  } from './api-schemas/views.js';
54
66
 
55
67
  export const VIEW_EXPERIENCE_SCHEMA_VERSION = 1 as const;
56
68
 
57
69
  export type ViewExperienceSchemaVersion = typeof VIEW_EXPERIENCE_SCHEMA_VERSION;
58
70
 
59
- /** Build the generic reusable client route for a persisted or app-contributed View. */
71
+ /** Build the generic reusable client route for a persisted, system, or app-contributed View. */
60
72
  export function viewExperienceRoute(id: string): string {
61
73
  return `/view/${encodeURIComponent(id)}`;
62
74
  }
@@ -68,15 +80,6 @@ export type ViewExperienceLayout = z.infer<typeof ViewExperienceLayoutSchema>;
68
80
 
69
81
  export type ViewExperienceScope = z.infer<typeof ViewExperienceScopeSchema>;
70
82
 
71
- export interface ViewNavigationBase {
72
- id: string;
73
- label: string;
74
- presentation?: 'tree' | 'list' | 'select' | 'chips';
75
- multi_select?: boolean;
76
- order?: number;
77
- renderer?: string;
78
- }
79
-
80
83
  export type ViewLocationNavigation = z.infer<typeof ViewLocationNavigationSchema>;
81
84
 
82
85
  export type ViewCollectionNavigation = z.infer<typeof ViewCollectionNavigationSchema>;
@@ -115,6 +118,14 @@ export type ViewSearchFieldType = z.infer<typeof ViewSearchFieldTypeSchema>;
115
118
  */
116
119
  export type ViewSearchFieldDefinition = z.infer<typeof ViewSearchFieldDefinitionSchema>;
117
120
 
121
+ export const VIEW_AGENTIC_SEARCH_MODES = ['query', 'query_and_view'] as const;
122
+
123
+ export type ViewAgenticSearchMode = (typeof VIEW_AGENTIC_SEARCH_MODES)[number];
124
+
125
+ export type AgenticViewRerankConfiguration = z.infer<typeof AgenticViewRerankConfigurationSchema>;
126
+
127
+ export type ViewAgenticExecutionConfiguration = z.infer<typeof ViewAgenticExecutionConfigurationSchema>;
128
+
118
129
  export type AgenticViewSearchConfiguration = z.infer<typeof AgenticViewSearchConfigurationSchema>;
119
130
 
120
131
  export type ViewSearchConfiguration = z.infer<typeof ViewSearchConfigurationSchema>;
@@ -139,13 +150,6 @@ export type ViewResultField = z.infer<typeof ViewResultFieldSchema>;
139
150
 
140
151
  export type ViewResultMedia = z.infer<typeof ViewResultMediaSchema>;
141
152
 
142
- export interface ViewDisplayBase {
143
- id: string;
144
- label: string;
145
- renderer?: string;
146
- page_size?: number;
147
- }
148
-
149
153
  export type ViewListDisplay = z.infer<typeof ViewListDisplaySchema>;
150
154
 
151
155
  export type ViewTableColumn = z.infer<typeof ViewTableColumnSchema>;
@@ -166,6 +170,28 @@ export type ViewDisplayConfiguration = z.infer<typeof ViewDisplayConfigurationSc
166
170
 
167
171
  export type ViewResultsConfiguration = z.infer<typeof ViewResultsConfigurationSchema>;
168
172
 
173
+ export const VIEW_SELECTION_MODES = ['single', 'multiple'] as const;
174
+
175
+ export type ViewSelectionMode = z.infer<typeof ViewSelectionModeSchema>;
176
+
177
+ export type ViewSelectionConfiguration = z.infer<typeof ViewSelectionConfigurationSchema>;
178
+
179
+ export const VIEW_ACTION_PLACEMENTS = ['toolbar', 'row', 'selection'] as const;
180
+
181
+ export type ViewActionPlacement = z.infer<typeof ViewActionPlacementSchema>;
182
+
183
+ export const VIEW_ACTION_SELECTION_REQUIREMENTS = ['none', 'single', 'multiple', 'any'] as const;
184
+
185
+ export type ViewActionSelectionRequirement = z.infer<typeof ViewActionSelectionRequirementSchema>;
186
+
187
+ export type ViewActionConfiguration = z.infer<typeof ViewActionConfigurationSchema>;
188
+
189
+ export type ViewActionsConfiguration = z.infer<typeof ViewActionsConfigurationSchema>;
190
+
191
+ export type ViewUploadDropParameters = z.infer<typeof ViewUploadDropParametersSchema>;
192
+
193
+ export type ViewDropConfiguration = z.infer<typeof ViewDropConfigurationSchema>;
194
+
169
195
  export type ViewExperienceConfiguration = z.infer<typeof ViewExperienceConfigurationSchema>;
170
196
 
171
197
  /**
@@ -178,35 +204,6 @@ export interface PersistedViewExperienceConfiguration extends Omit<ViewExperienc
178
204
  description: string;
179
205
  }
180
206
 
181
- /**
182
- * Project a persisted or extended View value back to its reusable configuration
183
- * fields. Callers that require a persisted configuration must validate the
184
- * result at their API or persistence boundary because legacy records may not
185
- * satisfy newer persisted-only requirements.
186
- */
187
- export function getViewExperienceConfiguration(value: ViewExperienceConfiguration): ViewExperienceConfiguration {
188
- return {
189
- name: value.name,
190
- ...(value.description === undefined ? {} : { description: value.description }),
191
- ...(value.enabled === undefined ? {} : { enabled: value.enabled }),
192
- ...(value.layout === undefined ? {} : { layout: value.layout }),
193
- ...(value.scope === undefined ? {} : { scope: value.scope }),
194
- ...(value.navigation === undefined ? {} : { navigation: value.navigation }),
195
- ...(value.search === undefined ? {} : { search: value.search }),
196
- ...(value.results === undefined ? {} : { results: value.results }),
197
- };
198
- }
199
-
200
- /** Project a type-valid persisted View while preserving its required documentation field. */
201
- export function getPersistedViewExperienceConfiguration(
202
- value: PersistedViewExperienceConfiguration,
203
- ): PersistedViewExperienceConfiguration {
204
- return {
205
- ...getViewExperienceConfiguration(value),
206
- description: value.description,
207
- };
208
- }
209
-
210
207
  /** A View definition contributed by application code through the app package endpoint. */
211
208
  export type InCodeViewDefinition = z.infer<typeof InCodeViewDefinitionSchema>;
212
209
 
@@ -229,6 +226,10 @@ export type ViewQueryPlanningFailureCode = z.infer<typeof ViewQueryPlanningFailu
229
226
 
230
227
  export type ViewExecutionQueryPlan = z.infer<typeof ViewExecutionQueryPlanSchema>;
231
228
 
229
+ export type ViewRerankFailureCode = z.infer<typeof ViewRerankFailureCodeSchema>;
230
+
231
+ export type ViewExecutionRerankResult = z.infer<typeof ViewExecutionRerankResultSchema>;
232
+
232
233
  export type ViewHitAnnotation = z.infer<typeof ViewHitAnnotationSchema>;
233
234
 
234
235
  export type ViewHit = z.infer<typeof ViewHitSchema>;
@@ -247,7 +248,9 @@ export interface ViewNavigationResult {
247
248
  id: string;
248
249
  selected: string[];
249
250
  nodes: ViewNavigationNode[];
250
- /** Selected hierarchy path from its root through the current value. */
251
+ /** Applied server-side node filter, when the navigation source supports it. */
252
+ query?: string;
253
+ /** Selected drill-down path from its root through the current value. */
251
254
  breadcrumbs?: ViewNavigationNode[];
252
255
  truncated?: boolean;
253
256
  }
@@ -55,7 +55,7 @@ export enum TelemetryToolType {
55
55
  /**
56
56
  * Base interface for all telemetry events
57
57
  */
58
- export interface BaseAgentEvent {
58
+ interface BaseAgentEvent {
59
59
  /** Type of the event */
60
60
  eventType: AgentEventType;
61
61
  /** ISO 8601 timestamp */
@@ -210,24 +210,6 @@ export interface ToolCallEvent extends BaseAgentEvent {
210
210
  spawnedChildWorkflow?: boolean;
211
211
  }
212
212
 
213
- // ============================================================================
214
- // Checkpoint Events
215
- // ============================================================================
216
-
217
- /**
218
- * Emitted when a checkpoint is created.
219
- * Extends LlmCallEvent since checkpoint creation involves an LLM call.
220
- */
221
- export interface CheckpointCreatedEvent extends LlmCallEvent {
222
- callType: LlmCallType.Checkpoint;
223
- /** Token count that triggered the checkpoint (before this LLM call) */
224
- tokenCountAtCheckpoint: number;
225
- /** Checkpoint threshold configured */
226
- checkpointThreshold: number;
227
- /** Current iteration number */
228
- iteration: number;
229
- }
230
-
231
213
  // ============================================================================
232
214
  // Nested Interaction Execution Events
233
215
  // ============================================================================
@@ -309,7 +291,7 @@ export interface WorkflowAnalyticsFilter {
309
291
  /**
310
292
  * Base query parameters for all workflow analytics endpoints
311
293
  */
312
- export interface WorkflowAnalyticsQueryBase {
294
+ interface WorkflowAnalyticsQueryBase {
313
295
  /** Start time (ISO 8601 or Unix timestamp) */
314
296
  from?: string | number;
315
297
  /** End time (ISO 8601 or Unix timestamp) */
@@ -545,7 +527,7 @@ export interface ToolUsageMetrics {
545
527
  /**
546
528
  * Parameter value distribution for a tool
547
529
  */
548
- export interface ToolParameterValue {
530
+ interface ToolParameterValue {
549
531
  /** Parameter name */
550
532
  parameterName: string;
551
533
  /** Parameter value (stringified) */
@@ -689,7 +671,7 @@ export interface WorkflowAnalyticsSummaryResponse {
689
671
  /**
690
672
  * Agent/interaction reference with id and display name
691
673
  */
692
- export interface AgentFilterOption {
674
+ interface AgentFilterOption {
693
675
  /** The agent/interaction ID (used for filtering) */
694
676
  id: string;
695
677
  /** The display name (resolved from interaction) */
@@ -700,20 +682,10 @@ export interface AgentFilterOption {
700
682
  version?: number;
701
683
  }
702
684
 
703
- /**
704
- * Environment reference with id and display name
705
- */
706
- export interface EnvironmentFilterOption {
707
- /** The environment ID (used for filtering) */
708
- id: string;
709
- /** The display name (resolved from environment) */
710
- name: string;
711
- }
712
-
713
685
  /**
714
686
  * Environment-model pair from telemetry data
715
687
  */
716
- export interface EnvironmentModelPair {
688
+ interface EnvironmentModelPair {
717
689
  /** Environment ID */
718
690
  environmentId: string;
719
691
  /** Environment display name */
@@ -727,7 +699,7 @@ export interface EnvironmentModelPair {
727
699
  /**
728
700
  * Principal (user/API key) filter option
729
701
  */
730
- export interface PrincipalFilterOption {
702
+ interface PrincipalFilterOption {
731
703
  /** The principal ID (user ID or API key ID) */
732
704
  id: string;
733
705
  /** The principal type (user, apikey, service_account, agent) */
@@ -755,7 +727,7 @@ export interface WorkflowAnalyticsFilterOptionsResponse {
755
727
  /**
756
728
  * Summary of prompt size metrics across all agents
757
729
  */
758
- export interface PromptSizeSummary {
730
+ interface PromptSizeSummary {
759
731
  /** Average prompt/input tokens for start calls across all agents */
760
732
  avgPromptTokens: number;
761
733
  /** 95th percentile of prompt/input tokens */
@@ -767,7 +739,7 @@ export interface PromptSizeSummary {
767
739
  /**
768
740
  * Prompt size metrics for a single agent
769
741
  */
770
- export interface PromptSizeByAgent {
742
+ interface PromptSizeByAgent {
771
743
  /** Agent ID (to be resolved to name by the API) */
772
744
  agentId: string;
773
745
  /** Agent display name (resolved from interaction) */
@@ -795,7 +767,7 @@ export interface PromptSizeAnalyticsResponse {
795
767
  /**
796
768
  * Top principal (user/API key/service account) metrics
797
769
  */
798
- export interface TopPrincipal {
770
+ interface TopPrincipal {
799
771
  /** Principal ID (user ID, API key ID, etc.) */
800
772
  principalId: string;
801
773
  /** Principal type (user, apikey, service_account, agent) */
@@ -823,7 +795,7 @@ export interface TopPrincipalsAnalyticsResponse {
823
795
  /**
824
796
  * Agent run distribution metrics
825
797
  */
826
- export interface AgentRunDistribution {
798
+ interface AgentRunDistribution {
827
799
  /** Agent/interaction ID */
828
800
  agentId: string;
829
801
  /** Agent display name (resolved from interaction) */
@@ -872,7 +844,7 @@ export interface TimeToFirstResponseMetrics {
872
844
  /**
873
845
  * Time to first response time series data point
874
846
  */
875
- export interface TimeToFirstResponseTimeSeriesPoint {
847
+ interface TimeToFirstResponseTimeSeriesPoint {
876
848
  /** Timestamp bucket start (ISO 8601) */
877
849
  timestamp: string;
878
850
  /** Timestamp bucket end (ISO 8601) */
@@ -921,7 +893,7 @@ export interface FirstResponseBehaviorMetrics {
921
893
  /**
922
894
  * First response behavior time series data point
923
895
  */
924
- export interface FirstResponseBehaviorTimeSeriesPoint {
896
+ interface FirstResponseBehaviorTimeSeriesPoint {
925
897
  /** Timestamp bucket start (ISO 8601) */
926
898
  timestamp: string;
927
899
  /** Timestamp bucket end (ISO 8601) */
@@ -11,7 +11,10 @@
11
11
  "outDir": "./lib"
12
12
  },
13
13
  "include": [
14
- "src"
14
+ "src",
15
+ // tsc's default `include` globs only match .ts — the generated components artifact
16
+ // is imported by `src/api-contract/index.ts` and must be listed explicitly.
17
+ "src/api-contract/components.generated.json"
15
18
  ],
16
19
  "exclude": [
17
20
  "**/*.test.*",
package/lib/Progress.d.ts DELETED
@@ -1,22 +0,0 @@
1
- declare class ProgressSpan {
2
- parent: Progress;
3
- parentUnits: number;
4
- spanUnits: number;
5
- unitsDone: number;
6
- constructor(parent: Progress, parentUnits: number, spanUnits: number);
7
- done(units?: number): void;
8
- get parentUnitsDone(): number;
9
- get isDone(): boolean;
10
- }
11
- export declare class Progress {
12
- total: number;
13
- unitsDone: number;
14
- constructor(total: number);
15
- get fraction(): number;
16
- get percent(): number;
17
- get isDone(): boolean;
18
- done(units?: number): void;
19
- span(units: number, spanUnits?: number): ProgressSpan;
20
- }
21
- export {};
22
- //# sourceMappingURL=Progress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../src/Progress.ts"],"names":[],"mappings":"AAAA,cAAM,YAAY;IAGH,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,MAAM;IACnB,SAAS,EAAE,MAAM;IAJ5B,SAAS,EAAE,MAAM,CAAC;IAClB,YACW,MAAM,EAAE,QAAQ,EAChB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EAG3B;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,QAQlB;IAED,IAAI,eAAe,WAElB;IAED,IAAI,MAAM,YAET;CACJ;AAED,qBAAa,QAAQ;IAGE,KAAK,EAAE,MAAM;IAFhC,SAAS,EAAE,MAAM,CAAK;IAEtB,YAAmB,KAAK,EAAE,MAAM,EAAI;IAEpC,IAAI,QAAQ,WAEX;IAED,IAAI,OAAO,WAEV;IAED,IAAI,MAAM,YAET;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,QAOlB;IAED,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,YAAY,CAEpD;CACJ"}