@vertesia/common 1.6.0-dev.20260918.115658Z → 1.6.0-dev.20261004.085740Z

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 (426) hide show
  1. package/lib/access-control-values.d.ts +2 -2
  2. package/lib/access-control-values.d.ts.map +1 -1
  3. package/lib/access-control-values.js +2 -2
  4. package/lib/access-control-values.js.map +1 -1
  5. package/lib/access-control.d.ts +7 -8
  6. package/lib/access-control.d.ts.map +1 -1
  7. package/lib/access-control.js +5 -0
  8. package/lib/access-control.js.map +1 -1
  9. package/lib/analytics.d.ts +6 -7
  10. package/lib/analytics.d.ts.map +1 -1
  11. package/lib/api-contract/components.generated.json +4500 -2720
  12. package/lib/api-schemas/access-control.d.ts +33 -10
  13. package/lib/api-schemas/access-control.d.ts.map +1 -1
  14. package/lib/api-schemas/access-control.js +7 -6
  15. package/lib/api-schemas/access-control.js.map +1 -1
  16. package/lib/api-schemas/account.d.ts +10 -4
  17. package/lib/api-schemas/account.d.ts.map +1 -1
  18. package/lib/api-schemas/account.js +7 -0
  19. package/lib/api-schemas/account.js.map +1 -1
  20. package/lib/api-schemas/agent-budget.d.ts +15 -0
  21. package/lib/api-schemas/agent-budget.d.ts.map +1 -0
  22. package/lib/api-schemas/agent-budget.js +55 -0
  23. package/lib/api-schemas/agent-budget.js.map +1 -0
  24. package/lib/api-schemas/agent-runs.d.ts +2459 -404
  25. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  26. package/lib/api-schemas/agent-runs.js +60 -28
  27. package/lib/api-schemas/agent-runs.js.map +1 -1
  28. package/lib/api-schemas/apikey.d.ts +11 -10
  29. package/lib/api-schemas/apikey.d.ts.map +1 -1
  30. package/lib/api-schemas/apikey.js.map +1 -1
  31. package/lib/api-schemas/app-lifecycle.d.ts +17 -0
  32. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  33. package/lib/api-schemas/app-lifecycle.js +14 -0
  34. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  35. package/lib/api-schemas/app-runtime.d.ts +3174 -539
  36. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  37. package/lib/api-schemas/app-runtime.js +14 -0
  38. package/lib/api-schemas/app-runtime.js.map +1 -1
  39. package/lib/api-schemas/audit-trail.d.ts +20 -0
  40. package/lib/api-schemas/audit-trail.d.ts.map +1 -1
  41. package/lib/api-schemas/audit-trail.js +7 -1
  42. package/lib/api-schemas/audit-trail.js.map +1 -1
  43. package/lib/api-schemas/content.d.ts +1130 -180
  44. package/lib/api-schemas/content.d.ts.map +1 -1
  45. package/lib/api-schemas/content.js +47 -0
  46. package/lib/api-schemas/content.js.map +1 -1
  47. package/lib/api-schemas/cost-analytics.d.ts +18 -0
  48. package/lib/api-schemas/cost-analytics.d.ts.map +1 -1
  49. package/lib/api-schemas/cost-analytics.js +31 -2
  50. package/lib/api-schemas/cost-analytics.js.map +1 -1
  51. package/lib/api-schemas/document-processing.d.ts +660 -108
  52. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  53. package/lib/api-schemas/environment.d.ts +2 -7
  54. package/lib/api-schemas/environment.d.ts.map +1 -1
  55. package/lib/api-schemas/environment.js +0 -1
  56. package/lib/api-schemas/environment.js.map +1 -1
  57. package/lib/api-schemas/events.d.ts +1980 -324
  58. package/lib/api-schemas/events.d.ts.map +1 -1
  59. package/lib/api-schemas/group.d.ts +2 -1
  60. package/lib/api-schemas/group.d.ts.map +1 -1
  61. package/lib/api-schemas/group.js.map +1 -1
  62. package/lib/api-schemas/index.d.ts +1 -0
  63. package/lib/api-schemas/index.d.ts.map +1 -1
  64. package/lib/api-schemas/index.js +1 -0
  65. package/lib/api-schemas/index.js.map +1 -1
  66. package/lib/api-schemas/inference-profile.d.ts +5017 -0
  67. package/lib/api-schemas/inference-profile.d.ts.map +1 -0
  68. package/lib/api-schemas/inference-profile.js +135 -0
  69. package/lib/api-schemas/inference-profile.js.map +1 -0
  70. package/lib/api-schemas/integrations.d.ts +6 -6
  71. package/lib/api-schemas/interaction.d.ts +39078 -2420
  72. package/lib/api-schemas/interaction.d.ts.map +1 -1
  73. package/lib/api-schemas/interaction.js +35 -1
  74. package/lib/api-schemas/interaction.js.map +1 -1
  75. package/lib/api-schemas/invites.d.ts +10 -9
  76. package/lib/api-schemas/invites.d.ts.map +1 -1
  77. package/lib/api-schemas/invites.js.map +1 -1
  78. package/lib/api-schemas/oauth-server.d.ts +27 -0
  79. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  80. package/lib/api-schemas/oauth-server.js +32 -0
  81. package/lib/api-schemas/oauth-server.js.map +1 -1
  82. package/lib/api-schemas/process.d.ts +839 -94
  83. package/lib/api-schemas/process.d.ts.map +1 -1
  84. package/lib/api-schemas/process.js +66 -0
  85. package/lib/api-schemas/process.js.map +1 -1
  86. package/lib/api-schemas/project-configuration.d.ts +2262 -364
  87. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  88. package/lib/api-schemas/project-configuration.js +21 -1
  89. package/lib/api-schemas/project-configuration.js.map +1 -1
  90. package/lib/api-schemas/project.d.ts +3450 -569
  91. package/lib/api-schemas/project.d.ts.map +1 -1
  92. package/lib/api-schemas/project.js +9 -1
  93. package/lib/api-schemas/project.js.map +1 -1
  94. package/lib/api-schemas/prompt.d.ts +1 -0
  95. package/lib/api-schemas/prompt.d.ts.map +1 -1
  96. package/lib/api-schemas/prompt.js +1 -0
  97. package/lib/api-schemas/prompt.js.map +1 -1
  98. package/lib/api-schemas/quota.d.ts +7 -6
  99. package/lib/api-schemas/quota.d.ts.map +1 -1
  100. package/lib/api-schemas/quota.js.map +1 -1
  101. package/lib/api-schemas/registry.d.ts +32375 -58756
  102. package/lib/api-schemas/registry.d.ts.map +1 -1
  103. package/lib/api-schemas/registry.js +97 -38
  104. package/lib/api-schemas/registry.js.map +1 -1
  105. package/lib/api-schemas/run-budget.d.ts +52 -0
  106. package/lib/api-schemas/run-budget.d.ts.map +1 -0
  107. package/lib/api-schemas/run-budget.js +55 -0
  108. package/lib/api-schemas/run-budget.js.map +1 -0
  109. package/lib/api-schemas/store.d.ts +11000 -1800
  110. package/lib/api-schemas/store.d.ts.map +1 -1
  111. package/lib/api-schemas/store.js +11 -0
  112. package/lib/api-schemas/store.js.map +1 -1
  113. package/lib/api-schemas/sts.d.ts +10 -0
  114. package/lib/api-schemas/sts.d.ts.map +1 -1
  115. package/lib/api-schemas/sts.js +14 -0
  116. package/lib/api-schemas/sts.js.map +1 -1
  117. package/lib/api-schemas/user.d.ts +36 -19
  118. package/lib/api-schemas/user.d.ts.map +1 -1
  119. package/lib/api-schemas/user.js +23 -17
  120. package/lib/api-schemas/user.js.map +1 -1
  121. package/lib/api-schemas/view-execution.d.ts +8 -0
  122. package/lib/api-schemas/view-execution.d.ts.map +1 -1
  123. package/lib/api-schemas/views.d.ts +14 -0
  124. package/lib/api-schemas/views.d.ts.map +1 -1
  125. package/lib/api-schemas/workflow-runs.d.ts +521 -72
  126. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  127. package/lib/api-schemas/workflow-runs.js +2 -0
  128. package/lib/api-schemas/workflow-runs.js.map +1 -1
  129. package/lib/apikey.d.ts +30 -25
  130. package/lib/apikey.d.ts.map +1 -1
  131. package/lib/apikey.js.map +1 -1
  132. package/lib/apps.d.ts +116 -120
  133. package/lib/apps.d.ts.map +1 -1
  134. package/lib/apps.js.map +1 -1
  135. package/lib/audit-trail.d.ts +17 -18
  136. package/lib/audit-trail.d.ts.map +1 -1
  137. package/lib/audit-trail.js +2 -0
  138. package/lib/audit-trail.js.map +1 -1
  139. package/lib/browser-credentials.d.ts +11 -12
  140. package/lib/browser-credentials.d.ts.map +1 -1
  141. package/lib/common.d.ts +17 -24
  142. package/lib/common.d.ts.map +1 -1
  143. package/lib/content-query.d.ts +3 -4
  144. package/lib/content-query.d.ts.map +1 -1
  145. package/lib/cost-analytics.d.ts +13 -21
  146. package/lib/cost-analytics.d.ts.map +1 -1
  147. package/lib/cost-analytics.js +0 -7
  148. package/lib/cost-analytics.js.map +1 -1
  149. package/lib/data-platform.d.ts +79 -88
  150. package/lib/data-platform.d.ts.map +1 -1
  151. package/lib/data-platform.js.map +1 -1
  152. package/lib/delegation.d.ts +4 -5
  153. package/lib/delegation.d.ts.map +1 -1
  154. package/lib/email.d.ts +15 -17
  155. package/lib/email.d.ts.map +1 -1
  156. package/lib/email.js.map +1 -1
  157. package/lib/embeddings.d.ts +25 -26
  158. package/lib/embeddings.d.ts.map +1 -1
  159. package/lib/environment.d.ts +16 -17
  160. package/lib/environment.d.ts.map +1 -1
  161. package/lib/environment.js.map +1 -1
  162. package/lib/facets.d.ts +3 -4
  163. package/lib/facets.d.ts.map +1 -1
  164. package/lib/group.d.ts +6 -7
  165. package/lib/group.d.ts.map +1 -1
  166. package/lib/group.js.map +1 -1
  167. package/lib/index.d.ts +4 -2
  168. package/lib/index.d.ts.map +1 -1
  169. package/lib/index.js.map +1 -1
  170. package/lib/inference-profile.d.ts +17 -0
  171. package/lib/inference-profile.d.ts.map +1 -0
  172. package/lib/inference-profile.js +2 -0
  173. package/lib/inference-profile.js.map +1 -0
  174. package/lib/integrations.d.ts +19 -20
  175. package/lib/integrations.d.ts.map +1 -1
  176. package/lib/integrations.js.map +1 -1
  177. package/lib/interaction.d.ts +68 -73
  178. package/lib/interaction.d.ts.map +1 -1
  179. package/lib/interaction.js.map +1 -1
  180. package/lib/meters.d.ts +4 -5
  181. package/lib/meters.d.ts.map +1 -1
  182. package/lib/oauth-server.d.ts +40 -37
  183. package/lib/oauth-server.d.ts.map +1 -1
  184. package/lib/oauth.d.ts +9 -10
  185. package/lib/oauth.d.ts.map +1 -1
  186. package/lib/payload.d.ts +11 -14
  187. package/lib/payload.d.ts.map +1 -1
  188. package/lib/pending-asks.d.ts +8 -13
  189. package/lib/pending-asks.d.ts.map +1 -1
  190. package/lib/pending-asks.js +0 -4
  191. package/lib/pending-asks.js.map +1 -1
  192. package/lib/platform-event.d.ts +48 -51
  193. package/lib/platform-event.d.ts.map +1 -1
  194. package/lib/platform-event.js.map +1 -1
  195. package/lib/principal-context.d.ts +23 -14
  196. package/lib/principal-context.d.ts.map +1 -1
  197. package/lib/project.d.ts +42 -43
  198. package/lib/project.d.ts.map +1 -1
  199. package/lib/project.js +10 -0
  200. package/lib/project.js.map +1 -1
  201. package/lib/prompt.d.ts +14 -16
  202. package/lib/prompt.d.ts.map +1 -1
  203. package/lib/prompt.js.map +1 -1
  204. package/lib/query.d.ts +10 -13
  205. package/lib/query.d.ts.map +1 -1
  206. package/lib/rate-limiter.d.ts +7 -11
  207. package/lib/rate-limiter.d.ts.map +1 -1
  208. package/lib/refs.d.ts +2 -3
  209. package/lib/refs.d.ts.map +1 -1
  210. package/lib/refs.js.map +1 -1
  211. package/lib/roles/types.d.ts +5 -6
  212. package/lib/roles/types.d.ts.map +1 -1
  213. package/lib/roles/types.js.map +1 -1
  214. package/lib/run-budget.d.ts +8 -0
  215. package/lib/run-budget.d.ts.map +1 -0
  216. package/lib/run-budget.js +2 -0
  217. package/lib/run-budget.js.map +1 -0
  218. package/lib/runs.d.ts +9 -10
  219. package/lib/runs.d.ts.map +1 -1
  220. package/lib/secrets.d.ts +20 -21
  221. package/lib/secrets.d.ts.map +1 -1
  222. package/lib/store/agent-approval.d.ts +4 -5
  223. package/lib/store/agent-approval.d.ts.map +1 -1
  224. package/lib/store/agent-approval.js.map +1 -1
  225. package/lib/store/agent-run.d.ts +50 -52
  226. package/lib/store/agent-run.d.ts.map +1 -1
  227. package/lib/store/agent-run.js.map +1 -1
  228. package/lib/store/collections.d.ts +11 -12
  229. package/lib/store/collections.d.ts.map +1 -1
  230. package/lib/store/collections.js.map +1 -1
  231. package/lib/store/conversation-state.d.ts +14 -8
  232. package/lib/store/conversation-state.d.ts.map +1 -1
  233. package/lib/store/doc-analyzer.d.ts +7 -8
  234. package/lib/store/doc-analyzer.d.ts.map +1 -1
  235. package/lib/store/dsl-workflow.d.ts +10 -12
  236. package/lib/store/dsl-workflow.d.ts.map +1 -1
  237. package/lib/store/dsl-workflow.js.map +1 -1
  238. package/lib/store/duration.d.ts +12 -0
  239. package/lib/store/duration.d.ts.map +1 -0
  240. package/lib/store/duration.js +2 -0
  241. package/lib/store/duration.js.map +1 -0
  242. package/lib/store/grounded-extraction.d.ts +6 -7
  243. package/lib/store/grounded-extraction.d.ts.map +1 -1
  244. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  245. package/lib/store/intake-policy-schema.generated.js +309 -34
  246. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  247. package/lib/store/process.d.ts +70 -69
  248. package/lib/store/process.d.ts.map +1 -1
  249. package/lib/store/process.js.map +1 -1
  250. package/lib/store/rendering.d.ts +6 -12
  251. package/lib/store/rendering.d.ts.map +1 -1
  252. package/lib/store/rendering.js +0 -5
  253. package/lib/store/rendering.js.map +1 -1
  254. package/lib/store/signals.d.ts +43 -0
  255. package/lib/store/signals.d.ts.map +1 -1
  256. package/lib/store/signals.js +6 -1
  257. package/lib/store/signals.js.map +1 -1
  258. package/lib/store/store.d.ts +92 -91
  259. package/lib/store/store.d.ts.map +1 -1
  260. package/lib/store/store.js.map +1 -1
  261. package/lib/store/task.d.ts +10 -14
  262. package/lib/store/task.d.ts.map +1 -1
  263. package/lib/store/workflow.d.ts +35 -41
  264. package/lib/store/workflow.d.ts.map +1 -1
  265. package/lib/store/workflow.js.map +1 -1
  266. package/lib/sts-token-types.d.ts +14 -17
  267. package/lib/sts-token-types.d.ts.map +1 -1
  268. package/lib/tools.d.ts +12 -13
  269. package/lib/tools.d.ts.map +1 -1
  270. package/lib/transient-tokens.d.ts +3 -3
  271. package/lib/transient-tokens.d.ts.map +1 -1
  272. package/lib/user.d.ts +17 -19
  273. package/lib/user.d.ts.map +1 -1
  274. package/lib/user.js.map +1 -1
  275. package/lib/vertesia-common.js +2 -2
  276. package/lib/vertesia-common.js.map +1 -1
  277. package/lib/views.d.ts +61 -64
  278. package/lib/views.d.ts.map +1 -1
  279. package/lib/views.js.map +1 -1
  280. package/lib/wire-types.generated.d.ts +11231 -0
  281. package/lib/wire-types.generated.d.ts.map +1 -0
  282. package/lib/wire-types.generated.js +4 -0
  283. package/lib/wire-types.generated.js.map +1 -0
  284. package/lib/workflow-analytics.d.ts +21 -19
  285. package/lib/workflow-analytics.d.ts.map +1 -1
  286. package/lib/workflow-analytics.js +2 -2
  287. package/lib/workflow-analytics.js.map +1 -1
  288. package/package.json +17 -12
  289. package/src/access-control-values.ts +2 -2
  290. package/src/access-control.ts +7 -15
  291. package/src/analytics.ts +6 -13
  292. package/src/api-contract/components.generated.json +4500 -2720
  293. package/src/api-schemas/access-control.ts +18 -16
  294. package/src/api-schemas/account.ts +13 -4
  295. package/src/api-schemas/agent-budget.ts +60 -0
  296. package/src/api-schemas/agent-runs.ts +63 -27
  297. package/src/api-schemas/apikey.ts +11 -10
  298. package/src/api-schemas/app-lifecycle.ts +16 -0
  299. package/src/api-schemas/app-runtime.ts +15 -0
  300. package/src/api-schemas/audit-trail.ts +7 -1
  301. package/src/api-schemas/content.ts +55 -0
  302. package/src/api-schemas/cost-analytics.ts +34 -2
  303. package/src/api-schemas/environment.ts +0 -1
  304. package/src/api-schemas/group.ts +2 -1
  305. package/src/api-schemas/index.ts +1 -0
  306. package/src/api-schemas/inference-profile.ts +151 -0
  307. package/src/api-schemas/interaction.ts +41 -1
  308. package/src/api-schemas/invites.ts +10 -9
  309. package/src/api-schemas/oauth-server.ts +36 -0
  310. package/src/api-schemas/process.ts +78 -2
  311. package/src/api-schemas/project-configuration.ts +25 -1
  312. package/src/api-schemas/project.ts +19 -10
  313. package/src/api-schemas/prompt.ts +1 -0
  314. package/src/api-schemas/quota.ts +7 -6
  315. package/src/api-schemas/registry.ts +210 -44
  316. package/src/api-schemas/run-budget.ts +60 -0
  317. package/src/api-schemas/store.ts +12 -0
  318. package/src/api-schemas/sts.ts +16 -0
  319. package/src/api-schemas/user.ts +32 -25
  320. package/src/api-schemas/workflow-runs.ts +2 -0
  321. package/src/apikey.ts +30 -39
  322. package/src/apps.ts +117 -237
  323. package/src/audit-trail.ts +18 -33
  324. package/src/browser-credentials.ts +11 -23
  325. package/src/common.ts +17 -37
  326. package/src/content-query.ts +3 -4
  327. package/src/cost-analytics.ts +13 -35
  328. package/src/data-platform.ts +79 -168
  329. package/src/delegation.ts +4 -9
  330. package/src/email.ts +15 -29
  331. package/src/embeddings.ts +25 -51
  332. package/src/environment.ts +16 -33
  333. package/src/facets.ts +3 -4
  334. package/src/group.ts +6 -13
  335. package/src/index.ts +36 -2
  336. package/src/inference-profile.ts +20 -0
  337. package/src/integrations.ts +21 -41
  338. package/src/interaction.ts +68 -137
  339. package/src/meters.ts +4 -9
  340. package/src/oauth-server.ts +43 -73
  341. package/src/oauth.ts +9 -19
  342. package/src/payload.ts +11 -25
  343. package/src/pending-asks.ts +8 -22
  344. package/src/platform-event.ts +48 -97
  345. package/src/principal-context.ts +24 -14
  346. package/src/project.ts +53 -86
  347. package/src/prompt.ts +14 -31
  348. package/src/query.ts +10 -20
  349. package/src/rate-limiter.ts +7 -19
  350. package/src/refs.ts +2 -3
  351. package/src/roles/types.ts +5 -11
  352. package/src/run-budget.ts +8 -0
  353. package/src/runs.ts +9 -19
  354. package/src/secrets.ts +20 -41
  355. package/src/store/agent-approval.ts +4 -9
  356. package/src/store/agent-run.ts +53 -99
  357. package/src/store/collections.ts +11 -23
  358. package/src/store/conversation-state.ts +15 -15
  359. package/src/store/doc-analyzer.ts +7 -15
  360. package/src/store/dsl-workflow.ts +10 -23
  361. package/src/store/duration.ts +45 -0
  362. package/src/store/grounded-extraction.ts +6 -13
  363. package/src/store/intake-policy-schema.generated.ts +314 -34
  364. package/src/store/process.ts +70 -140
  365. package/src/store/rendering.ts +6 -19
  366. package/src/store/signals.ts +48 -0
  367. package/src/store/store.ts +92 -181
  368. package/src/store/task.ts +10 -24
  369. package/src/store/workflow.ts +35 -71
  370. package/src/sts-token-types.ts +15 -29
  371. package/src/tools.ts +12 -25
  372. package/src/transient-tokens.ts +3 -3
  373. package/src/user.ts +18 -33
  374. package/src/views.ts +61 -125
  375. package/src/wire-types.generated.ts +11889 -0
  376. package/src/workflow-analytics.ts +21 -19
  377. package/src/agent-resources.test.ts +0 -89
  378. package/src/api-contract/components.contract.test.ts +0 -99
  379. package/src/api-schemas/access-control.contract.test.ts +0 -209
  380. package/src/api-schemas/account-apikey.test.ts +0 -60
  381. package/src/api-schemas/account.contract.test.ts +0 -319
  382. package/src/api-schemas/adapter-edge-cases.test.ts +0 -499
  383. package/src/api-schemas/agent-communication.contract.test.ts +0 -90
  384. package/src/api-schemas/agent-history.contract.test.ts +0 -42
  385. package/src/api-schemas/agent-runs.contract.test.ts +0 -240
  386. package/src/api-schemas/api-discriminators.test.ts +0 -185
  387. package/src/api-schemas/apikey.contract.test.ts +0 -270
  388. package/src/api-schemas/app-delete-summary.contract.test.ts +0 -67
  389. package/src/api-schemas/bulk-operation.contract.test.ts +0 -39
  390. package/src/api-schemas/bundle-isolation.test.ts +0 -44
  391. package/src/api-schemas/commands.contract.test.ts +0 -51
  392. package/src/api-schemas/cost-analytics.contract.test.ts +0 -64
  393. package/src/api-schemas/dashboard.contract.test.ts +0 -138
  394. package/src/api-schemas/data-store.contract.test.ts +0 -97
  395. package/src/api-schemas/document-processing.contract.test.ts +0 -76
  396. package/src/api-schemas/emit-json-schema.test.ts +0 -36
  397. package/src/api-schemas/environment.contract.test.ts +0 -202
  398. package/src/api-schemas/group.contract.test.ts +0 -205
  399. package/src/api-schemas/indexing.contract.test.ts +0 -122
  400. package/src/api-schemas/interaction.contract.test.ts +0 -307
  401. package/src/api-schemas/invites.contract.test.ts +0 -268
  402. package/src/api-schemas/llumiverse.contract.test.ts +0 -149
  403. package/src/api-schemas/mcp-api-key.contract.test.ts +0 -125
  404. package/src/api-schemas/oauth.contract.test.ts +0 -181
  405. package/src/api-schemas/parameters.test.ts +0 -402
  406. package/src/api-schemas/process.contract.test.ts +0 -115
  407. package/src/api-schemas/project.contract.test.ts +0 -457
  408. package/src/api-schemas/pruning-limits.test.ts +0 -189
  409. package/src/api-schemas/quota.contract.test.ts +0 -147
  410. package/src/api-schemas/registry-groups.test.ts +0 -91
  411. package/src/api-schemas/response-pruning.test.ts +0 -260
  412. package/src/api-schemas/store.contract.test.ts +0 -378
  413. package/src/api-schemas/sts.contract.test.ts +0 -112
  414. package/src/api-schemas/user.contract.test.ts +0 -191
  415. package/src/api-schemas/views.contract.test.ts +0 -119
  416. package/src/api-schemas/zeno-response-contracts.test.ts +0 -380
  417. package/src/apps.test.ts +0 -89
  418. package/src/oauth-scopes.test.ts +0 -15
  419. package/src/roles.test.ts +0 -33
  420. package/src/schema-for-extraction.test.ts +0 -191
  421. package/src/store/agent-approval.test.ts +0 -18
  422. package/src/store/content-type-editing.test.ts +0 -17
  423. package/src/store/ms.d.ts +0 -42
  424. package/src/store/schedule.test.ts +0 -59
  425. package/src/store/workflow.test.ts +0 -640
  426. package/src/versions.test.ts +0 -13
