@orq-ai/node 4.13.13 → 4.13.16

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 (580) hide show
  1. package/README.md +46 -37
  2. package/funcs/modelCatalogGet.d.ts +18 -0
  3. package/funcs/modelCatalogGet.d.ts.map +1 -0
  4. package/funcs/modelCatalogGet.js +121 -0
  5. package/funcs/modelCatalogGet.js.map +1 -0
  6. package/funcs/modelCatalogList.d.ts +18 -0
  7. package/funcs/modelCatalogList.d.ts.map +1 -0
  8. package/funcs/modelCatalogList.js +133 -0
  9. package/funcs/modelCatalogList.js.map +1 -0
  10. package/funcs/modelCatalogListOfferings.d.ts +18 -0
  11. package/funcs/modelCatalogListOfferings.d.ts.map +1 -0
  12. package/funcs/modelCatalogListOfferings.js +138 -0
  13. package/funcs/modelCatalogListOfferings.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/models/components/evaluatorresponsefunction.js +2 -2
  18. package/models/components/evaluatorresponsehttp.js +2 -2
  19. package/models/components/evaluatorresponsejsonschema.js +2 -2
  20. package/models/components/evaluatorresponsellm.js +2 -2
  21. package/models/components/evaluatorresponsepython.js +2 -2
  22. package/models/components/evaluatorresponseragas.js +2 -2
  23. package/models/components/evaluatorresponsetypescript.js +2 -2
  24. package/models/components/getmodelcatalogmodelresponse.d.ts +14 -0
  25. package/models/components/getmodelcatalogmodelresponse.d.ts.map +1 -0
  26. package/models/components/getmodelcatalogmodelresponse.js +51 -0
  27. package/models/components/getmodelcatalogmodelresponse.js.map +1 -0
  28. package/models/components/index.d.ts +6 -0
  29. package/models/components/index.d.ts.map +1 -1
  30. package/models/components/index.js +6 -0
  31. package/models/components/index.js.map +1 -1
  32. package/models/components/listmodelcatalogofferingsresponse.d.ts +25 -0
  33. package/models/components/listmodelcatalogofferingsresponse.d.ts.map +1 -0
  34. package/models/components/listmodelcatalogofferingsresponse.js +58 -0
  35. package/models/components/listmodelcatalogofferingsresponse.js.map +1 -0
  36. package/models/components/listmodelcatalogresponse.d.ts +25 -0
  37. package/models/components/listmodelcatalogresponse.d.ts.map +1 -0
  38. package/models/components/listmodelcatalogresponse.js +58 -0
  39. package/models/components/listmodelcatalogresponse.js.map +1 -0
  40. package/models/components/model.d.ts +129 -0
  41. package/models/components/model.d.ts.map +1 -0
  42. package/models/components/model.js +91 -0
  43. package/models/components/model.js.map +1 -0
  44. package/models/components/modelmodalities.d.ts +17 -0
  45. package/models/components/modelmodalities.d.ts.map +1 -0
  46. package/models/components/modelmodalities.js +51 -0
  47. package/models/components/modelmodalities.js.map +1 -0
  48. package/models/components/modelprovider.d.ts +17 -0
  49. package/models/components/modelprovider.d.ts.map +1 -0
  50. package/models/components/modelprovider.js +51 -0
  51. package/models/components/modelprovider.js.map +1 -0
  52. package/models/components/reasoningpart.js +1 -1
  53. package/models/operations/billing.js +1 -1
  54. package/models/operations/createannotationqueue.js +1 -1
  55. package/models/operations/createdataset.js +1 -1
  56. package/models/operations/createdatasetitem.js +5 -5
  57. package/models/operations/createdatasource.js +1 -1
  58. package/models/operations/createtool.js +6 -6
  59. package/models/operations/getalltools.js +6 -6
  60. package/models/operations/geteval.js +16 -16
  61. package/models/operations/getv2humanevalsets.js +2 -2
  62. package/models/operations/getv2humanevalsetsid.js +2 -2
  63. package/models/operations/index.d.ts +3 -0
  64. package/models/operations/index.d.ts.map +1 -1
  65. package/models/operations/index.js +3 -0
  66. package/models/operations/index.js.map +1 -1
  67. package/models/operations/listannotationqueues.js +1 -1
  68. package/models/operations/listdatasetdatapoints.js +5 -5
  69. package/models/operations/listdatasets.js +1 -1
  70. package/models/operations/listdatasources.js +1 -1
  71. package/models/operations/modelcatalogget.d.ts +15 -0
  72. package/models/operations/modelcatalogget.d.ts.map +1 -0
  73. package/models/operations/modelcatalogget.js +49 -0
  74. package/models/operations/modelcatalogget.js.map +1 -0
  75. package/models/operations/modelcataloglist.d.ts +103 -0
  76. package/models/operations/modelcataloglist.d.ts.map +1 -0
  77. package/models/operations/modelcataloglist.js +74 -0
  78. package/models/operations/modelcataloglist.js.map +1 -0
  79. package/models/operations/modelcataloglistofferings.d.ts +106 -0
  80. package/models/operations/modelcataloglistofferings.d.ts.map +1 -0
  81. package/models/operations/modelcataloglistofferings.js +73 -0
  82. package/models/operations/modelcataloglistofferings.js.map +1 -0
  83. package/models/operations/patchv2humanevalsetsid.js +2 -2
  84. package/models/operations/postv2feedbackevaluation.js +4 -4
  85. package/models/operations/postv2humanevalsets.js +2 -2
  86. package/models/operations/retrieveannotationqueue.js +1 -1
  87. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.js +28 -28
  88. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.js +28 -28
  89. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.js +6 -6
  90. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.js +26 -26
  91. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.js +6 -6
  92. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.js +31 -31
  93. package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.js +22 -22
  94. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.js +14 -14
  95. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.js +14 -14
  96. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.js +16 -16
  97. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.js +24 -24
  98. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.js +2 -2
  99. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.js +14 -14
  100. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.js +14 -14
  101. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.js +18 -18
  102. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.js +2 -2
  103. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.js +16 -16
  104. package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.js +18 -18
  105. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.js +4 -4
  106. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.js +21 -21
  107. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.js +5 -5
  108. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.js +25 -25
  109. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.js +7 -7
  110. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.js +21 -21
  111. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.js +3 -3
  112. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.js +18 -18
  113. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.js +11 -11
  114. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.js +24 -24
  115. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.js +7 -7
  116. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.js +21 -21
  117. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.js +28 -28
  118. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.js +9 -9
  119. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.js +21 -21
  120. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.js +2 -2
  121. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.js +15 -15
  122. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.js +28 -28
  123. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.js +7 -7
  124. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.js +21 -21
  125. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.js +7 -7
  126. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.js +2 -2
  127. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.js +4 -4
  128. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.js +17 -17
  129. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.js +30 -30
  130. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.js +11 -11
  131. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
  132. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.js +7 -7
  133. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.js +26 -26
  134. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.js +13 -13
  135. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.js +1 -1
  136. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.js +32 -32
  137. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.js +19 -19
  138. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.js +2 -2
  139. package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.js +17 -17
  140. package/models/operations/retrieveannotationqueueitemevaluationsannotator.js +32 -32
  141. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.js +28 -28
  142. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.js +20 -20
  143. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.js +28 -28
  144. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.js +24 -24
  145. package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.js +28 -28
  146. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.js +30 -30
  147. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.js +14 -14
  148. package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.js +4 -4
  149. package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
  150. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.js +31 -31
  151. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.js +32 -32
  152. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.js +1 -1
  153. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.js +1 -1
  154. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.js +33 -33
  155. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.js +1 -1
  156. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.js +33 -33
  157. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.js +1 -1
  158. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.js +33 -33
  159. package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.js +1 -1
  160. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.js +8 -8
  161. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.js +10 -10
  162. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.js +10 -10
  163. package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.js +10 -10
  164. package/models/operations/retrievedatapoint.js +5 -5
  165. package/models/operations/retrievedataset.js +1 -1
  166. package/models/operations/retrievedatasource.js +1 -1
  167. package/models/operations/retrievetool.js +6 -6
  168. package/models/operations/runagent.js +1 -1
  169. package/models/operations/streamrunagent.js +1 -1
  170. package/models/operations/twenty.js +1 -1
  171. package/models/operations/updateannotationqueue.js +1 -1
  172. package/models/operations/updatedatapoint.js +5 -5
  173. package/models/operations/updatedataset.js +1 -1
  174. package/models/operations/updatedatasource.js +1 -1
  175. package/models/operations/updatetool.js +7 -7
  176. package/package.json +7 -7
  177. package/packages/orq-rc/src/funcs/agentsCreate.ts +1 -1
  178. package/packages/orq-rc/src/funcs/agentsDelete.ts +1 -1
  179. package/packages/orq-rc/src/funcs/agentsInvoke.ts +1 -1
  180. package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
  181. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +1 -1
  182. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +1 -1
  183. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
  184. package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
  185. package/packages/orq-rc/src/funcs/agentsStream.ts +1 -1
  186. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
  187. package/packages/orq-rc/src/funcs/agentsUpdate.ts +1 -1
  188. package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +3 -0
  189. package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +3 -0
  190. package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +1 -1
  191. package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +3 -0
  192. package/packages/orq-rc/src/funcs/chunkingParse.ts +5 -4
  193. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +4 -7
  194. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +3 -0
  195. package/packages/orq-rc/src/funcs/evalsAll.ts +3 -0
  196. package/packages/orq-rc/src/funcs/evalsCreate.ts +3 -0
  197. package/packages/orq-rc/src/funcs/evalsDelete.ts +3 -0
  198. package/packages/orq-rc/src/funcs/evalsGet.ts +1 -5
  199. package/packages/orq-rc/src/funcs/evalsInvoke.ts +13 -24
  200. package/packages/orq-rc/src/funcs/evalsUpdate.ts +3 -0
  201. package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +1 -1
  202. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +11 -8
  203. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +8 -4
  204. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +11 -5
  205. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +3 -0
  206. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +11 -5
  207. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +8 -5
  208. package/packages/orq-rc/src/funcs/knowledgeList.ts +5 -4
  209. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +8 -4
  210. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +11 -5
  211. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +8 -5
  212. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +5 -4
  213. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +8 -4
  214. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +8 -4
  215. package/packages/orq-rc/src/funcs/knowledgeRetrieveFileUrl.ts +187 -0
  216. package/packages/orq-rc/src/funcs/knowledgeRetrieveProcessingStatus.ts +180 -0
  217. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +8 -5
  218. package/packages/orq-rc/src/funcs/knowledgeToggleChunk.ts +181 -0
  219. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +11 -5
  220. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +11 -5
  221. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +11 -5
  222. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +9 -14
  223. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +8 -5
  224. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +8 -5
  225. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +4 -4
  226. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +4 -4
  227. package/packages/orq-rc/src/funcs/memoryStoresList.ts +5 -4
  228. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +5 -4
  229. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +5 -4
  230. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +5 -4
  231. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +5 -4
  232. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +5 -4
  233. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +8 -5
  234. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +8 -5
  235. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +8 -5
  236. package/packages/orq-rc/src/funcs/modelCatalogGet.ts +168 -0
  237. package/packages/orq-rc/src/funcs/modelCatalogList.ts +184 -0
  238. package/packages/orq-rc/src/funcs/modelCatalogListOfferings.ts +186 -0
  239. package/packages/orq-rc/src/funcs/promptsCreate.ts +3 -0
  240. package/packages/orq-rc/src/funcs/promptsDelete.ts +3 -0
  241. package/packages/orq-rc/src/funcs/promptsUpdate.ts +3 -0
  242. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
  243. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
  244. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +3 -0
  245. package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
  246. package/packages/orq-rc/src/lib/config.ts +3 -3
  247. package/packages/orq-rc/src/models/components/agenticragconfig.ts +43 -0
  248. package/packages/orq-rc/src/models/components/agentresponserequest.ts +14 -10
  249. package/packages/orq-rc/src/models/components/alertcondition.ts +3 -4
  250. package/packages/orq-rc/src/models/components/chunk.ts +35 -0
  251. package/packages/orq-rc/src/models/components/chunkingcleanupoptions.ts +64 -0
  252. package/packages/orq-rc/src/models/components/chunkingconfiguration.ts +111 -0
  253. package/packages/orq-rc/src/models/components/chunkmetadata.ts +42 -0
  254. package/packages/orq-rc/src/models/components/chunkprocessingattempts.ts +42 -0
  255. package/packages/orq-rc/src/models/components/chunksservicecountrequest.ts +63 -0
  256. package/packages/orq-rc/src/models/components/chunksservicecountresponse.ts +31 -0
  257. package/packages/orq-rc/src/models/components/chunksservicedeletemanyrequest.ts +41 -0
  258. package/packages/orq-rc/src/models/components/chunksservicedeletemanyresponse.ts +39 -0
  259. package/packages/orq-rc/src/models/components/chunksservicelistpaginatedrequest.ts +71 -0
  260. package/packages/orq-rc/src/models/components/chunksservicelistpaginatedresponse.ts +58 -0
  261. package/packages/orq-rc/src/models/components/chunksservicelistresponse.ts +57 -0
  262. package/packages/orq-rc/src/models/components/chunksservicesetenabledrequest.ts +33 -0
  263. package/packages/orq-rc/src/models/components/chunksserviceupdaterequest.ts +68 -0
  264. package/packages/orq-rc/src/models/components/countmetadata.ts +86 -0
  265. package/packages/orq-rc/src/models/components/createguardrailrulerequest.ts +0 -3
  266. package/packages/orq-rc/src/models/components/creatememorydocumentrequest.ts +42 -0
  267. package/packages/orq-rc/src/models/components/creatememoryrequest.ts +39 -0
  268. package/packages/orq-rc/src/models/components/creatememorystorerequest.ts +59 -0
  269. package/packages/orq-rc/src/models/components/datasource.ts +108 -0
  270. package/packages/orq-rc/src/models/components/datasourceattachment.ts +64 -0
  271. package/packages/orq-rc/src/models/components/datasourcechunkingoptions.ts +53 -0
  272. package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +79 -0
  273. package/packages/orq-rc/src/models/components/datasourcesservicegetprocessingstatusresponse.ts +69 -0
  274. package/packages/orq-rc/src/models/components/datasourcesservicelistresponse.ts +55 -0
  275. package/packages/orq-rc/src/models/components/datasourcesserviceupdaterequest.ts +41 -0
  276. package/packages/orq-rc/src/models/components/domain.ts +12 -1
  277. package/packages/orq-rc/src/models/components/embeddingsconfig.ts +92 -0
  278. package/packages/orq-rc/src/models/components/embeddingsmodelparameters.ts +64 -0
  279. package/packages/orq-rc/src/models/components/evaluationcontext.ts +84 -0
  280. package/packages/orq-rc/src/models/components/evaluationresult.ts +108 -0
  281. package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
  282. package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
  283. package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  284. package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
  285. package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
  286. package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
  287. package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
  288. package/packages/orq-rc/src/models/components/getmodelcatalogmodelresponse.ts +35 -0
  289. package/packages/orq-rc/src/models/components/getuploadfileurlresponse.ts +37 -0
  290. package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -5
  291. package/packages/orq-rc/src/models/components/index.ts +78 -1
  292. package/packages/orq-rc/src/models/components/inputtokensdetails.ts +3 -0
  293. package/packages/orq-rc/src/models/components/internalretrievalconfig.ts +44 -0
  294. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +100 -160
  295. package/packages/orq-rc/src/models/components/invokeevaluatorrequest.ts +133 -0
  296. package/packages/orq-rc/src/models/components/invokeevaluatorresponse.ts +47 -0
  297. package/packages/orq-rc/src/models/components/knowledge.ts +558 -0
  298. package/packages/orq-rc/src/models/components/knowledgebasesservicecreaterequest.ts +439 -0
  299. package/packages/orq-rc/src/models/components/knowledgebasesservicelistresponse.ts +51 -0
  300. package/packages/orq-rc/src/models/components/knowledgebasesserviceupdaterequest.ts +649 -0
  301. package/packages/orq-rc/src/models/components/knowledgechunk.ts +120 -0
  302. package/packages/orq-rc/src/models/components/knowledgemetadata.ts +48 -0
  303. package/packages/orq-rc/src/models/components/knowledgesettings.ts +54 -0
  304. package/packages/orq-rc/src/models/components/knowledgeupdatesettings.ts +55 -0
  305. package/packages/orq-rc/src/models/components/listmemoriesresponse.ts +54 -0
  306. package/packages/orq-rc/src/models/components/listmemorydocumentsresponse.ts +57 -0
  307. package/packages/orq-rc/src/models/components/listmemorystoresresponse.ts +54 -0
  308. package/packages/orq-rc/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
  309. package/packages/orq-rc/src/models/components/listmodelcatalogresponse.ts +53 -0
  310. package/packages/orq-rc/src/models/components/memory.ts +74 -0
  311. package/packages/orq-rc/src/models/components/memorydocument.ts +65 -0
  312. package/packages/orq-rc/src/models/components/memorystore.ts +80 -0
  313. package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +54 -0
  314. package/packages/orq-rc/src/models/components/model.ts +203 -0
  315. package/packages/orq-rc/src/models/components/modelartificialanalysis.ts +95 -0
  316. package/packages/orq-rc/src/models/components/modelmodalities.ts +39 -0
  317. package/packages/orq-rc/src/models/components/modelparameter.ts +49 -0
  318. package/packages/orq-rc/src/models/components/modelprovider.ts +60 -0
  319. package/packages/orq-rc/src/models/components/parseresponse.ts +32 -0
  320. package/packages/orq-rc/src/models/components/processingattempt.ts +52 -0
  321. package/packages/orq-rc/src/models/components/processingerror.ts +33 -0
  322. package/packages/orq-rc/src/models/components/publicembeddingdata.ts +9 -6
  323. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  324. package/packages/orq-rc/src/models/components/rerankconfig.ts +58 -0
  325. package/packages/orq-rc/src/models/components/rerankmodelparameters.ts +31 -0
  326. package/packages/orq-rc/src/models/components/searchknowledgematch.ts +77 -0
  327. package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +1656 -0
  328. package/packages/orq-rc/src/models/components/searchknowledgeresponse.ts +38 -0
  329. package/packages/orq-rc/src/models/components/searchknowledgescores.ts +39 -0
  330. package/packages/orq-rc/src/models/components/searchoptions.ts +49 -0
  331. package/packages/orq-rc/src/models/components/searchrerankconfig.ts +51 -0
  332. package/packages/orq-rc/src/models/components/searchretrievalconfig.ts +153 -0
  333. package/packages/orq-rc/src/models/components/searchtype.ts +17 -0
  334. package/packages/orq-rc/src/models/components/structuredinput.ts +51 -0
  335. package/packages/orq-rc/src/models/components/structuredoutput.ts +44 -0
  336. package/packages/orq-rc/src/models/components/structuredtoolcall.ts +43 -0
  337. package/packages/orq-rc/src/models/components/updateguardrailrulerequest.ts +0 -3
  338. package/packages/orq-rc/src/models/components/updatememorydocumentrequest.ts +42 -0
  339. package/packages/orq-rc/src/models/components/updatememoryrequest.ts +31 -0
  340. package/packages/orq-rc/src/models/components/updatememorystorerequest.ts +37 -0
  341. package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +17 -10
  342. package/packages/orq-rc/src/models/components/uploadpostpolicy.ts +33 -0
  343. package/packages/orq-rc/src/models/components/upsertchunk.ts +59 -0
  344. package/packages/orq-rc/src/models/errors/index.ts +1 -1
  345. package/packages/orq-rc/src/models/errors/knowledgeapierror.ts +59 -0
  346. package/packages/orq-rc/src/models/operations/createannotationqueue.ts +1 -1
  347. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +171 -353
  348. package/packages/orq-rc/src/models/operations/createchunk.ts +4 -181
  349. package/packages/orq-rc/src/models/operations/createcompletion.ts +17 -125
  350. package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
  351. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +35 -41
  352. package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -486
  353. package/packages/orq-rc/src/models/operations/creatememory.ts +5 -106
  354. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +6 -110
  355. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +6 -6
  356. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  357. package/packages/orq-rc/src/models/operations/createtranscription.ts +28 -33
  358. package/packages/orq-rc/src/models/operations/deletechunk.ts +8 -17
  359. package/packages/orq-rc/src/models/operations/deletechunks.ts +7 -85
  360. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -6
  361. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -3
  362. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -6
  363. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -9
  364. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -3
  365. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +227 -398
  366. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +24 -24
  367. package/packages/orq-rc/src/models/operations/deploymentstream.ts +45 -160
  368. package/packages/orq-rc/src/models/operations/getallmemories.ts +1 -109
  369. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +1 -107
  370. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1 -149
  371. package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
  372. package/packages/orq-rc/src/models/operations/getchunkscount.ts +6 -141
  373. package/packages/orq-rc/src/models/operations/geteval.ts +25 -25
  374. package/packages/orq-rc/src/models/operations/getonechunk.ts +8 -135
  375. package/packages/orq-rc/src/models/operations/getonedatasourceprocessingstatus.ts +43 -0
  376. package/packages/orq-rc/src/models/operations/getonefileuploadurl.ts +54 -0
  377. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -616
  378. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
  379. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  380. package/packages/orq-rc/src/models/operations/index.ts +6 -2
  381. package/packages/orq-rc/src/models/operations/invokeeval.ts +5 -1298
  382. package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +50 -58
  383. package/packages/orq-rc/src/models/operations/listannotationqueues.ts +1 -1
  384. package/packages/orq-rc/src/models/operations/listchunks.ts +1 -159
  385. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +8 -269
  386. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
  387. package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
  388. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -242
  389. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -589
  390. package/packages/orq-rc/src/models/operations/modelcatalogget.ts +34 -0
  391. package/packages/orq-rc/src/models/operations/modelcataloglist.ts +163 -0
  392. package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +175 -0
  393. package/packages/orq-rc/src/models/operations/parse.ts +114 -89
  394. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  395. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +24 -30
  396. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  397. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +7 -11
  398. package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +1 -1
  399. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +16 -16
  400. package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
  401. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -182
  402. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -72
  403. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -72
  404. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -108
  405. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  406. package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
  407. package/packages/orq-rc/src/models/operations/searchknowledge.ts +13 -1728
  408. package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
  409. package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +1 -1
  410. package/packages/orq-rc/src/models/operations/updatechunk.ts +14 -200
  411. package/packages/orq-rc/src/models/operations/updatechunkenabled.ts +51 -0
  412. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
  413. package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
  414. package/packages/orq-rc/src/models/operations/updatedatasource.ts +7 -216
  415. package/packages/orq-rc/src/models/operations/updateknowledge.ts +8 -1223
  416. package/packages/orq-rc/src/models/operations/updatememory.ts +5 -102
  417. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +6 -113
  418. package/packages/orq-rc/src/models/operations/updatememorystore.ts +5 -152
  419. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  420. package/packages/orq-rc/src/sdk/agents.ts +9 -9
  421. package/packages/orq-rc/src/sdk/annotationqueues.ts +10 -1
  422. package/packages/orq-rc/src/sdk/chunking.ts +2 -1
  423. package/packages/orq-rc/src/sdk/datasets.ts +4 -1
  424. package/packages/orq-rc/src/sdk/evals.ts +18 -6
  425. package/packages/orq-rc/src/sdk/feedback.ts +0 -6
  426. package/packages/orq-rc/src/sdk/guardrailrules.ts +1 -1
  427. package/packages/orq-rc/src/sdk/knowledge.ts +151 -57
  428. package/packages/orq-rc/src/sdk/memorystores.ts +57 -56
  429. package/packages/orq-rc/src/sdk/modelcatalog.ts +64 -0
  430. package/packages/orq-rc/src/sdk/moderations.ts +3 -0
  431. package/packages/orq-rc/src/sdk/orqresponses.ts +2 -2
  432. package/packages/orq-rc/src/sdk/prompts.ts +9 -0
  433. package/packages/orq-rc/src/sdk/sdk.ts +21 -15
  434. package/packages/orq-rc/src/sdk/tools.ts +1 -1
  435. package/packages/orq-rc/src/sdk/transcriptions.ts +3 -0
  436. package/packages/orq-rc/src/sdk/translations.ts +3 -0
  437. package/sdk/modelcatalog.d.ts +27 -0
  438. package/sdk/modelcatalog.d.ts.map +1 -0
  439. package/sdk/modelcatalog.js +42 -0
  440. package/sdk/modelcatalog.js.map +1 -0
  441. package/sdk/sdk.d.ts +3 -0
  442. package/sdk/sdk.d.ts.map +1 -1
  443. package/sdk/sdk.js +4 -0
  444. package/sdk/sdk.js.map +1 -1
  445. package/src/funcs/modelCatalogGet.ts +168 -0
  446. package/src/funcs/modelCatalogList.ts +182 -0
  447. package/src/funcs/modelCatalogListOfferings.ts +187 -0
  448. package/src/lib/config.ts +3 -3
  449. package/src/models/components/evaluatorresponsefunction.ts +2 -2
  450. package/src/models/components/evaluatorresponsehttp.ts +2 -2
  451. package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
  452. package/src/models/components/evaluatorresponsellm.ts +2 -2
  453. package/src/models/components/evaluatorresponsepython.ts +2 -2
  454. package/src/models/components/evaluatorresponseragas.ts +2 -2
  455. package/src/models/components/evaluatorresponsetypescript.ts +2 -2
  456. package/src/models/components/getmodelcatalogmodelresponse.ts +35 -0
  457. package/src/models/components/index.ts +6 -0
  458. package/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
  459. package/src/models/components/listmodelcatalogresponse.ts +53 -0
  460. package/src/models/components/model.ts +206 -0
  461. package/src/models/components/modelmodalities.ts +39 -0
  462. package/src/models/components/modelprovider.ts +39 -0
  463. package/src/models/components/reasoningpart.ts +1 -1
  464. package/src/models/operations/billing.ts +1 -1
  465. package/src/models/operations/createannotationqueue.ts +1 -1
  466. package/src/models/operations/createdataset.ts +1 -1
  467. package/src/models/operations/createdatasetitem.ts +5 -5
  468. package/src/models/operations/createdatasource.ts +1 -1
  469. package/src/models/operations/createtool.ts +6 -6
  470. package/src/models/operations/getalltools.ts +6 -6
  471. package/src/models/operations/geteval.ts +16 -16
  472. package/src/models/operations/getv2humanevalsets.ts +2 -2
  473. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  474. package/src/models/operations/index.ts +3 -0
  475. package/src/models/operations/listannotationqueues.ts +1 -1
  476. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  477. package/src/models/operations/listdatasets.ts +1 -1
  478. package/src/models/operations/listdatasources.ts +1 -1
  479. package/src/models/operations/modelcatalogget.ts +34 -0
  480. package/src/models/operations/modelcataloglist.ts +147 -0
  481. package/src/models/operations/modelcataloglistofferings.ts +151 -0
  482. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  483. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  484. package/src/models/operations/postv2humanevalsets.ts +2 -2
  485. package/src/models/operations/retrieveannotationqueue.ts +1 -1
  486. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.ts +28 -28
  487. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.ts +28 -28
  488. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.ts +6 -6
  489. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.ts +26 -26
  490. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.ts +6 -6
  491. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.ts +31 -31
  492. package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.ts +22 -22
  493. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.ts +14 -14
  494. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.ts +14 -14
  495. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.ts +16 -16
  496. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.ts +24 -24
  497. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.ts +2 -2
  498. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.ts +14 -14
  499. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.ts +14 -14
  500. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.ts +18 -18
  501. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.ts +2 -2
  502. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.ts +16 -16
  503. package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.ts +18 -18
  504. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.ts +4 -4
  505. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.ts +21 -21
  506. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.ts +5 -5
  507. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.ts +25 -25
  508. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.ts +7 -7
  509. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.ts +21 -21
  510. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.ts +3 -3
  511. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.ts +18 -18
  512. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.ts +11 -11
  513. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.ts +24 -24
  514. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.ts +7 -7
  515. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.ts +21 -21
  516. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.ts +28 -28
  517. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.ts +9 -9
  518. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.ts +21 -21
  519. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.ts +2 -2
  520. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.ts +15 -15
  521. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.ts +28 -28
  522. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.ts +7 -7
  523. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.ts +21 -21
  524. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.ts +7 -7
  525. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.ts +2 -2
  526. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.ts +4 -4
  527. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.ts +17 -17
  528. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.ts +30 -30
  529. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.ts +11 -11
  530. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
  531. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.ts +7 -7
  532. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.ts +26 -26
  533. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.ts +13 -13
  534. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.ts +1 -1
  535. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.ts +32 -32
  536. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.ts +19 -19
  537. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.ts +2 -2
  538. package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.ts +17 -17
  539. package/src/models/operations/retrieveannotationqueueitemevaluationsannotator.ts +32 -32
  540. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.ts +28 -28
  541. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.ts +20 -20
  542. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.ts +28 -28
  543. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.ts +24 -24
  544. package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.ts +28 -28
  545. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.ts +30 -30
  546. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.ts +14 -14
  547. package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.ts +4 -4
  548. package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
  549. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.ts +31 -31
  550. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.ts +32 -32
  551. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.ts +1 -1
  552. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.ts +1 -1
  553. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.ts +33 -33
  554. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.ts +1 -1
  555. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.ts +33 -33
  556. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.ts +1 -1
  557. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.ts +33 -33
  558. package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.ts +1 -1
  559. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.ts +8 -8
  560. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.ts +10 -10
  561. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.ts +10 -10
  562. package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.ts +10 -10
  563. package/src/models/operations/retrievedatapoint.ts +5 -5
  564. package/src/models/operations/retrievedataset.ts +1 -1
  565. package/src/models/operations/retrievedatasource.ts +1 -1
  566. package/src/models/operations/retrievetool.ts +6 -6
  567. package/src/models/operations/runagent.ts +1 -1
  568. package/src/models/operations/streamrunagent.ts +1 -1
  569. package/src/models/operations/twenty.ts +1 -1
  570. package/src/models/operations/updateannotationqueue.ts +1 -1
  571. package/src/models/operations/updatedatapoint.ts +5 -5
  572. package/src/models/operations/updatedataset.ts +1 -1
  573. package/src/models/operations/updatedatasource.ts +1 -1
  574. package/src/models/operations/updatetool.ts +7 -7
  575. package/src/sdk/modelcatalog.ts +64 -0
  576. package/src/sdk/sdk.ts +6 -0
  577. package/packages/orq-rc/src/models/components/evaluatorvariablevalue.ts +0 -38
  578. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  579. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1117
  580. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
