@homeflare/distilled-litellm 0.2.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 (563) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +77 -0
  3. package/dist/credentials.d.ts +27 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +67 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +92 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +72 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +30 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +30 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +18 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +135 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/retry.d.ts +50 -0
  20. package/dist/retry.d.ts.map +1 -0
  21. package/dist/retry.js +43 -0
  22. package/dist/retry.js.map +1 -0
  23. package/dist/services/a2a.d.ts +70 -0
  24. package/dist/services/a2a.d.ts.map +1 -0
  25. package/dist/services/a2a.js +128 -0
  26. package/dist/services/a2a.js.map +1 -0
  27. package/dist/services/a2a_registration.d.ts +43 -0
  28. package/dist/services/a2a_registration.d.ts.map +1 -0
  29. package/dist/services/a2a_registration.js +40 -0
  30. package/dist/services/a2a_registration.js.map +1 -0
  31. package/dist/services/access_groups.d.ts +192 -0
  32. package/dist/services/access_groups.d.ts.map +1 -0
  33. package/dist/services/access_groups.js +283 -0
  34. package/dist/services/access_groups.js.map +1 -0
  35. package/dist/services/adaptive_router.d.ts +15 -0
  36. package/dist/services/adaptive_router.d.ts.map +1 -0
  37. package/dist/services/adaptive_router.js +25 -0
  38. package/dist/services/adaptive_router.js.map +1 -0
  39. package/dist/services/agents.d.ts +537 -0
  40. package/dist/services/agents.d.ts.map +1 -0
  41. package/dist/services/agents.js +481 -0
  42. package/dist/services/agents.js.map +1 -0
  43. package/dist/services/alerting.d.ts +15 -0
  44. package/dist/services/alerting.d.ts.map +1 -0
  45. package/dist/services/alerting.js +25 -0
  46. package/dist/services/alerting.js.map +1 -0
  47. package/dist/services/anthropic_pass_through.d.ts +70 -0
  48. package/dist/services/anthropic_pass_through.d.ts.map +1 -0
  49. package/dist/services/anthropic_pass_through.js +114 -0
  50. package/dist/services/anthropic_pass_through.js.map +1 -0
  51. package/dist/services/anthropic_passthrough.d.ts +35 -0
  52. package/dist/services/anthropic_passthrough.d.ts.map +1 -0
  53. package/dist/services/anthropic_passthrough.js +59 -0
  54. package/dist/services/anthropic_passthrough.js.map +1 -0
  55. package/dist/services/anthropic_skills.d.ts +74 -0
  56. package/dist/services/anthropic_skills.d.ts.map +1 -0
  57. package/dist/services/anthropic_skills.js +94 -0
  58. package/dist/services/anthropic_skills.js.map +1 -0
  59. package/dist/services/assembly_ai_eu_pass_through.d.ts +70 -0
  60. package/dist/services/assembly_ai_eu_pass_through.d.ts.map +1 -0
  61. package/dist/services/assembly_ai_eu_pass_through.js +114 -0
  62. package/dist/services/assembly_ai_eu_pass_through.js.map +1 -0
  63. package/dist/services/assembly_ai_pass_through.d.ts +70 -0
  64. package/dist/services/assembly_ai_pass_through.d.ts.map +1 -0
  65. package/dist/services/assembly_ai_pass_through.js +114 -0
  66. package/dist/services/assembly_ai_pass_through.js.map +1 -0
  67. package/dist/services/assistants.d.ts +185 -0
  68. package/dist/services/assistants.d.ts.map +1 -0
  69. package/dist/services/assistants.js +331 -0
  70. package/dist/services/assistants.js.map +1 -0
  71. package/dist/services/audio.d.ts +57 -0
  72. package/dist/services/audio.d.ts.map +1 -0
  73. package/dist/services/audio.js +96 -0
  74. package/dist/services/audio.js.map +1 -0
  75. package/dist/services/audit_logging.d.ts +98 -0
  76. package/dist/services/audit_logging.d.ts.map +1 -0
  77. package/dist/services/audit_logging.js +83 -0
  78. package/dist/services/audit_logging.js.map +1 -0
  79. package/dist/services/auto_router.d.ts +286 -0
  80. package/dist/services/auto_router.d.ts.map +1 -0
  81. package/dist/services/auto_router.js +248 -0
  82. package/dist/services/auto_router.js.map +1 -0
  83. package/dist/services/aws_comprehend_medical_pass_through.d.ts +36 -0
  84. package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +1 -0
  85. package/dist/services/aws_comprehend_medical_pass_through.js +56 -0
  86. package/dist/services/aws_comprehend_medical_pass_through.js.map +1 -0
  87. package/dist/services/azure_ai_pass_through.d.ts +70 -0
  88. package/dist/services/azure_ai_pass_through.d.ts.map +1 -0
  89. package/dist/services/azure_ai_pass_through.js +112 -0
  90. package/dist/services/azure_ai_pass_through.js.map +1 -0
  91. package/dist/services/azure_pass_through.d.ts +70 -0
  92. package/dist/services/azure_pass_through.d.ts.map +1 -0
  93. package/dist/services/azure_pass_through.js +107 -0
  94. package/dist/services/azure_pass_through.js.map +1 -0
  95. package/dist/services/batch.d.ts +165 -0
  96. package/dist/services/batch.d.ts.map +1 -0
  97. package/dist/services/batch.js +265 -0
  98. package/dist/services/batch.js.map +1 -0
  99. package/dist/services/bedrock_pass_through.d.ts +70 -0
  100. package/dist/services/bedrock_pass_through.d.ts.map +1 -0
  101. package/dist/services/bedrock_pass_through.js +114 -0
  102. package/dist/services/bedrock_pass_through.js.map +1 -0
  103. package/dist/services/beta_agents.d.ts +199 -0
  104. package/dist/services/beta_agents.d.ts.map +1 -0
  105. package/dist/services/beta_agents.js +151 -0
  106. package/dist/services/beta_agents.js.map +1 -0
  107. package/dist/services/beta_mcp.d.ts +37 -0
  108. package/dist/services/beta_mcp.d.ts.map +1 -0
  109. package/dist/services/beta_mcp.js +40 -0
  110. package/dist/services/beta_mcp.js.map +1 -0
  111. package/dist/services/budget_management.d.ts +185 -0
  112. package/dist/services/budget_management.d.ts.map +1 -0
  113. package/dist/services/budget_management.js +196 -0
  114. package/dist/services/budget_management.js.map +1 -0
  115. package/dist/services/budget_spend_tracking.d.ts +967 -0
  116. package/dist/services/budget_spend_tracking.d.ts.map +1 -0
  117. package/dist/services/budget_spend_tracking.js +1103 -0
  118. package/dist/services/budget_spend_tracking.js.map +1 -0
  119. package/dist/services/cache_settings.d.ts +96 -0
  120. package/dist/services/cache_settings.d.ts.map +1 -0
  121. package/dist/services/cache_settings.js +95 -0
  122. package/dist/services/cache_settings.js.map +1 -0
  123. package/dist/services/caching.d.ts +54 -0
  124. package/dist/services/caching.d.ts.map +1 -0
  125. package/dist/services/caching.js +78 -0
  126. package/dist/services/caching.js.map +1 -0
  127. package/dist/services/chat_completions.d.ts +656 -0
  128. package/dist/services/chat_completions.d.ts.map +1 -0
  129. package/dist/services/chat_completions.js +590 -0
  130. package/dist/services/chat_completions.js.map +1 -0
  131. package/dist/services/claude_code_marketplace.d.ts +212 -0
  132. package/dist/services/claude_code_marketplace.d.ts.map +1 -0
  133. package/dist/services/claude_code_marketplace.js +248 -0
  134. package/dist/services/claude_code_marketplace.js.map +1 -0
  135. package/dist/services/cloudzero.d.ts +117 -0
  136. package/dist/services/cloudzero.d.ts.map +1 -0
  137. package/dist/services/cloudzero.js +130 -0
  138. package/dist/services/cloudzero.js.map +1 -0
  139. package/dist/services/cohere_pass_through.d.ts +70 -0
  140. package/dist/services/cohere_pass_through.d.ts.map +1 -0
  141. package/dist/services/cohere_pass_through.js +112 -0
  142. package/dist/services/cohere_pass_through.js.map +1 -0
  143. package/dist/services/completions.d.ts +59 -0
  144. package/dist/services/completions.d.ts.map +1 -0
  145. package/dist/services/completions.js +98 -0
  146. package/dist/services/completions.js.map +1 -0
  147. package/dist/services/compliance.d.ts +66 -0
  148. package/dist/services/compliance.d.ts.map +1 -0
  149. package/dist/services/compliance.js +74 -0
  150. package/dist/services/compliance.js.map +1 -0
  151. package/dist/services/config_overrides.d.ts +157 -0
  152. package/dist/services/config_overrides.d.ts.map +1 -0
  153. package/dist/services/config_overrides.js +207 -0
  154. package/dist/services/config_overrides.js.map +1 -0
  155. package/dist/services/config_yaml.d.ts +647 -0
  156. package/dist/services/config_yaml.d.ts.map +1 -0
  157. package/dist/services/config_yaml.js +504 -0
  158. package/dist/services/config_yaml.js.map +1 -0
  159. package/dist/services/containers.d.ts +215 -0
  160. package/dist/services/containers.d.ts.map +1 -0
  161. package/dist/services/containers.js +416 -0
  162. package/dist/services/containers.js.map +1 -0
  163. package/dist/services/coordination_redis_settings.d.ts +93 -0
  164. package/dist/services/coordination_redis_settings.d.ts.map +1 -0
  165. package/dist/services/coordination_redis_settings.js +104 -0
  166. package/dist/services/coordination_redis_settings.js.map +1 -0
  167. package/dist/services/cost_tracking.d.ts +140 -0
  168. package/dist/services/cost_tracking.d.ts.map +1 -0
  169. package/dist/services/cost_tracking.js +181 -0
  170. package/dist/services/cost_tracking.js.map +1 -0
  171. package/dist/services/credential_management.d.ts +133 -0
  172. package/dist/services/credential_management.d.ts.map +1 -0
  173. package/dist/services/credential_management.js +198 -0
  174. package/dist/services/credential_management.js.map +1 -0
  175. package/dist/services/cursor_pass_through.d.ts +70 -0
  176. package/dist/services/cursor_pass_through.d.ts.map +1 -0
  177. package/dist/services/cursor_pass_through.js +112 -0
  178. package/dist/services/cursor_pass_through.js.map +1 -0
  179. package/dist/services/customer_management.d.ts +545 -0
  180. package/dist/services/customer_management.d.ts.map +1 -0
  181. package/dist/services/customer_management.js +567 -0
  182. package/dist/services/customer_management.js.map +1 -0
  183. package/dist/services/email_management.d.ts +57 -0
  184. package/dist/services/email_management.d.ts.map +1 -0
  185. package/dist/services/email_management.js +79 -0
  186. package/dist/services/email_management.js.map +1 -0
  187. package/dist/services/embeddings.d.ts +155 -0
  188. package/dist/services/embeddings.d.ts.map +1 -0
  189. package/dist/services/embeddings.js +168 -0
  190. package/dist/services/embeddings.js.map +1 -0
  191. package/dist/services/evals.d.ts +245 -0
  192. package/dist/services/evals.d.ts.map +1 -0
  193. package/dist/services/evals.js +292 -0
  194. package/dist/services/evals.js.map +1 -0
  195. package/dist/services/experimental.d.ts +166 -0
  196. package/dist/services/experimental.d.ts.map +1 -0
  197. package/dist/services/experimental.js +265 -0
  198. package/dist/services/experimental.js.map +1 -0
  199. package/dist/services/fallback_management.d.ts +91 -0
  200. package/dist/services/fallback_management.d.ts.map +1 -0
  201. package/dist/services/fallback_management.js +86 -0
  202. package/dist/services/fallback_management.js.map +1 -0
  203. package/dist/services/files.d.ts +219 -0
  204. package/dist/services/files.d.ts.map +1 -0
  205. package/dist/services/files.js +358 -0
  206. package/dist/services/files.js.map +1 -0
  207. package/dist/services/fine_tuning.d.ts +155 -0
  208. package/dist/services/fine_tuning.d.ts.map +1 -0
  209. package/dist/services/fine_tuning.js +232 -0
  210. package/dist/services/fine_tuning.js.map +1 -0
  211. package/dist/services/gemini_agents.d.ts +68 -0
  212. package/dist/services/gemini_agents.d.ts.map +1 -0
  213. package/dist/services/gemini_agents.js +110 -0
  214. package/dist/services/gemini_agents.js.map +1 -0
  215. package/dist/services/google_ai_studio_pass_through.d.ts +70 -0
  216. package/dist/services/google_ai_studio_pass_through.d.ts.map +1 -0
  217. package/dist/services/google_ai_studio_pass_through.js +112 -0
  218. package/dist/services/google_ai_studio_pass_through.js.map +1 -0
  219. package/dist/services/google_genai_endpoints.d.ts +174 -0
  220. package/dist/services/google_genai_endpoints.d.ts.map +1 -0
  221. package/dist/services/google_genai_endpoints.js +340 -0
  222. package/dist/services/google_genai_endpoints.js.map +1 -0
  223. package/dist/services/guardrails.d.ts +1221 -0
  224. package/dist/services/guardrails.d.ts.map +1 -0
  225. package/dist/services/guardrails.js +1087 -0
  226. package/dist/services/guardrails.js.map +1 -0
  227. package/dist/services/health.d.ts +212 -0
  228. package/dist/services/health.d.ts.map +1 -0
  229. package/dist/services/health.js +309 -0
  230. package/dist/services/health.js.map +1 -0
  231. package/dist/services/images.d.ts +117 -0
  232. package/dist/services/images.d.ts.map +1 -0
  233. package/dist/services/images.js +184 -0
  234. package/dist/services/images.js.map +1 -0
  235. package/dist/services/index.d.ts +106 -0
  236. package/dist/services/index.d.ts.map +1 -0
  237. package/dist/services/index.js +107 -0
  238. package/dist/services/index.js.map +1 -0
  239. package/dist/services/internal_user_management.d.ts +1062 -0
  240. package/dist/services/internal_user_management.d.ts.map +1 -0
  241. package/dist/services/internal_user_management.js +850 -0
  242. package/dist/services/internal_user_management.js.map +1 -0
  243. package/dist/services/invite_links.d.ts +56 -0
  244. package/dist/services/invite_links.d.ts.map +1 -0
  245. package/dist/services/invite_links.js +82 -0
  246. package/dist/services/invite_links.js.map +1 -0
  247. package/dist/services/jwt_mappings.d.ts +79 -0
  248. package/dist/services/jwt_mappings.d.ts.map +1 -0
  249. package/dist/services/jwt_mappings.js +116 -0
  250. package/dist/services/jwt_mappings.js.map +1 -0
  251. package/dist/services/key_management.d.ts +1640 -0
  252. package/dist/services/key_management.d.ts.map +1 -0
  253. package/dist/services/key_management.js +1344 -0
  254. package/dist/services/key_management.js.map +1 -0
  255. package/dist/services/langfuse_passthrough.d.ts +70 -0
  256. package/dist/services/langfuse_passthrough.d.ts.map +1 -0
  257. package/dist/services/langfuse_passthrough.js +114 -0
  258. package/dist/services/langfuse_passthrough.js.map +1 -0
  259. package/dist/services/llm_utils.d.ts +101 -0
  260. package/dist/services/llm_utils.d.ts.map +1 -0
  261. package/dist/services/llm_utils.js +110 -0
  262. package/dist/services/llm_utils.js.map +1 -0
  263. package/dist/services/logging_callbacks.d.ts +33 -0
  264. package/dist/services/logging_callbacks.d.ts.map +1 -0
  265. package/dist/services/logging_callbacks.js +46 -0
  266. package/dist/services/logging_callbacks.js.map +1 -0
  267. package/dist/services/mcp_byok_oauth.d.ts +112 -0
  268. package/dist/services/mcp_byok_oauth.d.ts.map +1 -0
  269. package/dist/services/mcp_byok_oauth.js +226 -0
  270. package/dist/services/mcp_byok_oauth.js.map +1 -0
  271. package/dist/services/mcp_discoverable.d.ts +197 -0
  272. package/dist/services/mcp_discoverable.d.ts.map +1 -0
  273. package/dist/services/mcp_discoverable.js +304 -0
  274. package/dist/services/mcp_discoverable.js.map +1 -0
  275. package/dist/services/mcp_management.d.ts +956 -0
  276. package/dist/services/mcp_management.d.ts.map +1 -0
  277. package/dist/services/mcp_management.js +1139 -0
  278. package/dist/services/mcp_management.js.map +1 -0
  279. package/dist/services/mcp_rest.d.ts +281 -0
  280. package/dist/services/mcp_rest.d.ts.map +1 -0
  281. package/dist/services/mcp_rest.js +269 -0
  282. package/dist/services/mcp_rest.js.map +1 -0
  283. package/dist/services/memory_management.d.ts +93 -0
  284. package/dist/services/memory_management.d.ts.map +1 -0
  285. package/dist/services/memory_management.js +117 -0
  286. package/dist/services/memory_management.js.map +1 -0
  287. package/dist/services/milvus_pass_through.d.ts +70 -0
  288. package/dist/services/milvus_pass_through.d.ts.map +1 -0
  289. package/dist/services/milvus_pass_through.js +112 -0
  290. package/dist/services/milvus_pass_through.js.map +1 -0
  291. package/dist/services/misc.d.ts +676 -0
  292. package/dist/services/misc.d.ts.map +1 -0
  293. package/dist/services/misc.js +954 -0
  294. package/dist/services/misc.js.map +1 -0
  295. package/dist/services/mistral_pass_through.d.ts +70 -0
  296. package/dist/services/mistral_pass_through.d.ts.map +1 -0
  297. package/dist/services/mistral_pass_through.js +114 -0
  298. package/dist/services/mistral_pass_through.js.map +1 -0
  299. package/dist/services/model_management.d.ts +1649 -0
  300. package/dist/services/model_management.d.ts.map +1 -0
  301. package/dist/services/model_management.js +1805 -0
  302. package/dist/services/model_management.js.map +1 -0
  303. package/dist/services/moderations.d.ts +25 -0
  304. package/dist/services/moderations.d.ts.map +1 -0
  305. package/dist/services/moderations.js +39 -0
  306. package/dist/services/moderations.js.map +1 -0
  307. package/dist/services/ocr.d.ts +25 -0
  308. package/dist/services/ocr.d.ts.map +1 -0
  309. package/dist/services/ocr.js +39 -0
  310. package/dist/services/ocr.js.map +1 -0
  311. package/dist/services/open_ai_pass_through.d.ts +125 -0
  312. package/dist/services/open_ai_pass_through.d.ts.map +1 -0
  313. package/dist/services/open_ai_pass_through.js +232 -0
  314. package/dist/services/open_ai_pass_through.js.map +1 -0
  315. package/dist/services/organization_management.d.ts +664 -0
  316. package/dist/services/organization_management.d.ts.map +1 -0
  317. package/dist/services/organization_management.js +644 -0
  318. package/dist/services/organization_management.js.map +1 -0
  319. package/dist/services/plugins.d.ts +106 -0
  320. package/dist/services/plugins.d.ts.map +1 -0
  321. package/dist/services/plugins.js +180 -0
  322. package/dist/services/plugins.js.map +1 -0
  323. package/dist/services/policies.d.ts +618 -0
  324. package/dist/services/policies.d.ts.map +1 -0
  325. package/dist/services/policies.js +616 -0
  326. package/dist/services/policies.js.map +1 -0
  327. package/dist/services/policy_engine.d.ts +483 -0
  328. package/dist/services/policy_engine.d.ts.map +1 -0
  329. package/dist/services/policy_engine.js +501 -0
  330. package/dist/services/policy_engine.js.map +1 -0
  331. package/dist/services/project_management.d.ts +356 -0
  332. package/dist/services/project_management.d.ts.map +1 -0
  333. package/dist/services/project_management.js +318 -0
  334. package/dist/services/project_management.js.map +1 -0
  335. package/dist/services/prompts.d.ts +193 -0
  336. package/dist/services/prompts.d.ts.map +1 -0
  337. package/dist/services/prompts.js +260 -0
  338. package/dist/services/prompts.js.map +1 -0
  339. package/dist/services/public.d.ts +300 -0
  340. package/dist/services/public.d.ts.map +1 -0
  341. package/dist/services/public.js +362 -0
  342. package/dist/services/public.js.map +1 -0
  343. package/dist/services/rag.d.ts +45 -0
  344. package/dist/services/rag.d.ts.map +1 -0
  345. package/dist/services/rag.js +71 -0
  346. package/dist/services/rag.js.map +1 -0
  347. package/dist/services/realtime.d.ts +91 -0
  348. package/dist/services/realtime.d.ts.map +1 -0
  349. package/dist/services/realtime.js +164 -0
  350. package/dist/services/realtime.js.map +1 -0
  351. package/dist/services/rerank.d.ts +35 -0
  352. package/dist/services/rerank.d.ts.map +1 -0
  353. package/dist/services/rerank.js +55 -0
  354. package/dist/services/rerank.js.map +1 -0
  355. package/dist/services/responses.d.ts +237 -0
  356. package/dist/services/responses.d.ts.map +1 -0
  357. package/dist/services/responses.js +445 -0
  358. package/dist/services/responses.js.map +1 -0
  359. package/dist/services/router_settings.d.ts +67 -0
  360. package/dist/services/router_settings.d.ts.map +1 -0
  361. package/dist/services/router_settings.js +63 -0
  362. package/dist/services/router_settings.js.map +1 -0
  363. package/dist/services/rust_control_plane.d.ts +52 -0
  364. package/dist/services/rust_control_plane.d.ts.map +1 -0
  365. package/dist/services/rust_control_plane.js +54 -0
  366. package/dist/services/rust_control_plane.js.map +1 -0
  367. package/dist/services/scim.d.ts +412 -0
  368. package/dist/services/scim.d.ts.map +1 -0
  369. package/dist/services/scim.js +519 -0
  370. package/dist/services/scim.js.map +1 -0
  371. package/dist/services/search.d.ts +79 -0
  372. package/dist/services/search.d.ts.map +1 -0
  373. package/dist/services/search.js +122 -0
  374. package/dist/services/search.js.map +1 -0
  375. package/dist/services/search_tools.d.ts +140 -0
  376. package/dist/services/search_tools.d.ts.map +1 -0
  377. package/dist/services/search_tools.js +201 -0
  378. package/dist/services/search_tools.js.map +1 -0
  379. package/dist/services/settings.d.ts +53 -0
  380. package/dist/services/settings.d.ts.map +1 -0
  381. package/dist/services/settings.js +67 -0
  382. package/dist/services/settings.js.map +1 -0
  383. package/dist/services/sso_settings.d.ts +239 -0
  384. package/dist/services/sso_settings.d.ts.map +1 -0
  385. package/dist/services/sso_settings.js +214 -0
  386. package/dist/services/sso_settings.js.map +1 -0
  387. package/dist/services/tag_management.d.ts +390 -0
  388. package/dist/services/tag_management.d.ts.map +1 -0
  389. package/dist/services/tag_management.js +407 -0
  390. package/dist/services/tag_management.js.map +1 -0
  391. package/dist/services/team_management.d.ts +1502 -0
  392. package/dist/services/team_management.d.ts.map +1 -0
  393. package/dist/services/team_management.js +1429 -0
  394. package/dist/services/team_management.js.map +1 -0
  395. package/dist/services/tools.d.ts +227 -0
  396. package/dist/services/tools.d.ts.map +1 -0
  397. package/dist/services/tools.js +266 -0
  398. package/dist/services/tools.js.map +1 -0
  399. package/dist/services/ui_settings.d.ts +90 -0
  400. package/dist/services/ui_settings.d.ts.map +1 -0
  401. package/dist/services/ui_settings.js +96 -0
  402. package/dist/services/ui_settings.js.map +1 -0
  403. package/dist/services/ui_theme_settings.d.ts +62 -0
  404. package/dist/services/ui_theme_settings.d.ts.map +1 -0
  405. package/dist/services/ui_theme_settings.js +79 -0
  406. package/dist/services/ui_theme_settings.js.map +1 -0
  407. package/dist/services/usage_ai.d.ts +39 -0
  408. package/dist/services/usage_ai.d.ts.map +1 -0
  409. package/dist/services/usage_ai.js +40 -0
  410. package/dist/services/usage_ai.js.map +1 -0
  411. package/dist/services/vantage.d.ts +108 -0
  412. package/dist/services/vantage.d.ts.map +1 -0
  413. package/dist/services/vantage.js +124 -0
  414. package/dist/services/vantage.js.map +1 -0
  415. package/dist/services/vector_store_management.d.ts +161 -0
  416. package/dist/services/vector_store_management.d.ts.map +1 -0
  417. package/dist/services/vector_store_management.js +191 -0
  418. package/dist/services/vector_store_management.js.map +1 -0
  419. package/dist/services/vector_stores.d.ts +342 -0
  420. package/dist/services/vector_stores.d.ts.map +1 -0
  421. package/dist/services/vector_stores.js +639 -0
  422. package/dist/services/vector_stores.js.map +1 -0
  423. package/dist/services/vertex_ai_pass_through.d.ts +180 -0
  424. package/dist/services/vertex_ai_pass_through.d.ts.map +1 -0
  425. package/dist/services/vertex_ai_pass_through.js +334 -0
  426. package/dist/services/vertex_ai_pass_through.js.map +1 -0
  427. package/dist/services/videos.d.ts +207 -0
  428. package/dist/services/videos.d.ts.map +1 -0
  429. package/dist/services/videos.js +373 -0
  430. package/dist/services/videos.js.map +1 -0
  431. package/dist/services/vllm_pass_through.d.ts +70 -0
  432. package/dist/services/vllm_pass_through.d.ts.map +1 -0
  433. package/dist/services/vllm_pass_through.js +104 -0
  434. package/dist/services/vllm_pass_through.js.map +1 -0
  435. package/dist/services/watsonx_pass_through.d.ts +70 -0
  436. package/dist/services/watsonx_pass_through.d.ts.map +1 -0
  437. package/dist/services/watsonx_pass_through.js +114 -0
  438. package/dist/services/watsonx_pass_through.js.map +1 -0
  439. package/dist/services/web_socket.d.ts +77 -0
  440. package/dist/services/web_socket.d.ts.map +1 -0
  441. package/dist/services/web_socket.js +135 -0
  442. package/dist/services/web_socket.js.map +1 -0
  443. package/dist/services/workflow_management.d.ts +140 -0
  444. package/dist/services/workflow_management.d.ts.map +1 -0
  445. package/dist/services/workflow_management.js +220 -0
  446. package/dist/services/workflow_management.js.map +1 -0
  447. package/dist/traits.d.ts +14 -0
  448. package/dist/traits.d.ts.map +1 -0
  449. package/dist/traits.js +15 -0
  450. package/dist/traits.js.map +1 -0
  451. package/package.json +75 -0
  452. package/src/credentials.ts +97 -0
  453. package/src/errors.ts +108 -0
  454. package/src/index.ts +33 -0
  455. package/src/protocol.ts +160 -0
  456. package/src/retry.ts +74 -0
  457. package/src/services/a2a.ts +250 -0
  458. package/src/services/a2a_registration.ts +94 -0
  459. package/src/services/access_groups.ts +716 -0
  460. package/src/services/adaptive_router.ts +49 -0
  461. package/src/services/agents.ts +1314 -0
  462. package/src/services/alerting.ts +49 -0
  463. package/src/services/anthropic_pass_through.ts +233 -0
  464. package/src/services/anthropic_passthrough.ts +123 -0
  465. package/src/services/anthropic_skills.ts +200 -0
  466. package/src/services/assembly_ai_eu_pass_through.ts +237 -0
  467. package/src/services/assembly_ai_pass_through.ts +237 -0
  468. package/src/services/assistants.ts +685 -0
  469. package/src/services/audio.ts +189 -0
  470. package/src/services/audit_logging.ts +194 -0
  471. package/src/services/auto_router.ts +625 -0
  472. package/src/services/aws_comprehend_medical_pass_through.ts +109 -0
  473. package/src/services/azure_ai_pass_through.ts +231 -0
  474. package/src/services/azure_pass_through.ts +227 -0
  475. package/src/services/batch.ts +553 -0
  476. package/src/services/bedrock_pass_through.ts +229 -0
  477. package/src/services/beta_agents.ts +444 -0
  478. package/src/services/beta_mcp.ts +105 -0
  479. package/src/services/budget_management.ts +465 -0
  480. package/src/services/budget_spend_tracking.ts +2670 -0
  481. package/src/services/cache_settings.ts +234 -0
  482. package/src/services/caching.ts +175 -0
  483. package/src/services/chat_completions.ts +1788 -0
  484. package/src/services/claude_code_marketplace.ts +569 -0
  485. package/src/services/cloudzero.ts +297 -0
  486. package/src/services/cohere_pass_through.ts +227 -0
  487. package/src/services/completions.ts +194 -0
  488. package/src/services/compliance.ts +175 -0
  489. package/src/services/config_overrides.ts +466 -0
  490. package/src/services/config_yaml.ts +1537 -0
  491. package/src/services/containers.ts +848 -0
  492. package/src/services/coordination_redis_settings.ts +251 -0
  493. package/src/services/cost_tracking.ts +407 -0
  494. package/src/services/credential_management.ts +436 -0
  495. package/src/services/cursor_pass_through.ts +227 -0
  496. package/src/services/customer_management.ts +1475 -0
  497. package/src/services/email_management.ts +171 -0
  498. package/src/services/embeddings.ts +424 -0
  499. package/src/services/evals.ts +672 -0
  500. package/src/services/experimental.ts +572 -0
  501. package/src/services/fallback_management.ts +224 -0
  502. package/src/services/files.ts +732 -0
  503. package/src/services/fine_tuning.ts +547 -0
  504. package/src/services/gemini_agents.ts +227 -0
  505. package/src/services/google_ai_studio_pass_through.ts +227 -0
  506. package/src/services/google_genai_endpoints.ts +688 -0
  507. package/src/services/guardrails.ts +3006 -0
  508. package/src/services/health.ts +713 -0
  509. package/src/services/images.ts +430 -0
  510. package/src/services/index.ts +106 -0
  511. package/src/services/internal_user_management.ts +2574 -0
  512. package/src/services/invite_links.ts +167 -0
  513. package/src/services/jwt_mappings.ts +238 -0
  514. package/src/services/key_management.ts +4162 -0
  515. package/src/services/langfuse_passthrough.ts +231 -0
  516. package/src/services/llm_utils.ts +429 -0
  517. package/src/services/logging_callbacks.ts +104 -0
  518. package/src/services/mcp_byok_oauth.ts +468 -0
  519. package/src/services/mcp_discoverable.ts +626 -0
  520. package/src/services/mcp_management.ts +2915 -0
  521. package/src/services/mcp_rest.ts +779 -0
  522. package/src/services/memory_management.ts +248 -0
  523. package/src/services/milvus_pass_through.ts +227 -0
  524. package/src/services/misc.ts +2128 -0
  525. package/src/services/mistral_pass_through.ts +229 -0
  526. package/src/services/model_management.ts +4501 -0
  527. package/src/services/moderations.ts +80 -0
  528. package/src/services/ocr.ts +78 -0
  529. package/src/services/open_ai_pass_through.ts +462 -0
  530. package/src/services/organization_management.ts +1749 -0
  531. package/src/services/plugins.ts +367 -0
  532. package/src/services/policies.ts +1676 -0
  533. package/src/services/policy_engine.ts +1318 -0
  534. package/src/services/project_management.ts +938 -0
  535. package/src/services/prompts.ts +592 -0
  536. package/src/services/public.ts +880 -0
  537. package/src/services/rag.ts +148 -0
  538. package/src/services/realtime.ts +350 -0
  539. package/src/services/rerank.ts +111 -0
  540. package/src/services/responses.ts +909 -0
  541. package/src/services/router_settings.ts +168 -0
  542. package/src/services/rust_control_plane.ts +123 -0
  543. package/src/services/scim.ts +1243 -0
  544. package/src/services/search.ts +260 -0
  545. package/src/services/search_tools.ts +439 -0
  546. package/src/services/settings.ts +146 -0
  547. package/src/services/sso_settings.ts +626 -0
  548. package/src/services/tag_management.ts +1004 -0
  549. package/src/services/team_management.ts +3990 -0
  550. package/src/services/tools.ts +628 -0
  551. package/src/services/ui_settings.ts +237 -0
  552. package/src/services/ui_theme_settings.ts +173 -0
  553. package/src/services/usage_ai.ts +86 -0
  554. package/src/services/vantage.ts +283 -0
  555. package/src/services/vector_store_management.ts +454 -0
  556. package/src/services/vector_stores.ts +1321 -0
  557. package/src/services/vertex_ai_pass_through.ts +684 -0
  558. package/src/services/videos.ts +762 -0
  559. package/src/services/vllm_pass_through.ts +227 -0
  560. package/src/services/watsonx_pass_through.ts +229 -0
  561. package/src/services/web_socket.ts +254 -0
  562. package/src/services/workflow_management.ts +482 -0
  563. package/src/traits.ts +44 -0