@@ -1,6 +1,11 @@
1
1
  import { z } from 'zod';
2
+ import { AgentBudgetConfigurationSchema } from './agent-budget.js';
3
+
4
+ export { AgentBudgetConfigurationSchema } from './agent-budget.js';
5
+
2
6
  // From the values module, for the reason `./apikey.js` gives.
3
7
  import { ResourceVisibility } from '../project-values.js';
8
+ import { ProjectInferenceProfilesSchema } from './inference-profile.js';
4
9
  import { ContentTypeIntakePolicySchema } from './store.js';
5
10
 
6
11
  /**
@@ -145,9 +150,18 @@ export const AgentCheckpointConfigurationSchema = z
145
150
 
146
151
  export const AgentProjectConfigurationSchema = z
147
152
  .strictObject({
153
+ evaluation_policy: z.enum(['disabled', 'opt_in', 'always_on']).optional().meta({
154
+ description:
155
+ 'LLM evaluation policy. Defaults to always_on when omitted. disabled prevents evaluation even when requested; opt_in requires evaluate=true on the run; always_on evaluates every eligible run without sampling. Deterministic diagnostics are unaffected.',
156
+ }),
148
157
  checkpoint: AgentCheckpointConfigurationSchema.optional().meta({
149
158
  description: 'Conversation checkpoint (context compaction) tuning.',
150
159
  }),
160
+ budget: AgentBudgetConfigurationSchema.optional().meta({
161
+ description:
162
+ 'Default token budget for agent runs in this project. Field-wise overridden by the ' +
163
+ "interaction's `agent_runner_options.budget` and the per-run `budget`.",
164
+ }),
151
165
  })
152
166
  .meta({
153
167
  id: 'AgentProjectConfiguration',
@@ -422,7 +436,11 @@ export const ProjectConfigurationSchema = z
422
436
  default_environment: z.string().optional(),
423
437
  default_model: z.string().optional(),
424
438
  human_context: z.string().optional(),
425
- defaults: ProjectModelDefaultsSchema.optional(),
439
+ defaults: ProjectModelDefaultsSchema.optional().meta({
440
+ deprecated: true,
441
+ description: 'Legacy model defaults, replaced by inference profile assignments after migration.',
442
+ }),
443
+ inference: ProjectInferenceProfilesSchema.optional(),
426
444
  default_visibility: ResourceVisibilitySchema.optional(),
427
445
  sync_content_properties: z.boolean().optional(),
428
446
  embeddings: z.strictObject({
@@ -460,6 +478,12 @@ export const ProjectConfigurationSchema = z
460
478
  "'de'). Determines which Elasticsearch analyzer is used for the text field. Defaults to 'en' " +
461
479
  '(English/standard analyzer).\n\nChanging this value requires a full reindex to take effect.',
462
480
  }),
481
+ oauth_clients: z
482
+ .strictObject({
483
+ external_clients: z.enum(['allow_all', 'allowlist']).optional(),
484
+ allowed_origins: z.array(z.string()).optional(),
485
+ })
486
+ .optional(),
463
487
  browser_use: BrowserUseProjectConfigurationSchema.optional().meta({
464
488
  description: 'Project defaults and caps for browser_use agent workstreams.',
465
489
  }),
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  // From the values module, for the reason `./apikey.js` gives.
3
3
  import { SupportedIntegrations } from '../integrations.js';
4
+ import type * as Wire from '../wire-types.generated.js';
4
5
  import { ProjectConfigurationSchema } from './project-configuration.js';
5
6
 
6
7
  /**
@@ -103,15 +104,15 @@ export const ProjectToolInfoSchema = z
103
104
 
104
105
  export const ProjectToolInfoArraySchema = z.array(ProjectToolInfoSchema).meta({ id: 'ProjectToolInfoArray' });
105
106
 
106
- export type ListProjectsQueryFromSchema = z.infer<typeof ListProjectsQuerySchema>;
107
- export type ProjectTagQueryFromSchema = z.infer<typeof ProjectTagQuerySchema>;
108
- export type CreateProjectPayloadFromSchema = z.infer<typeof CreateProjectPayloadSchema>;
109
- export type ProjectPluginsUpdatePayloadFromSchema = z.infer<typeof ProjectPluginsUpdatePayloadSchema>;
110
- export type CountResultFromSchema = z.infer<typeof CountResultSchema>;
111
- export type ProjectIntegrationListEntryFromSchema = z.infer<typeof ProjectIntegrationListEntrySchema>;
112
- export type ProjectIntegrationListResponseFromSchema = z.infer<typeof ProjectIntegrationListResponseSchema>;
113
- export type ProjectToolInfoFromSchema = z.infer<typeof ProjectToolInfoSchema>;
114
- export type ProjectToolInfoArrayFromSchema = z.infer<typeof ProjectToolInfoArraySchema>;
107
+ export type ListProjectsQueryFromSchema = Wire.ListProjectsQueryFromSchema;
108
+ export type ProjectTagQueryFromSchema = Wire.ProjectTagQueryFromSchema;
109
+ export type CreateProjectPayloadFromSchema = Wire.CreateProjectPayloadFromSchema;
110
+ export type ProjectPluginsUpdatePayloadFromSchema = Wire.ProjectPluginsUpdatePayloadFromSchema;
111
+ export type CountResultFromSchema = Wire.CountResultFromSchema;
112
+ export type ProjectIntegrationListEntryFromSchema = Wire.ProjectIntegrationListEntryFromSchema;
113
+ export type ProjectIntegrationListResponseFromSchema = Wire.ProjectIntegrationListResponseFromSchema;
114
+ export type ProjectToolInfoFromSchema = Wire.ProjectToolInfoFromSchema;
115
+ export type ProjectToolInfoArrayFromSchema = Wire.ProjectToolInfoArrayFromSchema;
115
116
 
116
117
  /**
117
118
  * The rendering templates an app ships, and the reference form the manifest embeds.
@@ -194,6 +195,11 @@ export const ProjectSchema = z
194
195
  configuration: ProjectConfigurationSchema,
195
196
  integrations: z.record(z.string(), z.unknown()).optional(),
196
197
  plugins: z.array(z.string()),
198
+ annotations: z.array(z.string()).meta({ description: 'Classification annotations' }).optional(),
199
+ last_activity_at: z
200
+ .string()
201
+ .meta({ format: 'date-time', description: 'When the project last saw activity. Not yet populated.' })
202
+ .optional(),
197
203
  created_by: z.string(),
198
204
  updated_by: z.string(),
199
205
  created_at: z.string().meta({ format: 'date-time' }),
@@ -206,8 +212,11 @@ export const ProjectSchema = z
206
212
  *
207
213
  * `.partial()` keeps both update contracts tied to the corresponding response contract, so a field
208
214
  * added to either source schema is available to its update payload without a hand-written twin.
215
+ * `annotations` and `last_activity_at` are vertesia-managed, so they are read-only.
209
216
  */
