@orq-ai/node 3.6.10 → 3.6.12

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 (554) hide show
  1. package/README.md +34 -27
  2. package/bin/mcp-server.js +370 -236
  3. package/bin/mcp-server.js.map +84 -82
  4. package/funcs/contactsCreate.d.ts +3 -2
  5. package/funcs/contactsCreate.d.ts.map +1 -1
  6. package/funcs/contactsCreate.js +1 -1
  7. package/funcs/contactsCreate.js.map +1 -1
  8. package/funcs/datasetsClear.d.ts +3 -2
  9. package/funcs/datasetsClear.d.ts.map +1 -1
  10. package/funcs/datasetsClear.js +1 -1
  11. package/funcs/datasetsClear.js.map +1 -1
  12. package/funcs/datasetsCreate.d.ts +3 -2
  13. package/funcs/datasetsCreate.d.ts.map +1 -1
  14. package/funcs/datasetsCreate.js +1 -1
  15. package/funcs/datasetsCreate.js.map +1 -1
  16. package/funcs/datasetsCreateDatapoint.d.ts +3 -2
  17. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -1
  18. package/funcs/datasetsCreateDatapoint.js +1 -1
  19. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  20. package/funcs/datasetsCreateDatapoints.d.ts +3 -2
  21. package/funcs/datasetsCreateDatapoints.d.ts.map +1 -1
  22. package/funcs/datasetsCreateDatapoints.js +1 -1
  23. package/funcs/datasetsCreateDatapoints.js.map +1 -1
  24. package/funcs/datasetsCreateExperiment.d.ts +3 -2
  25. package/funcs/datasetsCreateExperiment.d.ts.map +1 -1
  26. package/funcs/datasetsCreateExperiment.js +1 -1
  27. package/funcs/datasetsCreateExperiment.js.map +1 -1
  28. package/funcs/datasetsDelete.d.ts +3 -2
  29. package/funcs/datasetsDelete.d.ts.map +1 -1
  30. package/funcs/datasetsDelete.js +1 -1
  31. package/funcs/datasetsDelete.js.map +1 -1
  32. package/funcs/datasetsDeleteDatapoint.d.ts +3 -2
  33. package/funcs/datasetsDeleteDatapoint.d.ts.map +1 -1
  34. package/funcs/datasetsDeleteDatapoint.js +1 -1
  35. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  36. package/funcs/datasetsList.d.ts +3 -2
  37. package/funcs/datasetsList.d.ts.map +1 -1
  38. package/funcs/datasetsList.js +1 -1
  39. package/funcs/datasetsList.js.map +1 -1
  40. package/funcs/datasetsListDatapoints.d.ts +3 -2
  41. package/funcs/datasetsListDatapoints.d.ts.map +1 -1
  42. package/funcs/datasetsListDatapoints.js +1 -1
  43. package/funcs/datasetsListDatapoints.js.map +1 -1
  44. package/funcs/datasetsRetrieve.d.ts +3 -2
  45. package/funcs/datasetsRetrieve.d.ts.map +1 -1
  46. package/funcs/datasetsRetrieve.js +1 -1
  47. package/funcs/datasetsRetrieve.js.map +1 -1
  48. package/funcs/datasetsRetrieveDatapoint.d.ts +3 -2
  49. package/funcs/datasetsRetrieveDatapoint.d.ts.map +1 -1
  50. package/funcs/datasetsRetrieveDatapoint.js +1 -1
  51. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  52. package/funcs/datasetsUpdate.d.ts +3 -2
  53. package/funcs/datasetsUpdate.d.ts.map +1 -1
  54. package/funcs/datasetsUpdate.js +1 -1
  55. package/funcs/datasetsUpdate.js.map +1 -1
  56. package/funcs/datasetsUpdateDatapoint.d.ts +3 -2
  57. package/funcs/datasetsUpdateDatapoint.d.ts.map +1 -1
  58. package/funcs/datasetsUpdateDatapoint.js +1 -1
  59. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  60. package/funcs/deploymentsCreateExperiment.d.ts +3 -2
  61. package/funcs/deploymentsCreateExperiment.d.ts.map +1 -1
  62. package/funcs/deploymentsCreateExperiment.js +1 -1
  63. package/funcs/deploymentsCreateExperiment.js.map +1 -1
  64. package/funcs/deploymentsGetConfig.d.ts +3 -2
  65. package/funcs/deploymentsGetConfig.d.ts.map +1 -1
  66. package/funcs/deploymentsGetConfig.js +1 -1
  67. package/funcs/deploymentsGetConfig.js.map +1 -1
  68. package/funcs/deploymentsInvoke.d.ts +3 -2
  69. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  70. package/funcs/deploymentsInvoke.js +1 -1
  71. package/funcs/deploymentsInvoke.js.map +1 -1
  72. package/funcs/deploymentsList.d.ts +3 -2
  73. package/funcs/deploymentsList.d.ts.map +1 -1
  74. package/funcs/deploymentsList.js +1 -1
  75. package/funcs/deploymentsList.js.map +1 -1
  76. package/funcs/deploymentsMetricsCreate.d.ts +3 -2
  77. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
  78. package/funcs/deploymentsMetricsCreate.js +1 -1
  79. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  80. package/funcs/deploymentsStream.d.ts +3 -2
  81. package/funcs/deploymentsStream.d.ts.map +1 -1
  82. package/funcs/deploymentsStream.js +1 -1
  83. package/funcs/deploymentsStream.js.map +1 -1
  84. package/funcs/feedbackCreate.d.ts +3 -2
  85. package/funcs/feedbackCreate.d.ts.map +1 -1
  86. package/funcs/feedbackCreate.js +1 -1
  87. package/funcs/feedbackCreate.js.map +1 -1
  88. package/funcs/filesCreate.d.ts +3 -2
  89. package/funcs/filesCreate.d.ts.map +1 -1
  90. package/funcs/filesCreate.js +8 -4
  91. package/funcs/filesCreate.js.map +1 -1
  92. package/funcs/filesDelete.d.ts +3 -2
  93. package/funcs/filesDelete.d.ts.map +1 -1
  94. package/funcs/filesDelete.js +1 -1
  95. package/funcs/filesDelete.js.map +1 -1
  96. package/funcs/filesGet.d.ts +3 -2
  97. package/funcs/filesGet.d.ts.map +1 -1
  98. package/funcs/filesGet.js +1 -1
  99. package/funcs/filesGet.js.map +1 -1
  100. package/funcs/filesList.d.ts +3 -2
  101. package/funcs/filesList.d.ts.map +1 -1
  102. package/funcs/filesList.js +1 -1
  103. package/funcs/filesList.js.map +1 -1
  104. package/funcs/knowledgeCreate.d.ts +3 -2
  105. package/funcs/knowledgeCreate.d.ts.map +1 -1
  106. package/funcs/knowledgeCreate.js +1 -1
  107. package/funcs/knowledgeCreate.js.map +1 -1
  108. package/funcs/knowledgeCreateChunks.d.ts +3 -2
  109. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  110. package/funcs/knowledgeCreateChunks.js +1 -1
  111. package/funcs/knowledgeCreateChunks.js.map +1 -1
  112. package/funcs/knowledgeCreateDatasource.d.ts +3 -2
  113. package/funcs/knowledgeCreateDatasource.d.ts.map +1 -1
  114. package/funcs/knowledgeCreateDatasource.js +1 -1
  115. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  116. package/funcs/knowledgeDelete.d.ts +3 -2
  117. package/funcs/knowledgeDelete.d.ts.map +1 -1
  118. package/funcs/knowledgeDelete.js +1 -1
  119. package/funcs/knowledgeDelete.js.map +1 -1
  120. package/funcs/knowledgeDeleteChunk.d.ts +3 -2
  121. package/funcs/knowledgeDeleteChunk.d.ts.map +1 -1
  122. package/funcs/knowledgeDeleteChunk.js +1 -1
  123. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  124. package/funcs/knowledgeDeleteDatasource.d.ts +3 -2
  125. package/funcs/knowledgeDeleteDatasource.d.ts.map +1 -1
  126. package/funcs/knowledgeDeleteDatasource.js +1 -1
  127. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  128. package/funcs/knowledgeList.d.ts +3 -2
  129. package/funcs/knowledgeList.d.ts.map +1 -1
  130. package/funcs/knowledgeList.js +1 -1
  131. package/funcs/knowledgeList.js.map +1 -1
  132. package/funcs/knowledgeListChunks.d.ts +3 -2
  133. package/funcs/knowledgeListChunks.d.ts.map +1 -1
  134. package/funcs/knowledgeListChunks.js +1 -1
  135. package/funcs/knowledgeListChunks.js.map +1 -1
  136. package/funcs/knowledgeListDatasources.d.ts +3 -2
  137. package/funcs/knowledgeListDatasources.d.ts.map +1 -1
  138. package/funcs/knowledgeListDatasources.js +1 -1
  139. package/funcs/knowledgeListDatasources.js.map +1 -1
  140. package/funcs/knowledgeRetrieve.d.ts +3 -2
  141. package/funcs/knowledgeRetrieve.d.ts.map +1 -1
  142. package/funcs/knowledgeRetrieve.js +1 -1
  143. package/funcs/knowledgeRetrieve.js.map +1 -1
  144. package/funcs/knowledgeRetrieveChunk.d.ts +3 -2
  145. package/funcs/knowledgeRetrieveChunk.d.ts.map +1 -1
  146. package/funcs/knowledgeRetrieveChunk.js +1 -1
  147. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  148. package/funcs/knowledgeRetrieveDatasource.d.ts +3 -2
  149. package/funcs/knowledgeRetrieveDatasource.d.ts.map +1 -1
  150. package/funcs/knowledgeRetrieveDatasource.js +1 -1
  151. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  152. package/funcs/knowledgeSearch.d.ts +3 -2
  153. package/funcs/knowledgeSearch.d.ts.map +1 -1
  154. package/funcs/knowledgeSearch.js +1 -1
  155. package/funcs/knowledgeSearch.js.map +1 -1
  156. package/funcs/knowledgeUpdate.d.ts +3 -2
  157. package/funcs/knowledgeUpdate.d.ts.map +1 -1
  158. package/funcs/knowledgeUpdate.js +1 -1
  159. package/funcs/knowledgeUpdate.js.map +1 -1
  160. package/funcs/knowledgeUpdateChunk.d.ts +3 -2
  161. package/funcs/knowledgeUpdateChunk.d.ts.map +1 -1
  162. package/funcs/knowledgeUpdateChunk.js +1 -1
  163. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  164. package/funcs/knowledgeUpdateDatasource.d.ts +3 -2
  165. package/funcs/knowledgeUpdateDatasource.d.ts.map +1 -1
  166. package/funcs/knowledgeUpdateDatasource.js +1 -1
  167. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  168. package/funcs/modelsList.d.ts +3 -2
  169. package/funcs/modelsList.d.ts.map +1 -1
  170. package/funcs/modelsList.js +1 -1
  171. package/funcs/modelsList.js.map +1 -1
  172. package/funcs/promptsCreate.d.ts +3 -2
  173. package/funcs/promptsCreate.d.ts.map +1 -1
  174. package/funcs/promptsCreate.js +1 -1
  175. package/funcs/promptsCreate.js.map +1 -1
  176. package/funcs/promptsDelete.d.ts +3 -2
  177. package/funcs/promptsDelete.d.ts.map +1 -1
  178. package/funcs/promptsDelete.js +1 -1
  179. package/funcs/promptsDelete.js.map +1 -1
  180. package/funcs/promptsGetVersion.d.ts +3 -2
  181. package/funcs/promptsGetVersion.d.ts.map +1 -1
  182. package/funcs/promptsGetVersion.js +1 -1
  183. package/funcs/promptsGetVersion.js.map +1 -1
  184. package/funcs/promptsList.d.ts +3 -2
  185. package/funcs/promptsList.d.ts.map +1 -1
  186. package/funcs/promptsList.js +1 -1
  187. package/funcs/promptsList.js.map +1 -1
  188. package/funcs/promptsListVersions.d.ts +3 -2
  189. package/funcs/promptsListVersions.d.ts.map +1 -1
  190. package/funcs/promptsListVersions.js +1 -1
  191. package/funcs/promptsListVersions.js.map +1 -1
  192. package/funcs/promptsRetrieve.d.ts +3 -2
  193. package/funcs/promptsRetrieve.d.ts.map +1 -1
  194. package/funcs/promptsRetrieve.js +1 -1
  195. package/funcs/promptsRetrieve.js.map +1 -1
  196. package/funcs/promptsUpdate.d.ts +3 -2
  197. package/funcs/promptsUpdate.d.ts.map +1 -1
  198. package/funcs/promptsUpdate.js +1 -1
  199. package/funcs/promptsUpdate.js.map +1 -1
  200. package/funcs/remoteconfigsRetrieve.d.ts +3 -2
  201. package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
  202. package/funcs/remoteconfigsRetrieve.js +1 -1
  203. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  204. package/jsr.json +1 -1
  205. package/lib/config.d.ts +3 -3
  206. package/lib/config.js +3 -3
  207. package/lib/files.d.ts +5 -0
  208. package/lib/files.d.ts.map +1 -1
  209. package/lib/files.js +41 -0
  210. package/lib/files.js.map +1 -1
  211. package/lib/matchers.d.ts +3 -10
  212. package/lib/matchers.d.ts.map +1 -1
  213. package/lib/matchers.js +33 -31
  214. package/lib/matchers.js.map +1 -1
  215. package/mcp-server/mcp-server.js +1 -1
  216. package/mcp-server/server.js +1 -1
  217. package/models/errors/apierror.d.ts +8 -18
  218. package/models/errors/apierror.d.ts.map +1 -1
  219. package/models/errors/apierror.js +17 -10
  220. package/models/errors/apierror.js.map +1 -1
  221. package/models/errors/getpromptversion.d.ts +7 -2
  222. package/models/errors/getpromptversion.d.ts.map +1 -1
  223. package/models/errors/getpromptversion.js +12 -4
  224. package/models/errors/getpromptversion.js.map +1 -1
  225. package/models/errors/honoapierror.d.ts +7 -2
  226. package/models/errors/honoapierror.d.ts.map +1 -1
  227. package/models/errors/honoapierror.js +12 -4
  228. package/models/errors/honoapierror.js.map +1 -1
  229. package/models/errors/index.d.ts +1 -0
  230. package/models/errors/index.d.ts.map +1 -1
  231. package/models/errors/index.js +1 -0
  232. package/models/errors/index.js.map +1 -1
  233. package/models/errors/orqerror.d.ts +19 -0
  234. package/models/errors/orqerror.d.ts.map +1 -0
  235. package/models/errors/orqerror.js +20 -0
  236. package/models/errors/orqerror.js.map +1 -0
  237. package/models/errors/responsevalidationerror.d.ts +26 -0
  238. package/models/errors/responsevalidationerror.d.ts.map +1 -0
  239. package/models/errors/responsevalidationerror.js +66 -0
  240. package/models/errors/responsevalidationerror.js.map +1 -0
  241. package/models/errors/sdkvalidationerror.d.ts +1 -0
  242. package/models/errors/sdkvalidationerror.d.ts.map +1 -1
  243. package/models/errors/sdkvalidationerror.js +14 -0
  244. package/models/errors/sdkvalidationerror.js.map +1 -1
  245. package/models/errors/updateprompt.d.ts +7 -2
  246. package/models/errors/updateprompt.d.ts.map +1 -1
  247. package/models/errors/updateprompt.js +12 -4
  248. package/models/errors/updateprompt.js.map +1 -1
  249. package/models/operations/bulkcreatedatapoints.js +2 -2
  250. package/models/operations/createcontact.js +2 -2
  251. package/models/operations/createdataset.js +2 -2
  252. package/models/operations/createdatasetitem.js +2 -2
  253. package/models/operations/createdatasource.js +2 -2
  254. package/models/operations/fileget.js +2 -2
  255. package/models/operations/filelist.js +2 -2
  256. package/models/operations/fileupload.js +2 -2
  257. package/models/operations/listdatasetdatapoints.js +2 -2
  258. package/models/operations/listdatasets.js +2 -2
  259. package/models/operations/listdatasources.js +2 -2
  260. package/models/operations/retrievedatapoint.js +2 -2
  261. package/models/operations/retrievedataset.js +2 -2
  262. package/models/operations/retrievedatasource.js +2 -2
  263. package/models/operations/updatedatapoint.js +2 -2
  264. package/models/operations/updatedataset.js +2 -2
  265. package/models/operations/updatedatasource.js +2 -2
  266. package/package.json +1 -1
  267. package/packages/orq-rc/FUNCTIONS.md +3 -5
  268. package/packages/orq-rc/README.md +131 -118
  269. package/packages/orq-rc/docs/sdks/contacts/README.md +30 -2
  270. package/packages/orq-rc/docs/sdks/evals/README.md +315 -14
  271. package/packages/orq-rc/docs/sdks/knowledge/README.md +1 -1
  272. package/packages/orq-rc/docs/sdks/orq/README.md +138 -0
  273. package/packages/orq-rc/jsr.json +1 -1
  274. package/packages/orq-rc/package-lock.json +2 -2
  275. package/packages/orq-rc/package.json +1 -1
  276. package/packages/orq-rc/src/funcs/contactsCreate.ts +21 -17
  277. package/packages/orq-rc/src/funcs/contactsDelete.ts +21 -17
  278. package/packages/orq-rc/src/funcs/contactsList.ts +21 -17
  279. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +21 -17
  280. package/packages/orq-rc/src/funcs/contactsUpdate.ts +21 -17
  281. package/packages/orq-rc/src/funcs/datasetsClear.ts +21 -17
  282. package/packages/orq-rc/src/funcs/datasetsCreate.ts +21 -17
  283. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +21 -17
  284. package/packages/orq-rc/src/funcs/datasetsCreateExperiment.ts +21 -17
  285. package/packages/orq-rc/src/funcs/datasetsDelete.ts +21 -17
  286. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +21 -17
  287. package/packages/orq-rc/src/funcs/datasetsList.ts +21 -17
  288. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +21 -17
  289. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +21 -17
  290. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +21 -17
  291. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +21 -17
  292. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +21 -17
  293. package/packages/orq-rc/src/funcs/deploymentsCreateExperiment.ts +21 -17
  294. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +21 -17
  295. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +21 -17
  296. package/packages/orq-rc/src/funcs/deploymentsList.ts +21 -17
  297. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +21 -17
  298. package/packages/orq-rc/src/funcs/deploymentsStream.ts +21 -17
  299. package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +21 -17
  300. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  301. package/packages/orq-rc/src/funcs/{evalsRunBertScore.ts → evalsBertScore.ts} +40 -34
  302. package/packages/orq-rc/src/funcs/evalsBleuScore.ts +21 -17
  303. package/packages/orq-rc/src/funcs/evalsBotDetection.ts +21 -17
  304. package/packages/orq-rc/src/funcs/evalsContains.ts +21 -17
  305. package/packages/orq-rc/src/funcs/evalsContainsAll.ts +21 -17
  306. package/packages/orq-rc/src/funcs/evalsContainsAny.ts +21 -17
  307. package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +21 -17
  308. package/packages/orq-rc/src/funcs/evalsContainsNone.ts +21 -17
  309. package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +21 -17
  310. package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +21 -17
  311. package/packages/orq-rc/src/funcs/evalsCreate.ts +21 -17
  312. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  313. package/packages/orq-rc/src/funcs/evalsEndsWith.ts +21 -17
  314. package/packages/orq-rc/src/funcs/evalsExactMatch.ts +21 -17
  315. package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +21 -17
  316. package/packages/orq-rc/src/funcs/evalsGrammar.ts +21 -17
  317. package/packages/orq-rc/src/funcs/evalsInvoke.ts +177 -0
  318. package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +21 -17
  319. package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +21 -17
  320. package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +21 -17
  321. package/packages/orq-rc/src/funcs/evalsLocalization.ts +21 -17
  322. package/packages/orq-rc/src/funcs/evalsPii.ts +21 -17
  323. package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +21 -17
  324. package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +21 -17
  325. package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +21 -17
  326. package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +21 -17
  327. package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +21 -17
  328. package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +21 -17
  329. package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +21 -17
  330. package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +21 -17
  331. package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +21 -17
  332. package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +21 -17
  333. package/packages/orq-rc/src/funcs/evalsSummarization.ts +21 -17
  334. package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +21 -17
  335. package/packages/orq-rc/src/funcs/evalsTranslation.ts +21 -17
  336. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  337. package/packages/orq-rc/src/funcs/evalsValidJson.ts +21 -17
  338. package/packages/orq-rc/src/funcs/feedbackCreate.ts +21 -17
  339. package/packages/orq-rc/src/funcs/filesCreate.ts +32 -21
  340. package/packages/orq-rc/src/funcs/filesDelete.ts +21 -17
  341. package/packages/orq-rc/src/funcs/filesGet.ts +21 -17
  342. package/packages/orq-rc/src/funcs/filesList.ts +21 -17
  343. package/packages/orq-rc/src/funcs/getV2ModelsLitellmModels.ts +143 -0
  344. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +21 -17
  345. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +25 -21
  346. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +21 -17
  347. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +21 -17
  348. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +21 -17
  349. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +21 -17
  350. package/packages/orq-rc/src/funcs/knowledgeList.ts +21 -17
  351. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +21 -17
  352. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +21 -17
  353. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +21 -17
  354. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +21 -17
  355. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +21 -17
  356. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +21 -17
  357. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +21 -17
  358. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +21 -17
  359. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +21 -17
  360. package/packages/orq-rc/src/funcs/modelsList.ts +21 -17
  361. package/packages/orq-rc/src/funcs/postV2ModelsLitellmImport.ts +167 -0
  362. package/packages/orq-rc/src/funcs/promptsCreate.ts +21 -17
  363. package/packages/orq-rc/src/funcs/promptsDelete.ts +21 -17
  364. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +21 -17
  365. package/packages/orq-rc/src/funcs/promptsList.ts +21 -17
  366. package/packages/orq-rc/src/funcs/promptsListVersions.ts +21 -17
  367. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +21 -17
  368. package/packages/orq-rc/src/funcs/promptsUpdate.ts +21 -17
  369. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +21 -17
  370. package/packages/orq-rc/src/lib/config.ts +3 -3
  371. package/packages/orq-rc/src/lib/files.ts +42 -0
  372. package/packages/orq-rc/src/lib/matchers.ts +44 -41
  373. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  374. package/packages/orq-rc/src/mcp-server/server.ts +15 -3
  375. package/packages/orq-rc/src/mcp-server/tools/evalsAll.ts +35 -0
  376. package/packages/orq-rc/src/mcp-server/tools/{evalsRunBertScore.ts → evalsBertScore.ts} +5 -5
  377. package/packages/orq-rc/src/mcp-server/tools/evalsDelete.ts +33 -0
  378. package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +35 -0
  379. package/packages/orq-rc/src/mcp-server/tools/evalsUpdate.ts +35 -0
  380. package/packages/orq-rc/src/mcp-server/tools/getV2ModelsLitellmModels.ts +30 -0
  381. package/packages/orq-rc/src/mcp-server/tools/postV2ModelsLitellmImport.ts +38 -0
  382. package/packages/orq-rc/src/models/errors/apierror.ts +23 -31
  383. package/packages/orq-rc/src/models/errors/createeval.ts +15 -4
  384. package/packages/orq-rc/src/models/errors/deletecontact.ts +15 -5
  385. package/packages/orq-rc/src/models/errors/deleteeval.ts +82 -0
  386. package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +29 -8
  387. package/packages/orq-rc/src/models/errors/evalsbertscore.ts +158 -0
  388. package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +29 -8
  389. package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +29 -8
  390. package/packages/orq-rc/src/models/errors/evalscontains.ts +29 -8
  391. package/packages/orq-rc/src/models/errors/evalscontainsall.ts +29 -8
  392. package/packages/orq-rc/src/models/errors/evalscontainsany.ts +29 -8
  393. package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +29 -8
  394. package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +29 -8
  395. package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +29 -8
  396. package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +29 -8
  397. package/packages/orq-rc/src/models/errors/evalsendswith.ts +29 -8
  398. package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +29 -8
  399. package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +29 -8
  400. package/packages/orq-rc/src/models/errors/evalsgrammar.ts +29 -8
  401. package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +29 -8
  402. package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +29 -8
  403. package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +29 -8
  404. package/packages/orq-rc/src/models/errors/evalslocalization.ts +29 -8
  405. package/packages/orq-rc/src/models/errors/evalspii.ts +29 -8
  406. package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +29 -8
  407. package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +29 -8
  408. package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +29 -8
  409. package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +29 -8
  410. package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +29 -8
  411. package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +29 -8
  412. package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +29 -8
  413. package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +29 -8
  414. package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +29 -8
  415. package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +29 -8
  416. package/packages/orq-rc/src/models/errors/evalssummarization.ts +29 -8
  417. package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +29 -8
  418. package/packages/orq-rc/src/models/errors/evalstranslation.ts +29 -8
  419. package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +29 -8
  420. package/packages/orq-rc/src/models/errors/getevals.ts +82 -0
  421. package/packages/orq-rc/src/models/errors/getpromptversion.ts +15 -4
  422. package/packages/orq-rc/src/models/errors/honoapierror.ts +15 -5
  423. package/packages/orq-rc/src/models/errors/index.ts +6 -1
  424. package/packages/orq-rc/src/models/errors/invokeeval.ts +158 -0
  425. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  426. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  427. package/packages/orq-rc/src/models/errors/retrievecontact.ts +15 -5
  428. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +12 -0
  429. package/packages/orq-rc/src/models/errors/updatecontact.ts +15 -4
  430. package/packages/orq-rc/src/models/errors/updateeval.ts +82 -0
  431. package/packages/orq-rc/src/models/errors/updateprompt.ts +15 -4
  432. package/packages/orq-rc/src/models/operations/createchunk.ts +54 -44
  433. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  434. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  435. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  436. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  437. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  438. package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
  439. package/packages/orq-rc/src/models/operations/deleteeval.ts +66 -0
  440. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +30 -24
  441. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
  442. package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
  443. package/packages/orq-rc/src/models/operations/evalsbertscore.ts +197 -0
  444. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  445. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  446. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  447. package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
  448. package/packages/orq-rc/src/models/operations/getevals.ts +6187 -0
  449. package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
  450. package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
  451. package/packages/orq-rc/src/models/operations/getv2modelslitellmmodels.ts +530 -0
  452. package/packages/orq-rc/src/models/operations/index.ts +7 -1
  453. package/packages/orq-rc/src/models/operations/invokeeval.ts +2492 -0
  454. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  455. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  456. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  457. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  458. package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
  459. package/packages/orq-rc/src/models/operations/postv2modelslitellmimport.ts +2408 -0
  460. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  461. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  462. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  463. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  464. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  465. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  466. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  467. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  468. package/packages/orq-rc/src/models/operations/updateeval.ts +4131 -0
  469. package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
  470. package/packages/orq-rc/src/sdk/evals.ts +65 -5
  471. package/packages/orq-rc/src/sdk/knowledge.ts +1 -1
  472. package/packages/orq-rc/src/sdk/sdk.ts +37 -1
  473. package/src/funcs/contactsCreate.ts +21 -17
  474. package/src/funcs/datasetsClear.ts +21 -17
  475. package/src/funcs/datasetsCreate.ts +21 -17
  476. package/src/funcs/datasetsCreateDatapoint.ts +21 -17
  477. package/src/funcs/datasetsCreateDatapoints.ts +21 -17
  478. package/src/funcs/datasetsCreateExperiment.ts +21 -17
  479. package/src/funcs/datasetsDelete.ts +21 -17
  480. package/src/funcs/datasetsDeleteDatapoint.ts +21 -17
  481. package/src/funcs/datasetsList.ts +21 -17
  482. package/src/funcs/datasetsListDatapoints.ts +21 -17
  483. package/src/funcs/datasetsRetrieve.ts +21 -17
  484. package/src/funcs/datasetsRetrieveDatapoint.ts +21 -17
  485. package/src/funcs/datasetsUpdate.ts +21 -17
  486. package/src/funcs/datasetsUpdateDatapoint.ts +21 -17
  487. package/src/funcs/deploymentsCreateExperiment.ts +21 -17
  488. package/src/funcs/deploymentsGetConfig.ts +21 -17
  489. package/src/funcs/deploymentsInvoke.ts +21 -17
  490. package/src/funcs/deploymentsList.ts +21 -17
  491. package/src/funcs/deploymentsMetricsCreate.ts +21 -17
  492. package/src/funcs/deploymentsStream.ts +21 -17
  493. package/src/funcs/feedbackCreate.ts +21 -17
  494. package/src/funcs/filesCreate.ts +32 -21
  495. package/src/funcs/filesDelete.ts +21 -17
  496. package/src/funcs/filesGet.ts +21 -17
  497. package/src/funcs/filesList.ts +21 -17
  498. package/src/funcs/knowledgeCreate.ts +21 -17
  499. package/src/funcs/knowledgeCreateChunks.ts +21 -17
  500. package/src/funcs/knowledgeCreateDatasource.ts +21 -17
  501. package/src/funcs/knowledgeDelete.ts +21 -17
  502. package/src/funcs/knowledgeDeleteChunk.ts +21 -17
  503. package/src/funcs/knowledgeDeleteDatasource.ts +21 -17
  504. package/src/funcs/knowledgeList.ts +21 -17
  505. package/src/funcs/knowledgeListChunks.ts +21 -17
  506. package/src/funcs/knowledgeListDatasources.ts +21 -17
  507. package/src/funcs/knowledgeRetrieve.ts +21 -17
  508. package/src/funcs/knowledgeRetrieveChunk.ts +21 -17
  509. package/src/funcs/knowledgeRetrieveDatasource.ts +21 -17
  510. package/src/funcs/knowledgeSearch.ts +21 -17
  511. package/src/funcs/knowledgeUpdate.ts +21 -17
  512. package/src/funcs/knowledgeUpdateChunk.ts +21 -17
  513. package/src/funcs/knowledgeUpdateDatasource.ts +21 -17
  514. package/src/funcs/modelsList.ts +21 -17
  515. package/src/funcs/promptsCreate.ts +21 -17
  516. package/src/funcs/promptsDelete.ts +21 -17
  517. package/src/funcs/promptsGetVersion.ts +21 -17
  518. package/src/funcs/promptsList.ts +21 -17
  519. package/src/funcs/promptsListVersions.ts +21 -17
  520. package/src/funcs/promptsRetrieve.ts +21 -17
  521. package/src/funcs/promptsUpdate.ts +21 -17
  522. package/src/funcs/remoteconfigsRetrieve.ts +21 -17
  523. package/src/lib/config.ts +3 -3
  524. package/src/lib/files.ts +42 -0
  525. package/src/lib/matchers.ts +44 -41
  526. package/src/mcp-server/mcp-server.ts +1 -1
  527. package/src/mcp-server/server.ts +1 -1
  528. package/src/models/errors/apierror.ts +23 -31
  529. package/src/models/errors/getpromptversion.ts +15 -4
  530. package/src/models/errors/honoapierror.ts +15 -5
  531. package/src/models/errors/index.ts +1 -0
  532. package/src/models/errors/orqerror.ts +35 -0
  533. package/src/models/errors/responsevalidationerror.ts +50 -0
  534. package/src/models/errors/sdkvalidationerror.ts +12 -0
  535. package/src/models/errors/updateprompt.ts +15 -4
  536. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  537. package/src/models/operations/createcontact.ts +2 -2
  538. package/src/models/operations/createdataset.ts +2 -2
  539. package/src/models/operations/createdatasetitem.ts +2 -2
  540. package/src/models/operations/createdatasource.ts +2 -2
  541. package/src/models/operations/fileget.ts +2 -2
  542. package/src/models/operations/filelist.ts +2 -2
  543. package/src/models/operations/fileupload.ts +2 -2
  544. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  545. package/src/models/operations/listdatasets.ts +2 -2
  546. package/src/models/operations/listdatasources.ts +2 -2
  547. package/src/models/operations/retrievedatapoint.ts +2 -2
  548. package/src/models/operations/retrievedataset.ts +2 -2
  549. package/src/models/operations/retrievedatasource.ts +2 -2
  550. package/src/models/operations/updatedatapoint.ts +2 -2
  551. package/src/models/operations/updatedataset.ts +2 -2
  552. package/src/models/operations/updatedatasource.ts +2 -2
  553. package/packages/orq-rc/src/models/errors/runbertscore.ts +0 -137
  554. package/packages/orq-rc/src/models/operations/runbertscore.ts +0 -197
