@homeflare/distilled-litellm 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/README.md +48 -12
  2. package/dist/services/a2a.js +1 -1
  3. package/dist/services/a2a_registration.js +1 -1
  4. package/dist/services/access_groups.d.ts +18 -0
  5. package/dist/services/access_groups.d.ts.map +1 -1
  6. package/dist/services/access_groups.js +15 -1
  7. package/dist/services/access_groups.js.map +1 -1
  8. package/dist/services/adaptive_router.js +1 -1
  9. package/dist/services/agents.d.ts +10 -0
  10. package/dist/services/agents.d.ts.map +1 -1
  11. package/dist/services/agents.js +10 -1
  12. package/dist/services/agents.js.map +1 -1
  13. package/dist/services/alerting.js +1 -1
  14. package/dist/services/anthropic_passthrough.js +1 -1
  15. package/dist/services/anthropic_skills.d.ts +7 -1
  16. package/dist/services/anthropic_skills.d.ts.map +1 -1
  17. package/dist/services/anthropic_skills.js +6 -2
  18. package/dist/services/anthropic_skills.js.map +1 -1
  19. package/dist/services/assistants.js +1 -1
  20. package/dist/services/audio.js +1 -1
  21. package/dist/services/audit_logging.d.ts +2 -0
  22. package/dist/services/audit_logging.d.ts.map +1 -1
  23. package/dist/services/audit_logging.js +2 -1
  24. package/dist/services/audit_logging.js.map +1 -1
  25. package/dist/services/auto_router.d.ts +162 -62
  26. package/dist/services/auto_router.d.ts.map +1 -1
  27. package/dist/services/auto_router.js +92 -31
  28. package/dist/services/auto_router.js.map +1 -1
  29. package/dist/services/batch.js +1 -1
  30. package/dist/services/beta_agents.js +1 -1
  31. package/dist/services/beta_mcp.js +1 -1
  32. package/dist/services/budget_management.d.ts +8 -3
  33. package/dist/services/budget_management.d.ts.map +1 -1
  34. package/dist/services/budget_management.js +7 -4
  35. package/dist/services/budget_management.js.map +1 -1
  36. package/dist/services/budget_spend_tracking.d.ts +24 -5
  37. package/dist/services/budget_spend_tracking.d.ts.map +1 -1
  38. package/dist/services/budget_spend_tracking.js +17 -4
  39. package/dist/services/budget_spend_tracking.js.map +1 -1
  40. package/dist/services/cache_settings.js +1 -1
  41. package/dist/services/caching.js +1 -1
  42. package/dist/services/chat_completions.js +1 -1
  43. package/dist/services/claude_code_marketplace.d.ts +11 -10
  44. package/dist/services/claude_code_marketplace.d.ts.map +1 -1
  45. package/dist/services/claude_code_marketplace.js +8 -6
  46. package/dist/services/claude_code_marketplace.js.map +1 -1
  47. package/dist/services/cloudzero.js +1 -1
  48. package/dist/services/completions.js +1 -1
  49. package/dist/services/compliance.js +1 -1
  50. package/dist/services/config_overrides.d.ts +5 -1
  51. package/dist/services/config_overrides.d.ts.map +1 -1
  52. package/dist/services/config_overrides.js +3 -1
  53. package/dist/services/config_overrides.js.map +1 -1
  54. package/dist/services/config_yaml.d.ts +120 -6
  55. package/dist/services/config_yaml.d.ts.map +1 -1
  56. package/dist/services/config_yaml.js +67 -1
  57. package/dist/services/config_yaml.js.map +1 -1
  58. package/dist/services/containers.d.ts +8 -2
  59. package/dist/services/containers.d.ts.map +1 -1
  60. package/dist/services/containers.js +13 -5
  61. package/dist/services/containers.js.map +1 -1
  62. package/dist/services/coordination_redis_settings.js +1 -1
  63. package/dist/services/cost_tracking.d.ts +91 -1
  64. package/dist/services/cost_tracking.d.ts.map +1 -1
  65. package/dist/services/cost_tracking.js +82 -2
  66. package/dist/services/cost_tracking.js.map +1 -1
  67. package/dist/services/credential_management.d.ts +16 -3
  68. package/dist/services/credential_management.d.ts.map +1 -1
  69. package/dist/services/credential_management.js +13 -4
  70. package/dist/services/credential_management.js.map +1 -1
  71. package/dist/services/customer_management.d.ts +25 -2
  72. package/dist/services/customer_management.d.ts.map +1 -1
  73. package/dist/services/customer_management.js +22 -3
  74. package/dist/services/customer_management.js.map +1 -1
  75. package/dist/services/email_management.js +1 -1
  76. package/dist/services/embeddings.js +1 -1
  77. package/dist/services/evals.js +1 -1
  78. package/dist/services/experimental.js +1 -1
  79. package/dist/services/fallback_management.js +1 -1
  80. package/dist/services/files.js +1 -1
  81. package/dist/services/fine_tuning.js +1 -1
  82. package/dist/services/gemini_agents.js +1 -1
  83. package/dist/services/google_genai_endpoints.js +1 -1
  84. package/dist/services/guardrails.d.ts +80 -7
  85. package/dist/services/guardrails.d.ts.map +1 -1
  86. package/dist/services/guardrails.js +37 -1
  87. package/dist/services/guardrails.js.map +1 -1
  88. package/dist/services/health.d.ts +2 -2
  89. package/dist/services/health.d.ts.map +1 -1
  90. package/dist/services/health.js +2 -2
  91. package/dist/services/health.js.map +1 -1
  92. package/dist/services/images.js +1 -1
  93. package/dist/services/index.d.ts +1 -15
  94. package/dist/services/index.d.ts.map +1 -1
  95. package/dist/services/index.js +1 -15
  96. package/dist/services/index.js.map +1 -1
  97. package/dist/services/internal_user_management.d.ts +227 -39
  98. package/dist/services/internal_user_management.d.ts.map +1 -1
  99. package/dist/services/internal_user_management.js +194 -37
  100. package/dist/services/internal_user_management.js.map +1 -1
  101. package/dist/services/invite_links.js +1 -1
  102. package/dist/services/jwt_mappings.d.ts +3 -0
  103. package/dist/services/jwt_mappings.d.ts.map +1 -1
  104. package/dist/services/jwt_mappings.js +4 -1
  105. package/dist/services/jwt_mappings.js.map +1 -1
  106. package/dist/services/key_management.d.ts +116 -50
  107. package/dist/services/key_management.d.ts.map +1 -1
  108. package/dist/services/key_management.js +95 -40
  109. package/dist/services/key_management.js.map +1 -1
  110. package/dist/services/langfuse_passthrough.js +1 -1
  111. package/dist/services/llm_passthrough.d.ts +1199 -0
  112. package/dist/services/llm_passthrough.d.ts.map +1 -0
  113. package/dist/services/llm_passthrough.js +2150 -0
  114. package/dist/services/llm_passthrough.js.map +1 -0
  115. package/dist/services/llm_utils.js +1 -1
  116. package/dist/services/logging_callbacks.js +1 -1
  117. package/dist/services/mcp_byok_oauth.d.ts +18 -11
  118. package/dist/services/mcp_byok_oauth.d.ts.map +1 -1
  119. package/dist/services/mcp_byok_oauth.js +27 -24
  120. package/dist/services/mcp_byok_oauth.js.map +1 -1
  121. package/dist/services/mcp_discoverable.d.ts +34 -0
  122. package/dist/services/mcp_discoverable.d.ts.map +1 -1
  123. package/dist/services/mcp_discoverable.js +51 -1
  124. package/dist/services/mcp_discoverable.js.map +1 -1
  125. package/dist/services/mcp_management.d.ts +90 -2
  126. package/dist/services/mcp_management.d.ts.map +1 -1
  127. package/dist/services/mcp_management.js +115 -3
  128. package/dist/services/mcp_management.js.map +1 -1
  129. package/dist/services/mcp_rest.d.ts +13 -0
  130. package/dist/services/mcp_rest.d.ts.map +1 -1
  131. package/dist/services/mcp_rest.js +10 -2
  132. package/dist/services/mcp_rest.js.map +1 -1
  133. package/dist/services/memory_management.d.ts +2 -0
  134. package/dist/services/memory_management.d.ts.map +1 -1
  135. package/dist/services/memory_management.js +2 -1
  136. package/dist/services/memory_management.js.map +1 -1
  137. package/dist/services/misc.d.ts +86 -1
  138. package/dist/services/misc.d.ts.map +1 -1
  139. package/dist/services/misc.js +126 -2
  140. package/dist/services/misc.js.map +1 -1
  141. package/dist/services/model_management.d.ts +310 -19
  142. package/dist/services/model_management.d.ts.map +1 -1
  143. package/dist/services/model_management.js +240 -7
  144. package/dist/services/model_management.js.map +1 -1
  145. package/dist/services/moderations.js +1 -1
  146. package/dist/services/ocr.js +1 -1
  147. package/dist/services/open_ai_pass_through.d.ts +35 -90
  148. package/dist/services/open_ai_pass_through.d.ts.map +1 -1
  149. package/dist/services/open_ai_pass_through.js +41 -139
  150. package/dist/services/open_ai_pass_through.js.map +1 -1
  151. package/dist/services/organization_management.d.ts +21 -1
  152. package/dist/services/organization_management.d.ts.map +1 -1
  153. package/dist/services/organization_management.js +20 -2
  154. package/dist/services/organization_management.js.map +1 -1
  155. package/dist/services/plugins.js +1 -1
  156. package/dist/services/policies.d.ts +2 -0
  157. package/dist/services/policies.d.ts.map +1 -1
  158. package/dist/services/policies.js +3 -1
  159. package/dist/services/policies.js.map +1 -1
  160. package/dist/services/policy_engine.d.ts +6 -0
  161. package/dist/services/policy_engine.d.ts.map +1 -1
  162. package/dist/services/policy_engine.js +4 -1
  163. package/dist/services/policy_engine.js.map +1 -1
  164. package/dist/services/project_management.d.ts +15 -0
  165. package/dist/services/project_management.d.ts.map +1 -1
  166. package/dist/services/project_management.js +14 -1
  167. package/dist/services/project_management.js.map +1 -1
  168. package/dist/services/prompts.js +1 -1
  169. package/dist/services/public.d.ts +124 -0
  170. package/dist/services/public.d.ts.map +1 -1
  171. package/dist/services/public.js +158 -1
  172. package/dist/services/public.js.map +1 -1
  173. package/dist/services/rag.js +1 -1
  174. package/dist/services/realtime.d.ts +4 -26
  175. package/dist/services/realtime.d.ts.map +1 -1
  176. package/dist/services/realtime.js +7 -57
  177. package/dist/services/realtime.js.map +1 -1
  178. package/dist/services/rerank.d.ts +72 -0
  179. package/dist/services/rerank.d.ts.map +1 -1
  180. package/dist/services/rerank.js +61 -4
  181. package/dist/services/rerank.js.map +1 -1
  182. package/dist/services/responses.d.ts +30 -0
  183. package/dist/services/responses.d.ts.map +1 -1
  184. package/dist/services/responses.js +59 -1
  185. package/dist/services/responses.js.map +1 -1
  186. package/dist/services/router_settings.js +1 -1
  187. package/dist/services/rust_control_plane.js +1 -1
  188. package/dist/services/scim.d.ts +41 -1
  189. package/dist/services/scim.d.ts.map +1 -1
  190. package/dist/services/scim.js +60 -2
  191. package/dist/services/scim.js.map +1 -1
  192. package/dist/services/search.js +1 -1
  193. package/dist/services/search_tools.js +1 -1
  194. package/dist/services/settings.d.ts +88 -0
  195. package/dist/services/settings.d.ts.map +1 -1
  196. package/dist/services/settings.js +113 -1
  197. package/dist/services/settings.js.map +1 -1
  198. package/dist/services/sso_settings.d.ts +1 -1
  199. package/dist/services/sso_settings.d.ts.map +1 -1
  200. package/dist/services/sso_settings.js +1 -1
  201. package/dist/services/sso_settings.js.map +1 -1
  202. package/dist/services/tag_management.d.ts +7 -0
  203. package/dist/services/tag_management.d.ts.map +1 -1
  204. package/dist/services/tag_management.js +8 -1
  205. package/dist/services/tag_management.js.map +1 -1
  206. package/dist/services/team_management.d.ts +265 -17
  207. package/dist/services/team_management.d.ts.map +1 -1
  208. package/dist/services/team_management.js +247 -12
  209. package/dist/services/team_management.js.map +1 -1
  210. package/dist/services/tools.js +1 -1
  211. package/dist/services/ui_settings.js +1 -1
  212. package/dist/services/ui_theme_settings.js +1 -1
  213. package/dist/services/usage_ai.js +1 -1
  214. package/dist/services/vantage.js +1 -1
  215. package/dist/services/vector_store_management.js +1 -1
  216. package/dist/services/vector_stores.js +1 -1
  217. package/dist/services/videos.js +1 -1
  218. package/dist/services/web_socket.d.ts +0 -18
  219. package/dist/services/web_socket.d.ts.map +1 -1
  220. package/dist/services/web_socket.js +1 -33
  221. package/dist/services/web_socket.js.map +1 -1
  222. package/dist/services/workflow_management.js +1 -1
  223. package/package.json +1 -1
  224. package/src/services/a2a.ts +1 -1
  225. package/src/services/a2a_registration.ts +1 -1
  226. package/src/services/access_groups.ts +44 -1
  227. package/src/services/adaptive_router.ts +1 -1
  228. package/src/services/agents.ts +22 -1
  229. package/src/services/alerting.ts +1 -1
  230. package/src/services/anthropic_passthrough.ts +1 -1
  231. package/src/services/anthropic_skills.ts +12 -2
  232. package/src/services/assistants.ts +1 -1
  233. package/src/services/audio.ts +1 -1
  234. package/src/services/audit_logging.ts +4 -1
  235. package/src/services/auto_router.ts +303 -93
  236. package/src/services/batch.ts +1 -1
  237. package/src/services/beta_agents.ts +1 -1
  238. package/src/services/beta_mcp.ts +1 -1
  239. package/src/services/budget_management.ts +12 -4
  240. package/src/services/budget_spend_tracking.ts +38 -6
  241. package/src/services/cache_settings.ts +1 -1
  242. package/src/services/caching.ts +1 -1
  243. package/src/services/chat_completions.ts +1 -1
  244. package/src/services/claude_code_marketplace.ts +20 -14
  245. package/src/services/cloudzero.ts +1 -1
  246. package/src/services/completions.ts +1 -1
  247. package/src/services/compliance.ts +1 -1
  248. package/src/services/config_overrides.ts +8 -2
  249. package/src/services/config_yaml.ts +251 -6
  250. package/src/services/containers.ts +29 -11
  251. package/src/services/coordination_redis_settings.ts +1 -1
  252. package/src/services/cost_tracking.ts +198 -2
  253. package/src/services/credential_management.ts +25 -6
  254. package/src/services/customer_management.ts +49 -3
  255. package/src/services/email_management.ts +1 -1
  256. package/src/services/embeddings.ts +1 -1
  257. package/src/services/evals.ts +1 -1
  258. package/src/services/experimental.ts +1 -1
  259. package/src/services/fallback_management.ts +1 -1
  260. package/src/services/files.ts +1 -1
  261. package/src/services/fine_tuning.ts +1 -1
  262. package/src/services/gemini_agents.ts +1 -1
  263. package/src/services/google_genai_endpoints.ts +1 -1
  264. package/src/services/guardrails.ts +198 -8
  265. package/src/services/health.ts +3 -2
  266. package/src/services/images.ts +1 -1
  267. package/src/services/index.ts +1 -15
  268. package/src/services/internal_user_management.ts +565 -103
  269. package/src/services/invite_links.ts +1 -1
  270. package/src/services/jwt_mappings.ts +7 -1
  271. package/src/services/key_management.ts +257 -127
  272. package/src/services/langfuse_passthrough.ts +1 -1
  273. package/src/services/llm_passthrough.ts +4542 -0
  274. package/src/services/llm_utils.ts +1 -1
  275. package/src/services/logging_callbacks.ts +1 -1
  276. package/src/services/mcp_byok_oauth.ts +65 -45
  277. package/src/services/mcp_discoverable.ts +109 -1
  278. package/src/services/mcp_management.ts +258 -3
  279. package/src/services/mcp_rest.ts +30 -5
  280. package/src/services/memory_management.ts +4 -1
  281. package/src/services/misc.ts +269 -2
  282. package/src/services/model_management.ts +666 -21
  283. package/src/services/moderations.ts +1 -1
  284. package/src/services/ocr.ts +1 -1
  285. package/src/services/open_ai_pass_through.ts +81 -286
  286. package/src/services/organization_management.ts +44 -2
  287. package/src/services/plugins.ts +1 -1
  288. package/src/services/policies.ts +5 -1
  289. package/src/services/policy_engine.ts +10 -1
  290. package/src/services/project_management.ts +33 -1
  291. package/src/services/prompts.ts +1 -1
  292. package/src/services/public.ts +356 -1
  293. package/src/services/rag.ts +1 -1
  294. package/src/services/realtime.ts +11 -111
  295. package/src/services/rerank.ts +187 -7
  296. package/src/services/responses.ts +117 -1
  297. package/src/services/router_settings.ts +1 -1
  298. package/src/services/rust_control_plane.ts +1 -1
  299. package/src/services/scim.ts +134 -3
  300. package/src/services/search.ts +1 -1
  301. package/src/services/search_tools.ts +1 -1
  302. package/src/services/settings.ts +278 -1
  303. package/src/services/sso_settings.ts +2 -1
  304. package/src/services/tag_management.ts +15 -1
  305. package/src/services/team_management.ts +676 -37
  306. package/src/services/tools.ts +1 -1
  307. package/src/services/ui_settings.ts +1 -1
  308. package/src/services/ui_theme_settings.ts +1 -1
  309. package/src/services/usage_ai.ts +1 -1
  310. package/src/services/vantage.ts +1 -1
  311. package/src/services/vector_store_management.ts +1 -1
  312. package/src/services/vector_stores.ts +1 -1
  313. package/src/services/videos.ts +1 -1
  314. package/src/services/web_socket.ts +1 -61
  315. package/src/services/workflow_management.ts +1 -1
  316. package/dist/services/anthropic_pass_through.d.ts +0 -70
  317. package/dist/services/anthropic_pass_through.d.ts.map +0 -1
  318. package/dist/services/anthropic_pass_through.js +0 -114
  319. package/dist/services/anthropic_pass_through.js.map +0 -1
  320. package/dist/services/assembly_ai_eu_pass_through.d.ts +0 -70
  321. package/dist/services/assembly_ai_eu_pass_through.d.ts.map +0 -1
  322. package/dist/services/assembly_ai_eu_pass_through.js +0 -114
  323. package/dist/services/assembly_ai_eu_pass_through.js.map +0 -1
  324. package/dist/services/assembly_ai_pass_through.d.ts +0 -70
  325. package/dist/services/assembly_ai_pass_through.d.ts.map +0 -1
  326. package/dist/services/assembly_ai_pass_through.js +0 -114
  327. package/dist/services/assembly_ai_pass_through.js.map +0 -1
  328. package/dist/services/aws_comprehend_medical_pass_through.d.ts +0 -36
  329. package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +0 -1
  330. package/dist/services/aws_comprehend_medical_pass_through.js +0 -56
  331. package/dist/services/aws_comprehend_medical_pass_through.js.map +0 -1
  332. package/dist/services/azure_ai_pass_through.d.ts +0 -70
  333. package/dist/services/azure_ai_pass_through.d.ts.map +0 -1
  334. package/dist/services/azure_ai_pass_through.js +0 -112
  335. package/dist/services/azure_ai_pass_through.js.map +0 -1
  336. package/dist/services/azure_pass_through.d.ts +0 -70
  337. package/dist/services/azure_pass_through.d.ts.map +0 -1
  338. package/dist/services/azure_pass_through.js +0 -107
  339. package/dist/services/azure_pass_through.js.map +0 -1
  340. package/dist/services/bedrock_pass_through.d.ts +0 -70
  341. package/dist/services/bedrock_pass_through.d.ts.map +0 -1
  342. package/dist/services/bedrock_pass_through.js +0 -114
  343. package/dist/services/bedrock_pass_through.js.map +0 -1
  344. package/dist/services/cohere_pass_through.d.ts +0 -70
  345. package/dist/services/cohere_pass_through.d.ts.map +0 -1
  346. package/dist/services/cohere_pass_through.js +0 -112
  347. package/dist/services/cohere_pass_through.js.map +0 -1
  348. package/dist/services/cursor_pass_through.d.ts +0 -70
  349. package/dist/services/cursor_pass_through.d.ts.map +0 -1
  350. package/dist/services/cursor_pass_through.js +0 -112
  351. package/dist/services/cursor_pass_through.js.map +0 -1
  352. package/dist/services/google_ai_studio_pass_through.d.ts +0 -70
  353. package/dist/services/google_ai_studio_pass_through.d.ts.map +0 -1
  354. package/dist/services/google_ai_studio_pass_through.js +0 -112
  355. package/dist/services/google_ai_studio_pass_through.js.map +0 -1
  356. package/dist/services/milvus_pass_through.d.ts +0 -70
  357. package/dist/services/milvus_pass_through.d.ts.map +0 -1
  358. package/dist/services/milvus_pass_through.js +0 -112
  359. package/dist/services/milvus_pass_through.js.map +0 -1
  360. package/dist/services/mistral_pass_through.d.ts +0 -70
  361. package/dist/services/mistral_pass_through.d.ts.map +0 -1
  362. package/dist/services/mistral_pass_through.js +0 -114
  363. package/dist/services/mistral_pass_through.js.map +0 -1
  364. package/dist/services/vertex_ai_pass_through.d.ts +0 -180
  365. package/dist/services/vertex_ai_pass_through.d.ts.map +0 -1
  366. package/dist/services/vertex_ai_pass_through.js +0 -334
  367. package/dist/services/vertex_ai_pass_through.js.map +0 -1
  368. package/dist/services/vllm_pass_through.d.ts +0 -70
  369. package/dist/services/vllm_pass_through.d.ts.map +0 -1
  370. package/dist/services/vllm_pass_through.js +0 -104
  371. package/dist/services/vllm_pass_through.js.map +0 -1
  372. package/dist/services/watsonx_pass_through.d.ts +0 -70
  373. package/dist/services/watsonx_pass_through.d.ts.map +0 -1
  374. package/dist/services/watsonx_pass_through.js +0 -114
  375. package/dist/services/watsonx_pass_through.js.map +0 -1
  376. package/src/services/anthropic_pass_through.ts +0 -233
  377. package/src/services/assembly_ai_eu_pass_through.ts +0 -237
  378. package/src/services/assembly_ai_pass_through.ts +0 -237
  379. package/src/services/aws_comprehend_medical_pass_through.ts +0 -109
  380. package/src/services/azure_ai_pass_through.ts +0 -231
  381. package/src/services/azure_pass_through.ts +0 -227
  382. package/src/services/bedrock_pass_through.ts +0 -229
  383. package/src/services/cohere_pass_through.ts +0 -227
  384. package/src/services/cursor_pass_through.ts +0 -227
  385. package/src/services/google_ai_studio_pass_through.ts +0 -227
  386. package/src/services/milvus_pass_through.ts +0 -227
  387. package/src/services/mistral_pass_through.ts +0 -229
  388. package/src/services/vertex_ai_pass_through.ts +0 -684
  389. package/src/services/vllm_pass_through.ts +0 -227
  390. package/src/services/watsonx_pass_through.ts +0 -229
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as API from "@distilled.cloud/core/api";
4
4
  import * as C from "@distilled.cloud/core/category";
