@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.
Files changed (390) hide show
  1. package/README.md +41 -12
  2. package/dist/services/a2a.js +1 -1
  3. package/dist/services/a2a_registration.js +1 -1
  4. package/dist/services/access_groups.d.ts +18 -0
  5. package/dist/services/access_groups.d.ts.map +1 -1
  6. package/dist/services/access_groups.js +15 -1
  7. package/dist/services/access_groups.js.map +1 -1
  8. package/dist/services/adaptive_router.js +1 -1
  9. package/dist/services/agents.d.ts +10 -0
  10. package/dist/services/agents.d.ts.map +1 -1
  11. package/dist/services/agents.js +10 -1
  12. package/dist/services/agents.js.map +1 -1
  13. package/dist/services/alerting.js +1 -1
  14. package/dist/services/anthropic_passthrough.js +1 -1
  15. package/dist/services/anthropic_skills.d.ts +7 -1
  16. package/dist/services/anthropic_skills.d.ts.map +1 -1
  17. package/dist/services/anthropic_skills.js +6 -2
  18. package/dist/services/anthropic_skills.js.map +1 -1
  19. package/dist/services/assistants.js +1 -1
  20. package/dist/services/audio.js +1 -1
  21. package/dist/services/audit_logging.d.ts +2 -0
  22. package/dist/services/audit_logging.d.ts.map +1 -1
  23. package/dist/services/audit_logging.js +2 -1
  24. package/dist/services/audit_logging.js.map +1 -1
  25. package/dist/services/auto_router.d.ts +162 -62
  26. package/dist/services/auto_router.d.ts.map +1 -1
  27. package/dist/services/auto_router.js +92 -31
  28. package/dist/services/auto_router.js.map +1 -1
  29. package/dist/services/batch.js +1 -1
  30. package/dist/services/beta_agents.js +1 -1
  31. package/dist/services/beta_mcp.js +1 -1
  32. package/dist/services/budget_management.d.ts +8 -3
  33. package/dist/services/budget_management.d.ts.map +1 -1
  34. package/dist/services/budget_management.js +7 -4
  35. package/dist/services/budget_management.js.map +1 -1
  36. package/dist/services/budget_spend_tracking.d.ts +24 -5
  37. package/dist/services/budget_spend_tracking.d.ts.map +1 -1
  38. package/dist/services/budget_spend_tracking.js +17 -4
  39. package/dist/services/budget_spend_tracking.js.map +1 -1
  40. package/dist/services/cache_settings.js +1 -1
  41. package/dist/services/caching.js +1 -1
  42. package/dist/services/chat_completions.js +1 -1
  43. package/dist/services/claude_code_marketplace.d.ts +11 -10
  44. package/dist/services/claude_code_marketplace.d.ts.map +1 -1
  45. package/dist/services/claude_code_marketplace.js +8 -6
  46. package/dist/services/claude_code_marketplace.js.map +1 -1
  47. package/dist/services/cloudzero.js +1 -1
  48. package/dist/services/completions.js +1 -1
  49. package/dist/services/compliance.js +1 -1
  50. package/dist/services/config_overrides.d.ts +5 -1
  51. package/dist/services/config_overrides.d.ts.map +1 -1
  52. package/dist/services/config_overrides.js +3 -1
  53. package/dist/services/config_overrides.js.map +1 -1
  54. package/dist/services/config_yaml.d.ts +120 -6
  55. package/dist/services/config_yaml.d.ts.map +1 -1
  56. package/dist/services/config_yaml.js +67 -1
  57. package/dist/services/config_yaml.js.map +1 -1
  58. package/dist/services/containers.d.ts +8 -2
  59. package/dist/services/containers.d.ts.map +1 -1
  60. package/dist/services/containers.js +13 -5
  61. package/dist/services/containers.js.map +1 -1
  62. package/dist/services/coordination_redis_settings.js +1 -1
  63. package/dist/services/cost_tracking.d.ts +91 -1
  64. package/dist/services/cost_tracking.d.ts.map +1 -1
  65. package/dist/services/cost_tracking.js +82 -2
  66. package/dist/services/cost_tracking.js.map +1 -1
  67. package/dist/services/credential_management.d.ts +2 -1
  68. package/dist/services/credential_management.d.ts.map +1 -1
  69. package/dist/services/credential_management.js +3 -2
  70. package/dist/services/credential_management.js.map +1 -1
  71. package/dist/services/customer_management.d.ts +25 -2
  72. package/dist/services/customer_management.d.ts.map +1 -1
  73. package/dist/services/customer_management.js +22 -3
  74. package/dist/services/customer_management.js.map +1 -1
  75. package/dist/services/email_management.js +1 -1
  76. package/dist/services/embeddings.js +1 -1
  77. package/dist/services/evals.js +1 -1
  78. package/dist/services/experimental.js +1 -1
  79. package/dist/services/fallback_management.js +1 -1
  80. package/dist/services/files.js +1 -1
  81. package/dist/services/fine_tuning.js +1 -1
  82. package/dist/services/gemini_agents.js +1 -1
  83. package/dist/services/google_genai_endpoints.js +1 -1
  84. package/dist/services/guardrails.d.ts +80 -7
  85. package/dist/services/guardrails.d.ts.map +1 -1
  86. package/dist/services/guardrails.js +37 -1
  87. package/dist/services/guardrails.js.map +1 -1
  88. package/dist/services/health.d.ts +2 -2
  89. package/dist/services/health.d.ts.map +1 -1
  90. package/dist/services/health.js +2 -2
  91. package/dist/services/health.js.map +1 -1
  92. package/dist/services/images.js +1 -1
  93. package/dist/services/index.d.ts +1 -15
  94. package/dist/services/index.d.ts.map +1 -1
  95. package/dist/services/index.js +1 -15
  96. package/dist/services/index.js.map +1 -1
  97. package/dist/services/internal_user_management.d.ts +227 -39
  98. package/dist/services/internal_user_management.d.ts.map +1 -1
  99. package/dist/services/internal_user_management.js +194 -37
  100. package/dist/services/internal_user_management.js.map +1 -1
  101. package/dist/services/invite_links.js +1 -1
  102. package/dist/services/jwt_mappings.d.ts +3 -0
  103. package/dist/services/jwt_mappings.d.ts.map +1 -1
  104. package/dist/services/jwt_mappings.js +4 -1
  105. package/dist/services/jwt_mappings.js.map +1 -1
  106. package/dist/services/key_management.d.ts +93 -49
  107. package/dist/services/key_management.d.ts.map +1 -1
  108. package/dist/services/key_management.js +75 -39
  109. package/dist/services/key_management.js.map +1 -1
  110. package/dist/services/langfuse_passthrough.js +1 -1
  111. package/dist/services/llm_passthrough.d.ts +1199 -0
  112. package/dist/services/llm_passthrough.d.ts.map +1 -0
  113. package/dist/services/llm_passthrough.js +2150 -0
  114. package/dist/services/llm_passthrough.js.map +1 -0
  115. package/dist/services/llm_utils.js +1 -1
  116. package/dist/services/logging_callbacks.js +1 -1
  117. package/dist/services/mcp_byok_oauth.d.ts +18 -11
  118. package/dist/services/mcp_byok_oauth.d.ts.map +1 -1
  119. package/dist/services/mcp_byok_oauth.js +27 -24
  120. package/dist/services/mcp_byok_oauth.js.map +1 -1
  121. package/dist/services/mcp_discoverable.d.ts +34 -0
  122. package/dist/services/mcp_discoverable.d.ts.map +1 -1
  123. package/dist/services/mcp_discoverable.js +51 -1
  124. package/dist/services/mcp_discoverable.js.map +1 -1
  125. package/dist/services/mcp_management.d.ts +90 -2
  126. package/dist/services/mcp_management.d.ts.map +1 -1
  127. package/dist/services/mcp_management.js +115 -3
  128. package/dist/services/mcp_management.js.map +1 -1
  129. package/dist/services/mcp_rest.d.ts +13 -0
  130. package/dist/services/mcp_rest.d.ts.map +1 -1
  131. package/dist/services/mcp_rest.js +10 -2
  132. package/dist/services/mcp_rest.js.map +1 -1
  133. package/dist/services/memory_management.d.ts +2 -0
  134. package/dist/services/memory_management.d.ts.map +1 -1
  135. package/dist/services/memory_management.js +2 -1
  136. package/dist/services/memory_management.js.map +1 -1
  137. package/dist/services/misc.d.ts +86 -1
  138. package/dist/services/misc.d.ts.map +1 -1
  139. package/dist/services/misc.js +126 -2
  140. package/dist/services/misc.js.map +1 -1
  141. package/dist/services/model_management.d.ts +310 -19
  142. package/dist/services/model_management.d.ts.map +1 -1
  143. package/dist/services/model_management.js +240 -7
  144. package/dist/services/model_management.js.map +1 -1
  145. package/dist/services/moderations.js +1 -1
  146. package/dist/services/ocr.js +1 -1
  147. package/dist/services/open_ai_pass_through.d.ts +35 -90
  148. package/dist/services/open_ai_pass_through.d.ts.map +1 -1
  149. package/dist/services/open_ai_pass_through.js +41 -139
  150. package/dist/services/open_ai_pass_through.js.map +1 -1
  151. package/dist/services/organization_management.d.ts +21 -1
  152. package/dist/services/organization_management.d.ts.map +1 -1
  153. package/dist/services/organization_management.js +20 -2
  154. package/dist/services/organization_management.js.map +1 -1
  155. package/dist/services/plugins.js +1 -1
  156. package/dist/services/policies.d.ts +2 -0
  157. package/dist/services/policies.d.ts.map +1 -1
  158. package/dist/services/policies.js +3 -1
  159. package/dist/services/policies.js.map +1 -1
  160. package/dist/services/policy_engine.d.ts +6 -0
  161. package/dist/services/policy_engine.d.ts.map +1 -1
  162. package/dist/services/policy_engine.js +4 -1
  163. package/dist/services/policy_engine.js.map +1 -1
  164. package/dist/services/project_management.d.ts +15 -0
  165. package/dist/services/project_management.d.ts.map +1 -1
  166. package/dist/services/project_management.js +14 -1
  167. package/dist/services/project_management.js.map +1 -1
  168. package/dist/services/prompts.js +1 -1
  169. package/dist/services/public.d.ts +124 -0
  170. package/dist/services/public.d.ts.map +1 -1
  171. package/dist/services/public.js +158 -1
  172. package/dist/services/public.js.map +1 -1
  173. package/dist/services/rag.js +1 -1
  174. package/dist/services/realtime.d.ts +4 -26
  175. package/dist/services/realtime.d.ts.map +1 -1
  176. package/dist/services/realtime.js +7 -57
  177. package/dist/services/realtime.js.map +1 -1
  178. package/dist/services/rerank.d.ts +72 -0
  179. package/dist/services/rerank.d.ts.map +1 -1
  180. package/dist/services/rerank.js +61 -4
  181. package/dist/services/rerank.js.map +1 -1
  182. package/dist/services/responses.d.ts +30 -0
  183. package/dist/services/responses.d.ts.map +1 -1
  184. package/dist/services/responses.js +59 -1
  185. package/dist/services/responses.js.map +1 -1
  186. package/dist/services/router_settings.js +1 -1
  187. package/dist/services/rust_control_plane.js +1 -1
  188. package/dist/services/scim.d.ts +41 -1
  189. package/dist/services/scim.d.ts.map +1 -1
  190. package/dist/services/scim.js +60 -2
  191. package/dist/services/scim.js.map +1 -1
  192. package/dist/services/search.js +1 -1
  193. package/dist/services/search_tools.js +1 -1
  194. package/dist/services/settings.d.ts +88 -0
  195. package/dist/services/settings.d.ts.map +1 -1
  196. package/dist/services/settings.js +113 -1
  197. package/dist/services/settings.js.map +1 -1
  198. package/dist/services/sso_settings.d.ts +1 -1
  199. package/dist/services/sso_settings.d.ts.map +1 -1
  200. package/dist/services/sso_settings.js +1 -1
  201. package/dist/services/sso_settings.js.map +1 -1
  202. package/dist/services/tag_management.d.ts +7 -0
  203. package/dist/services/tag_management.d.ts.map +1 -1
  204. package/dist/services/tag_management.js +8 -1
  205. package/dist/services/tag_management.js.map +1 -1
  206. package/dist/services/team_management.d.ts +265 -17
  207. package/dist/services/team_management.d.ts.map +1 -1
  208. package/dist/services/team_management.js +247 -12
  209. package/dist/services/team_management.js.map +1 -1
  210. package/dist/services/tools.js +1 -1
  211. package/dist/services/ui_settings.js +1 -1
  212. package/dist/services/ui_theme_settings.js +1 -1
  213. package/dist/services/usage_ai.js +1 -1
  214. package/dist/services/vantage.js +1 -1
  215. package/dist/services/vector_store_management.js +1 -1
  216. package/dist/services/vector_stores.js +1 -1
  217. package/dist/services/videos.js +1 -1
  218. package/dist/services/web_socket.d.ts +0 -18
  219. package/dist/services/web_socket.d.ts.map +1 -1
  220. package/dist/services/web_socket.js +1 -33
  221. package/dist/services/web_socket.js.map +1 -1
  222. package/dist/services/workflow_management.js +1 -1
  223. package/package.json +1 -1
  224. package/src/services/a2a.ts +1 -1
  225. package/src/services/a2a_registration.ts +1 -1
  226. package/src/services/access_groups.ts +44 -1
  227. package/src/services/adaptive_router.ts +1 -1
  228. package/src/services/agents.ts +22 -1
  229. package/src/services/alerting.ts +1 -1
  230. package/src/services/anthropic_passthrough.ts +1 -1
  231. package/src/services/anthropic_skills.ts +12 -2
  232. package/src/services/assistants.ts +1 -1
  233. package/src/services/audio.ts +1 -1
  234. package/src/services/audit_logging.ts +4 -1
  235. package/src/services/auto_router.ts +303 -93
  236. package/src/services/batch.ts +1 -1
  237. package/src/services/beta_agents.ts +1 -1
  238. package/src/services/beta_mcp.ts +1 -1
  239. package/src/services/budget_management.ts +12 -4
  240. package/src/services/budget_spend_tracking.ts +38 -6
  241. package/src/services/cache_settings.ts +1 -1
  242. package/src/services/caching.ts +1 -1
  243. package/src/services/chat_completions.ts +1 -1
  244. package/src/services/claude_code_marketplace.ts +20 -14
  245. package/src/services/cloudzero.ts +1 -1
  246. package/src/services/completions.ts +1 -1
  247. package/src/services/compliance.ts +1 -1
  248. package/src/services/config_overrides.ts +8 -2
  249. package/src/services/config_yaml.ts +251 -6
  250. package/src/services/containers.ts +29 -11
  251. package/src/services/coordination_redis_settings.ts +1 -1
  252. package/src/services/cost_tracking.ts +198 -2
  253. package/src/services/credential_management.ts +9 -4
  254. package/src/services/customer_management.ts +49 -3
  255. package/src/services/email_management.ts +1 -1
  256. package/src/services/embeddings.ts +1 -1
  257. package/src/services/evals.ts +1 -1
  258. package/src/services/experimental.ts +1 -1
  259. package/src/services/fallback_management.ts +1 -1
  260. package/src/services/files.ts +1 -1
  261. package/src/services/fine_tuning.ts +1 -1
  262. package/src/services/gemini_agents.ts +1 -1
  263. package/src/services/google_genai_endpoints.ts +1 -1
  264. package/src/services/guardrails.ts +198 -8
  265. package/src/services/health.ts +3 -2
  266. package/src/services/images.ts +1 -1
  267. package/src/services/index.ts +1 -15
  268. package/src/services/internal_user_management.ts +565 -103
  269. package/src/services/invite_links.ts +1 -1
  270. package/src/services/jwt_mappings.ts +7 -1
  271. package/src/services/key_management.ts +229 -126
  272. package/src/services/langfuse_passthrough.ts +1 -1
  273. package/src/services/llm_passthrough.ts +4542 -0
  274. package/src/services/llm_utils.ts +1 -1
  275. package/src/services/logging_callbacks.ts +1 -1
  276. package/src/services/mcp_byok_oauth.ts +65 -45
  277. package/src/services/mcp_discoverable.ts +109 -1
  278. package/src/services/mcp_management.ts +258 -3
  279. package/src/services/mcp_rest.ts +30 -5
  280. package/src/services/memory_management.ts +4 -1
  281. package/src/services/misc.ts +269 -2
  282. package/src/services/model_management.ts +666 -21
  283. package/src/services/moderations.ts +1 -1
  284. package/src/services/ocr.ts +1 -1
  285. package/src/services/open_ai_pass_through.ts +81 -286
  286. package/src/services/organization_management.ts +44 -2
  287. package/src/services/plugins.ts +1 -1
  288. package/src/services/policies.ts +5 -1
  289. package/src/services/policy_engine.ts +10 -1
  290. package/src/services/project_management.ts +33 -1
  291. package/src/services/prompts.ts +1 -1
  292. package/src/services/public.ts +356 -1
  293. package/src/services/rag.ts +1 -1
  294. package/src/services/realtime.ts +11 -111
  295. package/src/services/rerank.ts +187 -7
  296. package/src/services/responses.ts +117 -1
  297. package/src/services/router_settings.ts +1 -1
  298. package/src/services/rust_control_plane.ts +1 -1
  299. package/src/services/scim.ts +134 -3
  300. package/src/services/search.ts +1 -1
  301. package/src/services/search_tools.ts +1 -1
  302. package/src/services/settings.ts +278 -1
  303. package/src/services/sso_settings.ts +2 -1
  304. package/src/services/tag_management.ts +15 -1
  305. package/src/services/team_management.ts +676 -37
  306. package/src/services/tools.ts +1 -1
  307. package/src/services/ui_settings.ts +1 -1
  308. package/src/services/ui_theme_settings.ts +1 -1
  309. package/src/services/usage_ai.ts +1 -1
  310. package/src/services/vantage.ts +1 -1
  311. package/src/services/vector_store_management.ts +1 -1
  312. package/src/services/vector_stores.ts +1 -1
  313. package/src/services/videos.ts +1 -1
  314. package/src/services/web_socket.ts +1 -61
  315. package/src/services/workflow_management.ts +1 -1
  316. package/dist/services/anthropic_pass_through.d.ts +0 -70
  317. package/dist/services/anthropic_pass_through.d.ts.map +0 -1
  318. package/dist/services/anthropic_pass_through.js +0 -114
  319. package/dist/services/anthropic_pass_through.js.map +0 -1
  320. package/dist/services/assembly_ai_eu_pass_through.d.ts +0 -70
  321. package/dist/services/assembly_ai_eu_pass_through.d.ts.map +0 -1
  322. package/dist/services/assembly_ai_eu_pass_through.js +0 -114
  323. package/dist/services/assembly_ai_eu_pass_through.js.map +0 -1
  324. package/dist/services/assembly_ai_pass_through.d.ts +0 -70
  325. package/dist/services/assembly_ai_pass_through.d.ts.map +0 -1
  326. package/dist/services/assembly_ai_pass_through.js +0 -114
  327. package/dist/services/assembly_ai_pass_through.js.map +0 -1
  328. package/dist/services/aws_comprehend_medical_pass_through.d.ts +0 -36
  329. package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +0 -1
  330. package/dist/services/aws_comprehend_medical_pass_through.js +0 -56
  331. package/dist/services/aws_comprehend_medical_pass_through.js.map +0 -1
  332. package/dist/services/azure_ai_pass_through.d.ts +0 -70
  333. package/dist/services/azure_ai_pass_through.d.ts.map +0 -1
  334. package/dist/services/azure_ai_pass_through.js +0 -112
  335. package/dist/services/azure_ai_pass_through.js.map +0 -1
  336. package/dist/services/azure_pass_through.d.ts +0 -70
  337. package/dist/services/azure_pass_through.d.ts.map +0 -1
  338. package/dist/services/azure_pass_through.js +0 -107
  339. package/dist/services/azure_pass_through.js.map +0 -1
  340. package/dist/services/bedrock_pass_through.d.ts +0 -70
  341. package/dist/services/bedrock_pass_through.d.ts.map +0 -1
  342. package/dist/services/bedrock_pass_through.js +0 -114
  343. package/dist/services/bedrock_pass_through.js.map +0 -1
  344. package/dist/services/cohere_pass_through.d.ts +0 -70
  345. package/dist/services/cohere_pass_through.d.ts.map +0 -1
  346. package/dist/services/cohere_pass_through.js +0 -112
  347. package/dist/services/cohere_pass_through.js.map +0 -1
  348. package/dist/services/cursor_pass_through.d.ts +0 -70
  349. package/dist/services/cursor_pass_through.d.ts.map +0 -1
  350. package/dist/services/cursor_pass_through.js +0 -112
  351. package/dist/services/cursor_pass_through.js.map +0 -1
  352. package/dist/services/google_ai_studio_pass_through.d.ts +0 -70
  353. package/dist/services/google_ai_studio_pass_through.d.ts.map +0 -1
  354. package/dist/services/google_ai_studio_pass_through.js +0 -112
  355. package/dist/services/google_ai_studio_pass_through.js.map +0 -1
  356. package/dist/services/milvus_pass_through.d.ts +0 -70
  357. package/dist/services/milvus_pass_through.d.ts.map +0 -1
  358. package/dist/services/milvus_pass_through.js +0 -112
  359. package/dist/services/milvus_pass_through.js.map +0 -1
  360. package/dist/services/mistral_pass_through.d.ts +0 -70
  361. package/dist/services/mistral_pass_through.d.ts.map +0 -1
  362. package/dist/services/mistral_pass_through.js +0 -114
  363. package/dist/services/mistral_pass_through.js.map +0 -1
  364. package/dist/services/vertex_ai_pass_through.d.ts +0 -180
  365. package/dist/services/vertex_ai_pass_through.d.ts.map +0 -1
  366. package/dist/services/vertex_ai_pass_through.js +0 -334
  367. package/dist/services/vertex_ai_pass_through.js.map +0 -1
  368. package/dist/services/vllm_pass_through.d.ts +0 -70
  369. package/dist/services/vllm_pass_through.d.ts.map +0 -1
  370. package/dist/services/vllm_pass_through.js +0 -104
  371. package/dist/services/vllm_pass_through.js.map +0 -1
  372. package/dist/services/watsonx_pass_through.d.ts +0 -70
  373. package/dist/services/watsonx_pass_through.d.ts.map +0 -1
  374. package/dist/services/watsonx_pass_through.js +0 -114
  375. package/dist/services/watsonx_pass_through.js.map +0 -1
  376. package/src/services/anthropic_pass_through.ts +0 -233
  377. package/src/services/assembly_ai_eu_pass_through.ts +0 -237
  378. package/src/services/assembly_ai_pass_through.ts +0 -237
  379. package/src/services/aws_comprehend_medical_pass_through.ts +0 -109
  380. package/src/services/azure_ai_pass_through.ts +0 -231
  381. package/src/services/azure_pass_through.ts +0 -227
  382. package/src/services/bedrock_pass_through.ts +0 -229
  383. package/src/services/cohere_pass_through.ts +0 -227
  384. package/src/services/cursor_pass_through.ts +0 -227
  385. package/src/services/google_ai_studio_pass_through.ts +0 -227
  386. package/src/services/milvus_pass_through.ts +0 -227
  387. package/src/services/mistral_pass_through.ts +0 -229
  388. package/src/services/vertex_ai_pass_through.ts +0 -684
  389. package/src/services/vllm_pass_through.ts +0 -227
  390. 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
- }));