@@ -0,0 +1,2408 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type LitellmParams = {
13
+ useInPassThrough: boolean;
14
+ useLitellmProxy: boolean;
15
+ mergeReasoningContentInChoices: boolean;
16
+ model: string;
17
+ };
18
+
19
+ export type ModelInfo = {
20
+ id: string | null;
21
+ dbModel: boolean | null;
22
+ key: string | null;
23
+ maxTokens?: number | null | undefined;
24
+ maxInputTokens?: number | null | undefined;
25
+ maxOutputTokens?: number | null | undefined;
26
+ inputCostPerToken?: number | null | undefined;
27
+ cacheCreationInputTokenCost?: number | null | undefined;
28
+ cacheReadInputTokenCost?: number | null | undefined;
29
+ inputCostPerCharacter?: number | null | undefined;
30
+ inputCostPerTokenAbove128kTokens?: number | null | undefined;
31
+ inputCostPerTokenAbove200kTokens?: number | null | undefined;
32
+ inputCostPerQuery?: number | null | undefined;
33
+ inputCostPerSecond?: number | null | undefined;
34
+ inputCostPerAudioToken?: number | null | undefined;
35
+ inputCostPerTokenBatches?: number | null | undefined;
36
+ outputCostPerTokenBatches?: number | null | undefined;
37
+ outputCostPerToken?: number | null | undefined;
38
+ outputCostPerAudioToken?: number | null | undefined;
39
+ outputCostPerCharacter?: number | null | undefined;
40
+ outputCostPerReasoningToken?: number | null | undefined;
41
+ outputCostPerTokenAbove128kTokens?: number | null | undefined;
42
+ outputCostPerCharacterAbove128kTokens?: number | null | undefined;
43
+ outputCostPerTokenAbove200kTokens?: number | null | undefined;
44
+ outputCostPerSecond?: number | null | undefined;
45
+ outputCostPerImage?: number | null | undefined;
46
+ outputVectorSize?: number | null | undefined;
47
+ litellmProvider: string | null;
48
+ mode: string | null;
49
+ supportsSystemMessages?: boolean | null | undefined;
50
+ supportsResponseSchema?: boolean | null | undefined;
51
+ supportsVision?: boolean | null | undefined;
52
+ supportsFunctionCalling?: boolean | null | undefined;
53
+ supportsToolChoice?: boolean | null | undefined;
54
+ supportsAssistantPrefill?: boolean | null | undefined;
55
+ supportsPromptCaching?: boolean | null | undefined;
56
+ supportsAudioInput?: boolean | null | undefined;
57
+ supportsAudioOutput?: boolean | null | undefined;
58
+ supportsPdfInput?: boolean | null | undefined;
59
+ supportsEmbeddingImageInput?: boolean | null | undefined;
60
+ supportsNativeStreaming?: boolean | null | undefined;
61
+ supportsWebSearch?: boolean | null | undefined;
62
+ supportsUrlContext?: boolean | null | undefined;
63
+ supportsReasoning?: boolean | null | undefined;
64
+ supportsComputerUse?: boolean | null | undefined;
65
+ searchContextCostPerQuery?: number | null | undefined;
66
+ tpm?: number | null | undefined;
67
+ rpm?: number | null | undefined;
68
+ supportedOpenaiParams?: Array<string> | null | undefined;
69
+ };
70
+
71
+ export type RequestBody = {
72
+ modelName: string;
73
+ litellmParams: LitellmParams;
74
+ modelInfo: ModelInfo;
75
+ };
76
+
77
+ /**
78
+ * The modality of the model
79
+ */
80
+ export const PostV2ModelsLitellmImportModelType = {
81
+ Chat: "chat",
82
+ Completion: "completion",
83
+ Embedding: "embedding",
84
+ Vision: "vision",
85
+ Image: "image",
86
+ Tts: "tts",
87
+ Stt: "stt",
88
+ Rerank: "rerank",
89
+ Moderations: "moderations",
90
+ } as const;
91
+ /**
92
+ * The modality of the model
93
+ */
94
+ export type PostV2ModelsLitellmImportModelType = ClosedEnum<
95
+ typeof PostV2ModelsLitellmImportModelType
96
+ >;
97
+
98
+ /**
99
+ * The provider of the AI service
100
+ */
101
+ export const PostV2ModelsLitellmImportProvider = {
102
+ Cohere: "cohere",
103
+ Openai: "openai",
104
+ Anthropic: "anthropic",
105
+ Huggingface: "huggingface",
106
+ Replicate: "replicate",
107
+ Google: "google",
108
+ GoogleAi: "google-ai",
109
+ Azure: "azure",
110
+ Aws: "aws",
111
+ Anyscale: "anyscale",
112
+ Perplexity: "perplexity",
113
+ Groq: "groq",
114
+ Fal: "fal",
115
+ Leonardoai: "leonardoai",
116
+ Nvidia: "nvidia",
117
+ Jina: "jina",
118
+ Togetherai: "togetherai",
119
+ Elevenlabs: "elevenlabs",
120
+ Litellm: "litellm",
121
+ } as const;
122
+ /**
123
+ * The provider of the AI service
124
+ */
125
+ export type PostV2ModelsLitellmImportProvider = ClosedEnum<
126
+ typeof PostV2ModelsLitellmImportProvider
127
+ >;
128
+
129
+ export const Region = {
130
+ Us: "us",
131
+ Europe: "europe",
132
+ Rest: "rest",
133
+ } as const;
134
+ export type Region = ClosedEnum<typeof Region>;
135
+
136
+ export type PostV2ModelsLitellmImportMetadata = {
137
+ contextWindow?: number | undefined;
138
+ isPrivate: boolean;
139
+ region: Region;
140
+ hasFunctions?: boolean | undefined;
141
+ strictToolSupported?: boolean | undefined;
142
+ jsonModeResponseFormatSupported?: boolean | undefined;
143
+ jsonSchemaResponseFormatSupported?: boolean | undefined;
144
+ supportSystemMessage?: boolean | undefined;
145
+ streamingNotSupported?: boolean | undefined;
146
+ /**
147
+ * Indicates if the model was in our database during creation of the private model
148
+ */
149
+ dbMatch?: boolean | undefined;
150
+ imageTokenCost?: number | undefined;
151
+ };
152
+
153
+ export const PostV2ModelsLitellmImportConfigurationResponse200Provider = {
154
+ Nvidia: "nvidia",
155
+ } as const;
156
+ export type PostV2ModelsLitellmImportConfigurationResponse200Provider =
157
+ ClosedEnum<typeof PostV2ModelsLitellmImportConfigurationResponse200Provider>;
158
+
159
+ export type Configuration4 = {
160
+ provider: PostV2ModelsLitellmImportConfigurationResponse200Provider;
161
+ hostUrl: string;
162
+ };
163
+
164
+ export const PostV2ModelsLitellmImportConfigurationResponseProvider = {
165
+ Aws: "aws",
166
+ } as const;
167
+ export type PostV2ModelsLitellmImportConfigurationResponseProvider = ClosedEnum<
168
+ typeof PostV2ModelsLitellmImportConfigurationResponseProvider
169
+ >;
170
+
171
+ export type Configuration3 = {
172
+ provider: PostV2ModelsLitellmImportConfigurationResponseProvider;
173
+ region: string;
174
+ };
175
+
176
+ export const PostV2ModelsLitellmImportConfigurationProvider = {
177
+ Google: "google",
178
+ } as const;
179
+ export type PostV2ModelsLitellmImportConfigurationProvider = ClosedEnum<
180
+ typeof PostV2ModelsLitellmImportConfigurationProvider
181
+ >;
182
+
183
+ export type Configuration2 = {
184
+ provider: PostV2ModelsLitellmImportConfigurationProvider;
185
+ serviceAccount: string;
186
+ region: string;
187
+ location: string;
188
+ shouldUseBetaFeatures: boolean;
189
+ projectId: string;
190
+ isOpenaiCompatible?: boolean | undefined;
191
+ isTunedModel?: boolean | undefined;
192
+ };
193
+
194
+ export const ConfigurationProvider = {
195
+ Azure: "azure",
196
+ } as const;
197
+ export type ConfigurationProvider = ClosedEnum<typeof ConfigurationProvider>;
198
+
199
+ export type Configuration1 = {
200
+ provider: ConfigurationProvider;
201
+ endpoint: string;
202
+ apiKey: string;
203
+ };
204
+
205
+ /**
206
+ * The configuration of the model
207
+ */
208
+ export type Configuration =
209
+ | Configuration3
210
+ | Configuration4
211
+ | Configuration1
212
+ | Configuration2;
213
+
214
+ /**
215
+ * Parameters value
216
+ */
217
+ export const PostV2ModelsLitellmImportParametersParameter = {
218
+ TopK: "topK",
219
+ TopP: "topP",
220
+ Temperature: "temperature",
221
+ FrequencyPenalty: "frequencyPenalty",
222
+ PresencePenalty: "presencePenalty",
223
+ MaxTokens: "maxTokens",
224
+ NumImages: "numImages",
225
+ Format: "format",
226
+ Dimensions: "dimensions",
227
+ Quality: "quality",
228
+ Style: "style",
229
+ Seed: "seed",
230
+ PhotoRealVersion: "photoRealVersion",
231
+ ResponseFormat: "responseFormat",
232
+ ReasoningEffort: "reasoningEffort",
233
+ BudgetTokens: "budgetTokens",
234
+ } as const;
235
+ /**
236
+ * Parameters value
237
+ */
238
+ export type PostV2ModelsLitellmImportParametersParameter = ClosedEnum<
239
+ typeof PostV2ModelsLitellmImportParametersParameter
240
+ >;
241
+
242
+ export const PostV2ModelsLitellmImportParametersParameterType = {
243
+ Select: "select",
244
+ } as const;
245
+ export type PostV2ModelsLitellmImportParametersParameterType = ClosedEnum<
246
+ typeof PostV2ModelsLitellmImportParametersParameterType
247
+ >;
248
+
249
+ export type Options = {
250
+ displayName: string;
251
+ value: string;
252
+ };
253
+
254
+ export type PostV2ModelsLitellmImportParametersConfig = {
255
+ default: string;
256
+ options: Array<Options>;
257
+ };
258
+
259
+ export type Parameters3 = {
260
+ id: string;
261
+ name: string;
262
+ /**
263
+ * Parameters value
264
+ */
265
+ parameter: PostV2ModelsLitellmImportParametersParameter;
266
+ description: string;
267
+ hints?: string | null | undefined;
268
+ isActive: boolean;
269
+ position?: number | null | undefined;
270
+ parameterType: PostV2ModelsLitellmImportParametersParameterType;
271
+ config: PostV2ModelsLitellmImportParametersConfig;
272
+ };
273
+
274
+ /**
275
+ * Parameters value
276
+ */
277
+ export const ParametersParameter = {
278
+ TopK: "topK",
279
+ TopP: "topP",
280
+ Temperature: "temperature",
281
+ FrequencyPenalty: "frequencyPenalty",
282
+ PresencePenalty: "presencePenalty",
283
+ MaxTokens: "maxTokens",
284
+ NumImages: "numImages",
285
+ Format: "format",
286
+ Dimensions: "dimensions",
287
+ Quality: "quality",
288
+ Style: "style",
289
+ Seed: "seed",
290
+ PhotoRealVersion: "photoRealVersion",
291
+ ResponseFormat: "responseFormat",
292
+ ReasoningEffort: "reasoningEffort",
293
+ BudgetTokens: "budgetTokens",
294
+ } as const;
295
+ /**
296
+ * Parameters value
297
+ */
298
+ export type ParametersParameter = ClosedEnum<typeof ParametersParameter>;
299
+
300
+ export const ParametersParameterType = {
301
+ Switch: "switch",
302
+ } as const;
303
+ export type ParametersParameterType = ClosedEnum<
304
+ typeof ParametersParameterType
305
+ >;
306
+
307
+ export type ParametersConfig = {
308
+ default: boolean;
309
+ };
310
+
311
+ export type Parameters2 = {
312
+ id: string;
313
+ name: string;
314
+ /**
315
+ * Parameters value
316
+ */
317
+ parameter: ParametersParameter;
318
+ description: string;
319
+ hints?: string | null | undefined;
320
+ isActive: boolean;
321
+ position?: number | null | undefined;
322
+ parameterType: ParametersParameterType;
323
+ config: ParametersConfig;
324
+ };
325
+
326
+ /**
327
+ * Parameters value
328
+ */
329
+ export const Parameter = {
330
+ TopK: "topK",
331
+ TopP: "topP",
332
+ Temperature: "temperature",
333
+ FrequencyPenalty: "frequencyPenalty",
334
+ PresencePenalty: "presencePenalty",
335
+ MaxTokens: "maxTokens",
336
+ NumImages: "numImages",
337
+ Format: "format",
338
+ Dimensions: "dimensions",
339
+ Quality: "quality",
340
+ Style: "style",
341
+ Seed: "seed",
342
+ PhotoRealVersion: "photoRealVersion",
343
+ ResponseFormat: "responseFormat",
344
+ ReasoningEffort: "reasoningEffort",
345
+ BudgetTokens: "budgetTokens",
346
+ } as const;
347
+ /**
348
+ * Parameters value
349
+ */
350
+ export type Parameter = ClosedEnum<typeof Parameter>;
351
+
352
+ export const ParameterType = {
353
+ Slider: "slider",
354
+ } as const;
355
+ export type ParameterType = ClosedEnum<typeof ParameterType>;
356
+
357
+ export type Config = {
358
+ default: number;
359
+ max: number;
360
+ min: number;
361
+ step: number;
362
+ };
363
+
364
+ export type Parameters1 = {
365
+ id: string;
366
+ name: string;
367
+ /**
368
+ * Parameters value
369
+ */
370
+ parameter: Parameter;
371
+ description: string;
372
+ hints?: string | null | undefined;
373
+ isActive: boolean;
374
+ position?: number | null | undefined;
375
+ parameterType: ParameterType;
376
+ config: Config;
377
+ };
378
+
379
+ export type ParametersT = Parameters1 | Parameters2 | Parameters3;
380
+
381
+ export type PostV2ModelsLitellmImportResponseBody = {
382
+ /**
383
+ * Unique identifier of the model
384
+ */
385
+ id: string;
386
+ /**
387
+ * A timestamp reflecting when the model was created
388
+ */
389
+ created: Date;
390
+ /**
391
+ * Indicates the last time the model was updated
392
+ */
393
+ updated: Date;
394
+ /**
395
+ * The display name of the model in the UI
396
+ */
397
+ displayName: string;
398
+ /**
399
+ * The model id for the provider
400
+ */
401
+ modelId: string;
402
+ /**
403
+ * The current revision of the model
404
+ */
405
+ modelRevision?: string | undefined;
406
+ /**
407
+ * The developer of the model
408
+ */
409
+ modelDeveloper: string;
410
+ /**
411
+ * The model family
412
+ */
413
+ modelFamily: string;
414
+ /**
415
+ * The modality of the model
416
+ */
417
+ modelType: PostV2ModelsLitellmImportModelType;
418
+ /**
419
+ * The provider of the AI service
420
+ */
421
+ provider: PostV2ModelsLitellmImportProvider;
422
+ /**
423
+ * Indicates if the model is active
424
+ */
425
+ isActive?: boolean | undefined;
426
+ /**
427
+ * The cost per 1000 input tokens
428
+ */
429
+ inputCost: number;
430
+ /**
431
+ * Input currency
432
+ */
433
+ inputCurrency?: string | undefined;
434
+ /**
435
+ * The cost per 1000 output tokens
436
+ */
437
+ outputCost: number;
438
+ /**
439
+ * Output currency
440
+ */
441
+ outputCurrency?: string | undefined;
442
+ /**
443
+ * Description
444
+ */
445
+ description?: string | undefined;
446
+ /**
447
+ * Indicates if this model supports function calling
448
+ */
449
+ hasFunctions?: boolean | undefined;
450
+ /**
451
+ * Indicates if this model pricing is based on time
452
+ */
453
+ hasCpuPricing?: boolean | undefined;
454
+ /**
455
+ * The url of the pricing for the model
456
+ */
457
+ pricingUrl?: string | undefined;
458
+ /**
459
+ * The link for the endpoint documentation
460
+ */
461
+ docsUrl?: string | undefined;
462
+ /**
463
+ * Indicates if the model is enabled
464
+ */
465
+ enabled: boolean;
466
+ /**
467
+ * If the value is `true` the model will be visible in the Prompt Studio
468
+ */
469
+ enabledForEndpoints?: boolean | undefined;
470
+ /**
471
+ * If the value is `true` the model will be visible in the Playground
472
+ */
473
+ enabledForPlayground?: boolean | undefined;
474
+ /**
475
+ * The owner of the model. If the value is `system` the model is provider by Orq.ai, otherwise is a private model
476
+ */
477
+ owner?: string | undefined;
478
+ metadata: PostV2ModelsLitellmImportMetadata;
479
+ /**
480
+ * The configuration of the model
481
+ */
482
+ configuration?:
483
+ | Configuration3
484
+ | Configuration4
485
+ | Configuration1
486
+ | Configuration2
487
+ | undefined;
488
+ /**
489
+ * The parameters of the model
490
+ */
491
+ parameters: Array<Parameters1 | Parameters2 | Parameters3>;
492
+ };
493
+
494
+ /** @internal */
495
+ export const LitellmParams$inboundSchema: z.ZodType<
496
+ LitellmParams,
497
+ z.ZodTypeDef,
498
+ unknown
499
+ > = z.object({
500
+ use_in_pass_through: z.boolean(),
501
+ use_litellm_proxy: z.boolean(),
502
+ merge_reasoning_content_in_choices: z.boolean(),
503
+ model: z.string(),
504
+ }).transform((v) => {
505
+ return remap$(v, {
506
+ "use_in_pass_through": "useInPassThrough",
507
+ "use_litellm_proxy": "useLitellmProxy",
508
+ "merge_reasoning_content_in_choices": "mergeReasoningContentInChoices",
509
+ });
510
+ });
511
+
512
+ /** @internal */
513
+ export type LitellmParams$Outbound = {
514
+ use_in_pass_through: boolean;
515
+ use_litellm_proxy: boolean;
516
+ merge_reasoning_content_in_choices: boolean;
517
+ model: string;
518
+ };
519
+
520
+ /** @internal */
521
+ export const LitellmParams$outboundSchema: z.ZodType<
522
+ LitellmParams$Outbound,
523
+ z.ZodTypeDef,
524
+ LitellmParams
525
+ > = z.object({
526
+ useInPassThrough: z.boolean(),
527
+ useLitellmProxy: z.boolean(),
528
+ mergeReasoningContentInChoices: z.boolean(),
529
+ model: z.string(),
530
+ }).transform((v) => {
531
+ return remap$(v, {
532
+ useInPassThrough: "use_in_pass_through",
533
+ useLitellmProxy: "use_litellm_proxy",
534
+ mergeReasoningContentInChoices: "merge_reasoning_content_in_choices",
535
+ });
536
+ });
537
+
538
+ /**
539
+ * @internal
540
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
541
+ */
542
+ export namespace LitellmParams$ {
543
+ /** @deprecated use `LitellmParams$inboundSchema` instead. */
544
+ export const inboundSchema = LitellmParams$inboundSchema;
545
+ /** @deprecated use `LitellmParams$outboundSchema` instead. */
546
+ export const outboundSchema = LitellmParams$outboundSchema;
547
+ /** @deprecated use `LitellmParams$Outbound` instead. */
548
+ export type Outbound = LitellmParams$Outbound;
549
+ }
550
+
551
+ export function litellmParamsToJSON(litellmParams: LitellmParams): string {
552
+ return JSON.stringify(LitellmParams$outboundSchema.parse(litellmParams));
553
+ }
554
+
555
+ export function litellmParamsFromJSON(
556
+ jsonString: string,
557
+ ): SafeParseResult<LitellmParams, SDKValidationError> {
558
+ return safeParse(
559
+ jsonString,
560
+ (x) => LitellmParams$inboundSchema.parse(JSON.parse(x)),
561
+ `Failed to parse 'LitellmParams' from JSON`,
562
+ );
563
+ }
564
+
565
+ /** @internal */
566
+ export const ModelInfo$inboundSchema: z.ZodType<
567
+ ModelInfo,
568
+ z.ZodTypeDef,
569
+ unknown
570
+ > = z.object({
571
+ id: z.nullable(z.string()),
572
+ db_model: z.nullable(z.boolean()),
573
+ key: z.nullable(z.string()),
574
+ max_tokens: z.nullable(z.number()).optional(),
575
+ max_input_tokens: z.nullable(z.number()).optional(),
576
+ max_output_tokens: z.nullable(z.number()).optional(),
577
+ input_cost_per_token: z.nullable(z.number()).optional(),
578
+ cache_creation_input_token_cost: z.nullable(z.number()).optional(),
579
+ cache_read_input_token_cost: z.nullable(z.number()).optional(),
580
+ input_cost_per_character: z.nullable(z.number()).optional(),
581
+ input_cost_per_token_above_128k_tokens: z.nullable(z.number()).optional(),
582
+ input_cost_per_token_above_200k_tokens: z.nullable(z.number()).optional(),
583
+ input_cost_per_query: z.nullable(z.number()).optional(),
584
+ input_cost_per_second: z.nullable(z.number()).optional(),
585
+ input_cost_per_audio_token: z.nullable(z.number()).optional(),
586
+ input_cost_per_token_batches: z.nullable(z.number()).optional(),
587
+ output_cost_per_token_batches: z.nullable(z.number()).optional(),
588
+ output_cost_per_token: z.nullable(z.number()).optional(),
589
+ output_cost_per_audio_token: z.nullable(z.number()).optional(),
590
+ output_cost_per_character: z.nullable(z.number()).optional(),
591
+ output_cost_per_reasoning_token: z.nullable(z.number()).optional(),
592
+ output_cost_per_token_above_128k_tokens: z.nullable(z.number()).optional(),
593
+ output_cost_per_character_above_128k_tokens: z.nullable(z.number())
594
+ .optional(),
595
+ output_cost_per_token_above_200k_tokens: z.nullable(z.number()).optional(),
596
+ output_cost_per_second: z.nullable(z.number()).optional(),
597
+ output_cost_per_image: z.nullable(z.number()).optional(),
598
+ output_vector_size: z.nullable(z.number()).optional(),
599
+ litellm_provider: z.nullable(z.string()),
600
+ mode: z.nullable(z.string()),
601
+ supports_system_messages: z.nullable(z.boolean()).optional(),
602
+ supports_response_schema: z.nullable(z.boolean()).optional(),
603
+ supports_vision: z.nullable(z.boolean()).optional(),
604
+ supports_function_calling: z.nullable(z.boolean()).optional(),
605
+ supports_tool_choice: z.nullable(z.boolean()).optional(),
606
+ supports_assistant_prefill: z.nullable(z.boolean()).optional(),
607
+ supports_prompt_caching: z.nullable(z.boolean()).optional(),
608
+ supports_audio_input: z.nullable(z.boolean()).optional(),
609
+ supports_audio_output: z.nullable(z.boolean()).optional(),
610
+ supports_pdf_input: z.nullable(z.boolean()).optional(),
611
+ supports_embedding_image_input: z.nullable(z.boolean()).optional(),
612
+ supports_native_streaming: z.nullable(z.boolean()).optional(),
613
+ supports_web_search: z.nullable(z.boolean()).optional(),
614
+ supports_url_context: z.nullable(z.boolean()).optional(),
615
+ supports_reasoning: z.nullable(z.boolean()).optional(),
616
+ supports_computer_use: z.nullable(z.boolean()).optional(),
617
+ search_context_cost_per_query: z.nullable(z.number()).optional(),
618
+ tpm: z.nullable(z.number()).optional(),
619
+ rpm: z.nullable(z.number()).optional(),
620
+ supported_openai_params: z.nullable(z.array(z.string())).optional(),
621
+ }).transform((v) => {
622
+ return remap$(v, {
623
+ "db_model": "dbModel",
624
+ "max_tokens": "maxTokens",
625
+ "max_input_tokens": "maxInputTokens",
626
+ "max_output_tokens": "maxOutputTokens",
627
+ "input_cost_per_token": "inputCostPerToken",
628
+ "cache_creation_input_token_cost": "cacheCreationInputTokenCost",
629
+ "cache_read_input_token_cost": "cacheReadInputTokenCost",
630
+ "input_cost_per_character": "inputCostPerCharacter",
631
+ "input_cost_per_token_above_128k_tokens":
632
+ "inputCostPerTokenAbove128kTokens",
633
+ "input_cost_per_token_above_200k_tokens":
634
+ "inputCostPerTokenAbove200kTokens",
635
+ "input_cost_per_query": "inputCostPerQuery",
636
+ "input_cost_per_second": "inputCostPerSecond",
637
+ "input_cost_per_audio_token": "inputCostPerAudioToken",
638
+ "input_cost_per_token_batches": "inputCostPerTokenBatches",
639
+ "output_cost_per_token_batches": "outputCostPerTokenBatches",
640
+ "output_cost_per_token": "outputCostPerToken",
641
+ "output_cost_per_audio_token": "outputCostPerAudioToken",
642
+ "output_cost_per_character": "outputCostPerCharacter",
643
+ "output_cost_per_reasoning_token": "outputCostPerReasoningToken",
644
+ "output_cost_per_token_above_128k_tokens":
645
+ "outputCostPerTokenAbove128kTokens",
646
+ "output_cost_per_character_above_128k_tokens":
647
+ "outputCostPerCharacterAbove128kTokens",
648
+ "output_cost_per_token_above_200k_tokens":
649
+ "outputCostPerTokenAbove200kTokens",
650
+ "output_cost_per_second": "outputCostPerSecond",
651
+ "output_cost_per_image": "outputCostPerImage",
652
+ "output_vector_size": "outputVectorSize",
653
+ "litellm_provider": "litellmProvider",
654
+ "supports_system_messages": "supportsSystemMessages",
655
+ "supports_response_schema": "supportsResponseSchema",
656
+ "supports_vision": "supportsVision",
657
+ "supports_function_calling": "supportsFunctionCalling",
658
+ "supports_tool_choice": "supportsToolChoice",
659
+ "supports_assistant_prefill": "supportsAssistantPrefill",
660
+ "supports_prompt_caching": "supportsPromptCaching",
661
+ "supports_audio_input": "supportsAudioInput",
662
+ "supports_audio_output": "supportsAudioOutput",
663
+ "supports_pdf_input": "supportsPdfInput",
664
+ "supports_embedding_image_input": "supportsEmbeddingImageInput",
665
+ "supports_native_streaming": "supportsNativeStreaming",
666
+ "supports_web_search": "supportsWebSearch",
667
+ "supports_url_context": "supportsUrlContext",
668
+ "supports_reasoning": "supportsReasoning",
669
+ "supports_computer_use": "supportsComputerUse",
670
+ "search_context_cost_per_query": "searchContextCostPerQuery",
671
+ "supported_openai_params": "supportedOpenaiParams",
672
+ });
673
+ });
674
+
675
+ /** @internal */
676
+ export type ModelInfo$Outbound = {
677
+ id: string | null;
678
+ db_model: boolean | null;
679
+ key: string | null;
680
+ max_tokens?: number | null | undefined;
681
+ max_input_tokens?: number | null | undefined;
682
+ max_output_tokens?: number | null | undefined;
683
+ input_cost_per_token?: number | null | undefined;
684
+ cache_creation_input_token_cost?: number | null | undefined;
685
+ cache_read_input_token_cost?: number | null | undefined;
686
+ input_cost_per_character?: number | null | undefined;
687
+ input_cost_per_token_above_128k_tokens?: number | null | undefined;
688
+ input_cost_per_token_above_200k_tokens?: number | null | undefined;
689
+ input_cost_per_query?: number | null | undefined;
690
+ input_cost_per_second?: number | null | undefined;
691
+ input_cost_per_audio_token?: number | null | undefined;
692
+ input_cost_per_token_batches?: number | null | undefined;
693
+ output_cost_per_token_batches?: number | null | undefined;
694
+ output_cost_per_token?: number | null | undefined;
695
+ output_cost_per_audio_token?: number | null | undefined;
696
+ output_cost_per_character?: number | null | undefined;
697
+ output_cost_per_reasoning_token?: number | null | undefined;
698
+ output_cost_per_token_above_128k_tokens?: number | null | undefined;
699
+ output_cost_per_character_above_128k_tokens?: number | null | undefined;
700
+ output_cost_per_token_above_200k_tokens?: number | null | undefined;
701
+ output_cost_per_second?: number | null | undefined;
702
+ output_cost_per_image?: number | null | undefined;
703
+ output_vector_size?: number | null | undefined;
704
+ litellm_provider: string | null;
705
+ mode: string | null;
706
+ supports_system_messages?: boolean | null | undefined;
707
+ supports_response_schema?: boolean | null | undefined;
708
+ supports_vision?: boolean | null | undefined;
709
+ supports_function_calling?: boolean | null | undefined;
710
+ supports_tool_choice?: boolean | null | undefined;
711
+ supports_assistant_prefill?: boolean | null | undefined;
712
+ supports_prompt_caching?: boolean | null | undefined;
713
+ supports_audio_input?: boolean | null | undefined;
714
+ supports_audio_output?: boolean | null | undefined;
715
+ supports_pdf_input?: boolean | null | undefined;
716
+ supports_embedding_image_input?: boolean | null | undefined;
717
+ supports_native_streaming?: boolean | null | undefined;
718
+ supports_web_search?: boolean | null | undefined;
719
+ supports_url_context?: boolean | null | undefined;
720
+ supports_reasoning?: boolean | null | undefined;
721
+ supports_computer_use?: boolean | null | undefined;
722
+ search_context_cost_per_query?: number | null | undefined;
723
+ tpm?: number | null | undefined;
724
+ rpm?: number | null | undefined;
725
+ supported_openai_params?: Array<string> | null | undefined;
726
+ };
727
+
728
+ /** @internal */
729
+ export const ModelInfo$outboundSchema: z.ZodType<
730
+ ModelInfo$Outbound,
731
+ z.ZodTypeDef,
732
+ ModelInfo
733
+ > = z.object({
734
+ id: z.nullable(z.string()),
735
+ dbModel: z.nullable(z.boolean()),
736
+ key: z.nullable(z.string()),
737
+ maxTokens: z.nullable(z.number()).optional(),
738
+ maxInputTokens: z.nullable(z.number()).optional(),
739
+ maxOutputTokens: z.nullable(z.number()).optional(),
740
+ inputCostPerToken: z.nullable(z.number()).optional(),
741
+ cacheCreationInputTokenCost: z.nullable(z.number()).optional(),
742
+ cacheReadInputTokenCost: z.nullable(z.number()).optional(),
743
+ inputCostPerCharacter: z.nullable(z.number()).optional(),
744
+ inputCostPerTokenAbove128kTokens: z.nullable(z.number()).optional(),
745
+ inputCostPerTokenAbove200kTokens: z.nullable(z.number()).optional(),
746
+ inputCostPerQuery: z.nullable(z.number()).optional(),
747
+ inputCostPerSecond: z.nullable(z.number()).optional(),
748
+ inputCostPerAudioToken: z.nullable(z.number()).optional(),
749
+ inputCostPerTokenBatches: z.nullable(z.number()).optional(),
750
+ outputCostPerTokenBatches: z.nullable(z.number()).optional(),
751
+ outputCostPerToken: z.nullable(z.number()).optional(),
752
+ outputCostPerAudioToken: z.nullable(z.number()).optional(),
753
+ outputCostPerCharacter: z.nullable(z.number()).optional(),
754
+ outputCostPerReasoningToken: z.nullable(z.number()).optional(),
755
+ outputCostPerTokenAbove128kTokens: z.nullable(z.number()).optional(),
756
+ outputCostPerCharacterAbove128kTokens: z.nullable(z.number()).optional(),
757
+ outputCostPerTokenAbove200kTokens: z.nullable(z.number()).optional(),
758
+ outputCostPerSecond: z.nullable(z.number()).optional(),
759
+ outputCostPerImage: z.nullable(z.number()).optional(),
760
+ outputVectorSize: z.nullable(z.number()).optional(),
761
+ litellmProvider: z.nullable(z.string()),
762
+ mode: z.nullable(z.string()),
763
+ supportsSystemMessages: z.nullable(z.boolean()).optional(),
764
+ supportsResponseSchema: z.nullable(z.boolean()).optional(),
765
+ supportsVision: z.nullable(z.boolean()).optional(),
766
+ supportsFunctionCalling: z.nullable(z.boolean()).optional(),
767
+ supportsToolChoice: z.nullable(z.boolean()).optional(),
768
+ supportsAssistantPrefill: z.nullable(z.boolean()).optional(),
769
+ supportsPromptCaching: z.nullable(z.boolean()).optional(),
770
+ supportsAudioInput: z.nullable(z.boolean()).optional(),
771
+ supportsAudioOutput: z.nullable(z.boolean()).optional(),
772
+ supportsPdfInput: z.nullable(z.boolean()).optional(),
773
+ supportsEmbeddingImageInput: z.nullable(z.boolean()).optional(),
774
+ supportsNativeStreaming: z.nullable(z.boolean()).optional(),
775
+ supportsWebSearch: z.nullable(z.boolean()).optional(),
776
+ supportsUrlContext: z.nullable(z.boolean()).optional(),
777
+ supportsReasoning: z.nullable(z.boolean()).optional(),
778
+ supportsComputerUse: z.nullable(z.boolean()).optional(),
779
+ searchContextCostPerQuery: z.nullable(z.number()).optional(),
780
+ tpm: z.nullable(z.number()).optional(),
781
+ rpm: z.nullable(z.number()).optional(),
782
+ supportedOpenaiParams: z.nullable(z.array(z.string())).optional(),
783
+ }).transform((v) => {
784
+ return remap$(v, {
785
+ dbModel: "db_model",
786
+ maxTokens: "max_tokens",
787
+ maxInputTokens: "max_input_tokens",
788
+ maxOutputTokens: "max_output_tokens",
789
+ inputCostPerToken: "input_cost_per_token",
790
+ cacheCreationInputTokenCost: "cache_creation_input_token_cost",
791
+ cacheReadInputTokenCost: "cache_read_input_token_cost",
792
+ inputCostPerCharacter: "input_cost_per_character",
793
+ inputCostPerTokenAbove128kTokens: "input_cost_per_token_above_128k_tokens",
794
+ inputCostPerTokenAbove200kTokens: "input_cost_per_token_above_200k_tokens",
795
+ inputCostPerQuery: "input_cost_per_query",
796
+ inputCostPerSecond: "input_cost_per_second",
797
+ inputCostPerAudioToken: "input_cost_per_audio_token",
798
+ inputCostPerTokenBatches: "input_cost_per_token_batches",
799
+ outputCostPerTokenBatches: "output_cost_per_token_batches",
800
+ outputCostPerToken: "output_cost_per_token",
801
+ outputCostPerAudioToken: "output_cost_per_audio_token",
802
+ outputCostPerCharacter: "output_cost_per_character",
803
+ outputCostPerReasoningToken: "output_cost_per_reasoning_token",
804
+ outputCostPerTokenAbove128kTokens:
805
+ "output_cost_per_token_above_128k_tokens",
806
+ outputCostPerCharacterAbove128kTokens:
807
+ "output_cost_per_character_above_128k_tokens",
808
+ outputCostPerTokenAbove200kTokens:
809
+ "output_cost_per_token_above_200k_tokens",
810
+ outputCostPerSecond: "output_cost_per_second",
811
+ outputCostPerImage: "output_cost_per_image",
812
+ outputVectorSize: "output_vector_size",
813
+ litellmProvider: "litellm_provider",
814
+ supportsSystemMessages: "supports_system_messages",
815
+ supportsResponseSchema: "supports_response_schema",
816
+ supportsVision: "supports_vision",
817
+ supportsFunctionCalling: "supports_function_calling",
818
+ supportsToolChoice: "supports_tool_choice",
819
+ supportsAssistantPrefill: "supports_assistant_prefill",
820
+ supportsPromptCaching: "supports_prompt_caching",
821
+ supportsAudioInput: "supports_audio_input",
822
+ supportsAudioOutput: "supports_audio_output",
823
+ supportsPdfInput: "supports_pdf_input",
824
+ supportsEmbeddingImageInput: "supports_embedding_image_input",
825
+ supportsNativeStreaming: "supports_native_streaming",
826
+ supportsWebSearch: "supports_web_search",
827
+ supportsUrlContext: "supports_url_context",
828
+ supportsReasoning: "supports_reasoning",
829
+ supportsComputerUse: "supports_computer_use",
830
+ searchContextCostPerQuery: "search_context_cost_per_query",
831
+ supportedOpenaiParams: "supported_openai_params",
832
+ });
833
+ });
834
+
835
+ /**
836
+ * @internal
837
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
838
+ */
839
+ export namespace ModelInfo$ {
840
+ /** @deprecated use `ModelInfo$inboundSchema` instead. */
841
+ export const inboundSchema = ModelInfo$inboundSchema;
842
+ /** @deprecated use `ModelInfo$outboundSchema` instead. */
843
+ export const outboundSchema = ModelInfo$outboundSchema;
844
+ /** @deprecated use `ModelInfo$Outbound` instead. */
845
+ export type Outbound = ModelInfo$Outbound;
846
+ }
847
+
848
+ export function modelInfoToJSON(modelInfo: ModelInfo): string {
849
+ return JSON.stringify(ModelInfo$outboundSchema.parse(modelInfo));
850
+ }
851
+
852
+ export function modelInfoFromJSON(
853
+ jsonString: string,
854
+ ): SafeParseResult<ModelInfo, SDKValidationError> {
855
+ return safeParse(
856
+ jsonString,
857
+ (x) => ModelInfo$inboundSchema.parse(JSON.parse(x)),
858
+ `Failed to parse 'ModelInfo' from JSON`,
859
+ );
860
+ }
861
+
862
+ /** @internal */
863
+ export const RequestBody$inboundSchema: z.ZodType<
864
+ RequestBody,
865
+ z.ZodTypeDef,
866
+ unknown
867
+ > = z.object({
868
+ model_name: z.string(),
869
+ litellm_params: z.lazy(() => LitellmParams$inboundSchema),
870
+ model_info: z.lazy(() => ModelInfo$inboundSchema),
871
+ }).transform((v) => {
872
+ return remap$(v, {
873
+ "model_name": "modelName",
874
+ "litellm_params": "litellmParams",
875
+ "model_info": "modelInfo",
876
+ });
877
+ });
878
+
879
+ /** @internal */
880
+ export type RequestBody$Outbound = {
881
+ model_name: string;
882
+ litellm_params: LitellmParams$Outbound;
883
+ model_info: ModelInfo$Outbound;
884
+ };
885
+
886
+ /** @internal */
887
+ export const RequestBody$outboundSchema: z.ZodType<
888
+ RequestBody$Outbound,
889
+ z.ZodTypeDef,
890
+ RequestBody
891
+ > = z.object({
892
+ modelName: z.string(),
893
+ litellmParams: z.lazy(() => LitellmParams$outboundSchema),
894
+ modelInfo: z.lazy(() => ModelInfo$outboundSchema),
895
+ }).transform((v) => {
896
+ return remap$(v, {
897
+ modelName: "model_name",
898
+ litellmParams: "litellm_params",
899
+ modelInfo: "model_info",
900
+ });
901
+ });
902
+
903
+ /**
904
+ * @internal
905
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
906
+ */
907
+ export namespace RequestBody$ {
908
+ /** @deprecated use `RequestBody$inboundSchema` instead. */
909
+ export const inboundSchema = RequestBody$inboundSchema;
910
+ /** @deprecated use `RequestBody$outboundSchema` instead. */
911
+ export const outboundSchema = RequestBody$outboundSchema;
912
+ /** @deprecated use `RequestBody$Outbound` instead. */
913
+ export type Outbound = RequestBody$Outbound;
914
+ }
915
+
916
+ export function requestBodyToJSON(requestBody: RequestBody): string {
917
+ return JSON.stringify(RequestBody$outboundSchema.parse(requestBody));
918
+ }
919
+
920
+ export function requestBodyFromJSON(
921
+ jsonString: string,
922
+ ): SafeParseResult<RequestBody, SDKValidationError> {
923
+ return safeParse(
924
+ jsonString,
925
+ (x) => RequestBody$inboundSchema.parse(JSON.parse(x)),
926
+ `Failed to parse 'RequestBody' from JSON`,
927
+ );
928
+ }
929
+
930
+ /** @internal */
931
+ export const PostV2ModelsLitellmImportModelType$inboundSchema: z.ZodNativeEnum<
932
+ typeof PostV2ModelsLitellmImportModelType
933
+ > = z.nativeEnum(PostV2ModelsLitellmImportModelType);
934
+
935
+ /** @internal */
936
+ export const PostV2ModelsLitellmImportModelType$outboundSchema: z.ZodNativeEnum<
937
+ typeof PostV2ModelsLitellmImportModelType
938
+ > = PostV2ModelsLitellmImportModelType$inboundSchema;
939
+
940
+ /**
941
+ * @internal
942
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
943
+ */
944
+ export namespace PostV2ModelsLitellmImportModelType$ {
945
+ /** @deprecated use `PostV2ModelsLitellmImportModelType$inboundSchema` instead. */
946
+ export const inboundSchema = PostV2ModelsLitellmImportModelType$inboundSchema;
947
+ /** @deprecated use `PostV2ModelsLitellmImportModelType$outboundSchema` instead. */
948
+ export const outboundSchema =
949
+ PostV2ModelsLitellmImportModelType$outboundSchema;
950
+ }
951
+
952
+ /** @internal */
953
+ export const PostV2ModelsLitellmImportProvider$inboundSchema: z.ZodNativeEnum<
954
+ typeof PostV2ModelsLitellmImportProvider
955
+ > = z.nativeEnum(PostV2ModelsLitellmImportProvider);
956
+
957
+ /** @internal */
958
+ export const PostV2ModelsLitellmImportProvider$outboundSchema: z.ZodNativeEnum<
959
+ typeof PostV2ModelsLitellmImportProvider
960
+ > = PostV2ModelsLitellmImportProvider$inboundSchema;
961
+
962
+ /**
963
+ * @internal
964
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
965
+ */
966
+ export namespace PostV2ModelsLitellmImportProvider$ {
967
+ /** @deprecated use `PostV2ModelsLitellmImportProvider$inboundSchema` instead. */
968
+ export const inboundSchema = PostV2ModelsLitellmImportProvider$inboundSchema;
969
+ /** @deprecated use `PostV2ModelsLitellmImportProvider$outboundSchema` instead. */
970
+ export const outboundSchema =
971
+ PostV2ModelsLitellmImportProvider$outboundSchema;
972
+ }
973
+
974
+ /** @internal */
975
+ export const Region$inboundSchema: z.ZodNativeEnum<typeof Region> = z
976
+ .nativeEnum(Region);
977
+
978
+ /** @internal */
979
+ export const Region$outboundSchema: z.ZodNativeEnum<typeof Region> =
980
+ Region$inboundSchema;
981
+
982
+ /**
983
+ * @internal
984
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
985
+ */
986
+ export namespace Region$ {
987
+ /** @deprecated use `Region$inboundSchema` instead. */
988
+ export const inboundSchema = Region$inboundSchema;
989
+ /** @deprecated use `Region$outboundSchema` instead. */
990
+ export const outboundSchema = Region$outboundSchema;
991
+ }
992
+
993
+ /** @internal */
994
+ export const PostV2ModelsLitellmImportMetadata$inboundSchema: z.ZodType<
995
+ PostV2ModelsLitellmImportMetadata,
996
+ z.ZodTypeDef,
997
+ unknown
998
+ > = z.object({
999
+ context_window: z.number().optional(),
1000
+ is_private: z.boolean(),
1001
+ region: Region$inboundSchema,
1002
+ has_functions: z.boolean().optional(),
1003
+ strict_tool_supported: z.boolean().optional(),
1004
+ json_mode_response_format_supported: z.boolean().optional(),
1005
+ json_schema_response_format_supported: z.boolean().optional(),
1006
+ support_system_message: z.boolean().optional(),
1007
+ streaming_not_supported: z.boolean().optional(),
1008
+ db_match: z.boolean().default(false),
1009
+ image_token_cost: z.number().optional(),
1010
+ }).transform((v) => {
1011
+ return remap$(v, {
1012
+ "context_window": "contextWindow",
1013
+ "is_private": "isPrivate",
1014
+ "has_functions": "hasFunctions",
1015
+ "strict_tool_supported": "strictToolSupported",
1016
+ "json_mode_response_format_supported": "jsonModeResponseFormatSupported",
1017
+ "json_schema_response_format_supported":
1018
+ "jsonSchemaResponseFormatSupported",
1019
+ "support_system_message": "supportSystemMessage",
1020
+ "streaming_not_supported": "streamingNotSupported",
1021
+ "db_match": "dbMatch",
1022
+ "image_token_cost": "imageTokenCost",
1023
+ });
1024
+ });
1025
+
1026
+ /** @internal */
1027
+ export type PostV2ModelsLitellmImportMetadata$Outbound = {
1028
+ context_window?: number | undefined;
1029
+ is_private: boolean;
1030
+ region: string;
1031
+ has_functions?: boolean | undefined;
1032
+ strict_tool_supported?: boolean | undefined;
1033
+ json_mode_response_format_supported?: boolean | undefined;
1034
+ json_schema_response_format_supported?: boolean | undefined;
1035
+ support_system_message?: boolean | undefined;
1036
+ streaming_not_supported?: boolean | undefined;
1037
+ db_match: boolean;
1038
+ image_token_cost?: number | undefined;
1039
+ };
1040
+
1041
+ /** @internal */
1042
+ export const PostV2ModelsLitellmImportMetadata$outboundSchema: z.ZodType<
1043
+ PostV2ModelsLitellmImportMetadata$Outbound,
1044
+ z.ZodTypeDef,
1045
+ PostV2ModelsLitellmImportMetadata
1046
+ > = z.object({
1047
+ contextWindow: z.number().optional(),
1048
+ isPrivate: z.boolean(),
1049
+ region: Region$outboundSchema,
1050
+ hasFunctions: z.boolean().optional(),
1051
+ strictToolSupported: z.boolean().optional(),
1052
+ jsonModeResponseFormatSupported: z.boolean().optional(),
1053
+ jsonSchemaResponseFormatSupported: z.boolean().optional(),
1054
+ supportSystemMessage: z.boolean().optional(),
1055
+ streamingNotSupported: z.boolean().optional(),
1056
+ dbMatch: z.boolean().default(false),
1057
+ imageTokenCost: z.number().optional(),
1058
+ }).transform((v) => {
1059
+ return remap$(v, {
1060
+ contextWindow: "context_window",
1061
+ isPrivate: "is_private",
1062
+ hasFunctions: "has_functions",
1063
+ strictToolSupported: "strict_tool_supported",
1064
+ jsonModeResponseFormatSupported: "json_mode_response_format_supported",
1065
+ jsonSchemaResponseFormatSupported: "json_schema_response_format_supported",
1066
+ supportSystemMessage: "support_system_message",
1067
+ streamingNotSupported: "streaming_not_supported",
1068
+ dbMatch: "db_match",
1069
+ imageTokenCost: "image_token_cost",
1070
+ });
1071
+ });
1072
+
1073
+ /**
1074
+ * @internal
1075
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1076
+ */
1077
+ export namespace PostV2ModelsLitellmImportMetadata$ {
1078
+ /** @deprecated use `PostV2ModelsLitellmImportMetadata$inboundSchema` instead. */
1079
+ export const inboundSchema = PostV2ModelsLitellmImportMetadata$inboundSchema;
1080
+ /** @deprecated use `PostV2ModelsLitellmImportMetadata$outboundSchema` instead. */
1081
+ export const outboundSchema =
1082
+ PostV2ModelsLitellmImportMetadata$outboundSchema;
1083
+ /** @deprecated use `PostV2ModelsLitellmImportMetadata$Outbound` instead. */
1084
+ export type Outbound = PostV2ModelsLitellmImportMetadata$Outbound;
1085
+ }
1086
+
1087
+ export function postV2ModelsLitellmImportMetadataToJSON(
1088
+ postV2ModelsLitellmImportMetadata: PostV2ModelsLitellmImportMetadata,
1089
+ ): string {
1090
+ return JSON.stringify(
1091
+ PostV2ModelsLitellmImportMetadata$outboundSchema.parse(
1092
+ postV2ModelsLitellmImportMetadata,
1093
+ ),
1094
+ );
1095
+ }
1096
+
1097
+ export function postV2ModelsLitellmImportMetadataFromJSON(
1098
+ jsonString: string,
1099
+ ): SafeParseResult<PostV2ModelsLitellmImportMetadata, SDKValidationError> {
1100
+ return safeParse(
1101
+ jsonString,
1102
+ (x) => PostV2ModelsLitellmImportMetadata$inboundSchema.parse(JSON.parse(x)),
1103
+ `Failed to parse 'PostV2ModelsLitellmImportMetadata' from JSON`,
1104
+ );
1105
+ }
1106
+
1107
+ /** @internal */
1108
+ export const PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema:
1109
+ z.ZodNativeEnum<
1110
+ typeof PostV2ModelsLitellmImportConfigurationResponse200Provider
1111
+ > = z.nativeEnum(PostV2ModelsLitellmImportConfigurationResponse200Provider);
1112
+
1113
+ /** @internal */
1114
+ export const PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema:
1115
+ z.ZodNativeEnum<
1116
+ typeof PostV2ModelsLitellmImportConfigurationResponse200Provider
1117
+ > = PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema;
1118
+
1119
+ /**
1120
+ * @internal
1121
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1122
+ */
1123
+ export namespace PostV2ModelsLitellmImportConfigurationResponse200Provider$ {
1124
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema` instead. */
1125
+ export const inboundSchema =
1126
+ PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema;
1127
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema` instead. */
1128
+ export const outboundSchema =
1129
+ PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema;
1130
+ }
1131
+
1132
+ /** @internal */
1133
+ export const Configuration4$inboundSchema: z.ZodType<
1134
+ Configuration4,
1135
+ z.ZodTypeDef,
1136
+ unknown
1137
+ > = z.object({
1138
+ provider:
1139
+ PostV2ModelsLitellmImportConfigurationResponse200Provider$inboundSchema,
1140
+ host_url: z.string(),
1141
+ }).transform((v) => {
1142
+ return remap$(v, {
1143
+ "host_url": "hostUrl",
1144
+ });
1145
+ });
1146
+
1147
+ /** @internal */
1148
+ export type Configuration4$Outbound = {
1149
+ provider: string;
1150
+ host_url: string;
1151
+ };
1152
+
1153
+ /** @internal */
1154
+ export const Configuration4$outboundSchema: z.ZodType<
1155
+ Configuration4$Outbound,
1156
+ z.ZodTypeDef,
1157
+ Configuration4
1158
+ > = z.object({
1159
+ provider:
1160
+ PostV2ModelsLitellmImportConfigurationResponse200Provider$outboundSchema,
1161
+ hostUrl: z.string(),
1162
+ }).transform((v) => {
1163
+ return remap$(v, {
1164
+ hostUrl: "host_url",
1165
+ });
1166
+ });
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
+ export namespace Configuration4$ {
1173
+ /** @deprecated use `Configuration4$inboundSchema` instead. */
1174
+ export const inboundSchema = Configuration4$inboundSchema;
1175
+ /** @deprecated use `Configuration4$outboundSchema` instead. */
1176
+ export const outboundSchema = Configuration4$outboundSchema;
1177
+ /** @deprecated use `Configuration4$Outbound` instead. */
1178
+ export type Outbound = Configuration4$Outbound;
1179
+ }
1180
+
1181
+ export function configuration4ToJSON(configuration4: Configuration4): string {
1182
+ return JSON.stringify(Configuration4$outboundSchema.parse(configuration4));
1183
+ }
1184
+
1185
+ export function configuration4FromJSON(
1186
+ jsonString: string,
1187
+ ): SafeParseResult<Configuration4, SDKValidationError> {
1188
+ return safeParse(
1189
+ jsonString,
1190
+ (x) => Configuration4$inboundSchema.parse(JSON.parse(x)),
1191
+ `Failed to parse 'Configuration4' from JSON`,
1192
+ );
1193
+ }
1194
+
1195
+ /** @internal */
1196
+ export const PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema:
1197
+ z.ZodNativeEnum<
1198
+ typeof PostV2ModelsLitellmImportConfigurationResponseProvider
1199
+ > = z.nativeEnum(PostV2ModelsLitellmImportConfigurationResponseProvider);
1200
+
1201
+ /** @internal */
1202
+ export const PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema:
1203
+ z.ZodNativeEnum<
1204
+ typeof PostV2ModelsLitellmImportConfigurationResponseProvider
1205
+ > = PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema;
1206
+
1207
+ /**
1208
+ * @internal
1209
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1210
+ */
1211
+ export namespace PostV2ModelsLitellmImportConfigurationResponseProvider$ {
1212
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema` instead. */
1213
+ export const inboundSchema =
1214
+ PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema;
1215
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema` instead. */
1216
+ export const outboundSchema =
1217
+ PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema;
1218
+ }
1219
+
1220
+ /** @internal */
1221
+ export const Configuration3$inboundSchema: z.ZodType<
1222
+ Configuration3,
1223
+ z.ZodTypeDef,
1224
+ unknown
1225
+ > = z.object({
1226
+ provider:
1227
+ PostV2ModelsLitellmImportConfigurationResponseProvider$inboundSchema,
1228
+ region: z.string(),
1229
+ });
1230
+
1231
+ /** @internal */
1232
+ export type Configuration3$Outbound = {
1233
+ provider: string;
1234
+ region: string;
1235
+ };
1236
+
1237
+ /** @internal */
1238
+ export const Configuration3$outboundSchema: z.ZodType<
1239
+ Configuration3$Outbound,
1240
+ z.ZodTypeDef,
1241
+ Configuration3
1242
+ > = z.object({
1243
+ provider:
1244
+ PostV2ModelsLitellmImportConfigurationResponseProvider$outboundSchema,
1245
+ region: z.string(),
1246
+ });
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
+ export namespace Configuration3$ {
1253
+ /** @deprecated use `Configuration3$inboundSchema` instead. */
1254
+ export const inboundSchema = Configuration3$inboundSchema;
1255
+ /** @deprecated use `Configuration3$outboundSchema` instead. */
1256
+ export const outboundSchema = Configuration3$outboundSchema;
1257
+ /** @deprecated use `Configuration3$Outbound` instead. */
1258
+ export type Outbound = Configuration3$Outbound;
1259
+ }
1260
+
1261
+ export function configuration3ToJSON(configuration3: Configuration3): string {
1262
+ return JSON.stringify(Configuration3$outboundSchema.parse(configuration3));
1263
+ }
1264
+
1265
+ export function configuration3FromJSON(
1266
+ jsonString: string,
1267
+ ): SafeParseResult<Configuration3, SDKValidationError> {
1268
+ return safeParse(
1269
+ jsonString,
1270
+ (x) => Configuration3$inboundSchema.parse(JSON.parse(x)),
1271
+ `Failed to parse 'Configuration3' from JSON`,
1272
+ );
1273
+ }
1274
+
1275
+ /** @internal */
1276
+ export const PostV2ModelsLitellmImportConfigurationProvider$inboundSchema:
1277
+ z.ZodNativeEnum<typeof PostV2ModelsLitellmImportConfigurationProvider> = z
1278
+ .nativeEnum(PostV2ModelsLitellmImportConfigurationProvider);
1279
+
1280
+ /** @internal */
1281
+ export const PostV2ModelsLitellmImportConfigurationProvider$outboundSchema:
1282
+ z.ZodNativeEnum<typeof PostV2ModelsLitellmImportConfigurationProvider> =
1283
+ PostV2ModelsLitellmImportConfigurationProvider$inboundSchema;
1284
+
1285
+ /**
1286
+ * @internal
1287
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1288
+ */
1289
+ export namespace PostV2ModelsLitellmImportConfigurationProvider$ {
1290
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationProvider$inboundSchema` instead. */
1291
+ export const inboundSchema =
1292
+ PostV2ModelsLitellmImportConfigurationProvider$inboundSchema;
1293
+ /** @deprecated use `PostV2ModelsLitellmImportConfigurationProvider$outboundSchema` instead. */
1294
+ export const outboundSchema =
1295
+ PostV2ModelsLitellmImportConfigurationProvider$outboundSchema;
1296
+ }
1297
+
1298
+ /** @internal */
1299
+ export const Configuration2$inboundSchema: z.ZodType<
1300
+ Configuration2,
1301
+ z.ZodTypeDef,
1302
+ unknown
1303
+ > = z.object({
1304
+ provider: PostV2ModelsLitellmImportConfigurationProvider$inboundSchema,
1305
+ service_account: z.string(),
1306
+ region: z.string(),
1307
+ location: z.string(),
1308
+ should_use_beta_features: z.boolean(),
1309
+ project_id: z.string(),
1310
+ is_openai_compatible: z.boolean().optional(),
1311
+ is_tuned_model: z.boolean().optional(),
1312
+ }).transform((v) => {
1313
+ return remap$(v, {
1314
+ "service_account": "serviceAccount",
1315
+ "should_use_beta_features": "shouldUseBetaFeatures",
1316
+ "project_id": "projectId",
1317
+ "is_openai_compatible": "isOpenaiCompatible",
1318
+ "is_tuned_model": "isTunedModel",
1319
+ });
1320
+ });
1321
+
1322
+ /** @internal */
1323
+ export type Configuration2$Outbound = {
1324
+ provider: string;
1325
+ service_account: string;
1326
+ region: string;
1327
+ location: string;
1328
+ should_use_beta_features: boolean;
1329
+ project_id: string;
1330
+ is_openai_compatible?: boolean | undefined;
1331
+ is_tuned_model?: boolean | undefined;
1332
+ };
1333
+
1334
+ /** @internal */
1335
+ export const Configuration2$outboundSchema: z.ZodType<
1336
+ Configuration2$Outbound,
1337
+ z.ZodTypeDef,
1338
+ Configuration2
1339
+ > = z.object({
1340
+ provider: PostV2ModelsLitellmImportConfigurationProvider$outboundSchema,
1341
+ serviceAccount: z.string(),
1342
+ region: z.string(),
1343
+ location: z.string(),
1344
+ shouldUseBetaFeatures: z.boolean(),
1345
+ projectId: z.string(),
1346
+ isOpenaiCompatible: z.boolean().optional(),
1347
+ isTunedModel: z.boolean().optional(),
1348
+ }).transform((v) => {
1349
+ return remap$(v, {
1350
+ serviceAccount: "service_account",
1351
+ shouldUseBetaFeatures: "should_use_beta_features",
1352
+ projectId: "project_id",
1353
+ isOpenaiCompatible: "is_openai_compatible",
1354
+ isTunedModel: "is_tuned_model",
1355
+ });
1356
+ });
1357
+
1358
+ /**
1359
+ * @internal
1360
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1361
+ */
1362
+ export namespace Configuration2$ {
1363
+ /** @deprecated use `Configuration2$inboundSchema` instead. */
1364
+ export const inboundSchema = Configuration2$inboundSchema;
1365
+ /** @deprecated use `Configuration2$outboundSchema` instead. */
1366
+ export const outboundSchema = Configuration2$outboundSchema;
1367
+ /** @deprecated use `Configuration2$Outbound` instead. */
1368
+ export type Outbound = Configuration2$Outbound;
1369
+ }
1370
+
1371
+ export function configuration2ToJSON(configuration2: Configuration2): string {
1372
+ return JSON.stringify(Configuration2$outboundSchema.parse(configuration2));
1373
+ }
1374
+
1375
+ export function configuration2FromJSON(
1376
+ jsonString: string,
1377
+ ): SafeParseResult<Configuration2, SDKValidationError> {
1378
+ return safeParse(
1379
+ jsonString,
1380
+ (x) => Configuration2$inboundSchema.parse(JSON.parse(x)),
1381
+ `Failed to parse 'Configuration2' from JSON`,
1382
+ );
1383
+ }
1384
+
1385
+ /** @internal */
1386
+ export const ConfigurationProvider$inboundSchema: z.ZodNativeEnum<
1387
+ typeof ConfigurationProvider
1388
+ > = z.nativeEnum(ConfigurationProvider);
1389
+
1390
+ /** @internal */
1391
+ export const ConfigurationProvider$outboundSchema: z.ZodNativeEnum<
1392
+ typeof ConfigurationProvider
1393
+ > = ConfigurationProvider$inboundSchema;
1394
+
1395
+ /**
1396
+ * @internal
1397
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1398
+ */
1399
+ export namespace ConfigurationProvider$ {
1400
+ /** @deprecated use `ConfigurationProvider$inboundSchema` instead. */
1401
+ export const inboundSchema = ConfigurationProvider$inboundSchema;
1402
+ /** @deprecated use `ConfigurationProvider$outboundSchema` instead. */
1403
+ export const outboundSchema = ConfigurationProvider$outboundSchema;
1404
+ }
1405
+
1406
+ /** @internal */
1407
+ export const Configuration1$inboundSchema: z.ZodType<
1408
+ Configuration1,
1409
+ z.ZodTypeDef,
1410
+ unknown
1411
+ > = z.object({
1412
+ provider: ConfigurationProvider$inboundSchema,
1413
+ endpoint: z.string(),
1414
+ api_key: z.string(),
1415
+ }).transform((v) => {
1416
+ return remap$(v, {
1417
+ "api_key": "apiKey",
1418
+ });
1419
+ });
1420
+
1421
+ /** @internal */
1422
+ export type Configuration1$Outbound = {
1423
+ provider: string;
1424
+ endpoint: string;
1425
+ api_key: string;
1426
+ };
1427
+
1428
+ /** @internal */
1429
+ export const Configuration1$outboundSchema: z.ZodType<
1430
+ Configuration1$Outbound,
1431
+ z.ZodTypeDef,
1432
+ Configuration1
1433
+ > = z.object({
1434
+ provider: ConfigurationProvider$outboundSchema,
1435
+ endpoint: z.string(),
1436
+ apiKey: z.string(),
1437
+ }).transform((v) => {
1438
+ return remap$(v, {
1439
+ apiKey: "api_key",
1440
+ });
1441
+ });
1442
+
1443
+ /**
1444
+ * @internal
1445
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1446
+ */
1447
+ export namespace Configuration1$ {
1448
+ /** @deprecated use `Configuration1$inboundSchema` instead. */
1449
+ export const inboundSchema = Configuration1$inboundSchema;
1450
+ /** @deprecated use `Configuration1$outboundSchema` instead. */
1451
+ export const outboundSchema = Configuration1$outboundSchema;
1452
+ /** @deprecated use `Configuration1$Outbound` instead. */
1453
+ export type Outbound = Configuration1$Outbound;
1454
+ }
1455
+
1456
+ export function configuration1ToJSON(configuration1: Configuration1): string {
1457
+ return JSON.stringify(Configuration1$outboundSchema.parse(configuration1));
1458
+ }
1459
+
1460
+ export function configuration1FromJSON(
1461
+ jsonString: string,
1462
+ ): SafeParseResult<Configuration1, SDKValidationError> {
1463
+ return safeParse(
1464
+ jsonString,
1465
+ (x) => Configuration1$inboundSchema.parse(JSON.parse(x)),
1466
+ `Failed to parse 'Configuration1' from JSON`,
1467
+ );
1468
+ }
1469
+
1470
+ /** @internal */
1471
+ export const Configuration$inboundSchema: z.ZodType<
1472
+ Configuration,
1473
+ z.ZodTypeDef,
1474
+ unknown
1475
+ > = z.union([
1476
+ z.lazy(() => Configuration3$inboundSchema),
1477
+ z.lazy(() => Configuration4$inboundSchema),
1478
+ z.lazy(() => Configuration1$inboundSchema),
1479
+ z.lazy(() => Configuration2$inboundSchema),
1480
+ ]);
1481
+
1482
+ /** @internal */
1483
+ export type Configuration$Outbound =
1484
+ | Configuration3$Outbound
1485
+ | Configuration4$Outbound
1486
+ | Configuration1$Outbound
1487
+ | Configuration2$Outbound;
1488
+
1489
+ /** @internal */
1490
+ export const Configuration$outboundSchema: z.ZodType<
1491
+ Configuration$Outbound,
1492
+ z.ZodTypeDef,
1493
+ Configuration
1494
+ > = z.union([
1495
+ z.lazy(() => Configuration3$outboundSchema),
1496
+ z.lazy(() => Configuration4$outboundSchema),
1497
+ z.lazy(() => Configuration1$outboundSchema),
1498
+ z.lazy(() => Configuration2$outboundSchema),
1499
+ ]);
1500
+
1501
+ /**
1502
+ * @internal
1503
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1504
+ */
1505
+ export namespace Configuration$ {
1506
+ /** @deprecated use `Configuration$inboundSchema` instead. */
1507
+ export const inboundSchema = Configuration$inboundSchema;
1508
+ /** @deprecated use `Configuration$outboundSchema` instead. */
1509
+ export const outboundSchema = Configuration$outboundSchema;
1510
+ /** @deprecated use `Configuration$Outbound` instead. */
1511
+ export type Outbound = Configuration$Outbound;
1512
+ }
1513
+
1514
+ export function configurationToJSON(configuration: Configuration): string {
1515
+ return JSON.stringify(Configuration$outboundSchema.parse(configuration));
1516
+ }
1517
+
1518
+ export function configurationFromJSON(
1519
+ jsonString: string,
1520
+ ): SafeParseResult<Configuration, SDKValidationError> {
1521
+ return safeParse(
1522
+ jsonString,
1523
+ (x) => Configuration$inboundSchema.parse(JSON.parse(x)),
1524
+ `Failed to parse 'Configuration' from JSON`,
1525
+ );
1526
+ }
1527
+
1528
+ /** @internal */
1529
+ export const PostV2ModelsLitellmImportParametersParameter$inboundSchema:
1530
+ z.ZodNativeEnum<typeof PostV2ModelsLitellmImportParametersParameter> = z
1531
+ .nativeEnum(PostV2ModelsLitellmImportParametersParameter);
1532
+
1533
+ /** @internal */
1534
+ export const PostV2ModelsLitellmImportParametersParameter$outboundSchema:
1535
+ z.ZodNativeEnum<typeof PostV2ModelsLitellmImportParametersParameter> =
1536
+ PostV2ModelsLitellmImportParametersParameter$inboundSchema;
1537
+
1538
+ /**
1539
+ * @internal
1540
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1541
+ */
1542
+ export namespace PostV2ModelsLitellmImportParametersParameter$ {
1543
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameter$inboundSchema` instead. */
1544
+ export const inboundSchema =
1545
+ PostV2ModelsLitellmImportParametersParameter$inboundSchema;
1546
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameter$outboundSchema` instead. */
1547
+ export const outboundSchema =
1548
+ PostV2ModelsLitellmImportParametersParameter$outboundSchema;
1549
+ }
1550
+
1551
+ /** @internal */
1552
+ export const PostV2ModelsLitellmImportParametersParameterType$inboundSchema:
1553
+ z.ZodNativeEnum<typeof PostV2ModelsLitellmImportParametersParameterType> = z
1554
+ .nativeEnum(PostV2ModelsLitellmImportParametersParameterType);
1555
+
1556
+ /** @internal */
1557
+ export const PostV2ModelsLitellmImportParametersParameterType$outboundSchema:
1558
+ z.ZodNativeEnum<typeof PostV2ModelsLitellmImportParametersParameterType> =
1559
+ PostV2ModelsLitellmImportParametersParameterType$inboundSchema;
1560
+
1561
+ /**
1562
+ * @internal
1563
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1564
+ */
1565
+ export namespace PostV2ModelsLitellmImportParametersParameterType$ {
1566
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameterType$inboundSchema` instead. */
1567
+ export const inboundSchema =
1568
+ PostV2ModelsLitellmImportParametersParameterType$inboundSchema;
1569
+ /** @deprecated use `PostV2ModelsLitellmImportParametersParameterType$outboundSchema` instead. */
1570
+ export const outboundSchema =
1571
+ PostV2ModelsLitellmImportParametersParameterType$outboundSchema;
1572
+ }
1573
+
1574
+ /** @internal */
1575
+ export const Options$inboundSchema: z.ZodType<Options, z.ZodTypeDef, unknown> =
1576
+ z.object({
1577
+ display_name: z.string(),
1578
+ value: z.string(),
1579
+ }).transform((v) => {
1580
+ return remap$(v, {
1581
+ "display_name": "displayName",
1582
+ });
1583
+ });
1584
+
1585
+ /** @internal */
1586
+ export type Options$Outbound = {
1587
+ display_name: string;
1588
+ value: string;
1589
+ };
1590
+
1591
+ /** @internal */
1592
+ export const Options$outboundSchema: z.ZodType<
1593
+ Options$Outbound,
1594
+ z.ZodTypeDef,
1595
+ Options
1596
+ > = z.object({
1597
+ displayName: z.string(),
1598
+ value: z.string(),
1599
+ }).transform((v) => {
1600
+ return remap$(v, {
1601
+ displayName: "display_name",
1602
+ });
1603
+ });
1604
+
1605
+ /**
1606
+ * @internal
1607
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1608
+ */
1609
+ export namespace Options$ {
1610
+ /** @deprecated use `Options$inboundSchema` instead. */
1611
+ export const inboundSchema = Options$inboundSchema;
1612
+ /** @deprecated use `Options$outboundSchema` instead. */
1613
+ export const outboundSchema = Options$outboundSchema;
1614
+ /** @deprecated use `Options$Outbound` instead. */
1615
+ export type Outbound = Options$Outbound;
1616
+ }
1617
+
1618
+ export function optionsToJSON(options: Options): string {
1619
+ return JSON.stringify(Options$outboundSchema.parse(options));
1620
+ }
1621
+
1622
+ export function optionsFromJSON(
1623
+ jsonString: string,
1624
+ ): SafeParseResult<Options, SDKValidationError> {
1625
+ return safeParse(
1626
+ jsonString,
1627
+ (x) => Options$inboundSchema.parse(JSON.parse(x)),
1628
+ `Failed to parse 'Options' from JSON`,
1629
+ );
1630
+ }
1631
+
1632
+ /** @internal */
1633
+ export const PostV2ModelsLitellmImportParametersConfig$inboundSchema: z.ZodType<
1634
+ PostV2ModelsLitellmImportParametersConfig,
1635
+ z.ZodTypeDef,
1636
+ unknown
1637
+ > = z.object({
1638
+ default: z.string(),
1639
+ options: z.array(z.lazy(() => Options$inboundSchema)),
1640
+ });
1641
+
1642
+ /** @internal */
1643
+ export type PostV2ModelsLitellmImportParametersConfig$Outbound = {
1644
+ default: string;
1645
+ options: Array<Options$Outbound>;
1646
+ };
1647
+
1648
+ /** @internal */
1649
+ export const PostV2ModelsLitellmImportParametersConfig$outboundSchema:
1650
+ z.ZodType<
1651
+ PostV2ModelsLitellmImportParametersConfig$Outbound,
1652
+ z.ZodTypeDef,
1653
+ PostV2ModelsLitellmImportParametersConfig
1654
+ > = z.object({
1655
+ default: z.string(),
1656
+ options: z.array(z.lazy(() => Options$outboundSchema)),
1657
+ });
1658
+
1659
+ /**
1660
+ * @internal
1661
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1662
+ */
1663
+ export namespace PostV2ModelsLitellmImportParametersConfig$ {
1664
+ /** @deprecated use `PostV2ModelsLitellmImportParametersConfig$inboundSchema` instead. */
1665
+ export const inboundSchema =
1666
+ PostV2ModelsLitellmImportParametersConfig$inboundSchema;
1667
+ /** @deprecated use `PostV2ModelsLitellmImportParametersConfig$outboundSchema` instead. */
1668
+ export const outboundSchema =
1669
+ PostV2ModelsLitellmImportParametersConfig$outboundSchema;
1670
+ /** @deprecated use `PostV2ModelsLitellmImportParametersConfig$Outbound` instead. */
1671
+ export type Outbound = PostV2ModelsLitellmImportParametersConfig$Outbound;
1672
+ }
1673
+
1674
+ export function postV2ModelsLitellmImportParametersConfigToJSON(
1675
+ postV2ModelsLitellmImportParametersConfig:
1676
+ PostV2ModelsLitellmImportParametersConfig,
1677
+ ): string {
1678
+ return JSON.stringify(
1679
+ PostV2ModelsLitellmImportParametersConfig$outboundSchema.parse(
1680
+ postV2ModelsLitellmImportParametersConfig,
1681
+ ),
1682
+ );
1683
+ }
1684
+
1685
+ export function postV2ModelsLitellmImportParametersConfigFromJSON(
1686
+ jsonString: string,
1687
+ ): SafeParseResult<
1688
+ PostV2ModelsLitellmImportParametersConfig,
1689
+ SDKValidationError
1690
+ > {
1691
+ return safeParse(
1692
+ jsonString,
1693
+ (x) =>
1694
+ PostV2ModelsLitellmImportParametersConfig$inboundSchema.parse(
1695
+ JSON.parse(x),
1696
+ ),
1697
+ `Failed to parse 'PostV2ModelsLitellmImportParametersConfig' from JSON`,
1698
+ );
1699
+ }
1700
+
1701
+ /** @internal */
1702
+ export const Parameters3$inboundSchema: z.ZodType<
1703
+ Parameters3,
1704
+ z.ZodTypeDef,
1705
+ unknown
1706
+ > = z.object({
1707
+ id: z.string(),
1708
+ name: z.string(),
1709
+ parameter: PostV2ModelsLitellmImportParametersParameter$inboundSchema,
1710
+ description: z.string(),
1711
+ hints: z.nullable(z.string()).optional(),
1712
+ is_active: z.boolean(),
1713
+ position: z.nullable(z.number()).optional(),
1714
+ parameter_type:
1715
+ PostV2ModelsLitellmImportParametersParameterType$inboundSchema,
1716
+ config: z.lazy(() => PostV2ModelsLitellmImportParametersConfig$inboundSchema),
1717
+ }).transform((v) => {
1718
+ return remap$(v, {
1719
+ "is_active": "isActive",
1720
+ "parameter_type": "parameterType",
1721
+ });
1722
+ });
1723
+
1724
+ /** @internal */
1725
+ export type Parameters3$Outbound = {
1726
+ id: string;
1727
+ name: string;
1728
+ parameter: string;
1729
+ description: string;
1730
+ hints?: string | null | undefined;
1731
+ is_active: boolean;
1732
+ position?: number | null | undefined;
1733
+ parameter_type: string;
1734
+ config: PostV2ModelsLitellmImportParametersConfig$Outbound;
1735
+ };
1736
+
1737
+ /** @internal */
1738
+ export const Parameters3$outboundSchema: z.ZodType<
1739
+ Parameters3$Outbound,
1740
+ z.ZodTypeDef,
1741
+ Parameters3
1742
+ > = z.object({
1743
+ id: z.string(),
1744
+ name: z.string(),
1745
+ parameter: PostV2ModelsLitellmImportParametersParameter$outboundSchema,
1746
+ description: z.string(),
1747
+ hints: z.nullable(z.string()).optional(),
1748
+ isActive: z.boolean(),
1749
+ position: z.nullable(z.number()).optional(),
1750
+ parameterType:
1751
+ PostV2ModelsLitellmImportParametersParameterType$outboundSchema,
1752
+ config: z.lazy(() =>
1753
+ PostV2ModelsLitellmImportParametersConfig$outboundSchema
1754
+ ),
1755
+ }).transform((v) => {
1756
+ return remap$(v, {
1757
+ isActive: "is_active",
1758
+ parameterType: "parameter_type",
1759
+ });
1760
+ });
1761
+
1762
+ /**
1763
+ * @internal
1764
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1765
+ */
1766
+ export namespace Parameters3$ {
1767
+ /** @deprecated use `Parameters3$inboundSchema` instead. */
1768
+ export const inboundSchema = Parameters3$inboundSchema;
1769
+ /** @deprecated use `Parameters3$outboundSchema` instead. */
1770
+ export const outboundSchema = Parameters3$outboundSchema;
1771
+ /** @deprecated use `Parameters3$Outbound` instead. */
1772
+ export type Outbound = Parameters3$Outbound;
1773
+ }
1774
+
1775
+ export function parameters3ToJSON(parameters3: Parameters3): string {
1776
+ return JSON.stringify(Parameters3$outboundSchema.parse(parameters3));
1777
+ }
1778
+
1779
+ export function parameters3FromJSON(
1780
+ jsonString: string,
1781
+ ): SafeParseResult<Parameters3, SDKValidationError> {
1782
+ return safeParse(
1783
+ jsonString,
1784
+ (x) => Parameters3$inboundSchema.parse(JSON.parse(x)),
1785
+ `Failed to parse 'Parameters3' from JSON`,
1786
+ );
1787
+ }
1788
+
1789
+ /** @internal */
1790
+ export const ParametersParameter$inboundSchema: z.ZodNativeEnum<
1791
+ typeof ParametersParameter
1792
+ > = z.nativeEnum(ParametersParameter);
1793
+
1794
+ /** @internal */
1795
+ export const ParametersParameter$outboundSchema: z.ZodNativeEnum<
1796
+ typeof ParametersParameter
1797
+ > = ParametersParameter$inboundSchema;
1798
+
1799
+ /**
1800
+ * @internal
1801
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1802
+ */
1803
+ export namespace ParametersParameter$ {
1804
+ /** @deprecated use `ParametersParameter$inboundSchema` instead. */
1805
+ export const inboundSchema = ParametersParameter$inboundSchema;
1806
+ /** @deprecated use `ParametersParameter$outboundSchema` instead. */
1807
+ export const outboundSchema = ParametersParameter$outboundSchema;
1808
+ }
1809
+
1810
+ /** @internal */
1811
+ export const ParametersParameterType$inboundSchema: z.ZodNativeEnum<
1812
+ typeof ParametersParameterType
1813
+ > = z.nativeEnum(ParametersParameterType);
1814
+
1815
+ /** @internal */
1816
+ export const ParametersParameterType$outboundSchema: z.ZodNativeEnum<
1817
+ typeof ParametersParameterType
1818
+ > = ParametersParameterType$inboundSchema;
1819
+
1820
+ /**
1821
+ * @internal
1822
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1823
+ */
1824
+ export namespace ParametersParameterType$ {
1825
+ /** @deprecated use `ParametersParameterType$inboundSchema` instead. */
1826
+ export const inboundSchema = ParametersParameterType$inboundSchema;
1827
+ /** @deprecated use `ParametersParameterType$outboundSchema` instead. */
1828
+ export const outboundSchema = ParametersParameterType$outboundSchema;
1829
+ }
1830
+
1831
+ /** @internal */
1832
+ export const ParametersConfig$inboundSchema: z.ZodType<
1833
+ ParametersConfig,
1834
+ z.ZodTypeDef,
1835
+ unknown
1836
+ > = z.object({
1837
+ default: z.boolean(),
1838
+ });
1839
+
1840
+ /** @internal */
1841
+ export type ParametersConfig$Outbound = {
1842
+ default: boolean;
1843
+ };
1844
+
1845
+ /** @internal */
1846
+ export const ParametersConfig$outboundSchema: z.ZodType<
1847
+ ParametersConfig$Outbound,
1848
+ z.ZodTypeDef,
1849
+ ParametersConfig
1850
+ > = z.object({
1851
+ default: z.boolean(),
1852
+ });
1853
+
1854
+ /**
1855
+ * @internal
1856
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1857
+ */
1858
+ export namespace ParametersConfig$ {
1859
+ /** @deprecated use `ParametersConfig$inboundSchema` instead. */
1860
+ export const inboundSchema = ParametersConfig$inboundSchema;
1861
+ /** @deprecated use `ParametersConfig$outboundSchema` instead. */
1862
+ export const outboundSchema = ParametersConfig$outboundSchema;
1863
+ /** @deprecated use `ParametersConfig$Outbound` instead. */
1864
+ export type Outbound = ParametersConfig$Outbound;
1865
+ }
1866
+
1867
+ export function parametersConfigToJSON(
1868
+ parametersConfig: ParametersConfig,
1869
+ ): string {
1870
+ return JSON.stringify(
1871
+ ParametersConfig$outboundSchema.parse(parametersConfig),
1872
+ );
1873
+ }
1874
+
1875
+ export function parametersConfigFromJSON(
1876
+ jsonString: string,
1877
+ ): SafeParseResult<ParametersConfig, SDKValidationError> {
1878
+ return safeParse(
1879
+ jsonString,
1880
+ (x) => ParametersConfig$inboundSchema.parse(JSON.parse(x)),
1881
+ `Failed to parse 'ParametersConfig' from JSON`,
1882
+ );
1883
+ }
1884
+
1885
+ /** @internal */
1886
+ export const Parameters2$inboundSchema: z.ZodType<
1887
+ Parameters2,
1888
+ z.ZodTypeDef,
1889
+ unknown
1890
+ > = z.object({
1891
+ id: z.string(),
1892
+ name: z.string(),
1893
+ parameter: ParametersParameter$inboundSchema,
1894
+ description: z.string(),
1895
+ hints: z.nullable(z.string()).optional(),
1896
+ is_active: z.boolean(),
1897
+ position: z.nullable(z.number()).optional(),
1898
+ parameter_type: ParametersParameterType$inboundSchema,
1899
+ config: z.lazy(() => ParametersConfig$inboundSchema),
1900
+ }).transform((v) => {
1901
+ return remap$(v, {
1902
+ "is_active": "isActive",
1903
+ "parameter_type": "parameterType",
1904
+ });
1905
+ });
1906
+
1907
+ /** @internal */
1908
+ export type Parameters2$Outbound = {
1909
+ id: string;
1910
+ name: string;
1911
+ parameter: string;
1912
+ description: string;
1913
+ hints?: string | null | undefined;
1914
+ is_active: boolean;
1915
+ position?: number | null | undefined;
1916
+ parameter_type: string;
1917
+ config: ParametersConfig$Outbound;
1918
+ };
1919
+
1920
+ /** @internal */
1921
+ export const Parameters2$outboundSchema: z.ZodType<
1922
+ Parameters2$Outbound,
1923
+ z.ZodTypeDef,
1924
+ Parameters2
1925
+ > = z.object({
1926
+ id: z.string(),
1927
+ name: z.string(),
1928
+ parameter: ParametersParameter$outboundSchema,
1929
+ description: z.string(),
1930
+ hints: z.nullable(z.string()).optional(),
1931
+ isActive: z.boolean(),
1932
+ position: z.nullable(z.number()).optional(),
1933
+ parameterType: ParametersParameterType$outboundSchema,
1934
+ config: z.lazy(() => ParametersConfig$outboundSchema),
1935
+ }).transform((v) => {
1936
+ return remap$(v, {
1937
+ isActive: "is_active",
1938
+ parameterType: "parameter_type",
1939
+ });
1940
+ });
1941
+
1942
+ /**
1943
+ * @internal
1944
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1945
+ */
1946
+ export namespace Parameters2$ {
1947
+ /** @deprecated use `Parameters2$inboundSchema` instead. */
1948
+ export const inboundSchema = Parameters2$inboundSchema;
1949
+ /** @deprecated use `Parameters2$outboundSchema` instead. */
1950
+ export const outboundSchema = Parameters2$outboundSchema;
1951
+ /** @deprecated use `Parameters2$Outbound` instead. */
1952
+ export type Outbound = Parameters2$Outbound;
1953
+ }
1954
+
1955
+ export function parameters2ToJSON(parameters2: Parameters2): string {
1956
+ return JSON.stringify(Parameters2$outboundSchema.parse(parameters2));
1957
+ }
1958
+
1959
+ export function parameters2FromJSON(
1960
+ jsonString: string,
1961
+ ): SafeParseResult<Parameters2, SDKValidationError> {
1962
+ return safeParse(
1963
+ jsonString,
1964
+ (x) => Parameters2$inboundSchema.parse(JSON.parse(x)),
1965
+ `Failed to parse 'Parameters2' from JSON`,
1966
+ );
1967
+ }
1968
+
1969
+ /** @internal */
1970
+ export const Parameter$inboundSchema: z.ZodNativeEnum<typeof Parameter> = z
1971
+ .nativeEnum(Parameter);
1972
+
1973
+ /** @internal */
1974
+ export const Parameter$outboundSchema: z.ZodNativeEnum<typeof Parameter> =
1975
+ Parameter$inboundSchema;
1976
+
1977
+ /**
1978
+ * @internal
1979
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1980
+ */
1981
+ export namespace Parameter$ {
1982
+ /** @deprecated use `Parameter$inboundSchema` instead. */
1983
+ export const inboundSchema = Parameter$inboundSchema;
1984
+ /** @deprecated use `Parameter$outboundSchema` instead. */
1985
+ export const outboundSchema = Parameter$outboundSchema;
1986
+ }
1987
+
1988
+ /** @internal */
1989
+ export const ParameterType$inboundSchema: z.ZodNativeEnum<
1990
+ typeof ParameterType
1991
+ > = z.nativeEnum(ParameterType);
1992
+
1993
+ /** @internal */
1994
+ export const ParameterType$outboundSchema: z.ZodNativeEnum<
1995
+ typeof ParameterType
1996
+ > = ParameterType$inboundSchema;
1997
+
1998
+ /**
1999
+ * @internal
2000
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2001
+ */
2002
+ export namespace ParameterType$ {
2003
+ /** @deprecated use `ParameterType$inboundSchema` instead. */
2004
+ export const inboundSchema = ParameterType$inboundSchema;
2005
+ /** @deprecated use `ParameterType$outboundSchema` instead. */
2006
+ export const outboundSchema = ParameterType$outboundSchema;
2007
+ }
2008
+
2009
+ /** @internal */
2010
+ export const Config$inboundSchema: z.ZodType<Config, z.ZodTypeDef, unknown> = z
2011
+ .object({
2012
+ default: z.number(),
2013
+ max: z.number(),
2014
+ min: z.number(),
2015
+ step: z.number(),
2016
+ });
2017
+
2018
+ /** @internal */
2019
+ export type Config$Outbound = {
2020
+ default: number;
2021
+ max: number;
2022
+ min: number;
2023
+ step: number;
2024
+ };
2025
+
2026
+ /** @internal */
2027
+ export const Config$outboundSchema: z.ZodType<
2028
+ Config$Outbound,
2029
+ z.ZodTypeDef,
2030
+ Config
2031
+ > = z.object({
2032
+ default: z.number(),
2033
+ max: z.number(),
2034
+ min: z.number(),
2035
+ step: z.number(),
2036
+ });
2037
+
2038
+ /**
2039
+ * @internal
2040
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2041
+ */
2042
+ export namespace Config$ {
2043
+ /** @deprecated use `Config$inboundSchema` instead. */
2044
+ export const inboundSchema = Config$inboundSchema;
2045
+ /** @deprecated use `Config$outboundSchema` instead. */
2046
+ export const outboundSchema = Config$outboundSchema;
2047
+ /** @deprecated use `Config$Outbound` instead. */
2048
+ export type Outbound = Config$Outbound;
2049
+ }
2050
+
2051
+ export function configToJSON(config: Config): string {
2052
+ return JSON.stringify(Config$outboundSchema.parse(config));
2053
+ }
2054
+
2055
+ export function configFromJSON(
2056
+ jsonString: string,
2057
+ ): SafeParseResult<Config, SDKValidationError> {
2058
+ return safeParse(
2059
+ jsonString,
2060
+ (x) => Config$inboundSchema.parse(JSON.parse(x)),
2061
+ `Failed to parse 'Config' from JSON`,
2062
+ );
2063
+ }
2064
+
2065
+ /** @internal */
2066
+ export const Parameters1$inboundSchema: z.ZodType<
2067
+ Parameters1,
2068
+ z.ZodTypeDef,
2069
+ unknown
2070
+ > = z.object({
2071
+ id: z.string(),
2072
+ name: z.string(),
2073
+ parameter: Parameter$inboundSchema,
2074
+ description: z.string(),
2075
+ hints: z.nullable(z.string()).optional(),
2076
+ is_active: z.boolean(),
2077
+ position: z.nullable(z.number()).optional(),
2078
+ parameter_type: ParameterType$inboundSchema,
2079
+ config: z.lazy(() => Config$inboundSchema),
2080
+ }).transform((v) => {
2081
+ return remap$(v, {
2082
+ "is_active": "isActive",
2083
+ "parameter_type": "parameterType",
2084
+ });
2085
+ });
2086
+
2087
+ /** @internal */
2088
+ export type Parameters1$Outbound = {
2089
+ id: string;
2090
+ name: string;
2091
+ parameter: string;
2092
+ description: string;
2093
+ hints?: string | null | undefined;
2094
+ is_active: boolean;
2095
+ position?: number | null | undefined;
2096
+ parameter_type: string;
2097
+ config: Config$Outbound;
2098
+ };
2099
+
2100
+ /** @internal */
2101
+ export const Parameters1$outboundSchema: z.ZodType<
2102
+ Parameters1$Outbound,
2103
+ z.ZodTypeDef,
2104
+ Parameters1
2105
+ > = z.object({
2106
+ id: z.string(),
2107
+ name: z.string(),
2108
+ parameter: Parameter$outboundSchema,
2109
+ description: z.string(),
2110
+ hints: z.nullable(z.string()).optional(),
2111
+ isActive: z.boolean(),
2112
+ position: z.nullable(z.number()).optional(),
2113
+ parameterType: ParameterType$outboundSchema,
2114
+ config: z.lazy(() => Config$outboundSchema),
2115
+ }).transform((v) => {
2116
+ return remap$(v, {
2117
+ isActive: "is_active",
2118
+ parameterType: "parameter_type",
2119
+ });
2120
+ });
2121
+
2122
+ /**
2123
+ * @internal
2124
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2125
+ */
2126
+ export namespace Parameters1$ {
2127
+ /** @deprecated use `Parameters1$inboundSchema` instead. */
2128
+ export const inboundSchema = Parameters1$inboundSchema;
2129
+ /** @deprecated use `Parameters1$outboundSchema` instead. */
2130
+ export const outboundSchema = Parameters1$outboundSchema;
2131
+ /** @deprecated use `Parameters1$Outbound` instead. */
2132
+ export type Outbound = Parameters1$Outbound;
2133
+ }
2134
+
2135
+ export function parameters1ToJSON(parameters1: Parameters1): string {
2136
+ return JSON.stringify(Parameters1$outboundSchema.parse(parameters1));
2137
+ }
2138
+
2139
+ export function parameters1FromJSON(
2140
+ jsonString: string,
2141
+ ): SafeParseResult<Parameters1, SDKValidationError> {
2142
+ return safeParse(
2143
+ jsonString,
2144
+ (x) => Parameters1$inboundSchema.parse(JSON.parse(x)),
2145
+ `Failed to parse 'Parameters1' from JSON`,
2146
+ );
2147
+ }
2148
+
2149
+ /** @internal */
2150
+ export const ParametersT$inboundSchema: z.ZodType<
2151
+ ParametersT,
2152
+ z.ZodTypeDef,
2153
+ unknown
2154
+ > = z.union([
2155
+ z.lazy(() => Parameters1$inboundSchema),
2156
+ z.lazy(() => Parameters2$inboundSchema),
2157
+ z.lazy(() => Parameters3$inboundSchema),
2158
+ ]);
2159
+
2160
+ /** @internal */
2161
+ export type ParametersT$Outbound =
2162
+ | Parameters1$Outbound
2163
+ | Parameters2$Outbound
2164
+ | Parameters3$Outbound;
2165
+
2166
+ /** @internal */
2167
+ export const ParametersT$outboundSchema: z.ZodType<
2168
+ ParametersT$Outbound,
2169
+ z.ZodTypeDef,
2170
+ ParametersT
2171
+ > = z.union([
2172
+ z.lazy(() => Parameters1$outboundSchema),
2173
+ z.lazy(() => Parameters2$outboundSchema),
2174
+ z.lazy(() => Parameters3$outboundSchema),
2175
+ ]);
2176
+
2177
+ /**
2178
+ * @internal
2179
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2180
+ */
2181
+ export namespace ParametersT$ {
2182
+ /** @deprecated use `ParametersT$inboundSchema` instead. */
2183
+ export const inboundSchema = ParametersT$inboundSchema;
2184
+ /** @deprecated use `ParametersT$outboundSchema` instead. */
2185
+ export const outboundSchema = ParametersT$outboundSchema;
2186
+ /** @deprecated use `ParametersT$Outbound` instead. */
2187
+ export type Outbound = ParametersT$Outbound;
2188
+ }
2189
+
2190
+ export function parametersToJSON(parametersT: ParametersT): string {
2191
+ return JSON.stringify(ParametersT$outboundSchema.parse(parametersT));
2192
+ }
2193
+
2194
+ export function parametersFromJSON(
2195
+ jsonString: string,
2196
+ ): SafeParseResult<ParametersT, SDKValidationError> {
2197
+ return safeParse(
2198
+ jsonString,
2199
+ (x) => ParametersT$inboundSchema.parse(JSON.parse(x)),
2200
+ `Failed to parse 'ParametersT' from JSON`,
2201
+ );
2202
+ }
2203
+
2204
+ /** @internal */
2205
+ export const PostV2ModelsLitellmImportResponseBody$inboundSchema: z.ZodType<
2206
+ PostV2ModelsLitellmImportResponseBody,
2207
+ z.ZodTypeDef,
2208
+ unknown
2209
+ > = z.object({
2210
+ id: z.string(),
2211
+ created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
2212
+ updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
2213
+ display_name: z.string(),
2214
+ model_id: z.string(),
2215
+ model_revision: z.string().optional(),
2216
+ model_developer: z.string(),
2217
+ model_family: z.string(),
2218
+ model_type: PostV2ModelsLitellmImportModelType$inboundSchema,
2219
+ provider: PostV2ModelsLitellmImportProvider$inboundSchema,
2220
+ is_active: z.boolean().default(true),
2221
+ input_cost: z.number(),
2222
+ input_currency: z.string().default("USD"),
2223
+ output_cost: z.number(),
2224
+ output_currency: z.string().default("USD"),
2225
+ description: z.string().optional(),
2226
+ has_functions: z.boolean().default(false),
2227
+ has_cpu_pricing: z.boolean().default(false),
2228
+ pricing_url: z.string().optional(),
2229
+ docs_url: z.string().optional(),
2230
+ enabled: z.boolean(),
2231
+ enabled_for_endpoints: z.boolean().default(false),
2232
+ enabled_for_playground: z.boolean().default(false),
2233
+ owner: z.string().default("system"),
2234
+ metadata: z.lazy(() => PostV2ModelsLitellmImportMetadata$inboundSchema),
2235
+ configuration: z.union([
2236
+ z.lazy(() => Configuration3$inboundSchema),
2237
+ z.lazy(() => Configuration4$inboundSchema),
2238
+ z.lazy(() => Configuration1$inboundSchema),
2239
+ z.lazy(() => Configuration2$inboundSchema),
2240
+ ]).optional(),
2241
+ parameters: z.array(
2242
+ z.union([
2243
+ z.lazy(() => Parameters1$inboundSchema),
2244
+ z.lazy(() => Parameters2$inboundSchema),
2245
+ z.lazy(() => Parameters3$inboundSchema),
2246
+ ]),
2247
+ ),
2248
+ }).transform((v) => {
2249
+ return remap$(v, {
2250
+ "display_name": "displayName",
2251
+ "model_id": "modelId",
2252
+ "model_revision": "modelRevision",
2253
+ "model_developer": "modelDeveloper",
2254
+ "model_family": "modelFamily",
2255
+ "model_type": "modelType",
2256
+ "is_active": "isActive",
2257
+ "input_cost": "inputCost",
2258
+ "input_currency": "inputCurrency",
2259
+ "output_cost": "outputCost",
2260
+ "output_currency": "outputCurrency",
2261
+ "has_functions": "hasFunctions",
2262
+ "has_cpu_pricing": "hasCpuPricing",
2263
+ "pricing_url": "pricingUrl",
2264
+ "docs_url": "docsUrl",
2265
+ "enabled_for_endpoints": "enabledForEndpoints",
2266
+ "enabled_for_playground": "enabledForPlayground",
2267
+ });
2268
+ });
2269
+
2270
+ /** @internal */
2271
+ export type PostV2ModelsLitellmImportResponseBody$Outbound = {
2272
+ id: string;
2273
+ created: string;
2274
+ updated: string;
2275
+ display_name: string;
2276
+ model_id: string;
2277
+ model_revision?: string | undefined;
2278
+ model_developer: string;
2279
+ model_family: string;
2280
+ model_type: string;
2281
+ provider: string;
2282
+ is_active: boolean;
2283
+ input_cost: number;
2284
+ input_currency: string;
2285
+ output_cost: number;
2286
+ output_currency: string;
2287
+ description?: string | undefined;
2288
+ has_functions: boolean;
2289
+ has_cpu_pricing: boolean;
2290
+ pricing_url?: string | undefined;
2291
+ docs_url?: string | undefined;
2292
+ enabled: boolean;
2293
+ enabled_for_endpoints: boolean;
2294
+ enabled_for_playground: boolean;
2295
+ owner: string;
2296
+ metadata: PostV2ModelsLitellmImportMetadata$Outbound;
2297
+ configuration?:
2298
+ | Configuration3$Outbound
2299
+ | Configuration4$Outbound
2300
+ | Configuration1$Outbound
2301
+ | Configuration2$Outbound
2302
+ | undefined;
2303
+ parameters: Array<
2304
+ Parameters1$Outbound | Parameters2$Outbound | Parameters3$Outbound
2305
+ >;
2306
+ };
2307
+
2308
+ /** @internal */
2309
+ export const PostV2ModelsLitellmImportResponseBody$outboundSchema: z.ZodType<
2310
+ PostV2ModelsLitellmImportResponseBody$Outbound,
2311
+ z.ZodTypeDef,
2312
+ PostV2ModelsLitellmImportResponseBody
2313
+ > = z.object({
2314
+ id: z.string(),
2315
+ created: z.date().transform(v => v.toISOString()),
2316
+ updated: z.date().transform(v => v.toISOString()),
2317
+ displayName: z.string(),
2318
+ modelId: z.string(),
2319
+ modelRevision: z.string().optional(),
2320
+ modelDeveloper: z.string(),
2321
+ modelFamily: z.string(),
2322
+ modelType: PostV2ModelsLitellmImportModelType$outboundSchema,
2323
+ provider: PostV2ModelsLitellmImportProvider$outboundSchema,
2324
+ isActive: z.boolean().default(true),
2325
+ inputCost: z.number(),
2326
+ inputCurrency: z.string().default("USD"),
2327
+ outputCost: z.number(),
2328
+ outputCurrency: z.string().default("USD"),
2329
+ description: z.string().optional(),
2330
+ hasFunctions: z.boolean().default(false),
2331
+ hasCpuPricing: z.boolean().default(false),
2332
+ pricingUrl: z.string().optional(),
2333
+ docsUrl: z.string().optional(),
2334
+ enabled: z.boolean(),
2335
+ enabledForEndpoints: z.boolean().default(false),
2336
+ enabledForPlayground: z.boolean().default(false),
2337
+ owner: z.string().default("system"),
2338
+ metadata: z.lazy(() => PostV2ModelsLitellmImportMetadata$outboundSchema),
2339
+ configuration: z.union([
2340
+ z.lazy(() => Configuration3$outboundSchema),
2341
+ z.lazy(() => Configuration4$outboundSchema),
2342
+ z.lazy(() => Configuration1$outboundSchema),
2343
+ z.lazy(() => Configuration2$outboundSchema),
2344
+ ]).optional(),
2345
+ parameters: z.array(
2346
+ z.union([
2347
+ z.lazy(() => Parameters1$outboundSchema),
2348
+ z.lazy(() => Parameters2$outboundSchema),
2349
+ z.lazy(() => Parameters3$outboundSchema),
2350
+ ]),
2351
+ ),
2352
+ }).transform((v) => {
2353
+ return remap$(v, {
2354
+ displayName: "display_name",
2355
+ modelId: "model_id",
2356
+ modelRevision: "model_revision",
2357
+ modelDeveloper: "model_developer",
2358
+ modelFamily: "model_family",
2359
+ modelType: "model_type",
2360
+ isActive: "is_active",
2361
+ inputCost: "input_cost",
2362
+ inputCurrency: "input_currency",
2363
+ outputCost: "output_cost",
2364
+ outputCurrency: "output_currency",
2365
+ hasFunctions: "has_functions",
2366
+ hasCpuPricing: "has_cpu_pricing",
2367
+ pricingUrl: "pricing_url",
2368
+ docsUrl: "docs_url",
2369
+ enabledForEndpoints: "enabled_for_endpoints",
2370
+ enabledForPlayground: "enabled_for_playground",
2371
+ });
2372
+ });
2373
+
2374
+ /**
2375
+ * @internal
2376
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2377
+ */
2378
+ export namespace PostV2ModelsLitellmImportResponseBody$ {
2379
+ /** @deprecated use `PostV2ModelsLitellmImportResponseBody$inboundSchema` instead. */
2380
+ export const inboundSchema =
2381
+ PostV2ModelsLitellmImportResponseBody$inboundSchema;
2382
+ /** @deprecated use `PostV2ModelsLitellmImportResponseBody$outboundSchema` instead. */
2383
+ export const outboundSchema =
2384
+ PostV2ModelsLitellmImportResponseBody$outboundSchema;
2385
+ /** @deprecated use `PostV2ModelsLitellmImportResponseBody$Outbound` instead. */
2386
+ export type Outbound = PostV2ModelsLitellmImportResponseBody$Outbound;
2387
+ }
2388
+
2389
+ export function postV2ModelsLitellmImportResponseBodyToJSON(
2390
+ postV2ModelsLitellmImportResponseBody: PostV2ModelsLitellmImportResponseBody,
2391
+ ): string {
2392
+ return JSON.stringify(
2393
+ PostV2ModelsLitellmImportResponseBody$outboundSchema.parse(
2394
+ postV2ModelsLitellmImportResponseBody,
2395
+ ),
2396
+ );
2397
+ }
2398
+
2399
+ export function postV2ModelsLitellmImportResponseBodyFromJSON(
2400
+ jsonString: string,
2401
+ ): SafeParseResult<PostV2ModelsLitellmImportResponseBody, SDKValidationError> {
2402
+ return safeParse(
2403
+ jsonString,
2404
+ (x) =>
2405
+ PostV2ModelsLitellmImportResponseBody$inboundSchema.parse(JSON.parse(x)),
2406
+ `Failed to parse 'PostV2ModelsLitellmImportResponseBody' from JSON`,
2407
+ );
2408
+ }