@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
@@ -0,0 +1,47 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import {
10
+ EvaluationResult,
11
+ EvaluationResult$inboundSchema,
12
+ } from "./evaluationresult.js";
13
+
14
+ /**
15
+ * Response wrappers keep each RPC's response type distinct, so a future field
16
+ *
17
+ * @remarks
18
+ * can be added to one without touching the other.
19
+ */
20
+ export type InvokeEvaluatorResponse = {
21
+ /**
22
+ * The verdict. Shaped to match WorkflowRunMinifiedEvalSchema, the body the
23
+ *
24
+ * @remarks
25
+ * TypeScript route returned, so existing consumers read the same JSON.
26
+ */
27
+ result?: EvaluationResult | undefined;
28
+ };
29
+
30
+ /** @internal */
31
+ export const InvokeEvaluatorResponse$inboundSchema: z.ZodType<
32
+ InvokeEvaluatorResponse,
33
+ z.ZodTypeDef,
34
+ unknown
35
+ > = z.object({
36
+ result: EvaluationResult$inboundSchema.optional(),
37
+ });
38
+
39
+ export function invokeEvaluatorResponseFromJSON(
40
+ jsonString: string,
41
+ ): SafeParseResult<InvokeEvaluatorResponse, SDKValidationError> {
42
+ return safeParse(
43
+ jsonString,
44
+ (x) => InvokeEvaluatorResponse$inboundSchema.parse(JSON.parse(x)),
45
+ `Failed to parse 'InvokeEvaluatorResponse' from JSON`,
46
+ );
47
+ }
@@ -0,0 +1,558 @@
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
+ import {
12
+ KnowledgeMetadata,
13
+ KnowledgeMetadata$inboundSchema,
14
+ } from "./knowledgemetadata.js";
15
+ import {
16
+ KnowledgeSettings,
17
+ KnowledgeSettings$inboundSchema,
18
+ } from "./knowledgesettings.js";
19
+
20
+ export const Knowledge2Type = {
21
+ External: "external",
22
+ } as const;
23
+ export type Knowledge2Type = ClosedEnum<typeof Knowledge2Type>;
24
+
25
+ /**
26
+ * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
27
+ */
28
+ export type Knowledge2RerankConfig = {
29
+ /**
30
+ * The number of results to return by the reranking model
31
+ */
32
+ topK: number;
33
+ /**
34
+ * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
35
+ */
36
+ rerankThreshold: number;
37
+ /**
38
+ * The rerank model to use for the knowledge base.
39
+ */
40
+ rerankModel: string;
41
+ };
42
+
43
+ /**
44
+ * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
45
+ */
46
+ export type Knowledge2AgenticRagConfig = {
47
+ /**
48
+ * The model to use for the Agentic RAG
49
+ */
50
+ model: string;
51
+ };
52
+
53
+ /**
54
+ * The retrieval settings for the knowledge base.
55
+ */
56
+ export type KnowledgeRetrievalSettings = {
57
+ /**
58
+ * The number of results to return from the search.
59
+ */
60
+ topK: number;
61
+ /**
62
+ * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
63
+ */
64
+ threshold: number;
65
+ /**
66
+ * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
67
+ */
68
+ rerankConfig?: Knowledge2RerankConfig | null | undefined;
69
+ /**
70
+ * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
71
+ */
72
+ agenticRagConfig?: Knowledge2AgenticRagConfig | null | undefined;
73
+ };
74
+
75
+ export type ExternalConfig = {
76
+ /**
77
+ * The name of the external knowledge base.
78
+ */
79
+ name: string;
80
+ /**
81
+ * The API URL of the external knowledge base.
82
+ */
83
+ apiUrl: string;
84
+ };
85
+
86
+ export type Knowledge2 = {
87
+ /**
88
+ * The unique identifier of the knowledge base.
89
+ */
90
+ id: string;
91
+ /**
92
+ * The creation date of the knowledge base.
93
+ */
94
+ created: string;
95
+ /**
96
+ * The description of the knowledge base.
97
+ */
98
+ description?: string | null | undefined;
99
+ /**
100
+ * The unique key of the knowledge base.
101
+ */
102
+ key: string;
103
+ /**
104
+ * The project/domain ID of the knowledge base.
105
+ */
106
+ domainId: string;
107
+ /**
108
+ * Entity storage path.
109
+ *
110
+ * @remarks
111
+ *
112
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
113
+ *
114
+ * 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.
115
+ */
116
+ path?: string | undefined;
117
+ createdById?: string | null | undefined;
118
+ updatedById?: string | null | undefined;
119
+ /**
120
+ * The last update date of the knowledge base.
121
+ */
122
+ updated: string;
123
+ type: Knowledge2Type;
124
+ /**
125
+ * The retrieval settings for the knowledge base.
126
+ */
127
+ retrievalSettings?: KnowledgeRetrievalSettings | undefined;
128
+ externalConfig: ExternalConfig;
129
+ /**
130
+ * Additive compatibility fields formerly available only from private internal endpoints.
131
+ */
132
+ settings?: KnowledgeSettings | undefined;
133
+ metadata?: KnowledgeMetadata | undefined;
134
+ };
135
+
136
+ export const KnowledgeType = {
137
+ Internal: "internal",
138
+ } as const;
139
+ export type KnowledgeType = ClosedEnum<typeof KnowledgeType>;
140
+
141
+ /**
142
+ * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
143
+ */
144
+ export const RetrievalType = {
145
+ VectorSearch: "vector_search",
146
+ KeywordSearch: "keyword_search",
147
+ HybridSearch: "hybrid_search",
148
+ } as const;
149
+ /**
150
+ * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
151
+ */
152
+ export type RetrievalType = ClosedEnum<typeof RetrievalType>;
153
+
154
+ /**
155
+ * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
156
+ */
157
+ export type KnowledgeRerankConfig = {
158
+ /**
159
+ * The number of results to return by the reranking model
160
+ */
161
+ topK: number;
162
+ /**
163
+ * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
164
+ */
165
+ rerankThreshold: number;
166
+ /**
167
+ * The rerank model to use for the knowledge base.
168
+ */
169
+ rerankModel: string;
170
+ };
171
+
172
+ /**
173
+ * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
174
+ */
175
+ export type KnowledgeAgenticRagConfig = {
176
+ /**
177
+ * The model to use for the Agentic RAG
178
+ */
179
+ model: string;
180
+ };
181
+
182
+ /**
183
+ * The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
184
+ */
185
+ export type RetrievalSettings = {
186
+ /**
187
+ * The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
188
+ */
189
+ retrievalType: RetrievalType;
190
+ /**
191
+ * The number of results to return from the search.
192
+ */
193
+ topK: number;
194
+ /**
195
+ * The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
196
+ */
197
+ threshold: number;
198
+ /**
199
+ * The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
200
+ */
201
+ rerankConfig?: KnowledgeRerankConfig | null | undefined;
202
+ /**
203
+ * The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
204
+ */
205
+ agenticRagConfig?: KnowledgeAgenticRagConfig | null | undefined;
206
+ };
207
+
208
+ export type Knowledge1 = {
209
+ /**
210
+ * The unique identifier of the knowledge base.
211
+ */
212
+ id: string;
213
+ /**
214
+ * The creation date of the knowledge base.
215
+ */
216
+ created: string;
217
+ /**
218
+ * The description of the knowledge base.
219
+ */
220
+ description?: string | null | undefined;
221
+ /**
222
+ * The unique key of the knowledge base.
223
+ */
224
+ key: string;
225
+ /**
226
+ * The project/domain ID of the knowledge base.
227
+ */
228
+ domainId: string;
229
+ /**
230
+ * Entity storage path.
231
+ *
232
+ * @remarks
233
+ *
234
+ * With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element identifies the project, followed by nested folders (auto-created as needed). Example: `Default/agents`.
235
+ *
236
+ * 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.
237
+ */
238
+ path?: string | undefined;
239
+ createdById?: string | null | undefined;
240
+ updatedById?: string | null | undefined;
241
+ /**
242
+ * The last update date of the knowledge base.
243
+ */
244
+ updated: string;
245
+ type: KnowledgeType;
246
+ /**
247
+ * The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
248
+ */
249
+ retrievalSettings?: RetrievalSettings | undefined;
250
+ /**
251
+ * The embeddings model used for the knowledge base.
252
+ */
253
+ model: string;
254
+ /**
255
+ * Additive compatibility fields formerly available only from private internal endpoints.
256
+ */
257
+ settings?: KnowledgeSettings | undefined;
258
+ metadata?: KnowledgeMetadata | undefined;
259
+ };
260
+
261
+ export type Knowledge = Knowledge1 | Knowledge2;
262
+
263
+ /** @internal */
264
+ export const Knowledge2Type$inboundSchema: z.ZodNativeEnum<
265
+ typeof Knowledge2Type
266
+ > = z.nativeEnum(Knowledge2Type);
267
+
268
+ /** @internal */
269
+ export const Knowledge2RerankConfig$inboundSchema: z.ZodType<
270
+ Knowledge2RerankConfig,
271
+ z.ZodTypeDef,
272
+ unknown
273
+ > = z.object({
274
+ top_k: z.number().int().default(5),
275
+ rerank_threshold: z.number().default(0.5),
276
+ rerank_model: z.string(),
277
+ }).transform((v) => {
278
+ return remap$(v, {
279
+ "top_k": "topK",
280
+ "rerank_threshold": "rerankThreshold",
281
+ "rerank_model": "rerankModel",
282
+ });
283
+ });
284
+
285
+ export function knowledge2RerankConfigFromJSON(
286
+ jsonString: string,
287
+ ): SafeParseResult<Knowledge2RerankConfig, SDKValidationError> {
288
+ return safeParse(
289
+ jsonString,
290
+ (x) => Knowledge2RerankConfig$inboundSchema.parse(JSON.parse(x)),
291
+ `Failed to parse 'Knowledge2RerankConfig' from JSON`,
292
+ );
293
+ }
294
+
295
+ /** @internal */
296
+ export const Knowledge2AgenticRagConfig$inboundSchema: z.ZodType<
297
+ Knowledge2AgenticRagConfig,
298
+ z.ZodTypeDef,
299
+ unknown
300
+ > = z.object({
301
+ model: z.string(),
302
+ });
303
+
304
+ export function knowledge2AgenticRagConfigFromJSON(
305
+ jsonString: string,
306
+ ): SafeParseResult<Knowledge2AgenticRagConfig, SDKValidationError> {
307
+ return safeParse(
308
+ jsonString,
309
+ (x) => Knowledge2AgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
310
+ `Failed to parse 'Knowledge2AgenticRagConfig' from JSON`,
311
+ );
312
+ }
313
+
314
+ /** @internal */
315
+ export const KnowledgeRetrievalSettings$inboundSchema: z.ZodType<
316
+ KnowledgeRetrievalSettings,
317
+ z.ZodTypeDef,
318
+ unknown
319
+ > = z.object({
320
+ top_k: z.number().int().default(5),
321
+ threshold: z.number().default(0),
322
+ rerank_config: z.nullable(z.lazy(() => Knowledge2RerankConfig$inboundSchema))
323
+ .optional(),
324
+ agentic_rag_config: z.nullable(
325
+ z.lazy(() => Knowledge2AgenticRagConfig$inboundSchema),
326
+ ).optional(),
327
+ }).transform((v) => {
328
+ return remap$(v, {
329
+ "top_k": "topK",
330
+ "rerank_config": "rerankConfig",
331
+ "agentic_rag_config": "agenticRagConfig",
332
+ });
333
+ });
334
+
335
+ export function knowledgeRetrievalSettingsFromJSON(
336
+ jsonString: string,
337
+ ): SafeParseResult<KnowledgeRetrievalSettings, SDKValidationError> {
338
+ return safeParse(
339
+ jsonString,
340
+ (x) => KnowledgeRetrievalSettings$inboundSchema.parse(JSON.parse(x)),
341
+ `Failed to parse 'KnowledgeRetrievalSettings' from JSON`,
342
+ );
343
+ }
344
+
345
+ /** @internal */
346
+ export const ExternalConfig$inboundSchema: z.ZodType<
347
+ ExternalConfig,
348
+ z.ZodTypeDef,
349
+ unknown
350
+ > = z.object({
351
+ name: z.string(),
352
+ api_url: z.string(),
353
+ }).transform((v) => {
354
+ return remap$(v, {
355
+ "api_url": "apiUrl",
356
+ });
357
+ });
358
+
359
+ export function externalConfigFromJSON(
360
+ jsonString: string,
361
+ ): SafeParseResult<ExternalConfig, SDKValidationError> {
362
+ return safeParse(
363
+ jsonString,
364
+ (x) => ExternalConfig$inboundSchema.parse(JSON.parse(x)),
365
+ `Failed to parse 'ExternalConfig' from JSON`,
366
+ );
367
+ }
368
+
369
+ /** @internal */
370
+ export const Knowledge2$inboundSchema: z.ZodType<
371
+ Knowledge2,
372
+ z.ZodTypeDef,
373
+ unknown
374
+ > = z.object({
375
+ _id: z.string(),
376
+ created: z.string(),
377
+ description: z.nullable(z.string()).optional(),
378
+ key: z.string(),
379
+ domain_id: z.string(),
380
+ path: z.string().optional(),
381
+ created_by_id: z.nullable(z.string()).optional(),
382
+ updated_by_id: z.nullable(z.string()).optional(),
383
+ updated: z.string(),
384
+ type: Knowledge2Type$inboundSchema.default("external"),
385
+ retrieval_settings: z.lazy(() => KnowledgeRetrievalSettings$inboundSchema)
386
+ .optional(),
387
+ external_config: z.lazy(() => ExternalConfig$inboundSchema),
388
+ settings: KnowledgeSettings$inboundSchema.optional(),
389
+ metadata: KnowledgeMetadata$inboundSchema.optional(),
390
+ }).transform((v) => {
391
+ return remap$(v, {
392
+ "_id": "id",
393
+ "domain_id": "domainId",
394
+ "created_by_id": "createdById",
395
+ "updated_by_id": "updatedById",
396
+ "retrieval_settings": "retrievalSettings",
397
+ "external_config": "externalConfig",
398
+ });
399
+ });
400
+
401
+ export function knowledge2FromJSON(
402
+ jsonString: string,
403
+ ): SafeParseResult<Knowledge2, SDKValidationError> {
404
+ return safeParse(
405
+ jsonString,
406
+ (x) => Knowledge2$inboundSchema.parse(JSON.parse(x)),
407
+ `Failed to parse 'Knowledge2' from JSON`,
408
+ );
409
+ }
410
+
411
+ /** @internal */
412
+ export const KnowledgeType$inboundSchema: z.ZodNativeEnum<
413
+ typeof KnowledgeType
414
+ > = z.nativeEnum(KnowledgeType);
415
+
416
+ /** @internal */
417
+ export const RetrievalType$inboundSchema: z.ZodNativeEnum<
418
+ typeof RetrievalType
419
+ > = z.nativeEnum(RetrievalType);
420
+
421
+ /** @internal */
422
+ export const KnowledgeRerankConfig$inboundSchema: z.ZodType<
423
+ KnowledgeRerankConfig,
424
+ z.ZodTypeDef,
425
+ unknown
426
+ > = z.object({
427
+ top_k: z.number().int().default(5),
428
+ rerank_threshold: z.number().default(0.5),
429
+ rerank_model: z.string(),
430
+ }).transform((v) => {
431
+ return remap$(v, {
432
+ "top_k": "topK",
433
+ "rerank_threshold": "rerankThreshold",
434
+ "rerank_model": "rerankModel",
435
+ });
436
+ });
437
+
438
+ export function knowledgeRerankConfigFromJSON(
439
+ jsonString: string,
440
+ ): SafeParseResult<KnowledgeRerankConfig, SDKValidationError> {
441
+ return safeParse(
442
+ jsonString,
443
+ (x) => KnowledgeRerankConfig$inboundSchema.parse(JSON.parse(x)),
444
+ `Failed to parse 'KnowledgeRerankConfig' from JSON`,
445
+ );
446
+ }
447
+
448
+ /** @internal */
449
+ export const KnowledgeAgenticRagConfig$inboundSchema: z.ZodType<
450
+ KnowledgeAgenticRagConfig,
451
+ z.ZodTypeDef,
452
+ unknown
453
+ > = z.object({
454
+ model: z.string(),
455
+ });
456
+
457
+ export function knowledgeAgenticRagConfigFromJSON(
458
+ jsonString: string,
459
+ ): SafeParseResult<KnowledgeAgenticRagConfig, SDKValidationError> {
460
+ return safeParse(
461
+ jsonString,
462
+ (x) => KnowledgeAgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
463
+ `Failed to parse 'KnowledgeAgenticRagConfig' from JSON`,
464
+ );
465
+ }
466
+
467
+ /** @internal */
468
+ export const RetrievalSettings$inboundSchema: z.ZodType<
469
+ RetrievalSettings,
470
+ z.ZodTypeDef,
471
+ unknown
472
+ > = z.object({
473
+ retrieval_type: RetrievalType$inboundSchema.default("hybrid_search"),
474
+ top_k: z.number().int().default(5),
475
+ threshold: z.number().default(0),
476
+ rerank_config: z.nullable(z.lazy(() => KnowledgeRerankConfig$inboundSchema))
477
+ .optional(),
478
+ agentic_rag_config: z.nullable(
479
+ z.lazy(() => KnowledgeAgenticRagConfig$inboundSchema),
480
+ ).optional(),
481
+ }).transform((v) => {
482
+ return remap$(v, {
483
+ "retrieval_type": "retrievalType",
484
+ "top_k": "topK",
485
+ "rerank_config": "rerankConfig",
486
+ "agentic_rag_config": "agenticRagConfig",
487
+ });
488
+ });
489
+
490
+ export function retrievalSettingsFromJSON(
491
+ jsonString: string,
492
+ ): SafeParseResult<RetrievalSettings, SDKValidationError> {
493
+ return safeParse(
494
+ jsonString,
495
+ (x) => RetrievalSettings$inboundSchema.parse(JSON.parse(x)),
496
+ `Failed to parse 'RetrievalSettings' from JSON`,
497
+ );
498
+ }
499
+
500
+ /** @internal */
501
+ export const Knowledge1$inboundSchema: z.ZodType<
502
+ Knowledge1,
503
+ z.ZodTypeDef,
504
+ unknown
505
+ > = z.object({
506
+ _id: z.string(),
507
+ created: z.string(),
508
+ description: z.nullable(z.string()).optional(),
509
+ key: z.string(),
510
+ domain_id: z.string(),
511
+ path: z.string().optional(),
512
+ created_by_id: z.nullable(z.string()).optional(),
513
+ updated_by_id: z.nullable(z.string()).optional(),
514
+ updated: z.string(),
515
+ type: KnowledgeType$inboundSchema.default("internal"),
516
+ retrieval_settings: z.lazy(() => RetrievalSettings$inboundSchema).optional(),
517
+ model: z.string(),
518
+ settings: KnowledgeSettings$inboundSchema.optional(),
519
+ metadata: KnowledgeMetadata$inboundSchema.optional(),
520
+ }).transform((v) => {
521
+ return remap$(v, {
522
+ "_id": "id",
523
+ "domain_id": "domainId",
524
+ "created_by_id": "createdById",
525
+ "updated_by_id": "updatedById",
526
+ "retrieval_settings": "retrievalSettings",
527
+ });
528
+ });
529
+
530
+ export function knowledge1FromJSON(
531
+ jsonString: string,
532
+ ): SafeParseResult<Knowledge1, SDKValidationError> {
533
+ return safeParse(
534
+ jsonString,
535
+ (x) => Knowledge1$inboundSchema.parse(JSON.parse(x)),
536
+ `Failed to parse 'Knowledge1' from JSON`,
537
+ );
538
+ }
539
+
540
+ /** @internal */
541
+ export const Knowledge$inboundSchema: z.ZodType<
542
+ Knowledge,
543
+ z.ZodTypeDef,
544
+ unknown
545
+ > = z.union([
546
+ z.lazy(() => Knowledge1$inboundSchema),
547
+ z.lazy(() => Knowledge2$inboundSchema),
548
+ ]);
549
+
550
+ export function knowledgeFromJSON(
551
+ jsonString: string,
552
+ ): SafeParseResult<Knowledge, SDKValidationError> {
553
+ return safeParse(
554
+ jsonString,
555
+ (x) => Knowledge$inboundSchema.parse(JSON.parse(x)),
556
+ `Failed to parse 'Knowledge' from JSON`,
557
+ );
558
+ }