@orq-ai/node 4.7.0-rc.58 → 4.7.3

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 (502) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createcontact.js +1 -1
  7. package/models/operations/createdataset.js +1 -1
  8. package/models/operations/createdatasetitem.js +4 -4
  9. package/models/operations/createdatasource.js +1 -1
  10. package/models/operations/createeval.js +16 -16
  11. package/models/operations/createidentity.js +1 -1
  12. package/models/operations/createtool.js +6 -6
  13. package/models/operations/getalltools.js +6 -6
  14. package/models/operations/getevals.js +16 -16
  15. package/models/operations/getv2humanevals.js +6 -6
  16. package/models/operations/getv2humanevalsets.js +2 -2
  17. package/models/operations/getv2humanevalsetsid.js +2 -2
  18. package/models/operations/getv2humanevalsid.js +6 -6
  19. package/models/operations/listdatasetdatapoints.js +4 -4
  20. package/models/operations/listdatasets.js +1 -1
  21. package/models/operations/listdatasources.js +1 -1
  22. package/models/operations/listidentities.js +1 -1
  23. package/models/operations/patchv2humanevalsetsid.js +2 -2
  24. package/models/operations/patchv2humanevalsid.js +12 -12
  25. package/models/operations/postv2feedbackevaluation.js +3 -3
  26. package/models/operations/postv2humanevals.js +12 -12
  27. package/models/operations/postv2humanevalsets.js +2 -2
  28. package/models/operations/retrievedatapoint.js +4 -4
  29. package/models/operations/retrievedataset.js +1 -1
  30. package/models/operations/retrievedatasource.js +1 -1
  31. package/models/operations/retrieveidentity.js +1 -1
  32. package/models/operations/retrievetool.js +6 -6
  33. package/models/operations/runagent.js +1 -1
  34. package/models/operations/streamrunagent.js +1 -1
  35. package/models/operations/updatedatapoint.js +4 -4
  36. package/models/operations/updatedataset.js +1 -1
  37. package/models/operations/updatedatasource.js +1 -1
  38. package/models/operations/updateeval.js +16 -16
  39. package/models/operations/updateidentity.js +1 -1
  40. package/models/operations/updatetool.js +7 -7
  41. package/package.json +3 -4
  42. package/packages/orq-rc/examples/postV2Feedback.example.ts +26 -0
  43. package/packages/orq-rc/src/core.ts +13 -0
  44. package/packages/orq-rc/src/funcs/agentsCreate.ts +161 -0
  45. package/packages/orq-rc/src/funcs/agentsDelete.ts +179 -0
  46. package/packages/orq-rc/src/funcs/agentsInvoke.ts +176 -0
  47. package/packages/orq-rc/src/funcs/agentsList.ts +184 -0
  48. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
  49. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +186 -0
  50. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +182 -0
  51. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +181 -0
  52. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +179 -0
  53. package/packages/orq-rc/src/funcs/agentsRun.ts +162 -0
  54. package/packages/orq-rc/src/funcs/agentsStream.ts +203 -0
  55. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +189 -0
  56. package/packages/orq-rc/src/funcs/agentsUpdate.ts +183 -0
  57. package/packages/orq-rc/src/funcs/annotationsCreate.ts +170 -0
  58. package/packages/orq-rc/src/funcs/annotationsDelete.ts +170 -0
  59. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  60. package/packages/orq-rc/src/funcs/contactsCreate.ts +160 -0
  61. package/packages/orq-rc/src/funcs/datasetsClear.ts +166 -0
  62. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  63. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +170 -0
  64. package/packages/orq-rc/src/funcs/datasetsDelete.ts +166 -0
  65. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +181 -0
  66. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  67. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +173 -0
  68. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +174 -0
  69. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +180 -0
  70. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +175 -0
  71. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +178 -0
  72. package/packages/orq-rc/src/funcs/deleteV2HumanEvalsId.ts +169 -0
  73. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  74. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  75. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  76. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +169 -0
  77. package/packages/orq-rc/src/funcs/deploymentsStream.ts +186 -0
  78. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  79. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  80. package/packages/orq-rc/src/funcs/evalsDelete.ts +172 -0
  81. package/packages/orq-rc/src/funcs/evalsInvoke.ts +180 -0
  82. package/packages/orq-rc/src/funcs/evalsUpdate.ts +172 -0
  83. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +182 -0
  84. package/packages/orq-rc/src/funcs/filesCreate.ts +194 -0
  85. package/packages/orq-rc/src/funcs/filesDelete.ts +163 -0
  86. package/packages/orq-rc/src/funcs/filesGet.ts +165 -0
  87. package/packages/orq-rc/src/funcs/filesGetContent.ts +166 -0
  88. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  89. package/packages/orq-rc/src/funcs/filesUpdate.ts +166 -0
  90. package/packages/orq-rc/src/funcs/getV2HumanEvals.ts +169 -0
  91. package/packages/orq-rc/src/funcs/getV2HumanEvalsId.ts +168 -0
  92. package/packages/orq-rc/src/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.ts +164 -0
  93. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts +168 -0
  94. package/packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts +163 -0
  95. package/packages/orq-rc/src/funcs/humanReviewSetsPatchV2HumanEvalSetsId.ts +164 -0
  96. package/packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts +162 -0
  97. package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
  98. package/packages/orq-rc/src/funcs/identitiesDelete.ts +175 -0
  99. package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
  100. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +183 -0
  101. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +175 -0
  102. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  103. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +170 -0
  104. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +165 -0
  105. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +166 -0
  106. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +173 -0
  107. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +169 -0
  108. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +172 -0
  109. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +169 -0
  110. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  111. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +177 -0
  112. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +170 -0
  113. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +173 -0
  114. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +165 -0
  115. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +172 -0
  116. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +168 -0
  117. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +166 -0
  118. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +163 -0
  119. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +173 -0
  120. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +169 -0
  121. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +162 -0
  122. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +175 -0
  123. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +169 -0
  124. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +167 -0
  125. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +184 -0
  126. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +179 -0
  127. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  128. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +183 -0
  129. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +176 -0
  130. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +176 -0
  131. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +178 -0
  132. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +173 -0
  133. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +167 -0
  134. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +179 -0
  135. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +174 -0
  136. package/packages/orq-rc/src/funcs/modelsList.ts +165 -0
  137. package/packages/orq-rc/src/funcs/patchV2HumanEvalsId.ts +170 -0
  138. package/packages/orq-rc/src/funcs/postV2Feedback.ts +172 -0
  139. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts +159 -0
  140. package/packages/orq-rc/src/funcs/postV2FeedbackEvaluationRemove.ts +159 -0
  141. package/packages/orq-rc/src/funcs/postV2FeedbackRemove.ts +167 -0
  142. package/packages/orq-rc/src/funcs/postV2HumanEvals.ts +168 -0
  143. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  144. package/packages/orq-rc/src/funcs/promptsDelete.ts +172 -0
  145. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +180 -0
  146. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  147. package/packages/orq-rc/src/funcs/promptsListVersions.ts +172 -0
  148. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +165 -0
  149. package/packages/orq-rc/src/funcs/promptsUpdate.ts +172 -0
  150. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  151. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +161 -0
  152. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +269 -0
  153. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +259 -0
  154. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +168 -0
  155. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +168 -0
  156. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +161 -0
  157. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +222 -0
  158. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +160 -0
  159. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +218 -0
  160. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +167 -0
  161. package/packages/orq-rc/src/funcs/routerOcr.ts +158 -0
  162. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +160 -0
  163. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +167 -0
  164. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  165. package/packages/orq-rc/src/funcs/toolsDelete.ts +166 -0
  166. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +182 -0
  167. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +189 -0
  168. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  169. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +165 -0
  170. package/packages/orq-rc/src/funcs/toolsUpdate.ts +175 -0
  171. package/packages/orq-rc/src/hooks/global.ts +44 -0
  172. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  173. package/packages/orq-rc/src/hooks/index.ts +6 -0
  174. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  175. package/packages/orq-rc/src/hooks/types.ts +112 -0
  176. package/packages/orq-rc/src/index.ts +9 -0
  177. package/packages/orq-rc/src/lib/base64.ts +37 -0
  178. package/packages/orq-rc/src/lib/config.ts +74 -0
  179. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  180. package/packages/orq-rc/src/lib/encodings.ts +516 -0
  181. package/packages/orq-rc/src/lib/env.ts +89 -0
  182. package/packages/orq-rc/src/lib/event-streams.ts +165 -0
  183. package/packages/orq-rc/src/lib/files.ts +104 -0
  184. package/packages/orq-rc/src/lib/http.ts +323 -0
  185. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  186. package/packages/orq-rc/src/lib/logger.ts +9 -0
  187. package/packages/orq-rc/src/lib/matchers.ts +346 -0
  188. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  189. package/packages/orq-rc/src/lib/retries.ts +218 -0
  190. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  191. package/packages/orq-rc/src/lib/sdks.ts +409 -0
  192. package/packages/orq-rc/src/lib/security.ts +275 -0
  193. package/packages/orq-rc/src/lib/url.ts +35 -0
  194. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  195. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  196. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  197. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  198. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  199. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  200. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  201. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  202. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +517 -0
  203. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  204. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  205. package/packages/orq-rc/src/models/components/createagentresponse.ts +305 -0
  206. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  207. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  208. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  209. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  210. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  211. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  212. package/packages/orq-rc/src/models/components/extendedmessage.ts +146 -0
  213. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  214. package/packages/orq-rc/src/models/components/filedocument.ts +48 -0
  215. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  216. package/packages/orq-rc/src/models/components/getagentresponse.ts +348 -0
  217. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  218. package/packages/orq-rc/src/models/components/index.ts +61 -0
  219. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  220. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  221. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  222. package/packages/orq-rc/src/models/components/partdoneevent.ts +70 -0
  223. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  224. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  225. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  226. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  227. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  228. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  229. package/packages/orq-rc/src/models/components/responsedoneevent.ts +324 -0
  230. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  231. package/packages/orq-rc/src/models/components/responsestartedevent.ts +97 -0
  232. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  233. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  234. package/packages/orq-rc/src/models/components/security.ts +32 -0
  235. package/packages/orq-rc/src/models/components/telemetry.ts +48 -0
  236. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  237. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  238. package/packages/orq-rc/src/models/components/thinkingconfigadaptiveschema.ts +59 -0
  239. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  240. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  241. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  242. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  243. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  244. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +235 -0
  245. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +219 -0
  246. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +205 -0
  247. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  248. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  249. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  250. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  251. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  252. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  253. package/packages/orq-rc/src/models/errors/createeval.ts +51 -0
  254. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  255. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  256. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  257. package/packages/orq-rc/src/models/errors/deleteagent.ts +51 -0
  258. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  259. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  260. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  261. package/packages/orq-rc/src/models/errors/deletev2humanevalsid.ts +51 -0
  262. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  263. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  264. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  265. package/packages/orq-rc/src/models/errors/getv2humanevals.ts +51 -0
  266. package/packages/orq-rc/src/models/errors/getv2humanevalsid.ts +51 -0
  267. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  268. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  269. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  270. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  271. package/packages/orq-rc/src/models/errors/index.ts +42 -0
  272. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  273. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  274. package/packages/orq-rc/src/models/errors/patchv2humanevalsid.ts +51 -0
  275. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +96 -0
  276. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
  277. package/packages/orq-rc/src/models/errors/postv2feedback.ts +96 -0
  278. package/packages/orq-rc/src/models/errors/postv2feedbackremove.ts +51 -0
  279. package/packages/orq-rc/src/models/errors/postv2humanevals.ts +51 -0
  280. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  281. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +51 -0
  282. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +118 -0
  283. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  284. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  285. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  286. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  287. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  288. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  289. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  290. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  291. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  292. package/packages/orq-rc/src/models/operations/createagentrequest.ts +6459 -0
  293. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +670 -0
  294. package/packages/orq-rc/src/models/operations/createannotation.ts +166 -0
  295. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6398 -0
  296. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  297. package/packages/orq-rc/src/models/operations/createcompletion.ts +3473 -0
  298. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  299. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  300. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2554 -0
  301. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  302. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  303. package/packages/orq-rc/src/models/operations/createeval.ts +4229 -0
  304. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  305. package/packages/orq-rc/src/models/operations/createimage.ts +1034 -0
  306. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  307. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  308. package/packages/orq-rc/src/models/operations/createknowledge.ts +960 -0
  309. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  310. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  311. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  312. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  313. package/packages/orq-rc/src/models/operations/createprompt.ts +5405 -0
  314. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  315. package/packages/orq-rc/src/models/operations/createresponse.ts +3864 -0
  316. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  317. package/packages/orq-rc/src/models/operations/createtool.ts +2509 -0
  318. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  319. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  320. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  321. package/packages/orq-rc/src/models/operations/deleteannotation.ts +82 -0
  322. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  323. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  324. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  325. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  326. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  327. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  328. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  329. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  330. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  331. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  332. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  333. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  334. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  335. package/packages/orq-rc/src/models/operations/deletev2humanevalsetsid.ts +36 -0
  336. package/packages/orq-rc/src/models/operations/deletev2humanevalsid.ts +67 -0
  337. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  338. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4526 -0
  339. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +735 -0
  340. package/packages/orq-rc/src/models/operations/deployments.ts +1273 -0
  341. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4659 -0
  342. package/packages/orq-rc/src/models/operations/filecontent.ts +39 -0
  343. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  344. package/packages/orq-rc/src/models/operations/fileget.ts +80 -0
  345. package/packages/orq-rc/src/models/operations/filelist.ts +85 -0
  346. package/packages/orq-rc/src/models/operations/fileupdate.ts +118 -0
  347. package/packages/orq-rc/src/models/operations/fileupload.ts +135 -0
  348. package/packages/orq-rc/src/models/operations/getagentresponse.ts +46 -0
  349. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  350. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  351. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  352. package/packages/orq-rc/src/models/operations/getallprompts.ts +3173 -0
  353. package/packages/orq-rc/src/models/operations/getalltools.ts +1404 -0
  354. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  355. package/packages/orq-rc/src/models/operations/getevals.ts +2868 -0
  356. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  357. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  358. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3098 -0
  359. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3143 -0
  360. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  361. package/packages/orq-rc/src/models/operations/getv2humanevals.ts +696 -0
  362. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +234 -0
  363. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +235 -0
  364. package/packages/orq-rc/src/models/operations/getv2humanevalsid.ts +707 -0
  365. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  366. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  367. package/packages/orq-rc/src/models/operations/index.ts +131 -0
  368. package/packages/orq-rc/src/models/operations/invokeagent.ts +801 -0
  369. package/packages/orq-rc/src/models/operations/invokeeval.ts +1254 -0
  370. package/packages/orq-rc/src/models/operations/listagents.ts +2781 -0
  371. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  372. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  373. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  374. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  375. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  376. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  377. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  378. package/packages/orq-rc/src/models/operations/listmodels.ts +169 -0
  379. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3218 -0
  380. package/packages/orq-rc/src/models/operations/parse.ts +784 -0
  381. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +415 -0
  382. package/packages/orq-rc/src/models/operations/patchv2humanevalsid.ts +1362 -0
  383. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +255 -0
  384. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
  385. package/packages/orq-rc/src/models/operations/postv2feedback.ts +207 -0
  386. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +321 -0
  387. package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +43 -0
  388. package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +138 -0
  389. package/packages/orq-rc/src/models/operations/postv2humanevals.ts +1193 -0
  390. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +365 -0
  391. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  392. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  393. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +2843 -0
  394. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  395. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  396. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  397. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +174 -0
  398. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  399. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  400. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  401. package/packages/orq-rc/src/models/operations/retrievetool.ts +1385 -0
  402. package/packages/orq-rc/src/models/operations/runagent.ts +4963 -0
  403. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  404. package/packages/orq-rc/src/models/operations/streamagent.ts +692 -0
  405. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5125 -0
  406. package/packages/orq-rc/src/models/operations/updateagent.ts +6889 -0
  407. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  408. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  409. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  410. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  411. package/packages/orq-rc/src/models/operations/updateeval.ts +3160 -0
  412. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  413. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  414. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  415. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  416. package/packages/orq-rc/src/models/operations/updatememorystore.ts +188 -0
  417. package/packages/orq-rc/src/models/operations/updateprompt.ts +5487 -0
  418. package/packages/orq-rc/src/models/operations/updatetool.ts +2816 -0
  419. package/packages/orq-rc/src/sdk/agents.ts +234 -0
  420. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  421. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  422. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  423. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  424. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  425. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  426. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  427. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  428. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  429. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  430. package/packages/orq-rc/src/sdk/evals.ts +84 -0
  431. package/packages/orq-rc/src/sdk/evaluators.ts +27 -0
  432. package/packages/orq-rc/src/sdk/files.ts +114 -0
  433. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  434. package/packages/orq-rc/src/sdk/humanreviewsets.ts +84 -0
  435. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  436. package/packages/orq-rc/src/sdk/images.ts +25 -0
  437. package/packages/orq-rc/src/sdk/index.ts +5 -0
  438. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  439. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  440. package/packages/orq-rc/src/sdk/metrics.ts +29 -0
  441. package/packages/orq-rc/src/sdk/models.ts +27 -0
  442. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  443. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  444. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  445. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  446. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  447. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  448. package/packages/orq-rc/src/sdk/responses.ts +53 -0
  449. package/packages/orq-rc/src/sdk/router.ts +72 -0
  450. package/packages/orq-rc/src/sdk/sdk.ts +225 -0
  451. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  452. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  453. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  454. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  455. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  456. package/packages/orq-rc/src/types/async.ts +68 -0
  457. package/packages/orq-rc/src/types/blobs.ts +32 -0
  458. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  459. package/packages/orq-rc/src/types/enums.ts +45 -0
  460. package/packages/orq-rc/src/types/fp.ts +50 -0
  461. package/packages/orq-rc/src/types/index.ts +11 -0
  462. package/packages/orq-rc/src/types/operations.ts +105 -0
  463. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  464. package/packages/orq-rc/src/types/streams.ts +21 -0
  465. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  466. package/src/lib/config.ts +2 -2
  467. package/src/models/components/reasoningpart.ts +1 -1
  468. package/src/models/operations/createcontact.ts +1 -1
  469. package/src/models/operations/createdataset.ts +1 -1
  470. package/src/models/operations/createdatasetitem.ts +4 -4
  471. package/src/models/operations/createdatasource.ts +1 -1
  472. package/src/models/operations/createeval.ts +16 -16
  473. package/src/models/operations/createidentity.ts +1 -1
  474. package/src/models/operations/createtool.ts +6 -6
  475. package/src/models/operations/getalltools.ts +6 -6
  476. package/src/models/operations/getevals.ts +16 -16
  477. package/src/models/operations/getv2humanevals.ts +6 -6
  478. package/src/models/operations/getv2humanevalsets.ts +2 -2
  479. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  480. package/src/models/operations/getv2humanevalsid.ts +6 -6
  481. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  482. package/src/models/operations/listdatasets.ts +1 -1
  483. package/src/models/operations/listdatasources.ts +1 -1
  484. package/src/models/operations/listidentities.ts +1 -1
  485. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  486. package/src/models/operations/patchv2humanevalsid.ts +12 -12
  487. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  488. package/src/models/operations/postv2humanevals.ts +12 -12
  489. package/src/models/operations/postv2humanevalsets.ts +2 -2
  490. package/src/models/operations/retrievedatapoint.ts +4 -4
  491. package/src/models/operations/retrievedataset.ts +1 -1
  492. package/src/models/operations/retrievedatasource.ts +1 -1
  493. package/src/models/operations/retrieveidentity.ts +1 -1
  494. package/src/models/operations/retrievetool.ts +6 -6
  495. package/src/models/operations/runagent.ts +1 -1
  496. package/src/models/operations/streamrunagent.ts +1 -1
  497. package/src/models/operations/updatedatapoint.ts +4 -4
  498. package/src/models/operations/updatedataset.ts +1 -1
  499. package/src/models/operations/updatedatasource.ts +1 -1
  500. package/src/models/operations/updateeval.ts +16 -16
  501. package/src/models/operations/updateidentity.ts +1 -1
  502. package/src/models/operations/updatetool.ts +7 -7
