@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,235 @@
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 ErrorT = {
13
+ message: string;
14
+ stack?: string | undefined;
15
+ };
16
+
17
+ /**
18
+ * Orquesta product
19
+ */
20
+ export const ToolExecutionFailedStreamingEventProduct = {
21
+ Remoteconfigs: "remoteconfigs",
22
+ Deployments: "deployments",
23
+ Experiments: "experiments",
24
+ Playgrounds: "playgrounds",
25
+ Spreadsheets: "spreadsheets",
26
+ SpreadsheetRun: "spreadsheet_run",
27
+ LlmEvaluator: "llm_evaluator",
28
+ Knowledge: "knowledge",
29
+ Router: "router",
30
+ Workflows: "workflows",
31
+ ExternalEvents: "external_events",
32
+ Agents: "agents",
33
+ MemoryStores: "memory-stores",
34
+ Generic: "generic",
35
+ Evaluators: "evaluators",
36
+ Otel: "otel",
37
+ AiChat: "ai-chat",
38
+ } as const;
39
+ /**
40
+ * Orquesta product
41
+ */
42
+ export type ToolExecutionFailedStreamingEventProduct = ClosedEnum<
43
+ typeof ToolExecutionFailedStreamingEventProduct
44
+ >;
45
+
46
+ export type ToolExecutionFailedStreamingEventMemory = {
47
+ entityId: string;
48
+ };
49
+
50
+ export type ToolExecutionFailedStreamingEventToolExecutionContext = {
51
+ actionId: string;
52
+ agentToolCallId: string;
53
+ workspaceId: string;
54
+ agentManifestId: string;
55
+ agentExecutionId: string;
56
+ /**
57
+ * Orquesta product
58
+ */
59
+ product: ToolExecutionFailedStreamingEventProduct;
60
+ memory?: ToolExecutionFailedStreamingEventMemory | undefined;
61
+ parentId?: string | undefined;
62
+ variables?: { [k: string]: any } | undefined;
63
+ secretKeys?: Array<string> | undefined;
64
+ };
65
+
66
+ export type ToolExecutionFailedStreamingEventData = {
67
+ error: ErrorT;
68
+ actionType: string;
69
+ toolExecutionContext: ToolExecutionFailedStreamingEventToolExecutionContext;
70
+ responseId?: string | undefined;
71
+ workflowRunId: string;
72
+ stream?: boolean | undefined;
73
+ };
74
+
75
+ /**
76
+ * Emitted when a tool execution fails. Contains the error details, action type, and execution context.
77
+ */
78
+ export type ToolExecutionFailedStreamingEvent = {
79
+ type: "event.workflow_events.tool_execution_failed";
80
+ /**
81
+ * ISO timestamp of the event
82
+ */
83
+ timestamp: string;
84
+ data: ToolExecutionFailedStreamingEventData;
85
+ };
86
+
87
+ /** @internal */
88
+ export const ErrorT$inboundSchema: z.ZodType<ErrorT, z.ZodTypeDef, unknown> = z
89
+ .object({
90
+ message: z.string(),
91
+ stack: z.string().optional(),
92
+ });
93
+
94
+ export function errorFromJSON(
95
+ jsonString: string,
96
+ ): SafeParseResult<ErrorT, SDKValidationError> {
97
+ return safeParse(
98
+ jsonString,
99
+ (x) => ErrorT$inboundSchema.parse(JSON.parse(x)),
100
+ `Failed to parse 'ErrorT' from JSON`,
101
+ );
102
+ }
103
+
104
+ /** @internal */
105
+ export const ToolExecutionFailedStreamingEventProduct$inboundSchema:
106
+ z.ZodNativeEnum<typeof ToolExecutionFailedStreamingEventProduct> = z
107
+ .nativeEnum(ToolExecutionFailedStreamingEventProduct);
108
+
109
+ /** @internal */
110
+ export const ToolExecutionFailedStreamingEventMemory$inboundSchema: z.ZodType<
111
+ ToolExecutionFailedStreamingEventMemory,
112
+ z.ZodTypeDef,
113
+ unknown
114
+ > = z.object({
115
+ entity_id: z.string(),
116
+ }).transform((v) => {
117
+ return remap$(v, {
118
+ "entity_id": "entityId",
119
+ });
120
+ });
121
+
122
+ export function toolExecutionFailedStreamingEventMemoryFromJSON(
123
+ jsonString: string,
124
+ ): SafeParseResult<
125
+ ToolExecutionFailedStreamingEventMemory,
126
+ SDKValidationError
127
+ > {
128
+ return safeParse(
129
+ jsonString,
130
+ (x) =>
131
+ ToolExecutionFailedStreamingEventMemory$inboundSchema.parse(
132
+ JSON.parse(x),
133
+ ),
134
+ `Failed to parse 'ToolExecutionFailedStreamingEventMemory' from JSON`,
135
+ );
136
+ }
137
+
138
+ /** @internal */
139
+ export const ToolExecutionFailedStreamingEventToolExecutionContext$inboundSchema:
140
+ z.ZodType<
141
+ ToolExecutionFailedStreamingEventToolExecutionContext,
142
+ z.ZodTypeDef,
143
+ unknown
144
+ > = z.object({
145
+ action_id: z.string(),
146
+ agent_tool_call_id: z.string(),
147
+ workspace_id: z.string(),
148
+ agent_manifest_id: z.string(),
149
+ agent_execution_id: z.string(),
150
+ product: ToolExecutionFailedStreamingEventProduct$inboundSchema,
151
+ memory: z.lazy(() => ToolExecutionFailedStreamingEventMemory$inboundSchema)
152
+ .optional(),
153
+ parent_id: z.string().optional(),
154
+ variables: z.record(z.any()).optional(),
155
+ secret_keys: z.array(z.string()).optional(),
156
+ }).transform((v) => {
157
+ return remap$(v, {
158
+ "action_id": "actionId",
159
+ "agent_tool_call_id": "agentToolCallId",
160
+ "workspace_id": "workspaceId",
161
+ "agent_manifest_id": "agentManifestId",
162
+ "agent_execution_id": "agentExecutionId",
163
+ "parent_id": "parentId",
164
+ "secret_keys": "secretKeys",
165
+ });
166
+ });
167
+
168
+ export function toolExecutionFailedStreamingEventToolExecutionContextFromJSON(
169
+ jsonString: string,
170
+ ): SafeParseResult<
171
+ ToolExecutionFailedStreamingEventToolExecutionContext,
172
+ SDKValidationError
173
+ > {
174
+ return safeParse(
175
+ jsonString,
176
+ (x) =>
177
+ ToolExecutionFailedStreamingEventToolExecutionContext$inboundSchema.parse(
178
+ JSON.parse(x),
179
+ ),
180
+ `Failed to parse 'ToolExecutionFailedStreamingEventToolExecutionContext' from JSON`,
181
+ );
182
+ }
183
+
184
+ /** @internal */
185
+ export const ToolExecutionFailedStreamingEventData$inboundSchema: z.ZodType<
186
+ ToolExecutionFailedStreamingEventData,
187
+ z.ZodTypeDef,
188
+ unknown
189
+ > = z.object({
190
+ error: z.lazy(() => ErrorT$inboundSchema),
191
+ action_type: z.string(),
192
+ tool_execution_context: z.lazy(() =>
193
+ ToolExecutionFailedStreamingEventToolExecutionContext$inboundSchema
194
+ ),
195
+ responseId: z.string().optional(),
196
+ workflowRunId: z.string(),
197
+ stream: z.boolean().optional(),
198
+ }).transform((v) => {
199
+ return remap$(v, {
200
+ "action_type": "actionType",
201
+ "tool_execution_context": "toolExecutionContext",
202
+ });
203
+ });
204
+
205
+ export function toolExecutionFailedStreamingEventDataFromJSON(
206
+ jsonString: string,
207
+ ): SafeParseResult<ToolExecutionFailedStreamingEventData, SDKValidationError> {
208
+ return safeParse(
209
+ jsonString,
210
+ (x) =>
211
+ ToolExecutionFailedStreamingEventData$inboundSchema.parse(JSON.parse(x)),
212
+ `Failed to parse 'ToolExecutionFailedStreamingEventData' from JSON`,
213
+ );
214
+ }
215
+
216
+ /** @internal */
217
+ export const ToolExecutionFailedStreamingEvent$inboundSchema: z.ZodType<
218
+ ToolExecutionFailedStreamingEvent,
219
+ z.ZodTypeDef,
220
+ unknown
221
+ > = z.object({
222
+ type: z.literal("event.workflow_events.tool_execution_failed"),
223
+ timestamp: z.string(),
224
+ data: z.lazy(() => ToolExecutionFailedStreamingEventData$inboundSchema),
225
+ });
226
+
227
+ export function toolExecutionFailedStreamingEventFromJSON(
228
+ jsonString: string,
229
+ ): SafeParseResult<ToolExecutionFailedStreamingEvent, SDKValidationError> {
230
+ return safeParse(
231
+ jsonString,
232
+ (x) => ToolExecutionFailedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
233
+ `Failed to parse 'ToolExecutionFailedStreamingEvent' from JSON`,
234
+ );
235
+ }
@@ -0,0 +1,219 @@
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
+ /**
13
+ * Orquesta product
14
+ */
15
+ export const ToolExecutionFinishedStreamingEventProduct = {
16
+ Remoteconfigs: "remoteconfigs",
17
+ Deployments: "deployments",
18
+ Experiments: "experiments",
19
+ Playgrounds: "playgrounds",
20
+ Spreadsheets: "spreadsheets",
21
+ SpreadsheetRun: "spreadsheet_run",
22
+ LlmEvaluator: "llm_evaluator",
23
+ Knowledge: "knowledge",
24
+ Router: "router",
25
+ Workflows: "workflows",
26
+ ExternalEvents: "external_events",
27
+ Agents: "agents",
28
+ MemoryStores: "memory-stores",
29
+ Generic: "generic",
30
+ Evaluators: "evaluators",
31
+ Otel: "otel",
32
+ AiChat: "ai-chat",
33
+ } as const;
34
+ /**
35
+ * Orquesta product
36
+ */
37
+ export type ToolExecutionFinishedStreamingEventProduct = ClosedEnum<
38
+ typeof ToolExecutionFinishedStreamingEventProduct
39
+ >;
40
+
41
+ export type ToolExecutionFinishedStreamingEventMemory = {
42
+ entityId: string;
43
+ };
44
+
45
+ export type ToolExecutionFinishedStreamingEventToolExecutionContext = {
46
+ actionId: string;
47
+ agentToolCallId: string;
48
+ workspaceId: string;
49
+ agentManifestId: string;
50
+ agentExecutionId: string;
51
+ /**
52
+ * Orquesta product
53
+ */
54
+ product: ToolExecutionFinishedStreamingEventProduct;
55
+ memory?: ToolExecutionFinishedStreamingEventMemory | undefined;
56
+ parentId?: string | undefined;
57
+ variables?: { [k: string]: any } | undefined;
58
+ secretKeys?: Array<string> | undefined;
59
+ };
60
+
61
+ export type ToolExecutionFinishedStreamingEventData = {
62
+ result?: any | undefined;
63
+ actionType: string;
64
+ toolExecutionContext: ToolExecutionFinishedStreamingEventToolExecutionContext;
65
+ responseId?: string | undefined;
66
+ workflowRunId: string;
67
+ stream?: boolean | undefined;
68
+ };
69
+
70
+ /**
71
+ * Emitted when a tool completes execution successfully. Contains the result data, action type, and execution context.
72
+ */
73
+ export type ToolExecutionFinishedStreamingEvent = {
74
+ type: "event.workflow_events.tool_execution_finished";
75
+ /**
76
+ * ISO timestamp of the event
77
+ */
78
+ timestamp: string;
79
+ data: ToolExecutionFinishedStreamingEventData;
80
+ };
81
+
82
+ /** @internal */
83
+ export const ToolExecutionFinishedStreamingEventProduct$inboundSchema:
84
+ z.ZodNativeEnum<typeof ToolExecutionFinishedStreamingEventProduct> = z
85
+ .nativeEnum(ToolExecutionFinishedStreamingEventProduct);
86
+
87
+ /** @internal */
88
+ export const ToolExecutionFinishedStreamingEventMemory$inboundSchema: z.ZodType<
89
+ ToolExecutionFinishedStreamingEventMemory,
90
+ z.ZodTypeDef,
91
+ unknown
92
+ > = z.object({
93
+ entity_id: z.string(),
94
+ }).transform((v) => {
95
+ return remap$(v, {
96
+ "entity_id": "entityId",
97
+ });
98
+ });
99
+
100
+ export function toolExecutionFinishedStreamingEventMemoryFromJSON(
101
+ jsonString: string,
102
+ ): SafeParseResult<
103
+ ToolExecutionFinishedStreamingEventMemory,
104
+ SDKValidationError
105
+ > {
106
+ return safeParse(
107
+ jsonString,
108
+ (x) =>
109
+ ToolExecutionFinishedStreamingEventMemory$inboundSchema.parse(
110
+ JSON.parse(x),
111
+ ),
112
+ `Failed to parse 'ToolExecutionFinishedStreamingEventMemory' from JSON`,
113
+ );
114
+ }
115
+
116
+ /** @internal */
117
+ export const ToolExecutionFinishedStreamingEventToolExecutionContext$inboundSchema:
118
+ z.ZodType<
119
+ ToolExecutionFinishedStreamingEventToolExecutionContext,
120
+ z.ZodTypeDef,
121
+ unknown
122
+ > = z.object({
123
+ action_id: z.string(),
124
+ agent_tool_call_id: z.string(),
125
+ workspace_id: z.string(),
126
+ agent_manifest_id: z.string(),
127
+ agent_execution_id: z.string(),
128
+ product: ToolExecutionFinishedStreamingEventProduct$inboundSchema,
129
+ memory: z.lazy(() =>
130
+ ToolExecutionFinishedStreamingEventMemory$inboundSchema
131
+ ).optional(),
132
+ parent_id: z.string().optional(),
133
+ variables: z.record(z.any()).optional(),
134
+ secret_keys: z.array(z.string()).optional(),
135
+ }).transform((v) => {
136
+ return remap$(v, {
137
+ "action_id": "actionId",
138
+ "agent_tool_call_id": "agentToolCallId",
139
+ "workspace_id": "workspaceId",
140
+ "agent_manifest_id": "agentManifestId",
141
+ "agent_execution_id": "agentExecutionId",
142
+ "parent_id": "parentId",
143
+ "secret_keys": "secretKeys",
144
+ });
145
+ });
146
+
147
+ export function toolExecutionFinishedStreamingEventToolExecutionContextFromJSON(
148
+ jsonString: string,
149
+ ): SafeParseResult<
150
+ ToolExecutionFinishedStreamingEventToolExecutionContext,
151
+ SDKValidationError
152
+ > {
153
+ return safeParse(
154
+ jsonString,
155
+ (x) =>
156
+ ToolExecutionFinishedStreamingEventToolExecutionContext$inboundSchema
157
+ .parse(JSON.parse(x)),
158
+ `Failed to parse 'ToolExecutionFinishedStreamingEventToolExecutionContext' from JSON`,
159
+ );
160
+ }
161
+
162
+ /** @internal */
163
+ export const ToolExecutionFinishedStreamingEventData$inboundSchema: z.ZodType<
164
+ ToolExecutionFinishedStreamingEventData,
165
+ z.ZodTypeDef,
166
+ unknown
167
+ > = z.object({
168
+ result: z.any().optional(),
169
+ action_type: z.string(),
170
+ tool_execution_context: z.lazy(() =>
171
+ ToolExecutionFinishedStreamingEventToolExecutionContext$inboundSchema
172
+ ),
173
+ responseId: z.string().optional(),
174
+ workflowRunId: z.string(),
175
+ stream: z.boolean().optional(),
176
+ }).transform((v) => {
177
+ return remap$(v, {
178
+ "action_type": "actionType",
179
+ "tool_execution_context": "toolExecutionContext",
180
+ });
181
+ });
182
+
183
+ export function toolExecutionFinishedStreamingEventDataFromJSON(
184
+ jsonString: string,
185
+ ): SafeParseResult<
186
+ ToolExecutionFinishedStreamingEventData,
187
+ SDKValidationError
188
+ > {
189
+ return safeParse(
190
+ jsonString,
191
+ (x) =>
192
+ ToolExecutionFinishedStreamingEventData$inboundSchema.parse(
193
+ JSON.parse(x),
194
+ ),
195
+ `Failed to parse 'ToolExecutionFinishedStreamingEventData' from JSON`,
196
+ );
197
+ }
198
+
199
+ /** @internal */
200
+ export const ToolExecutionFinishedStreamingEvent$inboundSchema: z.ZodType<
201
+ ToolExecutionFinishedStreamingEvent,
202
+ z.ZodTypeDef,
203
+ unknown
204
+ > = z.object({
205
+ type: z.literal("event.workflow_events.tool_execution_finished"),
206
+ timestamp: z.string(),
207
+ data: z.lazy(() => ToolExecutionFinishedStreamingEventData$inboundSchema),
208
+ });
209
+
210
+ export function toolExecutionFinishedStreamingEventFromJSON(
211
+ jsonString: string,
212
+ ): SafeParseResult<ToolExecutionFinishedStreamingEvent, SDKValidationError> {
213
+ return safeParse(
214
+ jsonString,
215
+ (x) =>
216
+ ToolExecutionFinishedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
217
+ `Failed to parse 'ToolExecutionFinishedStreamingEvent' from JSON`,
218
+ );
219
+ }
@@ -0,0 +1,205 @@
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
+ /**
13
+ * Orquesta product
14
+ */
15
+ export const Product = {
16
+ Remoteconfigs: "remoteconfigs",
17
+ Deployments: "deployments",
18
+ Experiments: "experiments",
19
+ Playgrounds: "playgrounds",
20
+ Spreadsheets: "spreadsheets",
21
+ SpreadsheetRun: "spreadsheet_run",
22
+ LlmEvaluator: "llm_evaluator",
23
+ Knowledge: "knowledge",
24
+ Router: "router",
25
+ Workflows: "workflows",
26
+ ExternalEvents: "external_events",
27
+ Agents: "agents",
28
+ MemoryStores: "memory-stores",
29
+ Generic: "generic",
30
+ Evaluators: "evaluators",
31
+ Otel: "otel",
32
+ AiChat: "ai-chat",
33
+ } as const;
34
+ /**
35
+ * Orquesta product
36
+ */
37
+ export type Product = ClosedEnum<typeof Product>;
38
+
39
+ export type Memory = {
40
+ entityId: string;
41
+ };
42
+
43
+ export type ToolExecutionContext = {
44
+ actionId: string;
45
+ agentToolCallId: string;
46
+ workspaceId: string;
47
+ agentManifestId: string;
48
+ agentExecutionId: string;
49
+ /**
50
+ * Orquesta product
51
+ */
52
+ product: Product;
53
+ memory?: Memory | undefined;
54
+ parentId?: string | undefined;
55
+ variables?: { [k: string]: any } | undefined;
56
+ secretKeys?: Array<string> | undefined;
57
+ };
58
+
59
+ export type ToolExecutionStartedStreamingEventData = {
60
+ toolId: string;
61
+ toolKey?: string | undefined;
62
+ toolDisplayName?: string | undefined;
63
+ toolDescription?: string | null | undefined;
64
+ actionType: string;
65
+ toolArguments: { [k: string]: any };
66
+ toolExecutionContext: ToolExecutionContext;
67
+ responseId?: string | undefined;
68
+ workflowRunId: string;
69
+ stream?: boolean | undefined;
70
+ };
71
+
72
+ /**
73
+ * Emitted when a tool begins execution. Contains the tool ID, name, action type, input arguments, and execution context.
74
+ */
75
+ export type ToolExecutionStartedStreamingEvent = {
76
+ type: "event.workflow_events.tool_execution_started";
77
+ /**
78
+ * ISO timestamp of the event
79
+ */
80
+ timestamp: string;
81
+ data: ToolExecutionStartedStreamingEventData;
82
+ };
83
+
84
+ /** @internal */
85
+ export const Product$inboundSchema: z.ZodNativeEnum<typeof Product> = z
86
+ .nativeEnum(Product);
87
+
88
+ /** @internal */
89
+ export const Memory$inboundSchema: z.ZodType<Memory, z.ZodTypeDef, unknown> = z
90
+ .object({
91
+ entity_id: z.string(),
92
+ }).transform((v) => {
93
+ return remap$(v, {
94
+ "entity_id": "entityId",
95
+ });
96
+ });
97
+
98
+ export function memoryFromJSON(
99
+ jsonString: string,
100
+ ): SafeParseResult<Memory, SDKValidationError> {
101
+ return safeParse(
102
+ jsonString,
103
+ (x) => Memory$inboundSchema.parse(JSON.parse(x)),
104
+ `Failed to parse 'Memory' from JSON`,
105
+ );
106
+ }
107
+
108
+ /** @internal */
109
+ export const ToolExecutionContext$inboundSchema: z.ZodType<
110
+ ToolExecutionContext,
111
+ z.ZodTypeDef,
112
+ unknown
113
+ > = z.object({
114
+ action_id: z.string(),
115
+ agent_tool_call_id: z.string(),
116
+ workspace_id: z.string(),
117
+ agent_manifest_id: z.string(),
118
+ agent_execution_id: z.string(),
119
+ product: Product$inboundSchema,
120
+ memory: z.lazy(() => Memory$inboundSchema).optional(),
121
+ parent_id: z.string().optional(),
122
+ variables: z.record(z.any()).optional(),
123
+ secret_keys: z.array(z.string()).optional(),
124
+ }).transform((v) => {
125
+ return remap$(v, {
126
+ "action_id": "actionId",
127
+ "agent_tool_call_id": "agentToolCallId",
128
+ "workspace_id": "workspaceId",
129
+ "agent_manifest_id": "agentManifestId",
130
+ "agent_execution_id": "agentExecutionId",
131
+ "parent_id": "parentId",
132
+ "secret_keys": "secretKeys",
133
+ });
134
+ });
135
+
136
+ export function toolExecutionContextFromJSON(
137
+ jsonString: string,
138
+ ): SafeParseResult<ToolExecutionContext, SDKValidationError> {
139
+ return safeParse(
140
+ jsonString,
141
+ (x) => ToolExecutionContext$inboundSchema.parse(JSON.parse(x)),
142
+ `Failed to parse 'ToolExecutionContext' from JSON`,
143
+ );
144
+ }
145
+
146
+ /** @internal */
147
+ export const ToolExecutionStartedStreamingEventData$inboundSchema: z.ZodType<
148
+ ToolExecutionStartedStreamingEventData,
149
+ z.ZodTypeDef,
150
+ unknown
151
+ > = z.object({
152
+ tool_id: z.string(),
153
+ tool_key: z.string().optional(),
154
+ tool_display_name: z.string().optional(),
155
+ tool_description: z.nullable(z.string()).optional(),
156
+ action_type: z.string(),
157
+ tool_arguments: z.record(z.any()),
158
+ tool_execution_context: z.lazy(() => ToolExecutionContext$inboundSchema),
159
+ responseId: z.string().optional(),
160
+ workflowRunId: z.string(),
161
+ stream: z.boolean().optional(),
162
+ }).transform((v) => {
163
+ return remap$(v, {
164
+ "tool_id": "toolId",
165
+ "tool_key": "toolKey",
166
+ "tool_display_name": "toolDisplayName",
167
+ "tool_description": "toolDescription",
168
+ "action_type": "actionType",
169
+ "tool_arguments": "toolArguments",
170
+ "tool_execution_context": "toolExecutionContext",
171
+ });
172
+ });
173
+
174
+ export function toolExecutionStartedStreamingEventDataFromJSON(
175
+ jsonString: string,
176
+ ): SafeParseResult<ToolExecutionStartedStreamingEventData, SDKValidationError> {
177
+ return safeParse(
178
+ jsonString,
179
+ (x) =>
180
+ ToolExecutionStartedStreamingEventData$inboundSchema.parse(JSON.parse(x)),
181
+ `Failed to parse 'ToolExecutionStartedStreamingEventData' from JSON`,
182
+ );
183
+ }
184
+
185
+ /** @internal */
186
+ export const ToolExecutionStartedStreamingEvent$inboundSchema: z.ZodType<
187
+ ToolExecutionStartedStreamingEvent,
188
+ z.ZodTypeDef,
189
+ unknown
190
+ > = z.object({
191
+ type: z.literal("event.workflow_events.tool_execution_started"),
192
+ timestamp: z.string(),
193
+ data: z.lazy(() => ToolExecutionStartedStreamingEventData$inboundSchema),
194
+ });
195
+
196
+ export function toolExecutionStartedStreamingEventFromJSON(
197
+ jsonString: string,
198
+ ): SafeParseResult<ToolExecutionStartedStreamingEvent, SDKValidationError> {
199
+ return safeParse(
200
+ jsonString,
201
+ (x) =>
202
+ ToolExecutionStartedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
203
+ `Failed to parse 'ToolExecutionStartedStreamingEvent' from JSON`,
204
+ );
205
+ }