@vertesia/common 1.5.0-dev.20260807.073259Z → 1.5.0-dev.20260901.005903Z

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 (451) 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 +40405 -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/agent-communication.d.ts +199 -0
  15. package/lib/api-schemas/agent-communication.d.ts.map +1 -0
  16. package/lib/api-schemas/agent-communication.js +150 -0
  17. package/lib/api-schemas/agent-communication.js.map +1 -0
  18. package/lib/api-schemas/agent-runs.d.ts +593 -0
  19. package/lib/api-schemas/agent-runs.d.ts.map +1 -1
  20. package/lib/api-schemas/agent-runs.js +44 -2
  21. package/lib/api-schemas/agent-runs.js.map +1 -1
  22. package/lib/api-schemas/app-lifecycle.d.ts +19 -0
  23. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -1
  24. package/lib/api-schemas/app-lifecycle.js +34 -4
  25. package/lib/api-schemas/app-lifecycle.js.map +1 -1
  26. package/lib/api-schemas/app-runtime.d.ts +9871 -9257
  27. package/lib/api-schemas/app-runtime.d.ts.map +1 -1
  28. package/lib/api-schemas/app-runtime.js +7 -0
  29. package/lib/api-schemas/app-runtime.js.map +1 -1
  30. package/lib/api-schemas/apps.d.ts +1 -0
  31. package/lib/api-schemas/apps.d.ts.map +1 -1
  32. package/lib/api-schemas/apps.js +4 -3
  33. package/lib/api-schemas/apps.js.map +1 -1
  34. package/lib/api-schemas/content-query.d.ts +39 -0
  35. package/lib/api-schemas/content-query.d.ts.map +1 -0
  36. package/lib/api-schemas/content-query.js +30 -0
  37. package/lib/api-schemas/content-query.js.map +1 -0
  38. package/lib/api-schemas/content.d.ts +835 -29
  39. package/lib/api-schemas/content.d.ts.map +1 -1
  40. package/lib/api-schemas/content.js +82 -15
  41. package/lib/api-schemas/content.js.map +1 -1
  42. package/lib/api-schemas/dashboard.d.ts +4 -0
  43. package/lib/api-schemas/dashboard.d.ts.map +1 -1
  44. package/lib/api-schemas/dashboard.js +3 -0
  45. package/lib/api-schemas/dashboard.js.map +1 -1
  46. package/lib/api-schemas/document-processing.d.ts +333 -0
  47. package/lib/api-schemas/document-processing.d.ts.map +1 -1
  48. package/lib/api-schemas/events.d.ts +1007 -4
  49. package/lib/api-schemas/events.d.ts.map +1 -1
  50. package/lib/api-schemas/events.js +4 -1
  51. package/lib/api-schemas/events.js.map +1 -1
  52. package/lib/api-schemas/files.d.ts +17 -0
  53. package/lib/api-schemas/files.d.ts.map +1 -1
  54. package/lib/api-schemas/files.js +23 -0
  55. package/lib/api-schemas/files.js.map +1 -1
  56. package/lib/api-schemas/group.d.ts +7 -0
  57. package/lib/api-schemas/group.d.ts.map +1 -1
  58. package/lib/api-schemas/group.js +9 -0
  59. package/lib/api-schemas/group.js.map +1 -1
  60. package/lib/api-schemas/index.d.ts +4 -0
  61. package/lib/api-schemas/index.d.ts.map +1 -1
  62. package/lib/api-schemas/index.js +4 -0
  63. package/lib/api-schemas/index.js.map +1 -1
  64. package/lib/api-schemas/integrations.d.ts +19 -5
  65. package/lib/api-schemas/integrations.d.ts.map +1 -1
  66. package/lib/api-schemas/integrations.js +25 -2
  67. package/lib/api-schemas/integrations.js.map +1 -1
  68. package/lib/api-schemas/interaction.d.ts +8399 -1076
  69. package/lib/api-schemas/interaction.d.ts.map +1 -1
  70. package/lib/api-schemas/interaction.js +161 -9
  71. package/lib/api-schemas/interaction.js.map +1 -1
  72. package/lib/api-schemas/oauth-server.d.ts +131 -3
  73. package/lib/api-schemas/oauth-server.d.ts.map +1 -1
  74. package/lib/api-schemas/oauth-server.js +137 -3
  75. package/lib/api-schemas/oauth-server.js.map +1 -1
  76. package/lib/api-schemas/process.d.ts +1295 -0
  77. package/lib/api-schemas/process.d.ts.map +1 -1
  78. package/lib/api-schemas/process.js +318 -2
  79. package/lib/api-schemas/process.js.map +1 -1
  80. package/lib/api-schemas/project-configuration.d.ts +1118 -1
  81. package/lib/api-schemas/project-configuration.d.ts.map +1 -1
  82. package/lib/api-schemas/project-configuration.js +6 -2
  83. package/lib/api-schemas/project-configuration.js.map +1 -1
  84. package/lib/api-schemas/project.d.ts +1680 -6
  85. package/lib/api-schemas/project.d.ts.map +1 -1
  86. package/lib/api-schemas/registry.d.ts +87529 -69142
  87. package/lib/api-schemas/registry.d.ts.map +1 -1
  88. package/lib/api-schemas/registry.js +234 -413
  89. package/lib/api-schemas/registry.js.map +1 -1
  90. package/lib/api-schemas/schema-primitives.d.ts +4 -0
  91. package/lib/api-schemas/schema-primitives.d.ts.map +1 -1
  92. package/lib/api-schemas/schema-primitives.js +10 -0
  93. package/lib/api-schemas/schema-primitives.js.map +1 -1
  94. package/lib/api-schemas/store.d.ts +5596 -37
  95. package/lib/api-schemas/store.d.ts.map +1 -1
  96. package/lib/api-schemas/store.js +53 -8
  97. package/lib/api-schemas/store.js.map +1 -1
  98. package/lib/api-schemas/tools.d.ts +115 -0
  99. package/lib/api-schemas/tools.d.ts.map +1 -1
  100. package/lib/api-schemas/tools.js +55 -0
  101. package/lib/api-schemas/tools.js.map +1 -1
  102. package/lib/api-schemas/view-execution.d.ts +330 -854
  103. package/lib/api-schemas/view-execution.d.ts.map +1 -1
  104. package/lib/api-schemas/view-execution.js +26 -2
  105. package/lib/api-schemas/view-execution.js.map +1 -1
  106. package/lib/api-schemas/views.d.ts +452 -2562
  107. package/lib/api-schemas/views.d.ts.map +1 -1
  108. package/lib/api-schemas/views.js +119 -3
  109. package/lib/api-schemas/views.js.map +1 -1
  110. package/lib/api-schemas/workflow-runs.d.ts +344 -5
  111. package/lib/api-schemas/workflow-runs.d.ts.map +1 -1
  112. package/lib/api-schemas/workflow-runs.js +9 -7
  113. package/lib/api-schemas/workflow-runs.js.map +1 -1
  114. package/lib/apps.d.ts +8 -145
  115. package/lib/apps.d.ts.map +1 -1
  116. package/lib/apps.js +1 -54
  117. package/lib/apps.js.map +1 -1
  118. package/lib/ask-user.d.ts +2 -1
  119. package/lib/ask-user.d.ts.map +1 -1
  120. package/lib/audit-trail.d.ts +2 -2
  121. package/lib/audit-trail.d.ts.map +1 -1
  122. package/lib/audit-trail.js +2 -2
  123. package/lib/audit-trail.js.map +1 -1
  124. package/lib/browser-credentials.d.ts +2 -7
  125. package/lib/browser-credentials.d.ts.map +1 -1
  126. package/lib/common.d.ts +4 -1
  127. package/lib/common.d.ts.map +1 -1
  128. package/lib/content-query.d.ts +5 -0
  129. package/lib/content-query.d.ts.map +1 -0
  130. package/lib/content-query.js +2 -0
  131. package/lib/content-query.js.map +1 -0
  132. package/lib/data-platform.d.ts +4 -46
  133. package/lib/data-platform.d.ts.map +1 -1
  134. package/lib/data-platform.js.map +1 -1
  135. package/lib/email.d.ts +12 -18
  136. package/lib/email.d.ts.map +1 -1
  137. package/lib/email.js.map +1 -1
  138. package/lib/environment.d.ts +0 -10
  139. package/lib/environment.d.ts.map +1 -1
  140. package/lib/environment.js +1 -12
  141. package/lib/environment.js.map +1 -1
  142. package/lib/facets.d.ts +0 -4
  143. package/lib/facets.d.ts.map +1 -1
  144. package/lib/group.d.ts +2 -12
  145. package/lib/group.d.ts.map +1 -1
  146. package/lib/group.js.map +1 -1
  147. package/lib/index.d.ts +3 -10
  148. package/lib/index.d.ts.map +1 -1
  149. package/lib/index.js +2 -10
  150. package/lib/index.js.map +1 -1
  151. package/lib/integrations.d.ts +1 -27
  152. package/lib/integrations.d.ts.map +1 -1
  153. package/lib/integrations.js +0 -6
  154. package/lib/integrations.js.map +1 -1
  155. package/lib/interaction.d.ts +10 -222
  156. package/lib/interaction.d.ts.map +1 -1
  157. package/lib/interaction.js +0 -31
  158. package/lib/interaction.js.map +1 -1
  159. package/lib/meters.d.ts +5 -10
  160. package/lib/meters.d.ts.map +1 -1
  161. package/lib/meters.js +1 -9
  162. package/lib/meters.js.map +1 -1
  163. package/lib/oauth-scopes.d.ts +2 -16
  164. package/lib/oauth-scopes.d.ts.map +1 -1
  165. package/lib/oauth-scopes.js +9 -49
  166. package/lib/oauth-scopes.js.map +1 -1
  167. package/lib/oauth-server.d.ts +16 -195
  168. package/lib/oauth-server.d.ts.map +1 -1
  169. package/lib/payload.d.ts +2 -5
  170. package/lib/payload.d.ts.map +1 -1
  171. package/lib/pending-asks.d.ts +9 -41
  172. package/lib/pending-asks.d.ts.map +1 -1
  173. package/lib/platform-event.d.ts +4 -142
  174. package/lib/platform-event.d.ts.map +1 -1
  175. package/lib/platform-event.js.map +1 -1
  176. package/lib/project.d.ts +7 -46
  177. package/lib/project.d.ts.map +1 -1
  178. package/lib/project.js +2 -132
  179. package/lib/project.js.map +1 -1
  180. package/lib/prompt.d.ts +4 -7
  181. package/lib/prompt.d.ts.map +1 -1
  182. package/lib/prompt.js.map +1 -1
  183. package/lib/query.d.ts +0 -8
  184. package/lib/query.d.ts.map +1 -1
  185. package/lib/rate-limiter.d.ts +4 -3
  186. package/lib/rate-limiter.d.ts.map +1 -1
  187. package/lib/runs.d.ts +5 -1
  188. package/lib/runs.d.ts.map +1 -1
  189. package/lib/schema-for-extraction.d.ts +0 -1
  190. package/lib/schema-for-extraction.d.ts.map +1 -1
  191. package/lib/schema-for-extraction.js +1 -1
  192. package/lib/schema-for-extraction.js.map +1 -1
  193. package/lib/secrets.d.ts +2 -1
  194. package/lib/secrets.d.ts.map +1 -1
  195. package/lib/skill.d.ts +0 -13
  196. package/lib/skill.d.ts.map +1 -1
  197. package/lib/store/activity-catalog.d.ts +2 -0
  198. package/lib/store/activity-catalog.d.ts.map +1 -1
  199. package/lib/store/agent-approval.d.ts +0 -1
  200. package/lib/store/agent-approval.d.ts.map +1 -1
  201. package/lib/store/agent-approval.js +0 -3
  202. package/lib/store/agent-approval.js.map +1 -1
  203. package/lib/store/agent-run.d.ts +32 -69
  204. package/lib/store/agent-run.d.ts.map +1 -1
  205. package/lib/store/collections.d.ts +2 -6
  206. package/lib/store/collections.d.ts.map +1 -1
  207. package/lib/store/collections.js.map +1 -1
  208. package/lib/store/conversation-state.d.ts +11 -12
  209. package/lib/store/conversation-state.d.ts.map +1 -1
  210. package/lib/store/conversation-state.js +0 -18
  211. package/lib/store/conversation-state.js.map +1 -1
  212. package/lib/store/doc-analyzer.d.ts +0 -22
  213. package/lib/store/doc-analyzer.d.ts.map +1 -1
  214. package/lib/store/dsl-workflow.d.ts +22 -5
  215. package/lib/store/dsl-workflow.d.ts.map +1 -1
  216. package/lib/store/dsl-workflow.js.map +1 -1
  217. package/lib/store/grounded-extraction.d.ts +0 -14
  218. package/lib/store/grounded-extraction.d.ts.map +1 -1
  219. package/lib/store/grounded-extraction.js +1 -7
  220. package/lib/store/grounded-extraction.js.map +1 -1
  221. package/lib/store/index.d.ts +0 -5
  222. package/lib/store/index.d.ts.map +1 -1
  223. package/lib/store/index.js +0 -6
  224. package/lib/store/index.js.map +1 -1
  225. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -1
  226. package/lib/store/intake-policy-schema.generated.js +279 -1
  227. package/lib/store/intake-policy-schema.generated.js.map +1 -1
  228. package/lib/store/process.d.ts +43 -1
  229. package/lib/store/process.d.ts.map +1 -1
  230. package/lib/store/process.js.map +1 -1
  231. package/lib/store/rendering.d.ts +3 -5
  232. package/lib/store/rendering.d.ts.map +1 -1
  233. package/lib/store/rendering.js +0 -4
  234. package/lib/store/rendering.js.map +1 -1
  235. package/lib/store/schedule.d.ts +0 -16
  236. package/lib/store/schedule.d.ts.map +1 -1
  237. package/lib/store/schedule.js.map +1 -1
  238. package/lib/store/signals.d.ts +12 -0
  239. package/lib/store/signals.d.ts.map +1 -1
  240. package/lib/store/store.d.ts +80 -94
  241. package/lib/store/store.d.ts.map +1 -1
  242. package/lib/store/store.js +5 -25
  243. package/lib/store/store.js.map +1 -1
  244. package/lib/store/workflow.d.ts +35 -86
  245. package/lib/store/workflow.d.ts.map +1 -1
  246. package/lib/store/workflow.js +0 -47
  247. package/lib/store/workflow.js.map +1 -1
  248. package/lib/sts-errors.d.ts +0 -1
  249. package/lib/sts-errors.d.ts.map +1 -1
  250. package/lib/sts-token-types.d.ts +2 -8
  251. package/lib/sts-token-types.d.ts.map +1 -1
  252. package/lib/sts-token-types.js +1 -19
  253. package/lib/sts-token-types.js.map +1 -1
  254. package/lib/tools.d.ts +6 -1
  255. package/lib/tools.d.ts.map +1 -1
  256. package/lib/transient-tokens.d.ts +0 -2
  257. package/lib/transient-tokens.d.ts.map +1 -1
  258. package/lib/user.d.ts +0 -17
  259. package/lib/user.d.ts.map +1 -1
  260. package/lib/user.js.map +1 -1
  261. package/lib/utils/schemas.d.ts +2 -24
  262. package/lib/utils/schemas.d.ts.map +1 -1
  263. package/lib/utils/schemas.js +0 -151
  264. package/lib/utils/schemas.js.map +1 -1
  265. package/lib/vertesia-common.js +3 -4
  266. package/lib/vertesia-common.js.map +1 -1
  267. package/lib/views.d.ts +23 -27
  268. package/lib/views.d.ts.map +1 -1
  269. package/lib/views.js +5 -26
  270. package/lib/views.js.map +1 -1
  271. package/lib/workflow-analytics.d.ts +12 -34
  272. package/lib/workflow-analytics.d.ts.map +1 -1
  273. package/package.json +12 -6
  274. package/src/access-control.ts +0 -26
  275. package/src/account-values.ts +0 -49
  276. package/src/agent-resources.test.ts +1 -12
  277. package/src/api-contract/components.contract.test.ts +99 -0
  278. package/src/api-contract/components.generated.json +40405 -0
  279. package/src/api-contract/index.ts +664 -0
  280. package/src/api-schemas/agent-communication.contract.test.ts +90 -0
  281. package/src/api-schemas/agent-communication.ts +169 -0
  282. package/src/api-schemas/agent-runs.ts +46 -1
  283. package/src/api-schemas/api-discriminators.test.ts +101 -0
  284. package/src/api-schemas/app-lifecycle.ts +39 -4
  285. package/src/api-schemas/app-runtime.ts +8 -0
  286. package/src/api-schemas/apps.ts +4 -3
  287. package/src/api-schemas/content-query.ts +31 -0
  288. package/src/api-schemas/content.ts +88 -15
  289. package/src/api-schemas/dashboard.contract.test.ts +16 -5
  290. package/src/api-schemas/dashboard.ts +3 -0
  291. package/src/api-schemas/events.ts +9 -1
  292. package/src/api-schemas/files.ts +27 -0
  293. package/src/api-schemas/group.ts +10 -0
  294. package/src/api-schemas/index.ts +4 -0
  295. package/src/api-schemas/integrations.ts +27 -2
  296. package/src/api-schemas/interaction.contract.test.ts +204 -1
  297. package/src/api-schemas/interaction.ts +176 -8
  298. package/src/api-schemas/llumiverse.contract.test.ts +33 -2
  299. package/src/api-schemas/oauth-server.ts +152 -3
  300. package/src/api-schemas/oauth.contract.test.ts +64 -1
  301. package/src/api-schemas/process.ts +352 -2
  302. package/src/api-schemas/project-configuration.ts +11 -7
  303. package/src/api-schemas/project.contract.test.ts +83 -6
  304. package/src/api-schemas/registry.ts +290 -457
  305. package/src/api-schemas/schema-primitives.ts +13 -0
  306. package/src/api-schemas/store.contract.test.ts +30 -1
  307. package/src/api-schemas/store.ts +58 -11
  308. package/src/api-schemas/tools.ts +62 -0
  309. package/src/api-schemas/view-execution.ts +28 -2
  310. package/src/api-schemas/views.contract.test.ts +119 -0
  311. package/src/api-schemas/views.ts +142 -3
  312. package/src/api-schemas/workflow-runs.ts +9 -7
  313. package/src/api-schemas/zeno-response-contracts.test.ts +344 -0
  314. package/src/apps.test.ts +2 -40
  315. package/src/apps.ts +14 -181
  316. package/src/ask-user.ts +1 -1
  317. package/src/audit-trail.ts +3 -3
  318. package/src/browser-credentials.ts +3 -7
  319. package/src/common.ts +13 -1
  320. package/src/content-query.ts +5 -0
  321. package/src/data-platform.ts +4 -51
  322. package/src/email.ts +24 -18
  323. package/src/environment.ts +1 -14
  324. package/src/facets.ts +0 -6
  325. package/src/group.ts +2 -12
  326. package/src/index.ts +3 -15
  327. package/src/integrations.ts +1 -52
  328. package/src/interaction.ts +12 -271
  329. package/src/meters.ts +10 -11
  330. package/src/oauth-scopes.test.ts +15 -0
  331. package/src/oauth-scopes.ts +10 -64
  332. package/src/oauth-server.ts +28 -215
  333. package/src/payload.ts +1 -6
  334. package/src/pending-asks.ts +17 -42
  335. package/src/platform-event.ts +3 -156
  336. package/src/project.ts +12 -160
  337. package/src/prompt.ts +9 -8
  338. package/src/query.ts +0 -9
  339. package/src/rate-limiter.ts +3 -3
  340. package/src/runs.ts +8 -0
  341. package/src/schema-for-extraction.ts +1 -1
  342. package/src/secrets.ts +3 -0
  343. package/src/skill.ts +0 -15
  344. package/src/store/activity-catalog.ts +3 -0
  345. package/src/store/agent-approval.ts +0 -4
  346. package/src/store/agent-run.ts +39 -93
  347. package/src/store/collections.ts +3 -6
  348. package/src/store/conversation-state.ts +12 -25
  349. package/src/store/doc-analyzer.ts +0 -26
  350. package/src/store/dsl-workflow.ts +28 -5
  351. package/src/store/grounded-extraction.ts +0 -18
  352. package/src/store/index.ts +0 -6
  353. package/src/store/intake-policy-schema.generated.ts +293 -1
  354. package/src/store/process.ts +84 -0
  355. package/src/store/rendering.ts +3 -8
  356. package/src/store/schedule.ts +0 -19
  357. package/src/store/signals.ts +14 -0
  358. package/src/store/store.ts +118 -127
  359. package/src/store/workflow.ts +32 -120
  360. package/src/sts-errors.ts +0 -2
  361. package/src/sts-token-types.ts +3 -28
  362. package/src/tools.ts +15 -0
  363. package/src/transient-tokens.ts +0 -2
  364. package/src/user.ts +0 -20
  365. package/src/utils/schemas.ts +2 -159
  366. package/src/views.ts +50 -47
  367. package/src/workflow-analytics.ts +12 -40
  368. package/tsconfig.dist.json +4 -1
  369. package/lib/Progress.d.ts +0 -22
  370. package/lib/Progress.d.ts.map +0 -1
  371. package/lib/Progress.js +0 -57
  372. package/lib/Progress.js.map +0 -1
  373. package/lib/agent-request-template.d.ts +0 -4
  374. package/lib/agent-request-template.d.ts.map +0 -1
  375. package/lib/agent-request-template.js +0 -46
  376. package/lib/agent-request-template.js.map +0 -1
  377. package/lib/channels.d.ts +0 -22
  378. package/lib/channels.d.ts.map +0 -1
  379. package/lib/channels.js +0 -57
  380. package/lib/channels.js.map +0 -1
  381. package/lib/host-utils.d.ts +0 -8
  382. package/lib/host-utils.d.ts.map +0 -1
  383. package/lib/host-utils.js +0 -84
  384. package/lib/host-utils.js.map +0 -1
  385. package/lib/platform-event-validation.d.ts +0 -45
  386. package/lib/platform-event-validation.d.ts.map +0 -1
  387. package/lib/platform-event-validation.js +0 -336
  388. package/lib/platform-event-validation.js.map +0 -1
  389. package/lib/store/hive-memory.d.ts +0 -117
  390. package/lib/store/hive-memory.d.ts.map +0 -1
  391. package/lib/store/hive-memory.js +0 -2
  392. package/lib/store/hive-memory.js.map +0 -1
  393. package/lib/store/object-types.d.ts +0 -24
  394. package/lib/store/object-types.d.ts.map +0 -1
  395. package/lib/store/object-types.js +0 -95
  396. package/lib/store/object-types.js.map +0 -1
  397. package/lib/store/process-schema.d.ts +0 -561
  398. package/lib/store/process-schema.d.ts.map +0 -1
  399. package/lib/store/process-schema.js +0 -561
  400. package/lib/store/process-schema.js.map +0 -1
  401. package/lib/store/process-validation.d.ts +0 -17
  402. package/lib/store/process-validation.d.ts.map +0 -1
  403. package/lib/store/process-validation.js +0 -515
  404. package/lib/store/process-validation.js.map +0 -1
  405. package/lib/store/temporalio.d.ts +0 -17
  406. package/lib/store/temporalio.d.ts.map +0 -1
  407. package/lib/store/temporalio.js +0 -41
  408. package/lib/store/temporalio.js.map +0 -1
  409. package/lib/view-configuration-validation.d.ts +0 -15
  410. package/lib/view-configuration-validation.d.ts.map +0 -1
  411. package/lib/view-configuration-validation.js +0 -63
  412. package/lib/view-configuration-validation.js.map +0 -1
  413. package/lib/view-query-validation.d.ts +0 -13
  414. package/lib/view-query-validation.d.ts.map +0 -1
  415. package/lib/view-query-validation.js +0 -266
  416. package/lib/view-query-validation.js.map +0 -1
  417. package/lib/view-validation-helpers.d.ts +0 -15
  418. package/lib/view-validation-helpers.d.ts.map +0 -1
  419. package/lib/view-validation-helpers.js +0 -25
  420. package/lib/view-validation-helpers.js.map +0 -1
  421. package/lib/views-schema.d.ts +0 -1992
  422. package/lib/views-schema.d.ts.map +0 -1
  423. package/lib/views-schema.js +0 -674
  424. package/lib/views-schema.js.map +0 -1
  425. package/lib/views-validation.d.ts +0 -21
  426. package/lib/views-validation.d.ts.map +0 -1
  427. package/lib/views-validation.js +0 -164
  428. package/lib/views-validation.js.map +0 -1
  429. package/src/Progress.ts +0 -59
  430. package/src/agent-request-template.test.ts +0 -40
  431. package/src/agent-request-template.ts +0 -45
  432. package/src/channels.ts +0 -70
  433. package/src/host-utils.test.ts +0 -61
  434. package/src/host-utils.ts +0 -93
  435. package/src/platform-event-validation.test.ts +0 -251
  436. package/src/platform-event-validation.ts +0 -372
  437. package/src/project.test.ts +0 -44
  438. package/src/store/hive-memory.ts +0 -167
  439. package/src/store/object-types.ts +0 -123
  440. package/src/store/process-schema.test.ts +0 -149
  441. package/src/store/process-schema.ts +0 -564
  442. package/src/store/process-validation.test.ts +0 -635
  443. package/src/store/process-validation.ts +0 -646
  444. package/src/store/temporalio.ts +0 -54
  445. package/src/view-configuration-validation.ts +0 -74
  446. package/src/view-query-validation.test.ts +0 -21
  447. package/src/view-query-validation.ts +0 -319
  448. package/src/view-validation-helpers.ts +0 -28
  449. package/src/views-schema.test.ts +0 -372
  450. package/src/views-schema.ts +0 -689
  451. package/src/views-validation.ts +0 -234
