@orq-ai/node 4.4.0-rc.9 → 4.4.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 (651) hide show
  1. package/README.md +34 -54
  2. package/_speakeasy/.github/action-inputs-config.json +53 -0
  3. package/_speakeasy/.github/action-security-config.json +88 -0
  4. package/examples/package-lock.json +7 -4
  5. package/funcs/{conversationsRetrieve.d.ts → annotationsCreate.d.ts} +4 -8
  6. package/funcs/annotationsCreate.d.ts.map +1 -0
  7. package/funcs/{conversationsCreate.js → annotationsCreate.js} +21 -13
  8. package/funcs/annotationsCreate.js.map +1 -0
  9. package/funcs/{conversationsDelete.d.ts → annotationsDelete.d.ts} +4 -7
  10. package/funcs/annotationsDelete.d.ts.map +1 -0
  11. package/funcs/{conversationsCreateConversationResponse.js → annotationsDelete.js} +15 -25
  12. package/funcs/annotationsDelete.js.map +1 -0
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +3 -3
  15. package/lib/config.js +3 -3
  16. package/lib/config.js.map +1 -1
  17. package/models/components/agentstartedstreamingevent.d.ts +9 -0
  18. package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
  19. package/models/components/agentstartedstreamingevent.js +11 -1
  20. package/models/components/agentstartedstreamingevent.js.map +1 -1
  21. package/models/components/index.d.ts +0 -4
  22. package/models/components/index.d.ts.map +1 -1
  23. package/models/components/index.js +0 -4
  24. package/models/components/index.js.map +1 -1
  25. package/models/components/invokedeploymentrequest.d.ts +6 -6
  26. package/models/components/invokedeploymentrequest.d.ts.map +1 -1
  27. package/models/components/invokedeploymentrequest.js +6 -7
  28. package/models/components/invokedeploymentrequest.js.map +1 -1
  29. package/models/components/partdoneevent.js +1 -1
  30. package/models/components/reasoningpart.js +1 -1
  31. package/models/errors/index.d.ts +0 -4
  32. package/models/errors/index.d.ts.map +1 -1
  33. package/models/errors/index.js +0 -4
  34. package/models/errors/index.js.map +1 -1
  35. package/models/operations/createagentrequest.d.ts +1 -1
  36. package/models/operations/createagentrequest.d.ts.map +1 -1
  37. package/models/operations/createagentrequest.js +1 -1
  38. package/models/operations/createagentrequest.js.map +1 -1
  39. package/models/operations/createannotation.d.ts +71 -0
  40. package/models/operations/createannotation.d.ts.map +1 -0
  41. package/models/operations/createannotation.js +91 -0
  42. package/models/operations/createannotation.js.map +1 -0
  43. package/models/operations/createcontact.js +1 -1
  44. package/models/operations/createdataset.js +1 -1
  45. package/models/operations/createdatasetitem.js +4 -4
  46. package/models/operations/createdatasource.js +1 -1
  47. package/models/operations/createeval.d.ts +587 -186
  48. package/models/operations/createeval.d.ts.map +1 -1
  49. package/models/operations/createeval.js +673 -240
  50. package/models/operations/createeval.js.map +1 -1
  51. package/models/operations/createidentity.js +1 -1
  52. package/models/operations/createresponse.d.ts +3 -3
  53. package/models/operations/createresponse.d.ts.map +1 -1
  54. package/models/operations/createresponse.js +5 -5
  55. package/models/operations/createresponse.js.map +1 -1
  56. package/models/operations/createtool.js +6 -6
  57. package/models/operations/deleteannotation.d.ts +32 -0
  58. package/models/operations/deleteannotation.d.ts.map +1 -0
  59. package/models/operations/{deleteconversation.js → deleteannotation.js} +21 -8
  60. package/models/operations/deleteannotation.js.map +1 -0
  61. package/models/operations/fileget.js +1 -1
  62. package/models/operations/filelist.js +1 -1
  63. package/models/operations/fileupload.js +1 -1
  64. package/models/operations/getalltools.js +6 -6
  65. package/models/operations/getevals.d.ts +265 -104
  66. package/models/operations/getevals.d.ts.map +1 -1
  67. package/models/operations/getevals.js +389 -166
  68. package/models/operations/getevals.js.map +1 -1
  69. package/models/operations/index.d.ts +2 -7
  70. package/models/operations/index.d.ts.map +1 -1
  71. package/models/operations/index.js +2 -7
  72. package/models/operations/index.js.map +1 -1
  73. package/models/operations/invokeeval.d.ts +35 -0
  74. package/models/operations/invokeeval.d.ts.map +1 -1
  75. package/models/operations/invokeeval.js +54 -1
  76. package/models/operations/invokeeval.js.map +1 -1
  77. package/models/operations/listagents.d.ts +1 -1
  78. package/models/operations/listagents.d.ts.map +1 -1
  79. package/models/operations/listagents.js +1 -1
  80. package/models/operations/listagents.js.map +1 -1
  81. package/models/operations/listdatasetdatapoints.js +4 -4
  82. package/models/operations/listdatasets.js +1 -1
  83. package/models/operations/listdatasources.js +1 -1
  84. package/models/operations/listidentities.js +1 -1
  85. package/models/operations/retrieveagentrequest.d.ts +1 -1
  86. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  87. package/models/operations/retrieveagentrequest.js +1 -1
  88. package/models/operations/retrieveagentrequest.js.map +1 -1
  89. package/models/operations/retrievedatapoint.js +4 -4
  90. package/models/operations/retrievedataset.js +1 -1
  91. package/models/operations/retrievedatasource.js +1 -1
  92. package/models/operations/retrieveidentity.js +1 -1
  93. package/models/operations/retrievetool.js +6 -6
  94. package/models/operations/runagent.js +1 -1
  95. package/models/operations/streamrunagent.js +1 -1
  96. package/models/operations/updateagent.d.ts +1 -1
  97. package/models/operations/updateagent.d.ts.map +1 -1
  98. package/models/operations/updateagent.js +1 -1
  99. package/models/operations/updateagent.js.map +1 -1
  100. package/models/operations/updatedatapoint.js +4 -4
  101. package/models/operations/updatedataset.js +1 -1
  102. package/models/operations/updatedatasource.js +1 -1
  103. package/models/operations/updateeval.d.ts +349 -81
  104. package/models/operations/updateeval.d.ts.map +1 -1
  105. package/models/operations/updateeval.js +459 -143
  106. package/models/operations/updateeval.js.map +1 -1
  107. package/models/operations/updateidentity.js +1 -1
  108. package/models/operations/updatetool.js +7 -7
  109. package/package.json +3 -4
  110. package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
  111. package/packages/orq-rc/examples/package-lock.json +610 -0
  112. package/packages/orq-rc/examples/package.json +18 -0
  113. package/packages/orq-rc/jsr.json +28 -0
  114. package/packages/orq-rc/package-lock.json +1740 -0
  115. package/packages/orq-rc/package.json +30 -0
  116. package/packages/orq-rc/src/core.ts +13 -0
  117. package/packages/orq-rc/src/funcs/agentsCreate.ts +161 -0
  118. package/{src/funcs/conversationsRetrieve.ts → packages/orq-rc/src/funcs/agentsDelete.ts} +22 -23
  119. package/packages/orq-rc/src/funcs/agentsInvoke.ts +177 -0
  120. package/{src/funcs/conversationsList.ts → packages/orq-rc/src/funcs/agentsList.ts} +13 -20
  121. package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +183 -0
  122. package/packages/orq-rc/src/funcs/agentsRetrieve.ts +180 -0
  123. package/packages/orq-rc/src/funcs/agentsRun.ts +162 -0
  124. package/{src/funcs/conversationsGenerateName.ts → packages/orq-rc/src/funcs/agentsStream.ts} +40 -33
  125. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +186 -0
  126. package/{src/funcs/conversationsUpdate.ts → packages/orq-rc/src/funcs/agentsUpdate.ts} +22 -22
  127. package/packages/orq-rc/src/funcs/annotationsCreate.ts +171 -0
  128. package/packages/orq-rc/src/funcs/annotationsDelete.ts +171 -0
  129. package/packages/orq-rc/src/funcs/chunkingParse.ts +160 -0
  130. package/packages/orq-rc/src/funcs/contactsCreate.ts +160 -0
  131. package/packages/orq-rc/src/funcs/datasetsClear.ts +167 -0
  132. package/packages/orq-rc/src/funcs/datasetsCreate.ts +165 -0
  133. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +171 -0
  134. package/packages/orq-rc/src/funcs/datasetsDelete.ts +167 -0
  135. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +182 -0
  136. package/packages/orq-rc/src/funcs/datasetsList.ts +167 -0
  137. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +174 -0
  138. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +175 -0
  139. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +181 -0
  140. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +176 -0
  141. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +179 -0
  142. package/packages/orq-rc/src/funcs/deploymentsGetConfig.ts +168 -0
  143. package/packages/orq-rc/src/funcs/deploymentsInvoke.ts +176 -0
  144. package/packages/orq-rc/src/funcs/deploymentsList.ts +176 -0
  145. package/packages/orq-rc/src/funcs/deploymentsMetricsCreate.ts +168 -0
  146. package/{src/funcs/conversationsCreateConversationResponse.ts → packages/orq-rc/src/funcs/deploymentsStream.ts} +22 -25
  147. package/packages/orq-rc/src/funcs/evalsAll.ts +173 -0
  148. package/packages/orq-rc/src/funcs/evalsCreate.ts +169 -0
  149. package/packages/orq-rc/src/funcs/evalsDelete.ts +173 -0
  150. package/packages/orq-rc/src/funcs/evalsInvoke.ts +181 -0
  151. package/packages/orq-rc/src/funcs/evalsUpdate.ts +173 -0
  152. package/packages/orq-rc/src/funcs/evaluatorsGetV2EvaluatorsIdVersions.ts +183 -0
  153. package/packages/orq-rc/src/funcs/feedbackCreate.ts +160 -0
  154. package/packages/orq-rc/src/funcs/filesCreate.ts +187 -0
  155. package/packages/orq-rc/src/funcs/filesDelete.ts +164 -0
  156. package/packages/orq-rc/src/funcs/filesGet.ts +166 -0
  157. package/packages/orq-rc/src/funcs/filesList.ts +167 -0
  158. package/packages/orq-rc/src/funcs/identitiesCreate.ts +165 -0
  159. package/{src/funcs/conversationsDelete.ts → packages/orq-rc/src/funcs/identitiesDelete.ts} +15 -19
  160. package/packages/orq-rc/src/funcs/identitiesList.ts +170 -0
  161. package/packages/orq-rc/src/funcs/identitiesRetrieve.ts +175 -0
  162. package/packages/orq-rc/src/funcs/identitiesUpdate.ts +176 -0
  163. package/packages/orq-rc/src/funcs/knowledgeCreate.ts +158 -0
  164. package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +171 -0
  165. package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +166 -0
  166. package/packages/orq-rc/src/funcs/knowledgeDelete.ts +167 -0
  167. package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +174 -0
  168. package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +170 -0
  169. package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +173 -0
  170. package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +170 -0
  171. package/packages/orq-rc/src/funcs/knowledgeList.ts +169 -0
  172. package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +178 -0
  173. package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +171 -0
  174. package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +174 -0
  175. package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +166 -0
  176. package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +173 -0
  177. package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +169 -0
  178. package/packages/orq-rc/src/funcs/knowledgeSearch.ts +167 -0
  179. package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +164 -0
  180. package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +174 -0
  181. package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +170 -0
  182. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +162 -0
  183. package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +176 -0
  184. package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +170 -0
  185. package/packages/orq-rc/src/funcs/memoryStoresDelete.ts +168 -0
  186. package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +185 -0
  187. package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +180 -0
  188. package/packages/orq-rc/src/funcs/memoryStoresList.ts +178 -0
  189. package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +184 -0
  190. package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +177 -0
  191. package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +177 -0
  192. package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +179 -0
  193. package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +174 -0
  194. package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +168 -0
  195. package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +180 -0
  196. package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +175 -0
  197. package/packages/orq-rc/src/funcs/modelsList.ts +142 -0
  198. package/packages/orq-rc/src/funcs/promptsCreate.ts +160 -0
  199. package/packages/orq-rc/src/funcs/promptsDelete.ts +173 -0
  200. package/packages/orq-rc/src/funcs/promptsGetVersion.ts +181 -0
  201. package/packages/orq-rc/src/funcs/promptsList.ts +167 -0
  202. package/packages/orq-rc/src/funcs/promptsListVersions.ts +173 -0
  203. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +166 -0
  204. package/packages/orq-rc/src/funcs/promptsUpdate.ts +173 -0
  205. package/packages/orq-rc/src/funcs/remoteconfigsRetrieve.ts +161 -0
  206. package/packages/orq-rc/src/funcs/routerAudioSpeechCreate.ts +161 -0
  207. package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +262 -0
  208. package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +252 -0
  209. package/packages/orq-rc/src/funcs/routerChatCompletionsCreate.ts +168 -0
  210. package/packages/orq-rc/src/funcs/routerCompletionsCreate.ts +168 -0
  211. package/{src/funcs/conversationsCreate.ts → packages/orq-rc/src/funcs/routerEmbeddingsCreate.ts} +12 -12
  212. package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +222 -0
  213. package/packages/orq-rc/src/funcs/routerImagesGenerationsCreate.ts +160 -0
  214. package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +218 -0
  215. package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +167 -0
  216. package/packages/orq-rc/src/funcs/routerOcr.ts +158 -0
  217. package/packages/orq-rc/src/funcs/routerRerankCreate.ts +160 -0
  218. package/packages/orq-rc/src/funcs/routerResponsesCreate.ts +167 -0
  219. package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
  220. package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
  221. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts +183 -0
  222. package/packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts +190 -0
  223. package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
  224. package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
  225. package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
  226. package/packages/orq-rc/src/hooks/global.ts +44 -0
  227. package/packages/orq-rc/src/hooks/hooks.ts +132 -0
  228. package/packages/orq-rc/src/hooks/index.ts +6 -0
  229. package/packages/orq-rc/src/hooks/registration.ts +15 -0
  230. package/packages/orq-rc/src/hooks/types.ts +112 -0
  231. package/packages/orq-rc/src/index.ts +9 -0
  232. package/packages/orq-rc/src/lib/base64.ts +37 -0
  233. package/packages/orq-rc/src/lib/config.ts +74 -0
  234. package/packages/orq-rc/src/lib/dlv.ts +53 -0
  235. package/packages/orq-rc/src/lib/encodings.ts +497 -0
  236. package/packages/orq-rc/src/lib/env.ts +89 -0
  237. package/packages/orq-rc/src/lib/event-streams.ts +152 -0
  238. package/packages/orq-rc/src/lib/files.ts +82 -0
  239. package/packages/orq-rc/src/lib/http.ts +323 -0
  240. package/packages/orq-rc/src/lib/is-plain-object.ts +43 -0
  241. package/packages/orq-rc/src/lib/logger.ts +9 -0
  242. package/packages/orq-rc/src/lib/matchers.ts +345 -0
  243. package/packages/orq-rc/src/lib/primitives.ts +150 -0
  244. package/packages/orq-rc/src/lib/retries.ts +218 -0
  245. package/packages/orq-rc/src/lib/schemas.ts +91 -0
  246. package/packages/orq-rc/src/lib/sdks.ts +407 -0
  247. package/packages/orq-rc/src/lib/security.ts +264 -0
  248. package/packages/orq-rc/src/lib/url.ts +33 -0
  249. package/packages/orq-rc/src/models/components/actionreviewedstreamingevent.ts +99 -0
  250. package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +185 -0
  251. package/packages/orq-rc/src/models/components/agenterroredstreamingevent.ts +73 -0
  252. package/packages/orq-rc/src/models/components/agentexecutionstartedstreamingevent.ts +91 -0
  253. package/packages/orq-rc/src/models/components/agenthandedoffstreamingevent.ts +71 -0
  254. package/packages/orq-rc/src/models/components/agentinactivestreamingevent.ts +507 -0
  255. package/packages/orq-rc/src/models/components/agentmessagecreatedstreamingevent.ts +165 -0
  256. package/packages/orq-rc/src/models/components/agentresponsemessage.ts +103 -0
  257. package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +517 -0
  258. package/packages/orq-rc/src/models/components/agentthoughtstreamingevent.ts +807 -0
  259. package/packages/orq-rc/src/models/components/audiocontentpartschema.ts +136 -0
  260. package/packages/orq-rc/src/models/components/createagentresponse.ts +299 -0
  261. package/packages/orq-rc/src/models/components/datapart.ts +38 -0
  262. package/packages/orq-rc/src/models/components/errorpart.ts +58 -0
  263. package/packages/orq-rc/src/models/components/errorstreamingevent.ts +66 -0
  264. package/packages/orq-rc/src/models/components/executionnamedstreamingevent.ts +71 -0
  265. package/packages/orq-rc/src/models/components/executionreviewedstreamingevent.ts +61 -0
  266. package/packages/orq-rc/src/models/components/executionreviewrequiredstreamingevent.ts +67 -0
  267. package/packages/orq-rc/src/models/components/filecontentpartschema.ts +87 -0
  268. package/packages/orq-rc/src/models/components/filepart.ts +218 -0
  269. package/packages/orq-rc/src/models/components/imagecontentpartschema.ts +268 -0
  270. package/packages/orq-rc/src/models/components/index.ts +56 -0
  271. package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +3450 -0
  272. package/packages/orq-rc/src/models/components/partdelta.ts +39 -0
  273. package/packages/orq-rc/src/models/components/partdeltaevent.ts +73 -0
  274. package/packages/orq-rc/src/models/components/partdoneevent.ts +139 -0
  275. package/packages/orq-rc/src/models/components/publiccontact.ts +71 -0
  276. package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
  277. package/packages/orq-rc/src/models/components/reasoningpart.ts +62 -0
  278. package/packages/orq-rc/src/models/components/reasoningpartschema.ts +71 -0
  279. package/packages/orq-rc/src/models/components/redactedreasoningpartschema.ts +66 -0
  280. package/packages/orq-rc/src/models/components/refusalpartschema.ts +64 -0
  281. package/packages/orq-rc/src/models/components/responsedoneevent.ts +318 -0
  282. package/packages/orq-rc/src/models/components/responsefailedevent.ts +72 -0
  283. package/packages/orq-rc/src/models/components/responsestartedevent.ts +91 -0
  284. package/packages/orq-rc/src/models/components/responsestreamingevent.ts +85 -0
  285. package/packages/orq-rc/src/models/components/reviewoutcome.ts +23 -0
  286. package/packages/orq-rc/src/models/components/security.ts +32 -0
  287. package/packages/orq-rc/src/models/components/textcontentpartschema.ts +207 -0
  288. package/packages/orq-rc/src/models/components/textpart.ts +54 -0
  289. package/packages/orq-rc/src/models/components/thinkingconfigdisabledschema.ts +59 -0
  290. package/packages/orq-rc/src/models/components/thinkingconfigenabledschema.ts +106 -0
  291. package/packages/orq-rc/src/models/components/timeoutstreamingevent.ts +64 -0
  292. package/packages/orq-rc/src/models/components/toolcallpart.ts +51 -0
  293. package/packages/orq-rc/src/models/components/tooldoneevent.ts +77 -0
  294. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +230 -0
  295. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +214 -0
  296. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +200 -0
  297. package/packages/orq-rc/src/models/components/toolfailedevent.ts +77 -0
  298. package/packages/orq-rc/src/models/components/toolresultpart.ts +71 -0
  299. package/packages/orq-rc/src/models/components/toolreviewdoneevent.ts +78 -0
  300. package/packages/orq-rc/src/models/components/toolreviewrequestedevent.ts +87 -0
  301. package/packages/orq-rc/src/models/components/toolstartedevent.ts +82 -0
  302. package/packages/orq-rc/src/models/errors/apierror.ts +40 -0
  303. package/{src/models/errors/deleteconversation.ts → packages/orq-rc/src/models/errors/createeval.ts} +10 -10
  304. package/packages/orq-rc/src/models/errors/createmoderation.ts +84 -0
  305. package/packages/orq-rc/src/models/errors/createtranscription.ts +87 -0
  306. package/packages/orq-rc/src/models/errors/createtranslation.ts +87 -0
  307. package/{src/models/errors/updateconversation.ts → packages/orq-rc/src/models/errors/deleteagent.ts} +10 -10
  308. package/packages/orq-rc/src/models/errors/deleteeval.ts +51 -0
  309. package/packages/orq-rc/src/models/errors/deleteidentity.ts +62 -0
  310. package/packages/orq-rc/src/models/errors/deleteprompt.ts +51 -0
  311. package/packages/orq-rc/src/models/errors/getevals.ts +51 -0
  312. package/packages/orq-rc/src/models/errors/getpromptversion.ts +51 -0
  313. package/packages/orq-rc/src/models/errors/getv2evaluatorsidversions.ts +51 -0
  314. package/packages/orq-rc/src/models/errors/getv2toolstoolidversions.ts +51 -0
  315. package/packages/orq-rc/src/models/errors/getv2toolstoolidversionsversionid.ts +52 -0
  316. package/packages/orq-rc/src/models/errors/honoapierror.ts +59 -0
  317. package/packages/orq-rc/src/models/errors/httpclienterrors.ts +62 -0
  318. package/packages/orq-rc/src/models/errors/index.ts +33 -0
  319. package/packages/orq-rc/src/models/errors/invokeeval.ts +141 -0
  320. package/packages/orq-rc/src/models/errors/orqerror.ts +35 -0
  321. package/packages/orq-rc/src/models/errors/responsevalidationerror.ts +50 -0
  322. package/{src/models/errors/retrieveconversation.ts → packages/orq-rc/src/models/errors/retrieveagentrequest.ts} +10 -10
  323. package/packages/orq-rc/src/models/errors/retrieveidentity.ts +62 -0
  324. package/packages/orq-rc/src/models/errors/sdkvalidationerror.ts +109 -0
  325. package/packages/orq-rc/src/models/errors/streamagent.ts +51 -0
  326. package/packages/orq-rc/src/models/errors/streamrunagent.ts +51 -0
  327. package/packages/orq-rc/src/models/errors/updateagent.ts +51 -0
  328. package/packages/orq-rc/src/models/errors/updateeval.ts +51 -0
  329. package/packages/orq-rc/src/models/errors/updateidentity.ts +54 -0
  330. package/packages/orq-rc/src/models/errors/updateprompt.ts +51 -0
  331. package/packages/orq-rc/src/models/errors/updatetool.ts +62 -0
  332. package/packages/orq-rc/src/models/operations/cleardataset.ts +39 -0
  333. package/packages/orq-rc/src/models/operations/createagentrequest.ts +7093 -0
  334. package/packages/orq-rc/src/models/operations/createagentresponserequest.ts +609 -0
  335. package/packages/orq-rc/src/models/operations/createannotation.ts +162 -0
  336. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +6381 -0
  337. package/packages/orq-rc/src/models/operations/createchunk.ts +222 -0
  338. package/packages/orq-rc/src/models/operations/createcompletion.ts +3413 -0
  339. package/packages/orq-rc/src/models/operations/createcontact.ts +156 -0
  340. package/packages/orq-rc/src/models/operations/createdataset.ts +162 -0
  341. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2551 -0
  342. package/packages/orq-rc/src/models/operations/createdatasource.ts +437 -0
  343. package/packages/orq-rc/src/models/operations/createembedding.ts +947 -0
  344. package/packages/orq-rc/src/models/operations/createeval.ts +4170 -0
  345. package/packages/orq-rc/src/models/operations/createfeedback.ts +144 -0
  346. package/packages/orq-rc/src/models/operations/createidentity.ts +162 -0
  347. package/packages/orq-rc/src/models/operations/createimage.ts +1028 -0
  348. package/packages/orq-rc/src/models/operations/createimageedit.ts +1045 -0
  349. package/packages/orq-rc/src/models/operations/createimagevariation.ts +1067 -0
  350. package/packages/orq-rc/src/models/operations/createknowledge.ts +944 -0
  351. package/packages/orq-rc/src/models/operations/creatememory.ts +142 -0
  352. package/packages/orq-rc/src/models/operations/creatememorydocument.ts +152 -0
  353. package/packages/orq-rc/src/models/operations/creatememorystore.ts +199 -0
  354. package/packages/orq-rc/src/models/operations/createmoderation.ts +664 -0
  355. package/packages/orq-rc/src/models/operations/createprompt.ts +5401 -0
  356. package/packages/orq-rc/src/models/operations/creatererank.ts +890 -0
  357. package/packages/orq-rc/src/models/operations/createresponse.ts +3324 -0
  358. package/packages/orq-rc/src/models/operations/createspeech.ts +700 -0
  359. package/packages/orq-rc/src/models/operations/createtool.ts +2499 -0
  360. package/packages/orq-rc/src/models/operations/createtranscription.ts +955 -0
  361. package/packages/orq-rc/src/models/operations/createtranslation.ts +930 -0
  362. package/packages/orq-rc/src/models/operations/deleteagent.ts +39 -0
  363. package/packages/orq-rc/src/models/operations/deleteannotation.ts +79 -0
  364. package/packages/orq-rc/src/models/operations/deletechunk.ts +53 -0
  365. package/packages/orq-rc/src/models/operations/deletechunks.ts +125 -0
  366. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +46 -0
  367. package/packages/orq-rc/src/models/operations/deletedataset.ts +39 -0
  368. package/packages/orq-rc/src/models/operations/deletedatasource.ts +46 -0
  369. package/packages/orq-rc/src/models/operations/deleteeval.ts +31 -0
  370. package/packages/orq-rc/src/models/operations/deleteidentity.ts +34 -0
  371. package/packages/orq-rc/src/models/operations/deleteknowledge.ts +39 -0
  372. package/packages/orq-rc/src/models/operations/deletememory.ts +46 -0
  373. package/packages/orq-rc/src/models/operations/deletememorydocument.ts +55 -0
  374. package/packages/orq-rc/src/models/operations/deletememorystore.ts +39 -0
  375. package/packages/orq-rc/src/models/operations/deleteprompt.ts +34 -0
  376. package/packages/orq-rc/src/models/operations/deletetool.ts +36 -0
  377. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +2370 -0
  378. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +4525 -0
  379. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +690 -0
  380. package/packages/orq-rc/src/models/operations/deployments.ts +1268 -0
  381. package/packages/orq-rc/src/models/operations/deploymentstream.ts +4614 -0
  382. package/packages/orq-rc/src/models/operations/filedelete.ts +39 -0
  383. package/packages/orq-rc/src/models/operations/fileget.ts +116 -0
  384. package/packages/orq-rc/src/models/operations/filelist.ts +172 -0
  385. package/packages/orq-rc/src/models/operations/fileupload.ts +170 -0
  386. package/packages/orq-rc/src/models/operations/getallmemories.ts +173 -0
  387. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +188 -0
  388. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +200 -0
  389. package/packages/orq-rc/src/models/operations/getallprompts.ts +3164 -0
  390. package/packages/orq-rc/src/models/operations/getalltools.ts +1398 -0
  391. package/packages/orq-rc/src/models/operations/getchunkscount.ts +121 -0
  392. package/packages/orq-rc/src/models/operations/getevals.ts +2842 -0
  393. package/packages/orq-rc/src/models/operations/getonechunk.ts +171 -0
  394. package/packages/orq-rc/src/models/operations/getoneknowledge.ts +652 -0
  395. package/packages/orq-rc/src/models/operations/getoneprompt.ts +3089 -0
  396. package/packages/orq-rc/src/models/operations/getpromptversion.ts +3134 -0
  397. package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +162 -0
  398. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +163 -0
  399. package/packages/orq-rc/src/models/operations/getv2toolstoolidversionsversionid.ts +110 -0
  400. package/packages/orq-rc/src/models/operations/index.ts +113 -0
  401. package/packages/orq-rc/src/models/operations/invokeagent.ts +733 -0
  402. package/packages/orq-rc/src/models/operations/invokeeval.ts +1253 -0
  403. package/packages/orq-rc/src/models/operations/listagents.ts +3018 -0
  404. package/packages/orq-rc/src/models/operations/listchunks.ts +260 -0
  405. package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +263 -0
  406. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +1498 -0
  407. package/packages/orq-rc/src/models/operations/listdatasets.ts +205 -0
  408. package/packages/orq-rc/src/models/operations/listdatasources.ts +235 -0
  409. package/packages/orq-rc/src/models/operations/listidentities.ts +275 -0
  410. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +642 -0
  411. package/packages/orq-rc/src/models/operations/listmodels.ts +143 -0
  412. package/packages/orq-rc/src/models/operations/listpromptversions.ts +3209 -0
  413. package/packages/orq-rc/src/models/operations/parse.ts +777 -0
  414. package/packages/orq-rc/src/models/operations/postv2routerocr.ts +478 -0
  415. package/packages/orq-rc/src/models/operations/remoteconfigsgetconfig.ts +108 -0
  416. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +3104 -0
  417. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +1402 -0
  418. package/packages/orq-rc/src/models/operations/retrievedataset.ts +150 -0
  419. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +152 -0
  420. package/packages/orq-rc/src/models/operations/retrieveidentity.ts +117 -0
  421. package/packages/orq-rc/src/models/operations/retrievememory.ts +112 -0
  422. package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +118 -0
  423. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +144 -0
  424. package/packages/orq-rc/src/models/operations/retrievetool.ts +1379 -0
  425. package/packages/orq-rc/src/models/operations/runagent.ts +5351 -0
  426. package/packages/orq-rc/src/models/operations/searchknowledge.ts +1762 -0
  427. package/packages/orq-rc/src/models/operations/streamagent.ts +629 -0
  428. package/packages/orq-rc/src/models/operations/streamrunagent.ts +5546 -0
  429. package/packages/orq-rc/src/models/operations/updateagent.ts +7447 -0
  430. package/packages/orq-rc/src/models/operations/updatechunk.ts +236 -0
  431. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2555 -0
  432. package/packages/orq-rc/src/models/operations/updatedataset.ts +206 -0
  433. package/packages/orq-rc/src/models/operations/updatedatasource.ts +186 -0
  434. package/packages/orq-rc/src/models/operations/updateeval.ts +4066 -0
  435. package/packages/orq-rc/src/models/operations/updateidentity.ts +189 -0
  436. package/packages/orq-rc/src/models/operations/updateknowledge.ts +1231 -0
  437. package/packages/orq-rc/src/models/operations/updatememory.ts +142 -0
  438. package/packages/orq-rc/src/models/operations/updatememorydocument.ts +159 -0
  439. package/packages/orq-rc/src/models/operations/updatememorystore.ts +246 -0
  440. package/packages/orq-rc/src/models/operations/updateprompt.ts +5472 -0
  441. package/packages/orq-rc/src/models/operations/updatetool.ts +2696 -0
  442. package/packages/orq-rc/src/sdk/agents.ts +196 -0
  443. package/packages/orq-rc/src/sdk/annotations.ts +39 -0
  444. package/packages/orq-rc/src/sdk/audio.ts +25 -0
  445. package/packages/orq-rc/src/sdk/chat.ts +13 -0
  446. package/packages/orq-rc/src/sdk/chunking.ts +27 -0
  447. package/packages/orq-rc/src/sdk/completions.ts +32 -0
  448. package/packages/orq-rc/src/sdk/contacts.ts +27 -0
  449. package/packages/orq-rc/src/sdk/datasets.ts +204 -0
  450. package/packages/orq-rc/src/sdk/deployments.ts +89 -0
  451. package/packages/orq-rc/src/sdk/edits.ts +27 -0
  452. package/packages/orq-rc/src/sdk/embeddings.ts +27 -0
  453. package/packages/orq-rc/src/sdk/evals.ts +84 -0
  454. package/packages/orq-rc/src/sdk/evaluators.ts +27 -0
  455. package/packages/orq-rc/src/sdk/feedback.ts +27 -0
  456. package/packages/orq-rc/src/sdk/files.ts +78 -0
  457. package/packages/orq-rc/src/sdk/generations.ts +27 -0
  458. package/packages/orq-rc/src/sdk/identities.ts +99 -0
  459. package/packages/orq-rc/src/sdk/images.ts +25 -0
  460. package/packages/orq-rc/src/sdk/index.ts +5 -0
  461. package/packages/orq-rc/src/sdk/knowledge.ts +309 -0
  462. package/packages/orq-rc/src/sdk/memorystores.ts +286 -0
  463. package/packages/orq-rc/src/sdk/metrics.ts +27 -0
  464. package/packages/orq-rc/src/sdk/models.ts +25 -0
  465. package/packages/orq-rc/src/sdk/moderations.ts +24 -0
  466. package/packages/orq-rc/src/sdk/orqcompletions.ts +32 -0
  467. package/packages/orq-rc/src/sdk/orqresponses.ts +32 -0
  468. package/packages/orq-rc/src/sdk/prompts.ts +126 -0
  469. package/packages/orq-rc/src/sdk/remoteconfigs.ts +24 -0
  470. package/packages/orq-rc/src/sdk/rerank.ts +27 -0
  471. package/packages/orq-rc/src/sdk/responses.ts +34 -0
  472. package/packages/orq-rc/src/sdk/router.ts +72 -0
  473. package/packages/orq-rc/src/sdk/sdk.ts +115 -0
  474. package/packages/orq-rc/src/sdk/speech.ts +27 -0
  475. package/packages/orq-rc/src/sdk/tools.ts +135 -0
  476. package/packages/orq-rc/src/sdk/transcriptions.ts +24 -0
  477. package/packages/orq-rc/src/sdk/translations.ts +24 -0
  478. package/packages/orq-rc/src/sdk/variations.ts +27 -0
  479. package/packages/orq-rc/src/types/async.ts +68 -0
  480. package/packages/orq-rc/src/types/blobs.ts +32 -0
  481. package/packages/orq-rc/src/types/constdatetime.ts +15 -0
  482. package/packages/orq-rc/src/types/enums.ts +45 -0
  483. package/packages/orq-rc/src/types/fp.ts +50 -0
  484. package/packages/orq-rc/src/types/index.ts +11 -0
  485. package/packages/orq-rc/src/types/operations.ts +105 -0
  486. package/packages/orq-rc/src/types/rfcdate.ts +54 -0
  487. package/packages/orq-rc/src/types/streams.ts +21 -0
  488. package/packages/orq-rc/src/types/unrecognized.ts +35 -0
  489. package/packages/orq-rc/tsconfig.json +40 -0
  490. package/sdk/annotations.d.ts +13 -0
  491. package/sdk/annotations.d.ts.map +1 -0
  492. package/sdk/annotations.js +26 -0
  493. package/sdk/annotations.js.map +1 -0
  494. package/sdk/sdk.d.ts +3 -6
  495. package/sdk/sdk.d.ts.map +1 -1
  496. package/sdk/sdk.js +4 -8
  497. package/sdk/sdk.js.map +1 -1
  498. package/src/funcs/annotationsCreate.ts +171 -0
  499. package/src/funcs/annotationsDelete.ts +171 -0
  500. package/src/lib/config.ts +3 -3
  501. package/src/models/components/agentstartedstreamingevent.ts +14 -0
  502. package/src/models/components/index.ts +0 -4
  503. package/src/models/components/invokedeploymentrequest.ts +10 -17
  504. package/src/models/components/partdoneevent.ts +1 -1
  505. package/src/models/components/reasoningpart.ts +1 -1
  506. package/src/models/errors/index.ts +0 -4
  507. package/src/models/operations/createagentrequest.ts +2 -2
  508. package/src/models/operations/createannotation.ts +162 -0
  509. package/src/models/operations/createcontact.ts +1 -1
  510. package/src/models/operations/createdataset.ts +1 -1
  511. package/src/models/operations/createdatasetitem.ts +4 -4
  512. package/src/models/operations/createdatasource.ts +1 -1
  513. package/src/models/operations/createeval.ts +1699 -657
  514. package/src/models/operations/createidentity.ts +1 -1
  515. package/src/models/operations/createresponse.ts +7 -7
  516. package/src/models/operations/createtool.ts +6 -6
  517. package/src/models/operations/deleteannotation.ts +79 -0
  518. package/src/models/operations/fileget.ts +1 -1
  519. package/src/models/operations/filelist.ts +1 -1
  520. package/src/models/operations/fileupload.ts +1 -1
  521. package/src/models/operations/getalltools.ts +6 -6
  522. package/src/models/operations/getevals.ts +1017 -505
  523. package/src/models/operations/index.ts +2 -7
  524. package/src/models/operations/invokeeval.ts +124 -0
  525. package/src/models/operations/listagents.ts +2 -2
  526. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  527. package/src/models/operations/listdatasets.ts +1 -1
  528. package/src/models/operations/listdatasources.ts +1 -1
  529. package/src/models/operations/listidentities.ts +1 -1
  530. package/src/models/operations/retrieveagentrequest.ts +2 -2
  531. package/src/models/operations/retrievedatapoint.ts +4 -4
  532. package/src/models/operations/retrievedataset.ts +1 -1
  533. package/src/models/operations/retrievedatasource.ts +1 -1
  534. package/src/models/operations/retrieveidentity.ts +1 -1
  535. package/src/models/operations/retrievetool.ts +6 -6
  536. package/src/models/operations/runagent.ts +1 -1
  537. package/src/models/operations/streamrunagent.ts +1 -1
  538. package/src/models/operations/updateagent.ts +2 -2
  539. package/src/models/operations/updatedatapoint.ts +4 -4
  540. package/src/models/operations/updatedataset.ts +1 -1
  541. package/src/models/operations/updatedatasource.ts +1 -1
  542. package/src/models/operations/updateeval.ts +1092 -329
  543. package/src/models/operations/updateidentity.ts +1 -1
  544. package/src/models/operations/updatetool.ts +7 -7
  545. package/src/sdk/annotations.ts +39 -0
  546. package/src/sdk/sdk.ts +6 -12
  547. package/funcs/conversationsCreate.d.ts +0 -17
  548. package/funcs/conversationsCreate.d.ts.map +0 -1
  549. package/funcs/conversationsCreate.js.map +0 -1
  550. package/funcs/conversationsCreateConversationResponse.d.ts +0 -18
  551. package/funcs/conversationsCreateConversationResponse.d.ts.map +0 -1
  552. package/funcs/conversationsCreateConversationResponse.js.map +0 -1
  553. package/funcs/conversationsDelete.d.ts.map +0 -1
  554. package/funcs/conversationsDelete.js +0 -127
  555. package/funcs/conversationsDelete.js.map +0 -1
  556. package/funcs/conversationsGenerateName.d.ts +0 -18
  557. package/funcs/conversationsGenerateName.d.ts.map +0 -1
  558. package/funcs/conversationsGenerateName.js +0 -128
  559. package/funcs/conversationsGenerateName.js.map +0 -1
  560. package/funcs/conversationsList.d.ts +0 -17
  561. package/funcs/conversationsList.d.ts.map +0 -1
  562. package/funcs/conversationsList.js +0 -126
  563. package/funcs/conversationsList.js.map +0 -1
  564. package/funcs/conversationsRetrieve.d.ts.map +0 -1
  565. package/funcs/conversationsRetrieve.js +0 -127
  566. package/funcs/conversationsRetrieve.js.map +0 -1
  567. package/funcs/conversationsUpdate.d.ts +0 -18
  568. package/funcs/conversationsUpdate.d.ts.map +0 -1
  569. package/funcs/conversationsUpdate.js +0 -128
  570. package/funcs/conversationsUpdate.js.map +0 -1
  571. package/models/components/conversationresponse.d.ts +0 -74
  572. package/models/components/conversationresponse.d.ts.map +0 -1
  573. package/models/components/conversationresponse.js +0 -80
  574. package/models/components/conversationresponse.js.map +0 -1
  575. package/models/components/conversationwithmessagesresponse.d.ts +0 -79
  576. package/models/components/conversationwithmessagesresponse.d.ts.map +0 -1
  577. package/models/components/conversationwithmessagesresponse.js +0 -83
  578. package/models/components/conversationwithmessagesresponse.js.map +0 -1
  579. package/models/components/messageresponse.d.ts +0 -58
  580. package/models/components/messageresponse.d.ts.map +0 -1
  581. package/models/components/messageresponse.js +0 -89
  582. package/models/components/messageresponse.js.map +0 -1
  583. package/models/components/usermessagerequest.d.ts +0 -54
  584. package/models/components/usermessagerequest.d.ts.map +0 -1
  585. package/models/components/usermessagerequest.js +0 -79
  586. package/models/components/usermessagerequest.js.map +0 -1
  587. package/models/errors/deleteconversation.d.ts +0 -23
  588. package/models/errors/deleteconversation.d.ts.map +0 -1
  589. package/models/errors/deleteconversation.js +0 -68
  590. package/models/errors/deleteconversation.js.map +0 -1
  591. package/models/errors/generateconversationname.d.ts +0 -43
  592. package/models/errors/generateconversationname.d.ts.map +0 -1
  593. package/models/errors/generateconversationname.js +0 -94
  594. package/models/errors/generateconversationname.js.map +0 -1
  595. package/models/errors/retrieveconversation.d.ts +0 -23
  596. package/models/errors/retrieveconversation.d.ts.map +0 -1
  597. package/models/errors/retrieveconversation.js +0 -68
  598. package/models/errors/retrieveconversation.js.map +0 -1
  599. package/models/errors/updateconversation.d.ts +0 -23
  600. package/models/errors/updateconversation.d.ts.map +0 -1
  601. package/models/errors/updateconversation.js +0 -68
  602. package/models/errors/updateconversation.js.map +0 -1
  603. package/models/operations/createconversation.d.ts +0 -126
  604. package/models/operations/createconversation.d.ts.map +0 -1
  605. package/models/operations/createconversation.js +0 -101
  606. package/models/operations/createconversation.js.map +0 -1
  607. package/models/operations/createconversationresponse.d.ts +0 -209
  608. package/models/operations/createconversationresponse.d.ts.map +0 -1
  609. package/models/operations/createconversationresponse.js +0 -217
  610. package/models/operations/createconversationresponse.js.map +0 -1
  611. package/models/operations/deleteconversation.d.ts +0 -15
  612. package/models/operations/deleteconversation.d.ts.map +0 -1
  613. package/models/operations/deleteconversation.js.map +0 -1
  614. package/models/operations/generateconversationname.d.ts +0 -105
  615. package/models/operations/generateconversationname.d.ts.map +0 -1
  616. package/models/operations/generateconversationname.js +0 -103
  617. package/models/operations/generateconversationname.js.map +0 -1
  618. package/models/operations/listconversations.d.ts +0 -51
  619. package/models/operations/listconversations.d.ts.map +0 -1
  620. package/models/operations/listconversations.js +0 -74
  621. package/models/operations/listconversations.js.map +0 -1
  622. package/models/operations/retrieveconversation.d.ts +0 -15
  623. package/models/operations/retrieveconversation.d.ts.map +0 -1
  624. package/models/operations/retrieveconversation.js +0 -54
  625. package/models/operations/retrieveconversation.js.map +0 -1
  626. package/models/operations/updateconversation.d.ts +0 -131
  627. package/models/operations/updateconversation.d.ts.map +0 -1
  628. package/models/operations/updateconversation.js +0 -113
  629. package/models/operations/updateconversation.js.map +0 -1
  630. package/sdk/conversations.d.ts +0 -56
  631. package/sdk/conversations.d.ts.map +0 -1
  632. package/sdk/conversations.js +0 -82
  633. package/sdk/conversations.js.map +0 -1
  634. package/sdk/internal.d.ts +0 -13
  635. package/sdk/internal.d.ts.map +0 -1
  636. package/sdk/internal.js +0 -22
  637. package/sdk/internal.js.map +0 -1
  638. package/src/models/components/conversationresponse.ts +0 -132
  639. package/src/models/components/conversationwithmessagesresponse.ts +0 -149
  640. package/src/models/components/messageresponse.ts +0 -127
  641. package/src/models/components/usermessagerequest.ts +0 -136
  642. package/src/models/errors/generateconversationname.ts +0 -99
  643. package/src/models/operations/createconversation.ts +0 -227
  644. package/src/models/operations/createconversationresponse.ts +0 -498
  645. package/src/models/operations/deleteconversation.ts +0 -39
  646. package/src/models/operations/generateconversationname.ts +0 -207
  647. package/src/models/operations/listconversations.ts +0 -104
  648. package/src/models/operations/retrieveconversation.ts +0 -41
  649. package/src/models/operations/updateconversation.ts +0 -252
  650. package/src/sdk/conversations.ts +0 -147
  651. package/src/sdk/internal.ts +0 -28
