@homeflare/distilled-litellm 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +77 -0
  3. package/dist/credentials.d.ts +27 -0
  4. package/dist/credentials.d.ts.map +1 -0
  5. package/dist/credentials.js +67 -0
  6. package/dist/credentials.js.map +1 -0
  7. package/dist/errors.d.ts +92 -0
  8. package/dist/errors.d.ts.map +1 -0
  9. package/dist/errors.js +72 -0
  10. package/dist/errors.js.map +1 -0
  11. package/dist/index.d.ts +30 -0
  12. package/dist/index.d.ts.map +1 -0
  13. package/dist/index.js +30 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/protocol.d.ts +18 -0
  16. package/dist/protocol.d.ts.map +1 -0
  17. package/dist/protocol.js +135 -0
  18. package/dist/protocol.js.map +1 -0
  19. package/dist/retry.d.ts +50 -0
  20. package/dist/retry.d.ts.map +1 -0
  21. package/dist/retry.js +43 -0
  22. package/dist/retry.js.map +1 -0
  23. package/dist/services/a2a.d.ts +70 -0
  24. package/dist/services/a2a.d.ts.map +1 -0
  25. package/dist/services/a2a.js +128 -0
  26. package/dist/services/a2a.js.map +1 -0
  27. package/dist/services/a2a_registration.d.ts +43 -0
  28. package/dist/services/a2a_registration.d.ts.map +1 -0
  29. package/dist/services/a2a_registration.js +40 -0
  30. package/dist/services/a2a_registration.js.map +1 -0
  31. package/dist/services/access_groups.d.ts +192 -0
  32. package/dist/services/access_groups.d.ts.map +1 -0
  33. package/dist/services/access_groups.js +283 -0
  34. package/dist/services/access_groups.js.map +1 -0
  35. package/dist/services/adaptive_router.d.ts +15 -0
  36. package/dist/services/adaptive_router.d.ts.map +1 -0
  37. package/dist/services/adaptive_router.js +25 -0
  38. package/dist/services/adaptive_router.js.map +1 -0
  39. package/dist/services/agents.d.ts +537 -0
  40. package/dist/services/agents.d.ts.map +1 -0
  41. package/dist/services/agents.js +481 -0
  42. package/dist/services/agents.js.map +1 -0
  43. package/dist/services/alerting.d.ts +15 -0
  44. package/dist/services/alerting.d.ts.map +1 -0
  45. package/dist/services/alerting.js +25 -0
  46. package/dist/services/alerting.js.map +1 -0
  47. package/dist/services/anthropic_pass_through.d.ts +70 -0
  48. package/dist/services/anthropic_pass_through.d.ts.map +1 -0
  49. package/dist/services/anthropic_pass_through.js +114 -0
  50. package/dist/services/anthropic_pass_through.js.map +1 -0
  51. package/dist/services/anthropic_passthrough.d.ts +35 -0
  52. package/dist/services/anthropic_passthrough.d.ts.map +1 -0
  53. package/dist/services/anthropic_passthrough.js +59 -0
  54. package/dist/services/anthropic_passthrough.js.map +1 -0
  55. package/dist/services/anthropic_skills.d.ts +74 -0
  56. package/dist/services/anthropic_skills.d.ts.map +1 -0
  57. package/dist/services/anthropic_skills.js +94 -0
  58. package/dist/services/anthropic_skills.js.map +1 -0
  59. package/dist/services/assembly_ai_eu_pass_through.d.ts +70 -0
  60. package/dist/services/assembly_ai_eu_pass_through.d.ts.map +1 -0
  61. package/dist/services/assembly_ai_eu_pass_through.js +114 -0
  62. package/dist/services/assembly_ai_eu_pass_through.js.map +1 -0
  63. package/dist/services/assembly_ai_pass_through.d.ts +70 -0
  64. package/dist/services/assembly_ai_pass_through.d.ts.map +1 -0
  65. package/dist/services/assembly_ai_pass_through.js +114 -0
  66. package/dist/services/assembly_ai_pass_through.js.map +1 -0
  67. package/dist/services/assistants.d.ts +185 -0
  68. package/dist/services/assistants.d.ts.map +1 -0
  69. package/dist/services/assistants.js +331 -0
  70. package/dist/services/assistants.js.map +1 -0
  71. package/dist/services/audio.d.ts +57 -0
  72. package/dist/services/audio.d.ts.map +1 -0
  73. package/dist/services/audio.js +96 -0
  74. package/dist/services/audio.js.map +1 -0
  75. package/dist/services/audit_logging.d.ts +98 -0
  76. package/dist/services/audit_logging.d.ts.map +1 -0
  77. package/dist/services/audit_logging.js +83 -0
  78. package/dist/services/audit_logging.js.map +1 -0
  79. package/dist/services/auto_router.d.ts +286 -0
  80. package/dist/services/auto_router.d.ts.map +1 -0
  81. package/dist/services/auto_router.js +248 -0
  82. package/dist/services/auto_router.js.map +1 -0
  83. package/dist/services/aws_comprehend_medical_pass_through.d.ts +36 -0
  84. package/dist/services/aws_comprehend_medical_pass_through.d.ts.map +1 -0
  85. package/dist/services/aws_comprehend_medical_pass_through.js +56 -0
  86. package/dist/services/aws_comprehend_medical_pass_through.js.map +1 -0
  87. package/dist/services/azure_ai_pass_through.d.ts +70 -0
  88. package/dist/services/azure_ai_pass_through.d.ts.map +1 -0
  89. package/dist/services/azure_ai_pass_through.js +112 -0
  90. package/dist/services/azure_ai_pass_through.js.map +1 -0
  91. package/dist/services/azure_pass_through.d.ts +70 -0
  92. package/dist/services/azure_pass_through.d.ts.map +1 -0
  93. package/dist/services/azure_pass_through.js +107 -0
  94. package/dist/services/azure_pass_through.js.map +1 -0
  95. package/dist/services/batch.d.ts +165 -0
  96. package/dist/services/batch.d.ts.map +1 -0
  97. package/dist/services/batch.js +265 -0
  98. package/dist/services/batch.js.map +1 -0
  99. package/dist/services/bedrock_pass_through.d.ts +70 -0
  100. package/dist/services/bedrock_pass_through.d.ts.map +1 -0
  101. package/dist/services/bedrock_pass_through.js +114 -0
  102. package/dist/services/bedrock_pass_through.js.map +1 -0
  103. package/dist/services/beta_agents.d.ts +199 -0
  104. package/dist/services/beta_agents.d.ts.map +1 -0
  105. package/dist/services/beta_agents.js +151 -0
  106. package/dist/services/beta_agents.js.map +1 -0
  107. package/dist/services/beta_mcp.d.ts +37 -0
  108. package/dist/services/beta_mcp.d.ts.map +1 -0
  109. package/dist/services/beta_mcp.js +40 -0
  110. package/dist/services/beta_mcp.js.map +1 -0
  111. package/dist/services/budget_management.d.ts +185 -0
  112. package/dist/services/budget_management.d.ts.map +1 -0
  113. package/dist/services/budget_management.js +196 -0
  114. package/dist/services/budget_management.js.map +1 -0
  115. package/dist/services/budget_spend_tracking.d.ts +967 -0
  116. package/dist/services/budget_spend_tracking.d.ts.map +1 -0
  117. package/dist/services/budget_spend_tracking.js +1103 -0
  118. package/dist/services/budget_spend_tracking.js.map +1 -0
  119. package/dist/services/cache_settings.d.ts +96 -0
  120. package/dist/services/cache_settings.d.ts.map +1 -0
  121. package/dist/services/cache_settings.js +95 -0
  122. package/dist/services/cache_settings.js.map +1 -0
  123. package/dist/services/caching.d.ts +54 -0
  124. package/dist/services/caching.d.ts.map +1 -0
  125. package/dist/services/caching.js +78 -0
  126. package/dist/services/caching.js.map +1 -0
  127. package/dist/services/chat_completions.d.ts +656 -0
  128. package/dist/services/chat_completions.d.ts.map +1 -0
  129. package/dist/services/chat_completions.js +590 -0
  130. package/dist/services/chat_completions.js.map +1 -0
  131. package/dist/services/claude_code_marketplace.d.ts +212 -0
  132. package/dist/services/claude_code_marketplace.d.ts.map +1 -0
  133. package/dist/services/claude_code_marketplace.js +248 -0
  134. package/dist/services/claude_code_marketplace.js.map +1 -0
  135. package/dist/services/cloudzero.d.ts +117 -0
  136. package/dist/services/cloudzero.d.ts.map +1 -0
  137. package/dist/services/cloudzero.js +130 -0
  138. package/dist/services/cloudzero.js.map +1 -0
  139. package/dist/services/cohere_pass_through.d.ts +70 -0
  140. package/dist/services/cohere_pass_through.d.ts.map +1 -0
  141. package/dist/services/cohere_pass_through.js +112 -0
  142. package/dist/services/cohere_pass_through.js.map +1 -0
  143. package/dist/services/completions.d.ts +59 -0
  144. package/dist/services/completions.d.ts.map +1 -0
  145. package/dist/services/completions.js +98 -0
  146. package/dist/services/completions.js.map +1 -0
  147. package/dist/services/compliance.d.ts +66 -0
  148. package/dist/services/compliance.d.ts.map +1 -0
  149. package/dist/services/compliance.js +74 -0
  150. package/dist/services/compliance.js.map +1 -0
  151. package/dist/services/config_overrides.d.ts +157 -0
  152. package/dist/services/config_overrides.d.ts.map +1 -0
  153. package/dist/services/config_overrides.js +207 -0
  154. package/dist/services/config_overrides.js.map +1 -0
  155. package/dist/services/config_yaml.d.ts +647 -0
  156. package/dist/services/config_yaml.d.ts.map +1 -0
  157. package/dist/services/config_yaml.js +504 -0
  158. package/dist/services/config_yaml.js.map +1 -0
  159. package/dist/services/containers.d.ts +215 -0
  160. package/dist/services/containers.d.ts.map +1 -0
  161. package/dist/services/containers.js +416 -0
  162. package/dist/services/containers.js.map +1 -0
  163. package/dist/services/coordination_redis_settings.d.ts +93 -0
  164. package/dist/services/coordination_redis_settings.d.ts.map +1 -0
  165. package/dist/services/coordination_redis_settings.js +104 -0
  166. package/dist/services/coordination_redis_settings.js.map +1 -0
  167. package/dist/services/cost_tracking.d.ts +140 -0
  168. package/dist/services/cost_tracking.d.ts.map +1 -0
  169. package/dist/services/cost_tracking.js +181 -0
  170. package/dist/services/cost_tracking.js.map +1 -0
  171. package/dist/services/credential_management.d.ts +133 -0
  172. package/dist/services/credential_management.d.ts.map +1 -0
  173. package/dist/services/credential_management.js +198 -0
  174. package/dist/services/credential_management.js.map +1 -0
  175. package/dist/services/cursor_pass_through.d.ts +70 -0
  176. package/dist/services/cursor_pass_through.d.ts.map +1 -0
  177. package/dist/services/cursor_pass_through.js +112 -0
  178. package/dist/services/cursor_pass_through.js.map +1 -0
  179. package/dist/services/customer_management.d.ts +545 -0
  180. package/dist/services/customer_management.d.ts.map +1 -0
  181. package/dist/services/customer_management.js +567 -0
  182. package/dist/services/customer_management.js.map +1 -0
  183. package/dist/services/email_management.d.ts +57 -0
  184. package/dist/services/email_management.d.ts.map +1 -0
  185. package/dist/services/email_management.js +79 -0
  186. package/dist/services/email_management.js.map +1 -0
  187. package/dist/services/embeddings.d.ts +155 -0
  188. package/dist/services/embeddings.d.ts.map +1 -0
  189. package/dist/services/embeddings.js +168 -0
  190. package/dist/services/embeddings.js.map +1 -0
  191. package/dist/services/evals.d.ts +245 -0
  192. package/dist/services/evals.d.ts.map +1 -0
  193. package/dist/services/evals.js +292 -0
  194. package/dist/services/evals.js.map +1 -0
  195. package/dist/services/experimental.d.ts +166 -0
  196. package/dist/services/experimental.d.ts.map +1 -0
  197. package/dist/services/experimental.js +265 -0
  198. package/dist/services/experimental.js.map +1 -0
  199. package/dist/services/fallback_management.d.ts +91 -0
  200. package/dist/services/fallback_management.d.ts.map +1 -0
  201. package/dist/services/fallback_management.js +86 -0
  202. package/dist/services/fallback_management.js.map +1 -0
  203. package/dist/services/files.d.ts +219 -0
  204. package/dist/services/files.d.ts.map +1 -0
  205. package/dist/services/files.js +358 -0
  206. package/dist/services/files.js.map +1 -0
  207. package/dist/services/fine_tuning.d.ts +155 -0
  208. package/dist/services/fine_tuning.d.ts.map +1 -0
  209. package/dist/services/fine_tuning.js +232 -0
  210. package/dist/services/fine_tuning.js.map +1 -0
  211. package/dist/services/gemini_agents.d.ts +68 -0
  212. package/dist/services/gemini_agents.d.ts.map +1 -0
  213. package/dist/services/gemini_agents.js +110 -0
  214. package/dist/services/gemini_agents.js.map +1 -0
  215. package/dist/services/google_ai_studio_pass_through.d.ts +70 -0
  216. package/dist/services/google_ai_studio_pass_through.d.ts.map +1 -0
  217. package/dist/services/google_ai_studio_pass_through.js +112 -0
  218. package/dist/services/google_ai_studio_pass_through.js.map +1 -0
  219. package/dist/services/google_genai_endpoints.d.ts +174 -0
  220. package/dist/services/google_genai_endpoints.d.ts.map +1 -0
  221. package/dist/services/google_genai_endpoints.js +340 -0
  222. package/dist/services/google_genai_endpoints.js.map +1 -0
  223. package/dist/services/guardrails.d.ts +1221 -0
  224. package/dist/services/guardrails.d.ts.map +1 -0
  225. package/dist/services/guardrails.js +1087 -0
  226. package/dist/services/guardrails.js.map +1 -0
  227. package/dist/services/health.d.ts +212 -0
  228. package/dist/services/health.d.ts.map +1 -0
  229. package/dist/services/health.js +309 -0
  230. package/dist/services/health.js.map +1 -0
  231. package/dist/services/images.d.ts +117 -0
  232. package/dist/services/images.d.ts.map +1 -0
  233. package/dist/services/images.js +184 -0
  234. package/dist/services/images.js.map +1 -0
  235. package/dist/services/index.d.ts +106 -0
  236. package/dist/services/index.d.ts.map +1 -0
  237. package/dist/services/index.js +107 -0
  238. package/dist/services/index.js.map +1 -0
  239. package/dist/services/internal_user_management.d.ts +1062 -0
  240. package/dist/services/internal_user_management.d.ts.map +1 -0
  241. package/dist/services/internal_user_management.js +850 -0
  242. package/dist/services/internal_user_management.js.map +1 -0
  243. package/dist/services/invite_links.d.ts +56 -0
  244. package/dist/services/invite_links.d.ts.map +1 -0
  245. package/dist/services/invite_links.js +82 -0
  246. package/dist/services/invite_links.js.map +1 -0
  247. package/dist/services/jwt_mappings.d.ts +79 -0
  248. package/dist/services/jwt_mappings.d.ts.map +1 -0
  249. package/dist/services/jwt_mappings.js +116 -0
  250. package/dist/services/jwt_mappings.js.map +1 -0
  251. package/dist/services/key_management.d.ts +1640 -0
  252. package/dist/services/key_management.d.ts.map +1 -0
  253. package/dist/services/key_management.js +1344 -0
  254. package/dist/services/key_management.js.map +1 -0
  255. package/dist/services/langfuse_passthrough.d.ts +70 -0
  256. package/dist/services/langfuse_passthrough.d.ts.map +1 -0
  257. package/dist/services/langfuse_passthrough.js +114 -0
  258. package/dist/services/langfuse_passthrough.js.map +1 -0
  259. package/dist/services/llm_utils.d.ts +101 -0
  260. package/dist/services/llm_utils.d.ts.map +1 -0
  261. package/dist/services/llm_utils.js +110 -0
  262. package/dist/services/llm_utils.js.map +1 -0
  263. package/dist/services/logging_callbacks.d.ts +33 -0
  264. package/dist/services/logging_callbacks.d.ts.map +1 -0
  265. package/dist/services/logging_callbacks.js +46 -0
  266. package/dist/services/logging_callbacks.js.map +1 -0
  267. package/dist/services/mcp_byok_oauth.d.ts +112 -0
  268. package/dist/services/mcp_byok_oauth.d.ts.map +1 -0
  269. package/dist/services/mcp_byok_oauth.js +226 -0
  270. package/dist/services/mcp_byok_oauth.js.map +1 -0
  271. package/dist/services/mcp_discoverable.d.ts +197 -0
  272. package/dist/services/mcp_discoverable.d.ts.map +1 -0
  273. package/dist/services/mcp_discoverable.js +304 -0
  274. package/dist/services/mcp_discoverable.js.map +1 -0
  275. package/dist/services/mcp_management.d.ts +956 -0
  276. package/dist/services/mcp_management.d.ts.map +1 -0
  277. package/dist/services/mcp_management.js +1139 -0
  278. package/dist/services/mcp_management.js.map +1 -0
  279. package/dist/services/mcp_rest.d.ts +281 -0
  280. package/dist/services/mcp_rest.d.ts.map +1 -0
  281. package/dist/services/mcp_rest.js +269 -0
  282. package/dist/services/mcp_rest.js.map +1 -0
  283. package/dist/services/memory_management.d.ts +93 -0
  284. package/dist/services/memory_management.d.ts.map +1 -0
  285. package/dist/services/memory_management.js +117 -0
  286. package/dist/services/memory_management.js.map +1 -0
  287. package/dist/services/milvus_pass_through.d.ts +70 -0
  288. package/dist/services/milvus_pass_through.d.ts.map +1 -0
  289. package/dist/services/milvus_pass_through.js +112 -0
  290. package/dist/services/milvus_pass_through.js.map +1 -0
  291. package/dist/services/misc.d.ts +676 -0
  292. package/dist/services/misc.d.ts.map +1 -0
  293. package/dist/services/misc.js +954 -0
  294. package/dist/services/misc.js.map +1 -0
  295. package/dist/services/mistral_pass_through.d.ts +70 -0
  296. package/dist/services/mistral_pass_through.d.ts.map +1 -0
  297. package/dist/services/mistral_pass_through.js +114 -0
  298. package/dist/services/mistral_pass_through.js.map +1 -0
  299. package/dist/services/model_management.d.ts +1649 -0
  300. package/dist/services/model_management.d.ts.map +1 -0
  301. package/dist/services/model_management.js +1805 -0
  302. package/dist/services/model_management.js.map +1 -0
  303. package/dist/services/moderations.d.ts +25 -0
  304. package/dist/services/moderations.d.ts.map +1 -0
  305. package/dist/services/moderations.js +39 -0
  306. package/dist/services/moderations.js.map +1 -0
  307. package/dist/services/ocr.d.ts +25 -0
  308. package/dist/services/ocr.d.ts.map +1 -0
  309. package/dist/services/ocr.js +39 -0
  310. package/dist/services/ocr.js.map +1 -0
  311. package/dist/services/open_ai_pass_through.d.ts +125 -0
  312. package/dist/services/open_ai_pass_through.d.ts.map +1 -0
  313. package/dist/services/open_ai_pass_through.js +232 -0
  314. package/dist/services/open_ai_pass_through.js.map +1 -0
  315. package/dist/services/organization_management.d.ts +664 -0
  316. package/dist/services/organization_management.d.ts.map +1 -0
  317. package/dist/services/organization_management.js +644 -0
  318. package/dist/services/organization_management.js.map +1 -0
  319. package/dist/services/plugins.d.ts +106 -0
  320. package/dist/services/plugins.d.ts.map +1 -0
  321. package/dist/services/plugins.js +180 -0
  322. package/dist/services/plugins.js.map +1 -0
  323. package/dist/services/policies.d.ts +618 -0
  324. package/dist/services/policies.d.ts.map +1 -0
  325. package/dist/services/policies.js +616 -0
  326. package/dist/services/policies.js.map +1 -0
  327. package/dist/services/policy_engine.d.ts +483 -0
  328. package/dist/services/policy_engine.d.ts.map +1 -0
  329. package/dist/services/policy_engine.js +501 -0
  330. package/dist/services/policy_engine.js.map +1 -0
  331. package/dist/services/project_management.d.ts +356 -0
  332. package/dist/services/project_management.d.ts.map +1 -0
  333. package/dist/services/project_management.js +318 -0
  334. package/dist/services/project_management.js.map +1 -0
  335. package/dist/services/prompts.d.ts +193 -0
  336. package/dist/services/prompts.d.ts.map +1 -0
  337. package/dist/services/prompts.js +260 -0
  338. package/dist/services/prompts.js.map +1 -0
  339. package/dist/services/public.d.ts +300 -0
  340. package/dist/services/public.d.ts.map +1 -0
  341. package/dist/services/public.js +362 -0
  342. package/dist/services/public.js.map +1 -0
  343. package/dist/services/rag.d.ts +45 -0
  344. package/dist/services/rag.d.ts.map +1 -0
  345. package/dist/services/rag.js +71 -0
  346. package/dist/services/rag.js.map +1 -0
  347. package/dist/services/realtime.d.ts +91 -0
  348. package/dist/services/realtime.d.ts.map +1 -0
  349. package/dist/services/realtime.js +164 -0
  350. package/dist/services/realtime.js.map +1 -0
  351. package/dist/services/rerank.d.ts +35 -0
  352. package/dist/services/rerank.d.ts.map +1 -0
  353. package/dist/services/rerank.js +55 -0
  354. package/dist/services/rerank.js.map +1 -0
  355. package/dist/services/responses.d.ts +237 -0
  356. package/dist/services/responses.d.ts.map +1 -0
  357. package/dist/services/responses.js +445 -0
  358. package/dist/services/responses.js.map +1 -0
  359. package/dist/services/router_settings.d.ts +67 -0
  360. package/dist/services/router_settings.d.ts.map +1 -0
  361. package/dist/services/router_settings.js +63 -0
  362. package/dist/services/router_settings.js.map +1 -0
  363. package/dist/services/rust_control_plane.d.ts +52 -0
  364. package/dist/services/rust_control_plane.d.ts.map +1 -0
  365. package/dist/services/rust_control_plane.js +54 -0
  366. package/dist/services/rust_control_plane.js.map +1 -0
  367. package/dist/services/scim.d.ts +412 -0
  368. package/dist/services/scim.d.ts.map +1 -0
  369. package/dist/services/scim.js +519 -0
  370. package/dist/services/scim.js.map +1 -0
  371. package/dist/services/search.d.ts +79 -0
  372. package/dist/services/search.d.ts.map +1 -0
  373. package/dist/services/search.js +122 -0
  374. package/dist/services/search.js.map +1 -0
  375. package/dist/services/search_tools.d.ts +140 -0
  376. package/dist/services/search_tools.d.ts.map +1 -0
  377. package/dist/services/search_tools.js +201 -0
  378. package/dist/services/search_tools.js.map +1 -0
  379. package/dist/services/settings.d.ts +53 -0
  380. package/dist/services/settings.d.ts.map +1 -0
  381. package/dist/services/settings.js +67 -0
  382. package/dist/services/settings.js.map +1 -0
  383. package/dist/services/sso_settings.d.ts +239 -0
  384. package/dist/services/sso_settings.d.ts.map +1 -0
  385. package/dist/services/sso_settings.js +214 -0
  386. package/dist/services/sso_settings.js.map +1 -0
  387. package/dist/services/tag_management.d.ts +390 -0
  388. package/dist/services/tag_management.d.ts.map +1 -0
  389. package/dist/services/tag_management.js +407 -0
  390. package/dist/services/tag_management.js.map +1 -0
  391. package/dist/services/team_management.d.ts +1502 -0
  392. package/dist/services/team_management.d.ts.map +1 -0
  393. package/dist/services/team_management.js +1429 -0
  394. package/dist/services/team_management.js.map +1 -0
  395. package/dist/services/tools.d.ts +227 -0
  396. package/dist/services/tools.d.ts.map +1 -0
  397. package/dist/services/tools.js +266 -0
  398. package/dist/services/tools.js.map +1 -0
  399. package/dist/services/ui_settings.d.ts +90 -0
  400. package/dist/services/ui_settings.d.ts.map +1 -0
  401. package/dist/services/ui_settings.js +96 -0
  402. package/dist/services/ui_settings.js.map +1 -0
  403. package/dist/services/ui_theme_settings.d.ts +62 -0
  404. package/dist/services/ui_theme_settings.d.ts.map +1 -0
  405. package/dist/services/ui_theme_settings.js +79 -0
  406. package/dist/services/ui_theme_settings.js.map +1 -0
  407. package/dist/services/usage_ai.d.ts +39 -0
  408. package/dist/services/usage_ai.d.ts.map +1 -0
  409. package/dist/services/usage_ai.js +40 -0
  410. package/dist/services/usage_ai.js.map +1 -0
  411. package/dist/services/vantage.d.ts +108 -0
  412. package/dist/services/vantage.d.ts.map +1 -0
  413. package/dist/services/vantage.js +124 -0
  414. package/dist/services/vantage.js.map +1 -0
  415. package/dist/services/vector_store_management.d.ts +161 -0
  416. package/dist/services/vector_store_management.d.ts.map +1 -0
  417. package/dist/services/vector_store_management.js +191 -0
  418. package/dist/services/vector_store_management.js.map +1 -0
  419. package/dist/services/vector_stores.d.ts +342 -0
  420. package/dist/services/vector_stores.d.ts.map +1 -0
  421. package/dist/services/vector_stores.js +639 -0
  422. package/dist/services/vector_stores.js.map +1 -0
  423. package/dist/services/vertex_ai_pass_through.d.ts +180 -0
  424. package/dist/services/vertex_ai_pass_through.d.ts.map +1 -0
  425. package/dist/services/vertex_ai_pass_through.js +334 -0
  426. package/dist/services/vertex_ai_pass_through.js.map +1 -0
  427. package/dist/services/videos.d.ts +207 -0
  428. package/dist/services/videos.d.ts.map +1 -0
  429. package/dist/services/videos.js +373 -0
  430. package/dist/services/videos.js.map +1 -0
  431. package/dist/services/vllm_pass_through.d.ts +70 -0
  432. package/dist/services/vllm_pass_through.d.ts.map +1 -0
  433. package/dist/services/vllm_pass_through.js +104 -0
  434. package/dist/services/vllm_pass_through.js.map +1 -0
  435. package/dist/services/watsonx_pass_through.d.ts +70 -0
  436. package/dist/services/watsonx_pass_through.d.ts.map +1 -0
  437. package/dist/services/watsonx_pass_through.js +114 -0
  438. package/dist/services/watsonx_pass_through.js.map +1 -0
  439. package/dist/services/web_socket.d.ts +77 -0
  440. package/dist/services/web_socket.d.ts.map +1 -0
  441. package/dist/services/web_socket.js +135 -0
  442. package/dist/services/web_socket.js.map +1 -0
  443. package/dist/services/workflow_management.d.ts +140 -0
  444. package/dist/services/workflow_management.d.ts.map +1 -0
  445. package/dist/services/workflow_management.js +220 -0
  446. package/dist/services/workflow_management.js.map +1 -0
  447. package/dist/traits.d.ts +14 -0
  448. package/dist/traits.d.ts.map +1 -0
  449. package/dist/traits.js +15 -0
  450. package/dist/traits.js.map +1 -0
  451. package/package.json +75 -0
  452. package/src/credentials.ts +97 -0
  453. package/src/errors.ts +108 -0
  454. package/src/index.ts +33 -0
  455. package/src/protocol.ts +160 -0
  456. package/src/retry.ts +74 -0
  457. package/src/services/a2a.ts +250 -0
  458. package/src/services/a2a_registration.ts +94 -0
  459. package/src/services/access_groups.ts +716 -0
  460. package/src/services/adaptive_router.ts +49 -0
  461. package/src/services/agents.ts +1314 -0
  462. package/src/services/alerting.ts +49 -0
  463. package/src/services/anthropic_pass_through.ts +233 -0
  464. package/src/services/anthropic_passthrough.ts +123 -0
  465. package/src/services/anthropic_skills.ts +200 -0
  466. package/src/services/assembly_ai_eu_pass_through.ts +237 -0
  467. package/src/services/assembly_ai_pass_through.ts +237 -0
  468. package/src/services/assistants.ts +685 -0
  469. package/src/services/audio.ts +189 -0
  470. package/src/services/audit_logging.ts +194 -0
  471. package/src/services/auto_router.ts +625 -0
  472. package/src/services/aws_comprehend_medical_pass_through.ts +109 -0
  473. package/src/services/azure_ai_pass_through.ts +231 -0
  474. package/src/services/azure_pass_through.ts +227 -0
  475. package/src/services/batch.ts +553 -0
  476. package/src/services/bedrock_pass_through.ts +229 -0
  477. package/src/services/beta_agents.ts +444 -0
  478. package/src/services/beta_mcp.ts +105 -0
  479. package/src/services/budget_management.ts +465 -0
  480. package/src/services/budget_spend_tracking.ts +2670 -0
  481. package/src/services/cache_settings.ts +234 -0
  482. package/src/services/caching.ts +175 -0
  483. package/src/services/chat_completions.ts +1788 -0
  484. package/src/services/claude_code_marketplace.ts +569 -0
  485. package/src/services/cloudzero.ts +297 -0
  486. package/src/services/cohere_pass_through.ts +227 -0
  487. package/src/services/completions.ts +194 -0
  488. package/src/services/compliance.ts +175 -0
  489. package/src/services/config_overrides.ts +466 -0
  490. package/src/services/config_yaml.ts +1537 -0
  491. package/src/services/containers.ts +848 -0
  492. package/src/services/coordination_redis_settings.ts +251 -0
  493. package/src/services/cost_tracking.ts +407 -0
  494. package/src/services/credential_management.ts +436 -0
  495. package/src/services/cursor_pass_through.ts +227 -0
  496. package/src/services/customer_management.ts +1475 -0
  497. package/src/services/email_management.ts +171 -0
  498. package/src/services/embeddings.ts +424 -0
  499. package/src/services/evals.ts +672 -0
  500. package/src/services/experimental.ts +572 -0
  501. package/src/services/fallback_management.ts +224 -0
  502. package/src/services/files.ts +732 -0
  503. package/src/services/fine_tuning.ts +547 -0
  504. package/src/services/gemini_agents.ts +227 -0
  505. package/src/services/google_ai_studio_pass_through.ts +227 -0
  506. package/src/services/google_genai_endpoints.ts +688 -0
  507. package/src/services/guardrails.ts +3006 -0
  508. package/src/services/health.ts +713 -0
  509. package/src/services/images.ts +430 -0
  510. package/src/services/index.ts +106 -0
  511. package/src/services/internal_user_management.ts +2574 -0
  512. package/src/services/invite_links.ts +167 -0
  513. package/src/services/jwt_mappings.ts +238 -0
  514. package/src/services/key_management.ts +4162 -0
  515. package/src/services/langfuse_passthrough.ts +231 -0
  516. package/src/services/llm_utils.ts +429 -0
  517. package/src/services/logging_callbacks.ts +104 -0
  518. package/src/services/mcp_byok_oauth.ts +468 -0
  519. package/src/services/mcp_discoverable.ts +626 -0
  520. package/src/services/mcp_management.ts +2915 -0
  521. package/src/services/mcp_rest.ts +779 -0
  522. package/src/services/memory_management.ts +248 -0
  523. package/src/services/milvus_pass_through.ts +227 -0
  524. package/src/services/misc.ts +2128 -0
  525. package/src/services/mistral_pass_through.ts +229 -0
  526. package/src/services/model_management.ts +4501 -0
  527. package/src/services/moderations.ts +80 -0
  528. package/src/services/ocr.ts +78 -0
  529. package/src/services/open_ai_pass_through.ts +462 -0
  530. package/src/services/organization_management.ts +1749 -0
  531. package/src/services/plugins.ts +367 -0
  532. package/src/services/policies.ts +1676 -0
  533. package/src/services/policy_engine.ts +1318 -0
  534. package/src/services/project_management.ts +938 -0
  535. package/src/services/prompts.ts +592 -0
  536. package/src/services/public.ts +880 -0
  537. package/src/services/rag.ts +148 -0
  538. package/src/services/realtime.ts +350 -0
  539. package/src/services/rerank.ts +111 -0
  540. package/src/services/responses.ts +909 -0
  541. package/src/services/router_settings.ts +168 -0
  542. package/src/services/rust_control_plane.ts +123 -0
  543. package/src/services/scim.ts +1243 -0
  544. package/src/services/search.ts +260 -0
  545. package/src/services/search_tools.ts +439 -0
  546. package/src/services/settings.ts +146 -0
  547. package/src/services/sso_settings.ts +626 -0
  548. package/src/services/tag_management.ts +1004 -0
  549. package/src/services/team_management.ts +3990 -0
  550. package/src/services/tools.ts +628 -0
  551. package/src/services/ui_settings.ts +237 -0
  552. package/src/services/ui_theme_settings.ts +173 -0
  553. package/src/services/usage_ai.ts +86 -0
  554. package/src/services/vantage.ts +283 -0
  555. package/src/services/vector_store_management.ts +454 -0
  556. package/src/services/vector_stores.ts +1321 -0
  557. package/src/services/vertex_ai_pass_through.ts +684 -0
  558. package/src/services/videos.ts +762 -0
  559. package/src/services/vllm_pass_through.ts +227 -0
  560. package/src/services/watsonx_pass_through.ts +229 -0
  561. package/src/services/web_socket.ts +254 -0
  562. package/src/services/workflow_management.ts +482 -0
  563. package/src/traits.ts +44 -0
