@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
@@ -251,6 +251,48 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
251
251
  additionalProperties: false,
252
252
  description: 'Per-content-type policy for the standard intake workflows.',
253
253
  $defs: {
254
+ AzureFoundryChatOptions: {
255
+ type: 'object',
256
+ properties: {
257
+ _option_id: {
258
+ type: 'string',
259
+ const: 'azure-foundry-chat',
260
+ },
261
+ max_tokens: {
262
+ type: 'number',
263
+ },
264
+ temperature: {
265
+ type: 'number',
266
+ },
267
+ top_p: {
268
+ type: 'number',
269
+ },
270
+ presence_penalty: {
271
+ type: 'number',
272
+ },
273
+ frequency_penalty: {
274
+ type: 'number',
275
+ },
276
+ stop_sequence: {
277
+ type: 'array',
278
+ items: {
279
+ type: 'string',
280
+ },
281
+ },
282
+ seed: {
283
+ type: 'number',
284
+ },
285
+ image_detail: {
286
+ type: 'string',
287
+ enum: ['low', 'high', 'auto'],
288
+ },
289
+ include_thoughts: {
290
+ type: 'boolean',
291
+ },
292
+ },
293
+ required: ['_option_id'],
294
+ additionalProperties: false,
295
+ },
254
296
  BedrockAI21Options: {
255
297
  type: 'object',
256
298
  properties: {
@@ -273,6 +315,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
273
315
  type: 'string',
274
316
  },
275
317
  },
318
+ include_thoughts: {
319
+ type: 'boolean',
320
+ },
321
+ service_tier: {
322
+ type: 'string',
323
+ minLength: 1,
324
+ description:
325
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
326
+ },
276
327
  },
277
328
  required: ['_option_id'],
278
329
  additionalProperties: false,
@@ -319,6 +370,12 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
319
370
  type: 'string',
320
371
  enum: ['5m', '1h'],
321
372
  },
373
+ service_tier: {
374
+ type: 'string',
375
+ minLength: 1,
376
+ description:
377
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
378
+ },
322
379
  },
323
380
  required: ['_option_id'],
324
381
  additionalProperties: false,
@@ -345,6 +402,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
345
402
  type: 'string',
346
403
  },
347
404
  },
405
+ include_thoughts: {
406
+ type: 'boolean',
407
+ },
408
+ service_tier: {
409
+ type: 'string',
410
+ minLength: 1,
411
+ description:
412
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
413
+ },
348
414
  },
349
415
  required: ['_option_id'],
350
416
  additionalProperties: false,
@@ -371,6 +437,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
371
437
  type: 'string',
372
438
  },
373
439
  },
440
+ include_thoughts: {
441
+ type: 'boolean',
442
+ },
443
+ service_tier: {
444
+ type: 'string',
445
+ minLength: 1,
446
+ description:
447
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
448
+ },
374
449
  },
375
450
  required: ['_option_id'],
376
451
  additionalProperties: false,
@@ -407,6 +482,12 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
407
482
  presence_penalty: {
408
483
  type: 'number',
409
484
  },
485
+ service_tier: {
486
+ type: 'string',
487
+ minLength: 1,
488
+ description:
489
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
490
+ },
410
491
  },
411
492
  required: ['_option_id'],
412
493
  additionalProperties: false,
@@ -433,6 +514,17 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
433
514
  type: 'string',
434
515
  },
435
516
  },
517
+ effort: {
518
+ type: 'string',
519
+ enum: ['low', 'medium', 'high'],
520
+ },
521
+ reasoning_effort: {
522
+ type: 'string',
523
+ enum: ['low', 'medium', 'high'],
524
+ },
525
+ include_thoughts: {
526
+ type: 'boolean',
527
+ },
436
528
  },
437
529
  required: ['_option_id'],
438
530
  additionalProperties: false,
@@ -515,6 +607,9 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
515
607
  type: 'string',
516
608
  enum: ['low', 'high', 'auto'],
517
609
  },
