@orq-ai/node 4.7.0-rc.56 → 4.7.0

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,801 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../lib/primitives.js";
7
+ import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import * as components from "../components/index.js";
11
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
+
13
+ /**
14
+ * Message containing tool execution results
15
+ */
16
+ export const InvokeAgentRoleToolMessage = {
17
+ Tool: "tool",
18
+ } as const;
19
+ /**
20
+ * Message containing tool execution results
21
+ */
22
+ export type InvokeAgentRoleToolMessage = ClosedEnum<
23
+ typeof InvokeAgentRoleToolMessage
24
+ >;
25
+
26
+ /**
27
+ * Message from the end user
28
+ */
29
+ export const InvokeAgentRoleUserMessage = {
30
+ User: "user",
31
+ } as const;
32
+ /**
33
+ * Message from the end user
34
+ */
35
+ export type InvokeAgentRoleUserMessage = ClosedEnum<
36
+ typeof InvokeAgentRoleUserMessage
37
+ >;
38
+
39
+ /**
40
+ * Message role (user or tool for continuing executions)
41
+ */
42
+ export type InvokeAgentRole =
43
+ | InvokeAgentRoleUserMessage
44
+ | InvokeAgentRoleToolMessage;
45
+
46
+ /**
47
+ * Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
48
+ */
49
+ export type InvokeAgentPublicMessagePart =
50
+ | components.TextPart
51
+ | components.FilePart
52
+ | components.ToolResultPart
53
+ | components.ErrorPart;
54
+
55
+ /**
56
+ * The A2A message to send to the agent (user input or tool results)
57
+ */
58
+ export type InvokeAgentA2AMessage = {
59
+ /**
60
+ * Optional A2A message ID in ULID format
61
+ */
62
+ messageId?: string | undefined;
63
+ /**
64
+ * Message role (user or tool for continuing executions)
65
+ */
66
+ role: InvokeAgentRoleUserMessage | InvokeAgentRoleToolMessage;
67
+ /**
68
+ * A2A message parts (text, file, or tool_result only). Note: Tool role messages must only contain tool_result parts.
69
+ */
70
+ parts: Array<
71
+ | components.TextPart
72
+ | components.FilePart
73
+ | components.ToolResultPart
74
+ | components.ErrorPart
75
+ >;
76
+ };
77
+
78
+ /**
79
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
80
+ */
81
+ export type InvokeAgentIdentity = {
82
+ /**
83
+ * Unique identifier for the contact
84
+ */
85
+ id: string;
86
+ /**
87
+ * Display name of the contact
88
+ */
89
+ displayName?: string | undefined;
90
+ /**
91
+ * Email address of the contact
92
+ */
93
+ email?: string | undefined;
94
+ /**
95
+ * A hash of key/value pairs containing any other data about the contact
96
+ */
97
+ metadata?: Array<{ [k: string]: any }> | undefined;
98
+ /**
99
+ * URL to the contact's avatar or logo
100
+ */
101
+ logoUrl?: string | undefined;
102
+ /**
103
+ * A list of tags associated with the contact
104
+ */
105
+ tags?: Array<string> | undefined;
106
+ };
107
+
108
+ /**
109
+ * @deprecated Use identity instead. Information about the contact making the request.
110
+ *
111
+ * @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
112
+ */
113
+ export type InvokeAgentContact = {
114
+ /**
115
+ * Unique identifier for the contact
116
+ */
117
+ id: string;
118
+ /**
119
+ * Display name of the contact
120
+ */
121
+ displayName?: string | undefined;
122
+ /**
123
+ * Email address of the contact
124
+ */
125
+ email?: string | undefined;
126
+ /**
127
+ * A hash of key/value pairs containing any other data about the contact
128
+ */
129
+ metadata?: Array<{ [k: string]: any }> | undefined;
130
+ /**
131
+ * URL to the contact's avatar or logo
132
+ */
133
+ logoUrl?: string | undefined;
134
+ /**
135
+ * A list of tags associated with the contact
136
+ */
137
+ tags?: Array<string> | undefined;
138
+ };
139
+
140
+ /**
141
+ * Thread information to group related requests
142
+ */
143
+ export type InvokeAgentThread = {
144
+ /**
145
+ * Unique thread identifier to group related invocations.
146
+ */
147
+ id: string;
148
+ /**
149
+ * Optional tags to differentiate or categorize threads
150
+ */
151
+ tags?: Array<string> | undefined;
152
+ };
153
+
154
+ /**
155
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
156
+ */
157
+ export type InvokeAgentMemory = {
158
+ /**
159
+ * An entity ID used to link memory stores to a specific user, session, or conversation. This ID is used to isolate and retrieve memories specific to the entity across agent executions.
160
+ */
161
+ entityId: string;
162
+ };
163
+
164
+ /**
165
+ * Override template engine for this invocation. If not provided, uses the agent default.
166
+ */
167
+ export const InvokeAgentEngine = {
168
+ Text: "text",
169
+ Jinja: "jinja",
170
+ Mustache: "mustache",
171
+ } as const;
172
+ /**
173
+ * Override template engine for this invocation. If not provided, uses the agent default.
174
+ */
175
+ export type InvokeAgentEngine = ClosedEnum<typeof InvokeAgentEngine>;
176
+
177
+ /**
178
+ * Configuration options for the agent invocation
179
+ */
180
+ export type InvokeAgentConfiguration = {
181
+ /**
182
+ * Whether to block until the agent task completes. When true, the response will include the full task with messages. When false (default), returns immediately with task ID and status.
183
+ */
184
+ blocking?: boolean | undefined;
185
+ };
186
+
187
+ export type InvokeAgentRequestBody = {
188
+ /**
189
+ * Optional task ID to continue an existing agent execution. When provided, the agent will continue the conversation from the existing task state. The task must be in an inactive state to continue.
190
+ */
191
+ taskId?: string | undefined;
192
+ /**
193
+ * The A2A message to send to the agent (user input or tool results)
194
+ */
195
+ message: InvokeAgentA2AMessage;
196
+ /**
197
+ * Optional variables for template replacement in system prompt, instructions, and messages
198
+ */
199
+ variables?: { [k: string]: any } | undefined;
200
+ /**
201
+ * Information about the identity making the request. If the identity does not exist, it will be created automatically.
202
+ */
203
+ identity?: InvokeAgentIdentity | undefined;
204
+ /**
205
+ * @deprecated Use identity instead. Information about the contact making the request.
206
+ *
207
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
208
+ */
209
+ contact?: InvokeAgentContact | undefined;
210
+ /**
211
+ * Thread information to group related requests
212
+ */
213
+ thread?: InvokeAgentThread | undefined;
214
+ /**
215
+ * Memory configuration for the agent execution. Used to associate memory stores with specific entities like users or sessions.
216
+ */
217
+ memory?: InvokeAgentMemory | undefined;
218
+ /**
219
+ * Optional metadata for the agent invocation as key-value pairs that will be included in traces
220
+ */
221
+ metadata?: { [k: string]: any } | undefined;
222
+ /**
223
+ * Override template engine for this invocation. If not provided, uses the agent default.
224
+ */
225
+ engine?: InvokeAgentEngine | undefined;
226
+ /**
227
+ * Configuration options for the agent invocation
228
+ */
229
+ configuration?: InvokeAgentConfiguration | undefined;
230
+ };
231
+
232
+ export type InvokeAgentRequest = {
233
+ /**
234
+ * The key or ID of the agent to invoke
235
+ */
236
+ key: string;
237
+ requestBody?: InvokeAgentRequestBody | undefined;
238
+ };
239
+
240
+ /**
241
+ * A2A entity type identifier
242
+ */
243
+ export const Kind = {
244
+ Task: "task",
245
+ } as const;
246
+ /**
247
+ * A2A entity type identifier
248
+ */
249
+ export type Kind = ClosedEnum<typeof Kind>;
250
+
251
+ /**
252
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
253
+ */
254
+ export const TaskState = {
255
+ Submitted: "submitted",
256
+ Working: "working",
257
+ InputRequired: "input-required",
258
+ AuthRequired: "auth-required",
259
+ Completed: "completed",
260
+ Failed: "failed",
261
+ Canceled: "canceled",
262
+ Rejected: "rejected",
263
+ } as const;
264
+ /**
265
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
266
+ */
267
+ export type TaskState = ClosedEnum<typeof TaskState>;
268
+
269
+ export const InvokeAgentKind = {
270
+ Message: "message",
271
+ } as const;
272
+ export type InvokeAgentKind = ClosedEnum<typeof InvokeAgentKind>;
273
+
274
+ /**
275
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
276
+ */
277
+ export const ExtendedMessageRole = {
278
+ User: "user",
279
+ Agent: "agent",
280
+ Tool: "tool",
281
+ System: "system",
282
+ } as const;
283
+ /**
284
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
285
+ */
286
+ export type ExtendedMessageRole = ClosedEnum<typeof ExtendedMessageRole>;
287
+
288
+ export type Parts =
289
+ | components.TextPart
290
+ | components.ErrorPart
291
+ | components.DataPart
292
+ | components.FilePart
293
+ | components.ToolCallPart
294
+ | components.ToolResultPart;
295
+
296
+ /**
297
+ * Optional A2A message providing additional context about the current status
298
+ */
299
+ export type TaskStatusMessage = {
300
+ kind: InvokeAgentKind;
301
+ messageId: string;
302
+ /**
303
+ * Role of the message sender in the A2A protocol. Values: user (end user), agent (AI agent), tool (tool execution result), system (system instructions/prompts).
304
+ */
305
+ role: ExtendedMessageRole;
306
+ parts: Array<
307
+ | components.TextPart
308
+ | components.ErrorPart
309
+ | components.DataPart
310
+ | components.FilePart
311
+ | components.ToolCallPart
312
+ | components.ToolResultPart
313
+ >;
314
+ };
315
+
316
+ /**
317
+ * Current task status information
318
+ */
319
+ export type TaskStatus = {
320
+ /**
321
+ * Current state of the agent task execution. Values: submitted (queued), working (executing), input-required (awaiting user input), completed (finished successfully), failed (error occurred). Note: auth-required, canceled, and rejected statuses are defined for A2A protocol compatibility but are not currently supported in task execution.
322
+ */
323
+ state: TaskState;
324
+ /**
325
+ * ISO 8601 timestamp of when the status was updated
326
+ */
327
+ timestamp?: string | undefined;
328
+ /**
329
+ * Optional A2A message providing additional context about the current status
330
+ */
331
+ message?: TaskStatusMessage | undefined;
332
+ };
333
+
334
+ /**
335
+ * Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.
336
+ */
337
+ export type InvokeAgentA2ATaskResponse = {
338
+ /**
339
+ * The unique ID of the created agent execution task
340
+ */
341
+ id: string;
342
+ /**
343
+ * The correlation ID for this execution (used for tracking)
344
+ */
345
+ contextId: string;
346
+ /**
347
+ * A2A entity type identifier
348
+ */
349
+ kind: Kind;
350
+ /**
351
+ * Current task status information
352
+ */
353
+ status: TaskStatus;
354
+ /**
355
+ * Array of messages in the task conversation. Only present when blocking mode is enabled.
356
+ */
357
+ messages?: Array<components.ExtendedMessage> | undefined;
358
+ /**
359
+ * Task metadata containing workspace_id and trace_id for feedback and tracking
360
+ */
361
+ metadata?: { [k: string]: any } | undefined;
362
+ };
363
+
364
+ /** @internal */
365
+ export const InvokeAgentRoleToolMessage$outboundSchema: z.ZodNativeEnum<
366
+ typeof InvokeAgentRoleToolMessage
367
+ > = z.nativeEnum(InvokeAgentRoleToolMessage);
368
+
369
+ /** @internal */
370
+ export const InvokeAgentRoleUserMessage$outboundSchema: z.ZodNativeEnum<
371
+ typeof InvokeAgentRoleUserMessage
372
+ > = z.nativeEnum(InvokeAgentRoleUserMessage);
373
+
374
+ /** @internal */
375
+ export type InvokeAgentRole$Outbound = string | string;
376
+
377
+ /** @internal */
378
+ export const InvokeAgentRole$outboundSchema: z.ZodType<
379
+ InvokeAgentRole$Outbound,
380
+ z.ZodTypeDef,
381
+ InvokeAgentRole
382
+ > = z.union([
383
+ InvokeAgentRoleUserMessage$outboundSchema,
384
+ InvokeAgentRoleToolMessage$outboundSchema,
385
+ ]);
386
+
387
+ export function invokeAgentRoleToJSON(
388
+ invokeAgentRole: InvokeAgentRole,
389
+ ): string {
390
+ return JSON.stringify(InvokeAgentRole$outboundSchema.parse(invokeAgentRole));
391
+ }
392
+
393
+ /** @internal */
394
+ export type InvokeAgentPublicMessagePart$Outbound =
395
+ | components.TextPart$Outbound
396
+ | components.FilePart$Outbound
397
+ | components.ToolResultPart$Outbound
398
+ | components.ErrorPart$Outbound;
399
+
400
+ /** @internal */
401
+ export const InvokeAgentPublicMessagePart$outboundSchema: z.ZodType<
402
+ InvokeAgentPublicMessagePart$Outbound,
403
+ z.ZodTypeDef,
404
+ InvokeAgentPublicMessagePart
405
+ > = z.union([
406
+ components.TextPart$outboundSchema,
407
+ components.FilePart$outboundSchema,
408
+ components.ToolResultPart$outboundSchema,
409
+ components.ErrorPart$outboundSchema,
410
+ ]);
411
+
412
+ export function invokeAgentPublicMessagePartToJSON(
413
+ invokeAgentPublicMessagePart: InvokeAgentPublicMessagePart,
414
+ ): string {
415
+ return JSON.stringify(
416
+ InvokeAgentPublicMessagePart$outboundSchema.parse(
417
+ invokeAgentPublicMessagePart,
418
+ ),
419
+ );
420
+ }
421
+
422
+ /** @internal */
423
+ export type InvokeAgentA2AMessage$Outbound = {
424
+ messageId?: string | undefined;
425
+ role: string | string;
426
+ parts: Array<
427
+ | components.TextPart$Outbound
428
+ | components.FilePart$Outbound
429
+ | components.ToolResultPart$Outbound
430
+ | components.ErrorPart$Outbound
431
+ >;
432
+ };
433
+
434
+ /** @internal */
435
+ export const InvokeAgentA2AMessage$outboundSchema: z.ZodType<
436
+ InvokeAgentA2AMessage$Outbound,
437
+ z.ZodTypeDef,
438
+ InvokeAgentA2AMessage
439
+ > = z.object({
440
+ messageId: z.string().optional(),
441
+ role: z.union([
442
+ InvokeAgentRoleUserMessage$outboundSchema,
443
+ InvokeAgentRoleToolMessage$outboundSchema,
444
+ ]),
445
+ parts: z.array(
446
+ z.union([
447
+ components.TextPart$outboundSchema,
448
+ components.FilePart$outboundSchema,
449
+ components.ToolResultPart$outboundSchema,
450
+ components.ErrorPart$outboundSchema,
451
+ ]),
452
+ ),
453
+ });
454
+
455
+ export function invokeAgentA2AMessageToJSON(
456
+ invokeAgentA2AMessage: InvokeAgentA2AMessage,
457
+ ): string {
458
+ return JSON.stringify(
459
+ InvokeAgentA2AMessage$outboundSchema.parse(invokeAgentA2AMessage),
460
+ );
461
+ }
462
+
463
+ /** @internal */
464
+ export type InvokeAgentIdentity$Outbound = {
465
+ id: string;
466
+ display_name?: string | undefined;
467
+ email?: string | undefined;
468
+ metadata?: Array<{ [k: string]: any }> | undefined;
469
+ logo_url?: string | undefined;
470
+ tags?: Array<string> | undefined;
471
+ };
472
+
473
+ /** @internal */
474
+ export const InvokeAgentIdentity$outboundSchema: z.ZodType<
475
+ InvokeAgentIdentity$Outbound,
476
+ z.ZodTypeDef,
477
+ InvokeAgentIdentity
478
+ > = z.object({
479
+ id: z.string(),
480
+ displayName: z.string().optional(),
481
+ email: z.string().optional(),
482
+ metadata: z.array(z.record(z.any())).optional(),
483
+ logoUrl: z.string().optional(),
484
+ tags: z.array(z.string()).optional(),
485
+ }).transform((v) => {
486
+ return remap$(v, {
487
+ displayName: "display_name",
488
+ logoUrl: "logo_url",
489
+ });
490
+ });
491
+
492
+ export function invokeAgentIdentityToJSON(
493
+ invokeAgentIdentity: InvokeAgentIdentity,
494
+ ): string {
495
+ return JSON.stringify(
496
+ InvokeAgentIdentity$outboundSchema.parse(invokeAgentIdentity),
497
+ );
498
+ }
499
+
500
+ /** @internal */
501
+ export type InvokeAgentContact$Outbound = {
502
+ id: string;
503
+ display_name?: string | undefined;
504
+ email?: string | undefined;
505
+ metadata?: Array<{ [k: string]: any }> | undefined;
506
+ logo_url?: string | undefined;
507
+ tags?: Array<string> | undefined;
508
+ };
509
+
510
+ /** @internal */
511
+ export const InvokeAgentContact$outboundSchema: z.ZodType<
512
+ InvokeAgentContact$Outbound,
513
+ z.ZodTypeDef,
514
+ InvokeAgentContact
515
+ > = z.object({
516
+ id: z.string(),
517
+ displayName: z.string().optional(),
518
+ email: z.string().optional(),
519
+ metadata: z.array(z.record(z.any())).optional(),
520
+ logoUrl: z.string().optional(),
521
+ tags: z.array(z.string()).optional(),
522
+ }).transform((v) => {
523
+ return remap$(v, {
524
+ displayName: "display_name",
525
+ logoUrl: "logo_url",
526
+ });
527
+ });
528
+
529
+ export function invokeAgentContactToJSON(
530
+ invokeAgentContact: InvokeAgentContact,
531
+ ): string {
532
+ return JSON.stringify(
533
+ InvokeAgentContact$outboundSchema.parse(invokeAgentContact),
534
+ );
535
+ }
536
+
537
+ /** @internal */
538
+ export type InvokeAgentThread$Outbound = {
539
+ id: string;
540
+ tags?: Array<string> | undefined;
541
+ };
542
+
543
+ /** @internal */
544
+ export const InvokeAgentThread$outboundSchema: z.ZodType<
545
+ InvokeAgentThread$Outbound,
546
+ z.ZodTypeDef,
547
+ InvokeAgentThread
548
+ > = z.object({
549
+ id: z.string(),
550
+ tags: z.array(z.string()).optional(),
551
+ });
552
+
553
+ export function invokeAgentThreadToJSON(
554
+ invokeAgentThread: InvokeAgentThread,
555
+ ): string {
556
+ return JSON.stringify(
557
+ InvokeAgentThread$outboundSchema.parse(invokeAgentThread),
558
+ );
559
+ }
560
+
561
+ /** @internal */
562
+ export type InvokeAgentMemory$Outbound = {
563
+ entity_id: string;
564
+ };
565
+
566
+ /** @internal */
567
+ export const InvokeAgentMemory$outboundSchema: z.ZodType<
568
+ InvokeAgentMemory$Outbound,
569
+ z.ZodTypeDef,
570
+ InvokeAgentMemory
571
+ > = z.object({
572
+ entityId: z.string(),
573
+ }).transform((v) => {
574
+ return remap$(v, {
575
+ entityId: "entity_id",
576
+ });
577
+ });
578
+
579
+ export function invokeAgentMemoryToJSON(
580
+ invokeAgentMemory: InvokeAgentMemory,
581
+ ): string {
582
+ return JSON.stringify(
583
+ InvokeAgentMemory$outboundSchema.parse(invokeAgentMemory),
584
+ );
585
+ }
586
+
587
+ /** @internal */
588
+ export const InvokeAgentEngine$outboundSchema: z.ZodNativeEnum<
589
+ typeof InvokeAgentEngine
590
+ > = z.nativeEnum(InvokeAgentEngine);
591
+
592
+ /** @internal */
593
+ export type InvokeAgentConfiguration$Outbound = {
594
+ blocking: boolean;
595
+ };
596
+
597
+ /** @internal */
598
+ export const InvokeAgentConfiguration$outboundSchema: z.ZodType<
599
+ InvokeAgentConfiguration$Outbound,
600
+ z.ZodTypeDef,
601
+ InvokeAgentConfiguration
602
+ > = z.object({
603
+ blocking: z.boolean().default(false),
604
+ });
605
+
606
+ export function invokeAgentConfigurationToJSON(
607
+ invokeAgentConfiguration: InvokeAgentConfiguration,
608
+ ): string {
609
+ return JSON.stringify(
610
+ InvokeAgentConfiguration$outboundSchema.parse(invokeAgentConfiguration),
611
+ );
612
+ }
613
+
614
+ /** @internal */
615
+ export type InvokeAgentRequestBody$Outbound = {
616
+ task_id?: string | undefined;
617
+ message: InvokeAgentA2AMessage$Outbound;
618
+ variables?: { [k: string]: any } | undefined;
619
+ identity?: InvokeAgentIdentity$Outbound | undefined;
620
+ contact?: InvokeAgentContact$Outbound | undefined;
621
+ thread?: InvokeAgentThread$Outbound | undefined;
622
+ memory?: InvokeAgentMemory$Outbound | undefined;
623
+ metadata?: { [k: string]: any } | undefined;
624
+ engine?: string | undefined;
625
+ configuration?: InvokeAgentConfiguration$Outbound | undefined;
626
+ };
627
+
628
+ /** @internal */
629
+ export const InvokeAgentRequestBody$outboundSchema: z.ZodType<
630
+ InvokeAgentRequestBody$Outbound,
631
+ z.ZodTypeDef,
632
+ InvokeAgentRequestBody
633
+ > = z.object({
634
+ taskId: z.string().optional(),
635
+ message: z.lazy(() => InvokeAgentA2AMessage$outboundSchema),
636
+ variables: z.record(z.any()).optional(),
637
+ identity: z.lazy(() => InvokeAgentIdentity$outboundSchema).optional(),
638
+ contact: z.lazy(() => InvokeAgentContact$outboundSchema).optional(),
639
+ thread: z.lazy(() => InvokeAgentThread$outboundSchema).optional(),
640
+ memory: z.lazy(() => InvokeAgentMemory$outboundSchema).optional(),
641
+ metadata: z.record(z.any()).optional(),
642
+ engine: InvokeAgentEngine$outboundSchema.optional(),
643
+ configuration: z.lazy(() => InvokeAgentConfiguration$outboundSchema)
644
+ .optional(),
645
+ }).transform((v) => {
646
+ return remap$(v, {
647
+ taskId: "task_id",
648
+ });
649
+ });
650
+
651
+ export function invokeAgentRequestBodyToJSON(
652
+ invokeAgentRequestBody: InvokeAgentRequestBody,
653
+ ): string {
654
+ return JSON.stringify(
655
+ InvokeAgentRequestBody$outboundSchema.parse(invokeAgentRequestBody),
656
+ );
657
+ }
658
+
659
+ /** @internal */
660
+ export type InvokeAgentRequest$Outbound = {
661
+ key: string;
662
+ RequestBody?: InvokeAgentRequestBody$Outbound | undefined;
663
+ };
664
+
665
+ /** @internal */
666
+ export const InvokeAgentRequest$outboundSchema: z.ZodType<
667
+ InvokeAgentRequest$Outbound,
668
+ z.ZodTypeDef,
669
+ InvokeAgentRequest
670
+ > = z.object({
671
+ key: z.string(),
672
+ requestBody: z.lazy(() => InvokeAgentRequestBody$outboundSchema).optional(),
673
+ }).transform((v) => {
674
+ return remap$(v, {
675
+ requestBody: "RequestBody",
676
+ });
677
+ });
678
+
679
+ export function invokeAgentRequestToJSON(
680
+ invokeAgentRequest: InvokeAgentRequest,
681
+ ): string {
682
+ return JSON.stringify(
683
+ InvokeAgentRequest$outboundSchema.parse(invokeAgentRequest),
684
+ );
685
+ }
686
+
687
+ /** @internal */
688
+ export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
689
+ Kind,
690
+ );
691
+
692
+ /** @internal */
693
+ export const TaskState$inboundSchema: z.ZodNativeEnum<typeof TaskState> = z
694
+ .nativeEnum(TaskState);
695
+
696
+ /** @internal */
697
+ export const InvokeAgentKind$inboundSchema: z.ZodNativeEnum<
698
+ typeof InvokeAgentKind
699
+ > = z.nativeEnum(InvokeAgentKind);
700
+
701
+ /** @internal */
702
+ export const ExtendedMessageRole$inboundSchema: z.ZodNativeEnum<
703
+ typeof ExtendedMessageRole
704
+ > = z.nativeEnum(ExtendedMessageRole);
705
+
706
+ /** @internal */
707
+ export const Parts$inboundSchema: z.ZodType<Parts, z.ZodTypeDef, unknown> = z
708
+ .union([
709
+ components.TextPart$inboundSchema,
710
+ components.ErrorPart$inboundSchema,
711
+ components.DataPart$inboundSchema,
712
+ components.FilePart$inboundSchema,
713
+ components.ToolCallPart$inboundSchema,
714
+ components.ToolResultPart$inboundSchema,
715
+ ]);
716
+
717
+ export function partsFromJSON(
718
+ jsonString: string,
719
+ ): SafeParseResult<Parts, SDKValidationError> {
720
+ return safeParse(
721
+ jsonString,
722
+ (x) => Parts$inboundSchema.parse(JSON.parse(x)),
723
+ `Failed to parse 'Parts' from JSON`,
724
+ );
725
+ }
726
+
727
+ /** @internal */
728
+ export const TaskStatusMessage$inboundSchema: z.ZodType<
729
+ TaskStatusMessage,
730
+ z.ZodTypeDef,
731
+ unknown
732
+ > = z.object({
733
+ kind: InvokeAgentKind$inboundSchema,
734
+ messageId: z.string(),
735
+ role: ExtendedMessageRole$inboundSchema,
736
+ parts: z.array(
737
+ z.union([
738
+ components.TextPart$inboundSchema,
739
+ components.ErrorPart$inboundSchema,
740
+ components.DataPart$inboundSchema,
741
+ components.FilePart$inboundSchema,
742
+ components.ToolCallPart$inboundSchema,
743
+ components.ToolResultPart$inboundSchema,
744
+ ]),
745
+ ),
746
+ });
747
+
748
+ export function taskStatusMessageFromJSON(
749
+ jsonString: string,
750
+ ): SafeParseResult<TaskStatusMessage, SDKValidationError> {
751
+ return safeParse(
752
+ jsonString,
753
+ (x) => TaskStatusMessage$inboundSchema.parse(JSON.parse(x)),
754
+ `Failed to parse 'TaskStatusMessage' from JSON`,
755
+ );
756
+ }
757
+
758
+ /** @internal */
759
+ export const TaskStatus$inboundSchema: z.ZodType<
760
+ TaskStatus,
761
+ z.ZodTypeDef,
762
+ unknown
763
+ > = z.object({
764
+ state: TaskState$inboundSchema,
765
+ timestamp: z.string().optional(),
766
+ message: z.lazy(() => TaskStatusMessage$inboundSchema).optional(),
767
+ });
768
+
769
+ export function taskStatusFromJSON(
770
+ jsonString: string,
771
+ ): SafeParseResult<TaskStatus, SDKValidationError> {
772
+ return safeParse(
773
+ jsonString,
774
+ (x) => TaskStatus$inboundSchema.parse(JSON.parse(x)),
775
+ `Failed to parse 'TaskStatus' from JSON`,
776
+ );
777
+ }
778
+
779
+ /** @internal */
780
+ export const InvokeAgentA2ATaskResponse$inboundSchema: z.ZodType<
781
+ InvokeAgentA2ATaskResponse,
782
+ z.ZodTypeDef,
783
+ unknown
784
+ > = z.object({
785
+ id: z.string(),
786
+ contextId: z.string(),
787
+ kind: Kind$inboundSchema,
788
+ status: z.lazy(() => TaskStatus$inboundSchema),
789
+ messages: z.array(components.ExtendedMessage$inboundSchema).optional(),
790
+ metadata: z.record(z.any()).optional(),
791
+ });
792
+
793
+ export function invokeAgentA2ATaskResponseFromJSON(
794
+ jsonString: string,
795
+ ): SafeParseResult<InvokeAgentA2ATaskResponse, SDKValidationError> {
796
+ return safeParse(
797
+ jsonString,
798
+ (x) => InvokeAgentA2ATaskResponse$inboundSchema.parse(JSON.parse(x)),
799
+ `Failed to parse 'InvokeAgentA2ATaskResponse' from JSON`,
800
+ );
801
+ }