@@ -47,6 +47,37 @@ export const AddTeamCallbacksTeamTeamIdCallbackPostResponse =
47
47
  })).annotate({
48
48
  identifier: "AddTeamCallbacksTeamTeamIdCallbackPostResponse",
49
49
  });
50
+ export const TeamMemberRef = /*@__PURE__*/ S.suspend(() => S.Struct({
51
+ user_email: S.optional(S.NullOr(S.String)),
52
+ user_id: S.optional(S.NullOr(S.String)),
53
+ })).annotate({ identifier: "TeamMemberRef" });
54
+ export const BulkDeleteTeamMembersActionManagementV1TeamsTeamIdMembersBulkDeletePostRequestMembersList =
55
+ /*@__PURE__*/ S.Array(TeamMemberRef);
56
+ export const BulkDeleteTeamMembersActionManagementV1TeamsTeamIdMembersBulkDeletePostRequest =
57
+ /*@__PURE__*/ S.suspend(() => S.Struct({
58
+ team_id: S.String.pipe(T.Label()),
59
+ members: BulkDeleteTeamMembersActionManagementV1TeamsTeamIdMembersBulkDeletePostRequestMembersList,
60
+ }).pipe(T.Http({
61
+ method: "POST",
62
+ uri: "/management/v1/teams/{team_id}/members/bulk_delete",
63
+ code: 200,
64
+ }))).annotate({
65
+ identifier: "BulkDeleteTeamMembersActionManagementV1TeamsTeamIdMembersBulkDeletePostRequest",
66
+ });
67
+ export const TeamMemberDeleteResult = /*@__PURE__*/ S.suspend(() => S.Struct({
68
+ error: S.optional(S.NullOr(S.String)),
69
+ success: S.Boolean,
70
+ user_email: S.optional(S.NullOr(S.String)),
71
+ user_id: S.optional(S.NullOr(S.String)),
72
+ })).annotate({
73
+ identifier: "TeamMemberDeleteResult",
74
+ });
75
+ export const BulkTeamMemberDeleteResponseDataList = /*@__PURE__*/ S.Array(TeamMemberDeleteResult);
76
+ export const BulkTeamMemberDeleteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
77
+ data: BulkTeamMemberDeleteResponseDataList,
78
+ })).annotate({
79
+ identifier: "BulkTeamMemberDeleteResponse",
80
+ });
50
81
  export const MemberRole = S.String;