610
+ include_thoughts: {
611
+ type: 'boolean',
612
+ },
518
613
  },
519
614
  required: ['_option_id'],
520
615
  additionalProperties: false,
@@ -541,6 +636,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
541
636
  type: 'string',
542
637
  },
543
638
  },
639
+ include_thoughts: {
640
+ type: 'boolean',
641
+ },
642
+ service_tier: {
643
+ type: 'string',
644
+ minLength: 1,
645
+ description:
646
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
647
+ },
544
648
  },
545
649
  required: ['_option_id'],
546
650
  additionalProperties: false,
@@ -567,6 +671,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
567
671
  type: 'string',
568
672
  },
569
673
  },
674
+ include_thoughts: {
675
+ type: 'boolean',
676
+ },
677
+ service_tier: {
678
+ type: 'string',
679
+ minLength: 1,
680
+ description:
681
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
682
+ },
570
683
  },
571
684
  required: ['_option_id'],
572
685
  additionalProperties: false,
@@ -605,6 +718,12 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
605
718
  presence_penalty: {
606
719
  type: 'number',
607
720
  },
721
+ service_tier: {
722
+ type: 'string',
723
+ minLength: 1,
724
+ description:
725
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
726
+ },
608
727
  },
609
728
  required: ['_option_id'],
610
729
  additionalProperties: false,
@@ -801,7 +920,7 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
801
920
  },
802
921
  additionalProperties: false,
803
922
  description:
804
- "HTTP timeouts applied to a driver's upstream LLM-provider calls.\n\nAll values are in milliseconds. Drivers should map these onto whatever HTTP client their SDK uses; the defaults applied in `@llumiverse/core/createDriverHttpAgent` are: - headersTimeout: 60_000 - bodyTimeout: 60_000 - connectTimeout: 10_000 - keepAliveTimeout: 30_000\n\nThe defaults are deliberately tighter than Node's undici default (5 minutes for headers/body) so a hung upstream surfaces quickly. Bump `bodyTimeout` for streaming flows that have legitimate silent gaps (e.g. tool-using agents).",
923
+ "HTTP timeouts applied to a driver's upstream LLM-provider calls.\n\nAll values are in milliseconds. Drivers should map these onto whatever HTTP client their SDK uses; the defaults applied in `@llumiverse/core/createDriverHttpAgent` are: - headersTimeout: 900_000 - bodyTimeout: 900_000 - connectTimeout: 60_000 - keepAliveTimeout: 300_000\n\nThe response defaults are deliberately longer than the hosting request boundary. Application-level cancellation should end user work first; driver timeouts are bounded-resource safety nets.",
805
924
  },
806
925
  ImagenMaskMode: {
807
926
  type: 'string',
@@ -955,6 +1074,18 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
955
1074
  type: 'string',
956
1075
  description: 'Stable provider-side routing key for automatic prompt caching.',
957
1076
  },
1077
+ prompt_cache_mode: {
1078
+ $ref: '#/$defs/PromptCacheMode',
1079
+ description:
1080
+ 'Controls provider-side explicit caching: auto falls back safely, off disables it, and required surfaces cache preparation failures for diagnostics.',
1081
+ },
1082
+ prompt_cache_ttl_seconds: {
1083
+ type: 'integer',
1084
+ minimum: 60,
1085
+ maximum: 9007199254740991,
1086
+ description:
1087
+ 'Caller-selected explicit cache lifetime in seconds. Defaults remain provider-specific; Vertex Gemini requires at least 60 seconds.',
1088
+ },
958
1089
  prompt_cache_schema_suffix: {
959
1090
  type: 'boolean',
960
1091
  description:
@@ -967,11 +1098,72 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
967
1098
  },
968
1099
  additionalProperties: false,
969
1100
  },
