@homeflare/distilled-litellm 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -12
- package/dist/services/a2a.js +1 -1
- package/dist/services/a2a_registration.js +1 -1
- package/dist/services/access_groups.d.ts +18 -0
- package/dist/services/access_groups.d.ts.map +1 -1
- package/dist/services/access_groups.js +15 -1
- package/dist/services/access_groups.js.map +1 -1
- package/dist/services/adaptive_router.js +1 -1
- package/dist/services/agents.d.ts +10 -0
- package/dist/services/agents.d.ts.map +1 -1
- package/dist/services/agents.js +10 -1
- package/dist/services/agents.js.map +1 -1
- package/dist/services/alerting.js +1 -1
- package/dist/services/anthropic_passthrough.js +1 -1
- package/dist/services/anthropic_skills.d.ts +7 -1
- package/dist/services/anthropic_skills.d.ts.map +1 -1
- package/dist/services/anthropic_skills.js +6 -2
- package/dist/services/anthropic_skills.js.map +1 -1
- package/dist/services/assistants.js +1 -1
- package/dist/services/audio.js +1 -1
- package/dist/services/audit_logging.d.ts +2 -0
- package/dist/services/audit_logging.d.ts.map +1 -1
- package/dist/services/audit_logging.js +2 -1
- package/dist/services/audit_logging.js.map +1 -1
- package/dist/services/auto_router.d.ts +162 -62
- package/dist/services/auto_router.d.ts.map +1 -1
- package/dist/services/auto_router.js +92 -31
- package/dist/services/auto_router.js.map +1 -1
- package/dist/services/batch.js +1 -1
- package/dist/services/beta_agents.js +1 -1
- package/dist/services/beta_mcp.js +1 -1
- package/dist/services/budget_management.d.ts +8 -3
- package/dist/services/budget_management.d.ts.map +1 -1
- package/dist/services/budget_management.js +7 -4
- package/dist/services/budget_management.js.map +1 -1
- package/dist/services/budget_spend_tracking.d.ts +24 -5
- package/dist/services/budget_spend_tracking.d.ts.map +1 -1
- package/dist/services/budget_spend_tracking.js +17 -4
- package/dist/services/budget_spend_tracking.js.map +1 -1
- package/dist/services/cache_settings.js +1 -1
- package/dist/services/caching.js +1 -1
- package/dist/services/chat_completions.js +1 -1
- package/dist/services/claude_code_marketplace.d.ts +11 -10
- package/dist/services/claude_code_marketplace.d.ts.map +1 -1
- package/dist/services/claude_code_marketplace.js +8 -6
- package/dist/services/claude_code_marketplace.js.map +1 -1
- package/dist/services/cloudzero.js +1 -1
- package/dist/services/completions.js +1 -1
- package/dist/services/compliance.js +1 -1
- package/dist/services/config_overrides.d.ts +5 -1
- package/dist/services/config_overrides.d.ts.map +1 -1
- package/dist/services/config_overrides.js +3 -1
- package/dist/services/config_overrides.js.map +1 -1
- package/dist/services/config_yaml.d.ts +120 -6
- package/dist/services/config_yaml.d.ts.map +1 -1
- package/dist/services/config_yaml.js +67 -1
- package/dist/services/config_yaml.js.map +1 -1
- package/dist/services/containers.d.ts +8 -2
- package/dist/services/containers.d.ts.map +1 -1
- package/dist/services/containers.js +13 -5
- package/dist/services/containers.js.map +1 -1
- package/dist/services/coordination_redis_settings.js +1 -1
- package/dist/services/cost_tracking.d.ts +91 -1
- package/dist/services/cost_tracking.d.ts.map +1 -1
- package/dist/services/cost_tracking.js +82 -2
- package/dist/services/cost_tracking.js.map +1 -1
- package/dist/services/credential_management.d.ts +16 -3
- package/dist/services/credential_management.d.ts.map +1 -1
- package/dist/services/credential_management.js +13 -4
- package/dist/services/credential_management.js.map +1 -1
- package/dist/services/customer_management.d.ts +25 -2
- package/dist/services/customer_management.d.ts.map +1 -1
- package/dist/services/customer_management.js +22 -3
- package/dist/services/customer_management.js.map +1 -1
- package/dist/services/email_management.js +1 -1
- package/dist/services/embeddings.js +1 -1
- package/dist/services/evals.js +1 -1
- package/dist/services/experimental.js +1 -1
- package/dist/services/fallback_management.js +1 -1
- package/dist/services/files.js +1 -1
- package/dist/services/fine_tuning.js +1 -1
- package/dist/services/gemini_agents.js +1 -1
- package/dist/services/google_genai_endpoints.js +1 -1
- package/dist/services/guardrails.d.ts +80 -7
- package/dist/services/guardrails.d.ts.map +1 -1
- package/dist/services/guardrails.js +37 -1
- package/dist/services/guardrails.js.map +1 -1
- package/dist/services/health.d.ts +2 -2
- package/dist/services/health.d.ts.map +1 -1
- package/dist/services/health.js +2 -2
- package/dist/services/health.js.map +1 -1
- package/dist/services/images.js +1 -1
- package/dist/services/index.d.ts +1 -15
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +1 -15
- package/dist/services/index.js.map +1 -1
- package/dist/services/internal_user_management.d.ts +227 -39
- package/dist/services/internal_user_management.d.ts.map +1 -1
- package/dist/services/internal_user_management.js +194 -37
- package/dist/services/internal_user_management.js.map +1 -1
- package/dist/services/invite_links.js +1 -1
- package/dist/services/jwt_mappings.d.ts +3 -0
- package/dist/services/jwt_mappings.d.ts.map +1 -1
- package/dist/services/jwt_mappings.js +4 -1
- package/dist/services/jwt_mappings.js.map +1 -1
- package/dist/services/key_management.d.ts +116 -50
- package/dist/services/key_management.d.ts.map +1 -1
- package/dist/services/key_management.js +95 -40
- package/dist/services/key_management.js.map +1 -1
- package/dist/services/langfuse_passthrough.js +1 -1
- package/dist/services/llm_passthrough.d.ts +1199 -0
- package/dist/services/llm_passthrough.d.ts.map +1 -0
- package/dist/services/llm_passthrough.js +2150 -0
- package/dist/services/llm_passthrough.js.map +1 -0
- package/dist/services/llm_utils.js +1 -1
- package/dist/services/logging_callbacks.js +1 -1
- package/dist/services/mcp_byok_oauth.d.ts +18 -11
- package/dist/services/mcp_byok_oauth.d.ts.map +1 -1
- package/dist/services/mcp_byok_oauth.js +27 -24
- package/dist/services/mcp_byok_oauth.js.map +1 -1
- package/dist/services/mcp_discoverable.d.ts +34 -0
- package/dist/services/mcp_discoverable.d.ts.map +1 -1
- package/dist/services/mcp_discoverable.js +51 -1
- package/dist/services/mcp_discoverable.js.map +1 -1
- package/dist/services/mcp_management.d.ts +90 -2
- package/dist/services/mcp_management.d.ts.map +1 -1
- package/dist/services/mcp_management.js +115 -3
- package/dist/services/mcp_management.js.map +1 -1
- package/dist/services/mcp_rest.d.ts +13 -0
- package/dist/services/mcp_rest.d.ts.map +1 -1
- package/dist/services/mcp_rest.js +10 -2
- package/dist/services/mcp_rest.js.map +1 -1
- package/dist/services/memory_management.d.ts +2 -0
- package/dist/services/memory_management.d.ts.map +1 -1
- package/dist/services/memory_management.js +2 -1
- package/dist/services/memory_management.js.map +1 -1
- package/dist/services/misc.d.ts +86 -1
- package/dist/services/misc.d.ts.map +1 -1
- package/dist/services/misc.js +126 -2
- package/dist/services/misc.js.map +1 -1
- package/dist/services/model_management.d.ts +310 -19
- package/dist/services/model_management.d.ts.map +1 -1
- package/dist/services/model_management.js +240 -7
- package/dist/services/model_management.js.map +1 -1
- package/dist/services/moderations.js +1 -1
- package/dist/services/ocr.js +1 -1
- package/dist/services/open_ai_pass_through.d.ts +35 -90
- package/dist/services/open_ai_pass_through.d.ts.map +1 -1
- package/dist/services/open_ai_pass_through.js +41 -139
- package/dist/services/open_ai_pass_through.js.map +1 -1
- package/dist/services/organization_management.d.ts +21 -1
- package/dist/services/organization_management.d.ts.map +1 -1
- package/dist/services/organization_management.js +20 -2
- package/dist/services/organization_management.js.map +1 -1
- package/dist/services/plugins.js +1 -1
- package/dist/services/policies.d.ts +2 -0
- package/dist/services/policies.d.ts.map +1 -1
- package/dist/services/policies.js +3 -1
- package/dist/services/policies.js.map +1 -1
- package/dist/services/policy_engine.d.ts +6 -0
- package/dist/services/policy_engine.d.ts.map +1 -1
- package/dist/services/policy_engine.js +4 -1
- package/dist/services/policy_engine.js.map +1 -1
- package/dist/services/project_management.d.ts +15 -0
- package/dist/services/project_management.d.ts.map +1 -1
- package/dist/services/project_management.js +14 -1
- package/dist/services/project_management.js.map +1 -1
- package/dist/services/prompts.js +1 -1
- package/dist/services/public.d.ts +124 -0
- package/dist/services/public.d.ts.map +1 -1
- package/dist/services/public.js +158 -1
- package/dist/services/public.js.map +1 -1
- package/dist/services/rag.js +1 -1
- package/dist/services/realtime.d.ts +4 -26
- package/dist/services/realtime.d.ts.map +1 -1
- package/dist/services/realtime.js +7 -57
- package/dist/services/realtime.js.map +1 -1
- package/dist/services/rerank.d.ts +72 -0
- package/dist/services/rerank.d.ts.map +1 -1
- package/dist/services/rerank.js +61 -4
- package/dist/services/rerank.js.map +1 -1
- package/dist/services/responses.d.ts +30 -0
- package/dist/services/responses.d.ts.map +1 -1
- package/dist/services/responses.js +59 -1
- package/dist/services/responses.js.map +1 -1
- package/dist/services/router_settings.js +1 -1
- package/dist/services/rust_control_plane.js +1 -1
- package/dist/services/scim.d.ts +41 -1
- package/dist/services/scim.d.ts.map +1 -1
- package/dist/services/scim.js +60 -2
- package/dist/services/scim.js.map +1 -1
- package/dist/services/search.js +1 -1
- package/dist/services/search_tools.js +1 -1
- package/dist/services/settings.d.ts +88 -0
- package/dist/services/settings.d.ts.map +1 -1
- package/dist/services/settings.js +113 -1
- package/dist/services/settings.js.map +1 -1
- package/dist/services/sso_settings.d.ts +1 -1
- package/dist/services/sso_settings.d.ts.map +1 -1
- package/dist/services/sso_settings.js +1 -1
- package/dist/services/sso_settings.js.map +1 -1
- package/dist/services/tag_management.d.ts +7 -0
- package/dist/services/tag_management.d.ts.map +1 -1
- package/dist/services/tag_management.js +8 -1
- package/dist/services/tag_management.js.map +1 -1
- package/dist/services/team_management.d.ts +265 -17
- package/dist/services/team_management.d.ts.map +1 -1
- package/dist/services/team_management.js +247 -12
- package/dist/services/team_management.js.map +1 -1
- package/dist/services/tools.js +1 -1
- package/dist/services/ui_settings.js +1 -1
- package/dist/services/ui_theme_settings.js +1 -1
- package/dist/services/usage_ai.js +1 -1
- package/dist/services/vantage.js +1 -1
- package/dist/services/vector_store_management.js +1 -1
- package/dist/services/vector_stores.js +1 -1
- package/dist/services/videos.js +1 -1
- package/dist/services/web_socket.d.ts +0 -18
- package/dist/services/web_socket.d.ts.map +1 -1
- package/dist/services/web_socket.js +1 -33
- package/dist/services/web_socket.js.map +1 -1
- package/dist/services/workflow_management.js +1 -1
- package/package.json +1 -1
- package/src/services/a2a.ts +1 -1
- package/src/services/a2a_registration.ts +1 -1
- package/src/services/access_groups.ts +44 -1
- package/src/services/adaptive_router.ts +1 -1
- package/src/services/agents.ts +22 -1
- package/src/services/alerting.ts +1 -1
- package/src/services/anthropic_passthrough.ts +1 -1
- package/src/services/anthropic_skills.ts +12 -2
- package/src/services/assistants.ts +1 -1
- package/src/services/audio.ts +1 -1
- package/src/services/audit_logging.ts +4 -1
- package/src/services/auto_router.ts +303 -93
- package/src/services/batch.ts +1 -1
- package/src/services/beta_agents.ts +1 -1
- package/src/services/beta_mcp.ts +1 -1
- package/src/services/budget_management.ts +12 -4
- package/src/services/budget_spend_tracking.ts +38 -6
- package/src/services/cache_settings.ts +1 -1
- package/src/services/caching.ts +1 -1
- package/src/services/chat_completions.ts +1 -1
- package/src/services/claude_code_marketplace.ts +20 -14
- package/src/services/cloudzero.ts +1 -1
- package/src/services/completions.ts +1 -1
- package/src/services/compliance.ts +1 -1
- package/src/services/config_overrides.ts +8 -2
- package/src/services/config_yaml.ts +251 -6
- package/src/services/containers.ts +29 -11
- package/src/services/coordination_redis_settings.ts +1 -1
- package/src/services/cost_tracking.ts +198 -2
- package/src/services/credential_management.ts +25 -6
- package/src/services/customer_management.ts +49 -3
- package/src/services/email_management.ts +1 -1
- package/src/services/embeddings.ts +1 -1
- package/src/services/evals.ts +1 -1
- package/src/services/experimental.ts +1 -1
- package/src/services/fallback_management.ts +1 -1
- package/src/services/files.ts +1 -1
- package/src/services/fine_tuning.ts +1 -1
- package/src/services/gemini_agents.ts +1 -1
- package/src/services/google_genai_endpoints.ts +1 -1
- package/src/services/guardrails.ts +198 -8
- package/src/services/health.ts +3 -2
- package/src/services/images.ts +1 -1
- package/src/services/index.ts +1 -15
- package/src/services/internal_user_management.ts +565 -103
- package/src/services/invite_links.ts +1 -1
- package/src/services/jwt_mappings.ts +7 -1
- package/src/services/key_management.ts +257 -127
- package/src/services/langfuse_passthrough.ts +1 -1
- package/src/services/llm_passthrough.ts +4542 -0
- package/src/services/llm_utils.ts +1 -1
- package/src/services/logging_callbacks.ts +1 -1
- package/src/services/mcp_byok_oauth.ts +65 -45
- package/src/services/mcp_discoverable.ts +109 -1
- package/src/services/mcp_management.ts +258 -3
- package/src/services/mcp_rest.ts +30 -5
- package/src/services/memory_management.ts +4 -1
- package/src/services/misc.ts +269 -2
- package/src/services/model_management.ts +666 -21
- package/src/services/moderations.ts +1 -1
- package/src/services/ocr.ts +1 -1
- package/src/services/open_ai_pass_through.ts +81 -286
- package/src/services/organization_management.ts +44 -2
- package/src/services/plugins.ts +1 -1
- package/src/services/policies.ts +5 -1
- package/src/services/policy_engine.ts +10 -1
- package/src/services/project_management.ts +33 -1
- package/src/services/prompts.ts +1 -1
- package/src/services/public.ts +356 -1
- package/src/services/rag.ts +1 -1
- package/src/services/realtime.ts +11 -111
- package/src/services/rerank.ts +187 -7
- package/src/services/responses.ts +117 -1
- package/src/services/router_settings.ts +1 -1
- package/src/services/rust_control_plane.ts +1 -1
- package/src/services/scim.ts +134 -3
- package/src/services/search.ts +1 -1
- package/src/services/search_tools.ts +1 -1
- package/src/services/settings.ts +278 -1
- package/src/services/sso_settings.ts +2 -1
- package/src/services/tag_management.ts +15 -1
- package/src/services/team_management.ts +676 -37
- package/src/services/tools.ts +1 -1
- package/src/services/ui_settings.ts +1 -1
- package/src/services/ui_theme_settings.ts +1 -1
- package/src/services/usage_ai.ts +1 -1
- package/src/services/vantage.ts +1 -1
- package/src/services/vector_store_management.ts +1 -1
- package/src/services/vector_stores.ts +1 -1
- package/src/services/videos.ts +1 -1
- package/src/services/web_socket.ts +1 -61
- package/src/services/workflow_management.ts +1 -1
- package/dist/services/anthropic_pass_through.d.ts +0 -70
- package/dist/services/anthropic_pass_through.d.ts.map +0 -1
- package/dist/services/anthropic_pass_through.js +0 -114
- package/dist/services/anthropic_pass_through.js.map +0 -1
- package/dist/services/assembly_ai_eu_pass_through.d.ts +0 -70
- package/dist/services/assembly_ai_eu_pass_through.d.ts.map +0 -1
- package/dist/services/assembly_ai_eu_pass_through.js +0 -114
- package/dist/services/assembly_ai_eu_pass_through.js.map +0 -1
- package/dist/services/assembly_ai_pass_through.d.ts +0 -70
- package/dist/services/assembly_ai_pass_through.d.ts.map +0 -1
- package/dist/services/assembly_ai_pass_through.js +0 -114
- package/dist/services/assembly_ai_pass_through.js.map +0 -1
- package/dist/services/aws_comprehend_medical_pass_through.d.ts +0 -36
- package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +0 -1
- package/dist/services/aws_comprehend_medical_pass_through.js +0 -56
- package/dist/services/aws_comprehend_medical_pass_through.js.map +0 -1
- package/dist/services/azure_ai_pass_through.d.ts +0 -70
- package/dist/services/azure_ai_pass_through.d.ts.map +0 -1
- package/dist/services/azure_ai_pass_through.js +0 -112
- package/dist/services/azure_ai_pass_through.js.map +0 -1
- package/dist/services/azure_pass_through.d.ts +0 -70
- package/dist/services/azure_pass_through.d.ts.map +0 -1
- package/dist/services/azure_pass_through.js +0 -107
- package/dist/services/azure_pass_through.js.map +0 -1
- package/dist/services/bedrock_pass_through.d.ts +0 -70
- package/dist/services/bedrock_pass_through.d.ts.map +0 -1
- package/dist/services/bedrock_pass_through.js +0 -114
- package/dist/services/bedrock_pass_through.js.map +0 -1
- package/dist/services/cohere_pass_through.d.ts +0 -70
- package/dist/services/cohere_pass_through.d.ts.map +0 -1
- package/dist/services/cohere_pass_through.js +0 -112
- package/dist/services/cohere_pass_through.js.map +0 -1
- package/dist/services/cursor_pass_through.d.ts +0 -70
- package/dist/services/cursor_pass_through.d.ts.map +0 -1
- package/dist/services/cursor_pass_through.js +0 -112
- package/dist/services/cursor_pass_through.js.map +0 -1
- package/dist/services/google_ai_studio_pass_through.d.ts +0 -70
- package/dist/services/google_ai_studio_pass_through.d.ts.map +0 -1
- package/dist/services/google_ai_studio_pass_through.js +0 -112
- package/dist/services/google_ai_studio_pass_through.js.map +0 -1
- package/dist/services/milvus_pass_through.d.ts +0 -70
- package/dist/services/milvus_pass_through.d.ts.map +0 -1
- package/dist/services/milvus_pass_through.js +0 -112
- package/dist/services/milvus_pass_through.js.map +0 -1
- package/dist/services/mistral_pass_through.d.ts +0 -70
- package/dist/services/mistral_pass_through.d.ts.map +0 -1
- package/dist/services/mistral_pass_through.js +0 -114
- package/dist/services/mistral_pass_through.js.map +0 -1
- package/dist/services/vertex_ai_pass_through.d.ts +0 -180
- package/dist/services/vertex_ai_pass_through.d.ts.map +0 -1
- package/dist/services/vertex_ai_pass_through.js +0 -334
- package/dist/services/vertex_ai_pass_through.js.map +0 -1
- package/dist/services/vllm_pass_through.d.ts +0 -70
- package/dist/services/vllm_pass_through.d.ts.map +0 -1
- package/dist/services/vllm_pass_through.js +0 -104
- package/dist/services/vllm_pass_through.js.map +0 -1
- package/dist/services/watsonx_pass_through.d.ts +0 -70
- package/dist/services/watsonx_pass_through.d.ts.map +0 -1
- package/dist/services/watsonx_pass_through.js +0 -114
- package/dist/services/watsonx_pass_through.js.map +0 -1
- package/src/services/anthropic_pass_through.ts +0 -233
- package/src/services/assembly_ai_eu_pass_through.ts +0 -237
- package/src/services/assembly_ai_pass_through.ts +0 -237
- package/src/services/aws_comprehend_medical_pass_through.ts +0 -109
- package/src/services/azure_ai_pass_through.ts +0 -231
- package/src/services/azure_pass_through.ts +0 -227
- package/src/services/bedrock_pass_through.ts +0 -229
- package/src/services/cohere_pass_through.ts +0 -227
- package/src/services/cursor_pass_through.ts +0 -227
- package/src/services/google_ai_studio_pass_through.ts +0 -227
- package/src/services/milvus_pass_through.ts +0 -227
- package/src/services/mistral_pass_through.ts +0 -229
- package/src/services/vertex_ai_pass_through.ts +0 -684
- package/src/services/vllm_pass_through.ts +0 -227
- package/src/services/watsonx_pass_through.ts +0 -229
|
@@ -1,227 +0,0 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
-
import * as C from "@distilled.cloud/core/category";
|
|
5
|
-
import * as T from "../traits.ts";
|
|
6
|
-
import {
|
|
7
|
-
LitellmProtocol,
|
|
8
|
-
type LitellmOpError,
|
|
9
|
-
type LitellmOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
11
|
-
import * as Retry from "../retry.ts";
|
|
12
|
-
|
|
13
|
-
export type { LitellmOpError, LitellmOpContext };
|
|
14
|
-
|
|
15
|
-
export class UnprocessableEntity
|
|
16
|
-
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
-
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
18
|
-
code: S.Number,
|
|
19
|
-
message: S.String,
|
|
20
|
-
}).pipe(C.withBadRequestError),
|
|
21
|
-
[{ status: 422 }],
|
|
22
|
-
) {}
|
|
23
|
-
|
|
24
|
-
export interface DeleteCohereProxyRouteCohereEndpointRequest {
|
|
25
|
-
endpoint: string;
|
|
26
|
-
}
|
|
27
|
-
export const DeleteCohereProxyRouteCohereEndpointRequest =
|
|
28
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
29
|
-
S.Struct({
|
|
30
|
-
endpoint: S.String.pipe(T.Label()),
|
|
31
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/cohere/{endpoint}", code: 200 })),
|
|
32
|
-
).annotate({
|
|
33
|
-
identifier: "DeleteCohereProxyRouteCohereEndpointRequest",
|
|
34
|
-
}) as any as S.Schema<DeleteCohereProxyRouteCohereEndpointRequest>;
|
|
35
|
-
|
|
36
|
-
export interface DeleteCohereProxyRouteCohereEndpointResponse {
|
|
37
|
-
body: unknown;
|
|
38
|
-
}
|
|
39
|
-
export const DeleteCohereProxyRouteCohereEndpointResponse =
|
|
40
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
41
|
-
S.Struct({
|
|
42
|
-
body: S.Unknown,
|
|
43
|
-
}),
|
|
44
|
-
).annotate({
|
|
45
|
-
identifier: "DeleteCohereProxyRouteCohereEndpointResponse",
|
|
46
|
-
}) as any as S.Schema<DeleteCohereProxyRouteCohereEndpointResponse>;
|
|
47
|
-
|
|
48
|
-
export interface GetCohereProxyRouteCohereEndpointRequest {
|
|
49
|
-
endpoint: string;
|
|
50
|
-
}
|
|
51
|
-
export const GetCohereProxyRouteCohereEndpointRequest = /*@__PURE__*/ S.suspend(
|
|
52
|
-
() =>
|
|
53
|
-
S.Struct({
|
|
54
|
-
endpoint: S.String.pipe(T.Label()),
|
|
55
|
-
}).pipe(T.Http({ method: "GET", uri: "/cohere/{endpoint}", code: 200 })),
|
|
56
|
-
).annotate({
|
|
57
|
-
identifier: "GetCohereProxyRouteCohereEndpointRequest",
|
|
58
|
-
}) as any as S.Schema<GetCohereProxyRouteCohereEndpointRequest>;
|
|
59
|
-
|
|
60
|
-
export interface GetCohereProxyRouteCohereEndpointResponse {
|
|
61
|
-
body: unknown;
|
|
62
|
-
}
|
|
63
|
-
export const GetCohereProxyRouteCohereEndpointResponse =
|
|
64
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
65
|
-
S.Struct({
|
|
66
|
-
body: S.Unknown,
|
|
67
|
-
}),
|
|
68
|
-
).annotate({
|
|
69
|
-
identifier: "GetCohereProxyRouteCohereEndpointResponse",
|
|
70
|
-
}) as any as S.Schema<GetCohereProxyRouteCohereEndpointResponse>;
|
|
71
|
-
|
|
72
|
-
export interface PatchCohereProxyRouteCohereEndpointRequest {
|
|
73
|
-
endpoint: string;
|
|
74
|
-
}
|
|
75
|
-
export const PatchCohereProxyRouteCohereEndpointRequest =
|
|
76
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
77
|
-
S.Struct({
|
|
78
|
-
endpoint: S.String.pipe(T.Label()),
|
|
79
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/cohere/{endpoint}", code: 200 })),
|
|
80
|
-
).annotate({
|
|
81
|
-
identifier: "PatchCohereProxyRouteCohereEndpointRequest",
|
|
82
|
-
}) as any as S.Schema<PatchCohereProxyRouteCohereEndpointRequest>;
|
|
83
|
-
|
|
84
|
-
export interface PatchCohereProxyRouteCohereEndpointResponse {
|
|
85
|
-
body: unknown;
|
|
86
|
-
}
|
|
87
|
-
export const PatchCohereProxyRouteCohereEndpointResponse =
|
|
88
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
89
|
-
S.Struct({
|
|
90
|
-
body: S.Unknown,
|
|
91
|
-
}),
|
|
92
|
-
).annotate({
|
|
93
|
-
identifier: "PatchCohereProxyRouteCohereEndpointResponse",
|
|
94
|
-
}) as any as S.Schema<PatchCohereProxyRouteCohereEndpointResponse>;
|
|
95
|
-
|
|
96
|
-
export interface PostCohereProxyRouteCohereEndpointRequest {
|
|
97
|
-
endpoint: string;
|
|
98
|
-
}
|
|
99
|
-
export const PostCohereProxyRouteCohereEndpointRequest =
|
|
100
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
101
|
-
S.Struct({
|
|
102
|
-
endpoint: S.String.pipe(T.Label()),
|
|
103
|
-
}).pipe(T.Http({ method: "POST", uri: "/cohere/{endpoint}", code: 200 })),
|
|
104
|
-
).annotate({
|
|
105
|
-
identifier: "PostCohereProxyRouteCohereEndpointRequest",
|
|
106
|
-
}) as any as S.Schema<PostCohereProxyRouteCohereEndpointRequest>;
|
|
107
|
-
|
|
108
|
-
export interface PostCohereProxyRouteCohereEndpointResponse {
|
|
109
|
-
body: unknown;
|
|
110
|
-
}
|
|
111
|
-
export const PostCohereProxyRouteCohereEndpointResponse =
|
|
112
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
113
|
-
S.Struct({
|
|
114
|
-
body: S.Unknown,
|
|
115
|
-
}),
|
|
116
|
-
).annotate({
|
|
117
|
-
identifier: "PostCohereProxyRouteCohereEndpointResponse",
|
|
118
|
-
}) as any as S.Schema<PostCohereProxyRouteCohereEndpointResponse>;
|
|
119
|
-
|
|
120
|
-
export interface PutCohereProxyRouteCohereEndpointRequest {
|
|
121
|
-
endpoint: string;
|
|
122
|
-
}
|
|
123
|
-
export const PutCohereProxyRouteCohereEndpointRequest = /*@__PURE__*/ S.suspend(
|
|
124
|
-
() =>
|
|
125
|
-
S.Struct({
|
|
126
|
-
endpoint: S.String.pipe(T.Label()),
|
|
127
|
-
}).pipe(T.Http({ method: "PUT", uri: "/cohere/{endpoint}", code: 200 })),
|
|
128
|
-
).annotate({
|
|
129
|
-
identifier: "PutCohereProxyRouteCohereEndpointRequest",
|
|
130
|
-
}) as any as S.Schema<PutCohereProxyRouteCohereEndpointRequest>;
|
|
131
|
-
|
|
132
|
-
export interface PutCohereProxyRouteCohereEndpointResponse {
|
|
133
|
-
body: unknown;
|
|
134
|
-
}
|
|
135
|
-
export const PutCohereProxyRouteCohereEndpointResponse =
|
|
136
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
137
|
-
S.Struct({
|
|
138
|
-
body: S.Unknown,
|
|
139
|
-
}),
|
|
140
|
-
).annotate({
|
|
141
|
-
identifier: "PutCohereProxyRouteCohereEndpointResponse",
|
|
142
|
-
}) as any as S.Schema<PutCohereProxyRouteCohereEndpointResponse>;
|
|
143
|
-
|
|
144
|
-
export type DeleteCohereProxyRouteCohereEndpointError =
|
|
145
|
-
| UnprocessableEntity
|
|
146
|
-
| LitellmOpError;
|
|
147
|
-
/** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
|
|
148
|
-
export const deleteCohereProxyRouteCohereEndpoint: API.OperationMethod<
|
|
149
|
-
DeleteCohereProxyRouteCohereEndpointRequest,
|
|
150
|
-
DeleteCohereProxyRouteCohereEndpointResponse,
|
|
151
|
-
DeleteCohereProxyRouteCohereEndpointError,
|
|
152
|
-
LitellmOpContext
|
|
153
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
154
|
-
input: DeleteCohereProxyRouteCohereEndpointRequest,
|
|
155
|
-
output: DeleteCohereProxyRouteCohereEndpointResponse,
|
|
156
|
-
errors: [UnprocessableEntity],
|
|
157
|
-
protocol: LitellmProtocol,
|
|
158
|
-
retry: Retry.Retry,
|
|
159
|
-
}));
|
|
160
|
-
|
|
161
|
-
export type GetCohereProxyRouteCohereEndpointError =
|
|
162
|
-
| UnprocessableEntity
|
|
163
|
-
| LitellmOpError;
|
|
164
|
-
/** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
|
|
165
|
-
export const getCohereProxyRouteCohereEndpoint: API.OperationMethod<
|
|
166
|
-
GetCohereProxyRouteCohereEndpointRequest,
|
|
167
|
-
GetCohereProxyRouteCohereEndpointResponse,
|
|
168
|
-
GetCohereProxyRouteCohereEndpointError,
|
|
169
|
-
LitellmOpContext
|
|
170
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
171
|
-
input: GetCohereProxyRouteCohereEndpointRequest,
|
|
172
|
-
output: GetCohereProxyRouteCohereEndpointResponse,
|
|
173
|
-
errors: [UnprocessableEntity],
|
|
174
|
-
protocol: LitellmProtocol,
|
|
175
|
-
retry: Retry.Retry,
|
|
176
|
-
}));
|
|
177
|
-
|
|
178
|
-
export type PatchCohereProxyRouteCohereEndpointError =
|
|
179
|
-
| UnprocessableEntity
|
|
180
|
-
| LitellmOpError;
|
|
181
|
-
/** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
|
|
182
|
-
export const patchCohereProxyRouteCohereEndpoint: API.OperationMethod<
|
|
183
|
-
PatchCohereProxyRouteCohereEndpointRequest,
|
|
184
|
-
PatchCohereProxyRouteCohereEndpointResponse,
|
|
185
|
-
PatchCohereProxyRouteCohereEndpointError,
|
|
186
|
-
LitellmOpContext
|
|
187
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
188
|
-
input: PatchCohereProxyRouteCohereEndpointRequest,
|
|
189
|
-
output: PatchCohereProxyRouteCohereEndpointResponse,
|
|
190
|
-
errors: [UnprocessableEntity],
|
|
191
|
-
protocol: LitellmProtocol,
|
|
192
|
-
retry: Retry.Retry,
|
|
193
|
-
}));
|
|
194
|
-
|
|
195
|
-
export type PostCohereProxyRouteCohereEndpointError =
|
|
196
|
-
| UnprocessableEntity
|
|
197
|
-
| LitellmOpError;
|
|
198
|
-
/** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
|
|
199
|
-
export const postCohereProxyRouteCohereEndpoint: API.OperationMethod<
|
|
200
|
-
PostCohereProxyRouteCohereEndpointRequest,
|
|
201
|
-
PostCohereProxyRouteCohereEndpointResponse,
|
|
202
|
-
PostCohereProxyRouteCohereEndpointError,
|
|
203
|
-
LitellmOpContext
|
|
204
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
205
|
-
input: PostCohereProxyRouteCohereEndpointRequest,
|
|
206
|
-
output: PostCohereProxyRouteCohereEndpointResponse,
|
|
207
|
-
errors: [UnprocessableEntity],
|
|
208
|
-
protocol: LitellmProtocol,
|
|
209
|
-
retry: Retry.Retry,
|
|
210
|
-
}));
|
|
211
|
-
|
|
212
|
-
export type PutCohereProxyRouteCohereEndpointError =
|
|
213
|
-
| UnprocessableEntity
|
|
214
|
-
| LitellmOpError;
|
|
215
|
-
/** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
|
|
216
|
-
export const putCohereProxyRouteCohereEndpoint: API.OperationMethod<
|
|
217
|
-
PutCohereProxyRouteCohereEndpointRequest,
|
|
218
|
-
PutCohereProxyRouteCohereEndpointResponse,
|
|
219
|
-
PutCohereProxyRouteCohereEndpointError,
|
|
220
|
-
LitellmOpContext
|
|
221
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
222
|
-
input: PutCohereProxyRouteCohereEndpointRequest,
|
|
223
|
-
output: PutCohereProxyRouteCohereEndpointResponse,
|
|
224
|
-
errors: [UnprocessableEntity],
|
|
225
|
-
protocol: LitellmProtocol,
|
|
226
|
-
retry: Retry.Retry,
|
|
227
|
-
}));
|
|
@@ -1,227 +0,0 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
-
import * as C from "@distilled.cloud/core/category";
|
|
5
|
-
import * as T from "../traits.ts";
|
|
6
|
-
import {
|
|
7
|
-
LitellmProtocol,
|
|
8
|
-
type LitellmOpError,
|
|
9
|
-
type LitellmOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
11
|
-
import * as Retry from "../retry.ts";
|
|
12
|
-
|
|
13
|
-
export type { LitellmOpError, LitellmOpContext };
|
|
14
|
-
|
|
15
|
-
export class UnprocessableEntity
|
|
16
|
-
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
-
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
18
|
-
code: S.Number,
|
|
19
|
-
message: S.String,
|
|
20
|
-
}).pipe(C.withBadRequestError),
|
|
21
|
-
[{ status: 422 }],
|
|
22
|
-
) {}
|
|
23
|
-
|
|
24
|
-
export interface DeleteCursorProxyRouteCursorEndpointRequest {
|
|
25
|
-
endpoint: string;
|
|
26
|
-
}
|
|
27
|
-
export const DeleteCursorProxyRouteCursorEndpointRequest =
|
|
28
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
29
|
-
S.Struct({
|
|
30
|
-
endpoint: S.String.pipe(T.Label()),
|
|
31
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/cursor/{endpoint}", code: 200 })),
|
|
32
|
-
).annotate({
|
|
33
|
-
identifier: "DeleteCursorProxyRouteCursorEndpointRequest",
|
|
34
|
-
}) as any as S.Schema<DeleteCursorProxyRouteCursorEndpointRequest>;
|
|
35
|
-
|
|
36
|
-
export interface DeleteCursorProxyRouteCursorEndpointResponse {
|
|
37
|
-
body: unknown;
|
|
38
|
-
}
|
|
39
|
-
export const DeleteCursorProxyRouteCursorEndpointResponse =
|
|
40
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
41
|
-
S.Struct({
|
|
42
|
-
body: S.Unknown,
|
|
43
|
-
}),
|
|
44
|
-
).annotate({
|
|
45
|
-
identifier: "DeleteCursorProxyRouteCursorEndpointResponse",
|
|
46
|
-
}) as any as S.Schema<DeleteCursorProxyRouteCursorEndpointResponse>;
|
|
47
|
-
|
|
48
|
-
export interface GetCursorProxyRouteCursorEndpointRequest {
|
|
49
|
-
endpoint: string;
|
|
50
|
-
}
|
|
51
|
-
export const GetCursorProxyRouteCursorEndpointRequest = /*@__PURE__*/ S.suspend(
|
|
52
|
-
() =>
|
|
53
|
-
S.Struct({
|
|
54
|
-
endpoint: S.String.pipe(T.Label()),
|
|
55
|
-
}).pipe(T.Http({ method: "GET", uri: "/cursor/{endpoint}", code: 200 })),
|
|
56
|
-
).annotate({
|
|
57
|
-
identifier: "GetCursorProxyRouteCursorEndpointRequest",
|
|
58
|
-
}) as any as S.Schema<GetCursorProxyRouteCursorEndpointRequest>;
|
|
59
|
-
|
|
60
|
-
export interface GetCursorProxyRouteCursorEndpointResponse {
|
|
61
|
-
body: unknown;
|
|
62
|
-
}
|
|
63
|
-
export const GetCursorProxyRouteCursorEndpointResponse =
|
|
64
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
65
|
-
S.Struct({
|
|
66
|
-
body: S.Unknown,
|
|
67
|
-
}),
|
|
68
|
-
).annotate({
|
|
69
|
-
identifier: "GetCursorProxyRouteCursorEndpointResponse",
|
|
70
|
-
}) as any as S.Schema<GetCursorProxyRouteCursorEndpointResponse>;
|
|
71
|
-
|
|
72
|
-
export interface PatchCursorProxyRouteCursorEndpointRequest {
|
|
73
|
-
endpoint: string;
|
|
74
|
-
}
|
|
75
|
-
export const PatchCursorProxyRouteCursorEndpointRequest =
|
|
76
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
77
|
-
S.Struct({
|
|
78
|
-
endpoint: S.String.pipe(T.Label()),
|
|
79
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/cursor/{endpoint}", code: 200 })),
|
|
80
|
-
).annotate({
|
|
81
|
-
identifier: "PatchCursorProxyRouteCursorEndpointRequest",
|
|
82
|
-
}) as any as S.Schema<PatchCursorProxyRouteCursorEndpointRequest>;
|
|
83
|
-
|
|
84
|
-
export interface PatchCursorProxyRouteCursorEndpointResponse {
|
|
85
|
-
body: unknown;
|
|
86
|
-
}
|
|
87
|
-
export const PatchCursorProxyRouteCursorEndpointResponse =
|
|
88
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
89
|
-
S.Struct({
|
|
90
|
-
body: S.Unknown,
|
|
91
|
-
}),
|
|
92
|
-
).annotate({
|
|
93
|
-
identifier: "PatchCursorProxyRouteCursorEndpointResponse",
|
|
94
|
-
}) as any as S.Schema<PatchCursorProxyRouteCursorEndpointResponse>;
|
|
95
|
-
|
|
96
|
-
export interface PostCursorProxyRouteCursorEndpointRequest {
|
|
97
|
-
endpoint: string;
|
|
98
|
-
}
|
|
99
|
-
export const PostCursorProxyRouteCursorEndpointRequest =
|
|
100
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
101
|
-
S.Struct({
|
|
102
|
-
endpoint: S.String.pipe(T.Label()),
|
|
103
|
-
}).pipe(T.Http({ method: "POST", uri: "/cursor/{endpoint}", code: 200 })),
|
|
104
|
-
).annotate({
|
|
105
|
-
identifier: "PostCursorProxyRouteCursorEndpointRequest",
|
|
106
|
-
}) as any as S.Schema<PostCursorProxyRouteCursorEndpointRequest>;
|
|
107
|
-
|
|
108
|
-
export interface PostCursorProxyRouteCursorEndpointResponse {
|
|
109
|
-
body: unknown;
|
|
110
|
-
}
|
|
111
|
-
export const PostCursorProxyRouteCursorEndpointResponse =
|
|
112
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
113
|
-
S.Struct({
|
|
114
|
-
body: S.Unknown,
|
|
115
|
-
}),
|
|
116
|
-
).annotate({
|
|
117
|
-
identifier: "PostCursorProxyRouteCursorEndpointResponse",
|
|
118
|
-
}) as any as S.Schema<PostCursorProxyRouteCursorEndpointResponse>;
|
|
119
|
-
|
|
120
|
-
export interface PutCursorProxyRouteCursorEndpointRequest {
|
|
121
|
-
endpoint: string;
|
|
122
|
-
}
|
|
123
|
-
export const PutCursorProxyRouteCursorEndpointRequest = /*@__PURE__*/ S.suspend(
|
|
124
|
-
() =>
|
|
125
|
-
S.Struct({
|
|
126
|
-
endpoint: S.String.pipe(T.Label()),
|
|
127
|
-
}).pipe(T.Http({ method: "PUT", uri: "/cursor/{endpoint}", code: 200 })),
|
|
128
|
-
).annotate({
|
|
129
|
-
identifier: "PutCursorProxyRouteCursorEndpointRequest",
|
|
130
|
-
}) as any as S.Schema<PutCursorProxyRouteCursorEndpointRequest>;
|
|
131
|
-
|
|
132
|
-
export interface PutCursorProxyRouteCursorEndpointResponse {
|
|
133
|
-
body: unknown;
|
|
134
|
-
}
|
|
135
|
-
export const PutCursorProxyRouteCursorEndpointResponse =
|
|
136
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
137
|
-
S.Struct({
|
|
138
|
-
body: S.Unknown,
|
|
139
|
-
}),
|
|
140
|
-
).annotate({
|
|
141
|
-
identifier: "PutCursorProxyRouteCursorEndpointResponse",
|
|
142
|
-
}) as any as S.Schema<PutCursorProxyRouteCursorEndpointResponse>;
|
|
143
|
-
|
|
144
|
-
export type DeleteCursorProxyRouteCursorEndpointError =
|
|
145
|
-
| UnprocessableEntity
|
|
146
|
-
| LitellmOpError;
|
|
147
|
-
/** Cursor Proxy Route Pass-through endpoint for the Cursor Cloud Agents API. Supports all Cursor Cloud Agents endpoints: - GET /v0/agents — List agents - POST /v0/agents — Launch an agent - GET /v0/agents/{id} — Agent status - GET /v0/agents/{id}/conversation — Agent conversation - POST /v0/agents/{id}/followup — Add follow-up - POST /v0/agents/{id}/stop — Stop an agent - DELETE /v0/agents/{id} — Delete an agent - GET /v0/me — API key info - GET /v0/models — List models - GET /v0/repositories — List GitHub repositories Uses Basic Authentication (base64-encoded `API_KEY:`). Credential lookup order: 1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through) 2. litellm.credential_list (credentials added via UI) 3. CURSOR_API_KEY environment variable */
|
|
148
|
-
export const deleteCursorProxyRouteCursorEndpoint: API.OperationMethod<
|
|
149
|
-
DeleteCursorProxyRouteCursorEndpointRequest,
|
|
150
|
-
DeleteCursorProxyRouteCursorEndpointResponse,
|
|
151
|
-
DeleteCursorProxyRouteCursorEndpointError,
|
|
152
|
-
LitellmOpContext
|
|
153
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
154
|
-
input: DeleteCursorProxyRouteCursorEndpointRequest,
|
|
155
|
-
output: DeleteCursorProxyRouteCursorEndpointResponse,
|
|
156
|
-
errors: [UnprocessableEntity],
|
|
157
|
-
protocol: LitellmProtocol,
|
|
158
|
-
retry: Retry.Retry,
|
|
159
|
-
}));
|
|
160
|
-
|
|
161
|
-
export type GetCursorProxyRouteCursorEndpointError =
|
|
162
|
-
| UnprocessableEntity
|
|
163
|
-
| LitellmOpError;
|
|
164
|
-
/** Cursor Proxy Route Pass-through endpoint for the Cursor Cloud Agents API. Supports all Cursor Cloud Agents endpoints: - GET /v0/agents — List agents - POST /v0/agents — Launch an agent - GET /v0/agents/{id} — Agent status - GET /v0/agents/{id}/conversation — Agent conversation - POST /v0/agents/{id}/followup — Add follow-up - POST /v0/agents/{id}/stop — Stop an agent - DELETE /v0/agents/{id} — Delete an agent - GET /v0/me — API key info - GET /v0/models — List models - GET /v0/repositories — List GitHub repositories Uses Basic Authentication (base64-encoded `API_KEY:`). Credential lookup order: 1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through) 2. litellm.credential_list (credentials added via UI) 3. CURSOR_API_KEY environment variable */
|
|
165
|
-
export const getCursorProxyRouteCursorEndpoint: API.OperationMethod<
|
|
166
|
-
GetCursorProxyRouteCursorEndpointRequest,
|
|
167
|
-
GetCursorProxyRouteCursorEndpointResponse,
|
|
168
|
-
GetCursorProxyRouteCursorEndpointError,
|
|
169
|
-
LitellmOpContext
|
|
170
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
171
|
-
input: GetCursorProxyRouteCursorEndpointRequest,
|
|
172
|
-
output: GetCursorProxyRouteCursorEndpointResponse,
|
|
173
|
-
errors: [UnprocessableEntity],
|
|
174
|
-
protocol: LitellmProtocol,
|
|
175
|
-
retry: Retry.Retry,
|
|
176
|
-
}));
|
|
177
|
-
|
|
178
|
-
export type PatchCursorProxyRouteCursorEndpointError =
|
|
179
|
-
| UnprocessableEntity
|
|
180
|
-
| LitellmOpError;
|
|
181
|
-
/** Cursor Proxy Route Pass-through endpoint for the Cursor Cloud Agents API. Supports all Cursor Cloud Agents endpoints: - GET /v0/agents — List agents - POST /v0/agents — Launch an agent - GET /v0/agents/{id} — Agent status - GET /v0/agents/{id}/conversation — Agent conversation - POST /v0/agents/{id}/followup — Add follow-up - POST /v0/agents/{id}/stop — Stop an agent - DELETE /v0/agents/{id} — Delete an agent - GET /v0/me — API key info - GET /v0/models — List models - GET /v0/repositories — List GitHub repositories Uses Basic Authentication (base64-encoded `API_KEY:`). Credential lookup order: 1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through) 2. litellm.credential_list (credentials added via UI) 3. CURSOR_API_KEY environment variable */
|
|
182
|
-
export const patchCursorProxyRouteCursorEndpoint: API.OperationMethod<
|
|
183
|
-
PatchCursorProxyRouteCursorEndpointRequest,
|
|
184
|
-
PatchCursorProxyRouteCursorEndpointResponse,
|
|
185
|
-
PatchCursorProxyRouteCursorEndpointError,
|
|
186
|
-
LitellmOpContext
|
|
187
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
188
|
-
input: PatchCursorProxyRouteCursorEndpointRequest,
|
|
189
|
-
output: PatchCursorProxyRouteCursorEndpointResponse,
|
|
190
|
-
errors: [UnprocessableEntity],
|
|
191
|
-
protocol: LitellmProtocol,
|
|
192
|
-
retry: Retry.Retry,
|
|
193
|
-
}));
|
|
194
|
-
|
|
195
|
-
export type PostCursorProxyRouteCursorEndpointError =
|
|
196
|
-
| UnprocessableEntity
|
|
197
|
-
| LitellmOpError;
|
|
198
|
-
/** Cursor Proxy Route Pass-through endpoint for the Cursor Cloud Agents API. Supports all Cursor Cloud Agents endpoints: - GET /v0/agents — List agents - POST /v0/agents — Launch an agent - GET /v0/agents/{id} — Agent status - GET /v0/agents/{id}/conversation — Agent conversation - POST /v0/agents/{id}/followup — Add follow-up - POST /v0/agents/{id}/stop — Stop an agent - DELETE /v0/agents/{id} — Delete an agent - GET /v0/me — API key info - GET /v0/models — List models - GET /v0/repositories — List GitHub repositories Uses Basic Authentication (base64-encoded `API_KEY:`). Credential lookup order: 1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through) 2. litellm.credential_list (credentials added via UI) 3. CURSOR_API_KEY environment variable */
|
|
199
|
-
export const postCursorProxyRouteCursorEndpoint: API.OperationMethod<
|
|
200
|
-
PostCursorProxyRouteCursorEndpointRequest,
|
|
201
|
-
PostCursorProxyRouteCursorEndpointResponse,
|
|
202
|
-
PostCursorProxyRouteCursorEndpointError,
|
|
203
|
-
LitellmOpContext
|
|
204
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
205
|
-
input: PostCursorProxyRouteCursorEndpointRequest,
|
|
206
|
-
output: PostCursorProxyRouteCursorEndpointResponse,
|
|
207
|
-
errors: [UnprocessableEntity],
|
|
208
|
-
protocol: LitellmProtocol,
|
|
209
|
-
retry: Retry.Retry,
|
|
210
|
-
}));
|
|
211
|
-
|
|
212
|
-
export type PutCursorProxyRouteCursorEndpointError =
|
|
213
|
-
| UnprocessableEntity
|
|
214
|
-
| LitellmOpError;
|
|
215
|
-
/** Cursor Proxy Route Pass-through endpoint for the Cursor Cloud Agents API. Supports all Cursor Cloud Agents endpoints: - GET /v0/agents — List agents - POST /v0/agents — Launch an agent - GET /v0/agents/{id} — Agent status - GET /v0/agents/{id}/conversation — Agent conversation - POST /v0/agents/{id}/followup — Add follow-up - POST /v0/agents/{id}/stop — Stop an agent - DELETE /v0/agents/{id} — Delete an agent - GET /v0/me — API key info - GET /v0/models — List models - GET /v0/repositories — List GitHub repositories Uses Basic Authentication (base64-encoded `API_KEY:`). Credential lookup order: 1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through) 2. litellm.credential_list (credentials added via UI) 3. CURSOR_API_KEY environment variable */
|
|
216
|
-
export const putCursorProxyRouteCursorEndpoint: API.OperationMethod<
|
|
217
|
-
PutCursorProxyRouteCursorEndpointRequest,
|
|
218
|
-
PutCursorProxyRouteCursorEndpointResponse,
|
|
219
|
-
PutCursorProxyRouteCursorEndpointError,
|
|
220
|
-
LitellmOpContext
|
|
221
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
222
|
-
input: PutCursorProxyRouteCursorEndpointRequest,
|
|
223
|
-
output: PutCursorProxyRouteCursorEndpointResponse,
|
|
224
|
-
errors: [UnprocessableEntity],
|
|
225
|
-
protocol: LitellmProtocol,
|
|
226
|
-
retry: Retry.Retry,
|
|
227
|
-
}));
|
|
@@ -1,227 +0,0 @@
|
|
|
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 API from "@distilled.cloud/core/api";
|
|
4
|
-
import * as C from "@distilled.cloud/core/category";
|
|
5
|
-
import * as T from "../traits.ts";
|
|
6
|
-
import {
|
|
7
|
-
LitellmProtocol,
|
|
8
|
-
type LitellmOpError,
|
|
9
|
-
type LitellmOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
11
|
-
import * as Retry from "../retry.ts";
|
|
12
|
-
|
|
13
|
-
export type { LitellmOpError, LitellmOpContext };
|
|
14
|
-
|
|
15
|
-
export class UnprocessableEntity
|
|
16
|
-
extends /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
-
/*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
|
|
18
|
-
code: S.Number,
|
|
19
|
-
message: S.String,
|
|
20
|
-
}).pipe(C.withBadRequestError),
|
|
21
|
-
[{ status: 422 }],
|
|
22
|
-
) {}
|
|
23
|
-
|
|
24
|
-
export interface DeleteGeminiProxyRouteGeminiEndpointRequest {
|
|
25
|
-
endpoint: string;
|
|
26
|
-
}
|
|
27
|
-
export const DeleteGeminiProxyRouteGeminiEndpointRequest =
|
|
28
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
29
|
-
S.Struct({
|
|
30
|
-
endpoint: S.String.pipe(T.Label()),
|
|
31
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/gemini/{endpoint}", code: 200 })),
|
|
32
|
-
).annotate({
|
|
33
|
-
identifier: "DeleteGeminiProxyRouteGeminiEndpointRequest",
|
|
34
|
-
}) as any as S.Schema<DeleteGeminiProxyRouteGeminiEndpointRequest>;
|
|
35
|
-
|
|
36
|
-
export interface DeleteGeminiProxyRouteGeminiEndpointResponse {
|
|
37
|
-
body: unknown;
|
|
38
|
-
}
|
|
39
|
-
export const DeleteGeminiProxyRouteGeminiEndpointResponse =
|
|
40
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
41
|
-
S.Struct({
|
|
42
|
-
body: S.Unknown,
|
|
43
|
-
}),
|
|
44
|
-
).annotate({
|
|
45
|
-
identifier: "DeleteGeminiProxyRouteGeminiEndpointResponse",
|
|
46
|
-
}) as any as S.Schema<DeleteGeminiProxyRouteGeminiEndpointResponse>;
|
|
47
|
-
|
|
48
|
-
export interface GetGeminiProxyRouteGeminiEndpointRequest {
|
|
49
|
-
endpoint: string;
|
|
50
|
-
}
|
|
51
|
-
export const GetGeminiProxyRouteGeminiEndpointRequest = /*@__PURE__*/ S.suspend(
|
|
52
|
-
() =>
|
|
53
|
-
S.Struct({
|
|
54
|
-
endpoint: S.String.pipe(T.Label()),
|
|
55
|
-
}).pipe(T.Http({ method: "GET", uri: "/gemini/{endpoint}", code: 200 })),
|
|
56
|
-
).annotate({
|
|
57
|
-
identifier: "GetGeminiProxyRouteGeminiEndpointRequest",
|
|
58
|
-
}) as any as S.Schema<GetGeminiProxyRouteGeminiEndpointRequest>;
|
|
59
|
-
|
|
60
|
-
export interface GetGeminiProxyRouteGeminiEndpointResponse {
|
|
61
|
-
body: unknown;
|
|
62
|
-
}
|
|
63
|
-
export const GetGeminiProxyRouteGeminiEndpointResponse =
|
|
64
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
65
|
-
S.Struct({
|
|
66
|
-
body: S.Unknown,
|
|
67
|
-
}),
|
|
68
|
-
).annotate({
|
|
69
|
-
identifier: "GetGeminiProxyRouteGeminiEndpointResponse",
|
|
70
|
-
}) as any as S.Schema<GetGeminiProxyRouteGeminiEndpointResponse>;
|
|
71
|
-
|
|
72
|
-
export interface PatchGeminiProxyRouteGeminiEndpointRequest {
|
|
73
|
-
endpoint: string;
|
|
74
|
-
}
|
|
75
|
-
export const PatchGeminiProxyRouteGeminiEndpointRequest =
|
|
76
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
77
|
-
S.Struct({
|
|
78
|
-
endpoint: S.String.pipe(T.Label()),
|
|
79
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/gemini/{endpoint}", code: 200 })),
|
|
80
|
-
).annotate({
|
|
81
|
-
identifier: "PatchGeminiProxyRouteGeminiEndpointRequest",
|
|
82
|
-
}) as any as S.Schema<PatchGeminiProxyRouteGeminiEndpointRequest>;
|
|
83
|
-
|
|
84
|
-
export interface PatchGeminiProxyRouteGeminiEndpointResponse {
|
|
85
|
-
body: unknown;
|
|
86
|
-
}
|
|
87
|
-
export const PatchGeminiProxyRouteGeminiEndpointResponse =
|
|
88
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
89
|
-
S.Struct({
|
|
90
|
-
body: S.Unknown,
|
|
91
|
-
}),
|
|
92
|
-
).annotate({
|
|
93
|
-
identifier: "PatchGeminiProxyRouteGeminiEndpointResponse",
|
|
94
|
-
}) as any as S.Schema<PatchGeminiProxyRouteGeminiEndpointResponse>;
|
|
95
|
-
|
|
96
|
-
export interface PostGeminiProxyRouteGeminiEndpointRequest {
|
|
97
|
-
endpoint: string;
|
|
98
|
-
}
|
|
99
|
-
export const PostGeminiProxyRouteGeminiEndpointRequest =
|
|
100
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
101
|
-
S.Struct({
|
|
102
|
-
endpoint: S.String.pipe(T.Label()),
|
|
103
|
-
}).pipe(T.Http({ method: "POST", uri: "/gemini/{endpoint}", code: 200 })),
|
|
104
|
-
).annotate({
|
|
105
|
-
identifier: "PostGeminiProxyRouteGeminiEndpointRequest",
|
|
106
|
-
}) as any as S.Schema<PostGeminiProxyRouteGeminiEndpointRequest>;
|
|
107
|
-
|
|
108
|
-
export interface PostGeminiProxyRouteGeminiEndpointResponse {
|
|
109
|
-
body: unknown;
|
|
110
|
-
}
|
|
111
|
-
export const PostGeminiProxyRouteGeminiEndpointResponse =
|
|
112
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
113
|
-
S.Struct({
|
|
114
|
-
body: S.Unknown,
|
|
115
|
-
}),
|
|
116
|
-
).annotate({
|
|
117
|
-
identifier: "PostGeminiProxyRouteGeminiEndpointResponse",
|
|
118
|
-
}) as any as S.Schema<PostGeminiProxyRouteGeminiEndpointResponse>;
|
|
119
|
-
|
|
120
|
-
export interface PutGeminiProxyRouteGeminiEndpointRequest {
|
|
121
|
-
endpoint: string;
|
|
122
|
-
}
|
|
123
|
-
export const PutGeminiProxyRouteGeminiEndpointRequest = /*@__PURE__*/ S.suspend(
|
|
124
|
-
() =>
|
|
125
|
-
S.Struct({
|
|
126
|
-
endpoint: S.String.pipe(T.Label()),
|
|
127
|
-
}).pipe(T.Http({ method: "PUT", uri: "/gemini/{endpoint}", code: 200 })),
|
|
128
|
-
).annotate({
|
|
129
|
-
identifier: "PutGeminiProxyRouteGeminiEndpointRequest",
|
|
130
|
-
}) as any as S.Schema<PutGeminiProxyRouteGeminiEndpointRequest>;
|
|
131
|
-
|
|
132
|
-
export interface PutGeminiProxyRouteGeminiEndpointResponse {
|
|
133
|
-
body: unknown;
|
|
134
|
-
}
|
|
135
|
-
export const PutGeminiProxyRouteGeminiEndpointResponse =
|
|
136
|
-
/*@__PURE__*/ S.suspend(() =>
|
|
137
|
-
S.Struct({
|
|
138
|
-
body: S.Unknown,
|
|
139
|
-
}),
|
|
140
|
-
).annotate({
|
|
141
|
-
identifier: "PutGeminiProxyRouteGeminiEndpointResponse",
|
|
142
|
-
}) as any as S.Schema<PutGeminiProxyRouteGeminiEndpointResponse>;
|
|
143
|
-
|
|
144
|
-
export type DeleteGeminiProxyRouteGeminiEndpointError =
|
|
145
|
-
| UnprocessableEntity
|
|
146
|
-
| LitellmOpError;
|
|
147
|
-
/** Gemini Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio) */
|
|
148
|
-
export const deleteGeminiProxyRouteGeminiEndpoint: API.OperationMethod<
|
|
149
|
-
DeleteGeminiProxyRouteGeminiEndpointRequest,
|
|
150
|
-
DeleteGeminiProxyRouteGeminiEndpointResponse,
|
|
151
|
-
DeleteGeminiProxyRouteGeminiEndpointError,
|
|
152
|
-
LitellmOpContext
|
|
153
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
154
|
-
input: DeleteGeminiProxyRouteGeminiEndpointRequest,
|
|
155
|
-
output: DeleteGeminiProxyRouteGeminiEndpointResponse,
|
|
156
|
-
errors: [UnprocessableEntity],
|
|
157
|
-
protocol: LitellmProtocol,
|
|
158
|
-
retry: Retry.Retry,
|
|
159
|
-
}));
|
|
160
|
-
|
|
161
|
-
export type GetGeminiProxyRouteGeminiEndpointError =
|
|
162
|
-
| UnprocessableEntity
|
|
163
|
-
| LitellmOpError;
|
|
164
|
-
/** Gemini Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio) */
|
|
165
|
-
export const getGeminiProxyRouteGeminiEndpoint: API.OperationMethod<
|
|
166
|
-
GetGeminiProxyRouteGeminiEndpointRequest,
|
|
167
|
-
GetGeminiProxyRouteGeminiEndpointResponse,
|
|
168
|
-
GetGeminiProxyRouteGeminiEndpointError,
|
|
169
|
-
LitellmOpContext
|
|
170
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
171
|
-
input: GetGeminiProxyRouteGeminiEndpointRequest,
|
|
172
|
-
output: GetGeminiProxyRouteGeminiEndpointResponse,
|
|
173
|
-
errors: [UnprocessableEntity],
|
|
174
|
-
protocol: LitellmProtocol,
|
|
175
|
-
retry: Retry.Retry,
|
|
176
|
-
}));
|
|
177
|
-
|
|
178
|
-
export type PatchGeminiProxyRouteGeminiEndpointError =
|
|
179
|
-
| UnprocessableEntity
|
|
180
|
-
| LitellmOpError;
|
|
181
|
-
/** Gemini Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio) */
|
|
182
|
-
export const patchGeminiProxyRouteGeminiEndpoint: API.OperationMethod<
|
|
183
|
-
PatchGeminiProxyRouteGeminiEndpointRequest,
|
|
184
|
-
PatchGeminiProxyRouteGeminiEndpointResponse,
|
|
185
|
-
PatchGeminiProxyRouteGeminiEndpointError,
|
|
186
|
-
LitellmOpContext
|
|
187
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
188
|
-
input: PatchGeminiProxyRouteGeminiEndpointRequest,
|
|
189
|
-
output: PatchGeminiProxyRouteGeminiEndpointResponse,
|
|
190
|
-
errors: [UnprocessableEntity],
|
|
191
|
-
protocol: LitellmProtocol,
|
|
192
|
-
retry: Retry.Retry,
|
|
193
|
-
}));
|
|
194
|
-
|
|
195
|
-
export type PostGeminiProxyRouteGeminiEndpointError =
|
|
196
|
-
| UnprocessableEntity
|
|
197
|
-
| LitellmOpError;
|
|
198
|
-
/** Gemini Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio) */
|
|
199
|
-
export const postGeminiProxyRouteGeminiEndpoint: API.OperationMethod<
|
|
200
|
-
PostGeminiProxyRouteGeminiEndpointRequest,
|
|
201
|
-
PostGeminiProxyRouteGeminiEndpointResponse,
|
|
202
|
-
PostGeminiProxyRouteGeminiEndpointError,
|
|
203
|
-
LitellmOpContext
|
|
204
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
205
|
-
input: PostGeminiProxyRouteGeminiEndpointRequest,
|
|
206
|
-
output: PostGeminiProxyRouteGeminiEndpointResponse,
|
|
207
|
-
errors: [UnprocessableEntity],
|
|
208
|
-
protocol: LitellmProtocol,
|
|
209
|
-
retry: Retry.Retry,
|
|
210
|
-
}));
|
|
211
|
-
|
|
212
|
-
export type PutGeminiProxyRouteGeminiEndpointError =
|
|
213
|
-
| UnprocessableEntity
|
|
214
|
-
| LitellmOpError;
|
|
215
|
-
/** Gemini Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio) */
|
|
216
|
-
export const putGeminiProxyRouteGeminiEndpoint: API.OperationMethod<
|
|
217
|
-
PutGeminiProxyRouteGeminiEndpointRequest,
|
|
218
|
-
PutGeminiProxyRouteGeminiEndpointResponse,
|
|
219
|
-
PutGeminiProxyRouteGeminiEndpointError,
|
|
220
|
-
LitellmOpContext
|
|
221
|
-
> = /*@__PURE__*/ API.make(() => ({
|
|
222
|
-
input: PutGeminiProxyRouteGeminiEndpointRequest,
|
|
223
|
-
output: PutGeminiProxyRouteGeminiEndpointResponse,
|
|
224
|
-
errors: [UnprocessableEntity],
|
|
225
|
-
protocol: LitellmProtocol,
|
|
226
|
-
retry: Retry.Retry,
|
|
227
|
-
}));
|