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

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 (552) hide show
  1. package/lib/Progress.d.ts.map +1 -1
  2. package/lib/Progress.js.map +1 -1
  3. package/lib/access-control-values.d.ts +98 -0
  4. package/lib/access-control-values.d.ts.map +1 -0
  5. package/lib/access-control-values.js +101 -0
  6. package/lib/access-control-values.js.map +1 -0
  7. package/lib/access-control.d.ts +22 -119
  8. package/lib/access-control.d.ts.map +1 -1
  9. package/lib/access-control.js +6 -78
  10. package/lib/access-control.js.map +1 -1
  11. package/lib/account-values.d.ts +53 -0
  12. package/lib/account-values.d.ts.map +1 -0
  13. package/lib/account-values.js +91 -0
  14. package/lib/account-values.js.map +1 -0
  15. package/lib/analytics.d.ts +12 -38
  16. package/lib/analytics.d.ts.map +1 -1
  17. package/lib/api-schemas/access-control.d.ts +215 -0
  18. package/lib/api-schemas/access-control.d.ts.map +1 -0
  19. package/lib/api-schemas/access-control.js +165 -0
  20. package/lib/api-schemas/access-control.js.map +1 -0
  21. package/lib/api-schemas/account.d.ts +101 -0
  22. package/lib/api-schemas/account.d.ts.map +1 -0
  23. package/lib/api-schemas/account.js +136 -0
  24. package/lib/api-schemas/account.js.map +1 -0
  25. package/lib/api-schemas/adapter.d.ts +80 -0
  26. package/lib/api-schemas/adapter.d.ts.map +1 -0
  27. package/lib/api-schemas/adapter.js +726 -0
  28. package/lib/api-schemas/adapter.js.map +1 -0
  29. package/lib/api-schemas/agent-runs.d.ts +3786 -0
  30. package/lib/api-schemas/agent-runs.d.ts.map +1 -0
  31. package/lib/api-schemas/agent-runs.js +1000 -0
  32. package/lib/api-schemas/agent-runs.js.map +1 -0
  33. package/lib/api-schemas/analytics.d.ts +86 -0
  34. package/lib/api-schemas/analytics.d.ts.map +1 -0
  35. package/lib/api-schemas/analytics.js +58 -0
  36. package/lib/api-schemas/analytics.js.map +1 -0
  37. package/lib/api-schemas/apikey.d.ts +231 -0
  38. package/lib/api-schemas/apikey.d.ts.map +1 -0
  39. package/lib/api-schemas/apikey.js +172 -0
  40. package/lib/api-schemas/apikey.js.map +1 -0
  41. package/lib/api-schemas/app-lifecycle.d.ts +1148 -0
  42. package/lib/api-schemas/app-lifecycle.d.ts.map +1 -0
  43. package/lib/api-schemas/app-lifecycle.js +801 -0
  44. package/lib/api-schemas/app-lifecycle.js.map +1 -0
  45. package/lib/api-schemas/app-runtime.d.ts +10951 -0
  46. package/lib/api-schemas/app-runtime.d.ts.map +1 -0
  47. package/lib/api-schemas/app-runtime.js +874 -0
  48. package/lib/api-schemas/app-runtime.js.map +1 -0
  49. package/lib/api-schemas/apps.d.ts +271 -0
  50. package/lib/api-schemas/apps.d.ts.map +1 -0
  51. package/lib/api-schemas/apps.js +426 -0
  52. package/lib/api-schemas/apps.js.map +1 -0
  53. package/lib/api-schemas/audit-trail.d.ts +465 -0
  54. package/lib/api-schemas/audit-trail.d.ts.map +1 -0
  55. package/lib/api-schemas/audit-trail.js +218 -0
  56. package/lib/api-schemas/audit-trail.js.map +1 -0
  57. package/lib/api-schemas/bulk-operation.d.ts +104 -0
  58. package/lib/api-schemas/bulk-operation.d.ts.map +1 -0
  59. package/lib/api-schemas/bulk-operation.js +66 -0
  60. package/lib/api-schemas/bulk-operation.js.map +1 -0
  61. package/lib/api-schemas/commands.d.ts +50 -0
  62. package/lib/api-schemas/commands.d.ts.map +1 -0
  63. package/lib/api-schemas/commands.js +58 -0
  64. package/lib/api-schemas/commands.js.map +1 -0
  65. package/lib/api-schemas/content.d.ts +3565 -0
  66. package/lib/api-schemas/content.d.ts.map +1 -0
  67. package/lib/api-schemas/content.js +854 -0
  68. package/lib/api-schemas/content.js.map +1 -0
  69. package/lib/api-schemas/cost-analytics.d.ts +300 -0
  70. package/lib/api-schemas/cost-analytics.d.ts.map +1 -0
  71. package/lib/api-schemas/cost-analytics.js +218 -0
  72. package/lib/api-schemas/cost-analytics.js.map +1 -0
  73. package/lib/api-schemas/dashboard.d.ts +408 -0
  74. package/lib/api-schemas/dashboard.d.ts.map +1 -0
  75. package/lib/api-schemas/dashboard.js +311 -0
  76. package/lib/api-schemas/dashboard.js.map +1 -0
  77. package/lib/api-schemas/data-store.d.ts +1650 -0
  78. package/lib/api-schemas/data-store.d.ts.map +1 -0
  79. package/lib/api-schemas/data-store.js +504 -0
  80. package/lib/api-schemas/data-store.js.map +1 -0
  81. package/lib/api-schemas/document-processing.d.ts +1501 -0
  82. package/lib/api-schemas/document-processing.d.ts.map +1 -0
  83. package/lib/api-schemas/document-processing.js +312 -0
  84. package/lib/api-schemas/document-processing.js.map +1 -0
  85. package/lib/api-schemas/embeddings.d.ts +184 -0
  86. package/lib/api-schemas/embeddings.d.ts.map +1 -0
  87. package/lib/api-schemas/embeddings.js +102 -0
  88. package/lib/api-schemas/embeddings.js.map +1 -0
  89. package/lib/api-schemas/environment.d.ts +412 -0
  90. package/lib/api-schemas/environment.d.ts.map +1 -0
  91. package/lib/api-schemas/environment.js +170 -0
  92. package/lib/api-schemas/environment.js.map +1 -0
  93. package/lib/api-schemas/events.d.ts +4918 -0
  94. package/lib/api-schemas/events.d.ts.map +1 -0
  95. package/lib/api-schemas/events.js +888 -0
  96. package/lib/api-schemas/events.js.map +1 -0
  97. package/lib/api-schemas/files.d.ts +107 -0
  98. package/lib/api-schemas/files.d.ts.map +1 -0
  99. package/lib/api-schemas/files.js +137 -0
  100. package/lib/api-schemas/files.js.map +1 -0
  101. package/lib/api-schemas/group.d.ts +122 -0
  102. package/lib/api-schemas/group.d.ts.map +1 -0
  103. package/lib/api-schemas/group.js +142 -0
  104. package/lib/api-schemas/group.js.map +1 -0
  105. package/lib/api-schemas/index.d.ts +36 -0
  106. package/lib/api-schemas/index.d.ts.map +1 -0
  107. package/lib/api-schemas/index.js +36 -0
  108. package/lib/api-schemas/index.js.map +1 -0
  109. package/lib/api-schemas/indexing.d.ts +144 -0
  110. package/lib/api-schemas/indexing.d.ts.map +1 -0
  111. package/lib/api-schemas/indexing.js +217 -0
  112. package/lib/api-schemas/indexing.js.map +1 -0
  113. package/lib/api-schemas/integrations.d.ts +269 -0
  114. package/lib/api-schemas/integrations.d.ts.map +1 -0
  115. package/lib/api-schemas/integrations.js +335 -0
  116. package/lib/api-schemas/integrations.js.map +1 -0
  117. package/lib/api-schemas/interaction.d.ts +22456 -0
  118. package/lib/api-schemas/interaction.d.ts.map +1 -0
  119. package/lib/api-schemas/interaction.js +2071 -0
  120. package/lib/api-schemas/interaction.js.map +1 -0
  121. package/lib/api-schemas/invites.d.ts +162 -0
  122. package/lib/api-schemas/invites.d.ts.map +1 -0
  123. package/lib/api-schemas/invites.js +106 -0
  124. package/lib/api-schemas/invites.js.map +1 -0
  125. package/lib/api-schemas/oauth-server.d.ts +415 -0
  126. package/lib/api-schemas/oauth-server.d.ts.map +1 -0
  127. package/lib/api-schemas/oauth-server.js +193 -0
  128. package/lib/api-schemas/oauth-server.js.map +1 -0
  129. package/lib/api-schemas/oauth.d.ts +150 -0
  130. package/lib/api-schemas/oauth.d.ts.map +1 -0
  131. package/lib/api-schemas/oauth.js +148 -0
  132. package/lib/api-schemas/oauth.js.map +1 -0
  133. package/lib/api-schemas/parameters.d.ts +64 -0
  134. package/lib/api-schemas/parameters.d.ts.map +1 -0
  135. package/lib/api-schemas/parameters.js +246 -0
  136. package/lib/api-schemas/parameters.js.map +1 -0
  137. package/lib/api-schemas/process.d.ts +499 -0
  138. package/lib/api-schemas/process.d.ts.map +1 -0
  139. package/lib/api-schemas/process.js +817 -0
  140. package/lib/api-schemas/process.js.map +1 -0
  141. package/lib/api-schemas/project-configuration.d.ts +4900 -0
  142. package/lib/api-schemas/project-configuration.d.ts.map +1 -0
  143. package/lib/api-schemas/project-configuration.js +425 -0
  144. package/lib/api-schemas/project-configuration.js.map +1 -0
  145. package/lib/api-schemas/project.d.ts +7247 -0
  146. package/lib/api-schemas/project.d.ts.map +1 -0
  147. package/lib/api-schemas/project.js +185 -0
  148. package/lib/api-schemas/project.js.map +1 -0
  149. package/lib/api-schemas/prompt.d.ts +70 -0
  150. package/lib/api-schemas/prompt.d.ts.map +1 -0
  151. package/lib/api-schemas/prompt.js +77 -0
  152. package/lib/api-schemas/prompt.js.map +1 -0
  153. package/lib/api-schemas/quota.d.ts +90 -0
  154. package/lib/api-schemas/quota.d.ts.map +1 -0
  155. package/lib/api-schemas/quota.js +95 -0
  156. package/lib/api-schemas/quota.js.map +1 -0
  157. package/lib/api-schemas/registry.d.ts +98506 -0
  158. package/lib/api-schemas/registry.d.ts.map +1 -0
  159. package/lib/api-schemas/registry.js +2606 -0
  160. package/lib/api-schemas/registry.js.map +1 -0
  161. package/lib/api-schemas/schema-primitives.d.ts +5 -0
  162. package/lib/api-schemas/schema-primitives.d.ts.map +1 -0
  163. package/lib/api-schemas/schema-primitives.js +11 -0
  164. package/lib/api-schemas/schema-primitives.js.map +1 -0
  165. package/lib/api-schemas/secrets.d.ts +497 -0
  166. package/lib/api-schemas/secrets.d.ts.map +1 -0
  167. package/lib/api-schemas/secrets.js +298 -0
  168. package/lib/api-schemas/secrets.js.map +1 -0
  169. package/lib/api-schemas/store.d.ts +22140 -0
  170. package/lib/api-schemas/store.d.ts.map +1 -0
  171. package/lib/api-schemas/store.js +557 -0
  172. package/lib/api-schemas/store.js.map +1 -0
  173. package/lib/api-schemas/sts.d.ts +166 -0
  174. package/lib/api-schemas/sts.d.ts.map +1 -0
  175. package/lib/api-schemas/sts.js +107 -0
  176. package/lib/api-schemas/sts.js.map +1 -0
  177. package/lib/api-schemas/task.d.ts +215 -0
  178. package/lib/api-schemas/task.d.ts.map +1 -0
  179. package/lib/api-schemas/task.js +95 -0
  180. package/lib/api-schemas/task.js.map +1 -0
  181. package/lib/api-schemas/tools.d.ts +111 -0
  182. package/lib/api-schemas/tools.d.ts.map +1 -0
  183. package/lib/api-schemas/tools.js +122 -0
  184. package/lib/api-schemas/tools.js.map +1 -0
  185. package/lib/api-schemas/user.d.ts +208 -0
  186. package/lib/api-schemas/user.d.ts.map +1 -0
  187. package/lib/api-schemas/user.js +180 -0
  188. package/lib/api-schemas/user.js.map +1 -0
  189. package/lib/api-schemas/view-execution.d.ts +3163 -0
  190. package/lib/api-schemas/view-execution.d.ts.map +1 -0
  191. package/lib/api-schemas/view-execution.js +172 -0
  192. package/lib/api-schemas/view-execution.js.map +1 -0
  193. package/lib/api-schemas/views.d.ts +5990 -0
  194. package/lib/api-schemas/views.d.ts.map +1 -0
  195. package/lib/api-schemas/views.js +396 -0
  196. package/lib/api-schemas/views.js.map +1 -0
  197. package/lib/api-schemas/workflow-runs.d.ts +2210 -0
  198. package/lib/api-schemas/workflow-runs.d.ts.map +1 -0
  199. package/lib/api-schemas/workflow-runs.js +589 -0
  200. package/lib/api-schemas/workflow-runs.js.map +1 -0
  201. package/lib/apikey-values.d.ts +10 -0
  202. package/lib/apikey-values.d.ts.map +1 -0
  203. package/lib/apikey-values.js +11 -0
  204. package/lib/apikey-values.js.map +1 -0
  205. package/lib/apikey.d.ts +37 -36
  206. package/lib/apikey.d.ts.map +1 -1
  207. package/lib/apikey.js +5 -4
  208. package/lib/apikey.js.map +1 -1
  209. package/lib/apps.d.ts +142 -1172
  210. package/lib/apps.d.ts.map +1 -1
  211. package/lib/apps.js +4 -0
  212. package/lib/apps.js.map +1 -1
  213. package/lib/ask-user.d.ts +8 -1
  214. package/lib/ask-user.d.ts.map +1 -1
  215. package/lib/audit-trail.d.ts +20 -131
  216. package/lib/audit-trail.d.ts.map +1 -1
  217. package/lib/audit-trail.js.map +1 -1
  218. package/lib/browser-credentials.d.ts +11 -106
  219. package/lib/browser-credentials.d.ts.map +1 -1
  220. package/lib/common.d.ts +59 -81
  221. package/lib/common.d.ts.map +1 -1
  222. package/lib/cost-analytics.d.ts +14 -167
  223. package/lib/cost-analytics.d.ts.map +1 -1
  224. package/lib/cost-analytics.js.map +1 -1
  225. package/lib/data-platform.d.ts +122 -786
  226. package/lib/data-platform.d.ts.map +1 -1
  227. package/lib/data-platform.js +41 -61
  228. package/lib/data-platform.js.map +1 -1
  229. package/lib/email.d.ts +5 -17
  230. package/lib/email.d.ts.map +1 -1
  231. package/lib/email.js +0 -3
  232. package/lib/email.js.map +1 -1
  233. package/lib/embeddings.d.ts +14 -56
  234. package/lib/embeddings.d.ts.map +1 -1
  235. package/lib/environment.d.ts +22 -118
  236. package/lib/environment.d.ts.map +1 -1
  237. package/lib/environment.js +3 -0
  238. package/lib/environment.js.map +1 -1
  239. package/lib/facets.d.ts +4 -7
  240. package/lib/facets.d.ts.map +1 -1
  241. package/lib/group.d.ts +33 -39
  242. package/lib/group.d.ts.map +1 -1
  243. package/lib/group.js +0 -1
  244. package/lib/group.js.map +1 -1
  245. package/lib/index.d.ts +8 -0
  246. package/lib/index.d.ts.map +1 -1
  247. package/lib/index.js +1 -0
  248. package/lib/index.js.map +1 -1
  249. package/lib/integrations.d.ts +20 -108
  250. package/lib/integrations.d.ts.map +1 -1
  251. package/lib/integrations.js.map +1 -1
  252. package/lib/interaction-values.d.ts +11 -0
  253. package/lib/interaction-values.d.ts.map +1 -0
  254. package/lib/interaction-values.js +24 -0
  255. package/lib/interaction-values.js.map +1 -0
  256. package/lib/interaction.d.ts +88 -778
  257. package/lib/interaction.d.ts.map +1 -1
  258. package/lib/interaction.js +8 -12
  259. package/lib/interaction.js.map +1 -1
  260. package/lib/meters.d.ts +11 -7
  261. package/lib/meters.d.ts.map +1 -1
  262. package/lib/meters.js.map +1 -1
  263. package/lib/oauth-server.d.ts +33 -119
  264. package/lib/oauth-server.d.ts.map +1 -1
  265. package/lib/oauth.d.ts +14 -96
  266. package/lib/oauth.d.ts.map +1 -1
  267. package/lib/oauth.js +0 -4
  268. package/lib/oauth.js.map +1 -1
  269. package/lib/payload.d.ts +15 -38
  270. package/lib/payload.d.ts.map +1 -1
  271. package/lib/platform-event-validation.d.ts.map +1 -1
  272. package/lib/platform-event-validation.js +15 -2
  273. package/lib/platform-event-validation.js.map +1 -1
  274. package/lib/platform-event.d.ts +79 -464
  275. package/lib/platform-event.d.ts.map +1 -1
  276. package/lib/platform-event.js.map +1 -1
  277. package/lib/principal-context.d.ts +10 -15
  278. package/lib/principal-context.d.ts.map +1 -1
  279. package/lib/project-values.d.ts +24 -0
  280. package/lib/project-values.d.ts.map +1 -0
  281. package/lib/project-values.js +42 -0
  282. package/lib/project-values.js.map +1 -0
  283. package/lib/project.d.ts +56 -504
  284. package/lib/project.d.ts.map +1 -1
  285. package/lib/project.js +6 -76
  286. package/lib/project.js.map +1 -1
  287. package/lib/prompt.d.ts +20 -51
  288. package/lib/prompt.d.ts.map +1 -1
  289. package/lib/prompt.js.map +1 -1
  290. package/lib/query.d.ts +27 -88
  291. package/lib/query.d.ts.map +1 -1
  292. package/lib/rate-limiter.d.ts +19 -70
  293. package/lib/rate-limiter.d.ts.map +1 -1
  294. package/lib/rate-limiter.js +0 -3
  295. package/lib/rate-limiter.js.map +1 -1
  296. package/lib/refs.d.ts +3 -11
  297. package/lib/refs.d.ts.map +1 -1
  298. package/lib/refs.js.map +1 -1
  299. package/lib/roles/types.d.ts +14 -20
  300. package/lib/roles/types.d.ts.map +1 -1
  301. package/lib/roles/types.js +5 -9
  302. package/lib/roles/types.js.map +1 -1
  303. package/lib/runs.d.ts +6 -25
  304. package/lib/runs.d.ts.map +1 -1
  305. package/lib/schema-for-extraction.js.map +1 -1
  306. package/lib/secrets.d.ts +20 -105
  307. package/lib/secrets.d.ts.map +1 -1
  308. package/lib/store/agent-approval.d.ts +6 -15
  309. package/lib/store/agent-approval.d.ts.map +1 -1
  310. package/lib/store/agent-approval.js.map +1 -1
  311. package/lib/store/agent-run.d.ts +57 -358
  312. package/lib/store/agent-run.d.ts.map +1 -1
  313. package/lib/store/collections.d.ts +11 -63
  314. package/lib/store/collections.d.ts.map +1 -1
  315. package/lib/store/collections.js.map +1 -1
  316. package/lib/store/conversation-state.d.ts +61 -61
  317. package/lib/store/conversation-state.d.ts.map +1 -1
  318. package/lib/store/conversation-state.js +2 -0
  319. package/lib/store/conversation-state.js.map +1 -1
  320. package/lib/store/doc-analyzer.d.ts +9 -32
  321. package/lib/store/doc-analyzer.d.ts.map +1 -1
  322. package/lib/store/dsl-workflow.d.ts +37 -151
  323. package/lib/store/dsl-workflow.d.ts.map +1 -1
  324. package/lib/store/dsl-workflow.js.map +1 -1
  325. package/lib/store/editing-policy-schema.generated.d.ts +3 -0
  326. package/lib/store/editing-policy-schema.generated.d.ts.map +1 -0
  327. package/lib/store/editing-policy-schema.generated.js +28 -0
  328. package/lib/store/editing-policy-schema.generated.js.map +1 -0
  329. package/lib/store/grounded-extraction.d.ts +7 -104
  330. package/lib/store/grounded-extraction.d.ts.map +1 -1
  331. package/lib/store/grounded-extraction.js.map +1 -1
  332. package/lib/store/index.d.ts +2 -0
  333. package/lib/store/index.d.ts.map +1 -1
  334. package/lib/store/index.js +3 -0
  335. package/lib/store/index.js.map +1 -1
  336. package/lib/store/intake-policy-schema.generated.d.ts +3 -0
  337. package/lib/store/intake-policy-schema.generated.d.ts.map +1 -0
  338. package/lib/store/intake-policy-schema.generated.js +1425 -0
  339. package/lib/store/intake-policy-schema.generated.js.map +1 -0
  340. package/lib/store/process-schema.d.ts +81 -1
  341. package/lib/store/process-schema.d.ts.map +1 -1
  342. package/lib/store/process-schema.js +79 -0
  343. package/lib/store/process-schema.js.map +1 -1
  344. package/lib/store/process-validation.d.ts.map +1 -1
  345. package/lib/store/process-validation.js +70 -2
  346. package/lib/store/process-validation.js.map +1 -1
  347. package/lib/store/process.d.ts +36 -125
  348. package/lib/store/process.d.ts.map +1 -1
  349. package/lib/store/process.js.map +1 -1
  350. package/lib/store/rendering.d.ts +9 -64
  351. package/lib/store/rendering.d.ts.map +1 -1
  352. package/lib/store/rendering.js.map +1 -1
  353. package/lib/store/schedule.d.ts +6 -6
  354. package/lib/store/schedule.d.ts.map +1 -1
  355. package/lib/store/store.d.ts +99 -701
  356. package/lib/store/store.d.ts.map +1 -1
  357. package/lib/store/store.js +4 -456
  358. package/lib/store/store.js.map +1 -1
  359. package/lib/store/task.d.ts +15 -59
  360. package/lib/store/task.d.ts.map +1 -1
  361. package/lib/store/task.js +0 -3
  362. package/lib/store/task.js.map +1 -1
  363. package/lib/store/workflow.d.ts +58 -516
  364. package/lib/store/workflow.d.ts.map +1 -1
  365. package/lib/store/workflow.js +31 -11
  366. package/lib/store/workflow.js.map +1 -1
  367. package/lib/sts-errors.d.ts +7 -0
  368. package/lib/sts-errors.d.ts.map +1 -0
  369. package/lib/sts-errors.js +11 -0
  370. package/lib/sts-errors.js.map +1 -0
  371. package/lib/sts-token-types.d.ts +13 -66
  372. package/lib/sts-token-types.d.ts.map +1 -1
  373. package/lib/sts-token-types.js.map +1 -1
  374. package/lib/tools.d.ts +8 -100
  375. package/lib/tools.d.ts.map +1 -1
  376. package/lib/transient-tokens-values.d.ts +11 -0
  377. package/lib/transient-tokens-values.d.ts.map +1 -0
  378. package/lib/transient-tokens-values.js +12 -0
  379. package/lib/transient-tokens-values.js.map +1 -0
  380. package/lib/transient-tokens.d.ts +15 -13
  381. package/lib/transient-tokens.d.ts.map +1 -1
  382. package/lib/transient-tokens.js +5 -5
  383. package/lib/transient-tokens.js.map +1 -1
  384. package/lib/user.d.ts +55 -156
  385. package/lib/user.d.ts.map +1 -1
  386. package/lib/user.js +2 -79
  387. package/lib/user.js.map +1 -1
  388. package/lib/versions.d.ts +34 -1
  389. package/lib/versions.d.ts.map +1 -1
  390. package/lib/versions.js +33 -0
  391. package/lib/versions.js.map +1 -1
  392. package/lib/vertesia-common.js +6 -2
  393. package/lib/vertesia-common.js.map +1 -1
  394. package/lib/view-configuration-validation.js.map +1 -1
  395. package/lib/view-query-validation.js.map +1 -1
  396. package/lib/view-validation-helpers.d.ts +1 -1
  397. package/lib/view-validation-helpers.d.ts.map +1 -1
  398. package/lib/views-schema.d.ts +51 -51
  399. package/lib/views-schema.d.ts.map +1 -1
  400. package/lib/views-validation.js.map +1 -1
  401. package/lib/views.d.ts +58 -314
  402. package/lib/views.d.ts.map +1 -1
  403. package/lib/views.js.map +1 -1
  404. package/lib/workflow-analytics.d.ts +10 -3
  405. package/lib/workflow-analytics.d.ts.map +1 -1
  406. package/package.json +14 -5
  407. package/src/access-control-values.ts +113 -0
  408. package/src/access-control.ts +33 -138
  409. package/src/account-values.ts +95 -0
  410. package/src/analytics.ts +18 -42
  411. package/src/api-schemas/access-control.contract.test.ts +209 -0
  412. package/src/api-schemas/access-control.ts +208 -0
  413. package/src/api-schemas/account.contract.test.ts +318 -0
  414. package/src/api-schemas/account.ts +150 -0
  415. package/src/api-schemas/adapter-edge-cases.test.ts +480 -0
  416. package/src/api-schemas/adapter.ts +778 -0
  417. package/src/api-schemas/agent-runs.ts +1091 -0
  418. package/src/api-schemas/analytics.ts +65 -0
  419. package/src/api-schemas/apikey.contract.test.ts +270 -0
  420. package/src/api-schemas/apikey.ts +199 -0
  421. package/src/api-schemas/app-delete-summary.contract.test.ts +67 -0
  422. package/src/api-schemas/app-lifecycle.ts +900 -0
  423. package/src/api-schemas/app-runtime.ts +1022 -0
  424. package/src/api-schemas/apps.ts +484 -0
  425. package/src/api-schemas/audit-trail.ts +243 -0
  426. package/src/api-schemas/bulk-operation.contract.test.ts +39 -0
  427. package/src/api-schemas/bulk-operation.ts +75 -0
  428. package/src/api-schemas/bundle-isolation.test.ts +80 -0
  429. package/src/api-schemas/commands.contract.test.ts +51 -0
  430. package/src/api-schemas/commands.ts +62 -0
  431. package/src/api-schemas/content.ts +952 -0
  432. package/src/api-schemas/cost-analytics.contract.test.ts +64 -0
  433. package/src/api-schemas/cost-analytics.ts +235 -0
  434. package/src/api-schemas/dashboard.contract.test.ts +127 -0
  435. package/src/api-schemas/dashboard.ts +351 -0
  436. package/src/api-schemas/data-store.contract.test.ts +91 -0
  437. package/src/api-schemas/data-store.ts +571 -0
  438. package/src/api-schemas/document-processing.contract.test.ts +76 -0
  439. package/src/api-schemas/document-processing.ts +344 -0
  440. package/src/api-schemas/embeddings.ts +113 -0
  441. package/src/api-schemas/environment.contract.test.ts +184 -0
  442. package/src/api-schemas/environment.ts +190 -0
  443. package/src/api-schemas/events.ts +981 -0
  444. package/src/api-schemas/files.ts +159 -0
  445. package/src/api-schemas/group.contract.test.ts +205 -0
  446. package/src/api-schemas/group.ts +155 -0
  447. package/src/api-schemas/index.ts +35 -0
  448. package/src/api-schemas/indexing.contract.test.ts +83 -0
  449. package/src/api-schemas/indexing.ts +234 -0
  450. package/src/api-schemas/integrations.ts +369 -0
  451. package/src/api-schemas/interaction.contract.test.ts +27 -0
  452. package/src/api-schemas/interaction.ts +2364 -0
  453. package/src/api-schemas/invites.contract.test.ts +268 -0
  454. package/src/api-schemas/invites.ts +127 -0
  455. package/src/api-schemas/llumiverse.contract.test.ts +108 -0
  456. package/src/api-schemas/mcp-api-key.contract.test.ts +86 -0
  457. package/src/api-schemas/oauth-server.ts +219 -0
  458. package/src/api-schemas/oauth.contract.test.ts +118 -0
  459. package/src/api-schemas/oauth.ts +166 -0
  460. package/src/api-schemas/parameters.test.ts +402 -0
  461. package/src/api-schemas/parameters.ts +310 -0
  462. package/src/api-schemas/process.ts +929 -0
  463. package/src/api-schemas/project-configuration.ts +478 -0
  464. package/src/api-schemas/project.contract.test.ts +365 -0
  465. package/src/api-schemas/project.ts +214 -0
  466. package/src/api-schemas/prompt.ts +88 -0
  467. package/src/api-schemas/pruning-limits.test.ts +189 -0
  468. package/src/api-schemas/quota.contract.test.ts +147 -0
  469. package/src/api-schemas/quota.ts +122 -0
  470. package/src/api-schemas/registry-groups.test.ts +91 -0
  471. package/src/api-schemas/registry.ts +3512 -0
  472. package/src/api-schemas/response-pruning.test.ts +260 -0
  473. package/src/api-schemas/schema-primitives.ts +12 -0
  474. package/src/api-schemas/secrets.ts +332 -0
  475. package/src/api-schemas/store.contract.test.ts +471 -0
  476. package/src/api-schemas/store.ts +604 -0
  477. package/src/api-schemas/sts.contract.test.ts +112 -0
  478. package/src/api-schemas/sts.ts +123 -0
  479. package/src/api-schemas/task.ts +104 -0
  480. package/src/api-schemas/tools.ts +140 -0
  481. package/src/api-schemas/user.contract.test.ts +191 -0
  482. package/src/api-schemas/user.ts +204 -0
  483. package/src/api-schemas/view-execution.ts +200 -0
  484. package/src/api-schemas/views.ts +437 -0
  485. package/src/api-schemas/workflow-runs.ts +653 -0
  486. package/src/apikey-values.ts +10 -0
  487. package/src/apikey.ts +49 -40
  488. package/src/apps.test.ts +82 -0
  489. package/src/apps.ts +283 -1228
  490. package/src/ask-user.ts +9 -1
  491. package/src/audit-trail.ts +45 -137
  492. package/src/browser-credentials.ts +21 -106
  493. package/src/common.ts +67 -78
  494. package/src/cost-analytics.ts +37 -176
  495. package/src/data-platform.ts +205 -776
  496. package/src/email.ts +5 -17
  497. package/src/embeddings.ts +22 -60
  498. package/src/environment.ts +52 -126
  499. package/src/facets.ts +4 -7
  500. package/src/group.ts +38 -42
  501. package/src/index.ts +12 -0
  502. package/src/integrations.ts +39 -129
  503. package/src/interaction-values.ts +23 -0
  504. package/src/interaction.ts +162 -902
  505. package/src/meters.ts +11 -7
  506. package/src/oauth-server.ts +58 -127
  507. package/src/oauth.ts +24 -108
  508. package/src/payload.ts +25 -40
  509. package/src/platform-event-validation.test.ts +26 -0
  510. package/src/platform-event-validation.ts +15 -2
  511. package/src/platform-event.ts +141 -484
  512. package/src/principal-context.ts +11 -15
  513. package/src/project-values.ts +41 -0
  514. package/src/project.ts +116 -588
  515. package/src/prompt.ts +34 -61
  516. package/src/query.ts +34 -93
  517. package/src/rate-limiter.ts +27 -75
  518. package/src/refs.ts +4 -11
  519. package/src/roles/types.ts +20 -20
  520. package/src/runs.ts +11 -24
  521. package/src/secrets.ts +38 -117
  522. package/src/store/agent-approval.ts +9 -14
  523. package/src/store/agent-run.ts +93 -450
  524. package/src/store/collections.ts +21 -63
  525. package/src/store/content-type-editing.test.ts +1 -1
  526. package/src/store/conversation-state.ts +75 -64
  527. package/src/store/doc-analyzer.ts +17 -33
  528. package/src/store/dsl-workflow.ts +62 -158
  529. package/src/store/editing-policy-schema.generated.ts +30 -0
  530. package/src/store/grounded-extraction.ts +13 -104
  531. package/src/store/index.ts +3 -0
  532. package/src/store/intake-policy-schema.generated.ts +1442 -0
  533. package/src/store/process-schema.test.ts +43 -0
  534. package/src/store/process-schema.ts +79 -0
  535. package/src/store/process-validation.test.ts +141 -0
  536. package/src/store/process-validation.ts +82 -2
  537. package/src/store/process.ts +70 -146
  538. package/src/store/rendering.ts +15 -64
  539. package/src/store/store.ts +197 -1204
  540. package/src/store/task.ts +25 -59
  541. package/src/store/workflow.ts +103 -554
  542. package/src/sts-errors.ts +13 -0
  543. package/src/sts-token-types.ts +26 -75
  544. package/src/tools.ts +18 -97
  545. package/src/transient-tokens-values.ts +11 -0
  546. package/src/transient-tokens.ts +16 -13
  547. package/src/user.ts +75 -215
  548. package/src/versions.test.ts +13 -0
  549. package/src/versions.ts +36 -0
  550. package/src/views-schema.test.ts +9 -1
  551. package/src/views.ts +106 -329
  552. package/src/workflow-analytics.ts +10 -3
@@ -0,0 +1,3512 @@
1
+ // Imported from llumiverse rather than restated here. These components describe llumiverse's own
2
+ // types, and a second declaration in this repository would create an independent source of truth.
3
+ // They have no local `./*.ts` module because there is nothing local to declare.
4
+ import {
5
+ AIModelArraySchema,
6
+ AIModelSchema,
7
+ AIModelStatusSchema,
8
+ CompletionResultSchema,
9
+ DataSourceSchema,
10
+ EmbeddingOutputSchema,
11
+ EmbeddingResultItemSchema,
12
+ EmbeddingsResultSchema,
13
+ EmbeddingsTokenUsageSchema,
14
+ EmbeddingTaskTypeSchema,
15
+ ExecutionTokenUsageSchema,
16
+ HttpTimeoutOptionsSchema,
17
+ ImageResultSchema,
18
+ JSONObjectSchema,
19
+ JSONSchemaSchema,
20
+ JSONValueSchema,
21
+ JsonResultSchema,
22
+ ModalitiesSchema,
23
+ ModelOptionsSchema,
24
+ ModelSearchPayloadSchema,
25
+ ModelTypeSchema,
26
+ PromptRoleSchema,
27
+ PromptSegmentSchema,
28
+ StatelessExecutionOptionsSchema,
29
+ TextResultSchema,
30
+ ToolDefinitionSchema,
31
+ ToolUseSchema,
32
+ } from '@llumiverse/common/schemas';
33
+ import type { ValidateFunction } from 'ajv/dist/2020.js';
34
+ import { Ajv2020 } from 'ajv/dist/2020.js';
35
+ import ajvFormats from 'ajv-formats';
36
+ import { z } from 'zod';
37
+ import type {
38
+ CreateEventSubscriptionPayload,
39
+ EventDeliveryTarget,
40
+ EventDeliveryTargetInput,
41
+ EventSubscription,
42
+ EventSubscriptionMutationResponse,
43
+ ProcessEventDeliveryTarget,
44
+ UpdateEventSubscriptionPayload,
45
+ } from '../platform-event.js';
46
+ import type {
47
+ AgentRunInternals,
48
+ AgentRunResponse,
49
+ BindRunWorkflowPayload,
50
+ ListAgentRunsResponse,
51
+ ProgrammaticRunResponse,
52
+ RecordRunPayload,
53
+ SupervisedRunResponse,
54
+ UpdateAgentRunStatusPayload,
55
+ } from '../store/agent-run.js';
56
+ import type * as DSLWorkflowTypes from '../store/dsl-workflow.js';
57
+ import type {
58
+ DSLChildWorkflowStep,
59
+ DSLWorkflowDefinition,
60
+ DSLWorkflowDefinitionResponse,
61
+ DSLWorkflowSpec,
62
+ DSLWorkflowSpecWithSteps,
63
+ DSLWorkflowStep,
64
+ } from '../store/dsl-workflow.js';
65
+ import type {
66
+ BranchNodeBranchDefinition,
67
+ CreateProcessDefinitionPayload,
68
+ NodeDefinition,
69
+ ProcessDefinition,
70
+ ProcessDefinitionBody,
71
+ UpdateProcessDefinitionPayload,
72
+ } from '../store/process.js';
73
+ import type { ViewNavigationNode } from '../views.js';
74
+ import {
75
+ ACECreatePayloadSchema,
76
+ ACEUpdatePayloadSchema,
77
+ AccessControlEntryArraySchema,
78
+ AccessControlEntrySchema,
79
+ RoleDefinitionArraySchema,
80
+ SystemRoleDefinitionArraySchema,
81
+ } from './access-control.js';
82
+ import { AccountSchema, StripeBillingStatusResponseSchema, UpdateAccountPayloadSchema } from './account.js';
83
+ import { findUnprunablePaths, type JsonObject, pruneToSchema, toOpenApiComponents } from './adapter.js';
84
+ import * as AgentRunSchemas from './agent-runs.js';
85
+ import {
86
+ AnalyticsAxisSchema,
87
+ RunAnalyticsGroupBySchema,
88
+ RunAnalyticsQuerySchema,
89
+ RunAnalyticsResultArraySchema,
90
+ RunAnalyticsResultSchema,
91
+ TimeResolutionSchema,
92
+ } from './analytics.js';
93
+ import {
94
+ ApiKeyArraySchema,
95
+ ApiKeyListQuerySchema,
96
+ ApiKeyReadQuerySchema,
97
+ ApiKeyReadResponseSchema,
98
+ ApiKeySchema,
99
+ ApiKeyWithValueSchema,
100
+ AuthTokenResponseSchema,
101
+ CreateApiKeyPayloadSchema,
102
+ DeleteOperationResultSchema,
103
+ ProjectRefArraySchema,
104
+ UpdateApiKeyPayloadSchema,
105
+ } from './apikey.js';
106
+ import {
107
+ AgentRunSearchHitSchema,
108
+ AgentRunStatusSchema,
109
+ AgentRunTypeSchema,
110
+ AgentToolApprovalClassSchema,
111
+ AgentToolDefinitionSchema,
112
+ AppApiKeyCollectionParamsSchema,
113
+ AppBuildProgressSchema,
114
+ AppBuildProgressStatusSchema,
115
+ AppBuildTriggerSchema,
116
+ AppDeleteSummarySchema,
117
+ AppDevelopmentTaskDetailsSchema,
118
+ AppDevelopmentTaskListSchema,
119
+ AppDevelopmentTaskSchema,
120
+ AppInspectionCapabilityReportSchema,
121
+ AppInspectionIssueSchema,
122
+ AppInspectionResultSchema,
123
+ AppInstallationKindSchema,
124
+ AppInstallationOAuthBindingSchema,
125
+ AppInstallationPayloadSchema,
126
+ AppInstallationProjectsQuerySchema,
127
+ AppInstallationProviderBindingSchema,
128
+ AppInstallationsQuerySchema,
129
+ AppOAuthCollectionParamsSchema,
130
+ AppOAuthProviderParamsSchema,
131
+ AppPackageScopeSchema,
132
+ AppRepoBranchSchema,
133
+ AppRepoCommitSchema,
134
+ AppRepoCommitsSchema,
135
+ AppRepoDocumentCommitSchema,
136
+ AppRepoRefSchema,
137
+ AppRepoRefsSchema,
138
+ AppRepoTreeEntrySchema,
139
+ AppRepoTreeSchema,
140
+ AppScaffoldModuleSchema,
141
+ AppScaffoldProgressSchema,
142
+ AppScaffoldProgressStatusSchema,
143
+ AppToolCollectionArraySchema,
144
+ AppToolCollectionSchema,
145
+ AppVersionGitRefTypeSchema,
146
+ AppVersionGitSourceSchema,
147
+ AppVersionKindSchema,
148
+ AppVersionRecordArraySchema,
149
+ AppVersionRecordSchema,
150
+ AppVersionStateSchema,
151
+ AppVersionStorageSchema,
152
+ AppVersionTargetSchema,
153
+ AppVersionUrlsSchema,
154
+ ContentObjectTypeRefSchema,
155
+ ConversationActivityStateSchema,
156
+ DeleteAppVersionResponseSchema,
157
+ EventRefSchema,
158
+ Extract_AppVersionGitRefType_branch_tag_commitSchema,
159
+ InCodeTypeRefSchema,
160
+ McpApiKeyCredentialSchema,
161
+ OAuthClientCredentialsMapSchema,
162
+ OAuthClientCredentialsSchema,
163
+ RunKindSchema,
164
+ RunTypeSchema,
165
+ StartAppBuildRequestSchema,
166
+ StartAppBuildResponseSchema,
167
+ StartAppScaffoldRequestSchema,
168
+ StartAppScaffoldResponseSchema,
169
+ StoredTypeRefSchema,
170
+ SystemPackageQuerySchema,
171
+ UpdateAppInstallationToolAllowlistPayloadSchema,
172
+ UpsertAppVersionRequestSchema,
173
+ ValidateUrlRequestSchema,
174
+ ValidateUrlResponseSchema,
175
+ } from './app-lifecycle.js';
176
+ import * as AppRuntimeSchemas from './app-runtime.js';
177
+ import {
178
+ AppAccessControlSchema,
179
+ AppCapabilitiesSchema,
180
+ AppManifestSourceSchema,
181
+ AppSourceConfigSchema,
182
+ AppUIConfigSchema,
183
+ MCPToolAnnotationsSchema,
184
+ McpApiKeyStatusSchema,
185
+ McpOAuthConnectResponseSchema,
186
+ McpOAuthDisconnectResponseSchema,
187
+ McpOAuthTokenRequestSchema,
188
+ McpOAuthTokenResponseSchema,
189
+ OAuthAuthorizeResponseSchema,
190
+ OAuthAuthStatusArraySchema,
191
+ OAuthAuthStatusSchema,
192
+ OAuthMetadataResponseSchema,
193
+ SetMcpApiKeyRequestSchema,
194
+ ToolCollectionObjectSchema,
195
+ } from './apps.js';
196
+ import {
197
+ AuditActionSchema,
198
+ AuditAggregationDetailFieldSchema,
199
+ AuditAggregationDetailFilterSchema,
200
+ AuditAggregationDimensionMapSchema,
201
+ AuditAggregationDimensionSchema,
202
+ AuditAggregationDistinctFieldSchema,
203
+ AuditAggregationFilterSchema,
204
+ AuditAggregationGroupSchema,
205
+ AuditAggregationMetricSchema,
206
+ AuditAggregationOperationSchema,
207
+ AuditAggregationQuerySchema,
208
+ AuditAggregationResolutionSchema,
209
+ AuditAggregationResponseSchema,
210
+ AuditAggregationRowSchema,
211
+ AuditMeterSchema,
212
+ AuditTrailEventSchema,
213
+ AuditTrailQuerySchema,
214
+ AuditTrailResponseSchema,
215
+ EventCategorySchema,
216
+ KnownAuditActionSchema,
217
+ } from './audit-trail.js';
218
+ import {
219
+ BulkObjectCreateResultSchema,
220
+ BulkObjectDeleteResultSchema,
221
+ BulkObjectUpdateResultSchema,
222
+ BulkOperationPayloadSchema,
223
+ BulkOperationResponseSchema,
224
+ BulkOperationResultSchema,
225
+ } from './bulk-operation.js';
226
+ import {
227
+ DeleteCountResultSchema,
228
+ GenericCommandResponseSchema,
229
+ MigrationListResponseSchema,
230
+ RunMigrationPayloadSchema,
231
+ RunMigrationResponseSchema,
232
+ } from './commands.js';
233
+ import * as ContentSchemas from './content.js';
234
+ import {
235
+ CostAnalyticsQuerySchema,
236
+ CostAnalyticsResponseSchema,
237
+ CostByDimensionSchema,
238
+ CostExportQuerySchema,
239
+ CostModelPricesQuerySchema,
240
+ CostRunPriceQuerySchema,
241
+ CostRunPriceResponseSchema,
242
+ CostSummarySchema,
243
+ CostTimeSeriesPointSchema,
244
+ ModelPriceComparisonResponseSchema,
245
+ ModelPriceComparisonSchema,
246
+ ModelPricingSchema,
247
+ PricingSyncDayResultSchema,
248
+ PricingSyncPayloadSchema,
249
+ PricingSyncResultSchema,
250
+ } from './cost-analytics.js';
251
+ import {
252
+ CreateDashboardPayloadSchema,
253
+ CreateDashboardSnapshotPayloadSchema,
254
+ DashboardArchiveResultSchema,
255
+ DashboardBulkArchiveResultSchema,
256
+ DashboardBulkDeleteResultSchema,
257
+ DashboardDataSourceSchema,
258
+ DashboardElasticsearchDslSchema,
259
+ DashboardElasticsearchResultMappingSchema,
260
+ DashboardItemArraySchema,
261
+ DashboardItemSchema,
262
+ DashboardLayoutSchema,
263
+ DashboardPanelPositionSchema,
264
+ DashboardPanelSchema,
265
+ DashboardQuerySchema,
266
+ DashboardSchema,
267
+ DashboardSqlDataSourceSchema,
268
+ DashboardStatusSchema,
269
+ DashboardStoreElasticsearchDataSourceSchema,
270
+ DashboardVersionItemArraySchema,
271
+ DashboardVersionItemSchema,
272
+ DashboardVersioningPayloadSchema,
273
+ DashboardVersioningStatusResponseSchema,
274
+ DashboardVersionSchema,
275
+ PromoteDashboardVersionPayloadSchema,
276
+ StringArrayMapSchema,
277
+ UpdateDashboardPayloadSchema,
278
+ } from './dashboard.js';
279
+ import {
280
+ AlterTableOperationSchema,
281
+ AlterTablePayloadSchema,
282
+ BatchQueryPayloadSchema,
283
+ BatchQueryResultItemSchema,
284
+ BatchQueryResultSchema,
285
+ CreateDataStorePayloadSchema,
286
+ CreateSnapshotPayloadSchema,
287
+ CreateTablePayloadSchema,
288
+ CreateTablesPayloadSchema,
289
+ DataColumnForAIMapSchema,
290
+ DataColumnForAISchema,
291
+ DataColumnSchema,
292
+ DataColumnTypeSchema,
293
+ DataColumnUpdateSchema,
294
+ DataForeignKeyForAISchema,
295
+ DataForeignKeySchema,
296
+ DataIndexSchema,
297
+ DataRelationshipForAISchema,
298
+ DataRelationshipSchema,
299
+ DataRelationshipTypeSchema,
300
+ DataSchemaForAISchema,
301
+ DataSchemaSchema,
302
+ DataStoreArchiveResultSchema,
303
+ DataStoreDownloadInfoSchema,
304
+ DataStoreFullSchemaResponseSchema,
305
+ DataStoreItemArraySchema,
306
+ DataStoreItemSchema,
307
+ DataStoreMutateRowsPayloadSchema,
308
+ DataStoreMutateRowsResultSchema,
309
+ DataStoreSchema,
310
+ DataStoreSchemaResponseSchema,
311
+ DataStoreStatusSchema,
312
+ DataStoreTableDetailSchema,
313
+ DataStoreTableDropResultSchema,
314
+ DataStoreVersionArraySchema,
315
+ DataStoreVersionSchema,
316
+ DataStoreVersionTableStateMapSchema,
317
+ DataStoreVersionTableStateSchema,
318
+ DataTableArraySchema,
319
+ DataTableForAIMapSchema,
320
+ DataTableForAISchema,
321
+ DataTableSchema,
322
+ DataTableSemanticTypeSchema,
323
+ DataTableSummaryArraySchema,
324
+ DataTableSummarySchema,
325
+ GetDataStoreTableQuerySchema,
326
+ ImportDataFormatSchema,
327
+ ImportDataPayloadSchema,
328
+ ImportDataSourceSchema,
329
+ ImportJobSchema,
330
+ ImportStatusSchema,
331
+ ImportTableDataMapSchema,
332
+ ImportTableDataSchema,
333
+ ListDataStoreVersionsQuerySchema,
334
+ QueryPayloadSchema,
335
+ QueryResultColumnSchema,
336
+ QueryResultSchema,
337
+ QueryValidationErrorSchema,
338
+ QueryValidationPayloadSchema,
339
+ QueryValidationResultSchema,
340
+ SemanticColumnTypeSchema,
341
+ UpdateSchemaPayloadSchema,
342
+ } from './data-store.js';
343
+ import {
344
+ DocAnalyzeRunStatusResponseSchema,
345
+ DocAnalyzerProgressSchema,
346
+ DocAnalyzerProgressStatusSchema,
347
+ DocProcessorOutputFormatSchema,
348
+ DocumentPrepOptionsSchema,
349
+ DocumentProcessingPhaseSchema,
350
+ GroundedAssistantResponseSchema,
351
+ GroundedExtractionRequestSchema,
352
+ GroundedExtractionResultResponseSchema,
353
+ GroundedExtractionVerdictSchema,
354
+ GroundedVerificationBreakdownSchema,
355
+ MarkdownRenditionFormatSchema,
356
+ PdfRenderingMetadataSchema,
357
+ RenderMarkdownPayloadSchema,
358
+ RenderMarkdownStartResponseSchema,
359
+ RenderMarkdownStatusQuerySchema,
360
+ RenderMarkdownStatusResponseSchema,
361
+ WorkflowExecutionStatusSchema,
362
+ } from './document-processing.js';
363
+ import {
364
+ EmbeddingsApiAudioInputSchema,
365
+ EmbeddingsApiImageInputSchema,
366
+ EmbeddingsApiInputSchema,
367
+ EmbeddingsApiRequestSchema,
368
+ EmbeddingsApiSourceSchema,
369
+ EmbeddingsApiTextInputSchema,
370
+ EmbeddingsApiVideoInputSchema,
371
+ EmbeddingsStatusResponseSchema,
372
+ ProjectConfigurationEmbeddingEnablePayloadSchema,
373
+ } from './embeddings.js';
374
+ import {
375
+ EnableEnvironmentModelPayloadSchema,
376
+ ExecutionEnvironmentArraySchema,
377
+ ExecutionEnvironmentConfigUpdatePayloadSchema,
378
+ ExecutionEnvironmentCreatePayloadSchema,
379
+ ExecutionEnvironmentRefSchema,
380
+ ExecutionEnvironmentSchema,
381
+ ExecutionEnvironmentSettingsSchema,
382
+ ExecutionEnvironmentUpdatePayloadSchema,
383
+ ListEnvironmentsQuerySchema,
384
+ LoadBalancingEnvConfigSchema,
385
+ LoadBalancingEnvEntryConfigSchema,
386
+ MediatorEnvConfigSchema,
387
+ MigrateInteractionsPayloadSchema,
388
+ MigrateInteractionsResultSchema,
389
+ SupportedProvidersSchema,
390
+ VirtualEnvEntrySchema,
391
+ } from './environment.js';
392
+ import * as EventSchemas from './events.js';
393
+ import {
394
+ BucketReadAccessQuerySchema,
395
+ BucketReadAccessStatusResponseSchema,
396
+ BulkUploadUrlsPayloadSchema,
397
+ BulkUploadUrlsResponseSchema,
398
+ CopyFilePayloadSchema,
399
+ CopyFileResponseSchema,
400
+ DeleteFileResultSchema,
401
+ EnsureBucketReadAccessPayloadSchema,
402
+ EnsureBucketReadAccessResponseSchema,
403
+ FileBucketResponseSchema,
404
+ FileDeleteQuerySchema,
405
+ FileListQuerySchema,
406
+ FileListResponseSchema,
407
+ FileMetadataQuerySchema,
408
+ FileMetadataResponseSchema,
409
+ FileMetadataUpdateResultSchema,
410
+ GetFileUrlPayloadSchema,
411
+ GetFileUrlResponseSchema,
412
+ GetUploadUrlPayloadSchema,
413
+ SetFileMetadataPayloadSchema,
414
+ StringValueMapSchema,
415
+ } from './files.js';
416
+ import {
417
+ CreateUserGroupPayloadSchema,
418
+ UpdateUserGroupPayloadSchema,
419
+ UserGroupArraySchema,
420
+ UserGroupRefSchema,
421
+ UserGroupSchema,
422
+ } from './group.js';
423
+ import {
424
+ DriftAnalysisProgressSchema,
425
+ DriftAnalysisResultSchema,
426
+ DriftAnalysisStatusResponseSchema,
427
+ IndexingStatusResponseSchema,
428
+ ReindexAgentRunsPayloadSchema,
429
+ ReindexAgentRunsResponseSchema,
430
+ StartProjectReindexPayloadSchema,
431
+ } from './indexing.js';
432
+ import * as IntegrationSchemas from './integrations.js';
433
+ import {
434
+ AgentResourceActionSchema,
435
+ AgentResourceReferenceSchema,
436
+ AgentResourceTypeSchema,
437
+ AgentRunnerOptionsSchema,
438
+ AgentSearchScope_CollectionSchema,
439
+ AgentSearchScopeSchema,
440
+ AgentToolApprovalModeSchema,
441
+ AsyncCompletionModeSchema,
442
+ AsyncCompletionOptionsSchema,
443
+ AsyncConversationExecutionPayloadSchema,
444
+ AsyncExecutionPayloadSchema,
445
+ AsyncExecutionResultSchema,
446
+ AsyncInteractionExecutionPayloadSchema,
447
+ CachePolicySchema,
448
+ CatalogInteractionRefArraySchema,
449
+ CatalogInteractionRefSchema,
450
+ CatalogTagQuerySchema,
451
+ ComputedFacetResponseSchema,
452
+ ComputeInteractionFacetPayloadSchema,
453
+ ComputeRunFacetPayloadSchema,
454
+ ConversationStateSchema,
455
+ ConversationStripOptionsSchema,
456
+ ConversationVisibilitySchema,
457
+ EmailChannelSchema,
458
+ ExecuteInteractionByEndpointHeadersSchema,
459
+ ExecuteInteractionByEndpointQuerySchema,
460
+ ExecutionResponseSchema,
461
+ ExecutionRunDocRefSchema,
462
+ ExecutionRunInteractionSchema,
463
+ ExecutionRunRefArraySchema,
464
+ ExecutionRunRefSchema,
465
+ ExecutionRunSchema,
466
+ ExecutionRunStatusSchema,
467
+ ExecutionRunWorkflowSchema,
468
+ ExportedPromptTemplateRefSchema,
469
+ ExternalizedToolInputRefSchema,
470
+ ExternalizedToolInputRefsSchema,
471
+ FacetSpecSchema,
472
+ GeneratedInteractionDefinitionArraySchema,
473
+ GeneratedInteractionDefinitionSchema,
474
+ GeneratedInteractionPromptSegmentSchema,
475
+ GeneratedInteractionPromptTemplateSchema,
476
+ GeneratedTestDataRecordArraySchema,
477
+ GeneratedTestDataRecordSchema,
478
+ GenerateInteractionPayloadSchema,
479
+ GenerateTestDataPayloadSchema,
480
+ ImprovePromptPayloadConfigSchema,
481
+ ImprovePromptPayloadSchema,
482
+ InCodePromptSchema,
483
+ InitialToolCallSchema,
484
+ InteractionArraySchema,
485
+ InteractionCreatePayloadSchema,
486
+ InteractionEndpointArraySchema,
487
+ InteractionEndpointQuerySchema,
488
+ InteractionEndpointSchema,
489
+ InteractionExecutionErrorSchema,
490
+ InteractionExecutionPayloadSchema,
491
+ InteractionExecutionResultSchema,
492
+ InteractionForkPayloadSchema,
493
+ InteractionNameArraySchema,
494
+ InteractionNameSchema,
495
+ InteractionPublishPayloadSchema,
496
+ InteractionRefArraySchema,
497
+ InteractionRefSchema,
498
+ InteractionRefWithSchemaArraySchema,
499
+ InteractionRefWithSchemaSchema,
500
+ InteractionSchema,
501
+ InteractionSearchQuerySchema,
502
+ InteractionStatusSchema,
503
+ InteractionsExportPayloadSchema,
504
+ InteractionTagsArraySchema,
505
+ InteractionTagsSchema,
506
+ InteractionUpdatePayloadSchema,
507
+ InteractionVisibilitySchema,
508
+ InteractiveChannelSchema,
509
+ LegacyExecutionRunResultSchema,
510
+ LegacyPopulatedExecutionRunResultSchema,
511
+ LlmCallTypeSchema,
512
+ ModelSourceSchema,
513
+ NamedInteractionExecutionPayloadSchema,
514
+ NumberValueMapSchema,
515
+ PendingMcpConnectionSchema,
516
+ PendingToolApprovalResultsSchema,
517
+ PlanSchema,
518
+ PlanTaskSchema,
519
+ PopulatedExecutionRunResultSchema,
520
+ PromptImprovementResponseSchema,
521
+ PromptModalitiesSchema,
522
+ PromptSegmentDefSchema,
523
+ PromptSegmentDefTypeSchema,
524
+ PromptSegmentRef_ExportedPromptTemplateRefSchema,
525
+ PromptSegmentRef_PromptTemplateRefSchema,
526
+ PromptStatusSchema,
527
+ PromptTemplateCreatePayloadSchema,
528
+ PromptTemplateRefSchema,
529
+ PromptTemplateSchema,
530
+ PromptTemplateUpdatePayloadSchema,
531
+ RateLimitRequestPayloadSchema,
532
+ RateLimitRequestResponseSchema,
533
+ ResolvedEnvironmentInfoSchema,
534
+ ResolvedInteractionExecutionInfoSchema,
535
+ ResolvedRuntimeConfigSchema,
536
+ ResolveInteractionQuerySchema,
537
+ ResultStorageOptionsSchema,
538
+ RunClonePayloadSchema,
539
+ RunCreatePayloadSchema,
540
+ RunListQuerySchema,
541
+ RunSearchMetaResponseSchema,
542
+ RunSearchPayloadSchema,
543
+ RunSearchQuerySchema,
544
+ RunSourceSchema,
545
+ RunSourceTypesSchema,
546
+ SchemaRefSchema,
547
+ SkillContextTriggersSchema,
548
+ SortOptionSchema,
549
+ SortOrderSchema,
550
+ StoredCatalogInteractionsQuerySchema,
551
+ StreamingOptionsSchema,
552
+ StreamingTelemetryContextSchema,
553
+ TemplateTypeSchema,
554
+ TextArtifactReferenceSchema,
555
+ ToolApprovalGrantMapSchema,
556
+ ToolApprovalGrantSchema,
557
+ ToolReferenceSchema,
558
+ ToolResultMetaSchema,
559
+ ToolResultSchema,
560
+ ToolResultsPayloadSchema,
561
+ UpdateExecutionRunPayloadSchema,
562
+ UsedSkillSchema,
563
+ UserChannelSchema,
564
+ UserMessagePayloadSchema,
565
+ WorkflowAncestorSchema,
566
+ } from './interaction.js';
567
+ import {
568
+ AccountProjectsResponseSchema,
569
+ InviteAcceptanceResponseSchema,
570
+ InviteDeclineResponseSchema,
571
+ InviteUserRequestPayloadSchema,
572
+ InviteUserResponsePayloadSchema,
573
+ OnboardingProgressSchema,
574
+ UserInviteTokenArraySchema,
575
+ } from './invites.js';
576
+ import {
577
+ CreateOAuthProviderPayloadSchema,
578
+ OAuthProviderAccessTokenResponseSchema,
579
+ OAuthProviderArraySchema,
580
+ OAuthProviderAuthorizeResponseSchema,
581
+ OAuthProviderAuthStatusSchema,
582
+ OAuthProviderExchangePayloadSchema,
583
+ OAuthProviderSchema,
584
+ SuccessResponseSchema,
585
+ UpdateOAuthProviderPayloadSchema,
586
+ } from './oauth.js';
587
+ import {
588
+ BulkRevokeOAuthGrantsPayloadSchema,
589
+ CreateOAuthClientPayloadSchema,
590
+ ListOAuthGrantsQuerySchema,
591
+ OAuthClientArraySchema,
592
+ OAuthClientCreateResponseSchema,
593
+ OAuthClientSchema,
594
+ OAuthClientScopeMetadataSchema,
595
+ OAuthClientStatusSchema,
596
+ OAuthClientTypeSchema,
597
+ OAuthGrantListResponseSchema,
598
+ OAuthGrantRevokeResponseSchema,
599
+ OAuthGrantSchema,
600
+ OAuthGrantSortFieldSchema,
601
+ OAuthGrantSortOrderSchema,
602
+ OAuthGrantStatusSchema,
603
+ OAuthGrantTypeSchema,
604
+ OAuthProjectBindingModeSchema,
605
+ OAuthRegistrationSourceSchema,
606
+ OAuthResponseTypeSchema,
607
+ OAuthTokenEndpointAuthMethodSchema,
608
+ RevokeOAuthGrantQuerySchema,
609
+ UpdateOAuthClientPayloadSchema,
610
+ } from './oauth-server.js';
611
+ import {
612
+ type ApiParameterLocation,
613
+ type NormalizedApiParameters,
614
+ normalizeParameters,
615
+ type RawApiParameters,
616
+ } from './parameters.js';
617
+ import * as ProcessSchemas from './process.js';
618
+ import {
619
+ CountResultSchema,
620
+ CreateProjectPayloadSchema,
621
+ ListProjectsQuerySchema,
622
+ ProjectIntegrationListResponseSchema,
623
+ ProjectPluginsUpdatePayloadSchema,
624
+ ProjectSchema,
625
+ ProjectTagQuerySchema,
626
+ ProjectToolInfoArraySchema,
627
+ ProjectToolInfoSchema,
628
+ RenderingTemplateDefinitionRefSchema,
629
+ RenderingTemplateDefinitionSchema,
630
+ UpdateProjectConfigurationPayloadSchema,
631
+ UpdateProjectPayloadSchema,
632
+ } from './project.js';
633
+ import {
634
+ BrowserUseProjectConfigurationSchema,
635
+ ProjectConfigurationEmbeddingSchema,
636
+ ProjectConfigurationSchema,
637
+ ProjectIndexingConfigurationSchema,
638
+ ProjectIntakeConfigurationSchema,
639
+ ProjectIntakeSniffConfigurationSchema,
640
+ ProjectModelDefaultsSchema,
641
+ ResourceVisibilitySchema,
642
+ } from './project-configuration.js';
643
+ import {
644
+ ComputePromptFacetPayloadSchema,
645
+ PromptSearchQuerySchema,
646
+ PromptTemplateForkPayloadSchema,
647
+ PromptTemplateInteractionsResponseSchema,
648
+ PromptTemplateInteractionUsageSchema,
649
+ PromptTemplateInteractionVersionSchema,
650
+ PromptTemplateRefArraySchema,
651
+ RenderPromptPayloadSchema,
652
+ RenderPromptResponseSchema,
653
+ } from './prompt.js';
654
+ import { QuotaStandingResponseSchema, QuotaTierResponseSchema } from './quota.js';
655
+ import * as SecretSchemas from './secrets.js';
656
+ import {
657
+ ColumnLayoutSchema,
658
+ ContentObjectTypeCatalogEntryArraySchema,
659
+ ContentObjectTypeCatalogEntrySchema,
660
+ ContentObjectTypeCatalogQuerySchema,
661
+ ContentObjectTypeItemArraySchema,
662
+ ContentObjectTypeItemSchema,
663
+ ContentObjectTypeListQuerySchema,
664
+ ContentObjectTypeSchema,
665
+ ContentObjectTypeStatusSchema,
666
+ ContentTypeEditingPolicySchema,
667
+ ContentTypeIntakePolicySchema,
668
+ CreateContentObjectTypePayloadSchema,
669
+ InCodeTypeDefinitionSchema,
670
+ UpdateContentObjectTypePayloadSchema,
671
+ } from './store.js';
672
+ import * as StsSchemas from './sts.js';
673
+ import {
674
+ CompleteTaskPayloadSchema,
675
+ CreateTaskPayloadSchema,
676
+ DurableTaskStatusSchema,
677
+ ListTasksQuerySchema,
678
+ TaskArraySchema,
679
+ TaskFieldSchema,
680
+ TaskFieldTypeSchema,
681
+ TaskSchema,
682
+ TaskSourceSchema,
683
+ UpdateTaskPayloadSchema,
684
+ } from './task.js';
685
+ import {
686
+ AggregatedToolArraySchema,
687
+ AggregatedToolSchema,
688
+ ListProjectToolsQuerySchema,
689
+ ToolSourceSchema,
690
+ ToolValidationResultSchema,
691
+ ValidateToolNamesPayloadSchema,
692
+ ValidateToolNamesResponseSchema,
693
+ } from './tools.js';
694
+ import {
695
+ DeleteByIdResultSchema,
696
+ PrincipalIdentitySchema,
697
+ SignupDataSchema,
698
+ SignupPayloadSchema,
699
+ UpdateUserPayloadSchema,
700
+ UserArraySchema,
701
+ UserRefArraySchema,
702
+ UserSchema,
703
+ } from './user.js';
704
+ import * as ViewExecutionSchemas from './view-execution.js';
705
+ import {
706
+ AgenticViewSearchConfigurationSchema,
707
+ CreateViewExperienceRequestSchema,
708
+ UpdateViewExperienceRequestSchema,
709
+ ViewBoardCardConfigurationSchema,
710
+ ViewBoardColumnSchema,
711
+ ViewBoardDisplaySchema,
712
+ ViewCardsDisplaySchema,
713
+ ViewCollectionNavigationSchema,
714
+ ViewDisplayConfigurationSchema,
715
+ ViewElasticsearchQuerySchema,
716
+ ViewExperienceArraySchema,
717
+ ViewExperienceLayoutSchema,
718
+ ViewExperienceListQuerySchema,
719
+ ViewExperienceSchema,
720
+ ViewExperienceSchemaVersionSchema,
721
+ ViewExperienceScopeSchema,
722
+ ViewGalleryDisplaySchema,
723
+ ViewHierarchyLevelSchema,
724
+ ViewHierarchyNavigationSchema,
725
+ ViewKeyTermDefinitionSchema,
726
+ ViewListDisplaySchema,
727
+ ViewLocationNavigationSchema,
728
+ ViewNavigationItemSchema,
729
+ ViewRangeDefinitionSchema,
730
+ ViewRangeNavigationSchema,
731
+ ViewResultFieldFormatSchema,
732
+ ViewResultFieldSchema,
733
+ ViewResultMediaSchema,
734
+ ViewResultsConfigurationSchema,
735
+ ViewSearchConfigurationSchema,
736
+ ViewSearchFieldDefinitionSchema,
737
+ ViewSearchFieldTypeSchema,
738
+ ViewSortClauseSchema,
739
+ ViewSortOptionSchema,
740
+ ViewTableColumnSchema,
741
+ ViewTableDisplaySchema,
742
+ ViewTermsNavigationSchema,
743
+ } from './views.js';
744
+ import * as WorkflowRunSchemas from './workflow-runs.js';
745
+
746
+ // ajv-formats is CommonJS with an ESM-style declaration file. Node's interop makes the default
747
+ // import the whole `module.exports` (itself callable), while TypeScript sees the namespace — and
748
+ // `.default` is the plugin function in both shapes.
749
+ const addFormats = ajvFormats.default;
750
+
751
+ /**
752
+ * Endpoint-level API schemas, keyed by the OpenAPI component name they publish under.
753
+ *
754
+ * Schemas referenced directly by an endpoint belong here. Nested schemas carrying an id
755
+ * (`AccountBilling`, the Stripe union members) are hoisted into components automatically by the
756
+ * adapter, so listing them here would be redundant.
757
+ *
758
+ * Entries named by no endpoint are roots or leaves referenced by another registered component.
759
+ * The adapter hoists those references into the same canonical component graph.
760
+ */
761
+ /**
762
+ * The registry, in groups, because the compiler cannot serialize it as one object.
763
+ *
764
+ * At 200 entries `tsc` began refusing the declaration emit with TS7056 — "the inferred type of this
765
+ * node exceeds the maximum length the compiler will serialize". `ApiComponentName` and
766
+ * `ApiComponentType` are both derived from the object, so its full inferred type has to be written
767
+ * into `lib/*.d.ts`, and a Zod schema's type is deeply structural: two hundred of them is the limit.
768
+ * So the object is declared in groups small enough to serialize, and `ApiSchemaMap` puts them back
769
+ * together as an intersection — which the compiler emits as the type expression it was written as,
770
+ * with no inferred node to serialize. A name is still one of these keys and
771
+ * `ApiComponentType<'Account'>` is still `z.infer<typeof AccountSchema>`.
772
+ *
773
+ * Groups follow API domains so ownership stays visible while satisfying the compiler limit. Adding a
774
+ * component means placing it in its domain group and adding a new, specifically named group if that
775
+ * group approaches the proven-safe size.
776
+ */
777
+ const IAM_AND_ACCOUNT_SCHEMAS = {
778
+ Account: AccountSchema,
779
+ UpdateAccountPayload: UpdateAccountPayloadSchema,
780
+ StripeBillingStatusResponse: StripeBillingStatusResponseSchema,
781
+ ApiKeyListQuery: ApiKeyListQuerySchema,
782
+ QuotaStandingResponse: QuotaStandingResponseSchema,
783
+ QuotaTierResponse: QuotaTierResponseSchema,
784
+ User: UserSchema,
785
+ UserArray: UserArraySchema,
786
+ UpdateUserPayload: UpdateUserPayloadSchema,
787
+ DeleteByIdResult: DeleteByIdResultSchema,
788
+ PrincipalIdentity: PrincipalIdentitySchema,
789
+ SignupData: SignupDataSchema,
790
+ SignupPayload: SignupPayloadSchema,
791
+ UserRefArray: UserRefArraySchema,
792
+ UserGroup: UserGroupSchema,
793
+ UserGroupArray: UserGroupArraySchema,
794
+ UserGroupRef: UserGroupRefSchema,
795
+ CreateUserGroupPayload: CreateUserGroupPayloadSchema,
796
+ UpdateUserGroupPayload: UpdateUserGroupPayloadSchema,
797
+ AccessControlEntry: AccessControlEntrySchema,
798
+ AccessControlEntryArray: AccessControlEntryArraySchema,
799
+ ACECreatePayload: ACECreatePayloadSchema,
800
+ ACEUpdatePayload: ACEUpdatePayloadSchema,
801
+ ProjectRefArray: ProjectRefArraySchema,
802
+ RoleDefinitionArray: RoleDefinitionArraySchema,
803
+ SystemRoleDefinitionArray: SystemRoleDefinitionArraySchema,
804
+ ApiKey: ApiKeySchema,
805
+ ApiKeyArray: ApiKeyArraySchema,
806
+ ApiKeyWithValue: ApiKeyWithValueSchema,
807
+ ApiKeyReadResponse: ApiKeyReadResponseSchema,
808
+ ApiKeyReadQuery: ApiKeyReadQuerySchema,
809
+ CreateApiKeyPayload: CreateApiKeyPayloadSchema,
810
+ UpdateApiKeyPayload: UpdateApiKeyPayloadSchema,
811
+ AuthTokenResponse: AuthTokenResponseSchema,
812
+ DeleteOperationResult: DeleteOperationResultSchema,
813
+ InviteUserRequestPayload: InviteUserRequestPayloadSchema,
814
+ InviteUserResponsePayload: InviteUserResponsePayloadSchema,
815
+ InviteAcceptanceResponse: InviteAcceptanceResponseSchema,
816
+ InviteDeclineResponse: InviteDeclineResponseSchema,
817
+ OnboardingProgress: OnboardingProgressSchema,
818
+ AccountProjectsResponse: AccountProjectsResponseSchema,
819
+ TransientToken_UserInviteTokenData_Array: UserInviteTokenArraySchema,
820
+ ListProjectsQuery: ListProjectsQuerySchema,
821
+ ProjectTagQuery: ProjectTagQuerySchema,
822
+ ICreateProjectPayload: CreateProjectPayloadSchema,
823
+ ProjectPluginsUpdatePayload: ProjectPluginsUpdatePayloadSchema,
824
+ CountResult: CountResultSchema,
825
+ ProjectIntegrationListResponse: ProjectIntegrationListResponseSchema,
826
+ ProjectToolInfo: ProjectToolInfoSchema,
827
+ ProjectToolInfoArray: ProjectToolInfoArraySchema,
828
+ RenderingTemplateDefinition: RenderingTemplateDefinitionSchema,
829
+ RenderingTemplateDefinitionRef: RenderingTemplateDefinitionRefSchema,
830
+ } as const satisfies Record<string, z.ZodType>;
831
+
832
+ const PROJECT_AND_APP_SCHEMAS = {
833
+ // Leaves of the ProjectConfiguration closure. Each is hoisted by `ProjectConfiguration` rather
834
+ // than named by an endpoint, so only the roots that nothing else here references are listed;
835
+ // `ModelDefault`, the two search enums, `ProjectSearchPropertyMapping(+Map)` and the two
836
+ // browser-use enums are published by being referenced from these.
837
+ ProjectModelDefaults: ProjectModelDefaultsSchema,
838
+ ResourceVisibility: ResourceVisibilitySchema,
839
+ ProjectIndexingConfiguration: ProjectIndexingConfigurationSchema,
840
+ ProjectConfigurationEmbedding: ProjectConfigurationEmbeddingSchema,
841
+ BrowserUseProjectConfiguration: BrowserUseProjectConfigurationSchema,
842
+ ProjectIntakeSniffConfiguration: ProjectIntakeSniffConfigurationSchema,
843
+ // Leaves of the Project closure. `ModelOptions` hoists its
844
+ // twenty-three driver option sets and four enums; `JSONSchema` hoists `JSONSchemaProperties`.
845
+ JSONSchema: JSONSchemaSchema,
846
+ ModelOptions: ModelOptionsSchema,
847
+ HttpTimeoutOptions: HttpTimeoutOptionsSchema,
848
+ // The intake policy tree. Everything it reaches — InteractionExecutionConfiguration, the two
849
+ // grounding policies, the page/vision enums and the embedding switches — is hoisted from here.
850
+ ContentTypeIntakePolicy: ContentTypeIntakePolicySchema,
851
+ // Registered after the policy it references. `IntakeVisionProfileSettingsUpdate` and the
852
+ // per-detail override map are hoisted from here; neither has a TypeScript name to alias.
853
+ ProjectIntakeConfiguration: ProjectIntakeConfigurationSchema,
854
+ // The roots of the Project closure, registered last because every leaf above is a `$ref` target
855
+ // of one of them.
856
+ ProjectConfiguration: ProjectConfigurationSchema,
857
+ Project: ProjectSchema,
858
+ // The two explicitly named update payloads derived from the corresponding response schemas.
859
+ UpdateProjectPayload: UpdateProjectPayloadSchema,
860
+ UpdateProjectConfigurationPayload: UpdateProjectConfigurationPayloadSchema,
861
+ // App-manifest leaves hoisted by the registered manifest roots.
862
+ // `MCPToolCollectionObject`, `VertesiaSDKToolCollectionObject`, `ToolCollectionAuthType`,
863
+ // `MCPOAuthConfig`, `AppUINavItem`, `AppAvailableIn` and `AppGitSourceConfig` are hoisted from
864
+ // the roots below rather than listed.
865
+ ToolCollectionObject: ToolCollectionObjectSchema,
866
+ AppUIConfig: AppUIConfigSchema,
867
+ AppCapabilities: AppCapabilitiesSchema,
868
+ AppAccessControl: AppAccessControlSchema,
869
+ AppSourceConfig: AppSourceConfigSchema,
870
+ AppManifestSource: AppManifestSourceSchema,
871
+ } as const satisfies Record<string, z.ZodType>;
872
+
873
+ /**
874
+ * The studio OAuth surface: providers, clients, grants.
875
+ *
876
+ * A group of its own because thirty-one components is near TypeScript's declaration-emit
877
+ * serialization limit for this registry shape.
878
+ *
879
+ * The token server's authorize, token, device-code, and consent contracts live in its own group.
880
+ */
881
+ const OAUTH_SCHEMAS = {
882
+ // Providers: Vertesia as a client of someone else's authorization server.
883
+ SuccessResponse: SuccessResponseSchema,
884
+ OAuthProvider: OAuthProviderSchema,
885
+ OAuthProviderArray: OAuthProviderArraySchema,
886
+ CreateOAuthProviderPayload: CreateOAuthProviderPayloadSchema,
887
+ UpdateOAuthProviderPayload: UpdateOAuthProviderPayloadSchema,
888
+ OAuthProviderAuthStatus: OAuthProviderAuthStatusSchema,
889
+ OAuthProviderAuthorizeResponse: OAuthProviderAuthorizeResponseSchema,
890
+ OAuthProviderAccessTokenResponse: OAuthProviderAccessTokenResponseSchema,
891
+ OAuthProviderExchangePayload: OAuthProviderExchangePayloadSchema,
892
+ // The client and grant enums. Each is published as a component today because it has a
893
+ // TypeScript name, so each is registered rather than inlined — dropping one would rewrite every
894
+ // `$ref` that points at it into an inline enum.
895
+ OAuthClientType: OAuthClientTypeSchema,
896
+ OAuthClientStatus: OAuthClientStatusSchema,
897
+ OAuthRegistrationSource: OAuthRegistrationSourceSchema,
898
+ OAuthProjectBindingMode: OAuthProjectBindingModeSchema,
899
+ OAuthTokenEndpointAuthMethod: OAuthTokenEndpointAuthMethodSchema,
900
+ OAuthGrantType: OAuthGrantTypeSchema,
901
+ OAuthResponseType: OAuthResponseTypeSchema,
902
+ OAuthGrantStatus: OAuthGrantStatusSchema,
903
+ OAuthGrantSortField: OAuthGrantSortFieldSchema,
904
+ OAuthGrantSortOrder: OAuthGrantSortOrderSchema,
905
+ // Clients registered against Vertesia's own OAuth server. `OAuthClientData` is composed into
906
+ // `OAuthClient` rather than hoisted, so it has no component of its own — as today.
907
+ OAuthClient: OAuthClientSchema,
908
+ OAuthClientArray: OAuthClientArraySchema,
909
+ OAuthClientCreateResponse: OAuthClientCreateResponseSchema,
910
+ OAuthClientScopeMetadata: OAuthClientScopeMetadataSchema,
911
+ CreateOAuthClientPayload: CreateOAuthClientPayloadSchema,
912
+ UpdateOAuthClientPayload: UpdateOAuthClientPayloadSchema,
913
+ // Grants. The two query components are registered like any other — they are expanded into
914
+ // parameters rather than published as component bodies, which is what every query contract does.
915
+ OAuthGrant: OAuthGrantSchema,
916
+ ListOAuthGrantsQuery: ListOAuthGrantsQuerySchema,
917
+ RevokeOAuthGrantQuery: RevokeOAuthGrantQuerySchema,
918
+ BulkRevokeOAuthGrantsPayload: BulkRevokeOAuthGrantsPayloadSchema,
919
+ OAuthGrantListResponse: OAuthGrantListResponseSchema,
920
+ OAuthGrantRevokeResponse: OAuthGrantRevokeResponseSchema,
921
+ } as const satisfies Record<string, z.ZodType>;
922
+
923
+ /**
924
+ * The studio execution environments, and everything the twenty slots across `/environments` name.
925
+ *
926
+ * A fifth group, for the same reason the fourth exists: the declaration emit refuses a group much
927
+ * past thirty entries, and this is thirty-six.
928
+ *
929
+ * Half of it is llumiverse's rather than Vertesia's. `AIModel` and the embedding results describe
930
+ * what a driver produces, so their schemas live in `@llumiverse/common/schemas` and are registered
931
+ * from there — the same arrangement `ModelOptions` and `JSONSchema` already use. Registering them
932
+ * here rather than defining them here is the whole point: one definition, whichever package owns it.
933
+ */
934
+ const ENVIRONMENT_SCHEMAS = {
935
+ // The environment itself. `ExecutionEnvironmentRef` is the secret-free projection: no
936
+ // environment endpoint returns it, but `ResolvedInteractionExecutionInfo` refs it.
937
+ SupportedProviders: SupportedProvidersSchema,
938
+ ExecutionEnvironmentRef: ExecutionEnvironmentRefSchema,
939
+ ExecutionEnvironment: ExecutionEnvironmentSchema,
940
+ ExecutionEnvironmentArray: ExecutionEnvironmentArraySchema,
941
+ ExecutionEnvironmentSettings: ExecutionEnvironmentSettingsSchema,
942
+ ExecutionEnvironmentCreatePayload: ExecutionEnvironmentCreatePayloadSchema,
943
+ ExecutionEnvironmentUpdatePayload: ExecutionEnvironmentUpdatePayloadSchema,
944
+ ExecutionEnvironmentConfigUpdatePayload: ExecutionEnvironmentConfigUpdatePayloadSchema,
945
+ EnableEnvironmentModelPayload: EnableEnvironmentModelPayloadSchema,
946
+ ListEnvironmentsQuery: ListEnvironmentsQuerySchema,
947
+ MigrateInteractionsPayload: MigrateInteractionsPayloadSchema,
948
+ MigrateInteractionsResult: MigrateInteractionsResultSchema,
949
+ // Virtual-environment configuration — the two shapes `config` may take on a virtual provider.
950
+ VirtualEnvEntry: VirtualEnvEntrySchema,
951
+ LoadBalancingEnvConfig: LoadBalancingEnvConfigSchema,
952
+ LoadBalancingEnvEntryConfig: LoadBalancingEnvEntryConfigSchema,
953
+ MediatorEnvConfig: MediatorEnvConfigSchema,
954
+ // Models, from `@llumiverse/common/schemas`. `ModelSearchPayload` is a query contract, so it is
955
+ // expanded into four parameters rather than published as a component body.
956
+ AIModel: AIModelSchema,
957
+ AIModelArray: AIModelArraySchema,
958
+ AIModelStatus: AIModelStatusSchema,
959
+ ModelType: ModelTypeSchema,
960
+ ModelSearchPayload: ModelSearchPayloadSchema,
961
+ // Run analytics, shared with the project-level `/analytics` endpoint.
962
+ RunAnalyticsQuery: RunAnalyticsQuerySchema,
963
+ RunAnalyticsResult: RunAnalyticsResultSchema,
964
+ RunAnalyticsResultArray: RunAnalyticsResultArraySchema,
965
+ RunAnalyticsGroupBy: RunAnalyticsGroupBySchema,
966
+ AnalyticsAxis: AnalyticsAxisSchema,
967
+ TimeResolution: TimeResolutionSchema,
968
+ // Embeddings. The request is Vertesia's (a JSON-friendly source rather than a stream); the
969
+ // result is llumiverse's, unchanged on the wire.
970
+ EmbeddingsApiRequest: EmbeddingsApiRequestSchema,
971
+ EmbeddingsApiInput: EmbeddingsApiInputSchema,
972
+ EmbeddingsApiSource: EmbeddingsApiSourceSchema,
973
+ EmbeddingsApiTextInput: EmbeddingsApiTextInputSchema,
974
+ EmbeddingsApiImageInput: EmbeddingsApiImageInputSchema,
975
+ EmbeddingsApiVideoInput: EmbeddingsApiVideoInputSchema,
976
+ EmbeddingsApiAudioInput: EmbeddingsApiAudioInputSchema,
977
+ EmbeddingTaskType: EmbeddingTaskTypeSchema,
978
+ EmbeddingsResult: EmbeddingsResultSchema,
979
+ EmbeddingResultItem: EmbeddingResultItemSchema,
980
+ EmbeddingOutput: EmbeddingOutputSchema,
981
+ EmbeddingsTokenUsage: EmbeddingsTokenUsageSchema,
982
+ } as const satisfies Record<string, z.ZodType>;
983
+
984
+ /**
985
+ * Interactions, prompts, runs and agent conversations: the sixty-eight slots across the six
986
+ * `/interactions`, `/runs` and `/execute` resources.
987
+ *
988
+ * These are one closure, not six. `Interaction` reaches `PromptSegmentDef` reaches
989
+ * `PromptTemplate`; `InteractionExecutionResult` reaches `ExecutionRun` reaches `ConversationState`
990
+ * reaches the agent plan, the channels and the tool-approval types. A canonical component may not
991
+ * `$ref` a TypeScript-derived one, so the closure holds together or not at all.
992
+ *
993
+ * A hundred and twenty-nine components is far past what one group serializes, so it is five, split
994
+ * along the lines the closure already has. The split is still only a compiler accommodation:
995
+ * nothing reads a component's group.
996
+ *
997
+ * The completion group is llumiverse's. A prompt segment, a tool call and a completion result are
998
+ * llumiverse types, so their schemas live in `@llumiverse/common/schemas` beside the types they
999
+ * derive — the arrangement `ModelOptions`, `JSONSchema` and `AIModel` already use.
1000
+ */
1001
+ const LLM_COMPLETION_SCHEMAS = {
1002
+ // What a prompt is made of.
1003
+ JSONValue: JSONValueSchema,
1004
+ JSONObject: JSONObjectSchema,
1005
+ PromptRole: PromptRoleSchema,
1006
+ Modalities: ModalitiesSchema,
1007
+ DataSource: DataSourceSchema,
1008
+ PromptSegment: PromptSegmentSchema,
1009
+ // Tools, and what a model returns.
1010
+ ToolDefinition: ToolDefinitionSchema,
1011
+ ToolUse: ToolUseSchema,
1012
+ TextResult: TextResultSchema,
1013
+ JsonResult: JsonResultSchema,
1014
+ ImageResult: ImageResultSchema,
1015
+ CompletionResult: CompletionResultSchema,
1016
+ ExecutionTokenUsage: ExecutionTokenUsageSchema,
1017
+ // The options a caller may send. `PromptFormatter` is deliberately gone: see the note on
1018
+ // `StatelessExecutionOptionsSchema`.
1019
+ StatelessExecutionOptions: StatelessExecutionOptionsSchema,
1020
+ } as const satisfies Record<string, z.ZodType>;
1021
+
1022
+ const INTERACTION_SCHEMAS = {
1023
+ // The interaction definition and the prompt tree under it.
1024
+ InteractionStatus: InteractionStatusSchema,
1025
+ InteractionVisibility: InteractionVisibilitySchema,
1026
+ PromptModalities: PromptModalitiesSchema,
1027
+ PromptStatus: PromptStatusSchema,
1028
+ PromptSegmentDefType: PromptSegmentDefTypeSchema,
1029
+ TemplateType: TemplateTypeSchema,
1030
+ SchemaRef: SchemaRefSchema,
1031
+ CachePolicy: CachePolicySchema,
1032
+ PromptTemplate: PromptTemplateSchema,
1033
+ PromptTemplateCreatePayload: PromptTemplateCreatePayloadSchema,
1034
+ PromptTemplateUpdatePayload: PromptTemplateUpdatePayloadSchema,
1035
+ PromptTemplateRef: PromptTemplateRefSchema,
1036
+ PromptSegmentDef: PromptSegmentDefSchema,
1037
+ PromptSegmentRef_PromptTemplateRef: PromptSegmentRef_PromptTemplateRefSchema,
1038
+ InCodePrompt: InCodePromptSchema,
1039
+ Interaction: InteractionSchema,
1040
+ InteractionArray: InteractionArraySchema,
1041
+ InteractionRef: InteractionRefSchema,
1042
+ InteractionRefArray: InteractionRefArraySchema,
1043
+ InteractionName: InteractionNameSchema,
1044
+ InteractionNameArray: InteractionNameArraySchema,
1045
+ // The export shape and the reduced prompt template it carries.
1046
+ ExportedPromptTemplateRef: ExportedPromptTemplateRefSchema,
1047
+ PromptSegmentRef_ExportedPromptTemplateRef: PromptSegmentRef_ExportedPromptTemplateRefSchema,
1048
+ InteractionRefWithSchema: InteractionRefWithSchemaSchema,
1049
+ InteractionRefWithSchemaArray: InteractionRefWithSchemaArraySchema,
1050
+ InteractionTags: InteractionTagsSchema,
1051
+ InteractionTagsArray: InteractionTagsArraySchema,
1052
+ // Endpoints — an interaction's published, executable name.
1053
+ InteractionEndpoint: InteractionEndpointSchema,
1054
+ InteractionEndpointArray: InteractionEndpointArraySchema,
1055
+ InteractionEndpointQuery: InteractionEndpointQuerySchema,
1056
+ // Write and search contracts.
1057
+ InteractionCreatePayload: InteractionCreatePayloadSchema,
1058
+ InteractionUpdatePayload: InteractionUpdatePayloadSchema,
1059
+ InteractionPublishPayload: InteractionPublishPayloadSchema,
1060
+ InteractionForkPayload: InteractionForkPayloadSchema,
1061
+ InteractionsExportPayload: InteractionsExportPayloadSchema,
1062
+ InteractionSearchQuery: InteractionSearchQuerySchema,
1063
+ ResolveInteractionQuery: ResolveInteractionQuerySchema,
1064
+ // The catalog — in-code interactions an app or the system provides, alongside stored ones.
1065
+ CatalogInteractionRef: CatalogInteractionRefSchema,
1066
+ CatalogInteractionRefArray: CatalogInteractionRefArraySchema,
1067
+ CatalogTagQuery: CatalogTagQuerySchema,
1068
+ StoredCatalogInteractionsQuery: StoredCatalogInteractionsQuerySchema,
1069
+ // What `GET /interactions/resolve/:nameOrId` answers with.
1070
+ ModelSource: ModelSourceSchema,
1071
+ ResolvedEnvironmentInfo: ResolvedEnvironmentInfoSchema,
1072
+ ResolvedInteractionExecutionInfo: ResolvedInteractionExecutionInfoSchema,
1073
+ // Facets over the interaction list.
1074
+ FacetSpec: FacetSpecSchema,
1075
+ NumberValueMap: NumberValueMapSchema,
1076
+ ComputeInteractionFacetPayload: ComputeInteractionFacetPayloadSchema,
1077
+ ComputedFacetResponse: ComputedFacetResponseSchema,
1078
+ } as const satisfies Record<string, z.ZodType>;
1079
+
1080
+ const INTERACTION_AUTHORING_SCHEMAS = {
1081
+ // Prompt improvement, and the two generators behind the authoring screens.
1082
+ ImprovePromptPayloadConfig: ImprovePromptPayloadConfigSchema,
1083
+ ImprovePromptPayload: ImprovePromptPayloadSchema,
1084
+ PromptImprovementResponse: PromptImprovementResponseSchema,
1085
+ GenerateTestDataPayload: GenerateTestDataPayloadSchema,
1086
+ GeneratedTestDataRecord: GeneratedTestDataRecordSchema,
1087
+ GeneratedTestDataRecordArray: GeneratedTestDataRecordArraySchema,
1088
+ GenerateInteractionPayload: GenerateInteractionPayloadSchema,
1089
+ GeneratedInteractionDefinition: GeneratedInteractionDefinitionSchema,
1090
+ GeneratedInteractionDefinitionArray: GeneratedInteractionDefinitionArraySchema,
1091
+ GeneratedInteractionPromptTemplate: GeneratedInteractionPromptTemplateSchema,
1092
+ GeneratedInteractionPromptSegment: GeneratedInteractionPromptSegmentSchema,
1093
+ } as const satisfies Record<string, z.ZodType>;
1094
+
1095
+ const AGENT_CONVERSATION_SCHEMAS = {
1096
+ // How an agent run is configured.
1097
+ AgentRunnerOptions: AgentRunnerOptionsSchema,
1098
+ AgentSearchScope: AgentSearchScopeSchema,
1099
+ AgentSearchScope_Collection: AgentSearchScope_CollectionSchema,
1100
+ SkillContextTriggers: SkillContextTriggersSchema,
1101
+ InitialToolCall: InitialToolCallSchema,
1102
+ ConversationVisibility: ConversationVisibilitySchema,
1103
+ ConversationStripOptions: ConversationStripOptionsSchema,
1104
+ StreamingOptions: StreamingOptionsSchema,
1105
+ StreamingTelemetryContext: StreamingTelemetryContextSchema,
1106
+ ResolvedRuntimeConfig: ResolvedRuntimeConfigSchema,
1107
+ LlmCallType: LlmCallTypeSchema,
1108
+ // Where an interactive agent talks to a human.
1109
+ InteractiveChannel: InteractiveChannelSchema,
1110
+ EmailChannel: EmailChannelSchema,
1111
+ UserChannel: UserChannelSchema,
1112
+ // Tools: what was called, what came back, and what a human still has to approve.
1113
+ ToolReference: ToolReferenceSchema,
1114
+ ToolResult: ToolResultSchema,
1115
+ ToolResultMeta: ToolResultMetaSchema,
1116
+ ExternalizedToolInputRef: ExternalizedToolInputRefSchema,
1117
+ ExternalizedToolInputRefs: ExternalizedToolInputRefsSchema,
1118
+ ToolApprovalGrant: ToolApprovalGrantSchema,
1119
+ ToolApprovalGrantMap: ToolApprovalGrantMapSchema,
1120
+ AgentToolApprovalMode: AgentToolApprovalModeSchema,
1121
+ PendingToolApprovalResults: PendingToolApprovalResultsSchema,
1122
+ AgentResourceAction: AgentResourceActionSchema,
1123
+ AgentResourceType: AgentResourceTypeSchema,
1124
+ AgentResourceReference: AgentResourceReferenceSchema,
1125
+ PendingMcpConnection: PendingMcpConnectionSchema,
1126
+ // The conversation itself, and what it accumulates.
1127
+ UsedSkill: UsedSkillSchema,
1128
+ PlanTask: PlanTaskSchema,
1129
+ Plan: PlanSchema,
1130
+ WorkflowAncestor: WorkflowAncestorSchema,
1131
+ TextArtifactReference: TextArtifactReferenceSchema,
1132
+ ConversationState: ConversationStateSchema,
1133
+ } as const satisfies Record<string, z.ZodType>;
1134
+
1135
+ const EXECUTION_RUN_SCHEMAS = {
1136
+ // A run: what was executed, by whom, and how it ended.
1137
+ ExecutionRunStatus: ExecutionRunStatusSchema,
1138
+ RunSourceTypes: RunSourceTypesSchema,
1139
+ RunSource: RunSourceSchema,
1140
+ ExecutionRunDocRef: ExecutionRunDocRefSchema,
1141
+ ExecutionRunWorkflow: ExecutionRunWorkflowSchema,
1142
+ ExecutionRunInteraction: ExecutionRunInteractionSchema,
1143
+ ExecutionRun: ExecutionRunSchema,
1144
+ ExecutionRunRef: ExecutionRunRefSchema,
1145
+ ExecutionRunRefArray: ExecutionRunRefArraySchema,
1146
+ UpdateExecutionRunPayload: UpdateExecutionRunPayloadSchema,
1147
+ RunCreatePayload: RunCreatePayloadSchema,
1148
+ // Listing and searching runs.
1149
+ SortOrder: SortOrderSchema,
1150
+ SortOption: SortOptionSchema,
1151
+ RunSearchQuery: RunSearchQuerySchema,
1152
+ RunListQuery: RunListQuerySchema,
1153
+ RunSearchPayload: RunSearchPayloadSchema,
1154
+ // Executing an interaction, synchronously or as a workflow.
1155
+ InteractionExecutionPayload: InteractionExecutionPayloadSchema,
1156
+ NamedInteractionExecutionPayload: NamedInteractionExecutionPayloadSchema,
1157
+ InteractionExecutionResult: InteractionExecutionResultSchema,
1158
+ // The retrieve variant, and the two pre-versioning result shapes. See the schema module for why
1159
+ // the populated interaction cannot share a component with the create path.
1160
+ PopulatedExecutionRunResult: PopulatedExecutionRunResultSchema,
1161
+ LegacyExecutionRunResult: LegacyExecutionRunResultSchema,
1162
+ LegacyPopulatedExecutionRunResult: LegacyPopulatedExecutionRunResultSchema,
1163
+ InteractionExecutionError: InteractionExecutionErrorSchema,
1164
+ ResultStorageOptions: ResultStorageOptionsSchema,
1165
+ ExecuteInteractionByEndpointQuery: ExecuteInteractionByEndpointQuerySchema,
1166
+ ExecuteInteractionByEndpointHeaders: ExecuteInteractionByEndpointHeadersSchema,
1167
+ AsyncCompletionMode: AsyncCompletionModeSchema,
1168
+ AsyncCompletionOptions: AsyncCompletionOptionsSchema,
1169
+ AsyncExecutionPayload: AsyncExecutionPayloadSchema,
1170
+ AsyncInteractionExecutionPayload: AsyncInteractionExecutionPayloadSchema,
1171
+ AsyncConversationExecutionPayload: AsyncConversationExecutionPayloadSchema,
1172
+ AsyncExecutionResult: AsyncExecutionResultSchema,
1173
+ // The execution rate limiter.
1174
+ RateLimitRequestPayload: RateLimitRequestPayloadSchema,
1175
+ RateLimitRequestResponse: RateLimitRequestResponseSchema,
1176
+ ComputeRunFacetPayload: ComputeRunFacetPayloadSchema,
1177
+ RunSearchMetaResponse: RunSearchMetaResponseSchema,
1178
+ ToolResultsPayload: ToolResultsPayloadSchema,
1179
+ UserMessagePayload: UserMessagePayloadSchema,
1180
+ ExecutionResponse: ExecutionResponseSchema,
1181
+ RunClonePayload: RunClonePayloadSchema,
1182
+ } as const satisfies Record<string, z.ZodType>;
1183
+
1184
+ const FILE_STORAGE_SCHEMAS = {
1185
+ StringValueMap: StringValueMapSchema,
1186
+ CopyFilePayload: CopyFilePayloadSchema,
1187
+ CopyFileResponse: CopyFileResponseSchema,
1188
+ DeleteFileResult: DeleteFileResultSchema,
1189
+ FileBucketResponse: FileBucketResponseSchema,
1190
+ FileListResponse: FileListResponseSchema,
1191
+ FileMetadataResponse: FileMetadataResponseSchema,
1192
+ FileMetadataUpdateResult: FileMetadataUpdateResultSchema,
1193
+ GetFileUrlPayload: GetFileUrlPayloadSchema,
1194
+ GetFileUrlResponse: GetFileUrlResponseSchema,
1195
+ GetUploadUrlPayload: GetUploadUrlPayloadSchema,
1196
+ BulkUploadUrlsPayload: BulkUploadUrlsPayloadSchema,
1197
+ BulkUploadUrlsResponse: BulkUploadUrlsResponseSchema,
1198
+ SetFileMetadataPayload: SetFileMetadataPayloadSchema,
1199
+ FileMetadataQuery: FileMetadataQuerySchema,
1200
+ FileListQuery: FileListQuerySchema,
1201
+ FileDeleteQuery: FileDeleteQuerySchema,
1202
+ BucketReadAccessQuery: BucketReadAccessQuerySchema,
1203
+ BucketReadAccessStatusResponse: BucketReadAccessStatusResponseSchema,
1204
+ EnsureBucketReadAccessPayload: EnsureBucketReadAccessPayloadSchema,
1205
+ EnsureBucketReadAccessResponse: EnsureBucketReadAccessResponseSchema,
1206
+ } as const satisfies Record<string, z.ZodType>;
1207
+
1208
+ const DURABLE_TASK_SCHEMAS = {
1209
+ TaskFieldType: TaskFieldTypeSchema,
1210
+ DurableTaskStatus: DurableTaskStatusSchema,
1211
+ TaskSource: TaskSourceSchema,
1212
+ TaskField: TaskFieldSchema,
1213
+ Task: TaskSchema,
1214
+ TaskArray: TaskArraySchema,
1215
+ CreateTaskPayload: CreateTaskPayloadSchema,
1216
+ UpdateTaskPayload: UpdateTaskPayloadSchema,
1217
+ CompleteTaskPayload: CompleteTaskPayloadSchema,
1218
+ ListTasksQuery: ListTasksQuerySchema,
1219
+ } as const satisfies Record<string, z.ZodType>;
1220
+
1221
+ const CONTENT_TYPE_CATALOG_SCHEMAS = {
1222
+ ColumnLayout: ColumnLayoutSchema,
1223
+ ContentTypeEditingPolicy: ContentTypeEditingPolicySchema,
1224
+ ContentObjectTypeStatus: ContentObjectTypeStatusSchema,
1225
+ ContentObjectTypeItem: ContentObjectTypeItemSchema,
1226
+ ContentObjectTypeItemArray: ContentObjectTypeItemArraySchema,
1227
+ ContentObjectTypeCatalogEntry: ContentObjectTypeCatalogEntrySchema,
1228
+ ContentObjectTypeCatalogEntryArray: ContentObjectTypeCatalogEntryArraySchema,
1229
+ InCodeTypeDefinition: InCodeTypeDefinitionSchema,
1230
+ CreateContentObjectTypePayload: CreateContentObjectTypePayloadSchema,
1231
+ UpdateContentObjectTypePayload: UpdateContentObjectTypePayloadSchema,
1232
+ ContentObjectType: ContentObjectTypeSchema,
1233
+ ContentObjectTypeCatalogQuery: ContentObjectTypeCatalogQuerySchema,
1234
+ ContentObjectTypeListQuery: ContentObjectTypeListQuerySchema,
1235
+ } as const satisfies Record<string, z.ZodType>;
1236
+
1237
+ const MIGRATION_COMMAND_SCHEMAS = {
1238
+ DeleteCountResult: DeleteCountResultSchema,
1239
+ MigrationListResponse: MigrationListResponseSchema,
1240
+ RunMigrationPayload: RunMigrationPayloadSchema,
1241
+ RunMigrationResponse: RunMigrationResponseSchema,
1242
+ } as const satisfies Record<string, z.ZodType>;
1243
+
1244
+ const DASHBOARD_SCHEMAS = {
1245
+ DashboardElasticsearchResultMapping: DashboardElasticsearchResultMappingSchema,
1246
+ DashboardElasticsearchDsl: DashboardElasticsearchDslSchema,
1247
+ DashboardSqlDataSource: DashboardSqlDataSourceSchema,
1248
+ DashboardVersioningStatusResponse: DashboardVersioningStatusResponseSchema,
1249
+ DashboardVersioningPayload: DashboardVersioningPayloadSchema,
1250
+ PromoteDashboardVersionPayload: PromoteDashboardVersionPayloadSchema,
1251
+ DashboardVersionItem: DashboardVersionItemSchema,
1252
+ DashboardStatus: DashboardStatusSchema,
1253
+ DashboardLayout: DashboardLayoutSchema,
1254
+ DashboardPanelPosition: DashboardPanelPositionSchema,
1255
+ DashboardQuery: DashboardQuerySchema,
1256
+ DashboardBulkDeleteResult: DashboardBulkDeleteResultSchema,
1257
+ DashboardArchiveResult: DashboardArchiveResultSchema,
1258
+ CreateDashboardSnapshotPayload: CreateDashboardSnapshotPayloadSchema,
1259
+ DashboardBulkArchiveResult: DashboardBulkArchiveResultSchema,
1260
+ StringArrayMap: StringArrayMapSchema,
1261
+ DashboardStoreElasticsearchDataSource: DashboardStoreElasticsearchDataSourceSchema,
1262
+ DashboardVersionItemArray: DashboardVersionItemArraySchema,
1263
+ DashboardItem: DashboardItemSchema,
1264
+ DashboardPanel: DashboardPanelSchema,
1265
+ DashboardDataSource: DashboardDataSourceSchema,
1266
+ DashboardItemArray: DashboardItemArraySchema,
1267
+ DashboardVersion: DashboardVersionSchema,
1268
+ Dashboard: DashboardSchema,
1269
+ CreateDashboardPayload: CreateDashboardPayloadSchema,
1270
+ UpdateDashboardPayload: UpdateDashboardPayloadSchema,
1271
+ } as const satisfies Record<string, z.ZodType>;
1272
+
1273
+ const DATA_STORE_CORE_SCHEMAS = {
1274
+ QueryValidationError: QueryValidationErrorSchema,
1275
+ QueryValidationPayload: QueryValidationPayloadSchema,
1276
+ ListDataStoreVersionsQuery: ListDataStoreVersionsQuerySchema,
1277
+ GetDataStoreTableQuery: GetDataStoreTableQuerySchema,
1278
+ DataTableSemanticType: DataTableSemanticTypeSchema,
1279
+ DataIndex: DataIndexSchema,
1280
+ DataForeignKey: DataForeignKeySchema,
1281
+ SemanticColumnType: SemanticColumnTypeSchema,
1282
+ DataColumnType: DataColumnTypeSchema,
1283
+ DataColumnUpdate: DataColumnUpdateSchema,
1284
+ DataRelationshipType: DataRelationshipTypeSchema,
1285
+ QueryResultColumn: QueryResultColumnSchema,
1286
+ BatchQueryPayload: BatchQueryPayloadSchema,
1287
+ QueryResult: QueryResultSchema,
1288
+ QueryPayload: QueryPayloadSchema,
1289
+ DataStoreMutateRowsResult: DataStoreMutateRowsResultSchema,
1290
+ DataStoreMutateRowsPayload: DataStoreMutateRowsPayloadSchema,
1291
+ DataTableSummary: DataTableSummarySchema,
1292
+ DataStoreVersionTableState: DataStoreVersionTableStateSchema,
1293
+ DataStoreStatus: DataStoreStatusSchema,
1294
+ ImportDataFormat: ImportDataFormatSchema,
1295
+ ImportDataSource: ImportDataSourceSchema,
1296
+ DataRelationshipForAI: DataRelationshipForAISchema,
1297
+ DataForeignKeyForAI: DataForeignKeyForAISchema,
1298
+ DataColumnForAI: DataColumnForAISchema,
1299
+ ImportStatus: ImportStatusSchema,
1300
+ DataStoreTableDropResult: DataStoreTableDropResultSchema,
1301
+ DataStoreArchiveResult: DataStoreArchiveResultSchema,
1302
+ CreateSnapshotPayload: CreateSnapshotPayloadSchema,
1303
+ DataStoreDownloadInfo: DataStoreDownloadInfoSchema,
1304
+ CreateDataStorePayload: CreateDataStorePayloadSchema,
1305
+ } as const satisfies Record<string, z.ZodType>;
1306
+
1307
+ const DATA_STORE_SCHEMA_SCHEMAS = {
1308
+ QueryValidationResult: QueryValidationResultSchema,
1309
+ DataColumn: DataColumnSchema,
1310
+ AlterTableOperation: AlterTableOperationSchema,
1311
+ DataRelationship: DataRelationshipSchema,
1312
+ CreateTablePayload: CreateTablePayloadSchema,
1313
+ BatchQueryResultItem: BatchQueryResultItemSchema,
1314
+ DataTableSummaryArray: DataTableSummaryArraySchema,
1315
+ DataStoreVersionTableStateMap: DataStoreVersionTableStateMapSchema,
1316
+ DataStoreItem: DataStoreItemSchema,
1317
+ ImportTableData: ImportTableDataSchema,
1318
+ DataStoreTableDetail: DataStoreTableDetailSchema,
1319
+ DataColumnForAIMap: DataColumnForAIMapSchema,
1320
+ ImportJob: ImportJobSchema,
1321
+ CreateTablesPayload: CreateTablesPayloadSchema,
1322
+ DataTable: DataTableSchema,
1323
+ AlterTablePayload: AlterTablePayloadSchema,
1324
+ UpdateSchemaPayload: UpdateSchemaPayloadSchema,
1325
+ BatchQueryResult: BatchQueryResultSchema,
1326
+ DataStoreVersion: DataStoreVersionSchema,
1327
+ DataStoreItemArray: DataStoreItemArraySchema,
1328
+ ImportTableDataMap: ImportTableDataMapSchema,
1329
+ DataTableForAI: DataTableForAISchema,
1330
+ DataStoreFullSchemaResponse: DataStoreFullSchemaResponseSchema,
1331
+ DataTableArray: DataTableArraySchema,
1332
+ DataSchema: DataSchemaSchema,
1333
+ DataStoreVersionArray: DataStoreVersionArraySchema,
1334
+ ImportDataPayload: ImportDataPayloadSchema,
1335
+ DataTableForAIMap: DataTableForAIMapSchema,
1336
+ DataStore: DataStoreSchema,
1337
+ DataSchemaForAI: DataSchemaForAISchema,
1338
+ DataStoreSchemaResponse: DataStoreSchemaResponseSchema,
1339
+ } as const satisfies Record<string, z.ZodType>;
1340
+
1341
+ const COST_ANALYTICS_SCHEMAS = {
1342
+ CostAnalyticsQuery: CostAnalyticsQuerySchema,
1343
+ CostRunPriceQuery: CostRunPriceQuerySchema,
1344
+ CostModelPricesQuery: CostModelPricesQuerySchema,
1345
+ CostExportQuery: CostExportQuerySchema,
1346
+ ModelPricing: ModelPricingSchema,
1347
+ CostTimeSeriesPoint: CostTimeSeriesPointSchema,
1348
+ CostSummary: CostSummarySchema,
1349
+ ModelPriceComparison: ModelPriceComparisonSchema,
1350
+ CostByDimension: CostByDimensionSchema,
1351
+ ModelPriceComparisonResponse: ModelPriceComparisonResponseSchema,
1352
+ CostAnalyticsResponse: CostAnalyticsResponseSchema,
1353
+ CostRunPriceResponse: CostRunPriceResponseSchema,
1354
+ PricingSyncPayload: PricingSyncPayloadSchema,
1355
+ PricingSyncDayResult: PricingSyncDayResultSchema,
1356
+ PricingSyncResult: PricingSyncResultSchema,
1357
+ } as const satisfies Record<string, z.ZodType>;
1358
+
1359
+ const BULK_CONTENT_OPERATION_SCHEMAS = {
1360
+ BulkObjectDeleteResult: BulkObjectDeleteResultSchema,
1361
+ BulkObjectUpdateResult: BulkObjectUpdateResultSchema,
1362
+ BulkObjectCreateResult: BulkObjectCreateResultSchema,
1363
+ BulkOperationResult: BulkOperationResultSchema,
1364
+ BulkOperationPayload: BulkOperationPayloadSchema,
1365
+ BulkOperationResponse: BulkOperationResponseSchema,
1366
+ } as const satisfies Record<string, z.ZodType>;
1367
+
1368
+ const DOCUMENT_PROCESSING_SCHEMAS = {
1369
+ GroundedAssistantResponse: GroundedAssistantResponseSchema,
1370
+ GroundedExtractionRequest: GroundedExtractionRequestSchema,
1371
+ GroundedVerificationBreakdown: GroundedVerificationBreakdownSchema,
1372
+ GroundedExtractionVerdict: GroundedExtractionVerdictSchema,
1373
+ DocProcessorOutputFormat: DocProcessorOutputFormatSchema,
1374
+ DocAnalyzerProgressStatus: DocAnalyzerProgressStatusSchema,
1375
+ DocumentProcessingPhase: DocumentProcessingPhaseSchema,
1376
+ WorkflowExecutionStatus: WorkflowExecutionStatusSchema,
1377
+ DocumentPrepOptions: DocumentPrepOptionsSchema,
1378
+ MarkdownRenditionFormat: MarkdownRenditionFormatSchema,
1379
+ RenderMarkdownStatusQuery: RenderMarkdownStatusQuerySchema,
1380
+ RenderMarkdownStartResponse: RenderMarkdownStartResponseSchema,
1381
+ PdfRenderingMetadata: PdfRenderingMetadataSchema,
1382
+ GroundedExtractionResultResponse: GroundedExtractionResultResponseSchema,
1383
+ DocAnalyzerProgress: DocAnalyzerProgressSchema,
1384
+ RenderMarkdownStatusResponse: RenderMarkdownStatusResponseSchema,
1385
+ RenderMarkdownPayload: RenderMarkdownPayloadSchema,
1386
+ DocAnalyzeRunStatusResponse: DocAnalyzeRunStatusResponseSchema,
1387
+ } as const satisfies Record<string, z.ZodType>;
1388
+
1389
+ const INDEXING_SCHEMAS = {
1390
+ StartProjectReindexPayload: StartProjectReindexPayloadSchema,
1391
+ ReindexAgentRunsResponse: ReindexAgentRunsResponseSchema,
1392
+ ReindexAgentRunsPayload: ReindexAgentRunsPayloadSchema,
1393
+ IndexingStatusResponse: IndexingStatusResponseSchema,
1394
+ DriftAnalysisResult: DriftAnalysisResultSchema,
1395
+ DriftAnalysisProgress: DriftAnalysisProgressSchema,
1396
+ DriftAnalysisStatusResponse: DriftAnalysisStatusResponseSchema,
1397
+ } as const satisfies Record<string, z.ZodType>;
1398
+
1399
+ const EMBEDDING_ADMIN_SCHEMAS = {
1400
+ EmbeddingsStatusResponse: EmbeddingsStatusResponseSchema,
1401
+ ProjectConfigurationEmbeddingEnablePayload: ProjectConfigurationEmbeddingEnablePayloadSchema,
1402
+ } as const satisfies Record<string, z.ZodType>;
1403
+
1404
+ const COMMAND_SCHEMAS = {
1405
+ GenericCommandResponse: GenericCommandResponseSchema,
1406
+ } as const satisfies Record<string, z.ZodType>;
1407
+
1408
+ const PROCESS_DSL_SCHEMAS = {
1409
+ DurationValue: ProcessSchemas.DurationValueSchema,
1410
+ JsonLogicRule: ProcessSchemas.JsonLogicRuleSchema,
1411
+ DSLWorkflowDefinition: ProcessSchemas.DSLWorkflowDefinitionSchema,
1412
+ ActivityFetchSpec: ProcessSchemas.ActivityFetchSpecSchema,
1413
+ WorkflowSearchAttributeValue: ProcessSchemas.WorkflowSearchAttributeValueSchema,
1414
+ DSLRetryPolicy: ProcessSchemas.DSLRetryPolicySchema,
1415
+ ActivityFetchSpecMap: ProcessSchemas.ActivityFetchSpecMapSchema,
1416
+ WorkflowSearchAttributeValueMap: ProcessSchemas.WorkflowSearchAttributeValueMapSchema,
1417
+ DSLActivityOptions: ProcessSchemas.DSLActivityOptionsSchema,
1418
+ DSLActivitySpec: ProcessSchemas.DSLActivitySpecSchema,
1419
+ WorkflowSearchAttributes: ProcessSchemas.WorkflowSearchAttributesSchema,
1420
+ DSLActivityStep: ProcessSchemas.DSLActivityStepSchema,
1421
+ DSLChildWorkflowStep: ProcessSchemas.DSLChildWorkflowStepSchema,
1422
+ DSLWorkflowDefinitionResponse: ProcessSchemas.DSLWorkflowDefinitionResponseSchema,
1423
+ DSLWorkflowSpec: ProcessSchemas.DSLWorkflowSpecSchema,
1424
+ DSLWorkflowSpecWithActivities: ProcessSchemas.DSLWorkflowSpecWithActivitiesSchema,
1425
+ DSLWorkflowSpecWithSteps: ProcessSchemas.DSLWorkflowSpecWithStepsSchema,
1426
+ DSLWorkflowStep: ProcessSchemas.DSLWorkflowStepSchema,
1427
+ WorkflowDefinitionPayload: ProcessSchemas.WorkflowDefinitionPayloadSchema,
1428
+ WorkflowDefinitionPayloadWithActivities: ProcessSchemas.WorkflowDefinitionPayloadWithActivitiesSchema,
1429
+ WorkflowDefinitionPayloadWithSteps: ProcessSchemas.WorkflowDefinitionPayloadWithStepsSchema,
1430
+ } as const satisfies Record<string, z.ZodType>;
1431
+
1432
+ const AGENT_MESSAGE_SCHEMAS = {
1433
+ AgentMessageType: AgentRunSchemas.AgentMessageTypeSchema,
1434
+ ConversationFile: AgentRunSchemas.ConversationFileSchema,
1435
+ AgentMessageDetails: AgentRunSchemas.AgentMessageDetailsSchema,
1436
+ CompactMessage: AgentRunSchemas.CompactMessageSchema,
1437
+ } as const satisfies Record<string, z.ZodType>;
1438
+
1439
+ const PROCESS_DEFINITION_SCHEMAS = {
1440
+ ProcessDefinitionMetadata: ProcessSchemas.ProcessDefinitionMetadataSchema,
1441
+ BranchJoinPolicy: ProcessSchemas.BranchJoinPolicySchema,
1442
+ ParallelFailurePolicy: ProcessSchemas.ParallelFailurePolicySchema,
1443
+ ParallelCollectField: ProcessSchemas.ParallelCollectFieldSchema,
1444
+ ParallelCollectMode: ProcessSchemas.ParallelCollectModeSchema,
1445
+ HumanTaskDefinition: ProcessSchemas.HumanTaskDefinitionSchema,
1446
+ TransitionTrigger: ProcessSchemas.TransitionTriggerSchema,
1447
+ ProcessNodeReturnsDefinition: ProcessSchemas.ProcessNodeReturnsDefinitionSchema,
1448
+ ProcessNodeRunType: ProcessSchemas.ProcessNodeRunTypeSchema,
1449
+ ProcessNodeType: ProcessSchemas.ProcessNodeTypeSchema,
1450
+ ProcessContextDefinition: ProcessSchemas.ProcessContextDefinitionSchema,
1451
+ ProcessDefinitionFormatVersion: ProcessSchemas.ProcessDefinitionFormatVersionSchema,
1452
+ ProcessDefinitionStatus: ProcessSchemas.ProcessDefinitionStatusSchema,
1453
+ RevertProcessDefinitionPayload: ProcessSchemas.RevertProcessDefinitionPayloadSchema,
1454
+ RetryProcessNodePayload: ProcessSchemas.RetryProcessNodePayloadSchema,
1455
+ PublishProcessDefinitionPayload: ProcessSchemas.PublishProcessDefinitionPayloadSchema,
1456
+ ProcessDefinitionRevisionInfo: ProcessSchemas.ProcessDefinitionRevisionInfoSchema,
1457
+ NodeHistoryEntry: ProcessSchemas.NodeHistoryEntrySchema,
1458
+ BranchDefinition: ProcessSchemas.BranchDefinitionSchema,
1459
+ ParallelCollectDefinition: ProcessSchemas.ParallelCollectDefinitionSchema,
1460
+ TransitionDefinition: ProcessSchemas.TransitionDefinitionSchema,
1461
+ BranchNodeBranchDefinition: ProcessSchemas.BranchNodeBranchDefinitionSchema,
1462
+ CreateProcessDefinitionPayload: ProcessSchemas.CreateProcessDefinitionPayloadSchema,
1463
+ NodeDefinition: ProcessSchemas.NodeDefinitionSchema,
1464
+ NodeDefinitionMap: ProcessSchemas.NodeDefinitionMapSchema,
1465
+ ProcessDefinition: ProcessSchemas.ProcessDefinitionSchema,
1466
+ ProcessDefinitionArray: ProcessSchemas.ProcessDefinitionArraySchema,
1467
+ ProcessDefinitionBody: ProcessSchemas.ProcessDefinitionBodySchema,
1468
+ UpdateProcessDefinitionPayload: ProcessSchemas.UpdateProcessDefinitionPayloadSchema,
1469
+ ListProcessDefinitionsQuery: ProcessSchemas.ListProcessDefinitionsQuerySchema,
1470
+ } as const satisfies Record<string, z.ZodType>;
1471
+
1472
+ const PROCESS_SCRIPT_SCHEMAS = {
1473
+ ProcessScriptInlineSource: ProcessSchemas.ProcessScriptInlineSourceSchema,
1474
+ ProcessScriptLanguage: ProcessSchemas.ProcessScriptLanguageSchema,
1475
+ ProcessScriptSource: ProcessSchemas.ProcessScriptSourceSchema,
1476
+ ProcessScriptResource: ProcessSchemas.ProcessScriptResourceSchema,
1477
+ ProcessScriptResourceMap: ProcessSchemas.ProcessScriptResourceMapSchema,
1478
+ ProcessResourcesDefinition: ProcessSchemas.ProcessResourcesDefinitionSchema,
1479
+ } as const satisfies Record<string, z.ZodType>;
1480
+
1481
+ const CONTENT_OBJECT_SCHEMAS = {
1482
+ GenerationRunMetadata: ContentSchemas.GenerationRunMetadataSchema,
1483
+ ContentObjectUserPermissions: ContentSchemas.ContentObjectUserPermissionsSchema,
1484
+ ContentSource: ContentSchemas.ContentSourceSchema,
1485
+ ContentObjectStatus: ContentSchemas.ContentObjectStatusSchema,
1486
+ InheritedPropertyMetadata: ContentSchemas.InheritedPropertyMetadataSchema,
1487
+ TranscriptSegment: ContentSchemas.TranscriptSegmentSchema,
1488
+ ContentObjectTypeArray: ContentSchemas.ContentObjectTypeArraySchema,
1489
+ ContentObjectTextResponse: ContentSchemas.ContentObjectTextResponseSchema,
1490
+ DeleteContentObjectResult: ContentSchemas.DeleteContentObjectResultSchema,
1491
+ Transcript: ContentSchemas.TranscriptSchema,
1492
+ CreateContentObjectPayload: ContentSchemas.CreateContentObjectPayloadSchema,
1493
+ UpdateContentObjectPayload: ContentSchemas.UpdateContentObjectPayloadSchema,
1494
+ ContentObjectApiTypeRef: ContentSchemas.ContentObjectApiTypeRefSchema,
1495
+ ContentObjectApiResponse: ContentSchemas.ContentObjectApiResponseSchema,
1496
+ ContentObjectItemApiResponse: ContentSchemas.ContentObjectItemApiResponseSchema,
1497
+ ContentObjectItemApiResponseArray: ContentSchemas.ContentObjectItemApiResponseArraySchema,
1498
+ ContentObjectProcessingPriority: ContentSchemas.ContentObjectProcessingPrioritySchema,
1499
+ ContentObjectApiResponseArray: ContentSchemas.ContentObjectApiResponseArraySchema,
1500
+ CreateContentObjectHeaders: ContentSchemas.CreateContentObjectHeadersSchema,
1501
+ CreateContentObjectQuery: ContentSchemas.CreateContentObjectQuerySchema,
1502
+ UpdateContentObjectHeaders: ContentSchemas.UpdateContentObjectHeadersSchema,
1503
+ UpdateContentObjectQuery: ContentSchemas.UpdateContentObjectQuerySchema,
1504
+ } as const satisfies Record<string, z.ZodType>;
1505
+
1506
+ const CONTENT_EXPORT_SCHEMAS = {
1507
+ RevisionInfo: ContentSchemas.RevisionInfoSchema,
1508
+ StartContentObjectExportResponse: ContentSchemas.StartContentObjectExportResponseSchema,
1509
+ ExportContentObjectsIncludeOptions: ContentSchemas.ExportContentObjectsIncludeOptionsSchema,
1510
+ ExportContentObjectsFilter: ContentSchemas.ExportContentObjectsFilterSchema,
1511
+ ContentObjectApiRevision: ContentSchemas.ContentObjectApiRevisionSchema,
1512
+ ContentObjectExportArtifactFile: ContentSchemas.ContentObjectExportArtifactFileSchema,
1513
+ GetRenditionResponse: ContentSchemas.GetRenditionResponseSchema,
1514
+ ContentObjectExportResult: ContentSchemas.ContentObjectExportResultSchema,
1515
+ ContentObjectExportProgress: ContentSchemas.ContentObjectExportProgressSchema,
1516
+ ExportPropertiesResponse: ContentSchemas.ExportPropertiesResponseSchema,
1517
+ DeleteContentObjectExportResponse: ContentSchemas.DeleteContentObjectExportResponseSchema,
1518
+ StartContentObjectExportRequest: ContentSchemas.StartContentObjectExportRequestSchema,
1519
+ ContentObjectExportArtifact: ContentSchemas.ContentObjectExportArtifactSchema,
1520
+ ContentObjectExportStatusResponse: ContentSchemas.ContentObjectExportStatusResponseSchema,
1521
+ ListContentObjectExportsResponse: ContentSchemas.ListContentObjectExportsResponseSchema,
1522
+ ExportPropertiesPayload: ContentSchemas.ExportPropertiesPayloadSchema,
1523
+ CostExportCsvResponse: ContentSchemas.CostExportCsvResponseSchema,
1524
+ GetObjectRenditionQuery: ContentSchemas.GetObjectRenditionQuerySchema,
1525
+ } as const satisfies Record<string, z.ZodType>;
1526
+
1527
+ const CONTENT_SEARCH_SCHEMAS = {
1528
+ scoreAggregationTypes: ContentSchemas.scoreAggregationTypesSchema,
1529
+ dynamicScalingTypes: ContentSchemas.dynamicScalingTypesSchema,
1530
+ Embedding: ContentSchemas.EmbeddingSchema,
1531
+ SupportedEmbeddingTypes: ContentSchemas.SupportedEmbeddingTypesSchema,
1532
+ SetObjectEmbeddingsResponse: ContentSchemas.SetObjectEmbeddingsResponseSchema,
1533
+ Record_SearchTypes_number: ContentSchemas.Record_SearchTypes_numberSchema,
1534
+ EmbeddingSearchConfig: ContentSchemas.EmbeddingSearchConfigSchema,
1535
+ EmbeddingMap: ContentSchemas.EmbeddingMapSchema,
1536
+ FindPayload: ContentSchemas.FindPayloadSchema,
1537
+ ContentEmbeddingMap: ContentSchemas.ContentEmbeddingMapSchema,
1538
+ VectorSearchQuery: ContentSchemas.VectorSearchQuerySchema,
1539
+ ComplexSearchQuery: ContentSchemas.ComplexSearchQuerySchema,
1540
+ ComputeObjectFacetPayload: ContentSchemas.ComputeObjectFacetPayloadSchema,
1541
+ ComplexSearchPayload: ContentSchemas.ComplexSearchPayloadSchema,
1542
+ ObjectSearchResponse: ContentSchemas.ObjectSearchResponseSchema,
1543
+ } as const satisfies Record<string, z.ZodType>;
1544
+
1545
+ const EVENT_SUBSCRIPTION_SCHEMAS = {
1546
+ EventPriority: EventSchemas.EventPrioritySchema,
1547
+ WorkflowRuleInputType: EventSchemas.WorkflowRuleInputTypeSchema,
1548
+ WorkflowRuleItem: EventSchemas.WorkflowRuleItemSchema,
1549
+ WorkflowRule: EventSchemas.WorkflowRuleSchema,
1550
+ CreateWorkflowRulePayload: EventSchemas.CreateWorkflowRulePayloadSchema,
1551
+ UpdateWorkflowRulePayload: EventSchemas.UpdateWorkflowRulePayloadSchema,
1552
+ ListEventDeliveriesPayload: EventSchemas.ListEventDeliveriesPayloadSchema,
1553
+ WorkflowRuleItemArray: EventSchemas.WorkflowRuleItemArraySchema,
1554
+ EventSubscriptionFilter: EventSchemas.EventSubscriptionFilterSchema,
1555
+ ListEventDeliveriesResponse: EventSchemas.ListEventDeliveriesResponseSchema,
1556
+ CreateEventSubscriptionPayload: EventSchemas.CreateEventSubscriptionPayloadSchema,
1557
+ EventSubscription: EventSchemas.EventSubscriptionSchema,
1558
+ EventSubscriptionArray: EventSchemas.EventSubscriptionArraySchema,
1559
+ EventSubscriptionMutationResponse: EventSchemas.EventSubscriptionMutationResponseSchema,
1560
+ UpdateEventSubscriptionPayload: EventSchemas.UpdateEventSubscriptionPayloadSchema,
1561
+ ServerSentEventsResponse: EventSchemas.ServerSentEventsResponseSchema,
1562
+ StreamEventDeliveriesQuery: EventSchemas.StreamEventDeliveriesQuerySchema,
1563
+ } as const satisfies Record<string, z.ZodType>;
1564
+
1565
+ const PROCESS_RUNTIME_SCHEMAS = {
1566
+ ProcessRunType: ProcessSchemas.ProcessRunTypeSchema,
1567
+ ProcessRunConfig: ProcessSchemas.ProcessRunConfigSchema,
1568
+ ProcessHistoryRef: ProcessSchemas.ProcessHistoryRefSchema,
1569
+ ProcessHistoryResponse: ProcessSchemas.ProcessHistoryResponseSchema,
1570
+ ProcessContextResponse: ProcessSchemas.ProcessContextResponseSchema,
1571
+ WorkflowExecutionStartResult: ProcessSchemas.WorkflowExecutionStartResultSchema,
1572
+ ImportSpec: ProcessSchemas.ImportSpecSchema,
1573
+ AnswerProcessTaskPayload: ProcessSchemas.AnswerProcessTaskPayloadSchema,
1574
+ AdvanceProcessPayload: ProcessSchemas.AdvanceProcessPayloadSchema,
1575
+ ProcessState: ProcessSchemas.ProcessStateSchema,
1576
+ WorkflowExecutionStartResultArray: ProcessSchemas.WorkflowExecutionStartResultArraySchema,
1577
+ RecordProcessRunPayload: ProcessSchemas.RecordProcessRunPayloadSchema,
1578
+ } as const satisfies Record<string, z.ZodType>;
1579
+
1580
+ const EVENT_DELIVERY_SCHEMAS = {
1581
+ AgentDeliveryMatchMode: EventSchemas.AgentDeliveryMatchModeSchema,
1582
+ WebhookPayloadMode: EventSchemas.WebhookPayloadModeSchema,
1583
+ WebhookSigningMode: EventSchemas.WebhookSigningModeSchema,
1584
+ SemanticConditionOnError: EventSchemas.SemanticConditionOnErrorSchema,
1585
+ SemanticConditionMode: EventSchemas.SemanticConditionModeSchema,
1586
+ AgentSemanticEvaluator: EventSchemas.AgentSemanticEvaluatorSchema,
1587
+ InteractionSemanticEvaluator: EventSchemas.InteractionSemanticEvaluatorSchema,
1588
+ SemanticEvaluationStatus: EventSchemas.SemanticEvaluationStatusSchema,
1589
+ EventDeliveryIntentStatus: EventSchemas.EventDeliveryIntentStatusSchema,
1590
+ EventOutboxStatus: EventSchemas.EventOutboxStatusSchema,
1591
+ EventDeliverySortField: EventSchemas.EventDeliverySortFieldSchema,
1592
+ WebhookEventDeliveryTarget: EventSchemas.WebhookEventDeliveryTargetSchema,
1593
+ AppEventDeliveryTarget: EventSchemas.AppEventDeliveryTargetSchema,
1594
+ WorkflowEventDeliveryTarget: EventSchemas.WorkflowEventDeliveryTargetSchema,
1595
+ EventDeliveryQueueFailureSummary: EventSchemas.EventDeliveryQueueFailureSummarySchema,
1596
+ EventOutboxQueueSummary: EventSchemas.EventOutboxQueueSummarySchema,
1597
+ EventDeliveryQueueSortField: EventSchemas.EventDeliveryQueueSortFieldSchema,
1598
+ AgentEventDeliveryTarget: EventSchemas.AgentEventDeliveryTargetSchema,
1599
+ WebhookEventDeliveryTargetInput: EventSchemas.WebhookEventDeliveryTargetInputSchema,
1600
+ AppEventDeliveryTargetInput: EventSchemas.AppEventDeliveryTargetInputSchema,
1601
+ WorkflowEventDeliveryTargetInput: EventSchemas.WorkflowEventDeliveryTargetInputSchema,
1602
+ SemanticEvaluator: EventSchemas.SemanticEvaluatorSchema,
1603
+ SemanticEvaluationRecord: EventSchemas.SemanticEvaluationRecordSchema,
1604
+ EventDeliveryQueueSubscriptionSummary: EventSchemas.EventDeliveryQueueSubscriptionSummarySchema,
1605
+ EventDeliveryQueueSummaryPayload: EventSchemas.EventDeliveryQueueSummaryPayloadSchema,
1606
+ CancelEventDeliveryIntentsPayload: EventSchemas.CancelEventDeliveryIntentsPayloadSchema,
1607
+ CancelEventDeliveryIntentsResponse: EventSchemas.CancelEventDeliveryIntentsResponseSchema,
1608
+ EventSemanticCondition: EventSchemas.EventSemanticConditionSchema,
1609
+ EventDeliveryIntentSummary: EventSchemas.EventDeliveryIntentSummarySchema,
1610
+ EventDeliveryQueueSummaryResponse: EventSchemas.EventDeliveryQueueSummaryResponseSchema,
1611
+ EventDeliverySummary: EventSchemas.EventDeliverySummarySchema,
1612
+ EventDeliveryTarget: EventSchemas.EventDeliveryTargetSchema,
1613
+ EventDeliveryTargetInput: EventSchemas.EventDeliveryTargetInputSchema,
1614
+ ProcessEventDeliveryTarget: EventSchemas.ProcessEventDeliveryTargetSchema,
1615
+ } as const satisfies Record<string, z.ZodType>;
1616
+
1617
+ const EVENT_INGEST_SCHEMAS = {
1618
+ EventIngestSignatureEncoding: EventSchemas.EventIngestSignatureEncodingSchema,
1619
+ EventIngestSignatureAlgorithm: EventSchemas.EventIngestSignatureAlgorithmSchema,
1620
+ EventIngestResourceRule: EventSchemas.EventIngestResourceRuleSchema,
1621
+ EventIngestSignatureConfig: EventSchemas.EventIngestSignatureConfigSchema,
1622
+ EventIngestTransform: EventSchemas.EventIngestTransformSchema,
1623
+ EventIngestChannel: EventSchemas.EventIngestChannelSchema,
1624
+ EventIngestChannelMutationResponse: EventSchemas.EventIngestChannelMutationResponseSchema,
1625
+ CreateEventIngestChannelPayload: EventSchemas.CreateEventIngestChannelPayloadSchema,
1626
+ UpdateEventIngestChannelPayload: EventSchemas.UpdateEventIngestChannelPayloadSchema,
1627
+ EventIngestChannelArray: EventSchemas.EventIngestChannelArraySchema,
1628
+ } as const satisfies Record<string, z.ZodType>;
1629
+
1630
+ const COLLECTION_SCHEMAS = {
1631
+ CollectionSecuritySettingsResponse: ContentSchemas.CollectionSecuritySettingsResponseSchema,
1632
+ CollectionMembersUpdateResult: ContentSchemas.CollectionMembersUpdateResultSchema,
1633
+ CollectionMembersUpdatePayload: ContentSchemas.CollectionMembersUpdatePayloadSchema,
1634
+ CollectionChildrenUpdateResult: ContentSchemas.CollectionChildrenUpdateResultSchema,
1635
+ CollectionChildrenUpdatePayload: ContentSchemas.CollectionChildrenUpdatePayloadSchema,
1636
+ CollectionStatus: ContentSchemas.CollectionStatusSchema,
1637
+ CollectionPropagationResponse: ContentSchemas.CollectionPropagationResponseSchema,
1638
+ CreateCollectionPayload: ContentSchemas.CreateCollectionPayloadSchema,
1639
+ UpdateCollectionPayload: ContentSchemas.UpdateCollectionPayloadSchema,
1640
+ ComplexCollectionSearchQuery: ContentSchemas.ComplexCollectionSearchQuerySchema,
1641
+ Collection: ContentSchemas.CollectionSchema,
1642
+ ComputeCollectionFacetPayload: ContentSchemas.ComputeCollectionFacetPayloadSchema,
1643
+ CollectionArray: ContentSchemas.CollectionArraySchema,
1644
+ CollectionMembersQuery: ContentSchemas.CollectionMembersQuerySchema,
1645
+ } as const satisfies Record<string, z.ZodType>;
1646
+
1647
+ const AGENT_ARTIFACT_SCHEMAS = {
1648
+ UpdateAgentArtifactContentResponse: AgentRunSchemas.UpdateAgentArtifactContentResponseSchema,
1649
+ UpdateAgentArtifactContentPayload: AgentRunSchemas.UpdateAgentArtifactContentPayloadSchema,
1650
+ AgentArtifactContentResponse: AgentRunSchemas.AgentArtifactContentResponseSchema,
1651
+ AgentArtifactUrlResponse: AgentRunSchemas.AgentArtifactUrlResponseSchema,
1652
+ AgentRunArtifactPathArray: AgentRunSchemas.AgentRunArtifactPathArraySchema,
1653
+ AgentRunArtifactUploadHeaders: AgentRunSchemas.AgentRunArtifactUploadHeadersSchema,
1654
+ AgentRunArtifactQuery: AgentRunSchemas.AgentRunArtifactQuerySchema,
1655
+ AgentRunArtifactsQuery: AgentRunSchemas.AgentRunArtifactsQuerySchema,
1656
+ } as const satisfies Record<string, z.ZodType>;
1657
+
1658
+ const AGENT_RUN_SCHEMAS = {
1659
+ TerminateAgentRunResponse: AgentRunSchemas.TerminateAgentRunResponseSchema,
1660
+ SignalAgentPayload: AgentRunSchemas.SignalAgentPayloadSchema,
1661
+ PostAgentRunUpdateResponse: AgentRunSchemas.PostAgentRunUpdateResponseSchema,
1662
+ FileProcessingStatus: AgentRunSchemas.FileProcessingStatusSchema,
1663
+ AgentRunArchiveState: AgentRunSchemas.AgentRunArchiveStateSchema,
1664
+ ResourceRef: AgentRunSchemas.ResourceRefSchema,
1665
+ SignalAgentResponse: AgentRunSchemas.SignalAgentResponseSchema,
1666
+ AutonomousRunResponse: AgentRunSchemas.AutonomousRunResponseSchema,
1667
+ AgentRun: AgentRunSchemas.AgentRunSchema,
1668
+ CreateAgentRunPayload: AgentRunSchemas.CreateAgentRunPayloadSchema,
1669
+ CreateProcessRunByIdPayload: AgentRunSchemas.CreateProcessRunByIdPayloadSchema,
1670
+ CreateProcessRunWithDefinitionPayload: AgentRunSchemas.CreateProcessRunWithDefinitionPayloadSchema,
1671
+ CreateRunPayload: AgentRunSchemas.CreateRunPayloadSchema,
1672
+ SearchAgentRunsResponse: AgentRunSchemas.SearchAgentRunsResponseSchema,
1673
+ AgentRunUpdatesResponse: AgentRunSchemas.AgentRunUpdatesResponseSchema,
1674
+ PostAgentRunUpdatePayload: AgentRunSchemas.PostAgentRunUpdatePayloadSchema,
1675
+ AgentRunResponse: AgentRunSchemas.AgentRunResponseSchema,
1676
+ ListAgentRunsResponse: AgentRunSchemas.ListAgentRunsResponseSchema,
1677
+ ProgrammaticRunResponse: AgentRunSchemas.ProgrammaticRunResponseSchema,
1678
+ SupervisedRunResponse: AgentRunSchemas.SupervisedRunResponseSchema,
1679
+ AgentRunInternals: AgentRunSchemas.AgentRunInternalsSchema,
1680
+ AgentRunDetailsQuery: AgentRunSchemas.AgentRunDetailsQuerySchema,
1681
+ ListAgentRunsQuery: AgentRunSchemas.ListAgentRunsQuerySchema,
1682
+ RecordAgentRunPayload: AgentRunSchemas.RecordAgentRunPayloadSchema,
1683
+ RecordRunPayload: AgentRunSchemas.RecordRunPayloadSchema,
1684
+ AgentRunUpdatesQuery: AgentRunSchemas.AgentRunUpdatesQuerySchema,
1685
+ SearchAgentRunsQuery: AgentRunSchemas.SearchAgentRunsQuerySchema,
1686
+ StreamAgentRunQuery: AgentRunSchemas.StreamAgentRunQuerySchema,
1687
+ UpdateAgentRunStatusPayload: AgentRunSchemas.UpdateAgentRunStatusPayloadSchema,
1688
+ AgentEvent: AgentRunSchemas.AgentEventSchema,
1689
+ IngestAgentEventsPayload: AgentRunSchemas.IngestAgentEventsPayloadSchema,
1690
+ IngestAgentEventsResponse: AgentRunSchemas.IngestAgentEventsResponseSchema,
1691
+ } as const satisfies Record<string, z.ZodType>;
1692
+
1693
+ const WORKFLOW_RUN_SCHEMAS = {
1694
+ WorkflowQueryResult: WorkflowRunSchemas.WorkflowQueryResultSchema,
1695
+ WorkflowUpdatePublishResponse: WorkflowRunSchemas.WorkflowUpdatePublishResponseSchema,
1696
+ ListWorkflowRunsPayload: WorkflowRunSchemas.ListWorkflowRunsPayloadSchema,
1697
+ WorkflowDefinitionRef: WorkflowRunSchemas.WorkflowDefinitionRefSchema,
1698
+ WorkflowRun: WorkflowRunSchemas.WorkflowRunSchema,
1699
+ EventError: WorkflowRunSchemas.EventErrorSchema,
1700
+ SignalEventProperties: WorkflowRunSchemas.SignalEventPropertiesSchema,
1701
+ WorkflowInputFile: WorkflowRunSchemas.WorkflowInputFileSchema,
1702
+ WorkflowActionResponse: WorkflowRunSchemas.WorkflowActionResponseSchema,
1703
+ WorkflowDefinitionRefArray: WorkflowRunSchemas.WorkflowDefinitionRefArraySchema,
1704
+ ListWorkflowRunsResponse: WorkflowRunSchemas.ListWorkflowRunsResponseSchema,
1705
+ WorkflowRunEvent: WorkflowRunSchemas.WorkflowRunEventSchema,
1706
+ WorkflowInput: WorkflowRunSchemas.WorkflowInputSchema,
1707
+ WorkflowRunUpdatesResponse: WorkflowRunSchemas.WorkflowRunUpdatesResponseSchema,
1708
+ ExecuteWorkflowPayload: WorkflowRunSchemas.ExecuteWorkflowPayloadSchema,
1709
+ WorkflowHistory: WorkflowRunSchemas.WorkflowHistorySchema,
1710
+ WorkflowRunWithDetails: WorkflowRunSchemas.WorkflowRunWithDetailsSchema,
1711
+ BindRunWorkflowPayload: WorkflowRunSchemas.BindRunWorkflowPayloadSchema,
1712
+ WorkflowRunDetailsQuery: WorkflowRunSchemas.WorkflowRunDetailsQuerySchema,
1713
+ WorkflowRunUpdatesQuery: WorkflowRunSchemas.WorkflowRunUpdatesQuerySchema,
1714
+ WorkflowRunStreamQuery: WorkflowRunSchemas.WorkflowRunStreamQuerySchema,
1715
+ ActivityTypeDefinition: WorkflowRunSchemas.ActivityTypeDefinitionSchema,
1716
+ ActivityPropertyDefinition: WorkflowRunSchemas.ActivityPropertyDefinitionSchema,
1717
+ ActivityDefinition: WorkflowRunSchemas.ActivityDefinitionSchema,
1718
+ ActivityCatalog: WorkflowRunSchemas.ActivityCatalogSchema,
1719
+ WorkflowInteractionVars: WorkflowRunSchemas.WorkflowInteractionVarsSchema,
1720
+ ListWorkflowInteractionsResponse: WorkflowRunSchemas.ListWorkflowInteractionsResponseSchema,
1721
+ } as const satisfies Record<string, z.ZodType>;
1722
+
1723
+ const WORKFLOW_TASK_SCHEMAS = {
1724
+ RestartAgentRunPayload: WorkflowRunSchemas.RestartAgentRunPayloadSchema,
1725
+ TaskType_TIMER: WorkflowRunSchemas.TaskType_TIMERSchema,
1726
+ TaskType_SIGNAL: WorkflowRunSchemas.TaskType_SIGNALSchema,
1727
+ TaskType_CHILD_WORKFLOW: WorkflowRunSchemas.TaskType_CHILD_WORKFLOWSchema,
1728
+ TaskType_ACTIVITY: WorkflowRunSchemas.TaskType_ACTIVITYSchema,
1729
+ PendingActivity: WorkflowRunSchemas.PendingActivitySchema,
1730
+ AgentTask: WorkflowRunSchemas.AgentTaskSchema,
1731
+ TaskStatus: WorkflowRunSchemas.TaskStatusSchema,
1732
+ TimerTask: WorkflowRunSchemas.TimerTaskSchema,
1733
+ SignalTask: WorkflowRunSchemas.SignalTaskSchema,
1734
+ ChildWorkflowTask: WorkflowRunSchemas.ChildWorkflowTaskSchema,
1735
+ ActivityTask: WorkflowRunSchemas.ActivityTaskSchema,
1736
+ WorkflowTask: WorkflowRunSchemas.WorkflowTaskSchema,
1737
+ } as const satisfies Record<string, z.ZodType>;
1738
+
1739
+ const VIEW_EXECUTION_SCHEMAS = {
1740
+ ViewNavigationNode: ViewExecutionSchemas.ViewNavigationNodeSchema,
1741
+ ViewHitAnnotation: ViewExecutionSchemas.ViewHitAnnotationSchema,
1742
+ ViewExecutionWarning: ViewExecutionSchemas.ViewExecutionWarningSchema,
1743
+ ViewQueryPlanningFailureCode: ViewExecutionSchemas.ViewQueryPlanningFailureCodeSchema,
1744
+ ExecuteViewRequest: ViewExecutionSchemas.ExecuteViewRequestSchema,
1745
+ ViewNavigationResult: ViewExecutionSchemas.ViewNavigationResultSchema,
1746
+ ViewExecutionQueryPlan: ViewExecutionSchemas.ViewExecutionQueryPlanSchema,
1747
+ ViewExecutionSearchConfiguration: ViewExecutionSchemas.ViewExecutionSearchConfigurationSchema,
1748
+ ViewNavigationResultMap: ViewExecutionSchemas.ViewNavigationResultMapSchema,
1749
+ ViewExecutionSearchResult: ViewExecutionSchemas.ViewExecutionSearchResultSchema,
1750
+ ViewHit: ViewExecutionSchemas.ViewHitSchema,
1751
+ ViewExecutionDefinition: ViewExecutionSchemas.ViewExecutionDefinitionSchema,
1752
+ ViewExperienceConfiguration: ViewExecutionSchemas.ViewExperienceConfigurationSchema,
1753
+ ViewExecutionResult: ViewExecutionSchemas.ViewExecutionResultSchema,
1754
+ PreviewViewExperienceRequest: ViewExecutionSchemas.PreviewViewExperienceRequestSchema,
1755
+ } as const satisfies Record<string, z.ZodType>;
1756
+
1757
+ export function mergeComponentGroups(groups: Record<string, z.ZodType>[]): Record<string, z.ZodType> {
1758
+ const merged: Record<string, z.ZodType> = {};
1759
+ const duplicates: string[] = [];
1760
+ for (const group of groups) {
1761
+ for (const [name, schema] of Object.entries(group)) {
1762
+ if (name in merged) {
1763
+ duplicates.push(name);
1764
+ }
1765
+ merged[name] = schema;
1766
+ }
1767
+ }
1768
+ if (duplicates.length > 0) {
1769
+ throw new Error(
1770
+ `API component${duplicates.length > 1 ? 's' : ''} registered in more than one group: ` +
1771
+ `${duplicates.sort().join(', ')}. Each component must be listed in exactly one group — ` +
1772
+ 'a duplicate makes the runtime schema and ApiComponentType disagree.',
1773
+ );
1774
+ }
1775
+ return merged;
1776
+ }
1777
+
1778
+ const PROMPT_AUTHORING_SCHEMAS = {
1779
+ // The prompt-authoring endpoints: fork, render, search and the interaction usages a prompt
1780
+ // reports. `PromptTemplate` itself and its write payloads live with the interactions, which is
1781
+ // where the prompt tree they reference is defined.
1782
+ RenderPromptPayload: RenderPromptPayloadSchema,
1783
+ RenderPromptResponse: RenderPromptResponseSchema,
1784
+ PromptTemplateInteractionVersion: PromptTemplateInteractionVersionSchema,
1785
+ PromptTemplateForkPayload: PromptTemplateForkPayloadSchema,
1786
+ PromptSearchQuery: PromptSearchQuerySchema,
1787
+ PromptTemplateInteractionUsage: PromptTemplateInteractionUsageSchema,
1788
+ ComputePromptFacetPayload: ComputePromptFacetPayloadSchema,
1789
+ PromptTemplateInteractionsResponse: PromptTemplateInteractionsResponseSchema,
1790
+ PromptTemplateRefArray: PromptTemplateRefArraySchema,
1791
+ } as const satisfies Record<string, z.ZodType>;
1792
+
1793
+ const PROJECT_TOOL_SCHEMAS = {
1794
+ // The unified project-scoped tool registry: what `GET /tools` aggregates across
1795
+ // builtins, installed apps and interactions, and what `POST /tools/validate` resolves.
1796
+ ToolSource: ToolSourceSchema,
1797
+ ValidateToolNamesPayload: ValidateToolNamesPayloadSchema,
1798
+ ToolValidationResult: ToolValidationResultSchema,
1799
+ AggregatedTool: AggregatedToolSchema,
1800
+ ValidateToolNamesResponse: ValidateToolNamesResponseSchema,
1801
+ AggregatedToolArray: AggregatedToolArraySchema,
1802
+ ListProjectToolsQuery: ListProjectToolsQuerySchema,
1803
+ } as const satisfies Record<string, z.ZodType>;
1804
+
1805
+ const REMOTE_MCP_SCHEMAS = {
1806
+ // The OAuth handshake a remote MCP tool collection performs. Grouped by the
1807
+ // endpoints that serve it, though the schemas live in `./apps.js` beside the installation
1808
+ // they belong to.
1809
+ MCPToolAnnotations: MCPToolAnnotationsSchema,
1810
+ McpOAuthTokenResponse: McpOAuthTokenResponseSchema,
1811
+ McpOAuthTokenRequest: McpOAuthTokenRequestSchema,
1812
+ OAuthAuthStatus: OAuthAuthStatusSchema,
1813
+ OAuthMetadataResponse: OAuthMetadataResponseSchema,
1814
+ McpOAuthDisconnectResponse: McpOAuthDisconnectResponseSchema,
1815
+ McpOAuthConnectResponse: McpOAuthConnectResponseSchema,
1816
+ OAuthAuthorizeResponse: OAuthAuthorizeResponseSchema,
1817
+ OAuthAuthStatusArray: OAuthAuthStatusArraySchema,
1818
+ // The static-key alternative to that handshake: the key itself is write-only, so only the
1819
+ // setter payload and the configured/hint projection are published.
1820
+ SetMcpApiKeyRequest: SetMcpApiKeyRequestSchema,
1821
+ McpApiKeyStatus: McpApiKeyStatusSchema,
1822
+ } as const satisfies Record<string, z.ZodType>;
1823
+
1824
+ const AUDIT_TRAIL_SCHEMAS = {
1825
+ // The audit trail: the events the endpoint pages through and the aggregation it
1826
+ // computes over them.
1827
+ AuditMeter: AuditMeterSchema,
1828
+ KnownAuditAction: KnownAuditActionSchema,
1829
+ EventCategory: EventCategorySchema,
1830
+ AuditAggregationDimensionMap: AuditAggregationDimensionMapSchema,
1831
+ AuditAggregationDistinctField: AuditAggregationDistinctFieldSchema,
1832
+ AuditAggregationOperation: AuditAggregationOperationSchema,
1833
+ AuditAggregationResolution: AuditAggregationResolutionSchema,
1834
+ AuditAggregationDimension: AuditAggregationDimensionSchema,
1835
+ AuditAggregationDetailField: AuditAggregationDetailFieldSchema,
1836
+ AuditAction: AuditActionSchema,
1837
+ AuditAggregationRow: AuditAggregationRowSchema,
1838
+ AuditAggregationMetric: AuditAggregationMetricSchema,
1839
+ AuditAggregationGroup: AuditAggregationGroupSchema,
1840
+ AuditAggregationDetailFilter: AuditAggregationDetailFilterSchema,
1841
+ AuditTrailEvent: AuditTrailEventSchema,
1842
+ AuditAggregationResponse: AuditAggregationResponseSchema,
1843
+ AuditAggregationFilter: AuditAggregationFilterSchema,
1844
+ AuditTrailResponse: AuditTrailResponseSchema,
1845
+ AuditAggregationQuery: AuditAggregationQuerySchema,
1846
+ AuditTrailQuery: AuditTrailQuerySchema,
1847
+ } as const satisfies Record<string, z.ZodType>;
1848
+
1849
+ const VIEW_EXPERIENCE_SCHEMAS = {
1850
+ // View experiences: the search, navigation, results and display configuration a curated content
1851
+ // view is assembled from.
1852
+ ViewExperienceSchemaVersion: ViewExperienceSchemaVersionSchema,
1853
+ ViewSortClause: ViewSortClauseSchema,
1854
+ ViewResultMedia: ViewResultMediaSchema,
1855
+ ViewResultFieldFormat: ViewResultFieldFormatSchema,
1856
+ ViewBoardColumn: ViewBoardColumnSchema,
1857
+ ViewTableColumn: ViewTableColumnSchema,
1858
+ AgenticViewSearchConfiguration: AgenticViewSearchConfigurationSchema,
1859
+ ViewSearchFieldType: ViewSearchFieldTypeSchema,
1860
+ ViewSearchFieldDefinition: ViewSearchFieldDefinitionSchema,
1861
+ ViewRangeDefinition: ViewRangeDefinitionSchema,
1862
+ ViewHierarchyLevel: ViewHierarchyLevelSchema,
1863
+ ViewTermsNavigation: ViewTermsNavigationSchema,
1864
+ ViewCollectionNavigation: ViewCollectionNavigationSchema,
1865
+ ViewLocationNavigation: ViewLocationNavigationSchema,
1866
+ ViewElasticsearchQuery: ViewElasticsearchQuerySchema,
1867
+ ViewExperienceLayout: ViewExperienceLayoutSchema,
1868
+ ViewSortOption: ViewSortOptionSchema,
1869
+ ViewResultField: ViewResultFieldSchema,
1870
+ ViewTableDisplay: ViewTableDisplaySchema,
1871
+ ViewListDisplay: ViewListDisplaySchema,
1872
+ ViewKeyTermDefinition: ViewKeyTermDefinitionSchema,
1873
+ ViewRangeNavigation: ViewRangeNavigationSchema,
1874
+ ViewHierarchyNavigation: ViewHierarchyNavigationSchema,
1875
+ ViewExperienceScope: ViewExperienceScopeSchema,
1876
+ ViewBoardCardConfiguration: ViewBoardCardConfigurationSchema,
1877
+ ViewSearchConfiguration: ViewSearchConfigurationSchema,
1878
+ ViewNavigationItem: ViewNavigationItemSchema,
1879
+ ViewBoardDisplay: ViewBoardDisplaySchema,
1880
+ ViewCardsDisplay: ViewCardsDisplaySchema,
1881
+ ViewGalleryDisplay: ViewGalleryDisplaySchema,
1882
+ ViewDisplayConfiguration: ViewDisplayConfigurationSchema,
1883
+ ViewResultsConfiguration: ViewResultsConfigurationSchema,
1884
+ CreateViewExperienceRequest: CreateViewExperienceRequestSchema,
1885
+ ViewExperience: ViewExperienceSchema,
1886
+ UpdateViewExperienceRequest: UpdateViewExperienceRequestSchema,
1887
+ ViewExperienceArray: ViewExperienceArraySchema,
1888
+ ViewExperienceListQuery: ViewExperienceListQuerySchema,
1889
+ } as const satisfies Record<string, z.ZodType>;
1890
+
1891
+ /**
1892
+ * Every registered component, keyed by the name it publishes under.
1893
+ *
1894
+ * Annotated rather than inferred: the precise per-key types live on the groups above, and this
1895
+ * is only ever iterated, so widening the values here is what keeps the merged object from
1896
+ * re-creating the type the split exists to avoid.
1897
+ */
1898
+ const APP_LIFECYCLE_SCHEMAS = {
1899
+ // What an app does once it exists: versions, builds, scaffolds, git repositories,
1900
+ // development tasks, installations and inspection.
1901
+ UpdateAppInstallationToolAllowlistPayload: UpdateAppInstallationToolAllowlistPayloadSchema,
1902
+ ValidateUrlResponse: ValidateUrlResponseSchema,
1903
+ ValidateUrlRequest: ValidateUrlRequestSchema,
1904
+ AppVersionUrls: AppVersionUrlsSchema,
1905
+ AppVersionGitRefType: AppVersionGitRefTypeSchema,
1906
+ AppVersionTarget: AppVersionTargetSchema,
1907
+ AppVersionState: AppVersionStateSchema,
1908
+ AppVersionKind: AppVersionKindSchema,
1909
+ StartAppScaffoldResponse: StartAppScaffoldResponseSchema,
1910
+ AppScaffoldModule: AppScaffoldModuleSchema,
1911
+ AppBuildTrigger: AppBuildTriggerSchema,
1912
+ Extract_AppVersionGitRefType_branch_tag_commit: Extract_AppVersionGitRefType_branch_tag_commitSchema,
1913
+ StartAppBuildResponse: StartAppBuildResponseSchema,
1914
+ AgentToolApprovalClass: AgentToolApprovalClassSchema,
1915
+ AppDevelopmentTask: AppDevelopmentTaskSchema,
1916
+ AppInstallationProviderBinding: AppInstallationProviderBindingSchema,
1917
+ AppInstallationOAuthBinding: AppInstallationOAuthBindingSchema,
1918
+ OAuthClientCredentials: OAuthClientCredentialsSchema,
1919
+ AppPackageScope: AppPackageScopeSchema,
1920
+ AppInspectionCapabilityReport: AppInspectionCapabilityReportSchema,
1921
+ AppScaffoldProgressStatus: AppScaffoldProgressStatusSchema,
1922
+ AppRepoTreeEntry: AppRepoTreeEntrySchema,
1923
+ AppRepoRef: AppRepoRefSchema,
1924
+ AppRepoCommit: AppRepoCommitSchema,
1925
+ AgentRunType: AgentRunTypeSchema,
1926
+ EventRef: EventRefSchema,
1927
+ InCodeTypeRef: InCodeTypeRefSchema,
1928
+ StoredTypeRef: StoredTypeRefSchema,
1929
+ ConversationActivityState: ConversationActivityStateSchema,
1930
+ AgentRunStatus: AgentRunStatusSchema,
1931
+ RunKind: RunKindSchema,
1932
+ RunType: RunTypeSchema,
1933
+ AppBuildProgressStatus: AppBuildProgressStatusSchema,
1934
+ DeleteAppVersionResponse: DeleteAppVersionResponseSchema,
1935
+ AppDeleteSummary: AppDeleteSummarySchema,
1936
+ AppRepoBranch: AppRepoBranchSchema,
1937
+ AppRepoDocumentCommit: AppRepoDocumentCommitSchema,
1938
+ AppVersionGitSource: AppVersionGitSourceSchema,
1939
+ StartAppScaffoldRequest: StartAppScaffoldRequestSchema,
1940
+ StartAppBuildRequest: StartAppBuildRequestSchema,
1941
+ AgentToolDefinition: AgentToolDefinitionSchema,
1942
+ AppDevelopmentTaskList: AppDevelopmentTaskListSchema,
1943
+ OAuthClientCredentialsMap: OAuthClientCredentialsMapSchema,
1944
+ AppOAuthCollectionParams: AppOAuthCollectionParamsSchema,
1945
+ McpApiKeyCredential: McpApiKeyCredentialSchema,
1946
+ AppApiKeyCollectionParams: AppApiKeyCollectionParamsSchema,
1947
+ AppInspectionIssue: AppInspectionIssueSchema,
1948
+ AppScaffoldProgress: AppScaffoldProgressSchema,
1949
+ AppRepoTree: AppRepoTreeSchema,
1950
+ AppRepoRefs: AppRepoRefsSchema,
1951
+ AppRepoCommits: AppRepoCommitsSchema,
1952
+ ContentObjectTypeRef: ContentObjectTypeRefSchema,
1953
+ AppBuildProgress: AppBuildProgressSchema,
1954
+ AppVersionStorage: AppVersionStorageSchema,
1955
+ AppToolCollection: AppToolCollectionSchema,
1956
+ AppOAuthProviderParams: AppOAuthProviderParamsSchema,
1957
+ AppInspectionResult: AppInspectionResultSchema,
1958
+ AppVersionRecord: AppVersionRecordSchema,
1959
+ AgentRunSearchHit: AgentRunSearchHitSchema,
1960
+ UpsertAppVersionRequest: UpsertAppVersionRequestSchema,
1961
+ AppInstallationPayload: AppInstallationPayloadSchema,
1962
+ AppDevelopmentTaskDetails: AppDevelopmentTaskDetailsSchema,
1963
+ AppVersionRecordArray: AppVersionRecordArraySchema,
1964
+ AppToolCollectionArray: AppToolCollectionArraySchema,
1965
+ AppInstallationKind: AppInstallationKindSchema,
1966
+ AppInstallationsQuery: AppInstallationsQuerySchema,
1967
+ AppInstallationProjectsQuery: AppInstallationProjectsQuerySchema,
1968
+ SystemPackageQuery: SystemPackageQuerySchema,
1969
+ } as const satisfies Record<string, z.ZodType>;
1970
+
1971
+ const SECRET_SCHEMAS = {
1972
+ WebsiteCredentialTotpAlgorithm: SecretSchemas.WebsiteCredentialTotpAlgorithmSchema,
1973
+ WebsiteCredentialTotpMetadata: SecretSchemas.WebsiteCredentialTotpMetadataSchema,
1974
+ WebsiteCredentialSecretInput: SecretSchemas.WebsiteCredentialSecretInputSchema,
1975
+ WebsiteCredentialCapability: SecretSchemas.WebsiteCredentialCapabilitySchema,
1976
+ WebsiteCredentialWebsite: SecretSchemas.WebsiteCredentialWebsiteSchema,
1977
+ SecretKind: SecretSchemas.SecretKindSchema,
1978
+ WebsiteCredentialRecord: SecretSchemas.WebsiteCredentialRecordSchema,
1979
+ WebsiteCredentialFillResponse: SecretSchemas.WebsiteCredentialFillResponseSchema,
1980
+ WebsiteCredentialFillRequest: SecretSchemas.WebsiteCredentialFillRequestSchema,
1981
+ DeleteSecretResponse: SecretSchemas.DeleteSecretResponseSchema,
1982
+ WebsiteCredentialMetadata: SecretSchemas.WebsiteCredentialMetadataSchema,
1983
+ WebsiteCredentialMetadataUpdate: SecretSchemas.WebsiteCredentialMetadataUpdateSchema,
1984
+ SecretRecord: SecretSchemas.SecretRecordSchema,
1985
+ CreateSecretRequest: SecretSchemas.CreateSecretRequestSchema,
1986
+ UpdateSecretRequest: SecretSchemas.UpdateSecretRequestSchema,
1987
+ ListSecretsResponse: SecretSchemas.ListSecretsResponseSchema,
1988
+ SecretProjectQuery: SecretSchemas.SecretProjectQuerySchema,
1989
+ ListSecretsQuery: SecretSchemas.ListSecretsQuerySchema,
1990
+ SecretLookupQuery: SecretSchemas.SecretLookupQuerySchema,
1991
+ EventWebhookSigningSecretRequest: SecretSchemas.EventWebhookSigningSecretRequestSchema,
1992
+ EventWebhookSigningSecretResponse: SecretSchemas.EventWebhookSigningSecretResponseSchema,
1993
+ SignEventWebhookRequest: SecretSchemas.SignEventWebhookRequestSchema,
1994
+ SignEventWebhookResponse: SecretSchemas.SignEventWebhookResponseSchema,
1995
+ EventIngestSigningSecretRequest: SecretSchemas.EventIngestSigningSecretRequestSchema,
1996
+ EventIngestSigningSecretResponse: SecretSchemas.EventIngestSigningSecretResponseSchema,
1997
+ VerifyEventIngestSignatureRequest: SecretSchemas.VerifyEventIngestSignatureRequestSchema,
1998
+ VerifyEventIngestSignatureResponse: SecretSchemas.VerifyEventIngestSignatureResponseSchema,
1999
+ GithubInstallationTokenRequest: SecretSchemas.GithubInstallationTokenRequestSchema,
2000
+ GithubInstallationTokenResponse: SecretSchemas.GithubInstallationTokenResponseSchema,
2001
+ InternalSecretDeleteResponse: SecretSchemas.InternalSecretDeleteResponseSchema,
2002
+ } as const satisfies Record<string, z.ZodType>;
2003
+
2004
+ const INTEGRATION_SCHEMAS = {
2005
+ SupportedIntegrations_ask_user_webhook: IntegrationSchemas.SupportedIntegrations_ask_user_webhookSchema,
2006
+ SupportedIntegrations_resend: IntegrationSchemas.SupportedIntegrations_resendSchema,
2007
+ SupportedIntegrations_linkup: IntegrationSchemas.SupportedIntegrations_linkupSchema,
2008
+ SupportedIntegrations_exa: IntegrationSchemas.SupportedIntegrations_exaSchema,
2009
+ SupportedIntegrations_serper: IntegrationSchemas.SupportedIntegrations_serperSchema,
2010
+ SupportedIntegrations_magic_pdf: IntegrationSchemas.SupportedIntegrations_magic_pdfSchema,
2011
+ SupportedIntegrations_aws: IntegrationSchemas.SupportedIntegrations_awsSchema,
2012
+ SupportedIntegrations_github: IntegrationSchemas.SupportedIntegrations_githubSchema,
2013
+ SupportedIntegrations_gladia: IntegrationSchemas.SupportedIntegrations_gladiaSchema,
2014
+ AskUserWebhookConfiguration: IntegrationSchemas.AskUserWebhookConfigurationSchema,
2015
+ ResendConfiguration: IntegrationSchemas.ResendConfigurationSchema,
2016
+ LinkupConfiguration: IntegrationSchemas.LinkupConfigurationSchema,
2017
+ ExaConfiguration: IntegrationSchemas.ExaConfigurationSchema,
2018
+ SerperConfiguration: IntegrationSchemas.SerperConfigurationSchema,
2019
+ GithubConfiguration: IntegrationSchemas.GithubConfigurationSchema,
2020
+ GladiaConfiguration: IntegrationSchemas.GladiaConfigurationSchema,
2021
+ RemoteActivityDefinition: IntegrationSchemas.RemoteActivityDefinitionSchema,
2022
+ AskUserWebhookConfigurationInput: IntegrationSchemas.AskUserWebhookConfigurationInputSchema,
2023
+ ResendConfigurationInput: IntegrationSchemas.ResendConfigurationInputSchema,
2024
+ LinkupConfigurationInput: IntegrationSchemas.LinkupConfigurationInputSchema,
2025
+ ExaConfigurationInput: IntegrationSchemas.ExaConfigurationInputSchema,
2026
+ SerperConfigurationInput: IntegrationSchemas.SerperConfigurationInputSchema,
2027
+ MagicPdfConfiguration: IntegrationSchemas.MagicPdfConfigurationSchema,
2028
+ AwsConfiguration: IntegrationSchemas.AwsConfigurationSchema,
2029
+ GithubConfigurationInput: IntegrationSchemas.GithubConfigurationInputSchema,
2030
+ GladiaConfigurationInput: IntegrationSchemas.GladiaConfigurationInputSchema,
2031
+ ProjectIntegrationConfigResponse: IntegrationSchemas.ProjectIntegrationConfigResponseSchema,
2032
+ ProjectIntegrationConfigRequest: IntegrationSchemas.ProjectIntegrationConfigRequestSchema,
2033
+ } as const satisfies Record<string, z.ZodType>;
2034
+
2035
+ const COMPOSITE_APP_SCHEMAS = {
2036
+ CompositeAppNavItemPermissions: AppRuntimeSchemas.CompositeAppNavItemPermissionsSchema,
2037
+ CompositeAppEntry: AppRuntimeSchemas.CompositeAppEntrySchema,
2038
+ CompositeAppHomePlugin: AppRuntimeSchemas.CompositeAppHomePluginSchema,
2039
+ CompositeAppThemeOverrides: AppRuntimeSchemas.CompositeAppThemeOverridesSchema,
2040
+ CompositeAppHeaderItemTarget: AppRuntimeSchemas.CompositeAppHeaderItemTargetSchema,
2041
+ CompositeAppHeaderItemKind: AppRuntimeSchemas.CompositeAppHeaderItemKindSchema,
2042
+ CompositeAppUserMenuOverrides: AppRuntimeSchemas.CompositeAppUserMenuOverridesSchema,
2043
+ CompositeAppHeaderOverrides: AppRuntimeSchemas.CompositeAppHeaderOverridesSchema,
2044
+ CompositeAppSidebarOverrides: AppRuntimeSchemas.CompositeAppSidebarOverridesSchema,
2045
+ CompositeAppSwitchersOverrides: AppRuntimeSchemas.CompositeAppSwitchersOverridesSchema,
2046
+ CompositeAppMessageStyle: AppRuntimeSchemas.CompositeAppMessageStyleSchema,
2047
+ CompositeAppLogoOverrides: AppRuntimeSchemas.CompositeAppLogoOverridesSchema,
2048
+ CompositeAppCardOverrides: AppRuntimeSchemas.CompositeAppCardOverridesSchema,
2049
+ CompositeAppMenuNavItem: AppRuntimeSchemas.CompositeAppMenuNavItemSchema,
2050
+ CompositeAppHeaderItem: AppRuntimeSchemas.CompositeAppHeaderItemSchema,
2051
+ CompositeAppMessageOverrides: AppRuntimeSchemas.CompositeAppMessageOverridesSchema,
2052
+ CompositeAppMenuSection: AppRuntimeSchemas.CompositeAppMenuSectionSchema,
2053
+ CompositeAppConfig: AppRuntimeSchemas.CompositeAppConfigSchema,
2054
+ CompositeAppConfigPayload: AppRuntimeSchemas.CompositeAppConfigPayloadSchema,
2055
+ } as const satisfies Record<string, z.ZodType>;
2056
+
2057
+ const APP_MANIFEST_SCHEMAS = {
2058
+ MCPOAuthConfigMap: AppRuntimeSchemas.MCPOAuthConfigMapSchema,
2059
+ AppWidgetInfo: AppRuntimeSchemas.AppWidgetInfoSchema,
2060
+ AppDashboardDefinition: AppRuntimeSchemas.AppDashboardDefinitionSchema,
2061
+ AppManifestData: AppRuntimeSchemas.AppManifestDataSchema,
2062
+ AppManifest: AppRuntimeSchemas.AppManifestSchema,
2063
+ AppManifestArray: AppRuntimeSchemas.AppManifestArraySchema,
2064
+ AppWidgetInfoMap: AppRuntimeSchemas.AppWidgetInfoMapSchema,
2065
+ PromoteAppVersionResponse: AppRuntimeSchemas.PromoteAppVersionResponseSchema,
2066
+ AppPackage: AppRuntimeSchemas.AppPackageSchema,
2067
+ ProjectPluginArray: AppRuntimeSchemas.ProjectPluginArraySchema,
2068
+ } as const satisfies Record<string, z.ZodType>;
2069
+
2070
+ const APP_INSTALLATION_SCHEMAS = {
2071
+ InCodeViewDefinition: AppRuntimeSchemas.InCodeViewDefinitionSchema,
2072
+ InCodeTypeDefinitionArray: AppRuntimeSchemas.InCodeTypeDefinitionArraySchema,
2073
+ RenderingTemplateDefinitionRefArray: AppRuntimeSchemas.RenderingTemplateDefinitionRefArraySchema,
2074
+ InCodeProcessDefinition: AppRuntimeSchemas.InCodeProcessDefinitionSchema,
2075
+ AppInstallation: AppRuntimeSchemas.AppInstallationSchema,
2076
+ InCodeViewDefinitionArray: AppRuntimeSchemas.InCodeViewDefinitionArraySchema,
2077
+ InCodeProcessDefinitionArray: AppRuntimeSchemas.InCodeProcessDefinitionArraySchema,
2078
+ AppInstallationWithManifest: AppRuntimeSchemas.AppInstallationWithManifestSchema,
2079
+ AppInstallationArray: AppRuntimeSchemas.AppInstallationArraySchema,
2080
+ AppInstallationListEntry: AppRuntimeSchemas.AppInstallationListEntrySchema,
2081
+ AppInstallationWithManifestArray: AppRuntimeSchemas.AppInstallationWithManifestArraySchema,
2082
+ AppInstallationListEntryArray: AppRuntimeSchemas.AppInstallationListEntryArraySchema,
2083
+ BinaryFileResponse: AppRuntimeSchemas.BinaryFileResponseSchema,
2084
+ } as const satisfies Record<string, z.ZodType>;
2085
+
2086
+ const STS_SCHEMAS = {
2087
+ SigningAlgorithm: StsSchemas.SigningAlgorithmSchema,
2088
+ ApiKeyTokenRequest: StsSchemas.ApiKeyTokenRequestSchema,
2089
+ UserTokenRequest: StsSchemas.UserTokenRequestSchema,
2090
+ ProjectTokenRequest: StsSchemas.ProjectTokenRequestSchema,
2091
+ EnvironmentTokenRequest: StsSchemas.EnvironmentTokenRequestSchema,
2092
+ AgentTokenRequest: StsSchemas.AgentTokenRequestSchema,
2093
+ ServiceAccountTokenRequest: StsSchemas.ServiceAccountTokenRequestSchema,
2094
+ IssueTokenRequest: StsSchemas.IssueTokenRequestSchema,
2095
+ IssueTokenResponse: StsSchemas.IssueTokenResponseSchema,
2096
+ IssueTokenForbiddenResponse: StsSchemas.IssueTokenForbiddenResponseSchema,
2097
+ IssueTokenUnavailableResponse: StsSchemas.IssueTokenUnavailableResponseSchema,
2098
+ } as const satisfies Record<string, z.ZodType>;
2099
+
2100
+ const API_SCHEMA_GROUPS = [
2101
+ IAM_AND_ACCOUNT_SCHEMAS,
2102
+ PROJECT_AND_APP_SCHEMAS,
2103
+ OAUTH_SCHEMAS,
2104
+ ENVIRONMENT_SCHEMAS,
2105
+ LLM_COMPLETION_SCHEMAS,
2106
+ INTERACTION_SCHEMAS,
2107
+ INTERACTION_AUTHORING_SCHEMAS,
2108
+ AGENT_CONVERSATION_SCHEMAS,
2109
+ EXECUTION_RUN_SCHEMAS,
2110
+ PROMPT_AUTHORING_SCHEMAS,
2111
+ PROJECT_TOOL_SCHEMAS,
2112
+ REMOTE_MCP_SCHEMAS,
2113
+ AUDIT_TRAIL_SCHEMAS,
2114
+ VIEW_EXPERIENCE_SCHEMAS,
2115
+ APP_LIFECYCLE_SCHEMAS,
2116
+
2117
+ SECRET_SCHEMAS,
2118
+ INTEGRATION_SCHEMAS,
2119
+ COMPOSITE_APP_SCHEMAS,
2120
+ APP_MANIFEST_SCHEMAS,
2121
+ APP_INSTALLATION_SCHEMAS,
2122
+ STS_SCHEMAS,
2123
+ FILE_STORAGE_SCHEMAS,
2124
+ DURABLE_TASK_SCHEMAS,
2125
+ CONTENT_TYPE_CATALOG_SCHEMAS,
2126
+ MIGRATION_COMMAND_SCHEMAS,
2127
+ PROCESS_DSL_SCHEMAS,
2128
+ AGENT_MESSAGE_SCHEMAS,
2129
+ PROCESS_DEFINITION_SCHEMAS,
2130
+ PROCESS_SCRIPT_SCHEMAS,
2131
+ CONTENT_OBJECT_SCHEMAS,
2132
+ CONTENT_EXPORT_SCHEMAS,
2133
+ CONTENT_SEARCH_SCHEMAS,
2134
+ EVENT_SUBSCRIPTION_SCHEMAS,
2135
+ PROCESS_RUNTIME_SCHEMAS,
2136
+ EVENT_DELIVERY_SCHEMAS,
2137
+ EVENT_INGEST_SCHEMAS,
2138
+ COLLECTION_SCHEMAS,
2139
+ AGENT_ARTIFACT_SCHEMAS,
2140
+ AGENT_RUN_SCHEMAS,
2141
+ WORKFLOW_RUN_SCHEMAS,
2142
+ WORKFLOW_TASK_SCHEMAS,
2143
+ VIEW_EXECUTION_SCHEMAS,
2144
+
2145
+ DASHBOARD_SCHEMAS,
2146
+ DATA_STORE_CORE_SCHEMAS,
2147
+ DATA_STORE_SCHEMA_SCHEMAS,
2148
+ COST_ANALYTICS_SCHEMAS,
2149
+ BULK_CONTENT_OPERATION_SCHEMAS,
2150
+ DOCUMENT_PROCESSING_SCHEMAS,
2151
+ INDEXING_SCHEMAS,
2152
+ EMBEDDING_ADMIN_SCHEMAS,
2153
+ COMMAND_SCHEMAS,
2154
+ ];
2155
+
2156
+ /**
2157
+ * The registry as one type: the groups intersected, which is what a single object literal would
2158
+ * have inferred to. `mergeComponentGroups` rejects a name declared by two groups, so no key is ever
2159
+ * intersected with a second schema.
2160
+ */
2161
+ type ApiSchemaMap = typeof IAM_AND_ACCOUNT_SCHEMAS &
2162
+ typeof PROJECT_AND_APP_SCHEMAS &
2163
+ typeof OAUTH_SCHEMAS &
2164
+ typeof ENVIRONMENT_SCHEMAS &
2165
+ typeof LLM_COMPLETION_SCHEMAS &
2166
+ typeof INTERACTION_SCHEMAS &
2167
+ typeof INTERACTION_AUTHORING_SCHEMAS &
2168
+ typeof AGENT_CONVERSATION_SCHEMAS &
2169
+ typeof EXECUTION_RUN_SCHEMAS &
2170
+ typeof PROMPT_AUTHORING_SCHEMAS &
2171
+ typeof PROJECT_TOOL_SCHEMAS &
2172
+ typeof REMOTE_MCP_SCHEMAS &
2173
+ typeof AUDIT_TRAIL_SCHEMAS &
2174
+ typeof VIEW_EXPERIENCE_SCHEMAS &
2175
+ typeof APP_LIFECYCLE_SCHEMAS &
2176
+ typeof SECRET_SCHEMAS &
2177
+ typeof INTEGRATION_SCHEMAS &
2178
+ typeof COMPOSITE_APP_SCHEMAS &
2179
+ typeof APP_MANIFEST_SCHEMAS &
2180
+ typeof APP_INSTALLATION_SCHEMAS &
2181
+ typeof STS_SCHEMAS &
2182
+ typeof FILE_STORAGE_SCHEMAS &
2183
+ typeof DURABLE_TASK_SCHEMAS &
2184
+ typeof CONTENT_TYPE_CATALOG_SCHEMAS &
2185
+ typeof MIGRATION_COMMAND_SCHEMAS &
2186
+ typeof PROCESS_DSL_SCHEMAS &
2187
+ typeof AGENT_MESSAGE_SCHEMAS &
2188
+ typeof PROCESS_DEFINITION_SCHEMAS &
2189
+ typeof PROCESS_SCRIPT_SCHEMAS &
2190
+ typeof CONTENT_OBJECT_SCHEMAS &
2191
+ typeof CONTENT_EXPORT_SCHEMAS &
2192
+ typeof CONTENT_SEARCH_SCHEMAS &
2193
+ typeof EVENT_SUBSCRIPTION_SCHEMAS &
2194
+ typeof PROCESS_RUNTIME_SCHEMAS &
2195
+ typeof EVENT_DELIVERY_SCHEMAS &
2196
+ typeof EVENT_INGEST_SCHEMAS &
2197
+ typeof COLLECTION_SCHEMAS &
2198
+ typeof AGENT_ARTIFACT_SCHEMAS &
2199
+ typeof AGENT_RUN_SCHEMAS &
2200
+ typeof WORKFLOW_RUN_SCHEMAS &
2201
+ typeof WORKFLOW_TASK_SCHEMAS &
2202
+ typeof VIEW_EXECUTION_SCHEMAS &
2203
+ typeof DASHBOARD_SCHEMAS &
2204
+ typeof DATA_STORE_CORE_SCHEMAS &
2205
+ typeof DATA_STORE_SCHEMA_SCHEMAS &
2206
+ typeof COST_ANALYTICS_SCHEMAS &
2207
+ typeof BULK_CONTENT_OPERATION_SCHEMAS &
2208
+ typeof DOCUMENT_PROCESSING_SCHEMAS &
2209
+ typeof INDEXING_SCHEMAS &
2210
+ typeof EMBEDDING_ADMIN_SCHEMAS &
2211
+ typeof COMMAND_SCHEMAS;
2212
+
2213
+ export type ApiComponentName = keyof ApiSchemaMap;
2214
+
2215
+ const API_SCHEMAS: Readonly<Record<ApiComponentName, z.ZodType>> = mergeComponentGroups(API_SCHEMA_GROUPS) as Record<
2216
+ ApiComponentName,
2217
+ z.ZodType
2218
+ >;
2219
+
2220
+ /**
2221
+ * Components that reject undeclared properties.
2222
+ *
2223
+ * These components publish `additionalProperties: false`; the same emitted objects are compiled by
2224
+ * AJV, so request enforcement and the published contract use one closedness policy.
2225
+ *
2226
+ * These are enforced, not merely documented: {@link validateApiRequest} compiles these exact
2227
+ * objects, so a body carrying an undeclared property is rejected rather than quietly accepted.
2228
+ */
2229
+ const STRICT_COMPONENTS: ReadonlySet<string> = new Set<string>([
2230
+ 'Account',
2231
+ 'AccountBilling',
2232
+ 'UpdateAccountPayload',
2233
+ 'StripeBillingEnabled',
2234
+ 'StripeBillingDisabled',
2235
+ // STS token contracts. The request root is a discriminated union; its six object branches and
2236
+ // both response objects are the closed components that carry the property policy.
2237
+ 'ApiKeyTokenRequest',
2238
+ 'UserTokenRequest',
2239
+ 'ProjectTokenRequest',
2240
+ 'EnvironmentTokenRequest',
2241
+ 'AgentTokenRequest',
2242
+ 'ServiceAccountTokenRequest',
2243
+ 'IssueTokenResponse',
2244
+ 'IssueTokenForbiddenResponse',
2245
+ 'IssueTokenUnavailableResponse',
2246
+ 'ApiKeyListQuery',
2247
+ // These payloads previously referenced closed generated utility components. They now own their
2248
+ // object shapes directly, so their published closedness belongs to the final component names.
2249
+ 'PostAgentRunUpdatePayload',
2250
+ 'CompositeAppConfigPayload',
2251
+ // The quota closure. Every object here is published closed today, so all of them are listed;
2252
+ // QuotaEffectiveTier is a string and takes no additionalProperties at all.
2253
+ 'QuotaStandingResponse',
2254
+ 'QuotaStandingResource',
2255
+ 'QuotaStandingWindow',
2256
+ 'QuotaStandingAdmissionClass',
2257
+ 'QuotaTierResponse',
2258
+ // The IAM closure. PrincipalContext is composed into PrincipalIdentity rather than hoisted,
2259
+ // so it has no component of its own to list.
2260
+ 'User',
2261
+ 'UpdateUserPayload',
2262
+ 'DeleteByIdResult',
2263
+ 'PrincipalIdentity',
2264
+ 'SignupData',
2265
+ 'SignupPayload',
2266
+ // The group closure. UserRef is hoisted by UserRefArray rather than named by an endpoint, but it
2267
+ // is published closed today and must stay that way; the array components take no
2268
+ // additionalProperties at all.
2269
+ 'UserRef',
2270
+ 'UserGroup',
2271
+ 'UserGroupRef',
2272
+ 'CreateUserGroupPayload',
2273
+ 'UpdateUserGroupPayload',
2274
+ // The roles / access-control closure. `AceConditions` is closed too, and has to be listed by
2275
+ // name: it is a hoisted component, so the parent's strict policy does not reach it.
2276
+ // `PropertyConditions` is deliberately absent — it is a map whose `additionalProperties` is a
2277
+ // value schema, not an object with declared properties.
2278
+ 'AccessControlEntry',
2279
+ 'ACECreatePayload',
2280
+ 'ACEUpdatePayload',
2281
+ 'AceConditions',
2282
+ 'RoleDefinition',
2283
+ 'SystemRoleDefinition',
2284
+ // The API key and account-invite closure. ProjectRef, AccountRef and the invite payload are
2285
+ // hoisted rather than named by an endpoint, and all three are published closed today.
2286
+ 'ProjectRef',
2287
+ 'AccountRef',
2288
+ 'ApiKey',
2289
+ 'ApiKeyWithValue',
2290
+ 'ApiKeyReadResponse',
2291
+ 'ApiKeyReadQuery',
2292
+ 'CreateApiKeyPayload',
2293
+ 'UpdateApiKeyPayload',
2294
+ 'AuthTokenResponse',
2295
+ 'DeleteOperationResult',
2296
+ 'InviteUserRequestPayload',
2297
+ 'InviteUserResponsePayload',
2298
+ 'InviteAcceptanceResponse',
2299
+ 'InviteDeclineResponse',
2300
+ 'OnboardingProgress',
2301
+ 'AccountProjectsResponse',
2302
+ 'UserInviteTokenData',
2303
+ 'TransientToken_UserInviteTokenData_',
2304
+ // The Projects closure. The two query components are expanded into parameters rather than
2305
+ // published, but the strict policy is what makes an undeclared query parameter a 400 rather than
2306
+ // a silent ignore, so they are listed like ApiKeyListQuery. ProjectIntegrationListEntry and
2307
+ // ProjectToolInfo are hoisted rather than named by an endpoint, and both are closed today.
2308
+ 'ListProjectsQuery',
2309
+ 'ProjectTagQuery',
2310
+ 'ICreateProjectPayload',
2311
+ 'ProjectPluginsUpdatePayload',
2312
+ 'CountResult',
2313
+ 'ProjectIntegrationListResponse',
2314
+ 'ProjectIntegrationListEntry',
2315
+ 'ProjectToolInfo',
2316
+ 'RenderingTemplateDefinition',
2317
+ 'RenderingTemplateDefinitionRef',
2318
+ // The ProjectConfiguration leaves. All are published closed today. The three enums and
2319
+ // `ProjectSearchPropertyMappingMap` are absent for the reasons `PropertyConditions` is: a string
2320
+ // takes no `additionalProperties`, and a map's is a value schema rather than a policy.
2321
+ 'ModelDefault',
2322
+ 'ModalityDefaults',
2323
+ 'SystemDefaults',
2324
+ 'ProjectModelDefaults',
2325
+ 'ProjectSearchPropertyMapping',
2326
+ 'ProjectIndexingConfiguration',
2327
+ 'ProjectConfigurationEmbedding',
2328
+ 'BrowserUseProjectConfiguration',
2329
+ 'ProjectIntakeSniffConfiguration',
2330
+ // The agent configuration block under `ProjectConfiguration`, published closed on both sides.
2331
+ 'AgentProjectConfiguration',
2332
+ 'AgentCheckpointConfiguration',
2333
+ // Declared in @llumiverse/common beside the type, like the ModelOptions members above.
2334
+ 'HttpTimeoutOptions',
2335
+ // The intake policy tree. Every object in it is published closed today, including the inline
2336
+ // nested ones, which the schemas spell `strictObject` so the emission carries it directly.
2337
+ 'ContentTypeIntakePolicy',
2338
+ 'ContentTypeExtractionGroundingPolicy',
2339
+ 'ContentTypeExtractionGroundingReviewPolicy',
2340
+ 'InteractionExecutionConfiguration',
2341
+ 'EmbeddingTypeEnabledMap',
2342
+ // The intake configuration above the policy, and the two anonymous shapes it hoists. All three
2343
+ // are published closed today.
2344
+ 'ProjectIntakeConfiguration',
2345
+ 'IntakeVisionProfileSettingsUpdate',
2346
+ 'IntakeVisionProfileSettingsMap',
2347
+ // The Project closure roots. Both are published closed today, as is the anonymous `embeddings`
2348
+ // object `ProjectConfiguration` publishes inline, and so are the two `Partial<>` update payloads.
2349
+ 'Project',
2350
+ 'ProjectConfiguration',
2351
+ 'UpdateProjectPayload',
2352
+ 'UpdateProjectConfigurationPayload',
2353
+ // Every member of the `ModelOptions` union. All twenty-three are published closed today, and
2354
+ // their Zod schemas are `strictObject`, so the published contract, the AJV enforcement and the
2355
+ // schema's own parse all reject the same undeclared option. `ModelOptions` itself is a union
2356
+ // and takes no `additionalProperties`, and neither do the four hoisted enums.
2357
+ //
2358
+ // `JSONSchema` is deliberately absent: it is OPEN by design and by long-standing publication —
2359
+ // a JSON Schema carries keywords the type never enumerated. `JSONSchemaProperties` is a map.
2360
+ 'TextFallbackOptions',
2361
+ 'ImagenOptions',
2362
+ 'VertexAIClaudeOptions',
2363
+ 'VertexAIGeminiOptions',
2364
+ 'VertexAIGrokOptions',
2365
+ 'NovaCanvasOptions',
2366
+ 'BedrockConverseOptions',
2367
+ 'BedrockNovaOptions',
2368
+ 'BedrockMistralOptions',
2369
+ 'BedrockAI21Options',
2370
+ 'BedrockCohereCommandOptions',
2371
+ 'BedrockClaudeOptions',
2372
+ 'BedrockPalmyraOptions',
2373
+ 'BedrockGptOssOptions',
2374
+ 'TwelvelabsPegasusOptions',
2375
+ 'BedrockMantleResponsesOptions',
2376
+ 'BedrockMantleChatCompletionsOptions',
2377
+ 'BedrockMantleClaudeOptions',
2378
+ 'OpenAiThinkingOptions',
2379
+ 'OpenAiTextOptions',
2380
+ 'OpenAiDalleOptions',
2381
+ 'OpenAiGptImageOptions',
2382
+ 'GroqOptions',
2383
+ // The app-manifest leaves. Every object among them is published closed today, the nested `git`
2384
+ // block included, and it is spelled `strictObject` so the emission carries it directly. The five
2385
+ // enums take no `additionalProperties` at all.
2386
+ 'AppManifestSource',
2387
+ 'AppSourceConfig',
2388
+ 'AppGitSourceConfig',
2389
+ 'AppUIConfig',
2390
+ 'AppUINavItem',
2391
+ 'MCPOAuthConfig',
2392
+ 'MCPApiKeyConfig',
2393
+ 'MCPToolCollectionObject',
2394
+ 'VertesiaSDKToolCollectionObject',
2395
+ // File, task, content-type and command components. Every one is published closed
2396
+ // today; `StringValueMap`, `MigrationListResponse`, `TaskArray`, the two content-type array
2397
+ // wrappers and the three enums are not objects and take none.
2398
+ 'CopyFilePayload',
2399
+ 'CopyFileResponse',
2400
+ 'DeleteFileResult',
2401
+ 'FileBucketResponse',
2402
+ 'FileListResponse',
2403
+ 'FileMetadataResponse',
2404
+ 'FileMetadataUpdateResult',
2405
+ 'GetFileUrlPayload',
2406
+ 'GetFileUrlResponse',
2407
+ 'GetUploadUrlPayload',
2408
+ 'BulkUploadUrlsPayload',
2409
+ 'BulkUploadUrlsResponse',
2410
+ 'SetFileMetadataPayload',
2411
+ // The four zeno query components. Expanded into parameters rather than published; listed for the
2412
+ // same reason ApiKeyListQuery is, so an endpoint can opt into rejecting an undeclared parameter.
2413
+ 'FileMetadataQuery',
2414
+ 'FileListQuery',
2415
+ 'FileDeleteQuery',
2416
+ 'TaskSource',
2417
+ 'TaskField',
2418
+ 'Task',
2419
+ 'CreateTaskPayload',
2420
+ 'UpdateTaskPayload',
2421
+ 'CompleteTaskPayload',
2422
+ // Expanded into parameters rather than published, like ApiKeyListQuery and the two project query
2423
+ // components. Listed because the strict policy is what an endpoint opting into
2424
+ // `rejectUndeclaredQuery` rejects against; `GET /tasks` does not opt in today.
2425
+ 'ListTasksQuery',
2426
+ 'ColumnLayout',
2427
+ 'ContentTypeEditingPolicy',
2428
+ 'ContentObjectTypeItem',
2429
+ 'ContentObjectTypeCatalogEntry',
2430
+ 'InCodeTypeDefinition',
2431
+ 'CreateContentObjectTypePayload',
2432
+ 'UpdateContentObjectTypePayload',
2433
+ 'ContentObjectType',
2434
+ 'ContentObjectTypeCatalogQuery',
2435
+ 'ContentObjectTypeListQuery',
2436
+ 'DeleteCountResult',
2437
+ 'RunMigrationPayload',
2438
+ 'RunMigrationResponse',
2439
+ 'MigrationListResponse',
2440
+ // Dashboards. StringArrayMap and the two array wrappers are not object schemas, while the
2441
+ // discriminated unions and enum carry closedness on their object members or no object policy.
2442
+ 'DashboardElasticsearchDsl',
2443
+ 'DashboardSqlDataSource',
2444
+ 'DashboardVersioningStatusResponse',
2445
+ 'DashboardVersioningPayload',
2446
+ 'PromoteDashboardVersionPayload',
2447
+ 'DashboardVersionItem',
2448
+ 'DashboardLayout',
2449
+ 'DashboardPanelPosition',
2450
+ 'DashboardQuery',
2451
+ 'DashboardBulkDeleteResult',
2452
+ 'DashboardArchiveResult',
2453
+ 'CreateDashboardSnapshotPayload',
2454
+ 'DashboardBulkArchiveResult',
2455
+ 'DashboardStoreElasticsearchDataSource',
2456
+ 'DashboardItem',
2457
+ 'DashboardPanel',
2458
+ 'DashboardVersion',
2459
+ 'Dashboard',
2460
+ 'CreateDashboardPayload',
2461
+ 'UpdateDashboardPayload',
2462
+ // Data stores. Map, array, enum and discriminated-union components carry no component-level
2463
+ // additionalProperties policy; every named object below is already closed in the published spec.
2464
+ 'QueryValidationError',
2465
+ 'QueryValidationPayload',
2466
+ 'ListDataStoreVersionsQuery',
2467
+ 'GetDataStoreTableQuery',
2468
+ 'DataIndex',
2469
+ 'DataForeignKey',
2470
+ 'DataColumnUpdate',
2471
+ 'QueryResultColumn',
2472
+ 'BatchQueryPayload',
2473
+ 'QueryResult',
2474
+ 'QueryPayload',
2475
+ 'DataStoreMutateRowsResult',
2476
+ 'DataStoreMutateRowsPayload',
2477
+ 'DataTableSummary',
2478
+ 'DataStoreVersionTableState',
2479
+ 'DataRelationshipForAI',
2480
+ 'DataForeignKeyForAI',
2481
+ 'DataColumnForAI',
2482
+ 'DataStoreTableDropResult',
2483
+ 'DataStoreArchiveResult',
2484
+ 'CreateSnapshotPayload',
2485
+ 'DataStoreDownloadInfo',
2486
+ 'CreateDataStorePayload',
2487
+ 'QueryValidationResult',
2488
+ 'DataColumn',
2489
+ 'DataRelationship',
2490
+ 'CreateTablePayload',
2491
+ 'BatchQueryResultItem',
2492
+ 'DataStoreItem',
2493
+ 'ImportTableData',
2494
+ 'DataStoreTableDetail',
2495
+ 'ImportJob',
2496
+ 'CreateTablesPayload',
2497
+ 'DataTable',
2498
+ 'AlterTablePayload',
2499
+ 'UpdateSchemaPayload',
2500
+ 'BatchQueryResult',
2501
+ 'DataStoreVersion',
2502
+ 'DataTableForAI',
2503
+ 'DataStoreFullSchemaResponse',
2504
+ 'DataSchema',
2505
+ 'ImportDataPayload',
2506
+ 'DataStore',
2507
+ 'DataSchemaForAI',
2508
+ // Cost analytics. The GET query components are intentionally open because query
2509
+ // enforcement ignores undeclared parameters; the two request bodies and all responses were
2510
+ // already published closed.
2511
+ 'CostAnalyticsQuery',
2512
+ 'CostRunPriceQuery',
2513
+ 'ModelPricing',
2514
+ 'CostTimeSeriesPoint',
2515
+ 'CostSummary',
2516
+ 'ModelPriceComparison',
2517
+ 'CostByDimension',
2518
+ 'ModelPriceComparisonResponse',
2519
+ 'CostAnalyticsResponse',
2520
+ 'CostRunPriceResponse',
2521
+ // Bulk content operations. The response union carries closedness on each branch rather
2522
+ // than on the union component itself.
2523
+ 'BulkObjectDeleteResult',
2524
+ 'BulkObjectUpdateResult',
2525
+ 'BulkObjectCreateResult',
2526
+ 'BulkOperationResult',
2527
+ 'BulkOperationPayload',
2528
+ // Rendering and document analysis. Request/response objects reproduce the closed
2529
+ // published components; DocumentPrepOptions stays open by design, and the query follows the
2530
+ // shared query policy of validating declared fields without rejecting unrelated parameters.
2531
+ 'GroundedAssistantResponse',
2532
+ 'GroundedExtractionRequest',
2533
+ 'GroundedVerificationBreakdown',
2534
+ 'DocAnalyzerProgressStatus',
2535
+ 'RenderMarkdownStartResponse',
2536
+ 'PdfRenderingMetadata',
2537
+ 'GroundedExtractionResultResponse',
2538
+ 'DocAnalyzerProgress',
2539
+ 'RenderMarkdownStatusResponse',
2540
+ 'RenderMarkdownPayload',
2541
+ 'DocAnalyzeRunStatusResponse',
2542
+ // Indexing, embedding and generic command contracts are all published closed today.
2543
+ 'StartProjectReindexPayload',
2544
+ 'ReindexAgentRunsResponse',
2545
+ 'ReindexAgentRunsPayload',
2546
+ 'IndexingStatusResponse',
2547
+ 'DriftAnalysisResult',
2548
+ 'DriftAnalysisProgress',
2549
+ 'EmbeddingsStatusResponse',
2550
+ 'ProjectConfigurationEmbeddingEnablePayload',
2551
+ 'GenericCommandResponse',
2552
+ 'DriftAnalysisStatusResponse',
2553
+ // Remaining content, process, event and workflow contracts were already published closed.
2554
+ 'HumanTaskDefinition',
2555
+ 'ProcessNodeReturnsDefinition',
2556
+ 'ProcessContextDefinition',
2557
+ 'ProcessScriptInlineSource',
2558
+ 'GenerationRunMetadata',
2559
+ 'ContentObjectUserPermissions',
2560
+ 'RevisionInfo',
2561
+ 'ContentSource',
2562
+ 'InheritedPropertyMetadata',
2563
+ 'TranscriptSegment',
2564
+ 'Embedding',
2565
+ 'AgentSemanticEvaluator',
2566
+ 'InteractionSemanticEvaluator',
2567
+ 'EventIngestResourceRule',
2568
+ 'CollectionSecuritySettingsResponse',
2569
+ 'CollectionMembersUpdateResult',
2570
+ 'CollectionMembersUpdatePayload',
2571
+ 'CollectionChildrenUpdateResult',
2572
+ 'CollectionChildrenUpdatePayload',
2573
+ 'UpdateAgentArtifactContentResponse',
2574
+ 'UpdateAgentArtifactContentPayload',
2575
+ 'TerminateAgentRunResponse',
2576
+ 'StartContentObjectExportResponse',
2577
+ 'ExportContentObjectsIncludeOptions',
2578
+ 'ExportContentObjectsFilter',
2579
+ 'SetObjectEmbeddingsResponse',
2580
+ 'ContentObjectApiRevision',
2581
+ 'InCodeTypeRef',
2582
+ 'StoredTypeRef',
2583
+ 'EventRef',
2584
+ 'RevertProcessDefinitionPayload',
2585
+ 'RetryProcessNodePayload',
2586
+ 'RestartAgentRunPayload',
2587
+ 'PublishProcessDefinitionPayload',
2588
+ 'CollectionPropagationResponse',
2589
+ 'ViewSortClause',
2590
+ 'ViewResultMedia',
2591
+ 'ViewBoardColumn',
2592
+ 'ViewTableColumn',
2593
+ 'AgenticViewSearchConfiguration',
2594
+ 'ViewSearchFieldDefinition',
2595
+ 'ViewRangeDefinition',
2596
+ 'ViewHierarchyLevel',
2597
+ 'ViewTermsNavigation',
2598
+ 'ViewCollectionNavigation',
2599
+ 'ViewLocationNavigation',
2600
+ 'ViewExperienceLayout',
2601
+ 'WorkflowUpdatePublishResponse',
2602
+ 'PostAgentRunUpdateResponse',
2603
+ 'ListWorkflowRunsPayload',
2604
+ 'WorkflowRuleItem',
2605
+ 'WorkflowDefinitionRef',
2606
+ 'ProcessDefinitionRevisionInfo',
2607
+ 'WebhookEventDeliveryTarget',
2608
+ 'WorkflowEventDeliveryTarget',
2609
+ 'ContentObjectExportArtifactFile',
2610
+ 'ProcessRunConfig',
2611
+ 'ProcessHistoryRef',
2612
+ 'NodeHistoryEntry',
2613
+ 'ResourceRef',
2614
+ 'WorkflowRun',
2615
+ 'ProcessHistoryResponse',
2616
+ 'ProcessContextResponse',
2617
+ 'ContentObjectTextResponse',
2618
+ 'GetRenditionResponse',
2619
+ 'EventDeliveryQueueFailureSummary',
2620
+ 'EventOutboxQueueSummary',
2621
+ 'ContentObjectExportResult',
2622
+ 'ContentObjectExportProgress',
2623
+ 'PendingActivity',
2624
+ 'AgentTask',
2625
+ 'EventError',
2626
+ 'SignalEventProperties',
2627
+ 'AgentArtifactContentResponse',
2628
+ 'ExportPropertiesResponse',
2629
+ 'WorkflowExecutionStartResult',
2630
+ 'WorkflowInputFile',
2631
+ 'ViewNavigationNode',
2632
+ 'ViewHitAnnotation',
2633
+ 'ViewExecutionWarning',
2634
+ 'ExecuteViewRequest',
2635
+ 'DeleteContentObjectResult',
2636
+ 'DeleteContentObjectExportResponse',
2637
+ 'WorkflowRule',
2638
+ 'CreateWorkflowRulePayload',
2639
+ 'ActivityFetchSpec',
2640
+ 'CreateCollectionPayload',
2641
+ 'AgentArtifactUrlResponse',
2642
+ 'FindPayload',
2643
+ 'WorkflowActionResponse',
2644
+ 'AnswerProcessTaskPayload',
2645
+ 'SignalAgentResponse',
2646
+ 'AdvanceProcessPayload',
2647
+ 'BranchDefinition',
2648
+ 'ParallelCollectDefinition',
2649
+ 'TransitionDefinition',
2650
+ 'Transcript',
2651
+ 'ContentEmbeddingMap',
2652
+ 'AgentEventDeliveryTarget',
2653
+ 'WebhookEventDeliveryTargetInput',
2654
+ 'WorkflowEventDeliveryTargetInput',
2655
+ 'EventIngestSignatureConfig',
2656
+ 'EventIngestTransform',
2657
+ 'StartContentObjectExportRequest',
2658
+ 'SemanticEvaluationRecord',
2659
+ 'ListEventDeliveriesPayload',
2660
+ 'VectorSearchQuery',
2661
+ 'ComplexCollectionSearchQuery',
2662
+ 'AgentRunSearchHit',
2663
+ 'ViewSortOption',
2664
+ 'ViewResultField',
2665
+ 'ViewTableDisplay',
2666
+ 'ViewListDisplay',
2667
+ 'ViewKeyTermDefinition',
2668
+ 'ViewRangeNavigation',
2669
+ 'ViewHierarchyNavigation',
2670
+ 'ViewExperienceScope',
2671
+ 'ConversationFile',
2672
+ 'Collection',
2673
+ 'EventIngestChannel',
2674
+ 'ContentObjectExportArtifact',
2675
+ // `ProcessState` is deliberately absent: the process engine round-trips five `_`-prefixed
2676
+ // bookkeeping fields (`_current_node`, `_previous_node`, `_transition_count`, `_node_entries`,
2677
+ // `_node_tool_calls`) that are not part of the published contract. They cannot be published
2678
+ // either — `_current_node` and `current_node` normalize to the same Java/Go identifier — so the
2679
+ // component stays open and lets them pass rather than rejecting every process status update.
2680
+ 'AutonomousRunResponse',
2681
+ 'ListWorkflowRunsResponse',
2682
+ 'EventDeliveryQueueSubscriptionSummary',
2683
+ 'EventDeliveryQueueSummaryPayload',
2684
+ 'CancelEventDeliveryIntentsPayload',
2685
+ 'CancelEventDeliveryIntentsResponse',
2686
+ 'ContentObjectExportStatusResponse',
2687
+ 'TimerTask',
2688
+ 'SignalTask',
2689
+ 'ChildWorkflowTask',
2690
+ 'ActivityTask',
2691
+ 'WorkflowRunEvent',
2692
+ 'ViewNavigationResult',
2693
+ 'ViewExecutionQueryPlan',
2694
+ 'ViewExecutionSearchConfiguration',
2695
+ 'DSLRetryPolicy',
2696
+ 'CreateContentObjectPayload',
2697
+ 'EventIngestChannelMutationResponse',
2698
+ 'CreateEventIngestChannelPayload',
2699
+ 'AgentRun',
2700
+ 'CreateAgentRunPayload',
2701
+ 'ComputeCollectionFacetPayload',
2702
+ 'ProcessScriptResource',
2703
+ 'UpdateContentObjectPayload',
2704
+ 'EventSemanticCondition',
2705
+ 'UpdateEventIngestChannelPayload',
2706
+ 'EventDeliveryIntentSummary',
2707
+ 'ComplexSearchQuery',
2708
+ 'SearchAgentRunsResponse',
2709
+ 'ViewBoardCardConfiguration',
2710
+ 'ViewSearchConfiguration',
2711
+ 'ListContentObjectExportsResponse',
2712
+ 'WorkflowRunUpdatesResponse',
2713
+ 'EventDeliveryQueueSummaryResponse',
2714
+ 'ExportPropertiesPayload',
2715
+ 'ExecuteWorkflowPayload',
2716
+ 'ViewExecutionSearchResult',
2717
+ 'DSLActivityOptions',
2718
+ 'DSLActivitySpec',
2719
+ 'DSLActivityStep',
2720
+ 'ContentObjectApiResponse',
2721
+ 'ComputeObjectFacetPayload',
2722
+ 'EventSubscriptionFilter',
2723
+ 'EventDeliverySummary',
2724
+ 'ContentObjectItemApiResponse',
2725
+ 'ComplexSearchPayload',
2726
+ 'ViewBoardDisplay',
2727
+ 'AgentRunUpdatesResponse',
2728
+ 'ViewHit',
2729
+ 'ProcessResourcesDefinition',
2730
+ 'ListEventDeliveriesResponse',
2731
+ 'ObjectSearchResponse',
2732
+ 'WorkflowRunWithDetails',
2733
+ 'ViewResultsConfiguration',
2734
+ 'ViewExecutionDefinition',
2735
+ 'ViewExperienceConfiguration',
2736
+ 'ViewExecutionResult',
2737
+ 'PreviewViewExperienceRequest',
2738
+ 'BranchNodeBranchDefinition',
2739
+ 'CreateEventSubscriptionPayload',
2740
+ 'CreateProcessDefinitionPayload',
2741
+ 'DSLChildWorkflowStep',
2742
+ 'DSLWorkflowDefinition',
2743
+ 'DSLWorkflowDefinitionResponse',
2744
+ 'DSLWorkflowSpecWithActivities',
2745
+ 'DSLWorkflowSpecWithSteps',
2746
+ 'EventSubscription',
2747
+ 'EventSubscriptionMutationResponse',
2748
+ 'ListAgentRunsResponse',
2749
+ 'NodeDefinition',
2750
+ 'ProcessDefinition',
2751
+ 'ProcessDefinitionBody',
2752
+ 'ProcessEventDeliveryTarget',
2753
+ 'ProgrammaticRunResponse',
2754
+ 'SupervisedRunResponse',
2755
+ 'UpdateEventSubscriptionPayload',
2756
+ 'UpdateProcessDefinitionPayload',
2757
+ 'ViewCardsDisplay',
2758
+ 'ViewGalleryDisplay',
2759
+ 'CompactMessage',
2760
+ // The OAuth closure. Every object in it is published closed today; the ten enums and the two
2761
+ // array components take no additionalProperties at all, and `OAuthProviderData`/`OAuthClientData`
2762
+ // are composed rather than hoisted so they have no component to list.
2763
+ 'SuccessResponse',
2764
+ 'OAuthProvider',
2765
+ 'CreateOAuthProviderPayload',
2766
+ 'UpdateOAuthProviderPayload',
2767
+ 'OAuthProviderAuthStatus',
2768
+ 'OAuthProviderAuthorizeResponse',
2769
+ 'OAuthProviderAccessTokenResponse',
2770
+ 'OAuthProviderExchangePayload',
2771
+ 'OAuthClient',
2772
+ 'OAuthClientCreateResponse',
2773
+ 'OAuthClientScopeMetadata',
2774
+ 'CreateOAuthClientPayload',
2775
+ 'UpdateOAuthClientPayload',
2776
+ 'OAuthGrant',
2777
+ 'BulkRevokeOAuthGrantsPayload',
2778
+ 'OAuthGrantListResponse',
2779
+ 'OAuthGrantRevokeResponse',
2780
+ // Expanded into parameters rather than published, like the zeno and project query components.
2781
+ 'ListOAuthGrantsQuery',
2782
+ 'RevokeOAuthGrantQuery',
2783
+ // The environment closure. Every object here is published closed today EXCEPT
2784
+ // `ExecutionEnvironmentSettings`, which carries an index signature and publishes
2785
+ // `additionalProperties: {}` so a driver-specific setting this build has never heard of still
2786
+ // round-trips; it is deliberately absent from this list. The six enums take no
2787
+ // additionalProperties at all.
2788
+ 'ExecutionEnvironment',
2789
+ 'ExecutionEnvironmentRef',
2790
+ 'ExecutionEnvironmentCreatePayload',
2791
+ 'ExecutionEnvironmentUpdatePayload',
2792
+ 'ExecutionEnvironmentConfigUpdatePayload',
2793
+ 'EnableEnvironmentModelPayload',
2794
+ 'VirtualEnvEntry',
2795
+ 'LoadBalancingEnvConfig',
2796
+ 'LoadBalancingEnvEntryConfig',
2797
+ 'MediatorEnvConfig',
2798
+ 'AIModel',
2799
+ 'RunAnalyticsQuery',
2800
+ 'RunAnalyticsResult',
2801
+ 'AnalyticsAxis',
2802
+ 'EmbeddingsApiRequest',
2803
+ 'EmbeddingsApiSource',
2804
+ 'EmbeddingsApiTextInput',
2805
+ 'EmbeddingsApiImageInput',
2806
+ 'EmbeddingsApiVideoInput',
2807
+ 'EmbeddingsApiAudioInput',
2808
+ 'EmbeddingsResult',
2809
+ 'EmbeddingResultItem',
2810
+ 'EmbeddingOutput',
2811
+ 'EmbeddingsTokenUsage',
2812
+ // Expanded into parameters. `ListEnvironmentsQuery` and `ModelSearchPayload` are the two the
2813
+ // `/environments` resources take.
2814
+ 'ListEnvironmentsQuery',
2815
+ 'ModelSearchPayload',
2816
+ // The interaction, prompt, run and agent-conversation closure. Every name here is published
2817
+ // closed today.
2818
+ //
2819
+ // What is deliberately absent, and why, because the list is long enough that absence has to be
2820
+ // readable: the enums and string constants (`InteractionStatus`, `PromptStatus`, `TemplateType`,
2821
+ // `PromptSegmentDefType`, `InteractionVisibility`, `ExecutionRunStatus`, `RunSourceTypes`,
2822
+ // `ModelSource`, `LlmCallType`, `AgentSearchScope`, `AgentSearchScope_Collection`,
2823
+ // `AgentResourceAction`, `AgentResourceType`, `AgentToolApprovalMode`, `ConversationVisibility`,
2824
+ // `SortOrder`, `AsyncCompletionMode`, `PromptRole`, `Modalities`) and the array components take
2825
+ // no `additionalProperties` at all; the unions (`UserChannel`, `CompletionResult`,
2826
+ // `AsyncExecutionPayload`) and the `$ref` alias `ExecutionRunInteraction` take none either; and
2827
+ // the maps (`NumberValueMap`, `ToolApprovalGrantMap`, `ExternalizedToolInputRefs`,
2828
+ // `GeneratedTestDataRecord`, `GeneratedTestDataRecordArray`, `JSONObject`,
2829
+ // `ComputedFacetResponse`) publish a VALUE schema there rather than a policy. `ToolResultMeta`,
2830
+ // `AsyncInteractionExecutionPayload` and `AsyncConversationExecutionPayload` are open today and
2831
+ // stay open.
2832
+ 'PromptSegment',
2833
+ 'DataSource',
2834
+ 'ToolDefinition',
2835
+ 'ToolUse',
2836
+ 'TextResult',
2837
+ 'JsonResult',
2838
+ 'ImageResult',
2839
+ 'ExecutionTokenUsage',
2840
+ 'StatelessExecutionOptions',
2841
+ 'SchemaRef',
2842
+ 'CachePolicy',
2843
+ 'PromptModalities',
2844
+ 'PromptTemplate',
2845
+ 'PromptTemplateCreatePayload',
2846
+ 'PromptTemplateUpdatePayload',
2847
+ 'PromptTemplateRef',
2848
+ 'PromptSegmentDef',
2849
+ 'PromptSegmentRef_PromptTemplateRef',
2850
+ 'InCodePrompt',
2851
+ 'Interaction',
2852
+ 'InteractionRef',
2853
+ 'InteractionName',
2854
+ 'ExportedPromptTemplateRef',
2855
+ 'PromptSegmentRef_ExportedPromptTemplateRef',
2856
+ 'InteractionRefWithSchema',
2857
+ 'InteractionTags',
2858
+ 'InteractionEndpoint',
2859
+ 'InteractionEndpointQuery',
2860
+ 'InteractionCreatePayload',
2861
+ 'InteractionUpdatePayload',
2862
+ 'InteractionPublishPayload',
2863
+ 'InteractionForkPayload',
2864
+ 'InteractionsExportPayload',
2865
+ 'CatalogInteractionRef',
2866
+ 'ResolvedEnvironmentInfo',
2867
+ 'ResolvedInteractionExecutionInfo',
2868
+ 'FacetSpec',
2869
+ 'ComputeInteractionFacetPayload',
2870
+ 'ImprovePromptPayloadConfig',
2871
+ 'ImprovePromptPayload',
2872
+ 'PromptImprovementResponse',
2873
+ 'GenerateTestDataPayload',
2874
+ 'GenerateInteractionPayload',
2875
+ 'GeneratedInteractionDefinition',
2876
+ 'GeneratedInteractionPromptTemplate',
2877
+ 'GeneratedInteractionPromptSegment',
2878
+ 'AgentRunnerOptions',
2879
+ 'SkillContextTriggers',
2880
+ 'InitialToolCall',
2881
+ 'ConversationStripOptions',
2882
+ 'StreamingOptions',
2883
+ 'StreamingTelemetryContext',
2884
+ 'ResolvedRuntimeConfig',
2885
+ 'InteractiveChannel',
2886
+ 'EmailChannel',
2887
+ 'ToolReference',
2888
+ 'ToolResult',
2889
+ 'ExternalizedToolInputRef',
2890
+ 'ToolApprovalGrant',
2891
+ 'PendingToolApprovalResults',
2892
+ 'AgentResourceReference',
2893
+ 'PendingMcpConnection',
2894
+ 'UsedSkill',
2895
+ 'PlanTask',
2896
+ 'Plan',
2897
+ 'WorkflowAncestor',
2898
+ 'TextArtifactReference',
2899
+ 'ConversationState',
2900
+ 'RunSource',
2901
+ 'ExecutionRunDocRef',
2902
+ 'ExecutionRunWorkflow',
2903
+ 'ExecutionRun',
2904
+ 'ExecutionRunRef',
2905
+ 'UpdateExecutionRunPayload',
2906
+ 'RunCreatePayload',
2907
+ 'SortOption',
2908
+ 'RunSearchPayload',
2909
+ 'InteractionExecutionPayload',
2910
+ 'NamedInteractionExecutionPayload',
2911
+ 'InteractionExecutionResult',
2912
+ 'PopulatedExecutionRunResult',
2913
+ 'LegacyExecutionRunResult',
2914
+ 'LegacyPopulatedExecutionRunResult',
2915
+ 'InteractionExecutionError',
2916
+ 'ResultStorageOptions',
2917
+ 'AsyncCompletionOptions',
2918
+ 'AsyncExecutionResult',
2919
+ 'RateLimitRequestPayload',
2920
+ 'RateLimitRequestResponse',
2921
+ // Expanded into parameters rather than published, like every query contract above.
2922
+ // `ExecuteInteractionByEndpointHeaders` is listed for symmetry only: header validation matches
2923
+ // declared names and leaves everything else alone, so strictness cannot reject a real request.
2924
+ 'InteractionSearchQuery',
2925
+ 'RunSearchQuery',
2926
+ 'RunListQuery',
2927
+ 'CatalogTagQuery',
2928
+ 'StoredCatalogInteractionsQuery',
2929
+ 'ResolveInteractionQuery',
2930
+ 'ExecuteInteractionByEndpointQuery',
2931
+ 'ExecuteInteractionByEndpointHeaders',
2932
+ // The prompt-authoring, project-tool, remote-MCP, audit-trail and view-experience closures.
2933
+ // Every name here is published closed today.
2934
+ 'ValidateToolNamesPayload',
2935
+ 'ToolValidationResult',
2936
+ 'AggregatedTool',
2937
+ 'ValidateToolNamesResponse',
2938
+ 'RenderPromptResponse',
2939
+ 'PromptTemplateInteractionVersion',
2940
+ 'PromptTemplateForkPayload',
2941
+ 'PromptSearchQuery',
2942
+ 'PromptTemplateInteractionUsage',
2943
+ 'ComputePromptFacetPayload',
2944
+ 'PromptTemplateInteractionsResponse',
2945
+ 'MCPToolAnnotations',
2946
+ 'McpOAuthTokenResponse',
2947
+ 'McpOAuthTokenRequest',
2948
+ 'OAuthAuthStatus',
2949
+ 'OAuthMetadataResponse',
2950
+ 'McpOAuthDisconnectResponse',
2951
+ 'McpOAuthConnectResponse',
2952
+ 'OAuthAuthorizeResponse',
2953
+ 'SetMcpApiKeyRequest',
2954
+ 'McpApiKeyStatus',
2955
+ 'AuditMeter',
2956
+ 'AuditAggregationDimensionMap',
2957
+ 'AuditAggregationRow',
2958
+ 'AuditAggregationMetric',
2959
+ 'AuditAggregationGroup',
2960
+ 'AuditAggregationDetailFilter',
2961
+ 'AuditTrailEvent',
2962
+ 'AuditAggregationResponse',
2963
+ 'AuditAggregationFilter',
2964
+ 'AuditTrailResponse',
2965
+ 'AuditAggregationQuery',
2966
+ 'ViewSortClause',
2967
+ 'ViewResultMedia',
2968
+ 'ViewBoardColumn',
2969
+ 'ViewTableColumn',
2970
+ 'AgenticViewSearchConfiguration',
2971
+ 'ViewSearchFieldDefinition',
2972
+ 'ViewRangeDefinition',
2973
+ 'ViewHierarchyLevel',
2974
+ 'ViewTermsNavigation',
2975
+ 'ViewCollectionNavigation',
2976
+ 'ViewLocationNavigation',
2977
+ 'ViewExperienceLayout',
2978
+ 'ViewSortOption',
2979
+ 'ViewResultField',
2980
+ 'ViewTableDisplay',
2981
+ 'ViewListDisplay',
2982
+ 'ViewKeyTermDefinition',
2983
+ 'ViewRangeNavigation',
2984
+ 'ViewHierarchyNavigation',
2985
+ 'ViewExperienceScope',
2986
+ 'ViewBoardCardConfiguration',
2987
+ 'ViewSearchConfiguration',
2988
+ 'ViewBoardDisplay',
2989
+ 'ViewCardsDisplay',
2990
+ 'ViewGalleryDisplay',
2991
+ 'ViewResultsConfiguration',
2992
+ 'CreateViewExperienceRequest',
2993
+ 'ViewExperience',
2994
+ 'UpdateViewExperienceRequest',
2995
+ 'ListProjectToolsQuery',
2996
+ 'AuditTrailQuery',
2997
+ 'ViewExperienceListQuery',
2998
+ 'UpdateAppInstallationToolAllowlistPayload',
2999
+ 'ValidateUrlResponse',
3000
+ 'ValidateUrlRequest',
3001
+ 'AppVersionUrls',
3002
+ 'StartAppScaffoldResponse',
3003
+ 'StartAppBuildResponse',
3004
+ 'AppDevelopmentTask',
3005
+ 'AppInstallationProviderBinding',
3006
+ 'AppInstallationOAuthBinding',
3007
+ 'OAuthClientCredentials',
3008
+ 'McpApiKeyCredential',
3009
+ 'AppInspectionCapabilityReport',
3010
+ 'AppRepoTreeEntry',
3011
+ 'AppRepoRef',
3012
+ 'AppRepoCommit',
3013
+ 'EventRef',
3014
+ 'InCodeTypeRef',
3015
+ 'StoredTypeRef',
3016
+ 'DeleteAppVersionResponse',
3017
+ 'AppDeleteSummary',
3018
+ 'AppRepoBranch',
3019
+ 'AppRepoDocumentCommit',
3020
+ 'AppVersionGitSource',
3021
+ 'StartAppScaffoldRequest',
3022
+ 'StartAppBuildRequest',
3023
+ 'AgentToolDefinition',
3024
+ 'AppDevelopmentTaskList',
3025
+ 'AppInspectionIssue',
3026
+ 'AppScaffoldProgress',
3027
+ 'AppRepoTree',
3028
+ 'AppRepoRefs',
3029
+ 'AppRepoCommits',
3030
+ 'AppBuildProgress',
3031
+ 'AppVersionStorage',
3032
+ 'AppToolCollection',
3033
+ 'AppInspectionResult',
3034
+ 'AppVersionRecord',
3035
+ 'AgentRunSearchHit',
3036
+ 'UpsertAppVersionRequest',
3037
+ 'AppInstallationPayload',
3038
+ 'AppDevelopmentTaskDetails',
3039
+ 'AppInstallationsQuery',
3040
+ 'AppInstallationProjectsQuery',
3041
+ 'SystemPackageQuery',
3042
+ 'WebsiteCredentialTotpMetadata',
3043
+ 'WebsiteCredentialSecretInput',
3044
+ 'WebsiteCredentialWebsite',
3045
+ 'CompositeAppNavItemPermissions',
3046
+ 'CompositeAppEntry',
3047
+ 'CompositeAppHomePlugin',
3048
+ 'CompositeAppThemeOverrides',
3049
+ 'CompositeAppUserMenuOverrides',
3050
+ 'CompositeAppHeaderOverrides',
3051
+ 'CompositeAppSidebarOverrides',
3052
+ 'CompositeAppSwitchersOverrides',
3053
+ 'CompositeAppLogoOverrides',
3054
+ 'CompositeAppCardOverrides',
3055
+ 'WebsiteCredentialRecord',
3056
+ 'InCodeViewDefinition',
3057
+ 'InCodeProcessDefinition',
3058
+ 'AppInstallation',
3059
+ 'AskUserWebhookConfiguration',
3060
+ 'ResendConfiguration',
3061
+ 'LinkupConfiguration',
3062
+ 'ExaConfiguration',
3063
+ 'SerperConfiguration',
3064
+ 'GithubConfiguration',
3065
+ 'GladiaConfiguration',
3066
+ 'RemoteActivityDefinition',
3067
+ 'AppWidgetInfo',
3068
+ 'AppDashboardDefinition',
3069
+ 'WebsiteCredentialFillResponse',
3070
+ 'WebsiteCredentialFillRequest',
3071
+ 'DeleteSecretResponse',
3072
+ 'WebsiteCredentialMetadata',
3073
+ 'AppManifestData',
3074
+ 'WebsiteCredentialMetadataUpdate',
3075
+ 'AskUserWebhookConfigurationInput',
3076
+ 'ResendConfigurationInput',
3077
+ 'LinkupConfigurationInput',
3078
+ 'ExaConfigurationInput',
3079
+ 'SerperConfigurationInput',
3080
+ 'MagicPdfConfiguration',
3081
+ 'AwsConfiguration',
3082
+ 'GithubConfigurationInput',
3083
+ 'GladiaConfigurationInput',
3084
+ 'CompositeAppMenuNavItem',
3085
+ 'CompositeAppHeaderItem',
3086
+ 'CompositeAppMessageOverrides',
3087
+ 'AppManifest',
3088
+ 'SecretRecord',
3089
+ 'AppInstallationWithManifest',
3090
+ 'AppInstallationListEntry',
3091
+ 'CreateSecretRequest',
3092
+ 'UpdateSecretRequest',
3093
+ 'CompositeAppMenuSection',
3094
+ 'PromoteAppVersionResponse',
3095
+ 'ListSecretsResponse',
3096
+ 'CompositeAppConfig',
3097
+ 'AppPackage',
3098
+ 'BucketReadAccessQuery',
3099
+ 'BucketReadAccessStatusResponse',
3100
+ 'EnsureBucketReadAccessPayload',
3101
+ 'EnsureBucketReadAccessResponse',
3102
+ 'MigrateInteractionsPayload',
3103
+ 'MigrateInteractionsResult',
3104
+ 'PricingSyncPayload',
3105
+ 'PricingSyncDayResult',
3106
+ 'PricingSyncResult',
3107
+ 'ComputeRunFacetPayload',
3108
+ 'RunSearchMetaResponse',
3109
+ 'ToolResultsPayload',
3110
+ 'UserMessagePayload',
3111
+ 'ExecutionResponse',
3112
+ 'RunClonePayload',
3113
+ 'IngestAgentEventsPayload',
3114
+ 'IngestAgentEventsResponse',
3115
+ 'ActivityTypeDefinition',
3116
+ 'ActivityPropertyDefinition',
3117
+ 'ActivityDefinition',
3118
+ 'ActivityCatalog',
3119
+ 'WorkflowInteractionVars',
3120
+ 'ListWorkflowInteractionsResponse',
3121
+ 'EventWebhookSigningSecretRequest',
3122
+ 'EventWebhookSigningSecretResponse',
3123
+ 'SignEventWebhookRequest',
3124
+ 'SignEventWebhookResponse',
3125
+ 'EventIngestSigningSecretRequest',
3126
+ 'EventIngestSigningSecretResponse',
3127
+ 'VerifyEventIngestSignatureRequest',
3128
+ 'VerifyEventIngestSignatureResponse',
3129
+ 'GithubInstallationTokenRequest',
3130
+ 'GithubInstallationTokenResponse',
3131
+ 'InternalSecretDeleteResponse',
3132
+ ]);
3133
+
3134
+ /**
3135
+ * Emits raw JSON Schema for each registered schema.
3136
+ *
3137
+ * `io: 'input'` is deliberate and is NOT a request/response distinction — it selects the
3138
+ * permissive emission in which `additionalProperties` is omitted. Request and response contracts
3139
+ * that differ in fields or secret exposure need genuinely separate schemas; one schema cannot
3140
+ * serve both. The adapter applies the open/closed policy explicitly afterwards.
3141
+ *
3142
+ * `toJSONSchema` throws on constructs that cannot be represented (notably `.transform()`), which
3143
+ * is the guard we want: an API schema that cannot be published is a build failure, not a silent
3144
+ * divergence. Note that `.refine()` is silently DROPPED rather than rejected, so refinements must
3145
+ * not be used to express contract rules — they would be invisible to both the spec and AJV.
3146
+ */
3147
+ function emitRawSchemas(): Record<string, unknown> {
3148
+ return Object.fromEntries(
3149
+ Object.entries(API_SCHEMAS).map(([name, schema]) => [
3150
+ name,
3151
+ z.toJSONSchema(schema, { target: 'draft-2020-12', io: 'input' }),
3152
+ ]),
3153
+ );
3154
+ }
3155
+
3156
+ /**
3157
+ * The canonical `components.schemas` for all documented endpoints.
3158
+ *
3159
+ * This exact object is what the OpenAPI spec publishes AND what AJV compiles, so the published
3160
+ * contract and the enforced contract cannot diverge.
3161
+ */
3162
+ export const ApiSchemaComponents: Readonly<Record<string, JsonObject>> = toOpenApiComponents(emitRawSchemas(), {
3163
+ strictComponents: STRICT_COMPONENTS,
3164
+ });
3165
+
3166
+ /**
3167
+ * A canonical component as a SELF-CONTAINED JSON Schema, for consumers that compile it directly.
3168
+ *
3169
+ * The published component `$ref`s its neighbours through `#/components/schemas/...`, which resolves
3170
+ * only inside the OpenAPI document. AJV and the Monaco editor need a document they can compile on
3171
+ * its own, so the transitive closure is inlined under `$defs` and the pointers rewritten. Nothing
3172
+ * about the shapes changes — this is a re-rooting of the same objects, plus the removal of the
3173
+ * OpenAPI-only discriminator keywords described below, which is what lets a generated artifact be
3174
+ * compared with the component it came from.
3175
+ */
3176
+ export function bundleCanonicalComponent(name: ApiComponentName): JsonObject {
3177
+ const seen = new Set<string>();
3178
+ const queue: string[] = [name];
3179
+ while (queue.length > 0) {
3180
+ const current = queue.shift() as string;
3181
+ if (seen.has(current)) continue;
3182
+ seen.add(current);
3183
+ for (const referenced of collectComponentRefs(ApiSchemaComponents[current])) {
3184
+ if (!seen.has(referenced)) queue.push(referenced);
3185
+ }
3186
+ }
3187
+ seen.delete(name);
3188
+ const defs: JsonObject = {};
3189
+ for (const dependency of [...seen].sort()) {
3190
+ defs[dependency] = toPlainJsonSchema(ApiSchemaComponents[dependency]) as JsonObject;
3191
+ }
3192
+ const root = toPlainJsonSchema(ApiSchemaComponents[name]) as JsonObject;
3193
+ return seen.size > 0 ? { ...root, $defs: defs } : root;
3194
+ }
3195
+
3196
+ const COMPONENT_REF_PREFIX = '#/components/schemas/';
3197
+
3198
+ /**
3199
+ * Re-roots the component pointers AND drops the discriminator keywords, which are OpenAPI's, not
3200
+ * JSON Schema's.
3201
+ *
3202
+ * `synthesizeDiscriminator` in the adapter gives a discriminated union a `discriminator` plus a
3203
+ * restated `type: 'object'` and `required: [propertyName]` ON THE UNION NODE, so a generated
3204
+ * Java/Go client can pick a subtype from the union rather than the branches. That restatement is a
3205
+ * codegen hint: the node carries no `properties`, so it says "an object that must have
3206
+ * `_option_id`" while declaring nothing that could be one.
3207
+ *
3208
+ * A JSON Schema validator does not mind — `required` needs no matching `properties`, and each
3209
+ * branch requires the same key anyway, so removing all three is validation-neutral. Gemini's
3210
+ * function-declaration validator does mind, and rejects the whole tool:
3211
+ *
3212
+ * schema at properties.intake.properties.extraction.properties.config.properties.model_options
3213
+ * requires unspecified property '_option_id'
3214
+ *
3215
+ * That was a 400 on every agent turn offering `create_or_update_type`, because the intake-policy
3216
+ * artifact reaches Vertex inside that tool's input schema. Stripping here rather than at the tool
3217
+ * keeps the next component someone bundles from reintroducing it. The OpenAPI document is untouched
3218
+ * — `ApiSchemaComponents` still carries the hint, and the generated clients still read it.
3219
+ */
3220
+ function toPlainJsonSchema(value: unknown): unknown {
3221
+ const rerooted = rerootComponentRefs(value);
3222
+ return stripDiscriminators(rerooted);
3223
+ }
3224
+
3225
+ function stripDiscriminators(value: unknown): unknown {
3226
+ if (Array.isArray(value)) return value.map(stripDiscriminators);
3227
+ if (!value || typeof value !== 'object') return value;
3228
+ const node = value as JsonObject;
3229
+ // `properties` present means the node describes an object in its own right, so its `type` and
3230
+ // `required` are the schema's own rather than the restatement — only the OpenAPI keyword goes.
3231
+ const restated = node.discriminator !== undefined && node.properties === undefined;
3232
+ const out: JsonObject = {};
3233
+ for (const [key, item] of Object.entries(node)) {
3234
+ if (key === 'discriminator') continue;
3235
+ if (restated && (key === 'type' || key === 'required')) continue;
3236
+ out[key] = stripDiscriminators(item) as never;
3237
+ }
3238
+ return out;
3239
+ }
3240
+
3241
+ function collectComponentRefs(value: unknown, out = new Set<string>()): Set<string> {
3242
+ if (Array.isArray(value)) {
3243
+ for (const item of value) collectComponentRefs(item, out);
3244
+ return out;
3245
+ }
3246
+ if (!value || typeof value !== 'object') return out;
3247
+ for (const [key, item] of Object.entries(value)) {
3248
+ if (key === '$ref' && typeof item === 'string' && item.startsWith(COMPONENT_REF_PREFIX)) {
3249
+ out.add(item.slice(COMPONENT_REF_PREFIX.length));
3250
+ } else {
3251
+ collectComponentRefs(item, out);
3252
+ }
3253
+ }
3254
+ return out;
3255
+ }
3256
+
3257
+ function rerootComponentRefs(value: unknown): unknown {
3258
+ if (Array.isArray(value)) return value.map(rerootComponentRefs);
3259
+ if (!value || typeof value !== 'object') return value;
3260
+ const out: JsonObject = {};
3261
+ for (const [key, item] of Object.entries(value)) {
3262
+ out[key] =
3263
+ key === '$ref' && typeof item === 'string' && item.startsWith(COMPONENT_REF_PREFIX)
3264
+ ? `#/$defs/${item.slice(COMPONENT_REF_PREFIX.length)}`
3265
+ : (rerootComponentRefs(item) as never);
3266
+ }
3267
+ return out;
3268
+ }
3269
+
3270
+ /** The `$ref` pointer for a component, in the same spelling the spec publishes. */
3271
+ export function apiComponentRef(name: ApiComponentName): string {
3272
+ return `#/components/schemas/${name}`;
3273
+ }
3274
+
3275
+ /**
3276
+ * Explicit TypeScript recursion boundary for schemas whose runtime graph is lazy.
3277
+ *
3278
+ * Zod cannot infer a finite named type through a mutually-recursive graph. The schemas remain the
3279
+ * runtime and OpenAPI authority; these names preserve the recursive TypeScript declarations until
3280
+ * TypeScript can infer recursive aliases without collapsing them to `unknown`.
3281
+ */
3282
+ interface ZenoRecursiveComponentTypes {
3283
+ ViewNavigationNode: ViewNavigationNode;
3284
+ AgentRunResponse: AgentRunResponse;
3285
+ AgentRunInternals: AgentRunInternals;
3286
+ BindRunWorkflowPayload: BindRunWorkflowPayload;
3287
+ BranchNodeBranchDefinition: BranchNodeBranchDefinition;
3288
+ CreateEventSubscriptionPayload: CreateEventSubscriptionPayload;
3289
+ CreateProcessDefinitionPayload: CreateProcessDefinitionPayload;
3290
+ DSLChildWorkflowStep: DSLChildWorkflowStep;
3291
+ DSLWorkflowDefinition: DSLWorkflowDefinition;
3292
+ DSLWorkflowDefinitionResponse: DSLWorkflowDefinitionResponse;
3293
+ DSLWorkflowSpec: DSLWorkflowSpec;
3294
+ DSLWorkflowSpecWithActivities: DSLWorkflowTypes.DSLWorkflowSpecWithActivities;
3295
+ DSLWorkflowSpecWithSteps: DSLWorkflowSpecWithSteps;
3296
+ DSLWorkflowStep: DSLWorkflowStep;
3297
+ EventDeliveryTarget: EventDeliveryTarget;
3298
+ EventDeliveryTargetInput: EventDeliveryTargetInput;
3299
+ EventSubscription: EventSubscription;
3300
+ EventSubscriptionArray: EventSubscription[];
3301
+ EventSubscriptionMutationResponse: EventSubscriptionMutationResponse;
3302
+ ListAgentRunsResponse: ListAgentRunsResponse;
3303
+ NodeDefinition: NodeDefinition;
3304
+ NodeDefinitionMap: Record<string, NodeDefinition>;
3305
+ ProcessDefinition: ProcessDefinition;
3306
+ ProcessDefinitionArray: ProcessDefinition[];
3307
+ ProcessDefinitionBody: ProcessDefinitionBody;
3308
+ ProcessEventDeliveryTarget: ProcessEventDeliveryTarget;
3309
+ ProgrammaticRunResponse: ProgrammaticRunResponse;
3310
+ RecordRunPayload: RecordRunPayload;
3311
+ SupervisedRunResponse: SupervisedRunResponse;
3312
+ UpdateAgentRunStatusPayload: UpdateAgentRunStatusPayload;
3313
+ UpdateEventSubscriptionPayload: UpdateEventSubscriptionPayload;
3314
+ UpdateProcessDefinitionPayload: UpdateProcessDefinitionPayload;
3315
+ WorkflowDefinitionPayload: DSLWorkflowTypes.WorkflowDefinitionPayload;
3316
+ WorkflowDefinitionPayloadWithActivities: DSLWorkflowTypes.WorkflowDefinitionPayloadWithActivities;
3317
+ WorkflowDefinitionPayloadWithSteps: DSLWorkflowTypes.WorkflowDefinitionPayloadWithSteps;
3318
+ }
3319
+
3320
+ /**
3321
+ * The wire type a component publishes.
3322
+ *
3323
+ * `ApiComponentType<'Account'>` is `z.infer<typeof AccountSchema>` — the map is indexed directly
3324
+ * rather than dispatched through the groups, which the intersection makes possible.
3325
+ */
3326
+ export type ApiComponentType<N extends ApiComponentName> = N extends keyof ZenoRecursiveComponentTypes
3327
+ ? ZenoRecursiveComponentTypes[N]
3328
+ : z.infer<ApiSchemaMap[N]>;
3329
+
3330
+ /**
3331
+ * Names a published component from inside a handler signature:
3332
+ * `Promise<ApiSchemaOf<'Account'>>`.
3333
+ *
3334
+ * It is `ApiComponentType` under a different name, and the rename carries the whole point. To
3335
+ * TypeScript it is the wire type, so the handler's return type is checked against the same registry
3336
+ * component that `apiOkComponent('Account')` publishes and AJV enforces.
3337
+ */
3338
+ export type ApiSchemaOf<N extends ApiComponentName> = ApiComponentType<N>;
3339
+
3340
+ /**
3341
+ * Validators compiled against the published components, through an envelope so the pointer AJV
3342
+ * resolves is the exact pointer the spec publishes. `strictSchema: false` tolerates the
3343
+ * `components` wrapper while leaving type and tuple checks active.
3344
+ *
3345
+ * Compiled lazily and cached: AJV compilation is the expensive step, and most components are
3346
+ * never validated in a given process.
3347
+ */
3348
+ const validators = new Map<string, ValidateFunction>();
3349
+
3350
+ /**
3351
+ * One instance for the process, built on first validation.
3352
+ *
3353
+ * Per-component instances meant re-registering the whole thousand-component envelope for every
3354
+ * component ever validated, and AJV walks a schema when it is added. Sharing one instance also lets
3355
+ * it reuse the compiled form of a component that two others reference.
3356
+ */
3357
+ let ajvInstance: Ajv2020 | undefined;
3358
+
3359
+ function getAjv(): Ajv2020 {
3360
+ if (ajvInstance) return ajvInstance;
3361
+ const ajv = new Ajv2020({ strictSchema: false, allErrors: true });
3362
+ // Without this, AJV treats `format` as an annotation and ignores it, so a `date-time` property
3363
+ // would document a constraint nothing checks — the exact spec/enforcement gap this design is
3364
+ // meant to close.
3365
+ addFormats(ajv);
3366
+ ajv.addSchema({ $id: 'vertesia://openapi', components: { schemas: ApiSchemaComponents } });
3367
+ ajvInstance = ajv;
3368
+ return ajv;
3369
+ }
3370
+
3371
+ function getValidator(name: ApiComponentName): ValidateFunction {
3372
+ const cached = validators.get(name);
3373
+ if (cached) return cached;
3374
+ const validate = getAjv().compile({ $ref: `vertesia://openapi${apiComponentRef(name)}` });
3375
+ validators.set(name, validate);
3376
+ return validate;
3377
+ }
3378
+
3379
+ function formatErrors(validate: ValidateFunction): string[] {
3380
+ return (validate.errors ?? []).map((error) => {
3381
+ const where = error.instancePath || '/';
3382
+ // AJV writes "must NOT have additional properties" and puts the offending key in `params`,
3383
+ // so the message alone says a body is wrong without saying which property made it wrong.
3384
+ // Every other keyword names its subject already — `required` quotes the missing property,
3385
+ // `enum` and `type` describe the value in place — and this is the one a caller most often
3386
+ // trips, so it is the one worth spelling out rather than reformatting all of them.
3387
+ const additional = (error.params as { additionalProperty?: string } | undefined)?.additionalProperty;
3388
+ return additional ? `${where} ${error.message}: ${additional}` : `${where} ${error.message}`;
3389
+ });
3390
+ }
3391
+
3392
+ export type ValidateApiPayloadResult<T> = { valid: true; data: T } | { valid: false; errors: string[] };
3393
+
3394
+ /**
3395
+ * Validates an untyped request body against the component the endpoint publishes.
3396
+ *
3397
+ * Non-mutating by design. AJV's removal modes are never used here: the server would then accept a
3398
+ * body the published schema declares invalid, silently disagreeing with its own spec — and
3399
+ * `removeAdditional: 'all'` additionally empties freeform maps. An undeclared property is reported,
3400
+ * not deleted.
3401
+ *
3402
+ * The component type is handed back only on the `valid` branch, so a body missing required fields
3403
+ * cannot be typed as complete. What the caller does with a failure — reject, or log and continue —
3404
+ * is the endpoint's policy, not this function's.
3405
+ */
3406
+ export function validateApiRequest<N extends ApiComponentName>(
3407
+ name: N,
3408
+ value: unknown,
3409
+ ): ValidateApiPayloadResult<ApiComponentType<N>> {
3410
+ const validate = getValidator(name);
3411
+ if (validate(value)) {
3412
+ return { valid: true, data: value as ApiComponentType<N> };
3413
+ }
3414
+ return { valid: false, errors: formatErrors(validate) };
3415
+ }
3416
+
3417
+ /**
3418
+ * Validates an already-mapped response against the component it is published as.
3419
+ *
3420
+ * Separate from {@link pruneAndValidateApiResponse} because a resource mapper has already produced
3421
+ * the wire shape: there is nothing to prune, and pruning would only mask a mapper bug. Use this at
3422
+ * the response boundary to detect drift between what the mapper builds and what the spec promises.
3423
+ */
3424
+ export function validateApiResponse<N extends ApiComponentName>(
3425
+ name: N,
3426
+ value: unknown,
3427
+ ): ValidateApiPayloadResult<ApiComponentType<N>> {
3428
+ const validate = getValidator(name);
3429
+ if (validate(value)) {
3430
+ return { valid: true, data: value as ApiComponentType<N> };
3431
+ }
3432
+ return { valid: false, errors: formatErrors(validate) };
3433
+ }
3434
+
3435
+ /**
3436
+ * Best-effort normalization of a response payload towards the fields its published component
3437
+ * declares. Use this on the response path INSTEAD of an AJV removal mode, which would empty
3438
+ * freeform maps such as `Account.feature_flags`.
3439
+ *
3440
+ * NOT a secret-removal boundary. Ambiguous schema shapes pass values through untouched — see
3441
+ * {@link pruneToSchema} and check a component with {@link findUnprunablePaths} before treating its
3442
+ * output as closed. Fields that must never ship still need an explicit response mapper.
3443
+ *
3444
+ * Never throws and never rejects: an undocumented field is server-side drift, and failing the
3445
+ * response would punish the caller for it.
3446
+ *
3447
+ * Takes a value the caller has already typed as the component. Pruning only REMOVES undeclared
3448
+ * extras, so a conforming input yields a conforming output and the return type is honest. It does
3449
+ * NOT validate, which is why it cannot accept `unknown` — narrowing a payload that is missing
3450
+ * required fields would hand TypeScript a complete `Account` that does not exist at runtime. Use
3451
+ * {@link pruneAndValidateApiResponse} when the payload's shape is not already established.
3452
+ *
3453
+ * Request validation stays separate and non-mutating — pruning a request would make the server
3454
+ * silently disagree with the permissive schema it publishes.
3455
+ */
3456
+ export function pruneApiResponse<N extends ApiComponentName>(name: N, value: ApiComponentType<N>): ApiComponentType<N> {
3457
+ return pruneToSchema(value, { $ref: apiComponentRef(name) }, ApiSchemaComponents) as ApiComponentType<N>;
3458
+ }
3459
+
3460
+ export type PruneAndValidateResult<T> = { valid: true; data: T } | { valid: false; data: unknown; errors: string[] };
3461
+
3462
+ /**
3463
+ * Prunes an untyped payload and validates the result against the published component.
3464
+ *
3465
+ * The only sound entry point for a payload of unknown shape: the component type is handed back
3466
+ * exclusively on the `valid` branch, so a document missing required fields cannot be typed as
3467
+ * complete. On failure the pruned value is still returned — the caller decides whether to ship it
3468
+ * and log, or fail — which keeps the "never turn drift into a 500" property a policy choice rather
3469
+ * than something baked in here.
3470
+ *
3471
+ */
3472
+ export function pruneAndValidateApiResponse<N extends ApiComponentName>(
3473
+ name: N,
3474
+ value: unknown,
3475
+ ): PruneAndValidateResult<ApiComponentType<N>> {
3476
+ const pruned = pruneToSchema(value, { $ref: apiComponentRef(name) }, ApiSchemaComponents);
3477
+ const validate = getValidator(name);
3478
+ if (validate(pruned)) {
3479
+ return { valid: true, data: pruned as ApiComponentType<N> };
3480
+ }
3481
+ return { valid: false, data: pruned, errors: formatErrors(validate) };
3482
+ }
3483
+
3484
+ /**
3485
+ * Paths inside a component where pruning cannot narrow. Empty means no STRUCTURAL gaps for
3486
+ * schema-conforming input — see {@link findUnprunablePaths} for why that is weaker than "nothing
3487
+ * can escape". Anything listed needs an explicit response mapper.
3488
+ */
3489
+ export function findUnprunableApiPaths(name: ApiComponentName): string[] {
3490
+ return findUnprunablePaths({ $ref: apiComponentRef(name) }, ApiSchemaComponents);
3491
+ }
3492
+
3493
+ /**
3494
+ * Normalizes raw query or header text into the value a component describes.
3495
+ *
3496
+ * Binds {@link normalizeParameters} to {@link ApiSchemaComponents} — the same objects the OpenAPI
3497
+ * document publishes and {@link validateApiRequest} compiles. That is what keeps the published
3498
+ * parameter and the enforced one the same declaration: the scanner expands this component's
3499
+ * properties into `in: query` parameters, and the coercion below is decided by those same property
3500
+ * schemas, so neither can be changed without changing the other.
3501
+ *
3502
+ * Validate the result with {@link validateApiRequest}, which is non-coercing: everything type-related
3503
+ * has already happened here, so a value this could not coerce is reported against the published
3504
+ * schema rather than by a second rule.
3505
+ */
3506
+ export function normalizeApiParameters(
3507
+ name: ApiComponentName,
3508
+ raw: RawApiParameters,
3509
+ location: ApiParameterLocation,
3510
+ ): NormalizedApiParameters {
3511
+ return normalizeParameters(name, raw, location, ApiSchemaComponents[name], ApiSchemaComponents);
3512
+ }