1101
+ MistralTextOptions: {
1102
+ type: 'object',
1103
+ properties: {
1104
+ _option_id: {
1105
+ type: 'string',
1106
+ const: 'mistral-text',
1107
+ },
1108
+ max_tokens: {
1109
+ type: 'number',
1110
+ },
1111
+ temperature: {
1112
+ type: 'number',
1113
+ },
1114
+ top_p: {
1115
+ type: 'number',
1116
+ },
1117
+ presence_penalty: {
1118
+ type: 'number',
1119
+ },
1120
+ frequency_penalty: {
1121
+ type: 'number',
1122
+ },
1123
+ stop_sequence: {
1124
+ type: 'array',
1125
+ items: {
1126
+ type: 'string',
1127
+ },
1128
+ },
1129
+ effort: {
1130
+ type: 'string',
1131
+ enum: ['none', 'high'],
1132
+ },
1133
+ random_seed: {
1134
+ type: 'integer',
1135
+ minimum: -9007199254740991,
1136
+ maximum: 9007199254740991,
1137
+ },
1138
+ safe_prompt: {
1139
+ type: 'boolean',
1140
+ },
1141
+ parallel_tool_calls: {
1142
+ type: 'boolean',
1143
+ },
1144
+ tool_choice: {
1145
+ type: 'string',
1146
+ enum: ['auto', 'none', 'any', 'required'],
1147
+ },
1148
+ prompt_mode: {
1149
+ type: 'string',
1150
+ const: 'reasoning',
1151
+ },
1152
+ include_thoughts: {
1153
+ type: 'boolean',
1154
+ },
1155
+ },
1156
+ required: ['_option_id'],
1157
+ additionalProperties: false,
1158
+ },
970
1159
  ModelOptions: {
971
1160
  oneOf: [
972
1161
  {
973
1162
  $ref: '#/$defs/TextFallbackOptions',
974
1163
  },
1164
+ {
1165
+ $ref: '#/$defs/AzureFoundryChatOptions',
1166
+ },
975
1167
  {
976
1168
  $ref: '#/$defs/ImagenOptions',
977
1169
  },
@@ -981,6 +1173,9 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
981
1173
  {
982
1174
  $ref: '#/$defs/VertexAIGeminiOptions',
983
1175
  },
1176
+ {
1177
+ $ref: '#/$defs/VertexAIGeminiOmniVideoOptions',
1178
+ },
984
1179
  {
985
1180
  $ref: '#/$defs/VertexAIGrokOptions',
986
1181
  },
@@ -1035,9 +1230,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1035
1230
  {
1036
1231
  $ref: '#/$defs/OpenAiGptImageOptions',
1037
1232
  },
1233
+ {
1234
+ $ref: '#/$defs/XAIGrokImageOptions',
1235
+ },
1038
1236
  {
1039
1237
  $ref: '#/$defs/GroqOptions',
1040
1238
  },
1239
+ {
1240
+ $ref: '#/$defs/MistralTextOptions',
1241
+ },
1041
1242
  ],
1042
1243
  },
1043
1244
  NovaCanvasOptions: {
@@ -1169,6 +1370,12 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1169
1370
  max_tokens: {
1170
1371
  type: 'number',
1171
1372
  },
1373
+ effort: {
1374
+ $ref: '#/$defs/ReasoningEffort',
1375
+ },
1376
+ reasoning_effort: {
1377
+ $ref: '#/$defs/ReasoningEffort',
1378
+ },
1172
1379
  temperature: {
1173
1380
  type: 'number',
1174
1381
  },
@@ -1191,6 +1398,15 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1191
1398
  type: 'string',
1192
1399
  enum: ['low', 'high', 'auto'],
1193
1400
  },
1401
+ include_thoughts: {
1402
+ type: 'boolean',
1403
+ },
1404
+ service_tier: {
1405
+ type: 'string',
1406
+ minLength: 1,
1407
+ description:
1408
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
1409
+ },
1194
1410
  },
1195
1411
  required: ['_option_id'],
1196
1412
  additionalProperties: false,
@@ -1221,10 +1437,23 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1221
1437
  type: 'string',
1222
1438
  enum: ['low', 'high', 'auto'],
1223
1439
  },