@@ -1,1117 +0,0 @@
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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export const CreateKnowledgeRequestBodyKnowledgeType = {
13
- External: "external",
14
- } as const;
15
- export type CreateKnowledgeRequestBodyKnowledgeType = ClosedEnum<
16
- typeof CreateKnowledgeRequestBodyKnowledgeType
17
- >;
18
-
19
- export type ExternalConfig = {
20
- /**
21
- * The name of the external knowledge base.
22
- */
23
- name: string;
24
- /**
25
- * The API URL of the external knowledge base.
26
- */
27
- apiUrl: string;
28
- /**
29
- * The API key to access the external knowledge base.
30
- */
31
- apiKey: string;
32
- };
33
-
34
- /**
35
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
36
- */
37
- export type RequestBodyRerankConfig = {
38
- /**
39
- * The number of results to return by the reranking model
40
- */
41
- topK?: number | undefined;
42
- /**
43
- * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
44
- */
45
- rerankThreshold?: number | undefined;
46
- /**
47
- * The rerank model to use for the knowledge base.
48
- */
49
- rerankModel: string;
50
- };
51
-
52
- /**
53
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
54
- */
55
- export type RequestBodyAgenticRagConfig = {
56
- /**
57
- * The model to use for the Agentic RAG
58
- */
59
- model: string;
60
- };
61
-
62
- /**
63
- * The retrieval settings for the knowledge base.
64
- */
65
- export type RequestBodyRetrievalSettings = {
66
- /**
67
- * The number of results to return from the search.
68
- */
69
- topK?: number | undefined;
70
- /**
71
- * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
72
- */
73
- threshold?: number | undefined;
74
- /**
75
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
76
- */
77
- rerankConfig?: RequestBodyRerankConfig | null | undefined;
78
- /**
79
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
80
- */
81
- agenticRagConfig?: RequestBodyAgenticRagConfig | null | undefined;
82
- };
83
-
84
- export type RequestBody2 = {
85
- type?: CreateKnowledgeRequestBodyKnowledgeType | undefined;
86
- key: string;
87
- description?: string | undefined;
88
- externalConfig: ExternalConfig;
89
- /**
90
- * The retrieval settings for the knowledge base.
91
- */
92
- retrievalSettings?: RequestBodyRetrievalSettings | undefined;
93
- /**
94
- * Entity storage path.
95
- *
96
- * @remarks
97
- *
98
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
99
- *
100
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
101
- */
102
- path: string;
103
- };
104
-
105
- export const CreateKnowledgeRequestBodyType = {
106
- Internal: "internal",
107
- } as const;
108
- export type CreateKnowledgeRequestBodyType = ClosedEnum<
109
- typeof CreateKnowledgeRequestBodyType
110
- >;
111
-
112
- /**
113
- * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
114
- */
115
- export const RetrievalType = {
116
- VectorSearch: "vector_search",
117
- KeywordSearch: "keyword_search",
118
- HybridSearch: "hybrid_search",
119
- } as const;
120
- /**
121
- * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
122
- */
123
- export type RetrievalType = ClosedEnum<typeof RetrievalType>;
124
-
125
- /**
126
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
127
- */
128
- export type CreateKnowledgeRequestBodyRerankConfig = {
129
- /**
130
- * The number of results to return by the reranking model
131
- */
132
- topK?: number | undefined;
133
- /**
134
- * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
135
- */
136
- rerankThreshold?: number | undefined;
137
- /**
138
- * The rerank model to use for the knowledge base.
139
- */
140
- rerankModel: string;
141
- };
142
-
143
- /**
144
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
145
- */
146
- export type CreateKnowledgeRequestBodyAgenticRagConfig = {
147
- /**
148
- * The model to use for the Agentic RAG
149
- */
150
- model: string;
151
- };
152
-
153
- /**
154
- * The retrieval settings for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
155
- */
156
- export type RetrievalSettings = {
157
- /**
158
- * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
159
- */
160
- retrievalType?: RetrievalType | undefined;
161
- /**
162
- * The number of results to return from the search.
163
- */
164
- topK?: number | undefined;
165
- /**
166
- * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
167
- */
168
- threshold?: number | undefined;
169
- /**
170
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
171
- */
172
- rerankConfig?: CreateKnowledgeRequestBodyRerankConfig | null | undefined;
173
- /**
174
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
175
- */
176
- agenticRagConfig?:
177
- | CreateKnowledgeRequestBodyAgenticRagConfig
178
- | null
179
- | undefined;
180
- };
181
-
182
- export type CreateKnowledgeRequestBody1 = {
183
- type?: CreateKnowledgeRequestBodyType | undefined;
184
- key: string;
185
- description?: string | undefined;
186
- /**
187
- * The embeddings model to use for the knowledge base in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model will be used to embed the chunks when they are added to the knowledge base.
188
- */
189
- embeddingModel: string;
190
- /**
191
- * The retrieval settings for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
192
- */
193
- retrievalSettings?: RetrievalSettings | undefined;
194
- /**
195
- * Entity storage path.
196
- *
197
- * @remarks
198
- *
199
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
200
- *
201
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
202
- */
203
- path: string;
204
- };
205
-
206
- export type CreateKnowledgeRequestBody =
207
- | CreateKnowledgeRequestBody1
208
- | RequestBody2;
209
-
210
- export const CreateKnowledgeResponseBodyKnowledgeType = {
211
- External: "external",
212
- } as const;
213
- export type CreateKnowledgeResponseBodyKnowledgeType = ClosedEnum<
214
- typeof CreateKnowledgeResponseBodyKnowledgeType
215
- >;
216
-
217
- /**
218
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
219
- */
220
- export type CreateKnowledgeResponseBodyRerankConfig = {
221
- /**
222
- * The number of results to return by the reranking model
223
- */
224
- topK: number;
225
- /**
226
- * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
227
- */
228
- rerankThreshold: number;
229
- /**
230
- * The rerank model to use for the knowledge base.
231
- */
232
- rerankModel: string;
233
- };
234
-
235
- /**
236
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
237
- */
238
- export type CreateKnowledgeResponseBodyAgenticRagConfig = {
239
- /**
240
- * The model to use for the Agentic RAG
241
- */
242
- model: string;
243
- };
244
-
245
- /**
246
- * The retrieval settings for the knowledge base.
247
- */
248
- export type CreateKnowledgeResponseBodyRetrievalSettings = {
249
- /**
250
- * The number of results to return from the search.
251
- */
252
- topK: number;
253
- /**
254
- * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
255
- */
256
- threshold: number;
257
- /**
258
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
259
- */
260
- rerankConfig?: CreateKnowledgeResponseBodyRerankConfig | null | undefined;
261
- /**
262
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
263
- */
264
- agenticRagConfig?:
265
- | CreateKnowledgeResponseBodyAgenticRagConfig
266
- | null
267
- | undefined;
268
- };
269
-
270
- export type ResponseBodyExternalConfig = {
271
- /**
272
- * The name of the external knowledge base.
273
- */
274
- name: string;
275
- /**
276
- * The API URL of the external knowledge base.
277
- */
278
- apiUrl: string;
279
- };
280
-
281
- export type ResponseBody2 = {
282
- /**
283
- * The unique identifier of the knowledge base.
284
- */
285
- id: string;
286
- /**
287
- * The creation date of the knowledge base.
288
- */
289
- created: string;
290
- /**
291
- * The description of the knowledge base.
292
- */
293
- description?: string | null | undefined;
294
- /**
295
- * The unique key of the knowledge base.
296
- */
297
- key: string;
298
- /**
299
- * The project/domain ID of the knowledge base.
300
- */
301
- domainId: string;
302
- /**
303
- * Entity storage path.
304
- *
305
- * @remarks
306
- *
307
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
308
- *
309
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
310
- */
311
- path?: string | undefined;
312
- createdById?: string | null | undefined;
313
- updatedById?: string | null | undefined;
314
- /**
315
- * The last update date of the knowledge base.
316
- */
317
- updated: string;
318
- type: CreateKnowledgeResponseBodyKnowledgeType;
319
- /**
320
- * The retrieval settings for the knowledge base.
321
- */
322
- retrievalSettings?: CreateKnowledgeResponseBodyRetrievalSettings | undefined;
323
- externalConfig: ResponseBodyExternalConfig;
324
- };
325
-
326
- export const CreateKnowledgeResponseBodyType = {
327
- Internal: "internal",
328
- } as const;
329
- export type CreateKnowledgeResponseBodyType = ClosedEnum<
330
- typeof CreateKnowledgeResponseBodyType
331
- >;
332
-
333
- /**
334
- * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
335
- */
336
- export const ResponseBodyRetrievalType = {
337
- VectorSearch: "vector_search",
338
- KeywordSearch: "keyword_search",
339
- HybridSearch: "hybrid_search",
340
- } as const;
341
- /**
342
- * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
343
- */
344
- export type ResponseBodyRetrievalType = ClosedEnum<
345
- typeof ResponseBodyRetrievalType
346
- >;
347
-
348
- /**
349
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
350
- */
351
- export type ResponseBodyRerankConfig = {
352
- /**
353
- * The number of results to return by the reranking model
354
- */
355
- topK: number;
356
- /**
357
- * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
358
- */
359
- rerankThreshold: number;
360
- /**
361
- * The rerank model to use for the knowledge base.
362
- */
363
- rerankModel: string;
364
- };
365
-
366
- /**
367
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
368
- */
369
- export type ResponseBodyAgenticRagConfig = {
370
- /**
371
- * The model to use for the Agentic RAG
372
- */
373
- model: string;
374
- };
375
-
376
- /**
377
- * The retrieval settings for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
378
- */
379
- export type ResponseBodyRetrievalSettings = {
380
- /**
381
- * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
382
- */
383
- retrievalType: ResponseBodyRetrievalType;
384
- /**
385
- * The number of results to return from the search.
386
- */
387
- topK: number;
388
- /**
389
- * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
390
- */
391
- threshold: number;
392
- /**
393
- * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
394
- */
395
- rerankConfig?: ResponseBodyRerankConfig | null | undefined;
396
- /**
397
- * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
398
- */
399
- agenticRagConfig?: ResponseBodyAgenticRagConfig | null | undefined;
400
- };
401
-
402
- export type ResponseBody1 = {
403
- /**
404
- * The unique identifier of the knowledge base.
405
- */
406
- id: string;
407
- /**
408
- * The creation date of the knowledge base.
409
- */
410
- created: string;
411
- /**
412
- * The description of the knowledge base.
413
- */
414
- description?: string | null | undefined;
415
- /**
416
- * The unique key of the knowledge base.
417
- */
418
- key: string;
419
- /**
420
- * The project/domain ID of the knowledge base.
421
- */
422
- domainId: string;
423
- /**
424
- * Entity storage path.
425
- *
426
- * @remarks
427
- *
428
- * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
429
- *
430
- * With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
431
- */
432
- path?: string | undefined;
433
- createdById?: string | null | undefined;
434
- updatedById?: string | null | undefined;
435
- /**
436
- * The last update date of the knowledge base.
437
- */
438
- updated: string;
439
- type: CreateKnowledgeResponseBodyType;
440
- /**
441
- * The retrieval settings for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
442
- */
443
- retrievalSettings?: ResponseBodyRetrievalSettings | undefined;
444
- /**
445
- * The embeddings model used for the knowledge base.
446
- */
447
- model: string;
448
- };
449
-
450
- /**
451
- * Knowledge successfully created
452
- */
453
- export type CreateKnowledgeResponseBody = ResponseBody1 | ResponseBody2;
454
-
455
- /** @internal */
456
- export const CreateKnowledgeRequestBodyKnowledgeType$outboundSchema:
457
- z.ZodNativeEnum<typeof CreateKnowledgeRequestBodyKnowledgeType> = z
458
- .nativeEnum(CreateKnowledgeRequestBodyKnowledgeType);
459
-
460
- /** @internal */
461
- export type ExternalConfig$Outbound = {
462
- name: string;
463
- api_url: string;
464
- api_key: string;
465
- };
466
-
467
- /** @internal */
468
- export const ExternalConfig$outboundSchema: z.ZodType<
469
- ExternalConfig$Outbound,
470
- z.ZodTypeDef,
471
- ExternalConfig
472
- > = z.object({
473
- name: z.string(),
474
- apiUrl: z.string(),
475
- apiKey: z.string(),
476
- }).transform((v) => {
477
- return remap$(v, {
478
- apiUrl: "api_url",
479
- apiKey: "api_key",
480
- });
481
- });
482
-
483
- export function externalConfigToJSON(externalConfig: ExternalConfig): string {
484
- return JSON.stringify(ExternalConfig$outboundSchema.parse(externalConfig));
485
- }
486
-
487
- /** @internal */
488
- export type RequestBodyRerankConfig$Outbound = {
489
- top_k: number;
490
- rerank_threshold: number;
491
- rerank_model: string;
492
- };
493
-
494
- /** @internal */
495
- export const RequestBodyRerankConfig$outboundSchema: z.ZodType<
496
- RequestBodyRerankConfig$Outbound,
497
- z.ZodTypeDef,
498
- RequestBodyRerankConfig
499
- > = z.object({
500
- topK: z.number().int().default(5),
501
- rerankThreshold: z.number().default(0.5),
502
- rerankModel: z.string(),
503
- }).transform((v) => {
504
- return remap$(v, {
505
- topK: "top_k",
506
- rerankThreshold: "rerank_threshold",
507
- rerankModel: "rerank_model",
508
- });
509
- });
510
-
511
- export function requestBodyRerankConfigToJSON(
512
- requestBodyRerankConfig: RequestBodyRerankConfig,
513
- ): string {
514
- return JSON.stringify(
515
- RequestBodyRerankConfig$outboundSchema.parse(requestBodyRerankConfig),
516
- );
517
- }
518
-
519
- /** @internal */
520
- export type RequestBodyAgenticRagConfig$Outbound = {
521
- model: string;
522
- };
523
-
524
- /** @internal */
525
- export const RequestBodyAgenticRagConfig$outboundSchema: z.ZodType<
526
- RequestBodyAgenticRagConfig$Outbound,
527
- z.ZodTypeDef,
528
- RequestBodyAgenticRagConfig
529
- > = z.object({
530
- model: z.string(),
531
- });
532
-
533
- export function requestBodyAgenticRagConfigToJSON(
534
- requestBodyAgenticRagConfig: RequestBodyAgenticRagConfig,
535
- ): string {
536
- return JSON.stringify(
537
- RequestBodyAgenticRagConfig$outboundSchema.parse(
538
- requestBodyAgenticRagConfig,
539
- ),
540
- );
541
- }
542
-
543
- /** @internal */
544
- export type RequestBodyRetrievalSettings$Outbound = {
545
- top_k: number;
546
- threshold: number;
547
- rerank_config?: RequestBodyRerankConfig$Outbound | null | undefined;
548
- agentic_rag_config?: RequestBodyAgenticRagConfig$Outbound | null | undefined;
549
- };
550
-
551
- /** @internal */
552
- export const RequestBodyRetrievalSettings$outboundSchema: z.ZodType<
553
- RequestBodyRetrievalSettings$Outbound,
554
- z.ZodTypeDef,
555
- RequestBodyRetrievalSettings
556
- > = z.object({
557
- topK: z.number().int().default(5),
558
- threshold: z.number().default(0),
559
- rerankConfig: z.nullable(z.lazy(() => RequestBodyRerankConfig$outboundSchema))
560
- .optional(),
561
- agenticRagConfig: z.nullable(
562
- z.lazy(() => RequestBodyAgenticRagConfig$outboundSchema),
563
- ).optional(),
564
- }).transform((v) => {
565
- return remap$(v, {
566
- topK: "top_k",
567
- rerankConfig: "rerank_config",
568
- agenticRagConfig: "agentic_rag_config",
569
- });
570
- });
571
-
572
- export function requestBodyRetrievalSettingsToJSON(
573
- requestBodyRetrievalSettings: RequestBodyRetrievalSettings,
574
- ): string {
575
- return JSON.stringify(
576
- RequestBodyRetrievalSettings$outboundSchema.parse(
577
- requestBodyRetrievalSettings,
578
- ),
579
- );
580
- }
581
-
582
- /** @internal */
583
- export type RequestBody2$Outbound = {
584
- type: string;
585
- key: string;
586
- description?: string | undefined;
587
- external_config: ExternalConfig$Outbound;
588
- retrieval_settings?: RequestBodyRetrievalSettings$Outbound | undefined;
589
- path: string;
590
- };
591
-
592
- /** @internal */
593
- export const RequestBody2$outboundSchema: z.ZodType<
594
- RequestBody2$Outbound,
595
- z.ZodTypeDef,
596
- RequestBody2
597
- > = z.object({
598
- type: CreateKnowledgeRequestBodyKnowledgeType$outboundSchema.default(
599
- "external",
600
- ),
601
- key: z.string(),
602
- description: z.string().optional(),
603
- externalConfig: z.lazy(() => ExternalConfig$outboundSchema),
604
- retrievalSettings: z.lazy(() => RequestBodyRetrievalSettings$outboundSchema)
605
- .optional(),
606
- path: z.string(),
607
- }).transform((v) => {
608
- return remap$(v, {
609
- externalConfig: "external_config",
610
- retrievalSettings: "retrieval_settings",
611
- });
612
- });
613
-
614
- export function requestBody2ToJSON(requestBody2: RequestBody2): string {
615
- return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
616
- }
617
-
618
- /** @internal */
619
- export const CreateKnowledgeRequestBodyType$outboundSchema: z.ZodNativeEnum<
620
- typeof CreateKnowledgeRequestBodyType
621
- > = z.nativeEnum(CreateKnowledgeRequestBodyType);
622
-
623
- /** @internal */
624
- export const RetrievalType$outboundSchema: z.ZodNativeEnum<
625
- typeof RetrievalType
626
- > = z.nativeEnum(RetrievalType);
627
-
628
- /** @internal */
629
- export type CreateKnowledgeRequestBodyRerankConfig$Outbound = {
630
- top_k: number;
631
- rerank_threshold: number;
632
- rerank_model: string;
633
- };
634
-
635
- /** @internal */
636
- export const CreateKnowledgeRequestBodyRerankConfig$outboundSchema: z.ZodType<
637
- CreateKnowledgeRequestBodyRerankConfig$Outbound,
638
- z.ZodTypeDef,
639
- CreateKnowledgeRequestBodyRerankConfig
640
- > = z.object({
641
- topK: z.number().int().default(5),
642
- rerankThreshold: z.number().default(0.5),
643
- rerankModel: z.string(),
644
- }).transform((v) => {
645
- return remap$(v, {
646
- topK: "top_k",
647
- rerankThreshold: "rerank_threshold",
648
- rerankModel: "rerank_model",
649
- });
650
- });
651
-
652
- export function createKnowledgeRequestBodyRerankConfigToJSON(
653
- createKnowledgeRequestBodyRerankConfig:
654
- CreateKnowledgeRequestBodyRerankConfig,
655
- ): string {
656
- return JSON.stringify(
657
- CreateKnowledgeRequestBodyRerankConfig$outboundSchema.parse(
658
- createKnowledgeRequestBodyRerankConfig,
659
- ),
660
- );
661
- }
662
-
663
- /** @internal */
664
- export type CreateKnowledgeRequestBodyAgenticRagConfig$Outbound = {
665
- model: string;
666
- };
667
-
668
- /** @internal */
669
- export const CreateKnowledgeRequestBodyAgenticRagConfig$outboundSchema:
670
- z.ZodType<
671
- CreateKnowledgeRequestBodyAgenticRagConfig$Outbound,
672
- z.ZodTypeDef,
673
- CreateKnowledgeRequestBodyAgenticRagConfig
674
- > = z.object({
675
- model: z.string(),
676
- });
677
-
678
- export function createKnowledgeRequestBodyAgenticRagConfigToJSON(
679
- createKnowledgeRequestBodyAgenticRagConfig:
680
- CreateKnowledgeRequestBodyAgenticRagConfig,
681
- ): string {
682
- return JSON.stringify(
683
- CreateKnowledgeRequestBodyAgenticRagConfig$outboundSchema.parse(
684
- createKnowledgeRequestBodyAgenticRagConfig,
685
- ),
686
- );
687
- }
688
-
689
- /** @internal */
690
- export type RetrievalSettings$Outbound = {
691
- retrieval_type: string;
692
- top_k: number;
693
- threshold: number;
694
- rerank_config?:
695
- | CreateKnowledgeRequestBodyRerankConfig$Outbound
696
- | null
697
- | undefined;
698
- agentic_rag_config?:
699
- | CreateKnowledgeRequestBodyAgenticRagConfig$Outbound
700
- | null
701
- | undefined;
702
- };
703
-
704
- /** @internal */
705
- export const RetrievalSettings$outboundSchema: z.ZodType<
706
- RetrievalSettings$Outbound,
707
- z.ZodTypeDef,
708
- RetrievalSettings
709
- > = z.object({
710
- retrievalType: RetrievalType$outboundSchema.default("hybrid_search"),
711
- topK: z.number().int().default(5),
712
- threshold: z.number().default(0),
713
- rerankConfig: z.nullable(
714
- z.lazy(() => CreateKnowledgeRequestBodyRerankConfig$outboundSchema),
715
- ).optional(),
716
- agenticRagConfig: z.nullable(
717
- z.lazy(() => CreateKnowledgeRequestBodyAgenticRagConfig$outboundSchema),
718
- ).optional(),
719
- }).transform((v) => {
720
- return remap$(v, {
721
- retrievalType: "retrieval_type",
722
- topK: "top_k",
723
- rerankConfig: "rerank_config",
724
- agenticRagConfig: "agentic_rag_config",
725
- });
726
- });
727
-
728
- export function retrievalSettingsToJSON(
729
- retrievalSettings: RetrievalSettings,
730
- ): string {
731
- return JSON.stringify(
732
- RetrievalSettings$outboundSchema.parse(retrievalSettings),
733
- );
734
- }
735
-
736
- /** @internal */
737
- export type CreateKnowledgeRequestBody1$Outbound = {
738
- type: string;
739
- key: string;
740
- description?: string | undefined;
741
- embedding_model: string;
742
- retrieval_settings?: RetrievalSettings$Outbound | undefined;
743
- path: string;
744
- };
745
-
746
- /** @internal */
747
- export const CreateKnowledgeRequestBody1$outboundSchema: z.ZodType<
748
- CreateKnowledgeRequestBody1$Outbound,
749
- z.ZodTypeDef,
750
- CreateKnowledgeRequestBody1
751
- > = z.object({
752
- type: CreateKnowledgeRequestBodyType$outboundSchema.default("internal"),
753
- key: z.string(),
754
- description: z.string().optional(),
755
- embeddingModel: z.string(),
756
- retrievalSettings: z.lazy(() => RetrievalSettings$outboundSchema).optional(),
757
- path: z.string(),
758
- }).transform((v) => {
759
- return remap$(v, {
760
- embeddingModel: "embedding_model",
761
- retrievalSettings: "retrieval_settings",
762
- });
763
- });
764
-
765
- export function createKnowledgeRequestBody1ToJSON(
766
- createKnowledgeRequestBody1: CreateKnowledgeRequestBody1,
767
- ): string {
768
- return JSON.stringify(
769
- CreateKnowledgeRequestBody1$outboundSchema.parse(
770
- createKnowledgeRequestBody1,
771
- ),
772
- );
773
- }
774
-
775
- /** @internal */
776
- export type CreateKnowledgeRequestBody$Outbound =
777
- | CreateKnowledgeRequestBody1$Outbound
778
- | RequestBody2$Outbound;
779
-
780
- /** @internal */
781
- export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
782
- CreateKnowledgeRequestBody$Outbound,
783
- z.ZodTypeDef,
784
- CreateKnowledgeRequestBody
785
- > = z.union([
786
- z.lazy(() => CreateKnowledgeRequestBody1$outboundSchema),
787
- z.lazy(() => RequestBody2$outboundSchema),
788
- ]);
789
-
790
- export function createKnowledgeRequestBodyToJSON(
791
- createKnowledgeRequestBody: CreateKnowledgeRequestBody,
792
- ): string {
793
- return JSON.stringify(
794
- CreateKnowledgeRequestBody$outboundSchema.parse(createKnowledgeRequestBody),
795
- );
796
- }
797
-
798
- /** @internal */
799
- export const CreateKnowledgeResponseBodyKnowledgeType$inboundSchema:
800
- z.ZodNativeEnum<typeof CreateKnowledgeResponseBodyKnowledgeType> = z
801
- .nativeEnum(CreateKnowledgeResponseBodyKnowledgeType);
802
-
803
- /** @internal */
804
- export const CreateKnowledgeResponseBodyRerankConfig$inboundSchema: z.ZodType<
805
- CreateKnowledgeResponseBodyRerankConfig,
806
- z.ZodTypeDef,
807
- unknown
808
- > = z.object({
809
- top_k: z.number().int().default(5),
810
- rerank_threshold: z.number().default(0.5),
811
- rerank_model: z.string(),
812
- }).transform((v) => {
813
- return remap$(v, {
814
- "top_k": "topK",
815
- "rerank_threshold": "rerankThreshold",
816
- "rerank_model": "rerankModel",
817
- });
818
- });
819
-
820
- export function createKnowledgeResponseBodyRerankConfigFromJSON(
821
- jsonString: string,
822
- ): SafeParseResult<
823
- CreateKnowledgeResponseBodyRerankConfig,
824
- SDKValidationError
825
- > {
826
- return safeParse(
827
- jsonString,
828
- (x) =>
829
- CreateKnowledgeResponseBodyRerankConfig$inboundSchema.parse(
830
- JSON.parse(x),
831
- ),
832
- `Failed to parse 'CreateKnowledgeResponseBodyRerankConfig' from JSON`,
833
- );
834
- }
835
-
836
- /** @internal */
837
- export const CreateKnowledgeResponseBodyAgenticRagConfig$inboundSchema:
838
- z.ZodType<
839
- CreateKnowledgeResponseBodyAgenticRagConfig,
840
- z.ZodTypeDef,
841
- unknown
842
- > = z.object({
843
- model: z.string(),
844
- });
845
-
846
- export function createKnowledgeResponseBodyAgenticRagConfigFromJSON(
847
- jsonString: string,
848
- ): SafeParseResult<
849
- CreateKnowledgeResponseBodyAgenticRagConfig,
850
- SDKValidationError
851
- > {
852
- return safeParse(
853
- jsonString,
854
- (x) =>
855
- CreateKnowledgeResponseBodyAgenticRagConfig$inboundSchema.parse(
856
- JSON.parse(x),
857
- ),
858
- `Failed to parse 'CreateKnowledgeResponseBodyAgenticRagConfig' from JSON`,
859
- );
860
- }
861
-
862
- /** @internal */
863
- export const CreateKnowledgeResponseBodyRetrievalSettings$inboundSchema:
864
- z.ZodType<
865
- CreateKnowledgeResponseBodyRetrievalSettings,
866
- z.ZodTypeDef,
867
- unknown
868
- > = z.object({
869
- top_k: z.number().int().default(5),
870
- threshold: z.number().default(0),
871
- rerank_config: z.nullable(
872
- z.lazy(() => CreateKnowledgeResponseBodyRerankConfig$inboundSchema),
873
- ).optional(),
874
- agentic_rag_config: z.nullable(
875
- z.lazy(() => CreateKnowledgeResponseBodyAgenticRagConfig$inboundSchema),
876
- ).optional(),
877
- }).transform((v) => {
878
- return remap$(v, {
879
- "top_k": "topK",
880
- "rerank_config": "rerankConfig",
881
- "agentic_rag_config": "agenticRagConfig",
882
- });
883
- });
884
-
885
- export function createKnowledgeResponseBodyRetrievalSettingsFromJSON(
886
- jsonString: string,
887
- ): SafeParseResult<
888
- CreateKnowledgeResponseBodyRetrievalSettings,
889
- SDKValidationError
890
- > {
891
- return safeParse(
892
- jsonString,
893
- (x) =>
894
- CreateKnowledgeResponseBodyRetrievalSettings$inboundSchema.parse(
895
- JSON.parse(x),
896
- ),
897
- `Failed to parse 'CreateKnowledgeResponseBodyRetrievalSettings' from JSON`,
898
- );
899
- }
900
-
901
- /** @internal */
902
- export const ResponseBodyExternalConfig$inboundSchema: z.ZodType<
903
- ResponseBodyExternalConfig,
904
- z.ZodTypeDef,
905
- unknown
906
- > = z.object({
907
- name: z.string(),
908
- api_url: z.string(),
909
- }).transform((v) => {
910
- return remap$(v, {
911
- "api_url": "apiUrl",
912
- });
913
- });
914
-
915
- export function responseBodyExternalConfigFromJSON(
916
- jsonString: string,
917
- ): SafeParseResult<ResponseBodyExternalConfig, SDKValidationError> {
918
- return safeParse(
919
- jsonString,
920
- (x) => ResponseBodyExternalConfig$inboundSchema.parse(JSON.parse(x)),
921
- `Failed to parse 'ResponseBodyExternalConfig' from JSON`,
922
- );
923
- }
924
-
925
- /** @internal */
926
- export const ResponseBody2$inboundSchema: z.ZodType<
927
- ResponseBody2,
928
- z.ZodTypeDef,
929
- unknown
930
- > = z.object({
931
- _id: z.string(),
932
- created: z.string(),
933
- description: z.nullable(z.string()).optional(),
934
- key: z.string(),
935
- domain_id: z.string(),
936
- path: z.string().optional(),
937
- created_by_id: z.nullable(z.string()).optional(),
938
- updated_by_id: z.nullable(z.string()).optional(),
939
- updated: z.string(),
940
- type: CreateKnowledgeResponseBodyKnowledgeType$inboundSchema.default(
941
- "external",
942
- ),
943
- retrieval_settings: z.lazy(() =>
944
- CreateKnowledgeResponseBodyRetrievalSettings$inboundSchema
945
- ).optional(),
946
- external_config: z.lazy(() => ResponseBodyExternalConfig$inboundSchema),
947
- }).transform((v) => {
948
- return remap$(v, {
949
- "_id": "id",
950
- "domain_id": "domainId",
951
- "created_by_id": "createdById",
952
- "updated_by_id": "updatedById",
953
- "retrieval_settings": "retrievalSettings",
954
- "external_config": "externalConfig",
955
- });
956
- });
957
-
958
- export function responseBody2FromJSON(
959
- jsonString: string,
960
- ): SafeParseResult<ResponseBody2, SDKValidationError> {
961
- return safeParse(
962
- jsonString,
963
- (x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
964
- `Failed to parse 'ResponseBody2' from JSON`,
965
- );
966
- }
967
-
968
- /** @internal */
969
- export const CreateKnowledgeResponseBodyType$inboundSchema: z.ZodNativeEnum<
970
- typeof CreateKnowledgeResponseBodyType
971
- > = z.nativeEnum(CreateKnowledgeResponseBodyType);
972
-
973
- /** @internal */
974
- export const ResponseBodyRetrievalType$inboundSchema: z.ZodNativeEnum<
975
- typeof ResponseBodyRetrievalType
976
- > = z.nativeEnum(ResponseBodyRetrievalType);
977
-
978
- /** @internal */
979
- export const ResponseBodyRerankConfig$inboundSchema: z.ZodType<
980
- ResponseBodyRerankConfig,
981
- z.ZodTypeDef,
982
- unknown
983
- > = z.object({
984
- top_k: z.number().int().default(5),
985
- rerank_threshold: z.number().default(0.5),
986
- rerank_model: z.string(),
987
- }).transform((v) => {
988
- return remap$(v, {
989
- "top_k": "topK",
990
- "rerank_threshold": "rerankThreshold",
991
- "rerank_model": "rerankModel",
992
- });
993
- });
994
-
995
- export function responseBodyRerankConfigFromJSON(
996
- jsonString: string,
997
- ): SafeParseResult<ResponseBodyRerankConfig, SDKValidationError> {
998
- return safeParse(
999
- jsonString,
1000
- (x) => ResponseBodyRerankConfig$inboundSchema.parse(JSON.parse(x)),
1001
- `Failed to parse 'ResponseBodyRerankConfig' from JSON`,
1002
- );
1003
- }
1004
-
1005
- /** @internal */
1006
- export const ResponseBodyAgenticRagConfig$inboundSchema: z.ZodType<
1007
- ResponseBodyAgenticRagConfig,
1008
- z.ZodTypeDef,
1009
- unknown
1010
- > = z.object({
1011
- model: z.string(),
1012
- });
1013
-
1014
- export function responseBodyAgenticRagConfigFromJSON(
1015
- jsonString: string,
1016
- ): SafeParseResult<ResponseBodyAgenticRagConfig, SDKValidationError> {
1017
- return safeParse(
1018
- jsonString,
1019
- (x) => ResponseBodyAgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
1020
- `Failed to parse 'ResponseBodyAgenticRagConfig' from JSON`,
1021
- );
1022
- }
1023
-
1024
- /** @internal */
1025
- export const ResponseBodyRetrievalSettings$inboundSchema: z.ZodType<
1026
- ResponseBodyRetrievalSettings,
1027
- z.ZodTypeDef,
1028
- unknown
1029
- > = z.object({
1030
- retrieval_type: ResponseBodyRetrievalType$inboundSchema.default(
1031
- "hybrid_search",
1032
- ),
1033
- top_k: z.number().int().default(5),
1034
- threshold: z.number().default(0),
1035
- rerank_config: z.nullable(
1036
- z.lazy(() => ResponseBodyRerankConfig$inboundSchema),
1037
- ).optional(),
1038
- agentic_rag_config: z.nullable(
1039
- z.lazy(() => ResponseBodyAgenticRagConfig$inboundSchema),
1040
- ).optional(),
1041
- }).transform((v) => {
1042
- return remap$(v, {
1043
- "retrieval_type": "retrievalType",
1044
- "top_k": "topK",
1045
- "rerank_config": "rerankConfig",
1046
- "agentic_rag_config": "agenticRagConfig",
1047
- });
1048
- });
1049
-
1050
- export function responseBodyRetrievalSettingsFromJSON(
1051
- jsonString: string,
1052
- ): SafeParseResult<ResponseBodyRetrievalSettings, SDKValidationError> {
1053
- return safeParse(
1054
- jsonString,
1055
- (x) => ResponseBodyRetrievalSettings$inboundSchema.parse(JSON.parse(x)),
1056
- `Failed to parse 'ResponseBodyRetrievalSettings' from JSON`,
1057
- );
1058
- }
1059
-
1060
- /** @internal */
1061
- export const ResponseBody1$inboundSchema: z.ZodType<
1062
- ResponseBody1,
1063
- z.ZodTypeDef,
1064
- unknown
1065
- > = z.object({
1066
- _id: z.string(),
1067
- created: z.string(),
1068
- description: z.nullable(z.string()).optional(),
1069
- key: z.string(),
1070
- domain_id: z.string(),
1071
- path: z.string().optional(),
1072
- created_by_id: z.nullable(z.string()).optional(),
1073
- updated_by_id: z.nullable(z.string()).optional(),
1074
- updated: z.string(),
1075
- type: CreateKnowledgeResponseBodyType$inboundSchema.default("internal"),
1076
- retrieval_settings: z.lazy(() => ResponseBodyRetrievalSettings$inboundSchema)
1077
- .optional(),
1078
- model: z.string(),
1079
- }).transform((v) => {
1080
- return remap$(v, {
1081
- "_id": "id",
1082
- "domain_id": "domainId",
1083
- "created_by_id": "createdById",
1084
- "updated_by_id": "updatedById",
1085
- "retrieval_settings": "retrievalSettings",
1086
- });
1087
- });
1088
-
1089
- export function responseBody1FromJSON(
1090
- jsonString: string,
1091
- ): SafeParseResult<ResponseBody1, SDKValidationError> {
1092
- return safeParse(
1093
- jsonString,
1094
- (x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
1095
- `Failed to parse 'ResponseBody1' from JSON`,
1096
- );
1097
- }
1098
-
1099
- /** @internal */
1100
- export const CreateKnowledgeResponseBody$inboundSchema: z.ZodType<
1101
- CreateKnowledgeResponseBody,
1102
- z.ZodTypeDef,
1103
- unknown
1104
- > = z.union([
1105
- z.lazy(() => ResponseBody1$inboundSchema),
1106
- z.lazy(() => ResponseBody2$inboundSchema),
1107
- ]);
1108
-
1109
- export function createKnowledgeResponseBodyFromJSON(
1110
- jsonString: string,
1111
- ): SafeParseResult<CreateKnowledgeResponseBody, SDKValidationError> {
1112
- return safeParse(
1113
- jsonString,
1114
- (x) => CreateKnowledgeResponseBody$inboundSchema.parse(JSON.parse(x)),
1115
- `Failed to parse 'CreateKnowledgeResponseBody' from JSON`,
1116
- );
1117
- }