51
82
  export const Member = /*@__PURE__*/ S.suspend(() => S.Struct({
52
83
  role: MemberRole,
@@ -89,6 +120,55 @@ export const BulkTeamMemberAddResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
89
120
  })).annotate({
90
121
  identifier: "BulkTeamMemberAddResponse",
91
122
  });
123
+ export const TeamMemberBudgetPatchAllowedModelsList = /*@__PURE__*/ S.Array(S.String);
124
+ export const TeamMemberBudgetPatch = /*@__PURE__*/ S.suspend(() => S.Struct({
125
+ allowed_models: S.optional(S.NullOr(TeamMemberBudgetPatchAllowedModelsList)),
126
+ budget_duration: S.optional(S.NullOr(S.String)),
127
+ max_budget_in_team: S.optional(S.NullOr(S.Number)),
128
+ rpm_limit: S.optional(S.NullOr(S.Number)),
129
+ tpm_limit: S.optional(S.NullOr(S.Number)),
130
+ user_email: S.optional(S.NullOr(S.String)),
131
+ user_id: S.optional(S.NullOr(S.String)),
132
+ })).annotate({
133
+ identifier: "TeamMemberBudgetPatch",
134
+ });
135
+ export const BulkUpdateTeamMemberBudgetsActionManagementV1TeamsTeamIdMembersBulkUpdatePostRequestMembersList =
136
+ /*@__PURE__*/ S.Array(TeamMemberBudgetPatch);
137
+ export const BulkUpdateTeamMemberBudgetsActionManagementV1TeamsTeamIdMembersBulkUpdatePostRequest =
138
+ /*@__PURE__*/ S.suspend(() => S.Struct({
139
+ team_id: S.String.pipe(T.Label()),
140
+ members: BulkUpdateTeamMemberBudgetsActionManagementV1TeamsTeamIdMembersBulkUpdatePostRequestMembersList,
141
+ }).pipe(T.Http({
142
+ method: "POST",
143
+ uri: "/management/v1/teams/{team_id}/members/bulk_update",
144
+ code: 200,
145
+ }))).annotate({
146
+ identifier: "BulkUpdateTeamMemberBudgetsActionManagementV1TeamsTeamIdMembersBulkUpdatePostRequest",
147
+ });
148
+ export const TeamMemberBudgetUpdateResultAllowedModelsList =
149
+ /*@__PURE__*/ S.Array(S.String);
150
+ export const TeamMemberBudgetUpdateResultMaxBudgetSource = S.String;
151
+ export const TeamMemberBudgetUpdateResult = /*@__PURE__*/ S.suspend(() => S.Struct({
152
+ allowed_models: S.optional(S.NullOr(TeamMemberBudgetUpdateResultAllowedModelsList)),
153
+ budget_duration: S.optional(S.NullOr(S.String)),
154
+ budget_id: S.optional(S.NullOr(S.String)),
155
+ error: S.optional(S.NullOr(S.String)),
156
+ max_budget: S.optional(S.NullOr(S.Number)),
157
+ max_budget_source: S.optional(S.NullOr(TeamMemberBudgetUpdateResultMaxBudgetSource)),
158
+ rpm_limit: S.optional(S.NullOr(S.Number)),
159
+ success: S.Boolean,
160
+ tpm_limit: S.optional(S.NullOr(S.Number)),
161
+ user_email: S.optional(S.NullOr(S.String)),
162
+ user_id: S.optional(S.NullOr(S.String)),
163
+ })).annotate({
164
+ identifier: "TeamMemberBudgetUpdateResult",
165
+ });
166
+ export const BulkTeamMemberBudgetUpdateResponseDataList = /*@__PURE__*/ S.Array(TeamMemberBudgetUpdateResult);
167
+ export const BulkTeamMemberBudgetUpdateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
168
+ data: BulkTeamMemberBudgetUpdateResponseDataList,
169
+ })).annotate({
170
+ identifier: "BulkTeamMemberBudgetUpdateResponse",
171
+ });
92
172
  export const KeyManagementRoutes = S.String;
93
173
  export const BulkUpdateTeamMemberPermissionsTeamPermissionsBulkUpdatePostRequestPermissionsList =
94
174
  /*@__PURE__*/ S.Array(KeyManagementRoutes);
@@ -215,15 +295,20 @@ export const DailySpendMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
215
295
  total_pages: S.optional(S.Number),
216
296
  total_prompt_caching_savings_spend: S.optional(S.Number),
217
297
  total_prompt_tokens: S.optional(S.Number),
298
+ total_response_time_ms: S.optional(S.Number),
218
299
  total_spend: S.optional(S.Number),
219
300
  total_successful_requests: S.optional(S.Number),
301
+ total_timed_requests: S.optional(S.Number),
220
302
  total_tokens: S.optional(S.Number),
221
303
  })).annotate({
222
304
  identifier: "DailySpendMetadata",
223
305
  });
224
306
  export const KeyMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
225
307
  key_alias: S.optional(S.NullOr(S.String)),
308
+ key_exists: S.optional(S.NullOr(S.Boolean)),
226
309
  team_id: S.optional(S.NullOr(S.String)),
310
+ user_email: S.optional(S.NullOr(S.String)),
311
+ user_id: S.optional(S.NullOr(S.String)),
227
312
  })).annotate({ identifier: "KeyMetadata" });
228
313
  export const SpendMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
229
314
  api_requests: S.optional(S.Number),
@@ -240,6 +325,8 @@ export const SpendMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
240
325
  prompt_tokens: S.optional(S.Number),
241
326
  spend: S.optional(S.Number),
242
327
  successful_requests: S.optional(S.Number),
328
+ timed_requests: S.optional(S.Number),
329
+ total_response_time_ms: S.optional(S.Number),
243
330
  total_tokens: S.optional(S.Number),
244
331
  })).annotate({ identifier: "SpendMetrics" });
245
332
  export const KeyMetricWithMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -330,6 +417,9 @@ export const LiteLLMBudgetTableFull = /*@__PURE__*/ S.suspend(() => S.Struct({
330
417
  model_max_budget: S.optional(S.NullOr(LiteLLMBudgetTableFullModelMaxBudgetMap)),
331
418
  rpm_limit: S.optional(S.NullOr(S.Number)),
332
419
  soft_budget: S.optional(S.NullOr(S.Number)),
420
+ temp_budget_expiry: S.optional(S.NullOr(S.String)),
421
+ temp_budget_increase: S.optional(S.NullOr(S.Number)),
422
+ tpd_limit: S.optional(S.NullOr(S.Number)),
333
423
  tpm_limit: S.optional(S.NullOr(S.Number)),
334
424
  })).annotate({
335
425
  identifier: "LiteLLMBudgetTableFull",
@@ -345,6 +435,9 @@ export const LiteLLMBudgetTable = /*@__PURE__*/ S.suspend(() => S.Struct({
345
435
  model_max_budget: S.optional(S.NullOr(LiteLLMBudgetTableModelMaxBudgetMap)),
346
436
  rpm_limit: S.optional(S.NullOr(S.Number)),
347
437
  soft_budget: S.optional(S.NullOr(S.Number)),
438
+ temp_budget_expiry: S.optional(S.NullOr(S.String)),
439
+ temp_budget_increase: S.optional(S.NullOr(S.Number)),
440
+ tpd_limit: S.optional(S.NullOr(S.Number)),
348
441
  tpm_limit: S.optional(S.NullOr(S.Number)),
349
442
  })).annotate({
350
443
  identifier: "LiteLLMBudgetTable",
@@ -379,6 +472,38 @@ export const TeamMetadataSchemaResponse = /*@__PURE__*/ S.suspend(() => S.Struct
379
472
  })).annotate({
380
473
  identifier: "TeamMetadataSchemaResponse",
381
474
  });
475
+ export const GetTeamSpendByUserTeamSpendByUserGetRequest =
476
+ /*@__PURE__*/ S.suspend(() => S.Struct({
477
+ team_ids: S.optional(S.String.pipe(T.Query())),
478
+ start_date: S.optional(S.String.pipe(T.Query())),
479
+ end_date: S.optional(S.String.pipe(T.Query())),
480
+ }).pipe(T.Http({ method: "GET", uri: "/team/spend/by_user", code: 200 }))).annotate({
481
+ identifier: "GetTeamSpendByUserTeamSpendByUserGetRequest",
482
+ });
483
+ export const TeamUserSpendRow = /*@__PURE__*/ S.suspend(() => S.Struct({
484
+ api_requests: S.optional(S.Number),
485
+ completion_tokens: S.optional(S.Number),
486
+ failed_requests: S.optional(S.Number),
487
+ prompt_tokens: S.optional(S.Number),
488
+ spend: S.optional(S.Number),
489
+ successful_requests: S.optional(S.Number),
490
+ team_alias: S.optional(S.NullOr(S.String)),
491
+ team_id: S.String,
492
+ total_tokens: S.optional(S.Number),
493
+ user_alias: S.optional(S.NullOr(S.String)),
494
+ user_email: S.optional(S.NullOr(S.String)),
495
+ user_id: S.String,
496
+ })).annotate({
497
+ identifier: "TeamUserSpendRow",
498
+ });
499
+ export const TeamUserSpendResponseResultsList = /*@__PURE__*/ S.Array(TeamUserSpendRow);
500
+ export const TeamUserSpendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
501
+ end_date: S.String,
502
+ results: TeamUserSpendResponseResultsList,
503
+ start_date: S.String,
504
+ })).annotate({
505
+ identifier: "TeamUserSpendResponse",
506
+ });
382
507
  export const GetUiViewTeamsTeamFilterUiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