1440
+ include_thoughts: {
1441
+ type: 'boolean',
1442
+ },
1443
+ service_tier: {
1444
+ type: 'string',
1445
+ minLength: 1,
1446
+ description:
1447
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
1448
+ },
1224
1449
  },
1225
1450
  required: ['_option_id'],
1226
1451
  additionalProperties: false,
1227
1452
  },
1453
+ PromptCacheMode: {
1454
+ type: 'string',
1455
+ enum: ['auto', 'off', 'required'],
1456
+ },
1228
1457
  ReasoningEffort: {
1229
1458
  type: 'string',
1230
1459
  enum: ['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'],
@@ -1264,6 +1493,9 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1264
1493
  type: 'string',
1265
1494
  },
1266
1495
  },
1496
+ include_thoughts: {
1497
+ type: 'boolean',
1498
+ },
1267
1499
  },
1268
1500
  required: ['_option_id'],
1269
1501
  additionalProperties: false,
@@ -1285,6 +1517,12 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1285
1517
  max_tokens: {
1286
1518
  type: 'number',
1287
1519
  },
1520
+ service_tier: {
1521
+ type: 'string',
1522
+ minLength: 1,
1523
+ description:
1524
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
1525
+ },
1288
1526
  },
1289
1527
  required: ['_option_id'],
1290
1528
  additionalProperties: false,
@@ -1335,6 +1573,30 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1335
1573
  required: ['_option_id'],
1336
1574
  additionalProperties: false,
1337
1575
  },
