@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.
- package/README.md +48 -12
- package/dist/services/a2a.js +1 -1
- package/dist/services/a2a_registration.js +1 -1
- package/dist/services/access_groups.d.ts +18 -0
- package/dist/services/access_groups.d.ts.map +1 -1
- package/dist/services/access_groups.js +15 -1
- package/dist/services/access_groups.js.map +1 -1
- package/dist/services/adaptive_router.js +1 -1
- package/dist/services/agents.d.ts +10 -0
- package/dist/services/agents.d.ts.map +1 -1
- package/dist/services/agents.js +10 -1
- package/dist/services/agents.js.map +1 -1
- package/dist/services/alerting.js +1 -1
- package/dist/services/anthropic_passthrough.js +1 -1
- package/dist/services/anthropic_skills.d.ts +7 -1
- package/dist/services/anthropic_skills.d.ts.map +1 -1
- package/dist/services/anthropic_skills.js +6 -2
- package/dist/services/anthropic_skills.js.map +1 -1
- package/dist/services/assistants.js +1 -1
- package/dist/services/audio.js +1 -1
- package/dist/services/audit_logging.d.ts +2 -0
- package/dist/services/audit_logging.d.ts.map +1 -1
- package/dist/services/audit_logging.js +2 -1
- package/dist/services/audit_logging.js.map +1 -1
- package/dist/services/auto_router.d.ts +162 -62
- package/dist/services/auto_router.d.ts.map +1 -1
- package/dist/services/auto_router.js +92 -31
- package/dist/services/auto_router.js.map +1 -1
- package/dist/services/batch.js +1 -1
- package/dist/services/beta_agents.js +1 -1
- package/dist/services/beta_mcp.js +1 -1
- package/dist/services/budget_management.d.ts +8 -3
- package/dist/services/budget_management.d.ts.map +1 -1
- package/dist/services/budget_management.js +7 -4
- package/dist/services/budget_management.js.map +1 -1
- package/dist/services/budget_spend_tracking.d.ts +24 -5
- package/dist/services/budget_spend_tracking.d.ts.map +1 -1
- package/dist/services/budget_spend_tracking.js +17 -4
- package/dist/services/budget_spend_tracking.js.map +1 -1
- package/dist/services/cache_settings.js +1 -1
- package/dist/services/caching.js +1 -1
- package/dist/services/chat_completions.js +1 -1
- package/dist/services/claude_code_marketplace.d.ts +11 -10
- package/dist/services/claude_code_marketplace.d.ts.map +1 -1
- package/dist/services/claude_code_marketplace.js +8 -6
- package/dist/services/claude_code_marketplace.js.map +1 -1
- package/dist/services/cloudzero.js +1 -1
- package/dist/services/completions.js +1 -1
- package/dist/services/compliance.js +1 -1
- package/dist/services/config_overrides.d.ts +5 -1
- package/dist/services/config_overrides.d.ts.map +1 -1
- package/dist/services/config_overrides.js +3 -1
- package/dist/services/config_overrides.js.map +1 -1
- package/dist/services/config_yaml.d.ts +120 -6
- package/dist/services/config_yaml.d.ts.map +1 -1
- package/dist/services/config_yaml.js +67 -1
- package/dist/services/config_yaml.js.map +1 -1
- package/dist/services/containers.d.ts +8 -2
- package/dist/services/containers.d.ts.map +1 -1
- package/dist/services/containers.js +13 -5
- package/dist/services/containers.js.map +1 -1
- package/dist/services/coordination_redis_settings.js +1 -1
- package/dist/services/cost_tracking.d.ts +91 -1
- package/dist/services/cost_tracking.d.ts.map +1 -1
- package/dist/services/cost_tracking.js +82 -2
- package/dist/services/cost_tracking.js.map +1 -1
- package/dist/services/credential_management.d.ts +16 -3
- package/dist/services/credential_management.d.ts.map +1 -1
- package/dist/services/credential_management.js +13 -4
- package/dist/services/credential_management.js.map +1 -1
- package/dist/services/customer_management.d.ts +25 -2
- package/dist/services/customer_management.d.ts.map +1 -1
- package/dist/services/customer_management.js +22 -3
- package/dist/services/customer_management.js.map +1 -1
- package/dist/services/email_management.js +1 -1
- package/dist/services/embeddings.js +1 -1
- package/dist/services/evals.js +1 -1
- package/dist/services/experimental.js +1 -1
- package/dist/services/fallback_management.js +1 -1
- package/dist/services/files.js +1 -1
- package/dist/services/fine_tuning.js +1 -1
- package/dist/services/gemini_agents.js +1 -1
- package/dist/services/google_genai_endpoints.js +1 -1
- package/dist/services/guardrails.d.ts +80 -7
- package/dist/services/guardrails.d.ts.map +1 -1
- package/dist/services/guardrails.js +37 -1
- package/dist/services/guardrails.js.map +1 -1
- package/dist/services/health.d.ts +2 -2
- package/dist/services/health.d.ts.map +1 -1
- package/dist/services/health.js +2 -2
- package/dist/services/health.js.map +1 -1
- package/dist/services/images.js +1 -1
- package/dist/services/index.d.ts +1 -15
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -15
- package/dist/services/index.js.map +1 -1
- package/dist/services/internal_user_management.d.ts +227 -39
- package/dist/services/internal_user_management.d.ts.map +1 -1
- package/dist/services/internal_user_management.js +194 -37
- package/dist/services/internal_user_management.js.map +1 -1
- package/dist/services/invite_links.js +1 -1
- package/dist/services/jwt_mappings.d.ts +3 -0
- package/dist/services/jwt_mappings.d.ts.map +1 -1
- package/dist/services/jwt_mappings.js +4 -1
- package/dist/services/jwt_mappings.js.map +1 -1
- package/dist/services/key_management.d.ts +116 -50
- package/dist/services/key_management.d.ts.map +1 -1
- package/dist/services/key_management.js +95 -40
- package/dist/services/key_management.js.map +1 -1
- package/dist/services/langfuse_passthrough.js +1 -1
- package/dist/services/llm_passthrough.d.ts +1199 -0
- package/dist/services/llm_passthrough.d.ts.map +1 -0
- package/dist/services/llm_passthrough.js +2150 -0
- package/dist/services/llm_passthrough.js.map +1 -0
- package/dist/services/llm_utils.js +1 -1
- package/dist/services/logging_callbacks.js +1 -1
- package/dist/services/mcp_byok_oauth.d.ts +18 -11
- package/dist/services/mcp_byok_oauth.d.ts.map +1 -1
- package/dist/services/mcp_byok_oauth.js +27 -24
- package/dist/services/mcp_byok_oauth.js.map +1 -1
- package/dist/services/mcp_discoverable.d.ts +34 -0
- package/dist/services/mcp_discoverable.d.ts.map +1 -1
- package/dist/services/mcp_discoverable.js +51 -1
- package/dist/services/mcp_discoverable.js.map +1 -1
- package/dist/services/mcp_management.d.ts +90 -2
- package/dist/services/mcp_management.d.ts.map +1 -1
- package/dist/services/mcp_management.js +115 -3
- package/dist/services/mcp_management.js.map +1 -1
- package/dist/services/mcp_rest.d.ts +13 -0
- package/dist/services/mcp_rest.d.ts.map +1 -1
- package/dist/services/mcp_rest.js +10 -2
- package/dist/services/mcp_rest.js.map +1 -1
- package/dist/services/memory_management.d.ts +2 -0
- package/dist/services/memory_management.d.ts.map +1 -1
- package/dist/services/memory_management.js +2 -1
- package/dist/services/memory_management.js.map +1 -1
- package/dist/services/misc.d.ts +86 -1
- package/dist/services/misc.d.ts.map +1 -1
- package/dist/services/misc.js +126 -2
- package/dist/services/misc.js.map +1 -1
- package/dist/services/model_management.d.ts +310 -19
- package/dist/services/model_management.d.ts.map +1 -1
- package/dist/services/model_management.js +240 -7
- package/dist/services/model_management.js.map +1 -1
- package/dist/services/moderations.js +1 -1
- package/dist/services/ocr.js +1 -1
- package/dist/services/open_ai_pass_through.d.ts +35 -90
- package/dist/services/open_ai_pass_through.d.ts.map +1 -1
- package/dist/services/open_ai_pass_through.js +41 -139
- package/dist/services/open_ai_pass_through.js.map +1 -1
- package/dist/services/organization_management.d.ts +21 -1
- package/dist/services/organization_management.d.ts.map +1 -1
- package/dist/services/organization_management.js +20 -2
- package/dist/services/organization_management.js.map +1 -1
- package/dist/services/plugins.js +1 -1
- package/dist/services/policies.d.ts +2 -0
- package/dist/services/policies.d.ts.map +1 -1
- package/dist/services/policies.js +3 -1
- package/dist/services/policies.js.map +1 -1
- package/dist/services/policy_engine.d.ts +6 -0
- package/dist/services/policy_engine.d.ts.map +1 -1
- package/dist/services/policy_engine.js +4 -1
- package/dist/services/policy_engine.js.map +1 -1
- package/dist/services/project_management.d.ts +15 -0
- package/dist/services/project_management.d.ts.map +1 -1
- package/dist/services/project_management.js +14 -1
- package/dist/services/project_management.js.map +1 -1
- package/dist/services/prompts.js +1 -1
- package/dist/services/public.d.ts +124 -0
- package/dist/services/public.d.ts.map +1 -1
- package/dist/services/public.js +158 -1
- package/dist/services/public.js.map +1 -1
- package/dist/services/rag.js +1 -1
- package/dist/services/realtime.d.ts +4 -26
- package/dist/services/realtime.d.ts.map +1 -1
- package/dist/services/realtime.js +7 -57
- package/dist/services/realtime.js.map +1 -1
- package/dist/services/rerank.d.ts +72 -0
- package/dist/services/rerank.d.ts.map +1 -1
- package/dist/services/rerank.js +61 -4
- package/dist/services/rerank.js.map +1 -1
- package/dist/services/responses.d.ts +30 -0
- package/dist/services/responses.d.ts.map +1 -1
- package/dist/services/responses.js +59 -1
- package/dist/services/responses.js.map +1 -1
- package/dist/services/router_settings.js +1 -1
- package/dist/services/rust_control_plane.js +1 -1
- package/dist/services/scim.d.ts +41 -1
- package/dist/services/scim.d.ts.map +1 -1
- package/dist/services/scim.js +60 -2
- package/dist/services/scim.js.map +1 -1
- package/dist/services/search.js +1 -1
- package/dist/services/search_tools.js +1 -1
- package/dist/services/settings.d.ts +88 -0
- package/dist/services/settings.d.ts.map +1 -1
- package/dist/services/settings.js +113 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/services/sso_settings.d.ts +1 -1
- package/dist/services/sso_settings.d.ts.map +1 -1
- package/dist/services/sso_settings.js +1 -1
- package/dist/services/sso_settings.js.map +1 -1
- package/dist/services/tag_management.d.ts +7 -0
- package/dist/services/tag_management.d.ts.map +1 -1
- package/dist/services/tag_management.js +8 -1
- package/dist/services/tag_management.js.map +1 -1
- package/dist/services/team_management.d.ts +265 -17
- package/dist/services/team_management.d.ts.map +1 -1
- package/dist/services/team_management.js +247 -12
- package/dist/services/team_management.js.map +1 -1
- package/dist/services/tools.js +1 -1
- package/dist/services/ui_settings.js +1 -1
- package/dist/services/ui_theme_settings.js +1 -1
- package/dist/services/usage_ai.js +1 -1
- package/dist/services/vantage.js +1 -1
- package/dist/services/vector_store_management.js +1 -1
- package/dist/services/vector_stores.js +1 -1
- package/dist/services/videos.js +1 -1
- package/dist/services/web_socket.d.ts +0 -18
- package/dist/services/web_socket.d.ts.map +1 -1
- package/dist/services/web_socket.js +1 -33
- package/dist/services/web_socket.js.map +1 -1
- package/dist/services/workflow_management.js +1 -1
- package/package.json +1 -1
- package/src/services/a2a.ts +1 -1
- package/src/services/a2a_registration.ts +1 -1
- package/src/services/access_groups.ts +44 -1
- package/src/services/adaptive_router.ts +1 -1
- package/src/services/agents.ts +22 -1
- package/src/services/alerting.ts +1 -1
- package/src/services/anthropic_passthrough.ts +1 -1
- package/src/services/anthropic_skills.ts +12 -2
- package/src/services/assistants.ts +1 -1
- package/src/services/audio.ts +1 -1
- package/src/services/audit_logging.ts +4 -1
- package/src/services/auto_router.ts +303 -93
- package/src/services/batch.ts +1 -1
- package/src/services/beta_agents.ts +1 -1
- package/src/services/beta_mcp.ts +1 -1
- package/src/services/budget_management.ts +12 -4
- package/src/services/budget_spend_tracking.ts +38 -6
- package/src/services/cache_settings.ts +1 -1
- package/src/services/caching.ts +1 -1
- package/src/services/chat_completions.ts +1 -1
- package/src/services/claude_code_marketplace.ts +20 -14
- package/src/services/cloudzero.ts +1 -1
- package/src/services/completions.ts +1 -1
- package/src/services/compliance.ts +1 -1
- package/src/services/config_overrides.ts +8 -2
- package/src/services/config_yaml.ts +251 -6
- package/src/services/containers.ts +29 -11
- package/src/services/coordination_redis_settings.ts +1 -1
- package/src/services/cost_tracking.ts +198 -2
- package/src/services/credential_management.ts +25 -6
- package/src/services/customer_management.ts +49 -3
- package/src/services/email_management.ts +1 -1
- package/src/services/embeddings.ts +1 -1
- package/src/services/evals.ts +1 -1
- package/src/services/experimental.ts +1 -1
- package/src/services/fallback_management.ts +1 -1
- package/src/services/files.ts +1 -1
- package/src/services/fine_tuning.ts +1 -1
- package/src/services/gemini_agents.ts +1 -1
- package/src/services/google_genai_endpoints.ts +1 -1
- package/src/services/guardrails.ts +198 -8
- package/src/services/health.ts +3 -2
- package/src/services/images.ts +1 -1
- package/src/services/index.ts +1 -15
- package/src/services/internal_user_management.ts +565 -103
- package/src/services/invite_links.ts +1 -1
- package/src/services/jwt_mappings.ts +7 -1
- package/src/services/key_management.ts +257 -127
- package/src/services/langfuse_passthrough.ts +1 -1
- package/src/services/llm_passthrough.ts +4542 -0
- package/src/services/llm_utils.ts +1 -1
- package/src/services/logging_callbacks.ts +1 -1
- package/src/services/mcp_byok_oauth.ts +65 -45
- package/src/services/mcp_discoverable.ts +109 -1
- package/src/services/mcp_management.ts +258 -3
- package/src/services/mcp_rest.ts +30 -5
- package/src/services/memory_management.ts +4 -1
- package/src/services/misc.ts +269 -2
- package/src/services/model_management.ts +666 -21
- package/src/services/moderations.ts +1 -1
- package/src/services/ocr.ts +1 -1
- package/src/services/open_ai_pass_through.ts +81 -286
- package/src/services/organization_management.ts +44 -2
- package/src/services/plugins.ts +1 -1
- package/src/services/policies.ts +5 -1
- package/src/services/policy_engine.ts +10 -1
- package/src/services/project_management.ts +33 -1
- package/src/services/prompts.ts +1 -1
- package/src/services/public.ts +356 -1
- package/src/services/rag.ts +1 -1
- package/src/services/realtime.ts +11 -111
- package/src/services/rerank.ts +187 -7
- package/src/services/responses.ts +117 -1
- package/src/services/router_settings.ts +1 -1
- package/src/services/rust_control_plane.ts +1 -1
- package/src/services/scim.ts +134 -3
- package/src/services/search.ts +1 -1
- package/src/services/search_tools.ts +1 -1
- package/src/services/settings.ts +278 -1
- package/src/services/sso_settings.ts +2 -1
- package/src/services/tag_management.ts +15 -1
- package/src/services/team_management.ts +676 -37
- package/src/services/tools.ts +1 -1
- package/src/services/ui_settings.ts +1 -1
- package/src/services/ui_theme_settings.ts +1 -1
- package/src/services/usage_ai.ts +1 -1
- package/src/services/vantage.ts +1 -1
- package/src/services/vector_store_management.ts +1 -1
- package/src/services/vector_stores.ts +1 -1
- package/src/services/videos.ts +1 -1
- package/src/services/web_socket.ts +1 -61
- package/src/services/workflow_management.ts +1 -1
- package/dist/services/anthropic_pass_through.d.ts +0 -70
- package/dist/services/anthropic_pass_through.d.ts.map +0 -1
- package/dist/services/anthropic_pass_through.js +0 -114
- package/dist/services/anthropic_pass_through.js.map +0 -1
- package/dist/services/assembly_ai_eu_pass_through.d.ts +0 -70
- package/dist/services/assembly_ai_eu_pass_through.d.ts.map +0 -1
- package/dist/services/assembly_ai_eu_pass_through.js +0 -114
- package/dist/services/assembly_ai_eu_pass_through.js.map +0 -1
- package/dist/services/assembly_ai_pass_through.d.ts +0 -70
- package/dist/services/assembly_ai_pass_through.d.ts.map +0 -1
- package/dist/services/assembly_ai_pass_through.js +0 -114
- package/dist/services/assembly_ai_pass_through.js.map +0 -1
- package/dist/services/aws_comprehend_medical_pass_through.d.ts +0 -36
- package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +0 -1
- package/dist/services/aws_comprehend_medical_pass_through.js +0 -56
- package/dist/services/aws_comprehend_medical_pass_through.js.map +0 -1
- package/dist/services/azure_ai_pass_through.d.ts +0 -70
- package/dist/services/azure_ai_pass_through.d.ts.map +0 -1
- package/dist/services/azure_ai_pass_through.js +0 -112
- package/dist/services/azure_ai_pass_through.js.map +0 -1
- package/dist/services/azure_pass_through.d.ts +0 -70
- package/dist/services/azure_pass_through.d.ts.map +0 -1
- package/dist/services/azure_pass_through.js +0 -107
- package/dist/services/azure_pass_through.js.map +0 -1
- package/dist/services/bedrock_pass_through.d.ts +0 -70
- package/dist/services/bedrock_pass_through.d.ts.map +0 -1
- package/dist/services/bedrock_pass_through.js +0 -114
- package/dist/services/bedrock_pass_through.js.map +0 -1
- package/dist/services/cohere_pass_through.d.ts +0 -70
- package/dist/services/cohere_pass_through.d.ts.map +0 -1
- package/dist/services/cohere_pass_through.js +0 -112
- package/dist/services/cohere_pass_through.js.map +0 -1
- package/dist/services/cursor_pass_through.d.ts +0 -70
- package/dist/services/cursor_pass_through.d.ts.map +0 -1
- package/dist/services/cursor_pass_through.js +0 -112
- package/dist/services/cursor_pass_through.js.map +0 -1
- package/dist/services/google_ai_studio_pass_through.d.ts +0 -70
- package/dist/services/google_ai_studio_pass_through.d.ts.map +0 -1
- package/dist/services/google_ai_studio_pass_through.js +0 -112
- package/dist/services/google_ai_studio_pass_through.js.map +0 -1
- package/dist/services/milvus_pass_through.d.ts +0 -70
- package/dist/services/milvus_pass_through.d.ts.map +0 -1
- package/dist/services/milvus_pass_through.js +0 -112
- package/dist/services/milvus_pass_through.js.map +0 -1
- package/dist/services/mistral_pass_through.d.ts +0 -70
- package/dist/services/mistral_pass_through.d.ts.map +0 -1
- package/dist/services/mistral_pass_through.js +0 -114
- package/dist/services/mistral_pass_through.js.map +0 -1
- package/dist/services/vertex_ai_pass_through.d.ts +0 -180
- package/dist/services/vertex_ai_pass_through.d.ts.map +0 -1
- package/dist/services/vertex_ai_pass_through.js +0 -334
- package/dist/services/vertex_ai_pass_through.js.map +0 -1
- package/dist/services/vllm_pass_through.d.ts +0 -70
- package/dist/services/vllm_pass_through.d.ts.map +0 -1
- package/dist/services/vllm_pass_through.js +0 -104
- package/dist/services/vllm_pass_through.js.map +0 -1
- package/dist/services/watsonx_pass_through.d.ts +0 -70
- package/dist/services/watsonx_pass_through.d.ts.map +0 -1
- package/dist/services/watsonx_pass_through.js +0 -114
- package/dist/services/watsonx_pass_through.js.map +0 -1
- package/src/services/anthropic_pass_through.ts +0 -233
- package/src/services/assembly_ai_eu_pass_through.ts +0 -237
- package/src/services/assembly_ai_pass_through.ts +0 -237
- package/src/services/aws_comprehend_medical_pass_through.ts +0 -109
- package/src/services/azure_ai_pass_through.ts +0 -231
- package/src/services/azure_pass_through.ts +0 -227
- package/src/services/bedrock_pass_through.ts +0 -229
- package/src/services/cohere_pass_through.ts +0 -227
- package/src/services/cursor_pass_through.ts +0 -227
- package/src/services/google_ai_studio_pass_through.ts +0 -227
- package/src/services/milvus_pass_through.ts +0 -227
- package/src/services/mistral_pass_through.ts +0 -229
- package/src/services/vertex_ai_pass_through.ts +0 -684
- package/src/services/vllm_pass_through.ts +0 -227
- 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.
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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 (
|
|
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,
|