@@ -1,23 +1,23 @@
1
1
  // Imported from llumiverse rather than restated here. These components describe llumiverse's own
2
2
  // types, and a second declaration in this repository would create an independent source of truth.
3
3
  // They have no local `./*.ts` module because there is nothing local to declare.
4
- import { AIModelArraySchema, AIModelSchema, AIModelStatusSchema, CompletionResultSchema, DataSourceSchema, EmbeddingOutputSchema, EmbeddingResultItemSchema, EmbeddingsResultSchema, EmbeddingsTokenUsageSchema, EmbeddingTaskTypeSchema, ExecutionTokenUsageSchema, HttpTimeoutOptionsSchema, ImageResultSchema, JSONObjectSchema, JSONSchemaSchema, JSONValueSchema, JsonResultSchema, ModalitiesSchema, ModelOptionsSchema, ModelSearchPayloadSchema, ModelTypeSchema, PromptRoleSchema, PromptSegmentSchema, StatelessExecutionOptionsSchema, TextResultSchema, ToolDefinitionSchema, ToolUseSchema, } from '@llumiverse/common/schemas';
5
- import { Ajv2020 } from 'ajv/dist/2020.js';
6
- import ajvFormats from 'ajv-formats';
4
+ import { AIModelArraySchema, AIModelSchema, AIModelStatusSchema, CompletionResultSchema, DataSourceSchema, EmbeddingOutputSchema, EmbeddingResultItemSchema, EmbeddingsResultSchema, EmbeddingsTokenUsageSchema, EmbeddingTaskTypeSchema, ExecutionTokenUsageSchema, HttpTimeoutOptionsSchema, ImageResultSchema, JSONObjectSchema, JSONSchemaSchema, JSONValueSchema, JsonResultSchema, ModalitiesSchema, ModelOptionsSchema, ModelSearchPayloadSchema, ModelTypeSchema, PromptRoleSchema, PromptSegmentSchema, StatelessExecutionOptionsSchema, TextResultSchema, ToolDefinitionSchema, ToolUseSchema, VideoResultSchema, } from '@llumiverse/common/schemas';
7
5
  import { z } from 'zod';
8
6
  import { ACECreatePayloadSchema, ACEUpdatePayloadSchema, AccessControlEntryArraySchema, AccessControlEntrySchema, RoleDefinitionArraySchema, SystemRoleDefinitionArraySchema, } from './access-control.js';
9
7
  import { AccountSchema, StripeBillingStatusResponseSchema, UpdateAccountPayloadSchema } from './account.js';
10
- import { findUnprunablePaths, isPlainObject, pruneToSchema, toOpenApiComponents } from './adapter.js';
8
+ import { toOpenApiComponents } from './adapter.js';
9
+ import * as AgentCommunicationSchemas from './agent-communication.js';
11
10
  import * as AgentRunSchemas from './agent-runs.js';
12
11
  import { AnalyticsAxisSchema, RunAnalyticsGroupBySchema, RunAnalyticsQuerySchema, RunAnalyticsResultArraySchema, RunAnalyticsResultSchema, TimeResolutionSchema, } from './analytics.js';
13
12
  import { ApiKeyArraySchema, ApiKeyListQuerySchema, ApiKeyReadQuerySchema, ApiKeyReadResponseSchema, ApiKeySchema, ApiKeyWithValueSchema, AuthTokenResponseSchema, CreateApiKeyPayloadSchema, DeleteOperationResultSchema, ProjectRefArraySchema, UpdateApiKeyPayloadSchema, } from './apikey.js';