383
508
  team_id: S.optional(S.String.pipe(T.Query())),
384
509
  team_alias: S.optional(S.String.pipe(T.Query())),
@@ -433,6 +558,7 @@ export const LiteLLMObjectPermissionTableMcpToolsetsList =
433
558
  export const LiteLLMObjectPermissionTableModelsList = /*@__PURE__*/ S.Array(S.String);
434
559
  export const LiteLLMObjectPermissionTableSearchToolsList =
435
560
  /*@__PURE__*/ S.Array(S.String);
561
+ export const LiteLLMObjectPermissionTableSkillsList = /*@__PURE__*/ S.Array(S.String);
436
562
  export const LiteLLMObjectPermissionTableVectorStoresList =
437
563
  /*@__PURE__*/ S.Array(S.String);
438
564
  export const LiteLLMObjectPermissionTable = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -447,6 +573,7 @@ export const LiteLLMObjectPermissionTable = /*@__PURE__*/ S.suspend(() => S.Stru
447
573
  models: S.optional(S.NullOr(LiteLLMObjectPermissionTableModelsList)),
448
574
  object_permission_id: S.String,
449
575
  search_tools: S.optional(S.NullOr(LiteLLMObjectPermissionTableSearchToolsList)),
576
+ skills: S.optional(S.NullOr(LiteLLMObjectPermissionTableSkillsList)),
450
577
  vector_stores: S.optional(S.NullOr(LiteLLMObjectPermissionTableVectorStoresList)),
451
578
  })).annotate({
452
579
  identifier: "LiteLLMObjectPermissionTable",
@@ -485,6 +612,7 @@ export const LiteLLMTeamTable = /*@__PURE__*/ S.suspend(() => S.Struct({
485
612
  team_alias: S.optional(S.NullOr(S.String)),
486
613
  team_id: S.String,
487
614
  team_member_permissions: S.optional(S.NullOr(LiteLLMTeamTableTeamMemberPermissionsList)),
615
+ tpd_limit: S.optional(S.NullOr(S.Number)),
488
616
  tpm_limit: S.optional(S.NullOr(S.Number)),
489
617
  updated_at: S.optional(S.NullOr(S.String)),
490
618
  })).annotate({
@@ -575,6 +703,7 @@ export const TeamListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
575
703
  team_alias: S.optional(S.NullOr(S.String)),
576
704
  team_id: S.String,
577
705
  team_member_permissions: S.optional(S.NullOr(TeamListItemTeamMemberPermissionsList)),
706
+ tpd_limit: S.optional(S.NullOr(S.Number)),
578
707
  tpm_limit: S.optional(S.NullOr(S.Number)),
579
708
  updated_at: S.optional(S.NullOr(S.String)),
580
709
  })).annotate({ identifier: "TeamListItem" });
@@ -630,6 +759,7 @@ export const LiteLLMDeletedTeamTable = /*@__PURE__*/ S.suspend(() => S.Struct({
630
759
  team_alias: S.optional(S.NullOr(S.String)),
631
760
  team_id: S.String,
632
761
  team_member_permissions: S.optional(S.NullOr(LiteLLMDeletedTeamTableTeamMemberPermissionsList)),
762
+ tpd_limit: S.optional(S.NullOr(S.Number)),
633
763
  tpm_limit: S.optional(S.NullOr(S.Number)),
634
764
  updated_at: S.optional(S.NullOr(S.String)),
635
765
  })).annotate({
@@ -679,6 +809,14 @@ export const PatchTeamTeamTeamIdPatchRequestMetadataMap =
679
809
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
680
810
  export const PatchTeamTeamTeamIdPatchRequestModelAliasesMap =
681
811
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
812
+ export const BudgetConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
813
+ budget_duration: S.optional(S.NullOr(S.String)),
814
+ max_budget: S.optional(S.NullOr(S.Number)),
815
+ rpm_limit: S.optional(S.NullOr(S.Number)),
816
+ tpm_limit: S.optional(S.NullOr(S.Number)),
817
+ })).annotate({ identifier: "BudgetConfig" });
818
+ export const PatchTeamTeamTeamIdPatchRequestModelMaxBudgetMap =
819
+ /*@__PURE__*/ S.Record(S.String, BudgetConfig);
682
820
  export const PatchTeamTeamTeamIdPatchRequestModelRpmLimitMap =
683
821
  /*@__PURE__*/ S.Record(S.String, S.Number);
684
822
  export const PatchTeamTeamTeamIdPatchRequestModelTpmLimitMap =
@@ -699,6 +837,7 @@ export const LiteLLMObjectPermissionBaseMcpToolPermissionsMap =
699
837
  export const LiteLLMObjectPermissionBaseMcpToolsetsList = /*@__PURE__*/ S.Array(S.String);
700
838
  export const LiteLLMObjectPermissionBaseModelsList = /*@__PURE__*/ S.Array(S.String);
701
839
  export const LiteLLMObjectPermissionBaseSearchToolsList = /*@__PURE__*/ S.Array(S.String);
840
+ export const LiteLLMObjectPermissionBaseSkillsList = /*@__PURE__*/ S.Array(S.String);
702
841
  export const LiteLLMObjectPermissionBaseVectorStoresList =
703
842
  /*@__PURE__*/ S.Array(S.String);
704
843
  export const LiteLLMObjectPermissionBase = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -712,6 +851,7 @@ export const LiteLLMObjectPermissionBase = /*@__PURE__*/ S.suspend(() => S.Struc
712
851
  mcp_toolsets: S.optional(S.NullOr(LiteLLMObjectPermissionBaseMcpToolsetsList)),
713
852
  models: S.optional(S.NullOr(LiteLLMObjectPermissionBaseModelsList)),
714
853
  search_tools: S.optional(S.NullOr(LiteLLMObjectPermissionBaseSearchToolsList)),
854
+ skills: S.optional(S.NullOr(LiteLLMObjectPermissionBaseSkillsList)),
715
855
  vector_stores: S.optional(S.NullOr(LiteLLMObjectPermissionBaseVectorStoresList)),
716
856
  })).annotate({
717
857
  identifier: "LiteLLMObjectPermissionBase",
@@ -719,8 +859,68 @@ export const LiteLLMObjectPermissionBase = /*@__PURE__*/ S.suspend(() => S.Struc
719
859
  export const PatchTeamTeamTeamIdPatchRequestPoliciesList =
720
860
  /*@__PURE__*/ S.Array(S.String);
721
861
  export const PatchTeamTeamTeamIdPatchRequestPromptsList = /*@__PURE__*/ S.Array(S.String);
722
- export const PatchTeamTeamTeamIdPatchRequestRouterSettingsMap =
862
+ export const UpdateRouterConfigContextWindowFallbacksItemMap =
863
+ /*@__PURE__*/ S.Record(S.String, S.Unknown);
864
+ export const UpdateRouterConfigContextWindowFallbacksList =
865
+ /*@__PURE__*/ S.Array(UpdateRouterConfigContextWindowFallbacksItemMap);
866
+ export const UpdateRouterConfigFallbacksItemMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
867
+ export const UpdateRouterConfigFallbacksList = /*@__PURE__*/ S.Array(UpdateRouterConfigFallbacksItemMap);
868
+ export const UpdateRouterConfigModelGroupAffinityConfigValueList =
869
+ /*@__PURE__*/ S.Array(S.String);
870
+ export const UpdateRouterConfigModelGroupAffinityConfigMap =
871
+ /*@__PURE__*/ S.Record(S.String, UpdateRouterConfigModelGroupAffinityConfigValueList);
872
+ export const UpdateRouterConfigModelGroupAliasValueCase1Map =
723
873
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
874
+ export const UpdateRouterConfigModelGroupAliasValue = S.Unknown;
875
+ export const UpdateRouterConfigModelGroupAliasMap = /*@__PURE__*/ S.Record(S.String, UpdateRouterConfigModelGroupAliasValue);
876
+ export const RetryPolicy = /*@__PURE__*/ S.suspend(() => S.Struct({
877
+ AuthenticationErrorRetries: S.optional(S.NullOr(S.Number)),
878
+ BadRequestErrorRetries: S.optional(S.NullOr(S.Number)),
879
+ ContentPolicyViolationErrorRetries: S.optional(S.NullOr(S.Number)),
880
+ DefaultRetries: S.optional(S.NullOr(S.Number)),
881
+ InternalServerErrorRetries: S.optional(S.NullOr(S.Number)),
882
+ RateLimitErrorRetries: S.optional(S.NullOr(S.Number)),
883
+ ServiceUnavailableErrorRetries: S.optional(S.NullOr(S.Number)),
884
+ TimeoutErrorRetries: S.optional(S.NullOr(S.Number)),
885
+ })).annotate({ identifier: "RetryPolicy" });
886
+ export const UpdateRouterConfigModelGroupRetryPolicyMap =
887
+ /*@__PURE__*/ S.Record(S.String, RetryPolicy);
888
+ export const UpdateRouterConfigOptionalPreCallChecksItem = S.String;
889
+ export const UpdateRouterConfigOptionalPreCallChecksList =
890
+ /*@__PURE__*/ S.Array(UpdateRouterConfigOptionalPreCallChecksItem);
891
+ export const RoutingGroupModelsList = /*@__PURE__*/ S.Array(S.String);
892
+ export const RoutingGroupRoutingStrategyArgsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
893
+ export const RoutingGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
894
+ group_name: S.String,
895
+ models: RoutingGroupModelsList,
896
+ routing_strategy: S.String,
897
+ routing_strategy_args: S.optional(S.NullOr(RoutingGroupRoutingStrategyArgsMap)),
898
+ })).annotate({ identifier: "RoutingGroup" });
899
+ export const UpdateRouterConfigRoutingGroupsList = /*@__PURE__*/ S.Array(RoutingGroup);
900
+ export const UpdateRouterConfigRoutingStrategyArgsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
901
+ export const UpdateRouterConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
902
+ allowed_fails: S.optional(S.NullOr(S.Number)),
903
+ context_window_fallbacks: S.optional(S.NullOr(UpdateRouterConfigContextWindowFallbacksList)),
904
+ cooldown_time: S.optional(S.NullOr(S.Number)),
905
+ enable_tag_filtering: S.optional(S.NullOr(S.Boolean)),
906
+ fallbacks: S.optional(S.NullOr(UpdateRouterConfigFallbacksList)),
907
+ max_retries: S.optional(S.NullOr(S.Number)),
908
+ model_group_affinity_config: S.optional(S.NullOr(UpdateRouterConfigModelGroupAffinityConfigMap)),
909
+ model_group_alias: S.optional(S.NullOr(UpdateRouterConfigModelGroupAliasMap)),
910
+ model_group_retry_policy: S.optional(S.NullOr(UpdateRouterConfigModelGroupRetryPolicyMap)),
911
+ num_retries: S.optional(S.NullOr(S.Number)),
912
+ optional_pre_call_checks: S.optional(S.NullOr(UpdateRouterConfigOptionalPreCallChecksList)),
913
+ retry_after: S.optional(S.NullOr(S.Number)),
914
+ retry_policy: S.optional(S.NullOr(RetryPolicy)),
915
+ routing_groups: S.optional(S.NullOr(UpdateRouterConfigRoutingGroupsList)),
916
+ routing_strategy: S.optional(S.NullOr(S.String)),
917
+ routing_strategy_args: S.optional(S.NullOr(UpdateRouterConfigRoutingStrategyArgsMap)),
918
+ tag_routing_prefix: S.optional(S.NullOr(S.String)),
919
+ timeout: S.optional(S.NullOr(S.Number)),
920
+ weights: S.optional(S.NullOr(S.Unknown)),
921
+ })).annotate({
922
+ identifier: "UpdateRouterConfig",
923
+ });
724
924
  export const PatchTeamTeamTeamIdPatchRequestSecretManagerSettingsMap =