@@ -0,0 +1,1344 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.js";
7
+ import { LitellmProtocol, } from "../protocol.js";
8
+ import * as Retry from "../retry.js";
9
+ export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
10
+ /*@__PURE__*/ S.TaggedError()("BadRequest", {
11
+ code: S.Number,
12
+ message: S.String,
13
+ }).pipe(C.withBadRequestError), [{ status: 400 }]) {
14
+ }
15
+ export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
16
+ /*@__PURE__*/ S.TaggedError()("Forbidden", {
17
+ code: S.Number,
18
+ message: S.String,
19
+ }).pipe(C.withAuthError), [{ status: 403 }]) {
20
+ }
21
+ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
22
+ /*@__PURE__*/ S.TaggedError()("NotFound", {
23
+ code: S.Number,
24
+ message: S.String,
25
+ }).pipe(C.withBadRequestError), [{ status: 404 }]) {
26
+ }
27
+ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
32
+ }
33
+ export const BulkUpdateKeyRequestItemTagsList = /*@__PURE__*/ S.Array(S.String);
34
+ export const BulkUpdateKeyRequestItem = /*@__PURE__*/ S.suspend(() => S.Struct({
35
+ budget_id: S.optional(S.NullOr(S.String)),
36
+ key: S.String,
37
+ max_budget: S.optional(S.NullOr(S.Number)),
38
+ tags: S.optional(S.NullOr(BulkUpdateKeyRequestItemTagsList)),
39
+ team_id: S.optional(S.NullOr(S.String)),
40
+ })).annotate({
41
+ identifier: "BulkUpdateKeyRequestItem",
42
+ });
43
+ export const BulkUpdateKeysKeyBulkUpdatePostRequestKeysList =
44
+ /*@__PURE__*/ S.Array(BulkUpdateKeyRequestItem);
45
+ export const BulkUpdateKeysKeyBulkUpdatePostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
46
+ keys: BulkUpdateKeysKeyBulkUpdatePostRequestKeysList,
47
+ }).pipe(T.Http({ method: "POST", uri: "/key/bulk_update", code: 200 }))).annotate({
48
+ identifier: "BulkUpdateKeysKeyBulkUpdatePostRequest",
49
+ });
50
+ export const FailedKeyUpdateKeyInfoMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
51
+ export const FailedKeyUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
52
+ failed_reason: S.String,
53
+ key: S.String,
54
+ key_info: S.optional(S.NullOr(FailedKeyUpdateKeyInfoMap)),
55
+ })).annotate({
56
+ identifier: "FailedKeyUpdate",
57
+ });
58
+ export const BulkUpdateKeyResponseFailedUpdatesList = /*@__PURE__*/ S.Array(FailedKeyUpdate);
59
+ export const SuccessfulKeyUpdateKeyInfoMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
60
+ export const SuccessfulKeyUpdate = /*@__PURE__*/ S.suspend(() => S.Struct({
61
+ key: S.String,
62
+ key_info: SuccessfulKeyUpdateKeyInfoMap,
63
+ })).annotate({
64
+ identifier: "SuccessfulKeyUpdate",
65
+ });
66
+ export const BulkUpdateKeyResponseSuccessfulUpdatesList = /*@__PURE__*/ S.Array(SuccessfulKeyUpdate);
67
+ export const BulkUpdateKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
68
+ failed_updates: BulkUpdateKeyResponseFailedUpdatesList,
69
+ successful_updates: BulkUpdateKeyResponseSuccessfulUpdatesList,
70
+ total_requested: S.Number,
71
+ })).annotate({
72
+ identifier: "BulkUpdateKeyResponse",
73
+ });
74
+ export const BulkUpdateTeamKeysTeamKeyBulkUpdatePostRequestKeyIdsList =
75
+ /*@__PURE__*/ S.Array(S.String);
76
+ export const KeyUpdateFieldsBudgetLimitsList = /*@__PURE__*/ S.Array(S.Unknown);
77
+ export const KeyUpdateFieldsMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
78
+ export const KeyUpdateFieldsModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
79
+ export const KeyUpdateFieldsModelRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
80
+ export const KeyUpdateFieldsModelTpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
81
+ export const KeyUpdateFieldsRpmLimitType = S.String;
82
+ export const KeyUpdateFieldsTagsList = /*@__PURE__*/ S.Array(S.String);
83
+ export const KeyUpdateFieldsTpmLimitType = S.String;
84
+ export const KeyUpdateFields = /*@__PURE__*/ S.suspend(() => S.Struct({
85
+ budget_duration: S.optional(S.NullOr(S.String)),
86
+ budget_id: S.optional(S.NullOr(S.String)),
87
+ budget_limits: S.optional(S.NullOr(KeyUpdateFieldsBudgetLimitsList)),
88
+ duration: S.optional(S.NullOr(S.String)),
89
+ max_budget: S.optional(S.NullOr(S.Number)),
90
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
91
+ metadata: S.optional(S.NullOr(KeyUpdateFieldsMetadataMap)),
92
+ model_max_budget: S.optional(S.NullOr(KeyUpdateFieldsModelMaxBudgetMap)),
93
+ model_rpm_limit: S.optional(S.NullOr(KeyUpdateFieldsModelRpmLimitMap)),
94
+ model_tpm_limit: S.optional(S.NullOr(KeyUpdateFieldsModelTpmLimitMap)),
95
+ rpm_limit: S.optional(S.NullOr(S.Number)),
96
+ rpm_limit_type: S.optional(S.NullOr(KeyUpdateFieldsRpmLimitType)),
97
+ tags: S.optional(S.NullOr(KeyUpdateFieldsTagsList)),
98
+ temp_budget_expiry: S.optional(S.NullOr(S.String)),
99
+ temp_budget_increase: S.optional(S.NullOr(S.Number)),
100
+ tpm_limit: S.optional(S.NullOr(S.Number)),
101
+ tpm_limit_type: S.optional(S.NullOr(KeyUpdateFieldsTpmLimitType)),
102
+ })).annotate({
103
+ identifier: "KeyUpdateFields",
104
+ });
105
+ export const BulkUpdateTeamKeysTeamKeyBulkUpdatePostRequest =
106
+ /*@__PURE__*/ S.suspend(() => S.Struct({
107
+ all_keys_in_team: S.optional(S.Boolean),
108
+ key_ids: S.optional(S.NullOr(BulkUpdateTeamKeysTeamKeyBulkUpdatePostRequestKeyIdsList)),
109
+ team_id: S.String,
110
+ update_fields: KeyUpdateFields,
111
+ }).pipe(T.Http({ method: "POST", uri: "/team/key/bulk_update", code: 200 }))).annotate({
112
+ identifier: "BulkUpdateTeamKeysTeamKeyBulkUpdatePostRequest",
113
+ });
114
+ export const DeleteKeyFnKeyDeletePostRequestKeyAliasesList =
115
+ /*@__PURE__*/ S.Array(S.String);
116
+ export const DeleteKeyFnKeyDeletePostRequestKeysList = /*@__PURE__*/ S.Array(S.String);
117
+ export const DeleteKeyFnKeyDeletePostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
118
+ key_aliases: S.optional(S.NullOr(DeleteKeyFnKeyDeletePostRequestKeyAliasesList)),
119
+ keys: S.optional(S.NullOr(DeleteKeyFnKeyDeletePostRequestKeysList)),
120
+ }).pipe(T.Http({ method: "POST", uri: "/key/delete", code: 200 }))).annotate({
121
+ identifier: "DeleteKeyFnKeyDeletePostRequest",
122
+ });
123
+ export const DeleteKeyFnKeyDeletePostResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
124
+ body: S.Unknown,
125
+ })).annotate({
126
+ identifier: "DeleteKeyFnKeyDeletePostResponse",
127
+ });
128
+ export const GenerateKeyFnKeyGeneratePostRequestAccessGroupIdsList =
129
+ /*@__PURE__*/ S.Array(S.String);
130
+ export const GenerateKeyFnKeyGeneratePostRequestAliasesMap =
131
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
132
+ export const GenerateKeyFnKeyGeneratePostRequestAllowedCacheControlsList =
133
+ /*@__PURE__*/ S.Array(S.Unknown);
134
+ export const GenerateKeyFnKeyGeneratePostRequestAllowedPassthroughRoutesList =
135
+ /*@__PURE__*/ S.Array(S.Unknown);
136
+ export const GenerateKeyFnKeyGeneratePostRequestAllowedRoutesList =
137
+ /*@__PURE__*/ S.Array(S.Unknown);
138
+ export const AllowedVectorStoreIndexItemIndexPermissionsItem = S.String;
139
+ export const AllowedVectorStoreIndexItemIndexPermissionsList =
140
+ /*@__PURE__*/ S.Array(AllowedVectorStoreIndexItemIndexPermissionsItem);
141
+ export const AllowedVectorStoreIndexItem = /*@__PURE__*/ S.suspend(() => S.Struct({
142
+ index_name: S.String,
143
+ index_permissions: AllowedVectorStoreIndexItemIndexPermissionsList,
144
+ })).annotate({
145
+ identifier: "AllowedVectorStoreIndexItem",
146
+ });
147
+ export const GenerateKeyFnKeyGeneratePostRequestAllowedVectorStoreIndexesList =
148
+ /*@__PURE__*/ S.Array(AllowedVectorStoreIndexItem);
149
+ export const GenerateKeyFnKeyGeneratePostRequestBudgetFallbacksValueList =
150
+ /*@__PURE__*/ S.Array(S.String);
151
+ export const GenerateKeyFnKeyGeneratePostRequestBudgetFallbacksMap =
152
+ /*@__PURE__*/ S.Record(S.String, GenerateKeyFnKeyGeneratePostRequestBudgetFallbacksValueList);
153
+ export const BudgetLimitEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
154
+ budget_duration: S.String,
155
+ max_budget: S.Number,
156
+ reset_at: S.optional(S.NullOr(S.String)),
157
+ })).annotate({
158
+ identifier: "BudgetLimitEntry",
159
+ });
160
+ export const GenerateKeyFnKeyGeneratePostRequestBudgetLimitsList =
161
+ /*@__PURE__*/ S.Array(BudgetLimitEntry);
162
+ export const GenerateKeyFnKeyGeneratePostRequestConfigMap =
163
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
164
+ export const GenerateKeyFnKeyGeneratePostRequestDefaultEstimatedOutputTokensPerModelMap =
165
+ /*@__PURE__*/ S.Record(S.String, S.Number);
166
+ export const GenerateKeyFnKeyGeneratePostRequestEnforcedParamsList =
167
+ /*@__PURE__*/ S.Array(S.String);
168
+ export const GenerateKeyFnKeyGeneratePostRequestGuardrailsList =
169
+ /*@__PURE__*/ S.Array(S.String);
170
+ export const LiteLLMKeyType = S.String;
171
+ export const GenerateKeyFnKeyGeneratePostRequestMcpRpmLimitMap =
172
+ /*@__PURE__*/ S.Record(S.String, S.Number);
173
+ export const GenerateKeyFnKeyGeneratePostRequestMetadataMap =
174
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
175
+ export const GenerateKeyFnKeyGeneratePostRequestModelMaxBudgetMap =
176
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
177
+ export const GenerateKeyFnKeyGeneratePostRequestModelRpmLimitMap =
178
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
179
+ export const GenerateKeyFnKeyGeneratePostRequestModelTpmLimitMap =
180
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
181
+ export const GenerateKeyFnKeyGeneratePostRequestModelsList =
182
+ /*@__PURE__*/ S.Array(S.Unknown);
183
+ export const LiteLLMObjectPermissionBaseAgentAccessGroupsList =
184
+ /*@__PURE__*/ S.Array(S.String);
185
+ export const LiteLLMObjectPermissionBaseAgentsList = /*@__PURE__*/ S.Array(S.String);
186
+ export const LiteLLMObjectPermissionBaseBlockedToolsList =
187
+ /*@__PURE__*/ S.Array(S.String);
188
+ export const LiteLLMObjectPermissionBaseMcpAccessGroupsList =
189
+ /*@__PURE__*/ S.Array(S.String);
190
+ export const LiteLLMObjectPermissionBaseMcpServersList = /*@__PURE__*/ S.Array(S.String);
191
+ export const LiteLLMObjectPermissionBaseMcpToolPermissionsValueList =
192
+ /*@__PURE__*/ S.Array(S.String);
193
+ export const LiteLLMObjectPermissionBaseMcpToolPermissionsMap =
194
+ /*@__PURE__*/ S.Record(S.String, LiteLLMObjectPermissionBaseMcpToolPermissionsValueList);
195
+ export const LiteLLMObjectPermissionBaseMcpToolsetsList = /*@__PURE__*/ S.Array(S.String);
196
+ export const LiteLLMObjectPermissionBaseModelsList = /*@__PURE__*/ S.Array(S.String);
197
+ export const LiteLLMObjectPermissionBaseSearchToolsList = /*@__PURE__*/ S.Array(S.String);
198
+ export const LiteLLMObjectPermissionBaseVectorStoresList =
199
+ /*@__PURE__*/ S.Array(S.String);
200
+ export const LiteLLMObjectPermissionBase = /*@__PURE__*/ S.suspend(() => S.Struct({
201
+ agent_access_groups: S.optional(S.NullOr(LiteLLMObjectPermissionBaseAgentAccessGroupsList)),
202
+ agents: S.optional(S.NullOr(LiteLLMObjectPermissionBaseAgentsList)),
203
+ blocked_tools: S.optional(S.NullOr(LiteLLMObjectPermissionBaseBlockedToolsList)),
204
+ mcp_access_groups: S.optional(S.NullOr(LiteLLMObjectPermissionBaseMcpAccessGroupsList)),
205
+ mcp_servers: S.optional(S.NullOr(LiteLLMObjectPermissionBaseMcpServersList)),
206
+ mcp_tool_permissions: S.optional(S.NullOr(LiteLLMObjectPermissionBaseMcpToolPermissionsMap)),
207
+ mcp_tool_search_enabled: S.optional(S.NullOr(S.Boolean)),
208
+ mcp_toolsets: S.optional(S.NullOr(LiteLLMObjectPermissionBaseMcpToolsetsList)),
209
+ models: S.optional(S.NullOr(LiteLLMObjectPermissionBaseModelsList)),
210
+ search_tools: S.optional(S.NullOr(LiteLLMObjectPermissionBaseSearchToolsList)),
211
+ vector_stores: S.optional(S.NullOr(LiteLLMObjectPermissionBaseVectorStoresList)),
212
+ })).annotate({
213
+ identifier: "LiteLLMObjectPermissionBase",
214
+ });
215
+ export const GenerateKeyFnKeyGeneratePostRequestPermissionsMap =
216
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
217
+ export const GenerateKeyFnKeyGeneratePostRequestPoliciesList =
218
+ /*@__PURE__*/ S.Array(S.String);
219
+ export const GenerateKeyFnKeyGeneratePostRequestPromptsList =
220
+ /*@__PURE__*/ S.Array(S.String);
221
+ export const UpdateRouterConfigContextWindowFallbacksItemMap =
222
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
223
+ export const UpdateRouterConfigContextWindowFallbacksList =
224
+ /*@__PURE__*/ S.Array(UpdateRouterConfigContextWindowFallbacksItemMap);
225
+ export const UpdateRouterConfigFallbacksItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
226
+ export const UpdateRouterConfigFallbacksList = /*@__PURE__*/ S.Array(UpdateRouterConfigFallbacksItemMap);
227
+ export const UpdateRouterConfigModelGroupAffinityConfigValueList =
228
+ /*@__PURE__*/ S.Array(S.String);
229
+ export const UpdateRouterConfigModelGroupAffinityConfigMap =
230
+ /*@__PURE__*/ S.Record(S.String, UpdateRouterConfigModelGroupAffinityConfigValueList);
231
+ export const UpdateRouterConfigModelGroupAliasValueCase1Map =
232
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
233
+ export const UpdateRouterConfigModelGroupAliasValue = S.Unknown;
234
+ export const UpdateRouterConfigModelGroupAliasMap = /*@__PURE__*/ S.Record(S.String, UpdateRouterConfigModelGroupAliasValue);
235
+ export const RetryPolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
236
+ AuthenticationErrorRetries: S.optional(S.NullOr(S.Number)),
237
+ BadRequestErrorRetries: S.optional(S.NullOr(S.Number)),
238
+ ContentPolicyViolationErrorRetries: S.optional(S.NullOr(S.Number)),
239
+ InternalServerErrorRetries: S.optional(S.NullOr(S.Number)),
240
+ RateLimitErrorRetries: S.optional(S.NullOr(S.Number)),
241
+ TimeoutErrorRetries: S.optional(S.NullOr(S.Number)),
242
+ })).annotate({ identifier: "RetryPolicy" });
243
+ export const UpdateRouterConfigModelGroupRetryPolicyMap =
244
+ /*@__PURE__*/ S.Record(S.String, RetryPolicy);
245
+ export const RoutingGroupModelsList = /*@__PURE__*/ S.Array(S.String);
246
+ export const RoutingGroupRoutingStrategyArgsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
247
+ export const RoutingGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
248
+ group_name: S.String,
249
+ models: RoutingGroupModelsList,
250
+ routing_strategy: S.String,
251
+ routing_strategy_args: S.optional(S.NullOr(RoutingGroupRoutingStrategyArgsMap)),
252
+ })).annotate({ identifier: "RoutingGroup" });
253
+ export const UpdateRouterConfigRoutingGroupsList = /*@__PURE__*/ S.Array(RoutingGroup);
254
+ export const UpdateRouterConfigRoutingStrategyArgsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
255
+ export const UpdateRouterConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
256
+ allowed_fails: S.optional(S.NullOr(S.Number)),
257
+ context_window_fallbacks: S.optional(S.NullOr(UpdateRouterConfigContextWindowFallbacksList)),
258
+ cooldown_time: S.optional(S.NullOr(S.Number)),
259
+ enable_tag_filtering: S.optional(S.NullOr(S.Boolean)),
260
+ fallbacks: S.optional(S.NullOr(UpdateRouterConfigFallbacksList)),
261
+ max_retries: S.optional(S.NullOr(S.Number)),
262
+ model_group_affinity_config: S.optional(S.NullOr(UpdateRouterConfigModelGroupAffinityConfigMap)),
263
+ model_group_alias: S.optional(S.NullOr(UpdateRouterConfigModelGroupAliasMap)),
264
+ model_group_retry_policy: S.optional(S.NullOr(UpdateRouterConfigModelGroupRetryPolicyMap)),
265
+ num_retries: S.optional(S.NullOr(S.Number)),
266
+ retry_after: S.optional(S.NullOr(S.Number)),
267
+ retry_policy: S.optional(S.NullOr(RetryPolicy)),
268
+ routing_groups: S.optional(S.NullOr(UpdateRouterConfigRoutingGroupsList)),
269
+ routing_strategy: S.optional(S.NullOr(S.String)),
270
+ routing_strategy_args: S.optional(S.NullOr(UpdateRouterConfigRoutingStrategyArgsMap)),
271
+ tag_routing_prefix: S.optional(S.NullOr(S.String)),
272
+ timeout: S.optional(S.NullOr(S.Number)),
273
+ })).annotate({
274
+ identifier: "UpdateRouterConfig",
275
+ });
276
+ export const GenerateKeyFnKeyGeneratePostRequestRpmLimitType = S.String;
277
+ export const GenerateKeyFnKeyGeneratePostRequestTagRpmLimitMap =
278
+ /*@__PURE__*/ S.Record(S.String, S.Number);
279
+ export const GenerateKeyFnKeyGeneratePostRequestTagsList =
280
+ /*@__PURE__*/ S.Array(S.String);
281
+ export const GenerateKeyFnKeyGeneratePostRequestTpmLimitType = S.String;
282
+ export const GenerateKeyFnKeyGeneratePostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
283
+ access_group_ids: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestAccessGroupIdsList)),
284
+ agent_id: S.optional(S.NullOr(S.String)),
285
+ aliases: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestAliasesMap)),
286
+ allowed_cache_controls: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestAllowedCacheControlsList)),
287
+ allowed_passthrough_routes: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestAllowedPassthroughRoutesList)),
288
+ allowed_routes: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestAllowedRoutesList)),
289
+ allowed_vector_store_indexes: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestAllowedVectorStoreIndexesList)),
290
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
291
+ blocked: S.optional(S.NullOr(S.Boolean)),
292
+ budget_duration: S.optional(S.NullOr(S.String)),
293
+ budget_fallbacks: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestBudgetFallbacksMap)),
294
+ budget_id: S.optional(S.NullOr(S.String)),
295
+ budget_limits: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestBudgetLimitsList)),
296
+ config: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestConfigMap)),
297
+ default_estimated_output_tokens: S.optional(S.NullOr(S.Number)),
298
+ default_estimated_output_tokens_per_model: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestDefaultEstimatedOutputTokensPerModelMap)),
299
+ disable_global_guardrails: S.optional(S.NullOr(S.Boolean)),
300
+ duration: S.optional(S.NullOr(S.String)),
301
+ enable_prompt_caching: S.optional(S.NullOr(S.Boolean)),
302
+ enforced_params: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestEnforcedParamsList)),
303
+ guardrails: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestGuardrailsList)),
304
+ key: S.optional(S.NullOr(S.String)),
305
+ key_alias: S.optional(S.NullOr(S.String)),
306
+ key_type: S.optional(S.NullOr(LiteLLMKeyType)),
307
+ max_budget: S.optional(S.NullOr(S.Number)),
308
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
309
+ mcp_rpm_limit: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestMcpRpmLimitMap)),
310
+ metadata: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestMetadataMap)),
311
+ model_max_budget: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestModelMaxBudgetMap)),
312
+ model_rpm_limit: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestModelRpmLimitMap)),
313
+ model_tpm_limit: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestModelTpmLimitMap)),
314
+ models: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestModelsList)),
315
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
316
+ organization_id: S.optional(S.NullOr(S.String)),
317
+ permissions: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestPermissionsMap)),
318
+ policies: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestPoliciesList)),
319
+ project_id: S.optional(S.NullOr(S.String)),
320
+ prompts: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestPromptsList)),
321
+ rotation_interval: S.optional(S.NullOr(S.String)),
322
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
323
+ rpm_limit: S.optional(S.NullOr(S.Number)),
324
+ rpm_limit_type: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestRpmLimitType)),
325
+ send_invite_email: S.optional(S.NullOr(S.Boolean)),
326
+ soft_budget: S.optional(S.NullOr(S.Number)),
327
+ spend: S.optional(S.NullOr(S.Number)),
328
+ tag_rpm_limit: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestTagRpmLimitMap)),
329
+ tags: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestTagsList)),
330
+ team_id: S.optional(S.NullOr(S.String)),
331
+ throttle_on_budget_exceeded: S.optional(S.NullOr(S.Boolean)),
332
+ tpm_limit: S.optional(S.NullOr(S.Number)),
333
+ tpm_limit_type: S.optional(S.NullOr(GenerateKeyFnKeyGeneratePostRequestTpmLimitType)),
334
+ user_id: S.optional(S.NullOr(S.String)),
335
+ }).pipe(T.Http({ method: "POST", uri: "/key/generate", code: 200 }))).annotate({
336
+ identifier: "GenerateKeyFnKeyGeneratePostRequest",
337
+ });
338
+ export const GenerateKeyResponseAccessGroupIdsList = /*@__PURE__*/ S.Array(S.String);
339
+ export const GenerateKeyResponseAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
340
+ export const GenerateKeyResponseAllowedCacheControlsList =
341
+ /*@__PURE__*/ S.Array(S.Unknown);
342
+ export const GenerateKeyResponseAllowedPassthroughRoutesList =
343
+ /*@__PURE__*/ S.Array(S.Unknown);
344
+ export const GenerateKeyResponseAllowedRoutesList = /*@__PURE__*/ S.Array(S.Unknown);
345
+ export const GenerateKeyResponseAllowedVectorStoreIndexesList =
346
+ /*@__PURE__*/ S.Array(AllowedVectorStoreIndexItem);
347
+ export const GenerateKeyResponseBudgetFallbacksValueList =
348
+ /*@__PURE__*/ S.Array(S.String);
349
+ export const GenerateKeyResponseBudgetFallbacksMap = /*@__PURE__*/ S.Record(S.String, GenerateKeyResponseBudgetFallbacksValueList);
350
+ export const GenerateKeyResponseBudgetLimitsList = /*@__PURE__*/ S.Array(BudgetLimitEntry);
351
+ export const GenerateKeyResponseConfigMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
352
+ export const GenerateKeyResponseDefaultEstimatedOutputTokensPerModelMap =
353
+ /*@__PURE__*/ S.Record(S.String, S.Number);
354
+ export const GenerateKeyResponseEnforcedParamsList = /*@__PURE__*/ S.Array(S.String);
355
+ export const GenerateKeyResponseGuardrailsList = /*@__PURE__*/ S.Array(S.String);
356
+ export const GenerateKeyResponseMcpRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Number);
357
+ export const GenerateKeyResponseMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
358
+ export const GenerateKeyResponseModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
359
+ export const GenerateKeyResponseModelRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
360
+ export const GenerateKeyResponseModelTpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
361
+ export const GenerateKeyResponseModelsList = /*@__PURE__*/ S.Array(S.Unknown);
362
+ export const GenerateKeyResponsePermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
363
+ export const GenerateKeyResponsePoliciesList = /*@__PURE__*/ S.Array(S.String);
364
+ export const GenerateKeyResponsePromptsList = /*@__PURE__*/ S.Array(S.String);
365
+ export const GenerateKeyResponseRpmLimitType = S.String;
366
+ export const GenerateKeyResponseTagRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Number);
367
+ export const GenerateKeyResponseTagsList = /*@__PURE__*/ S.Array(S.String);
368
+ export const GenerateKeyResponseTpmLimitType = S.String;
369
+ export const GenerateKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
370
+ access_group_ids: S.optional(S.NullOr(GenerateKeyResponseAccessGroupIdsList)),
371
+ agent_id: S.optional(S.NullOr(S.String)),
372
+ aliases: S.optional(S.NullOr(GenerateKeyResponseAliasesMap)),
373
+ allowed_cache_controls: S.optional(S.NullOr(GenerateKeyResponseAllowedCacheControlsList)),
374
+ allowed_passthrough_routes: S.optional(S.NullOr(GenerateKeyResponseAllowedPassthroughRoutesList)),
375
+ allowed_routes: S.optional(S.NullOr(GenerateKeyResponseAllowedRoutesList)),
376
+ allowed_vector_store_indexes: S.optional(S.NullOr(GenerateKeyResponseAllowedVectorStoreIndexesList)),
377
+ blocked: S.optional(S.NullOr(S.Boolean)),
378
+ budget_duration: S.optional(S.NullOr(S.String)),
379
+ budget_fallbacks: S.optional(S.NullOr(GenerateKeyResponseBudgetFallbacksMap)),
380
+ budget_id: S.optional(S.NullOr(S.String)),
381
+ budget_limits: S.optional(S.NullOr(GenerateKeyResponseBudgetLimitsList)),
382
+ config: S.optional(S.NullOr(GenerateKeyResponseConfigMap)),
383
+ created_at: S.optional(S.NullOr(S.String)),
384
+ created_by: S.optional(S.NullOr(S.String)),
385
+ default_estimated_output_tokens: S.optional(S.NullOr(S.Number)),
386
+ default_estimated_output_tokens_per_model: S.optional(S.NullOr(GenerateKeyResponseDefaultEstimatedOutputTokensPerModelMap)),
387
+ disable_global_guardrails: S.optional(S.NullOr(S.Boolean)),
388
+ duration: S.optional(S.NullOr(S.String)),
389
+ enable_prompt_caching: S.optional(S.NullOr(S.Boolean)),
390
+ enforced_params: S.optional(S.NullOr(GenerateKeyResponseEnforcedParamsList)),
391
+ expires: S.optional(S.NullOr(S.String)),
392
+ guardrails: S.optional(S.NullOr(GenerateKeyResponseGuardrailsList)),
393
+ key: S.String.pipe(T.SensitiveValue({})),
394
+ key_alias: S.optional(S.NullOr(S.String)),
395
+ key_name: S.optional(S.NullOr(S.String)),
396
+ key_type: S.optional(S.NullOr(S.String)),
397
+ litellm_budget_table: S.optional(S.NullOr(S.Unknown)),
398
+ max_budget: S.optional(S.NullOr(S.Number)),
399
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
400
+ mcp_rpm_limit: S.optional(S.NullOr(GenerateKeyResponseMcpRpmLimitMap)),
401
+ metadata: S.optional(S.NullOr(GenerateKeyResponseMetadataMap)),
402
+ model_max_budget: S.optional(S.NullOr(GenerateKeyResponseModelMaxBudgetMap)),
403
+ model_rpm_limit: S.optional(S.NullOr(GenerateKeyResponseModelRpmLimitMap)),
404
+ model_tpm_limit: S.optional(S.NullOr(GenerateKeyResponseModelTpmLimitMap)),
405
+ models: S.optional(S.NullOr(GenerateKeyResponseModelsList)),
406
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
407
+ organization_id: S.optional(S.NullOr(S.String)),
408
+ permissions: S.optional(S.NullOr(GenerateKeyResponsePermissionsMap)),
409
+ policies: S.optional(S.NullOr(GenerateKeyResponsePoliciesList)),
410
+ project_id: S.optional(S.NullOr(S.String)),
411
+ prompts: S.optional(S.NullOr(GenerateKeyResponsePromptsList)),
412
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
413
+ rpm_limit: S.optional(S.NullOr(S.Number)),
414
+ rpm_limit_type: S.optional(S.NullOr(GenerateKeyResponseRpmLimitType)),
415
+ spend: S.optional(S.NullOr(S.Number)),
416
+ tag_rpm_limit: S.optional(S.NullOr(GenerateKeyResponseTagRpmLimitMap)),
417
+ tags: S.optional(S.NullOr(GenerateKeyResponseTagsList)),
418
+ team_id: S.optional(S.NullOr(S.String)),
419
+ throttle_on_budget_exceeded: S.optional(S.NullOr(S.Boolean)),
420
+ token: S.optional(S.NullOr(S.String)),
421
+ token_id: S.optional(S.NullOr(S.String)),
422
+ tpm_limit: S.optional(S.NullOr(S.Number)),
423
+ tpm_limit_type: S.optional(S.NullOr(GenerateKeyResponseTpmLimitType)),
424
+ updated_at: S.optional(S.NullOr(S.String)),
425
+ updated_by: S.optional(S.NullOr(S.String)),
426
+ user_id: S.optional(S.NullOr(S.String)),
427
+ })).annotate({
428
+ identifier: "GenerateKeyResponse",
429
+ });
430
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAccessGroupIdsList =
431
+ /*@__PURE__*/ S.Array(S.String);
432
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAliasesMap =
433
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
434
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedCacheControlsList =
435
+ /*@__PURE__*/ S.Array(S.Unknown);
436
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedPassthroughRoutesList =
437
+ /*@__PURE__*/ S.Array(S.Unknown);
438
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedRoutesList =
439
+ /*@__PURE__*/ S.Array(S.Unknown);
440
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedVectorStoreIndexesList =
441
+ /*@__PURE__*/ S.Array(AllowedVectorStoreIndexItem);
442
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestBudgetFallbacksValueList =
443
+ /*@__PURE__*/ S.Array(S.String);
444
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestBudgetFallbacksMap =
445
+ /*@__PURE__*/ S.Record(S.String, GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestBudgetFallbacksValueList);
446
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestBudgetLimitsList =
447
+ /*@__PURE__*/ S.Array(BudgetLimitEntry);
448
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestConfigMap =
449
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
450
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestDefaultEstimatedOutputTokensPerModelMap =
451
+ /*@__PURE__*/ S.Record(S.String, S.Number);
452
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestEnforcedParamsList =
453
+ /*@__PURE__*/ S.Array(S.String);
454
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestGuardrailsList =
455
+ /*@__PURE__*/ S.Array(S.String);
456
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestMcpRpmLimitMap =
457
+ /*@__PURE__*/ S.Record(S.String, S.Number);
458
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestMetadataMap =
459
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
460
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelMaxBudgetMap =
461
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
462
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelRpmLimitMap =
463
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
464
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelTpmLimitMap =
465
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
466
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelsList =
467
+ /*@__PURE__*/ S.Array(S.Unknown);
468
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestPermissionsMap =
469
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
470
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestPoliciesList =
471
+ /*@__PURE__*/ S.Array(S.String);
472
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestPromptsList =
473
+ /*@__PURE__*/ S.Array(S.String);
474
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestRpmLimitType = S.String;
475
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestTagRpmLimitMap =
476
+ /*@__PURE__*/ S.Record(S.String, S.Number);
477
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestTagsList =
478
+ /*@__PURE__*/ S.Array(S.String);
479
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestTpmLimitType = S.String;
480
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequest =
481
+ /*@__PURE__*/ S.suspend(() => S.Struct({
482
+ access_group_ids: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAccessGroupIdsList)),
483
+ agent_id: S.optional(S.NullOr(S.String)),
484
+ aliases: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAliasesMap)),
485
+ allowed_cache_controls: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedCacheControlsList)),
486
+ allowed_passthrough_routes: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedPassthroughRoutesList)),
487
+ allowed_routes: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedRoutesList)),
488
+ allowed_vector_store_indexes: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestAllowedVectorStoreIndexesList)),
489
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
490
+ blocked: S.optional(S.NullOr(S.Boolean)),
491
+ budget_duration: S.optional(S.NullOr(S.String)),
492
+ budget_fallbacks: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestBudgetFallbacksMap)),
493
+ budget_id: S.optional(S.NullOr(S.String)),
494
+ budget_limits: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestBudgetLimitsList)),
495
+ config: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestConfigMap)),
496
+ default_estimated_output_tokens: S.optional(S.NullOr(S.Number)),
497
+ default_estimated_output_tokens_per_model: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestDefaultEstimatedOutputTokensPerModelMap)),
498
+ disable_global_guardrails: S.optional(S.NullOr(S.Boolean)),
499
+ duration: S.optional(S.NullOr(S.String)),
500
+ enable_prompt_caching: S.optional(S.NullOr(S.Boolean)),
501
+ enforced_params: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestEnforcedParamsList)),
502
+ guardrails: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestGuardrailsList)),
503
+ key: S.optional(S.NullOr(S.String)),
504
+ key_alias: S.optional(S.NullOr(S.String)),
505
+ key_type: S.optional(S.NullOr(LiteLLMKeyType)),
506
+ max_budget: S.optional(S.NullOr(S.Number)),
507
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
508
+ mcp_rpm_limit: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestMcpRpmLimitMap)),
509
+ metadata: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestMetadataMap)),
510
+ model_max_budget: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelMaxBudgetMap)),
511
+ model_rpm_limit: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelRpmLimitMap)),
512
+ model_tpm_limit: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelTpmLimitMap)),
513
+ models: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestModelsList)),
514
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
515
+ organization_id: S.optional(S.NullOr(S.String)),
516
+ permissions: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestPermissionsMap)),
517
+ policies: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestPoliciesList)),
518
+ project_id: S.optional(S.NullOr(S.String)),
519
+ prompts: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestPromptsList)),
520
+ rotation_interval: S.optional(S.NullOr(S.String)),
521
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
522
+ rpm_limit: S.optional(S.NullOr(S.Number)),
523
+ rpm_limit_type: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestRpmLimitType)),
524
+ send_invite_email: S.optional(S.NullOr(S.Boolean)),
525
+ soft_budget: S.optional(S.NullOr(S.Number)),
526
+ spend: S.optional(S.NullOr(S.Number)),
527
+ tag_rpm_limit: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestTagRpmLimitMap)),
528
+ tags: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestTagsList)),
529
+ team_id: S.optional(S.NullOr(S.String)),
530
+ throttle_on_budget_exceeded: S.optional(S.NullOr(S.Boolean)),
531
+ tpm_limit: S.optional(S.NullOr(S.Number)),
532
+ tpm_limit_type: S.optional(S.NullOr(GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequestTpmLimitType)),
533
+ user_id: S.optional(S.NullOr(S.String)),
534
+ }).pipe(T.Http({
535
+ method: "POST",
536
+ uri: "/key/service-account/generate",
537
+ code: 200,
538
+ }))).annotate({
539
+ identifier: "GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequest",
540
+ });
541
+ export const GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostResponse =
542
+ /*@__PURE__*/ S.suspend(() => S.Struct({
543
+ body: S.Unknown,
544
+ })).annotate({
545
+ identifier: "GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostResponse",
546
+ });
547
+ export const GetInfoKeyFnKeyInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
548
+ key: S.optional(S.String.pipe(T.Query())),
549
+ }).pipe(T.Http({ method: "GET", uri: "/key/info", code: 200 }))).annotate({
550
+ identifier: "GetInfoKeyFnKeyInfoRequest",
551
+ });
552
+ export const GetInfoKeyFnKeyInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
553
+ body: S.Unknown,
554
+ })).annotate({
555
+ identifier: "GetInfoKeyFnKeyInfoResponse",
556
+ });
557
+ export const GetKeyAliasesKeyAliasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
558
+ page: S.optional(S.Number.pipe(T.Query())),
559
+ size: S.optional(S.Number.pipe(T.Query())),
560
+ search: S.optional(S.String.pipe(T.Query())),
561
+ team_id: S.optional(S.String.pipe(T.Query())),
562
+ }).pipe(T.Http({ method: "GET", uri: "/key/aliases", code: 200 }))).annotate({
563
+ identifier: "GetKeyAliasesKeyAliasRequest",
564
+ });
565
+ export const GetKeyAliasesKeyAliasResponseBodyMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
566
+ export const GetKeyAliasesKeyAliasResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
567
+ body: GetKeyAliasesKeyAliasResponseBodyMap,
568
+ })).annotate({
569
+ identifier: "GetKeyAliasesKeyAliasResponse",
570
+ });
571
+ export const ListKeysKeyListGetRequestExpandList = /*@__PURE__*/ S.Array(S.String);
572
+ export const ListKeysKeyListGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
573
+ page: S.optional(S.Number.pipe(T.Query())),
574
+ size: S.optional(S.Number.pipe(T.Query())),
575
+ user_id: S.optional(S.String.pipe(T.Query())),
576
+ team_id: S.optional(S.String.pipe(T.Query())),
577
+ organization_id: S.optional(S.String.pipe(T.Query())),
578
+ key_hash: S.optional(S.String.pipe(T.Query())),
579
+ key_alias: S.optional(S.String.pipe(T.Query())),
580
+ return_full_object: S.optional(S.Boolean.pipe(T.Query())),
581
+ include_team_keys: S.optional(S.Boolean.pipe(T.Query())),
582
+ include_created_by_keys: S.optional(S.Boolean.pipe(T.Query())),
583
+ sort_by: S.optional(S.String.pipe(T.Query())),
584
+ sort_order: S.optional(S.String.pipe(T.Query())),
585
+ expand: S.optional(ListKeysKeyListGetRequestExpandList.pipe(T.Query())),
586
+ status: S.optional(S.String.pipe(T.Query())),
587
+ project_id: S.optional(S.String.pipe(T.Query())),
588
+ access_group_id: S.optional(S.String.pipe(T.Query())),
589
+ agent_id: S.optional(S.String.pipe(T.Query())),
590
+ substring_matching: S.optional(S.Boolean.pipe(T.Query())),
591
+ expires: S.optional(S.String.pipe(T.Query())),
592
+ }).pipe(T.Http({ method: "GET", uri: "/key/list", code: 200 }))).annotate({
593
+ identifier: "ListKeysKeyListGetRequest",
594
+ });
595
+ export const UserAPIKeyAuthAccessGroupIdsList = /*@__PURE__*/ S.Array(S.String);
596
+ export const UserAPIKeyAuthAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
597
+ export const UserAPIKeyAuthAllowedCacheControlsList = /*@__PURE__*/ S.Array(S.Unknown);
598
+ export const UserAPIKeyAuthAllowedModelRegion = S.String;
599
+ export const UserAPIKeyAuthAllowedRoutesList = /*@__PURE__*/ S.Array(S.Unknown);
600
+ export const UserAPIKeyAuthBudgetFallbacksValueList = /*@__PURE__*/ S.Array(S.String);
601
+ export const UserAPIKeyAuthBudgetFallbacksMap = /*@__PURE__*/ S.Record(S.String, UserAPIKeyAuthBudgetFallbacksValueList);
602
+ export const UserAPIKeyAuthBudgetLimitsItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
603
+ export const UserAPIKeyAuthBudgetLimitsList = /*@__PURE__*/ S.Array(UserAPIKeyAuthBudgetLimitsItemMap);
604
+ export const UserAPIKeyAuthConfigMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
605
+ export const UserAPIKeyAuthEndUserModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
606
+ export const LiteLLMObjectPermissionTableAgentAccessGroupsList =
607
+ /*@__PURE__*/ S.Array(S.String);
608
+ export const LiteLLMObjectPermissionTableAgentsList = /*@__PURE__*/ S.Array(S.String);
609
+ export const LiteLLMObjectPermissionTableBlockedToolsList =
610
+ /*@__PURE__*/ S.Array(S.String);
611
+ export const LiteLLMObjectPermissionTableMcpAccessGroupsList =
612
+ /*@__PURE__*/ S.Array(S.String);
613
+ export const LiteLLMObjectPermissionTableMcpServersList = /*@__PURE__*/ S.Array(S.String);
614
+ export const LiteLLMObjectPermissionTableMcpToolPermissionsValueList =
615
+ /*@__PURE__*/ S.Array(S.String);
616
+ export const LiteLLMObjectPermissionTableMcpToolPermissionsMap =
617
+ /*@__PURE__*/ S.Record(S.String, LiteLLMObjectPermissionTableMcpToolPermissionsValueList);
618
+ export const LiteLLMObjectPermissionTableMcpToolsetsList =
619
+ /*@__PURE__*/ S.Array(S.String);
620
+ export const LiteLLMObjectPermissionTableModelsList = /*@__PURE__*/ S.Array(S.String);
621
+ export const LiteLLMObjectPermissionTableSearchToolsList =
622
+ /*@__PURE__*/ S.Array(S.String);
623
+ export const LiteLLMObjectPermissionTableVectorStoresList =
624
+ /*@__PURE__*/ S.Array(S.String);
625
+ export const LiteLLMObjectPermissionTable = /*@__PURE__*/ S.suspend(() => S.Struct({
626
+ agent_access_groups: S.optional(S.NullOr(LiteLLMObjectPermissionTableAgentAccessGroupsList)),
627
+ agents: S.optional(S.NullOr(LiteLLMObjectPermissionTableAgentsList)),
628
+ blocked_tools: S.optional(S.NullOr(LiteLLMObjectPermissionTableBlockedToolsList)),
629
+ mcp_access_groups: S.optional(S.NullOr(LiteLLMObjectPermissionTableMcpAccessGroupsList)),
630
+ mcp_servers: S.optional(S.NullOr(LiteLLMObjectPermissionTableMcpServersList)),
631
+ mcp_tool_permissions: S.optional(S.NullOr(LiteLLMObjectPermissionTableMcpToolPermissionsMap)),
632
+ mcp_tool_search_enabled: S.optional(S.NullOr(S.Boolean)),
633
+ mcp_toolsets: S.optional(S.NullOr(LiteLLMObjectPermissionTableMcpToolsetsList)),
634
+ models: S.optional(S.NullOr(LiteLLMObjectPermissionTableModelsList)),
635
+ object_permission_id: S.String,
636
+ search_tools: S.optional(S.NullOr(LiteLLMObjectPermissionTableSearchToolsList)),
637
+ vector_stores: S.optional(S.NullOr(LiteLLMObjectPermissionTableVectorStoresList)),
638
+ })).annotate({
639
+ identifier: "LiteLLMObjectPermissionTable",
640
+ });
641
+ export const UserAPIKeyAuthJwtClaimsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
642
+ export const UserAPIKeyAuthLitellmBudgetTableMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
643
+ export const UserAPIKeyAuthMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
644
+ export const UserAPIKeyAuthModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
645
+ export const UserAPIKeyAuthModelSpendMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
646
+ export const UserAPIKeyAuthModelsList = /*@__PURE__*/ S.Array(S.Unknown);
647
+ export const UserAPIKeyAuthOrganizationMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
648
+ export const UserAPIKeyAuthPermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
649
+ export const UserAPIKeyAuthProjectMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
650
+ export const UserAPIKeyAuthRouterSettingsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
651
+ export const UserAPIKeyAuthRpmLimitPerModelMap = /*@__PURE__*/ S.Record(S.String, S.Number);
652
+ export const MemberRole = S.String;
653
+ export const Member = /*@__PURE__*/ S.suspend(() => S.Struct({
654
+ role: MemberRole,
655
+ user_email: S.optional(S.NullOr(S.String)),
656
+ user_id: S.optional(S.NullOr(S.String)),
657
+ })).annotate({ identifier: "Member" });
658
+ export const UserAPIKeyAuthTeamMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
659
+ export const UserAPIKeyAuthTeamModelAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
660
+ export const UserAPIKeyAuthTeamModelsList = /*@__PURE__*/ S.Array(S.Unknown);
661
+ export const UserAPIKeyAuthTpmLimitPerModelMap = /*@__PURE__*/ S.Record(S.String, S.Number);
662
+ export const UserAPIKeyAuthUserModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
663
+ export const LitellmUserRoles = S.String;
664
+ export const UserAPIKeyAuth = /*@__PURE__*/ S.suspend(() => S.Struct({
665
+ access_group_ids: S.optional(S.NullOr(UserAPIKeyAuthAccessGroupIdsList)),
666
+ agent_id: S.optional(S.NullOr(S.String)),
667
+ aliases: S.optional(UserAPIKeyAuthAliasesMap),
668
+ allowed_cache_controls: S.optional(S.NullOr(UserAPIKeyAuthAllowedCacheControlsList)),
669
+ allowed_model_region: S.optional(S.NullOr(UserAPIKeyAuthAllowedModelRegion)),
670
+ allowed_routes: S.optional(S.NullOr(UserAPIKeyAuthAllowedRoutesList)),
671
+ api_key: S.optional(S.NullOr(S.String)),
672
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
673
+ blocked: S.optional(S.NullOr(S.Boolean)),
674
+ budget_duration: S.optional(S.NullOr(S.String)),
675
+ budget_fallbacks: S.optional(UserAPIKeyAuthBudgetFallbacksMap),
676
+ budget_id: S.optional(S.NullOr(S.String)),
677
+ budget_limits: S.optional(S.NullOr(UserAPIKeyAuthBudgetLimitsList)),
678
+ budget_reset_at: S.optional(S.NullOr(S.String)),
679
+ config: S.optional(UserAPIKeyAuthConfigMap),
680
+ created_at: S.optional(S.NullOr(S.String)),
681
+ created_by: S.optional(S.NullOr(S.String)),
682
+ created_by_user: S.optional(S.NullOr(S.Unknown)),
683
+ end_user_id: S.optional(S.NullOr(S.String)),
684
+ end_user_max_budget: S.optional(S.NullOr(S.Number)),
685
+ end_user_model_max_budget: S.optional(S.NullOr(UserAPIKeyAuthEndUserModelMaxBudgetMap)),
686
+ end_user_object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
687
+ end_user_rpm_limit: S.optional(S.NullOr(S.Number)),
688
+ end_user_tpm_limit: S.optional(S.NullOr(S.Number)),
689
+ expires: S.optional(S.NullOr(S.String)),
690
+ is_session_token: S.optional(S.Boolean),
691
+ jwt_claims: S.optional(S.NullOr(UserAPIKeyAuthJwtClaimsMap)),
692
+ key_alias: S.optional(S.NullOr(S.String)),
693
+ key_name: S.optional(S.NullOr(S.String)),
694
+ key_rotation_at: S.optional(S.NullOr(S.String)),
695
+ key_type: S.optional(S.NullOr(S.String)),
696
+ last_active: S.optional(S.NullOr(S.String)),
697
+ last_refreshed_at: S.optional(S.NullOr(S.Number)),
698
+ last_rotation_at: S.optional(S.NullOr(S.String)),
699
+ litellm_budget_table: S.optional(S.NullOr(UserAPIKeyAuthLitellmBudgetTableMap)),
700
+ max_budget: S.optional(S.NullOr(S.Number)),
701
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
702
+ metadata: S.optional(UserAPIKeyAuthMetadataMap),
703
+ model_max_budget: S.optional(UserAPIKeyAuthModelMaxBudgetMap),
704
+ model_spend: S.optional(UserAPIKeyAuthModelSpendMap),
705
+ models: S.optional(UserAPIKeyAuthModelsList),
706
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
707
+ object_permission_id: S.optional(S.NullOr(S.String)),
708
+ org_id: S.optional(S.NullOr(S.String)),
709
+ organization_alias: S.optional(S.NullOr(S.String)),
710
+ organization_max_budget: S.optional(S.NullOr(S.Number)),
711
+ organization_metadata: S.optional(S.NullOr(UserAPIKeyAuthOrganizationMetadataMap)),
712
+ organization_rpm_limit: S.optional(S.NullOr(S.Number)),
713
+ organization_tpm_limit: S.optional(S.NullOr(S.Number)),
714
+ parent_otel_span: S.optional(S.NullOr(S.Unknown)),
715
+ permissions: S.optional(UserAPIKeyAuthPermissionsMap),
716
+ project_alias: S.optional(S.NullOr(S.String)),
717
+ project_id: S.optional(S.NullOr(S.String)),
718
+ project_metadata: S.optional(S.NullOr(UserAPIKeyAuthProjectMetadataMap)),
719
+ request_route: S.optional(S.NullOr(S.String)),
720
+ rotation_count: S.optional(S.NullOr(S.Number)),
721
+ rotation_interval: S.optional(S.NullOr(S.String)),
722
+ router_settings: S.optional(S.NullOr(UserAPIKeyAuthRouterSettingsMap)),
723
+ rpm_limit: S.optional(S.NullOr(S.Number)),
724
+ rpm_limit_per_model: S.optional(S.NullOr(UserAPIKeyAuthRpmLimitPerModelMap)),
725
+ settings_updated_at: S.optional(S.NullOr(S.String)),
726
+ soft_budget: S.optional(S.NullOr(S.Number)),
727
+ soft_budget_cooldown: S.optional(S.Boolean),
728
+ spend: S.optional(S.Number),
729
+ team_alias: S.optional(S.NullOr(S.String)),
730
+ team_blocked: S.optional(S.Boolean),
731
+ team_id: S.optional(S.NullOr(S.String)),
732
+ team_max_budget: S.optional(S.NullOr(S.Number)),
733
+ team_member: S.optional(S.NullOr(Member)),
734
+ team_member_rpm_limit: S.optional(S.NullOr(S.Number)),
735
+ team_member_spend: S.optional(S.NullOr(S.Number)),
736
+ team_member_tpm_limit: S.optional(S.NullOr(S.Number)),
737
+ team_metadata: S.optional(S.NullOr(UserAPIKeyAuthTeamMetadataMap)),
738
+ team_model_aliases: S.optional(S.NullOr(UserAPIKeyAuthTeamModelAliasesMap)),
739
+ team_models: S.optional(UserAPIKeyAuthTeamModelsList),
740
+ team_object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
741
+ team_object_permission_id: S.optional(S.NullOr(S.String)),
742
+ team_rpm_limit: S.optional(S.NullOr(S.Number)),
743
+ team_soft_budget: S.optional(S.NullOr(S.Number)),
744
+ team_spend: S.optional(S.NullOr(S.Number)),
745
+ team_tpm_limit: S.optional(S.NullOr(S.Number)),
746
+ token: S.optional(S.NullOr(S.String)),
747
+ tpm_limit: S.optional(S.NullOr(S.Number)),
748
+ tpm_limit_per_model: S.optional(S.NullOr(UserAPIKeyAuthTpmLimitPerModelMap)),
749
+ updated_at: S.optional(S.NullOr(S.String)),
750
+ updated_by: S.optional(S.NullOr(S.String)),
751
+ user: S.optional(S.NullOr(S.Unknown)),
752
+ user_email: S.optional(S.NullOr(S.String)),
753
+ user_id: S.optional(S.NullOr(S.String)),
754
+ user_max_budget: S.optional(S.NullOr(S.Number)),
755
+ user_model_max_budget: S.optional(S.NullOr(UserAPIKeyAuthUserModelMaxBudgetMap)),
756
+ user_role: S.optional(S.NullOr(LitellmUserRoles)),
757
+ user_rpm_limit: S.optional(S.NullOr(S.Number)),
758
+ user_spend: S.optional(S.NullOr(S.Number)),
759
+ user_tpm_limit: S.optional(S.NullOr(S.Number)),
760
+ })).annotate({ identifier: "UserAPIKeyAuth" });
761
+ export const LiteLLMDeletedVerificationTokenAccessGroupIdsList =
762
+ /*@__PURE__*/ S.Array(S.String);
763
+ export const LiteLLMDeletedVerificationTokenAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
764
+ export const LiteLLMDeletedVerificationTokenAllowedCacheControlsList =
765
+ /*@__PURE__*/ S.Array(S.Unknown);
766
+ export const LiteLLMDeletedVerificationTokenAllowedRoutesList =
767
+ /*@__PURE__*/ S.Array(S.Unknown);
768
+ export const LiteLLMDeletedVerificationTokenBudgetFallbacksValueList =
769
+ /*@__PURE__*/ S.Array(S.String);
770
+ export const LiteLLMDeletedVerificationTokenBudgetFallbacksMap =
771
+ /*@__PURE__*/ S.Record(S.String, LiteLLMDeletedVerificationTokenBudgetFallbacksValueList);
772
+ export const LiteLLMDeletedVerificationTokenBudgetLimitsItemMap =
773
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
774
+ export const LiteLLMDeletedVerificationTokenBudgetLimitsList =
775
+ /*@__PURE__*/ S.Array(LiteLLMDeletedVerificationTokenBudgetLimitsItemMap);
776
+ export const LiteLLMDeletedVerificationTokenConfigMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
777
+ export const LiteLLMDeletedVerificationTokenLitellmBudgetTableMap =
778
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
779
+ export const LiteLLMDeletedVerificationTokenMetadataMap =
780
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
781
+ export const LiteLLMDeletedVerificationTokenModelMaxBudgetMap =
782
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
783
+ export const LiteLLMDeletedVerificationTokenModelSpendMap =
784
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
785
+ export const LiteLLMDeletedVerificationTokenModelsList = /*@__PURE__*/ S.Array(S.Unknown);
786
+ export const LiteLLMDeletedVerificationTokenPermissionsMap =
787
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
788
+ export const LiteLLMDeletedVerificationTokenRouterSettingsMap =
789
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
790
+ export const LiteLLMDeletedVerificationToken = /*@__PURE__*/ S.suspend(() => S.Struct({
791
+ access_group_ids: S.optional(S.NullOr(LiteLLMDeletedVerificationTokenAccessGroupIdsList)),
792
+ agent_id: S.optional(S.NullOr(S.String)),
793
+ aliases: S.optional(LiteLLMDeletedVerificationTokenAliasesMap),
794
+ allowed_cache_controls: S.optional(S.NullOr(LiteLLMDeletedVerificationTokenAllowedCacheControlsList)),
795
+ allowed_routes: S.optional(S.NullOr(LiteLLMDeletedVerificationTokenAllowedRoutesList)),
796
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
797
+ blocked: S.optional(S.NullOr(S.Boolean)),
798
+ budget_duration: S.optional(S.NullOr(S.String)),
799
+ budget_fallbacks: S.optional(LiteLLMDeletedVerificationTokenBudgetFallbacksMap),
800
+ budget_id: S.optional(S.NullOr(S.String)),
801
+ budget_limits: S.optional(S.NullOr(LiteLLMDeletedVerificationTokenBudgetLimitsList)),
802
+ budget_reset_at: S.optional(S.NullOr(S.String)),
803
+ config: S.optional(LiteLLMDeletedVerificationTokenConfigMap),
804
+ created_at: S.optional(S.NullOr(S.String)),
805
+ created_by: S.optional(S.NullOr(S.String)),
806
+ deleted_at: S.optional(S.NullOr(S.String)),
807
+ deleted_by: S.optional(S.NullOr(S.String)),
808
+ deleted_by_api_key: S.optional(S.NullOr(S.String)),
809
+ expires: S.optional(S.NullOr(S.String)),
810
+ id: S.optional(S.NullOr(S.String)),
811
+ key_alias: S.optional(S.NullOr(S.String)),
812
+ key_name: S.optional(S.NullOr(S.String)),
813
+ key_rotation_at: S.optional(S.NullOr(S.String)),
814
+ key_type: S.optional(S.NullOr(S.String)),
815
+ last_active: S.optional(S.NullOr(S.String)),
816
+ last_rotation_at: S.optional(S.NullOr(S.String)),
817
+ litellm_budget_table: S.optional(S.NullOr(LiteLLMDeletedVerificationTokenLitellmBudgetTableMap)),
818
+ litellm_changed_by: S.optional(S.NullOr(S.String)),
819
+ max_budget: S.optional(S.NullOr(S.Number)),
820
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
821
+ metadata: S.optional(LiteLLMDeletedVerificationTokenMetadataMap),
822
+ model_max_budget: S.optional(LiteLLMDeletedVerificationTokenModelMaxBudgetMap),
823
+ model_spend: S.optional(LiteLLMDeletedVerificationTokenModelSpendMap),
824
+ models: S.optional(LiteLLMDeletedVerificationTokenModelsList),
825
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
826
+ object_permission_id: S.optional(S.NullOr(S.String)),
827
+ org_id: S.optional(S.NullOr(S.String)),
828
+ permissions: S.optional(LiteLLMDeletedVerificationTokenPermissionsMap),
829
+ project_id: S.optional(S.NullOr(S.String)),
830
+ rotation_count: S.optional(S.NullOr(S.Number)),
831
+ rotation_interval: S.optional(S.NullOr(S.String)),
832
+ router_settings: S.optional(S.NullOr(LiteLLMDeletedVerificationTokenRouterSettingsMap)),
833
+ rpm_limit: S.optional(S.NullOr(S.Number)),
834
+ settings_updated_at: S.optional(S.NullOr(S.String)),
835
+ soft_budget_cooldown: S.optional(S.Boolean),
836
+ spend: S.optional(S.Number),
837
+ team_id: S.optional(S.NullOr(S.String)),
838
+ token: S.optional(S.NullOr(S.String)),
839
+ tpm_limit: S.optional(S.NullOr(S.Number)),
840
+ updated_at: S.optional(S.NullOr(S.String)),
841
+ updated_by: S.optional(S.NullOr(S.String)),
842
+ user_id: S.optional(S.NullOr(S.String)),
843
+ })).annotate({
844
+ identifier: "LiteLLMDeletedVerificationToken",
845
+ });
846
+ export const KeyListResponseObjectKeysItem = S.Unknown;
847
+ export const KeyListResponseObjectKeysList = /*@__PURE__*/ S.Array(KeyListResponseObjectKeysItem);
848
+ export const KeyListResponseObject = /*@__PURE__*/ S.suspend(() => S.Struct({
849
+ current_page: S.optional(S.NullOr(S.Number)),
850
+ keys: S.optional(KeyListResponseObjectKeysList),
851
+ total_count: S.optional(S.NullOr(S.Number)),
852
+ total_pages: S.optional(S.NullOr(S.Number)),
853
+ })).annotate({
854
+ identifier: "KeyListResponseObject",
855
+ });
856
+ export const PostBlockKeyKeyBlockRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
857
+ key: S.String,
858
+ }).pipe(T.Http({ method: "POST", uri: "/key/block", code: 200 }))).annotate({
859
+ identifier: "PostBlockKeyKeyBlockRequest",
860
+ });
861
+ export const LiteLLMVerificationTokenAccessGroupIdsList = /*@__PURE__*/ S.Array(S.String);
862
+ export const LiteLLMVerificationTokenAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
863
+ export const LiteLLMVerificationTokenAllowedCacheControlsList =
864
+ /*@__PURE__*/ S.Array(S.Unknown);
865
+ export const LiteLLMVerificationTokenAllowedRoutesList = /*@__PURE__*/ S.Array(S.Unknown);
866
+ export const LiteLLMVerificationTokenBudgetFallbacksValueList =
867
+ /*@__PURE__*/ S.Array(S.String);
868
+ export const LiteLLMVerificationTokenBudgetFallbacksMap =
869
+ /*@__PURE__*/ S.Record(S.String, LiteLLMVerificationTokenBudgetFallbacksValueList);
870
+ export const LiteLLMVerificationTokenBudgetLimitsItemMap =
871
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
872
+ export const LiteLLMVerificationTokenBudgetLimitsList = /*@__PURE__*/ S.Array(LiteLLMVerificationTokenBudgetLimitsItemMap);
873
+ export const LiteLLMVerificationTokenConfigMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
874
+ export const LiteLLMVerificationTokenLitellmBudgetTableMap =
875
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
876
+ export const LiteLLMVerificationTokenMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
877
+ export const LiteLLMVerificationTokenModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
878
+ export const LiteLLMVerificationTokenModelSpendMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
879
+ export const LiteLLMVerificationTokenModelsList = /*@__PURE__*/ S.Array(S.Unknown);
880
+ export const LiteLLMVerificationTokenPermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
881
+ export const LiteLLMVerificationTokenRouterSettingsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
882
+ export const LiteLLMVerificationToken = /*@__PURE__*/ S.suspend(() => S.Struct({
883
+ access_group_ids: S.optional(S.NullOr(LiteLLMVerificationTokenAccessGroupIdsList)),
884
+ agent_id: S.optional(S.NullOr(S.String)),
885
+ aliases: S.optional(LiteLLMVerificationTokenAliasesMap),
886
+ allowed_cache_controls: S.optional(S.NullOr(LiteLLMVerificationTokenAllowedCacheControlsList)),
887
+ allowed_routes: S.optional(S.NullOr(LiteLLMVerificationTokenAllowedRoutesList)),
888
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
889
+ blocked: S.optional(S.NullOr(S.Boolean)),
890
+ budget_duration: S.optional(S.NullOr(S.String)),
891
+ budget_fallbacks: S.optional(LiteLLMVerificationTokenBudgetFallbacksMap),
892
+ budget_id: S.optional(S.NullOr(S.String)),
893
+ budget_limits: S.optional(S.NullOr(LiteLLMVerificationTokenBudgetLimitsList)),
894
+ budget_reset_at: S.optional(S.NullOr(S.String)),
895
+ config: S.optional(LiteLLMVerificationTokenConfigMap),
896
+ created_at: S.optional(S.NullOr(S.String)),
897
+ created_by: S.optional(S.NullOr(S.String)),
898
+ expires: S.optional(S.NullOr(S.String)),
899
+ key_alias: S.optional(S.NullOr(S.String)),
900
+ key_name: S.optional(S.NullOr(S.String)),
901
+ key_rotation_at: S.optional(S.NullOr(S.String)),
902
+ key_type: S.optional(S.NullOr(S.String)),
903
+ last_active: S.optional(S.NullOr(S.String)),
904
+ last_rotation_at: S.optional(S.NullOr(S.String)),
905
+ litellm_budget_table: S.optional(S.NullOr(LiteLLMVerificationTokenLitellmBudgetTableMap)),
906
+ max_budget: S.optional(S.NullOr(S.Number)),
907
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
908
+ metadata: S.optional(LiteLLMVerificationTokenMetadataMap),
909
+ model_max_budget: S.optional(LiteLLMVerificationTokenModelMaxBudgetMap),
910
+ model_spend: S.optional(LiteLLMVerificationTokenModelSpendMap),
911
+ models: S.optional(LiteLLMVerificationTokenModelsList),
912
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
913
+ object_permission_id: S.optional(S.NullOr(S.String)),
914
+ org_id: S.optional(S.NullOr(S.String)),
915
+ permissions: S.optional(LiteLLMVerificationTokenPermissionsMap),
916
+ project_id: S.optional(S.NullOr(S.String)),
917
+ rotation_count: S.optional(S.NullOr(S.Number)),
918
+ rotation_interval: S.optional(S.NullOr(S.String)),
919
+ router_settings: S.optional(S.NullOr(LiteLLMVerificationTokenRouterSettingsMap)),
920
+ rpm_limit: S.optional(S.NullOr(S.Number)),
921
+ settings_updated_at: S.optional(S.NullOr(S.String)),
922
+ soft_budget_cooldown: S.optional(S.Boolean),
923
+ spend: S.optional(S.Number),
924
+ team_id: S.optional(S.NullOr(S.String)),
925
+ token: S.optional(S.NullOr(S.String)),
926
+ tpm_limit: S.optional(S.NullOr(S.Number)),
927
+ updated_at: S.optional(S.NullOr(S.String)),
928
+ updated_by: S.optional(S.NullOr(S.String)),
929
+ user_id: S.optional(S.NullOr(S.String)),
930
+ })).annotate({
931
+ identifier: "LiteLLMVerificationToken",
932
+ });
933
+ export const PostBlockKeyKeyBlockResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
934
+ body: S.NullOr(LiteLLMVerificationToken),
935
+ })).annotate({
936
+ identifier: "PostBlockKeyKeyBlockResponse",
937
+ });
938
+ export const KeyRequestKeyAliasesList = /*@__PURE__*/ S.Array(S.String);
939
+ export const KeyRequestKeysList = /*@__PURE__*/ S.Array(S.String);
940
+ export const KeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
941
+ key_aliases: S.optional(S.NullOr(KeyRequestKeyAliasesList)),
942
+ keys: S.optional(S.NullOr(KeyRequestKeysList)),
943
+ })).annotate({ identifier: "KeyRequest" });
944
+ export const PostInfoKeyFnV2V2KeyInfoRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
945
+ body: S.optional(S.NullOr(KeyRequest).pipe(T.HttpBody())),
946
+ }).pipe(T.Http({ method: "POST", uri: "/v2/key/info", code: 200 }))).annotate({
947
+ identifier: "PostInfoKeyFnV2V2KeyInfoRequest",
948
+ });
949
+ export const PostInfoKeyFnV2V2KeyInfoResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
950
+ body: S.Unknown,
951
+ })).annotate({
952
+ identifier: "PostInfoKeyFnV2V2KeyInfoResponse",
953
+ });
954
+ export const PostKeyHealthKeyHealthRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/key/health", code: 200 }))).annotate({
955
+ identifier: "PostKeyHealthKeyHealthRequest",
956
+ });
957
+ export const KeyHealthResponseKey = S.String;
958
+ export const LoggingCallbackStatusCallbacksList = /*@__PURE__*/ S.Array(S.String);
959
+ export const LoggingCallbackStatusStatus = S.String;
960
+ export const LoggingCallbackStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
961
+ callbacks: S.optional(LoggingCallbackStatusCallbacksList),
962
+ details: S.optional(S.NullOr(S.String)),
963
+ status: S.optional(LoggingCallbackStatusStatus),
964
+ })).annotate({
965
+ identifier: "LoggingCallbackStatus",
966
+ });
967
+ export const KeyHealthResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
968
+ key: S.optional(KeyHealthResponseKey),
969
+ logging_callbacks: S.optional(S.NullOr(LoggingCallbackStatus)),
970
+ })).annotate({
971
+ identifier: "KeyHealthResponse",
972
+ });
973
+ export const RegenerateKeyRequestAccessGroupIdsList = /*@__PURE__*/ S.Array(S.String);
974
+ export const RegenerateKeyRequestAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
975
+ export const RegenerateKeyRequestAllowedCacheControlsList =
976
+ /*@__PURE__*/ S.Array(S.Unknown);
977
+ export const RegenerateKeyRequestAllowedPassthroughRoutesList =
978
+ /*@__PURE__*/ S.Array(S.Unknown);
979
+ export const RegenerateKeyRequestAllowedRoutesList = /*@__PURE__*/ S.Array(S.Unknown);
980
+ export const RegenerateKeyRequestAllowedVectorStoreIndexesList =
981
+ /*@__PURE__*/ S.Array(AllowedVectorStoreIndexItem);
982
+ export const RegenerateKeyRequestBudgetFallbacksValueList =
983
+ /*@__PURE__*/ S.Array(S.String);
984
+ export const RegenerateKeyRequestBudgetFallbacksMap = /*@__PURE__*/ S.Record(S.String, RegenerateKeyRequestBudgetFallbacksValueList);
985
+ export const RegenerateKeyRequestBudgetLimitsList = /*@__PURE__*/ S.Array(BudgetLimitEntry);
986
+ export const RegenerateKeyRequestConfigMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
987
+ export const RegenerateKeyRequestDefaultEstimatedOutputTokensPerModelMap =
988
+ /*@__PURE__*/ S.Record(S.String, S.Number);
989
+ export const RegenerateKeyRequestEnforcedParamsList = /*@__PURE__*/ S.Array(S.String);
990
+ export const RegenerateKeyRequestGuardrailsList = /*@__PURE__*/ S.Array(S.String);
991
+ export const RegenerateKeyRequestMcpRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Number);
992
+ export const RegenerateKeyRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
993
+ export const RegenerateKeyRequestModelMaxBudgetMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
994
+ export const RegenerateKeyRequestModelRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
995
+ export const RegenerateKeyRequestModelTpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
996
+ export const RegenerateKeyRequestModelsList = /*@__PURE__*/ S.Array(S.Unknown);
997
+ export const RegenerateKeyRequestPermissionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
998
+ export const RegenerateKeyRequestPoliciesList = /*@__PURE__*/ S.Array(S.String);
999
+ export const RegenerateKeyRequestPromptsList = /*@__PURE__*/ S.Array(S.String);
1000
+ export const RegenerateKeyRequestRpmLimitType = S.String;
1001
+ export const RegenerateKeyRequestTagRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Number);
1002
+ export const RegenerateKeyRequestTagsList = /*@__PURE__*/ S.Array(S.String);
1003
+ export const RegenerateKeyRequestTpmLimitType = S.String;
1004
+ export const RegenerateKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1005
+ access_group_ids: S.optional(S.NullOr(RegenerateKeyRequestAccessGroupIdsList)),
1006
+ agent_id: S.optional(S.NullOr(S.String)),
1007
+ aliases: S.optional(S.NullOr(RegenerateKeyRequestAliasesMap)),
1008
+ allowed_cache_controls: S.optional(S.NullOr(RegenerateKeyRequestAllowedCacheControlsList)),
1009
+ allowed_passthrough_routes: S.optional(S.NullOr(RegenerateKeyRequestAllowedPassthroughRoutesList)),
1010
+ allowed_routes: S.optional(S.NullOr(RegenerateKeyRequestAllowedRoutesList)),
1011
+ allowed_vector_store_indexes: S.optional(S.NullOr(RegenerateKeyRequestAllowedVectorStoreIndexesList)),
1012
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
1013
+ blocked: S.optional(S.NullOr(S.Boolean)),
1014
+ budget_duration: S.optional(S.NullOr(S.String)),
1015
+ budget_fallbacks: S.optional(S.NullOr(RegenerateKeyRequestBudgetFallbacksMap)),
1016
+ budget_id: S.optional(S.NullOr(S.String)),
1017
+ budget_limits: S.optional(S.NullOr(RegenerateKeyRequestBudgetLimitsList)),
1018
+ config: S.optional(S.NullOr(RegenerateKeyRequestConfigMap)),
1019
+ default_estimated_output_tokens: S.optional(S.NullOr(S.Number)),
1020
+ default_estimated_output_tokens_per_model: S.optional(S.NullOr(RegenerateKeyRequestDefaultEstimatedOutputTokensPerModelMap)),
1021
+ disable_global_guardrails: S.optional(S.NullOr(S.Boolean)),
1022
+ duration: S.optional(S.NullOr(S.String)),
1023
+ enable_prompt_caching: S.optional(S.NullOr(S.Boolean)),
1024
+ enforced_params: S.optional(S.NullOr(RegenerateKeyRequestEnforcedParamsList)),
1025
+ grace_period: S.optional(S.NullOr(S.String)),
1026
+ guardrails: S.optional(S.NullOr(RegenerateKeyRequestGuardrailsList)),
1027
+ key: S.optional(S.NullOr(S.String)),
1028
+ key_alias: S.optional(S.NullOr(S.String)),
1029
+ key_type: S.optional(S.NullOr(LiteLLMKeyType)),
1030
+ max_budget: S.optional(S.NullOr(S.Number)),
1031
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
1032
+ mcp_rpm_limit: S.optional(S.NullOr(RegenerateKeyRequestMcpRpmLimitMap)),
1033
+ metadata: S.optional(S.NullOr(RegenerateKeyRequestMetadataMap)),
1034
+ model_max_budget: S.optional(S.NullOr(RegenerateKeyRequestModelMaxBudgetMap)),
1035
+ model_rpm_limit: S.optional(S.NullOr(RegenerateKeyRequestModelRpmLimitMap)),
1036
+ model_tpm_limit: S.optional(S.NullOr(RegenerateKeyRequestModelTpmLimitMap)),
1037
+ models: S.optional(S.NullOr(RegenerateKeyRequestModelsList)),
1038
+ new_key: S.optional(S.NullOr(S.String)),
1039
+ new_master_key: S.optional(S.NullOr(S.String)),
1040
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
1041
+ organization_id: S.optional(S.NullOr(S.String)),
1042
+ permissions: S.optional(S.NullOr(RegenerateKeyRequestPermissionsMap)),
1043
+ policies: S.optional(S.NullOr(RegenerateKeyRequestPoliciesList)),
1044
+ project_id: S.optional(S.NullOr(S.String)),
1045
+ prompts: S.optional(S.NullOr(RegenerateKeyRequestPromptsList)),
1046
+ rotation_interval: S.optional(S.NullOr(S.String)),
1047
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
1048
+ rpm_limit: S.optional(S.NullOr(S.Number)),
1049
+ rpm_limit_type: S.optional(S.NullOr(RegenerateKeyRequestRpmLimitType)),
1050
+ send_invite_email: S.optional(S.NullOr(S.Boolean)),
1051
+ soft_budget: S.optional(S.NullOr(S.Number)),
1052
+ spend: S.optional(S.NullOr(S.Number)),
1053
+ tag_rpm_limit: S.optional(S.NullOr(RegenerateKeyRequestTagRpmLimitMap)),
1054
+ tags: S.optional(S.NullOr(RegenerateKeyRequestTagsList)),
1055
+ team_id: S.optional(S.NullOr(S.String)),
1056
+ throttle_on_budget_exceeded: S.optional(S.NullOr(S.Boolean)),
1057
+ tpm_limit: S.optional(S.NullOr(S.Number)),
1058
+ tpm_limit_type: S.optional(S.NullOr(RegenerateKeyRequestTpmLimitType)),
1059
+ user_id: S.optional(S.NullOr(S.String)),
1060
+ })).annotate({
1061
+ identifier: "RegenerateKeyRequest",
1062
+ });
1063
+ export const RegenerateKeyFnKeyKeyRegeneratePostRequest =
1064
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1065
+ key: S.String.pipe(T.Label()),
1066
+ body: S.optional(S.NullOr(RegenerateKeyRequest).pipe(T.HttpBody())),
1067
+ }).pipe(T.Http({ method: "POST", uri: "/key/{key}/regenerate", code: 200 }))).annotate({
1068
+ identifier: "RegenerateKeyFnKeyKeyRegeneratePostRequest",
1069
+ });
1070
+ export const RegenerateKeyFnKeyKeyRegeneratePostResponse =
1071
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1072
+ body: S.NullOr(GenerateKeyResponse),
1073
+ })).annotate({
1074
+ identifier: "RegenerateKeyFnKeyKeyRegeneratePostResponse",
1075
+ });
1076
+ export const RegenerateKeyFnKeyRegeneratePostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1077
+ key: S.optional(S.String.pipe(T.Query())),
1078
+ body: S.optional(S.NullOr(RegenerateKeyRequest).pipe(T.HttpBody())),
1079
+ }).pipe(T.Http({ method: "POST", uri: "/key/regenerate", code: 200 }))).annotate({
1080
+ identifier: "RegenerateKeyFnKeyRegeneratePostRequest",
1081
+ });
1082
+ export const RegenerateKeyFnKeyRegeneratePostResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1083
+ body: S.NullOr(GenerateKeyResponse),
1084
+ })).annotate({
1085
+ identifier: "RegenerateKeyFnKeyRegeneratePostResponse",
1086
+ });
1087
+ export const ResetKeySpendFnKeyKeyResetSpendPostRequest =
1088
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1089
+ key: S.String.pipe(T.Label()),
1090
+ reset_to: S.Number,
1091
+ }).pipe(T.Http({ method: "POST", uri: "/key/{key}/reset_spend", code: 200 }))).annotate({
1092
+ identifier: "ResetKeySpendFnKeyKeyResetSpendPostRequest",
1093
+ });
1094
+ export const ResetKeySpendFnKeyKeyResetSpendPostResponseBodyMap =
1095
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1096
+ export const ResetKeySpendFnKeyKeyResetSpendPostResponse =
1097
+ /*@__PURE__*/ S.suspend(() => S.Struct({
1098
+ body: ResetKeySpendFnKeyKeyResetSpendPostResponseBodyMap,
1099
+ })).annotate({
1100
+ identifier: "ResetKeySpendFnKeyKeyResetSpendPostResponse",
1101
+ });
1102
+ export const UnblockKeyKeyUnblockPostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1103
+ key: S.String,
1104
+ }).pipe(T.Http({ method: "POST", uri: "/key/unblock", code: 200 }))).annotate({
1105
+ identifier: "UnblockKeyKeyUnblockPostRequest",
1106
+ });
1107
+ export const UnblockKeyKeyUnblockPostResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1108
+ body: S.Unknown,
1109
+ })).annotate({
1110
+ identifier: "UnblockKeyKeyUnblockPostResponse",
1111
+ });
1112
+ export const UpdateKeyFnKeyUpdatePostRequestAccessGroupIdsList =
1113
+ /*@__PURE__*/ S.Array(S.String);
1114
+ export const UpdateKeyFnKeyUpdatePostRequestAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1115
+ export const UpdateKeyFnKeyUpdatePostRequestAllowedCacheControlsList =
1116
+ /*@__PURE__*/ S.Array(S.Unknown);
1117
+ export const UpdateKeyFnKeyUpdatePostRequestAllowedPassthroughRoutesList =
1118
+ /*@__PURE__*/ S.Array(S.Unknown);
1119
+ export const UpdateKeyFnKeyUpdatePostRequestAllowedRoutesList =
1120
+ /*@__PURE__*/ S.Array(S.Unknown);
1121
+ export const UpdateKeyFnKeyUpdatePostRequestAllowedVectorStoreIndexesList =
1122
+ /*@__PURE__*/ S.Array(AllowedVectorStoreIndexItem);
1123
+ export const UpdateKeyFnKeyUpdatePostRequestBudgetFallbacksValueList =
1124
+ /*@__PURE__*/ S.Array(S.String);
1125
+ export const UpdateKeyFnKeyUpdatePostRequestBudgetFallbacksMap =
1126
+ /*@__PURE__*/ S.Record(S.String, UpdateKeyFnKeyUpdatePostRequestBudgetFallbacksValueList);
1127
+ export const UpdateKeyFnKeyUpdatePostRequestBudgetLimitsList =
1128
+ /*@__PURE__*/ S.Array(BudgetLimitEntry);
1129
+ export const UpdateKeyFnKeyUpdatePostRequestConfigMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1130
+ export const UpdateKeyFnKeyUpdatePostRequestDefaultEstimatedOutputTokensPerModelMap =
1131
+ /*@__PURE__*/ S.Record(S.String, S.Number);
1132
+ export const UpdateKeyFnKeyUpdatePostRequestEnforcedParamsList =
1133
+ /*@__PURE__*/ S.Array(S.String);
1134
+ export const UpdateKeyFnKeyUpdatePostRequestGuardrailsList =
1135
+ /*@__PURE__*/ S.Array(S.String);
1136
+ export const UpdateKeyFnKeyUpdatePostRequestMcpRpmLimitMap =
1137
+ /*@__PURE__*/ S.Record(S.String, S.Number);
1138
+ export const UpdateKeyFnKeyUpdatePostRequestMetadataMap =
1139
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1140
+ export const UpdateKeyFnKeyUpdatePostRequestModelMaxBudgetMap =
1141
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1142
+ export const UpdateKeyFnKeyUpdatePostRequestModelRpmLimitMap =
1143
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1144
+ export const UpdateKeyFnKeyUpdatePostRequestModelTpmLimitMap =
1145
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1146
+ export const UpdateKeyFnKeyUpdatePostRequestModelsList = /*@__PURE__*/ S.Array(S.Unknown);
1147
+ export const UpdateKeyFnKeyUpdatePostRequestPermissionsMap =
1148
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
1149
+ export const UpdateKeyFnKeyUpdatePostRequestPoliciesList =
1150
+ /*@__PURE__*/ S.Array(S.String);
1151
+ export const UpdateKeyFnKeyUpdatePostRequestPromptsList = /*@__PURE__*/ S.Array(S.String);
1152
+ export const UpdateKeyFnKeyUpdatePostRequestRpmLimitType = S.String;
1153
+ export const UpdateKeyFnKeyUpdatePostRequestTagRpmLimitMap =
1154
+ /*@__PURE__*/ S.Record(S.String, S.Number);
1155
+ export const UpdateKeyFnKeyUpdatePostRequestTagsList = /*@__PURE__*/ S.Array(S.String);
1156
+ export const UpdateKeyFnKeyUpdatePostRequestTpmLimitType = S.String;
1157
+ export const UpdateKeyFnKeyUpdatePostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1158
+ access_group_ids: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestAccessGroupIdsList)),
1159
+ agent_id: S.optional(S.NullOr(S.String)),
1160
+ aliases: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestAliasesMap)),
1161
+ allowed_cache_controls: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestAllowedCacheControlsList)),
1162
+ allowed_passthrough_routes: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestAllowedPassthroughRoutesList)),
1163
+ allowed_routes: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestAllowedRoutesList)),
1164
+ allowed_vector_store_indexes: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestAllowedVectorStoreIndexesList)),
1165
+ auto_rotate: S.optional(S.NullOr(S.Boolean)),
1166
+ blocked: S.optional(S.NullOr(S.Boolean)),
1167
+ budget_duration: S.optional(S.NullOr(S.String)),
1168
+ budget_fallbacks: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestBudgetFallbacksMap)),
1169
+ budget_id: S.optional(S.NullOr(S.String)),
1170
+ budget_limits: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestBudgetLimitsList)),
1171
+ config: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestConfigMap)),
1172
+ default_estimated_output_tokens: S.optional(S.NullOr(S.Number)),
1173
+ default_estimated_output_tokens_per_model: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestDefaultEstimatedOutputTokensPerModelMap)),
1174
+ disable_global_guardrails: S.optional(S.NullOr(S.Boolean)),
1175
+ duration: S.optional(S.NullOr(S.String)),
1176
+ enable_prompt_caching: S.optional(S.NullOr(S.Boolean)),
1177
+ enforced_params: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestEnforcedParamsList)),
1178
+ guardrails: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestGuardrailsList)),
1179
+ key: S.optional(S.NullOr(S.String)),
1180
+ key_alias: S.optional(S.NullOr(S.String)),
1181
+ max_budget: S.optional(S.NullOr(S.Number)),
1182
+ max_parallel_requests: S.optional(S.NullOr(S.Number)),
1183
+ mcp_rpm_limit: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestMcpRpmLimitMap)),
1184
+ metadata: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestMetadataMap)),
1185
+ model_max_budget: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestModelMaxBudgetMap)),
1186
+ model_rpm_limit: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestModelRpmLimitMap)),
1187
+ model_tpm_limit: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestModelTpmLimitMap)),
1188
+ models: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestModelsList)),
1189
+ object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
1190
+ organization_id: S.optional(S.NullOr(S.String)),
1191
+ permissions: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestPermissionsMap)),
1192
+ policies: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestPoliciesList)),
1193
+ prompts: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestPromptsList)),
1194
+ rotation_interval: S.optional(S.NullOr(S.String)),
1195
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
1196
+ rpm_limit: S.optional(S.NullOr(S.Number)),
1197
+ rpm_limit_type: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestRpmLimitType)),
1198
+ spend: S.optional(S.NullOr(S.Number)),
1199
+ tag_rpm_limit: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestTagRpmLimitMap)),
1200
+ tags: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestTagsList)),
1201
+ team_id: S.optional(S.NullOr(S.String)),
1202
+ temp_budget_expiry: S.optional(S.NullOr(S.String)),
1203
+ temp_budget_increase: S.optional(S.NullOr(S.Number)),
1204
+ throttle_on_budget_exceeded: S.optional(S.NullOr(S.Boolean)),
1205
+ tpm_limit: S.optional(S.NullOr(S.Number)),
1206
+ tpm_limit_type: S.optional(S.NullOr(UpdateKeyFnKeyUpdatePostRequestTpmLimitType)),
1207
+ user_id: S.optional(S.NullOr(S.String)),
1208
+ }).pipe(T.Http({ method: "POST", uri: "/key/update", code: 200 }))).annotate({
1209
+ identifier: "UpdateKeyFnKeyUpdatePostRequest",
1210
+ });
1211
+ export const UpdateKeyFnKeyUpdatePostResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1212
+ body: S.Unknown,
1213
+ })).annotate({
1214
+ identifier: "UpdateKeyFnKeyUpdatePostResponse",
1215
+ });
1216
+ /** Bulk Update Keys Bulk update multiple keys at once. This endpoint allows updating multiple keys in a single request. Each key update is processed independently - if some updates fail, others will still succeed. Parameters: - keys: List[BulkUpdateKeyRequestItem] - List of key update requests, each containing: - key: str - The key identifier (token) to update - budget_id: Optional[str] - Budget ID associated with the key - max_budget: Optional[float] - Max budget for key - team_id: Optional[str] - Team ID associated with key - tags: Optional[List[str]] - Tags for organizing keys Returns: - total_requested: int - Total number of keys requested for update - successful_updates: List[SuccessfulKeyUpdate] - List of successfully updated keys with their updated info - failed_updates: List[FailedKeyUpdate] - List of failed updates with key_info and failed_reason Example request: ```bash curl --location 'http://0.0.0.0:4000/key/bulk_update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "keys": [ { "key": "sk-1234", "max_budget": 100.0, "team_id": "team-123", "tags": ["production", "api"] }, { "key": "sk-5678", "budget_id": "budget-456", "tags": ["staging"] } ] }' ``` */
1217
+ export const bulkUpdateKeysKeyBulkUpdatePost = /*@__PURE__*/ API.make(() => ({
1218
+ input: BulkUpdateKeysKeyBulkUpdatePostRequest,
1219
+ output: BulkUpdateKeyResponse,
1220
+ errors: [BadRequest, Forbidden, UnprocessableEntity],
1221
+ protocol: LitellmProtocol,
1222
+ retry: Retry.Retry,
1223
+ }));
1224
+ /** Bulk Update Team Keys Apply one update payload to many keys inside a single team. Pass `team_id` plus either `key_ids` or `all_keys_in_team=True`. The `update_fields` payload is broadcast to every selected key. Per-key failures are returned in `failed_updates` rather than aborting the batch. Callable by proxy admins, or by team admins with `KEY_UPDATE` permission. */
1225
+ export const bulkUpdateTeamKeysTeamKeyBulkUpdatePost = /*@__PURE__*/ API.make(() => ({
1226
+ input: BulkUpdateTeamKeysTeamKeyBulkUpdatePostRequest,
1227
+ output: BulkUpdateKeyResponse,
1228
+ errors: [UnprocessableEntity],
1229
+ protocol: LitellmProtocol,
1230
+ retry: Retry.Retry,
1231
+ }));
1232
+ /** Delete Key Fn Delete a key from the key management system. Parameters:: - keys (List[str]): A list of keys or hashed keys to delete. Example {"keys": ["sk-QWrxEynunsNpV1zT48HIrw", "837e17519f44683334df5291321d97b8bf1098cd490e49e215f6fea935aa28be"]} - key_aliases (List[str]): A list of key aliases to delete. Can be passed instead of `keys`.Example {"key_aliases": ["alias1", "alias2"]} Returns: - deleted_keys (List[str]): A list of deleted keys. Example {"deleted_keys": ["sk-QWrxEynunsNpV1zT48HIrw", "837e17519f44683334df5291321d97b8bf1098cd490e49e215f6fea935aa28be"]} Example: ```bash curl --location 'http://0.0.0.0:4000/key/delete' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "keys": ["sk-QWrxEynunsNpV1zT48HIrw"] }' ``` Raises: HTTPException: If an error occurs during key deletion. */
1233
+ export const deleteKeyFnKeyDeletePost = /*@__PURE__*/ API.make(() => ({
1234
+ input: DeleteKeyFnKeyDeletePostRequest,
1235
+ output: DeleteKeyFnKeyDeletePostResponse,
1236
+ errors: [BadRequest, UnprocessableEntity],
1237
+ protocol: LitellmProtocol,
1238
+ retry: Retry.Retry,
1239
+ }));
1240
+ /** Generate Key Fn Generate an API key based on the provided data. Docs: https://docs.litellm.ai/docs/proxy/virtual_keys Parameters: - duration: Optional[str] - Specify the length of time the token is valid for. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"). - key_alias: Optional[str] - User defined key alias - key: Optional[str] - User defined key value. Must start with 'sk-' and be at least 16 characters long. If not set, a 16-digit unique sk-key is created for you. - team_id: Optional[str] - The team id of the key - user_id: Optional[str] - The user id of the key - agent_id: Optional[str] - The agent id associated with the key. - organization_id: Optional[str] - The organization id of the key. If not set, and team_id is set, the organization id will be the same as the team id. If conflict, an error will be raised. - project_id: Optional[str] - The project id of the key. When set, models and max_budget are validated against the project's limits. - budget_id: Optional[str] - The budget id associated with the key. Created by calling `/budget/new`. - models: Optional[list] - Model_name's a user is allowed to call. (if empty, key is allowed to call all models) - aliases: Optional[dict] - Any alias mappings, on top of anything in the config.yaml model list. - https://docs.litellm.ai/docs/proxy/virtual_keys#managing-auth---upgradedowngrade-models - config: Optional[dict] - any key-specific configs, overrides config in config.yaml - spend: Optional[int] - Amount spent by key. Default is 0. Will be updated by proxy whenever key is used. https://docs.litellm.ai/docs/proxy/virtual_keys#managing-auth---tracking-spend - send_invite_email: Optional[bool] - Whether to send an invite email to the user_id, with the generate key - max_budget: Optional[float] - Specify max budget for a given key. - budget_duration: Optional[str] - Budget is reset at the end of specified duration. If not set, budget is never reset. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"). - max_parallel_requests: Optional[int] - Rate limit a user based on the number of parallel requests. Raises 429 error, if user's parallel requests > x. - metadata: Optional[dict] - Metadata for key, store information for key. Example metadata = {"team": "core-infra", "app": "app2", "email": "ishaan@berri.ai" } - guardrails: Optional[List[str]] - List of active guardrails for the key - policies: Optional[List[str]] - List of policy names to apply to the key. Policies define guardrails, conditions, and inheritance rules. - disable_global_guardrails: Optional[bool] - Whether to disable global guardrails for the key. - throttle_on_budget_exceeded: Optional[bool] - When the key exceeds its max_budget, throttle its tpm/rpm to the global budget_exceeded_throttle_percentage instead of blocking the key entirely. - enable_prompt_caching: Optional[bool] - Auto-inject prompt caching breakpoints (Anthropic cache_control markers) on requests made with this key. Anthropic and Bedrock Claude models only. - permissions: Optional[dict] - key-specific permissions. Currently just used for turning off pii masking (if connected). Example - {"pii": false} - model_max_budget: Optional[Dict[str, BudgetConfig]] - Model-specific budgets {"gpt-4": {"budget_limit": 0.0005, "time_period": "30d"}}}. IF null or {} then no model specific budget. - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - model_rpm_limit: Optional[dict] - key-specific model rpm limit. Example - {"text-davinci-002": 1000, "gpt-3.5-turbo": 1000}. IF null or {} then no model specific rpm limit. - model_tpm_limit: Optional[dict] - key-specific model tpm limit. Example - {"text-davinci-002": 1000, "gpt-3.5-turbo": 1000}. IF null or {} then no model specific tpm limit. - default_estimated_output_tokens: Optional[int] - Proxy admin only. Expected output tokens reserved for TPM limiting when a request omits max_tokens. Positive integer. Falls back to the team setting, then to the built-in estimate. - default_estimated_output_tokens_per_model: Optional[dict] - Proxy admin only. Per-model override of the above. Example - {"gpt-4": 4096, "gpt-3.5-turbo": 1024}. Takes precedence over the key-wide value. - mcp_rpm_limit: Optional[dict] - key-specific per-MCP-server rpm limit, keyed by MCP server name (alias if set, else the configured name). Example - {"github": 100, "slack": 200}. IF null or {} then no MCP-specific rpm limit. - tag_rpm_limit: Optional[dict] - key-specific per-request-tag rpm limit, keyed by request tag. Example - {"cell-1": 1000, "cell-2": 500}. Each tag gets an independent counter; requests whose tag is absent fall back to the key-level rpm limit. - tpm_limit_type: Optional[str] - Type of tpm limit. Options: "best_effort_throughput" (no error if we're overallocating tpm), "guaranteed_throughput" (raise an error if we're overallocating tpm), "dynamic" (dynamically exceed limit when no 429 errors). Defaults to "best_effort_throughput". - rpm_limit_type: Optional[str] - Type of rpm limit. Options: "best_effort_throughput" (no error if we're overallocating rpm), "guaranteed_throughput" (raise an error if we're overallocating rpm), "dynamic" (dynamically exceed limit when no 429 errors). Defaults to "best_effort_throughput". - allowed_cache_controls: Optional[list] - List of allowed cache control values. Example - ["no-cache", "no-store"]. See all values - https://docs.litellm.ai/docs/proxy/caching#turn-on--off-caching-per-request - blocked: Optional[bool] - Whether the key is blocked. - rpm_limit: Optional[int] - Specify rpm limit for a given key (Requests per minute) - tpm_limit: Optional[int] - Specify tpm limit for a given key (Tokens per minute) - soft_budget: Optional[float] - Specify soft budget for a given key. Will trigger a slack alert when this soft budget is reached. - tags: Optional[List[str]] - Tags for [tracking spend](https://litellm.vercel.app/docs/proxy/enterprise#tracking-spend-for-custom-tags) and/or doing [tag-based routing](https://litellm.vercel.app/docs/proxy/tag_routing). - prompts: Optional[List[str]] - List of prompts that the key is allowed to use. - enforced_params: Optional[List[str]] - List of enforced params for the key (Enterprise only). [Docs](https://docs.litellm.ai/docs/proxy/enterprise#enforce-required-params-for-llm-requests) - prompts: Optional[List[str]] - List of prompts that the key is allowed to use. - allowed_routes: Optional[list] - List of allowed routes for the key. Store the actual route or store a wildcard pattern for a set of routes. Example - ["/chat/completions", "/embeddings", "/keys/*"] - allowed_passthrough_routes: Optional[list] - List of allowed pass through endpoints for the key. Store the actual endpoint or store a wildcard pattern for a set of endpoints. Example - ["/my-custom-endpoint"]. Use this instead of allowed_routes, if you just want to specify which pass through endpoints the key can access, without specifying the routes. If allowed_routes is specified, allowed_pass_through_endpoints is ignored. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - key-specific object permission. Example - {"vector_stores": ["vector_store_1", "vector_store_2"], "agents": ["agent_1", "agent_2"], "agent_access_groups": ["dev_group"]}. IF null or {} then no object permission. - key_type: Optional[str] - Type of key that determines default allowed routes. Options: "llm_api" (can call LLM API routes), "management" (can call management routes), "read_only" (can only call info/read routes), "default" (uses default allowed routes). Defaults to "default". - prompts: Optional[List[str]] - List of allowed prompts for the key. If specified, the key will only be able to use these specific prompts. - auto_rotate: Optional[bool] - Whether this key should be automatically rotated (regenerated) - rotation_interval: Optional[str] - How often to auto-rotate this key (e.g., '30s', '30m', '30h', '30d'). Required if auto_rotate=True. - allowed_vector_store_indexes: Optional[List[dict]] - List of allowed vector store indexes for the key. Example - [{"index_name": "my-index", "index_permissions": ["write", "read"]}]. If specified, the key will only be able to use these specific vector store indexes. Create index, using `/v1/indexes` endpoint. - router_settings: Optional[UpdateRouterConfig] - key-specific router settings. Example - {"model_group_retry_policy": {"gpt-4": {"RateLimitErrorRetries": 5}}}. IF null or {} then no router settings. - access_group_ids: Optional[List[str]] - List of access group IDs to associate with the key. Access groups define which models a key can access. Example - ["access_group_1", "access_group_2"]. - budget_limits: Optional[list] - List of concurrent budget windows for the key. Each window specifies a budget_limit, time_period, and optional budget_duration. Example - [{"budget_limit": 10.0, "time_period": "1d"}, {"budget_limit": 50.0, "time_period": "7d"}]. Examples: 1. Allow users to turn on/off pii masking ```bash curl --location 'http://0.0.0.0:4000/key/generate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "permissions": {"allow_pii_controls": true} }' ``` Returns: - key: (str) The generated api key - expires: (datetime) Datetime object for when key expires. - user_id: (str) Unique user id - used for tracking spend across multiple keys for same user id. */
1241
+ export const generateKeyFnKeyGeneratePost = /*@__PURE__*/ API.make(() => ({
1242
+ input: GenerateKeyFnKeyGeneratePostRequest,
1243
+ output: GenerateKeyResponse,
1244
+ errors: [BadRequest, Forbidden, UnprocessableEntity],
1245
+ protocol: LitellmProtocol,
1246
+ retry: Retry.Retry,
1247
+ }));
1248
+ /** Generate Service Account Key Fn Generate a Service Account API key based on the provided data. This key does not belong to any user. It belongs to the team. Why use a service account key? - Prevent key from being deleted when user is deleted. - Apply team limits, not team member limits to key. Docs: https://docs.litellm.ai/docs/proxy/virtual_keys Parameters: - duration: Optional[str] - Specify the length of time the token is valid for. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"). - key_alias: Optional[str] - User defined key alias - key: Optional[str] - User defined key value. Must start with 'sk-' and be at least 16 characters long. If not set, a 16-digit unique sk-key is created for you. - team_id: Optional[str] - The team id of the key - user_id: Optional[str] - [NON-FUNCTIONAL] THIS WILL BE IGNORED. The user id of the key - budget_id: Optional[str] - The budget id associated with the key. Created by calling `/budget/new`. - models: Optional[list] - Model_name's a user is allowed to call. (if empty, key is allowed to call all models) - aliases: Optional[dict] - Any alias mappings, on top of anything in the config.yaml model list. - https://docs.litellm.ai/docs/proxy/virtual_keys#managing-auth---upgradedowngrade-models - config: Optional[dict] - any key-specific configs, overrides config in config.yaml - spend: Optional[int] - Amount spent by key. Default is 0. Will be updated by proxy whenever key is used. https://docs.litellm.ai/docs/proxy/virtual_keys#managing-auth---tracking-spend - send_invite_email: Optional[bool] - Whether to send an invite email to the user_id, with the generate key - max_budget: Optional[float] - Specify max budget for a given key. - budget_duration: Optional[str] - Budget is reset at the end of specified duration. If not set, budget is never reset. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"). - max_parallel_requests: Optional[int] - Rate limit a user based on the number of parallel requests. Raises 429 error, if user's parallel requests > x. - metadata: Optional[dict] - Metadata for key, store information for key. Example metadata = {"team": "core-infra", "app": "app2", "email": "ishaan@berri.ai" } - guardrails: Optional[List[str]] - List of active guardrails for the key - permissions: Optional[dict] - key-specific permissions. Currently just used for turning off pii masking (if connected). Example - {"pii": false} - model_max_budget: Optional[Dict[str, BudgetConfig]] - Model-specific budgets {"gpt-4": {"budget_limit": 0.0005, "time_period": "30d"}}}. IF null or {} then no model specific budget. - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - model_rpm_limit: Optional[dict] - key-specific model rpm limit. Example - {"text-davinci-002": 1000, "gpt-3.5-turbo": 1000}. IF null or {} then no model specific rpm limit. - model_tpm_limit: Optional[dict] - key-specific model tpm limit. Example - {"text-davinci-002": 1000, "gpt-3.5-turbo": 1000}. IF null or {} then no model specific tpm limit. - default_estimated_output_tokens: Optional[int] - Proxy admin only. Expected output tokens reserved for TPM limiting when a request omits max_tokens. Positive integer. Falls back to the team setting, then to the built-in estimate. - default_estimated_output_tokens_per_model: Optional[dict] - Proxy admin only. Per-model override of the above. Example - {"gpt-4": 4096, "gpt-3.5-turbo": 1024}. Takes precedence over the key-wide value. - mcp_rpm_limit: Optional[dict] - key-specific per-MCP-server rpm limit, keyed by MCP server name (alias if set, else the configured name). Example - {"github": 100, "slack": 200}. IF null or {} then no MCP-specific rpm limit. - tpm_limit_type: Optional[str] - TPM rate limit type - "best_effort_throughput", "guaranteed_throughput", or "dynamic" - rpm_limit_type: Optional[str] - RPM rate limit type - "best_effort_throughput", "guaranteed_throughput", or "dynamic" - allowed_cache_controls: Optional[list] - List of allowed cache control values. Example - ["no-cache", "no-store"]. See all values - https://docs.litellm.ai/docs/proxy/caching#turn-on--off-caching-per-request - blocked: Optional[bool] - Whether the key is blocked. - rpm_limit: Optional[int] - Specify rpm limit for a given key (Requests per minute) - tpm_limit: Optional[int] - Specify tpm limit for a given key (Tokens per minute) - soft_budget: Optional[float] - Specify soft budget for a given key. Will trigger a slack alert when this soft budget is reached. - tags: Optional[List[str]] - Tags for [tracking spend](https://litellm.vercel.app/docs/proxy/enterprise#tracking-spend-for-custom-tags) and/or doing [tag-based routing](https://litellm.vercel.app/docs/proxy/tag_routing). - enforced_params: Optional[List[str]] - List of enforced params for the key (Enterprise only). [Docs](https://docs.litellm.ai/docs/proxy/enterprise#enforce-required-params-for-llm-requests) - allowed_routes: Optional[list] - List of allowed routes for the key. Store the actual route or store a wildcard pattern for a set of routes. Example - ["/chat/completions", "/embeddings", "/keys/*"] - object_permission: Optional[LiteLLM_ObjectPermissionBase] - key-specific object permission. Example - {"vector_stores": ["vector_store_1", "vector_store_2"], "agents": ["agent_1", "agent_2"], "agent_access_groups": ["dev_group"]}. IF null or {} then no object permission. Examples: - allowed_vector_store_indexes: Optional[List[dict]] - List of allowed vector store indexes for the key. Example - [{"index_name": "my-index", "index_permissions": ["write", "read"]}]. If specified, the key will only be able to use these specific vector store indexes. Create index, using `/v1/indexes` endpoint. 1. Allow users to turn on/off pii masking ```bash curl --location 'http://0.0.0.0:4000/key/generate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "permissions": {"allow_pii_controls": true} }' ``` Returns: - key: (str) The generated api key - expires: (datetime) Datetime object for when key expires. - user_id: (str) Unique user id - used for tracking spend across multiple keys for same user id. */
1249
+ export const generateServiceAccountKeyFnKeyServiceAccountGeneratePost = /*@__PURE__*/ API.make(() => ({
1250
+ input: GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostRequest,
1251
+ output: GenerateServiceAccountKeyFnKeyServiceAccountGeneratePostResponse,
1252
+ errors: [UnprocessableEntity],
1253
+ protocol: LitellmProtocol,
1254
+ retry: Retry.Retry,
1255
+ }));
1256
+ /** Info Key Fn Retrieve information about a key. Parameters: - key: str | None (query parameter) - The key to look up. Accepts the plaintext key or its hash. Defaults to the key in the Authorization header. Returns: - key: str - The key that was looked up, echoed back as it was passed in - info: dict - The key's row, minus the hashed token - key_alias: str | None - User-friendly key alias - spend: float - Amount spent by the key. When budget_duration is set this covers only the current budget window, not the key's lifetime - max_budget: float | None - Max budget for the key, enforced against spend - budget_duration: str | None - Budget reset period ("30d", "1h", etc.) - budget_reset_at: datetime | None - When the current budget window ends and spend is next reset to 0, not when it was last reset. Reset times snap to standard boundaries in the configured timezone (30d and 1mo land on the 1st of the month, 7d on Monday, 1h on the hour), so subtracting budget_duration from it does not give the window's start - model_max_budget: dict - Per-model budgets, e.g. {"gpt-4": {"budget_limit": 0.0005, "time_period": "30d"}} - model_max_budget_usage: dict | None - Current-window spend per model, present only when the key has per-model budgets - models: list - Model_name's the key is allowed to call - tpm_limit / rpm_limit: int | None - Tokens and requests per minute limits - metadata: dict - Metadata for the key, e.g. {"team": "core-infra"} - blocked: bool | None - Whether the key is blocked - expires: datetime | None - When the key stops authenticating requests - last_active: datetime | None - When the key was last used - object_permission: dict | None - Resolved vector store / MCP permissions when the key has an object_permission_id Example Curl: ``` curl -X GET "http://0.0.0.0:4000/key/info?key=sk-test-example-key-123" -H "Authorization: Bearer sk-1234" ``` Example Curl - if no key is passed, it will use the Key Passed in Authorization Header ``` curl -X GET "http://0.0.0.0:4000/key/info" -H "Authorization: Bearer sk-test-example-key-123" ``` */
1257
+ export const getInfoKeyFnKeyInfo = /*@__PURE__*/ API.make(() => ({
1258
+ input: GetInfoKeyFnKeyInfoRequest,
1259
+ output: GetInfoKeyFnKeyInfoResponse,
1260
+ errors: [UnprocessableEntity],
1261
+ protocol: LitellmProtocol,
1262
+ retry: Retry.Retry,
1263
+ }));
1264
+ /** Key Aliases Lists key aliases with pagination and optional search. Non-admin users only see aliases for keys they own or keys belonging to their teams. Returns: { "aliases": List[str], "total_count": int, "current_page": int, "total_pages": int, "size": int, } */
1265
+ export const getKeyAliasesKeyAlias = /*@__PURE__*/ API.make(() => ({
1266
+ input: GetKeyAliasesKeyAliasRequest,
1267
+ output: GetKeyAliasesKeyAliasResponse,
1268
+ errors: [UnprocessableEntity],
1269
+ protocol: LitellmProtocol,
1270
+ retry: Retry.Retry,
1271
+ }));
1272
+ /** List Keys List all keys for a given user / team / organization. Parameters: expand: Optional[List[str]] - Expand related objects (e.g. 'user' to include user information) status: Optional[str] - Filter by status. Currently supports "deleted" to query deleted keys. Returns: { "keys": List[str] or List[UserAPIKeyAuth], "total_count": int, "current_page": int, "total_pages": int, } When expand includes "user", each key object will include a "user" field with the associated user object. Note: When expand=user is specified, full key objects are returned regardless of the return_full_object parameter. */
1273
+ export const listKeysKeyListGet = /*@__PURE__*/ API.make(() => ({
1274
+ input: ListKeysKeyListGetRequest,
1275
+ output: KeyListResponseObject,
1276
+ errors: [BadRequest, UnprocessableEntity],
1277
+ protocol: LitellmProtocol,
1278
+ retry: Retry.Retry,
1279
+ }));
1280
+ /** Block Key Block an Virtual key from making any requests. Parameters: - key: str - The key to block. Can be either the unhashed key (sk-...) or the hashed key value Example: ```bash curl --location 'http://0.0.0.0:4000/key/block' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "key": "sk-Fn8Ej39NxjAXrvpUGKghGw" }' ``` Note: This is an admin-only endpoint. Only proxy admins, team admins, or org admins can block keys. */
1281
+ export const postBlockKeyKeyBlock = /*@__PURE__*/ API.make(() => ({
1282
+ input: PostBlockKeyKeyBlockRequest,
1283
+ output: PostBlockKeyKeyBlockResponse,
1284
+ errors: [UnprocessableEntity],
1285
+ protocol: LitellmProtocol,
1286
+ retry: Retry.Retry,
1287
+ }));
1288
+ /** Info Key Fn V2 Retrieve information about a list of keys. **New endpoint**. Currently admin only. Parameters: keys: Optional[list] = body parameter representing the key(s) in the request user_api_key_dict: UserAPIKeyAuth = Dependency representing the user's API key Returns: Dict containing the key and its associated information Example Curl: ``` curl -X GET "http://0.0.0.0:4000/key/info" -H "Authorization: Bearer sk-1234" -d {"keys": ["sk-1", "sk-2", "sk-3"]} ``` */
1289
+ export const postInfoKeyFnV2V2KeyInfo = /*@__PURE__*/ API.make(() => ({
1290
+ input: PostInfoKeyFnV2V2KeyInfoRequest,
1291
+ output: PostInfoKeyFnV2V2KeyInfoResponse,
1292
+ errors: [UnprocessableEntity],
1293
+ protocol: LitellmProtocol,
1294
+ retry: Retry.Retry,
1295
+ }));
1296
+ /** Key Health Check the health of the key Checks: - If key based logging is configured correctly - sends a test log Usage Pass the key in the request header ```bash curl -X POST "http://localhost:4000/key/health" -H "Authorization: Bearer sk-1234" -H "Content-Type: application/json" ``` Response when logging callbacks are setup correctly: ```json { "key": "healthy", "logging_callbacks": { "callbacks": [ "gcs_bucket" ], "status": "healthy", "details": "No logger exceptions triggered, system is healthy. Manually check if logs were sent to ['gcs_bucket']" } } ``` Response when logging callbacks are not setup correctly: ```json { "key": "unhealthy", "logging_callbacks": { "callbacks": [ "gcs_bucket" ], "status": "unhealthy", "details": "Logger exceptions triggered, system is unhealthy: Failed to load vertex credentials. Check to see if credentials containing partial/invalid information." } } ``` */
1297
+ export const postKeyHealthKeyHealth = /*@__PURE__*/ API.make(() => ({
1298
+ input: PostKeyHealthKeyHealthRequest,
1299
+ output: KeyHealthResponse,
1300
+ errors: [],
1301
+ protocol: LitellmProtocol,
1302
+ retry: Retry.Retry,
1303
+ }));
1304
+ /** Regenerate Key Fn Regenerate an existing API key while optionally updating its parameters. Parameters: - key: str (path parameter) - The key to regenerate - data: Optional[RegenerateKeyRequest] - Request body containing optional parameters to update - key: Optional[str] - The key to regenerate. - new_master_key: Optional[str] - The new master key to use, if key is the master key. - new_key: Optional[str] - The new key to use, if key is not the master key. Must start with 'sk-' and be at least 16 characters long. If both set, new_master_key will be used. - key_alias: Optional[str] - User-friendly key alias - user_id: Optional[str] - User ID associated with key - team_id: Optional[str] - Team ID associated with key - models: Optional[list] - Model_name's a user is allowed to call - tags: Optional[List[str]] - Tags for organizing keys (Enterprise only) - spend: Optional[float] - Amount spent by key - max_budget: Optional[float] - Max budget for key - model_max_budget: Optional[Dict[str, BudgetConfig]] - Model-specific budgets {"gpt-4": {"budget_limit": 0.0005, "time_period": "30d"}} - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - budget_duration: Optional[str] - Budget reset period ("30d", "1h", etc.) - soft_budget: Optional[float] - Soft budget limit (warning vs. hard stop). Will trigger a slack alert when this soft budget is reached. - max_parallel_requests: Optional[int] - Rate limit for parallel requests - metadata: Optional[dict] - Metadata for key. Example {"team": "core-infra", "app": "app2"} - tpm_limit: Optional[int] - Tokens per minute limit - rpm_limit: Optional[int] - Requests per minute limit - model_rpm_limit: Optional[dict] - Model-specific RPM limits {"gpt-4": 100, "claude-v1": 200} - model_tpm_limit: Optional[dict] - Model-specific TPM limits {"gpt-4": 100000, "claude-v1": 200000} - allowed_cache_controls: Optional[list] - List of allowed cache control values - duration: Optional[str] - Key validity duration ("30d", "1h", etc.) - permissions: Optional[dict] - Key-specific permissions - guardrails: Optional[List[str]] - List of active guardrails for the key - blocked: Optional[bool] - Whether the key is blocked - grace_period: Optional[str] - Duration to keep old key valid after rotation (e.g. "24h", "2d"). Omitted = immediate revoke. Env: LITELLM_KEY_ROTATION_GRACE_PERIOD Returns: - GenerateKeyResponse containing the new key and its updated parameters Example: ```bash curl --location --request POST 'http://localhost:4000/key/sk-1234/regenerate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "max_budget": 100, "metadata": {"team": "core-infra"}, "models": ["gpt-4", "gpt-3.5-turbo"] }' ``` Note: This is an Enterprise feature. It requires a premium license to use. */
1305
+ export const regenerateKeyFnKeyKeyRegeneratePost = /*@__PURE__*/ API.make(() => ({
1306
+ input: RegenerateKeyFnKeyKeyRegeneratePostRequest,
1307
+ output: RegenerateKeyFnKeyKeyRegeneratePostResponse,
1308
+ errors: [UnprocessableEntity],
1309
+ protocol: LitellmProtocol,
1310
+ retry: Retry.Retry,
1311
+ }));
1312
+ /** Regenerate Key Fn Regenerate an existing API key while optionally updating its parameters. Parameters: - key: str (path parameter) - The key to regenerate - data: Optional[RegenerateKeyRequest] - Request body containing optional parameters to update - key: Optional[str] - The key to regenerate. - new_master_key: Optional[str] - The new master key to use, if key is the master key. - new_key: Optional[str] - The new key to use, if key is not the master key. Must start with 'sk-' and be at least 16 characters long. If both set, new_master_key will be used. - key_alias: Optional[str] - User-friendly key alias - user_id: Optional[str] - User ID associated with key - team_id: Optional[str] - Team ID associated with key - models: Optional[list] - Model_name's a user is allowed to call - tags: Optional[List[str]] - Tags for organizing keys (Enterprise only) - spend: Optional[float] - Amount spent by key - max_budget: Optional[float] - Max budget for key - model_max_budget: Optional[Dict[str, BudgetConfig]] - Model-specific budgets {"gpt-4": {"budget_limit": 0.0005, "time_period": "30d"}} - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - budget_duration: Optional[str] - Budget reset period ("30d", "1h", etc.) - soft_budget: Optional[float] - Soft budget limit (warning vs. hard stop). Will trigger a slack alert when this soft budget is reached. - max_parallel_requests: Optional[int] - Rate limit for parallel requests - metadata: Optional[dict] - Metadata for key. Example {"team": "core-infra", "app": "app2"} - tpm_limit: Optional[int] - Tokens per minute limit - rpm_limit: Optional[int] - Requests per minute limit - model_rpm_limit: Optional[dict] - Model-specific RPM limits {"gpt-4": 100, "claude-v1": 200} - model_tpm_limit: Optional[dict] - Model-specific TPM limits {"gpt-4": 100000, "claude-v1": 200000} - allowed_cache_controls: Optional[list] - List of allowed cache control values - duration: Optional[str] - Key validity duration ("30d", "1h", etc.) - permissions: Optional[dict] - Key-specific permissions - guardrails: Optional[List[str]] - List of active guardrails for the key - blocked: Optional[bool] - Whether the key is blocked - grace_period: Optional[str] - Duration to keep old key valid after rotation (e.g. "24h", "2d"). Omitted = immediate revoke. Env: LITELLM_KEY_ROTATION_GRACE_PERIOD Returns: - GenerateKeyResponse containing the new key and its updated parameters Example: ```bash curl --location --request POST 'http://localhost:4000/key/sk-1234/regenerate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "max_budget": 100, "metadata": {"team": "core-infra"}, "models": ["gpt-4", "gpt-3.5-turbo"] }' ``` Note: This is an Enterprise feature. It requires a premium license to use. */
1313
+ export const regenerateKeyFnKeyRegeneratePost = /*@__PURE__*/ API.make(() => ({
1314
+ input: RegenerateKeyFnKeyRegeneratePostRequest,
1315
+ output: RegenerateKeyFnKeyRegeneratePostResponse,
1316
+ errors: [UnprocessableEntity],
1317
+ protocol: LitellmProtocol,
1318
+ retry: Retry.Retry,
1319
+ }));
1320
+ /** Reset Key Spend Fn */
1321
+ export const resetKeySpendFnKeyKeyResetSpendPost = /*@__PURE__*/ API.make(() => ({
1322
+ input: ResetKeySpendFnKeyKeyResetSpendPostRequest,
1323
+ output: ResetKeySpendFnKeyKeyResetSpendPostResponse,
1324
+ errors: [UnprocessableEntity],
1325
+ protocol: LitellmProtocol,
1326
+ retry: Retry.Retry,
1327
+ }));
1328
+ /** Unblock Key Unblock a Virtual key to allow it to make requests again. Parameters: - key: str - The key to unblock. Can be either the unhashed key (sk-...) or the hashed key value Example: ```bash curl --location 'http://0.0.0.0:4000/key/unblock' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "key": "sk-Fn8Ej39NxjAXrvpUGKghGw" }' ``` Note: This is an admin-only endpoint. Only proxy admins, team admins, or org admins can unblock keys. */
1329
+ export const unblockKeyKeyUnblockPost = /*@__PURE__*/ API.make(() => ({
1330
+ input: UnblockKeyKeyUnblockPostRequest,
1331
+ output: UnblockKeyKeyUnblockPostResponse,
1332
+ errors: [UnprocessableEntity],
1333
+ protocol: LitellmProtocol,
1334
+ retry: Retry.Retry,
1335
+ }));
1336
+ /** Update Key Fn Update an existing API key's parameters. Parameters: - key: Optional[str] - The key to update. Either key or key_alias must be provided. - key_alias: Optional[str] - User-friendly key alias. If key is omitted, also identifies the key to update (must match exactly one key, same as /key/delete's key_aliases) - user_id: Optional[str] - User ID associated with key - team_id: Optional[str] - Team ID associated with key - agent_id: Optional[str] - The agent id associated with the key. - organization_id: Optional[str] - The organization id of the key. - budget_id: Optional[str] - The budget id associated with the key. Created by calling `/budget/new`. - models: Optional[list] - Model_name's a user is allowed to call - tags: Optional[List[str]] - Tags for organizing keys (Enterprise only) - prompts: Optional[List[str]] - List of prompts that the key is allowed to use. - enforced_params: Optional[List[str]] - List of enforced params for the key (Enterprise only). [Docs](https://docs.litellm.ai/docs/proxy/enterprise#enforce-required-params-for-llm-requests) - spend: Optional[float] - Amount spent by key - max_budget: Optional[float] - Max budget for key - model_max_budget: Optional[Dict[str, BudgetConfig]] - Model-specific budgets {"gpt-4": {"budget_limit": 0.0005, "time_period": "30d"}} - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - budget_duration: Optional[str] - Budget reset period ("30d", "1h", etc.) - soft_budget: Optional[float] - [TODO] Soft budget limit (warning vs. hard stop). Will trigger a slack alert when this soft budget is reached. - max_parallel_requests: Optional[int] - Rate limit for parallel requests - metadata: Optional[dict] - Metadata for key. Example {"team": "core-infra", "app": "app2"} - tpm_limit: Optional[int] - Tokens per minute limit - rpm_limit: Optional[int] - Requests per minute limit - model_rpm_limit: Optional[dict] - Model-specific RPM limits {"gpt-4": 100, "claude-v1": 200} - mcp_rpm_limit: Optional[dict] - Per-MCP-server RPM limits, keyed by MCP server name {"github": 100, "slack": 200} - tag_rpm_limit: Optional[dict] - Per-request-tag RPM limits, keyed by request tag {"cell-1": 1000, "cell-2": 500}. Each tag gets an independent counter; absent tags fall back to the key-level rpm limit. - model_tpm_limit: Optional[dict] - Model-specific TPM limits {"gpt-4": 100000, "claude-v1": 200000} - default_estimated_output_tokens: Optional[int] - Proxy admin only. Expected output tokens reserved for TPM limiting when a request omits max_tokens. Positive integer. - default_estimated_output_tokens_per_model: Optional[dict] - Proxy admin only. Per-model override of the above {"gpt-4": 4096, "gpt-3.5-turbo": 1024} - tpm_limit_type: Optional[str] - TPM rate limit type - "best_effort_throughput", "guaranteed_throughput", or "dynamic" - rpm_limit_type: Optional[str] - RPM rate limit type - "best_effort_throughput", "guaranteed_throughput", or "dynamic" - allowed_cache_controls: Optional[list] - List of allowed cache control values - duration: Optional[str] - Key validity duration ("30d", "1h", etc.), null to never expire, or "-1" to never expire (deprecated, use null) - permissions: Optional[dict] - Key-specific permissions - send_invite_email: Optional[bool] - Send invite email to user_id - guardrails: Optional[List[str]] - List of active guardrails for the key - policies: Optional[List[str]] - List of policy names to apply to the key. Policies define guardrails, conditions, and inheritance rules. - disable_global_guardrails: Optional[bool] - Whether to disable global guardrails for the key. - throttle_on_budget_exceeded: Optional[bool] - When the key exceeds its max_budget, throttle its tpm/rpm to the global budget_exceeded_throttle_percentage instead of blocking the key entirely. - enable_prompt_caching: Optional[bool] - Auto-inject prompt caching breakpoints (Anthropic cache_control markers) on requests made with this key. Anthropic and Bedrock Claude models only. - prompts: Optional[List[str]] - List of prompts that the key is allowed to use. - blocked: Optional[bool] - Whether the key is blocked - aliases: Optional[dict] - Model aliases for the key - [Docs](https://litellm.vercel.app/docs/proxy/virtual_keys#model-aliases) - config: Optional[dict] - [DEPRECATED PARAM] Key-specific config. - temp_budget_increase: Optional[float] - Temporary budget increase for the key (Enterprise only). - temp_budget_expiry: Optional[str] - Expiry time for the temporary budget increase (Enterprise only). - allowed_routes: Optional[list] - List of allowed routes for the key. Store the actual route or store a wildcard pattern for a set of routes. Example - ["/chat/completions", "/embeddings", "/keys/*"] - allowed_passthrough_routes: Optional[list] - List of allowed pass through routes for the key. Store the actual route or store a wildcard pattern for a set of routes. Example - ["/my-custom-endpoint"]. Use this instead of allowed_routes, if you just want to specify which pass through routes the key can access, without specifying the routes. If allowed_routes is specified, allowed_passthrough_routes is ignored. - prompts: Optional[List[str]] - List of allowed prompts for the key. If specified, the key will only be able to use these specific prompts. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - key-specific object permission. Example - {"vector_stores": ["vector_store_1", "vector_store_2"], "agents": ["agent_1", "agent_2"], "agent_access_groups": ["dev_group"]}. IF null or {} then no object permission. - auto_rotate: Optional[bool] - Whether this key should be automatically rotated - rotation_interval: Optional[str] - How often to rotate this key (e.g., '30d', '90d'). Required if auto_rotate=True - allowed_vector_store_indexes: Optional[List[dict]] - List of allowed vector store indexes for the key. Example - [{"index_name": "my-index", "index_permissions": ["write", "read"]}]. If specified, the key will only be able to use these specific vector store indexes. Create index, using `/v1/indexes` endpoint. - router_settings: Optional[UpdateRouterConfig] - key-specific router settings. Example - {"model_group_retry_policy": {"gpt-4": {"RateLimitErrorRetries": 5}}}. IF null or {} then no router settings. - access_group_ids: Optional[List[str]] - List of access group IDs to associate with the key. Access groups define which models a key can access. Example - ["access_group_1", "access_group_2"]. - budget_limits: Optional[list] - List of concurrent budget windows for the key. Each window specifies a budget_limit, time_period, and optional budget_duration. Example - [{"budget_limit": 10.0, "time_period": "1d"}, {"budget_limit": 50.0, "time_period": "7d"}]. Example: ```bash curl --location 'http://0.0.0.0:4000/key/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "key": "sk-1234", "key_alias": "my-key", "user_id": "user-1234", "team_id": "team-1234", "max_budget": 100, "metadata": {"any_key": "any-val"}, }' ``` */
1337
+ export const updateKeyFnKeyUpdatePost = /*@__PURE__*/ API.make(() => ({
1338
+ input: UpdateKeyFnKeyUpdatePostRequest,
1339
+ output: UpdateKeyFnKeyUpdatePostResponse,
1340
+ errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
1341
+ protocol: LitellmProtocol,
1342
+ retry: Retry.Retry,
1343
+ }));
1344
+ //# sourceMappingURL=key_management.js.map