@orq-ai/node 3.8.0-rc.3 → 3.8.0-rc.31

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 (271) hide show
  1. package/FUNCTIONS.md +3 -5
  2. package/README.md +91 -95
  3. package/bin/mcp-server.js +2288 -883
  4. package/bin/mcp-server.js.map +71 -65
  5. package/docs/sdks/contacts/README.md +30 -2
  6. package/docs/sdks/knowledge/README.md +1 -1
  7. package/docs/sdks/orq/README.md +138 -0
  8. package/funcs/filesCreate.d.ts.map +1 -1
  9. package/funcs/filesCreate.js +7 -3
  10. package/funcs/filesCreate.js.map +1 -1
  11. package/funcs/getV2ModelsLitellmModels.d.ts +17 -0
  12. package/funcs/getV2ModelsLitellmModels.d.ts.map +1 -0
  13. package/funcs/getV2ModelsLitellmModels.js +105 -0
  14. package/funcs/getV2ModelsLitellmModels.js.map +1 -0
  15. package/funcs/knowledgeCreateChunks.d.ts +1 -1
  16. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  17. package/funcs/knowledgeCreateChunks.js +1 -1
  18. package/funcs/knowledgeCreateChunks.js.map +1 -1
  19. package/funcs/postV2ModelsLitellmImport.d.ts +17 -0
  20. package/funcs/postV2ModelsLitellmImport.d.ts.map +1 -0
  21. package/funcs/postV2ModelsLitellmImport.js +117 -0
  22. package/funcs/postV2ModelsLitellmImport.js.map +1 -0
  23. package/jsr.json +1 -1
  24. package/lib/config.d.ts +3 -3
  25. package/lib/config.js +3 -3
  26. package/lib/config.js.map +1 -1
  27. package/lib/files.d.ts +5 -0
  28. package/lib/files.d.ts.map +1 -1
  29. package/lib/files.js +41 -0
  30. package/lib/files.js.map +1 -1
  31. package/lib/security.d.ts +2 -2
  32. package/lib/security.d.ts.map +1 -1
  33. package/mcp-server/mcp-server.js +1 -1
  34. package/mcp-server/mcp-server.js.map +1 -1
  35. package/mcp-server/server.d.ts.map +1 -1
  36. package/mcp-server/server.js +5 -1
  37. package/mcp-server/server.js.map +1 -1
  38. package/mcp-server/tools/getV2ModelsLitellmModels.d.ts +3 -0
  39. package/mcp-server/tools/getV2ModelsLitellmModels.d.ts.map +1 -0
  40. package/mcp-server/tools/getV2ModelsLitellmModels.js +26 -0
  41. package/mcp-server/tools/getV2ModelsLitellmModels.js.map +1 -0
  42. package/mcp-server/tools/postV2ModelsLitellmImport.d.ts +9 -0
  43. package/mcp-server/tools/postV2ModelsLitellmImport.d.ts.map +1 -0
  44. package/mcp-server/tools/postV2ModelsLitellmImport.js +65 -0
  45. package/mcp-server/tools/postV2ModelsLitellmImport.js.map +1 -0
  46. package/models/components/deployments.d.ts +8 -8
  47. package/models/components/deployments.d.ts.map +1 -1
  48. package/models/components/deployments.js +8 -8
  49. package/models/components/deployments.js.map +1 -1
  50. package/models/operations/createchunk.d.ts +28 -28
  51. package/models/operations/createchunk.d.ts.map +1 -1
  52. package/models/operations/createchunk.js +35 -33
  53. package/models/operations/createchunk.js.map +1 -1
  54. package/models/operations/createcontact.js +2 -2
  55. package/models/operations/createdataset.js +2 -2
  56. package/models/operations/createdatasetitem.d.ts +8 -8
  57. package/models/operations/createdatasetitem.d.ts.map +1 -1
  58. package/models/operations/createdatasetitem.js +10 -10
  59. package/models/operations/createdatasetitem.js.map +1 -1
  60. package/models/operations/createdatasource.js +2 -2
  61. package/models/operations/createeval.d.ts +36 -36
  62. package/models/operations/createeval.d.ts.map +1 -1
  63. package/models/operations/createeval.js +56 -56
  64. package/models/operations/createeval.js.map +1 -1
  65. package/models/operations/createfeedback.d.ts +8 -8
  66. package/models/operations/createfeedback.d.ts.map +1 -1
  67. package/models/operations/createfeedback.js +8 -8
  68. package/models/operations/createfeedback.js.map +1 -1
  69. package/models/operations/createprompt.d.ts +24 -18
  70. package/models/operations/createprompt.d.ts.map +1 -1
  71. package/models/operations/createprompt.js +20 -18
  72. package/models/operations/createprompt.js.map +1 -1
  73. package/models/operations/deploymentcreatemetric.d.ts +8 -8
  74. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  75. package/models/operations/deploymentcreatemetric.js +8 -8
  76. package/models/operations/deploymentcreatemetric.js.map +1 -1
  77. package/models/operations/deploymentgetconfig.d.ts +29 -29
  78. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  79. package/models/operations/deploymentgetconfig.js +32 -32
  80. package/models/operations/deploymentgetconfig.js.map +1 -1
  81. package/models/operations/deploymentinvoke.d.ts +7 -4
  82. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  83. package/models/operations/deploymentinvoke.js +9 -8
  84. package/models/operations/deploymentinvoke.js.map +1 -1
  85. package/models/operations/deployments.d.ts +9 -6
  86. package/models/operations/deployments.d.ts.map +1 -1
  87. package/models/operations/deployments.js +7 -6
  88. package/models/operations/deployments.js.map +1 -1
  89. package/models/operations/deploymentstream.d.ts +12 -12
  90. package/models/operations/deploymentstream.d.ts.map +1 -1
  91. package/models/operations/deploymentstream.js +12 -12
  92. package/models/operations/deploymentstream.js.map +1 -1
  93. package/models/operations/evalsageappropriate.d.ts +2 -2
  94. package/models/operations/evalsageappropriate.js +2 -2
  95. package/models/operations/evalsfactcheckingknowledgebase.d.ts +2 -2
  96. package/models/operations/evalsfactcheckingknowledgebase.js +2 -2
  97. package/models/operations/evalsgrammar.d.ts +2 -2
  98. package/models/operations/evalsgrammar.js +2 -2
  99. package/models/operations/evalslocalization.d.ts +2 -2
  100. package/models/operations/evalslocalization.js +2 -2
  101. package/models/operations/evalspii.d.ts +2 -2
  102. package/models/operations/evalspii.js +2 -2
  103. package/models/operations/evalsragascoherence.d.ts +2 -2
  104. package/models/operations/evalsragascoherence.js +2 -2
  105. package/models/operations/evalsragasconciseness.d.ts +2 -2
  106. package/models/operations/evalsragasconciseness.js +2 -2
  107. package/models/operations/evalsragascontextprecision.d.ts +2 -2
  108. package/models/operations/evalsragascontextprecision.js +2 -2
  109. package/models/operations/evalsragascorrectness.d.ts +2 -2
  110. package/models/operations/evalsragascorrectness.js +2 -2
  111. package/models/operations/evalsragasfaithfulness.d.ts +2 -2
  112. package/models/operations/evalsragasfaithfulness.js +2 -2
  113. package/models/operations/evalsragasharmfulness.d.ts +2 -2
  114. package/models/operations/evalsragasharmfulness.js +2 -2
  115. package/models/operations/evalsragasmaliciousness.d.ts +2 -2
  116. package/models/operations/evalsragasmaliciousness.js +2 -2
  117. package/models/operations/evalsragasresponserelevancy.d.ts +2 -2
  118. package/models/operations/evalsragasresponserelevancy.js +2 -2
  119. package/models/operations/evalssentimentclassification.d.ts +2 -2
  120. package/models/operations/evalssentimentclassification.js +2 -2
  121. package/models/operations/evalssummarization.d.ts +2 -2
  122. package/models/operations/evalssummarization.js +2 -2
  123. package/models/operations/evalstoneofvoice.d.ts +2 -2
  124. package/models/operations/evalstoneofvoice.js +2 -2
  125. package/models/operations/evalstranslation.d.ts +2 -2
  126. package/models/operations/evalstranslation.js +2 -2
  127. package/models/operations/fileget.js +2 -2
  128. package/models/operations/filelist.js +2 -2
  129. package/models/operations/fileupload.js +2 -2
  130. package/models/operations/getallprompts.d.ts +13 -10
  131. package/models/operations/getallprompts.d.ts.map +1 -1
  132. package/models/operations/getallprompts.js +11 -10
  133. package/models/operations/getallprompts.js.map +1 -1
  134. package/models/operations/getevals.d.ts +88 -88
  135. package/models/operations/getevals.d.ts.map +1 -1
  136. package/models/operations/getevals.js +187 -182
  137. package/models/operations/getevals.js.map +1 -1
  138. package/models/operations/getoneprompt.d.ts +13 -10
  139. package/models/operations/getoneprompt.d.ts.map +1 -1
  140. package/models/operations/getoneprompt.js +11 -10
  141. package/models/operations/getoneprompt.js.map +1 -1
  142. package/models/operations/getpromptversion.d.ts +13 -10
  143. package/models/operations/getpromptversion.d.ts.map +1 -1
  144. package/models/operations/getpromptversion.js +11 -10
  145. package/models/operations/getpromptversion.js.map +1 -1
  146. package/models/operations/getv2modelslitellmmodels.d.ts +185 -0
  147. package/models/operations/getv2modelslitellmmodels.d.ts.map +1 -0
  148. package/models/operations/getv2modelslitellmmodels.js +349 -0
  149. package/models/operations/getv2modelslitellmmodels.js.map +1 -0
  150. package/models/operations/index.d.ts +2 -0
  151. package/models/operations/index.d.ts.map +1 -1
  152. package/models/operations/index.js +2 -0
  153. package/models/operations/index.js.map +1 -1
  154. package/models/operations/invokeeval.d.ts +108 -108
  155. package/models/operations/invokeeval.d.ts.map +1 -1
  156. package/models/operations/invokeeval.js +141 -144
  157. package/models/operations/invokeeval.js.map +1 -1
  158. package/models/operations/listcontacts.js +2 -2
  159. package/models/operations/listdatasetdatapoints.d.ts +4 -4
  160. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  161. package/models/operations/listdatasetdatapoints.js +6 -6
  162. package/models/operations/listdatasetdatapoints.js.map +1 -1
  163. package/models/operations/listdatasets.js +2 -2
  164. package/models/operations/listdatasources.js +2 -2
  165. package/models/operations/listpromptversions.d.ts +13 -10
  166. package/models/operations/listpromptversions.d.ts.map +1 -1
  167. package/models/operations/listpromptversions.js +11 -10
  168. package/models/operations/listpromptversions.js.map +1 -1
  169. package/models/operations/postv2modelslitellmimport.d.ts +1333 -0
  170. package/models/operations/postv2modelslitellmimport.d.ts.map +1 -0
  171. package/models/operations/postv2modelslitellmimport.js +1400 -0
  172. package/models/operations/postv2modelslitellmimport.js.map +1 -0
  173. package/models/operations/retrievecontact.js +2 -2
  174. package/models/operations/retrievedatapoint.d.ts +4 -4
  175. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  176. package/models/operations/retrievedatapoint.js +6 -6
  177. package/models/operations/retrievedatapoint.js.map +1 -1
  178. package/models/operations/retrievedataset.js +2 -2
  179. package/models/operations/retrievedatasource.js +2 -2
  180. package/models/operations/updatecontact.js +2 -2
  181. package/models/operations/updatedatapoint.d.ts +8 -8
  182. package/models/operations/updatedatapoint.d.ts.map +1 -1
  183. package/models/operations/updatedatapoint.js +10 -10
  184. package/models/operations/updatedatapoint.js.map +1 -1
  185. package/models/operations/updatedataset.js +2 -2
  186. package/models/operations/updatedatasource.js +2 -2
  187. package/models/operations/updateeval.d.ts +38 -38
  188. package/models/operations/updateeval.d.ts.map +1 -1
  189. package/models/operations/updateeval.js +60 -60
  190. package/models/operations/updateeval.js.map +1 -1
  191. package/models/operations/updateprompt.d.ts +33 -86
  192. package/models/operations/updateprompt.d.ts.map +1 -1
  193. package/models/operations/updateprompt.js +41 -64
  194. package/models/operations/updateprompt.js.map +1 -1
  195. package/package.json +1 -1
  196. package/sdk/knowledge.d.ts +1 -1
  197. package/sdk/knowledge.d.ts.map +1 -1
  198. package/sdk/sdk.d.ts +16 -1
  199. package/sdk/sdk.d.ts.map +1 -1
  200. package/sdk/sdk.js +21 -0
  201. package/sdk/sdk.js.map +1 -1
  202. package/src/funcs/filesCreate.ts +11 -4
  203. package/src/funcs/getV2ModelsLitellmModels.ts +143 -0
  204. package/src/funcs/knowledgeCreateChunks.ts +4 -4
  205. package/src/funcs/postV2ModelsLitellmImport.ts +167 -0
  206. package/src/lib/config.ts +3 -3
  207. package/src/lib/files.ts +42 -0
  208. package/src/lib/security.ts +2 -2
  209. package/src/mcp-server/mcp-server.ts +1 -1
  210. package/src/mcp-server/server.ts +5 -1
  211. package/src/mcp-server/tools/getV2ModelsLitellmModels.ts +30 -0
  212. package/src/mcp-server/tools/postV2ModelsLitellmImport.ts +38 -0
  213. package/src/models/components/deployments.ts +16 -16
  214. package/src/models/operations/createchunk.ts +54 -44
  215. package/src/models/operations/createcontact.ts +2 -2
  216. package/src/models/operations/createdataset.ts +2 -2
  217. package/src/models/operations/createdatasetitem.ts +18 -18
  218. package/src/models/operations/createdatasource.ts +2 -2
  219. package/src/models/operations/createeval.ts +121 -121
  220. package/src/models/operations/createfeedback.ts +16 -16
  221. package/src/models/operations/createprompt.ts +41 -39
  222. package/src/models/operations/deploymentcreatemetric.ts +22 -18
  223. package/src/models/operations/deploymentgetconfig.ts +60 -54
  224. package/src/models/operations/deploymentinvoke.ts +14 -13
  225. package/src/models/operations/deployments.ts +15 -14
  226. package/src/models/operations/deploymentstream.ts +26 -26
  227. package/src/models/operations/evalsageappropriate.ts +4 -4
  228. package/src/models/operations/evalsfactcheckingknowledgebase.ts +4 -4
  229. package/src/models/operations/evalsgrammar.ts +4 -4
  230. package/src/models/operations/evalslocalization.ts +4 -4
  231. package/src/models/operations/evalspii.ts +4 -4
  232. package/src/models/operations/evalsragascoherence.ts +4 -4
  233. package/src/models/operations/evalsragasconciseness.ts +4 -4
  234. package/src/models/operations/evalsragascontextprecision.ts +4 -4
  235. package/src/models/operations/evalsragascorrectness.ts +4 -4
  236. package/src/models/operations/evalsragasfaithfulness.ts +4 -4
  237. package/src/models/operations/evalsragasharmfulness.ts +4 -4
  238. package/src/models/operations/evalsragasmaliciousness.ts +4 -4
  239. package/src/models/operations/evalsragasresponserelevancy.ts +4 -4
  240. package/src/models/operations/evalssentimentclassification.ts +4 -4
  241. package/src/models/operations/evalssummarization.ts +4 -4
  242. package/src/models/operations/evalstoneofvoice.ts +4 -4
  243. package/src/models/operations/evalstranslation.ts +4 -4
  244. package/src/models/operations/fileget.ts +2 -2
  245. package/src/models/operations/filelist.ts +2 -2
  246. package/src/models/operations/fileupload.ts +2 -2
  247. package/src/models/operations/getallprompts.ts +23 -22
  248. package/src/models/operations/getevals.ts +339 -364
  249. package/src/models/operations/getoneprompt.ts +23 -22
  250. package/src/models/operations/getpromptversion.ts +23 -22
  251. package/src/models/operations/getv2modelslitellmmodels.ts +530 -0
  252. package/src/models/operations/index.ts +2 -0
  253. package/src/models/operations/invokeeval.ts +251 -223
  254. package/src/models/operations/listcontacts.ts +2 -2
  255. package/src/models/operations/listdatasetdatapoints.ts +16 -12
  256. package/src/models/operations/listdatasets.ts +2 -2
  257. package/src/models/operations/listdatasources.ts +2 -2
  258. package/src/models/operations/listpromptversions.ts +23 -22
  259. package/src/models/operations/postv2modelslitellmimport.ts +2408 -0
  260. package/src/models/operations/retrievecontact.ts +2 -2
  261. package/src/models/operations/retrievedatapoint.ts +10 -10
  262. package/src/models/operations/retrievedataset.ts +2 -2
  263. package/src/models/operations/retrievedatasource.ts +2 -2
  264. package/src/models/operations/updatecontact.ts +2 -2
  265. package/src/models/operations/updatedatapoint.ts +21 -19
  266. package/src/models/operations/updatedataset.ts +2 -2
  267. package/src/models/operations/updatedatasource.ts +2 -2
  268. package/src/models/operations/updateeval.ts +139 -139
  269. package/src/models/operations/updateprompt.ts +63 -106
  270. package/src/sdk/knowledge.ts +1 -1
  271. package/src/sdk/sdk.ts +37 -1
