@homeflare/distilled-litellm 0.2.0 → 0.3.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 +41 -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 +2 -1
- package/dist/services/credential_management.d.ts.map +1 -1
- package/dist/services/credential_management.js +3 -2
- 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 +93 -49
- package/dist/services/key_management.d.ts.map +1 -1
- package/dist/services/key_management.js +75 -39
- 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 +9 -4
- 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 +229 -126
- 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
package/src/services/rerank.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as T from "../traits.ts";
|
|
@@ -11,9 +11,69 @@ import * as Retry from "../retry.ts";
|
|
|
11
11
|
|
|
12
12
|
export type { LitellmOpError, LitellmOpContext };
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export type PostRerankRerankRequestDocumentsItemCase1Map = {
|
|
15
|
+
[key: string]: unknown | undefined;
|
|
16
|
+
};
|
|
17
|
+
export const PostRerankRerankRequestDocumentsItemCase1Map =
|
|
18
|
+
/*@__PURE__*/ S.Record(
|
|
19
|
+
S.String,
|
|
20
|
+
S.Unknown,
|
|
21
|
+
) as any as S.Schema<PostRerankRerankRequestDocumentsItemCase1Map>;
|
|
22
|
+
|
|
23
|
+
export type PostRerankRerankRequestDocumentsItem =
|
|
24
|
+
| string
|
|
25
|
+
| PostRerankRerankRequestDocumentsItemCase1Map;
|
|
26
|
+
export const PostRerankRerankRequestDocumentsItem =
|
|
27
|
+
S.Unknown as any as S.Schema<PostRerankRerankRequestDocumentsItem>;
|
|
28
|
+
|
|
29
|
+
export type PostRerankRerankRequestDocumentsList =
|
|
30
|
+
Array<PostRerankRerankRequestDocumentsItem>;
|
|
31
|
+
export const PostRerankRerankRequestDocumentsList = /*@__PURE__*/ S.Array(
|
|
32
|
+
PostRerankRerankRequestDocumentsItem,
|
|
33
|
+
) as any as S.Schema<PostRerankRerankRequestDocumentsList>;
|
|
34
|
+
|
|
35
|
+
export type PostRerankRerankRequestRankFieldsList = Array<string>;
|
|
36
|
+
export const PostRerankRerankRequestRankFieldsList = /*@__PURE__*/ S.Array(
|
|
37
|
+
S.String,
|
|
38
|
+
) as any as S.Schema<PostRerankRerankRequestRankFieldsList>;
|
|
39
|
+
|
|
40
|
+
export type PostRerankRerankRequestTruncationSide = "left" | "right";
|
|
41
|
+
export const PostRerankRerankRequestTruncationSide = S.String;
|
|
42
|
+
|
|
43
|
+
export interface PostRerankRerankRequest {
|
|
44
|
+
model: string;
|
|
45
|
+
query: string;
|
|
46
|
+
documents: PostRerankRerankRequestDocumentsList;
|
|
47
|
+
top_n?: number | null;
|
|
48
|
+
rank_fields?: PostRerankRerankRequestRankFieldsList | null;
|
|
49
|
+
return_documents?: boolean | null;
|
|
50
|
+
max_chunks_per_doc?: number | null;
|
|
51
|
+
max_tokens_per_doc?: number | null;
|
|
52
|
+
instruction?: string | null;
|
|
53
|
+
truncate_prompt_tokens?: number | null;
|
|
54
|
+
truncation_side?:
|
|
55
|
+
| PostRerankRerankRequestTruncationSide
|
|
56
|
+
| (string & {})
|
|
57
|
+
| null;
|
|
58
|
+
max_tokens_per_query?: number | null;
|
|
59
|
+
}
|
|
15
60
|
export const PostRerankRerankRequest = /*@__PURE__*/ S.suspend(() =>
|
|
16
|
-
S.Struct({
|
|
61
|
+
S.Struct({
|
|
62
|
+
model: S.String,
|
|
63
|
+
query: S.String,
|
|
64
|
+
documents: PostRerankRerankRequestDocumentsList,
|
|
65
|
+
top_n: S.optional(S.NullOr(S.Number)),
|
|
66
|
+
rank_fields: S.optional(S.NullOr(PostRerankRerankRequestRankFieldsList)),
|
|
67
|
+
return_documents: S.optional(S.NullOr(S.Boolean)),
|
|
68
|
+
max_chunks_per_doc: S.optional(S.NullOr(S.Number)),
|
|
69
|
+
max_tokens_per_doc: S.optional(S.NullOr(S.Number)),
|
|
70
|
+
instruction: S.optional(S.NullOr(S.String)),
|
|
71
|
+
truncate_prompt_tokens: S.optional(S.NullOr(S.Number)),
|
|
72
|
+
truncation_side: S.optional(
|
|
73
|
+
S.NullOr(PostRerankRerankRequestTruncationSide),
|
|
74
|
+
),
|
|
75
|
+
max_tokens_per_query: S.optional(S.NullOr(S.Number)),
|
|
76
|
+
}).pipe(T.Http({ method: "POST", uri: "/rerank", code: 200 })),
|
|
17
77
|
).annotate({
|
|
18
78
|
identifier: "PostRerankRerankRequest",
|
|
19
79
|
}) as any as S.Schema<PostRerankRerankRequest>;
|
|
@@ -29,9 +89,69 @@ export const PostRerankRerankResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
29
89
|
identifier: "PostRerankRerankResponse",
|
|
30
90
|
}) as any as S.Schema<PostRerankRerankResponse>;
|
|
31
91
|
|
|
32
|
-
export
|
|
92
|
+
export type PostRerankV1RerankRequestDocumentsItemCase1Map = {
|
|
93
|
+
[key: string]: unknown | undefined;
|
|
94
|
+
};
|
|
95
|
+
export const PostRerankV1RerankRequestDocumentsItemCase1Map =
|
|
96
|
+
/*@__PURE__*/ S.Record(
|
|
97
|
+
S.String,
|
|
98
|
+
S.Unknown,
|
|
99
|
+
) as any as S.Schema<PostRerankV1RerankRequestDocumentsItemCase1Map>;
|
|
100
|
+
|
|
101
|
+
export type PostRerankV1RerankRequestDocumentsItem =
|
|
102
|
+
| string
|
|
103
|
+
| PostRerankV1RerankRequestDocumentsItemCase1Map;
|
|
104
|
+
export const PostRerankV1RerankRequestDocumentsItem =
|
|
105
|
+
S.Unknown as any as S.Schema<PostRerankV1RerankRequestDocumentsItem>;
|
|
106
|
+
|
|
107
|
+
export type PostRerankV1RerankRequestDocumentsList =
|
|
108
|
+
Array<PostRerankV1RerankRequestDocumentsItem>;
|
|
109
|
+
export const PostRerankV1RerankRequestDocumentsList = /*@__PURE__*/ S.Array(
|
|
110
|
+
PostRerankV1RerankRequestDocumentsItem,
|
|
111
|
+
) as any as S.Schema<PostRerankV1RerankRequestDocumentsList>;
|
|
112
|
+
|
|
113
|
+
export type PostRerankV1RerankRequestRankFieldsList = Array<string>;
|
|
114
|
+
export const PostRerankV1RerankRequestRankFieldsList = /*@__PURE__*/ S.Array(
|
|
115
|
+
S.String,
|
|
116
|
+
) as any as S.Schema<PostRerankV1RerankRequestRankFieldsList>;
|
|
117
|
+
|
|
118
|
+
export type PostRerankV1RerankRequestTruncationSide = "left" | "right";
|
|
119
|
+
export const PostRerankV1RerankRequestTruncationSide = S.String;
|
|
120
|
+
|
|
121
|
+
export interface PostRerankV1RerankRequest {
|
|
122
|
+
model: string;
|
|
123
|
+
query: string;
|
|
124
|
+
documents: PostRerankV1RerankRequestDocumentsList;
|
|
125
|
+
top_n?: number | null;
|
|
126
|
+
rank_fields?: PostRerankV1RerankRequestRankFieldsList | null;
|
|
127
|
+
return_documents?: boolean | null;
|
|
128
|
+
max_chunks_per_doc?: number | null;
|
|
129
|
+
max_tokens_per_doc?: number | null;
|
|
130
|
+
instruction?: string | null;
|
|
131
|
+
truncate_prompt_tokens?: number | null;
|
|
132
|
+
truncation_side?:
|
|
133
|
+
| PostRerankV1RerankRequestTruncationSide
|
|
134
|
+
| (string & {})
|
|
135
|
+
| null;
|
|
136
|
+
max_tokens_per_query?: number | null;
|
|
137
|
+
}
|
|
33
138
|
export const PostRerankV1RerankRequest = /*@__PURE__*/ S.suspend(() =>
|
|
34
|
-
S.Struct({
|
|
139
|
+
S.Struct({
|
|
140
|
+
model: S.String,
|
|
141
|
+
query: S.String,
|
|
142
|
+
documents: PostRerankV1RerankRequestDocumentsList,
|
|
143
|
+
top_n: S.optional(S.NullOr(S.Number)),
|
|
144
|
+
rank_fields: S.optional(S.NullOr(PostRerankV1RerankRequestRankFieldsList)),
|
|
145
|
+
return_documents: S.optional(S.NullOr(S.Boolean)),
|
|
146
|
+
max_chunks_per_doc: S.optional(S.NullOr(S.Number)),
|
|
147
|
+
max_tokens_per_doc: S.optional(S.NullOr(S.Number)),
|
|
148
|
+
instruction: S.optional(S.NullOr(S.String)),
|
|
149
|
+
truncate_prompt_tokens: S.optional(S.NullOr(S.Number)),
|
|
150
|
+
truncation_side: S.optional(
|
|
151
|
+
S.NullOr(PostRerankV1RerankRequestTruncationSide),
|
|
152
|
+
),
|
|
153
|
+
max_tokens_per_query: S.optional(S.NullOr(S.Number)),
|
|
154
|
+
}).pipe(T.Http({ method: "POST", uri: "/v1/rerank", code: 200 })),
|
|
35
155
|
).annotate({
|
|
36
156
|
identifier: "PostRerankV1RerankRequest",
|
|
37
157
|
}) as any as S.Schema<PostRerankV1RerankRequest>;
|
|
@@ -47,9 +167,69 @@ export const PostRerankV1RerankResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
47
167
|
identifier: "PostRerankV1RerankResponse",
|
|
48
168
|
}) as any as S.Schema<PostRerankV1RerankResponse>;
|
|
49
169
|
|
|
50
|
-
export
|
|
170
|
+
export type PostRerankV2RerankRequestDocumentsItemCase1Map = {
|
|
171
|
+
[key: string]: unknown | undefined;
|
|
172
|
+
};
|
|
173
|
+
export const PostRerankV2RerankRequestDocumentsItemCase1Map =
|
|
174
|
+
/*@__PURE__*/ S.Record(
|
|
175
|
+
S.String,
|
|
176
|
+
S.Unknown,
|
|
177
|
+
) as any as S.Schema<PostRerankV2RerankRequestDocumentsItemCase1Map>;
|
|
178
|
+
|
|
179
|
+
export type PostRerankV2RerankRequestDocumentsItem =
|
|
180
|
+
| string
|
|
181
|
+
| PostRerankV2RerankRequestDocumentsItemCase1Map;
|
|
182
|
+
export const PostRerankV2RerankRequestDocumentsItem =
|
|
183
|
+
S.Unknown as any as S.Schema<PostRerankV2RerankRequestDocumentsItem>;
|
|
184
|
+
|
|
185
|
+
export type PostRerankV2RerankRequestDocumentsList =
|
|
186
|
+
Array<PostRerankV2RerankRequestDocumentsItem>;
|
|
187
|
+
export const PostRerankV2RerankRequestDocumentsList = /*@__PURE__*/ S.Array(
|
|
188
|
+
PostRerankV2RerankRequestDocumentsItem,
|
|
189
|
+
) as any as S.Schema<PostRerankV2RerankRequestDocumentsList>;
|
|
190
|
+
|
|
191
|
+
export type PostRerankV2RerankRequestRankFieldsList = Array<string>;
|
|
192
|
+
export const PostRerankV2RerankRequestRankFieldsList = /*@__PURE__*/ S.Array(
|
|
193
|
+
S.String,
|
|
194
|
+
) as any as S.Schema<PostRerankV2RerankRequestRankFieldsList>;
|
|
195
|
+
|
|
196
|
+
export type PostRerankV2RerankRequestTruncationSide = "left" | "right";
|
|
197
|
+
export const PostRerankV2RerankRequestTruncationSide = S.String;
|
|
198
|
+
|
|
199
|
+
export interface PostRerankV2RerankRequest {
|
|
200
|
+
model: string;
|
|
201
|
+
query: string;
|
|
202
|
+
documents: PostRerankV2RerankRequestDocumentsList;
|
|
203
|
+
top_n?: number | null;
|
|
204
|
+
rank_fields?: PostRerankV2RerankRequestRankFieldsList | null;
|
|
205
|
+
return_documents?: boolean | null;
|
|
206
|
+
max_chunks_per_doc?: number | null;
|
|
207
|
+
max_tokens_per_doc?: number | null;
|
|
208
|
+
instruction?: string | null;
|
|
209
|
+
truncate_prompt_tokens?: number | null;
|
|
210
|
+
truncation_side?:
|
|
211
|
+
| PostRerankV2RerankRequestTruncationSide
|
|
212
|
+
| (string & {})
|
|
213
|
+
| null;
|
|
214
|
+
max_tokens_per_query?: number | null;
|
|
215
|
+
}
|
|
51
216
|
export const PostRerankV2RerankRequest = /*@__PURE__*/ S.suspend(() =>
|
|
52
|
-
S.Struct({
|
|
217
|
+
S.Struct({
|
|
218
|
+
model: S.String,
|
|
219
|
+
query: S.String,
|
|
220
|
+
documents: PostRerankV2RerankRequestDocumentsList,
|
|
221
|
+
top_n: S.optional(S.NullOr(S.Number)),
|
|
222
|
+
rank_fields: S.optional(S.NullOr(PostRerankV2RerankRequestRankFieldsList)),
|
|
223
|
+
return_documents: S.optional(S.NullOr(S.Boolean)),
|
|
224
|
+
max_chunks_per_doc: S.optional(S.NullOr(S.Number)),
|
|
225
|
+
max_tokens_per_doc: S.optional(S.NullOr(S.Number)),
|
|
226
|
+
instruction: S.optional(S.NullOr(S.String)),
|
|
227
|
+
truncate_prompt_tokens: S.optional(S.NullOr(S.Number)),
|
|
228
|
+
truncation_side: S.optional(
|
|
229
|
+
S.NullOr(PostRerankV2RerankRequestTruncationSide),
|
|
230
|
+
),
|
|
231
|
+
max_tokens_per_query: S.optional(S.NullOr(S.Number)),
|
|
232
|
+
}).pipe(T.Http({ method: "POST", uri: "/v2/rerank", code: 200 })),
|
|
53
233
|
).annotate({
|
|
54
234
|
identifier: "PostRerankV2RerankRequest",
|
|
55
235
|
}) as any as S.Schema<PostRerankV2RerankRequest>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
|
@@ -569,6 +569,76 @@ export const PostResponsesApiV1ResponseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
569
569
|
identifier: "PostResponsesApiV1ResponseResponse",
|
|
570
570
|
}) as any as S.Schema<PostResponsesApiV1ResponseResponse>;
|
|
571
571
|
|
|
572
|
+
export interface PostResponsesInputTokensOpenaiV1ResponsesInputTokenRequest {}
|
|
573
|
+
export const PostResponsesInputTokensOpenaiV1ResponsesInputTokenRequest =
|
|
574
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
575
|
+
S.Struct({}).pipe(
|
|
576
|
+
T.Http({
|
|
577
|
+
method: "POST",
|
|
578
|
+
uri: "/openai/v1/responses/input_tokens",
|
|
579
|
+
code: 200,
|
|
580
|
+
}),
|
|
581
|
+
),
|
|
582
|
+
).annotate({
|
|
583
|
+
identifier: "PostResponsesInputTokensOpenaiV1ResponsesInputTokenRequest",
|
|
584
|
+
}) as any as S.Schema<PostResponsesInputTokensOpenaiV1ResponsesInputTokenRequest>;
|
|
585
|
+
|
|
586
|
+
export interface PostResponsesInputTokensOpenaiV1ResponsesInputTokenResponse {
|
|
587
|
+
body: unknown;
|
|
588
|
+
}
|
|
589
|
+
export const PostResponsesInputTokensOpenaiV1ResponsesInputTokenResponse =
|
|
590
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
591
|
+
S.Struct({
|
|
592
|
+
body: S.Unknown,
|
|
593
|
+
}),
|
|
594
|
+
).annotate({
|
|
595
|
+
identifier: "PostResponsesInputTokensOpenaiV1ResponsesInputTokenResponse",
|
|
596
|
+
}) as any as S.Schema<PostResponsesInputTokensOpenaiV1ResponsesInputTokenResponse>;
|
|
597
|
+
|
|
598
|
+
export interface PostResponsesInputTokensResponsesInputTokenRequest {}
|
|
599
|
+
export const PostResponsesInputTokensResponsesInputTokenRequest =
|
|
600
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
601
|
+
S.Struct({}).pipe(
|
|
602
|
+
T.Http({ method: "POST", uri: "/responses/input_tokens", code: 200 }),
|
|
603
|
+
),
|
|
604
|
+
).annotate({
|
|
605
|
+
identifier: "PostResponsesInputTokensResponsesInputTokenRequest",
|
|
606
|
+
}) as any as S.Schema<PostResponsesInputTokensResponsesInputTokenRequest>;
|
|
607
|
+
|
|
608
|
+
export interface PostResponsesInputTokensResponsesInputTokenResponse {
|
|
609
|
+
body: unknown;
|
|
610
|
+
}
|
|
611
|
+
export const PostResponsesInputTokensResponsesInputTokenResponse =
|
|
612
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
613
|
+
S.Struct({
|
|
614
|
+
body: S.Unknown,
|
|
615
|
+
}),
|
|
616
|
+
).annotate({
|
|
617
|
+
identifier: "PostResponsesInputTokensResponsesInputTokenResponse",
|
|
618
|
+
}) as any as S.Schema<PostResponsesInputTokensResponsesInputTokenResponse>;
|
|
619
|
+
|
|
620
|
+
export interface PostResponsesInputTokensV1ResponsesInputTokenRequest {}
|
|
621
|
+
export const PostResponsesInputTokensV1ResponsesInputTokenRequest =
|
|
622
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
623
|
+
S.Struct({}).pipe(
|
|
624
|
+
T.Http({ method: "POST", uri: "/v1/responses/input_tokens", code: 200 }),
|
|
625
|
+
),
|
|
626
|
+
).annotate({
|
|
627
|
+
identifier: "PostResponsesInputTokensV1ResponsesInputTokenRequest",
|
|
628
|
+
}) as any as S.Schema<PostResponsesInputTokensV1ResponsesInputTokenRequest>;
|
|
629
|
+
|
|
630
|
+
export interface PostResponsesInputTokensV1ResponsesInputTokenResponse {
|
|
631
|
+
body: unknown;
|
|
632
|
+
}
|
|
633
|
+
export const PostResponsesInputTokensV1ResponsesInputTokenResponse =
|
|
634
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
635
|
+
S.Struct({
|
|
636
|
+
body: S.Unknown,
|
|
637
|
+
}),
|
|
638
|
+
).annotate({
|
|
639
|
+
identifier: "PostResponsesInputTokensV1ResponsesInputTokenResponse",
|
|
640
|
+
}) as any as S.Schema<PostResponsesInputTokensV1ResponsesInputTokenResponse>;
|
|
641
|
+
|
|
572
642
|
export type CancelResponseOpenaiV1ResponsesResponseIdCancelPostError =
|
|
573
643
|
| UnprocessableEntity
|
|
574
644
|
| LitellmOpError;
|
|
@@ -907,3 +977,49 @@ export const postResponsesApiV1Response: API.OperationMethod<
|
|
|
907
977
|
protocol: LitellmProtocol,
|
|
908
978
|
retry: Retry.Retry,
|
|
909
979
|
}));
|
|
980
|
+
|
|
981
|
+
export type PostResponsesInputTokensOpenaiV1ResponsesInputTokenError =
|
|
982
|
+
LitellmOpError;
|
|
983
|
+
/** Responses Input Tokens Count the input tokens of a Responses API request without calling the model. Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens ```bash curl -X POST http://localhost:4000/v1/responses/input_tokens -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-4o", "input": "Hello, how are you?" }' ``` Returns: `{"object": "response.input_tokens", "input_tokens": <count>}` */
|
|
984
|
+
export const postResponsesInputTokensOpenaiV1ResponsesInputToken: API.OperationMethod<
|
|
985
|
+
PostResponsesInputTokensOpenaiV1ResponsesInputTokenRequest,
|
|
986
|
+
PostResponsesInputTokensOpenaiV1ResponsesInputTokenResponse,
|
|
987
|
+
PostResponsesInputTokensOpenaiV1ResponsesInputTokenError,
|
|
988
|
+
LitellmOpContext
|
|
989
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
990
|
+
input: PostResponsesInputTokensOpenaiV1ResponsesInputTokenRequest,
|
|
991
|
+
output: PostResponsesInputTokensOpenaiV1ResponsesInputTokenResponse,
|
|
992
|
+
errors: [],
|
|
993
|
+
protocol: LitellmProtocol,
|
|
994
|
+
retry: Retry.Retry,
|
|
995
|
+
}));
|
|
996
|
+
|
|
997
|
+
export type PostResponsesInputTokensResponsesInputTokenError = LitellmOpError;
|
|
998
|
+
/** Responses Input Tokens Count the input tokens of a Responses API request without calling the model. Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens ```bash curl -X POST http://localhost:4000/v1/responses/input_tokens -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-4o", "input": "Hello, how are you?" }' ``` Returns: `{"object": "response.input_tokens", "input_tokens": <count>}` */
|
|
999
|
+
export const postResponsesInputTokensResponsesInputToken: API.OperationMethod<
|
|
1000
|
+
PostResponsesInputTokensResponsesInputTokenRequest,
|
|
1001
|
+
PostResponsesInputTokensResponsesInputTokenResponse,
|
|
1002
|
+
PostResponsesInputTokensResponsesInputTokenError,
|
|
1003
|
+
LitellmOpContext
|
|
1004
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1005
|
+
input: PostResponsesInputTokensResponsesInputTokenRequest,
|
|
1006
|
+
output: PostResponsesInputTokensResponsesInputTokenResponse,
|
|
1007
|
+
errors: [],
|
|
1008
|
+
protocol: LitellmProtocol,
|
|
1009
|
+
retry: Retry.Retry,
|
|
1010
|
+
}));
|
|
1011
|
+
|
|
1012
|
+
export type PostResponsesInputTokensV1ResponsesInputTokenError = LitellmOpError;
|
|
1013
|
+
/** Responses Input Tokens Count the input tokens of a Responses API request without calling the model. Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens ```bash curl -X POST http://localhost:4000/v1/responses/input_tokens -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-4o", "input": "Hello, how are you?" }' ``` Returns: `{"object": "response.input_tokens", "input_tokens": <count>}` */
|
|
1014
|
+
export const postResponsesInputTokensV1ResponsesInputToken: API.OperationMethod<
|
|
1015
|
+
PostResponsesInputTokensV1ResponsesInputTokenRequest,
|
|
1016
|
+
PostResponsesInputTokensV1ResponsesInputTokenResponse,
|
|
1017
|
+
PostResponsesInputTokensV1ResponsesInputTokenError,
|
|
1018
|
+
LitellmOpContext
|
|
1019
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1020
|
+
input: PostResponsesInputTokensV1ResponsesInputTokenRequest,
|
|
1021
|
+
output: PostResponsesInputTokensV1ResponsesInputTokenResponse,
|
|
1022
|
+
errors: [],
|
|
1023
|
+
protocol: LitellmProtocol,
|
|
1024
|
+
retry: Retry.Retry,
|
|
1025
|
+
}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as T from "../traits.ts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
package/src/services/scim.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
|
@@ -136,14 +136,14 @@ export interface SCIMMultiValuedAttribute {
|
|
|
136
136
|
display?: string | null;
|
|
137
137
|
primary?: boolean | null;
|
|
138
138
|
type?: string | null;
|
|
139
|
-
value
|
|
139
|
+
value?: string | null;
|
|
140
140
|
}
|
|
141
141
|
export const SCIMMultiValuedAttribute = /*@__PURE__*/ S.suspend(() =>
|
|
142
142
|
S.Struct({
|
|
143
143
|
display: S.optional(S.NullOr(S.String)),
|
|
144
144
|
primary: S.optional(S.NullOr(S.Boolean)),
|
|
145
145
|
type: S.optional(S.NullOr(S.String)),
|
|
146
|
-
value: S.String,
|
|
146
|
+
value: S.optional(S.NullOr(S.String)),
|
|
147
147
|
}),
|
|
148
148
|
).annotate({
|
|
149
149
|
identifier: "SCIMMultiValuedAttribute",
|
|
@@ -684,6 +684,63 @@ export const GetUsersScimV2UsersGetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
684
684
|
identifier: "GetUsersScimV2UsersGetRequest",
|
|
685
685
|
}) as any as S.Schema<GetUsersScimV2UsersGetRequest>;
|
|
686
686
|
|
|
687
|
+
export interface ListPlaceholdersScimV2PlaceholdersGetRequest {
|
|
688
|
+
feature?: string;
|
|
689
|
+
}
|
|
690
|
+
export const ListPlaceholdersScimV2PlaceholdersGetRequest =
|
|
691
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
692
|
+
S.Struct({
|
|
693
|
+
feature: S.optional(S.String.pipe(T.Query())),
|
|
694
|
+
}).pipe(T.Http({ method: "GET", uri: "/scim/v2/placeholders", code: 200 })),
|
|
695
|
+
).annotate({
|
|
696
|
+
identifier: "ListPlaceholdersScimV2PlaceholdersGetRequest",
|
|
697
|
+
}) as any as S.Schema<ListPlaceholdersScimV2PlaceholdersGetRequest>;
|
|
698
|
+
|
|
699
|
+
export type SCIMPlaceholderResolvedUserIdsList = Array<string>;
|
|
700
|
+
export const SCIMPlaceholderResolvedUserIdsList = /*@__PURE__*/ S.Array(
|
|
701
|
+
S.String,
|
|
702
|
+
) as any as S.Schema<SCIMPlaceholderResolvedUserIdsList>;
|
|
703
|
+
|
|
704
|
+
export type SCIMPlaceholderTeamIdsList = Array<string>;
|
|
705
|
+
export const SCIMPlaceholderTeamIdsList = /*@__PURE__*/ S.Array(
|
|
706
|
+
S.String,
|
|
707
|
+
) as any as S.Schema<SCIMPlaceholderTeamIdsList>;
|
|
708
|
+
|
|
709
|
+
/** A user row keyed by a value that names another account by SSO identity or email. */
|
|
710
|
+
export interface SCIMPlaceholder {
|
|
711
|
+
placeholder_user_id: string;
|
|
712
|
+
resolved_user_ids: SCIMPlaceholderResolvedUserIdsList;
|
|
713
|
+
team_ids: SCIMPlaceholderTeamIdsList;
|
|
714
|
+
}
|
|
715
|
+
export const SCIMPlaceholder = /*@__PURE__*/ S.suspend(() =>
|
|
716
|
+
S.Struct({
|
|
717
|
+
placeholder_user_id: S.String,
|
|
718
|
+
resolved_user_ids: SCIMPlaceholderResolvedUserIdsList,
|
|
719
|
+
team_ids: SCIMPlaceholderTeamIdsList,
|
|
720
|
+
}),
|
|
721
|
+
).annotate({
|
|
722
|
+
identifier: "SCIMPlaceholder",
|
|
723
|
+
}) as any as S.Schema<SCIMPlaceholder>;
|
|
724
|
+
|
|
725
|
+
export type ListPlaceholdersScimV2PlaceholdersGetResponseBodyList =
|
|
726
|
+
Array<SCIMPlaceholder>;
|
|
727
|
+
export const ListPlaceholdersScimV2PlaceholdersGetResponseBodyList =
|
|
728
|
+
/*@__PURE__*/ S.Array(
|
|
729
|
+
SCIMPlaceholder,
|
|
730
|
+
) as any as S.Schema<ListPlaceholdersScimV2PlaceholdersGetResponseBodyList>;
|
|
731
|
+
|
|
732
|
+
export interface ListPlaceholdersScimV2PlaceholdersGetResponse {
|
|
733
|
+
body: ListPlaceholdersScimV2PlaceholdersGetResponseBodyList;
|
|
734
|
+
}
|
|
735
|
+
export const ListPlaceholdersScimV2PlaceholdersGetResponse =
|
|
736
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
737
|
+
S.Struct({
|
|
738
|
+
body: ListPlaceholdersScimV2PlaceholdersGetResponseBodyList,
|
|
739
|
+
}),
|
|
740
|
+
).annotate({
|
|
741
|
+
identifier: "ListPlaceholdersScimV2PlaceholdersGetResponse",
|
|
742
|
+
}) as any as S.Schema<ListPlaceholdersScimV2PlaceholdersGetResponse>;
|
|
743
|
+
|
|
687
744
|
export interface SCIMPatchOperation {
|
|
688
745
|
op: string;
|
|
689
746
|
path?: string | null;
|
|
@@ -778,6 +835,46 @@ export const PatchUserScimV2UsersUserIdPatchResponse = /*@__PURE__*/ S.suspend(
|
|
|
778
835
|
identifier: "PatchUserScimV2UsersUserIdPatchResponse",
|
|
779
836
|
}) as any as S.Schema<PatchUserScimV2UsersUserIdPatchResponse>;
|
|
780
837
|
|
|
838
|
+
export interface PostMergePlaceholderScimV2PlaceholdersUserIdMergeRequest {
|
|
839
|
+
user_id: string;
|
|
840
|
+
feature?: string;
|
|
841
|
+
}
|
|
842
|
+
export const PostMergePlaceholderScimV2PlaceholdersUserIdMergeRequest =
|
|
843
|
+
/*@__PURE__*/ S.suspend(() =>
|
|
844
|
+
S.Struct({
|
|
845
|
+
user_id: S.String.pipe(T.Label()),
|
|
846
|
+
feature: S.optional(S.String.pipe(T.Query())),
|
|
847
|
+
}).pipe(
|
|
848
|
+
T.Http({
|
|
849
|
+
method: "POST",
|
|
850
|
+
uri: "/scim/v2/placeholders/{user_id}/merge",
|
|
851
|
+
code: 200,
|
|
852
|
+
}),
|
|
853
|
+
),
|
|
854
|
+
).annotate({
|
|
855
|
+
identifier: "PostMergePlaceholderScimV2PlaceholdersUserIdMergeRequest",
|
|
856
|
+
}) as any as S.Schema<PostMergePlaceholderScimV2PlaceholdersUserIdMergeRequest>;
|
|
857
|
+
|
|
858
|
+
export type SCIMPlaceholderMergeResultTeamIdsList = Array<string>;
|
|
859
|
+
export const SCIMPlaceholderMergeResultTeamIdsList = /*@__PURE__*/ S.Array(
|
|
860
|
+
S.String,
|
|
861
|
+
) as any as S.Schema<SCIMPlaceholderMergeResultTeamIdsList>;
|
|
862
|
+
|
|
863
|
+
export interface SCIMPlaceholderMergeResult {
|
|
864
|
+
merged_into_user_id: string;
|
|
865
|
+
placeholder_user_id: string;
|
|
866
|
+
team_ids: SCIMPlaceholderMergeResultTeamIdsList;
|
|
867
|
+
}
|
|
868
|
+
export const SCIMPlaceholderMergeResult = /*@__PURE__*/ S.suspend(() =>
|
|
869
|
+
S.Struct({
|
|
870
|
+
merged_into_user_id: S.String,
|
|
871
|
+
placeholder_user_id: S.String,
|
|
872
|
+
team_ids: SCIMPlaceholderMergeResultTeamIdsList,
|
|
873
|
+
}),
|
|
874
|
+
).annotate({
|
|
875
|
+
identifier: "SCIMPlaceholderMergeResult",
|
|
876
|
+
}) as any as S.Schema<SCIMPlaceholderMergeResult>;
|
|
877
|
+
|
|
781
878
|
export type UpdateGroupScimV2GroupsGroupIdPutRequestMembersList =
|
|
782
879
|
Array<SCIMMember>;
|
|
783
880
|
export const UpdateGroupScimV2GroupsGroupIdPutRequestMembersList =
|
|
@@ -1174,6 +1271,23 @@ export const getUsersScimV2UsersGet: API.OperationMethod<
|
|
|
1174
1271
|
retry: Retry.Retry,
|
|
1175
1272
|
}));
|
|
1176
1273
|
|
|
1274
|
+
export type ListPlaceholdersScimV2PlaceholdersGetError =
|
|
1275
|
+
| UnprocessableEntity
|
|
1276
|
+
| LitellmOpError;
|
|
1277
|
+
/** List Placeholders List user rows whose id is another account's SSO identity or email. An earlier release provisioned a group member it could not match as a user keyed by the raw member value, and that row now shadows the account the value really names, so every push of that member is refused. This lists those rows so an operator can fold each one into the account it shadows with ``POST /scim/v2/placeholders/{user_id}/merge``. A row that has an SSO identity of its own or owns virtual keys is left out: someone uses that account. */
|
|
1278
|
+
export const listPlaceholdersScimV2PlaceholdersGet: API.OperationMethod<
|
|
1279
|
+
ListPlaceholdersScimV2PlaceholdersGetRequest,
|
|
1280
|
+
ListPlaceholdersScimV2PlaceholdersGetResponse,
|
|
1281
|
+
ListPlaceholdersScimV2PlaceholdersGetError,
|
|
1282
|
+
LitellmOpContext
|
|
1283
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1284
|
+
input: ListPlaceholdersScimV2PlaceholdersGetRequest,
|
|
1285
|
+
output: ListPlaceholdersScimV2PlaceholdersGetResponse,
|
|
1286
|
+
errors: [UnprocessableEntity],
|
|
1287
|
+
protocol: LitellmProtocol,
|
|
1288
|
+
retry: Retry.Retry,
|
|
1289
|
+
}));
|
|
1290
|
+
|
|
1177
1291
|
export type PatchGroupScimV2GroupsGroupIdPatchError =
|
|
1178
1292
|
| UnprocessableEntity
|
|
1179
1293
|
| LitellmOpError;
|
|
@@ -1208,6 +1322,23 @@ export const patchUserScimV2UsersUserIdPatch: API.OperationMethod<
|
|
|
1208
1322
|
retry: Retry.Retry,
|
|
1209
1323
|
}));
|
|
1210
1324
|
|
|
1325
|
+
export type PostMergePlaceholderScimV2PlaceholdersUserIdMergeError =
|
|
1326
|
+
| UnprocessableEntity
|
|
1327
|
+
| LitellmOpError;
|
|
1328
|
+
/** Merge Placeholder Fold a placeholder user into the one account its id names by SSO identity or email. The account is added to every team the placeholder is on, then the placeholder is deleted the way ``DELETE /scim/v2/Users/{id}`` deletes a user, so the next group push resolves the member value to the real account. Refused with 409 when the row has an SSO identity of its own, owns virtual keys, or names no account or several. */
|
|
1329
|
+
export const postMergePlaceholderScimV2PlaceholdersUserIdMerge: API.OperationMethod<
|
|
1330
|
+
PostMergePlaceholderScimV2PlaceholdersUserIdMergeRequest,
|
|
1331
|
+
SCIMPlaceholderMergeResult,
|
|
1332
|
+
PostMergePlaceholderScimV2PlaceholdersUserIdMergeError,
|
|
1333
|
+
LitellmOpContext
|
|
1334
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
1335
|
+
input: PostMergePlaceholderScimV2PlaceholdersUserIdMergeRequest,
|
|
1336
|
+
output: SCIMPlaceholderMergeResult,
|
|
1337
|
+
errors: [UnprocessableEntity],
|
|
1338
|
+
protocol: LitellmProtocol,
|
|
1339
|
+
retry: Retry.Retry,
|
|
1340
|
+
}));
|
|
1341
|
+
|
|
1211
1342
|
export type UpdateGroupScimV2GroupsGroupIdPutError =
|
|
1212
1343
|
| UnprocessableEntity
|
|
1213
1344
|
| LitellmOpError;
|
package/src/services/search.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.103.0 — see README). Do not edit.
|
|
2
2
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
3
|
import * as API from "@distilled.cloud/core/api";
|
|
4
4
|
import * as C from "@distilled.cloud/core/category";
|