@orq-ai/node 4.5.2 → 4.6.0-rc.1

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 (453) 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/partdoneevent.js +1 -1
  6. package/models/components/reasoningpart.js +1 -1
  7. package/models/operations/createcontact.js +1 -1
  8. package/models/operations/createdataset.js +1 -1
  9. package/models/operations/createdatasetitem.js +4 -4
  10. package/models/operations/createdatasource.js +1 -1
  11. package/models/operations/createeval.js +16 -16
  12. package/models/operations/createidentity.js +1 -1
  13. package/models/operations/createtool.js +6 -6
  14. package/models/operations/fileget.js +1 -1
  15. package/models/operations/filelist.js +1 -1
  16. package/models/operations/fileupload.js +1 -1
  17. package/models/operations/getalltools.js +6 -6
  18. package/models/operations/getevals.js +16 -16
  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/retrievedatapoint.js +4 -4
  24. package/models/operations/retrievedataset.js +1 -1
  25. package/models/operations/retrievedatasource.js +1 -1
  26. package/models/operations/retrieveidentity.js +1 -1
  27. package/models/operations/retrievetool.js +6 -6
  28. package/models/operations/runagent.js +1 -1
  29. package/models/operations/streamrunagent.js +1 -1
  30. package/models/operations/updatedatapoint.js +4 -4
  31. package/models/operations/updatedataset.js +1 -1
  32. package/models/operations/updatedatasource.js +1 -1
  33. package/models/operations/updateeval.js +16 -16
  34. package/models/operations/updateidentity.js +1 -1
  35. package/models/operations/updatetool.js +7 -7
  36. package/package.json +4 -3
  37. package/src/lib/config.ts +2 -2
  38. package/src/models/components/partdoneevent.ts +1 -1
  39. package/src/models/components/reasoningpart.ts +1 -1
  40. package/src/models/operations/createcontact.ts +1 -1
  41. package/src/models/operations/createdataset.ts +1 -1
  42. package/src/models/operations/createdatasetitem.ts +4 -4
  43. package/src/models/operations/createdatasource.ts +1 -1
  44. package/src/models/operations/createeval.ts +16 -16
  45. package/src/models/operations/createidentity.ts +1 -1
  46. package/src/models/operations/createtool.ts +6 -6
  47. package/src/models/operations/fileget.ts +1 -1
  48. package/src/models/operations/filelist.ts +1 -1
  49. package/src/models/operations/fileupload.ts +1 -1
  50. package/src/models/operations/getalltools.ts +6 -6
  51. package/src/models/operations/getevals.ts +16 -16
  52. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  53. package/src/models/operations/listdatasets.ts +1 -1
  54. package/src/models/operations/listdatasources.ts +1 -1
  55. package/src/models/operations/listidentities.ts +1 -1
  56. package/src/models/operations/retrievedatapoint.ts +4 -4
  57. package/src/models/operations/retrievedataset.ts +1 -1
  58. package/src/models/operations/retrievedatasource.ts +1 -1
  59. package/src/models/operations/retrieveidentity.ts +1 -1
  60. package/src/models/operations/retrievetool.ts +6 -6
  61. package/src/models/operations/runagent.ts +1 -1
  62. package/src/models/operations/streamrunagent.ts +1 -1
  63. package/src/models/operations/updatedatapoint.ts +4 -4
  64. package/src/models/operations/updatedataset.ts +1 -1
  65. package/src/models/operations/updatedatasource.ts +1 -1
  66. package/src/models/operations/updateeval.ts +16 -16
  67. package/src/models/operations/updateidentity.ts +1 -1
  68. package/src/models/operations/updatetool.ts +7 -7
  69. package/packages/orq-rc/examples/contactsCreate.example.ts +0 -42
  70. package/packages/orq-rc/src/core.ts +0 -13
  71. package/packages/orq-rc/src/funcs/agentsCreate.ts +0 -161
  72. package/packages/orq-rc/src/funcs/agentsDelete.ts +0 -180
  73. package/packages/orq-rc/src/funcs/agentsInvoke.ts +0 -177
  74. package/packages/orq-rc/src/funcs/agentsList.ts +0 -184
  75. package/packages/orq-rc/src/funcs/agentsPostV2AgentsA2a.ts +0 -178
  76. package/packages/orq-rc/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +0 -187
  77. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +0 -183
  78. package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +0 -182
  79. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +0 -180
  80. package/packages/orq-rc/src/funcs/agentsRun.ts +0 -162
  81. package/packages/orq-rc/src/funcs/agentsStream.ts +0 -204
  82. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +0 -189
  83. package/packages/orq-rc/src/funcs/agentsUpdate.ts +0 -184
  84. package/packages/orq-rc/src/funcs/annotationsCreate.ts +0 -171
  85. package/packages/orq-rc/src/funcs/annotationsDelete.ts +0 -171
  86. package/packages/orq-rc/src/funcs/chunkingParse.ts +0 -160
  87. package/packages/orq-rc/src/funcs/contactsCreate.ts +0 -160
  88. package/packages/orq-rc/src/funcs/datasetsClear.ts +0 -167
  89. package/packages/orq-rc/src/funcs/datasetsCreate.ts +0 -165
  90. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +0 -171
  91. package/packages/orq-rc/src/funcs/datasetsDelete.ts +0 -167
  92. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +0 -182
  93. package/packages/orq-rc/src/funcs/datasetsList.ts +0 -167
  94. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +0 -174
  95. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +0 -175
  96. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +0 -181
  97. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +0 -176
  98. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +0 -179
  99. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +0 -168
  100. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +0 -176
  101. package/packages/orq-rc/src/funcs/deploymentsList.ts +0 -176
  102. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +0 -168
  103. package/packages/orq-rc/src/funcs/deploymentsStream.ts +0 -186
  104. package/packages/orq-rc/src/funcs/evalsAll.ts +0 -173
  105. package/packages/orq-rc/src/funcs/evalsCreate.ts +0 -169
  106. package/packages/orq-rc/src/funcs/evalsDelete.ts +0 -173
  107. package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -181
  108. package/packages/orq-rc/src/funcs/evalsUpdate.ts +0 -173
  109. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +0 -183
  110. package/packages/orq-rc/src/funcs/feedbackCreate.ts +0 -160
  111. package/packages/orq-rc/src/funcs/filesCreate.ts +0 -198
  112. package/packages/orq-rc/src/funcs/filesDelete.ts +0 -164
  113. package/packages/orq-rc/src/funcs/filesGet.ts +0 -166
  114. package/packages/orq-rc/src/funcs/filesList.ts +0 -167
  115. package/packages/orq-rc/src/funcs/identitiesCreate.ts +0 -165
  116. package/packages/orq-rc/src/funcs/identitiesDelete.ts +0 -176
  117. package/packages/orq-rc/src/funcs/identitiesList.ts +0 -170
  118. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +0 -175
  119. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +0 -176
  120. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +0 -158
  121. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +0 -171
  122. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +0 -166
  123. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +0 -167
  124. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +0 -174
  125. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +0 -170
  126. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +0 -173
  127. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +0 -170
  128. package/packages/orq-rc/src/funcs/knowledgeList.ts +0 -169
  129. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +0 -178
  130. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +0 -171
  131. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +0 -174
  132. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +0 -166
  133. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +0 -173
  134. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +0 -169
  135. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +0 -167
  136. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +0 -164
  137. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +0 -174
  138. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +0 -170
  139. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +0 -162
  140. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +0 -176
  141. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +0 -170
  142. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +0 -168
  143. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +0 -185
  144. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +0 -180
  145. package/packages/orq-rc/src/funcs/memoryStoresList.ts +0 -178
  146. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +0 -184
  147. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +0 -177
  148. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +0 -177
  149. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +0 -179
  150. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +0 -174
  151. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +0 -168
  152. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +0 -180
  153. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +0 -175
  154. package/packages/orq-rc/src/funcs/modelsList.ts +0 -142
  155. package/packages/orq-rc/src/funcs/promptsCreate.ts +0 -160
  156. package/packages/orq-rc/src/funcs/promptsDelete.ts +0 -173
  157. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +0 -181
  158. package/packages/orq-rc/src/funcs/promptsList.ts +0 -167
  159. package/packages/orq-rc/src/funcs/promptsListVersions.ts +0 -173
  160. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +0 -166
  161. package/packages/orq-rc/src/funcs/promptsUpdate.ts +0 -173
  162. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +0 -161
  163. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +0 -161
  164. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +0 -273
  165. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +0 -263
  166. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +0 -168
  167. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +0 -168
  168. package/packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts +0 -161
  169. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +0 -222
  170. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +0 -160
  171. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +0 -218
  172. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +0 -167
  173. package/packages/orq-rc/src/funcs/routerOcr.ts +0 -158
  174. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +0 -160
  175. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +0 -167
  176. package/packages/orq-rc/src/funcs/toolsCreate.ts +0 -163
  177. package/packages/orq-rc/src/funcs/toolsDelete.ts +0 -167
  178. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +0 -183
  179. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +0 -190
  180. package/packages/orq-rc/src/funcs/toolsList.ts +0 -176
  181. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +0 -166
  182. package/packages/orq-rc/src/funcs/toolsUpdate.ts +0 -176
  183. package/packages/orq-rc/src/hooks/global.ts +0 -44
  184. package/packages/orq-rc/src/hooks/hooks.ts +0 -132
  185. package/packages/orq-rc/src/hooks/index.ts +0 -6
  186. package/packages/orq-rc/src/hooks/registration.ts +0 -15
  187. package/packages/orq-rc/src/hooks/types.ts +0 -112
  188. package/packages/orq-rc/src/index.ts +0 -9
  189. package/packages/orq-rc/src/lib/base64.ts +0 -37
  190. package/packages/orq-rc/src/lib/config.ts +0 -74
  191. package/packages/orq-rc/src/lib/dlv.ts +0 -53
  192. package/packages/orq-rc/src/lib/encodings.ts +0 -497
  193. package/packages/orq-rc/src/lib/env.ts +0 -89
  194. package/packages/orq-rc/src/lib/event-streams.ts +0 -161
  195. package/packages/orq-rc/src/lib/files.ts +0 -82
  196. package/packages/orq-rc/src/lib/http.ts +0 -323
  197. package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
  198. package/packages/orq-rc/src/lib/logger.ts +0 -9
  199. package/packages/orq-rc/src/lib/matchers.ts +0 -346
  200. package/packages/orq-rc/src/lib/primitives.ts +0 -150
  201. package/packages/orq-rc/src/lib/retries.ts +0 -218
  202. package/packages/orq-rc/src/lib/schemas.ts +0 -91
  203. package/packages/orq-rc/src/lib/sdks.ts +0 -407
  204. package/packages/orq-rc/src/lib/security.ts +0 -263
  205. package/packages/orq-rc/src/lib/url.ts +0 -33
  206. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +0 -99
  207. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +0 -185
  208. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +0 -73
  209. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +0 -91
  210. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +0 -71
  211. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +0 -507
  212. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +0 -165
  213. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +0 -103
  214. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +0 -517
  215. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +0 -807
  216. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +0 -136
  217. package/packages/orq-rc/src/models/components/createagentresponse.ts +0 -305
  218. package/packages/orq-rc/src/models/components/datapart.ts +0 -38
  219. package/packages/orq-rc/src/models/components/errorpart.ts +0 -58
  220. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +0 -66
  221. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +0 -71
  222. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +0 -61
  223. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +0 -67
  224. package/packages/orq-rc/src/models/components/extendedmessage.ts +0 -146
  225. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +0 -87
  226. package/packages/orq-rc/src/models/components/filepart.ts +0 -218
  227. package/packages/orq-rc/src/models/components/getagentresponse.ts +0 -348
  228. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +0 -268
  229. package/packages/orq-rc/src/models/components/index.ts +0 -59
  230. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +0 -3450
  231. package/packages/orq-rc/src/models/components/partdelta.ts +0 -39
  232. package/packages/orq-rc/src/models/components/partdeltaevent.ts +0 -73
  233. package/packages/orq-rc/src/models/components/partdoneevent.ts +0 -139
  234. package/packages/orq-rc/src/models/components/publiccontact.ts +0 -71
  235. package/packages/orq-rc/src/models/components/publicidentity.ts +0 -69
  236. package/packages/orq-rc/src/models/components/reasoningpart.ts +0 -62
  237. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +0 -71
  238. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +0 -66
  239. package/packages/orq-rc/src/models/components/refusalpartschema.ts +0 -64
  240. package/packages/orq-rc/src/models/components/responsedoneevent.ts +0 -324
  241. package/packages/orq-rc/src/models/components/responsefailedevent.ts +0 -72
  242. package/packages/orq-rc/src/models/components/responsestartedevent.ts +0 -97
  243. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +0 -85
  244. package/packages/orq-rc/src/models/components/reviewoutcome.ts +0 -23
  245. package/packages/orq-rc/src/models/components/security.ts +0 -32
  246. package/packages/orq-rc/src/models/components/telemetry.ts +0 -48
  247. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +0 -207
  248. package/packages/orq-rc/src/models/components/textpart.ts +0 -54
  249. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +0 -59
  250. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +0 -106
  251. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +0 -64
  252. package/packages/orq-rc/src/models/components/toolcallpart.ts +0 -51
  253. package/packages/orq-rc/src/models/components/tooldoneevent.ts +0 -77
  254. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +0 -230
  255. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +0 -214
  256. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +0 -200
  257. package/packages/orq-rc/src/models/components/toolfailedevent.ts +0 -77
  258. package/packages/orq-rc/src/models/components/toolresultpart.ts +0 -71
  259. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +0 -78
  260. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +0 -87
  261. package/packages/orq-rc/src/models/components/toolstartedevent.ts +0 -82
  262. package/packages/orq-rc/src/models/errors/apierror.ts +0 -40
  263. package/packages/orq-rc/src/models/errors/createeval.ts +0 -51
  264. package/packages/orq-rc/src/models/errors/createmoderation.ts +0 -84
  265. package/packages/orq-rc/src/models/errors/createtranscription.ts +0 -87
  266. package/packages/orq-rc/src/models/errors/createtranslation.ts +0 -87
  267. package/packages/orq-rc/src/models/errors/deleteagent.ts +0 -51
  268. package/packages/orq-rc/src/models/errors/deleteeval.ts +0 -51
  269. package/packages/orq-rc/src/models/errors/deleteidentity.ts +0 -62
  270. package/packages/orq-rc/src/models/errors/deleteprompt.ts +0 -51
  271. package/packages/orq-rc/src/models/errors/getevals.ts +0 -51
  272. package/packages/orq-rc/src/models/errors/getpromptversion.ts +0 -51
  273. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +0 -51
  274. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +0 -51
  275. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +0 -52
  276. package/packages/orq-rc/src/models/errors/honoapierror.ts +0 -59
  277. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +0 -62
  278. package/packages/orq-rc/src/models/errors/index.ts +0 -35
  279. package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
  280. package/packages/orq-rc/src/models/errors/orqerror.ts +0 -35
  281. package/packages/orq-rc/src/models/errors/postv2agentsa2a.ts +0 -96
  282. package/packages/orq-rc/src/models/errors/postv2agentskeycardrefresh.ts +0 -97
  283. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +0 -50
  284. package/packages/orq-rc/src/models/errors/retrieveagentrequest.ts +0 -51
  285. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +0 -62
  286. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +0 -109
  287. package/packages/orq-rc/src/models/errors/streamagent.ts +0 -51
  288. package/packages/orq-rc/src/models/errors/streamrunagent.ts +0 -51
  289. package/packages/orq-rc/src/models/errors/updateagent.ts +0 -51
  290. package/packages/orq-rc/src/models/errors/updateeval.ts +0 -51
  291. package/packages/orq-rc/src/models/errors/updateidentity.ts +0 -54
  292. package/packages/orq-rc/src/models/errors/updateprompt.ts +0 -51
  293. package/packages/orq-rc/src/models/errors/updatetool.ts +0 -62
  294. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -39
  295. package/packages/orq-rc/src/models/operations/createagentrequest.ts +0 -6393
  296. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +0 -644
  297. package/packages/orq-rc/src/models/operations/createannotation.ts +0 -166
  298. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +0 -6392
  299. package/packages/orq-rc/src/models/operations/createchunk.ts +0 -222
  300. package/packages/orq-rc/src/models/operations/createcompletion.ts +0 -3418
  301. package/packages/orq-rc/src/models/operations/createcontact.ts +0 -156
  302. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
  303. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +0 -2551
  304. package/packages/orq-rc/src/models/operations/createdatasource.ts +0 -437
  305. package/packages/orq-rc/src/models/operations/createembedding.ts +0 -947
  306. package/packages/orq-rc/src/models/operations/createeval.ts +0 -4170
  307. package/packages/orq-rc/src/models/operations/createfeedback.ts +0 -144
  308. package/packages/orq-rc/src/models/operations/createidentity.ts +0 -162
  309. package/packages/orq-rc/src/models/operations/createimage.ts +0 -1028
  310. package/packages/orq-rc/src/models/operations/createimageedit.ts +0 -1045
  311. package/packages/orq-rc/src/models/operations/createimagevariation.ts +0 -1067
  312. package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -944
  313. package/packages/orq-rc/src/models/operations/creatememory.ts +0 -142
  314. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +0 -152
  315. package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
  316. package/packages/orq-rc/src/models/operations/createmoderation.ts +0 -664
  317. package/packages/orq-rc/src/models/operations/createprompt.ts +0 -5391
  318. package/packages/orq-rc/src/models/operations/creatererank.ts +0 -890
  319. package/packages/orq-rc/src/models/operations/createresponse.ts +0 -3325
  320. package/packages/orq-rc/src/models/operations/createspeech.ts +0 -700
  321. package/packages/orq-rc/src/models/operations/createtool.ts +0 -2499
  322. package/packages/orq-rc/src/models/operations/createtranscription.ts +0 -955
  323. package/packages/orq-rc/src/models/operations/createtranslation.ts +0 -930
  324. package/packages/orq-rc/src/models/operations/deleteagent.ts +0 -39
  325. package/packages/orq-rc/src/models/operations/deleteannotation.ts +0 -79
  326. package/packages/orq-rc/src/models/operations/deletechunk.ts +0 -53
  327. package/packages/orq-rc/src/models/operations/deletechunks.ts +0 -125
  328. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -46
  329. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -39
  330. package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -46
  331. package/packages/orq-rc/src/models/operations/deleteeval.ts +0 -31
  332. package/packages/orq-rc/src/models/operations/deleteidentity.ts +0 -34
  333. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -39
  334. package/packages/orq-rc/src/models/operations/deletememory.ts +0 -46
  335. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -55
  336. package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -39
  337. package/packages/orq-rc/src/models/operations/deleteprompt.ts +0 -34
  338. package/packages/orq-rc/src/models/operations/deletetool.ts +0 -36
  339. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +0 -2370
  340. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +0 -4525
  341. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +0 -729
  342. package/packages/orq-rc/src/models/operations/deployments.ts +0 -1269
  343. package/packages/orq-rc/src/models/operations/deploymentstream.ts +0 -4653
  344. package/packages/orq-rc/src/models/operations/filedelete.ts +0 -39
  345. package/packages/orq-rc/src/models/operations/fileget.ts +0 -116
  346. package/packages/orq-rc/src/models/operations/filelist.ts +0 -172
  347. package/packages/orq-rc/src/models/operations/fileupload.ts +0 -170
  348. package/packages/orq-rc/src/models/operations/getagentresponse.ts +0 -46
  349. package/packages/orq-rc/src/models/operations/getallmemories.ts +0 -173
  350. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +0 -188
  351. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +0 -200
  352. package/packages/orq-rc/src/models/operations/getallprompts.ts +0 -3165
  353. package/packages/orq-rc/src/models/operations/getalltools.ts +0 -1398
  354. package/packages/orq-rc/src/models/operations/getchunkscount.ts +0 -121
  355. package/packages/orq-rc/src/models/operations/getevals.ts +0 -2842
  356. package/packages/orq-rc/src/models/operations/getonechunk.ts +0 -171
  357. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -652
  358. package/packages/orq-rc/src/models/operations/getoneprompt.ts +0 -3090
  359. package/packages/orq-rc/src/models/operations/getpromptversion.ts +0 -3135
  360. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +0 -162
  361. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +0 -163
  362. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +0 -110
  363. package/packages/orq-rc/src/models/operations/index.ts +0 -116
  364. package/packages/orq-rc/src/models/operations/invokeagent.ts +0 -777
  365. package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -1253
  366. package/packages/orq-rc/src/models/operations/listagents.ts +0 -2754
  367. package/packages/orq-rc/src/models/operations/listchunks.ts +0 -260
  368. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +0 -263
  369. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +0 -1498
  370. package/packages/orq-rc/src/models/operations/listdatasets.ts +0 -205
  371. package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -235
  372. package/packages/orq-rc/src/models/operations/listidentities.ts +0 -275
  373. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -642
  374. package/packages/orq-rc/src/models/operations/listmodels.ts +0 -143
  375. package/packages/orq-rc/src/models/operations/listpromptversions.ts +0 -3210
  376. package/packages/orq-rc/src/models/operations/parse.ts +0 -777
  377. package/packages/orq-rc/src/models/operations/postv2agentsa2a.ts +0 -252
  378. package/packages/orq-rc/src/models/operations/postv2agentskeycardrefresh.ts +0 -100
  379. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +0 -478
  380. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +0 -108
  381. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +0 -2814
  382. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -1402
  383. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -150
  384. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -152
  385. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +0 -117
  386. package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -112
  387. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -118
  388. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -144
  389. package/packages/orq-rc/src/models/operations/retrievetool.ts +0 -1379
  390. package/packages/orq-rc/src/models/operations/runagent.ts +0 -4927
  391. package/packages/orq-rc/src/models/operations/searchknowledge.ts +0 -1762
  392. package/packages/orq-rc/src/models/operations/streamagent.ts +0 -668
  393. package/packages/orq-rc/src/models/operations/streamrunagent.ts +0 -5089
  394. package/packages/orq-rc/src/models/operations/updateagent.ts +0 -6824
  395. package/packages/orq-rc/src/models/operations/updatechunk.ts +0 -236
  396. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +0 -2555
  397. package/packages/orq-rc/src/models/operations/updatedataset.ts +0 -206
  398. package/packages/orq-rc/src/models/operations/updatedatasource.ts +0 -186
  399. package/packages/orq-rc/src/models/operations/updateeval.ts +0 -4152
  400. package/packages/orq-rc/src/models/operations/updateidentity.ts +0 -189
  401. package/packages/orq-rc/src/models/operations/updateknowledge.ts +0 -1231
  402. package/packages/orq-rc/src/models/operations/updatememory.ts +0 -142
  403. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +0 -159
  404. package/packages/orq-rc/src/models/operations/updatememorystore.ts +0 -188
  405. package/packages/orq-rc/src/models/operations/updateprompt.ts +0 -5473
  406. package/packages/orq-rc/src/models/operations/updatetool.ts +0 -2810
  407. package/packages/orq-rc/src/sdk/agents.ts +0 -234
  408. package/packages/orq-rc/src/sdk/annotations.ts +0 -39
  409. package/packages/orq-rc/src/sdk/audio.ts +0 -25
  410. package/packages/orq-rc/src/sdk/chat.ts +0 -13
  411. package/packages/orq-rc/src/sdk/chunking.ts +0 -27
  412. package/packages/orq-rc/src/sdk/completions.ts +0 -32
  413. package/packages/orq-rc/src/sdk/contacts.ts +0 -27
  414. package/packages/orq-rc/src/sdk/datasets.ts +0 -204
  415. package/packages/orq-rc/src/sdk/deployments.ts +0 -89
  416. package/packages/orq-rc/src/sdk/edits.ts +0 -27
  417. package/packages/orq-rc/src/sdk/embeddings.ts +0 -27
  418. package/packages/orq-rc/src/sdk/evals.ts +0 -84
  419. package/packages/orq-rc/src/sdk/evaluators.ts +0 -27
  420. package/packages/orq-rc/src/sdk/feedback.ts +0 -27
  421. package/packages/orq-rc/src/sdk/files.ts +0 -78
  422. package/packages/orq-rc/src/sdk/generations.ts +0 -27
  423. package/packages/orq-rc/src/sdk/identities.ts +0 -99
  424. package/packages/orq-rc/src/sdk/images.ts +0 -25
  425. package/packages/orq-rc/src/sdk/index.ts +0 -5
  426. package/packages/orq-rc/src/sdk/knowledge.ts +0 -309
  427. package/packages/orq-rc/src/sdk/memorystores.ts +0 -286
  428. package/packages/orq-rc/src/sdk/metrics.ts +0 -27
  429. package/packages/orq-rc/src/sdk/models.ts +0 -25
  430. package/packages/orq-rc/src/sdk/moderations.ts +0 -24
  431. package/packages/orq-rc/src/sdk/orqcompletions.ts +0 -32
  432. package/packages/orq-rc/src/sdk/orqresponses.ts +0 -32
  433. package/packages/orq-rc/src/sdk/prompts.ts +0 -126
  434. package/packages/orq-rc/src/sdk/remoteconfigs.ts +0 -24
  435. package/packages/orq-rc/src/sdk/rerank.ts +0 -27
  436. package/packages/orq-rc/src/sdk/responses.ts +0 -53
  437. package/packages/orq-rc/src/sdk/router.ts +0 -72
  438. package/packages/orq-rc/src/sdk/sdk.ts +0 -115
  439. package/packages/orq-rc/src/sdk/speech.ts +0 -27
  440. package/packages/orq-rc/src/sdk/tools.ts +0 -135
  441. package/packages/orq-rc/src/sdk/transcriptions.ts +0 -24
  442. package/packages/orq-rc/src/sdk/translations.ts +0 -24
  443. package/packages/orq-rc/src/sdk/variations.ts +0 -27
  444. package/packages/orq-rc/src/types/async.ts +0 -68
  445. package/packages/orq-rc/src/types/blobs.ts +0 -32
  446. package/packages/orq-rc/src/types/constdatetime.ts +0 -15
  447. package/packages/orq-rc/src/types/enums.ts +0 -45
  448. package/packages/orq-rc/src/types/fp.ts +0 -50
  449. package/packages/orq-rc/src/types/index.ts +0 -11
  450. package/packages/orq-rc/src/types/operations.ts +0 -105
  451. package/packages/orq-rc/src/types/rfcdate.ts +0 -54
  452. package/packages/orq-rc/src/types/streams.ts +0 -21
  453. package/packages/orq-rc/src/types/unrecognized.ts +0 -35