725
925
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
726
926
  export const PatchTeamTeamTeamIdPatchRequestTagsList = /*@__PURE__*/ S.Array(S.Unknown);
@@ -743,6 +943,7 @@ export const PatchTeamTeamTeamIdPatchRequest = /*@__PURE__*/ S.suspend(() => S.S
743
943
  mcp_rpm_limit: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestMcpRpmLimitMap)),
744
944
  metadata: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestMetadataMap)),
745
945
  model_aliases: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestModelAliasesMap)),
946
+ model_max_budget: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestModelMaxBudgetMap)),
746
947
  model_rpm_limit: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestModelRpmLimitMap)),
747
948
  model_tpm_limit: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestModelTpmLimitMap)),
748
949
  models: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestModelsList)),
@@ -750,7 +951,7 @@ export const PatchTeamTeamTeamIdPatchRequest = /*@__PURE__*/ S.suspend(() => S.S
750
951
  organization_id: S.optional(S.NullOr(S.String)),
751
952
  policies: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestPoliciesList)),
752
953
  prompts: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestPromptsList)),
753
- router_settings: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestRouterSettingsMap)),
954
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
754
955
  rpm_limit: S.optional(S.NullOr(S.Number)),
755
956
  secret_manager_settings: S.optional(S.NullOr(PatchTeamTeamTeamIdPatchRequestSecretManagerSettingsMap)),
756
957
  soft_budget: S.optional(S.NullOr(S.Number)),
@@ -761,6 +962,7 @@ export const PatchTeamTeamTeamIdPatchRequest = /*@__PURE__*/ S.suspend(() => S.S
761
962
  team_member_key_duration: S.optional(S.NullOr(S.String)),
762
963
  team_member_rpm_limit: S.optional(S.NullOr(S.Number)),
763
964
  team_member_tpm_limit: S.optional(S.NullOr(S.Number)),
965
+ tpd_limit: S.optional(S.NullOr(S.Number)),
764
966
  tpm_limit: S.optional(S.NullOr(S.Number)),
765
967
  }).pipe(T.Http({ method: "PATCH", uri: "/team/{team_id}", code: 200 }))).annotate({
766
968
  identifier: "PatchTeamTeamTeamIdPatchRequest",
@@ -798,13 +1000,13 @@ export const PostNewTeamTeamNewRequestMembersWithRolesList =
798
1000
  /*@__PURE__*/ S.Array(Member);
799
1001
  export const PostNewTeamTeamNewRequestMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
800
1002
  export const PostNewTeamTeamNewRequestModelAliasesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1003
+ export const PostNewTeamTeamNewRequestModelMaxBudgetMap =
1004
+ /*@__PURE__*/ S.Record(S.String, BudgetConfig);
801
1005
  export const PostNewTeamTeamNewRequestModelRpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Number);
802
1006
  export const PostNewTeamTeamNewRequestModelTpmLimitMap = /*@__PURE__*/ S.Record(S.String, S.Number);
803
1007
  export const PostNewTeamTeamNewRequestModelsList = /*@__PURE__*/ S.Array(S.String);
804
1008
  export const PostNewTeamTeamNewRequestPoliciesList = /*@__PURE__*/ S.Array(S.String);
805
1009
  export const PostNewTeamTeamNewRequestPromptsList = /*@__PURE__*/ S.Array(S.String);
806
- export const PostNewTeamTeamNewRequestRouterSettingsMap =
807
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
808
1010
  export const PostNewTeamTeamNewRequestRpmLimitType = S.String;
809
1011
  export const PostNewTeamTeamNewRequestSecretManagerSettingsMap =
810
1012
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
@@ -833,6 +1035,7 @@ export const PostNewTeamTeamNewRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
833
1035
  members_with_roles: S.optional(PostNewTeamTeamNewRequestMembersWithRolesList),
834
1036
  metadata: S.optional(S.NullOr(PostNewTeamTeamNewRequestMetadataMap)),
835
1037
  model_aliases: S.optional(S.NullOr(PostNewTeamTeamNewRequestModelAliasesMap)),
1038
+ model_max_budget: S.optional(S.NullOr(PostNewTeamTeamNewRequestModelMaxBudgetMap)),
836
1039
  model_rpm_limit: S.optional(S.NullOr(PostNewTeamTeamNewRequestModelRpmLimitMap)),
837
1040
  model_tpm_limit: S.optional(S.NullOr(PostNewTeamTeamNewRequestModelTpmLimitMap)),
838
1041
  models: S.optional(PostNewTeamTeamNewRequestModelsList),
@@ -840,7 +1043,7 @@ export const PostNewTeamTeamNewRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
840
1043
  organization_id: S.optional(S.NullOr(S.String)),
841
1044
  policies: S.optional(S.NullOr(PostNewTeamTeamNewRequestPoliciesList)),
842
1045
  prompts: S.optional(S.NullOr(PostNewTeamTeamNewRequestPromptsList)),
843
- router_settings: S.optional(S.NullOr(PostNewTeamTeamNewRequestRouterSettingsMap)),
1046
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
844
1047
  rpm_limit: S.optional(S.NullOr(S.Number)),
845
1048
  rpm_limit_type: S.optional(S.NullOr(PostNewTeamTeamNewRequestRpmLimitType)),
846
1049
  secret_manager_settings: S.optional(S.NullOr(PostNewTeamTeamNewRequestSecretManagerSettingsMap)),
@@ -854,6 +1057,7 @@ export const PostNewTeamTeamNewRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
854
1057
  team_member_permissions: S.optional(S.NullOr(PostNewTeamTeamNewRequestTeamMemberPermissionsList)),
855
1058
  team_member_rpm_limit: S.optional(S.NullOr(S.Number)),
856
1059
  team_member_tpm_limit: S.optional(S.NullOr(S.Number)),
1060
+ tpd_limit: S.optional(S.NullOr(S.Number)),
857
1061
  tpm_limit: S.optional(S.NullOr(S.Number)),
858
1062
  tpm_limit_type: S.optional(S.NullOr(PostNewTeamTeamNewRequestTpmLimitType)),
859
1063
  }).pipe(T.Http({ method: "POST", uri: "/team/new", code: 200 }))).annotate({
@@ -1004,6 +1208,7 @@ export const TeamAddMemberResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1004
1208
  team_alias: S.optional(S.NullOr(S.String)),
1005
1209
  team_id: S.String,
1006
1210
  team_member_permissions: S.optional(S.NullOr(TeamAddMemberResponseTeamMemberPermissionsList)),
1211
+ tpd_limit: S.optional(S.NullOr(S.Number)),
1007
1212
  tpm_limit: S.optional(S.NullOr(S.Number)),
1008
1213
  updated_at: S.optional(S.NullOr(S.String)),
1009
1214
  updated_team_memberships: TeamAddMemberResponseUpdatedTeamMembershipsList,
@@ -1053,6 +1258,8 @@ export const TeamMemberUpdateTeamMemberUpdatePostRequest =
1053
1258
  role: S.optional(S.NullOr(TeamMemberUpdateTeamMemberUpdatePostRequestRole)),
1054
1259
  rpm_limit: S.optional(S.NullOr(S.Number)),
1055
1260
  team_id: S.String,
1261
+ temp_budget_expiry: S.optional(S.NullOr(S.String)),
1262
+ temp_budget_increase: S.optional(S.NullOr(S.Number)),
1056
1263
  tpm_limit: S.optional(S.NullOr(S.Number)),
1057
1264
  user_email: S.optional(S.NullOr(S.String)),
1058
1265
  user_id: S.optional(S.NullOr(S.String)),
@@ -1066,6 +1273,8 @@ export const TeamMemberUpdateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1066
1273
  max_budget_in_team: S.optional(S.NullOr(S.Number)),
1067
1274
  rpm_limit: S.optional(S.NullOr(S.Number)),
1068
1275
  team_id: S.String,
1276
+ temp_budget_expiry: S.optional(S.NullOr(S.String)),
1277
+ temp_budget_increase: S.optional(S.NullOr(S.Number)),
1069
1278
  tpm_limit: S.optional(S.NullOr(S.Number)),
1070
1279
  user_email: S.optional(S.NullOr(S.String)),
1071
1280
  user_id: S.String,
@@ -1143,6 +1352,8 @@ export const UpdateTeamTeamUpdatePostRequestMetadataMap =
1143
1352
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
1144
1353
  export const UpdateTeamTeamUpdatePostRequestModelAliasesMap =
1145
1354
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
1355
+ export const UpdateTeamTeamUpdatePostRequestModelMaxBudgetMap =
1356
+ /*@__PURE__*/ S.Record(S.String, BudgetConfig);
1146
1357
  export const UpdateTeamTeamUpdatePostRequestModelRpmLimitMap =
1147
1358
  /*@__PURE__*/ S.Record(S.String, S.Number);
1148
1359
  export const UpdateTeamTeamUpdatePostRequestModelTpmLimitMap =
@@ -1151,8 +1362,6 @@ export const UpdateTeamTeamUpdatePostRequestModelsList = /*@__PURE__*/ S.Array(S
1151
1362
  export const UpdateTeamTeamUpdatePostRequestPoliciesList =
1152
1363
  /*@__PURE__*/ S.Array(S.String);
1153
1364
  export const UpdateTeamTeamUpdatePostRequestPromptsList = /*@__PURE__*/ S.Array(S.String);
1154
- export const UpdateTeamTeamUpdatePostRequestRouterSettingsMap =
1155
- /*@__PURE__*/ S.Record(S.String, S.Unknown);
1156
1365
  export const UpdateTeamTeamUpdatePostRequestSecretManagerSettingsMap =
1157
1366
  /*@__PURE__*/ S.Record(S.String, S.Unknown);
1158
1367
  export const UpdateTeamTeamUpdatePostRequestTagsList = /*@__PURE__*/ S.Array(S.Unknown);
@@ -1174,6 +1383,7 @@ export const UpdateTeamTeamUpdatePostRequest = /*@__PURE__*/ S.suspend(() => S.S
1174
1383
  mcp_rpm_limit: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestMcpRpmLimitMap)),
1175
1384
  metadata: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestMetadataMap)),
