@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,1103 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.js";
|
|
7
|
+
import { LitellmProtocol, } from "../protocol.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
10
|
+
/*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
|
|
11
|
+
code: S.Number,
|
|
12
|
+
message: S.String,
|
|
13
|
+
}).pipe(C.withBadRequestError), [{ status: 422 }]) {
|
|
14
|
+
}
|
|
15
|
+
export const AddAllowedIpAddAllowedIpPostRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
16
|
+
ip: S.String,
|
|
17
|
+
}).pipe(T.Http({ method: "POST", uri: "/add/allowed_ip", code: 200 }))).annotate({
|
|
18
|
+
identifier: "AddAllowedIpAddAllowedIpPostRequest",
|
|
19
|
+
});
|
|
20
|
+
export const AddAllowedIpAddAllowedIpPostResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
21
|
+
body: S.Unknown,
|
|
22
|
+
})).annotate({
|
|
23
|
+
identifier: "AddAllowedIpAddAllowedIpPostResponse",
|
|
24
|
+
});
|
|
25
|
+
export const DeleteAllowedIpDeleteAllowedIpPostRequest =
|
|
26
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
27
|
+
ip: S.String,
|
|
28
|
+
}).pipe(T.Http({ method: "POST", uri: "/delete/allowed_ip", code: 200 }))).annotate({
|
|
29
|
+
identifier: "DeleteAllowedIpDeleteAllowedIpPostRequest",
|
|
30
|
+
});
|
|
31
|
+
export const DeleteAllowedIpDeleteAllowedIpPostResponse =
|
|
32
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
33
|
+
body: S.Unknown,
|
|
34
|
+
})).annotate({
|
|
35
|
+
identifier: "DeleteAllowedIpDeleteAllowedIpPostResponse",
|
|
36
|
+
});
|
|
37
|
+
export const GetAllowedIpsGetAllowedIpsGetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/get/allowed_ips", code: 200 }))).annotate({
|
|
38
|
+
identifier: "GetAllowedIpsGetAllowedIpsGetRequest",
|
|
39
|
+
});
|
|
40
|
+
export const GetAllowedIpsGetAllowedIpsGetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
+
body: S.Unknown,
|
|
42
|
+
})).annotate({
|
|
43
|
+
identifier: "GetAllowedIpsGetAllowedIpsGetResponse",
|
|
44
|
+
});
|
|
45
|
+
export const GetGatewayDailyActivityGatewayDailyActivityGetRequest =
|
|
46
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
47
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
48
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
49
|
+
}).pipe(T.Http({ method: "GET", uri: "/gateway/daily/activity", code: 200 }))).annotate({
|
|
50
|
+
identifier: "GetGatewayDailyActivityGatewayDailyActivityGetRequest",
|
|
51
|
+
});
|
|
52
|
+
export const GatewayRequestDailyEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
53
|
+
date: S.String,
|
|
54
|
+
failed_requests: S.optional(S.Number),
|
|
55
|
+
successful_requests: S.optional(S.Number),
|
|
56
|
+
})).annotate({
|
|
57
|
+
identifier: "GatewayRequestDailyEntry",
|
|
58
|
+
});
|
|
59
|
+
export const GatewayRequestActivityResponseByDateList = /*@__PURE__*/ S.Array(GatewayRequestDailyEntry);
|
|
60
|
+
export const GatewayRequestBreakdownEntry = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
61
|
+
category: S.String,
|
|
62
|
+
failed_requests: S.optional(S.Number),
|
|
63
|
+
route: S.String,
|
|
64
|
+
successful_requests: S.optional(S.Number),
|
|
65
|
+
})).annotate({
|
|
66
|
+
identifier: "GatewayRequestBreakdownEntry",
|
|
67
|
+
});
|
|
68
|
+
export const GatewayRequestActivityResponseByRouteList = /*@__PURE__*/ S.Array(GatewayRequestBreakdownEntry);
|
|
69
|
+
export const GatewayRequestActivityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
70
|
+
by_date: S.optional(GatewayRequestActivityResponseByDateList),
|
|
71
|
+
by_route: S.optional(GatewayRequestActivityResponseByRouteList),
|
|
72
|
+
total_failed_requests: S.optional(S.Number),
|
|
73
|
+
total_successful_requests: S.optional(S.Number),
|
|
74
|
+
})).annotate({
|
|
75
|
+
identifier: "GatewayRequestActivityResponse",
|
|
76
|
+
});
|
|
77
|
+
export const GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest =
|
|
78
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
79
|
+
model_group: S.String.pipe(T.Query()),
|
|
80
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
81
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
82
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/activity/exceptions", code: 200 }))).annotate({
|
|
83
|
+
identifier: "GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest",
|
|
84
|
+
});
|
|
85
|
+
export const LiteLLMSpendLogsMessagesCase1List = /*@__PURE__*/ S.Array(S.Unknown);
|
|
86
|
+
export const LiteLLMSpendLogsMessagesCase2Map = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
87
|
+
export const LiteLLMSpendLogsMessages = S.Unknown;
|
|
88
|
+
export const LiteLLMSpendLogsResponseCase1List = /*@__PURE__*/ S.Array(S.Unknown);
|
|
89
|
+
export const LiteLLMSpendLogsResponseCase2Map = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
90
|
+
export const LiteLLMSpendLogsResponse = S.Unknown;
|
|
91
|
+
export const LiteLLMSpendLogs = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
92
|
+
api_base: S.optional(S.NullOr(S.String)),
|
|
93
|
+
api_key: S.String.pipe(T.SensitiveValue({})),
|
|
94
|
+
cache_hit: S.optional(S.NullOr(S.String)),
|
|
95
|
+
cache_key: S.optional(S.NullOr(S.String)),
|
|
96
|
+
call_type: S.String,
|
|
97
|
+
completion_tokens: S.optional(S.NullOr(S.Number)),
|
|
98
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
99
|
+
endTime: S.NullOr(S.String),
|
|
100
|
+
messages: S.NullOr(LiteLLMSpendLogsMessages),
|
|
101
|
+
metadata: S.optional(S.NullOr(S.Unknown)),
|
|
102
|
+
model: S.optional(S.NullOr(S.String)),
|
|
103
|
+
prompt_tokens: S.optional(S.NullOr(S.Number)),
|
|
104
|
+
request_id: S.String,
|
|
105
|
+
request_tags: S.optional(S.NullOr(S.Unknown)),
|
|
106
|
+
requester_ip_address: S.optional(S.NullOr(S.String)),
|
|
107
|
+
response: S.NullOr(LiteLLMSpendLogsResponse),
|
|
108
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
109
|
+
startTime: S.NullOr(S.String),
|
|
110
|
+
total_tokens: S.optional(S.NullOr(S.Number)),
|
|
111
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
112
|
+
user: S.optional(S.NullOr(S.String)),
|
|
113
|
+
})).annotate({
|
|
114
|
+
identifier: "LiteLLMSpendLogs",
|
|
115
|
+
});
|
|
116
|
+
export const GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList =
|
|
117
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
118
|
+
export const GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse =
|
|
119
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
120
|
+
body: GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList,
|
|
121
|
+
})).annotate({
|
|
122
|
+
identifier: "GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse",
|
|
123
|
+
});
|
|
124
|
+
export const GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest =
|
|
125
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
126
|
+
model_group: S.String.pipe(T.Query()),
|
|
127
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
128
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
129
|
+
}).pipe(T.Http({
|
|
130
|
+
method: "GET",
|
|
131
|
+
uri: "/global/activity/exceptions/deployment",
|
|
132
|
+
code: 200,
|
|
133
|
+
}))).annotate({
|
|
134
|
+
identifier: "GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest",
|
|
135
|
+
});
|
|
136
|
+
export const GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList =
|
|
137
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
138
|
+
export const GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse =
|
|
139
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
140
|
+
body: GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList,
|
|
141
|
+
})).annotate({
|
|
142
|
+
identifier: "GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse",
|
|
143
|
+
});
|
|
144
|
+
export const GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList =
|
|
145
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
146
|
+
export const GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList =
|
|
147
|
+
/*@__PURE__*/ S.Array(S.String);
|
|
148
|
+
export const GetGlobalActivityGlobalActivityCacheHitsGetRequest =
|
|
149
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
150
|
+
start_date: S.String.pipe(T.Query()),
|
|
151
|
+
end_date: S.String.pipe(T.Query()),
|
|
152
|
+
key_aliases: S.optional(GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList.pipe(T.Query())),
|
|
153
|
+
models: S.optional(GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList.pipe(T.Query())),
|
|
154
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/activity/cache_hits", code: 200 }))).annotate({
|
|
155
|
+
identifier: "GetGlobalActivityGlobalActivityCacheHitsGetRequest",
|
|
156
|
+
});
|
|
157
|
+
export const CacheActivityErrorBucket = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
+
call_type: S.String,
|
|
159
|
+
count: S.Number,
|
|
160
|
+
error_class: S.String,
|
|
161
|
+
error_code: S.String,
|
|
162
|
+
})).annotate({
|
|
163
|
+
identifier: "CacheActivityErrorBucket",
|
|
164
|
+
});
|
|
165
|
+
export const CacheActivityResponseErrorBreakdownList = /*@__PURE__*/ S.Array(CacheActivityErrorBucket);
|
|
166
|
+
export const CacheActivityFilterOptionsKeyAliasesList = /*@__PURE__*/ S.Array(S.String);
|
|
167
|
+
export const CacheActivityFilterOptionsModelsList = /*@__PURE__*/ S.Array(S.String);
|
|
168
|
+
export const CacheActivityFilterOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
169
|
+
key_aliases: CacheActivityFilterOptionsKeyAliasesList,
|
|
170
|
+
models: CacheActivityFilterOptionsModelsList,
|
|
171
|
+
})).annotate({
|
|
172
|
+
identifier: "CacheActivityFilterOptions",
|
|
173
|
+
});
|
|
174
|
+
export const CacheActivityGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
175
|
+
api_requests: S.Number,
|
|
176
|
+
cache_hits: S.Number,
|
|
177
|
+
cached_completion_tokens: S.Number,
|
|
178
|
+
call_type: S.String,
|
|
179
|
+
failed_requests: S.Number,
|
|
180
|
+
generated_completion_tokens: S.Number,
|
|
181
|
+
})).annotate({
|
|
182
|
+
identifier: "CacheActivityGroup",
|
|
183
|
+
});
|
|
184
|
+
export const CacheActivityResponseGroupsList = /*@__PURE__*/ S.Array(CacheActivityGroup);
|
|
185
|
+
export const CacheActivityTotals = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
186
|
+
api_requests: S.Number,
|
|
187
|
+
cache_hit_ratio: S.Number,
|
|
188
|
+
cache_hits: S.Number,
|
|
189
|
+
cached_completion_tokens: S.Number,
|
|
190
|
+
failed_requests: S.Number,
|
|
191
|
+
})).annotate({
|
|
192
|
+
identifier: "CacheActivityTotals",
|
|
193
|
+
});
|
|
194
|
+
export const CacheActivityResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
195
|
+
error_breakdown: CacheActivityResponseErrorBreakdownList,
|
|
196
|
+
filter_options: CacheActivityFilterOptions,
|
|
197
|
+
groups: CacheActivityResponseGroupsList,
|
|
198
|
+
totals: CacheActivityTotals,
|
|
199
|
+
})).annotate({
|
|
200
|
+
identifier: "CacheActivityResponse",
|
|
201
|
+
});
|
|
202
|
+
export const GetGlobalActivityGlobalActivityGetRequest =
|
|
203
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
204
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
205
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
206
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/activity", code: 200 }))).annotate({
|
|
207
|
+
identifier: "GetGlobalActivityGlobalActivityGetRequest",
|
|
208
|
+
});
|
|
209
|
+
export const GetGlobalActivityGlobalActivityGetResponseBodyList =
|
|
210
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
211
|
+
export const GetGlobalActivityGlobalActivityGetResponse =
|
|
212
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
213
|
+
body: GetGlobalActivityGlobalActivityGetResponseBodyList,
|
|
214
|
+
})).annotate({
|
|
215
|
+
identifier: "GetGlobalActivityGlobalActivityGetResponse",
|
|
216
|
+
});
|
|
217
|
+
export const GetGlobalActivityModelGlobalActivityModelGetRequest =
|
|
218
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
219
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
220
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
221
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/activity/model", code: 200 }))).annotate({
|
|
222
|
+
identifier: "GetGlobalActivityModelGlobalActivityModelGetRequest",
|
|
223
|
+
});
|
|
224
|
+
export const GetGlobalActivityModelGlobalActivityModelGetResponseBodyList =
|
|
225
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
226
|
+
export const GetGlobalActivityModelGlobalActivityModelGetResponse =
|
|
227
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
228
|
+
body: GetGlobalActivityModelGlobalActivityModelGetResponseBodyList,
|
|
229
|
+
})).annotate({
|
|
230
|
+
identifier: "GetGlobalActivityModelGlobalActivityModelGetResponse",
|
|
231
|
+
});
|
|
232
|
+
export const GetGlobalSpendGlobalSpendRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/global/spend", code: 200 }))).annotate({
|
|
233
|
+
identifier: "GetGlobalSpendGlobalSpendRequest",
|
|
234
|
+
});
|
|
235
|
+
export const GetGlobalSpendGlobalSpendResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
236
|
+
body: S.Unknown,
|
|
237
|
+
})).annotate({
|
|
238
|
+
identifier: "GetGlobalSpendGlobalSpendResponse",
|
|
239
|
+
});
|
|
240
|
+
export const GetGlobalSpendKeysGlobalSpendKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
241
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
242
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/keys", code: 200 }))).annotate({
|
|
243
|
+
identifier: "GetGlobalSpendKeysGlobalSpendKeyRequest",
|
|
244
|
+
});
|
|
245
|
+
export const GetGlobalSpendKeysGlobalSpendKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
246
|
+
body: S.Unknown,
|
|
247
|
+
})).annotate({
|
|
248
|
+
identifier: "GetGlobalSpendKeysGlobalSpendKeyResponse",
|
|
249
|
+
});
|
|
250
|
+
export const GetGlobalSpendLogsGlobalSpendLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
251
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
252
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/logs", code: 200 }))).annotate({
|
|
253
|
+
identifier: "GetGlobalSpendLogsGlobalSpendLogRequest",
|
|
254
|
+
});
|
|
255
|
+
export const GetGlobalSpendLogsGlobalSpendLogResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
256
|
+
body: S.Unknown,
|
|
257
|
+
})).annotate({
|
|
258
|
+
identifier: "GetGlobalSpendLogsGlobalSpendLogResponse",
|
|
259
|
+
});
|
|
260
|
+
export const GetGlobalSpendModelsGlobalSpendModelRequest =
|
|
261
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
262
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
263
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/models", code: 200 }))).annotate({
|
|
264
|
+
identifier: "GetGlobalSpendModelsGlobalSpendModelRequest",
|
|
265
|
+
});
|
|
266
|
+
export const GetGlobalSpendModelsGlobalSpendModelResponse =
|
|
267
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
268
|
+
body: S.Unknown,
|
|
269
|
+
})).annotate({
|
|
270
|
+
identifier: "GetGlobalSpendModelsGlobalSpendModelResponse",
|
|
271
|
+
});
|
|
272
|
+
export const GetGlobalSpendPerTeamGlobalSpendTeamRequest =
|
|
273
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/global/spend/teams", code: 200 }))).annotate({
|
|
274
|
+
identifier: "GetGlobalSpendPerTeamGlobalSpendTeamRequest",
|
|
275
|
+
});
|
|
276
|
+
export const GetGlobalSpendPerTeamGlobalSpendTeamResponse =
|
|
277
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
278
|
+
body: S.Unknown,
|
|
279
|
+
})).annotate({
|
|
280
|
+
identifier: "GetGlobalSpendPerTeamGlobalSpendTeamResponse",
|
|
281
|
+
});
|
|
282
|
+
export const GetGlobalSpendProviderGlobalSpendProviderGetRequest =
|
|
283
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
284
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
285
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
286
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/provider", code: 200 }))).annotate({
|
|
287
|
+
identifier: "GetGlobalSpendProviderGlobalSpendProviderGetRequest",
|
|
288
|
+
});
|
|
289
|
+
export const GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList =
|
|
290
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
291
|
+
export const GetGlobalSpendProviderGlobalSpendProviderGetResponse =
|
|
292
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
293
|
+
body: GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList,
|
|
294
|
+
})).annotate({
|
|
295
|
+
identifier: "GetGlobalSpendProviderGlobalSpendProviderGetResponse",
|
|
296
|
+
});
|
|
297
|
+
export const GetGlobalSpendReportGlobalSpendReportGetRequestGroupBy = S.String;
|
|
298
|
+
export const GetGlobalSpendReportGlobalSpendReportGetRequest =
|
|
299
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
300
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
301
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
302
|
+
group_by: S.optional(GetGlobalSpendReportGlobalSpendReportGetRequestGroupBy.pipe(T.Query())),
|
|
303
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
304
|
+
internal_user_id: S.optional(S.String.pipe(T.Query())),
|
|
305
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
306
|
+
customer_id: S.optional(S.String.pipe(T.Query())),
|
|
307
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/report", code: 200 }))).annotate({
|
|
308
|
+
identifier: "GetGlobalSpendReportGlobalSpendReportGetRequest",
|
|
309
|
+
});
|
|
310
|
+
export const GetGlobalSpendReportGlobalSpendReportGetResponseBodyList =
|
|
311
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
312
|
+
export const GetGlobalSpendReportGlobalSpendReportGetResponse =
|
|
313
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
+
body: GetGlobalSpendReportGlobalSpendReportGetResponseBodyList,
|
|
315
|
+
})).annotate({
|
|
316
|
+
identifier: "GetGlobalSpendReportGlobalSpendReportGetResponse",
|
|
317
|
+
});
|
|
318
|
+
export const GetGlobalViewAllEndUsersGlobalAllEndUserRequest =
|
|
319
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/global/all_end_users", code: 200 }))).annotate({
|
|
320
|
+
identifier: "GetGlobalViewAllEndUsersGlobalAllEndUserRequest",
|
|
321
|
+
});
|
|
322
|
+
export const GetGlobalViewAllEndUsersGlobalAllEndUserResponse =
|
|
323
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
324
|
+
body: S.Unknown,
|
|
325
|
+
})).annotate({
|
|
326
|
+
identifier: "GetGlobalViewAllEndUsersGlobalAllEndUserResponse",
|
|
327
|
+
});
|
|
328
|
+
export const GetGlobalViewSpendTagsGlobalSpendTagRequest =
|
|
329
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
330
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
331
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
332
|
+
tags: S.optional(S.String.pipe(T.Query())),
|
|
333
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/tags", code: 200 }))).annotate({
|
|
334
|
+
identifier: "GetGlobalViewSpendTagsGlobalSpendTagRequest",
|
|
335
|
+
});
|
|
336
|
+
export const GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList =
|
|
337
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
338
|
+
export const GetGlobalViewSpendTagsGlobalSpendTagResponse =
|
|
339
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
340
|
+
body: GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList,
|
|
341
|
+
})).annotate({
|
|
342
|
+
identifier: "GetGlobalViewSpendTagsGlobalSpendTagResponse",
|
|
343
|
+
});
|
|
344
|
+
export const GetKeySpendReportKeySpendReportGetRequest =
|
|
345
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
346
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
347
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
348
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
349
|
+
}).pipe(T.Http({ method: "GET", uri: "/key/spend/report", code: 200 }))).annotate({
|
|
350
|
+
identifier: "GetKeySpendReportKeySpendReportGetRequest",
|
|
351
|
+
});
|
|
352
|
+
export const GetKeySpendReportKeySpendReportGetResponseBodyItemMap =
|
|
353
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
354
|
+
export const GetKeySpendReportKeySpendReportGetResponseBodyList =
|
|
355
|
+
/*@__PURE__*/ S.Array(GetKeySpendReportKeySpendReportGetResponseBodyItemMap);
|
|
356
|
+
export const GetKeySpendReportKeySpendReportGetResponse =
|
|
357
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
358
|
+
body: GetKeySpendReportKeySpendReportGetResponseBodyList,
|
|
359
|
+
})).annotate({
|
|
360
|
+
identifier: "GetKeySpendReportKeySpendReportGetResponse",
|
|
361
|
+
});
|
|
362
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetRequest =
|
|
363
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
364
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
365
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
366
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
367
|
+
}).pipe(T.Http({ method: "GET", uri: "/organization/spend/report", code: 200 }))).annotate({
|
|
368
|
+
identifier: "GetOrganizationSpendReportOrganizationSpendReportGetRequest",
|
|
369
|
+
});
|
|
370
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap =
|
|
371
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
372
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList =
|
|
373
|
+
/*@__PURE__*/ S.Array(GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap);
|
|
374
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetResponse =
|
|
375
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
376
|
+
body: GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList,
|
|
377
|
+
})).annotate({
|
|
378
|
+
identifier: "GetOrganizationSpendReportOrganizationSpendReportGetResponse",
|
|
379
|
+
});
|
|
380
|
+
export const GetSpendKeyFnSpendKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/spend/keys", code: 200 }))).annotate({
|
|
381
|
+
identifier: "GetSpendKeyFnSpendKeyRequest",
|
|
382
|
+
});
|
|
383
|
+
export const GetSpendKeyFnSpendKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
384
|
+
body: S.Unknown,
|
|
385
|
+
})).annotate({
|
|
386
|
+
identifier: "GetSpendKeyFnSpendKeyResponse",
|
|
387
|
+
});
|
|
388
|
+
export const GetSpendUserFnSpendUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
389
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
390
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/users", code: 200 }))).annotate({
|
|
391
|
+
identifier: "GetSpendUserFnSpendUserRequest",
|
|
392
|
+
});
|
|
393
|
+
export const GetSpendUserFnSpendUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
394
|
+
body: S.Unknown,
|
|
395
|
+
})).annotate({
|
|
396
|
+
identifier: "GetSpendUserFnSpendUserResponse",
|
|
397
|
+
});
|
|
398
|
+
export const GetTeamSpendReportTeamSpendReportGetRequest =
|
|
399
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
400
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
401
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
402
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
403
|
+
}).pipe(T.Http({ method: "GET", uri: "/team/spend/report", code: 200 }))).annotate({
|
|
404
|
+
identifier: "GetTeamSpendReportTeamSpendReportGetRequest",
|
|
405
|
+
});
|
|
406
|
+
export const GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap =
|
|
407
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
408
|
+
export const GetTeamSpendReportTeamSpendReportGetResponseBodyList =
|
|
409
|
+
/*@__PURE__*/ S.Array(GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap);
|
|
410
|
+
export const GetTeamSpendReportTeamSpendReportGetResponse =
|
|
411
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
412
|
+
body: GetTeamSpendReportTeamSpendReportGetResponseBodyList,
|
|
413
|
+
})).annotate({
|
|
414
|
+
identifier: "GetTeamSpendReportTeamSpendReportGetResponse",
|
|
415
|
+
});
|
|
416
|
+
export const GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest =
|
|
417
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
418
|
+
request_id: S.String.pipe(T.Label()),
|
|
419
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
420
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
421
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs/ui/{request_id}", code: 200 }))).annotate({
|
|
422
|
+
identifier: "GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest",
|
|
423
|
+
});
|
|
424
|
+
export const GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse =
|
|
425
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
426
|
+
body: S.Unknown,
|
|
427
|
+
})).annotate({
|
|
428
|
+
identifier: "GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse",
|
|
429
|
+
});
|
|
430
|
+
export const GetUiViewSessionSpendLogsSpendLogsSessionUiRequest =
|
|
431
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
432
|
+
session_id: S.String.pipe(T.Query()),
|
|
433
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
434
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
435
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs/session/ui", code: 200 }))).annotate({
|
|
436
|
+
identifier: "GetUiViewSessionSpendLogsSpendLogsSessionUiRequest",
|
|
437
|
+
});
|
|
438
|
+
export const GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList =
|
|
439
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
440
|
+
export const GetUiViewSessionSpendLogsSpendLogsSessionUiResponse =
|
|
441
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
442
|
+
body: GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList,
|
|
443
|
+
})).annotate({
|
|
444
|
+
identifier: "GetUiViewSessionSpendLogsSpendLogsSessionUiResponse",
|
|
445
|
+
});
|
|
446
|
+
export const GetUiViewSpendLogsSpendLogsUiRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
447
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
448
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
449
|
+
request_id: S.optional(S.String.pipe(T.Query())),
|
|
450
|
+
session_id: S.optional(S.String.pipe(T.Query())),
|
|
451
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
452
|
+
min_spend: S.optional(S.Number.pipe(T.Query())),
|
|
453
|
+
max_spend: S.optional(S.Number.pipe(T.Query())),
|
|
454
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
455
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
456
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
457
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
458
|
+
status_filter: S.optional(S.String.pipe(T.Query())),
|
|
459
|
+
cache_hit_filter: S.optional(S.String.pipe(T.Query())),
|
|
460
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
461
|
+
model_id: S.optional(S.String.pipe(T.Query())),
|
|
462
|
+
model_group: S.optional(S.String.pipe(T.Query())),
|
|
463
|
+
key_alias: S.optional(S.String.pipe(T.Query())),
|
|
464
|
+
end_user: S.optional(S.String.pipe(T.Query())),
|
|
465
|
+
error_code: S.optional(S.String.pipe(T.Query())),
|
|
466
|
+
error_message: S.optional(S.String.pipe(T.Query())),
|
|
467
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
468
|
+
sort_order: S.optional(S.String.pipe(T.Query())),
|
|
469
|
+
exclude_internal_health_checks: S.optional(S.Boolean.pipe(T.Query())),
|
|
470
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs/ui", code: 200 }))).annotate({
|
|
471
|
+
identifier: "GetUiViewSpendLogsSpendLogsUiRequest",
|
|
472
|
+
});
|
|
473
|
+
export const GetUiViewSpendLogsSpendLogsUiResponseBodyList =
|
|
474
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
475
|
+
export const GetUiViewSpendLogsSpendLogsUiResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
476
|
+
body: GetUiViewSpendLogsSpendLogsUiResponseBodyList,
|
|
477
|
+
})).annotate({
|
|
478
|
+
identifier: "GetUiViewSpendLogsSpendLogsUiResponse",
|
|
479
|
+
});
|
|
480
|
+
export const GetUiViewSpendLogsSpendLogsV2Request = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
481
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
482
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
483
|
+
request_id: S.optional(S.String.pipe(T.Query())),
|
|
484
|
+
session_id: S.optional(S.String.pipe(T.Query())),
|
|
485
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
486
|
+
min_spend: S.optional(S.Number.pipe(T.Query())),
|
|
487
|
+
max_spend: S.optional(S.Number.pipe(T.Query())),
|
|
488
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
489
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
490
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
491
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
492
|
+
status_filter: S.optional(S.String.pipe(T.Query())),
|
|
493
|
+
cache_hit_filter: S.optional(S.String.pipe(T.Query())),
|
|
494
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
495
|
+
model_id: S.optional(S.String.pipe(T.Query())),
|
|
496
|
+
model_group: S.optional(S.String.pipe(T.Query())),
|
|
497
|
+
key_alias: S.optional(S.String.pipe(T.Query())),
|
|
498
|
+
end_user: S.optional(S.String.pipe(T.Query())),
|
|
499
|
+
error_code: S.optional(S.String.pipe(T.Query())),
|
|
500
|
+
error_message: S.optional(S.String.pipe(T.Query())),
|
|
501
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
502
|
+
sort_order: S.optional(S.String.pipe(T.Query())),
|
|
503
|
+
exclude_internal_health_checks: S.optional(S.Boolean.pipe(T.Query())),
|
|
504
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs/v2", code: 200 }))).annotate({
|
|
505
|
+
identifier: "GetUiViewSpendLogsSpendLogsV2Request",
|
|
506
|
+
});
|
|
507
|
+
export const GetUiViewSpendLogsSpendLogsV2ResponseBodyMap =
|
|
508
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
509
|
+
export const GetUiViewSpendLogsSpendLogsV2Response = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
510
|
+
body: GetUiViewSpendLogsSpendLogsV2ResponseBodyMap,
|
|
511
|
+
})).annotate({
|
|
512
|
+
identifier: "GetUiViewSpendLogsSpendLogsV2Response",
|
|
513
|
+
});
|
|
514
|
+
export const GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest =
|
|
515
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
516
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
517
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
518
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
519
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
520
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
521
|
+
timezone: S.optional(S.Number.pipe(T.Query())),
|
|
522
|
+
include_current_utc_day: S.optional(S.Boolean.pipe(T.Query())),
|
|
523
|
+
}).pipe(T.Http({
|
|
524
|
+
method: "GET",
|
|
525
|
+
uri: "/user/daily/activity/aggregated",
|
|
526
|
+
code: 200,
|
|
527
|
+
}))).annotate({
|
|
528
|
+
identifier: "GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest",
|
|
529
|
+
});
|
|
530
|
+
export const DailySpendMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
531
|
+
has_more: S.optional(S.Boolean),
|
|
532
|
+
page: S.optional(S.Number),
|
|
533
|
+
total_api_requests: S.optional(S.Number),
|
|
534
|
+
total_autorouter_savings_spend: S.optional(S.Number),
|
|
535
|
+
total_cache_creation_input_tokens: S.optional(S.Number),
|
|
536
|
+
total_cache_read_input_tokens: S.optional(S.Number),
|
|
537
|
+
total_completion_tokens: S.optional(S.Number),
|
|
538
|
+
total_compression_saved_tokens: S.optional(S.Number),
|
|
539
|
+
total_compression_savings_spend: S.optional(S.Number),
|
|
540
|
+
total_failed_requests: S.optional(S.Number),
|
|
541
|
+
total_flat_cost: S.optional(S.Number),
|
|
542
|
+
total_gateway_injected_caching_savings_spend: S.optional(S.Number),
|
|
543
|
+
total_pages: S.optional(S.Number),
|
|
544
|
+
total_prompt_caching_savings_spend: S.optional(S.Number),
|
|
545
|
+
total_prompt_tokens: S.optional(S.Number),
|
|
546
|
+
total_spend: S.optional(S.Number),
|
|
547
|
+
total_successful_requests: S.optional(S.Number),
|
|
548
|
+
total_tokens: S.optional(S.Number),
|
|
549
|
+
})).annotate({
|
|
550
|
+
identifier: "DailySpendMetadata",
|
|
551
|
+
});
|
|
552
|
+
export const KeyMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
553
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
554
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
555
|
+
})).annotate({ identifier: "KeyMetadata" });
|
|
556
|
+
export const SpendMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
557
|
+
api_requests: S.optional(S.Number),
|
|
558
|
+
autorouter_savings_spend: S.optional(S.Number),
|
|
559
|
+
cache_creation_input_tokens: S.optional(S.Number),
|
|
560
|
+
cache_read_input_tokens: S.optional(S.Number),
|
|
561
|
+
completion_tokens: S.optional(S.Number),
|
|
562
|
+
compression_saved_tokens: S.optional(S.Number),
|
|
563
|
+
compression_savings_spend: S.optional(S.Number),
|
|
564
|
+
failed_requests: S.optional(S.Number),
|
|
565
|
+
flat_cost: S.optional(S.Number),
|
|
566
|
+
gateway_injected_caching_savings_spend: S.optional(S.Number),
|
|
567
|
+
prompt_caching_savings_spend: S.optional(S.Number),
|
|
568
|
+
prompt_tokens: S.optional(S.Number),
|
|
569
|
+
spend: S.optional(S.Number),
|
|
570
|
+
successful_requests: S.optional(S.Number),
|
|
571
|
+
total_tokens: S.optional(S.Number),
|
|
572
|
+
})).annotate({ identifier: "SpendMetrics" });
|
|
573
|
+
export const KeyMetricWithMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
574
|
+
metadata: S.optional(KeyMetadata),
|
|
575
|
+
metrics: SpendMetrics,
|
|
576
|
+
})).annotate({
|
|
577
|
+
identifier: "KeyMetricWithMetadata",
|
|
578
|
+
});
|
|
579
|
+
export const BreakdownMetricsApiKeysMap = /*@__PURE__*/ S.Record(S.String, KeyMetricWithMetadata);
|
|
580
|
+
export const MetricWithMetadataApiKeyBreakdownMap = /*@__PURE__*/ S.Record(S.String, KeyMetricWithMetadata);
|
|
581
|
+
export const MetricWithMetadataMetadataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
582
|
+
export const MetricWithMetadata = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
583
|
+
api_key_breakdown: S.optional(MetricWithMetadataApiKeyBreakdownMap),
|
|
584
|
+
metadata: S.optional(MetricWithMetadataMetadataMap),
|
|
585
|
+
metrics: SpendMetrics,
|
|
586
|
+
})).annotate({
|
|
587
|
+
identifier: "MetricWithMetadata",
|
|
588
|
+
});
|
|
589
|
+
export const BreakdownMetricsEndpointsMap = /*@__PURE__*/ S.Record(S.String, MetricWithMetadata);
|
|
590
|
+
export const BreakdownMetricsEntitiesMap = /*@__PURE__*/ S.Record(S.String, MetricWithMetadata);
|
|
591
|
+
export const BreakdownMetricsMcpServersMap = /*@__PURE__*/ S.Record(S.String, MetricWithMetadata);
|
|
592
|
+
export const BreakdownMetricsModelGroupsMap = /*@__PURE__*/ S.Record(S.String, MetricWithMetadata);
|
|
593
|
+
export const BreakdownMetricsModelsMap = /*@__PURE__*/ S.Record(S.String, MetricWithMetadata);
|
|
594
|
+
export const BreakdownMetricsProvidersMap = /*@__PURE__*/ S.Record(S.String, MetricWithMetadata);
|
|
595
|
+
export const BreakdownMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
596
|
+
api_keys: S.optional(BreakdownMetricsApiKeysMap),
|
|
597
|
+
endpoints: S.optional(BreakdownMetricsEndpointsMap),
|
|
598
|
+
entities: S.optional(BreakdownMetricsEntitiesMap),
|
|
599
|
+
mcp_servers: S.optional(BreakdownMetricsMcpServersMap),
|
|
600
|
+
model_groups: S.optional(BreakdownMetricsModelGroupsMap),
|
|
601
|
+
models: S.optional(BreakdownMetricsModelsMap),
|
|
602
|
+
providers: S.optional(BreakdownMetricsProvidersMap),
|
|
603
|
+
})).annotate({
|
|
604
|
+
identifier: "BreakdownMetrics",
|
|
605
|
+
});
|
|
606
|
+
export const DailySpendData = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
607
|
+
breakdown: S.optional(BreakdownMetrics),
|
|
608
|
+
date: S.String,
|
|
609
|
+
metrics: SpendMetrics,
|
|
610
|
+
})).annotate({ identifier: "DailySpendData" });
|
|
611
|
+
export const SpendAnalyticsPaginatedResponseResultsList = /*@__PURE__*/ S.Array(DailySpendData);
|
|
612
|
+
export const SpendAnalyticsPaginatedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
613
|
+
metadata: S.optional(DailySpendMetadata),
|
|
614
|
+
results: SpendAnalyticsPaginatedResponseResultsList,
|
|
615
|
+
})).annotate({
|
|
616
|
+
identifier: "SpendAnalyticsPaginatedResponse",
|
|
617
|
+
});
|
|
618
|
+
export const GetUserDailyActivityUserDailyActivityGetRequest =
|
|
619
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
620
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
621
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
622
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
623
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
624
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
625
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
626
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
627
|
+
timezone: S.optional(S.Number.pipe(T.Query())),
|
|
628
|
+
include_current_utc_day: S.optional(S.Boolean.pipe(T.Query())),
|
|
629
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/daily/activity", code: 200 }))).annotate({
|
|
630
|
+
identifier: "GetUserDailyActivityUserDailyActivityGetRequest",
|
|
631
|
+
});
|
|
632
|
+
export const GetUserSpendReportUserSpendReportGetRequest =
|
|
633
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
634
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
635
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
636
|
+
internal_user_id: S.optional(S.String.pipe(T.Query())),
|
|
637
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/spend/report", code: 200 }))).annotate({
|
|
638
|
+
identifier: "GetUserSpendReportUserSpendReportGetRequest",
|
|
639
|
+
});
|
|
640
|
+
export const GetUserSpendReportUserSpendReportGetResponseBodyItemMap =
|
|
641
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
642
|
+
export const GetUserSpendReportUserSpendReportGetResponseBodyList =
|
|
643
|
+
/*@__PURE__*/ S.Array(GetUserSpendReportUserSpendReportGetResponseBodyItemMap);
|
|
644
|
+
export const GetUserSpendReportUserSpendReportGetResponse =
|
|
645
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
646
|
+
body: GetUserSpendReportUserSpendReportGetResponseBodyList,
|
|
647
|
+
})).annotate({
|
|
648
|
+
identifier: "GetUserSpendReportUserSpendReportGetResponse",
|
|
649
|
+
});
|
|
650
|
+
export const GetViewSpendLogsSpendLogRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
651
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
652
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
653
|
+
request_id: S.optional(S.String.pipe(T.Query())),
|
|
654
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
655
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
656
|
+
summarize: S.optional(S.Boolean.pipe(T.Query())),
|
|
657
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs", code: 200 }))).annotate({
|
|
658
|
+
identifier: "GetViewSpendLogsSpendLogRequest",
|
|
659
|
+
});
|
|
660
|
+
export const GetViewSpendLogsSpendLogResponseBodyList = /*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
661
|
+
export const GetViewSpendLogsSpendLogResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
662
|
+
body: GetViewSpendLogsSpendLogResponseBodyList,
|
|
663
|
+
})).annotate({
|
|
664
|
+
identifier: "GetViewSpendLogsSpendLogResponse",
|
|
665
|
+
});
|
|
666
|
+
export const GetViewSpendTagsSpendTagRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
667
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
668
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
669
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/tags", code: 200 }))).annotate({
|
|
670
|
+
identifier: "GetViewSpendTagsSpendTagRequest",
|
|
671
|
+
});
|
|
672
|
+
export const GetViewSpendTagsSpendTagResponseBodyList = /*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
673
|
+
export const GetViewSpendTagsSpendTagResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
674
|
+
body: GetViewSpendTagsSpendTagResponseBodyList,
|
|
675
|
+
})).annotate({
|
|
676
|
+
identifier: "GetViewSpendTagsSpendTagResponse",
|
|
677
|
+
});
|
|
678
|
+
export const GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest =
|
|
679
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/global/spend/all_tag_names", code: 200 }))).annotate({
|
|
680
|
+
identifier: "GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest",
|
|
681
|
+
});
|
|
682
|
+
export const GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList =
|
|
683
|
+
/*@__PURE__*/ S.Array(LiteLLMSpendLogs);
|
|
684
|
+
export const GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse =
|
|
685
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
686
|
+
body: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList,
|
|
687
|
+
})).annotate({
|
|
688
|
+
identifier: "GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse",
|
|
689
|
+
});
|
|
690
|
+
export const GlobalSpendRefreshGlobalSpendRefreshPostRequest =
|
|
691
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/global/spend/refresh", code: 200 }))).annotate({
|
|
692
|
+
identifier: "GlobalSpendRefreshGlobalSpendRefreshPostRequest",
|
|
693
|
+
});
|
|
694
|
+
export const GlobalSpendRefreshGlobalSpendRefreshPostResponse =
|
|
695
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
696
|
+
body: S.Unknown,
|
|
697
|
+
})).annotate({
|
|
698
|
+
identifier: "GlobalSpendRefreshGlobalSpendRefreshPostResponse",
|
|
699
|
+
});
|
|
700
|
+
export const GlobalSpendResetGlobalSpendResetPostRequest =
|
|
701
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "POST", uri: "/global/spend/reset", code: 200 }))).annotate({
|
|
702
|
+
identifier: "GlobalSpendResetGlobalSpendResetPostRequest",
|
|
703
|
+
});
|
|
704
|
+
export const GlobalSpendResetGlobalSpendResetPostResponse =
|
|
705
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
706
|
+
body: S.Unknown,
|
|
707
|
+
})).annotate({
|
|
708
|
+
identifier: "GlobalSpendResetGlobalSpendResetPostResponse",
|
|
709
|
+
});
|
|
710
|
+
export const ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest =
|
|
711
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
712
|
+
filter_startTime__gte_: S.String.pipe(T.Query("filter[startTime][gte]")),
|
|
713
|
+
filter_startTime__lte_: S.String.pipe(T.Query("filter[startTime][lte]")),
|
|
714
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
715
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
716
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
717
|
+
}).pipe(T.Http({
|
|
718
|
+
method: "GET",
|
|
719
|
+
uri: "/management/v1/spend_logs/end_users",
|
|
720
|
+
code: 200,
|
|
721
|
+
}))).annotate({
|
|
722
|
+
identifier: "ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest",
|
|
723
|
+
});
|
|
724
|
+
export const FacetListResponseDataList = /*@__PURE__*/ S.Array(S.String);
|
|
725
|
+
export const PageLinks = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
726
|
+
next: S.optional(S.NullOr(S.String)),
|
|
727
|
+
prev: S.optional(S.NullOr(S.String)),
|
|
728
|
+
self: S.String,
|
|
729
|
+
})).annotate({ identifier: "PageLinks" });
|
|
730
|
+
export const PageMeta = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
731
|
+
has_more: S.Boolean,
|
|
732
|
+
page: S.Number,
|
|
733
|
+
page_size: S.Number,
|
|
734
|
+
})).annotate({ identifier: "PageMeta" });
|
|
735
|
+
export const FacetListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
736
|
+
data: FacetListResponseDataList,
|
|
737
|
+
links: PageLinks,
|
|
738
|
+
meta: PageMeta,
|
|
739
|
+
})).annotate({
|
|
740
|
+
identifier: "FacetListResponse",
|
|
741
|
+
});
|
|
742
|
+
export const ListSpendLogUsersManagementV1SpendLogsUsersGetRequest =
|
|
743
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
744
|
+
filter_startTime__gte_: S.String.pipe(T.Query("filter[startTime][gte]")),
|
|
745
|
+
filter_startTime__lte_: S.String.pipe(T.Query("filter[startTime][lte]")),
|
|
746
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
747
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
748
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
749
|
+
}).pipe(T.Http({
|
|
750
|
+
method: "GET",
|
|
751
|
+
uri: "/management/v1/spend_logs/users",
|
|
752
|
+
code: 200,
|
|
753
|
+
}))).annotate({
|
|
754
|
+
identifier: "ListSpendLogUsersManagementV1SpendLogsUsersGetRequest",
|
|
755
|
+
});
|
|
756
|
+
export const PostCalculateSpendSpendCalculateRequestCompletionResponseMap =
|
|
757
|
+
/*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
758
|
+
export const PostCalculateSpendSpendCalculateRequestMessagesList =
|
|
759
|
+
/*@__PURE__*/ S.Array(S.Unknown);
|
|
760
|
+
export const PostCalculateSpendSpendCalculateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
761
|
+
completion_response: S.optional(S.NullOr(PostCalculateSpendSpendCalculateRequestCompletionResponseMap)),
|
|
762
|
+
messages: S.optional(S.NullOr(PostCalculateSpendSpendCalculateRequestMessagesList)),
|
|
763
|
+
model: S.optional(S.NullOr(S.String)),
|
|
764
|
+
}).pipe(T.Http({ method: "POST", uri: "/spend/calculate", code: 200 }))).annotate({
|
|
765
|
+
identifier: "PostCalculateSpendSpendCalculateRequest",
|
|
766
|
+
});
|
|
767
|
+
export const PostCalculateSpendSpendCalculateResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
768
|
+
cost: S.optional(S.Number),
|
|
769
|
+
})).annotate({
|
|
770
|
+
identifier: "PostCalculateSpendSpendCalculateResponse",
|
|
771
|
+
});
|
|
772
|
+
export const GlobalEndUsersSpend = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
773
|
+
api_key: S.optional(S.NullOr(S.String)),
|
|
774
|
+
endTime: S.optional(S.NullOr(S.String)),
|
|
775
|
+
startTime: S.optional(S.NullOr(S.String)),
|
|
776
|
+
})).annotate({
|
|
777
|
+
identifier: "GlobalEndUsersSpend",
|
|
778
|
+
});
|
|
779
|
+
export const PostGlobalSpendEndUsersGlobalSpendEndUserRequest =
|
|
780
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
781
|
+
body: S.optional(S.NullOr(GlobalEndUsersSpend).pipe(T.HttpBody())),
|
|
782
|
+
}).pipe(T.Http({ method: "POST", uri: "/global/spend/end_users", code: 200 }))).annotate({
|
|
783
|
+
identifier: "PostGlobalSpendEndUsersGlobalSpendEndUserRequest",
|
|
784
|
+
});
|
|
785
|
+
export const PostGlobalSpendEndUsersGlobalSpendEndUserResponse =
|
|
786
|
+
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
787
|
+
body: S.Unknown,
|
|
788
|
+
})).annotate({
|
|
789
|
+
identifier: "PostGlobalSpendEndUsersGlobalSpendEndUserResponse",
|
|
790
|
+
});
|
|
791
|
+
/** Add Allowed Ip */
|
|
792
|
+
export const addAllowedIpAddAllowedIpPost = /*@__PURE__*/ API.make(() => ({
|
|
793
|
+
input: AddAllowedIpAddAllowedIpPostRequest,
|
|
794
|
+
output: AddAllowedIpAddAllowedIpPostResponse,
|
|
795
|
+
errors: [UnprocessableEntity],
|
|
796
|
+
protocol: LitellmProtocol,
|
|
797
|
+
retry: Retry.Retry,
|
|
798
|
+
}));
|
|
799
|
+
/** Delete Allowed Ip */
|
|
800
|
+
export const deleteAllowedIpDeleteAllowedIpPost = /*@__PURE__*/ API.make(() => ({
|
|
801
|
+
input: DeleteAllowedIpDeleteAllowedIpPostRequest,
|
|
802
|
+
output: DeleteAllowedIpDeleteAllowedIpPostResponse,
|
|
803
|
+
errors: [UnprocessableEntity],
|
|
804
|
+
protocol: LitellmProtocol,
|
|
805
|
+
retry: Retry.Retry,
|
|
806
|
+
}));
|
|
807
|
+
/** Get Allowed Ips */
|
|
808
|
+
export const getAllowedIpsGetAllowedIpsGet = /*@__PURE__*/ API.make(() => ({
|
|
809
|
+
input: GetAllowedIpsGetAllowedIpsGetRequest,
|
|
810
|
+
output: GetAllowedIpsGetAllowedIpsGetResponse,
|
|
811
|
+
errors: [],
|
|
812
|
+
protocol: LitellmProtocol,
|
|
813
|
+
retry: Retry.Retry,
|
|
814
|
+
}));
|
|
815
|
+
/** Get Gateway Daily Activity Successful and failed gateway requests, counted at the ASGI edge. Deployment-wide: the underlying table has no per-key or per-user dimension, so this is admin-only. */
|
|
816
|
+
export const getGatewayDailyActivityGatewayDailyActivityGet = /*@__PURE__*/ API.make(() => ({
|
|
817
|
+
input: GetGatewayDailyActivityGatewayDailyActivityGetRequest,
|
|
818
|
+
output: GatewayRequestActivityResponse,
|
|
819
|
+
errors: [UnprocessableEntity],
|
|
820
|
+
protocol: LitellmProtocol,
|
|
821
|
+
retry: Retry.Retry,
|
|
822
|
+
}));
|
|
823
|
+
/** Get Global Activity Exceptions Get number of API Requests, total tokens through proxy { "daily_data": [ const chartdata = [ { date: 'Jan 22', num_rate_limit_exceptions: 10, }, { date: 'Jan 23', num_rate_limit_exceptions: 10, }, ], "sum_api_exceptions": 20, } */
|
|
824
|
+
export const getGlobalActivityExceptionsGlobalActivityExceptionsGet = /*@__PURE__*/ API.make(() => ({
|
|
825
|
+
input: GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest,
|
|
826
|
+
output: GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse,
|
|
827
|
+
errors: [UnprocessableEntity],
|
|
828
|
+
protocol: LitellmProtocol,
|
|
829
|
+
retry: Retry.Retry,
|
|
830
|
+
}));
|
|
831
|
+
/** Get Global Activity Exceptions Per Deployment Get number of 429 errors - Grouped by deployment [ { "deployment": "https://azure-us-east-1.openai.azure.com/", "daily_data": [ const chartdata = [ { date: 'Jan 22', num_rate_limit_exceptions: 10 }, { date: 'Jan 23', num_rate_limit_exceptions: 12 }, ], "sum_num_rate_limit_exceptions": 20, }, { "deployment": "https://azure-us-east-1.openai.azure.com/", "daily_data": [ const chartdata = [ { date: 'Jan 22', num_rate_limit_exceptions: 10, }, { date: 'Jan 23', num_rate_limit_exceptions: 12 }, ], "sum_num_rate_limit_exceptions": 20, }, ] */
|
|
832
|
+
export const getGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGet = /*@__PURE__*/ API.make(() => ({
|
|
833
|
+
input: GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest,
|
|
834
|
+
output: GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse,
|
|
835
|
+
errors: [UnprocessableEntity],
|
|
836
|
+
protocol: LitellmProtocol,
|
|
837
|
+
retry: Retry.Retry,
|
|
838
|
+
}));
|
|
839
|
+
/** Get Global Activity Cache activity for the Admin UI cache dashboard, aggregated per call_type: cache hits vs successful LLM API requests vs failed requests, plus totals for the stat cards and the available key-alias/model filter options. */
|
|
840
|
+
export const getGlobalActivityGlobalActivityCacheHitsGet = /*@__PURE__*/ API.make(() => ({
|
|
841
|
+
input: GetGlobalActivityGlobalActivityCacheHitsGetRequest,
|
|
842
|
+
output: CacheActivityResponse,
|
|
843
|
+
errors: [UnprocessableEntity],
|
|
844
|
+
protocol: LitellmProtocol,
|
|
845
|
+
retry: Retry.Retry,
|
|
846
|
+
}));
|
|
847
|
+
/** Get Global Activity Get number of API Requests, total tokens through proxy { "daily_data": [ const chartdata = [ { date: 'Jan 22', api_requests: 10, total_tokens: 2000 }, { date: 'Jan 23', api_requests: 10, total_tokens: 12 }, ], "sum_api_requests": 20, "sum_total_tokens": 2012 } */
|
|
848
|
+
export const getGlobalActivityGlobalActivityGet = /*@__PURE__*/ API.make(() => ({
|
|
849
|
+
input: GetGlobalActivityGlobalActivityGetRequest,
|
|
850
|
+
output: GetGlobalActivityGlobalActivityGetResponse,
|
|
851
|
+
errors: [UnprocessableEntity],
|
|
852
|
+
protocol: LitellmProtocol,
|
|
853
|
+
retry: Retry.Retry,
|
|
854
|
+
}));
|
|
855
|
+
/** Get Global Activity Model Get number of API Requests, total tokens through proxy - Grouped by MODEL [ { "model": "gpt-4", "daily_data": [ const chartdata = [ { date: 'Jan 22', api_requests: 10, total_tokens: 2000 }, { date: 'Jan 23', api_requests: 10, total_tokens: 12 }, ], "sum_api_requests": 20, "sum_total_tokens": 2012 }, { "model": "azure/gpt-4-turbo", "daily_data": [ const chartdata = [ { date: 'Jan 22', api_requests: 10, total_tokens: 2000 }, { date: 'Jan 23', api_requests: 10, total_tokens: 12 }, ], "sum_api_requests": 20, "sum_total_tokens": 2012 }, ] */
|
|
856
|
+
export const getGlobalActivityModelGlobalActivityModelGet = /*@__PURE__*/ API.make(() => ({
|
|
857
|
+
input: GetGlobalActivityModelGlobalActivityModelGetRequest,
|
|
858
|
+
output: GetGlobalActivityModelGlobalActivityModelGetResponse,
|
|
859
|
+
errors: [UnprocessableEntity],
|
|
860
|
+
protocol: LitellmProtocol,
|
|
861
|
+
retry: Retry.Retry,
|
|
862
|
+
}));
|
|
863
|
+
/** Global Spend [BETA] This is a beta endpoint. It will change. View total spend across all proxy keys */
|
|
864
|
+
export const getGlobalSpendGlobalSpend = /*@__PURE__*/ API.make(() => ({
|
|
865
|
+
input: GetGlobalSpendGlobalSpendRequest,
|
|
866
|
+
output: GetGlobalSpendGlobalSpendResponse,
|
|
867
|
+
errors: [],
|
|
868
|
+
protocol: LitellmProtocol,
|
|
869
|
+
retry: Retry.Retry,
|
|
870
|
+
}));
|
|
871
|
+
/** Global Spend Keys [BETA] This is a beta endpoint. It will change. Use this to get the top 'n' keys with the highest spend, ordered by spend. */
|
|
872
|
+
export const getGlobalSpendKeysGlobalSpendKey = /*@__PURE__*/ API.make(() => ({
|
|
873
|
+
input: GetGlobalSpendKeysGlobalSpendKeyRequest,
|
|
874
|
+
output: GetGlobalSpendKeysGlobalSpendKeyResponse,
|
|
875
|
+
errors: [UnprocessableEntity],
|
|
876
|
+
protocol: LitellmProtocol,
|
|
877
|
+
retry: Retry.Retry,
|
|
878
|
+
}));
|
|
879
|
+
/** Global Spend Logs [BETA] This is a beta endpoint. It will change. Use this to get global spend (spend per day for last 30d). Admin-only endpoint More efficient implementation of /spend/logs, by creating a view over the spend logs table. */
|
|
880
|
+
export const getGlobalSpendLogsGlobalSpendLog = /*@__PURE__*/ API.make(() => ({
|
|
881
|
+
input: GetGlobalSpendLogsGlobalSpendLogRequest,
|
|
882
|
+
output: GetGlobalSpendLogsGlobalSpendLogResponse,
|
|
883
|
+
errors: [UnprocessableEntity],
|
|
884
|
+
protocol: LitellmProtocol,
|
|
885
|
+
retry: Retry.Retry,
|
|
886
|
+
}));
|
|
887
|
+
/** Global Spend Models [BETA] This is a beta endpoint. It will change. Use this to get the top 'n' models with the highest spend, ordered by spend. */
|
|
888
|
+
export const getGlobalSpendModelsGlobalSpendModel = /*@__PURE__*/ API.make(() => ({
|
|
889
|
+
input: GetGlobalSpendModelsGlobalSpendModelRequest,
|
|
890
|
+
output: GetGlobalSpendModelsGlobalSpendModelResponse,
|
|
891
|
+
errors: [UnprocessableEntity],
|
|
892
|
+
protocol: LitellmProtocol,
|
|
893
|
+
retry: Retry.Retry,
|
|
894
|
+
}));
|
|
895
|
+
/** Global Spend Per Team [BETA] This is a beta endpoint. It will change. Use this to get daily spend, grouped by `team_id` and `date` */
|
|
896
|
+
export const getGlobalSpendPerTeamGlobalSpendTeam = /*@__PURE__*/ API.make(() => ({
|
|
897
|
+
input: GetGlobalSpendPerTeamGlobalSpendTeamRequest,
|
|
898
|
+
output: GetGlobalSpendPerTeamGlobalSpendTeamResponse,
|
|
899
|
+
errors: [],
|
|
900
|
+
protocol: LitellmProtocol,
|
|
901
|
+
retry: Retry.Retry,
|
|
902
|
+
}));
|
|
903
|
+
/** Get Global Spend Provider Get breakdown of spend per provider [ { "provider": "Azure OpenAI", "spend": 20 }, { "provider": "OpenAI", "spend": 10 }, { "provider": "VertexAI", "spend": 30 } ] */
|
|
904
|
+
export const getGlobalSpendProviderGlobalSpendProviderGet = /*@__PURE__*/ API.make(() => ({
|
|
905
|
+
input: GetGlobalSpendProviderGlobalSpendProviderGetRequest,
|
|
906
|
+
output: GetGlobalSpendProviderGlobalSpendProviderGetResponse,
|
|
907
|
+
errors: [UnprocessableEntity],
|
|
908
|
+
protocol: LitellmProtocol,
|
|
909
|
+
retry: Retry.Retry,
|
|
910
|
+
}));
|
|
911
|
+
/** Get Global Spend Report Get Daily Spend per Team, based on specific startTime and endTime. Per team, view usage by each key, model [ { "group-by-day": "2024-05-10", "teams": [ { "team_name": "team-1" "spend": 10, "keys": [ "key": "1213", "usage": { "model-1": { "cost": 12.50, "input_tokens": 1000, "output_tokens": 5000, "requests": 100 }, "audio-modelname1": { "cost": 25.50, "seconds": 25, "requests": 50 }, } } ] ] } */
|
|
912
|
+
export const getGlobalSpendReportGlobalSpendReportGet = /*@__PURE__*/ API.make(() => ({
|
|
913
|
+
input: GetGlobalSpendReportGlobalSpendReportGetRequest,
|
|
914
|
+
output: GetGlobalSpendReportGlobalSpendReportGetResponse,
|
|
915
|
+
errors: [UnprocessableEntity],
|
|
916
|
+
protocol: LitellmProtocol,
|
|
917
|
+
retry: Retry.Retry,
|
|
918
|
+
}));
|
|
919
|
+
/** Global View All End Users [BETA] This is a beta endpoint. It will change. Use this to just get all the unique `end_users` */
|
|
920
|
+
export const getGlobalViewAllEndUsersGlobalAllEndUser = /*@__PURE__*/ API.make(() => ({
|
|
921
|
+
input: GetGlobalViewAllEndUsersGlobalAllEndUserRequest,
|
|
922
|
+
output: GetGlobalViewAllEndUsersGlobalAllEndUserResponse,
|
|
923
|
+
errors: [],
|
|
924
|
+
protocol: LitellmProtocol,
|
|
925
|
+
retry: Retry.Retry,
|
|
926
|
+
}));
|
|
927
|
+
/** Global View Spend Tags LiteLLM Enterprise - View Spend Per Request Tag. Used by LiteLLM UI Example Request: ``` curl -X GET "http://0.0.0.0:4000/spend/tags" -H "Authorization: Bearer sk-1234" ``` Spend with Start Date and End Date ``` curl -X GET "http://0.0.0.0:4000/spend/tags?start_date=2022-01-01&end_date=2022-02-01" -H "Authorization: Bearer sk-1234" ``` */
|
|
928
|
+
export const getGlobalViewSpendTagsGlobalSpendTag = /*@__PURE__*/ API.make(() => ({
|
|
929
|
+
input: GetGlobalViewSpendTagsGlobalSpendTagRequest,
|
|
930
|
+
output: GetGlobalViewSpendTagsGlobalSpendTagResponse,
|
|
931
|
+
errors: [UnprocessableEntity],
|
|
932
|
+
protocol: LitellmProtocol,
|
|
933
|
+
retry: Retry.Retry,
|
|
934
|
+
}));
|
|
935
|
+
/** Get Key Spend Report Get spend for the calling api_key over a date range, with a per-model breakdown. Same row shape as `/global/spend/report?api_key=...`, but callable by any key: non-admin callers are always scoped to their own api_key, while proxy admins may pass `?api_key=` to view any key. */
|
|
936
|
+
export const getKeySpendReportKeySpendReportGet = /*@__PURE__*/ API.make(() => ({
|
|
937
|
+
input: GetKeySpendReportKeySpendReportGetRequest,
|
|
938
|
+
output: GetKeySpendReportKeySpendReportGetResponse,
|
|
939
|
+
errors: [UnprocessableEntity],
|
|
940
|
+
protocol: LitellmProtocol,
|
|
941
|
+
retry: Retry.Retry,
|
|
942
|
+
}));
|
|
943
|
+
/** Get Organization Spend Report Get spend for an organization over a date range, grouped by api_key with a per-model and per-team breakdown. Covers spend logged against the organization directly and against any of its teams. Callable by proxy admins (any organization) and org admins (their own organizations). Defaults to the calling key's organization_id when `?organization_id=` is omitted. */
|
|
944
|
+
export const getOrganizationSpendReportOrganizationSpendReportGet = /*@__PURE__*/ API.make(() => ({
|
|
945
|
+
input: GetOrganizationSpendReportOrganizationSpendReportGetRequest,
|
|
946
|
+
output: GetOrganizationSpendReportOrganizationSpendReportGetResponse,
|
|
947
|
+
errors: [UnprocessableEntity],
|
|
948
|
+
protocol: LitellmProtocol,
|
|
949
|
+
retry: Retry.Retry,
|
|
950
|
+
}));
|
|
951
|
+
/** Spend Key Fn View keys created, ordered by spend. - Admin callers (PROXY_ADMIN / PROXY_ADMIN_VIEW_ONLY) see every key in the database. - All other callers (INTERNAL_USER / INTERNAL_USER_VIEW_ONLY, etc.) are scoped to keys they own (``user_id == caller``). A caller with no ``user_id`` has no scope and receives an empty list rather than the full table. Example Request: ``` curl -X GET "http://0.0.0.0:8000/spend/keys" -H "Authorization: Bearer sk-1234" ``` */
|
|
952
|
+
export const getSpendKeyFnSpendKey = /*@__PURE__*/ API.make(() => ({
|
|
953
|
+
input: GetSpendKeyFnSpendKeyRequest,
|
|
954
|
+
output: GetSpendKeyFnSpendKeyResponse,
|
|
955
|
+
errors: [],
|
|
956
|
+
protocol: LitellmProtocol,
|
|
957
|
+
retry: Retry.Retry,
|
|
958
|
+
}));
|
|
959
|
+
/** Spend User Fn View users created, ordered by spend. - Admin callers (PROXY_ADMIN / PROXY_ADMIN_VIEW_ONLY) see every user, or a specific user when ``user_id`` is supplied. - All other callers may only read their own row. If they supply a ``user_id`` query parameter that does not match their authenticated ``user_id`` the request is rejected with HTTP 403; supplying their own id (or none at all) returns just their row. A caller with no ``user_id`` on their key has no scope and receives an empty list rather than the full table. Example Request: ``` curl -X GET "http://0.0.0.0:8000/spend/users" -H "Authorization: Bearer sk-1234" ``` View User Table row for user_id ``` curl -X GET "http://0.0.0.0:8000/spend/users?user_id=1234" -H "Authorization: Bearer sk-1234" ``` */
|
|
960
|
+
export const getSpendUserFnSpendUser = /*@__PURE__*/ API.make(() => ({
|
|
961
|
+
input: GetSpendUserFnSpendUserRequest,
|
|
962
|
+
output: GetSpendUserFnSpendUserResponse,
|
|
963
|
+
errors: [UnprocessableEntity],
|
|
964
|
+
protocol: LitellmProtocol,
|
|
965
|
+
retry: Retry.Retry,
|
|
966
|
+
}));
|
|
967
|
+
/** Get Team Spend Report Get spend for the calling key's team over a date range, grouped by api_key with a per-model breakdown. Callable by any key that belongs to a team: non-admin callers are always scoped to their key's team_id, while proxy admins may pass `?team_id=` to view any team. */
|
|
968
|
+
export const getTeamSpendReportTeamSpendReportGet = /*@__PURE__*/ API.make(() => ({
|
|
969
|
+
input: GetTeamSpendReportTeamSpendReportGetRequest,
|
|
970
|
+
output: GetTeamSpendReportTeamSpendReportGetResponse,
|
|
971
|
+
errors: [UnprocessableEntity],
|
|
972
|
+
protocol: LitellmProtocol,
|
|
973
|
+
retry: Retry.Retry,
|
|
974
|
+
}));
|
|
975
|
+
/** Ui View Request Response For Request Id View request / response for a specific request_id - goes through all callbacks, checks if any of them have a @property -> has_request_response_payload - if so, it will return the request and response payload */
|
|
976
|
+
export const getUiViewRequestResponseForRequestIdSpendLogsUiRequestId = /*@__PURE__*/ API.make(() => ({
|
|
977
|
+
input: GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest,
|
|
978
|
+
output: GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse,
|
|
979
|
+
errors: [UnprocessableEntity],
|
|
980
|
+
protocol: LitellmProtocol,
|
|
981
|
+
retry: Retry.Retry,
|
|
982
|
+
}));
|
|
983
|
+
/** Ui View Session Spend Logs Get paginated spend logs for a particular session. Returns: { "data": List[LiteLLM_SpendLogs], "total": int, "page": int, "page_size": int, "total_pages": int, } */
|
|
984
|
+
export const getUiViewSessionSpendLogsSpendLogsSessionUi = /*@__PURE__*/ API.make(() => ({
|
|
985
|
+
input: GetUiViewSessionSpendLogsSpendLogsSessionUiRequest,
|
|
986
|
+
output: GetUiViewSessionSpendLogsSpendLogsSessionUiResponse,
|
|
987
|
+
errors: [UnprocessableEntity],
|
|
988
|
+
protocol: LitellmProtocol,
|
|
989
|
+
retry: Retry.Retry,
|
|
990
|
+
}));
|
|
991
|
+
/** Ui View Spend Logs View spend logs with pagination support. Available at both `/spend/logs/v2` (public API) and `/spend/logs/ui` (internal UI). Returns paginated response with data, total, page, page_size, and total_pages. Example: ``` curl -X GET "http://0.0.0.0:8000/spend/logs/v2?start_date=2025-11-25%2000:00:00&end_date=2025-11-26%2023:59:59&page=1&page_size=50" -H "Authorization: Bearer sk-1234" ``` */
|
|
992
|
+
export const getUiViewSpendLogsSpendLogsUi = /*@__PURE__*/ API.make(() => ({
|
|
993
|
+
input: GetUiViewSpendLogsSpendLogsUiRequest,
|
|
994
|
+
output: GetUiViewSpendLogsSpendLogsUiResponse,
|
|
995
|
+
errors: [UnprocessableEntity],
|
|
996
|
+
protocol: LitellmProtocol,
|
|
997
|
+
retry: Retry.Retry,
|
|
998
|
+
}));
|
|
999
|
+
/** Ui View Spend Logs View spend logs with pagination support. Available at both `/spend/logs/v2` (public API) and `/spend/logs/ui` (internal UI). Returns paginated response with data, total, page, page_size, and total_pages. Example: ``` curl -X GET "http://0.0.0.0:8000/spend/logs/v2?start_date=2025-11-25%2000:00:00&end_date=2025-11-26%2023:59:59&page=1&page_size=50" -H "Authorization: Bearer sk-1234" ``` */
|
|
1000
|
+
export const getUiViewSpendLogsSpendLogsV2 = /*@__PURE__*/ API.make(() => ({
|
|
1001
|
+
input: GetUiViewSpendLogsSpendLogsV2Request,
|
|
1002
|
+
output: GetUiViewSpendLogsSpendLogsV2Response,
|
|
1003
|
+
errors: [UnprocessableEntity],
|
|
1004
|
+
protocol: LitellmProtocol,
|
|
1005
|
+
retry: Retry.Retry,
|
|
1006
|
+
}));
|
|
1007
|
+
/** Get User Daily Activity Aggregated Aggregated analytics for a user's daily activity without pagination. Returns the same response shape as the paginated endpoint with page metadata set to single-page. */
|
|
1008
|
+
export const getUserDailyActivityAggregatedUserDailyActivityAggregatedGet = /*@__PURE__*/ API.make(() => ({
|
|
1009
|
+
input: GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest,
|
|
1010
|
+
output: SpendAnalyticsPaginatedResponse,
|
|
1011
|
+
errors: [UnprocessableEntity],
|
|
1012
|
+
protocol: LitellmProtocol,
|
|
1013
|
+
retry: Retry.Retry,
|
|
1014
|
+
}));
|
|
1015
|
+
/** Get User Daily Activity [BETA] This is a beta endpoint. It will change. Meant to optimize querying spend data for analytics for a user. Returns: (by date) - spend - prompt_tokens - completion_tokens - cache_read_input_tokens - cache_creation_input_tokens - total_tokens - api_requests - breakdown by model, api_key, provider */
|
|
1016
|
+
export const getUserDailyActivityUserDailyActivityGet = /*@__PURE__*/ API.make(() => ({
|
|
1017
|
+
input: GetUserDailyActivityUserDailyActivityGetRequest,
|
|
1018
|
+
output: SpendAnalyticsPaginatedResponse,
|
|
1019
|
+
errors: [UnprocessableEntity],
|
|
1020
|
+
protocol: LitellmProtocol,
|
|
1021
|
+
retry: Retry.Retry,
|
|
1022
|
+
}));
|
|
1023
|
+
/** Get User Spend Report Get spend for the calling user over a date range, grouped by api_key with a per-model breakdown. Same row shape as `/global/spend/report?internal_user_id=...`, but callable by any key with a user: non-admin callers are always scoped to their own user_id, while proxy admins may pass `?internal_user_id=` to view any user. */
|
|
1024
|
+
export const getUserSpendReportUserSpendReportGet = /*@__PURE__*/ API.make(() => ({
|
|
1025
|
+
input: GetUserSpendReportUserSpendReportGetRequest,
|
|
1026
|
+
output: GetUserSpendReportUserSpendReportGetResponse,
|
|
1027
|
+
errors: [UnprocessableEntity],
|
|
1028
|
+
protocol: LitellmProtocol,
|
|
1029
|
+
retry: Retry.Retry,
|
|
1030
|
+
}));
|
|
1031
|
+
/** View Spend Logs [DEPRECATED] This endpoint is not paginated and can cause performance issues. Please use `/spend/logs/v2` instead for paginated access to spend logs. Row results are capped at 10,000 most recent entries per response. View all spend logs, if request_id is provided, only logs for that request_id will be returned When start_date and end_date are provided: - summarize=true (default): Returns aggregated spend data grouped by date (maintains backward compatibility) - summarize=false: Returns filtered individual log entries within the date range Example Request for all logs ``` curl -X GET "http://0.0.0.0:8000/spend/logs" -H "Authorization: Bearer sk-1234" ``` Example Request for specific request_id ``` curl -X GET "http://0.0.0.0:8000/spend/logs?request_id=chatcmpl-6dcb2540-d3d7-4e49-bb27-291f863f112e" -H "Authorization: Bearer sk-1234" ``` Example Request for specific api_key ``` curl -X GET "http://0.0.0.0:8000/spend/logs?api_key=sk-test-example-key-123" -H "Authorization: Bearer sk-1234" ``` Example Request for specific user_id ``` curl -X GET "http://0.0.0.0:8000/spend/logs?user_id=ishaan@berri.ai" -H "Authorization: Bearer sk-1234" ``` Example Request for date range with individual logs (unsummarized) ``` curl -X GET "http://0.0.0.0:8000/spend/logs?start_date=2024-01-01&end_date=2024-01-02&summarize=false" -H "Authorization: Bearer sk-1234" ``` */
|
|
1032
|
+
export const getViewSpendLogsSpendLog = /*@__PURE__*/ API.make(() => ({
|
|
1033
|
+
input: GetViewSpendLogsSpendLogRequest,
|
|
1034
|
+
output: GetViewSpendLogsSpendLogResponse,
|
|
1035
|
+
errors: [UnprocessableEntity],
|
|
1036
|
+
protocol: LitellmProtocol,
|
|
1037
|
+
retry: Retry.Retry,
|
|
1038
|
+
}));
|
|
1039
|
+
/** View Spend Tags LiteLLM Enterprise - View Spend Per Request Tag Example Request: ``` curl -X GET "http://0.0.0.0:8000/spend/tags" -H "Authorization: Bearer sk-1234" ``` Spend with Start Date and End Date ``` curl -X GET "http://0.0.0.0:8000/spend/tags?start_date=2022-01-01&end_date=2022-02-01" -H "Authorization: Bearer sk-1234" ``` */
|
|
1040
|
+
export const getViewSpendTagsSpendTag = /*@__PURE__*/ API.make(() => ({
|
|
1041
|
+
input: GetViewSpendTagsSpendTagRequest,
|
|
1042
|
+
output: GetViewSpendTagsSpendTagResponse,
|
|
1043
|
+
errors: [UnprocessableEntity],
|
|
1044
|
+
protocol: LitellmProtocol,
|
|
1045
|
+
retry: Retry.Retry,
|
|
1046
|
+
}));
|
|
1047
|
+
/** Global Get All Tag Names */
|
|
1048
|
+
export const globalGetAllTagNamesGlobalSpendAllTagNamesGet = /*@__PURE__*/ API.make(() => ({
|
|
1049
|
+
input: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest,
|
|
1050
|
+
output: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse,
|
|
1051
|
+
errors: [],
|
|
1052
|
+
protocol: LitellmProtocol,
|
|
1053
|
+
retry: Retry.Retry,
|
|
1054
|
+
}));
|
|
1055
|
+
/** Global Spend Refresh ADMIN ONLY / MASTER KEY Only Endpoint Globally refresh spend MonthlyGlobalSpend view */
|
|
1056
|
+
export const globalSpendRefreshGlobalSpendRefreshPost = /*@__PURE__*/ API.make(() => ({
|
|
1057
|
+
input: GlobalSpendRefreshGlobalSpendRefreshPostRequest,
|
|
1058
|
+
output: GlobalSpendRefreshGlobalSpendRefreshPostResponse,
|
|
1059
|
+
errors: [],
|
|
1060
|
+
protocol: LitellmProtocol,
|
|
1061
|
+
retry: Retry.Retry,
|
|
1062
|
+
}));
|
|
1063
|
+
/** Global Spend Reset ADMIN ONLY / MASTER KEY Only Endpoint Globally reset spend for All API Keys and Teams, maintain LiteLLM_SpendLogs 1. LiteLLM_SpendLogs will maintain the logs on spend, no data gets deleted from there 2. LiteLLM_VerificationTokens spend will be set = 0 3. LiteLLM_TeamTable spend will be set = 0 */
|
|
1064
|
+
export const globalSpendResetGlobalSpendResetPost = /*@__PURE__*/ API.make(() => ({
|
|
1065
|
+
input: GlobalSpendResetGlobalSpendResetPostRequest,
|
|
1066
|
+
output: GlobalSpendResetGlobalSpendResetPostResponse,
|
|
1067
|
+
errors: [],
|
|
1068
|
+
protocol: LitellmProtocol,
|
|
1069
|
+
retry: Retry.Retry,
|
|
1070
|
+
}));
|
|
1071
|
+
/** List Spend Log End Users The distinct end users appearing in spend logs over a time window, for the logs page filter dropdown. Scoped like `/spend/logs/ui`: a proxy admin sees every end user in the window, anyone else sees only end users from their own requests or from teams they administer (or hold the `/spend/logs` permission on). The window is required and the inner scan is capped at SPEND_LOGS_FACET_SCAN_CAP rows, so the query cannot degrade into a full-table scan the way `/global/all_end_users` does. Example curl: ``` curl --location --globoff 'http://0.0.0.0:4000/management/v1/spend_logs/end_users?filter[startTime][gte]=2026-07-23T00:00:00Z&filter[startTime][lte]=2026-07-24T00:00:00Z&page_size=50&q=acme' --header 'Authorization: Bearer sk-1234' ``` */
|
|
1072
|
+
export const listSpendLogEndUsersManagementV1SpendLogsEndUsersGet = /*@__PURE__*/ API.make(() => ({
|
|
1073
|
+
input: ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest,
|
|
1074
|
+
output: FacetListResponse,
|
|
1075
|
+
errors: [UnprocessableEntity],
|
|
1076
|
+
protocol: LitellmProtocol,
|
|
1077
|
+
retry: Retry.Retry,
|
|
1078
|
+
}));
|
|
1079
|
+
/** List Spend Log Users The distinct internal users appearing in spend logs the caller can read. */
|
|
1080
|
+
export const listSpendLogUsersManagementV1SpendLogsUsersGet = /*@__PURE__*/ API.make(() => ({
|
|
1081
|
+
input: ListSpendLogUsersManagementV1SpendLogsUsersGetRequest,
|
|
1082
|
+
output: FacetListResponse,
|
|
1083
|
+
errors: [UnprocessableEntity],
|
|
1084
|
+
protocol: LitellmProtocol,
|
|
1085
|
+
retry: Retry.Retry,
|
|
1086
|
+
}));
|
|
1087
|
+
/** Calculate Spend Accepts all the params of completion_cost. Calculate spend **before** making call: Note: If you see a spend of $0.0 you need to set custom_pricing for your model: https://docs.litellm.ai/docs/proxy/custom_pricing ``` curl --location 'http://localhost:4000/spend/calculate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "model": "anthropic.claude-v2", "messages": [{"role": "user", "content": "Hey, how'''s it going?"}] }' ``` Calculate spend **after** making call: ``` curl --location 'http://localhost:4000/spend/calculate' --header 'Authorization: Bearer sk-1234' --header 'Content-Type: application/json' --data '{ "completion_response": { "id": "chatcmpl-123", "object": "chat.completion", "created": 1677652288, "model": "gpt-3.5-turbo-0125", "system_fingerprint": "fp_44709d6fcb", "choices": [{ "index": 0, "message": { "role": "assistant", "content": "Hello there, how may I assist you today?" }, "logprobs": null, "finish_reason": "stop" }] "usage": { "prompt_tokens": 9, "completion_tokens": 12, "total_tokens": 21 } } }' ``` */
|
|
1088
|
+
export const postCalculateSpendSpendCalculate = /*@__PURE__*/ API.make(() => ({
|
|
1089
|
+
input: PostCalculateSpendSpendCalculateRequest,
|
|
1090
|
+
output: PostCalculateSpendSpendCalculateResponse,
|
|
1091
|
+
errors: [UnprocessableEntity],
|
|
1092
|
+
protocol: LitellmProtocol,
|
|
1093
|
+
retry: Retry.Retry,
|
|
1094
|
+
}));
|
|
1095
|
+
/** Global Spend End Users [BETA] This is a beta endpoint. It will change. Use this to get the top 'n' keys with the highest spend, ordered by spend. */
|
|
1096
|
+
export const postGlobalSpendEndUsersGlobalSpendEndUser = /*@__PURE__*/ API.make(() => ({
|
|
1097
|
+
input: PostGlobalSpendEndUsersGlobalSpendEndUserRequest,
|
|
1098
|
+
output: PostGlobalSpendEndUsersGlobalSpendEndUserResponse,
|
|
1099
|
+
errors: [UnprocessableEntity],
|
|
1100
|
+
protocol: LitellmProtocol,
|
|
1101
|
+
retry: Retry.Retry,
|
|
1102
|
+
}));
|
|
1103
|
+
//# sourceMappingURL=budget_spend_tracking.js.map
|