@@ -0,0 +1,1400 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Configuration2$inboundSchema = exports.PostV2ModelsLitellmImportConfigurationProvider$ = exports.PostV2ModelsLitellmImportConfigurationProvider$outboundSchema = exports.PostV2ModelsLitellmImportConfigurationProvider$inboundSchema = exports.Configuration3$ = exports.Configuration3$outboundSchema = exports.Configuration3$inboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponseProvider$ = exports.PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema = exports.Configuration4$ = exports.Configuration4$outboundSchema = exports.Configuration4$inboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$ = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema = exports.PostV2ModelsLitellmImportMetadata$ = exports.PostV2ModelsLitellmImportMetadata$outboundSchema = exports.PostV2ModelsLitellmImportMetadata$inboundSchema = exports.Region$ = exports.Region$outboundSchema = exports.Region$inboundSchema = exports.PostV2ModelsLitellmImportProvider$ = exports.PostV2ModelsLitellmImportProvider$outboundSchema = exports.PostV2ModelsLitellmImportProvider$inboundSchema = exports.PostV2ModelsLitellmImportModelType$ = exports.PostV2ModelsLitellmImportModelType$outboundSchema = exports.PostV2ModelsLitellmImportModelType$inboundSchema = exports.RequestBody$ = exports.RequestBody$outboundSchema = exports.RequestBody$inboundSchema = exports.ModelInfo$ = exports.ModelInfo$outboundSchema = exports.ModelInfo$inboundSchema = exports.LitellmParams$ = exports.LitellmParams$outboundSchema = exports.LitellmParams$inboundSchema = exports.ParameterType = exports.Parameter = exports.ParametersParameterType = exports.ParametersParameter = exports.PostV2ModelsLitellmImportParametersParameterType = exports.PostV2ModelsLitellmImportParametersParameter = exports.ConfigurationProvider = exports.PostV2ModelsLitellmImportConfigurationProvider = exports.PostV2ModelsLitellmImportConfigurationResponseProvider = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider = exports.Region = exports.PostV2ModelsLitellmImportProvider = exports.PostV2ModelsLitellmImportModelType = void 0;
40
+ exports.Parameters1$ = exports.Parameters1$outboundSchema = exports.Parameters1$inboundSchema = exports.Config$ = exports.Config$outboundSchema = exports.Config$inboundSchema = exports.ParameterType$ = exports.ParameterType$outboundSchema = exports.ParameterType$inboundSchema = exports.Parameter$ = exports.Parameter$outboundSchema = exports.Parameter$inboundSchema = exports.Parameters2$ = exports.Parameters2$outboundSchema = exports.Parameters2$inboundSchema = exports.ParametersConfig$ = exports.ParametersConfig$outboundSchema = exports.ParametersConfig$inboundSchema = exports.ParametersParameterType$ = exports.ParametersParameterType$outboundSchema = exports.ParametersParameterType$inboundSchema = exports.ParametersParameter$ = exports.ParametersParameter$outboundSchema = exports.ParametersParameter$inboundSchema = exports.Parameters3$ = exports.Parameters3$outboundSchema = exports.Parameters3$inboundSchema = exports.PostV2ModelsLitellmImportParametersConfig$ = exports.PostV2ModelsLitellmImportParametersConfig$outboundSchema = exports.PostV2ModelsLitellmImportParametersConfig$inboundSchema = exports.Options$ = exports.Options$outboundSchema = exports.Options$inboundSchema = exports.PostV2ModelsLitellmImportParametersParameterType$ = exports.PostV2ModelsLitellmImportParametersParameterType$outboundSchema = exports.PostV2ModelsLitellmImportParametersParameterType$inboundSchema = exports.PostV2ModelsLitellmImportParametersParameter$ = exports.PostV2ModelsLitellmImportParametersParameter$outboundSchema = exports.PostV2ModelsLitellmImportParametersParameter$inboundSchema = exports.Configuration$ = exports.Configuration$outboundSchema = exports.Configuration$inboundSchema = exports.Configuration1$ = exports.Configuration1$outboundSchema = exports.Configuration1$inboundSchema = exports.ConfigurationProvider$ = exports.ConfigurationProvider$outboundSchema = exports.ConfigurationProvider$inboundSchema = exports.Configuration2$ = exports.Configuration2$outboundSchema = void 0;
41
+ exports.PostV2ModelsLitellmImportResponseBody$ = exports.PostV2ModelsLitellmImportResponseBody$outboundSchema = exports.PostV2ModelsLitellmImportResponseBody$inboundSchema = exports.ParametersT$ = exports.ParametersT$outboundSchema = exports.ParametersT$inboundSchema = void 0;
42
+ exports.litellmParamsToJSON = litellmParamsToJSON;
43
+ exports.litellmParamsFromJSON = litellmParamsFromJSON;
44
+ exports.modelInfoToJSON = modelInfoToJSON;
45
+ exports.modelInfoFromJSON = modelInfoFromJSON;
46
+ exports.requestBodyToJSON = requestBodyToJSON;
47
+ exports.requestBodyFromJSON = requestBodyFromJSON;
48
+ exports.postV2ModelsLitellmImportMetadataToJSON = postV2ModelsLitellmImportMetadataToJSON;
49
+ exports.postV2ModelsLitellmImportMetadataFromJSON = postV2ModelsLitellmImportMetadataFromJSON;
50
+ exports.configuration4ToJSON = configuration4ToJSON;
51
+ exports.configuration4FromJSON = configuration4FromJSON;
52
+ exports.configuration3ToJSON = configuration3ToJSON;
53
+ exports.configuration3FromJSON = configuration3FromJSON;
54
+ exports.configuration2ToJSON = configuration2ToJSON;
55
+ exports.configuration2FromJSON = configuration2FromJSON;
56
+ exports.configuration1ToJSON = configuration1ToJSON;
57
+ exports.configuration1FromJSON = configuration1FromJSON;
58
+ exports.configurationToJSON = configurationToJSON;
59
+ exports.configurationFromJSON = configurationFromJSON;
60
+ exports.optionsToJSON = optionsToJSON;
61
+ exports.optionsFromJSON = optionsFromJSON;
62
+ exports.postV2ModelsLitellmImportParametersConfigToJSON = postV2ModelsLitellmImportParametersConfigToJSON;
63
+ exports.postV2ModelsLitellmImportParametersConfigFromJSON = postV2ModelsLitellmImportParametersConfigFromJSON;
64
+ exports.parameters3ToJSON = parameters3ToJSON;
65
+ exports.parameters3FromJSON = parameters3FromJSON;
66
+ exports.parametersConfigToJSON = parametersConfigToJSON;
67
+ exports.parametersConfigFromJSON = parametersConfigFromJSON;
68
+ exports.parameters2ToJSON = parameters2ToJSON;
69
+ exports.parameters2FromJSON = parameters2FromJSON;
70
+ exports.configToJSON = configToJSON;
71
+ exports.configFromJSON = configFromJSON;
72
+ exports.parameters1ToJSON = parameters1ToJSON;
73
+ exports.parameters1FromJSON = parameters1FromJSON;
74
+ exports.parametersToJSON = parametersToJSON;
75
+ exports.parametersFromJSON = parametersFromJSON;
76
+ exports.postV2ModelsLitellmImportResponseBodyToJSON = postV2ModelsLitellmImportResponseBodyToJSON;
77
+ exports.postV2ModelsLitellmImportResponseBodyFromJSON = postV2ModelsLitellmImportResponseBodyFromJSON;
78
+ const z = __importStar(require("zod"));
79
+ const primitives_js_1 = require("../../lib/primitives.js");
80
+ const schemas_js_1 = require("../../lib/schemas.js");
81
+ /**
82
+ * The modality of the model
83
+ */
84
+ exports.PostV2ModelsLitellmImportModelType = {
85
+ Chat: "chat",
86
+ Completion: "completion",
87
+ Embedding: "embedding",
88
+ Vision: "vision",
89
+ Image: "image",
90
+ Tts: "tts",
91
+ Stt: "stt",
92
+ Rerank: "rerank",
93
+ Moderations: "moderations",
94
+ };
95
+ /**
96
+ * The provider of the AI service
97
+ */
98
+ exports.PostV2ModelsLitellmImportProvider = {
99
+ Cohere: "cohere",
100
+ Openai: "openai",
101
+ Anthropic: "anthropic",
102
+ Huggingface: "huggingface",
103
+ Replicate: "replicate",
104
+ Google: "google",
105
+ GoogleAi: "google-ai",
106
+ Azure: "azure",
107
+ Aws: "aws",
108
+ Anyscale: "anyscale",
109
+ Perplexity: "perplexity",
110
+ Groq: "groq",
111
+ Fal: "fal",
112
+ Leonardoai: "leonardoai",
113
+ Nvidia: "nvidia",
114
+ Jina: "jina",
115
+ Togetherai: "togetherai",
116
+ Elevenlabs: "elevenlabs",
117
+ Litellm: "litellm",
118
+ };
119
+ exports.Region = {
120
+ Us: "us",
121
+ Europe: "europe",
122
+ Rest: "rest",
123
+ };
124
+ exports.PostV2ModelsLitellmImportConfigurationResponse200Provider = {
125
+ Nvidia: "nvidia",
126
+ };
127
+ exports.PostV2ModelsLitellmImportConfigurationResponseProvider = {
128
+ Aws: "aws",
129
+ };
130
+ exports.PostV2ModelsLitellmImportConfigurationProvider = {
131
+ Google: "google",
132
+ };
133
+ exports.ConfigurationProvider = {
134
+ Azure: "azure",
135
+ };
136
+ /**
137
+ * Parameters value
138
+ */
139
+ exports.PostV2ModelsLitellmImportParametersParameter = {
140
+ TopK: "topK",
141
+ TopP: "topP",
142
+ Temperature: "temperature",
143
+ FrequencyPenalty: "frequencyPenalty",
144
+ PresencePenalty: "presencePenalty",
145
+ MaxTokens: "maxTokens",
146
+ NumImages: "numImages",
147
+ Format: "format",
148
+ Dimensions: "dimensions",
149
+ Quality: "quality",
150
+ Style: "style",
151
+ Seed: "seed",
152
+ PhotoRealVersion: "photoRealVersion",
153
+ ResponseFormat: "responseFormat",
154
+ ReasoningEffort: "reasoningEffort",
155
+ BudgetTokens: "budgetTokens",
156
+ };
157
+ exports.PostV2ModelsLitellmImportParametersParameterType = {
158
+ Select: "select",
159
+ };
160
+ /**
161
+ * Parameters value
162
+ */
163
+ exports.ParametersParameter = {
164
+ TopK: "topK",
165
+ TopP: "topP",
166
+ Temperature: "temperature",
167
+ FrequencyPenalty: "frequencyPenalty",
168
+ PresencePenalty: "presencePenalty",
169
+ MaxTokens: "maxTokens",
170
+ NumImages: "numImages",
171
+ Format: "format",
172
+ Dimensions: "dimensions",
173
+ Quality: "quality",
174
+ Style: "style",
175
+ Seed: "seed",
176
+ PhotoRealVersion: "photoRealVersion",
177
+ ResponseFormat: "responseFormat",
178
+ ReasoningEffort: "reasoningEffort",
179
+ BudgetTokens: "budgetTokens",
180
+ };
181
+ exports.ParametersParameterType = {
182
+ Switch: "switch",
183
+ };
184
+ /**
185
+ * Parameters value
186
+ */
187
+ exports.Parameter = {
188
+ TopK: "topK",
189
+ TopP: "topP",
190
+ Temperature: "temperature",
191
+ FrequencyPenalty: "frequencyPenalty",
192
+ PresencePenalty: "presencePenalty",
193
+ MaxTokens: "maxTokens",
194
+ NumImages: "numImages",
195
+ Format: "format",
196
+ Dimensions: "dimensions",
197
+ Quality: "quality",
198
+ Style: "style",
199
+ Seed: "seed",
200
+ PhotoRealVersion: "photoRealVersion",
201
+ ResponseFormat: "responseFormat",
202
+ ReasoningEffort: "reasoningEffort",
203
+ BudgetTokens: "budgetTokens",
204
+ };
205
+ exports.ParameterType = {
206
+ Slider: "slider",
207
+ };
208
+ /** @internal */
209
+ exports.LitellmParams$inboundSchema = z.object({
210
+ use_in_pass_through: z.boolean(),
211
+ use_litellm_proxy: z.boolean(),
212
+ merge_reasoning_content_in_choices: z.boolean(),
213
+ model: z.string(),
214
+ }).transform((v) => {
215
+ return (0, primitives_js_1.remap)(v, {
216
+ "use_in_pass_through": "useInPassThrough",
217
+ "use_litellm_proxy": "useLitellmProxy",
218
+ "merge_reasoning_content_in_choices": "mergeReasoningContentInChoices",
219
+ });
220
+ });
221
+ /** @internal */
222
+ exports.LitellmParams$outboundSchema = z.object({
223
+ useInPassThrough: z.boolean(),
224
+ useLitellmProxy: z.boolean(),
225
+ mergeReasoningContentInChoices: z.boolean(),
226
+ model: z.string(),
227
+ }).transform((v) => {
228
+ return (0, primitives_js_1.remap)(v, {
229
+ useInPassThrough: "use_in_pass_through",
230
+ useLitellmProxy: "use_litellm_proxy",
231
+ mergeReasoningContentInChoices: "merge_reasoning_content_in_choices",
232
+ });
233
+ });
234
+ /**
235
+ * @internal
236
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
237
+ */
238
+ var LitellmParams$;
239
+ (function (LitellmParams$) {
240
+ /** @deprecated use `LitellmParams$inboundSchema` instead. */
241
+ LitellmParams$.inboundSchema = exports.LitellmParams$inboundSchema;
242
+ /** @deprecated use `LitellmParams$outboundSchema` instead. */
243
+ LitellmParams$.outboundSchema = exports.LitellmParams$outboundSchema;
244
+ })(LitellmParams$ || (exports.LitellmParams$ = LitellmParams$ = {}));
245
+ function litellmParamsToJSON(litellmParams) {
246
+ return JSON.stringify(exports.LitellmParams$outboundSchema.parse(litellmParams));
247
+ }
248
+ function litellmParamsFromJSON(jsonString) {
249
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.LitellmParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LitellmParams' from JSON`);
250
+ }
251
+ /** @internal */
252
+ exports.ModelInfo$inboundSchema = z.object({
253
+ id: z.nullable(z.string()),
254
+ db_model: z.nullable(z.boolean()),
255
+ key: z.nullable(z.string()),
256
+ max_tokens: z.nullable(z.number()).optional(),
257
+ max_input_tokens: z.nullable(z.number()).optional(),
258
+ max_output_tokens: z.nullable(z.number()).optional(),
259
+ input_cost_per_token: z.nullable(z.number()).optional(),
260
+ cache_creation_input_token_cost: z.nullable(z.number()).optional(),
261
+ cache_read_input_token_cost: z.nullable(z.number()).optional(),
262
+ input_cost_per_character: z.nullable(z.number()).optional(),
263
+ input_cost_per_token_above_128k_tokens: z.nullable(z.number()).optional(),
264
+ input_cost_per_token_above_200k_tokens: z.nullable(z.number()).optional(),
265
+ input_cost_per_query: z.nullable(z.number()).optional(),
266
+ input_cost_per_second: z.nullable(z.number()).optional(),
267
+ input_cost_per_audio_token: z.nullable(z.number()).optional(),
268
+ input_cost_per_token_batches: z.nullable(z.number()).optional(),
269
+ output_cost_per_token_batches: z.nullable(z.number()).optional(),
270
+ output_cost_per_token: z.nullable(z.number()).optional(),
271
+ output_cost_per_audio_token: z.nullable(z.number()).optional(),
272
+ output_cost_per_character: z.nullable(z.number()).optional(),
273
+ output_cost_per_reasoning_token: z.nullable(z.number()).optional(),
274
+ output_cost_per_token_above_128k_tokens: z.nullable(z.number()).optional(),
275
+ output_cost_per_character_above_128k_tokens: z.nullable(z.number())
276
+ .optional(),
277
+ output_cost_per_token_above_200k_tokens: z.nullable(z.number()).optional(),
278
+ output_cost_per_second: z.nullable(z.number()).optional(),
279
+ output_cost_per_image: z.nullable(z.number()).optional(),
280
+ output_vector_size: z.nullable(z.number()).optional(),
281
+ litellm_provider: z.nullable(z.string()),
282
+ mode: z.nullable(z.string()),
283
+ supports_system_messages: z.nullable(z.boolean()).optional(),
284
+ supports_response_schema: z.nullable(z.boolean()).optional(),
285
+ supports_vision: z.nullable(z.boolean()).optional(),
286
+ supports_function_calling: z.nullable(z.boolean()).optional(),
287
+ supports_tool_choice: z.nullable(z.boolean()).optional(),
288
+ supports_assistant_prefill: z.nullable(z.boolean()).optional(),
289
+ supports_prompt_caching: z.nullable(z.boolean()).optional(),
290
+ supports_audio_input: z.nullable(z.boolean()).optional(),
291
+ supports_audio_output: z.nullable(z.boolean()).optional(),
292
+ supports_pdf_input: z.nullable(z.boolean()).optional(),
293
+ supports_embedding_image_input: z.nullable(z.boolean()).optional(),
294
+ supports_native_streaming: z.nullable(z.boolean()).optional(),
295
+ supports_web_search: z.nullable(z.boolean()).optional(),
296
+ supports_url_context: z.nullable(z.boolean()).optional(),
297
+ supports_reasoning: z.nullable(z.boolean()).optional(),
298
+ supports_computer_use: z.nullable(z.boolean()).optional(),
299
+ search_context_cost_per_query: z.nullable(z.number()).optional(),
300
+ tpm: z.nullable(z.number()).optional(),
301
+ rpm: z.nullable(z.number()).optional(),
302
+ supported_openai_params: z.nullable(z.array(z.string())).optional(),
303
+ }).transform((v) => {
304
+ return (0, primitives_js_1.remap)(v, {
305
+ "db_model": "dbModel",
306
+ "max_tokens": "maxTokens",
307
+ "max_input_tokens": "maxInputTokens",
308
+ "max_output_tokens": "maxOutputTokens",
309
+ "input_cost_per_token": "inputCostPerToken",
310
+ "cache_creation_input_token_cost": "cacheCreationInputTokenCost",
311
+ "cache_read_input_token_cost": "cacheReadInputTokenCost",
312
+ "input_cost_per_character": "inputCostPerCharacter",
313
+ "input_cost_per_token_above_128k_tokens": "inputCostPerTokenAbove128kTokens",
314
+ "input_cost_per_token_above_200k_tokens": "inputCostPerTokenAbove200kTokens",
315
+ "input_cost_per_query": "inputCostPerQuery",
316
+ "input_cost_per_second": "inputCostPerSecond",
317
+ "input_cost_per_audio_token": "inputCostPerAudioToken",
318
+ "input_cost_per_token_batches": "inputCostPerTokenBatches",
319
+ "output_cost_per_token_batches": "outputCostPerTokenBatches",
320
+ "output_cost_per_token": "outputCostPerToken",
321
+ "output_cost_per_audio_token": "outputCostPerAudioToken",
322
+ "output_cost_per_character": "outputCostPerCharacter",
323
+ "output_cost_per_reasoning_token": "outputCostPerReasoningToken",
324
+ "output_cost_per_token_above_128k_tokens": "outputCostPerTokenAbove128kTokens",
325
+ "output_cost_per_character_above_128k_tokens": "outputCostPerCharacterAbove128kTokens",
326
+ "output_cost_per_token_above_200k_tokens": "outputCostPerTokenAbove200kTokens",
327
+ "output_cost_per_second": "outputCostPerSecond",
328
+ "output_cost_per_image": "outputCostPerImage",
329
+ "output_vector_size": "outputVectorSize",
330
+ "litellm_provider": "litellmProvider",
331
+ "supports_system_messages": "supportsSystemMessages",
332
+ "supports_response_schema": "supportsResponseSchema",
333
+ "supports_vision": "supportsVision",
334
+ "supports_function_calling": "supportsFunctionCalling",
335
+ "supports_tool_choice": "supportsToolChoice",
336
+ "supports_assistant_prefill": "supportsAssistantPrefill",
337
+ "supports_prompt_caching": "supportsPromptCaching",
338
+ "supports_audio_input": "supportsAudioInput",
339
+ "supports_audio_output": "supportsAudioOutput",
340
+ "supports_pdf_input": "supportsPdfInput",
341
+ "supports_embedding_image_input": "supportsEmbeddingImageInput",
342
+ "supports_native_streaming": "supportsNativeStreaming",
343
+ "supports_web_search": "supportsWebSearch",
344
+ "supports_url_context": "supportsUrlContext",
345
+ "supports_reasoning": "supportsReasoning",
346
+ "supports_computer_use": "supportsComputerUse",
347
+ "search_context_cost_per_query": "searchContextCostPerQuery",
348
+ "supported_openai_params": "supportedOpenaiParams",
349
+ });
350
+ });
351
+ /** @internal */
352
+ exports.ModelInfo$outboundSchema = z.object({
353
+ id: z.nullable(z.string()),
354
+ dbModel: z.nullable(z.boolean()),
355
+ key: z.nullable(z.string()),
356
+ maxTokens: z.nullable(z.number()).optional(),
357
+ maxInputTokens: z.nullable(z.number()).optional(),
358
+ maxOutputTokens: z.nullable(z.number()).optional(),
359
+ inputCostPerToken: z.nullable(z.number()).optional(),
360
+ cacheCreationInputTokenCost: z.nullable(z.number()).optional(),
361
+ cacheReadInputTokenCost: z.nullable(z.number()).optional(),
362
+ inputCostPerCharacter: z.nullable(z.number()).optional(),
363
+ inputCostPerTokenAbove128kTokens: z.nullable(z.number()).optional(),
364
+ inputCostPerTokenAbove200kTokens: z.nullable(z.number()).optional(),
365
+ inputCostPerQuery: z.nullable(z.number()).optional(),
366
+ inputCostPerSecond: z.nullable(z.number()).optional(),
367
+ inputCostPerAudioToken: z.nullable(z.number()).optional(),
368
+ inputCostPerTokenBatches: z.nullable(z.number()).optional(),
369
+ outputCostPerTokenBatches: z.nullable(z.number()).optional(),
370
+ outputCostPerToken: z.nullable(z.number()).optional(),
371
+ outputCostPerAudioToken: z.nullable(z.number()).optional(),
372
+ outputCostPerCharacter: z.nullable(z.number()).optional(),
373
+ outputCostPerReasoningToken: z.nullable(z.number()).optional(),
374
+ outputCostPerTokenAbove128kTokens: z.nullable(z.number()).optional(),
375
+ outputCostPerCharacterAbove128kTokens: z.nullable(z.number()).optional(),
376
+ outputCostPerTokenAbove200kTokens: z.nullable(z.number()).optional(),
377
+ outputCostPerSecond: z.nullable(z.number()).optional(),
378
+ outputCostPerImage: z.nullable(z.number()).optional(),
379
+ outputVectorSize: z.nullable(z.number()).optional(),
380
+ litellmProvider: z.nullable(z.string()),
381
+ mode: z.nullable(z.string()),
382
+ supportsSystemMessages: z.nullable(z.boolean()).optional(),
383
+ supportsResponseSchema: z.nullable(z.boolean()).optional(),
384
+ supportsVision: z.nullable(z.boolean()).optional(),
385
+ supportsFunctionCalling: z.nullable(z.boolean()).optional(),
386
+ supportsToolChoice: z.nullable(z.boolean()).optional(),
387
+ supportsAssistantPrefill: z.nullable(z.boolean()).optional(),
388
+ supportsPromptCaching: z.nullable(z.boolean()).optional(),
389
+ supportsAudioInput: z.nullable(z.boolean()).optional(),
390
+ supportsAudioOutput: z.nullable(z.boolean()).optional(),
391
+ supportsPdfInput: z.nullable(z.boolean()).optional(),
392
+ supportsEmbeddingImageInput: z.nullable(z.boolean()).optional(),
393
+ supportsNativeStreaming: z.nullable(z.boolean()).optional(),
394
+ supportsWebSearch: z.nullable(z.boolean()).optional(),
395
+ supportsUrlContext: z.nullable(z.boolean()).optional(),
396
+ supportsReasoning: z.nullable(z.boolean()).optional(),
397
+ supportsComputerUse: z.nullable(z.boolean()).optional(),
398
+ searchContextCostPerQuery: z.nullable(z.number()).optional(),
399
+ tpm: z.nullable(z.number()).optional(),
400
+ rpm: z.nullable(z.number()).optional(),
401
+ supportedOpenaiParams: z.nullable(z.array(z.string())).optional(),
402
+ }).transform((v) => {
403
+ return (0, primitives_js_1.remap)(v, {
404
+ dbModel: "db_model",
405
+ maxTokens: "max_tokens",
406
+ maxInputTokens: "max_input_tokens",
407
+ maxOutputTokens: "max_output_tokens",
408
+ inputCostPerToken: "input_cost_per_token",
409
+ cacheCreationInputTokenCost: "cache_creation_input_token_cost",
410
+ cacheReadInputTokenCost: "cache_read_input_token_cost",
411
+ inputCostPerCharacter: "input_cost_per_character",
412
+ inputCostPerTokenAbove128kTokens: "input_cost_per_token_above_128k_tokens",
413
+ inputCostPerTokenAbove200kTokens: "input_cost_per_token_above_200k_tokens",
414
+ inputCostPerQuery: "input_cost_per_query",
415
+ inputCostPerSecond: "input_cost_per_second",
416
+ inputCostPerAudioToken: "input_cost_per_audio_token",
417
+ inputCostPerTokenBatches: "input_cost_per_token_batches",
418
+ outputCostPerTokenBatches: "output_cost_per_token_batches",
419
+ outputCostPerToken: "output_cost_per_token",
420
+ outputCostPerAudioToken: "output_cost_per_audio_token",
421
+ outputCostPerCharacter: "output_cost_per_character",
422
+ outputCostPerReasoningToken: "output_cost_per_reasoning_token",
423
+ outputCostPerTokenAbove128kTokens: "output_cost_per_token_above_128k_tokens",
424
+ outputCostPerCharacterAbove128kTokens: "output_cost_per_character_above_128k_tokens",
425
+ outputCostPerTokenAbove200kTokens: "output_cost_per_token_above_200k_tokens",
426
+ outputCostPerSecond: "output_cost_per_second",
427
+ outputCostPerImage: "output_cost_per_image",
428
+ outputVectorSize: "output_vector_size",
429
+ litellmProvider: "litellm_provider",
430
+ supportsSystemMessages: "supports_system_messages",
431
+ supportsResponseSchema: "supports_response_schema",
432
+ supportsVision: "supports_vision",
433
+ supportsFunctionCalling: "supports_function_calling",
434
+ supportsToolChoice: "supports_tool_choice",
435
+ supportsAssistantPrefill: "supports_assistant_prefill",
436
+ supportsPromptCaching: "supports_prompt_caching",
437
+ supportsAudioInput: "supports_audio_input",
438
+ supportsAudioOutput: "supports_audio_output",
439
+ supportsPdfInput: "supports_pdf_input",
440
+ supportsEmbeddingImageInput: "supports_embedding_image_input",
441
+ supportsNativeStreaming: "supports_native_streaming",
442
+ supportsWebSearch: "supports_web_search",
443
+ supportsUrlContext: "supports_url_context",
444
+ supportsReasoning: "supports_reasoning",
445
+ supportsComputerUse: "supports_computer_use",
446
+ searchContextCostPerQuery: "search_context_cost_per_query",
447
+ supportedOpenaiParams: "supported_openai_params",
448
+ });
449
+ });
450
+ /**
451
+ * @internal
452
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
453
+ */
454
+ var ModelInfo$;
455
+ (function (ModelInfo$) {
456
+ /** @deprecated use `ModelInfo$inboundSchema` instead. */
457
+ ModelInfo$.inboundSchema = exports.ModelInfo$inboundSchema;
458
+ /** @deprecated use `ModelInfo$outboundSchema` instead. */
459
+ ModelInfo$.outboundSchema = exports.ModelInfo$outboundSchema;
460
+ })(ModelInfo$ || (exports.ModelInfo$ = ModelInfo$ = {}));
461
+ function modelInfoToJSON(modelInfo) {
462
+ return JSON.stringify(exports.ModelInfo$outboundSchema.parse(modelInfo));
463
+ }
464
+ function modelInfoFromJSON(jsonString) {
465
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelInfo$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelInfo' from JSON`);
466
+ }
467
+ /** @internal */
468
+ exports.RequestBody$inboundSchema = z.object({
469
+ model_name: z.string(),
470
+ litellm_params: z.lazy(() => exports.LitellmParams$inboundSchema),
471
+ model_info: z.lazy(() => exports.ModelInfo$inboundSchema),
472
+ }).transform((v) => {
473
+ return (0, primitives_js_1.remap)(v, {
474
+ "model_name": "modelName",
475
+ "litellm_params": "litellmParams",
476
+ "model_info": "modelInfo",
477
+ });
478
+ });
479
+ /** @internal */
480
+ exports.RequestBody$outboundSchema = z.object({
481
+ modelName: z.string(),
482
+ litellmParams: z.lazy(() => exports.LitellmParams$outboundSchema),
483
+ modelInfo: z.lazy(() => exports.ModelInfo$outboundSchema),
484
+ }).transform((v) => {
485
+ return (0, primitives_js_1.remap)(v, {
486
+ modelName: "model_name",
487
+ litellmParams: "litellm_params",
488
+ modelInfo: "model_info",
489
+ });
490
+ });
491
+ /**
492
+ * @internal
493
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
494
+ */
495
+ var RequestBody$;
496
+ (function (RequestBody$) {
497
+ /** @deprecated use `RequestBody$inboundSchema` instead. */
498
+ RequestBody$.inboundSchema = exports.RequestBody$inboundSchema;
499
+ /** @deprecated use `RequestBody$outboundSchema` instead. */
500
+ RequestBody$.outboundSchema = exports.RequestBody$outboundSchema;
501
+ })(RequestBody$ || (exports.RequestBody$ = RequestBody$ = {}));
502
+ function requestBodyToJSON(requestBody) {
503
+ return JSON.stringify(exports.RequestBody$outboundSchema.parse(requestBody));
504
+ }
505
+ function requestBodyFromJSON(jsonString) {
506
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBody' from JSON`);
507
+ }
508
+ /** @internal */
509
+ exports.PostV2ModelsLitellmImportModelType$inboundSchema = z.nativeEnum(exports.PostV2ModelsLitellmImportModelType);
510
+ /** @internal */
511
+ exports.PostV2ModelsLitellmImportModelType$outboundSchema = exports.PostV2ModelsLitellmImportModelType$inboundSchema;
512
+ /**
513
+ * @internal
514
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
515
+ */
516
+ var PostV2ModelsLitellmImportModelType$;
517
+ (function (PostV2ModelsLitellmImportModelType$) {
518
+ /** @deprecated use `PostV2ModelsLitellmImportModelType$inboundSchema` instead. */
519
+ PostV2ModelsLitellmImportModelType$.inboundSchema = exports.PostV2ModelsLitellmImportModelType$inboundSchema;
520
+ /** @deprecated use `PostV2ModelsLitellmImportModelType$outboundSchema` instead. */
521
+ PostV2ModelsLitellmImportModelType$.outboundSchema = exports.PostV2ModelsLitellmImportModelType$outboundSchema;
522
+ })(PostV2ModelsLitellmImportModelType$ || (exports.PostV2ModelsLitellmImportModelType$ = PostV2ModelsLitellmImportModelType$ = {}));
523
+ /** @internal */
524
+ exports.PostV2ModelsLitellmImportProvider$inboundSchema = z.nativeEnum(exports.PostV2ModelsLitellmImportProvider);
525
+ /** @internal */
526
+ exports.PostV2ModelsLitellmImportProvider$outboundSchema = exports.PostV2ModelsLitellmImportProvider$inboundSchema;
527
+ /**
528
+ * @internal
529
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
530
+ */
531
+ var PostV2ModelsLitellmImportProvider$;
532
+ (function (PostV2ModelsLitellmImportProvider$) {
533
+ /** @deprecated use `PostV2ModelsLitellmImportProvider$inboundSchema` instead. */
534
+ PostV2ModelsLitellmImportProvider$.inboundSchema = exports.PostV2ModelsLitellmImportProvider$inboundSchema;
535
+ /** @deprecated use `PostV2ModelsLitellmImportProvider$outboundSchema` instead. */
536
+ PostV2ModelsLitellmImportProvider$.outboundSchema = exports.PostV2ModelsLitellmImportProvider$outboundSchema;
537
+ })(PostV2ModelsLitellmImportProvider$ || (exports.PostV2ModelsLitellmImportProvider$ = PostV2ModelsLitellmImportProvider$ = {}));
538
+ /** @internal */
539
+ exports.Region$inboundSchema = z
540
+ .nativeEnum(exports.Region);
541
+ /** @internal */
542
+ exports.Region$outboundSchema = exports.Region$inboundSchema;
543
+ /**
544
+ * @internal
545
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
546
+ */
547
+ var Region$;
548
+ (function (Region$) {
549
+ /** @deprecated use `Region$inboundSchema` instead. */
550
+ Region$.inboundSchema = exports.Region$inboundSchema;
551
+ /** @deprecated use `Region$outboundSchema` instead. */
552
+ Region$.outboundSchema = exports.Region$outboundSchema;
553
+ })(Region$ || (exports.Region$ = Region$ = {}));
554
+ /** @internal */
555
+ exports.PostV2ModelsLitellmImportMetadata$inboundSchema = z.object({
556
+ context_window: z.number().optional(),
557
+ is_private: z.boolean(),
558
+ region: exports.Region$inboundSchema,
559
+ has_functions: z.boolean().optional(),
560
+ strict_tool_supported: z.boolean().optional(),
561
+ json_mode_response_format_supported: z.boolean().optional(),
562
+ json_schema_response_format_supported: z.boolean().optional(),
563
+ support_system_message: z.boolean().optional(),
564
+ streaming_not_supported: z.boolean().optional(),
565
+ db_match: z.boolean().default(false),
566
+ image_token_cost: z.number().optional(),
567
+ }).transform((v) => {
568
+ return (0, primitives_js_1.remap)(v, {
569
+ "context_window": "contextWindow",
570
+ "is_private": "isPrivate",
571
+ "has_functions": "hasFunctions",
572
+ "strict_tool_supported": "strictToolSupported",
573
+ "json_mode_response_format_supported": "jsonModeResponseFormatSupported",
574
+ "json_schema_response_format_supported": "jsonSchemaResponseFormatSupported",
575
+ "support_system_message": "supportSystemMessage",
576
+ "streaming_not_supported": "streamingNotSupported",
577
+ "db_match": "dbMatch",
578
+ "image_token_cost": "imageTokenCost",
579
+ });
580
+ });
581
+ /** @internal */
582
+ exports.PostV2ModelsLitellmImportMetadata$outboundSchema = z.object({
583
+ contextWindow: z.number().optional(),
584
+ isPrivate: z.boolean(),
585
+ region: exports.Region$outboundSchema,
586
+ hasFunctions: z.boolean().optional(),
587
+ strictToolSupported: z.boolean().optional(),
588
+ jsonModeResponseFormatSupported: z.boolean().optional(),
589
+ jsonSchemaResponseFormatSupported: z.boolean().optional(),
590
+ supportSystemMessage: z.boolean().optional(),
591
+ streamingNotSupported: z.boolean().optional(),
592
+ dbMatch: z.boolean().default(false),
593
+ imageTokenCost: z.number().optional(),
594
+ }).transform((v) => {
595
+ return (0, primitives_js_1.remap)(v, {
596
+ contextWindow: "context_window",
597
+ isPrivate: "is_private",
598
+ hasFunctions: "has_functions",
599
+ strictToolSupported: "strict_tool_supported",
600
+ jsonModeResponseFormatSupported: "json_mode_response_format_supported",
601
+ jsonSchemaResponseFormatSupported: "json_schema_response_format_supported",
602
+ supportSystemMessage: "support_system_message",
603
+ streamingNotSupported: "streaming_not_supported",
604
+ dbMatch: "db_match",
605
+ imageTokenCost: "image_token_cost",
606
+ });
607
+ });
608
+ /**
609
+ * @internal
610
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
611
+ */
612
+ var PostV2ModelsLitellmImportMetadata$;
613
+ (function (PostV2ModelsLitellmImportMetadata$) {
614
+ /** @deprecated use `PostV2ModelsLitellmImportMetadata$inboundSchema` instead. */
615
+ PostV2ModelsLitellmImportMetadata$.inboundSchema = exports.PostV2ModelsLitellmImportMetadata$inboundSchema;
616
+ /** @deprecated use `PostV2ModelsLitellmImportMetadata$outboundSchema` instead. */
617
+ PostV2ModelsLitellmImportMetadata$.outboundSchema = exports.PostV2ModelsLitellmImportMetadata$outboundSchema;
618
+ })(PostV2ModelsLitellmImportMetadata$ || (exports.PostV2ModelsLitellmImportMetadata$ = PostV2ModelsLitellmImportMetadata$ = {}));
619
+ function postV2ModelsLitellmImportMetadataToJSON(postV2ModelsLitellmImportMetadata) {
620
+ return JSON.stringify(exports.PostV2ModelsLitellmImportMetadata$outboundSchema.parse(postV2ModelsLitellmImportMetadata));
621
+ }
622
+ function postV2ModelsLitellmImportMetadataFromJSON(jsonString) {
623
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ModelsLitellmImportMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ModelsLitellmImportMetadata' from JSON`);
624
+ }
625
+ /** @internal */
626
+ exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema = z.nativeEnum(exports.PostV2ModelsLitellmImportConfigurationResponse200Provider);
627
+ /** @internal */
628
+ exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema;
629
+ /**
630
+ * @internal
631
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
632
+ */
633
+ var PostV2ModelsLitellmImportConfigurationResponse200Provider$;
634
+ (function (PostV2ModelsLitellmImportConfigurationResponse200Provider$) {
635
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema` instead. */
636
+ PostV2ModelsLitellmImportConfigurationResponse200Provider$.inboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema;
637
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema` instead. */
638
+ PostV2ModelsLitellmImportConfigurationResponse200Provider$.outboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema;
639
+ })(PostV2ModelsLitellmImportConfigurationResponse200Provider$ || (exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$ = PostV2ModelsLitellmImportConfigurationResponse200Provider$ = {}));
640
+ /** @internal */
641
+ exports.Configuration4$inboundSchema = z.object({
642
+ provider: exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema,
643
+ host_url: z.string(),
644
+ }).transform((v) => {
645
+ return (0, primitives_js_1.remap)(v, {
646
+ "host_url": "hostUrl",
647
+ });
648
+ });
649
+ /** @internal */
650
+ exports.Configuration4$outboundSchema = z.object({
651
+ provider: exports.PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema,
652
+ hostUrl: z.string(),
653
+ }).transform((v) => {
654
+ return (0, primitives_js_1.remap)(v, {
655
+ hostUrl: "host_url",
656
+ });
657
+ });
658
+ /**
659
+ * @internal
660
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
661
+ */
662
+ var Configuration4$;
663
+ (function (Configuration4$) {
664
+ /** @deprecated use `Configuration4$inboundSchema` instead. */
665
+ Configuration4$.inboundSchema = exports.Configuration4$inboundSchema;
666
+ /** @deprecated use `Configuration4$outboundSchema` instead. */
667
+ Configuration4$.outboundSchema = exports.Configuration4$outboundSchema;
668
+ })(Configuration4$ || (exports.Configuration4$ = Configuration4$ = {}));
669
+ function configuration4ToJSON(configuration4) {
670
+ return JSON.stringify(exports.Configuration4$outboundSchema.parse(configuration4));
671
+ }
672
+ function configuration4FromJSON(jsonString) {
673
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Configuration4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Configuration4' from JSON`);
674
+ }
675
+ /** @internal */
676
+ exports.PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema = z.nativeEnum(exports.PostV2ModelsLitellmImportConfigurationResponseProvider);
677
+ /** @internal */
678
+ exports.PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema;
679
+ /**
680
+ * @internal
681
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
682
+ */
683
+ var PostV2ModelsLitellmImportConfigurationResponseProvider$;
684
+ (function (PostV2ModelsLitellmImportConfigurationResponseProvider$) {
685
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema` instead. */
686
+ PostV2ModelsLitellmImportConfigurationResponseProvider$.inboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema;
687
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema` instead. */
688
+ PostV2ModelsLitellmImportConfigurationResponseProvider$.outboundSchema = exports.PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema;
689
+ })(PostV2ModelsLitellmImportConfigurationResponseProvider$ || (exports.PostV2ModelsLitellmImportConfigurationResponseProvider$ = PostV2ModelsLitellmImportConfigurationResponseProvider$ = {}));
690
+ /** @internal */
691
+ exports.Configuration3$inboundSchema = z.object({
692
+ provider: exports.PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema,
693
+ region: z.string(),
694
+ });
695
+ /** @internal */
696
+ exports.Configuration3$outboundSchema = z.object({
697
+ provider: exports.PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema,
698
+ region: z.string(),
699
+ });
700
+ /**
701
+ * @internal
702
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
703
+ */
704
+ var Configuration3$;
705
+ (function (Configuration3$) {
706
+ /** @deprecated use `Configuration3$inboundSchema` instead. */
707
+ Configuration3$.inboundSchema = exports.Configuration3$inboundSchema;
708
+ /** @deprecated use `Configuration3$outboundSchema` instead. */
709
+ Configuration3$.outboundSchema = exports.Configuration3$outboundSchema;
710
+ })(Configuration3$ || (exports.Configuration3$ = Configuration3$ = {}));
711
+ function configuration3ToJSON(configuration3) {
712
+ return JSON.stringify(exports.Configuration3$outboundSchema.parse(configuration3));
713
+ }
714
+ function configuration3FromJSON(jsonString) {
715
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Configuration3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Configuration3' from JSON`);
716
+ }
717
+ /** @internal */
718
+ exports.PostV2ModelsLitellmImportConfigurationProvider$inboundSchema = z
719
+ .nativeEnum(exports.PostV2ModelsLitellmImportConfigurationProvider);
720
+ /** @internal */
721
+ exports.PostV2ModelsLitellmImportConfigurationProvider$outboundSchema = exports.PostV2ModelsLitellmImportConfigurationProvider$inboundSchema;
722
+ /**
723
+ * @internal
724
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
725
+ */
726
+ var PostV2ModelsLitellmImportConfigurationProvider$;
727
+ (function (PostV2ModelsLitellmImportConfigurationProvider$) {
728
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationProvider$inboundSchema` instead. */
729
+ PostV2ModelsLitellmImportConfigurationProvider$.inboundSchema = exports.PostV2ModelsLitellmImportConfigurationProvider$inboundSchema;
730
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationProvider$outboundSchema` instead. */
731
+ PostV2ModelsLitellmImportConfigurationProvider$.outboundSchema = exports.PostV2ModelsLitellmImportConfigurationProvider$outboundSchema;
732
+ })(PostV2ModelsLitellmImportConfigurationProvider$ || (exports.PostV2ModelsLitellmImportConfigurationProvider$ = PostV2ModelsLitellmImportConfigurationProvider$ = {}));
733
+ /** @internal */
734
+ exports.Configuration2$inboundSchema = z.object({
735
+ provider: exports.PostV2ModelsLitellmImportConfigurationProvider$inboundSchema,
736
+ service_account: z.string(),
737
+ region: z.string(),
738
+ location: z.string(),
739
+ should_use_beta_features: z.boolean(),
740
+ project_id: z.string(),
741
+ is_openai_compatible: z.boolean().optional(),
742
+ is_tuned_model: z.boolean().optional(),
743
+ }).transform((v) => {
744
+ return (0, primitives_js_1.remap)(v, {
745
+ "service_account": "serviceAccount",
746
+ "should_use_beta_features": "shouldUseBetaFeatures",
747
+ "project_id": "projectId",
748
+ "is_openai_compatible": "isOpenaiCompatible",
749
+ "is_tuned_model": "isTunedModel",
750
+ });
751
+ });
752
+ /** @internal */
753
+ exports.Configuration2$outboundSchema = z.object({
754
+ provider: exports.PostV2ModelsLitellmImportConfigurationProvider$outboundSchema,
755
+ serviceAccount: z.string(),
756
+ region: z.string(),
757
+ location: z.string(),
758
+ shouldUseBetaFeatures: z.boolean(),
759
+ projectId: z.string(),
760
+ isOpenaiCompatible: z.boolean().optional(),
761
+ isTunedModel: z.boolean().optional(),
762
+ }).transform((v) => {
763
+ return (0, primitives_js_1.remap)(v, {
764
+ serviceAccount: "service_account",
765
+ shouldUseBetaFeatures: "should_use_beta_features",
766
+ projectId: "project_id",
767
+ isOpenaiCompatible: "is_openai_compatible",
768
+ isTunedModel: "is_tuned_model",
769
+ });
770
+ });
771
+ /**
772
+ * @internal
773
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
774
+ */
775
+ var Configuration2$;
776
+ (function (Configuration2$) {
777
+ /** @deprecated use `Configuration2$inboundSchema` instead. */
778
+ Configuration2$.inboundSchema = exports.Configuration2$inboundSchema;
779
+ /** @deprecated use `Configuration2$outboundSchema` instead. */
780
+ Configuration2$.outboundSchema = exports.Configuration2$outboundSchema;
781
+ })(Configuration2$ || (exports.Configuration2$ = Configuration2$ = {}));
782
+ function configuration2ToJSON(configuration2) {
783
+ return JSON.stringify(exports.Configuration2$outboundSchema.parse(configuration2));
784
+ }
785
+ function configuration2FromJSON(jsonString) {
786
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Configuration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Configuration2' from JSON`);
787
+ }
788
+ /** @internal */
789
+ exports.ConfigurationProvider$inboundSchema = z.nativeEnum(exports.ConfigurationProvider);
790
+ /** @internal */
791
+ exports.ConfigurationProvider$outboundSchema = exports.ConfigurationProvider$inboundSchema;
792
+ /**
793
+ * @internal
794
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
795
+ */
796
+ var ConfigurationProvider$;
797
+ (function (ConfigurationProvider$) {
798
+ /** @deprecated use `ConfigurationProvider$inboundSchema` instead. */
799
+ ConfigurationProvider$.inboundSchema = exports.ConfigurationProvider$inboundSchema;
800
+ /** @deprecated use `ConfigurationProvider$outboundSchema` instead. */
801
+ ConfigurationProvider$.outboundSchema = exports.ConfigurationProvider$outboundSchema;
802
+ })(ConfigurationProvider$ || (exports.ConfigurationProvider$ = ConfigurationProvider$ = {}));
803
+ /** @internal */
804
+ exports.Configuration1$inboundSchema = z.object({
805
+ provider: exports.ConfigurationProvider$inboundSchema,
806
+ endpoint: z.string(),
807
+ api_key: z.string(),
808
+ }).transform((v) => {
809
+ return (0, primitives_js_1.remap)(v, {
810
+ "api_key": "apiKey",
811
+ });
812
+ });
813
+ /** @internal */
814
+ exports.Configuration1$outboundSchema = z.object({
815
+ provider: exports.ConfigurationProvider$outboundSchema,
816
+ endpoint: z.string(),
817
+ apiKey: z.string(),
818
+ }).transform((v) => {
819
+ return (0, primitives_js_1.remap)(v, {
820
+ apiKey: "api_key",
821
+ });
822
+ });
823
+ /**
824
+ * @internal
825
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
826
+ */
827
+ var Configuration1$;
828
+ (function (Configuration1$) {
829
+ /** @deprecated use `Configuration1$inboundSchema` instead. */
830
+ Configuration1$.inboundSchema = exports.Configuration1$inboundSchema;
831
+ /** @deprecated use `Configuration1$outboundSchema` instead. */
832
+ Configuration1$.outboundSchema = exports.Configuration1$outboundSchema;
833
+ })(Configuration1$ || (exports.Configuration1$ = Configuration1$ = {}));
834
+ function configuration1ToJSON(configuration1) {
835
+ return JSON.stringify(exports.Configuration1$outboundSchema.parse(configuration1));
836
+ }
837
+ function configuration1FromJSON(jsonString) {
838
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Configuration1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Configuration1' from JSON`);
839
+ }
840
+ /** @internal */
841
+ exports.Configuration$inboundSchema = z.union([
842
+ z.lazy(() => exports.Configuration2$inboundSchema),
843
+ z.lazy(() => exports.Configuration1$inboundSchema),
844
+ z.lazy(() => exports.Configuration3$inboundSchema),
845
+ z.lazy(() => exports.Configuration4$inboundSchema),
846
+ ]);
847
+ /** @internal */
848
+ exports.Configuration$outboundSchema = z.union([
849
+ z.lazy(() => exports.Configuration2$outboundSchema),
850
+ z.lazy(() => exports.Configuration1$outboundSchema),
851
+ z.lazy(() => exports.Configuration3$outboundSchema),
852
+ z.lazy(() => exports.Configuration4$outboundSchema),
853
+ ]);
854
+ /**
855
+ * @internal
856
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
857
+ */
858
+ var Configuration$;
859
+ (function (Configuration$) {
860
+ /** @deprecated use `Configuration$inboundSchema` instead. */
861
+ Configuration$.inboundSchema = exports.Configuration$inboundSchema;
862
+ /** @deprecated use `Configuration$outboundSchema` instead. */
863
+ Configuration$.outboundSchema = exports.Configuration$outboundSchema;
864
+ })(Configuration$ || (exports.Configuration$ = Configuration$ = {}));
865
+ function configurationToJSON(configuration) {
866
+ return JSON.stringify(exports.Configuration$outboundSchema.parse(configuration));
867
+ }
868
+ function configurationFromJSON(jsonString) {
869
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Configuration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Configuration' from JSON`);
870
+ }
871
+ /** @internal */
872
+ exports.PostV2ModelsLitellmImportParametersParameter$inboundSchema = z
873
+ .nativeEnum(exports.PostV2ModelsLitellmImportParametersParameter);
874
+ /** @internal */
875
+ exports.PostV2ModelsLitellmImportParametersParameter$outboundSchema = exports.PostV2ModelsLitellmImportParametersParameter$inboundSchema;
876
+ /**
877
+ * @internal
878
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
879
+ */
880
+ var PostV2ModelsLitellmImportParametersParameter$;
881
+ (function (PostV2ModelsLitellmImportParametersParameter$) {
882
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameter$inboundSchema` instead. */
883
+ PostV2ModelsLitellmImportParametersParameter$.inboundSchema = exports.PostV2ModelsLitellmImportParametersParameter$inboundSchema;
884
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameter$outboundSchema` instead. */
885
+ PostV2ModelsLitellmImportParametersParameter$.outboundSchema = exports.PostV2ModelsLitellmImportParametersParameter$outboundSchema;
886
+ })(PostV2ModelsLitellmImportParametersParameter$ || (exports.PostV2ModelsLitellmImportParametersParameter$ = PostV2ModelsLitellmImportParametersParameter$ = {}));
887
+ /** @internal */
888
+ exports.PostV2ModelsLitellmImportParametersParameterType$inboundSchema = z
889
+ .nativeEnum(exports.PostV2ModelsLitellmImportParametersParameterType);
890
+ /** @internal */
891
+ exports.PostV2ModelsLitellmImportParametersParameterType$outboundSchema = exports.PostV2ModelsLitellmImportParametersParameterType$inboundSchema;
892
+ /**
893
+ * @internal
894
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
895
+ */
896
+ var PostV2ModelsLitellmImportParametersParameterType$;
897
+ (function (PostV2ModelsLitellmImportParametersParameterType$) {
898
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameterType$inboundSchema` instead. */
899
+ PostV2ModelsLitellmImportParametersParameterType$.inboundSchema = exports.PostV2ModelsLitellmImportParametersParameterType$inboundSchema;
900
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameterType$outboundSchema` instead. */
901
+ PostV2ModelsLitellmImportParametersParameterType$.outboundSchema = exports.PostV2ModelsLitellmImportParametersParameterType$outboundSchema;
902
+ })(PostV2ModelsLitellmImportParametersParameterType$ || (exports.PostV2ModelsLitellmImportParametersParameterType$ = PostV2ModelsLitellmImportParametersParameterType$ = {}));
903
+ /** @internal */
904
+ exports.Options$inboundSchema = z.object({
905
+ display_name: z.string(),
906
+ value: z.string(),
907
+ }).transform((v) => {
908
+ return (0, primitives_js_1.remap)(v, {
909
+ "display_name": "displayName",
910
+ });
911
+ });
912
+ /** @internal */
913
+ exports.Options$outboundSchema = z.object({
914
+ displayName: z.string(),
915
+ value: z.string(),
916
+ }).transform((v) => {
917
+ return (0, primitives_js_1.remap)(v, {
918
+ displayName: "display_name",
919
+ });
920
+ });
921
+ /**
922
+ * @internal
923
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
924
+ */
925
+ var Options$;
926
+ (function (Options$) {
927
+ /** @deprecated use `Options$inboundSchema` instead. */
928
+ Options$.inboundSchema = exports.Options$inboundSchema;
929
+ /** @deprecated use `Options$outboundSchema` instead. */
930
+ Options$.outboundSchema = exports.Options$outboundSchema;
931
+ })(Options$ || (exports.Options$ = Options$ = {}));
932
+ function optionsToJSON(options) {
933
+ return JSON.stringify(exports.Options$outboundSchema.parse(options));
934
+ }
935
+ function optionsFromJSON(jsonString) {
936
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Options$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Options' from JSON`);
937
+ }
938
+ /** @internal */
939
+ exports.PostV2ModelsLitellmImportParametersConfig$inboundSchema = z.object({
940
+ default: z.string(),
941
+ options: z.array(z.lazy(() => exports.Options$inboundSchema)),
942
+ });
943
+ /** @internal */
944
+ exports.PostV2ModelsLitellmImportParametersConfig$outboundSchema = z.object({
945
+ default: z.string(),
946
+ options: z.array(z.lazy(() => exports.Options$outboundSchema)),
947
+ });
948
+ /**
949
+ * @internal
950
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
951
+ */
952
+ var PostV2ModelsLitellmImportParametersConfig$;
953
+ (function (PostV2ModelsLitellmImportParametersConfig$) {
954
+ /** @deprecated use `PostV2ModelsLitellmImportParametersConfig$inboundSchema` instead. */
955
+ PostV2ModelsLitellmImportParametersConfig$.inboundSchema = exports.PostV2ModelsLitellmImportParametersConfig$inboundSchema;
956
+ /** @deprecated use `PostV2ModelsLitellmImportParametersConfig$outboundSchema` instead. */
957
+ PostV2ModelsLitellmImportParametersConfig$.outboundSchema = exports.PostV2ModelsLitellmImportParametersConfig$outboundSchema;
958
+ })(PostV2ModelsLitellmImportParametersConfig$ || (exports.PostV2ModelsLitellmImportParametersConfig$ = PostV2ModelsLitellmImportParametersConfig$ = {}));
959
+ function postV2ModelsLitellmImportParametersConfigToJSON(postV2ModelsLitellmImportParametersConfig) {
960
+ return JSON.stringify(exports.PostV2ModelsLitellmImportParametersConfig$outboundSchema.parse(postV2ModelsLitellmImportParametersConfig));
961
+ }
962
+ function postV2ModelsLitellmImportParametersConfigFromJSON(jsonString) {
963
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ModelsLitellmImportParametersConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ModelsLitellmImportParametersConfig' from JSON`);
964
+ }
965
+ /** @internal */
966
+ exports.Parameters3$inboundSchema = z.object({
967
+ id: z.string(),
968
+ name: z.string(),
969
+ parameter: exports.PostV2ModelsLitellmImportParametersParameter$inboundSchema,
970
+ description: z.string(),
971
+ hints: z.nullable(z.string()).optional(),
972
+ is_active: z.boolean(),
973
+ position: z.nullable(z.number()).optional(),
974
+ parameter_type: exports.PostV2ModelsLitellmImportParametersParameterType$inboundSchema,
975
+ config: z.lazy(() => exports.PostV2ModelsLitellmImportParametersConfig$inboundSchema),
976
+ }).transform((v) => {
977
+ return (0, primitives_js_1.remap)(v, {
978
+ "is_active": "isActive",
979
+ "parameter_type": "parameterType",
980
+ });
981
+ });
982
+ /** @internal */
983
+ exports.Parameters3$outboundSchema = z.object({
984
+ id: z.string(),
985
+ name: z.string(),
986
+ parameter: exports.PostV2ModelsLitellmImportParametersParameter$outboundSchema,
987
+ description: z.string(),
988
+ hints: z.nullable(z.string()).optional(),
989
+ isActive: z.boolean(),
990
+ position: z.nullable(z.number()).optional(),
991
+ parameterType: exports.PostV2ModelsLitellmImportParametersParameterType$outboundSchema,
992
+ config: z.lazy(() => exports.PostV2ModelsLitellmImportParametersConfig$outboundSchema),
993
+ }).transform((v) => {
994
+ return (0, primitives_js_1.remap)(v, {
995
+ isActive: "is_active",
996
+ parameterType: "parameter_type",
997
+ });
998
+ });
999
+ /**
1000
+ * @internal
1001
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1002
+ */
1003
+ var Parameters3$;
1004
+ (function (Parameters3$) {
1005
+ /** @deprecated use `Parameters3$inboundSchema` instead. */
1006
+ Parameters3$.inboundSchema = exports.Parameters3$inboundSchema;
1007
+ /** @deprecated use `Parameters3$outboundSchema` instead. */
1008
+ Parameters3$.outboundSchema = exports.Parameters3$outboundSchema;
1009
+ })(Parameters3$ || (exports.Parameters3$ = Parameters3$ = {}));
1010
+ function parameters3ToJSON(parameters3) {
1011
+ return JSON.stringify(exports.Parameters3$outboundSchema.parse(parameters3));
1012
+ }
1013
+ function parameters3FromJSON(jsonString) {
1014
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Parameters3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Parameters3' from JSON`);
1015
+ }
1016
+ /** @internal */
1017
+ exports.ParametersParameter$inboundSchema = z.nativeEnum(exports.ParametersParameter);
1018
+ /** @internal */
1019
+ exports.ParametersParameter$outboundSchema = exports.ParametersParameter$inboundSchema;
1020
+ /**
1021
+ * @internal
1022
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1023
+ */
1024
+ var ParametersParameter$;
1025
+ (function (ParametersParameter$) {
1026
+ /** @deprecated use `ParametersParameter$inboundSchema` instead. */
1027
+ ParametersParameter$.inboundSchema = exports.ParametersParameter$inboundSchema;
1028
+ /** @deprecated use `ParametersParameter$outboundSchema` instead. */
1029
+ ParametersParameter$.outboundSchema = exports.ParametersParameter$outboundSchema;
1030
+ })(ParametersParameter$ || (exports.ParametersParameter$ = ParametersParameter$ = {}));
1031
+ /** @internal */
1032
+ exports.ParametersParameterType$inboundSchema = z.nativeEnum(exports.ParametersParameterType);
1033
+ /** @internal */
1034
+ exports.ParametersParameterType$outboundSchema = exports.ParametersParameterType$inboundSchema;
1035
+ /**
1036
+ * @internal
1037
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1038
+ */
1039
+ var ParametersParameterType$;
1040
+ (function (ParametersParameterType$) {
1041
+ /** @deprecated use `ParametersParameterType$inboundSchema` instead. */
1042
+ ParametersParameterType$.inboundSchema = exports.ParametersParameterType$inboundSchema;
1043
+ /** @deprecated use `ParametersParameterType$outboundSchema` instead. */
1044
+ ParametersParameterType$.outboundSchema = exports.ParametersParameterType$outboundSchema;
1045
+ })(ParametersParameterType$ || (exports.ParametersParameterType$ = ParametersParameterType$ = {}));
1046
+ /** @internal */
1047
+ exports.ParametersConfig$inboundSchema = z.object({
1048
+ default: z.boolean(),
1049
+ });
1050
+ /** @internal */
1051
+ exports.ParametersConfig$outboundSchema = z.object({
1052
+ default: z.boolean(),
1053
+ });
1054
+ /**
1055
+ * @internal
1056
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1057
+ */
1058
+ var ParametersConfig$;
1059
+ (function (ParametersConfig$) {
1060
+ /** @deprecated use `ParametersConfig$inboundSchema` instead. */
1061
+ ParametersConfig$.inboundSchema = exports.ParametersConfig$inboundSchema;
1062
+ /** @deprecated use `ParametersConfig$outboundSchema` instead. */
1063
+ ParametersConfig$.outboundSchema = exports.ParametersConfig$outboundSchema;
1064
+ })(ParametersConfig$ || (exports.ParametersConfig$ = ParametersConfig$ = {}));
1065
+ function parametersConfigToJSON(parametersConfig) {
1066
+ return JSON.stringify(exports.ParametersConfig$outboundSchema.parse(parametersConfig));
1067
+ }
1068
+ function parametersConfigFromJSON(jsonString) {
1069
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ParametersConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ParametersConfig' from JSON`);
1070
+ }
1071
+ /** @internal */
1072
+ exports.Parameters2$inboundSchema = z.object({
1073
+ id: z.string(),
1074
+ name: z.string(),
1075
+ parameter: exports.ParametersParameter$inboundSchema,
1076
+ description: z.string(),
1077
+ hints: z.nullable(z.string()).optional(),
1078
+ is_active: z.boolean(),
1079
+ position: z.nullable(z.number()).optional(),
1080
+ parameter_type: exports.ParametersParameterType$inboundSchema,
1081
+ config: z.lazy(() => exports.ParametersConfig$inboundSchema),
1082
+ }).transform((v) => {
1083
+ return (0, primitives_js_1.remap)(v, {
1084
+ "is_active": "isActive",
1085
+ "parameter_type": "parameterType",
1086
+ });
1087
+ });
1088
+ /** @internal */
1089
+ exports.Parameters2$outboundSchema = z.object({
1090
+ id: z.string(),
1091
+ name: z.string(),
1092
+ parameter: exports.ParametersParameter$outboundSchema,
1093
+ description: z.string(),
1094
+ hints: z.nullable(z.string()).optional(),
1095
+ isActive: z.boolean(),
1096
+ position: z.nullable(z.number()).optional(),
1097
+ parameterType: exports.ParametersParameterType$outboundSchema,
1098
+ config: z.lazy(() => exports.ParametersConfig$outboundSchema),
1099
+ }).transform((v) => {
1100
+ return (0, primitives_js_1.remap)(v, {
1101
+ isActive: "is_active",
1102
+ parameterType: "parameter_type",
1103
+ });
1104
+ });
1105
+ /**
1106
+ * @internal
1107
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1108
+ */
1109
+ var Parameters2$;
1110
+ (function (Parameters2$) {
1111
+ /** @deprecated use `Parameters2$inboundSchema` instead. */
1112
+ Parameters2$.inboundSchema = exports.Parameters2$inboundSchema;
1113
+ /** @deprecated use `Parameters2$outboundSchema` instead. */
1114
+ Parameters2$.outboundSchema = exports.Parameters2$outboundSchema;
1115
+ })(Parameters2$ || (exports.Parameters2$ = Parameters2$ = {}));
1116
+ function parameters2ToJSON(parameters2) {
1117
+ return JSON.stringify(exports.Parameters2$outboundSchema.parse(parameters2));
1118
+ }
1119
+ function parameters2FromJSON(jsonString) {
1120
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Parameters2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Parameters2' from JSON`);
1121
+ }
1122
+ /** @internal */
1123
+ exports.Parameter$inboundSchema = z
1124
+ .nativeEnum(exports.Parameter);
1125
+ /** @internal */
1126
+ exports.Parameter$outboundSchema = exports.Parameter$inboundSchema;
1127
+ /**
1128
+ * @internal
1129
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1130
+ */
1131
+ var Parameter$;
1132
+ (function (Parameter$) {
1133
+ /** @deprecated use `Parameter$inboundSchema` instead. */
1134
+ Parameter$.inboundSchema = exports.Parameter$inboundSchema;
1135
+ /** @deprecated use `Parameter$outboundSchema` instead. */
1136
+ Parameter$.outboundSchema = exports.Parameter$outboundSchema;
1137
+ })(Parameter$ || (exports.Parameter$ = Parameter$ = {}));
1138
+ /** @internal */
1139
+ exports.ParameterType$inboundSchema = z.nativeEnum(exports.ParameterType);
1140
+ /** @internal */
1141
+ exports.ParameterType$outboundSchema = exports.ParameterType$inboundSchema;
1142
+ /**
1143
+ * @internal
1144
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1145
+ */
1146
+ var ParameterType$;
1147
+ (function (ParameterType$) {
1148
+ /** @deprecated use `ParameterType$inboundSchema` instead. */
1149
+ ParameterType$.inboundSchema = exports.ParameterType$inboundSchema;
1150
+ /** @deprecated use `ParameterType$outboundSchema` instead. */
1151
+ ParameterType$.outboundSchema = exports.ParameterType$outboundSchema;
1152
+ })(ParameterType$ || (exports.ParameterType$ = ParameterType$ = {}));
1153
+ /** @internal */
1154
+ exports.Config$inboundSchema = z
1155
+ .object({
1156
+ default: z.number(),
1157
+ max: z.number(),
1158
+ min: z.number(),
1159
+ step: z.number(),
1160
+ });
1161
+ /** @internal */
1162
+ exports.Config$outboundSchema = z.object({
1163
+ default: z.number(),
1164
+ max: z.number(),
1165
+ min: z.number(),
1166
+ step: z.number(),
1167
+ });
1168
+ /**
1169
+ * @internal
1170
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1171
+ */
1172
+ var Config$;
1173
+ (function (Config$) {
1174
+ /** @deprecated use `Config$inboundSchema` instead. */
1175
+ Config$.inboundSchema = exports.Config$inboundSchema;
1176
+ /** @deprecated use `Config$outboundSchema` instead. */
1177
+ Config$.outboundSchema = exports.Config$outboundSchema;
1178
+ })(Config$ || (exports.Config$ = Config$ = {}));
1179
+ function configToJSON(config) {
1180
+ return JSON.stringify(exports.Config$outboundSchema.parse(config));
1181
+ }
1182
+ function configFromJSON(jsonString) {
1183
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Config$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Config' from JSON`);
1184
+ }
1185
+ /** @internal */
1186
+ exports.Parameters1$inboundSchema = z.object({
1187
+ id: z.string(),
1188
+ name: z.string(),
1189
+ parameter: exports.Parameter$inboundSchema,
1190
+ description: z.string(),
1191
+ hints: z.nullable(z.string()).optional(),
1192
+ is_active: z.boolean(),
1193
+ position: z.nullable(z.number()).optional(),
1194
+ parameter_type: exports.ParameterType$inboundSchema,
1195
+ config: z.lazy(() => exports.Config$inboundSchema),
1196
+ }).transform((v) => {
1197
+ return (0, primitives_js_1.remap)(v, {
1198
+ "is_active": "isActive",
1199
+ "parameter_type": "parameterType",
1200
+ });
1201
+ });
1202
+ /** @internal */
1203
+ exports.Parameters1$outboundSchema = z.object({
1204
+ id: z.string(),
1205
+ name: z.string(),
1206
+ parameter: exports.Parameter$outboundSchema,
1207
+ description: z.string(),
1208
+ hints: z.nullable(z.string()).optional(),
1209
+ isActive: z.boolean(),
1210
+ position: z.nullable(z.number()).optional(),
1211
+ parameterType: exports.ParameterType$outboundSchema,
1212
+ config: z.lazy(() => exports.Config$outboundSchema),
1213
+ }).transform((v) => {
1214
+ return (0, primitives_js_1.remap)(v, {
1215
+ isActive: "is_active",
1216
+ parameterType: "parameter_type",
1217
+ });
1218
+ });
1219
+ /**
1220
+ * @internal
1221
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1222
+ */
1223
+ var Parameters1$;
1224
+ (function (Parameters1$) {
1225
+ /** @deprecated use `Parameters1$inboundSchema` instead. */
1226
+ Parameters1$.inboundSchema = exports.Parameters1$inboundSchema;
1227
+ /** @deprecated use `Parameters1$outboundSchema` instead. */
1228
+ Parameters1$.outboundSchema = exports.Parameters1$outboundSchema;
1229
+ })(Parameters1$ || (exports.Parameters1$ = Parameters1$ = {}));
1230
+ function parameters1ToJSON(parameters1) {
1231
+ return JSON.stringify(exports.Parameters1$outboundSchema.parse(parameters1));
1232
+ }
1233
+ function parameters1FromJSON(jsonString) {
1234
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Parameters1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Parameters1' from JSON`);
1235
+ }
1236
+ /** @internal */
1237
+ exports.ParametersT$inboundSchema = z.union([
1238
+ z.lazy(() => exports.Parameters1$inboundSchema),
1239
+ z.lazy(() => exports.Parameters2$inboundSchema),
1240
+ z.lazy(() => exports.Parameters3$inboundSchema),
1241
+ ]);
1242
+ /** @internal */
1243
+ exports.ParametersT$outboundSchema = z.union([
1244
+ z.lazy(() => exports.Parameters1$outboundSchema),
1245
+ z.lazy(() => exports.Parameters2$outboundSchema),
1246
+ z.lazy(() => exports.Parameters3$outboundSchema),
1247
+ ]);
1248
+ /**
1249
+ * @internal
1250
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1251
+ */
1252
+ var ParametersT$;
1253
+ (function (ParametersT$) {
1254
+ /** @deprecated use `ParametersT$inboundSchema` instead. */
1255
+ ParametersT$.inboundSchema = exports.ParametersT$inboundSchema;
1256
+ /** @deprecated use `ParametersT$outboundSchema` instead. */
1257
+ ParametersT$.outboundSchema = exports.ParametersT$outboundSchema;
1258
+ })(ParametersT$ || (exports.ParametersT$ = ParametersT$ = {}));
1259
+ function parametersToJSON(parametersT) {
1260
+ return JSON.stringify(exports.ParametersT$outboundSchema.parse(parametersT));
1261
+ }
1262
+ function parametersFromJSON(jsonString) {
1263
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ParametersT$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ParametersT' from JSON`);
1264
+ }
1265
+ /** @internal */
1266
+ exports.PostV2ModelsLitellmImportResponseBody$inboundSchema = z.object({
1267
+ id: z.string(),
1268
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
1269
+ updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
1270
+ display_name: z.string(),
1271
+ model_id: z.string(),
1272
+ model_revision: z.string().optional(),
1273
+ model_developer: z.string(),
1274
+ model_family: z.string(),
1275
+ model_type: exports.PostV2ModelsLitellmImportModelType$inboundSchema,
1276
+ provider: exports.PostV2ModelsLitellmImportProvider$inboundSchema,
1277
+ is_active: z.boolean().default(true),
1278
+ input_cost: z.number(),
1279
+ input_currency: z.string().default("USD"),
1280
+ output_cost: z.number(),
1281
+ output_currency: z.string().default("USD"),
1282
+ description: z.string().optional(),
1283
+ has_functions: z.boolean().default(false),
1284
+ has_cpu_pricing: z.boolean().default(false),
1285
+ pricing_url: z.string().optional(),
1286
+ docs_url: z.string().optional(),
1287
+ enabled: z.boolean(),
1288
+ enabled_for_endpoints: z.boolean().default(false),
1289
+ enabled_for_playground: z.boolean().default(false),
1290
+ owner: z.string().default("system"),
1291
+ metadata: z.lazy(() => exports.PostV2ModelsLitellmImportMetadata$inboundSchema),
1292
+ configuration: z.union([
1293
+ z.lazy(() => exports.Configuration2$inboundSchema),
1294
+ z.lazy(() => exports.Configuration1$inboundSchema),
1295
+ z.lazy(() => exports.Configuration3$inboundSchema),
1296
+ z.lazy(() => exports.Configuration4$inboundSchema),
1297
+ ]).optional(),
1298
+ parameters: z.array(z.union([
1299
+ z.lazy(() => exports.Parameters1$inboundSchema),
1300
+ z.lazy(() => exports.Parameters2$inboundSchema),
1301
+ z.lazy(() => exports.Parameters3$inboundSchema),
1302
+ ])),
1303
+ }).transform((v) => {
1304
+ return (0, primitives_js_1.remap)(v, {
1305
+ "display_name": "displayName",
1306
+ "model_id": "modelId",
1307
+ "model_revision": "modelRevision",
1308
+ "model_developer": "modelDeveloper",
1309
+ "model_family": "modelFamily",
1310
+ "model_type": "modelType",
1311
+ "is_active": "isActive",
1312
+ "input_cost": "inputCost",
1313
+ "input_currency": "inputCurrency",
1314
+ "output_cost": "outputCost",
1315
+ "output_currency": "outputCurrency",
1316
+ "has_functions": "hasFunctions",
1317
+ "has_cpu_pricing": "hasCpuPricing",
1318
+ "pricing_url": "pricingUrl",
1319
+ "docs_url": "docsUrl",
1320
+ "enabled_for_endpoints": "enabledForEndpoints",
1321
+ "enabled_for_playground": "enabledForPlayground",
1322
+ });
1323
+ });
1324
+ /** @internal */
1325
+ exports.PostV2ModelsLitellmImportResponseBody$outboundSchema = z.object({
1326
+ id: z.string(),
1327
+ created: z.date().transform(v => v.toISOString()),
1328
+ updated: z.date().transform(v => v.toISOString()),
1329
+ displayName: z.string(),
1330
+ modelId: z.string(),
1331
+ modelRevision: z.string().optional(),
1332
+ modelDeveloper: z.string(),
1333
+ modelFamily: z.string(),
1334
+ modelType: exports.PostV2ModelsLitellmImportModelType$outboundSchema,
1335
+ provider: exports.PostV2ModelsLitellmImportProvider$outboundSchema,
1336
+ isActive: z.boolean().default(true),
1337
+ inputCost: z.number(),
1338
+ inputCurrency: z.string().default("USD"),
1339
+ outputCost: z.number(),
1340
+ outputCurrency: z.string().default("USD"),
1341
+ description: z.string().optional(),
1342
+ hasFunctions: z.boolean().default(false),
1343
+ hasCpuPricing: z.boolean().default(false),
1344
+ pricingUrl: z.string().optional(),
1345
+ docsUrl: z.string().optional(),
1346
+ enabled: z.boolean(),
1347
+ enabledForEndpoints: z.boolean().default(false),
1348
+ enabledForPlayground: z.boolean().default(false),
1349
+ owner: z.string().default("system"),
1350
+ metadata: z.lazy(() => exports.PostV2ModelsLitellmImportMetadata$outboundSchema),
1351
+ configuration: z.union([
1352
+ z.lazy(() => exports.Configuration2$outboundSchema),
1353
+ z.lazy(() => exports.Configuration1$outboundSchema),
1354
+ z.lazy(() => exports.Configuration3$outboundSchema),
1355
+ z.lazy(() => exports.Configuration4$outboundSchema),
1356
+ ]).optional(),
1357
+ parameters: z.array(z.union([
1358
+ z.lazy(() => exports.Parameters1$outboundSchema),
1359
+ z.lazy(() => exports.Parameters2$outboundSchema),
1360
+ z.lazy(() => exports.Parameters3$outboundSchema),
1361
+ ])),
1362
+ }).transform((v) => {
1363
+ return (0, primitives_js_1.remap)(v, {
1364
+ displayName: "display_name",
1365
+ modelId: "model_id",
1366
+ modelRevision: "model_revision",
1367
+ modelDeveloper: "model_developer",
1368
+ modelFamily: "model_family",
1369
+ modelType: "model_type",
1370
+ isActive: "is_active",
1371
+ inputCost: "input_cost",
1372
+ inputCurrency: "input_currency",
1373
+ outputCost: "output_cost",
1374
+ outputCurrency: "output_currency",
1375
+ hasFunctions: "has_functions",
1376
+ hasCpuPricing: "has_cpu_pricing",
1377
+ pricingUrl: "pricing_url",
1378
+ docsUrl: "docs_url",
1379
+ enabledForEndpoints: "enabled_for_endpoints",
1380
+ enabledForPlayground: "enabled_for_playground",
1381
+ });
1382
+ });
1383
+ /**
1384
+ * @internal
1385
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1386
+ */
1387
+ var PostV2ModelsLitellmImportResponseBody$;
1388
+ (function (PostV2ModelsLitellmImportResponseBody$) {
1389
+ /** @deprecated use `PostV2ModelsLitellmImportResponseBody$inboundSchema` instead. */
1390
+ PostV2ModelsLitellmImportResponseBody$.inboundSchema = exports.PostV2ModelsLitellmImportResponseBody$inboundSchema;
1391
+ /** @deprecated use `PostV2ModelsLitellmImportResponseBody$outboundSchema` instead. */
1392
+ PostV2ModelsLitellmImportResponseBody$.outboundSchema = exports.PostV2ModelsLitellmImportResponseBody$outboundSchema;
1393
+ })(PostV2ModelsLitellmImportResponseBody$ || (exports.PostV2ModelsLitellmImportResponseBody$ = PostV2ModelsLitellmImportResponseBody$ = {}));
1394
+ function postV2ModelsLitellmImportResponseBodyToJSON(postV2ModelsLitellmImportResponseBody) {
1395
+ return JSON.stringify(exports.PostV2ModelsLitellmImportResponseBody$outboundSchema.parse(postV2ModelsLitellmImportResponseBody));
1396
+ }
1397
+ function postV2ModelsLitellmImportResponseBodyFromJSON(jsonString) {
1398
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PostV2ModelsLitellmImportResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PostV2ModelsLitellmImportResponseBody' from JSON`);
1399
+ }
1400
+ //# sourceMappingURL=postv2modelslitellmimport.js.map