1176
1385
  model_aliases: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestModelAliasesMap)),
1386
+ model_max_budget: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestModelMaxBudgetMap)),
1177
1387
  model_rpm_limit: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestModelRpmLimitMap)),
1178
1388
  model_tpm_limit: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestModelTpmLimitMap)),
1179
1389
  models: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestModelsList)),
@@ -1181,7 +1391,7 @@ export const UpdateTeamTeamUpdatePostRequest = /*@__PURE__*/ S.suspend(() => S.S
1181
1391
  organization_id: S.optional(S.NullOr(S.String)),
1182
1392
  policies: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestPoliciesList)),
1183
1393
  prompts: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestPromptsList)),
1184
- router_settings: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestRouterSettingsMap)),
1394
+ router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
1185
1395
  rpm_limit: S.optional(S.NullOr(S.Number)),
1186
1396
  secret_manager_settings: S.optional(S.NullOr(UpdateTeamTeamUpdatePostRequestSecretManagerSettingsMap)),
1187
1397
  soft_budget: S.optional(S.NullOr(S.Number)),
@@ -1193,6 +1403,7 @@ export const UpdateTeamTeamUpdatePostRequest = /*@__PURE__*/ S.suspend(() => S.S
1193
1403
  team_member_key_duration: S.optional(S.NullOr(S.String)),
1194
1404
  team_member_rpm_limit: S.optional(S.NullOr(S.Number)),
1195
1405
  team_member_tpm_limit: S.optional(S.NullOr(S.Number)),
1406
+ tpd_limit: S.optional(S.NullOr(S.Number)),
1196
1407
  tpm_limit: S.optional(S.NullOr(S.Number)),
1197
1408
  }).pipe(T.Http({ method: "POST", uri: "/team/update", code: 200 }))).annotate({
1198
1409
  identifier: "UpdateTeamTeamUpdatePostRequest",
@@ -1202,7 +1413,7 @@ export const UpdateTeamTeamUpdatePostResponse = /*@__PURE__*/ S.suspend(() => S.
1202
1413
  })).annotate({
1203
1414
  identifier: "UpdateTeamTeamUpdatePostResponse",
1204
1415
  });