@@ -0,0 +1,117 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as Redacted from "effect/Redacted";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import { type LitellmOpError, type LitellmOpContext } from "../protocol.ts";
5
+ export type { LitellmOpError, LitellmOpContext };
6
+ declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
7
+ readonly code: any;
8
+ readonly message: any;
9
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
10
+ "@distilled.cloud/error/categories": {
11
+ BadRequestError: true;
12
+ };
13
+ });
14
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
15
+ }
16
+ export interface CloudzeroDryRunExportCloudzeroDryRunPostRequest {
17
+ /** End time for data export in UTC */
18
+ end_time_utc?: string | null;
19
+ /** Optional limit on number of records to export */
20
+ limit?: number | null;
21
+ /** CloudZero operation type (replace_hourly or sum) */
22
+ operation?: string;
23
+ /** Start time for data export in UTC */
24
+ start_time_utc?: string | null;
25
+ }
26
+ export declare const CloudzeroDryRunExportCloudzeroDryRunPostRequest: S.Schema<CloudzeroDryRunExportCloudzeroDryRunPostRequest>;
27
+ export type CloudZeroExportResponseDryRunDataMap = {
28
+ [key: string]: unknown | undefined;
29
+ };
30
+ export declare const CloudZeroExportResponseDryRunDataMap: S.Schema<CloudZeroExportResponseDryRunDataMap>;
31
+ export type CloudZeroExportResponseSummaryMap = {
32
+ [key: string]: unknown | undefined;
33
+ };
34
+ export declare const CloudZeroExportResponseSummaryMap: S.Schema<CloudZeroExportResponseSummaryMap>;
35
+ /** Response model for CloudZero export operations */
36
+ export interface CloudZeroExportResponse {
37
+ /** Dry run data including usage data and CBF transformed data */
38
+ dry_run_data?: CloudZeroExportResponseDryRunDataMap | null;
39
+ message: string;
40
+ records_exported?: number | null;
41
+ status: string;
42
+ /** Summary statistics for dry run */
43
+ summary?: CloudZeroExportResponseSummaryMap | null;
44
+ }
45
+ export declare const CloudZeroExportResponse: S.Schema<CloudZeroExportResponse>;
46
+ export interface CloudzeroExportCloudzeroExportPostRequest {
47
+ /** End time for data export in UTC */
48
+ end_time_utc?: string | null;
49
+ /** Optional limit on number of records to export */
50
+ limit?: number | null;
51
+ /** CloudZero operation type (replace_hourly or sum) */
52
+ operation?: string;
53
+ /** Start time for data export in UTC */
54
+ start_time_utc?: string | null;
55
+ }
56
+ export declare const CloudzeroExportCloudzeroExportPostRequest: S.Schema<CloudzeroExportCloudzeroExportPostRequest>;
57
+ export interface DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest {
58
+ }
59
+ export declare const DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest: S.Schema<DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest>;
60
+ /** Response model for CloudZero initialization */
61
+ export interface CloudZeroInitResponse {
62
+ message: string;
63
+ status: string;
64
+ }
65
+ export declare const CloudZeroInitResponse: S.Schema<CloudZeroInitResponse>;
66
+ export interface GetCloudzeroSettingsCloudzeroSettingsGetRequest {
67
+ }
68
+ export declare const GetCloudzeroSettingsCloudzeroSettingsGetRequest: S.Schema<GetCloudzeroSettingsCloudzeroSettingsGetRequest>;
69
+ /** Response model for viewing CloudZero settings with masked API key */
70
+ export interface CloudZeroSettingsView {
71
+ /** Masked API key showing only first 4 and last 4 characters */
72
+ api_key_masked?: string | null;
73
+ /** CloudZero connection ID for data submission */
74
+ connection_id?: string | null;
75
+ /** Configuration status */
76
+ status?: string | null;
77
+ /** Timezone for date handling */
78
+ timezone?: string | null;
79
+ }
80
+ export declare const CloudZeroSettingsView: S.Schema<CloudZeroSettingsView>;
81
+ export interface PostInitCloudzeroSettingsCloudzeroInitRequest {
82
+ /** CloudZero API key for authentication */
83
+ api_key: string | Redacted.Redacted<string>;
84
+ /** CloudZero connection ID for data submission */
85
+ connection_id: string;
86
+ /** Timezone for date handling (default: UTC) */
87
+ timezone?: string;
88
+ }
89
+ export declare const PostInitCloudzeroSettingsCloudzeroInitRequest: S.Schema<PostInitCloudzeroSettingsCloudzeroInitRequest>;
90
+ export interface UpdateCloudzeroSettingsCloudzeroSettingsPutRequest {
91
+ /** New CloudZero API key for authentication */
92
+ api_key?: string | null;
93
+ /** New CloudZero connection ID for data submission */
94
+ connection_id?: string | null;
95
+ /** New timezone for date handling */
96
+ timezone?: string | null;
97
+ }
98
+ export declare const UpdateCloudzeroSettingsCloudzeroSettingsPutRequest: S.Schema<UpdateCloudzeroSettingsCloudzeroSettingsPutRequest>;
99
+ export type CloudzeroDryRunExportCloudzeroDryRunPostError = UnprocessableEntity | LitellmOpError;
100
+ /** Cloudzero Dry Run Export Perform a dry run export using the CloudZero logger. This endpoint uses the CloudZero logger to perform a dry run export, which returns the data that would be exported without actually sending it to CloudZero. Parameters: - limit: Optional limit on number of records to process (default: 10000) Returns: - usage_data: Sample of the raw usage data (first 50 records) - cbf_data: CloudZero CBF formatted data ready for export - summary: Statistics including total cost, tokens, and record counts Only admin users can perform CloudZero exports. */
101
+ export declare const cloudzeroDryRunExportCloudzeroDryRunPost: API.OperationMethod<CloudzeroDryRunExportCloudzeroDryRunPostRequest, CloudZeroExportResponse, CloudzeroDryRunExportCloudzeroDryRunPostError, LitellmOpContext>;
102
+ export type CloudzeroExportCloudzeroExportPostError = UnprocessableEntity | LitellmOpError;
103
+ /** Cloudzero Export Perform an actual export using the CloudZero logger. This endpoint uses the CloudZero logger to export usage data to CloudZero AnyCost API. Parameters: - limit: Optional limit on number of records to export - operation: CloudZero operation type ("replace_hourly" or "sum", default: "replace_hourly") Only admin users can perform CloudZero exports. */
104
+ export declare const cloudzeroExportCloudzeroExportPost: API.OperationMethod<CloudzeroExportCloudzeroExportPostRequest, CloudZeroExportResponse, CloudzeroExportCloudzeroExportPostError, LitellmOpContext>;
105
+ export type DeleteCloudzeroSettingsCloudzeroDeleteDeleteError = LitellmOpError;
106
+ /** Delete Cloudzero Settings Delete CloudZero settings from the database. This endpoint removes the CloudZero configuration (API key, connection ID, timezone) from the proxy database. Only the CloudZero settings entry will be deleted; other configuration values in the database will remain unchanged. Only admin users can delete CloudZero settings. */
107
+ export declare const deleteCloudzeroSettingsCloudzeroDeleteDelete: API.OperationMethod<DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest, CloudZeroInitResponse, DeleteCloudzeroSettingsCloudzeroDeleteDeleteError, LitellmOpContext>;
108
+ export type GetCloudzeroSettingsCloudzeroSettingsGetError = LitellmOpError;
109
+ /** Get Cloudzero Settings View current CloudZero settings. Returns the current CloudZero configuration with the API key masked for security. Only the first 4 and last 4 characters of the API key are shown. Returns null/empty values when settings are not configured (consistent with other settings endpoints). Only admin users (Proxy Admin or Admin Viewer) can view CloudZero settings. */
110
+ export declare const getCloudzeroSettingsCloudzeroSettingsGet: API.OperationMethod<GetCloudzeroSettingsCloudzeroSettingsGetRequest, CloudZeroSettingsView, GetCloudzeroSettingsCloudzeroSettingsGetError, LitellmOpContext>;
111
+ export type PostInitCloudzeroSettingsCloudzeroInitError = UnprocessableEntity | LitellmOpError;
112
+ /** Init Cloudzero Settings Initialize CloudZero settings and store in the database. This endpoint stores the CloudZero API key, connection ID, and timezone configuration in the proxy database for use by the CloudZero logger. Parameters: - api_key: CloudZero API key for authentication - connection_id: CloudZero connection ID for data submission - timezone: Timezone for date handling (default: UTC) Only admin users can configure CloudZero settings. */
113
+ export declare const postInitCloudzeroSettingsCloudzeroInit: API.OperationMethod<PostInitCloudzeroSettingsCloudzeroInitRequest, CloudZeroInitResponse, PostInitCloudzeroSettingsCloudzeroInitError, LitellmOpContext>;
114
+ export type UpdateCloudzeroSettingsCloudzeroSettingsPutError = UnprocessableEntity | LitellmOpError;
115
+ /** Update Cloudzero Settings Update existing CloudZero settings. Allows updating individual CloudZero configuration fields without requiring all fields. Only provided fields will be updated; others will remain unchanged. Parameters: - api_key: (Optional) New CloudZero API key for authentication - connection_id: (Optional) New CloudZero connection ID for data submission - timezone: (Optional) New timezone for date handling Only admin users can update CloudZero settings. */
116
+ export declare const updateCloudzeroSettingsCloudzeroSettingsPut: API.OperationMethod<UpdateCloudzeroSettingsCloudzeroSettingsPutRequest, CloudZeroInitResponse, UpdateCloudzeroSettingsCloudzeroSettingsPutError, LitellmOpContext>;
117
+ //# sourceMappingURL=cloudzero.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudzero.d.ts","sourceRoot":"","sources":["../../src/services/cloudzero.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,K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CAA6C,GAAG,cAAc,CAAC;AAC3E,oYAAoY;AACpY,eAAO,MAAM,wCAAwC,EAAE,GAAG,CAAC,eAAe,CACxE,+CAA+C,EAC/C,qBAAqB,EACrB,6CAA6C,EAC7C,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,2CAA2C,GACnD,mBAAmB,GACnB,cAAc,CAAC;AACnB,scAAsc;AACtc,eAAO,MAAM,sCAAsC,EAAE,GAAG,CAAC,eAAe,CACtE,6CAA6C,EAC7C,qBAAqB,EACrB,2CAA2C,EAC3C,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,gDAAgD,GACxD,mBAAmB,GACnB,cAAc,CAAC;AACnB,6dAA6d;AAC7d,eAAO,MAAM,2CAA2C,EAAE,GAAG,CAAC,eAAe,CAC3E,kDAAkD,EAClD,qBAAqB,EACrB,gDAAgD,EAChD,gBAAgB,CAOf,CAAC"}
@@ -0,0 +1,130 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (pinned litellm-openapi @ 1.100.0 — see README). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.js";
7
+ import { LitellmProtocol, } from "../protocol.js";
8
+ import * as Retry from "../retry.js";
9
+ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
10
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
11
+ code: S.Number,
12
+ message: S.String,
13
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
14
+ }
15
+ export const CloudzeroDryRunExportCloudzeroDryRunPostRequest =
16
+ /*@__PURE__*/ S.suspend(() => S.Struct({
17
+ end_time_utc: S.optional(S.NullOr(S.String)),
18
+ limit: S.optional(S.NullOr(S.Number)),
19
+ operation: S.optional(S.String),
20
+ start_time_utc: S.optional(S.NullOr(S.String)),
21
+ }).pipe(T.Http({ method: "POST", uri: "/cloudzero/dry-run", code: 200 }))).annotate({
22
+ identifier: "CloudzeroDryRunExportCloudzeroDryRunPostRequest",
23
+ });
24
+ export const CloudZeroExportResponseDryRunDataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
25
+ export const CloudZeroExportResponseSummaryMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
26
+ export const CloudZeroExportResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
27
+ dry_run_data: S.optional(S.NullOr(CloudZeroExportResponseDryRunDataMap)),
28
+ message: S.String,
29
+ records_exported: S.optional(S.NullOr(S.Number)),
30
+ status: S.String,
31
+ summary: S.optional(S.NullOr(CloudZeroExportResponseSummaryMap)),
32
+ })).annotate({
33
+ identifier: "CloudZeroExportResponse",
34
+ });
35
+ export const CloudzeroExportCloudzeroExportPostRequest =
36
+ /*@__PURE__*/ S.suspend(() => S.Struct({
37
+ end_time_utc: S.optional(S.NullOr(S.String)),
38
+ limit: S.optional(S.NullOr(S.Number)),
39
+ operation: S.optional(S.String),
40
+ start_time_utc: S.optional(S.NullOr(S.String)),
41
+ }).pipe(T.Http({ method: "POST", uri: "/cloudzero/export", code: 200 }))).annotate({
42
+ identifier: "CloudzeroExportCloudzeroExportPostRequest",
43
+ });
44
+ export const DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest =
45
+ /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "DELETE", uri: "/cloudzero/delete", code: 200 }))).annotate({
46
+ identifier: "DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest",
47
+ });
48
+ export const CloudZeroInitResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
49
+ message: S.String,
50
+ status: S.String,
51
+ })).annotate({
52
+ identifier: "CloudZeroInitResponse",
53
+ });
54
+ export const GetCloudzeroSettingsCloudzeroSettingsGetRequest =
55
+ /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/cloudzero/settings", code: 200 }))).annotate({
56
+ identifier: "GetCloudzeroSettingsCloudzeroSettingsGetRequest",
57
+ });
58
+ export const CloudZeroSettingsView = /*@__PURE__*/ S.suspend(() => S.Struct({
59
+ api_key_masked: S.optional(S.NullOr(S.String)),
60
+ connection_id: S.optional(S.NullOr(S.String)),
61
+ status: S.optional(S.NullOr(S.String)),
62
+ timezone: S.optional(S.NullOr(S.String)),
63
+ })).annotate({
64
+ identifier: "CloudZeroSettingsView",
65
+ });
66
+ export const PostInitCloudzeroSettingsCloudzeroInitRequest =
67
+ /*@__PURE__*/ S.suspend(() => S.Struct({
68
+ api_key: S.String.pipe(T.SensitiveValue({})),
69
+ connection_id: S.String,
70
+ timezone: S.optional(S.String),
71
+ }).pipe(T.Http({ method: "POST", uri: "/cloudzero/init", code: 200 }))).annotate({
72
+ identifier: "PostInitCloudzeroSettingsCloudzeroInitRequest",
73
+ });
74
+ export const UpdateCloudzeroSettingsCloudzeroSettingsPutRequest =
75
+ /*@__PURE__*/ S.suspend(() => S.Struct({
76
+ api_key: S.optional(S.NullOr(S.String)),
77
+ connection_id: S.optional(S.NullOr(S.String)),
78
+ timezone: S.optional(S.NullOr(S.String)),
79
+ }).pipe(T.Http({ method: "PUT", uri: "/cloudzero/settings", code: 200 }))).annotate({
80
+ identifier: "UpdateCloudzeroSettingsCloudzeroSettingsPutRequest",
81
+ });
82
+ /** Cloudzero Dry Run Export Perform a dry run export using the CloudZero logger. This endpoint uses the CloudZero logger to perform a dry run export, which returns the data that would be exported without actually sending it to CloudZero. Parameters: - limit: Optional limit on number of records to process (default: 10000) Returns: - usage_data: Sample of the raw usage data (first 50 records) - cbf_data: CloudZero CBF formatted data ready for export - summary: Statistics including total cost, tokens, and record counts Only admin users can perform CloudZero exports. */
83
+ export const cloudzeroDryRunExportCloudzeroDryRunPost = /*@__PURE__*/ API.make(() => ({
84
+ input: CloudzeroDryRunExportCloudzeroDryRunPostRequest,
85
+ output: CloudZeroExportResponse,
86
+ errors: [UnprocessableEntity],
87
+ protocol: LitellmProtocol,
88
+ retry: Retry.Retry,
89
+ }));
90
+ /** Cloudzero Export Perform an actual export using the CloudZero logger. This endpoint uses the CloudZero logger to export usage data to CloudZero AnyCost API. Parameters: - limit: Optional limit on number of records to export - operation: CloudZero operation type ("replace_hourly" or "sum", default: "replace_hourly") Only admin users can perform CloudZero exports. */
91
+ export const cloudzeroExportCloudzeroExportPost = /*@__PURE__*/ API.make(() => ({
92
+ input: CloudzeroExportCloudzeroExportPostRequest,
93
+ output: CloudZeroExportResponse,
94
+ errors: [UnprocessableEntity],
95
+ protocol: LitellmProtocol,
96
+ retry: Retry.Retry,
97
+ }));
98
+ /** Delete Cloudzero Settings Delete CloudZero settings from the database. This endpoint removes the CloudZero configuration (API key, connection ID, timezone) from the proxy database. Only the CloudZero settings entry will be deleted; other configuration values in the database will remain unchanged. Only admin users can delete CloudZero settings. */
99
+ export const deleteCloudzeroSettingsCloudzeroDeleteDelete = /*@__PURE__*/ API.make(() => ({
100
+ input: DeleteCloudzeroSettingsCloudzeroDeleteDeleteRequest,
101
+ output: CloudZeroInitResponse,
102
+ errors: [],
103
+ protocol: LitellmProtocol,
104
+ retry: Retry.Retry,
105
+ }));
106
+ /** Get Cloudzero Settings View current CloudZero settings. Returns the current CloudZero configuration with the API key masked for security. Only the first 4 and last 4 characters of the API key are shown. Returns null/empty values when settings are not configured (consistent with other settings endpoints). Only admin users (Proxy Admin or Admin Viewer) can view CloudZero settings. */
107
+ export const getCloudzeroSettingsCloudzeroSettingsGet = /*@__PURE__*/ API.make(() => ({
108
+ input: GetCloudzeroSettingsCloudzeroSettingsGetRequest,
109
+ output: CloudZeroSettingsView,
110
+ errors: [],
111
+ protocol: LitellmProtocol,
112
+ retry: Retry.Retry,
113
+ }));
114
+ /** Init Cloudzero Settings Initialize CloudZero settings and store in the database. This endpoint stores the CloudZero API key, connection ID, and timezone configuration in the proxy database for use by the CloudZero logger. Parameters: - api_key: CloudZero API key for authentication - connection_id: CloudZero connection ID for data submission - timezone: Timezone for date handling (default: UTC) Only admin users can configure CloudZero settings. */
115
+ export const postInitCloudzeroSettingsCloudzeroInit = /*@__PURE__*/ API.make(() => ({
116
+ input: PostInitCloudzeroSettingsCloudzeroInitRequest,
117
+ output: CloudZeroInitResponse,
118
+ errors: [UnprocessableEntity],
119
+ protocol: LitellmProtocol,
120
+ retry: Retry.Retry,
121
+ }));
122
+ /** Update Cloudzero Settings Update existing CloudZero settings. Allows updating individual CloudZero configuration fields without requiring all fields. Only provided fields will be updated; others will remain unchanged. Parameters: - api_key: (Optional) New CloudZero API key for authentication - connection_id: (Optional) New CloudZero connection ID for data submission - timezone: (Optional) New timezone for date handling Only admin users can update CloudZero settings. */
123
+ export const updateCloudzeroSettingsCloudzeroSettingsPut = /*@__PURE__*/ API.make(() => ({
124
+ input: UpdateCloudzeroSettingsCloudzeroSettingsPutRequest,
125
+ output: CloudZeroInitResponse,
126
+ errors: [UnprocessableEntity],
127
+ protocol: LitellmProtocol,
128
+ retry: Retry.Retry,
129
+ }));
130
+ //# sourceMappingURL=cloudzero.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloudzero.js","sourceRoot":"","sources":["../../src/services/cloudzero.ts"],"names":[],"mappings":"AAAA,4HAA4H;AAC5H,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,gCAAgC,CAAC;AACpD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,eAAe,GAGhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAIrC,MAAM,OAAO,mBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,CAAC,CAAC,kBAAkB;AACxC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAuB,CAAC,qBAAqB,EAAE;IACxE,IAA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,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAKJ,scAAsc;AACtc,MAAM,CAAC,MAAM,sCAAsC,GAK/C,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,6CAA6C;IACpD,MAAM,EAAE,qBAAqB;IAC7B,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAKJ,6dAA6d;AAC7d,MAAM,CAAC,MAAM,2CAA2C,GAKpD,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,kDAAkD;IACzD,MAAM,EAAE,qBAAqB;IAC7B,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,70 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type LitellmOpError, type LitellmOpContext } from "../protocol.ts";
4
+ export type { LitellmOpError, LitellmOpContext };
5
+ declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
13
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
14
+ }
15
+ export interface DeleteCohereProxyRouteCohereEndpointRequest {
16
+ endpoint: string;
17
+ }
18
+ export declare const DeleteCohereProxyRouteCohereEndpointRequest: S.Schema<DeleteCohereProxyRouteCohereEndpointRequest>;
19
+ export interface DeleteCohereProxyRouteCohereEndpointResponse {
20
+ body: unknown;
21
+ }
22
+ export declare const DeleteCohereProxyRouteCohereEndpointResponse: S.Schema<DeleteCohereProxyRouteCohereEndpointResponse>;
23
+ export interface GetCohereProxyRouteCohereEndpointRequest {
24
+ endpoint: string;
25
+ }
26
+ export declare const GetCohereProxyRouteCohereEndpointRequest: S.Schema<GetCohereProxyRouteCohereEndpointRequest>;
27
+ export interface GetCohereProxyRouteCohereEndpointResponse {
28
+ body: unknown;
29
+ }
30
+ export declare const GetCohereProxyRouteCohereEndpointResponse: S.Schema<GetCohereProxyRouteCohereEndpointResponse>;
31
+ export interface PatchCohereProxyRouteCohereEndpointRequest {
32
+ endpoint: string;
33
+ }
34
+ export declare const PatchCohereProxyRouteCohereEndpointRequest: S.Schema<PatchCohereProxyRouteCohereEndpointRequest>;
35
+ export interface PatchCohereProxyRouteCohereEndpointResponse {
36
+ body: unknown;
37
+ }
38
+ export declare const PatchCohereProxyRouteCohereEndpointResponse: S.Schema<PatchCohereProxyRouteCohereEndpointResponse>;
39
+ export interface PostCohereProxyRouteCohereEndpointRequest {
40
+ endpoint: string;
41
+ }
42
+ export declare const PostCohereProxyRouteCohereEndpointRequest: S.Schema<PostCohereProxyRouteCohereEndpointRequest>;
43
+ export interface PostCohereProxyRouteCohereEndpointResponse {
44
+ body: unknown;
45
+ }
46
+ export declare const PostCohereProxyRouteCohereEndpointResponse: S.Schema<PostCohereProxyRouteCohereEndpointResponse>;
47
+ export interface PutCohereProxyRouteCohereEndpointRequest {
48
+ endpoint: string;
49
+ }
50
+ export declare const PutCohereProxyRouteCohereEndpointRequest: S.Schema<PutCohereProxyRouteCohereEndpointRequest>;
51
+ export interface PutCohereProxyRouteCohereEndpointResponse {
52
+ body: unknown;
53
+ }
54
+ export declare const PutCohereProxyRouteCohereEndpointResponse: S.Schema<PutCohereProxyRouteCohereEndpointResponse>;
55
+ export type DeleteCohereProxyRouteCohereEndpointError = UnprocessableEntity | LitellmOpError;
56
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
57
+ export declare const deleteCohereProxyRouteCohereEndpoint: API.OperationMethod<DeleteCohereProxyRouteCohereEndpointRequest, DeleteCohereProxyRouteCohereEndpointResponse, DeleteCohereProxyRouteCohereEndpointError, LitellmOpContext>;
58
+ export type GetCohereProxyRouteCohereEndpointError = UnprocessableEntity | LitellmOpError;
59
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
60
+ export declare const getCohereProxyRouteCohereEndpoint: API.OperationMethod<GetCohereProxyRouteCohereEndpointRequest, GetCohereProxyRouteCohereEndpointResponse, GetCohereProxyRouteCohereEndpointError, LitellmOpContext>;
61
+ export type PatchCohereProxyRouteCohereEndpointError = UnprocessableEntity | LitellmOpError;
62
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
63
+ export declare const patchCohereProxyRouteCohereEndpoint: API.OperationMethod<PatchCohereProxyRouteCohereEndpointRequest, PatchCohereProxyRouteCohereEndpointResponse, PatchCohereProxyRouteCohereEndpointError, LitellmOpContext>;
64
+ export type PostCohereProxyRouteCohereEndpointError = UnprocessableEntity | LitellmOpError;
65
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
66
+ export declare const postCohereProxyRouteCohereEndpoint: API.OperationMethod<PostCohereProxyRouteCohereEndpointRequest, PostCohereProxyRouteCohereEndpointResponse, PostCohereProxyRouteCohereEndpointError, LitellmOpContext>;
67
+ export type PutCohereProxyRouteCohereEndpointError = UnprocessableEntity | LitellmOpError;
68
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
69
+ export declare const putCohereProxyRouteCohereEndpoint: API.OperationMethod<PutCohereProxyRouteCohereEndpointRequest, PutCohereProxyRouteCohereEndpointResponse, PutCohereProxyRouteCohereEndpointError, LitellmOpContext>;
70
+ //# sourceMappingURL=cohere_pass_through.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"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G,CAAC,eAAe,CAClE,yCAAyC,EACzC,0CAA0C,EAC1C,uCAAuC,EACvC,gBAAgB,CAOf,CAAC;AAEJ,MAAM,MAAM,sCAAsC,GAC9C,mBAAmB,GACnB,cAAc,CAAC;AACnB,kFAAkF;AAClF,eAAO,MAAM,iCAAiC,EAAE,GAAG,CAAC,eAAe,CACjE,wCAAwC,EACxC,yCAAyC,EACzC,sCAAsC,EACtC,gBAAgB,CAOf,CAAC"}
@@ -0,0 +1,112 @@
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.js";
6
+ import { LitellmProtocol, } from "../protocol.js";
7
+ import * as Retry from "../retry.js";
8
+ export class UnprocessableEntity extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
9
+ /*@__PURE__*/ S.TaggedError()("UnprocessableEntity", {
10
+ code: S.Number,
11
+ message: S.String,
12
+ }).pipe(C.withBadRequestError), [{ status: 422 }]) {
13
+ }
14
+ export const DeleteCohereProxyRouteCohereEndpointRequest =
15
+ /*@__PURE__*/ S.suspend(() => S.Struct({
16
+ endpoint: S.String.pipe(T.Label()),
17
+ }).pipe(T.Http({ method: "DELETE", uri: "/cohere/{endpoint}", code: 200 }))).annotate({
18
+ identifier: "DeleteCohereProxyRouteCohereEndpointRequest",
19
+ });
20
+ export const DeleteCohereProxyRouteCohereEndpointResponse =
21
+ /*@__PURE__*/ S.suspend(() => S.Struct({
22
+ body: S.Unknown,
23
+ })).annotate({
24
+ identifier: "DeleteCohereProxyRouteCohereEndpointResponse",
25
+ });
26
+ export const GetCohereProxyRouteCohereEndpointRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
27
+ endpoint: S.String.pipe(T.Label()),
28
+ }).pipe(T.Http({ method: "GET", uri: "/cohere/{endpoint}", code: 200 }))).annotate({
29
+ identifier: "GetCohereProxyRouteCohereEndpointRequest",
30
+ });
31
+ export const GetCohereProxyRouteCohereEndpointResponse =
32
+ /*@__PURE__*/ S.suspend(() => S.Struct({
33
+ body: S.Unknown,
34
+ })).annotate({
35
+ identifier: "GetCohereProxyRouteCohereEndpointResponse",
36
+ });
37
+ export const PatchCohereProxyRouteCohereEndpointRequest =
38
+ /*@__PURE__*/ S.suspend(() => S.Struct({
39
+ endpoint: S.String.pipe(T.Label()),
40
+ }).pipe(T.Http({ method: "PATCH", uri: "/cohere/{endpoint}", code: 200 }))).annotate({
41
+ identifier: "PatchCohereProxyRouteCohereEndpointRequest",
42
+ });
43
+ export const PatchCohereProxyRouteCohereEndpointResponse =
44
+ /*@__PURE__*/ S.suspend(() => S.Struct({
45
+ body: S.Unknown,
46
+ })).annotate({
47
+ identifier: "PatchCohereProxyRouteCohereEndpointResponse",
48
+ });
49
+ export const PostCohereProxyRouteCohereEndpointRequest =
50
+ /*@__PURE__*/ S.suspend(() => S.Struct({
51
+ endpoint: S.String.pipe(T.Label()),
52
+ }).pipe(T.Http({ method: "POST", uri: "/cohere/{endpoint}", code: 200 }))).annotate({
53
+ identifier: "PostCohereProxyRouteCohereEndpointRequest",
54
+ });
55
+ export const PostCohereProxyRouteCohereEndpointResponse =
56
+ /*@__PURE__*/ S.suspend(() => S.Struct({
57
+ body: S.Unknown,
58
+ })).annotate({
59
+ identifier: "PostCohereProxyRouteCohereEndpointResponse",
60
+ });
61
+ export const PutCohereProxyRouteCohereEndpointRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
62
+ endpoint: S.String.pipe(T.Label()),
63
+ }).pipe(T.Http({ method: "PUT", uri: "/cohere/{endpoint}", code: 200 }))).annotate({
64
+ identifier: "PutCohereProxyRouteCohereEndpointRequest",
65
+ });
66
+ export const PutCohereProxyRouteCohereEndpointResponse =
67
+ /*@__PURE__*/ S.suspend(() => S.Struct({
68
+ body: S.Unknown,
69
+ })).annotate({
70
+ identifier: "PutCohereProxyRouteCohereEndpointResponse",
71
+ });
72
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
73
+ export const deleteCohereProxyRouteCohereEndpoint = /*@__PURE__*/ API.make(() => ({
74
+ input: DeleteCohereProxyRouteCohereEndpointRequest,
75
+ output: DeleteCohereProxyRouteCohereEndpointResponse,
76
+ errors: [UnprocessableEntity],
77
+ protocol: LitellmProtocol,
78
+ retry: Retry.Retry,
79
+ }));
80
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
81
+ export const getCohereProxyRouteCohereEndpoint = /*@__PURE__*/ API.make(() => ({
82
+ input: GetCohereProxyRouteCohereEndpointRequest,
83
+ output: GetCohereProxyRouteCohereEndpointResponse,
84
+ errors: [UnprocessableEntity],
85
+ protocol: LitellmProtocol,
86
+ retry: Retry.Retry,
87
+ }));
88
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
89
+ export const patchCohereProxyRouteCohereEndpoint = /*@__PURE__*/ API.make(() => ({
90
+ input: PatchCohereProxyRouteCohereEndpointRequest,
91
+ output: PatchCohereProxyRouteCohereEndpointResponse,
92
+ errors: [UnprocessableEntity],
93
+ protocol: LitellmProtocol,
94
+ retry: Retry.Retry,
95
+ }));
96
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
97
+ export const postCohereProxyRouteCohereEndpoint = /*@__PURE__*/ API.make(() => ({
98
+ input: PostCohereProxyRouteCohereEndpointRequest,
99
+ output: PostCohereProxyRouteCohereEndpointResponse,
100
+ errors: [UnprocessableEntity],
101
+ protocol: LitellmProtocol,
102
+ retry: Retry.Retry,
103
+ }));
104
+ /** Cohere Proxy Route [Docs](https://docs.litellm.ai/docs/pass_through/cohere) */
105
+ export const putCohereProxyRouteCohereEndpoint = /*@__PURE__*/ API.make(() => ({
106
+ input: PutCohereProxyRouteCohereEndpointRequest,
107
+ output: PutCohereProxyRouteCohereEndpointResponse,
108
+ errors: [UnprocessableEntity],
109
+ protocol: LitellmProtocol,
110
+ retry: Retry.Retry,
111
+ }));
112
+ //# sourceMappingURL=cohere_pass_through.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cohere_pass_through.js","sourceRoot":"","sources":["../../src/services/cohere_pass_through.ts"],"names":[],"mappings":"AAAA,4HAA4H;AAC5H,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,gCAAgC,CAAC;AACpD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EACL,eAAe,GAGhB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAIrC,MAAM,OAAO,mBACX,SAAQ,aAAa,CAAb,aAAa,CAAC,CAAC,CAAC,kBAAkB;AACxC,aAAa,CAAC,CAAC,CAAC,WAAW,EAAuB,CAAC,qBAAqB,EAAE;IACxE,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,OAAO,EAAE,CAAC,CAAC,MAAM;CAClB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAmB,CAAC,EAC9B,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,CAClB;CAAG;AAKN,MAAM,CAAC,MAAM,2CAA2C;AACtD,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAC3B,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;CACnC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,CAC5E,CAAC,QAAQ,CAAC;IACT,UAAU,EAAE,6CAA6C;CAC1D,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B,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAKJ,kFAAkF;AAClF,MAAM,CAAC,MAAM,kCAAkC,GAK3C,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,yCAAyC;IAChD,MAAM,EAAE,0CAA0C;IAClD,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC;AAKJ,kFAAkF;AAClF,MAAM,CAAC,MAAM,iCAAiC,GAK1C,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;IAChC,KAAK,EAAE,wCAAwC;IAC/C,MAAM,EAAE,yCAAyC;IACjD,MAAM,EAAE,CAAC,mBAAmB,CAAC;IAC7B,QAAQ,EAAE,eAAe;IACzB,KAAK,EAAE,KAAK,CAAC,KAAK;CACnB,CAAC,CAAC,CAAC"}
@@ -0,0 +1,59 @@
1
+ import * as S from "@distilled.cloud/core/schema";
2
+ import * as API from "@distilled.cloud/core/api";
3
+ import { type LitellmOpError, type LitellmOpContext } from "../protocol.ts";
4
+ export type { LitellmOpError, LitellmOpContext };
5
+ declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStruct<"UnprocessableEntity", {
6
+ readonly code: any;
7
+ readonly message: any;
8
+ }>, import("effect/Cause").YieldableError> & (new (...args: any[]) => {
9
+ "@distilled.cloud/error/categories": {
10
+ BadRequestError: true;
11
+ };
12
+ });
13
+ export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
14
+ }
15
+ export interface PostCompletionCompletionRequest {
16
+ model?: string;
17
+ }
18
+ export declare const PostCompletionCompletionRequest: S.Schema<PostCompletionCompletionRequest>;
19
+ export interface PostCompletionCompletionResponse {
20
+ body: unknown;
21
+ }
22
+ export declare const PostCompletionCompletionResponse: S.Schema<PostCompletionCompletionResponse>;
23
+ export interface PostCompletionEnginesModelCompletionRequest {
24
+ model: string;
25
+ }
26
+ export declare const PostCompletionEnginesModelCompletionRequest: S.Schema<PostCompletionEnginesModelCompletionRequest>;
27
+ export interface PostCompletionEnginesModelCompletionResponse {
28
+ body: unknown;
29
+ }
30
+ export declare const PostCompletionEnginesModelCompletionResponse: S.Schema<PostCompletionEnginesModelCompletionResponse>;
31
+ export interface PostCompletionOpenaiDeploymentsModelCompletionRequest {
32
+ model: string;
33
+ }
34
+ export declare const PostCompletionOpenaiDeploymentsModelCompletionRequest: S.Schema<PostCompletionOpenaiDeploymentsModelCompletionRequest>;
35
+ export interface PostCompletionOpenaiDeploymentsModelCompletionResponse {
36
+ body: unknown;
37
+ }
38
+ export declare const PostCompletionOpenaiDeploymentsModelCompletionResponse: S.Schema<PostCompletionOpenaiDeploymentsModelCompletionResponse>;
39
+ export interface PostCompletionV1CompletionRequest {
40
+ model?: string;
41
+ }
42
+ export declare const PostCompletionV1CompletionRequest: S.Schema<PostCompletionV1CompletionRequest>;
43
+ export interface PostCompletionV1CompletionResponse {
44
+ body: unknown;
45
+ }
46
+ export declare const PostCompletionV1CompletionResponse: S.Schema<PostCompletionV1CompletionResponse>;
47
+ export type PostCompletionCompletionError = UnprocessableEntity | LitellmOpError;
48
+ /** Completion Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "Once upon a time", "max_tokens": 50, "temperature": 0.7 }' ``` */
49
+ export declare const postCompletionCompletion: API.OperationMethod<PostCompletionCompletionRequest, PostCompletionCompletionResponse, PostCompletionCompletionError, LitellmOpContext>;
50
+ export type PostCompletionEnginesModelCompletionError = UnprocessableEntity | LitellmOpError;
51
+ /** Completion Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "Once upon a time", "max_tokens": 50, "temperature": 0.7 }' ``` */
52
+ export declare const postCompletionEnginesModelCompletion: API.OperationMethod<PostCompletionEnginesModelCompletionRequest, PostCompletionEnginesModelCompletionResponse, PostCompletionEnginesModelCompletionError, LitellmOpContext>;
53
+ export type PostCompletionOpenaiDeploymentsModelCompletionError = UnprocessableEntity | LitellmOpError;
54
+ /** Completion Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "Once upon a time", "max_tokens": 50, "temperature": 0.7 }' ``` */
55
+ export declare const postCompletionOpenaiDeploymentsModelCompletion: API.OperationMethod<PostCompletionOpenaiDeploymentsModelCompletionRequest, PostCompletionOpenaiDeploymentsModelCompletionResponse, PostCompletionOpenaiDeploymentsModelCompletionError, LitellmOpContext>;
56
+ export type PostCompletionV1CompletionError = UnprocessableEntity | LitellmOpError;
57
+ /** Completion Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-1234" -d '{ "model": "gpt-3.5-turbo-instruct", "prompt": "Once upon a time", "max_tokens": 50, "temperature": 0.7 }' ``` */
58
+ export declare const postCompletionV1Completion: API.OperationMethod<PostCompletionV1CompletionRequest, PostCompletionV1CompletionResponse, PostCompletionV1CompletionError, LitellmOpContext>;
59
+ //# sourceMappingURL=completions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"completions.d.ts","sourceRoot":"","sources":["../../src/services/completions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,8BAA8B,CAAC;AAClD,OAAO,KAAK,GAAG,MAAM,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