14
- import { AgentRunSearchHitSchema, AgentRunStatusSchema, AgentRunTypeSchema, AgentToolApprovalClassSchema, AgentToolDefinitionSchema, AppApiKeyCollectionParamsSchema, AppBuildProgressSchema, AppBuildProgressStatusSchema, AppBuildTriggerSchema, AppDeleteSummarySchema, AppDevelopmentTaskDetailsSchema, AppDevelopmentTaskListSchema, AppDevelopmentTaskSchema, AppInspectionCapabilityReportSchema, AppInspectionIssueSchema, AppInspectionResultSchema, AppInstallationKindSchema, AppInstallationOAuthBindingSchema, AppInstallationPayloadSchema, AppInstallationProjectsQuerySchema, AppInstallationProviderBindingSchema, AppInstallationsQuerySchema, AppOAuthCollectionParamsSchema, AppOAuthProviderParamsSchema, AppPackageScopeSchema, AppRepoBranchSchema, AppRepoCommitSchema, AppRepoCommitsSchema, AppRepoDocumentCommitSchema, AppRepoRefSchema, AppRepoRefsSchema, AppRepoTreeEntrySchema, AppRepoTreeSchema, AppScaffoldModuleSchema, AppScaffoldProgressSchema, AppScaffoldProgressStatusSchema, AppToolCollectionArraySchema, AppToolCollectionSchema, AppVersionGitRefTypeSchema, AppVersionGitSourceSchema, AppVersionKindSchema, AppVersionRecordArraySchema, AppVersionRecordSchema, AppVersionStateSchema, AppVersionStorageSchema, AppVersionTargetSchema, AppVersionUrlsSchema, ContentObjectTypeRefSchema, ConversationActivityStateSchema, DeleteAppVersionResponseSchema, EventRefSchema, Extract_AppVersionGitRefType_branch_tag_commitSchema, InCodeTypeRefSchema, McpApiKeyCredentialSchema, OAuthClientCredentialsMapSchema, OAuthClientCredentialsSchema, RunKindSchema, RunTypeSchema, StartAppBuildRequestSchema, StartAppBuildResponseSchema, StartAppScaffoldRequestSchema, StartAppScaffoldResponseSchema, StoredTypeRefSchema, SystemPackageQuerySchema, UpdateAppInstallationToolAllowlistPayloadSchema, UpsertAppVersionRequestSchema, ValidateUrlRequestSchema, ValidateUrlResponseSchema, } from './app-lifecycle.js';
13
+ import { AgentRunSearchHitSchema, AgentRunStatusSchema, AgentRunTypeSchema, AgentToolApprovalClassSchema, AgentToolDefinitionSchema, AppApiKeyCollectionParamsSchema, AppBuildProgressSchema, AppBuildProgressStatusSchema, AppBuildTriggerSchema, AppDeleteSummarySchema, AppDevelopmentTaskDetailsSchema, AppDevelopmentTaskListSchema, AppDevelopmentTaskSchema, AppInspectionCapabilityReportSchema, AppInspectionIssueSchema, AppInspectionResultSchema, AppInstallationKindSchema, AppInstallationOAuthBindingSchema, AppInstallationPayloadSchema, AppInstallationProjectsQuerySchema, AppInstallationProviderBindingSchema, AppInstallationsQuerySchema, AppListScopeSchema, AppOAuthCollectionParamsSchema, AppOAuthProviderParamsSchema, AppPackageScopeSchema, AppRepoBranchSchema, AppRepoCommitSchema, AppRepoCommitsSchema, AppRepoDocumentCommitSchema, AppRepoRefSchema, AppRepoRefsSchema, AppRepoTreeEntrySchema, AppRepoTreeSchema, AppScaffoldModuleSchema, AppScaffoldProgressSchema, AppScaffoldProgressStatusSchema, AppsQuerySchema, AppToolCollectionArraySchema, AppToolCollectionSchema, AppVersionGitRefTypeSchema, AppVersionGitSourceSchema, AppVersionKindSchema, AppVersionRecordArraySchema, AppVersionRecordSchema, AppVersionStateSchema, AppVersionStorageSchema, AppVersionTargetSchema, AppVersionUrlsSchema, ContentObjectTypeRefSchema, ConversationActivityStateSchema, DeleteAppVersionResponseSchema, EventRefSchema, Extract_AppVersionGitRefType_branch_tag_commitSchema, InCodeTypeRefSchema, McpApiKeyCredentialSchema, OAuthClientCredentialsMapSchema, OAuthClientCredentialsSchema, RunKindSchema, RunTypeSchema, StartAppBuildRequestSchema, StartAppBuildResponseSchema, StartAppDevelopmentTaskRequestSchema, StartAppScaffoldRequestSchema, StartAppScaffoldResponseSchema, StoredTypeRefSchema, SystemPackageQuerySchema, UpdateAppInstallationToolAllowlistPayloadSchema, UpsertAppVersionRequestSchema, ValidateUrlRequestSchema, ValidateUrlResponseSchema, } from './app-lifecycle.js';
15
14
  import * as AppRuntimeSchemas from './app-runtime.js';
16
15
  import { AppAccessControlSchema, AppCapabilitiesSchema, AppManifestSourceSchema, AppSourceConfigSchema, AppUIConfigSchema, MCPToolAnnotationsSchema, McpApiKeyStatusSchema, McpOAuthConnectResponseSchema, McpOAuthDisconnectResponseSchema, McpOAuthTokenRequestSchema, McpOAuthTokenResponseSchema, OAuthAuthorizeResponseSchema, OAuthAuthStatusArraySchema, OAuthAuthStatusSchema, OAuthMetadataResponseSchema, SetMcpApiKeyRequestSchema, ToolCollectionObjectSchema, } from './apps.js';
17
16
  import { AuditActionSchema, AuditAggregationDetailFieldSchema, AuditAggregationDetailFilterSchema, AuditAggregationDimensionMapSchema, AuditAggregationDimensionSchema, AuditAggregationDistinctFieldSchema, AuditAggregationFilterSchema, AuditAggregationGroupSchema, AuditAggregationMetricSchema, AuditAggregationOperationSchema, AuditAggregationQuerySchema, AuditAggregationResolutionSchema, AuditAggregationResponseSchema, AuditAggregationRowSchema, AuditMeterSchema, AuditTrailEventSchema, AuditTrailQuerySchema, AuditTrailResponseSchema, EventCategorySchema, KnownAuditActionSchema, } from './audit-trail.js';
18
17
  import { BulkObjectCreateResultSchema, BulkObjectDeleteResultSchema, BulkObjectUpdateResultSchema, BulkOperationPayloadSchema, BulkOperationResponseSchema, BulkOperationResultSchema, } from './bulk-operation.js';
19
18
  import { DeleteCountResultSchema, GenericCommandResponseSchema, MigrationListResponseSchema, RunMigrationPayloadSchema, RunMigrationResponseSchema, } from './commands.js';
20
19
  import * as ContentSchemas from './content.js';
20
+ import * as ContentQuerySchemas from './content-query.js';
21
21
  import { CostAnalyticsQuerySchema, CostAnalyticsResponseSchema, CostByDimensionSchema, CostExportQuerySchema, CostModelPricesQuerySchema, CostRunPriceQuerySchema, CostRunPriceResponseSchema, CostSummarySchema, CostTimeSeriesPointSchema, ModelPriceComparisonResponseSchema, ModelPriceComparisonSchema, ModelPricingSchema, PricingSyncDayResultSchema, PricingSyncPayloadSchema, PricingSyncResultSchema, } from './cost-analytics.js';
22
22
  import { CreateDashboardPayloadSchema, CreateDashboardSnapshotPayloadSchema, DashboardArchiveResultSchema, DashboardBulkArchiveResultSchema, DashboardBulkDeleteResultSchema, DashboardDataSourceSchema, DashboardElasticsearchDslSchema, DashboardElasticsearchResultMappingSchema, DashboardItemArraySchema, DashboardItemSchema, DashboardLayoutSchema, DashboardPanelPositionSchema, DashboardPanelSchema, DashboardQuerySchema, DashboardSchema, DashboardSqlDataSourceSchema, DashboardStatusSchema, DashboardStoreElasticsearchDataSourceSchema, DashboardVersionItemArraySchema, DashboardVersionItemSchema, DashboardVersioningPayloadSchema, DashboardVersioningStatusResponseSchema, DashboardVersionSchema, PromoteDashboardVersionPayloadSchema, StringArrayMapSchema, UpdateDashboardPayloadSchema, } from './dashboard.js';
23
23
  import { AlterTableOperationSchema, AlterTablePayloadSchema, BatchQueryPayloadSchema, BatchQueryResultItemSchema, BatchQueryResultSchema, CreateDataStorePayloadSchema, CreateSnapshotPayloadSchema, CreateTablePayloadSchema, CreateTablesPayloadSchema, DataColumnForAIMapSchema, DataColumnForAISchema, DataColumnSchema, DataColumnTypeSchema, DataColumnUpdateSchema, DataForeignKeyForAISchema, DataForeignKeySchema, DataIndexSchema, DataRelationshipForAISchema, DataRelationshipSchema, DataRelationshipTypeSchema, DataSchemaForAISchema, DataSchemaSchema, DataStoreArchiveResultSchema, DataStoreDownloadInfoSchema, DataStoreFullSchemaResponseSchema, DataStoreItemArraySchema, DataStoreItemSchema, DataStoreMutateRowsPayloadSchema, DataStoreMutateRowsResultSchema, DataStoreSchema, DataStoreSchemaResponseSchema, DataStoreStatusSchema, DataStoreTableDetailSchema, DataStoreTableDropResultSchema, DataStoreVersionArraySchema, DataStoreVersionSchema, DataStoreVersionTableStateMapSchema, DataStoreVersionTableStateSchema, DataTableArraySchema, DataTableForAIMapSchema, DataTableForAISchema, DataTableSchema, DataTableSemanticTypeSchema, DataTableSummaryArraySchema, DataTableSummarySchema, GetDataStoreTableQuerySchema, ImportDataFormatSchema, ImportDataPayloadSchema, ImportDataSourceSchema, ImportJobSchema, ImportStatusSchema, ImportTableDataMapSchema, ImportTableDataSchema, ListDataStoreVersionsQuerySchema, QueryPayloadSchema, QueryResultColumnSchema, QueryResultSchema, QueryValidationErrorSchema, QueryValidationPayloadSchema, QueryValidationResultSchema, SemanticColumnTypeSchema, UpdateSchemaPayloadSchema, } from './data-store.js';