1205
- /** Add Team Callbacks Add a success/failure callback to a team Use this if if you want different teams to have different success/failure callbacks Parameters: - callback_name (Literal["langfuse", "langsmith", "gcs"], required): The name of the callback to add - callback_type (Literal["success", "failure", "success_and_failure"], required): The type of callback to add. One of: - "success": Callback for successful LLM calls - "failure": Callback for failed LLM calls - "success_and_failure": Callback for both successful and failed LLM calls - callback_vars (StandardCallbackDynamicParams, required): A dictionary of variables to pass to the callback - langfuse_public_key: The public key for the Langfuse callback - langfuse_secret_key: The secret key for the Langfuse callback - langfuse_secret: The secret for the Langfuse callback - langfuse_host: The host for the Langfuse callback - langfuse_environment: The tracing environment for the Langfuse callback (lowercase; falls back to LANGFUSE_TRACING_ENVIRONMENT) - gcs_bucket_name: The name of the GCS bucket - gcs_path_service_account: The path to the GCS service account - langsmith_api_key: The API key for the Langsmith callback - langsmith_project: The project for the Langsmith callback - langsmith_base_url: The base URL for the Langsmith callback Example curl: ``` curl -X POST 'http:/localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Content-Type: application/json' -H 'Authorization: Bearer sk-1234' -d '{ "callback_name": "langfuse", "callback_type": "success", "callback_vars": {"langfuse_public_key": "pk-lf-xxxx1", "langfuse_secret_key": "sk-xxxxx"} }' ``` This means for the team where team_id = dbe2f686-a686-4896-864a-4c3924458709, all LLM calls will be logged to langfuse using the public key pk-lf-xxxx1 and the secret key sk-xxxxx */
1416
+ /** Add Team Callbacks Add a success/failure callback to a team Use this if if you want different teams to have different success/failure callbacks Parameters: - callback_name (str, required): The name of the callback to add, e.g. "langfuse", "langsmith", "gcs", "newrelic". The value is validated against the callbacks that support team-scoped credentials - callback_type (Literal["success", "failure", "success_and_failure"], required): The type of callback to add. One of: - "success": Callback for successful LLM calls - "failure": Callback for failed LLM calls - "success_and_failure": Callback for both successful and failed LLM calls - callback_vars (StandardCallbackDynamicParams, required): A dictionary of variables to pass to the callback - langfuse_public_key: The public key for the Langfuse callback - langfuse_secret_key: The secret key for the Langfuse callback - langfuse_secret: The secret for the Langfuse callback - langfuse_host: The host for the Langfuse callback - langfuse_environment: The tracing environment for the Langfuse callback (lowercase; falls back to LANGFUSE_TRACING_ENVIRONMENT) - langfuse_span_scope: For langfuse_otel, "full" (default) sends the whole request trace, "llm_only" sends only the model-call spans - gcs_bucket_name: The name of the GCS bucket - gcs_path_service_account: The path to the GCS service account - langsmith_api_key: The API key for the Langsmith callback - langsmith_project: The project for the Langsmith callback - langsmith_base_url: The base URL for the Langsmith callback - newrelic_api_key: The ingest license key for the team's New Relic account; routes both LLM/agent traces and cost metrics to that account. Requires the proxy to run with LITELLM_OTEL_V2=true, otherwise this callback is rejected with a 400 - newrelic_region: The New Relic region for the team's account ("us" or "eu"), riding the team's own key Example curl: ``` curl -X POST 'http:/localhost:4000/team/dbe2f686-a686-4896-864a-4c3924458709/callback' -H 'Content-Type: application/json' -H 'Authorization: Bearer sk-1234' -d '{ "callback_name": "langfuse", "callback_type": "success", "callback_vars": {"langfuse_public_key": "pk-lf-xxxx1", "langfuse_secret_key": "sk-xxxxx"} }' ``` This means for the team where team_id = dbe2f686-a686-4896-864a-4c3924458709, all LLM calls will be logged to langfuse using the public key pk-lf-xxxx1 and the secret key sk-xxxxx */
1206
1417
  export const addTeamCallbacksTeamTeamIdCallbackPost = /*@__PURE__*/ API.make(() => ({
1207
1418
  input: AddTeamCallbacksTeamTeamIdCallbackPostRequest,
1208
1419
  output: AddTeamCallbacksTeamTeamIdCallbackPostResponse,
@@ -1210,6 +1421,14 @@ export const addTeamCallbacksTeamTeamIdCallbackPost = /*@__PURE__*/ API.make(()
1210
1421
  protocol: LitellmProtocol,
1211
1422
  retry: Retry.Retry,
1212
1423
  }));
1424
+ /** Bulk Delete Team Members Action Remove up to 500 members from one team in one call. Same authorization as `/team/member_delete`: proxy admins, the team's admins, and admins of the team's organization. Each member is named by exactly one of `user_id` or `user_email`; unknown body fields are a 422 and an unknown team is a 404. `data` holds one result per requested member, in request order. A row is `success: false` with an `error` when it names nobody on the team or repeats an earlier row. The roster is rewritten once, under the team's advisory lock, so a concurrent member_add is never overwritten from a stale read. Example curl: ``` curl --location 'http://0.0.0.0:4000/management/v1/teams/team-1/members/bulk_delete' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{"members": [{"user_id": "user-1"}, {"user_email": "user-2@example.com"}]}' ``` */
1425
+ export const bulkDeleteTeamMembersActionManagementV1TeamsTeamIdMembersBulkDeletePost = /*@__PURE__*/ API.make(() => ({
1426
+ input: BulkDeleteTeamMembersActionManagementV1TeamsTeamIdMembersBulkDeletePostRequest,
1427
+ output: BulkTeamMemberDeleteResponse,
1428
+ errors: [UnprocessableEntity],
1429
+ protocol: LitellmProtocol,
1430
+ retry: Retry.Retry,
1431
+ }));
1213
1432
  /** Bulk Team Member Add Bulk add multiple members to a team at once. This endpoint reuses the same logic as /team/member_add but provides a bulk-friendly response format. Parameters: - team_id: str - The ID of the team to add members to - members: List[Member] - List of members to add to the team - all_users: Optional[bool] - Flag to add all users on Proxy to the team - max_budget_in_team: Optional[float] - Maximum budget allocated to each user within the team Returns: - results: List of individual member addition results - total_requested: Total number of members requested for addition - successful_additions: Number of successful additions - failed_additions: Number of failed additions - updated_team: The updated team object Example request: ```bash curl --location 'http://0.0.0.0:4000/team/bulk_member_add' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "team_id": "team-1234", "members": [ { "user_id": "user1", "role": "user" }, { "user_email": "user2@example.com", "role": "admin" } ], "max_budget_in_team": 100.0 }' ``` */
1214
1433
  export const bulkTeamMemberAddTeamBulkMemberAddPost = /*@__PURE__*/ API.make(() => ({
1215
1434
  input: BulkTeamMemberAddTeamBulkMemberAddPostRequest,
@@ -1218,6 +1437,14 @@ export const bulkTeamMemberAddTeamBulkMemberAddPost = /*@__PURE__*/ API.make(()
1218
1437
  protocol: LitellmProtocol,
1219
1438
  retry: Retry.Retry,
1220
1439
  }));
1440
+ /** Bulk Update Team Member Budgets Action Set per-member limits for up to 500 members of one team in one call. Same authorization and member addressing as `/team/member_update`: proxy admins, the team's admins, and admins of the team's organization, with each member named by exactly one of `user_id` or `user_email`. Unknown body fields are a 422 and an unknown team is a 404. Each row is a merge patch of that member's limits: a field left out is untouched, a field sent as null is cleared, and clearing the last limit drops the member back to the team default. A budget row shared by several memberships, the team default included, is copied for the member being patched rather than written in place, so one member's new cap never lands on anybody else. `data` holds one result per requested member, in request order, carrying the limits in force after the write. A row is `success: false` with an `error` when it names nobody on the team or repeats an earlier row. Roles are not part of this route; `/team/member_update` still owns them. Example curl: ``` curl --location 'http://0.0.0.0:4000/management/v1/teams/team-1/members/bulk_update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{"members": [{"user_id": "user-1", "max_budget_in_team": 10}, {"user_email": "user-2@example.com", "max_budget_in_team": 10, "budget_duration": "30d"}]}' ``` */
1441
+ export const bulkUpdateTeamMemberBudgetsActionManagementV1TeamsTeamIdMembersBulkUpdatePost = /*@__PURE__*/ API.make(() => ({
1442
+ input: BulkUpdateTeamMemberBudgetsActionManagementV1TeamsTeamIdMembersBulkUpdatePostRequest,
1443
+ output: BulkTeamMemberBudgetUpdateResponse,
1444
+ errors: [UnprocessableEntity],
1445
+ protocol: LitellmProtocol,
1446
+ retry: Retry.Retry,
1447
+ }));
1221
1448
  /** Bulk Update Team Member Permissions Append permissions to existing teams. Either pass team_ids to target specific teams, or set apply_to_all_teams=True to update every team. For each team, the provided permissions are merged with the team's existing permissions (duplicates are skipped). */
1222
1449
  export const bulkUpdateTeamMemberPermissionsTeamPermissionsBulkUpdatePost = /*@__PURE__*/ API.make(() => ({
1223
1450
  input: BulkUpdateTeamMemberPermissionsTeamPermissionsBulkUpdatePostRequest,
@@ -1298,6 +1525,14 @@ export const getTeamMetadataSchemaTeamMetadataSchemaGet = /*@__PURE__*/ API.make
1298
1525
  protocol: LitellmProtocol,
1299
1526
  retry: Retry.Retry,
1300
1527
  }));
1528
+ /** Get Team Spend By User Spend per user within the given teams, attributed per request from spend logs. Proxy admins may query any team. Team admins and members holding the `/team/daily/activity` permission see every user of the requested teams; other members only see their own row. */
1529
+ export const getTeamSpendByUserTeamSpendByUserGet = /*@__PURE__*/ API.make(() => ({
1530
+ input: GetTeamSpendByUserTeamSpendByUserGetRequest,
1531
+ output: TeamUserSpendResponse,
1532
+ errors: [UnprocessableEntity],
1533
+ protocol: LitellmProtocol,
1534
+ retry: Retry.Retry,
1535
+ }));
1301
1536
  /** Ui View Teams [PROXY-ADMIN ONLY] Filter teams based on partial match of team_id or team_alias with pagination. Args: user_id (Optional[str]): Partial user ID to search for user_email (Optional[str]): Partial email to search for page (int): Page number for pagination (starts at 1) page_size (int): Number of items per page (max 100) user_api_key_dict (UserAPIKeyAuth): User authentication information Returns: List[LiteLLM_SpendLogs]: Paginated list of matching user records */
1302
1537
  export const getUiViewTeamsTeamFilterUi = /*@__PURE__*/ API.make(() => ({
1303
1538
  input: GetUiViewTeamsTeamFilterUiRequest,
@@ -1338,7 +1573,7 @@ export const postBlockTeamTeamBlock = /*@__PURE__*/ API.make(() => ({
1338
1573
  protocol: LitellmProtocol,
1339
1574
  retry: Retry.Retry,
1340
1575
  }));
1341
- /** New Team Allow users to create a new team. Apply user permissions to their team. 👉 [Detailed Doc on setting team budgets](https://docs.litellm.ai/docs/proxy/team_budgets) Parameters: - team_alias: Optional[str] - User defined team alias - team_id: Optional[str] - The team id of the user. If none passed, we'll generate it. - members_with_roles: List[{"role": "admin" or "user", "user_id": "<user-id>"}] - A list of users and their roles in the team. Get user_id when making a new user via `/user/new`. - team_member_permissions: Optional[List[str]] - A list of routes that non-admin team members can access. example: ["/key/generate", "/key/update", "/key/delete"] - metadata: Optional[dict] - Metadata for team, store information for team. Example metadata = {"extra_info": "some info"} - model_rpm_limit: Optional[Dict[str, int]] - The RPM (Requests Per Minute) limit for this team - applied across all keys for this team. - model_tpm_limit: Optional[Dict[str, int]] - The TPM (Tokens Per Minute) limit for this team - applied across all keys for this team. - default_estimated_output_tokens: Optional[int] - Expected output tokens reserved for TPM limiting when a request omits max_tokens, for keys on this team that do not set their own. Positive integer. - default_estimated_output_tokens_per_model: Optional[Dict[str, int]] - Per-model override of the above. Example: {"gpt-4": 4096, "gpt-3.5-turbo": 1024} - mcp_rpm_limit: Optional[Dict[str, int]] - Per-MCP-server RPM limit for this team, keyed by MCP server name (alias if set, else the configured name). Example: {"github": 100, "slack": 200}. Applied across all keys for this team. - tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for this team - all keys with this team_id will have at max this TPM limit - rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for this team - all keys associated with this team_id will have at max this RPM limit - rpm_limit_type: Optional[Literal["guaranteed_throughput", "best_effort_throughput"]] - The type of RPM limit enforcement. Use "guaranteed_throughput" to raise an error if overallocating RPM, or "best_effort_throughput" for best effort enforcement. - tpm_limit_type: Optional[Literal["guaranteed_throughput", "best_effort_throughput"]] - The type of TPM limit enforcement. Use "guaranteed_throughput" to raise an error if overallocating TPM, or "best_effort_throughput" for best effort enforcement. - max_budget: Optional[float] - The maximum budget allocated to the team - all keys for this team_id will have at max this max_budget - soft_budget: Optional[float] - The soft budget threshold for the team. If max_budget is set, soft_budget must be strictly lower than max_budget. Can be set independently if max_budget is not set. - budget_duration: Optional[str] - The duration of the budget for the team. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - models: Optional[list] - A list of models associated with the team - all keys for this team_id will have at most, these models. If empty, assumes all models are allowed. - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. - members: Optional[List] - Control team members via `/team/member/add` and `/team/member/delete`. - 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 team is allowed to use. - organization_id: Optional[str] - The organization id of the team. Default is None. Create via `/organization/new`. - model_aliases: Optional[dict] - Model aliases for the team. [Docs](https://docs.litellm.ai/docs/proxy/team_based_routing#create-team-with-model-alias) - guardrails: Optional[List[str]] - Guardrails for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails) - policies: Optional[List[str]] - Policies for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies) - disable_global_guardrails: Optional[bool] - Whether to disable global guardrails for the key. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - team-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. - team_member_budget: Optional[float] - The maximum budget allocated to an individual team member. - team_member_budget_duration: Optional[str] - The duration of the budget for the team member. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - team_member_rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for individual team members. - team_member_tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for individual team members. - team_member_key_duration: Optional[str] - The duration for a team member's key. e.g. "1d", "1w", "1mo" - allowed_passthrough_routes: Optional[List[str]] - List of allowed pass through routes for the team. - 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. - secret_manager_settings: Optional[dict] - Secret manager settings for the team. [Docs](https://docs.litellm.ai/docs/secret_managers/overview) - router_settings: Optional[UpdateRouterConfig] - team-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 team. Access groups define which models the team can access. Example - ["access_group_1", "access_group_2"]. - enforced_file_expires_after: Optional[dict] - Enforced file expiration policy for the team. Keys created under this team will inherit this policy for file uploads. Example - {"anchor": "created_at", "days": 30}. - enforced_batch_output_expires_after: Optional[dict] - Enforced batch output file expiration policy for the team. Keys created under this team will inherit this policy for batch output files. Example - {"anchor": "created_at", "days": 30}. - budget_limits: Optional[list] - List of concurrent budget windows for the team. 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"}]. - default_team_member_models: Optional[List[str]] - Default models assigned to new team members when they join this team. Must be a subset of the team's models. Returns: - team_id: (str) Unique team id - used for tracking spend across multiple keys for same team id. _deprecated_params: - admins: list - A list of user_id's for the admin role - users: list - A list of user_id's for the user role Example Request: ``` curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "team_alias": "my-new-team_2", "members_with_roles": [{"role": "admin", "user_id": "user-1234"}, {"role": "user", "user_id": "user-2434"}] }' ``` ``` curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "team_alias": "QA Prod Bot", "max_budget": 0.000000001, "budget_duration": "1d" }' ``` */
1576
+ /** New Team Allow users to create a new team. Apply user permissions to their team. 👉 [Detailed Doc on setting team budgets](https://docs.litellm.ai/docs/proxy/team_budgets) Parameters: - team_alias: Optional[str] - User defined team alias - team_id: Optional[str] - The team id of the user. If none passed, we'll generate it. - members_with_roles: List[{"role": "admin" or "user", "user_id": "<user-id>"}] - A list of users and their roles in the team. Get user_id when making a new user via `/user/new`. - team_member_permissions: Optional[List[str]] - A list of routes that non-admin team members can access. example: ["/key/generate", "/key/update", "/key/delete"] - metadata: Optional[dict] - Metadata for team, store information for team. Example metadata = {"extra_info": "some info"} - model_rpm_limit: Optional[Dict[str, int]] - The RPM (Requests Per Minute) limit for this team - applied across all keys for this team. - model_tpm_limit: Optional[Dict[str, int]] - The TPM (Tokens Per Minute) limit for this team - applied across all keys for this team. - default_estimated_output_tokens: Optional[int] - Expected output tokens reserved for TPM limiting when a request omits max_tokens, for keys on this team that do not set their own. Positive integer. - default_estimated_output_tokens_per_model: Optional[Dict[str, int]] - Per-model override of the above. Example: {"gpt-4": 4096, "gpt-3.5-turbo": 1024} - mcp_rpm_limit: Optional[Dict[str, int]] - Per-MCP-server RPM limit for this team, keyed by MCP server name (alias if set, else the configured name). Example: {"github": 100, "slack": 200}. Applied across all keys for this team. - tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for this team - all keys with this team_id will have at max this TPM limit - rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for this team - all keys associated with this team_id will have at max this RPM limit - tpd_limit: Optional[int] - The TPD (Tokens Per Day) limit for this team. Batch submissions are charged against it instead of tpm_limit/rpm_limit - rpm_limit_type: Optional[Literal["guaranteed_throughput", "best_effort_throughput"]] - The type of RPM limit enforcement. Use "guaranteed_throughput" to raise an error if overallocating RPM, or "best_effort_throughput" for best effort enforcement. - tpm_limit_type: Optional[Literal["guaranteed_throughput", "best_effort_throughput"]] - The type of TPM limit enforcement. Use "guaranteed_throughput" to raise an error if overallocating TPM, or "best_effort_throughput" for best effort enforcement. - max_budget: Optional[float] - The maximum budget allocated to the team - all keys for this team_id will have at max this max_budget - soft_budget: Optional[float] - The soft budget threshold for the team. If max_budget is set, soft_budget must be strictly lower than max_budget. Can be set independently if max_budget is not set. - budget_duration: Optional[str] - The duration of the budget for the team. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - models: Optional[list] - A list of models associated with the team - all keys for this team_id will have at most, these models. If empty, assumes all models are allowed. - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. - members: Optional[List] - Control team members via `/team/member/add` and `/team/member/delete`. - 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 team is allowed to use. - organization_id: Optional[str] - The organization id of the team. Default is None. Create via `/organization/new`. - model_aliases: Optional[dict] - Model aliases for the team. [Docs](https://docs.litellm.ai/docs/proxy/team_based_routing#create-team-with-model-alias) - model_max_budget: Optional[dict] - Per-model max budget every key on the team inherits unless the key sets its own for that model. Example: {"gpt-4o": {"max_budget": 10, "budget_duration": "1d"}} - guardrails: Optional[List[str]] - Guardrails for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails) - policies: Optional[List[str]] - Policies for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies) - disable_global_guardrails: Optional[bool] - Whether to disable global guardrails for the key. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - team-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. - team_member_budget: Optional[float] - The maximum budget allocated to an individual team member. - team_member_budget_duration: Optional[str] - The duration of the budget for the team member. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - team_member_rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for individual team members. - team_member_tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for individual team members. - team_member_key_duration: Optional[str] - The duration for a team member's key. e.g. "1d", "1w", "1mo" - allowed_passthrough_routes: Optional[List[str]] - List of allowed pass through routes for the team. - 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. - secret_manager_settings: Optional[dict] - Secret manager settings for the team. [Docs](https://docs.litellm.ai/docs/secret_managers/overview) - router_settings: Optional[UpdateRouterConfig] - team-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 team. Access groups define which models the team can access. Example - ["access_group_1", "access_group_2"]. - enforced_file_expires_after: Optional[dict] - Enforced file expiration policy for the team. Keys created under this team will inherit this policy for file uploads. Example - {"anchor": "created_at", "days": 30}. - enforced_batch_output_expires_after: Optional[dict] - Enforced batch output file expiration policy for the team. Keys created under this team will inherit this policy for batch output files. Example - {"anchor": "created_at", "days": 30}. - budget_limits: Optional[list] - List of concurrent budget windows for the team. 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"}]. - default_team_member_models: Optional[List[str]] - Default models assigned to new team members when they join this team. Must be a subset of the team's models. Returns: - team_id: (str) Unique team id - used for tracking spend across multiple keys for same team id. _deprecated_params: - admins: list - A list of user_id's for the admin role - users: list - A list of user_id's for the user role Example Request: ``` curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "team_alias": "my-new-team_2", "members_with_roles": [{"role": "admin", "user_id": "user-1234"}, {"role": "user", "user_id": "user-2434"}] }' ``` ``` curl --location 'http://0.0.0.0:4000/team/new' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "team_alias": "QA Prod Bot", "max_budget": 0.000000001, "budget_duration": "1d" }' ``` */
1342
1577
  export const postNewTeamTeamNew = /*@__PURE__*/ API.make(() => ({
1343
1578
  input: PostNewTeamTeamNewRequest,
1344
1579
  output: LiteLLMTeamTable,
@@ -1418,7 +1653,7 @@ export const updateTeamMemberPermissionsTeamPermissionsUpdatePost = /*@__PURE__*
1418
1653
  protocol: LitellmProtocol,
1419
1654
  retry: Retry.Retry,
1420
1655
  }));
1421
- /** Update Team Use `/team/member_add` AND `/team/member/delete` to add/remove new team members You can now update team budget / rate limits via /team/update Parameters: - team_id: str - The team id of the user. Required param. - team_alias: Optional[str] - User defined team alias - team_member_permissions: Optional[List[str]] - A list of routes that non-admin team members can access. example: ["/key/generate", "/key/update", "/key/delete"] - metadata: Optional[dict] - Metadata for team, store information for team. Example metadata = {"team": "core-infra", "app": "app2", "email": "ishaan@berri.ai" } - tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for this team - all keys with this team_id will have at max this TPM limit - rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for this team - all keys associated with this team_id will have at max this RPM limit - max_budget: Optional[float] - The maximum budget allocated to the team - all keys for this team_id will have at max this max_budget - soft_budget: Optional[float] - The soft budget threshold for the team. If max_budget is set (either in the request or existing), soft_budget must be strictly lower than max_budget. Can be set independently if max_budget is not set. - budget_duration: Optional[str] - The duration of the budget for the team. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - models: Optional[list] - A list of models associated with the team - all keys for this team_id will have at most, these models. If empty, assumes all models are allowed. - prompts: Optional[List[str]] - List of prompts that the team is allowed to use. - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. - 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). - organization_id: Optional[str] - The organization id of the team. Default is None. Create via `/organization/new`. - model_aliases: Optional[dict] - Model aliases for the team. [Docs](https://docs.litellm.ai/docs/proxy/team_based_routing#create-team-with-model-alias) - guardrails: Optional[List[str]] - Guardrails for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails) - policies: Optional[List[str]] - Policies for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies) - disable_global_guardrails: Optional[bool] - Whether to disable global guardrails for the key. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - team-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. - team_member_budget: Optional[float] - The maximum budget allocated to an individual team member. - team_member_budget_duration: Optional[str] - The duration of the budget for the team member. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - team_member_rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for individual team members. - team_member_tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for individual team members. - team_member_key_duration: Optional[str] - The duration for a team member's key. e.g. "1d", "1w", "1mo" - allowed_passthrough_routes: Optional[List[str]] - List of allowed pass through routes for the team. - model_rpm_limit: Optional[Dict[str, int]] - The RPM (Requests Per Minute) limit per model for this team. Example: {"gpt-4": 100, "gpt-3.5-turbo": 200} - model_tpm_limit: Optional[Dict[str, int]] - The TPM (Tokens Per Minute) limit per model for this team. Example: {"gpt-4": 10000, "gpt-3.5-turbo": 20000} - default_estimated_output_tokens: Optional[int] - Expected output tokens reserved for TPM limiting when a request omits max_tokens, for keys on this team that do not set their own. Positive integer. - default_estimated_output_tokens_per_model: Optional[Dict[str, int]] - Per-model override of the above. Example: {"gpt-4": 4096, "gpt-3.5-turbo": 1024} - mcp_rpm_limit: Optional[Dict[str, int]] - Per-MCP-server RPM limit for this team, keyed by MCP server name (alias if set, else the configured name). Example: {"github": 100, "slack": 200}. Applied across all keys for this team. Example - update team TPM Limit - 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. - secret_manager_settings: Optional[dict] - Secret manager settings for the team. [Docs](https://docs.litellm.ai/docs/secret_managers/overview) - router_settings: Optional[UpdateRouterConfig] - team-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 team. Access groups define which models the team can access. Example - ["access_group_1", "access_group_2"]. - enforced_file_expires_after: Optional[dict] - Enforced file expiration policy for the team. Keys created under this team will inherit this policy for file uploads. Example - {"anchor": "created_at", "days": 30}. - enforced_batch_output_expires_after: Optional[dict] - Enforced batch output file expiration policy for the team. Keys created under this team will inherit this policy for batch output files. Example - {"anchor": "created_at", "days": 30}. - budget_limits: Optional[list] - List of concurrent budget windows for the team. 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"}]. - default_team_member_models: Optional[List[str]] - Default models assigned to new team members when they join this team. Must be a subset of the team's models. ``` curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", "tpm_limit": 100 }' ``` Example - Update Team `max_budget` budget ``` curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", "max_budget": 10 }' ``` */
1656
+ /** Update Team Use `/team/member_add` AND `/team/member/delete` to add/remove new team members You can now update team budget / rate limits via /team/update Parameters: - team_id: str - The team id of the user. Required param. - team_alias: Optional[str] - User defined team alias - team_member_permissions: Optional[List[str]] - A list of routes that non-admin team members can access. example: ["/key/generate", "/key/update", "/key/delete"] - metadata: Optional[dict] - Metadata for team, store information for team. Example metadata = {"team": "core-infra", "app": "app2", "email": "ishaan@berri.ai" } - tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for this team - all keys with this team_id will have at max this TPM limit - rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for this team - all keys associated with this team_id will have at max this RPM limit - tpd_limit: Optional[int] - The TPD (Tokens Per Day) limit for this team. Batch submissions are charged against it instead of tpm_limit/rpm_limit - max_budget: Optional[float] - The maximum budget allocated to the team - all keys for this team_id will have at max this max_budget - soft_budget: Optional[float] - The soft budget threshold for the team. If max_budget is set (either in the request or existing), soft_budget must be strictly lower than max_budget. Can be set independently if max_budget is not set. - budget_duration: Optional[str] - The duration of the budget for the team. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - models: Optional[list] - A list of models associated with the team - all keys for this team_id will have at most, these models. If empty, assumes all models are allowed. - prompts: Optional[List[str]] - List of prompts that the team is allowed to use. - blocked: bool - Flag indicating if the team is blocked or not - will stop all calls from keys with this team_id. - 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). - organization_id: Optional[str] - The organization id of the team. Default is None. Create via `/organization/new`. - model_aliases: Optional[dict] - Model aliases for the team. [Docs](https://docs.litellm.ai/docs/proxy/team_based_routing#create-team-with-model-alias) - model_max_budget: Optional[dict] - Per-model max budget every key on the team inherits unless the key sets its own for that model. Example: {"gpt-4o": {"max_budget": 10, "budget_duration": "1d"}} - guardrails: Optional[List[str]] - Guardrails for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails) - policies: Optional[List[str]] - Policies for the team. [Docs](https://docs.litellm.ai/docs/proxy/guardrails/guardrail_policies) - disable_global_guardrails: Optional[bool] - Whether to disable global guardrails for the key. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - team-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. - team_member_budget: Optional[float] - The maximum budget allocated to an individual team member. - team_member_budget_duration: Optional[str] - The duration of the budget for the team member. Doc [here](https://docs.litellm.ai/docs/proxy/team_budgets) - team_member_rpm_limit: Optional[int] - The RPM (Requests Per Minute) limit for individual team members. - team_member_tpm_limit: Optional[int] - The TPM (Tokens Per Minute) limit for individual team members. - team_member_key_duration: Optional[str] - The duration for a team member's key. e.g. "1d", "1w", "1mo" - allowed_passthrough_routes: Optional[List[str]] - List of allowed pass through routes for the team. - model_rpm_limit: Optional[Dict[str, int]] - The RPM (Requests Per Minute) limit per model for this team. Example: {"gpt-4": 100, "gpt-3.5-turbo": 200} - model_tpm_limit: Optional[Dict[str, int]] - The TPM (Tokens Per Minute) limit per model for this team. Example: {"gpt-4": 10000, "gpt-3.5-turbo": 20000} - default_estimated_output_tokens: Optional[int] - Expected output tokens reserved for TPM limiting when a request omits max_tokens, for keys on this team that do not set their own. Positive integer. - default_estimated_output_tokens_per_model: Optional[Dict[str, int]] - Per-model override of the above. Example: {"gpt-4": 4096, "gpt-3.5-turbo": 1024} - mcp_rpm_limit: Optional[Dict[str, int]] - Per-MCP-server RPM limit for this team, keyed by MCP server name (alias if set, else the configured name). Example: {"github": 100, "slack": 200}. Applied across all keys for this team. Example - update team TPM Limit - 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. - secret_manager_settings: Optional[dict] - Secret manager settings for the team. [Docs](https://docs.litellm.ai/docs/secret_managers/overview) - router_settings: Optional[UpdateRouterConfig] - team-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 team. Access groups define which models the team can access. Example - ["access_group_1", "access_group_2"]. - enforced_file_expires_after: Optional[dict] - Enforced file expiration policy for the team. Keys created under this team will inherit this policy for file uploads. Example - {"anchor": "created_at", "days": 30}. - enforced_batch_output_expires_after: Optional[dict] - Enforced batch output file expiration policy for the team. Keys created under this team will inherit this policy for batch output files. Example - {"anchor": "created_at", "days": 30}. - budget_limits: Optional[list] - List of concurrent budget windows for the team. 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"}]. - default_team_member_models: Optional[List[str]] - Default models assigned to new team members when they join this team. Must be a subset of the team's models. ``` curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", "tpm_limit": 100 }' ``` Example - Update Team `max_budget` budget ``` curl --location 'http://0.0.0.0:4000/team/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "team_id": "8d916b1c-510d-4894-a334-1c16a93344f5", "max_budget": 10 }' ``` */
1422
1657
  export const updateTeamTeamUpdatePost = /*@__PURE__*/ API.make(() => ({
1423
1658
  input: UpdateTeamTeamUpdatePostRequest,
1424
1659
  output: UpdateTeamTeamUpdatePostResponse,