@@ -0,0 +1,61 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type ExecutionReviewedStreamingEventData = {};
11
+
12
+ /**
13
+ * Emitted after the agent execution has been reviewed. The execution will resume processing after this event.
14
+ */
15
+ export type ExecutionReviewedStreamingEvent = {
16
+ type: "event.agents.execution_reviewed";
17
+ /**
18
+ * ISO timestamp of the event
19
+ */
20
+ timestamp: string;
21
+ data: ExecutionReviewedStreamingEventData;
22
+ };
23
+
24
+ /** @internal */
25
+ export const ExecutionReviewedStreamingEventData$inboundSchema: z.ZodType<
26
+ ExecutionReviewedStreamingEventData,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({});
30
+
31
+ export function executionReviewedStreamingEventDataFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<ExecutionReviewedStreamingEventData, SDKValidationError> {
34
+ return safeParse(
35
+ jsonString,
36
+ (x) =>
37
+ ExecutionReviewedStreamingEventData$inboundSchema.parse(JSON.parse(x)),
38
+ `Failed to parse 'ExecutionReviewedStreamingEventData' from JSON`,
39
+ );
40
+ }
41
+
42
+ /** @internal */
43
+ export const ExecutionReviewedStreamingEvent$inboundSchema: z.ZodType<
44
+ ExecutionReviewedStreamingEvent,
45
+ z.ZodTypeDef,
46
+ unknown
47
+ > = z.object({
48
+ type: z.literal("event.agents.execution_reviewed"),
49
+ timestamp: z.string(),
50
+ data: z.lazy(() => ExecutionReviewedStreamingEventData$inboundSchema),
51
+ });
52
+
53
+ export function executionReviewedStreamingEventFromJSON(
54
+ jsonString: string,
55
+ ): SafeParseResult<ExecutionReviewedStreamingEvent, SDKValidationError> {
56
+ return safeParse(
57
+ jsonString,
58
+ (x) => ExecutionReviewedStreamingEvent$inboundSchema.parse(JSON.parse(x)),
59
+ `Failed to parse 'ExecutionReviewedStreamingEvent' from JSON`,
60
+ );
61
+ }
@@ -0,0 +1,67 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type ExecutionReviewRequiredStreamingEventData = {};
11
+
12
+ /**
13
+ * Emitted when the entire agent execution requires human review before proceeding. The execution will pause until reviewed.
14
+ */
15
+ export type ExecutionReviewRequiredStreamingEvent = {
16
+ type: "event.agents.execution_review_required";
17
+ /**
18
+ * ISO timestamp of the event
19
+ */
20
+ timestamp: string;
21
+ data: ExecutionReviewRequiredStreamingEventData;
22
+ };
23
+
24
+ /** @internal */
25
+ export const ExecutionReviewRequiredStreamingEventData$inboundSchema: z.ZodType<
26
+ ExecutionReviewRequiredStreamingEventData,
27
+ z.ZodTypeDef,
28
+ unknown
29
+ > = z.object({});
30
+
31
+ export function executionReviewRequiredStreamingEventDataFromJSON(
32
+ jsonString: string,
33
+ ): SafeParseResult<
34
+ ExecutionReviewRequiredStreamingEventData,
35
+ SDKValidationError
36
+ > {
37
+ return safeParse(
38
+ jsonString,
39
+ (x) =>
40
+ ExecutionReviewRequiredStreamingEventData$inboundSchema.parse(
41
+ JSON.parse(x),
42
+ ),
43
+ `Failed to parse 'ExecutionReviewRequiredStreamingEventData' from JSON`,
44
+ );
45
+ }
46
+
47
+ /** @internal */
48
+ export const ExecutionReviewRequiredStreamingEvent$inboundSchema: z.ZodType<
49
+ ExecutionReviewRequiredStreamingEvent,
50
+ z.ZodTypeDef,
51
+ unknown
52
+ > = z.object({
53
+ type: z.literal("event.agents.execution_review_required"),
54
+ timestamp: z.string(),
55
+ data: z.lazy(() => ExecutionReviewRequiredStreamingEventData$inboundSchema),
56
+ });
57
+
58
+ export function executionReviewRequiredStreamingEventFromJSON(
59
+ jsonString: string,
60
+ ): SafeParseResult<ExecutionReviewRequiredStreamingEvent, SDKValidationError> {
61
+ return safeParse(
62
+ jsonString,
63
+ (x) =>
64
+ ExecutionReviewRequiredStreamingEvent$inboundSchema.parse(JSON.parse(x)),
65
+ `Failed to parse 'ExecutionReviewRequiredStreamingEvent' from JSON`,
66
+ );
67
+ }
@@ -0,0 +1,87 @@
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 { Result as SafeParseResult } from "../../types/fp.js";
9
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
+
11
+ /**
12
+ * File data for the content part. Must contain either file_data or uri, but not both.
13
+ */
14
+ export type FileContentPartSchema = {
15
+ /**
16
+ * The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
17
+ */
18
+ fileData?: string | undefined;
19
+ /**
20
+ * URL to the file. Only supported by Anthropic Claude models for PDF files.
21
+ */
22
+ uri?: string | undefined;
23
+ /**
24
+ * MIME type of the file (e.g., application/pdf, image/png)
25
+ */
26
+ mimeType?: string | undefined;
27
+ /**
28
+ * The name of the file, used when passing the file to the model as a string.
29
+ */
30
+ filename?: string | undefined;
31
+ };
32
+
33
+ /** @internal */
34
+ export const FileContentPartSchema$inboundSchema: z.ZodType<
35
+ FileContentPartSchema,
36
+ z.ZodTypeDef,
37
+ unknown
38
+ > = z.object({
39
+ file_data: z.string().optional(),
40
+ uri: z.string().optional(),
41
+ mimeType: z.string().optional(),
42
+ filename: z.string().optional(),
43
+ }).transform((v) => {
44
+ return remap$(v, {
45
+ "file_data": "fileData",
46
+ });
47
+ });
48
+ /** @internal */
49
+ export type FileContentPartSchema$Outbound = {
50
+ file_data?: string | undefined;
51
+ uri?: string | undefined;
52
+ mimeType?: string | undefined;
53
+ filename?: string | undefined;
54
+ };
55
+
56
+ /** @internal */
57
+ export const FileContentPartSchema$outboundSchema: z.ZodType<
58
+ FileContentPartSchema$Outbound,
59
+ z.ZodTypeDef,
60
+ FileContentPartSchema
61
+ > = z.object({
62
+ fileData: z.string().optional(),
63
+ uri: z.string().optional(),
64
+ mimeType: z.string().optional(),
65
+ filename: z.string().optional(),
66
+ }).transform((v) => {
67
+ return remap$(v, {
68
+ fileData: "file_data",
69
+ });
70
+ });
71
+
72
+ export function fileContentPartSchemaToJSON(
73
+ fileContentPartSchema: FileContentPartSchema,
74
+ ): string {
75
+ return JSON.stringify(
76
+ FileContentPartSchema$outboundSchema.parse(fileContentPartSchema),
77
+ );
78
+ }
79
+ export function fileContentPartSchemaFromJSON(
80
+ jsonString: string,
81
+ ): SafeParseResult<FileContentPartSchema, SDKValidationError> {
82
+ return safeParse(
83
+ jsonString,
84
+ (x) => FileContentPartSchema$inboundSchema.parse(JSON.parse(x)),
85
+ `Failed to parse 'FileContentPartSchema' from JSON`,
86
+ );
87
+ }
@@ -0,0 +1,218 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ /**
11
+ * File in URI format. Check in the model's documentation for the supported mime types for the URI format
12
+ */
13
+ export type FileInURIFormat = {
14
+ /**
15
+ * URL for the File content
16
+ */
17
+ uri: string;
18
+ /**
19
+ * Optional mimeType for the file
20
+ */
21
+ mimeType?: string | undefined;
22
+ /**
23
+ * Optional name for the file
24
+ */
25
+ name?: string | undefined;
26
+ };
27
+
28
+ /**
29
+ * Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
30
+ */
31
+ export type BinaryFormat = {
32
+ /**
33
+ * base64 encoded content of the file
34
+ */
35
+ bytes: string;
36
+ /**
37
+ * Optional mimeType for the file
38
+ */
39
+ mimeType?: string | undefined;
40
+ /**
41
+ * Optional name for the file
42
+ */
43
+ name?: string | undefined;
44
+ };
45
+
46
+ export type FileT = BinaryFormat | FileInURIFormat;
47
+
48
+ /**
49
+ * File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
50
+ */
51
+ export type FilePart = {
52
+ kind: "file";
53
+ file: BinaryFormat | FileInURIFormat;
54
+ metadata?: { [k: string]: any } | undefined;
55
+ };
56
+
57
+ /** @internal */
58
+ export const FileInURIFormat$inboundSchema: z.ZodType<
59
+ FileInURIFormat,
60
+ z.ZodTypeDef,
61
+ unknown
62
+ > = z.object({
63
+ uri: z.string(),
64
+ mimeType: z.string().optional(),
65
+ name: z.string().optional(),
66
+ });
67
+ /** @internal */
68
+ export type FileInURIFormat$Outbound = {
69
+ uri: string;
70
+ mimeType?: string | undefined;
71
+ name?: string | undefined;
72
+ };
73
+
74
+ /** @internal */
75
+ export const FileInURIFormat$outboundSchema: z.ZodType<
76
+ FileInURIFormat$Outbound,
77
+ z.ZodTypeDef,
78
+ FileInURIFormat
79
+ > = z.object({
80
+ uri: z.string(),
81
+ mimeType: z.string().optional(),
82
+ name: z.string().optional(),
83
+ });
84
+
85
+ export function fileInURIFormatToJSON(
86
+ fileInURIFormat: FileInURIFormat,
87
+ ): string {
88
+ return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
89
+ }
90
+ export function fileInURIFormatFromJSON(
91
+ jsonString: string,
92
+ ): SafeParseResult<FileInURIFormat, SDKValidationError> {
93
+ return safeParse(
94
+ jsonString,
95
+ (x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
96
+ `Failed to parse 'FileInURIFormat' from JSON`,
97
+ );
98
+ }
99
+
100
+ /** @internal */
101
+ export const BinaryFormat$inboundSchema: z.ZodType<
102
+ BinaryFormat,
103
+ z.ZodTypeDef,
104
+ unknown
105
+ > = z.object({
106
+ bytes: z.string(),
107
+ mimeType: z.string().optional(),
108
+ name: z.string().optional(),
109
+ });
110
+ /** @internal */
111
+ export type BinaryFormat$Outbound = {
112
+ bytes: string;
113
+ mimeType?: string | undefined;
114
+ name?: string | undefined;
115
+ };
116
+
117
+ /** @internal */
118
+ export const BinaryFormat$outboundSchema: z.ZodType<
119
+ BinaryFormat$Outbound,
120
+ z.ZodTypeDef,
121
+ BinaryFormat
122
+ > = z.object({
123
+ bytes: z.string(),
124
+ mimeType: z.string().optional(),
125
+ name: z.string().optional(),
126
+ });
127
+
128
+ export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
129
+ return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
130
+ }
131
+ export function binaryFormatFromJSON(
132
+ jsonString: string,
133
+ ): SafeParseResult<BinaryFormat, SDKValidationError> {
134
+ return safeParse(
135
+ jsonString,
136
+ (x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
137
+ `Failed to parse 'BinaryFormat' from JSON`,
138
+ );
139
+ }
140
+
141
+ /** @internal */
142
+ export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
143
+ .union([
144
+ z.lazy(() => BinaryFormat$inboundSchema),
145
+ z.lazy(() => FileInURIFormat$inboundSchema),
146
+ ]);
147
+ /** @internal */
148
+ export type FileT$Outbound = BinaryFormat$Outbound | FileInURIFormat$Outbound;
149
+
150
+ /** @internal */
151
+ export const FileT$outboundSchema: z.ZodType<
152
+ FileT$Outbound,
153
+ z.ZodTypeDef,
154
+ FileT
155
+ > = z.union([
156
+ z.lazy(() => BinaryFormat$outboundSchema),
157
+ z.lazy(() => FileInURIFormat$outboundSchema),
158
+ ]);
159
+
160
+ export function fileToJSON(fileT: FileT): string {
161
+ return JSON.stringify(FileT$outboundSchema.parse(fileT));
162
+ }
163
+ export function fileFromJSON(
164
+ jsonString: string,
165
+ ): SafeParseResult<FileT, SDKValidationError> {
166
+ return safeParse(
167
+ jsonString,
168
+ (x) => FileT$inboundSchema.parse(JSON.parse(x)),
169
+ `Failed to parse 'FileT' from JSON`,
170
+ );
171
+ }
172
+
173
+ /** @internal */
174
+ export const FilePart$inboundSchema: z.ZodType<
175
+ FilePart,
176
+ z.ZodTypeDef,
177
+ unknown
178
+ > = z.object({
179
+ kind: z.literal("file"),
180
+ file: z.union([
181
+ z.lazy(() => BinaryFormat$inboundSchema),
182
+ z.lazy(() => FileInURIFormat$inboundSchema),
183
+ ]),
184
+ metadata: z.record(z.any()).optional(),
185
+ });
186
+ /** @internal */
187
+ export type FilePart$Outbound = {
188
+ kind: "file";
189
+ file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
190
+ metadata?: { [k: string]: any } | undefined;
191
+ };
192
+
193
+ /** @internal */
194
+ export const FilePart$outboundSchema: z.ZodType<
195
+ FilePart$Outbound,
196
+ z.ZodTypeDef,
197
+ FilePart
198
+ > = z.object({
199
+ kind: z.literal("file"),
200
+ file: z.union([
201
+ z.lazy(() => BinaryFormat$outboundSchema),
202
+ z.lazy(() => FileInURIFormat$outboundSchema),
203
+ ]),
204
+ metadata: z.record(z.any()).optional(),
205
+ });
206
+
207
+ export function filePartToJSON(filePart: FilePart): string {
208
+ return JSON.stringify(FilePart$outboundSchema.parse(filePart));
209
+ }
210
+ export function filePartFromJSON(
211
+ jsonString: string,
212
+ ): SafeParseResult<FilePart, SDKValidationError> {
213
+ return safeParse(
214
+ jsonString,
215
+ (x) => FilePart$inboundSchema.parse(JSON.parse(x)),
216
+ `Failed to parse 'FilePart' from JSON`,
217
+ );
218
+ }
@@ -0,0 +1,268 @@
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
+ }