@@ -1,348 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
- import {
12
- AgentResponseMessage,
13
- AgentResponseMessage$inboundSchema,
14
- } from "./agentresponsemessage.js";
15
- import { Telemetry, Telemetry$inboundSchema } from "./telemetry.js";
16
-
17
- export type GetAgentResponsePromptTokensDetails = {
18
- cachedTokens?: number | null | undefined;
19
- cacheCreationTokens?: number | null | undefined;
20
- /**
21
- * The number of audio input tokens consumed by the request.
22
- */
23
- audioTokens?: number | null | undefined;
24
- };
25
-
26
- export type GetAgentResponseCompletionTokensDetails = {
27
- reasoningTokens?: number | null | undefined;
28
- acceptedPredictionTokens?: number | null | undefined;
29
- rejectedPredictionTokens?: number | null | undefined;
30
- /**
31
- * The number of audio output tokens produced by the response.
32
- */
33
- audioTokens?: number | null | undefined;
34
- };
35
-
36
- /**
37
- * Token usage from the agent execution
38
- */
39
- export type GetAgentResponseUsage = {
40
- /**
41
- * Number of tokens in the generated completion.
42
- */
43
- completionTokens?: number | undefined;
44
- /**
45
- * Number of tokens in the prompt.
46
- */
47
- promptTokens?: number | undefined;
48
- /**
49
- * Total number of tokens used in the request (prompt + completion).
50
- */
51
- totalTokens?: number | undefined;
52
- promptTokensDetails?: GetAgentResponsePromptTokensDetails | null | undefined;
53
- completionTokensDetails?:
54
- | GetAgentResponseCompletionTokensDetails
55
- | null
56
- | undefined;
57
- };
58
-
59
- /**
60
- * The reason why the agent stopped generating
61
- */
62
- export const GetAgentResponseFinishReason = {
63
- Stop: "stop",
64
- Length: "length",
65
- ToolCalls: "tool_calls",
66
- ContentFilter: "content_filter",
67
- FunctionCall: "function_call",
68
- MaxIterations: "max_iterations",
69
- MaxTime: "max_time",
70
- } as const;
71
- /**
72
- * The reason why the agent stopped generating
73
- */
74
- export type GetAgentResponseFinishReason = ClosedEnum<
75
- typeof GetAgentResponseFinishReason
76
- >;
77
-
78
- export const GetAgentResponseType = {
79
- Function: "function",
80
- } as const;
81
- export type GetAgentResponseType = ClosedEnum<typeof GetAgentResponseType>;
82
-
83
- export type GetAgentResponseFunction = {
84
- name?: string | undefined;
85
- arguments?: string | undefined;
86
- };
87
-
88
- export type GetAgentResponsePendingToolCalls = {
89
- id: string;
90
- type: GetAgentResponseType;
91
- function: GetAgentResponseFunction;
92
- };
93
-
94
- /**
95
- * Current status of the agent response
96
- */
97
- export const Status = {
98
- InProgress: "in_progress",
99
- Completed: "completed",
100
- Failed: "failed",
101
- } as const;
102
- /**
103
- * Current status of the agent response
104
- */
105
- export type Status = ClosedEnum<typeof Status>;
106
-
107
- /**
108
- * Response type from the get-response endpoint. Includes a status field indicating the current state of the agent execution.
109
- */
110
- export type GetAgentResponse = {
111
- /**
112
- * The unique response ID
113
- */
114
- id: string;
115
- /**
116
- * The agent execution task ID
117
- */
118
- taskId: string;
119
- /**
120
- * Array of messages from the agent execution
121
- */
122
- output: Array<AgentResponseMessage>;
123
- /**
124
- * ISO timestamp of response creation
125
- */
126
- createdAt: string;
127
- /**
128
- * Model used in provider/model format
129
- */
130
- model: string;
131
- /**
132
- * Token usage from the agent execution
133
- */
134
- usage?: GetAgentResponseUsage | null | undefined;
135
- /**
136
- * The reason why the agent stopped generating
137
- */
138
- finishReason?: GetAgentResponseFinishReason | undefined;
139
- /**
140
- * Tool calls awaiting user response (when finish_reason is function_call)
141
- */
142
- pendingToolCalls?: Array<GetAgentResponsePendingToolCalls> | undefined;
143
- /**
144
- * Telemetry information for correlating the response with traces
145
- */
146
- telemetry?: Telemetry | undefined;
147
- /**
148
- * Current status of the agent response
149
- */
150
- status: Status;
151
- /**
152
- * Error message when status is failed
153
- */
154
- error?: string | undefined;
155
- };
156
-
157
- /** @internal */
158
- export const GetAgentResponsePromptTokensDetails$inboundSchema: z.ZodType<
159
- GetAgentResponsePromptTokensDetails,
160
- z.ZodTypeDef,
161
- unknown
162
- > = z.object({
163
- cached_tokens: z.nullable(z.number().int()).optional(),
164
- cache_creation_tokens: z.nullable(z.number().int()).optional(),
165
- audio_tokens: z.nullable(z.number().int()).optional(),
166
- }).transform((v) => {
167
- return remap$(v, {
168
- "cached_tokens": "cachedTokens",
169
- "cache_creation_tokens": "cacheCreationTokens",
170
- "audio_tokens": "audioTokens",
171
- });
172
- });
173
-
174
- export function getAgentResponsePromptTokensDetailsFromJSON(
175
- jsonString: string,
176
- ): SafeParseResult<GetAgentResponsePromptTokensDetails, SDKValidationError> {
177
- return safeParse(
178
- jsonString,
179
- (x) =>
180
- GetAgentResponsePromptTokensDetails$inboundSchema.parse(JSON.parse(x)),
181
- `Failed to parse 'GetAgentResponsePromptTokensDetails' from JSON`,
182
- );
183
- }
184
-
185
- /** @internal */
186
- export const GetAgentResponseCompletionTokensDetails$inboundSchema: z.ZodType<
187
- GetAgentResponseCompletionTokensDetails,
188
- z.ZodTypeDef,
189
- unknown
190
- > = z.object({
191
- reasoning_tokens: z.nullable(z.number()).optional(),
192
- accepted_prediction_tokens: z.nullable(z.number()).optional(),
193
- rejected_prediction_tokens: z.nullable(z.number()).optional(),
194
- audio_tokens: z.nullable(z.number().int()).optional(),
195
- }).transform((v) => {
196
- return remap$(v, {
197
- "reasoning_tokens": "reasoningTokens",
198
- "accepted_prediction_tokens": "acceptedPredictionTokens",
199
- "rejected_prediction_tokens": "rejectedPredictionTokens",
200
- "audio_tokens": "audioTokens",
201
- });
202
- });
203
-
204
- export function getAgentResponseCompletionTokensDetailsFromJSON(
205
- jsonString: string,
206
- ): SafeParseResult<
207
- GetAgentResponseCompletionTokensDetails,
208
- SDKValidationError
209
- > {
210
- return safeParse(
211
- jsonString,
212
- (x) =>
213
- GetAgentResponseCompletionTokensDetails$inboundSchema.parse(
214
- JSON.parse(x),
215
- ),
216
- `Failed to parse 'GetAgentResponseCompletionTokensDetails' from JSON`,
217
- );
218
- }
219
-
220
- /** @internal */
221
- export const GetAgentResponseUsage$inboundSchema: z.ZodType<
222
- GetAgentResponseUsage,
223
- z.ZodTypeDef,
224
- unknown
225
- > = z.object({
226
- completion_tokens: z.number().optional(),
227
- prompt_tokens: z.number().optional(),
228
- total_tokens: z.number().optional(),
229
- prompt_tokens_details: z.nullable(
230
- z.lazy(() => GetAgentResponsePromptTokensDetails$inboundSchema),
231
- ).optional(),
232
- completion_tokens_details: z.nullable(
233
- z.lazy(() => GetAgentResponseCompletionTokensDetails$inboundSchema),
234
- ).optional(),
235
- }).transform((v) => {
236
- return remap$(v, {
237
- "completion_tokens": "completionTokens",
238
- "prompt_tokens": "promptTokens",
239
- "total_tokens": "totalTokens",
240
- "prompt_tokens_details": "promptTokensDetails",
241
- "completion_tokens_details": "completionTokensDetails",
242
- });
243
- });
244
-
245
- export function getAgentResponseUsageFromJSON(
246
- jsonString: string,
247
- ): SafeParseResult<GetAgentResponseUsage, SDKValidationError> {
248
- return safeParse(
249
- jsonString,
250
- (x) => GetAgentResponseUsage$inboundSchema.parse(JSON.parse(x)),
251
- `Failed to parse 'GetAgentResponseUsage' from JSON`,
252
- );
253
- }
254
-
255
- /** @internal */
256
- export const GetAgentResponseFinishReason$inboundSchema: z.ZodNativeEnum<
257
- typeof GetAgentResponseFinishReason
258
- > = z.nativeEnum(GetAgentResponseFinishReason);
259
-
260
- /** @internal */
261
- export const GetAgentResponseType$inboundSchema: z.ZodNativeEnum<
262
- typeof GetAgentResponseType
263
- > = z.nativeEnum(GetAgentResponseType);
264
-
265
- /** @internal */
266
- export const GetAgentResponseFunction$inboundSchema: z.ZodType<
267
- GetAgentResponseFunction,
268
- z.ZodTypeDef,
269
- unknown
270
- > = z.object({
271
- name: z.string().optional(),
272
- arguments: z.string().optional(),
273
- });
274
-
275
- export function getAgentResponseFunctionFromJSON(
276
- jsonString: string,
277
- ): SafeParseResult<GetAgentResponseFunction, SDKValidationError> {
278
- return safeParse(
279
- jsonString,
280
- (x) => GetAgentResponseFunction$inboundSchema.parse(JSON.parse(x)),
281
- `Failed to parse 'GetAgentResponseFunction' from JSON`,
282
- );
283
- }
284
-
285
- /** @internal */
286
- export const GetAgentResponsePendingToolCalls$inboundSchema: z.ZodType<
287
- GetAgentResponsePendingToolCalls,
288
- z.ZodTypeDef,
289
- unknown
290
- > = z.object({
291
- id: z.string(),
292
- type: GetAgentResponseType$inboundSchema,
293
- function: z.lazy(() => GetAgentResponseFunction$inboundSchema),
294
- });
295
-
296
- export function getAgentResponsePendingToolCallsFromJSON(
297
- jsonString: string,
298
- ): SafeParseResult<GetAgentResponsePendingToolCalls, SDKValidationError> {
299
- return safeParse(
300
- jsonString,
301
- (x) => GetAgentResponsePendingToolCalls$inboundSchema.parse(JSON.parse(x)),
302
- `Failed to parse 'GetAgentResponsePendingToolCalls' from JSON`,
303
- );
304
- }
305
-
306
- /** @internal */
307
- export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
308
- .nativeEnum(Status);
309
-
310
- /** @internal */
311
- export const GetAgentResponse$inboundSchema: z.ZodType<
312
- GetAgentResponse,
313
- z.ZodTypeDef,
314
- unknown
315
- > = z.object({
316
- _id: z.string(),
317
- task_id: z.string(),
318
- output: z.array(AgentResponseMessage$inboundSchema),
319
- created_at: z.string(),
320
- model: z.string(),
321
- usage: z.nullable(z.lazy(() => GetAgentResponseUsage$inboundSchema))
322
- .optional(),
323
- finish_reason: GetAgentResponseFinishReason$inboundSchema.optional(),
324
- pending_tool_calls: z.array(
325
- z.lazy(() => GetAgentResponsePendingToolCalls$inboundSchema),
326
- ).optional(),
327
- telemetry: Telemetry$inboundSchema.optional(),
328
- status: Status$inboundSchema,
329
- error: z.string().optional(),
330
- }).transform((v) => {
331
- return remap$(v, {
332
- "_id": "id",
333
- "task_id": "taskId",
334
- "created_at": "createdAt",
335
- "finish_reason": "finishReason",
336
- "pending_tool_calls": "pendingToolCalls",
337
- });
338
- });
339
-
340
- export function getAgentResponseFromJSON(
341
- jsonString: string,
342
- ): SafeParseResult<GetAgentResponse, SDKValidationError> {
343
- return safeParse(
344
- jsonString,
345
- (x) => GetAgentResponse$inboundSchema.parse(JSON.parse(x)),
346
- `Failed to parse 'GetAgentResponse' from JSON`,
347
- );
348
- }
@@ -1,268 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- /**
13
- * Specifies the detail level of the image.
14
- */
15
- export const Detail = {
16
- Low: "low",
17
- High: "high",
18
- Auto: "auto",
19
- } as const;
20
- /**
21
- * Specifies the detail level of the image.
22
- */
23
- export type Detail = ClosedEnum<typeof Detail>;
24
-
25
- export type ImageUrl = {
26
- /**
27
- * Either a URL of the image or the base64 encoded image data.
28
- */
29
- url: string;
30
- /**
31
- * Specifies the detail level of the image.
32
- */
33
- detail?: Detail | undefined;
34
- };
35
-
36
- /**
37
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
38
- */
39
- export const ImageContentPartSchemaCacheControlType = {
40
- Ephemeral: "ephemeral",
41
- } as const;
42
- /**
43
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
44
- */
45
- export type ImageContentPartSchemaCacheControlType = ClosedEnum<
46
- typeof ImageContentPartSchemaCacheControlType
47
- >;
48
-
49
- /**
50
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
51
- *
52
- * @remarks
53
- *
54
- * - `5m`: 5 minutes
55
- * - `1h`: 1 hour
56
- *
57
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
58
- */
59
- export const ImageContentPartSchemaTtl = {
60
- Fivem: "5m",
61
- Oneh: "1h",
62
- } as const;
63
- /**
64
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
65
- *
66
- * @remarks
67
- *
68
- * - `5m`: 5 minutes
69
- * - `1h`: 1 hour
70
- *
71
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
72
- */
73
- export type ImageContentPartSchemaTtl = ClosedEnum<
74
- typeof ImageContentPartSchemaTtl
75
- >;
76
-
77
- export type ImageContentPartSchemaCacheControl = {
78
- /**
79
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
80
- */
81
- type: ImageContentPartSchemaCacheControlType;
82
- /**
83
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
84
- *
85
- * @remarks
86
- *
87
- * - `5m`: 5 minutes
88
- * - `1h`: 1 hour
89
- *
90
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
91
- */
92
- ttl?: ImageContentPartSchemaTtl | undefined;
93
- };
94
-
95
- /**
96
- * An image content part
97
- */
98
- export type ImageContentPartSchema = {
99
- type: "image_url";
100
- imageUrl: ImageUrl;
101
- cacheControl?: ImageContentPartSchemaCacheControl | undefined;
102
- };
103
-
104
- /** @internal */
105
- export const Detail$inboundSchema: z.ZodNativeEnum<typeof Detail> = z
106
- .nativeEnum(Detail);
107
- /** @internal */
108
- export const Detail$outboundSchema: z.ZodNativeEnum<typeof Detail> =
109
- Detail$inboundSchema;
110
-
111
- /** @internal */
112
- export const ImageUrl$inboundSchema: z.ZodType<
113
- ImageUrl,
114
- z.ZodTypeDef,
115
- unknown
116
- > = z.object({
117
- url: z.string(),
118
- detail: Detail$inboundSchema.optional(),
119
- });
120
- /** @internal */
121
- export type ImageUrl$Outbound = {
122
- url: string;
123
- detail?: string | undefined;
124
- };
125
-
126
- /** @internal */
127
- export const ImageUrl$outboundSchema: z.ZodType<
128
- ImageUrl$Outbound,
129
- z.ZodTypeDef,
130
- ImageUrl
131
- > = z.object({
132
- url: z.string(),
133
- detail: Detail$outboundSchema.optional(),
134
- });
135
-
136
- export function imageUrlToJSON(imageUrl: ImageUrl): string {
137
- return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
138
- }
139
- export function imageUrlFromJSON(
140
- jsonString: string,
141
- ): SafeParseResult<ImageUrl, SDKValidationError> {
142
- return safeParse(
143
- jsonString,
144
- (x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
145
- `Failed to parse 'ImageUrl' from JSON`,
146
- );
147
- }
148
-
149
- /** @internal */
150
- export const ImageContentPartSchemaCacheControlType$inboundSchema:
151
- z.ZodNativeEnum<typeof ImageContentPartSchemaCacheControlType> = z.nativeEnum(
152
- ImageContentPartSchemaCacheControlType,
153
- );
154
- /** @internal */
155
- export const ImageContentPartSchemaCacheControlType$outboundSchema:
156
- z.ZodNativeEnum<typeof ImageContentPartSchemaCacheControlType> =
157
- ImageContentPartSchemaCacheControlType$inboundSchema;
158
-
159
- /** @internal */
160
- export const ImageContentPartSchemaTtl$inboundSchema: z.ZodNativeEnum<
161
- typeof ImageContentPartSchemaTtl
162
- > = z.nativeEnum(ImageContentPartSchemaTtl);
163
- /** @internal */
164
- export const ImageContentPartSchemaTtl$outboundSchema: z.ZodNativeEnum<
165
- typeof ImageContentPartSchemaTtl
166
- > = ImageContentPartSchemaTtl$inboundSchema;
167
-
168
- /** @internal */
169
- export const ImageContentPartSchemaCacheControl$inboundSchema: z.ZodType<
170
- ImageContentPartSchemaCacheControl,
171
- z.ZodTypeDef,
172
- unknown
173
- > = z.object({
174
- type: ImageContentPartSchemaCacheControlType$inboundSchema,
175
- ttl: ImageContentPartSchemaTtl$inboundSchema.default("5m"),
176
- });
177
- /** @internal */
178
- export type ImageContentPartSchemaCacheControl$Outbound = {
179
- type: string;
180
- ttl: string;
181
- };
182
-
183
- /** @internal */
184
- export const ImageContentPartSchemaCacheControl$outboundSchema: z.ZodType<
185
- ImageContentPartSchemaCacheControl$Outbound,
186
- z.ZodTypeDef,
187
- ImageContentPartSchemaCacheControl
188
- > = z.object({
189
- type: ImageContentPartSchemaCacheControlType$outboundSchema,
190
- ttl: ImageContentPartSchemaTtl$outboundSchema.default("5m"),
191
- });
192
-
193
- export function imageContentPartSchemaCacheControlToJSON(
194
- imageContentPartSchemaCacheControl: ImageContentPartSchemaCacheControl,
195
- ): string {
196
- return JSON.stringify(
197
- ImageContentPartSchemaCacheControl$outboundSchema.parse(
198
- imageContentPartSchemaCacheControl,
199
- ),
200
- );
201
- }
202
- export function imageContentPartSchemaCacheControlFromJSON(
203
- jsonString: string,
204
- ): SafeParseResult<ImageContentPartSchemaCacheControl, SDKValidationError> {
205
- return safeParse(
206
- jsonString,
207
- (x) =>
208
- ImageContentPartSchemaCacheControl$inboundSchema.parse(JSON.parse(x)),
209
- `Failed to parse 'ImageContentPartSchemaCacheControl' from JSON`,
210
- );
211
- }
212
-
213
- /** @internal */
214
- export const ImageContentPartSchema$inboundSchema: z.ZodType<
215
- ImageContentPartSchema,
216
- z.ZodTypeDef,
217
- unknown
218
- > = z.object({
219
- type: z.literal("image_url"),
220
- image_url: z.lazy(() => ImageUrl$inboundSchema),
221
- cache_control: z.lazy(() => ImageContentPartSchemaCacheControl$inboundSchema)
222
- .optional(),
223
- }).transform((v) => {
224
- return remap$(v, {
225
- "image_url": "imageUrl",
226
- "cache_control": "cacheControl",
227
- });
228
- });
229
- /** @internal */
230
- export type ImageContentPartSchema$Outbound = {
231
- type: "image_url";
232
- image_url: ImageUrl$Outbound;
233
- cache_control?: ImageContentPartSchemaCacheControl$Outbound | undefined;
234
- };
235
-
236
- /** @internal */
237
- export const ImageContentPartSchema$outboundSchema: z.ZodType<
238
- ImageContentPartSchema$Outbound,
239
- z.ZodTypeDef,
240
- ImageContentPartSchema
241
- > = z.object({
242
- type: z.literal("image_url"),
243
- imageUrl: z.lazy(() => ImageUrl$outboundSchema),
244
- cacheControl: z.lazy(() => ImageContentPartSchemaCacheControl$outboundSchema)
245
- .optional(),
246
- }).transform((v) => {
247
- return remap$(v, {
248
- imageUrl: "image_url",
249
- cacheControl: "cache_control",
250
- });
251
- });
252
-
253
- export function imageContentPartSchemaToJSON(
254
- imageContentPartSchema: ImageContentPartSchema,
255
- ): string {
256
- return JSON.stringify(
257
- ImageContentPartSchema$outboundSchema.parse(imageContentPartSchema),
258
- );
259
- }
260
- export function imageContentPartSchemaFromJSON(
261
- jsonString: string,
262
- ): SafeParseResult<ImageContentPartSchema, SDKValidationError> {
263
- return safeParse(
264
- jsonString,
265
- (x) => ImageContentPartSchema$inboundSchema.parse(JSON.parse(x)),
266
- `Failed to parse 'ImageContentPartSchema' from JSON`,
267
- );
268
- }
@@ -1,59 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- export * from "./actionreviewedstreamingevent.js";
6
- export * from "./actionreviewrequestedstreamingevent.js";
7
- export * from "./agenterroredstreamingevent.js";
8
- export * from "./agentexecutionstartedstreamingevent.js";
9
- export * from "./agenthandedoffstreamingevent.js";
10
- export * from "./agentinactivestreamingevent.js";
11
- export * from "./agentmessagecreatedstreamingevent.js";
12
- export * from "./agentresponsemessage.js";
13
- export * from "./agentstartedstreamingevent.js";
14
- export * from "./agentthoughtstreamingevent.js";
15
- export * from "./audiocontentpartschema.js";
16
- export * from "./createagentresponse.js";
17
- export * from "./datapart.js";
18
- export * from "./errorpart.js";
19
- export * from "./errorstreamingevent.js";
20
- export * from "./executionnamedstreamingevent.js";
21
- export * from "./executionreviewedstreamingevent.js";
22
- export * from "./executionreviewrequiredstreamingevent.js";
23
- export * from "./extendedmessage.js";
24
- export * from "./filecontentpartschema.js";
25
- export * from "./filepart.js";
26
- export * from "./getagentresponse.js";
27
- export * from "./imagecontentpartschema.js";
28
- export * from "./invokedeploymentrequest.js";
29
- export * from "./partdelta.js";
30
- export * from "./partdeltaevent.js";
31
- export * from "./partdoneevent.js";
32
- export * from "./publiccontact.js";
33
- export * from "./publicidentity.js";
34
- export * from "./reasoningpart.js";
35
- export * from "./reasoningpartschema.js";
36
- export * from "./redactedreasoningpartschema.js";
37
- export * from "./refusalpartschema.js";
38
- export * from "./responsedoneevent.js";
39
- export * from "./responsefailedevent.js";
40
- export * from "./responsestartedevent.js";
41
- export * from "./responsestreamingevent.js";
42
- export * from "./reviewoutcome.js";
43
- export * from "./security.js";
44
- export * from "./telemetry.js";
45
- export * from "./textcontentpartschema.js";
46
- export * from "./textpart.js";
47
- export * from "./thinkingconfigdisabledschema.js";
48
- export * from "./thinkingconfigenabledschema.js";
49
- export * from "./timeoutstreamingevent.js";
50
- export * from "./toolcallpart.js";
51
- export * from "./tooldoneevent.js";
52
- export * from "./toolexecutionfailedstreamingevent.js";
53
- export * from "./toolexecutionfinishedstreamingevent.js";
54
- export * from "./toolexecutionstartedstreamingevent.js";
55
- export * from "./toolfailedevent.js";
56
- export * from "./toolresultpart.js";
57
- export * from "./toolreviewdoneevent.js";
58
- export * from "./toolreviewrequestedevent.js";
59
- export * from "./toolstartedevent.js";