@orq-ai/node 4.8.0-rc.8 → 4.8.1

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 (1676) hide show
  1. package/FUNCTIONS.md +4 -4
  2. package/README.md +89 -89
  3. package/examples/{postV2Feedback.example.ts → postV2FeedbackEvaluationRemove.example.ts} +2 -4
  4. package/funcs/agentsCreate.d.ts.map +1 -1
  5. package/funcs/agentsCreate.js +2 -1
  6. package/funcs/agentsCreate.js.map +1 -1
  7. package/funcs/agentsDelete.d.ts.map +1 -1
  8. package/funcs/agentsDelete.js +2 -1
  9. package/funcs/agentsDelete.js.map +1 -1
  10. package/funcs/agentsInvoke.d.ts.map +1 -1
  11. package/funcs/agentsInvoke.js +2 -1
  12. package/funcs/agentsInvoke.js.map +1 -1
  13. package/funcs/agentsList.d.ts.map +1 -1
  14. package/funcs/agentsList.js +2 -1
  15. package/funcs/agentsList.js.map +1 -1
  16. package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -1
  17. package/funcs/agentsPostV2AgentsA2a.js +2 -1
  18. package/funcs/agentsPostV2AgentsA2a.js.map +1 -1
  19. package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -1
  20. package/funcs/agentsPostV2AgentsKeyCardRefresh.js +2 -1
  21. package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -1
  22. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  23. package/funcs/agentsResponsesCreate.js +2 -1
  24. package/funcs/agentsResponsesCreate.js.map +1 -1
  25. package/funcs/agentsResponsesGet.d.ts.map +1 -1
  26. package/funcs/agentsResponsesGet.js +2 -1
  27. package/funcs/agentsResponsesGet.js.map +1 -1
  28. package/funcs/agentsRetrieve.d.ts.map +1 -1
  29. package/funcs/agentsRetrieve.js +2 -1
  30. package/funcs/agentsRetrieve.js.map +1 -1
  31. package/funcs/agentsRun.d.ts.map +1 -1
  32. package/funcs/agentsRun.js +2 -1
  33. package/funcs/agentsRun.js.map +1 -1
  34. package/funcs/agentsStream.d.ts.map +1 -1
  35. package/funcs/agentsStream.js +2 -1
  36. package/funcs/agentsStream.js.map +1 -1
  37. package/funcs/agentsStreamRun.d.ts.map +1 -1
  38. package/funcs/agentsStreamRun.js +2 -1
  39. package/funcs/agentsStreamRun.js.map +1 -1
  40. package/funcs/agentsUpdate.d.ts.map +1 -1
  41. package/funcs/agentsUpdate.js +2 -1
  42. package/funcs/agentsUpdate.js.map +1 -1
  43. package/funcs/annotationsCreate.d.ts.map +1 -1
  44. package/funcs/annotationsCreate.js +2 -1
  45. package/funcs/annotationsCreate.js.map +1 -1
  46. package/funcs/annotationsDelete.d.ts.map +1 -1
  47. package/funcs/annotationsDelete.js +2 -1
  48. package/funcs/annotationsDelete.js.map +1 -1
  49. package/funcs/chunkingParse.d.ts.map +1 -1
  50. package/funcs/chunkingParse.js +2 -1
  51. package/funcs/chunkingParse.js.map +1 -1
  52. package/funcs/contactsCreate.d.ts.map +1 -1
  53. package/funcs/contactsCreate.js +2 -1
  54. package/funcs/contactsCreate.js.map +1 -1
  55. package/funcs/datasetsClear.d.ts.map +1 -1
  56. package/funcs/datasetsClear.js +2 -1
  57. package/funcs/datasetsClear.js.map +1 -1
  58. package/funcs/datasetsCreate.d.ts.map +1 -1
  59. package/funcs/datasetsCreate.js +2 -1
  60. package/funcs/datasetsCreate.js.map +1 -1
  61. package/funcs/datasetsCreateDatapoint.d.ts.map +1 -1
  62. package/funcs/datasetsCreateDatapoint.js +2 -1
  63. package/funcs/datasetsCreateDatapoint.js.map +1 -1
  64. package/funcs/datasetsDelete.d.ts.map +1 -1
  65. package/funcs/datasetsDelete.js +2 -1
  66. package/funcs/datasetsDelete.js.map +1 -1
  67. package/funcs/datasetsDeleteDatapoint.d.ts.map +1 -1
  68. package/funcs/datasetsDeleteDatapoint.js +2 -1
  69. package/funcs/datasetsDeleteDatapoint.js.map +1 -1
  70. package/funcs/datasetsList.d.ts.map +1 -1
  71. package/funcs/datasetsList.js +2 -1
  72. package/funcs/datasetsList.js.map +1 -1
  73. package/funcs/datasetsListDatapoints.d.ts.map +1 -1
  74. package/funcs/datasetsListDatapoints.js +2 -1
  75. package/funcs/datasetsListDatapoints.js.map +1 -1
  76. package/funcs/datasetsRetrieve.d.ts.map +1 -1
  77. package/funcs/datasetsRetrieve.js +2 -1
  78. package/funcs/datasetsRetrieve.js.map +1 -1
  79. package/funcs/datasetsRetrieveDatapoint.d.ts.map +1 -1
  80. package/funcs/datasetsRetrieveDatapoint.js +2 -1
  81. package/funcs/datasetsRetrieveDatapoint.js.map +1 -1
  82. package/funcs/datasetsUpdate.d.ts.map +1 -1
  83. package/funcs/datasetsUpdate.js +2 -1
  84. package/funcs/datasetsUpdate.js.map +1 -1
  85. package/funcs/datasetsUpdateDatapoint.d.ts.map +1 -1
  86. package/funcs/datasetsUpdateDatapoint.js +2 -1
  87. package/funcs/datasetsUpdateDatapoint.js.map +1 -1
  88. package/funcs/deploymentsGetConfig.d.ts.map +1 -1
  89. package/funcs/deploymentsGetConfig.js +2 -1
  90. package/funcs/deploymentsGetConfig.js.map +1 -1
  91. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  92. package/funcs/deploymentsInvoke.js +2 -1
  93. package/funcs/deploymentsInvoke.js.map +1 -1
  94. package/funcs/deploymentsList.d.ts.map +1 -1
  95. package/funcs/deploymentsList.js +2 -1
  96. package/funcs/deploymentsList.js.map +1 -1
  97. package/funcs/deploymentsMetricsCreate.d.ts.map +1 -1
  98. package/funcs/deploymentsMetricsCreate.js +2 -1
  99. package/funcs/deploymentsMetricsCreate.js.map +1 -1
  100. package/funcs/deploymentsStream.d.ts.map +1 -1
  101. package/funcs/deploymentsStream.js +2 -1
  102. package/funcs/deploymentsStream.js.map +1 -1
  103. package/funcs/evalsAll.d.ts.map +1 -1
  104. package/funcs/evalsAll.js +2 -1
  105. package/funcs/evalsAll.js.map +1 -1
  106. package/funcs/evalsCreate.d.ts.map +1 -1
  107. package/funcs/evalsCreate.js +2 -1
  108. package/funcs/evalsCreate.js.map +1 -1
  109. package/funcs/evalsDelete.d.ts.map +1 -1
  110. package/funcs/evalsDelete.js +2 -1
  111. package/funcs/evalsDelete.js.map +1 -1
  112. package/funcs/{evaluatorsGetV2EvaluatorsIdVersions.d.ts → evalsGetV2EvaluatorsIdVersions.d.ts} +2 -2
  113. package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
  114. package/funcs/{evaluatorsGetV2EvaluatorsIdVersions.js → evalsGetV2EvaluatorsIdVersions.js} +5 -4
  115. package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +1 -0
  116. package/funcs/evalsInvoke.d.ts.map +1 -1
  117. package/funcs/evalsInvoke.js +2 -1
  118. package/funcs/evalsInvoke.js.map +1 -1
  119. package/funcs/evalsUpdate.d.ts.map +1 -1
  120. package/funcs/evalsUpdate.js +2 -1
  121. package/funcs/evalsUpdate.js.map +1 -1
  122. package/funcs/{getV2HumanEvalsId.d.ts → feedbackPostV2Feedback.d.ts} +2 -2
  123. package/funcs/feedbackPostV2Feedback.d.ts.map +1 -0
  124. package/funcs/{postV2Feedback.js → feedbackPostV2Feedback.js} +6 -5
  125. package/funcs/feedbackPostV2Feedback.js.map +1 -0
  126. package/funcs/{getV2HumanEvals.d.ts → feedbackPostV2FeedbackRemove.d.ts} +2 -2
  127. package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +1 -0
  128. package/funcs/{postV2FeedbackRemove.js → feedbackPostV2FeedbackRemove.js} +5 -4
  129. package/funcs/feedbackPostV2FeedbackRemove.js.map +1 -0
  130. package/funcs/filesCreate.d.ts.map +1 -1
  131. package/funcs/filesCreate.js +2 -1
  132. package/funcs/filesCreate.js.map +1 -1
  133. package/funcs/filesDelete.d.ts.map +1 -1
  134. package/funcs/filesDelete.js +2 -1
  135. package/funcs/filesDelete.js.map +1 -1
  136. package/funcs/filesGet.d.ts.map +1 -1
  137. package/funcs/filesGet.js +2 -1
  138. package/funcs/filesGet.js.map +1 -1
  139. package/funcs/filesGetContent.d.ts +1 -1
  140. package/funcs/filesGetContent.d.ts.map +1 -1
  141. package/funcs/filesGetContent.js +3 -2
  142. package/funcs/filesGetContent.js.map +1 -1
  143. package/funcs/filesList.d.ts.map +1 -1
  144. package/funcs/filesList.js +2 -1
  145. package/funcs/filesList.js.map +1 -1
  146. package/funcs/filesUpdate.d.ts.map +1 -1
  147. package/funcs/filesUpdate.js +2 -1
  148. package/funcs/filesUpdate.js.map +1 -1
  149. package/funcs/guardrailRulesCreate.d.ts.map +1 -1
  150. package/funcs/guardrailRulesCreate.js +3 -2
  151. package/funcs/guardrailRulesCreate.js.map +1 -1
  152. package/funcs/guardrailRulesDelete.d.ts.map +1 -1
  153. package/funcs/guardrailRulesDelete.js +2 -1
  154. package/funcs/guardrailRulesDelete.js.map +1 -1
  155. package/funcs/guardrailRulesList.d.ts.map +1 -1
  156. package/funcs/guardrailRulesList.js +2 -1
  157. package/funcs/guardrailRulesList.js.map +1 -1
  158. package/funcs/{modelsList.d.ts → guardrailRulesRetrieve.d.ts} +4 -4
  159. package/funcs/guardrailRulesRetrieve.d.ts.map +1 -0
  160. package/funcs/{guardrailRulesGet.js → guardrailRulesRetrieve.js} +5 -4
  161. package/funcs/guardrailRulesRetrieve.js.map +1 -0
  162. package/funcs/guardrailRulesUpdate.d.ts.map +1 -1
  163. package/funcs/guardrailRulesUpdate.js +3 -2
  164. package/funcs/guardrailRulesUpdate.js.map +1 -1
  165. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +1 -1
  166. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js +2 -1
  167. package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +1 -1
  168. package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +1 -1
  169. package/funcs/humanReviewSetsGetV2HumanEvalSets.js +2 -1
  170. package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +1 -1
  171. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +1 -1
  172. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js +2 -1
  173. package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +1 -1
  174. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +1 -1
  175. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js +2 -1
  176. package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +1 -1
  177. package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +1 -1
  178. package/funcs/humanReviewSetsPostV2HumanEvalSets.js +2 -1
  179. package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +1 -1
  180. package/funcs/identitiesCreate.d.ts.map +1 -1
  181. package/funcs/identitiesCreate.js +2 -1
  182. package/funcs/identitiesCreate.js.map +1 -1
  183. package/funcs/identitiesDelete.d.ts.map +1 -1
  184. package/funcs/identitiesDelete.js +2 -1
  185. package/funcs/identitiesDelete.js.map +1 -1
  186. package/funcs/identitiesList.d.ts.map +1 -1
  187. package/funcs/identitiesList.js +2 -1
  188. package/funcs/identitiesList.js.map +1 -1
  189. package/funcs/identitiesRetrieve.d.ts.map +1 -1
  190. package/funcs/identitiesRetrieve.js +2 -1
  191. package/funcs/identitiesRetrieve.js.map +1 -1
  192. package/funcs/identitiesUpdate.d.ts.map +1 -1
  193. package/funcs/identitiesUpdate.js +2 -1
  194. package/funcs/identitiesUpdate.js.map +1 -1
  195. package/funcs/knowledgeCreate.d.ts.map +1 -1
  196. package/funcs/knowledgeCreate.js +2 -1
  197. package/funcs/knowledgeCreate.js.map +1 -1
  198. package/funcs/knowledgeCreateChunks.d.ts +1 -1
  199. package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
  200. package/funcs/knowledgeCreateChunks.js +3 -2
  201. package/funcs/knowledgeCreateChunks.js.map +1 -1
  202. package/funcs/knowledgeCreateDatasource.d.ts.map +1 -1
  203. package/funcs/knowledgeCreateDatasource.js +2 -1
  204. package/funcs/knowledgeCreateDatasource.js.map +1 -1
  205. package/funcs/knowledgeDelete.d.ts.map +1 -1
  206. package/funcs/knowledgeDelete.js +2 -1
  207. package/funcs/knowledgeDelete.js.map +1 -1
  208. package/funcs/knowledgeDeleteChunk.d.ts.map +1 -1
  209. package/funcs/knowledgeDeleteChunk.js +2 -1
  210. package/funcs/knowledgeDeleteChunk.js.map +1 -1
  211. package/funcs/knowledgeDeleteChunks.d.ts.map +1 -1
  212. package/funcs/knowledgeDeleteChunks.js +2 -1
  213. package/funcs/knowledgeDeleteChunks.js.map +1 -1
  214. package/funcs/knowledgeDeleteDatasource.d.ts.map +1 -1
  215. package/funcs/knowledgeDeleteDatasource.js +2 -1
  216. package/funcs/knowledgeDeleteDatasource.js.map +1 -1
  217. package/funcs/knowledgeGetChunksCount.d.ts.map +1 -1
  218. package/funcs/knowledgeGetChunksCount.js +2 -1
  219. package/funcs/knowledgeGetChunksCount.js.map +1 -1
  220. package/funcs/knowledgeList.d.ts.map +1 -1
  221. package/funcs/knowledgeList.js +2 -1
  222. package/funcs/knowledgeList.js.map +1 -1
  223. package/funcs/knowledgeListChunks.d.ts.map +1 -1
  224. package/funcs/knowledgeListChunks.js +2 -1
  225. package/funcs/knowledgeListChunks.js.map +1 -1
  226. package/funcs/knowledgeListChunksPaginated.d.ts.map +1 -1
  227. package/funcs/knowledgeListChunksPaginated.js +2 -1
  228. package/funcs/knowledgeListChunksPaginated.js.map +1 -1
  229. package/funcs/knowledgeListDatasources.d.ts.map +1 -1
  230. package/funcs/knowledgeListDatasources.js +2 -1
  231. package/funcs/knowledgeListDatasources.js.map +1 -1
  232. package/funcs/knowledgeRetrieve.d.ts.map +1 -1
  233. package/funcs/knowledgeRetrieve.js +2 -1
  234. package/funcs/knowledgeRetrieve.js.map +1 -1
  235. package/funcs/knowledgeRetrieveChunk.d.ts.map +1 -1
  236. package/funcs/knowledgeRetrieveChunk.js +2 -1
  237. package/funcs/knowledgeRetrieveChunk.js.map +1 -1
  238. package/funcs/knowledgeRetrieveDatasource.d.ts.map +1 -1
  239. package/funcs/knowledgeRetrieveDatasource.js +2 -1
  240. package/funcs/knowledgeRetrieveDatasource.js.map +1 -1
  241. package/funcs/knowledgeSearch.d.ts.map +1 -1
  242. package/funcs/knowledgeSearch.js +2 -1
  243. package/funcs/knowledgeSearch.js.map +1 -1
  244. package/funcs/knowledgeUpdate.d.ts.map +1 -1
  245. package/funcs/knowledgeUpdate.js +2 -1
  246. package/funcs/knowledgeUpdate.js.map +1 -1
  247. package/funcs/knowledgeUpdateChunk.d.ts.map +1 -1
  248. package/funcs/knowledgeUpdateChunk.js +2 -1
  249. package/funcs/knowledgeUpdateChunk.js.map +1 -1
  250. package/funcs/knowledgeUpdateDatasource.d.ts.map +1 -1
  251. package/funcs/knowledgeUpdateDatasource.js +2 -1
  252. package/funcs/knowledgeUpdateDatasource.js.map +1 -1
  253. package/funcs/memoryStoresCreate.d.ts.map +1 -1
  254. package/funcs/memoryStoresCreate.js +2 -1
  255. package/funcs/memoryStoresCreate.js.map +1 -1
  256. package/funcs/memoryStoresCreateDocument.d.ts.map +1 -1
  257. package/funcs/memoryStoresCreateDocument.js +2 -1
  258. package/funcs/memoryStoresCreateDocument.js.map +1 -1
  259. package/funcs/memoryStoresCreateMemory.d.ts.map +1 -1
  260. package/funcs/memoryStoresCreateMemory.js +2 -1
  261. package/funcs/memoryStoresCreateMemory.js.map +1 -1
  262. package/funcs/memoryStoresDelete.d.ts.map +1 -1
  263. package/funcs/memoryStoresDelete.js +2 -1
  264. package/funcs/memoryStoresDelete.js.map +1 -1
  265. package/funcs/memoryStoresDeleteDocument.d.ts.map +1 -1
  266. package/funcs/memoryStoresDeleteDocument.js +2 -1
  267. package/funcs/memoryStoresDeleteDocument.js.map +1 -1
  268. package/funcs/memoryStoresDeleteMemory.d.ts.map +1 -1
  269. package/funcs/memoryStoresDeleteMemory.js +2 -1
  270. package/funcs/memoryStoresDeleteMemory.js.map +1 -1
  271. package/funcs/memoryStoresList.d.ts.map +1 -1
  272. package/funcs/memoryStoresList.js +2 -1
  273. package/funcs/memoryStoresList.js.map +1 -1
  274. package/funcs/memoryStoresListDocuments.d.ts.map +1 -1
  275. package/funcs/memoryStoresListDocuments.js +2 -1
  276. package/funcs/memoryStoresListDocuments.js.map +1 -1
  277. package/funcs/memoryStoresListMemories.d.ts.map +1 -1
  278. package/funcs/memoryStoresListMemories.js +2 -1
  279. package/funcs/memoryStoresListMemories.js.map +1 -1
  280. package/funcs/memoryStoresRetrieve.d.ts.map +1 -1
  281. package/funcs/memoryStoresRetrieve.js +2 -1
  282. package/funcs/memoryStoresRetrieve.js.map +1 -1
  283. package/funcs/memoryStoresRetrieveDocument.d.ts.map +1 -1
  284. package/funcs/memoryStoresRetrieveDocument.js +2 -1
  285. package/funcs/memoryStoresRetrieveDocument.js.map +1 -1
  286. package/funcs/memoryStoresRetrieveMemory.d.ts.map +1 -1
  287. package/funcs/memoryStoresRetrieveMemory.js +2 -1
  288. package/funcs/memoryStoresRetrieveMemory.js.map +1 -1
  289. package/funcs/memoryStoresUpdate.d.ts.map +1 -1
  290. package/funcs/memoryStoresUpdate.js +2 -1
  291. package/funcs/memoryStoresUpdate.js.map +1 -1
  292. package/funcs/memoryStoresUpdateDocument.d.ts.map +1 -1
  293. package/funcs/memoryStoresUpdateDocument.js +2 -1
  294. package/funcs/memoryStoresUpdateDocument.js.map +1 -1
  295. package/funcs/memoryStoresUpdateMemory.d.ts.map +1 -1
  296. package/funcs/memoryStoresUpdateMemory.js +2 -1
  297. package/funcs/memoryStoresUpdateMemory.js.map +1 -1
  298. package/funcs/policiesCreate.d.ts.map +1 -1
  299. package/funcs/policiesCreate.js +2 -1
  300. package/funcs/policiesCreate.js.map +1 -1
  301. package/funcs/policiesDelete.d.ts.map +1 -1
  302. package/funcs/policiesDelete.js +2 -1
  303. package/funcs/policiesDelete.js.map +1 -1
  304. package/funcs/policiesList.d.ts.map +1 -1
  305. package/funcs/policiesList.js +2 -1
  306. package/funcs/policiesList.js.map +1 -1
  307. package/funcs/{patchV2HumanEvalsId.d.ts → policiesRetrieve.d.ts} +8 -3
  308. package/funcs/policiesRetrieve.d.ts.map +1 -0
  309. package/funcs/{policiesGet.js → policiesRetrieve.js} +5 -4
  310. package/funcs/policiesRetrieve.js.map +1 -0
  311. package/funcs/policiesUpdate.d.ts.map +1 -1
  312. package/funcs/policiesUpdate.js +2 -1
  313. package/funcs/policiesUpdate.js.map +1 -1
  314. package/funcs/postV2FeedbackEvaluation.d.ts.map +1 -1
  315. package/funcs/postV2FeedbackEvaluation.js +2 -1
  316. package/funcs/postV2FeedbackEvaluation.js.map +1 -1
  317. package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +1 -1
  318. package/funcs/postV2FeedbackEvaluationRemove.js +2 -1
  319. package/funcs/postV2FeedbackEvaluationRemove.js.map +1 -1
  320. package/funcs/promptsCreate.d.ts.map +1 -1
  321. package/funcs/promptsCreate.js +2 -1
  322. package/funcs/promptsCreate.js.map +1 -1
  323. package/funcs/promptsDelete.d.ts.map +1 -1
  324. package/funcs/promptsDelete.js +2 -1
  325. package/funcs/promptsDelete.js.map +1 -1
  326. package/funcs/promptsGetVersion.d.ts.map +1 -1
  327. package/funcs/promptsGetVersion.js +2 -1
  328. package/funcs/promptsGetVersion.js.map +1 -1
  329. package/funcs/promptsList.d.ts.map +1 -1
  330. package/funcs/promptsList.js +2 -1
  331. package/funcs/promptsList.js.map +1 -1
  332. package/funcs/promptsListVersions.d.ts.map +1 -1
  333. package/funcs/promptsListVersions.js +2 -1
  334. package/funcs/promptsListVersions.js.map +1 -1
  335. package/funcs/promptsRetrieve.d.ts.map +1 -1
  336. package/funcs/promptsRetrieve.js +2 -1
  337. package/funcs/promptsRetrieve.js.map +1 -1
  338. package/funcs/promptsUpdate.d.ts.map +1 -1
  339. package/funcs/promptsUpdate.js +2 -1
  340. package/funcs/promptsUpdate.js.map +1 -1
  341. package/funcs/remoteconfigsRetrieve.d.ts.map +1 -1
  342. package/funcs/remoteconfigsRetrieve.js +2 -1
  343. package/funcs/remoteconfigsRetrieve.js.map +1 -1
  344. package/funcs/responsesCreate.d.ts +23 -0
  345. package/funcs/responsesCreate.d.ts.map +1 -0
  346. package/funcs/{postV2HumanEvals.js → responsesCreate.js} +24 -16
  347. package/funcs/responsesCreate.js.map +1 -0
  348. package/funcs/{policiesGet.d.ts → responsesGet.d.ts} +4 -4
  349. package/funcs/responsesGet.d.ts.map +1 -0
  350. package/funcs/{getV2HumanEvalsId.js → responsesGet.js} +16 -13
  351. package/funcs/responsesGet.js.map +1 -0
  352. package/funcs/routerAudioSpeechCreate.d.ts.map +1 -1
  353. package/funcs/routerAudioSpeechCreate.js +2 -1
  354. package/funcs/routerAudioSpeechCreate.js.map +1 -1
  355. package/funcs/routerAudioTranscriptionsCreate.d.ts.map +1 -1
  356. package/funcs/routerAudioTranscriptionsCreate.js +2 -1
  357. package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
  358. package/funcs/routerAudioTranslationsCreate.d.ts.map +1 -1
  359. package/funcs/routerAudioTranslationsCreate.js +2 -1
  360. package/funcs/routerAudioTranslationsCreate.js.map +1 -1
  361. package/funcs/routerChatCompletionsCreate.d.ts.map +1 -1
  362. package/funcs/routerChatCompletionsCreate.js +2 -1
  363. package/funcs/routerChatCompletionsCreate.js.map +1 -1
  364. package/funcs/routerCompletionsCreate.d.ts.map +1 -1
  365. package/funcs/routerCompletionsCreate.js +2 -1
  366. package/funcs/routerCompletionsCreate.js.map +1 -1
  367. package/funcs/routerEmbeddingsCreate.d.ts.map +1 -1
  368. package/funcs/routerEmbeddingsCreate.js +2 -1
  369. package/funcs/routerEmbeddingsCreate.js.map +1 -1
  370. package/funcs/routerImagesEditsCreate.d.ts.map +1 -1
  371. package/funcs/routerImagesEditsCreate.js +2 -1
  372. package/funcs/routerImagesEditsCreate.js.map +1 -1
  373. package/funcs/routerImagesGenerationsCreate.d.ts.map +1 -1
  374. package/funcs/routerImagesGenerationsCreate.js +2 -1
  375. package/funcs/routerImagesGenerationsCreate.js.map +1 -1
  376. package/funcs/routerImagesVariationsCreate.d.ts.map +1 -1
  377. package/funcs/routerImagesVariationsCreate.js +2 -1
  378. package/funcs/routerImagesVariationsCreate.js.map +1 -1
  379. package/funcs/routerModerationsCreate.d.ts.map +1 -1
  380. package/funcs/routerModerationsCreate.js +2 -1
  381. package/funcs/routerModerationsCreate.js.map +1 -1
  382. package/funcs/routerOcr.d.ts.map +1 -1
  383. package/funcs/routerOcr.js +2 -1
  384. package/funcs/routerOcr.js.map +1 -1
  385. package/funcs/routerRerankCreate.d.ts.map +1 -1
  386. package/funcs/routerRerankCreate.js +2 -1
  387. package/funcs/routerRerankCreate.js.map +1 -1
  388. package/funcs/routerResponsesCreate.d.ts.map +1 -1
  389. package/funcs/routerResponsesCreate.js +2 -1
  390. package/funcs/routerResponsesCreate.js.map +1 -1
  391. package/funcs/routingRulesCreate.d.ts.map +1 -1
  392. package/funcs/routingRulesCreate.js +3 -2
  393. package/funcs/routingRulesCreate.js.map +1 -1
  394. package/funcs/routingRulesDelete.d.ts.map +1 -1
  395. package/funcs/routingRulesDelete.js +2 -1
  396. package/funcs/routingRulesDelete.js.map +1 -1
  397. package/funcs/routingRulesList.d.ts.map +1 -1
  398. package/funcs/routingRulesList.js +2 -1
  399. package/funcs/routingRulesList.js.map +1 -1
  400. package/funcs/{routingRulesGet.d.ts → routingRulesRetrieve.d.ts} +2 -2
  401. package/funcs/routingRulesRetrieve.d.ts.map +1 -0
  402. package/funcs/{routingRulesGet.js → routingRulesRetrieve.js} +5 -4
  403. package/funcs/routingRulesRetrieve.js.map +1 -0
  404. package/funcs/routingRulesUpdate.d.ts.map +1 -1
  405. package/funcs/routingRulesUpdate.js +3 -2
  406. package/funcs/routingRulesUpdate.js.map +1 -1
  407. package/funcs/schedulesCreate.d.ts +18 -0
  408. package/funcs/schedulesCreate.d.ts.map +1 -0
  409. package/funcs/{patchV2HumanEvalsId.js → schedulesCreate.js} +17 -10
  410. package/funcs/schedulesCreate.js.map +1 -0
  411. package/funcs/schedulesDelete.d.ts +18 -0
  412. package/funcs/schedulesDelete.d.ts.map +1 -0
  413. package/funcs/{deleteV2HumanEvalsId.js → schedulesDelete.js} +21 -9
  414. package/funcs/schedulesDelete.js.map +1 -0
  415. package/funcs/{guardrailRulesGet.d.ts → schedulesList.d.ts} +4 -4
  416. package/funcs/schedulesList.d.ts.map +1 -0
  417. package/funcs/schedulesList.js +120 -0
  418. package/funcs/schedulesList.js.map +1 -0
  419. package/funcs/{deleteV2HumanEvalsId.d.ts → schedulesRetrieve.d.ts} +8 -2
  420. package/funcs/schedulesRetrieve.d.ts.map +1 -0
  421. package/funcs/schedulesRetrieve.js +128 -0
  422. package/funcs/schedulesRetrieve.js.map +1 -0
  423. package/funcs/schedulesTrigger.d.ts +18 -0
  424. package/funcs/schedulesTrigger.d.ts.map +1 -0
  425. package/funcs/schedulesTrigger.js +128 -0
  426. package/funcs/schedulesTrigger.js.map +1 -0
  427. package/funcs/schedulesUpdate.d.ts +18 -0
  428. package/funcs/schedulesUpdate.d.ts.map +1 -0
  429. package/funcs/schedulesUpdate.js +129 -0
  430. package/funcs/schedulesUpdate.js.map +1 -0
  431. package/funcs/toolsCreate.d.ts.map +1 -1
  432. package/funcs/toolsCreate.js +2 -1
  433. package/funcs/toolsCreate.js.map +1 -1
  434. package/funcs/toolsDelete.d.ts.map +1 -1
  435. package/funcs/toolsDelete.js +2 -1
  436. package/funcs/toolsDelete.js.map +1 -1
  437. package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +1 -1
  438. package/funcs/toolsGetV2ToolsToolIdVersions.js +2 -1
  439. package/funcs/toolsGetV2ToolsToolIdVersions.js.map +1 -1
  440. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +1 -1
  441. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js +2 -1
  442. package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +1 -1
  443. package/funcs/toolsList.d.ts.map +1 -1
  444. package/funcs/toolsList.js +2 -1
  445. package/funcs/toolsList.js.map +1 -1
  446. package/funcs/toolsRetrieve.d.ts.map +1 -1
  447. package/funcs/toolsRetrieve.js +2 -1
  448. package/funcs/toolsRetrieve.js.map +1 -1
  449. package/funcs/toolsUpdate.d.ts.map +1 -1
  450. package/funcs/toolsUpdate.js +2 -1
  451. package/funcs/toolsUpdate.js.map +1 -1
  452. package/jsr.json +1 -1
  453. package/langchain/async-handler.d.mts.map +1 -0
  454. package/langchain/async-handler.mjs +329 -0
  455. package/langchain/async-handler.mjs.map +1 -0
  456. package/langchain/client.d.mts.map +1 -0
  457. package/langchain/client.mjs +120 -0
  458. package/langchain/client.mjs.map +1 -0
  459. package/langchain/events.d.mts.map +1 -0
  460. package/langchain/events.mjs +55 -0
  461. package/langchain/events.mjs.map +1 -0
  462. package/langchain/global.d.mts.map +1 -0
  463. package/langchain/global.mjs +77 -0
  464. package/langchain/global.mjs.map +1 -0
  465. package/langchain/graph.d.mts.map +1 -0
  466. package/langchain/graph.mjs +76 -0
  467. package/langchain/graph.mjs.map +1 -0
  468. package/langchain/handler.d.mts.map +1 -0
  469. package/langchain/handler.mjs +329 -0
  470. package/langchain/handler.mjs.map +1 -0
  471. package/langchain/index.d.mts.map +1 -0
  472. package/langchain/index.mjs +10 -0
  473. package/langchain/index.mjs.map +1 -0
  474. package/langchain/models.d.mts.map +1 -0
  475. package/langchain/models.mjs +40 -0
  476. package/langchain/models.mjs.map +1 -0
  477. package/langchain/span-builder.d.mts.map +1 -0
  478. package/langchain/span-builder.mjs +307 -0
  479. package/langchain/span-builder.mjs.map +1 -0
  480. package/langchain/utils.d.mts.map +1 -0
  481. package/langchain/utils.mjs +248 -0
  482. package/langchain/utils.mjs.map +1 -0
  483. package/lib/config.d.ts +3 -3
  484. package/lib/config.js +3 -3
  485. package/lib/config.js.map +1 -1
  486. package/lib/sdks.d.ts +1 -1
  487. package/lib/sdks.d.ts.map +1 -1
  488. package/lib/sdks.js +2 -4
  489. package/lib/sdks.js.map +1 -1
  490. package/models/components/conversationparam.d.ts +17 -0
  491. package/models/components/conversationparam.d.ts.map +1 -0
  492. package/models/{operations/deletev2humanevalsid.js → components/conversationparam.js} +12 -13
  493. package/models/components/conversationparam.js.map +1 -0
  494. package/models/components/expression.d.ts +0 -10
  495. package/models/components/expression.d.ts.map +1 -1
  496. package/models/components/expression.js +1 -10
  497. package/models/components/expression.js.map +1 -1
  498. package/models/components/expressioninput.d.ts +12 -0
  499. package/models/components/expressioninput.d.ts.map +1 -0
  500. package/models/components/expressioninput.js +49 -0
  501. package/models/components/expressioninput.js.map +1 -0
  502. package/models/components/fallbackconfig.d.ts +12 -0
  503. package/models/components/fallbackconfig.d.ts.map +1 -0
  504. package/models/components/fallbackconfig.js +49 -0
  505. package/models/components/fallbackconfig.js.map +1 -0
  506. package/models/components/guardrailref.d.ts +4 -0
  507. package/models/components/guardrailref.d.ts.map +1 -1
  508. package/models/components/guardrailref.js +8 -0
  509. package/models/components/guardrailref.js.map +1 -1
  510. package/models/components/{guardrailruledocument.d.ts → guardrailrule.d.ts} +4 -4
  511. package/models/components/guardrailrule.d.ts.map +1 -0
  512. package/models/components/{guardrailruledocument.js → guardrailrule.js} +6 -6
  513. package/models/components/guardrailrule.js.map +1 -0
  514. package/models/components/incompletedetails.d.ts +10 -0
  515. package/models/components/incompletedetails.d.ts.map +1 -0
  516. package/models/components/incompletedetails.js +50 -0
  517. package/models/components/incompletedetails.js.map +1 -0
  518. package/models/components/index.d.ts +23 -4
  519. package/models/components/index.d.ts.map +1 -1
  520. package/models/components/index.js +23 -4
  521. package/models/components/index.js.map +1 -1
  522. package/models/components/inputtokensdetails.d.ts +11 -0
  523. package/models/components/inputtokensdetails.d.ts.map +1 -0
  524. package/models/components/inputtokensdetails.js +57 -0
  525. package/models/components/inputtokensdetails.js.map +1 -0
  526. package/models/components/memoryparam.d.ts +17 -0
  527. package/models/components/memoryparam.d.ts.map +1 -0
  528. package/models/components/memoryparam.js +67 -0
  529. package/models/components/memoryparam.js.map +1 -0
  530. package/models/components/outputtokensdetails.d.ts +10 -0
  531. package/models/components/outputtokensdetails.d.ts.map +1 -0
  532. package/models/components/outputtokensdetails.js +55 -0
  533. package/models/components/outputtokensdetails.js.map +1 -0
  534. package/models/components/{policydocument.d.ts → policy.d.ts} +6 -6
  535. package/models/components/policy.d.ts.map +1 -0
  536. package/models/components/{policydocument.js → policy.js} +9 -8
  537. package/models/components/policy.js.map +1 -0
  538. package/models/components/policyretryconfig.d.ts +19 -0
  539. package/models/components/policyretryconfig.d.ts.map +1 -0
  540. package/models/components/{retryconfig.js → policyretryconfig.js} +10 -10
  541. package/models/components/policyretryconfig.js.map +1 -0
  542. package/models/components/publicschedule.d.ts +66 -0
  543. package/models/components/publicschedule.d.ts.map +1 -0
  544. package/models/components/publicschedule.js +86 -0
  545. package/models/components/publicschedule.js.map +1 -0
  546. package/models/components/publicscheduleerrordetail.d.ts +17 -0
  547. package/models/components/publicscheduleerrordetail.d.ts.map +1 -0
  548. package/models/{errors/getv2humanevals.js → components/publicscheduleerrordetail.js} +9 -26
  549. package/models/components/publicscheduleerrordetail.js.map +1 -0
  550. package/models/components/publicschedulepayload.d.ts +43 -0
  551. package/models/components/publicschedulepayload.d.ts.map +1 -0
  552. package/models/components/publicschedulepayload.js +73 -0
  553. package/models/components/publicschedulepayload.js.map +1 -0
  554. package/models/components/publicusage.d.ts +17 -0
  555. package/models/components/publicusage.d.ts.map +1 -0
  556. package/models/components/publicusage.js +67 -0
  557. package/models/components/publicusage.js.map +1 -0
  558. package/models/components/reasoning.d.ts +11 -0
  559. package/models/components/reasoning.d.ts.map +1 -0
  560. package/models/components/reasoning.js +51 -0
  561. package/models/components/reasoning.js.map +1 -0
  562. package/models/components/reasoningparam.d.ts +14 -0
  563. package/models/components/reasoningparam.d.ts.map +1 -0
  564. package/models/components/reasoningparam.js +50 -0
  565. package/models/components/reasoningparam.js.map +1 -0
  566. package/models/components/reasoningpart.js +1 -1
  567. package/models/components/responseerror.d.ts +11 -0
  568. package/models/components/responseerror.d.ts.map +1 -0
  569. package/models/{errors/postv2humanevals.js → components/responseerror.js} +9 -26
  570. package/models/components/responseerror.js.map +1 -0
  571. package/models/components/responseexecutionlimits.d.ts +20 -0
  572. package/models/components/responseexecutionlimits.d.ts.map +1 -0
  573. package/models/components/responseexecutionlimits.js +62 -0
  574. package/models/components/responseexecutionlimits.js.map +1 -0
  575. package/models/components/responseidentity.d.ts +24 -0
  576. package/models/components/responseidentity.d.ts.map +1 -0
  577. package/models/components/responseidentity.js +58 -0
  578. package/models/components/responseidentity.js.map +1 -0
  579. package/models/components/responseretryconfig.d.ts +20 -0
  580. package/models/components/responseretryconfig.d.ts.map +1 -0
  581. package/models/components/responseretryconfig.js +55 -0
  582. package/models/components/responseretryconfig.js.map +1 -0
  583. package/models/components/responsethread.d.ts +14 -0
  584. package/models/components/responsethread.d.ts.map +1 -0
  585. package/models/components/responsethread.js +50 -0
  586. package/models/components/responsethread.js.map +1 -0
  587. package/models/components/{routingruledocument.d.ts → routingrule.d.ts} +4 -4
  588. package/models/components/routingrule.d.ts.map +1 -0
  589. package/models/components/{routingruledocument.js → routingrule.js} +6 -6
  590. package/models/components/routingrule.js.map +1 -0
  591. package/models/components/streamoptions.d.ts +12 -0
  592. package/models/components/streamoptions.d.ts.map +1 -0
  593. package/models/components/streamoptions.js +54 -0
  594. package/models/components/streamoptions.js.map +1 -0
  595. package/models/errors/createagentschedule.d.ts +46 -0
  596. package/models/errors/createagentschedule.d.ts.map +1 -0
  597. package/models/errors/createagentschedule.js +99 -0
  598. package/models/errors/createagentschedule.js.map +1 -0
  599. package/models/errors/deleteagentschedule.d.ts +25 -0
  600. package/models/errors/deleteagentschedule.d.ts.map +1 -0
  601. package/models/errors/{patchv2humanevalsid.js → deleteagentschedule.js} +13 -10
  602. package/models/errors/deleteagentschedule.js.map +1 -0
  603. package/models/errors/index.d.ts +5 -5
  604. package/models/errors/index.d.ts.map +1 -1
  605. package/models/errors/index.js +5 -5
  606. package/models/errors/index.js.map +1 -1
  607. package/models/errors/postv2feedback.d.ts +5 -5
  608. package/models/errors/postv2feedback.js +6 -6
  609. package/models/errors/retrieveagentschedule.d.ts +25 -0
  610. package/models/errors/retrieveagentschedule.d.ts.map +1 -0
  611. package/models/errors/{getv2humanevalsid.js → retrieveagentschedule.js} +13 -10
  612. package/models/errors/retrieveagentschedule.js.map +1 -0
  613. package/models/errors/triggeragentschedule.d.ts +46 -0
  614. package/models/errors/triggeragentschedule.d.ts.map +1 -0
  615. package/models/errors/{deletev2humanevalsid.js → triggeragentschedule.js} +41 -10
  616. package/models/errors/triggeragentschedule.js.map +1 -0
  617. package/models/errors/updateagentschedule.d.ts +46 -0
  618. package/models/errors/updateagentschedule.d.ts.map +1 -0
  619. package/models/errors/updateagentschedule.js +99 -0
  620. package/models/errors/updateagentschedule.js.map +1 -0
  621. package/models/operations/createagentschedule.d.ts +123 -0
  622. package/models/operations/createagentschedule.d.ts.map +1 -0
  623. package/models/operations/createagentschedule.js +125 -0
  624. package/models/operations/createagentschedule.js.map +1 -0
  625. package/models/operations/createchunk.d.ts +3 -3
  626. package/models/operations/createchunk.d.ts.map +1 -1
  627. package/models/operations/createchunk.js +5 -5
  628. package/models/operations/createchunk.js.map +1 -1
  629. package/models/operations/createcontact.js +1 -1
  630. package/models/operations/createdataset.js +1 -1
  631. package/models/operations/createdatasetitem.js +4 -4
  632. package/models/operations/createdatasource.js +1 -1
  633. package/models/operations/createeval.d.ts +51 -51
  634. package/models/operations/createeval.d.ts.map +1 -1
  635. package/models/operations/createeval.js +76 -74
  636. package/models/operations/createeval.js.map +1 -1
  637. package/models/operations/createidentity.js +1 -1
  638. package/models/operations/createknowledge.d.ts +7 -7
  639. package/models/operations/createknowledge.d.ts.map +1 -1
  640. package/models/operations/createknowledge.js +11 -11
  641. package/models/operations/createknowledge.js.map +1 -1
  642. package/models/operations/createprompt.d.ts +2 -0
  643. package/models/operations/createprompt.d.ts.map +1 -1
  644. package/models/operations/createprompt.js +2 -0
  645. package/models/operations/createprompt.js.map +1 -1
  646. package/models/operations/createresponse.d.ts +5 -5
  647. package/models/operations/createresponse.d.ts.map +1 -1
  648. package/models/operations/createresponse.js +8 -7
  649. package/models/operations/createresponse.js.map +1 -1
  650. package/models/operations/createrouterresponse.d.ts +847 -0
  651. package/models/operations/createrouterresponse.d.ts.map +1 -0
  652. package/models/operations/createrouterresponse.js +607 -0
  653. package/models/operations/createrouterresponse.js.map +1 -0
  654. package/models/operations/createtool.js +6 -6
  655. package/models/operations/deleteagentschedule.d.ts +20 -0
  656. package/models/operations/deleteagentschedule.d.ts.map +1 -0
  657. package/models/operations/deleteagentschedule.js +56 -0
  658. package/models/operations/deleteagentschedule.js.map +1 -0
  659. package/models/operations/deploymentgetconfig.d.ts +8 -8
  660. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  661. package/models/operations/deploymentgetconfig.js +11 -12
  662. package/models/operations/deploymentgetconfig.js.map +1 -1
  663. package/models/operations/deploymentinvoke.d.ts +2 -0
  664. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  665. package/models/operations/deploymentinvoke.js +2 -0
  666. package/models/operations/deploymentinvoke.js.map +1 -1
  667. package/models/operations/deployments.d.ts +2 -0
  668. package/models/operations/deployments.d.ts.map +1 -1
  669. package/models/operations/deployments.js +2 -0
  670. package/models/operations/deployments.js.map +1 -1
  671. package/models/operations/deploymentstream.d.ts +2 -0
  672. package/models/operations/deploymentstream.d.ts.map +1 -1
  673. package/models/operations/deploymentstream.js +2 -0
  674. package/models/operations/deploymentstream.js.map +1 -1
  675. package/models/operations/filecontent.d.ts +1 -1
  676. package/models/operations/getallprompts.d.ts +2 -0
  677. package/models/operations/getallprompts.d.ts.map +1 -1
  678. package/models/operations/getallprompts.js +2 -0
  679. package/models/operations/getallprompts.js.map +1 -1
  680. package/models/operations/getalltools.js +6 -6
  681. package/models/operations/getevals.js +16 -16
  682. package/models/operations/getoneprompt.d.ts +2 -0
  683. package/models/operations/getoneprompt.d.ts.map +1 -1
  684. package/models/operations/getoneprompt.js +2 -0
  685. package/models/operations/getoneprompt.js.map +1 -1
  686. package/models/operations/getpromptversion.d.ts +2 -0
  687. package/models/operations/getpromptversion.d.ts.map +1 -1
  688. package/models/operations/getpromptversion.js +2 -0
  689. package/models/operations/getpromptversion.js.map +1 -1
  690. package/models/operations/getv2humanevalsets.js +2 -2
  691. package/models/operations/getv2humanevalsetsid.js +2 -2
  692. package/models/operations/guardrailrulecreate.d.ts +2 -2
  693. package/models/operations/guardrailrulecreate.d.ts.map +1 -1
  694. package/models/operations/guardrailrulecreate.js +1 -1
  695. package/models/operations/guardrailrulecreate.js.map +1 -1
  696. package/models/operations/guardrailrulelist.d.ts +1 -1
  697. package/models/operations/guardrailrulelist.d.ts.map +1 -1
  698. package/models/operations/guardrailrulelist.js +1 -1
  699. package/models/operations/guardrailrulelist.js.map +1 -1
  700. package/models/operations/guardrailruleupdate.d.ts +2 -2
  701. package/models/operations/guardrailruleupdate.d.ts.map +1 -1
  702. package/models/operations/guardrailruleupdate.js +1 -1
  703. package/models/operations/guardrailruleupdate.js.map +1 -1
  704. package/models/operations/index.d.ts +8 -6
  705. package/models/operations/index.d.ts.map +1 -1
  706. package/models/operations/index.js +8 -6
  707. package/models/operations/index.js.map +1 -1
  708. package/models/operations/listagentschedules.d.ts +27 -0
  709. package/models/operations/listagentschedules.d.ts.map +1 -0
  710. package/models/operations/listagentschedules.js +64 -0
  711. package/models/operations/listagentschedules.js.map +1 -0
  712. package/models/operations/listdatasetdatapoints.js +4 -4
  713. package/models/operations/listdatasets.js +1 -1
  714. package/models/operations/listdatasources.js +1 -1
  715. package/models/operations/listidentities.js +1 -1
  716. package/models/operations/listpromptversions.d.ts +2 -0
  717. package/models/operations/listpromptversions.d.ts.map +1 -1
  718. package/models/operations/listpromptversions.js +2 -0
  719. package/models/operations/listpromptversions.js.map +1 -1
  720. package/models/operations/patchv2humanevalsetsid.js +2 -2
  721. package/models/operations/policycreate.d.ts +3 -3
  722. package/models/operations/policycreate.d.ts.map +1 -1
  723. package/models/operations/policycreate.js +2 -2
  724. package/models/operations/policycreate.js.map +1 -1
  725. package/models/operations/policyget.d.ts +1 -1
  726. package/models/operations/policyget.d.ts.map +1 -1
  727. package/models/operations/policyget.js +1 -1
  728. package/models/operations/policyget.js.map +1 -1
  729. package/models/operations/policylist.d.ts +1 -1
  730. package/models/operations/policylist.d.ts.map +1 -1
  731. package/models/operations/policylist.js +1 -1
  732. package/models/operations/policylist.js.map +1 -1
  733. package/models/operations/policyupdate.d.ts +3 -3
  734. package/models/operations/policyupdate.d.ts.map +1 -1
  735. package/models/operations/policyupdate.js +2 -2
  736. package/models/operations/policyupdate.js.map +1 -1
  737. package/models/operations/postv2feedbackevaluation.js +3 -3
  738. package/models/operations/postv2feedbackremove.d.ts +4 -4
  739. package/models/operations/postv2feedbackremove.js +4 -4
  740. package/models/operations/postv2humanevalsets.js +2 -2
  741. package/models/operations/retrieveagentschedule.d.ts +87 -0
  742. package/models/operations/retrieveagentschedule.d.ts.map +1 -0
  743. package/models/operations/retrieveagentschedule.js +100 -0
  744. package/models/operations/retrieveagentschedule.js.map +1 -0
  745. package/models/operations/retrievedatapoint.js +4 -4
  746. package/models/operations/retrievedataset.js +1 -1
  747. package/models/operations/retrievedatasource.js +1 -1
  748. package/models/operations/retrieveidentity.js +1 -1
  749. package/models/operations/retrieveresponse.d.ts +116 -0
  750. package/models/operations/retrieveresponse.d.ts.map +1 -0
  751. package/models/operations/retrieveresponse.js +143 -0
  752. package/models/operations/retrieveresponse.js.map +1 -0
  753. package/models/operations/retrievetool.js +6 -6
  754. package/models/operations/routingrulecreate.d.ts +2 -2
  755. package/models/operations/routingrulecreate.d.ts.map +1 -1
  756. package/models/operations/routingrulecreate.js +1 -1
  757. package/models/operations/routingrulecreate.js.map +1 -1
  758. package/models/operations/routingrulelist.d.ts +1 -1
  759. package/models/operations/routingrulelist.d.ts.map +1 -1
  760. package/models/operations/routingrulelist.js +1 -1
  761. package/models/operations/routingrulelist.js.map +1 -1
  762. package/models/operations/routingruleupdate.d.ts +2 -2
  763. package/models/operations/routingruleupdate.d.ts.map +1 -1
  764. package/models/operations/routingruleupdate.js +1 -1
  765. package/models/operations/routingruleupdate.js.map +1 -1
  766. package/models/operations/runagent.js +1 -1
  767. package/models/operations/streamrunagent.js +1 -1
  768. package/models/operations/triggeragentschedule.d.ts +35 -0
  769. package/models/operations/triggeragentschedule.d.ts.map +1 -0
  770. package/models/operations/triggeragentschedule.js +70 -0
  771. package/models/operations/triggeragentschedule.js.map +1 -0
  772. package/models/operations/updateagentschedule.d.ts +133 -0
  773. package/models/operations/updateagentschedule.d.ts.map +1 -0
  774. package/models/operations/updateagentschedule.js +129 -0
  775. package/models/operations/updateagentschedule.js.map +1 -0
  776. package/models/operations/updatedatapoint.js +4 -4
  777. package/models/operations/updatedataset.js +1 -1
  778. package/models/operations/updatedatasource.js +1 -1
  779. package/models/operations/updateeval.d.ts +69 -0
  780. package/models/operations/updateeval.d.ts.map +1 -1
  781. package/models/operations/updateeval.js +92 -19
  782. package/models/operations/updateeval.js.map +1 -1
  783. package/models/operations/updateidentity.js +1 -1
  784. package/models/operations/updateprompt.d.ts +2 -0
  785. package/models/operations/updateprompt.d.ts.map +1 -1
  786. package/models/operations/updateprompt.js +2 -0
  787. package/models/operations/updateprompt.js.map +1 -1
  788. package/models/operations/updatetool.js +7 -7
  789. package/package.json +17 -4
  790. package/packages/orq-rc/examples/postV2FeedbackEvaluationRemove.example.ts +24 -0
  791. package/packages/orq-rc/src/core.ts +13 -0
  792. package/packages/orq-rc/src/funcs/agentsCreate.ts +163 -0
  793. package/packages/orq-rc/src/funcs/agentsDelete.ts +181 -0
  794. package/packages/orq-rc/src/funcs/agentsInvoke.ts +178 -0
  795. package/packages/orq-rc/src/funcs/agentsList.ts +186 -0
  796. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +180 -0
  797. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +188 -0
  798. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +184 -0
  799. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +183 -0
  800. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +181 -0
  801. package/packages/orq-rc/src/funcs/agentsRun.ts +164 -0
  802. package/packages/orq-rc/src/funcs/agentsStream.ts +205 -0
  803. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +191 -0
  804. package/packages/orq-rc/src/funcs/agentsUpdate.ts +185 -0
  805. package/packages/orq-rc/src/funcs/annotationsCreate.ts +172 -0
  806. package/packages/orq-rc/src/funcs/annotationsDelete.ts +172 -0
  807. package/packages/orq-rc/src/funcs/chunkingParse.ts +162 -0
  808. package/packages/orq-rc/src/funcs/contactsCreate.ts +162 -0
  809. package/packages/orq-rc/src/funcs/datasetsClear.ts +168 -0
  810. package/packages/orq-rc/src/funcs/datasetsCreate.ts +167 -0
  811. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +172 -0
  812. package/packages/orq-rc/src/funcs/datasetsDelete.ts +168 -0
  813. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +183 -0
  814. package/packages/orq-rc/src/funcs/datasetsList.ts +169 -0
  815. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +175 -0
  816. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +176 -0
  817. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +182 -0
  818. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +177 -0
  819. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +180 -0
  820. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +170 -0
  821. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +178 -0
  822. package/packages/orq-rc/src/funcs/deploymentsList.ts +178 -0
  823. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +171 -0
  824. package/packages/orq-rc/src/funcs/deploymentsStream.ts +188 -0
  825. package/{src/funcs/getV2HumanEvals.ts → packages/orq-rc/src/funcs/evalsAll.ts} +23 -17
  826. package/{src/funcs/postV2HumanEvals.ts → packages/orq-rc/src/funcs/evalsCreate.ts} +21 -18
  827. package/{src/funcs/getV2HumanEvalsId.ts → packages/orq-rc/src/funcs/evalsDelete.ts} +22 -16
  828. package/{src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts → packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts} +4 -2
  829. package/packages/orq-rc/src/funcs/evalsInvoke.ts +182 -0
  830. package/{src/funcs/patchV2HumanEvalsId.ts → packages/orq-rc/src/funcs/evalsUpdate.ts} +20 -16
  831. package/{src/funcs/postV2Feedback.ts → packages/orq-rc/src/funcs/feedbackPostV2Feedback.ts} +8 -6
  832. package/{src/funcs/postV2FeedbackRemove.ts → packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts} +4 -2
  833. package/packages/orq-rc/src/funcs/filesCreate.ts +197 -0
  834. package/packages/orq-rc/src/funcs/filesDelete.ts +165 -0
  835. package/packages/orq-rc/src/funcs/filesGet.ts +167 -0
  836. package/packages/orq-rc/src/funcs/filesGetContent.ts +168 -0
  837. package/packages/orq-rc/src/funcs/filesList.ts +169 -0
  838. package/packages/orq-rc/src/funcs/filesUpdate.ts +168 -0
  839. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +163 -0
  840. package/packages/orq-rc/src/funcs/guardrailRulesDelete.ts +172 -0
  841. package/packages/orq-rc/src/funcs/guardrailRulesList.ts +172 -0
  842. package/{src/funcs/guardrailRulesGet.ts → packages/orq-rc/src/funcs/guardrailRulesRetrieve.ts} +4 -2
  843. package/packages/orq-rc/src/funcs/guardrailRulesUpdate.ts +172 -0
  844. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +166 -0
  845. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +170 -0
  846. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +165 -0
  847. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +166 -0
  848. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +164 -0
  849. package/packages/orq-rc/src/funcs/identitiesCreate.ts +167 -0
  850. package/packages/orq-rc/src/funcs/identitiesDelete.ts +177 -0
  851. package/packages/orq-rc/src/funcs/identitiesList.ts +172 -0
  852. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +185 -0
  853. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +177 -0
  854. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +160 -0
  855. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +172 -0
  856. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +167 -0
  857. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +168 -0
  858. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +175 -0
  859. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +171 -0
  860. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +174 -0
  861. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +171 -0
  862. package/packages/orq-rc/src/funcs/knowledgeList.ts +171 -0
  863. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +179 -0
  864. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +172 -0
  865. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +175 -0
  866. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +167 -0
  867. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +174 -0
  868. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +170 -0
  869. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +168 -0
  870. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +165 -0
  871. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +175 -0
  872. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +171 -0
  873. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +164 -0
  874. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +177 -0
  875. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +171 -0
  876. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +169 -0
  877. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +186 -0
  878. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +181 -0
  879. package/packages/orq-rc/src/funcs/memoryStoresList.ts +180 -0
  880. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +185 -0
  881. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +178 -0
  882. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +178 -0
  883. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +180 -0
  884. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +175 -0
  885. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +169 -0
  886. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +181 -0
  887. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +176 -0
  888. package/packages/orq-rc/src/funcs/policiesCreate.ts +162 -0
  889. package/packages/orq-rc/src/funcs/policiesDelete.ts +168 -0
  890. package/packages/orq-rc/src/funcs/policiesList.ts +170 -0
  891. package/{src/funcs/policiesGet.ts → packages/orq-rc/src/funcs/policiesRetrieve.ts} +4 -2
  892. package/packages/orq-rc/src/funcs/policiesUpdate.ts +168 -0
  893. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +161 -0
  894. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +161 -0
  895. package/packages/orq-rc/src/funcs/promptsCreate.ts +162 -0
  896. package/{src/funcs/deleteV2HumanEvalsId.ts → packages/orq-rc/src/funcs/promptsDelete.ts} +21 -16
  897. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +182 -0
  898. package/packages/orq-rc/src/funcs/promptsList.ts +169 -0
  899. package/packages/orq-rc/src/funcs/promptsListVersions.ts +174 -0
  900. package/{src/funcs/modelsList.ts → packages/orq-rc/src/funcs/promptsRetrieve.ts} +22 -20
  901. package/packages/orq-rc/src/funcs/promptsUpdate.ts +174 -0
  902. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +163 -0
  903. package/packages/orq-rc/src/funcs/responsesCreate.ts +170 -0
  904. package/packages/orq-rc/src/funcs/responsesGet.ts +167 -0
  905. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +163 -0
  906. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +272 -0
  907. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +262 -0
  908. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +170 -0
  909. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +170 -0
  910. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +163 -0
  911. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +224 -0
  912. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +162 -0
  913. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +220 -0
  914. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +169 -0
  915. package/packages/orq-rc/src/funcs/routerOcr.ts +160 -0
  916. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +162 -0
  917. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +169 -0
  918. package/packages/orq-rc/src/funcs/routingRulesCreate.ts +163 -0
  919. package/packages/orq-rc/src/funcs/routingRulesDelete.ts +168 -0
  920. package/packages/orq-rc/src/funcs/routingRulesList.ts +170 -0
  921. package/{src/funcs/routingRulesGet.ts → packages/orq-rc/src/funcs/routingRulesRetrieve.ts} +4 -2
  922. package/packages/orq-rc/src/funcs/routingRulesUpdate.ts +168 -0
  923. package/packages/orq-rc/src/funcs/schedulesCreate.ts +185 -0
  924. package/packages/orq-rc/src/funcs/schedulesDelete.ts +184 -0
  925. package/packages/orq-rc/src/funcs/schedulesList.ts +167 -0
  926. package/packages/orq-rc/src/funcs/schedulesRetrieve.ts +183 -0
  927. package/packages/orq-rc/src/funcs/schedulesTrigger.ts +190 -0
  928. package/packages/orq-rc/src/funcs/schedulesUpdate.ts +191 -0
  929. package/packages/orq-rc/src/funcs/toolsCreate.ts +165 -0
  930. package/packages/orq-rc/src/funcs/toolsDelete.ts +168 -0
  931. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +184 -0
  932. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +191 -0
  933. package/packages/orq-rc/src/funcs/toolsList.ts +178 -0
  934. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +167 -0
  935. package/packages/orq-rc/src/funcs/toolsUpdate.ts +177 -0
  936. package/packages/orq-rc/src/hooks/global.ts +44 -0
  937. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  938. package/packages/orq-rc/src/hooks/index.ts +6 -0
  939. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  940. package/packages/orq-rc/src/hooks/types.ts +112 -0
  941. package/packages/orq-rc/src/index.ts +9 -0
  942. package/packages/orq-rc/src/lib/base64.ts +37 -0
  943. package/packages/orq-rc/src/lib/config.ts +74 -0
  944. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  945. package/packages/orq-rc/src/lib/encodings.ts +525 -0
  946. package/packages/orq-rc/src/lib/env.ts +89 -0
  947. package/packages/orq-rc/src/lib/event-streams.ts +165 -0
  948. package/packages/orq-rc/src/lib/files.ts +104 -0
  949. package/packages/orq-rc/src/lib/http.ts +323 -0
  950. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  951. package/packages/orq-rc/src/lib/logger.ts +9 -0
  952. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  953. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  954. package/packages/orq-rc/src/lib/retries.ts +218 -0
  955. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  956. package/packages/orq-rc/src/lib/sdks.ts +406 -0
  957. package/packages/orq-rc/src/lib/security.ts +275 -0
  958. package/packages/orq-rc/src/lib/url.ts +35 -0
  959. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  960. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  961. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  962. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  963. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  964. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  965. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  966. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  967. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +520 -0
  968. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  969. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  970. package/packages/orq-rc/src/models/components/budgetlimit.ts +83 -0
  971. package/packages/orq-rc/src/models/components/conversationparam.ts +51 -0
  972. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  973. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  974. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  975. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  976. package/packages/orq-rc/src/models/components/evaluatorref.ts +89 -0
  977. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  978. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  979. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  980. package/packages/orq-rc/src/models/components/expression.ts +33 -0
  981. package/packages/orq-rc/src/models/components/expressioninput.ts +29 -0
  982. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  983. package/packages/orq-rc/src/models/components/fallbackconfig.ts +27 -0
  984. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  985. package/packages/orq-rc/src/models/components/filedocument.ts +48 -0
  986. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  987. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  988. package/packages/orq-rc/src/models/components/guardrailref.ts +87 -0
  989. package/{src/models/components/guardrailruledocument.ts → packages/orq-rc/src/models/components/guardrailrule.ts} +7 -7
  990. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  991. package/packages/orq-rc/src/models/components/incompletedetails.ts +31 -0
  992. package/packages/orq-rc/src/models/components/index.ts +93 -0
  993. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +39 -0
  994. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  995. package/packages/orq-rc/src/models/components/limits.ts +70 -0
  996. package/packages/orq-rc/src/models/components/memoryparam.ts +56 -0
  997. package/packages/orq-rc/src/models/components/modelref.ts +64 -0
  998. package/packages/orq-rc/src/models/components/modelsconfig.ts +73 -0
  999. package/packages/orq-rc/src/models/components/outputtokensdetails.ts +36 -0
  1000. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  1001. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  1002. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  1003. package/packages/orq-rc/src/models/components/policy.ts +80 -0
  1004. package/{src/models/components/retryconfig.ts → packages/orq-rc/src/models/components/policyretryconfig.ts} +17 -13
  1005. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  1006. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  1007. package/packages/orq-rc/src/models/components/publicschedule.ts +121 -0
  1008. package/packages/orq-rc/src/models/components/publicscheduleerrordetail.ts +39 -0
  1009. package/packages/orq-rc/src/models/components/publicschedulepayload.ts +84 -0
  1010. package/packages/orq-rc/src/models/components/publicusage.ts +59 -0
  1011. package/packages/orq-rc/src/models/components/reasoning.ts +33 -0
  1012. package/packages/orq-rc/src/models/components/reasoningparam.ts +30 -0
  1013. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  1014. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  1015. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  1016. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  1017. package/packages/orq-rc/src/models/components/requestlimit.ts +69 -0
  1018. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  1019. package/packages/orq-rc/src/models/components/responseerror.ts +33 -0
  1020. package/packages/orq-rc/src/models/components/responseexecutionlimits.ts +52 -0
  1021. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  1022. package/packages/orq-rc/src/models/components/responseidentity.ts +48 -0
  1023. package/packages/orq-rc/src/models/components/responseretryconfig.ts +45 -0
  1024. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  1025. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  1026. package/packages/orq-rc/src/models/components/responsethread.ts +30 -0
  1027. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  1028. package/{src/models/components/routingruledocument.ts → packages/orq-rc/src/models/components/routingrule.ts} +7 -7
  1029. package/packages/orq-rc/src/models/components/security.ts +32 -0
  1030. package/packages/orq-rc/src/models/components/streamoptions.ts +32 -0
  1031. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  1032. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  1033. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  1034. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  1035. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  1036. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  1037. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  1038. package/packages/orq-rc/src/models/components/tokenlimit.ts +69 -0
  1039. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  1040. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  1041. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  1042. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  1043. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +205 -0
  1044. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  1045. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  1046. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  1047. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  1048. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  1049. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  1050. package/packages/orq-rc/src/models/errors/createagentschedule.ts +105 -0
  1051. package/{src/models/errors/getv2humanevals.ts → packages/orq-rc/src/models/errors/createeval.ts} +8 -8
  1052. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  1053. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  1054. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  1055. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  1056. package/packages/orq-rc/src/models/errors/deleteagentschedule.ts +56 -0
  1057. package/{src/models/errors/postv2humanevals.ts → packages/orq-rc/src/models/errors/deleteeval.ts} +8 -8
  1058. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  1059. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  1060. package/{src/models/errors/getv2humanevalsid.ts → packages/orq-rc/src/models/errors/getevals.ts} +8 -8
  1061. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  1062. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  1063. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  1064. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  1065. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  1066. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  1067. package/packages/orq-rc/src/models/errors/index.ts +42 -0
  1068. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  1069. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  1070. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  1071. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  1072. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  1073. package/{src/models/errors/deletev2humanevalsid.ts → packages/orq-rc/src/models/errors/postv2feedbackremove.ts} +8 -8
  1074. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  1075. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  1076. package/packages/orq-rc/src/models/errors/retrieveagentschedule.ts +56 -0
  1077. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
  1078. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  1079. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  1080. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  1081. package/packages/orq-rc/src/models/errors/triggeragentschedule.ts +105 -0
  1082. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  1083. package/packages/orq-rc/src/models/errors/updateagentschedule.ts +105 -0
  1084. package/{src/models/errors/patchv2humanevalsid.ts → packages/orq-rc/src/models/errors/updateeval.ts} +8 -8
  1085. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  1086. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  1087. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  1088. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  1089. package/packages/orq-rc/src/models/operations/createagentrequest.ts +6456 -0
  1090. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +670 -0
  1091. package/packages/orq-rc/src/models/operations/createagentschedule.ts +230 -0
  1092. package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
  1093. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6398 -0
  1094. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  1095. package/packages/orq-rc/src/models/operations/createcompletion.ts +3473 -0
  1096. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  1097. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  1098. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2554 -0
  1099. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  1100. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  1101. package/packages/orq-rc/src/models/operations/createeval.ts +5049 -0
  1102. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  1103. package/packages/orq-rc/src/models/operations/createimage.ts +1034 -0
  1104. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  1105. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  1106. package/packages/orq-rc/src/models/operations/createknowledge.ts +958 -0
  1107. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  1108. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  1109. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  1110. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  1111. package/packages/orq-rc/src/models/operations/createprompt.ts +5407 -0
  1112. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  1113. package/packages/orq-rc/src/models/operations/createresponse.ts +3864 -0
  1114. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +1527 -0
  1115. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  1116. package/packages/orq-rc/src/models/operations/createtool.ts +2494 -0
  1117. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  1118. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  1119. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  1120. package/packages/orq-rc/src/models/operations/deleteagentschedule.ts +46 -0
  1121. package/packages/orq-rc/src/models/operations/deleteannotation.ts +82 -0
  1122. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  1123. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  1124. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  1125. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  1126. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  1127. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  1128. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  1129. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  1130. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  1131. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  1132. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  1133. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  1134. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  1135. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  1136. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  1137. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4532 -0
  1138. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +737 -0
  1139. package/packages/orq-rc/src/models/operations/deployments.ts +1275 -0
  1140. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4661 -0
  1141. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  1142. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  1143. package/packages/orq-rc/src/models/operations/fileget.ts +80 -0
  1144. package/packages/orq-rc/src/models/operations/filelist.ts +85 -0
  1145. package/packages/orq-rc/src/models/operations/fileupdate.ts +118 -0
  1146. package/packages/orq-rc/src/models/operations/fileupload.ts +135 -0
  1147. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  1148. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  1149. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  1150. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  1151. package/packages/orq-rc/src/models/operations/getallprompts.ts +3175 -0
  1152. package/packages/orq-rc/src/models/operations/getalltools.ts +1389 -0
  1153. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  1154. package/packages/orq-rc/src/models/operations/getevals.ts +3299 -0
  1155. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  1156. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  1157. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3100 -0
  1158. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3145 -0
  1159. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  1160. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  1161. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  1162. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  1163. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  1164. package/packages/orq-rc/src/models/operations/guardrailrulecreate.ts +124 -0
  1165. package/packages/orq-rc/src/models/operations/guardrailruledelete.ts +39 -0
  1166. package/packages/orq-rc/src/models/operations/guardrailruleget.ts +102 -0
  1167. package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +94 -0
  1168. package/packages/orq-rc/src/models/operations/guardrailruleupdate.ts +153 -0
  1169. package/packages/orq-rc/src/models/operations/index.ts +148 -0
  1170. package/packages/orq-rc/src/models/operations/invokeagent.ts +801 -0
  1171. package/packages/orq-rc/src/models/operations/invokeeval.ts +1254 -0
  1172. package/packages/orq-rc/src/models/operations/listagents.ts +2778 -0
  1173. package/packages/orq-rc/src/models/operations/listagentschedules.ts +69 -0
  1174. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  1175. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  1176. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  1177. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  1178. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  1179. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  1180. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  1181. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3220 -0
  1182. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  1183. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  1184. package/packages/orq-rc/src/models/operations/policycreate.ts +138 -0
  1185. package/packages/orq-rc/src/models/operations/policydelete.ts +39 -0
  1186. package/packages/orq-rc/src/models/operations/policyget.ts +110 -0
  1187. package/packages/orq-rc/src/models/operations/policylist.ts +94 -0
  1188. package/packages/orq-rc/src/models/operations/policyupdate.ts +174 -0
  1189. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +252 -0
  1190. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  1191. package/packages/orq-rc/src/models/operations/postv2feedback.ts +207 -0
  1192. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +321 -0
  1193. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  1194. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +138 -0
  1195. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  1196. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  1197. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  1198. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2840 -0
  1199. package/packages/orq-rc/src/models/operations/retrieveagentschedule.ts +165 -0
  1200. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  1201. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  1202. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  1203. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +174 -0
  1204. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  1205. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  1206. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  1207. package/packages/orq-rc/src/models/operations/retrieveresponse.ts +225 -0
  1208. package/packages/orq-rc/src/models/operations/retrievetool.ts +1370 -0
  1209. package/packages/orq-rc/src/models/operations/routingrulecreate.ts +124 -0
  1210. package/packages/orq-rc/src/models/operations/routingruledelete.ts +39 -0
  1211. package/packages/orq-rc/src/models/operations/routingruleget.ts +102 -0
  1212. package/packages/orq-rc/src/models/operations/routingrulelist.ts +94 -0
  1213. package/packages/orq-rc/src/models/operations/routingruleupdate.ts +154 -0
  1214. package/packages/orq-rc/src/models/operations/runagent.ts +4963 -0
  1215. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  1216. package/packages/orq-rc/src/models/operations/streamagent.ts +692 -0
  1217. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5125 -0
  1218. package/packages/orq-rc/src/models/operations/triggeragentschedule.ts +86 -0
  1219. package/packages/orq-rc/src/models/operations/updateagent.ts +6886 -0
  1220. package/packages/orq-rc/src/models/operations/updateagentschedule.ts +244 -0
  1221. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  1222. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  1223. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  1224. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  1225. package/packages/orq-rc/src/models/operations/updateeval.ts +3790 -0
  1226. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  1227. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  1228. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  1229. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  1230. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  1231. package/packages/orq-rc/src/models/operations/updateprompt.ts +5489 -0
  1232. package/packages/orq-rc/src/models/operations/updatetool.ts +2801 -0
  1233. package/packages/orq-rc/src/sdk/agents.ts +234 -0
  1234. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  1235. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  1236. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  1237. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  1238. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  1239. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  1240. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  1241. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  1242. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  1243. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  1244. package/packages/orq-rc/src/sdk/evals.ts +102 -0
  1245. package/packages/orq-rc/src/sdk/feedback.ts +33 -0
  1246. package/packages/orq-rc/src/sdk/files.ts +114 -0
  1247. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  1248. package/packages/orq-rc/src/sdk/guardrailrules.ts +99 -0
  1249. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  1250. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  1251. package/packages/orq-rc/src/sdk/images.ts +25 -0
  1252. package/packages/orq-rc/src/sdk/index.ts +5 -0
  1253. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  1254. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  1255. package/packages/orq-rc/src/sdk/metrics.ts +29 -0
  1256. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  1257. package/packages/orq-rc/src/sdk/orqagentsresponses.ts +53 -0
  1258. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  1259. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  1260. package/packages/orq-rc/src/sdk/policies.ts +99 -0
  1261. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  1262. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  1263. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  1264. package/packages/orq-rc/src/sdk/responses.ts +47 -0
  1265. package/packages/orq-rc/src/sdk/router.ts +72 -0
  1266. package/packages/orq-rc/src/sdk/routingrules.ts +99 -0
  1267. package/packages/orq-rc/src/sdk/schedules.ts +117 -0
  1268. package/packages/orq-rc/src/sdk/sdk.ts +165 -0
  1269. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  1270. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  1271. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  1272. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  1273. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  1274. package/packages/orq-rc/src/types/async.ts +68 -0
  1275. package/packages/orq-rc/src/types/blobs.ts +32 -0
  1276. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  1277. package/packages/orq-rc/src/types/enums.ts +45 -0
  1278. package/packages/orq-rc/src/types/fp.ts +50 -0
  1279. package/packages/orq-rc/src/types/index.ts +11 -0
  1280. package/packages/orq-rc/src/types/operations.ts +105 -0
  1281. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  1282. package/packages/orq-rc/src/types/streams.ts +21 -0
  1283. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  1284. package/sdk/agents.d.ts +2 -2
  1285. package/sdk/agents.d.ts.map +1 -1
  1286. package/sdk/agents.js +2 -2
  1287. package/sdk/agents.js.map +1 -1
  1288. package/sdk/evals.d.ts +7 -0
  1289. package/sdk/evals.d.ts.map +1 -1
  1290. package/sdk/evals.js +10 -0
  1291. package/sdk/evals.js.map +1 -1
  1292. package/sdk/feedback.d.ts +7 -0
  1293. package/sdk/feedback.d.ts.map +1 -0
  1294. package/sdk/feedback.js +20 -0
  1295. package/sdk/feedback.js.map +1 -0
  1296. package/sdk/files.d.ts +1 -1
  1297. package/sdk/files.js +1 -1
  1298. package/sdk/guardrailrules.d.ts +1 -1
  1299. package/sdk/guardrailrules.d.ts.map +1 -1
  1300. package/sdk/guardrailrules.js +3 -3
  1301. package/sdk/guardrailrules.js.map +1 -1
  1302. package/sdk/knowledge.d.ts +1 -1
  1303. package/sdk/knowledge.d.ts.map +1 -1
  1304. package/sdk/orqagentsresponses.d.ts +24 -0
  1305. package/sdk/orqagentsresponses.d.ts.map +1 -0
  1306. package/sdk/orqagentsresponses.js +34 -0
  1307. package/sdk/orqagentsresponses.js.map +1 -0
  1308. package/sdk/policies.d.ts +1 -1
  1309. package/sdk/policies.d.ts.map +1 -1
  1310. package/sdk/policies.js +3 -3
  1311. package/sdk/policies.js.map +1 -1
  1312. package/sdk/responses.d.ts +8 -9
  1313. package/sdk/responses.d.ts.map +1 -1
  1314. package/sdk/responses.js +10 -10
  1315. package/sdk/responses.js.map +1 -1
  1316. package/sdk/routingrules.d.ts +1 -1
  1317. package/sdk/routingrules.d.ts.map +1 -1
  1318. package/sdk/routingrules.js +3 -3
  1319. package/sdk/routingrules.js.map +1 -1
  1320. package/sdk/schedules.d.ts +47 -0
  1321. package/sdk/schedules.d.ts.map +1 -0
  1322. package/sdk/schedules.js +72 -0
  1323. package/sdk/schedules.js.map +1 -0
  1324. package/sdk/sdk.d.ts +9 -13
  1325. package/sdk/sdk.d.ts.map +1 -1
  1326. package/sdk/sdk.js +11 -35
  1327. package/sdk/sdk.js.map +1 -1
  1328. package/src/funcs/agentsCreate.ts +3 -1
  1329. package/src/funcs/agentsDelete.ts +3 -1
  1330. package/src/funcs/agentsInvoke.ts +3 -1
  1331. package/src/funcs/agentsList.ts +3 -1
  1332. package/src/funcs/agentsPostV2AgentsA2a.ts +3 -1
  1333. package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +3 -1
  1334. package/src/funcs/agentsResponsesCreate.ts +3 -1
  1335. package/src/funcs/agentsResponsesGet.ts +3 -1
  1336. package/src/funcs/agentsRetrieve.ts +3 -1
  1337. package/src/funcs/agentsRun.ts +3 -1
  1338. package/src/funcs/agentsStream.ts +3 -1
  1339. package/src/funcs/agentsStreamRun.ts +3 -1
  1340. package/src/funcs/agentsUpdate.ts +3 -1
  1341. package/src/funcs/annotationsCreate.ts +3 -1
  1342. package/src/funcs/annotationsDelete.ts +3 -1
  1343. package/src/funcs/chunkingParse.ts +3 -1
  1344. package/src/funcs/contactsCreate.ts +3 -1
  1345. package/src/funcs/datasetsClear.ts +3 -1
  1346. package/src/funcs/datasetsCreate.ts +3 -1
  1347. package/src/funcs/datasetsCreateDatapoint.ts +3 -1
  1348. package/src/funcs/datasetsDelete.ts +3 -1
  1349. package/src/funcs/datasetsDeleteDatapoint.ts +3 -1
  1350. package/src/funcs/datasetsList.ts +3 -1
  1351. package/src/funcs/datasetsListDatapoints.ts +3 -1
  1352. package/src/funcs/datasetsRetrieve.ts +3 -1
  1353. package/src/funcs/datasetsRetrieveDatapoint.ts +3 -1
  1354. package/src/funcs/datasetsUpdate.ts +3 -1
  1355. package/src/funcs/datasetsUpdateDatapoint.ts +3 -1
  1356. package/src/funcs/deploymentsGetConfig.ts +3 -1
  1357. package/src/funcs/deploymentsInvoke.ts +3 -1
  1358. package/src/funcs/deploymentsList.ts +3 -1
  1359. package/src/funcs/deploymentsMetricsCreate.ts +3 -1
  1360. package/src/funcs/deploymentsStream.ts +3 -1
  1361. package/src/funcs/evalsAll.ts +3 -1
  1362. package/src/funcs/evalsCreate.ts +3 -1
  1363. package/src/funcs/evalsDelete.ts +3 -1
  1364. package/src/funcs/evalsGetV2EvaluatorsIdVersions.ts +184 -0
  1365. package/src/funcs/evalsInvoke.ts +3 -1
  1366. package/src/funcs/evalsUpdate.ts +3 -1
  1367. package/src/funcs/feedbackPostV2Feedback.ts +174 -0
  1368. package/src/funcs/feedbackPostV2FeedbackRemove.ts +169 -0
  1369. package/src/funcs/filesCreate.ts +3 -1
  1370. package/src/funcs/filesDelete.ts +3 -1
  1371. package/src/funcs/filesGet.ts +3 -1
  1372. package/src/funcs/filesGetContent.ts +4 -2
  1373. package/src/funcs/filesList.ts +3 -1
  1374. package/src/funcs/filesUpdate.ts +3 -1
  1375. package/src/funcs/guardrailRulesCreate.ts +4 -2
  1376. package/src/funcs/guardrailRulesDelete.ts +3 -1
  1377. package/src/funcs/guardrailRulesList.ts +3 -1
  1378. package/src/funcs/guardrailRulesRetrieve.ts +170 -0
  1379. package/src/funcs/guardrailRulesUpdate.ts +4 -2
  1380. package/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +3 -1
  1381. package/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +3 -1
  1382. package/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +3 -1
  1383. package/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +3 -1
  1384. package/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +3 -1
  1385. package/src/funcs/identitiesCreate.ts +3 -1
  1386. package/src/funcs/identitiesDelete.ts +3 -1
  1387. package/src/funcs/identitiesList.ts +3 -1
  1388. package/src/funcs/identitiesRetrieve.ts +3 -1
  1389. package/src/funcs/identitiesUpdate.ts +3 -1
  1390. package/src/funcs/knowledgeCreate.ts +3 -1
  1391. package/src/funcs/knowledgeCreateChunks.ts +7 -5
  1392. package/src/funcs/knowledgeCreateDatasource.ts +3 -1
  1393. package/src/funcs/knowledgeDelete.ts +3 -1
  1394. package/src/funcs/knowledgeDeleteChunk.ts +3 -1
  1395. package/src/funcs/knowledgeDeleteChunks.ts +3 -1
  1396. package/src/funcs/knowledgeDeleteDatasource.ts +3 -1
  1397. package/src/funcs/knowledgeGetChunksCount.ts +3 -1
  1398. package/src/funcs/knowledgeList.ts +3 -1
  1399. package/src/funcs/knowledgeListChunks.ts +3 -1
  1400. package/src/funcs/knowledgeListChunksPaginated.ts +3 -1
  1401. package/src/funcs/knowledgeListDatasources.ts +3 -1
  1402. package/src/funcs/knowledgeRetrieve.ts +3 -1
  1403. package/src/funcs/knowledgeRetrieveChunk.ts +3 -1
  1404. package/src/funcs/knowledgeRetrieveDatasource.ts +3 -1
  1405. package/src/funcs/knowledgeSearch.ts +3 -1
  1406. package/src/funcs/knowledgeUpdate.ts +3 -1
  1407. package/src/funcs/knowledgeUpdateChunk.ts +3 -1
  1408. package/src/funcs/knowledgeUpdateDatasource.ts +3 -1
  1409. package/src/funcs/memoryStoresCreate.ts +3 -1
  1410. package/src/funcs/memoryStoresCreateDocument.ts +3 -1
  1411. package/src/funcs/memoryStoresCreateMemory.ts +3 -1
  1412. package/src/funcs/memoryStoresDelete.ts +3 -1
  1413. package/src/funcs/memoryStoresDeleteDocument.ts +3 -1
  1414. package/src/funcs/memoryStoresDeleteMemory.ts +3 -1
  1415. package/src/funcs/memoryStoresList.ts +3 -1
  1416. package/src/funcs/memoryStoresListDocuments.ts +3 -1
  1417. package/src/funcs/memoryStoresListMemories.ts +3 -1
  1418. package/src/funcs/memoryStoresRetrieve.ts +3 -1
  1419. package/src/funcs/memoryStoresRetrieveDocument.ts +3 -1
  1420. package/src/funcs/memoryStoresRetrieveMemory.ts +3 -1
  1421. package/src/funcs/memoryStoresUpdate.ts +3 -1
  1422. package/src/funcs/memoryStoresUpdateDocument.ts +3 -1
  1423. package/src/funcs/memoryStoresUpdateMemory.ts +3 -1
  1424. package/src/funcs/policiesCreate.ts +3 -1
  1425. package/src/funcs/policiesDelete.ts +3 -1
  1426. package/src/funcs/policiesList.ts +3 -1
  1427. package/src/funcs/policiesRetrieve.ts +167 -0
  1428. package/src/funcs/policiesUpdate.ts +3 -1
  1429. package/src/funcs/postV2FeedbackEvaluation.ts +3 -1
  1430. package/src/funcs/postV2FeedbackEvaluationRemove.ts +3 -1
  1431. package/src/funcs/promptsCreate.ts +3 -1
  1432. package/src/funcs/promptsDelete.ts +3 -1
  1433. package/src/funcs/promptsGetVersion.ts +3 -1
  1434. package/src/funcs/promptsList.ts +3 -1
  1435. package/src/funcs/promptsListVersions.ts +3 -1
  1436. package/src/funcs/promptsRetrieve.ts +3 -1
  1437. package/src/funcs/promptsUpdate.ts +3 -1
  1438. package/src/funcs/remoteconfigsRetrieve.ts +3 -1
  1439. package/src/funcs/responsesCreate.ts +170 -0
  1440. package/src/funcs/responsesGet.ts +167 -0
  1441. package/src/funcs/routerAudioSpeechCreate.ts +3 -1
  1442. package/src/funcs/routerAudioTranscriptionsCreate.ts +3 -1
  1443. package/src/funcs/routerAudioTranslationsCreate.ts +3 -1
  1444. package/src/funcs/routerChatCompletionsCreate.ts +3 -1
  1445. package/src/funcs/routerCompletionsCreate.ts +3 -1
  1446. package/src/funcs/routerEmbeddingsCreate.ts +3 -1
  1447. package/src/funcs/routerImagesEditsCreate.ts +3 -1
  1448. package/src/funcs/routerImagesGenerationsCreate.ts +3 -1
  1449. package/src/funcs/routerImagesVariationsCreate.ts +3 -1
  1450. package/src/funcs/routerModerationsCreate.ts +3 -1
  1451. package/src/funcs/routerOcr.ts +3 -1
  1452. package/src/funcs/routerRerankCreate.ts +3 -1
  1453. package/src/funcs/routerResponsesCreate.ts +3 -1
  1454. package/src/funcs/routingRulesCreate.ts +4 -2
  1455. package/src/funcs/routingRulesDelete.ts +3 -1
  1456. package/src/funcs/routingRulesList.ts +3 -1
  1457. package/src/funcs/routingRulesRetrieve.ts +167 -0
  1458. package/src/funcs/routingRulesUpdate.ts +4 -2
  1459. package/src/funcs/schedulesCreate.ts +185 -0
  1460. package/src/funcs/schedulesDelete.ts +184 -0
  1461. package/src/funcs/schedulesList.ts +167 -0
  1462. package/src/funcs/schedulesRetrieve.ts +183 -0
  1463. package/src/funcs/schedulesTrigger.ts +190 -0
  1464. package/src/funcs/schedulesUpdate.ts +191 -0
  1465. package/src/funcs/toolsCreate.ts +3 -1
  1466. package/src/funcs/toolsDelete.ts +3 -1
  1467. package/src/funcs/toolsGetV2ToolsToolIdVersions.ts +3 -1
  1468. package/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +3 -1
  1469. package/src/funcs/toolsList.ts +3 -1
  1470. package/src/funcs/toolsRetrieve.ts +3 -1
  1471. package/src/funcs/toolsUpdate.ts +3 -1
  1472. package/src/lib/config.ts +3 -3
  1473. package/src/lib/sdks.ts +3 -6
  1474. package/src/models/components/conversationparam.ts +51 -0
  1475. package/src/models/components/expression.ts +0 -18
  1476. package/src/models/components/expressioninput.ts +29 -0
  1477. package/src/models/components/fallbackconfig.ts +27 -0
  1478. package/src/models/components/guardrailref.ts +12 -0
  1479. package/src/models/components/guardrailrule.ts +66 -0
  1480. package/src/models/components/incompletedetails.ts +31 -0
  1481. package/src/models/components/index.ts +23 -4
  1482. package/src/models/components/inputtokensdetails.ts +39 -0
  1483. package/src/models/components/memoryparam.ts +56 -0
  1484. package/src/models/components/outputtokensdetails.ts +36 -0
  1485. package/src/models/components/policy.ts +80 -0
  1486. package/src/models/components/policyretryconfig.ts +64 -0
  1487. package/src/models/components/publicschedule.ts +121 -0
  1488. package/src/models/components/publicscheduleerrordetail.ts +39 -0
  1489. package/src/models/components/publicschedulepayload.ts +84 -0
  1490. package/src/models/components/publicusage.ts +59 -0
  1491. package/src/models/components/reasoning.ts +33 -0
  1492. package/src/models/components/reasoningparam.ts +30 -0
  1493. package/src/models/components/reasoningpart.ts +1 -1
  1494. package/src/models/components/responseerror.ts +33 -0
  1495. package/src/models/components/responseexecutionlimits.ts +52 -0
  1496. package/src/models/components/responseidentity.ts +48 -0
  1497. package/src/models/components/responseretryconfig.ts +45 -0
  1498. package/src/models/components/responsethread.ts +30 -0
  1499. package/src/models/components/{policydocument.ts → routingrule.ts} +12 -21
  1500. package/src/models/components/streamoptions.ts +32 -0
  1501. package/src/models/errors/createagentschedule.ts +105 -0
  1502. package/src/models/errors/deleteagentschedule.ts +56 -0
  1503. package/src/models/errors/index.ts +5 -5
  1504. package/src/models/errors/postv2feedback.ts +8 -8
  1505. package/src/models/errors/retrieveagentschedule.ts +56 -0
  1506. package/src/models/errors/triggeragentschedule.ts +105 -0
  1507. package/src/models/errors/updateagentschedule.ts +105 -0
  1508. package/src/models/operations/createagentschedule.ts +230 -0
  1509. package/src/models/operations/createchunk.ts +7 -7
  1510. package/src/models/operations/createcontact.ts +1 -1
  1511. package/src/models/operations/createdataset.ts +1 -1
  1512. package/src/models/operations/createdatasetitem.ts +4 -4
  1513. package/src/models/operations/createdatasource.ts +1 -1
  1514. package/src/models/operations/createeval.ts +233 -186
  1515. package/src/models/operations/createidentity.ts +1 -1
  1516. package/src/models/operations/createknowledge.ts +17 -19
  1517. package/src/models/operations/createprompt.ts +2 -0
  1518. package/src/models/operations/createresponse.ts +11 -11
  1519. package/src/models/operations/createrouterresponse.ts +1527 -0
  1520. package/src/models/operations/createtool.ts +6 -6
  1521. package/src/models/operations/deleteagentschedule.ts +46 -0
  1522. package/src/models/operations/deploymentgetconfig.ts +29 -23
  1523. package/src/models/operations/deploymentinvoke.ts +2 -0
  1524. package/src/models/operations/deployments.ts +2 -0
  1525. package/src/models/operations/deploymentstream.ts +2 -0
  1526. package/src/models/operations/filecontent.ts +1 -1
  1527. package/src/models/operations/getallprompts.ts +2 -0
  1528. package/src/models/operations/getalltools.ts +6 -6
  1529. package/src/models/operations/getevals.ts +16 -16
  1530. package/src/models/operations/getoneprompt.ts +2 -0
  1531. package/src/models/operations/getpromptversion.ts +2 -0
  1532. package/src/models/operations/getv2humanevalsets.ts +2 -2
  1533. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  1534. package/src/models/operations/guardrailrulecreate.ts +3 -3
  1535. package/src/models/operations/guardrailrulelist.ts +2 -2
  1536. package/src/models/operations/guardrailruleupdate.ts +3 -3
  1537. package/src/models/operations/index.ts +8 -6
  1538. package/src/models/operations/listagentschedules.ts +69 -0
  1539. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  1540. package/src/models/operations/listdatasets.ts +1 -1
  1541. package/src/models/operations/listdatasources.ts +1 -1
  1542. package/src/models/operations/listidentities.ts +1 -1
  1543. package/src/models/operations/listpromptversions.ts +2 -0
  1544. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  1545. package/src/models/operations/policycreate.ts +5 -5
  1546. package/src/models/operations/policyget.ts +2 -2
  1547. package/src/models/operations/policylist.ts +2 -2
  1548. package/src/models/operations/policyupdate.ts +5 -5
  1549. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  1550. package/src/models/operations/postv2feedbackremove.ts +8 -8
  1551. package/src/models/operations/postv2humanevalsets.ts +2 -2
  1552. package/src/models/operations/retrieveagentschedule.ts +165 -0
  1553. package/src/models/operations/retrievedatapoint.ts +4 -4
  1554. package/src/models/operations/retrievedataset.ts +1 -1
  1555. package/src/models/operations/retrievedatasource.ts +1 -1
  1556. package/src/models/operations/retrieveidentity.ts +1 -1
  1557. package/src/models/operations/retrieveresponse.ts +225 -0
  1558. package/src/models/operations/retrievetool.ts +6 -6
  1559. package/src/models/operations/routingrulecreate.ts +3 -3
  1560. package/src/models/operations/routingrulelist.ts +2 -2
  1561. package/src/models/operations/routingruleupdate.ts +3 -3
  1562. package/src/models/operations/runagent.ts +1 -1
  1563. package/src/models/operations/streamrunagent.ts +1 -1
  1564. package/src/models/operations/triggeragentschedule.ts +86 -0
  1565. package/src/models/operations/updateagentschedule.ts +244 -0
  1566. package/src/models/operations/updatedatapoint.ts +4 -4
  1567. package/src/models/operations/updatedataset.ts +1 -1
  1568. package/src/models/operations/updatedatasource.ts +1 -1
  1569. package/src/models/operations/updateeval.ts +178 -16
  1570. package/src/models/operations/updateidentity.ts +1 -1
  1571. package/src/models/operations/updateprompt.ts +2 -0
  1572. package/src/models/operations/updatetool.ts +7 -7
  1573. package/src/sdk/agents.ts +4 -4
  1574. package/src/sdk/evals.ts +18 -0
  1575. package/src/sdk/feedback.ts +33 -0
  1576. package/src/sdk/files.ts +1 -1
  1577. package/src/sdk/guardrailrules.ts +3 -3
  1578. package/src/sdk/knowledge.ts +1 -1
  1579. package/src/sdk/orqagentsresponses.ts +53 -0
  1580. package/src/sdk/policies.ts +3 -3
  1581. package/src/sdk/responses.ts +13 -19
  1582. package/src/sdk/routingrules.ts +3 -3
  1583. package/src/sdk/schedules.ts +117 -0
  1584. package/src/sdk/sdk.ts +16 -94
  1585. package/funcs/deleteV2HumanEvalsId.d.ts.map +0 -1
  1586. package/funcs/deleteV2HumanEvalsId.js.map +0 -1
  1587. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
  1588. package/funcs/evaluatorsGetV2EvaluatorsIdVersions.js.map +0 -1
  1589. package/funcs/getV2HumanEvals.d.ts.map +0 -1
  1590. package/funcs/getV2HumanEvals.js +0 -116
  1591. package/funcs/getV2HumanEvals.js.map +0 -1
  1592. package/funcs/getV2HumanEvalsId.d.ts.map +0 -1
  1593. package/funcs/getV2HumanEvalsId.js.map +0 -1
  1594. package/funcs/guardrailRulesGet.d.ts.map +0 -1
  1595. package/funcs/guardrailRulesGet.js.map +0 -1
  1596. package/funcs/modelsList.d.ts.map +0 -1
  1597. package/funcs/modelsList.js +0 -117
  1598. package/funcs/modelsList.js.map +0 -1
  1599. package/funcs/patchV2HumanEvalsId.d.ts.map +0 -1
  1600. package/funcs/patchV2HumanEvalsId.js.map +0 -1
  1601. package/funcs/policiesGet.d.ts.map +0 -1
  1602. package/funcs/policiesGet.js.map +0 -1
  1603. package/funcs/postV2Feedback.d.ts +0 -12
  1604. package/funcs/postV2Feedback.d.ts.map +0 -1
  1605. package/funcs/postV2Feedback.js.map +0 -1
  1606. package/funcs/postV2FeedbackRemove.d.ts +0 -12
  1607. package/funcs/postV2FeedbackRemove.d.ts.map +0 -1
  1608. package/funcs/postV2FeedbackRemove.js.map +0 -1
  1609. package/funcs/postV2HumanEvals.d.ts +0 -12
  1610. package/funcs/postV2HumanEvals.d.ts.map +0 -1
  1611. package/funcs/postV2HumanEvals.js.map +0 -1
  1612. package/funcs/routingRulesGet.d.ts.map +0 -1
  1613. package/funcs/routingRulesGet.js.map +0 -1
  1614. package/models/components/guardrailruledocument.d.ts.map +0 -1
  1615. package/models/components/guardrailruledocument.js.map +0 -1
  1616. package/models/components/policydocument.d.ts.map +0 -1
  1617. package/models/components/policydocument.js.map +0 -1
  1618. package/models/components/retryconfig.d.ts +0 -19
  1619. package/models/components/retryconfig.d.ts.map +0 -1
  1620. package/models/components/retryconfig.js.map +0 -1
  1621. package/models/components/routingruledocument.d.ts.map +0 -1
  1622. package/models/components/routingruledocument.js.map +0 -1
  1623. package/models/errors/deletev2humanevalsid.d.ts +0 -23
  1624. package/models/errors/deletev2humanevalsid.d.ts.map +0 -1
  1625. package/models/errors/deletev2humanevalsid.js.map +0 -1
  1626. package/models/errors/getv2humanevals.d.ts +0 -23
  1627. package/models/errors/getv2humanevals.d.ts.map +0 -1
  1628. package/models/errors/getv2humanevals.js.map +0 -1
  1629. package/models/errors/getv2humanevalsid.d.ts +0 -23
  1630. package/models/errors/getv2humanevalsid.d.ts.map +0 -1
  1631. package/models/errors/getv2humanevalsid.js.map +0 -1
  1632. package/models/errors/patchv2humanevalsid.d.ts +0 -23
  1633. package/models/errors/patchv2humanevalsid.d.ts.map +0 -1
  1634. package/models/errors/patchv2humanevalsid.js.map +0 -1
  1635. package/models/errors/postv2humanevals.d.ts +0 -23
  1636. package/models/errors/postv2humanevals.d.ts.map +0 -1
  1637. package/models/errors/postv2humanevals.js.map +0 -1
  1638. package/models/operations/deletev2humanevalsid.d.ts +0 -27
  1639. package/models/operations/deletev2humanevalsid.d.ts.map +0 -1
  1640. package/models/operations/deletev2humanevalsid.js.map +0 -1
  1641. package/models/operations/getv2humanevals.d.ts +0 -356
  1642. package/models/operations/getv2humanevals.d.ts.map +0 -1
  1643. package/models/operations/getv2humanevals.js +0 -274
  1644. package/models/operations/getv2humanevals.js.map +0 -1
  1645. package/models/operations/getv2humanevalsid.d.ts +0 -359
  1646. package/models/operations/getv2humanevalsid.d.ts.map +0 -1
  1647. package/models/operations/getv2humanevalsid.js +0 -271
  1648. package/models/operations/getv2humanevalsid.js.map +0 -1
  1649. package/models/operations/listmodels.d.ts +0 -90
  1650. package/models/operations/listmodels.d.ts.map +0 -1
  1651. package/models/operations/listmodels.js +0 -112
  1652. package/models/operations/listmodels.js.map +0 -1
  1653. package/models/operations/patchv2humanevalsid.d.ts +0 -703
  1654. package/models/operations/patchv2humanevalsid.d.ts.map +0 -1
  1655. package/models/operations/patchv2humanevalsid.js +0 -474
  1656. package/models/operations/patchv2humanevalsid.js.map +0 -1
  1657. package/models/operations/postv2humanevals.d.ts +0 -628
  1658. package/models/operations/postv2humanevals.d.ts.map +0 -1
  1659. package/models/operations/postv2humanevals.js +0 -427
  1660. package/models/operations/postv2humanevals.js.map +0 -1
  1661. package/sdk/evaluators.d.ts +0 -12
  1662. package/sdk/evaluators.d.ts.map +0 -1
  1663. package/sdk/evaluators.js +0 -22
  1664. package/sdk/evaluators.js.map +0 -1
  1665. package/sdk/models.d.ts +0 -12
  1666. package/sdk/models.d.ts.map +0 -1
  1667. package/sdk/models.js +0 -22
  1668. package/sdk/models.js.map +0 -1
  1669. package/src/models/operations/deletev2humanevalsid.ts +0 -67
  1670. package/src/models/operations/getv2humanevals.ts +0 -696
  1671. package/src/models/operations/getv2humanevalsid.ts +0 -707
  1672. package/src/models/operations/listmodels.ts +0 -169
  1673. package/src/models/operations/patchv2humanevalsid.ts +0 -1362
  1674. package/src/models/operations/postv2humanevals.ts +0 -1193
  1675. package/src/sdk/evaluators.ts +0 -27
  1676. package/src/sdk/models.ts +0 -27