1576
+ VertexAIGeminiOmniVideoOptions: {
1577
+ type: 'object',
1578
+ properties: {
1579
+ _option_id: {
1580
+ type: 'string',
1581
+ const: 'vertexai-gemini-omni-video',
1582
+ },
1583
+ task: {
1584
+ type: 'string',
1585
+ enum: ['text_to_video', 'image_to_video', 'reference_to_video'],
1586
+ },
1587
+ aspect_ratio: {
1588
+ type: 'string',
1589
+ enum: ['16:9', '9:16'],
1590
+ },
1591
+ duration_seconds: {
1592
+ type: 'integer',
1593
+ minimum: 3,
1594
+ maximum: 10,
1595
+ },
1596
+ },
1597
+ required: ['_option_id'],
1598
+ additionalProperties: false,
1599
+ },
1338
1600
  VertexAIGeminiOptions: {
1339
1601
  type: 'object',
1340
1602
  properties: {
@@ -1382,8 +1644,17 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1382
1644
  thinking_level: {
1383
1645
  $ref: '#/$defs/ThinkingLevel',
1384
1646
  },
1647
+ service_tier: {
1648
+ type: 'string',
1649
+ minLength: 1,
1650
+ description:
1651
+ 'Provider-defined processing tier. Unknown non-empty values are preserved for forward compatibility.',
1652
+ },
1385
1653
  flex: {
1386
1654
  type: 'boolean',
1655
+ deprecated: true,
1656
+ 'x-deprecated-message': 'Use service_tier="flex" instead.',
1657
+ description: 'Deprecated: Use service_tier="flex" instead.',
1387
1658
  },
1388
1659
  image_aspect_ratio: {
1389
1660
  type: 'string',
@@ -1438,5 +1709,52 @@ export const ContentTypeIntakePolicySchema: JSONObject = {
1438
1709
  required: ['_option_id'],
1439
1710
  additionalProperties: false,
1440
1711
  },
1712
+ XAIGrokImageOptions: {
1713
+ type: 'object',
1714
+ properties: {
1715
+ _option_id: {
1716
+ type: 'string',
1717
+ const: 'xai-grok-image',
1718
+ },
1719
+ aspect_ratio: {
1720
+ type: 'string',
1721
+ enum: [
1722
+ '1:1',
1723
+ '16:9',
1724
+ '9:16',
1725
+ '4:3',
1726
+ '3:4',
1727
+ '3:2',
1728
+ '2:3',
1729
+ '2:1',
1730
+ '1:2',
1731
+ '19.5:9',
1732
+ '9:19.5',
1733
+ '20:9',
1734
+ '9:20',
1735
+ 'auto',
1736
+ ],
1737
+ },
1738
+ resolution: {
1739
+ type: 'string',
1740
+ enum: ['1k', '2k'],
1741
+ },
1742
+ quality: {
1743
+ type: 'string',
1744
+ enum: ['low', 'medium'],
1745
+ },
1746
+ response_format: {
1747
+ type: 'string',
1748
+ enum: ['url', 'b64_json'],
1749
+ },
1750
+ n: {
1751
+ type: 'integer',
1752
+ minimum: 1,
1753
+ maximum: 10,
1754
+ },
1755
+ },
1756
+ required: ['_option_id'],
1757
+ additionalProperties: false,
1758
+ },
1441
1759
  },
1442
1760
  };
@@ -1,21 +1,27 @@
1
1
  import type { z } from 'zod';
2
2
  import type {
3
+ AdvanceProcessPayloadSchema,
4
+ AnswerProcessTaskPayloadSchema,
3
5
  BranchDefinitionSchema,
4
6
  BranchJoinPolicySchema,
7
+ CreateProcessTestSuitePayloadSchema,
5
8
  HumanTaskDefinitionSchema,
6
9
  JsonLogicRuleSchema,
7
10
  ListProcessDefinitionsQuerySchema,
11
+ ListProcessTestRunsQuerySchema,
8
12
  NodeHistoryEntrySchema,
9
13
  ParallelCollectDefinitionSchema,
10
14
  ParallelCollectFieldSchema,
11
15
  ParallelCollectModeSchema,
12
16
  ParallelFailurePolicySchema,
13
17
  ProcessContextDefinitionSchema,
18
+ ProcessContextResponseSchema,
14
19
  ProcessDefinitionFormatVersionSchema,
15
20
  ProcessDefinitionMetadataSchema,
16
21
  ProcessDefinitionRevisionInfoSchema,
17
22
  ProcessDefinitionStatusSchema,
18
23
  ProcessHistoryRefSchema,
24
+ ProcessHistoryResponseSchema,
19
25
  ProcessNodeReturnsDefinitionSchema,
20
26
  ProcessNodeRunTypeSchema,
21
27
  ProcessNodeTypeSchema,
@@ -25,10 +31,37 @@ import type {
25
31
  ProcessScriptResourceSchema,
26
32
  ProcessScriptSourceSchema,
27
33
  ProcessStateSchema,
34
+ ProcessTestActorDecisionSchema,
35
+ ProcessTestAssertionResultSchema,
36
+ ProcessTestAssertionsSchema,
37
+ ProcessTestChildTraceSchema,
38
+ ProcessTestCoverageSchema,
39
+ ProcessTestFixtureErrorSchema,
40
+ ProcessTestFixtureResponseSchema,
41
+ ProcessTestFixtureResultSchema,
42
+ ProcessTestHumanActionSchema,
43
+ ProcessTestInlineSubjectSchema,
44
+ ProcessTestNodeFixtureSchema,
45
+ ProcessTestResolvedSubjectSchema,
46
+ ProcessTestRunSchema,
47
+ ProcessTestRunStatusSchema,
48
+ ProcessTestScenarioResultSchema,
49
+ ProcessTestScenarioSchema,
50
+ ProcessTestStoredSubjectSchema,
51
+ ProcessTestSubjectSchema,
52
+ ProcessTestSuiteSchema,
53
+ ProcessTestTargetByIdSchema,
54
+ ProcessTestTargetWithDefinitionSchema,
55
+ ProcessTestVirtualActorSchema,
28
56
  PublishProcessDefinitionPayloadSchema,
57
+ RetryProcessNodePayloadSchema,
29
58
  RevertProcessDefinitionPayloadSchema,
59
+ StartProcessTestRunPayloadSchema,
60
+ SubmitProcessTestRunPayloadSchema,
30
61
  TransitionDefinitionSchema,
31
62
  TransitionTriggerSchema,
63
+ UpdateProcessTestScenarioPayloadSchema,
64
+ UpdateProcessTestSuitePayloadSchema,
32
65
  } from '../api-schemas/process.js';
33
66
  import type { JSONSchema } from '../json-schema.js';
34
67
 
@@ -36,6 +69,7 @@ export type JsonLogicRule = z.infer<typeof JsonLogicRuleSchema>;
36
69
 
37
70
  export type ProcessDefinitionStatus = z.infer<typeof ProcessDefinitionStatusSchema>;
38
71
  export type ListProcessDefinitionsQuery = z.infer<typeof ListProcessDefinitionsQuerySchema>;
72
+ export type ListProcessTestRunsQuery = z.infer<typeof ListProcessTestRunsQuerySchema>;
39
73
  export const PROCESS_DEFINITION_FORMAT_VERSION = 1 as const;
40
74
  export type ProcessDefinitionFormatVersion = z.infer<typeof ProcessDefinitionFormatVersionSchema>;
41
75
 
@@ -165,6 +199,7 @@ export type ProcessDefinitionRevisionInfo = z.infer<typeof ProcessDefinitionRevi
165
199
 
166
200
  export interface ProcessDefinition {
167
201
  id: string;
202
+ edit_revision: number;
168
203
  account: string;
169
204
  project: string;
170
205
  name: string;
@@ -210,6 +245,7 @@ export interface CreateProcessDefinitionPayload {
210
245
  }
211
246
 
212
247
  export interface UpdateProcessDefinitionPayload {
248
+ expected_edit_revision?: number;
213
249
  name?: string;
214
250
  description?: string;
215
251
  /**
@@ -227,3 +263,51 @@ export interface UpdateProcessDefinitionPayload {
227
263
  export type PublishProcessDefinitionPayload = z.infer<typeof PublishProcessDefinitionPayloadSchema>;
228
264
 
229
265
  export type RevertProcessDefinitionPayload = z.infer<typeof RevertProcessDefinitionPayloadSchema>;
266
+
267
+ export type AdvanceProcessPayload = z.infer<typeof AdvanceProcessPayloadSchema>;
268
+
269
+ export type AnswerProcessTaskPayload = z.infer<typeof AnswerProcessTaskPayloadSchema>;
270
+
271
+ export type RetryProcessNodePayload = z.infer<typeof RetryProcessNodePayloadSchema>;
272
+
273
+ export type ProcessContextResponse = z.infer<typeof ProcessContextResponseSchema>;
274
+
275
+ export type ProcessHistoryResponse = z.infer<typeof ProcessHistoryResponseSchema>;
276
+
277
+ export type ProcessTestRunStatus = z.infer<typeof ProcessTestRunStatusSchema>;
278
+ export type ProcessTestVirtualActor = z.infer<typeof ProcessTestVirtualActorSchema>;
279
+ export type ProcessTestFixtureResult = z.infer<typeof ProcessTestFixtureResultSchema>;
280
+ export type ProcessTestFixtureError = z.infer<typeof ProcessTestFixtureErrorSchema>;
281
+ export type ProcessTestFixtureResponse = z.infer<typeof ProcessTestFixtureResponseSchema>;
282
+ export type ProcessTestNodeFixture = z.infer<typeof ProcessTestNodeFixtureSchema>;
283
+ export type ProcessTestHumanAction = z.infer<typeof ProcessTestHumanActionSchema>;
284
+ export type ProcessTestAssertions = z.infer<typeof ProcessTestAssertionsSchema>;
285
+ export type ProcessTestScenario = z.infer<typeof ProcessTestScenarioSchema>;
286
+ export type ProcessTestSuite = z.infer<typeof ProcessTestSuiteSchema>;
287
+ export type CreateProcessTestSuitePayload = z.infer<typeof CreateProcessTestSuitePayloadSchema>;
288
+ export type UpdateProcessTestSuitePayload = z.infer<typeof UpdateProcessTestSuitePayloadSchema>;
289
+ export type StartProcessTestRunPayload = z.infer<typeof StartProcessTestRunPayloadSchema>;
290
+ export type ProcessTestAssertionResult = z.infer<typeof ProcessTestAssertionResultSchema>;
291
+ export type ProcessTestActorDecision = z.infer<typeof ProcessTestActorDecisionSchema>;
292
+ export type ProcessTestCoverage = z.infer<typeof ProcessTestCoverageSchema>;
293
+ export type ProcessTestChildTrace = z.infer<typeof ProcessTestChildTraceSchema>;
294
+ export type ProcessTestScenarioResult = z.infer<typeof ProcessTestScenarioResultSchema>;
295
+ export type ProcessTestRun = Omit<z.infer<typeof ProcessTestRunSchema>, 'process_definition_snapshot'> & {
296
+ process_definition_snapshot: ProcessDefinitionBody;
297
+ };
298
+ export type ProcessTestStoredSubject = z.infer<typeof ProcessTestStoredSubjectSchema>;
299
+ export type ProcessTestResolvedSubject = z.infer<typeof ProcessTestResolvedSubjectSchema>;
300
+ export type ProcessTestInlineSubject = z.infer<typeof ProcessTestInlineSubjectSchema>;
301
+ export type ProcessTestSubject = z.infer<typeof ProcessTestSubjectSchema>;
302
+ export type ProcessTestTargetById = z.infer<typeof ProcessTestTargetByIdSchema>;
303
+ export type ProcessTestTargetWithDefinition = Omit<
304
+ z.infer<typeof ProcessTestTargetWithDefinitionSchema>,
305
+ 'definition'
306
+ > & {
307
+ definition: ProcessDefinitionBody;
308
+ };
309
+ export type ProcessTestTarget = ProcessTestTargetById | ProcessTestTargetWithDefinition;
310
+ export type SubmitProcessTestRunPayload = Omit<z.infer<typeof SubmitProcessTestRunPayloadSchema>, 'process'> & {
311
+ process: ProcessTestTarget;
312
+ };
313
+ export type UpdateProcessTestScenarioPayload = z.infer<typeof UpdateProcessTestScenarioPayloadSchema>;
@@ -33,7 +33,7 @@ export interface ImageRenditionVars extends BaseRenditionVars {
33
33
  max_pages?: number;
34
34
  }
35
35
 
36
- export interface ImageRenditionParams {
36
+ interface ImageRenditionParams {
37
37
  max_hw: number;
38
38
  format: ImageRenditionFormat;
39
39
  outputPath?: string;
@@ -78,11 +78,6 @@ export interface MarkdownRenditionVars extends BaseRenditionVars {
78
78
  /** Discriminated union of all rendition workflow vars */
79
79
  export type GenerateRenditionVars = ImageRenditionVars | MarkdownRenditionVars;
80
80
 
81
- /** Type guard for markdown rendition vars */
82
- export function isMarkdownRenditionVars(vars: GenerateRenditionVars): vars is MarkdownRenditionVars {
83
- return vars.format === 'pdf' || vars.format === 'docx';
84
- }
85
-
86
81
  // ============================================================================
87
82
  // API Payload Types
88
83
  // ============================================================================
@@ -148,7 +143,7 @@ export interface RenderMarkdownResponse {
148
143
  // ============================================================================
149
144
 
150
145
  /** A slide rendered from a named SVG template with structured content */
151
- export interface TemplateSlide {
146
+ interface TemplateSlide {
152
147
  type: 'template';
153
148
  /** Template name: 'title' | 'section' | 'bullets' | 'two-column' | 'image-text' */
154
149
  template: string;
@@ -157,7 +152,7 @@ export interface TemplateSlide {
157
152
  }
158
153
 
159
154
  /** A slide with raw SVG markup */
160
- export interface RawSvgSlide {
155
+ interface RawSvgSlide {
161
156
  type: 'svg';
162
157
  /** Complete SVG markup (should use 1920x1080 viewBox) */
163
158
  svg: string;