@homeflare/distilled-litellm 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +77 -0
- package/dist/credentials.d.ts +27 -0
- package/dist/credentials.d.ts.map +1 -0
- package/dist/credentials.js +67 -0
- package/dist/credentials.js.map +1 -0
- package/dist/errors.d.ts +92 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +72 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +18 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +135 -0
- package/dist/protocol.js.map +1 -0
- package/dist/retry.d.ts +50 -0
- package/dist/retry.d.ts.map +1 -0
- package/dist/retry.js +43 -0
- package/dist/retry.js.map +1 -0
- package/dist/services/a2a.d.ts +70 -0
- package/dist/services/a2a.d.ts.map +1 -0
- package/dist/services/a2a.js +128 -0
- package/dist/services/a2a.js.map +1 -0
- package/dist/services/a2a_registration.d.ts +43 -0
- package/dist/services/a2a_registration.d.ts.map +1 -0
- package/dist/services/a2a_registration.js +40 -0
- package/dist/services/a2a_registration.js.map +1 -0
- package/dist/services/access_groups.d.ts +192 -0
- package/dist/services/access_groups.d.ts.map +1 -0
- package/dist/services/access_groups.js +283 -0
- package/dist/services/access_groups.js.map +1 -0
- package/dist/services/adaptive_router.d.ts +15 -0
- package/dist/services/adaptive_router.d.ts.map +1 -0
- package/dist/services/adaptive_router.js +25 -0
- package/dist/services/adaptive_router.js.map +1 -0
- package/dist/services/agents.d.ts +537 -0
- package/dist/services/agents.d.ts.map +1 -0
- package/dist/services/agents.js +481 -0
- package/dist/services/agents.js.map +1 -0
- package/dist/services/alerting.d.ts +15 -0
- package/dist/services/alerting.d.ts.map +1 -0
- package/dist/services/alerting.js +25 -0
- package/dist/services/alerting.js.map +1 -0
- package/dist/services/anthropic_pass_through.d.ts +70 -0
- package/dist/services/anthropic_pass_through.d.ts.map +1 -0
- package/dist/services/anthropic_pass_through.js +114 -0
- package/dist/services/anthropic_pass_through.js.map +1 -0
- package/dist/services/anthropic_passthrough.d.ts +35 -0
- package/dist/services/anthropic_passthrough.d.ts.map +1 -0
- package/dist/services/anthropic_passthrough.js +59 -0
- package/dist/services/anthropic_passthrough.js.map +1 -0
- package/dist/services/anthropic_skills.d.ts +74 -0
- package/dist/services/anthropic_skills.d.ts.map +1 -0
- package/dist/services/anthropic_skills.js +94 -0
- package/dist/services/anthropic_skills.js.map +1 -0
- package/dist/services/assembly_ai_eu_pass_through.d.ts +70 -0
- package/dist/services/assembly_ai_eu_pass_through.d.ts.map +1 -0
- package/dist/services/assembly_ai_eu_pass_through.js +114 -0
- package/dist/services/assembly_ai_eu_pass_through.js.map +1 -0
- package/dist/services/assembly_ai_pass_through.d.ts +70 -0
- package/dist/services/assembly_ai_pass_through.d.ts.map +1 -0
- package/dist/services/assembly_ai_pass_through.js +114 -0
- package/dist/services/assembly_ai_pass_through.js.map +1 -0
- package/dist/services/assistants.d.ts +185 -0
- package/dist/services/assistants.d.ts.map +1 -0
- package/dist/services/assistants.js +331 -0
- package/dist/services/assistants.js.map +1 -0
- package/dist/services/audio.d.ts +57 -0
- package/dist/services/audio.d.ts.map +1 -0
- package/dist/services/audio.js +96 -0
- package/dist/services/audio.js.map +1 -0
- package/dist/services/audit_logging.d.ts +98 -0
- package/dist/services/audit_logging.d.ts.map +1 -0
- package/dist/services/audit_logging.js +83 -0
- package/dist/services/audit_logging.js.map +1 -0
- package/dist/services/auto_router.d.ts +286 -0
- package/dist/services/auto_router.d.ts.map +1 -0
- package/dist/services/auto_router.js +248 -0
- package/dist/services/auto_router.js.map +1 -0
- package/dist/services/aws_comprehend_medical_pass_through.d.ts +36 -0
- package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +1 -0
- package/dist/services/aws_comprehend_medical_pass_through.js +56 -0
- package/dist/services/aws_comprehend_medical_pass_through.js.map +1 -0
- package/dist/services/azure_ai_pass_through.d.ts +70 -0
- package/dist/services/azure_ai_pass_through.d.ts.map +1 -0
- package/dist/services/azure_ai_pass_through.js +112 -0
- package/dist/services/azure_ai_pass_through.js.map +1 -0
- package/dist/services/azure_pass_through.d.ts +70 -0
- package/dist/services/azure_pass_through.d.ts.map +1 -0
- package/dist/services/azure_pass_through.js +107 -0
- package/dist/services/azure_pass_through.js.map +1 -0
- package/dist/services/batch.d.ts +165 -0
- package/dist/services/batch.d.ts.map +1 -0
- package/dist/services/batch.js +265 -0
- package/dist/services/batch.js.map +1 -0
- package/dist/services/bedrock_pass_through.d.ts +70 -0
- package/dist/services/bedrock_pass_through.d.ts.map +1 -0
- package/dist/services/bedrock_pass_through.js +114 -0
- package/dist/services/bedrock_pass_through.js.map +1 -0
- package/dist/services/beta_agents.d.ts +199 -0
- package/dist/services/beta_agents.d.ts.map +1 -0
- package/dist/services/beta_agents.js +151 -0
- package/dist/services/beta_agents.js.map +1 -0
- package/dist/services/beta_mcp.d.ts +37 -0
- package/dist/services/beta_mcp.d.ts.map +1 -0
- package/dist/services/beta_mcp.js +40 -0
- package/dist/services/beta_mcp.js.map +1 -0
- package/dist/services/budget_management.d.ts +185 -0
- package/dist/services/budget_management.d.ts.map +1 -0
- package/dist/services/budget_management.js +196 -0
- package/dist/services/budget_management.js.map +1 -0
- package/dist/services/budget_spend_tracking.d.ts +967 -0
- package/dist/services/budget_spend_tracking.d.ts.map +1 -0
- package/dist/services/budget_spend_tracking.js +1103 -0
- package/dist/services/budget_spend_tracking.js.map +1 -0
- package/dist/services/cache_settings.d.ts +96 -0
- package/dist/services/cache_settings.d.ts.map +1 -0
- package/dist/services/cache_settings.js +95 -0
- package/dist/services/cache_settings.js.map +1 -0
- package/dist/services/caching.d.ts +54 -0
- package/dist/services/caching.d.ts.map +1 -0
- package/dist/services/caching.js +78 -0
- package/dist/services/caching.js.map +1 -0
- package/dist/services/chat_completions.d.ts +656 -0
- package/dist/services/chat_completions.d.ts.map +1 -0
- package/dist/services/chat_completions.js +590 -0
- package/dist/services/chat_completions.js.map +1 -0
- package/dist/services/claude_code_marketplace.d.ts +212 -0
- package/dist/services/claude_code_marketplace.d.ts.map +1 -0
- package/dist/services/claude_code_marketplace.js +248 -0
- package/dist/services/claude_code_marketplace.js.map +1 -0
- package/dist/services/cloudzero.d.ts +117 -0
- package/dist/services/cloudzero.d.ts.map +1 -0
- package/dist/services/cloudzero.js +130 -0
- package/dist/services/cloudzero.js.map +1 -0
- package/dist/services/cohere_pass_through.d.ts +70 -0
- package/dist/services/cohere_pass_through.d.ts.map +1 -0
- package/dist/services/cohere_pass_through.js +112 -0
- package/dist/services/cohere_pass_through.js.map +1 -0
- package/dist/services/completions.d.ts +59 -0
- package/dist/services/completions.d.ts.map +1 -0
- package/dist/services/completions.js +98 -0
- package/dist/services/completions.js.map +1 -0
- package/dist/services/compliance.d.ts +66 -0
- package/dist/services/compliance.d.ts.map +1 -0
- package/dist/services/compliance.js +74 -0
- package/dist/services/compliance.js.map +1 -0
- package/dist/services/config_overrides.d.ts +157 -0
- package/dist/services/config_overrides.d.ts.map +1 -0
- package/dist/services/config_overrides.js +207 -0
- package/dist/services/config_overrides.js.map +1 -0
- package/dist/services/config_yaml.d.ts +647 -0
- package/dist/services/config_yaml.d.ts.map +1 -0
- package/dist/services/config_yaml.js +504 -0
- package/dist/services/config_yaml.js.map +1 -0
- package/dist/services/containers.d.ts +215 -0
- package/dist/services/containers.d.ts.map +1 -0
- package/dist/services/containers.js +416 -0
- package/dist/services/containers.js.map +1 -0
- package/dist/services/coordination_redis_settings.d.ts +93 -0
- package/dist/services/coordination_redis_settings.d.ts.map +1 -0
- package/dist/services/coordination_redis_settings.js +104 -0
- package/dist/services/coordination_redis_settings.js.map +1 -0
- package/dist/services/cost_tracking.d.ts +140 -0
- package/dist/services/cost_tracking.d.ts.map +1 -0
- package/dist/services/cost_tracking.js +181 -0
- package/dist/services/cost_tracking.js.map +1 -0
- package/dist/services/credential_management.d.ts +133 -0
- package/dist/services/credential_management.d.ts.map +1 -0
- package/dist/services/credential_management.js +198 -0
- package/dist/services/credential_management.js.map +1 -0
- package/dist/services/cursor_pass_through.d.ts +70 -0
- package/dist/services/cursor_pass_through.d.ts.map +1 -0
- package/dist/services/cursor_pass_through.js +112 -0
- package/dist/services/cursor_pass_through.js.map +1 -0
- package/dist/services/customer_management.d.ts +545 -0
- package/dist/services/customer_management.d.ts.map +1 -0
- package/dist/services/customer_management.js +567 -0
- package/dist/services/customer_management.js.map +1 -0
- package/dist/services/email_management.d.ts +57 -0
- package/dist/services/email_management.d.ts.map +1 -0
- package/dist/services/email_management.js +79 -0
- package/dist/services/email_management.js.map +1 -0
- package/dist/services/embeddings.d.ts +155 -0
- package/dist/services/embeddings.d.ts.map +1 -0
- package/dist/services/embeddings.js +168 -0
- package/dist/services/embeddings.js.map +1 -0
- package/dist/services/evals.d.ts +245 -0
- package/dist/services/evals.d.ts.map +1 -0
- package/dist/services/evals.js +292 -0
- package/dist/services/evals.js.map +1 -0
- package/dist/services/experimental.d.ts +166 -0
- package/dist/services/experimental.d.ts.map +1 -0
- package/dist/services/experimental.js +265 -0
- package/dist/services/experimental.js.map +1 -0
- package/dist/services/fallback_management.d.ts +91 -0
- package/dist/services/fallback_management.d.ts.map +1 -0
- package/dist/services/fallback_management.js +86 -0
- package/dist/services/fallback_management.js.map +1 -0
- package/dist/services/files.d.ts +219 -0
- package/dist/services/files.d.ts.map +1 -0
- package/dist/services/files.js +358 -0
- package/dist/services/files.js.map +1 -0
- package/dist/services/fine_tuning.d.ts +155 -0
- package/dist/services/fine_tuning.d.ts.map +1 -0
- package/dist/services/fine_tuning.js +232 -0
- package/dist/services/fine_tuning.js.map +1 -0
- package/dist/services/gemini_agents.d.ts +68 -0
- package/dist/services/gemini_agents.d.ts.map +1 -0
- package/dist/services/gemini_agents.js +110 -0
- package/dist/services/gemini_agents.js.map +1 -0
- package/dist/services/google_ai_studio_pass_through.d.ts +70 -0
- package/dist/services/google_ai_studio_pass_through.d.ts.map +1 -0
- package/dist/services/google_ai_studio_pass_through.js +112 -0
- package/dist/services/google_ai_studio_pass_through.js.map +1 -0
- package/dist/services/google_genai_endpoints.d.ts +174 -0
- package/dist/services/google_genai_endpoints.d.ts.map +1 -0
- package/dist/services/google_genai_endpoints.js +340 -0
- package/dist/services/google_genai_endpoints.js.map +1 -0
- package/dist/services/guardrails.d.ts +1221 -0
- package/dist/services/guardrails.d.ts.map +1 -0
- package/dist/services/guardrails.js +1087 -0
- package/dist/services/guardrails.js.map +1 -0
- package/dist/services/health.d.ts +212 -0
- package/dist/services/health.d.ts.map +1 -0
- package/dist/services/health.js +309 -0
- package/dist/services/health.js.map +1 -0
- package/dist/services/images.d.ts +117 -0
- package/dist/services/images.d.ts.map +1 -0
- package/dist/services/images.js +184 -0
- package/dist/services/images.js.map +1 -0
- package/dist/services/index.d.ts +106 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +107 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/internal_user_management.d.ts +1062 -0
- package/dist/services/internal_user_management.d.ts.map +1 -0
- package/dist/services/internal_user_management.js +850 -0
- package/dist/services/internal_user_management.js.map +1 -0
- package/dist/services/invite_links.d.ts +56 -0
- package/dist/services/invite_links.d.ts.map +1 -0
- package/dist/services/invite_links.js +82 -0
- package/dist/services/invite_links.js.map +1 -0
- package/dist/services/jwt_mappings.d.ts +79 -0
- package/dist/services/jwt_mappings.d.ts.map +1 -0
- package/dist/services/jwt_mappings.js +116 -0
- package/dist/services/jwt_mappings.js.map +1 -0
- package/dist/services/key_management.d.ts +1640 -0
- package/dist/services/key_management.d.ts.map +1 -0
- package/dist/services/key_management.js +1344 -0
- package/dist/services/key_management.js.map +1 -0
- package/dist/services/langfuse_passthrough.d.ts +70 -0
- package/dist/services/langfuse_passthrough.d.ts.map +1 -0
- package/dist/services/langfuse_passthrough.js +114 -0
- package/dist/services/langfuse_passthrough.js.map +1 -0
- package/dist/services/llm_utils.d.ts +101 -0
- package/dist/services/llm_utils.d.ts.map +1 -0
- package/dist/services/llm_utils.js +110 -0
- package/dist/services/llm_utils.js.map +1 -0
- package/dist/services/logging_callbacks.d.ts +33 -0
- package/dist/services/logging_callbacks.d.ts.map +1 -0
- package/dist/services/logging_callbacks.js +46 -0
- package/dist/services/logging_callbacks.js.map +1 -0
- package/dist/services/mcp_byok_oauth.d.ts +112 -0
- package/dist/services/mcp_byok_oauth.d.ts.map +1 -0
- package/dist/services/mcp_byok_oauth.js +226 -0
- package/dist/services/mcp_byok_oauth.js.map +1 -0
- package/dist/services/mcp_discoverable.d.ts +197 -0
- package/dist/services/mcp_discoverable.d.ts.map +1 -0
- package/dist/services/mcp_discoverable.js +304 -0
- package/dist/services/mcp_discoverable.js.map +1 -0
- package/dist/services/mcp_management.d.ts +956 -0
- package/dist/services/mcp_management.d.ts.map +1 -0
- package/dist/services/mcp_management.js +1139 -0
- package/dist/services/mcp_management.js.map +1 -0
- package/dist/services/mcp_rest.d.ts +281 -0
- package/dist/services/mcp_rest.d.ts.map +1 -0
- package/dist/services/mcp_rest.js +269 -0
- package/dist/services/mcp_rest.js.map +1 -0
- package/dist/services/memory_management.d.ts +93 -0
- package/dist/services/memory_management.d.ts.map +1 -0
- package/dist/services/memory_management.js +117 -0
- package/dist/services/memory_management.js.map +1 -0
- package/dist/services/milvus_pass_through.d.ts +70 -0
- package/dist/services/milvus_pass_through.d.ts.map +1 -0
- package/dist/services/milvus_pass_through.js +112 -0
- package/dist/services/milvus_pass_through.js.map +1 -0
- package/dist/services/misc.d.ts +676 -0
- package/dist/services/misc.d.ts.map +1 -0
- package/dist/services/misc.js +954 -0
- package/dist/services/misc.js.map +1 -0
- package/dist/services/mistral_pass_through.d.ts +70 -0
- package/dist/services/mistral_pass_through.d.ts.map +1 -0
- package/dist/services/mistral_pass_through.js +114 -0
- package/dist/services/mistral_pass_through.js.map +1 -0
- package/dist/services/model_management.d.ts +1649 -0
- package/dist/services/model_management.d.ts.map +1 -0
- package/dist/services/model_management.js +1805 -0
- package/dist/services/model_management.js.map +1 -0
- package/dist/services/moderations.d.ts +25 -0
- package/dist/services/moderations.d.ts.map +1 -0
- package/dist/services/moderations.js +39 -0
- package/dist/services/moderations.js.map +1 -0
- package/dist/services/ocr.d.ts +25 -0
- package/dist/services/ocr.d.ts.map +1 -0
- package/dist/services/ocr.js +39 -0
- package/dist/services/ocr.js.map +1 -0
- package/dist/services/open_ai_pass_through.d.ts +125 -0
- package/dist/services/open_ai_pass_through.d.ts.map +1 -0
- package/dist/services/open_ai_pass_through.js +232 -0
- package/dist/services/open_ai_pass_through.js.map +1 -0
- package/dist/services/organization_management.d.ts +664 -0
- package/dist/services/organization_management.d.ts.map +1 -0
- package/dist/services/organization_management.js +644 -0
- package/dist/services/organization_management.js.map +1 -0
- package/dist/services/plugins.d.ts +106 -0
- package/dist/services/plugins.d.ts.map +1 -0
- package/dist/services/plugins.js +180 -0
- package/dist/services/plugins.js.map +1 -0
- package/dist/services/policies.d.ts +618 -0
- package/dist/services/policies.d.ts.map +1 -0
- package/dist/services/policies.js +616 -0
- package/dist/services/policies.js.map +1 -0
- package/dist/services/policy_engine.d.ts +483 -0
- package/dist/services/policy_engine.d.ts.map +1 -0
- package/dist/services/policy_engine.js +501 -0
- package/dist/services/policy_engine.js.map +1 -0
- package/dist/services/project_management.d.ts +356 -0
- package/dist/services/project_management.d.ts.map +1 -0
- package/dist/services/project_management.js +318 -0
- package/dist/services/project_management.js.map +1 -0
- package/dist/services/prompts.d.ts +193 -0
- package/dist/services/prompts.d.ts.map +1 -0
- package/dist/services/prompts.js +260 -0
- package/dist/services/prompts.js.map +1 -0
- package/dist/services/public.d.ts +300 -0
- package/dist/services/public.d.ts.map +1 -0
- package/dist/services/public.js +362 -0
- package/dist/services/public.js.map +1 -0
- package/dist/services/rag.d.ts +45 -0
- package/dist/services/rag.d.ts.map +1 -0
- package/dist/services/rag.js +71 -0
- package/dist/services/rag.js.map +1 -0
- package/dist/services/realtime.d.ts +91 -0
- package/dist/services/realtime.d.ts.map +1 -0
- package/dist/services/realtime.js +164 -0
- package/dist/services/realtime.js.map +1 -0
- package/dist/services/rerank.d.ts +35 -0
- package/dist/services/rerank.d.ts.map +1 -0
- package/dist/services/rerank.js +55 -0
- package/dist/services/rerank.js.map +1 -0
- package/dist/services/responses.d.ts +237 -0
- package/dist/services/responses.d.ts.map +1 -0
- package/dist/services/responses.js +445 -0
- package/dist/services/responses.js.map +1 -0
- package/dist/services/router_settings.d.ts +67 -0
- package/dist/services/router_settings.d.ts.map +1 -0
- package/dist/services/router_settings.js +63 -0
- package/dist/services/router_settings.js.map +1 -0
- package/dist/services/rust_control_plane.d.ts +52 -0
- package/dist/services/rust_control_plane.d.ts.map +1 -0
- package/dist/services/rust_control_plane.js +54 -0
- package/dist/services/rust_control_plane.js.map +1 -0
- package/dist/services/scim.d.ts +412 -0
- package/dist/services/scim.d.ts.map +1 -0
- package/dist/services/scim.js +519 -0
- package/dist/services/scim.js.map +1 -0
- package/dist/services/search.d.ts +79 -0
- package/dist/services/search.d.ts.map +1 -0
- package/dist/services/search.js +122 -0
- package/dist/services/search.js.map +1 -0
- package/dist/services/search_tools.d.ts +140 -0
- package/dist/services/search_tools.d.ts.map +1 -0
- package/dist/services/search_tools.js +201 -0
- package/dist/services/search_tools.js.map +1 -0
- package/dist/services/settings.d.ts +53 -0
- package/dist/services/settings.d.ts.map +1 -0
- package/dist/services/settings.js +67 -0
- package/dist/services/settings.js.map +1 -0
- package/dist/services/sso_settings.d.ts +239 -0
- package/dist/services/sso_settings.d.ts.map +1 -0
- package/dist/services/sso_settings.js +214 -0
- package/dist/services/sso_settings.js.map +1 -0
- package/dist/services/tag_management.d.ts +390 -0
- package/dist/services/tag_management.d.ts.map +1 -0
- package/dist/services/tag_management.js +407 -0
- package/dist/services/tag_management.js.map +1 -0
- package/dist/services/team_management.d.ts +1502 -0
- package/dist/services/team_management.d.ts.map +1 -0
- package/dist/services/team_management.js +1429 -0
- package/dist/services/team_management.js.map +1 -0
- package/dist/services/tools.d.ts +227 -0
- package/dist/services/tools.d.ts.map +1 -0
- package/dist/services/tools.js +266 -0
- package/dist/services/tools.js.map +1 -0
- package/dist/services/ui_settings.d.ts +90 -0
- package/dist/services/ui_settings.d.ts.map +1 -0
- package/dist/services/ui_settings.js +96 -0
- package/dist/services/ui_settings.js.map +1 -0
- package/dist/services/ui_theme_settings.d.ts +62 -0
- package/dist/services/ui_theme_settings.d.ts.map +1 -0
- package/dist/services/ui_theme_settings.js +79 -0
- package/dist/services/ui_theme_settings.js.map +1 -0
- package/dist/services/usage_ai.d.ts +39 -0
- package/dist/services/usage_ai.d.ts.map +1 -0
- package/dist/services/usage_ai.js +40 -0
- package/dist/services/usage_ai.js.map +1 -0
- package/dist/services/vantage.d.ts +108 -0
- package/dist/services/vantage.d.ts.map +1 -0
- package/dist/services/vantage.js +124 -0
- package/dist/services/vantage.js.map +1 -0
- package/dist/services/vector_store_management.d.ts +161 -0
- package/dist/services/vector_store_management.d.ts.map +1 -0
- package/dist/services/vector_store_management.js +191 -0
- package/dist/services/vector_store_management.js.map +1 -0
- package/dist/services/vector_stores.d.ts +342 -0
- package/dist/services/vector_stores.d.ts.map +1 -0
- package/dist/services/vector_stores.js +639 -0
- package/dist/services/vector_stores.js.map +1 -0
- package/dist/services/vertex_ai_pass_through.d.ts +180 -0
- package/dist/services/vertex_ai_pass_through.d.ts.map +1 -0
- package/dist/services/vertex_ai_pass_through.js +334 -0
- package/dist/services/vertex_ai_pass_through.js.map +1 -0
- package/dist/services/videos.d.ts +207 -0
- package/dist/services/videos.d.ts.map +1 -0
- package/dist/services/videos.js +373 -0
- package/dist/services/videos.js.map +1 -0
- package/dist/services/vllm_pass_through.d.ts +70 -0
- package/dist/services/vllm_pass_through.d.ts.map +1 -0
- package/dist/services/vllm_pass_through.js +104 -0
- package/dist/services/vllm_pass_through.js.map +1 -0
- package/dist/services/watsonx_pass_through.d.ts +70 -0
- package/dist/services/watsonx_pass_through.d.ts.map +1 -0
- package/dist/services/watsonx_pass_through.js +114 -0
- package/dist/services/watsonx_pass_through.js.map +1 -0
- package/dist/services/web_socket.d.ts +77 -0
- package/dist/services/web_socket.d.ts.map +1 -0
- package/dist/services/web_socket.js +135 -0
- package/dist/services/web_socket.js.map +1 -0
- package/dist/services/workflow_management.d.ts +140 -0
- package/dist/services/workflow_management.d.ts.map +1 -0
- package/dist/services/workflow_management.js +220 -0
- package/dist/services/workflow_management.js.map +1 -0
- package/dist/traits.d.ts +14 -0
- package/dist/traits.d.ts.map +1 -0
- package/dist/traits.js +15 -0
- package/dist/traits.js.map +1 -0
- package/package.json +75 -0
- package/src/credentials.ts +97 -0
- package/src/errors.ts +108 -0
- package/src/index.ts +33 -0
- package/src/protocol.ts +160 -0
- package/src/retry.ts +74 -0
- package/src/services/a2a.ts +250 -0
- package/src/services/a2a_registration.ts +94 -0
- package/src/services/access_groups.ts +716 -0
- package/src/services/adaptive_router.ts +49 -0
- package/src/services/agents.ts +1314 -0
- package/src/services/alerting.ts +49 -0
- package/src/services/anthropic_pass_through.ts +233 -0
- package/src/services/anthropic_passthrough.ts +123 -0
- package/src/services/anthropic_skills.ts +200 -0
- package/src/services/assembly_ai_eu_pass_through.ts +237 -0
- package/src/services/assembly_ai_pass_through.ts +237 -0
- package/src/services/assistants.ts +685 -0
- package/src/services/audio.ts +189 -0
- package/src/services/audit_logging.ts +194 -0
- package/src/services/auto_router.ts +625 -0
- package/src/services/aws_comprehend_medical_pass_through.ts +109 -0
- package/src/services/azure_ai_pass_through.ts +231 -0
- package/src/services/azure_pass_through.ts +227 -0
- package/src/services/batch.ts +553 -0
- package/src/services/bedrock_pass_through.ts +229 -0
- package/src/services/beta_agents.ts +444 -0
- package/src/services/beta_mcp.ts +105 -0
- package/src/services/budget_management.ts +465 -0
- package/src/services/budget_spend_tracking.ts +2670 -0
- package/src/services/cache_settings.ts +234 -0
- package/src/services/caching.ts +175 -0
- package/src/services/chat_completions.ts +1788 -0
- package/src/services/claude_code_marketplace.ts +569 -0
- package/src/services/cloudzero.ts +297 -0
- package/src/services/cohere_pass_through.ts +227 -0
- package/src/services/completions.ts +194 -0
- package/src/services/compliance.ts +175 -0
- package/src/services/config_overrides.ts +466 -0
- package/src/services/config_yaml.ts +1537 -0
- package/src/services/containers.ts +848 -0
- package/src/services/coordination_redis_settings.ts +251 -0
- package/src/services/cost_tracking.ts +407 -0
- package/src/services/credential_management.ts +436 -0
- package/src/services/cursor_pass_through.ts +227 -0
- package/src/services/customer_management.ts +1475 -0
- package/src/services/email_management.ts +171 -0
- package/src/services/embeddings.ts +424 -0
- package/src/services/evals.ts +672 -0
- package/src/services/experimental.ts +572 -0
- package/src/services/fallback_management.ts +224 -0
- package/src/services/files.ts +732 -0
- package/src/services/fine_tuning.ts +547 -0
- package/src/services/gemini_agents.ts +227 -0
- package/src/services/google_ai_studio_pass_through.ts +227 -0
- package/src/services/google_genai_endpoints.ts +688 -0
- package/src/services/guardrails.ts +3006 -0
- package/src/services/health.ts +713 -0
- package/src/services/images.ts +430 -0
- package/src/services/index.ts +106 -0
- package/src/services/internal_user_management.ts +2574 -0
- package/src/services/invite_links.ts +167 -0
- package/src/services/jwt_mappings.ts +238 -0
- package/src/services/key_management.ts +4162 -0
- package/src/services/langfuse_passthrough.ts +231 -0
- package/src/services/llm_utils.ts +429 -0
- package/src/services/logging_callbacks.ts +104 -0
- package/src/services/mcp_byok_oauth.ts +468 -0
- package/src/services/mcp_discoverable.ts +626 -0
- package/src/services/mcp_management.ts +2915 -0
- package/src/services/mcp_rest.ts +779 -0
- package/src/services/memory_management.ts +248 -0
- package/src/services/milvus_pass_through.ts +227 -0
- package/src/services/misc.ts +2128 -0
- package/src/services/mistral_pass_through.ts +229 -0
- package/src/services/model_management.ts +4501 -0
- package/src/services/moderations.ts +80 -0
- package/src/services/ocr.ts +78 -0
- package/src/services/open_ai_pass_through.ts +462 -0
- package/src/services/organization_management.ts +1749 -0
- package/src/services/plugins.ts +367 -0
- package/src/services/policies.ts +1676 -0
- package/src/services/policy_engine.ts +1318 -0
- package/src/services/project_management.ts +938 -0
- package/src/services/prompts.ts +592 -0
- package/src/services/public.ts +880 -0
- package/src/services/rag.ts +148 -0
- package/src/services/realtime.ts +350 -0
- package/src/services/rerank.ts +111 -0
- package/src/services/responses.ts +909 -0
- package/src/services/router_settings.ts +168 -0
- package/src/services/rust_control_plane.ts +123 -0
- package/src/services/scim.ts +1243 -0
- package/src/services/search.ts +260 -0
- package/src/services/search_tools.ts +439 -0
- package/src/services/settings.ts +146 -0
- package/src/services/sso_settings.ts +626 -0
- package/src/services/tag_management.ts +1004 -0
- package/src/services/team_management.ts +3990 -0
- package/src/services/tools.ts +628 -0
- package/src/services/ui_settings.ts +237 -0
- package/src/services/ui_theme_settings.ts +173 -0
- package/src/services/usage_ai.ts +86 -0
- package/src/services/vantage.ts +283 -0
- package/src/services/vector_store_management.ts +454 -0
- package/src/services/vector_stores.ts +1321 -0
- package/src/services/vertex_ai_pass_through.ts +684 -0
- package/src/services/videos.ts +762 -0
- package/src/services/vllm_pass_through.ts +227 -0
- package/src/services/watsonx_pass_through.ts +229 -0
- package/src/services/web_socket.ts +254 -0
- package/src/services/workflow_management.ts +482 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,2574 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
LitellmProtocol,
|
|
9
|
+
type LitellmOpError,
|
|
10
|
+
type LitellmOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { LitellmOpError, LitellmOpContext };
|
|
15
|
+
|
|
16
|
+
export class BadRequest
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 400 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export class Conflict
|
|
26
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
27
|
+
/*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
|
|
28
|
+
code: S.Number,
|
|
29
|
+
message: S.String,
|
|
30
|
+
}).pipe(C.withConflictError),
|
|
31
|
+
[{ status: 409 }],
|
|
32
|
+
) {}
|
|
33
|
+
|
|
34
|
+
export class Forbidden
|
|
35
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
36
|
+
/*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
|
|
37
|
+
code: S.Number,
|
|
38
|
+
message: S.String,
|
|
39
|
+
}).pipe(C.withAuthError),
|
|
40
|
+
[{ status: 403 }],
|
|
41
|
+
) {}
|
|
42
|
+
|
|
43
|
+
export class NotFound
|
|
44
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
45
|
+
/*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
|
|
46
|
+
code: S.Number,
|
|
47
|
+
message: S.String,
|
|
48
|
+
}).pipe(C.withBadRequestError),
|
|
49
|
+
[{ status: 404 }],
|
|
50
|
+
) {}
|
|
51
|
+
|
|
52
|
+
export class UnprocessableEntity
|
|
53
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
54
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
55
|
+
code: S.Number,
|
|
56
|
+
message: S.String,
|
|
57
|
+
}).pipe(C.withBadRequestError),
|
|
58
|
+
[{ status: 422 }],
|
|
59
|
+
) {}
|
|
60
|
+
|
|
61
|
+
export type UpdateUserRequestNoUserIDorEmailAliasesMap = {
|
|
62
|
+
[key: string]: unknown | undefined;
|
|
63
|
+
};
|
|
64
|
+
export const UpdateUserRequestNoUserIDorEmailAliasesMap =
|
|
65
|
+
/*@__PURE__*/ S.Record(
|
|
66
|
+
S.String,
|
|
67
|
+
S.Unknown,
|
|
68
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailAliasesMap>;
|
|
69
|
+
|
|
70
|
+
export type UpdateUserRequestNoUserIDorEmailAllowedCacheControlsList =
|
|
71
|
+
Array<unknown>;
|
|
72
|
+
export const UpdateUserRequestNoUserIDorEmailAllowedCacheControlsList =
|
|
73
|
+
/*@__PURE__*/ S.Array(
|
|
74
|
+
S.Unknown,
|
|
75
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailAllowedCacheControlsList>;
|
|
76
|
+
|
|
77
|
+
export type UpdateUserRequestNoUserIDorEmailBudgetFallbacksValueList =
|
|
78
|
+
Array<string>;
|
|
79
|
+
export const UpdateUserRequestNoUserIDorEmailBudgetFallbacksValueList =
|
|
80
|
+
/*@__PURE__*/ S.Array(
|
|
81
|
+
S.String,
|
|
82
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailBudgetFallbacksValueList>;
|
|
83
|
+
|
|
84
|
+
export type UpdateUserRequestNoUserIDorEmailBudgetFallbacksMap = {
|
|
85
|
+
[key: string]:
|
|
86
|
+
| UpdateUserRequestNoUserIDorEmailBudgetFallbacksValueList
|
|
87
|
+
| undefined;
|
|
88
|
+
};
|
|
89
|
+
export const UpdateUserRequestNoUserIDorEmailBudgetFallbacksMap =
|
|
90
|
+
/*@__PURE__*/ S.Record(
|
|
91
|
+
S.String,
|
|
92
|
+
UpdateUserRequestNoUserIDorEmailBudgetFallbacksValueList,
|
|
93
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailBudgetFallbacksMap>;
|
|
94
|
+
|
|
95
|
+
/** A single budget window with its own limit and independent reset schedule. */
|
|
96
|
+
export interface BudgetLimitEntry {
|
|
97
|
+
budget_duration: string;
|
|
98
|
+
max_budget: number;
|
|
99
|
+
reset_at?: string | null;
|
|
100
|
+
}
|
|
101
|
+
export const BudgetLimitEntry = /*@__PURE__*/ S.suspend(() =>
|
|
102
|
+
S.Struct({
|
|
103
|
+
budget_duration: S.String,
|
|
104
|
+
max_budget: S.Number,
|
|
105
|
+
reset_at: S.optional(S.NullOr(S.String)),
|
|
106
|
+
}),
|
|
107
|
+
).annotate({
|
|
108
|
+
identifier: "BudgetLimitEntry",
|
|
109
|
+
}) as any as S.Schema<BudgetLimitEntry>;
|
|
110
|
+
|
|
111
|
+
export type UpdateUserRequestNoUserIDorEmailBudgetLimitsList =
|
|
112
|
+
Array<BudgetLimitEntry>;
|
|
113
|
+
export const UpdateUserRequestNoUserIDorEmailBudgetLimitsList =
|
|
114
|
+
/*@__PURE__*/ S.Array(
|
|
115
|
+
BudgetLimitEntry,
|
|
116
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailBudgetLimitsList>;
|
|
117
|
+
|
|
118
|
+
export type UpdateUserRequestNoUserIDorEmailConfigMap = {
|
|
119
|
+
[key: string]: unknown | undefined;
|
|
120
|
+
};
|
|
121
|
+
export const UpdateUserRequestNoUserIDorEmailConfigMap = /*@__PURE__*/ S.Record(
|
|
122
|
+
S.String,
|
|
123
|
+
S.Unknown,
|
|
124
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailConfigMap>;
|
|
125
|
+
|
|
126
|
+
export type UpdateUserRequestNoUserIDorEmailGuardrailsList = Array<string>;
|
|
127
|
+
export const UpdateUserRequestNoUserIDorEmailGuardrailsList =
|
|
128
|
+
/*@__PURE__*/ S.Array(
|
|
129
|
+
S.String,
|
|
130
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailGuardrailsList>;
|
|
131
|
+
|
|
132
|
+
export type UpdateUserRequestNoUserIDorEmailMcpRpmLimitMap = {
|
|
133
|
+
[key: string]: number | undefined;
|
|
134
|
+
};
|
|
135
|
+
export const UpdateUserRequestNoUserIDorEmailMcpRpmLimitMap =
|
|
136
|
+
/*@__PURE__*/ S.Record(
|
|
137
|
+
S.String,
|
|
138
|
+
S.Number,
|
|
139
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailMcpRpmLimitMap>;
|
|
140
|
+
|
|
141
|
+
export type UpdateUserRequestNoUserIDorEmailMetadataMap = {
|
|
142
|
+
[key: string]: unknown | undefined;
|
|
143
|
+
};
|
|
144
|
+
export const UpdateUserRequestNoUserIDorEmailMetadataMap =
|
|
145
|
+
/*@__PURE__*/ S.Record(
|
|
146
|
+
S.String,
|
|
147
|
+
S.Unknown,
|
|
148
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailMetadataMap>;
|
|
149
|
+
|
|
150
|
+
export type UpdateUserRequestNoUserIDorEmailModelMaxBudgetMap = {
|
|
151
|
+
[key: string]: unknown | undefined;
|
|
152
|
+
};
|
|
153
|
+
export const UpdateUserRequestNoUserIDorEmailModelMaxBudgetMap =
|
|
154
|
+
/*@__PURE__*/ S.Record(
|
|
155
|
+
S.String,
|
|
156
|
+
S.Unknown,
|
|
157
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailModelMaxBudgetMap>;
|
|
158
|
+
|
|
159
|
+
export type UpdateUserRequestNoUserIDorEmailModelRpmLimitMap = {
|
|
160
|
+
[key: string]: unknown | undefined;
|
|
161
|
+
};
|
|
162
|
+
export const UpdateUserRequestNoUserIDorEmailModelRpmLimitMap =
|
|
163
|
+
/*@__PURE__*/ S.Record(
|
|
164
|
+
S.String,
|
|
165
|
+
S.Unknown,
|
|
166
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailModelRpmLimitMap>;
|
|
167
|
+
|
|
168
|
+
export type UpdateUserRequestNoUserIDorEmailModelTpmLimitMap = {
|
|
169
|
+
[key: string]: unknown | undefined;
|
|
170
|
+
};
|
|
171
|
+
export const UpdateUserRequestNoUserIDorEmailModelTpmLimitMap =
|
|
172
|
+
/*@__PURE__*/ S.Record(
|
|
173
|
+
S.String,
|
|
174
|
+
S.Unknown,
|
|
175
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailModelTpmLimitMap>;
|
|
176
|
+
|
|
177
|
+
export type UpdateUserRequestNoUserIDorEmailModelsList = Array<unknown>;
|
|
178
|
+
export const UpdateUserRequestNoUserIDorEmailModelsList = /*@__PURE__*/ S.Array(
|
|
179
|
+
S.Unknown,
|
|
180
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailModelsList>;
|
|
181
|
+
|
|
182
|
+
export type LiteLLMObjectPermissionBaseAgentAccessGroupsList = Array<string>;
|
|
183
|
+
export const LiteLLMObjectPermissionBaseAgentAccessGroupsList =
|
|
184
|
+
/*@__PURE__*/ S.Array(
|
|
185
|
+
S.String,
|
|
186
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseAgentAccessGroupsList>;
|
|
187
|
+
|
|
188
|
+
export type LiteLLMObjectPermissionBaseAgentsList = Array<string>;
|
|
189
|
+
export const LiteLLMObjectPermissionBaseAgentsList = /*@__PURE__*/ S.Array(
|
|
190
|
+
S.String,
|
|
191
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseAgentsList>;
|
|
192
|
+
|
|
193
|
+
export type LiteLLMObjectPermissionBaseBlockedToolsList = Array<string>;
|
|
194
|
+
export const LiteLLMObjectPermissionBaseBlockedToolsList =
|
|
195
|
+
/*@__PURE__*/ S.Array(
|
|
196
|
+
S.String,
|
|
197
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseBlockedToolsList>;
|
|
198
|
+
|
|
199
|
+
export type LiteLLMObjectPermissionBaseMcpAccessGroupsList = Array<string>;
|
|
200
|
+
export const LiteLLMObjectPermissionBaseMcpAccessGroupsList =
|
|
201
|
+
/*@__PURE__*/ S.Array(
|
|
202
|
+
S.String,
|
|
203
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseMcpAccessGroupsList>;
|
|
204
|
+
|
|
205
|
+
export type LiteLLMObjectPermissionBaseMcpServersList = Array<string>;
|
|
206
|
+
export const LiteLLMObjectPermissionBaseMcpServersList = /*@__PURE__*/ S.Array(
|
|
207
|
+
S.String,
|
|
208
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseMcpServersList>;
|
|
209
|
+
|
|
210
|
+
export type LiteLLMObjectPermissionBaseMcpToolPermissionsValueList =
|
|
211
|
+
Array<string>;
|
|
212
|
+
export const LiteLLMObjectPermissionBaseMcpToolPermissionsValueList =
|
|
213
|
+
/*@__PURE__*/ S.Array(
|
|
214
|
+
S.String,
|
|
215
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseMcpToolPermissionsValueList>;
|
|
216
|
+
|
|
217
|
+
export type LiteLLMObjectPermissionBaseMcpToolPermissionsMap = {
|
|
218
|
+
[key: string]:
|
|
219
|
+
| LiteLLMObjectPermissionBaseMcpToolPermissionsValueList
|
|
220
|
+
| undefined;
|
|
221
|
+
};
|
|
222
|
+
export const LiteLLMObjectPermissionBaseMcpToolPermissionsMap =
|
|
223
|
+
/*@__PURE__*/ S.Record(
|
|
224
|
+
S.String,
|
|
225
|
+
LiteLLMObjectPermissionBaseMcpToolPermissionsValueList,
|
|
226
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseMcpToolPermissionsMap>;
|
|
227
|
+
|
|
228
|
+
export type LiteLLMObjectPermissionBaseMcpToolsetsList = Array<string>;
|
|
229
|
+
export const LiteLLMObjectPermissionBaseMcpToolsetsList = /*@__PURE__*/ S.Array(
|
|
230
|
+
S.String,
|
|
231
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseMcpToolsetsList>;
|
|
232
|
+
|
|
233
|
+
export type LiteLLMObjectPermissionBaseModelsList = Array<string>;
|
|
234
|
+
export const LiteLLMObjectPermissionBaseModelsList = /*@__PURE__*/ S.Array(
|
|
235
|
+
S.String,
|
|
236
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseModelsList>;
|
|
237
|
+
|
|
238
|
+
export type LiteLLMObjectPermissionBaseSearchToolsList = Array<string>;
|
|
239
|
+
export const LiteLLMObjectPermissionBaseSearchToolsList = /*@__PURE__*/ S.Array(
|
|
240
|
+
S.String,
|
|
241
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseSearchToolsList>;
|
|
242
|
+
|
|
243
|
+
export type LiteLLMObjectPermissionBaseVectorStoresList = Array<string>;
|
|
244
|
+
export const LiteLLMObjectPermissionBaseVectorStoresList =
|
|
245
|
+
/*@__PURE__*/ S.Array(
|
|
246
|
+
S.String,
|
|
247
|
+
) as any as S.Schema<LiteLLMObjectPermissionBaseVectorStoresList>;
|
|
248
|
+
|
|
249
|
+
export interface LiteLLMObjectPermissionBase {
|
|
250
|
+
agent_access_groups?: LiteLLMObjectPermissionBaseAgentAccessGroupsList | null;
|
|
251
|
+
agents?: LiteLLMObjectPermissionBaseAgentsList | null;
|
|
252
|
+
blocked_tools?: LiteLLMObjectPermissionBaseBlockedToolsList | null;
|
|
253
|
+
mcp_access_groups?: LiteLLMObjectPermissionBaseMcpAccessGroupsList | null;
|
|
254
|
+
mcp_servers?: LiteLLMObjectPermissionBaseMcpServersList | null;
|
|
255
|
+
mcp_tool_permissions?: LiteLLMObjectPermissionBaseMcpToolPermissionsMap | null;
|
|
256
|
+
mcp_tool_search_enabled?: boolean | null;
|
|
257
|
+
mcp_toolsets?: LiteLLMObjectPermissionBaseMcpToolsetsList | null;
|
|
258
|
+
models?: LiteLLMObjectPermissionBaseModelsList | null;
|
|
259
|
+
search_tools?: LiteLLMObjectPermissionBaseSearchToolsList | null;
|
|
260
|
+
vector_stores?: LiteLLMObjectPermissionBaseVectorStoresList | null;
|
|
261
|
+
}
|
|
262
|
+
export const LiteLLMObjectPermissionBase = /*@__PURE__*/ S.suspend(() =>
|
|
263
|
+
S.Struct({
|
|
264
|
+
agent_access_groups: S.optional(
|
|
265
|
+
S.NullOr(LiteLLMObjectPermissionBaseAgentAccessGroupsList),
|
|
266
|
+
),
|
|
267
|
+
agents: S.optional(S.NullOr(LiteLLMObjectPermissionBaseAgentsList)),
|
|
268
|
+
blocked_tools: S.optional(
|
|
269
|
+
S.NullOr(LiteLLMObjectPermissionBaseBlockedToolsList),
|
|
270
|
+
),
|
|
271
|
+
mcp_access_groups: S.optional(
|
|
272
|
+
S.NullOr(LiteLLMObjectPermissionBaseMcpAccessGroupsList),
|
|
273
|
+
),
|
|
274
|
+
mcp_servers: S.optional(
|
|
275
|
+
S.NullOr(LiteLLMObjectPermissionBaseMcpServersList),
|
|
276
|
+
),
|
|
277
|
+
mcp_tool_permissions: S.optional(
|
|
278
|
+
S.NullOr(LiteLLMObjectPermissionBaseMcpToolPermissionsMap),
|
|
279
|
+
),
|
|
280
|
+
mcp_tool_search_enabled: S.optional(S.NullOr(S.Boolean)),
|
|
281
|
+
mcp_toolsets: S.optional(
|
|
282
|
+
S.NullOr(LiteLLMObjectPermissionBaseMcpToolsetsList),
|
|
283
|
+
),
|
|
284
|
+
models: S.optional(S.NullOr(LiteLLMObjectPermissionBaseModelsList)),
|
|
285
|
+
search_tools: S.optional(
|
|
286
|
+
S.NullOr(LiteLLMObjectPermissionBaseSearchToolsList),
|
|
287
|
+
),
|
|
288
|
+
vector_stores: S.optional(
|
|
289
|
+
S.NullOr(LiteLLMObjectPermissionBaseVectorStoresList),
|
|
290
|
+
),
|
|
291
|
+
}),
|
|
292
|
+
).annotate({
|
|
293
|
+
identifier: "LiteLLMObjectPermissionBase",
|
|
294
|
+
}) as any as S.Schema<LiteLLMObjectPermissionBase>;
|
|
295
|
+
|
|
296
|
+
export type UpdateUserRequestNoUserIDorEmailPermissionsMap = {
|
|
297
|
+
[key: string]: unknown | undefined;
|
|
298
|
+
};
|
|
299
|
+
export const UpdateUserRequestNoUserIDorEmailPermissionsMap =
|
|
300
|
+
/*@__PURE__*/ S.Record(
|
|
301
|
+
S.String,
|
|
302
|
+
S.Unknown,
|
|
303
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailPermissionsMap>;
|
|
304
|
+
|
|
305
|
+
export type UpdateUserRequestNoUserIDorEmailPoliciesList = Array<string>;
|
|
306
|
+
export const UpdateUserRequestNoUserIDorEmailPoliciesList =
|
|
307
|
+
/*@__PURE__*/ S.Array(
|
|
308
|
+
S.String,
|
|
309
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailPoliciesList>;
|
|
310
|
+
|
|
311
|
+
export type UpdateUserRequestNoUserIDorEmailPromptsList = Array<string>;
|
|
312
|
+
export const UpdateUserRequestNoUserIDorEmailPromptsList =
|
|
313
|
+
/*@__PURE__*/ S.Array(
|
|
314
|
+
S.String,
|
|
315
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailPromptsList>;
|
|
316
|
+
|
|
317
|
+
export type UpdateUserRequestNoUserIDorEmailTagRpmLimitMap = {
|
|
318
|
+
[key: string]: number | undefined;
|
|
319
|
+
};
|
|
320
|
+
export const UpdateUserRequestNoUserIDorEmailTagRpmLimitMap =
|
|
321
|
+
/*@__PURE__*/ S.Record(
|
|
322
|
+
S.String,
|
|
323
|
+
S.Number,
|
|
324
|
+
) as any as S.Schema<UpdateUserRequestNoUserIDorEmailTagRpmLimitMap>;
|
|
325
|
+
|
|
326
|
+
export type UpdateUserRequestNoUserIDorEmailUserRole =
|
|
327
|
+
| "proxy_admin"
|
|
328
|
+
| "proxy_admin_viewer"
|
|
329
|
+
| "internal_user"
|
|
330
|
+
| "internal_user_viewer";
|
|
331
|
+
export const UpdateUserRequestNoUserIDorEmailUserRole = S.String;
|
|
332
|
+
|
|
333
|
+
export interface UpdateUserRequestNoUserIDorEmail {
|
|
334
|
+
agent_id?: string | null;
|
|
335
|
+
aliases?: UpdateUserRequestNoUserIDorEmailAliasesMap | null;
|
|
336
|
+
allowed_cache_controls?: UpdateUserRequestNoUserIDorEmailAllowedCacheControlsList | null;
|
|
337
|
+
blocked?: boolean | null;
|
|
338
|
+
budget_duration?: string | null;
|
|
339
|
+
budget_fallbacks?: UpdateUserRequestNoUserIDorEmailBudgetFallbacksMap | null;
|
|
340
|
+
budget_limits?: UpdateUserRequestNoUserIDorEmailBudgetLimitsList | null;
|
|
341
|
+
config?: UpdateUserRequestNoUserIDorEmailConfigMap | null;
|
|
342
|
+
duration?: string | null;
|
|
343
|
+
guardrails?: UpdateUserRequestNoUserIDorEmailGuardrailsList | null;
|
|
344
|
+
key_alias?: string | null;
|
|
345
|
+
max_budget?: number | null;
|
|
346
|
+
max_parallel_requests?: number | null;
|
|
347
|
+
mcp_rpm_limit?: UpdateUserRequestNoUserIDorEmailMcpRpmLimitMap | null;
|
|
348
|
+
metadata?: UpdateUserRequestNoUserIDorEmailMetadataMap | null;
|
|
349
|
+
model_max_budget?: UpdateUserRequestNoUserIDorEmailModelMaxBudgetMap | null;
|
|
350
|
+
model_rpm_limit?: UpdateUserRequestNoUserIDorEmailModelRpmLimitMap | null;
|
|
351
|
+
model_tpm_limit?: UpdateUserRequestNoUserIDorEmailModelTpmLimitMap | null;
|
|
352
|
+
models?: UpdateUserRequestNoUserIDorEmailModelsList | null;
|
|
353
|
+
object_permission?: LiteLLMObjectPermissionBase | null;
|
|
354
|
+
password?: string | null;
|
|
355
|
+
permissions?: UpdateUserRequestNoUserIDorEmailPermissionsMap | null;
|
|
356
|
+
policies?: UpdateUserRequestNoUserIDorEmailPoliciesList | null;
|
|
357
|
+
prompts?: UpdateUserRequestNoUserIDorEmailPromptsList | null;
|
|
358
|
+
rpm_limit?: number | null;
|
|
359
|
+
spend?: number | null;
|
|
360
|
+
tag_rpm_limit?: UpdateUserRequestNoUserIDorEmailTagRpmLimitMap | null;
|
|
361
|
+
team_id?: string | null;
|
|
362
|
+
tpm_limit?: number | null;
|
|
363
|
+
user_alias?: string | null;
|
|
364
|
+
user_id?: string | null;
|
|
365
|
+
user_role?: UpdateUserRequestNoUserIDorEmailUserRole | (string & {}) | null;
|
|
366
|
+
}
|
|
367
|
+
export const UpdateUserRequestNoUserIDorEmail = /*@__PURE__*/ S.suspend(() =>
|
|
368
|
+
S.Struct({
|
|
369
|
+
agent_id: S.optional(S.NullOr(S.String)),
|
|
370
|
+
aliases: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmailAliasesMap)),
|
|
371
|
+
allowed_cache_controls: S.optional(
|
|
372
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailAllowedCacheControlsList),
|
|
373
|
+
),
|
|
374
|
+
blocked: S.optional(S.NullOr(S.Boolean)),
|
|
375
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
376
|
+
budget_fallbacks: S.optional(
|
|
377
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailBudgetFallbacksMap),
|
|
378
|
+
),
|
|
379
|
+
budget_limits: S.optional(
|
|
380
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailBudgetLimitsList),
|
|
381
|
+
),
|
|
382
|
+
config: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmailConfigMap)),
|
|
383
|
+
duration: S.optional(S.NullOr(S.String)),
|
|
384
|
+
guardrails: S.optional(
|
|
385
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailGuardrailsList),
|
|
386
|
+
),
|
|
387
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
388
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
389
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
390
|
+
mcp_rpm_limit: S.optional(
|
|
391
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailMcpRpmLimitMap),
|
|
392
|
+
),
|
|
393
|
+
metadata: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmailMetadataMap)),
|
|
394
|
+
model_max_budget: S.optional(
|
|
395
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailModelMaxBudgetMap),
|
|
396
|
+
),
|
|
397
|
+
model_rpm_limit: S.optional(
|
|
398
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailModelRpmLimitMap),
|
|
399
|
+
),
|
|
400
|
+
model_tpm_limit: S.optional(
|
|
401
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailModelTpmLimitMap),
|
|
402
|
+
),
|
|
403
|
+
models: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmailModelsList)),
|
|
404
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
|
|
405
|
+
password: S.optional(S.NullOr(S.String)),
|
|
406
|
+
permissions: S.optional(
|
|
407
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailPermissionsMap),
|
|
408
|
+
),
|
|
409
|
+
policies: S.optional(
|
|
410
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailPoliciesList),
|
|
411
|
+
),
|
|
412
|
+
prompts: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmailPromptsList)),
|
|
413
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
414
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
415
|
+
tag_rpm_limit: S.optional(
|
|
416
|
+
S.NullOr(UpdateUserRequestNoUserIDorEmailTagRpmLimitMap),
|
|
417
|
+
),
|
|
418
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
419
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
420
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
421
|
+
user_id: S.optional(S.NullOr(S.String)),
|
|
422
|
+
user_role: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmailUserRole)),
|
|
423
|
+
}),
|
|
424
|
+
).annotate({
|
|
425
|
+
identifier: "UpdateUserRequestNoUserIDorEmail",
|
|
426
|
+
}) as any as S.Schema<UpdateUserRequestNoUserIDorEmail>;
|
|
427
|
+
|
|
428
|
+
export type UpdateUserRequestAliasesMap = {
|
|
429
|
+
[key: string]: unknown | undefined;
|
|
430
|
+
};
|
|
431
|
+
export const UpdateUserRequestAliasesMap = /*@__PURE__*/ S.Record(
|
|
432
|
+
S.String,
|
|
433
|
+
S.Unknown,
|
|
434
|
+
) as any as S.Schema<UpdateUserRequestAliasesMap>;
|
|
435
|
+
|
|
436
|
+
export type UpdateUserRequestAllowedCacheControlsList = Array<unknown>;
|
|
437
|
+
export const UpdateUserRequestAllowedCacheControlsList = /*@__PURE__*/ S.Array(
|
|
438
|
+
S.Unknown,
|
|
439
|
+
) as any as S.Schema<UpdateUserRequestAllowedCacheControlsList>;
|
|
440
|
+
|
|
441
|
+
export type UpdateUserRequestBudgetFallbacksValueList = Array<string>;
|
|
442
|
+
export const UpdateUserRequestBudgetFallbacksValueList = /*@__PURE__*/ S.Array(
|
|
443
|
+
S.String,
|
|
444
|
+
) as any as S.Schema<UpdateUserRequestBudgetFallbacksValueList>;
|
|
445
|
+
|
|
446
|
+
export type UpdateUserRequestBudgetFallbacksMap = {
|
|
447
|
+
[key: string]: UpdateUserRequestBudgetFallbacksValueList | undefined;
|
|
448
|
+
};
|
|
449
|
+
export const UpdateUserRequestBudgetFallbacksMap = /*@__PURE__*/ S.Record(
|
|
450
|
+
S.String,
|
|
451
|
+
UpdateUserRequestBudgetFallbacksValueList,
|
|
452
|
+
) as any as S.Schema<UpdateUserRequestBudgetFallbacksMap>;
|
|
453
|
+
|
|
454
|
+
export type UpdateUserRequestBudgetLimitsList = Array<BudgetLimitEntry>;
|
|
455
|
+
export const UpdateUserRequestBudgetLimitsList = /*@__PURE__*/ S.Array(
|
|
456
|
+
BudgetLimitEntry,
|
|
457
|
+
) as any as S.Schema<UpdateUserRequestBudgetLimitsList>;
|
|
458
|
+
|
|
459
|
+
export type UpdateUserRequestConfigMap = { [key: string]: unknown | undefined };
|
|
460
|
+
export const UpdateUserRequestConfigMap = /*@__PURE__*/ S.Record(
|
|
461
|
+
S.String,
|
|
462
|
+
S.Unknown,
|
|
463
|
+
) as any as S.Schema<UpdateUserRequestConfigMap>;
|
|
464
|
+
|
|
465
|
+
export type UpdateUserRequestGuardrailsList = Array<string>;
|
|
466
|
+
export const UpdateUserRequestGuardrailsList = /*@__PURE__*/ S.Array(
|
|
467
|
+
S.String,
|
|
468
|
+
) as any as S.Schema<UpdateUserRequestGuardrailsList>;
|
|
469
|
+
|
|
470
|
+
export type UpdateUserRequestMcpRpmLimitMap = {
|
|
471
|
+
[key: string]: number | undefined;
|
|
472
|
+
};
|
|
473
|
+
export const UpdateUserRequestMcpRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
474
|
+
S.String,
|
|
475
|
+
S.Number,
|
|
476
|
+
) as any as S.Schema<UpdateUserRequestMcpRpmLimitMap>;
|
|
477
|
+
|
|
478
|
+
export type UpdateUserRequestMetadataMap = {
|
|
479
|
+
[key: string]: unknown | undefined;
|
|
480
|
+
};
|
|
481
|
+
export const UpdateUserRequestMetadataMap = /*@__PURE__*/ S.Record(
|
|
482
|
+
S.String,
|
|
483
|
+
S.Unknown,
|
|
484
|
+
) as any as S.Schema<UpdateUserRequestMetadataMap>;
|
|
485
|
+
|
|
486
|
+
export type UpdateUserRequestModelMaxBudgetMap = {
|
|
487
|
+
[key: string]: unknown | undefined;
|
|
488
|
+
};
|
|
489
|
+
export const UpdateUserRequestModelMaxBudgetMap = /*@__PURE__*/ S.Record(
|
|
490
|
+
S.String,
|
|
491
|
+
S.Unknown,
|
|
492
|
+
) as any as S.Schema<UpdateUserRequestModelMaxBudgetMap>;
|
|
493
|
+
|
|
494
|
+
export type UpdateUserRequestModelRpmLimitMap = {
|
|
495
|
+
[key: string]: unknown | undefined;
|
|
496
|
+
};
|
|
497
|
+
export const UpdateUserRequestModelRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
498
|
+
S.String,
|
|
499
|
+
S.Unknown,
|
|
500
|
+
) as any as S.Schema<UpdateUserRequestModelRpmLimitMap>;
|
|
501
|
+
|
|
502
|
+
export type UpdateUserRequestModelTpmLimitMap = {
|
|
503
|
+
[key: string]: unknown | undefined;
|
|
504
|
+
};
|
|
505
|
+
export const UpdateUserRequestModelTpmLimitMap = /*@__PURE__*/ S.Record(
|
|
506
|
+
S.String,
|
|
507
|
+
S.Unknown,
|
|
508
|
+
) as any as S.Schema<UpdateUserRequestModelTpmLimitMap>;
|
|
509
|
+
|
|
510
|
+
export type UpdateUserRequestModelsList = Array<unknown>;
|
|
511
|
+
export const UpdateUserRequestModelsList = /*@__PURE__*/ S.Array(
|
|
512
|
+
S.Unknown,
|
|
513
|
+
) as any as S.Schema<UpdateUserRequestModelsList>;
|
|
514
|
+
|
|
515
|
+
export type UpdateUserRequestPermissionsMap = {
|
|
516
|
+
[key: string]: unknown | undefined;
|
|
517
|
+
};
|
|
518
|
+
export const UpdateUserRequestPermissionsMap = /*@__PURE__*/ S.Record(
|
|
519
|
+
S.String,
|
|
520
|
+
S.Unknown,
|
|
521
|
+
) as any as S.Schema<UpdateUserRequestPermissionsMap>;
|
|
522
|
+
|
|
523
|
+
export type UpdateUserRequestPoliciesList = Array<string>;
|
|
524
|
+
export const UpdateUserRequestPoliciesList = /*@__PURE__*/ S.Array(
|
|
525
|
+
S.String,
|
|
526
|
+
) as any as S.Schema<UpdateUserRequestPoliciesList>;
|
|
527
|
+
|
|
528
|
+
export type UpdateUserRequestPromptsList = Array<string>;
|
|
529
|
+
export const UpdateUserRequestPromptsList = /*@__PURE__*/ S.Array(
|
|
530
|
+
S.String,
|
|
531
|
+
) as any as S.Schema<UpdateUserRequestPromptsList>;
|
|
532
|
+
|
|
533
|
+
export type UpdateUserRequestTagRpmLimitMap = {
|
|
534
|
+
[key: string]: number | undefined;
|
|
535
|
+
};
|
|
536
|
+
export const UpdateUserRequestTagRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
537
|
+
S.String,
|
|
538
|
+
S.Number,
|
|
539
|
+
) as any as S.Schema<UpdateUserRequestTagRpmLimitMap>;
|
|
540
|
+
|
|
541
|
+
export type UpdateUserRequestUserRole =
|
|
542
|
+
| "proxy_admin"
|
|
543
|
+
| "proxy_admin_viewer"
|
|
544
|
+
| "internal_user"
|
|
545
|
+
| "internal_user_viewer";
|
|
546
|
+
export const UpdateUserRequestUserRole = S.String;
|
|
547
|
+
|
|
548
|
+
export interface UpdateUserRequest {
|
|
549
|
+
agent_id?: string | null;
|
|
550
|
+
aliases?: UpdateUserRequestAliasesMap | null;
|
|
551
|
+
allowed_cache_controls?: UpdateUserRequestAllowedCacheControlsList | null;
|
|
552
|
+
blocked?: boolean | null;
|
|
553
|
+
budget_duration?: string | null;
|
|
554
|
+
budget_fallbacks?: UpdateUserRequestBudgetFallbacksMap | null;
|
|
555
|
+
budget_limits?: UpdateUserRequestBudgetLimitsList | null;
|
|
556
|
+
config?: UpdateUserRequestConfigMap | null;
|
|
557
|
+
duration?: string | null;
|
|
558
|
+
guardrails?: UpdateUserRequestGuardrailsList | null;
|
|
559
|
+
key_alias?: string | null;
|
|
560
|
+
max_budget?: number | null;
|
|
561
|
+
max_parallel_requests?: number | null;
|
|
562
|
+
mcp_rpm_limit?: UpdateUserRequestMcpRpmLimitMap | null;
|
|
563
|
+
metadata?: UpdateUserRequestMetadataMap | null;
|
|
564
|
+
model_max_budget?: UpdateUserRequestModelMaxBudgetMap | null;
|
|
565
|
+
model_rpm_limit?: UpdateUserRequestModelRpmLimitMap | null;
|
|
566
|
+
model_tpm_limit?: UpdateUserRequestModelTpmLimitMap | null;
|
|
567
|
+
models?: UpdateUserRequestModelsList | null;
|
|
568
|
+
object_permission?: LiteLLMObjectPermissionBase | null;
|
|
569
|
+
password?: string | null;
|
|
570
|
+
permissions?: UpdateUserRequestPermissionsMap | null;
|
|
571
|
+
policies?: UpdateUserRequestPoliciesList | null;
|
|
572
|
+
prompts?: UpdateUserRequestPromptsList | null;
|
|
573
|
+
rpm_limit?: number | null;
|
|
574
|
+
spend?: number | null;
|
|
575
|
+
tag_rpm_limit?: UpdateUserRequestTagRpmLimitMap | null;
|
|
576
|
+
team_id?: string | null;
|
|
577
|
+
tpm_limit?: number | null;
|
|
578
|
+
user_alias?: string | null;
|
|
579
|
+
user_email?: string | null;
|
|
580
|
+
user_id?: string | null;
|
|
581
|
+
user_role?: UpdateUserRequestUserRole | (string & {}) | null;
|
|
582
|
+
}
|
|
583
|
+
export const UpdateUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
584
|
+
S.Struct({
|
|
585
|
+
agent_id: S.optional(S.NullOr(S.String)),
|
|
586
|
+
aliases: S.optional(S.NullOr(UpdateUserRequestAliasesMap)),
|
|
587
|
+
allowed_cache_controls: S.optional(
|
|
588
|
+
S.NullOr(UpdateUserRequestAllowedCacheControlsList),
|
|
589
|
+
),
|
|
590
|
+
blocked: S.optional(S.NullOr(S.Boolean)),
|
|
591
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
592
|
+
budget_fallbacks: S.optional(S.NullOr(UpdateUserRequestBudgetFallbacksMap)),
|
|
593
|
+
budget_limits: S.optional(S.NullOr(UpdateUserRequestBudgetLimitsList)),
|
|
594
|
+
config: S.optional(S.NullOr(UpdateUserRequestConfigMap)),
|
|
595
|
+
duration: S.optional(S.NullOr(S.String)),
|
|
596
|
+
guardrails: S.optional(S.NullOr(UpdateUserRequestGuardrailsList)),
|
|
597
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
598
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
599
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
600
|
+
mcp_rpm_limit: S.optional(S.NullOr(UpdateUserRequestMcpRpmLimitMap)),
|
|
601
|
+
metadata: S.optional(S.NullOr(UpdateUserRequestMetadataMap)),
|
|
602
|
+
model_max_budget: S.optional(S.NullOr(UpdateUserRequestModelMaxBudgetMap)),
|
|
603
|
+
model_rpm_limit: S.optional(S.NullOr(UpdateUserRequestModelRpmLimitMap)),
|
|
604
|
+
model_tpm_limit: S.optional(S.NullOr(UpdateUserRequestModelTpmLimitMap)),
|
|
605
|
+
models: S.optional(S.NullOr(UpdateUserRequestModelsList)),
|
|
606
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
|
|
607
|
+
password: S.optional(S.NullOr(S.String)),
|
|
608
|
+
permissions: S.optional(S.NullOr(UpdateUserRequestPermissionsMap)),
|
|
609
|
+
policies: S.optional(S.NullOr(UpdateUserRequestPoliciesList)),
|
|
610
|
+
prompts: S.optional(S.NullOr(UpdateUserRequestPromptsList)),
|
|
611
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
612
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
613
|
+
tag_rpm_limit: S.optional(S.NullOr(UpdateUserRequestTagRpmLimitMap)),
|
|
614
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
615
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
616
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
617
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
618
|
+
user_id: S.optional(S.NullOr(S.String)),
|
|
619
|
+
user_role: S.optional(S.NullOr(UpdateUserRequestUserRole)),
|
|
620
|
+
}),
|
|
621
|
+
).annotate({
|
|
622
|
+
identifier: "UpdateUserRequest",
|
|
623
|
+
}) as any as S.Schema<UpdateUserRequest>;
|
|
624
|
+
|
|
625
|
+
export type BulkUserUpdateUserBulkUpdatePostRequestUsersList =
|
|
626
|
+
Array<UpdateUserRequest>;
|
|
627
|
+
export const BulkUserUpdateUserBulkUpdatePostRequestUsersList =
|
|
628
|
+
/*@__PURE__*/ S.Array(
|
|
629
|
+
UpdateUserRequest,
|
|
630
|
+
) as any as S.Schema<BulkUserUpdateUserBulkUpdatePostRequestUsersList>;
|
|
631
|
+
|
|
632
|
+
export interface BulkUserUpdateUserBulkUpdatePostRequest {
|
|
633
|
+
all_users?: boolean | null;
|
|
634
|
+
user_updates?: UpdateUserRequestNoUserIDorEmail | null;
|
|
635
|
+
users?: BulkUserUpdateUserBulkUpdatePostRequestUsersList | null;
|
|
636
|
+
}
|
|
637
|
+
export const BulkUserUpdateUserBulkUpdatePostRequest = /*@__PURE__*/ S.suspend(
|
|
638
|
+
() =>
|
|
639
|
+
S.Struct({
|
|
640
|
+
all_users: S.optional(S.NullOr(S.Boolean)),
|
|
641
|
+
user_updates: S.optional(S.NullOr(UpdateUserRequestNoUserIDorEmail)),
|
|
642
|
+
users: S.optional(
|
|
643
|
+
S.NullOr(BulkUserUpdateUserBulkUpdatePostRequestUsersList),
|
|
644
|
+
),
|
|
645
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/bulk_update", code: 200 })),
|
|
646
|
+
).annotate({
|
|
647
|
+
identifier: "BulkUserUpdateUserBulkUpdatePostRequest",
|
|
648
|
+
}) as any as S.Schema<BulkUserUpdateUserBulkUpdatePostRequest>;
|
|
649
|
+
|
|
650
|
+
export type UserUpdateResultUpdatedUserMap = {
|
|
651
|
+
[key: string]: unknown | undefined;
|
|
652
|
+
};
|
|
653
|
+
export const UserUpdateResultUpdatedUserMap = /*@__PURE__*/ S.Record(
|
|
654
|
+
S.String,
|
|
655
|
+
S.Unknown,
|
|
656
|
+
) as any as S.Schema<UserUpdateResultUpdatedUserMap>;
|
|
657
|
+
|
|
658
|
+
/** Result of a single user update operation */
|
|
659
|
+
export interface UserUpdateResult {
|
|
660
|
+
error?: string | null;
|
|
661
|
+
success: boolean;
|
|
662
|
+
updated_user?: UserUpdateResultUpdatedUserMap | null;
|
|
663
|
+
user_email?: string | null;
|
|
664
|
+
user_id?: string | null;
|
|
665
|
+
}
|
|
666
|
+
export const UserUpdateResult = /*@__PURE__*/ S.suspend(() =>
|
|
667
|
+
S.Struct({
|
|
668
|
+
error: S.optional(S.NullOr(S.String)),
|
|
669
|
+
success: S.Boolean,
|
|
670
|
+
updated_user: S.optional(S.NullOr(UserUpdateResultUpdatedUserMap)),
|
|
671
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
672
|
+
user_id: S.optional(S.NullOr(S.String)),
|
|
673
|
+
}),
|
|
674
|
+
).annotate({
|
|
675
|
+
identifier: "UserUpdateResult",
|
|
676
|
+
}) as any as S.Schema<UserUpdateResult>;
|
|
677
|
+
|
|
678
|
+
export type BulkUpdateUserResponseResultsList = Array<UserUpdateResult>;
|
|
679
|
+
export const BulkUpdateUserResponseResultsList = /*@__PURE__*/ S.Array(
|
|
680
|
+
UserUpdateResult,
|
|
681
|
+
) as any as S.Schema<BulkUpdateUserResponseResultsList>;
|
|
682
|
+
|
|
683
|
+
/** Response for bulk user update operations */
|
|
684
|
+
export interface BulkUpdateUserResponse {
|
|
685
|
+
failed_updates: number;
|
|
686
|
+
results: BulkUpdateUserResponseResultsList;
|
|
687
|
+
successful_updates: number;
|
|
688
|
+
total_requested: number;
|
|
689
|
+
}
|
|
690
|
+
export const BulkUpdateUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
691
|
+
S.Struct({
|
|
692
|
+
failed_updates: S.Number,
|
|
693
|
+
results: BulkUpdateUserResponseResultsList,
|
|
694
|
+
successful_updates: S.Number,
|
|
695
|
+
total_requested: S.Number,
|
|
696
|
+
}),
|
|
697
|
+
).annotate({
|
|
698
|
+
identifier: "BulkUpdateUserResponse",
|
|
699
|
+
}) as any as S.Schema<BulkUpdateUserResponse>;
|
|
700
|
+
|
|
701
|
+
export type DeleteUserUserDeletePostRequestUserIdsList = Array<string>;
|
|
702
|
+
export const DeleteUserUserDeletePostRequestUserIdsList = /*@__PURE__*/ S.Array(
|
|
703
|
+
S.String,
|
|
704
|
+
) as any as S.Schema<DeleteUserUserDeletePostRequestUserIdsList>;
|
|
705
|
+
|
|
706
|
+
export interface DeleteUserUserDeletePostRequest {
|
|
707
|
+
user_ids: DeleteUserUserDeletePostRequestUserIdsList;
|
|
708
|
+
}
|
|
709
|
+
export const DeleteUserUserDeletePostRequest = /*@__PURE__*/ S.suspend(() =>
|
|
710
|
+
S.Struct({
|
|
711
|
+
user_ids: DeleteUserUserDeletePostRequestUserIdsList,
|
|
712
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/delete", code: 200 })),
|
|
713
|
+
).annotate({
|
|
714
|
+
identifier: "DeleteUserUserDeletePostRequest",
|
|
715
|
+
}) as any as S.Schema<DeleteUserUserDeletePostRequest>;
|
|
716
|
+
|
|
717
|
+
export interface DeleteUserUserDeletePostResponse {
|
|
718
|
+
body: unknown;
|
|
719
|
+
}
|
|
720
|
+
export const DeleteUserUserDeletePostResponse = /*@__PURE__*/ S.suspend(() =>
|
|
721
|
+
S.Struct({
|
|
722
|
+
body: S.Unknown,
|
|
723
|
+
}),
|
|
724
|
+
).annotate({
|
|
725
|
+
identifier: "DeleteUserUserDeletePostResponse",
|
|
726
|
+
}) as any as S.Schema<DeleteUserUserDeletePostResponse>;
|
|
727
|
+
|
|
728
|
+
export interface GetAvailableEnterpriseUsersUserAvailableUserRequest {}
|
|
729
|
+
export const GetAvailableEnterpriseUsersUserAvailableUserRequest =
|
|
730
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
731
|
+
S.Struct({}).pipe(
|
|
732
|
+
T.Http({ method: "GET", uri: "/user/available_users", code: 200 }),
|
|
733
|
+
),
|
|
734
|
+
).annotate({
|
|
735
|
+
identifier: "GetAvailableEnterpriseUsersUserAvailableUserRequest",
|
|
736
|
+
}) as any as S.Schema<GetAvailableEnterpriseUsersUserAvailableUserRequest>;
|
|
737
|
+
|
|
738
|
+
export interface GetAvailableEnterpriseUsersUserAvailableUserResponse {
|
|
739
|
+
body: unknown;
|
|
740
|
+
}
|
|
741
|
+
export const GetAvailableEnterpriseUsersUserAvailableUserResponse =
|
|
742
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
743
|
+
S.Struct({
|
|
744
|
+
body: S.Unknown,
|
|
745
|
+
}),
|
|
746
|
+
).annotate({
|
|
747
|
+
identifier: "GetAvailableEnterpriseUsersUserAvailableUserResponse",
|
|
748
|
+
}) as any as S.Schema<GetAvailableEnterpriseUsersUserAvailableUserResponse>;
|
|
749
|
+
|
|
750
|
+
export interface GetUiViewUsersUserFilterUiRequest {
|
|
751
|
+
/** User ID in the request parameters */
|
|
752
|
+
user_id?: string;
|
|
753
|
+
/** User email in the request parameters */
|
|
754
|
+
user_email?: string;
|
|
755
|
+
/** Team ID — used when a team admin searches for users to add to their team */
|
|
756
|
+
team_id?: string;
|
|
757
|
+
/** Page number for pagination */
|
|
758
|
+
page?: number;
|
|
759
|
+
/** Number of items per page */
|
|
760
|
+
page_size?: number;
|
|
761
|
+
}
|
|
762
|
+
export const GetUiViewUsersUserFilterUiRequest = /*@__PURE__*/ S.suspend(() =>
|
|
763
|
+
S.Struct({
|
|
764
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
765
|
+
user_email: S.optional(S.String.pipe(T.Query())),
|
|
766
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
767
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
768
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
769
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/filter/ui", code: 200 })),
|
|
770
|
+
).annotate({
|
|
771
|
+
identifier: "GetUiViewUsersUserFilterUiRequest",
|
|
772
|
+
}) as any as S.Schema<GetUiViewUsersUserFilterUiRequest>;
|
|
773
|
+
|
|
774
|
+
export interface LiteLLMUserTableFiltered {
|
|
775
|
+
user_email?: string | null;
|
|
776
|
+
user_id: string;
|
|
777
|
+
}
|
|
778
|
+
export const LiteLLMUserTableFiltered = /*@__PURE__*/ S.suspend(() =>
|
|
779
|
+
S.Struct({
|
|
780
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
781
|
+
user_id: S.String,
|
|
782
|
+
}),
|
|
783
|
+
).annotate({
|
|
784
|
+
identifier: "LiteLLMUserTableFiltered",
|
|
785
|
+
}) as any as S.Schema<LiteLLMUserTableFiltered>;
|
|
786
|
+
|
|
787
|
+
export type GetUiViewUsersUserFilterUiResponseBodyList =
|
|
788
|
+
Array<LiteLLMUserTableFiltered>;
|
|
789
|
+
export const GetUiViewUsersUserFilterUiResponseBodyList = /*@__PURE__*/ S.Array(
|
|
790
|
+
LiteLLMUserTableFiltered,
|
|
791
|
+
) as any as S.Schema<GetUiViewUsersUserFilterUiResponseBodyList>;
|
|
792
|
+
|
|
793
|
+
export interface GetUiViewUsersUserFilterUiResponse {
|
|
794
|
+
body: GetUiViewUsersUserFilterUiResponseBodyList;
|
|
795
|
+
}
|
|
796
|
+
export const GetUiViewUsersUserFilterUiResponse = /*@__PURE__*/ S.suspend(() =>
|
|
797
|
+
S.Struct({
|
|
798
|
+
body: GetUiViewUsersUserFilterUiResponseBodyList,
|
|
799
|
+
}),
|
|
800
|
+
).annotate({
|
|
801
|
+
identifier: "GetUiViewUsersUserFilterUiResponse",
|
|
802
|
+
}) as any as S.Schema<GetUiViewUsersUserFilterUiResponse>;
|
|
803
|
+
|
|
804
|
+
export interface GetUserInfoUserInfoRequest {
|
|
805
|
+
/** User ID in the request parameters */
|
|
806
|
+
user_id?: string;
|
|
807
|
+
}
|
|
808
|
+
export const GetUserInfoUserInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
809
|
+
S.Struct({
|
|
810
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
811
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/info", code: 200 })),
|
|
812
|
+
).annotate({
|
|
813
|
+
identifier: "GetUserInfoUserInfoRequest",
|
|
814
|
+
}) as any as S.Schema<GetUserInfoUserInfoRequest>;
|
|
815
|
+
|
|
816
|
+
export type UserInfoResponseKeysList = Array<unknown>;
|
|
817
|
+
export const UserInfoResponseKeysList = /*@__PURE__*/ S.Array(
|
|
818
|
+
S.Unknown,
|
|
819
|
+
) as any as S.Schema<UserInfoResponseKeysList>;
|
|
820
|
+
|
|
821
|
+
export type UserInfoResponseTeamsList = Array<unknown>;
|
|
822
|
+
export const UserInfoResponseTeamsList = /*@__PURE__*/ S.Array(
|
|
823
|
+
S.Unknown,
|
|
824
|
+
) as any as S.Schema<UserInfoResponseTeamsList>;
|
|
825
|
+
|
|
826
|
+
export type UserInfoResponseUserInfoCase0Map = {
|
|
827
|
+
[key: string]: unknown | undefined;
|
|
828
|
+
};
|
|
829
|
+
export const UserInfoResponseUserInfoCase0Map = /*@__PURE__*/ S.Record(
|
|
830
|
+
S.String,
|
|
831
|
+
S.Unknown,
|
|
832
|
+
) as any as S.Schema<UserInfoResponseUserInfoCase0Map>;
|
|
833
|
+
|
|
834
|
+
export type UserInfoResponseUserInfo =
|
|
835
|
+
| UserInfoResponseUserInfoCase0Map
|
|
836
|
+
| unknown;
|
|
837
|
+
export const UserInfoResponseUserInfo =
|
|
838
|
+
S.Unknown as any as S.Schema<UserInfoResponseUserInfo>;
|
|
839
|
+
|
|
840
|
+
export interface UserInfoResponse {
|
|
841
|
+
keys: UserInfoResponseKeysList;
|
|
842
|
+
teams: UserInfoResponseTeamsList;
|
|
843
|
+
user_id: string | null;
|
|
844
|
+
user_info: UserInfoResponseUserInfo | null;
|
|
845
|
+
}
|
|
846
|
+
export const UserInfoResponse = /*@__PURE__*/ S.suspend(() =>
|
|
847
|
+
S.Struct({
|
|
848
|
+
keys: UserInfoResponseKeysList,
|
|
849
|
+
teams: UserInfoResponseTeamsList,
|
|
850
|
+
user_id: S.NullOr(S.String),
|
|
851
|
+
user_info: S.NullOr(UserInfoResponseUserInfo),
|
|
852
|
+
}),
|
|
853
|
+
).annotate({
|
|
854
|
+
identifier: "UserInfoResponse",
|
|
855
|
+
}) as any as S.Schema<UserInfoResponse>;
|
|
856
|
+
|
|
857
|
+
export interface GetUserInfoV2V2UserInfoRequest {
|
|
858
|
+
/** User ID in the request parameters */
|
|
859
|
+
user_id?: string;
|
|
860
|
+
}
|
|
861
|
+
export const GetUserInfoV2V2UserInfoRequest = /*@__PURE__*/ S.suspend(() =>
|
|
862
|
+
S.Struct({
|
|
863
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
864
|
+
}).pipe(T.Http({ method: "GET", uri: "/v2/user/info", code: 200 })),
|
|
865
|
+
).annotate({
|
|
866
|
+
identifier: "GetUserInfoV2V2UserInfoRequest",
|
|
867
|
+
}) as any as S.Schema<GetUserInfoV2V2UserInfoRequest>;
|
|
868
|
+
|
|
869
|
+
export type UserInfoV2ResponseMetadataMap = {
|
|
870
|
+
[key: string]: unknown | undefined;
|
|
871
|
+
};
|
|
872
|
+
export const UserInfoV2ResponseMetadataMap = /*@__PURE__*/ S.Record(
|
|
873
|
+
S.String,
|
|
874
|
+
S.Unknown,
|
|
875
|
+
) as any as S.Schema<UserInfoV2ResponseMetadataMap>;
|
|
876
|
+
|
|
877
|
+
export type UserInfoV2ResponseModelMaxBudgetMap = {
|
|
878
|
+
[key: string]: unknown | undefined;
|
|
879
|
+
};
|
|
880
|
+
export const UserInfoV2ResponseModelMaxBudgetMap = /*@__PURE__*/ S.Record(
|
|
881
|
+
S.String,
|
|
882
|
+
S.Unknown,
|
|
883
|
+
) as any as S.Schema<UserInfoV2ResponseModelMaxBudgetMap>;
|
|
884
|
+
|
|
885
|
+
export type UserInfoV2ResponseModelMaxBudgetUsageValueMap = {
|
|
886
|
+
[key: string]: unknown | undefined;
|
|
887
|
+
};
|
|
888
|
+
export const UserInfoV2ResponseModelMaxBudgetUsageValueMap =
|
|
889
|
+
/*@__PURE__*/ S.Record(
|
|
890
|
+
S.String,
|
|
891
|
+
S.Unknown,
|
|
892
|
+
) as any as S.Schema<UserInfoV2ResponseModelMaxBudgetUsageValueMap>;
|
|
893
|
+
|
|
894
|
+
export type UserInfoV2ResponseModelMaxBudgetUsageMap = {
|
|
895
|
+
[key: string]: UserInfoV2ResponseModelMaxBudgetUsageValueMap | undefined;
|
|
896
|
+
};
|
|
897
|
+
export const UserInfoV2ResponseModelMaxBudgetUsageMap = /*@__PURE__*/ S.Record(
|
|
898
|
+
S.String,
|
|
899
|
+
UserInfoV2ResponseModelMaxBudgetUsageValueMap,
|
|
900
|
+
) as any as S.Schema<UserInfoV2ResponseModelMaxBudgetUsageMap>;
|
|
901
|
+
|
|
902
|
+
export type UserInfoV2ResponseModelsList = Array<string>;
|
|
903
|
+
export const UserInfoV2ResponseModelsList = /*@__PURE__*/ S.Array(
|
|
904
|
+
S.String,
|
|
905
|
+
) as any as S.Schema<UserInfoV2ResponseModelsList>;
|
|
906
|
+
|
|
907
|
+
export type LiteLLMObjectPermissionTableAgentAccessGroupsList = Array<string>;
|
|
908
|
+
export const LiteLLMObjectPermissionTableAgentAccessGroupsList =
|
|
909
|
+
/*@__PURE__*/ S.Array(
|
|
910
|
+
S.String,
|
|
911
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableAgentAccessGroupsList>;
|
|
912
|
+
|
|
913
|
+
export type LiteLLMObjectPermissionTableAgentsList = Array<string>;
|
|
914
|
+
export const LiteLLMObjectPermissionTableAgentsList = /*@__PURE__*/ S.Array(
|
|
915
|
+
S.String,
|
|
916
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableAgentsList>;
|
|
917
|
+
|
|
918
|
+
export type LiteLLMObjectPermissionTableBlockedToolsList = Array<string>;
|
|
919
|
+
export const LiteLLMObjectPermissionTableBlockedToolsList =
|
|
920
|
+
/*@__PURE__*/ S.Array(
|
|
921
|
+
S.String,
|
|
922
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableBlockedToolsList>;
|
|
923
|
+
|
|
924
|
+
export type LiteLLMObjectPermissionTableMcpAccessGroupsList = Array<string>;
|
|
925
|
+
export const LiteLLMObjectPermissionTableMcpAccessGroupsList =
|
|
926
|
+
/*@__PURE__*/ S.Array(
|
|
927
|
+
S.String,
|
|
928
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableMcpAccessGroupsList>;
|
|
929
|
+
|
|
930
|
+
export type LiteLLMObjectPermissionTableMcpServersList = Array<string>;
|
|
931
|
+
export const LiteLLMObjectPermissionTableMcpServersList = /*@__PURE__*/ S.Array(
|
|
932
|
+
S.String,
|
|
933
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableMcpServersList>;
|
|
934
|
+
|
|
935
|
+
export type LiteLLMObjectPermissionTableMcpToolPermissionsValueList =
|
|
936
|
+
Array<string>;
|
|
937
|
+
export const LiteLLMObjectPermissionTableMcpToolPermissionsValueList =
|
|
938
|
+
/*@__PURE__*/ S.Array(
|
|
939
|
+
S.String,
|
|
940
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableMcpToolPermissionsValueList>;
|
|
941
|
+
|
|
942
|
+
export type LiteLLMObjectPermissionTableMcpToolPermissionsMap = {
|
|
943
|
+
[key: string]:
|
|
944
|
+
| LiteLLMObjectPermissionTableMcpToolPermissionsValueList
|
|
945
|
+
| undefined;
|
|
946
|
+
};
|
|
947
|
+
export const LiteLLMObjectPermissionTableMcpToolPermissionsMap =
|
|
948
|
+
/*@__PURE__*/ S.Record(
|
|
949
|
+
S.String,
|
|
950
|
+
LiteLLMObjectPermissionTableMcpToolPermissionsValueList,
|
|
951
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableMcpToolPermissionsMap>;
|
|
952
|
+
|
|
953
|
+
export type LiteLLMObjectPermissionTableMcpToolsetsList = Array<string>;
|
|
954
|
+
export const LiteLLMObjectPermissionTableMcpToolsetsList =
|
|
955
|
+
/*@__PURE__*/ S.Array(
|
|
956
|
+
S.String,
|
|
957
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableMcpToolsetsList>;
|
|
958
|
+
|
|
959
|
+
export type LiteLLMObjectPermissionTableModelsList = Array<string>;
|
|
960
|
+
export const LiteLLMObjectPermissionTableModelsList = /*@__PURE__*/ S.Array(
|
|
961
|
+
S.String,
|
|
962
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableModelsList>;
|
|
963
|
+
|
|
964
|
+
export type LiteLLMObjectPermissionTableSearchToolsList = Array<string>;
|
|
965
|
+
export const LiteLLMObjectPermissionTableSearchToolsList =
|
|
966
|
+
/*@__PURE__*/ S.Array(
|
|
967
|
+
S.String,
|
|
968
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableSearchToolsList>;
|
|
969
|
+
|
|
970
|
+
export type LiteLLMObjectPermissionTableVectorStoresList = Array<string>;
|
|
971
|
+
export const LiteLLMObjectPermissionTableVectorStoresList =
|
|
972
|
+
/*@__PURE__*/ S.Array(
|
|
973
|
+
S.String,
|
|
974
|
+
) as any as S.Schema<LiteLLMObjectPermissionTableVectorStoresList>;
|
|
975
|
+
|
|
976
|
+
/** Represents a LiteLLM_ObjectPermissionTable record */
|
|
977
|
+
export interface LiteLLMObjectPermissionTable {
|
|
978
|
+
agent_access_groups?: LiteLLMObjectPermissionTableAgentAccessGroupsList | null;
|
|
979
|
+
agents?: LiteLLMObjectPermissionTableAgentsList | null;
|
|
980
|
+
blocked_tools?: LiteLLMObjectPermissionTableBlockedToolsList | null;
|
|
981
|
+
mcp_access_groups?: LiteLLMObjectPermissionTableMcpAccessGroupsList | null;
|
|
982
|
+
mcp_servers?: LiteLLMObjectPermissionTableMcpServersList | null;
|
|
983
|
+
mcp_tool_permissions?: LiteLLMObjectPermissionTableMcpToolPermissionsMap | null;
|
|
984
|
+
mcp_tool_search_enabled?: boolean | null;
|
|
985
|
+
mcp_toolsets?: LiteLLMObjectPermissionTableMcpToolsetsList | null;
|
|
986
|
+
models?: LiteLLMObjectPermissionTableModelsList | null;
|
|
987
|
+
object_permission_id: string;
|
|
988
|
+
search_tools?: LiteLLMObjectPermissionTableSearchToolsList | null;
|
|
989
|
+
vector_stores?: LiteLLMObjectPermissionTableVectorStoresList | null;
|
|
990
|
+
}
|
|
991
|
+
export const LiteLLMObjectPermissionTable = /*@__PURE__*/ S.suspend(() =>
|
|
992
|
+
S.Struct({
|
|
993
|
+
agent_access_groups: S.optional(
|
|
994
|
+
S.NullOr(LiteLLMObjectPermissionTableAgentAccessGroupsList),
|
|
995
|
+
),
|
|
996
|
+
agents: S.optional(S.NullOr(LiteLLMObjectPermissionTableAgentsList)),
|
|
997
|
+
blocked_tools: S.optional(
|
|
998
|
+
S.NullOr(LiteLLMObjectPermissionTableBlockedToolsList),
|
|
999
|
+
),
|
|
1000
|
+
mcp_access_groups: S.optional(
|
|
1001
|
+
S.NullOr(LiteLLMObjectPermissionTableMcpAccessGroupsList),
|
|
1002
|
+
),
|
|
1003
|
+
mcp_servers: S.optional(
|
|
1004
|
+
S.NullOr(LiteLLMObjectPermissionTableMcpServersList),
|
|
1005
|
+
),
|
|
1006
|
+
mcp_tool_permissions: S.optional(
|
|
1007
|
+
S.NullOr(LiteLLMObjectPermissionTableMcpToolPermissionsMap),
|
|
1008
|
+
),
|
|
1009
|
+
mcp_tool_search_enabled: S.optional(S.NullOr(S.Boolean)),
|
|
1010
|
+
mcp_toolsets: S.optional(
|
|
1011
|
+
S.NullOr(LiteLLMObjectPermissionTableMcpToolsetsList),
|
|
1012
|
+
),
|
|
1013
|
+
models: S.optional(S.NullOr(LiteLLMObjectPermissionTableModelsList)),
|
|
1014
|
+
object_permission_id: S.String,
|
|
1015
|
+
search_tools: S.optional(
|
|
1016
|
+
S.NullOr(LiteLLMObjectPermissionTableSearchToolsList),
|
|
1017
|
+
),
|
|
1018
|
+
vector_stores: S.optional(
|
|
1019
|
+
S.NullOr(LiteLLMObjectPermissionTableVectorStoresList),
|
|
1020
|
+
),
|
|
1021
|
+
}),
|
|
1022
|
+
).annotate({
|
|
1023
|
+
identifier: "LiteLLMObjectPermissionTable",
|
|
1024
|
+
}) as any as S.Schema<LiteLLMObjectPermissionTable>;
|
|
1025
|
+
|
|
1026
|
+
export type UserInfoV2ResponseTeamsList = Array<string>;
|
|
1027
|
+
export const UserInfoV2ResponseTeamsList = /*@__PURE__*/ S.Array(
|
|
1028
|
+
S.String,
|
|
1029
|
+
) as any as S.Schema<UserInfoV2ResponseTeamsList>;
|
|
1030
|
+
|
|
1031
|
+
/** Response model for GET /v2/user/info Returns ONLY the user object - no keys, no teams objects. This is a lightweight alternative to UserInfoResponse. */
|
|
1032
|
+
export interface UserInfoV2Response {
|
|
1033
|
+
budget_duration?: string | null;
|
|
1034
|
+
budget_reset_at?: string | null;
|
|
1035
|
+
created_at?: string | null;
|
|
1036
|
+
max_budget?: number | null;
|
|
1037
|
+
metadata?: UserInfoV2ResponseMetadataMap | null;
|
|
1038
|
+
model_max_budget?: UserInfoV2ResponseModelMaxBudgetMap | null;
|
|
1039
|
+
model_max_budget_usage?: UserInfoV2ResponseModelMaxBudgetUsageMap | null;
|
|
1040
|
+
models?: UserInfoV2ResponseModelsList;
|
|
1041
|
+
object_permission?: LiteLLMObjectPermissionTable | null;
|
|
1042
|
+
spend?: number;
|
|
1043
|
+
sso_user_id?: string | null;
|
|
1044
|
+
teams?: UserInfoV2ResponseTeamsList;
|
|
1045
|
+
updated_at?: string | null;
|
|
1046
|
+
user_alias?: string | null;
|
|
1047
|
+
user_email?: string | null;
|
|
1048
|
+
user_id: string;
|
|
1049
|
+
user_role?: string | null;
|
|
1050
|
+
}
|
|
1051
|
+
export const UserInfoV2Response = /*@__PURE__*/ S.suspend(() =>
|
|
1052
|
+
S.Struct({
|
|
1053
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
1054
|
+
budget_reset_at: S.optional(S.NullOr(S.String)),
|
|
1055
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1056
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
1057
|
+
metadata: S.optional(S.NullOr(UserInfoV2ResponseMetadataMap)),
|
|
1058
|
+
model_max_budget: S.optional(S.NullOr(UserInfoV2ResponseModelMaxBudgetMap)),
|
|
1059
|
+
model_max_budget_usage: S.optional(
|
|
1060
|
+
S.NullOr(UserInfoV2ResponseModelMaxBudgetUsageMap),
|
|
1061
|
+
),
|
|
1062
|
+
models: S.optional(UserInfoV2ResponseModelsList),
|
|
1063
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
|
|
1064
|
+
spend: S.optional(S.Number),
|
|
1065
|
+
sso_user_id: S.optional(S.NullOr(S.String)),
|
|
1066
|
+
teams: S.optional(UserInfoV2ResponseTeamsList),
|
|
1067
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1068
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
1069
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
1070
|
+
user_id: S.String,
|
|
1071
|
+
user_role: S.optional(S.NullOr(S.String)),
|
|
1072
|
+
}),
|
|
1073
|
+
).annotate({
|
|
1074
|
+
identifier: "UserInfoV2Response",
|
|
1075
|
+
}) as any as S.Schema<UserInfoV2Response>;
|
|
1076
|
+
|
|
1077
|
+
export interface GetUsersUserListGetRequest {
|
|
1078
|
+
/** Filter users by role */
|
|
1079
|
+
role?: string;
|
|
1080
|
+
/** Get list of users by user_ids */
|
|
1081
|
+
user_ids?: string;
|
|
1082
|
+
/** Get list of users by sso_user_id */
|
|
1083
|
+
sso_user_ids?: string;
|
|
1084
|
+
/** Filter users by partial email match */
|
|
1085
|
+
user_email?: string;
|
|
1086
|
+
/** Filter users by team id */
|
|
1087
|
+
team?: string;
|
|
1088
|
+
/** Page number */
|
|
1089
|
+
page?: number;
|
|
1090
|
+
/** Number of items per page */
|
|
1091
|
+
page_size?: number;
|
|
1092
|
+
/** Column to sort by (e.g. 'user_id', 'user_email', 'created_at', 'spend') */
|
|
1093
|
+
sort_by?: string;
|
|
1094
|
+
/** Sort order ('asc' or 'desc') */
|
|
1095
|
+
sort_order?: string;
|
|
1096
|
+
/** Filter users by organization membership. Comma-separated list of org IDs. */
|
|
1097
|
+
organization_ids?: string;
|
|
1098
|
+
}
|
|
1099
|
+
export const GetUsersUserListGetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
role: S.optional(S.String.pipe(T.Query())),
|
|
1102
|
+
user_ids: S.optional(S.String.pipe(T.Query())),
|
|
1103
|
+
sso_user_ids: S.optional(S.String.pipe(T.Query())),
|
|
1104
|
+
user_email: S.optional(S.String.pipe(T.Query())),
|
|
1105
|
+
team: S.optional(S.String.pipe(T.Query())),
|
|
1106
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1107
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1108
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
1109
|
+
sort_order: S.optional(S.String.pipe(T.Query())),
|
|
1110
|
+
organization_ids: S.optional(S.String.pipe(T.Query())),
|
|
1111
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/list", code: 200 })),
|
|
1112
|
+
).annotate({
|
|
1113
|
+
identifier: "GetUsersUserListGetRequest",
|
|
1114
|
+
}) as any as S.Schema<GetUsersUserListGetRequest>;
|
|
1115
|
+
|
|
1116
|
+
export type LiteLLMUserTableWithKeyCountAllowedCacheControlsList =
|
|
1117
|
+
Array<string>;
|
|
1118
|
+
export const LiteLLMUserTableWithKeyCountAllowedCacheControlsList =
|
|
1119
|
+
/*@__PURE__*/ S.Array(
|
|
1120
|
+
S.String,
|
|
1121
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountAllowedCacheControlsList>;
|
|
1122
|
+
|
|
1123
|
+
export type LiteLLMUserTableWithKeyCountMetadataMap = {
|
|
1124
|
+
[key: string]: unknown | undefined;
|
|
1125
|
+
};
|
|
1126
|
+
export const LiteLLMUserTableWithKeyCountMetadataMap = /*@__PURE__*/ S.Record(
|
|
1127
|
+
S.String,
|
|
1128
|
+
S.Unknown,
|
|
1129
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountMetadataMap>;
|
|
1130
|
+
|
|
1131
|
+
export type LiteLLMUserTableWithKeyCountModelMaxBudgetMap = {
|
|
1132
|
+
[key: string]: unknown | undefined;
|
|
1133
|
+
};
|
|
1134
|
+
export const LiteLLMUserTableWithKeyCountModelMaxBudgetMap =
|
|
1135
|
+
/*@__PURE__*/ S.Record(
|
|
1136
|
+
S.String,
|
|
1137
|
+
S.Unknown,
|
|
1138
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountModelMaxBudgetMap>;
|
|
1139
|
+
|
|
1140
|
+
export type LiteLLMUserTableWithKeyCountModelSpendMap = {
|
|
1141
|
+
[key: string]: unknown | undefined;
|
|
1142
|
+
};
|
|
1143
|
+
export const LiteLLMUserTableWithKeyCountModelSpendMap = /*@__PURE__*/ S.Record(
|
|
1144
|
+
S.String,
|
|
1145
|
+
S.Unknown,
|
|
1146
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountModelSpendMap>;
|
|
1147
|
+
|
|
1148
|
+
export type LiteLLMUserTableWithKeyCountModelsList = Array<unknown>;
|
|
1149
|
+
export const LiteLLMUserTableWithKeyCountModelsList = /*@__PURE__*/ S.Array(
|
|
1150
|
+
S.Unknown,
|
|
1151
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountModelsList>;
|
|
1152
|
+
|
|
1153
|
+
export type LiteLLMBudgetTableAllowedModelsList = Array<string>;
|
|
1154
|
+
export const LiteLLMBudgetTableAllowedModelsList = /*@__PURE__*/ S.Array(
|
|
1155
|
+
S.String,
|
|
1156
|
+
) as any as S.Schema<LiteLLMBudgetTableAllowedModelsList>;
|
|
1157
|
+
|
|
1158
|
+
export type LiteLLMBudgetTableModelMaxBudgetMap = {
|
|
1159
|
+
[key: string]: unknown | undefined;
|
|
1160
|
+
};
|
|
1161
|
+
export const LiteLLMBudgetTableModelMaxBudgetMap = /*@__PURE__*/ S.Record(
|
|
1162
|
+
S.String,
|
|
1163
|
+
S.Unknown,
|
|
1164
|
+
) as any as S.Schema<LiteLLMBudgetTableModelMaxBudgetMap>;
|
|
1165
|
+
|
|
1166
|
+
/** Represents user-controllable params for a LiteLLM_BudgetTable record. Budget-write paths use `model_fields.keys()` on this class as an allowlist for user input. Keep server-managed fields (e.g. `budget_reset_at`) on `LiteLLM_BudgetTableFull` so they aren't user-settable. */
|
|
1167
|
+
export interface LiteLLMBudgetTable {
|
|
1168
|
+
allowed_models?: LiteLLMBudgetTableAllowedModelsList | null;
|
|
1169
|
+
budget_duration?: string | null;
|
|
1170
|
+
budget_id?: string | null;
|
|
1171
|
+
max_budget?: number | null;
|
|
1172
|
+
max_parallel_requests?: number | null;
|
|
1173
|
+
model_max_budget?: LiteLLMBudgetTableModelMaxBudgetMap | null;
|
|
1174
|
+
rpm_limit?: number | null;
|
|
1175
|
+
soft_budget?: number | null;
|
|
1176
|
+
tpm_limit?: number | null;
|
|
1177
|
+
}
|
|
1178
|
+
export const LiteLLMBudgetTable = /*@__PURE__*/ S.suspend(() =>
|
|
1179
|
+
S.Struct({
|
|
1180
|
+
allowed_models: S.optional(S.NullOr(LiteLLMBudgetTableAllowedModelsList)),
|
|
1181
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
1182
|
+
budget_id: S.optional(S.NullOr(S.String)),
|
|
1183
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
1184
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
1185
|
+
model_max_budget: S.optional(S.NullOr(LiteLLMBudgetTableModelMaxBudgetMap)),
|
|
1186
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
1187
|
+
soft_budget: S.optional(S.NullOr(S.Number)),
|
|
1188
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
1189
|
+
}),
|
|
1190
|
+
).annotate({
|
|
1191
|
+
identifier: "LiteLLMBudgetTable",
|
|
1192
|
+
}) as any as S.Schema<LiteLLMBudgetTable>;
|
|
1193
|
+
|
|
1194
|
+
/** Tracks which organizations a user belongs to and their spend within it. */
|
|
1195
|
+
export interface LiteLLMOrganizationMembershipTable {
|
|
1196
|
+
budget_id?: string | null;
|
|
1197
|
+
created_at: string;
|
|
1198
|
+
litellm_budget_table?: LiteLLMBudgetTable | null;
|
|
1199
|
+
organization_id: string;
|
|
1200
|
+
spend?: number;
|
|
1201
|
+
updated_at: string;
|
|
1202
|
+
user?: unknown | null;
|
|
1203
|
+
user_email?: string | null;
|
|
1204
|
+
user_id: string;
|
|
1205
|
+
user_role?: string | null;
|
|
1206
|
+
}
|
|
1207
|
+
export const LiteLLMOrganizationMembershipTable = /*@__PURE__*/ S.suspend(() =>
|
|
1208
|
+
S.Struct({
|
|
1209
|
+
budget_id: S.optional(S.NullOr(S.String)),
|
|
1210
|
+
created_at: S.String,
|
|
1211
|
+
litellm_budget_table: S.optional(S.NullOr(LiteLLMBudgetTable)),
|
|
1212
|
+
organization_id: S.String,
|
|
1213
|
+
spend: S.optional(S.Number),
|
|
1214
|
+
updated_at: S.String,
|
|
1215
|
+
user: S.optional(S.NullOr(S.Unknown)),
|
|
1216
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
1217
|
+
user_id: S.String,
|
|
1218
|
+
user_role: S.optional(S.NullOr(S.String)),
|
|
1219
|
+
}),
|
|
1220
|
+
).annotate({
|
|
1221
|
+
identifier: "LiteLLMOrganizationMembershipTable",
|
|
1222
|
+
}) as any as S.Schema<LiteLLMOrganizationMembershipTable>;
|
|
1223
|
+
|
|
1224
|
+
export type LiteLLMUserTableWithKeyCountOrganizationMembershipsList =
|
|
1225
|
+
Array<LiteLLMOrganizationMembershipTable>;
|
|
1226
|
+
export const LiteLLMUserTableWithKeyCountOrganizationMembershipsList =
|
|
1227
|
+
/*@__PURE__*/ S.Array(
|
|
1228
|
+
LiteLLMOrganizationMembershipTable,
|
|
1229
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountOrganizationMembershipsList>;
|
|
1230
|
+
|
|
1231
|
+
export type LiteLLMUserTableWithKeyCountPoliciesList = Array<string>;
|
|
1232
|
+
export const LiteLLMUserTableWithKeyCountPoliciesList = /*@__PURE__*/ S.Array(
|
|
1233
|
+
S.String,
|
|
1234
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountPoliciesList>;
|
|
1235
|
+
|
|
1236
|
+
export type LiteLLMUserTableWithKeyCountTeamsList = Array<string>;
|
|
1237
|
+
export const LiteLLMUserTableWithKeyCountTeamsList = /*@__PURE__*/ S.Array(
|
|
1238
|
+
S.String,
|
|
1239
|
+
) as any as S.Schema<LiteLLMUserTableWithKeyCountTeamsList>;
|
|
1240
|
+
|
|
1241
|
+
export interface LiteLLMUserTableWithKeyCount {
|
|
1242
|
+
allowed_cache_controls?: LiteLLMUserTableWithKeyCountAllowedCacheControlsList;
|
|
1243
|
+
budget_duration?: string | null;
|
|
1244
|
+
budget_reset_at?: string | null;
|
|
1245
|
+
created_at?: string | null;
|
|
1246
|
+
key_count?: number;
|
|
1247
|
+
max_budget?: number | null;
|
|
1248
|
+
max_parallel_requests?: number | null;
|
|
1249
|
+
metadata?: LiteLLMUserTableWithKeyCountMetadataMap | null;
|
|
1250
|
+
model_max_budget?: LiteLLMUserTableWithKeyCountModelMaxBudgetMap | null;
|
|
1251
|
+
model_spend?: LiteLLMUserTableWithKeyCountModelSpendMap | null;
|
|
1252
|
+
models?: LiteLLMUserTableWithKeyCountModelsList;
|
|
1253
|
+
object_permission?: LiteLLMObjectPermissionTable | null;
|
|
1254
|
+
object_permission_id?: string | null;
|
|
1255
|
+
organization_id?: string | null;
|
|
1256
|
+
organization_memberships?: LiteLLMUserTableWithKeyCountOrganizationMembershipsList | null;
|
|
1257
|
+
policies?: LiteLLMUserTableWithKeyCountPoliciesList;
|
|
1258
|
+
rpm_limit?: number | null;
|
|
1259
|
+
spend?: number;
|
|
1260
|
+
sso_user_id?: string | null;
|
|
1261
|
+
team_id?: string | null;
|
|
1262
|
+
teams?: LiteLLMUserTableWithKeyCountTeamsList;
|
|
1263
|
+
tpm_limit?: number | null;
|
|
1264
|
+
updated_at?: string | null;
|
|
1265
|
+
user_alias?: string | null;
|
|
1266
|
+
user_email?: string | null;
|
|
1267
|
+
user_id: string;
|
|
1268
|
+
user_role?: string | null;
|
|
1269
|
+
}
|
|
1270
|
+
export const LiteLLMUserTableWithKeyCount = /*@__PURE__*/ S.suspend(() =>
|
|
1271
|
+
S.Struct({
|
|
1272
|
+
allowed_cache_controls: S.optional(
|
|
1273
|
+
LiteLLMUserTableWithKeyCountAllowedCacheControlsList,
|
|
1274
|
+
),
|
|
1275
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
1276
|
+
budget_reset_at: S.optional(S.NullOr(S.String)),
|
|
1277
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
1278
|
+
key_count: S.optional(S.Number),
|
|
1279
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
1280
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
1281
|
+
metadata: S.optional(S.NullOr(LiteLLMUserTableWithKeyCountMetadataMap)),
|
|
1282
|
+
model_max_budget: S.optional(
|
|
1283
|
+
S.NullOr(LiteLLMUserTableWithKeyCountModelMaxBudgetMap),
|
|
1284
|
+
),
|
|
1285
|
+
model_spend: S.optional(
|
|
1286
|
+
S.NullOr(LiteLLMUserTableWithKeyCountModelSpendMap),
|
|
1287
|
+
),
|
|
1288
|
+
models: S.optional(LiteLLMUserTableWithKeyCountModelsList),
|
|
1289
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionTable)),
|
|
1290
|
+
object_permission_id: S.optional(S.NullOr(S.String)),
|
|
1291
|
+
organization_id: S.optional(S.NullOr(S.String)),
|
|
1292
|
+
organization_memberships: S.optional(
|
|
1293
|
+
S.NullOr(LiteLLMUserTableWithKeyCountOrganizationMembershipsList),
|
|
1294
|
+
),
|
|
1295
|
+
policies: S.optional(LiteLLMUserTableWithKeyCountPoliciesList),
|
|
1296
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
1297
|
+
spend: S.optional(S.Number),
|
|
1298
|
+
sso_user_id: S.optional(S.NullOr(S.String)),
|
|
1299
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
1300
|
+
teams: S.optional(LiteLLMUserTableWithKeyCountTeamsList),
|
|
1301
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
1302
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
1303
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
1304
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
1305
|
+
user_id: S.String,
|
|
1306
|
+
user_role: S.optional(S.NullOr(S.String)),
|
|
1307
|
+
}),
|
|
1308
|
+
).annotate({
|
|
1309
|
+
identifier: "LiteLLMUserTableWithKeyCount",
|
|
1310
|
+
}) as any as S.Schema<LiteLLMUserTableWithKeyCount>;
|
|
1311
|
+
|
|
1312
|
+
export type UserListResponseUsersList = Array<LiteLLMUserTableWithKeyCount>;
|
|
1313
|
+
export const UserListResponseUsersList = /*@__PURE__*/ S.Array(
|
|
1314
|
+
LiteLLMUserTableWithKeyCount,
|
|
1315
|
+
) as any as S.Schema<UserListResponseUsersList>;
|
|
1316
|
+
|
|
1317
|
+
/** Response model for the user list endpoint */
|
|
1318
|
+
export interface UserListResponse {
|
|
1319
|
+
page: number;
|
|
1320
|
+
page_size: number;
|
|
1321
|
+
total: number;
|
|
1322
|
+
total_pages: number;
|
|
1323
|
+
users: UserListResponseUsersList;
|
|
1324
|
+
}
|
|
1325
|
+
export const UserListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1326
|
+
S.Struct({
|
|
1327
|
+
page: S.Number,
|
|
1328
|
+
page_size: S.Number,
|
|
1329
|
+
total: S.Number,
|
|
1330
|
+
total_pages: S.Number,
|
|
1331
|
+
users: UserListResponseUsersList,
|
|
1332
|
+
}),
|
|
1333
|
+
).annotate({
|
|
1334
|
+
identifier: "UserListResponse",
|
|
1335
|
+
}) as any as S.Schema<UserListResponse>;
|
|
1336
|
+
|
|
1337
|
+
export type PostNewUserUserNewRequestAliasesMap = {
|
|
1338
|
+
[key: string]: unknown | undefined;
|
|
1339
|
+
};
|
|
1340
|
+
export const PostNewUserUserNewRequestAliasesMap = /*@__PURE__*/ S.Record(
|
|
1341
|
+
S.String,
|
|
1342
|
+
S.Unknown,
|
|
1343
|
+
) as any as S.Schema<PostNewUserUserNewRequestAliasesMap>;
|
|
1344
|
+
|
|
1345
|
+
export type PostNewUserUserNewRequestAllowedCacheControlsList = Array<unknown>;
|
|
1346
|
+
export const PostNewUserUserNewRequestAllowedCacheControlsList =
|
|
1347
|
+
/*@__PURE__*/ S.Array(
|
|
1348
|
+
S.Unknown,
|
|
1349
|
+
) as any as S.Schema<PostNewUserUserNewRequestAllowedCacheControlsList>;
|
|
1350
|
+
|
|
1351
|
+
export type PostNewUserUserNewRequestBudgetFallbacksValueList = Array<string>;
|
|
1352
|
+
export const PostNewUserUserNewRequestBudgetFallbacksValueList =
|
|
1353
|
+
/*@__PURE__*/ S.Array(
|
|
1354
|
+
S.String,
|
|
1355
|
+
) as any as S.Schema<PostNewUserUserNewRequestBudgetFallbacksValueList>;
|
|
1356
|
+
|
|
1357
|
+
export type PostNewUserUserNewRequestBudgetFallbacksMap = {
|
|
1358
|
+
[key: string]: PostNewUserUserNewRequestBudgetFallbacksValueList | undefined;
|
|
1359
|
+
};
|
|
1360
|
+
export const PostNewUserUserNewRequestBudgetFallbacksMap =
|
|
1361
|
+
/*@__PURE__*/ S.Record(
|
|
1362
|
+
S.String,
|
|
1363
|
+
PostNewUserUserNewRequestBudgetFallbacksValueList,
|
|
1364
|
+
) as any as S.Schema<PostNewUserUserNewRequestBudgetFallbacksMap>;
|
|
1365
|
+
|
|
1366
|
+
export type PostNewUserUserNewRequestBudgetLimitsList = Array<BudgetLimitEntry>;
|
|
1367
|
+
export const PostNewUserUserNewRequestBudgetLimitsList = /*@__PURE__*/ S.Array(
|
|
1368
|
+
BudgetLimitEntry,
|
|
1369
|
+
) as any as S.Schema<PostNewUserUserNewRequestBudgetLimitsList>;
|
|
1370
|
+
|
|
1371
|
+
export type PostNewUserUserNewRequestConfigMap = {
|
|
1372
|
+
[key: string]: unknown | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
export const PostNewUserUserNewRequestConfigMap = /*@__PURE__*/ S.Record(
|
|
1375
|
+
S.String,
|
|
1376
|
+
S.Unknown,
|
|
1377
|
+
) as any as S.Schema<PostNewUserUserNewRequestConfigMap>;
|
|
1378
|
+
|
|
1379
|
+
export type PostNewUserUserNewRequestGuardrailsList = Array<string>;
|
|
1380
|
+
export const PostNewUserUserNewRequestGuardrailsList = /*@__PURE__*/ S.Array(
|
|
1381
|
+
S.String,
|
|
1382
|
+
) as any as S.Schema<PostNewUserUserNewRequestGuardrailsList>;
|
|
1383
|
+
|
|
1384
|
+
export type PostNewUserUserNewRequestMcpRpmLimitMap = {
|
|
1385
|
+
[key: string]: number | undefined;
|
|
1386
|
+
};
|
|
1387
|
+
export const PostNewUserUserNewRequestMcpRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1388
|
+
S.String,
|
|
1389
|
+
S.Number,
|
|
1390
|
+
) as any as S.Schema<PostNewUserUserNewRequestMcpRpmLimitMap>;
|
|
1391
|
+
|
|
1392
|
+
export type PostNewUserUserNewRequestMetadataMap = {
|
|
1393
|
+
[key: string]: unknown | undefined;
|
|
1394
|
+
};
|
|
1395
|
+
export const PostNewUserUserNewRequestMetadataMap = /*@__PURE__*/ S.Record(
|
|
1396
|
+
S.String,
|
|
1397
|
+
S.Unknown,
|
|
1398
|
+
) as any as S.Schema<PostNewUserUserNewRequestMetadataMap>;
|
|
1399
|
+
|
|
1400
|
+
export type PostNewUserUserNewRequestModelMaxBudgetMap = {
|
|
1401
|
+
[key: string]: unknown | undefined;
|
|
1402
|
+
};
|
|
1403
|
+
export const PostNewUserUserNewRequestModelMaxBudgetMap =
|
|
1404
|
+
/*@__PURE__*/ S.Record(
|
|
1405
|
+
S.String,
|
|
1406
|
+
S.Unknown,
|
|
1407
|
+
) as any as S.Schema<PostNewUserUserNewRequestModelMaxBudgetMap>;
|
|
1408
|
+
|
|
1409
|
+
export type PostNewUserUserNewRequestModelRpmLimitMap = {
|
|
1410
|
+
[key: string]: unknown | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
export const PostNewUserUserNewRequestModelRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1413
|
+
S.String,
|
|
1414
|
+
S.Unknown,
|
|
1415
|
+
) as any as S.Schema<PostNewUserUserNewRequestModelRpmLimitMap>;
|
|
1416
|
+
|
|
1417
|
+
export type PostNewUserUserNewRequestModelTpmLimitMap = {
|
|
1418
|
+
[key: string]: unknown | undefined;
|
|
1419
|
+
};
|
|
1420
|
+
export const PostNewUserUserNewRequestModelTpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1421
|
+
S.String,
|
|
1422
|
+
S.Unknown,
|
|
1423
|
+
) as any as S.Schema<PostNewUserUserNewRequestModelTpmLimitMap>;
|
|
1424
|
+
|
|
1425
|
+
export type PostNewUserUserNewRequestModelsList = Array<unknown>;
|
|
1426
|
+
export const PostNewUserUserNewRequestModelsList = /*@__PURE__*/ S.Array(
|
|
1427
|
+
S.Unknown,
|
|
1428
|
+
) as any as S.Schema<PostNewUserUserNewRequestModelsList>;
|
|
1429
|
+
|
|
1430
|
+
export type PostNewUserUserNewRequestOrganizationsList = Array<string>;
|
|
1431
|
+
export const PostNewUserUserNewRequestOrganizationsList = /*@__PURE__*/ S.Array(
|
|
1432
|
+
S.String,
|
|
1433
|
+
) as any as S.Schema<PostNewUserUserNewRequestOrganizationsList>;
|
|
1434
|
+
|
|
1435
|
+
export type PostNewUserUserNewRequestPermissionsMap = {
|
|
1436
|
+
[key: string]: unknown | undefined;
|
|
1437
|
+
};
|
|
1438
|
+
export const PostNewUserUserNewRequestPermissionsMap = /*@__PURE__*/ S.Record(
|
|
1439
|
+
S.String,
|
|
1440
|
+
S.Unknown,
|
|
1441
|
+
) as any as S.Schema<PostNewUserUserNewRequestPermissionsMap>;
|
|
1442
|
+
|
|
1443
|
+
export type PostNewUserUserNewRequestPoliciesList = Array<string>;
|
|
1444
|
+
export const PostNewUserUserNewRequestPoliciesList = /*@__PURE__*/ S.Array(
|
|
1445
|
+
S.String,
|
|
1446
|
+
) as any as S.Schema<PostNewUserUserNewRequestPoliciesList>;
|
|
1447
|
+
|
|
1448
|
+
export type PostNewUserUserNewRequestPromptsList = Array<string>;
|
|
1449
|
+
export const PostNewUserUserNewRequestPromptsList = /*@__PURE__*/ S.Array(
|
|
1450
|
+
S.String,
|
|
1451
|
+
) as any as S.Schema<PostNewUserUserNewRequestPromptsList>;
|
|
1452
|
+
|
|
1453
|
+
export type PostNewUserUserNewRequestTagRpmLimitMap = {
|
|
1454
|
+
[key: string]: number | undefined;
|
|
1455
|
+
};
|
|
1456
|
+
export const PostNewUserUserNewRequestTagRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1457
|
+
S.String,
|
|
1458
|
+
S.Number,
|
|
1459
|
+
) as any as S.Schema<PostNewUserUserNewRequestTagRpmLimitMap>;
|
|
1460
|
+
|
|
1461
|
+
export type PostNewUserUserNewRequestTeamsCase0List = Array<string>;
|
|
1462
|
+
export const PostNewUserUserNewRequestTeamsCase0List = /*@__PURE__*/ S.Array(
|
|
1463
|
+
S.String,
|
|
1464
|
+
) as any as S.Schema<PostNewUserUserNewRequestTeamsCase0List>;
|
|
1465
|
+
|
|
1466
|
+
export type NewUserRequestTeamUserRole = "user" | "admin";
|
|
1467
|
+
export const NewUserRequestTeamUserRole = S.String;
|
|
1468
|
+
|
|
1469
|
+
export interface NewUserRequestTeam {
|
|
1470
|
+
max_budget_in_team?: number | null;
|
|
1471
|
+
team_id: string;
|
|
1472
|
+
user_role?: NewUserRequestTeamUserRole | (string & {});
|
|
1473
|
+
}
|
|
1474
|
+
export const NewUserRequestTeam = /*@__PURE__*/ S.suspend(() =>
|
|
1475
|
+
S.Struct({
|
|
1476
|
+
max_budget_in_team: S.optional(S.NullOr(S.Number)),
|
|
1477
|
+
team_id: S.String,
|
|
1478
|
+
user_role: S.optional(NewUserRequestTeamUserRole),
|
|
1479
|
+
}),
|
|
1480
|
+
).annotate({
|
|
1481
|
+
identifier: "NewUserRequestTeam",
|
|
1482
|
+
}) as any as S.Schema<NewUserRequestTeam>;
|
|
1483
|
+
|
|
1484
|
+
export type PostNewUserUserNewRequestTeamsCase1List = Array<NewUserRequestTeam>;
|
|
1485
|
+
export const PostNewUserUserNewRequestTeamsCase1List = /*@__PURE__*/ S.Array(
|
|
1486
|
+
NewUserRequestTeam,
|
|
1487
|
+
) as any as S.Schema<PostNewUserUserNewRequestTeamsCase1List>;
|
|
1488
|
+
|
|
1489
|
+
export type PostNewUserUserNewRequestTeams =
|
|
1490
|
+
| PostNewUserUserNewRequestTeamsCase0List
|
|
1491
|
+
| PostNewUserUserNewRequestTeamsCase1List;
|
|
1492
|
+
export const PostNewUserUserNewRequestTeams =
|
|
1493
|
+
S.Unknown as any as S.Schema<PostNewUserUserNewRequestTeams>;
|
|
1494
|
+
|
|
1495
|
+
export type PostNewUserUserNewRequestUserRole =
|
|
1496
|
+
| "proxy_admin"
|
|
1497
|
+
| "proxy_admin_viewer"
|
|
1498
|
+
| "internal_user"
|
|
1499
|
+
| "internal_user_viewer";
|
|
1500
|
+
export const PostNewUserUserNewRequestUserRole = S.String;
|
|
1501
|
+
|
|
1502
|
+
export interface PostNewUserUserNewRequest {
|
|
1503
|
+
agent_id?: string | null;
|
|
1504
|
+
aliases?: PostNewUserUserNewRequestAliasesMap | null;
|
|
1505
|
+
allowed_cache_controls?: PostNewUserUserNewRequestAllowedCacheControlsList | null;
|
|
1506
|
+
auto_create_key?: boolean;
|
|
1507
|
+
blocked?: boolean | null;
|
|
1508
|
+
budget_duration?: string | null;
|
|
1509
|
+
budget_fallbacks?: PostNewUserUserNewRequestBudgetFallbacksMap | null;
|
|
1510
|
+
budget_limits?: PostNewUserUserNewRequestBudgetLimitsList | null;
|
|
1511
|
+
config?: PostNewUserUserNewRequestConfigMap | null;
|
|
1512
|
+
duration?: string | null;
|
|
1513
|
+
guardrails?: PostNewUserUserNewRequestGuardrailsList | null;
|
|
1514
|
+
key_alias?: string | null;
|
|
1515
|
+
max_budget?: number | null;
|
|
1516
|
+
max_parallel_requests?: number | null;
|
|
1517
|
+
mcp_rpm_limit?: PostNewUserUserNewRequestMcpRpmLimitMap | null;
|
|
1518
|
+
metadata?: PostNewUserUserNewRequestMetadataMap | null;
|
|
1519
|
+
model_max_budget?: PostNewUserUserNewRequestModelMaxBudgetMap | null;
|
|
1520
|
+
model_rpm_limit?: PostNewUserUserNewRequestModelRpmLimitMap | null;
|
|
1521
|
+
model_tpm_limit?: PostNewUserUserNewRequestModelTpmLimitMap | null;
|
|
1522
|
+
models?: PostNewUserUserNewRequestModelsList | null;
|
|
1523
|
+
object_permission?: LiteLLMObjectPermissionBase | null;
|
|
1524
|
+
organizations?: PostNewUserUserNewRequestOrganizationsList | null;
|
|
1525
|
+
permissions?: PostNewUserUserNewRequestPermissionsMap | null;
|
|
1526
|
+
policies?: PostNewUserUserNewRequestPoliciesList | null;
|
|
1527
|
+
prompts?: PostNewUserUserNewRequestPromptsList | null;
|
|
1528
|
+
rpm_limit?: number | null;
|
|
1529
|
+
send_invite_email?: boolean | null;
|
|
1530
|
+
spend?: number | null;
|
|
1531
|
+
sso_user_id?: string | null;
|
|
1532
|
+
tag_rpm_limit?: PostNewUserUserNewRequestTagRpmLimitMap | null;
|
|
1533
|
+
team_id?: string | null;
|
|
1534
|
+
teams?: PostNewUserUserNewRequestTeams | null;
|
|
1535
|
+
tpm_limit?: number | null;
|
|
1536
|
+
user_alias?: string | null;
|
|
1537
|
+
user_email?: string | null;
|
|
1538
|
+
user_id?: string | null;
|
|
1539
|
+
user_role?: PostNewUserUserNewRequestUserRole | (string & {}) | null;
|
|
1540
|
+
}
|
|
1541
|
+
export const PostNewUserUserNewRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1542
|
+
S.Struct({
|
|
1543
|
+
agent_id: S.optional(S.NullOr(S.String)),
|
|
1544
|
+
aliases: S.optional(S.NullOr(PostNewUserUserNewRequestAliasesMap)),
|
|
1545
|
+
allowed_cache_controls: S.optional(
|
|
1546
|
+
S.NullOr(PostNewUserUserNewRequestAllowedCacheControlsList),
|
|
1547
|
+
),
|
|
1548
|
+
auto_create_key: S.optional(S.Boolean),
|
|
1549
|
+
blocked: S.optional(S.NullOr(S.Boolean)),
|
|
1550
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
1551
|
+
budget_fallbacks: S.optional(
|
|
1552
|
+
S.NullOr(PostNewUserUserNewRequestBudgetFallbacksMap),
|
|
1553
|
+
),
|
|
1554
|
+
budget_limits: S.optional(
|
|
1555
|
+
S.NullOr(PostNewUserUserNewRequestBudgetLimitsList),
|
|
1556
|
+
),
|
|
1557
|
+
config: S.optional(S.NullOr(PostNewUserUserNewRequestConfigMap)),
|
|
1558
|
+
duration: S.optional(S.NullOr(S.String)),
|
|
1559
|
+
guardrails: S.optional(S.NullOr(PostNewUserUserNewRequestGuardrailsList)),
|
|
1560
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
1561
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
1562
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
1563
|
+
mcp_rpm_limit: S.optional(
|
|
1564
|
+
S.NullOr(PostNewUserUserNewRequestMcpRpmLimitMap),
|
|
1565
|
+
),
|
|
1566
|
+
metadata: S.optional(S.NullOr(PostNewUserUserNewRequestMetadataMap)),
|
|
1567
|
+
model_max_budget: S.optional(
|
|
1568
|
+
S.NullOr(PostNewUserUserNewRequestModelMaxBudgetMap),
|
|
1569
|
+
),
|
|
1570
|
+
model_rpm_limit: S.optional(
|
|
1571
|
+
S.NullOr(PostNewUserUserNewRequestModelRpmLimitMap),
|
|
1572
|
+
),
|
|
1573
|
+
model_tpm_limit: S.optional(
|
|
1574
|
+
S.NullOr(PostNewUserUserNewRequestModelTpmLimitMap),
|
|
1575
|
+
),
|
|
1576
|
+
models: S.optional(S.NullOr(PostNewUserUserNewRequestModelsList)),
|
|
1577
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
|
|
1578
|
+
organizations: S.optional(
|
|
1579
|
+
S.NullOr(PostNewUserUserNewRequestOrganizationsList),
|
|
1580
|
+
),
|
|
1581
|
+
permissions: S.optional(S.NullOr(PostNewUserUserNewRequestPermissionsMap)),
|
|
1582
|
+
policies: S.optional(S.NullOr(PostNewUserUserNewRequestPoliciesList)),
|
|
1583
|
+
prompts: S.optional(S.NullOr(PostNewUserUserNewRequestPromptsList)),
|
|
1584
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
1585
|
+
send_invite_email: S.optional(S.NullOr(S.Boolean)),
|
|
1586
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
1587
|
+
sso_user_id: S.optional(S.NullOr(S.String)),
|
|
1588
|
+
tag_rpm_limit: S.optional(
|
|
1589
|
+
S.NullOr(PostNewUserUserNewRequestTagRpmLimitMap),
|
|
1590
|
+
),
|
|
1591
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
1592
|
+
teams: S.optional(S.NullOr(PostNewUserUserNewRequestTeams)),
|
|
1593
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
1594
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
1595
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
1596
|
+
user_id: S.optional(S.NullOr(S.String)),
|
|
1597
|
+
user_role: S.optional(S.NullOr(PostNewUserUserNewRequestUserRole)),
|
|
1598
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/new", code: 200 })),
|
|
1599
|
+
).annotate({
|
|
1600
|
+
identifier: "PostNewUserUserNewRequest",
|
|
1601
|
+
}) as any as S.Schema<PostNewUserUserNewRequest>;
|
|
1602
|
+
|
|
1603
|
+
export type NewUserResponseAccessGroupIdsList = Array<string>;
|
|
1604
|
+
export const NewUserResponseAccessGroupIdsList = /*@__PURE__*/ S.Array(
|
|
1605
|
+
S.String,
|
|
1606
|
+
) as any as S.Schema<NewUserResponseAccessGroupIdsList>;
|
|
1607
|
+
|
|
1608
|
+
export type NewUserResponseAliasesMap = { [key: string]: unknown | undefined };
|
|
1609
|
+
export const NewUserResponseAliasesMap = /*@__PURE__*/ S.Record(
|
|
1610
|
+
S.String,
|
|
1611
|
+
S.Unknown,
|
|
1612
|
+
) as any as S.Schema<NewUserResponseAliasesMap>;
|
|
1613
|
+
|
|
1614
|
+
export type NewUserResponseAllowedCacheControlsList = Array<unknown>;
|
|
1615
|
+
export const NewUserResponseAllowedCacheControlsList = /*@__PURE__*/ S.Array(
|
|
1616
|
+
S.Unknown,
|
|
1617
|
+
) as any as S.Schema<NewUserResponseAllowedCacheControlsList>;
|
|
1618
|
+
|
|
1619
|
+
export type NewUserResponseAllowedPassthroughRoutesList = Array<unknown>;
|
|
1620
|
+
export const NewUserResponseAllowedPassthroughRoutesList =
|
|
1621
|
+
/*@__PURE__*/ S.Array(
|
|
1622
|
+
S.Unknown,
|
|
1623
|
+
) as any as S.Schema<NewUserResponseAllowedPassthroughRoutesList>;
|
|
1624
|
+
|
|
1625
|
+
export type NewUserResponseAllowedRoutesList = Array<unknown>;
|
|
1626
|
+
export const NewUserResponseAllowedRoutesList = /*@__PURE__*/ S.Array(
|
|
1627
|
+
S.Unknown,
|
|
1628
|
+
) as any as S.Schema<NewUserResponseAllowedRoutesList>;
|
|
1629
|
+
|
|
1630
|
+
export type AllowedVectorStoreIndexItemIndexPermissionsItem = "read" | "write";
|
|
1631
|
+
export const AllowedVectorStoreIndexItemIndexPermissionsItem = S.String;
|
|
1632
|
+
|
|
1633
|
+
export type AllowedVectorStoreIndexItemIndexPermissionsList =
|
|
1634
|
+
Array<AllowedVectorStoreIndexItemIndexPermissionsItem>;
|
|
1635
|
+
export const AllowedVectorStoreIndexItemIndexPermissionsList =
|
|
1636
|
+
/*@__PURE__*/ S.Array(
|
|
1637
|
+
AllowedVectorStoreIndexItemIndexPermissionsItem,
|
|
1638
|
+
) as any as S.Schema<AllowedVectorStoreIndexItemIndexPermissionsList>;
|
|
1639
|
+
|
|
1640
|
+
export interface AllowedVectorStoreIndexItem {
|
|
1641
|
+
index_name: string;
|
|
1642
|
+
index_permissions: AllowedVectorStoreIndexItemIndexPermissionsList;
|
|
1643
|
+
}
|
|
1644
|
+
export const AllowedVectorStoreIndexItem = /*@__PURE__*/ S.suspend(() =>
|
|
1645
|
+
S.Struct({
|
|
1646
|
+
index_name: S.String,
|
|
1647
|
+
index_permissions: AllowedVectorStoreIndexItemIndexPermissionsList,
|
|
1648
|
+
}),
|
|
1649
|
+
).annotate({
|
|
1650
|
+
identifier: "AllowedVectorStoreIndexItem",
|
|
1651
|
+
}) as any as S.Schema<AllowedVectorStoreIndexItem>;
|
|
1652
|
+
|
|
1653
|
+
export type NewUserResponseAllowedVectorStoreIndexesList =
|
|
1654
|
+
Array<AllowedVectorStoreIndexItem>;
|
|
1655
|
+
export const NewUserResponseAllowedVectorStoreIndexesList =
|
|
1656
|
+
/*@__PURE__*/ S.Array(
|
|
1657
|
+
AllowedVectorStoreIndexItem,
|
|
1658
|
+
) as any as S.Schema<NewUserResponseAllowedVectorStoreIndexesList>;
|
|
1659
|
+
|
|
1660
|
+
export type NewUserResponseBudgetFallbacksValueList = Array<string>;
|
|
1661
|
+
export const NewUserResponseBudgetFallbacksValueList = /*@__PURE__*/ S.Array(
|
|
1662
|
+
S.String,
|
|
1663
|
+
) as any as S.Schema<NewUserResponseBudgetFallbacksValueList>;
|
|
1664
|
+
|
|
1665
|
+
export type NewUserResponseBudgetFallbacksMap = {
|
|
1666
|
+
[key: string]: NewUserResponseBudgetFallbacksValueList | undefined;
|
|
1667
|
+
};
|
|
1668
|
+
export const NewUserResponseBudgetFallbacksMap = /*@__PURE__*/ S.Record(
|
|
1669
|
+
S.String,
|
|
1670
|
+
NewUserResponseBudgetFallbacksValueList,
|
|
1671
|
+
) as any as S.Schema<NewUserResponseBudgetFallbacksMap>;
|
|
1672
|
+
|
|
1673
|
+
export type NewUserResponseBudgetLimitsList = Array<BudgetLimitEntry>;
|
|
1674
|
+
export const NewUserResponseBudgetLimitsList = /*@__PURE__*/ S.Array(
|
|
1675
|
+
BudgetLimitEntry,
|
|
1676
|
+
) as any as S.Schema<NewUserResponseBudgetLimitsList>;
|
|
1677
|
+
|
|
1678
|
+
export type NewUserResponseConfigMap = { [key: string]: unknown | undefined };
|
|
1679
|
+
export const NewUserResponseConfigMap = /*@__PURE__*/ S.Record(
|
|
1680
|
+
S.String,
|
|
1681
|
+
S.Unknown,
|
|
1682
|
+
) as any as S.Schema<NewUserResponseConfigMap>;
|
|
1683
|
+
|
|
1684
|
+
export type NewUserResponseDefaultEstimatedOutputTokensPerModelMap = {
|
|
1685
|
+
[key: string]: number | undefined;
|
|
1686
|
+
};
|
|
1687
|
+
export const NewUserResponseDefaultEstimatedOutputTokensPerModelMap =
|
|
1688
|
+
/*@__PURE__*/ S.Record(
|
|
1689
|
+
S.String,
|
|
1690
|
+
S.Number,
|
|
1691
|
+
) as any as S.Schema<NewUserResponseDefaultEstimatedOutputTokensPerModelMap>;
|
|
1692
|
+
|
|
1693
|
+
export type NewUserResponseEnforcedParamsList = Array<string>;
|
|
1694
|
+
export const NewUserResponseEnforcedParamsList = /*@__PURE__*/ S.Array(
|
|
1695
|
+
S.String,
|
|
1696
|
+
) as any as S.Schema<NewUserResponseEnforcedParamsList>;
|
|
1697
|
+
|
|
1698
|
+
export type NewUserResponseGuardrailsList = Array<string>;
|
|
1699
|
+
export const NewUserResponseGuardrailsList = /*@__PURE__*/ S.Array(
|
|
1700
|
+
S.String,
|
|
1701
|
+
) as any as S.Schema<NewUserResponseGuardrailsList>;
|
|
1702
|
+
|
|
1703
|
+
export type NewUserResponseMcpRpmLimitMap = {
|
|
1704
|
+
[key: string]: number | undefined;
|
|
1705
|
+
};
|
|
1706
|
+
export const NewUserResponseMcpRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1707
|
+
S.String,
|
|
1708
|
+
S.Number,
|
|
1709
|
+
) as any as S.Schema<NewUserResponseMcpRpmLimitMap>;
|
|
1710
|
+
|
|
1711
|
+
export type NewUserResponseMetadataMap = { [key: string]: unknown | undefined };
|
|
1712
|
+
export const NewUserResponseMetadataMap = /*@__PURE__*/ S.Record(
|
|
1713
|
+
S.String,
|
|
1714
|
+
S.Unknown,
|
|
1715
|
+
) as any as S.Schema<NewUserResponseMetadataMap>;
|
|
1716
|
+
|
|
1717
|
+
export type NewUserResponseModelMaxBudgetMap = {
|
|
1718
|
+
[key: string]: unknown | undefined;
|
|
1719
|
+
};
|
|
1720
|
+
export const NewUserResponseModelMaxBudgetMap = /*@__PURE__*/ S.Record(
|
|
1721
|
+
S.String,
|
|
1722
|
+
S.Unknown,
|
|
1723
|
+
) as any as S.Schema<NewUserResponseModelMaxBudgetMap>;
|
|
1724
|
+
|
|
1725
|
+
export type NewUserResponseModelRpmLimitMap = {
|
|
1726
|
+
[key: string]: unknown | undefined;
|
|
1727
|
+
};
|
|
1728
|
+
export const NewUserResponseModelRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1729
|
+
S.String,
|
|
1730
|
+
S.Unknown,
|
|
1731
|
+
) as any as S.Schema<NewUserResponseModelRpmLimitMap>;
|
|
1732
|
+
|
|
1733
|
+
export type NewUserResponseModelTpmLimitMap = {
|
|
1734
|
+
[key: string]: unknown | undefined;
|
|
1735
|
+
};
|
|
1736
|
+
export const NewUserResponseModelTpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1737
|
+
S.String,
|
|
1738
|
+
S.Unknown,
|
|
1739
|
+
) as any as S.Schema<NewUserResponseModelTpmLimitMap>;
|
|
1740
|
+
|
|
1741
|
+
export type NewUserResponseModelsList = Array<unknown>;
|
|
1742
|
+
export const NewUserResponseModelsList = /*@__PURE__*/ S.Array(
|
|
1743
|
+
S.Unknown,
|
|
1744
|
+
) as any as S.Schema<NewUserResponseModelsList>;
|
|
1745
|
+
|
|
1746
|
+
export type NewUserResponsePermissionsMap = {
|
|
1747
|
+
[key: string]: unknown | undefined;
|
|
1748
|
+
};
|
|
1749
|
+
export const NewUserResponsePermissionsMap = /*@__PURE__*/ S.Record(
|
|
1750
|
+
S.String,
|
|
1751
|
+
S.Unknown,
|
|
1752
|
+
) as any as S.Schema<NewUserResponsePermissionsMap>;
|
|
1753
|
+
|
|
1754
|
+
export type NewUserResponsePoliciesList = Array<string>;
|
|
1755
|
+
export const NewUserResponsePoliciesList = /*@__PURE__*/ S.Array(
|
|
1756
|
+
S.String,
|
|
1757
|
+
) as any as S.Schema<NewUserResponsePoliciesList>;
|
|
1758
|
+
|
|
1759
|
+
export type NewUserResponsePromptsList = Array<string>;
|
|
1760
|
+
export const NewUserResponsePromptsList = /*@__PURE__*/ S.Array(
|
|
1761
|
+
S.String,
|
|
1762
|
+
) as any as S.Schema<NewUserResponsePromptsList>;
|
|
1763
|
+
|
|
1764
|
+
export type UpdateRouterConfigContextWindowFallbacksItemMap = {
|
|
1765
|
+
[key: string]: unknown | undefined;
|
|
1766
|
+
};
|
|
1767
|
+
export const UpdateRouterConfigContextWindowFallbacksItemMap =
|
|
1768
|
+
/*@__PURE__*/ S.Record(
|
|
1769
|
+
S.String,
|
|
1770
|
+
S.Unknown,
|
|
1771
|
+
) as any as S.Schema<UpdateRouterConfigContextWindowFallbacksItemMap>;
|
|
1772
|
+
|
|
1773
|
+
export type UpdateRouterConfigContextWindowFallbacksList =
|
|
1774
|
+
Array<UpdateRouterConfigContextWindowFallbacksItemMap>;
|
|
1775
|
+
export const UpdateRouterConfigContextWindowFallbacksList =
|
|
1776
|
+
/*@__PURE__*/ S.Array(
|
|
1777
|
+
UpdateRouterConfigContextWindowFallbacksItemMap,
|
|
1778
|
+
) as any as S.Schema<UpdateRouterConfigContextWindowFallbacksList>;
|
|
1779
|
+
|
|
1780
|
+
export type UpdateRouterConfigFallbacksItemMap = {
|
|
1781
|
+
[key: string]: unknown | undefined;
|
|
1782
|
+
};
|
|
1783
|
+
export const UpdateRouterConfigFallbacksItemMap = /*@__PURE__*/ S.Record(
|
|
1784
|
+
S.String,
|
|
1785
|
+
S.Unknown,
|
|
1786
|
+
) as any as S.Schema<UpdateRouterConfigFallbacksItemMap>;
|
|
1787
|
+
|
|
1788
|
+
export type UpdateRouterConfigFallbacksList =
|
|
1789
|
+
Array<UpdateRouterConfigFallbacksItemMap>;
|
|
1790
|
+
export const UpdateRouterConfigFallbacksList = /*@__PURE__*/ S.Array(
|
|
1791
|
+
UpdateRouterConfigFallbacksItemMap,
|
|
1792
|
+
) as any as S.Schema<UpdateRouterConfigFallbacksList>;
|
|
1793
|
+
|
|
1794
|
+
export type UpdateRouterConfigModelGroupAffinityConfigValueList = Array<string>;
|
|
1795
|
+
export const UpdateRouterConfigModelGroupAffinityConfigValueList =
|
|
1796
|
+
/*@__PURE__*/ S.Array(
|
|
1797
|
+
S.String,
|
|
1798
|
+
) as any as S.Schema<UpdateRouterConfigModelGroupAffinityConfigValueList>;
|
|
1799
|
+
|
|
1800
|
+
export type UpdateRouterConfigModelGroupAffinityConfigMap = {
|
|
1801
|
+
[key: string]:
|
|
1802
|
+
| UpdateRouterConfigModelGroupAffinityConfigValueList
|
|
1803
|
+
| undefined;
|
|
1804
|
+
};
|
|
1805
|
+
export const UpdateRouterConfigModelGroupAffinityConfigMap =
|
|
1806
|
+
/*@__PURE__*/ S.Record(
|
|
1807
|
+
S.String,
|
|
1808
|
+
UpdateRouterConfigModelGroupAffinityConfigValueList,
|
|
1809
|
+
) as any as S.Schema<UpdateRouterConfigModelGroupAffinityConfigMap>;
|
|
1810
|
+
|
|
1811
|
+
export type UpdateRouterConfigModelGroupAliasValueCase1Map = {
|
|
1812
|
+
[key: string]: unknown | undefined;
|
|
1813
|
+
};
|
|
1814
|
+
export const UpdateRouterConfigModelGroupAliasValueCase1Map =
|
|
1815
|
+
/*@__PURE__*/ S.Record(
|
|
1816
|
+
S.String,
|
|
1817
|
+
S.Unknown,
|
|
1818
|
+
) as any as S.Schema<UpdateRouterConfigModelGroupAliasValueCase1Map>;
|
|
1819
|
+
|
|
1820
|
+
export type UpdateRouterConfigModelGroupAliasValue =
|
|
1821
|
+
| string
|
|
1822
|
+
| UpdateRouterConfigModelGroupAliasValueCase1Map;
|
|
1823
|
+
export const UpdateRouterConfigModelGroupAliasValue =
|
|
1824
|
+
S.Unknown as any as S.Schema<UpdateRouterConfigModelGroupAliasValue>;
|
|
1825
|
+
|
|
1826
|
+
export type UpdateRouterConfigModelGroupAliasMap = {
|
|
1827
|
+
[key: string]: UpdateRouterConfigModelGroupAliasValue | undefined;
|
|
1828
|
+
};
|
|
1829
|
+
export const UpdateRouterConfigModelGroupAliasMap = /*@__PURE__*/ S.Record(
|
|
1830
|
+
S.String,
|
|
1831
|
+
UpdateRouterConfigModelGroupAliasValue,
|
|
1832
|
+
) as any as S.Schema<UpdateRouterConfigModelGroupAliasMap>;
|
|
1833
|
+
|
|
1834
|
+
/** Use this to set a custom number of retries per exception type If RateLimitErrorRetries = 3, then 3 retries will be made for RateLimitError Mapping of Exception type to number of retries https://docs.litellm.ai/docs/exception_mapping */
|
|
1835
|
+
export interface RetryPolicy {
|
|
1836
|
+
AuthenticationErrorRetries?: number | null;
|
|
1837
|
+
BadRequestErrorRetries?: number | null;
|
|
1838
|
+
ContentPolicyViolationErrorRetries?: number | null;
|
|
1839
|
+
InternalServerErrorRetries?: number | null;
|
|
1840
|
+
RateLimitErrorRetries?: number | null;
|
|
1841
|
+
TimeoutErrorRetries?: number | null;
|
|
1842
|
+
}
|
|
1843
|
+
export const RetryPolicy = /*@__PURE__*/ S.suspend(() =>
|
|
1844
|
+
S.Struct({
|
|
1845
|
+
AuthenticationErrorRetries: S.optional(S.NullOr(S.Number)),
|
|
1846
|
+
BadRequestErrorRetries: S.optional(S.NullOr(S.Number)),
|
|
1847
|
+
ContentPolicyViolationErrorRetries: S.optional(S.NullOr(S.Number)),
|
|
1848
|
+
InternalServerErrorRetries: S.optional(S.NullOr(S.Number)),
|
|
1849
|
+
RateLimitErrorRetries: S.optional(S.NullOr(S.Number)),
|
|
1850
|
+
TimeoutErrorRetries: S.optional(S.NullOr(S.Number)),
|
|
1851
|
+
}),
|
|
1852
|
+
).annotate({ identifier: "RetryPolicy" }) as any as S.Schema<RetryPolicy>;
|
|
1853
|
+
|
|
1854
|
+
export type UpdateRouterConfigModelGroupRetryPolicyMap = {
|
|
1855
|
+
[key: string]: RetryPolicy | undefined;
|
|
1856
|
+
};
|
|
1857
|
+
export const UpdateRouterConfigModelGroupRetryPolicyMap =
|
|
1858
|
+
/*@__PURE__*/ S.Record(
|
|
1859
|
+
S.String,
|
|
1860
|
+
RetryPolicy,
|
|
1861
|
+
) as any as S.Schema<UpdateRouterConfigModelGroupRetryPolicyMap>;
|
|
1862
|
+
|
|
1863
|
+
export type RoutingGroupModelsList = Array<string>;
|
|
1864
|
+
export const RoutingGroupModelsList = /*@__PURE__*/ S.Array(
|
|
1865
|
+
S.String,
|
|
1866
|
+
) as any as S.Schema<RoutingGroupModelsList>;
|
|
1867
|
+
|
|
1868
|
+
export type RoutingGroupRoutingStrategyArgsMap = {
|
|
1869
|
+
[key: string]: unknown | undefined;
|
|
1870
|
+
};
|
|
1871
|
+
export const RoutingGroupRoutingStrategyArgsMap = /*@__PURE__*/ S.Record(
|
|
1872
|
+
S.String,
|
|
1873
|
+
S.Unknown,
|
|
1874
|
+
) as any as S.Schema<RoutingGroupRoutingStrategyArgsMap>;
|
|
1875
|
+
|
|
1876
|
+
/** A group of models that share a routing strategy. */
|
|
1877
|
+
export interface RoutingGroup {
|
|
1878
|
+
group_name: string;
|
|
1879
|
+
models: RoutingGroupModelsList;
|
|
1880
|
+
routing_strategy: string;
|
|
1881
|
+
routing_strategy_args?: RoutingGroupRoutingStrategyArgsMap | null;
|
|
1882
|
+
}
|
|
1883
|
+
export const RoutingGroup = /*@__PURE__*/ S.suspend(() =>
|
|
1884
|
+
S.Struct({
|
|
1885
|
+
group_name: S.String,
|
|
1886
|
+
models: RoutingGroupModelsList,
|
|
1887
|
+
routing_strategy: S.String,
|
|
1888
|
+
routing_strategy_args: S.optional(
|
|
1889
|
+
S.NullOr(RoutingGroupRoutingStrategyArgsMap),
|
|
1890
|
+
),
|
|
1891
|
+
}),
|
|
1892
|
+
).annotate({ identifier: "RoutingGroup" }) as any as S.Schema<RoutingGroup>;
|
|
1893
|
+
|
|
1894
|
+
export type UpdateRouterConfigRoutingGroupsList = Array<RoutingGroup>;
|
|
1895
|
+
export const UpdateRouterConfigRoutingGroupsList = /*@__PURE__*/ S.Array(
|
|
1896
|
+
RoutingGroup,
|
|
1897
|
+
) as any as S.Schema<UpdateRouterConfigRoutingGroupsList>;
|
|
1898
|
+
|
|
1899
|
+
export type UpdateRouterConfigRoutingStrategyArgsMap = {
|
|
1900
|
+
[key: string]: unknown | undefined;
|
|
1901
|
+
};
|
|
1902
|
+
export const UpdateRouterConfigRoutingStrategyArgsMap = /*@__PURE__*/ S.Record(
|
|
1903
|
+
S.String,
|
|
1904
|
+
S.Unknown,
|
|
1905
|
+
) as any as S.Schema<UpdateRouterConfigRoutingStrategyArgsMap>;
|
|
1906
|
+
|
|
1907
|
+
/** Set of params that you can modify via `router.update_settings()`. */
|
|
1908
|
+
export interface UpdateRouterConfig {
|
|
1909
|
+
allowed_fails?: number | null;
|
|
1910
|
+
context_window_fallbacks?: UpdateRouterConfigContextWindowFallbacksList | null;
|
|
1911
|
+
cooldown_time?: number | null;
|
|
1912
|
+
enable_tag_filtering?: boolean | null;
|
|
1913
|
+
fallbacks?: UpdateRouterConfigFallbacksList | null;
|
|
1914
|
+
max_retries?: number | null;
|
|
1915
|
+
model_group_affinity_config?: UpdateRouterConfigModelGroupAffinityConfigMap | null;
|
|
1916
|
+
model_group_alias?: UpdateRouterConfigModelGroupAliasMap | null;
|
|
1917
|
+
model_group_retry_policy?: UpdateRouterConfigModelGroupRetryPolicyMap | null;
|
|
1918
|
+
num_retries?: number | null;
|
|
1919
|
+
retry_after?: number | null;
|
|
1920
|
+
retry_policy?: RetryPolicy | null;
|
|
1921
|
+
routing_groups?: UpdateRouterConfigRoutingGroupsList | null;
|
|
1922
|
+
routing_strategy?: string | null;
|
|
1923
|
+
routing_strategy_args?: UpdateRouterConfigRoutingStrategyArgsMap | null;
|
|
1924
|
+
tag_routing_prefix?: string | null;
|
|
1925
|
+
timeout?: number | null;
|
|
1926
|
+
}
|
|
1927
|
+
export const UpdateRouterConfig = /*@__PURE__*/ S.suspend(() =>
|
|
1928
|
+
S.Struct({
|
|
1929
|
+
allowed_fails: S.optional(S.NullOr(S.Number)),
|
|
1930
|
+
context_window_fallbacks: S.optional(
|
|
1931
|
+
S.NullOr(UpdateRouterConfigContextWindowFallbacksList),
|
|
1932
|
+
),
|
|
1933
|
+
cooldown_time: S.optional(S.NullOr(S.Number)),
|
|
1934
|
+
enable_tag_filtering: S.optional(S.NullOr(S.Boolean)),
|
|
1935
|
+
fallbacks: S.optional(S.NullOr(UpdateRouterConfigFallbacksList)),
|
|
1936
|
+
max_retries: S.optional(S.NullOr(S.Number)),
|
|
1937
|
+
model_group_affinity_config: S.optional(
|
|
1938
|
+
S.NullOr(UpdateRouterConfigModelGroupAffinityConfigMap),
|
|
1939
|
+
),
|
|
1940
|
+
model_group_alias: S.optional(
|
|
1941
|
+
S.NullOr(UpdateRouterConfigModelGroupAliasMap),
|
|
1942
|
+
),
|
|
1943
|
+
model_group_retry_policy: S.optional(
|
|
1944
|
+
S.NullOr(UpdateRouterConfigModelGroupRetryPolicyMap),
|
|
1945
|
+
),
|
|
1946
|
+
num_retries: S.optional(S.NullOr(S.Number)),
|
|
1947
|
+
retry_after: S.optional(S.NullOr(S.Number)),
|
|
1948
|
+
retry_policy: S.optional(S.NullOr(RetryPolicy)),
|
|
1949
|
+
routing_groups: S.optional(S.NullOr(UpdateRouterConfigRoutingGroupsList)),
|
|
1950
|
+
routing_strategy: S.optional(S.NullOr(S.String)),
|
|
1951
|
+
routing_strategy_args: S.optional(
|
|
1952
|
+
S.NullOr(UpdateRouterConfigRoutingStrategyArgsMap),
|
|
1953
|
+
),
|
|
1954
|
+
tag_routing_prefix: S.optional(S.NullOr(S.String)),
|
|
1955
|
+
timeout: S.optional(S.NullOr(S.Number)),
|
|
1956
|
+
}),
|
|
1957
|
+
).annotate({
|
|
1958
|
+
identifier: "UpdateRouterConfig",
|
|
1959
|
+
}) as any as S.Schema<UpdateRouterConfig>;
|
|
1960
|
+
|
|
1961
|
+
export type NewUserResponseRpmLimitType =
|
|
1962
|
+
| "guaranteed_throughput"
|
|
1963
|
+
| "best_effort_throughput"
|
|
1964
|
+
| "dynamic";
|
|
1965
|
+
export const NewUserResponseRpmLimitType = S.String;
|
|
1966
|
+
|
|
1967
|
+
export type NewUserResponseTagRpmLimitMap = {
|
|
1968
|
+
[key: string]: number | undefined;
|
|
1969
|
+
};
|
|
1970
|
+
export const NewUserResponseTagRpmLimitMap = /*@__PURE__*/ S.Record(
|
|
1971
|
+
S.String,
|
|
1972
|
+
S.Number,
|
|
1973
|
+
) as any as S.Schema<NewUserResponseTagRpmLimitMap>;
|
|
1974
|
+
|
|
1975
|
+
export type NewUserResponseTagsList = Array<string>;
|
|
1976
|
+
export const NewUserResponseTagsList = /*@__PURE__*/ S.Array(
|
|
1977
|
+
S.String,
|
|
1978
|
+
) as any as S.Schema<NewUserResponseTagsList>;
|
|
1979
|
+
|
|
1980
|
+
export type NewUserResponseTeamsList = Array<unknown>;
|
|
1981
|
+
export const NewUserResponseTeamsList = /*@__PURE__*/ S.Array(
|
|
1982
|
+
S.Unknown,
|
|
1983
|
+
) as any as S.Schema<NewUserResponseTeamsList>;
|
|
1984
|
+
|
|
1985
|
+
export type NewUserResponseTpmLimitType =
|
|
1986
|
+
| "guaranteed_throughput"
|
|
1987
|
+
| "best_effort_throughput"
|
|
1988
|
+
| "dynamic";
|
|
1989
|
+
export const NewUserResponseTpmLimitType = S.String;
|
|
1990
|
+
|
|
1991
|
+
export type NewUserResponseUserRole =
|
|
1992
|
+
| "proxy_admin"
|
|
1993
|
+
| "proxy_admin_viewer"
|
|
1994
|
+
| "internal_user"
|
|
1995
|
+
| "internal_user_viewer";
|
|
1996
|
+
export const NewUserResponseUserRole = S.String;
|
|
1997
|
+
|
|
1998
|
+
export interface NewUserResponse {
|
|
1999
|
+
access_group_ids?: NewUserResponseAccessGroupIdsList | null;
|
|
2000
|
+
agent_id?: string | null;
|
|
2001
|
+
aliases?: NewUserResponseAliasesMap | null;
|
|
2002
|
+
allowed_cache_controls?: NewUserResponseAllowedCacheControlsList | null;
|
|
2003
|
+
allowed_passthrough_routes?: NewUserResponseAllowedPassthroughRoutesList | null;
|
|
2004
|
+
allowed_routes?: NewUserResponseAllowedRoutesList | null;
|
|
2005
|
+
allowed_vector_store_indexes?: NewUserResponseAllowedVectorStoreIndexesList | null;
|
|
2006
|
+
blocked?: boolean | null;
|
|
2007
|
+
budget_duration?: string | null;
|
|
2008
|
+
budget_fallbacks?: NewUserResponseBudgetFallbacksMap | null;
|
|
2009
|
+
budget_id?: string | null;
|
|
2010
|
+
budget_limits?: NewUserResponseBudgetLimitsList | null;
|
|
2011
|
+
config?: NewUserResponseConfigMap | null;
|
|
2012
|
+
created_at?: string | null;
|
|
2013
|
+
created_by?: string | null;
|
|
2014
|
+
default_estimated_output_tokens?: number | null;
|
|
2015
|
+
default_estimated_output_tokens_per_model?: NewUserResponseDefaultEstimatedOutputTokensPerModelMap | null;
|
|
2016
|
+
disable_global_guardrails?: boolean | null;
|
|
2017
|
+
duration?: string | null;
|
|
2018
|
+
enable_prompt_caching?: boolean | null;
|
|
2019
|
+
enforced_params?: NewUserResponseEnforcedParamsList | null;
|
|
2020
|
+
expires?: string | null;
|
|
2021
|
+
guardrails?: NewUserResponseGuardrailsList | null;
|
|
2022
|
+
key: string | Redacted.Redacted<string>;
|
|
2023
|
+
key_alias?: string | null;
|
|
2024
|
+
key_name?: string | null;
|
|
2025
|
+
key_type?: string | null;
|
|
2026
|
+
litellm_budget_table?: unknown | null;
|
|
2027
|
+
max_budget?: number | null;
|
|
2028
|
+
max_parallel_requests?: number | null;
|
|
2029
|
+
mcp_rpm_limit?: NewUserResponseMcpRpmLimitMap | null;
|
|
2030
|
+
metadata?: NewUserResponseMetadataMap | null;
|
|
2031
|
+
model_max_budget?: NewUserResponseModelMaxBudgetMap | null;
|
|
2032
|
+
model_rpm_limit?: NewUserResponseModelRpmLimitMap | null;
|
|
2033
|
+
model_tpm_limit?: NewUserResponseModelTpmLimitMap | null;
|
|
2034
|
+
models?: NewUserResponseModelsList | null;
|
|
2035
|
+
object_permission?: LiteLLMObjectPermissionBase | null;
|
|
2036
|
+
organization_id?: string | null;
|
|
2037
|
+
permissions?: NewUserResponsePermissionsMap | null;
|
|
2038
|
+
policies?: NewUserResponsePoliciesList | null;
|
|
2039
|
+
project_id?: string | null;
|
|
2040
|
+
prompts?: NewUserResponsePromptsList | null;
|
|
2041
|
+
router_settings?: UpdateRouterConfig | null;
|
|
2042
|
+
rpm_limit?: number | null;
|
|
2043
|
+
rpm_limit_type?: NewUserResponseRpmLimitType | null;
|
|
2044
|
+
spend?: number | null;
|
|
2045
|
+
tag_rpm_limit?: NewUserResponseTagRpmLimitMap | null;
|
|
2046
|
+
tags?: NewUserResponseTagsList | null;
|
|
2047
|
+
team_id?: string | null;
|
|
2048
|
+
teams?: NewUserResponseTeamsList | null;
|
|
2049
|
+
throttle_on_budget_exceeded?: boolean | null;
|
|
2050
|
+
token?: string | null;
|
|
2051
|
+
token_id?: string | null;
|
|
2052
|
+
tpm_limit?: number | null;
|
|
2053
|
+
tpm_limit_type?: NewUserResponseTpmLimitType | null;
|
|
2054
|
+
updated_at?: string | null;
|
|
2055
|
+
updated_by?: string | null;
|
|
2056
|
+
user_alias?: string | null;
|
|
2057
|
+
user_email?: string | null;
|
|
2058
|
+
user_id?: string | null;
|
|
2059
|
+
user_role?: NewUserResponseUserRole | null;
|
|
2060
|
+
}
|
|
2061
|
+
export const NewUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2062
|
+
S.Struct({
|
|
2063
|
+
access_group_ids: S.optional(S.NullOr(NewUserResponseAccessGroupIdsList)),
|
|
2064
|
+
agent_id: S.optional(S.NullOr(S.String)),
|
|
2065
|
+
aliases: S.optional(S.NullOr(NewUserResponseAliasesMap)),
|
|
2066
|
+
allowed_cache_controls: S.optional(
|
|
2067
|
+
S.NullOr(NewUserResponseAllowedCacheControlsList),
|
|
2068
|
+
),
|
|
2069
|
+
allowed_passthrough_routes: S.optional(
|
|
2070
|
+
S.NullOr(NewUserResponseAllowedPassthroughRoutesList),
|
|
2071
|
+
),
|
|
2072
|
+
allowed_routes: S.optional(S.NullOr(NewUserResponseAllowedRoutesList)),
|
|
2073
|
+
allowed_vector_store_indexes: S.optional(
|
|
2074
|
+
S.NullOr(NewUserResponseAllowedVectorStoreIndexesList),
|
|
2075
|
+
),
|
|
2076
|
+
blocked: S.optional(S.NullOr(S.Boolean)),
|
|
2077
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
2078
|
+
budget_fallbacks: S.optional(S.NullOr(NewUserResponseBudgetFallbacksMap)),
|
|
2079
|
+
budget_id: S.optional(S.NullOr(S.String)),
|
|
2080
|
+
budget_limits: S.optional(S.NullOr(NewUserResponseBudgetLimitsList)),
|
|
2081
|
+
config: S.optional(S.NullOr(NewUserResponseConfigMap)),
|
|
2082
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
2083
|
+
created_by: S.optional(S.NullOr(S.String)),
|
|
2084
|
+
default_estimated_output_tokens: S.optional(S.NullOr(S.Number)),
|
|
2085
|
+
default_estimated_output_tokens_per_model: S.optional(
|
|
2086
|
+
S.NullOr(NewUserResponseDefaultEstimatedOutputTokensPerModelMap),
|
|
2087
|
+
),
|
|
2088
|
+
disable_global_guardrails: S.optional(S.NullOr(S.Boolean)),
|
|
2089
|
+
duration: S.optional(S.NullOr(S.String)),
|
|
2090
|
+
enable_prompt_caching: S.optional(S.NullOr(S.Boolean)),
|
|
2091
|
+
enforced_params: S.optional(S.NullOr(NewUserResponseEnforcedParamsList)),
|
|
2092
|
+
expires: S.optional(S.NullOr(S.String)),
|
|
2093
|
+
guardrails: S.optional(S.NullOr(NewUserResponseGuardrailsList)),
|
|
2094
|
+
key: S.String.pipe(T.SensitiveValue({})),
|
|
2095
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
2096
|
+
key_name: S.optional(S.NullOr(S.String)),
|
|
2097
|
+
key_type: S.optional(S.NullOr(S.String)),
|
|
2098
|
+
litellm_budget_table: S.optional(S.NullOr(S.Unknown)),
|
|
2099
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
2100
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
2101
|
+
mcp_rpm_limit: S.optional(S.NullOr(NewUserResponseMcpRpmLimitMap)),
|
|
2102
|
+
metadata: S.optional(S.NullOr(NewUserResponseMetadataMap)),
|
|
2103
|
+
model_max_budget: S.optional(S.NullOr(NewUserResponseModelMaxBudgetMap)),
|
|
2104
|
+
model_rpm_limit: S.optional(S.NullOr(NewUserResponseModelRpmLimitMap)),
|
|
2105
|
+
model_tpm_limit: S.optional(S.NullOr(NewUserResponseModelTpmLimitMap)),
|
|
2106
|
+
models: S.optional(S.NullOr(NewUserResponseModelsList)),
|
|
2107
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
|
|
2108
|
+
organization_id: S.optional(S.NullOr(S.String)),
|
|
2109
|
+
permissions: S.optional(S.NullOr(NewUserResponsePermissionsMap)),
|
|
2110
|
+
policies: S.optional(S.NullOr(NewUserResponsePoliciesList)),
|
|
2111
|
+
project_id: S.optional(S.NullOr(S.String)),
|
|
2112
|
+
prompts: S.optional(S.NullOr(NewUserResponsePromptsList)),
|
|
2113
|
+
router_settings: S.optional(S.NullOr(UpdateRouterConfig)),
|
|
2114
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
2115
|
+
rpm_limit_type: S.optional(S.NullOr(NewUserResponseRpmLimitType)),
|
|
2116
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
2117
|
+
tag_rpm_limit: S.optional(S.NullOr(NewUserResponseTagRpmLimitMap)),
|
|
2118
|
+
tags: S.optional(S.NullOr(NewUserResponseTagsList)),
|
|
2119
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
2120
|
+
teams: S.optional(S.NullOr(NewUserResponseTeamsList)),
|
|
2121
|
+
throttle_on_budget_exceeded: S.optional(S.NullOr(S.Boolean)),
|
|
2122
|
+
token: S.optional(S.NullOr(S.String)),
|
|
2123
|
+
token_id: S.optional(S.NullOr(S.String)),
|
|
2124
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
2125
|
+
tpm_limit_type: S.optional(S.NullOr(NewUserResponseTpmLimitType)),
|
|
2126
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
2127
|
+
updated_by: S.optional(S.NullOr(S.String)),
|
|
2128
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
2129
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
2130
|
+
user_id: S.optional(S.NullOr(S.String)),
|
|
2131
|
+
user_role: S.optional(S.NullOr(NewUserResponseUserRole)),
|
|
2132
|
+
}),
|
|
2133
|
+
).annotate({
|
|
2134
|
+
identifier: "NewUserResponse",
|
|
2135
|
+
}) as any as S.Schema<NewUserResponse>;
|
|
2136
|
+
|
|
2137
|
+
export interface UiGetAvailableRoleUserAvailableRolesGetRequest {}
|
|
2138
|
+
export const UiGetAvailableRoleUserAvailableRolesGetRequest =
|
|
2139
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2140
|
+
S.Struct({}).pipe(
|
|
2141
|
+
T.Http({ method: "GET", uri: "/user/available_roles", code: 200 }),
|
|
2142
|
+
),
|
|
2143
|
+
).annotate({
|
|
2144
|
+
identifier: "UiGetAvailableRoleUserAvailableRolesGetRequest",
|
|
2145
|
+
}) as any as S.Schema<UiGetAvailableRoleUserAvailableRolesGetRequest>;
|
|
2146
|
+
|
|
2147
|
+
export interface UiGetAvailableRoleUserAvailableRolesGetResponse {
|
|
2148
|
+
body: unknown;
|
|
2149
|
+
}
|
|
2150
|
+
export const UiGetAvailableRoleUserAvailableRolesGetResponse =
|
|
2151
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2152
|
+
S.Struct({
|
|
2153
|
+
body: S.Unknown,
|
|
2154
|
+
}),
|
|
2155
|
+
).annotate({
|
|
2156
|
+
identifier: "UiGetAvailableRoleUserAvailableRolesGetResponse",
|
|
2157
|
+
}) as any as S.Schema<UiGetAvailableRoleUserAvailableRolesGetResponse>;
|
|
2158
|
+
|
|
2159
|
+
export type UserUpdateUserUpdatePostRequestAliasesMap = {
|
|
2160
|
+
[key: string]: unknown | undefined;
|
|
2161
|
+
};
|
|
2162
|
+
export const UserUpdateUserUpdatePostRequestAliasesMap = /*@__PURE__*/ S.Record(
|
|
2163
|
+
S.String,
|
|
2164
|
+
S.Unknown,
|
|
2165
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestAliasesMap>;
|
|
2166
|
+
|
|
2167
|
+
export type UserUpdateUserUpdatePostRequestAllowedCacheControlsList =
|
|
2168
|
+
Array<unknown>;
|
|
2169
|
+
export const UserUpdateUserUpdatePostRequestAllowedCacheControlsList =
|
|
2170
|
+
/*@__PURE__*/ S.Array(
|
|
2171
|
+
S.Unknown,
|
|
2172
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestAllowedCacheControlsList>;
|
|
2173
|
+
|
|
2174
|
+
export type UserUpdateUserUpdatePostRequestBudgetFallbacksValueList =
|
|
2175
|
+
Array<string>;
|
|
2176
|
+
export const UserUpdateUserUpdatePostRequestBudgetFallbacksValueList =
|
|
2177
|
+
/*@__PURE__*/ S.Array(
|
|
2178
|
+
S.String,
|
|
2179
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestBudgetFallbacksValueList>;
|
|
2180
|
+
|
|
2181
|
+
export type UserUpdateUserUpdatePostRequestBudgetFallbacksMap = {
|
|
2182
|
+
[key: string]:
|
|
2183
|
+
| UserUpdateUserUpdatePostRequestBudgetFallbacksValueList
|
|
2184
|
+
| undefined;
|
|
2185
|
+
};
|
|
2186
|
+
export const UserUpdateUserUpdatePostRequestBudgetFallbacksMap =
|
|
2187
|
+
/*@__PURE__*/ S.Record(
|
|
2188
|
+
S.String,
|
|
2189
|
+
UserUpdateUserUpdatePostRequestBudgetFallbacksValueList,
|
|
2190
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestBudgetFallbacksMap>;
|
|
2191
|
+
|
|
2192
|
+
export type UserUpdateUserUpdatePostRequestBudgetLimitsList =
|
|
2193
|
+
Array<BudgetLimitEntry>;
|
|
2194
|
+
export const UserUpdateUserUpdatePostRequestBudgetLimitsList =
|
|
2195
|
+
/*@__PURE__*/ S.Array(
|
|
2196
|
+
BudgetLimitEntry,
|
|
2197
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestBudgetLimitsList>;
|
|
2198
|
+
|
|
2199
|
+
export type UserUpdateUserUpdatePostRequestConfigMap = {
|
|
2200
|
+
[key: string]: unknown | undefined;
|
|
2201
|
+
};
|
|
2202
|
+
export const UserUpdateUserUpdatePostRequestConfigMap = /*@__PURE__*/ S.Record(
|
|
2203
|
+
S.String,
|
|
2204
|
+
S.Unknown,
|
|
2205
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestConfigMap>;
|
|
2206
|
+
|
|
2207
|
+
export type UserUpdateUserUpdatePostRequestGuardrailsList = Array<string>;
|
|
2208
|
+
export const UserUpdateUserUpdatePostRequestGuardrailsList =
|
|
2209
|
+
/*@__PURE__*/ S.Array(
|
|
2210
|
+
S.String,
|
|
2211
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestGuardrailsList>;
|
|
2212
|
+
|
|
2213
|
+
export type UserUpdateUserUpdatePostRequestMcpRpmLimitMap = {
|
|
2214
|
+
[key: string]: number | undefined;
|
|
2215
|
+
};
|
|
2216
|
+
export const UserUpdateUserUpdatePostRequestMcpRpmLimitMap =
|
|
2217
|
+
/*@__PURE__*/ S.Record(
|
|
2218
|
+
S.String,
|
|
2219
|
+
S.Number,
|
|
2220
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestMcpRpmLimitMap>;
|
|
2221
|
+
|
|
2222
|
+
export type UserUpdateUserUpdatePostRequestMetadataMap = {
|
|
2223
|
+
[key: string]: unknown | undefined;
|
|
2224
|
+
};
|
|
2225
|
+
export const UserUpdateUserUpdatePostRequestMetadataMap =
|
|
2226
|
+
/*@__PURE__*/ S.Record(
|
|
2227
|
+
S.String,
|
|
2228
|
+
S.Unknown,
|
|
2229
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestMetadataMap>;
|
|
2230
|
+
|
|
2231
|
+
export type UserUpdateUserUpdatePostRequestModelMaxBudgetMap = {
|
|
2232
|
+
[key: string]: unknown | undefined;
|
|
2233
|
+
};
|
|
2234
|
+
export const UserUpdateUserUpdatePostRequestModelMaxBudgetMap =
|
|
2235
|
+
/*@__PURE__*/ S.Record(
|
|
2236
|
+
S.String,
|
|
2237
|
+
S.Unknown,
|
|
2238
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestModelMaxBudgetMap>;
|
|
2239
|
+
|
|
2240
|
+
export type UserUpdateUserUpdatePostRequestModelRpmLimitMap = {
|
|
2241
|
+
[key: string]: unknown | undefined;
|
|
2242
|
+
};
|
|
2243
|
+
export const UserUpdateUserUpdatePostRequestModelRpmLimitMap =
|
|
2244
|
+
/*@__PURE__*/ S.Record(
|
|
2245
|
+
S.String,
|
|
2246
|
+
S.Unknown,
|
|
2247
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestModelRpmLimitMap>;
|
|
2248
|
+
|
|
2249
|
+
export type UserUpdateUserUpdatePostRequestModelTpmLimitMap = {
|
|
2250
|
+
[key: string]: unknown | undefined;
|
|
2251
|
+
};
|
|
2252
|
+
export const UserUpdateUserUpdatePostRequestModelTpmLimitMap =
|
|
2253
|
+
/*@__PURE__*/ S.Record(
|
|
2254
|
+
S.String,
|
|
2255
|
+
S.Unknown,
|
|
2256
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestModelTpmLimitMap>;
|
|
2257
|
+
|
|
2258
|
+
export type UserUpdateUserUpdatePostRequestModelsList = Array<unknown>;
|
|
2259
|
+
export const UserUpdateUserUpdatePostRequestModelsList = /*@__PURE__*/ S.Array(
|
|
2260
|
+
S.Unknown,
|
|
2261
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestModelsList>;
|
|
2262
|
+
|
|
2263
|
+
export type UserUpdateUserUpdatePostRequestPermissionsMap = {
|
|
2264
|
+
[key: string]: unknown | undefined;
|
|
2265
|
+
};
|
|
2266
|
+
export const UserUpdateUserUpdatePostRequestPermissionsMap =
|
|
2267
|
+
/*@__PURE__*/ S.Record(
|
|
2268
|
+
S.String,
|
|
2269
|
+
S.Unknown,
|
|
2270
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestPermissionsMap>;
|
|
2271
|
+
|
|
2272
|
+
export type UserUpdateUserUpdatePostRequestPoliciesList = Array<string>;
|
|
2273
|
+
export const UserUpdateUserUpdatePostRequestPoliciesList =
|
|
2274
|
+
/*@__PURE__*/ S.Array(
|
|
2275
|
+
S.String,
|
|
2276
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestPoliciesList>;
|
|
2277
|
+
|
|
2278
|
+
export type UserUpdateUserUpdatePostRequestPromptsList = Array<string>;
|
|
2279
|
+
export const UserUpdateUserUpdatePostRequestPromptsList = /*@__PURE__*/ S.Array(
|
|
2280
|
+
S.String,
|
|
2281
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestPromptsList>;
|
|
2282
|
+
|
|
2283
|
+
export type UserUpdateUserUpdatePostRequestTagRpmLimitMap = {
|
|
2284
|
+
[key: string]: number | undefined;
|
|
2285
|
+
};
|
|
2286
|
+
export const UserUpdateUserUpdatePostRequestTagRpmLimitMap =
|
|
2287
|
+
/*@__PURE__*/ S.Record(
|
|
2288
|
+
S.String,
|
|
2289
|
+
S.Number,
|
|
2290
|
+
) as any as S.Schema<UserUpdateUserUpdatePostRequestTagRpmLimitMap>;
|
|
2291
|
+
|
|
2292
|
+
export type UserUpdateUserUpdatePostRequestUserRole =
|
|
2293
|
+
| "proxy_admin"
|
|
2294
|
+
| "proxy_admin_viewer"
|
|
2295
|
+
| "internal_user"
|
|
2296
|
+
| "internal_user_viewer";
|
|
2297
|
+
export const UserUpdateUserUpdatePostRequestUserRole = S.String;
|
|
2298
|
+
|
|
2299
|
+
export interface UserUpdateUserUpdatePostRequest {
|
|
2300
|
+
agent_id?: string | null;
|
|
2301
|
+
aliases?: UserUpdateUserUpdatePostRequestAliasesMap | null;
|
|
2302
|
+
allowed_cache_controls?: UserUpdateUserUpdatePostRequestAllowedCacheControlsList | null;
|
|
2303
|
+
blocked?: boolean | null;
|
|
2304
|
+
budget_duration?: string | null;
|
|
2305
|
+
budget_fallbacks?: UserUpdateUserUpdatePostRequestBudgetFallbacksMap | null;
|
|
2306
|
+
budget_limits?: UserUpdateUserUpdatePostRequestBudgetLimitsList | null;
|
|
2307
|
+
config?: UserUpdateUserUpdatePostRequestConfigMap | null;
|
|
2308
|
+
duration?: string | null;
|
|
2309
|
+
guardrails?: UserUpdateUserUpdatePostRequestGuardrailsList | null;
|
|
2310
|
+
key_alias?: string | null;
|
|
2311
|
+
max_budget?: number | null;
|
|
2312
|
+
max_parallel_requests?: number | null;
|
|
2313
|
+
mcp_rpm_limit?: UserUpdateUserUpdatePostRequestMcpRpmLimitMap | null;
|
|
2314
|
+
metadata?: UserUpdateUserUpdatePostRequestMetadataMap | null;
|
|
2315
|
+
model_max_budget?: UserUpdateUserUpdatePostRequestModelMaxBudgetMap | null;
|
|
2316
|
+
model_rpm_limit?: UserUpdateUserUpdatePostRequestModelRpmLimitMap | null;
|
|
2317
|
+
model_tpm_limit?: UserUpdateUserUpdatePostRequestModelTpmLimitMap | null;
|
|
2318
|
+
models?: UserUpdateUserUpdatePostRequestModelsList | null;
|
|
2319
|
+
object_permission?: LiteLLMObjectPermissionBase | null;
|
|
2320
|
+
password?: string | null;
|
|
2321
|
+
permissions?: UserUpdateUserUpdatePostRequestPermissionsMap | null;
|
|
2322
|
+
policies?: UserUpdateUserUpdatePostRequestPoliciesList | null;
|
|
2323
|
+
prompts?: UserUpdateUserUpdatePostRequestPromptsList | null;
|
|
2324
|
+
rpm_limit?: number | null;
|
|
2325
|
+
spend?: number | null;
|
|
2326
|
+
tag_rpm_limit?: UserUpdateUserUpdatePostRequestTagRpmLimitMap | null;
|
|
2327
|
+
team_id?: string | null;
|
|
2328
|
+
tpm_limit?: number | null;
|
|
2329
|
+
user_alias?: string | null;
|
|
2330
|
+
user_email?: string | null;
|
|
2331
|
+
user_id?: string | null;
|
|
2332
|
+
user_role?: UserUpdateUserUpdatePostRequestUserRole | (string & {}) | null;
|
|
2333
|
+
}
|
|
2334
|
+
export const UserUpdateUserUpdatePostRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2335
|
+
S.Struct({
|
|
2336
|
+
agent_id: S.optional(S.NullOr(S.String)),
|
|
2337
|
+
aliases: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestAliasesMap)),
|
|
2338
|
+
allowed_cache_controls: S.optional(
|
|
2339
|
+
S.NullOr(UserUpdateUserUpdatePostRequestAllowedCacheControlsList),
|
|
2340
|
+
),
|
|
2341
|
+
blocked: S.optional(S.NullOr(S.Boolean)),
|
|
2342
|
+
budget_duration: S.optional(S.NullOr(S.String)),
|
|
2343
|
+
budget_fallbacks: S.optional(
|
|
2344
|
+
S.NullOr(UserUpdateUserUpdatePostRequestBudgetFallbacksMap),
|
|
2345
|
+
),
|
|
2346
|
+
budget_limits: S.optional(
|
|
2347
|
+
S.NullOr(UserUpdateUserUpdatePostRequestBudgetLimitsList),
|
|
2348
|
+
),
|
|
2349
|
+
config: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestConfigMap)),
|
|
2350
|
+
duration: S.optional(S.NullOr(S.String)),
|
|
2351
|
+
guardrails: S.optional(
|
|
2352
|
+
S.NullOr(UserUpdateUserUpdatePostRequestGuardrailsList),
|
|
2353
|
+
),
|
|
2354
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
2355
|
+
max_budget: S.optional(S.NullOr(S.Number)),
|
|
2356
|
+
max_parallel_requests: S.optional(S.NullOr(S.Number)),
|
|
2357
|
+
mcp_rpm_limit: S.optional(
|
|
2358
|
+
S.NullOr(UserUpdateUserUpdatePostRequestMcpRpmLimitMap),
|
|
2359
|
+
),
|
|
2360
|
+
metadata: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestMetadataMap)),
|
|
2361
|
+
model_max_budget: S.optional(
|
|
2362
|
+
S.NullOr(UserUpdateUserUpdatePostRequestModelMaxBudgetMap),
|
|
2363
|
+
),
|
|
2364
|
+
model_rpm_limit: S.optional(
|
|
2365
|
+
S.NullOr(UserUpdateUserUpdatePostRequestModelRpmLimitMap),
|
|
2366
|
+
),
|
|
2367
|
+
model_tpm_limit: S.optional(
|
|
2368
|
+
S.NullOr(UserUpdateUserUpdatePostRequestModelTpmLimitMap),
|
|
2369
|
+
),
|
|
2370
|
+
models: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestModelsList)),
|
|
2371
|
+
object_permission: S.optional(S.NullOr(LiteLLMObjectPermissionBase)),
|
|
2372
|
+
password: S.optional(S.NullOr(S.String)),
|
|
2373
|
+
permissions: S.optional(
|
|
2374
|
+
S.NullOr(UserUpdateUserUpdatePostRequestPermissionsMap),
|
|
2375
|
+
),
|
|
2376
|
+
policies: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestPoliciesList)),
|
|
2377
|
+
prompts: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestPromptsList)),
|
|
2378
|
+
rpm_limit: S.optional(S.NullOr(S.Number)),
|
|
2379
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
2380
|
+
tag_rpm_limit: S.optional(
|
|
2381
|
+
S.NullOr(UserUpdateUserUpdatePostRequestTagRpmLimitMap),
|
|
2382
|
+
),
|
|
2383
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
2384
|
+
tpm_limit: S.optional(S.NullOr(S.Number)),
|
|
2385
|
+
user_alias: S.optional(S.NullOr(S.String)),
|
|
2386
|
+
user_email: S.optional(S.NullOr(S.String)),
|
|
2387
|
+
user_id: S.optional(S.NullOr(S.String)),
|
|
2388
|
+
user_role: S.optional(S.NullOr(UserUpdateUserUpdatePostRequestUserRole)),
|
|
2389
|
+
}).pipe(T.Http({ method: "POST", uri: "/user/update", code: 200 })),
|
|
2390
|
+
).annotate({
|
|
2391
|
+
identifier: "UserUpdateUserUpdatePostRequest",
|
|
2392
|
+
}) as any as S.Schema<UserUpdateUserUpdatePostRequest>;
|
|
2393
|
+
|
|
2394
|
+
export interface UserUpdateUserUpdatePostResponse {
|
|
2395
|
+
body: unknown;
|
|
2396
|
+
}
|
|
2397
|
+
export const UserUpdateUserUpdatePostResponse = /*@__PURE__*/ S.suspend(() =>
|
|
2398
|
+
S.Struct({
|
|
2399
|
+
body: S.Unknown,
|
|
2400
|
+
}),
|
|
2401
|
+
).annotate({
|
|
2402
|
+
identifier: "UserUpdateUserUpdatePostResponse",
|
|
2403
|
+
}) as any as S.Schema<UserUpdateUserUpdatePostResponse>;
|
|
2404
|
+
|
|
2405
|
+
export type BulkUserUpdateUserBulkUpdatePostError =
|
|
2406
|
+
| BadRequest
|
|
2407
|
+
| Forbidden
|
|
2408
|
+
| UnprocessableEntity
|
|
2409
|
+
| LitellmOpError;
|
|
2410
|
+
/** Bulk User Update Bulk update multiple users at once. This endpoint allows updating multiple users in a single request. Each user update is processed independently - if some updates fail, others will still succeed. Parameters: - users: Optional[List[UpdateUserRequest]] - List of specific user update requests - all_users: Optional[bool] - Set to true to update all users in the system - user_updates: Optional[UpdateUserRequest] - Updates to apply when all_users=True Returns: - results: List of individual update results - total_requested: Total number of users requested for update - successful_updates: Number of successful updates - failed_updates: Number of failed updates Example request for specific users: ```bash curl --location 'http://0.0.0.0:4000/user/bulk_update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "users": [ { "user_id": "user1", "user_role": "internal_user", "max_budget": 100.0 }, { "user_email": "user2@example.com", "user_role": "internal_user_viewer", "max_budget": 50.0 } ] }' ``` Example request for all users: ```bash curl --location 'http://0.0.0.0:4000/user/bulk_update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "all_users": true, "user_updates": { "user_role": "internal_user", "max_budget": 50.0 } }' ``` */
|
|
2411
|
+
export const bulkUserUpdateUserBulkUpdatePost: API.OperationMethod<
|
|
2412
|
+
BulkUserUpdateUserBulkUpdatePostRequest,
|
|
2413
|
+
BulkUpdateUserResponse,
|
|
2414
|
+
BulkUserUpdateUserBulkUpdatePostError,
|
|
2415
|
+
LitellmOpContext
|
|
2416
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2417
|
+
input: BulkUserUpdateUserBulkUpdatePostRequest,
|
|
2418
|
+
output: BulkUpdateUserResponse,
|
|
2419
|
+
errors: [BadRequest, Forbidden, UnprocessableEntity],
|
|
2420
|
+
protocol: LitellmProtocol,
|
|
2421
|
+
retry: Retry.Retry,
|
|
2422
|
+
}));
|
|
2423
|
+
|
|
2424
|
+
export type DeleteUserUserDeletePostError =
|
|
2425
|
+
| BadRequest
|
|
2426
|
+
| Forbidden
|
|
2427
|
+
| NotFound
|
|
2428
|
+
| UnprocessableEntity
|
|
2429
|
+
| LitellmOpError;
|
|
2430
|
+
/** Delete User delete user and associated user keys ``` curl --location 'http://0.0.0.0:4000/user/delete' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data-raw '{ "user_ids": ["45e3e396-ee08-4a61-a88e-16b3ce7e0849"] }' ``` Parameters: - user_ids: List[str] - The list of user id's to be deleted. */
|
|
2431
|
+
export const deleteUserUserDeletePost: API.OperationMethod<
|
|
2432
|
+
DeleteUserUserDeletePostRequest,
|
|
2433
|
+
DeleteUserUserDeletePostResponse,
|
|
2434
|
+
DeleteUserUserDeletePostError,
|
|
2435
|
+
LitellmOpContext
|
|
2436
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2437
|
+
input: DeleteUserUserDeletePostRequest,
|
|
2438
|
+
output: DeleteUserUserDeletePostResponse,
|
|
2439
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
2440
|
+
protocol: LitellmProtocol,
|
|
2441
|
+
retry: Retry.Retry,
|
|
2442
|
+
}));
|
|
2443
|
+
|
|
2444
|
+
export type GetAvailableEnterpriseUsersUserAvailableUserError = LitellmOpError;
|
|
2445
|
+
/** Available Enterprise Users For keys with `max_users` set, return the list of users that are allowed to use the key. */
|
|
2446
|
+
export const getAvailableEnterpriseUsersUserAvailableUser: API.OperationMethod<
|
|
2447
|
+
GetAvailableEnterpriseUsersUserAvailableUserRequest,
|
|
2448
|
+
GetAvailableEnterpriseUsersUserAvailableUserResponse,
|
|
2449
|
+
GetAvailableEnterpriseUsersUserAvailableUserError,
|
|
2450
|
+
LitellmOpContext
|
|
2451
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2452
|
+
input: GetAvailableEnterpriseUsersUserAvailableUserRequest,
|
|
2453
|
+
output: GetAvailableEnterpriseUsersUserAvailableUserResponse,
|
|
2454
|
+
errors: [],
|
|
2455
|
+
protocol: LitellmProtocol,
|
|
2456
|
+
retry: Retry.Retry,
|
|
2457
|
+
}));
|
|
2458
|
+
|
|
2459
|
+
export type GetUiViewUsersUserFilterUiError =
|
|
2460
|
+
| UnprocessableEntity
|
|
2461
|
+
| LitellmOpError;
|
|
2462
|
+
/** Ui View Users Filter users based on partial match of user_id or email with pagination. Behaviour depends on the ``scope_user_search_to_org`` UI-setting flag (stored in the ``litellm_uisettings`` table): * **Flag OFF (default):** any authenticated user can search all users. * **Flag ON:** - Proxy admins see all users. - Org admins see only users in their org(s). - Team admins for an org-bound team see users in that org. - Others receive a 403. */
|
|
2463
|
+
export const getUiViewUsersUserFilterUi: API.OperationMethod<
|
|
2464
|
+
GetUiViewUsersUserFilterUiRequest,
|
|
2465
|
+
GetUiViewUsersUserFilterUiResponse,
|
|
2466
|
+
GetUiViewUsersUserFilterUiError,
|
|
2467
|
+
LitellmOpContext
|
|
2468
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2469
|
+
input: GetUiViewUsersUserFilterUiRequest,
|
|
2470
|
+
output: GetUiViewUsersUserFilterUiResponse,
|
|
2471
|
+
errors: [UnprocessableEntity],
|
|
2472
|
+
protocol: LitellmProtocol,
|
|
2473
|
+
retry: Retry.Retry,
|
|
2474
|
+
}));
|
|
2475
|
+
|
|
2476
|
+
export type GetUserInfoUserInfoError = UnprocessableEntity | LitellmOpError;
|
|
2477
|
+
/** User Info [10/07/2024] Note: To get all users (+pagination), use `/user/list` endpoint. Use this to get user information. (user row + all user key info) Example request ``` curl -X GET 'http://localhost:4000/user/info?user_id=krrish7%40berri.ai' --header 'Authorization: Bearer sk-1234' ``` */
|
|
2478
|
+
export const getUserInfoUserInfo: API.OperationMethod<
|
|
2479
|
+
GetUserInfoUserInfoRequest,
|
|
2480
|
+
UserInfoResponse,
|
|
2481
|
+
GetUserInfoUserInfoError,
|
|
2482
|
+
LitellmOpContext
|
|
2483
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2484
|
+
input: GetUserInfoUserInfoRequest,
|
|
2485
|
+
output: UserInfoResponse,
|
|
2486
|
+
errors: [UnprocessableEntity],
|
|
2487
|
+
protocol: LitellmProtocol,
|
|
2488
|
+
retry: Retry.Retry,
|
|
2489
|
+
}));
|
|
2490
|
+
|
|
2491
|
+
export type GetUserInfoV2V2UserInfoError = UnprocessableEntity | LitellmOpError;
|
|
2492
|
+
/** User Info V2 Lightweight endpoint to get user info. Returns only the user object — no keys, no teams objects. This is the v2 replacement for /user/info, designed to avoid the "god endpoint" problem where the old endpoint loaded all keys and teams into memory. Access control: - Proxy admins can query any user - Team admins can query users within their teams - Internal users can only query themselves (omit user_id or pass own) - Returns 404 for non-existent users or unauthorized access Example request: ``` curl -X GET 'http://localhost:4000/v2/user/info?user_id=user123' \ --header 'Authorization: Bearer sk-1234' ``` */
|
|
2493
|
+
export const getUserInfoV2V2UserInfo: API.OperationMethod<
|
|
2494
|
+
GetUserInfoV2V2UserInfoRequest,
|
|
2495
|
+
UserInfoV2Response,
|
|
2496
|
+
GetUserInfoV2V2UserInfoError,
|
|
2497
|
+
LitellmOpContext
|
|
2498
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2499
|
+
input: GetUserInfoV2V2UserInfoRequest,
|
|
2500
|
+
output: UserInfoV2Response,
|
|
2501
|
+
errors: [UnprocessableEntity],
|
|
2502
|
+
protocol: LitellmProtocol,
|
|
2503
|
+
retry: Retry.Retry,
|
|
2504
|
+
}));
|
|
2505
|
+
|
|
2506
|
+
export type GetUsersUserListGetError = UnprocessableEntity | LitellmOpError;
|
|
2507
|
+
/** Get Users Get a paginated list of users with filtering and sorting options. Parameters: role: Optional[str] Filter users by role. Can be one of: - proxy_admin - proxy_admin_viewer - internal_user - internal_user_viewer user_ids: Optional[str] Get list of users by user_ids. Comma separated list of user_ids. sso_ids: Optional[str] Get list of users by sso_ids. Comma separated list of sso_ids. user_email: Optional[str] Filter users by partial email match team: Optional[str] Filter users by team id. Will match if user has this team in their teams array. page: int The page number to return page_size: int The number of items per page sort_by: Optional[str] Column to sort by (e.g. 'user_id', 'user_email', 'created_at', 'spend') sort_order: Optional[str] Sort order ('asc' or 'desc') */
|
|
2508
|
+
export const getUsersUserListGet: API.OperationMethod<
|
|
2509
|
+
GetUsersUserListGetRequest,
|
|
2510
|
+
UserListResponse,
|
|
2511
|
+
GetUsersUserListGetError,
|
|
2512
|
+
LitellmOpContext
|
|
2513
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2514
|
+
input: GetUsersUserListGetRequest,
|
|
2515
|
+
output: UserListResponse,
|
|
2516
|
+
errors: [UnprocessableEntity],
|
|
2517
|
+
protocol: LitellmProtocol,
|
|
2518
|
+
retry: Retry.Retry,
|
|
2519
|
+
}));
|
|
2520
|
+
|
|
2521
|
+
export type PostNewUserUserNewError =
|
|
2522
|
+
| BadRequest
|
|
2523
|
+
| Forbidden
|
|
2524
|
+
| Conflict
|
|
2525
|
+
| UnprocessableEntity
|
|
2526
|
+
| LitellmOpError;
|
|
2527
|
+
/** New User Use this to create a new INTERNAL user with a budget. Internal Users can access LiteLLM Admin UI to make keys, request access to models. This creates a new user and generates a new api key for the new user. The new api key is returned. Returns user id, budget + new key. Parameters: - user_id: Optional[str] - Specify a user id. If not set, a unique id will be generated. - user_alias: Optional[str] - A descriptive name for you to know who this user id refers to. - teams: Optional[list] - specify a list of team id's a user belongs to. - user_email: Optional[str] - Specify a user email. - send_invite_email: Optional[bool] - Specify if an invite email should be sent. - user_role: Optional[str] - Specify a user role - "proxy_admin", "proxy_admin_viewer", "internal_user", "internal_user_viewer", "team", "customer". Info about each role here: `https://github.com/BerriAI/litellm/litellm/proxy/_types.py#L20` - max_budget: Optional[float] - Specify max budget for a given user. - budget_duration: Optional[str] - Budget is reset at the end of specified duration. If not set, budget is never reset. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"), months ("1mo"). - models: Optional[list] - Model_name's a user is allowed to call. (if empty, key is allowed to call all models). Set to ['no-default-models'] to block all model access. Restricting user to only team-based model access. - tpm_limit: Optional[int] - Specify tpm limit for a given user (Tokens per minute) - rpm_limit: Optional[int] - Specify rpm limit for a given user (Requests per minute) - auto_create_key: bool - Default=True. Flag used for returning a key as part of the /user/new response - aliases: Optional[dict] - Model aliases for the user - [Docs](https://litellm.vercel.app/docs/proxy/virtual_keys#model-aliases) - config: Optional[dict] - [DEPRECATED PARAM] User-specific config. - allowed_cache_controls: Optional[list] - List of allowed cache control values. Example - ["no-cache", "no-store"]. See all values - https://docs.litellm.ai/docs/proxy/caching#turn-on--off-caching-per-request- - blocked: Optional[bool] - [Not Implemented Yet] Whether the user is blocked. - guardrails: Optional[List[str]] - [Not Implemented Yet] List of active guardrails for the user - policies: Optional[List[str]] - List of policy names to apply to the user. Policies define guardrails, conditions, and inheritance rules. - permissions: Optional[dict] - [Not Implemented Yet] User-specific permissions, eg. turning off pii masking. - metadata: Optional[dict] - Metadata for user, store information for user. Example metadata = {"team": "core-infra", "app": "app2", "email": "ishaan@berri.ai" } - max_parallel_requests: Optional[int] - Rate limit a user based on the number of parallel requests. Raises 429 error, if user's parallel requests > x. - soft_budget: Optional[float] - Get alerts when user crosses given budget, doesn't block requests. - model_max_budget: Optional[dict] - Model-specific max budget for user. [Docs](https://docs.litellm.ai/docs/proxy/users#add-model-specific-budgets-to-keys) - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - model_rpm_limit: Optional[float] - Model-specific rpm limit for user. [Docs](https://docs.litellm.ai/docs/proxy/users#add-model-specific-limits-to-keys) - mcp_rpm_limit: Optional[dict] - Per-MCP-server rpm limit, keyed by MCP server name {"github": 100, "slack": 200}. Enforced for keys and teams only; values set on a user are stored but not enforced per user. - tag_rpm_limit: Optional[dict] - Per-request-tag rpm limit, keyed by request tag {"cell-1": 1000, "cell-2": 500}. Enforced for keys only; values set on a user are stored but not enforced per user. - model_tpm_limit: Optional[float] - Model-specific tpm limit for user. [Docs](https://docs.litellm.ai/docs/proxy/users#add-model-specific-limits-to-keys) - spend: Optional[float] - Amount spent by user. Default is 0. Will be updated by proxy whenever user is used. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"), months ("1mo"). - agent_id: Optional[str] - The agent id associated with the user. - team_id: Optional[str] - [DEPRECATED PARAM] The team id of the user. Default is None. - duration: Optional[str] - Duration for the key auto-created on `/user/new`. Default is None. - key_alias: Optional[str] - Alias for the key auto-created on `/user/new`. Default is None. - sso_user_id: Optional[str] - The id of the user in the SSO provider. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - internal user-specific object permission. Example - {"vector_stores": ["vector_store_1"], "mcp_servers": ["github"], "mcp_tool_permissions": {"github": ["list_issues"]}}. The MCP grants act as a ceiling on every key this user holds. IF null or {} then no object permission. - prompts: Optional[List[str]] - List of allowed prompts for the user. If specified, the user will only be able to use these specific prompts. - organizations: List[str] - List of organization id's the user is a member of - budget_limits: Optional[list] - List of concurrent budget windows for the user. 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"}]. Returns: - key: (str) The generated api key for the user - expires: (datetime) Datetime object for when key expires. - user_id: (str) Unique user id - used for tracking spend across multiple keys for same user id. - max_budget: (float|None) Max budget for given user. Usage Example ```shell curl -X POST "http://localhost:4000/user/new" -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "username": "new_user", "email": "new_user@example.com" }' ``` */
|
|
2528
|
+
export const postNewUserUserNew: API.OperationMethod<
|
|
2529
|
+
PostNewUserUserNewRequest,
|
|
2530
|
+
NewUserResponse,
|
|
2531
|
+
PostNewUserUserNewError,
|
|
2532
|
+
LitellmOpContext
|
|
2533
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2534
|
+
input: PostNewUserUserNewRequest,
|
|
2535
|
+
output: NewUserResponse,
|
|
2536
|
+
errors: [BadRequest, Forbidden, Conflict, UnprocessableEntity],
|
|
2537
|
+
protocol: LitellmProtocol,
|
|
2538
|
+
retry: Retry.Retry,
|
|
2539
|
+
}));
|
|
2540
|
+
|
|
2541
|
+
export type UiGetAvailableRoleUserAvailableRolesGetError = LitellmOpError;
|
|
2542
|
+
/** Ui Get Available Role Endpoint used by Admin UI to show all available roles to assign a user return { "proxy_admin": { "description": "Proxy Admin role", "ui_label": "Admin" } } */
|
|
2543
|
+
export const uiGetAvailableRoleUserAvailableRolesGet: API.OperationMethod<
|
|
2544
|
+
UiGetAvailableRoleUserAvailableRolesGetRequest,
|
|
2545
|
+
UiGetAvailableRoleUserAvailableRolesGetResponse,
|
|
2546
|
+
UiGetAvailableRoleUserAvailableRolesGetError,
|
|
2547
|
+
LitellmOpContext
|
|
2548
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2549
|
+
input: UiGetAvailableRoleUserAvailableRolesGetRequest,
|
|
2550
|
+
output: UiGetAvailableRoleUserAvailableRolesGetResponse,
|
|
2551
|
+
errors: [],
|
|
2552
|
+
protocol: LitellmProtocol,
|
|
2553
|
+
retry: Retry.Retry,
|
|
2554
|
+
}));
|
|
2555
|
+
|
|
2556
|
+
export type UserUpdateUserUpdatePostError =
|
|
2557
|
+
| BadRequest
|
|
2558
|
+
| Forbidden
|
|
2559
|
+
| NotFound
|
|
2560
|
+
| UnprocessableEntity
|
|
2561
|
+
| LitellmOpError;
|
|
2562
|
+
/** User Update Example curl ``` curl --location 'http://0.0.0.0:4000/user/update' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "user_id": "test-litellm-user-4", "user_role": "proxy_admin_viewer" }' ``` Parameters: - user_id: Optional[str] - Specify a user id. If not set, a unique id will be generated. - user_email: Optional[str] - Specify a user email. - password: Optional[str] - Specify a user password. - user_alias: Optional[str] - A descriptive name for you to know who this user id refers to. - teams: Optional[list] - specify a list of team id's a user belongs to. - send_invite_email: Optional[bool] - Specify if an invite email should be sent. - user_role: Optional[str] - Specify a user role - "proxy_admin", "proxy_admin_viewer", "internal_user", "internal_user_viewer", "team", "customer". Info about each role here: `https://github.com/BerriAI/litellm/litellm/proxy/_types.py#L20` - max_budget: Optional[float] - Specify max budget for a given user. - budget_duration: Optional[str] - Budget is reset at the end of specified duration. If not set, budget is never reset. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"), months ("1mo"). - models: Optional[list] - Model_name's a user is allowed to call. (if empty, key is allowed to call all models) - tpm_limit: Optional[int] - Specify tpm limit for a given user (Tokens per minute) - rpm_limit: Optional[int] - Specify rpm limit for a given user (Requests per minute) - auto_create_key: bool - Default=True. Flag used for returning a key as part of the /user/new response - aliases: Optional[dict] - Model aliases for the user - [Docs](https://litellm.vercel.app/docs/proxy/virtual_keys#model-aliases) - config: Optional[dict] - [DEPRECATED PARAM] User-specific config. - allowed_cache_controls: Optional[list] - List of allowed cache control values. Example - ["no-cache", "no-store"]. See all values - https://docs.litellm.ai/docs/proxy/caching#turn-on--off-caching-per-request- - blocked: Optional[bool] - [Not Implemented Yet] Whether the user is blocked. - guardrails: Optional[List[str]] - [Not Implemented Yet] List of active guardrails for the user - policies: Optional[List[str]] - List of policy names to apply to the user. Policies define guardrails, conditions, and inheritance rules. - permissions: Optional[dict] - [Not Implemented Yet] User-specific permissions, eg. turning off pii masking. - metadata: Optional[dict] - Metadata for user, store information for user. Example metadata = {"team": "core-infra", "app": "app2", "email": "ishaan@berri.ai" } - max_parallel_requests: Optional[int] - Rate limit a user based on the number of parallel requests. Raises 429 error, if user's parallel requests > x. - soft_budget: Optional[float] - Get alerts when user crosses given budget, doesn't block requests. - model_max_budget: Optional[dict] - Model-specific max budget for user. [Docs](https://docs.litellm.ai/docs/proxy/users#add-model-specific-budgets-to-keys) - budget_fallbacks: Optional[Dict[str, List[str]]] - Per-model fallback chain tried in order when that model's own `model_max_budget` is exceeded, e.g. {"gpt-4o": ["gpt-4o-mini"]}. - model_rpm_limit: Optional[float] - Model-specific rpm limit for user. [Docs](https://docs.litellm.ai/docs/proxy/users#add-model-specific-limits-to-keys) - mcp_rpm_limit: Optional[dict] - Per-MCP-server rpm limit, keyed by MCP server name {"github": 100, "slack": 200}. Enforced for keys and teams only; values set on a user are stored but not enforced per user. - tag_rpm_limit: Optional[dict] - Per-request-tag rpm limit, keyed by request tag {"cell-1": 1000, "cell-2": 500}. Enforced for keys only; values set on a user are stored but not enforced per user. - model_tpm_limit: Optional[float] - Model-specific tpm limit for user. [Docs](https://docs.litellm.ai/docs/proxy/users#add-model-specific-limits-to-keys) - spend: Optional[float] - Amount spent by user. Default is 0. Will be updated by proxy whenever user is used. You can set duration as seconds ("30s"), minutes ("30m"), hours ("30h"), days ("30d"), months ("1mo"). - agent_id: Optional[str] - The agent id associated with the user. - team_id: Optional[str] - [DEPRECATED PARAM] The team id of the user. Default is None. - duration: Optional[str] - [NOT IMPLEMENTED]. - key_alias: Optional[str] - [NOT IMPLEMENTED]. - object_permission: Optional[LiteLLM_ObjectPermissionBase] - internal user-specific object permission. Example - {"vector_stores": ["vector_store_1"], "mcp_servers": ["github"], "mcp_tool_permissions": {"github": ["list_issues"]}}. The MCP grants act as a ceiling on every key this user holds. IF null or {} then no object permission. - prompts: Optional[List[str]] - List of allowed prompts for the user. If specified, the user will only be able to use these specific prompts. - budget_limits: Optional[list] - List of concurrent budget windows for the user. 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"}]. */
|
|
2563
|
+
export const userUpdateUserUpdatePost: API.OperationMethod<
|
|
2564
|
+
UserUpdateUserUpdatePostRequest,
|
|
2565
|
+
UserUpdateUserUpdatePostResponse,
|
|
2566
|
+
UserUpdateUserUpdatePostError,
|
|
2567
|
+
LitellmOpContext
|
|
2568
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2569
|
+
input: UserUpdateUserUpdatePostRequest,
|
|
2570
|
+
output: UserUpdateUserUpdatePostResponse,
|
|
2571
|
+
errors: [BadRequest, Forbidden, NotFound, UnprocessableEntity],
|
|
2572
|
+
protocol: LitellmProtocol,
|
|
2573
|
+
retry: Retry.Retry,
|
|
2574
|
+
}));
|