210
- export const UpdateProjectPayloadSchema = ProjectSchema.partial().meta({ id: 'UpdateProjectPayload' });
217
+ export const UpdateProjectPayloadSchema = ProjectSchema.omit({ annotations: true, last_activity_at: true })
218
+ .partial()
219
+ .meta({ id: 'UpdateProjectPayload' });
211
220
 
212
221
  export const UpdateProjectConfigurationPayloadSchema = ProjectConfigurationSchema.partial().meta({
213
222
  id: 'UpdateProjectConfigurationPayload',
@@ -34,6 +34,7 @@ export const PromptTemplateInteractionVersionSchema = z
34
34
 
35
35
  export const PromptTemplateForkPayloadSchema = z
36
36
  .strictObject({
37
+ newName: z.string().optional(),
37
38
  keepTags: z.boolean().optional(),
38
39
  targetProject: z.string().optional(),
39
40
  })
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import type * as Wire from '../wire-types.generated.js';
2
3
 
3
4
  /**
4
5
  * Runtime API schemas for quota standing and tier endpoints.
@@ -114,9 +115,9 @@ export const QuotaTierResponseSchema = z
114
115
  * definitions of one contract, only one of which OpenAPI publishes and AJV compiles.
115
116
  * `../rate-limiter.ts` re-exports these under their public names.
116
117
  */
117
- export type QuotaEffectiveTierFromSchema = z.infer<typeof QuotaEffectiveTierSchema>;
118
- export type QuotaStandingWindowFromSchema = z.infer<typeof QuotaStandingWindowSchema>;
119
- export type QuotaStandingResourceFromSchema = z.infer<typeof QuotaStandingResourceSchema>;
120
- export type QuotaStandingAdmissionClassFromSchema = z.infer<typeof QuotaStandingAdmissionClassSchema>;
121
- export type QuotaStandingResponseFromSchema = z.infer<typeof QuotaStandingResponseSchema>;
122
- export type QuotaTierResponseFromSchema = z.infer<typeof QuotaTierResponseSchema>;
118
+ export type QuotaEffectiveTierFromSchema = Wire.QuotaEffectiveTierFromSchema;
119
+ export type QuotaStandingWindowFromSchema = Wire.QuotaStandingWindowFromSchema;
120
+ export type QuotaStandingResourceFromSchema = Wire.QuotaStandingResourceFromSchema;
121
+ export type QuotaStandingAdmissionClassFromSchema = Wire.QuotaStandingAdmissionClassFromSchema;
122
+ export type QuotaStandingResponseFromSchema = Wire.QuotaStandingResponseFromSchema;
123
+ export type QuotaTierResponseFromSchema = Wire.QuotaTierResponseFromSchema;
@@ -69,6 +69,7 @@ import type {
69
69
  UpdateProcessDefinitionPayload,
70
70
  } from '../store/process.js';
71
71
  import type { ViewNavigationNode } from '../views.js';
72
+ import type { ApiComponentTypes } from '../wire-types.generated.js';
72
73
  import {
73
74
  ACECreatePayloadSchema,
74
75
  ACEUpdatePayloadSchema,
@@ -77,7 +78,12 @@ import {
77
78
  RoleDefinitionArraySchema,
78
79
  SystemRoleDefinitionArraySchema,
79
80
  } from './access-control.js';
80
- import { AccountSchema, StripeBillingStatusResponseSchema, UpdateAccountPayloadSchema } from './account.js';
81
+ import {
82
+ AccountApiVersionPolicySchema,
83
+ AccountSchema,
84
+ StripeBillingStatusResponseSchema,
85
+ UpdateAccountPayloadSchema,
86
+ } from './account.js';
81
87
  import { type JsonObject, toOpenApiComponents } from './adapter.js';
82
88
  import * as AgentCommunicationSchemas from './agent-communication.js';
83
89
  import * as AgentRunSchemas from './agent-runs.js';
@@ -175,6 +181,7 @@ import {
175
181
  StartAppScaffoldResponseSchema,
176
182
  StoredTypeRefSchema,
177
183
  SystemPackageQuerySchema,
184
+ UpdateAppInstallationOAuthApprovalPayloadSchema,
178
185
  UpdateAppInstallationToolAllowlistPayloadSchema,
179
186
  UpsertAppVersionRequestSchema,
180
187
  ValidateUrlRequestSchema,
@@ -461,6 +468,23 @@ import {
461
468
  ReindexAgentRunsResponseSchema,
462
469
  StartProjectReindexPayloadSchema,
463
470
  } from './indexing.js';
471
+ import {
472
+ CreateInferenceProfilePayloadSchema,
473
+ InferenceProfileIdSchema,
474
+ InferenceProfileNameSchema,
475
+ InferenceProfileRecordArraySchema,
476
+ InferenceProfileRecordSchema,
477
+ InferenceProfileSchema,
478
+ InferenceProfileSnapshotSchema,
479
+ InferenceProfileUsageEntrySchema,
480
+ InferenceProfileUsageQuerySchema,
481
+ InferenceProfileUsageSchema,
482
+ InteractionConfigurationRecordSchema,
483
+ InteractionConfigurationResultSchema,
484
+ ProjectInferenceProfilesSchema,
485
+ UpdateInferenceProfilePayloadSchema,
486
+ UpdateInteractionConfigurationPayloadSchema,
487
+ } from './inference-profile.js';
464
488
  import * as IntegrationSchemas from './integrations.js';
465
489
  import {
466
490
  AgentResourceActionSchema,
@@ -630,6 +654,7 @@ import {
630
654
  CreateOAuthClientPayloadSchema,
631
655
  ListOAuthGrantsQuerySchema,
632
656
  OAuthAuthorizationDecisionResponseSchema,
657
+ OAuthAuthorizationRequestGeneratedAppSchema,
633
658
  OAuthAuthorizationRequestSchema,
634
659
  OAuthAuthorizationRequestStatusSchema,
635
660
  OAuthAuthorizationServerMetadataSchema,
@@ -652,6 +677,9 @@ import {
652
677
  OAuthGrantSortOrderSchema,
653
678
  OAuthGrantStatusSchema,
654
679
  OAuthGrantTypeSchema,
680
+ OAuthLoginDecisionResponseSchema,
681
+ OAuthLoginPayloadSchema,
682
+ OAuthLoginUserNotFoundResponseSchema,
655
683
  OAuthProjectBindingModeSchema,
656
684
  OAuthRegistrationSourceSchema,
657
685
  OAuthResponseTypeSchema,
@@ -698,6 +726,7 @@ import {
698
726
  RenderPromptResponseSchema,
699
727
  } from './prompt.js';
700
728
  import { QuotaStandingResponseSchema, QuotaTierResponseSchema } from './quota.js';
729
+ import * as RunBudgetSchemas from './run-budget.js';
701
730
  import * as SecretSchemas from './secrets.js';
702
731
  import {
703
732
  ColumnLayoutSchema,
@@ -833,6 +862,7 @@ import * as WorkflowRunSchemas from './workflow-runs.js';
833
862
  * group approaches the proven-safe size.
834
863
  */
835
864
  const IAM_AND_ACCOUNT_SCHEMAS = {
865
+ AccountApiVersionPolicy: AccountApiVersionPolicySchema,
836
866
  Account: AccountSchema,
837
867
  UpdateAccountPayload: UpdateAccountPayloadSchema,
838
868
  StripeBillingStatusResponse: StripeBillingStatusResponseSchema,
@@ -975,6 +1005,10 @@ const OAUTH_SCHEMAS = {
975
1005
  OAuthAuthorizeQuery: OAuthAuthorizeQuerySchema,
976
1006
  CreateOAuthAuthorizationRequestPayload: CreateOAuthAuthorizationRequestPayloadSchema,
977
1007
  OAuthAuthorizationRequest: OAuthAuthorizationRequestSchema,
1008
+ OAuthAuthorizationRequestGeneratedApp: OAuthAuthorizationRequestGeneratedAppSchema,
1009
+ OAuthLoginPayload: OAuthLoginPayloadSchema,
1010
+ OAuthLoginUserNotFoundResponse: OAuthLoginUserNotFoundResponseSchema,
1011
+ OAuthLoginDecisionResponse: OAuthLoginDecisionResponseSchema,
978
1012
  ApproveOAuthAuthorizationRequestPayload: ApproveOAuthAuthorizationRequestPayloadSchema,
979
1013
  OAuthGrantableScopesResponse: OAuthGrantableScopesResponseSchema,
980
1014
  OAuthAuthorizationDecisionResponse: OAuthAuthorizationDecisionResponseSchema,
@@ -1100,6 +1134,21 @@ const LLM_COMPLETION_SCHEMAS = {
1100
1134
  } as const satisfies Record<string, z.ZodType>;
1101
1135
 
1102
1136
  const INTERACTION_SCHEMAS = {
1137
+ UpdateInteractionConfigurationPayload: UpdateInteractionConfigurationPayloadSchema,
1138
+ InteractionConfigurationRecord: InteractionConfigurationRecordSchema,
1139
+ InteractionConfigurationResult: InteractionConfigurationResultSchema,
1140
+ CreateInferenceProfilePayload: CreateInferenceProfilePayloadSchema,
1141
+ UpdateInferenceProfilePayload: UpdateInferenceProfilePayloadSchema,
1142
+ InferenceProfileRecord: InferenceProfileRecordSchema,
1143
+ InferenceProfileUsage: InferenceProfileUsageSchema,
1144
+ InferenceProfileUsageEntry: InferenceProfileUsageEntrySchema,
1145
+ InferenceProfileUsageQuery: InferenceProfileUsageQuerySchema,
1146
+ InferenceProfileRecordArray: InferenceProfileRecordArraySchema,
1147
+ InferenceProfileId: InferenceProfileIdSchema,
1148
+ InferenceProfileName: InferenceProfileNameSchema,
1149
+ InferenceProfile: InferenceProfileSchema,
1150
+ InferenceProfileSnapshot: InferenceProfileSnapshotSchema,
1151
+ ProjectInferenceProfiles: ProjectInferenceProfilesSchema,
1103
1152
  // The interaction definition and the prompt tree under it.
1104
1153
  InteractionStatus: InteractionStatusSchema,
1105
1154
  InteractionVisibility: InteractionVisibilitySchema,
@@ -1216,7 +1265,27 @@ const AGENT_CONVERSATION_SCHEMAS = {
1216
1265
  ConversationState: ConversationStateSchema,
1217
1266
  } as const satisfies Record<string, z.ZodType>;
1218
1267
 
1219
- const EXECUTION_RUN_SCHEMAS = {
1268
+ // Reference schema types by name to keep declaration output bounded without erasing payload types.
1269
+ type ExecutionRunSchemaMap = {
1270
+ ExecutionRunStatus: typeof ExecutionRunStatusSchema;
1271
+ RunSourceTypes: typeof RunSourceTypesSchema;
1272
+ RunSource: typeof RunSourceSchema;
1273
+ ExecutionRunDocRef: typeof ExecutionRunDocRefSchema;
1274
+ ExecutionRunWorkflow: typeof ExecutionRunWorkflowSchema;
1275
+ ExecutionRunInteraction: typeof ExecutionRunInteractionSchema;
1276
+ ExecutionRun: typeof ExecutionRunSchema;
1277
+ ExecutionRunRef: typeof ExecutionRunRefSchema;
1278
+ ExecutionRunRefArray: typeof ExecutionRunRefArraySchema;
1279
+ UpdateExecutionRunPayload: typeof UpdateExecutionRunPayloadSchema;
1280
+ RunCreatePayload: typeof RunCreatePayloadSchema;
1281
+ SortOrder: typeof SortOrderSchema;
1282
+ SortOption: typeof SortOptionSchema;
1283
+ RunSearchQuery: typeof RunSearchQuerySchema;
1284
+ RunListQuery: typeof RunListQuerySchema;
1285
+ RunSearchPayload: typeof RunSearchPayloadSchema;
1286
+ };
1287
+
1288
+ const EXECUTION_RUN_SCHEMAS: ExecutionRunSchemaMap = {
1220
1289
  // A run: what was executed, by whom, and how it ended.
1221
1290
  ExecutionRunStatus: ExecutionRunStatusSchema,
1222
1291
  RunSourceTypes: RunSourceTypesSchema,
@@ -1235,6 +1304,38 @@ const EXECUTION_RUN_SCHEMAS = {
1235
1304
  RunSearchQuery: RunSearchQuerySchema,
1236
1305
  RunListQuery: RunListQuerySchema,
1237
1306
  RunSearchPayload: RunSearchPayloadSchema,
1307
+ } as const satisfies Record<string, z.ZodType>;
1308
+
1309
+ const EXECUTION_REQUEST_SCHEMAS: {
1310
+ InteractionExecutionPayload: typeof InteractionExecutionPayloadSchema;
1311
+ NamedInteractionExecutionPayload: typeof NamedInteractionExecutionPayloadSchema;
1312
+ InteractionExecutionResult: typeof InteractionExecutionResultSchema;
1313
+ FindRunResult: typeof FindRunResultSchema;
1314
+ FindRunResultArray: typeof FindRunResultArraySchema;
1315
+ PopulatedExecutionRunResult: typeof PopulatedExecutionRunResultSchema;
1316
+ LegacyExecutionRunResult: typeof LegacyExecutionRunResultSchema;
1317
+ LegacyPopulatedExecutionRunResult: typeof LegacyPopulatedExecutionRunResultSchema;
1318
+ InteractionExecutionConfiguration: typeof InteractionExecutionConfigurationSchema;
1319
+ InteractionExecutionError: typeof InteractionExecutionErrorSchema;
1320
+ ResultStorageOptions: typeof ResultStorageOptionsSchema;
1321
+ ExecuteInteractionByEndpointQuery: typeof ExecuteInteractionByEndpointQuerySchema;
1322
+ ExecuteInteractionByEndpointHeaders: typeof ExecuteInteractionByEndpointHeadersSchema;
1323
+ AsyncCompletionMode: typeof AsyncCompletionModeSchema;
1324
+ AsyncCompletionOptions: typeof AsyncCompletionOptionsSchema;
1325
+ AsyncExecutionPayload: typeof AsyncExecutionPayloadSchema;
1326
+ AsyncInteractionExecutionPayload: typeof AsyncInteractionExecutionPayloadSchema;
1327
+ AsyncConversationExecutionPayload: typeof AsyncConversationExecutionPayloadSchema;
1328
+ AsyncExecutionResult: typeof AsyncExecutionResultSchema;
1329
+ RateLimitRequestPayload: typeof RateLimitRequestPayloadSchema;
1330
+ RateLimitRequestResponse: typeof RateLimitRequestResponseSchema;
1331
+ ComputeRunFacetPayload: typeof ComputeRunFacetPayloadSchema;
1332
+ ComputeRunFacetsResponse: typeof ComputeRunFacetsResponseSchema;
1333
+ RunSearchMetaResponse: typeof RunSearchMetaResponseSchema;
1334
+ ToolResultsPayload: typeof ToolResultsPayloadSchema;
1335
+ UserMessagePayload: typeof UserMessagePayloadSchema;
1336
+ ExecutionResponse: typeof ExecutionResponseSchema;
1337
+ RunClonePayload: typeof RunClonePayloadSchema;
1338
+ } = {
1238
1339
  // Executing an interaction, synchronously or as a workflow.
1239
1340
  InteractionExecutionPayload: InteractionExecutionPayloadSchema,
1240
1341
  NamedInteractionExecutionPayload: NamedInteractionExecutionPayloadSchema,
@@ -1313,7 +1414,22 @@ const DURABLE_TASK_SCHEMAS = {
1313
1414
  ListTasksQuery: ListTasksQuerySchema,
1314
1415
  } as const satisfies Record<string, z.ZodType>;
1315
1416
 
1316
- const CONTENT_TYPE_CATALOG_SCHEMAS = {
1417
+ // Keep declaration emit from expanding the nested content-type schemas.
1418
+ const CONTENT_TYPE_CATALOG_SCHEMAS: {
1419
+ readonly ColumnLayout: typeof ColumnLayoutSchema;
1420
+ readonly ContentTypeEditingPolicy: typeof ContentTypeEditingPolicySchema;
1421
+ readonly ContentObjectTypeStatus: typeof ContentObjectTypeStatusSchema;
1422
+ readonly ContentObjectTypeItem: typeof ContentObjectTypeItemSchema;
1423
+ readonly ContentObjectTypeItemArray: typeof ContentObjectTypeItemArraySchema;
1424
+ readonly ContentObjectTypeCatalogEntry: typeof ContentObjectTypeCatalogEntrySchema;
1425
+ readonly ContentObjectTypeCatalogEntryArray: typeof ContentObjectTypeCatalogEntryArraySchema;
1426
+ readonly InCodeTypeDefinition: typeof InCodeTypeDefinitionSchema;
1427
+ readonly CreateContentObjectTypePayload: typeof CreateContentObjectTypePayloadSchema;
1428
+ readonly UpdateContentObjectTypePayload: typeof UpdateContentObjectTypePayloadSchema;
1429
+ readonly ContentObjectType: typeof ContentObjectTypeSchema;
1430
+ readonly ContentObjectTypeCatalogQuery: typeof ContentObjectTypeCatalogQuerySchema;
1431
+ readonly ContentObjectTypeListQuery: typeof ContentObjectTypeListQuerySchema;
1432
+ } = {
1317
1433
  ColumnLayout: ColumnLayoutSchema,
1318
1434
  ContentTypeEditingPolicy: ContentTypeEditingPolicySchema,
1319
1435
  ContentObjectTypeStatus: ContentObjectTypeStatusSchema,
@@ -1690,6 +1806,9 @@ const PROCESS_RUNTIME_SCHEMAS = {
1690
1806
  AnswerProcessTaskPayload: ProcessSchemas.AnswerProcessTaskPayloadSchema,
1691
1807
  AdvanceProcessPayload: ProcessSchemas.AdvanceProcessPayloadSchema,
1692
1808
  ProcessState: ProcessSchemas.ProcessStateSchema,
1809
+ ProcessTerminalReason: ProcessSchemas.ProcessTerminalReasonSchema,
1810
+ ProcessBudgetState: ProcessSchemas.ProcessBudgetStateSchema,
1811
+ ProcessBudgetSummary: ProcessSchemas.ProcessBudgetSummarySchema,
1693
1812
  WorkflowExecutionStartResultArray: ProcessSchemas.WorkflowExecutionStartResultArraySchema,
1694
1813
  RecordProcessRunPayload: ProcessSchemas.RecordProcessRunPayloadSchema,
1695
1814
  ProcessTestRunStatus: ProcessSchemas.ProcessTestRunStatusSchema,
@@ -1811,6 +1930,7 @@ const AGENT_RUN_SCHEMAS = {
1811
1930
  AgentRunArchiveState: AgentRunSchemas.AgentRunArchiveStateSchema,
1812
1931
  ResourceRef: AgentRunSchemas.ResourceRefSchema,
1813
1932
  SignalAgentResponse: AgentRunSchemas.SignalAgentResponseSchema,
1933
+ AllocateAgentRunBudgetPayload: AgentRunSchemas.AllocateAgentRunBudgetPayloadSchema,
1814
1934
  AutonomousRunResponse: AgentRunSchemas.AutonomousRunResponseSchema,
1815
1935
  AgentRun: AgentRunSchemas.AgentRunSchema,
1816
1936
  CreateAgentRunPayload: AgentRunSchemas.CreateAgentRunPayloadSchema,
@@ -1841,16 +1961,16 @@ const AGENT_RUN_SCHEMAS = {
1841
1961
  AgentRunFeedbackResponse: AgentRunSchemas.AgentRunFeedbackResponseSchema,
1842
1962
  AgentRunFeedbackEntry: AgentRunSchemas.AgentRunFeedbackEntrySchema,
1843
1963
  AgentRunEvaluationRollup: AgentRunSchemas.AgentRunEvaluationRollupSchema,
1844
- AgentRunJudgeResult: AgentRunSchemas.AgentRunJudgeResultSchema,
1964
+ AgentRunLlmEvaluationResult: AgentRunSchemas.AgentRunLlmEvaluationResultSchema,
1845
1965
  AgentRunContradictionReason: AgentRunSchemas.AgentRunContradictionReasonSchema,
1846
1966
  AgentRunEvaluation: AgentRunSchemas.AgentRunEvaluationSchema,
1847
1967
  TurnTerminalType: AgentRunSchemas.TurnTerminalTypeSchema,
1848
1968
  EvaluationSeverity: AgentRunSchemas.EvaluationSeveritySchema,
1849
1969
  TurnEvaluationFlag: AgentRunSchemas.TurnEvaluationFlagSchema,
1850
1970
  ToolErrorClass: AgentRunSchemas.ToolErrorClassSchema,
1851
- JudgeGateReason: AgentRunSchemas.JudgeGateReasonSchema,
1852
- JudgeOutcome: AgentRunSchemas.JudgeOutcomeSchema,
1853
- JudgeVerdict: AgentRunSchemas.JudgeVerdictSchema,
1971
+ EvaluationGateReason: AgentRunSchemas.EvaluationGateReasonSchema,
1972
+ EvaluationOutcome: AgentRunSchemas.EvaluationOutcomeSchema,
1973
+ EvaluationVerdict: AgentRunSchemas.EvaluationVerdictSchema,
1854
1974
  ListAgentRunsEvaluationSeverity: AgentRunSchemas.ListAgentRunsEvaluationSeveritySchema,
1855
1975
  AgentEvent: AgentRunSchemas.AgentEventSchema,
1856
1976
  IngestAgentEventsPayload: AgentRunSchemas.IngestAgentEventsPayloadSchema,
@@ -2083,6 +2203,7 @@ const VIEW_EXPERIENCE_SCHEMAS = {
2083
2203
  const APP_LIFECYCLE_SCHEMAS = {
2084
2204
  // What an app does once it exists: versions, builds, scaffolds, git repositories,
2085
2205
  // development tasks, installations and inspection.
2206
+ UpdateAppInstallationOAuthApprovalPayload: UpdateAppInstallationOAuthApprovalPayloadSchema,
2086
2207
  UpdateAppInstallationToolAllowlistPayload: UpdateAppInstallationToolAllowlistPayloadSchema,
2087
2208
  ValidateUrlResponse: ValidateUrlResponseSchema,
2088
2209
  ValidateUrlRequest: ValidateUrlRequestSchema,
@@ -2280,6 +2401,8 @@ const STS_SCHEMAS = {
2280
2401
  EnvironmentTokenRequest: StsSchemas.EnvironmentTokenRequestSchema,
2281
2402
  AgentTokenRequest: StsSchemas.AgentTokenRequestSchema,
2282
2403
  ServiceAccountTokenRequest: StsSchemas.ServiceAccountTokenRequestSchema,
2404
+ AppSessionTokenRequest: StsSchemas.AppSessionTokenRequestSchema,
2405
+ AppSessionTokenResponse: StsSchemas.AppSessionTokenResponseSchema,
2283
2406
  IssueTokenRequest: StsSchemas.IssueTokenRequestSchema,
2284
2407
  IssueTokenResponse: StsSchemas.IssueTokenResponseSchema,
2285
2408
  IssueTokenForbiddenResponse: StsSchemas.IssueTokenForbiddenResponseSchema,
@@ -2317,7 +2440,16 @@ const DELEGATION_SCHEMAS = {
2317
2440
  DelegationGrant: DelegationGrantSchema,
2318
2441
  DelegationGrantArray: DelegationGrantArraySchema,
2319
2442
  };
2443
+ const RUN_BUDGET_SCHEMAS = {
2444
+ RunBudgetOwner: RunBudgetSchemas.RunBudgetOwnerSchema,
2445
+ RunBudgetUsage: RunBudgetSchemas.RunBudgetUsageSchema,
2446
+ ReadRunBudgetUsagePayload: RunBudgetSchemas.ReadRunBudgetUsagePayloadSchema,
2447
+ RunBudgetTotals: RunBudgetSchemas.RunBudgetTotalsSchema,
2448
+ RunBudgetCapability: RunBudgetSchemas.RunBudgetCapabilitySchema,
2449
+ RunBudgetCapabilityQuery: RunBudgetSchemas.RunBudgetCapabilityQuerySchema,
2450
+ };
2320
2451
  const API_SCHEMA_GROUPS = [
2452
+ RUN_BUDGET_SCHEMAS,
2321
2453
  DELEGATION_SCHEMAS,
2322
2454
  IAM_AND_ACCOUNT_SCHEMAS,
2323
2455
  PROJECT_AND_APP_SCHEMAS,
@@ -2328,6 +2460,7 @@ const API_SCHEMA_GROUPS = [
2328
2460
  INTERACTION_AUTHORING_SCHEMAS,
2329
2461
  AGENT_CONVERSATION_SCHEMAS,
2330
2462
  EXECUTION_RUN_SCHEMAS,
2463
+ EXECUTION_REQUEST_SCHEMAS,
2331
2464
  PROMPT_AUTHORING_SCHEMAS,
2332
2465
  PROJECT_TOOL_SCHEMAS,
2333
2466
  REMOTE_MCP_SCHEMAS,
@@ -2381,7 +2514,8 @@ const API_SCHEMA_GROUPS = [
2381
2514
  * have inferred to. `mergeComponentGroups` rejects a name declared by two groups, so no key is ever
2382
2515
  * intersected with a second schema.
2383
2516
  */
2384
- type ApiSchemaMap = typeof DELEGATION_SCHEMAS &
2517
+ type ApiSchemaMap = typeof RUN_BUDGET_SCHEMAS &
2518
+ typeof DELEGATION_SCHEMAS &
2385
2519
  typeof IAM_AND_ACCOUNT_SCHEMAS &
2386
2520
  typeof PROJECT_AND_APP_SCHEMAS &
2387
2521
  typeof OAUTH_SCHEMAS &
@@ -2391,6 +2525,7 @@ type ApiSchemaMap = typeof DELEGATION_SCHEMAS &
2391
2525
  typeof INTERACTION_AUTHORING_SCHEMAS &
2392
2526
  typeof AGENT_CONVERSATION_SCHEMAS &
2393
2527
  typeof EXECUTION_RUN_SCHEMAS &
2528
+ typeof EXECUTION_REQUEST_SCHEMAS &
2394
2529
  typeof PROMPT_AUTHORING_SCHEMAS &
2395
2530
  typeof PROJECT_TOOL_SCHEMAS &
2396
2531
  typeof REMOTE_MCP_SCHEMAS &
@@ -2453,6 +2588,15 @@ const API_SCHEMAS: Readonly<Record<ApiComponentName, z.ZodType>> = mergeComponen
2453
2588
  * objects, so a body carrying an undeclared property is rejected rather than quietly accepted.
2454
2589
  */
2455
2590
  const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2591
+ 'UpdateInteractionConfigurationPayload',
2592
+ 'InteractionConfigurationRecord',
2593
+ 'InteractionConfigurationResult',
2594
+ 'CreateInferenceProfilePayload',
2595
+ 'UpdateInferenceProfilePayload',
2596
+ 'InferenceProfileRecord',
2597
+ 'InferenceProfile',
2598
+ 'InferenceProfileSnapshot',
2599
+ 'ProjectInferenceProfiles',
2456
2600
  'AccountApiKey',
2457
2601
  'AccountApiKeyWithValue',
2458
2602
  'CreateAccountApiKeyPayload',
@@ -2500,6 +2644,8 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2500
2644
  'EnvironmentTokenRequest',
2501
2645
  'AgentTokenRequest',
2502
2646
  'ServiceAccountTokenRequest',
2647
+ 'AppSessionTokenRequest',
2648
+ 'AppSessionTokenResponse',
2503
2649
  'IssueTokenResponse',
2504
2650
  'IssueTokenForbiddenResponse',
2505
2651
  'IssueTokenUnavailableResponse',
@@ -2515,7 +2661,7 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2515
2661
  'QuotaStandingWindow',
2516
2662
  'QuotaStandingAdmissionClass',
2517
2663
  'QuotaTierResponse',
2518
- // The IAM closure. PrincipalContext is composed into PrincipalIdentity rather than hoisted,
2664
+ // The IAM closure. AbacPrincipalContext is composed into PrincipalIdentity rather than hoisted,
2519
2665
  // so it has no component of its own to list.
2520
2666
  'User',
2521
2667
  'UpdateUserPayload',
@@ -2611,6 +2757,8 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2611
2757
  // The agent configuration block under `ProjectConfiguration`, published closed on both sides.
2612
2758
  'AgentProjectConfiguration',
2613
2759
  'AgentCheckpointConfiguration',
2760
+ 'AgentBudgetConfiguration',
2761
+ ...Object.keys(RUN_BUDGET_SCHEMAS),
2614
2762
  // Declared in @llumiverse/common beside the type, like the ModelOptions members above.
2615
2763
  'HttpTimeoutOptions',
2616
2764
  // The intake policy tree. Every object in it is published closed today, including the inline
@@ -2638,34 +2786,14 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2638
2786
  //
2639
2787
  // `JSONSchema` is deliberately absent: it is OPEN by design and by long-standing publication —
2640
2788
  // a JSON Schema carries keywords the type never enumerated. `JSONSchemaProperties` is a map.
2641
- 'TextFallbackOptions',
2642
- 'AzureFoundryChatOptions',
2643
- 'ImagenOptions',
2644
- 'VertexAIClaudeOptions',
2645
- 'VertexAIGeminiOptions',
2646
- 'VertexAIGeminiOmniVideoOptions',
2647
- 'VertexAIGrokOptions',
2648
- 'NovaCanvasOptions',
2649
- 'BedrockConverseOptions',
2650
- 'BedrockNovaOptions',
2651
- 'BedrockMistralOptions',
2652
- 'BedrockAI21Options',
2653
- 'BedrockCohereCommandOptions',
2654
- 'BedrockClaudeOptions',
2655
- 'BedrockPalmyraOptions',
2656
- 'BedrockGptOssOptions',
2657
- 'TwelvelabsPegasusOptions',
2658
- 'BedrockMantleResponsesOptions',
2659
- 'BedrockMantleChatCompletionsOptions',
2660
- 'BedrockMantleClaudeOptions',
2661
- 'OpenAiThinkingOptions',
2662
- 'OpenAiTextOptions',
2663
- 'OpenRouterTextOptions',
2664
- 'OpenAiDalleOptions',
2665
- 'OpenAiGptImageOptions',
2666
- 'XAIGrokImageOptions',
2667
- 'GroqOptions',
2668
- 'MistralTextOptions',
2789
+ // Derive membership so new provider schemas inherit this enforcement check automatically.
2790
+ 'OpenAiImageGenerationOptions',
2791
+ 'OpenAiImageGenerationMask',
2792
+ ...ModelOptionsSchema.options.map((schema) => {
2793
+ const id = schema.meta()?.id;
2794
+ if (!id) throw new Error('Model option schemas must declare a component id');
2795
+ return id;
2796
+ }),
2669
2797
  // The app-manifest leaves. Every object among them is published closed today, the nested `git`
2670
2798
  // block included, and it is spelled `strictObject` so the emission carries it directly. The five
2671
2799
  // enums take no `additionalProperties` at all.
@@ -2866,7 +2994,7 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2866
2994
  'AgentRunFeedbackCounts',
2867
2995
  'AgentRunFeedbackEntry',
2868
2996
  'AgentRunEvaluationRollup',
2869
- 'AgentRunJudgeResult',
2997
+ 'AgentRunLlmEvaluationResult',
2870
2998
  'AgentRunEvaluation',
2871
2999
  'StartContentObjectExportResponse',
2872
3000
  'ExportContentObjectsIncludeOptions',
@@ -2906,6 +3034,8 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2906
3034
  'ContentObjectExportArtifactFile',
2907
3035
  'ProcessRunConfig',
2908
3036
  'ProcessHistoryRef',
3037
+ 'ProcessBudgetState',
3038
+ 'ProcessBudgetSummary',
2909
3039
  'NodeHistoryEntry',
2910
3040
  'ResourceRef',
2911
3041
  'WorkflowRun',
@@ -2940,6 +3070,7 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2940
3070
  'WorkflowActionResponse',
2941
3071
  'AnswerProcessTaskPayload',
2942
3072
  'SignalAgentResponse',
3073
+ 'AllocateAgentRunBudgetPayload',
2943
3074
  'AdvanceProcessPayload',
2944
3075
  'BranchDefinition',
2945
3076
  'ParallelCollectDefinition',
@@ -3076,6 +3207,10 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
3076
3207
  'OAuthAuthorizeQuery',
3077
3208
  'CreateOAuthAuthorizationRequestPayload',
3078
3209
  'OAuthAuthorizationRequest',
3210
+ 'OAuthAuthorizationRequestGeneratedApp',
3211
+ 'OAuthLoginPayload',
3212
+ 'OAuthLoginUserNotFoundResponse',
3213
+ 'OAuthLoginDecisionResponse',
3079
3214
  'ApproveOAuthAuthorizationRequestPayload',
3080
3215
  'OAuthGrantableScopesResponse',
3081
3216
  'OAuthAuthorizationDecisionResponse',
@@ -3316,6 +3451,7 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
3316
3451
  'AuditTrailQuery',
3317
3452
  'ViewExperienceListQuery',
3318
3453
  'UpdateAppInstallationToolAllowlistPayload',
3454
+ 'UpdateAppInstallationOAuthApprovalPayload',
3319
3455
  'ValidateUrlResponse',
3320
3456
  'ValidateUrlRequest',
3321
3457
  'AppVersionUrls',
@@ -3474,8 +3610,25 @@ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
3474
3610
  * divergence. Note that `.refine()` is silently DROPPED rather than rejected, so refinements must
3475
3611
  * not be used to express contract rules — they would be invisible to both the spec and AJV.
3476
3612
  */
3613
+ function emitSchema(name: string, schema: z.ZodType): unknown {
3614
+ const emitted = emitJsonSchema(schema) as Record<string, unknown>;
3615
+ const rootRef = emitted.$ref;
3616
+ const defs = emitted.$defs;
3617
+ const expectedRef = `#/$defs/${name}`;
3618
+ if (rootRef !== expectedRef || !defs || typeof defs !== 'object' || Array.isArray(defs)) return emitted;
3619
+
3620
+ const root = (defs as Record<string, unknown>)[name];
3621
+ if (!root || typeof root !== 'object' || Array.isArray(root)) return emitted;
3622
+ const remainingDefs = Object.fromEntries(
3623
+ Object.entries(defs as Record<string, unknown>).filter(([id]) => id !== name),
3624
+ );
3625
+ return Object.keys(remainingDefs).length === 0
3626
+ ? root
3627
+ : { ...(root as Record<string, unknown>), $defs: remainingDefs };
3628
+ }
3629
+
3477
3630
  function emitRawSchemas(): Record<string, unknown> {
3478
- return Object.fromEntries(Object.entries(API_SCHEMAS).map(([name, schema]) => [name, emitJsonSchema(schema)]));
3631
+ return Object.fromEntries(Object.entries(API_SCHEMAS).map(([name, schema]) => [name, emitSchema(name, schema)]));
3479
3632
  }
3480
3633
 
3481
3634
  /**
@@ -3542,12 +3695,25 @@ interface ZenoRecursiveComponentTypes {
3542
3695
  /**
3543
3696
  * The wire type a component publishes.
3544
3697
  *
3545
- * `ApiComponentType<'Account'>` is `z.infer<typeof AccountSchema>` — the map is indexed directly
3546
- * rather than dispatched through the groups, which the intersection makes possible.
3698
+ * `ApiComponentType<'Account'>` is the plain type `gen:schemas` writes for `AccountSchema` into
3699
+ * `ApiComponentTypes`, which `wire-types.generated.test.ts` proves identical to its `z.infer`. Indexing
3700
+ * that map rather than `z.infer<ApiSchemaMap[N]>` keeps Zod's inference out of every program that names
3701
+ * a component. A component the generator has not seen yet resolves to `never`, which
3702
+ * `registry-groups.test.ts` rejects.
3703
+ *
3704
+ * It is wrapped in `NoInfer` because `N` always comes from a component-name argument and can never be
3705
+ * recovered from the wire type. Without it, a call whose result has a contextual type — a destructuring
3706
+ * `const { file } = validatedQuery(ctx, 'FileMetadataQuery')`, an `await`, a typed `return` — makes the
3707
+ * checker infer `N` from that context while `N` is still unresolved, which evaluates `z.infer` across
3708
+ * every component in the registry: about 500k types, 1 GB and 2 s of `tsc` in each consuming program.
3547
3709
  */
3548
- export type ApiComponentType<N extends ApiComponentName> = N extends keyof ZenoRecursiveComponentTypes
3549
- ? ZenoRecursiveComponentTypes[N]
3550
- : z.infer<ApiSchemaMap[N]>;
3710
+ export type ApiComponentType<N extends ApiComponentName> = NoInfer<
3711
+ N extends keyof ZenoRecursiveComponentTypes
3712
+ ? ZenoRecursiveComponentTypes[N]
3713
+ : N extends keyof ApiComponentTypes
3714
+ ? ApiComponentTypes[N]
3715
+ : never
3716
+ >;
3551
3717
 
3552
3718
  /**
3553
3719
  * Names a published component from inside a handler signature: