@homeflare/distilled-litellm 0.2.0 → 0.3.0

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 (390) hide show
  1. package/README.md +41 -12
  2. package/dist/services/a2a.js +1 -1
  3. package/dist/services/a2a_registration.js +1 -1
  4. package/dist/services/access_groups.d.ts +18 -0
  5. package/dist/services/access_groups.d.ts.map +1 -1
  6. package/dist/services/access_groups.js +15 -1
  7. package/dist/services/access_groups.js.map +1 -1
  8. package/dist/services/adaptive_router.js +1 -1
  9. package/dist/services/agents.d.ts +10 -0
  10. package/dist/services/agents.d.ts.map +1 -1
  11. package/dist/services/agents.js +10 -1
  12. package/dist/services/agents.js.map +1 -1
  13. package/dist/services/alerting.js +1 -1
  14. package/dist/services/anthropic_passthrough.js +1 -1
  15. package/dist/services/anthropic_skills.d.ts +7 -1
  16. package/dist/services/anthropic_skills.d.ts.map +1 -1
  17. package/dist/services/anthropic_skills.js +6 -2
  18. package/dist/services/anthropic_skills.js.map +1 -1
  19. package/dist/services/assistants.js +1 -1
  20. package/dist/services/audio.js +1 -1
  21. package/dist/services/audit_logging.d.ts +2 -0
  22. package/dist/services/audit_logging.d.ts.map +1 -1
  23. package/dist/services/audit_logging.js +2 -1
  24. package/dist/services/audit_logging.js.map +1 -1
  25. package/dist/services/auto_router.d.ts +162 -62
  26. package/dist/services/auto_router.d.ts.map +1 -1
  27. package/dist/services/auto_router.js +92 -31
  28. package/dist/services/auto_router.js.map +1 -1
  29. package/dist/services/batch.js +1 -1
  30. package/dist/services/beta_agents.js +1 -1
  31. package/dist/services/beta_mcp.js +1 -1
  32. package/dist/services/budget_management.d.ts +8 -3
  33. package/dist/services/budget_management.d.ts.map +1 -1
  34. package/dist/services/budget_management.js +7 -4
  35. package/dist/services/budget_management.js.map +1 -1
  36. package/dist/services/budget_spend_tracking.d.ts +24 -5
  37. package/dist/services/budget_spend_tracking.d.ts.map +1 -1
  38. package/dist/services/budget_spend_tracking.js +17 -4
  39. package/dist/services/budget_spend_tracking.js.map +1 -1
  40. package/dist/services/cache_settings.js +1 -1
  41. package/dist/services/caching.js +1 -1
  42. package/dist/services/chat_completions.js +1 -1
  43. package/dist/services/claude_code_marketplace.d.ts +11 -10
  44. package/dist/services/claude_code_marketplace.d.ts.map +1 -1
  45. package/dist/services/claude_code_marketplace.js +8 -6
  46. package/dist/services/claude_code_marketplace.js.map +1 -1
  47. package/dist/services/cloudzero.js +1 -1
  48. package/dist/services/completions.js +1 -1
  49. package/dist/services/compliance.js +1 -1
  50. package/dist/services/config_overrides.d.ts +5 -1
  51. package/dist/services/config_overrides.d.ts.map +1 -1
  52. package/dist/services/config_overrides.js +3 -1
  53. package/dist/services/config_overrides.js.map +1 -1
  54. package/dist/services/config_yaml.d.ts +120 -6
  55. package/dist/services/config_yaml.d.ts.map +1 -1
  56. package/dist/services/config_yaml.js +67 -1
  57. package/dist/services/config_yaml.js.map +1 -1
  58. package/dist/services/containers.d.ts +8 -2
  59. package/dist/services/containers.d.ts.map +1 -1
  60. package/dist/services/containers.js +13 -5
  61. package/dist/services/containers.js.map +1 -1
  62. package/dist/services/coordination_redis_settings.js +1 -1
  63. package/dist/services/cost_tracking.d.ts +91 -1
  64. package/dist/services/cost_tracking.d.ts.map +1 -1
  65. package/dist/services/cost_tracking.js +82 -2
  66. package/dist/services/cost_tracking.js.map +1 -1
  67. package/dist/services/credential_management.d.ts +2 -1
  68. package/dist/services/credential_management.d.ts.map +1 -1
  69. package/dist/services/credential_management.js +3 -2
  70. package/dist/services/credential_management.js.map +1 -1
  71. package/dist/services/customer_management.d.ts +25 -2
  72. package/dist/services/customer_management.d.ts.map +1 -1
  73. package/dist/services/customer_management.js +22 -3
  74. package/dist/services/customer_management.js.map +1 -1
  75. package/dist/services/email_management.js +1 -1
  76. package/dist/services/embeddings.js +1 -1
  77. package/dist/services/evals.js +1 -1
  78. package/dist/services/experimental.js +1 -1
  79. package/dist/services/fallback_management.js +1 -1
  80. package/dist/services/files.js +1 -1
  81. package/dist/services/fine_tuning.js +1 -1
  82. package/dist/services/gemini_agents.js +1 -1
  83. package/dist/services/google_genai_endpoints.js +1 -1
  84. package/dist/services/guardrails.d.ts +80 -7
  85. package/dist/services/guardrails.d.ts.map +1 -1
  86. package/dist/services/guardrails.js +37 -1
  87. package/dist/services/guardrails.js.map +1 -1
  88. package/dist/services/health.d.ts +2 -2
  89. package/dist/services/health.d.ts.map +1 -1
  90. package/dist/services/health.js +2 -2
  91. package/dist/services/health.js.map +1 -1
  92. package/dist/services/images.js +1 -1
  93. package/dist/services/index.d.ts +1 -15
  94. package/dist/services/index.d.ts.map +1 -1
  95. package/dist/services/index.js +1 -15
  96. package/dist/services/index.js.map +1 -1
  97. package/dist/services/internal_user_management.d.ts +227 -39
  98. package/dist/services/internal_user_management.d.ts.map +1 -1
  99. package/dist/services/internal_user_management.js +194 -37
  100. package/dist/services/internal_user_management.js.map +1 -1
  101. package/dist/services/invite_links.js +1 -1
  102. package/dist/services/jwt_mappings.d.ts +3 -0
  103. package/dist/services/jwt_mappings.d.ts.map +1 -1
  104. package/dist/services/jwt_mappings.js +4 -1
  105. package/dist/services/jwt_mappings.js.map +1 -1
  106. package/dist/services/key_management.d.ts +93 -49
  107. package/dist/services/key_management.d.ts.map +1 -1
  108. package/dist/services/key_management.js +75 -39
  109. package/dist/services/key_management.js.map +1 -1
  110. package/dist/services/langfuse_passthrough.js +1 -1
  111. package/dist/services/llm_passthrough.d.ts +1199 -0
  112. package/dist/services/llm_passthrough.d.ts.map +1 -0
  113. package/dist/services/llm_passthrough.js +2150 -0
  114. package/dist/services/llm_passthrough.js.map +1 -0
  115. package/dist/services/llm_utils.js +1 -1
  116. package/dist/services/logging_callbacks.js +1 -1
  117. package/dist/services/mcp_byok_oauth.d.ts +18 -11
  118. package/dist/services/mcp_byok_oauth.d.ts.map +1 -1
  119. package/dist/services/mcp_byok_oauth.js +27 -24
  120. package/dist/services/mcp_byok_oauth.js.map +1 -1
  121. package/dist/services/mcp_discoverable.d.ts +34 -0
  122. package/dist/services/mcp_discoverable.d.ts.map +1 -1
  123. package/dist/services/mcp_discoverable.js +51 -1
  124. package/dist/services/mcp_discoverable.js.map +1 -1
  125. package/dist/services/mcp_management.d.ts +90 -2
  126. package/dist/services/mcp_management.d.ts.map +1 -1
  127. package/dist/services/mcp_management.js +115 -3
  128. package/dist/services/mcp_management.js.map +1 -1
  129. package/dist/services/mcp_rest.d.ts +13 -0
  130. package/dist/services/mcp_rest.d.ts.map +1 -1
  131. package/dist/services/mcp_rest.js +10 -2
  132. package/dist/services/mcp_rest.js.map +1 -1
  133. package/dist/services/memory_management.d.ts +2 -0
  134. package/dist/services/memory_management.d.ts.map +1 -1
  135. package/dist/services/memory_management.js +2 -1
  136. package/dist/services/memory_management.js.map +1 -1
  137. package/dist/services/misc.d.ts +86 -1
  138. package/dist/services/misc.d.ts.map +1 -1
  139. package/dist/services/misc.js +126 -2
  140. package/dist/services/misc.js.map +1 -1
  141. package/dist/services/model_management.d.ts +310 -19
  142. package/dist/services/model_management.d.ts.map +1 -1
  143. package/dist/services/model_management.js +240 -7
  144. package/dist/services/model_management.js.map +1 -1
  145. package/dist/services/moderations.js +1 -1
  146. package/dist/services/ocr.js +1 -1
  147. package/dist/services/open_ai_pass_through.d.ts +35 -90
  148. package/dist/services/open_ai_pass_through.d.ts.map +1 -1
  149. package/dist/services/open_ai_pass_through.js +41 -139
  150. package/dist/services/open_ai_pass_through.js.map +1 -1
  151. package/dist/services/organization_management.d.ts +21 -1
  152. package/dist/services/organization_management.d.ts.map +1 -1
  153. package/dist/services/organization_management.js +20 -2
  154. package/dist/services/organization_management.js.map +1 -1
  155. package/dist/services/plugins.js +1 -1
  156. package/dist/services/policies.d.ts +2 -0
  157. package/dist/services/policies.d.ts.map +1 -1
  158. package/dist/services/policies.js +3 -1
  159. package/dist/services/policies.js.map +1 -1
  160. package/dist/services/policy_engine.d.ts +6 -0
  161. package/dist/services/policy_engine.d.ts.map +1 -1
  162. package/dist/services/policy_engine.js +4 -1
  163. package/dist/services/policy_engine.js.map +1 -1
  164. package/dist/services/project_management.d.ts +15 -0
  165. package/dist/services/project_management.d.ts.map +1 -1
  166. package/dist/services/project_management.js +14 -1
  167. package/dist/services/project_management.js.map +1 -1
  168. package/dist/services/prompts.js +1 -1
  169. package/dist/services/public.d.ts +124 -0
  170. package/dist/services/public.d.ts.map +1 -1
  171. package/dist/services/public.js +158 -1
  172. package/dist/services/public.js.map +1 -1
  173. package/dist/services/rag.js +1 -1
  174. package/dist/services/realtime.d.ts +4 -26
  175. package/dist/services/realtime.d.ts.map +1 -1
  176. package/dist/services/realtime.js +7 -57
  177. package/dist/services/realtime.js.map +1 -1
  178. package/dist/services/rerank.d.ts +72 -0
  179. package/dist/services/rerank.d.ts.map +1 -1
  180. package/dist/services/rerank.js +61 -4
  181. package/dist/services/rerank.js.map +1 -1
  182. package/dist/services/responses.d.ts +30 -0
  183. package/dist/services/responses.d.ts.map +1 -1
  184. package/dist/services/responses.js +59 -1
  185. package/dist/services/responses.js.map +1 -1
  186. package/dist/services/router_settings.js +1 -1
  187. package/dist/services/rust_control_plane.js +1 -1
  188. package/dist/services/scim.d.ts +41 -1
  189. package/dist/services/scim.d.ts.map +1 -1
  190. package/dist/services/scim.js +60 -2
  191. package/dist/services/scim.js.map +1 -1
  192. package/dist/services/search.js +1 -1
  193. package/dist/services/search_tools.js +1 -1
  194. package/dist/services/settings.d.ts +88 -0
  195. package/dist/services/settings.d.ts.map +1 -1
  196. package/dist/services/settings.js +113 -1
  197. package/dist/services/settings.js.map +1 -1
  198. package/dist/services/sso_settings.d.ts +1 -1
  199. package/dist/services/sso_settings.d.ts.map +1 -1
  200. package/dist/services/sso_settings.js +1 -1
  201. package/dist/services/sso_settings.js.map +1 -1
  202. package/dist/services/tag_management.d.ts +7 -0
  203. package/dist/services/tag_management.d.ts.map +1 -1
  204. package/dist/services/tag_management.js +8 -1
  205. package/dist/services/tag_management.js.map +1 -1
  206. package/dist/services/team_management.d.ts +265 -17
  207. package/dist/services/team_management.d.ts.map +1 -1
  208. package/dist/services/team_management.js +247 -12
  209. package/dist/services/team_management.js.map +1 -1
  210. package/dist/services/tools.js +1 -1
  211. package/dist/services/ui_settings.js +1 -1
  212. package/dist/services/ui_theme_settings.js +1 -1
  213. package/dist/services/usage_ai.js +1 -1
  214. package/dist/services/vantage.js +1 -1
  215. package/dist/services/vector_store_management.js +1 -1
  216. package/dist/services/vector_stores.js +1 -1
  217. package/dist/services/videos.js +1 -1
  218. package/dist/services/web_socket.d.ts +0 -18
  219. package/dist/services/web_socket.d.ts.map +1 -1
  220. package/dist/services/web_socket.js +1 -33
  221. package/dist/services/web_socket.js.map +1 -1
  222. package/dist/services/workflow_management.js +1 -1
  223. package/package.json +1 -1
  224. package/src/services/a2a.ts +1 -1
  225. package/src/services/a2a_registration.ts +1 -1
  226. package/src/services/access_groups.ts +44 -1
  227. package/src/services/adaptive_router.ts +1 -1
  228. package/src/services/agents.ts +22 -1
  229. package/src/services/alerting.ts +1 -1
  230. package/src/services/anthropic_passthrough.ts +1 -1
  231. package/src/services/anthropic_skills.ts +12 -2
  232. package/src/services/assistants.ts +1 -1
  233. package/src/services/audio.ts +1 -1
  234. package/src/services/audit_logging.ts +4 -1
  235. package/src/services/auto_router.ts +303 -93
  236. package/src/services/batch.ts +1 -1
  237. package/src/services/beta_agents.ts +1 -1
  238. package/src/services/beta_mcp.ts +1 -1
  239. package/src/services/budget_management.ts +12 -4
  240. package/src/services/budget_spend_tracking.ts +38 -6
  241. package/src/services/cache_settings.ts +1 -1
  242. package/src/services/caching.ts +1 -1
  243. package/src/services/chat_completions.ts +1 -1
  244. package/src/services/claude_code_marketplace.ts +20 -14
  245. package/src/services/cloudzero.ts +1 -1
  246. package/src/services/completions.ts +1 -1
  247. package/src/services/compliance.ts +1 -1
  248. package/src/services/config_overrides.ts +8 -2
  249. package/src/services/config_yaml.ts +251 -6
  250. package/src/services/containers.ts +29 -11
  251. package/src/services/coordination_redis_settings.ts +1 -1
  252. package/src/services/cost_tracking.ts +198 -2
  253. package/src/services/credential_management.ts +9 -4
  254. package/src/services/customer_management.ts +49 -3
  255. package/src/services/email_management.ts +1 -1
  256. package/src/services/embeddings.ts +1 -1
  257. package/src/services/evals.ts +1 -1
  258. package/src/services/experimental.ts +1 -1
  259. package/src/services/fallback_management.ts +1 -1
  260. package/src/services/files.ts +1 -1
  261. package/src/services/fine_tuning.ts +1 -1
  262. package/src/services/gemini_agents.ts +1 -1
  263. package/src/services/google_genai_endpoints.ts +1 -1
  264. package/src/services/guardrails.ts +198 -8
  265. package/src/services/health.ts +3 -2
  266. package/src/services/images.ts +1 -1
  267. package/src/services/index.ts +1 -15
  268. package/src/services/internal_user_management.ts +565 -103
  269. package/src/services/invite_links.ts +1 -1
  270. package/src/services/jwt_mappings.ts +7 -1
  271. package/src/services/key_management.ts +229 -126
  272. package/src/services/langfuse_passthrough.ts +1 -1
  273. package/src/services/llm_passthrough.ts +4542 -0
  274. package/src/services/llm_utils.ts +1 -1
  275. package/src/services/logging_callbacks.ts +1 -1
  276. package/src/services/mcp_byok_oauth.ts +65 -45
  277. package/src/services/mcp_discoverable.ts +109 -1
  278. package/src/services/mcp_management.ts +258 -3
  279. package/src/services/mcp_rest.ts +30 -5
  280. package/src/services/memory_management.ts +4 -1
  281. package/src/services/misc.ts +269 -2
  282. package/src/services/model_management.ts +666 -21
  283. package/src/services/moderations.ts +1 -1
  284. package/src/services/ocr.ts +1 -1
  285. package/src/services/open_ai_pass_through.ts +81 -286
  286. package/src/services/organization_management.ts +44 -2
  287. package/src/services/plugins.ts +1 -1
  288. package/src/services/policies.ts +5 -1
  289. package/src/services/policy_engine.ts +10 -1
  290. package/src/services/project_management.ts +33 -1
  291. package/src/services/prompts.ts +1 -1
  292. package/src/services/public.ts +356 -1
  293. package/src/services/rag.ts +1 -1
  294. package/src/services/realtime.ts +11 -111
  295. package/src/services/rerank.ts +187 -7
  296. package/src/services/responses.ts +117 -1
  297. package/src/services/router_settings.ts +1 -1
  298. package/src/services/rust_control_plane.ts +1 -1
  299. package/src/services/scim.ts +134 -3
  300. package/src/services/search.ts +1 -1
  301. package/src/services/search_tools.ts +1 -1
  302. package/src/services/settings.ts +278 -1
  303. package/src/services/sso_settings.ts +2 -1
  304. package/src/services/tag_management.ts +15 -1
  305. package/src/services/team_management.ts +676 -37
  306. package/src/services/tools.ts +1 -1
  307. package/src/services/ui_settings.ts +1 -1
  308. package/src/services/ui_theme_settings.ts +1 -1
  309. package/src/services/usage_ai.ts +1 -1
  310. package/src/services/vantage.ts +1 -1
  311. package/src/services/vector_store_management.ts +1 -1
  312. package/src/services/vector_stores.ts +1 -1
  313. package/src/services/videos.ts +1 -1
  314. package/src/services/web_socket.ts +1 -61
  315. package/src/services/workflow_management.ts +1 -1
  316. package/dist/services/anthropic_pass_through.d.ts +0 -70
  317. package/dist/services/anthropic_pass_through.d.ts.map +0 -1
  318. package/dist/services/anthropic_pass_through.js +0 -114
  319. package/dist/services/anthropic_pass_through.js.map +0 -1
  320. package/dist/services/assembly_ai_eu_pass_through.d.ts +0 -70
  321. package/dist/services/assembly_ai_eu_pass_through.d.ts.map +0 -1
  322. package/dist/services/assembly_ai_eu_pass_through.js +0 -114
  323. package/dist/services/assembly_ai_eu_pass_through.js.map +0 -1
  324. package/dist/services/assembly_ai_pass_through.d.ts +0 -70
  325. package/dist/services/assembly_ai_pass_through.d.ts.map +0 -1
  326. package/dist/services/assembly_ai_pass_through.js +0 -114
  327. package/dist/services/assembly_ai_pass_through.js.map +0 -1
  328. package/dist/services/aws_comprehend_medical_pass_through.d.ts +0 -36
  329. package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +0 -1
  330. package/dist/services/aws_comprehend_medical_pass_through.js +0 -56
  331. package/dist/services/aws_comprehend_medical_pass_through.js.map +0 -1
  332. package/dist/services/azure_ai_pass_through.d.ts +0 -70
  333. package/dist/services/azure_ai_pass_through.d.ts.map +0 -1
  334. package/dist/services/azure_ai_pass_through.js +0 -112
  335. package/dist/services/azure_ai_pass_through.js.map +0 -1
  336. package/dist/services/azure_pass_through.d.ts +0 -70
  337. package/dist/services/azure_pass_through.d.ts.map +0 -1
  338. package/dist/services/azure_pass_through.js +0 -107
  339. package/dist/services/azure_pass_through.js.map +0 -1
  340. package/dist/services/bedrock_pass_through.d.ts +0 -70
  341. package/dist/services/bedrock_pass_through.d.ts.map +0 -1
  342. package/dist/services/bedrock_pass_through.js +0 -114
  343. package/dist/services/bedrock_pass_through.js.map +0 -1
  344. package/dist/services/cohere_pass_through.d.ts +0 -70
  345. package/dist/services/cohere_pass_through.d.ts.map +0 -1
  346. package/dist/services/cohere_pass_through.js +0 -112
  347. package/dist/services/cohere_pass_through.js.map +0 -1
  348. package/dist/services/cursor_pass_through.d.ts +0 -70
  349. package/dist/services/cursor_pass_through.d.ts.map +0 -1
  350. package/dist/services/cursor_pass_through.js +0 -112
  351. package/dist/services/cursor_pass_through.js.map +0 -1
  352. package/dist/services/google_ai_studio_pass_through.d.ts +0 -70
  353. package/dist/services/google_ai_studio_pass_through.d.ts.map +0 -1
  354. package/dist/services/google_ai_studio_pass_through.js +0 -112
  355. package/dist/services/google_ai_studio_pass_through.js.map +0 -1
  356. package/dist/services/milvus_pass_through.d.ts +0 -70
  357. package/dist/services/milvus_pass_through.d.ts.map +0 -1
  358. package/dist/services/milvus_pass_through.js +0 -112
  359. package/dist/services/milvus_pass_through.js.map +0 -1
  360. package/dist/services/mistral_pass_through.d.ts +0 -70
  361. package/dist/services/mistral_pass_through.d.ts.map +0 -1
  362. package/dist/services/mistral_pass_through.js +0 -114
  363. package/dist/services/mistral_pass_through.js.map +0 -1
  364. package/dist/services/vertex_ai_pass_through.d.ts +0 -180
  365. package/dist/services/vertex_ai_pass_through.d.ts.map +0 -1
  366. package/dist/services/vertex_ai_pass_through.js +0 -334
  367. package/dist/services/vertex_ai_pass_through.js.map +0 -1
  368. package/dist/services/vllm_pass_through.d.ts +0 -70
  369. package/dist/services/vllm_pass_through.d.ts.map +0 -1
  370. package/dist/services/vllm_pass_through.js +0 -104
  371. package/dist/services/vllm_pass_through.js.map +0 -1
  372. package/dist/services/watsonx_pass_through.d.ts +0 -70
  373. package/dist/services/watsonx_pass_through.d.ts.map +0 -1
  374. package/dist/services/watsonx_pass_through.js +0 -114
  375. package/dist/services/watsonx_pass_through.js.map +0 -1
  376. package/src/services/anthropic_pass_through.ts +0 -233
  377. package/src/services/assembly_ai_eu_pass_through.ts +0 -237
  378. package/src/services/assembly_ai_pass_through.ts +0 -237
  379. package/src/services/aws_comprehend_medical_pass_through.ts +0 -109
  380. package/src/services/azure_ai_pass_through.ts +0 -231
  381. package/src/services/azure_pass_through.ts +0 -227
  382. package/src/services/bedrock_pass_through.ts +0 -229
  383. package/src/services/cohere_pass_through.ts +0 -227
  384. package/src/services/cursor_pass_through.ts +0 -227
  385. package/src/services/google_ai_studio_pass_through.ts +0 -227
  386. package/src/services/milvus_pass_through.ts +0 -227
  387. package/src/services/mistral_pass_through.ts +0 -229
  388. package/src/services/vertex_ai_pass_through.ts +0 -684
  389. package/src/services/vllm_pass_through.ts +0 -227
  390. package/src/services/watsonx_pass_through.ts +0 -229
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -34,18 +34,24 @@ export type PiiEntityType =
34
34
  | "PHONE_NUMBER"
35
35
  | "MEDICAL_LICENSE"
36
36
  | "URL"
37
+ | "MAC_ADDRESS"
38
+ | "UUID"
37
39
  | "US_BANK_NUMBER"
38
40
  | "US_DRIVER_LICENSE"
39
41
  | "US_ITIN"
40
42
  | "US_PASSPORT"
41
43
  | "US_SSN"
44
+ | "US_MBI"
45
+ | "US_NPI"
42
46
  | "UK_NHS"
43
47
  | "UK_NINO"
44
48
  | "UK_PASSPORT"
45
49
  | "UK_POSTCODE"
46
50
  | "UK_VEHICLE_REGISTRATION"
51
+ | "UK_DRIVING_LICENCE"
47
52
  | "ES_NIF"
48
53
  | "ES_NIE"
54
+ | "ES_PASSPORT"
49
55
  | "IT_FISCAL_CODE"
50
56
  | "IT_DRIVER_LICENSE"
51
57
  | "IT_VAT_CODE"
@@ -63,7 +69,38 @@ export type PiiEntityType =
63
69
  | "IN_VEHICLE_REGISTRATION"
64
70
  | "IN_VOTER"
65
71
  | "IN_PASSPORT"
66
- | "FI_PERSONAL_IDENTITY_CODE";
72
+ | "IN_GSTIN"
73
+ | "FI_PERSONAL_IDENTITY_CODE"
74
+ | "DE_TAX_ID"
75
+ | "DE_TAX_NUMBER"
76
+ | "DE_VAT_ID"
77
+ | "DE_PASSPORT"
78
+ | "DE_ID_CARD"
79
+ | "DE_FUEHRERSCHEIN"
80
+ | "DE_SOCIAL_SECURITY"
81
+ | "DE_HEALTH_INSURANCE"
82
+ | "DE_LANR"
83
+ | "DE_BSNR"
84
+ | "DE_KFZ"
85
+ | "DE_HANDELSREGISTER"
86
+ | "DE_PLZ"
87
+ | "KR_RRN"
88
+ | "KR_FRN"
89
+ | "KR_PASSPORT"
90
+ | "KR_DRIVER_LICENSE"
91
+ | "KR_BRN"
92
+ | "CA_SIN"
93
+ | "SE_PERSONNUMMER"
94
+ | "SE_ORGANISATIONSNUMMER"
95
+ | "TH_TNIN"
96
+ | "TR_NATIONAL_ID"
97
+ | "TR_LICENSE_PLATE"
98
+ | "NG_NIN"
99
+ | "NG_VEHICLE_REGISTRATION"
100
+ | "PH_TIN"
101
+ | "PH_UMID"
102
+ | "PH_PASSPORT"
103
+ | "ZA_ID_NUMBER";
67
104
  export const PiiEntityType = S.String;
68
105
 
69
106
  export type ApplyGuardrailApplyGuardrailPostRequestEntitiesList = Array<
@@ -612,7 +649,11 @@ export const LitellmParamsOnFlagged = S.String;
612
649
  export type LitellmParamsOnSensitiveData = "block" | "route";
613
650
  export const LitellmParamsOnSensitiveData = S.String;
614
651
 
615
- export type LitellmParamsOnViolation = "warn" | "end_session";
652
+ export type LitellmParamsOnViolation =
653
+ | "warn"
654
+ | "end_session"
655
+ | "block"
656
+ | "alert";
616
657
  export const LitellmParamsOnViolation = S.String;
617
658
 
618
659
  export type CiscoAIDefenseRuleEntityTypesList = Array<string>;
@@ -856,6 +897,8 @@ export interface LitellmParams {
856
897
  additional_provider_specific_params?: LitellmParamsAdditionalProviderSpecificParamsMap | null;
857
898
  /** Custom advisory message template used when on_flagged='inject_system_message'. Must contain a {reason} placeholder. Defaults to a generic advisory message if unset. */
858
899
  advisory_system_message?: string | null;
900
+ /** Agent identity reported to Agent 365 with every tool evaluation. When unset, the caller's key alias is used. */
901
+ agent_id?: string | null;
859
902
  /** Akto account ID for multi-tenant deployments. Env: AKTO_ACCOUNT_ID. Default: '1000000'. */
860
903
  akto_account_id?: string | null;
861
904
  /** API key for Akto. Env: AKTO_API_KEY. */
@@ -930,10 +973,16 @@ export interface LitellmParams {
930
973
  categories?: LitellmParamsCategoriesList | null;
931
974
  /** Threshold configuration for Lakera guardrail categories */
932
975
  category_thresholds?: LakeraCategoryThresholds | null;
976
+ /** Inject the Headroom retrieval tool for hashes declared by the compression service. */
977
+ ccr_retrieval?: boolean;
933
978
  /** Inline safeguards for the resource-less InvokeGuardrailChecks API (contentFilter / promptAttack / sensitiveInformation). When set, the guardrail calls InvokeGuardrailChecks instead of ApplyGuardrail and no guardrailIdentifier is required. Mutually exclusive with guardrailIdentifier. */
934
979
  checks?: BedrockChecksConfigModel | null;
935
980
  /** ApplyGuardrail: batch size, in characters, used to re-send content after AWS has rejected a request as too large. Requests AWS accepts are always sent in a single call, so this has no effect until a rejection happens. Defaults to 25,000; a batch AWS still rejects is bisected automatically, so this value only trades round trips against batch size and cannot fail a request on its own. */
936
981
  chunk_budget_chars?: number;
982
+ /** Client id of the gateway's Entra app registration (a confidential client). Falls back to the AGENT365_CLIENT_ID environment variable. */
983
+ client_id?: string | null;
984
+ /** Client secret of the gateway's Entra app registration, used to perform the On-Behalf-Of exchange. Falls back to the AGENT365_CLIENT_SECRET environment variable. */
985
+ client_secret?: string | null;
937
986
  /** Only block or mask when detection confidence >= this value; below threshold, allow or log_only. */
938
987
  confidence_threshold?: number;
939
988
  /** Additional configuration for the guardrail */
@@ -942,6 +991,8 @@ export interface LitellmParams {
942
991
  content_filter_threshold?: number | null;
943
992
  /** Enable content moderation to check for harmful content (harassment, hate speech, etc.). */
944
993
  content_moderation_check?: boolean | null;
994
+ /** ApplyGuardrail: when True, post-call scans of a request with no grounding_source / query content parts send the system and developer messages as the grounding source and the latest user message as the query, so the guardrail's contextual grounding policy can score the response. Bedrock bills contextual grounding units for these scans and rejects queries, sources and responses over its contextual grounding length limits, so leave this off for guardrails without a contextual grounding policy. Default False: plain messages are never sent as grounding context. */
995
+ contextual_grounding_from_messages?: boolean;
945
996
  /** Path to Google Cloud credentials JSON file or JSON string */
946
997
  credentials?: string | null;
947
998
  /** Python-like code containing the apply_guardrail function for custom guardrail logic */
@@ -999,6 +1050,8 @@ export interface LitellmParams {
999
1050
  include_evidence?: boolean | null;
1000
1051
  /** Include scanner category summaries in responses (sets `plr_scanners` header). */
1001
1052
  include_scanners?: boolean | null;
1053
+ /** When True, the Aim and Cato Networks guardrails send /embeddings `input` to the vendor as user messages. Off by default because embedding input is documents being indexed, not a conversation. */
1054
+ inspect_embeddings?: boolean | null;
1002
1055
  /** Boolean flag to determine if calling a detector server (True) or the FMS Orchestrator (False). Defaults to True. */
1003
1056
  is_detector_server?: boolean | null;
1004
1057
  /** Tag to use for keyword redaction */
@@ -1033,7 +1086,7 @@ export interface LitellmParams {
1033
1086
  on_flagged_action?: string | null;
1034
1087
  /** Action to take when sensitive data is detected. 'block' raises an exception (default behavior). 'route' reroutes the request to the model specified in sensitive_data_route_to_model. */
1035
1088
  on_sensitive_data?: LitellmParamsOnSensitiveData | (string & {}) | null;
1036
- /** For /v1/realtime sessions: 'warn' speaks the violation message and continues; 'end_session' speaks the message and closes the connection. */
1089
+ /** For /v1/realtime sessions: 'warn' speaks the violation message and continues; 'end_session' speaks the message and closes the connection. For guardrail='mcp_security': 'block' rejects the request; 'alert' only logs a warning. */
1037
1090
  on_violation?: LitellmParamsOnViolation | (string & {}) | null;
1038
1091
  /** When True, the guardrail only scans messages that have not already been scanned earlier in the same session (identified by litellm_session_id / session_id). Message content is hashed per session and cached; only the diff (new or edited messages) is sent to the guardrail provider on follow-up calls. Falls back to a full scan when the request has no session id or the cache is unavailable. Intended for blocking/detection guardrails; not applied when mask_request_content is set. */
1039
1092
  only_scan_new_messages?: boolean | null;
@@ -1098,6 +1151,8 @@ export interface LitellmParams {
1098
1151
  prompt_injections?: boolean | null;
1099
1152
  /** The message the bot speaks aloud when a /v1/realtime guardrail fires. Falls back to violation_message_template if not set. */
1100
1153
  realtime_violation_message?: string | null;
1154
+ /** Application id of the Agent 365 resource the OBO token is minted for. Defaults to the production resource ea9ffc3e-8a23-4a7d-836d-234d7c7565c1; the Test and PreProd environments use a different id. Falls back to the AGENT365_RESOURCE_APP_ID environment variable. */
1155
+ resource_app_id?: string | null;
1101
1156
  /** Ordered allow/deny rules. Patterns use regex for tool names/types and optional regex constraints on tool arguments. */
1102
1157
  rules?: LitellmParamsRulesList | null;
1103
1158
  /** When True, this pre_call or post_call guardrail runs concurrently with other opted-in guardrails of the same hook, after the sequential guardrails have run. Use only for block-only guardrails that inspect and reject; do not enable it for guardrails that modify the request or response (e.g. PII masking or sensitive-data routing), since parallel runs share one snapshot and their mutations would race. */
@@ -1136,6 +1191,8 @@ export interface LitellmParams {
1136
1191
  sticky_session_routing?: boolean | null;
1137
1192
  /** The ID of your Model Armor template */
1138
1193
  template_id?: string | null;
1194
+ /** Entra tenant id used for the On-Behalf-Of token exchange. Falls back to the AGENT365_TENANT_ID environment variable. */
1195
+ tenant_id?: string | null;
1139
1196
  /** Per-request timeout for the guardrail provider API call (seconds). Accepts int, float, or numeric string; coerced to float on load. Each guardrail handler chooses its own default when unset. */
1140
1197
  timeout?: number | null;
1141
1198
  /** Enable tool selection quality check to evaluate quality of tool/function calls. */
@@ -1164,6 +1221,7 @@ export const LitellmParams = /*@__PURE__*/ S.suspend(() =>
1164
1221
  S.NullOr(LitellmParamsAdditionalProviderSpecificParamsMap),
1165
1222
  ),
1166
1223
  advisory_system_message: S.optional(S.NullOr(S.String)),
1224
+ agent_id: S.optional(S.NullOr(S.String)),
1167
1225
  akto_account_id: S.optional(S.NullOr(S.String)),
1168
1226
  akto_api_key: S.optional(S.NullOr(S.String)),
1169
1227
  akto_base_url: S.optional(S.NullOr(S.String)),
@@ -1201,12 +1259,16 @@ export const LitellmParams = /*@__PURE__*/ S.suspend(() =>
1201
1259
  breakdown: S.optional(S.NullOr(S.Boolean)),
1202
1260
  categories: S.optional(S.NullOr(LitellmParamsCategoriesList)),
1203
1261
  category_thresholds: S.optional(S.NullOr(LakeraCategoryThresholds)),
1262
+ ccr_retrieval: S.optional(S.Boolean),
1204
1263
  checks: S.optional(S.NullOr(BedrockChecksConfigModel)),
1205
1264
  chunk_budget_chars: S.optional(S.Number),
1265
+ client_id: S.optional(S.NullOr(S.String)),
1266
+ client_secret: S.optional(S.NullOr(S.String)),
1206
1267
  confidence_threshold: S.optional(S.Number),
1207
1268
  config: S.optional(S.NullOr(LitellmParamsConfigMap)),
1208
1269
  content_filter_threshold: S.optional(S.NullOr(S.Number)),
1209
1270
  content_moderation_check: S.optional(S.NullOr(S.Boolean)),
1271
+ contextual_grounding_from_messages: S.optional(S.Boolean),
1210
1272
  credentials: S.optional(S.NullOr(S.String)),
1211
1273
  custom_code: S.optional(S.NullOr(S.String)),
1212
1274
  deepkeep_firewall_id: S.optional(S.NullOr(S.String)),
@@ -1238,6 +1300,7 @@ export const LitellmParams = /*@__PURE__*/ S.suspend(() =>
1238
1300
  hallucinations_check: S.optional(S.NullOr(S.Boolean)),
1239
1301
  include_evidence: S.optional(S.NullOr(S.Boolean)),
1240
1302
  include_scanners: S.optional(S.NullOr(S.Boolean)),
1303
+ inspect_embeddings: S.optional(S.NullOr(S.Boolean)),
1241
1304
  is_detector_server: S.optional(S.NullOr(S.Boolean)),
1242
1305
  keyword_redaction_tag: S.optional(S.NullOr(S.String)),
1243
1306
  lasso_conversation_id: S.optional(S.NullOr(S.String)),
@@ -1296,6 +1359,7 @@ export const LitellmParams = /*@__PURE__*/ S.suspend(() =>
1296
1359
  prompt_attack_threshold: S.optional(S.NullOr(S.Number)),
1297
1360
  prompt_injections: S.optional(S.NullOr(S.Boolean)),
1298
1361
  realtime_violation_message: S.optional(S.NullOr(S.String)),
1362
+ resource_app_id: S.optional(S.NullOr(S.String)),
1299
1363
  rules: S.optional(S.NullOr(LitellmParamsRulesList)),
1300
1364
  run_in_parallel: S.optional(S.NullOr(S.Boolean)),
1301
1365
  sanitize_error_detail: S.optional(S.NullOr(S.Boolean)),
@@ -1315,6 +1379,7 @@ export const LitellmParams = /*@__PURE__*/ S.suspend(() =>
1315
1379
  skip_unscannable_attachments: S.optional(S.NullOr(S.Boolean)),
1316
1380
  sticky_session_routing: S.optional(S.NullOr(S.Boolean)),
1317
1381
  template_id: S.optional(S.NullOr(S.String)),
1382
+ tenant_id: S.optional(S.NullOr(S.String)),
1318
1383
  timeout: S.optional(S.NullOr(S.Number)),
1319
1384
  tool_selection_quality_check: S.optional(S.NullOr(S.Boolean)),
1320
1385
  tracker_api_base: S.optional(S.NullOr(S.String)),
@@ -1587,6 +1652,30 @@ export const GetGuardrailsUsageDetailGuardrailsUsageDetailGuardrailIdRequest =
1587
1652
  "GetGuardrailsUsageDetailGuardrailsUsageDetailGuardrailIdRequest",
1588
1653
  }) as any as S.Schema<GetGuardrailsUsageDetailGuardrailsUsageDetailGuardrailIdRequest>;
1589
1654
 
1655
+ export type UsageDetailResponseCostByKeyMap = {
1656
+ [key: string]: number | null | undefined;
1657
+ };
1658
+ export const UsageDetailResponseCostByKeyMap = /*@__PURE__*/ S.Record(
1659
+ S.String,
1660
+ S.NullOr(S.Number),
1661
+ ) as any as S.Schema<UsageDetailResponseCostByKeyMap>;
1662
+
1663
+ export type UsageDetailResponseCostByTeamMap = {
1664
+ [key: string]: number | null | undefined;
1665
+ };
1666
+ export const UsageDetailResponseCostByTeamMap = /*@__PURE__*/ S.Record(
1667
+ S.String,
1668
+ S.NullOr(S.Number),
1669
+ ) as any as S.Schema<UsageDetailResponseCostByTeamMap>;
1670
+
1671
+ export type UsageDetailResponseCostByUnitMap = {
1672
+ [key: string]: number | null | undefined;
1673
+ };
1674
+ export const UsageDetailResponseCostByUnitMap = /*@__PURE__*/ S.Record(
1675
+ S.String,
1676
+ S.NullOr(S.Number),
1677
+ ) as any as S.Schema<UsageDetailResponseCostByUnitMap>;
1678
+
1590
1679
  export interface UsageChartPoint {
1591
1680
  blocked: number;
1592
1681
  date: string;
@@ -1609,6 +1698,54 @@ export const UsageDetailResponseTimeSeriesList = /*@__PURE__*/ S.Array(
1609
1698
  UsageChartPoint,
1610
1699
  ) as any as S.Schema<UsageDetailResponseTimeSeriesList>;
1611
1700
 
1701
+ export type UsageDetailResponseUntrackedUsageUnitsMap = {
1702
+ [key: string]: number | undefined;
1703
+ };
1704
+ export const UsageDetailResponseUntrackedUsageUnitsMap = /*@__PURE__*/ S.Record(
1705
+ S.String,
1706
+ S.Number,
1707
+ ) as any as S.Schema<UsageDetailResponseUntrackedUsageUnitsMap>;
1708
+
1709
+ export type UsageDetailResponseUntrackedUsageUnitsByKeyValueMap = {
1710
+ [key: string]: number | undefined;
1711
+ };
1712
+ export const UsageDetailResponseUntrackedUsageUnitsByKeyValueMap =
1713
+ /*@__PURE__*/ S.Record(
1714
+ S.String,
1715
+ S.Number,
1716
+ ) as any as S.Schema<UsageDetailResponseUntrackedUsageUnitsByKeyValueMap>;
1717
+
1718
+ export type UsageDetailResponseUntrackedUsageUnitsByKeyMap = {
1719
+ [key: string]:
1720
+ | UsageDetailResponseUntrackedUsageUnitsByKeyValueMap
1721
+ | undefined;
1722
+ };
1723
+ export const UsageDetailResponseUntrackedUsageUnitsByKeyMap =
1724
+ /*@__PURE__*/ S.Record(
1725
+ S.String,
1726
+ UsageDetailResponseUntrackedUsageUnitsByKeyValueMap,
1727
+ ) as any as S.Schema<UsageDetailResponseUntrackedUsageUnitsByKeyMap>;
1728
+
1729
+ export type UsageDetailResponseUntrackedUsageUnitsByTeamValueMap = {
1730
+ [key: string]: number | undefined;
1731
+ };
1732
+ export const UsageDetailResponseUntrackedUsageUnitsByTeamValueMap =
1733
+ /*@__PURE__*/ S.Record(
1734
+ S.String,
1735
+ S.Number,
1736
+ ) as any as S.Schema<UsageDetailResponseUntrackedUsageUnitsByTeamValueMap>;
1737
+
1738
+ export type UsageDetailResponseUntrackedUsageUnitsByTeamMap = {
1739
+ [key: string]:
1740
+ | UsageDetailResponseUntrackedUsageUnitsByTeamValueMap
1741
+ | undefined;
1742
+ };
1743
+ export const UsageDetailResponseUntrackedUsageUnitsByTeamMap =
1744
+ /*@__PURE__*/ S.Record(
1745
+ S.String,
1746
+ UsageDetailResponseUntrackedUsageUnitsByTeamValueMap,
1747
+ ) as any as S.Schema<UsageDetailResponseUntrackedUsageUnitsByTeamMap>;
1748
+
1612
1749
  export type UsageDetailResponseUsageUnitsMap = {
1613
1750
  [key: string]: number | undefined;
1614
1751
  };
@@ -1660,11 +1797,13 @@ export const UsageUnitsDailyPointUnitsMap = /*@__PURE__*/ S.Record(
1660
1797
  ) as any as S.Schema<UsageUnitsDailyPointUnitsMap>;
1661
1798
 
1662
1799
  export interface UsageUnitsDailyPoint {
1800
+ cost: number | null;
1663
1801
  date: string;
1664
1802
  units: UsageUnitsDailyPointUnitsMap;
1665
1803
  }
1666
1804
  export const UsageUnitsDailyPoint = /*@__PURE__*/ S.suspend(() =>
1667
1805
  S.Struct({
1806
+ cost: S.NullOr(S.Number),
1668
1807
  date: S.String,
1669
1808
  units: UsageUnitsDailyPointUnitsMap,
1670
1809
  }),
@@ -1681,6 +1820,10 @@ export const UsageDetailResponseUsageUnitsDailyList = /*@__PURE__*/ S.Array(
1681
1820
  export interface UsageDetailResponse {
1682
1821
  avgLatency: number | null;
1683
1822
  avgScore: number | null;
1823
+ cost: number | null;
1824
+ cost_by_key: UsageDetailResponseCostByKeyMap;
1825
+ cost_by_team: UsageDetailResponseCostByTeamMap;
1826
+ cost_by_unit: UsageDetailResponseCostByUnitMap;
1684
1827
  description: string | null;
1685
1828
  failRate: number;
1686
1829
  guardrail_id: string;
@@ -1691,6 +1834,9 @@ export interface UsageDetailResponse {
1691
1834
  time_series: UsageDetailResponseTimeSeriesList;
1692
1835
  trend: string;
1693
1836
  type: string;
1837
+ untracked_usage_units: UsageDetailResponseUntrackedUsageUnitsMap;
1838
+ untracked_usage_units_by_key: UsageDetailResponseUntrackedUsageUnitsByKeyMap;
1839
+ untracked_usage_units_by_team: UsageDetailResponseUntrackedUsageUnitsByTeamMap;
1694
1840
  usage_units: UsageDetailResponseUsageUnitsMap;
1695
1841
  usage_units_by_key: UsageDetailResponseUsageUnitsByKeyMap;
1696
1842
  usage_units_by_team: UsageDetailResponseUsageUnitsByTeamMap;
@@ -1700,6 +1846,10 @@ export const UsageDetailResponse = /*@__PURE__*/ S.suspend(() =>
1700
1846
  S.Struct({
1701
1847
  avgLatency: S.NullOr(S.Number),
1702
1848
  avgScore: S.NullOr(S.Number),
1849
+ cost: S.NullOr(S.Number),
1850
+ cost_by_key: UsageDetailResponseCostByKeyMap,
1851
+ cost_by_team: UsageDetailResponseCostByTeamMap,
1852
+ cost_by_unit: UsageDetailResponseCostByUnitMap,
1703
1853
  description: S.NullOr(S.String),
1704
1854
  failRate: S.Number,
1705
1855
  guardrail_id: S.String,
@@ -1710,6 +1860,11 @@ export const UsageDetailResponse = /*@__PURE__*/ S.suspend(() =>
1710
1860
  time_series: UsageDetailResponseTimeSeriesList,
1711
1861
  trend: S.String,
1712
1862
  type: S.String,
1863
+ untracked_usage_units: UsageDetailResponseUntrackedUsageUnitsMap,
1864
+ untracked_usage_units_by_key:
1865
+ UsageDetailResponseUntrackedUsageUnitsByKeyMap,
1866
+ untracked_usage_units_by_team:
1867
+ UsageDetailResponseUntrackedUsageUnitsByTeamMap,
1713
1868
  usage_units: UsageDetailResponseUsageUnitsMap,
1714
1869
  usage_units_by_key: UsageDetailResponseUsageUnitsByKeyMap,
1715
1870
  usage_units_by_team: UsageDetailResponseUsageUnitsByTeamMap,
@@ -1815,6 +1970,15 @@ export const UsageOverviewResponseChartList = /*@__PURE__*/ S.Array(
1815
1970
  UsageChartPoint,
1816
1971
  ) as any as S.Schema<UsageOverviewResponseChartList>;
1817
1972
 
1973
+ /** The share of usageUnits that cost leaves out: units recorded with no known price, per counter */
1974
+ export type UsageOverviewRowUntrackedUsageUnitsMap = {
1975
+ [key: string]: number | undefined;
1976
+ };
1977
+ export const UsageOverviewRowUntrackedUsageUnitsMap = /*@__PURE__*/ S.Record(
1978
+ S.String,
1979
+ S.Number,
1980
+ ) as any as S.Schema<UsageOverviewRowUntrackedUsageUnitsMap>;
1981
+
1818
1982
  export type UsageOverviewRowUsageUnitsMap = {
1819
1983
  [key: string]: number | undefined;
1820
1984
  };
@@ -1826,6 +1990,8 @@ export const UsageOverviewRowUsageUnitsMap = /*@__PURE__*/ S.Record(
1826
1990
  export interface UsageOverviewRow {
1827
1991
  avgLatency: number | null;
1828
1992
  avgScore: number | null;
1993
+ /** USD for the priced share of usageUnits over the window; null when no unit was priced */
1994
+ cost: number | null;
1829
1995
  failRate: number;
1830
1996
  id: string;
1831
1997
  name: string;
@@ -1834,12 +2000,15 @@ export interface UsageOverviewRow {
1834
2000
  status: string;
1835
2001
  trend: string;
1836
2002
  type: string;
2003
+ /** The share of usageUnits that cost leaves out: units recorded with no known price, per counter */
2004
+ untrackedUsageUnits: UsageOverviewRowUntrackedUsageUnitsMap;
1837
2005
  usageUnits: UsageOverviewRowUsageUnitsMap;
1838
2006
  }
1839
2007
  export const UsageOverviewRow = /*@__PURE__*/ S.suspend(() =>
1840
2008
  S.Struct({
1841
2009
  avgLatency: S.NullOr(S.Number),
1842
2010
  avgScore: S.NullOr(S.Number),
2011
+ cost: S.NullOr(S.Number),
1843
2012
  failRate: S.Number,
1844
2013
  id: S.String,
1845
2014
  name: S.String,
@@ -1848,6 +2017,7 @@ export const UsageOverviewRow = /*@__PURE__*/ S.suspend(() =>
1848
2017
  status: S.String,
1849
2018
  trend: S.String,
1850
2019
  type: S.String,
2020
+ untrackedUsageUnits: UsageOverviewRowUntrackedUsageUnitsMap,
1851
2021
  usageUnits: UsageOverviewRowUsageUnitsMap,
1852
2022
  }),
1853
2023
  ).annotate({
@@ -1859,6 +2029,15 @@ export const UsageOverviewResponseRowsList = /*@__PURE__*/ S.Array(
1859
2029
  UsageOverviewRow,
1860
2030
  ) as any as S.Schema<UsageOverviewResponseRowsList>;
1861
2031
 
2032
+ export type UsageOverviewResponseTotalUntrackedUsageUnitsMap = {
2033
+ [key: string]: number | undefined;
2034
+ };
2035
+ export const UsageOverviewResponseTotalUntrackedUsageUnitsMap =
2036
+ /*@__PURE__*/ S.Record(
2037
+ S.String,
2038
+ S.Number,
2039
+ ) as any as S.Schema<UsageOverviewResponseTotalUntrackedUsageUnitsMap>;
2040
+
1862
2041
  export type UsageOverviewResponseTotalUsageUnitsMap = {
1863
2042
  [key: string]: number | undefined;
1864
2043
  };
@@ -1872,7 +2051,9 @@ export interface UsageOverviewResponse {
1872
2051
  passRate: number;
1873
2052
  rows: UsageOverviewResponseRowsList;
1874
2053
  totalBlocked: number;
2054
+ totalCost: number | null;
1875
2055
  totalRequests: number;
2056
+ totalUntrackedUsageUnits: UsageOverviewResponseTotalUntrackedUsageUnitsMap;
1876
2057
  totalUsageUnits: UsageOverviewResponseTotalUsageUnitsMap;
1877
2058
  }
1878
2059
  export const UsageOverviewResponse = /*@__PURE__*/ S.suspend(() =>
@@ -1881,7 +2062,9 @@ export const UsageOverviewResponse = /*@__PURE__*/ S.suspend(() =>
1881
2062
  passRate: S.Number,
1882
2063
  rows: UsageOverviewResponseRowsList,
1883
2064
  totalBlocked: S.Number,
2065
+ totalCost: S.NullOr(S.Number),
1884
2066
  totalRequests: S.Number,
2067
+ totalUntrackedUsageUnits: UsageOverviewResponseTotalUntrackedUsageUnitsMap,
1885
2068
  totalUsageUnits: UsageOverviewResponseTotalUsageUnitsMap,
1886
2069
  }),
1887
2070
  ).annotate({
@@ -2045,7 +2228,11 @@ export const BaseLitellmParamsExtraHeadersList = /*@__PURE__*/ S.Array(
2045
2228
  export type BaseLitellmParamsOnSensitiveData = "block" | "route";
2046
2229
  export const BaseLitellmParamsOnSensitiveData = S.String;
2047
2230
 
2048
- export type BaseLitellmParamsOnViolation = "warn" | "end_session";
2231
+ export type BaseLitellmParamsOnViolation =
2232
+ | "warn"
2233
+ | "end_session"
2234
+ | "block"
2235
+ | "alert";
2049
2236
  export const BaseLitellmParamsOnViolation = S.String;
2050
2237
 
2051
2238
  export type BaseLitellmParamsPatternsList = Array<ContentFilterPattern>;
@@ -2053,7 +2240,7 @@ export const BaseLitellmParamsPatternsList = /*@__PURE__*/ S.Array(
2053
2240
  ContentFilterPattern,
2054
2241
  ) as any as S.Schema<BaseLitellmParamsPatternsList>;
2055
2242
 
2056
- /** Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'akto', 'vigil_guard', 'repelloai', 'headroom', and 'compresr'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed. */
2243
+ /** Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'agent_365', 'akto', 'vigil_guard', 'repelloai', 'headroom', 'compresr', and 'typesafe'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed. */
2057
2244
  export type BaseLitellmParamsUnreachableFallback = "fail_closed" | "fail_open";
2058
2245
  export const BaseLitellmParamsUnreachableFallback = S.String;
2059
2246
 
@@ -2092,6 +2279,8 @@ export interface BaseLitellmParams {
2092
2279
  fail_on_error?: boolean | null;
2093
2280
  /** Name of the guardrail in guardrails.ai */
2094
2281
  guard_name?: string | null;
2282
+ /** When True, the Aim and Cato Networks guardrails send /embeddings `input` to the vendor as user messages. Off by default because embedding input is documents being indexed, not a conversation. */
2283
+ inspect_embeddings?: boolean | null;
2095
2284
  /** Tag to use for keyword redaction */
2096
2285
  keyword_redaction_tag?: string | null;
2097
2286
  /** Google Cloud location/region (e.g., us-central1) */
@@ -2104,7 +2293,7 @@ export interface BaseLitellmParams {
2104
2293
  model?: string | null;
2105
2294
  /** Action to take when sensitive data is detected. 'block' raises an exception (default behavior). 'route' reroutes the request to the model specified in sensitive_data_route_to_model. */
2106
2295
  on_sensitive_data?: BaseLitellmParamsOnSensitiveData | (string & {}) | null;
2107
- /** For /v1/realtime sessions: 'warn' speaks the violation message and continues; 'end_session' speaks the message and closes the connection. */
2296
+ /** For /v1/realtime sessions: 'warn' speaks the violation message and continues; 'end_session' speaks the message and closes the connection. For guardrail='mcp_security': 'block' rejects the request; 'alert' only logs a warning. */
2108
2297
  on_violation?: BaseLitellmParamsOnViolation | (string & {}) | null;
2109
2298
  /** When True, the guardrail only scans messages that have not already been scanned earlier in the same session (identified by litellm_session_id / session_id). Message content is hashed per session and cached; only the diff (new or edited messages) is sent to the guardrail provider on follow-up calls. Falls back to a full scan when the request has no session id or the cache is unavailable. Intended for blocking/detection guardrails; not applied when mask_request_content is set. */
2110
2299
  only_scan_new_messages?: boolean | null;
@@ -2142,7 +2331,7 @@ export interface BaseLitellmParams {
2142
2331
  template_id?: string | null;
2143
2332
  /** Per-request timeout for the guardrail provider API call (seconds). Accepts int, float, or numeric string; coerced to float on load. Each guardrail handler chooses its own default when unset. */
2144
2333
  timeout?: number | null;
2145
- /** Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'akto', 'vigil_guard', 'repelloai', 'headroom', and 'compresr'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed. */
2334
+ /** Behavior when a guardrail endpoint is unreachable due to network errors. Implemented by guardrail='generic_guardrail_api', 'agent_365', 'akto', 'vigil_guard', 'repelloai', 'headroom', 'compresr', and 'typesafe'. 'fail_closed' raises an error (default). 'fail_open' logs a critical error and allows the request to proceed. */
2146
2335
  unreachable_fallback?: BaseLitellmParamsUnreachableFallback | (string & {});
2147
2336
  /** Custom message when a guardrail blocks an action. Supports placeholders like {tool_name}, {rule_id}, and {default_message}. */
2148
2337
  violation_message_template?: string | null;
@@ -2170,6 +2359,7 @@ export const BaseLitellmParams = /*@__PURE__*/ S.suspend(() =>
2170
2359
  extra_headers: S.optional(S.NullOr(BaseLitellmParamsExtraHeadersList)),
2171
2360
  fail_on_error: S.optional(S.NullOr(S.Boolean)),
2172
2361
  guard_name: S.optional(S.NullOr(S.String)),
2362
+ inspect_embeddings: S.optional(S.NullOr(S.Boolean)),
2173
2363
  keyword_redaction_tag: S.optional(S.NullOr(S.String)),
2174
2364
  location: S.optional(S.NullOr(S.String)),
2175
2365
  mask_request_content: S.optional(S.NullOr(S.Boolean)),
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -287,6 +287,7 @@ export type GetHealthServicesEndpointHealthServiceRequestServiceCase0 =
287
287
  | "arize"
288
288
  | "galileo"
289
289
  | "newrelic"
290
+ | "pointfive"
290
291
  | "sqs";
291
292
  export const GetHealthServicesEndpointHealthServiceRequestServiceCase0 =
292
293
  S.String;
@@ -698,7 +699,7 @@ export const getTestEndpointTest: API.OperationMethod<
698
699
  export type PostTestModelConnectionHealthTestConnectionError =
699
700
  | UnprocessableEntity
700
701
  | LitellmOpError;
701
- /** Test Model Connection Test a direct connection to a specific model. This endpoint allows you to verify if your proxy can successfully connect to a specific model. It's useful for troubleshooting model connectivity issues without going through the full proxy routing. Example: ```bash # If model is configured in proxy_config.yaml, you only need to specify the model name: curl -X POST 'http://localhost:4000/health/test_connection' \ -H 'Authorization: Bearer sk-1234' \ -H 'Content-Type: application/json' \ -d '{ "litellm_params": { "model": "gpt-4o" }, "mode": "chat" }' # The endpoint will automatically use api_key, api_base, etc. from proxy_config.yaml # You can also override specific params or test with custom credentials: curl -X POST 'http://localhost:4000/health/test_connection' \ -H 'Authorization: Bearer sk-1234' \ -H 'Content-Type: application/json' \ -d '{ "litellm_params": { "model": "azure/gpt-4o", "api_key": "os.environ/AZURE_OPENAI_API_KEY", "api_base": "os.environ/AZURE_OPENAI_ENDPOINT", "api_version": "2024-10-21" }, "mode": "chat" }' ``` Note: - If the model is configured in proxy_config.yaml, credentials (api_key, api_base, etc.) will be automatically loaded from the config (with resolved environment variables). - You can override specific params by including them in the request. - You can use `os.environ/VARIABLE_NAME` syntax to reference environment variables, which will be resolved automatically (same as in proxy_config.yaml). Returns: dict: A dictionary containing the health check result with either success information or error details. */
702
+ /** Test Model Connection Test a direct connection to a specific model. This endpoint allows you to verify if your proxy can successfully connect to a specific model. It's useful for troubleshooting model connectivity issues without going through the full proxy routing. Example: ```bash # If model is configured in proxy_config.yaml, you only need to specify the model name: curl -X POST 'http://localhost:4000/health/test_connection' \ -H 'Authorization: Bearer sk-1234' \ -H 'Content-Type: application/json' \ -d '{ "litellm_params": { "model": "gpt-4o" }, "mode": "chat" }' # The endpoint will automatically use api_key, api_base, etc. from proxy_config.yaml # You can also override specific params or test with custom credentials: curl -X POST 'http://localhost:4000/health/test_connection' \ -H 'Authorization: Bearer sk-1234' \ -H 'Content-Type: application/json' \ -d '{ "litellm_params": { "model": "azure/gpt-4o", "api_key": "os.environ/AZURE_OPENAI_API_KEY", "api_base": "os.environ/AZURE_OPENAI_ENDPOINT", "api_version": "2024-10-21" }, "mode": "chat" }' ``` Note: - If the model is configured in proxy_config.yaml, credentials (api_key, api_base, etc.) will be automatically loaded from the config (with resolved environment variables). - A request naming a stored credential (`litellm_credential_name`) that the configuration does not name is probed with that credential instead, and inherits no credentials from the configuration its model string happened to match. - You can override specific params by including them in the request. - You can use `os.environ/VARIABLE_NAME` syntax to reference environment variables, which will be resolved automatically (same as in proxy_config.yaml). Returns: dict: A dictionary containing the health check result with either success information or error details. */
702
703
  export const postTestModelConnectionHealthTestConnection: API.OperationMethod<
703
704
  PostTestModelConnectionHealthTestConnectionRequest,
704
705
  PostTestModelConnectionHealthTestConnectionResponse,
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";