@@ -0,0 +1,707 @@
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 type GetV2HumanEvalsIdRequest = {
13
+ /**
14
+ * The id of the resource
15
+ */
16
+ id: string;
17
+ };
18
+
19
+ export type GetV2HumanEvalsIdResponseBody6 = {
20
+ type: "text";
21
+ /**
22
+ * The id of the resource
23
+ */
24
+ id: string;
25
+ /**
26
+ * Unique key for the feedback. It is autogenerated by the system always
27
+ */
28
+ key: string;
29
+ /**
30
+ * Display name of the feedback item.
31
+ */
32
+ displayName: string;
33
+ /**
34
+ * Detailed description of the feedback.
35
+ */
36
+ description: string;
37
+ /**
38
+ * The id of the resource
39
+ */
40
+ domainId?: string | undefined;
41
+ /**
42
+ * The id of the user who created the resource
43
+ */
44
+ createdById?: string | undefined;
45
+ /**
46
+ * The id of the user who last updated the resource
47
+ */
48
+ updatedById?: string | undefined;
49
+ /**
50
+ * The id of the resource
51
+ */
52
+ workspaceId: string;
53
+ /**
54
+ * Optional project ID to scope this human review to a specific project
55
+ */
56
+ projectId?: string | undefined;
57
+ };
58
+
59
+ export const GetV2HumanEvalsIdResponseBodyResponseSentiment = {
60
+ Neutral: "neutral",
61
+ Positive: "positive",
62
+ Negative: "negative",
63
+ } as const;
64
+ export type GetV2HumanEvalsIdResponseBodyResponseSentiment = ClosedEnum<
65
+ typeof GetV2HumanEvalsIdResponseBodyResponseSentiment
66
+ >;
67
+
68
+ /**
69
+ * Model representing specific values and attributes of feedback.
70
+ */
71
+ export type GetV2HumanEvalsIdResponseBodyResponseOptions = {
72
+ /**
73
+ * The id of the resource
74
+ */
75
+ id: string;
76
+ /**
77
+ * The value or content of the feedback.
78
+ */
79
+ value: string;
80
+ sentiment: GetV2HumanEvalsIdResponseBodyResponseSentiment;
81
+ /**
82
+ * Description of the feedback option.
83
+ */
84
+ description: string;
85
+ icon: string;
86
+ };
87
+
88
+ export type GetV2HumanEvalsIdResponseBody5 = {
89
+ type: "single_select";
90
+ options: Array<GetV2HumanEvalsIdResponseBodyResponseOptions>;
91
+ /**
92
+ * The id of the resource
93
+ */
94
+ id: string;
95
+ /**
96
+ * Unique key for the feedback. It is autogenerated by the system always
97
+ */
98
+ key: string;
99
+ /**
100
+ * Display name of the feedback item.
101
+ */
102
+ displayName: string;
103
+ /**
104
+ * Detailed description of the feedback.
105
+ */
106
+ description: string;
107
+ /**
108
+ * The id of the resource
109
+ */
110
+ domainId?: string | undefined;
111
+ /**
112
+ * The id of the user who created the resource
113
+ */
114
+ createdById?: string | undefined;
115
+ /**
116
+ * The id of the user who last updated the resource
117
+ */
118
+ updatedById?: string | undefined;
119
+ /**
120
+ * The id of the resource
121
+ */
122
+ workspaceId: string;
123
+ /**
124
+ * Optional project ID to scope this human review to a specific project
125
+ */
126
+ projectId?: string | undefined;
127
+ };
128
+
129
+ export const GetV2HumanEvalsIdResponseBodySentiment = {
130
+ Neutral: "neutral",
131
+ Positive: "positive",
132
+ Negative: "negative",
133
+ } as const;
134
+ export type GetV2HumanEvalsIdResponseBodySentiment = ClosedEnum<
135
+ typeof GetV2HumanEvalsIdResponseBodySentiment
136
+ >;
137
+
138
+ /**
139
+ * Model representing specific values and attributes of feedback.
140
+ */
141
+ export type GetV2HumanEvalsIdResponseBodyOptions = {
142
+ /**
143
+ * The id of the resource
144
+ */
145
+ id: string;
146
+ /**
147
+ * The value or content of the feedback.
148
+ */
149
+ value: string;
150
+ sentiment: GetV2HumanEvalsIdResponseBodySentiment;
151
+ /**
152
+ * Description of the feedback option.
153
+ */
154
+ description: string;
155
+ icon: string;
156
+ };
157
+
158
+ export type GetV2HumanEvalsIdResponseBody4 = {
159
+ type: "multi_select";
160
+ options: Array<GetV2HumanEvalsIdResponseBodyOptions>;
161
+ /**
162
+ * The id of the resource
163
+ */
164
+ id: string;
165
+ /**
166
+ * Unique key for the feedback. It is autogenerated by the system always
167
+ */
168
+ key: string;
169
+ /**
170
+ * Display name of the feedback item.
171
+ */
172
+ displayName: string;
173
+ /**
174
+ * Detailed description of the feedback.
175
+ */
176
+ description: string;
177
+ /**
178
+ * The id of the resource
179
+ */
180
+ domainId?: string | undefined;
181
+ /**
182
+ * The id of the user who created the resource
183
+ */
184
+ createdById?: string | undefined;
185
+ /**
186
+ * The id of the user who last updated the resource
187
+ */
188
+ updatedById?: string | undefined;
189
+ /**
190
+ * The id of the resource
191
+ */
192
+ workspaceId: string;
193
+ /**
194
+ * Optional project ID to scope this human review to a specific project
195
+ */
196
+ projectId?: string | undefined;
197
+ };
198
+
199
+ /**
200
+ * The configuration for a range human review
201
+ */
202
+ export type GetV2HumanEvalsIdResponseBodyConfig = {
203
+ /**
204
+ * The minimum value for the range
205
+ */
206
+ min: number;
207
+ /**
208
+ * The maximum value for the range
209
+ */
210
+ max: number;
211
+ };
212
+
213
+ export type GetV2HumanEvalsIdResponseBody3 = {
214
+ type: "range";
215
+ /**
216
+ * The configuration for a range human review
217
+ */
218
+ config: GetV2HumanEvalsIdResponseBodyConfig;
219
+ /**
220
+ * The id of the resource
221
+ */
222
+ id: string;
223
+ /**
224
+ * Unique key for the feedback. It is autogenerated by the system always
225
+ */
226
+ key: string;
227
+ /**
228
+ * Display name of the feedback item.
229
+ */
230
+ displayName: string;
231
+ /**
232
+ * Detailed description of the feedback.
233
+ */
234
+ description: string;
235
+ /**
236
+ * The id of the resource
237
+ */
238
+ domainId?: string | undefined;
239
+ /**
240
+ * The id of the user who created the resource
241
+ */
242
+ createdById?: string | undefined;
243
+ /**
244
+ * The id of the user who last updated the resource
245
+ */
246
+ updatedById?: string | undefined;
247
+ /**
248
+ * The id of the resource
249
+ */
250
+ workspaceId: string;
251
+ /**
252
+ * Optional project ID to scope this human review to a specific project
253
+ */
254
+ projectId?: string | undefined;
255
+ };
256
+
257
+ export type GetV2HumanEvalsIdResponseBody2 = {
258
+ type: "correction";
259
+ /**
260
+ * The id of the resource
261
+ */
262
+ id: string;
263
+ /**
264
+ * Unique key for the feedback. It is autogenerated by the system always
265
+ */
266
+ key: string;
267
+ /**
268
+ * Display name of the feedback item.
269
+ */
270
+ displayName: string;
271
+ /**
272
+ * Detailed description of the feedback.
273
+ */
274
+ description: string;
275
+ /**
276
+ * The id of the resource
277
+ */
278
+ domainId?: string | undefined;
279
+ /**
280
+ * The id of the user who created the resource
281
+ */
282
+ createdById?: string | undefined;
283
+ /**
284
+ * The id of the user who last updated the resource
285
+ */
286
+ updatedById?: string | undefined;
287
+ /**
288
+ * The id of the resource
289
+ */
290
+ workspaceId: string;
291
+ /**
292
+ * Optional project ID to scope this human review to a specific project
293
+ */
294
+ projectId?: string | undefined;
295
+ };
296
+
297
+ export type GetV2HumanEvalsIdResponseBody1 = {
298
+ type: "boolean";
299
+ /**
300
+ * The id of the resource
301
+ */
302
+ id: string;
303
+ /**
304
+ * Unique key for the feedback. It is autogenerated by the system always
305
+ */
306
+ key: string;
307
+ /**
308
+ * Display name of the feedback item.
309
+ */
310
+ displayName: string;
311
+ /**
312
+ * Detailed description of the feedback.
313
+ */
314
+ description: string;
315
+ /**
316
+ * The id of the resource
317
+ */
318
+ domainId?: string | undefined;
319
+ /**
320
+ * The id of the user who created the resource
321
+ */
322
+ createdById?: string | undefined;
323
+ /**
324
+ * The id of the user who last updated the resource
325
+ */
326
+ updatedById?: string | undefined;
327
+ /**
328
+ * The id of the resource
329
+ */
330
+ workspaceId: string;
331
+ /**
332
+ * Optional project ID to scope this human review to a specific project
333
+ */
334
+ projectId?: string | undefined;
335
+ };
336
+
337
+ /**
338
+ * Returns a single human review
339
+ */
340
+ export type GetV2HumanEvalsIdResponseBody =
341
+ | GetV2HumanEvalsIdResponseBody1
342
+ | GetV2HumanEvalsIdResponseBody2
343
+ | GetV2HumanEvalsIdResponseBody3
344
+ | GetV2HumanEvalsIdResponseBody4
345
+ | GetV2HumanEvalsIdResponseBody5
346
+ | GetV2HumanEvalsIdResponseBody6;
347
+
348
+ /** @internal */
349
+ export type GetV2HumanEvalsIdRequest$Outbound = {
350
+ id: string;
351
+ };
352
+
353
+ /** @internal */
354
+ export const GetV2HumanEvalsIdRequest$outboundSchema: z.ZodType<
355
+ GetV2HumanEvalsIdRequest$Outbound,
356
+ z.ZodTypeDef,
357
+ GetV2HumanEvalsIdRequest
358
+ > = z.object({
359
+ id: z.string(),
360
+ });
361
+
362
+ export function getV2HumanEvalsIdRequestToJSON(
363
+ getV2HumanEvalsIdRequest: GetV2HumanEvalsIdRequest,
364
+ ): string {
365
+ return JSON.stringify(
366
+ GetV2HumanEvalsIdRequest$outboundSchema.parse(getV2HumanEvalsIdRequest),
367
+ );
368
+ }
369
+
370
+ /** @internal */
371
+ export const GetV2HumanEvalsIdResponseBody6$inboundSchema: z.ZodType<
372
+ GetV2HumanEvalsIdResponseBody6,
373
+ z.ZodTypeDef,
374
+ unknown
375
+ > = z.object({
376
+ type: z.literal("text"),
377
+ id: z.string(),
378
+ key: z.string().default("orq_01knsddfa8"),
379
+ display_name: z.string(),
380
+ description: z.string(),
381
+ domain_id: z.string().optional(),
382
+ created_by_id: z.string().optional(),
383
+ updated_by_id: z.string().optional(),
384
+ workspace_id: z.string(),
385
+ project_id: z.string().optional(),
386
+ }).transform((v) => {
387
+ return remap$(v, {
388
+ "display_name": "displayName",
389
+ "domain_id": "domainId",
390
+ "created_by_id": "createdById",
391
+ "updated_by_id": "updatedById",
392
+ "workspace_id": "workspaceId",
393
+ "project_id": "projectId",
394
+ });
395
+ });
396
+
397
+ export function getV2HumanEvalsIdResponseBody6FromJSON(
398
+ jsonString: string,
399
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody6, SDKValidationError> {
400
+ return safeParse(
401
+ jsonString,
402
+ (x) => GetV2HumanEvalsIdResponseBody6$inboundSchema.parse(JSON.parse(x)),
403
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody6' from JSON`,
404
+ );
405
+ }
406
+
407
+ /** @internal */
408
+ export const GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema:
409
+ z.ZodNativeEnum<typeof GetV2HumanEvalsIdResponseBodyResponseSentiment> = z
410
+ .nativeEnum(GetV2HumanEvalsIdResponseBodyResponseSentiment);
411
+
412
+ /** @internal */
413
+ export const GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema:
414
+ z.ZodType<
415
+ GetV2HumanEvalsIdResponseBodyResponseOptions,
416
+ z.ZodTypeDef,
417
+ unknown
418
+ > = z.object({
419
+ id: z.string(),
420
+ value: z.string(),
421
+ sentiment: GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema,
422
+ description: z.string(),
423
+ icon: z.string(),
424
+ });
425
+
426
+ export function getV2HumanEvalsIdResponseBodyResponseOptionsFromJSON(
427
+ jsonString: string,
428
+ ): SafeParseResult<
429
+ GetV2HumanEvalsIdResponseBodyResponseOptions,
430
+ SDKValidationError
431
+ > {
432
+ return safeParse(
433
+ jsonString,
434
+ (x) =>
435
+ GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema.parse(
436
+ JSON.parse(x),
437
+ ),
438
+ `Failed to parse 'GetV2HumanEvalsIdResponseBodyResponseOptions' from JSON`,
439
+ );
440
+ }
441
+
442
+ /** @internal */
443
+ export const GetV2HumanEvalsIdResponseBody5$inboundSchema: z.ZodType<
444
+ GetV2HumanEvalsIdResponseBody5,
445
+ z.ZodTypeDef,
446
+ unknown
447
+ > = z.object({
448
+ type: z.literal("single_select"),
449
+ options: z.array(
450
+ z.lazy(() => GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema),
451
+ ),
452
+ id: z.string(),
453
+ key: z.string().default("orq_01knsddfa7"),
454
+ display_name: z.string(),
455
+ description: z.string(),
456
+ domain_id: z.string().optional(),
457
+ created_by_id: z.string().optional(),
458
+ updated_by_id: z.string().optional(),
459
+ workspace_id: z.string(),
460
+ project_id: z.string().optional(),
461
+ }).transform((v) => {
462
+ return remap$(v, {
463
+ "display_name": "displayName",
464
+ "domain_id": "domainId",
465
+ "created_by_id": "createdById",
466
+ "updated_by_id": "updatedById",
467
+ "workspace_id": "workspaceId",
468
+ "project_id": "projectId",
469
+ });
470
+ });
471
+
472
+ export function getV2HumanEvalsIdResponseBody5FromJSON(
473
+ jsonString: string,
474
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody5, SDKValidationError> {
475
+ return safeParse(
476
+ jsonString,
477
+ (x) => GetV2HumanEvalsIdResponseBody5$inboundSchema.parse(JSON.parse(x)),
478
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody5' from JSON`,
479
+ );
480
+ }
481
+
482
+ /** @internal */
483
+ export const GetV2HumanEvalsIdResponseBodySentiment$inboundSchema:
484
+ z.ZodNativeEnum<typeof GetV2HumanEvalsIdResponseBodySentiment> = z.nativeEnum(
485
+ GetV2HumanEvalsIdResponseBodySentiment,
486
+ );
487
+
488
+ /** @internal */
489
+ export const GetV2HumanEvalsIdResponseBodyOptions$inboundSchema: z.ZodType<
490
+ GetV2HumanEvalsIdResponseBodyOptions,
491
+ z.ZodTypeDef,
492
+ unknown
493
+ > = z.object({
494
+ id: z.string(),
495
+ value: z.string(),
496
+ sentiment: GetV2HumanEvalsIdResponseBodySentiment$inboundSchema,
497
+ description: z.string(),
498
+ icon: z.string(),
499
+ });
500
+
501
+ export function getV2HumanEvalsIdResponseBodyOptionsFromJSON(
502
+ jsonString: string,
503
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBodyOptions, SDKValidationError> {
504
+ return safeParse(
505
+ jsonString,
506
+ (x) =>
507
+ GetV2HumanEvalsIdResponseBodyOptions$inboundSchema.parse(JSON.parse(x)),
508
+ `Failed to parse 'GetV2HumanEvalsIdResponseBodyOptions' from JSON`,
509
+ );
510
+ }
511
+
512
+ /** @internal */
513
+ export const GetV2HumanEvalsIdResponseBody4$inboundSchema: z.ZodType<
514
+ GetV2HumanEvalsIdResponseBody4,
515
+ z.ZodTypeDef,
516
+ unknown
517
+ > = z.object({
518
+ type: z.literal("multi_select"),
519
+ options: z.array(
520
+ z.lazy(() => GetV2HumanEvalsIdResponseBodyOptions$inboundSchema),
521
+ ),
522
+ id: z.string(),
523
+ key: z.string().default("orq_01knsddfa6"),
524
+ display_name: z.string(),
525
+ description: z.string(),
526
+ domain_id: z.string().optional(),
527
+ created_by_id: z.string().optional(),
528
+ updated_by_id: z.string().optional(),
529
+ workspace_id: z.string(),
530
+ project_id: z.string().optional(),
531
+ }).transform((v) => {
532
+ return remap$(v, {
533
+ "display_name": "displayName",
534
+ "domain_id": "domainId",
535
+ "created_by_id": "createdById",
536
+ "updated_by_id": "updatedById",
537
+ "workspace_id": "workspaceId",
538
+ "project_id": "projectId",
539
+ });
540
+ });
541
+
542
+ export function getV2HumanEvalsIdResponseBody4FromJSON(
543
+ jsonString: string,
544
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody4, SDKValidationError> {
545
+ return safeParse(
546
+ jsonString,
547
+ (x) => GetV2HumanEvalsIdResponseBody4$inboundSchema.parse(JSON.parse(x)),
548
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody4' from JSON`,
549
+ );
550
+ }
551
+
552
+ /** @internal */
553
+ export const GetV2HumanEvalsIdResponseBodyConfig$inboundSchema: z.ZodType<
554
+ GetV2HumanEvalsIdResponseBodyConfig,
555
+ z.ZodTypeDef,
556
+ unknown
557
+ > = z.object({
558
+ min: z.number().int(),
559
+ max: z.number().int(),
560
+ });
561
+
562
+ export function getV2HumanEvalsIdResponseBodyConfigFromJSON(
563
+ jsonString: string,
564
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBodyConfig, SDKValidationError> {
565
+ return safeParse(
566
+ jsonString,
567
+ (x) =>
568
+ GetV2HumanEvalsIdResponseBodyConfig$inboundSchema.parse(JSON.parse(x)),
569
+ `Failed to parse 'GetV2HumanEvalsIdResponseBodyConfig' from JSON`,
570
+ );
571
+ }
572
+
573
+ /** @internal */
574
+ export const GetV2HumanEvalsIdResponseBody3$inboundSchema: z.ZodType<
575
+ GetV2HumanEvalsIdResponseBody3,
576
+ z.ZodTypeDef,
577
+ unknown
578
+ > = z.object({
579
+ type: z.literal("range"),
580
+ config: z.lazy(() => GetV2HumanEvalsIdResponseBodyConfig$inboundSchema),
581
+ id: z.string(),
582
+ key: z.string().default("orq_01knsddfa5"),
583
+ display_name: z.string(),
584
+ description: z.string(),
585
+ domain_id: z.string().optional(),
586
+ created_by_id: z.string().optional(),
587
+ updated_by_id: z.string().optional(),
588
+ workspace_id: z.string(),
589
+ project_id: z.string().optional(),
590
+ }).transform((v) => {
591
+ return remap$(v, {
592
+ "display_name": "displayName",
593
+ "domain_id": "domainId",
594
+ "created_by_id": "createdById",
595
+ "updated_by_id": "updatedById",
596
+ "workspace_id": "workspaceId",
597
+ "project_id": "projectId",
598
+ });
599
+ });
600
+
601
+ export function getV2HumanEvalsIdResponseBody3FromJSON(
602
+ jsonString: string,
603
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody3, SDKValidationError> {
604
+ return safeParse(
605
+ jsonString,
606
+ (x) => GetV2HumanEvalsIdResponseBody3$inboundSchema.parse(JSON.parse(x)),
607
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody3' from JSON`,
608
+ );
609
+ }
610
+
611
+ /** @internal */
612
+ export const GetV2HumanEvalsIdResponseBody2$inboundSchema: z.ZodType<
613
+ GetV2HumanEvalsIdResponseBody2,
614
+ z.ZodTypeDef,
615
+ unknown
616
+ > = z.object({
617
+ type: z.literal("correction"),
618
+ id: z.string(),
619
+ key: z.string().default("orq_01knsddfa4"),
620
+ display_name: z.string(),
621
+ description: z.string(),
622
+ domain_id: z.string().optional(),
623
+ created_by_id: z.string().optional(),
624
+ updated_by_id: z.string().optional(),
625
+ workspace_id: z.string(),
626
+ project_id: z.string().optional(),
627
+ }).transform((v) => {
628
+ return remap$(v, {
629
+ "display_name": "displayName",
630
+ "domain_id": "domainId",
631
+ "created_by_id": "createdById",
632
+ "updated_by_id": "updatedById",
633
+ "workspace_id": "workspaceId",
634
+ "project_id": "projectId",
635
+ });
636
+ });
637
+
638
+ export function getV2HumanEvalsIdResponseBody2FromJSON(
639
+ jsonString: string,
640
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody2, SDKValidationError> {
641
+ return safeParse(
642
+ jsonString,
643
+ (x) => GetV2HumanEvalsIdResponseBody2$inboundSchema.parse(JSON.parse(x)),
644
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody2' from JSON`,
645
+ );
646
+ }
647
+
648
+ /** @internal */
649
+ export const GetV2HumanEvalsIdResponseBody1$inboundSchema: z.ZodType<
650
+ GetV2HumanEvalsIdResponseBody1,
651
+ z.ZodTypeDef,
652
+ unknown
653
+ > = z.object({
654
+ type: z.literal("boolean"),
655
+ id: z.string(),
656
+ key: z.string().default("orq_01knsddfa3"),
657
+ display_name: z.string(),
658
+ description: z.string(),
659
+ domain_id: z.string().optional(),
660
+ created_by_id: z.string().optional(),
661
+ updated_by_id: z.string().optional(),
662
+ workspace_id: z.string(),
663
+ project_id: z.string().optional(),
664
+ }).transform((v) => {
665
+ return remap$(v, {
666
+ "display_name": "displayName",
667
+ "domain_id": "domainId",
668
+ "created_by_id": "createdById",
669
+ "updated_by_id": "updatedById",
670
+ "workspace_id": "workspaceId",
671
+ "project_id": "projectId",
672
+ });
673
+ });
674
+
675
+ export function getV2HumanEvalsIdResponseBody1FromJSON(
676
+ jsonString: string,
677
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody1, SDKValidationError> {
678
+ return safeParse(
679
+ jsonString,
680
+ (x) => GetV2HumanEvalsIdResponseBody1$inboundSchema.parse(JSON.parse(x)),
681
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody1' from JSON`,
682
+ );
683
+ }
684
+
685
+ /** @internal */
686
+ export const GetV2HumanEvalsIdResponseBody$inboundSchema: z.ZodType<
687
+ GetV2HumanEvalsIdResponseBody,
688
+ z.ZodTypeDef,
689
+ unknown
690
+ > = z.union([
691
+ z.lazy(() => GetV2HumanEvalsIdResponseBody1$inboundSchema),
692
+ z.lazy(() => GetV2HumanEvalsIdResponseBody2$inboundSchema),
693
+ z.lazy(() => GetV2HumanEvalsIdResponseBody3$inboundSchema),
694
+ z.lazy(() => GetV2HumanEvalsIdResponseBody4$inboundSchema),
695
+ z.lazy(() => GetV2HumanEvalsIdResponseBody5$inboundSchema),
696
+ z.lazy(() => GetV2HumanEvalsIdResponseBody6$inboundSchema),
697
+ ]);
698
+
699
+ export function getV2HumanEvalsIdResponseBodyFromJSON(
700
+ jsonString: string,
701
+ ): SafeParseResult<GetV2HumanEvalsIdResponseBody, SDKValidationError> {
702
+ return safeParse(
703
+ jsonString,
704
+ (x) => GetV2HumanEvalsIdResponseBody$inboundSchema.parse(JSON.parse(x)),
705
+ `Failed to parse 'GetV2HumanEvalsIdResponseBody' from JSON`,
706
+ );
707
+ }