@@ -25,33 +25,28 @@ import { DocAnalyzeRunStatusResponseSchema, DocAnalyzerProgressSchema, DocAnalyz
25
25
  import { EmbeddingsApiAudioInputSchema, EmbeddingsApiImageInputSchema, EmbeddingsApiInputSchema, EmbeddingsApiRequestSchema, EmbeddingsApiSourceSchema, EmbeddingsApiTextInputSchema, EmbeddingsApiVideoInputSchema, EmbeddingsStatusResponseSchema, ProjectConfigurationEmbeddingEnablePayloadSchema, } from './embeddings.js';
26
26
  import { EnableEnvironmentModelPayloadSchema, ExecutionEnvironmentArraySchema, ExecutionEnvironmentConfigUpdatePayloadSchema, ExecutionEnvironmentCreatePayloadSchema, ExecutionEnvironmentRefSchema, ExecutionEnvironmentSchema, ExecutionEnvironmentSettingsSchema, ExecutionEnvironmentUpdatePayloadSchema, ListEnvironmentsQuerySchema, LoadBalancingEnvConfigSchema, LoadBalancingEnvEntryConfigSchema, MediatorEnvConfigSchema, MigrateInteractionsPayloadSchema, MigrateInteractionsResultSchema, SupportedProvidersSchema, VirtualEnvEntrySchema, } from './environment.js';
27
27
  import * as EventSchemas from './events.js';
28
- import { BucketReadAccessQuerySchema, BucketReadAccessStatusResponseSchema, BulkUploadUrlsPayloadSchema, BulkUploadUrlsResponseSchema, CopyFilePayloadSchema, CopyFileResponseSchema, DeleteFileResultSchema, EnsureBucketReadAccessPayloadSchema, EnsureBucketReadAccessResponseSchema, FileBucketResponseSchema, FileDeleteQuerySchema, FileListQuerySchema, FileListResponseSchema, FileMetadataQuerySchema, FileMetadataResponseSchema, FileMetadataUpdateResultSchema, GetFileUrlPayloadSchema, GetFileUrlResponseSchema, GetUploadUrlPayloadSchema, SetFileMetadataPayloadSchema, StringValueMapSchema, } from './files.js';
29
- import { CreateUserGroupPayloadSchema, UpdateUserGroupPayloadSchema, UserGroupArraySchema, UserGroupRefSchema, UserGroupSchema, } from './group.js';
28
+ import { BucketCreateAccessQuerySchema, BucketCreateAccessStatusResponseSchema, BucketReadAccessQuerySchema, BucketReadAccessStatusResponseSchema, BulkUploadUrlsPayloadSchema, BulkUploadUrlsResponseSchema, CopyFilePayloadSchema, CopyFileResponseSchema, DeleteFileResultSchema, EnsureBucketCreateAccessPayloadSchema, EnsureBucketCreateAccessResponseSchema, EnsureBucketReadAccessPayloadSchema, EnsureBucketReadAccessResponseSchema, FileBucketResponseSchema, FileDeleteQuerySchema, FileListQuerySchema, FileListResponseSchema, FileMetadataQuerySchema, FileMetadataResponseSchema, FileMetadataUpdateResultSchema, GetFileUrlPayloadSchema, GetFileUrlResponseSchema, GetUploadUrlPayloadSchema, SetFileMetadataPayloadSchema, StringValueMapSchema, } from './files.js';
29
+ import { CreateUserGroupPayloadSchema, ListUserGroupsQuerySchema, UpdateUserGroupPayloadSchema, UserGroupArraySchema, UserGroupRefSchema, UserGroupSchema, } from './group.js';
30
30
  import { DriftAnalysisProgressSchema, DriftAnalysisResultSchema, DriftAnalysisStatusResponseSchema, IndexingStatusResponseSchema, ReindexAgentRunsPayloadSchema, ReindexAgentRunsResponseSchema, StartProjectReindexPayloadSchema, } from './indexing.js';
31
31
  import * as IntegrationSchemas from './integrations.js';
32
- import { AgentResourceActionSchema, AgentResourceReferenceSchema, AgentResourceTypeSchema, AgentRunnerOptionsSchema, AgentSearchScope_CollectionSchema, AgentSearchScopeSchema, AgentToolApprovalModeSchema, AsyncCompletionModeSchema, AsyncCompletionOptionsSchema, AsyncConversationExecutionPayloadSchema, AsyncExecutionPayloadSchema, AsyncExecutionResultSchema, AsyncInteractionExecutionPayloadSchema, CachePolicySchema, CatalogInteractionRefArraySchema, CatalogInteractionRefSchema, CatalogTagQuerySchema, ComputedFacetResponseSchema, ComputeInteractionFacetPayloadSchema, ComputeRunFacetPayloadSchema, ConversationStateSchema, ConversationStripOptionsSchema, ConversationVisibilitySchema, EmailChannelSchema, ExecuteInteractionByEndpointHeadersSchema, ExecuteInteractionByEndpointQuerySchema, ExecutionResponseSchema, ExecutionRunDocRefSchema, ExecutionRunInteractionSchema, ExecutionRunRefArraySchema, ExecutionRunRefSchema, ExecutionRunSchema, ExecutionRunStatusSchema, ExecutionRunWorkflowSchema, ExportedPromptTemplateRefSchema, ExternalizedToolInputRefSchema, ExternalizedToolInputRefsSchema, FacetSpecSchema, GeneratedInteractionDefinitionArraySchema, GeneratedInteractionDefinitionSchema, GeneratedInteractionPromptSegmentSchema, GeneratedInteractionPromptTemplateSchema, GeneratedTestDataRecordArraySchema, GeneratedTestDataRecordSchema, GenerateInteractionPayloadSchema, GenerateTestDataPayloadSchema, ImprovePromptPayloadConfigSchema, ImprovePromptPayloadSchema, InCodePromptSchema, InitialToolCallSchema, InteractionArraySchema, InteractionCreatePayloadSchema, InteractionEndpointArraySchema, InteractionEndpointQuerySchema, InteractionEndpointSchema, InteractionExecutionErrorSchema, InteractionExecutionPayloadSchema, InteractionExecutionResultSchema, InteractionForkPayloadSchema, InteractionNameArraySchema, InteractionNameSchema, InteractionPublishPayloadSchema, InteractionRefArraySchema, InteractionRefSchema, InteractionRefWithSchemaArraySchema, InteractionRefWithSchemaSchema, InteractionSchema, InteractionSearchQuerySchema, InteractionStatusSchema, InteractionsExportPayloadSchema, InteractionTagsArraySchema, InteractionTagsSchema, InteractionUpdatePayloadSchema, InteractionVisibilitySchema, InteractiveChannelSchema, LegacyExecutionRunResultSchema, LegacyPopulatedExecutionRunResultSchema, LlmCallTypeSchema, ModelSourceSchema, NamedInteractionExecutionPayloadSchema, NumberValueMapSchema, PendingMcpConnectionSchema, PendingToolApprovalResultsSchema, PlanSchema, PlanTaskSchema, PopulatedExecutionRunResultSchema, PromptImprovementResponseSchema, PromptModalitiesSchema, PromptSegmentDefSchema, PromptSegmentDefTypeSchema, PromptSegmentRef_ExportedPromptTemplateRefSchema, PromptSegmentRef_PromptTemplateRefSchema, PromptStatusSchema, PromptTemplateCreatePayloadSchema, PromptTemplateRefSchema, PromptTemplateSchema, PromptTemplateUpdatePayloadSchema, RateLimitRequestPayloadSchema, RateLimitRequestResponseSchema, ResolvedEnvironmentInfoSchema, ResolvedInteractionExecutionInfoSchema, ResolvedRuntimeConfigSchema, ResolveInteractionQuerySchema, ResultStorageOptionsSchema, RunClonePayloadSchema, RunCreatePayloadSchema, RunListQuerySchema, RunSearchMetaResponseSchema, RunSearchPayloadSchema, RunSearchQuerySchema, RunSourceSchema, RunSourceTypesSchema, SchemaRefSchema, SkillContextTriggersSchema, SortOptionSchema, SortOrderSchema, StoredCatalogInteractionsQuerySchema, StreamingOptionsSchema, StreamingTelemetryContextSchema, TemplateTypeSchema, TextArtifactReferenceSchema, ToolApprovalGrantMapSchema, ToolApprovalGrantSchema, ToolReferenceSchema, ToolResultMetaSchema, ToolResultSchema, ToolResultsPayloadSchema, UpdateExecutionRunPayloadSchema, UsedSkillSchema, UserChannelSchema, UserMessagePayloadSchema, WorkflowAncestorSchema, } from './interaction.js';
32
+ import { AgentResourceActionSchema, AgentResourceReferenceSchema, AgentResourceTypeSchema, AgentRunnerOptionsSchema, AgentSearchScope_CollectionSchema, AgentSearchScopeSchema, AgentToolApprovalModeSchema, AsyncCompletionModeSchema, AsyncCompletionOptionsSchema, AsyncConversationExecutionPayloadSchema, AsyncExecutionPayloadSchema, AsyncExecutionResultSchema, AsyncInteractionExecutionPayloadSchema, CachePolicySchema, CatalogInteractionRefArraySchema, CatalogInteractionRefSchema, CatalogTagQuerySchema, ComputedFacetResponseSchema, ComputeInteractionFacetPayloadSchema, ComputeRunFacetPayloadSchema, ComputeRunFacetsResponseSchema, ConversationStateSchema, ConversationStripOptionsSchema, ConversationVisibilitySchema, EmailChannelSchema, ExecuteInteractionByEndpointHeadersSchema, ExecuteInteractionByEndpointQuerySchema, ExecutionResponseSchema, ExecutionRunDocRefSchema, ExecutionRunInteractionSchema, ExecutionRunRefArraySchema, ExecutionRunRefSchema, ExecutionRunSchema, ExecutionRunStatusSchema, ExecutionRunWorkflowSchema, ExportedPromptTemplateRefSchema, ExternalizedToolInputRefSchema, ExternalizedToolInputRefsSchema, FacetSpecSchema, FindRunResultArraySchema, FindRunResultSchema, GeneratedInteractionDefinitionArraySchema, GeneratedInteractionDefinitionSchema, GeneratedInteractionPromptSegmentSchema, GeneratedInteractionPromptTemplateSchema, GeneratedTestDataRecordArraySchema, GeneratedTestDataRecordSchema, GenerateInteractionPayloadSchema, GenerateTestDataPayloadSchema, ImprovePromptPayloadConfigSchema, ImprovePromptPayloadSchema, InCodeInteractionSchema, InCodePromptSchema, InitialToolCallSchema, InteractionArraySchema, InteractionCreatePayloadSchema, InteractionEndpointArraySchema, InteractionEndpointQuerySchema, InteractionEndpointSchema, InteractionExecutionErrorSchema, InteractionExecutionPayloadSchema, InteractionExecutionResultSchema, InteractionForkPayloadSchema, InteractionNameArraySchema, InteractionNameSchema, InteractionPromptSegmentInputSchema, InteractionPromptTemplateInputSchema, InteractionPublishPayloadSchema, InteractionRefArraySchema, InteractionRefSchema, InteractionRefWithSchemaArraySchema, InteractionRefWithSchemaSchema, InteractionSchema, InteractionSearchQuerySchema, InteractionStatusSchema, InteractionsExportPayloadSchema, InteractionTagsArraySchema, InteractionTagsSchema, InteractionUpdatePayloadSchema, InteractionVisibilitySchema, InteractiveChannelSchema, LegacyExecutionRunResultSchema, LegacyPopulatedExecutionRunResultSchema, LlmCallTypeSchema, ModelSourceSchema, NamedInteractionExecutionPayloadSchema, NumberValueMapSchema, PendingMcpConnectionSchema, PendingToolApprovalResultsSchema, PlanSchema, PlanTaskSchema, PopulatedExecutionRunResultSchema, PromptImprovementResponseSchema, PromptModalitiesSchema, PromptSegmentDefSchema, PromptSegmentDefTypeSchema, PromptSegmentRef_ExportedPromptTemplateRefSchema, PromptSegmentRef_PromptTemplateRefSchema, PromptStatusSchema, PromptTemplateCreatePayloadSchema, PromptTemplateRefSchema, PromptTemplateSchema, PromptTemplateUpdatePayloadSchema, RateLimitRequestPayloadSchema, RateLimitRequestResponseSchema, ResolvedCatalogInteractionSchema, ResolvedEnvironmentInfoSchema, ResolvedInteractionExecutionInfoSchema, ResolvedRuntimeConfigSchema, ResolveInteractionQuerySchema, ResultStorageOptionsSchema, RunClonePayloadSchema, RunCreatePayloadSchema, RunListQuerySchema, RunSearchMetaResponseSchema, RunSearchPayloadSchema, RunSearchQuerySchema, RunSourceSchema, RunSourceTypesSchema, SchemaRefSchema, SkillContextTriggersSchema, SortOptionSchema, SortOrderSchema, StoredCatalogInteractionsQuerySchema, StreamingOptionsSchema, StreamingTelemetryContextSchema, TemplateTypeSchema, TextArtifactReferenceSchema, ToolApprovalGrantMapSchema, ToolApprovalGrantSchema, ToolReferenceSchema, ToolResultMetaSchema, ToolResultSchema, ToolResultsPayloadSchema, UpdateExecutionRunPayloadSchema, UsedSkillSchema, UserChannelSchema, UserMessagePayloadSchema, WorkflowAncestorSchema, } from './interaction.js';
33
33
  import { AccountProjectsResponseSchema, InviteAcceptanceResponseSchema, InviteDeclineResponseSchema, InviteUserRequestPayloadSchema, InviteUserResponsePayloadSchema, OnboardingProgressSchema, UserInviteTokenArraySchema, } from './invites.js';
34
34
  import { CreateOAuthProviderPayloadSchema, OAuthProviderAccessTokenResponseSchema, OAuthProviderArraySchema, OAuthProviderAuthorizeResponseSchema, OAuthProviderAuthStatusSchema, OAuthProviderExchangePayloadSchema, OAuthProviderSchema, SuccessResponseSchema, UpdateOAuthProviderPayloadSchema, } from './oauth.js';
35
- import { BulkRevokeOAuthGrantsPayloadSchema, CreateOAuthClientPayloadSchema, ListOAuthGrantsQuerySchema, OAuthClientArraySchema, OAuthClientCreateResponseSchema, OAuthClientSchema, OAuthClientScopeMetadataSchema, OAuthClientStatusSchema, OAuthClientTypeSchema, OAuthGrantListResponseSchema, OAuthGrantRevokeResponseSchema, OAuthGrantSchema, OAuthGrantSortFieldSchema, OAuthGrantSortOrderSchema, OAuthGrantStatusSchema, OAuthGrantTypeSchema, OAuthProjectBindingModeSchema, OAuthRegistrationSourceSchema, OAuthResponseTypeSchema, OAuthTokenEndpointAuthMethodSchema, RevokeOAuthGrantQuerySchema, UpdateOAuthClientPayloadSchema, } from './oauth-server.js';
36
- import { normalizeParameters, } from './parameters.js';
35
+ import { ApproveOAuthAuthorizationRequestPayloadSchema, BulkRevokeOAuthGrantsPayloadSchema, CreateOAuthAuthorizationRequestPayloadSchema, CreateOAuthClientPayloadSchema, ListOAuthGrantsQuerySchema, OAuthAuthorizationDecisionResponseSchema, OAuthAuthorizationRequestSchema, OAuthAuthorizationRequestStatusSchema, OAuthAuthorizationServerMetadataSchema, OAuthAuthorizeQuerySchema, OAuthClientArraySchema, OAuthClientCreateResponseSchema, OAuthClientDisplayMetadataSchema, OAuthClientRegistrationModeSchema, OAuthClientSchema, OAuthClientScopeMetadataSchema, OAuthClientStatusSchema, OAuthClientTypeSchema, OAuthDeviceAuthorizationRequestSchema, OAuthDeviceAuthorizationResponseSchema, OAuthGrantableScopesResponseSchema, OAuthGrantListResponseSchema, OAuthGrantRevokeResponseSchema, OAuthGrantSchema, OAuthGrantSortFieldSchema, OAuthGrantSortOrderSchema, OAuthGrantStatusSchema, OAuthGrantTypeSchema, OAuthProjectBindingModeSchema, OAuthRegistrationSourceSchema, OAuthResponseTypeSchema, OAuthTokenEndpointAuthMethodSchema, OAuthTokenResponseSchema, RevokeOAuthGrantQuerySchema, UpdateOAuthClientPayloadSchema, } from './oauth-server.js';
37
36
  import * as ProcessSchemas from './process.js';
38
37
  import { CountResultSchema, CreateProjectPayloadSchema, ListProjectsQuerySchema, ProjectIntegrationListResponseSchema, ProjectPluginsUpdatePayloadSchema, ProjectSchema, ProjectTagQuerySchema, ProjectToolInfoArraySchema, ProjectToolInfoSchema, RenderingTemplateDefinitionRefSchema, RenderingTemplateDefinitionSchema, UpdateProjectConfigurationPayloadSchema, UpdateProjectPayloadSchema, } from './project.js';
39
38
  import { BrowserUseProjectConfigurationSchema, ProjectConfigurationEmbeddingSchema, ProjectConfigurationSchema, ProjectIndexingConfigurationSchema, ProjectIntakeConfigurationSchema, ProjectIntakeSniffConfigurationSchema, ProjectModelDefaultsSchema, ResourceVisibilitySchema, } from './project-configuration.js';
40
39
  import { ComputePromptFacetPayloadSchema, PromptSearchQuerySchema, PromptTemplateForkPayloadSchema, PromptTemplateInteractionsResponseSchema, PromptTemplateInteractionUsageSchema, PromptTemplateInteractionVersionSchema, PromptTemplateRefArraySchema, RenderPromptPayloadSchema, RenderPromptResponseSchema, } from './prompt.js';
41
40
  import { QuotaStandingResponseSchema, QuotaTierResponseSchema } from './quota.js';
42
41
  import * as SecretSchemas from './secrets.js';
43
- import { ColumnLayoutSchema, ContentObjectTypeCatalogEntryArraySchema, ContentObjectTypeCatalogEntrySchema, ContentObjectTypeCatalogQuerySchema, ContentObjectTypeItemArraySchema, ContentObjectTypeItemSchema, ContentObjectTypeListQuerySchema, ContentObjectTypeSchema, ContentObjectTypeStatusSchema, ContentTypeEditingPolicySchema, ContentTypeIntakePolicySchema, CreateContentObjectTypePayloadSchema, InCodeTypeDefinitionSchema, UpdateContentObjectTypePayloadSchema, } from './store.js';
42
+ import { ColumnLayoutSchema, ContentObjectTypeCatalogEntryArraySchema, ContentObjectTypeCatalogEntrySchema, ContentObjectTypeCatalogQuerySchema, ContentObjectTypeItemArraySchema, ContentObjectTypeItemSchema, ContentObjectTypeListQuerySchema, ContentObjectTypeSchema, ContentObjectTypeStatusSchema, ContentTypeEditingPolicySchema, ContentTypeIntakePolicySchema, CreateContentObjectTypePayloadSchema, InCodeTypeDefinitionSchema, InteractionExecutionConfigurationSchema, UpdateContentObjectTypePayloadSchema, } from './store.js';
44
43
  import * as StsSchemas from './sts.js';
45
44
  import { CompleteTaskPayloadSchema, CreateTaskPayloadSchema, DurableTaskStatusSchema, ListTasksQuerySchema, TaskArraySchema, TaskFieldSchema, TaskFieldTypeSchema, TaskSchema, TaskSourceSchema, UpdateTaskPayloadSchema, } from './task.js';
46
- import { AggregatedToolArraySchema, AggregatedToolSchema, ListProjectToolsQuerySchema, ToolSourceSchema, ToolValidationResultSchema, ValidateToolNamesPayloadSchema, ValidateToolNamesResponseSchema, } from './tools.js';
45
+ import { AggregatedToolArraySchema, AggregatedToolSchema, InspectProjectToolQuerySchema, ListProjectToolsQuerySchema, ProcessToolCompatibilityReasonSchema, ProcessToolCompatibilitySchema, ToolInspectionSchema, ToolRuntimeContextSchema, ToolSourceSchema, ToolValidationResultSchema, ValidateToolNamesPayloadSchema, ValidateToolNamesResponseSchema, } from './tools.js';
47
46
  import { DeleteByIdResultSchema, PrincipalIdentitySchema, SignupDataSchema, SignupPayloadSchema, UpdateUserPayloadSchema, UserArraySchema, UserRefArraySchema, UserSchema, } from './user.js';
48
47
  import * as ViewExecutionSchemas from './view-execution.js';
49
- import { AgenticViewSearchConfigurationSchema, CreateViewExperienceRequestSchema, UpdateViewExperienceRequestSchema, ViewBoardCardConfigurationSchema, ViewBoardColumnSchema, ViewBoardDisplaySchema, ViewCardsDisplaySchema, ViewCollectionNavigationSchema, ViewDisplayConfigurationSchema, ViewElasticsearchQuerySchema, ViewExperienceArraySchema, ViewExperienceLayoutSchema, ViewExperienceListQuerySchema, ViewExperienceSchema, ViewExperienceSchemaVersionSchema, ViewExperienceScopeSchema, ViewGalleryDisplaySchema, ViewHierarchyLevelSchema, ViewHierarchyNavigationSchema, ViewKeyTermDefinitionSchema, ViewListDisplaySchema, ViewLocationNavigationSchema, ViewNavigationItemSchema, ViewRangeDefinitionSchema, ViewRangeNavigationSchema, ViewResultFieldFormatSchema, ViewResultFieldSchema, ViewResultMediaSchema, ViewResultsConfigurationSchema, ViewSearchConfigurationSchema, ViewSearchFieldDefinitionSchema, ViewSearchFieldTypeSchema, ViewSortClauseSchema, ViewSortOptionSchema, ViewTableColumnSchema, ViewTableDisplaySchema, ViewTermsNavigationSchema, } from './views.js';
48
+ import { AgenticViewRerankConfigurationSchema, AgenticViewSearchConfigurationSchema, CreateViewExperienceRequestSchema, UpdateViewExperienceRequestSchema, ViewActionConfigurationSchema, ViewActionPlacementSchema, ViewActionSelectionRequirementSchema, ViewActionsConfigurationSchema, ViewAgenticExecutionConfigurationSchema, ViewAgenticSearchModeSchema, ViewBoardCardConfigurationSchema, ViewBoardColumnSchema, ViewBoardDisplaySchema, ViewCardsDisplaySchema, ViewCollectionNavigationSchema, ViewDisplayConfigurationSchema, ViewDropConfigurationSchema, ViewElasticsearchQuerySchema, ViewExperienceArraySchema, ViewExperienceLayoutSchema, ViewExperienceListQuerySchema, ViewExperienceSchema, ViewExperienceSchemaVersionSchema, ViewExperienceScopeSchema, ViewGalleryDisplaySchema, ViewHierarchyLevelSchema, ViewHierarchyNavigationSchema, ViewKeyTermDefinitionSchema, ViewListDisplaySchema, ViewLocationNavigationSchema, ViewNavigationItemSchema, ViewRangeDefinitionSchema, ViewRangeNavigationSchema, ViewResultFieldFormatSchema, ViewResultFieldSchema, ViewResultMediaSchema, ViewResultsConfigurationSchema, ViewSearchConfigurationSchema, ViewSearchFieldDefinitionSchema, ViewSearchFieldTypeSchema, ViewSelectionConfigurationSchema, ViewSelectionModeSchema, ViewSortClauseSchema, ViewSortOptionSchema, ViewTableColumnSchema, ViewTableDisplaySchema, ViewTermsNavigationSchema, ViewUploadDropParametersSchema, } from './views.js';
50
49
  import * as WorkflowRunSchemas from './workflow-runs.js';
51
- // ajv-formats is CommonJS with an ESM-style declaration file. Node's interop makes the default
52
- // import the whole `module.exports` (itself callable), while TypeScript sees the namespace — and
53
- // `.default` is the plugin function in both shapes.
54
- const addFormats = ajvFormats.default;
55
50
  /**
56
51
  * Endpoint-level API schemas, keyed by the OpenAPI component name they publish under.
57
52
  *
@@ -97,6 +92,7 @@ const IAM_AND_ACCOUNT_SCHEMAS = {
97
92
  UserGroupArray: UserGroupArraySchema,
98
93
  UserGroupRef: UserGroupRefSchema,
99
94
  CreateUserGroupPayload: CreateUserGroupPayloadSchema,
95
+ ListUserGroupsQuery: ListUserGroupsQuerySchema,
100
96
  UpdateUserGroupPayload: UpdateUserGroupPayloadSchema,
101
97
  AccessControlEntry: AccessControlEntrySchema,
102
98
  AccessControlEntryArray: AccessControlEntryArraySchema,
@@ -144,7 +140,7 @@ const PROJECT_AND_APP_SCHEMAS = {
144
140
  BrowserUseProjectConfiguration: BrowserUseProjectConfigurationSchema,
145
141
  ProjectIntakeSniffConfiguration: ProjectIntakeSniffConfigurationSchema,
146
142
  // Leaves of the Project closure. `ModelOptions` hoists its
147
- // twenty-three driver option sets and four enums; `JSONSchema` hoists `JSONSchemaProperties`.
143
+ // twenty-five driver option sets and four enums; `JSONSchema` hoists `JSONSchemaProperties`.
148
144
  JSONSchema: JSONSchemaSchema,
149
145
  ModelOptions: ModelOptionsSchema,
150
146
  HttpTimeoutOptions: HttpTimeoutOptionsSchema,
@@ -201,9 +197,23 @@ const OAUTH_SCHEMAS = {
201
197
  OAuthTokenEndpointAuthMethod: OAuthTokenEndpointAuthMethodSchema,
202
198
  OAuthGrantType: OAuthGrantTypeSchema,
203
199
  OAuthResponseType: OAuthResponseTypeSchema,
200
+ OAuthAuthorizationRequestStatus: OAuthAuthorizationRequestStatusSchema,
201
+ OAuthClientRegistrationMode: OAuthClientRegistrationModeSchema,
204
202
  OAuthGrantStatus: OAuthGrantStatusSchema,
205
203
  OAuthGrantSortField: OAuthGrantSortFieldSchema,
206
204
  OAuthGrantSortOrder: OAuthGrantSortOrderSchema,
205
+ // OAuth authorization-server discovery, consent, device-code, and token contracts.
206
+ OAuthAuthorizationServerMetadata: OAuthAuthorizationServerMetadataSchema,
207
+ OAuthClientDisplayMetadata: OAuthClientDisplayMetadataSchema,
208
+ OAuthAuthorizeQuery: OAuthAuthorizeQuerySchema,
209
+ CreateOAuthAuthorizationRequestPayload: CreateOAuthAuthorizationRequestPayloadSchema,
210
+ OAuthAuthorizationRequest: OAuthAuthorizationRequestSchema,
211
+ ApproveOAuthAuthorizationRequestPayload: ApproveOAuthAuthorizationRequestPayloadSchema,
212
+ OAuthGrantableScopesResponse: OAuthGrantableScopesResponseSchema,
213
+ OAuthAuthorizationDecisionResponse: OAuthAuthorizationDecisionResponseSchema,
214
+ OAuthDeviceAuthorizationRequest: OAuthDeviceAuthorizationRequestSchema,
215
+ OAuthDeviceAuthorizationResponse: OAuthDeviceAuthorizationResponseSchema,
216
+ OAuthTokenResponse: OAuthTokenResponseSchema,
207
217
  // Clients registered against Vertesia's own OAuth server. `OAuthClientData` is composed into
208
218
  // `OAuthClient` rather than hoisted, so it has no component of its own — as today.
209
219
  OAuthClient: OAuthClientSchema,
@@ -312,6 +322,7 @@ const LLM_COMPLETION_SCHEMAS = {
312
322
  TextResult: TextResultSchema,
313
323
  JsonResult: JsonResultSchema,
314
324
  ImageResult: ImageResultSchema,
325
+ VideoResult: VideoResultSchema,
315
326
  CompletionResult: CompletionResultSchema,
316
327
  ExecutionTokenUsage: ExecutionTokenUsageSchema,
317
328
  // The options a caller may send. `PromptFormatter` is deliberately gone: see the note on
@@ -329,10 +340,12 @@ const INTERACTION_SCHEMAS = {
329
340
  SchemaRef: SchemaRefSchema,
330
341
  CachePolicy: CachePolicySchema,
331
342
  PromptTemplate: PromptTemplateSchema,
343
+ InteractionPromptTemplateInput: InteractionPromptTemplateInputSchema,
332
344
  PromptTemplateCreatePayload: PromptTemplateCreatePayloadSchema,
333
345
  PromptTemplateUpdatePayload: PromptTemplateUpdatePayloadSchema,
334
346
  PromptTemplateRef: PromptTemplateRefSchema,
335
347
  PromptSegmentDef: PromptSegmentDefSchema,
348
+ InteractionPromptSegmentInput: InteractionPromptSegmentInputSchema,
336
349
  PromptSegmentRef_PromptTemplateRef: PromptSegmentRef_PromptTemplateRefSchema,
337
350
  InCodePrompt: InCodePromptSchema,
338
351
  Interaction: InteractionSchema,
@@ -363,6 +376,8 @@ const INTERACTION_SCHEMAS = {
363
376
  // The catalog — in-code interactions an app or the system provides, alongside stored ones.
364
377
  CatalogInteractionRef: CatalogInteractionRefSchema,
365
378
  CatalogInteractionRefArray: CatalogInteractionRefArraySchema,
379
+ InCodeInteraction: InCodeInteractionSchema,
380
+ ResolvedCatalogInteraction: ResolvedCatalogInteractionSchema,
366
381
  CatalogTagQuery: CatalogTagQuerySchema,
367
382
  StoredCatalogInteractionsQuery: StoredCatalogInteractionsQuerySchema,
368
383
  // What `GET /interactions/resolve/:nameOrId` answers with.
@@ -451,11 +466,17 @@ const EXECUTION_RUN_SCHEMAS = {
451
466
  InteractionExecutionPayload: InteractionExecutionPayloadSchema,
452
467
  NamedInteractionExecutionPayload: NamedInteractionExecutionPayloadSchema,
453
468
  InteractionExecutionResult: InteractionExecutionResultSchema,
469
+ FindRunResult: FindRunResultSchema,
470
+ FindRunResultArray: FindRunResultArraySchema,
454
471
  // The retrieve variant, and the two pre-versioning result shapes. See the schema module for why
455
472
  // the populated interaction cannot share a component with the create path.
456
473
  PopulatedExecutionRunResult: PopulatedExecutionRunResultSchema,
457
474
  LegacyExecutionRunResult: LegacyExecutionRunResultSchema,
458
475
  LegacyPopulatedExecutionRunResult: LegacyPopulatedExecutionRunResultSchema,
476
+ // Registered explicitly although the adapter would hoist it anyway from the schemas that
477
+ // reference it. Hoisted-only components exist in `ApiSchemaComponents` but not in the
478
+ // `ApiComponentName` union, so a server could not name this one to validate against it.
479
+ InteractionExecutionConfiguration: InteractionExecutionConfigurationSchema,
459
480
  InteractionExecutionError: InteractionExecutionErrorSchema,
460
481
  ResultStorageOptions: ResultStorageOptionsSchema,
461
482
  ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuerySchema,
@@ -470,6 +491,7 @@ const EXECUTION_RUN_SCHEMAS = {
470
491
  RateLimitRequestPayload: RateLimitRequestPayloadSchema,
471
492
  RateLimitRequestResponse: RateLimitRequestResponseSchema,
472
493
  ComputeRunFacetPayload: ComputeRunFacetPayloadSchema,
494
+ ComputeRunFacetsResponse: ComputeRunFacetsResponseSchema,
473
495
  RunSearchMetaResponse: RunSearchMetaResponseSchema,
474
496
  ToolResultsPayload: ToolResultsPayloadSchema,
475
497
  UserMessagePayload: UserMessagePayloadSchema,
@@ -498,6 +520,10 @@ const FILE_STORAGE_SCHEMAS = {
498
520
  BucketReadAccessStatusResponse: BucketReadAccessStatusResponseSchema,
499
521
  EnsureBucketReadAccessPayload: EnsureBucketReadAccessPayloadSchema,
500
522
  EnsureBucketReadAccessResponse: EnsureBucketReadAccessResponseSchema,
523
+ BucketCreateAccessQuery: BucketCreateAccessQuerySchema,
524
+ BucketCreateAccessStatusResponse: BucketCreateAccessStatusResponseSchema,
525
+ EnsureBucketCreateAccessPayload: EnsureBucketCreateAccessPayloadSchema,
526
+ EnsureBucketCreateAccessResponse: EnsureBucketCreateAccessResponseSchema,
501
527
  };
502
528
  const DURABLE_TASK_SCHEMAS = {
503
529
  TaskFieldType: TaskFieldTypeSchema,
@@ -709,6 +735,9 @@ const PROCESS_DSL_SCHEMAS = {
709
735
  WorkflowDefinitionPayload: ProcessSchemas.WorkflowDefinitionPayloadSchema,
710
736
  WorkflowDefinitionPayloadWithActivities: ProcessSchemas.WorkflowDefinitionPayloadWithActivitiesSchema,
711
737
  WorkflowDefinitionPayloadWithSteps: ProcessSchemas.WorkflowDefinitionPayloadWithStepsSchema,
738
+ UpdateWorkflowDefinitionPayload: ProcessSchemas.UpdateWorkflowDefinitionPayloadSchema,
739
+ UpdateWorkflowDefinitionPayloadWithActivities: ProcessSchemas.UpdateWorkflowDefinitionPayloadWithActivitiesSchema,
740
+ UpdateWorkflowDefinitionPayloadWithSteps: ProcessSchemas.UpdateWorkflowDefinitionPayloadWithStepsSchema,
712
741
  };
713
742
  const AGENT_MESSAGE_SCHEMAS = {
714
743
  AgentMessageType: AgentRunSchemas.AgentMessageTypeSchema,
@@ -771,6 +800,8 @@ const CONTENT_OBJECT_SCHEMAS = {
771
800
  UpdateContentObjectPayload: ContentSchemas.UpdateContentObjectPayloadSchema,
772
801
  ContentObjectApiTypeRef: ContentSchemas.ContentObjectApiTypeRefSchema,
773
802
  ContentObjectApiResponse: ContentSchemas.ContentObjectApiResponseSchema,
803
+ ProjectedContentObjectApiResponse: ContentSchemas.ProjectedContentObjectApiResponseSchema,
804
+ ProjectedContentObjectApiResponseArray: ContentSchemas.ProjectedContentObjectApiResponseArraySchema,
774
805
  ContentObjectItemApiResponse: ContentSchemas.ContentObjectItemApiResponseSchema,
775
806
  ContentObjectItemApiResponseArray: ContentSchemas.ContentObjectItemApiResponseArraySchema,
776
807
  ContentObjectProcessingPriority: ContentSchemas.ContentObjectProcessingPrioritySchema,
@@ -849,6 +880,37 @@ const PROCESS_RUNTIME_SCHEMAS = {
849
880
  ProcessState: ProcessSchemas.ProcessStateSchema,
850
881
  WorkflowExecutionStartResultArray: ProcessSchemas.WorkflowExecutionStartResultArraySchema,
851
882
  RecordProcessRunPayload: ProcessSchemas.RecordProcessRunPayloadSchema,
883
+ ProcessTestRunStatus: ProcessSchemas.ProcessTestRunStatusSchema,
884
+ ProcessTestVirtualActor: ProcessSchemas.ProcessTestVirtualActorSchema,
885
+ ProcessTestFixtureResult: ProcessSchemas.ProcessTestFixtureResultSchema,
886
+ ProcessTestFixtureError: ProcessSchemas.ProcessTestFixtureErrorSchema,
887
+ ProcessTestFixtureResponse: ProcessSchemas.ProcessTestFixtureResponseSchema,
888
+ ProcessTestNodeFixture: ProcessSchemas.ProcessTestNodeFixtureSchema,
889
+ ProcessTestHumanAction: ProcessSchemas.ProcessTestHumanActionSchema,
890
+ ProcessTestAssertions: ProcessSchemas.ProcessTestAssertionsSchema,
891
+ ProcessTestScenario: ProcessSchemas.ProcessTestScenarioSchema,
892
+ ProcessTestSuite: ProcessSchemas.ProcessTestSuiteSchema,
893
+ ProcessTestSuiteArray: ProcessSchemas.ProcessTestSuiteArraySchema,
894
+ CreateProcessTestSuitePayload: ProcessSchemas.CreateProcessTestSuitePayloadSchema,
895
+ UpdateProcessTestSuitePayload: ProcessSchemas.UpdateProcessTestSuitePayloadSchema,
896
+ StartProcessTestRunPayload: ProcessSchemas.StartProcessTestRunPayloadSchema,
897
+ ProcessTestStoredSubject: ProcessSchemas.ProcessTestStoredSubjectSchema,
898
+ ProcessTestResolvedSubject: ProcessSchemas.ProcessTestResolvedSubjectSchema,
899
+ ProcessTestInlineSubject: ProcessSchemas.ProcessTestInlineSubjectSchema,
900
+ ProcessTestSubject: ProcessSchemas.ProcessTestSubjectSchema,
901
+ ProcessTestTargetById: ProcessSchemas.ProcessTestTargetByIdSchema,
902
+ ProcessTestTargetWithDefinition: ProcessSchemas.ProcessTestTargetWithDefinitionSchema,
903
+ ProcessTestTarget: ProcessSchemas.ProcessTestTargetSchema,
904
+ SubmitProcessTestRunPayload: ProcessSchemas.SubmitProcessTestRunPayloadSchema,
905
+ ProcessTestAssertionResult: ProcessSchemas.ProcessTestAssertionResultSchema,
906
+ ProcessTestActorDecision: ProcessSchemas.ProcessTestActorDecisionSchema,
907
+ ProcessTestCoverage: ProcessSchemas.ProcessTestCoverageSchema,
908
+ ProcessTestChildTrace: ProcessSchemas.ProcessTestChildTraceSchema,
909
+ ProcessTestScenarioResult: ProcessSchemas.ProcessTestScenarioResultSchema,
910
+ ProcessTestRun: ProcessSchemas.ProcessTestRunSchema,
911
+ ProcessTestRunArray: ProcessSchemas.ProcessTestRunArraySchema,
912
+ ListProcessTestRunsQuery: ProcessSchemas.ListProcessTestRunsQuerySchema,
913
+ UpdateProcessTestScenarioPayload: ProcessSchemas.UpdateProcessTestScenarioPayloadSchema,
852
914
  };
853
915
  const EVENT_DELIVERY_SCHEMAS = {
854
916
  AgentDeliveryMatchMode: EventSchemas.AgentDeliveryMatchModeSchema,
@@ -1010,6 +1072,8 @@ const VIEW_EXECUTION_SCHEMAS = {
1010
1072
  ExecuteViewRequest: ViewExecutionSchemas.ExecuteViewRequestSchema,
1011
1073
  ViewNavigationResult: ViewExecutionSchemas.ViewNavigationResultSchema,
1012
1074
  ViewExecutionQueryPlan: ViewExecutionSchemas.ViewExecutionQueryPlanSchema,
1075
+ ViewRerankFailureCode: ViewExecutionSchemas.ViewRerankFailureCodeSchema,
1076
+ ViewExecutionRerankResult: ViewExecutionSchemas.ViewExecutionRerankResultSchema,
1013
1077
  ViewExecutionSearchConfiguration: ViewExecutionSchemas.ViewExecutionSearchConfigurationSchema,
1014
1078
  ViewNavigationResultMap: ViewExecutionSchemas.ViewNavigationResultMapSchema,
1015
1079
  ViewExecutionSearchResult: ViewExecutionSchemas.ViewExecutionSearchResultSchema,
@@ -1055,12 +1119,17 @@ const PROJECT_TOOL_SCHEMAS = {
1055
1119
  // The unified project-scoped tool registry: what `GET /tools` aggregates across
1056
1120
  // builtins, installed apps and interactions, and what `POST /tools/validate` resolves.
1057
1121
  ToolSource: ToolSourceSchema,
1122
+ ToolRuntimeContext: ToolRuntimeContextSchema,
1123
+ ProcessToolCompatibilityReason: ProcessToolCompatibilityReasonSchema,
1124
+ ProcessToolCompatibility: ProcessToolCompatibilitySchema,
1058
1125
  ValidateToolNamesPayload: ValidateToolNamesPayloadSchema,
1059
1126
  ToolValidationResult: ToolValidationResultSchema,
1060
1127
  AggregatedTool: AggregatedToolSchema,
1061
1128
  ValidateToolNamesResponse: ValidateToolNamesResponseSchema,
1062
1129
  AggregatedToolArray: AggregatedToolArraySchema,
1063
1130
  ListProjectToolsQuery: ListProjectToolsQuerySchema,
1131
+ InspectProjectToolQuery: InspectProjectToolQuerySchema,
1132
+ ToolInspection: ToolInspectionSchema,
1064
1133
  };
1065
1134
  const REMOTE_MCP_SCHEMAS = {
1066
1135
  // The OAuth handshake a remote MCP tool collection performs. Grouped by the
@@ -1113,6 +1182,9 @@ const VIEW_EXPERIENCE_SCHEMAS = {
1113
1182
  ViewResultFieldFormat: ViewResultFieldFormatSchema,
1114
1183
  ViewBoardColumn: ViewBoardColumnSchema,
1115
1184
  ViewTableColumn: ViewTableColumnSchema,
1185
+ ViewAgenticSearchMode: ViewAgenticSearchModeSchema,
1186
+ AgenticViewRerankConfiguration: AgenticViewRerankConfigurationSchema,
1187
+ ViewAgenticExecutionConfiguration: ViewAgenticExecutionConfigurationSchema,
1116
1188
  AgenticViewSearchConfiguration: AgenticViewSearchConfigurationSchema,
1117
1189
  ViewSearchFieldType: ViewSearchFieldTypeSchema,
1118
1190
  ViewSearchFieldDefinition: ViewSearchFieldDefinitionSchema,
@@ -1138,6 +1210,14 @@ const VIEW_EXPERIENCE_SCHEMAS = {
1138
1210
  ViewCardsDisplay: ViewCardsDisplaySchema,
1139
1211
  ViewGalleryDisplay: ViewGalleryDisplaySchema,
1140
1212
  ViewDisplayConfiguration: ViewDisplayConfigurationSchema,
1213
+ ViewSelectionMode: ViewSelectionModeSchema,
1214
+ ViewSelectionConfiguration: ViewSelectionConfigurationSchema,
1215
+ ViewActionPlacement: ViewActionPlacementSchema,
1216
+ ViewActionSelectionRequirement: ViewActionSelectionRequirementSchema,
1217
+ ViewActionConfiguration: ViewActionConfigurationSchema,
1218
+ ViewActionsConfiguration: ViewActionsConfigurationSchema,
1219
+ ViewUploadDropParameters: ViewUploadDropParametersSchema,
1220
+ ViewDropConfiguration: ViewDropConfigurationSchema,
1141
1221
  ViewResultsConfiguration: ViewResultsConfigurationSchema,
1142
1222
  CreateViewExperienceRequest: CreateViewExperienceRequestSchema,
1143
1223
  ViewExperience: ViewExperienceSchema,
@@ -1194,6 +1274,7 @@ const APP_LIFECYCLE_SCHEMAS = {
1194
1274
  AppRepoDocumentCommit: AppRepoDocumentCommitSchema,
1195
1275
  AppVersionGitSource: AppVersionGitSourceSchema,
1196
1276
  StartAppScaffoldRequest: StartAppScaffoldRequestSchema,
1277
+ StartAppDevelopmentTaskRequest: StartAppDevelopmentTaskRequestSchema,
1197
1278
  StartAppBuildRequest: StartAppBuildRequestSchema,
1198
1279
  AgentToolDefinition: AgentToolDefinitionSchema,
1199
1280
  AppDevelopmentTaskList: AppDevelopmentTaskListSchema,
@@ -1221,6 +1302,8 @@ const APP_LIFECYCLE_SCHEMAS = {
1221
1302
  AppToolCollectionArray: AppToolCollectionArraySchema,
1222
1303
  AppInstallationKind: AppInstallationKindSchema,
1223
1304
  AppInstallationsQuery: AppInstallationsQuerySchema,
1305
+ AppListScope: AppListScopeSchema,
1306
+ AppsQuery: AppsQuerySchema,
1224
1307
  AppInstallationProjectsQuery: AppInstallationProjectsQuerySchema,
1225
1308
  SystemPackageQuery: SystemPackageQuerySchema,
1226
1309
  };
@@ -1312,6 +1395,7 @@ const APP_MANIFEST_SCHEMAS = {
1312
1395
  AppWidgetInfo: AppRuntimeSchemas.AppWidgetInfoSchema,
1313
1396
  AppDashboardDefinition: AppRuntimeSchemas.AppDashboardDefinitionSchema,
1314
1397
  AppManifestData: AppRuntimeSchemas.AppManifestDataSchema,
1398
+ UpdateAppPayload: AppRuntimeSchemas.UpdateAppPayloadSchema,
1315
1399
  AppManifest: AppRuntimeSchemas.AppManifestSchema,
1316
1400
  AppManifestArray: AppRuntimeSchemas.AppManifestArraySchema,
1317
1401
  AppWidgetInfoMap: AppRuntimeSchemas.AppWidgetInfoMapSchema,
@@ -1347,6 +1431,30 @@ const STS_SCHEMAS = {
1347
1431
  IssueTokenForbiddenResponse: StsSchemas.IssueTokenForbiddenResponseSchema,
1348
1432
  IssueTokenUnavailableResponse: StsSchemas.IssueTokenUnavailableResponseSchema,
1349
1433
  };
1434
+ const AGENT_COMMUNICATION_SCHEMAS = {
1435
+ EmailRouteData: AgentCommunicationSchemas.EmailRouteDataSchema,
1436
+ SendEmailRequest: AgentCommunicationSchemas.SendEmailRequestSchema,
1437
+ SendEmailResponse: AgentCommunicationSchemas.SendEmailResponseSchema,
1438
+ ResolveEmailRouteRequest: AgentCommunicationSchemas.ResolveEmailRouteRequestSchema,
1439
+ CreateEmailRouteRequest: AgentCommunicationSchemas.CreateEmailRouteRequestSchema,
1440
+ CreateEmailRouteResponse: AgentCommunicationSchemas.CreateEmailRouteResponseSchema,
1441
+ EmailRouteResponse: AgentCommunicationSchemas.EmailRouteResponseSchema,
1442
+ UpdateEmailRouteRequest: AgentCommunicationSchemas.UpdateEmailRouteRequestSchema,
1443
+ UpdateEmailRouteResponse: AgentCommunicationSchemas.UpdateEmailRouteResponseSchema,
1444
+ ForwardEmailRequest: AgentCommunicationSchemas.ForwardEmailRequestSchema,
1445
+ ForwardEmailResponse: AgentCommunicationSchemas.ForwardEmailResponseSchema,
1446
+ PendingAskStatus: AgentCommunicationSchemas.PendingAskStatusSchema,
1447
+ PendingAskData: AgentCommunicationSchemas.PendingAskDataSchema,
1448
+ RegisterPendingAskRequest: AgentCommunicationSchemas.RegisterPendingAskRequestSchema,
1449
+ RegisterPendingAskResponse: AgentCommunicationSchemas.RegisterPendingAskResponseSchema,
1450
+ ResolvePendingAskRequest: AgentCommunicationSchemas.ResolvePendingAskRequestSchema,
1451
+ ResolvePendingAskResponse: AgentCommunicationSchemas.ResolvePendingAskResponseSchema,
1452
+ ListPendingAsksResponse: AgentCommunicationSchemas.ListPendingAsksResponseSchema,
1453
+ };
1454
+ const CONTENT_QUERY_SCHEMAS = {
1455
+ ContentQueryPayload: ContentQuerySchemas.ContentQueryPayloadSchema,
1456
+ ContentQueryResult: ContentQuerySchemas.ContentQueryResultSchema,
1457
+ };
1350
1458
  const API_SCHEMA_GROUPS = [
1351
1459
  IAM_AND_ACCOUNT_SCHEMAS,
1352
1460
  PROJECT_AND_APP_SCHEMAS,
@@ -1369,6 +1477,8 @@ const API_SCHEMA_GROUPS = [
1369
1477
  APP_MANIFEST_SCHEMAS,
1370
1478
  APP_INSTALLATION_SCHEMAS,
1371
1479
  STS_SCHEMAS,
1480
+ AGENT_COMMUNICATION_SCHEMAS,
1481
+ CONTENT_QUERY_SCHEMAS,
1372
1482
  FILE_STORAGE_SCHEMAS,
1373
1483
  DURABLE_TASK_SCHEMAS,
1374
1484
  CONTENT_TYPE_CATALOG_SCHEMAS,
@@ -1411,6 +1521,33 @@ const API_SCHEMAS = mergeComponentGroups(API_SCHEMA_GROUPS);
1411
1521
  * objects, so a body carrying an undeclared property is rejected rather than quietly accepted.
1412
1522
  */
1413
1523
  const STRICT_COMPONENTS = new Set([
1524
+ // Process Test Lab request, fixture, and result contracts.
1525
+ 'ProcessTestVirtualActor',
1526
+ 'ProcessTestFixtureResult',
1527
+ 'ProcessTestFixtureError',
1528
+ 'ProcessTestNodeFixture',
1529
+ 'ProcessTestHumanAction',
1530
+ 'ProcessTestAssertions',
1531
+ 'ProcessTestScenario',
1532
+ 'ProcessTestSuite',
1533
+ 'CreateProcessTestSuitePayload',
1534
+ 'UpdateProcessTestSuitePayload',
1535
+ 'StartProcessTestRunPayload',
1536
+ 'ProcessTestStoredSubject',
1537
+ 'ProcessTestResolvedSubject',
1538
+ 'ProcessTestInlineSubject',
1539
+ 'ProcessTestTargetById',
1540
+ 'ProcessTestTargetWithDefinition',
1541
+ 'ProcessTestTarget',
1542
+ 'SubmitProcessTestRunPayload',
1543
+ 'ProcessTestAssertionResult',
1544
+ 'ProcessTestActorDecision',
1545
+ 'ProcessTestCoverage',
1546
+ 'ProcessTestChildTrace',
1547
+ 'ProcessTestScenarioResult',
1548
+ 'ProcessTestRun',
1549
+ 'ListProcessTestRunsQuery',
1550
+ 'UpdateProcessTestScenarioPayload',
1414
1551
  'Account',
1415
1552
  'AccountBilling',
1416
1553
  'UpdateAccountPayload',
@@ -1455,6 +1592,27 @@ const STRICT_COMPONENTS = new Set([
1455
1592
  'UserGroupRef',
1456
1593
  'CreateUserGroupPayload',
1457
1594
  'UpdateUserGroupPayload',
1595
+ 'ListUserGroupsQuery',
1596
+ // Agent communication and content query endpoints.
1597
+ 'EmailRouteData',
1598
+ 'SendEmailRequest',
1599
+ 'SendEmailResponse',
1600
+ 'ResolveEmailRouteRequest',
1601
+ 'CreateEmailRouteRequest',
1602
+ 'CreateEmailRouteResponse',
1603
+ 'EmailRouteResponse',
1604
+ 'UpdateEmailRouteRequest',
1605
+ 'UpdateEmailRouteResponse',
1606
+ 'ForwardEmailRequest',
1607
+ 'ForwardEmailResponse',
1608
+ 'PendingAskData',
1609
+ 'RegisterPendingAskRequest',
1610
+ 'RegisterPendingAskResponse',
1611
+ 'ResolvePendingAskRequest',
1612
+ 'ResolvePendingAskResponse',
1613
+ 'ListPendingAsksResponse',
1614
+ 'ContentQueryPayload',
1615
+ 'ContentQueryResult',
1458
1616
  // The roles / access-control closure. `AceConditions` is closed too, and has to be listed by
1459
1617
  // name: it is a hoisted component, so the parent's strict policy does not reach it.
1460
1618
  // `PropertyConditions` is deliberately absent — it is a map whose `additionalProperties` is a
@@ -1534,7 +1692,7 @@ const STRICT_COMPONENTS = new Set([
1534
1692
  'ProjectConfiguration',
1535
1693
  'UpdateProjectPayload',
1536
1694
  'UpdateProjectConfigurationPayload',
1537
- // Every member of the `ModelOptions` union. All twenty-three are published closed today, and
1695
+ // Every member of the `ModelOptions` union is published closed today, and
1538
1696
  // their Zod schemas are `strictObject`, so the published contract, the AJV enforcement and the
1539
1697
  // schema's own parse all reject the same undeclared option. `ModelOptions` itself is a union
1540
1698
  // and takes no `additionalProperties`, and neither do the four hoisted enums.
@@ -1542,9 +1700,11 @@ const STRICT_COMPONENTS = new Set([
1542
1700
  // `JSONSchema` is deliberately absent: it is OPEN by design and by long-standing publication —
1543
1701
  // a JSON Schema carries keywords the type never enumerated. `JSONSchemaProperties` is a map.
1544
1702
  'TextFallbackOptions',
1703
+ 'AzureFoundryChatOptions',
1545
1704
  'ImagenOptions',
1546
1705
  'VertexAIClaudeOptions',
1547
1706
  'VertexAIGeminiOptions',
1707
+ 'VertexAIGeminiOmniVideoOptions',
1548
1708
  'VertexAIGrokOptions',
1549
1709
  'NovaCanvasOptions',
1550
1710
  'BedrockConverseOptions',
@@ -1563,7 +1723,9 @@ const STRICT_COMPONENTS = new Set([
1563
1723
  'OpenAiTextOptions',
1564
1724
  'OpenAiDalleOptions',
1565
1725
  'OpenAiGptImageOptions',
1726
+ 'XAIGrokImageOptions',
1566
1727
  'GroqOptions',
1728
+ 'MistralTextOptions',
1567
1729
  // The app-manifest leaves. Every object among them is published closed today, the nested `git`
1568
1730
  // block included, and it is spelled `strictObject` so the emission carries it directly. The five
1569
1731
  // enums take no `additionalProperties` at all.
@@ -1774,6 +1936,8 @@ const STRICT_COMPONENTS = new Set([
1774
1936
  'ViewResultMedia',
1775
1937
  'ViewBoardColumn',
1776
1938
  'ViewTableColumn',
1939
+ 'AgenticViewRerankConfiguration',
1940
+ 'ViewAgenticExecutionConfiguration',
1777
1941
  'AgenticViewSearchConfiguration',
1778
1942
  'ViewSearchFieldDefinition',
1779
1943
  'ViewRangeDefinition',
@@ -1875,6 +2039,7 @@ const STRICT_COMPONENTS = new Set([
1875
2039
  'WorkflowRunEvent',
1876
2040
  'ViewNavigationResult',
1877
2041
  'ViewExecutionQueryPlan',
2042
+ 'ViewExecutionRerankResult',
1878
2043
  'ViewExecutionSearchConfiguration',
1879
2044
  'DSLRetryPolicy',
1880
2045
  'CreateContentObjectPayload',
@@ -1902,6 +2067,7 @@ const STRICT_COMPONENTS = new Set([
1902
2067
  'DSLActivitySpec',
1903
2068
  'DSLActivityStep',
1904
2069
  'ContentObjectApiResponse',
2070
+ 'ProjectedContentObjectApiResponse',
1905
2071
  'ComputeObjectFacetPayload',
1906
2072
  'EventSubscriptionFilter',
1907
2073
  'EventDeliverySummary',
@@ -1914,6 +2080,11 @@ const STRICT_COMPONENTS = new Set([
1914
2080
  'ListEventDeliveriesResponse',
1915
2081
  'ObjectSearchResponse',
1916
2082
  'WorkflowRunWithDetails',
2083
+ 'ViewSelectionConfiguration',
2084
+ 'ViewActionConfiguration',
2085
+ 'ViewActionsConfiguration',
2086
+ 'ViewUploadDropParameters',
2087
+ 'ViewDropConfiguration',
1917
2088
  'ViewResultsConfiguration',
1918
2089
  'ViewExecutionDefinition',
1919
2090
  'ViewExperienceConfiguration',
@@ -1952,6 +2123,14 @@ const STRICT_COMPONENTS = new Set([
1952
2123
  'OAuthProviderAuthorizeResponse',
1953
2124
  'OAuthProviderAccessTokenResponse',
1954
2125
  'OAuthProviderExchangePayload',
2126
+ 'OAuthClientDisplayMetadata',
2127
+ 'OAuthAuthorizeQuery',
2128
+ 'CreateOAuthAuthorizationRequestPayload',
2129
+ 'OAuthAuthorizationRequest',
2130
+ 'ApproveOAuthAuthorizationRequestPayload',
2131
+ 'OAuthGrantableScopesResponse',
2132
+ 'OAuthAuthorizationDecisionResponse',
2133
+ 'OAuthDeviceAuthorizationRequest',
1955
2134
  'OAuthClient',
1956
2135
  'OAuthClientCreateResponse',
1957
2136
  'OAuthClientScopeMetadata',
@@ -2020,16 +2199,19 @@ const STRICT_COMPONENTS = new Set([
2020
2199
  'TextResult',
2021
2200
  'JsonResult',
2022
2201
  'ImageResult',
2202
+ 'VideoResult',
2023
2203
  'ExecutionTokenUsage',
2024
2204
  'StatelessExecutionOptions',
2025
2205
  'SchemaRef',
2026
2206
  'CachePolicy',
2027
2207
  'PromptModalities',
2028
2208
  'PromptTemplate',
2209
+ 'InteractionPromptTemplateInput',
2029
2210
  'PromptTemplateCreatePayload',
2030
2211
  'PromptTemplateUpdatePayload',
2031
2212
  'PromptTemplateRef',
2032
2213
  'PromptSegmentDef',
2214
+ 'InteractionPromptSegmentInput',
2033
2215
  'PromptSegmentRef_PromptTemplateRef',
2034
2216
  'InCodePrompt',
2035
2217
  'Interaction',
@@ -2118,6 +2300,11 @@ const STRICT_COMPONENTS = new Set([
2118
2300
  'ValidateToolNamesPayload',
2119
2301
  'ToolValidationResult',
2120
2302
  'AggregatedTool',
2303
+ 'ToolRuntimeContext',
2304
+ 'ProcessToolCompatibilityReason',
2305
+ 'ProcessToolCompatibility',
2306
+ 'InspectProjectToolQuery',
2307
+ 'ToolInspection',
2121
2308
  'ValidateToolNamesResponse',
2122
2309
  'RenderPromptResponse',
2123
2310
  'PromptTemplateInteractionVersion',
@@ -2203,6 +2390,7 @@ const STRICT_COMPONENTS = new Set([
2203
2390
  'AppRepoDocumentCommit',
2204
2391
  'AppVersionGitSource',
2205
2392
  'StartAppScaffoldRequest',
2393
+ 'StartAppDevelopmentTaskRequest',
2206
2394
  'StartAppBuildRequest',
2207
2395
  'AgentToolDefinition',
2208
2396
  'AppDevelopmentTaskList',
@@ -2221,6 +2409,7 @@ const STRICT_COMPONENTS = new Set([
2221
2409
  'AppInstallationPayload',
2222
2410
  'AppDevelopmentTaskDetails',
2223
2411
  'AppInstallationsQuery',
2412
+ 'AppsQuery',
2224
2413
  'AppInstallationProjectsQuery',
2225
2414
  'SystemPackageQuery',
2226
2415
  'WebsiteCredentialTotpMetadata',
@@ -2255,6 +2444,7 @@ const STRICT_COMPONENTS = new Set([
2255
2444
  'DeleteSecretResponse',
2256
2445
  'WebsiteCredentialMetadata',
2257
2446
  'AppManifestData',
2447
+ 'UpdateAppPayload',
2258
2448
  'WebsiteCredentialMetadataUpdate',
2259
2449
  'AskUserWebhookConfigurationInput',
2260
2450
  'ResendConfigurationInput',
@@ -2283,13 +2473,20 @@ const STRICT_COMPONENTS = new Set([
2283
2473
  'BucketReadAccessStatusResponse',
2284
2474
  'EnsureBucketReadAccessPayload',
2285
2475
  'EnsureBucketReadAccessResponse',
2476
+ 'BucketCreateAccessQuery',
2477
+ 'BucketCreateAccessStatusResponse',
2478
+ 'EnsureBucketCreateAccessPayload',
2479
+ 'EnsureBucketCreateAccessResponse',
2286
2480
  'MigrateInteractionsPayload',
2287
2481
  'MigrateInteractionsResult',
2288
2482
  'PricingSyncPayload',
2289
2483
  'PricingSyncDayResult',
2290
2484
  'PricingSyncResult',
2291
2485
  'ComputeRunFacetPayload',
2486
+ 'FindRunResult',
2487
+ 'FindRunResultArray',
2292
2488
  'RunSearchMetaResponse',
2489
+ 'ComputeRunFacetsResponse',
2293
2490
  'ToolResultsPayload',
2294
2491
  'UserMessagePayload',
2295
2492
  'ExecutionResponse',
@@ -2334,405 +2531,29 @@ function emitRawSchemas() {
2334
2531
  ]));
2335
2532
  }
2336
2533
  /**
2337
- * The canonical `components.schemas` for all documented endpoints.
2338
- *
2339
- * This exact object is what the OpenAPI spec publishes AND what AJV compiles, so the published
2340
- * contract and the enforced contract cannot diverge.
2341
- */
2342
- export const ApiSchemaComponents = toOpenApiComponents(emitRawSchemas(), {
2343
- strictComponents: STRICT_COMPONENTS,
2344
- });
2345
- /**
2346
- * A canonical component as a SELF-CONTAINED JSON Schema, for consumers that compile it directly.
2347
- *
2348
- * The published component `$ref`s its neighbours through `#/components/schemas/...`, which resolves
2349
- * only inside the OpenAPI document. AJV and the Monaco editor need a document they can compile on
2350
- * its own, so the transitive closure is inlined under `$defs` and the pointers rewritten. Nothing
2351
- * about the shapes changes — this is a re-rooting of the same objects, plus the removal of the
2352
- * OpenAPI-only discriminator keywords described below, which is what lets a generated artifact be
2353
- * compared with the component it came from.
2354
- */
2355
- export function bundleCanonicalComponent(name) {
2356
- const seen = new Set();
2357
- const queue = [name];
2358
- while (queue.length > 0) {
2359
- const current = queue.shift();
2360
- if (seen.has(current))
2361
- continue;
2362
- seen.add(current);
2363
- for (const referenced of collectComponentRefs(ApiSchemaComponents[current])) {
2364
- if (!seen.has(referenced))
2365
- queue.push(referenced);
2366
- }
2367
- }
2368
- seen.delete(name);
2369
- const defs = {};
2370
- for (const dependency of [...seen].sort()) {
2371
- defs[dependency] = toPlainJsonSchema(ApiSchemaComponents[dependency]);
2372
- }
2373
- const root = toPlainJsonSchema(ApiSchemaComponents[name]);
2374
- return seen.size > 0 ? { ...root, $defs: defs } : root;
2375
- }
2376
- const COMPONENT_REF_PREFIX = '#/components/schemas/';
2377
- /**
2378
- * Re-roots the component pointers AND drops the discriminator keywords, which are OpenAPI's, not
2379
- * JSON Schema's.
2380
- *
2381
- * `synthesizeDiscriminator` in the adapter gives a discriminated union a `discriminator` plus a
2382
- * restated `type: 'object'` and `required: [propertyName]` ON THE UNION NODE, so a generated
2383
- * Java/Go client can pick a subtype from the union rather than the branches. That restatement is a
2384
- * codegen hint: the node carries no `properties`, so it says "an object that must have
2385
- * `_option_id`" while declaring nothing that could be one.
2386
- *
2387
- * A JSON Schema validator does not mind — `required` needs no matching `properties`, and each
2388
- * branch requires the same key anyway, so removing all three is validation-neutral. Gemini's
2389
- * function-declaration validator does mind, and rejects the whole tool:
2390
- *
2391
- * schema at properties.intake.properties.extraction.properties.config.properties.model_options
2392
- * requires unspecified property '_option_id'
2393
- *
2394
- * That was a 400 on every agent turn offering `create_or_update_type`, because the intake-policy
2395
- * artifact reaches Vertex inside that tool's input schema. Stripping here rather than at the tool
2396
- * keeps the next component someone bundles from reintroducing it. The OpenAPI document is untouched
2397
- * — `ApiSchemaComponents` still carries the hint, and the generated clients still read it.
2398
- */
2399
- function toPlainJsonSchema(value) {
2400
- const rerooted = rerootComponentRefs(value);
2401
- return stripDiscriminators(rerooted);
2402
- }
2403
- function stripDiscriminators(value) {
2404
- if (Array.isArray(value))
2405
- return value.map(stripDiscriminators);
2406
- if (!value || typeof value !== 'object')
2407
- return value;
2408
- const node = value;
2409
- // `properties` present means the node describes an object in its own right, so its `type` and
2410
- // `required` are the schema's own rather than the restatement — only the OpenAPI keyword goes.
2411
- const restated = node.discriminator !== undefined && node.properties === undefined;
2412
- const out = {};
2413
- for (const [key, item] of Object.entries(node)) {
2414
- if (key === 'discriminator')
2415
- continue;
2416
- if (restated && (key === 'type' || key === 'required'))
2417
- continue;
2418
- out[key] = stripDiscriminators(item);
2419
- }
2420
- return out;
2421
- }
2422
- function collectComponentRefs(value, out = new Set()) {
2423
- if (Array.isArray(value)) {
2424
- for (const item of value)
2425
- collectComponentRefs(item, out);
2426
- return out;
2427
- }
2428
- if (!value || typeof value !== 'object')
2429
- return out;
2430
- for (const [key, item] of Object.entries(value)) {
2431
- if (key === '$ref' && typeof item === 'string' && item.startsWith(COMPONENT_REF_PREFIX)) {
2432
- out.add(item.slice(COMPONENT_REF_PREFIX.length));
2433
- }
2434
- else {
2435
- collectComponentRefs(item, out);
2436
- }
2437
- }
2438
- return out;
2439
- }
2440
- function rerootComponentRefs(value) {
2441
- if (Array.isArray(value))
2442
- return value.map(rerootComponentRefs);
2443
- if (!value || typeof value !== 'object')
2444
- return value;
2445
- const out = {};
2446
- for (const [key, item] of Object.entries(value)) {
2447
- out[key] =
2448
- key === '$ref' && typeof item === 'string' && item.startsWith(COMPONENT_REF_PREFIX)
2449
- ? `#/$defs/${item.slice(COMPONENT_REF_PREFIX.length)}`
2450
- : rerootComponentRefs(item);
2451
- }
2452
- return out;
2453
- }
2454
- /** The `$ref` pointer for a component, in the same spelling the spec publishes. */
2455
- export function apiComponentRef(name) {
2456
- return `#/components/schemas/${name}`;
2457
- }
2458
- /**
2459
- * Validators compiled against the published components, through an envelope so the pointer AJV
2460
- * resolves is the exact pointer the spec publishes. `strictSchema: false` tolerates the
2461
- * `components` wrapper while leaving type and tuple checks active.
2462
- *
2463
- * Compiled lazily and cached: AJV compilation is the expensive step, and most components are
2464
- * never validated in a given process.
2465
- */
2466
- const validators = new Map();
2467
- /**
2468
- * One instance for the process, built on first validation.
2469
- *
2470
- * Per-component instances meant re-registering the whole thousand-component envelope for every
2471
- * component ever validated, and AJV walks a schema when it is added. Sharing one instance also lets
2472
- * it reuse the compiled form of a component that two others reference.
2473
- */
2474
- let ajvInstance;
2475
- /**
2476
- * The published components as AJV can consume them: the same schemas, with the two adjustments
2477
- * AJV's discriminator support requires and the OpenAPI document must not have.
2478
- *
2479
- * `discriminator: true` below is what makes AJV validate a discriminated union through the branch
2480
- * its tag names, instead of trying every branch and reporting all of their failures at once. The
2481
- * difference is not cosmetic — a legacy MCP tool collection missing `id` used to report the real
2482
- * error alongside two impossible ones from the branch it was never meant to match:
2483
- *
2484
- * / must have required property 'id' <- the real one
2485
- * / must NOT have additional properties: oauth_app <- vertesia_sdk branch
2486
- * /type must be equal to constant <- vertesia_sdk branch
2487
- * / must match exactly one schema in oneOf
2488
- *
2489
- * AJV rejects `mapping` outright ("discriminator: mapping is not supported"), because it derives
2490
- * the tag-to-branch map from each branch's own `const`/`enum` instead. The OpenAPI document still
2491
- * needs the mapping — a generated Java or Go client reads it to pick a concrete subtype — so both
2492
- * fixups here apply to AJV's copy only, and `ApiSchemaComponents` is published exactly as built.
2493
- *
2494
- * AJV's remaining requirements — the tag required in every branch, carrying `const` or a
2495
- * single-valued `enum`, with the union node typed as an object — are what `synthesizeDiscriminator`
2496
- * in the adapter already checks before it emits a discriminator at all, and what the hand-written
2497
- * `.meta({ discriminator })` declarations restate. `api-discriminators.test.ts` compiles every
2498
- * registered component so a union satisfying neither fails the build rather than the request.
2499
- */
2500
- function toAjvComponents() {
2501
- const schemas = structuredClone(ApiSchemaComponents);
2502
- const resolve = (value) => {
2503
- if (!isPlainObject(value))
2504
- return undefined;
2505
- const ref = value.$ref;
2506
- if (typeof ref !== 'string' || !ref.startsWith(COMPONENT_REF_PREFIX))
2507
- return value;
2508
- return schemas[ref.slice(COMPONENT_REF_PREFIX.length)];
2509
- };
2510
- visitSchemaNodes(schemas, (node) => {
2511
- const discriminator = node.discriminator;
2512
- if (!isPlainObject(discriminator) || !Array.isArray(node.oneOf))
2513
- return;
2514
- // AJV derives the tag-to-branch map from each branch's own literal, so `mapping` is both
2515
- // redundant and rejected.
2516
- delete discriminator.mapping;
2517
- const tag = discriminator.propertyName;
2518
- if (typeof tag !== 'string')
2519
- return;
2520
- for (const member of node.oneOf) {
2521
- const branch = resolve(member);
2522
- const properties = branch && isPlainObject(branch.properties) ? branch.properties : undefined;
2523
- const tagSchema = properties?.[tag];
2524
- if (!isPlainObject(tagSchema) || tagSchema.const !== undefined || tagSchema.enum !== undefined)
2525
- continue;
2526
- // The tag is a `$ref` to a named literal component — `TaskType_ACTIVITY`,
2527
- // `SupportedIntegrations_gladia` — because the literal carries its own `.meta({ id })`.
2528
- // AJV reads `properties/<tag>` looking for `const` or `enum` and does not follow a
2529
- // `$ref` to find one, so it refuses to compile the union at all. Restating the resolved
2530
- // literal ALONGSIDE the `$ref` is validation-neutral: `$ref` has no special precedence
2531
- // in 2020-12, both keywords apply, and they carry the same value by construction.
2532
- const target = resolve(tagSchema);
2533
- if (!target)
2534
- continue;
2535
- if (target.const !== undefined)
2536
- tagSchema.const = target.const;
2537
- else if (Array.isArray(target.enum))
2538
- tagSchema.enum = target.enum;
2539
- }
2540
- });
2541
- return schemas;
2542
- }
2543
- /** Every object node in the component graph, parents before children. */
2544
- function visitSchemaNodes(value, visit) {
2545
- if (Array.isArray(value)) {
2546
- for (const item of value)
2547
- visitSchemaNodes(item, visit);
2548
- return;
2549
- }
2550
- if (!isPlainObject(value))
2551
- return;
2552
- visit(value);
2553
- for (const item of Object.values(value))
2554
- visitSchemaNodes(item, visit);
2555
- }
2556
- function getAjv() {
2557
- if (ajvInstance)
2558
- return ajvInstance;
2559
- const ajv = new Ajv2020({ strictSchema: false, allErrors: true, discriminator: true });
2560
- // Without this, AJV treats `format` as an annotation and ignores it, so a `date-time` property
2561
- // would document a constraint nothing checks — the exact spec/enforcement gap this design is
2562
- // meant to close.
2563
- addFormats(ajv);
2564
- ajv.addSchema({ $id: 'vertesia://openapi', components: { schemas: toAjvComponents() } });
2565
- ajvInstance = ajv;
2566
- return ajv;
2567
- }
2568
- function getValidator(name) {
2569
- const cached = validators.get(name);
2570
- if (cached)
2571
- return cached;
2572
- const validate = getAjv().compile({ $ref: `vertesia://openapi${apiComponentRef(name)}` });
2573
- validators.set(name, validate);
2574
- return validate;
2575
- }
2576
- function additionalProperty(error) {
2577
- // AJV writes "must NOT have additional properties" and puts the offending key in `params`,
2578
- // so the message alone says a body is wrong without saying which property made it wrong.
2579
- // Every other keyword names its subject already — `required` quotes the missing property,
2580
- // `enum` and `type` describe the value in place — and this is the one a caller most often
2581
- // trips, so it is the one worth spelling out rather than reformatting all of them.
2582
- return error.params?.additionalProperty;
2583
- }
2584
- /**
2585
- * The failures, with all undeclared properties at a given path gathered into ONE issue.
2586
- *
2587
- * AJV reports `additionalProperties` per property, so a value carrying a whole foreign object —
2588
- * a Mongoose document that reached the response mapper unmapped, say — produces one error per own
2589
- * key and buries every other failure in the payload. Gathering is lossless: every name is kept, in
2590
- * the order AJV found it, on the issue for the path it belongs to.
2591
- */
2592
- function collectIssues(validate) {
2593
- const errors = validate.errors ?? [];
2594
- const undeclaredByPath = new Map();
2595
- for (const error of errors) {
2596
- const additional = additionalProperty(error);
2597
- if (additional === undefined)
2598
- continue;
2599
- const where = error.instancePath || '/';
2600
- const names = undeclaredByPath.get(where);
2601
- // A union whose branches all reject the same property reports it once per branch. The name
2602
- // is the same fact each time, so it is listed once.
2603
- if (names)
2604
- names.add(additional);
2605
- else
2606
- undeclaredByPath.set(where, new Set([additional]));
2607
- }
2608
- const gathered = new Set();
2609
- const issues = [];
2610
- for (const error of errors) {
2611
- const path = error.instancePath || '/';
2612
- const message = error.message ?? 'is invalid';
2613
- if (additionalProperty(error) === undefined) {
2614
- issues.push({ path, message });
2615
- continue;
2616
- }
2617
- if (gathered.has(path))
2618
- continue;
2619
- gathered.add(path);
2620
- issues.push({ path, message, undeclared: [...(undeclaredByPath.get(path) ?? [])] });
2621
- }
2622
- return issues;
2623
- }
2624
- /**
2625
- * The complete rendering of one issue — every name, no budget.
2626
- *
2627
- * This is what gets logged. A caller-facing message renders from {@link ApiValidationIssue} itself
2628
- * with a length limit rather than shortening this string; see `reportableErrors` in the enforcer.
2629
- */
2630
- export function renderApiValidationIssue(issue) {
2631
- const head = `${issue.path} ${issue.message}`;
2632
- return issue.undeclared?.length ? `${head}: ${issue.undeclared.join(', ')}` : head;
2633
- }
2634
- /** The failed branch of every validator here, so the two views cannot be built inconsistently. */
2635
- function invalidResult(validate) {
2636
- const issues = collectIssues(validate);
2637
- return { valid: false, errors: issues.map(renderApiValidationIssue), issues };
2638
- }
2639
- /**
2640
- * Validates an untyped request body against the component the endpoint publishes.
2641
- *
2642
- * Non-mutating by design. AJV's removal modes are never used here: the server would then accept a
2643
- * body the published schema declares invalid, silently disagreeing with its own spec — and
2644
- * `removeAdditional: 'all'` additionally empties freeform maps. An undeclared property is reported,
2645
- * not deleted.
2646
- *
2647
- * The component type is handed back only on the `valid` branch, so a body missing required fields
2648
- * cannot be typed as complete. What the caller does with a failure — reject, or log and continue —
2649
- * is the endpoint's policy, not this function's.
2650
- */
2651
- export function validateApiRequest(name, value) {
2652
- const validate = getValidator(name);
2653
- if (validate(value)) {
2654
- return { valid: true, data: value };
2655
- }
2656
- return invalidResult(validate);
2657
- }
2658
- /**
2659
- * Validates an already-mapped response against the component it is published as.
2534
+ * Converts the whole Zod registry into the canonical `components.schemas`.
2660
2535
  *
2661
- * Separate from {@link pruneAndValidateApiResponse} because a resource mapper has already produced
2662
- * the wire shape: there is nothing to prune, and pruning would only mask a mapper bug. Use this at
2663
- * the response boundary to detect drift between what the mapper builds and what the spec promises.
2664
- */
2665
- export function validateApiResponse(name, value) {
2666
- const validate = getValidator(name);
2667
- if (validate(value)) {
2668
- return { valid: true, data: value };
2669
- }
2670
- return invalidResult(validate);
2671
- }
2672
- /**
2673
- * Best-effort normalization of a response payload towards the fields its published component
2674
- * declares. Use this on the response path INSTEAD of an AJV removal mode, which would empty
2675
- * freeform maps such as `Account.feature_flags`.
2676
- *
2677
- * NOT a secret-removal boundary. Ambiguous schema shapes pass values through untouched — see
2678
- * {@link pruneToSchema} and check a component with {@link findUnprunablePaths} before treating its
2679
- * output as closed. Fields that must never ship still need an explicit response mapper.
2680
- *
2681
- * Never throws and never rejects: an undocumented field is server-side drift, and failing the
2682
- * response would punish the caller for it.
2536
+ * This is the BUILD-TIME half of the contract. Its result is written to
2537
+ * `../api-contract/components.generated.json` by `scripts/gen-api-components.ts`, and that artifact
2538
+ * — not this function — is what serving processes load as `ApiSchemaComponents`. Calling this
2539
+ * requires the ~85 MB Zod object graph, which is precisely what the artifact exists to keep out of
2540
+ * the servers; see the comment at the top of `../api-contract/index.ts`.
2683
2541
  *
2684
- * Takes a value the caller has already typed as the component. Pruning only REMOVES undeclared
2685
- * extras, so a conforming input yields a conforming output and the return type is honest. It does
2686
- * NOT validate, which is why it cannot accept `unknown` — narrowing a payload that is missing
2687
- * required fields would hand TypeScript a complete `Account` that does not exist at runtime. Use
2688
- * {@link pruneAndValidateApiResponse} when the payload's shape is not already established.
2689
- *
2690
- * Request validation stays separate and non-mutating — pruning a request would make the server
2691
- * silently disagree with the permissive schema it publishes.
2542
+ * Callers are the generator and `../api-contract/components.contract.test.ts`, which compares the
2543
+ * two and fails on drift. Everything else should read `ApiSchemaComponents`.
2692
2544
  */
2693
- export function pruneApiResponse(name, value) {
2694
- return pruneToSchema(value, { $ref: apiComponentRef(name) }, ApiSchemaComponents);
2545
+ export function buildApiSchemaComponents() {
2546
+ return toOpenApiComponents(emitRawSchemas(), { strictComponents: STRICT_COMPONENTS });
2695
2547
  }
2696
2548
  /**
2697
- * Prunes an untyped payload and validates the result against the published component.
2698
- *
2699
- * The only sound entry point for a payload of unknown shape: the component type is handed back
2700
- * exclusively on the `valid` branch, so a document missing required fields cannot be typed as
2701
- * complete. On failure the pruned value is still returned — the caller decides whether to ship it
2702
- * and log, or fail — which keeps the "never turn drift into a 500" property a policy choice rather
2703
- * than something baked in here.
2549
+ * The runtime half of the contract, re-exported so this module stays the single import for schema
2550
+ * authors, the OpenAPI generator and the contract tests.
2704
2551
  *
2552
+ * The implementations live in `../api-contract/index.ts` because they must not depend on Zod: they
2553
+ * validate against the prebuilt `components.generated.json`, which is what lets the servers enforce
2554
+ * contracts without loading the ~85 MB Zod graph. Importing them from HERE pulls that graph in, so
2555
+ * server code must import `@vertesia/common/api-contract` directly. This re-export is for the
2556
+ * build-time and test consumers that have already paid for zod.
2705
2557
  */
2706
- export function pruneAndValidateApiResponse(name, value) {
2707
- const pruned = pruneToSchema(value, { $ref: apiComponentRef(name) }, ApiSchemaComponents);
2708
- const validate = getValidator(name);
2709
- if (validate(pruned)) {
2710
- return { valid: true, data: pruned };
2711
- }
2712
- return { ...invalidResult(validate), data: pruned };
2713
- }
2714
- /**
2715
- * Paths inside a component where pruning cannot narrow. Empty means no STRUCTURAL gaps for
2716
- * schema-conforming input — see {@link findUnprunablePaths} for why that is weaker than "nothing
2717
- * can escape". Anything listed needs an explicit response mapper.
2718
- */
2719
- export function findUnprunableApiPaths(name) {
2720
- return findUnprunablePaths({ $ref: apiComponentRef(name) }, ApiSchemaComponents);
2721
- }
2722
- /**
2723
- * Normalizes raw query or header text into the value a component describes.
2724
- *
2725
- * Binds {@link normalizeParameters} to {@link ApiSchemaComponents} — the same objects the OpenAPI
2726
- * document publishes and {@link validateApiRequest} compiles. That is what keeps the published
2727
- * parameter and the enforced one the same declaration: the scanner expands this component's
2728
- * properties into `in: query` parameters, and the coercion below is decided by those same property
2729
- * schemas, so neither can be changed without changing the other.
2730
- *
2731
- * Validate the result with {@link validateApiRequest}, which is non-coercing: everything type-related
2732
- * has already happened here, so a value this could not coerce is reported against the published
2733
- * schema rather than by a second rule.
2734
- */
2735
- export function normalizeApiParameters(name, raw, location) {
2736
- return normalizeParameters(name, raw, location, ApiSchemaComponents[name], ApiSchemaComponents);
2737
- }
2558
+ export { ApiSchemaComponents, apiComponentRef, bundleCanonicalComponent, findUnprunableApiPaths, normalizeApiParameters, pruneAndValidateApiResponse, pruneApiResponse, renderApiValidationIssue, renderApiValidationIssueHead, validateApiRequest, validateApiResponse, } from '../api-contract/index.js';
2738
2559
  //# sourceMappingURL=registry.js.map