@@ -0,0 +1,4532 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
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 * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ export type DeploymentGetConfigContentDeployments2 =
14
+ components.TextContentPartSchema;
15
+
16
+ /**
17
+ * The contents of the tool message.
18
+ */
19
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
20
+ | string
21
+ | Array<components.TextContentPartSchema>;
22
+
23
+ /**
24
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
+ */
26
+ export const DeploymentGetConfigPrefixMessagesType = {
27
+ Ephemeral: "ephemeral",
28
+ } as const;
29
+ /**
30
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
+ */
32
+ export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
33
+ typeof DeploymentGetConfigPrefixMessagesType
34
+ >;
35
+
36
+ /**
37
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
38
+ *
39
+ * @remarks
40
+ *
41
+ * - `5m`: 5 minutes
42
+ * - `1h`: 1 hour
43
+ *
44
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
+ */
46
+ export const PrefixMessagesTtl = {
47
+ Fivem: "5m",
48
+ Oneh: "1h",
49
+ } as const;
50
+ /**
51
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
52
+ *
53
+ * @remarks
54
+ *
55
+ * - `5m`: 5 minutes
56
+ * - `1h`: 1 hour
57
+ *
58
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
59
+ */
60
+ export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
61
+
62
+ export type PrefixMessagesCacheControl = {
63
+ /**
64
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
65
+ */
66
+ type: DeploymentGetConfigPrefixMessagesType;
67
+ /**
68
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
69
+ *
70
+ * @remarks
71
+ *
72
+ * - `5m`: 5 minutes
73
+ * - `1h`: 1 hour
74
+ *
75
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
76
+ */
77
+ ttl?: PrefixMessagesTtl | undefined;
78
+ };
79
+
80
+ export type ToolMessage = {
81
+ /**
82
+ * The role of the messages author, in this case tool.
83
+ */
84
+ role: "tool";
85
+ /**
86
+ * The contents of the tool message.
87
+ */
88
+ content: string | Array<components.TextContentPartSchema>;
89
+ /**
90
+ * Tool call that this message is responding to.
91
+ */
92
+ toolCallId: string | null;
93
+ cacheControl?: PrefixMessagesCacheControl | undefined;
94
+ };
95
+
96
+ export type DeploymentGetConfigContent2 =
97
+ | (components.TextContentPartSchema & { type: "text" })
98
+ | components.RefusalPartSchema
99
+ | components.ReasoningPartSchema
100
+ | components.RedactedReasoningPartSchema;
101
+
102
+ /**
103
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
104
+ */
105
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
106
+ | string
107
+ | Array<
108
+ | (components.TextContentPartSchema & { type: "text" })
109
+ | components.RefusalPartSchema
110
+ | components.ReasoningPartSchema
111
+ | components.RedactedReasoningPartSchema
112
+ >;
113
+
114
+ /**
115
+ * Data about a previous audio response from the model.
116
+ */
117
+ export type Audio = {
118
+ /**
119
+ * Unique identifier for a previous audio response from the model.
120
+ */
121
+ id: string;
122
+ };
123
+
124
+ /**
125
+ * The type of the tool. Currently, only `function` is supported.
126
+ */
127
+ export const PrefixMessagesType = {
128
+ Function: "function",
129
+ } as const;
130
+ /**
131
+ * The type of the tool. Currently, only `function` is supported.
132
+ */
133
+ export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
134
+
135
+ export type PrefixMessagesFunction = {
136
+ /**
137
+ * The name of the function to call.
138
+ */
139
+ name?: string | undefined;
140
+ /**
141
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
142
+ */
143
+ arguments?: string | undefined;
144
+ };
145
+
146
+ export type PrefixMessagesToolCalls = {
147
+ /**
148
+ * The ID of the tool call.
149
+ */
150
+ id: string;
151
+ /**
152
+ * The type of the tool. Currently, only `function` is supported.
153
+ */
154
+ type: PrefixMessagesType;
155
+ function: PrefixMessagesFunction;
156
+ /**
157
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
158
+ */
159
+ thoughtSignature?: string | undefined;
160
+ };
161
+
162
+ export type AssistantMessage = {
163
+ /**
164
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
165
+ */
166
+ content?:
167
+ | string
168
+ | Array<
169
+ | (components.TextContentPartSchema & { type: "text" })
170
+ | components.RefusalPartSchema
171
+ | components.ReasoningPartSchema
172
+ | components.RedactedReasoningPartSchema
173
+ >
174
+ | null
175
+ | undefined;
176
+ /**
177
+ * The refusal message by the assistant.
178
+ */
179
+ refusal?: string | null | undefined;
180
+ /**
181
+ * The role of the messages author, in this case `assistant`.
182
+ */
183
+ role: "assistant";
184
+ /**
185
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
186
+ */
187
+ name?: string | undefined;
188
+ /**
189
+ * Data about a previous audio response from the model.
190
+ */
191
+ audio?: Audio | null | undefined;
192
+ /**
193
+ * The tool calls generated by the model, such as function calls.
194
+ */
195
+ toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
196
+ };
197
+
198
+ /**
199
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
200
+ */
201
+ export const DeploymentGetConfig2DeploymentsType = {
202
+ Ephemeral: "ephemeral",
203
+ } as const;
204
+ /**
205
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
206
+ */
207
+ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
208
+ typeof DeploymentGetConfig2DeploymentsType
209
+ >;
210
+
211
+ /**
212
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
213
+ *
214
+ * @remarks
215
+ *
216
+ * - `5m`: 5 minutes
217
+ * - `1h`: 1 hour
218
+ *
219
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
220
+ */
221
+ export const Ttl = {
222
+ Fivem: "5m",
223
+ Oneh: "1h",
224
+ } as const;
225
+ /**
226
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
227
+ *
228
+ * @remarks
229
+ *
230
+ * - `5m`: 5 minutes
231
+ * - `1h`: 1 hour
232
+ *
233
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
234
+ */
235
+ export type Ttl = ClosedEnum<typeof Ttl>;
236
+
237
+ export type CacheControl = {
238
+ /**
239
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
240
+ */
241
+ type: DeploymentGetConfig2DeploymentsType;
242
+ /**
243
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
244
+ *
245
+ * @remarks
246
+ *
247
+ * - `5m`: 5 minutes
248
+ * - `1h`: 1 hour
249
+ *
250
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
251
+ */
252
+ ttl?: Ttl | undefined;
253
+ };
254
+
255
+ export type Four = {
256
+ /**
257
+ * The type of the content part. Always `file`.
258
+ */
259
+ type: "file";
260
+ cacheControl?: CacheControl | undefined;
261
+ /**
262
+ * File data for the content part. Must contain either file_data or uri, but not both.
263
+ */
264
+ file: components.FileContentPartSchema;
265
+ };
266
+
267
+ export type Content2 =
268
+ | (components.TextContentPartSchema & { type: "text" })
269
+ | components.ImageContentPartSchema
270
+ | components.AudioContentPartSchema
271
+ | Four;
272
+
273
+ /**
274
+ * The contents of the user message.
275
+ */
276
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
277
+ | string
278
+ | Array<
279
+ | (components.TextContentPartSchema & { type: "text" })
280
+ | components.ImageContentPartSchema
281
+ | components.AudioContentPartSchema
282
+ | Four
283
+ >;
284
+
285
+ export type UserMessage = {
286
+ /**
287
+ * The role of the messages author, in this case `user`.
288
+ */
289
+ role: "user";
290
+ /**
291
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
292
+ */
293
+ name?: string | undefined;
294
+ /**
295
+ * The contents of the user message.
296
+ */
297
+ content:
298
+ | string
299
+ | Array<
300
+ | (components.TextContentPartSchema & { type: "text" })
301
+ | components.ImageContentPartSchema
302
+ | components.AudioContentPartSchema
303
+ | Four
304
+ >;
305
+ };
306
+
307
+ /**
308
+ * The contents of the developer message.
309
+ */
310
+ export type DeploymentGetConfigPrefixMessagesContent =
311
+ | string
312
+ | Array<components.TextContentPartSchema>;
313
+
314
+ export type DeveloperMessage = {
315
+ /**
316
+ * The role of the messages author, in this case `developer`.
317
+ */
318
+ role: "developer";
319
+ /**
320
+ * The contents of the developer message.
321
+ */
322
+ content: string | Array<components.TextContentPartSchema>;
323
+ /**
324
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
325
+ */
326
+ name?: string | undefined;
327
+ };
328
+
329
+ /**
330
+ * The contents of the system message.
331
+ */
332
+ export type PrefixMessagesContent =
333
+ | string
334
+ | Array<components.TextContentPartSchema>;
335
+
336
+ /**
337
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
338
+ */
339
+ export type SystemMessage = {
340
+ /**
341
+ * The role of the messages author, in this case `system`.
342
+ */
343
+ role: "system";
344
+ /**
345
+ * The contents of the system message.
346
+ */
347
+ content: string | Array<components.TextContentPartSchema>;
348
+ /**
349
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
350
+ */
351
+ name?: string | undefined;
352
+ };
353
+
354
+ export type PrefixMessages =
355
+ | SystemMessage
356
+ | DeveloperMessage
357
+ | UserMessage
358
+ | AssistantMessage
359
+ | ToolMessage;
360
+
361
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
362
+ components.TextContentPartSchema;
363
+
364
+ /**
365
+ * The contents of the tool message.
366
+ */
367
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
368
+ | string
369
+ | Array<components.TextContentPartSchema>;
370
+
371
+ /**
372
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
373
+ */
374
+ export const DeploymentGetConfigMessagesType = {
375
+ Ephemeral: "ephemeral",
376
+ } as const;
377
+ /**
378
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
379
+ */
380
+ export type DeploymentGetConfigMessagesType = ClosedEnum<
381
+ typeof DeploymentGetConfigMessagesType
382
+ >;
383
+
384
+ /**
385
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
386
+ *
387
+ * @remarks
388
+ *
389
+ * - `5m`: 5 minutes
390
+ * - `1h`: 1 hour
391
+ *
392
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
393
+ */
394
+ export const MessagesTtl = {
395
+ Fivem: "5m",
396
+ Oneh: "1h",
397
+ } as const;
398
+ /**
399
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
400
+ *
401
+ * @remarks
402
+ *
403
+ * - `5m`: 5 minutes
404
+ * - `1h`: 1 hour
405
+ *
406
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
407
+ */
408
+ export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
409
+
410
+ export type MessagesCacheControl = {
411
+ /**
412
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
413
+ */
414
+ type: DeploymentGetConfigMessagesType;
415
+ /**
416
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
417
+ *
418
+ * @remarks
419
+ *
420
+ * - `5m`: 5 minutes
421
+ * - `1h`: 1 hour
422
+ *
423
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
424
+ */
425
+ ttl?: MessagesTtl | undefined;
426
+ };
427
+
428
+ export type MessagesToolMessage = {
429
+ /**
430
+ * The role of the messages author, in this case tool.
431
+ */
432
+ role: "tool";
433
+ /**
434
+ * The contents of the tool message.
435
+ */
436
+ content: string | Array<components.TextContentPartSchema>;
437
+ /**
438
+ * Tool call that this message is responding to.
439
+ */
440
+ toolCallId: string | null;
441
+ cacheControl?: MessagesCacheControl | undefined;
442
+ };
443
+
444
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
445
+ | (components.TextContentPartSchema & { type: "text" })
446
+ | components.RefusalPartSchema
447
+ | components.ReasoningPartSchema
448
+ | components.RedactedReasoningPartSchema;
449
+
450
+ /**
451
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
452
+ */
453
+ export type DeploymentGetConfigMessagesDeploymentsRequestContent =
454
+ | string
455
+ | Array<
456
+ | (components.TextContentPartSchema & { type: "text" })
457
+ | components.RefusalPartSchema
458
+ | components.ReasoningPartSchema
459
+ | components.RedactedReasoningPartSchema
460
+ >;
461
+
462
+ /**
463
+ * Data about a previous audio response from the model.
464
+ */
465
+ export type MessagesAudio = {
466
+ /**
467
+ * Unique identifier for a previous audio response from the model.
468
+ */
469
+ id: string;
470
+ };
471
+
472
+ /**
473
+ * The type of the tool. Currently, only `function` is supported.
474
+ */
475
+ export const MessagesType = {
476
+ Function: "function",
477
+ } as const;
478
+ /**
479
+ * The type of the tool. Currently, only `function` is supported.
480
+ */
481
+ export type MessagesType = ClosedEnum<typeof MessagesType>;
482
+
483
+ export type MessagesFunction = {
484
+ /**
485
+ * The name of the function to call.
486
+ */
487
+ name?: string | undefined;
488
+ /**
489
+ * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
490
+ */
491
+ arguments?: string | undefined;
492
+ };
493
+
494
+ export type MessagesToolCalls = {
495
+ /**
496
+ * The ID of the tool call.
497
+ */
498
+ id: string;
499
+ /**
500
+ * The type of the tool. Currently, only `function` is supported.
501
+ */
502
+ type: MessagesType;
503
+ function: MessagesFunction;
504
+ /**
505
+ * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
506
+ */
507
+ thoughtSignature?: string | undefined;
508
+ };
509
+
510
+ export type MessagesAssistantMessage = {
511
+ /**
512
+ * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
513
+ */
514
+ content?:
515
+ | string
516
+ | Array<
517
+ | (components.TextContentPartSchema & { type: "text" })
518
+ | components.RefusalPartSchema
519
+ | components.ReasoningPartSchema
520
+ | components.RedactedReasoningPartSchema
521
+ >
522
+ | null
523
+ | undefined;
524
+ /**
525
+ * The refusal message by the assistant.
526
+ */
527
+ refusal?: string | null | undefined;
528
+ /**
529
+ * The role of the messages author, in this case `assistant`.
530
+ */
531
+ role: "assistant";
532
+ /**
533
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
534
+ */
535
+ name?: string | undefined;
536
+ /**
537
+ * Data about a previous audio response from the model.
538
+ */
539
+ audio?: MessagesAudio | null | undefined;
540
+ /**
541
+ * The tool calls generated by the model, such as function calls.
542
+ */
543
+ toolCalls?: Array<MessagesToolCalls> | undefined;
544
+ };
545
+
546
+ /**
547
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
548
+ */
549
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
550
+ Ephemeral: "ephemeral",
551
+ } as const;
552
+ /**
553
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
554
+ */
555
+ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
556
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
557
+ >;
558
+
559
+ /**
560
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
561
+ *
562
+ * @remarks
563
+ *
564
+ * - `5m`: 5 minutes
565
+ * - `1h`: 1 hour
566
+ *
567
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
568
+ */
569
+ export const TwoTtl = {
570
+ Fivem: "5m",
571
+ Oneh: "1h",
572
+ } as const;
573
+ /**
574
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
575
+ *
576
+ * @remarks
577
+ *
578
+ * - `5m`: 5 minutes
579
+ * - `1h`: 1 hour
580
+ *
581
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
582
+ */
583
+ export type TwoTtl = ClosedEnum<typeof TwoTtl>;
584
+
585
+ export type TwoCacheControl = {
586
+ /**
587
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
588
+ */
589
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
590
+ /**
591
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
592
+ *
593
+ * @remarks
594
+ *
595
+ * - `5m`: 5 minutes
596
+ * - `1h`: 1 hour
597
+ *
598
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
599
+ */
600
+ ttl?: TwoTtl | undefined;
601
+ };
602
+
603
+ export type Two4 = {
604
+ /**
605
+ * The type of the content part. Always `file`.
606
+ */
607
+ type: "file";
608
+ cacheControl?: TwoCacheControl | undefined;
609
+ /**
610
+ * File data for the content part. Must contain either file_data or uri, but not both.
611
+ */
612
+ file: components.FileContentPartSchema;
613
+ };
614
+
615
+ export type DeploymentGetConfigContentDeploymentsRequest2 =
616
+ | (components.TextContentPartSchema & { type: "text" })
617
+ | components.ImageContentPartSchema
618
+ | components.AudioContentPartSchema
619
+ | Two4;
620
+
621
+ /**
622
+ * The contents of the user message.
623
+ */
624
+ export type DeploymentGetConfigMessagesDeploymentsContent =
625
+ | string
626
+ | Array<
627
+ | (components.TextContentPartSchema & { type: "text" })
628
+ | components.ImageContentPartSchema
629
+ | components.AudioContentPartSchema
630
+ | Two4
631
+ >;
632
+
633
+ export type MessagesUserMessage = {
634
+ /**
635
+ * The role of the messages author, in this case `user`.
636
+ */
637
+ role: "user";
638
+ /**
639
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
640
+ */
641
+ name?: string | undefined;
642
+ /**
643
+ * The contents of the user message.
644
+ */
645
+ content:
646
+ | string
647
+ | Array<
648
+ | (components.TextContentPartSchema & { type: "text" })
649
+ | components.ImageContentPartSchema
650
+ | components.AudioContentPartSchema
651
+ | Two4
652
+ >;
653
+ };
654
+
655
+ /**
656
+ * The contents of the developer message.
657
+ */
658
+ export type DeploymentGetConfigMessagesContent =
659
+ | string
660
+ | Array<components.TextContentPartSchema>;
661
+
662
+ export type MessagesDeveloperMessage = {
663
+ /**
664
+ * The role of the messages author, in this case `developer`.
665
+ */
666
+ role: "developer";
667
+ /**
668
+ * The contents of the developer message.
669
+ */
670
+ content: string | Array<components.TextContentPartSchema>;
671
+ /**
672
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
673
+ */
674
+ name?: string | undefined;
675
+ };
676
+
677
+ /**
678
+ * The contents of the system message.
679
+ */
680
+ export type MessagesContent = string | Array<components.TextContentPartSchema>;
681
+
682
+ /**
683
+ * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
684
+ */
685
+ export type MessagesSystemMessage = {
686
+ /**
687
+ * The role of the messages author, in this case `system`.
688
+ */
689
+ role: "system";
690
+ /**
691
+ * The contents of the system message.
692
+ */
693
+ content: string | Array<components.TextContentPartSchema>;
694
+ /**
695
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
696
+ */
697
+ name?: string | undefined;
698
+ };
699
+
700
+ export type DeploymentGetConfigMessages =
701
+ | MessagesSystemMessage
702
+ | MessagesDeveloperMessage
703
+ | MessagesUserMessage
704
+ | MessagesAssistantMessage
705
+ | MessagesToolMessage;
706
+
707
+ /**
708
+ * Metadata about the document
709
+ */
710
+ export type Metadata = {
711
+ /**
712
+ * Name of the file the text is from.
713
+ */
714
+ fileName?: string | undefined;
715
+ /**
716
+ * Content type of the file the text is from.
717
+ */
718
+ fileType?: string | undefined;
719
+ /**
720
+ * The page number the text is from.
721
+ */
722
+ pageNumber?: number | undefined;
723
+ };
724
+
725
+ export type Documents = {
726
+ /**
727
+ * The text content of the document
728
+ */
729
+ text: string;
730
+ /**
731
+ * Metadata about the document
732
+ */
733
+ metadata?: Metadata | undefined;
734
+ };
735
+
736
+ export type InvokeOptions = {
737
+ /**
738
+ * Whether to include the retrieved knowledge chunks in the response.
739
+ */
740
+ includeRetrievals?: boolean | undefined;
741
+ /**
742
+ * Whether to include the usage metrics in the response.
743
+ */
744
+ includeUsage?: boolean | undefined;
745
+ /**
746
+ * A mock response to use instead of calling the LLM API. This is useful for testing purposes. When provided, the system will return a response object with this content as the completion, without making an actual API call to the LLM provider. This works for both streaming and non-streaming requests. Mock responses will not generate logs, traces or be counted for your plan usage.
747
+ */
748
+ mockResponse?: string | undefined;
749
+ };
750
+
751
+ export type Thread = {
752
+ /**
753
+ * Unique thread identifier to group related invocations.
754
+ */
755
+ id: string;
756
+ /**
757
+ * Optional tags to differentiate or categorize threads
758
+ */
759
+ tags?: Array<string> | undefined;
760
+ };
761
+
762
+ /**
763
+ * Exists
764
+ */
765
+ export type OrExists = {
766
+ exists: boolean;
767
+ };
768
+
769
+ export type DeploymentGetConfigOrNin = string | number | boolean;
770
+
771
+ /**
772
+ * Not in
773
+ */
774
+ export type OrNin = {
775
+ nin: Array<string | number | boolean>;
776
+ };
777
+
778
+ export type DeploymentGetConfigOrIn = string | number | boolean;
779
+
780
+ /**
781
+ * In
782
+ */
783
+ export type OrIn = {
784
+ in: Array<string | number | boolean>;
785
+ };
786
+
787
+ /**
788
+ * Less than or equal to
789
+ */
790
+ export type OrLte = {
791
+ lte: number;
792
+ };
793
+
794
+ /**
795
+ * Less than
796
+ */
797
+ export type OrLt = {
798
+ lt: number;
799
+ };
800
+
801
+ /**
802
+ * Greater than or equal to
803
+ */
804
+ export type OrGte = {
805
+ gte: number;
806
+ };
807
+
808
+ /**
809
+ * Greater than
810
+ */
811
+ export type OrGt = {
812
+ gt: number;
813
+ };
814
+
815
+ export type DeploymentGetConfigOrNe = string | number | boolean;
816
+
817
+ /**
818
+ * Not equal to
819
+ */
820
+ export type OrNe = {
821
+ ne: string | number | boolean;
822
+ };
823
+
824
+ export type DeploymentGetConfigOrEq = string | number | boolean;
825
+
826
+ /**
827
+ * Equal to
828
+ */
829
+ export type OrEq = {
830
+ eq: string | number | boolean;
831
+ };
832
+
833
+ export type KnowledgeFilterOr =
834
+ | OrEq
835
+ | OrNe
836
+ | OrGt
837
+ | OrGte
838
+ | OrLt
839
+ | OrLte
840
+ | OrIn
841
+ | OrNin
842
+ | OrExists;
843
+
844
+ /**
845
+ * Or
846
+ */
847
+ export type Or = {
848
+ or: Array<
849
+ {
850
+ [k: string]:
851
+ | OrEq
852
+ | OrNe
853
+ | OrGt
854
+ | OrGte
855
+ | OrLt
856
+ | OrLte
857
+ | OrIn
858
+ | OrNin
859
+ | OrExists;
860
+ }
861
+ >;
862
+ };
863
+
864
+ /**
865
+ * Exists
866
+ */
867
+ export type AndExists = {
868
+ exists: boolean;
869
+ };
870
+
871
+ export type DeploymentGetConfigAndNin = string | number | boolean;
872
+
873
+ /**
874
+ * Not in
875
+ */
876
+ export type AndNin = {
877
+ nin: Array<string | number | boolean>;
878
+ };
879
+
880
+ export type DeploymentGetConfigAndIn = string | number | boolean;
881
+
882
+ /**
883
+ * In
884
+ */
885
+ export type AndIn = {
886
+ in: Array<string | number | boolean>;
887
+ };
888
+
889
+ /**
890
+ * Less than or equal to
891
+ */
892
+ export type AndLte = {
893
+ lte: number;
894
+ };
895
+
896
+ /**
897
+ * Less than
898
+ */
899
+ export type AndLt = {
900
+ lt: number;
901
+ };
902
+
903
+ /**
904
+ * Greater than or equal to
905
+ */
906
+ export type AndGte = {
907
+ gte: number;
908
+ };
909
+
910
+ /**
911
+ * Greater than
912
+ */
913
+ export type AndGt = {
914
+ gt: number;
915
+ };
916
+
917
+ export type DeploymentGetConfigAndNe = string | number | boolean;
918
+
919
+ /**
920
+ * Not equal to
921
+ */
922
+ export type AndNe = {
923
+ ne: string | number | boolean;
924
+ };
925
+
926
+ export type DeploymentGetConfigAndEq = string | number | boolean;
927
+
928
+ /**
929
+ * Equal to
930
+ */
931
+ export type AndEq = {
932
+ eq: string | number | boolean;
933
+ };
934
+
935
+ export type KnowledgeFilterAnd =
936
+ | AndEq
937
+ | AndNe
938
+ | AndGt
939
+ | AndGte
940
+ | AndLt
941
+ | AndLte
942
+ | AndIn
943
+ | AndNin
944
+ | AndExists;
945
+
946
+ /**
947
+ * And
948
+ */
949
+ export type And = {
950
+ and: Array<
951
+ {
952
+ [k: string]:
953
+ | AndEq
954
+ | AndNe
955
+ | AndGt
956
+ | AndGte
957
+ | AndLt
958
+ | AndLte
959
+ | AndIn
960
+ | AndNin
961
+ | AndExists;
962
+ }
963
+ >;
964
+ };
965
+
966
+ /**
967
+ * Exists
968
+ */
969
+ export type Exists = {
970
+ exists: boolean;
971
+ };
972
+
973
+ export type OneNin = string | number | boolean;
974
+
975
+ /**
976
+ * Not in
977
+ */
978
+ export type Nin = {
979
+ nin: Array<string | number | boolean>;
980
+ };
981
+
982
+ export type OneIn = string | number | boolean;
983
+
984
+ /**
985
+ * In
986
+ */
987
+ export type In = {
988
+ in: Array<string | number | boolean>;
989
+ };
990
+
991
+ /**
992
+ * Less than or equal to
993
+ */
994
+ export type Lte = {
995
+ lte: number;
996
+ };
997
+
998
+ /**
999
+ * Less than
1000
+ */
1001
+ export type Lt = {
1002
+ lt: number;
1003
+ };
1004
+
1005
+ /**
1006
+ * Greater than or equal to
1007
+ */
1008
+ export type Gte = {
1009
+ gte: number;
1010
+ };
1011
+
1012
+ /**
1013
+ * Greater than
1014
+ */
1015
+ export type Gt = {
1016
+ gt: number;
1017
+ };
1018
+
1019
+ export type OneNe = string | number | boolean;
1020
+
1021
+ /**
1022
+ * Not equal to
1023
+ */
1024
+ export type Ne = {
1025
+ ne: string | number | boolean;
1026
+ };
1027
+
1028
+ export type OneEq = string | number | boolean;
1029
+
1030
+ /**
1031
+ * Equal to
1032
+ */
1033
+ export type Eq = {
1034
+ eq: string | number | boolean;
1035
+ };
1036
+
1037
+ export type KnowledgeFilter1 =
1038
+ | Eq
1039
+ | Ne
1040
+ | Gt
1041
+ | Gte
1042
+ | Lt
1043
+ | Lte
1044
+ | In
1045
+ | Nin
1046
+ | Exists;
1047
+
1048
+ /**
1049
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1050
+ */
1051
+ export type KnowledgeFilter = And | Or | {
1052
+ [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1053
+ };
1054
+
1055
+ export type DeploymentGetConfigRequestBody = {
1056
+ /**
1057
+ * The deployment key to invoke
1058
+ */
1059
+ key: string;
1060
+ /**
1061
+ * Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
1062
+ */
1063
+ inputs?: { [k: string]: any } | undefined;
1064
+ /**
1065
+ * Key-value pairs that match your data model and fields declared in your deployment routing configuration
1066
+ */
1067
+ context?: { [k: string]: any } | undefined;
1068
+ /**
1069
+ * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
1070
+ */
1071
+ prefixMessages?:
1072
+ | Array<
1073
+ | SystemMessage
1074
+ | DeveloperMessage
1075
+ | UserMessage
1076
+ | AssistantMessage
1077
+ | ToolMessage
1078
+ >
1079
+ | undefined;
1080
+ /**
1081
+ * A list of messages to send to the deployment.
1082
+ */
1083
+ messages?:
1084
+ | Array<
1085
+ | MessagesSystemMessage
1086
+ | MessagesDeveloperMessage
1087
+ | MessagesUserMessage
1088
+ | MessagesAssistantMessage
1089
+ | MessagesToolMessage
1090
+ >
1091
+ | undefined;
1092
+ /**
1093
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
1094
+ */
1095
+ identity?: components.PublicIdentity | undefined;
1096
+ /**
1097
+ * A list of file IDs that are associated with the deployment request.
1098
+ */
1099
+ fileIds?: Array<string> | undefined;
1100
+ /**
1101
+ * Key-value pairs that you want to attach to the log generated by this request.
1102
+ */
1103
+ metadata?: { [k: string]: any } | undefined;
1104
+ /**
1105
+ * Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
1106
+ */
1107
+ extraParams?: { [k: string]: any } | undefined;
1108
+ /**
1109
+ * A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
1110
+ */
1111
+ documents?: Array<Documents> | undefined;
1112
+ invokeOptions?: InvokeOptions | undefined;
1113
+ thread?: Thread | undefined;
1114
+ /**
1115
+ * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1116
+ */
1117
+ knowledgeFilter?: And | Or | {
1118
+ [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1119
+ } | undefined;
1120
+ };
1121
+
1122
+ /**
1123
+ * The type of the model. Current `chat`,`completion` and `image` are supported
1124
+ */
1125
+ export const DeploymentGetConfigType = {
1126
+ Chat: "chat",
1127
+ Completion: "completion",
1128
+ Embedding: "embedding",
1129
+ Image: "image",
1130
+ Tts: "tts",
1131
+ Stt: "stt",
1132
+ Rerank: "rerank",
1133
+ Ocr: "ocr",
1134
+ Moderation: "moderation",
1135
+ Vision: "vision",
1136
+ } as const;
1137
+ /**
1138
+ * The type of the model. Current `chat`,`completion` and `image` are supported
1139
+ */
1140
+ export type DeploymentGetConfigType = ClosedEnum<
1141
+ typeof DeploymentGetConfigType
1142
+ >;
1143
+
1144
+ /**
1145
+ * The role of the prompt message
1146
+ */
1147
+ export const DeploymentGetConfigRole = {
1148
+ System: "system",
1149
+ Developer: "developer",
1150
+ Assistant: "assistant",
1151
+ User: "user",
1152
+ Exception: "exception",
1153
+ Tool: "tool",
1154
+ Prompt: "prompt",
1155
+ Correction: "correction",
1156
+ ExpectedOutput: "expected_output",
1157
+ } as const;
1158
+ /**
1159
+ * The role of the prompt message
1160
+ */
1161
+ export type DeploymentGetConfigRole = ClosedEnum<
1162
+ typeof DeploymentGetConfigRole
1163
+ >;
1164
+
1165
+ export type DeploymentGetConfig2File = {
1166
+ /**
1167
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
1168
+ */
1169
+ fileData?: string | undefined;
1170
+ /**
1171
+ * URL to the file. Only supported by Anthropic Claude models for PDF files.
1172
+ */
1173
+ uri?: string | undefined;
1174
+ /**
1175
+ * MIME type of the file (e.g., application/pdf, image/png)
1176
+ */
1177
+ mimeType?: string | undefined;
1178
+ /**
1179
+ * The name of the file, used when passing the file to the model as a string.
1180
+ */
1181
+ filename?: string | undefined;
1182
+ };
1183
+
1184
+ export type DeploymentGetConfig23 = {
1185
+ /**
1186
+ * The type of the content part. Always `file`.
1187
+ */
1188
+ type: "file";
1189
+ file: DeploymentGetConfig2File;
1190
+ };
1191
+
1192
+ export type TwoImageUrl = {
1193
+ /**
1194
+ * The orq.ai id of the image
1195
+ */
1196
+ id?: string | undefined;
1197
+ /**
1198
+ * Either a URL of the image or the base64 encoded data URI.
1199
+ */
1200
+ url: string;
1201
+ /**
1202
+ * Specifies the detail level of the image. Currently only supported with OpenAI models
1203
+ */
1204
+ detail?: string | undefined;
1205
+ };
1206
+
1207
+ /**
1208
+ * The image part of the prompt message. Only supported with vision models.
1209
+ */
1210
+ export type DeploymentGetConfig22 = {
1211
+ type: "image_url";
1212
+ imageUrl: TwoImageUrl;
1213
+ };
1214
+
1215
+ /**
1216
+ * Text content part of a prompt message
1217
+ */
1218
+ export type DeploymentGetConfig21 = {
1219
+ type: "text";
1220
+ text: string;
1221
+ };
1222
+
1223
+ export type DeploymentGetConfigContentDeploymentsResponse2 =
1224
+ | DeploymentGetConfig21
1225
+ | DeploymentGetConfig22
1226
+ | DeploymentGetConfig23;
1227
+
1228
+ /**
1229
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1230
+ */
1231
+ export type DeploymentGetConfigContent =
1232
+ | string
1233
+ | Array<
1234
+ DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1235
+ >;
1236
+
1237
+ export const DeploymentGetConfigDeploymentsResponseType = {
1238
+ Function: "function",
1239
+ } as const;
1240
+ export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<
1241
+ typeof DeploymentGetConfigDeploymentsResponseType
1242
+ >;
1243
+
1244
+ export type DeploymentGetConfigDeploymentsFunction = {
1245
+ name: string;
1246
+ /**
1247
+ * JSON string arguments for the functions
1248
+ */
1249
+ arguments: string;
1250
+ };
1251
+
1252
+ export type DeploymentGetConfigToolCalls = {
1253
+ id?: string | undefined;
1254
+ index?: number | undefined;
1255
+ type: DeploymentGetConfigDeploymentsResponseType;
1256
+ function: DeploymentGetConfigDeploymentsFunction;
1257
+ };
1258
+
1259
+ export type DeploymentGetConfigDeploymentsMessages = {
1260
+ /**
1261
+ * The role of the prompt message
1262
+ */
1263
+ role: DeploymentGetConfigRole;
1264
+ /**
1265
+ * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
1266
+ */
1267
+ content:
1268
+ | string
1269
+ | Array<
1270
+ DeploymentGetConfig21 | DeploymentGetConfig22 | DeploymentGetConfig23
1271
+ >
1272
+ | null;
1273
+ toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
1274
+ toolCallId?: string | null | undefined;
1275
+ };
1276
+
1277
+ /**
1278
+ * Only supported on `image` models.
1279
+ */
1280
+ export const DeploymentGetConfigFormat = {
1281
+ Url: "url",
1282
+ B64Json: "b64_json",
1283
+ Text: "text",
1284
+ JsonObject: "json_object",
1285
+ } as const;
1286
+ /**
1287
+ * Only supported on `image` models.
1288
+ */
1289
+ export type DeploymentGetConfigFormat = ClosedEnum<
1290
+ typeof DeploymentGetConfigFormat
1291
+ >;
1292
+
1293
+ export const ResponseFormat6 = {
1294
+ Json: "json",
1295
+ Text: "text",
1296
+ Srt: "srt",
1297
+ VerboseJson: "verbose_json",
1298
+ Vtt: "vtt",
1299
+ } as const;
1300
+ export type ResponseFormat6 = ClosedEnum<typeof ResponseFormat6>;
1301
+
1302
+ export const ResponseFormat5 = {
1303
+ Url: "url",
1304
+ Base64Json: "base64_json",
1305
+ } as const;
1306
+ export type ResponseFormat5 = ClosedEnum<typeof ResponseFormat5>;
1307
+
1308
+ export const ResponseFormat4 = {
1309
+ Mp3: "mp3",
1310
+ Opus: "opus",
1311
+ Aac: "aac",
1312
+ Flac: "flac",
1313
+ Wav: "wav",
1314
+ Pcm: "pcm",
1315
+ } as const;
1316
+ export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
1317
+
1318
+ export const DeploymentGetConfigResponseFormatDeploymentsType = {
1319
+ Text: "text",
1320
+ } as const;
1321
+ export type DeploymentGetConfigResponseFormatDeploymentsType = ClosedEnum<
1322
+ typeof DeploymentGetConfigResponseFormatDeploymentsType
1323
+ >;
1324
+
1325
+ export type ResponseFormat3 = {
1326
+ type: DeploymentGetConfigResponseFormatDeploymentsType;
1327
+ };
1328
+
1329
+ export const DeploymentGetConfigResponseFormatType = {
1330
+ JsonObject: "json_object",
1331
+ } as const;
1332
+ export type DeploymentGetConfigResponseFormatType = ClosedEnum<
1333
+ typeof DeploymentGetConfigResponseFormatType
1334
+ >;
1335
+
1336
+ export type ResponseFormat2 = {
1337
+ type: DeploymentGetConfigResponseFormatType;
1338
+ };
1339
+
1340
+ export const DeploymentGetConfigResponseFormatDeploymentsResponseType = {
1341
+ JsonSchema: "json_schema",
1342
+ } as const;
1343
+ export type DeploymentGetConfigResponseFormatDeploymentsResponseType =
1344
+ ClosedEnum<typeof DeploymentGetConfigResponseFormatDeploymentsResponseType>;
1345
+
1346
+ export type DeploymentGetConfigResponseFormatJsonSchema = {
1347
+ name: string;
1348
+ description?: string | undefined;
1349
+ strict?: boolean | undefined;
1350
+ schema: { [k: string]: any };
1351
+ };
1352
+
1353
+ export type ResponseFormat1 = {
1354
+ type: DeploymentGetConfigResponseFormatDeploymentsResponseType;
1355
+ displayName?: string | undefined;
1356
+ jsonSchema: DeploymentGetConfigResponseFormatJsonSchema;
1357
+ };
1358
+
1359
+ /**
1360
+ * An object specifying the format that the model must output.
1361
+ *
1362
+ * @remarks
1363
+ *
1364
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1365
+ *
1366
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1367
+ *
1368
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
1369
+ */
1370
+ export type DeploymentGetConfigResponseFormat =
1371
+ | ResponseFormat1
1372
+ | ResponseFormat2
1373
+ | ResponseFormat3
1374
+ | ResponseFormat4
1375
+ | ResponseFormat5
1376
+ | ResponseFormat6;
1377
+
1378
+ /**
1379
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1380
+ */
1381
+ export const PhotoRealVersion = {
1382
+ V1: "v1",
1383
+ V2: "v2",
1384
+ } as const;
1385
+ /**
1386
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1387
+ */
1388
+ export type PhotoRealVersion = ClosedEnum<typeof PhotoRealVersion>;
1389
+
1390
+ /**
1391
+ * The format to return the embeddings
1392
+ */
1393
+ export const DeploymentGetConfigEncodingFormat = {
1394
+ Float: "float",
1395
+ Base64: "base64",
1396
+ } as const;
1397
+ /**
1398
+ * The format to return the embeddings
1399
+ */
1400
+ export type DeploymentGetConfigEncodingFormat = ClosedEnum<
1401
+ typeof DeploymentGetConfigEncodingFormat
1402
+ >;
1403
+
1404
+ /**
1405
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1406
+ */
1407
+ export const DeploymentGetConfigReasoningEffort = {
1408
+ None: "none",
1409
+ Disable: "disable",
1410
+ Minimal: "minimal",
1411
+ Low: "low",
1412
+ Medium: "medium",
1413
+ High: "high",
1414
+ } as const;
1415
+ /**
1416
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1417
+ */
1418
+ export type DeploymentGetConfigReasoningEffort = ClosedEnum<
1419
+ typeof DeploymentGetConfigReasoningEffort
1420
+ >;
1421
+
1422
+ /**
1423
+ * Controls the verbosity of the model output.
1424
+ */
1425
+ export const DeploymentGetConfigVerbosity = {
1426
+ Low: "low",
1427
+ Medium: "medium",
1428
+ High: "high",
1429
+ } as const;
1430
+ /**
1431
+ * Controls the verbosity of the model output.
1432
+ */
1433
+ export type DeploymentGetConfigVerbosity = ClosedEnum<
1434
+ typeof DeploymentGetConfigVerbosity
1435
+ >;
1436
+
1437
+ /**
1438
+ * The level of thinking to use for the model. Only supported by `Google AI`
1439
+ */
1440
+ export const ThinkingLevel = {
1441
+ Low: "low",
1442
+ High: "high",
1443
+ } as const;
1444
+ /**
1445
+ * The level of thinking to use for the model. Only supported by `Google AI`
1446
+ */
1447
+ export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
1448
+
1449
+ /**
1450
+ * Model Parameters: Not all parameters apply to every model
1451
+ */
1452
+ export type DeploymentGetConfigParameters = {
1453
+ /**
1454
+ * Only supported on `chat` and `completion` models.
1455
+ */
1456
+ temperature?: number | undefined;
1457
+ /**
1458
+ * Only supported on `chat` and `completion` models.
1459
+ */
1460
+ maxTokens?: number | undefined;
1461
+ /**
1462
+ * Only supported on `chat` and `completion` models.
1463
+ */
1464
+ topK?: number | undefined;
1465
+ /**
1466
+ * Only supported on `chat` and `completion` models.
1467
+ */
1468
+ topP?: number | undefined;
1469
+ /**
1470
+ * Only supported on `chat` and `completion` models.
1471
+ */
1472
+ frequencyPenalty?: number | undefined;
1473
+ /**
1474
+ * Only supported on `chat` and `completion` models.
1475
+ */
1476
+ presencePenalty?: number | undefined;
1477
+ /**
1478
+ * Only supported on `image` models.
1479
+ */
1480
+ numImages?: number | undefined;
1481
+ /**
1482
+ * Best effort deterministic seed for the model. Currently only OpenAI models support these
1483
+ */
1484
+ seed?: number | undefined;
1485
+ /**
1486
+ * Only supported on `image` models.
1487
+ */
1488
+ format?: DeploymentGetConfigFormat | undefined;
1489
+ /**
1490
+ * Only supported on `image` models.
1491
+ */
1492
+ dimensions?: string | undefined;
1493
+ /**
1494
+ * Only supported on `image` models.
1495
+ */
1496
+ quality?: string | undefined;
1497
+ /**
1498
+ * Only supported on `image` models.
1499
+ */
1500
+ style?: string | undefined;
1501
+ /**
1502
+ * An object specifying the format that the model must output.
1503
+ *
1504
+ * @remarks
1505
+ *
1506
+ * Setting to `{ "type": "json_schema", "json_schema": {...} }` enables Structured Outputs which ensures the model will match your supplied JSON schema
1507
+ *
1508
+ * Setting to `{ "type": "json_object" }` enables JSON mode, which ensures the message the model generates is valid JSON.
1509
+ *
1510
+ * Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
1511
+ */
1512
+ responseFormat?:
1513
+ | ResponseFormat1
1514
+ | ResponseFormat2
1515
+ | ResponseFormat3
1516
+ | ResponseFormat4
1517
+ | ResponseFormat5
1518
+ | ResponseFormat6
1519
+ | null
1520
+ | undefined;
1521
+ /**
1522
+ * The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
1523
+ */
1524
+ photoRealVersion?: PhotoRealVersion | undefined;
1525
+ /**
1526
+ * The format to return the embeddings
1527
+ */
1528
+ encodingFormat?: DeploymentGetConfigEncodingFormat | undefined;
1529
+ /**
1530
+ * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
1531
+ */
1532
+ reasoningEffort?: DeploymentGetConfigReasoningEffort | undefined;
1533
+ /**
1534
+ * Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
1535
+ */
1536
+ budgetTokens?: number | undefined;
1537
+ /**
1538
+ * Controls the verbosity of the model output.
1539
+ */
1540
+ verbosity?: DeploymentGetConfigVerbosity | undefined;
1541
+ /**
1542
+ * The level of thinking to use for the model. Only supported by `Google AI`
1543
+ */
1544
+ thinkingLevel?: ThinkingLevel | undefined;
1545
+ };
1546
+
1547
+ /**
1548
+ * The type of the tool. Currently, only `function` is supported.
1549
+ */
1550
+ export const DeploymentGetConfigDeploymentsType = {
1551
+ Function: "function",
1552
+ } as const;
1553
+ /**
1554
+ * The type of the tool. Currently, only `function` is supported.
1555
+ */
1556
+ export type DeploymentGetConfigDeploymentsType = ClosedEnum<
1557
+ typeof DeploymentGetConfigDeploymentsType
1558
+ >;
1559
+
1560
+ export type DeploymentGetConfigFunction = {
1561
+ /**
1562
+ * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
1563
+ */
1564
+ name: string;
1565
+ /**
1566
+ * A description of what the function does, used by the model to choose when and how to call the function.
1567
+ */
1568
+ description?: string | undefined;
1569
+ /**
1570
+ * The parameters the functions accepts, described as a JSON Schema object.
1571
+ *
1572
+ * @remarks
1573
+ *
1574
+ * Omitting `parameters` defines a function with an empty parameter list.
1575
+ */
1576
+ parameters?: { [k: string]: any } | undefined;
1577
+ };
1578
+
1579
+ export type DeploymentGetConfigTools = {
1580
+ /**
1581
+ * The type of the tool. Currently, only `function` is supported.
1582
+ */
1583
+ type: DeploymentGetConfigDeploymentsType;
1584
+ function: DeploymentGetConfigFunction;
1585
+ };
1586
+
1587
+ /**
1588
+ * The deployment configuration
1589
+ */
1590
+ export type DeploymentGetConfigResponseBody = {
1591
+ /**
1592
+ * A unique identifier for the response. Can be used to add metrics to the transaction.
1593
+ */
1594
+ id: string;
1595
+ /**
1596
+ * The provider of the model
1597
+ */
1598
+ provider: string;
1599
+ /**
1600
+ * The model of the configuration
1601
+ */
1602
+ model: string;
1603
+ /**
1604
+ * The type of the model. Current `chat`,`completion` and `image` are supported
1605
+ */
1606
+ type?: DeploymentGetConfigType | undefined;
1607
+ /**
1608
+ * The current version of the deployment
1609
+ */
1610
+ version: string;
1611
+ messages: Array<DeploymentGetConfigDeploymentsMessages>;
1612
+ /**
1613
+ * Model Parameters: Not all parameters apply to every model
1614
+ */
1615
+ parameters: DeploymentGetConfigParameters;
1616
+ /**
1617
+ * A list of tools the model may call. Currently, only functions are supported as a tool. Use this to provide a list of functions the model may generate JSON inputs for.
1618
+ */
1619
+ tools?: Array<DeploymentGetConfigTools> | undefined;
1620
+ };
1621
+
1622
+ /** @internal */
1623
+ export type DeploymentGetConfigContentDeployments2$Outbound =
1624
+ components.TextContentPartSchema$Outbound;
1625
+
1626
+ /** @internal */
1627
+ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1628
+ DeploymentGetConfigContentDeployments2$Outbound,
1629
+ z.ZodTypeDef,
1630
+ DeploymentGetConfigContentDeployments2
1631
+ > = components.TextContentPartSchema$outboundSchema;
1632
+
1633
+ export function deploymentGetConfigContentDeployments2ToJSON(
1634
+ deploymentGetConfigContentDeployments2:
1635
+ DeploymentGetConfigContentDeployments2,
1636
+ ): string {
1637
+ return JSON.stringify(
1638
+ DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1639
+ deploymentGetConfigContentDeployments2,
1640
+ ),
1641
+ );
1642
+ }
1643
+
1644
+ /** @internal */
1645
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1646
+ | string
1647
+ | Array<components.TextContentPartSchema$Outbound>;
1648
+
1649
+ /** @internal */
1650
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1651
+ z.ZodType<
1652
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1653
+ z.ZodTypeDef,
1654
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1655
+ > = z.union([
1656
+ z.string(),
1657
+ z.array(components.TextContentPartSchema$outboundSchema),
1658
+ ]);
1659
+
1660
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1661
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1662
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1663
+ ): string {
1664
+ return JSON.stringify(
1665
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1666
+ .parse(
1667
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1668
+ ),
1669
+ );
1670
+ }
1671
+
1672
+ /** @internal */
1673
+ export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
1674
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1675
+ DeploymentGetConfigPrefixMessagesType,
1676
+ );
1677
+
1678
+ /** @internal */
1679
+ export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1680
+ typeof PrefixMessagesTtl
1681
+ > = z.nativeEnum(PrefixMessagesTtl);
1682
+
1683
+ /** @internal */
1684
+ export type PrefixMessagesCacheControl$Outbound = {
1685
+ type: string;
1686
+ ttl: string;
1687
+ };
1688
+
1689
+ /** @internal */
1690
+ export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
1691
+ PrefixMessagesCacheControl$Outbound,
1692
+ z.ZodTypeDef,
1693
+ PrefixMessagesCacheControl
1694
+ > = z.object({
1695
+ type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
1696
+ ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
1697
+ });
1698
+
1699
+ export function prefixMessagesCacheControlToJSON(
1700
+ prefixMessagesCacheControl: PrefixMessagesCacheControl,
1701
+ ): string {
1702
+ return JSON.stringify(
1703
+ PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
1704
+ );
1705
+ }
1706
+
1707
+ /** @internal */
1708
+ export type ToolMessage$Outbound = {
1709
+ role: "tool";
1710
+ content: string | Array<components.TextContentPartSchema$Outbound>;
1711
+ tool_call_id: string | null;
1712
+ cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
1713
+ };
1714
+
1715
+ /** @internal */
1716
+ export const ToolMessage$outboundSchema: z.ZodType<
1717
+ ToolMessage$Outbound,
1718
+ z.ZodTypeDef,
1719
+ ToolMessage
1720
+ > = z.object({
1721
+ role: z.literal("tool"),
1722
+ content: z.union([
1723
+ z.string(),
1724
+ z.array(components.TextContentPartSchema$outboundSchema),
1725
+ ]),
1726
+ toolCallId: z.nullable(z.string()),
1727
+ cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
1728
+ .optional(),
1729
+ }).transform((v) => {
1730
+ return remap$(v, {
1731
+ toolCallId: "tool_call_id",
1732
+ cacheControl: "cache_control",
1733
+ });
1734
+ });
1735
+
1736
+ export function toolMessageToJSON(toolMessage: ToolMessage): string {
1737
+ return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1738
+ }
1739
+
1740
+ /** @internal */
1741
+ export type DeploymentGetConfigContent2$Outbound =
1742
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
1743
+ | components.RefusalPartSchema$Outbound
1744
+ | components.ReasoningPartSchema$Outbound
1745
+ | components.RedactedReasoningPartSchema$Outbound;
1746
+
1747
+ /** @internal */
1748
+ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1749
+ DeploymentGetConfigContent2$Outbound,
1750
+ z.ZodTypeDef,
1751
+ DeploymentGetConfigContent2
1752
+ > = z.union([
1753
+ components.TextContentPartSchema$outboundSchema.and(
1754
+ z.object({ type: z.literal("text") }),
1755
+ ),
1756
+ components.RefusalPartSchema$outboundSchema,
1757
+ components.ReasoningPartSchema$outboundSchema,
1758
+ components.RedactedReasoningPartSchema$outboundSchema,
1759
+ ]);
1760
+
1761
+ export function deploymentGetConfigContent2ToJSON(
1762
+ deploymentGetConfigContent2: DeploymentGetConfigContent2,
1763
+ ): string {
1764
+ return JSON.stringify(
1765
+ DeploymentGetConfigContent2$outboundSchema.parse(
1766
+ deploymentGetConfigContent2,
1767
+ ),
1768
+ );
1769
+ }
1770
+
1771
+ /** @internal */
1772
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
1773
+ | string
1774
+ | Array<
1775
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
1776
+ | components.RefusalPartSchema$Outbound
1777
+ | components.ReasoningPartSchema$Outbound
1778
+ | components.RedactedReasoningPartSchema$Outbound
1779
+ >;
1780
+
1781
+ /** @internal */
1782
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
1783
+ z.ZodType<
1784
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
1785
+ z.ZodTypeDef,
1786
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
1787
+ > = z.union([
1788
+ z.string(),
1789
+ z.array(
1790
+ z.union([
1791
+ components.TextContentPartSchema$outboundSchema.and(
1792
+ z.object({ type: z.literal("text") }),
1793
+ ),
1794
+ components.RefusalPartSchema$outboundSchema,
1795
+ components.ReasoningPartSchema$outboundSchema,
1796
+ components.RedactedReasoningPartSchema$outboundSchema,
1797
+ ]),
1798
+ ),
1799
+ ]);
1800
+
1801
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
1802
+ deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
1803
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
1804
+ ): string {
1805
+ return JSON.stringify(
1806
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
1807
+ .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
1808
+ );
1809
+ }
1810
+
1811
+ /** @internal */
1812
+ export type Audio$Outbound = {
1813
+ id: string;
1814
+ };
1815
+
1816
+ /** @internal */
1817
+ export const Audio$outboundSchema: z.ZodType<
1818
+ Audio$Outbound,
1819
+ z.ZodTypeDef,
1820
+ Audio
1821
+ > = z.object({
1822
+ id: z.string(),
1823
+ });
1824
+
1825
+ export function audioToJSON(audio: Audio): string {
1826
+ return JSON.stringify(Audio$outboundSchema.parse(audio));
1827
+ }
1828
+
1829
+ /** @internal */
1830
+ export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1831
+ typeof PrefixMessagesType
1832
+ > = z.nativeEnum(PrefixMessagesType);
1833
+
1834
+ /** @internal */
1835
+ export type PrefixMessagesFunction$Outbound = {
1836
+ name?: string | undefined;
1837
+ arguments?: string | undefined;
1838
+ };
1839
+
1840
+ /** @internal */
1841
+ export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1842
+ PrefixMessagesFunction$Outbound,
1843
+ z.ZodTypeDef,
1844
+ PrefixMessagesFunction
1845
+ > = z.object({
1846
+ name: z.string().optional(),
1847
+ arguments: z.string().optional(),
1848
+ });
1849
+
1850
+ export function prefixMessagesFunctionToJSON(
1851
+ prefixMessagesFunction: PrefixMessagesFunction,
1852
+ ): string {
1853
+ return JSON.stringify(
1854
+ PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1855
+ );
1856
+ }
1857
+
1858
+ /** @internal */
1859
+ export type PrefixMessagesToolCalls$Outbound = {
1860
+ id: string;
1861
+ type: string;
1862
+ function: PrefixMessagesFunction$Outbound;
1863
+ thought_signature?: string | undefined;
1864
+ };
1865
+
1866
+ /** @internal */
1867
+ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
1868
+ PrefixMessagesToolCalls$Outbound,
1869
+ z.ZodTypeDef,
1870
+ PrefixMessagesToolCalls
1871
+ > = z.object({
1872
+ id: z.string(),
1873
+ type: PrefixMessagesType$outboundSchema,
1874
+ function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1875
+ thoughtSignature: z.string().optional(),
1876
+ }).transform((v) => {
1877
+ return remap$(v, {
1878
+ thoughtSignature: "thought_signature",
1879
+ });
1880
+ });
1881
+
1882
+ export function prefixMessagesToolCallsToJSON(
1883
+ prefixMessagesToolCalls: PrefixMessagesToolCalls,
1884
+ ): string {
1885
+ return JSON.stringify(
1886
+ PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
1887
+ );
1888
+ }
1889
+
1890
+ /** @internal */
1891
+ export type AssistantMessage$Outbound = {
1892
+ content?:
1893
+ | string
1894
+ | Array<
1895
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
1896
+ | components.RefusalPartSchema$Outbound
1897
+ | components.ReasoningPartSchema$Outbound
1898
+ | components.RedactedReasoningPartSchema$Outbound
1899
+ >
1900
+ | null
1901
+ | undefined;
1902
+ refusal?: string | null | undefined;
1903
+ role: "assistant";
1904
+ name?: string | undefined;
1905
+ audio?: Audio$Outbound | null | undefined;
1906
+ tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
1907
+ };
1908
+
1909
+ /** @internal */
1910
+ export const AssistantMessage$outboundSchema: z.ZodType<
1911
+ AssistantMessage$Outbound,
1912
+ z.ZodTypeDef,
1913
+ AssistantMessage
1914
+ > = z.object({
1915
+ content: z.nullable(
1916
+ z.union([
1917
+ z.string(),
1918
+ z.array(
1919
+ z.union([
1920
+ components.TextContentPartSchema$outboundSchema.and(
1921
+ z.object({ type: z.literal("text") }),
1922
+ ),
1923
+ components.RefusalPartSchema$outboundSchema,
1924
+ components.ReasoningPartSchema$outboundSchema,
1925
+ components.RedactedReasoningPartSchema$outboundSchema,
1926
+ ]),
1927
+ ),
1928
+ ]),
1929
+ ).optional(),
1930
+ refusal: z.nullable(z.string()).optional(),
1931
+ role: z.literal("assistant"),
1932
+ name: z.string().optional(),
1933
+ audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1934
+ toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
1935
+ .optional(),
1936
+ }).transform((v) => {
1937
+ return remap$(v, {
1938
+ toolCalls: "tool_calls",
1939
+ });
1940
+ });
1941
+
1942
+ export function assistantMessageToJSON(
1943
+ assistantMessage: AssistantMessage,
1944
+ ): string {
1945
+ return JSON.stringify(
1946
+ AssistantMessage$outboundSchema.parse(assistantMessage),
1947
+ );
1948
+ }
1949
+
1950
+ /** @internal */
1951
+ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
1952
+ z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> = z.nativeEnum(
1953
+ DeploymentGetConfig2DeploymentsType,
1954
+ );
1955
+
1956
+ /** @internal */
1957
+ export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
1958
+ Ttl,
1959
+ );
1960
+
1961
+ /** @internal */
1962
+ export type CacheControl$Outbound = {
1963
+ type: string;
1964
+ ttl: string;
1965
+ };
1966
+
1967
+ /** @internal */
1968
+ export const CacheControl$outboundSchema: z.ZodType<
1969
+ CacheControl$Outbound,
1970
+ z.ZodTypeDef,
1971
+ CacheControl
1972
+ > = z.object({
1973
+ type: DeploymentGetConfig2DeploymentsType$outboundSchema,
1974
+ ttl: Ttl$outboundSchema.default("5m"),
1975
+ });
1976
+
1977
+ export function cacheControlToJSON(cacheControl: CacheControl): string {
1978
+ return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
1979
+ }
1980
+
1981
+ /** @internal */
1982
+ export type Four$Outbound = {
1983
+ type: "file";
1984
+ cache_control?: CacheControl$Outbound | undefined;
1985
+ file: components.FileContentPartSchema$Outbound;
1986
+ };
1987
+
1988
+ /** @internal */
1989
+ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
1990
+ z.object({
1991
+ type: z.literal("file"),
1992
+ cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
1993
+ file: components.FileContentPartSchema$outboundSchema,
1994
+ }).transform((v) => {
1995
+ return remap$(v, {
1996
+ cacheControl: "cache_control",
1997
+ });
1998
+ });
1999
+
2000
+ export function fourToJSON(four: Four): string {
2001
+ return JSON.stringify(Four$outboundSchema.parse(four));
2002
+ }
2003
+
2004
+ /** @internal */
2005
+ export type Content2$Outbound =
2006
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2007
+ | components.ImageContentPartSchema$Outbound
2008
+ | components.AudioContentPartSchema$Outbound
2009
+ | Four$Outbound;
2010
+
2011
+ /** @internal */
2012
+ export const Content2$outboundSchema: z.ZodType<
2013
+ Content2$Outbound,
2014
+ z.ZodTypeDef,
2015
+ Content2
2016
+ > = z.union([
2017
+ components.TextContentPartSchema$outboundSchema.and(
2018
+ z.object({ type: z.literal("text") }),
2019
+ ),
2020
+ components.ImageContentPartSchema$outboundSchema,
2021
+ components.AudioContentPartSchema$outboundSchema,
2022
+ z.lazy(() => Four$outboundSchema),
2023
+ ]);
2024
+
2025
+ export function content2ToJSON(content2: Content2): string {
2026
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
2027
+ }
2028
+
2029
+ /** @internal */
2030
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
2031
+ | string
2032
+ | Array<
2033
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2034
+ | components.ImageContentPartSchema$Outbound
2035
+ | components.AudioContentPartSchema$Outbound
2036
+ | Four$Outbound
2037
+ >;
2038
+
2039
+ /** @internal */
2040
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2041
+ z.ZodType<
2042
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2043
+ z.ZodTypeDef,
2044
+ DeploymentGetConfigPrefixMessagesDeploymentsContent
2045
+ > = z.union([
2046
+ z.string(),
2047
+ z.array(
2048
+ z.union([
2049
+ components.TextContentPartSchema$outboundSchema.and(
2050
+ z.object({ type: z.literal("text") }),
2051
+ ),
2052
+ components.ImageContentPartSchema$outboundSchema,
2053
+ components.AudioContentPartSchema$outboundSchema,
2054
+ z.lazy(() => Four$outboundSchema),
2055
+ ]),
2056
+ ),
2057
+ ]);
2058
+
2059
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2060
+ deploymentGetConfigPrefixMessagesDeploymentsContent:
2061
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
2062
+ ): string {
2063
+ return JSON.stringify(
2064
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2065
+ deploymentGetConfigPrefixMessagesDeploymentsContent,
2066
+ ),
2067
+ );
2068
+ }
2069
+
2070
+ /** @internal */
2071
+ export type UserMessage$Outbound = {
2072
+ role: "user";
2073
+ name?: string | undefined;
2074
+ content:
2075
+ | string
2076
+ | Array<
2077
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2078
+ | components.ImageContentPartSchema$Outbound
2079
+ | components.AudioContentPartSchema$Outbound
2080
+ | Four$Outbound
2081
+ >;
2082
+ };
2083
+
2084
+ /** @internal */
2085
+ export const UserMessage$outboundSchema: z.ZodType<
2086
+ UserMessage$Outbound,
2087
+ z.ZodTypeDef,
2088
+ UserMessage
2089
+ > = z.object({
2090
+ role: z.literal("user"),
2091
+ name: z.string().optional(),
2092
+ content: z.union([
2093
+ z.string(),
2094
+ z.array(
2095
+ z.union([
2096
+ components.TextContentPartSchema$outboundSchema.and(
2097
+ z.object({ type: z.literal("text") }),
2098
+ ),
2099
+ components.ImageContentPartSchema$outboundSchema,
2100
+ components.AudioContentPartSchema$outboundSchema,
2101
+ z.lazy(() => Four$outboundSchema),
2102
+ ]),
2103
+ ),
2104
+ ]),
2105
+ });
2106
+
2107
+ export function userMessageToJSON(userMessage: UserMessage): string {
2108
+ return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
2109
+ }
2110
+
2111
+ /** @internal */
2112
+ export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2113
+ | string
2114
+ | Array<components.TextContentPartSchema$Outbound>;
2115
+
2116
+ /** @internal */
2117
+ export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2118
+ DeploymentGetConfigPrefixMessagesContent$Outbound,
2119
+ z.ZodTypeDef,
2120
+ DeploymentGetConfigPrefixMessagesContent
2121
+ > = z.union([
2122
+ z.string(),
2123
+ z.array(components.TextContentPartSchema$outboundSchema),
2124
+ ]);
2125
+
2126
+ export function deploymentGetConfigPrefixMessagesContentToJSON(
2127
+ deploymentGetConfigPrefixMessagesContent:
2128
+ DeploymentGetConfigPrefixMessagesContent,
2129
+ ): string {
2130
+ return JSON.stringify(
2131
+ DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2132
+ deploymentGetConfigPrefixMessagesContent,
2133
+ ),
2134
+ );
2135
+ }
2136
+
2137
+ /** @internal */
2138
+ export type DeveloperMessage$Outbound = {
2139
+ role: "developer";
2140
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2141
+ name?: string | undefined;
2142
+ };
2143
+
2144
+ /** @internal */
2145
+ export const DeveloperMessage$outboundSchema: z.ZodType<
2146
+ DeveloperMessage$Outbound,
2147
+ z.ZodTypeDef,
2148
+ DeveloperMessage
2149
+ > = z.object({
2150
+ role: z.literal("developer"),
2151
+ content: z.union([
2152
+ z.string(),
2153
+ z.array(components.TextContentPartSchema$outboundSchema),
2154
+ ]),
2155
+ name: z.string().optional(),
2156
+ });
2157
+
2158
+ export function developerMessageToJSON(
2159
+ developerMessage: DeveloperMessage,
2160
+ ): string {
2161
+ return JSON.stringify(
2162
+ DeveloperMessage$outboundSchema.parse(developerMessage),
2163
+ );
2164
+ }
2165
+
2166
+ /** @internal */
2167
+ export type PrefixMessagesContent$Outbound =
2168
+ | string
2169
+ | Array<components.TextContentPartSchema$Outbound>;
2170
+
2171
+ /** @internal */
2172
+ export const PrefixMessagesContent$outboundSchema: z.ZodType<
2173
+ PrefixMessagesContent$Outbound,
2174
+ z.ZodTypeDef,
2175
+ PrefixMessagesContent
2176
+ > = z.union([
2177
+ z.string(),
2178
+ z.array(components.TextContentPartSchema$outboundSchema),
2179
+ ]);
2180
+
2181
+ export function prefixMessagesContentToJSON(
2182
+ prefixMessagesContent: PrefixMessagesContent,
2183
+ ): string {
2184
+ return JSON.stringify(
2185
+ PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2186
+ );
2187
+ }
2188
+
2189
+ /** @internal */
2190
+ export type SystemMessage$Outbound = {
2191
+ role: "system";
2192
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2193
+ name?: string | undefined;
2194
+ };
2195
+
2196
+ /** @internal */
2197
+ export const SystemMessage$outboundSchema: z.ZodType<
2198
+ SystemMessage$Outbound,
2199
+ z.ZodTypeDef,
2200
+ SystemMessage
2201
+ > = z.object({
2202
+ role: z.literal("system"),
2203
+ content: z.union([
2204
+ z.string(),
2205
+ z.array(components.TextContentPartSchema$outboundSchema),
2206
+ ]),
2207
+ name: z.string().optional(),
2208
+ });
2209
+
2210
+ export function systemMessageToJSON(systemMessage: SystemMessage): string {
2211
+ return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
2212
+ }
2213
+
2214
+ /** @internal */
2215
+ export type PrefixMessages$Outbound =
2216
+ | SystemMessage$Outbound
2217
+ | DeveloperMessage$Outbound
2218
+ | UserMessage$Outbound
2219
+ | AssistantMessage$Outbound
2220
+ | ToolMessage$Outbound;
2221
+
2222
+ /** @internal */
2223
+ export const PrefixMessages$outboundSchema: z.ZodType<
2224
+ PrefixMessages$Outbound,
2225
+ z.ZodTypeDef,
2226
+ PrefixMessages
2227
+ > = z.union([
2228
+ z.lazy(() => SystemMessage$outboundSchema),
2229
+ z.lazy(() => DeveloperMessage$outboundSchema),
2230
+ z.lazy(() => UserMessage$outboundSchema),
2231
+ z.lazy(() => AssistantMessage$outboundSchema),
2232
+ z.lazy(() => ToolMessage$outboundSchema),
2233
+ ]);
2234
+
2235
+ export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
2236
+ return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
2237
+ }
2238
+
2239
+ /** @internal */
2240
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2241
+ components.TextContentPartSchema$Outbound;
2242
+
2243
+ /** @internal */
2244
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2245
+ z.ZodType<
2246
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
2247
+ z.ZodTypeDef,
2248
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2249
+ > = components.TextContentPartSchema$outboundSchema;
2250
+
2251
+ export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2252
+ deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2253
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
2254
+ ): string {
2255
+ return JSON.stringify(
2256
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2257
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
2258
+ );
2259
+ }
2260
+
2261
+ /** @internal */
2262
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2263
+ | string
2264
+ | Array<components.TextContentPartSchema$Outbound>;
2265
+
2266
+ /** @internal */
2267
+ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2268
+ z.ZodType<
2269
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2270
+ z.ZodTypeDef,
2271
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
2272
+ > = z.union([
2273
+ z.string(),
2274
+ z.array(components.TextContentPartSchema$outboundSchema),
2275
+ ]);
2276
+
2277
+ export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
2278
+ deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
2279
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
2280
+ ): string {
2281
+ return JSON.stringify(
2282
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2283
+ .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
2284
+ );
2285
+ }
2286
+
2287
+ /** @internal */
2288
+ export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
2289
+ typeof DeploymentGetConfigMessagesType
2290
+ > = z.nativeEnum(DeploymentGetConfigMessagesType);
2291
+
2292
+ /** @internal */
2293
+ export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
2294
+ .nativeEnum(MessagesTtl);
2295
+
2296
+ /** @internal */
2297
+ export type MessagesCacheControl$Outbound = {
2298
+ type: string;
2299
+ ttl: string;
2300
+ };
2301
+
2302
+ /** @internal */
2303
+ export const MessagesCacheControl$outboundSchema: z.ZodType<
2304
+ MessagesCacheControl$Outbound,
2305
+ z.ZodTypeDef,
2306
+ MessagesCacheControl
2307
+ > = z.object({
2308
+ type: DeploymentGetConfigMessagesType$outboundSchema,
2309
+ ttl: MessagesTtl$outboundSchema.default("5m"),
2310
+ });
2311
+
2312
+ export function messagesCacheControlToJSON(
2313
+ messagesCacheControl: MessagesCacheControl,
2314
+ ): string {
2315
+ return JSON.stringify(
2316
+ MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
2317
+ );
2318
+ }
2319
+
2320
+ /** @internal */
2321
+ export type MessagesToolMessage$Outbound = {
2322
+ role: "tool";
2323
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2324
+ tool_call_id: string | null;
2325
+ cache_control?: MessagesCacheControl$Outbound | undefined;
2326
+ };
2327
+
2328
+ /** @internal */
2329
+ export const MessagesToolMessage$outboundSchema: z.ZodType<
2330
+ MessagesToolMessage$Outbound,
2331
+ z.ZodTypeDef,
2332
+ MessagesToolMessage
2333
+ > = z.object({
2334
+ role: z.literal("tool"),
2335
+ content: z.union([
2336
+ z.string(),
2337
+ z.array(components.TextContentPartSchema$outboundSchema),
2338
+ ]),
2339
+ toolCallId: z.nullable(z.string()),
2340
+ cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
2341
+ }).transform((v) => {
2342
+ return remap$(v, {
2343
+ toolCallId: "tool_call_id",
2344
+ cacheControl: "cache_control",
2345
+ });
2346
+ });
2347
+
2348
+ export function messagesToolMessageToJSON(
2349
+ messagesToolMessage: MessagesToolMessage,
2350
+ ): string {
2351
+ return JSON.stringify(
2352
+ MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
2353
+ );
2354
+ }
2355
+
2356
+ /** @internal */
2357
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2358
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2359
+ | components.RefusalPartSchema$Outbound
2360
+ | components.ReasoningPartSchema$Outbound
2361
+ | components.RedactedReasoningPartSchema$Outbound;
2362
+
2363
+ /** @internal */
2364
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
2365
+ z.ZodType<
2366
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
2367
+ z.ZodTypeDef,
2368
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2
2369
+ > = z.union([
2370
+ components.TextContentPartSchema$outboundSchema.and(
2371
+ z.object({ type: z.literal("text") }),
2372
+ ),
2373
+ components.RefusalPartSchema$outboundSchema,
2374
+ components.ReasoningPartSchema$outboundSchema,
2375
+ components.RedactedReasoningPartSchema$outboundSchema,
2376
+ ]);
2377
+
2378
+ export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2379
+ deploymentGetConfigContentDeploymentsRequestRequestBody2:
2380
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2,
2381
+ ): string {
2382
+ return JSON.stringify(
2383
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2384
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
2385
+ );
2386
+ }
2387
+
2388
+ /** @internal */
2389
+ export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
2390
+ | string
2391
+ | Array<
2392
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2393
+ | components.RefusalPartSchema$Outbound
2394
+ | components.ReasoningPartSchema$Outbound
2395
+ | components.RedactedReasoningPartSchema$Outbound
2396
+ >;
2397
+
2398
+ /** @internal */
2399
+ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
2400
+ z.ZodType<
2401
+ DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
2402
+ z.ZodTypeDef,
2403
+ DeploymentGetConfigMessagesDeploymentsRequestContent
2404
+ > = z.union([
2405
+ z.string(),
2406
+ z.array(
2407
+ z.union([
2408
+ components.TextContentPartSchema$outboundSchema.and(
2409
+ z.object({ type: z.literal("text") }),
2410
+ ),
2411
+ components.RefusalPartSchema$outboundSchema,
2412
+ components.ReasoningPartSchema$outboundSchema,
2413
+ components.RedactedReasoningPartSchema$outboundSchema,
2414
+ ]),
2415
+ ),
2416
+ ]);
2417
+
2418
+ export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
2419
+ deploymentGetConfigMessagesDeploymentsRequestContent:
2420
+ DeploymentGetConfigMessagesDeploymentsRequestContent,
2421
+ ): string {
2422
+ return JSON.stringify(
2423
+ DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
2424
+ deploymentGetConfigMessagesDeploymentsRequestContent,
2425
+ ),
2426
+ );
2427
+ }
2428
+
2429
+ /** @internal */
2430
+ export type MessagesAudio$Outbound = {
2431
+ id: string;
2432
+ };
2433
+
2434
+ /** @internal */
2435
+ export const MessagesAudio$outboundSchema: z.ZodType<
2436
+ MessagesAudio$Outbound,
2437
+ z.ZodTypeDef,
2438
+ MessagesAudio
2439
+ > = z.object({
2440
+ id: z.string(),
2441
+ });
2442
+
2443
+ export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
2444
+ return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
2445
+ }
2446
+
2447
+ /** @internal */
2448
+ export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2449
+ z.nativeEnum(MessagesType);
2450
+
2451
+ /** @internal */
2452
+ export type MessagesFunction$Outbound = {
2453
+ name?: string | undefined;
2454
+ arguments?: string | undefined;
2455
+ };
2456
+
2457
+ /** @internal */
2458
+ export const MessagesFunction$outboundSchema: z.ZodType<
2459
+ MessagesFunction$Outbound,
2460
+ z.ZodTypeDef,
2461
+ MessagesFunction
2462
+ > = z.object({
2463
+ name: z.string().optional(),
2464
+ arguments: z.string().optional(),
2465
+ });
2466
+
2467
+ export function messagesFunctionToJSON(
2468
+ messagesFunction: MessagesFunction,
2469
+ ): string {
2470
+ return JSON.stringify(
2471
+ MessagesFunction$outboundSchema.parse(messagesFunction),
2472
+ );
2473
+ }
2474
+
2475
+ /** @internal */
2476
+ export type MessagesToolCalls$Outbound = {
2477
+ id: string;
2478
+ type: string;
2479
+ function: MessagesFunction$Outbound;
2480
+ thought_signature?: string | undefined;
2481
+ };
2482
+
2483
+ /** @internal */
2484
+ export const MessagesToolCalls$outboundSchema: z.ZodType<
2485
+ MessagesToolCalls$Outbound,
2486
+ z.ZodTypeDef,
2487
+ MessagesToolCalls
2488
+ > = z.object({
2489
+ id: z.string(),
2490
+ type: MessagesType$outboundSchema,
2491
+ function: z.lazy(() => MessagesFunction$outboundSchema),
2492
+ thoughtSignature: z.string().optional(),
2493
+ }).transform((v) => {
2494
+ return remap$(v, {
2495
+ thoughtSignature: "thought_signature",
2496
+ });
2497
+ });
2498
+
2499
+ export function messagesToolCallsToJSON(
2500
+ messagesToolCalls: MessagesToolCalls,
2501
+ ): string {
2502
+ return JSON.stringify(
2503
+ MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2504
+ );
2505
+ }
2506
+
2507
+ /** @internal */
2508
+ export type MessagesAssistantMessage$Outbound = {
2509
+ content?:
2510
+ | string
2511
+ | Array<
2512
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2513
+ | components.RefusalPartSchema$Outbound
2514
+ | components.ReasoningPartSchema$Outbound
2515
+ | components.RedactedReasoningPartSchema$Outbound
2516
+ >
2517
+ | null
2518
+ | undefined;
2519
+ refusal?: string | null | undefined;
2520
+ role: "assistant";
2521
+ name?: string | undefined;
2522
+ audio?: MessagesAudio$Outbound | null | undefined;
2523
+ tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2524
+ };
2525
+
2526
+ /** @internal */
2527
+ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
2528
+ MessagesAssistantMessage$Outbound,
2529
+ z.ZodTypeDef,
2530
+ MessagesAssistantMessage
2531
+ > = z.object({
2532
+ content: z.nullable(
2533
+ z.union([
2534
+ z.string(),
2535
+ z.array(
2536
+ z.union([
2537
+ components.TextContentPartSchema$outboundSchema.and(
2538
+ z.object({ type: z.literal("text") }),
2539
+ ),
2540
+ components.RefusalPartSchema$outboundSchema,
2541
+ components.ReasoningPartSchema$outboundSchema,
2542
+ components.RedactedReasoningPartSchema$outboundSchema,
2543
+ ]),
2544
+ ),
2545
+ ]),
2546
+ ).optional(),
2547
+ refusal: z.nullable(z.string()).optional(),
2548
+ role: z.literal("assistant"),
2549
+ name: z.string().optional(),
2550
+ audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2551
+ toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2552
+ }).transform((v) => {
2553
+ return remap$(v, {
2554
+ toolCalls: "tool_calls",
2555
+ });
2556
+ });
2557
+
2558
+ export function messagesAssistantMessageToJSON(
2559
+ messagesAssistantMessage: MessagesAssistantMessage,
2560
+ ): string {
2561
+ return JSON.stringify(
2562
+ MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
2563
+ );
2564
+ }
2565
+
2566
+ /** @internal */
2567
+ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
2568
+ z.ZodNativeEnum<
2569
+ typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
2570
+ > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2571
+
2572
+ /** @internal */
2573
+ export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
2574
+ .nativeEnum(TwoTtl);
2575
+
2576
+ /** @internal */
2577
+ export type TwoCacheControl$Outbound = {
2578
+ type: string;
2579
+ ttl: string;
2580
+ };
2581
+
2582
+ /** @internal */
2583
+ export const TwoCacheControl$outboundSchema: z.ZodType<
2584
+ TwoCacheControl$Outbound,
2585
+ z.ZodTypeDef,
2586
+ TwoCacheControl
2587
+ > = z.object({
2588
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2589
+ ttl: TwoTtl$outboundSchema.default("5m"),
2590
+ });
2591
+
2592
+ export function twoCacheControlToJSON(
2593
+ twoCacheControl: TwoCacheControl,
2594
+ ): string {
2595
+ return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
2596
+ }
2597
+
2598
+ /** @internal */
2599
+ export type Two4$Outbound = {
2600
+ type: "file";
2601
+ cache_control?: TwoCacheControl$Outbound | undefined;
2602
+ file: components.FileContentPartSchema$Outbound;
2603
+ };
2604
+
2605
+ /** @internal */
2606
+ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
2607
+ z.object({
2608
+ type: z.literal("file"),
2609
+ cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
2610
+ file: components.FileContentPartSchema$outboundSchema,
2611
+ }).transform((v) => {
2612
+ return remap$(v, {
2613
+ cacheControl: "cache_control",
2614
+ });
2615
+ });
2616
+
2617
+ export function two4ToJSON(two4: Two4): string {
2618
+ return JSON.stringify(Two4$outboundSchema.parse(two4));
2619
+ }
2620
+
2621
+ /** @internal */
2622
+ export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
2623
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2624
+ | components.ImageContentPartSchema$Outbound
2625
+ | components.AudioContentPartSchema$Outbound
2626
+ | Two4$Outbound;
2627
+
2628
+ /** @internal */
2629
+ export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
2630
+ z.ZodType<
2631
+ DeploymentGetConfigContentDeploymentsRequest2$Outbound,
2632
+ z.ZodTypeDef,
2633
+ DeploymentGetConfigContentDeploymentsRequest2
2634
+ > = z.union([
2635
+ components.TextContentPartSchema$outboundSchema.and(
2636
+ z.object({ type: z.literal("text") }),
2637
+ ),
2638
+ components.ImageContentPartSchema$outboundSchema,
2639
+ components.AudioContentPartSchema$outboundSchema,
2640
+ z.lazy(() => Two4$outboundSchema),
2641
+ ]);
2642
+
2643
+ export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
2644
+ deploymentGetConfigContentDeploymentsRequest2:
2645
+ DeploymentGetConfigContentDeploymentsRequest2,
2646
+ ): string {
2647
+ return JSON.stringify(
2648
+ DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
2649
+ deploymentGetConfigContentDeploymentsRequest2,
2650
+ ),
2651
+ );
2652
+ }
2653
+
2654
+ /** @internal */
2655
+ export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
2656
+ | string
2657
+ | Array<
2658
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2659
+ | components.ImageContentPartSchema$Outbound
2660
+ | components.AudioContentPartSchema$Outbound
2661
+ | Two4$Outbound
2662
+ >;
2663
+
2664
+ /** @internal */
2665
+ export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
2666
+ z.ZodType<
2667
+ DeploymentGetConfigMessagesDeploymentsContent$Outbound,
2668
+ z.ZodTypeDef,
2669
+ DeploymentGetConfigMessagesDeploymentsContent
2670
+ > = z.union([
2671
+ z.string(),
2672
+ z.array(
2673
+ z.union([
2674
+ components.TextContentPartSchema$outboundSchema.and(
2675
+ z.object({ type: z.literal("text") }),
2676
+ ),
2677
+ components.ImageContentPartSchema$outboundSchema,
2678
+ components.AudioContentPartSchema$outboundSchema,
2679
+ z.lazy(() => Two4$outboundSchema),
2680
+ ]),
2681
+ ),
2682
+ ]);
2683
+
2684
+ export function deploymentGetConfigMessagesDeploymentsContentToJSON(
2685
+ deploymentGetConfigMessagesDeploymentsContent:
2686
+ DeploymentGetConfigMessagesDeploymentsContent,
2687
+ ): string {
2688
+ return JSON.stringify(
2689
+ DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
2690
+ deploymentGetConfigMessagesDeploymentsContent,
2691
+ ),
2692
+ );
2693
+ }
2694
+
2695
+ /** @internal */
2696
+ export type MessagesUserMessage$Outbound = {
2697
+ role: "user";
2698
+ name?: string | undefined;
2699
+ content:
2700
+ | string
2701
+ | Array<
2702
+ | (components.TextContentPartSchema$Outbound & { type: "text" })
2703
+ | components.ImageContentPartSchema$Outbound
2704
+ | components.AudioContentPartSchema$Outbound
2705
+ | Two4$Outbound
2706
+ >;
2707
+ };
2708
+
2709
+ /** @internal */
2710
+ export const MessagesUserMessage$outboundSchema: z.ZodType<
2711
+ MessagesUserMessage$Outbound,
2712
+ z.ZodTypeDef,
2713
+ MessagesUserMessage
2714
+ > = z.object({
2715
+ role: z.literal("user"),
2716
+ name: z.string().optional(),
2717
+ content: z.union([
2718
+ z.string(),
2719
+ z.array(
2720
+ z.union([
2721
+ components.TextContentPartSchema$outboundSchema.and(
2722
+ z.object({ type: z.literal("text") }),
2723
+ ),
2724
+ components.ImageContentPartSchema$outboundSchema,
2725
+ components.AudioContentPartSchema$outboundSchema,
2726
+ z.lazy(() => Two4$outboundSchema),
2727
+ ]),
2728
+ ),
2729
+ ]),
2730
+ });
2731
+
2732
+ export function messagesUserMessageToJSON(
2733
+ messagesUserMessage: MessagesUserMessage,
2734
+ ): string {
2735
+ return JSON.stringify(
2736
+ MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
2737
+ );
2738
+ }
2739
+
2740
+ /** @internal */
2741
+ export type DeploymentGetConfigMessagesContent$Outbound =
2742
+ | string
2743
+ | Array<components.TextContentPartSchema$Outbound>;
2744
+
2745
+ /** @internal */
2746
+ export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
2747
+ DeploymentGetConfigMessagesContent$Outbound,
2748
+ z.ZodTypeDef,
2749
+ DeploymentGetConfigMessagesContent
2750
+ > = z.union([
2751
+ z.string(),
2752
+ z.array(components.TextContentPartSchema$outboundSchema),
2753
+ ]);
2754
+
2755
+ export function deploymentGetConfigMessagesContentToJSON(
2756
+ deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
2757
+ ): string {
2758
+ return JSON.stringify(
2759
+ DeploymentGetConfigMessagesContent$outboundSchema.parse(
2760
+ deploymentGetConfigMessagesContent,
2761
+ ),
2762
+ );
2763
+ }
2764
+
2765
+ /** @internal */
2766
+ export type MessagesDeveloperMessage$Outbound = {
2767
+ role: "developer";
2768
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2769
+ name?: string | undefined;
2770
+ };
2771
+
2772
+ /** @internal */
2773
+ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
2774
+ MessagesDeveloperMessage$Outbound,
2775
+ z.ZodTypeDef,
2776
+ MessagesDeveloperMessage
2777
+ > = z.object({
2778
+ role: z.literal("developer"),
2779
+ content: z.union([
2780
+ z.string(),
2781
+ z.array(components.TextContentPartSchema$outboundSchema),
2782
+ ]),
2783
+ name: z.string().optional(),
2784
+ });
2785
+
2786
+ export function messagesDeveloperMessageToJSON(
2787
+ messagesDeveloperMessage: MessagesDeveloperMessage,
2788
+ ): string {
2789
+ return JSON.stringify(
2790
+ MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
2791
+ );
2792
+ }
2793
+
2794
+ /** @internal */
2795
+ export type MessagesContent$Outbound =
2796
+ | string
2797
+ | Array<components.TextContentPartSchema$Outbound>;
2798
+
2799
+ /** @internal */
2800
+ export const MessagesContent$outboundSchema: z.ZodType<
2801
+ MessagesContent$Outbound,
2802
+ z.ZodTypeDef,
2803
+ MessagesContent
2804
+ > = z.union([
2805
+ z.string(),
2806
+ z.array(components.TextContentPartSchema$outboundSchema),
2807
+ ]);
2808
+
2809
+ export function messagesContentToJSON(
2810
+ messagesContent: MessagesContent,
2811
+ ): string {
2812
+ return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
2813
+ }
2814
+
2815
+ /** @internal */
2816
+ export type MessagesSystemMessage$Outbound = {
2817
+ role: "system";
2818
+ content: string | Array<components.TextContentPartSchema$Outbound>;
2819
+ name?: string | undefined;
2820
+ };
2821
+
2822
+ /** @internal */
2823
+ export const MessagesSystemMessage$outboundSchema: z.ZodType<
2824
+ MessagesSystemMessage$Outbound,
2825
+ z.ZodTypeDef,
2826
+ MessagesSystemMessage
2827
+ > = z.object({
2828
+ role: z.literal("system"),
2829
+ content: z.union([
2830
+ z.string(),
2831
+ z.array(components.TextContentPartSchema$outboundSchema),
2832
+ ]),
2833
+ name: z.string().optional(),
2834
+ });
2835
+
2836
+ export function messagesSystemMessageToJSON(
2837
+ messagesSystemMessage: MessagesSystemMessage,
2838
+ ): string {
2839
+ return JSON.stringify(
2840
+ MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
2841
+ );
2842
+ }
2843
+
2844
+ /** @internal */
2845
+ export type DeploymentGetConfigMessages$Outbound =
2846
+ | MessagesSystemMessage$Outbound
2847
+ | MessagesDeveloperMessage$Outbound
2848
+ | MessagesUserMessage$Outbound
2849
+ | MessagesAssistantMessage$Outbound
2850
+ | MessagesToolMessage$Outbound;
2851
+
2852
+ /** @internal */
2853
+ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
2854
+ DeploymentGetConfigMessages$Outbound,
2855
+ z.ZodTypeDef,
2856
+ DeploymentGetConfigMessages
2857
+ > = z.union([
2858
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
2859
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
2860
+ z.lazy(() => MessagesUserMessage$outboundSchema),
2861
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
2862
+ z.lazy(() => MessagesToolMessage$outboundSchema),
2863
+ ]);
2864
+
2865
+ export function deploymentGetConfigMessagesToJSON(
2866
+ deploymentGetConfigMessages: DeploymentGetConfigMessages,
2867
+ ): string {
2868
+ return JSON.stringify(
2869
+ DeploymentGetConfigMessages$outboundSchema.parse(
2870
+ deploymentGetConfigMessages,
2871
+ ),
2872
+ );
2873
+ }
2874
+
2875
+ /** @internal */
2876
+ export type Metadata$Outbound = {
2877
+ file_name?: string | undefined;
2878
+ file_type?: string | undefined;
2879
+ page_number?: number | undefined;
2880
+ };
2881
+
2882
+ /** @internal */
2883
+ export const Metadata$outboundSchema: z.ZodType<
2884
+ Metadata$Outbound,
2885
+ z.ZodTypeDef,
2886
+ Metadata
2887
+ > = z.object({
2888
+ fileName: z.string().optional(),
2889
+ fileType: z.string().optional(),
2890
+ pageNumber: z.number().optional(),
2891
+ }).transform((v) => {
2892
+ return remap$(v, {
2893
+ fileName: "file_name",
2894
+ fileType: "file_type",
2895
+ pageNumber: "page_number",
2896
+ });
2897
+ });
2898
+
2899
+ export function metadataToJSON(metadata: Metadata): string {
2900
+ return JSON.stringify(Metadata$outboundSchema.parse(metadata));
2901
+ }
2902
+
2903
+ /** @internal */
2904
+ export type Documents$Outbound = {
2905
+ text: string;
2906
+ metadata?: Metadata$Outbound | undefined;
2907
+ };
2908
+
2909
+ /** @internal */
2910
+ export const Documents$outboundSchema: z.ZodType<
2911
+ Documents$Outbound,
2912
+ z.ZodTypeDef,
2913
+ Documents
2914
+ > = z.object({
2915
+ text: z.string(),
2916
+ metadata: z.lazy(() => Metadata$outboundSchema).optional(),
2917
+ });
2918
+
2919
+ export function documentsToJSON(documents: Documents): string {
2920
+ return JSON.stringify(Documents$outboundSchema.parse(documents));
2921
+ }
2922
+
2923
+ /** @internal */
2924
+ export type InvokeOptions$Outbound = {
2925
+ include_retrievals: boolean;
2926
+ include_usage: boolean;
2927
+ mock_response?: string | undefined;
2928
+ };
2929
+
2930
+ /** @internal */
2931
+ export const InvokeOptions$outboundSchema: z.ZodType<
2932
+ InvokeOptions$Outbound,
2933
+ z.ZodTypeDef,
2934
+ InvokeOptions
2935
+ > = z.object({
2936
+ includeRetrievals: z.boolean().default(false),
2937
+ includeUsage: z.boolean().default(false),
2938
+ mockResponse: z.string().optional(),
2939
+ }).transform((v) => {
2940
+ return remap$(v, {
2941
+ includeRetrievals: "include_retrievals",
2942
+ includeUsage: "include_usage",
2943
+ mockResponse: "mock_response",
2944
+ });
2945
+ });
2946
+
2947
+ export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
2948
+ return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
2949
+ }
2950
+
2951
+ /** @internal */
2952
+ export type Thread$Outbound = {
2953
+ id: string;
2954
+ tags?: Array<string> | undefined;
2955
+ };
2956
+
2957
+ /** @internal */
2958
+ export const Thread$outboundSchema: z.ZodType<
2959
+ Thread$Outbound,
2960
+ z.ZodTypeDef,
2961
+ Thread
2962
+ > = z.object({
2963
+ id: z.string(),
2964
+ tags: z.array(z.string()).optional(),
2965
+ });
2966
+
2967
+ export function threadToJSON(thread: Thread): string {
2968
+ return JSON.stringify(Thread$outboundSchema.parse(thread));
2969
+ }
2970
+
2971
+ /** @internal */
2972
+ export type OrExists$Outbound = {
2973
+ exists: boolean;
2974
+ };
2975
+
2976
+ /** @internal */
2977
+ export const OrExists$outboundSchema: z.ZodType<
2978
+ OrExists$Outbound,
2979
+ z.ZodTypeDef,
2980
+ OrExists
2981
+ > = z.object({
2982
+ exists: z.boolean(),
2983
+ });
2984
+
2985
+ export function orExistsToJSON(orExists: OrExists): string {
2986
+ return JSON.stringify(OrExists$outboundSchema.parse(orExists));
2987
+ }
2988
+
2989
+ /** @internal */
2990
+ export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
2991
+
2992
+ /** @internal */
2993
+ export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
2994
+ DeploymentGetConfigOrNin$Outbound,
2995
+ z.ZodTypeDef,
2996
+ DeploymentGetConfigOrNin
2997
+ > = z.union([z.string(), z.number(), z.boolean()]);
2998
+
2999
+ export function deploymentGetConfigOrNinToJSON(
3000
+ deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
3001
+ ): string {
3002
+ return JSON.stringify(
3003
+ DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
3004
+ );
3005
+ }
3006
+
3007
+ /** @internal */
3008
+ export type OrNin$Outbound = {
3009
+ nin: Array<string | number | boolean>;
3010
+ };
3011
+
3012
+ /** @internal */
3013
+ export const OrNin$outboundSchema: z.ZodType<
3014
+ OrNin$Outbound,
3015
+ z.ZodTypeDef,
3016
+ OrNin
3017
+ > = z.object({
3018
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3019
+ });
3020
+
3021
+ export function orNinToJSON(orNin: OrNin): string {
3022
+ return JSON.stringify(OrNin$outboundSchema.parse(orNin));
3023
+ }
3024
+
3025
+ /** @internal */
3026
+ export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
3027
+
3028
+ /** @internal */
3029
+ export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
3030
+ DeploymentGetConfigOrIn$Outbound,
3031
+ z.ZodTypeDef,
3032
+ DeploymentGetConfigOrIn
3033
+ > = z.union([z.string(), z.number(), z.boolean()]);
3034
+
3035
+ export function deploymentGetConfigOrInToJSON(
3036
+ deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
3037
+ ): string {
3038
+ return JSON.stringify(
3039
+ DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
3040
+ );
3041
+ }
3042
+
3043
+ /** @internal */
3044
+ export type OrIn$Outbound = {
3045
+ in: Array<string | number | boolean>;
3046
+ };
3047
+
3048
+ /** @internal */
3049
+ export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
3050
+ z.object({
3051
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3052
+ });
3053
+
3054
+ export function orInToJSON(orIn: OrIn): string {
3055
+ return JSON.stringify(OrIn$outboundSchema.parse(orIn));
3056
+ }
3057
+
3058
+ /** @internal */
3059
+ export type OrLte$Outbound = {
3060
+ lte: number;
3061
+ };
3062
+
3063
+ /** @internal */
3064
+ export const OrLte$outboundSchema: z.ZodType<
3065
+ OrLte$Outbound,
3066
+ z.ZodTypeDef,
3067
+ OrLte
3068
+ > = z.object({
3069
+ lte: z.number(),
3070
+ });
3071
+
3072
+ export function orLteToJSON(orLte: OrLte): string {
3073
+ return JSON.stringify(OrLte$outboundSchema.parse(orLte));
3074
+ }
3075
+
3076
+ /** @internal */
3077
+ export type OrLt$Outbound = {
3078
+ lt: number;
3079
+ };
3080
+
3081
+ /** @internal */
3082
+ export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
3083
+ z.object({
3084
+ lt: z.number(),
3085
+ });
3086
+
3087
+ export function orLtToJSON(orLt: OrLt): string {
3088
+ return JSON.stringify(OrLt$outboundSchema.parse(orLt));
3089
+ }
3090
+
3091
+ /** @internal */
3092
+ export type OrGte$Outbound = {
3093
+ gte: number;
3094
+ };
3095
+
3096
+ /** @internal */
3097
+ export const OrGte$outboundSchema: z.ZodType<
3098
+ OrGte$Outbound,
3099
+ z.ZodTypeDef,
3100
+ OrGte
3101
+ > = z.object({
3102
+ gte: z.number(),
3103
+ });
3104
+
3105
+ export function orGteToJSON(orGte: OrGte): string {
3106
+ return JSON.stringify(OrGte$outboundSchema.parse(orGte));
3107
+ }
3108
+
3109
+ /** @internal */
3110
+ export type OrGt$Outbound = {
3111
+ gt: number;
3112
+ };
3113
+
3114
+ /** @internal */
3115
+ export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
3116
+ z.object({
3117
+ gt: z.number(),
3118
+ });
3119
+
3120
+ export function orGtToJSON(orGt: OrGt): string {
3121
+ return JSON.stringify(OrGt$outboundSchema.parse(orGt));
3122
+ }
3123
+
3124
+ /** @internal */
3125
+ export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
3126
+
3127
+ /** @internal */
3128
+ export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
3129
+ DeploymentGetConfigOrNe$Outbound,
3130
+ z.ZodTypeDef,
3131
+ DeploymentGetConfigOrNe
3132
+ > = z.union([z.string(), z.number(), z.boolean()]);
3133
+
3134
+ export function deploymentGetConfigOrNeToJSON(
3135
+ deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
3136
+ ): string {
3137
+ return JSON.stringify(
3138
+ DeploymentGetConfigOrNe$outboundSchema.parse(deploymentGetConfigOrNe),
3139
+ );
3140
+ }
3141
+
3142
+ /** @internal */
3143
+ export type OrNe$Outbound = {
3144
+ ne: string | number | boolean;
3145
+ };
3146
+
3147
+ /** @internal */
3148
+ export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
3149
+ z.object({
3150
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3151
+ });
3152
+
3153
+ export function orNeToJSON(orNe: OrNe): string {
3154
+ return JSON.stringify(OrNe$outboundSchema.parse(orNe));
3155
+ }
3156
+
3157
+ /** @internal */
3158
+ export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
3159
+
3160
+ /** @internal */
3161
+ export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
3162
+ DeploymentGetConfigOrEq$Outbound,
3163
+ z.ZodTypeDef,
3164
+ DeploymentGetConfigOrEq
3165
+ > = z.union([z.string(), z.number(), z.boolean()]);
3166
+
3167
+ export function deploymentGetConfigOrEqToJSON(
3168
+ deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
3169
+ ): string {
3170
+ return JSON.stringify(
3171
+ DeploymentGetConfigOrEq$outboundSchema.parse(deploymentGetConfigOrEq),
3172
+ );
3173
+ }
3174
+
3175
+ /** @internal */
3176
+ export type OrEq$Outbound = {
3177
+ eq: string | number | boolean;
3178
+ };
3179
+
3180
+ /** @internal */
3181
+ export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
3182
+ z.object({
3183
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3184
+ });
3185
+
3186
+ export function orEqToJSON(orEq: OrEq): string {
3187
+ return JSON.stringify(OrEq$outboundSchema.parse(orEq));
3188
+ }
3189
+
3190
+ /** @internal */
3191
+ export type KnowledgeFilterOr$Outbound =
3192
+ | OrEq$Outbound
3193
+ | OrNe$Outbound
3194
+ | OrGt$Outbound
3195
+ | OrGte$Outbound
3196
+ | OrLt$Outbound
3197
+ | OrLte$Outbound
3198
+ | OrIn$Outbound
3199
+ | OrNin$Outbound
3200
+ | OrExists$Outbound;
3201
+
3202
+ /** @internal */
3203
+ export const KnowledgeFilterOr$outboundSchema: z.ZodType<
3204
+ KnowledgeFilterOr$Outbound,
3205
+ z.ZodTypeDef,
3206
+ KnowledgeFilterOr
3207
+ > = z.union([
3208
+ z.lazy(() => OrEq$outboundSchema),
3209
+ z.lazy(() => OrNe$outboundSchema),
3210
+ z.lazy(() => OrGt$outboundSchema),
3211
+ z.lazy(() => OrGte$outboundSchema),
3212
+ z.lazy(() => OrLt$outboundSchema),
3213
+ z.lazy(() => OrLte$outboundSchema),
3214
+ z.lazy(() => OrIn$outboundSchema),
3215
+ z.lazy(() => OrNin$outboundSchema),
3216
+ z.lazy(() => OrExists$outboundSchema),
3217
+ ]);
3218
+
3219
+ export function knowledgeFilterOrToJSON(
3220
+ knowledgeFilterOr: KnowledgeFilterOr,
3221
+ ): string {
3222
+ return JSON.stringify(
3223
+ KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
3224
+ );
3225
+ }
3226
+
3227
+ /** @internal */
3228
+ export type Or$Outbound = {
3229
+ or: Array<
3230
+ {
3231
+ [k: string]:
3232
+ | OrEq$Outbound
3233
+ | OrNe$Outbound
3234
+ | OrGt$Outbound
3235
+ | OrGte$Outbound
3236
+ | OrLt$Outbound
3237
+ | OrLte$Outbound
3238
+ | OrIn$Outbound
3239
+ | OrNin$Outbound
3240
+ | OrExists$Outbound;
3241
+ }
3242
+ >;
3243
+ };
3244
+
3245
+ /** @internal */
3246
+ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
3247
+ .object({
3248
+ or: z.array(
3249
+ z.record(z.union([
3250
+ z.lazy(() => OrEq$outboundSchema),
3251
+ z.lazy(() =>
3252
+ OrNe$outboundSchema
3253
+ ),
3254
+ z.lazy(() => OrGt$outboundSchema),
3255
+ z.lazy(() => OrGte$outboundSchema),
3256
+ z.lazy(() => OrLt$outboundSchema),
3257
+ z.lazy(() => OrLte$outboundSchema),
3258
+ z.lazy(() => OrIn$outboundSchema),
3259
+ z.lazy(() => OrNin$outboundSchema),
3260
+ z.lazy(() => OrExists$outboundSchema),
3261
+ ])),
3262
+ ),
3263
+ });
3264
+
3265
+ export function orToJSON(or: Or): string {
3266
+ return JSON.stringify(Or$outboundSchema.parse(or));
3267
+ }
3268
+
3269
+ /** @internal */
3270
+ export type AndExists$Outbound = {
3271
+ exists: boolean;
3272
+ };
3273
+
3274
+ /** @internal */
3275
+ export const AndExists$outboundSchema: z.ZodType<
3276
+ AndExists$Outbound,
3277
+ z.ZodTypeDef,
3278
+ AndExists
3279
+ > = z.object({
3280
+ exists: z.boolean(),
3281
+ });
3282
+
3283
+ export function andExistsToJSON(andExists: AndExists): string {
3284
+ return JSON.stringify(AndExists$outboundSchema.parse(andExists));
3285
+ }
3286
+
3287
+ /** @internal */
3288
+ export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
3289
+
3290
+ /** @internal */
3291
+ export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
3292
+ DeploymentGetConfigAndNin$Outbound,
3293
+ z.ZodTypeDef,
3294
+ DeploymentGetConfigAndNin
3295
+ > = z.union([z.string(), z.number(), z.boolean()]);
3296
+
3297
+ export function deploymentGetConfigAndNinToJSON(
3298
+ deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
3299
+ ): string {
3300
+ return JSON.stringify(
3301
+ DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
3302
+ );
3303
+ }
3304
+
3305
+ /** @internal */
3306
+ export type AndNin$Outbound = {
3307
+ nin: Array<string | number | boolean>;
3308
+ };
3309
+
3310
+ /** @internal */
3311
+ export const AndNin$outboundSchema: z.ZodType<
3312
+ AndNin$Outbound,
3313
+ z.ZodTypeDef,
3314
+ AndNin
3315
+ > = z.object({
3316
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3317
+ });
3318
+
3319
+ export function andNinToJSON(andNin: AndNin): string {
3320
+ return JSON.stringify(AndNin$outboundSchema.parse(andNin));
3321
+ }
3322
+
3323
+ /** @internal */
3324
+ export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
3325
+
3326
+ /** @internal */
3327
+ export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
3328
+ DeploymentGetConfigAndIn$Outbound,
3329
+ z.ZodTypeDef,
3330
+ DeploymentGetConfigAndIn
3331
+ > = z.union([z.string(), z.number(), z.boolean()]);
3332
+
3333
+ export function deploymentGetConfigAndInToJSON(
3334
+ deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
3335
+ ): string {
3336
+ return JSON.stringify(
3337
+ DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
3338
+ );
3339
+ }
3340
+
3341
+ /** @internal */
3342
+ export type AndIn$Outbound = {
3343
+ in: Array<string | number | boolean>;
3344
+ };
3345
+
3346
+ /** @internal */
3347
+ export const AndIn$outboundSchema: z.ZodType<
3348
+ AndIn$Outbound,
3349
+ z.ZodTypeDef,
3350
+ AndIn
3351
+ > = z.object({
3352
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3353
+ });
3354
+
3355
+ export function andInToJSON(andIn: AndIn): string {
3356
+ return JSON.stringify(AndIn$outboundSchema.parse(andIn));
3357
+ }
3358
+
3359
+ /** @internal */
3360
+ export type AndLte$Outbound = {
3361
+ lte: number;
3362
+ };
3363
+
3364
+ /** @internal */
3365
+ export const AndLte$outboundSchema: z.ZodType<
3366
+ AndLte$Outbound,
3367
+ z.ZodTypeDef,
3368
+ AndLte
3369
+ > = z.object({
3370
+ lte: z.number(),
3371
+ });
3372
+
3373
+ export function andLteToJSON(andLte: AndLte): string {
3374
+ return JSON.stringify(AndLte$outboundSchema.parse(andLte));
3375
+ }
3376
+
3377
+ /** @internal */
3378
+ export type AndLt$Outbound = {
3379
+ lt: number;
3380
+ };
3381
+
3382
+ /** @internal */
3383
+ export const AndLt$outboundSchema: z.ZodType<
3384
+ AndLt$Outbound,
3385
+ z.ZodTypeDef,
3386
+ AndLt
3387
+ > = z.object({
3388
+ lt: z.number(),
3389
+ });
3390
+
3391
+ export function andLtToJSON(andLt: AndLt): string {
3392
+ return JSON.stringify(AndLt$outboundSchema.parse(andLt));
3393
+ }
3394
+
3395
+ /** @internal */
3396
+ export type AndGte$Outbound = {
3397
+ gte: number;
3398
+ };
3399
+
3400
+ /** @internal */
3401
+ export const AndGte$outboundSchema: z.ZodType<
3402
+ AndGte$Outbound,
3403
+ z.ZodTypeDef,
3404
+ AndGte
3405
+ > = z.object({
3406
+ gte: z.number(),
3407
+ });
3408
+
3409
+ export function andGteToJSON(andGte: AndGte): string {
3410
+ return JSON.stringify(AndGte$outboundSchema.parse(andGte));
3411
+ }
3412
+
3413
+ /** @internal */
3414
+ export type AndGt$Outbound = {
3415
+ gt: number;
3416
+ };
3417
+
3418
+ /** @internal */
3419
+ export const AndGt$outboundSchema: z.ZodType<
3420
+ AndGt$Outbound,
3421
+ z.ZodTypeDef,
3422
+ AndGt
3423
+ > = z.object({
3424
+ gt: z.number(),
3425
+ });
3426
+
3427
+ export function andGtToJSON(andGt: AndGt): string {
3428
+ return JSON.stringify(AndGt$outboundSchema.parse(andGt));
3429
+ }
3430
+
3431
+ /** @internal */
3432
+ export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
3433
+
3434
+ /** @internal */
3435
+ export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
3436
+ DeploymentGetConfigAndNe$Outbound,
3437
+ z.ZodTypeDef,
3438
+ DeploymentGetConfigAndNe
3439
+ > = z.union([z.string(), z.number(), z.boolean()]);
3440
+
3441
+ export function deploymentGetConfigAndNeToJSON(
3442
+ deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
3443
+ ): string {
3444
+ return JSON.stringify(
3445
+ DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
3446
+ );
3447
+ }
3448
+
3449
+ /** @internal */
3450
+ export type AndNe$Outbound = {
3451
+ ne: string | number | boolean;
3452
+ };
3453
+
3454
+ /** @internal */
3455
+ export const AndNe$outboundSchema: z.ZodType<
3456
+ AndNe$Outbound,
3457
+ z.ZodTypeDef,
3458
+ AndNe
3459
+ > = z.object({
3460
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3461
+ });
3462
+
3463
+ export function andNeToJSON(andNe: AndNe): string {
3464
+ return JSON.stringify(AndNe$outboundSchema.parse(andNe));
3465
+ }
3466
+
3467
+ /** @internal */
3468
+ export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
3469
+
3470
+ /** @internal */
3471
+ export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
3472
+ DeploymentGetConfigAndEq$Outbound,
3473
+ z.ZodTypeDef,
3474
+ DeploymentGetConfigAndEq
3475
+ > = z.union([z.string(), z.number(), z.boolean()]);
3476
+
3477
+ export function deploymentGetConfigAndEqToJSON(
3478
+ deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
3479
+ ): string {
3480
+ return JSON.stringify(
3481
+ DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
3482
+ );
3483
+ }
3484
+
3485
+ /** @internal */
3486
+ export type AndEq$Outbound = {
3487
+ eq: string | number | boolean;
3488
+ };
3489
+
3490
+ /** @internal */
3491
+ export const AndEq$outboundSchema: z.ZodType<
3492
+ AndEq$Outbound,
3493
+ z.ZodTypeDef,
3494
+ AndEq
3495
+ > = z.object({
3496
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3497
+ });
3498
+
3499
+ export function andEqToJSON(andEq: AndEq): string {
3500
+ return JSON.stringify(AndEq$outboundSchema.parse(andEq));
3501
+ }
3502
+
3503
+ /** @internal */
3504
+ export type KnowledgeFilterAnd$Outbound =
3505
+ | AndEq$Outbound
3506
+ | AndNe$Outbound
3507
+ | AndGt$Outbound
3508
+ | AndGte$Outbound
3509
+ | AndLt$Outbound
3510
+ | AndLte$Outbound
3511
+ | AndIn$Outbound
3512
+ | AndNin$Outbound
3513
+ | AndExists$Outbound;
3514
+
3515
+ /** @internal */
3516
+ export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
3517
+ KnowledgeFilterAnd$Outbound,
3518
+ z.ZodTypeDef,
3519
+ KnowledgeFilterAnd
3520
+ > = z.union([
3521
+ z.lazy(() => AndEq$outboundSchema),
3522
+ z.lazy(() => AndNe$outboundSchema),
3523
+ z.lazy(() => AndGt$outboundSchema),
3524
+ z.lazy(() => AndGte$outboundSchema),
3525
+ z.lazy(() => AndLt$outboundSchema),
3526
+ z.lazy(() => AndLte$outboundSchema),
3527
+ z.lazy(() => AndIn$outboundSchema),
3528
+ z.lazy(() => AndNin$outboundSchema),
3529
+ z.lazy(() => AndExists$outboundSchema),
3530
+ ]);
3531
+
3532
+ export function knowledgeFilterAndToJSON(
3533
+ knowledgeFilterAnd: KnowledgeFilterAnd,
3534
+ ): string {
3535
+ return JSON.stringify(
3536
+ KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
3537
+ );
3538
+ }
3539
+
3540
+ /** @internal */
3541
+ export type And$Outbound = {
3542
+ and: Array<
3543
+ {
3544
+ [k: string]:
3545
+ | AndEq$Outbound
3546
+ | AndNe$Outbound
3547
+ | AndGt$Outbound
3548
+ | AndGte$Outbound
3549
+ | AndLt$Outbound
3550
+ | AndLte$Outbound
3551
+ | AndIn$Outbound
3552
+ | AndNin$Outbound
3553
+ | AndExists$Outbound;
3554
+ }
3555
+ >;
3556
+ };
3557
+
3558
+ /** @internal */
3559
+ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
3560
+ .object({
3561
+ and: z.array(
3562
+ z.record(z.union([
3563
+ z.lazy(() => AndEq$outboundSchema),
3564
+ z.lazy(() =>
3565
+ AndNe$outboundSchema
3566
+ ),
3567
+ z.lazy(() => AndGt$outboundSchema),
3568
+ z.lazy(() => AndGte$outboundSchema),
3569
+ z.lazy(() => AndLt$outboundSchema),
3570
+ z.lazy(() => AndLte$outboundSchema),
3571
+ z.lazy(() => AndIn$outboundSchema),
3572
+ z.lazy(() => AndNin$outboundSchema),
3573
+ z.lazy(() => AndExists$outboundSchema),
3574
+ ])),
3575
+ ),
3576
+ });
3577
+
3578
+ export function andToJSON(and: And): string {
3579
+ return JSON.stringify(And$outboundSchema.parse(and));
3580
+ }
3581
+
3582
+ /** @internal */
3583
+ export type Exists$Outbound = {
3584
+ exists: boolean;
3585
+ };
3586
+
3587
+ /** @internal */
3588
+ export const Exists$outboundSchema: z.ZodType<
3589
+ Exists$Outbound,
3590
+ z.ZodTypeDef,
3591
+ Exists
3592
+ > = z.object({
3593
+ exists: z.boolean(),
3594
+ });
3595
+
3596
+ export function existsToJSON(exists: Exists): string {
3597
+ return JSON.stringify(Exists$outboundSchema.parse(exists));
3598
+ }
3599
+
3600
+ /** @internal */
3601
+ export type OneNin$Outbound = string | number | boolean;
3602
+
3603
+ /** @internal */
3604
+ export const OneNin$outboundSchema: z.ZodType<
3605
+ OneNin$Outbound,
3606
+ z.ZodTypeDef,
3607
+ OneNin
3608
+ > = z.union([z.string(), z.number(), z.boolean()]);
3609
+
3610
+ export function oneNinToJSON(oneNin: OneNin): string {
3611
+ return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
3612
+ }
3613
+
3614
+ /** @internal */
3615
+ export type Nin$Outbound = {
3616
+ nin: Array<string | number | boolean>;
3617
+ };
3618
+
3619
+ /** @internal */
3620
+ export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
3621
+ .object({
3622
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3623
+ });
3624
+
3625
+ export function ninToJSON(nin: Nin): string {
3626
+ return JSON.stringify(Nin$outboundSchema.parse(nin));
3627
+ }
3628
+
3629
+ /** @internal */
3630
+ export type OneIn$Outbound = string | number | boolean;
3631
+
3632
+ /** @internal */
3633
+ export const OneIn$outboundSchema: z.ZodType<
3634
+ OneIn$Outbound,
3635
+ z.ZodTypeDef,
3636
+ OneIn
3637
+ > = z.union([z.string(), z.number(), z.boolean()]);
3638
+
3639
+ export function oneInToJSON(oneIn: OneIn): string {
3640
+ return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
3641
+ }
3642
+
3643
+ /** @internal */
3644
+ export type In$Outbound = {
3645
+ in: Array<string | number | boolean>;
3646
+ };
3647
+
3648
+ /** @internal */
3649
+ export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
3650
+ .object({
3651
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3652
+ });
3653
+
3654
+ export function inToJSON(value: In): string {
3655
+ return JSON.stringify(In$outboundSchema.parse(value));
3656
+ }
3657
+
3658
+ /** @internal */
3659
+ export type Lte$Outbound = {
3660
+ lte: number;
3661
+ };
3662
+
3663
+ /** @internal */
3664
+ export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
3665
+ .object({
3666
+ lte: z.number(),
3667
+ });
3668
+
3669
+ export function lteToJSON(lte: Lte): string {
3670
+ return JSON.stringify(Lte$outboundSchema.parse(lte));
3671
+ }
3672
+
3673
+ /** @internal */
3674
+ export type Lt$Outbound = {
3675
+ lt: number;
3676
+ };
3677
+
3678
+ /** @internal */
3679
+ export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
3680
+ .object({
3681
+ lt: z.number(),
3682
+ });
3683
+
3684
+ export function ltToJSON(lt: Lt): string {
3685
+ return JSON.stringify(Lt$outboundSchema.parse(lt));
3686
+ }
3687
+
3688
+ /** @internal */
3689
+ export type Gte$Outbound = {
3690
+ gte: number;
3691
+ };
3692
+
3693
+ /** @internal */
3694
+ export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
3695
+ .object({
3696
+ gte: z.number(),
3697
+ });
3698
+
3699
+ export function gteToJSON(gte: Gte): string {
3700
+ return JSON.stringify(Gte$outboundSchema.parse(gte));
3701
+ }
3702
+
3703
+ /** @internal */
3704
+ export type Gt$Outbound = {
3705
+ gt: number;
3706
+ };
3707
+
3708
+ /** @internal */
3709
+ export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
3710
+ .object({
3711
+ gt: z.number(),
3712
+ });
3713
+
3714
+ export function gtToJSON(gt: Gt): string {
3715
+ return JSON.stringify(Gt$outboundSchema.parse(gt));
3716
+ }
3717
+
3718
+ /** @internal */
3719
+ export type OneNe$Outbound = string | number | boolean;
3720
+
3721
+ /** @internal */
3722
+ export const OneNe$outboundSchema: z.ZodType<
3723
+ OneNe$Outbound,
3724
+ z.ZodTypeDef,
3725
+ OneNe
3726
+ > = z.union([z.string(), z.number(), z.boolean()]);
3727
+
3728
+ export function oneNeToJSON(oneNe: OneNe): string {
3729
+ return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
3730
+ }
3731
+
3732
+ /** @internal */
3733
+ export type Ne$Outbound = {
3734
+ ne: string | number | boolean;
3735
+ };
3736
+
3737
+ /** @internal */
3738
+ export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
3739
+ .object({
3740
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3741
+ });
3742
+
3743
+ export function neToJSON(ne: Ne): string {
3744
+ return JSON.stringify(Ne$outboundSchema.parse(ne));
3745
+ }
3746
+
3747
+ /** @internal */
3748
+ export type OneEq$Outbound = string | number | boolean;
3749
+
3750
+ /** @internal */
3751
+ export const OneEq$outboundSchema: z.ZodType<
3752
+ OneEq$Outbound,
3753
+ z.ZodTypeDef,
3754
+ OneEq
3755
+ > = z.union([z.string(), z.number(), z.boolean()]);
3756
+
3757
+ export function oneEqToJSON(oneEq: OneEq): string {
3758
+ return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
3759
+ }
3760
+
3761
+ /** @internal */
3762
+ export type Eq$Outbound = {
3763
+ eq: string | number | boolean;
3764
+ };
3765
+
3766
+ /** @internal */
3767
+ export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
3768
+ .object({
3769
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3770
+ });
3771
+
3772
+ export function eqToJSON(eq: Eq): string {
3773
+ return JSON.stringify(Eq$outboundSchema.parse(eq));
3774
+ }
3775
+
3776
+ /** @internal */
3777
+ export type KnowledgeFilter1$Outbound =
3778
+ | Eq$Outbound
3779
+ | Ne$Outbound
3780
+ | Gt$Outbound
3781
+ | Gte$Outbound
3782
+ | Lt$Outbound
3783
+ | Lte$Outbound
3784
+ | In$Outbound
3785
+ | Nin$Outbound
3786
+ | Exists$Outbound;
3787
+
3788
+ /** @internal */
3789
+ export const KnowledgeFilter1$outboundSchema: z.ZodType<
3790
+ KnowledgeFilter1$Outbound,
3791
+ z.ZodTypeDef,
3792
+ KnowledgeFilter1
3793
+ > = z.union([
3794
+ z.lazy(() => Eq$outboundSchema),
3795
+ z.lazy(() => Ne$outboundSchema),
3796
+ z.lazy(() => Gt$outboundSchema),
3797
+ z.lazy(() => Gte$outboundSchema),
3798
+ z.lazy(() => Lt$outboundSchema),
3799
+ z.lazy(() => Lte$outboundSchema),
3800
+ z.lazy(() => In$outboundSchema),
3801
+ z.lazy(() => Nin$outboundSchema),
3802
+ z.lazy(() => Exists$outboundSchema),
3803
+ ]);
3804
+
3805
+ export function knowledgeFilter1ToJSON(
3806
+ knowledgeFilter1: KnowledgeFilter1,
3807
+ ): string {
3808
+ return JSON.stringify(
3809
+ KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
3810
+ );
3811
+ }
3812
+
3813
+ /** @internal */
3814
+ export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
3815
+ [k: string]:
3816
+ | Eq$Outbound
3817
+ | Ne$Outbound
3818
+ | Gt$Outbound
3819
+ | Gte$Outbound
3820
+ | Lt$Outbound
3821
+ | Lte$Outbound
3822
+ | In$Outbound
3823
+ | Nin$Outbound
3824
+ | Exists$Outbound;
3825
+ };
3826
+
3827
+ /** @internal */
3828
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
3829
+ KnowledgeFilter$Outbound,
3830
+ z.ZodTypeDef,
3831
+ KnowledgeFilter
3832
+ > = z.union([
3833
+ z.lazy(() => And$outboundSchema),
3834
+ z.lazy(() => Or$outboundSchema),
3835
+ z.record(z.union([
3836
+ z.lazy(() => Eq$outboundSchema),
3837
+ z.lazy(() => Ne$outboundSchema),
3838
+ z.lazy(() => Gt$outboundSchema),
3839
+ z.lazy(() => Gte$outboundSchema),
3840
+ z.lazy(() => Lt$outboundSchema),
3841
+ z.lazy(() => Lte$outboundSchema),
3842
+ z.lazy(() => In$outboundSchema),
3843
+ z.lazy(() => Nin$outboundSchema),
3844
+ z.lazy(() => Exists$outboundSchema),
3845
+ ])),
3846
+ ]);
3847
+
3848
+ export function knowledgeFilterToJSON(
3849
+ knowledgeFilter: KnowledgeFilter,
3850
+ ): string {
3851
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
3852
+ }
3853
+
3854
+ /** @internal */
3855
+ export type DeploymentGetConfigRequestBody$Outbound = {
3856
+ key: string;
3857
+ inputs?: { [k: string]: any } | undefined;
3858
+ context?: { [k: string]: any } | undefined;
3859
+ prefix_messages?:
3860
+ | Array<
3861
+ | SystemMessage$Outbound
3862
+ | DeveloperMessage$Outbound
3863
+ | UserMessage$Outbound
3864
+ | AssistantMessage$Outbound
3865
+ | ToolMessage$Outbound
3866
+ >
3867
+ | undefined;
3868
+ messages?:
3869
+ | Array<
3870
+ | MessagesSystemMessage$Outbound
3871
+ | MessagesDeveloperMessage$Outbound
3872
+ | MessagesUserMessage$Outbound
3873
+ | MessagesAssistantMessage$Outbound
3874
+ | MessagesToolMessage$Outbound
3875
+ >
3876
+ | undefined;
3877
+ identity?: components.PublicIdentity$Outbound | undefined;
3878
+ file_ids?: Array<string> | undefined;
3879
+ metadata?: { [k: string]: any } | undefined;
3880
+ extra_params?: { [k: string]: any } | undefined;
3881
+ documents?: Array<Documents$Outbound> | undefined;
3882
+ invoke_options?: InvokeOptions$Outbound | undefined;
3883
+ thread?: Thread$Outbound | undefined;
3884
+ knowledge_filter?: And$Outbound | Or$Outbound | {
3885
+ [k: string]:
3886
+ | Eq$Outbound
3887
+ | Ne$Outbound
3888
+ | Gt$Outbound
3889
+ | Gte$Outbound
3890
+ | Lt$Outbound
3891
+ | Lte$Outbound
3892
+ | In$Outbound
3893
+ | Nin$Outbound
3894
+ | Exists$Outbound;
3895
+ } | undefined;
3896
+ };
3897
+
3898
+ /** @internal */
3899
+ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
3900
+ DeploymentGetConfigRequestBody$Outbound,
3901
+ z.ZodTypeDef,
3902
+ DeploymentGetConfigRequestBody
3903
+ > = z.object({
3904
+ key: z.string(),
3905
+ inputs: z.record(z.any()).optional(),
3906
+ context: z.record(z.any()).optional(),
3907
+ prefixMessages: z.array(
3908
+ z.union([
3909
+ z.lazy(() => SystemMessage$outboundSchema),
3910
+ z.lazy(() => DeveloperMessage$outboundSchema),
3911
+ z.lazy(() => UserMessage$outboundSchema),
3912
+ z.lazy(() => AssistantMessage$outboundSchema),
3913
+ z.lazy(() => ToolMessage$outboundSchema),
3914
+ ]),
3915
+ ).optional(),
3916
+ messages: z.array(
3917
+ z.union([
3918
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
3919
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
3920
+ z.lazy(() => MessagesUserMessage$outboundSchema),
3921
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
3922
+ z.lazy(() => MessagesToolMessage$outboundSchema),
3923
+ ]),
3924
+ ).optional(),
3925
+ identity: components.PublicIdentity$outboundSchema.optional(),
3926
+ fileIds: z.array(z.string()).optional(),
3927
+ metadata: z.record(z.any()).optional(),
3928
+ extraParams: z.record(z.any()).optional(),
3929
+ documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
3930
+ invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
3931
+ thread: z.lazy(() => Thread$outboundSchema).optional(),
3932
+ knowledgeFilter: z.union([
3933
+ z.lazy(() => And$outboundSchema),
3934
+ z.lazy(() => Or$outboundSchema),
3935
+ z.record(z.union([
3936
+ z.lazy(() => Eq$outboundSchema),
3937
+ z.lazy(() => Ne$outboundSchema),
3938
+ z.lazy(() => Gt$outboundSchema),
3939
+ z.lazy(() => Gte$outboundSchema),
3940
+ z.lazy(() => Lt$outboundSchema),
3941
+ z.lazy(() => Lte$outboundSchema),
3942
+ z.lazy(() => In$outboundSchema),
3943
+ z.lazy(() => Nin$outboundSchema),
3944
+ z.lazy(() => Exists$outboundSchema),
3945
+ ])),
3946
+ ]).optional(),
3947
+ }).transform((v) => {
3948
+ return remap$(v, {
3949
+ prefixMessages: "prefix_messages",
3950
+ fileIds: "file_ids",
3951
+ extraParams: "extra_params",
3952
+ invokeOptions: "invoke_options",
3953
+ knowledgeFilter: "knowledge_filter",
3954
+ });
3955
+ });
3956
+
3957
+ export function deploymentGetConfigRequestBodyToJSON(
3958
+ deploymentGetConfigRequestBody: DeploymentGetConfigRequestBody,
3959
+ ): string {
3960
+ return JSON.stringify(
3961
+ DeploymentGetConfigRequestBody$outboundSchema.parse(
3962
+ deploymentGetConfigRequestBody,
3963
+ ),
3964
+ );
3965
+ }
3966
+
3967
+ /** @internal */
3968
+ export const DeploymentGetConfigType$inboundSchema: z.ZodNativeEnum<
3969
+ typeof DeploymentGetConfigType
3970
+ > = z.nativeEnum(DeploymentGetConfigType);
3971
+
3972
+ /** @internal */
3973
+ export const DeploymentGetConfigRole$inboundSchema: z.ZodNativeEnum<
3974
+ typeof DeploymentGetConfigRole
3975
+ > = z.nativeEnum(DeploymentGetConfigRole);
3976
+
3977
+ /** @internal */
3978
+ export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
3979
+ DeploymentGetConfig2File,
3980
+ z.ZodTypeDef,
3981
+ unknown
3982
+ > = z.object({
3983
+ file_data: z.string().optional(),
3984
+ uri: z.string().optional(),
3985
+ mimeType: z.string().optional(),
3986
+ filename: z.string().optional(),
3987
+ }).transform((v) => {
3988
+ return remap$(v, {
3989
+ "file_data": "fileData",
3990
+ });
3991
+ });
3992
+
3993
+ export function deploymentGetConfig2FileFromJSON(
3994
+ jsonString: string,
3995
+ ): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
3996
+ return safeParse(
3997
+ jsonString,
3998
+ (x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
3999
+ `Failed to parse 'DeploymentGetConfig2File' from JSON`,
4000
+ );
4001
+ }
4002
+
4003
+ /** @internal */
4004
+ export const DeploymentGetConfig23$inboundSchema: z.ZodType<
4005
+ DeploymentGetConfig23,
4006
+ z.ZodTypeDef,
4007
+ unknown
4008
+ > = z.object({
4009
+ type: z.literal("file"),
4010
+ file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
4011
+ });
4012
+
4013
+ export function deploymentGetConfig23FromJSON(
4014
+ jsonString: string,
4015
+ ): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
4016
+ return safeParse(
4017
+ jsonString,
4018
+ (x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
4019
+ `Failed to parse 'DeploymentGetConfig23' from JSON`,
4020
+ );
4021
+ }
4022
+
4023
+ /** @internal */
4024
+ export const TwoImageUrl$inboundSchema: z.ZodType<
4025
+ TwoImageUrl,
4026
+ z.ZodTypeDef,
4027
+ unknown
4028
+ > = z.object({
4029
+ id: z.string().optional(),
4030
+ url: z.string(),
4031
+ detail: z.string().optional(),
4032
+ });
4033
+
4034
+ export function twoImageUrlFromJSON(
4035
+ jsonString: string,
4036
+ ): SafeParseResult<TwoImageUrl, SDKValidationError> {
4037
+ return safeParse(
4038
+ jsonString,
4039
+ (x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
4040
+ `Failed to parse 'TwoImageUrl' from JSON`,
4041
+ );
4042
+ }
4043
+
4044
+ /** @internal */
4045
+ export const DeploymentGetConfig22$inboundSchema: z.ZodType<
4046
+ DeploymentGetConfig22,
4047
+ z.ZodTypeDef,
4048
+ unknown
4049
+ > = z.object({
4050
+ type: z.literal("image_url"),
4051
+ image_url: z.lazy(() => TwoImageUrl$inboundSchema),
4052
+ }).transform((v) => {
4053
+ return remap$(v, {
4054
+ "image_url": "imageUrl",
4055
+ });
4056
+ });
4057
+
4058
+ export function deploymentGetConfig22FromJSON(
4059
+ jsonString: string,
4060
+ ): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
4061
+ return safeParse(
4062
+ jsonString,
4063
+ (x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
4064
+ `Failed to parse 'DeploymentGetConfig22' from JSON`,
4065
+ );
4066
+ }
4067
+
4068
+ /** @internal */
4069
+ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
4070
+ DeploymentGetConfig21,
4071
+ z.ZodTypeDef,
4072
+ unknown
4073
+ > = z.object({
4074
+ type: z.literal("text"),
4075
+ text: z.string(),
4076
+ });
4077
+
4078
+ export function deploymentGetConfig21FromJSON(
4079
+ jsonString: string,
4080
+ ): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
4081
+ return safeParse(
4082
+ jsonString,
4083
+ (x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
4084
+ `Failed to parse 'DeploymentGetConfig21' from JSON`,
4085
+ );
4086
+ }
4087
+
4088
+ /** @internal */
4089
+ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
4090
+ z.ZodType<
4091
+ DeploymentGetConfigContentDeploymentsResponse2,
4092
+ z.ZodTypeDef,
4093
+ unknown
4094
+ > = z.union([
4095
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4096
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4097
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
4098
+ ]);
4099
+
4100
+ export function deploymentGetConfigContentDeploymentsResponse2FromJSON(
4101
+ jsonString: string,
4102
+ ): SafeParseResult<
4103
+ DeploymentGetConfigContentDeploymentsResponse2,
4104
+ SDKValidationError
4105
+ > {
4106
+ return safeParse(
4107
+ jsonString,
4108
+ (x) =>
4109
+ DeploymentGetConfigContentDeploymentsResponse2$inboundSchema.parse(
4110
+ JSON.parse(x),
4111
+ ),
4112
+ `Failed to parse 'DeploymentGetConfigContentDeploymentsResponse2' from JSON`,
4113
+ );
4114
+ }
4115
+
4116
+ /** @internal */
4117
+ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
4118
+ DeploymentGetConfigContent,
4119
+ z.ZodTypeDef,
4120
+ unknown
4121
+ > = z.union([
4122
+ z.string(),
4123
+ z.array(z.union([
4124
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4125
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4126
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
4127
+ ])),
4128
+ ]);
4129
+
4130
+ export function deploymentGetConfigContentFromJSON(
4131
+ jsonString: string,
4132
+ ): SafeParseResult<DeploymentGetConfigContent, SDKValidationError> {
4133
+ return safeParse(
4134
+ jsonString,
4135
+ (x) => DeploymentGetConfigContent$inboundSchema.parse(JSON.parse(x)),
4136
+ `Failed to parse 'DeploymentGetConfigContent' from JSON`,
4137
+ );
4138
+ }
4139
+
4140
+ /** @internal */
4141
+ export const DeploymentGetConfigDeploymentsResponseType$inboundSchema:
4142
+ z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> = z
4143
+ .nativeEnum(DeploymentGetConfigDeploymentsResponseType);
4144
+
4145
+ /** @internal */
4146
+ export const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<
4147
+ DeploymentGetConfigDeploymentsFunction,
4148
+ z.ZodTypeDef,
4149
+ unknown
4150
+ > = z.object({
4151
+ name: z.string(),
4152
+ arguments: z.string(),
4153
+ });
4154
+
4155
+ export function deploymentGetConfigDeploymentsFunctionFromJSON(
4156
+ jsonString: string,
4157
+ ): SafeParseResult<DeploymentGetConfigDeploymentsFunction, SDKValidationError> {
4158
+ return safeParse(
4159
+ jsonString,
4160
+ (x) =>
4161
+ DeploymentGetConfigDeploymentsFunction$inboundSchema.parse(JSON.parse(x)),
4162
+ `Failed to parse 'DeploymentGetConfigDeploymentsFunction' from JSON`,
4163
+ );
4164
+ }
4165
+
4166
+ /** @internal */
4167
+ export const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<
4168
+ DeploymentGetConfigToolCalls,
4169
+ z.ZodTypeDef,
4170
+ unknown
4171
+ > = z.object({
4172
+ id: z.string().optional(),
4173
+ index: z.number().optional(),
4174
+ type: DeploymentGetConfigDeploymentsResponseType$inboundSchema,
4175
+ function: z.lazy(() => DeploymentGetConfigDeploymentsFunction$inboundSchema),
4176
+ });
4177
+
4178
+ export function deploymentGetConfigToolCallsFromJSON(
4179
+ jsonString: string,
4180
+ ): SafeParseResult<DeploymentGetConfigToolCalls, SDKValidationError> {
4181
+ return safeParse(
4182
+ jsonString,
4183
+ (x) => DeploymentGetConfigToolCalls$inboundSchema.parse(JSON.parse(x)),
4184
+ `Failed to parse 'DeploymentGetConfigToolCalls' from JSON`,
4185
+ );
4186
+ }
4187
+
4188
+ /** @internal */
4189
+ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
4190
+ DeploymentGetConfigDeploymentsMessages,
4191
+ z.ZodTypeDef,
4192
+ unknown
4193
+ > = z.object({
4194
+ role: DeploymentGetConfigRole$inboundSchema,
4195
+ content: z.nullable(
4196
+ z.union([
4197
+ z.string(),
4198
+ z.array(
4199
+ z.union([
4200
+ z.lazy(() => DeploymentGetConfig21$inboundSchema),
4201
+ z.lazy(() => DeploymentGetConfig22$inboundSchema),
4202
+ z.lazy(() => DeploymentGetConfig23$inboundSchema),
4203
+ ]),
4204
+ ),
4205
+ ]),
4206
+ ),
4207
+ tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
4208
+ .optional(),
4209
+ tool_call_id: z.nullable(z.string()).optional(),
4210
+ }).transform((v) => {
4211
+ return remap$(v, {
4212
+ "tool_calls": "toolCalls",
4213
+ "tool_call_id": "toolCallId",
4214
+ });
4215
+ });
4216
+
4217
+ export function deploymentGetConfigDeploymentsMessagesFromJSON(
4218
+ jsonString: string,
4219
+ ): SafeParseResult<DeploymentGetConfigDeploymentsMessages, SDKValidationError> {
4220
+ return safeParse(
4221
+ jsonString,
4222
+ (x) =>
4223
+ DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)),
4224
+ `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
4225
+ );
4226
+ }
4227
+
4228
+ /** @internal */
4229
+ export const DeploymentGetConfigFormat$inboundSchema: z.ZodNativeEnum<
4230
+ typeof DeploymentGetConfigFormat
4231
+ > = z.nativeEnum(DeploymentGetConfigFormat);
4232
+
4233
+ /** @internal */
4234
+ export const ResponseFormat6$inboundSchema: z.ZodNativeEnum<
4235
+ typeof ResponseFormat6
4236
+ > = z.nativeEnum(ResponseFormat6);
4237
+
4238
+ /** @internal */
4239
+ export const ResponseFormat5$inboundSchema: z.ZodNativeEnum<
4240
+ typeof ResponseFormat5
4241
+ > = z.nativeEnum(ResponseFormat5);
4242
+
4243
+ /** @internal */
4244
+ export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
4245
+ typeof ResponseFormat4
4246
+ > = z.nativeEnum(ResponseFormat4);
4247
+
4248
+ /** @internal */
4249
+ export const DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema:
4250
+ z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatDeploymentsType> = z
4251
+ .nativeEnum(DeploymentGetConfigResponseFormatDeploymentsType);
4252
+
4253
+ /** @internal */
4254
+ export const ResponseFormat3$inboundSchema: z.ZodType<
4255
+ ResponseFormat3,
4256
+ z.ZodTypeDef,
4257
+ unknown
4258
+ > = z.object({
4259
+ type: DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema,
4260
+ });
4261
+
4262
+ export function responseFormat3FromJSON(
4263
+ jsonString: string,
4264
+ ): SafeParseResult<ResponseFormat3, SDKValidationError> {
4265
+ return safeParse(
4266
+ jsonString,
4267
+ (x) => ResponseFormat3$inboundSchema.parse(JSON.parse(x)),
4268
+ `Failed to parse 'ResponseFormat3' from JSON`,
4269
+ );
4270
+ }
4271
+
4272
+ /** @internal */
4273
+ export const DeploymentGetConfigResponseFormatType$inboundSchema:
4274
+ z.ZodNativeEnum<typeof DeploymentGetConfigResponseFormatType> = z.nativeEnum(
4275
+ DeploymentGetConfigResponseFormatType,
4276
+ );
4277
+
4278
+ /** @internal */
4279
+ export const ResponseFormat2$inboundSchema: z.ZodType<
4280
+ ResponseFormat2,
4281
+ z.ZodTypeDef,
4282
+ unknown
4283
+ > = z.object({
4284
+ type: DeploymentGetConfigResponseFormatType$inboundSchema,
4285
+ });
4286
+
4287
+ export function responseFormat2FromJSON(
4288
+ jsonString: string,
4289
+ ): SafeParseResult<ResponseFormat2, SDKValidationError> {
4290
+ return safeParse(
4291
+ jsonString,
4292
+ (x) => ResponseFormat2$inboundSchema.parse(JSON.parse(x)),
4293
+ `Failed to parse 'ResponseFormat2' from JSON`,
4294
+ );
4295
+ }
4296
+
4297
+ /** @internal */
4298
+ export const DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema:
4299
+ z.ZodNativeEnum<
4300
+ typeof DeploymentGetConfigResponseFormatDeploymentsResponseType
4301
+ > = z.nativeEnum(DeploymentGetConfigResponseFormatDeploymentsResponseType);
4302
+
4303
+ /** @internal */
4304
+ export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
4305
+ z.ZodType<
4306
+ DeploymentGetConfigResponseFormatJsonSchema,
4307
+ z.ZodTypeDef,
4308
+ unknown
4309
+ > = z.object({
4310
+ name: z.string(),
4311
+ description: z.string().optional(),
4312
+ strict: z.boolean().optional(),
4313
+ schema: z.record(z.any()),
4314
+ });
4315
+
4316
+ export function deploymentGetConfigResponseFormatJsonSchemaFromJSON(
4317
+ jsonString: string,
4318
+ ): SafeParseResult<
4319
+ DeploymentGetConfigResponseFormatJsonSchema,
4320
+ SDKValidationError
4321
+ > {
4322
+ return safeParse(
4323
+ jsonString,
4324
+ (x) =>
4325
+ DeploymentGetConfigResponseFormatJsonSchema$inboundSchema.parse(
4326
+ JSON.parse(x),
4327
+ ),
4328
+ `Failed to parse 'DeploymentGetConfigResponseFormatJsonSchema' from JSON`,
4329
+ );
4330
+ }
4331
+
4332
+ /** @internal */
4333
+ export const ResponseFormat1$inboundSchema: z.ZodType<
4334
+ ResponseFormat1,
4335
+ z.ZodTypeDef,
4336
+ unknown
4337
+ > = z.object({
4338
+ type: DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema,
4339
+ display_name: z.string().optional(),
4340
+ json_schema: z.lazy(() =>
4341
+ DeploymentGetConfigResponseFormatJsonSchema$inboundSchema
4342
+ ),
4343
+ }).transform((v) => {
4344
+ return remap$(v, {
4345
+ "display_name": "displayName",
4346
+ "json_schema": "jsonSchema",
4347
+ });
4348
+ });
4349
+
4350
+ export function responseFormat1FromJSON(
4351
+ jsonString: string,
4352
+ ): SafeParseResult<ResponseFormat1, SDKValidationError> {
4353
+ return safeParse(
4354
+ jsonString,
4355
+ (x) => ResponseFormat1$inboundSchema.parse(JSON.parse(x)),
4356
+ `Failed to parse 'ResponseFormat1' from JSON`,
4357
+ );
4358
+ }
4359
+
4360
+ /** @internal */
4361
+ export const DeploymentGetConfigResponseFormat$inboundSchema: z.ZodType<
4362
+ DeploymentGetConfigResponseFormat,
4363
+ z.ZodTypeDef,
4364
+ unknown
4365
+ > = z.union([
4366
+ z.lazy(() => ResponseFormat1$inboundSchema),
4367
+ z.lazy(() => ResponseFormat2$inboundSchema),
4368
+ z.lazy(() => ResponseFormat3$inboundSchema),
4369
+ ResponseFormat4$inboundSchema,
4370
+ ResponseFormat5$inboundSchema,
4371
+ ResponseFormat6$inboundSchema,
4372
+ ]);
4373
+
4374
+ export function deploymentGetConfigResponseFormatFromJSON(
4375
+ jsonString: string,
4376
+ ): SafeParseResult<DeploymentGetConfigResponseFormat, SDKValidationError> {
4377
+ return safeParse(
4378
+ jsonString,
4379
+ (x) => DeploymentGetConfigResponseFormat$inboundSchema.parse(JSON.parse(x)),
4380
+ `Failed to parse 'DeploymentGetConfigResponseFormat' from JSON`,
4381
+ );
4382
+ }
4383
+
4384
+ /** @internal */
4385
+ export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
4386
+ typeof PhotoRealVersion
4387
+ > = z.nativeEnum(PhotoRealVersion);
4388
+
4389
+ /** @internal */
4390
+ export const DeploymentGetConfigEncodingFormat$inboundSchema: z.ZodNativeEnum<
4391
+ typeof DeploymentGetConfigEncodingFormat
4392
+ > = z.nativeEnum(DeploymentGetConfigEncodingFormat);
4393
+
4394
+ /** @internal */
4395
+ export const DeploymentGetConfigReasoningEffort$inboundSchema: z.ZodNativeEnum<
4396
+ typeof DeploymentGetConfigReasoningEffort
4397
+ > = z.nativeEnum(DeploymentGetConfigReasoningEffort);
4398
+
4399
+ /** @internal */
4400
+ export const DeploymentGetConfigVerbosity$inboundSchema: z.ZodNativeEnum<
4401
+ typeof DeploymentGetConfigVerbosity
4402
+ > = z.nativeEnum(DeploymentGetConfigVerbosity);
4403
+
4404
+ /** @internal */
4405
+ export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
4406
+ typeof ThinkingLevel
4407
+ > = z.nativeEnum(ThinkingLevel);
4408
+
4409
+ /** @internal */
4410
+ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
4411
+ DeploymentGetConfigParameters,
4412
+ z.ZodTypeDef,
4413
+ unknown
4414
+ > = z.object({
4415
+ temperature: z.number().optional(),
4416
+ maxTokens: z.number().optional(),
4417
+ topK: z.number().optional(),
4418
+ topP: z.number().optional(),
4419
+ frequencyPenalty: z.number().optional(),
4420
+ presencePenalty: z.number().optional(),
4421
+ numImages: z.number().optional(),
4422
+ seed: z.number().optional(),
4423
+ format: DeploymentGetConfigFormat$inboundSchema.optional(),
4424
+ dimensions: z.string().optional(),
4425
+ quality: z.string().optional(),
4426
+ style: z.string().optional(),
4427
+ responseFormat: z.nullable(
4428
+ z.union([
4429
+ z.lazy(() => ResponseFormat1$inboundSchema),
4430
+ z.lazy(() => ResponseFormat2$inboundSchema),
4431
+ z.lazy(() => ResponseFormat3$inboundSchema),
4432
+ ResponseFormat4$inboundSchema,
4433
+ ResponseFormat5$inboundSchema,
4434
+ ResponseFormat6$inboundSchema,
4435
+ ]),
4436
+ ).optional(),
4437
+ photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
4438
+ encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
4439
+ reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
4440
+ budgetTokens: z.number().optional(),
4441
+ verbosity: DeploymentGetConfigVerbosity$inboundSchema.optional(),
4442
+ thinkingLevel: ThinkingLevel$inboundSchema.optional(),
4443
+ }).transform((v) => {
4444
+ return remap$(v, {
4445
+ "encoding_format": "encodingFormat",
4446
+ });
4447
+ });
4448
+
4449
+ export function deploymentGetConfigParametersFromJSON(
4450
+ jsonString: string,
4451
+ ): SafeParseResult<DeploymentGetConfigParameters, SDKValidationError> {
4452
+ return safeParse(
4453
+ jsonString,
4454
+ (x) => DeploymentGetConfigParameters$inboundSchema.parse(JSON.parse(x)),
4455
+ `Failed to parse 'DeploymentGetConfigParameters' from JSON`,
4456
+ );
4457
+ }
4458
+
4459
+ /** @internal */
4460
+ export const DeploymentGetConfigDeploymentsType$inboundSchema: z.ZodNativeEnum<
4461
+ typeof DeploymentGetConfigDeploymentsType
4462
+ > = z.nativeEnum(DeploymentGetConfigDeploymentsType);
4463
+
4464
+ /** @internal */
4465
+ export const DeploymentGetConfigFunction$inboundSchema: z.ZodType<
4466
+ DeploymentGetConfigFunction,
4467
+ z.ZodTypeDef,
4468
+ unknown
4469
+ > = z.object({
4470
+ name: z.string(),
4471
+ description: z.string().optional(),
4472
+ parameters: z.record(z.any()).optional(),
4473
+ });
4474
+
4475
+ export function deploymentGetConfigFunctionFromJSON(
4476
+ jsonString: string,
4477
+ ): SafeParseResult<DeploymentGetConfigFunction, SDKValidationError> {
4478
+ return safeParse(
4479
+ jsonString,
4480
+ (x) => DeploymentGetConfigFunction$inboundSchema.parse(JSON.parse(x)),
4481
+ `Failed to parse 'DeploymentGetConfigFunction' from JSON`,
4482
+ );
4483
+ }
4484
+
4485
+ /** @internal */
4486
+ export const DeploymentGetConfigTools$inboundSchema: z.ZodType<
4487
+ DeploymentGetConfigTools,
4488
+ z.ZodTypeDef,
4489
+ unknown
4490
+ > = z.object({
4491
+ type: DeploymentGetConfigDeploymentsType$inboundSchema,
4492
+ function: z.lazy(() => DeploymentGetConfigFunction$inboundSchema),
4493
+ });
4494
+
4495
+ export function deploymentGetConfigToolsFromJSON(
4496
+ jsonString: string,
4497
+ ): SafeParseResult<DeploymentGetConfigTools, SDKValidationError> {
4498
+ return safeParse(
4499
+ jsonString,
4500
+ (x) => DeploymentGetConfigTools$inboundSchema.parse(JSON.parse(x)),
4501
+ `Failed to parse 'DeploymentGetConfigTools' from JSON`,
4502
+ );
4503
+ }
4504
+
4505
+ /** @internal */
4506
+ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
4507
+ DeploymentGetConfigResponseBody,
4508
+ z.ZodTypeDef,
4509
+ unknown
4510
+ > = z.object({
4511
+ id: z.string(),
4512
+ provider: z.string(),
4513
+ model: z.string(),
4514
+ type: DeploymentGetConfigType$inboundSchema.optional(),
4515
+ version: z.string(),
4516
+ messages: z.array(
4517
+ z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
4518
+ ),
4519
+ parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
4520
+ tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
4521
+ .optional(),
4522
+ });
4523
+
4524
+ export function deploymentGetConfigResponseBodyFromJSON(
4525
+ jsonString: string,
4526
+ ): SafeParseResult<DeploymentGetConfigResponseBody, SDKValidationError> {
4527
+ return safeParse(
4528
+ jsonString,
4529
+ (x) => DeploymentGetConfigResponseBody$inboundSchema.parse(JSON.parse(x)),
4530
+ `Failed to parse 'DeploymentGetConfigResponseBody' from JSON`,
4531
+ );
4532
+ }