@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,2670 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as Redacted from "effect/Redacted";
|
|
4
|
+
import * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import * as C from "@distilled.cloud/core/category";
|
|
6
|
+
import * as T from "../traits.ts";
|
|
7
|
+
import {
|
|
8
|
+
LitellmProtocol,
|
|
9
|
+
type LitellmOpError,
|
|
10
|
+
type LitellmOpContext,
|
|
11
|
+
} from "../protocol.ts";
|
|
12
|
+
import * as Retry from "../retry.ts";
|
|
13
|
+
|
|
14
|
+
export type { LitellmOpError, LitellmOpContext };
|
|
15
|
+
|
|
16
|
+
export class UnprocessableEntity
|
|
17
|
+
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
18
|
+
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
19
|
+
code: S.Number,
|
|
20
|
+
message: S.String,
|
|
21
|
+
}).pipe(C.withBadRequestError),
|
|
22
|
+
[{ status: 422 }],
|
|
23
|
+
) {}
|
|
24
|
+
|
|
25
|
+
export interface AddAllowedIpAddAllowedIpPostRequest {
|
|
26
|
+
ip: string;
|
|
27
|
+
}
|
|
28
|
+
export const AddAllowedIpAddAllowedIpPostRequest = /*@__PURE__*/ S.suspend(() =>
|
|
29
|
+
S.Struct({
|
|
30
|
+
ip: S.String,
|
|
31
|
+
}).pipe(T.Http({ method: "POST", uri: "/add/allowed_ip", code: 200 })),
|
|
32
|
+
).annotate({
|
|
33
|
+
identifier: "AddAllowedIpAddAllowedIpPostRequest",
|
|
34
|
+
}) as any as S.Schema<AddAllowedIpAddAllowedIpPostRequest>;
|
|
35
|
+
|
|
36
|
+
export interface AddAllowedIpAddAllowedIpPostResponse {
|
|
37
|
+
body: unknown;
|
|
38
|
+
}
|
|
39
|
+
export const AddAllowedIpAddAllowedIpPostResponse = /*@__PURE__*/ S.suspend(
|
|
40
|
+
() =>
|
|
41
|
+
S.Struct({
|
|
42
|
+
body: S.Unknown,
|
|
43
|
+
}),
|
|
44
|
+
).annotate({
|
|
45
|
+
identifier: "AddAllowedIpAddAllowedIpPostResponse",
|
|
46
|
+
}) as any as S.Schema<AddAllowedIpAddAllowedIpPostResponse>;
|
|
47
|
+
|
|
48
|
+
export interface DeleteAllowedIpDeleteAllowedIpPostRequest {
|
|
49
|
+
ip: string;
|
|
50
|
+
}
|
|
51
|
+
export const DeleteAllowedIpDeleteAllowedIpPostRequest =
|
|
52
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
53
|
+
S.Struct({
|
|
54
|
+
ip: S.String,
|
|
55
|
+
}).pipe(T.Http({ method: "POST", uri: "/delete/allowed_ip", code: 200 })),
|
|
56
|
+
).annotate({
|
|
57
|
+
identifier: "DeleteAllowedIpDeleteAllowedIpPostRequest",
|
|
58
|
+
}) as any as S.Schema<DeleteAllowedIpDeleteAllowedIpPostRequest>;
|
|
59
|
+
|
|
60
|
+
export interface DeleteAllowedIpDeleteAllowedIpPostResponse {
|
|
61
|
+
body: unknown;
|
|
62
|
+
}
|
|
63
|
+
export const DeleteAllowedIpDeleteAllowedIpPostResponse =
|
|
64
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
65
|
+
S.Struct({
|
|
66
|
+
body: S.Unknown,
|
|
67
|
+
}),
|
|
68
|
+
).annotate({
|
|
69
|
+
identifier: "DeleteAllowedIpDeleteAllowedIpPostResponse",
|
|
70
|
+
}) as any as S.Schema<DeleteAllowedIpDeleteAllowedIpPostResponse>;
|
|
71
|
+
|
|
72
|
+
export interface GetAllowedIpsGetAllowedIpsGetRequest {}
|
|
73
|
+
export const GetAllowedIpsGetAllowedIpsGetRequest = /*@__PURE__*/ S.suspend(
|
|
74
|
+
() =>
|
|
75
|
+
S.Struct({}).pipe(
|
|
76
|
+
T.Http({ method: "GET", uri: "/get/allowed_ips", code: 200 }),
|
|
77
|
+
),
|
|
78
|
+
).annotate({
|
|
79
|
+
identifier: "GetAllowedIpsGetAllowedIpsGetRequest",
|
|
80
|
+
}) as any as S.Schema<GetAllowedIpsGetAllowedIpsGetRequest>;
|
|
81
|
+
|
|
82
|
+
export interface GetAllowedIpsGetAllowedIpsGetResponse {
|
|
83
|
+
body: unknown;
|
|
84
|
+
}
|
|
85
|
+
export const GetAllowedIpsGetAllowedIpsGetResponse = /*@__PURE__*/ S.suspend(
|
|
86
|
+
() =>
|
|
87
|
+
S.Struct({
|
|
88
|
+
body: S.Unknown,
|
|
89
|
+
}),
|
|
90
|
+
).annotate({
|
|
91
|
+
identifier: "GetAllowedIpsGetAllowedIpsGetResponse",
|
|
92
|
+
}) as any as S.Schema<GetAllowedIpsGetAllowedIpsGetResponse>;
|
|
93
|
+
|
|
94
|
+
export interface GetGatewayDailyActivityGatewayDailyActivityGetRequest {
|
|
95
|
+
/** Start date in YYYY-MM-DD format */
|
|
96
|
+
start_date?: string;
|
|
97
|
+
/** End date in YYYY-MM-DD format */
|
|
98
|
+
end_date?: string;
|
|
99
|
+
}
|
|
100
|
+
export const GetGatewayDailyActivityGatewayDailyActivityGetRequest =
|
|
101
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
102
|
+
S.Struct({
|
|
103
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
104
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
105
|
+
}).pipe(
|
|
106
|
+
T.Http({ method: "GET", uri: "/gateway/daily/activity", code: 200 }),
|
|
107
|
+
),
|
|
108
|
+
).annotate({
|
|
109
|
+
identifier: "GetGatewayDailyActivityGatewayDailyActivityGetRequest",
|
|
110
|
+
}) as any as S.Schema<GetGatewayDailyActivityGatewayDailyActivityGetRequest>;
|
|
111
|
+
|
|
112
|
+
export interface GatewayRequestDailyEntry {
|
|
113
|
+
date: string;
|
|
114
|
+
failed_requests?: number;
|
|
115
|
+
successful_requests?: number;
|
|
116
|
+
}
|
|
117
|
+
export const GatewayRequestDailyEntry = /*@__PURE__*/ S.suspend(() =>
|
|
118
|
+
S.Struct({
|
|
119
|
+
date: S.String,
|
|
120
|
+
failed_requests: S.optional(S.Number),
|
|
121
|
+
successful_requests: S.optional(S.Number),
|
|
122
|
+
}),
|
|
123
|
+
).annotate({
|
|
124
|
+
identifier: "GatewayRequestDailyEntry",
|
|
125
|
+
}) as any as S.Schema<GatewayRequestDailyEntry>;
|
|
126
|
+
|
|
127
|
+
export type GatewayRequestActivityResponseByDateList =
|
|
128
|
+
Array<GatewayRequestDailyEntry>;
|
|
129
|
+
export const GatewayRequestActivityResponseByDateList = /*@__PURE__*/ S.Array(
|
|
130
|
+
GatewayRequestDailyEntry,
|
|
131
|
+
) as any as S.Schema<GatewayRequestActivityResponseByDateList>;
|
|
132
|
+
|
|
133
|
+
export interface GatewayRequestBreakdownEntry {
|
|
134
|
+
category: string;
|
|
135
|
+
failed_requests?: number;
|
|
136
|
+
route: string;
|
|
137
|
+
successful_requests?: number;
|
|
138
|
+
}
|
|
139
|
+
export const GatewayRequestBreakdownEntry = /*@__PURE__*/ S.suspend(() =>
|
|
140
|
+
S.Struct({
|
|
141
|
+
category: S.String,
|
|
142
|
+
failed_requests: S.optional(S.Number),
|
|
143
|
+
route: S.String,
|
|
144
|
+
successful_requests: S.optional(S.Number),
|
|
145
|
+
}),
|
|
146
|
+
).annotate({
|
|
147
|
+
identifier: "GatewayRequestBreakdownEntry",
|
|
148
|
+
}) as any as S.Schema<GatewayRequestBreakdownEntry>;
|
|
149
|
+
|
|
150
|
+
export type GatewayRequestActivityResponseByRouteList =
|
|
151
|
+
Array<GatewayRequestBreakdownEntry>;
|
|
152
|
+
export const GatewayRequestActivityResponseByRouteList = /*@__PURE__*/ S.Array(
|
|
153
|
+
GatewayRequestBreakdownEntry,
|
|
154
|
+
) as any as S.Schema<GatewayRequestActivityResponseByRouteList>;
|
|
155
|
+
|
|
156
|
+
/** Response for GET /gateway/daily/activity. */
|
|
157
|
+
export interface GatewayRequestActivityResponse {
|
|
158
|
+
by_date?: GatewayRequestActivityResponseByDateList;
|
|
159
|
+
by_route?: GatewayRequestActivityResponseByRouteList;
|
|
160
|
+
total_failed_requests?: number;
|
|
161
|
+
total_successful_requests?: number;
|
|
162
|
+
}
|
|
163
|
+
export const GatewayRequestActivityResponse = /*@__PURE__*/ S.suspend(() =>
|
|
164
|
+
S.Struct({
|
|
165
|
+
by_date: S.optional(GatewayRequestActivityResponseByDateList),
|
|
166
|
+
by_route: S.optional(GatewayRequestActivityResponseByRouteList),
|
|
167
|
+
total_failed_requests: S.optional(S.Number),
|
|
168
|
+
total_successful_requests: S.optional(S.Number),
|
|
169
|
+
}),
|
|
170
|
+
).annotate({
|
|
171
|
+
identifier: "GatewayRequestActivityResponse",
|
|
172
|
+
}) as any as S.Schema<GatewayRequestActivityResponse>;
|
|
173
|
+
|
|
174
|
+
export interface GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest {
|
|
175
|
+
/** Filter by model group */
|
|
176
|
+
model_group: string;
|
|
177
|
+
/** Time from which to start viewing spend */
|
|
178
|
+
start_date?: string;
|
|
179
|
+
/** Time till which to view spend */
|
|
180
|
+
end_date?: string;
|
|
181
|
+
}
|
|
182
|
+
export const GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest =
|
|
183
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
184
|
+
S.Struct({
|
|
185
|
+
model_group: S.String.pipe(T.Query()),
|
|
186
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
187
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
188
|
+
}).pipe(
|
|
189
|
+
T.Http({ method: "GET", uri: "/global/activity/exceptions", code: 200 }),
|
|
190
|
+
),
|
|
191
|
+
).annotate({
|
|
192
|
+
identifier: "GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest",
|
|
193
|
+
}) as any as S.Schema<GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest>;
|
|
194
|
+
|
|
195
|
+
export type LiteLLMSpendLogsMessagesCase1List = Array<unknown>;
|
|
196
|
+
export const LiteLLMSpendLogsMessagesCase1List = /*@__PURE__*/ S.Array(
|
|
197
|
+
S.Unknown,
|
|
198
|
+
) as any as S.Schema<LiteLLMSpendLogsMessagesCase1List>;
|
|
199
|
+
|
|
200
|
+
export type LiteLLMSpendLogsMessagesCase2Map = {
|
|
201
|
+
[key: string]: unknown | undefined;
|
|
202
|
+
};
|
|
203
|
+
export const LiteLLMSpendLogsMessagesCase2Map = /*@__PURE__*/ S.Record(
|
|
204
|
+
S.String,
|
|
205
|
+
S.Unknown,
|
|
206
|
+
) as any as S.Schema<LiteLLMSpendLogsMessagesCase2Map>;
|
|
207
|
+
|
|
208
|
+
export type LiteLLMSpendLogsMessages =
|
|
209
|
+
| string
|
|
210
|
+
| LiteLLMSpendLogsMessagesCase1List
|
|
211
|
+
| LiteLLMSpendLogsMessagesCase2Map;
|
|
212
|
+
export const LiteLLMSpendLogsMessages =
|
|
213
|
+
S.Unknown as any as S.Schema<LiteLLMSpendLogsMessages>;
|
|
214
|
+
|
|
215
|
+
export type LiteLLMSpendLogsResponseCase1List = Array<unknown>;
|
|
216
|
+
export const LiteLLMSpendLogsResponseCase1List = /*@__PURE__*/ S.Array(
|
|
217
|
+
S.Unknown,
|
|
218
|
+
) as any as S.Schema<LiteLLMSpendLogsResponseCase1List>;
|
|
219
|
+
|
|
220
|
+
export type LiteLLMSpendLogsResponseCase2Map = {
|
|
221
|
+
[key: string]: unknown | undefined;
|
|
222
|
+
};
|
|
223
|
+
export const LiteLLMSpendLogsResponseCase2Map = /*@__PURE__*/ S.Record(
|
|
224
|
+
S.String,
|
|
225
|
+
S.Unknown,
|
|
226
|
+
) as any as S.Schema<LiteLLMSpendLogsResponseCase2Map>;
|
|
227
|
+
|
|
228
|
+
export type LiteLLMSpendLogsResponse =
|
|
229
|
+
| string
|
|
230
|
+
| LiteLLMSpendLogsResponseCase1List
|
|
231
|
+
| LiteLLMSpendLogsResponseCase2Map;
|
|
232
|
+
export const LiteLLMSpendLogsResponse =
|
|
233
|
+
S.Unknown as any as S.Schema<LiteLLMSpendLogsResponse>;
|
|
234
|
+
|
|
235
|
+
export interface LiteLLMSpendLogs {
|
|
236
|
+
api_base?: string | null;
|
|
237
|
+
api_key: string | Redacted.Redacted<string>;
|
|
238
|
+
cache_hit?: string | null;
|
|
239
|
+
cache_key?: string | null;
|
|
240
|
+
call_type: string;
|
|
241
|
+
completion_tokens?: number | null;
|
|
242
|
+
created_at?: string | null;
|
|
243
|
+
endTime: string | null;
|
|
244
|
+
messages: LiteLLMSpendLogsMessages | null;
|
|
245
|
+
metadata?: unknown | null;
|
|
246
|
+
model?: string | null;
|
|
247
|
+
prompt_tokens?: number | null;
|
|
248
|
+
request_id: string;
|
|
249
|
+
request_tags?: unknown | null;
|
|
250
|
+
requester_ip_address?: string | null;
|
|
251
|
+
response: LiteLLMSpendLogsResponse | null;
|
|
252
|
+
spend?: number | null;
|
|
253
|
+
startTime: string | null;
|
|
254
|
+
total_tokens?: number | null;
|
|
255
|
+
updated_at?: string | null;
|
|
256
|
+
user?: string | null;
|
|
257
|
+
}
|
|
258
|
+
export const LiteLLMSpendLogs = /*@__PURE__*/ S.suspend(() =>
|
|
259
|
+
S.Struct({
|
|
260
|
+
api_base: S.optional(S.NullOr(S.String)),
|
|
261
|
+
api_key: S.String.pipe(T.SensitiveValue({})),
|
|
262
|
+
cache_hit: S.optional(S.NullOr(S.String)),
|
|
263
|
+
cache_key: S.optional(S.NullOr(S.String)),
|
|
264
|
+
call_type: S.String,
|
|
265
|
+
completion_tokens: S.optional(S.NullOr(S.Number)),
|
|
266
|
+
created_at: S.optional(S.NullOr(S.String)),
|
|
267
|
+
endTime: S.NullOr(S.String),
|
|
268
|
+
messages: S.NullOr(LiteLLMSpendLogsMessages),
|
|
269
|
+
metadata: S.optional(S.NullOr(S.Unknown)),
|
|
270
|
+
model: S.optional(S.NullOr(S.String)),
|
|
271
|
+
prompt_tokens: S.optional(S.NullOr(S.Number)),
|
|
272
|
+
request_id: S.String,
|
|
273
|
+
request_tags: S.optional(S.NullOr(S.Unknown)),
|
|
274
|
+
requester_ip_address: S.optional(S.NullOr(S.String)),
|
|
275
|
+
response: S.NullOr(LiteLLMSpendLogsResponse),
|
|
276
|
+
spend: S.optional(S.NullOr(S.Number)),
|
|
277
|
+
startTime: S.NullOr(S.String),
|
|
278
|
+
total_tokens: S.optional(S.NullOr(S.Number)),
|
|
279
|
+
updated_at: S.optional(S.NullOr(S.String)),
|
|
280
|
+
user: S.optional(S.NullOr(S.String)),
|
|
281
|
+
}),
|
|
282
|
+
).annotate({
|
|
283
|
+
identifier: "LiteLLMSpendLogs",
|
|
284
|
+
}) as any as S.Schema<LiteLLMSpendLogs>;
|
|
285
|
+
|
|
286
|
+
export type GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList =
|
|
287
|
+
Array<LiteLLMSpendLogs>;
|
|
288
|
+
export const GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList =
|
|
289
|
+
/*@__PURE__*/ S.Array(
|
|
290
|
+
LiteLLMSpendLogs,
|
|
291
|
+
) as any as S.Schema<GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList>;
|
|
292
|
+
|
|
293
|
+
export interface GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse {
|
|
294
|
+
body: GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList;
|
|
295
|
+
}
|
|
296
|
+
export const GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse =
|
|
297
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
298
|
+
S.Struct({
|
|
299
|
+
body: GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponseBodyList,
|
|
300
|
+
}),
|
|
301
|
+
).annotate({
|
|
302
|
+
identifier:
|
|
303
|
+
"GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse",
|
|
304
|
+
}) as any as S.Schema<GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse>;
|
|
305
|
+
|
|
306
|
+
export interface GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest {
|
|
307
|
+
/** Filter by model group */
|
|
308
|
+
model_group: string;
|
|
309
|
+
/** Time from which to start viewing spend */
|
|
310
|
+
start_date?: string;
|
|
311
|
+
/** Time till which to view spend */
|
|
312
|
+
end_date?: string;
|
|
313
|
+
}
|
|
314
|
+
export const GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest =
|
|
315
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
316
|
+
S.Struct({
|
|
317
|
+
model_group: S.String.pipe(T.Query()),
|
|
318
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
319
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
320
|
+
}).pipe(
|
|
321
|
+
T.Http({
|
|
322
|
+
method: "GET",
|
|
323
|
+
uri: "/global/activity/exceptions/deployment",
|
|
324
|
+
code: 200,
|
|
325
|
+
}),
|
|
326
|
+
),
|
|
327
|
+
).annotate({
|
|
328
|
+
identifier:
|
|
329
|
+
"GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest",
|
|
330
|
+
}) as any as S.Schema<GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest>;
|
|
331
|
+
|
|
332
|
+
export type GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList =
|
|
333
|
+
Array<LiteLLMSpendLogs>;
|
|
334
|
+
export const GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList =
|
|
335
|
+
/*@__PURE__*/ S.Array(
|
|
336
|
+
LiteLLMSpendLogs,
|
|
337
|
+
) as any as S.Schema<GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList>;
|
|
338
|
+
|
|
339
|
+
export interface GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse {
|
|
340
|
+
body: GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList;
|
|
341
|
+
}
|
|
342
|
+
export const GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse =
|
|
343
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
344
|
+
S.Struct({
|
|
345
|
+
body: GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponseBodyList,
|
|
346
|
+
}),
|
|
347
|
+
).annotate({
|
|
348
|
+
identifier:
|
|
349
|
+
"GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse",
|
|
350
|
+
}) as any as S.Schema<GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse>;
|
|
351
|
+
|
|
352
|
+
export type GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList =
|
|
353
|
+
Array<string>;
|
|
354
|
+
export const GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList =
|
|
355
|
+
/*@__PURE__*/ S.Array(
|
|
356
|
+
S.String,
|
|
357
|
+
) as any as S.Schema<GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList>;
|
|
358
|
+
|
|
359
|
+
export type GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList =
|
|
360
|
+
Array<string>;
|
|
361
|
+
export const GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList =
|
|
362
|
+
/*@__PURE__*/ S.Array(
|
|
363
|
+
S.String,
|
|
364
|
+
) as any as S.Schema<GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList>;
|
|
365
|
+
|
|
366
|
+
export interface GetGlobalActivityGlobalActivityCacheHitsGetRequest {
|
|
367
|
+
/** Time from which to start viewing spend */
|
|
368
|
+
start_date: string;
|
|
369
|
+
/** Time till which to view spend */
|
|
370
|
+
end_date: string;
|
|
371
|
+
/** Only include spend from these key aliases */
|
|
372
|
+
key_aliases?: GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList;
|
|
373
|
+
/** Only include spend for these models */
|
|
374
|
+
models?: GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList;
|
|
375
|
+
}
|
|
376
|
+
export const GetGlobalActivityGlobalActivityCacheHitsGetRequest =
|
|
377
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
378
|
+
S.Struct({
|
|
379
|
+
start_date: S.String.pipe(T.Query()),
|
|
380
|
+
end_date: S.String.pipe(T.Query()),
|
|
381
|
+
key_aliases: S.optional(
|
|
382
|
+
GetGlobalActivityGlobalActivityCacheHitsGetRequestKeyAliasesList.pipe(
|
|
383
|
+
T.Query(),
|
|
384
|
+
),
|
|
385
|
+
),
|
|
386
|
+
models: S.optional(
|
|
387
|
+
GetGlobalActivityGlobalActivityCacheHitsGetRequestModelsList.pipe(
|
|
388
|
+
T.Query(),
|
|
389
|
+
),
|
|
390
|
+
),
|
|
391
|
+
}).pipe(
|
|
392
|
+
T.Http({ method: "GET", uri: "/global/activity/cache_hits", code: 200 }),
|
|
393
|
+
),
|
|
394
|
+
).annotate({
|
|
395
|
+
identifier: "GetGlobalActivityGlobalActivityCacheHitsGetRequest",
|
|
396
|
+
}) as any as S.Schema<GetGlobalActivityGlobalActivityCacheHitsGetRequest>;
|
|
397
|
+
|
|
398
|
+
export interface CacheActivityErrorBucket {
|
|
399
|
+
call_type: string;
|
|
400
|
+
count: number;
|
|
401
|
+
error_class: string;
|
|
402
|
+
error_code: string;
|
|
403
|
+
}
|
|
404
|
+
export const CacheActivityErrorBucket = /*@__PURE__*/ S.suspend(() =>
|
|
405
|
+
S.Struct({
|
|
406
|
+
call_type: S.String,
|
|
407
|
+
count: S.Number,
|
|
408
|
+
error_class: S.String,
|
|
409
|
+
error_code: S.String,
|
|
410
|
+
}),
|
|
411
|
+
).annotate({
|
|
412
|
+
identifier: "CacheActivityErrorBucket",
|
|
413
|
+
}) as any as S.Schema<CacheActivityErrorBucket>;
|
|
414
|
+
|
|
415
|
+
export type CacheActivityResponseErrorBreakdownList =
|
|
416
|
+
Array<CacheActivityErrorBucket>;
|
|
417
|
+
export const CacheActivityResponseErrorBreakdownList = /*@__PURE__*/ S.Array(
|
|
418
|
+
CacheActivityErrorBucket,
|
|
419
|
+
) as any as S.Schema<CacheActivityResponseErrorBreakdownList>;
|
|
420
|
+
|
|
421
|
+
export type CacheActivityFilterOptionsKeyAliasesList = Array<string>;
|
|
422
|
+
export const CacheActivityFilterOptionsKeyAliasesList = /*@__PURE__*/ S.Array(
|
|
423
|
+
S.String,
|
|
424
|
+
) as any as S.Schema<CacheActivityFilterOptionsKeyAliasesList>;
|
|
425
|
+
|
|
426
|
+
export type CacheActivityFilterOptionsModelsList = Array<string>;
|
|
427
|
+
export const CacheActivityFilterOptionsModelsList = /*@__PURE__*/ S.Array(
|
|
428
|
+
S.String,
|
|
429
|
+
) as any as S.Schema<CacheActivityFilterOptionsModelsList>;
|
|
430
|
+
|
|
431
|
+
export interface CacheActivityFilterOptions {
|
|
432
|
+
key_aliases: CacheActivityFilterOptionsKeyAliasesList;
|
|
433
|
+
models: CacheActivityFilterOptionsModelsList;
|
|
434
|
+
}
|
|
435
|
+
export const CacheActivityFilterOptions = /*@__PURE__*/ S.suspend(() =>
|
|
436
|
+
S.Struct({
|
|
437
|
+
key_aliases: CacheActivityFilterOptionsKeyAliasesList,
|
|
438
|
+
models: CacheActivityFilterOptionsModelsList,
|
|
439
|
+
}),
|
|
440
|
+
).annotate({
|
|
441
|
+
identifier: "CacheActivityFilterOptions",
|
|
442
|
+
}) as any as S.Schema<CacheActivityFilterOptions>;
|
|
443
|
+
|
|
444
|
+
export interface CacheActivityGroup {
|
|
445
|
+
api_requests: number;
|
|
446
|
+
cache_hits: number;
|
|
447
|
+
cached_completion_tokens: number;
|
|
448
|
+
call_type: string;
|
|
449
|
+
failed_requests: number;
|
|
450
|
+
generated_completion_tokens: number;
|
|
451
|
+
}
|
|
452
|
+
export const CacheActivityGroup = /*@__PURE__*/ S.suspend(() =>
|
|
453
|
+
S.Struct({
|
|
454
|
+
api_requests: S.Number,
|
|
455
|
+
cache_hits: S.Number,
|
|
456
|
+
cached_completion_tokens: S.Number,
|
|
457
|
+
call_type: S.String,
|
|
458
|
+
failed_requests: S.Number,
|
|
459
|
+
generated_completion_tokens: S.Number,
|
|
460
|
+
}),
|
|
461
|
+
).annotate({
|
|
462
|
+
identifier: "CacheActivityGroup",
|
|
463
|
+
}) as any as S.Schema<CacheActivityGroup>;
|
|
464
|
+
|
|
465
|
+
export type CacheActivityResponseGroupsList = Array<CacheActivityGroup>;
|
|
466
|
+
export const CacheActivityResponseGroupsList = /*@__PURE__*/ S.Array(
|
|
467
|
+
CacheActivityGroup,
|
|
468
|
+
) as any as S.Schema<CacheActivityResponseGroupsList>;
|
|
469
|
+
|
|
470
|
+
export interface CacheActivityTotals {
|
|
471
|
+
api_requests: number;
|
|
472
|
+
cache_hit_ratio: number;
|
|
473
|
+
cache_hits: number;
|
|
474
|
+
cached_completion_tokens: number;
|
|
475
|
+
failed_requests: number;
|
|
476
|
+
}
|
|
477
|
+
export const CacheActivityTotals = /*@__PURE__*/ S.suspend(() =>
|
|
478
|
+
S.Struct({
|
|
479
|
+
api_requests: S.Number,
|
|
480
|
+
cache_hit_ratio: S.Number,
|
|
481
|
+
cache_hits: S.Number,
|
|
482
|
+
cached_completion_tokens: S.Number,
|
|
483
|
+
failed_requests: S.Number,
|
|
484
|
+
}),
|
|
485
|
+
).annotate({
|
|
486
|
+
identifier: "CacheActivityTotals",
|
|
487
|
+
}) as any as S.Schema<CacheActivityTotals>;
|
|
488
|
+
|
|
489
|
+
export interface CacheActivityResponse {
|
|
490
|
+
error_breakdown: CacheActivityResponseErrorBreakdownList;
|
|
491
|
+
filter_options: CacheActivityFilterOptions;
|
|
492
|
+
groups: CacheActivityResponseGroupsList;
|
|
493
|
+
totals: CacheActivityTotals;
|
|
494
|
+
}
|
|
495
|
+
export const CacheActivityResponse = /*@__PURE__*/ S.suspend(() =>
|
|
496
|
+
S.Struct({
|
|
497
|
+
error_breakdown: CacheActivityResponseErrorBreakdownList,
|
|
498
|
+
filter_options: CacheActivityFilterOptions,
|
|
499
|
+
groups: CacheActivityResponseGroupsList,
|
|
500
|
+
totals: CacheActivityTotals,
|
|
501
|
+
}),
|
|
502
|
+
).annotate({
|
|
503
|
+
identifier: "CacheActivityResponse",
|
|
504
|
+
}) as any as S.Schema<CacheActivityResponse>;
|
|
505
|
+
|
|
506
|
+
export interface GetGlobalActivityGlobalActivityGetRequest {
|
|
507
|
+
/** Time from which to start viewing spend */
|
|
508
|
+
start_date?: string;
|
|
509
|
+
/** Time till which to view spend */
|
|
510
|
+
end_date?: string;
|
|
511
|
+
}
|
|
512
|
+
export const GetGlobalActivityGlobalActivityGetRequest =
|
|
513
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
514
|
+
S.Struct({
|
|
515
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
516
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
517
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/activity", code: 200 })),
|
|
518
|
+
).annotate({
|
|
519
|
+
identifier: "GetGlobalActivityGlobalActivityGetRequest",
|
|
520
|
+
}) as any as S.Schema<GetGlobalActivityGlobalActivityGetRequest>;
|
|
521
|
+
|
|
522
|
+
export type GetGlobalActivityGlobalActivityGetResponseBodyList =
|
|
523
|
+
Array<LiteLLMSpendLogs>;
|
|
524
|
+
export const GetGlobalActivityGlobalActivityGetResponseBodyList =
|
|
525
|
+
/*@__PURE__*/ S.Array(
|
|
526
|
+
LiteLLMSpendLogs,
|
|
527
|
+
) as any as S.Schema<GetGlobalActivityGlobalActivityGetResponseBodyList>;
|
|
528
|
+
|
|
529
|
+
export interface GetGlobalActivityGlobalActivityGetResponse {
|
|
530
|
+
body: GetGlobalActivityGlobalActivityGetResponseBodyList;
|
|
531
|
+
}
|
|
532
|
+
export const GetGlobalActivityGlobalActivityGetResponse =
|
|
533
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
534
|
+
S.Struct({
|
|
535
|
+
body: GetGlobalActivityGlobalActivityGetResponseBodyList,
|
|
536
|
+
}),
|
|
537
|
+
).annotate({
|
|
538
|
+
identifier: "GetGlobalActivityGlobalActivityGetResponse",
|
|
539
|
+
}) as any as S.Schema<GetGlobalActivityGlobalActivityGetResponse>;
|
|
540
|
+
|
|
541
|
+
export interface GetGlobalActivityModelGlobalActivityModelGetRequest {
|
|
542
|
+
/** Time from which to start viewing spend */
|
|
543
|
+
start_date?: string;
|
|
544
|
+
/** Time till which to view spend */
|
|
545
|
+
end_date?: string;
|
|
546
|
+
}
|
|
547
|
+
export const GetGlobalActivityModelGlobalActivityModelGetRequest =
|
|
548
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
549
|
+
S.Struct({
|
|
550
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
551
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
552
|
+
}).pipe(
|
|
553
|
+
T.Http({ method: "GET", uri: "/global/activity/model", code: 200 }),
|
|
554
|
+
),
|
|
555
|
+
).annotate({
|
|
556
|
+
identifier: "GetGlobalActivityModelGlobalActivityModelGetRequest",
|
|
557
|
+
}) as any as S.Schema<GetGlobalActivityModelGlobalActivityModelGetRequest>;
|
|
558
|
+
|
|
559
|
+
export type GetGlobalActivityModelGlobalActivityModelGetResponseBodyList =
|
|
560
|
+
Array<LiteLLMSpendLogs>;
|
|
561
|
+
export const GetGlobalActivityModelGlobalActivityModelGetResponseBodyList =
|
|
562
|
+
/*@__PURE__*/ S.Array(
|
|
563
|
+
LiteLLMSpendLogs,
|
|
564
|
+
) as any as S.Schema<GetGlobalActivityModelGlobalActivityModelGetResponseBodyList>;
|
|
565
|
+
|
|
566
|
+
export interface GetGlobalActivityModelGlobalActivityModelGetResponse {
|
|
567
|
+
body: GetGlobalActivityModelGlobalActivityModelGetResponseBodyList;
|
|
568
|
+
}
|
|
569
|
+
export const GetGlobalActivityModelGlobalActivityModelGetResponse =
|
|
570
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
571
|
+
S.Struct({
|
|
572
|
+
body: GetGlobalActivityModelGlobalActivityModelGetResponseBodyList,
|
|
573
|
+
}),
|
|
574
|
+
).annotate({
|
|
575
|
+
identifier: "GetGlobalActivityModelGlobalActivityModelGetResponse",
|
|
576
|
+
}) as any as S.Schema<GetGlobalActivityModelGlobalActivityModelGetResponse>;
|
|
577
|
+
|
|
578
|
+
export interface GetGlobalSpendGlobalSpendRequest {}
|
|
579
|
+
export const GetGlobalSpendGlobalSpendRequest = /*@__PURE__*/ S.suspend(() =>
|
|
580
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/global/spend", code: 200 })),
|
|
581
|
+
).annotate({
|
|
582
|
+
identifier: "GetGlobalSpendGlobalSpendRequest",
|
|
583
|
+
}) as any as S.Schema<GetGlobalSpendGlobalSpendRequest>;
|
|
584
|
+
|
|
585
|
+
export interface GetGlobalSpendGlobalSpendResponse {
|
|
586
|
+
body: unknown;
|
|
587
|
+
}
|
|
588
|
+
export const GetGlobalSpendGlobalSpendResponse = /*@__PURE__*/ S.suspend(() =>
|
|
589
|
+
S.Struct({
|
|
590
|
+
body: S.Unknown,
|
|
591
|
+
}),
|
|
592
|
+
).annotate({
|
|
593
|
+
identifier: "GetGlobalSpendGlobalSpendResponse",
|
|
594
|
+
}) as any as S.Schema<GetGlobalSpendGlobalSpendResponse>;
|
|
595
|
+
|
|
596
|
+
export interface GetGlobalSpendKeysGlobalSpendKeyRequest {
|
|
597
|
+
/** Number of keys to get. Will return Top 'n' keys. */
|
|
598
|
+
limit?: number;
|
|
599
|
+
}
|
|
600
|
+
export const GetGlobalSpendKeysGlobalSpendKeyRequest = /*@__PURE__*/ S.suspend(
|
|
601
|
+
() =>
|
|
602
|
+
S.Struct({
|
|
603
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
604
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/keys", code: 200 })),
|
|
605
|
+
).annotate({
|
|
606
|
+
identifier: "GetGlobalSpendKeysGlobalSpendKeyRequest",
|
|
607
|
+
}) as any as S.Schema<GetGlobalSpendKeysGlobalSpendKeyRequest>;
|
|
608
|
+
|
|
609
|
+
export interface GetGlobalSpendKeysGlobalSpendKeyResponse {
|
|
610
|
+
body: unknown;
|
|
611
|
+
}
|
|
612
|
+
export const GetGlobalSpendKeysGlobalSpendKeyResponse = /*@__PURE__*/ S.suspend(
|
|
613
|
+
() =>
|
|
614
|
+
S.Struct({
|
|
615
|
+
body: S.Unknown,
|
|
616
|
+
}),
|
|
617
|
+
).annotate({
|
|
618
|
+
identifier: "GetGlobalSpendKeysGlobalSpendKeyResponse",
|
|
619
|
+
}) as any as S.Schema<GetGlobalSpendKeysGlobalSpendKeyResponse>;
|
|
620
|
+
|
|
621
|
+
export interface GetGlobalSpendLogsGlobalSpendLogRequest {
|
|
622
|
+
/** API Key to get global spend (spend per day for last 30d). Admin-only endpoint */
|
|
623
|
+
api_key?: string;
|
|
624
|
+
}
|
|
625
|
+
export const GetGlobalSpendLogsGlobalSpendLogRequest = /*@__PURE__*/ S.suspend(
|
|
626
|
+
() =>
|
|
627
|
+
S.Struct({
|
|
628
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
629
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/logs", code: 200 })),
|
|
630
|
+
).annotate({
|
|
631
|
+
identifier: "GetGlobalSpendLogsGlobalSpendLogRequest",
|
|
632
|
+
}) as any as S.Schema<GetGlobalSpendLogsGlobalSpendLogRequest>;
|
|
633
|
+
|
|
634
|
+
export interface GetGlobalSpendLogsGlobalSpendLogResponse {
|
|
635
|
+
body: unknown;
|
|
636
|
+
}
|
|
637
|
+
export const GetGlobalSpendLogsGlobalSpendLogResponse = /*@__PURE__*/ S.suspend(
|
|
638
|
+
() =>
|
|
639
|
+
S.Struct({
|
|
640
|
+
body: S.Unknown,
|
|
641
|
+
}),
|
|
642
|
+
).annotate({
|
|
643
|
+
identifier: "GetGlobalSpendLogsGlobalSpendLogResponse",
|
|
644
|
+
}) as any as S.Schema<GetGlobalSpendLogsGlobalSpendLogResponse>;
|
|
645
|
+
|
|
646
|
+
export interface GetGlobalSpendModelsGlobalSpendModelRequest {
|
|
647
|
+
/** Number of models to get. Will return Top 'n' models. */
|
|
648
|
+
limit?: number;
|
|
649
|
+
}
|
|
650
|
+
export const GetGlobalSpendModelsGlobalSpendModelRequest =
|
|
651
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
652
|
+
S.Struct({
|
|
653
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
654
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/models", code: 200 })),
|
|
655
|
+
).annotate({
|
|
656
|
+
identifier: "GetGlobalSpendModelsGlobalSpendModelRequest",
|
|
657
|
+
}) as any as S.Schema<GetGlobalSpendModelsGlobalSpendModelRequest>;
|
|
658
|
+
|
|
659
|
+
export interface GetGlobalSpendModelsGlobalSpendModelResponse {
|
|
660
|
+
body: unknown;
|
|
661
|
+
}
|
|
662
|
+
export const GetGlobalSpendModelsGlobalSpendModelResponse =
|
|
663
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
664
|
+
S.Struct({
|
|
665
|
+
body: S.Unknown,
|
|
666
|
+
}),
|
|
667
|
+
).annotate({
|
|
668
|
+
identifier: "GetGlobalSpendModelsGlobalSpendModelResponse",
|
|
669
|
+
}) as any as S.Schema<GetGlobalSpendModelsGlobalSpendModelResponse>;
|
|
670
|
+
|
|
671
|
+
export interface GetGlobalSpendPerTeamGlobalSpendTeamRequest {}
|
|
672
|
+
export const GetGlobalSpendPerTeamGlobalSpendTeamRequest =
|
|
673
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
674
|
+
S.Struct({}).pipe(
|
|
675
|
+
T.Http({ method: "GET", uri: "/global/spend/teams", code: 200 }),
|
|
676
|
+
),
|
|
677
|
+
).annotate({
|
|
678
|
+
identifier: "GetGlobalSpendPerTeamGlobalSpendTeamRequest",
|
|
679
|
+
}) as any as S.Schema<GetGlobalSpendPerTeamGlobalSpendTeamRequest>;
|
|
680
|
+
|
|
681
|
+
export interface GetGlobalSpendPerTeamGlobalSpendTeamResponse {
|
|
682
|
+
body: unknown;
|
|
683
|
+
}
|
|
684
|
+
export const GetGlobalSpendPerTeamGlobalSpendTeamResponse =
|
|
685
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
686
|
+
S.Struct({
|
|
687
|
+
body: S.Unknown,
|
|
688
|
+
}),
|
|
689
|
+
).annotate({
|
|
690
|
+
identifier: "GetGlobalSpendPerTeamGlobalSpendTeamResponse",
|
|
691
|
+
}) as any as S.Schema<GetGlobalSpendPerTeamGlobalSpendTeamResponse>;
|
|
692
|
+
|
|
693
|
+
export interface GetGlobalSpendProviderGlobalSpendProviderGetRequest {
|
|
694
|
+
/** Time from which to start viewing spend */
|
|
695
|
+
start_date?: string;
|
|
696
|
+
/** Time till which to view spend */
|
|
697
|
+
end_date?: string;
|
|
698
|
+
}
|
|
699
|
+
export const GetGlobalSpendProviderGlobalSpendProviderGetRequest =
|
|
700
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
701
|
+
S.Struct({
|
|
702
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
703
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
704
|
+
}).pipe(
|
|
705
|
+
T.Http({ method: "GET", uri: "/global/spend/provider", code: 200 }),
|
|
706
|
+
),
|
|
707
|
+
).annotate({
|
|
708
|
+
identifier: "GetGlobalSpendProviderGlobalSpendProviderGetRequest",
|
|
709
|
+
}) as any as S.Schema<GetGlobalSpendProviderGlobalSpendProviderGetRequest>;
|
|
710
|
+
|
|
711
|
+
export type GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList =
|
|
712
|
+
Array<LiteLLMSpendLogs>;
|
|
713
|
+
export const GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList =
|
|
714
|
+
/*@__PURE__*/ S.Array(
|
|
715
|
+
LiteLLMSpendLogs,
|
|
716
|
+
) as any as S.Schema<GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList>;
|
|
717
|
+
|
|
718
|
+
export interface GetGlobalSpendProviderGlobalSpendProviderGetResponse {
|
|
719
|
+
body: GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList;
|
|
720
|
+
}
|
|
721
|
+
export const GetGlobalSpendProviderGlobalSpendProviderGetResponse =
|
|
722
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
723
|
+
S.Struct({
|
|
724
|
+
body: GetGlobalSpendProviderGlobalSpendProviderGetResponseBodyList,
|
|
725
|
+
}),
|
|
726
|
+
).annotate({
|
|
727
|
+
identifier: "GetGlobalSpendProviderGlobalSpendProviderGetResponse",
|
|
728
|
+
}) as any as S.Schema<GetGlobalSpendProviderGlobalSpendProviderGetResponse>;
|
|
729
|
+
|
|
730
|
+
export type GetGlobalSpendReportGlobalSpendReportGetRequestGroupBy =
|
|
731
|
+
| "team"
|
|
732
|
+
| "customer"
|
|
733
|
+
| "api_key";
|
|
734
|
+
export const GetGlobalSpendReportGlobalSpendReportGetRequestGroupBy = S.String;
|
|
735
|
+
|
|
736
|
+
export interface GetGlobalSpendReportGlobalSpendReportGetRequest {
|
|
737
|
+
/** Time from which to start viewing spend */
|
|
738
|
+
start_date?: string;
|
|
739
|
+
/** Time till which to view spend */
|
|
740
|
+
end_date?: string;
|
|
741
|
+
/** Group spend by internal team or customer or api_key */
|
|
742
|
+
group_by?:
|
|
743
|
+
| GetGlobalSpendReportGlobalSpendReportGetRequestGroupBy
|
|
744
|
+
| (string & {});
|
|
745
|
+
/** View spend for a specific api_key. Example api_key='sk-1234 */
|
|
746
|
+
api_key?: string;
|
|
747
|
+
/** View spend for a specific internal_user_id. Example internal_user_id='1234 */
|
|
748
|
+
internal_user_id?: string;
|
|
749
|
+
/** View spend for a specific team_id. Example team_id='1234 */
|
|
750
|
+
team_id?: string;
|
|
751
|
+
/** View spend for a specific customer_id. Example customer_id='1234. Can be used in conjunction with team_id as well. */
|
|
752
|
+
customer_id?: string;
|
|
753
|
+
}
|
|
754
|
+
export const GetGlobalSpendReportGlobalSpendReportGetRequest =
|
|
755
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
756
|
+
S.Struct({
|
|
757
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
758
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
759
|
+
group_by: S.optional(
|
|
760
|
+
GetGlobalSpendReportGlobalSpendReportGetRequestGroupBy.pipe(T.Query()),
|
|
761
|
+
),
|
|
762
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
763
|
+
internal_user_id: S.optional(S.String.pipe(T.Query())),
|
|
764
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
765
|
+
customer_id: S.optional(S.String.pipe(T.Query())),
|
|
766
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/report", code: 200 })),
|
|
767
|
+
).annotate({
|
|
768
|
+
identifier: "GetGlobalSpendReportGlobalSpendReportGetRequest",
|
|
769
|
+
}) as any as S.Schema<GetGlobalSpendReportGlobalSpendReportGetRequest>;
|
|
770
|
+
|
|
771
|
+
export type GetGlobalSpendReportGlobalSpendReportGetResponseBodyList =
|
|
772
|
+
Array<LiteLLMSpendLogs>;
|
|
773
|
+
export const GetGlobalSpendReportGlobalSpendReportGetResponseBodyList =
|
|
774
|
+
/*@__PURE__*/ S.Array(
|
|
775
|
+
LiteLLMSpendLogs,
|
|
776
|
+
) as any as S.Schema<GetGlobalSpendReportGlobalSpendReportGetResponseBodyList>;
|
|
777
|
+
|
|
778
|
+
export interface GetGlobalSpendReportGlobalSpendReportGetResponse {
|
|
779
|
+
body: GetGlobalSpendReportGlobalSpendReportGetResponseBodyList;
|
|
780
|
+
}
|
|
781
|
+
export const GetGlobalSpendReportGlobalSpendReportGetResponse =
|
|
782
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
783
|
+
S.Struct({
|
|
784
|
+
body: GetGlobalSpendReportGlobalSpendReportGetResponseBodyList,
|
|
785
|
+
}),
|
|
786
|
+
).annotate({
|
|
787
|
+
identifier: "GetGlobalSpendReportGlobalSpendReportGetResponse",
|
|
788
|
+
}) as any as S.Schema<GetGlobalSpendReportGlobalSpendReportGetResponse>;
|
|
789
|
+
|
|
790
|
+
export interface GetGlobalViewAllEndUsersGlobalAllEndUserRequest {}
|
|
791
|
+
export const GetGlobalViewAllEndUsersGlobalAllEndUserRequest =
|
|
792
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
793
|
+
S.Struct({}).pipe(
|
|
794
|
+
T.Http({ method: "GET", uri: "/global/all_end_users", code: 200 }),
|
|
795
|
+
),
|
|
796
|
+
).annotate({
|
|
797
|
+
identifier: "GetGlobalViewAllEndUsersGlobalAllEndUserRequest",
|
|
798
|
+
}) as any as S.Schema<GetGlobalViewAllEndUsersGlobalAllEndUserRequest>;
|
|
799
|
+
|
|
800
|
+
export interface GetGlobalViewAllEndUsersGlobalAllEndUserResponse {
|
|
801
|
+
body: unknown;
|
|
802
|
+
}
|
|
803
|
+
export const GetGlobalViewAllEndUsersGlobalAllEndUserResponse =
|
|
804
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
805
|
+
S.Struct({
|
|
806
|
+
body: S.Unknown,
|
|
807
|
+
}),
|
|
808
|
+
).annotate({
|
|
809
|
+
identifier: "GetGlobalViewAllEndUsersGlobalAllEndUserResponse",
|
|
810
|
+
}) as any as S.Schema<GetGlobalViewAllEndUsersGlobalAllEndUserResponse>;
|
|
811
|
+
|
|
812
|
+
export interface GetGlobalViewSpendTagsGlobalSpendTagRequest {
|
|
813
|
+
/** Time from which to start viewing key spend */
|
|
814
|
+
start_date?: string;
|
|
815
|
+
/** Time till which to view key spend */
|
|
816
|
+
end_date?: string;
|
|
817
|
+
/** comman separated tags to filter on */
|
|
818
|
+
tags?: string;
|
|
819
|
+
}
|
|
820
|
+
export const GetGlobalViewSpendTagsGlobalSpendTagRequest =
|
|
821
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
822
|
+
S.Struct({
|
|
823
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
824
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
825
|
+
tags: S.optional(S.String.pipe(T.Query())),
|
|
826
|
+
}).pipe(T.Http({ method: "GET", uri: "/global/spend/tags", code: 200 })),
|
|
827
|
+
).annotate({
|
|
828
|
+
identifier: "GetGlobalViewSpendTagsGlobalSpendTagRequest",
|
|
829
|
+
}) as any as S.Schema<GetGlobalViewSpendTagsGlobalSpendTagRequest>;
|
|
830
|
+
|
|
831
|
+
export type GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList =
|
|
832
|
+
Array<LiteLLMSpendLogs>;
|
|
833
|
+
export const GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList =
|
|
834
|
+
/*@__PURE__*/ S.Array(
|
|
835
|
+
LiteLLMSpendLogs,
|
|
836
|
+
) as any as S.Schema<GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList>;
|
|
837
|
+
|
|
838
|
+
export interface GetGlobalViewSpendTagsGlobalSpendTagResponse {
|
|
839
|
+
body: GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList;
|
|
840
|
+
}
|
|
841
|
+
export const GetGlobalViewSpendTagsGlobalSpendTagResponse =
|
|
842
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
843
|
+
S.Struct({
|
|
844
|
+
body: GetGlobalViewSpendTagsGlobalSpendTagResponseBodyList,
|
|
845
|
+
}),
|
|
846
|
+
).annotate({
|
|
847
|
+
identifier: "GetGlobalViewSpendTagsGlobalSpendTagResponse",
|
|
848
|
+
}) as any as S.Schema<GetGlobalViewSpendTagsGlobalSpendTagResponse>;
|
|
849
|
+
|
|
850
|
+
export interface GetKeySpendReportKeySpendReportGetRequest {
|
|
851
|
+
/** Time from which to start viewing spend (YYYY-MM-DD) */
|
|
852
|
+
start_date?: string;
|
|
853
|
+
/** Time till which to view spend (YYYY-MM-DD) */
|
|
854
|
+
end_date?: string;
|
|
855
|
+
/** View spend for a specific api_key. Proxy admin only; other callers are scoped to their own key. */
|
|
856
|
+
api_key?: string;
|
|
857
|
+
}
|
|
858
|
+
export const GetKeySpendReportKeySpendReportGetRequest =
|
|
859
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
860
|
+
S.Struct({
|
|
861
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
862
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
863
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
864
|
+
}).pipe(T.Http({ method: "GET", uri: "/key/spend/report", code: 200 })),
|
|
865
|
+
).annotate({
|
|
866
|
+
identifier: "GetKeySpendReportKeySpendReportGetRequest",
|
|
867
|
+
}) as any as S.Schema<GetKeySpendReportKeySpendReportGetRequest>;
|
|
868
|
+
|
|
869
|
+
export type GetKeySpendReportKeySpendReportGetResponseBodyItemMap = {
|
|
870
|
+
[key: string]: unknown | undefined;
|
|
871
|
+
};
|
|
872
|
+
export const GetKeySpendReportKeySpendReportGetResponseBodyItemMap =
|
|
873
|
+
/*@__PURE__*/ S.Record(
|
|
874
|
+
S.String,
|
|
875
|
+
S.Unknown,
|
|
876
|
+
) as any as S.Schema<GetKeySpendReportKeySpendReportGetResponseBodyItemMap>;
|
|
877
|
+
|
|
878
|
+
export type GetKeySpendReportKeySpendReportGetResponseBodyList =
|
|
879
|
+
Array<GetKeySpendReportKeySpendReportGetResponseBodyItemMap>;
|
|
880
|
+
export const GetKeySpendReportKeySpendReportGetResponseBodyList =
|
|
881
|
+
/*@__PURE__*/ S.Array(
|
|
882
|
+
GetKeySpendReportKeySpendReportGetResponseBodyItemMap,
|
|
883
|
+
) as any as S.Schema<GetKeySpendReportKeySpendReportGetResponseBodyList>;
|
|
884
|
+
|
|
885
|
+
export interface GetKeySpendReportKeySpendReportGetResponse {
|
|
886
|
+
body: GetKeySpendReportKeySpendReportGetResponseBodyList;
|
|
887
|
+
}
|
|
888
|
+
export const GetKeySpendReportKeySpendReportGetResponse =
|
|
889
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
890
|
+
S.Struct({
|
|
891
|
+
body: GetKeySpendReportKeySpendReportGetResponseBodyList,
|
|
892
|
+
}),
|
|
893
|
+
).annotate({
|
|
894
|
+
identifier: "GetKeySpendReportKeySpendReportGetResponse",
|
|
895
|
+
}) as any as S.Schema<GetKeySpendReportKeySpendReportGetResponse>;
|
|
896
|
+
|
|
897
|
+
export interface GetOrganizationSpendReportOrganizationSpendReportGetRequest {
|
|
898
|
+
/** Time from which to start viewing spend (YYYY-MM-DD) */
|
|
899
|
+
start_date?: string;
|
|
900
|
+
/** Time till which to view spend (YYYY-MM-DD) */
|
|
901
|
+
end_date?: string;
|
|
902
|
+
/** View spend for a specific organization_id. Proxy admins may pass any organization; org admins are scoped to organizations they administer. */
|
|
903
|
+
organization_id?: string;
|
|
904
|
+
}
|
|
905
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetRequest =
|
|
906
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
907
|
+
S.Struct({
|
|
908
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
909
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
910
|
+
organization_id: S.optional(S.String.pipe(T.Query())),
|
|
911
|
+
}).pipe(
|
|
912
|
+
T.Http({ method: "GET", uri: "/organization/spend/report", code: 200 }),
|
|
913
|
+
),
|
|
914
|
+
).annotate({
|
|
915
|
+
identifier: "GetOrganizationSpendReportOrganizationSpendReportGetRequest",
|
|
916
|
+
}) as any as S.Schema<GetOrganizationSpendReportOrganizationSpendReportGetRequest>;
|
|
917
|
+
|
|
918
|
+
export type GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap =
|
|
919
|
+
{ [key: string]: unknown | undefined };
|
|
920
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap =
|
|
921
|
+
/*@__PURE__*/ S.Record(
|
|
922
|
+
S.String,
|
|
923
|
+
S.Unknown,
|
|
924
|
+
) as any as S.Schema<GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap>;
|
|
925
|
+
|
|
926
|
+
export type GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList =
|
|
927
|
+
Array<GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap>;
|
|
928
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList =
|
|
929
|
+
/*@__PURE__*/ S.Array(
|
|
930
|
+
GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyItemMap,
|
|
931
|
+
) as any as S.Schema<GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList>;
|
|
932
|
+
|
|
933
|
+
export interface GetOrganizationSpendReportOrganizationSpendReportGetResponse {
|
|
934
|
+
body: GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList;
|
|
935
|
+
}
|
|
936
|
+
export const GetOrganizationSpendReportOrganizationSpendReportGetResponse =
|
|
937
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
938
|
+
S.Struct({
|
|
939
|
+
body: GetOrganizationSpendReportOrganizationSpendReportGetResponseBodyList,
|
|
940
|
+
}),
|
|
941
|
+
).annotate({
|
|
942
|
+
identifier: "GetOrganizationSpendReportOrganizationSpendReportGetResponse",
|
|
943
|
+
}) as any as S.Schema<GetOrganizationSpendReportOrganizationSpendReportGetResponse>;
|
|
944
|
+
|
|
945
|
+
export interface GetSpendKeyFnSpendKeyRequest {}
|
|
946
|
+
export const GetSpendKeyFnSpendKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
947
|
+
S.Struct({}).pipe(T.Http({ method: "GET", uri: "/spend/keys", code: 200 })),
|
|
948
|
+
).annotate({
|
|
949
|
+
identifier: "GetSpendKeyFnSpendKeyRequest",
|
|
950
|
+
}) as any as S.Schema<GetSpendKeyFnSpendKeyRequest>;
|
|
951
|
+
|
|
952
|
+
export interface GetSpendKeyFnSpendKeyResponse {
|
|
953
|
+
body: unknown;
|
|
954
|
+
}
|
|
955
|
+
export const GetSpendKeyFnSpendKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
956
|
+
S.Struct({
|
|
957
|
+
body: S.Unknown,
|
|
958
|
+
}),
|
|
959
|
+
).annotate({
|
|
960
|
+
identifier: "GetSpendKeyFnSpendKeyResponse",
|
|
961
|
+
}) as any as S.Schema<GetSpendKeyFnSpendKeyResponse>;
|
|
962
|
+
|
|
963
|
+
export interface GetSpendUserFnSpendUserRequest {
|
|
964
|
+
/** Get User Table row for user_id */
|
|
965
|
+
user_id?: string;
|
|
966
|
+
}
|
|
967
|
+
export const GetSpendUserFnSpendUserRequest = /*@__PURE__*/ S.suspend(() =>
|
|
968
|
+
S.Struct({
|
|
969
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
970
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/users", code: 200 })),
|
|
971
|
+
).annotate({
|
|
972
|
+
identifier: "GetSpendUserFnSpendUserRequest",
|
|
973
|
+
}) as any as S.Schema<GetSpendUserFnSpendUserRequest>;
|
|
974
|
+
|
|
975
|
+
export interface GetSpendUserFnSpendUserResponse {
|
|
976
|
+
body: unknown;
|
|
977
|
+
}
|
|
978
|
+
export const GetSpendUserFnSpendUserResponse = /*@__PURE__*/ S.suspend(() =>
|
|
979
|
+
S.Struct({
|
|
980
|
+
body: S.Unknown,
|
|
981
|
+
}),
|
|
982
|
+
).annotate({
|
|
983
|
+
identifier: "GetSpendUserFnSpendUserResponse",
|
|
984
|
+
}) as any as S.Schema<GetSpendUserFnSpendUserResponse>;
|
|
985
|
+
|
|
986
|
+
export interface GetTeamSpendReportTeamSpendReportGetRequest {
|
|
987
|
+
/** Time from which to start viewing spend (YYYY-MM-DD) */
|
|
988
|
+
start_date?: string;
|
|
989
|
+
/** Time till which to view spend (YYYY-MM-DD) */
|
|
990
|
+
end_date?: string;
|
|
991
|
+
/** View spend for a specific team_id. Proxy admin only; other callers are scoped to their key's team. */
|
|
992
|
+
team_id?: string;
|
|
993
|
+
}
|
|
994
|
+
export const GetTeamSpendReportTeamSpendReportGetRequest =
|
|
995
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
996
|
+
S.Struct({
|
|
997
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
998
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
999
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
1000
|
+
}).pipe(T.Http({ method: "GET", uri: "/team/spend/report", code: 200 })),
|
|
1001
|
+
).annotate({
|
|
1002
|
+
identifier: "GetTeamSpendReportTeamSpendReportGetRequest",
|
|
1003
|
+
}) as any as S.Schema<GetTeamSpendReportTeamSpendReportGetRequest>;
|
|
1004
|
+
|
|
1005
|
+
export type GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap = {
|
|
1006
|
+
[key: string]: unknown | undefined;
|
|
1007
|
+
};
|
|
1008
|
+
export const GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap =
|
|
1009
|
+
/*@__PURE__*/ S.Record(
|
|
1010
|
+
S.String,
|
|
1011
|
+
S.Unknown,
|
|
1012
|
+
) as any as S.Schema<GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap>;
|
|
1013
|
+
|
|
1014
|
+
export type GetTeamSpendReportTeamSpendReportGetResponseBodyList =
|
|
1015
|
+
Array<GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap>;
|
|
1016
|
+
export const GetTeamSpendReportTeamSpendReportGetResponseBodyList =
|
|
1017
|
+
/*@__PURE__*/ S.Array(
|
|
1018
|
+
GetTeamSpendReportTeamSpendReportGetResponseBodyItemMap,
|
|
1019
|
+
) as any as S.Schema<GetTeamSpendReportTeamSpendReportGetResponseBodyList>;
|
|
1020
|
+
|
|
1021
|
+
export interface GetTeamSpendReportTeamSpendReportGetResponse {
|
|
1022
|
+
body: GetTeamSpendReportTeamSpendReportGetResponseBodyList;
|
|
1023
|
+
}
|
|
1024
|
+
export const GetTeamSpendReportTeamSpendReportGetResponse =
|
|
1025
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1026
|
+
S.Struct({
|
|
1027
|
+
body: GetTeamSpendReportTeamSpendReportGetResponseBodyList,
|
|
1028
|
+
}),
|
|
1029
|
+
).annotate({
|
|
1030
|
+
identifier: "GetTeamSpendReportTeamSpendReportGetResponse",
|
|
1031
|
+
}) as any as S.Schema<GetTeamSpendReportTeamSpendReportGetResponse>;
|
|
1032
|
+
|
|
1033
|
+
export interface GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest {
|
|
1034
|
+
request_id: string;
|
|
1035
|
+
/** Time from which to start viewing key spend */
|
|
1036
|
+
start_date?: string;
|
|
1037
|
+
/** Time till which to view key spend */
|
|
1038
|
+
end_date?: string;
|
|
1039
|
+
}
|
|
1040
|
+
export const GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest =
|
|
1041
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1042
|
+
S.Struct({
|
|
1043
|
+
request_id: S.String.pipe(T.Label()),
|
|
1044
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1045
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1046
|
+
}).pipe(
|
|
1047
|
+
T.Http({ method: "GET", uri: "/spend/logs/ui/{request_id}", code: 200 }),
|
|
1048
|
+
),
|
|
1049
|
+
).annotate({
|
|
1050
|
+
identifier:
|
|
1051
|
+
"GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest",
|
|
1052
|
+
}) as any as S.Schema<GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest>;
|
|
1053
|
+
|
|
1054
|
+
export interface GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse {
|
|
1055
|
+
body: unknown;
|
|
1056
|
+
}
|
|
1057
|
+
export const GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse =
|
|
1058
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1059
|
+
S.Struct({
|
|
1060
|
+
body: S.Unknown,
|
|
1061
|
+
}),
|
|
1062
|
+
).annotate({
|
|
1063
|
+
identifier:
|
|
1064
|
+
"GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse",
|
|
1065
|
+
}) as any as S.Schema<GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse>;
|
|
1066
|
+
|
|
1067
|
+
export interface GetUiViewSessionSpendLogsSpendLogsSessionUiRequest {
|
|
1068
|
+
/** Get all spend logs for a particular session */
|
|
1069
|
+
session_id: string;
|
|
1070
|
+
/** Page number for pagination */
|
|
1071
|
+
page?: number;
|
|
1072
|
+
/** Number of items per page */
|
|
1073
|
+
page_size?: number;
|
|
1074
|
+
}
|
|
1075
|
+
export const GetUiViewSessionSpendLogsSpendLogsSessionUiRequest =
|
|
1076
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1077
|
+
S.Struct({
|
|
1078
|
+
session_id: S.String.pipe(T.Query()),
|
|
1079
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1080
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1081
|
+
}).pipe(
|
|
1082
|
+
T.Http({ method: "GET", uri: "/spend/logs/session/ui", code: 200 }),
|
|
1083
|
+
),
|
|
1084
|
+
).annotate({
|
|
1085
|
+
identifier: "GetUiViewSessionSpendLogsSpendLogsSessionUiRequest",
|
|
1086
|
+
}) as any as S.Schema<GetUiViewSessionSpendLogsSpendLogsSessionUiRequest>;
|
|
1087
|
+
|
|
1088
|
+
export type GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList =
|
|
1089
|
+
Array<LiteLLMSpendLogs>;
|
|
1090
|
+
export const GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList =
|
|
1091
|
+
/*@__PURE__*/ S.Array(
|
|
1092
|
+
LiteLLMSpendLogs,
|
|
1093
|
+
) as any as S.Schema<GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList>;
|
|
1094
|
+
|
|
1095
|
+
export interface GetUiViewSessionSpendLogsSpendLogsSessionUiResponse {
|
|
1096
|
+
body: GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList;
|
|
1097
|
+
}
|
|
1098
|
+
export const GetUiViewSessionSpendLogsSpendLogsSessionUiResponse =
|
|
1099
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1100
|
+
S.Struct({
|
|
1101
|
+
body: GetUiViewSessionSpendLogsSpendLogsSessionUiResponseBodyList,
|
|
1102
|
+
}),
|
|
1103
|
+
).annotate({
|
|
1104
|
+
identifier: "GetUiViewSessionSpendLogsSpendLogsSessionUiResponse",
|
|
1105
|
+
}) as any as S.Schema<GetUiViewSessionSpendLogsSpendLogsSessionUiResponse>;
|
|
1106
|
+
|
|
1107
|
+
export interface GetUiViewSpendLogsSpendLogsUiRequest {
|
|
1108
|
+
/** Get spend logs based on api key */
|
|
1109
|
+
api_key?: string;
|
|
1110
|
+
/** Get spend logs based on user_id */
|
|
1111
|
+
user_id?: string;
|
|
1112
|
+
/** request_id to get spend logs for specific request_id */
|
|
1113
|
+
request_id?: string;
|
|
1114
|
+
/** Filter spend logs by session_id (partial string match) */
|
|
1115
|
+
session_id?: string;
|
|
1116
|
+
/** Filter spend logs by team_id */
|
|
1117
|
+
team_id?: string;
|
|
1118
|
+
/** Filter logs with spend greater than or equal to this value */
|
|
1119
|
+
min_spend?: number;
|
|
1120
|
+
/** Filter logs with spend less than or equal to this value */
|
|
1121
|
+
max_spend?: number;
|
|
1122
|
+
/** Time from which to start viewing key spend */
|
|
1123
|
+
start_date?: string;
|
|
1124
|
+
/** Time till which to view key spend */
|
|
1125
|
+
end_date?: string;
|
|
1126
|
+
/** Page number for pagination */
|
|
1127
|
+
page?: number;
|
|
1128
|
+
/** Number of items per page */
|
|
1129
|
+
page_size?: number;
|
|
1130
|
+
/** Filter logs by status (e.g., success, failure) */
|
|
1131
|
+
status_filter?: string;
|
|
1132
|
+
/** Filter logs by cache state: 'hit' or 'miss'. Miss includes legacy rows with a null/unknown cache state */
|
|
1133
|
+
cache_hit_filter?: string;
|
|
1134
|
+
/** Filter logs by model */
|
|
1135
|
+
model?: string;
|
|
1136
|
+
/** Filter logs by model ID (litellm model deployment id) */
|
|
1137
|
+
model_id?: string;
|
|
1138
|
+
/** Filter logs by model group */
|
|
1139
|
+
model_group?: string;
|
|
1140
|
+
/** Filter logs by key alias */
|
|
1141
|
+
key_alias?: string;
|
|
1142
|
+
/** Filter logs by end user */
|
|
1143
|
+
end_user?: string;
|
|
1144
|
+
/** Filter logs by error code (e.g., '404', '500') */
|
|
1145
|
+
error_code?: string;
|
|
1146
|
+
/** Filter logs by error message (partial string match) */
|
|
1147
|
+
error_message?: string;
|
|
1148
|
+
/** Sort logs by field: spend, total_tokens, startTime, endTime, request_duration_ms, model, or ttft_ms */
|
|
1149
|
+
sort_by?: string;
|
|
1150
|
+
/** Sort order: asc or desc */
|
|
1151
|
+
sort_order?: string;
|
|
1152
|
+
/** Exclude LiteLLM internal health check requests from results */
|
|
1153
|
+
exclude_internal_health_checks?: boolean;
|
|
1154
|
+
}
|
|
1155
|
+
export const GetUiViewSpendLogsSpendLogsUiRequest = /*@__PURE__*/ S.suspend(
|
|
1156
|
+
() =>
|
|
1157
|
+
S.Struct({
|
|
1158
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
1159
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
1160
|
+
request_id: S.optional(S.String.pipe(T.Query())),
|
|
1161
|
+
session_id: S.optional(S.String.pipe(T.Query())),
|
|
1162
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
1163
|
+
min_spend: S.optional(S.Number.pipe(T.Query())),
|
|
1164
|
+
max_spend: S.optional(S.Number.pipe(T.Query())),
|
|
1165
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1166
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1167
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1168
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1169
|
+
status_filter: S.optional(S.String.pipe(T.Query())),
|
|
1170
|
+
cache_hit_filter: S.optional(S.String.pipe(T.Query())),
|
|
1171
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
1172
|
+
model_id: S.optional(S.String.pipe(T.Query())),
|
|
1173
|
+
model_group: S.optional(S.String.pipe(T.Query())),
|
|
1174
|
+
key_alias: S.optional(S.String.pipe(T.Query())),
|
|
1175
|
+
end_user: S.optional(S.String.pipe(T.Query())),
|
|
1176
|
+
error_code: S.optional(S.String.pipe(T.Query())),
|
|
1177
|
+
error_message: S.optional(S.String.pipe(T.Query())),
|
|
1178
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
1179
|
+
sort_order: S.optional(S.String.pipe(T.Query())),
|
|
1180
|
+
exclude_internal_health_checks: S.optional(S.Boolean.pipe(T.Query())),
|
|
1181
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs/ui", code: 200 })),
|
|
1182
|
+
).annotate({
|
|
1183
|
+
identifier: "GetUiViewSpendLogsSpendLogsUiRequest",
|
|
1184
|
+
}) as any as S.Schema<GetUiViewSpendLogsSpendLogsUiRequest>;
|
|
1185
|
+
|
|
1186
|
+
export type GetUiViewSpendLogsSpendLogsUiResponseBodyList =
|
|
1187
|
+
Array<LiteLLMSpendLogs>;
|
|
1188
|
+
export const GetUiViewSpendLogsSpendLogsUiResponseBodyList =
|
|
1189
|
+
/*@__PURE__*/ S.Array(
|
|
1190
|
+
LiteLLMSpendLogs,
|
|
1191
|
+
) as any as S.Schema<GetUiViewSpendLogsSpendLogsUiResponseBodyList>;
|
|
1192
|
+
|
|
1193
|
+
export interface GetUiViewSpendLogsSpendLogsUiResponse {
|
|
1194
|
+
body: GetUiViewSpendLogsSpendLogsUiResponseBodyList;
|
|
1195
|
+
}
|
|
1196
|
+
export const GetUiViewSpendLogsSpendLogsUiResponse = /*@__PURE__*/ S.suspend(
|
|
1197
|
+
() =>
|
|
1198
|
+
S.Struct({
|
|
1199
|
+
body: GetUiViewSpendLogsSpendLogsUiResponseBodyList,
|
|
1200
|
+
}),
|
|
1201
|
+
).annotate({
|
|
1202
|
+
identifier: "GetUiViewSpendLogsSpendLogsUiResponse",
|
|
1203
|
+
}) as any as S.Schema<GetUiViewSpendLogsSpendLogsUiResponse>;
|
|
1204
|
+
|
|
1205
|
+
export interface GetUiViewSpendLogsSpendLogsV2Request {
|
|
1206
|
+
/** Get spend logs based on api key */
|
|
1207
|
+
api_key?: string;
|
|
1208
|
+
/** Get spend logs based on user_id */
|
|
1209
|
+
user_id?: string;
|
|
1210
|
+
/** request_id to get spend logs for specific request_id */
|
|
1211
|
+
request_id?: string;
|
|
1212
|
+
/** Filter spend logs by session_id (partial string match) */
|
|
1213
|
+
session_id?: string;
|
|
1214
|
+
/** Filter spend logs by team_id */
|
|
1215
|
+
team_id?: string;
|
|
1216
|
+
/** Filter logs with spend greater than or equal to this value */
|
|
1217
|
+
min_spend?: number;
|
|
1218
|
+
/** Filter logs with spend less than or equal to this value */
|
|
1219
|
+
max_spend?: number;
|
|
1220
|
+
/** Time from which to start viewing key spend */
|
|
1221
|
+
start_date?: string;
|
|
1222
|
+
/** Time till which to view key spend */
|
|
1223
|
+
end_date?: string;
|
|
1224
|
+
/** Page number for pagination */
|
|
1225
|
+
page?: number;
|
|
1226
|
+
/** Number of items per page */
|
|
1227
|
+
page_size?: number;
|
|
1228
|
+
/** Filter logs by status (e.g., success, failure) */
|
|
1229
|
+
status_filter?: string;
|
|
1230
|
+
/** Filter logs by cache state: 'hit' or 'miss'. Miss includes legacy rows with a null/unknown cache state */
|
|
1231
|
+
cache_hit_filter?: string;
|
|
1232
|
+
/** Filter logs by model */
|
|
1233
|
+
model?: string;
|
|
1234
|
+
/** Filter logs by model ID (litellm model deployment id) */
|
|
1235
|
+
model_id?: string;
|
|
1236
|
+
/** Filter logs by model group */
|
|
1237
|
+
model_group?: string;
|
|
1238
|
+
/** Filter logs by key alias */
|
|
1239
|
+
key_alias?: string;
|
|
1240
|
+
/** Filter logs by end user */
|
|
1241
|
+
end_user?: string;
|
|
1242
|
+
/** Filter logs by error code (e.g., '404', '500') */
|
|
1243
|
+
error_code?: string;
|
|
1244
|
+
/** Filter logs by error message (partial string match) */
|
|
1245
|
+
error_message?: string;
|
|
1246
|
+
/** Sort logs by field: spend, total_tokens, startTime, endTime, request_duration_ms, model, or ttft_ms */
|
|
1247
|
+
sort_by?: string;
|
|
1248
|
+
/** Sort order: asc or desc */
|
|
1249
|
+
sort_order?: string;
|
|
1250
|
+
/** Exclude LiteLLM internal health check requests from results */
|
|
1251
|
+
exclude_internal_health_checks?: boolean;
|
|
1252
|
+
}
|
|
1253
|
+
export const GetUiViewSpendLogsSpendLogsV2Request = /*@__PURE__*/ S.suspend(
|
|
1254
|
+
() =>
|
|
1255
|
+
S.Struct({
|
|
1256
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
1257
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
1258
|
+
request_id: S.optional(S.String.pipe(T.Query())),
|
|
1259
|
+
session_id: S.optional(S.String.pipe(T.Query())),
|
|
1260
|
+
team_id: S.optional(S.String.pipe(T.Query())),
|
|
1261
|
+
min_spend: S.optional(S.Number.pipe(T.Query())),
|
|
1262
|
+
max_spend: S.optional(S.Number.pipe(T.Query())),
|
|
1263
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1264
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1265
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1266
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1267
|
+
status_filter: S.optional(S.String.pipe(T.Query())),
|
|
1268
|
+
cache_hit_filter: S.optional(S.String.pipe(T.Query())),
|
|
1269
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
1270
|
+
model_id: S.optional(S.String.pipe(T.Query())),
|
|
1271
|
+
model_group: S.optional(S.String.pipe(T.Query())),
|
|
1272
|
+
key_alias: S.optional(S.String.pipe(T.Query())),
|
|
1273
|
+
end_user: S.optional(S.String.pipe(T.Query())),
|
|
1274
|
+
error_code: S.optional(S.String.pipe(T.Query())),
|
|
1275
|
+
error_message: S.optional(S.String.pipe(T.Query())),
|
|
1276
|
+
sort_by: S.optional(S.String.pipe(T.Query())),
|
|
1277
|
+
sort_order: S.optional(S.String.pipe(T.Query())),
|
|
1278
|
+
exclude_internal_health_checks: S.optional(S.Boolean.pipe(T.Query())),
|
|
1279
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs/v2", code: 200 })),
|
|
1280
|
+
).annotate({
|
|
1281
|
+
identifier: "GetUiViewSpendLogsSpendLogsV2Request",
|
|
1282
|
+
}) as any as S.Schema<GetUiViewSpendLogsSpendLogsV2Request>;
|
|
1283
|
+
|
|
1284
|
+
export type GetUiViewSpendLogsSpendLogsV2ResponseBodyMap = {
|
|
1285
|
+
[key: string]: unknown | undefined;
|
|
1286
|
+
};
|
|
1287
|
+
export const GetUiViewSpendLogsSpendLogsV2ResponseBodyMap =
|
|
1288
|
+
/*@__PURE__*/ S.Record(
|
|
1289
|
+
S.String,
|
|
1290
|
+
S.Unknown,
|
|
1291
|
+
) as any as S.Schema<GetUiViewSpendLogsSpendLogsV2ResponseBodyMap>;
|
|
1292
|
+
|
|
1293
|
+
export interface GetUiViewSpendLogsSpendLogsV2Response {
|
|
1294
|
+
body: GetUiViewSpendLogsSpendLogsV2ResponseBodyMap;
|
|
1295
|
+
}
|
|
1296
|
+
export const GetUiViewSpendLogsSpendLogsV2Response = /*@__PURE__*/ S.suspend(
|
|
1297
|
+
() =>
|
|
1298
|
+
S.Struct({
|
|
1299
|
+
body: GetUiViewSpendLogsSpendLogsV2ResponseBodyMap,
|
|
1300
|
+
}),
|
|
1301
|
+
).annotate({
|
|
1302
|
+
identifier: "GetUiViewSpendLogsSpendLogsV2Response",
|
|
1303
|
+
}) as any as S.Schema<GetUiViewSpendLogsSpendLogsV2Response>;
|
|
1304
|
+
|
|
1305
|
+
export interface GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest {
|
|
1306
|
+
/** Start date in YYYY-MM-DD format */
|
|
1307
|
+
start_date?: string;
|
|
1308
|
+
/** End date in YYYY-MM-DD format */
|
|
1309
|
+
end_date?: string;
|
|
1310
|
+
/** Filter by specific model */
|
|
1311
|
+
model?: string;
|
|
1312
|
+
/** Filter by specific API key */
|
|
1313
|
+
api_key?: string;
|
|
1314
|
+
/** Filter by specific user ID. Admins can filter by any user or omit for global view. Non-admins must provide their own user_id. */
|
|
1315
|
+
user_id?: string;
|
|
1316
|
+
/** Timezone offset in minutes from UTC (e.g., 480 for PST). Matches JavaScript's Date.getTimezoneOffset() convention. */
|
|
1317
|
+
timezone?: number;
|
|
1318
|
+
/** When the range ends on the caller's current local day, extend it to today's UTC bucket so spend written after the caller's local midnight (in UTC terms) is included. Requires the timezone parameter. Historical ranges are never extended. */
|
|
1319
|
+
include_current_utc_day?: boolean;
|
|
1320
|
+
}
|
|
1321
|
+
export const GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest =
|
|
1322
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1323
|
+
S.Struct({
|
|
1324
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1325
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1326
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
1327
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
1328
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
1329
|
+
timezone: S.optional(S.Number.pipe(T.Query())),
|
|
1330
|
+
include_current_utc_day: S.optional(S.Boolean.pipe(T.Query())),
|
|
1331
|
+
}).pipe(
|
|
1332
|
+
T.Http({
|
|
1333
|
+
method: "GET",
|
|
1334
|
+
uri: "/user/daily/activity/aggregated",
|
|
1335
|
+
code: 200,
|
|
1336
|
+
}),
|
|
1337
|
+
),
|
|
1338
|
+
).annotate({
|
|
1339
|
+
identifier:
|
|
1340
|
+
"GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest",
|
|
1341
|
+
}) as any as S.Schema<GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest>;
|
|
1342
|
+
|
|
1343
|
+
export interface DailySpendMetadata {
|
|
1344
|
+
has_more?: boolean;
|
|
1345
|
+
page?: number;
|
|
1346
|
+
total_api_requests?: number;
|
|
1347
|
+
total_autorouter_savings_spend?: number;
|
|
1348
|
+
total_cache_creation_input_tokens?: number;
|
|
1349
|
+
total_cache_read_input_tokens?: number;
|
|
1350
|
+
total_completion_tokens?: number;
|
|
1351
|
+
total_compression_saved_tokens?: number;
|
|
1352
|
+
total_compression_savings_spend?: number;
|
|
1353
|
+
total_failed_requests?: number;
|
|
1354
|
+
total_flat_cost?: number;
|
|
1355
|
+
total_gateway_injected_caching_savings_spend?: number;
|
|
1356
|
+
total_pages?: number;
|
|
1357
|
+
total_prompt_caching_savings_spend?: number;
|
|
1358
|
+
total_prompt_tokens?: number;
|
|
1359
|
+
total_spend?: number;
|
|
1360
|
+
total_successful_requests?: number;
|
|
1361
|
+
total_tokens?: number;
|
|
1362
|
+
}
|
|
1363
|
+
export const DailySpendMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
1364
|
+
S.Struct({
|
|
1365
|
+
has_more: S.optional(S.Boolean),
|
|
1366
|
+
page: S.optional(S.Number),
|
|
1367
|
+
total_api_requests: S.optional(S.Number),
|
|
1368
|
+
total_autorouter_savings_spend: S.optional(S.Number),
|
|
1369
|
+
total_cache_creation_input_tokens: S.optional(S.Number),
|
|
1370
|
+
total_cache_read_input_tokens: S.optional(S.Number),
|
|
1371
|
+
total_completion_tokens: S.optional(S.Number),
|
|
1372
|
+
total_compression_saved_tokens: S.optional(S.Number),
|
|
1373
|
+
total_compression_savings_spend: S.optional(S.Number),
|
|
1374
|
+
total_failed_requests: S.optional(S.Number),
|
|
1375
|
+
total_flat_cost: S.optional(S.Number),
|
|
1376
|
+
total_gateway_injected_caching_savings_spend: S.optional(S.Number),
|
|
1377
|
+
total_pages: S.optional(S.Number),
|
|
1378
|
+
total_prompt_caching_savings_spend: S.optional(S.Number),
|
|
1379
|
+
total_prompt_tokens: S.optional(S.Number),
|
|
1380
|
+
total_spend: S.optional(S.Number),
|
|
1381
|
+
total_successful_requests: S.optional(S.Number),
|
|
1382
|
+
total_tokens: S.optional(S.Number),
|
|
1383
|
+
}),
|
|
1384
|
+
).annotate({
|
|
1385
|
+
identifier: "DailySpendMetadata",
|
|
1386
|
+
}) as any as S.Schema<DailySpendMetadata>;
|
|
1387
|
+
|
|
1388
|
+
/** Metadata for a key */
|
|
1389
|
+
export interface KeyMetadata {
|
|
1390
|
+
key_alias?: string | null;
|
|
1391
|
+
team_id?: string | null;
|
|
1392
|
+
}
|
|
1393
|
+
export const KeyMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
1394
|
+
S.Struct({
|
|
1395
|
+
key_alias: S.optional(S.NullOr(S.String)),
|
|
1396
|
+
team_id: S.optional(S.NullOr(S.String)),
|
|
1397
|
+
}),
|
|
1398
|
+
).annotate({ identifier: "KeyMetadata" }) as any as S.Schema<KeyMetadata>;
|
|
1399
|
+
|
|
1400
|
+
export interface SpendMetrics {
|
|
1401
|
+
api_requests?: number;
|
|
1402
|
+
autorouter_savings_spend?: number;
|
|
1403
|
+
cache_creation_input_tokens?: number;
|
|
1404
|
+
cache_read_input_tokens?: number;
|
|
1405
|
+
completion_tokens?: number;
|
|
1406
|
+
compression_saved_tokens?: number;
|
|
1407
|
+
compression_savings_spend?: number;
|
|
1408
|
+
failed_requests?: number;
|
|
1409
|
+
flat_cost?: number;
|
|
1410
|
+
gateway_injected_caching_savings_spend?: number;
|
|
1411
|
+
prompt_caching_savings_spend?: number;
|
|
1412
|
+
prompt_tokens?: number;
|
|
1413
|
+
spend?: number;
|
|
1414
|
+
successful_requests?: number;
|
|
1415
|
+
total_tokens?: number;
|
|
1416
|
+
}
|
|
1417
|
+
export const SpendMetrics = /*@__PURE__*/ S.suspend(() =>
|
|
1418
|
+
S.Struct({
|
|
1419
|
+
api_requests: S.optional(S.Number),
|
|
1420
|
+
autorouter_savings_spend: S.optional(S.Number),
|
|
1421
|
+
cache_creation_input_tokens: S.optional(S.Number),
|
|
1422
|
+
cache_read_input_tokens: S.optional(S.Number),
|
|
1423
|
+
completion_tokens: S.optional(S.Number),
|
|
1424
|
+
compression_saved_tokens: S.optional(S.Number),
|
|
1425
|
+
compression_savings_spend: S.optional(S.Number),
|
|
1426
|
+
failed_requests: S.optional(S.Number),
|
|
1427
|
+
flat_cost: S.optional(S.Number),
|
|
1428
|
+
gateway_injected_caching_savings_spend: S.optional(S.Number),
|
|
1429
|
+
prompt_caching_savings_spend: S.optional(S.Number),
|
|
1430
|
+
prompt_tokens: S.optional(S.Number),
|
|
1431
|
+
spend: S.optional(S.Number),
|
|
1432
|
+
successful_requests: S.optional(S.Number),
|
|
1433
|
+
total_tokens: S.optional(S.Number),
|
|
1434
|
+
}),
|
|
1435
|
+
).annotate({ identifier: "SpendMetrics" }) as any as S.Schema<SpendMetrics>;
|
|
1436
|
+
|
|
1437
|
+
/** Base class for metrics with additional metadata */
|
|
1438
|
+
export interface KeyMetricWithMetadata {
|
|
1439
|
+
metadata?: KeyMetadata;
|
|
1440
|
+
metrics: SpendMetrics;
|
|
1441
|
+
}
|
|
1442
|
+
export const KeyMetricWithMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
1443
|
+
S.Struct({
|
|
1444
|
+
metadata: S.optional(KeyMetadata),
|
|
1445
|
+
metrics: SpendMetrics,
|
|
1446
|
+
}),
|
|
1447
|
+
).annotate({
|
|
1448
|
+
identifier: "KeyMetricWithMetadata",
|
|
1449
|
+
}) as any as S.Schema<KeyMetricWithMetadata>;
|
|
1450
|
+
|
|
1451
|
+
export type BreakdownMetricsApiKeysMap = {
|
|
1452
|
+
[key: string]: KeyMetricWithMetadata | undefined;
|
|
1453
|
+
};
|
|
1454
|
+
export const BreakdownMetricsApiKeysMap = /*@__PURE__*/ S.Record(
|
|
1455
|
+
S.String,
|
|
1456
|
+
KeyMetricWithMetadata,
|
|
1457
|
+
) as any as S.Schema<BreakdownMetricsApiKeysMap>;
|
|
1458
|
+
|
|
1459
|
+
export type MetricWithMetadataApiKeyBreakdownMap = {
|
|
1460
|
+
[key: string]: KeyMetricWithMetadata | undefined;
|
|
1461
|
+
};
|
|
1462
|
+
export const MetricWithMetadataApiKeyBreakdownMap = /*@__PURE__*/ S.Record(
|
|
1463
|
+
S.String,
|
|
1464
|
+
KeyMetricWithMetadata,
|
|
1465
|
+
) as any as S.Schema<MetricWithMetadataApiKeyBreakdownMap>;
|
|
1466
|
+
|
|
1467
|
+
export type MetricWithMetadataMetadataMap = {
|
|
1468
|
+
[key: string]: unknown | undefined;
|
|
1469
|
+
};
|
|
1470
|
+
export const MetricWithMetadataMetadataMap = /*@__PURE__*/ S.Record(
|
|
1471
|
+
S.String,
|
|
1472
|
+
S.Unknown,
|
|
1473
|
+
) as any as S.Schema<MetricWithMetadataMetadataMap>;
|
|
1474
|
+
|
|
1475
|
+
export interface MetricWithMetadata {
|
|
1476
|
+
api_key_breakdown?: MetricWithMetadataApiKeyBreakdownMap;
|
|
1477
|
+
metadata?: MetricWithMetadataMetadataMap;
|
|
1478
|
+
metrics: SpendMetrics;
|
|
1479
|
+
}
|
|
1480
|
+
export const MetricWithMetadata = /*@__PURE__*/ S.suspend(() =>
|
|
1481
|
+
S.Struct({
|
|
1482
|
+
api_key_breakdown: S.optional(MetricWithMetadataApiKeyBreakdownMap),
|
|
1483
|
+
metadata: S.optional(MetricWithMetadataMetadataMap),
|
|
1484
|
+
metrics: SpendMetrics,
|
|
1485
|
+
}),
|
|
1486
|
+
).annotate({
|
|
1487
|
+
identifier: "MetricWithMetadata",
|
|
1488
|
+
}) as any as S.Schema<MetricWithMetadata>;
|
|
1489
|
+
|
|
1490
|
+
export type BreakdownMetricsEndpointsMap = {
|
|
1491
|
+
[key: string]: MetricWithMetadata | undefined;
|
|
1492
|
+
};
|
|
1493
|
+
export const BreakdownMetricsEndpointsMap = /*@__PURE__*/ S.Record(
|
|
1494
|
+
S.String,
|
|
1495
|
+
MetricWithMetadata,
|
|
1496
|
+
) as any as S.Schema<BreakdownMetricsEndpointsMap>;
|
|
1497
|
+
|
|
1498
|
+
export type BreakdownMetricsEntitiesMap = {
|
|
1499
|
+
[key: string]: MetricWithMetadata | undefined;
|
|
1500
|
+
};
|
|
1501
|
+
export const BreakdownMetricsEntitiesMap = /*@__PURE__*/ S.Record(
|
|
1502
|
+
S.String,
|
|
1503
|
+
MetricWithMetadata,
|
|
1504
|
+
) as any as S.Schema<BreakdownMetricsEntitiesMap>;
|
|
1505
|
+
|
|
1506
|
+
export type BreakdownMetricsMcpServersMap = {
|
|
1507
|
+
[key: string]: MetricWithMetadata | undefined;
|
|
1508
|
+
};
|
|
1509
|
+
export const BreakdownMetricsMcpServersMap = /*@__PURE__*/ S.Record(
|
|
1510
|
+
S.String,
|
|
1511
|
+
MetricWithMetadata,
|
|
1512
|
+
) as any as S.Schema<BreakdownMetricsMcpServersMap>;
|
|
1513
|
+
|
|
1514
|
+
export type BreakdownMetricsModelGroupsMap = {
|
|
1515
|
+
[key: string]: MetricWithMetadata | undefined;
|
|
1516
|
+
};
|
|
1517
|
+
export const BreakdownMetricsModelGroupsMap = /*@__PURE__*/ S.Record(
|
|
1518
|
+
S.String,
|
|
1519
|
+
MetricWithMetadata,
|
|
1520
|
+
) as any as S.Schema<BreakdownMetricsModelGroupsMap>;
|
|
1521
|
+
|
|
1522
|
+
export type BreakdownMetricsModelsMap = {
|
|
1523
|
+
[key: string]: MetricWithMetadata | undefined;
|
|
1524
|
+
};
|
|
1525
|
+
export const BreakdownMetricsModelsMap = /*@__PURE__*/ S.Record(
|
|
1526
|
+
S.String,
|
|
1527
|
+
MetricWithMetadata,
|
|
1528
|
+
) as any as S.Schema<BreakdownMetricsModelsMap>;
|
|
1529
|
+
|
|
1530
|
+
export type BreakdownMetricsProvidersMap = {
|
|
1531
|
+
[key: string]: MetricWithMetadata | undefined;
|
|
1532
|
+
};
|
|
1533
|
+
export const BreakdownMetricsProvidersMap = /*@__PURE__*/ S.Record(
|
|
1534
|
+
S.String,
|
|
1535
|
+
MetricWithMetadata,
|
|
1536
|
+
) as any as S.Schema<BreakdownMetricsProvidersMap>;
|
|
1537
|
+
|
|
1538
|
+
/** Breakdown of spend by different dimensions */
|
|
1539
|
+
export interface BreakdownMetrics {
|
|
1540
|
+
api_keys?: BreakdownMetricsApiKeysMap;
|
|
1541
|
+
endpoints?: BreakdownMetricsEndpointsMap;
|
|
1542
|
+
entities?: BreakdownMetricsEntitiesMap;
|
|
1543
|
+
mcp_servers?: BreakdownMetricsMcpServersMap;
|
|
1544
|
+
model_groups?: BreakdownMetricsModelGroupsMap;
|
|
1545
|
+
models?: BreakdownMetricsModelsMap;
|
|
1546
|
+
providers?: BreakdownMetricsProvidersMap;
|
|
1547
|
+
}
|
|
1548
|
+
export const BreakdownMetrics = /*@__PURE__*/ S.suspend(() =>
|
|
1549
|
+
S.Struct({
|
|
1550
|
+
api_keys: S.optional(BreakdownMetricsApiKeysMap),
|
|
1551
|
+
endpoints: S.optional(BreakdownMetricsEndpointsMap),
|
|
1552
|
+
entities: S.optional(BreakdownMetricsEntitiesMap),
|
|
1553
|
+
mcp_servers: S.optional(BreakdownMetricsMcpServersMap),
|
|
1554
|
+
model_groups: S.optional(BreakdownMetricsModelGroupsMap),
|
|
1555
|
+
models: S.optional(BreakdownMetricsModelsMap),
|
|
1556
|
+
providers: S.optional(BreakdownMetricsProvidersMap),
|
|
1557
|
+
}),
|
|
1558
|
+
).annotate({
|
|
1559
|
+
identifier: "BreakdownMetrics",
|
|
1560
|
+
}) as any as S.Schema<BreakdownMetrics>;
|
|
1561
|
+
|
|
1562
|
+
export interface DailySpendData {
|
|
1563
|
+
breakdown?: BreakdownMetrics;
|
|
1564
|
+
date: string;
|
|
1565
|
+
metrics: SpendMetrics;
|
|
1566
|
+
}
|
|
1567
|
+
export const DailySpendData = /*@__PURE__*/ S.suspend(() =>
|
|
1568
|
+
S.Struct({
|
|
1569
|
+
breakdown: S.optional(BreakdownMetrics),
|
|
1570
|
+
date: S.String,
|
|
1571
|
+
metrics: SpendMetrics,
|
|
1572
|
+
}),
|
|
1573
|
+
).annotate({ identifier: "DailySpendData" }) as any as S.Schema<DailySpendData>;
|
|
1574
|
+
|
|
1575
|
+
export type SpendAnalyticsPaginatedResponseResultsList = Array<DailySpendData>;
|
|
1576
|
+
export const SpendAnalyticsPaginatedResponseResultsList = /*@__PURE__*/ S.Array(
|
|
1577
|
+
DailySpendData,
|
|
1578
|
+
) as any as S.Schema<SpendAnalyticsPaginatedResponseResultsList>;
|
|
1579
|
+
|
|
1580
|
+
export interface SpendAnalyticsPaginatedResponse {
|
|
1581
|
+
metadata?: DailySpendMetadata;
|
|
1582
|
+
results: SpendAnalyticsPaginatedResponseResultsList;
|
|
1583
|
+
}
|
|
1584
|
+
export const SpendAnalyticsPaginatedResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1585
|
+
S.Struct({
|
|
1586
|
+
metadata: S.optional(DailySpendMetadata),
|
|
1587
|
+
results: SpendAnalyticsPaginatedResponseResultsList,
|
|
1588
|
+
}),
|
|
1589
|
+
).annotate({
|
|
1590
|
+
identifier: "SpendAnalyticsPaginatedResponse",
|
|
1591
|
+
}) as any as S.Schema<SpendAnalyticsPaginatedResponse>;
|
|
1592
|
+
|
|
1593
|
+
export interface GetUserDailyActivityUserDailyActivityGetRequest {
|
|
1594
|
+
/** Start date in YYYY-MM-DD format */
|
|
1595
|
+
start_date?: string;
|
|
1596
|
+
/** End date in YYYY-MM-DD format */
|
|
1597
|
+
end_date?: string;
|
|
1598
|
+
/** Filter by specific model */
|
|
1599
|
+
model?: string;
|
|
1600
|
+
/** Filter by specific API key */
|
|
1601
|
+
api_key?: string;
|
|
1602
|
+
/** Filter by specific user ID. Admins can filter by any user or omit for global view. Non-admins must provide their own user_id. */
|
|
1603
|
+
user_id?: string;
|
|
1604
|
+
/** Page number for pagination */
|
|
1605
|
+
page?: number;
|
|
1606
|
+
/** Items per page */
|
|
1607
|
+
page_size?: number;
|
|
1608
|
+
/** Timezone offset in minutes from UTC (e.g., 480 for PST). Matches JavaScript's Date.getTimezoneOffset() convention. */
|
|
1609
|
+
timezone?: number;
|
|
1610
|
+
/** When the range ends on the caller's current local day, extend it to today's UTC bucket so spend written after the caller's local midnight (in UTC terms) is included. Requires the timezone parameter. Historical ranges are never extended. */
|
|
1611
|
+
include_current_utc_day?: boolean;
|
|
1612
|
+
}
|
|
1613
|
+
export const GetUserDailyActivityUserDailyActivityGetRequest =
|
|
1614
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1615
|
+
S.Struct({
|
|
1616
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1617
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1618
|
+
model: S.optional(S.String.pipe(T.Query())),
|
|
1619
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
1620
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
1621
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1622
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1623
|
+
timezone: S.optional(S.Number.pipe(T.Query())),
|
|
1624
|
+
include_current_utc_day: S.optional(S.Boolean.pipe(T.Query())),
|
|
1625
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/daily/activity", code: 200 })),
|
|
1626
|
+
).annotate({
|
|
1627
|
+
identifier: "GetUserDailyActivityUserDailyActivityGetRequest",
|
|
1628
|
+
}) as any as S.Schema<GetUserDailyActivityUserDailyActivityGetRequest>;
|
|
1629
|
+
|
|
1630
|
+
export interface GetUserSpendReportUserSpendReportGetRequest {
|
|
1631
|
+
/** Time from which to start viewing spend (YYYY-MM-DD) */
|
|
1632
|
+
start_date?: string;
|
|
1633
|
+
/** Time till which to view spend (YYYY-MM-DD) */
|
|
1634
|
+
end_date?: string;
|
|
1635
|
+
/** View spend for a specific internal_user_id. Proxy admin only; other callers are scoped to their own user_id. */
|
|
1636
|
+
internal_user_id?: string;
|
|
1637
|
+
}
|
|
1638
|
+
export const GetUserSpendReportUserSpendReportGetRequest =
|
|
1639
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1640
|
+
S.Struct({
|
|
1641
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1642
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1643
|
+
internal_user_id: S.optional(S.String.pipe(T.Query())),
|
|
1644
|
+
}).pipe(T.Http({ method: "GET", uri: "/user/spend/report", code: 200 })),
|
|
1645
|
+
).annotate({
|
|
1646
|
+
identifier: "GetUserSpendReportUserSpendReportGetRequest",
|
|
1647
|
+
}) as any as S.Schema<GetUserSpendReportUserSpendReportGetRequest>;
|
|
1648
|
+
|
|
1649
|
+
export type GetUserSpendReportUserSpendReportGetResponseBodyItemMap = {
|
|
1650
|
+
[key: string]: unknown | undefined;
|
|
1651
|
+
};
|
|
1652
|
+
export const GetUserSpendReportUserSpendReportGetResponseBodyItemMap =
|
|
1653
|
+
/*@__PURE__*/ S.Record(
|
|
1654
|
+
S.String,
|
|
1655
|
+
S.Unknown,
|
|
1656
|
+
) as any as S.Schema<GetUserSpendReportUserSpendReportGetResponseBodyItemMap>;
|
|
1657
|
+
|
|
1658
|
+
export type GetUserSpendReportUserSpendReportGetResponseBodyList =
|
|
1659
|
+
Array<GetUserSpendReportUserSpendReportGetResponseBodyItemMap>;
|
|
1660
|
+
export const GetUserSpendReportUserSpendReportGetResponseBodyList =
|
|
1661
|
+
/*@__PURE__*/ S.Array(
|
|
1662
|
+
GetUserSpendReportUserSpendReportGetResponseBodyItemMap,
|
|
1663
|
+
) as any as S.Schema<GetUserSpendReportUserSpendReportGetResponseBodyList>;
|
|
1664
|
+
|
|
1665
|
+
export interface GetUserSpendReportUserSpendReportGetResponse {
|
|
1666
|
+
body: GetUserSpendReportUserSpendReportGetResponseBodyList;
|
|
1667
|
+
}
|
|
1668
|
+
export const GetUserSpendReportUserSpendReportGetResponse =
|
|
1669
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1670
|
+
S.Struct({
|
|
1671
|
+
body: GetUserSpendReportUserSpendReportGetResponseBodyList,
|
|
1672
|
+
}),
|
|
1673
|
+
).annotate({
|
|
1674
|
+
identifier: "GetUserSpendReportUserSpendReportGetResponse",
|
|
1675
|
+
}) as any as S.Schema<GetUserSpendReportUserSpendReportGetResponse>;
|
|
1676
|
+
|
|
1677
|
+
export interface GetViewSpendLogsSpendLogRequest {
|
|
1678
|
+
/** Get spend logs based on api key */
|
|
1679
|
+
api_key?: string;
|
|
1680
|
+
/** Get spend logs based on user_id */
|
|
1681
|
+
user_id?: string;
|
|
1682
|
+
/** request_id to get spend logs for specific request_id. If none passed then pass spend logs for all requests */
|
|
1683
|
+
request_id?: string;
|
|
1684
|
+
/** Time from which to start viewing key spend */
|
|
1685
|
+
start_date?: string;
|
|
1686
|
+
/** Time till which to view key spend */
|
|
1687
|
+
end_date?: string;
|
|
1688
|
+
/** When start_date and end_date are provided, summarize=true returns aggregated data by date (legacy behavior), summarize=false returns filtered individual logs */
|
|
1689
|
+
summarize?: boolean;
|
|
1690
|
+
}
|
|
1691
|
+
export const GetViewSpendLogsSpendLogRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1692
|
+
S.Struct({
|
|
1693
|
+
api_key: S.optional(S.String.pipe(T.Query())),
|
|
1694
|
+
user_id: S.optional(S.String.pipe(T.Query())),
|
|
1695
|
+
request_id: S.optional(S.String.pipe(T.Query())),
|
|
1696
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1697
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1698
|
+
summarize: S.optional(S.Boolean.pipe(T.Query())),
|
|
1699
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/logs", code: 200 })),
|
|
1700
|
+
).annotate({
|
|
1701
|
+
identifier: "GetViewSpendLogsSpendLogRequest",
|
|
1702
|
+
}) as any as S.Schema<GetViewSpendLogsSpendLogRequest>;
|
|
1703
|
+
|
|
1704
|
+
export type GetViewSpendLogsSpendLogResponseBodyList = Array<LiteLLMSpendLogs>;
|
|
1705
|
+
export const GetViewSpendLogsSpendLogResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1706
|
+
LiteLLMSpendLogs,
|
|
1707
|
+
) as any as S.Schema<GetViewSpendLogsSpendLogResponseBodyList>;
|
|
1708
|
+
|
|
1709
|
+
export interface GetViewSpendLogsSpendLogResponse {
|
|
1710
|
+
body: GetViewSpendLogsSpendLogResponseBodyList;
|
|
1711
|
+
}
|
|
1712
|
+
export const GetViewSpendLogsSpendLogResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1713
|
+
S.Struct({
|
|
1714
|
+
body: GetViewSpendLogsSpendLogResponseBodyList,
|
|
1715
|
+
}),
|
|
1716
|
+
).annotate({
|
|
1717
|
+
identifier: "GetViewSpendLogsSpendLogResponse",
|
|
1718
|
+
}) as any as S.Schema<GetViewSpendLogsSpendLogResponse>;
|
|
1719
|
+
|
|
1720
|
+
export interface GetViewSpendTagsSpendTagRequest {
|
|
1721
|
+
/** Time from which to start viewing key spend */
|
|
1722
|
+
start_date?: string;
|
|
1723
|
+
/** Time till which to view key spend */
|
|
1724
|
+
end_date?: string;
|
|
1725
|
+
}
|
|
1726
|
+
export const GetViewSpendTagsSpendTagRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1727
|
+
S.Struct({
|
|
1728
|
+
start_date: S.optional(S.String.pipe(T.Query())),
|
|
1729
|
+
end_date: S.optional(S.String.pipe(T.Query())),
|
|
1730
|
+
}).pipe(T.Http({ method: "GET", uri: "/spend/tags", code: 200 })),
|
|
1731
|
+
).annotate({
|
|
1732
|
+
identifier: "GetViewSpendTagsSpendTagRequest",
|
|
1733
|
+
}) as any as S.Schema<GetViewSpendTagsSpendTagRequest>;
|
|
1734
|
+
|
|
1735
|
+
export type GetViewSpendTagsSpendTagResponseBodyList = Array<LiteLLMSpendLogs>;
|
|
1736
|
+
export const GetViewSpendTagsSpendTagResponseBodyList = /*@__PURE__*/ S.Array(
|
|
1737
|
+
LiteLLMSpendLogs,
|
|
1738
|
+
) as any as S.Schema<GetViewSpendTagsSpendTagResponseBodyList>;
|
|
1739
|
+
|
|
1740
|
+
export interface GetViewSpendTagsSpendTagResponse {
|
|
1741
|
+
body: GetViewSpendTagsSpendTagResponseBodyList;
|
|
1742
|
+
}
|
|
1743
|
+
export const GetViewSpendTagsSpendTagResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1744
|
+
S.Struct({
|
|
1745
|
+
body: GetViewSpendTagsSpendTagResponseBodyList,
|
|
1746
|
+
}),
|
|
1747
|
+
).annotate({
|
|
1748
|
+
identifier: "GetViewSpendTagsSpendTagResponse",
|
|
1749
|
+
}) as any as S.Schema<GetViewSpendTagsSpendTagResponse>;
|
|
1750
|
+
|
|
1751
|
+
export interface GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest {}
|
|
1752
|
+
export const GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest =
|
|
1753
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1754
|
+
S.Struct({}).pipe(
|
|
1755
|
+
T.Http({ method: "GET", uri: "/global/spend/all_tag_names", code: 200 }),
|
|
1756
|
+
),
|
|
1757
|
+
).annotate({
|
|
1758
|
+
identifier: "GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest",
|
|
1759
|
+
}) as any as S.Schema<GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest>;
|
|
1760
|
+
|
|
1761
|
+
export type GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList =
|
|
1762
|
+
Array<LiteLLMSpendLogs>;
|
|
1763
|
+
export const GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList =
|
|
1764
|
+
/*@__PURE__*/ S.Array(
|
|
1765
|
+
LiteLLMSpendLogs,
|
|
1766
|
+
) as any as S.Schema<GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList>;
|
|
1767
|
+
|
|
1768
|
+
export interface GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse {
|
|
1769
|
+
body: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList;
|
|
1770
|
+
}
|
|
1771
|
+
export const GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse =
|
|
1772
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1773
|
+
S.Struct({
|
|
1774
|
+
body: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponseBodyList,
|
|
1775
|
+
}),
|
|
1776
|
+
).annotate({
|
|
1777
|
+
identifier: "GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse",
|
|
1778
|
+
}) as any as S.Schema<GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse>;
|
|
1779
|
+
|
|
1780
|
+
export interface GlobalSpendRefreshGlobalSpendRefreshPostRequest {}
|
|
1781
|
+
export const GlobalSpendRefreshGlobalSpendRefreshPostRequest =
|
|
1782
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1783
|
+
S.Struct({}).pipe(
|
|
1784
|
+
T.Http({ method: "POST", uri: "/global/spend/refresh", code: 200 }),
|
|
1785
|
+
),
|
|
1786
|
+
).annotate({
|
|
1787
|
+
identifier: "GlobalSpendRefreshGlobalSpendRefreshPostRequest",
|
|
1788
|
+
}) as any as S.Schema<GlobalSpendRefreshGlobalSpendRefreshPostRequest>;
|
|
1789
|
+
|
|
1790
|
+
export interface GlobalSpendRefreshGlobalSpendRefreshPostResponse {
|
|
1791
|
+
body: unknown;
|
|
1792
|
+
}
|
|
1793
|
+
export const GlobalSpendRefreshGlobalSpendRefreshPostResponse =
|
|
1794
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1795
|
+
S.Struct({
|
|
1796
|
+
body: S.Unknown,
|
|
1797
|
+
}),
|
|
1798
|
+
).annotate({
|
|
1799
|
+
identifier: "GlobalSpendRefreshGlobalSpendRefreshPostResponse",
|
|
1800
|
+
}) as any as S.Schema<GlobalSpendRefreshGlobalSpendRefreshPostResponse>;
|
|
1801
|
+
|
|
1802
|
+
export interface GlobalSpendResetGlobalSpendResetPostRequest {}
|
|
1803
|
+
export const GlobalSpendResetGlobalSpendResetPostRequest =
|
|
1804
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1805
|
+
S.Struct({}).pipe(
|
|
1806
|
+
T.Http({ method: "POST", uri: "/global/spend/reset", code: 200 }),
|
|
1807
|
+
),
|
|
1808
|
+
).annotate({
|
|
1809
|
+
identifier: "GlobalSpendResetGlobalSpendResetPostRequest",
|
|
1810
|
+
}) as any as S.Schema<GlobalSpendResetGlobalSpendResetPostRequest>;
|
|
1811
|
+
|
|
1812
|
+
export interface GlobalSpendResetGlobalSpendResetPostResponse {
|
|
1813
|
+
body: unknown;
|
|
1814
|
+
}
|
|
1815
|
+
export const GlobalSpendResetGlobalSpendResetPostResponse =
|
|
1816
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1817
|
+
S.Struct({
|
|
1818
|
+
body: S.Unknown,
|
|
1819
|
+
}),
|
|
1820
|
+
).annotate({
|
|
1821
|
+
identifier: "GlobalSpendResetGlobalSpendResetPostResponse",
|
|
1822
|
+
}) as any as S.Schema<GlobalSpendResetGlobalSpendResetPostResponse>;
|
|
1823
|
+
|
|
1824
|
+
export interface ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest {
|
|
1825
|
+
/** Window start (UTC when no offset is given) */
|
|
1826
|
+
filter_startTime__gte_: string;
|
|
1827
|
+
/** Window end (UTC when no offset is given) */
|
|
1828
|
+
filter_startTime__lte_: string;
|
|
1829
|
+
/** Case-insensitive partial match on the end user id */
|
|
1830
|
+
q?: string;
|
|
1831
|
+
/** Page number */
|
|
1832
|
+
page?: number;
|
|
1833
|
+
/** Page size */
|
|
1834
|
+
page_size?: number;
|
|
1835
|
+
}
|
|
1836
|
+
export const ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest =
|
|
1837
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1838
|
+
S.Struct({
|
|
1839
|
+
filter_startTime__gte_: S.String.pipe(T.Query("filter[startTime][gte]")),
|
|
1840
|
+
filter_startTime__lte_: S.String.pipe(T.Query("filter[startTime][lte]")),
|
|
1841
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
1842
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1843
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1844
|
+
}).pipe(
|
|
1845
|
+
T.Http({
|
|
1846
|
+
method: "GET",
|
|
1847
|
+
uri: "/management/v1/spend_logs/end_users",
|
|
1848
|
+
code: 200,
|
|
1849
|
+
}),
|
|
1850
|
+
),
|
|
1851
|
+
).annotate({
|
|
1852
|
+
identifier: "ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest",
|
|
1853
|
+
}) as any as S.Schema<ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest>;
|
|
1854
|
+
|
|
1855
|
+
export type FacetListResponseDataList = Array<string>;
|
|
1856
|
+
export const FacetListResponseDataList = /*@__PURE__*/ S.Array(
|
|
1857
|
+
S.String,
|
|
1858
|
+
) as any as S.Schema<FacetListResponseDataList>;
|
|
1859
|
+
|
|
1860
|
+
/** Hypermedia for a paginated list. No `first`/`last`: without a total count the last page is unknown. */
|
|
1861
|
+
export interface PageLinks {
|
|
1862
|
+
next?: string | null;
|
|
1863
|
+
prev?: string | null;
|
|
1864
|
+
self: string;
|
|
1865
|
+
}
|
|
1866
|
+
export const PageLinks = /*@__PURE__*/ S.suspend(() =>
|
|
1867
|
+
S.Struct({
|
|
1868
|
+
next: S.optional(S.NullOr(S.String)),
|
|
1869
|
+
prev: S.optional(S.NullOr(S.String)),
|
|
1870
|
+
self: S.String,
|
|
1871
|
+
}),
|
|
1872
|
+
).annotate({ identifier: "PageLinks" }) as any as S.Schema<PageLinks>;
|
|
1873
|
+
|
|
1874
|
+
/** `has_more` rather than `total_count`, which would need a COUNT(*) over the whole match set per keystroke. */
|
|
1875
|
+
export interface PageMeta {
|
|
1876
|
+
has_more: boolean;
|
|
1877
|
+
page: number;
|
|
1878
|
+
page_size: number;
|
|
1879
|
+
}
|
|
1880
|
+
export const PageMeta = /*@__PURE__*/ S.suspend(() =>
|
|
1881
|
+
S.Struct({
|
|
1882
|
+
has_more: S.Boolean,
|
|
1883
|
+
page: S.Number,
|
|
1884
|
+
page_size: S.Number,
|
|
1885
|
+
}),
|
|
1886
|
+
).annotate({ identifier: "PageMeta" }) as any as S.Schema<PageMeta>;
|
|
1887
|
+
|
|
1888
|
+
/** The distinct values one column takes over a filtered query. `data` holds bare values, not entity rows. */
|
|
1889
|
+
export interface FacetListResponse {
|
|
1890
|
+
data: FacetListResponseDataList;
|
|
1891
|
+
links: PageLinks;
|
|
1892
|
+
meta: PageMeta;
|
|
1893
|
+
}
|
|
1894
|
+
export const FacetListResponse = /*@__PURE__*/ S.suspend(() =>
|
|
1895
|
+
S.Struct({
|
|
1896
|
+
data: FacetListResponseDataList,
|
|
1897
|
+
links: PageLinks,
|
|
1898
|
+
meta: PageMeta,
|
|
1899
|
+
}),
|
|
1900
|
+
).annotate({
|
|
1901
|
+
identifier: "FacetListResponse",
|
|
1902
|
+
}) as any as S.Schema<FacetListResponse>;
|
|
1903
|
+
|
|
1904
|
+
export interface ListSpendLogUsersManagementV1SpendLogsUsersGetRequest {
|
|
1905
|
+
/** Window start (UTC when no offset is given) */
|
|
1906
|
+
filter_startTime__gte_: string;
|
|
1907
|
+
/** Window end (UTC when no offset is given) */
|
|
1908
|
+
filter_startTime__lte_: string;
|
|
1909
|
+
/** Case-insensitive partial match on the internal user id */
|
|
1910
|
+
q?: string;
|
|
1911
|
+
/** Page number */
|
|
1912
|
+
page?: number;
|
|
1913
|
+
/** Page size */
|
|
1914
|
+
page_size?: number;
|
|
1915
|
+
}
|
|
1916
|
+
export const ListSpendLogUsersManagementV1SpendLogsUsersGetRequest =
|
|
1917
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
1918
|
+
S.Struct({
|
|
1919
|
+
filter_startTime__gte_: S.String.pipe(T.Query("filter[startTime][gte]")),
|
|
1920
|
+
filter_startTime__lte_: S.String.pipe(T.Query("filter[startTime][lte]")),
|
|
1921
|
+
q: S.optional(S.String.pipe(T.Query())),
|
|
1922
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
1923
|
+
page_size: S.optional(S.Number.pipe(T.Query())),
|
|
1924
|
+
}).pipe(
|
|
1925
|
+
T.Http({
|
|
1926
|
+
method: "GET",
|
|
1927
|
+
uri: "/management/v1/spend_logs/users",
|
|
1928
|
+
code: 200,
|
|
1929
|
+
}),
|
|
1930
|
+
),
|
|
1931
|
+
).annotate({
|
|
1932
|
+
identifier: "ListSpendLogUsersManagementV1SpendLogsUsersGetRequest",
|
|
1933
|
+
}) as any as S.Schema<ListSpendLogUsersManagementV1SpendLogsUsersGetRequest>;
|
|
1934
|
+
|
|
1935
|
+
export type PostCalculateSpendSpendCalculateRequestCompletionResponseMap = {
|
|
1936
|
+
[key: string]: unknown | undefined;
|
|
1937
|
+
};
|
|
1938
|
+
export const PostCalculateSpendSpendCalculateRequestCompletionResponseMap =
|
|
1939
|
+
/*@__PURE__*/ S.Record(
|
|
1940
|
+
S.String,
|
|
1941
|
+
S.Unknown,
|
|
1942
|
+
) as any as S.Schema<PostCalculateSpendSpendCalculateRequestCompletionResponseMap>;
|
|
1943
|
+
|
|
1944
|
+
export type PostCalculateSpendSpendCalculateRequestMessagesList =
|
|
1945
|
+
Array<unknown>;
|
|
1946
|
+
export const PostCalculateSpendSpendCalculateRequestMessagesList =
|
|
1947
|
+
/*@__PURE__*/ S.Array(
|
|
1948
|
+
S.Unknown,
|
|
1949
|
+
) as any as S.Schema<PostCalculateSpendSpendCalculateRequestMessagesList>;
|
|
1950
|
+
|
|
1951
|
+
export interface PostCalculateSpendSpendCalculateRequest {
|
|
1952
|
+
completion_response?: PostCalculateSpendSpendCalculateRequestCompletionResponseMap | null;
|
|
1953
|
+
messages?: PostCalculateSpendSpendCalculateRequestMessagesList | null;
|
|
1954
|
+
model?: string | null;
|
|
1955
|
+
}
|
|
1956
|
+
export const PostCalculateSpendSpendCalculateRequest = /*@__PURE__*/ S.suspend(
|
|
1957
|
+
() =>
|
|
1958
|
+
S.Struct({
|
|
1959
|
+
completion_response: S.optional(
|
|
1960
|
+
S.NullOr(PostCalculateSpendSpendCalculateRequestCompletionResponseMap),
|
|
1961
|
+
),
|
|
1962
|
+
messages: S.optional(
|
|
1963
|
+
S.NullOr(PostCalculateSpendSpendCalculateRequestMessagesList),
|
|
1964
|
+
),
|
|
1965
|
+
model: S.optional(S.NullOr(S.String)),
|
|
1966
|
+
}).pipe(T.Http({ method: "POST", uri: "/spend/calculate", code: 200 })),
|
|
1967
|
+
).annotate({
|
|
1968
|
+
identifier: "PostCalculateSpendSpendCalculateRequest",
|
|
1969
|
+
}) as any as S.Schema<PostCalculateSpendSpendCalculateRequest>;
|
|
1970
|
+
|
|
1971
|
+
export interface PostCalculateSpendSpendCalculateResponse {
|
|
1972
|
+
/** The calculated cost */
|
|
1973
|
+
cost?: number;
|
|
1974
|
+
}
|
|
1975
|
+
export const PostCalculateSpendSpendCalculateResponse = /*@__PURE__*/ S.suspend(
|
|
1976
|
+
() =>
|
|
1977
|
+
S.Struct({
|
|
1978
|
+
cost: S.optional(S.Number),
|
|
1979
|
+
}),
|
|
1980
|
+
).annotate({
|
|
1981
|
+
identifier: "PostCalculateSpendSpendCalculateResponse",
|
|
1982
|
+
}) as any as S.Schema<PostCalculateSpendSpendCalculateResponse>;
|
|
1983
|
+
|
|
1984
|
+
export interface GlobalEndUsersSpend {
|
|
1985
|
+
api_key?: string | null;
|
|
1986
|
+
endTime?: string | null;
|
|
1987
|
+
startTime?: string | null;
|
|
1988
|
+
}
|
|
1989
|
+
export const GlobalEndUsersSpend = /*@__PURE__*/ S.suspend(() =>
|
|
1990
|
+
S.Struct({
|
|
1991
|
+
api_key: S.optional(S.NullOr(S.String)),
|
|
1992
|
+
endTime: S.optional(S.NullOr(S.String)),
|
|
1993
|
+
startTime: S.optional(S.NullOr(S.String)),
|
|
1994
|
+
}),
|
|
1995
|
+
).annotate({
|
|
1996
|
+
identifier: "GlobalEndUsersSpend",
|
|
1997
|
+
}) as any as S.Schema<GlobalEndUsersSpend>;
|
|
1998
|
+
|
|
1999
|
+
export interface PostGlobalSpendEndUsersGlobalSpendEndUserRequest {
|
|
2000
|
+
body?: GlobalEndUsersSpend | null;
|
|
2001
|
+
}
|
|
2002
|
+
export const PostGlobalSpendEndUsersGlobalSpendEndUserRequest =
|
|
2003
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2004
|
+
S.Struct({
|
|
2005
|
+
body: S.optional(S.NullOr(GlobalEndUsersSpend).pipe(T.HttpBody())),
|
|
2006
|
+
}).pipe(
|
|
2007
|
+
T.Http({ method: "POST", uri: "/global/spend/end_users", code: 200 }),
|
|
2008
|
+
),
|
|
2009
|
+
).annotate({
|
|
2010
|
+
identifier: "PostGlobalSpendEndUsersGlobalSpendEndUserRequest",
|
|
2011
|
+
}) as any as S.Schema<PostGlobalSpendEndUsersGlobalSpendEndUserRequest>;
|
|
2012
|
+
|
|
2013
|
+
export interface PostGlobalSpendEndUsersGlobalSpendEndUserResponse {
|
|
2014
|
+
body: unknown;
|
|
2015
|
+
}
|
|
2016
|
+
export const PostGlobalSpendEndUsersGlobalSpendEndUserResponse =
|
|
2017
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
2018
|
+
S.Struct({
|
|
2019
|
+
body: S.Unknown,
|
|
2020
|
+
}),
|
|
2021
|
+
).annotate({
|
|
2022
|
+
identifier: "PostGlobalSpendEndUsersGlobalSpendEndUserResponse",
|
|
2023
|
+
}) as any as S.Schema<PostGlobalSpendEndUsersGlobalSpendEndUserResponse>;
|
|
2024
|
+
|
|
2025
|
+
export type AddAllowedIpAddAllowedIpPostError =
|
|
2026
|
+
| UnprocessableEntity
|
|
2027
|
+
| LitellmOpError;
|
|
2028
|
+
/** Add Allowed Ip */
|
|
2029
|
+
export const addAllowedIpAddAllowedIpPost: API.OperationMethod<
|
|
2030
|
+
AddAllowedIpAddAllowedIpPostRequest,
|
|
2031
|
+
AddAllowedIpAddAllowedIpPostResponse,
|
|
2032
|
+
AddAllowedIpAddAllowedIpPostError,
|
|
2033
|
+
LitellmOpContext
|
|
2034
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2035
|
+
input: AddAllowedIpAddAllowedIpPostRequest,
|
|
2036
|
+
output: AddAllowedIpAddAllowedIpPostResponse,
|
|
2037
|
+
errors: [UnprocessableEntity],
|
|
2038
|
+
protocol: LitellmProtocol,
|
|
2039
|
+
retry: Retry.Retry,
|
|
2040
|
+
}));
|
|
2041
|
+
|
|
2042
|
+
export type DeleteAllowedIpDeleteAllowedIpPostError =
|
|
2043
|
+
| UnprocessableEntity
|
|
2044
|
+
| LitellmOpError;
|
|
2045
|
+
/** Delete Allowed Ip */
|
|
2046
|
+
export const deleteAllowedIpDeleteAllowedIpPost: API.OperationMethod<
|
|
2047
|
+
DeleteAllowedIpDeleteAllowedIpPostRequest,
|
|
2048
|
+
DeleteAllowedIpDeleteAllowedIpPostResponse,
|
|
2049
|
+
DeleteAllowedIpDeleteAllowedIpPostError,
|
|
2050
|
+
LitellmOpContext
|
|
2051
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2052
|
+
input: DeleteAllowedIpDeleteAllowedIpPostRequest,
|
|
2053
|
+
output: DeleteAllowedIpDeleteAllowedIpPostResponse,
|
|
2054
|
+
errors: [UnprocessableEntity],
|
|
2055
|
+
protocol: LitellmProtocol,
|
|
2056
|
+
retry: Retry.Retry,
|
|
2057
|
+
}));
|
|
2058
|
+
|
|
2059
|
+
export type GetAllowedIpsGetAllowedIpsGetError = LitellmOpError;
|
|
2060
|
+
/** Get Allowed Ips */
|
|
2061
|
+
export const getAllowedIpsGetAllowedIpsGet: API.OperationMethod<
|
|
2062
|
+
GetAllowedIpsGetAllowedIpsGetRequest,
|
|
2063
|
+
GetAllowedIpsGetAllowedIpsGetResponse,
|
|
2064
|
+
GetAllowedIpsGetAllowedIpsGetError,
|
|
2065
|
+
LitellmOpContext
|
|
2066
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2067
|
+
input: GetAllowedIpsGetAllowedIpsGetRequest,
|
|
2068
|
+
output: GetAllowedIpsGetAllowedIpsGetResponse,
|
|
2069
|
+
errors: [],
|
|
2070
|
+
protocol: LitellmProtocol,
|
|
2071
|
+
retry: Retry.Retry,
|
|
2072
|
+
}));
|
|
2073
|
+
|
|
2074
|
+
export type GetGatewayDailyActivityGatewayDailyActivityGetError =
|
|
2075
|
+
| UnprocessableEntity
|
|
2076
|
+
| LitellmOpError;
|
|
2077
|
+
/** 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. */
|
|
2078
|
+
export const getGatewayDailyActivityGatewayDailyActivityGet: API.OperationMethod<
|
|
2079
|
+
GetGatewayDailyActivityGatewayDailyActivityGetRequest,
|
|
2080
|
+
GatewayRequestActivityResponse,
|
|
2081
|
+
GetGatewayDailyActivityGatewayDailyActivityGetError,
|
|
2082
|
+
LitellmOpContext
|
|
2083
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2084
|
+
input: GetGatewayDailyActivityGatewayDailyActivityGetRequest,
|
|
2085
|
+
output: GatewayRequestActivityResponse,
|
|
2086
|
+
errors: [UnprocessableEntity],
|
|
2087
|
+
protocol: LitellmProtocol,
|
|
2088
|
+
retry: Retry.Retry,
|
|
2089
|
+
}));
|
|
2090
|
+
|
|
2091
|
+
export type GetGlobalActivityExceptionsGlobalActivityExceptionsGetError =
|
|
2092
|
+
| UnprocessableEntity
|
|
2093
|
+
| LitellmOpError;
|
|
2094
|
+
/** 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, } */
|
|
2095
|
+
export const getGlobalActivityExceptionsGlobalActivityExceptionsGet: API.OperationMethod<
|
|
2096
|
+
GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest,
|
|
2097
|
+
GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse,
|
|
2098
|
+
GetGlobalActivityExceptionsGlobalActivityExceptionsGetError,
|
|
2099
|
+
LitellmOpContext
|
|
2100
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2101
|
+
input: GetGlobalActivityExceptionsGlobalActivityExceptionsGetRequest,
|
|
2102
|
+
output: GetGlobalActivityExceptionsGlobalActivityExceptionsGetResponse,
|
|
2103
|
+
errors: [UnprocessableEntity],
|
|
2104
|
+
protocol: LitellmProtocol,
|
|
2105
|
+
retry: Retry.Retry,
|
|
2106
|
+
}));
|
|
2107
|
+
|
|
2108
|
+
export type GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetError =
|
|
2109
|
+
| UnprocessableEntity
|
|
2110
|
+
| LitellmOpError;
|
|
2111
|
+
/** 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, }, ] */
|
|
2112
|
+
export const getGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGet: API.OperationMethod<
|
|
2113
|
+
GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest,
|
|
2114
|
+
GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse,
|
|
2115
|
+
GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetError,
|
|
2116
|
+
LitellmOpContext
|
|
2117
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2118
|
+
input:
|
|
2119
|
+
GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetRequest,
|
|
2120
|
+
output:
|
|
2121
|
+
GetGlobalActivityExceptionsPerDeploymentGlobalActivityExceptionsDeploymentGetResponse,
|
|
2122
|
+
errors: [UnprocessableEntity],
|
|
2123
|
+
protocol: LitellmProtocol,
|
|
2124
|
+
retry: Retry.Retry,
|
|
2125
|
+
}));
|
|
2126
|
+
|
|
2127
|
+
export type GetGlobalActivityGlobalActivityCacheHitsGetError =
|
|
2128
|
+
| UnprocessableEntity
|
|
2129
|
+
| LitellmOpError;
|
|
2130
|
+
/** 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. */
|
|
2131
|
+
export const getGlobalActivityGlobalActivityCacheHitsGet: API.OperationMethod<
|
|
2132
|
+
GetGlobalActivityGlobalActivityCacheHitsGetRequest,
|
|
2133
|
+
CacheActivityResponse,
|
|
2134
|
+
GetGlobalActivityGlobalActivityCacheHitsGetError,
|
|
2135
|
+
LitellmOpContext
|
|
2136
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2137
|
+
input: GetGlobalActivityGlobalActivityCacheHitsGetRequest,
|
|
2138
|
+
output: CacheActivityResponse,
|
|
2139
|
+
errors: [UnprocessableEntity],
|
|
2140
|
+
protocol: LitellmProtocol,
|
|
2141
|
+
retry: Retry.Retry,
|
|
2142
|
+
}));
|
|
2143
|
+
|
|
2144
|
+
export type GetGlobalActivityGlobalActivityGetError =
|
|
2145
|
+
| UnprocessableEntity
|
|
2146
|
+
| LitellmOpError;
|
|
2147
|
+
/** 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 } */
|
|
2148
|
+
export const getGlobalActivityGlobalActivityGet: API.OperationMethod<
|
|
2149
|
+
GetGlobalActivityGlobalActivityGetRequest,
|
|
2150
|
+
GetGlobalActivityGlobalActivityGetResponse,
|
|
2151
|
+
GetGlobalActivityGlobalActivityGetError,
|
|
2152
|
+
LitellmOpContext
|
|
2153
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2154
|
+
input: GetGlobalActivityGlobalActivityGetRequest,
|
|
2155
|
+
output: GetGlobalActivityGlobalActivityGetResponse,
|
|
2156
|
+
errors: [UnprocessableEntity],
|
|
2157
|
+
protocol: LitellmProtocol,
|
|
2158
|
+
retry: Retry.Retry,
|
|
2159
|
+
}));
|
|
2160
|
+
|
|
2161
|
+
export type GetGlobalActivityModelGlobalActivityModelGetError =
|
|
2162
|
+
| UnprocessableEntity
|
|
2163
|
+
| LitellmOpError;
|
|
2164
|
+
/** 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 }, ] */
|
|
2165
|
+
export const getGlobalActivityModelGlobalActivityModelGet: API.OperationMethod<
|
|
2166
|
+
GetGlobalActivityModelGlobalActivityModelGetRequest,
|
|
2167
|
+
GetGlobalActivityModelGlobalActivityModelGetResponse,
|
|
2168
|
+
GetGlobalActivityModelGlobalActivityModelGetError,
|
|
2169
|
+
LitellmOpContext
|
|
2170
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2171
|
+
input: GetGlobalActivityModelGlobalActivityModelGetRequest,
|
|
2172
|
+
output: GetGlobalActivityModelGlobalActivityModelGetResponse,
|
|
2173
|
+
errors: [UnprocessableEntity],
|
|
2174
|
+
protocol: LitellmProtocol,
|
|
2175
|
+
retry: Retry.Retry,
|
|
2176
|
+
}));
|
|
2177
|
+
|
|
2178
|
+
export type GetGlobalSpendGlobalSpendError = LitellmOpError;
|
|
2179
|
+
/** Global Spend [BETA] This is a beta endpoint. It will change. View total spend across all proxy keys */
|
|
2180
|
+
export const getGlobalSpendGlobalSpend: API.OperationMethod<
|
|
2181
|
+
GetGlobalSpendGlobalSpendRequest,
|
|
2182
|
+
GetGlobalSpendGlobalSpendResponse,
|
|
2183
|
+
GetGlobalSpendGlobalSpendError,
|
|
2184
|
+
LitellmOpContext
|
|
2185
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2186
|
+
input: GetGlobalSpendGlobalSpendRequest,
|
|
2187
|
+
output: GetGlobalSpendGlobalSpendResponse,
|
|
2188
|
+
errors: [],
|
|
2189
|
+
protocol: LitellmProtocol,
|
|
2190
|
+
retry: Retry.Retry,
|
|
2191
|
+
}));
|
|
2192
|
+
|
|
2193
|
+
export type GetGlobalSpendKeysGlobalSpendKeyError =
|
|
2194
|
+
| UnprocessableEntity
|
|
2195
|
+
| LitellmOpError;
|
|
2196
|
+
/** 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. */
|
|
2197
|
+
export const getGlobalSpendKeysGlobalSpendKey: API.OperationMethod<
|
|
2198
|
+
GetGlobalSpendKeysGlobalSpendKeyRequest,
|
|
2199
|
+
GetGlobalSpendKeysGlobalSpendKeyResponse,
|
|
2200
|
+
GetGlobalSpendKeysGlobalSpendKeyError,
|
|
2201
|
+
LitellmOpContext
|
|
2202
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2203
|
+
input: GetGlobalSpendKeysGlobalSpendKeyRequest,
|
|
2204
|
+
output: GetGlobalSpendKeysGlobalSpendKeyResponse,
|
|
2205
|
+
errors: [UnprocessableEntity],
|
|
2206
|
+
protocol: LitellmProtocol,
|
|
2207
|
+
retry: Retry.Retry,
|
|
2208
|
+
}));
|
|
2209
|
+
|
|
2210
|
+
export type GetGlobalSpendLogsGlobalSpendLogError =
|
|
2211
|
+
| UnprocessableEntity
|
|
2212
|
+
| LitellmOpError;
|
|
2213
|
+
/** 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. */
|
|
2214
|
+
export const getGlobalSpendLogsGlobalSpendLog: API.OperationMethod<
|
|
2215
|
+
GetGlobalSpendLogsGlobalSpendLogRequest,
|
|
2216
|
+
GetGlobalSpendLogsGlobalSpendLogResponse,
|
|
2217
|
+
GetGlobalSpendLogsGlobalSpendLogError,
|
|
2218
|
+
LitellmOpContext
|
|
2219
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2220
|
+
input: GetGlobalSpendLogsGlobalSpendLogRequest,
|
|
2221
|
+
output: GetGlobalSpendLogsGlobalSpendLogResponse,
|
|
2222
|
+
errors: [UnprocessableEntity],
|
|
2223
|
+
protocol: LitellmProtocol,
|
|
2224
|
+
retry: Retry.Retry,
|
|
2225
|
+
}));
|
|
2226
|
+
|
|
2227
|
+
export type GetGlobalSpendModelsGlobalSpendModelError =
|
|
2228
|
+
| UnprocessableEntity
|
|
2229
|
+
| LitellmOpError;
|
|
2230
|
+
/** 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. */
|
|
2231
|
+
export const getGlobalSpendModelsGlobalSpendModel: API.OperationMethod<
|
|
2232
|
+
GetGlobalSpendModelsGlobalSpendModelRequest,
|
|
2233
|
+
GetGlobalSpendModelsGlobalSpendModelResponse,
|
|
2234
|
+
GetGlobalSpendModelsGlobalSpendModelError,
|
|
2235
|
+
LitellmOpContext
|
|
2236
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2237
|
+
input: GetGlobalSpendModelsGlobalSpendModelRequest,
|
|
2238
|
+
output: GetGlobalSpendModelsGlobalSpendModelResponse,
|
|
2239
|
+
errors: [UnprocessableEntity],
|
|
2240
|
+
protocol: LitellmProtocol,
|
|
2241
|
+
retry: Retry.Retry,
|
|
2242
|
+
}));
|
|
2243
|
+
|
|
2244
|
+
export type GetGlobalSpendPerTeamGlobalSpendTeamError = LitellmOpError;
|
|
2245
|
+
/** 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` */
|
|
2246
|
+
export const getGlobalSpendPerTeamGlobalSpendTeam: API.OperationMethod<
|
|
2247
|
+
GetGlobalSpendPerTeamGlobalSpendTeamRequest,
|
|
2248
|
+
GetGlobalSpendPerTeamGlobalSpendTeamResponse,
|
|
2249
|
+
GetGlobalSpendPerTeamGlobalSpendTeamError,
|
|
2250
|
+
LitellmOpContext
|
|
2251
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2252
|
+
input: GetGlobalSpendPerTeamGlobalSpendTeamRequest,
|
|
2253
|
+
output: GetGlobalSpendPerTeamGlobalSpendTeamResponse,
|
|
2254
|
+
errors: [],
|
|
2255
|
+
protocol: LitellmProtocol,
|
|
2256
|
+
retry: Retry.Retry,
|
|
2257
|
+
}));
|
|
2258
|
+
|
|
2259
|
+
export type GetGlobalSpendProviderGlobalSpendProviderGetError =
|
|
2260
|
+
| UnprocessableEntity
|
|
2261
|
+
| LitellmOpError;
|
|
2262
|
+
/** Get Global Spend Provider Get breakdown of spend per provider [ { "provider": "Azure OpenAI", "spend": 20 }, { "provider": "OpenAI", "spend": 10 }, { "provider": "VertexAI", "spend": 30 } ] */
|
|
2263
|
+
export const getGlobalSpendProviderGlobalSpendProviderGet: API.OperationMethod<
|
|
2264
|
+
GetGlobalSpendProviderGlobalSpendProviderGetRequest,
|
|
2265
|
+
GetGlobalSpendProviderGlobalSpendProviderGetResponse,
|
|
2266
|
+
GetGlobalSpendProviderGlobalSpendProviderGetError,
|
|
2267
|
+
LitellmOpContext
|
|
2268
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2269
|
+
input: GetGlobalSpendProviderGlobalSpendProviderGetRequest,
|
|
2270
|
+
output: GetGlobalSpendProviderGlobalSpendProviderGetResponse,
|
|
2271
|
+
errors: [UnprocessableEntity],
|
|
2272
|
+
protocol: LitellmProtocol,
|
|
2273
|
+
retry: Retry.Retry,
|
|
2274
|
+
}));
|
|
2275
|
+
|
|
2276
|
+
export type GetGlobalSpendReportGlobalSpendReportGetError =
|
|
2277
|
+
| UnprocessableEntity
|
|
2278
|
+
| LitellmOpError;
|
|
2279
|
+
/** 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 }, } } ] ] } */
|
|
2280
|
+
export const getGlobalSpendReportGlobalSpendReportGet: API.OperationMethod<
|
|
2281
|
+
GetGlobalSpendReportGlobalSpendReportGetRequest,
|
|
2282
|
+
GetGlobalSpendReportGlobalSpendReportGetResponse,
|
|
2283
|
+
GetGlobalSpendReportGlobalSpendReportGetError,
|
|
2284
|
+
LitellmOpContext
|
|
2285
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2286
|
+
input: GetGlobalSpendReportGlobalSpendReportGetRequest,
|
|
2287
|
+
output: GetGlobalSpendReportGlobalSpendReportGetResponse,
|
|
2288
|
+
errors: [UnprocessableEntity],
|
|
2289
|
+
protocol: LitellmProtocol,
|
|
2290
|
+
retry: Retry.Retry,
|
|
2291
|
+
}));
|
|
2292
|
+
|
|
2293
|
+
export type GetGlobalViewAllEndUsersGlobalAllEndUserError = LitellmOpError;
|
|
2294
|
+
/** Global View All End Users [BETA] This is a beta endpoint. It will change. Use this to just get all the unique `end_users` */
|
|
2295
|
+
export const getGlobalViewAllEndUsersGlobalAllEndUser: API.OperationMethod<
|
|
2296
|
+
GetGlobalViewAllEndUsersGlobalAllEndUserRequest,
|
|
2297
|
+
GetGlobalViewAllEndUsersGlobalAllEndUserResponse,
|
|
2298
|
+
GetGlobalViewAllEndUsersGlobalAllEndUserError,
|
|
2299
|
+
LitellmOpContext
|
|
2300
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2301
|
+
input: GetGlobalViewAllEndUsersGlobalAllEndUserRequest,
|
|
2302
|
+
output: GetGlobalViewAllEndUsersGlobalAllEndUserResponse,
|
|
2303
|
+
errors: [],
|
|
2304
|
+
protocol: LitellmProtocol,
|
|
2305
|
+
retry: Retry.Retry,
|
|
2306
|
+
}));
|
|
2307
|
+
|
|
2308
|
+
export type GetGlobalViewSpendTagsGlobalSpendTagError =
|
|
2309
|
+
| UnprocessableEntity
|
|
2310
|
+
| LitellmOpError;
|
|
2311
|
+
/** 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" ``` */
|
|
2312
|
+
export const getGlobalViewSpendTagsGlobalSpendTag: API.OperationMethod<
|
|
2313
|
+
GetGlobalViewSpendTagsGlobalSpendTagRequest,
|
|
2314
|
+
GetGlobalViewSpendTagsGlobalSpendTagResponse,
|
|
2315
|
+
GetGlobalViewSpendTagsGlobalSpendTagError,
|
|
2316
|
+
LitellmOpContext
|
|
2317
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2318
|
+
input: GetGlobalViewSpendTagsGlobalSpendTagRequest,
|
|
2319
|
+
output: GetGlobalViewSpendTagsGlobalSpendTagResponse,
|
|
2320
|
+
errors: [UnprocessableEntity],
|
|
2321
|
+
protocol: LitellmProtocol,
|
|
2322
|
+
retry: Retry.Retry,
|
|
2323
|
+
}));
|
|
2324
|
+
|
|
2325
|
+
export type GetKeySpendReportKeySpendReportGetError =
|
|
2326
|
+
| UnprocessableEntity
|
|
2327
|
+
| LitellmOpError;
|
|
2328
|
+
/** 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. */
|
|
2329
|
+
export const getKeySpendReportKeySpendReportGet: API.OperationMethod<
|
|
2330
|
+
GetKeySpendReportKeySpendReportGetRequest,
|
|
2331
|
+
GetKeySpendReportKeySpendReportGetResponse,
|
|
2332
|
+
GetKeySpendReportKeySpendReportGetError,
|
|
2333
|
+
LitellmOpContext
|
|
2334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2335
|
+
input: GetKeySpendReportKeySpendReportGetRequest,
|
|
2336
|
+
output: GetKeySpendReportKeySpendReportGetResponse,
|
|
2337
|
+
errors: [UnprocessableEntity],
|
|
2338
|
+
protocol: LitellmProtocol,
|
|
2339
|
+
retry: Retry.Retry,
|
|
2340
|
+
}));
|
|
2341
|
+
|
|
2342
|
+
export type GetOrganizationSpendReportOrganizationSpendReportGetError =
|
|
2343
|
+
| UnprocessableEntity
|
|
2344
|
+
| LitellmOpError;
|
|
2345
|
+
/** 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. */
|
|
2346
|
+
export const getOrganizationSpendReportOrganizationSpendReportGet: API.OperationMethod<
|
|
2347
|
+
GetOrganizationSpendReportOrganizationSpendReportGetRequest,
|
|
2348
|
+
GetOrganizationSpendReportOrganizationSpendReportGetResponse,
|
|
2349
|
+
GetOrganizationSpendReportOrganizationSpendReportGetError,
|
|
2350
|
+
LitellmOpContext
|
|
2351
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2352
|
+
input: GetOrganizationSpendReportOrganizationSpendReportGetRequest,
|
|
2353
|
+
output: GetOrganizationSpendReportOrganizationSpendReportGetResponse,
|
|
2354
|
+
errors: [UnprocessableEntity],
|
|
2355
|
+
protocol: LitellmProtocol,
|
|
2356
|
+
retry: Retry.Retry,
|
|
2357
|
+
}));
|
|
2358
|
+
|
|
2359
|
+
export type GetSpendKeyFnSpendKeyError = LitellmOpError;
|
|
2360
|
+
/** 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" ``` */
|
|
2361
|
+
export const getSpendKeyFnSpendKey: API.OperationMethod<
|
|
2362
|
+
GetSpendKeyFnSpendKeyRequest,
|
|
2363
|
+
GetSpendKeyFnSpendKeyResponse,
|
|
2364
|
+
GetSpendKeyFnSpendKeyError,
|
|
2365
|
+
LitellmOpContext
|
|
2366
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2367
|
+
input: GetSpendKeyFnSpendKeyRequest,
|
|
2368
|
+
output: GetSpendKeyFnSpendKeyResponse,
|
|
2369
|
+
errors: [],
|
|
2370
|
+
protocol: LitellmProtocol,
|
|
2371
|
+
retry: Retry.Retry,
|
|
2372
|
+
}));
|
|
2373
|
+
|
|
2374
|
+
export type GetSpendUserFnSpendUserError = UnprocessableEntity | LitellmOpError;
|
|
2375
|
+
/** 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" ``` */
|
|
2376
|
+
export const getSpendUserFnSpendUser: API.OperationMethod<
|
|
2377
|
+
GetSpendUserFnSpendUserRequest,
|
|
2378
|
+
GetSpendUserFnSpendUserResponse,
|
|
2379
|
+
GetSpendUserFnSpendUserError,
|
|
2380
|
+
LitellmOpContext
|
|
2381
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2382
|
+
input: GetSpendUserFnSpendUserRequest,
|
|
2383
|
+
output: GetSpendUserFnSpendUserResponse,
|
|
2384
|
+
errors: [UnprocessableEntity],
|
|
2385
|
+
protocol: LitellmProtocol,
|
|
2386
|
+
retry: Retry.Retry,
|
|
2387
|
+
}));
|
|
2388
|
+
|
|
2389
|
+
export type GetTeamSpendReportTeamSpendReportGetError =
|
|
2390
|
+
| UnprocessableEntity
|
|
2391
|
+
| LitellmOpError;
|
|
2392
|
+
/** 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. */
|
|
2393
|
+
export const getTeamSpendReportTeamSpendReportGet: API.OperationMethod<
|
|
2394
|
+
GetTeamSpendReportTeamSpendReportGetRequest,
|
|
2395
|
+
GetTeamSpendReportTeamSpendReportGetResponse,
|
|
2396
|
+
GetTeamSpendReportTeamSpendReportGetError,
|
|
2397
|
+
LitellmOpContext
|
|
2398
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2399
|
+
input: GetTeamSpendReportTeamSpendReportGetRequest,
|
|
2400
|
+
output: GetTeamSpendReportTeamSpendReportGetResponse,
|
|
2401
|
+
errors: [UnprocessableEntity],
|
|
2402
|
+
protocol: LitellmProtocol,
|
|
2403
|
+
retry: Retry.Retry,
|
|
2404
|
+
}));
|
|
2405
|
+
|
|
2406
|
+
export type GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdError =
|
|
2407
|
+
| UnprocessableEntity
|
|
2408
|
+
| LitellmOpError;
|
|
2409
|
+
/** 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 */
|
|
2410
|
+
export const getUiViewRequestResponseForRequestIdSpendLogsUiRequestId: API.OperationMethod<
|
|
2411
|
+
GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest,
|
|
2412
|
+
GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse,
|
|
2413
|
+
GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdError,
|
|
2414
|
+
LitellmOpContext
|
|
2415
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2416
|
+
input: GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdRequest,
|
|
2417
|
+
output: GetUiViewRequestResponseForRequestIdSpendLogsUiRequestIdResponse,
|
|
2418
|
+
errors: [UnprocessableEntity],
|
|
2419
|
+
protocol: LitellmProtocol,
|
|
2420
|
+
retry: Retry.Retry,
|
|
2421
|
+
}));
|
|
2422
|
+
|
|
2423
|
+
export type GetUiViewSessionSpendLogsSpendLogsSessionUiError =
|
|
2424
|
+
| UnprocessableEntity
|
|
2425
|
+
| LitellmOpError;
|
|
2426
|
+
/** 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, } */
|
|
2427
|
+
export const getUiViewSessionSpendLogsSpendLogsSessionUi: API.OperationMethod<
|
|
2428
|
+
GetUiViewSessionSpendLogsSpendLogsSessionUiRequest,
|
|
2429
|
+
GetUiViewSessionSpendLogsSpendLogsSessionUiResponse,
|
|
2430
|
+
GetUiViewSessionSpendLogsSpendLogsSessionUiError,
|
|
2431
|
+
LitellmOpContext
|
|
2432
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2433
|
+
input: GetUiViewSessionSpendLogsSpendLogsSessionUiRequest,
|
|
2434
|
+
output: GetUiViewSessionSpendLogsSpendLogsSessionUiResponse,
|
|
2435
|
+
errors: [UnprocessableEntity],
|
|
2436
|
+
protocol: LitellmProtocol,
|
|
2437
|
+
retry: Retry.Retry,
|
|
2438
|
+
}));
|
|
2439
|
+
|
|
2440
|
+
export type GetUiViewSpendLogsSpendLogsUiError =
|
|
2441
|
+
| UnprocessableEntity
|
|
2442
|
+
| LitellmOpError;
|
|
2443
|
+
/** 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" ``` */
|
|
2444
|
+
export const getUiViewSpendLogsSpendLogsUi: API.OperationMethod<
|
|
2445
|
+
GetUiViewSpendLogsSpendLogsUiRequest,
|
|
2446
|
+
GetUiViewSpendLogsSpendLogsUiResponse,
|
|
2447
|
+
GetUiViewSpendLogsSpendLogsUiError,
|
|
2448
|
+
LitellmOpContext
|
|
2449
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2450
|
+
input: GetUiViewSpendLogsSpendLogsUiRequest,
|
|
2451
|
+
output: GetUiViewSpendLogsSpendLogsUiResponse,
|
|
2452
|
+
errors: [UnprocessableEntity],
|
|
2453
|
+
protocol: LitellmProtocol,
|
|
2454
|
+
retry: Retry.Retry,
|
|
2455
|
+
}));
|
|
2456
|
+
|
|
2457
|
+
export type GetUiViewSpendLogsSpendLogsV2Error =
|
|
2458
|
+
| UnprocessableEntity
|
|
2459
|
+
| LitellmOpError;
|
|
2460
|
+
/** 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" ``` */
|
|
2461
|
+
export const getUiViewSpendLogsSpendLogsV2: API.OperationMethod<
|
|
2462
|
+
GetUiViewSpendLogsSpendLogsV2Request,
|
|
2463
|
+
GetUiViewSpendLogsSpendLogsV2Response,
|
|
2464
|
+
GetUiViewSpendLogsSpendLogsV2Error,
|
|
2465
|
+
LitellmOpContext
|
|
2466
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2467
|
+
input: GetUiViewSpendLogsSpendLogsV2Request,
|
|
2468
|
+
output: GetUiViewSpendLogsSpendLogsV2Response,
|
|
2469
|
+
errors: [UnprocessableEntity],
|
|
2470
|
+
protocol: LitellmProtocol,
|
|
2471
|
+
retry: Retry.Retry,
|
|
2472
|
+
}));
|
|
2473
|
+
|
|
2474
|
+
export type GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetError =
|
|
2475
|
+
| UnprocessableEntity
|
|
2476
|
+
| LitellmOpError;
|
|
2477
|
+
/** 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. */
|
|
2478
|
+
export const getUserDailyActivityAggregatedUserDailyActivityAggregatedGet: API.OperationMethod<
|
|
2479
|
+
GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest,
|
|
2480
|
+
SpendAnalyticsPaginatedResponse,
|
|
2481
|
+
GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetError,
|
|
2482
|
+
LitellmOpContext
|
|
2483
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2484
|
+
input: GetUserDailyActivityAggregatedUserDailyActivityAggregatedGetRequest,
|
|
2485
|
+
output: SpendAnalyticsPaginatedResponse,
|
|
2486
|
+
errors: [UnprocessableEntity],
|
|
2487
|
+
protocol: LitellmProtocol,
|
|
2488
|
+
retry: Retry.Retry,
|
|
2489
|
+
}));
|
|
2490
|
+
|
|
2491
|
+
export type GetUserDailyActivityUserDailyActivityGetError =
|
|
2492
|
+
| UnprocessableEntity
|
|
2493
|
+
| LitellmOpError;
|
|
2494
|
+
/** 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 */
|
|
2495
|
+
export const getUserDailyActivityUserDailyActivityGet: API.OperationMethod<
|
|
2496
|
+
GetUserDailyActivityUserDailyActivityGetRequest,
|
|
2497
|
+
SpendAnalyticsPaginatedResponse,
|
|
2498
|
+
GetUserDailyActivityUserDailyActivityGetError,
|
|
2499
|
+
LitellmOpContext
|
|
2500
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2501
|
+
input: GetUserDailyActivityUserDailyActivityGetRequest,
|
|
2502
|
+
output: SpendAnalyticsPaginatedResponse,
|
|
2503
|
+
errors: [UnprocessableEntity],
|
|
2504
|
+
protocol: LitellmProtocol,
|
|
2505
|
+
retry: Retry.Retry,
|
|
2506
|
+
}));
|
|
2507
|
+
|
|
2508
|
+
export type GetUserSpendReportUserSpendReportGetError =
|
|
2509
|
+
| UnprocessableEntity
|
|
2510
|
+
| LitellmOpError;
|
|
2511
|
+
/** 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. */
|
|
2512
|
+
export const getUserSpendReportUserSpendReportGet: API.OperationMethod<
|
|
2513
|
+
GetUserSpendReportUserSpendReportGetRequest,
|
|
2514
|
+
GetUserSpendReportUserSpendReportGetResponse,
|
|
2515
|
+
GetUserSpendReportUserSpendReportGetError,
|
|
2516
|
+
LitellmOpContext
|
|
2517
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2518
|
+
input: GetUserSpendReportUserSpendReportGetRequest,
|
|
2519
|
+
output: GetUserSpendReportUserSpendReportGetResponse,
|
|
2520
|
+
errors: [UnprocessableEntity],
|
|
2521
|
+
protocol: LitellmProtocol,
|
|
2522
|
+
retry: Retry.Retry,
|
|
2523
|
+
}));
|
|
2524
|
+
|
|
2525
|
+
export type GetViewSpendLogsSpendLogError =
|
|
2526
|
+
| UnprocessableEntity
|
|
2527
|
+
| LitellmOpError;
|
|
2528
|
+
/** 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" ``` */
|
|
2529
|
+
export const getViewSpendLogsSpendLog: API.OperationMethod<
|
|
2530
|
+
GetViewSpendLogsSpendLogRequest,
|
|
2531
|
+
GetViewSpendLogsSpendLogResponse,
|
|
2532
|
+
GetViewSpendLogsSpendLogError,
|
|
2533
|
+
LitellmOpContext
|
|
2534
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2535
|
+
input: GetViewSpendLogsSpendLogRequest,
|
|
2536
|
+
output: GetViewSpendLogsSpendLogResponse,
|
|
2537
|
+
errors: [UnprocessableEntity],
|
|
2538
|
+
protocol: LitellmProtocol,
|
|
2539
|
+
retry: Retry.Retry,
|
|
2540
|
+
}));
|
|
2541
|
+
|
|
2542
|
+
export type GetViewSpendTagsSpendTagError =
|
|
2543
|
+
| UnprocessableEntity
|
|
2544
|
+
| LitellmOpError;
|
|
2545
|
+
/** 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" ``` */
|
|
2546
|
+
export const getViewSpendTagsSpendTag: API.OperationMethod<
|
|
2547
|
+
GetViewSpendTagsSpendTagRequest,
|
|
2548
|
+
GetViewSpendTagsSpendTagResponse,
|
|
2549
|
+
GetViewSpendTagsSpendTagError,
|
|
2550
|
+
LitellmOpContext
|
|
2551
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2552
|
+
input: GetViewSpendTagsSpendTagRequest,
|
|
2553
|
+
output: GetViewSpendTagsSpendTagResponse,
|
|
2554
|
+
errors: [UnprocessableEntity],
|
|
2555
|
+
protocol: LitellmProtocol,
|
|
2556
|
+
retry: Retry.Retry,
|
|
2557
|
+
}));
|
|
2558
|
+
|
|
2559
|
+
export type GlobalGetAllTagNamesGlobalSpendAllTagNamesGetError = LitellmOpError;
|
|
2560
|
+
/** Global Get All Tag Names */
|
|
2561
|
+
export const globalGetAllTagNamesGlobalSpendAllTagNamesGet: API.OperationMethod<
|
|
2562
|
+
GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest,
|
|
2563
|
+
GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse,
|
|
2564
|
+
GlobalGetAllTagNamesGlobalSpendAllTagNamesGetError,
|
|
2565
|
+
LitellmOpContext
|
|
2566
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2567
|
+
input: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetRequest,
|
|
2568
|
+
output: GlobalGetAllTagNamesGlobalSpendAllTagNamesGetResponse,
|
|
2569
|
+
errors: [],
|
|
2570
|
+
protocol: LitellmProtocol,
|
|
2571
|
+
retry: Retry.Retry,
|
|
2572
|
+
}));
|
|
2573
|
+
|
|
2574
|
+
export type GlobalSpendRefreshGlobalSpendRefreshPostError = LitellmOpError;
|
|
2575
|
+
/** Global Spend Refresh ADMIN ONLY / MASTER KEY Only Endpoint Globally refresh spend MonthlyGlobalSpend view */
|
|
2576
|
+
export const globalSpendRefreshGlobalSpendRefreshPost: API.OperationMethod<
|
|
2577
|
+
GlobalSpendRefreshGlobalSpendRefreshPostRequest,
|
|
2578
|
+
GlobalSpendRefreshGlobalSpendRefreshPostResponse,
|
|
2579
|
+
GlobalSpendRefreshGlobalSpendRefreshPostError,
|
|
2580
|
+
LitellmOpContext
|
|
2581
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2582
|
+
input: GlobalSpendRefreshGlobalSpendRefreshPostRequest,
|
|
2583
|
+
output: GlobalSpendRefreshGlobalSpendRefreshPostResponse,
|
|
2584
|
+
errors: [],
|
|
2585
|
+
protocol: LitellmProtocol,
|
|
2586
|
+
retry: Retry.Retry,
|
|
2587
|
+
}));
|
|
2588
|
+
|
|
2589
|
+
export type GlobalSpendResetGlobalSpendResetPostError = LitellmOpError;
|
|
2590
|
+
/** 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 */
|
|
2591
|
+
export const globalSpendResetGlobalSpendResetPost: API.OperationMethod<
|
|
2592
|
+
GlobalSpendResetGlobalSpendResetPostRequest,
|
|
2593
|
+
GlobalSpendResetGlobalSpendResetPostResponse,
|
|
2594
|
+
GlobalSpendResetGlobalSpendResetPostError,
|
|
2595
|
+
LitellmOpContext
|
|
2596
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2597
|
+
input: GlobalSpendResetGlobalSpendResetPostRequest,
|
|
2598
|
+
output: GlobalSpendResetGlobalSpendResetPostResponse,
|
|
2599
|
+
errors: [],
|
|
2600
|
+
protocol: LitellmProtocol,
|
|
2601
|
+
retry: Retry.Retry,
|
|
2602
|
+
}));
|
|
2603
|
+
|
|
2604
|
+
export type ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetError =
|
|
2605
|
+
| UnprocessableEntity
|
|
2606
|
+
| LitellmOpError;
|
|
2607
|
+
/** 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' ``` */
|
|
2608
|
+
export const listSpendLogEndUsersManagementV1SpendLogsEndUsersGet: API.OperationMethod<
|
|
2609
|
+
ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest,
|
|
2610
|
+
FacetListResponse,
|
|
2611
|
+
ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetError,
|
|
2612
|
+
LitellmOpContext
|
|
2613
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2614
|
+
input: ListSpendLogEndUsersManagementV1SpendLogsEndUsersGetRequest,
|
|
2615
|
+
output: FacetListResponse,
|
|
2616
|
+
errors: [UnprocessableEntity],
|
|
2617
|
+
protocol: LitellmProtocol,
|
|
2618
|
+
retry: Retry.Retry,
|
|
2619
|
+
}));
|
|
2620
|
+
|
|
2621
|
+
export type ListSpendLogUsersManagementV1SpendLogsUsersGetError =
|
|
2622
|
+
| UnprocessableEntity
|
|
2623
|
+
| LitellmOpError;
|
|
2624
|
+
/** List Spend Log Users The distinct internal users appearing in spend logs the caller can read. */
|
|
2625
|
+
export const listSpendLogUsersManagementV1SpendLogsUsersGet: API.OperationMethod<
|
|
2626
|
+
ListSpendLogUsersManagementV1SpendLogsUsersGetRequest,
|
|
2627
|
+
FacetListResponse,
|
|
2628
|
+
ListSpendLogUsersManagementV1SpendLogsUsersGetError,
|
|
2629
|
+
LitellmOpContext
|
|
2630
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2631
|
+
input: ListSpendLogUsersManagementV1SpendLogsUsersGetRequest,
|
|
2632
|
+
output: FacetListResponse,
|
|
2633
|
+
errors: [UnprocessableEntity],
|
|
2634
|
+
protocol: LitellmProtocol,
|
|
2635
|
+
retry: Retry.Retry,
|
|
2636
|
+
}));
|
|
2637
|
+
|
|
2638
|
+
export type PostCalculateSpendSpendCalculateError =
|
|
2639
|
+
| UnprocessableEntity
|
|
2640
|
+
| LitellmOpError;
|
|
2641
|
+
/** 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 } } }' ``` */
|
|
2642
|
+
export const postCalculateSpendSpendCalculate: API.OperationMethod<
|
|
2643
|
+
PostCalculateSpendSpendCalculateRequest,
|
|
2644
|
+
PostCalculateSpendSpendCalculateResponse,
|
|
2645
|
+
PostCalculateSpendSpendCalculateError,
|
|
2646
|
+
LitellmOpContext
|
|
2647
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2648
|
+
input: PostCalculateSpendSpendCalculateRequest,
|
|
2649
|
+
output: PostCalculateSpendSpendCalculateResponse,
|
|
2650
|
+
errors: [UnprocessableEntity],
|
|
2651
|
+
protocol: LitellmProtocol,
|
|
2652
|
+
retry: Retry.Retry,
|
|
2653
|
+
}));
|
|
2654
|
+
|
|
2655
|
+
export type PostGlobalSpendEndUsersGlobalSpendEndUserError =
|
|
2656
|
+
| UnprocessableEntity
|
|
2657
|
+
| LitellmOpError;
|
|
2658
|
+
/** 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. */
|
|
2659
|
+
export const postGlobalSpendEndUsersGlobalSpendEndUser: API.OperationMethod<
|
|
2660
|
+
PostGlobalSpendEndUsersGlobalSpendEndUserRequest,
|
|
2661
|
+
PostGlobalSpendEndUsersGlobalSpendEndUserResponse,
|
|
2662
|
+
PostGlobalSpendEndUsersGlobalSpendEndUserError,
|
|
2663
|
+
LitellmOpContext
|
|
2664
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
2665
|
+
input: PostGlobalSpendEndUsersGlobalSpendEndUserRequest,
|
|
2666
|
+
output: PostGlobalSpendEndUsersGlobalSpendEndUserResponse,
|
|
2667
|
+
errors: [UnprocessableEntity],
|
|
2668
|
+
protocol: LitellmProtocol,
|
|
2669
|
+
retry: Retry.Retry,
|
|
2670
|
+
}));
|